@emporix/cockpit-component-library 1.0.1 → 1.0.3
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.d.ts +1252 -27
- package/dist/index.es.js +2327 -1153
- package/dist/index.umd.js +49 -30
- package/dist/quill-B5-e7UWH.js +7531 -0
- package/dist/style.css +7 -1
- package/dist/styles.d.ts +1 -4
- package/package.json +5 -4
- package/dist/components/buttons/PrimaryButton.d.ts +0 -37
- package/dist/components/buttons/PrimaryButton.d.ts.map +0 -1
- package/dist/components/buttons/SecondaryButton.d.ts +0 -33
- package/dist/components/buttons/SecondaryButton.d.ts.map +0 -1
- package/dist/components/card/Card.d.ts +0 -20
- package/dist/components/card/Card.d.ts.map +0 -1
- package/dist/components/chip/Chip.d.ts +0 -25
- package/dist/components/chip/Chip.d.ts.map +0 -1
- package/dist/components/dropdown/Dropdown.d.ts +0 -107
- package/dist/components/dropdown/Dropdown.d.ts.map +0 -1
- package/dist/components/input/InputText.d.ts +0 -37
- package/dist/components/input/InputText.d.ts.map +0 -1
- package/dist/components/selectbutton/SelectButton.d.ts +0 -63
- package/dist/components/selectbutton/SelectButton.d.ts.map +0 -1
- package/dist/components/tabs/Tabs.d.ts +0 -39
- package/dist/components/tabs/Tabs.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,1339 +1,2513 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
var it;
|
|
13
|
-
function $t() {
|
|
14
|
-
if (it) return we;
|
|
15
|
-
it = 1;
|
|
16
|
-
var t = X, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function y(j, l, d) {
|
|
18
|
-
var b, D = {}, I = null, Y = null;
|
|
19
|
-
d !== void 0 && (I = "" + d), l.key !== void 0 && (I = "" + l.key), l.ref !== void 0 && (Y = l.ref);
|
|
20
|
-
for (b in l) i.call(l, b) && !m.hasOwnProperty(b) && (D[b] = l[b]);
|
|
21
|
-
if (j && j.defaultProps) for (b in l = j.defaultProps, l) D[b] === void 0 && (D[b] = l[b]);
|
|
22
|
-
return { $$typeof: n, type: j, key: I, ref: Y, props: D, _owner: f.current };
|
|
23
|
-
}
|
|
24
|
-
return we.Fragment = a, we.jsx = y, we.jsxs = y, we;
|
|
25
|
-
}
|
|
26
|
-
var Ce = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var ot;
|
|
37
|
-
function Ft() {
|
|
38
|
-
return ot || (ot = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
39
|
-
var t = X, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), j = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, C = "@@iterator";
|
|
40
|
-
function k(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = Q && e[Q] || e[C];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var S = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function v(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), c = 1; c < r; c++)
|
|
50
|
-
o[c - 1] = arguments[c];
|
|
51
|
-
F("error", e, o);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function F(e, r, o) {
|
|
55
|
-
{
|
|
56
|
-
var c = S.ReactDebugCurrentFrame, g = c.getStackAddendum();
|
|
57
|
-
g !== "" && (r += "%s", o = o.concat([g]));
|
|
58
|
-
var R = o.map(function(_) {
|
|
59
|
-
return String(_);
|
|
60
|
-
});
|
|
61
|
-
R.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, R);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var N = !1, O = !1, Z = !1, q = !1, Se = !1, ae;
|
|
65
|
-
ae = Symbol.for("react.module.reference");
|
|
66
|
-
function Pe(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === i || e === m || Se || e === f || e === d || e === b || q || e === Y || N || O || Z || typeof e == "object" && e !== null && (e.$$typeof === I || e.$$typeof === D || e.$$typeof === y || e.$$typeof === j || e.$$typeof === l || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === ae || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function ie(e, r, o) {
|
|
74
|
-
var c = e.displayName;
|
|
75
|
-
if (c)
|
|
76
|
-
return c;
|
|
77
|
-
var g = r.displayName || r.name || "";
|
|
78
|
-
return g !== "" ? o + "(" + g + ")" : o;
|
|
79
|
-
}
|
|
80
|
-
function K(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function W(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case i:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case a:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case m:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case f:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case d:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case b:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case j:
|
|
107
|
-
var r = e;
|
|
108
|
-
return K(r) + ".Consumer";
|
|
109
|
-
case y:
|
|
110
|
-
var o = e;
|
|
111
|
-
return K(o._context) + ".Provider";
|
|
112
|
-
case l:
|
|
113
|
-
return ie(e, e.render, "ForwardRef");
|
|
114
|
-
case D:
|
|
115
|
-
var c = e.displayName || null;
|
|
116
|
-
return c !== null ? c : W(e.type) || "Memo";
|
|
117
|
-
case I: {
|
|
118
|
-
var g = e, R = g._payload, _ = g._init;
|
|
119
|
-
try {
|
|
120
|
-
return W(_(R));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var B = Object.assign, H = 0, Te, ye, De, ge, oe, L, se;
|
|
129
|
-
function Ie() {
|
|
130
|
-
}
|
|
131
|
-
Ie.__reactDisabledLog = !0;
|
|
132
|
-
function Ne() {
|
|
133
|
-
{
|
|
134
|
-
if (H === 0) {
|
|
135
|
-
Te = console.log, ye = console.info, De = console.warn, ge = console.error, oe = console.group, L = console.groupCollapsed, se = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: Ie,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
H++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function be() {
|
|
156
|
-
{
|
|
157
|
-
if (H--, H === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: B({}, e, {
|
|
165
|
-
value: Te
|
|
166
|
-
}),
|
|
167
|
-
info: B({}, e, {
|
|
168
|
-
value: ye
|
|
169
|
-
}),
|
|
170
|
-
warn: B({}, e, {
|
|
171
|
-
value: De
|
|
172
|
-
}),
|
|
173
|
-
error: B({}, e, {
|
|
174
|
-
value: ge
|
|
175
|
-
}),
|
|
176
|
-
group: B({}, e, {
|
|
177
|
-
value: oe
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: B({}, e, {
|
|
180
|
-
value: L
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: B({}, e, {
|
|
183
|
-
value: se
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
H < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var le = S.ReactCurrentDispatcher, xe;
|
|
191
|
-
function ce(e, r, o) {
|
|
192
|
-
{
|
|
193
|
-
if (xe === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (g) {
|
|
197
|
-
var c = g.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
xe = c && c[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + xe + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var je = !1, ue;
|
|
205
|
-
{
|
|
206
|
-
var fe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
ue = new fe();
|
|
208
|
-
}
|
|
209
|
-
function de(e, r) {
|
|
210
|
-
if (!e || je)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var o = ue.get(e);
|
|
214
|
-
if (o !== void 0)
|
|
215
|
-
return o;
|
|
216
|
-
}
|
|
217
|
-
var c;
|
|
218
|
-
je = !0;
|
|
219
|
-
var g = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var R;
|
|
222
|
-
R = le.current, le.current = null, Ne();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var _ = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(_.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(_, []);
|
|
235
|
-
} catch (A) {
|
|
236
|
-
c = A;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], _);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
_.call();
|
|
242
|
-
} catch (A) {
|
|
243
|
-
c = A;
|
|
244
|
-
}
|
|
245
|
-
e.call(_.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (A) {
|
|
251
|
-
c = A;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (A) {
|
|
256
|
-
if (A && c && typeof A.stack == "string") {
|
|
257
|
-
for (var p = A.stack.split(`
|
|
258
|
-
`), $ = c.stack.split(`
|
|
259
|
-
`), P = p.length - 1, T = $.length - 1; P >= 1 && T >= 0 && p[P] !== $[T]; )
|
|
260
|
-
T--;
|
|
261
|
-
for (; P >= 1 && T >= 0; P--, T--)
|
|
262
|
-
if (p[P] !== $[T]) {
|
|
263
|
-
if (P !== 1 || T !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (P--, T--, T < 0 || p[P] !== $[T]) {
|
|
266
|
-
var z = `
|
|
267
|
-
` + p[P].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", e.displayName)), typeof e == "function" && ue.set(e, z), z;
|
|
269
|
-
}
|
|
270
|
-
while (P >= 1 && T >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
je = !1, le.current = R, be(), Error.prepareStackTrace = g;
|
|
276
|
-
}
|
|
277
|
-
var ve = e ? e.displayName || e.name : "", ee = ve ? ce(ve) : "";
|
|
278
|
-
return typeof e == "function" && ue.set(e, ee), ee;
|
|
279
|
-
}
|
|
280
|
-
function s(e, r, o) {
|
|
281
|
-
return de(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function h(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function x(e, r, o) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return de(e, h(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return ce(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case d:
|
|
296
|
-
return ce("Suspense");
|
|
297
|
-
case b:
|
|
298
|
-
return ce("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case l:
|
|
303
|
-
return s(e.render);
|
|
304
|
-
case D:
|
|
305
|
-
return x(e.type, r, o);
|
|
306
|
-
case I: {
|
|
307
|
-
var c = e, g = c._payload, R = c._init;
|
|
308
|
-
try {
|
|
309
|
-
return x(R(g), r, o);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var w = Object.prototype.hasOwnProperty, M = {}, J = S.ReactDebugCurrentFrame;
|
|
317
|
-
function V(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, o = x(e.type, e._source, r ? r.type : null);
|
|
320
|
-
J.setExtraStackFrame(o);
|
|
321
|
-
} else
|
|
322
|
-
J.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Ae(e, r, o, c, g) {
|
|
325
|
-
{
|
|
326
|
-
var R = Function.call.bind(w);
|
|
327
|
-
for (var _ in e)
|
|
328
|
-
if (R(e, _)) {
|
|
329
|
-
var p = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[_] != "function") {
|
|
332
|
-
var $ = Error((c || "React class") + ": " + o + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw $.name = "Invariant Violation", $;
|
|
334
|
-
}
|
|
335
|
-
p = e[_](r, _, c, o, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (P) {
|
|
337
|
-
p = P;
|
|
338
|
-
}
|
|
339
|
-
p && !(p instanceof Error) && (V(g), v("%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).", c || "React class", o, _, typeof p), V(null)), p instanceof Error && !(p.message in M) && (M[p.message] = !0, V(g), v("Failed %s type: %s", o, p.message), V(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var We = Array.isArray;
|
|
344
|
-
function Ve(e) {
|
|
345
|
-
return We(e);
|
|
346
|
-
}
|
|
347
|
-
function _t(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, o = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return o;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function ht(e) {
|
|
354
|
-
try {
|
|
355
|
-
return Ke(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function Ke(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function He(e) {
|
|
364
|
-
if (ht(e))
|
|
365
|
-
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _t(e)), Ke(e);
|
|
366
|
-
}
|
|
367
|
-
var Je = S.ReactCurrentOwner, mt = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, Ge, Xe;
|
|
373
|
-
function yt(e) {
|
|
374
|
-
if (w.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function gt(e) {
|
|
382
|
-
if (w.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function bt(e, r) {
|
|
390
|
-
typeof e.ref == "string" && Je.current;
|
|
391
|
-
}
|
|
392
|
-
function xt(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var o = function() {
|
|
395
|
-
Ge || (Ge = !0, v("%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)", r));
|
|
396
|
-
};
|
|
397
|
-
o.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: o,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function jt(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var o = function() {
|
|
406
|
-
Xe || (Xe = !0, v("%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)", r));
|
|
407
|
-
};
|
|
408
|
-
o.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: o,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var Rt = function(e, r, o, c, g, R, _) {
|
|
415
|
-
var p = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: n,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: o,
|
|
422
|
-
props: _,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: R
|
|
425
|
-
};
|
|
426
|
-
return p._store = {}, Object.defineProperty(p._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(p, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: c
|
|
436
|
-
}), Object.defineProperty(p, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: g
|
|
441
|
-
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
442
|
-
};
|
|
443
|
-
function Ot(e, r, o, c, g) {
|
|
444
|
-
{
|
|
445
|
-
var R, _ = {}, p = null, $ = null;
|
|
446
|
-
o !== void 0 && (He(o), p = "" + o), gt(r) && (He(r.key), p = "" + r.key), yt(r) && ($ = r.ref, bt(r, g));
|
|
447
|
-
for (R in r)
|
|
448
|
-
w.call(r, R) && !mt.hasOwnProperty(R) && (_[R] = r[R]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var P = e.defaultProps;
|
|
451
|
-
for (R in P)
|
|
452
|
-
_[R] === void 0 && (_[R] = P[R]);
|
|
453
|
-
}
|
|
454
|
-
if (p || $) {
|
|
455
|
-
var T = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
p && xt(_, T), $ && jt(_, T);
|
|
457
|
-
}
|
|
458
|
-
return Rt(e, p, $, g, c, Je.current, _);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var Ye = S.ReactCurrentOwner, Qe = S.ReactDebugCurrentFrame;
|
|
462
|
-
function pe(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, o = x(e.type, e._source, r ? r.type : null);
|
|
465
|
-
Qe.setExtraStackFrame(o);
|
|
466
|
-
} else
|
|
467
|
-
Qe.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var qe;
|
|
470
|
-
qe = !1;
|
|
471
|
-
function ze(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === n;
|
|
473
|
-
}
|
|
474
|
-
function Ze() {
|
|
475
|
-
{
|
|
476
|
-
if (Ye.current) {
|
|
477
|
-
var e = W(Ye.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function wt(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var et = {};
|
|
490
|
-
function Ct(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ze();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var o = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
o && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + o + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function tt(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var o = Ct(r);
|
|
508
|
-
if (et[o])
|
|
509
|
-
return;
|
|
510
|
-
et[o] = !0;
|
|
511
|
-
var c = "";
|
|
512
|
-
e && e._owner && e._owner !== Ye.current && (c = " It was passed a child from " + W(e._owner.type) + "."), pe(e), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', o, c), pe(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function rt(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (Ve(e))
|
|
520
|
-
for (var o = 0; o < e.length; o++) {
|
|
521
|
-
var c = e[o];
|
|
522
|
-
ze(c) && tt(c, r);
|
|
523
|
-
}
|
|
524
|
-
else if (ze(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var g = k(e);
|
|
528
|
-
if (typeof g == "function" && g !== e.entries)
|
|
529
|
-
for (var R = g.call(e), _; !(_ = R.next()).done; )
|
|
530
|
-
ze(_.value) && tt(_.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function Et(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var o;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
o = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === D))
|
|
545
|
-
o = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (o) {
|
|
549
|
-
var c = W(r);
|
|
550
|
-
Ae(o, e.props, "prop", c, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !qe) {
|
|
552
|
-
qe = !0;
|
|
553
|
-
var g = W(r);
|
|
554
|
-
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function kt(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), o = 0; o < r.length; o++) {
|
|
562
|
-
var c = r[o];
|
|
563
|
-
if (c !== "children" && c !== "key") {
|
|
564
|
-
pe(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), pe(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (pe(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), pe(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var nt = {};
|
|
572
|
-
function at(e, r, o, c, g, R) {
|
|
573
|
-
{
|
|
574
|
-
var _ = Pe(e);
|
|
575
|
-
if (!_) {
|
|
576
|
-
var p = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " 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
|
-
var $ = wt();
|
|
579
|
-
$ ? p += $ : p += Ze();
|
|
580
|
-
var P;
|
|
581
|
-
e === null ? P = "null" : Ve(e) ? P = "array" : e !== void 0 && e.$$typeof === n ? (P = "<" + (W(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, p);
|
|
582
|
-
}
|
|
583
|
-
var T = Ot(e, r, o, g, R);
|
|
584
|
-
if (T == null)
|
|
585
|
-
return T;
|
|
586
|
-
if (_) {
|
|
587
|
-
var z = r.children;
|
|
588
|
-
if (z !== void 0)
|
|
589
|
-
if (c)
|
|
590
|
-
if (Ve(z)) {
|
|
591
|
-
for (var ve = 0; ve < z.length; ve++)
|
|
592
|
-
rt(z[ve], e);
|
|
593
|
-
Object.freeze && Object.freeze(z);
|
|
594
|
-
} else
|
|
595
|
-
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
rt(z, e);
|
|
598
|
-
}
|
|
599
|
-
if (w.call(r, "key")) {
|
|
600
|
-
var ee = W(e), A = Object.keys(r).filter(function(Nt) {
|
|
601
|
-
return Nt !== "key";
|
|
602
|
-
}), Me = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!nt[ee + Me]) {
|
|
604
|
-
var It = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
v(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, Me, ee, It, ee), nt[ee + Me] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === i ? kt(T) : Et(T), T;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function St(e, r, o) {
|
|
617
|
-
return at(e, r, o, !0);
|
|
618
|
-
}
|
|
619
|
-
function Pt(e, r, o) {
|
|
620
|
-
return at(e, r, o, !1);
|
|
621
|
-
}
|
|
622
|
-
var Tt = Pt, Dt = St;
|
|
623
|
-
Ce.Fragment = i, Ce.jsx = Tt, Ce.jsxs = Dt;
|
|
624
|
-
})()), Ce;
|
|
625
|
-
}
|
|
626
|
-
var st;
|
|
627
|
-
function Lt() {
|
|
628
|
-
return st || (st = 1, process.env.NODE_ENV === "production" ? Be.exports = $t() : Be.exports = Ft()), Be.exports;
|
|
629
|
-
}
|
|
630
|
-
var u = Lt();
|
|
631
|
-
const At = "_primaryButton_3izpp_1", Wt = "_primaryButtonDisabled_3izpp_37", Vt = "_spinner_3izpp_52", Yt = "_iconLeft_3izpp_56", qt = "_iconRight_3izpp_62", zt = "_iconOnly_3izpp_68", he = {
|
|
632
|
-
primaryButton: At,
|
|
633
|
-
primaryButtonDisabled: Wt,
|
|
634
|
-
spinner: Vt,
|
|
635
|
-
iconLeft: Yt,
|
|
636
|
-
iconRight: qt,
|
|
637
|
-
iconOnly: zt
|
|
1
|
+
import { jsxs as u, jsx as o, Fragment as kt } from "react/jsx-runtime";
|
|
2
|
+
import J, { useRef as q, useState as M, useEffect as $, useMemo as Lt, useCallback as tt, useId as Et, createContext as Le, useContext as Ae } from "react";
|
|
3
|
+
import { createPortal as ae } from "react-dom";
|
|
4
|
+
const Ie = "_primaryButton_1fi9p_1", De = "_primaryButtonDisabled_1fi9p_51", Te = "_spinner_1fi9p_63", qe = "_iconLeft_1fi9p_69", Ee = "_iconRight_1fi9p_70", Re = "_iconOnly_1fi9p_71", gt = {
|
|
5
|
+
primaryButton: Ie,
|
|
6
|
+
primaryButtonDisabled: De,
|
|
7
|
+
spinner: Te,
|
|
8
|
+
iconLeft: qe,
|
|
9
|
+
iconRight: Ee,
|
|
10
|
+
iconOnly: Re
|
|
638
11
|
};
|
|
639
|
-
var
|
|
12
|
+
var se = {
|
|
640
13
|
color: void 0,
|
|
641
14
|
size: void 0,
|
|
642
15
|
className: void 0,
|
|
643
16
|
style: void 0,
|
|
644
17
|
attr: void 0
|
|
645
|
-
},
|
|
646
|
-
function
|
|
18
|
+
}, Yt = J.createContext && /* @__PURE__ */ J.createContext(se), Se = ["attr", "size", "title"];
|
|
19
|
+
function Oe(t, e) {
|
|
647
20
|
if (t == null) return {};
|
|
648
|
-
var
|
|
21
|
+
var n, r, a = $e(t, e);
|
|
649
22
|
if (Object.getOwnPropertySymbols) {
|
|
650
|
-
var
|
|
651
|
-
for (
|
|
23
|
+
var s = Object.getOwnPropertySymbols(t);
|
|
24
|
+
for (r = 0; r < s.length; r++) n = s[r], e.indexOf(n) === -1 && {}.propertyIsEnumerable.call(t, n) && (a[n] = t[n]);
|
|
652
25
|
}
|
|
653
|
-
return
|
|
26
|
+
return a;
|
|
654
27
|
}
|
|
655
|
-
function
|
|
28
|
+
function $e(t, e) {
|
|
656
29
|
if (t == null) return {};
|
|
657
|
-
var
|
|
658
|
-
for (var
|
|
659
|
-
if (
|
|
660
|
-
|
|
30
|
+
var n = {};
|
|
31
|
+
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
32
|
+
if (e.indexOf(r) !== -1) continue;
|
|
33
|
+
n[r] = t[r];
|
|
661
34
|
}
|
|
662
|
-
return
|
|
35
|
+
return n;
|
|
663
36
|
}
|
|
664
|
-
function
|
|
665
|
-
return
|
|
666
|
-
for (var
|
|
667
|
-
var
|
|
668
|
-
for (var
|
|
37
|
+
function Tt() {
|
|
38
|
+
return Tt = Object.assign ? Object.assign.bind() : function(t) {
|
|
39
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
40
|
+
var n = arguments[e];
|
|
41
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
669
42
|
}
|
|
670
43
|
return t;
|
|
671
|
-
},
|
|
44
|
+
}, Tt.apply(null, arguments);
|
|
672
45
|
}
|
|
673
|
-
function
|
|
674
|
-
var
|
|
46
|
+
function Gt(t, e) {
|
|
47
|
+
var n = Object.keys(t);
|
|
675
48
|
if (Object.getOwnPropertySymbols) {
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
return Object.getOwnPropertyDescriptor(t,
|
|
679
|
-
})),
|
|
49
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
50
|
+
e && (r = r.filter(function(a) {
|
|
51
|
+
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
52
|
+
})), n.push.apply(n, r);
|
|
680
53
|
}
|
|
681
|
-
return
|
|
54
|
+
return n;
|
|
682
55
|
}
|
|
683
|
-
function
|
|
684
|
-
for (var
|
|
685
|
-
var
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(
|
|
689
|
-
Object.defineProperty(t,
|
|
56
|
+
function qt(t) {
|
|
57
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
58
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
59
|
+
e % 2 ? Gt(Object(n), !0).forEach(function(r) {
|
|
60
|
+
Pe(t, r, n[r]);
|
|
61
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Gt(Object(n)).forEach(function(r) {
|
|
62
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
690
63
|
});
|
|
691
64
|
}
|
|
692
65
|
return t;
|
|
693
66
|
}
|
|
694
|
-
function
|
|
695
|
-
return (
|
|
67
|
+
function Pe(t, e, n) {
|
|
68
|
+
return (e = ze(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
696
69
|
}
|
|
697
|
-
function
|
|
698
|
-
var
|
|
699
|
-
return typeof
|
|
70
|
+
function ze(t) {
|
|
71
|
+
var e = We(t, "string");
|
|
72
|
+
return typeof e == "symbol" ? e : e + "";
|
|
700
73
|
}
|
|
701
|
-
function
|
|
74
|
+
function We(t, e) {
|
|
702
75
|
if (typeof t != "object" || !t) return t;
|
|
703
|
-
var
|
|
704
|
-
if (
|
|
705
|
-
var
|
|
706
|
-
if (typeof
|
|
76
|
+
var n = t[Symbol.toPrimitive];
|
|
77
|
+
if (n !== void 0) {
|
|
78
|
+
var r = n.call(t, e);
|
|
79
|
+
if (typeof r != "object") return r;
|
|
707
80
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
708
81
|
}
|
|
709
|
-
return (
|
|
82
|
+
return (e === "string" ? String : Number)(t);
|
|
710
83
|
}
|
|
711
|
-
function
|
|
712
|
-
return t && t.map((
|
|
713
|
-
key:
|
|
714
|
-
},
|
|
84
|
+
function ce(t) {
|
|
85
|
+
return t && t.map((e, n) => /* @__PURE__ */ J.createElement(e.tag, qt({
|
|
86
|
+
key: n
|
|
87
|
+
}, e.attr), ce(e.child)));
|
|
715
88
|
}
|
|
716
|
-
function
|
|
717
|
-
return (
|
|
718
|
-
attr:
|
|
719
|
-
},
|
|
89
|
+
function H(t) {
|
|
90
|
+
return (e) => /* @__PURE__ */ J.createElement(Me, Tt({
|
|
91
|
+
attr: qt({}, t.attr)
|
|
92
|
+
}, e), ce(t.child));
|
|
720
93
|
}
|
|
721
|
-
function
|
|
722
|
-
var
|
|
94
|
+
function Me(t) {
|
|
95
|
+
var e = (n) => {
|
|
723
96
|
var {
|
|
724
|
-
attr:
|
|
725
|
-
size:
|
|
726
|
-
title:
|
|
727
|
-
} = t,
|
|
728
|
-
return
|
|
97
|
+
attr: r,
|
|
98
|
+
size: a,
|
|
99
|
+
title: s
|
|
100
|
+
} = t, c = Oe(t, Se), i = a || n.size || "1em", l;
|
|
101
|
+
return n.className && (l = n.className), t.className && (l = (l ? l + " " : "") + t.className), /* @__PURE__ */ J.createElement("svg", Tt({
|
|
729
102
|
stroke: "currentColor",
|
|
730
103
|
fill: "currentColor",
|
|
731
104
|
strokeWidth: "0"
|
|
732
|
-
},
|
|
105
|
+
}, n.attr, r, c, {
|
|
733
106
|
className: l,
|
|
734
|
-
style:
|
|
735
|
-
color: t.color ||
|
|
736
|
-
},
|
|
737
|
-
height:
|
|
738
|
-
width:
|
|
107
|
+
style: qt(qt({
|
|
108
|
+
color: t.color || n.color
|
|
109
|
+
}, n.style), t.style),
|
|
110
|
+
height: i,
|
|
111
|
+
width: i,
|
|
739
112
|
xmlns: "http://www.w3.org/2000/svg"
|
|
740
|
-
}),
|
|
113
|
+
}), s && /* @__PURE__ */ J.createElement("title", null, s), t.children);
|
|
741
114
|
};
|
|
742
|
-
return
|
|
115
|
+
return Yt !== void 0 ? /* @__PURE__ */ J.createElement(Yt.Consumer, null, (n) => e(n)) : e(se);
|
|
743
116
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
117
|
+
function He(t) {
|
|
118
|
+
return H({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z" }, child: [] }] })(t);
|
|
746
119
|
}
|
|
747
|
-
const
|
|
120
|
+
const Ze = ({
|
|
748
121
|
label: t,
|
|
749
|
-
disabled:
|
|
750
|
-
loading:
|
|
751
|
-
icon:
|
|
752
|
-
iconPos:
|
|
753
|
-
onClick:
|
|
754
|
-
className:
|
|
755
|
-
"data-testid":
|
|
122
|
+
disabled: e = !1,
|
|
123
|
+
loading: n = !1,
|
|
124
|
+
icon: r,
|
|
125
|
+
iconPos: a = "left",
|
|
126
|
+
onClick: s,
|
|
127
|
+
className: c = "",
|
|
128
|
+
"data-testid": i,
|
|
756
129
|
...l
|
|
757
130
|
}) => {
|
|
758
|
-
const
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
].filter(Boolean).join(" "),
|
|
763
|
-
return /* @__PURE__ */ u
|
|
131
|
+
const m = [
|
|
132
|
+
gt.primaryButton,
|
|
133
|
+
e ? gt.primaryButtonDisabled : "",
|
|
134
|
+
c
|
|
135
|
+
].filter(Boolean).join(" "), f = !!t;
|
|
136
|
+
return /* @__PURE__ */ u(
|
|
764
137
|
"button",
|
|
765
138
|
{
|
|
766
139
|
type: "button",
|
|
767
|
-
className:
|
|
768
|
-
disabled:
|
|
769
|
-
onClick:
|
|
770
|
-
"data-testid":
|
|
140
|
+
className: m,
|
|
141
|
+
disabled: e || n,
|
|
142
|
+
onClick: s,
|
|
143
|
+
"data-testid": i,
|
|
771
144
|
...l,
|
|
772
145
|
children: [
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
146
|
+
n && /* @__PURE__ */ o(He, { className: gt.spinner, "aria-hidden": !0 }),
|
|
147
|
+
f ? /* @__PURE__ */ u(kt, { children: [
|
|
148
|
+
r && a === "left" && /* @__PURE__ */ o("span", { className: gt.iconLeft, children: r }),
|
|
776
149
|
t,
|
|
777
|
-
|
|
778
|
-
] }) :
|
|
150
|
+
r && a === "right" && /* @__PURE__ */ o("span", { className: gt.iconRight, children: r })
|
|
151
|
+
] }) : r && /* @__PURE__ */ o("span", { className: gt.iconOnly, children: r })
|
|
779
152
|
]
|
|
780
153
|
}
|
|
781
154
|
);
|
|
782
|
-
},
|
|
783
|
-
secondaryButton:
|
|
784
|
-
iconLeft:
|
|
785
|
-
iconRight:
|
|
786
|
-
iconOnly:
|
|
787
|
-
secondaryButtonDisabled:
|
|
788
|
-
},
|
|
155
|
+
}, Ve = "_secondaryButton_l9k9t_1", Fe = "_iconLeft_l9k9t_53", Ue = "_iconRight_l9k9t_54", Ke = "_iconOnly_l9k9t_55", Qe = "_secondaryButtonDisabled_l9k9t_61", Ct = {
|
|
156
|
+
secondaryButton: Ve,
|
|
157
|
+
iconLeft: Fe,
|
|
158
|
+
iconRight: Ue,
|
|
159
|
+
iconOnly: Ke,
|
|
160
|
+
secondaryButtonDisabled: Qe
|
|
161
|
+
}, ie = ({
|
|
789
162
|
label: t,
|
|
790
|
-
disabled:
|
|
791
|
-
icon:
|
|
792
|
-
iconPos:
|
|
793
|
-
onClick:
|
|
794
|
-
className:
|
|
795
|
-
"data-testid":
|
|
796
|
-
...
|
|
163
|
+
disabled: e = !1,
|
|
164
|
+
icon: n,
|
|
165
|
+
iconPos: r = "left",
|
|
166
|
+
onClick: a,
|
|
167
|
+
className: s = "",
|
|
168
|
+
"data-testid": c,
|
|
169
|
+
...i
|
|
797
170
|
}) => {
|
|
798
171
|
const l = [
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
].filter(Boolean).join(" ")
|
|
803
|
-
return /* @__PURE__ */
|
|
172
|
+
Ct.secondaryButton,
|
|
173
|
+
e ? Ct.secondaryButtonDisabled : "",
|
|
174
|
+
s
|
|
175
|
+
].filter(Boolean).join(" ");
|
|
176
|
+
return /* @__PURE__ */ o(
|
|
804
177
|
"button",
|
|
805
178
|
{
|
|
806
179
|
type: "button",
|
|
807
180
|
className: l,
|
|
808
|
-
disabled:
|
|
809
|
-
onClick:
|
|
810
|
-
"data-testid":
|
|
811
|
-
...
|
|
812
|
-
children:
|
|
813
|
-
|
|
181
|
+
disabled: e,
|
|
182
|
+
onClick: a,
|
|
183
|
+
"data-testid": c,
|
|
184
|
+
...i,
|
|
185
|
+
children: !!t ? /* @__PURE__ */ u(kt, { children: [
|
|
186
|
+
n && r === "left" && /* @__PURE__ */ o("span", { className: Ct.iconLeft, children: n }),
|
|
814
187
|
t,
|
|
815
|
-
|
|
816
|
-
] }) :
|
|
188
|
+
n && r === "right" && /* @__PURE__ */ o("span", { className: Ct.iconRight, children: n })
|
|
189
|
+
] }) : n && /* @__PURE__ */ o("span", { className: Ct.iconOnly, children: n })
|
|
817
190
|
}
|
|
818
191
|
);
|
|
819
|
-
},
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
192
|
+
}, Xe = "_tertiaryButton_l2p3w_1", Ye = "_iconLeft_l2p3w_51", Ge = "_iconRight_l2p3w_52", Je = "_iconOnly_l2p3w_53", tn = "_tertiaryButtonDisabled_l2p3w_59", jt = {
|
|
193
|
+
tertiaryButton: Xe,
|
|
194
|
+
iconLeft: Ye,
|
|
195
|
+
iconRight: Ge,
|
|
196
|
+
iconOnly: Je,
|
|
197
|
+
tertiaryButtonDisabled: tn
|
|
198
|
+
}, Gc = ({
|
|
199
|
+
label: t,
|
|
200
|
+
disabled: e = !1,
|
|
201
|
+
icon: n,
|
|
202
|
+
iconPos: r = "left",
|
|
203
|
+
className: a = "",
|
|
204
|
+
...s
|
|
205
|
+
}) => {
|
|
206
|
+
const c = [
|
|
207
|
+
jt.tertiaryButton,
|
|
208
|
+
e ? jt.tertiaryButtonDisabled : "",
|
|
209
|
+
a
|
|
210
|
+
].filter(Boolean).join(" ");
|
|
211
|
+
return /* @__PURE__ */ o(
|
|
212
|
+
"button",
|
|
213
|
+
{
|
|
214
|
+
type: "button",
|
|
215
|
+
className: c,
|
|
216
|
+
disabled: e,
|
|
217
|
+
...s,
|
|
218
|
+
children: !!t ? /* @__PURE__ */ u(kt, { children: [
|
|
219
|
+
n && r === "left" && /* @__PURE__ */ o("span", { className: jt.iconLeft, children: n }),
|
|
220
|
+
t,
|
|
221
|
+
n && r === "right" && /* @__PURE__ */ o("span", { className: jt.iconRight, children: n })
|
|
222
|
+
] }) : n && /* @__PURE__ */ o("span", { className: jt.iconOnly, children: n })
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
}, en = "_contrastButton_6r7h8_1", nn = "_iconLeft_6r7h8_53", on = "_iconRight_6r7h8_54", rn = "_iconOnly_6r7h8_55", an = "_contrastButtonDisabled_6r7h8_61", xt = {
|
|
226
|
+
contrastButton: en,
|
|
227
|
+
iconLeft: nn,
|
|
228
|
+
iconRight: on,
|
|
229
|
+
iconOnly: rn,
|
|
230
|
+
contrastButtonDisabled: an
|
|
231
|
+
}, Jc = ({
|
|
232
|
+
label: t,
|
|
233
|
+
disabled: e = !1,
|
|
234
|
+
icon: n,
|
|
235
|
+
iconPos: r = "left",
|
|
236
|
+
className: a = "",
|
|
237
|
+
...s
|
|
238
|
+
}) => {
|
|
239
|
+
const c = [
|
|
240
|
+
xt.contrastButton,
|
|
241
|
+
e ? xt.contrastButtonDisabled : "",
|
|
242
|
+
a
|
|
243
|
+
].filter(Boolean).join(" ");
|
|
244
|
+
return /* @__PURE__ */ o(
|
|
245
|
+
"button",
|
|
246
|
+
{
|
|
247
|
+
type: "button",
|
|
248
|
+
className: c,
|
|
249
|
+
disabled: e,
|
|
250
|
+
...s,
|
|
251
|
+
children: !!t ? /* @__PURE__ */ u(kt, { children: [
|
|
252
|
+
n && r === "left" && /* @__PURE__ */ o("span", { className: xt.iconLeft, children: n }),
|
|
253
|
+
t,
|
|
254
|
+
n && r === "right" && /* @__PURE__ */ o("span", { className: xt.iconRight, children: n })
|
|
255
|
+
] }) : n && /* @__PURE__ */ o("span", { className: xt.iconOnly, children: n })
|
|
256
|
+
}
|
|
257
|
+
);
|
|
258
|
+
}, sn = "_tabsContainer_xbhwy_1", cn = "_tabsHeader_xbhwy_7", ln = "_tabItem_xbhwy_14", dn = "_tabContent_xbhwy_30", un = "_tabLabel_xbhwy_52", _n = "_tabLine_xbhwy_62", hn = "_active_xbhwy_69", pn = "_inactive_xbhwy_77", mn = "_tabPanels_xbhwy_85", nt = {
|
|
259
|
+
tabsContainer: sn,
|
|
260
|
+
tabsHeader: cn,
|
|
261
|
+
tabItem: ln,
|
|
262
|
+
tabContent: dn,
|
|
263
|
+
tabLabel: un,
|
|
264
|
+
tabLine: _n,
|
|
265
|
+
active: hn,
|
|
266
|
+
inactive: pn,
|
|
267
|
+
tabPanels: mn
|
|
268
|
+
}, ti = ({
|
|
830
269
|
tabs: t,
|
|
831
|
-
activeTabId:
|
|
832
|
-
onTabChange:
|
|
833
|
-
className:
|
|
834
|
-
"data-testid":
|
|
835
|
-
...
|
|
270
|
+
activeTabId: e,
|
|
271
|
+
onTabChange: n,
|
|
272
|
+
className: r = "",
|
|
273
|
+
"data-testid": a,
|
|
274
|
+
...s
|
|
836
275
|
}) => {
|
|
837
|
-
var
|
|
838
|
-
const
|
|
839
|
-
return /* @__PURE__ */ u
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
-
const
|
|
842
|
-
|
|
843
|
-
|
|
276
|
+
var i;
|
|
277
|
+
const c = [nt.tabsContainer, r].filter(Boolean).join(" ");
|
|
278
|
+
return /* @__PURE__ */ u("div", { className: c, "data-testid": a, ...s, children: [
|
|
279
|
+
/* @__PURE__ */ o("div", { className: nt.tabsHeader, children: t.map((l) => {
|
|
280
|
+
const m = l.id === e, f = [
|
|
281
|
+
nt.tabItem,
|
|
282
|
+
m ? nt.active : nt.inactive
|
|
844
283
|
].filter(Boolean).join(" ");
|
|
845
|
-
return /* @__PURE__ */ u
|
|
284
|
+
return /* @__PURE__ */ u(
|
|
846
285
|
"button",
|
|
847
286
|
{
|
|
848
287
|
type: "button",
|
|
849
|
-
className:
|
|
850
|
-
onClick: () =>
|
|
851
|
-
"data-testid": `${
|
|
288
|
+
className: f,
|
|
289
|
+
onClick: () => n(l.id),
|
|
290
|
+
"data-testid": `${a}-tab-${l.id}`,
|
|
852
291
|
children: [
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ o("div", { className: nt.tabContent, children: /* @__PURE__ */ o("span", { className: nt.tabLabel, children: l.label }) }),
|
|
293
|
+
/* @__PURE__ */ o("div", { className: nt.tabLine })
|
|
855
294
|
]
|
|
856
295
|
},
|
|
857
296
|
l.id
|
|
858
297
|
);
|
|
859
298
|
}) }),
|
|
860
|
-
/* @__PURE__ */
|
|
299
|
+
/* @__PURE__ */ o("div", { className: nt.tabPanels, children: (i = t.find((l) => l.id === e)) == null ? void 0 : i.content })
|
|
861
300
|
] });
|
|
301
|
+
}, fn = "_root_1tlq4_1", yn = "_editorHost_1tlq4_27", Jt = {
|
|
302
|
+
root: fn,
|
|
303
|
+
editorHost: yn
|
|
304
|
+
}, gn = [
|
|
305
|
+
[{ font: [] }, { size: [] }],
|
|
306
|
+
["bold", "italic", "underline"],
|
|
307
|
+
[{ color: [] }, { background: [] }],
|
|
308
|
+
[{ list: "ordered" }, { list: "bullet" }, { indent: "-1" }, { indent: "+1" }],
|
|
309
|
+
["link", "clean"]
|
|
310
|
+
], ei = ({
|
|
311
|
+
value: t,
|
|
312
|
+
onChange: e,
|
|
313
|
+
placeholder: n = "Type your message...",
|
|
314
|
+
className: r = "",
|
|
315
|
+
readOnly: a = !1,
|
|
316
|
+
"data-testid": s
|
|
317
|
+
}) => {
|
|
318
|
+
const c = q(null), i = q(null), l = q(t), m = q(e), f = q(n), g = q(null), [p, j] = M(!1);
|
|
319
|
+
return $(() => {
|
|
320
|
+
m.current = e, f.current = n;
|
|
321
|
+
}, [e, n]), $(() => {
|
|
322
|
+
if (!c.current) return;
|
|
323
|
+
let h = !1;
|
|
324
|
+
return j(!1), g.current = null, (async () => {
|
|
325
|
+
try {
|
|
326
|
+
if (await Promise.resolve({ }), h || !c.current) return;
|
|
327
|
+
const { default: y } = await import("./quill-B5-e7UWH.js");
|
|
328
|
+
if (h || !c.current) return;
|
|
329
|
+
const B = new y(c.current, {
|
|
330
|
+
theme: "snow",
|
|
331
|
+
placeholder: f.current,
|
|
332
|
+
readOnly: a,
|
|
333
|
+
modules: {
|
|
334
|
+
toolbar: a ? !1 : gn
|
|
335
|
+
}
|
|
336
|
+
}), x = l.current;
|
|
337
|
+
if (x) {
|
|
338
|
+
const T = B.clipboard.convert({ html: x });
|
|
339
|
+
B.setContents(T, "silent"), l.current = x;
|
|
340
|
+
}
|
|
341
|
+
const C = () => {
|
|
342
|
+
const T = B.root.innerHTML;
|
|
343
|
+
l.current = T, m.current(T);
|
|
344
|
+
};
|
|
345
|
+
if (g.current = C, B.on("text-change", C), h) {
|
|
346
|
+
B.off("text-change", C), g.current = null;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
i.current = B, j(!0);
|
|
350
|
+
} catch (y) {
|
|
351
|
+
console.error("RichTextEditor: failed to load Quill", y);
|
|
352
|
+
}
|
|
353
|
+
})(), () => {
|
|
354
|
+
h = !0;
|
|
355
|
+
const y = i.current, B = g.current;
|
|
356
|
+
i.current = null, g.current = null, y && B && y.off("text-change", B), y && c.current && (l.current = y.root.innerHTML, c.current.innerHTML = "");
|
|
357
|
+
};
|
|
358
|
+
}, [a]), $(() => {
|
|
359
|
+
const k = i.current;
|
|
360
|
+
!k || !p || (k.root.dataset.placeholder = n);
|
|
361
|
+
}, [n, p]), $(() => {
|
|
362
|
+
const k = i.current;
|
|
363
|
+
if (!k || !p || t === l.current) return;
|
|
364
|
+
const h = k.clipboard.convert({ html: t });
|
|
365
|
+
k.setContents(h, "silent"), l.current = t;
|
|
366
|
+
}, [t, p]), /* @__PURE__ */ o(
|
|
367
|
+
"div",
|
|
368
|
+
{
|
|
369
|
+
className: [Jt.root, r].filter(Boolean).join(" "),
|
|
370
|
+
"data-testid": s,
|
|
371
|
+
children: /* @__PURE__ */ o("div", { ref: c, className: Jt.editorHost })
|
|
372
|
+
}
|
|
373
|
+
);
|
|
374
|
+
}, bn = "_root_4kkdv_1", vn = "_circle_4kkdv_8", Nn = "_spin_4kkdv_1", kn = "_track_4kkdv_12", Bn = "_arc_4kkdv_16", Cn = "_sm_4kkdv_22", jn = "_md_4kkdv_27", xn = "_lg_4kkdv_32", wn = "_label_4kkdv_37", bt = {
|
|
375
|
+
root: bn,
|
|
376
|
+
circle: vn,
|
|
377
|
+
spin: Nn,
|
|
378
|
+
track: kn,
|
|
379
|
+
arc: Bn,
|
|
380
|
+
sm: Cn,
|
|
381
|
+
md: jn,
|
|
382
|
+
lg: xn,
|
|
383
|
+
label: wn
|
|
384
|
+
}, ni = ({
|
|
385
|
+
size: t = "md",
|
|
386
|
+
label: e,
|
|
387
|
+
"aria-label": n,
|
|
388
|
+
className: r = "",
|
|
389
|
+
"data-testid": a
|
|
390
|
+
}) => {
|
|
391
|
+
const s = [bt.root, bt[t], r].filter(Boolean).join(" ");
|
|
392
|
+
return /* @__PURE__ */ u(
|
|
393
|
+
"div",
|
|
394
|
+
{
|
|
395
|
+
className: s,
|
|
396
|
+
role: "status",
|
|
397
|
+
"aria-live": "polite",
|
|
398
|
+
"aria-label": e ? void 0 : n ?? "Loading",
|
|
399
|
+
"data-testid": a,
|
|
400
|
+
children: [
|
|
401
|
+
/* @__PURE__ */ u("svg", { className: bt.circle, viewBox: "0 0 50 50", "aria-hidden": "true", children: [
|
|
402
|
+
/* @__PURE__ */ o(
|
|
403
|
+
"circle",
|
|
404
|
+
{
|
|
405
|
+
className: bt.track,
|
|
406
|
+
cx: "25",
|
|
407
|
+
cy: "25",
|
|
408
|
+
r: "20",
|
|
409
|
+
fill: "none",
|
|
410
|
+
strokeWidth: "4"
|
|
411
|
+
}
|
|
412
|
+
),
|
|
413
|
+
/* @__PURE__ */ o(
|
|
414
|
+
"circle",
|
|
415
|
+
{
|
|
416
|
+
className: bt.arc,
|
|
417
|
+
cx: "25",
|
|
418
|
+
cy: "25",
|
|
419
|
+
r: "20",
|
|
420
|
+
fill: "none",
|
|
421
|
+
strokeWidth: "4",
|
|
422
|
+
strokeLinecap: "round"
|
|
423
|
+
}
|
|
424
|
+
)
|
|
425
|
+
] }),
|
|
426
|
+
e && /* @__PURE__ */ o("span", { className: bt.label, children: e })
|
|
427
|
+
]
|
|
428
|
+
}
|
|
429
|
+
);
|
|
862
430
|
};
|
|
863
|
-
function
|
|
864
|
-
return
|
|
431
|
+
function le(t) {
|
|
432
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "18", y1: "6", x2: "6", y2: "18" }, child: [] }, { tag: "line", attr: { x1: "6", y1: "6", x2: "18", y2: "18" }, child: [] }] })(t);
|
|
433
|
+
}
|
|
434
|
+
function Ln(t) {
|
|
435
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }, child: [] }, { tag: "polyline", attr: { points: "17 8 12 3 7 8" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "3", x2: "12", y2: "15" }, child: [] }] })(t);
|
|
436
|
+
}
|
|
437
|
+
function An(t) {
|
|
438
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "3 6 5 6 21 6" }, child: [] }, { tag: "path", attr: { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }, child: [] }, { tag: "line", attr: { x1: "10", y1: "11", x2: "10", y2: "17" }, child: [] }, { tag: "line", attr: { x1: "14", y1: "11", x2: "14", y2: "17" }, child: [] }] })(t);
|
|
439
|
+
}
|
|
440
|
+
function In(t) {
|
|
441
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "11", cy: "11", r: "8" }, child: [] }, { tag: "line", attr: { x1: "21", y1: "21", x2: "16.65", y2: "16.65" }, child: [] }] })(t);
|
|
865
442
|
}
|
|
866
|
-
function
|
|
867
|
-
return
|
|
443
|
+
function de(t) {
|
|
444
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "12", y1: "5", x2: "12", y2: "19" }, child: [] }, { tag: "line", attr: { x1: "5", y1: "12", x2: "19", y2: "12" }, child: [] }] })(t);
|
|
868
445
|
}
|
|
869
|
-
function
|
|
870
|
-
return
|
|
446
|
+
function Dn(t) {
|
|
447
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "line", attr: { x1: "12", y1: "2", x2: "12", y2: "6" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "18", x2: "12", y2: "22" }, child: [] }, { tag: "line", attr: { x1: "4.93", y1: "4.93", x2: "7.76", y2: "7.76" }, child: [] }, { tag: "line", attr: { x1: "16.24", y1: "16.24", x2: "19.07", y2: "19.07" }, child: [] }, { tag: "line", attr: { x1: "2", y1: "12", x2: "6", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "18", y1: "12", x2: "22", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "4.93", y1: "19.07", x2: "7.76", y2: "16.24" }, child: [] }, { tag: "line", attr: { x1: "16.24", y1: "7.76", x2: "19.07", y2: "4.93" }, child: [] }] })(t);
|
|
871
448
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
449
|
+
function ue(t) {
|
|
450
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "16", x2: "12", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "8", x2: "12.01", y2: "8" }, child: [] }] })(t);
|
|
451
|
+
}
|
|
452
|
+
function Tn(t) {
|
|
453
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "9 18 15 12 9 6" }, child: [] }] })(t);
|
|
454
|
+
}
|
|
455
|
+
function qn(t) {
|
|
456
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "15 18 9 12 15 6" }, child: [] }] })(t);
|
|
457
|
+
}
|
|
458
|
+
function _e(t) {
|
|
459
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "6 9 12 15 18 9" }, child: [] }] })(t);
|
|
460
|
+
}
|
|
461
|
+
function En(t) {
|
|
462
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "20 6 9 17 4 12" }, child: [] }] })(t);
|
|
463
|
+
}
|
|
464
|
+
function Rn(t) {
|
|
465
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }, child: [] }, { tag: "polyline", attr: { points: "22 4 12 14.01 9 11.01" }, child: [] }] })(t);
|
|
466
|
+
}
|
|
467
|
+
function Sn(t) {
|
|
468
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "9", x2: "12", y2: "13" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "17", x2: "12.01", y2: "17" }, child: [] }] })(t);
|
|
469
|
+
}
|
|
470
|
+
function On(t) {
|
|
471
|
+
return H({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "8", x2: "12", y2: "12" }, child: [] }, { tag: "line", attr: { x1: "12", y1: "16", x2: "12.01", y2: "16" }, child: [] }] })(t);
|
|
472
|
+
}
|
|
473
|
+
const $n = "_root_1e6ob_1", Pn = "_back_1e6ob_12", zn = "_backIcon_1e6ob_39", Wn = "_backLabel_1e6ob_45", Mn = "_list_1e6ob_49", Hn = "_item_1e6ob_60", Zn = "_separator_1e6ob_68", Vn = "_link_1e6ob_76", Fn = "_linkButton_1e6ob_93", Un = "_segmentPlain_1e6ob_117", Kn = "_current_1e6ob_122", Y = {
|
|
474
|
+
root: $n,
|
|
475
|
+
back: Pn,
|
|
476
|
+
backIcon: zn,
|
|
477
|
+
backLabel: Wn,
|
|
478
|
+
list: Mn,
|
|
479
|
+
item: Hn,
|
|
480
|
+
separator: Zn,
|
|
481
|
+
link: Vn,
|
|
482
|
+
linkButton: Fn,
|
|
483
|
+
segmentPlain: Un,
|
|
484
|
+
current: Kn
|
|
485
|
+
}, Qn = ({
|
|
486
|
+
item: t,
|
|
487
|
+
isLast: e,
|
|
488
|
+
testIdPrefix: n,
|
|
489
|
+
index: r
|
|
490
|
+
}) => {
|
|
491
|
+
const a = n ? `${n}-segment-${r}` : void 0;
|
|
492
|
+
return e ? /* @__PURE__ */ o("span", { className: Y.current, "aria-current": "page", "data-testid": a, children: t.label }) : t.href !== void 0 && t.href !== "" ? /* @__PURE__ */ o(
|
|
493
|
+
"a",
|
|
494
|
+
{
|
|
495
|
+
href: t.href,
|
|
496
|
+
className: Y.link,
|
|
497
|
+
onClick: t.onClick,
|
|
498
|
+
"data-testid": a,
|
|
499
|
+
children: t.label
|
|
500
|
+
}
|
|
501
|
+
) : t.onClick ? /* @__PURE__ */ o(
|
|
502
|
+
"button",
|
|
503
|
+
{
|
|
504
|
+
type: "button",
|
|
505
|
+
className: Y.linkButton,
|
|
506
|
+
onClick: t.onClick,
|
|
507
|
+
"data-testid": a,
|
|
508
|
+
children: t.label
|
|
509
|
+
}
|
|
510
|
+
) : /* @__PURE__ */ o("span", { className: Y.segmentPlain, "data-testid": a, children: t.label });
|
|
511
|
+
}, oi = ({
|
|
512
|
+
items: t,
|
|
513
|
+
onBack: e,
|
|
514
|
+
backLabel: n = "Back",
|
|
515
|
+
className: r = "",
|
|
516
|
+
"data-testid": a
|
|
517
|
+
}) => {
|
|
518
|
+
const s = [Y.root, r].filter(Boolean).join(" ");
|
|
519
|
+
return t.length === 0 ? /* @__PURE__ */ o("nav", { className: s, "aria-label": "Breadcrumb", "data-testid": a }) : /* @__PURE__ */ u("nav", { className: s, "aria-label": "Breadcrumb", "data-testid": a, children: [
|
|
520
|
+
e && /* @__PURE__ */ u(
|
|
521
|
+
"button",
|
|
522
|
+
{
|
|
523
|
+
type: "button",
|
|
524
|
+
className: Y.back,
|
|
525
|
+
onClick: e,
|
|
526
|
+
"data-testid": a ? `${a}-back` : void 0,
|
|
527
|
+
children: [
|
|
528
|
+
/* @__PURE__ */ o(qn, { className: Y.backIcon, "aria-hidden": !0 }),
|
|
529
|
+
/* @__PURE__ */ o("span", { className: Y.backLabel, children: n })
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
),
|
|
533
|
+
/* @__PURE__ */ o("ol", { className: Y.list, children: t.map((c, i) => {
|
|
534
|
+
const l = i === t.length - 1;
|
|
535
|
+
return /* @__PURE__ */ u("li", { className: Y.item, children: [
|
|
536
|
+
i > 0 && /* @__PURE__ */ o(Tn, { className: Y.separator, "aria-hidden": !0 }),
|
|
537
|
+
/* @__PURE__ */ o(
|
|
538
|
+
Qn,
|
|
539
|
+
{
|
|
540
|
+
item: c,
|
|
541
|
+
isLast: l,
|
|
542
|
+
testIdPrefix: a,
|
|
543
|
+
index: i
|
|
544
|
+
}
|
|
545
|
+
)
|
|
546
|
+
] }, `${c.label}-${i}`);
|
|
547
|
+
}) })
|
|
548
|
+
] });
|
|
549
|
+
}, Xn = "_dropdown_175a9_1", Yn = "_label_175a9_9", Gn = "_required_175a9_20", Jn = "_trigger_175a9_25", to = "_triggerDisabled_175a9_49", eo = "_triggerInput_175a9_58", no = "_value_175a9_76", oo = "_placeholder_175a9_84", ro = "_chevron_175a9_88", ao = "_open_175a9_96", so = "_panel_175a9_120", co = "_panelTop_175a9_157", io = "_panelClosing_175a9_163", lo = "_filterWrapper_175a9_171", uo = "_filterInput_175a9_178", _o = "_filterIcon_175a9_197", ho = "_list_175a9_208", po = "_option_175a9_217", mo = "_optionSelected_175a9_229", fo = "_optionHighlighted_175a9_233", yo = "_optionDisabled_175a9_237", go = "_empty_175a9_246", bo = "_loadingItem_175a9_261", vo = "_spinner_175a9_271", No = "_disabled_175a9_278", D = {
|
|
550
|
+
dropdown: Xn,
|
|
551
|
+
label: Yn,
|
|
552
|
+
required: Gn,
|
|
553
|
+
trigger: Jn,
|
|
554
|
+
triggerDisabled: to,
|
|
555
|
+
triggerInput: eo,
|
|
556
|
+
value: no,
|
|
557
|
+
placeholder: oo,
|
|
558
|
+
chevron: ro,
|
|
559
|
+
open: ao,
|
|
560
|
+
panel: so,
|
|
561
|
+
panelTop: co,
|
|
562
|
+
panelClosing: io,
|
|
563
|
+
filterWrapper: lo,
|
|
564
|
+
filterInput: uo,
|
|
565
|
+
filterIcon: _o,
|
|
566
|
+
list: ho,
|
|
567
|
+
option: po,
|
|
568
|
+
optionSelected: mo,
|
|
569
|
+
optionHighlighted: fo,
|
|
570
|
+
optionDisabled: yo,
|
|
571
|
+
empty: go,
|
|
572
|
+
loadingItem: bo,
|
|
573
|
+
spinner: vo,
|
|
574
|
+
disabled: No
|
|
575
|
+
}, it = (t, e) => {
|
|
576
|
+
const r = t[e];
|
|
577
|
+
return r != null ? String(r) : "";
|
|
578
|
+
}, vt = (t, e) => t[e], X = (t, e) => e == null ? !1 : !!t[e], ri = ({
|
|
899
579
|
value: t,
|
|
900
|
-
onChange:
|
|
901
|
-
onEditEnd:
|
|
902
|
-
options:
|
|
903
|
-
optionLabel:
|
|
904
|
-
optionValue:
|
|
905
|
-
optionDisabled:
|
|
906
|
-
placeholder:
|
|
580
|
+
onChange: e,
|
|
581
|
+
onEditEnd: n,
|
|
582
|
+
options: r,
|
|
583
|
+
optionLabel: a = "label",
|
|
584
|
+
optionValue: s = "value",
|
|
585
|
+
optionDisabled: c,
|
|
586
|
+
placeholder: i = "Select",
|
|
907
587
|
filter: l = !1,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
588
|
+
filterPlaceholder: m = "Search...",
|
|
589
|
+
onFilter: f,
|
|
590
|
+
loading: g = !1,
|
|
591
|
+
hasMore: p = !1,
|
|
592
|
+
onLoadMore: j,
|
|
593
|
+
panelPosition: k = "auto",
|
|
594
|
+
editable: h = !1,
|
|
595
|
+
disabled: y = !1,
|
|
596
|
+
required: B = !1,
|
|
597
|
+
label: x,
|
|
598
|
+
inputId: C,
|
|
599
|
+
className: T = "",
|
|
600
|
+
panelClassName: E = "",
|
|
601
|
+
valueTemplate: K,
|
|
602
|
+
itemTemplate: et,
|
|
603
|
+
"data-testid": z
|
|
918
604
|
}) => {
|
|
919
|
-
const
|
|
920
|
-
(
|
|
921
|
-
),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
)
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
605
|
+
const w = r.find(
|
|
606
|
+
(d) => vt(d, s) === t
|
|
607
|
+
), b = w ? it(w, a) : "", [L, _] = M(!1), [N, R] = M(!1), [G, pt] = M(""), [mt, ft] = M(b), [At, at] = M(0), It = q(null), ye = q(null), Ft = q(null), ge = q(null), Ut = q(null), Rt = q(!1), [be, St] = M(
|
|
608
|
+
"bottom"
|
|
609
|
+
), Bt = !!f, Q = Lt(
|
|
610
|
+
() => l && !h && !Bt ? r.filter(
|
|
611
|
+
(d) => it(d, a).toLowerCase().includes(G.toLowerCase())
|
|
612
|
+
) : r,
|
|
613
|
+
[l, h, Bt, r, a, G]
|
|
614
|
+
), Kt = q(null), ve = tt(() => {
|
|
615
|
+
if (!p || g || !j) return;
|
|
616
|
+
const d = Kt.current;
|
|
617
|
+
if (!d) return;
|
|
618
|
+
d.scrollHeight - d.scrollTop - d.clientHeight < 60 && j();
|
|
619
|
+
}, [p, g, j]);
|
|
620
|
+
$(() => {
|
|
621
|
+
if (!L || k !== "auto") {
|
|
622
|
+
k === "top" ? St("top") : k === "bottom" && St("bottom");
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
const d = It.current;
|
|
626
|
+
if (!d) return;
|
|
627
|
+
const v = d.getBoundingClientRect(), I = window.innerHeight - v.bottom;
|
|
628
|
+
St(I < 280 ? "top" : "bottom");
|
|
629
|
+
}, [L, k]), $(() => {
|
|
630
|
+
h && ft(b);
|
|
631
|
+
}, [h, t, b]), $(() => {
|
|
632
|
+
L && l && !h && (pt(""), at(0), Bt && (f == null || f("")), setTimeout(() => {
|
|
633
|
+
var d;
|
|
634
|
+
return (d = Ft.current) == null ? void 0 : d.focus();
|
|
933
635
|
}, 0));
|
|
934
|
-
}, [
|
|
935
|
-
if (!
|
|
936
|
-
const
|
|
937
|
-
(
|
|
938
|
-
),
|
|
939
|
-
(
|
|
940
|
-
),
|
|
941
|
-
|
|
942
|
-
}, [
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
}, [
|
|
946
|
-
const
|
|
947
|
-
|
|
948
|
-
},
|
|
949
|
-
var
|
|
950
|
-
(
|
|
636
|
+
}, [L, l, h, Bt]), $(() => {
|
|
637
|
+
if (!L) return;
|
|
638
|
+
const d = Q.findIndex(
|
|
639
|
+
(S) => vt(S, s) === t
|
|
640
|
+
), v = Q.findIndex(
|
|
641
|
+
(S) => !X(S, c)
|
|
642
|
+
), I = d >= 0 && !X(Q[d], c);
|
|
643
|
+
at(I ? d : v >= 0 ? v : 0);
|
|
644
|
+
}, [L, t, Q, s, c]), $(() => {
|
|
645
|
+
const d = Ut.current;
|
|
646
|
+
d != null && d.scrollIntoView && typeof d.scrollIntoView == "function" && d.scrollIntoView({ block: "nearest" });
|
|
647
|
+
}, [At]);
|
|
648
|
+
const Ot = () => {
|
|
649
|
+
Rt.current = !0, R(!0);
|
|
650
|
+
}, Ne = (d) => {
|
|
651
|
+
var v;
|
|
652
|
+
(Rt.current || (v = d.animationName) != null && v.includes("menuOut")) && (Rt.current = !1, _(!1), R(!1), h && ft(b));
|
|
951
653
|
};
|
|
952
|
-
|
|
953
|
-
if (!
|
|
954
|
-
const
|
|
955
|
-
|
|
654
|
+
$(() => {
|
|
655
|
+
if (!L && !N) return;
|
|
656
|
+
const d = (v) => {
|
|
657
|
+
It.current && !It.current.contains(v.target) && (h && ft(b), Ot());
|
|
956
658
|
};
|
|
957
|
-
return document.addEventListener("mousedown",
|
|
958
|
-
}, [
|
|
959
|
-
const
|
|
960
|
-
|
|
961
|
-
},
|
|
962
|
-
if (
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
value:
|
|
966
|
-
originalEvent:
|
|
967
|
-
}),
|
|
968
|
-
},
|
|
969
|
-
if (!
|
|
970
|
-
if (
|
|
971
|
-
|
|
972
|
-
const
|
|
973
|
-
const
|
|
974
|
-
return
|
|
975
|
-
}),
|
|
976
|
-
|
|
977
|
-
value:
|
|
978
|
-
originalEvent:
|
|
979
|
-
})),
|
|
980
|
-
value:
|
|
981
|
-
selectedValue:
|
|
982
|
-
originalEvent:
|
|
659
|
+
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
660
|
+
}, [L, N, h, b]);
|
|
661
|
+
const Qt = () => {
|
|
662
|
+
y || _((d) => !d);
|
|
663
|
+
}, $t = (d, v) => {
|
|
664
|
+
if (X(d, c)) return;
|
|
665
|
+
const I = vt(d, s);
|
|
666
|
+
h && ft(it(d, a)), e == null || e({
|
|
667
|
+
value: I ?? null,
|
|
668
|
+
originalEvent: v
|
|
669
|
+
}), Ot();
|
|
670
|
+
}, Xt = (d) => {
|
|
671
|
+
if (!L) {
|
|
672
|
+
if (d.key === "Enter" && h && mt.trim()) {
|
|
673
|
+
d.preventDefault();
|
|
674
|
+
const v = mt.trim(), I = v.toLowerCase(), S = r.find((yt) => {
|
|
675
|
+
const ct = it(yt, a).toLowerCase();
|
|
676
|
+
return ct === I || ct.startsWith(I);
|
|
677
|
+
}), st = S && !X(S, c) ? vt(S, s) : null;
|
|
678
|
+
S && !X(S, c) && (ft(it(S, a)), e == null || e({
|
|
679
|
+
value: st,
|
|
680
|
+
originalEvent: d
|
|
681
|
+
})), n == null || n({
|
|
682
|
+
value: v,
|
|
683
|
+
selectedValue: st,
|
|
684
|
+
originalEvent: d
|
|
983
685
|
});
|
|
984
686
|
return;
|
|
985
687
|
}
|
|
986
|
-
(
|
|
688
|
+
(d.key === "Enter" || d.key === " " || d.key === "ArrowDown") && (d.preventDefault(), _(!0));
|
|
987
689
|
return;
|
|
988
690
|
}
|
|
989
|
-
if (
|
|
990
|
-
|
|
691
|
+
if (d.key === "Escape") {
|
|
692
|
+
d.preventDefault(), Ot();
|
|
991
693
|
return;
|
|
992
694
|
}
|
|
993
|
-
if (
|
|
994
|
-
|
|
995
|
-
for (let
|
|
996
|
-
if (!
|
|
997
|
-
return
|
|
998
|
-
return
|
|
695
|
+
if (d.key === "ArrowDown") {
|
|
696
|
+
d.preventDefault(), at((v) => {
|
|
697
|
+
for (let I = v + 1; I < Q.length; I++)
|
|
698
|
+
if (!X(Q[I], c))
|
|
699
|
+
return I;
|
|
700
|
+
return v;
|
|
999
701
|
});
|
|
1000
702
|
return;
|
|
1001
703
|
}
|
|
1002
|
-
if (
|
|
1003
|
-
|
|
1004
|
-
for (let
|
|
1005
|
-
if (!
|
|
1006
|
-
return
|
|
1007
|
-
return
|
|
704
|
+
if (d.key === "ArrowUp") {
|
|
705
|
+
d.preventDefault(), at((v) => {
|
|
706
|
+
for (let I = v - 1; I >= 0; I--)
|
|
707
|
+
if (!X(Q[I], c))
|
|
708
|
+
return I;
|
|
709
|
+
return v;
|
|
1008
710
|
});
|
|
1009
711
|
return;
|
|
1010
712
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
if (
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
const
|
|
1016
|
-
const
|
|
1017
|
-
return
|
|
1018
|
-
}),
|
|
1019
|
-
|
|
1020
|
-
value:
|
|
1021
|
-
selectedValue:
|
|
1022
|
-
originalEvent:
|
|
713
|
+
if (d.key === "Enter") {
|
|
714
|
+
if (d.preventDefault(), h) {
|
|
715
|
+
const v = mt.trim();
|
|
716
|
+
if (v) {
|
|
717
|
+
const I = v.toLowerCase(), S = r.find((yt) => {
|
|
718
|
+
const ct = it(yt, a).toLowerCase();
|
|
719
|
+
return ct === I || ct.startsWith(I);
|
|
720
|
+
}), st = S && !X(S, c) ? vt(S, s) : null;
|
|
721
|
+
S && !X(S, c) && $t(S, d), n == null || n({
|
|
722
|
+
value: v,
|
|
723
|
+
selectedValue: st,
|
|
724
|
+
originalEvent: d
|
|
1023
725
|
});
|
|
1024
726
|
} else
|
|
1025
|
-
|
|
1026
|
-
} else if (
|
|
1027
|
-
const
|
|
1028
|
-
|
|
727
|
+
n == null || n({ value: "", selectedValue: null, originalEvent: d });
|
|
728
|
+
} else if (Q[At]) {
|
|
729
|
+
const v = Q[At];
|
|
730
|
+
X(v, c) || $t(v, d);
|
|
1029
731
|
}
|
|
1030
732
|
}
|
|
1031
|
-
},
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
].filter(Boolean).join(" "),
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
].filter(Boolean).join(" "),
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
733
|
+
}, ke = [
|
|
734
|
+
D.dropdown,
|
|
735
|
+
y ? D.disabled : "",
|
|
736
|
+
L ? D.open : "",
|
|
737
|
+
T
|
|
738
|
+
].filter(Boolean).join(" "), Be = [
|
|
739
|
+
D.trigger,
|
|
740
|
+
y ? D.triggerDisabled : ""
|
|
741
|
+
].filter(Boolean).join(" "), Ce = [
|
|
742
|
+
D.panel,
|
|
743
|
+
be === "top" ? D.panelTop : "",
|
|
744
|
+
N ? D.panelClosing : "",
|
|
745
|
+
E
|
|
746
|
+
].filter(Boolean).join(" "), je = Et(), Dt = C ?? `dropdown-${je.replace(/[^a-zA-Z0-9_-]/g, "")}`, Pt = `${Dt}-panel`;
|
|
747
|
+
return /* @__PURE__ */ u("div", { className: ke, ref: It, "data-testid": z, children: [
|
|
748
|
+
x != null && /* @__PURE__ */ u("label", { htmlFor: Dt, className: D.label, children: [
|
|
749
|
+
x,
|
|
750
|
+
B && /* @__PURE__ */ o("span", { className: D.required, children: "*" })
|
|
1048
751
|
] }),
|
|
1049
|
-
/* @__PURE__ */ u
|
|
752
|
+
/* @__PURE__ */ u(
|
|
1050
753
|
"div",
|
|
1051
754
|
{
|
|
1052
|
-
id:
|
|
755
|
+
id: h ? void 0 : Dt,
|
|
1053
756
|
role: "combobox",
|
|
1054
|
-
"aria-expanded":
|
|
757
|
+
"aria-expanded": L || N,
|
|
1055
758
|
"aria-haspopup": "listbox",
|
|
1056
|
-
"aria-controls":
|
|
1057
|
-
"aria-disabled":
|
|
1058
|
-
"aria-label": typeof
|
|
1059
|
-
tabIndex:
|
|
1060
|
-
className:
|
|
1061
|
-
onClick:
|
|
1062
|
-
onKeyDown:
|
|
1063
|
-
"data-testid":
|
|
759
|
+
"aria-controls": L || N ? Pt : void 0,
|
|
760
|
+
"aria-disabled": y,
|
|
761
|
+
"aria-label": typeof x == "string" ? x : void 0,
|
|
762
|
+
tabIndex: h || y ? -1 : 0,
|
|
763
|
+
className: Be,
|
|
764
|
+
onClick: h ? void 0 : Qt,
|
|
765
|
+
onKeyDown: h ? void 0 : Xt,
|
|
766
|
+
"data-testid": z && !h ? `${z}-trigger` : void 0,
|
|
1064
767
|
children: [
|
|
1065
|
-
|
|
768
|
+
h ? /* @__PURE__ */ o(
|
|
1066
769
|
"input",
|
|
1067
770
|
{
|
|
1068
|
-
ref:
|
|
1069
|
-
id:
|
|
771
|
+
ref: ge,
|
|
772
|
+
id: Dt,
|
|
1070
773
|
type: "text",
|
|
1071
|
-
className:
|
|
1072
|
-
value:
|
|
1073
|
-
onChange: (
|
|
1074
|
-
|
|
774
|
+
className: D.triggerInput,
|
|
775
|
+
value: mt,
|
|
776
|
+
onChange: (d) => {
|
|
777
|
+
ft(d.target.value), !L && !N && _(!0), at(0);
|
|
1075
778
|
},
|
|
1076
779
|
onFocus: () => {
|
|
1077
|
-
!
|
|
780
|
+
!y && !L && !N && _(!0);
|
|
1078
781
|
},
|
|
1079
|
-
onKeyDown:
|
|
1080
|
-
placeholder:
|
|
1081
|
-
disabled:
|
|
782
|
+
onKeyDown: Xt,
|
|
783
|
+
placeholder: i,
|
|
784
|
+
disabled: y,
|
|
1082
785
|
"aria-autocomplete": "list",
|
|
1083
|
-
"aria-controls":
|
|
1084
|
-
"aria-expanded":
|
|
1085
|
-
"data-testid":
|
|
786
|
+
"aria-controls": L || N ? Pt : void 0,
|
|
787
|
+
"aria-expanded": L || N,
|
|
788
|
+
"data-testid": z ? `${z}-trigger` : void 0
|
|
1086
789
|
}
|
|
1087
|
-
) : /* @__PURE__ */
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
|
|
790
|
+
) : /* @__PURE__ */ o("span", { className: D.value, children: K ? K(w ?? null) : b || /* @__PURE__ */ o("span", { className: D.placeholder, children: i }) }),
|
|
791
|
+
/* @__PURE__ */ o(
|
|
792
|
+
_e,
|
|
1090
793
|
{
|
|
1091
|
-
className:
|
|
794
|
+
className: D.chevron,
|
|
1092
795
|
"aria-hidden": !0,
|
|
1093
|
-
onClick:
|
|
796
|
+
onClick: h ? Qt : void 0
|
|
1094
797
|
}
|
|
1095
798
|
)
|
|
1096
799
|
]
|
|
1097
800
|
}
|
|
1098
801
|
),
|
|
1099
|
-
(
|
|
802
|
+
(L || N) && /* @__PURE__ */ u(
|
|
1100
803
|
"div",
|
|
1101
804
|
{
|
|
1102
|
-
ref:
|
|
1103
|
-
id:
|
|
1104
|
-
className:
|
|
805
|
+
ref: ye,
|
|
806
|
+
id: Pt,
|
|
807
|
+
className: Ce,
|
|
1105
808
|
role: "presentation",
|
|
1106
|
-
onAnimationEnd:
|
|
1107
|
-
"data-testid":
|
|
809
|
+
onAnimationEnd: Ne,
|
|
810
|
+
"data-testid": z ? `${z}-panel` : void 0,
|
|
1108
811
|
children: [
|
|
1109
|
-
l && !
|
|
1110
|
-
/* @__PURE__ */
|
|
812
|
+
l && !h && /* @__PURE__ */ u("div", { className: D.filterWrapper, children: [
|
|
813
|
+
/* @__PURE__ */ o(
|
|
1111
814
|
"input",
|
|
1112
815
|
{
|
|
1113
|
-
ref:
|
|
816
|
+
ref: Ft,
|
|
1114
817
|
type: "text",
|
|
1115
|
-
className:
|
|
1116
|
-
value:
|
|
1117
|
-
onChange: (
|
|
1118
|
-
|
|
818
|
+
className: D.filterInput,
|
|
819
|
+
value: G,
|
|
820
|
+
onChange: (d) => {
|
|
821
|
+
const v = d.target.value;
|
|
822
|
+
pt(v), at(0), Bt && (f == null || f(v));
|
|
1119
823
|
},
|
|
1120
|
-
onKeyDown: (
|
|
1121
|
-
|
|
824
|
+
onKeyDown: (d) => {
|
|
825
|
+
d.key === "Escape" && _(!1), d.stopPropagation();
|
|
1122
826
|
},
|
|
1123
|
-
placeholder:
|
|
827
|
+
placeholder: m,
|
|
1124
828
|
"aria-label": "Filter options",
|
|
1125
829
|
title: "Filter options",
|
|
1126
|
-
"data-testid":
|
|
830
|
+
"data-testid": z ? `${z}-filter` : void 0
|
|
1127
831
|
}
|
|
1128
832
|
),
|
|
1129
|
-
/* @__PURE__ */
|
|
833
|
+
/* @__PURE__ */ o(In, { className: D.filterIcon, "aria-hidden": !0 })
|
|
1130
834
|
] }),
|
|
1131
|
-
/* @__PURE__ */ u
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
className:
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
835
|
+
/* @__PURE__ */ u(
|
|
836
|
+
"ul",
|
|
837
|
+
{
|
|
838
|
+
ref: Kt,
|
|
839
|
+
className: D.list,
|
|
840
|
+
role: "listbox",
|
|
841
|
+
"aria-label": "Options",
|
|
842
|
+
onScroll: ve,
|
|
843
|
+
children: [
|
|
844
|
+
Q.length === 0 ? /* @__PURE__ */ o("li", { className: D.empty, children: "No results" }) : Q.map((d, v) => {
|
|
845
|
+
const I = vt(d, s), S = it(d, a), st = X(d, c), yt = t === I, ct = v === At, xe = I != null ? String(I) : `option-${v}`;
|
|
846
|
+
return /* @__PURE__ */ o(
|
|
847
|
+
"li",
|
|
848
|
+
{
|
|
849
|
+
ref: ct ? Ut : void 0,
|
|
850
|
+
role: "option",
|
|
851
|
+
"aria-selected": yt,
|
|
852
|
+
"aria-disabled": st,
|
|
853
|
+
className: [
|
|
854
|
+
D.option,
|
|
855
|
+
yt ? D.optionSelected : "",
|
|
856
|
+
ct ? D.optionHighlighted : "",
|
|
857
|
+
st ? D.optionDisabled : ""
|
|
858
|
+
].filter(Boolean).join(" "),
|
|
859
|
+
onMouseEnter: () => !st && at(v),
|
|
860
|
+
onClick: (we) => $t(d, we),
|
|
861
|
+
"data-testid": z ? `${z}-option-${v}` : void 0,
|
|
862
|
+
children: et ? et(d) : S
|
|
863
|
+
},
|
|
864
|
+
xe
|
|
865
|
+
);
|
|
866
|
+
}),
|
|
867
|
+
g && /* @__PURE__ */ u("li", { className: D.loadingItem, "aria-live": "polite", children: [
|
|
868
|
+
/* @__PURE__ */ o(Dn, { className: D.spinner, "aria-hidden": !0 }),
|
|
869
|
+
" Loading…"
|
|
870
|
+
] })
|
|
871
|
+
]
|
|
872
|
+
}
|
|
873
|
+
)
|
|
1154
874
|
]
|
|
1155
875
|
}
|
|
1156
876
|
)
|
|
1157
877
|
] });
|
|
1158
|
-
},
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
878
|
+
}, ko = "_chip_qgxbp_1", Bo = "_chipSuccess_qgxbp_19", Co = "_chipWarning_qgxbp_25", jo = "_chipInfo_qgxbp_31", xo = "_chipError_qgxbp_37", wt = {
|
|
879
|
+
chip: ko,
|
|
880
|
+
chipSuccess: Bo,
|
|
881
|
+
chipWarning: Co,
|
|
882
|
+
chipInfo: jo,
|
|
883
|
+
chipError: xo
|
|
884
|
+
}, wo = {
|
|
885
|
+
success: wt.chipSuccess,
|
|
886
|
+
warning: wt.chipWarning,
|
|
887
|
+
info: wt.chipInfo,
|
|
888
|
+
error: wt.chipError
|
|
889
|
+
}, Lo = ({
|
|
890
|
+
variant: t = "info",
|
|
891
|
+
children: e,
|
|
892
|
+
className: n = "",
|
|
893
|
+
"data-testid": r,
|
|
894
|
+
...a
|
|
895
|
+
}) => {
|
|
896
|
+
const s = [wt.chip, wo[t], n].filter(Boolean).join(" ");
|
|
897
|
+
return /* @__PURE__ */ o("span", { className: s, "data-testid": r, ...a, children: e });
|
|
898
|
+
}, Ao = "_root_1dryk_1", Io = "_label_1dryk_9", Do = "_trigger_1dryk_20", To = "_triggerDisabled_1dryk_44", qo = "_chips_1dryk_50", Eo = "_chip_1dryk_50", Ro = "_chipLabel_1dryk_64", So = "_chipRemove_1dryk_70", Oo = "_placeholder_1dryk_86", $o = "_chevron_1dryk_90", Po = "_open_1dryk_98", zo = "_panel_1dryk_102", Wo = "_list_1dryk_112", Mo = "_option_1dryk_120", Ho = "_optionSelected_1dryk_134", Zo = "_optionFocused_1dryk_138", Vo = "_optionCheckbox_1dryk_143", Fo = "_empty_1dryk_148", Uo = "_disabled_1dryk_155", P = {
|
|
899
|
+
root: Ao,
|
|
900
|
+
label: Io,
|
|
901
|
+
trigger: Do,
|
|
902
|
+
triggerDisabled: To,
|
|
903
|
+
chips: qo,
|
|
904
|
+
chip: Eo,
|
|
905
|
+
chipLabel: Ro,
|
|
906
|
+
chipRemove: So,
|
|
907
|
+
placeholder: Oo,
|
|
908
|
+
chevron: $o,
|
|
909
|
+
open: Po,
|
|
910
|
+
panel: zo,
|
|
911
|
+
list: Wo,
|
|
912
|
+
option: Mo,
|
|
913
|
+
optionSelected: Ho,
|
|
914
|
+
optionFocused: Zo,
|
|
915
|
+
optionCheckbox: Vo,
|
|
916
|
+
empty: Fo,
|
|
917
|
+
disabled: Uo
|
|
918
|
+
}, te = (t, e) => {
|
|
919
|
+
const n = t[e];
|
|
920
|
+
return n != null ? String(n) : "";
|
|
921
|
+
}, zt = (t, e) => {
|
|
922
|
+
const n = t[e];
|
|
923
|
+
return n != null ? String(n) : "";
|
|
924
|
+
}, ai = ({
|
|
925
|
+
value: t,
|
|
926
|
+
onChange: e,
|
|
927
|
+
options: n,
|
|
928
|
+
optionLabel: r = "label",
|
|
929
|
+
optionValue: a = "value",
|
|
930
|
+
placeholder: s = "Select…",
|
|
931
|
+
disabled: c = !1,
|
|
932
|
+
label: i,
|
|
933
|
+
className: l = "",
|
|
934
|
+
"data-testid": m
|
|
935
|
+
}) => {
|
|
936
|
+
const [f, g] = M(!1), [p, j] = M(-1), k = q(null), h = q(null), y = q(null), x = `multiselect-${Et().replace(/[^a-zA-Z0-9_-]/g, "")}`, [C, T] = M({}), E = tt(() => {
|
|
937
|
+
if (!h.current) return;
|
|
938
|
+
const _ = h.current.getBoundingClientRect();
|
|
939
|
+
T({
|
|
940
|
+
position: "fixed",
|
|
941
|
+
top: _.bottom + 4,
|
|
942
|
+
left: _.left,
|
|
943
|
+
width: _.width
|
|
944
|
+
});
|
|
945
|
+
}, []);
|
|
946
|
+
$(() => {
|
|
947
|
+
if (!f) return;
|
|
948
|
+
E();
|
|
949
|
+
const _ = () => E();
|
|
950
|
+
return window.addEventListener("scroll", _, !0), window.addEventListener("resize", _), () => {
|
|
951
|
+
window.removeEventListener("scroll", _, !0), window.removeEventListener("resize", _);
|
|
952
|
+
};
|
|
953
|
+
}, [f, E]), $(() => {
|
|
954
|
+
if (!f) return;
|
|
955
|
+
const _ = (N) => {
|
|
956
|
+
const R = N.target;
|
|
957
|
+
k.current && !k.current.contains(R) && y.current && !y.current.contains(R) && g(!1);
|
|
958
|
+
};
|
|
959
|
+
return document.addEventListener("mousedown", _), () => document.removeEventListener("mousedown", _);
|
|
960
|
+
}, [f]), $(() => {
|
|
961
|
+
f && j(-1);
|
|
962
|
+
}, [f]);
|
|
963
|
+
const K = (_) => {
|
|
964
|
+
t.includes(_) ? e(t.filter((N) => N !== _)) : e([...t, _]);
|
|
965
|
+
}, et = (_) => {
|
|
966
|
+
e(t.filter((N) => N !== _));
|
|
967
|
+
}, z = Lt(() => {
|
|
968
|
+
const _ = {};
|
|
969
|
+
return n.forEach((N) => {
|
|
970
|
+
_[zt(N, a)] = te(N, r);
|
|
971
|
+
}), _;
|
|
972
|
+
}, [n, r, a]), w = (_) => {
|
|
973
|
+
if ((_.key === "Enter" || _.key === " " || _.key === "ArrowDown") && (_.preventDefault(), !c && !f)) {
|
|
974
|
+
g(!0);
|
|
975
|
+
return;
|
|
976
|
+
}
|
|
977
|
+
if (_.key === "Escape") {
|
|
978
|
+
g(!1);
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
if (!(!f || n.length === 0)) {
|
|
982
|
+
if (_.key === "ArrowDown")
|
|
983
|
+
_.preventDefault(), j((N) => N < n.length - 1 ? N + 1 : 0);
|
|
984
|
+
else if (_.key === "ArrowUp")
|
|
985
|
+
_.preventDefault(), j((N) => N > 0 ? N - 1 : n.length - 1);
|
|
986
|
+
else if ((_.key === "Enter" || _.key === " ") && p >= 0) {
|
|
987
|
+
_.preventDefault();
|
|
988
|
+
const N = n[p];
|
|
989
|
+
N && K(zt(N, a));
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
};
|
|
993
|
+
$(() => {
|
|
994
|
+
var G;
|
|
995
|
+
if (!f || p < 0) return;
|
|
996
|
+
const _ = y.current;
|
|
997
|
+
if (!_) return;
|
|
998
|
+
const R = _.querySelectorAll('[role="option"]')[p];
|
|
999
|
+
(G = R == null ? void 0 : R.scrollIntoView) == null || G.call(R, { block: "nearest" });
|
|
1000
|
+
}, [p, f]);
|
|
1001
|
+
const b = [
|
|
1002
|
+
P.root,
|
|
1003
|
+
c ? P.disabled : "",
|
|
1004
|
+
f ? P.open : "",
|
|
1005
|
+
l
|
|
1006
|
+
].filter(Boolean).join(" "), L = f ? ae(
|
|
1007
|
+
/* @__PURE__ */ o(
|
|
1008
|
+
"div",
|
|
1009
|
+
{
|
|
1010
|
+
className: P.panel,
|
|
1011
|
+
style: C,
|
|
1012
|
+
ref: y,
|
|
1013
|
+
role: "presentation",
|
|
1014
|
+
children: /* @__PURE__ */ u(
|
|
1015
|
+
"ul",
|
|
1016
|
+
{
|
|
1017
|
+
className: P.list,
|
|
1018
|
+
role: "listbox",
|
|
1019
|
+
"aria-multiselectable": "true",
|
|
1020
|
+
children: [
|
|
1021
|
+
n.map((_, N) => {
|
|
1022
|
+
const R = zt(_, a), G = te(_, r), pt = t.includes(R), mt = N === p;
|
|
1023
|
+
return /* @__PURE__ */ u(
|
|
1024
|
+
"li",
|
|
1025
|
+
{
|
|
1026
|
+
role: "option",
|
|
1027
|
+
"aria-selected": pt,
|
|
1028
|
+
className: [
|
|
1029
|
+
P.option,
|
|
1030
|
+
pt ? P.optionSelected : "",
|
|
1031
|
+
mt ? P.optionFocused : ""
|
|
1032
|
+
].filter(Boolean).join(" "),
|
|
1033
|
+
onClick: () => K(R),
|
|
1034
|
+
children: [
|
|
1035
|
+
/* @__PURE__ */ o(
|
|
1036
|
+
"input",
|
|
1037
|
+
{
|
|
1038
|
+
type: "checkbox",
|
|
1039
|
+
checked: pt,
|
|
1040
|
+
readOnly: !0,
|
|
1041
|
+
tabIndex: -1,
|
|
1042
|
+
className: P.optionCheckbox
|
|
1043
|
+
}
|
|
1044
|
+
),
|
|
1045
|
+
/* @__PURE__ */ o("span", { children: G })
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
R
|
|
1049
|
+
);
|
|
1050
|
+
}),
|
|
1051
|
+
n.length === 0 && /* @__PURE__ */ o("li", { className: P.empty, children: "No options" })
|
|
1052
|
+
]
|
|
1053
|
+
}
|
|
1054
|
+
)
|
|
1055
|
+
}
|
|
1056
|
+
),
|
|
1057
|
+
document.body
|
|
1058
|
+
) : null;
|
|
1059
|
+
return /* @__PURE__ */ u("div", { className: b, ref: k, "data-testid": m, children: [
|
|
1060
|
+
i != null && /* @__PURE__ */ o("label", { htmlFor: x, className: P.label, children: i }),
|
|
1061
|
+
/* @__PURE__ */ u(
|
|
1062
|
+
"div",
|
|
1063
|
+
{
|
|
1064
|
+
id: x,
|
|
1065
|
+
ref: h,
|
|
1066
|
+
role: "combobox",
|
|
1067
|
+
"aria-expanded": f,
|
|
1068
|
+
"aria-haspopup": "listbox",
|
|
1069
|
+
"aria-activedescendant": f && p >= 0 ? `${x}-option-${p}` : void 0,
|
|
1070
|
+
tabIndex: c ? -1 : 0,
|
|
1071
|
+
className: [P.trigger, c ? P.triggerDisabled : ""].filter(Boolean).join(" "),
|
|
1072
|
+
onClick: () => !c && g((_) => !_),
|
|
1073
|
+
onKeyDown: w,
|
|
1074
|
+
children: [
|
|
1075
|
+
/* @__PURE__ */ u("div", { className: P.chips, children: [
|
|
1076
|
+
t.length === 0 && /* @__PURE__ */ o("span", { className: P.placeholder, children: s }),
|
|
1077
|
+
t.map((_) => /* @__PURE__ */ u(Lo, { variant: "info", className: P.chip, children: [
|
|
1078
|
+
/* @__PURE__ */ o("span", { className: P.chipLabel, children: z[_] ?? _ }),
|
|
1079
|
+
/* @__PURE__ */ o(
|
|
1080
|
+
"button",
|
|
1081
|
+
{
|
|
1082
|
+
type: "button",
|
|
1083
|
+
className: P.chipRemove,
|
|
1084
|
+
"aria-label": `Remove ${z[_] ?? _}`,
|
|
1085
|
+
onClick: (N) => {
|
|
1086
|
+
N.stopPropagation(), et(_);
|
|
1087
|
+
},
|
|
1088
|
+
children: /* @__PURE__ */ o(le, { size: 10 })
|
|
1089
|
+
}
|
|
1090
|
+
)
|
|
1091
|
+
] }, _))
|
|
1092
|
+
] }),
|
|
1093
|
+
/* @__PURE__ */ o(_e, { className: P.chevron, "aria-hidden": !0 })
|
|
1094
|
+
]
|
|
1095
|
+
}
|
|
1096
|
+
),
|
|
1097
|
+
L
|
|
1098
|
+
] });
|
|
1099
|
+
}, Ko = "_inputText_aq6o5_1", Qo = "_label_aq6o5_9", Xo = "_required_aq6o5_20", Yo = "_tooltipIcon_aq6o5_25", Go = "_input_aq6o5_1", Jo = "_inputTextarea_aq6o5_71", tr = "_inputTextDisabled_aq6o5_78", lt = {
|
|
1100
|
+
inputText: Ko,
|
|
1101
|
+
label: Qo,
|
|
1102
|
+
required: Xo,
|
|
1103
|
+
tooltipIcon: Yo,
|
|
1104
|
+
input: Go,
|
|
1105
|
+
inputTextarea: Jo,
|
|
1106
|
+
inputTextDisabled: tr
|
|
1107
|
+
}, si = ({
|
|
1167
1108
|
label: t,
|
|
1168
|
-
tooltip:
|
|
1169
|
-
required:
|
|
1170
|
-
inputId:
|
|
1171
|
-
textarea:
|
|
1172
|
-
rows:
|
|
1173
|
-
className:
|
|
1174
|
-
"data-testid":
|
|
1109
|
+
tooltip: e,
|
|
1110
|
+
required: n = !1,
|
|
1111
|
+
inputId: r,
|
|
1112
|
+
textarea: a = !1,
|
|
1113
|
+
rows: s,
|
|
1114
|
+
className: c = "",
|
|
1115
|
+
"data-testid": i,
|
|
1175
1116
|
disabled: l = !1,
|
|
1176
|
-
...
|
|
1117
|
+
...m
|
|
1177
1118
|
}) => {
|
|
1178
|
-
const { type:
|
|
1179
|
-
|
|
1180
|
-
l ?
|
|
1181
|
-
|
|
1182
|
-
].filter(Boolean).join(" "),
|
|
1183
|
-
let
|
|
1184
|
-
|
|
1185
|
-
const
|
|
1186
|
-
id:
|
|
1187
|
-
className:
|
|
1119
|
+
const { type: f = "text", ...g } = m, p = Et(), j = r || `input-text-${p.replace(/[^a-zA-Z0-9_-]/g, "")}`, k = [
|
|
1120
|
+
lt.inputText,
|
|
1121
|
+
l ? lt.inputTextDisabled : "",
|
|
1122
|
+
c
|
|
1123
|
+
].filter(Boolean).join(" "), h = g["aria-invalid"];
|
|
1124
|
+
let y;
|
|
1125
|
+
h === void 0 ? y = void 0 : h === !0 ? y = "true" : h === !1 ? y = "false" : y = h;
|
|
1126
|
+
const B = n ? { "aria-required": "true" } : { "aria-required": "false" }, x = y === void 0 ? {} : { "aria-invalid": y }, C = [lt.input, a ? lt.inputTextarea : ""].filter(Boolean).join(" "), T = {
|
|
1127
|
+
id: j,
|
|
1128
|
+
className: C,
|
|
1188
1129
|
disabled: l,
|
|
1189
|
-
...
|
|
1190
|
-
...
|
|
1191
|
-
"data-testid":
|
|
1130
|
+
...B,
|
|
1131
|
+
...x,
|
|
1132
|
+
"data-testid": i ? `${i}-input` : void 0
|
|
1192
1133
|
};
|
|
1193
|
-
return /* @__PURE__ */ u
|
|
1194
|
-
t != null && /* @__PURE__ */ u
|
|
1134
|
+
return /* @__PURE__ */ u("div", { className: k, "data-testid": i, children: [
|
|
1135
|
+
t != null && /* @__PURE__ */ u("label", { htmlFor: j, className: lt.label, children: [
|
|
1195
1136
|
t,
|
|
1196
|
-
|
|
1197
|
-
|
|
1137
|
+
n && /* @__PURE__ */ o("span", { className: lt.required, children: "*" }),
|
|
1138
|
+
e != null && /* @__PURE__ */ o(
|
|
1198
1139
|
"span",
|
|
1199
1140
|
{
|
|
1200
|
-
className:
|
|
1201
|
-
title:
|
|
1202
|
-
"aria-label":
|
|
1203
|
-
children: /* @__PURE__ */
|
|
1141
|
+
className: lt.tooltipIcon,
|
|
1142
|
+
title: e,
|
|
1143
|
+
"aria-label": e,
|
|
1144
|
+
children: /* @__PURE__ */ o(ue, { "aria-hidden": !0 })
|
|
1204
1145
|
}
|
|
1205
1146
|
)
|
|
1206
1147
|
] }),
|
|
1207
|
-
|
|
1148
|
+
a ? /* @__PURE__ */ o(
|
|
1208
1149
|
"textarea",
|
|
1209
1150
|
{
|
|
1210
|
-
...
|
|
1211
|
-
...
|
|
1212
|
-
rows:
|
|
1151
|
+
...g,
|
|
1152
|
+
...T,
|
|
1153
|
+
rows: s ?? 3
|
|
1213
1154
|
}
|
|
1214
|
-
) : /* @__PURE__ */
|
|
1155
|
+
) : /* @__PURE__ */ o("input", { ...g, ...T, type: f })
|
|
1215
1156
|
] });
|
|
1216
|
-
},
|
|
1217
|
-
selectButton:
|
|
1218
|
-
selectButtonDisabled:
|
|
1219
|
-
selectButtonInvalid:
|
|
1220
|
-
button:
|
|
1221
|
-
buttonFirst:
|
|
1222
|
-
buttonLast:
|
|
1223
|
-
buttonSelected:
|
|
1224
|
-
},
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1227
|
-
},
|
|
1157
|
+
}, er = "_selectButton_1xelm_1", nr = "_selectButtonDisabled_1xelm_9", or = "_selectButtonInvalid_1xelm_14", rr = "_button_1xelm_14", ar = "_buttonFirst_1xelm_47", sr = "_buttonLast_1xelm_51", cr = "_buttonSelected_1xelm_59", dt = {
|
|
1158
|
+
selectButton: er,
|
|
1159
|
+
selectButtonDisabled: nr,
|
|
1160
|
+
selectButtonInvalid: or,
|
|
1161
|
+
button: rr,
|
|
1162
|
+
buttonFirst: ar,
|
|
1163
|
+
buttonLast: sr,
|
|
1164
|
+
buttonSelected: cr
|
|
1165
|
+
}, ee = (t, e) => {
|
|
1166
|
+
const r = t[e];
|
|
1167
|
+
return r != null ? String(r) : "";
|
|
1168
|
+
}, Wt = (t, e) => t[e], ne = (t, e) => e == null ? !1 : !!t[e], ci = ({
|
|
1228
1169
|
value: t,
|
|
1229
|
-
onChange:
|
|
1230
|
-
options:
|
|
1231
|
-
optionLabel:
|
|
1232
|
-
optionValue:
|
|
1233
|
-
optionDisabled:
|
|
1234
|
-
multiple:
|
|
1235
|
-
itemTemplate:
|
|
1170
|
+
onChange: e,
|
|
1171
|
+
options: n,
|
|
1172
|
+
optionLabel: r = "label",
|
|
1173
|
+
optionValue: a = "value",
|
|
1174
|
+
optionDisabled: s,
|
|
1175
|
+
multiple: c = !1,
|
|
1176
|
+
itemTemplate: i,
|
|
1236
1177
|
disabled: l = !1,
|
|
1237
|
-
invalid:
|
|
1238
|
-
className:
|
|
1239
|
-
"data-testid":
|
|
1178
|
+
invalid: m = !1,
|
|
1179
|
+
className: f = "",
|
|
1180
|
+
"data-testid": g
|
|
1240
1181
|
}) => {
|
|
1241
|
-
const
|
|
1242
|
-
const
|
|
1243
|
-
return
|
|
1244
|
-
},
|
|
1245
|
-
if (l ||
|
|
1246
|
-
const
|
|
1247
|
-
if (
|
|
1248
|
-
let
|
|
1249
|
-
if (
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1182
|
+
const p = (h) => {
|
|
1183
|
+
const y = Wt(h, a);
|
|
1184
|
+
return c && Array.isArray(t) ? t.includes(y) : t === y;
|
|
1185
|
+
}, j = (h, y) => {
|
|
1186
|
+
if (l || ne(h, s)) return;
|
|
1187
|
+
const B = Wt(h, a);
|
|
1188
|
+
if (B === void 0) return;
|
|
1189
|
+
let x;
|
|
1190
|
+
if (c) {
|
|
1191
|
+
const C = Array.isArray(t) ? t : [];
|
|
1192
|
+
x = C.includes(B) ? C.filter((E) => E !== B) : [...C, B];
|
|
1252
1193
|
} else
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
value:
|
|
1256
|
-
originalEvent:
|
|
1194
|
+
x = t === B ? null : B;
|
|
1195
|
+
e == null || e({
|
|
1196
|
+
value: x,
|
|
1197
|
+
originalEvent: y
|
|
1257
1198
|
});
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1260
|
-
l ?
|
|
1261
|
-
|
|
1262
|
-
|
|
1199
|
+
}, k = [
|
|
1200
|
+
dt.selectButton,
|
|
1201
|
+
l ? dt.selectButtonDisabled : "",
|
|
1202
|
+
m ? dt.selectButtonInvalid : "",
|
|
1203
|
+
f
|
|
1263
1204
|
].filter(Boolean).join(" ");
|
|
1264
|
-
return /* @__PURE__ */
|
|
1205
|
+
return /* @__PURE__ */ o(
|
|
1265
1206
|
"div",
|
|
1266
1207
|
{
|
|
1267
|
-
className:
|
|
1208
|
+
className: k,
|
|
1268
1209
|
role: "group",
|
|
1269
1210
|
"aria-disabled": l,
|
|
1270
|
-
"data-testid":
|
|
1271
|
-
children:
|
|
1272
|
-
const
|
|
1273
|
-
return /* @__PURE__ */
|
|
1211
|
+
"data-testid": g,
|
|
1212
|
+
children: n.map((h, y) => {
|
|
1213
|
+
const B = Wt(h, a), x = B != null ? String(B) : `option-${y}`, C = ne(h, s), T = p(h);
|
|
1214
|
+
return /* @__PURE__ */ o(
|
|
1274
1215
|
"button",
|
|
1275
1216
|
{
|
|
1276
1217
|
type: "button",
|
|
1277
|
-
"aria-pressed":
|
|
1278
|
-
"aria-disabled":
|
|
1279
|
-
"aria-label":
|
|
1280
|
-
disabled: l ||
|
|
1218
|
+
"aria-pressed": T,
|
|
1219
|
+
"aria-disabled": C || l,
|
|
1220
|
+
"aria-label": ee(h, r),
|
|
1221
|
+
disabled: l || C,
|
|
1281
1222
|
className: [
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1223
|
+
dt.button,
|
|
1224
|
+
T ? dt.buttonSelected : "",
|
|
1225
|
+
y === 0 ? dt.buttonFirst : "",
|
|
1226
|
+
y === n.length - 1 ? dt.buttonLast : ""
|
|
1286
1227
|
].filter(Boolean).join(" "),
|
|
1287
|
-
onClick: (
|
|
1288
|
-
onKeyDown: (
|
|
1289
|
-
(
|
|
1228
|
+
onClick: (E) => j(h, E),
|
|
1229
|
+
onKeyDown: (E) => {
|
|
1230
|
+
(E.key === " " || E.key === "Enter") && (E.preventDefault(), j(h, E));
|
|
1290
1231
|
},
|
|
1291
|
-
"data-testid":
|
|
1292
|
-
children:
|
|
1232
|
+
"data-testid": g ? `${g}-option-${y}` : void 0,
|
|
1233
|
+
children: i ? i(h) : ee(h, r)
|
|
1293
1234
|
},
|
|
1294
|
-
|
|
1235
|
+
x
|
|
1295
1236
|
);
|
|
1296
1237
|
})
|
|
1297
1238
|
}
|
|
1298
1239
|
);
|
|
1299
|
-
},
|
|
1300
|
-
card:
|
|
1301
|
-
|
|
1302
|
-
|
|
1240
|
+
}, ir = "_card_13psy_1", lr = "_body_13psy_13", dr = "_header_13psy_20", ur = "_headerLeading_13psy_29", _r = "_headerActions_13psy_36", hr = "_title_13psy_44", pr = "_meta_13psy_53", mr = "_metaRow_13psy_59", fr = "_metaIcon_13psy_71", yr = "_metaContent_13psy_86", gr = "_footer_13psy_91", br = "_iconButton_13psy_99", vr = "_iconButtonDanger_13psy_126", F = {
|
|
1241
|
+
card: ir,
|
|
1242
|
+
body: lr,
|
|
1243
|
+
header: dr,
|
|
1244
|
+
headerLeading: ur,
|
|
1245
|
+
headerActions: _r,
|
|
1246
|
+
title: hr,
|
|
1247
|
+
meta: pr,
|
|
1248
|
+
metaRow: mr,
|
|
1249
|
+
metaIcon: fr,
|
|
1250
|
+
metaContent: yr,
|
|
1251
|
+
footer: gr,
|
|
1252
|
+
iconButton: br,
|
|
1253
|
+
iconButtonDanger: vr
|
|
1254
|
+
}, Nr = ({ children: t, className: e = "", ...n }) => /* @__PURE__ */ o(
|
|
1255
|
+
"div",
|
|
1256
|
+
{
|
|
1257
|
+
className: [F.body, e].filter(Boolean).join(" "),
|
|
1258
|
+
...n,
|
|
1259
|
+
children: t
|
|
1260
|
+
}
|
|
1261
|
+
), kr = ({
|
|
1262
|
+
tag: t,
|
|
1263
|
+
actions: e,
|
|
1264
|
+
children: n,
|
|
1265
|
+
className: r = "",
|
|
1266
|
+
...a
|
|
1267
|
+
}) => !(t != null || e != null) && n != null ? /* @__PURE__ */ o(
|
|
1268
|
+
"div",
|
|
1269
|
+
{
|
|
1270
|
+
className: [F.header, r].filter(Boolean).join(" "),
|
|
1271
|
+
...a,
|
|
1272
|
+
children: n
|
|
1273
|
+
}
|
|
1274
|
+
) : /* @__PURE__ */ u(
|
|
1275
|
+
"div",
|
|
1276
|
+
{
|
|
1277
|
+
className: [F.header, r].filter(Boolean).join(" "),
|
|
1278
|
+
...a,
|
|
1279
|
+
children: [
|
|
1280
|
+
/* @__PURE__ */ u("div", { className: F.headerLeading, children: [
|
|
1281
|
+
t,
|
|
1282
|
+
n
|
|
1283
|
+
] }),
|
|
1284
|
+
e ? /* @__PURE__ */ o("div", { className: F.headerActions, children: e }) : null
|
|
1285
|
+
]
|
|
1286
|
+
}
|
|
1287
|
+
), Br = ({ children: t, className: e = "", ...n }) => /* @__PURE__ */ o(
|
|
1288
|
+
"h2",
|
|
1289
|
+
{
|
|
1290
|
+
className: [F.title, e].filter(Boolean).join(" "),
|
|
1291
|
+
...n,
|
|
1292
|
+
children: t
|
|
1293
|
+
}
|
|
1294
|
+
), Cr = ({ children: t, className: e = "", ...n }) => /* @__PURE__ */ o(
|
|
1295
|
+
"div",
|
|
1296
|
+
{
|
|
1297
|
+
className: [F.meta, e].filter(Boolean).join(" "),
|
|
1298
|
+
...n,
|
|
1299
|
+
children: t
|
|
1300
|
+
}
|
|
1301
|
+
), jr = ({
|
|
1302
|
+
icon: t,
|
|
1303
|
+
children: e,
|
|
1303
1304
|
className: n = "",
|
|
1304
|
-
|
|
1305
|
-
|
|
1305
|
+
...r
|
|
1306
|
+
}) => /* @__PURE__ */ u(
|
|
1307
|
+
"div",
|
|
1308
|
+
{
|
|
1309
|
+
className: [F.metaRow, n].filter(Boolean).join(" "),
|
|
1310
|
+
...r,
|
|
1311
|
+
children: [
|
|
1312
|
+
/* @__PURE__ */ o("span", { className: F.metaIcon, "aria-hidden": !0, children: t }),
|
|
1313
|
+
/* @__PURE__ */ o("div", { className: F.metaContent, children: e })
|
|
1314
|
+
]
|
|
1315
|
+
}
|
|
1316
|
+
), xr = ({
|
|
1317
|
+
children: t,
|
|
1318
|
+
className: e = "",
|
|
1319
|
+
...n
|
|
1320
|
+
}) => /* @__PURE__ */ o(
|
|
1321
|
+
"div",
|
|
1322
|
+
{
|
|
1323
|
+
className: [F.footer, e].filter(Boolean).join(" "),
|
|
1324
|
+
...n,
|
|
1325
|
+
children: t
|
|
1326
|
+
}
|
|
1327
|
+
), he = J.forwardRef(
|
|
1328
|
+
({
|
|
1329
|
+
className: t = "",
|
|
1330
|
+
type: e = "button",
|
|
1331
|
+
variant: n = "default",
|
|
1332
|
+
children: r,
|
|
1333
|
+
...a
|
|
1334
|
+
}, s) => /* @__PURE__ */ o(
|
|
1335
|
+
"button",
|
|
1336
|
+
{
|
|
1337
|
+
ref: s,
|
|
1338
|
+
type: e,
|
|
1339
|
+
className: [
|
|
1340
|
+
F.iconButton,
|
|
1341
|
+
n === "danger" ? F.iconButtonDanger : "",
|
|
1342
|
+
t
|
|
1343
|
+
].filter(Boolean).join(" "),
|
|
1344
|
+
...a,
|
|
1345
|
+
children: r
|
|
1346
|
+
}
|
|
1347
|
+
)
|
|
1348
|
+
);
|
|
1349
|
+
he.displayName = "Card.IconButton";
|
|
1350
|
+
const wr = ({
|
|
1351
|
+
children: t,
|
|
1352
|
+
className: e = "",
|
|
1353
|
+
"data-testid": n,
|
|
1354
|
+
...r
|
|
1306
1355
|
}) => {
|
|
1307
|
-
const
|
|
1308
|
-
return /* @__PURE__ */
|
|
1309
|
-
},
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1356
|
+
const a = [F.card, e].filter(Boolean).join(" ");
|
|
1357
|
+
return /* @__PURE__ */ o("div", { className: a, "data-testid": n, ...r, children: t });
|
|
1358
|
+
}, Ht = Object.assign(wr, {
|
|
1359
|
+
Body: Nr,
|
|
1360
|
+
Header: kr,
|
|
1361
|
+
Title: Br,
|
|
1362
|
+
Meta: Cr,
|
|
1363
|
+
MetaRow: jr,
|
|
1364
|
+
Footer: xr,
|
|
1365
|
+
IconButton: he
|
|
1366
|
+
}), Lr = "_iconCard_e9t2h_1", Ar = "_iconSection_e9t2h_12", Ir = "_content_e9t2h_22", Vt = {
|
|
1367
|
+
iconCard: Lr,
|
|
1368
|
+
iconSection: Ar,
|
|
1369
|
+
content: Ir
|
|
1370
|
+
}, Dr = ({
|
|
1371
|
+
children: t,
|
|
1372
|
+
className: e = "",
|
|
1373
|
+
...n
|
|
1374
|
+
}) => /* @__PURE__ */ o(
|
|
1375
|
+
"div",
|
|
1376
|
+
{
|
|
1377
|
+
className: [Vt.iconSection, e].filter(Boolean).join(" "),
|
|
1378
|
+
...n,
|
|
1379
|
+
children: t
|
|
1380
|
+
}
|
|
1381
|
+
), Tr = ({
|
|
1382
|
+
children: t,
|
|
1383
|
+
className: e = "",
|
|
1384
|
+
...n
|
|
1385
|
+
}) => /* @__PURE__ */ o(
|
|
1386
|
+
"div",
|
|
1387
|
+
{
|
|
1388
|
+
className: [Vt.content, e].filter(Boolean).join(" "),
|
|
1389
|
+
...n,
|
|
1390
|
+
children: t
|
|
1391
|
+
}
|
|
1392
|
+
), qr = ({
|
|
1393
|
+
children: t,
|
|
1394
|
+
className: e = "",
|
|
1395
|
+
"data-testid": n,
|
|
1396
|
+
...r
|
|
1397
|
+
}) => {
|
|
1398
|
+
const a = [Vt.iconCard, e].filter(Boolean).join(" ");
|
|
1399
|
+
return /* @__PURE__ */ o("div", { className: a, "data-testid": n, ...r, children: t });
|
|
1400
|
+
}, ii = Object.assign(qr, {
|
|
1401
|
+
Icon: Dr,
|
|
1402
|
+
Content: Tr
|
|
1403
|
+
}), pe = {
|
|
1404
|
+
pdf: {
|
|
1405
|
+
extensions: [".pdf"],
|
|
1406
|
+
mimeTypes: ["application/pdf"]
|
|
1407
|
+
},
|
|
1408
|
+
doc: {
|
|
1409
|
+
extensions: [".doc"],
|
|
1410
|
+
mimeTypes: ["application/msword"]
|
|
1411
|
+
},
|
|
1412
|
+
docx: {
|
|
1413
|
+
extensions: [".docx"],
|
|
1414
|
+
mimeTypes: [
|
|
1415
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
1416
|
+
]
|
|
1417
|
+
},
|
|
1418
|
+
xls: {
|
|
1419
|
+
extensions: [".xls"],
|
|
1420
|
+
mimeTypes: ["application/vnd.ms-excel"]
|
|
1421
|
+
},
|
|
1422
|
+
xlsx: {
|
|
1423
|
+
extensions: [".xlsx"],
|
|
1424
|
+
mimeTypes: [
|
|
1425
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
1426
|
+
]
|
|
1427
|
+
},
|
|
1428
|
+
png: {
|
|
1429
|
+
extensions: [".png"],
|
|
1430
|
+
mimeTypes: ["image/png"]
|
|
1431
|
+
},
|
|
1432
|
+
jpeg: {
|
|
1433
|
+
extensions: [".jpg", ".jpeg"],
|
|
1434
|
+
mimeTypes: ["image/jpeg"]
|
|
1435
|
+
}
|
|
1436
|
+
}, Er = [
|
|
1437
|
+
"pdf"
|
|
1438
|
+
];
|
|
1439
|
+
function Rr(t) {
|
|
1440
|
+
return t.length === 0 ? Er : t;
|
|
1441
|
+
}
|
|
1442
|
+
function Sr(t) {
|
|
1443
|
+
const e = /* @__PURE__ */ new Set();
|
|
1444
|
+
for (const n of t) {
|
|
1445
|
+
const r = pe[n];
|
|
1446
|
+
for (const a of r.extensions) e.add(a);
|
|
1447
|
+
for (const a of r.mimeTypes) e.add(a);
|
|
1448
|
+
}
|
|
1449
|
+
return [...e].join(",");
|
|
1450
|
+
}
|
|
1451
|
+
function Or(t, e) {
|
|
1452
|
+
const n = /* @__PURE__ */ new Set(), r = [];
|
|
1453
|
+
for (const c of e) {
|
|
1454
|
+
const i = pe[c];
|
|
1455
|
+
for (const l of i.mimeTypes) n.add(l);
|
|
1456
|
+
for (const l of i.extensions) r.push(l.slice(1));
|
|
1457
|
+
}
|
|
1458
|
+
const a = r.map(
|
|
1459
|
+
(c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")
|
|
1460
|
+
), s = new RegExp(`\\.(${a.join("|")})$`, "i");
|
|
1461
|
+
return !!(t.type && n.has(t.type) || !t.type && s.test(t.name) || t.type && s.test(t.name));
|
|
1462
|
+
}
|
|
1463
|
+
const $r = "_root_1mmsz_1", Pr = "_dropZone_1mmsz_6", zr = "_dropZoneDisabled_1mmsz_18", Wr = "_dropZoneActive_1mmsz_26", Mr = "_iconWrap_1mmsz_37", Hr = "_dropTitle_1mmsz_49", Zr = "_formats_1mmsz_57", Vr = "_browseWrap_1mmsz_65", Fr = "_hiddenInput_1mmsz_70", ot = {
|
|
1464
|
+
root: $r,
|
|
1465
|
+
dropZone: Pr,
|
|
1466
|
+
dropZoneDisabled: zr,
|
|
1467
|
+
dropZoneActive: Wr,
|
|
1468
|
+
iconWrap: Mr,
|
|
1469
|
+
dropTitle: Hr,
|
|
1470
|
+
formats: Zr,
|
|
1471
|
+
browseWrap: Vr,
|
|
1472
|
+
hiddenInput: Fr
|
|
1473
|
+
}, li = ({
|
|
1474
|
+
supportedTypes: t,
|
|
1475
|
+
onFileSelect: e,
|
|
1476
|
+
onRejectFile: n,
|
|
1477
|
+
maxSizeBytes: r,
|
|
1478
|
+
uploading: a = !1,
|
|
1479
|
+
dropHint: s,
|
|
1480
|
+
formatsHint: c,
|
|
1481
|
+
browseLabel: i,
|
|
1482
|
+
uploadingLabel: l,
|
|
1483
|
+
className: m = "",
|
|
1484
|
+
"data-testid": f
|
|
1485
|
+
}) => {
|
|
1486
|
+
const g = q(null), p = Et(), [j, k] = M(!1), h = Lt(
|
|
1487
|
+
() => Rr(t),
|
|
1488
|
+
[t]
|
|
1489
|
+
), y = Lt(
|
|
1490
|
+
() => Sr(h),
|
|
1491
|
+
[h]
|
|
1492
|
+
), B = tt(
|
|
1493
|
+
(b) => {
|
|
1494
|
+
if (r != null && b.size > r) {
|
|
1495
|
+
n == null || n(b, "size");
|
|
1496
|
+
return;
|
|
1497
|
+
}
|
|
1498
|
+
if (!Or(b, h)) {
|
|
1499
|
+
n == null || n(b, "type");
|
|
1500
|
+
return;
|
|
1501
|
+
}
|
|
1502
|
+
e(b);
|
|
1503
|
+
},
|
|
1504
|
+
[r, e, n, h]
|
|
1505
|
+
), x = tt(() => {
|
|
1506
|
+
var b;
|
|
1507
|
+
a || (b = g.current) == null || b.click();
|
|
1508
|
+
}, [a]), C = (b) => {
|
|
1509
|
+
var _;
|
|
1510
|
+
const L = (_ = b.target.files) == null ? void 0 : _[0];
|
|
1511
|
+
L && B(L), b.target.value = "";
|
|
1512
|
+
}, T = (b) => {
|
|
1513
|
+
b.preventDefault(), b.stopPropagation(), a || k(!0);
|
|
1514
|
+
}, E = (b) => {
|
|
1515
|
+
b.preventDefault(), b.stopPropagation(), k(!1);
|
|
1516
|
+
}, K = (b) => {
|
|
1517
|
+
var _;
|
|
1518
|
+
if (b.preventDefault(), b.stopPropagation(), k(!1), a) return;
|
|
1519
|
+
const L = (_ = b.dataTransfer.files) == null ? void 0 : _[0];
|
|
1520
|
+
L && B(L);
|
|
1521
|
+
}, et = (b) => {
|
|
1522
|
+
a || b.target.closest("button") || x();
|
|
1523
|
+
}, z = (b) => {
|
|
1524
|
+
a || b.key !== "Enter" && b.key !== " " || (b.preventDefault(), x());
|
|
1525
|
+
}, w = [
|
|
1526
|
+
ot.dropZone,
|
|
1527
|
+
j ? ot.dropZoneActive : "",
|
|
1528
|
+
a ? ot.dropZoneDisabled : ""
|
|
1529
|
+
].filter(Boolean).join(" ");
|
|
1530
|
+
return /* @__PURE__ */ o(
|
|
1531
|
+
Ht,
|
|
1532
|
+
{
|
|
1533
|
+
className: [ot.root, m].filter(Boolean).join(" "),
|
|
1534
|
+
"data-testid": f,
|
|
1535
|
+
children: /* @__PURE__ */ o(Ht.Body, { children: /* @__PURE__ */ u(
|
|
1536
|
+
"div",
|
|
1537
|
+
{
|
|
1538
|
+
className: w,
|
|
1539
|
+
onDragOver: T,
|
|
1540
|
+
onDragLeave: E,
|
|
1541
|
+
onDrop: K,
|
|
1542
|
+
onClick: et,
|
|
1543
|
+
onKeyDown: z,
|
|
1544
|
+
role: "button",
|
|
1545
|
+
tabIndex: a ? -1 : 0,
|
|
1546
|
+
"aria-disabled": a || void 0,
|
|
1547
|
+
"aria-labelledby": p,
|
|
1548
|
+
children: [
|
|
1549
|
+
/* @__PURE__ */ o("div", { className: ot.iconWrap, "aria-hidden": !0, children: /* @__PURE__ */ o(Ln, { size: 22 }) }),
|
|
1550
|
+
/* @__PURE__ */ o("p", { id: p, className: ot.dropTitle, children: s }),
|
|
1551
|
+
/* @__PURE__ */ o("p", { className: ot.formats, children: c }),
|
|
1552
|
+
/* @__PURE__ */ u("div", { className: ot.browseWrap, children: [
|
|
1553
|
+
/* @__PURE__ */ o(
|
|
1554
|
+
"input",
|
|
1555
|
+
{
|
|
1556
|
+
ref: g,
|
|
1557
|
+
type: "file",
|
|
1558
|
+
className: ot.hiddenInput,
|
|
1559
|
+
accept: y,
|
|
1560
|
+
onChange: C,
|
|
1561
|
+
disabled: a,
|
|
1562
|
+
"aria-hidden": !0
|
|
1563
|
+
}
|
|
1564
|
+
),
|
|
1565
|
+
/* @__PURE__ */ o(
|
|
1566
|
+
ie,
|
|
1567
|
+
{
|
|
1568
|
+
label: a ? l : i,
|
|
1569
|
+
onClick: x,
|
|
1570
|
+
disabled: a
|
|
1571
|
+
}
|
|
1572
|
+
)
|
|
1573
|
+
] })
|
|
1574
|
+
]
|
|
1575
|
+
}
|
|
1576
|
+
) })
|
|
1577
|
+
}
|
|
1578
|
+
);
|
|
1579
|
+
}, Ur = "_alert_90rze_1", Kr = "_alertTitle_90rze_7", Qr = "_alertBody_90rze_16", Xr = "_alertError_90rze_22", Yr = "_alertWarning_90rze_28", Gr = "_alertInfo_90rze_34", Jr = "_alertSuccess_90rze_40", ht = {
|
|
1580
|
+
alert: Ur,
|
|
1581
|
+
alertTitle: Kr,
|
|
1582
|
+
alertBody: Qr,
|
|
1583
|
+
alertError: Xr,
|
|
1584
|
+
alertWarning: Yr,
|
|
1585
|
+
alertInfo: Gr,
|
|
1586
|
+
alertSuccess: Jr
|
|
1587
|
+
}, ta = {
|
|
1588
|
+
error: ht.alertError,
|
|
1589
|
+
warning: ht.alertWarning,
|
|
1590
|
+
info: ht.alertInfo,
|
|
1591
|
+
success: ht.alertSuccess
|
|
1592
|
+
}, ea = {
|
|
1593
|
+
error: /* @__PURE__ */ o(On, { size: 16, "aria-hidden": !0 }),
|
|
1594
|
+
warning: /* @__PURE__ */ o(Sn, { size: 16, "aria-hidden": !0 }),
|
|
1595
|
+
info: /* @__PURE__ */ o(ue, { size: 16, "aria-hidden": !0 }),
|
|
1596
|
+
success: /* @__PURE__ */ o(Rn, { size: 16, "aria-hidden": !0 })
|
|
1597
|
+
}, di = ({
|
|
1321
1598
|
variant: t = "info",
|
|
1599
|
+
title: e,
|
|
1322
1600
|
children: n,
|
|
1601
|
+
className: r,
|
|
1602
|
+
"data-testid": a,
|
|
1603
|
+
...s
|
|
1604
|
+
}) => {
|
|
1605
|
+
const c = [ht.alert, ta[t], r].filter(Boolean).join(" ");
|
|
1606
|
+
return /* @__PURE__ */ u("div", { className: c, role: "alert", "data-testid": a, ...s, children: [
|
|
1607
|
+
e && /* @__PURE__ */ u("div", { className: ht.alertTitle, children: [
|
|
1608
|
+
ea[t],
|
|
1609
|
+
/* @__PURE__ */ o("span", { children: e })
|
|
1610
|
+
] }),
|
|
1611
|
+
n && /* @__PURE__ */ o("div", { className: ht.alertBody, children: n })
|
|
1612
|
+
] });
|
|
1613
|
+
}, na = "_sideMenu_9at6r_1", oa = "_brand_9at6r_11", ra = "_logoMark_9at6r_19", aa = "_brandText_9at6r_33", sa = "_brandTitle_9at6r_40", ca = "_brandSubtitle_9at6r_47", ia = "_sectionLabel_9at6r_52", la = "_nav_9at6r_61", da = "_navItem_9at6r_68", ua = "_navItemActive_9at6r_102", _a = "_navIcon_9at6r_109", ha = "_navLabel_9at6r_123", pa = "_navBadge_9at6r_130", ma = "_footer_9at6r_145", Z = {
|
|
1614
|
+
sideMenu: na,
|
|
1615
|
+
brand: oa,
|
|
1616
|
+
logoMark: ra,
|
|
1617
|
+
brandText: aa,
|
|
1618
|
+
brandTitle: sa,
|
|
1619
|
+
brandSubtitle: ca,
|
|
1620
|
+
sectionLabel: ia,
|
|
1621
|
+
nav: la,
|
|
1622
|
+
navItem: da,
|
|
1623
|
+
navItemActive: ua,
|
|
1624
|
+
navIcon: _a,
|
|
1625
|
+
navLabel: ha,
|
|
1626
|
+
navBadge: pa,
|
|
1627
|
+
footer: ma
|
|
1628
|
+
}, fa = ({
|
|
1629
|
+
title: t = "EMPORIX",
|
|
1630
|
+
subtitle: e,
|
|
1631
|
+
logo: n,
|
|
1632
|
+
className: r = "",
|
|
1633
|
+
...a
|
|
1634
|
+
}) => /* @__PURE__ */ u(
|
|
1635
|
+
"div",
|
|
1636
|
+
{
|
|
1637
|
+
className: [Z.brand, r].filter(Boolean).join(" "),
|
|
1638
|
+
...a,
|
|
1639
|
+
children: [
|
|
1640
|
+
/* @__PURE__ */ o("div", { className: Z.logoMark, "aria-hidden": "true", children: n ?? "E" }),
|
|
1641
|
+
/* @__PURE__ */ u("div", { className: Z.brandText, children: [
|
|
1642
|
+
/* @__PURE__ */ o("div", { className: Z.brandTitle, children: t }),
|
|
1643
|
+
e && /* @__PURE__ */ o("div", { className: Z.brandSubtitle, children: e })
|
|
1644
|
+
] })
|
|
1645
|
+
]
|
|
1646
|
+
}
|
|
1647
|
+
), ya = ({
|
|
1648
|
+
label: t,
|
|
1649
|
+
children: e,
|
|
1650
|
+
className: n = "",
|
|
1651
|
+
...r
|
|
1652
|
+
}) => /* @__PURE__ */ u(kt, { children: [
|
|
1653
|
+
t && /* @__PURE__ */ o("div", { className: Z.sectionLabel, children: t }),
|
|
1654
|
+
/* @__PURE__ */ o(
|
|
1655
|
+
"nav",
|
|
1656
|
+
{
|
|
1657
|
+
className: [Z.nav, n].filter(Boolean).join(" "),
|
|
1658
|
+
"aria-label": t ?? "Navigation",
|
|
1659
|
+
...r,
|
|
1660
|
+
children: e
|
|
1661
|
+
}
|
|
1662
|
+
)
|
|
1663
|
+
] }), ga = ({
|
|
1664
|
+
icon: t,
|
|
1665
|
+
active: e = !1,
|
|
1666
|
+
badge: n,
|
|
1667
|
+
children: r,
|
|
1323
1668
|
className: a = "",
|
|
1324
|
-
"
|
|
1325
|
-
|
|
1669
|
+
as: s = "div",
|
|
1670
|
+
type: c = "button",
|
|
1671
|
+
...i
|
|
1326
1672
|
}) => {
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1673
|
+
const l = [
|
|
1674
|
+
Z.navItem,
|
|
1675
|
+
e ? Z.navItemActive : "",
|
|
1676
|
+
a
|
|
1677
|
+
].filter(Boolean).join(" "), m = /* @__PURE__ */ u(kt, { children: [
|
|
1678
|
+
t && /* @__PURE__ */ o("span", { className: Z.navIcon, "aria-hidden": "true", children: t }),
|
|
1679
|
+
/* @__PURE__ */ o("span", { className: Z.navLabel, children: r }),
|
|
1680
|
+
n != null && /* @__PURE__ */ o("span", { className: Z.navBadge, children: n })
|
|
1681
|
+
] });
|
|
1682
|
+
return s === "button" ? /* @__PURE__ */ o("button", { type: c, className: l, ...i, children: m }) : /* @__PURE__ */ o("div", { className: l, ...i, children: m });
|
|
1683
|
+
}, ba = ({
|
|
1684
|
+
children: t,
|
|
1685
|
+
className: e = "",
|
|
1686
|
+
...n
|
|
1687
|
+
}) => /* @__PURE__ */ o(
|
|
1688
|
+
"div",
|
|
1689
|
+
{
|
|
1690
|
+
className: [Z.footer, e].filter(Boolean).join(" "),
|
|
1691
|
+
...n,
|
|
1692
|
+
children: t
|
|
1693
|
+
}
|
|
1694
|
+
), va = ({
|
|
1695
|
+
children: t,
|
|
1696
|
+
className: e = "",
|
|
1697
|
+
"data-testid": n,
|
|
1698
|
+
...r
|
|
1699
|
+
}) => /* @__PURE__ */ o(
|
|
1700
|
+
"nav",
|
|
1701
|
+
{
|
|
1702
|
+
className: [Z.sideMenu, e].filter(Boolean).join(" "),
|
|
1703
|
+
"data-testid": n,
|
|
1704
|
+
"aria-label": "Side navigation",
|
|
1705
|
+
...r,
|
|
1706
|
+
children: t
|
|
1707
|
+
}
|
|
1708
|
+
), ui = Object.assign(va, {
|
|
1709
|
+
Brand: fa,
|
|
1710
|
+
Nav: ya,
|
|
1711
|
+
NavItem: ga,
|
|
1712
|
+
Footer: ba
|
|
1713
|
+
}), Na = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKMAAAAYCAYAAACWYU02AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAo6ADAAQAAAABAAAAGAAAAADUwQHYAAAKfklEQVRoBcWbfdBVVRXGeUEzwsEvSEpSbHQiMCvUIj+m14xRMw2pmWw0xkwtyxqwD61IPqTQcJSSYNJyypBRahCcKfnDQFRmypKyFKQMEtGkVFBQUFH6PS9n39Zdd+1zzr28DmvmYa+PZ629z3nXPfecfS5dfUpk586d+xA+BhwOhoIdYF2Bx7q6uragVwp1hkESrPyT/Cesox2dmifC38vlrKDmq8kHZxD6UcnOjJvwr617LJkafZhrX2IfB93gvWAYOBhsAxvAGrAALGKurYy1hLonQeyXIe/EvxGso+bLGU7opu6xBLRmKzoP661DOtwzGSaDkWA1uA7ePMaOhHrnkXgZeDd4BEyj3p2MrQL5ZLAUvALKRJzu1grNHjhTgiIv4XtnM7OeRd71QT251HwNwR6b4UXuv+OcDUY0CtRQ4A8E14IXQB3ZDOlLoKtGeTXCi3WKwnkKLAeXg4OqasP5G/DyHZ8HYYInFfZMz61jkzszU29SUz6kfcDtGXKZu+UgbGESp2WS51teHZ06Q8GOTL232hpw2mlGW3I+xjtsrUiHcxBYaRPb0NU4dZqmbjPaqZ/EOD5ac/IR391m1HxtNaT4SsrItLQ2fQLfDJZliHXcX28UcwrJuWZ8jdhwRy814f+iZDG+Gc8u4VaFtkDQLUooxAaDNVVFKuJPEH9XOEHhJN5JM2pa5emrOBRitZpRyXBzV0dC9RpSPJEzcn3TIiHNzRD/hH886C7wBUadRC+v4/hgU9HCwJ9rRtXQfVQtgTscqIFz4psxujIq/x6D+9FztyOPE3uTXxy+AeBBUCbPENTVLzpXNm89RvYKSSxqxtX40zGsQ8/JSr/2ZJNQuxmVA//K3CT4S6+QipfktjTiGRmyGrTl3gafrqJ3Bjl3p4O1I7yyZlSZWldHeL8SuUTqNONWuzbp1NsPzMvUPTfg35Lhyv1rcDpoPHSgq/5Z4M8gkqV+jmRD1r21Fz0ANITgIeBGTyrsExpEoxBrqxmVSs6MzBxyhw0pf0nOHLOkngn6Ql4VJCzC19KIKZlYf/BYkDcycdIIp6oZFyZubqTG0cFc3tVRM2pOCvUDf/EFsW+xa8IeHXDkeh6cbbleJ94FpoNI9MTaIhCjK2NTMyoJnmrrIczLt1qK7uK33YzFPLmHR83b1JCy/WKM3dyIRfEzDcGqh0cHYX2Qz7cJhf5NyynmqGpGpWo7JCvEf1PULxs6bkZNTOFonSvsouAsCRagW5TwCmRzkw53QVDjwRS3I7zKK2Piw50T1L0hxe0Ir6NmVA1ytXuQk9MKzvdzBPw/tmtJel8U7Y15uZ99H+0nVsl9AWF04Itc/uvyqogkH4tXzY+5+BZn94b5YlCkf/Kxjv3RT0m2GWdwvpqa1sQi9WKcL7nAKOof5nwytZdYV6K9xs11k+vyOFY9rM4N+LOI6cN6JbHwioz/ZnBpkNuzaXxiEBhAwSmB37u0Ke5liHdk7J/g/5qJ6Qo9ioOJbrqvNjypz4E7wOdl9KIcGdR62vjGoPuN9tfwzTKcSpVj3Myx/gziVxxZH7joj+xorSb19KA1tjXS5+HAt9sujkF7papzSVFMjTgR3wTsqYXPD7fiuBBe+AHTiW36aiuy388odCKDaibdBG8csLcD07GbroAcnK5EHwZW1JyHWkdGj+55I5+uvoOp8Zmgzu+Nb5jRk7qUk/vfZLQx6o2Db0a9kehUppA4zCXr6rvE+XrNLBpyBwV3oF/GOVRjNj8d/382NeL4XCOKpmY8UEovyvagVvRJ0EFMBvYBQU+hH2DBD5gaM4wudSPQfdAPZFRING+Tj/n2psYZQLcJbwnq3W58bzN6Uju98jyaCpjxEKOXqeNY9xEFoT+j1j8ySJjIuXw+8Peai/pfVTHWcwHDnEzh2/B/tqwRladm3AYGyDCyDn29sdtRdcXzEl2N5NOn5dtguEn4HvoY2RzgWQzHSTei95jbiRlXW6puQeomz2auNab660ZPqs5hJ6Lz3qnoqV0ok6tY+41lhN6KcTrPpdZPM/V0sTm/qhGVqxP5DPDNuJjkiSL0kkR/xD7MoafQK5hjkZnno/g+gr0MXGP8UvUhSc0e1Yx8rkRtU1/PulG38rQ1Cn1Y4KvjOjQgPRn4og9yQGu49FQ+iXP7hn09N2ZC4W/1KQY1XLTOnkYkdh28h1mT7pOz0pfIhiBa+ooq4Fe5ooX25LDAxSh/dAVmYp8M7BVTlMnwX5WCRDUj3y52/X9fhjobdDOXdCv6MHgZw4ne3ztr2NEuxqogr+5VPKU+i7I8GW/kyHGfQ/3bgPrIS6MRCeih5ib44z2pyYZwNfCyBUc0QVNuXYNaU/0E2EekfPRTgvgDzvcIdmNN6D90cZl6CGkIdvQ60KdtwqFXnnrbpHfZ/lvC1htIPPqRRltfh5oDPAu8tNyTQtjqSdhjtSjG9wH9rbxU/gCFhI73GYu5z6GGvtki0dsgbcL7DXLxL2qcUK8Q1Cc7kvM8t1Ob4tFmcqMZVRfOvdEijE9P3g3B/yMTS2rTzgBONZeXaC+xUbdKoVi06a05mnYByurAjX4ZZR/aGulwo03vxv0i8StAJD0N2yjkFBI6bkZySxtRU8E5NVpU4bvELWeXSXAv8K8gcSO+g8Mk54R3FBjl3A2TWJ1mPA5eTh5qFCsUiHuqGUdnFqkfW3zCr9PaxPuCn2fyT7fcpMOtasa94Twe1Pw3vn1THT8S66gZybsgmCu5mp6mcZa9qfmyX1OPTdKFqZob9euQI8MknMQOA78DST4ZcQlWNqPy4C1Ohdx4qq9LfI80Y7HOX7r1WVPn49NgYFoz+hBwOVgLIrkrcf0IubQZi/Xkbkdm+XrJpm7bzUjOeJD9ak617Qi/7P1065sYEvSJvRtEosnvApPAaeBicDO4B2wHVmSfYBcjHV/dZtRPxLzc6+sVNfdkM+qer+onZDqOlSD6MYliSdaiHBAdY3Gclc1Y8JangmbU3+6YqDb+tpoR/kVA9SIpvWcmoe2GPJAknZjdkS0kj/YHj69WMxYn1V7at5F7tK9X8PZYMxbzD2ZtfwW7I/qto98xaDpc4nWbcQTc6OFKTdevqSgGvtrNCFeNmBO9gKgUkssa0m+h9SxwP5J+m5u1wv8f4sdGq8Jf+jRtc+DqKexDoBscZmNWJ1bnabrXH2DcGnSFzN1aECoVfbMMsvUiHU6tZlQu3BsyM2prpUngPRRwv9hEwoBzacBLrlqNmGqS1F5DKpGkcWBVmrFifIH4AvD2NKkfidW+MvrcnE3NPXpltOtiLbp9WQrqiJqw5w2TrZHT4UbNGD4pwz0A6MHTi75hhto5sH0z6j90tdwu4JsAImmrEdPcFMo15GS9gWkRNnsX4lxI4nsYTwLaBNcbg7RY/VJlEVgC9x+MVbIMgn878lxVUkVcN/2+ht+2WQ1nqqvzirN32+Qc6G3HEs7XEMZucDzQvbN+o6k3XH8A94H5cJ9ibEemQ9Yvcqw8ao2kU1t7ptrV+Bzwf1vdDmxIXMa5QOuVbALzlN9jmX/wzaKm/sZTgPpB5/Ra/Lcyti3kfYN6K0j8LhgBtNE/Hf8d/wPfUXoPHjYzNwAAAABJRU5ErkJggg==", ka = "_topNav_5wym0_1", Ba = "_left_5wym0_14", Ca = "_logoArea_5wym0_20", ja = "_logoImage_5wym0_25", xa = "_start_5wym0_31", wa = "_actions_5wym0_36", Nt = {
|
|
1714
|
+
topNav: ka,
|
|
1715
|
+
left: Ba,
|
|
1716
|
+
logoArea: Ca,
|
|
1717
|
+
logoImage: ja,
|
|
1718
|
+
start: xa,
|
|
1719
|
+
actions: wa
|
|
1720
|
+
}, me = () => /* @__PURE__ */ o("img", { src: Na, alt: "Emporix", className: Nt.logoImage }), La = ({
|
|
1721
|
+
logo: t,
|
|
1722
|
+
start: e,
|
|
1723
|
+
children: n,
|
|
1724
|
+
className: r = "",
|
|
1725
|
+
"data-testid": a,
|
|
1726
|
+
...s
|
|
1727
|
+
}) => /* @__PURE__ */ u(
|
|
1728
|
+
"header",
|
|
1729
|
+
{
|
|
1730
|
+
className: [Nt.topNav, r].filter(Boolean).join(" "),
|
|
1731
|
+
"data-testid": a,
|
|
1732
|
+
"aria-label": "Top navigation",
|
|
1733
|
+
...s,
|
|
1734
|
+
children: [
|
|
1735
|
+
/* @__PURE__ */ u("div", { className: Nt.left, children: [
|
|
1736
|
+
e && /* @__PURE__ */ o("div", { className: Nt.start, children: e }),
|
|
1737
|
+
/* @__PURE__ */ o("div", { className: Nt.logoArea, children: t ?? /* @__PURE__ */ o(me, {}) })
|
|
1738
|
+
] }),
|
|
1739
|
+
n && /* @__PURE__ */ o("div", { className: Nt.actions, children: n })
|
|
1740
|
+
]
|
|
1741
|
+
}
|
|
1742
|
+
), _i = Object.assign(La, {
|
|
1743
|
+
Logo: me
|
|
1744
|
+
}), Aa = "_overlay_1cjjq_1", Ia = "_toast_1cjjq_15", Da = "_toastExiting_1cjjq_35", Ta = "_toastSuccess_1cjjq_59", qa = "_toastError_1cjjq_63", Ea = "_toastWarning_1cjjq_67", Ra = "_toastInfo_1cjjq_71", Sa = "_icon_1cjjq_75", Oa = "_iconSuccess_1cjjq_89", $a = "_iconError_1cjjq_94", Pa = "_iconWarning_1cjjq_99", za = "_iconInfo_1cjjq_104", Wa = "_message_1cjjq_109", Ma = "_closeButton_1cjjq_114", V = {
|
|
1745
|
+
overlay: Aa,
|
|
1746
|
+
toast: Ia,
|
|
1747
|
+
toastExiting: Da,
|
|
1748
|
+
toastSuccess: Ta,
|
|
1749
|
+
toastError: qa,
|
|
1750
|
+
toastWarning: Ea,
|
|
1751
|
+
toastInfo: Ra,
|
|
1752
|
+
icon: Sa,
|
|
1753
|
+
iconSuccess: Oa,
|
|
1754
|
+
iconError: $a,
|
|
1755
|
+
iconWarning: Pa,
|
|
1756
|
+
iconInfo: za,
|
|
1757
|
+
message: Wa,
|
|
1758
|
+
closeButton: Ma
|
|
1759
|
+
}, Ha = {
|
|
1760
|
+
success: V.toastSuccess,
|
|
1761
|
+
error: V.toastError,
|
|
1762
|
+
warning: V.toastWarning,
|
|
1763
|
+
info: V.toastInfo
|
|
1764
|
+
}, Za = {
|
|
1765
|
+
success: V.iconSuccess,
|
|
1766
|
+
error: V.iconError,
|
|
1767
|
+
warning: V.iconWarning,
|
|
1768
|
+
info: V.iconInfo
|
|
1769
|
+
}, Va = () => /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ o(
|
|
1770
|
+
"path",
|
|
1771
|
+
{
|
|
1772
|
+
d: "M3.5 8.5L6.5 11.5L12.5 4.5",
|
|
1773
|
+
stroke: "currentColor",
|
|
1774
|
+
strokeWidth: "2",
|
|
1775
|
+
strokeLinecap: "round",
|
|
1776
|
+
strokeLinejoin: "round"
|
|
1777
|
+
}
|
|
1778
|
+
) }), Fa = () => /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ o(
|
|
1779
|
+
"path",
|
|
1780
|
+
{
|
|
1781
|
+
d: "M4 4L12 12M12 4L4 12",
|
|
1782
|
+
stroke: "currentColor",
|
|
1783
|
+
strokeWidth: "2",
|
|
1784
|
+
strokeLinecap: "round",
|
|
1785
|
+
strokeLinejoin: "round"
|
|
1786
|
+
}
|
|
1787
|
+
) }), Ua = () => /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ o(
|
|
1788
|
+
"path",
|
|
1789
|
+
{
|
|
1790
|
+
d: "M8 4V9M8 11.5V12",
|
|
1791
|
+
stroke: "currentColor",
|
|
1792
|
+
strokeWidth: "2",
|
|
1793
|
+
strokeLinecap: "round"
|
|
1794
|
+
}
|
|
1795
|
+
) }), Ka = () => /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ o(
|
|
1796
|
+
"path",
|
|
1797
|
+
{
|
|
1798
|
+
d: "M8 4.5V4M8 7V12",
|
|
1799
|
+
stroke: "currentColor",
|
|
1800
|
+
strokeWidth: "2",
|
|
1801
|
+
strokeLinecap: "round"
|
|
1802
|
+
}
|
|
1803
|
+
) }), Qa = {
|
|
1804
|
+
success: Va,
|
|
1805
|
+
error: Fa,
|
|
1806
|
+
warning: Ua,
|
|
1807
|
+
info: Ka
|
|
1808
|
+
}, Xa = () => /* @__PURE__ */ o("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: /* @__PURE__ */ o(
|
|
1809
|
+
"path",
|
|
1810
|
+
{
|
|
1811
|
+
d: "M3 3L11 11M11 3L3 11",
|
|
1812
|
+
stroke: "currentColor",
|
|
1813
|
+
strokeWidth: "1.5",
|
|
1814
|
+
strokeLinecap: "round",
|
|
1815
|
+
strokeLinejoin: "round"
|
|
1816
|
+
}
|
|
1817
|
+
) });
|
|
1818
|
+
let Ya = 0;
|
|
1819
|
+
const Ga = 4e3, Ja = ({ entry: t, onClose: e }) => {
|
|
1820
|
+
const [n, r] = M(!1), a = q(null), s = q(null), c = q(e), i = q(t.id);
|
|
1821
|
+
$(() => {
|
|
1822
|
+
c.current = e, i.current = t.id;
|
|
1823
|
+
}, [e, t.id]);
|
|
1824
|
+
const l = tt(() => {
|
|
1825
|
+
r(!0), s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
|
1826
|
+
s.current = null, c.current(i.current);
|
|
1827
|
+
}, 200);
|
|
1828
|
+
}, []);
|
|
1829
|
+
$(() => {
|
|
1830
|
+
const p = t.duration ?? Ga;
|
|
1831
|
+
return p > 0 && (a.current = setTimeout(l, p)), () => {
|
|
1832
|
+
a.current && clearTimeout(a.current);
|
|
1833
|
+
};
|
|
1834
|
+
}, [t.duration, l]), $(() => () => {
|
|
1835
|
+
s.current && (clearTimeout(s.current), s.current = null, c.current(i.current));
|
|
1836
|
+
}, []);
|
|
1837
|
+
const m = Qa[t.variant], f = [
|
|
1838
|
+
V.toast,
|
|
1839
|
+
Ha[t.variant],
|
|
1840
|
+
n ? V.toastExiting : ""
|
|
1841
|
+
].filter(Boolean).join(" "), g = [V.icon, Za[t.variant]].filter(Boolean).join(" ");
|
|
1842
|
+
return /* @__PURE__ */ u("div", { className: f, role: "alert", children: [
|
|
1843
|
+
/* @__PURE__ */ o("span", { className: g, "aria-hidden": "true", children: /* @__PURE__ */ o(m, {}) }),
|
|
1844
|
+
/* @__PURE__ */ o("span", { className: V.message, children: t.message }),
|
|
1845
|
+
/* @__PURE__ */ o(
|
|
1846
|
+
"button",
|
|
1847
|
+
{
|
|
1848
|
+
type: "button",
|
|
1849
|
+
className: V.closeButton,
|
|
1850
|
+
onClick: l,
|
|
1851
|
+
"aria-label": "Close notification",
|
|
1852
|
+
children: /* @__PURE__ */ o(Xa, {})
|
|
1853
|
+
}
|
|
1854
|
+
)
|
|
1855
|
+
] });
|
|
1856
|
+
}, fe = Le(null), hi = ({ children: t }) => {
|
|
1857
|
+
const [e, n] = M([]), r = tt(
|
|
1858
|
+
(s, c = "success", i) => {
|
|
1859
|
+
const l = `toast-${++Ya}`;
|
|
1860
|
+
n((m) => [...m, { id: l, message: s, variant: c, duration: i }]);
|
|
1861
|
+
},
|
|
1862
|
+
[]
|
|
1863
|
+
), a = tt((s) => {
|
|
1864
|
+
n((c) => c.filter((i) => i.id !== s));
|
|
1865
|
+
}, []);
|
|
1866
|
+
return /* @__PURE__ */ u(fe.Provider, { value: { showToast: r }, children: [
|
|
1867
|
+
t,
|
|
1868
|
+
ae(
|
|
1869
|
+
/* @__PURE__ */ o("div", { className: V.overlay, children: e.map((s) => /* @__PURE__ */ o(Ja, { entry: s, onClose: a }, s.id)) }),
|
|
1870
|
+
document.body
|
|
1871
|
+
)
|
|
1872
|
+
] });
|
|
1873
|
+
}, pi = () => {
|
|
1874
|
+
const t = Ae(fe);
|
|
1875
|
+
if (!t)
|
|
1876
|
+
throw new Error("useToast must be used within a <ToastProvider>");
|
|
1877
|
+
return t;
|
|
1878
|
+
}, ts = "_overlay_r7enq_1", es = "_dialog_r7enq_13", ns = "_header_r7enq_26", os = "_titleBlock_r7enq_36", rs = "_title_r7enq_36", as = "_subtitle_r7enq_47", ss = "_closeBtn_r7enq_54", cs = "_body_r7enq_87", is = "_footer_r7enq_97", rt = {
|
|
1879
|
+
overlay: ts,
|
|
1880
|
+
dialog: es,
|
|
1881
|
+
header: ns,
|
|
1882
|
+
titleBlock: os,
|
|
1883
|
+
title: rs,
|
|
1884
|
+
subtitle: as,
|
|
1885
|
+
closeBtn: ss,
|
|
1886
|
+
body: cs,
|
|
1887
|
+
footer: is
|
|
1888
|
+
}, ls = ({
|
|
1889
|
+
open: t,
|
|
1890
|
+
onClose: e,
|
|
1891
|
+
title: n,
|
|
1892
|
+
subtitle: r,
|
|
1893
|
+
children: a,
|
|
1894
|
+
footer: s,
|
|
1895
|
+
maxWidth: c = "520px",
|
|
1896
|
+
disableClose: i = !1,
|
|
1897
|
+
className: l = "",
|
|
1898
|
+
titleId: m = "modal-title",
|
|
1899
|
+
"data-testid": f
|
|
1900
|
+
}) => ($(() => {
|
|
1901
|
+
if (!t) return;
|
|
1902
|
+
const g = (p) => {
|
|
1903
|
+
!i && p.key === "Escape" && e();
|
|
1904
|
+
};
|
|
1905
|
+
return window.addEventListener("keydown", g), () => window.removeEventListener("keydown", g);
|
|
1906
|
+
}, [t, e, i]), t ? /* @__PURE__ */ o(
|
|
1907
|
+
"div",
|
|
1908
|
+
{
|
|
1909
|
+
className: [rt.overlay, l].filter(Boolean).join(" "),
|
|
1910
|
+
role: "presentation",
|
|
1911
|
+
onMouseDown: (g) => {
|
|
1912
|
+
!i && g.target === g.currentTarget && e();
|
|
1913
|
+
},
|
|
1914
|
+
"data-testid": f,
|
|
1915
|
+
children: /* @__PURE__ */ u(
|
|
1916
|
+
"div",
|
|
1917
|
+
{
|
|
1918
|
+
className: rt.dialog,
|
|
1919
|
+
role: "dialog",
|
|
1920
|
+
"aria-modal": "true",
|
|
1921
|
+
"aria-labelledby": m,
|
|
1922
|
+
style: { "--modal-max-width": c },
|
|
1923
|
+
children: [
|
|
1924
|
+
/* @__PURE__ */ u("div", { className: rt.header, children: [
|
|
1925
|
+
/* @__PURE__ */ u("div", { className: rt.titleBlock, children: [
|
|
1926
|
+
/* @__PURE__ */ o("h2", { id: m, className: rt.title, children: n }),
|
|
1927
|
+
r && /* @__PURE__ */ o("p", { className: rt.subtitle, children: r })
|
|
1928
|
+
] }),
|
|
1929
|
+
/* @__PURE__ */ o(
|
|
1930
|
+
"button",
|
|
1931
|
+
{
|
|
1932
|
+
type: "button",
|
|
1933
|
+
className: rt.closeBtn,
|
|
1934
|
+
"aria-label": "Close",
|
|
1935
|
+
disabled: i,
|
|
1936
|
+
onClick: e,
|
|
1937
|
+
children: /* @__PURE__ */ o(le, { size: 18 })
|
|
1938
|
+
}
|
|
1939
|
+
)
|
|
1940
|
+
] }),
|
|
1941
|
+
/* @__PURE__ */ o("div", { className: rt.body, children: a }),
|
|
1942
|
+
s && /* @__PURE__ */ o("div", { className: rt.footer, children: s })
|
|
1943
|
+
]
|
|
1944
|
+
}
|
|
1945
|
+
)
|
|
1946
|
+
}
|
|
1947
|
+
) : null), ds = "_message_q6xsi_1", us = "_footer_q6xsi_8", _s = "_dangerButton_q6xsi_16", Mt = {
|
|
1948
|
+
message: ds,
|
|
1949
|
+
footer: us,
|
|
1950
|
+
dangerButton: _s
|
|
1951
|
+
}, mi = ({
|
|
1952
|
+
open: t,
|
|
1953
|
+
onClose: e,
|
|
1954
|
+
onConfirm: n,
|
|
1955
|
+
title: r,
|
|
1956
|
+
message: a,
|
|
1957
|
+
confirmLabel: s = "Confirm",
|
|
1958
|
+
cancelLabel: c = "Cancel",
|
|
1959
|
+
loading: i = !1,
|
|
1960
|
+
variant: l = "default",
|
|
1961
|
+
"data-testid": m
|
|
1962
|
+
}) => /* @__PURE__ */ o(
|
|
1963
|
+
ls,
|
|
1964
|
+
{
|
|
1965
|
+
open: t,
|
|
1966
|
+
onClose: e,
|
|
1967
|
+
disableClose: i,
|
|
1968
|
+
title: r,
|
|
1969
|
+
maxWidth: "420px",
|
|
1970
|
+
"data-testid": m,
|
|
1971
|
+
footer: /* @__PURE__ */ u("div", { className: Mt.footer, children: [
|
|
1972
|
+
/* @__PURE__ */ o(
|
|
1973
|
+
ie,
|
|
1974
|
+
{
|
|
1975
|
+
label: c,
|
|
1976
|
+
onClick: e,
|
|
1977
|
+
disabled: i
|
|
1978
|
+
}
|
|
1979
|
+
),
|
|
1980
|
+
/* @__PURE__ */ o(
|
|
1981
|
+
Ze,
|
|
1982
|
+
{
|
|
1983
|
+
label: s,
|
|
1984
|
+
loading: i,
|
|
1985
|
+
onClick: n,
|
|
1986
|
+
className: l === "danger" ? Mt.dangerButton : void 0
|
|
1987
|
+
}
|
|
1988
|
+
)
|
|
1989
|
+
] }),
|
|
1990
|
+
children: /* @__PURE__ */ o("p", { className: Mt.message, children: a })
|
|
1991
|
+
}
|
|
1992
|
+
), hs = "_root_1ljnu_1", ps = "_header_1ljnu_7", ms = "_title_1ljnu_14", fs = "_addBtn_1ljnu_22", ys = "_tableWrap_1ljnu_56", gs = "_tableWrapEmbedded_1ljnu_64", bs = "_table_1ljnu_56", vs = "_thLeft_1ljnu_102", Ns = "_thCenter_1ljnu_106", ks = "_thRight_1ljnu_110", Bs = "_tdCenter_1ljnu_114", Cs = "_tdRight_1ljnu_118", js = "_tdName_1ljnu_123", xs = "_tdHighlight_1ljnu_127", ws = "_productCell_1ljnu_133", Ls = "_productThumb_1ljnu_139", As = "_productThumbEmpty_1ljnu_149", Is = "_productInfo_1ljnu_158", Ds = "_productName_1ljnu_164", Ts = "_productCode_1ljnu_171", qs = "_rowBusy_1ljnu_177", Es = "_rowInvalid_1ljnu_182", Rs = "_actionsCell_1ljnu_189", Ss = "_addRowBtn_1ljnu_197", Os = "_empty_1ljnu_232", A = {
|
|
1993
|
+
root: hs,
|
|
1994
|
+
header: ps,
|
|
1995
|
+
title: ms,
|
|
1996
|
+
addBtn: fs,
|
|
1997
|
+
tableWrap: ys,
|
|
1998
|
+
tableWrapEmbedded: gs,
|
|
1999
|
+
table: bs,
|
|
2000
|
+
thLeft: vs,
|
|
2001
|
+
thCenter: Ns,
|
|
2002
|
+
thRight: ks,
|
|
2003
|
+
tdCenter: Bs,
|
|
2004
|
+
tdRight: Cs,
|
|
2005
|
+
tdName: js,
|
|
2006
|
+
tdHighlight: xs,
|
|
2007
|
+
productCell: ws,
|
|
2008
|
+
productThumb: Ls,
|
|
2009
|
+
productThumbEmpty: As,
|
|
2010
|
+
productInfo: Is,
|
|
2011
|
+
productName: Ds,
|
|
2012
|
+
productCode: Ts,
|
|
2013
|
+
rowBusy: qs,
|
|
2014
|
+
rowInvalid: Es,
|
|
2015
|
+
actionsCell: Rs,
|
|
2016
|
+
addRowBtn: Ss,
|
|
2017
|
+
empty: Os
|
|
2018
|
+
}, Zt = J.forwardRef(({ className: t = "", "aria-label": e, ...n }, r) => /* @__PURE__ */ o(
|
|
2019
|
+
"button",
|
|
2020
|
+
{
|
|
2021
|
+
ref: r,
|
|
2022
|
+
type: "button",
|
|
2023
|
+
className: [A.addRowBtn, t].filter(Boolean).join(" "),
|
|
2024
|
+
"aria-label": e,
|
|
2025
|
+
...n,
|
|
2026
|
+
children: /* @__PURE__ */ o(de, { "aria-hidden": !0 })
|
|
2027
|
+
}
|
|
2028
|
+
));
|
|
2029
|
+
Zt.displayName = "ProductTableIconAddButton";
|
|
2030
|
+
const oe = (t, e) => t === "center" ? e ? A.thCenter : A.tdCenter : t === "right" ? e ? A.thRight : A.tdRight : e ? A.thLeft : "", fi = ({
|
|
2031
|
+
items: t,
|
|
2032
|
+
columns: e,
|
|
2033
|
+
onDelete: n,
|
|
2034
|
+
onRowAdd: r,
|
|
2035
|
+
rowAddLabel: a = "Add",
|
|
2036
|
+
disableRowActions: s = !1,
|
|
2037
|
+
isRowAddDisabled: c,
|
|
2038
|
+
onAdd: i,
|
|
2039
|
+
addLabel: l = "Add Item",
|
|
2040
|
+
addInActionsColumnHeader: m = !1,
|
|
2041
|
+
title: f,
|
|
2042
|
+
emptyMessage: g = "No items.",
|
|
2043
|
+
busyItemIds: p = [],
|
|
2044
|
+
invalidItemIds: j = [],
|
|
2045
|
+
nameColumnHeader: k = "Name",
|
|
2046
|
+
actionsColumnHeader: h = "Actions",
|
|
2047
|
+
renderProductMeta: y,
|
|
2048
|
+
embedded: B = !1,
|
|
2049
|
+
className: x = "",
|
|
2050
|
+
"data-testid": C
|
|
2051
|
+
}) => {
|
|
2052
|
+
const T = new Set(p), E = new Set(j), K = !!(n || r), et = !!i && !(m && K), z = [A.root, x].filter(Boolean).join(" ");
|
|
2053
|
+
return /* @__PURE__ */ u("div", { className: z, "data-testid": C, children: [
|
|
2054
|
+
(f || et) && /* @__PURE__ */ u("div", { className: A.header, children: [
|
|
2055
|
+
f && /* @__PURE__ */ o("h2", { className: A.title, children: f }),
|
|
2056
|
+
et && /* @__PURE__ */ u(
|
|
2057
|
+
"button",
|
|
2058
|
+
{
|
|
2059
|
+
type: "button",
|
|
2060
|
+
className: A.addBtn,
|
|
2061
|
+
onClick: i,
|
|
2062
|
+
"data-testid": C ? `${C}-add` : void 0,
|
|
2063
|
+
children: [
|
|
2064
|
+
/* @__PURE__ */ o(de, { size: 14, "aria-hidden": !0 }),
|
|
2065
|
+
/* @__PURE__ */ o("span", { children: l })
|
|
2066
|
+
]
|
|
2067
|
+
}
|
|
2068
|
+
)
|
|
2069
|
+
] }),
|
|
2070
|
+
/* @__PURE__ */ u("div", { className: B ? A.tableWrapEmbedded : A.tableWrap, children: [
|
|
2071
|
+
/* @__PURE__ */ u("table", { className: A.table, children: [
|
|
2072
|
+
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
2073
|
+
/* @__PURE__ */ o("th", { className: A.thLeft, children: k }),
|
|
2074
|
+
e.map((w) => /* @__PURE__ */ o("th", { className: oe(w.align, !0), children: w.header }, w.key)),
|
|
2075
|
+
K && /* @__PURE__ */ o("th", { className: A.thCenter, children: i && m ? /* @__PURE__ */ o("div", { className: A.actionsCell, children: /* @__PURE__ */ o(
|
|
2076
|
+
Zt,
|
|
2077
|
+
{
|
|
2078
|
+
"aria-label": l,
|
|
2079
|
+
onClick: i,
|
|
2080
|
+
"data-testid": C ? `${C}-header-add` : void 0
|
|
2081
|
+
}
|
|
2082
|
+
) }) : h })
|
|
2083
|
+
] }) }),
|
|
2084
|
+
/* @__PURE__ */ o("tbody", { children: t.map((w, b) => {
|
|
2085
|
+
const L = T.has(w.id), _ = E.has(w.id), N = [
|
|
2086
|
+
L ? A.rowBusy : "",
|
|
2087
|
+
_ ? A.rowInvalid : ""
|
|
2088
|
+
].filter(Boolean).join(" ");
|
|
2089
|
+
return /* @__PURE__ */ u("tr", { className: N, children: [
|
|
2090
|
+
/* @__PURE__ */ o("td", { className: A.tdName, children: /* @__PURE__ */ u("div", { className: A.productCell, children: [
|
|
2091
|
+
w.imageUrl ? /* @__PURE__ */ o(
|
|
2092
|
+
"img",
|
|
2093
|
+
{
|
|
2094
|
+
src: w.imageUrl,
|
|
2095
|
+
alt: "",
|
|
2096
|
+
className: A.productThumb
|
|
2097
|
+
}
|
|
2098
|
+
) : /* @__PURE__ */ o("div", { className: A.productThumbEmpty }),
|
|
2099
|
+
/* @__PURE__ */ u("div", { className: A.productInfo, children: [
|
|
2100
|
+
/* @__PURE__ */ o("span", { className: A.productName, children: w.name }),
|
|
2101
|
+
w.code && /* @__PURE__ */ o("span", { className: A.productCode, children: w.code }),
|
|
2102
|
+
y == null ? void 0 : y(w, b)
|
|
2103
|
+
] })
|
|
2104
|
+
] }) }),
|
|
2105
|
+
e.map((R) => {
|
|
2106
|
+
const G = [
|
|
2107
|
+
oe(R.align, !1),
|
|
2108
|
+
R.highlight ? A.tdHighlight : ""
|
|
2109
|
+
].filter(Boolean).join(" ");
|
|
2110
|
+
return /* @__PURE__ */ o("td", { className: G, children: R.render(w, b) }, R.key);
|
|
2111
|
+
}),
|
|
2112
|
+
K && /* @__PURE__ */ o("td", { className: A.tdCenter, children: /* @__PURE__ */ u("div", { className: A.actionsCell, children: [
|
|
2113
|
+
n && /* @__PURE__ */ o(
|
|
2114
|
+
Ht.IconButton,
|
|
2115
|
+
{
|
|
2116
|
+
type: "button",
|
|
2117
|
+
variant: "danger",
|
|
2118
|
+
"aria-label": `Delete ${w.name}`,
|
|
2119
|
+
onClick: () => n(w),
|
|
2120
|
+
disabled: L || s,
|
|
2121
|
+
"data-testid": C ? `${C}-delete-${w.id}` : void 0,
|
|
2122
|
+
children: /* @__PURE__ */ o(An, { "aria-hidden": !0 })
|
|
2123
|
+
}
|
|
2124
|
+
),
|
|
2125
|
+
r && /* @__PURE__ */ o(
|
|
2126
|
+
Zt,
|
|
2127
|
+
{
|
|
2128
|
+
"aria-label": typeof a == "function" ? a(w, b) : a,
|
|
2129
|
+
onClick: () => r(w),
|
|
2130
|
+
disabled: L || s || !!(c != null && c(w)),
|
|
2131
|
+
"data-testid": C ? `${C}-add-${w.id}` : void 0
|
|
2132
|
+
}
|
|
2133
|
+
)
|
|
2134
|
+
] }) })
|
|
2135
|
+
] }, w.id);
|
|
2136
|
+
}) })
|
|
2137
|
+
] }),
|
|
2138
|
+
t.length === 0 && /* @__PURE__ */ o("div", { className: A.empty, children: g })
|
|
2139
|
+
] })
|
|
2140
|
+
] });
|
|
2141
|
+
}, $s = "_tag_15jzc_1", Ps = "_created_15jzc_18", zs = "_confirmed_15jzc_24", Ws = "_completed_15jzc_30", Ms = "_declined_15jzc_36", Hs = "_shipped_15jzc_42", _t = {
|
|
2142
|
+
tag: $s,
|
|
2143
|
+
created: Ps,
|
|
2144
|
+
confirmed: zs,
|
|
2145
|
+
completed: Ws,
|
|
2146
|
+
declined: Ms,
|
|
2147
|
+
shipped: Hs
|
|
2148
|
+
}, ut = {
|
|
2149
|
+
IN_CHECKOUT: _t.created,
|
|
2150
|
+
CREATED: _t.created,
|
|
2151
|
+
CONFIRMED: _t.confirmed,
|
|
2152
|
+
DECLINED: _t.declined,
|
|
2153
|
+
SHIPPED: _t.shipped,
|
|
2154
|
+
COMPLETED: _t.completed
|
|
2155
|
+
}, Zs = (t) => {
|
|
2156
|
+
const e = t.toUpperCase().trim();
|
|
2157
|
+
return e in ut ? ut[e] : e.includes("CONFIRM") ? ut.CONFIRMED : e.includes("DECLINE") || e.includes("CANCEL") || e.includes("FAIL") ? ut.DECLINED : e.includes("COMPLETE") || e.includes("DELIVER") ? ut.COMPLETED : e.includes("SHIP") ? ut.SHIPPED : ut.CREATED;
|
|
2158
|
+
}, Vs = ({
|
|
2159
|
+
status: t,
|
|
2160
|
+
className: e = "",
|
|
2161
|
+
"data-testid": n
|
|
2162
|
+
}) => {
|
|
2163
|
+
const r = t.toUpperCase().trim(), a = Zs(r), s = [_t.tag, a, e].filter(Boolean).join(" ");
|
|
2164
|
+
return /* @__PURE__ */ o("span", { className: s, "data-testid": n, children: r });
|
|
2165
|
+
}, Fs = "_root_uqjwd_1", Us = "_header_uqjwd_7", Ks = "_title_uqjwd_14", Qs = "_tableWrap_uqjwd_22", Xs = "_tableWrapEmbedded_uqjwd_29", Ys = "_table_uqjwd_22", Gs = "_thLeft_uqjwd_66", Js = "_thRight_uqjwd_70", tc = "_tdRight_uqjwd_74", ec = "_orderLink_uqjwd_79", nc = "_cellMuted_uqjwd_100", oc = "_empty_uqjwd_104", O = {
|
|
2166
|
+
root: Fs,
|
|
2167
|
+
header: Us,
|
|
2168
|
+
title: Ks,
|
|
2169
|
+
tableWrap: Qs,
|
|
2170
|
+
tableWrapEmbedded: Xs,
|
|
2171
|
+
table: Ys,
|
|
2172
|
+
thLeft: Gs,
|
|
2173
|
+
thRight: Js,
|
|
2174
|
+
tdRight: tc,
|
|
2175
|
+
orderLink: ec,
|
|
2176
|
+
cellMuted: nc,
|
|
2177
|
+
empty: oc
|
|
2178
|
+
}, rc = /^(\d{4})-(\d{2})-(\d{2})$/;
|
|
2179
|
+
function ac(t) {
|
|
2180
|
+
const e = t.trim(), n = rc.exec(e);
|
|
2181
|
+
if (n) {
|
|
2182
|
+
const r = Number(n[1]), a = Number(n[2]) - 1, s = Number(n[3]), c = new Date(r, a, s);
|
|
2183
|
+
if (c.getFullYear() === r && c.getMonth() === a && c.getDate() === s)
|
|
2184
|
+
return c;
|
|
2185
|
+
}
|
|
2186
|
+
return new Date(t);
|
|
2187
|
+
}
|
|
2188
|
+
const re = (t) => {
|
|
2189
|
+
if (t == null || t === "")
|
|
2190
|
+
return "—";
|
|
2191
|
+
const e = typeof t == "string" ? ac(t) : t;
|
|
2192
|
+
return Number.isNaN(e.getTime()) ? "—" : new Intl.DateTimeFormat("de-DE", {
|
|
2193
|
+
day: "2-digit",
|
|
2194
|
+
month: "2-digit",
|
|
2195
|
+
year: "numeric"
|
|
2196
|
+
}).format(e);
|
|
2197
|
+
}, sc = (t, e) => new Intl.NumberFormat("de-DE", {
|
|
2198
|
+
style: "currency",
|
|
2199
|
+
currency: e
|
|
2200
|
+
}).format(t), cc = ({
|
|
2201
|
+
row: t,
|
|
2202
|
+
getOrderHref: e,
|
|
2203
|
+
onOrderNavigate: n,
|
|
2204
|
+
testId: r
|
|
2205
|
+
}) => {
|
|
2206
|
+
const a = `#${t.id}`;
|
|
2207
|
+
return e ? /* @__PURE__ */ o(
|
|
2208
|
+
"a",
|
|
2209
|
+
{
|
|
2210
|
+
href: e(t),
|
|
2211
|
+
className: O.orderLink,
|
|
2212
|
+
"data-testid": r ? `${r}-order-link-${t.id}` : void 0,
|
|
2213
|
+
children: a
|
|
2214
|
+
}
|
|
2215
|
+
) : n ? /* @__PURE__ */ o(
|
|
2216
|
+
"button",
|
|
2217
|
+
{
|
|
2218
|
+
type: "button",
|
|
2219
|
+
className: O.orderLink,
|
|
2220
|
+
onClick: () => n(t),
|
|
2221
|
+
"data-testid": r ? `${r}-order-nav-${t.id}` : void 0,
|
|
2222
|
+
children: a
|
|
2223
|
+
}
|
|
2224
|
+
) : /* @__PURE__ */ o("span", { className: O.cellMuted, children: a });
|
|
2225
|
+
}, yi = ({
|
|
2226
|
+
items: t,
|
|
2227
|
+
title: e,
|
|
2228
|
+
getOrderHref: n,
|
|
2229
|
+
onOrderNavigate: r,
|
|
2230
|
+
emptyMessage: a = "No orders.",
|
|
2231
|
+
embedded: s = !1,
|
|
2232
|
+
className: c = "",
|
|
2233
|
+
"data-testid": i
|
|
2234
|
+
}) => {
|
|
2235
|
+
const l = [O.root, c].filter(Boolean).join(" ");
|
|
2236
|
+
return /* @__PURE__ */ u("div", { className: l, "data-testid": i, children: [
|
|
2237
|
+
e && /* @__PURE__ */ o("div", { className: O.header, children: /* @__PURE__ */ o("h2", { className: O.title, children: e }) }),
|
|
2238
|
+
/* @__PURE__ */ u("div", { className: s ? O.tableWrapEmbedded : O.tableWrap, children: [
|
|
2239
|
+
/* @__PURE__ */ u("table", { className: O.table, children: [
|
|
2240
|
+
/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
2241
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Order #" }),
|
|
2242
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Status" }),
|
|
2243
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Customer" }),
|
|
2244
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Order Date" }),
|
|
2245
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Delivery Date" }),
|
|
2246
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Delivery Address" }),
|
|
2247
|
+
/* @__PURE__ */ o("th", { className: O.thLeft, children: "Payment" }),
|
|
2248
|
+
/* @__PURE__ */ o("th", { className: O.thRight, children: "Order Value" })
|
|
2249
|
+
] }) }),
|
|
2250
|
+
/* @__PURE__ */ o("tbody", { children: t.map((m) => /* @__PURE__ */ u("tr", { children: [
|
|
2251
|
+
/* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
|
|
2252
|
+
cc,
|
|
2253
|
+
{
|
|
2254
|
+
row: m,
|
|
2255
|
+
getOrderHref: n,
|
|
2256
|
+
onOrderNavigate: r,
|
|
2257
|
+
testId: i
|
|
2258
|
+
}
|
|
2259
|
+
) }),
|
|
2260
|
+
/* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(Vs, { status: m.status }) }),
|
|
2261
|
+
/* @__PURE__ */ o("td", { children: m.customerName }),
|
|
2262
|
+
/* @__PURE__ */ o("td", { children: re(m.orderDate) }),
|
|
2263
|
+
/* @__PURE__ */ o("td", { className: O.cellMuted, children: re(m.deliveryDate ?? null) }),
|
|
2264
|
+
/* @__PURE__ */ o("td", { children: m.deliveryAddress }),
|
|
2265
|
+
/* @__PURE__ */ o("td", { children: m.payment }),
|
|
2266
|
+
/* @__PURE__ */ o("td", { className: O.tdRight, children: sc(
|
|
2267
|
+
m.orderValue.amount,
|
|
2268
|
+
m.orderValue.currency
|
|
2269
|
+
) })
|
|
2270
|
+
] }, m.id)) })
|
|
2271
|
+
] }),
|
|
2272
|
+
t.length === 0 && /* @__PURE__ */ o("div", { className: O.empty, children: a })
|
|
2273
|
+
] })
|
|
2274
|
+
] });
|
|
2275
|
+
}, ic = "_wizard_ymuhn_2", lc = "_stepper_ymuhn_9", dc = "_stepItem_ymuhn_17", uc = "_indicator_ymuhn_25", _c = "_indicatorCurrent_ymuhn_41", hc = "_indicatorCompleted_ymuhn_47", pc = "_checkIcon_ymuhn_53", mc = "_connector_ymuhn_58", fc = "_connectorCompleted_ymuhn_69", yc = "_stepLabel_ymuhn_73", gc = "_stepLabelCurrent_ymuhn_81", bc = "_stepLabelCompleted_ymuhn_86", vc = "_body_ymuhn_91", Nc = "_actions_ymuhn_96", kc = "_btn_ymuhn_104", Bc = "_btnSecondary_ymuhn_123", Cc = "_btnPrimary_ymuhn_133", W = {
|
|
2276
|
+
wizard: ic,
|
|
2277
|
+
stepper: lc,
|
|
2278
|
+
stepItem: dc,
|
|
2279
|
+
indicator: uc,
|
|
2280
|
+
indicatorCurrent: _c,
|
|
2281
|
+
indicatorCompleted: hc,
|
|
2282
|
+
checkIcon: pc,
|
|
2283
|
+
connector: mc,
|
|
2284
|
+
connectorCompleted: fc,
|
|
2285
|
+
stepLabel: yc,
|
|
2286
|
+
stepLabelCurrent: gc,
|
|
2287
|
+
stepLabelCompleted: bc,
|
|
2288
|
+
body: vc,
|
|
2289
|
+
actions: Nc,
|
|
2290
|
+
btn: kc,
|
|
2291
|
+
btnSecondary: Bc,
|
|
2292
|
+
btnPrimary: Cc
|
|
2293
|
+
}, gi = ({
|
|
2294
|
+
steps: t,
|
|
2295
|
+
activeStep: e,
|
|
2296
|
+
onStepChange: n,
|
|
2297
|
+
onSubmit: r,
|
|
2298
|
+
backLabel: a = "Back",
|
|
2299
|
+
nextLabel: s = "Next",
|
|
2300
|
+
submitLabel: c = "Submit",
|
|
2301
|
+
submitting: i = !1,
|
|
2302
|
+
className: l = "",
|
|
2303
|
+
"data-testid": m
|
|
2304
|
+
}) => {
|
|
2305
|
+
const f = e === 0, g = e === t.length - 1, p = t[e], j = (p == null ? void 0 : p.canProceed) !== !1, k = tt(() => {
|
|
2306
|
+
f || n(e - 1);
|
|
2307
|
+
}, [f, e, n]), h = tt(() => {
|
|
2308
|
+
g ? r == null || r() : n(e + 1);
|
|
2309
|
+
}, [g, e, n, r]), y = Lt(
|
|
2310
|
+
() => [W.wizard, l].filter(Boolean).join(" "),
|
|
2311
|
+
[l]
|
|
2312
|
+
);
|
|
2313
|
+
return /* @__PURE__ */ u("div", { className: y, "data-testid": m, children: [
|
|
2314
|
+
/* @__PURE__ */ o("nav", { className: W.stepper, "aria-label": "Wizard steps", children: t.map((B, x) => {
|
|
2315
|
+
const C = x < e, T = x === e, E = [
|
|
2316
|
+
W.indicator,
|
|
2317
|
+
C ? W.indicatorCompleted : "",
|
|
2318
|
+
T ? W.indicatorCurrent : ""
|
|
2319
|
+
].filter(Boolean).join(" ");
|
|
2320
|
+
return /* @__PURE__ */ u(J.Fragment, { children: [
|
|
2321
|
+
x > 0 && /* @__PURE__ */ o(
|
|
2322
|
+
"div",
|
|
2323
|
+
{
|
|
2324
|
+
className: [
|
|
2325
|
+
W.connector,
|
|
2326
|
+
C ? W.connectorCompleted : ""
|
|
2327
|
+
].filter(Boolean).join(" ")
|
|
2328
|
+
}
|
|
2329
|
+
),
|
|
2330
|
+
/* @__PURE__ */ u("div", { className: W.stepItem, children: [
|
|
2331
|
+
/* @__PURE__ */ o(
|
|
2332
|
+
"div",
|
|
2333
|
+
{
|
|
2334
|
+
className: E,
|
|
2335
|
+
"aria-current": T ? "step" : void 0,
|
|
2336
|
+
children: C ? /* @__PURE__ */ o(En, { className: W.checkIcon, "aria-hidden": !0 }) : /* @__PURE__ */ o("span", { children: x + 1 })
|
|
2337
|
+
}
|
|
2338
|
+
),
|
|
2339
|
+
/* @__PURE__ */ o(
|
|
2340
|
+
"span",
|
|
2341
|
+
{
|
|
2342
|
+
className: [
|
|
2343
|
+
W.stepLabel,
|
|
2344
|
+
T ? W.stepLabelCurrent : "",
|
|
2345
|
+
C ? W.stepLabelCompleted : ""
|
|
2346
|
+
].filter(Boolean).join(" "),
|
|
2347
|
+
children: B.label
|
|
2348
|
+
}
|
|
2349
|
+
)
|
|
2350
|
+
] })
|
|
2351
|
+
] }, B.id);
|
|
2352
|
+
}) }),
|
|
2353
|
+
/* @__PURE__ */ o("div", { className: W.body, children: p == null ? void 0 : p.content }),
|
|
2354
|
+
/* @__PURE__ */ u("div", { className: W.actions, children: [
|
|
2355
|
+
/* @__PURE__ */ o(
|
|
2356
|
+
"button",
|
|
2357
|
+
{
|
|
2358
|
+
type: "button",
|
|
2359
|
+
className: [W.btn, W.btnSecondary].join(" "),
|
|
2360
|
+
onClick: k,
|
|
2361
|
+
disabled: f,
|
|
2362
|
+
"data-testid": m ? `${m}-back` : void 0,
|
|
2363
|
+
children: a
|
|
2364
|
+
}
|
|
2365
|
+
),
|
|
2366
|
+
/* @__PURE__ */ o(
|
|
2367
|
+
"button",
|
|
2368
|
+
{
|
|
2369
|
+
type: "button",
|
|
2370
|
+
className: [W.btn, W.btnPrimary].join(" "),
|
|
2371
|
+
onClick: h,
|
|
2372
|
+
disabled: !j || i,
|
|
2373
|
+
"data-testid": m ? `${m}-next` : void 0,
|
|
2374
|
+
children: g ? i ? `${c}…` : c : s
|
|
2375
|
+
}
|
|
2376
|
+
)
|
|
2377
|
+
] })
|
|
2378
|
+
] });
|
|
2379
|
+
}, jc = "_timeline_qccju_2", xc = "_line_qccju_11", wc = "_lineAnimated_qccju_21", Lc = "_drawLine_qccju_1", Ac = "_pulse_qccju_1", Ic = "_event_qccju_63", Dc = "_eventAnimated_qccju_71", Tc = "_eventVisible_qccju_77", qc = "_dot_qccju_83", Ec = "_dotInner_qccju_105", Rc = "_dot_info_qccju_113", Sc = "_dot_info_qccju_113", Oc = "_dot_success_qccju_119", $c = "_dot_success_qccju_119", Pc = "_dot_warning_qccju_125", zc = "_dot_warning_qccju_125", Wc = "_dot_error_qccju_131", Mc = "_dot_error_qccju_131", Hc = "_dot_default_qccju_137", Zc = "_dot_default_qccju_137", Vc = "_content_qccju_144", Fc = "_title_qccju_159", Uc = "_description_qccju_168", Kc = "_time_qccju_2", U = {
|
|
2380
|
+
timeline: jc,
|
|
2381
|
+
line: xc,
|
|
2382
|
+
lineAnimated: wc,
|
|
2383
|
+
drawLine: Lc,
|
|
2384
|
+
pulse: Ac,
|
|
2385
|
+
event: Ic,
|
|
2386
|
+
eventAnimated: Dc,
|
|
2387
|
+
eventVisible: Tc,
|
|
2388
|
+
dot: qc,
|
|
2389
|
+
dotInner: Ec,
|
|
2390
|
+
dot_info: Rc,
|
|
2391
|
+
dotInfo: Sc,
|
|
2392
|
+
dot_success: Oc,
|
|
2393
|
+
dotSuccess: $c,
|
|
2394
|
+
dot_warning: Pc,
|
|
2395
|
+
dotWarning: zc,
|
|
2396
|
+
dot_error: Wc,
|
|
2397
|
+
dotError: Mc,
|
|
2398
|
+
dot_default: Hc,
|
|
2399
|
+
dotDefault: Zc,
|
|
2400
|
+
content: Vc,
|
|
2401
|
+
title: Fc,
|
|
2402
|
+
description: Uc,
|
|
2403
|
+
time: Kc
|
|
2404
|
+
}, bi = ({
|
|
2405
|
+
events: t,
|
|
2406
|
+
animated: e = !0,
|
|
2407
|
+
animateLine: n = !0,
|
|
2408
|
+
className: r = "",
|
|
2409
|
+
"data-testid": a
|
|
2410
|
+
}) => {
|
|
2411
|
+
const s = q(null), c = q([]), [i, l] = M(0), [m, f] = M(!e), g = tt(
|
|
2412
|
+
(p) => (j) => {
|
|
2413
|
+
c.current[p] = j;
|
|
2414
|
+
},
|
|
2415
|
+
[]
|
|
2416
|
+
);
|
|
2417
|
+
return $(() => {
|
|
2418
|
+
if (!e) return;
|
|
2419
|
+
const p = requestAnimationFrame(() => f(!0));
|
|
2420
|
+
return () => cancelAnimationFrame(p);
|
|
2421
|
+
}, [e]), $(() => {
|
|
2422
|
+
const p = s.current;
|
|
2423
|
+
if (!p || t.length < 2) {
|
|
2424
|
+
l(0);
|
|
2425
|
+
return;
|
|
2426
|
+
}
|
|
2427
|
+
const j = c.current[0], k = c.current[t.length - 1];
|
|
2428
|
+
if (!j || !k) return;
|
|
2429
|
+
const h = p.getBoundingClientRect().top, y = j.getBoundingClientRect().top - h + j.offsetHeight / 2, B = k.getBoundingClientRect().top - h + k.offsetHeight / 2;
|
|
2430
|
+
l(B - y);
|
|
2431
|
+
}, [t]), t.length === 0 ? null : /* @__PURE__ */ u(
|
|
2432
|
+
"div",
|
|
2433
|
+
{
|
|
2434
|
+
ref: s,
|
|
2435
|
+
className: [U.timeline, r].filter(Boolean).join(" "),
|
|
2436
|
+
"data-testid": a,
|
|
2437
|
+
children: [
|
|
2438
|
+
/* @__PURE__ */ o(
|
|
2439
|
+
"div",
|
|
2440
|
+
{
|
|
2441
|
+
className: [
|
|
2442
|
+
U.line,
|
|
2443
|
+
n && m ? U.lineAnimated : ""
|
|
2444
|
+
].filter(Boolean).join(" "),
|
|
2445
|
+
style: { height: i, top: 20 }
|
|
2446
|
+
}
|
|
2447
|
+
),
|
|
2448
|
+
t.map((p, j) => {
|
|
2449
|
+
const k = p.variant ? U[`dot_${p.variant}`] : "";
|
|
2450
|
+
return /* @__PURE__ */ u(
|
|
2451
|
+
"div",
|
|
2452
|
+
{
|
|
2453
|
+
className: [
|
|
2454
|
+
U.event,
|
|
2455
|
+
e ? U.eventAnimated : "",
|
|
2456
|
+
m ? U.eventVisible : ""
|
|
2457
|
+
].filter(Boolean).join(" "),
|
|
2458
|
+
style: e ? { transitionDelay: `${j * 120}ms` } : void 0,
|
|
2459
|
+
children: [
|
|
2460
|
+
/* @__PURE__ */ o(
|
|
2461
|
+
"div",
|
|
2462
|
+
{
|
|
2463
|
+
ref: g(j),
|
|
2464
|
+
className: [U.dot, k].filter(Boolean).join(" "),
|
|
2465
|
+
children: p.icon ?? /* @__PURE__ */ o("span", { className: U.dotInner })
|
|
2466
|
+
}
|
|
2467
|
+
),
|
|
2468
|
+
/* @__PURE__ */ u("div", { className: U.content, children: [
|
|
2469
|
+
/* @__PURE__ */ o("h4", { className: U.title, children: p.title }),
|
|
2470
|
+
p.description && /* @__PURE__ */ o("p", { className: U.description, children: p.description }),
|
|
2471
|
+
p.timestamp && /* @__PURE__ */ o("time", { className: U.time, children: p.timestamp })
|
|
2472
|
+
] })
|
|
2473
|
+
]
|
|
2474
|
+
},
|
|
2475
|
+
p.id
|
|
2476
|
+
);
|
|
2477
|
+
})
|
|
2478
|
+
]
|
|
2479
|
+
}
|
|
2480
|
+
);
|
|
1329
2481
|
};
|
|
1330
2482
|
export {
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
2483
|
+
di as AlertBox,
|
|
2484
|
+
oi as Breadcrumb,
|
|
2485
|
+
Ht as Card,
|
|
2486
|
+
Lo as Chip,
|
|
2487
|
+
mi as ConfirmDialog,
|
|
2488
|
+
Jc as ContrastButton,
|
|
2489
|
+
ri as Dropdown,
|
|
2490
|
+
li as FileUploadDropzone,
|
|
2491
|
+
ii as IconCard,
|
|
2492
|
+
si as InputText,
|
|
2493
|
+
ls as Modal,
|
|
2494
|
+
ai as MultiSelect,
|
|
2495
|
+
Vs as OrderStatusTag,
|
|
2496
|
+
yi as OrderTable,
|
|
2497
|
+
Ze as PrimaryButton,
|
|
2498
|
+
fi as ProductTable,
|
|
2499
|
+
Zt as ProductTableIconAddButton,
|
|
2500
|
+
ei as RichTextEditor,
|
|
2501
|
+
ie as SecondaryButton,
|
|
2502
|
+
ci as SelectButton,
|
|
2503
|
+
ui as SideMenu,
|
|
2504
|
+
ni as Spinner,
|
|
2505
|
+
ti as Tabs,
|
|
2506
|
+
Gc as TertiaryButton,
|
|
2507
|
+
bi as Timeline,
|
|
2508
|
+
Ja as Toast,
|
|
2509
|
+
hi as ToastProvider,
|
|
2510
|
+
_i as TopNav,
|
|
2511
|
+
gi as Wizard,
|
|
2512
|
+
pi as useToast
|
|
1339
2513
|
};
|