@rhavenside/custom-ui-library 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +7 -7
- package/dist/index.esm.js +228 -227
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import Pe, { useState as ne, useRef as ce, useEffect as Re } from "react";
|
|
2
|
+
var ze = { exports: {} }, me = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,7 +13,7 @@ var Qe;
|
|
|
13
13
|
function Nr() {
|
|
14
14
|
if (Qe) return me;
|
|
15
15
|
Qe = 1;
|
|
16
|
-
var a =
|
|
16
|
+
var a = Pe, n = Symbol.for("react.element"), d = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, p = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function i(c, o, v) {
|
|
18
18
|
var h, l = {}, x = null, f = null;
|
|
19
19
|
v !== void 0 && (x = "" + v), o.key !== void 0 && (x = "" + o.key), o.ref !== void 0 && (f = o.ref);
|
|
@@ -36,7 +36,7 @@ var ge = {};
|
|
|
36
36
|
var er;
|
|
37
37
|
function Ir() {
|
|
38
38
|
return er || (er = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var a =
|
|
39
|
+
var a = Pe, n = Symbol.for("react.element"), d = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), w = Symbol.iterator, b = "@@iterator";
|
|
40
40
|
function $(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
@@ -46,14 +46,14 @@ function Ir() {
|
|
|
46
46
|
var O = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
47
|
function k(e) {
|
|
48
48
|
{
|
|
49
|
-
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0),
|
|
50
|
-
s[
|
|
49
|
+
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), g = 1; g < t; g++)
|
|
50
|
+
s[g - 1] = arguments[g];
|
|
51
51
|
D("error", e, s);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function D(e, t, s) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
56
|
+
var g = O.ReactDebugCurrentFrame, E = g.getStackAddendum();
|
|
57
57
|
E !== "" && (t += "%s", s = s.concat([E]));
|
|
58
58
|
var N = s.map(function(y) {
|
|
59
59
|
return String(y);
|
|
@@ -61,26 +61,26 @@ function Ir() {
|
|
|
61
61
|
N.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, N);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === u || e === _ ||
|
|
64
|
+
var A = !1, P = !1, C = !1, R = !1, z = !1, J;
|
|
65
|
+
J = Symbol.for("react.module.reference");
|
|
66
|
+
function L(e) {
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === _ || z || e === p || e === v || e === h || R || e === f || A || P || C || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === l || e.$$typeof === i || e.$$typeof === c || e.$$typeof === o || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === J || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function te(e, t, s) {
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
74
|
+
var g = e.displayName;
|
|
75
|
+
if (g)
|
|
76
|
+
return g;
|
|
77
77
|
var E = t.displayName || t.name || "";
|
|
78
78
|
return E !== "" ? s + "(" + E + ")" : s;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function G(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function m(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
86
|
if (typeof e.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -105,19 +105,19 @@ function Ir() {
|
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
106
|
case c:
|
|
107
107
|
var t = e;
|
|
108
|
-
return
|
|
108
|
+
return G(t) + ".Consumer";
|
|
109
109
|
case i:
|
|
110
110
|
var s = e;
|
|
111
|
-
return
|
|
111
|
+
return G(s._context) + ".Provider";
|
|
112
112
|
case o:
|
|
113
113
|
return te(e, e.render, "ForwardRef");
|
|
114
114
|
case l:
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var g = e.displayName || null;
|
|
116
|
+
return g !== null ? g : m(e.type) || "Memo";
|
|
117
117
|
case x: {
|
|
118
118
|
var E = e, N = E._payload, y = E._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return m(y(N));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function Ir() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var I = Object.assign, q = 0, M, de, ve, fe, X,
|
|
128
|
+
var I = Object.assign, q = 0, M, de, ve, xe, fe, X, Be;
|
|
129
129
|
function Fe() {
|
|
130
130
|
}
|
|
131
131
|
Fe.__reactDisabledLog = !0;
|
|
132
132
|
function rr() {
|
|
133
133
|
{
|
|
134
134
|
if (q === 0) {
|
|
135
|
-
M = console.log, de = console.info, ve = console.warn,
|
|
135
|
+
M = console.log, de = console.info, ve = console.warn, xe = console.error, fe = console.group, X = console.groupCollapsed, Be = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -171,13 +171,13 @@ function Ir() {
|
|
|
171
171
|
value: ve
|
|
172
172
|
}),
|
|
173
173
|
error: I({}, e, {
|
|
174
|
-
value:
|
|
174
|
+
value: xe
|
|
175
175
|
}),
|
|
176
176
|
group: I({}, e, {
|
|
177
|
-
value:
|
|
177
|
+
value: fe
|
|
178
178
|
}),
|
|
179
179
|
groupCollapsed: I({}, e, {
|
|
180
|
-
value:
|
|
180
|
+
value: X
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: I({}, e, {
|
|
183
183
|
value: Be
|
|
@@ -187,39 +187,39 @@ function Ir() {
|
|
|
187
187
|
q < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var $e = O.ReactCurrentDispatcher, Ee;
|
|
191
|
+
function we(e, t, s) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (Ee === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (E) {
|
|
197
|
-
var
|
|
198
|
-
|
|
197
|
+
var g = E.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
Ee = g && g[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + Ee + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var Ne = !1, je;
|
|
205
205
|
{
|
|
206
206
|
var sr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
|
|
207
|
+
je = new sr();
|
|
208
208
|
}
|
|
209
209
|
function De(e, t) {
|
|
210
|
-
if (!e ||
|
|
210
|
+
if (!e || Ne)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var s =
|
|
213
|
+
var s = je.get(e);
|
|
214
214
|
if (s !== void 0)
|
|
215
215
|
return s;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
217
|
+
var g;
|
|
218
|
+
Ne = !0;
|
|
219
219
|
var E = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var N;
|
|
222
|
-
N =
|
|
222
|
+
N = $e.current, $e.current = null, rr();
|
|
223
223
|
try {
|
|
224
224
|
if (t) {
|
|
225
225
|
var y = function() {
|
|
@@ -233,14 +233,14 @@ function Ir() {
|
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(y, []);
|
|
235
235
|
} catch (W) {
|
|
236
|
-
|
|
236
|
+
g = W;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(e, [], y);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
y.call();
|
|
242
242
|
} catch (W) {
|
|
243
|
-
|
|
243
|
+
g = W;
|
|
244
244
|
}
|
|
245
245
|
e.call(y.prototype);
|
|
246
246
|
}
|
|
@@ -248,14 +248,14 @@ function Ir() {
|
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
250
|
} catch (W) {
|
|
251
|
-
|
|
251
|
+
g = W;
|
|
252
252
|
}
|
|
253
253
|
e();
|
|
254
254
|
}
|
|
255
255
|
} catch (W) {
|
|
256
|
-
if (W &&
|
|
256
|
+
if (W && g && typeof W.stack == "string") {
|
|
257
257
|
for (var j = W.stack.split(`
|
|
258
|
-
`), V =
|
|
258
|
+
`), V = g.stack.split(`
|
|
259
259
|
`), T = j.length - 1, S = V.length - 1; T >= 1 && S >= 0 && j[T] !== V[S]; )
|
|
260
260
|
S--;
|
|
261
261
|
for (; T >= 1 && S >= 0; T--, S--)
|
|
@@ -265,17 +265,17 @@ function Ir() {
|
|
|
265
265
|
if (T--, S--, S < 0 || j[T] !== V[S]) {
|
|
266
266
|
var H = `
|
|
267
267
|
` + j[T].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
268
|
+
return e.displayName && H.includes("<anonymous>") && (H = H.replace("<anonymous>", e.displayName)), typeof e == "function" && je.set(e, H), H;
|
|
269
269
|
}
|
|
270
270
|
while (T >= 1 && S >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
Ne = !1, $e.current = N, tr(), Error.prepareStackTrace = E;
|
|
276
276
|
}
|
|
277
|
-
var _e = e ? e.displayName || e.name : "", oe = _e ?
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var _e = e ? e.displayName || e.name : "", oe = _e ? we(_e) : "";
|
|
278
|
+
return typeof e == "function" && je.set(e, oe), oe;
|
|
279
279
|
}
|
|
280
280
|
function ar(e, t, s) {
|
|
281
281
|
return De(e, !1);
|
|
@@ -284,29 +284,29 @@ function Ir() {
|
|
|
284
284
|
var t = e.prototype;
|
|
285
285
|
return !!(t && t.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function ke(e, t, s) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
291
|
return De(e, nr(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return we(e);
|
|
294
294
|
switch (e) {
|
|
295
295
|
case v:
|
|
296
|
-
return
|
|
296
|
+
return we("Suspense");
|
|
297
297
|
case h:
|
|
298
|
-
return
|
|
298
|
+
return we("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
302
|
case o:
|
|
303
303
|
return ar(e.render);
|
|
304
304
|
case l:
|
|
305
|
-
return
|
|
305
|
+
return ke(e.type, t, s);
|
|
306
306
|
case x: {
|
|
307
|
-
var
|
|
307
|
+
var g = e, E = g._payload, N = g._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return ke(N(E), t, s);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -314,14 +314,14 @@ function Ir() {
|
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
316
|
var pe = Object.prototype.hasOwnProperty, Ae = {}, Le = O.ReactDebugCurrentFrame;
|
|
317
|
-
function
|
|
317
|
+
function ye(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var t = e._owner, s =
|
|
319
|
+
var t = e._owner, s = ke(e.type, e._source, t ? t.type : null);
|
|
320
320
|
Le.setExtraStackFrame(s);
|
|
321
321
|
} else
|
|
322
322
|
Le.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function or(e, t, s,
|
|
324
|
+
function or(e, t, s, g, E) {
|
|
325
325
|
{
|
|
326
326
|
var N = Function.call.bind(pe);
|
|
327
327
|
for (var y in e)
|
|
@@ -329,19 +329,19 @@ function Ir() {
|
|
|
329
329
|
var j = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof e[y] != "function") {
|
|
332
|
-
var V = Error((
|
|
332
|
+
var V = Error((g || "React class") + ": " + s + " type `" + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw V.name = "Invariant Violation", V;
|
|
334
334
|
}
|
|
335
|
-
j = e[y](t, y,
|
|
335
|
+
j = e[y](t, y, g, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (T) {
|
|
337
337
|
j = T;
|
|
338
338
|
}
|
|
339
|
-
j && !(j instanceof Error) && (
|
|
339
|
+
j && !(j instanceof Error) && (ye(E), k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", s, y, typeof j), ye(null)), j instanceof Error && !(j.message in Ae) && (Ae[j.message] = !0, ye(E), k("Failed %s type: %s", s, j.message), ye(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var lr = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function Ie(e) {
|
|
345
345
|
return lr(e);
|
|
346
346
|
}
|
|
347
347
|
function ir(e) {
|
|
@@ -411,7 +411,7 @@ function Ir() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var gr = function(e, t, s,
|
|
414
|
+
var gr = function(e, t, s, g, E, N, y) {
|
|
415
415
|
var j = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: n,
|
|
@@ -432,7 +432,7 @@ function Ir() {
|
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
435
|
+
value: g
|
|
436
436
|
}), Object.defineProperty(j, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
@@ -440,7 +440,7 @@ function Ir() {
|
|
|
440
440
|
value: E
|
|
441
441
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
442
442
|
};
|
|
443
|
-
function hr(e, t, s,
|
|
443
|
+
function hr(e, t, s, g, E) {
|
|
444
444
|
{
|
|
445
445
|
var N, y = {}, j = null, V = null;
|
|
446
446
|
s !== void 0 && (Ve(s), j = "" + s), _r(t) && (Ve(t.key), j = "" + t.key), ur(t) && (V = t.ref, fr(t, E));
|
|
@@ -455,26 +455,26 @@ function Ir() {
|
|
|
455
455
|
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
456
|
j && pr(y, S), V && mr(y, S);
|
|
457
457
|
}
|
|
458
|
-
return gr(e, j, V, E,
|
|
458
|
+
return gr(e, j, V, E, g, qe.current, y);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var Oe = O.ReactCurrentOwner, Ue = O.ReactDebugCurrentFrame;
|
|
462
462
|
function ue(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var t = e._owner, s =
|
|
464
|
+
var t = e._owner, s = ke(e.type, e._source, t ? t.type : null);
|
|
465
465
|
Ue.setExtraStackFrame(s);
|
|
466
466
|
} else
|
|
467
467
|
Ue.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var Ce;
|
|
470
|
+
Ce = !1;
|
|
471
|
+
function Te(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
473
|
}
|
|
474
474
|
function Ke() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
476
|
+
if (Oe.current) {
|
|
477
|
+
var e = m(Oe.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -508,26 +508,26 @@ Check the top-level render call using <` + s + ">.");
|
|
|
508
508
|
if (Je[s])
|
|
509
509
|
return;
|
|
510
510
|
Je[s] = !0;
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !==
|
|
511
|
+
var g = "";
|
|
512
|
+
e && e._owner && e._owner !== Oe.current && (g = " It was passed a child from " + m(e._owner.type) + "."), ue(e), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, g), ue(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
function Xe(e, t) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (Ie(e))
|
|
520
520
|
for (var s = 0; s < e.length; s++) {
|
|
521
|
-
var
|
|
522
|
-
|
|
521
|
+
var g = e[s];
|
|
522
|
+
Te(g) && Ge(g, t);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (Te(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
527
|
var E = $(e);
|
|
528
528
|
if (typeof E == "function" && E !== e.entries)
|
|
529
529
|
for (var N = E.call(e), y; !(y = N.next()).done; )
|
|
530
|
-
|
|
530
|
+
Te(y.value) && Ge(y.value, t);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -546,11 +546,11 @@ Check the top-level render call using <` + s + ">.");
|
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (s) {
|
|
549
|
-
var
|
|
550
|
-
or(s, e.props, "prop",
|
|
551
|
-
} else if (t.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var E =
|
|
549
|
+
var g = m(t);
|
|
550
|
+
or(s, e.props, "prop", g, e);
|
|
551
|
+
} else if (t.PropTypes !== void 0 && !Ce) {
|
|
552
|
+
Ce = !0;
|
|
553
|
+
var E = m(t);
|
|
554
554
|
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", E || "Unknown");
|
|
555
555
|
}
|
|
556
556
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -559,9 +559,9 @@ Check the top-level render call using <` + s + ">.");
|
|
|
559
559
|
function wr(e) {
|
|
560
560
|
{
|
|
561
561
|
for (var t = Object.keys(e.props), s = 0; s < t.length; s++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
ue(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
562
|
+
var g = t[s];
|
|
563
|
+
if (g !== "children" && g !== "key") {
|
|
564
|
+
ue(e), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), ue(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -569,16 +569,16 @@ Check the top-level render call using <` + s + ">.");
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
var He = {};
|
|
572
|
-
function Ze(e, t, s,
|
|
572
|
+
function Ze(e, t, s, g, E, N) {
|
|
573
573
|
{
|
|
574
|
-
var y =
|
|
574
|
+
var y = L(e);
|
|
575
575
|
if (!y) {
|
|
576
576
|
var j = "";
|
|
577
577
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var V = br();
|
|
579
579
|
V ? j += V : j += Ke();
|
|
580
580
|
var T;
|
|
581
|
-
e === null ? T = "null" :
|
|
581
|
+
e === null ? T = "null" : Ie(e) ? T = "array" : e !== void 0 && e.$$typeof === n ? (T = "<" + (m(e.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, j);
|
|
582
582
|
}
|
|
583
583
|
var S = hr(e, t, s, E, N);
|
|
584
584
|
if (S == null)
|
|
@@ -586,8 +586,8 @@ Check the top-level render call using <` + s + ">.");
|
|
|
586
586
|
if (y) {
|
|
587
587
|
var H = t.children;
|
|
588
588
|
if (H !== void 0)
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
589
|
+
if (g)
|
|
590
|
+
if (Ie(H)) {
|
|
591
591
|
for (var _e = 0; _e < H.length; _e++)
|
|
592
592
|
Xe(H[_e], e);
|
|
593
593
|
Object.freeze && Object.freeze(H);
|
|
@@ -597,17 +597,17 @@ Check the top-level render call using <` + s + ">.");
|
|
|
597
597
|
Xe(H, e);
|
|
598
598
|
}
|
|
599
599
|
if (pe.call(t, "key")) {
|
|
600
|
-
var oe =
|
|
600
|
+
var oe = m(e), W = Object.keys(t).filter(function(Er) {
|
|
601
601
|
return Er !== "key";
|
|
602
|
-
}),
|
|
603
|
-
if (!He[oe +
|
|
602
|
+
}), Se = W.length > 0 ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!He[oe + Se]) {
|
|
604
604
|
var $r = W.length > 0 ? "{" + W.join(": ..., ") + ": ...}" : "{}";
|
|
605
605
|
k(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, Se, oe, $r, oe), He[oe + Se] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
return e === u ? wr(S) : xr(S), S;
|
|
@@ -623,8 +623,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
623
623
|
ge.Fragment = u, ge.jsx = yr, ge.jsxs = Rr;
|
|
624
624
|
}()), ge;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ?
|
|
627
|
-
var r =
|
|
626
|
+
process.env.NODE_ENV === "production" ? ze.exports = Nr() : ze.exports = Ir();
|
|
627
|
+
var r = ze.exports;
|
|
628
628
|
const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z = {
|
|
629
629
|
button: Or,
|
|
630
630
|
"button--small": "_button--small_fa67_29",
|
|
@@ -739,29 +739,30 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
739
739
|
className: O = "",
|
|
740
740
|
style: k,
|
|
741
741
|
wrapperStyle: D,
|
|
742
|
-
inputStyle:
|
|
743
|
-
|
|
742
|
+
inputStyle: A,
|
|
743
|
+
children: P,
|
|
744
|
+
...C
|
|
744
745
|
}) => {
|
|
745
|
-
const [
|
|
746
|
-
|
|
747
|
-
}, q = (X) => {
|
|
748
|
-
R(!0), b && b(X);
|
|
746
|
+
const [R, z] = ne(!1), [J, L] = ne(_ || ""), te = ce(null), G = p !== void 0, m = G ? p : J, I = m && m.toString().length > 0, q = (X) => {
|
|
747
|
+
G || L(X.target.value), w && w(X);
|
|
749
748
|
}, M = (X) => {
|
|
750
|
-
|
|
751
|
-
}, de =
|
|
749
|
+
z(!0), b && b(X);
|
|
750
|
+
}, de = (X) => {
|
|
751
|
+
z(!1), $ && $(X);
|
|
752
|
+
}, ve = [
|
|
752
753
|
B.input,
|
|
753
754
|
B[`input--${n}`],
|
|
754
755
|
i && B["input--error"],
|
|
755
756
|
h && B["input--disabled"],
|
|
756
757
|
x && B["input--full-width"],
|
|
757
758
|
f && B["input--floating-label"],
|
|
758
|
-
(
|
|
759
|
+
(R || I) && f && B["input--focused"],
|
|
759
760
|
O
|
|
760
|
-
].filter(Boolean).join(" "),
|
|
761
|
+
].filter(Boolean).join(" "), xe = [
|
|
761
762
|
B["input-wrapper"],
|
|
762
763
|
x && B["input-wrapper--full-width"]
|
|
763
764
|
].filter(Boolean).join(" "), fe = () => o ? /* @__PURE__ */ r.jsx("span", { className: B[`input-icon--${v}`], children: o }) : null;
|
|
764
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
765
|
+
return /* @__PURE__ */ r.jsxs("div", { className: xe, style: D || k, children: [
|
|
765
766
|
d && !f && /* @__PURE__ */ r.jsxs("label", { className: B["input-label"], children: [
|
|
766
767
|
d,
|
|
767
768
|
l && /* @__PURE__ */ r.jsx("span", { className: B["input-required"], children: "*" })
|
|
@@ -774,7 +775,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
774
775
|
className: B["input-floating-label"],
|
|
775
776
|
onClick: () => {
|
|
776
777
|
var X;
|
|
777
|
-
return (X =
|
|
778
|
+
return (X = te.current) == null ? void 0 : X.focus();
|
|
778
779
|
},
|
|
779
780
|
children: [
|
|
780
781
|
d,
|
|
@@ -785,18 +786,18 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
785
786
|
/* @__PURE__ */ r.jsx(
|
|
786
787
|
"input",
|
|
787
788
|
{
|
|
788
|
-
ref:
|
|
789
|
+
ref: te,
|
|
789
790
|
type: a,
|
|
790
|
-
className:
|
|
791
|
+
className: ve,
|
|
791
792
|
placeholder: f ? "" : u,
|
|
792
|
-
value:
|
|
793
|
+
value: m,
|
|
793
794
|
disabled: h,
|
|
794
795
|
required: l,
|
|
795
|
-
style:
|
|
796
|
-
onChange:
|
|
797
|
-
onFocus:
|
|
798
|
-
onBlur:
|
|
799
|
-
...
|
|
796
|
+
style: A,
|
|
797
|
+
onChange: q,
|
|
798
|
+
onFocus: M,
|
|
799
|
+
onBlur: de,
|
|
800
|
+
...C
|
|
800
801
|
}
|
|
801
802
|
),
|
|
802
803
|
o && v === "right" && fe()
|
|
@@ -865,9 +866,9 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
865
866
|
overlayStyle: l,
|
|
866
867
|
...x
|
|
867
868
|
}) => {
|
|
868
|
-
if (
|
|
869
|
+
if (Re(() => (a ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
869
870
|
document.body.style.overflow = "";
|
|
870
|
-
}), [a]),
|
|
871
|
+
}), [a]), Re(() => {
|
|
871
872
|
const b = ($) => {
|
|
872
873
|
$.key === "Escape" && a && n && n();
|
|
873
874
|
};
|
|
@@ -1057,46 +1058,46 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1057
1058
|
}) => {
|
|
1058
1059
|
const [w, b] = ne(!1), [$, O] = ne(""), [k, D] = ne(
|
|
1059
1060
|
c ? d || [] : null
|
|
1060
|
-
),
|
|
1061
|
-
|
|
1062
|
-
const
|
|
1063
|
-
|
|
1061
|
+
), A = ce(null), P = ce(null), C = n !== void 0, R = C ? n : k;
|
|
1062
|
+
Re(() => {
|
|
1063
|
+
const m = (I) => {
|
|
1064
|
+
A.current && !A.current.contains(I.target) && (b(!1), O(""));
|
|
1064
1065
|
};
|
|
1065
|
-
return w && (document.addEventListener("mousedown",
|
|
1066
|
-
document.removeEventListener("mousedown",
|
|
1066
|
+
return w && (document.addEventListener("mousedown", m), i && P.current && P.current.focus()), () => {
|
|
1067
|
+
document.removeEventListener("mousedown", m);
|
|
1067
1068
|
};
|
|
1068
1069
|
}, [w, i]);
|
|
1069
|
-
const
|
|
1070
|
-
(
|
|
1071
|
-
) : a,
|
|
1070
|
+
const z = i ? a.filter(
|
|
1071
|
+
(m) => m.label.toLowerCase().includes($.toLowerCase())
|
|
1072
|
+
) : a, J = (m) => {
|
|
1072
1073
|
if (c) {
|
|
1073
|
-
const I = C ? [...n || []] : [...k || []], q = I.findIndex((M) => M ===
|
|
1074
|
-
q > -1 ? I.splice(q, 1) : I.push(
|
|
1074
|
+
const I = C ? [...n || []] : [...k || []], q = I.findIndex((M) => M === m.value);
|
|
1075
|
+
q > -1 ? I.splice(q, 1) : I.push(m.value), C || D(I), u && u(I);
|
|
1075
1076
|
} else
|
|
1076
|
-
C || D(
|
|
1077
|
-
},
|
|
1077
|
+
C || D(m.value), u && u(m.value), b(!1), O("");
|
|
1078
|
+
}, L = (m) => c ? R && R.includes(m) : R === m, te = () => {
|
|
1078
1079
|
if (c) {
|
|
1079
1080
|
if (!R || R.length === 0)
|
|
1080
1081
|
return p;
|
|
1081
1082
|
if (R.length === 1) {
|
|
1082
|
-
const
|
|
1083
|
-
return
|
|
1083
|
+
const m = a.find((I) => I.value === R[0]);
|
|
1084
|
+
return m ? m.label : p;
|
|
1084
1085
|
}
|
|
1085
1086
|
return `${R.length} ausgewählt`;
|
|
1086
1087
|
} else {
|
|
1087
1088
|
if (!R)
|
|
1088
1089
|
return p;
|
|
1089
|
-
const
|
|
1090
|
-
return
|
|
1090
|
+
const m = a.find((I) => I.value === R);
|
|
1091
|
+
return m ? m.label : p;
|
|
1091
1092
|
}
|
|
1092
|
-
},
|
|
1093
|
+
}, G = [
|
|
1093
1094
|
F.dropdown,
|
|
1094
1095
|
w && F["dropdown--open"],
|
|
1095
1096
|
_ && F["dropdown--disabled"],
|
|
1096
1097
|
o && F["dropdown--error"],
|
|
1097
1098
|
v
|
|
1098
1099
|
].filter(Boolean).join(" ");
|
|
1099
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1100
|
+
return /* @__PURE__ */ r.jsxs("div", { className: G, ref: A, style: h, ...f, children: [
|
|
1100
1101
|
/* @__PURE__ */ r.jsxs(
|
|
1101
1102
|
"button",
|
|
1102
1103
|
{
|
|
@@ -1129,21 +1130,21 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1129
1130
|
i && /* @__PURE__ */ r.jsx("div", { className: F["dropdown-search"], children: /* @__PURE__ */ r.jsx(
|
|
1130
1131
|
"input",
|
|
1131
1132
|
{
|
|
1132
|
-
ref:
|
|
1133
|
+
ref: P,
|
|
1133
1134
|
type: "text",
|
|
1134
1135
|
className: F["dropdown-search-input"],
|
|
1135
1136
|
placeholder: "Suchen...",
|
|
1136
1137
|
value: $,
|
|
1137
|
-
onChange: (
|
|
1138
|
+
onChange: (m) => O(m.target.value)
|
|
1138
1139
|
}
|
|
1139
1140
|
) }),
|
|
1140
|
-
/* @__PURE__ */ r.jsx("div", { className: F["dropdown-options"], children:
|
|
1141
|
+
/* @__PURE__ */ r.jsx("div", { className: F["dropdown-options"], children: z.length > 0 ? z.map((m) => /* @__PURE__ */ r.jsxs(
|
|
1141
1142
|
"div",
|
|
1142
1143
|
{
|
|
1143
|
-
className: `${F["dropdown-option"]} ${
|
|
1144
|
-
onClick: () => !
|
|
1144
|
+
className: `${F["dropdown-option"]} ${L(m.value) ? F["dropdown-option--selected"] : ""} ${m.disabled ? F["dropdown-option--disabled"] : ""}`,
|
|
1145
|
+
onClick: () => !m.disabled && J(m),
|
|
1145
1146
|
children: [
|
|
1146
|
-
c && /* @__PURE__ */ r.jsx("span", { className: F["dropdown-checkbox"], children:
|
|
1147
|
+
c && /* @__PURE__ */ r.jsx("span", { className: F["dropdown-checkbox"], children: L(m.value) && /* @__PURE__ */ r.jsx(
|
|
1147
1148
|
"svg",
|
|
1148
1149
|
{
|
|
1149
1150
|
width: "16",
|
|
@@ -1155,14 +1156,14 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1155
1156
|
children: /* @__PURE__ */ r.jsx("polyline", { points: "4 8 6 10 12 4" })
|
|
1156
1157
|
}
|
|
1157
1158
|
) }),
|
|
1158
|
-
/* @__PURE__ */ r.jsx("span", { children:
|
|
1159
|
+
/* @__PURE__ */ r.jsx("span", { children: m.label })
|
|
1159
1160
|
]
|
|
1160
1161
|
},
|
|
1161
|
-
|
|
1162
|
+
m.value
|
|
1162
1163
|
)) : /* @__PURE__ */ r.jsx("div", { className: F["dropdown-empty"], children: "Keine Optionen gefunden" }) })
|
|
1163
1164
|
] })
|
|
1164
1165
|
] });
|
|
1165
|
-
}, et = "_toggle_1hp0g_1",
|
|
1166
|
+
}, et = "_toggle_1hp0g_1", Y = {
|
|
1166
1167
|
"toggle-container": "_toggle-container_1hp0g_1",
|
|
1167
1168
|
"toggle-container--reverse": "_toggle-container--reverse_1hp0g_6",
|
|
1168
1169
|
toggle: et,
|
|
@@ -1195,21 +1196,21 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1195
1196
|
const l = (b) => {
|
|
1196
1197
|
!d && n && n(b.target.checked);
|
|
1197
1198
|
}, x = [
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
a &&
|
|
1202
|
-
d &&
|
|
1199
|
+
Y.toggle,
|
|
1200
|
+
Y[`toggle--${u}`],
|
|
1201
|
+
Y[`toggle--${p}`],
|
|
1202
|
+
a && Y["toggle--checked"],
|
|
1203
|
+
d && Y["toggle--disabled"],
|
|
1203
1204
|
c
|
|
1204
1205
|
].filter(Boolean).join(" "), f = [
|
|
1205
|
-
|
|
1206
|
-
a &&
|
|
1206
|
+
Y["toggle-switch"],
|
|
1207
|
+
a && Y["toggle-switch--checked"]
|
|
1207
1208
|
].filter(Boolean).join(" "), w = [
|
|
1208
|
-
|
|
1209
|
-
i === "left" &&
|
|
1209
|
+
Y["toggle-container"],
|
|
1210
|
+
i === "left" && Y["toggle-container--reverse"]
|
|
1210
1211
|
].filter(Boolean).join(" ");
|
|
1211
1212
|
return /* @__PURE__ */ r.jsxs("div", { className: w, style: o, children: [
|
|
1212
|
-
_ && i === "left" && /* @__PURE__ */ r.jsx("label", { className:
|
|
1213
|
+
_ && i === "left" && /* @__PURE__ */ r.jsx("label", { className: Y["toggle-label"], onClick: () => !d && n && n(!a), children: _ }),
|
|
1213
1214
|
/* @__PURE__ */ r.jsxs("label", { className: x, children: [
|
|
1214
1215
|
/* @__PURE__ */ r.jsx(
|
|
1215
1216
|
"input",
|
|
@@ -1218,13 +1219,13 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1218
1219
|
checked: a,
|
|
1219
1220
|
onChange: l,
|
|
1220
1221
|
disabled: d,
|
|
1221
|
-
className:
|
|
1222
|
+
className: Y["toggle-input"],
|
|
1222
1223
|
...h
|
|
1223
1224
|
}
|
|
1224
1225
|
),
|
|
1225
|
-
/* @__PURE__ */ r.jsx("span", { className: f, style: v, children: /* @__PURE__ */ r.jsx("span", { className:
|
|
1226
|
+
/* @__PURE__ */ r.jsx("span", { className: f, style: v, children: /* @__PURE__ */ r.jsx("span", { className: Y["toggle-thumb"] }) })
|
|
1226
1227
|
] }),
|
|
1227
|
-
_ && i === "right" && /* @__PURE__ */ r.jsx("label", { className:
|
|
1228
|
+
_ && i === "right" && /* @__PURE__ */ r.jsx("label", { className: Y["toggle-label"], onClick: () => !d && n && n(!a), children: _ })
|
|
1228
1229
|
] });
|
|
1229
1230
|
}, rt = "_textarea_163r4_1", re = {
|
|
1230
1231
|
"textarea-wrapper": "_textarea-wrapper_163r4_1",
|
|
@@ -1262,12 +1263,12 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1262
1263
|
textareaStyle: k,
|
|
1263
1264
|
...D
|
|
1264
1265
|
}) => {
|
|
1265
|
-
const [
|
|
1266
|
-
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
},
|
|
1270
|
-
|
|
1266
|
+
const [A, P] = ne(!1), [C, R] = ne(p || ""), z = ce(null), J = u !== void 0, L = J ? u : C, te = (M) => {
|
|
1267
|
+
J || R(M.target.value), x && x(M);
|
|
1268
|
+
}, G = (M) => {
|
|
1269
|
+
P(!0), f && f(M);
|
|
1270
|
+
}, m = (M) => {
|
|
1271
|
+
P(!1), w && w(M);
|
|
1271
1272
|
}, I = [
|
|
1272
1273
|
re.textarea,
|
|
1273
1274
|
re[`textarea--${a}`],
|
|
@@ -1287,17 +1288,17 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1287
1288
|
/* @__PURE__ */ r.jsx(
|
|
1288
1289
|
"textarea",
|
|
1289
1290
|
{
|
|
1290
|
-
ref:
|
|
1291
|
+
ref: z,
|
|
1291
1292
|
className: I,
|
|
1292
1293
|
placeholder: d,
|
|
1293
|
-
value:
|
|
1294
|
+
value: L,
|
|
1294
1295
|
disabled: c,
|
|
1295
1296
|
required: o,
|
|
1296
1297
|
rows: h,
|
|
1297
1298
|
style: { resize: l, ...k },
|
|
1298
1299
|
onChange: te,
|
|
1299
|
-
onFocus:
|
|
1300
|
-
onBlur:
|
|
1300
|
+
onFocus: G,
|
|
1301
|
+
onBlur: m,
|
|
1301
1302
|
...D
|
|
1302
1303
|
}
|
|
1303
1304
|
),
|
|
@@ -1375,7 +1376,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1375
1376
|
i && /* @__PURE__ */ r.jsx("span", { className: ae["select-error"], children: i }),
|
|
1376
1377
|
c && !i && /* @__PURE__ */ r.jsx("span", { className: ae["select-helper"], children: c })
|
|
1377
1378
|
] });
|
|
1378
|
-
}, tt = "_checkbox_qb3mc_1",
|
|
1379
|
+
}, tt = "_checkbox_qb3mc_1", U = {
|
|
1379
1380
|
"checkbox-container": "_checkbox-container_qb3mc_1",
|
|
1380
1381
|
"checkbox-container--reverse": "_checkbox-container--reverse_qb3mc_6",
|
|
1381
1382
|
checkbox: tt,
|
|
@@ -1409,19 +1410,19 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1409
1410
|
const x = (b) => {
|
|
1410
1411
|
!d && n && n(b.target.checked);
|
|
1411
1412
|
}, f = [
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
a &&
|
|
1416
|
-
c &&
|
|
1417
|
-
d &&
|
|
1413
|
+
U.checkbox,
|
|
1414
|
+
U[`checkbox--${_}`],
|
|
1415
|
+
U[`checkbox--${i}`],
|
|
1416
|
+
a && U["checkbox--checked"],
|
|
1417
|
+
c && U["checkbox--indeterminate"],
|
|
1418
|
+
d && U["checkbox--disabled"],
|
|
1418
1419
|
o
|
|
1419
1420
|
].filter(Boolean).join(" "), w = [
|
|
1420
|
-
|
|
1421
|
-
p === "left" &&
|
|
1421
|
+
U["checkbox-container"],
|
|
1422
|
+
p === "left" && U["checkbox-container--reverse"]
|
|
1422
1423
|
].filter(Boolean).join(" ");
|
|
1423
1424
|
return /* @__PURE__ */ r.jsxs("div", { className: w, style: v, children: [
|
|
1424
|
-
u && p === "left" && /* @__PURE__ */ r.jsx("label", { className:
|
|
1425
|
+
u && p === "left" && /* @__PURE__ */ r.jsx("label", { className: U["checkbox-label"], onClick: () => !d && n && n(!a), children: u }),
|
|
1425
1426
|
/* @__PURE__ */ r.jsxs("label", { className: f, children: [
|
|
1426
1427
|
/* @__PURE__ */ r.jsx(
|
|
1427
1428
|
"input",
|
|
@@ -1433,14 +1434,14 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1433
1434
|
ref: (b) => {
|
|
1434
1435
|
b && (b.indeterminate = c);
|
|
1435
1436
|
},
|
|
1436
|
-
className:
|
|
1437
|
+
className: U["checkbox-input"],
|
|
1437
1438
|
...l
|
|
1438
1439
|
}
|
|
1439
1440
|
),
|
|
1440
|
-
/* @__PURE__ */ r.jsx("span", { className:
|
|
1441
|
+
/* @__PURE__ */ r.jsx("span", { className: U["checkbox-box"], style: h, children: (a || c) && /* @__PURE__ */ r.jsx(
|
|
1441
1442
|
"svg",
|
|
1442
1443
|
{
|
|
1443
|
-
className:
|
|
1444
|
+
className: U["checkbox-check"],
|
|
1444
1445
|
width: "16",
|
|
1445
1446
|
height: "16",
|
|
1446
1447
|
viewBox: "0 0 16 16",
|
|
@@ -1453,7 +1454,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1453
1454
|
}
|
|
1454
1455
|
) })
|
|
1455
1456
|
] }),
|
|
1456
|
-
u && p === "right" && /* @__PURE__ */ r.jsx("label", { className:
|
|
1457
|
+
u && p === "right" && /* @__PURE__ */ r.jsx("label", { className: U["checkbox-label"], onClick: () => !d && n && n(!a), children: u })
|
|
1457
1458
|
] });
|
|
1458
1459
|
}, st = "_radio_nmwcz_1", Q = {
|
|
1459
1460
|
"radio-container": "_radio-container_nmwcz_1",
|
|
@@ -1519,7 +1520,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1519
1520
|
] }),
|
|
1520
1521
|
u && p === "right" && /* @__PURE__ */ r.jsx("label", { className: Q["radio-label"], onClick: () => !d && n && n(o), children: u })
|
|
1521
1522
|
] });
|
|
1522
|
-
}, at = "_fadeIn_szmsm_1", nt = "_fadeOut_szmsm_1", ot = "_slideInTop_szmsm_1", lt = "_slideInBottom_szmsm_1", it = "_slideInLeft_szmsm_1", ct = "_slideInRight_szmsm_1", dt = "_scaleIn_szmsm_1", ut = "_scaleOut_szmsm_1", _t = "_pulse_szmsm_1", ft = "_spin_szmsm_1", pt = "_shake_szmsm_1", mt = "_progress_szmsm_212", gt = "_slideOutTop_szmsm_1", ht = "_slideOutBottom_szmsm_1", bt = "_rotate_szmsm_1", vt = "_bounce_szmsm_1",
|
|
1523
|
+
}, at = "_fadeIn_szmsm_1", nt = "_fadeOut_szmsm_1", ot = "_slideInTop_szmsm_1", lt = "_slideInBottom_szmsm_1", it = "_slideInLeft_szmsm_1", ct = "_slideInRight_szmsm_1", dt = "_scaleIn_szmsm_1", ut = "_scaleOut_szmsm_1", _t = "_pulse_szmsm_1", ft = "_spin_szmsm_1", pt = "_shake_szmsm_1", mt = "_progress_szmsm_212", gt = "_slideOutTop_szmsm_1", ht = "_slideOutBottom_szmsm_1", bt = "_rotate_szmsm_1", vt = "_bounce_szmsm_1", K = {
|
|
1523
1524
|
"animate-fadeIn": "_animate-fadeIn_szmsm_140",
|
|
1524
1525
|
fadeIn: at,
|
|
1525
1526
|
"animate-fadeOut": "_animate-fadeOut_szmsm_144",
|
|
@@ -1586,10 +1587,10 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1586
1587
|
barStyle: w,
|
|
1587
1588
|
...b
|
|
1588
1589
|
}) => {
|
|
1589
|
-
const $ = Math.min(Math.max(a / n * 100, 0), 100), k = ((
|
|
1590
|
-
if (typeof
|
|
1591
|
-
return
|
|
1592
|
-
switch (
|
|
1590
|
+
const $ = Math.min(Math.max(a / n * 100, 0), 100), k = ((z) => {
|
|
1591
|
+
if (typeof z == "number")
|
|
1592
|
+
return z;
|
|
1593
|
+
switch (z) {
|
|
1593
1594
|
case "slow":
|
|
1594
1595
|
return 3;
|
|
1595
1596
|
case "fast":
|
|
@@ -1599,20 +1600,20 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1599
1600
|
return 1;
|
|
1600
1601
|
}
|
|
1601
1602
|
})(h), D = [
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
l &&
|
|
1606
|
-
i &&
|
|
1607
|
-
c &&
|
|
1603
|
+
K.progress,
|
|
1604
|
+
K[`progress--${d}`],
|
|
1605
|
+
K[`progress--${u}`],
|
|
1606
|
+
l && K["progress--vertical"],
|
|
1607
|
+
i && K["progress--animated"],
|
|
1608
|
+
c && K["progress--striped"],
|
|
1608
1609
|
x
|
|
1609
|
-
].filter(Boolean).join(" "),
|
|
1610
|
-
|
|
1611
|
-
i &&
|
|
1612
|
-
c &&
|
|
1613
|
-
o &&
|
|
1614
|
-
v &&
|
|
1615
|
-
].filter(Boolean).join(" "),
|
|
1610
|
+
].filter(Boolean).join(" "), A = [
|
|
1611
|
+
K["progress-bar"],
|
|
1612
|
+
i && K["progress-bar--animated"],
|
|
1613
|
+
c && K["progress-bar--striped"],
|
|
1614
|
+
o && K["progress-bar--pulse"],
|
|
1615
|
+
v && K["progress-bar--shimmer"]
|
|
1616
|
+
].filter(Boolean).join(" "), P = _ || (p ? `${Math.round($)}%` : ""), C = {};
|
|
1616
1617
|
(i || o || v) && (i && (C["--animation-speed"] = `${k}s`), o && (C["--pulse-speed"] = `${k * 2}s`), v && (C["--shimmer-speed"] = `${k * 1.5}s`));
|
|
1617
1618
|
const R = l ? {
|
|
1618
1619
|
height: `${$}%`,
|
|
@@ -1628,16 +1629,16 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1628
1629
|
/* @__PURE__ */ r.jsx(
|
|
1629
1630
|
"div",
|
|
1630
1631
|
{
|
|
1631
|
-
className:
|
|
1632
|
+
className: A,
|
|
1632
1633
|
role: "progressbar",
|
|
1633
1634
|
"aria-valuenow": a,
|
|
1634
1635
|
"aria-valuemin": 0,
|
|
1635
1636
|
"aria-valuemax": n,
|
|
1636
1637
|
style: R,
|
|
1637
|
-
children:
|
|
1638
|
+
children: P && !l && /* @__PURE__ */ r.jsx("span", { className: K["progress-label"], children: P })
|
|
1638
1639
|
}
|
|
1639
1640
|
),
|
|
1640
|
-
|
|
1641
|
+
P && l && /* @__PURE__ */ r.jsx("span", { className: K["progress-label--external"], children: P })
|
|
1641
1642
|
] });
|
|
1642
1643
|
}, xt = "_container_b6ikf_1", wt = "_progress_b6ikf_8", jt = "_radio_b6ikf_31", kt = "_label_b6ikf_35", be = {
|
|
1643
1644
|
container: xt,
|
|
@@ -1667,7 +1668,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1667
1668
|
u
|
|
1668
1669
|
].filter(Boolean).join(" ");
|
|
1669
1670
|
return /* @__PURE__ */ r.jsxs("div", { className: x, style: p, ...i, children: [
|
|
1670
|
-
a.map((f) => /* @__PURE__ */ r.jsxs(
|
|
1671
|
+
a.map((f) => /* @__PURE__ */ r.jsxs(Pe.Fragment, { children: [
|
|
1671
1672
|
/* @__PURE__ */ r.jsx(
|
|
1672
1673
|
"input",
|
|
1673
1674
|
{
|
|
@@ -1731,30 +1732,30 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1731
1732
|
le["circle-progress"],
|
|
1732
1733
|
le[`circle-progress--${d}`],
|
|
1733
1734
|
c
|
|
1734
|
-
].filter(Boolean).join(" "),
|
|
1735
|
+
].filter(Boolean).join(" "), A = _ ? _(a) : p || (u ? `${Math.round(h)}%` : ""), P = {
|
|
1735
1736
|
"--progress-value": l,
|
|
1736
1737
|
"--color": b,
|
|
1737
1738
|
...o
|
|
1738
|
-
}, C = [], R = 45,
|
|
1739
|
-
for (let
|
|
1740
|
-
const te =
|
|
1739
|
+
}, C = [], R = 45, z = 4, J = 5;
|
|
1740
|
+
for (let L = 0; L < $; L++) {
|
|
1741
|
+
const te = L < O, G = (L * k - 90) * (Math.PI / 180), m = 50 + R * Math.cos(G), I = 50 + R * Math.sin(G), q = m - z / 2, M = I - J / 2, de = L * k - 90 + 90;
|
|
1741
1742
|
C.push(
|
|
1742
1743
|
/* @__PURE__ */ r.jsx(
|
|
1743
1744
|
"rect",
|
|
1744
1745
|
{
|
|
1745
1746
|
x: q,
|
|
1746
1747
|
y: M,
|
|
1747
|
-
width:
|
|
1748
|
-
height:
|
|
1748
|
+
width: z,
|
|
1749
|
+
height: J,
|
|
1749
1750
|
fill: te ? b : "transparent",
|
|
1750
|
-
transform: `rotate(${de} ${
|
|
1751
|
+
transform: `rotate(${de} ${m} ${I})`,
|
|
1751
1752
|
className: le["circle-progress-segment"]
|
|
1752
1753
|
},
|
|
1753
|
-
|
|
1754
|
+
L
|
|
1754
1755
|
)
|
|
1755
1756
|
);
|
|
1756
1757
|
}
|
|
1757
|
-
return /* @__PURE__ */ r.jsx("div", { className: D, style:
|
|
1758
|
+
return /* @__PURE__ */ r.jsx("div", { className: D, style: P, ...v, children: /* @__PURE__ */ r.jsxs(
|
|
1758
1759
|
"svg",
|
|
1759
1760
|
{
|
|
1760
1761
|
viewBox: "0 0 100 100",
|
|
@@ -1773,7 +1774,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1773
1774
|
}
|
|
1774
1775
|
),
|
|
1775
1776
|
/* @__PURE__ */ r.jsx("g", { className: le["circle-progress-segments"], children: C }),
|
|
1776
|
-
|
|
1777
|
+
A && /* @__PURE__ */ r.jsx(
|
|
1777
1778
|
"text",
|
|
1778
1779
|
{
|
|
1779
1780
|
x: "50",
|
|
@@ -1781,7 +1782,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1781
1782
|
textAnchor: "middle",
|
|
1782
1783
|
dy: "0.35em",
|
|
1783
1784
|
className: le["circle-progress-text"],
|
|
1784
|
-
children:
|
|
1785
|
+
children: A
|
|
1785
1786
|
}
|
|
1786
1787
|
)
|
|
1787
1788
|
]
|
|
@@ -1826,10 +1827,10 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1826
1827
|
return 1;
|
|
1827
1828
|
}
|
|
1828
1829
|
})(_), k = ((R) => R < 33 ? "red" : R < 66 ? "orange" : "green")(l), D = 100 - l;
|
|
1829
|
-
|
|
1830
|
+
Re(() => {
|
|
1830
1831
|
if (typeof window < "u" && window.$ && x.current && i) {
|
|
1831
1832
|
window.$(x.current);
|
|
1832
|
-
const R = window.$(f.current),
|
|
1833
|
+
const R = window.$(f.current), z = window.$(w.current);
|
|
1833
1834
|
R.length && i && window.$({ Counter: 0 }).animate(
|
|
1834
1835
|
{ Counter: l },
|
|
1835
1836
|
{
|
|
@@ -1839,7 +1840,7 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1839
1840
|
R.length && R.find("span").text(Math.ceil(this.Counter));
|
|
1840
1841
|
}
|
|
1841
1842
|
}
|
|
1842
|
-
),
|
|
1843
|
+
), z.length && z.stop().animate(
|
|
1843
1844
|
{ top: `${D}%` },
|
|
1844
1845
|
{
|
|
1845
1846
|
duration: $ * 1e3,
|
|
@@ -1848,23 +1849,23 @@ const Or = "_button_fa67_1", Cr = "_spinner_fa67_175", Tr = "_spin_fa67_175", Z
|
|
|
1848
1849
|
);
|
|
1849
1850
|
}
|
|
1850
1851
|
}, [a, l, D, $, i, c]);
|
|
1851
|
-
const
|
|
1852
|
+
const A = [
|
|
1852
1853
|
ie.progress,
|
|
1853
1854
|
ie[`progress--${d}`],
|
|
1854
1855
|
ie[`progress--${k}`],
|
|
1855
1856
|
o
|
|
1856
|
-
].filter(Boolean).join(" "),
|
|
1857
|
+
].filter(Boolean).join(" "), P = p || (u ? `${Math.round(l)}%` : ""), C = {
|
|
1857
1858
|
"--level-change-speed": `${$}s`
|
|
1858
1859
|
};
|
|
1859
1860
|
return /* @__PURE__ */ r.jsx(
|
|
1860
1861
|
"div",
|
|
1861
1862
|
{
|
|
1862
1863
|
ref: x,
|
|
1863
|
-
className:
|
|
1864
|
+
className: A,
|
|
1864
1865
|
style: { ...v, ...C },
|
|
1865
1866
|
...h,
|
|
1866
1867
|
children: /* @__PURE__ */ r.jsxs("div", { className: ie.inner, children: [
|
|
1867
|
-
|
|
1868
|
+
P && /* @__PURE__ */ r.jsxs("div", { ref: f, className: ie.percent, children: [
|
|
1868
1869
|
/* @__PURE__ */ r.jsx("span", { children: Math.round(l) }),
|
|
1869
1870
|
"%"
|
|
1870
1871
|
] }),
|