melonykit 0.8.3 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +541 -311
- package/dist/server/_import-modules.js +6 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { i as e, o as t } from "./functions-ytrrWBDV.js";
|
|
2
2
|
import { useSignal as n } from "@preact/signals";
|
|
3
|
-
import { useEffect as r, useId as i } from "preact/hooks";
|
|
4
|
-
import { Fragment as
|
|
3
|
+
import { useEffect as r, useId as i, useRef as a } from "preact/hooks";
|
|
4
|
+
import { Fragment as o, jsx as s, jsxs as c } from "preact/jsx-runtime";
|
|
5
5
|
//#region node_modules/@emotion/sheet/dist/emotion-sheet.esm.js
|
|
6
|
-
function
|
|
6
|
+
function l(e) {
|
|
7
7
|
if (e.sheet) return e.sheet;
|
|
8
8
|
/* istanbul ignore next */
|
|
9
9
|
for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t];
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function u(e) {
|
|
12
12
|
var t = document.createElement("style");
|
|
13
13
|
return t.setAttribute("data-emotion", e.key), e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), t.appendChild(document.createTextNode("")), t.setAttribute("data-s", ""), t;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var d = /*#__PURE__*/ function() {
|
|
16
16
|
function e(e) {
|
|
17
17
|
var t = this;
|
|
18
18
|
this._insertTag = function(e) {
|
|
@@ -24,10 +24,10 @@ var u = /*#__PURE__*/ function() {
|
|
|
24
24
|
return t.hydrate = function(e) {
|
|
25
25
|
e.forEach(this._insertTag);
|
|
26
26
|
}, t.insert = function(e) {
|
|
27
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(
|
|
27
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) == 0 && this._insertTag(u(this));
|
|
28
28
|
var t = this.tags[this.tags.length - 1];
|
|
29
29
|
if (this.isSpeedy) {
|
|
30
|
-
var n =
|
|
30
|
+
var n = l(t);
|
|
31
31
|
try {
|
|
32
32
|
n.insertRule(e, n.cssRules.length);
|
|
33
33
|
} catch {}
|
|
@@ -38,20 +38,20 @@ var u = /*#__PURE__*/ function() {
|
|
|
38
38
|
return e.parentNode?.removeChild(e);
|
|
39
39
|
}), this.tags = [], this.ctr = 0;
|
|
40
40
|
}, e;
|
|
41
|
-
}(),
|
|
42
|
-
function
|
|
41
|
+
}(), f = "-ms-", p = "-moz-", m = "-webkit-", h = "comm", g = "rule", _ = "decl", v = "@import", y = "@keyframes", b = "@layer", x = Math.abs, S = String.fromCharCode, C = Object.assign;
|
|
42
|
+
function w(e, t) {
|
|
43
43
|
return E(e, 0) ^ 45 ? (((t << 2 ^ E(e, 0)) << 2 ^ E(e, 1)) << 2 ^ E(e, 2)) << 2 ^ E(e, 3) : 0;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function ee(e) {
|
|
46
46
|
return e.trim();
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function te(e, t) {
|
|
49
49
|
return (e = t.exec(e)) ? e[0] : e;
|
|
50
50
|
}
|
|
51
51
|
function T(e, t, n) {
|
|
52
52
|
return e.replace(t, n);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function ne(e, t) {
|
|
55
55
|
return e.indexOf(t);
|
|
56
56
|
}
|
|
57
57
|
function E(e, t) {
|
|
@@ -63,19 +63,19 @@ function D(e, t, n) {
|
|
|
63
63
|
function O(e) {
|
|
64
64
|
return e.length;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function re(e) {
|
|
67
67
|
return e.length;
|
|
68
68
|
}
|
|
69
69
|
function k(e, t) {
|
|
70
70
|
return t.push(e), e;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ie(e, t) {
|
|
73
73
|
return e.map(t).join("");
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region node_modules/stylis/src/Tokenizer.js
|
|
77
|
-
var A = 1, j = 1,
|
|
78
|
-
function
|
|
77
|
+
var A = 1, j = 1, ae = 0, M = 0, N = 0, P = "";
|
|
78
|
+
function F(e, t, n, r, i, a, o) {
|
|
79
79
|
return {
|
|
80
80
|
value: e,
|
|
81
81
|
root: t,
|
|
@@ -89,8 +89,8 @@ function ae(e, t, n, r, i, a, o) {
|
|
|
89
89
|
return: ""
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
92
|
+
function I(e, t) {
|
|
93
|
+
return C(F("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
94
94
|
}
|
|
95
95
|
function oe() {
|
|
96
96
|
return N;
|
|
@@ -98,19 +98,19 @@ function oe() {
|
|
|
98
98
|
function se() {
|
|
99
99
|
return N = M > 0 ? E(P, --M) : 0, j--, N === 10 && (j = 1, A--), N;
|
|
100
100
|
}
|
|
101
|
-
function I() {
|
|
102
|
-
return N = M < ie ? E(P, M++) : 0, j++, N === 10 && (j = 1, A++), N;
|
|
103
|
-
}
|
|
104
101
|
function L() {
|
|
105
|
-
return E(P, M);
|
|
102
|
+
return N = M < ae ? E(P, M++) : 0, j++, N === 10 && (j = 1, A++), N;
|
|
106
103
|
}
|
|
107
104
|
function R() {
|
|
105
|
+
return E(P, M);
|
|
106
|
+
}
|
|
107
|
+
function z() {
|
|
108
108
|
return M;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function B(e, t) {
|
|
111
111
|
return D(P, e, t);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function V(e) {
|
|
114
114
|
switch (e) {
|
|
115
115
|
case 0:
|
|
116
116
|
case 9:
|
|
@@ -138,24 +138,24 @@ function B(e) {
|
|
|
138
138
|
return 0;
|
|
139
139
|
}
|
|
140
140
|
function ce(e) {
|
|
141
|
-
return A = j = 1,
|
|
141
|
+
return A = j = 1, ae = O(P = e), M = 0, [];
|
|
142
142
|
}
|
|
143
143
|
function le(e) {
|
|
144
144
|
return P = "", e;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
return
|
|
146
|
+
function H(e) {
|
|
147
|
+
return ee(B(M - 1, fe(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
148
148
|
}
|
|
149
149
|
function ue(e) {
|
|
150
|
-
for (; (N =
|
|
151
|
-
return
|
|
150
|
+
for (; (N = R()) && N < 33;) L();
|
|
151
|
+
return V(e) > 2 || V(N) > 3 ? "" : " ";
|
|
152
152
|
}
|
|
153
153
|
function de(e, t) {
|
|
154
|
-
for (; --t &&
|
|
155
|
-
return
|
|
154
|
+
for (; --t && L() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97););
|
|
155
|
+
return B(e, z() + (t < 6 && R() == 32 && L() == 32));
|
|
156
156
|
}
|
|
157
157
|
function fe(e) {
|
|
158
|
-
for (;
|
|
158
|
+
for (; L();) switch (N) {
|
|
159
159
|
case e: return M;
|
|
160
160
|
case 34:
|
|
161
161
|
case 39:
|
|
@@ -165,34 +165,34 @@ function fe(e) {
|
|
|
165
165
|
e === 41 && fe(e);
|
|
166
166
|
break;
|
|
167
167
|
case 92:
|
|
168
|
-
|
|
168
|
+
L();
|
|
169
169
|
break;
|
|
170
170
|
}
|
|
171
171
|
return M;
|
|
172
172
|
}
|
|
173
173
|
function pe(e, t) {
|
|
174
|
-
for (;
|
|
175
|
-
return "/*" +
|
|
174
|
+
for (; L() && e + N !== 57 && (e + N !== 84 || R() !== 47););
|
|
175
|
+
return "/*" + B(t, M - 1) + "*" + S(e === 47 ? e : L());
|
|
176
176
|
}
|
|
177
177
|
function me(e) {
|
|
178
|
-
for (; !
|
|
179
|
-
return
|
|
178
|
+
for (; !V(R());) L();
|
|
179
|
+
return B(e, M);
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region node_modules/stylis/src/Parser.js
|
|
183
183
|
function he(e) {
|
|
184
|
-
return le(
|
|
184
|
+
return le(U("", null, null, null, [""], e = ce(e), 0, [0], e));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
187
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i,
|
|
186
|
+
function U(e, t, n, r, i, a, o, s, c) {
|
|
187
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, C = r, w = y; g;) switch (m = v, v = L()) {
|
|
188
188
|
case 40: if (m != 108 && E(w, d - 1) == 58) {
|
|
189
|
-
|
|
189
|
+
ne(w += T(H(v), "&", "&\f"), "&\f") != -1 && (_ = -1);
|
|
190
190
|
break;
|
|
191
191
|
}
|
|
192
192
|
case 34:
|
|
193
193
|
case 39:
|
|
194
194
|
case 91:
|
|
195
|
-
w +=
|
|
195
|
+
w += H(v);
|
|
196
196
|
break;
|
|
197
197
|
case 9:
|
|
198
198
|
case 10:
|
|
@@ -201,13 +201,13 @@ function H(e, t, n, r, i, a, o, s, c) {
|
|
|
201
201
|
w += ue(m);
|
|
202
202
|
break;
|
|
203
203
|
case 92:
|
|
204
|
-
w += de(
|
|
204
|
+
w += de(z() - 1, 7);
|
|
205
205
|
continue;
|
|
206
206
|
case 47:
|
|
207
|
-
switch (
|
|
207
|
+
switch (R()) {
|
|
208
208
|
case 42:
|
|
209
209
|
case 47:
|
|
210
|
-
k(_e(pe(
|
|
210
|
+
k(_e(pe(L(), z()), t, n), c);
|
|
211
211
|
break;
|
|
212
212
|
default: w += "/";
|
|
213
213
|
}
|
|
@@ -223,16 +223,16 @@ function H(e, t, n, r, i, a, o, s, c) {
|
|
|
223
223
|
_ == -1 && (w = T(w, /\f/g, "")), p > 0 && O(w) - d && k(p > 32 ? ve(w + ";", r, n, d - 1) : ve(T(w, " ", "") + ";", r, n, d - 2), c);
|
|
224
224
|
break;
|
|
225
225
|
case 59: w += ";";
|
|
226
|
-
default: if (k(C = ge(w, t, n, l, u, i, s, y, b = [],
|
|
227
|
-
if (u === 0)
|
|
226
|
+
default: if (k(C = ge(w, t, n, l, u, i, s, y, b = [], x = [], d), a), v === 123) {
|
|
227
|
+
if (u === 0) U(w, t, C, C, b, a, d, s, x);
|
|
228
228
|
else switch (f === 99 && E(w, 3) === 110 ? 100 : f) {
|
|
229
229
|
case 100:
|
|
230
230
|
case 108:
|
|
231
231
|
case 109:
|
|
232
232
|
case 115:
|
|
233
|
-
|
|
233
|
+
U(e, C, C, r && k(ge(e, C, C, 0, 0, i, s, y, i, b = [], d), x), i, x, d, s, r ? b : x);
|
|
234
234
|
break;
|
|
235
|
-
default:
|
|
235
|
+
default: U(w, C, C, C, [""], x, 0, s, x);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -244,7 +244,7 @@ function H(e, t, n, r, i, a, o, s, c) {
|
|
|
244
244
|
if (v == 123) --h;
|
|
245
245
|
else if (v == 125 && h++ == 0 && se() == 125) continue;
|
|
246
246
|
}
|
|
247
|
-
switch (w +=
|
|
247
|
+
switch (w += S(v), v * h) {
|
|
248
248
|
case 38:
|
|
249
249
|
_ = u > 0 ? 1 : (w += "\f", -1);
|
|
250
250
|
break;
|
|
@@ -252,7 +252,7 @@ function H(e, t, n, r, i, a, o, s, c) {
|
|
|
252
252
|
s[l++] = (O(w) - 1) * _, _ = 1;
|
|
253
253
|
break;
|
|
254
254
|
case 64:
|
|
255
|
-
|
|
255
|
+
R() === 45 && (w += H(L())), f = R(), u = d = O(y = w += me(z())), v++;
|
|
256
256
|
break;
|
|
257
257
|
case 45: m === 45 && O(w) == 2 && (h = 0);
|
|
258
258
|
}
|
|
@@ -260,36 +260,36 @@ function H(e, t, n, r, i, a, o, s, c) {
|
|
|
260
260
|
return a;
|
|
261
261
|
}
|
|
262
262
|
function ge(e, t, n, r, i, a, o, s, c, l, u) {
|
|
263
|
-
for (var d = i - 1, f = i === 0 ? a : [""], p =
|
|
264
|
-
return
|
|
263
|
+
for (var d = i - 1, f = i === 0 ? a : [""], p = re(f), m = 0, h = 0, _ = 0; m < r; ++m) for (var v = 0, y = D(e, d + 1, d = x(h = o[m])), b = e; v < p; ++v) (b = ee(h > 0 ? f[v] + " " + y : T(y, /&\f/g, f[v]))) && (c[_++] = b);
|
|
264
|
+
return F(e, t, n, i === 0 ? g : s, c, l, u);
|
|
265
265
|
}
|
|
266
266
|
function _e(e, t, n) {
|
|
267
|
-
return
|
|
267
|
+
return F(e, t, n, h, S(oe()), D(e, 2, -2), 0);
|
|
268
268
|
}
|
|
269
269
|
function ve(e, t, n, r) {
|
|
270
|
-
return
|
|
270
|
+
return F(e, t, n, _, D(e, 0, r), D(e, r + 1, -1), r);
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region node_modules/stylis/src/Serializer.js
|
|
274
|
-
function
|
|
275
|
-
for (var n = "", r =
|
|
274
|
+
function W(e, t) {
|
|
275
|
+
for (var n = "", r = re(e), i = 0; i < r; i++) n += t(e[i], i, e, t) || "";
|
|
276
276
|
return n;
|
|
277
277
|
}
|
|
278
278
|
function ye(e, t, n, r) {
|
|
279
279
|
switch (e.type) {
|
|
280
|
-
case
|
|
281
|
-
case
|
|
282
|
-
case
|
|
283
|
-
case
|
|
284
|
-
case
|
|
285
|
-
case
|
|
280
|
+
case b: if (e.children.length) break;
|
|
281
|
+
case v:
|
|
282
|
+
case _: return e.return = e.return || e.value;
|
|
283
|
+
case h: return "";
|
|
284
|
+
case y: return e.return = e.value + "{" + W(e.children, r) + "}";
|
|
285
|
+
case g: e.value = e.props.join(",");
|
|
286
286
|
}
|
|
287
|
-
return O(n =
|
|
287
|
+
return O(n = W(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
288
288
|
}
|
|
289
289
|
//#endregion
|
|
290
290
|
//#region node_modules/stylis/src/Middleware.js
|
|
291
291
|
function be(e) {
|
|
292
|
-
var t =
|
|
292
|
+
var t = re(e);
|
|
293
293
|
return function(n, r, i, a) {
|
|
294
294
|
for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
|
|
295
295
|
return o;
|
|
@@ -311,25 +311,25 @@ function Se(e) {
|
|
|
311
311
|
//#endregion
|
|
312
312
|
//#region node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
313
313
|
var Ce = function(e, t, n) {
|
|
314
|
-
for (var r = 0, i = 0; r = i, i =
|
|
315
|
-
return
|
|
314
|
+
for (var r = 0, i = 0; r = i, i = R(), r === 38 && i === 12 && (t[n] = 1), !V(i);) L();
|
|
315
|
+
return B(e, M);
|
|
316
316
|
}, we = function(e, t) {
|
|
317
317
|
var n = -1, r = 44;
|
|
318
318
|
do
|
|
319
|
-
switch (
|
|
319
|
+
switch (V(r)) {
|
|
320
320
|
case 0:
|
|
321
|
-
r === 38 &&
|
|
321
|
+
r === 38 && R() === 12 && (t[n] = 1), e[n] += Ce(M - 1, t, n);
|
|
322
322
|
break;
|
|
323
323
|
case 2:
|
|
324
|
-
e[n] +=
|
|
324
|
+
e[n] += H(r);
|
|
325
325
|
break;
|
|
326
326
|
case 4: if (r === 44) {
|
|
327
|
-
e[++n] =
|
|
327
|
+
e[++n] = R() === 58 ? "&\f" : "", t[n] = e[n].length;
|
|
328
328
|
break;
|
|
329
329
|
}
|
|
330
|
-
default: e[n] +=
|
|
330
|
+
default: e[n] += S(r);
|
|
331
331
|
}
|
|
332
|
-
while (r =
|
|
332
|
+
while (r = L());
|
|
333
333
|
return e;
|
|
334
334
|
}, Te = function(e, t) {
|
|
335
335
|
return le(we(ce(e), t));
|
|
@@ -348,8 +348,8 @@ var Ce = function(e, t, n) {
|
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
function ke(e, t) {
|
|
351
|
-
switch (
|
|
352
|
-
case 5103: return
|
|
351
|
+
switch (w(e, t)) {
|
|
352
|
+
case 5103: return m + "print-" + e + e;
|
|
353
353
|
case 5737:
|
|
354
354
|
case 4201:
|
|
355
355
|
case 3177:
|
|
@@ -374,30 +374,30 @@ function ke(e, t) {
|
|
|
374
374
|
case 5109:
|
|
375
375
|
case 5365:
|
|
376
376
|
case 5621:
|
|
377
|
-
case 3829: return
|
|
377
|
+
case 3829: return m + e + e;
|
|
378
378
|
case 5349:
|
|
379
379
|
case 4246:
|
|
380
380
|
case 4810:
|
|
381
381
|
case 6968:
|
|
382
|
-
case 2756: return
|
|
382
|
+
case 2756: return m + e + p + e + f + e + e;
|
|
383
383
|
case 6828:
|
|
384
|
-
case 4268: return
|
|
385
|
-
case 6165: return
|
|
386
|
-
case 5187: return
|
|
387
|
-
case 5443: return
|
|
388
|
-
case 4675: return
|
|
389
|
-
case 5548: return
|
|
390
|
-
case 5292: return
|
|
391
|
-
case 6060: return
|
|
392
|
-
case 4554: return
|
|
393
|
-
case 6187: return T(T(T(e, /(zoom-|grab)/,
|
|
384
|
+
case 4268: return m + e + f + e + e;
|
|
385
|
+
case 6165: return m + e + f + "flex-" + e + e;
|
|
386
|
+
case 5187: return m + e + T(e, /(\w+).+(:[^]+)/, m + "box-$1$2" + f + "flex-$1$2") + e;
|
|
387
|
+
case 5443: return m + e + f + "flex-item-" + T(e, /flex-|-self/, "") + e;
|
|
388
|
+
case 4675: return m + e + f + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
|
|
389
|
+
case 5548: return m + e + f + T(e, "shrink", "negative") + e;
|
|
390
|
+
case 5292: return m + e + f + T(e, "basis", "preferred-size") + e;
|
|
391
|
+
case 6060: return m + "box-" + T(e, "-grow", "") + m + e + f + T(e, "grow", "positive") + e;
|
|
392
|
+
case 4554: return m + T(e, /([^-])(transform)/g, "$1" + m + "$2") + e;
|
|
393
|
+
case 6187: return T(T(T(e, /(zoom-|grab)/, m + "$1"), /(image-set)/, m + "$1"), e, "") + e;
|
|
394
394
|
case 5495:
|
|
395
|
-
case 3959: return T(e, /(image-set\([^]*)/,
|
|
396
|
-
case 4968: return T(T(e, /(.+:)(flex-)?(.*)/,
|
|
395
|
+
case 3959: return T(e, /(image-set\([^]*)/, m + "$1$`$1");
|
|
396
|
+
case 4968: return T(T(e, /(.+:)(flex-)?(.*)/, m + "box-pack:$3" + f + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + m + e + e;
|
|
397
397
|
case 4095:
|
|
398
398
|
case 3583:
|
|
399
399
|
case 4068:
|
|
400
|
-
case 2532: return T(e, /(.+)-inline(.+)/,
|
|
400
|
+
case 2532: return T(e, /(.+)-inline(.+)/, m + "$1$2") + e;
|
|
401
401
|
case 8116:
|
|
402
402
|
case 7059:
|
|
403
403
|
case 5753:
|
|
@@ -412,41 +412,41 @@ function ke(e, t) {
|
|
|
412
412
|
case 4765:
|
|
413
413
|
if (O(e) - 1 - t > 6) switch (E(e, t + 1)) {
|
|
414
414
|
case 109: if (E(e, t + 4) !== 45) break;
|
|
415
|
-
case 102: return T(e, /(.+:)(.+)-([^]+)/, "$1" +
|
|
416
|
-
case 115: return ~
|
|
415
|
+
case 102: return T(e, /(.+:)(.+)-([^]+)/, "$1" + m + "$2-$3$1" + p + (E(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
416
|
+
case 115: return ~ne(e, "stretch") ? ke(T(e, "stretch", "fill-available"), t) + e : e;
|
|
417
417
|
}
|
|
418
418
|
break;
|
|
419
419
|
case 4949: if (E(e, t + 1) !== 115) break;
|
|
420
420
|
case 6444:
|
|
421
|
-
switch (E(e, O(e) - 3 - (~
|
|
422
|
-
case 107: return T(e, ":", ":" +
|
|
423
|
-
case 101: return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" +
|
|
421
|
+
switch (E(e, O(e) - 3 - (~ne(e, "!important") && 10))) {
|
|
422
|
+
case 107: return T(e, ":", ":" + m) + e;
|
|
423
|
+
case 101: return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + m + (E(e, 14) === 45 ? "inline-" : "") + "box$3$1" + m + "$2$3$1" + f + "$2box$3") + e;
|
|
424
424
|
}
|
|
425
425
|
break;
|
|
426
426
|
case 5936:
|
|
427
427
|
switch (E(e, t + 11)) {
|
|
428
|
-
case 114: return
|
|
429
|
-
case 108: return
|
|
430
|
-
case 45: return
|
|
428
|
+
case 114: return m + e + f + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
429
|
+
case 108: return m + e + f + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
430
|
+
case 45: return m + e + f + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
431
431
|
}
|
|
432
|
-
return
|
|
432
|
+
return m + e + f + e + e;
|
|
433
433
|
}
|
|
434
434
|
return e;
|
|
435
435
|
}
|
|
436
436
|
var Ae = [function(e, t, n, r) {
|
|
437
437
|
if (e.length > -1 && !e.return) switch (e.type) {
|
|
438
|
-
case
|
|
438
|
+
case _:
|
|
439
439
|
e.return = ke(e.value, e.length);
|
|
440
440
|
break;
|
|
441
|
-
case
|
|
442
|
-
case
|
|
443
|
-
switch (
|
|
441
|
+
case y: return W([I(e, { value: T(e.value, "@", "@" + m) })], r);
|
|
442
|
+
case g: if (e.length) return ie(e.props, function(t) {
|
|
443
|
+
switch (te(t, /(::plac\w+|:read-\w+)/)) {
|
|
444
444
|
case ":read-only":
|
|
445
|
-
case ":read-write": return
|
|
446
|
-
case "::placeholder": return
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
445
|
+
case ":read-write": return W([I(e, { props: [T(t, /:(read-\w+)/, ":" + p + "$1")] })], r);
|
|
446
|
+
case "::placeholder": return W([
|
|
447
|
+
I(e, { props: [T(t, /:(plac\w+)/, ":" + m + "input-$1")] }),
|
|
448
|
+
I(e, { props: [T(t, /:(plac\w+)/, ":" + p + "$1")] }),
|
|
449
|
+
I(e, { props: [T(t, /:(plac\w+)/, f + "input-$1")] })
|
|
450
450
|
], r);
|
|
451
451
|
}
|
|
452
452
|
return "";
|
|
@@ -465,17 +465,17 @@ var Ae = [function(e, t, n, r) {
|
|
|
465
465
|
for (var t = e.getAttribute("data-emotion").split(" "), n = 1; n < t.length; n++) i[t[n]] = !0;
|
|
466
466
|
o.push(e);
|
|
467
467
|
});
|
|
468
|
-
var s, c = [De, Oe], l,
|
|
468
|
+
var s, c = [De, Oe], l, u = [ye, xe(function(e) {
|
|
469
469
|
l.insert(e);
|
|
470
|
-
})], f = be(c.concat(r,
|
|
471
|
-
return
|
|
470
|
+
})], f = be(c.concat(r, u)), p = function(e) {
|
|
471
|
+
return W(he(e), f);
|
|
472
472
|
};
|
|
473
473
|
s = function(e, t, n, r) {
|
|
474
474
|
l = n, p(e ? e + "{" + t.styles + "}" : t.styles), r && (m.inserted[t.name] = !0);
|
|
475
475
|
};
|
|
476
476
|
var m = {
|
|
477
477
|
key: t,
|
|
478
|
-
sheet: new
|
|
478
|
+
sheet: new d({
|
|
479
479
|
key: t,
|
|
480
480
|
container: a,
|
|
481
481
|
nonce: e.nonce,
|
|
@@ -561,16 +561,16 @@ var Ne = {
|
|
|
561
561
|
switch (e) {
|
|
562
562
|
case "animation":
|
|
563
563
|
case "animationName": if (typeof t == "string") return t.replace(Fe, function(e, t, n) {
|
|
564
|
-
return
|
|
564
|
+
return K = {
|
|
565
565
|
name: t,
|
|
566
566
|
styles: n,
|
|
567
|
-
next:
|
|
567
|
+
next: K
|
|
568
568
|
}, t;
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
return Ne[e] !== 1 && !Ie(e) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function G(e, t, n) {
|
|
574
574
|
if (n == null) return "";
|
|
575
575
|
var r = n;
|
|
576
576
|
if (r.__emotion_styles !== void 0) return r;
|
|
@@ -578,25 +578,25 @@ function W(e, t, n) {
|
|
|
578
578
|
case "boolean": return "";
|
|
579
579
|
case "object":
|
|
580
580
|
var i = n;
|
|
581
|
-
if (i.anim === 1) return
|
|
581
|
+
if (i.anim === 1) return K = {
|
|
582
582
|
name: i.name,
|
|
583
583
|
styles: i.styles,
|
|
584
|
-
next:
|
|
584
|
+
next: K
|
|
585
585
|
}, i.name;
|
|
586
586
|
var a = n;
|
|
587
587
|
if (a.styles !== void 0) {
|
|
588
588
|
var o = a.next;
|
|
589
|
-
if (o !== void 0) for (; o !== void 0;)
|
|
589
|
+
if (o !== void 0) for (; o !== void 0;) K = {
|
|
590
590
|
name: o.name,
|
|
591
591
|
styles: o.styles,
|
|
592
|
-
next:
|
|
592
|
+
next: K
|
|
593
593
|
}, o = o.next;
|
|
594
594
|
return a.styles + ";";
|
|
595
595
|
}
|
|
596
596
|
return Be(e, t, n);
|
|
597
597
|
case "function": if (e !== void 0) {
|
|
598
|
-
var s =
|
|
599
|
-
return
|
|
598
|
+
var s = K, c = n(e);
|
|
599
|
+
return K = s, G(e, t, c);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
var l = n;
|
|
@@ -606,7 +606,7 @@ function W(e, t, n) {
|
|
|
606
606
|
}
|
|
607
607
|
function Be(e, t, n) {
|
|
608
608
|
var r = "";
|
|
609
|
-
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r +=
|
|
609
|
+
if (Array.isArray(n)) for (var i = 0; i < n.length; i++) r += G(e, t, n[i]) + ";";
|
|
610
610
|
else for (var a in n) {
|
|
611
611
|
var o = n[a];
|
|
612
612
|
if (typeof o != "object") {
|
|
@@ -614,7 +614,7 @@ function Be(e, t, n) {
|
|
|
614
614
|
t != null && t[s] !== void 0 ? r += a + "{" + t[s] + "}" : Le(s) && (r += Re(a) + ":" + ze(a, s) + ";");
|
|
615
615
|
} else if (Array.isArray(o) && typeof o[0] == "string" && (t == null || t[o[0]] === void 0)) for (var c = 0; c < o.length; c++) Le(o[c]) && (r += Re(a) + ":" + ze(a, o[c]) + ";");
|
|
616
616
|
else {
|
|
617
|
-
var l =
|
|
617
|
+
var l = G(e, t, o);
|
|
618
618
|
switch (a) {
|
|
619
619
|
case "animation":
|
|
620
620
|
case "animationName":
|
|
@@ -626,20 +626,20 @@ function Be(e, t, n) {
|
|
|
626
626
|
}
|
|
627
627
|
return r;
|
|
628
628
|
}
|
|
629
|
-
var Ve = /label:\s*([^\s;{]+)\s*(;|$)/g,
|
|
629
|
+
var Ve = /label:\s*([^\s;{]+)\s*(;|$)/g, K;
|
|
630
630
|
function He(e, t, n) {
|
|
631
631
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0) return e[0];
|
|
632
632
|
var r = !0, i = "";
|
|
633
|
-
|
|
633
|
+
K = void 0;
|
|
634
634
|
var a = e[0];
|
|
635
|
-
a == null || a.raw === void 0 ? (r = !1, i +=
|
|
636
|
-
for (var o = 1; o < e.length; o++) i +=
|
|
635
|
+
a == null || a.raw === void 0 ? (r = !1, i += G(n, t, a)) : i += a[0];
|
|
636
|
+
for (var o = 1; o < e.length; o++) i += G(n, t, e[o]), r && (i += a[o]);
|
|
637
637
|
Ve.lastIndex = 0;
|
|
638
638
|
for (var s = "", c; (c = Ve.exec(i)) !== null;) s += "-" + c[1];
|
|
639
639
|
return {
|
|
640
640
|
name: Me(i) + s,
|
|
641
641
|
styles: i,
|
|
642
|
-
next:
|
|
642
|
+
next: K
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
//#endregion
|
|
@@ -727,15 +727,15 @@ var Je = function(e) {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
return n;
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
var
|
|
733
|
-
|
|
734
|
-
var Xe =
|
|
735
|
-
|
|
730
|
+
}, q = Je({ key: "css" });
|
|
731
|
+
q.flush, q.hydrate;
|
|
732
|
+
var J = q.cx;
|
|
733
|
+
q.merge, q.getRegisteredStyles;
|
|
734
|
+
var Xe = q.injectGlobal, Ze = q.keyframes, Y = q.css;
|
|
735
|
+
q.sheet, q.cache;
|
|
736
736
|
//#endregion
|
|
737
737
|
//#region \0virtual:svg-sprite
|
|
738
|
-
var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;width:0;height:0;\" id=\"svg-sprite\"><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-bars-corner\" viewBox=\"0 0 24 24\"><path d=\"M7 15v1a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M7 8v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M3 3v10c0 3.771 0 5.657 1.172 6.828S7.229 21 11 21h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-check\" viewBox=\"0 0 24 24\"><path d=\"m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-exclamation-triangle\" viewBox=\"0 0 24 24\"><path d=\"M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21\"/><path d=\"M12 9v4\"/><path d=\"M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye-close\" viewBox=\"0 0 24 24\"><path d=\"M22 8c-2.202 3.023-5.86 5-10 5S4.202 11.023 2 8\"/><path d=\"m15 13 1.5 3\"/><path d=\"m20 11 2 2.5\"/><path d=\"M2 13.5 4 11\"/><path d=\"m9 13-1.5 3\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-home\" viewBox=\"0 0 24 24\"><path d=\"M3 11.99v2.51c0 3.3 0 4.95 1.025 5.975S6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.975-1.025S21 17.8 21 14.5v-2.51c0-1.682 0-2.522-.356-3.25s-1.02-1.244-2.346-2.276l-2-1.555C14.233 3.303 13.2 2.5 12 2.5s-2.233.803-4.298 2.409l-2 1.555C4.375 7.496 3.712 8.012 3.356 8.74S3 10.308 3 11.99\"/><path d=\"M15 17c-.8.622-1.85 1-3 1s-2.2-.378-3-1\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-hourglass\" viewBox=\"0 0 24 24\"><path d=\"M4 3h16\"/><path d=\"M5.5 3v2.03A4 4 0 0 0 7.061 8.2L12 12l4.939-3.8A4 4 0 0 0 18.5 5.03V3\"/><path d=\"M5.5 21v-2.03a4 4 0 0 1 1.561-3.17L12 12l4.939 3.8a4 4 0 0 1 1.561 3.17V21\"/><path d=\"M4 21h16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-menu\" viewBox=\"0 0 24 24\"><path d=\"M4 9h16\"/><path d=\"M4 15h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-plus\" viewBox=\"0 0 24 24\"><path d=\"M11.992 4v16m8-8h-16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-x\" viewBox=\"0 0 24 24\"><path d=\"m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-trash\" viewBox=\"0 0 24 24\"><path d=\"m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5\"/><path d=\"M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5\"/><path d=\"M9.5 16.5v-6\"/><path d=\"M14.5 16.5v-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-list-play\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" d=\"M3 5h18\"/><path stroke-linecap=\"round\" d=\"M3 12h6\"/><path d=\"M20.945 15.451c-.176.716-1.012 1.223-2.682 2.235-1.615.979-2.422 1.468-3.073 1.271a1.6 1.6 0 0 1-.712-.448C14 17.994 14 16.996 14 15s0-2.994.478-3.509c.198-.212.443-.367.712-.448.65-.197 1.458.293 3.073 1.271 1.67 1.012 2.506 1.518 2.682 2.235a1.9 1.9 0 0 1 0 .902Z\"/><path stroke-linecap=\"round\" d=\"M3 19h6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-play\" viewBox=\"0 0 24 24\"><path d=\"M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye\" viewBox=\"0 0 24 24\"><path d=\"M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z\"/><path d=\"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sliders\" viewBox=\"0 0 24 24\"><path stroke-linejoin=\"round\" d=\"M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12Z\"/><path d=\"M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z\"/><path d=\"M15.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/><path stroke-linecap=\"round\" d=\"M10 8.5h7\"/><path stroke-linecap=\"round\" d=\"M14 15.5H7\"/></symbol></svg>", $e = !1, et = new URL("./assets/manrope.woff2", import.meta.url).href ?? "/fonts/manrope.woff2",
|
|
738
|
+
var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;width:0;height:0;\" id=\"svg-sprite\"><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-bars-corner\" viewBox=\"0 0 24 24\"><path d=\"M7 15v1a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M7 8v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M3 3v10c0 3.771 0 5.657 1.172 6.828S7.229 21 11 21h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-check\" viewBox=\"0 0 24 24\"><path d=\"m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-down\" viewBox=\"0 0 24 24\"><path d=\"M18 9s-4.419 6-6 6-6-6-6-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-exclamation-triangle\" viewBox=\"0 0 24 24\"><path d=\"M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21\"/><path d=\"M12 9v4\"/><path d=\"M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye-close\" viewBox=\"0 0 24 24\"><path d=\"M22 8c-2.202 3.023-5.86 5-10 5S4.202 11.023 2 8\"/><path d=\"m15 13 1.5 3\"/><path d=\"m20 11 2 2.5\"/><path d=\"M2 13.5 4 11\"/><path d=\"m9 13-1.5 3\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-home\" viewBox=\"0 0 24 24\"><path d=\"M3 11.99v2.51c0 3.3 0 4.95 1.025 5.975S6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.975-1.025S21 17.8 21 14.5v-2.51c0-1.682 0-2.522-.356-3.25s-1.02-1.244-2.346-2.276l-2-1.555C14.233 3.303 13.2 2.5 12 2.5s-2.233.803-4.298 2.409l-2 1.555C4.375 7.496 3.712 8.012 3.356 8.74S3 10.308 3 11.99\"/><path d=\"M15 17c-.8.622-1.85 1-3 1s-2.2-.378-3-1\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-hourglass\" viewBox=\"0 0 24 24\"><path d=\"M4 3h16\"/><path d=\"M5.5 3v2.03A4 4 0 0 0 7.061 8.2L12 12l4.939-3.8A4 4 0 0 0 18.5 5.03V3\"/><path d=\"M5.5 21v-2.03a4 4 0 0 1 1.561-3.17L12 12l4.939 3.8a4 4 0 0 1 1.561 3.17V21\"/><path d=\"M4 21h16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-menu\" viewBox=\"0 0 24 24\"><path d=\"M4 9h16\"/><path d=\"M4 15h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-plus\" viewBox=\"0 0 24 24\"><path d=\"M11.992 4v16m8-8h-16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-x\" viewBox=\"0 0 24 24\"><path d=\"m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-trash\" viewBox=\"0 0 24 24\"><path d=\"m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5\"/><path d=\"M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5\"/><path d=\"M9.5 16.5v-6\"/><path d=\"M14.5 16.5v-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-list-play\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" d=\"M3 5h18\"/><path stroke-linecap=\"round\" d=\"M3 12h6\"/><path d=\"M20.945 15.451c-.176.716-1.012 1.223-2.682 2.235-1.615.979-2.422 1.468-3.073 1.271a1.6 1.6 0 0 1-.712-.448C14 17.994 14 16.996 14 15s0-2.994.478-3.509c.198-.212.443-.367.712-.448.65-.197 1.458.293 3.073 1.271 1.67 1.012 2.506 1.518 2.682 2.235a1.9 1.9 0 0 1 0 .902Z\"/><path stroke-linecap=\"round\" d=\"M3 19h6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-play\" viewBox=\"0 0 24 24\"><path d=\"M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye\" viewBox=\"0 0 24 24\"><path d=\"M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z\"/><path d=\"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sliders\" viewBox=\"0 0 24 24\"><path stroke-linejoin=\"round\" d=\"M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12Z\"/><path d=\"M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z\"/><path d=\"M15.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/><path stroke-linecap=\"round\" d=\"M10 8.5h7\"/><path stroke-linecap=\"round\" d=\"M14 15.5H7\"/></symbol></svg>", $e = !1, et = new URL("./assets/manrope.woff2", import.meta.url).href ?? "/fonts/manrope.woff2", X = {
|
|
739
739
|
fontFamily: "Manrope",
|
|
740
740
|
zIndex: {
|
|
741
741
|
front: 1,
|
|
@@ -863,9 +863,9 @@ var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;wi
|
|
|
863
863
|
//#endregion
|
|
864
864
|
//#region src/components/_app-wrapper.jsx
|
|
865
865
|
function tt({ maxWidth: e = "67.5rem", children: t }) {
|
|
866
|
-
return /* @__PURE__ */ o
|
|
866
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
867
867
|
className: nt.base,
|
|
868
|
-
children: /* @__PURE__ */
|
|
868
|
+
children: /* @__PURE__ */ s("div", {
|
|
869
869
|
className: nt.inner,
|
|
870
870
|
style: { maxWidth: e },
|
|
871
871
|
children: t
|
|
@@ -873,7 +873,7 @@ function tt({ maxWidth: e = "67.5rem", children: t }) {
|
|
|
873
873
|
}) });
|
|
874
874
|
}
|
|
875
875
|
var nt = {
|
|
876
|
-
base:
|
|
876
|
+
base: Y`
|
|
877
877
|
// The template is stretched over the entire viewport, and the vertical
|
|
878
878
|
// scrollbar is enabled manually.
|
|
879
879
|
// This is necessary so that the modal overlays can cover the scrollbar,
|
|
@@ -881,32 +881,32 @@ var nt = {
|
|
|
881
881
|
// when it's displayed or not.
|
|
882
882
|
// Normally, we'd use the body element for this, but the modal overlay
|
|
883
883
|
// can't cover the scrollbar of the body element.
|
|
884
|
-
${
|
|
884
|
+
${X.extends.stretch}
|
|
885
885
|
overflow-y: scroll;
|
|
886
886
|
overflow-x: hidden;
|
|
887
887
|
scroll-behavior: smooth;
|
|
888
888
|
`,
|
|
889
|
-
inner:
|
|
889
|
+
inner: Y`
|
|
890
890
|
position: relative;
|
|
891
891
|
padding: 8rem 0;
|
|
892
892
|
margin: 0 auto;
|
|
893
893
|
`
|
|
894
|
-
}, rt = ({ type: e = "normal", width: t = "100%", value: n = 0 }) => /* @__PURE__ */ o
|
|
895
|
-
className:
|
|
894
|
+
}, rt = ({ type: e = "normal", width: t = "100%", value: n = 0 }) => /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
895
|
+
className: it.base,
|
|
896
896
|
style: { width: t },
|
|
897
|
-
children: /* @__PURE__ */
|
|
898
|
-
className:
|
|
897
|
+
children: /* @__PURE__ */ s("div", {
|
|
898
|
+
className: J(it.value, it[e] ?? it.normal),
|
|
899
899
|
style: { width: `${n}%` }
|
|
900
900
|
})
|
|
901
|
-
}) }),
|
|
902
|
-
base:
|
|
901
|
+
}) }), it = {
|
|
902
|
+
base: Y`
|
|
903
903
|
position: relative;
|
|
904
904
|
border-radius: 16px;
|
|
905
905
|
height: .625rem;
|
|
906
|
-
border: solid 1px ${
|
|
907
|
-
background-color: ${
|
|
906
|
+
border: solid 1px ${X.colors.border};
|
|
907
|
+
background-color: ${X.colors.back.secondary};
|
|
908
908
|
`,
|
|
909
|
-
value:
|
|
909
|
+
value: Y`
|
|
910
910
|
position: absolute;
|
|
911
911
|
top: -1px;
|
|
912
912
|
bottom: -1px;
|
|
@@ -915,24 +915,24 @@ var nt = {
|
|
|
915
915
|
will-change: width;
|
|
916
916
|
transition: width .3s ease;
|
|
917
917
|
`,
|
|
918
|
-
normal:
|
|
919
|
-
border: solid 1px ${t(
|
|
920
|
-
background-color: ${
|
|
918
|
+
normal: Y`
|
|
919
|
+
border: solid 1px ${t(X.colors.primary, .3)};
|
|
920
|
+
background-color: ${X.colors.primary};
|
|
921
921
|
`,
|
|
922
|
-
warn:
|
|
923
|
-
border: solid 1px ${t(
|
|
924
|
-
background-color: ${
|
|
922
|
+
warn: Y`
|
|
923
|
+
border: solid 1px ${t(X.colors.secondary, .2)};
|
|
924
|
+
background-color: ${X.colors.secondary};
|
|
925
925
|
`,
|
|
926
|
-
danger:
|
|
927
|
-
border: solid 1px ${t(
|
|
928
|
-
background-color: ${
|
|
926
|
+
danger: Y`
|
|
927
|
+
border: solid 1px ${t(X.colors.danger, .3)};
|
|
928
|
+
background-color: ${X.colors.danger};
|
|
929
929
|
`
|
|
930
930
|
};
|
|
931
931
|
//#endregion
|
|
932
932
|
//#region src/components/_box.jsx
|
|
933
|
-
function
|
|
934
|
-
return /* @__PURE__ */ o
|
|
935
|
-
className:
|
|
933
|
+
function at({ type: e = "normal", className: t, width: n, height: r, children: i }) {
|
|
934
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
935
|
+
className: J(ot.base, ot[e] ?? ot.normal, t),
|
|
936
936
|
style: {
|
|
937
937
|
width: n,
|
|
938
938
|
height: r
|
|
@@ -940,26 +940,26 @@ function it({ type: e = "normal", className: t, width: n, height: r, children: i
|
|
|
940
940
|
children: i
|
|
941
941
|
}) });
|
|
942
942
|
}
|
|
943
|
-
var
|
|
944
|
-
base:
|
|
943
|
+
var ot = {
|
|
944
|
+
base: Y`
|
|
945
945
|
position: relative;
|
|
946
946
|
border-radius: 18px;
|
|
947
947
|
border: solid 2px #eee;
|
|
948
948
|
padding: 1.875rem 1.25rem;
|
|
949
|
-
box-shadow: ${
|
|
949
|
+
box-shadow: ${X.colors.shadow.primary};
|
|
950
950
|
`,
|
|
951
|
-
normal:
|
|
952
|
-
background-color: ${
|
|
951
|
+
normal: Y`
|
|
952
|
+
background-color: ${X.colors.back.primary};
|
|
953
953
|
`,
|
|
954
|
-
alternative:
|
|
954
|
+
alternative: Y`
|
|
955
955
|
background-color: #fafafa;
|
|
956
956
|
`
|
|
957
957
|
};
|
|
958
958
|
//#endregion
|
|
959
959
|
//#region src/components/_icon.jsx
|
|
960
|
-
function Z({ className: e, size: t = "1.25rem", color: n =
|
|
961
|
-
return /* @__PURE__ */ o
|
|
962
|
-
className:
|
|
960
|
+
function Z({ className: e, size: t = "1.25rem", color: n = X.colors.fore.primary, iconName: r, isSpinning: i }) {
|
|
961
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("svg", {
|
|
962
|
+
className: J(st.base, e),
|
|
963
963
|
style: {
|
|
964
964
|
color: n,
|
|
965
965
|
width: t,
|
|
@@ -967,10 +967,10 @@ function Z({ className: e, size: t = "1.25rem", color: n = Y.colors.fore.primary
|
|
|
967
967
|
},
|
|
968
968
|
"aria-hidden": "true",
|
|
969
969
|
"is-spinning": i || void 0,
|
|
970
|
-
children: /* @__PURE__ */
|
|
970
|
+
children: /* @__PURE__ */ s("use", { href: `#icon-${r}` })
|
|
971
971
|
}) });
|
|
972
972
|
}
|
|
973
|
-
var
|
|
973
|
+
var st = { base: Y`
|
|
974
974
|
fill: currentColor;
|
|
975
975
|
display: inline-block;
|
|
976
976
|
flex-shrink: 0;
|
|
@@ -996,10 +996,10 @@ var ot = { base: J`
|
|
|
996
996
|
` };
|
|
997
997
|
//#endregion
|
|
998
998
|
//#region src/components/_button.jsx
|
|
999
|
-
function
|
|
1000
|
-
let u = r ||
|
|
999
|
+
function ct({ type: e = "primary", label: t, iconName: r, isDisabled: i = !1, isLoading: a = !1, onClick: l }) {
|
|
1000
|
+
let u = r || a, d = n(null);
|
|
1001
1001
|
function f(e) {
|
|
1002
|
-
if (i ||
|
|
1002
|
+
if (i || a) return;
|
|
1003
1003
|
e.stopPropagation(), e.preventDefault();
|
|
1004
1004
|
let t = e.currentTarget.getBoundingClientRect();
|
|
1005
1005
|
d.value = {
|
|
@@ -1008,30 +1008,30 @@ function st({ type: e = "primary", label: t, iconName: r, isDisabled: i = !1, is
|
|
|
1008
1008
|
size: Math.max(t.width, t.height) * 2
|
|
1009
1009
|
}, l?.(e);
|
|
1010
1010
|
}
|
|
1011
|
-
return /* @__PURE__ */ o
|
|
1011
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("button", {
|
|
1012
1012
|
type: "button",
|
|
1013
|
-
className:
|
|
1013
|
+
className: J(ut.base, ut[e] ?? ut.normal),
|
|
1014
1014
|
"has-icon": u,
|
|
1015
1015
|
"is-disabled": i || void 0,
|
|
1016
|
-
"is-loading":
|
|
1016
|
+
"is-loading": a || void 0,
|
|
1017
1017
|
"is-clickable": !!l || void 0,
|
|
1018
|
-
disabled: i ||
|
|
1018
|
+
disabled: i || a,
|
|
1019
1019
|
onClick: f,
|
|
1020
1020
|
children: [
|
|
1021
|
-
u && /* @__PURE__ */ o
|
|
1022
|
-
className:
|
|
1023
|
-
${
|
|
1021
|
+
u && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1022
|
+
className: Y`
|
|
1023
|
+
${X.extends.verticalCenter}
|
|
1024
1024
|
|
|
1025
1025
|
left: .6rem;
|
|
1026
1026
|
`,
|
|
1027
|
-
children:
|
|
1027
|
+
children: a ? /* @__PURE__ */ s(Z, {
|
|
1028
1028
|
iconName: "loader",
|
|
1029
1029
|
isSpinning: !0
|
|
1030
|
-
}) : /* @__PURE__ */
|
|
1030
|
+
}) : /* @__PURE__ */ s(Z, { iconName: r })
|
|
1031
1031
|
}) }),
|
|
1032
1032
|
t,
|
|
1033
|
-
d.value && /* @__PURE__ */ o
|
|
1034
|
-
className:
|
|
1033
|
+
d.value && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("span", {
|
|
1034
|
+
className: ut.ripple,
|
|
1035
1035
|
style: {
|
|
1036
1036
|
left: d.value.x,
|
|
1037
1037
|
top: d.value.y,
|
|
@@ -1043,7 +1043,7 @@ function st({ type: e = "primary", label: t, iconName: r, isDisabled: i = !1, is
|
|
|
1043
1043
|
]
|
|
1044
1044
|
}) });
|
|
1045
1045
|
}
|
|
1046
|
-
var
|
|
1046
|
+
var lt = Ze`
|
|
1047
1047
|
from {
|
|
1048
1048
|
opacity: .4;
|
|
1049
1049
|
transform: translate(-50%, -50%) scale(0);
|
|
@@ -1053,8 +1053,8 @@ var ct = Ze`
|
|
|
1053
1053
|
opacity: 0;
|
|
1054
1054
|
transform: translate(-50%, -50%) scale(1);
|
|
1055
1055
|
}
|
|
1056
|
-
`,
|
|
1057
|
-
base:
|
|
1056
|
+
`, ut = {
|
|
1057
|
+
base: Y`
|
|
1058
1058
|
font-size: .9rem;
|
|
1059
1059
|
display: inline-block;
|
|
1060
1060
|
position: relative;
|
|
@@ -1066,7 +1066,7 @@ var ct = Ze`
|
|
|
1066
1066
|
border-radius: 12px;
|
|
1067
1067
|
will-change: transform, border;
|
|
1068
1068
|
transition: transform .1s linear, border .1s linear;
|
|
1069
|
-
font-family: ${
|
|
1069
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1070
1070
|
|
|
1071
1071
|
&:active {
|
|
1072
1072
|
transform: translateY(2px);
|
|
@@ -1075,94 +1075,94 @@ var ct = Ze`
|
|
|
1075
1075
|
|
|
1076
1076
|
&[has-icon] { padding-left: 2rem; }
|
|
1077
1077
|
`,
|
|
1078
|
-
primary:
|
|
1079
|
-
color: ${t(
|
|
1080
|
-
border-bottom: solid 3px ${t(
|
|
1081
|
-
background-color: ${
|
|
1078
|
+
primary: Y`
|
|
1079
|
+
color: ${t(X.colors.primary, .5)};
|
|
1080
|
+
border-bottom: solid 3px ${t(X.colors.primary, .25)};
|
|
1081
|
+
background-color: ${X.colors.primary};
|
|
1082
1082
|
`,
|
|
1083
|
-
secondary:
|
|
1084
|
-
color: ${t(
|
|
1085
|
-
border-bottom: solid 3px ${t(
|
|
1086
|
-
background-color: ${
|
|
1083
|
+
secondary: Y`
|
|
1084
|
+
color: ${t(X.colors.secondary, .5)};
|
|
1085
|
+
border-bottom: solid 3px ${t(X.colors.secondary, .25)};
|
|
1086
|
+
background-color: ${X.colors.secondary};
|
|
1087
1087
|
`,
|
|
1088
|
-
ripple:
|
|
1088
|
+
ripple: Y`
|
|
1089
1089
|
position: absolute;
|
|
1090
1090
|
z-index: 1;
|
|
1091
1091
|
border-radius: 50%;
|
|
1092
1092
|
pointer-events: none;
|
|
1093
1093
|
background-color: currentColor;
|
|
1094
|
-
animation: ${
|
|
1094
|
+
animation: ${lt} .5s ease-out forwards;
|
|
1095
1095
|
`
|
|
1096
1096
|
};
|
|
1097
1097
|
//#endregion
|
|
1098
1098
|
//#region src/components/_layout.jsx
|
|
1099
|
-
function
|
|
1100
|
-
return /* @__PURE__ */ o
|
|
1101
|
-
className:
|
|
1099
|
+
function dt({ className: e, height: t, direction: n = "row", justify: r, align: i, gap: a, children: c }) {
|
|
1100
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1101
|
+
className: J(ft.base, e),
|
|
1102
1102
|
style: {
|
|
1103
1103
|
height: t,
|
|
1104
1104
|
flexDirection: n,
|
|
1105
1105
|
justifyContent: r,
|
|
1106
1106
|
alignItems: i,
|
|
1107
|
-
gap:
|
|
1107
|
+
gap: a == null ? void 0 : `${a / 2}rem`
|
|
1108
1108
|
},
|
|
1109
1109
|
children: c
|
|
1110
1110
|
}) });
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var ft = { base: Y`
|
|
1113
1113
|
display: flex;
|
|
1114
1114
|
` };
|
|
1115
1115
|
//#endregion
|
|
1116
1116
|
//#region src/components/_text.jsx
|
|
1117
|
-
function
|
|
1118
|
-
return /* @__PURE__ */ o
|
|
1119
|
-
className:
|
|
1117
|
+
function pt({ as: e = "span", className: t, size: n = "normal", color: r = X.colors.fore.primary, children: i }) {
|
|
1118
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(e, {
|
|
1119
|
+
className: J(mt.base, mt[n] ?? mt.normal, t),
|
|
1120
1120
|
style: { color: r },
|
|
1121
1121
|
children: i
|
|
1122
1122
|
}) });
|
|
1123
1123
|
}
|
|
1124
|
-
var
|
|
1125
|
-
base:
|
|
1124
|
+
var mt = {
|
|
1125
|
+
base: Y`
|
|
1126
1126
|
font-weight: 500;
|
|
1127
1127
|
letter-spacing: 1px;
|
|
1128
1128
|
`,
|
|
1129
|
-
normal:
|
|
1129
|
+
normal: Y`
|
|
1130
1130
|
font-size: 1rem;
|
|
1131
1131
|
line-height: 1.125rem;
|
|
1132
1132
|
`,
|
|
1133
|
-
small:
|
|
1133
|
+
small: Y`
|
|
1134
1134
|
font-size: .75rem;
|
|
1135
1135
|
line-height: 1rem;
|
|
1136
1136
|
`,
|
|
1137
|
-
tiny:
|
|
1137
|
+
tiny: Y`
|
|
1138
1138
|
font-size: .65rem;
|
|
1139
1139
|
line-height: 1rem;
|
|
1140
1140
|
`
|
|
1141
1141
|
};
|
|
1142
1142
|
//#endregion
|
|
1143
1143
|
//#region src/components/_headline.jsx
|
|
1144
|
-
function
|
|
1145
|
-
return /* @__PURE__ */ o
|
|
1146
|
-
className:
|
|
1144
|
+
function ht({ as: e = "h2", className: t, size: n = "normal", color: r = X.colors.fore.primary, children: i }) {
|
|
1145
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(e, {
|
|
1146
|
+
className: J(gt.base, gt[n] ?? gt.normal, t),
|
|
1147
1147
|
style: { color: r },
|
|
1148
1148
|
children: i
|
|
1149
1149
|
}) });
|
|
1150
1150
|
}
|
|
1151
|
-
var
|
|
1152
|
-
base:
|
|
1151
|
+
var gt = {
|
|
1152
|
+
base: Y`
|
|
1153
1153
|
letter-spacing: 1px;
|
|
1154
1154
|
`,
|
|
1155
|
-
normal:
|
|
1155
|
+
normal: Y`
|
|
1156
1156
|
font-weight: 500;
|
|
1157
1157
|
font-size: 1rem;
|
|
1158
1158
|
line-height: 1.2rem;
|
|
1159
1159
|
`,
|
|
1160
|
-
large:
|
|
1160
|
+
large: Y`
|
|
1161
1161
|
font-weight: 600;
|
|
1162
1162
|
font-size: 1.4rem;
|
|
1163
1163
|
line-height: 1.2;
|
|
1164
1164
|
`,
|
|
1165
|
-
small:
|
|
1165
|
+
small: Y`
|
|
1166
1166
|
font-weight: 500;
|
|
1167
1167
|
font-size: .9rem;
|
|
1168
1168
|
line-height: 1.2rem;
|
|
@@ -1170,8 +1170,8 @@ var mt = {
|
|
|
1170
1170
|
};
|
|
1171
1171
|
//#endregion
|
|
1172
1172
|
//#region src/components/_space.jsx
|
|
1173
|
-
function
|
|
1174
|
-
return /* @__PURE__ */ o
|
|
1173
|
+
function _t({ size: e = 1 }) {
|
|
1174
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1175
1175
|
"aria-hidden": "true",
|
|
1176
1176
|
style: {
|
|
1177
1177
|
height: e > 0 ? `${e}rem` : 0,
|
|
@@ -1181,35 +1181,35 @@ function ht({ size: e = 1 }) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
//#endregion
|
|
1183
1183
|
//#region src/components/_text-field.jsx
|
|
1184
|
-
function
|
|
1184
|
+
function vt({ placeholder: e, value: t, width: r, isDisabled: a, onChange: l }) {
|
|
1185
1185
|
let u = i(), d = n(t);
|
|
1186
1186
|
function f({ target: e }) {
|
|
1187
1187
|
d.value = e.value, l?.(d.value);
|
|
1188
1188
|
}
|
|
1189
|
-
return /* @__PURE__ */ o
|
|
1190
|
-
className:
|
|
1189
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
1190
|
+
className: yt.base,
|
|
1191
1191
|
style: { width: r },
|
|
1192
|
-
"is-disabled":
|
|
1193
|
-
children: [!d.value && e && /* @__PURE__ */
|
|
1194
|
-
className:
|
|
1192
|
+
"is-disabled": a,
|
|
1193
|
+
children: [!d.value && e && /* @__PURE__ */ s("label", {
|
|
1194
|
+
className: yt.label,
|
|
1195
1195
|
htmlFor: u,
|
|
1196
1196
|
children: e
|
|
1197
|
-
}), /* @__PURE__ */
|
|
1197
|
+
}), /* @__PURE__ */ s("input", {
|
|
1198
1198
|
id: u,
|
|
1199
1199
|
name: u,
|
|
1200
|
-
className:
|
|
1200
|
+
className: yt.input,
|
|
1201
1201
|
value: d.value,
|
|
1202
|
-
disabled:
|
|
1202
|
+
disabled: a,
|
|
1203
1203
|
autocomplete: "off",
|
|
1204
1204
|
onInput: f
|
|
1205
1205
|
})]
|
|
1206
1206
|
}) });
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1209
|
-
base:
|
|
1208
|
+
var yt = {
|
|
1209
|
+
base: Y`
|
|
1210
1210
|
position: relative;
|
|
1211
1211
|
`,
|
|
1212
|
-
label:
|
|
1212
|
+
label: Y`
|
|
1213
1213
|
font-size: .875rem;
|
|
1214
1214
|
font-weight: 500;
|
|
1215
1215
|
opacity: .5;
|
|
@@ -1218,10 +1218,10 @@ var _t = {
|
|
|
1218
1218
|
top: .75rem;
|
|
1219
1219
|
pointer-events: none;
|
|
1220
1220
|
letter-spacing: 1px;
|
|
1221
|
-
font-family: ${
|
|
1222
|
-
color: ${
|
|
1221
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1222
|
+
color: ${X.colors.fore.primary};
|
|
1223
1223
|
`,
|
|
1224
|
-
input:
|
|
1224
|
+
input: Y`
|
|
1225
1225
|
font-size: .875rem;
|
|
1226
1226
|
font-weight: 500;
|
|
1227
1227
|
color: rgb(58, 58, 58);
|
|
@@ -1232,72 +1232,302 @@ var _t = {
|
|
|
1232
1232
|
width: 100%;
|
|
1233
1233
|
border-radius: 8px;
|
|
1234
1234
|
letter-spacing: 1px;
|
|
1235
|
-
font-family: ${
|
|
1236
|
-
color: ${
|
|
1237
|
-
background-color: ${
|
|
1235
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1236
|
+
color: ${X.colors.fore.primary};
|
|
1237
|
+
background-color: ${X.colors.back.secondary};
|
|
1238
|
+
`
|
|
1239
|
+
};
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/components/_popup-box.jsx
|
|
1242
|
+
function bt({ className: e, trigger: t, children: n, id: r, isOpen: i = !1, origin: a = "center", role: l, width: u }) {
|
|
1243
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
1244
|
+
className: xt.base,
|
|
1245
|
+
children: [t, i && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1246
|
+
id: r,
|
|
1247
|
+
className: J(xt.popup, xt[a] ?? xt.center, e),
|
|
1248
|
+
style: { width: u },
|
|
1249
|
+
role: l,
|
|
1250
|
+
children: n
|
|
1251
|
+
}) })]
|
|
1252
|
+
}) });
|
|
1253
|
+
}
|
|
1254
|
+
var xt = {
|
|
1255
|
+
base: Y`
|
|
1256
|
+
display: inline-block;
|
|
1257
|
+
position: relative;
|
|
1258
|
+
`,
|
|
1259
|
+
popup: Y`
|
|
1260
|
+
position: absolute;
|
|
1261
|
+
z-index: ${X.zIndex.front + 1};
|
|
1262
|
+
top: calc(100% + .5rem);
|
|
1263
|
+
min-width: 100%;
|
|
1264
|
+
width: max-content;
|
|
1265
|
+
max-width: calc(100vw - 2rem);
|
|
1266
|
+
padding: .5rem;
|
|
1267
|
+
border: solid 1px #e5e7e9;
|
|
1268
|
+
border-radius: 10px;
|
|
1269
|
+
color: ${X.colors.fore.primary};
|
|
1270
|
+
background-color: ${X.colors.back.primary};
|
|
1271
|
+
box-shadow: 0 6px 20px rgb(22 24 38 / 10%);
|
|
1272
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1273
|
+
`,
|
|
1274
|
+
center: Y`
|
|
1275
|
+
left: 50%;
|
|
1276
|
+
transform: translateX(-50%);
|
|
1277
|
+
`,
|
|
1278
|
+
left: Y`
|
|
1279
|
+
left: 0;
|
|
1280
|
+
`
|
|
1281
|
+
};
|
|
1282
|
+
//#endregion
|
|
1283
|
+
//#region src/components/_dropdown.jsx
|
|
1284
|
+
function St({ items: e = [], value: t, width: l, isDisabled: u = !1, onChange: d }) {
|
|
1285
|
+
let f = i(), p = a(null), m = a(null), h = a([]), g = n(t ?? e[0]?.value ?? ""), _ = n(!1), v = e.findIndex((e) => e.value === g.value), y = e[v] ?? e[0], b = u || e.length === 0;
|
|
1286
|
+
r(() => {
|
|
1287
|
+
t !== void 0 && (g.value = t);
|
|
1288
|
+
}, [t]), r(() => {
|
|
1289
|
+
if (!_.value) return;
|
|
1290
|
+
function e({ target: e }) {
|
|
1291
|
+
p.current?.contains(e) || (_.value = !1);
|
|
1292
|
+
}
|
|
1293
|
+
return document.addEventListener("pointerdown", e), () => {
|
|
1294
|
+
document.removeEventListener("pointerdown", e);
|
|
1295
|
+
};
|
|
1296
|
+
}, [_.value]);
|
|
1297
|
+
function x(e) {
|
|
1298
|
+
requestAnimationFrame(() => h.current[e]?.focus());
|
|
1299
|
+
}
|
|
1300
|
+
function S(e = Math.max(v, 0)) {
|
|
1301
|
+
b || (_.value = !0, x(e));
|
|
1302
|
+
}
|
|
1303
|
+
function C() {
|
|
1304
|
+
_.value = !1, m.current?.focus();
|
|
1305
|
+
}
|
|
1306
|
+
function w() {
|
|
1307
|
+
if (_.value) {
|
|
1308
|
+
_.value = !1;
|
|
1309
|
+
return;
|
|
1310
|
+
}
|
|
1311
|
+
S();
|
|
1312
|
+
}
|
|
1313
|
+
function ee(t) {
|
|
1314
|
+
["ArrowDown", "ArrowUp"].includes(t.key) && (t.preventDefault(), S(t.key === "ArrowUp" ? e.length - 1 : Math.max(v, 0)));
|
|
1315
|
+
}
|
|
1316
|
+
function te(t, n) {
|
|
1317
|
+
if (t.key === "Escape") {
|
|
1318
|
+
t.preventDefault(), C();
|
|
1319
|
+
return;
|
|
1320
|
+
}
|
|
1321
|
+
if (t.key === "Tab") {
|
|
1322
|
+
_.value = !1;
|
|
1323
|
+
return;
|
|
1324
|
+
}
|
|
1325
|
+
if ([
|
|
1326
|
+
"ArrowDown",
|
|
1327
|
+
"ArrowUp",
|
|
1328
|
+
"Home",
|
|
1329
|
+
"End"
|
|
1330
|
+
].includes(t.key)) {
|
|
1331
|
+
if (t.preventDefault(), t.key === "Home") return x(0);
|
|
1332
|
+
if (t.key === "End") return x(e.length - 1);
|
|
1333
|
+
x((n + (t.key === "ArrowDown" ? 1 : -1) + e.length) % e.length);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
function T(e) {
|
|
1337
|
+
g.value = e.value, _.value = !1, m.current?.focus(), d?.(e.value, e);
|
|
1338
|
+
}
|
|
1339
|
+
let ne = /* @__PURE__ */ c("button", {
|
|
1340
|
+
ref: m,
|
|
1341
|
+
type: "button",
|
|
1342
|
+
className: Q.trigger,
|
|
1343
|
+
style: { width: l },
|
|
1344
|
+
role: "combobox",
|
|
1345
|
+
"aria-controls": f,
|
|
1346
|
+
"aria-expanded": _.value,
|
|
1347
|
+
"aria-haspopup": "listbox",
|
|
1348
|
+
disabled: b,
|
|
1349
|
+
onClick: w,
|
|
1350
|
+
onKeyDown: ee,
|
|
1351
|
+
children: [
|
|
1352
|
+
/* @__PURE__ */ s("span", {
|
|
1353
|
+
className: Q.sizer,
|
|
1354
|
+
"aria-hidden": "true",
|
|
1355
|
+
children: e.map((e) => /* @__PURE__ */ s("span", {
|
|
1356
|
+
className: Q.sizerValue,
|
|
1357
|
+
children: e.label
|
|
1358
|
+
}, e.value))
|
|
1359
|
+
}),
|
|
1360
|
+
/* @__PURE__ */ s("span", {
|
|
1361
|
+
className: Q.label,
|
|
1362
|
+
children: y?.label
|
|
1363
|
+
}),
|
|
1364
|
+
/* @__PURE__ */ s(Z, {
|
|
1365
|
+
className: J(Q.icon, _.value && Q.iconOpen),
|
|
1366
|
+
iconName: "down",
|
|
1367
|
+
size: "1rem"
|
|
1368
|
+
})
|
|
1369
|
+
]
|
|
1370
|
+
});
|
|
1371
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1372
|
+
ref: p,
|
|
1373
|
+
className: Q.base,
|
|
1374
|
+
"is-disabled": b || void 0,
|
|
1375
|
+
children: /* @__PURE__ */ s(bt, {
|
|
1376
|
+
className: Q.popup,
|
|
1377
|
+
trigger: ne,
|
|
1378
|
+
id: f,
|
|
1379
|
+
isOpen: _.value,
|
|
1380
|
+
origin: "left",
|
|
1381
|
+
role: "listbox",
|
|
1382
|
+
children: e.map((e, t) => /* @__PURE__ */ s("button", {
|
|
1383
|
+
ref: (e) => h.current[t] = e,
|
|
1384
|
+
type: "button",
|
|
1385
|
+
className: Q.option,
|
|
1386
|
+
role: "option",
|
|
1387
|
+
"aria-selected": e.value === g.value,
|
|
1388
|
+
onClick: () => T(e),
|
|
1389
|
+
onKeyDown: (e) => te(e, t),
|
|
1390
|
+
children: e.label
|
|
1391
|
+
}, e.value))
|
|
1392
|
+
})
|
|
1393
|
+
}) });
|
|
1394
|
+
}
|
|
1395
|
+
var Q = {
|
|
1396
|
+
base: Y`
|
|
1397
|
+
display: inline-block;
|
|
1398
|
+
`,
|
|
1399
|
+
trigger: Y`
|
|
1400
|
+
display: inline-grid;
|
|
1401
|
+
position: relative;
|
|
1402
|
+
align-items: center;
|
|
1403
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1404
|
+
height: 2.5rem;
|
|
1405
|
+
padding: 0 2.25rem 0 1rem;
|
|
1406
|
+
border-radius: 8px;
|
|
1407
|
+
cursor: pointer;
|
|
1408
|
+
text-align: left;
|
|
1409
|
+
font-size: .875rem;
|
|
1410
|
+
font-weight: 500;
|
|
1411
|
+
letter-spacing: 1px;
|
|
1412
|
+
color: ${X.colors.fore.primary};
|
|
1413
|
+
background-color: ${X.colors.back.secondary};
|
|
1414
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1415
|
+
|
|
1416
|
+
&:focus-visible {
|
|
1417
|
+
box-shadow: 0 0 0 2px ${X.colors.primary};
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
&:disabled { cursor: default; }
|
|
1421
|
+
`,
|
|
1422
|
+
sizer: Y`
|
|
1423
|
+
display: inline-grid;
|
|
1424
|
+
visibility: hidden;
|
|
1425
|
+
grid-area: 1 / 1;
|
|
1426
|
+
`,
|
|
1427
|
+
sizerValue: Y`
|
|
1428
|
+
grid-area: 1 / 1;
|
|
1429
|
+
white-space: nowrap;
|
|
1430
|
+
`,
|
|
1431
|
+
label: Y`
|
|
1432
|
+
grid-area: 1 / 1;
|
|
1433
|
+
overflow: hidden;
|
|
1434
|
+
white-space: nowrap;
|
|
1435
|
+
text-overflow: ellipsis;
|
|
1436
|
+
`,
|
|
1437
|
+
icon: Y`
|
|
1438
|
+
${X.extends.verticalCenter}
|
|
1439
|
+
|
|
1440
|
+
right: .75rem;
|
|
1441
|
+
pointer-events: none;
|
|
1442
|
+
`,
|
|
1443
|
+
iconOpen: Y`
|
|
1444
|
+
transform: translateY(-50%) rotate(180deg);
|
|
1445
|
+
`,
|
|
1446
|
+
popup: Y`
|
|
1447
|
+
display: grid;
|
|
1448
|
+
gap: .125rem;
|
|
1449
|
+
min-width: 0;
|
|
1450
|
+
padding: .25rem;
|
|
1451
|
+
`,
|
|
1452
|
+
option: Y`
|
|
1453
|
+
width: 100%;
|
|
1454
|
+
padding: .6rem .75rem;
|
|
1455
|
+
border-radius: 7px;
|
|
1456
|
+
cursor: pointer;
|
|
1457
|
+
text-align: left;
|
|
1458
|
+
white-space: nowrap;
|
|
1459
|
+
font-size: .825rem;
|
|
1460
|
+
color: ${X.colors.fore.primary};
|
|
1461
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1462
|
+
|
|
1463
|
+
&:hover,
|
|
1464
|
+
&:focus-visible,
|
|
1465
|
+
&[aria-selected="true"] {
|
|
1466
|
+
background-color: ${X.colors.back.secondary};
|
|
1467
|
+
}
|
|
1238
1468
|
`
|
|
1239
|
-
},
|
|
1240
|
-
function
|
|
1469
|
+
}, Ct = 28, wt = 3, Tt = 11;
|
|
1470
|
+
function Et({ label: e, isChecked: t, isDisabled: a, onChange: l }) {
|
|
1241
1471
|
let u = i(), d = n(t);
|
|
1242
1472
|
r(() => d.value = t, [t]);
|
|
1243
1473
|
function f() {
|
|
1244
1474
|
let e = !d.value;
|
|
1245
1475
|
d.value = e, l?.(e);
|
|
1246
1476
|
}
|
|
1247
|
-
return /* @__PURE__ */ o
|
|
1248
|
-
className:
|
|
1477
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
1478
|
+
className: Dt.base,
|
|
1249
1479
|
children: [
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
className:
|
|
1480
|
+
/* @__PURE__ */ s("label", {
|
|
1481
|
+
className: Dt.label,
|
|
1252
1482
|
htmlFor: u,
|
|
1253
|
-
"is-disabled":
|
|
1483
|
+
"is-disabled": a,
|
|
1254
1484
|
children: e
|
|
1255
1485
|
}),
|
|
1256
|
-
/* @__PURE__ */
|
|
1486
|
+
/* @__PURE__ */ s("input", {
|
|
1257
1487
|
id: u,
|
|
1258
1488
|
type: "checkbox",
|
|
1259
|
-
className:
|
|
1489
|
+
className: Dt.checkbox,
|
|
1260
1490
|
checked: d.value,
|
|
1261
|
-
disabled:
|
|
1491
|
+
disabled: a,
|
|
1262
1492
|
onChange: f
|
|
1263
1493
|
}),
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
className:
|
|
1494
|
+
/* @__PURE__ */ s("label", {
|
|
1495
|
+
className: Dt.value,
|
|
1266
1496
|
htmlFor: u,
|
|
1267
|
-
"is-disabled":
|
|
1497
|
+
"is-disabled": a
|
|
1268
1498
|
})
|
|
1269
1499
|
]
|
|
1270
1500
|
}) });
|
|
1271
1501
|
}
|
|
1272
|
-
var
|
|
1273
|
-
base:
|
|
1502
|
+
var Dt = {
|
|
1503
|
+
base: Y`
|
|
1274
1504
|
position: relative;
|
|
1275
1505
|
display: flex;
|
|
1276
1506
|
gap: .5rem;
|
|
1277
1507
|
`,
|
|
1278
|
-
label:
|
|
1508
|
+
label: Y`
|
|
1279
1509
|
display: inline-block;
|
|
1280
1510
|
font-size: .75rem;
|
|
1281
1511
|
line-height: 1.2rem;
|
|
1282
1512
|
cursor: pointer;
|
|
1283
1513
|
user-select: none;
|
|
1284
1514
|
font-weight: 500;
|
|
1285
|
-
font-family: ${
|
|
1286
|
-
color: ${
|
|
1515
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1516
|
+
color: ${X.colors.fore.secondary};
|
|
1287
1517
|
`,
|
|
1288
|
-
checkbox:
|
|
1518
|
+
checkbox: Y`
|
|
1289
1519
|
display: none;
|
|
1290
1520
|
|
|
1291
1521
|
&:checked ~ label {
|
|
1292
1522
|
background-color: #e1e1e1;
|
|
1293
1523
|
|
|
1294
1524
|
&:before {
|
|
1295
|
-
right: ${
|
|
1525
|
+
right: ${wt}px;
|
|
1296
1526
|
background-color: #3a3a3a;
|
|
1297
1527
|
}
|
|
1298
1528
|
}
|
|
1299
1529
|
`,
|
|
1300
|
-
value:
|
|
1530
|
+
value: Y`
|
|
1301
1531
|
display: inline-block;
|
|
1302
1532
|
position: relative;
|
|
1303
1533
|
height: 1.1rem;
|
|
@@ -1305,8 +1535,8 @@ var St = {
|
|
|
1305
1535
|
cursor: pointer;
|
|
1306
1536
|
user-select: none;
|
|
1307
1537
|
transition: background .3s ease;
|
|
1308
|
-
width: ${
|
|
1309
|
-
background-color: ${
|
|
1538
|
+
width: ${Ct}px;
|
|
1539
|
+
background-color: ${X.colors.back.secondary};
|
|
1310
1540
|
|
|
1311
1541
|
&:before {
|
|
1312
1542
|
background-color: #e1e1e1;
|
|
@@ -1315,22 +1545,22 @@ var St = {
|
|
|
1315
1545
|
position: absolute;
|
|
1316
1546
|
transition: background .3s ease, right .3s ease;
|
|
1317
1547
|
border-radius: 50%;
|
|
1318
|
-
top: ${
|
|
1548
|
+
top: ${wt}px;
|
|
1319
1549
|
right: ${14}px;
|
|
1320
|
-
width: ${
|
|
1321
|
-
height: ${
|
|
1550
|
+
width: ${Tt}px;
|
|
1551
|
+
height: ${Tt}px;
|
|
1322
1552
|
}
|
|
1323
1553
|
`
|
|
1324
1554
|
};
|
|
1325
1555
|
//#endregion
|
|
1326
1556
|
//#region src/components/_tag.jsx
|
|
1327
|
-
function
|
|
1328
|
-
return /* @__PURE__ */ o
|
|
1329
|
-
className:
|
|
1557
|
+
function Ot({ className: t, variant: n = "normal", iconName: r, label: i }) {
|
|
1558
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
1559
|
+
className: J(kt.base, kt[n] ?? kt.normal, t),
|
|
1330
1560
|
"has-icon": !e(r),
|
|
1331
|
-
children: [r && /* @__PURE__ */ o
|
|
1332
|
-
className:
|
|
1333
|
-
${
|
|
1561
|
+
children: [r && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(Z, {
|
|
1562
|
+
className: Y`
|
|
1563
|
+
${X.extends.verticalCenter}
|
|
1334
1564
|
left: .3rem;
|
|
1335
1565
|
`,
|
|
1336
1566
|
iconName: r,
|
|
@@ -1338,7 +1568,7 @@ function Ct({ className: t, variant: n = "normal", iconName: r, label: i }) {
|
|
|
1338
1568
|
}) }), i]
|
|
1339
1569
|
}) });
|
|
1340
1570
|
}
|
|
1341
|
-
var
|
|
1571
|
+
var kt = { base: Y`
|
|
1342
1572
|
position: relative;
|
|
1343
1573
|
display: inline-block;
|
|
1344
1574
|
padding: .3rem .5rem;
|
|
@@ -1346,56 +1576,56 @@ var wt = { base: J`
|
|
|
1346
1576
|
white-space: pre-wrap;
|
|
1347
1577
|
font-size: .7rem;
|
|
1348
1578
|
font-weight: 600;
|
|
1349
|
-
border: solid 1px ${
|
|
1350
|
-
background-color: ${
|
|
1351
|
-
color: ${
|
|
1579
|
+
border: solid 1px ${X.colors.border};
|
|
1580
|
+
background-color: ${X.colors.back.secondary};
|
|
1581
|
+
color: ${X.colors.fore.primary};
|
|
1352
1582
|
|
|
1353
1583
|
&[has-icon="true"] { padding-left: 1.5rem; }
|
|
1354
1584
|
` };
|
|
1355
1585
|
//#endregion
|
|
1356
1586
|
//#region src/components/_icon-button.jsx
|
|
1357
|
-
function
|
|
1587
|
+
function At({ iconName: e, color: t, isDisabled: n, onClick: r }) {
|
|
1358
1588
|
function i(e) {
|
|
1359
1589
|
n || (e.stopPropagation(), e.preventDefault(), r?.(e));
|
|
1360
1590
|
}
|
|
1361
|
-
return /* @__PURE__ */ o
|
|
1362
|
-
className:
|
|
1591
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("button", {
|
|
1592
|
+
className: jt.base,
|
|
1363
1593
|
"is-disabled": n || void 0,
|
|
1364
1594
|
"is-clickable": !!r || void 0,
|
|
1365
1595
|
disabled: n,
|
|
1366
1596
|
onClick: i,
|
|
1367
|
-
children: /* @__PURE__ */
|
|
1597
|
+
children: /* @__PURE__ */ s(Z, {
|
|
1368
1598
|
color: t,
|
|
1369
|
-
className:
|
|
1599
|
+
className: Y`${X.extends.centrate}`,
|
|
1370
1600
|
iconName: e,
|
|
1371
1601
|
isDisabled: n
|
|
1372
1602
|
})
|
|
1373
1603
|
}) });
|
|
1374
1604
|
}
|
|
1375
|
-
var
|
|
1605
|
+
var jt = { base: Y`
|
|
1376
1606
|
position: relative;
|
|
1377
1607
|
width: 2.25rem;
|
|
1378
1608
|
height: 2.25rem;
|
|
1379
1609
|
border-radius: 8px;
|
|
1380
|
-
background-color: ${
|
|
1610
|
+
background-color: ${X.colors.back.secondary};
|
|
1381
1611
|
` };
|
|
1382
1612
|
//#endregion
|
|
1383
1613
|
//#region src/components/_tab-box.jsx
|
|
1384
|
-
function
|
|
1385
|
-
let d = i(), f = Math.max(l.length - 1, 0), p = n(Math.min(Math.max(
|
|
1614
|
+
function Mt({ className: e, width: t, height: r, initialIndex: a = 0, items: l = [], onChange: u }) {
|
|
1615
|
+
let d = i(), f = Math.max(l.length - 1, 0), p = n(Math.min(Math.max(a, 0), f)), m = Math.min(p.value, f);
|
|
1386
1616
|
function h(e) {
|
|
1387
1617
|
e !== m && (p.value = e, u?.(e, l[e]));
|
|
1388
1618
|
}
|
|
1389
|
-
return /* @__PURE__ */ o
|
|
1390
|
-
className:
|
|
1619
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
|
|
1620
|
+
className: J($.base, e),
|
|
1391
1621
|
style: { width: t },
|
|
1392
|
-
children: [/* @__PURE__ */
|
|
1622
|
+
children: [/* @__PURE__ */ s(at, {
|
|
1393
1623
|
className: $.box,
|
|
1394
1624
|
height: r,
|
|
1395
|
-
children: /* @__PURE__ */
|
|
1625
|
+
children: /* @__PURE__ */ s("div", {
|
|
1396
1626
|
className: $.track,
|
|
1397
1627
|
style: { transform: `translateX(-${m * 100}%)` },
|
|
1398
|
-
children: l.map((e, t) => /* @__PURE__ */ o
|
|
1628
|
+
children: l.map((e, t) => /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1399
1629
|
id: `${d}-panel-${t}`,
|
|
1400
1630
|
className: $.panel,
|
|
1401
1631
|
role: "tabpanel",
|
|
@@ -1405,12 +1635,12 @@ function Dt({ className: e, width: t, height: r, initialIndex: c = 0, items: l =
|
|
|
1405
1635
|
children: e.content
|
|
1406
1636
|
}, e.id ?? t) }))
|
|
1407
1637
|
})
|
|
1408
|
-
}), l.length > 0 && /* @__PURE__ */ o
|
|
1638
|
+
}), l.length > 0 && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s("div", {
|
|
1409
1639
|
className: $.tabs,
|
|
1410
1640
|
role: "tablist",
|
|
1411
1641
|
children: l.map((e, t) => {
|
|
1412
1642
|
let n = t === m, r = e.notification != null;
|
|
1413
|
-
return /* @__PURE__ */ o
|
|
1643
|
+
return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("button", {
|
|
1414
1644
|
id: `${d}-tab-${t}`,
|
|
1415
1645
|
className: $.tab,
|
|
1416
1646
|
style: e.width == null ? void 0 : {
|
|
@@ -1426,12 +1656,12 @@ function Dt({ className: e, width: t, height: r, initialIndex: c = 0, items: l =
|
|
|
1426
1656
|
"is-active": n || void 0,
|
|
1427
1657
|
onClick: () => h(t),
|
|
1428
1658
|
children: [
|
|
1429
|
-
e.iconName && /* @__PURE__ */
|
|
1659
|
+
e.iconName && /* @__PURE__ */ s(Z, {
|
|
1430
1660
|
iconName: e.iconName,
|
|
1431
1661
|
size: "1rem"
|
|
1432
1662
|
}),
|
|
1433
|
-
e.label && /* @__PURE__ */
|
|
1434
|
-
r && /* @__PURE__ */
|
|
1663
|
+
e.label && /* @__PURE__ */ s("span", { children: e.label }),
|
|
1664
|
+
r && /* @__PURE__ */ s("span", {
|
|
1435
1665
|
className: $.notification,
|
|
1436
1666
|
"aria-label": `${e.notification} notifications`,
|
|
1437
1667
|
children: e.notification
|
|
@@ -1443,17 +1673,17 @@ function Dt({ className: e, width: t, height: r, initialIndex: c = 0, items: l =
|
|
|
1443
1673
|
}) });
|
|
1444
1674
|
}
|
|
1445
1675
|
var $ = {
|
|
1446
|
-
base:
|
|
1676
|
+
base: Y`
|
|
1447
1677
|
position: relative;
|
|
1448
1678
|
max-width: 100%;
|
|
1449
1679
|
`,
|
|
1450
|
-
box:
|
|
1451
|
-
z-index: ${
|
|
1680
|
+
box: Y`
|
|
1681
|
+
z-index: ${X.zIndex.front};
|
|
1452
1682
|
width: 100%;
|
|
1453
1683
|
padding: 0;
|
|
1454
1684
|
overflow: hidden;
|
|
1455
1685
|
`,
|
|
1456
|
-
track:
|
|
1686
|
+
track: Y`
|
|
1457
1687
|
display: flex;
|
|
1458
1688
|
width: 100%;
|
|
1459
1689
|
min-height: 100%;
|
|
@@ -1462,12 +1692,12 @@ var $ = {
|
|
|
1462
1692
|
|
|
1463
1693
|
@media (prefers-reduced-motion: reduce) { transition: none; }
|
|
1464
1694
|
`,
|
|
1465
|
-
panel:
|
|
1695
|
+
panel: Y`
|
|
1466
1696
|
flex: 0 0 100%;
|
|
1467
1697
|
min-width: 0;
|
|
1468
1698
|
padding: 1.875rem 1.25rem;
|
|
1469
1699
|
`,
|
|
1470
|
-
tabs:
|
|
1700
|
+
tabs: Y`
|
|
1471
1701
|
display: flex;
|
|
1472
1702
|
position: relative;
|
|
1473
1703
|
margin-top: -1rem;
|
|
@@ -1475,9 +1705,9 @@ var $ = {
|
|
|
1475
1705
|
border: solid 2px #eee;
|
|
1476
1706
|
border-top: 0;
|
|
1477
1707
|
border-radius: 0 0 18px 18px;
|
|
1478
|
-
background-color: ${
|
|
1708
|
+
background-color: ${X.colors.back.secondary};
|
|
1479
1709
|
`,
|
|
1480
|
-
tab:
|
|
1710
|
+
tab: Y`
|
|
1481
1711
|
display: flex;
|
|
1482
1712
|
flex: 1 1 0;
|
|
1483
1713
|
align-items: center;
|
|
@@ -1490,17 +1720,17 @@ var $ = {
|
|
|
1490
1720
|
font-size: .8rem;
|
|
1491
1721
|
font-weight: 600;
|
|
1492
1722
|
transition: color .2s ease, background-color .2s ease;
|
|
1493
|
-
color: ${
|
|
1494
|
-
font-family: ${
|
|
1723
|
+
color: ${X.colors.fore.secondary};
|
|
1724
|
+
font-family: ${X.fontFamily}, sans-serif;
|
|
1495
1725
|
|
|
1496
1726
|
& + & { border-left: solid 1px #e5e7e9; }
|
|
1497
1727
|
|
|
1498
1728
|
&[is-active] {
|
|
1499
|
-
color: ${
|
|
1500
|
-
background-color: ${
|
|
1729
|
+
color: ${X.colors.fore.primary};
|
|
1730
|
+
background-color: ${X.colors.back.primary};
|
|
1501
1731
|
}
|
|
1502
1732
|
`,
|
|
1503
|
-
notification:
|
|
1733
|
+
notification: Y`
|
|
1504
1734
|
display: inline-flex;
|
|
1505
1735
|
align-items: center;
|
|
1506
1736
|
justify-content: center;
|
|
@@ -1511,9 +1741,9 @@ var $ = {
|
|
|
1511
1741
|
font-size: .7rem;
|
|
1512
1742
|
font-weight: 700;
|
|
1513
1743
|
line-height: 1;
|
|
1514
|
-
color: ${
|
|
1744
|
+
color: ${X.colors.fore.primary};
|
|
1515
1745
|
background-color: #e1e1e1;
|
|
1516
1746
|
`
|
|
1517
1747
|
};
|
|
1518
1748
|
//#endregion
|
|
1519
|
-
export { tt as AppWrapper, rt as Bar,
|
|
1749
|
+
export { tt as AppWrapper, rt as Bar, at as Box, ct as Button, St as Dropdown, ht as Headline, Z as Icon, At as IconButton, dt as Layout, bt as PopupBox, _t as Space, Et as Switch, Mt as TabBox, Ot as Tag, pt as Text, vt as TextField, X as Theme };
|