eidotter 0.3.0 → 0.3.2
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.es.js +482 -1123
- package/dist/index.umd.js +4 -35
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,699 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
var We;
|
|
14
|
-
function xr() {
|
|
15
|
-
if (We)
|
|
16
|
-
return J;
|
|
17
|
-
We = 1;
|
|
18
|
-
var l = fe, u = Symbol.for("react.element"), d = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
-
function o(p, c, v) {
|
|
20
|
-
var m, _ = {}, E = null, O = null;
|
|
21
|
-
v !== void 0 && (E = "" + v), c.key !== void 0 && (E = "" + c.key), c.ref !== void 0 && (O = c.ref);
|
|
22
|
-
for (m in c)
|
|
23
|
-
n.call(c, m) && !i.hasOwnProperty(m) && (_[m] = c[m]);
|
|
24
|
-
if (p && p.defaultProps)
|
|
25
|
-
for (m in c = p.defaultProps, c)
|
|
26
|
-
_[m] === void 0 && (_[m] = c[m]);
|
|
27
|
-
return { $$typeof: u, type: p, key: E, ref: O, props: _, _owner: s.current };
|
|
28
|
-
}
|
|
29
|
-
return J.Fragment = d, J.jsx = o, J.jsxs = o, J;
|
|
30
|
-
}
|
|
31
|
-
var G = {};
|
|
32
|
-
/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.development.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
var Le;
|
|
42
|
-
function jr() {
|
|
43
|
-
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var l = fe, u = Symbol.for("react.element"), d = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), p = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), D = Symbol.iterator, j = "@@iterator";
|
|
45
|
-
function S(e) {
|
|
46
|
-
if (e === null || typeof e != "object")
|
|
47
|
-
return null;
|
|
48
|
-
var t = D && e[D] || e[j];
|
|
49
|
-
return typeof t == "function" ? t : null;
|
|
50
|
-
}
|
|
51
|
-
var N = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function y(e) {
|
|
53
|
-
{
|
|
54
|
-
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
|
|
55
|
-
a[f - 1] = arguments[f];
|
|
56
|
-
$("error", e, a);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
function $(e, t, a) {
|
|
60
|
-
{
|
|
61
|
-
var f = N.ReactDebugCurrentFrame, x = f.getStackAddendum();
|
|
62
|
-
x !== "" && (t += "%s", a = a.concat([x]));
|
|
63
|
-
var g = a.map(function(b) {
|
|
64
|
-
return String(b);
|
|
65
|
-
});
|
|
66
|
-
g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
var L = !1, P = !1, M = !1, re = !1, F = !1, pe;
|
|
70
|
-
pe = Symbol.for("react.module.reference");
|
|
71
|
-
function Me(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e === i || F || e === s || e === v || e === m || re || e === O || L || P || M || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === _ || e.$$typeof === o || e.$$typeof === p || e.$$typeof === c || // This needs to include all possible module reference object
|
|
73
|
-
// types supported by any Flight configuration anywhere since
|
|
74
|
-
// we don't know which Flight build this will end up being used
|
|
75
|
-
// with.
|
|
76
|
-
e.$$typeof === pe || e.getModuleId !== void 0));
|
|
77
|
-
}
|
|
78
|
-
function Ye(e, t, a) {
|
|
79
|
-
var f = e.displayName;
|
|
80
|
-
if (f)
|
|
81
|
-
return f;
|
|
82
|
-
var x = t.displayName || t.name || "";
|
|
83
|
-
return x !== "" ? a + "(" + x + ")" : a;
|
|
84
|
-
}
|
|
85
|
-
function _e(e) {
|
|
86
|
-
return e.displayName || "Context";
|
|
87
|
-
}
|
|
88
|
-
function A(e) {
|
|
89
|
-
if (e == null)
|
|
90
|
-
return null;
|
|
91
|
-
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
92
|
-
return e.displayName || e.name || null;
|
|
93
|
-
if (typeof e == "string")
|
|
94
|
-
return e;
|
|
95
|
-
switch (e) {
|
|
96
|
-
case n:
|
|
97
|
-
return "Fragment";
|
|
98
|
-
case d:
|
|
99
|
-
return "Portal";
|
|
100
|
-
case i:
|
|
101
|
-
return "Profiler";
|
|
102
|
-
case s:
|
|
103
|
-
return "StrictMode";
|
|
104
|
-
case v:
|
|
105
|
-
return "Suspense";
|
|
106
|
-
case m:
|
|
107
|
-
return "SuspenseList";
|
|
108
|
-
}
|
|
109
|
-
if (typeof e == "object")
|
|
110
|
-
switch (e.$$typeof) {
|
|
111
|
-
case p:
|
|
112
|
-
var t = e;
|
|
113
|
-
return _e(t) + ".Consumer";
|
|
114
|
-
case o:
|
|
115
|
-
var a = e;
|
|
116
|
-
return _e(a._context) + ".Provider";
|
|
117
|
-
case c:
|
|
118
|
-
return Ye(e, e.render, "ForwardRef");
|
|
119
|
-
case _:
|
|
120
|
-
var f = e.displayName || null;
|
|
121
|
-
return f !== null ? f : A(e.type) || "Memo";
|
|
122
|
-
case E: {
|
|
123
|
-
var x = e, g = x._payload, b = x._init;
|
|
124
|
-
try {
|
|
125
|
-
return A(b(g));
|
|
126
|
-
} catch {
|
|
127
|
-
return null;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
var B = Object.assign, V = 0, he, ve, be, xe, je, ye, ge;
|
|
134
|
-
function Ee() {
|
|
135
|
-
}
|
|
136
|
-
Ee.__reactDisabledLog = !0;
|
|
137
|
-
function ze() {
|
|
138
|
-
{
|
|
139
|
-
if (V === 0) {
|
|
140
|
-
he = console.log, ve = console.info, be = console.warn, xe = console.error, je = console.group, ye = console.groupCollapsed, ge = console.groupEnd;
|
|
141
|
-
var e = {
|
|
142
|
-
configurable: !0,
|
|
143
|
-
enumerable: !0,
|
|
144
|
-
value: Ee,
|
|
145
|
-
writable: !0
|
|
146
|
-
};
|
|
147
|
-
Object.defineProperties(console, {
|
|
148
|
-
info: e,
|
|
149
|
-
log: e,
|
|
150
|
-
warn: e,
|
|
151
|
-
error: e,
|
|
152
|
-
group: e,
|
|
153
|
-
groupCollapsed: e,
|
|
154
|
-
groupEnd: e
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
V++;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Ke() {
|
|
161
|
-
{
|
|
162
|
-
if (V--, V === 0) {
|
|
163
|
-
var e = {
|
|
164
|
-
configurable: !0,
|
|
165
|
-
enumerable: !0,
|
|
166
|
-
writable: !0
|
|
167
|
-
};
|
|
168
|
-
Object.defineProperties(console, {
|
|
169
|
-
log: B({}, e, {
|
|
170
|
-
value: he
|
|
171
|
-
}),
|
|
172
|
-
info: B({}, e, {
|
|
173
|
-
value: ve
|
|
174
|
-
}),
|
|
175
|
-
warn: B({}, e, {
|
|
176
|
-
value: be
|
|
177
|
-
}),
|
|
178
|
-
error: B({}, e, {
|
|
179
|
-
value: xe
|
|
180
|
-
}),
|
|
181
|
-
group: B({}, e, {
|
|
182
|
-
value: je
|
|
183
|
-
}),
|
|
184
|
-
groupCollapsed: B({}, e, {
|
|
185
|
-
value: ye
|
|
186
|
-
}),
|
|
187
|
-
groupEnd: B({}, e, {
|
|
188
|
-
value: ge
|
|
189
|
-
})
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
V < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
var te = N.ReactCurrentDispatcher, ae;
|
|
196
|
-
function X(e, t, a) {
|
|
197
|
-
{
|
|
198
|
-
if (ae === void 0)
|
|
199
|
-
try {
|
|
200
|
-
throw Error();
|
|
201
|
-
} catch (x) {
|
|
202
|
-
var f = x.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
-
ae = f && f[1] || "";
|
|
204
|
-
}
|
|
205
|
-
return `
|
|
206
|
-
` + ae + e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
var ne = !1, H;
|
|
210
|
-
{
|
|
211
|
-
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
H = new Ve();
|
|
213
|
-
}
|
|
214
|
-
function we(e, t) {
|
|
215
|
-
if (!e || ne)
|
|
216
|
-
return "";
|
|
217
|
-
{
|
|
218
|
-
var a = H.get(e);
|
|
219
|
-
if (a !== void 0)
|
|
220
|
-
return a;
|
|
221
|
-
}
|
|
222
|
-
var f;
|
|
223
|
-
ne = !0;
|
|
224
|
-
var x = Error.prepareStackTrace;
|
|
225
|
-
Error.prepareStackTrace = void 0;
|
|
226
|
-
var g;
|
|
227
|
-
g = te.current, te.current = null, ze();
|
|
228
|
-
try {
|
|
229
|
-
if (t) {
|
|
230
|
-
var b = function() {
|
|
231
|
-
throw Error();
|
|
232
|
-
};
|
|
233
|
-
if (Object.defineProperty(b.prototype, "props", {
|
|
234
|
-
set: function() {
|
|
235
|
-
throw Error();
|
|
236
|
-
}
|
|
237
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
|
-
try {
|
|
239
|
-
Reflect.construct(b, []);
|
|
240
|
-
} catch (C) {
|
|
241
|
-
f = C;
|
|
242
|
-
}
|
|
243
|
-
Reflect.construct(e, [], b);
|
|
244
|
-
} else {
|
|
245
|
-
try {
|
|
246
|
-
b.call();
|
|
247
|
-
} catch (C) {
|
|
248
|
-
f = C;
|
|
249
|
-
}
|
|
250
|
-
e.call(b.prototype);
|
|
251
|
-
}
|
|
252
|
-
} else {
|
|
253
|
-
try {
|
|
254
|
-
throw Error();
|
|
255
|
-
} catch (C) {
|
|
256
|
-
f = C;
|
|
257
|
-
}
|
|
258
|
-
e();
|
|
259
|
-
}
|
|
260
|
-
} catch (C) {
|
|
261
|
-
if (C && f && typeof C.stack == "string") {
|
|
262
|
-
for (var h = C.stack.split(`
|
|
263
|
-
`), k = f.stack.split(`
|
|
264
|
-
`), w = h.length - 1, R = k.length - 1; w >= 1 && R >= 0 && h[w] !== k[R]; )
|
|
265
|
-
R--;
|
|
266
|
-
for (; w >= 1 && R >= 0; w--, R--)
|
|
267
|
-
if (h[w] !== k[R]) {
|
|
268
|
-
if (w !== 1 || R !== 1)
|
|
269
|
-
do
|
|
270
|
-
if (w--, R--, R < 0 || h[w] !== k[R]) {
|
|
271
|
-
var T = `
|
|
272
|
-
` + h[w].replace(" at new ", " at ");
|
|
273
|
-
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, T), T;
|
|
274
|
-
}
|
|
275
|
-
while (w >= 1 && R >= 0);
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
} finally {
|
|
280
|
-
ne = !1, te.current = g, Ke(), Error.prepareStackTrace = x;
|
|
281
|
-
}
|
|
282
|
-
var z = e ? e.displayName || e.name : "", W = z ? X(z) : "";
|
|
283
|
-
return typeof e == "function" && H.set(e, W), W;
|
|
284
|
-
}
|
|
285
|
-
function Ue(e, t, a) {
|
|
286
|
-
return we(e, !1);
|
|
287
|
-
}
|
|
288
|
-
function qe(e) {
|
|
289
|
-
var t = e.prototype;
|
|
290
|
-
return !!(t && t.isReactComponent);
|
|
291
|
-
}
|
|
292
|
-
function Q(e, t, a) {
|
|
293
|
-
if (e == null)
|
|
294
|
-
return "";
|
|
295
|
-
if (typeof e == "function")
|
|
296
|
-
return we(e, qe(e));
|
|
297
|
-
if (typeof e == "string")
|
|
298
|
-
return X(e);
|
|
299
|
-
switch (e) {
|
|
300
|
-
case v:
|
|
301
|
-
return X("Suspense");
|
|
302
|
-
case m:
|
|
303
|
-
return X("SuspenseList");
|
|
304
|
-
}
|
|
305
|
-
if (typeof e == "object")
|
|
306
|
-
switch (e.$$typeof) {
|
|
307
|
-
case c:
|
|
308
|
-
return Ue(e.render);
|
|
309
|
-
case _:
|
|
310
|
-
return Q(e.type, t, a);
|
|
311
|
-
case E: {
|
|
312
|
-
var f = e, x = f._payload, g = f._init;
|
|
313
|
-
try {
|
|
314
|
-
return Q(g(x), t, a);
|
|
315
|
-
} catch {
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
return "";
|
|
320
|
-
}
|
|
321
|
-
var U = Object.prototype.hasOwnProperty, Re = {}, Ne = N.ReactDebugCurrentFrame;
|
|
322
|
-
function Z(e) {
|
|
323
|
-
if (e) {
|
|
324
|
-
var t = e._owner, a = Q(e.type, e._source, t ? t.type : null);
|
|
325
|
-
Ne.setExtraStackFrame(a);
|
|
326
|
-
} else
|
|
327
|
-
Ne.setExtraStackFrame(null);
|
|
328
|
-
}
|
|
329
|
-
function Je(e, t, a, f, x) {
|
|
330
|
-
{
|
|
331
|
-
var g = Function.call.bind(U);
|
|
332
|
-
for (var b in e)
|
|
333
|
-
if (g(e, b)) {
|
|
334
|
-
var h = void 0;
|
|
335
|
-
try {
|
|
336
|
-
if (typeof e[b] != "function") {
|
|
337
|
-
var k = Error((f || "React class") + ": " + a + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
-
throw k.name = "Invariant Violation", k;
|
|
339
|
-
}
|
|
340
|
-
h = e[b](t, b, f, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (w) {
|
|
342
|
-
h = w;
|
|
343
|
-
}
|
|
344
|
-
h && !(h instanceof Error) && (Z(x), y("%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).", f || "React class", a, b, typeof h), Z(null)), h instanceof Error && !(h.message in Re) && (Re[h.message] = !0, Z(x), y("Failed %s type: %s", a, h.message), Z(null));
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
var Ge = Array.isArray;
|
|
349
|
-
function se(e) {
|
|
350
|
-
return Ge(e);
|
|
351
|
-
}
|
|
352
|
-
function Xe(e) {
|
|
353
|
-
{
|
|
354
|
-
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
355
|
-
return a;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
function He(e) {
|
|
359
|
-
try {
|
|
360
|
-
return ke(e), !1;
|
|
361
|
-
} catch {
|
|
362
|
-
return !0;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function ke(e) {
|
|
366
|
-
return "" + e;
|
|
367
|
-
}
|
|
368
|
-
function Ce(e) {
|
|
369
|
-
if (He(e))
|
|
370
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ke(e);
|
|
371
|
-
}
|
|
372
|
-
var q = N.ReactCurrentOwner, Qe = {
|
|
373
|
-
key: !0,
|
|
374
|
-
ref: !0,
|
|
375
|
-
__self: !0,
|
|
376
|
-
__source: !0
|
|
377
|
-
}, Se, $e, ie;
|
|
378
|
-
ie = {};
|
|
379
|
-
function Ze(e) {
|
|
380
|
-
if (U.call(e, "ref")) {
|
|
381
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
|
-
if (t && t.isReactWarning)
|
|
383
|
-
return !1;
|
|
384
|
-
}
|
|
385
|
-
return e.ref !== void 0;
|
|
386
|
-
}
|
|
387
|
-
function er(e) {
|
|
388
|
-
if (U.call(e, "key")) {
|
|
389
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
|
-
if (t && t.isReactWarning)
|
|
391
|
-
return !1;
|
|
392
|
-
}
|
|
393
|
-
return e.key !== void 0;
|
|
394
|
-
}
|
|
395
|
-
function rr(e, t) {
|
|
396
|
-
if (typeof e.ref == "string" && q.current && t && q.current.stateNode !== t) {
|
|
397
|
-
var a = A(q.current.type);
|
|
398
|
-
ie[a] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(q.current.type), e.ref), ie[a] = !0);
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
function tr(e, t) {
|
|
402
|
-
{
|
|
403
|
-
var a = function() {
|
|
404
|
-
Se || (Se = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
405
|
-
};
|
|
406
|
-
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
407
|
-
get: a,
|
|
408
|
-
configurable: !0
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
function ar(e, t) {
|
|
413
|
-
{
|
|
414
|
-
var a = function() {
|
|
415
|
-
$e || ($e = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
416
|
-
};
|
|
417
|
-
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
418
|
-
get: a,
|
|
419
|
-
configurable: !0
|
|
420
|
-
});
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
var nr = function(e, t, a, f, x, g, b) {
|
|
424
|
-
var h = {
|
|
425
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
-
$$typeof: u,
|
|
427
|
-
// Built-in properties that belong on the element
|
|
428
|
-
type: e,
|
|
429
|
-
key: t,
|
|
430
|
-
ref: a,
|
|
431
|
-
props: b,
|
|
432
|
-
// Record the component responsible for creating this element.
|
|
433
|
-
_owner: g
|
|
434
|
-
};
|
|
435
|
-
return h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
436
|
-
configurable: !1,
|
|
437
|
-
enumerable: !1,
|
|
438
|
-
writable: !0,
|
|
439
|
-
value: !1
|
|
440
|
-
}), Object.defineProperty(h, "_self", {
|
|
441
|
-
configurable: !1,
|
|
442
|
-
enumerable: !1,
|
|
443
|
-
writable: !1,
|
|
444
|
-
value: f
|
|
445
|
-
}), Object.defineProperty(h, "_source", {
|
|
446
|
-
configurable: !1,
|
|
447
|
-
enumerable: !1,
|
|
448
|
-
writable: !1,
|
|
449
|
-
value: x
|
|
450
|
-
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
451
|
-
};
|
|
452
|
-
function sr(e, t, a, f, x) {
|
|
453
|
-
{
|
|
454
|
-
var g, b = {}, h = null, k = null;
|
|
455
|
-
a !== void 0 && (Ce(a), h = "" + a), er(t) && (Ce(t.key), h = "" + t.key), Ze(t) && (k = t.ref, rr(t, x));
|
|
456
|
-
for (g in t)
|
|
457
|
-
U.call(t, g) && !Qe.hasOwnProperty(g) && (b[g] = t[g]);
|
|
458
|
-
if (e && e.defaultProps) {
|
|
459
|
-
var w = e.defaultProps;
|
|
460
|
-
for (g in w)
|
|
461
|
-
b[g] === void 0 && (b[g] = w[g]);
|
|
462
|
-
}
|
|
463
|
-
if (h || k) {
|
|
464
|
-
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
465
|
-
h && tr(b, R), k && ar(b, R);
|
|
466
|
-
}
|
|
467
|
-
return nr(e, h, k, x, f, q.current, b);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
var oe = N.ReactCurrentOwner, Te = N.ReactDebugCurrentFrame;
|
|
471
|
-
function Y(e) {
|
|
472
|
-
if (e) {
|
|
473
|
-
var t = e._owner, a = Q(e.type, e._source, t ? t.type : null);
|
|
474
|
-
Te.setExtraStackFrame(a);
|
|
475
|
-
} else
|
|
476
|
-
Te.setExtraStackFrame(null);
|
|
477
|
-
}
|
|
478
|
-
var le;
|
|
479
|
-
le = !1;
|
|
480
|
-
function ce(e) {
|
|
481
|
-
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
482
|
-
}
|
|
483
|
-
function Oe() {
|
|
484
|
-
{
|
|
485
|
-
if (oe.current) {
|
|
486
|
-
var e = A(oe.current.type);
|
|
487
|
-
if (e)
|
|
488
|
-
return `
|
|
489
|
-
|
|
490
|
-
Check the render method of \`` + e + "`.";
|
|
491
|
-
}
|
|
492
|
-
return "";
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
function ir(e) {
|
|
496
|
-
{
|
|
497
|
-
if (e !== void 0) {
|
|
498
|
-
var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
499
|
-
return `
|
|
500
|
-
|
|
501
|
-
Check your code at ` + t + ":" + a + ".";
|
|
502
|
-
}
|
|
503
|
-
return "";
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
var Pe = {};
|
|
507
|
-
function or(e) {
|
|
508
|
-
{
|
|
509
|
-
var t = Oe();
|
|
510
|
-
if (!t) {
|
|
511
|
-
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
512
|
-
a && (t = `
|
|
513
|
-
|
|
514
|
-
Check the top-level render call using <` + a + ">.");
|
|
515
|
-
}
|
|
516
|
-
return t;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function De(e, t) {
|
|
520
|
-
{
|
|
521
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
522
|
-
return;
|
|
523
|
-
e._store.validated = !0;
|
|
524
|
-
var a = or(t);
|
|
525
|
-
if (Pe[a])
|
|
526
|
-
return;
|
|
527
|
-
Pe[a] = !0;
|
|
528
|
-
var f = "";
|
|
529
|
-
e && e._owner && e._owner !== oe.current && (f = " It was passed a child from " + A(e._owner.type) + "."), Y(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, f), Y(null);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
function Ae(e, t) {
|
|
533
|
-
{
|
|
534
|
-
if (typeof e != "object")
|
|
535
|
-
return;
|
|
536
|
-
if (se(e))
|
|
537
|
-
for (var a = 0; a < e.length; a++) {
|
|
538
|
-
var f = e[a];
|
|
539
|
-
ce(f) && De(f, t);
|
|
540
|
-
}
|
|
541
|
-
else if (ce(e))
|
|
542
|
-
e._store && (e._store.validated = !0);
|
|
543
|
-
else if (e) {
|
|
544
|
-
var x = S(e);
|
|
545
|
-
if (typeof x == "function" && x !== e.entries)
|
|
546
|
-
for (var g = x.call(e), b; !(b = g.next()).done; )
|
|
547
|
-
ce(b.value) && De(b.value, t);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function lr(e) {
|
|
552
|
-
{
|
|
553
|
-
var t = e.type;
|
|
554
|
-
if (t == null || typeof t == "string")
|
|
555
|
-
return;
|
|
556
|
-
var a;
|
|
557
|
-
if (typeof t == "function")
|
|
558
|
-
a = t.propTypes;
|
|
559
|
-
else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
|
|
560
|
-
// Inner props are checked in the reconciler.
|
|
561
|
-
t.$$typeof === _))
|
|
562
|
-
a = t.propTypes;
|
|
563
|
-
else
|
|
564
|
-
return;
|
|
565
|
-
if (a) {
|
|
566
|
-
var f = A(t);
|
|
567
|
-
Je(a, e.props, "prop", f, e);
|
|
568
|
-
} else if (t.PropTypes !== void 0 && !le) {
|
|
569
|
-
le = !0;
|
|
570
|
-
var x = A(t);
|
|
571
|
-
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
572
|
-
}
|
|
573
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
function cr(e) {
|
|
577
|
-
{
|
|
578
|
-
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
579
|
-
var f = t[a];
|
|
580
|
-
if (f !== "children" && f !== "key") {
|
|
581
|
-
Y(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), Y(null);
|
|
582
|
-
break;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
e.ref !== null && (Y(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
var Ie = {};
|
|
589
|
-
function Fe(e, t, a, f, x, g) {
|
|
590
|
-
{
|
|
591
|
-
var b = Me(e);
|
|
592
|
-
if (!b) {
|
|
593
|
-
var h = "";
|
|
594
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
595
|
-
var k = ir(x);
|
|
596
|
-
k ? h += k : h += Oe();
|
|
597
|
-
var w;
|
|
598
|
-
e === null ? w = "null" : se(e) ? w = "array" : e !== void 0 && e.$$typeof === u ? (w = "<" + (A(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, h);
|
|
599
|
-
}
|
|
600
|
-
var R = sr(e, t, a, x, g);
|
|
601
|
-
if (R == null)
|
|
602
|
-
return R;
|
|
603
|
-
if (b) {
|
|
604
|
-
var T = t.children;
|
|
605
|
-
if (T !== void 0)
|
|
606
|
-
if (f)
|
|
607
|
-
if (se(T)) {
|
|
608
|
-
for (var z = 0; z < T.length; z++)
|
|
609
|
-
Ae(T[z], e);
|
|
610
|
-
Object.freeze && Object.freeze(T);
|
|
611
|
-
} else
|
|
612
|
-
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
613
|
-
else
|
|
614
|
-
Ae(T, e);
|
|
615
|
-
}
|
|
616
|
-
if (U.call(t, "key")) {
|
|
617
|
-
var W = A(e), C = Object.keys(t).filter(function(_r) {
|
|
618
|
-
return _r !== "key";
|
|
619
|
-
}), ue = C.length > 0 ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
620
|
-
if (!Ie[W + ue]) {
|
|
621
|
-
var pr = C.length > 0 ? "{" + C.join(": ..., ") + ": ...}" : "{}";
|
|
622
|
-
y(`A props object containing a "key" prop is being spread into JSX:
|
|
623
|
-
let props = %s;
|
|
624
|
-
<%s {...props} />
|
|
625
|
-
React keys must be passed directly to JSX without using spread:
|
|
626
|
-
let props = %s;
|
|
627
|
-
<%s key={someKey} {...props} />`, ue, W, pr, W), Ie[W + ue] = !0;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
return e === n ? cr(R) : lr(R), R;
|
|
631
|
-
}
|
|
632
|
-
}
|
|
633
|
-
function ur(e, t, a) {
|
|
634
|
-
return Fe(e, t, a, !0);
|
|
635
|
-
}
|
|
636
|
-
function dr(e, t, a) {
|
|
637
|
-
return Fe(e, t, a, !1);
|
|
638
|
-
}
|
|
639
|
-
var fr = dr, mr = ur;
|
|
640
|
-
G.Fragment = n, G.jsx = fr, G.jsxs = mr;
|
|
641
|
-
}()), G;
|
|
642
|
-
}
|
|
643
|
-
process.env.NODE_ENV === "production" ? de.exports = xr() : de.exports = jr();
|
|
644
|
-
var r = de.exports;
|
|
645
|
-
const I = ({
|
|
646
|
-
name: l,
|
|
647
|
-
size: u = "L",
|
|
648
|
-
className: d = "",
|
|
649
|
-
onClick: n,
|
|
650
|
-
color: s,
|
|
651
|
-
role: i
|
|
1
|
+
import { jsx as e, jsxs as _, Fragment as A } from "react/jsx-runtime";
|
|
2
|
+
import E, { useState as C, useEffect as D, useRef as S, forwardRef as j, useCallback as I, useId as K } from "react";
|
|
3
|
+
import { createPortal as R } from "react-dom";
|
|
4
|
+
const w = ({
|
|
5
|
+
name: t,
|
|
6
|
+
size: i = "L",
|
|
7
|
+
className: l = "",
|
|
8
|
+
onClick: a,
|
|
9
|
+
color: n,
|
|
10
|
+
role: r
|
|
652
11
|
}) => {
|
|
653
|
-
const
|
|
654
|
-
return /* @__PURE__ */
|
|
12
|
+
const s = process.env.NODE_ENV === "production" ? "/eiDotter" : "";
|
|
13
|
+
return /* @__PURE__ */ e(
|
|
655
14
|
"svg",
|
|
656
15
|
{
|
|
657
|
-
className: `icon ${
|
|
658
|
-
onClick:
|
|
659
|
-
role:
|
|
660
|
-
"aria-label": `${
|
|
661
|
-
style:
|
|
662
|
-
children: /* @__PURE__ */
|
|
16
|
+
className: `icon ${i === "L" ? "icon--l" : "icon--s"} ${l} ${r ? `icon--${r}` : ""}`.trim(),
|
|
17
|
+
onClick: a,
|
|
18
|
+
role: r,
|
|
19
|
+
"aria-label": `${t} icon`,
|
|
20
|
+
style: n ? { color: n } : void 0,
|
|
21
|
+
children: /* @__PURE__ */ e("use", { href: `${s}/icons/sprites.svg#${t}` })
|
|
663
22
|
}
|
|
664
23
|
);
|
|
665
|
-
},
|
|
24
|
+
}, M = {
|
|
666
25
|
info: "Info",
|
|
667
26
|
success: "Done",
|
|
668
27
|
warning: "Warning",
|
|
669
28
|
error: "Error"
|
|
670
|
-
},
|
|
671
|
-
size:
|
|
672
|
-
type:
|
|
673
|
-
title:
|
|
674
|
-
children:
|
|
675
|
-
onClose:
|
|
676
|
-
onClickHere:
|
|
677
|
-
className:
|
|
678
|
-
}) => /* @__PURE__ */
|
|
679
|
-
/* @__PURE__ */
|
|
680
|
-
/* @__PURE__ */
|
|
681
|
-
|
|
29
|
+
}, P = ({
|
|
30
|
+
size: t = "L",
|
|
31
|
+
type: i = "info",
|
|
32
|
+
title: l = "Notification Title",
|
|
33
|
+
children: a = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit amet diam neque bibendum. Quisque in praesent sit erat...",
|
|
34
|
+
onClose: n,
|
|
35
|
+
onClickHere: r,
|
|
36
|
+
className: s = ""
|
|
37
|
+
}) => /* @__PURE__ */ _("div", { className: `alert alert--${t.toLowerCase()} alert--${i} ${s}`.trim(), children: [
|
|
38
|
+
/* @__PURE__ */ _("div", { className: "alert__header", children: [
|
|
39
|
+
/* @__PURE__ */ e("div", { className: "alert__icon", children: /* @__PURE__ */ e(
|
|
40
|
+
w,
|
|
682
41
|
{
|
|
683
|
-
name:
|
|
42
|
+
name: M[i],
|
|
684
43
|
size: "L",
|
|
685
|
-
"aria-label": `${
|
|
44
|
+
"aria-label": `${i} alert`
|
|
686
45
|
}
|
|
687
46
|
) }),
|
|
688
|
-
/* @__PURE__ */
|
|
689
|
-
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "alert__title", children: l }),
|
|
48
|
+
n && /* @__PURE__ */ e(
|
|
690
49
|
"button",
|
|
691
50
|
{
|
|
692
51
|
className: "alert__close",
|
|
693
|
-
onClick:
|
|
52
|
+
onClick: n,
|
|
694
53
|
"aria-label": "Close alert",
|
|
695
|
-
children: /* @__PURE__ */
|
|
696
|
-
|
|
54
|
+
children: /* @__PURE__ */ e(
|
|
55
|
+
w,
|
|
697
56
|
{
|
|
698
57
|
name: "Close",
|
|
699
58
|
size: "S"
|
|
@@ -702,264 +61,264 @@ const I = ({
|
|
|
702
61
|
}
|
|
703
62
|
)
|
|
704
63
|
] }),
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
/* @__PURE__ */
|
|
707
|
-
|
|
64
|
+
/* @__PURE__ */ e("div", { className: "alert__content", children: /* @__PURE__ */ _("div", { className: "alert__message", children: [
|
|
65
|
+
/* @__PURE__ */ e("span", { children: a }),
|
|
66
|
+
r && /* @__PURE__ */ e(
|
|
708
67
|
"button",
|
|
709
68
|
{
|
|
710
69
|
className: "alert__link",
|
|
711
|
-
onClick:
|
|
70
|
+
onClick: r,
|
|
712
71
|
"aria-label": "Click for more information",
|
|
713
72
|
children: "Click here"
|
|
714
73
|
}
|
|
715
74
|
)
|
|
716
75
|
] }) })
|
|
717
76
|
] });
|
|
718
|
-
const
|
|
719
|
-
title:
|
|
720
|
-
children:
|
|
721
|
-
defaultExpanded:
|
|
722
|
-
isHovered:
|
|
723
|
-
isActive:
|
|
724
|
-
onToggle:
|
|
77
|
+
const L = ({
|
|
78
|
+
title: t,
|
|
79
|
+
children: i,
|
|
80
|
+
defaultExpanded: l = !1,
|
|
81
|
+
isHovered: a = !1,
|
|
82
|
+
isActive: n = !1,
|
|
83
|
+
onToggle: r
|
|
725
84
|
}) => {
|
|
726
|
-
const [
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
}, [
|
|
85
|
+
const [s, o] = C(l);
|
|
86
|
+
D(() => {
|
|
87
|
+
o(l);
|
|
88
|
+
}, [l]);
|
|
730
89
|
const c = () => {
|
|
731
|
-
const
|
|
732
|
-
|
|
90
|
+
const m = !s;
|
|
91
|
+
o(m), r == null || r(m);
|
|
733
92
|
};
|
|
734
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ _(
|
|
735
94
|
"div",
|
|
736
95
|
{
|
|
737
96
|
className: `
|
|
738
97
|
section
|
|
739
|
-
${
|
|
740
|
-
${
|
|
741
|
-
${
|
|
98
|
+
${s ? "section--expanded" : ""}
|
|
99
|
+
${a ? "section--hover" : ""}
|
|
100
|
+
${n ? "section--active" : ""}
|
|
742
101
|
`.trim(),
|
|
743
102
|
children: [
|
|
744
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ _(
|
|
745
104
|
"button",
|
|
746
105
|
{
|
|
747
106
|
className: "section__header",
|
|
748
107
|
onClick: c,
|
|
749
|
-
"aria-expanded":
|
|
108
|
+
"aria-expanded": s,
|
|
750
109
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
|
|
110
|
+
/* @__PURE__ */ e("div", { className: "section__title", children: t }),
|
|
111
|
+
/* @__PURE__ */ e("div", { className: "section__icon", children: /* @__PURE__ */ e(
|
|
112
|
+
w,
|
|
754
113
|
{
|
|
755
|
-
name:
|
|
114
|
+
name: s ? "Chevron Up" : "Chevron Down",
|
|
756
115
|
size: "S"
|
|
757
116
|
}
|
|
758
117
|
) })
|
|
759
118
|
]
|
|
760
119
|
}
|
|
761
120
|
),
|
|
762
|
-
|
|
121
|
+
s && /* @__PURE__ */ e("div", { className: "section__content", children: i })
|
|
763
122
|
]
|
|
764
123
|
}
|
|
765
124
|
);
|
|
766
125
|
};
|
|
767
|
-
const
|
|
768
|
-
sections:
|
|
769
|
-
defaultExpandedIndex:
|
|
126
|
+
const W = ({
|
|
127
|
+
sections: t,
|
|
128
|
+
defaultExpandedIndex: i = -1
|
|
770
129
|
}) => {
|
|
771
|
-
const [
|
|
772
|
-
|
|
130
|
+
const [l, a] = C(i), n = (r, s) => {
|
|
131
|
+
a(s ? r : -1);
|
|
773
132
|
};
|
|
774
|
-
return /* @__PURE__ */
|
|
775
|
-
|
|
133
|
+
return /* @__PURE__ */ e("div", { className: "accordion-fill", children: t.map((r, s) => /* @__PURE__ */ e(
|
|
134
|
+
L,
|
|
776
135
|
{
|
|
777
|
-
title:
|
|
778
|
-
defaultExpanded:
|
|
779
|
-
onToggle: (
|
|
780
|
-
children:
|
|
136
|
+
title: r.title,
|
|
137
|
+
defaultExpanded: s === i,
|
|
138
|
+
onToggle: (o) => n(s, o),
|
|
139
|
+
children: r.content
|
|
781
140
|
},
|
|
782
|
-
|
|
141
|
+
s
|
|
783
142
|
)) });
|
|
784
143
|
};
|
|
785
|
-
const
|
|
786
|
-
variant:
|
|
787
|
-
size:
|
|
788
|
-
type:
|
|
789
|
-
disabled:
|
|
790
|
-
loading:
|
|
791
|
-
children:
|
|
792
|
-
onClick:
|
|
793
|
-
className:
|
|
144
|
+
const O = ({
|
|
145
|
+
variant: t = "primary",
|
|
146
|
+
size: i = "medium",
|
|
147
|
+
type: l = "button",
|
|
148
|
+
disabled: a = !1,
|
|
149
|
+
loading: n = !1,
|
|
150
|
+
children: r,
|
|
151
|
+
onClick: s,
|
|
152
|
+
className: o = "",
|
|
794
153
|
fullWidth: c = !1,
|
|
795
|
-
...
|
|
154
|
+
...m
|
|
796
155
|
}) => {
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
},
|
|
156
|
+
const d = (b) => {
|
|
157
|
+
a || n || s == null || s(b);
|
|
158
|
+
}, h = [
|
|
800
159
|
"button",
|
|
801
|
-
`button--${
|
|
802
|
-
`button--${
|
|
803
|
-
|
|
804
|
-
|
|
160
|
+
`button--${t}`,
|
|
161
|
+
`button--${i}`,
|
|
162
|
+
a && "button--disabled",
|
|
163
|
+
n && "button--loading",
|
|
805
164
|
c && "button--full-width",
|
|
806
|
-
|
|
165
|
+
o
|
|
807
166
|
].filter(Boolean).join(" ");
|
|
808
|
-
return /* @__PURE__ */
|
|
167
|
+
return /* @__PURE__ */ _(
|
|
809
168
|
"button",
|
|
810
169
|
{
|
|
811
|
-
type:
|
|
812
|
-
className:
|
|
813
|
-
onClick:
|
|
814
|
-
disabled:
|
|
815
|
-
"aria-disabled":
|
|
816
|
-
...
|
|
170
|
+
type: l,
|
|
171
|
+
className: h,
|
|
172
|
+
onClick: d,
|
|
173
|
+
disabled: a || n,
|
|
174
|
+
"aria-disabled": a || n,
|
|
175
|
+
...m,
|
|
817
176
|
children: [
|
|
818
|
-
|
|
819
|
-
/* @__PURE__ */
|
|
177
|
+
n && /* @__PURE__ */ e("span", { className: "button__loading-indicator", "aria-hidden": "true", children: "█" }),
|
|
178
|
+
/* @__PURE__ */ e("span", { className: `button__content ${n ? "button__content--loading" : ""}`, children: r })
|
|
820
179
|
]
|
|
821
180
|
}
|
|
822
181
|
);
|
|
823
182
|
};
|
|
824
|
-
const
|
|
825
|
-
title:
|
|
826
|
-
children:
|
|
827
|
-
footer:
|
|
828
|
-
variant:
|
|
829
|
-
className:
|
|
830
|
-
...
|
|
183
|
+
const Q = ({
|
|
184
|
+
title: t,
|
|
185
|
+
children: i,
|
|
186
|
+
footer: l,
|
|
187
|
+
variant: a = "default",
|
|
188
|
+
className: n = "",
|
|
189
|
+
...r
|
|
831
190
|
}) => {
|
|
832
|
-
const
|
|
191
|
+
const s = [
|
|
833
192
|
"card",
|
|
834
|
-
`card--${
|
|
835
|
-
|
|
193
|
+
`card--${a}`,
|
|
194
|
+
n
|
|
836
195
|
].filter(Boolean).join(" ");
|
|
837
|
-
return /* @__PURE__ */
|
|
838
|
-
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
|
|
196
|
+
return /* @__PURE__ */ _("div", { className: s, ...r, children: [
|
|
197
|
+
t && /* @__PURE__ */ e("div", { className: "card__header", children: /* @__PURE__ */ e("span", { className: "card__title", children: t }) }),
|
|
198
|
+
/* @__PURE__ */ e("div", { className: "card__body", children: i }),
|
|
199
|
+
l && /* @__PURE__ */ e("div", { className: "card__footer", children: l })
|
|
841
200
|
] });
|
|
842
201
|
};
|
|
843
|
-
const
|
|
844
|
-
checked:
|
|
845
|
-
defaultChecked:
|
|
846
|
-
onChange:
|
|
847
|
-
label:
|
|
848
|
-
disabled:
|
|
849
|
-
name:
|
|
850
|
-
value:
|
|
851
|
-
className:
|
|
202
|
+
const F = ({
|
|
203
|
+
checked: t,
|
|
204
|
+
defaultChecked: i,
|
|
205
|
+
onChange: l,
|
|
206
|
+
label: a,
|
|
207
|
+
disabled: n = !1,
|
|
208
|
+
name: r,
|
|
209
|
+
value: s,
|
|
210
|
+
className: o = "",
|
|
852
211
|
"aria-label": c,
|
|
853
|
-
...
|
|
212
|
+
...m
|
|
854
213
|
}) => {
|
|
855
|
-
const
|
|
856
|
-
|
|
857
|
-
},
|
|
214
|
+
const d = (b) => {
|
|
215
|
+
n || l == null || l(b.target.checked);
|
|
216
|
+
}, h = [
|
|
858
217
|
"checkbox",
|
|
859
|
-
|
|
860
|
-
|
|
218
|
+
n && "checkbox--disabled",
|
|
219
|
+
o
|
|
861
220
|
].filter(Boolean).join(" ");
|
|
862
|
-
return /* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
221
|
+
return /* @__PURE__ */ _("label", { className: h, children: [
|
|
222
|
+
/* @__PURE__ */ e(
|
|
864
223
|
"input",
|
|
865
224
|
{
|
|
866
225
|
type: "checkbox",
|
|
867
226
|
className: "checkbox__input",
|
|
868
|
-
checked:
|
|
869
|
-
defaultChecked:
|
|
870
|
-
onChange:
|
|
871
|
-
disabled:
|
|
872
|
-
name:
|
|
873
|
-
value:
|
|
874
|
-
"aria-label": c ||
|
|
875
|
-
...
|
|
227
|
+
checked: t,
|
|
228
|
+
defaultChecked: i,
|
|
229
|
+
onChange: d,
|
|
230
|
+
disabled: n,
|
|
231
|
+
name: r,
|
|
232
|
+
value: s,
|
|
233
|
+
"aria-label": c || a,
|
|
234
|
+
...m
|
|
876
235
|
}
|
|
877
236
|
),
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
|
|
237
|
+
/* @__PURE__ */ e("span", { className: "checkbox__box", "aria-hidden": "true" }),
|
|
238
|
+
a && /* @__PURE__ */ e("span", { className: "checkbox__label", children: a })
|
|
880
239
|
] });
|
|
881
240
|
};
|
|
882
|
-
const
|
|
883
|
-
prompt:
|
|
884
|
-
onCommand:
|
|
885
|
-
autoFocus:
|
|
886
|
-
className:
|
|
887
|
-
placeholder:
|
|
888
|
-
disabled:
|
|
241
|
+
const G = ({
|
|
242
|
+
prompt: t = "C:\\>",
|
|
243
|
+
onCommand: i,
|
|
244
|
+
autoFocus: l = !1,
|
|
245
|
+
className: a = "",
|
|
246
|
+
placeholder: n,
|
|
247
|
+
disabled: r = !1
|
|
889
248
|
}) => {
|
|
890
|
-
const [
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
}, [
|
|
894
|
-
const
|
|
895
|
-
|
|
896
|
-
},
|
|
897
|
-
!
|
|
249
|
+
const [s, o] = C(""), c = S(null);
|
|
250
|
+
D(() => {
|
|
251
|
+
l && c.current && c.current.focus();
|
|
252
|
+
}, [l]);
|
|
253
|
+
const m = (h) => {
|
|
254
|
+
h.key === "Enter" && s.trim() && !r && (i(s.trim()), o(""));
|
|
255
|
+
}, d = () => {
|
|
256
|
+
!r && c.current && c.current.focus();
|
|
898
257
|
};
|
|
899
|
-
return /* @__PURE__ */
|
|
258
|
+
return /* @__PURE__ */ _(
|
|
900
259
|
"div",
|
|
901
260
|
{
|
|
902
|
-
className: `command-prompt ${
|
|
903
|
-
onClick:
|
|
261
|
+
className: `command-prompt ${r ? "command-prompt--disabled" : ""} ${a}`.trim(),
|
|
262
|
+
onClick: d,
|
|
904
263
|
role: "textbox",
|
|
905
264
|
"aria-label": "Command prompt",
|
|
906
265
|
children: [
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ e("span", { className: "command-prompt__prompt", "aria-hidden": "true", children: t }),
|
|
267
|
+
/* @__PURE__ */ e(
|
|
909
268
|
"input",
|
|
910
269
|
{
|
|
911
270
|
ref: c,
|
|
912
271
|
className: "command-prompt__input",
|
|
913
|
-
value:
|
|
914
|
-
onChange: (
|
|
915
|
-
onKeyDown:
|
|
916
|
-
autoFocus:
|
|
272
|
+
value: s,
|
|
273
|
+
onChange: (h) => o(h.target.value),
|
|
274
|
+
onKeyDown: m,
|
|
275
|
+
autoFocus: l,
|
|
917
276
|
spellCheck: !1,
|
|
918
277
|
autoComplete: "off",
|
|
919
278
|
autoCapitalize: "off",
|
|
920
279
|
autoCorrect: "off",
|
|
921
|
-
placeholder:
|
|
922
|
-
disabled:
|
|
280
|
+
placeholder: n,
|
|
281
|
+
disabled: r,
|
|
923
282
|
"aria-label": "Command input"
|
|
924
283
|
}
|
|
925
284
|
),
|
|
926
|
-
/* @__PURE__ */
|
|
285
|
+
/* @__PURE__ */ e("span", { className: "command-prompt__cursor", "aria-hidden": "true", children: "█" })
|
|
927
286
|
]
|
|
928
287
|
}
|
|
929
288
|
);
|
|
930
289
|
};
|
|
931
|
-
const
|
|
932
|
-
value:
|
|
933
|
-
max:
|
|
934
|
-
variant:
|
|
935
|
-
size:
|
|
936
|
-
showLabel:
|
|
937
|
-
className:
|
|
938
|
-
"aria-label":
|
|
939
|
-
...
|
|
290
|
+
const H = ({
|
|
291
|
+
value: t,
|
|
292
|
+
max: i = 100,
|
|
293
|
+
variant: l = "default",
|
|
294
|
+
size: a = "medium",
|
|
295
|
+
showLabel: n = !1,
|
|
296
|
+
className: r = "",
|
|
297
|
+
"aria-label": s,
|
|
298
|
+
...o
|
|
940
299
|
}) => {
|
|
941
|
-
const c = Math.min(100, Math.max(0,
|
|
300
|
+
const c = Math.min(100, Math.max(0, t / i * 100)), m = Math.round(c / 5), d = 20 - m, h = [
|
|
942
301
|
"progress",
|
|
943
|
-
`progress--${
|
|
944
|
-
`progress--${
|
|
945
|
-
|
|
302
|
+
`progress--${l}`,
|
|
303
|
+
`progress--${a}`,
|
|
304
|
+
r
|
|
946
305
|
].filter(Boolean).join(" ");
|
|
947
|
-
return /* @__PURE__ */
|
|
306
|
+
return /* @__PURE__ */ _(
|
|
948
307
|
"div",
|
|
949
308
|
{
|
|
950
|
-
className:
|
|
309
|
+
className: h,
|
|
951
310
|
role: "progressbar",
|
|
952
|
-
"aria-valuenow":
|
|
311
|
+
"aria-valuenow": t,
|
|
953
312
|
"aria-valuemin": 0,
|
|
954
|
-
"aria-valuemax":
|
|
955
|
-
"aria-label":
|
|
956
|
-
...
|
|
313
|
+
"aria-valuemax": i,
|
|
314
|
+
"aria-label": s || `Progress: ${Math.round(c)}%`,
|
|
315
|
+
...o,
|
|
957
316
|
children: [
|
|
958
|
-
/* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ _("span", { className: "progress__bar", children: [
|
|
318
|
+
/* @__PURE__ */ e("span", { className: "progress__fill", children: "█".repeat(m) }),
|
|
319
|
+
/* @__PURE__ */ e("span", { className: "progress__empty", children: "░".repeat(d) })
|
|
961
320
|
] }),
|
|
962
|
-
|
|
321
|
+
n && /* @__PURE__ */ _("span", { className: "progress__label", children: [
|
|
963
322
|
Math.round(c),
|
|
964
323
|
"%"
|
|
965
324
|
] })
|
|
@@ -967,429 +326,429 @@ const Or = ({
|
|
|
967
326
|
}
|
|
968
327
|
);
|
|
969
328
|
};
|
|
970
|
-
const
|
|
971
|
-
variant:
|
|
972
|
-
className:
|
|
973
|
-
disabled:
|
|
974
|
-
...
|
|
975
|
-
},
|
|
976
|
-
const
|
|
329
|
+
const T = j(({
|
|
330
|
+
variant: t = "default",
|
|
331
|
+
className: i = "",
|
|
332
|
+
disabled: l,
|
|
333
|
+
...a
|
|
334
|
+
}, n) => {
|
|
335
|
+
const r = [
|
|
977
336
|
"input",
|
|
978
|
-
`input--${
|
|
979
|
-
|
|
980
|
-
|
|
337
|
+
`input--${t}`,
|
|
338
|
+
l && "input--disabled",
|
|
339
|
+
i
|
|
981
340
|
].filter(Boolean).join(" ");
|
|
982
|
-
return /* @__PURE__ */
|
|
341
|
+
return /* @__PURE__ */ e(
|
|
983
342
|
"input",
|
|
984
343
|
{
|
|
985
|
-
ref:
|
|
986
|
-
className:
|
|
987
|
-
disabled:
|
|
988
|
-
"aria-invalid":
|
|
989
|
-
...
|
|
344
|
+
ref: n,
|
|
345
|
+
className: r,
|
|
346
|
+
disabled: l,
|
|
347
|
+
"aria-invalid": t === "error",
|
|
348
|
+
...a
|
|
990
349
|
}
|
|
991
350
|
);
|
|
992
351
|
});
|
|
993
|
-
|
|
994
|
-
const
|
|
995
|
-
size:
|
|
996
|
-
title:
|
|
997
|
-
state:
|
|
998
|
-
resizable:
|
|
999
|
-
minimizable:
|
|
1000
|
-
maximizable:
|
|
1001
|
-
closeable:
|
|
1002
|
-
children:
|
|
352
|
+
T.displayName = "Input";
|
|
353
|
+
const J = ({
|
|
354
|
+
size: t = "medium",
|
|
355
|
+
title: i = "MS-DOS Terminal",
|
|
356
|
+
state: l = "active",
|
|
357
|
+
resizable: a = !0,
|
|
358
|
+
minimizable: n = !0,
|
|
359
|
+
maximizable: r = !0,
|
|
360
|
+
closeable: s = !0,
|
|
361
|
+
children: o,
|
|
1003
362
|
onMinimize: c,
|
|
1004
|
-
onMaximize:
|
|
1005
|
-
onClose:
|
|
1006
|
-
onFocus:
|
|
1007
|
-
className:
|
|
1008
|
-
autoFocus:
|
|
363
|
+
onMaximize: m,
|
|
364
|
+
onClose: d,
|
|
365
|
+
onFocus: h,
|
|
366
|
+
className: b = "",
|
|
367
|
+
autoFocus: y = !1
|
|
1009
368
|
}) => {
|
|
1010
|
-
const [
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
}, [
|
|
1014
|
-
const
|
|
1015
|
-
|
|
1016
|
-
},
|
|
1017
|
-
|
|
1018
|
-
},
|
|
1019
|
-
|
|
1020
|
-
},
|
|
1021
|
-
|
|
1022
|
-
},
|
|
1023
|
-
|
|
369
|
+
const [k, u] = C(l), [p, f] = C(!1), $ = S(null);
|
|
370
|
+
D(() => {
|
|
371
|
+
y && $.current && $.current.focus();
|
|
372
|
+
}, [y]);
|
|
373
|
+
const N = () => {
|
|
374
|
+
u("minimized"), c == null || c();
|
|
375
|
+
}, x = () => {
|
|
376
|
+
f(!p), m == null || m();
|
|
377
|
+
}, v = () => {
|
|
378
|
+
d == null || d();
|
|
379
|
+
}, B = () => {
|
|
380
|
+
u("active"), h == null || h();
|
|
381
|
+
}, z = (g) => {
|
|
382
|
+
g.altKey && g.key === "F4" && s && (g.preventDefault(), v());
|
|
1024
383
|
};
|
|
1025
|
-
return
|
|
384
|
+
return k === "minimized" ? /* @__PURE__ */ e(
|
|
1026
385
|
"div",
|
|
1027
386
|
{
|
|
1028
|
-
className: `terminal terminal--minimized ${
|
|
1029
|
-
onClick:
|
|
387
|
+
className: `terminal terminal--minimized ${b}`.trim(),
|
|
388
|
+
onClick: B,
|
|
1030
389
|
role: "button",
|
|
1031
390
|
tabIndex: 0,
|
|
1032
|
-
"aria-label": `Restore ${
|
|
1033
|
-
onKeyDown: (
|
|
1034
|
-
children: /* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */
|
|
391
|
+
"aria-label": `Restore ${i} window`,
|
|
392
|
+
onKeyDown: (g) => g.key === "Enter" && B(),
|
|
393
|
+
children: /* @__PURE__ */ _("div", { className: "terminal__taskbar-item", children: [
|
|
394
|
+
/* @__PURE__ */ e(w, { name: "App", size: "S" }),
|
|
395
|
+
/* @__PURE__ */ e("span", { className: "terminal__taskbar-title", children: i })
|
|
1037
396
|
] })
|
|
1038
397
|
}
|
|
1039
|
-
) : /* @__PURE__ */
|
|
398
|
+
) : /* @__PURE__ */ _(
|
|
1040
399
|
"div",
|
|
1041
400
|
{
|
|
1042
|
-
ref:
|
|
1043
|
-
className: `terminal terminal--${
|
|
401
|
+
ref: $,
|
|
402
|
+
className: `terminal terminal--${t} terminal--${k} ${p ? "terminal--maximized" : ""} ${b}`.trim(),
|
|
1044
403
|
tabIndex: 0,
|
|
1045
404
|
role: "dialog",
|
|
1046
|
-
"aria-label": `${
|
|
1047
|
-
onFocus:
|
|
1048
|
-
onKeyDown:
|
|
405
|
+
"aria-label": `${i} terminal window`,
|
|
406
|
+
onFocus: B,
|
|
407
|
+
onKeyDown: z,
|
|
1049
408
|
children: [
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ _("div", { className: "terminal__title-bar", children: [
|
|
410
|
+
/* @__PURE__ */ _("div", { className: "terminal__title", children: [
|
|
411
|
+
/* @__PURE__ */ e(w, { name: "App", size: "S", "aria-hidden": "true" }),
|
|
412
|
+
/* @__PURE__ */ e("span", { className: "terminal__title-text", children: i })
|
|
1054
413
|
] }),
|
|
1055
|
-
/* @__PURE__ */
|
|
1056
|
-
|
|
414
|
+
/* @__PURE__ */ _("div", { className: "terminal__controls", children: [
|
|
415
|
+
n && /* @__PURE__ */ e(
|
|
1057
416
|
"button",
|
|
1058
417
|
{
|
|
1059
418
|
className: "terminal__control terminal__control--minimize",
|
|
1060
|
-
onClick:
|
|
419
|
+
onClick: N,
|
|
1061
420
|
"aria-label": "Minimize window",
|
|
1062
421
|
title: "Minimize",
|
|
1063
|
-
children: /* @__PURE__ */
|
|
422
|
+
children: /* @__PURE__ */ e(w, { name: "Cancel", size: "S" })
|
|
1064
423
|
}
|
|
1065
424
|
),
|
|
1066
|
-
|
|
425
|
+
r && /* @__PURE__ */ e(
|
|
1067
426
|
"button",
|
|
1068
427
|
{
|
|
1069
428
|
className: "terminal__control terminal__control--maximize",
|
|
1070
|
-
onClick:
|
|
1071
|
-
"aria-label":
|
|
1072
|
-
title:
|
|
1073
|
-
children: /* @__PURE__ */
|
|
429
|
+
onClick: x,
|
|
430
|
+
"aria-label": p ? "Restore window" : "Maximize window",
|
|
431
|
+
title: p ? "Restore" : "Maximize",
|
|
432
|
+
children: /* @__PURE__ */ e(w, { name: p ? "Fullscreen" : "Add", size: "S" })
|
|
1074
433
|
}
|
|
1075
434
|
),
|
|
1076
|
-
|
|
435
|
+
s && /* @__PURE__ */ e(
|
|
1077
436
|
"button",
|
|
1078
437
|
{
|
|
1079
438
|
className: "terminal__control terminal__control--close",
|
|
1080
|
-
onClick:
|
|
439
|
+
onClick: v,
|
|
1081
440
|
"aria-label": "Close window",
|
|
1082
441
|
title: "Close",
|
|
1083
|
-
children: /* @__PURE__ */
|
|
442
|
+
children: /* @__PURE__ */ e(w, { name: "Close", size: "S" })
|
|
1084
443
|
}
|
|
1085
444
|
)
|
|
1086
445
|
] })
|
|
1087
446
|
] }),
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
/* @__PURE__ */
|
|
447
|
+
/* @__PURE__ */ e("div", { className: "terminal__content", role: "main", children: o || /* @__PURE__ */ e("div", { className: "terminal__default-content", children: /* @__PURE__ */ _("div", { className: "terminal__prompt", children: [
|
|
448
|
+
/* @__PURE__ */ e("span", { className: "terminal__path", children: "C:\\\\>" }),
|
|
449
|
+
/* @__PURE__ */ e("span", { className: "terminal__cursor", children: "█" })
|
|
1091
450
|
] }) }) }),
|
|
1092
|
-
|
|
451
|
+
a && /* @__PURE__ */ e("div", { className: "terminal__resize-handle", "aria-hidden": "true" })
|
|
1093
452
|
]
|
|
1094
453
|
}
|
|
1095
454
|
);
|
|
1096
455
|
};
|
|
1097
|
-
const
|
|
1098
|
-
tabs:
|
|
1099
|
-
variant:
|
|
1100
|
-
size:
|
|
1101
|
-
activeTab:
|
|
1102
|
-
defaultActiveTab:
|
|
1103
|
-
onTabChange:
|
|
1104
|
-
className:
|
|
1105
|
-
...
|
|
456
|
+
const X = ({
|
|
457
|
+
tabs: t,
|
|
458
|
+
variant: i = "underline",
|
|
459
|
+
size: l = "medium",
|
|
460
|
+
activeTab: a,
|
|
461
|
+
defaultActiveTab: n,
|
|
462
|
+
onTabChange: r,
|
|
463
|
+
className: s = "",
|
|
464
|
+
...o
|
|
1106
465
|
}) => {
|
|
1107
|
-
var
|
|
1108
|
-
const [c,
|
|
1109
|
-
|
|
1110
|
-
),
|
|
1111
|
-
|
|
1112
|
-
}, [
|
|
1113
|
-
var
|
|
1114
|
-
const
|
|
1115
|
-
let
|
|
1116
|
-
switch (
|
|
466
|
+
var k;
|
|
467
|
+
const [c, m] = C(
|
|
468
|
+
n || ((k = t[0]) == null ? void 0 : k.id) || ""
|
|
469
|
+
), d = a !== void 0 ? a : c, h = I((u, p) => {
|
|
470
|
+
p || (a === void 0 && m(u), r == null || r(u));
|
|
471
|
+
}, [a, r]), b = I((u, p) => {
|
|
472
|
+
var x;
|
|
473
|
+
const f = t.filter((v) => !v.disabled), $ = f.findIndex((v) => v.id === t[p].id);
|
|
474
|
+
let N = null;
|
|
475
|
+
switch (u.key) {
|
|
1117
476
|
case "ArrowLeft":
|
|
1118
477
|
case "ArrowUp":
|
|
1119
|
-
|
|
478
|
+
u.preventDefault(), N = $ > 0 ? $ - 1 : f.length - 1;
|
|
1120
479
|
break;
|
|
1121
480
|
case "ArrowRight":
|
|
1122
481
|
case "ArrowDown":
|
|
1123
|
-
|
|
482
|
+
u.preventDefault(), N = $ < f.length - 1 ? $ + 1 : 0;
|
|
1124
483
|
break;
|
|
1125
484
|
case "Home":
|
|
1126
|
-
|
|
485
|
+
u.preventDefault(), N = 0;
|
|
1127
486
|
break;
|
|
1128
487
|
case "End":
|
|
1129
|
-
|
|
488
|
+
u.preventDefault(), N = f.length - 1;
|
|
1130
489
|
break;
|
|
1131
490
|
}
|
|
1132
|
-
if (
|
|
1133
|
-
const
|
|
1134
|
-
|
|
491
|
+
if (N !== null) {
|
|
492
|
+
const v = f[N];
|
|
493
|
+
h(v.id, v.disabled), (x = document.querySelectorAll('[role="tab"]:not([disabled])')[N]) == null || x.focus();
|
|
1135
494
|
}
|
|
1136
|
-
}, [
|
|
495
|
+
}, [t, h]), y = [
|
|
1137
496
|
"tabs",
|
|
1138
|
-
`tabs--${
|
|
1139
|
-
`tabs--${
|
|
1140
|
-
|
|
497
|
+
`tabs--${i}`,
|
|
498
|
+
`tabs--${l}`,
|
|
499
|
+
s
|
|
1141
500
|
].filter(Boolean).join(" ");
|
|
1142
|
-
return /* @__PURE__ */
|
|
1143
|
-
const
|
|
501
|
+
return /* @__PURE__ */ e("div", { className: y, role: "tablist", ...o, children: t.map((u, p) => {
|
|
502
|
+
const f = d === u.id, $ = [
|
|
1144
503
|
"tabs__tab",
|
|
1145
|
-
|
|
1146
|
-
|
|
504
|
+
f && "tabs__tab--active",
|
|
505
|
+
u.disabled && "tabs__tab--disabled"
|
|
1147
506
|
].filter(Boolean).join(" ");
|
|
1148
|
-
return /* @__PURE__ */
|
|
507
|
+
return /* @__PURE__ */ e(
|
|
1149
508
|
"button",
|
|
1150
509
|
{
|
|
1151
510
|
role: "tab",
|
|
1152
|
-
id: `tab-${
|
|
1153
|
-
"aria-selected":
|
|
1154
|
-
tabIndex:
|
|
1155
|
-
disabled:
|
|
1156
|
-
className:
|
|
1157
|
-
onClick: () =>
|
|
1158
|
-
onKeyDown: (
|
|
1159
|
-
children:
|
|
511
|
+
id: `tab-${u.id}`,
|
|
512
|
+
"aria-selected": f,
|
|
513
|
+
tabIndex: f ? 0 : -1,
|
|
514
|
+
disabled: u.disabled,
|
|
515
|
+
className: $,
|
|
516
|
+
onClick: () => h(u.id, u.disabled),
|
|
517
|
+
onKeyDown: (N) => b(N, p),
|
|
518
|
+
children: u.label
|
|
1160
519
|
},
|
|
1161
|
-
|
|
520
|
+
u.id
|
|
1162
521
|
);
|
|
1163
522
|
}) });
|
|
1164
523
|
};
|
|
1165
|
-
const
|
|
1166
|
-
variant:
|
|
1167
|
-
size:
|
|
1168
|
-
dot:
|
|
1169
|
-
children:
|
|
1170
|
-
className:
|
|
1171
|
-
...
|
|
524
|
+
const Y = ({
|
|
525
|
+
variant: t = "default",
|
|
526
|
+
size: i = "medium",
|
|
527
|
+
dot: l = !1,
|
|
528
|
+
children: a,
|
|
529
|
+
className: n = "",
|
|
530
|
+
...r
|
|
1172
531
|
}) => {
|
|
1173
|
-
const
|
|
532
|
+
const s = [
|
|
1174
533
|
"badge",
|
|
1175
|
-
`badge--${
|
|
1176
|
-
`badge--${
|
|
1177
|
-
|
|
1178
|
-
|
|
534
|
+
`badge--${t}`,
|
|
535
|
+
`badge--${i}`,
|
|
536
|
+
l && "badge--with-dot",
|
|
537
|
+
n
|
|
1179
538
|
].filter(Boolean).join(" ");
|
|
1180
|
-
return /* @__PURE__ */
|
|
1181
|
-
|
|
1182
|
-
/* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ _("span", { className: s, ...r, children: [
|
|
540
|
+
l && /* @__PURE__ */ e("span", { className: "badge__dot", "aria-hidden": "true" }),
|
|
541
|
+
/* @__PURE__ */ e("span", { className: "badge__content", children: a })
|
|
1183
542
|
] });
|
|
1184
543
|
};
|
|
1185
|
-
const
|
|
1186
|
-
checked:
|
|
1187
|
-
defaultChecked:
|
|
1188
|
-
onCheckedChange:
|
|
1189
|
-
disabled:
|
|
1190
|
-
name:
|
|
1191
|
-
value:
|
|
1192
|
-
className:
|
|
1193
|
-
...
|
|
544
|
+
const Z = ({
|
|
545
|
+
checked: t,
|
|
546
|
+
defaultChecked: i = !1,
|
|
547
|
+
onCheckedChange: l,
|
|
548
|
+
disabled: a = !1,
|
|
549
|
+
name: n,
|
|
550
|
+
value: r,
|
|
551
|
+
className: s = "",
|
|
552
|
+
...o
|
|
1194
553
|
}) => {
|
|
1195
|
-
const [c,
|
|
1196
|
-
if (
|
|
554
|
+
const [c, m] = E.useState(i), d = t !== void 0, h = d ? t : c, b = () => {
|
|
555
|
+
if (a)
|
|
1197
556
|
return;
|
|
1198
|
-
const
|
|
1199
|
-
|
|
1200
|
-
},
|
|
1201
|
-
(
|
|
1202
|
-
},
|
|
557
|
+
const u = !h;
|
|
558
|
+
d || m(u), l == null || l(u);
|
|
559
|
+
}, y = (u) => {
|
|
560
|
+
(u.key === " " || u.key === "Enter") && (u.preventDefault(), b());
|
|
561
|
+
}, k = [
|
|
1203
562
|
"switch",
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
563
|
+
h && "switch--checked",
|
|
564
|
+
a && "switch--disabled",
|
|
565
|
+
s
|
|
1207
566
|
].filter(Boolean).join(" ");
|
|
1208
|
-
return /* @__PURE__ */
|
|
567
|
+
return /* @__PURE__ */ _(
|
|
1209
568
|
"button",
|
|
1210
569
|
{
|
|
1211
570
|
type: "button",
|
|
1212
571
|
role: "switch",
|
|
1213
|
-
"aria-checked":
|
|
1214
|
-
"aria-disabled":
|
|
1215
|
-
className:
|
|
1216
|
-
onClick:
|
|
1217
|
-
onKeyDown:
|
|
1218
|
-
disabled:
|
|
1219
|
-
...
|
|
572
|
+
"aria-checked": h,
|
|
573
|
+
"aria-disabled": a,
|
|
574
|
+
className: k,
|
|
575
|
+
onClick: b,
|
|
576
|
+
onKeyDown: y,
|
|
577
|
+
disabled: a,
|
|
578
|
+
...o,
|
|
1220
579
|
children: [
|
|
1221
|
-
/* @__PURE__ */
|
|
1222
|
-
|
|
580
|
+
/* @__PURE__ */ e("span", { className: "switch__track", children: /* @__PURE__ */ e("span", { className: "switch__thumb" }) }),
|
|
581
|
+
n && /* @__PURE__ */ e(
|
|
1223
582
|
"input",
|
|
1224
583
|
{
|
|
1225
584
|
type: "hidden",
|
|
1226
|
-
name:
|
|
1227
|
-
value:
|
|
585
|
+
name: n,
|
|
586
|
+
value: h ? r || "on" : ""
|
|
1228
587
|
}
|
|
1229
588
|
)
|
|
1230
589
|
]
|
|
1231
590
|
}
|
|
1232
591
|
);
|
|
1233
592
|
};
|
|
1234
|
-
const
|
|
1235
|
-
trail:
|
|
1236
|
-
currentLabel:
|
|
1237
|
-
showBackArrow:
|
|
1238
|
-
separator:
|
|
1239
|
-
linkComponent:
|
|
1240
|
-
className:
|
|
593
|
+
const ee = ({
|
|
594
|
+
trail: t = [],
|
|
595
|
+
currentLabel: i,
|
|
596
|
+
showBackArrow: l = !0,
|
|
597
|
+
separator: a = "/",
|
|
598
|
+
linkComponent: n,
|
|
599
|
+
className: r = ""
|
|
1241
600
|
}) => {
|
|
1242
|
-
const
|
|
601
|
+
const s = [
|
|
1243
602
|
"breadcrumb",
|
|
1244
|
-
|
|
1245
|
-
].filter(Boolean).join(" "),
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1248
|
-
/* @__PURE__ */
|
|
603
|
+
r
|
|
604
|
+
].filter(Boolean).join(" "), o = (c, m) => {
|
|
605
|
+
const d = /* @__PURE__ */ _(A, { children: [
|
|
606
|
+
l && m && /* @__PURE__ */ e("span", { className: "breadcrumb__back-arrow", "aria-hidden": "true", children: "<" }),
|
|
607
|
+
/* @__PURE__ */ e("span", { children: c.label })
|
|
1249
608
|
] });
|
|
1250
|
-
return
|
|
609
|
+
return n ? /* @__PURE__ */ e(n, { href: c.href, className: "breadcrumb__link", children: d }) : /* @__PURE__ */ e("a", { href: c.href, className: "breadcrumb__link", children: d });
|
|
1251
610
|
};
|
|
1252
|
-
return /* @__PURE__ */
|
|
1253
|
-
|
|
1254
|
-
const
|
|
1255
|
-
return /* @__PURE__ */
|
|
1256
|
-
|
|
1257
|
-
|
|
611
|
+
return /* @__PURE__ */ e("nav", { "aria-label": "Breadcrumb", className: s, children: /* @__PURE__ */ _("ol", { className: "breadcrumb__list", children: [
|
|
612
|
+
t.map((c, m) => {
|
|
613
|
+
const d = m === t.length - 1, h = m < t.length - 1;
|
|
614
|
+
return /* @__PURE__ */ _("li", { className: "breadcrumb__item", children: [
|
|
615
|
+
o(c, d),
|
|
616
|
+
h && /* @__PURE__ */ e("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: a })
|
|
1258
617
|
] }, `${c.href}-${c.label}`);
|
|
1259
618
|
}),
|
|
1260
|
-
|
|
1261
|
-
/* @__PURE__ */
|
|
619
|
+
t.length > 0 && /* @__PURE__ */ e("li", { className: "breadcrumb__item", children: /* @__PURE__ */ e("span", { className: "breadcrumb__separator", "aria-hidden": "true", children: a }) }),
|
|
620
|
+
/* @__PURE__ */ e("li", { className: "breadcrumb__item breadcrumb__item--current", "aria-current": "page", children: /* @__PURE__ */ e("span", { className: "breadcrumb__current", children: i }) })
|
|
1262
621
|
] }) });
|
|
1263
622
|
};
|
|
1264
|
-
const
|
|
1265
|
-
scanlines:
|
|
1266
|
-
glow:
|
|
1267
|
-
flicker:
|
|
1268
|
-
intensity:
|
|
1269
|
-
className:
|
|
623
|
+
const ae = ({
|
|
624
|
+
scanlines: t = !0,
|
|
625
|
+
glow: i = !0,
|
|
626
|
+
flicker: l = !0,
|
|
627
|
+
intensity: a = 1,
|
|
628
|
+
className: n = ""
|
|
1270
629
|
}) => {
|
|
1271
|
-
const
|
|
630
|
+
const r = [
|
|
1272
631
|
"retro-effects",
|
|
1273
|
-
|
|
1274
|
-
].filter(Boolean).join(" ")
|
|
1275
|
-
return /* @__PURE__ */
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
632
|
+
n
|
|
633
|
+
].filter(Boolean).join(" ");
|
|
634
|
+
return /* @__PURE__ */ _("div", { className: r, style: { "--retro-intensity": a }, "aria-hidden": "true", children: [
|
|
635
|
+
t && /* @__PURE__ */ e("div", { className: "retro-effects__scanlines" }),
|
|
636
|
+
i && /* @__PURE__ */ e("div", { className: "retro-effects__glow" }),
|
|
637
|
+
l && /* @__PURE__ */ e("div", { className: "retro-effects__flicker" })
|
|
1279
638
|
] });
|
|
1280
639
|
};
|
|
1281
|
-
const
|
|
1282
|
-
shape:
|
|
1283
|
-
variant:
|
|
1284
|
-
isActive:
|
|
1285
|
-
label:
|
|
1286
|
-
labelPosition:
|
|
1287
|
-
size:
|
|
1288
|
-
className:
|
|
1289
|
-
onClick:
|
|
640
|
+
const ne = ({
|
|
641
|
+
shape: t = "circle",
|
|
642
|
+
variant: i = "default",
|
|
643
|
+
isActive: l = !1,
|
|
644
|
+
label: a,
|
|
645
|
+
labelPosition: n = "left",
|
|
646
|
+
size: r = "medium",
|
|
647
|
+
className: s = "",
|
|
648
|
+
onClick: o,
|
|
1290
649
|
...c
|
|
1291
650
|
}) => {
|
|
1292
|
-
const
|
|
651
|
+
const m = [
|
|
1293
652
|
"timeline-node",
|
|
1294
|
-
`timeline-node--${
|
|
1295
|
-
`timeline-node--${u}`,
|
|
653
|
+
`timeline-node--${t}`,
|
|
1296
654
|
`timeline-node--${i}`,
|
|
1297
|
-
`timeline-node
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
o
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
p && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), p());
|
|
1305
|
-
};
|
|
1306
|
-
return /* @__PURE__ */ r.jsxs(
|
|
655
|
+
`timeline-node--${r}`,
|
|
656
|
+
`timeline-node--label-${n}`,
|
|
657
|
+
l && "timeline-node--active",
|
|
658
|
+
o && "timeline-node--interactive",
|
|
659
|
+
s
|
|
660
|
+
].filter(Boolean).join(" ");
|
|
661
|
+
return /* @__PURE__ */ _(
|
|
1307
662
|
"div",
|
|
1308
663
|
{
|
|
1309
|
-
className:
|
|
1310
|
-
onClick:
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
664
|
+
className: m,
|
|
665
|
+
onClick: () => {
|
|
666
|
+
o && o();
|
|
667
|
+
},
|
|
668
|
+
onKeyDown: (b) => {
|
|
669
|
+
o && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), o());
|
|
670
|
+
},
|
|
671
|
+
role: o ? "button" : void 0,
|
|
672
|
+
tabIndex: o ? 0 : void 0,
|
|
673
|
+
"aria-pressed": o ? l : void 0,
|
|
1315
674
|
...c,
|
|
1316
675
|
children: [
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
|
|
1321
|
-
|
|
676
|
+
a && n === "left" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--left", children: a }),
|
|
677
|
+
a && n === "top" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--top", children: a }),
|
|
678
|
+
/* @__PURE__ */ e("span", { className: "timeline-node__marker", "aria-hidden": "true" }),
|
|
679
|
+
a && n === "right" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--right", children: a }),
|
|
680
|
+
a && n === "bottom" && /* @__PURE__ */ e("span", { className: "timeline-node__label timeline-node__label--bottom", children: a })
|
|
1322
681
|
]
|
|
1323
682
|
}
|
|
1324
683
|
);
|
|
1325
684
|
};
|
|
1326
|
-
const
|
|
1327
|
-
isOpen:
|
|
1328
|
-
onClose:
|
|
1329
|
-
title:
|
|
1330
|
-
children:
|
|
1331
|
-
footer:
|
|
1332
|
-
className:
|
|
685
|
+
const te = ({
|
|
686
|
+
isOpen: t,
|
|
687
|
+
onClose: i,
|
|
688
|
+
title: l,
|
|
689
|
+
children: a,
|
|
690
|
+
footer: n,
|
|
691
|
+
className: r = ""
|
|
1333
692
|
}) => {
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1338
|
-
}, [
|
|
693
|
+
const s = S(null), o = K();
|
|
694
|
+
D(() => {
|
|
695
|
+
const d = s.current;
|
|
696
|
+
d && (t && !d.open ? d.showModal() : !t && d.open && d.close());
|
|
697
|
+
}, [t]);
|
|
1339
698
|
const c = () => {
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
|
|
699
|
+
i();
|
|
700
|
+
}, m = (d) => {
|
|
701
|
+
d.target === s.current && i();
|
|
1343
702
|
};
|
|
1344
|
-
return
|
|
1345
|
-
/* @__PURE__ */
|
|
703
|
+
return R(
|
|
704
|
+
/* @__PURE__ */ e(
|
|
1346
705
|
"dialog",
|
|
1347
706
|
{
|
|
1348
|
-
ref:
|
|
1349
|
-
className: `modal ${
|
|
1350
|
-
"aria-labelledby":
|
|
707
|
+
ref: s,
|
|
708
|
+
className: `modal ${r}`.trim(),
|
|
709
|
+
"aria-labelledby": o,
|
|
1351
710
|
onClose: c,
|
|
1352
|
-
onClick:
|
|
1353
|
-
children: /* @__PURE__ */
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1356
|
-
/* @__PURE__ */
|
|
711
|
+
onClick: m,
|
|
712
|
+
children: /* @__PURE__ */ _("div", { className: "modal__container", children: [
|
|
713
|
+
/* @__PURE__ */ _("header", { className: "modal__header", children: [
|
|
714
|
+
/* @__PURE__ */ e("h2", { id: o, className: "modal__title", children: l }),
|
|
715
|
+
/* @__PURE__ */ e(
|
|
1357
716
|
"button",
|
|
1358
717
|
{
|
|
1359
718
|
type: "button",
|
|
1360
719
|
className: "modal__close",
|
|
1361
|
-
onClick:
|
|
720
|
+
onClick: i,
|
|
1362
721
|
"aria-label": "Close modal",
|
|
1363
|
-
children: /* @__PURE__ */
|
|
722
|
+
children: /* @__PURE__ */ e(w, { name: "Close", size: "S" })
|
|
1364
723
|
}
|
|
1365
724
|
)
|
|
1366
725
|
] }),
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
|
|
726
|
+
/* @__PURE__ */ e("div", { className: "modal__body", children: a }),
|
|
727
|
+
n && /* @__PURE__ */ e("footer", { className: "modal__footer", children: n })
|
|
1369
728
|
] })
|
|
1370
729
|
}
|
|
1371
730
|
),
|
|
1372
731
|
document.body
|
|
1373
732
|
);
|
|
1374
|
-
},
|
|
733
|
+
}, re = "0.3.0";
|
|
1375
734
|
export {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
735
|
+
W as AccordionFill,
|
|
736
|
+
P as Alert,
|
|
737
|
+
Y as Badge,
|
|
738
|
+
ee as Breadcrumb,
|
|
739
|
+
O as Button,
|
|
740
|
+
Q as Card,
|
|
741
|
+
F as Checkbox,
|
|
742
|
+
G as CommandPrompt,
|
|
743
|
+
w as Icon,
|
|
744
|
+
T as Input,
|
|
745
|
+
te as Modal,
|
|
746
|
+
H as Progress,
|
|
747
|
+
ae as RetroEffects,
|
|
748
|
+
L as Section,
|
|
749
|
+
Z as Switch,
|
|
750
|
+
X as Tabs,
|
|
751
|
+
J as Terminal,
|
|
752
|
+
ne as TimelineNode,
|
|
753
|
+
re as version
|
|
1395
754
|
};
|