@kvell-group/ui 1.6.6 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MantineThemeProvider-CyD9KzqB.js +704 -0
- package/dist/components/Button/Button.js +1331 -0
- package/dist/components/Button/index.js +4 -0
- package/dist/components/MainProvider/MantineProvider.js +424 -0
- package/dist/components/MainProvider/index.js +4 -0
- package/dist/components/theme.js +21 -0
- package/dist/main.js +27 -2451
- package/package.json +1 -1
- /package/dist/assets/{main.css → Button.css} +0 -0
package/dist/main.js
CHANGED
|
@@ -1,2470 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
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
|
-
}), e;
|
|
15
|
-
}
|
|
16
|
-
function Dr(t) {
|
|
17
|
-
return t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`);
|
|
18
|
-
}
|
|
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
|
-
}
|
|
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
|
-
}
|
|
27
|
-
function st(t) {
|
|
28
|
-
return t === "0rem" ? "0rem" : `calc(${t} * var(--mantine-scale))`;
|
|
29
|
-
}
|
|
30
|
-
function Xt(t, { shouldScale: r = !1 } = {}) {
|
|
31
|
-
function e(n) {
|
|
32
|
-
if (n === 0 || n === "0")
|
|
33
|
-
return `0${t}`;
|
|
34
|
-
if (typeof n == "number") {
|
|
35
|
-
const a = `${n / 16}${t}`;
|
|
36
|
-
return r ? st(a) : a;
|
|
37
|
-
}
|
|
38
|
-
if (typeof n == "string") {
|
|
39
|
-
if (n === "" || n.startsWith("calc(") || n.startsWith("clamp(") || n.includes("rgba("))
|
|
40
|
-
return n;
|
|
41
|
-
if (n.includes(","))
|
|
42
|
-
return n.split(",").map((o) => e(o)).join(",");
|
|
43
|
-
if (n.includes(" "))
|
|
44
|
-
return n.split(" ").map((o) => e(o)).join(" ");
|
|
45
|
-
if (n.includes(t))
|
|
46
|
-
return r ? st(n) : n;
|
|
47
|
-
const a = n.replace("px", "");
|
|
48
|
-
if (!Number.isNaN(Number(a))) {
|
|
49
|
-
const o = `${Number(a) / 16}${t}`;
|
|
50
|
-
return r ? st(o) : o;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return n;
|
|
54
|
-
}
|
|
55
|
-
return e;
|
|
56
|
-
}
|
|
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
|
-
}
|
|
61
|
-
function Ut(t) {
|
|
62
|
-
if (typeof t == "number")
|
|
63
|
-
return !0;
|
|
64
|
-
if (typeof t == "string") {
|
|
65
|
-
if (t.startsWith("calc(") || t.startsWith("var(") || t.includes(" ") && t.trim() !== "")
|
|
66
|
-
return !0;
|
|
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
|
-
}
|
|
70
|
-
return !1;
|
|
71
|
-
}
|
|
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
|
-
}
|
|
76
|
-
function qt(t) {
|
|
77
|
-
return t === void 0 ? "var(--mantine-radius-default)" : O(t, "mantine-radius");
|
|
78
|
-
}
|
|
79
|
-
function nt(t) {
|
|
80
|
-
return O(t, "mantine-font-size");
|
|
81
|
-
}
|
|
82
|
-
function qr(t, r) {
|
|
83
|
-
try {
|
|
84
|
-
return t.addEventListener("change", r), () => t.removeEventListener("change", r);
|
|
85
|
-
} catch {
|
|
86
|
-
return t.addListener(r), () => t.removeListener(r);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function Qr(t, r) {
|
|
90
|
-
return typeof window < "u" && "matchMedia" in window ? window.matchMedia(t).matches : !1;
|
|
91
|
-
}
|
|
92
|
-
function Kr(t, r, { getInitialValueInEffect: e } = {
|
|
93
|
-
getInitialValueInEffect: !0
|
|
94
|
-
}) {
|
|
95
|
-
const [n, a] = rt(
|
|
96
|
-
e ? r : Qr(t)
|
|
97
|
-
), o = W(null);
|
|
98
|
-
return A(() => {
|
|
99
|
-
if ("matchMedia" in window)
|
|
100
|
-
return o.current = window.matchMedia(t), a(o.current.matches), qr(o.current, (i) => a(i.matches));
|
|
101
|
-
}, [t]), n;
|
|
102
|
-
}
|
|
103
|
-
const Qt = typeof document < "u" ? Wr : A;
|
|
104
|
-
function Zr(t, r) {
|
|
105
|
-
const e = W(!1);
|
|
106
|
-
A(
|
|
107
|
-
() => () => {
|
|
108
|
-
e.current = !1;
|
|
109
|
-
},
|
|
110
|
-
[]
|
|
111
|
-
), A(() => {
|
|
112
|
-
if (e.current)
|
|
113
|
-
return t();
|
|
114
|
-
e.current = !0;
|
|
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
|
-
return n;
|
|
128
|
-
}
|
|
129
|
-
function B() {
|
|
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
|
-
return n;
|
|
132
|
-
}
|
|
133
|
-
const tn = {};
|
|
134
|
-
function rn(t) {
|
|
135
|
-
const r = {};
|
|
136
|
-
return t.forEach((e) => {
|
|
137
|
-
Object.entries(e).forEach(([n, a]) => {
|
|
138
|
-
r[n] ? r[n] = B(r[n], a) : r[n] = a;
|
|
139
|
-
});
|
|
140
|
-
}), r;
|
|
141
|
-
}
|
|
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
|
-
);
|
|
146
|
-
return rn(o);
|
|
147
|
-
}
|
|
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
|
-
}
|
|
151
|
-
const Zt = Dt(null);
|
|
152
|
-
function P() {
|
|
153
|
-
const t = $t(Zt);
|
|
154
|
-
if (!t)
|
|
155
|
-
throw new Error("[@mantine/core] MantineProvider was not found in tree");
|
|
156
|
-
return t;
|
|
157
|
-
}
|
|
158
|
-
function nn() {
|
|
159
|
-
return P().cssVariablesResolver;
|
|
160
|
-
}
|
|
161
|
-
function en() {
|
|
162
|
-
return P().classNamesPrefix;
|
|
163
|
-
}
|
|
164
|
-
function Ct() {
|
|
165
|
-
return P().getStyleNonce;
|
|
166
|
-
}
|
|
167
|
-
function on() {
|
|
168
|
-
return P().withStaticClasses;
|
|
169
|
-
}
|
|
170
|
-
function an() {
|
|
171
|
-
return P().headless;
|
|
172
|
-
}
|
|
173
|
-
function sn() {
|
|
174
|
-
var t;
|
|
175
|
-
return (t = P().stylesTransform) == null ? void 0 : t.sx;
|
|
176
|
-
}
|
|
177
|
-
function cn() {
|
|
178
|
-
var t;
|
|
179
|
-
return (t = P().stylesTransform) == null ? void 0 : t.styles;
|
|
180
|
-
}
|
|
181
|
-
function ln() {
|
|
182
|
-
return P().env || "default";
|
|
183
|
-
}
|
|
184
|
-
function dn(t) {
|
|
185
|
-
return /^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t);
|
|
186
|
-
}
|
|
187
|
-
function fn(t) {
|
|
188
|
-
let r = t.replace("#", "");
|
|
189
|
-
if (r.length === 3) {
|
|
190
|
-
const i = r.split("");
|
|
191
|
-
r = [
|
|
192
|
-
i[0],
|
|
193
|
-
i[0],
|
|
194
|
-
i[1],
|
|
195
|
-
i[1],
|
|
196
|
-
i[2],
|
|
197
|
-
i[2]
|
|
198
|
-
].join("");
|
|
199
|
-
}
|
|
200
|
-
if (r.length === 8) {
|
|
201
|
-
const i = parseInt(r.slice(6, 8), 16) / 255;
|
|
202
|
-
return {
|
|
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
|
-
a: i
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
const e = parseInt(r, 16), n = e >> 16 & 255, a = e >> 8 & 255, o = e & 255;
|
|
210
|
-
return {
|
|
211
|
-
r: n,
|
|
212
|
-
g: a,
|
|
213
|
-
b: o,
|
|
214
|
-
a: 1
|
|
215
|
-
};
|
|
216
|
-
}
|
|
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
|
-
}
|
|
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
|
-
if (!e)
|
|
224
|
-
return {
|
|
225
|
-
r: 0,
|
|
226
|
-
g: 0,
|
|
227
|
-
b: 0,
|
|
228
|
-
a: 1
|
|
229
|
-
};
|
|
230
|
-
const n = parseInt(e[1], 10), a = parseInt(e[2], 10) / 100, o = parseInt(e[3], 10) / 100, i = e[5] ? parseFloat(e[5]) : void 0, s = (1 - Math.abs(2 * o - 1)) * a, l = n / 60, d = s * (1 - Math.abs(l % 2 - 1)), u = o - s / 2;
|
|
231
|
-
let f, m, g;
|
|
232
|
-
return l >= 0 && l < 1 ? (f = s, m = d, g = 0) : l >= 1 && l < 2 ? (f = d, m = s, g = 0) : l >= 2 && l < 3 ? (f = 0, m = s, g = d) : l >= 3 && l < 4 ? (f = 0, m = d, g = s) : l >= 4 && l < 5 ? (f = d, m = 0, g = s) : (f = s, m = 0, g = d), {
|
|
233
|
-
r: Math.round((f + u) * 255),
|
|
234
|
-
g: Math.round((m + u) * 255),
|
|
235
|
-
b: Math.round((g + u) * 255),
|
|
236
|
-
a: i || 1
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
function xt(t) {
|
|
240
|
-
return dn(t) ? fn(t) : t.startsWith("rgb") ? un(t) : t.startsWith("hsl") ? mn(t) : {
|
|
241
|
-
r: 0,
|
|
242
|
-
g: 0,
|
|
243
|
-
b: 0,
|
|
244
|
-
a: 1
|
|
245
|
-
};
|
|
246
|
-
}
|
|
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
|
-
return `rgba(${s(e)}, ${s(n)}, ${s(a)}, ${o})`;
|
|
252
|
-
}
|
|
253
|
-
function U(t, r) {
|
|
254
|
-
return typeof t.primaryShade == "number" ? t.primaryShade : r === "dark" ? t.primaryShade.dark : t.primaryShade.light;
|
|
255
|
-
}
|
|
256
|
-
function ct(t) {
|
|
257
|
-
return t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4;
|
|
258
|
-
}
|
|
259
|
-
function pn(t) {
|
|
260
|
-
const r = t.match(/oklch\((.*?)%\s/);
|
|
261
|
-
return r ? parseFloat(r[1]) : null;
|
|
262
|
-
}
|
|
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
|
-
return 0.2126 * s + 0.7152 * l + 0.0722 * d;
|
|
268
|
-
}
|
|
269
|
-
function G(t, r = 0.179) {
|
|
270
|
-
return t.startsWith("var(") ? !1 : gn(t) > r;
|
|
271
|
-
}
|
|
272
|
-
function q({
|
|
273
|
-
color: t,
|
|
274
|
-
theme: r,
|
|
275
|
-
colorScheme: e
|
|
276
|
-
}) {
|
|
277
|
-
if (typeof t != "string")
|
|
278
|
-
throw new Error(
|
|
279
|
-
`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof t}`
|
|
280
|
-
);
|
|
281
|
-
if (t === "bright")
|
|
282
|
-
return {
|
|
283
|
-
color: t,
|
|
284
|
-
value: e === "dark" ? r.white : r.black,
|
|
285
|
-
shade: void 0,
|
|
286
|
-
isThemeColor: !1,
|
|
287
|
-
isLight: G(
|
|
288
|
-
e === "dark" ? r.white : r.black,
|
|
289
|
-
r.luminanceThreshold
|
|
290
|
-
),
|
|
291
|
-
variable: "--mantine-color-bright"
|
|
292
|
-
};
|
|
293
|
-
if (t === "dimmed")
|
|
294
|
-
return {
|
|
295
|
-
color: t,
|
|
296
|
-
value: e === "dark" ? r.colors.dark[2] : r.colors.gray[7],
|
|
297
|
-
shade: void 0,
|
|
298
|
-
isThemeColor: !1,
|
|
299
|
-
isLight: G(
|
|
300
|
-
e === "dark" ? r.colors.dark[2] : r.colors.gray[6],
|
|
301
|
-
r.luminanceThreshold
|
|
302
|
-
),
|
|
303
|
-
variable: "--mantine-color-dimmed"
|
|
304
|
-
};
|
|
305
|
-
if (t === "white" || t === "black")
|
|
306
|
-
return {
|
|
307
|
-
color: t,
|
|
308
|
-
value: t === "white" ? r.white : r.black,
|
|
309
|
-
shade: void 0,
|
|
310
|
-
isThemeColor: !1,
|
|
311
|
-
isLight: G(
|
|
312
|
-
t === "white" ? r.white : r.black,
|
|
313
|
-
r.luminanceThreshold
|
|
314
|
-
),
|
|
315
|
-
variable: `--mantine-color-${t}`
|
|
316
|
-
};
|
|
317
|
-
const [n, a] = t.split("."), o = a ? Number(a) : void 0, i = n in r.colors;
|
|
318
|
-
if (i) {
|
|
319
|
-
const s = o !== void 0 ? r.colors[n][o] : r.colors[n][U(r, e || "light")];
|
|
320
|
-
return {
|
|
321
|
-
color: n,
|
|
322
|
-
value: s,
|
|
323
|
-
shade: o,
|
|
324
|
-
isThemeColor: i,
|
|
325
|
-
isLight: G(s, r.luminanceThreshold),
|
|
326
|
-
variable: a ? `--mantine-color-${n}-${o}` : `--mantine-color-${n}-filled`
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
return {
|
|
330
|
-
color: t,
|
|
331
|
-
value: t,
|
|
332
|
-
isThemeColor: i,
|
|
333
|
-
isLight: G(t, r.luminanceThreshold),
|
|
334
|
-
shade: o,
|
|
335
|
-
variable: void 0
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function yt(t, r) {
|
|
339
|
-
const e = q({ color: t || r.primaryColor, theme: r });
|
|
340
|
-
return e.variable ? `var(${e.variable})` : t;
|
|
341
|
-
}
|
|
342
|
-
function At(t, r) {
|
|
343
|
-
const e = {
|
|
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
|
-
return `linear-gradient(${e.deg}deg, ${n} 0%, ${a} 100%)`;
|
|
349
|
-
}
|
|
350
|
-
function R(t, r) {
|
|
351
|
-
if (typeof t != "string" || r > 1 || r < 0)
|
|
352
|
-
return "rgba(0, 0, 0, 1)";
|
|
353
|
-
if (t.startsWith("var(")) {
|
|
354
|
-
const o = (1 - r) * 100;
|
|
355
|
-
return `color-mix(in srgb, ${t}, transparent ${o}%)`;
|
|
356
|
-
}
|
|
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
|
-
}
|
|
362
|
-
const j = R, yn = ({
|
|
363
|
-
color: t,
|
|
364
|
-
theme: r,
|
|
365
|
-
variant: e,
|
|
366
|
-
gradient: n,
|
|
367
|
-
autoContrast: a
|
|
368
|
-
}) => {
|
|
369
|
-
const o = q({ color: t, theme: r }), i = typeof a == "boolean" ? a : r.autoContrast;
|
|
370
|
-
if (e === "filled") {
|
|
371
|
-
const s = i && o.isLight ? "var(--mantine-color-black)" : "var(--mantine-color-white)";
|
|
372
|
-
return o.isThemeColor ? o.shade === void 0 ? {
|
|
373
|
-
background: `var(--mantine-color-${t}-filled)`,
|
|
374
|
-
hover: `var(--mantine-color-${t}-filled-hover)`,
|
|
375
|
-
color: s,
|
|
376
|
-
border: `${c(1)} solid transparent`
|
|
377
|
-
} : {
|
|
378
|
-
background: `var(--mantine-color-${o.color}-${o.shade})`,
|
|
379
|
-
hover: `var(--mantine-color-${o.color}-${o.shade === 9 ? 8 : o.shade + 1})`,
|
|
380
|
-
color: s,
|
|
381
|
-
border: `${c(1)} solid transparent`
|
|
382
|
-
} : {
|
|
383
|
-
background: t,
|
|
384
|
-
hover: Z(t, 0.1),
|
|
385
|
-
color: s,
|
|
386
|
-
border: `${c(1)} solid transparent`
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
if (e === "light") {
|
|
390
|
-
if (o.isThemeColor) {
|
|
391
|
-
if (o.shade === void 0)
|
|
392
|
-
return {
|
|
393
|
-
background: `var(--mantine-color-${t}-light)`,
|
|
394
|
-
hover: `var(--mantine-color-${t}-light-hover)`,
|
|
395
|
-
color: `var(--mantine-color-${t}-light-color)`,
|
|
396
|
-
border: `${c(1)} solid transparent`
|
|
397
|
-
};
|
|
398
|
-
const s = r.colors[o.color][o.shade];
|
|
399
|
-
return {
|
|
400
|
-
background: R(s, 0.1),
|
|
401
|
-
hover: R(s, 0.12),
|
|
402
|
-
color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
|
|
403
|
-
border: `${c(1)} solid transparent`
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
return {
|
|
407
|
-
background: R(t, 0.1),
|
|
408
|
-
hover: R(t, 0.12),
|
|
409
|
-
color: t,
|
|
410
|
-
border: `${c(1)} solid transparent`
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
if (e === "outline")
|
|
414
|
-
return o.isThemeColor ? o.shade === void 0 ? {
|
|
415
|
-
background: "transparent",
|
|
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
|
-
} : {
|
|
420
|
-
background: "transparent",
|
|
421
|
-
hover: R(r.colors[o.color][o.shade], 0.05),
|
|
422
|
-
color: `var(--mantine-color-${o.color}-${o.shade})`,
|
|
423
|
-
border: `${c(1)} solid var(--mantine-color-${o.color}-${o.shade})`
|
|
424
|
-
} : {
|
|
425
|
-
background: "transparent",
|
|
426
|
-
hover: R(t, 0.05),
|
|
427
|
-
color: t,
|
|
428
|
-
border: `${c(1)} solid ${t}`
|
|
429
|
-
};
|
|
430
|
-
if (e === "subtle") {
|
|
431
|
-
if (o.isThemeColor) {
|
|
432
|
-
if (o.shade === void 0)
|
|
433
|
-
return {
|
|
434
|
-
background: "transparent",
|
|
435
|
-
hover: `var(--mantine-color-${t}-light-hover)`,
|
|
436
|
-
color: `var(--mantine-color-${t}-light-color)`,
|
|
437
|
-
border: `${c(1)} solid transparent`
|
|
438
|
-
};
|
|
439
|
-
const s = r.colors[o.color][o.shade];
|
|
440
|
-
return {
|
|
441
|
-
background: "transparent",
|
|
442
|
-
hover: R(s, 0.12),
|
|
443
|
-
color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
|
|
444
|
-
border: `${c(1)} solid transparent`
|
|
445
|
-
};
|
|
446
|
-
}
|
|
447
|
-
return {
|
|
448
|
-
background: "transparent",
|
|
449
|
-
hover: R(t, 0.12),
|
|
450
|
-
color: t,
|
|
451
|
-
border: `${c(1)} solid transparent`
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
return e === "transparent" ? o.isThemeColor ? o.shade === void 0 ? {
|
|
455
|
-
background: "transparent",
|
|
456
|
-
hover: "transparent",
|
|
457
|
-
color: `var(--mantine-color-${t}-light-color)`,
|
|
458
|
-
border: `${c(1)} solid transparent`
|
|
459
|
-
} : {
|
|
460
|
-
background: "transparent",
|
|
461
|
-
hover: "transparent",
|
|
462
|
-
color: `var(--mantine-color-${o.color}-${Math.min(o.shade, 6)})`,
|
|
463
|
-
border: `${c(1)} solid transparent`
|
|
464
|
-
} : {
|
|
465
|
-
background: "transparent",
|
|
466
|
-
hover: "transparent",
|
|
467
|
-
color: t,
|
|
468
|
-
border: `${c(1)} solid transparent`
|
|
469
|
-
} : e === "white" ? o.isThemeColor ? o.shade === void 0 ? {
|
|
470
|
-
background: "var(--mantine-color-white)",
|
|
471
|
-
hover: Z(r.white, 0.01),
|
|
472
|
-
color: `var(--mantine-color-${t}-filled)`,
|
|
473
|
-
border: `${c(1)} solid transparent`
|
|
474
|
-
} : {
|
|
475
|
-
background: "var(--mantine-color-white)",
|
|
476
|
-
hover: Z(r.white, 0.01),
|
|
477
|
-
color: `var(--mantine-color-${o.color}-${o.shade})`,
|
|
478
|
-
border: `${c(1)} solid transparent`
|
|
479
|
-
} : {
|
|
480
|
-
background: "var(--mantine-color-white)",
|
|
481
|
-
hover: Z(r.white, 0.01),
|
|
482
|
-
color: t,
|
|
483
|
-
border: `${c(1)} solid transparent`
|
|
484
|
-
} : e === "gradient" ? {
|
|
485
|
-
background: At(n, r),
|
|
486
|
-
hover: At(n, r),
|
|
487
|
-
color: "var(--mantine-color-white)",
|
|
488
|
-
border: "none"
|
|
489
|
-
} : e === "default" ? {
|
|
490
|
-
background: "var(--mantine-color-default)",
|
|
491
|
-
hover: "var(--mantine-color-default-hover)",
|
|
492
|
-
color: "var(--mantine-color-default-color)",
|
|
493
|
-
border: `${c(1)} solid var(--mantine-color-default-border)`
|
|
494
|
-
} : {};
|
|
495
|
-
}, bn = {
|
|
496
|
-
dark: [
|
|
497
|
-
"#C9C9C9",
|
|
498
|
-
"#b8b8b8",
|
|
499
|
-
"#828282",
|
|
500
|
-
"#696969",
|
|
501
|
-
"#424242",
|
|
502
|
-
"#3b3b3b",
|
|
503
|
-
"#2e2e2e",
|
|
504
|
-
"#242424",
|
|
505
|
-
"#1f1f1f",
|
|
506
|
-
"#141414"
|
|
507
|
-
],
|
|
508
|
-
gray: [
|
|
509
|
-
"#f8f9fa",
|
|
510
|
-
"#f1f3f5",
|
|
511
|
-
"#e9ecef",
|
|
512
|
-
"#dee2e6",
|
|
513
|
-
"#ced4da",
|
|
514
|
-
"#adb5bd",
|
|
515
|
-
"#868e96",
|
|
516
|
-
"#495057",
|
|
517
|
-
"#343a40",
|
|
518
|
-
"#212529"
|
|
519
|
-
],
|
|
520
|
-
red: [
|
|
521
|
-
"#fff5f5",
|
|
522
|
-
"#ffe3e3",
|
|
523
|
-
"#ffc9c9",
|
|
524
|
-
"#ffa8a8",
|
|
525
|
-
"#ff8787",
|
|
526
|
-
"#ff6b6b",
|
|
527
|
-
"#fa5252",
|
|
528
|
-
"#f03e3e",
|
|
529
|
-
"#e03131",
|
|
530
|
-
"#c92a2a"
|
|
531
|
-
],
|
|
532
|
-
pink: [
|
|
533
|
-
"#fff0f6",
|
|
534
|
-
"#ffdeeb",
|
|
535
|
-
"#fcc2d7",
|
|
536
|
-
"#faa2c1",
|
|
537
|
-
"#f783ac",
|
|
538
|
-
"#f06595",
|
|
539
|
-
"#e64980",
|
|
540
|
-
"#d6336c",
|
|
541
|
-
"#c2255c",
|
|
542
|
-
"#a61e4d"
|
|
543
|
-
],
|
|
544
|
-
grape: [
|
|
545
|
-
"#f8f0fc",
|
|
546
|
-
"#f3d9fa",
|
|
547
|
-
"#eebefa",
|
|
548
|
-
"#e599f7",
|
|
549
|
-
"#da77f2",
|
|
550
|
-
"#cc5de8",
|
|
551
|
-
"#be4bdb",
|
|
552
|
-
"#ae3ec9",
|
|
553
|
-
"#9c36b5",
|
|
554
|
-
"#862e9c"
|
|
555
|
-
],
|
|
556
|
-
violet: [
|
|
557
|
-
"#f3f0ff",
|
|
558
|
-
"#e5dbff",
|
|
559
|
-
"#d0bfff",
|
|
560
|
-
"#b197fc",
|
|
561
|
-
"#9775fa",
|
|
562
|
-
"#845ef7",
|
|
563
|
-
"#7950f2",
|
|
564
|
-
"#7048e8",
|
|
565
|
-
"#6741d9",
|
|
566
|
-
"#5f3dc4"
|
|
567
|
-
],
|
|
568
|
-
indigo: [
|
|
569
|
-
"#edf2ff",
|
|
570
|
-
"#dbe4ff",
|
|
571
|
-
"#bac8ff",
|
|
572
|
-
"#91a7ff",
|
|
573
|
-
"#748ffc",
|
|
574
|
-
"#5c7cfa",
|
|
575
|
-
"#4c6ef5",
|
|
576
|
-
"#4263eb",
|
|
577
|
-
"#3b5bdb",
|
|
578
|
-
"#364fc7"
|
|
579
|
-
],
|
|
580
|
-
blue: [
|
|
581
|
-
"#e7f5ff",
|
|
582
|
-
"#d0ebff",
|
|
583
|
-
"#a5d8ff",
|
|
584
|
-
"#74c0fc",
|
|
585
|
-
"#4dabf7",
|
|
586
|
-
"#339af0",
|
|
587
|
-
"#228be6",
|
|
588
|
-
"#1c7ed6",
|
|
589
|
-
"#1971c2",
|
|
590
|
-
"#1864ab"
|
|
591
|
-
],
|
|
592
|
-
cyan: [
|
|
593
|
-
"#e3fafc",
|
|
594
|
-
"#c5f6fa",
|
|
595
|
-
"#99e9f2",
|
|
596
|
-
"#66d9e8",
|
|
597
|
-
"#3bc9db",
|
|
598
|
-
"#22b8cf",
|
|
599
|
-
"#15aabf",
|
|
600
|
-
"#1098ad",
|
|
601
|
-
"#0c8599",
|
|
602
|
-
"#0b7285"
|
|
603
|
-
],
|
|
604
|
-
teal: [
|
|
605
|
-
"#e6fcf5",
|
|
606
|
-
"#c3fae8",
|
|
607
|
-
"#96f2d7",
|
|
608
|
-
"#63e6be",
|
|
609
|
-
"#38d9a9",
|
|
610
|
-
"#20c997",
|
|
611
|
-
"#12b886",
|
|
612
|
-
"#0ca678",
|
|
613
|
-
"#099268",
|
|
614
|
-
"#087f5b"
|
|
615
|
-
],
|
|
616
|
-
green: [
|
|
617
|
-
"#ebfbee",
|
|
618
|
-
"#d3f9d8",
|
|
619
|
-
"#b2f2bb",
|
|
620
|
-
"#8ce99a",
|
|
621
|
-
"#69db7c",
|
|
622
|
-
"#51cf66",
|
|
623
|
-
"#40c057",
|
|
624
|
-
"#37b24d",
|
|
625
|
-
"#2f9e44",
|
|
626
|
-
"#2b8a3e"
|
|
627
|
-
],
|
|
628
|
-
lime: [
|
|
629
|
-
"#f4fce3",
|
|
630
|
-
"#e9fac8",
|
|
631
|
-
"#d8f5a2",
|
|
632
|
-
"#c0eb75",
|
|
633
|
-
"#a9e34b",
|
|
634
|
-
"#94d82d",
|
|
635
|
-
"#82c91e",
|
|
636
|
-
"#74b816",
|
|
637
|
-
"#66a80f",
|
|
638
|
-
"#5c940d"
|
|
639
|
-
],
|
|
640
|
-
yellow: [
|
|
641
|
-
"#fff9db",
|
|
642
|
-
"#fff3bf",
|
|
643
|
-
"#ffec99",
|
|
644
|
-
"#ffe066",
|
|
645
|
-
"#ffd43b",
|
|
646
|
-
"#fcc419",
|
|
647
|
-
"#fab005",
|
|
648
|
-
"#f59f00",
|
|
649
|
-
"#f08c00",
|
|
650
|
-
"#e67700"
|
|
651
|
-
],
|
|
652
|
-
orange: [
|
|
653
|
-
"#fff4e6",
|
|
654
|
-
"#ffe8cc",
|
|
655
|
-
"#ffd8a8",
|
|
656
|
-
"#ffc078",
|
|
657
|
-
"#ffa94d",
|
|
658
|
-
"#ff922b",
|
|
659
|
-
"#fd7e14",
|
|
660
|
-
"#f76707",
|
|
661
|
-
"#e8590c",
|
|
662
|
-
"#d9480f"
|
|
663
|
-
]
|
|
664
|
-
}, Ot = "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", kt = {
|
|
665
|
-
scale: 1,
|
|
666
|
-
fontSmoothing: !0,
|
|
667
|
-
focusRing: "auto",
|
|
668
|
-
white: "#fff",
|
|
669
|
-
black: "#000",
|
|
670
|
-
colors: bn,
|
|
671
|
-
primaryShade: { light: 6, dark: 8 },
|
|
672
|
-
primaryColor: "blue",
|
|
673
|
-
variantColorResolver: yn,
|
|
674
|
-
autoContrast: !1,
|
|
675
|
-
luminanceThreshold: 0.3,
|
|
676
|
-
fontFamily: Ot,
|
|
677
|
-
fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
|
|
678
|
-
respectReducedMotion: !1,
|
|
679
|
-
cursorType: "default",
|
|
680
|
-
defaultGradient: { from: "blue", to: "cyan", deg: 45 },
|
|
681
|
-
defaultRadius: "sm",
|
|
682
|
-
activeClassName: "mantine-active",
|
|
683
|
-
focusClassName: "",
|
|
684
|
-
headings: {
|
|
685
|
-
fontFamily: Ot,
|
|
686
|
-
fontWeight: "700",
|
|
687
|
-
textWrap: "wrap",
|
|
688
|
-
sizes: {
|
|
689
|
-
h1: { fontSize: c(34), lineHeight: "1.3" },
|
|
690
|
-
h2: { fontSize: c(26), lineHeight: "1.35" },
|
|
691
|
-
h3: { fontSize: c(22), lineHeight: "1.4" },
|
|
692
|
-
h4: { fontSize: c(18), lineHeight: "1.45" },
|
|
693
|
-
h5: { fontSize: c(16), lineHeight: "1.5" },
|
|
694
|
-
h6: { fontSize: c(14), lineHeight: "1.5" }
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
fontSizes: {
|
|
698
|
-
xs: c(12),
|
|
699
|
-
sm: c(14),
|
|
700
|
-
md: c(16),
|
|
701
|
-
lg: c(18),
|
|
702
|
-
xl: c(20)
|
|
703
|
-
},
|
|
704
|
-
lineHeights: {
|
|
705
|
-
xs: "1.4",
|
|
706
|
-
sm: "1.45",
|
|
707
|
-
md: "1.55",
|
|
708
|
-
lg: "1.6",
|
|
709
|
-
xl: "1.65"
|
|
710
|
-
},
|
|
711
|
-
radius: {
|
|
712
|
-
xs: c(2),
|
|
713
|
-
sm: c(4),
|
|
714
|
-
md: c(8),
|
|
715
|
-
lg: c(16),
|
|
716
|
-
xl: c(32)
|
|
717
|
-
},
|
|
718
|
-
spacing: {
|
|
719
|
-
xs: c(10),
|
|
720
|
-
sm: c(12),
|
|
721
|
-
md: c(16),
|
|
722
|
-
lg: c(20),
|
|
723
|
-
xl: c(32)
|
|
724
|
-
},
|
|
725
|
-
breakpoints: {
|
|
726
|
-
xs: "36em",
|
|
727
|
-
sm: "48em",
|
|
728
|
-
md: "62em",
|
|
729
|
-
lg: "75em",
|
|
730
|
-
xl: "88em"
|
|
731
|
-
},
|
|
732
|
-
shadows: {
|
|
733
|
-
xs: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), 0 ${c(1)} ${c(2)} rgba(0, 0, 0, 0.1)`,
|
|
734
|
-
sm: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(10)} ${c(
|
|
735
|
-
15
|
|
736
|
-
)} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(7)} ${c(7)} ${c(-5)}`,
|
|
737
|
-
md: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(20)} ${c(
|
|
738
|
-
25
|
|
739
|
-
)} ${c(-5)}, rgba(0, 0, 0, 0.04) 0 ${c(10)} ${c(10)} ${c(-5)}`,
|
|
740
|
-
lg: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(28)} ${c(
|
|
741
|
-
23
|
|
742
|
-
)} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(12)} ${c(12)} ${c(-7)}`,
|
|
743
|
-
xl: `0 ${c(1)} ${c(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${c(36)} ${c(
|
|
744
|
-
28
|
|
745
|
-
)} ${c(-7)}, rgba(0, 0, 0, 0.04) 0 ${c(17)} ${c(17)} ${c(-7)}`
|
|
746
|
-
},
|
|
747
|
-
other: {},
|
|
748
|
-
components: {}
|
|
749
|
-
};
|
|
750
|
-
function It(t) {
|
|
751
|
-
return t === "auto" || t === "dark" || t === "light";
|
|
752
|
-
}
|
|
753
|
-
function hn({
|
|
754
|
-
key: t = "mantine-color-scheme-value"
|
|
755
|
-
} = {}) {
|
|
756
|
-
let r;
|
|
757
|
-
return {
|
|
758
|
-
get: (e) => {
|
|
759
|
-
if (typeof window > "u")
|
|
760
|
-
return e;
|
|
761
|
-
try {
|
|
762
|
-
const n = window.localStorage.getItem(t);
|
|
763
|
-
return It(n) ? n : e;
|
|
764
|
-
} catch {
|
|
765
|
-
return e;
|
|
766
|
-
}
|
|
767
|
-
},
|
|
768
|
-
set: (e) => {
|
|
769
|
-
try {
|
|
770
|
-
window.localStorage.setItem(t, e);
|
|
771
|
-
} catch (n) {
|
|
772
|
-
console.warn(
|
|
773
|
-
"[@mantine/core] Local storage color scheme manager was unable to save color scheme.",
|
|
774
|
-
n
|
|
775
|
-
);
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
subscribe: (e) => {
|
|
779
|
-
r = (n) => {
|
|
780
|
-
n.storageArea === window.localStorage && n.key === t && It(n.newValue) && e(n.newValue);
|
|
781
|
-
}, window.addEventListener("storage", r);
|
|
782
|
-
},
|
|
783
|
-
unsubscribe: () => {
|
|
784
|
-
window.removeEventListener("storage", r);
|
|
785
|
-
},
|
|
786
|
-
clear: () => {
|
|
787
|
-
window.localStorage.removeItem(t);
|
|
788
|
-
}
|
|
789
|
-
};
|
|
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", 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
|
-
}
|
|
795
|
-
function Vt(t) {
|
|
796
|
-
if (!(t.primaryColor in t.colors))
|
|
797
|
-
throw new Error($n);
|
|
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
|
-
}
|
|
803
|
-
function vn(t, r) {
|
|
804
|
-
var n;
|
|
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
|
-
}
|
|
810
|
-
const Nt = Dt(null), Sn = () => $t(Nt) || kt;
|
|
811
|
-
function V() {
|
|
812
|
-
const t = $t(Nt);
|
|
813
|
-
if (!t)
|
|
814
|
-
throw new Error(
|
|
815
|
-
"@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app"
|
|
816
|
-
);
|
|
817
|
-
return t;
|
|
818
|
-
}
|
|
819
|
-
function Jt({
|
|
820
|
-
theme: t,
|
|
821
|
-
children: r,
|
|
822
|
-
inherit: e = !0
|
|
823
|
-
}) {
|
|
824
|
-
const n = Sn(), a = zr(
|
|
825
|
-
() => vn(e ? n : kt, t),
|
|
826
|
-
[t, n, e]
|
|
827
|
-
);
|
|
828
|
-
return /* @__PURE__ */ p(Nt.Provider, { value: a, children: r });
|
|
829
|
-
}
|
|
830
|
-
Jt.displayName = "@mantine/core/MantineThemeProvider";
|
|
831
|
-
function wn() {
|
|
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
|
-
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
|
-
}, "");
|
|
836
|
-
return /* @__PURE__ */ p(
|
|
837
|
-
"style",
|
|
838
|
-
{
|
|
839
|
-
"data-mantine-styles": "classes",
|
|
840
|
-
nonce: r == null ? void 0 : r(),
|
|
841
|
-
dangerouslySetInnerHTML: { __html: e }
|
|
842
|
-
}
|
|
843
|
-
);
|
|
844
|
-
}
|
|
845
|
-
function dt(t) {
|
|
846
|
-
return Object.entries(t).map(([r, e]) => `${r}: ${e};`).join("");
|
|
847
|
-
}
|
|
848
|
-
function D(t, r) {
|
|
849
|
-
return (Array.isArray(t) ? t : [t]).reduce((n, a) => `${a}{${n}}`, r);
|
|
850
|
-
}
|
|
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
|
-
return `${n}${i}${s}`;
|
|
854
|
-
}
|
|
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
|
-
}
|
|
858
|
-
function jt(t, r) {
|
|
859
|
-
return xn({
|
|
860
|
-
color: t.colors[t.primaryColor][U(t, r)],
|
|
861
|
-
theme: t,
|
|
862
|
-
autoContrast: null
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
function J({
|
|
866
|
-
theme: t,
|
|
867
|
-
color: r,
|
|
868
|
-
colorScheme: e,
|
|
869
|
-
name: n = r,
|
|
870
|
-
withColorValues: a = !0
|
|
871
|
-
}) {
|
|
872
|
-
if (!t.colors[r])
|
|
873
|
-
return {};
|
|
874
|
-
if (e === "light") {
|
|
875
|
-
const s = U(t, "light"), l = {
|
|
876
|
-
[`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-filled)`,
|
|
877
|
-
[`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${s})`,
|
|
878
|
-
[`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${s === 9 ? 8 : s + 1})`,
|
|
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
|
-
[`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${s})`,
|
|
882
|
-
[`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${s})`,
|
|
883
|
-
[`--mantine-color-${n}-outline-hover`]: j(t.colors[r][s], 0.05)
|
|
884
|
-
};
|
|
885
|
-
return a ? {
|
|
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
|
-
...l
|
|
897
|
-
} : l;
|
|
898
|
-
}
|
|
899
|
-
const o = U(t, "dark"), i = {
|
|
900
|
-
[`--mantine-color-${n}-text`]: `var(--mantine-color-${n}-4)`,
|
|
901
|
-
[`--mantine-color-${n}-filled`]: `var(--mantine-color-${n}-${o})`,
|
|
902
|
-
[`--mantine-color-${n}-filled-hover`]: `var(--mantine-color-${n}-${o === 9 ? 8 : o + 1})`,
|
|
903
|
-
[`--mantine-color-${n}-light`]: j(
|
|
904
|
-
t.colors[r][Math.max(0, o - 2)],
|
|
905
|
-
0.15
|
|
906
|
-
),
|
|
907
|
-
[`--mantine-color-${n}-light-hover`]: j(
|
|
908
|
-
t.colors[r][Math.max(0, o - 2)],
|
|
909
|
-
0.2
|
|
910
|
-
),
|
|
911
|
-
[`--mantine-color-${n}-light-color`]: `var(--mantine-color-${n}-${Math.max(o - 5, 0)})`,
|
|
912
|
-
[`--mantine-color-${n}-outline`]: `var(--mantine-color-${n}-${Math.max(o - 4, 0)})`,
|
|
913
|
-
[`--mantine-color-${n}-outline-hover`]: j(
|
|
914
|
-
t.colors[r][Math.max(o - 4, 0)],
|
|
915
|
-
0.05
|
|
916
|
-
)
|
|
917
|
-
};
|
|
918
|
-
return a ? {
|
|
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
|
-
...i
|
|
930
|
-
} : i;
|
|
931
|
-
}
|
|
932
|
-
function kn(t) {
|
|
933
|
-
return !!t && typeof t == "object" && "mantine-virtual-color" in t;
|
|
934
|
-
}
|
|
935
|
-
function F(t, r, e) {
|
|
936
|
-
M(r).forEach(
|
|
937
|
-
(n) => Object.assign(t, { [`--mantine-${e}-${n}`]: r[n] })
|
|
938
|
-
);
|
|
939
|
-
}
|
|
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
|
-
variables: {
|
|
943
|
-
"--mantine-scale": t.scale.toString(),
|
|
944
|
-
"--mantine-cursor-type": t.cursorType,
|
|
945
|
-
"--mantine-color-scheme": "light dark",
|
|
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
|
-
"--mantine-radius-default": e,
|
|
957
|
-
// Primary colors
|
|
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
|
-
},
|
|
964
|
-
light: {
|
|
965
|
-
"--mantine-primary-color-contrast": jt(t, "light"),
|
|
966
|
-
"--mantine-color-bright": "var(--mantine-color-black)",
|
|
967
|
-
"--mantine-color-text": t.black,
|
|
968
|
-
"--mantine-color-body": t.white,
|
|
969
|
-
"--mantine-color-error": "var(--mantine-color-red-6)",
|
|
970
|
-
"--mantine-color-placeholder": "var(--mantine-color-gray-5)",
|
|
971
|
-
"--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-${r})`,
|
|
972
|
-
"--mantine-color-default": "var(--mantine-color-white)",
|
|
973
|
-
"--mantine-color-default-hover": "var(--mantine-color-gray-0)",
|
|
974
|
-
"--mantine-color-default-color": "var(--mantine-color-black)",
|
|
975
|
-
"--mantine-color-default-border": "var(--mantine-color-gray-4)",
|
|
976
|
-
"--mantine-color-dimmed": "var(--mantine-color-gray-6)"
|
|
977
|
-
},
|
|
978
|
-
dark: {
|
|
979
|
-
"--mantine-primary-color-contrast": jt(t, "dark"),
|
|
980
|
-
"--mantine-color-bright": "var(--mantine-color-white)",
|
|
981
|
-
"--mantine-color-text": "var(--mantine-color-dark-0)",
|
|
982
|
-
"--mantine-color-body": "var(--mantine-color-dark-7)",
|
|
983
|
-
"--mantine-color-error": "var(--mantine-color-red-8)",
|
|
984
|
-
"--mantine-color-placeholder": "var(--mantine-color-dark-3)",
|
|
985
|
-
"--mantine-color-anchor": `var(--mantine-color-${t.primaryColor}-4)`,
|
|
986
|
-
"--mantine-color-default": "var(--mantine-color-dark-6)",
|
|
987
|
-
"--mantine-color-default-hover": "var(--mantine-color-dark-5)",
|
|
988
|
-
"--mantine-color-default-color": "var(--mantine-color-white)",
|
|
989
|
-
"--mantine-color-default-border": "var(--mantine-color-dark-4)",
|
|
990
|
-
"--mantine-color-dimmed": "var(--mantine-color-dark-2)"
|
|
991
|
-
}
|
|
992
|
-
};
|
|
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
|
-
if (kn(i)) {
|
|
998
|
-
Object.assign(
|
|
999
|
-
n.light,
|
|
1000
|
-
J({
|
|
1001
|
-
theme: t,
|
|
1002
|
-
name: i.name,
|
|
1003
|
-
color: i.light,
|
|
1004
|
-
colorScheme: "light",
|
|
1005
|
-
withColorValues: !0
|
|
1006
|
-
})
|
|
1007
|
-
), Object.assign(
|
|
1008
|
-
n.dark,
|
|
1009
|
-
J({
|
|
1010
|
-
theme: t,
|
|
1011
|
-
name: i.name,
|
|
1012
|
-
color: i.dark,
|
|
1013
|
-
colorScheme: "dark",
|
|
1014
|
-
withColorValues: !0
|
|
1015
|
-
})
|
|
1016
|
-
);
|
|
1017
|
-
return;
|
|
1018
|
-
}
|
|
1019
|
-
i.forEach((s, l) => {
|
|
1020
|
-
n.variables[`--mantine-color-${o}-${l}`] = s;
|
|
1021
|
-
}), Object.assign(
|
|
1022
|
-
n.light,
|
|
1023
|
-
J({
|
|
1024
|
-
theme: t,
|
|
1025
|
-
color: o,
|
|
1026
|
-
colorScheme: "light",
|
|
1027
|
-
withColorValues: !1
|
|
1028
|
-
})
|
|
1029
|
-
), Object.assign(
|
|
1030
|
-
n.dark,
|
|
1031
|
-
J({
|
|
1032
|
-
theme: t,
|
|
1033
|
-
color: o,
|
|
1034
|
-
colorScheme: "dark",
|
|
1035
|
-
withColorValues: !1
|
|
1036
|
-
})
|
|
1037
|
-
);
|
|
1038
|
-
});
|
|
1039
|
-
const a = t.headings.sizes;
|
|
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 || t.headings.fontWeight;
|
|
1042
|
-
}), n;
|
|
1043
|
-
};
|
|
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
|
-
}
|
|
1048
|
-
const ft = tr(kt);
|
|
1049
|
-
function Tn(t) {
|
|
1050
|
-
const r = {
|
|
1051
|
-
variables: {},
|
|
1052
|
-
light: {},
|
|
1053
|
-
dark: {}
|
|
1054
|
-
};
|
|
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
|
-
return `
|
|
1065
|
-
${t}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
|
|
1066
|
-
${t}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
|
|
1067
|
-
`;
|
|
1068
|
-
}
|
|
1069
|
-
function rr({
|
|
1070
|
-
cssVariablesSelector: t,
|
|
1071
|
-
deduplicateCssVariables: r
|
|
1072
|
-
}) {
|
|
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
|
-
return l ? /* @__PURE__ */ p(
|
|
1075
|
-
"style",
|
|
1076
|
-
{
|
|
1077
|
-
"data-mantine-styles": !0,
|
|
1078
|
-
nonce: n == null ? void 0 : n(),
|
|
1079
|
-
dangerouslySetInnerHTML: {
|
|
1080
|
-
__html: `${l}${i ? "" : Mn(t)}`
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
) : null;
|
|
1084
|
-
}
|
|
1085
|
-
rr.displayName = "@mantine/CssVariables";
|
|
1086
|
-
function Rn() {
|
|
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
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
function H(t, r) {
|
|
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 = t !== "auto" ? t : e ? "dark" : "light";
|
|
1095
|
-
(o = r()) == null || o.setAttribute("data-mantine-color-scheme", n);
|
|
1096
|
-
}
|
|
1097
|
-
function _n({
|
|
1098
|
-
manager: t,
|
|
1099
|
-
defaultColorScheme: r,
|
|
1100
|
-
getRootElement: e,
|
|
1101
|
-
forceColorScheme: n
|
|
1102
|
-
}) {
|
|
1103
|
-
const a = W(null), [o, i] = rt(() => t.get(r)), s = n || o, l = Lt(
|
|
1104
|
-
(u) => {
|
|
1105
|
-
n || (H(u, e), i(u), t.set(u));
|
|
1106
|
-
},
|
|
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
|
-
}, []), A(() => {
|
|
1114
|
-
var f;
|
|
1115
|
-
if (n)
|
|
1116
|
-
return H(n, e), () => {
|
|
1117
|
-
};
|
|
1118
|
-
n === void 0 && H(o, e), typeof window < "u" && "matchMedia" in window && (a.current = window.matchMedia("(prefers-color-scheme: dark)"));
|
|
1119
|
-
const u = (m) => {
|
|
1120
|
-
o === "auto" && H(m.matches ? "dark" : "light", e);
|
|
1121
|
-
};
|
|
1122
|
-
return (f = a.current) == null || f.addEventListener("change", u), () => {
|
|
1123
|
-
var m;
|
|
1124
|
-
return (m = a.current) == null ? void 0 : m.removeEventListener("change", u);
|
|
1125
|
-
};
|
|
1126
|
-
}, [o, n]), { colorScheme: s, setColorScheme: l, clearColorScheme: d };
|
|
1127
|
-
}
|
|
1128
|
-
function Pn({
|
|
1129
|
-
respectReducedMotion: t,
|
|
1130
|
-
getRootElement: r
|
|
1131
|
-
}) {
|
|
1132
|
-
Qt(() => {
|
|
1133
|
-
var e;
|
|
1134
|
-
t && ((e = r()) == null || e.setAttribute("data-respect-reduced-motion", "true"));
|
|
1135
|
-
}, [t]);
|
|
1136
|
-
}
|
|
1137
|
-
Rn();
|
|
1138
|
-
function nr({
|
|
1139
|
-
theme: t,
|
|
1140
|
-
children: r,
|
|
1141
|
-
getStyleNonce: e,
|
|
1142
|
-
withStaticClasses: n = !0,
|
|
1143
|
-
withGlobalClasses: a = !0,
|
|
1144
|
-
deduplicateCssVariables: o = !0,
|
|
1145
|
-
withCssVariables: i = !0,
|
|
1146
|
-
cssVariablesSelector: s = ":root",
|
|
1147
|
-
classNamesPrefix: l = "mantine",
|
|
1148
|
-
colorSchemeManager: d = hn(),
|
|
1149
|
-
defaultColorScheme: u = "light",
|
|
1150
|
-
getRootElement: f = () => document.documentElement,
|
|
1151
|
-
cssVariablesResolver: m,
|
|
1152
|
-
forceColorScheme: g,
|
|
1153
|
-
stylesTransform: y,
|
|
1154
|
-
env: $
|
|
1155
|
-
}) {
|
|
1156
|
-
const { colorScheme: h, setColorScheme: C, clearColorScheme: x } = _n({
|
|
1157
|
-
defaultColorScheme: u,
|
|
1158
|
-
forceColorScheme: g,
|
|
1159
|
-
manager: d,
|
|
1160
|
-
getRootElement: f
|
|
1161
|
-
});
|
|
1162
|
-
return Pn({
|
|
1163
|
-
respectReducedMotion: (t == null ? void 0 : t.respectReducedMotion) || !1,
|
|
1164
|
-
getRootElement: f
|
|
1165
|
-
}), /* @__PURE__ */ p(
|
|
1166
|
-
Zt.Provider,
|
|
1167
|
-
{
|
|
1168
|
-
value: {
|
|
1169
|
-
colorScheme: h,
|
|
1170
|
-
setColorScheme: C,
|
|
1171
|
-
clearColorScheme: x,
|
|
1172
|
-
getRootElement: f,
|
|
1173
|
-
classNamesPrefix: l,
|
|
1174
|
-
getStyleNonce: e,
|
|
1175
|
-
cssVariablesResolver: m,
|
|
1176
|
-
cssVariablesSelector: s,
|
|
1177
|
-
withStaticClasses: n,
|
|
1178
|
-
stylesTransform: y,
|
|
1179
|
-
env: $
|
|
1180
|
-
},
|
|
1181
|
-
children: /* @__PURE__ */ z(Jt, { theme: t, children: [
|
|
1182
|
-
i && /* @__PURE__ */ p(
|
|
1183
|
-
rr,
|
|
1184
|
-
{
|
|
1185
|
-
cssVariablesSelector: s,
|
|
1186
|
-
deduplicateCssVariables: o
|
|
1187
|
-
}
|
|
1188
|
-
),
|
|
1189
|
-
a && /* @__PURE__ */ p(wn, {}),
|
|
1190
|
-
r
|
|
1191
|
-
] })
|
|
1192
|
-
}
|
|
1193
|
-
);
|
|
1194
|
-
}
|
|
1195
|
-
nr.displayName = "@mantine/core/MantineProvider";
|
|
1196
|
-
const Ln = {
|
|
1197
|
-
always: "mantine-focus-always",
|
|
1198
|
-
auto: "mantine-focus-auto",
|
|
1199
|
-
never: "mantine-focus-never"
|
|
1200
|
-
};
|
|
1201
|
-
function En({ theme: t, options: r, unstyled: e }) {
|
|
1202
|
-
return B(
|
|
1203
|
-
(r == null ? void 0 : r.focusable) && !e && (t.focusClassName || Ln[t.focusRing]),
|
|
1204
|
-
(r == null ? void 0 : r.active) && !e && t.activeClassName
|
|
1205
|
-
);
|
|
1206
|
-
}
|
|
1207
|
-
function An({
|
|
1208
|
-
selector: t,
|
|
1209
|
-
stylesCtx: r,
|
|
1210
|
-
options: e,
|
|
1211
|
-
props: n,
|
|
1212
|
-
theme: a
|
|
1213
|
-
}) {
|
|
1214
|
-
return wt({
|
|
1215
|
-
theme: a,
|
|
1216
|
-
classNames: e == null ? void 0 : e.classNames,
|
|
1217
|
-
props: (e == null ? void 0 : e.props) || n,
|
|
1218
|
-
stylesCtx: r
|
|
1219
|
-
})[t];
|
|
1220
|
-
}
|
|
1221
|
-
function Ft({
|
|
1222
|
-
selector: t,
|
|
1223
|
-
stylesCtx: r,
|
|
1224
|
-
theme: e,
|
|
1225
|
-
classNames: n,
|
|
1226
|
-
props: a
|
|
1227
|
-
}) {
|
|
1228
|
-
return wt({ theme: e, classNames: n, props: a, stylesCtx: r })[t];
|
|
1229
|
-
}
|
|
1230
|
-
function On({ rootSelector: t, selector: r, className: e }) {
|
|
1231
|
-
return t === r ? e : void 0;
|
|
1232
|
-
}
|
|
1233
|
-
function In({ selector: t, classes: r, unstyled: e }) {
|
|
1234
|
-
return e ? void 0 : r[t];
|
|
1235
|
-
}
|
|
1236
|
-
function Bn({
|
|
1237
|
-
themeName: t,
|
|
1238
|
-
classNamesPrefix: r,
|
|
1239
|
-
selector: e,
|
|
1240
|
-
withStaticClass: n
|
|
1241
|
-
}) {
|
|
1242
|
-
return n === !1 ? [] : t.map((a) => `${r}-${a}-${e}`);
|
|
1243
|
-
}
|
|
1244
|
-
function Vn({
|
|
1245
|
-
themeName: t,
|
|
1246
|
-
theme: r,
|
|
1247
|
-
selector: e,
|
|
1248
|
-
props: n,
|
|
1249
|
-
stylesCtx: a
|
|
1250
|
-
}) {
|
|
1251
|
-
return t.map(
|
|
1252
|
-
(o) => {
|
|
1253
|
-
var i, s;
|
|
1254
|
-
return (s = wt({
|
|
1255
|
-
theme: r,
|
|
1256
|
-
classNames: (i = r.components[o]) == null ? void 0 : i.classNames,
|
|
1257
|
-
props: n,
|
|
1258
|
-
stylesCtx: a
|
|
1259
|
-
})) == null ? void 0 : s[e];
|
|
1260
|
-
}
|
|
1261
|
-
);
|
|
1262
|
-
}
|
|
1263
|
-
function jn({
|
|
1264
|
-
options: t,
|
|
1265
|
-
classes: r,
|
|
1266
|
-
selector: e,
|
|
1267
|
-
unstyled: n
|
|
1268
|
-
}) {
|
|
1269
|
-
return t != null && t.variant && !n ? r[`${e}--${t.variant}`] : void 0;
|
|
1270
|
-
}
|
|
1271
|
-
function Fn({
|
|
1272
|
-
theme: t,
|
|
1273
|
-
options: r,
|
|
1274
|
-
themeName: e,
|
|
1275
|
-
selector: n,
|
|
1276
|
-
classNamesPrefix: a,
|
|
1277
|
-
classNames: o,
|
|
1278
|
-
classes: i,
|
|
1279
|
-
unstyled: s,
|
|
1280
|
-
className: l,
|
|
1281
|
-
rootSelector: d,
|
|
1282
|
-
props: u,
|
|
1283
|
-
stylesCtx: f,
|
|
1284
|
-
withStaticClasses: m,
|
|
1285
|
-
headless: g,
|
|
1286
|
-
transformedStyles: y
|
|
1287
|
-
}) {
|
|
1288
|
-
return B(
|
|
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
|
-
On({ rootSelector: d, selector: n, className: l }),
|
|
1296
|
-
In({ selector: n, classes: i, unstyled: s || g }),
|
|
1297
|
-
m && !g && Bn({
|
|
1298
|
-
themeName: e,
|
|
1299
|
-
classNamesPrefix: a,
|
|
1300
|
-
selector: n,
|
|
1301
|
-
withStaticClass: r == null ? void 0 : r.withStaticClass
|
|
1302
|
-
}),
|
|
1303
|
-
r == null ? void 0 : r.className
|
|
1304
|
-
);
|
|
1305
|
-
}
|
|
1306
|
-
function Hn({
|
|
1307
|
-
theme: t,
|
|
1308
|
-
themeName: r,
|
|
1309
|
-
props: e,
|
|
1310
|
-
stylesCtx: n,
|
|
1311
|
-
selector: a
|
|
1312
|
-
}) {
|
|
1313
|
-
return r.map(
|
|
1314
|
-
(o) => {
|
|
1315
|
-
var i;
|
|
1316
|
-
return gt({
|
|
1317
|
-
theme: t,
|
|
1318
|
-
styles: (i = t.components[o]) == null ? void 0 : i.styles,
|
|
1319
|
-
props: e,
|
|
1320
|
-
stylesCtx: n
|
|
1321
|
-
})[a];
|
|
1322
|
-
}
|
|
1323
|
-
).reduce((o, i) => ({ ...o, ...i }), {});
|
|
1324
|
-
}
|
|
1325
|
-
function bt({ style: t, theme: r }) {
|
|
1326
|
-
return Array.isArray(t) ? [...t].reduce(
|
|
1327
|
-
(e, n) => ({ ...e, ...bt({ style: n, theme: r }) }),
|
|
1328
|
-
{}
|
|
1329
|
-
) : typeof t == "function" ? t(r) : t ?? {};
|
|
1330
|
-
}
|
|
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
|
-
}
|
|
1336
|
-
function zn({
|
|
1337
|
-
vars: t,
|
|
1338
|
-
varsResolver: r,
|
|
1339
|
-
theme: e,
|
|
1340
|
-
props: n,
|
|
1341
|
-
stylesCtx: a,
|
|
1342
|
-
selector: o,
|
|
1343
|
-
themeName: i,
|
|
1344
|
-
headless: s
|
|
1345
|
-
}) {
|
|
1346
|
-
var l;
|
|
1347
|
-
return (l = Wn([
|
|
1348
|
-
s ? {} : r == null ? void 0 : r(e, n, a),
|
|
1349
|
-
...i.map((d) => {
|
|
1350
|
-
var u, f, m;
|
|
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
|
-
}),
|
|
1353
|
-
t == null ? void 0 : t(e, n, a)
|
|
1354
|
-
])) == null ? void 0 : l[o];
|
|
1355
|
-
}
|
|
1356
|
-
function Yn({
|
|
1357
|
-
theme: t,
|
|
1358
|
-
themeName: r,
|
|
1359
|
-
selector: e,
|
|
1360
|
-
options: n,
|
|
1361
|
-
props: a,
|
|
1362
|
-
stylesCtx: o,
|
|
1363
|
-
rootSelector: i,
|
|
1364
|
-
styles: s,
|
|
1365
|
-
style: l,
|
|
1366
|
-
vars: d,
|
|
1367
|
-
varsResolver: u,
|
|
1368
|
-
headless: f,
|
|
1369
|
-
withStylesTransform: m
|
|
1370
|
-
}) {
|
|
1371
|
-
return {
|
|
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
|
-
};
|
|
1379
|
-
}
|
|
1380
|
-
function Gn({ props: t, stylesCtx: r, themeName: e }) {
|
|
1381
|
-
var i;
|
|
1382
|
-
const n = V(), a = (i = cn()) == null ? void 0 : i();
|
|
1383
|
-
return {
|
|
1384
|
-
getTransformedStyles: (s) => a ? [
|
|
1385
|
-
...s.map(
|
|
1386
|
-
(d) => a(d, { props: t, theme: n, ctx: r })
|
|
1387
|
-
),
|
|
1388
|
-
...e.map(
|
|
1389
|
-
(d) => {
|
|
1390
|
-
var u;
|
|
1391
|
-
return a((u = n.components[d]) == null ? void 0 : u.styles, { props: t, theme: n, ctx: r });
|
|
1392
|
-
}
|
|
1393
|
-
)
|
|
1394
|
-
].filter(Boolean) : [],
|
|
1395
|
-
withStylesTransform: !!a
|
|
1396
|
-
};
|
|
1397
|
-
}
|
|
1398
|
-
function Q({
|
|
1399
|
-
name: t,
|
|
1400
|
-
classes: r,
|
|
1401
|
-
props: e,
|
|
1402
|
-
stylesCtx: n,
|
|
1403
|
-
className: a,
|
|
1404
|
-
style: o,
|
|
1405
|
-
rootSelector: i = "root",
|
|
1406
|
-
unstyled: s,
|
|
1407
|
-
classNames: l,
|
|
1408
|
-
styles: d,
|
|
1409
|
-
vars: u,
|
|
1410
|
-
varsResolver: f
|
|
1411
|
-
}) {
|
|
1412
|
-
const m = V(), g = en(), y = on(), $ = an(), h = (Array.isArray(t) ? t : [t]).filter((v) => v), { withStylesTransform: C, getTransformedStyles: x } = Gn({
|
|
1413
|
-
props: e,
|
|
1414
|
-
stylesCtx: n,
|
|
1415
|
-
themeName: h
|
|
1416
|
-
});
|
|
1417
|
-
return (v, w) => ({
|
|
1418
|
-
className: Fn({
|
|
1419
|
-
theme: m,
|
|
1420
|
-
options: w,
|
|
1421
|
-
themeName: h,
|
|
1422
|
-
selector: v,
|
|
1423
|
-
classNamesPrefix: g,
|
|
1424
|
-
classNames: l,
|
|
1425
|
-
classes: r,
|
|
1426
|
-
unstyled: s,
|
|
1427
|
-
className: a,
|
|
1428
|
-
rootSelector: i,
|
|
1429
|
-
props: e,
|
|
1430
|
-
stylesCtx: n,
|
|
1431
|
-
withStaticClasses: y,
|
|
1432
|
-
headless: $,
|
|
1433
|
-
transformedStyles: x([w == null ? void 0 : w.styles, d])
|
|
1434
|
-
}),
|
|
1435
|
-
style: Yn({
|
|
1436
|
-
theme: m,
|
|
1437
|
-
themeName: h,
|
|
1438
|
-
selector: v,
|
|
1439
|
-
options: w,
|
|
1440
|
-
props: e,
|
|
1441
|
-
stylesCtx: n,
|
|
1442
|
-
rootSelector: i,
|
|
1443
|
-
styles: d,
|
|
1444
|
-
style: o,
|
|
1445
|
-
vars: u,
|
|
1446
|
-
varsResolver: f,
|
|
1447
|
-
headless: $,
|
|
1448
|
-
withStylesTransform: C
|
|
1449
|
-
})
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
const Dn = ({
|
|
1453
|
-
defaultColorScheme: t,
|
|
1454
|
-
localStorageKey: r,
|
|
1455
|
-
forceColorScheme: e
|
|
1456
|
-
}) => e ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${e}');` : `try {
|
|
1457
|
-
var _colorScheme = window.localStorage.getItem("${r}");
|
|
1458
|
-
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${t}";
|
|
1
|
+
import { MantineProvider as s } from "./components/MainProvider/MantineProvider.js";
|
|
2
|
+
import { Button as S } from "./components/Button/Button.js";
|
|
3
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
4
|
+
const a = ({
|
|
5
|
+
defaultColorScheme: e,
|
|
6
|
+
localStorageKey: o,
|
|
7
|
+
forceColorScheme: t
|
|
8
|
+
}) => t ? `document.documentElement.setAttribute("data-mantine-color-scheme", '${t}');` : `try {
|
|
9
|
+
var _colorScheme = window.localStorage.getItem("${o}");
|
|
10
|
+
var colorScheme = _colorScheme === "light" || _colorScheme === "dark" || _colorScheme === "auto" ? _colorScheme : "${e}";
|
|
1459
11
|
var computedColorScheme = colorScheme !== "auto" ? colorScheme : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1460
12
|
document.documentElement.setAttribute("data-mantine-color-scheme", computedColorScheme);
|
|
1461
13
|
} catch (e) {}
|
|
1462
14
|
`;
|
|
1463
|
-
function
|
|
1464
|
-
defaultColorScheme:
|
|
1465
|
-
localStorageKey:
|
|
1466
|
-
forceColorScheme:
|
|
1467
|
-
...
|
|
15
|
+
function l({
|
|
16
|
+
defaultColorScheme: e = "light",
|
|
17
|
+
localStorageKey: o = "mantine-color-scheme-value",
|
|
18
|
+
forceColorScheme: t,
|
|
19
|
+
...r
|
|
1468
20
|
}) {
|
|
1469
|
-
const
|
|
1470
|
-
return /* @__PURE__ */
|
|
21
|
+
const c = ["light", "dark", "auto"].includes(e) ? e : "light";
|
|
22
|
+
return /* @__PURE__ */ m(
|
|
1471
23
|
"script",
|
|
1472
24
|
{
|
|
1473
|
-
...
|
|
25
|
+
...r,
|
|
1474
26
|
"data-mantine-script": !0,
|
|
1475
27
|
dangerouslySetInnerHTML: {
|
|
1476
|
-
__html:
|
|
1477
|
-
defaultColorScheme:
|
|
1478
|
-
localStorageKey:
|
|
1479
|
-
forceColorScheme:
|
|
28
|
+
__html: a({
|
|
29
|
+
defaultColorScheme: c,
|
|
30
|
+
localStorageKey: o,
|
|
31
|
+
forceColorScheme: t
|
|
1480
32
|
})
|
|
1481
33
|
}
|
|
1482
34
|
}
|
|
1483
35
|
);
|
|
1484
36
|
}
|
|
1485
|
-
|
|
1486
|
-
var i;
|
|
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
|
-
}
|
|
1490
|
-
const Ee = {
|
|
37
|
+
const i = {
|
|
1491
38
|
suppressHydrationWarning: !0,
|
|
1492
39
|
"data-mantine-color-scheme": "light"
|
|
1493
40
|
};
|
|
1494
|
-
function ut(t) {
|
|
1495
|
-
return M(t).reduce(
|
|
1496
|
-
(r, e) => t[e] !== void 0 ? `${r}${Dr(e)}:${t[e]};` : r,
|
|
1497
|
-
""
|
|
1498
|
-
).trim();
|
|
1499
|
-
}
|
|
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
|
-
) : [];
|
|
1504
|
-
return `${a ? `${t}{${a}}` : ""}${o.join("")}${i.join("")}`.trim();
|
|
1505
|
-
}
|
|
1506
|
-
function Un(t) {
|
|
1507
|
-
const r = Ct();
|
|
1508
|
-
return /* @__PURE__ */ p(
|
|
1509
|
-
"style",
|
|
1510
|
-
{
|
|
1511
|
-
"data-mantine-styles": "inline",
|
|
1512
|
-
nonce: r == null ? void 0 : r(),
|
|
1513
|
-
dangerouslySetInnerHTML: { __html: Xn(t) }
|
|
1514
|
-
}
|
|
1515
|
-
);
|
|
1516
|
-
}
|
|
1517
|
-
function qn(t) {
|
|
1518
|
-
const {
|
|
1519
|
-
m: r,
|
|
1520
|
-
mx: e,
|
|
1521
|
-
my: n,
|
|
1522
|
-
mt: a,
|
|
1523
|
-
mb: o,
|
|
1524
|
-
ml: i,
|
|
1525
|
-
mr: s,
|
|
1526
|
-
me: l,
|
|
1527
|
-
ms: d,
|
|
1528
|
-
p: u,
|
|
1529
|
-
px: f,
|
|
1530
|
-
py: m,
|
|
1531
|
-
pt: g,
|
|
1532
|
-
pb: y,
|
|
1533
|
-
pl: $,
|
|
1534
|
-
pr: h,
|
|
1535
|
-
pe: C,
|
|
1536
|
-
ps: x,
|
|
1537
|
-
bd: v,
|
|
1538
|
-
bg: w,
|
|
1539
|
-
c: L,
|
|
1540
|
-
opacity: b,
|
|
1541
|
-
ff: k,
|
|
1542
|
-
fz: S,
|
|
1543
|
-
fw: E,
|
|
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
|
-
mx: e,
|
|
1578
|
-
my: n,
|
|
1579
|
-
mt: a,
|
|
1580
|
-
mb: o,
|
|
1581
|
-
ml: i,
|
|
1582
|
-
mr: s,
|
|
1583
|
-
me: l,
|
|
1584
|
-
ms: d,
|
|
1585
|
-
p: u,
|
|
1586
|
-
px: f,
|
|
1587
|
-
py: m,
|
|
1588
|
-
pt: g,
|
|
1589
|
-
pb: y,
|
|
1590
|
-
pl: $,
|
|
1591
|
-
pr: h,
|
|
1592
|
-
pe: C,
|
|
1593
|
-
ps: x,
|
|
1594
|
-
bd: v,
|
|
1595
|
-
bg: w,
|
|
1596
|
-
c: L,
|
|
1597
|
-
opacity: b,
|
|
1598
|
-
ff: k,
|
|
1599
|
-
fz: S,
|
|
1600
|
-
fw: E,
|
|
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
|
-
}
|
|
1632
|
-
const Qn = {
|
|
1633
|
-
m: { type: "spacing", property: "margin" },
|
|
1634
|
-
mt: { type: "spacing", property: "marginTop" },
|
|
1635
|
-
mb: { type: "spacing", property: "marginBottom" },
|
|
1636
|
-
ml: { type: "spacing", property: "marginLeft" },
|
|
1637
|
-
mr: { type: "spacing", property: "marginRight" },
|
|
1638
|
-
ms: { type: "spacing", property: "marginInlineStart" },
|
|
1639
|
-
me: { type: "spacing", property: "marginInlineEnd" },
|
|
1640
|
-
mx: { type: "spacing", property: "marginInline" },
|
|
1641
|
-
my: { type: "spacing", property: "marginBlock" },
|
|
1642
|
-
p: { type: "spacing", property: "padding" },
|
|
1643
|
-
pt: { type: "spacing", property: "paddingTop" },
|
|
1644
|
-
pb: { type: "spacing", property: "paddingBottom" },
|
|
1645
|
-
pl: { type: "spacing", property: "paddingLeft" },
|
|
1646
|
-
pr: { type: "spacing", property: "paddingRight" },
|
|
1647
|
-
ps: { type: "spacing", property: "paddingInlineStart" },
|
|
1648
|
-
pe: { type: "spacing", property: "paddingInlineEnd" },
|
|
1649
|
-
px: { type: "spacing", property: "paddingInline" },
|
|
1650
|
-
py: { type: "spacing", property: "paddingBlock" },
|
|
1651
|
-
bd: { type: "border", property: "border" },
|
|
1652
|
-
bg: { type: "color", property: "background" },
|
|
1653
|
-
c: { type: "textColor", property: "color" },
|
|
1654
|
-
opacity: { type: "identity", property: "opacity" },
|
|
1655
|
-
ff: { type: "fontFamily", property: "fontFamily" },
|
|
1656
|
-
fz: { type: "fontSize", property: "fontSize" },
|
|
1657
|
-
fw: { type: "identity", property: "fontWeight" },
|
|
1658
|
-
lts: { type: "size", property: "letterSpacing" },
|
|
1659
|
-
ta: { type: "identity", property: "textAlign" },
|
|
1660
|
-
lh: { type: "lineHeight", property: "lineHeight" },
|
|
1661
|
-
fs: { type: "identity", property: "fontStyle" },
|
|
1662
|
-
tt: { type: "identity", property: "textTransform" },
|
|
1663
|
-
td: { type: "identity", property: "textDecoration" },
|
|
1664
|
-
w: { type: "spacing", property: "width" },
|
|
1665
|
-
miw: { type: "spacing", property: "minWidth" },
|
|
1666
|
-
maw: { type: "spacing", property: "maxWidth" },
|
|
1667
|
-
h: { type: "spacing", property: "height" },
|
|
1668
|
-
mih: { type: "spacing", property: "minHeight" },
|
|
1669
|
-
mah: { type: "spacing", property: "maxHeight" },
|
|
1670
|
-
bgsz: { type: "size", property: "backgroundSize" },
|
|
1671
|
-
bgp: { type: "identity", property: "backgroundPosition" },
|
|
1672
|
-
bgr: { type: "identity", property: "backgroundRepeat" },
|
|
1673
|
-
bga: { type: "identity", property: "backgroundAttachment" },
|
|
1674
|
-
pos: { type: "identity", property: "position" },
|
|
1675
|
-
top: { type: "size", property: "top" },
|
|
1676
|
-
left: { type: "size", property: "left" },
|
|
1677
|
-
bottom: { type: "size", property: "bottom" },
|
|
1678
|
-
right: { type: "size", property: "right" },
|
|
1679
|
-
inset: { type: "size", property: "inset" },
|
|
1680
|
-
display: { type: "identity", property: "display" },
|
|
1681
|
-
flex: { type: "identity", property: "flex" }
|
|
1682
|
-
};
|
|
1683
|
-
function Tt(t, r) {
|
|
1684
|
-
const e = q({ color: t, theme: r });
|
|
1685
|
-
return e.color === "dimmed" ? "var(--mantine-color-dimmed)" : e.color === "bright" ? "var(--mantine-color-bright)" : e.variable ? `var(${e.variable})` : e.color;
|
|
1686
|
-
}
|
|
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
|
-
}
|
|
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
|
-
let o = `${c(e)}`;
|
|
1697
|
-
return n && (o += ` ${n}`), a.length > 0 && (o += ` ${Tt(a.join(" "), r)}`), o.trim();
|
|
1698
|
-
}
|
|
1699
|
-
return t;
|
|
1700
|
-
}
|
|
1701
|
-
const Ht = {
|
|
1702
|
-
text: "var(--mantine-font-family)",
|
|
1703
|
-
mono: "var(--mantine-font-family-monospace)",
|
|
1704
|
-
monospace: "var(--mantine-font-family-monospace)",
|
|
1705
|
-
heading: "var(--mantine-font-family-headings)",
|
|
1706
|
-
headings: "var(--mantine-font-family-headings)"
|
|
1707
|
-
};
|
|
1708
|
-
function Jn(t) {
|
|
1709
|
-
return typeof t == "string" && t in Ht ? Ht[t] : t;
|
|
1710
|
-
}
|
|
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
|
-
}
|
|
1715
|
-
function ne(t) {
|
|
1716
|
-
return t;
|
|
1717
|
-
}
|
|
1718
|
-
const ee = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
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
|
-
const n = `--mantine-spacing-${e}`;
|
|
1733
|
-
return t.startsWith("-") ? `calc(var(${n}) * -1)` : `var(${n})`;
|
|
1734
|
-
}
|
|
1735
|
-
return t;
|
|
1736
|
-
}
|
|
1737
|
-
const mt = {
|
|
1738
|
-
color: Tt,
|
|
1739
|
-
textColor: Kn,
|
|
1740
|
-
fontSize: re,
|
|
1741
|
-
spacing: ie,
|
|
1742
|
-
identity: ne,
|
|
1743
|
-
size: ae,
|
|
1744
|
-
lineHeight: oe,
|
|
1745
|
-
fontFamily: Jn,
|
|
1746
|
-
border: Zn
|
|
1747
|
-
};
|
|
1748
|
-
function Wt(t) {
|
|
1749
|
-
return t.replace("(min-width: ", "").replace("em)", "");
|
|
1750
|
-
}
|
|
1751
|
-
function se({
|
|
1752
|
-
media: t,
|
|
1753
|
-
...r
|
|
1754
|
-
}) {
|
|
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
|
-
}
|
|
1758
|
-
function ce(t) {
|
|
1759
|
-
if (typeof t != "object" || t === null)
|
|
1760
|
-
return !1;
|
|
1761
|
-
const r = Object.keys(t);
|
|
1762
|
-
return !(r.length === 1 && r[0] === "base");
|
|
1763
|
-
}
|
|
1764
|
-
function le(t) {
|
|
1765
|
-
return typeof t == "object" && t !== null ? "base" in t ? t.base : void 0 : t;
|
|
1766
|
-
}
|
|
1767
|
-
function de(t) {
|
|
1768
|
-
return typeof t == "object" && t !== null ? M(t).filter((r) => r !== "base") : [];
|
|
1769
|
-
}
|
|
1770
|
-
function fe(t, r) {
|
|
1771
|
-
return typeof t == "object" && t !== null && r in t ? t[r] : t;
|
|
1772
|
-
}
|
|
1773
|
-
function ue({
|
|
1774
|
-
styleProps: t,
|
|
1775
|
-
data: r,
|
|
1776
|
-
theme: e
|
|
1777
|
-
}) {
|
|
1778
|
-
return se(
|
|
1779
|
-
M(t).reduce(
|
|
1780
|
-
(n, a) => {
|
|
1781
|
-
if (a === "hiddenFrom" || a === "visibleFrom" || a === "sx")
|
|
1782
|
-
return n;
|
|
1783
|
-
const o = r[a], i = Array.isArray(o.property) ? o.property : [o.property], s = le(t[a]);
|
|
1784
|
-
if (!ce(t[a]))
|
|
1785
|
-
return i.forEach((d) => {
|
|
1786
|
-
n.inlineStyles[d] = mt[o.type](s, e);
|
|
1787
|
-
}), n;
|
|
1788
|
-
n.hasResponsiveStyles = !0;
|
|
1789
|
-
const l = de(t[a]);
|
|
1790
|
-
return i.forEach((d) => {
|
|
1791
|
-
s && (n.styles[d] = mt[o.type](s, e)), l.forEach((u) => {
|
|
1792
|
-
const f = `(min-width: ${e.breakpoints[u]})`;
|
|
1793
|
-
n.media[f] = {
|
|
1794
|
-
...n.media[f],
|
|
1795
|
-
[d]: mt[o.type](
|
|
1796
|
-
fe(t[a], u),
|
|
1797
|
-
e
|
|
1798
|
-
)
|
|
1799
|
-
};
|
|
1800
|
-
});
|
|
1801
|
-
}), n;
|
|
1802
|
-
},
|
|
1803
|
-
{
|
|
1804
|
-
hasResponsiveStyles: !1,
|
|
1805
|
-
styles: {},
|
|
1806
|
-
inlineStyles: {},
|
|
1807
|
-
media: {}
|
|
1808
|
-
}
|
|
1809
|
-
)
|
|
1810
|
-
);
|
|
1811
|
-
}
|
|
1812
|
-
function me() {
|
|
1813
|
-
return `__m__-${Yr().replace(/:/g, "")}`;
|
|
1814
|
-
}
|
|
1815
|
-
function er(t) {
|
|
1816
|
-
return t.startsWith("data-") ? t : `data-${t}`;
|
|
1817
|
-
}
|
|
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
|
-
}, {});
|
|
1823
|
-
}
|
|
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
|
-
{}
|
|
1828
|
-
) : pe(t) : null;
|
|
1829
|
-
}
|
|
1830
|
-
function ht(t, r) {
|
|
1831
|
-
return Array.isArray(t) ? [...t].reduce(
|
|
1832
|
-
(e, n) => ({ ...e, ...ht(n, r) }),
|
|
1833
|
-
{}
|
|
1834
|
-
) : typeof t == "function" ? t(r) : t ?? {};
|
|
1835
|
-
}
|
|
1836
|
-
function ge({
|
|
1837
|
-
theme: t,
|
|
1838
|
-
style: r,
|
|
1839
|
-
vars: e,
|
|
1840
|
-
styleProps: n
|
|
1841
|
-
}) {
|
|
1842
|
-
const a = ht(r, t), o = ht(e, t);
|
|
1843
|
-
return { ...a, ...o, ...n };
|
|
1844
|
-
}
|
|
1845
|
-
const ar = _(
|
|
1846
|
-
({
|
|
1847
|
-
component: t,
|
|
1848
|
-
style: r,
|
|
1849
|
-
__vars: e,
|
|
1850
|
-
className: n,
|
|
1851
|
-
variant: a,
|
|
1852
|
-
mod: o,
|
|
1853
|
-
size: i,
|
|
1854
|
-
hiddenFrom: s,
|
|
1855
|
-
visibleFrom: l,
|
|
1856
|
-
lightHidden: d,
|
|
1857
|
-
darkHidden: u,
|
|
1858
|
-
renderRoot: f,
|
|
1859
|
-
__size: m,
|
|
1860
|
-
...g
|
|
1861
|
-
}, y) => {
|
|
1862
|
-
var S;
|
|
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
|
-
styleProps: C,
|
|
1865
|
-
theme: $,
|
|
1866
|
-
data: Qn
|
|
1867
|
-
}), k = {
|
|
1868
|
-
ref: y,
|
|
1869
|
-
style: ge({
|
|
1870
|
-
theme: $,
|
|
1871
|
-
style: r,
|
|
1872
|
-
vars: e,
|
|
1873
|
-
styleProps: b.inlineStyles
|
|
1874
|
-
}),
|
|
1875
|
-
className: B(n, w, {
|
|
1876
|
-
[L]: b.hasResponsiveStyles,
|
|
1877
|
-
"mantine-light-hidden": d,
|
|
1878
|
-
"mantine-dark-hidden": u,
|
|
1879
|
-
[`mantine-hidden-from-${s}`]: s,
|
|
1880
|
-
[`mantine-visible-from-${l}`]: l
|
|
1881
|
-
}),
|
|
1882
|
-
"data-variant": a,
|
|
1883
|
-
"data-size": Ut(i) ? void 0 : i || void 0,
|
|
1884
|
-
size: m,
|
|
1885
|
-
...or(o),
|
|
1886
|
-
...x
|
|
1887
|
-
};
|
|
1888
|
-
return /* @__PURE__ */ z(pt, { children: [
|
|
1889
|
-
b.hasResponsiveStyles && /* @__PURE__ */ p(
|
|
1890
|
-
Un,
|
|
1891
|
-
{
|
|
1892
|
-
selector: `.${L}`,
|
|
1893
|
-
styles: b.styles,
|
|
1894
|
-
media: b.media
|
|
1895
|
-
}
|
|
1896
|
-
),
|
|
1897
|
-
typeof f == "function" ? f(k) : /* @__PURE__ */ p(h, { ...k })
|
|
1898
|
-
] });
|
|
1899
|
-
}
|
|
1900
|
-
);
|
|
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
|
-
const ye = {
|
|
1922
|
-
__staticSelector: "UnstyledButton"
|
|
1923
|
-
}, Rt = sr(
|
|
1924
|
-
(t, r) => {
|
|
1925
|
-
const e = I("UnstyledButton", ye, t), {
|
|
1926
|
-
className: n,
|
|
1927
|
-
component: a = "button",
|
|
1928
|
-
__staticSelector: o,
|
|
1929
|
-
unstyled: i,
|
|
1930
|
-
classNames: s,
|
|
1931
|
-
styles: l,
|
|
1932
|
-
style: d,
|
|
1933
|
-
...u
|
|
1934
|
-
} = e, f = Q({
|
|
1935
|
-
name: o,
|
|
1936
|
-
props: e,
|
|
1937
|
-
classes: cr,
|
|
1938
|
-
className: n,
|
|
1939
|
-
style: d,
|
|
1940
|
-
classNames: s,
|
|
1941
|
-
styles: l,
|
|
1942
|
-
unstyled: i
|
|
1943
|
-
});
|
|
1944
|
-
return /* @__PURE__ */ p(
|
|
1945
|
-
N,
|
|
1946
|
-
{
|
|
1947
|
-
...f("root", { focusable: !0 }),
|
|
1948
|
-
component: a,
|
|
1949
|
-
ref: r,
|
|
1950
|
-
type: a === "button" ? "button" : void 0,
|
|
1951
|
-
...u
|
|
1952
|
-
}
|
|
1953
|
-
);
|
|
1954
|
-
}
|
|
1955
|
-
);
|
|
1956
|
-
Rt.classes = cr;
|
|
1957
|
-
Rt.displayName = "@mantine/core/UnstyledButton";
|
|
1958
|
-
const X = (t) => ({
|
|
1959
|
-
in: { opacity: 1, transform: "scale(1)" },
|
|
1960
|
-
out: { opacity: 0, transform: `scale(.9) translateY(${t === "bottom" ? 10 : -10}px)` },
|
|
1961
|
-
transitionProperty: "transform, opacity"
|
|
1962
|
-
}), tt = {
|
|
1963
|
-
fade: {
|
|
1964
|
-
in: { opacity: 1 },
|
|
1965
|
-
out: { opacity: 0 },
|
|
1966
|
-
transitionProperty: "opacity"
|
|
1967
|
-
},
|
|
1968
|
-
"fade-up": {
|
|
1969
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
1970
|
-
out: { opacity: 0, transform: "translateY(30px)" },
|
|
1971
|
-
transitionProperty: "opacity, transform"
|
|
1972
|
-
},
|
|
1973
|
-
"fade-down": {
|
|
1974
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
1975
|
-
out: { opacity: 0, transform: "translateY(-30px)" },
|
|
1976
|
-
transitionProperty: "opacity, transform"
|
|
1977
|
-
},
|
|
1978
|
-
"fade-left": {
|
|
1979
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
1980
|
-
out: { opacity: 0, transform: "translateX(30px)" },
|
|
1981
|
-
transitionProperty: "opacity, transform"
|
|
1982
|
-
},
|
|
1983
|
-
"fade-right": {
|
|
1984
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
1985
|
-
out: { opacity: 0, transform: "translateX(-30px)" },
|
|
1986
|
-
transitionProperty: "opacity, transform"
|
|
1987
|
-
},
|
|
1988
|
-
scale: {
|
|
1989
|
-
in: { opacity: 1, transform: "scale(1)" },
|
|
1990
|
-
out: { opacity: 0, transform: "scale(0)" },
|
|
1991
|
-
common: { transformOrigin: "top" },
|
|
1992
|
-
transitionProperty: "transform, opacity"
|
|
1993
|
-
},
|
|
1994
|
-
"scale-y": {
|
|
1995
|
-
in: { opacity: 1, transform: "scaleY(1)" },
|
|
1996
|
-
out: { opacity: 0, transform: "scaleY(0)" },
|
|
1997
|
-
common: { transformOrigin: "top" },
|
|
1998
|
-
transitionProperty: "transform, opacity"
|
|
1999
|
-
},
|
|
2000
|
-
"scale-x": {
|
|
2001
|
-
in: { opacity: 1, transform: "scaleX(1)" },
|
|
2002
|
-
out: { opacity: 0, transform: "scaleX(0)" },
|
|
2003
|
-
common: { transformOrigin: "left" },
|
|
2004
|
-
transitionProperty: "transform, opacity"
|
|
2005
|
-
},
|
|
2006
|
-
"skew-up": {
|
|
2007
|
-
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
2008
|
-
out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" },
|
|
2009
|
-
common: { transformOrigin: "top" },
|
|
2010
|
-
transitionProperty: "transform, opacity"
|
|
2011
|
-
},
|
|
2012
|
-
"skew-down": {
|
|
2013
|
-
in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" },
|
|
2014
|
-
out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" },
|
|
2015
|
-
common: { transformOrigin: "bottom" },
|
|
2016
|
-
transitionProperty: "transform, opacity"
|
|
2017
|
-
},
|
|
2018
|
-
"rotate-left": {
|
|
2019
|
-
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
2020
|
-
out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" },
|
|
2021
|
-
common: { transformOrigin: "bottom" },
|
|
2022
|
-
transitionProperty: "transform, opacity"
|
|
2023
|
-
},
|
|
2024
|
-
"rotate-right": {
|
|
2025
|
-
in: { opacity: 1, transform: "translateY(0) rotate(0deg)" },
|
|
2026
|
-
out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" },
|
|
2027
|
-
common: { transformOrigin: "top" },
|
|
2028
|
-
transitionProperty: "transform, opacity"
|
|
2029
|
-
},
|
|
2030
|
-
"slide-down": {
|
|
2031
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
2032
|
-
out: { opacity: 0, transform: "translateY(-100%)" },
|
|
2033
|
-
common: { transformOrigin: "top" },
|
|
2034
|
-
transitionProperty: "transform, opacity"
|
|
2035
|
-
},
|
|
2036
|
-
"slide-up": {
|
|
2037
|
-
in: { opacity: 1, transform: "translateY(0)" },
|
|
2038
|
-
out: { opacity: 0, transform: "translateY(100%)" },
|
|
2039
|
-
common: { transformOrigin: "bottom" },
|
|
2040
|
-
transitionProperty: "transform, opacity"
|
|
2041
|
-
},
|
|
2042
|
-
"slide-left": {
|
|
2043
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
2044
|
-
out: { opacity: 0, transform: "translateX(100%)" },
|
|
2045
|
-
common: { transformOrigin: "left" },
|
|
2046
|
-
transitionProperty: "transform, opacity"
|
|
2047
|
-
},
|
|
2048
|
-
"slide-right": {
|
|
2049
|
-
in: { opacity: 1, transform: "translateX(0)" },
|
|
2050
|
-
out: { opacity: 0, transform: "translateX(-100%)" },
|
|
2051
|
-
common: { transformOrigin: "right" },
|
|
2052
|
-
transitionProperty: "transform, opacity"
|
|
2053
|
-
},
|
|
2054
|
-
pop: {
|
|
2055
|
-
...X("bottom"),
|
|
2056
|
-
common: { transformOrigin: "center center" }
|
|
2057
|
-
},
|
|
2058
|
-
"pop-bottom-left": {
|
|
2059
|
-
...X("bottom"),
|
|
2060
|
-
common: { transformOrigin: "bottom left" }
|
|
2061
|
-
},
|
|
2062
|
-
"pop-bottom-right": {
|
|
2063
|
-
...X("bottom"),
|
|
2064
|
-
common: { transformOrigin: "bottom right" }
|
|
2065
|
-
},
|
|
2066
|
-
"pop-top-left": {
|
|
2067
|
-
...X("top"),
|
|
2068
|
-
common: { transformOrigin: "top left" }
|
|
2069
|
-
},
|
|
2070
|
-
"pop-top-right": {
|
|
2071
|
-
...X("top"),
|
|
2072
|
-
common: { transformOrigin: "top right" }
|
|
2073
|
-
}
|
|
2074
|
-
}, zt = {
|
|
2075
|
-
entering: "in",
|
|
2076
|
-
entered: "in",
|
|
2077
|
-
exiting: "out",
|
|
2078
|
-
exited: "out",
|
|
2079
|
-
"pre-exiting": "out",
|
|
2080
|
-
"pre-entering": "out"
|
|
2081
|
-
};
|
|
2082
|
-
function be({
|
|
2083
|
-
transition: t,
|
|
2084
|
-
state: r,
|
|
2085
|
-
duration: e,
|
|
2086
|
-
timingFunction: n
|
|
2087
|
-
}) {
|
|
2088
|
-
const a = {
|
|
2089
|
-
WebkitBackfaceVisibility: "hidden",
|
|
2090
|
-
willChange: "transform, opacity",
|
|
2091
|
-
transitionDuration: `${e}ms`,
|
|
2092
|
-
transitionTimingFunction: n
|
|
2093
|
-
};
|
|
2094
|
-
return typeof t == "string" ? t in tt ? {
|
|
2095
|
-
transitionProperty: tt[t].transitionProperty,
|
|
2096
|
-
...a,
|
|
2097
|
-
...tt[t].common,
|
|
2098
|
-
...tt[t][zt[r]]
|
|
2099
|
-
} : {} : {
|
|
2100
|
-
transitionProperty: t.transitionProperty,
|
|
2101
|
-
...a,
|
|
2102
|
-
...t.common,
|
|
2103
|
-
...t[zt[r]]
|
|
2104
|
-
};
|
|
2105
|
-
}
|
|
2106
|
-
function he({
|
|
2107
|
-
duration: t,
|
|
2108
|
-
exitDuration: r,
|
|
2109
|
-
timingFunction: e,
|
|
2110
|
-
mounted: n,
|
|
2111
|
-
onEnter: a,
|
|
2112
|
-
onExit: o,
|
|
2113
|
-
onEntered: i,
|
|
2114
|
-
onExited: s,
|
|
2115
|
-
enterDelay: l,
|
|
2116
|
-
exitDelay: d
|
|
2117
|
-
}) {
|
|
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
|
-
const k = b ? a : o, S = b ? i : s;
|
|
2120
|
-
window.clearTimeout(C.current);
|
|
2121
|
-
const E = m ? 0 : b ? t : r;
|
|
2122
|
-
y(E), E === 0 ? (typeof k == "function" && k(), typeof S == "function" && S(), h(b ? "entered" : "exited")) : v.current = requestAnimationFrame(() => {
|
|
2123
|
-
Gr.flushSync(() => {
|
|
2124
|
-
h(b ? "pre-entering" : "pre-exiting");
|
|
2125
|
-
}), v.current = requestAnimationFrame(() => {
|
|
2126
|
-
typeof k == "function" && k(), h(b ? "entering" : "exiting"), C.current = window.setTimeout(() => {
|
|
2127
|
-
typeof S == "function" && S(), h(b ? "entered" : "exited");
|
|
2128
|
-
}, E);
|
|
2129
|
-
});
|
|
2130
|
-
});
|
|
2131
|
-
}, L = (b) => {
|
|
2132
|
-
if (window.clearTimeout(x.current), typeof (b ? l : d) != "number") {
|
|
2133
|
-
w(b);
|
|
2134
|
-
return;
|
|
2135
|
-
}
|
|
2136
|
-
x.current = window.setTimeout(
|
|
2137
|
-
() => {
|
|
2138
|
-
w(b);
|
|
2139
|
-
},
|
|
2140
|
-
b ? l : d
|
|
2141
|
-
);
|
|
2142
|
-
};
|
|
2143
|
-
return Zr(() => {
|
|
2144
|
-
L(n);
|
|
2145
|
-
}, [n]), A(
|
|
2146
|
-
() => () => {
|
|
2147
|
-
window.clearTimeout(C.current), cancelAnimationFrame(v.current);
|
|
2148
|
-
},
|
|
2149
|
-
[]
|
|
2150
|
-
), {
|
|
2151
|
-
transitionDuration: g,
|
|
2152
|
-
transitionStatus: $,
|
|
2153
|
-
transitionTimingFunction: e || "ease"
|
|
2154
|
-
};
|
|
2155
|
-
}
|
|
2156
|
-
function lr({
|
|
2157
|
-
keepMounted: t,
|
|
2158
|
-
transition: r = "fade",
|
|
2159
|
-
duration: e = 250,
|
|
2160
|
-
exitDuration: n = e,
|
|
2161
|
-
mounted: a,
|
|
2162
|
-
children: o,
|
|
2163
|
-
timingFunction: i = "ease",
|
|
2164
|
-
onExit: s,
|
|
2165
|
-
onEntered: l,
|
|
2166
|
-
onEnter: d,
|
|
2167
|
-
onExited: u,
|
|
2168
|
-
enterDelay: f,
|
|
2169
|
-
exitDelay: m
|
|
2170
|
-
}) {
|
|
2171
|
-
const g = ln(), { transitionDuration: y, transitionStatus: $, transitionTimingFunction: h } = he({
|
|
2172
|
-
mounted: a,
|
|
2173
|
-
exitDuration: n,
|
|
2174
|
-
duration: e,
|
|
2175
|
-
timingFunction: i,
|
|
2176
|
-
onExit: s,
|
|
2177
|
-
onEntered: l,
|
|
2178
|
-
onEnter: d,
|
|
2179
|
-
onExited: u,
|
|
2180
|
-
enterDelay: f,
|
|
2181
|
-
exitDelay: m
|
|
2182
|
-
});
|
|
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
|
-
be({
|
|
2185
|
-
transition: r,
|
|
2186
|
-
duration: y,
|
|
2187
|
-
state: $,
|
|
2188
|
-
timingFunction: h
|
|
2189
|
-
})
|
|
2190
|
-
) });
|
|
2191
|
-
}
|
|
2192
|
-
lr.displayName = "@mantine/core/Transition";
|
|
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 dr = _(({ className: t, ...r }, e) => /* @__PURE__ */ z(N, { component: "span", className: B(T.barsLoader, t), ...r, ref: e, children: [
|
|
2195
|
-
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2196
|
-
/* @__PURE__ */ p("span", { className: T.bar }),
|
|
2197
|
-
/* @__PURE__ */ p("span", { className: T.bar })
|
|
2198
|
-
] }));
|
|
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
|
-
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2202
|
-
/* @__PURE__ */ p("span", { className: T.dot }),
|
|
2203
|
-
/* @__PURE__ */ p("span", { className: T.dot })
|
|
2204
|
-
] }));
|
|
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
|
-
}, $e = {
|
|
2213
|
-
loaders: mr,
|
|
2214
|
-
type: "oval"
|
|
2215
|
-
}, ve = (t, { size: r, color: e }) => ({
|
|
2216
|
-
root: {
|
|
2217
|
-
"--loader-size": O(r, "loader-size"),
|
|
2218
|
-
"--loader-color": e ? yt(e, t) : void 0
|
|
2219
|
-
}
|
|
2220
|
-
}), et = Mt((t, r) => {
|
|
2221
|
-
const e = I("Loader", $e, t), {
|
|
2222
|
-
size: n,
|
|
2223
|
-
color: a,
|
|
2224
|
-
type: o,
|
|
2225
|
-
vars: i,
|
|
2226
|
-
className: s,
|
|
2227
|
-
style: l,
|
|
2228
|
-
classNames: d,
|
|
2229
|
-
styles: u,
|
|
2230
|
-
unstyled: f,
|
|
2231
|
-
loaders: m,
|
|
2232
|
-
variant: g,
|
|
2233
|
-
children: y,
|
|
2234
|
-
...$
|
|
2235
|
-
} = e, h = Q({
|
|
2236
|
-
name: "Loader",
|
|
2237
|
-
props: e,
|
|
2238
|
-
classes: T,
|
|
2239
|
-
className: s,
|
|
2240
|
-
style: l,
|
|
2241
|
-
classNames: d,
|
|
2242
|
-
styles: u,
|
|
2243
|
-
unstyled: f,
|
|
2244
|
-
vars: i,
|
|
2245
|
-
varsResolver: ve
|
|
2246
|
-
});
|
|
2247
|
-
return y ? /* @__PURE__ */ p(N, { ...h("root"), ref: r, ...$, children: y }) : /* @__PURE__ */ p(
|
|
2248
|
-
N,
|
|
2249
|
-
{
|
|
2250
|
-
...h("root"),
|
|
2251
|
-
ref: r,
|
|
2252
|
-
component: m[o],
|
|
2253
|
-
variant: g,
|
|
2254
|
-
size: n,
|
|
2255
|
-
...$
|
|
2256
|
-
}
|
|
2257
|
-
);
|
|
2258
|
-
});
|
|
2259
|
-
et.defaultLoaders = mr;
|
|
2260
|
-
et.classes = T;
|
|
2261
|
-
et.displayName = "@mantine/core/Loader";
|
|
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 Yt = {
|
|
2264
|
-
orientation: "horizontal"
|
|
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
|
-
className: n,
|
|
2270
|
-
style: a,
|
|
2271
|
-
classNames: o,
|
|
2272
|
-
styles: i,
|
|
2273
|
-
unstyled: s,
|
|
2274
|
-
orientation: l,
|
|
2275
|
-
vars: d,
|
|
2276
|
-
borderWidth: u,
|
|
2277
|
-
variant: f,
|
|
2278
|
-
mod: m,
|
|
2279
|
-
...g
|
|
2280
|
-
} = I("ButtonGroup", Yt, t), y = Q({
|
|
2281
|
-
name: "ButtonGroup",
|
|
2282
|
-
props: e,
|
|
2283
|
-
classes: Y,
|
|
2284
|
-
className: n,
|
|
2285
|
-
style: a,
|
|
2286
|
-
classNames: o,
|
|
2287
|
-
styles: i,
|
|
2288
|
-
unstyled: s,
|
|
2289
|
-
vars: d,
|
|
2290
|
-
varsResolver: Se,
|
|
2291
|
-
rootSelector: "group"
|
|
2292
|
-
});
|
|
2293
|
-
return /* @__PURE__ */ p(
|
|
2294
|
-
N,
|
|
2295
|
-
{
|
|
2296
|
-
...y("group"),
|
|
2297
|
-
ref: r,
|
|
2298
|
-
variant: f,
|
|
2299
|
-
mod: [{ "data-orientation": l }, m],
|
|
2300
|
-
role: "group",
|
|
2301
|
-
...g
|
|
2302
|
-
}
|
|
2303
|
-
);
|
|
2304
|
-
});
|
|
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
|
-
gradient: n,
|
|
2312
|
-
variant: a || "filled",
|
|
2313
|
-
autoContrast: o
|
|
2314
|
-
});
|
|
2315
|
-
return {
|
|
2316
|
-
groupSection: {
|
|
2317
|
-
"--section-height": O(i, "section-height"),
|
|
2318
|
-
"--section-padding-x": O(i, "section-padding-x"),
|
|
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
|
-
"--section-bg": e || a ? s.background : void 0,
|
|
2322
|
-
"--section-color": s.color,
|
|
2323
|
-
"--section-bd": e || a ? s.border : void 0
|
|
2324
|
-
}
|
|
2325
|
-
};
|
|
2326
|
-
}, Pt = Mt((t, r) => {
|
|
2327
|
-
const e = I("ButtonGroupSection", Gt, t), {
|
|
2328
|
-
className: n,
|
|
2329
|
-
style: a,
|
|
2330
|
-
classNames: o,
|
|
2331
|
-
styles: i,
|
|
2332
|
-
unstyled: s,
|
|
2333
|
-
vars: l,
|
|
2334
|
-
variant: d,
|
|
2335
|
-
gradient: u,
|
|
2336
|
-
radius: f,
|
|
2337
|
-
autoContrast: m,
|
|
2338
|
-
...g
|
|
2339
|
-
} = I("ButtonGroupSection", Gt, t), y = Q({
|
|
2340
|
-
name: "ButtonGroupSection",
|
|
2341
|
-
props: e,
|
|
2342
|
-
classes: Y,
|
|
2343
|
-
className: n,
|
|
2344
|
-
style: a,
|
|
2345
|
-
classNames: o,
|
|
2346
|
-
styles: i,
|
|
2347
|
-
unstyled: s,
|
|
2348
|
-
vars: l,
|
|
2349
|
-
varsResolver: we,
|
|
2350
|
-
rootSelector: "groupSection"
|
|
2351
|
-
});
|
|
2352
|
-
return /* @__PURE__ */ p(N, { ...y("groupSection"), ref: r, variant: d, ...g });
|
|
2353
|
-
});
|
|
2354
|
-
Pt.classes = Y;
|
|
2355
|
-
Pt.displayName = "@mantine/core/ButtonGroupSection";
|
|
2356
|
-
const Ce = {
|
|
2357
|
-
in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${c(1)}))` },
|
|
2358
|
-
out: { opacity: 0, transform: "translate(-50%, -200%)" },
|
|
2359
|
-
common: { transformOrigin: "center" },
|
|
2360
|
-
transitionProperty: "transform, opacity"
|
|
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
|
-
gradient: n,
|
|
2366
|
-
variant: a || "filled",
|
|
2367
|
-
autoContrast: s
|
|
2368
|
-
});
|
|
2369
|
-
return {
|
|
2370
|
-
root: {
|
|
2371
|
-
"--button-justify": i,
|
|
2372
|
-
"--button-height": O(o, "button-height"),
|
|
2373
|
-
"--button-padding-x": O(o, "button-padding-x"),
|
|
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
|
-
"--button-bg": e || a ? l.background : void 0,
|
|
2377
|
-
"--button-hover": e || a ? l.hover : void 0,
|
|
2378
|
-
"--button-color": l.color,
|
|
2379
|
-
"--button-bd": e || a ? l.border : void 0,
|
|
2380
|
-
"--button-hover-color": e || a ? l.hoverColor : void 0
|
|
2381
|
-
}
|
|
2382
|
-
};
|
|
2383
|
-
}, K = sr((t, r) => {
|
|
2384
|
-
const e = I("Button", xe, t), {
|
|
2385
|
-
style: n,
|
|
2386
|
-
vars: a,
|
|
2387
|
-
className: o,
|
|
2388
|
-
color: i,
|
|
2389
|
-
disabled: s,
|
|
2390
|
-
children: l,
|
|
2391
|
-
leftSection: d,
|
|
2392
|
-
rightSection: u,
|
|
2393
|
-
fullWidth: f,
|
|
2394
|
-
variant: m,
|
|
2395
|
-
radius: g,
|
|
2396
|
-
loading: y,
|
|
2397
|
-
loaderProps: $,
|
|
2398
|
-
gradient: h,
|
|
2399
|
-
classNames: C,
|
|
2400
|
-
styles: x,
|
|
2401
|
-
unstyled: v,
|
|
2402
|
-
"data-disabled": w,
|
|
2403
|
-
autoContrast: L,
|
|
2404
|
-
mod: b,
|
|
2405
|
-
...k
|
|
2406
|
-
} = e, S = Q({
|
|
2407
|
-
name: "Button",
|
|
2408
|
-
props: e,
|
|
2409
|
-
classes: Y,
|
|
2410
|
-
className: o,
|
|
2411
|
-
style: n,
|
|
2412
|
-
classNames: C,
|
|
2413
|
-
styles: x,
|
|
2414
|
-
unstyled: v,
|
|
2415
|
-
vars: a,
|
|
2416
|
-
varsResolver: ke
|
|
2417
|
-
}), E = !!d, ot = !!u;
|
|
2418
|
-
return /* @__PURE__ */ z(
|
|
2419
|
-
Rt,
|
|
2420
|
-
{
|
|
2421
|
-
ref: r,
|
|
2422
|
-
...S("root", { active: !s && !y && !w }),
|
|
2423
|
-
unstyled: v,
|
|
2424
|
-
variant: m,
|
|
2425
|
-
disabled: s || y,
|
|
2426
|
-
mod: [
|
|
2427
|
-
{
|
|
2428
|
-
disabled: s || w,
|
|
2429
|
-
loading: y,
|
|
2430
|
-
block: f,
|
|
2431
|
-
"with-left-section": E,
|
|
2432
|
-
"with-right-section": ot
|
|
2433
|
-
},
|
|
2434
|
-
b
|
|
2435
|
-
],
|
|
2436
|
-
...k,
|
|
2437
|
-
children: [
|
|
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
|
-
{
|
|
2441
|
-
color: "var(--button-color)",
|
|
2442
|
-
size: "calc(var(--button-height) / 1.8)",
|
|
2443
|
-
...$
|
|
2444
|
-
}
|
|
2445
|
-
) }) }),
|
|
2446
|
-
/* @__PURE__ */ z("span", { ...S("inner"), children: [
|
|
2447
|
-
d && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "left" }, children: d }),
|
|
2448
|
-
/* @__PURE__ */ p(N, { component: "span", mod: { loading: y }, ...S("label"), children: l }),
|
|
2449
|
-
u && /* @__PURE__ */ p(N, { component: "span", ...S("section"), mod: { position: "right" }, children: u })
|
|
2450
|
-
] })
|
|
2451
|
-
]
|
|
2452
|
-
}
|
|
2453
|
-
);
|
|
2454
|
-
});
|
|
2455
|
-
K.classes = Y;
|
|
2456
|
-
K.displayName = "@mantine/core/Button";
|
|
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 });
|
|
2465
41
|
export {
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
42
|
+
S as Button,
|
|
43
|
+
l as ColorSchemeScript,
|
|
44
|
+
s as MantineProvider,
|
|
45
|
+
i as mantineHtmlProps
|
|
2470
46
|
};
|