@kvell-group/ui 1.6.5 → 1.6.6
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/README.md +0 -0
- package/dist/assets/main.css +1 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/MainProvider/MantineProvider.d.ts +1 -1
- package/dist/components/theme.d.ts +2 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +759 -757
- package/package.json +4 -1
- package/dist/components/TestButton/TestButton.d.ts +0 -2
- package/dist/components/TestButton/index.d.ts +0 -1
package/dist/main.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as p, jsxs as z, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
function M(
|
|
5
|
-
return Object.keys(
|
|
6
|
-
}
|
|
7
|
-
function
|
|
8
|
-
return
|
|
9
|
-
}
|
|
10
|
-
function
|
|
11
|
-
const e = { ...
|
|
12
|
-
return
|
|
13
|
-
|
|
1
|
+
import { jsx as p, jsxs as z, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
+
import { useState as rt, useRef as W, useEffect as A, useLayoutEffect as Wr, createContext as Dt, useContext as $t, useMemo as zr, useCallback as Lt, useId as Yr, forwardRef as _ } from "react";
|
|
3
|
+
import Gr from "react-dom";
|
|
4
|
+
import './assets/main.css';function M(t) {
|
|
5
|
+
return Object.keys(t);
|
|
6
|
+
}
|
|
7
|
+
function it(t) {
|
|
8
|
+
return t && typeof t == "object" && !Array.isArray(t);
|
|
9
|
+
}
|
|
10
|
+
function vt(t, r) {
|
|
11
|
+
const e = { ...t }, n = r;
|
|
12
|
+
return it(t) && it(r) && Object.keys(r).forEach((a) => {
|
|
13
|
+
it(n[a]) && a in t ? e[a] = vt(e[a], n[a]) : e[a] = n[a];
|
|
14
14
|
}), e;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return
|
|
16
|
+
function Dr(t) {
|
|
17
|
+
return t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
return typeof
|
|
19
|
+
function Xr(t) {
|
|
20
|
+
var r;
|
|
21
|
+
return typeof t != "string" || !t.includes("var(--mantine-scale)") ? t : (r = t.match(/^calc\((.*?)\)$/)) == null ? void 0 : r[1].split("*")[0].trim();
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
return typeof
|
|
23
|
+
function Ur(t) {
|
|
24
|
+
const r = Xr(t);
|
|
25
|
+
return typeof r == "number" ? r : typeof r == "string" ? r.includes("calc") || r.includes("var") ? r : r.includes("px") ? Number(r.replace("px", "")) : r.includes("rem") ? Number(r.replace("rem", "")) * 16 : r.includes("em") ? Number(r.replace("em", "")) * 16 : Number(r) : NaN;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function st(t) {
|
|
28
|
+
return t === "0rem" ? "0rem" : `calc(${t} * var(--mantine-scale))`;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Xt(t, { shouldScale: r = !1 } = {}) {
|
|
31
31
|
function e(n) {
|
|
32
32
|
if (n === 0 || n === "0")
|
|
33
|
-
return `0${
|
|
33
|
+
return `0${t}`;
|
|
34
34
|
if (typeof n == "number") {
|
|
35
|
-
const a = `${n / 16}${
|
|
36
|
-
return
|
|
35
|
+
const a = `${n / 16}${t}`;
|
|
36
|
+
return r ? st(a) : a;
|
|
37
37
|
}
|
|
38
38
|
if (typeof n == "string") {
|
|
39
39
|
if (n === "" || n.startsWith("calc(") || n.startsWith("clamp(") || n.includes("rgba("))
|
|
@@ -42,66 +42,66 @@ function Xr(r, { shouldScale: t = !1 } = {}) {
|
|
|
42
42
|
return n.split(",").map((o) => e(o)).join(",");
|
|
43
43
|
if (n.includes(" "))
|
|
44
44
|
return n.split(" ").map((o) => e(o)).join(" ");
|
|
45
|
-
if (n.includes(
|
|
46
|
-
return
|
|
45
|
+
if (n.includes(t))
|
|
46
|
+
return r ? st(n) : n;
|
|
47
47
|
const a = n.replace("px", "");
|
|
48
48
|
if (!Number.isNaN(Number(a))) {
|
|
49
|
-
const o = `${Number(a) / 16}${
|
|
50
|
-
return
|
|
49
|
+
const o = `${Number(a) / 16}${t}`;
|
|
50
|
+
return r ? st(o) : o;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
return n;
|
|
54
54
|
}
|
|
55
55
|
return e;
|
|
56
56
|
}
|
|
57
|
-
const c =
|
|
58
|
-
function
|
|
59
|
-
return Object.keys(
|
|
57
|
+
const c = Xt("rem", { shouldScale: !0 }), Et = Xt("em");
|
|
58
|
+
function St(t) {
|
|
59
|
+
return Object.keys(t).reduce((r, e) => (t[e] !== void 0 && (r[e] = t[e]), r), {});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
if (typeof
|
|
61
|
+
function Ut(t) {
|
|
62
|
+
if (typeof t == "number")
|
|
63
63
|
return !0;
|
|
64
|
-
if (typeof
|
|
65
|
-
if (
|
|
64
|
+
if (typeof t == "string") {
|
|
65
|
+
if (t.startsWith("calc(") || t.startsWith("var(") || t.includes(" ") && t.trim() !== "")
|
|
66
66
|
return !0;
|
|
67
|
-
const
|
|
68
|
-
return
|
|
67
|
+
const r = /^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;
|
|
68
|
+
return t.trim().split(/\s+/).every((n) => r.test(n));
|
|
69
69
|
}
|
|
70
70
|
return !1;
|
|
71
71
|
}
|
|
72
|
-
function O(
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
72
|
+
function O(t, r = "size", e = !0) {
|
|
73
|
+
if (t !== void 0)
|
|
74
|
+
return Ut(t) ? e ? c(t) : t : `var(--${r}-${t})`;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function qt(t) {
|
|
77
|
+
return t === void 0 ? "var(--mantine-radius-default)" : O(t, "mantine-radius");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return O(
|
|
79
|
+
function nt(t) {
|
|
80
|
+
return O(t, "mantine-font-size");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function qr(t, r) {
|
|
83
83
|
try {
|
|
84
|
-
return
|
|
84
|
+
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
85
85
|
} catch {
|
|
86
|
-
return
|
|
86
|
+
return t.addListener(r), () => t.removeListener(r);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(
|
|
89
|
+
function Qr(t, r) {
|
|
90
|
+
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Kr(t, r, { getInitialValueInEffect: e } = {
|
|
93
93
|
getInitialValueInEffect: !0
|
|
94
94
|
}) {
|
|
95
|
-
const [n, a] =
|
|
96
|
-
e ?
|
|
95
|
+
const [n, a] = rt(
|
|
96
|
+
e ? r : Qr(t)
|
|
97
97
|
), o = W(null);
|
|
98
98
|
return A(() => {
|
|
99
99
|
if ("matchMedia" in window)
|
|
100
|
-
return o.current = window.matchMedia(
|
|
101
|
-
}, [
|
|
100
|
+
return o.current = window.matchMedia(t), a(o.current.matches), qr(o.current, (i) => a(i.matches));
|
|
101
|
+
}, [t]), n;
|
|
102
102
|
}
|
|
103
|
-
const
|
|
104
|
-
function
|
|
103
|
+
const Qt = typeof document < "u" ? Wr : A;
|
|
104
|
+
function Zr(t, r) {
|
|
105
105
|
const e = W(!1);
|
|
106
106
|
A(
|
|
107
107
|
() => () => {
|
|
@@ -110,50 +110,50 @@ function Zt(r, t) {
|
|
|
110
110
|
[]
|
|
111
111
|
), A(() => {
|
|
112
112
|
if (e.current)
|
|
113
|
-
return
|
|
113
|
+
return t();
|
|
114
114
|
e.current = !0;
|
|
115
|
-
},
|
|
116
|
-
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
119
|
-
}
|
|
120
|
-
function
|
|
121
|
-
var
|
|
122
|
-
if (typeof
|
|
123
|
-
else if (typeof
|
|
124
|
-
var a =
|
|
125
|
-
for (
|
|
126
|
-
} else for (e in
|
|
115
|
+
}, r);
|
|
116
|
+
}
|
|
117
|
+
function Jr(t, r) {
|
|
118
|
+
return Kr("(prefers-reduced-motion: reduce)", t, r);
|
|
119
|
+
}
|
|
120
|
+
function Kt(t) {
|
|
121
|
+
var r, e, n = "";
|
|
122
|
+
if (typeof t == "string" || typeof t == "number") n += t;
|
|
123
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
124
|
+
var a = t.length;
|
|
125
|
+
for (r = 0; r < a; r++) t[r] && (e = Kt(t[r])) && (n && (n += " "), n += e);
|
|
126
|
+
} else for (e in t) t[e] && (n && (n += " "), n += e);
|
|
127
127
|
return n;
|
|
128
128
|
}
|
|
129
129
|
function B() {
|
|
130
|
-
for (var
|
|
130
|
+
for (var t, r, e = 0, n = "", a = arguments.length; e < a; e++) (t = arguments[e]) && (r = Kt(t)) && (n && (n += " "), n += r);
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
135
|
-
const
|
|
136
|
-
return
|
|
133
|
+
const tn = {};
|
|
134
|
+
function rn(t) {
|
|
135
|
+
const r = {};
|
|
136
|
+
return t.forEach((e) => {
|
|
137
137
|
Object.entries(e).forEach(([n, a]) => {
|
|
138
|
-
|
|
138
|
+
r[n] ? r[n] = B(r[n], a) : r[n] = a;
|
|
139
139
|
});
|
|
140
|
-
}),
|
|
140
|
+
}), r;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
const o = (Array.isArray(
|
|
144
|
-
(i) => typeof i == "function" ? i(
|
|
142
|
+
function wt({ theme: t, classNames: r, props: e, stylesCtx: n }) {
|
|
143
|
+
const o = (Array.isArray(r) ? r : [r]).map(
|
|
144
|
+
(i) => typeof i == "function" ? i(t, e, n) : i || tn
|
|
145
145
|
);
|
|
146
|
-
return
|
|
146
|
+
return rn(o);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
return (Array.isArray(
|
|
148
|
+
function gt({ theme: t, styles: r, props: e, stylesCtx: n }) {
|
|
149
|
+
return (Array.isArray(r) ? r : [r]).reduce((o, i) => typeof i == "function" ? { ...o, ...i(t, e, n) } : { ...o, ...i }, {});
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const Zt = Dt(null);
|
|
152
152
|
function P() {
|
|
153
|
-
const
|
|
154
|
-
if (!
|
|
153
|
+
const t = $t(Zt);
|
|
154
|
+
if (!t)
|
|
155
155
|
throw new Error("[@mantine/core] MantineProvider was not found in tree");
|
|
156
|
-
return
|
|
156
|
+
return t;
|
|
157
157
|
}
|
|
158
158
|
function nn() {
|
|
159
159
|
return P().cssVariablesResolver;
|
|
@@ -161,7 +161,7 @@ function nn() {
|
|
|
161
161
|
function en() {
|
|
162
162
|
return P().classNamesPrefix;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ct() {
|
|
165
165
|
return P().getStyleNonce;
|
|
166
166
|
}
|
|
167
167
|
function on() {
|
|
@@ -171,24 +171,24 @@ function an() {
|
|
|
171
171
|
return P().headless;
|
|
172
172
|
}
|
|
173
173
|
function sn() {
|
|
174
|
-
var
|
|
175
|
-
return (
|
|
174
|
+
var t;
|
|
175
|
+
return (t = P().stylesTransform) == null ? void 0 : t.sx;
|
|
176
176
|
}
|
|
177
177
|
function cn() {
|
|
178
|
-
var
|
|
179
|
-
return (
|
|
178
|
+
var t;
|
|
179
|
+
return (t = P().stylesTransform) == null ? void 0 : t.styles;
|
|
180
180
|
}
|
|
181
181
|
function ln() {
|
|
182
182
|
return P().env || "default";
|
|
183
183
|
}
|
|
184
|
-
function dn(
|
|
185
|
-
return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(
|
|
184
|
+
function dn(t) {
|
|
185
|
+
return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t);
|
|
186
186
|
}
|
|
187
|
-
function fn(
|
|
188
|
-
let
|
|
189
|
-
if (
|
|
190
|
-
const i =
|
|
191
|
-
|
|
187
|
+
function fn(t) {
|
|
188
|
+
let r = t.replace("#", "");
|
|
189
|
+
if (r.length === 3) {
|
|
190
|
+
const i = r.split("");
|
|
191
|
+
r = [
|
|
192
192
|
i[0],
|
|
193
193
|
i[0],
|
|
194
194
|
i[1],
|
|
@@ -197,16 +197,16 @@ function fn(r) {
|
|
|
197
197
|
i[2]
|
|
198
198
|
].join("");
|
|
199
199
|
}
|
|
200
|
-
if (
|
|
201
|
-
const i = parseInt(
|
|
200
|
+
if (r.length === 8) {
|
|
201
|
+
const i = parseInt(r.slice(6, 8), 16) / 255;
|
|
202
202
|
return {
|
|
203
|
-
r: parseInt(
|
|
204
|
-
g: parseInt(
|
|
205
|
-
b: parseInt(
|
|
203
|
+
r: parseInt(r.slice(0, 2), 16),
|
|
204
|
+
g: parseInt(r.slice(2, 4), 16),
|
|
205
|
+
b: parseInt(r.slice(4, 6), 16),
|
|
206
206
|
a: i
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
const e = parseInt(
|
|
209
|
+
const e = parseInt(r, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
|
|
210
210
|
return {
|
|
211
211
|
r: n,
|
|
212
212
|
g: a,
|
|
@@ -214,12 +214,12 @@ function fn(r) {
|
|
|
214
214
|
a: 1
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function un(
|
|
218
|
-
const [
|
|
219
|
-
return { r
|
|
217
|
+
function un(t) {
|
|
218
|
+
const [r, e, n, a] = t.replace(/[^0-9,./]/g, "").split(/[/,]/).map(Number);
|
|
219
|
+
return { r, g: e, b: n, a: a || 1 };
|
|
220
220
|
}
|
|
221
|
-
function mn(
|
|
222
|
-
const
|
|
221
|
+
function mn(t) {
|
|
222
|
+
const r = /^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i, e = t.match(r);
|
|
223
223
|
if (!e)
|
|
224
224
|
return {
|
|
225
225
|
r: 0,
|
|
@@ -236,142 +236,142 @@ function mn(r) {
|
|
|
236
236
|
a: i || 1
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
return dn(
|
|
239
|
+
function xt(t) {
|
|
240
|
+
return dn(t) ? fn(t) : t.startsWith("rgb") ? un(t) : t.startsWith("hsl") ? mn(t) : {
|
|
241
241
|
r: 0,
|
|
242
242
|
g: 0,
|
|
243
243
|
b: 0,
|
|
244
244
|
a: 1
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
|
-
function Z(
|
|
248
|
-
if (
|
|
249
|
-
return `color-mix(in srgb, ${
|
|
250
|
-
const { r: e, g: n, b: a, a: o } =
|
|
247
|
+
function Z(t, r) {
|
|
248
|
+
if (t.startsWith("var("))
|
|
249
|
+
return `color-mix(in srgb, ${t}, black ${r * 100}%)`;
|
|
250
|
+
const { r: e, g: n, b: a, a: o } = xt(t), i = 1 - r, s = (l) => Math.round(l * i);
|
|
251
251
|
return `rgba(${s(e)}, ${s(n)}, ${s(a)}, ${o})`;
|
|
252
252
|
}
|
|
253
|
-
function U(
|
|
254
|
-
return typeof
|
|
253
|
+
function U(t, r) {
|
|
254
|
+
return typeof t.primaryShade == "number" ? t.primaryShade : r === "dark" ? t.primaryShade.dark : t.primaryShade.light;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return
|
|
256
|
+
function ct(t) {
|
|
257
|
+
return t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
|
|
258
258
|
}
|
|
259
|
-
function pn(
|
|
260
|
-
const
|
|
261
|
-
return
|
|
259
|
+
function pn(t) {
|
|
260
|
+
const r = t.match(/oklch\((.*?)%\s/);
|
|
261
|
+
return r ? parseFloat(r[1]) : null;
|
|
262
262
|
}
|
|
263
|
-
function gn(
|
|
264
|
-
if (
|
|
265
|
-
return (pn(
|
|
266
|
-
const { r
|
|
263
|
+
function gn(t) {
|
|
264
|
+
if (t.startsWith("oklch("))
|
|
265
|
+
return (pn(t) || 0) / 100;
|
|
266
|
+
const { r, g: e, b: n } = xt(t), a = r / 255, o = e / 255, i = n / 255, s = ct(a), l = ct(o), d = ct(i);
|
|
267
267
|
return 0.2126 * s + 0.7152 * l + 0.0722 * d;
|
|
268
268
|
}
|
|
269
|
-
function G(
|
|
270
|
-
return
|
|
269
|
+
function G(t, r = 0.179) {
|
|
270
|
+
return t.startsWith("var(") ? !1 : gn(t) > r;
|
|
271
271
|
}
|
|
272
272
|
function q({
|
|
273
|
-
color:
|
|
274
|
-
theme:
|
|
273
|
+
color: t,
|
|
274
|
+
theme: r,
|
|
275
275
|
colorScheme: e
|
|
276
276
|
}) {
|
|
277
|
-
if (typeof
|
|
277
|
+
if (typeof t != "string")
|
|
278
278
|
throw new Error(
|
|
279
|
-
`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof
|
|
279
|
+
`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`
|
|
280
280
|
);
|
|
281
|
-
if (
|
|
281
|
+
if (t === "bright")
|
|
282
282
|
return {
|
|
283
|
-
color:
|
|
284
|
-
value: e === "dark" ?
|
|
283
|
+
color: t,
|
|
284
|
+
value: e === "dark" ? r.white : r.black,
|
|
285
285
|
shade: void 0,
|
|
286
286
|
isThemeColor: !1,
|
|
287
287
|
isLight: G(
|
|
288
|
-
e === "dark" ?
|
|
289
|
-
|
|
288
|
+
e === "dark" ? r.white : r.black,
|
|
289
|
+
r.luminanceThreshold
|
|
290
290
|
),
|
|
291
291
|
variable: "--mantine-color-bright"
|
|
292
292
|
};
|
|
293
|
-
if (
|
|
293
|
+
if (t === "dimmed")
|
|
294
294
|
return {
|
|
295
|
-
color:
|
|
296
|
-
value: e === "dark" ?
|
|
295
|
+
color: t,
|
|
296
|
+
value: e === "dark" ? r.colors.dark[2] : r.colors.gray[7],
|
|
297
297
|
shade: void 0,
|
|
298
298
|
isThemeColor: !1,
|
|
299
299
|
isLight: G(
|
|
300
|
-
e === "dark" ?
|
|
301
|
-
|
|
300
|
+
e === "dark" ? r.colors.dark[2] : r.colors.gray[6],
|
|
301
|
+
r.luminanceThreshold
|
|
302
302
|
),
|
|
303
303
|
variable: "--mantine-color-dimmed"
|
|
304
304
|
};
|
|
305
|
-
if (
|
|
305
|
+
if (t === "white" || t === "black")
|
|
306
306
|
return {
|
|
307
|
-
color:
|
|
308
|
-
value:
|
|
307
|
+
color: t,
|
|
308
|
+
value: t === "white" ? r.white : r.black,
|
|
309
309
|
shade: void 0,
|
|
310
310
|
isThemeColor: !1,
|
|
311
311
|
isLight: G(
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
t === "white" ? r.white : r.black,
|
|
313
|
+
r.luminanceThreshold
|
|
314
314
|
),
|
|
315
|
-
variable: `--mantine-color-${
|
|
315
|
+
variable: `--mantine-color-${t}`
|
|
316
316
|
};
|
|
317
|
-
const [n, a] =
|
|
317
|
+
const [n, a] = t.split("."), o = a ? Number(a) : void 0, i = n in r.colors;
|
|
318
318
|
if (i) {
|
|
319
|
-
const s = o !== void 0 ?
|
|
319
|
+
const s = o !== void 0 ? r.colors[n][o] : r.colors[n][U(r, e || "light")];
|
|
320
320
|
return {
|
|
321
321
|
color: n,
|
|
322
322
|
value: s,
|
|
323
323
|
shade: o,
|
|
324
324
|
isThemeColor: i,
|
|
325
|
-
isLight: G(s,
|
|
325
|
+
isLight: G(s, r.luminanceThreshold),
|
|
326
326
|
variable: a ? `--mantine-color-${n}-${o}` : `--mantine-color-${n}-filled`
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
return {
|
|
330
|
-
color:
|
|
331
|
-
value:
|
|
330
|
+
color: t,
|
|
331
|
+
value: t,
|
|
332
332
|
isThemeColor: i,
|
|
333
|
-
isLight: G(
|
|
333
|
+
isLight: G(t, r.luminanceThreshold),
|
|
334
334
|
shade: o,
|
|
335
335
|
variable: void 0
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
const e = q({ color:
|
|
340
|
-
return e.variable ? `var(${e.variable})` :
|
|
338
|
+
function yt(t, r) {
|
|
339
|
+
const e = q({ color: t || r.primaryColor, theme: r });
|
|
340
|
+
return e.variable ? `var(${e.variable})` : t;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function At(t, r) {
|
|
343
343
|
const e = {
|
|
344
|
-
from: (
|
|
345
|
-
to: (
|
|
346
|
-
deg: (
|
|
347
|
-
}, n =
|
|
344
|
+
from: (t == null ? void 0 : t.from) || r.defaultGradient.from,
|
|
345
|
+
to: (t == null ? void 0 : t.to) || r.defaultGradient.to,
|
|
346
|
+
deg: (t == null ? void 0 : t.deg) ?? r.defaultGradient.deg ?? 0
|
|
347
|
+
}, n = yt(e.from, r), a = yt(e.to, r);
|
|
348
348
|
return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
|
|
349
349
|
}
|
|
350
|
-
function R(
|
|
351
|
-
if (typeof
|
|
350
|
+
function R(t, r) {
|
|
351
|
+
if (typeof t != "string" || r > 1 || r < 0)
|
|
352
352
|
return "rgba(0, 0, 0, 1)";
|
|
353
|
-
if (
|
|
354
|
-
const o = (1 -
|
|
355
|
-
return `color-mix(in srgb, ${
|
|
353
|
+
if (t.startsWith("var(")) {
|
|
354
|
+
const o = (1 - r) * 100;
|
|
355
|
+
return `color-mix(in srgb, ${t}, transparent ${o}%)`;
|
|
356
356
|
}
|
|
357
|
-
if (
|
|
358
|
-
return
|
|
359
|
-
const { r: e, g: n, b: a } =
|
|
360
|
-
return `rgba(${e}, ${n}, ${a}, ${
|
|
357
|
+
if (t.startsWith("oklch"))
|
|
358
|
+
return t.includes("/") ? t.replace(/\/\s*[\d.]+\s*\)/, `/ ${r})`) : t.replace(")", ` / ${r})`);
|
|
359
|
+
const { r: e, g: n, b: a } = xt(t);
|
|
360
|
+
return `rgba(${e}, ${n}, ${a}, ${r})`;
|
|
361
361
|
}
|
|
362
362
|
const j = R, yn = ({
|
|
363
|
-
color:
|
|
364
|
-
theme:
|
|
363
|
+
color: t,
|
|
364
|
+
theme: r,
|
|
365
365
|
variant: e,
|
|
366
366
|
gradient: n,
|
|
367
367
|
autoContrast: a
|
|
368
368
|
}) => {
|
|
369
|
-
const o = q({ color:
|
|
369
|
+
const o = q({ color: t, theme: r }), i = typeof a == "boolean" ? a : r.autoContrast;
|
|
370
370
|
if (e === "filled") {
|
|
371
371
|
const s = i && o.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
372
372
|
return o.isThemeColor ? o.shade === void 0 ? {
|
|
373
|
-
background: `var(--mantine-color-${
|
|
374
|
-
hover: `var(--mantine-color-${
|
|
373
|
+
background: `var(--mantine-color-${t}-filled)`,
|
|
374
|
+
hover: `var(--mantine-color-${t}-filled-hover)`,
|
|
375
375
|
color: s,
|
|
376
376
|
border: `${c(1)} solid transparent`
|
|
377
377
|
} : {
|
|
@@ -380,8 +380,8 @@ const j = R, yn = ({
|
|
|
380
380
|
color: s,
|
|
381
381
|
border: `${c(1)} solid transparent`
|
|
382
382
|
} : {
|
|
383
|
-
background:
|
|
384
|
-
hover: Z(
|
|
383
|
+
background: t,
|
|
384
|
+
hover: Z(t, 0.1),
|
|
385
385
|
color: s,
|
|
386
386
|
border: `${c(1)} solid transparent`
|
|
387
387
|
};
|
|
@@ -390,12 +390,12 @@ const j = R, yn = ({
|
|
|
390
390
|
if (o.isThemeColor) {
|
|
391
391
|
if (o.shade === void 0)
|
|
392
392
|
return {
|
|
393
|
-
background: `var(--mantine-color-${
|
|
394
|
-
hover: `var(--mantine-color-${
|
|
395
|
-
color: `var(--mantine-color-${
|
|
393
|
+
background: `var(--mantine-color-${t}-light)`,
|
|
394
|
+
hover: `var(--mantine-color-${t}-light-hover)`,
|
|
395
|
+
color: `var(--mantine-color-${t}-light-color)`,
|
|
396
396
|
border: `${c(1)} solid transparent`
|
|
397
397
|
};
|
|
398
|
-
const s =
|
|
398
|
+
const s = r.colors[o.color][o.shade];
|
|
399
399
|
return {
|
|
400
400
|
background: R(s, 0.1),
|
|
401
401
|
hover: R(s, 0.12),
|
|
@@ -404,39 +404,39 @@ const j = R, yn = ({
|
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
406
|
return {
|
|
407
|
-
background: R(
|
|
408
|
-
hover: R(
|
|
409
|
-
color:
|
|
407
|
+
background: R(t, 0.1),
|
|
408
|
+
hover: R(t, 0.12),
|
|
409
|
+
color: t,
|
|
410
410
|
border: `${c(1)} solid transparent`
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
if (e === "outline")
|
|
414
414
|
return o.isThemeColor ? o.shade === void 0 ? {
|
|
415
415
|
background: "transparent",
|
|
416
|
-
hover: `var(--mantine-color-${
|
|
417
|
-
color: `var(--mantine-color-${
|
|
418
|
-
border: `${c(1)} solid var(--mantine-color-${
|
|
416
|
+
hover: `var(--mantine-color-${t}-outline-hover)`,
|
|
417
|
+
color: `var(--mantine-color-${t}-outline)`,
|
|
418
|
+
border: `${c(1)} solid var(--mantine-color-${t}-outline)`
|
|
419
419
|
} : {
|
|
420
420
|
background: "transparent",
|
|
421
|
-
hover: R(
|
|
421
|
+
hover: R(r.colors[o.color][o.shade], 0.05),
|
|
422
422
|
color: `var(--mantine-color-${o.color}-${o.shade})`,
|
|
423
423
|
border: `${c(1)} solid var(--mantine-color-${o.color}-${o.shade})`
|
|
424
424
|
} : {
|
|
425
425
|
background: "transparent",
|
|
426
|
-
hover: R(
|
|
427
|
-
color:
|
|
428
|
-
border: `${c(1)} solid ${
|
|
426
|
+
hover: R(t, 0.05),
|
|
427
|
+
color: t,
|
|
428
|
+
border: `${c(1)} solid ${t}`
|
|
429
429
|
};
|
|
430
430
|
if (e === "subtle") {
|
|
431
431
|
if (o.isThemeColor) {
|
|
432
432
|
if (o.shade === void 0)
|
|
433
433
|
return {
|
|
434
434
|
background: "transparent",
|
|
435
|
-
hover: `var(--mantine-color-${
|
|
436
|
-
color: `var(--mantine-color-${
|
|
435
|
+
hover: `var(--mantine-color-${t}-light-hover)`,
|
|
436
|
+
color: `var(--mantine-color-${t}-light-color)`,
|
|
437
437
|
border: `${c(1)} solid transparent`
|
|
438
438
|
};
|
|
439
|
-
const s =
|
|
439
|
+
const s = r.colors[o.color][o.shade];
|
|
440
440
|
return {
|
|
441
441
|
background: "transparent",
|
|
442
442
|
hover: R(s, 0.12),
|
|
@@ -446,15 +446,15 @@ const j = R, yn = ({
|
|
|
446
446
|
}
|
|
447
447
|
return {
|
|
448
448
|
background: "transparent",
|
|
449
|
-
hover: R(
|
|
450
|
-
color:
|
|
449
|
+
hover: R(t, 0.12),
|
|
450
|
+
color: t,
|
|
451
451
|
border: `${c(1)} solid transparent`
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
return e === "transparent" ? o.isThemeColor ? o.shade === void 0 ? {
|
|
455
455
|
background: "transparent",
|
|
456
456
|
hover: "transparent",
|
|
457
|
-
color: `var(--mantine-color-${
|
|
457
|
+
color: `var(--mantine-color-${t}-light-color)`,
|
|
458
458
|
border: `${c(1)} solid transparent`
|
|
459
459
|
} : {
|
|
460
460
|
background: "transparent",
|
|
@@ -464,26 +464,26 @@ const j = R, yn = ({
|
|
|
464
464
|
} : {
|
|
465
465
|
background: "transparent",
|
|
466
466
|
hover: "transparent",
|
|
467
|
-
color:
|
|
467
|
+
color: t,
|
|
468
468
|
border: `${c(1)} solid transparent`
|
|
469
469
|
} : e === "white" ? o.isThemeColor ? o.shade === void 0 ? {
|
|
470
470
|
background: "var(--mantine-color-white)",
|
|
471
|
-
hover: Z(
|
|
472
|
-
color: `var(--mantine-color-${
|
|
471
|
+
hover: Z(r.white, 0.01),
|
|
472
|
+
color: `var(--mantine-color-${t}-filled)`,
|
|
473
473
|
border: `${c(1)} solid transparent`
|
|
474
474
|
} : {
|
|
475
475
|
background: "var(--mantine-color-white)",
|
|
476
|
-
hover: Z(
|
|
476
|
+
hover: Z(r.white, 0.01),
|
|
477
477
|
color: `var(--mantine-color-${o.color}-${o.shade})`,
|
|
478
478
|
border: `${c(1)} solid transparent`
|
|
479
479
|
} : {
|
|
480
480
|
background: "var(--mantine-color-white)",
|
|
481
|
-
hover: Z(
|
|
482
|
-
color:
|
|
481
|
+
hover: Z(r.white, 0.01),
|
|
482
|
+
color: t,
|
|
483
483
|
border: `${c(1)} solid transparent`
|
|
484
484
|
} : e === "gradient" ? {
|
|
485
|
-
background:
|
|
486
|
-
hover:
|
|
485
|
+
background: At(n, r),
|
|
486
|
+
hover: At(n, r),
|
|
487
487
|
color: "var(--mantine-color-white)",
|
|
488
488
|
border: "none"
|
|
489
489
|
} : e === "default" ? {
|
|
@@ -661,7 +661,7 @@ const j = R, yn = ({
|
|
|
661
661
|
"#e8590c",
|
|
662
662
|
"#d9480f"
|
|
663
663
|
]
|
|
664
|
-
},
|
|
664
|
+
}, Ot = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kt = {
|
|
665
665
|
scale: 1,
|
|
666
666
|
fontSmoothing: !0,
|
|
667
667
|
focusRing: "auto",
|
|
@@ -673,7 +673,7 @@ const j = R, yn = ({
|
|
|
673
673
|
variantColorResolver: yn,
|
|
674
674
|
autoContrast: !1,
|
|
675
675
|
luminanceThreshold: 0.3,
|
|
676
|
-
fontFamily:
|
|
676
|
+
fontFamily: Ot,
|
|
677
677
|
fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
|
|
678
678
|
respectReducedMotion: !1,
|
|
679
679
|
cursorType: "default",
|
|
@@ -682,7 +682,7 @@ const j = R, yn = ({
|
|
|
682
682
|
activeClassName: "mantine-active",
|
|
683
683
|
focusClassName: "",
|
|
684
684
|
headings: {
|
|
685
|
-
fontFamily:
|
|
685
|
+
fontFamily: Ot,
|
|
686
686
|
fontWeight: "700",
|
|
687
687
|
textWrap: "wrap",
|
|
688
688
|
sizes: {
|
|
@@ -747,27 +747,27 @@ const j = R, yn = ({
|
|
|
747
747
|
other: {},
|
|
748
748
|
components: {}
|
|
749
749
|
};
|
|
750
|
-
function
|
|
751
|
-
return
|
|
750
|
+
function It(t) {
|
|
751
|
+
return t === "auto" || t === "dark" || t === "light";
|
|
752
752
|
}
|
|
753
753
|
function hn({
|
|
754
|
-
key:
|
|
754
|
+
key: t = "mantine-color-scheme-value"
|
|
755
755
|
} = {}) {
|
|
756
|
-
let
|
|
756
|
+
let r;
|
|
757
757
|
return {
|
|
758
758
|
get: (e) => {
|
|
759
759
|
if (typeof window > "u")
|
|
760
760
|
return e;
|
|
761
761
|
try {
|
|
762
|
-
const n = window.localStorage.getItem(
|
|
763
|
-
return
|
|
762
|
+
const n = window.localStorage.getItem(t);
|
|
763
|
+
return It(n) ? n : e;
|
|
764
764
|
} catch {
|
|
765
765
|
return e;
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
768
|
set: (e) => {
|
|
769
769
|
try {
|
|
770
|
-
window.localStorage.setItem(
|
|
770
|
+
window.localStorage.setItem(t, e);
|
|
771
771
|
} catch (n) {
|
|
772
772
|
console.warn(
|
|
773
773
|
"[@mantine/core] Local storage color scheme manager was unable to save color scheme.",
|
|
@@ -776,199 +776,199 @@ function hn({
|
|
|
776
776
|
}
|
|
777
777
|
},
|
|
778
778
|
subscribe: (e) => {
|
|
779
|
-
|
|
780
|
-
n.storageArea === window.localStorage && n.key ===
|
|
781
|
-
}, window.addEventListener("storage",
|
|
779
|
+
r = (n) => {
|
|
780
|
+
n.storageArea === window.localStorage && n.key === t && It(n.newValue) && e(n.newValue);
|
|
781
|
+
}, window.addEventListener("storage", r);
|
|
782
782
|
},
|
|
783
783
|
unsubscribe: () => {
|
|
784
|
-
window.removeEventListener("storage",
|
|
784
|
+
window.removeEventListener("storage", r);
|
|
785
785
|
},
|
|
786
786
|
clear: () => {
|
|
787
|
-
window.localStorage.removeItem(
|
|
787
|
+
window.localStorage.removeItem(t);
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",
|
|
792
|
-
function
|
|
793
|
-
return
|
|
791
|
+
const $n = "[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color", Bt = "[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";
|
|
792
|
+
function lt(t) {
|
|
793
|
+
return t < 0 || t > 9 ? !1 : parseInt(t.toString(), 10) === t;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
796
|
-
if (!(
|
|
795
|
+
function Vt(t) {
|
|
796
|
+
if (!(t.primaryColor in t.colors))
|
|
797
797
|
throw new Error($n);
|
|
798
|
-
if (typeof
|
|
799
|
-
throw new Error(
|
|
800
|
-
if (typeof
|
|
801
|
-
throw new Error(
|
|
798
|
+
if (typeof t.primaryShade == "object" && (!lt(t.primaryShade.dark) || !lt(t.primaryShade.light)))
|
|
799
|
+
throw new Error(Bt);
|
|
800
|
+
if (typeof t.primaryShade == "number" && !lt(t.primaryShade))
|
|
801
|
+
throw new Error(Bt);
|
|
802
802
|
}
|
|
803
|
-
function vn(
|
|
803
|
+
function vn(t, r) {
|
|
804
804
|
var n;
|
|
805
|
-
if (!
|
|
806
|
-
return
|
|
807
|
-
const e =
|
|
808
|
-
return
|
|
805
|
+
if (!r)
|
|
806
|
+
return Vt(t), t;
|
|
807
|
+
const e = vt(t, r);
|
|
808
|
+
return r.fontFamily && !((n = r.headings) != null && n.fontFamily) && (e.headings.fontFamily = r.fontFamily), Vt(e), e;
|
|
809
809
|
}
|
|
810
|
-
const
|
|
810
|
+
const Nt = Dt(null), Sn = () => $t(Nt) || kt;
|
|
811
811
|
function V() {
|
|
812
|
-
const
|
|
813
|
-
if (!
|
|
812
|
+
const t = $t(Nt);
|
|
813
|
+
if (!t)
|
|
814
814
|
throw new Error(
|
|
815
815
|
"@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
|
|
816
816
|
);
|
|
817
|
-
return
|
|
817
|
+
return t;
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
theme:
|
|
821
|
-
children:
|
|
819
|
+
function Jt({
|
|
820
|
+
theme: t,
|
|
821
|
+
children: r,
|
|
822
822
|
inherit: e = !0
|
|
823
823
|
}) {
|
|
824
|
-
const n = Sn(), a =
|
|
825
|
-
() => vn(e ? n :
|
|
826
|
-
[
|
|
824
|
+
const n = Sn(), a = zr(
|
|
825
|
+
() => vn(e ? n : kt, t),
|
|
826
|
+
[t, n, e]
|
|
827
827
|
);
|
|
828
|
-
return /* @__PURE__ */ p(
|
|
828
|
+
return /* @__PURE__ */ p(Nt.Provider, { value: a, children: r });
|
|
829
829
|
}
|
|
830
|
-
|
|
830
|
+
Jt.displayName = "@mantine/core/MantineThemeProvider";
|
|
831
831
|
function wn() {
|
|
832
|
-
const
|
|
833
|
-
const o =
|
|
832
|
+
const t = V(), r = Ct(), e = M(t.breakpoints).reduce((n, a) => {
|
|
833
|
+
const o = t.breakpoints[a].includes("px"), i = Ur(t.breakpoints[a]), s = o ? `${i - 0.1}px` : Et(i - 0.1), l = o ? `${i}px` : Et(i);
|
|
834
834
|
return `${n}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${a} {display: none !important;}}`;
|
|
835
835
|
}, "");
|
|
836
836
|
return /* @__PURE__ */ p(
|
|
837
837
|
"style",
|
|
838
838
|
{
|
|
839
839
|
"data-mantine-styles": "classes",
|
|
840
|
-
nonce:
|
|
840
|
+
nonce: r == null ? void 0 : r(),
|
|
841
841
|
dangerouslySetInnerHTML: { __html: e }
|
|
842
842
|
}
|
|
843
843
|
);
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
return Object.entries(
|
|
845
|
+
function dt(t) {
|
|
846
|
+
return Object.entries(t).map(([r, e]) => `${r}: ${e};`).join("");
|
|
847
847
|
}
|
|
848
|
-
function D(
|
|
849
|
-
return (Array.isArray(
|
|
848
|
+
function D(t, r) {
|
|
849
|
+
return (Array.isArray(t) ? t : [t]).reduce((n, a) => `${a}{${n}}`, r);
|
|
850
850
|
}
|
|
851
|
-
function Cn(
|
|
852
|
-
const e =
|
|
851
|
+
function Cn(t, r) {
|
|
852
|
+
const e = dt(t.variables), n = e ? D(r, e) : "", a = dt(t.dark), o = dt(t.light), i = a ? D(r === ":host" ? `${r}([data-mantine-color-scheme="dark"])` : `${r}[data-mantine-color-scheme="dark"]`, a) : "", s = o ? D(r === ":host" ? `${r}([data-mantine-color-scheme="light"])` : `${r}[data-mantine-color-scheme="light"]`, o) : "";
|
|
853
853
|
return `${n}${i}${s}`;
|
|
854
854
|
}
|
|
855
|
-
function xn({ color:
|
|
856
|
-
return
|
|
855
|
+
function xn({ color: t, theme: r, autoContrast: e }) {
|
|
856
|
+
return r.autoContrast && q({ color: t || r.primaryColor, theme: r }).isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function jt(t, r) {
|
|
859
859
|
return xn({
|
|
860
|
-
color:
|
|
861
|
-
theme:
|
|
860
|
+
color: t.colors[t.primaryColor][U(t, r)],
|
|
861
|
+
theme: t,
|
|
862
862
|
autoContrast: null
|
|
863
863
|
});
|
|
864
864
|
}
|
|
865
865
|
function J({
|
|
866
|
-
theme:
|
|
867
|
-
color:
|
|
866
|
+
theme: t,
|
|
867
|
+
color: r,
|
|
868
868
|
colorScheme: e,
|
|
869
|
-
name: n =
|
|
869
|
+
name: n = r,
|
|
870
870
|
withColorValues: a = !0
|
|
871
871
|
}) {
|
|
872
|
-
if (!
|
|
872
|
+
if (!t.colors[r])
|
|
873
873
|
return {};
|
|
874
874
|
if (e === "light") {
|
|
875
|
-
const s = U(
|
|
875
|
+
const s = U(t, "light"), l = {
|
|
876
876
|
[`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-filled)`,
|
|
877
877
|
[`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${s})`,
|
|
878
878
|
[`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${s === 9 ? 8 : s + 1})`,
|
|
879
|
-
[`--mantine-color-${n}-light`]: j(
|
|
880
|
-
[`--mantine-color-${n}-light-hover`]: j(
|
|
879
|
+
[`--mantine-color-${n}-light`]: j(t.colors[r][s], 0.1),
|
|
880
|
+
[`--mantine-color-${n}-light-hover`]: j(t.colors[r][s], 0.12),
|
|
881
881
|
[`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${s})`,
|
|
882
882
|
[`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${s})`,
|
|
883
|
-
[`--mantine-color-${n}-outline-hover`]: j(
|
|
883
|
+
[`--mantine-color-${n}-outline-hover`]: j(t.colors[r][s], 0.05)
|
|
884
884
|
};
|
|
885
885
|
return a ? {
|
|
886
|
-
[`--mantine-color-${n}-0`]:
|
|
887
|
-
[`--mantine-color-${n}-1`]:
|
|
888
|
-
[`--mantine-color-${n}-2`]:
|
|
889
|
-
[`--mantine-color-${n}-3`]:
|
|
890
|
-
[`--mantine-color-${n}-4`]:
|
|
891
|
-
[`--mantine-color-${n}-5`]:
|
|
892
|
-
[`--mantine-color-${n}-6`]:
|
|
893
|
-
[`--mantine-color-${n}-7`]:
|
|
894
|
-
[`--mantine-color-${n}-8`]:
|
|
895
|
-
[`--mantine-color-${n}-9`]:
|
|
886
|
+
[`--mantine-color-${n}-0`]: t.colors[r][0],
|
|
887
|
+
[`--mantine-color-${n}-1`]: t.colors[r][1],
|
|
888
|
+
[`--mantine-color-${n}-2`]: t.colors[r][2],
|
|
889
|
+
[`--mantine-color-${n}-3`]: t.colors[r][3],
|
|
890
|
+
[`--mantine-color-${n}-4`]: t.colors[r][4],
|
|
891
|
+
[`--mantine-color-${n}-5`]: t.colors[r][5],
|
|
892
|
+
[`--mantine-color-${n}-6`]: t.colors[r][6],
|
|
893
|
+
[`--mantine-color-${n}-7`]: t.colors[r][7],
|
|
894
|
+
[`--mantine-color-${n}-8`]: t.colors[r][8],
|
|
895
|
+
[`--mantine-color-${n}-9`]: t.colors[r][9],
|
|
896
896
|
...l
|
|
897
897
|
} : l;
|
|
898
898
|
}
|
|
899
|
-
const o = U(
|
|
899
|
+
const o = U(t, "dark"), i = {
|
|
900
900
|
[`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-4)`,
|
|
901
901
|
[`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${o})`,
|
|
902
902
|
[`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${o === 9 ? 8 : o + 1})`,
|
|
903
903
|
[`--mantine-color-${n}-light`]: j(
|
|
904
|
-
|
|
904
|
+
t.colors[r][Math.max(0, o - 2)],
|
|
905
905
|
0.15
|
|
906
906
|
),
|
|
907
907
|
[`--mantine-color-${n}-light-hover`]: j(
|
|
908
|
-
|
|
908
|
+
t.colors[r][Math.max(0, o - 2)],
|
|
909
909
|
0.2
|
|
910
910
|
),
|
|
911
911
|
[`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${Math.max(o - 5, 0)})`,
|
|
912
912
|
[`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${Math.max(o - 4, 0)})`,
|
|
913
913
|
[`--mantine-color-${n}-outline-hover`]: j(
|
|
914
|
-
|
|
914
|
+
t.colors[r][Math.max(o - 4, 0)],
|
|
915
915
|
0.05
|
|
916
916
|
)
|
|
917
917
|
};
|
|
918
918
|
return a ? {
|
|
919
|
-
[`--mantine-color-${n}-0`]:
|
|
920
|
-
[`--mantine-color-${n}-1`]:
|
|
921
|
-
[`--mantine-color-${n}-2`]:
|
|
922
|
-
[`--mantine-color-${n}-3`]:
|
|
923
|
-
[`--mantine-color-${n}-4`]:
|
|
924
|
-
[`--mantine-color-${n}-5`]:
|
|
925
|
-
[`--mantine-color-${n}-6`]:
|
|
926
|
-
[`--mantine-color-${n}-7`]:
|
|
927
|
-
[`--mantine-color-${n}-8`]:
|
|
928
|
-
[`--mantine-color-${n}-9`]:
|
|
919
|
+
[`--mantine-color-${n}-0`]: t.colors[r][0],
|
|
920
|
+
[`--mantine-color-${n}-1`]: t.colors[r][1],
|
|
921
|
+
[`--mantine-color-${n}-2`]: t.colors[r][2],
|
|
922
|
+
[`--mantine-color-${n}-3`]: t.colors[r][3],
|
|
923
|
+
[`--mantine-color-${n}-4`]: t.colors[r][4],
|
|
924
|
+
[`--mantine-color-${n}-5`]: t.colors[r][5],
|
|
925
|
+
[`--mantine-color-${n}-6`]: t.colors[r][6],
|
|
926
|
+
[`--mantine-color-${n}-7`]: t.colors[r][7],
|
|
927
|
+
[`--mantine-color-${n}-8`]: t.colors[r][8],
|
|
928
|
+
[`--mantine-color-${n}-9`]: t.colors[r][9],
|
|
929
929
|
...i
|
|
930
930
|
} : i;
|
|
931
931
|
}
|
|
932
|
-
function kn(
|
|
933
|
-
return !!
|
|
932
|
+
function kn(t) {
|
|
933
|
+
return !!t && typeof t == "object" && "mantine-virtual-color" in t;
|
|
934
934
|
}
|
|
935
|
-
function F(
|
|
936
|
-
M(
|
|
937
|
-
(n) => Object.assign(
|
|
935
|
+
function F(t, r, e) {
|
|
936
|
+
M(r).forEach(
|
|
937
|
+
(n) => Object.assign(t, { [`--mantine-${e}-${n}`]: r[n] })
|
|
938
938
|
);
|
|
939
939
|
}
|
|
940
|
-
const
|
|
941
|
-
const
|
|
940
|
+
const tr = (t) => {
|
|
941
|
+
const r = U(t, "light"), e = t.defaultRadius in t.radius ? t.radius[t.defaultRadius] : c(t.defaultRadius), n = {
|
|
942
942
|
variables: {
|
|
943
|
-
"--mantine-scale":
|
|
944
|
-
"--mantine-cursor-type":
|
|
943
|
+
"--mantine-scale": t.scale.toString(),
|
|
944
|
+
"--mantine-cursor-type": t.cursorType,
|
|
945
945
|
"--mantine-color-scheme": "light dark",
|
|
946
|
-
"--mantine-webkit-font-smoothing":
|
|
947
|
-
"--mantine-moz-font-smoothing":
|
|
948
|
-
"--mantine-color-white":
|
|
949
|
-
"--mantine-color-black":
|
|
950
|
-
"--mantine-line-height":
|
|
951
|
-
"--mantine-font-family":
|
|
952
|
-
"--mantine-font-family-monospace":
|
|
953
|
-
"--mantine-font-family-headings":
|
|
954
|
-
"--mantine-heading-font-weight":
|
|
955
|
-
"--mantine-heading-text-wrap":
|
|
946
|
+
"--mantine-webkit-font-smoothing": t.fontSmoothing ? "antialiased" : "unset",
|
|
947
|
+
"--mantine-moz-font-smoothing": t.fontSmoothing ? "grayscale" : "unset",
|
|
948
|
+
"--mantine-color-white": t.white,
|
|
949
|
+
"--mantine-color-black": t.black,
|
|
950
|
+
"--mantine-line-height": t.lineHeights.md,
|
|
951
|
+
"--mantine-font-family": t.fontFamily,
|
|
952
|
+
"--mantine-font-family-monospace": t.fontFamilyMonospace,
|
|
953
|
+
"--mantine-font-family-headings": t.headings.fontFamily,
|
|
954
|
+
"--mantine-heading-font-weight": t.headings.fontWeight,
|
|
955
|
+
"--mantine-heading-text-wrap": t.headings.textWrap,
|
|
956
956
|
"--mantine-radius-default": e,
|
|
957
957
|
// Primary colors
|
|
958
|
-
"--mantine-primary-color-filled": `var(--mantine-color-${
|
|
959
|
-
"--mantine-primary-color-filled-hover": `var(--mantine-color-${
|
|
960
|
-
"--mantine-primary-color-light": `var(--mantine-color-${
|
|
961
|
-
"--mantine-primary-color-light-hover": `var(--mantine-color-${
|
|
962
|
-
"--mantine-primary-color-light-color": `var(--mantine-color-${
|
|
958
|
+
"--mantine-primary-color-filled": `var(--mantine-color-${t.primaryColor}-filled)`,
|
|
959
|
+
"--mantine-primary-color-filled-hover": `var(--mantine-color-${t.primaryColor}-filled-hover)`,
|
|
960
|
+
"--mantine-primary-color-light": `var(--mantine-color-${t.primaryColor}-light)`,
|
|
961
|
+
"--mantine-primary-color-light-hover": `var(--mantine-color-${t.primaryColor}-light-hover)`,
|
|
962
|
+
"--mantine-primary-color-light-color": `var(--mantine-color-${t.primaryColor}-light-color)`
|
|
963
963
|
},
|
|
964
964
|
light: {
|
|
965
|
-
"--mantine-primary-color-contrast":
|
|
965
|
+
"--mantine-primary-color-contrast": jt(t, "light"),
|
|
966
966
|
"--mantine-color-bright": "var(--mantine-color-black)",
|
|
967
|
-
"--mantine-color-text":
|
|
968
|
-
"--mantine-color-body":
|
|
967
|
+
"--mantine-color-text": t.black,
|
|
968
|
+
"--mantine-color-body": t.white,
|
|
969
969
|
"--mantine-color-error": "var(--mantine-color-red-6)",
|
|
970
970
|
"--mantine-color-placeholder": "var(--mantine-color-gray-5)",
|
|
971
|
-
"--mantine-color-anchor": `var(--mantine-color-${
|
|
971
|
+
"--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-${r})`,
|
|
972
972
|
"--mantine-color-default": "var(--mantine-color-white)",
|
|
973
973
|
"--mantine-color-default-hover": "var(--mantine-color-gray-0)",
|
|
974
974
|
"--mantine-color-default-color": "var(--mantine-color-black)",
|
|
@@ -976,13 +976,13 @@ const rt = (r) => {
|
|
|
976
976
|
"--mantine-color-dimmed": "var(--mantine-color-gray-6)"
|
|
977
977
|
},
|
|
978
978
|
dark: {
|
|
979
|
-
"--mantine-primary-color-contrast":
|
|
979
|
+
"--mantine-primary-color-contrast": jt(t, "dark"),
|
|
980
980
|
"--mantine-color-bright": "var(--mantine-color-white)",
|
|
981
981
|
"--mantine-color-text": "var(--mantine-color-dark-0)",
|
|
982
982
|
"--mantine-color-body": "var(--mantine-color-dark-7)",
|
|
983
983
|
"--mantine-color-error": "var(--mantine-color-red-8)",
|
|
984
984
|
"--mantine-color-placeholder": "var(--mantine-color-dark-3)",
|
|
985
|
-
"--mantine-color-anchor": `var(--mantine-color-${
|
|
985
|
+
"--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-4)`,
|
|
986
986
|
"--mantine-color-default": "var(--mantine-color-dark-6)",
|
|
987
987
|
"--mantine-color-default-hover": "var(--mantine-color-dark-5)",
|
|
988
988
|
"--mantine-color-default-color": "var(--mantine-color-white)",
|
|
@@ -990,15 +990,15 @@ const rt = (r) => {
|
|
|
990
990
|
"--mantine-color-dimmed": "var(--mantine-color-dark-2)"
|
|
991
991
|
}
|
|
992
992
|
};
|
|
993
|
-
F(n.variables,
|
|
994
|
-
n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${
|
|
995
|
-
}), M(
|
|
996
|
-
const i =
|
|
993
|
+
F(n.variables, t.breakpoints, "breakpoint"), F(n.variables, t.spacing, "spacing"), F(n.variables, t.fontSizes, "font-size"), F(n.variables, t.lineHeights, "line-height"), F(n.variables, t.shadows, "shadow"), F(n.variables, t.radius, "radius"), t.colors[t.primaryColor].forEach((o, i) => {
|
|
994
|
+
n.variables[`--mantine-primary-color-${i}`] = `var(--mantine-color-${t.primaryColor}-${i})`;
|
|
995
|
+
}), M(t.colors).forEach((o) => {
|
|
996
|
+
const i = t.colors[o];
|
|
997
997
|
if (kn(i)) {
|
|
998
998
|
Object.assign(
|
|
999
999
|
n.light,
|
|
1000
1000
|
J({
|
|
1001
|
-
theme:
|
|
1001
|
+
theme: t,
|
|
1002
1002
|
name: i.name,
|
|
1003
1003
|
color: i.light,
|
|
1004
1004
|
colorScheme: "light",
|
|
@@ -1007,7 +1007,7 @@ const rt = (r) => {
|
|
|
1007
1007
|
), Object.assign(
|
|
1008
1008
|
n.dark,
|
|
1009
1009
|
J({
|
|
1010
|
-
theme:
|
|
1010
|
+
theme: t,
|
|
1011
1011
|
name: i.name,
|
|
1012
1012
|
color: i.dark,
|
|
1013
1013
|
colorScheme: "dark",
|
|
@@ -1021,7 +1021,7 @@ const rt = (r) => {
|
|
|
1021
1021
|
}), Object.assign(
|
|
1022
1022
|
n.light,
|
|
1023
1023
|
J({
|
|
1024
|
-
theme:
|
|
1024
|
+
theme: t,
|
|
1025
1025
|
color: o,
|
|
1026
1026
|
colorScheme: "light",
|
|
1027
1027
|
withColorValues: !1
|
|
@@ -1029,87 +1029,87 @@ const rt = (r) => {
|
|
|
1029
1029
|
), Object.assign(
|
|
1030
1030
|
n.dark,
|
|
1031
1031
|
J({
|
|
1032
|
-
theme:
|
|
1032
|
+
theme: t,
|
|
1033
1033
|
color: o,
|
|
1034
1034
|
colorScheme: "dark",
|
|
1035
1035
|
withColorValues: !1
|
|
1036
1036
|
})
|
|
1037
1037
|
);
|
|
1038
1038
|
});
|
|
1039
|
-
const a =
|
|
1039
|
+
const a = t.headings.sizes;
|
|
1040
1040
|
return M(a).forEach((o) => {
|
|
1041
|
-
n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight ||
|
|
1041
|
+
n.variables[`--mantine-${o}-font-size`] = a[o].fontSize, n.variables[`--mantine-${o}-line-height`] = a[o].lineHeight, n.variables[`--mantine-${o}-font-weight`] = a[o].fontWeight || t.headings.fontWeight;
|
|
1042
1042
|
}), n;
|
|
1043
1043
|
};
|
|
1044
|
-
function Nn({ theme:
|
|
1045
|
-
const e =
|
|
1046
|
-
return n ?
|
|
1044
|
+
function Nn({ theme: t, generator: r }) {
|
|
1045
|
+
const e = tr(t), n = r == null ? void 0 : r(t);
|
|
1046
|
+
return n ? vt(e, n) : e;
|
|
1047
1047
|
}
|
|
1048
|
-
const
|
|
1049
|
-
function Tn(
|
|
1050
|
-
const
|
|
1048
|
+
const ft = tr(kt);
|
|
1049
|
+
function Tn(t) {
|
|
1050
|
+
const r = {
|
|
1051
1051
|
variables: {},
|
|
1052
1052
|
light: {},
|
|
1053
1053
|
dark: {}
|
|
1054
1054
|
};
|
|
1055
|
-
return M(
|
|
1056
|
-
|
|
1057
|
-
}), M(
|
|
1058
|
-
|
|
1059
|
-
}), M(
|
|
1060
|
-
|
|
1061
|
-
}),
|
|
1062
|
-
}
|
|
1063
|
-
function Mn(
|
|
1055
|
+
return M(t.variables).forEach((e) => {
|
|
1056
|
+
ft.variables[e] !== t.variables[e] && (r.variables[e] = t.variables[e]);
|
|
1057
|
+
}), M(t.light).forEach((e) => {
|
|
1058
|
+
ft.light[e] !== t.light[e] && (r.light[e] = t.light[e]);
|
|
1059
|
+
}), M(t.dark).forEach((e) => {
|
|
1060
|
+
ft.dark[e] !== t.dark[e] && (r.dark[e] = t.dark[e]);
|
|
1061
|
+
}), r;
|
|
1062
|
+
}
|
|
1063
|
+
function Mn(t) {
|
|
1064
1064
|
return `
|
|
1065
|
-
${
|
|
1066
|
-
${
|
|
1065
|
+
${t}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
|
|
1066
|
+
${t}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
|
|
1067
1067
|
`;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
cssVariablesSelector:
|
|
1071
|
-
deduplicateCssVariables:
|
|
1069
|
+
function rr({
|
|
1070
|
+
cssVariablesSelector: t,
|
|
1071
|
+
deduplicateCssVariables: r
|
|
1072
1072
|
}) {
|
|
1073
|
-
const e = V(), n =
|
|
1073
|
+
const e = V(), n = Ct(), a = nn(), o = Nn({ theme: e, generator: a }), i = t === ":root" && r, s = i ? Tn(o) : o, l = Cn(s, t);
|
|
1074
1074
|
return l ? /* @__PURE__ */ p(
|
|
1075
1075
|
"style",
|
|
1076
1076
|
{
|
|
1077
1077
|
"data-mantine-styles": !0,
|
|
1078
1078
|
nonce: n == null ? void 0 : n(),
|
|
1079
1079
|
dangerouslySetInnerHTML: {
|
|
1080
|
-
__html: `${l}${i ? "" : Mn(
|
|
1080
|
+
__html: `${l}${i ? "" : Mn(t)}`
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
) : null;
|
|
1084
1084
|
}
|
|
1085
|
-
|
|
1085
|
+
rr.displayName = "@mantine/CssVariables";
|
|
1086
1086
|
function Rn() {
|
|
1087
|
-
const
|
|
1088
|
-
console.error = (...
|
|
1089
|
-
|
|
1087
|
+
const t = console.error;
|
|
1088
|
+
console.error = (...r) => {
|
|
1089
|
+
r.length > 1 && typeof r[0] == "string" && r[0].toLowerCase().includes("extra attributes from the server") && typeof r[1] == "string" && r[1].toLowerCase().includes("data-mantine-color-scheme") || t(...r);
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function H(
|
|
1092
|
+
function H(t, r) {
|
|
1093
1093
|
var a, o;
|
|
1094
|
-
const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n =
|
|
1095
|
-
(o =
|
|
1094
|
+
const e = typeof window < "u" && "matchMedia" in window && ((a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : a.matches), n = t !== "auto" ? t : e ? "dark" : "light";
|
|
1095
|
+
(o = r()) == null || o.setAttribute("data-mantine-color-scheme", n);
|
|
1096
1096
|
}
|
|
1097
1097
|
function _n({
|
|
1098
|
-
manager:
|
|
1099
|
-
defaultColorScheme:
|
|
1098
|
+
manager: t,
|
|
1099
|
+
defaultColorScheme: r,
|
|
1100
1100
|
getRootElement: e,
|
|
1101
1101
|
forceColorScheme: n
|
|
1102
1102
|
}) {
|
|
1103
|
-
const a = W(null), [o, i] =
|
|
1103
|
+
const a = W(null), [o, i] = rt(() => t.get(r)), s = n || o, l = Lt(
|
|
1104
1104
|
(u) => {
|
|
1105
|
-
n || (H(u, e), i(u),
|
|
1105
|
+
n || (H(u, e), i(u), t.set(u));
|
|
1106
1106
|
},
|
|
1107
|
-
[
|
|
1108
|
-
), d =
|
|
1109
|
-
i(
|
|
1110
|
-
}, [
|
|
1111
|
-
return A(() => (
|
|
1112
|
-
H(
|
|
1107
|
+
[t.set, s, n]
|
|
1108
|
+
), d = Lt(() => {
|
|
1109
|
+
i(r), H(r, e), t.clear();
|
|
1110
|
+
}, [t.clear, r]);
|
|
1111
|
+
return A(() => (t.subscribe(l), t.unsubscribe), [t.subscribe, t.unsubscribe]), Qt(() => {
|
|
1112
|
+
H(t.get(r), e);
|
|
1113
1113
|
}, []), A(() => {
|
|
1114
1114
|
var f;
|
|
1115
1115
|
if (n)
|
|
@@ -1126,18 +1126,18 @@ function _n({
|
|
|
1126
1126
|
}, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: d };
|
|
1127
1127
|
}
|
|
1128
1128
|
function Pn({
|
|
1129
|
-
respectReducedMotion:
|
|
1130
|
-
getRootElement:
|
|
1129
|
+
respectReducedMotion: t,
|
|
1130
|
+
getRootElement: r
|
|
1131
1131
|
}) {
|
|
1132
|
-
|
|
1132
|
+
Qt(() => {
|
|
1133
1133
|
var e;
|
|
1134
|
-
|
|
1135
|
-
}, [
|
|
1134
|
+
t && ((e = r()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
|
|
1135
|
+
}, [t]);
|
|
1136
1136
|
}
|
|
1137
1137
|
Rn();
|
|
1138
|
-
function
|
|
1139
|
-
theme:
|
|
1140
|
-
children:
|
|
1138
|
+
function nr({
|
|
1139
|
+
theme: t,
|
|
1140
|
+
children: r,
|
|
1141
1141
|
getStyleNonce: e,
|
|
1142
1142
|
withStaticClasses: n = !0,
|
|
1143
1143
|
withGlobalClasses: a = !0,
|
|
@@ -1160,10 +1160,10 @@ function nt({
|
|
|
1160
1160
|
getRootElement: f
|
|
1161
1161
|
});
|
|
1162
1162
|
return Pn({
|
|
1163
|
-
respectReducedMotion: (
|
|
1163
|
+
respectReducedMotion: (t == null ? void 0 : t.respectReducedMotion) || !1,
|
|
1164
1164
|
getRootElement: f
|
|
1165
1165
|
}), /* @__PURE__ */ p(
|
|
1166
|
-
|
|
1166
|
+
Zt.Provider,
|
|
1167
1167
|
{
|
|
1168
1168
|
value: {
|
|
1169
1169
|
colorScheme: h,
|
|
@@ -1178,82 +1178,82 @@ function nt({
|
|
|
1178
1178
|
stylesTransform: y,
|
|
1179
1179
|
env: $
|
|
1180
1180
|
},
|
|
1181
|
-
children: /* @__PURE__ */ z(
|
|
1181
|
+
children: /* @__PURE__ */ z(Jt, { theme: t, children: [
|
|
1182
1182
|
i && /* @__PURE__ */ p(
|
|
1183
|
-
|
|
1183
|
+
rr,
|
|
1184
1184
|
{
|
|
1185
1185
|
cssVariablesSelector: s,
|
|
1186
1186
|
deduplicateCssVariables: o
|
|
1187
1187
|
}
|
|
1188
1188
|
),
|
|
1189
1189
|
a && /* @__PURE__ */ p(wn, {}),
|
|
1190
|
-
|
|
1190
|
+
r
|
|
1191
1191
|
] })
|
|
1192
1192
|
}
|
|
1193
1193
|
);
|
|
1194
1194
|
}
|
|
1195
|
-
|
|
1195
|
+
nr.displayName = "@mantine/core/MantineProvider";
|
|
1196
1196
|
const Ln = {
|
|
1197
1197
|
always: "mantine-focus-always",
|
|
1198
1198
|
auto: "mantine-focus-auto",
|
|
1199
1199
|
never: "mantine-focus-never"
|
|
1200
1200
|
};
|
|
1201
|
-
function En({ theme:
|
|
1201
|
+
function En({ theme: t, options: r, unstyled: e }) {
|
|
1202
1202
|
return B(
|
|
1203
|
-
(
|
|
1204
|
-
(
|
|
1203
|
+
(r == null ? void 0 : r.focusable) && !e && (t.focusClassName || Ln[t.focusRing]),
|
|
1204
|
+
(r == null ? void 0 : r.active) && !e && t.activeClassName
|
|
1205
1205
|
);
|
|
1206
1206
|
}
|
|
1207
1207
|
function An({
|
|
1208
|
-
selector:
|
|
1209
|
-
stylesCtx:
|
|
1208
|
+
selector: t,
|
|
1209
|
+
stylesCtx: r,
|
|
1210
1210
|
options: e,
|
|
1211
1211
|
props: n,
|
|
1212
1212
|
theme: a
|
|
1213
1213
|
}) {
|
|
1214
|
-
return
|
|
1214
|
+
return wt({
|
|
1215
1215
|
theme: a,
|
|
1216
1216
|
classNames: e == null ? void 0 : e.classNames,
|
|
1217
1217
|
props: (e == null ? void 0 : e.props) || n,
|
|
1218
|
-
stylesCtx:
|
|
1219
|
-
})[
|
|
1218
|
+
stylesCtx: r
|
|
1219
|
+
})[t];
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1222
|
-
selector:
|
|
1223
|
-
stylesCtx:
|
|
1221
|
+
function Ft({
|
|
1222
|
+
selector: t,
|
|
1223
|
+
stylesCtx: r,
|
|
1224
1224
|
theme: e,
|
|
1225
1225
|
classNames: n,
|
|
1226
1226
|
props: a
|
|
1227
1227
|
}) {
|
|
1228
|
-
return
|
|
1228
|
+
return wt({ theme: e, classNames: n, props: a, stylesCtx: r })[t];
|
|
1229
1229
|
}
|
|
1230
|
-
function On({ rootSelector:
|
|
1231
|
-
return
|
|
1230
|
+
function On({ rootSelector: t, selector: r, className: e }) {
|
|
1231
|
+
return t === r ? e : void 0;
|
|
1232
1232
|
}
|
|
1233
|
-
function In({ selector:
|
|
1234
|
-
return e ? void 0 : t
|
|
1233
|
+
function In({ selector: t, classes: r, unstyled: e }) {
|
|
1234
|
+
return e ? void 0 : r[t];
|
|
1235
1235
|
}
|
|
1236
1236
|
function Bn({
|
|
1237
|
-
themeName:
|
|
1238
|
-
classNamesPrefix:
|
|
1237
|
+
themeName: t,
|
|
1238
|
+
classNamesPrefix: r,
|
|
1239
1239
|
selector: e,
|
|
1240
1240
|
withStaticClass: n
|
|
1241
1241
|
}) {
|
|
1242
|
-
return n === !1 ? [] :
|
|
1242
|
+
return n === !1 ? [] : t.map((a) => `${r}-${a}-${e}`);
|
|
1243
1243
|
}
|
|
1244
1244
|
function Vn({
|
|
1245
|
-
themeName:
|
|
1246
|
-
theme:
|
|
1245
|
+
themeName: t,
|
|
1246
|
+
theme: r,
|
|
1247
1247
|
selector: e,
|
|
1248
1248
|
props: n,
|
|
1249
1249
|
stylesCtx: a
|
|
1250
1250
|
}) {
|
|
1251
|
-
return
|
|
1251
|
+
return t.map(
|
|
1252
1252
|
(o) => {
|
|
1253
1253
|
var i, s;
|
|
1254
|
-
return (s =
|
|
1255
|
-
theme:
|
|
1256
|
-
classNames: (i =
|
|
1254
|
+
return (s = wt({
|
|
1255
|
+
theme: r,
|
|
1256
|
+
classNames: (i = r.components[o]) == null ? void 0 : i.classNames,
|
|
1257
1257
|
props: n,
|
|
1258
1258
|
stylesCtx: a
|
|
1259
1259
|
})) == null ? void 0 : s[e];
|
|
@@ -1261,16 +1261,16 @@ function Vn({
|
|
|
1261
1261
|
);
|
|
1262
1262
|
}
|
|
1263
1263
|
function jn({
|
|
1264
|
-
options:
|
|
1265
|
-
classes:
|
|
1264
|
+
options: t,
|
|
1265
|
+
classes: r,
|
|
1266
1266
|
selector: e,
|
|
1267
1267
|
unstyled: n
|
|
1268
1268
|
}) {
|
|
1269
|
-
return
|
|
1269
|
+
return t != null && t.variant && !n ? r[`${e}--${t.variant}`] : void 0;
|
|
1270
1270
|
}
|
|
1271
1271
|
function Fn({
|
|
1272
|
-
theme:
|
|
1273
|
-
options:
|
|
1272
|
+
theme: t,
|
|
1273
|
+
options: r,
|
|
1274
1274
|
themeName: e,
|
|
1275
1275
|
selector: n,
|
|
1276
1276
|
classNamesPrefix: a,
|
|
@@ -1286,56 +1286,56 @@ function Fn({
|
|
|
1286
1286
|
transformedStyles: y
|
|
1287
1287
|
}) {
|
|
1288
1288
|
return B(
|
|
1289
|
-
En({ theme:
|
|
1290
|
-
Vn({ theme:
|
|
1291
|
-
jn({ options:
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
An({ selector: n, stylesCtx: f, options:
|
|
1289
|
+
En({ theme: t, options: r, unstyled: s || g }),
|
|
1290
|
+
Vn({ theme: t, themeName: e, selector: n, props: u, stylesCtx: f }),
|
|
1291
|
+
jn({ options: r, classes: i, selector: n, unstyled: s }),
|
|
1292
|
+
Ft({ selector: n, stylesCtx: f, theme: t, classNames: o, props: u }),
|
|
1293
|
+
Ft({ selector: n, stylesCtx: f, theme: t, classNames: y, props: u }),
|
|
1294
|
+
An({ selector: n, stylesCtx: f, options: r, props: u, theme: t }),
|
|
1295
1295
|
On({ rootSelector: d, selector: n, className: l }),
|
|
1296
1296
|
In({ selector: n, classes: i, unstyled: s || g }),
|
|
1297
1297
|
m && !g && Bn({
|
|
1298
1298
|
themeName: e,
|
|
1299
1299
|
classNamesPrefix: a,
|
|
1300
1300
|
selector: n,
|
|
1301
|
-
withStaticClass:
|
|
1301
|
+
withStaticClass: r == null ? void 0 : r.withStaticClass
|
|
1302
1302
|
}),
|
|
1303
|
-
|
|
1303
|
+
r == null ? void 0 : r.className
|
|
1304
1304
|
);
|
|
1305
1305
|
}
|
|
1306
1306
|
function Hn({
|
|
1307
|
-
theme:
|
|
1308
|
-
themeName:
|
|
1307
|
+
theme: t,
|
|
1308
|
+
themeName: r,
|
|
1309
1309
|
props: e,
|
|
1310
1310
|
stylesCtx: n,
|
|
1311
1311
|
selector: a
|
|
1312
1312
|
}) {
|
|
1313
|
-
return
|
|
1313
|
+
return r.map(
|
|
1314
1314
|
(o) => {
|
|
1315
1315
|
var i;
|
|
1316
|
-
return
|
|
1317
|
-
theme:
|
|
1318
|
-
styles: (i =
|
|
1316
|
+
return gt({
|
|
1317
|
+
theme: t,
|
|
1318
|
+
styles: (i = t.components[o]) == null ? void 0 : i.styles,
|
|
1319
1319
|
props: e,
|
|
1320
1320
|
stylesCtx: n
|
|
1321
1321
|
})[a];
|
|
1322
1322
|
}
|
|
1323
1323
|
).reduce((o, i) => ({ ...o, ...i }), {});
|
|
1324
1324
|
}
|
|
1325
|
-
function
|
|
1326
|
-
return Array.isArray(
|
|
1327
|
-
(e, n) => ({ ...e, ...
|
|
1325
|
+
function bt({ style: t, theme: r }) {
|
|
1326
|
+
return Array.isArray(t) ? [...t].reduce(
|
|
1327
|
+
(e, n) => ({ ...e, ...bt({ style: n, theme: r }) }),
|
|
1328
1328
|
{}
|
|
1329
|
-
) : typeof
|
|
1329
|
+
) : typeof t == "function" ? t(r) : t ?? {};
|
|
1330
1330
|
}
|
|
1331
|
-
function Wn(
|
|
1332
|
-
return
|
|
1333
|
-
|
|
1334
|
-
}),
|
|
1331
|
+
function Wn(t) {
|
|
1332
|
+
return t.reduce((r, e) => (e && Object.keys(e).forEach((n) => {
|
|
1333
|
+
r[n] = { ...r[n], ...St(e[n]) };
|
|
1334
|
+
}), r), {});
|
|
1335
1335
|
}
|
|
1336
1336
|
function zn({
|
|
1337
|
-
vars:
|
|
1338
|
-
varsResolver:
|
|
1337
|
+
vars: t,
|
|
1338
|
+
varsResolver: r,
|
|
1339
1339
|
theme: e,
|
|
1340
1340
|
props: n,
|
|
1341
1341
|
stylesCtx: a,
|
|
@@ -1345,17 +1345,17 @@ function zn({
|
|
|
1345
1345
|
}) {
|
|
1346
1346
|
var l;
|
|
1347
1347
|
return (l = Wn([
|
|
1348
|
-
s ? {} :
|
|
1348
|
+
s ? {} : r == null ? void 0 : r(e, n, a),
|
|
1349
1349
|
...i.map((d) => {
|
|
1350
1350
|
var u, f, m;
|
|
1351
1351
|
return (m = (f = (u = e.components) == null ? void 0 : u[d]) == null ? void 0 : f.vars) == null ? void 0 : m.call(f, e, n, a);
|
|
1352
1352
|
}),
|
|
1353
|
-
|
|
1353
|
+
t == null ? void 0 : t(e, n, a)
|
|
1354
1354
|
])) == null ? void 0 : l[o];
|
|
1355
1355
|
}
|
|
1356
1356
|
function Yn({
|
|
1357
|
-
theme:
|
|
1358
|
-
themeName:
|
|
1357
|
+
theme: t,
|
|
1358
|
+
themeName: r,
|
|
1359
1359
|
selector: e,
|
|
1360
1360
|
options: n,
|
|
1361
1361
|
props: a,
|
|
@@ -1369,26 +1369,26 @@ function Yn({
|
|
|
1369
1369
|
withStylesTransform: m
|
|
1370
1370
|
}) {
|
|
1371
1371
|
return {
|
|
1372
|
-
...!m && Hn({ theme:
|
|
1373
|
-
...!m &&
|
|
1374
|
-
...!m &&
|
|
1375
|
-
...zn({ theme:
|
|
1376
|
-
...i === e ?
|
|
1377
|
-
...
|
|
1372
|
+
...!m && Hn({ theme: t, themeName: r, props: a, stylesCtx: o, selector: e }),
|
|
1373
|
+
...!m && gt({ theme: t, styles: s, props: a, stylesCtx: o })[e],
|
|
1374
|
+
...!m && gt({ theme: t, styles: n == null ? void 0 : n.styles, props: (n == null ? void 0 : n.props) || a, stylesCtx: o })[e],
|
|
1375
|
+
...zn({ theme: t, props: a, stylesCtx: o, vars: d, varsResolver: u, selector: e, themeName: r, headless: f }),
|
|
1376
|
+
...i === e ? bt({ style: l, theme: t }) : null,
|
|
1377
|
+
...bt({ style: n == null ? void 0 : n.style, theme: t })
|
|
1378
1378
|
};
|
|
1379
1379
|
}
|
|
1380
|
-
function Gn({ props:
|
|
1380
|
+
function Gn({ props: t, stylesCtx: r, themeName: e }) {
|
|
1381
1381
|
var i;
|
|
1382
1382
|
const n = V(), a = (i = cn()) == null ? void 0 : i();
|
|
1383
1383
|
return {
|
|
1384
1384
|
getTransformedStyles: (s) => a ? [
|
|
1385
1385
|
...s.map(
|
|
1386
|
-
(d) => a(d, { props:
|
|
1386
|
+
(d) => a(d, { props: t, theme: n, ctx: r })
|
|
1387
1387
|
),
|
|
1388
1388
|
...e.map(
|
|
1389
1389
|
(d) => {
|
|
1390
1390
|
var u;
|
|
1391
|
-
return a((u = n.components[d]) == null ? void 0 : u.styles, { props:
|
|
1391
|
+
return a((u = n.components[d]) == null ? void 0 : u.styles, { props: t, theme: n, ctx: r });
|
|
1392
1392
|
}
|
|
1393
1393
|
)
|
|
1394
1394
|
].filter(Boolean) : [],
|
|
@@ -1396,8 +1396,8 @@ function Gn({ props: r, stylesCtx: t, themeName: e }) {
|
|
|
1396
1396
|
};
|
|
1397
1397
|
}
|
|
1398
1398
|
function Q({
|
|
1399
|
-
name:
|
|
1400
|
-
classes:
|
|
1399
|
+
name: t,
|
|
1400
|
+
classes: r,
|
|
1401
1401
|
props: e,
|
|
1402
1402
|
stylesCtx: n,
|
|
1403
1403
|
className: a,
|
|
@@ -1409,7 +1409,7 @@ function Q({
|
|
|
1409
1409
|
vars: u,
|
|
1410
1410
|
varsResolver: f
|
|
1411
1411
|
}) {
|
|
1412
|
-
const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(
|
|
1412
|
+
const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(t) ? t : [t]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
|
|
1413
1413
|
props: e,
|
|
1414
1414
|
stylesCtx: n,
|
|
1415
1415
|
themeName: h
|
|
@@ -1422,7 +1422,7 @@ function Q({
|
|
|
1422
1422
|
selector: v,
|
|
1423
1423
|
classNamesPrefix: g,
|
|
1424
1424
|
classNames: l,
|
|
1425
|
-
classes:
|
|
1425
|
+
classes: r,
|
|
1426
1426
|
unstyled: s,
|
|
1427
1427
|
className: a,
|
|
1428
1428
|
rootSelector: i,
|
|
@@ -1450,23 +1450,23 @@ function Q({
|
|
|
1450
1450
|
});
|
|
1451
1451
|
}
|
|
1452
1452
|
const Dn = ({
|
|
1453
|
-
defaultColorScheme:
|
|
1454
|
-
localStorageKey:
|
|
1453
|
+
defaultColorScheme: t,
|
|
1454
|
+
localStorageKey: r,
|
|
1455
1455
|
forceColorScheme: e
|
|
1456
1456
|
}) => e ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${e}');` : `try {
|
|
1457
|
-
var _colorScheme = window.localStorage.getItem("${
|
|
1458
|
-
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${
|
|
1457
|
+
var _colorScheme = window.localStorage.getItem("${r}");
|
|
1458
|
+
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
1459
1459
|
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1460
1460
|
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
1461
1461
|
} catch (e) {}
|
|
1462
1462
|
`;
|
|
1463
|
-
function
|
|
1464
|
-
defaultColorScheme:
|
|
1465
|
-
localStorageKey:
|
|
1463
|
+
function Le({
|
|
1464
|
+
defaultColorScheme: t = "light",
|
|
1465
|
+
localStorageKey: r = "mantine-color-scheme-value",
|
|
1466
1466
|
forceColorScheme: e,
|
|
1467
1467
|
...n
|
|
1468
1468
|
}) {
|
|
1469
|
-
const a = ["light", "dark", "auto"].includes(
|
|
1469
|
+
const a = ["light", "dark", "auto"].includes(t) ? t : "light";
|
|
1470
1470
|
return /* @__PURE__ */ p(
|
|
1471
1471
|
"script",
|
|
1472
1472
|
{
|
|
@@ -1475,48 +1475,48 @@ function _e({
|
|
|
1475
1475
|
dangerouslySetInnerHTML: {
|
|
1476
1476
|
__html: Dn({
|
|
1477
1477
|
defaultColorScheme: a,
|
|
1478
|
-
localStorageKey:
|
|
1478
|
+
localStorageKey: r,
|
|
1479
1479
|
forceColorScheme: e
|
|
1480
1480
|
})
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
);
|
|
1484
1484
|
}
|
|
1485
|
-
function I(
|
|
1485
|
+
function I(t, r, e) {
|
|
1486
1486
|
var i;
|
|
1487
|
-
const n = V(), a = (i = n.components[
|
|
1488
|
-
return { ...
|
|
1487
|
+
const n = V(), a = (i = n.components[t]) == null ? void 0 : i.defaultProps, o = typeof a == "function" ? a(n) : a;
|
|
1488
|
+
return { ...r, ...o, ...St(e) };
|
|
1489
1489
|
}
|
|
1490
|
-
const
|
|
1490
|
+
const Ee = {
|
|
1491
1491
|
suppressHydrationWarning: !0,
|
|
1492
1492
|
"data-mantine-color-scheme": "light"
|
|
1493
1493
|
};
|
|
1494
|
-
function
|
|
1495
|
-
return M(
|
|
1496
|
-
(
|
|
1494
|
+
function ut(t) {
|
|
1495
|
+
return M(t).reduce(
|
|
1496
|
+
(r, e) => t[e] !== void 0 ? `${r}${Dr(e)}:${t[e]};` : r,
|
|
1497
1497
|
""
|
|
1498
1498
|
).trim();
|
|
1499
1499
|
}
|
|
1500
|
-
function Xn({ selector:
|
|
1501
|
-
const a =
|
|
1502
|
-
(s) => `@container ${s.query}{${
|
|
1500
|
+
function Xn({ selector: t, styles: r, media: e, container: n }) {
|
|
1501
|
+
const a = r ? ut(r) : "", o = Array.isArray(e) ? e.map((s) => `@media${s.query}{${t}{${ut(s.styles)}}}`) : [], i = Array.isArray(n) ? n.map(
|
|
1502
|
+
(s) => `@container ${s.query}{${t}{${ut(s.styles)}}}`
|
|
1503
1503
|
) : [];
|
|
1504
|
-
return `${a ? `${
|
|
1504
|
+
return `${a ? `${t}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
|
|
1505
1505
|
}
|
|
1506
|
-
function Un(
|
|
1507
|
-
const
|
|
1506
|
+
function Un(t) {
|
|
1507
|
+
const r = Ct();
|
|
1508
1508
|
return /* @__PURE__ */ p(
|
|
1509
1509
|
"style",
|
|
1510
1510
|
{
|
|
1511
1511
|
"data-mantine-styles": "inline",
|
|
1512
|
-
nonce:
|
|
1513
|
-
dangerouslySetInnerHTML: { __html: Xn(
|
|
1512
|
+
nonce: r == null ? void 0 : r(),
|
|
1513
|
+
dangerouslySetInnerHTML: { __html: Xn(t) }
|
|
1514
1514
|
}
|
|
1515
1515
|
);
|
|
1516
1516
|
}
|
|
1517
|
-
function qn(
|
|
1517
|
+
function qn(t) {
|
|
1518
1518
|
const {
|
|
1519
|
-
m:
|
|
1519
|
+
m: r,
|
|
1520
1520
|
mx: e,
|
|
1521
1521
|
my: n,
|
|
1522
1522
|
mt: a,
|
|
@@ -1541,39 +1541,39 @@ function qn(r) {
|
|
|
1541
1541
|
ff: k,
|
|
1542
1542
|
fz: S,
|
|
1543
1543
|
fw: E,
|
|
1544
|
-
lts:
|
|
1545
|
-
ta:
|
|
1546
|
-
lh:
|
|
1547
|
-
fs:
|
|
1548
|
-
tt:
|
|
1549
|
-
td:
|
|
1550
|
-
w:
|
|
1551
|
-
miw: $
|
|
1552
|
-
maw:
|
|
1553
|
-
h:
|
|
1554
|
-
mih:
|
|
1555
|
-
mah:
|
|
1556
|
-
bgsz:
|
|
1557
|
-
bgp:
|
|
1558
|
-
bgr:
|
|
1559
|
-
bga:
|
|
1560
|
-
pos:
|
|
1561
|
-
top:
|
|
1562
|
-
left:
|
|
1563
|
-
bottom:
|
|
1564
|
-
right:
|
|
1565
|
-
inset:
|
|
1566
|
-
display:
|
|
1567
|
-
flex:
|
|
1568
|
-
hiddenFrom:
|
|
1569
|
-
visibleFrom:
|
|
1570
|
-
lightHidden:
|
|
1571
|
-
darkHidden:
|
|
1572
|
-
sx:
|
|
1573
|
-
...
|
|
1574
|
-
} =
|
|
1575
|
-
return { styleProps:
|
|
1576
|
-
m:
|
|
1544
|
+
lts: ot,
|
|
1545
|
+
ta: at,
|
|
1546
|
+
lh: pr,
|
|
1547
|
+
fs: gr,
|
|
1548
|
+
tt: yr,
|
|
1549
|
+
td: br,
|
|
1550
|
+
w: hr,
|
|
1551
|
+
miw: $r,
|
|
1552
|
+
maw: vr,
|
|
1553
|
+
h: Sr,
|
|
1554
|
+
mih: wr,
|
|
1555
|
+
mah: Cr,
|
|
1556
|
+
bgsz: xr,
|
|
1557
|
+
bgp: kr,
|
|
1558
|
+
bgr: Nr,
|
|
1559
|
+
bga: Tr,
|
|
1560
|
+
pos: Mr,
|
|
1561
|
+
top: Rr,
|
|
1562
|
+
left: _r,
|
|
1563
|
+
bottom: Pr,
|
|
1564
|
+
right: Lr,
|
|
1565
|
+
inset: Er,
|
|
1566
|
+
display: Ar,
|
|
1567
|
+
flex: Or,
|
|
1568
|
+
hiddenFrom: Ir,
|
|
1569
|
+
visibleFrom: Br,
|
|
1570
|
+
lightHidden: Vr,
|
|
1571
|
+
darkHidden: jr,
|
|
1572
|
+
sx: Fr,
|
|
1573
|
+
...Hr
|
|
1574
|
+
} = t;
|
|
1575
|
+
return { styleProps: St({
|
|
1576
|
+
m: r,
|
|
1577
1577
|
mx: e,
|
|
1578
1578
|
my: n,
|
|
1579
1579
|
mt: a,
|
|
@@ -1598,36 +1598,36 @@ function qn(r) {
|
|
|
1598
1598
|
ff: k,
|
|
1599
1599
|
fz: S,
|
|
1600
1600
|
fw: E,
|
|
1601
|
-
lts:
|
|
1602
|
-
ta:
|
|
1603
|
-
lh:
|
|
1604
|
-
fs:
|
|
1605
|
-
tt:
|
|
1606
|
-
td:
|
|
1607
|
-
w:
|
|
1608
|
-
miw: $
|
|
1609
|
-
maw:
|
|
1610
|
-
h:
|
|
1611
|
-
mih:
|
|
1612
|
-
mah:
|
|
1613
|
-
bgsz:
|
|
1614
|
-
bgp:
|
|
1615
|
-
bgr:
|
|
1616
|
-
bga:
|
|
1617
|
-
pos:
|
|
1618
|
-
top:
|
|
1619
|
-
left:
|
|
1620
|
-
bottom:
|
|
1621
|
-
right:
|
|
1622
|
-
inset:
|
|
1623
|
-
display:
|
|
1624
|
-
flex:
|
|
1625
|
-
hiddenFrom:
|
|
1626
|
-
visibleFrom:
|
|
1627
|
-
lightHidden:
|
|
1628
|
-
darkHidden:
|
|
1629
|
-
sx:
|
|
1630
|
-
}), rest:
|
|
1601
|
+
lts: ot,
|
|
1602
|
+
ta: at,
|
|
1603
|
+
lh: pr,
|
|
1604
|
+
fs: gr,
|
|
1605
|
+
tt: yr,
|
|
1606
|
+
td: br,
|
|
1607
|
+
w: hr,
|
|
1608
|
+
miw: $r,
|
|
1609
|
+
maw: vr,
|
|
1610
|
+
h: Sr,
|
|
1611
|
+
mih: wr,
|
|
1612
|
+
mah: Cr,
|
|
1613
|
+
bgsz: xr,
|
|
1614
|
+
bgp: kr,
|
|
1615
|
+
bgr: Nr,
|
|
1616
|
+
bga: Tr,
|
|
1617
|
+
pos: Mr,
|
|
1618
|
+
top: Rr,
|
|
1619
|
+
left: _r,
|
|
1620
|
+
bottom: Pr,
|
|
1621
|
+
right: Lr,
|
|
1622
|
+
inset: Er,
|
|
1623
|
+
display: Ar,
|
|
1624
|
+
flex: Or,
|
|
1625
|
+
hiddenFrom: Ir,
|
|
1626
|
+
visibleFrom: Br,
|
|
1627
|
+
lightHidden: Vr,
|
|
1628
|
+
darkHidden: jr,
|
|
1629
|
+
sx: Fr
|
|
1630
|
+
}), rest: Hr };
|
|
1631
1631
|
}
|
|
1632
1632
|
const Qn = {
|
|
1633
1633
|
m: { type: "spacing", property: "margin" },
|
|
@@ -1680,64 +1680,64 @@ const Qn = {
|
|
|
1680
1680
|
display: { type: "identity", property: "display" },
|
|
1681
1681
|
flex: { type: "identity", property: "flex" }
|
|
1682
1682
|
};
|
|
1683
|
-
function
|
|
1684
|
-
const e = q({ color:
|
|
1683
|
+
function Tt(t, r) {
|
|
1684
|
+
const e = q({ color: t, theme: r });
|
|
1685
1685
|
return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
|
|
1686
1686
|
}
|
|
1687
|
-
function Kn(
|
|
1688
|
-
const e = q({ color:
|
|
1689
|
-
return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` :
|
|
1687
|
+
function Kn(t, r) {
|
|
1688
|
+
const e = q({ color: t, theme: r });
|
|
1689
|
+
return e.isThemeColor && e.shade === void 0 ? `var(--mantine-color-${e.color}-text)` : Tt(t, r);
|
|
1690
1690
|
}
|
|
1691
|
-
function Zn(
|
|
1692
|
-
if (typeof
|
|
1693
|
-
return c(
|
|
1694
|
-
if (typeof
|
|
1695
|
-
const [e, n, ...a] =
|
|
1691
|
+
function Zn(t, r) {
|
|
1692
|
+
if (typeof t == "number")
|
|
1693
|
+
return c(t);
|
|
1694
|
+
if (typeof t == "string") {
|
|
1695
|
+
const [e, n, ...a] = t.split(" ").filter((i) => i.trim() !== "");
|
|
1696
1696
|
let o = `${c(e)}`;
|
|
1697
|
-
return n && (o += ` ${n}`), a.length > 0 && (o += ` ${
|
|
1697
|
+
return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tt(a.join(" "), r)}`), o.trim();
|
|
1698
1698
|
}
|
|
1699
|
-
return
|
|
1699
|
+
return t;
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1701
|
+
const Ht = {
|
|
1702
1702
|
text: "var(--mantine-font-family)",
|
|
1703
1703
|
mono: "var(--mantine-font-family-monospace)",
|
|
1704
1704
|
monospace: "var(--mantine-font-family-monospace)",
|
|
1705
1705
|
heading: "var(--mantine-font-family-headings)",
|
|
1706
1706
|
headings: "var(--mantine-font-family-headings)"
|
|
1707
1707
|
};
|
|
1708
|
-
function Jn(
|
|
1709
|
-
return typeof
|
|
1708
|
+
function Jn(t) {
|
|
1709
|
+
return typeof t == "string" && t in Ht ? Ht[t] : t;
|
|
1710
1710
|
}
|
|
1711
|
-
const
|
|
1712
|
-
function
|
|
1713
|
-
return typeof
|
|
1711
|
+
const te = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
1712
|
+
function re(t, r) {
|
|
1713
|
+
return typeof t == "string" && t in r.fontSizes ? `var(--mantine-font-size-${t})` : typeof t == "string" && te.includes(t) ? `var(--mantine-${t}-font-size)` : typeof t == "number" || typeof t == "string" ? c(t) : t;
|
|
1714
1714
|
}
|
|
1715
|
-
function ne(
|
|
1716
|
-
return
|
|
1715
|
+
function ne(t) {
|
|
1716
|
+
return t;
|
|
1717
1717
|
}
|
|
1718
1718
|
const ee = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
1719
|
-
function oe(
|
|
1720
|
-
return typeof
|
|
1721
|
-
}
|
|
1722
|
-
function ae(
|
|
1723
|
-
return typeof
|
|
1724
|
-
}
|
|
1725
|
-
function ie(
|
|
1726
|
-
if (typeof
|
|
1727
|
-
return c(
|
|
1728
|
-
if (typeof
|
|
1729
|
-
const e =
|
|
1730
|
-
if (!(e in
|
|
1731
|
-
return c(
|
|
1719
|
+
function oe(t, r) {
|
|
1720
|
+
return typeof t == "string" && t in r.lineHeights ? `var(--mantine-line-height-${t})` : typeof t == "string" && ee.includes(t) ? `var(--mantine-${t}-line-height)` : t;
|
|
1721
|
+
}
|
|
1722
|
+
function ae(t) {
|
|
1723
|
+
return typeof t == "number" ? c(t) : t;
|
|
1724
|
+
}
|
|
1725
|
+
function ie(t, r) {
|
|
1726
|
+
if (typeof t == "number")
|
|
1727
|
+
return c(t);
|
|
1728
|
+
if (typeof t == "string") {
|
|
1729
|
+
const e = t.replace("-", "");
|
|
1730
|
+
if (!(e in r.spacing))
|
|
1731
|
+
return c(t);
|
|
1732
1732
|
const n = `--mantine-spacing-${e}`;
|
|
1733
|
-
return
|
|
1733
|
+
return t.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
|
|
1734
1734
|
}
|
|
1735
|
-
return
|
|
1735
|
+
return t;
|
|
1736
1736
|
}
|
|
1737
|
-
const
|
|
1738
|
-
color:
|
|
1737
|
+
const mt = {
|
|
1738
|
+
color: Tt,
|
|
1739
1739
|
textColor: Kn,
|
|
1740
|
-
fontSize:
|
|
1740
|
+
fontSize: re,
|
|
1741
1741
|
spacing: ie,
|
|
1742
1742
|
identity: ne,
|
|
1743
1743
|
size: ae,
|
|
@@ -1745,55 +1745,55 @@ const mr = {
|
|
|
1745
1745
|
fontFamily: Jn,
|
|
1746
1746
|
border: Zn
|
|
1747
1747
|
};
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1748
|
+
function Wt(t) {
|
|
1749
|
+
return t.replace("(min-width: ", "").replace("em)", "");
|
|
1750
1750
|
}
|
|
1751
1751
|
function se({
|
|
1752
|
-
media:
|
|
1753
|
-
...
|
|
1752
|
+
media: t,
|
|
1753
|
+
...r
|
|
1754
1754
|
}) {
|
|
1755
|
-
const n = Object.keys(
|
|
1756
|
-
return { ...
|
|
1755
|
+
const n = Object.keys(t).sort((a, o) => Number(Wt(a)) - Number(Wt(o))).map((a) => ({ query: a, styles: t[a] }));
|
|
1756
|
+
return { ...r, media: n };
|
|
1757
1757
|
}
|
|
1758
|
-
function ce(
|
|
1759
|
-
if (typeof
|
|
1758
|
+
function ce(t) {
|
|
1759
|
+
if (typeof t != "object" || t === null)
|
|
1760
1760
|
return !1;
|
|
1761
|
-
const
|
|
1762
|
-
return !(
|
|
1761
|
+
const r = Object.keys(t);
|
|
1762
|
+
return !(r.length === 1 && r[0] === "base");
|
|
1763
1763
|
}
|
|
1764
|
-
function le(
|
|
1765
|
-
return typeof
|
|
1764
|
+
function le(t) {
|
|
1765
|
+
return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
|
|
1766
1766
|
}
|
|
1767
|
-
function de(
|
|
1768
|
-
return typeof
|
|
1767
|
+
function de(t) {
|
|
1768
|
+
return typeof t == "object" && t !== null ? M(t).filter((r) => r !== "base") : [];
|
|
1769
1769
|
}
|
|
1770
|
-
function fe(
|
|
1771
|
-
return typeof
|
|
1770
|
+
function fe(t, r) {
|
|
1771
|
+
return typeof t == "object" && t !== null && r in t ? t[r] : t;
|
|
1772
1772
|
}
|
|
1773
1773
|
function ue({
|
|
1774
|
-
styleProps:
|
|
1775
|
-
data:
|
|
1774
|
+
styleProps: t,
|
|
1775
|
+
data: r,
|
|
1776
1776
|
theme: e
|
|
1777
1777
|
}) {
|
|
1778
1778
|
return se(
|
|
1779
|
-
M(
|
|
1779
|
+
M(t).reduce(
|
|
1780
1780
|
(n, a) => {
|
|
1781
1781
|
if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
|
|
1782
1782
|
return n;
|
|
1783
|
-
const o =
|
|
1784
|
-
if (!ce(
|
|
1783
|
+
const o = r[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(t[a]);
|
|
1784
|
+
if (!ce(t[a]))
|
|
1785
1785
|
return i.forEach((d) => {
|
|
1786
|
-
n.inlineStyles[d] =
|
|
1786
|
+
n.inlineStyles[d] = mt[o.type](s, e);
|
|
1787
1787
|
}), n;
|
|
1788
1788
|
n.hasResponsiveStyles = !0;
|
|
1789
|
-
const l = de(
|
|
1789
|
+
const l = de(t[a]);
|
|
1790
1790
|
return i.forEach((d) => {
|
|
1791
|
-
s && (n.styles[d] =
|
|
1791
|
+
s && (n.styles[d] = mt[o.type](s, e)), l.forEach((u) => {
|
|
1792
1792
|
const f = `(min-width: ${e.breakpoints[u]})`;
|
|
1793
1793
|
n.media[f] = {
|
|
1794
1794
|
...n.media[f],
|
|
1795
|
-
[d]:
|
|
1796
|
-
fe(
|
|
1795
|
+
[d]: mt[o.type](
|
|
1796
|
+
fe(t[a], u),
|
|
1797
1797
|
e
|
|
1798
1798
|
)
|
|
1799
1799
|
};
|
|
@@ -1810,42 +1810,42 @@ function ue({
|
|
|
1810
1810
|
);
|
|
1811
1811
|
}
|
|
1812
1812
|
function me() {
|
|
1813
|
-
return `__m__-${
|
|
1813
|
+
return `__m__-${Yr().replace(/:/g, "")}`;
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
return
|
|
1815
|
+
function er(t) {
|
|
1816
|
+
return t.startsWith("data-") ? t : `data-${t}`;
|
|
1817
1817
|
}
|
|
1818
|
-
function pe(
|
|
1819
|
-
return Object.keys(
|
|
1820
|
-
const n =
|
|
1821
|
-
return n === void 0 || n === "" || n === !1 || n === null || (
|
|
1818
|
+
function pe(t) {
|
|
1819
|
+
return Object.keys(t).reduce((r, e) => {
|
|
1820
|
+
const n = t[e];
|
|
1821
|
+
return n === void 0 || n === "" || n === !1 || n === null || (r[er(e)] = t[e]), r;
|
|
1822
1822
|
}, {});
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
return
|
|
1826
|
-
(
|
|
1824
|
+
function or(t) {
|
|
1825
|
+
return t ? typeof t == "string" ? { [er(t)]: !0 } : Array.isArray(t) ? [...t].reduce(
|
|
1826
|
+
(r, e) => ({ ...r, ...or(e) }),
|
|
1827
1827
|
{}
|
|
1828
|
-
) : pe(
|
|
1828
|
+
) : pe(t) : null;
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1831
|
-
return Array.isArray(
|
|
1832
|
-
(e, n) => ({ ...e, ...
|
|
1830
|
+
function ht(t, r) {
|
|
1831
|
+
return Array.isArray(t) ? [...t].reduce(
|
|
1832
|
+
(e, n) => ({ ...e, ...ht(n, r) }),
|
|
1833
1833
|
{}
|
|
1834
|
-
) : typeof
|
|
1834
|
+
) : typeof t == "function" ? t(r) : t ?? {};
|
|
1835
1835
|
}
|
|
1836
1836
|
function ge({
|
|
1837
|
-
theme:
|
|
1838
|
-
style:
|
|
1837
|
+
theme: t,
|
|
1838
|
+
style: r,
|
|
1839
1839
|
vars: e,
|
|
1840
1840
|
styleProps: n
|
|
1841
1841
|
}) {
|
|
1842
|
-
const a =
|
|
1842
|
+
const a = ht(r, t), o = ht(e, t);
|
|
1843
1843
|
return { ...a, ...o, ...n };
|
|
1844
1844
|
}
|
|
1845
|
-
const
|
|
1845
|
+
const ar = _(
|
|
1846
1846
|
({
|
|
1847
|
-
component:
|
|
1848
|
-
style:
|
|
1847
|
+
component: t,
|
|
1848
|
+
style: r,
|
|
1849
1849
|
__vars: e,
|
|
1850
1850
|
className: n,
|
|
1851
1851
|
variant: a,
|
|
@@ -1860,7 +1860,7 @@ const at = _(
|
|
|
1860
1860
|
...g
|
|
1861
1861
|
}, y) => {
|
|
1862
1862
|
var S;
|
|
1863
|
-
const $ = V(), h =
|
|
1863
|
+
const $ = V(), h = t || "div", { styleProps: C, rest: x } = qn(g), v = sn(), w = (S = v == null ? void 0 : v()) == null ? void 0 : S(C.sx), L = me(), b = ue({
|
|
1864
1864
|
styleProps: C,
|
|
1865
1865
|
theme: $,
|
|
1866
1866
|
data: Qn
|
|
@@ -1868,7 +1868,7 @@ const at = _(
|
|
|
1868
1868
|
ref: y,
|
|
1869
1869
|
style: ge({
|
|
1870
1870
|
theme: $,
|
|
1871
|
-
style:
|
|
1871
|
+
style: r,
|
|
1872
1872
|
vars: e,
|
|
1873
1873
|
styleProps: b.inlineStyles
|
|
1874
1874
|
}),
|
|
@@ -1880,12 +1880,12 @@ const at = _(
|
|
|
1880
1880
|
[`mantine-visible-from-${l}`]: l
|
|
1881
1881
|
}),
|
|
1882
1882
|
"data-variant": a,
|
|
1883
|
-
"data-size":
|
|
1883
|
+
"data-size": Ut(i) ? void 0 : i || void 0,
|
|
1884
1884
|
size: m,
|
|
1885
|
-
...
|
|
1885
|
+
...or(o),
|
|
1886
1886
|
...x
|
|
1887
1887
|
};
|
|
1888
|
-
return /* @__PURE__ */ z(
|
|
1888
|
+
return /* @__PURE__ */ z(pt, { children: [
|
|
1889
1889
|
b.hasResponsiveStyles && /* @__PURE__ */ p(
|
|
1890
1890
|
Un,
|
|
1891
1891
|
{
|
|
@@ -1898,31 +1898,31 @@ const at = _(
|
|
|
1898
1898
|
] });
|
|
1899
1899
|
}
|
|
1900
1900
|
);
|
|
1901
|
-
|
|
1902
|
-
const N =
|
|
1903
|
-
function
|
|
1904
|
-
return
|
|
1905
|
-
}
|
|
1906
|
-
function
|
|
1907
|
-
const
|
|
1908
|
-
return
|
|
1909
|
-
const n = _((a, o) => /* @__PURE__ */ p(
|
|
1910
|
-
return n.extend =
|
|
1911
|
-
},
|
|
1912
|
-
}
|
|
1913
|
-
function
|
|
1914
|
-
const
|
|
1915
|
-
return
|
|
1916
|
-
const n = _((a, o) => /* @__PURE__ */ p(
|
|
1917
|
-
return n.extend =
|
|
1918
|
-
},
|
|
1919
|
-
}
|
|
1920
|
-
var
|
|
1901
|
+
ar.displayName = "@mantine/core/Box";
|
|
1902
|
+
const N = ar;
|
|
1903
|
+
function ir(t) {
|
|
1904
|
+
return t;
|
|
1905
|
+
}
|
|
1906
|
+
function Mt(t) {
|
|
1907
|
+
const r = _(t);
|
|
1908
|
+
return r.extend = ir, r.withProps = (e) => {
|
|
1909
|
+
const n = _((a, o) => /* @__PURE__ */ p(r, { ...e, ...a, ref: o }));
|
|
1910
|
+
return n.extend = r.extend, n.displayName = `WithProps(${r.displayName})`, n;
|
|
1911
|
+
}, r;
|
|
1912
|
+
}
|
|
1913
|
+
function sr(t) {
|
|
1914
|
+
const r = _(t);
|
|
1915
|
+
return r.withProps = (e) => {
|
|
1916
|
+
const n = _((a, o) => /* @__PURE__ */ p(r, { ...e, ...a, ref: o }));
|
|
1917
|
+
return n.extend = r.extend, n.displayName = `WithProps(${r.displayName})`, n;
|
|
1918
|
+
}, r.extend = ir, r;
|
|
1919
|
+
}
|
|
1920
|
+
var cr = { root: "m_87cf2631" };
|
|
1921
1921
|
const ye = {
|
|
1922
1922
|
__staticSelector: "UnstyledButton"
|
|
1923
|
-
},
|
|
1924
|
-
(
|
|
1925
|
-
const e = I("UnstyledButton", ye,
|
|
1923
|
+
}, Rt = sr(
|
|
1924
|
+
(t, r) => {
|
|
1925
|
+
const e = I("UnstyledButton", ye, t), {
|
|
1926
1926
|
className: n,
|
|
1927
1927
|
component: a = "button",
|
|
1928
1928
|
__staticSelector: o,
|
|
@@ -1934,7 +1934,7 @@ const ye = {
|
|
|
1934
1934
|
} = e, f = Q({
|
|
1935
1935
|
name: o,
|
|
1936
1936
|
props: e,
|
|
1937
|
-
classes:
|
|
1937
|
+
classes: cr,
|
|
1938
1938
|
className: n,
|
|
1939
1939
|
style: d,
|
|
1940
1940
|
classNames: s,
|
|
@@ -1946,20 +1946,20 @@ const ye = {
|
|
|
1946
1946
|
{
|
|
1947
1947
|
...f("root", { focusable: !0 }),
|
|
1948
1948
|
component: a,
|
|
1949
|
-
ref:
|
|
1949
|
+
ref: r,
|
|
1950
1950
|
type: a === "button" ? "button" : void 0,
|
|
1951
1951
|
...u
|
|
1952
1952
|
}
|
|
1953
1953
|
);
|
|
1954
1954
|
}
|
|
1955
1955
|
);
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
const X = (
|
|
1956
|
+
Rt.classes = cr;
|
|
1957
|
+
Rt.displayName = "@mantine/core/UnstyledButton";
|
|
1958
|
+
const X = (t) => ({
|
|
1959
1959
|
in: { opacity: 1, transform: "scale(1)" },
|
|
1960
|
-
out: { opacity: 0, transform: `scale(.9) translateY(${
|
|
1960
|
+
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
1961
1961
|
transitionProperty: "transform, opacity"
|
|
1962
|
-
}),
|
|
1962
|
+
}), tt = {
|
|
1963
1963
|
fade: {
|
|
1964
1964
|
in: { opacity: 1 },
|
|
1965
1965
|
out: { opacity: 0 },
|
|
@@ -2071,7 +2071,7 @@ const X = (r) => ({
|
|
|
2071
2071
|
...X("top"),
|
|
2072
2072
|
common: { transformOrigin: "top right" }
|
|
2073
2073
|
}
|
|
2074
|
-
},
|
|
2074
|
+
}, zt = {
|
|
2075
2075
|
entering: "in",
|
|
2076
2076
|
entered: "in",
|
|
2077
2077
|
exiting: "out",
|
|
@@ -2080,8 +2080,8 @@ const X = (r) => ({
|
|
|
2080
2080
|
"pre-entering": "out"
|
|
2081
2081
|
};
|
|
2082
2082
|
function be({
|
|
2083
|
-
transition:
|
|
2084
|
-
state:
|
|
2083
|
+
transition: t,
|
|
2084
|
+
state: r,
|
|
2085
2085
|
duration: e,
|
|
2086
2086
|
timingFunction: n
|
|
2087
2087
|
}) {
|
|
@@ -2091,21 +2091,21 @@ function be({
|
|
|
2091
2091
|
transitionDuration: `${e}ms`,
|
|
2092
2092
|
transitionTimingFunction: n
|
|
2093
2093
|
};
|
|
2094
|
-
return typeof
|
|
2095
|
-
transitionProperty:
|
|
2094
|
+
return typeof t == "string" ? t in tt ? {
|
|
2095
|
+
transitionProperty: tt[t].transitionProperty,
|
|
2096
2096
|
...a,
|
|
2097
|
-
...
|
|
2098
|
-
...
|
|
2097
|
+
...tt[t].common,
|
|
2098
|
+
...tt[t][zt[r]]
|
|
2099
2099
|
} : {} : {
|
|
2100
|
-
transitionProperty:
|
|
2100
|
+
transitionProperty: t.transitionProperty,
|
|
2101
2101
|
...a,
|
|
2102
|
-
...
|
|
2103
|
-
...
|
|
2102
|
+
...t.common,
|
|
2103
|
+
...t[zt[r]]
|
|
2104
2104
|
};
|
|
2105
2105
|
}
|
|
2106
2106
|
function he({
|
|
2107
|
-
duration:
|
|
2108
|
-
exitDuration:
|
|
2107
|
+
duration: t,
|
|
2108
|
+
exitDuration: r,
|
|
2109
2109
|
timingFunction: e,
|
|
2110
2110
|
mounted: n,
|
|
2111
2111
|
onEnter: a,
|
|
@@ -2115,12 +2115,12 @@ function he({
|
|
|
2115
2115
|
enterDelay: l,
|
|
2116
2116
|
exitDelay: d
|
|
2117
2117
|
}) {
|
|
2118
|
-
const u = V(), f =
|
|
2118
|
+
const u = V(), f = Jr(), m = u.respectReducedMotion ? f : !1, [g, y] = rt(m ? 0 : t), [$, h] = rt(n ? "entered" : "exited"), C = W(-1), x = W(-1), v = W(-1), w = (b) => {
|
|
2119
2119
|
const k = b ? a : o, S = b ? i : s;
|
|
2120
2120
|
window.clearTimeout(C.current);
|
|
2121
|
-
const E = m ? 0 : b ?
|
|
2121
|
+
const E = m ? 0 : b ? t : r;
|
|
2122
2122
|
y(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
|
|
2123
|
-
|
|
2123
|
+
Gr.flushSync(() => {
|
|
2124
2124
|
h(b ? "pre-entering" : "pre-exiting");
|
|
2125
2125
|
}), v.current = requestAnimationFrame(() => {
|
|
2126
2126
|
typeof k == "function" && k(), h(b ? "entering" : "exiting"), C.current = window.setTimeout(() => {
|
|
@@ -2140,7 +2140,7 @@ function he({
|
|
|
2140
2140
|
b ? l : d
|
|
2141
2141
|
);
|
|
2142
2142
|
};
|
|
2143
|
-
return
|
|
2143
|
+
return Zr(() => {
|
|
2144
2144
|
L(n);
|
|
2145
2145
|
}, [n]), A(
|
|
2146
2146
|
() => () => {
|
|
@@ -2153,9 +2153,9 @@ function he({
|
|
|
2153
2153
|
transitionTimingFunction: e || "ease"
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2157
|
-
keepMounted:
|
|
2158
|
-
transition:
|
|
2156
|
+
function lr({
|
|
2157
|
+
keepMounted: t,
|
|
2158
|
+
transition: r = "fade",
|
|
2159
2159
|
duration: e = 250,
|
|
2160
2160
|
exitDuration: n = e,
|
|
2161
2161
|
mounted: a,
|
|
@@ -2180,45 +2180,45 @@ function lt({
|
|
|
2180
2180
|
enterDelay: f,
|
|
2181
2181
|
exitDelay: m
|
|
2182
2182
|
});
|
|
2183
|
-
return y === 0 || g === "test" ? a ? /* @__PURE__ */ p(
|
|
2183
|
+
return y === 0 || g === "test" ? a ? /* @__PURE__ */ p(pt, { children: o({}) }) : t ? o({ display: "none" }) : null : $ === "exited" ? t ? o({ display: "none" }) : null : /* @__PURE__ */ p(pt, { children: o(
|
|
2184
2184
|
be({
|
|
2185
|
-
transition:
|
|
2185
|
+
transition: r,
|
|
2186
2186
|
duration: y,
|
|
2187
2187
|
state: $,
|
|
2188
2188
|
timingFunction: h
|
|
2189
2189
|
})
|
|
2190
2190
|
) });
|
|
2191
2191
|
}
|
|
2192
|
-
|
|
2192
|
+
lr.displayName = "@mantine/core/Transition";
|
|
2193
2193
|
var T = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
|
|
2194
|
-
const
|
|
2194
|
+
const dr = _(({ className: t, ...r }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.barsLoader, t), ...r, ref: e, children: [
|
|
2195
2195
|
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2196
2196
|
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2197
2197
|
/* @__PURE__ */ p("span", { className: T.bar })
|
|
2198
2198
|
] }));
|
|
2199
|
-
|
|
2200
|
-
const
|
|
2199
|
+
dr.displayName = "@mantine/core/Bars";
|
|
2200
|
+
const fr = _(({ className: t, ...r }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.dotsLoader, t), ...r, ref: e, children: [
|
|
2201
2201
|
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2202
2202
|
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2203
2203
|
/* @__PURE__ */ p("span", { className: T.dot })
|
|
2204
2204
|
] }));
|
|
2205
|
-
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2208
|
-
const
|
|
2209
|
-
bars:
|
|
2210
|
-
oval:
|
|
2211
|
-
dots:
|
|
2205
|
+
fr.displayName = "@mantine/core/Dots";
|
|
2206
|
+
const ur = _(({ className: t, ...r }, e) => /* @__PURE__ */ p(N, { component: "span", className: B(T.ovalLoader, t), ...r, ref: e }));
|
|
2207
|
+
ur.displayName = "@mantine/core/Oval";
|
|
2208
|
+
const mr = {
|
|
2209
|
+
bars: dr,
|
|
2210
|
+
oval: ur,
|
|
2211
|
+
dots: fr
|
|
2212
2212
|
}, $e = {
|
|
2213
|
-
loaders:
|
|
2213
|
+
loaders: mr,
|
|
2214
2214
|
type: "oval"
|
|
2215
|
-
}, ve = (
|
|
2215
|
+
}, ve = (t, { size: r, color: e }) => ({
|
|
2216
2216
|
root: {
|
|
2217
|
-
"--loader-size": O(
|
|
2218
|
-
"--loader-color": e ?
|
|
2217
|
+
"--loader-size": O(r, "loader-size"),
|
|
2218
|
+
"--loader-color": e ? yt(e, t) : void 0
|
|
2219
2219
|
}
|
|
2220
|
-
}),
|
|
2221
|
-
const e = I("Loader", $e,
|
|
2220
|
+
}), et = Mt((t, r) => {
|
|
2221
|
+
const e = I("Loader", $e, t), {
|
|
2222
2222
|
size: n,
|
|
2223
2223
|
color: a,
|
|
2224
2224
|
type: o,
|
|
@@ -2244,11 +2244,11 @@ const mt = {
|
|
|
2244
2244
|
vars: i,
|
|
2245
2245
|
varsResolver: ve
|
|
2246
2246
|
});
|
|
2247
|
-
return y ? /* @__PURE__ */ p(N, { ...h("root"), ref:
|
|
2247
|
+
return y ? /* @__PURE__ */ p(N, { ...h("root"), ref: r, ...$, children: y }) : /* @__PURE__ */ p(
|
|
2248
2248
|
N,
|
|
2249
2249
|
{
|
|
2250
2250
|
...h("root"),
|
|
2251
|
-
ref:
|
|
2251
|
+
ref: r,
|
|
2252
2252
|
component: m[o],
|
|
2253
2253
|
variant: g,
|
|
2254
2254
|
size: n,
|
|
@@ -2256,16 +2256,16 @@ const mt = {
|
|
|
2256
2256
|
}
|
|
2257
2257
|
);
|
|
2258
2258
|
});
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2259
|
+
et.defaultLoaders = mr;
|
|
2260
|
+
et.classes = T;
|
|
2261
|
+
et.displayName = "@mantine/core/Loader";
|
|
2262
2262
|
var Y = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844", groupSection: "m_70be2a01" };
|
|
2263
|
-
const
|
|
2263
|
+
const Yt = {
|
|
2264
2264
|
orientation: "horizontal"
|
|
2265
|
-
}, Se = (
|
|
2266
|
-
group: { "--button-border-width": c(
|
|
2267
|
-
}),
|
|
2268
|
-
const e = I("ButtonGroup",
|
|
2265
|
+
}, Se = (t, { borderWidth: r }) => ({
|
|
2266
|
+
group: { "--button-border-width": c(r) }
|
|
2267
|
+
}), _t = Mt((t, r) => {
|
|
2268
|
+
const e = I("ButtonGroup", Yt, t), {
|
|
2269
2269
|
className: n,
|
|
2270
2270
|
style: a,
|
|
2271
2271
|
classNames: o,
|
|
@@ -2277,7 +2277,7 @@ const Yr = {
|
|
|
2277
2277
|
variant: f,
|
|
2278
2278
|
mod: m,
|
|
2279
2279
|
...g
|
|
2280
|
-
} = I("ButtonGroup",
|
|
2280
|
+
} = I("ButtonGroup", Yt, t), y = Q({
|
|
2281
2281
|
name: "ButtonGroup",
|
|
2282
2282
|
props: e,
|
|
2283
2283
|
classes: Y,
|
|
@@ -2294,7 +2294,7 @@ const Yr = {
|
|
|
2294
2294
|
N,
|
|
2295
2295
|
{
|
|
2296
2296
|
...y("group"),
|
|
2297
|
-
ref:
|
|
2297
|
+
ref: r,
|
|
2298
2298
|
variant: f,
|
|
2299
2299
|
mod: [{ "data-orientation": l }, m],
|
|
2300
2300
|
role: "group",
|
|
@@ -2302,12 +2302,12 @@ const Yr = {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
);
|
|
2304
2304
|
});
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
const
|
|
2308
|
-
const s =
|
|
2309
|
-
color: e ||
|
|
2310
|
-
theme:
|
|
2305
|
+
_t.classes = Y;
|
|
2306
|
+
_t.displayName = "@mantine/core/ButtonGroup";
|
|
2307
|
+
const Gt = {}, we = (t, { radius: r, color: e, gradient: n, variant: a, autoContrast: o, size: i }) => {
|
|
2308
|
+
const s = t.variantColorResolver({
|
|
2309
|
+
color: e || t.primaryColor,
|
|
2310
|
+
theme: t,
|
|
2311
2311
|
gradient: n,
|
|
2312
2312
|
variant: a || "filled",
|
|
2313
2313
|
autoContrast: o
|
|
@@ -2316,15 +2316,15 @@ const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoCont
|
|
|
2316
2316
|
groupSection: {
|
|
2317
2317
|
"--section-height": O(i, "section-height"),
|
|
2318
2318
|
"--section-padding-x": O(i, "section-padding-x"),
|
|
2319
|
-
"--section-fz": i != null && i.includes("compact") ?
|
|
2320
|
-
"--section-radius":
|
|
2319
|
+
"--section-fz": i != null && i.includes("compact") ? nt(i.replace("compact-", "")) : nt(i),
|
|
2320
|
+
"--section-radius": r === void 0 ? void 0 : qt(r),
|
|
2321
2321
|
"--section-bg": e || a ? s.background : void 0,
|
|
2322
2322
|
"--section-color": s.color,
|
|
2323
2323
|
"--section-bd": e || a ? s.border : void 0
|
|
2324
2324
|
}
|
|
2325
2325
|
};
|
|
2326
|
-
},
|
|
2327
|
-
const e = I("ButtonGroupSection",
|
|
2326
|
+
}, Pt = Mt((t, r) => {
|
|
2327
|
+
const e = I("ButtonGroupSection", Gt, t), {
|
|
2328
2328
|
className: n,
|
|
2329
2329
|
style: a,
|
|
2330
2330
|
classNames: o,
|
|
@@ -2336,7 +2336,7 @@ const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoCont
|
|
|
2336
2336
|
radius: f,
|
|
2337
2337
|
autoContrast: m,
|
|
2338
2338
|
...g
|
|
2339
|
-
} = I("ButtonGroupSection",
|
|
2339
|
+
} = I("ButtonGroupSection", Gt, t), y = Q({
|
|
2340
2340
|
name: "ButtonGroupSection",
|
|
2341
2341
|
props: e,
|
|
2342
2342
|
classes: Y,
|
|
@@ -2349,19 +2349,19 @@ const Gr = {}, we = (r, { radius: t, color: e, gradient: n, variant: a, autoCont
|
|
|
2349
2349
|
varsResolver: we,
|
|
2350
2350
|
rootSelector: "groupSection"
|
|
2351
2351
|
});
|
|
2352
|
-
return /* @__PURE__ */ p(N, { ...y("groupSection"), ref:
|
|
2352
|
+
return /* @__PURE__ */ p(N, { ...y("groupSection"), ref: r, variant: d, ...g });
|
|
2353
2353
|
});
|
|
2354
|
-
|
|
2355
|
-
|
|
2354
|
+
Pt.classes = Y;
|
|
2355
|
+
Pt.displayName = "@mantine/core/ButtonGroupSection";
|
|
2356
2356
|
const Ce = {
|
|
2357
2357
|
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
|
|
2358
2358
|
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
2359
2359
|
common: { transformOrigin: "center" },
|
|
2360
2360
|
transitionProperty: "transform, opacity"
|
|
2361
|
-
}, xe = {}, ke = (
|
|
2362
|
-
const l =
|
|
2363
|
-
color: e ||
|
|
2364
|
-
theme:
|
|
2361
|
+
}, xe = {}, ke = (t, { radius: r, color: e, gradient: n, variant: a, size: o, justify: i, autoContrast: s }) => {
|
|
2362
|
+
const l = t.variantColorResolver({
|
|
2363
|
+
color: e || t.primaryColor,
|
|
2364
|
+
theme: t,
|
|
2365
2365
|
gradient: n,
|
|
2366
2366
|
variant: a || "filled",
|
|
2367
2367
|
autoContrast: s
|
|
@@ -2371,8 +2371,8 @@ const Ce = {
|
|
|
2371
2371
|
"--button-justify": i,
|
|
2372
2372
|
"--button-height": O(o, "button-height"),
|
|
2373
2373
|
"--button-padding-x": O(o, "button-padding-x"),
|
|
2374
|
-
"--button-fz": o != null && o.includes("compact") ?
|
|
2375
|
-
"--button-radius":
|
|
2374
|
+
"--button-fz": o != null && o.includes("compact") ? nt(o.replace("compact-", "")) : nt(o),
|
|
2375
|
+
"--button-radius": r === void 0 ? void 0 : qt(r),
|
|
2376
2376
|
"--button-bg": e || a ? l.background : void 0,
|
|
2377
2377
|
"--button-hover": e || a ? l.hover : void 0,
|
|
2378
2378
|
"--button-color": l.color,
|
|
@@ -2380,8 +2380,8 @@ const Ce = {
|
|
|
2380
2380
|
"--button-hover-color": e || a ? l.hoverColor : void 0
|
|
2381
2381
|
}
|
|
2382
2382
|
};
|
|
2383
|
-
}, K =
|
|
2384
|
-
const e = I("Button", xe,
|
|
2383
|
+
}, K = sr((t, r) => {
|
|
2384
|
+
const e = I("Button", xe, t), {
|
|
2385
2385
|
style: n,
|
|
2386
2386
|
vars: a,
|
|
2387
2387
|
className: o,
|
|
@@ -2414,11 +2414,11 @@ const Ce = {
|
|
|
2414
2414
|
unstyled: v,
|
|
2415
2415
|
vars: a,
|
|
2416
2416
|
varsResolver: ke
|
|
2417
|
-
}), E = !!d,
|
|
2417
|
+
}), E = !!d, ot = !!u;
|
|
2418
2418
|
return /* @__PURE__ */ z(
|
|
2419
|
-
|
|
2419
|
+
Rt,
|
|
2420
2420
|
{
|
|
2421
|
-
ref:
|
|
2421
|
+
ref: r,
|
|
2422
2422
|
...S("root", { active: !s && !y && !w }),
|
|
2423
2423
|
unstyled: v,
|
|
2424
2424
|
variant: m,
|
|
@@ -2429,14 +2429,14 @@ const Ce = {
|
|
|
2429
2429
|
loading: y,
|
|
2430
2430
|
block: f,
|
|
2431
2431
|
"with-left-section": E,
|
|
2432
|
-
"with-right-section":
|
|
2432
|
+
"with-right-section": ot
|
|
2433
2433
|
},
|
|
2434
2434
|
b
|
|
2435
2435
|
],
|
|
2436
2436
|
...k,
|
|
2437
2437
|
children: [
|
|
2438
|
-
/* @__PURE__ */ p(
|
|
2439
|
-
|
|
2438
|
+
/* @__PURE__ */ p(lr, { mounted: !!y, transition: Ce, duration: 150, children: (at) => /* @__PURE__ */ p(N, { component: "span", ...S("loader", { style: at }), "aria-hidden": !0, children: /* @__PURE__ */ p(
|
|
2439
|
+
et,
|
|
2440
2440
|
{
|
|
2441
2441
|
color: "var(--button-color)",
|
|
2442
2442
|
size: "calc(var(--button-height) / 1.8)",
|
|
@@ -2454,15 +2454,17 @@ const Ce = {
|
|
|
2454
2454
|
});
|
|
2455
2455
|
K.classes = Y;
|
|
2456
2456
|
K.displayName = "@mantine/core/Button";
|
|
2457
|
-
K.Group =
|
|
2458
|
-
K.GroupSection =
|
|
2459
|
-
function
|
|
2460
|
-
return /* @__PURE__ */ p(
|
|
2461
|
-
}
|
|
2462
|
-
const
|
|
2457
|
+
K.Group = _t;
|
|
2458
|
+
K.GroupSection = Pt;
|
|
2459
|
+
function Ae({ children: t, theme: r }) {
|
|
2460
|
+
return /* @__PURE__ */ p(nr, { theme: r, children: t });
|
|
2461
|
+
}
|
|
2462
|
+
const Ne = "_button_1bwq5_1", Te = {
|
|
2463
|
+
button: Ne
|
|
2464
|
+
}, Oe = (t) => /* @__PURE__ */ p(K, { ...t, className: Te.button });
|
|
2463
2465
|
export {
|
|
2464
|
-
|
|
2465
|
-
Le as
|
|
2466
|
-
|
|
2467
|
-
|
|
2466
|
+
Oe as Button,
|
|
2467
|
+
Le as ColorSchemeScript,
|
|
2468
|
+
Ae as MantineProvider,
|
|
2469
|
+
Ee as mantineHtmlProps
|
|
2468
2470
|
};
|