@sito/ui 0.0.199 → 0.0.201
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/components/InputControl/types.d.ts +6 -0
- package/dist/main.css +1 -1
- package/dist/ui.cjs +4 -4
- package/dist/ui.js +308 -302
- package/package.json +1 -1
package/dist/ui.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./main.css";
|
|
2
2
|
import { jsx as N, jsxs as x } from "react/jsx-runtime";
|
|
3
|
-
import * as
|
|
3
|
+
import * as ae from "react";
|
|
4
4
|
import { createContext as ge, useState as w, useCallback as je, useEffect as k, useContext as De, useMemo as H, forwardRef as P, useReducer as et, useRef as de, memo as tt } from "react";
|
|
5
5
|
function rt(e) {
|
|
6
6
|
if (e.sheet)
|
|
@@ -33,11 +33,11 @@ var st = /* @__PURE__ */ function() {
|
|
|
33
33
|
` + n + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."), this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !i;
|
|
34
34
|
}
|
|
35
35
|
if (this.isSpeedy) {
|
|
36
|
-
var
|
|
36
|
+
var a = rt(s);
|
|
37
37
|
try {
|
|
38
|
-
|
|
39
|
-
} catch (
|
|
40
|
-
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n) && console.error('There was a problem inserting the following rule: "' + n + '"',
|
|
38
|
+
a.insertRule(n, a.cssRules.length);
|
|
39
|
+
} catch (o) {
|
|
40
|
+
process.env.NODE_ENV !== "production" && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n) && console.error('There was a problem inserting the following rule: "' + n + '"', o);
|
|
41
41
|
}
|
|
42
42
|
} else
|
|
43
43
|
s.appendChild(document.createTextNode(n));
|
|
@@ -47,9 +47,9 @@ var st = /* @__PURE__ */ function() {
|
|
|
47
47
|
return n.parentNode && n.parentNode.removeChild(n);
|
|
48
48
|
}), this.tags = [], this.ctr = 0, process.env.NODE_ENV !== "production" && (this._alreadyInsertedOrderInsensitiveRule = !1);
|
|
49
49
|
}, e;
|
|
50
|
-
}(),
|
|
50
|
+
}(), p = "-ms-", re = "-moz-", g = "-webkit-", fe = "comm", ye = "rule", Ie = "decl", it = "@import", Qe = "@keyframes", ot = "@layer", at = Math.abs, se = String.fromCharCode, ct = Object.assign;
|
|
51
51
|
function Mt(e, t) {
|
|
52
|
-
return
|
|
52
|
+
return T(e, 0) ^ 45 ? (((t << 2 ^ T(e, 0)) << 2 ^ T(e, 1)) << 2 ^ T(e, 2)) << 2 ^ T(e, 3) : 0;
|
|
53
53
|
}
|
|
54
54
|
function Ye(e) {
|
|
55
55
|
return e.trim();
|
|
@@ -63,7 +63,7 @@ function j(e, t, r) {
|
|
|
63
63
|
function ue(e, t) {
|
|
64
64
|
return e.indexOf(t);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function T(e, t) {
|
|
67
67
|
return e.charCodeAt(t) | 0;
|
|
68
68
|
}
|
|
69
69
|
function Z(e, t, r) {
|
|
@@ -81,27 +81,27 @@ function q(e, t) {
|
|
|
81
81
|
function Nt(e, t) {
|
|
82
82
|
return e.map(t).join("");
|
|
83
83
|
}
|
|
84
|
-
var ie = 1, V = 1, $e = 0,
|
|
85
|
-
function oe(e, t, r, n, s, i,
|
|
86
|
-
return { value: e, root: t, parent: r, type: n, props: s, children: i, line: ie, column: V, length:
|
|
84
|
+
var ie = 1, V = 1, $e = 0, m = 0, z = 0, F = "";
|
|
85
|
+
function oe(e, t, r, n, s, i, a) {
|
|
86
|
+
return { value: e, root: t, parent: r, type: n, props: s, children: i, line: ie, column: V, length: a, return: "" };
|
|
87
87
|
}
|
|
88
88
|
function B(e, t) {
|
|
89
|
-
return
|
|
89
|
+
return ct(oe("", null, null, "", null, null, 0), e, { length: -e.length }, t);
|
|
90
90
|
}
|
|
91
91
|
function lt() {
|
|
92
|
-
return
|
|
92
|
+
return z;
|
|
93
93
|
}
|
|
94
94
|
function gt() {
|
|
95
|
-
return
|
|
95
|
+
return z = m > 0 ? T(F, --m) : 0, V--, z === 10 && (V = 1, ie--), z;
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return
|
|
97
|
+
function E() {
|
|
98
|
+
return z = m < $e ? T(F, m++) : 0, V++, z === 10 && (V = 1, ie++), z;
|
|
99
99
|
}
|
|
100
100
|
function U() {
|
|
101
|
-
return
|
|
101
|
+
return T(F, m);
|
|
102
102
|
}
|
|
103
103
|
function X() {
|
|
104
|
-
return
|
|
104
|
+
return m;
|
|
105
105
|
}
|
|
106
106
|
function K(e, t) {
|
|
107
107
|
return Z(F, e, t);
|
|
@@ -139,74 +139,74 @@ function G(e) {
|
|
|
139
139
|
return 0;
|
|
140
140
|
}
|
|
141
141
|
function Re(e) {
|
|
142
|
-
return ie = V = 1, $e = v(F = e),
|
|
142
|
+
return ie = V = 1, $e = v(F = e), m = 0, [];
|
|
143
143
|
}
|
|
144
144
|
function Ve(e) {
|
|
145
145
|
return F = "", e;
|
|
146
146
|
}
|
|
147
147
|
function ee(e) {
|
|
148
|
-
return Ye(K(
|
|
148
|
+
return Ye(K(m - 1, Ne(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
149
149
|
}
|
|
150
150
|
function jt(e) {
|
|
151
|
-
for (; (
|
|
152
|
-
|
|
153
|
-
return G(e) > 2 || G(
|
|
151
|
+
for (; (z = U()) && z < 33; )
|
|
152
|
+
E();
|
|
153
|
+
return G(e) > 2 || G(z) > 3 ? "" : " ";
|
|
154
154
|
}
|
|
155
155
|
function Dt(e, t) {
|
|
156
|
-
for (; --t &&
|
|
156
|
+
for (; --t && E() && !(z < 48 || z > 102 || z > 57 && z < 65 || z > 70 && z < 97); )
|
|
157
157
|
;
|
|
158
|
-
return K(e, X() + (t < 6 && U() == 32 &&
|
|
158
|
+
return K(e, X() + (t < 6 && U() == 32 && E() == 32));
|
|
159
159
|
}
|
|
160
160
|
function Ne(e) {
|
|
161
|
-
for (;
|
|
162
|
-
switch (
|
|
161
|
+
for (; E(); )
|
|
162
|
+
switch (z) {
|
|
163
163
|
case e:
|
|
164
|
-
return
|
|
164
|
+
return m;
|
|
165
165
|
case 34:
|
|
166
166
|
case 39:
|
|
167
|
-
e !== 34 && e !== 39 && Ne(
|
|
167
|
+
e !== 34 && e !== 39 && Ne(z);
|
|
168
168
|
break;
|
|
169
169
|
case 40:
|
|
170
170
|
e === 41 && Ne(e);
|
|
171
171
|
break;
|
|
172
172
|
case 92:
|
|
173
|
-
|
|
173
|
+
E();
|
|
174
174
|
break;
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return m;
|
|
177
177
|
}
|
|
178
178
|
function dt(e, t) {
|
|
179
|
-
for (;
|
|
180
|
-
if (e +
|
|
179
|
+
for (; E() && e + z !== 47 + 10; )
|
|
180
|
+
if (e + z === 42 + 42 && U() === 47)
|
|
181
181
|
break;
|
|
182
|
-
return "/*" + K(t,
|
|
182
|
+
return "/*" + K(t, m - 1) + "*" + se(e === 47 ? e : E());
|
|
183
183
|
}
|
|
184
184
|
function ft(e) {
|
|
185
185
|
for (; !G(U()); )
|
|
186
|
-
|
|
187
|
-
return K(e,
|
|
186
|
+
E();
|
|
187
|
+
return K(e, m);
|
|
188
188
|
}
|
|
189
189
|
function yt(e) {
|
|
190
190
|
return Ve(te("", null, null, null, [""], e = Re(e), 0, [0], e));
|
|
191
191
|
}
|
|
192
|
-
function te(e, t, r, n, s, i, o, c
|
|
193
|
-
for (var M = 0, u = 0, l =
|
|
194
|
-
switch (
|
|
192
|
+
function te(e, t, r, n, s, i, a, o, c) {
|
|
193
|
+
for (var M = 0, u = 0, l = a, d = 0, h = 0, I = 0, D = 1, O = 1, y = 1, A = 0, S = "", _ = s, Y = i, C = n, f = S; O; )
|
|
194
|
+
switch (I = A, A = E()) {
|
|
195
195
|
case 40:
|
|
196
|
-
if (
|
|
197
|
-
ue(f += j(ee(
|
|
196
|
+
if (I != 108 && T(f, l - 1) == 58) {
|
|
197
|
+
ue(f += j(ee(A), "&", "&\f"), "&\f") != -1 && (y = -1);
|
|
198
198
|
break;
|
|
199
199
|
}
|
|
200
200
|
case 34:
|
|
201
201
|
case 39:
|
|
202
202
|
case 91:
|
|
203
|
-
f += ee(
|
|
203
|
+
f += ee(A);
|
|
204
204
|
break;
|
|
205
205
|
case 9:
|
|
206
206
|
case 10:
|
|
207
207
|
case 13:
|
|
208
208
|
case 32:
|
|
209
|
-
f += jt(
|
|
209
|
+
f += jt(I);
|
|
210
210
|
break;
|
|
211
211
|
case 92:
|
|
212
212
|
f += Dt(X() - 1, 7);
|
|
@@ -215,74 +215,74 @@ function te(e, t, r, n, s, i, o, c, a) {
|
|
|
215
215
|
switch (U()) {
|
|
216
216
|
case 42:
|
|
217
217
|
case 47:
|
|
218
|
-
q(It(dt(
|
|
218
|
+
q(It(dt(E(), X()), t, r), c);
|
|
219
219
|
break;
|
|
220
220
|
default:
|
|
221
221
|
f += "/";
|
|
222
222
|
}
|
|
223
223
|
break;
|
|
224
224
|
case 123 * D:
|
|
225
|
-
|
|
225
|
+
o[M++] = v(f) * y;
|
|
226
226
|
case 125 * D:
|
|
227
227
|
case 59:
|
|
228
228
|
case 0:
|
|
229
|
-
switch (
|
|
229
|
+
switch (A) {
|
|
230
230
|
case 0:
|
|
231
231
|
case 125:
|
|
232
232
|
O = 0;
|
|
233
233
|
case 59 + u:
|
|
234
|
-
y == -1 && (f = j(f, /\f/g, "")),
|
|
234
|
+
y == -1 && (f = j(f, /\f/g, "")), h > 0 && v(f) - l && q(h > 32 ? pe(f + ";", n, r, l - 1) : pe(j(f, " ", "") + ";", n, r, l - 2), c);
|
|
235
235
|
break;
|
|
236
236
|
case 59:
|
|
237
237
|
f += ";";
|
|
238
238
|
default:
|
|
239
|
-
if (q(C = Te(f, t, r, M, u, s,
|
|
239
|
+
if (q(C = Te(f, t, r, M, u, s, o, S, _ = [], Y = [], l), i), A === 123)
|
|
240
240
|
if (u === 0)
|
|
241
|
-
te(f, t, C, C, _, i, l,
|
|
241
|
+
te(f, t, C, C, _, i, l, o, Y);
|
|
242
242
|
else
|
|
243
|
-
switch (d === 99 &&
|
|
243
|
+
switch (d === 99 && T(f, 3) === 110 ? 100 : d) {
|
|
244
244
|
case 100:
|
|
245
245
|
case 108:
|
|
246
246
|
case 109:
|
|
247
247
|
case 115:
|
|
248
|
-
te(e, C, C, n && q(Te(e, C, C, 0, 0, s,
|
|
248
|
+
te(e, C, C, n && q(Te(e, C, C, 0, 0, s, o, S, s, _ = [], l), Y), s, Y, l, o, n ? _ : Y);
|
|
249
249
|
break;
|
|
250
250
|
default:
|
|
251
|
-
te(f, C, C, C, [""], Y, 0,
|
|
251
|
+
te(f, C, C, C, [""], Y, 0, o, Y);
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
M = u =
|
|
254
|
+
M = u = h = 0, D = y = 1, S = f = "", l = a;
|
|
255
255
|
break;
|
|
256
256
|
case 58:
|
|
257
|
-
l = 1 + v(f),
|
|
257
|
+
l = 1 + v(f), h = I;
|
|
258
258
|
default:
|
|
259
259
|
if (D < 1) {
|
|
260
|
-
if (
|
|
260
|
+
if (A == 123)
|
|
261
261
|
--D;
|
|
262
|
-
else if (
|
|
262
|
+
else if (A == 125 && D++ == 0 && gt() == 125)
|
|
263
263
|
continue;
|
|
264
264
|
}
|
|
265
|
-
switch (f += se(
|
|
265
|
+
switch (f += se(A), A * D) {
|
|
266
266
|
case 38:
|
|
267
267
|
y = u > 0 ? 1 : (f += "\f", -1);
|
|
268
268
|
break;
|
|
269
269
|
case 44:
|
|
270
|
-
|
|
270
|
+
o[M++] = (v(f) - 1) * y, y = 1;
|
|
271
271
|
break;
|
|
272
272
|
case 64:
|
|
273
|
-
U() === 45 && (f += ee(
|
|
273
|
+
U() === 45 && (f += ee(E())), d = U(), u = l = v(S = f += ft(X())), A++;
|
|
274
274
|
break;
|
|
275
275
|
case 45:
|
|
276
|
-
|
|
276
|
+
I === 45 && v(f) == 2 && (D = 0);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
return i;
|
|
280
280
|
}
|
|
281
|
-
function Te(e, t, r, n, s, i, o, c,
|
|
282
|
-
for (var l = s - 1, d = s === 0 ? i : [""],
|
|
283
|
-
for (var y = 0,
|
|
284
|
-
(S = Ye(D > 0 ? d[y] + " " +
|
|
285
|
-
return oe(e, t, r, s === 0 ? ye :
|
|
281
|
+
function Te(e, t, r, n, s, i, a, o, c, M, u) {
|
|
282
|
+
for (var l = s - 1, d = s === 0 ? i : [""], h = ze(d), I = 0, D = 0, O = 0; I < n; ++I)
|
|
283
|
+
for (var y = 0, A = Z(e, l + 1, l = at(D = a[I])), S = e; y < h; ++y)
|
|
284
|
+
(S = Ye(D > 0 ? d[y] + " " + A : j(A, /&\f/g, d[y]))) && (c[O++] = S);
|
|
285
|
+
return oe(e, t, r, s === 0 ? ye : o, c, M, u);
|
|
286
286
|
}
|
|
287
287
|
function It(e, t, r) {
|
|
288
288
|
return oe(e, t, r, fe, se(lt()), Z(e, 2, -2), 0);
|
|
@@ -315,9 +315,9 @@ function zt(e, t, r, n) {
|
|
|
315
315
|
function ht(e) {
|
|
316
316
|
var t = ze(e);
|
|
317
317
|
return function(r, n, s, i) {
|
|
318
|
-
for (var
|
|
319
|
-
|
|
320
|
-
return
|
|
318
|
+
for (var a = "", o = 0; o < t; o++)
|
|
319
|
+
a += e[o](r, n, s, i) || "";
|
|
320
|
+
return a;
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function At(e) {
|
|
@@ -333,14 +333,14 @@ function Tt(e) {
|
|
|
333
333
|
}
|
|
334
334
|
var pt = function(t, r, n) {
|
|
335
335
|
for (var s = 0, i = 0; s = i, i = U(), s === 38 && i === 12 && (r[n] = 1), !G(i); )
|
|
336
|
-
|
|
337
|
-
return K(t,
|
|
336
|
+
E();
|
|
337
|
+
return K(t, m);
|
|
338
338
|
}, Ot = function(t, r) {
|
|
339
339
|
var n = -1, s = 44;
|
|
340
340
|
do
|
|
341
341
|
switch (G(s)) {
|
|
342
342
|
case 0:
|
|
343
|
-
s === 38 && U() === 12 && (r[n] = 1), t[n] += pt(
|
|
343
|
+
s === 38 && U() === 12 && (r[n] = 1), t[n] += pt(m - 1, r, n);
|
|
344
344
|
break;
|
|
345
345
|
case 2:
|
|
346
346
|
t[n] += ee(s);
|
|
@@ -353,11 +353,11 @@ var pt = function(t, r, n) {
|
|
|
353
353
|
default:
|
|
354
354
|
t[n] += se(s);
|
|
355
355
|
}
|
|
356
|
-
while (s =
|
|
356
|
+
while (s = E());
|
|
357
357
|
return t;
|
|
358
|
-
},
|
|
358
|
+
}, mt = function(t, r) {
|
|
359
359
|
return Ve(Ot(Re(t), r));
|
|
360
|
-
}, Oe = /* @__PURE__ */ new WeakMap(),
|
|
360
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), Et = function(t) {
|
|
361
361
|
if (!(t.type !== "rule" || !t.parent || // positive .length indicates that this rule contains pseudo
|
|
362
362
|
// negative .length indicates that this rule has been already prefixed
|
|
363
363
|
t.length < 1)) {
|
|
@@ -366,12 +366,12 @@ var pt = function(t, r, n) {
|
|
|
366
366
|
return;
|
|
367
367
|
if (!(t.props.length === 1 && r.charCodeAt(0) !== 58 && !Oe.get(n)) && !s) {
|
|
368
368
|
Oe.set(t, !0);
|
|
369
|
-
for (var i = [],
|
|
370
|
-
for (var u = 0; u <
|
|
371
|
-
t.props[M] = i[
|
|
369
|
+
for (var i = [], a = mt(r, i), o = n.props, c = 0, M = 0; c < a.length; c++)
|
|
370
|
+
for (var u = 0; u < o.length; u++, M++)
|
|
371
|
+
t.props[M] = i[c] ? a[c].replace(/&\f/g, o[u]) : o[u] + " " + a[c];
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
},
|
|
374
|
+
}, Lt = function(t) {
|
|
375
375
|
if (t.type === "decl") {
|
|
376
376
|
var r = t.value;
|
|
377
377
|
// charcode for l
|
|
@@ -385,11 +385,11 @@ var pt = function(t, r, n) {
|
|
|
385
385
|
if (!(r.type !== "rule" || t.compat)) {
|
|
386
386
|
var i = r.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
387
387
|
if (i) {
|
|
388
|
-
for (var
|
|
388
|
+
for (var a = !!r.parent, o = a ? r.parent.children : (
|
|
389
389
|
// global rule at the root level
|
|
390
390
|
s
|
|
391
|
-
),
|
|
392
|
-
var M = c
|
|
391
|
+
), c = o.length - 1; c >= 0; c--) {
|
|
392
|
+
var M = o[c];
|
|
393
393
|
if (M.line < r.line)
|
|
394
394
|
break;
|
|
395
395
|
if (M.column < r.column) {
|
|
@@ -411,10 +411,10 @@ var pt = function(t, r, n) {
|
|
|
411
411
|
if (!Pe(r[n]))
|
|
412
412
|
return !0;
|
|
413
413
|
return !1;
|
|
414
|
-
},
|
|
414
|
+
}, me = function(t) {
|
|
415
415
|
t.type = "", t.value = "", t.return = "", t.children = "", t.props = "";
|
|
416
416
|
}, Ct = function(t, r, n) {
|
|
417
|
-
Pe(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),
|
|
417
|
+
Pe(t) && (t.parent ? (console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."), me(t)) : St(r, n) && (console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."), me(t)));
|
|
418
418
|
};
|
|
419
419
|
function Fe(e, t) {
|
|
420
420
|
switch (Mt(e, t)) {
|
|
@@ -451,24 +451,24 @@ function Fe(e, t) {
|
|
|
451
451
|
case 4810:
|
|
452
452
|
case 6968:
|
|
453
453
|
case 2756:
|
|
454
|
-
return g + e + re + e +
|
|
454
|
+
return g + e + re + e + p + e + e;
|
|
455
455
|
case 6828:
|
|
456
456
|
case 4268:
|
|
457
|
-
return g + e +
|
|
457
|
+
return g + e + p + e + e;
|
|
458
458
|
case 6165:
|
|
459
|
-
return g + e +
|
|
459
|
+
return g + e + p + "flex-" + e + e;
|
|
460
460
|
case 5187:
|
|
461
|
-
return g + e + j(e, /(\w+).+(:[^]+)/, g + "box-$1$2" +
|
|
461
|
+
return g + e + j(e, /(\w+).+(:[^]+)/, g + "box-$1$2" + p + "flex-$1$2") + e;
|
|
462
462
|
case 5443:
|
|
463
|
-
return g + e +
|
|
463
|
+
return g + e + p + "flex-item-" + j(e, /flex-|-self/, "") + e;
|
|
464
464
|
case 4675:
|
|
465
|
-
return g + e +
|
|
465
|
+
return g + e + p + "flex-line-pack" + j(e, /align-content|flex-|-self/, "") + e;
|
|
466
466
|
case 5548:
|
|
467
|
-
return g + e +
|
|
467
|
+
return g + e + p + j(e, "shrink", "negative") + e;
|
|
468
468
|
case 5292:
|
|
469
|
-
return g + e +
|
|
469
|
+
return g + e + p + j(e, "basis", "preferred-size") + e;
|
|
470
470
|
case 6060:
|
|
471
|
-
return g + "box-" + j(e, "-grow", "") + g + e +
|
|
471
|
+
return g + "box-" + j(e, "-grow", "") + g + e + p + j(e, "grow", "positive") + e;
|
|
472
472
|
case 4554:
|
|
473
473
|
return g + j(e, /([^-])(transform)/g, "$1" + g + "$2") + e;
|
|
474
474
|
case 6187:
|
|
@@ -477,7 +477,7 @@ function Fe(e, t) {
|
|
|
477
477
|
case 3959:
|
|
478
478
|
return j(e, /(image-set\([^]*)/, g + "$1$`$1");
|
|
479
479
|
case 4968:
|
|
480
|
-
return j(j(e, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" +
|
|
480
|
+
return j(j(e, /(.+:)(flex-)?(.*)/, g + "box-pack:$3" + p + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + g + e + e;
|
|
481
481
|
case 4095:
|
|
482
482
|
case 3583:
|
|
483
483
|
case 4068:
|
|
@@ -496,37 +496,37 @@ function Fe(e, t) {
|
|
|
496
496
|
case 5021:
|
|
497
497
|
case 4765:
|
|
498
498
|
if (v(e) - 1 - t > 6)
|
|
499
|
-
switch (
|
|
499
|
+
switch (T(e, t + 1)) {
|
|
500
500
|
case 109:
|
|
501
|
-
if (
|
|
501
|
+
if (T(e, t + 4) !== 45)
|
|
502
502
|
break;
|
|
503
503
|
case 102:
|
|
504
|
-
return j(e, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" + re + (
|
|
504
|
+
return j(e, /(.+:)(.+)-([^]+)/, "$1" + g + "$2-$3$1" + re + (T(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
505
505
|
case 115:
|
|
506
506
|
return ~ue(e, "stretch") ? Fe(j(e, "stretch", "fill-available"), t) + e : e;
|
|
507
507
|
}
|
|
508
508
|
break;
|
|
509
509
|
case 4949:
|
|
510
|
-
if (
|
|
510
|
+
if (T(e, t + 1) !== 115)
|
|
511
511
|
break;
|
|
512
512
|
case 6444:
|
|
513
|
-
switch (
|
|
513
|
+
switch (T(e, v(e) - 3 - (~ue(e, "!important") && 10))) {
|
|
514
514
|
case 107:
|
|
515
515
|
return j(e, ":", ":" + g) + e;
|
|
516
516
|
case 101:
|
|
517
|
-
return j(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + g + (
|
|
517
|
+
return j(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + g + (T(e, 14) === 45 ? "inline-" : "") + "box$3$1" + g + "$2$3$1" + p + "$2box$3") + e;
|
|
518
518
|
}
|
|
519
519
|
break;
|
|
520
520
|
case 5936:
|
|
521
|
-
switch (
|
|
521
|
+
switch (T(e, t + 11)) {
|
|
522
522
|
case 114:
|
|
523
|
-
return g + e +
|
|
523
|
+
return g + e + p + j(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
524
524
|
case 108:
|
|
525
|
-
return g + e +
|
|
525
|
+
return g + e + p + j(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
526
526
|
case 45:
|
|
527
|
-
return g + e +
|
|
527
|
+
return g + e + p + j(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
528
528
|
}
|
|
529
|
-
return g + e +
|
|
529
|
+
return g + e + p + e + e;
|
|
530
530
|
}
|
|
531
531
|
return e;
|
|
532
532
|
}
|
|
@@ -555,7 +555,7 @@ var bt = function(t, r, n, s) {
|
|
|
555
555
|
}), B(t, {
|
|
556
556
|
props: [j(i, /:(plac\w+)/, ":" + re + "$1")]
|
|
557
557
|
}), B(t, {
|
|
558
|
-
props: [j(i, /:(plac\w+)/,
|
|
558
|
+
props: [j(i, /:(plac\w+)/, p + "input-$1")]
|
|
559
559
|
})], s);
|
|
560
560
|
}
|
|
561
561
|
return "";
|
|
@@ -576,21 +576,21 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
576
576
|
var s = t.stylisPlugins || vt;
|
|
577
577
|
if (process.env.NODE_ENV !== "production" && /[^a-z-]/.test(r))
|
|
578
578
|
throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + r + '" was passed');
|
|
579
|
-
var i = {},
|
|
580
|
-
|
|
579
|
+
var i = {}, a, o = [];
|
|
580
|
+
a = t.container || document.head, Array.prototype.forEach.call(
|
|
581
581
|
// this means we will ignore elements which don't have a space in them which
|
|
582
582
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
583
583
|
document.querySelectorAll('style[data-emotion^="' + r + ' "]'),
|
|
584
584
|
function(D) {
|
|
585
585
|
for (var O = D.getAttribute("data-emotion").split(" "), y = 1; y < O.length; y++)
|
|
586
586
|
i[O[y]] = !0;
|
|
587
|
-
|
|
587
|
+
o.push(D);
|
|
588
588
|
}
|
|
589
589
|
);
|
|
590
|
-
var
|
|
590
|
+
var c, M = [Et, Lt];
|
|
591
591
|
process.env.NODE_ENV !== "production" && M.push(kt({
|
|
592
592
|
get compat() {
|
|
593
|
-
return
|
|
593
|
+
return I.compat;
|
|
594
594
|
}
|
|
595
595
|
}), Ct);
|
|
596
596
|
{
|
|
@@ -598,22 +598,22 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
598
598
|
D.root || (D.return ? u.insert(D.return) : D.value && D.type !== fe && u.insert(D.value + "{}"));
|
|
599
599
|
} : At(function(D) {
|
|
600
600
|
u.insert(D);
|
|
601
|
-
})], d = ht(M.concat(s, l)),
|
|
601
|
+
})], d = ht(M.concat(s, l)), h = function(O) {
|
|
602
602
|
return R(yt(O), d);
|
|
603
603
|
};
|
|
604
|
-
|
|
605
|
-
u =
|
|
604
|
+
c = function(O, y, A, S) {
|
|
605
|
+
u = A, process.env.NODE_ENV !== "production" && y.map !== void 0 && (u = {
|
|
606
606
|
insert: function(Y) {
|
|
607
|
-
|
|
607
|
+
A.insert(Y + y.map);
|
|
608
608
|
}
|
|
609
|
-
}),
|
|
609
|
+
}), h(O ? O + "{" + y.styles + "}" : y.styles), S && (I.inserted[y.name] = !0);
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
var
|
|
612
|
+
var I = {
|
|
613
613
|
key: r,
|
|
614
614
|
sheet: new st({
|
|
615
615
|
key: r,
|
|
616
|
-
container:
|
|
616
|
+
container: a,
|
|
617
617
|
nonce: t.nonce,
|
|
618
618
|
speedy: t.speedy,
|
|
619
619
|
prepend: t.prepend,
|
|
@@ -622,9 +622,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
622
622
|
nonce: t.nonce,
|
|
623
623
|
inserted: i,
|
|
624
624
|
registered: {},
|
|
625
|
-
insert:
|
|
625
|
+
insert: c
|
|
626
626
|
};
|
|
627
|
-
return
|
|
627
|
+
return I.sheet.hydrate(o), I;
|
|
628
628
|
};
|
|
629
629
|
function Qt(e) {
|
|
630
630
|
for (var t = 0, r, n = 0, s = e.length; s >= 4; ++n, s -= 4)
|
|
@@ -693,14 +693,14 @@ var Yt = {
|
|
|
693
693
|
strokeMiterlimit: 1,
|
|
694
694
|
strokeOpacity: 1,
|
|
695
695
|
strokeWidth: 1
|
|
696
|
-
},
|
|
696
|
+
}, Ee = `You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
697
697
|
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
698
698
|
You can read more about this here:
|
|
699
699
|
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, $t = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", Rt = /[A-Z]|^ms/g, _e = /_EMO_([^_]+?)_([^]*?)_EMO_/g, he = function(t) {
|
|
700
700
|
return t.charCodeAt(1) === 45;
|
|
701
|
-
},
|
|
701
|
+
}, Le = function(t) {
|
|
702
702
|
return t != null && typeof t != "boolean";
|
|
703
|
-
},
|
|
703
|
+
}, ce = /* @__PURE__ */ Tt(function(e) {
|
|
704
704
|
return he(e) ? e : e.replace(Rt, "-$&").toLowerCase();
|
|
705
705
|
}), ne = function(t, r) {
|
|
706
706
|
switch (t) {
|
|
@@ -708,10 +708,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
|
|
|
708
708
|
case "animationName":
|
|
709
709
|
if (typeof r == "string")
|
|
710
710
|
return r.replace(_e, function(n, s, i) {
|
|
711
|
-
return
|
|
711
|
+
return L = {
|
|
712
712
|
name: s,
|
|
713
713
|
styles: i,
|
|
714
|
-
next:
|
|
714
|
+
next: L
|
|
715
715
|
}, s;
|
|
716
716
|
});
|
|
717
717
|
}
|
|
@@ -742,19 +742,19 @@ function J(e, t, r) {
|
|
|
742
742
|
return "";
|
|
743
743
|
case "object": {
|
|
744
744
|
if (r.anim === 1)
|
|
745
|
-
return
|
|
745
|
+
return L = {
|
|
746
746
|
name: r.name,
|
|
747
747
|
styles: r.styles,
|
|
748
|
-
next:
|
|
748
|
+
next: L
|
|
749
749
|
}, r.name;
|
|
750
750
|
if (r.styles !== void 0) {
|
|
751
751
|
var n = r.next;
|
|
752
752
|
if (n !== void 0)
|
|
753
753
|
for (; n !== void 0; )
|
|
754
|
-
|
|
754
|
+
L = {
|
|
755
755
|
name: n.name,
|
|
756
756
|
styles: n.styles,
|
|
757
|
-
next:
|
|
757
|
+
next: L
|
|
758
758
|
}, n = n.next;
|
|
759
759
|
var s = r.styles + ";";
|
|
760
760
|
return process.env.NODE_ENV !== "production" && r.map !== void 0 && (s += r.map), s;
|
|
@@ -763,24 +763,24 @@ function J(e, t, r) {
|
|
|
763
763
|
}
|
|
764
764
|
case "function": {
|
|
765
765
|
if (e !== void 0) {
|
|
766
|
-
var i =
|
|
767
|
-
return
|
|
766
|
+
var i = L, a = r(e);
|
|
767
|
+
return L = i, J(e, t, a);
|
|
768
768
|
} else
|
|
769
769
|
process.env.NODE_ENV !== "production" && console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
|
|
770
770
|
break;
|
|
771
771
|
}
|
|
772
772
|
case "string":
|
|
773
773
|
if (process.env.NODE_ENV !== "production") {
|
|
774
|
-
var
|
|
775
|
-
var
|
|
776
|
-
return
|
|
774
|
+
var o = [], c = r.replace(_e, function(u, l, d) {
|
|
775
|
+
var h = "animation" + o.length;
|
|
776
|
+
return o.push("const " + h + " = keyframes`" + d.replace(/^@keyframes animation-\w+/, "") + "`"), "${" + h + "}";
|
|
777
777
|
});
|
|
778
|
-
|
|
778
|
+
o.length && console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(o, ["`" + c + "`"]).join(`
|
|
779
779
|
`) + `
|
|
780
780
|
|
|
781
781
|
You should wrap it with \`css\` like this:
|
|
782
782
|
|
|
783
|
-
` + ("css`" +
|
|
783
|
+
` + ("css`" + c + "`"));
|
|
784
784
|
}
|
|
785
785
|
break;
|
|
786
786
|
}
|
|
@@ -796,25 +796,25 @@ function Wt(e, t, r) {
|
|
|
796
796
|
n += J(e, t, r[s]) + ";";
|
|
797
797
|
else
|
|
798
798
|
for (var i in r) {
|
|
799
|
-
var
|
|
800
|
-
if (typeof
|
|
801
|
-
t != null && t[
|
|
799
|
+
var a = r[i];
|
|
800
|
+
if (typeof a != "object")
|
|
801
|
+
t != null && t[a] !== void 0 ? n += i + "{" + t[a] + "}" : Le(a) && (n += ce(i) + ":" + ne(i, a) + ";");
|
|
802
802
|
else {
|
|
803
803
|
if (i === "NO_COMPONENT_SELECTOR" && process.env.NODE_ENV !== "production")
|
|
804
804
|
throw new Error(Be);
|
|
805
|
-
if (Array.isArray(
|
|
806
|
-
for (var
|
|
807
|
-
|
|
805
|
+
if (Array.isArray(a) && typeof a[0] == "string" && (t == null || t[a[0]] === void 0))
|
|
806
|
+
for (var o = 0; o < a.length; o++)
|
|
807
|
+
Le(a[o]) && (n += ce(i) + ":" + ne(i, a[o]) + ";");
|
|
808
808
|
else {
|
|
809
|
-
var
|
|
809
|
+
var c = J(e, t, a);
|
|
810
810
|
switch (i) {
|
|
811
811
|
case "animation":
|
|
812
812
|
case "animationName": {
|
|
813
|
-
n +=
|
|
813
|
+
n += ce(i) + ":" + c + ";";
|
|
814
814
|
break;
|
|
815
815
|
}
|
|
816
816
|
default:
|
|
817
|
-
process.env.NODE_ENV !== "production" && i === "undefined" && console.error($t), n += i + "{" +
|
|
817
|
+
process.env.NODE_ENV !== "production" && i === "undefined" && console.error($t), n += i + "{" + c + "}";
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
}
|
|
@@ -823,18 +823,18 @@ function Wt(e, t, r) {
|
|
|
823
823
|
}
|
|
824
824
|
var we = /label:\s*([^\s;\n{]+)\s*(;|$)/g, We;
|
|
825
825
|
process.env.NODE_ENV !== "production" && (We = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);
|
|
826
|
-
var
|
|
826
|
+
var L, Me = function(t, r, n) {
|
|
827
827
|
if (t.length === 1 && typeof t[0] == "object" && t[0] !== null && t[0].styles !== void 0)
|
|
828
828
|
return t[0];
|
|
829
829
|
var s = !0, i = "";
|
|
830
|
-
|
|
831
|
-
var
|
|
832
|
-
|
|
833
|
-
for (var
|
|
834
|
-
i += J(n, r, t[
|
|
835
|
-
var
|
|
830
|
+
L = void 0;
|
|
831
|
+
var a = t[0];
|
|
832
|
+
a == null || a.raw === void 0 ? (s = !1, i += J(n, r, a)) : (process.env.NODE_ENV !== "production" && a[0] === void 0 && console.error(Ee), i += a[0]);
|
|
833
|
+
for (var o = 1; o < t.length; o++)
|
|
834
|
+
i += J(n, r, t[o]), s && (process.env.NODE_ENV !== "production" && a[o] === void 0 && console.error(Ee), i += a[o]);
|
|
835
|
+
var c;
|
|
836
836
|
process.env.NODE_ENV !== "production" && (i = i.replace(We, function(d) {
|
|
837
|
-
return
|
|
837
|
+
return c = d, "";
|
|
838
838
|
})), we.lastIndex = 0;
|
|
839
839
|
for (var M = "", u; (u = we.exec(i)) !== null; )
|
|
840
840
|
M += "-" + // $FlowFixMe we know it's not null
|
|
@@ -843,15 +843,15 @@ var m, Me = function(t, r, n) {
|
|
|
843
843
|
return process.env.NODE_ENV !== "production" ? {
|
|
844
844
|
name: l,
|
|
845
845
|
styles: i,
|
|
846
|
-
map:
|
|
847
|
-
next:
|
|
846
|
+
map: c,
|
|
847
|
+
next: L,
|
|
848
848
|
toString: function() {
|
|
849
849
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
850
850
|
}
|
|
851
851
|
} : {
|
|
852
852
|
name: l,
|
|
853
853
|
styles: i,
|
|
854
|
-
next:
|
|
854
|
+
next: L
|
|
855
855
|
};
|
|
856
856
|
}, Zt = !0;
|
|
857
857
|
function Ze(e, t, r) {
|
|
@@ -892,18 +892,18 @@ function Se(e, t, r) {
|
|
|
892
892
|
}
|
|
893
893
|
var Ht = function(t) {
|
|
894
894
|
var r = Ut(t);
|
|
895
|
-
r.sheet.speedy = function(
|
|
895
|
+
r.sheet.speedy = function(o) {
|
|
896
896
|
if (process.env.NODE_ENV !== "production" && this.ctr !== 0)
|
|
897
897
|
throw new Error("speedy must be changed before any rules are inserted");
|
|
898
|
-
this.isSpeedy =
|
|
898
|
+
this.isSpeedy = o;
|
|
899
899
|
}, r.compat = !0;
|
|
900
900
|
var n = function() {
|
|
901
|
-
for (var
|
|
901
|
+
for (var c = arguments.length, M = new Array(c), u = 0; u < c; u++)
|
|
902
902
|
M[u] = arguments[u];
|
|
903
903
|
var l = Me(M, r.registered, void 0);
|
|
904
904
|
return Jt(r, l, !1), r.key + "-" + l.name;
|
|
905
905
|
}, s = function() {
|
|
906
|
-
for (var
|
|
906
|
+
for (var c = arguments.length, M = new Array(c), u = 0; u < c; u++)
|
|
907
907
|
M[u] = arguments[u];
|
|
908
908
|
var l = Me(M, r.registered), d = "animation-" + l.name;
|
|
909
909
|
return ke(r, {
|
|
@@ -911,22 +911,22 @@ var Ht = function(t) {
|
|
|
911
911
|
styles: "@keyframes " + d + "{" + l.styles + "}"
|
|
912
912
|
}), d;
|
|
913
913
|
}, i = function() {
|
|
914
|
-
for (var
|
|
914
|
+
for (var c = arguments.length, M = new Array(c), u = 0; u < c; u++)
|
|
915
915
|
M[u] = arguments[u];
|
|
916
916
|
var l = Me(M, r.registered);
|
|
917
917
|
ke(r, l);
|
|
918
|
-
},
|
|
919
|
-
for (var
|
|
918
|
+
}, a = function() {
|
|
919
|
+
for (var c = arguments.length, M = new Array(c), u = 0; u < c; u++)
|
|
920
920
|
M[u] = arguments[u];
|
|
921
921
|
return Se(r.registered, n, Kt(M));
|
|
922
922
|
};
|
|
923
923
|
return {
|
|
924
924
|
css: n,
|
|
925
|
-
cx:
|
|
925
|
+
cx: a,
|
|
926
926
|
injectGlobal: i,
|
|
927
927
|
keyframes: s,
|
|
928
|
-
hydrate: function(
|
|
929
|
-
|
|
928
|
+
hydrate: function(c) {
|
|
929
|
+
c.forEach(function(M) {
|
|
930
930
|
r.inserted[M] = !0;
|
|
931
931
|
});
|
|
932
932
|
},
|
|
@@ -952,8 +952,8 @@ var Ht = function(t) {
|
|
|
952
952
|
i = e(s);
|
|
953
953
|
else {
|
|
954
954
|
i = "";
|
|
955
|
-
for (var
|
|
956
|
-
s[
|
|
955
|
+
for (var a in s)
|
|
956
|
+
s[a] && a && (i && (i += " "), i += a);
|
|
957
957
|
}
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
@@ -1045,43 +1045,43 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1045
1045
|
}, He = ge({}), b = (e, t, r = "") => `${e === "light" ? "" : `.${e}`} ${r}${t.length && t !== "body" ? "." : ""}${t}`, Cr = (e) => {
|
|
1046
1046
|
const { mode: t } = Xt(), { children: r, theme: n } = e, s = H(() => n ? n[t] || W[t] || W.dark : W[t] || W.light, [t]);
|
|
1047
1047
|
return k(() => {
|
|
1048
|
-
const i = {},
|
|
1049
|
-
for (const
|
|
1050
|
-
i[b(
|
|
1051
|
-
backgroundColor: o
|
|
1052
|
-
color: o
|
|
1048
|
+
const i = {}, a = { ...W, ...n };
|
|
1049
|
+
for (const o of Object.keys(a)) {
|
|
1050
|
+
i[b(o, "body")] = {
|
|
1051
|
+
backgroundColor: a[o].basics.dark,
|
|
1052
|
+
color: a[o].basics.text
|
|
1053
1053
|
};
|
|
1054
|
-
for (const
|
|
1055
|
-
const M =
|
|
1056
|
-
i[b(
|
|
1057
|
-
color:
|
|
1054
|
+
for (const c of Object.keys(a[o])) {
|
|
1055
|
+
const M = c;
|
|
1056
|
+
i[b(o, c)] = {
|
|
1057
|
+
color: c === "basics" ? a[o][M].text : a[o][M].default
|
|
1058
1058
|
};
|
|
1059
1059
|
const u = {
|
|
1060
|
-
color: o
|
|
1061
|
-
backgroundColor: `${o
|
|
1060
|
+
color: a[o][M].light,
|
|
1061
|
+
backgroundColor: `${a[o][M].light}2f`
|
|
1062
1062
|
};
|
|
1063
|
-
i[b(
|
|
1063
|
+
i[b(o, c, ".button:hover")] = u, i[b(o, c, "button:hover")] = u;
|
|
1064
1064
|
const l = {
|
|
1065
|
-
color: o
|
|
1066
|
-
backgroundColor: o
|
|
1065
|
+
color: a[o][M].text,
|
|
1066
|
+
backgroundColor: a[o][M].default
|
|
1067
1067
|
};
|
|
1068
|
-
i[b(
|
|
1068
|
+
i[b(o, c, ".filled")] = l;
|
|
1069
1069
|
const d = {
|
|
1070
|
-
color: o
|
|
1071
|
-
backgroundColor: o
|
|
1070
|
+
color: a[o][M].text,
|
|
1071
|
+
backgroundColor: a[o][M].light
|
|
1072
1072
|
};
|
|
1073
|
-
i[b(
|
|
1074
|
-
const
|
|
1075
|
-
color: o
|
|
1076
|
-
borderColor: o
|
|
1073
|
+
i[b(o, c, ".button.filled:hover")] = d, i[b(o, c, "button.filled:hover")] = d;
|
|
1074
|
+
const h = {
|
|
1075
|
+
color: a[o][M].default,
|
|
1076
|
+
borderColor: a[o][M].default
|
|
1077
1077
|
};
|
|
1078
|
-
i[b(
|
|
1079
|
-
const
|
|
1080
|
-
color: o
|
|
1081
|
-
borderColor: o
|
|
1082
|
-
backgroundColor: o
|
|
1078
|
+
i[b(o, c, ".outlined")] = h;
|
|
1079
|
+
const I = {
|
|
1080
|
+
color: a[o][M].text,
|
|
1081
|
+
borderColor: a[o][M].light,
|
|
1082
|
+
backgroundColor: a[o][M].light
|
|
1083
1083
|
};
|
|
1084
|
-
i[b(
|
|
1084
|
+
i[b(o, c, ".button.outlined:hover")] = I, i[b(o, c, "button.outlined:hover")] = I;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
qt({ ...i });
|
|
@@ -1118,14 +1118,14 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
return (s[r] || s.text)(), { root: $({ ...n }) };
|
|
1120
1120
|
}, nr = P(function(e, t) {
|
|
1121
|
-
const { color: r = "primary", type: n = "button", shape: s = "text", ...i } = e, { colors:
|
|
1121
|
+
const { color: r = "primary", type: n = "button", shape: s = "text", ...i } = e, { colors: a } = Q(), o = rr(a, r, s);
|
|
1122
1122
|
return /* @__PURE__ */ N(
|
|
1123
1123
|
"button",
|
|
1124
1124
|
{
|
|
1125
1125
|
type: n,
|
|
1126
1126
|
ref: t,
|
|
1127
1127
|
...i,
|
|
1128
|
-
className: `button ${s} ${
|
|
1128
|
+
className: `button ${s} ${o.root} ${i.className}`,
|
|
1129
1129
|
children: i.children
|
|
1130
1130
|
}
|
|
1131
1131
|
);
|
|
@@ -1156,64 +1156,70 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1156
1156
|
}, or = P(function(e, t) {
|
|
1157
1157
|
const {
|
|
1158
1158
|
helperText: r = "",
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1159
|
+
helperTextClassName: n = "basics",
|
|
1160
|
+
orientation: s = "column",
|
|
1161
|
+
color: i = "basics",
|
|
1162
|
+
labelClassName: a = "basics",
|
|
1163
|
+
label: o,
|
|
1164
|
+
...c
|
|
1165
|
+
} = e, { colors: M } = Q(), u = Ae(M, i);
|
|
1166
|
+
return /* @__PURE__ */ x("div", { className: `input-control ${s}`, children: [
|
|
1167
|
+
/* @__PURE__ */ N("label", { className: a, htmlFor: e.id, children: o }),
|
|
1166
1168
|
/* @__PURE__ */ N(
|
|
1167
1169
|
"textarea",
|
|
1168
1170
|
{
|
|
1169
|
-
...
|
|
1170
|
-
className: `${
|
|
1171
|
+
...c,
|
|
1172
|
+
className: `${u.input} ${c.className ?? ""}`,
|
|
1171
1173
|
ref: t
|
|
1172
1174
|
}
|
|
1173
1175
|
),
|
|
1174
|
-
r && r.length ? /* @__PURE__ */ N("p", { className:
|
|
1176
|
+
r && r.length ? /* @__PURE__ */ N("p", { className: n, children: r }) : null
|
|
1175
1177
|
] });
|
|
1176
|
-
}), br = or,
|
|
1178
|
+
}), br = or, ar = P(function(e, t) {
|
|
1177
1179
|
const {
|
|
1178
1180
|
helperText: r = "",
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1181
|
+
helperTextClassName: n = "basics",
|
|
1182
|
+
orientation: s = "column",
|
|
1183
|
+
color: i = "basics",
|
|
1184
|
+
leftComponent: a,
|
|
1182
1185
|
rightComponent: o,
|
|
1183
1186
|
label: c,
|
|
1184
|
-
|
|
1185
|
-
|
|
1187
|
+
labelClassName: M = "basics",
|
|
1188
|
+
...u
|
|
1189
|
+
} = e, { colors: l } = Q(), d = Ae(l, i), h = H(
|
|
1186
1190
|
() => /* @__PURE__ */ N(
|
|
1187
1191
|
"select",
|
|
1188
1192
|
{
|
|
1189
|
-
...
|
|
1193
|
+
...u,
|
|
1190
1194
|
ref: t,
|
|
1191
|
-
className: `${
|
|
1192
|
-
children:
|
|
1195
|
+
className: `${a ? "s-no-padding-left" : ""} ${o ? "s-no-padding-right" : ""} ${d.input} ${u.className ?? ""}`,
|
|
1196
|
+
children: u.children
|
|
1193
1197
|
}
|
|
1194
1198
|
),
|
|
1195
|
-
[
|
|
1199
|
+
[a, o, u, t, d]
|
|
1196
1200
|
);
|
|
1197
|
-
return /* @__PURE__ */ x("div", { className: `input-control ${
|
|
1198
|
-
/* @__PURE__ */ N("label", { className:
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1201
|
+
return /* @__PURE__ */ x("div", { className: `input-control ${s}`, children: [
|
|
1202
|
+
/* @__PURE__ */ N("label", { className: M, htmlFor: e.id, children: c }),
|
|
1203
|
+
a || o ? /* @__PURE__ */ x("div", { className: `sub ${d.input}`, children: [
|
|
1204
|
+
a && a !== null ? /* @__PURE__ */ N("div", { children: a }) : null,
|
|
1205
|
+
h,
|
|
1202
1206
|
o && o !== null ? /* @__PURE__ */ N("div", { children: o }) : null
|
|
1203
|
-
] }) :
|
|
1204
|
-
r && r.length ? /* @__PURE__ */ N("p", { className:
|
|
1207
|
+
] }) : h,
|
|
1208
|
+
r && r.length ? /* @__PURE__ */ N("p", { className: n, children: r }) : null
|
|
1205
1209
|
] });
|
|
1206
|
-
}), vr =
|
|
1210
|
+
}), vr = ar, cr = P(function(e, t) {
|
|
1207
1211
|
const {
|
|
1208
1212
|
helperText: r = "",
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1213
|
+
helperTextClassName: n = "basics",
|
|
1214
|
+
orientation: s = "column",
|
|
1215
|
+
color: i = "basics",
|
|
1216
|
+
labelClassName: a = "basics",
|
|
1217
|
+
leftComponent: o,
|
|
1218
|
+
rightComponent: c,
|
|
1219
|
+
label: M,
|
|
1220
|
+
type: u = "text",
|
|
1221
|
+
...l
|
|
1222
|
+
} = e, d = H(() => [
|
|
1217
1223
|
"date",
|
|
1218
1224
|
"datetime-local",
|
|
1219
1225
|
"email",
|
|
@@ -1223,33 +1229,33 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1223
1229
|
"tel",
|
|
1224
1230
|
"time",
|
|
1225
1231
|
"url"
|
|
1226
|
-
].includes(
|
|
1227
|
-
return /* @__PURE__ */ x("div", { className: `input-control ${
|
|
1228
|
-
/* @__PURE__ */ N("label", { className:
|
|
1229
|
-
|
|
1230
|
-
|
|
1232
|
+
].includes(u) ? u : "text", [u]), { colors: h } = Q(), I = Ae(h, i);
|
|
1233
|
+
return /* @__PURE__ */ x("div", { className: `input-control ${s}`, children: [
|
|
1234
|
+
/* @__PURE__ */ N("label", { className: a, htmlFor: e.id, children: M }),
|
|
1235
|
+
o || c ? /* @__PURE__ */ x("div", { className: `sub ${I.input}`, children: [
|
|
1236
|
+
o && o !== null ? /* @__PURE__ */ N("div", { className: "", children: o }) : null,
|
|
1231
1237
|
/* @__PURE__ */ N(
|
|
1232
1238
|
"input",
|
|
1233
1239
|
{
|
|
1234
|
-
...
|
|
1235
|
-
type:
|
|
1240
|
+
...l,
|
|
1241
|
+
type: d,
|
|
1236
1242
|
ref: t,
|
|
1237
|
-
className: `${
|
|
1243
|
+
className: `${o ? "s-small-padding-left" : ""} ${c ? "s-small-padding-right" : ""} ${I.input} ${l.className ?? ""}`
|
|
1238
1244
|
}
|
|
1239
1245
|
),
|
|
1240
|
-
|
|
1246
|
+
c && c !== null ? /* @__PURE__ */ N("div", { children: c }) : null
|
|
1241
1247
|
] }) : /* @__PURE__ */ N(
|
|
1242
1248
|
"input",
|
|
1243
1249
|
{
|
|
1244
|
-
...
|
|
1245
|
-
type:
|
|
1246
|
-
className: `${
|
|
1250
|
+
...l,
|
|
1251
|
+
type: u,
|
|
1252
|
+
className: `${I.input} ${l.className ?? ""}`,
|
|
1247
1253
|
ref: t
|
|
1248
1254
|
}
|
|
1249
1255
|
),
|
|
1250
|
-
r && r.length ? /* @__PURE__ */ N("p", { className:
|
|
1256
|
+
r && r.length ? /* @__PURE__ */ N("p", { className: n, children: r }) : null
|
|
1251
1257
|
] });
|
|
1252
|
-
}), Ur =
|
|
1258
|
+
}), Ur = cr, Mr = (e, t, r) => {
|
|
1253
1259
|
const n = (s) => ({
|
|
1254
1260
|
backgroundColor: e[s].default,
|
|
1255
1261
|
"& .ball": {
|
|
@@ -1268,20 +1274,20 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1268
1274
|
value: n = !1,
|
|
1269
1275
|
onChange: s,
|
|
1270
1276
|
activeColor: i = "primary",
|
|
1271
|
-
inactiveColor:
|
|
1272
|
-
id:
|
|
1273
|
-
className:
|
|
1274
|
-
} = e, { colors: M } = Q(), u = Mr(M, i,
|
|
1277
|
+
inactiveColor: a = "secondary",
|
|
1278
|
+
id: o,
|
|
1279
|
+
className: c
|
|
1280
|
+
} = e, { colors: M } = Q(), u = Mr(M, i, a);
|
|
1275
1281
|
return /* @__PURE__ */ x(
|
|
1276
1282
|
"div",
|
|
1277
1283
|
{
|
|
1278
|
-
className: `switcher-root ${u.root} ${
|
|
1284
|
+
className: `switcher-root ${u.root} ${c}`,
|
|
1279
1285
|
onClick: s,
|
|
1280
1286
|
children: [
|
|
1281
1287
|
/* @__PURE__ */ N(
|
|
1282
1288
|
"input",
|
|
1283
1289
|
{
|
|
1284
|
-
id:
|
|
1290
|
+
id: o,
|
|
1285
1291
|
ref: t,
|
|
1286
1292
|
checked: n,
|
|
1287
1293
|
onChange: s,
|
|
@@ -1327,12 +1333,12 @@ const Je = ge({}), Sr = (e) => {
|
|
|
1327
1333
|
})
|
|
1328
1334
|
});
|
|
1329
1335
|
function $r(e) {
|
|
1330
|
-
const { container: t = {}, ...r } = e, [n, s] = w(!1), { colors: i } = Q(),
|
|
1336
|
+
const { container: t = {}, ...r } = e, [n, s] = w(!1), { colors: i } = Q(), a = jr(i);
|
|
1331
1337
|
return /* @__PURE__ */ N(
|
|
1332
1338
|
"div",
|
|
1333
1339
|
{
|
|
1334
1340
|
...t,
|
|
1335
|
-
className: `${n ? null : `box ${
|
|
1341
|
+
className: `${n ? null : `box ${a.root}`} ${t.className}`,
|
|
1336
1342
|
children: /* @__PURE__ */ N("img", { onLoad: () => s(!0), ...r })
|
|
1337
1343
|
}
|
|
1338
1344
|
);
|
|
@@ -1356,15 +1362,15 @@ function dr(e) {
|
|
|
1356
1362
|
delay: r = 100,
|
|
1357
1363
|
animation: n = "appear",
|
|
1358
1364
|
onVisible: s = !1
|
|
1359
|
-
} = e, { elementRef: i, isElementInViewport:
|
|
1365
|
+
} = e, { elementRef: i, isElementInViewport: a } = Dr(), [o, c] = w(s !== !0), [M, u] = w(!1);
|
|
1360
1366
|
return k(() => {
|
|
1361
1367
|
const l = setTimeout(() => {
|
|
1362
|
-
|
|
1368
|
+
o && u(!0);
|
|
1363
1369
|
}, r);
|
|
1364
1370
|
return () => clearTimeout(l);
|
|
1365
|
-
}, [r,
|
|
1366
|
-
!
|
|
1367
|
-
}, [
|
|
1371
|
+
}, [r, o]), k(() => {
|
|
1372
|
+
!o && a && c(!0);
|
|
1373
|
+
}, [a]), /* @__PURE__ */ N("div", { ref: i, className: M && o ? n : "invisible", children: t });
|
|
1368
1374
|
}
|
|
1369
1375
|
const Xe = tt(
|
|
1370
1376
|
(e) => /* @__PURE__ */ N(dr, { ...e }),
|
|
@@ -1387,15 +1393,15 @@ const Rr = Xe, yr = (e, t) => {
|
|
|
1387
1393
|
};
|
|
1388
1394
|
};
|
|
1389
1395
|
function Vr(e) {
|
|
1390
|
-
const { closeProps: t } = e, { notification: r, setNotification: n } = gr(), [s, i] = w(!1), [
|
|
1396
|
+
const { closeProps: t } = e, { notification: r, setNotification: n } = gr(), [s, i] = w(!1), [a, o] = w(!1);
|
|
1391
1397
|
k(() => {
|
|
1392
|
-
r.visible && (i(!0),
|
|
1398
|
+
r.visible && (i(!0), o(!0), setTimeout(() => {
|
|
1393
1399
|
n({ type: "hide" });
|
|
1394
1400
|
}, 6e3));
|
|
1395
1401
|
}, [r, n]);
|
|
1396
|
-
const
|
|
1397
|
-
s && i(!1),
|
|
1398
|
-
}, [s,
|
|
1402
|
+
const c = je(() => {
|
|
1403
|
+
s && i(!1), a && setTimeout(() => o(!1), 400), n({ type: "hide" });
|
|
1404
|
+
}, [s, a, n]), M = H(() => {
|
|
1399
1405
|
switch (r.type) {
|
|
1400
1406
|
case "info":
|
|
1401
1407
|
return "info";
|
|
@@ -1407,16 +1413,16 @@ function Vr(e) {
|
|
|
1407
1413
|
return "error";
|
|
1408
1414
|
}
|
|
1409
1415
|
}, [r]), u = de(null);
|
|
1410
|
-
k(() => (
|
|
1411
|
-
window.removeEventListener("click",
|
|
1412
|
-
}), [
|
|
1416
|
+
k(() => (a ? window.addEventListener("click", c) : window.removeEventListener("click", c), () => {
|
|
1417
|
+
window.removeEventListener("click", c);
|
|
1418
|
+
}), [a, u, c]);
|
|
1413
1419
|
const { colors: l } = Q(), d = yr(l, M);
|
|
1414
1420
|
return /* @__PURE__ */ N(
|
|
1415
1421
|
"div",
|
|
1416
1422
|
{
|
|
1417
1423
|
ref: u,
|
|
1418
1424
|
className: `notification-root ${d.root} ${s ? "appear" : "disappear"}`,
|
|
1419
|
-
children:
|
|
1425
|
+
children: a ? /* @__PURE__ */ x("div", { className: "notification", children: [
|
|
1420
1426
|
/* @__PURE__ */ N(
|
|
1421
1427
|
ir,
|
|
1422
1428
|
{
|
|
@@ -1433,7 +1439,7 @@ function Vr(e) {
|
|
|
1433
1439
|
),
|
|
1434
1440
|
ref: null,
|
|
1435
1441
|
color: "basics",
|
|
1436
|
-
onClick:
|
|
1442
|
+
onClick: c,
|
|
1437
1443
|
className: `notification-close-button ${t == null ? void 0 : t.className}`
|
|
1438
1444
|
}
|
|
1439
1445
|
),
|
|
@@ -1456,8 +1462,8 @@ const Ir = (e, t, r) => {
|
|
|
1456
1462
|
loaderClass: n = "",
|
|
1457
1463
|
strokeWidth: s = "4",
|
|
1458
1464
|
...i
|
|
1459
|
-
} = e, { colors:
|
|
1460
|
-
return /* @__PURE__ */ N("div", { ...i, className: `loading ${
|
|
1465
|
+
} = e, { colors: a } = Q(), o = Ir(a, t, r);
|
|
1466
|
+
return /* @__PURE__ */ N("div", { ...i, className: `loading ${o.root} ${i.className}`, children: /* @__PURE__ */ N("div", { className: "loader-container", children: /* @__PURE__ */ N("div", { className: `loader ${n}`, children: /* @__PURE__ */ N("svg", { className: "circular", viewBox: "25 25 50 50", children: /* @__PURE__ */ N(
|
|
1461
1467
|
"circle",
|
|
1462
1468
|
{
|
|
1463
1469
|
className: "path",
|
|
@@ -1485,7 +1491,7 @@ const Ir = (e, t, r) => {
|
|
|
1485
1491
|
};
|
|
1486
1492
|
};
|
|
1487
1493
|
function Pr(e) {
|
|
1488
|
-
const { color: t = "primary", logo: r, logoClass: n, appName: s, visible: i = !0 } = e, { colors:
|
|
1494
|
+
const { color: t = "primary", logo: r, logoClass: n, appName: s, visible: i = !0 } = e, { colors: a } = Q(), o = Ar(a, t), [c, M] = w(!1);
|
|
1489
1495
|
k(() => {
|
|
1490
1496
|
setTimeout(() => M(!0), 2500);
|
|
1491
1497
|
}, []);
|
|
@@ -1495,7 +1501,7 @@ function Pr(e) {
|
|
|
1495
1501
|
}, [i]), u ? /* @__PURE__ */ x(
|
|
1496
1502
|
"div",
|
|
1497
1503
|
{
|
|
1498
|
-
className: `splash-screen ${
|
|
1504
|
+
className: `splash-screen ${o.root} ${i ? "splash-loading-show " : "splash-loading-hide"}`,
|
|
1499
1505
|
children: [
|
|
1500
1506
|
/* @__PURE__ */ x("div", { className: "logo-container", children: [
|
|
1501
1507
|
typeof r == "string" ? /* @__PURE__ */ N(
|
|
@@ -1508,7 +1514,7 @@ function Pr(e) {
|
|
|
1508
1514
|
/* @__PURE__ */ N(
|
|
1509
1515
|
"div",
|
|
1510
1516
|
{
|
|
1511
|
-
className: `splash-loading ${
|
|
1517
|
+
className: `splash-loading ${c ? "splash-loading-show" : "splash-loading-hide"} pointer-events-none`,
|
|
1512
1518
|
children: /* @__PURE__ */ N(
|
|
1513
1519
|
hr,
|
|
1514
1520
|
{
|
|
@@ -1542,9 +1548,9 @@ const Tr = (e) => ({
|
|
|
1542
1548
|
const t = de(null), { colors: r } = Q(), n = Tr(r), {
|
|
1543
1549
|
onRetry: s = () => window.location.reload(),
|
|
1544
1550
|
className: i = "",
|
|
1545
|
-
title:
|
|
1546
|
-
text:
|
|
1547
|
-
button:
|
|
1551
|
+
title: a = "Something went wrong",
|
|
1552
|
+
text: o,
|
|
1553
|
+
button: c = "Try again",
|
|
1548
1554
|
buttonProps: M
|
|
1549
1555
|
} = e;
|
|
1550
1556
|
return /* @__PURE__ */ x("div", { role: "alert", className: `error-root ${n.root} ${i}`, children: [
|
|
@@ -1557,8 +1563,8 @@ const Tr = (e) => ({
|
|
|
1557
1563
|
children: /* @__PURE__ */ N("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z" })
|
|
1558
1564
|
}
|
|
1559
1565
|
),
|
|
1560
|
-
/* @__PURE__ */ N("p", { className: "s-error-title", children:
|
|
1561
|
-
/* @__PURE__ */ N("pre", { className: "s-error-body", children:
|
|
1566
|
+
/* @__PURE__ */ N("p", { className: "s-error-title", children: a }),
|
|
1567
|
+
/* @__PURE__ */ N("pre", { className: "s-error-body", children: o }),
|
|
1562
1568
|
s ? /* @__PURE__ */ N(
|
|
1563
1569
|
Ke,
|
|
1564
1570
|
{
|
|
@@ -1569,7 +1575,7 @@ const Tr = (e) => ({
|
|
|
1569
1575
|
"aria-label": "click to reload",
|
|
1570
1576
|
...M,
|
|
1571
1577
|
ref: t,
|
|
1572
|
-
children:
|
|
1578
|
+
children: c
|
|
1573
1579
|
}
|
|
1574
1580
|
) : null
|
|
1575
1581
|
] });
|
|
@@ -1582,21 +1588,21 @@ function le(e, t) {
|
|
|
1582
1588
|
function Or(e, t) {
|
|
1583
1589
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, le(e, t);
|
|
1584
1590
|
}
|
|
1585
|
-
var
|
|
1591
|
+
var mr = function(t, r) {
|
|
1586
1592
|
return t === void 0 && (t = []), r === void 0 && (r = []), t.length !== r.length || t.some(function(n, s) {
|
|
1587
1593
|
return !Object.is(n, r[s]);
|
|
1588
1594
|
});
|
|
1589
1595
|
}, Ue = {
|
|
1590
1596
|
error: null
|
|
1591
|
-
},
|
|
1597
|
+
}, Er = /* @__PURE__ */ function(e) {
|
|
1592
1598
|
Or(t, e);
|
|
1593
1599
|
function t() {
|
|
1594
|
-
for (var n, s = arguments.length, i = new Array(s),
|
|
1595
|
-
i[
|
|
1600
|
+
for (var n, s = arguments.length, i = new Array(s), a = 0; a < s; a++)
|
|
1601
|
+
i[a] = arguments[a];
|
|
1596
1602
|
return n = e.call.apply(e, [this].concat(i)) || this, n.state = Ue, n.resetErrorBoundary = function() {
|
|
1597
|
-
for (var
|
|
1603
|
+
for (var o, c = arguments.length, M = new Array(c), u = 0; u < c; u++)
|
|
1598
1604
|
M[u] = arguments[u];
|
|
1599
|
-
n.props.onReset == null || (
|
|
1605
|
+
n.props.onReset == null || (o = n.props).onReset.apply(o, M), n.reset();
|
|
1600
1606
|
}, n;
|
|
1601
1607
|
}
|
|
1602
1608
|
t.getDerivedStateFromError = function(s) {
|
|
@@ -1608,39 +1614,39 @@ var Er = function(t, r) {
|
|
|
1608
1614
|
return r.reset = function() {
|
|
1609
1615
|
this.setState(Ue);
|
|
1610
1616
|
}, r.componentDidCatch = function(s, i) {
|
|
1611
|
-
var
|
|
1612
|
-
(
|
|
1617
|
+
var a, o;
|
|
1618
|
+
(a = (o = this.props).onError) == null || a.call(o, s, i);
|
|
1613
1619
|
}, r.componentDidUpdate = function(s, i) {
|
|
1614
|
-
var
|
|
1615
|
-
if (
|
|
1616
|
-
var
|
|
1617
|
-
(
|
|
1620
|
+
var a = this.state.error, o = this.props.resetKeys;
|
|
1621
|
+
if (a !== null && i.error !== null && mr(s.resetKeys, o)) {
|
|
1622
|
+
var c, M;
|
|
1623
|
+
(c = (M = this.props).onResetKeysChange) == null || c.call(M, s.resetKeys, o), this.reset();
|
|
1618
1624
|
}
|
|
1619
1625
|
}, r.render = function() {
|
|
1620
|
-
var s = this.state.error, i = this.props,
|
|
1626
|
+
var s = this.state.error, i = this.props, a = i.fallbackRender, o = i.FallbackComponent, c = i.fallback;
|
|
1621
1627
|
if (s !== null) {
|
|
1622
1628
|
var M = {
|
|
1623
1629
|
error: s,
|
|
1624
1630
|
resetErrorBoundary: this.resetErrorBoundary
|
|
1625
1631
|
};
|
|
1626
|
-
if (/* @__PURE__ */
|
|
1627
|
-
return
|
|
1628
|
-
if (typeof
|
|
1629
|
-
return
|
|
1630
|
-
if (
|
|
1631
|
-
return /* @__PURE__ */
|
|
1632
|
+
if (/* @__PURE__ */ ae.isValidElement(c))
|
|
1633
|
+
return c;
|
|
1634
|
+
if (typeof a == "function")
|
|
1635
|
+
return a(M);
|
|
1636
|
+
if (o)
|
|
1637
|
+
return /* @__PURE__ */ ae.createElement(o, M);
|
|
1632
1638
|
throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop");
|
|
1633
1639
|
}
|
|
1634
1640
|
return this.props.children;
|
|
1635
1641
|
}, t;
|
|
1636
|
-
}(
|
|
1637
|
-
const
|
|
1642
|
+
}(ae.Component);
|
|
1643
|
+
const Lr = (e) => {
|
|
1638
1644
|
const { error: t, resetErrorBoundary: r } = e;
|
|
1639
1645
|
return /* @__PURE__ */ N(pr, { onRetry: r, text: t.message });
|
|
1640
1646
|
};
|
|
1641
1647
|
function Fr(e) {
|
|
1642
1648
|
const { children: t, onRetry: r } = e;
|
|
1643
|
-
return /* @__PURE__ */ N(
|
|
1649
|
+
return /* @__PURE__ */ N(Er, { FallbackComponent: Lr, onReset: r, children: t });
|
|
1644
1650
|
}
|
|
1645
1651
|
const _r = (e) => {
|
|
1646
1652
|
const [t, r] = w(!1);
|