dibk-design 9.0.0 → 9.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4413 +0,0 @@
1
- function An(e) {
2
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
- }
4
- var Ke = { exports: {} }, Ae = {};
5
- /**
6
- * @license React
7
- * react-jsx-runtime.production.js
8
- *
9
- * Copyright (c) Meta Platforms, Inc. and affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var Bt;
15
- function On() {
16
- if (Bt) return Ae;
17
- Bt = 1;
18
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
19
- function r(a, s, i) {
20
- var f = null;
21
- if (i !== void 0 && (f = "" + i), s.key !== void 0 && (f = "" + s.key), "key" in s) {
22
- i = {};
23
- for (var h in s)
24
- h !== "key" && (i[h] = s[h]);
25
- } else i = s;
26
- return s = i.ref, {
27
- $$typeof: e,
28
- type: a,
29
- key: f,
30
- ref: s !== void 0 ? s : null,
31
- props: i
32
- };
33
- }
34
- return Ae.Fragment = t, Ae.jsx = r, Ae.jsxs = r, Ae;
35
- }
36
- var Oe = {}, Qe = { exports: {} }, O = {};
37
- /**
38
- * @license React
39
- * react.production.js
40
- *
41
- * Copyright (c) Meta Platforms, Inc. and affiliates.
42
- *
43
- * This source code is licensed under the MIT license found in the
44
- * LICENSE file in the root directory of this source tree.
45
- */
46
- var Ft;
47
- function Pn() {
48
- if (Ft) return O;
49
- Ft = 1;
50
- var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.consumer"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), c = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), w = Symbol.iterator;
51
- function g(o) {
52
- return o === null || typeof o != "object" ? null : (o = w && o[w] || o["@@iterator"], typeof o == "function" ? o : null);
53
- }
54
- var x = {
55
- isMounted: function() {
56
- return !1;
57
- },
58
- enqueueForceUpdate: function() {
59
- },
60
- enqueueReplaceState: function() {
61
- },
62
- enqueueSetState: function() {
63
- }
64
- }, v = Object.assign, b = {};
65
- function N(o, m, k) {
66
- this.props = o, this.context = m, this.refs = b, this.updater = k || x;
67
- }
68
- N.prototype.isReactComponent = {}, N.prototype.setState = function(o, m) {
69
- if (typeof o != "object" && typeof o != "function" && o != null)
70
- throw Error(
71
- "takes an object of state variables to update or a function which returns an object of state variables."
72
- );
73
- this.updater.enqueueSetState(this, o, m, "setState");
74
- }, N.prototype.forceUpdate = function(o) {
75
- this.updater.enqueueForceUpdate(this, o, "forceUpdate");
76
- };
77
- function y() {
78
- }
79
- y.prototype = N.prototype;
80
- function S(o, m, k) {
81
- this.props = o, this.context = m, this.refs = b, this.updater = k || x;
82
- }
83
- var L = S.prototype = new y();
84
- L.constructor = S, v(L, N.prototype), L.isPureReactComponent = !0;
85
- var j = Array.isArray, T = { H: null, A: null, T: null, S: null, V: null }, X = Object.prototype.hasOwnProperty;
86
- function G(o, m, k, R, I, V) {
87
- return k = V.ref, {
88
- $$typeof: e,
89
- type: o,
90
- key: m,
91
- ref: k !== void 0 ? k : null,
92
- props: V
93
- };
94
- }
95
- function z(o, m) {
96
- return G(
97
- o.type,
98
- m,
99
- void 0,
100
- void 0,
101
- void 0,
102
- o.props
103
- );
104
- }
105
- function Y(o) {
106
- return typeof o == "object" && o !== null && o.$$typeof === e;
107
- }
108
- function F(o) {
109
- var m = { "=": "=0", ":": "=2" };
110
- return "$" + o.replace(/[=:]/g, function(k) {
111
- return m[k];
112
- });
113
- }
114
- var D = /\/+/g;
115
- function re(o, m) {
116
- return typeof o == "object" && o !== null && o.key != null ? F("" + o.key) : m.toString(36);
117
- }
118
- function te() {
119
- }
120
- function M(o) {
121
- switch (o.status) {
122
- case "fulfilled":
123
- return o.value;
124
- case "rejected":
125
- throw o.reason;
126
- default:
127
- switch (typeof o.status == "string" ? o.then(te, te) : (o.status = "pending", o.then(
128
- function(m) {
129
- o.status === "pending" && (o.status = "fulfilled", o.value = m);
130
- },
131
- function(m) {
132
- o.status === "pending" && (o.status = "rejected", o.reason = m);
133
- }
134
- )), o.status) {
135
- case "fulfilled":
136
- return o.value;
137
- case "rejected":
138
- throw o.reason;
139
- }
140
- }
141
- throw o;
142
- }
143
- function K(o, m, k, R, I) {
144
- var V = typeof o;
145
- (V === "undefined" || V === "boolean") && (o = null);
146
- var A = !1;
147
- if (o === null) A = !0;
148
- else
149
- switch (V) {
150
- case "bigint":
151
- case "string":
152
- case "number":
153
- A = !0;
154
- break;
155
- case "object":
156
- switch (o.$$typeof) {
157
- case e:
158
- case t:
159
- A = !0;
160
- break;
161
- case _:
162
- return A = o._init, K(
163
- A(o._payload),
164
- m,
165
- k,
166
- R,
167
- I
168
- );
169
- }
170
- }
171
- if (A)
172
- return I = I(o), A = R === "" ? "." + re(o, 0) : R, j(I) ? (k = "", A != null && (k = A.replace(D, "$&/") + "/"), K(I, m, k, "", function(se) {
173
- return se;
174
- })) : I != null && (Y(I) && (I = z(
175
- I,
176
- k + (I.key == null || o && o.key === I.key ? "" : ("" + I.key).replace(
177
- D,
178
- "$&/"
179
- ) + "/") + A
180
- )), m.push(I)), 1;
181
- A = 0;
182
- var oe = R === "" ? "." : R + ":";
183
- if (j(o))
184
- for (var P = 0; P < o.length; P++)
185
- R = o[P], V = oe + re(R, P), A += K(
186
- R,
187
- m,
188
- k,
189
- V,
190
- I
191
- );
192
- else if (P = g(o), typeof P == "function")
193
- for (o = P.call(o), P = 0; !(R = o.next()).done; )
194
- R = R.value, V = oe + re(R, P++), A += K(
195
- R,
196
- m,
197
- k,
198
- V,
199
- I
200
- );
201
- else if (V === "object") {
202
- if (typeof o.then == "function")
203
- return K(
204
- M(o),
205
- m,
206
- k,
207
- R,
208
- I
209
- );
210
- throw m = String(o), Error(
211
- "Objects are not valid as a React child (found: " + (m === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : m) + "). If you meant to render a collection of children, use an array instead."
212
- );
213
- }
214
- return A;
215
- }
216
- function W(o, m, k) {
217
- if (o == null) return o;
218
- var R = [], I = 0;
219
- return K(o, R, "", "", function(V) {
220
- return m.call(k, V, I++);
221
- }), R;
222
- }
223
- function Z(o) {
224
- if (o._status === -1) {
225
- var m = o._result;
226
- m = m(), m.then(
227
- function(k) {
228
- (o._status === 0 || o._status === -1) && (o._status = 1, o._result = k);
229
- },
230
- function(k) {
231
- (o._status === 0 || o._status === -1) && (o._status = 2, o._result = k);
232
- }
233
- ), o._status === -1 && (o._status = 0, o._result = m);
234
- }
235
- if (o._status === 1) return o._result.default;
236
- throw o._result;
237
- }
238
- var ie = typeof reportError == "function" ? reportError : function(o) {
239
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
240
- var m = new window.ErrorEvent("error", {
241
- bubbles: !0,
242
- cancelable: !0,
243
- message: typeof o == "object" && o !== null && typeof o.message == "string" ? String(o.message) : String(o),
244
- error: o
245
- });
246
- if (!window.dispatchEvent(m)) return;
247
- } else if (typeof process == "object" && typeof process.emit == "function") {
248
- process.emit("uncaughtException", o);
249
- return;
250
- }
251
- console.error(o);
252
- };
253
- function Ee() {
254
- }
255
- return O.Children = {
256
- map: W,
257
- forEach: function(o, m, k) {
258
- W(
259
- o,
260
- function() {
261
- m.apply(this, arguments);
262
- },
263
- k
264
- );
265
- },
266
- count: function(o) {
267
- var m = 0;
268
- return W(o, function() {
269
- m++;
270
- }), m;
271
- },
272
- toArray: function(o) {
273
- return W(o, function(m) {
274
- return m;
275
- }) || [];
276
- },
277
- only: function(o) {
278
- if (!Y(o))
279
- throw Error(
280
- "React.Children.only expected to receive a single React element child."
281
- );
282
- return o;
283
- }
284
- }, O.Component = N, O.Fragment = r, O.Profiler = s, O.PureComponent = S, O.StrictMode = a, O.Suspense = l, O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, O.__COMPILER_RUNTIME = {
285
- __proto__: null,
286
- c: function(o) {
287
- return T.H.useMemoCache(o);
288
- }
289
- }, O.cache = function(o) {
290
- return function() {
291
- return o.apply(null, arguments);
292
- };
293
- }, O.cloneElement = function(o, m, k) {
294
- if (o == null)
295
- throw Error(
296
- "The argument must be a React element, but you passed " + o + "."
297
- );
298
- var R = v({}, o.props), I = o.key, V = void 0;
299
- if (m != null)
300
- for (A in m.ref !== void 0 && (V = void 0), m.key !== void 0 && (I = "" + m.key), m)
301
- !X.call(m, A) || A === "key" || A === "__self" || A === "__source" || A === "ref" && m.ref === void 0 || (R[A] = m[A]);
302
- var A = arguments.length - 2;
303
- if (A === 1) R.children = k;
304
- else if (1 < A) {
305
- for (var oe = Array(A), P = 0; P < A; P++)
306
- oe[P] = arguments[P + 2];
307
- R.children = oe;
308
- }
309
- return G(o.type, I, void 0, void 0, V, R);
310
- }, O.createContext = function(o) {
311
- return o = {
312
- $$typeof: f,
313
- _currentValue: o,
314
- _currentValue2: o,
315
- _threadCount: 0,
316
- Provider: null,
317
- Consumer: null
318
- }, o.Provider = o, o.Consumer = {
319
- $$typeof: i,
320
- _context: o
321
- }, o;
322
- }, O.createElement = function(o, m, k) {
323
- var R, I = {}, V = null;
324
- if (m != null)
325
- for (R in m.key !== void 0 && (V = "" + m.key), m)
326
- X.call(m, R) && R !== "key" && R !== "__self" && R !== "__source" && (I[R] = m[R]);
327
- var A = arguments.length - 2;
328
- if (A === 1) I.children = k;
329
- else if (1 < A) {
330
- for (var oe = Array(A), P = 0; P < A; P++)
331
- oe[P] = arguments[P + 2];
332
- I.children = oe;
333
- }
334
- if (o && o.defaultProps)
335
- for (R in A = o.defaultProps, A)
336
- I[R] === void 0 && (I[R] = A[R]);
337
- return G(o, V, void 0, void 0, null, I);
338
- }, O.createRef = function() {
339
- return { current: null };
340
- }, O.forwardRef = function(o) {
341
- return { $$typeof: h, render: o };
342
- }, O.isValidElement = Y, O.lazy = function(o) {
343
- return {
344
- $$typeof: _,
345
- _payload: { _status: -1, _result: o },
346
- _init: Z
347
- };
348
- }, O.memo = function(o, m) {
349
- return {
350
- $$typeof: c,
351
- type: o,
352
- compare: m === void 0 ? null : m
353
- };
354
- }, O.startTransition = function(o) {
355
- var m = T.T, k = {};
356
- T.T = k;
357
- try {
358
- var R = o(), I = T.S;
359
- I !== null && I(k, R), typeof R == "object" && R !== null && typeof R.then == "function" && R.then(Ee, ie);
360
- } catch (V) {
361
- ie(V);
362
- } finally {
363
- T.T = m;
364
- }
365
- }, O.unstable_useCacheRefresh = function() {
366
- return T.H.useCacheRefresh();
367
- }, O.use = function(o) {
368
- return T.H.use(o);
369
- }, O.useActionState = function(o, m, k) {
370
- return T.H.useActionState(o, m, k);
371
- }, O.useCallback = function(o, m) {
372
- return T.H.useCallback(o, m);
373
- }, O.useContext = function(o) {
374
- return T.H.useContext(o);
375
- }, O.useDebugValue = function() {
376
- }, O.useDeferredValue = function(o, m) {
377
- return T.H.useDeferredValue(o, m);
378
- }, O.useEffect = function(o, m, k) {
379
- var R = T.H;
380
- if (typeof k == "function")
381
- throw Error(
382
- "useEffect CRUD overload is not enabled in this build of React."
383
- );
384
- return R.useEffect(o, m);
385
- }, O.useId = function() {
386
- return T.H.useId();
387
- }, O.useImperativeHandle = function(o, m, k) {
388
- return T.H.useImperativeHandle(o, m, k);
389
- }, O.useInsertionEffect = function(o, m) {
390
- return T.H.useInsertionEffect(o, m);
391
- }, O.useLayoutEffect = function(o, m) {
392
- return T.H.useLayoutEffect(o, m);
393
- }, O.useMemo = function(o, m) {
394
- return T.H.useMemo(o, m);
395
- }, O.useOptimistic = function(o, m) {
396
- return T.H.useOptimistic(o, m);
397
- }, O.useReducer = function(o, m, k) {
398
- return T.H.useReducer(o, m, k);
399
- }, O.useRef = function(o) {
400
- return T.H.useRef(o);
401
- }, O.useState = function(o) {
402
- return T.H.useState(o);
403
- }, O.useSyncExternalStore = function(o, m, k) {
404
- return T.H.useSyncExternalStore(
405
- o,
406
- m,
407
- k
408
- );
409
- }, O.useTransition = function() {
410
- return T.H.useTransition();
411
- }, O.version = "19.1.0", O;
412
- }
413
- var De = { exports: {} };
414
- /**
415
- * @license React
416
- * react.development.js
417
- *
418
- * Copyright (c) Meta Platforms, Inc. and affiliates.
419
- *
420
- * This source code is licensed under the MIT license found in the
421
- * LICENSE file in the root directory of this source tree.
422
- */
423
- De.exports;
424
- var Ht;
425
- function zn() {
426
- return Ht || (Ht = 1, function(e, t) {
427
- process.env.NODE_ENV !== "production" && function() {
428
- function r(n, u) {
429
- Object.defineProperty(i.prototype, n, {
430
- get: function() {
431
- console.warn(
432
- "%s(...) is deprecated in plain JavaScript React classes. %s",
433
- u[0],
434
- u[1]
435
- );
436
- }
437
- });
438
- }
439
- function a(n) {
440
- return n === null || typeof n != "object" ? null : (n = Ue && n[Ue] || n["@@iterator"], typeof n == "function" ? n : null);
441
- }
442
- function s(n, u) {
443
- n = (n = n.constructor) && (n.displayName || n.name) || "ReactClass";
444
- var E = n + "." + u;
445
- St[E] || (console.error(
446
- "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",
447
- u,
448
- n
449
- ), St[E] = !0);
450
- }
451
- function i(n, u, E) {
452
- this.props = n, this.context = u, this.refs = ct, this.updater = E || Lt;
453
- }
454
- function f() {
455
- }
456
- function h(n, u, E) {
457
- this.props = n, this.context = u, this.refs = ct, this.updater = E || Lt;
458
- }
459
- function l(n) {
460
- return "" + n;
461
- }
462
- function c(n) {
463
- try {
464
- l(n);
465
- var u = !1;
466
- } catch {
467
- u = !0;
468
- }
469
- if (u) {
470
- u = console;
471
- var E = u.error, C = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
472
- return E.call(
473
- u,
474
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
475
- C
476
- ), l(n);
477
- }
478
- }
479
- function _(n) {
480
- if (n == null) return null;
481
- if (typeof n == "function")
482
- return n.$$typeof === Tn ? null : n.displayName || n.name || null;
483
- if (typeof n == "string") return n;
484
- switch (n) {
485
- case o:
486
- return "Fragment";
487
- case k:
488
- return "Profiler";
489
- case m:
490
- return "StrictMode";
491
- case A:
492
- return "Suspense";
493
- case oe:
494
- return "SuspenseList";
495
- case Ie:
496
- return "Activity";
497
- }
498
- if (typeof n == "object")
499
- switch (typeof n.tag == "number" && console.error(
500
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
501
- ), n.$$typeof) {
502
- case Ee:
503
- return "Portal";
504
- case I:
505
- return (n.displayName || "Context") + ".Provider";
506
- case R:
507
- return (n._context.displayName || "Context") + ".Consumer";
508
- case V:
509
- var u = n.render;
510
- return n = n.displayName, n || (n = u.displayName || u.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
511
- case P:
512
- return u = n.displayName || null, u !== null ? u : _(n.type) || "Memo";
513
- case se:
514
- u = n._payload, n = n._init;
515
- try {
516
- return _(n(u));
517
- } catch {
518
- }
519
- }
520
- return null;
521
- }
522
- function w(n) {
523
- if (n === o) return "<>";
524
- if (typeof n == "object" && n !== null && n.$$typeof === se)
525
- return "<...>";
526
- try {
527
- var u = _(n);
528
- return u ? "<" + u + ">" : "<...>";
529
- } catch {
530
- return "<...>";
531
- }
532
- }
533
- function g() {
534
- var n = q.A;
535
- return n === null ? null : n.getOwner();
536
- }
537
- function x() {
538
- return Error("react-stack-top-frame");
539
- }
540
- function v(n) {
541
- if (Ye.call(n, "key")) {
542
- var u = Object.getOwnPropertyDescriptor(n, "key").get;
543
- if (u && u.isReactWarning) return !1;
544
- }
545
- return n.key !== void 0;
546
- }
547
- function b(n, u) {
548
- function E() {
549
- Mt || (Mt = !0, console.error(
550
- "%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://react.dev/link/special-props)",
551
- u
552
- ));
553
- }
554
- E.isReactWarning = !0, Object.defineProperty(n, "key", {
555
- get: E,
556
- configurable: !0
557
- });
558
- }
559
- function N() {
560
- var n = _(this.type);
561
- return It[n] || (It[n] = !0, console.error(
562
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
563
- )), n = this.props.ref, n !== void 0 ? n : null;
564
- }
565
- function y(n, u, E, C, $, U, B, Q) {
566
- return E = U.ref, n = {
567
- $$typeof: ie,
568
- type: n,
569
- key: u,
570
- props: U,
571
- _owner: $
572
- }, (E !== void 0 ? E : null) !== null ? Object.defineProperty(n, "ref", {
573
- enumerable: !1,
574
- get: N
575
- }) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
576
- configurable: !1,
577
- enumerable: !1,
578
- writable: !0,
579
- value: 0
580
- }), Object.defineProperty(n, "_debugInfo", {
581
- configurable: !1,
582
- enumerable: !1,
583
- writable: !0,
584
- value: null
585
- }), Object.defineProperty(n, "_debugStack", {
586
- configurable: !1,
587
- enumerable: !1,
588
- writable: !0,
589
- value: B
590
- }), Object.defineProperty(n, "_debugTask", {
591
- configurable: !1,
592
- enumerable: !1,
593
- writable: !0,
594
- value: Q
595
- }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
596
- }
597
- function S(n, u) {
598
- return u = y(
599
- n.type,
600
- u,
601
- void 0,
602
- void 0,
603
- n._owner,
604
- n.props,
605
- n._debugStack,
606
- n._debugTask
607
- ), n._store && (u._store.validated = n._store.validated), u;
608
- }
609
- function L(n) {
610
- return typeof n == "object" && n !== null && n.$$typeof === ie;
611
- }
612
- function j(n) {
613
- var u = { "=": "=0", ":": "=2" };
614
- return "$" + n.replace(/[=:]/g, function(E) {
615
- return u[E];
616
- });
617
- }
618
- function T(n, u) {
619
- return typeof n == "object" && n !== null && n.key != null ? (c(n.key), j("" + n.key)) : u.toString(36);
620
- }
621
- function X() {
622
- }
623
- function G(n) {
624
- switch (n.status) {
625
- case "fulfilled":
626
- return n.value;
627
- case "rejected":
628
- throw n.reason;
629
- default:
630
- switch (typeof n.status == "string" ? n.then(X, X) : (n.status = "pending", n.then(
631
- function(u) {
632
- n.status === "pending" && (n.status = "fulfilled", n.value = u);
633
- },
634
- function(u) {
635
- n.status === "pending" && (n.status = "rejected", n.reason = u);
636
- }
637
- )), n.status) {
638
- case "fulfilled":
639
- return n.value;
640
- case "rejected":
641
- throw n.reason;
642
- }
643
- }
644
- throw n;
645
- }
646
- function z(n, u, E, C, $) {
647
- var U = typeof n;
648
- (U === "undefined" || U === "boolean") && (n = null);
649
- var B = !1;
650
- if (n === null) B = !0;
651
- else
652
- switch (U) {
653
- case "bigint":
654
- case "string":
655
- case "number":
656
- B = !0;
657
- break;
658
- case "object":
659
- switch (n.$$typeof) {
660
- case ie:
661
- case Ee:
662
- B = !0;
663
- break;
664
- case se:
665
- return B = n._init, z(
666
- B(n._payload),
667
- u,
668
- E,
669
- C,
670
- $
671
- );
672
- }
673
- }
674
- if (B) {
675
- B = n, $ = $(B);
676
- var Q = C === "" ? "." + T(B, 0) : C;
677
- return Tt($) ? (E = "", Q != null && (E = Q.replace(Ot, "$&/") + "/"), z($, u, E, "", function(ge) {
678
- return ge;
679
- })) : $ != null && (L($) && ($.key != null && (B && B.key === $.key || c($.key)), E = S(
680
- $,
681
- E + ($.key == null || B && B.key === $.key ? "" : ("" + $.key).replace(
682
- Ot,
683
- "$&/"
684
- ) + "/") + Q
685
- ), C !== "" && B != null && L(B) && B.key == null && B._store && !B._store.validated && (E._store.validated = 2), $ = E), u.push($)), 1;
686
- }
687
- if (B = 0, Q = C === "" ? "." : C + ":", Tt(n))
688
- for (var H = 0; H < n.length; H++)
689
- C = n[H], U = Q + T(C, H), B += z(
690
- C,
691
- u,
692
- E,
693
- U,
694
- $
695
- );
696
- else if (H = a(n), typeof H == "function")
697
- for (H === n.entries && (At || console.warn(
698
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
699
- ), At = !0), n = H.call(n), H = 0; !(C = n.next()).done; )
700
- C = C.value, U = Q + T(C, H++), B += z(
701
- C,
702
- u,
703
- E,
704
- U,
705
- $
706
- );
707
- else if (U === "object") {
708
- if (typeof n.then == "function")
709
- return z(
710
- G(n),
711
- u,
712
- E,
713
- C,
714
- $
715
- );
716
- throw u = String(n), Error(
717
- "Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead."
718
- );
719
- }
720
- return B;
721
- }
722
- function Y(n, u, E) {
723
- if (n == null) return n;
724
- var C = [], $ = 0;
725
- return z(n, C, "", "", function(U) {
726
- return u.call(E, U, $++);
727
- }), C;
728
- }
729
- function F(n) {
730
- if (n._status === -1) {
731
- var u = n._result;
732
- u = u(), u.then(
733
- function(E) {
734
- (n._status === 0 || n._status === -1) && (n._status = 1, n._result = E);
735
- },
736
- function(E) {
737
- (n._status === 0 || n._status === -1) && (n._status = 2, n._result = E);
738
- }
739
- ), n._status === -1 && (n._status = 0, n._result = u);
740
- }
741
- if (n._status === 1)
742
- return u = n._result, u === void 0 && console.error(
743
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
744
-
745
- Your code should look like:
746
- const MyComponent = lazy(() => import('./MyComponent'))
747
-
748
- Did you accidentally put curly braces around the import?`,
749
- u
750
- ), "default" in u || console.error(
751
- `lazy: Expected the result of a dynamic import() call. Instead received: %s
752
-
753
- Your code should look like:
754
- const MyComponent = lazy(() => import('./MyComponent'))`,
755
- u
756
- ), u.default;
757
- throw n._result;
758
- }
759
- function D() {
760
- var n = q.H;
761
- return n === null && console.error(
762
- `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
763
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
764
- 2. You might be breaking the Rules of Hooks
765
- 3. You might have more than one copy of React in the same app
766
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
767
- ), n;
768
- }
769
- function re() {
770
- }
771
- function te(n) {
772
- if (We === null)
773
- try {
774
- var u = ("require" + Math.random()).slice(0, 7);
775
- We = (e && e[u]).call(
776
- e,
777
- "timers"
778
- ).setImmediate;
779
- } catch {
780
- We = function(C) {
781
- zt === !1 && (zt = !0, typeof MessageChannel > "u" && console.error(
782
- "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."
783
- ));
784
- var $ = new MessageChannel();
785
- $.port1.onmessage = C, $.port2.postMessage(void 0);
786
- };
787
- }
788
- return We(n);
789
- }
790
- function M(n) {
791
- return 1 < n.length && typeof AggregateError == "function" ? new AggregateError(n) : n[0];
792
- }
793
- function K(n, u) {
794
- u !== Xe - 1 && console.error(
795
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
796
- ), Xe = u;
797
- }
798
- function W(n, u, E) {
799
- var C = q.actQueue;
800
- if (C !== null)
801
- if (C.length !== 0)
802
- try {
803
- Z(C), te(function() {
804
- return W(n, u, E);
805
- });
806
- return;
807
- } catch ($) {
808
- q.thrownErrors.push($);
809
- }
810
- else q.actQueue = null;
811
- 0 < q.thrownErrors.length ? (C = M(q.thrownErrors), q.thrownErrors.length = 0, E(C)) : u(n);
812
- }
813
- function Z(n) {
814
- if (!ut) {
815
- ut = !0;
816
- var u = 0;
817
- try {
818
- for (; u < n.length; u++) {
819
- var E = n[u];
820
- do {
821
- q.didUsePromise = !1;
822
- var C = E(!1);
823
- if (C !== null) {
824
- if (q.didUsePromise) {
825
- n[u] = E, n.splice(0, u);
826
- return;
827
- }
828
- E = C;
829
- } else break;
830
- } while (!0);
831
- }
832
- n.length = 0;
833
- } catch ($) {
834
- n.splice(0, u + 1), q.thrownErrors.push($);
835
- } finally {
836
- ut = !1;
837
- }
838
- }
839
- }
840
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
841
- var ie = Symbol.for("react.transitional.element"), Ee = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), R = Symbol.for("react.consumer"), I = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), Ie = Symbol.for("react.activity"), Ue = Symbol.iterator, St = {}, Lt = {
842
- isMounted: function() {
843
- return !1;
844
- },
845
- enqueueForceUpdate: function(n) {
846
- s(n, "forceUpdate");
847
- },
848
- enqueueReplaceState: function(n) {
849
- s(n, "replaceState");
850
- },
851
- enqueueSetState: function(n) {
852
- s(n, "setState");
853
- }
854
- }, jt = Object.assign, ct = {};
855
- Object.freeze(ct), i.prototype.isReactComponent = {}, i.prototype.setState = function(n, u) {
856
- if (typeof n != "object" && typeof n != "function" && n != null)
857
- throw Error(
858
- "takes an object of state variables to update or a function which returns an object of state variables."
859
- );
860
- this.updater.enqueueSetState(this, n, u, "setState");
861
- }, i.prototype.forceUpdate = function(n) {
862
- this.updater.enqueueForceUpdate(this, n, "forceUpdate");
863
- };
864
- var ae = {
865
- isMounted: [
866
- "isMounted",
867
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
868
- ],
869
- replaceState: [
870
- "replaceState",
871
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
872
- ]
873
- }, Ve;
874
- for (Ve in ae)
875
- ae.hasOwnProperty(Ve) && r(Ve, ae[Ve]);
876
- f.prototype = i.prototype, ae = h.prototype = new f(), ae.constructor = h, jt(ae, i.prototype), ae.isPureReactComponent = !0;
877
- var Tt = Array.isArray, Tn = Symbol.for("react.client.reference"), q = {
878
- H: null,
879
- A: null,
880
- T: null,
881
- S: null,
882
- V: null,
883
- actQueue: null,
884
- isBatchingLegacy: !1,
885
- didScheduleLegacyUpdate: !1,
886
- didUsePromise: !1,
887
- thrownErrors: [],
888
- getCurrentStack: null,
889
- recentlyCreatedOwnerStacks: 0
890
- }, Ye = Object.prototype.hasOwnProperty, $t = console.createTask ? console.createTask : function() {
891
- return null;
892
- };
893
- ae = {
894
- "react-stack-bottom-frame": function(n) {
895
- return n();
896
- }
897
- };
898
- var Mt, Nt, It = {}, $n = ae["react-stack-bottom-frame"].bind(ae, x)(), Mn = $t(w(x)), At = !1, Ot = /\/+/g, Pt = typeof reportError == "function" ? reportError : function(n) {
899
- if (typeof window == "object" && typeof window.ErrorEvent == "function") {
900
- var u = new window.ErrorEvent("error", {
901
- bubbles: !0,
902
- cancelable: !0,
903
- message: typeof n == "object" && n !== null && typeof n.message == "string" ? String(n.message) : String(n),
904
- error: n
905
- });
906
- if (!window.dispatchEvent(u)) return;
907
- } else if (typeof process == "object" && typeof process.emit == "function") {
908
- process.emit("uncaughtException", n);
909
- return;
910
- }
911
- console.error(n);
912
- }, zt = !1, We = null, Xe = 0, Ge = !1, ut = !1, Dt = typeof queueMicrotask == "function" ? function(n) {
913
- queueMicrotask(function() {
914
- return queueMicrotask(n);
915
- });
916
- } : te;
917
- ae = Object.freeze({
918
- __proto__: null,
919
- c: function(n) {
920
- return D().useMemoCache(n);
921
- }
922
- }), t.Children = {
923
- map: Y,
924
- forEach: function(n, u, E) {
925
- Y(
926
- n,
927
- function() {
928
- u.apply(this, arguments);
929
- },
930
- E
931
- );
932
- },
933
- count: function(n) {
934
- var u = 0;
935
- return Y(n, function() {
936
- u++;
937
- }), u;
938
- },
939
- toArray: function(n) {
940
- return Y(n, function(u) {
941
- return u;
942
- }) || [];
943
- },
944
- only: function(n) {
945
- if (!L(n))
946
- throw Error(
947
- "React.Children.only expected to receive a single React element child."
948
- );
949
- return n;
950
- }
951
- }, t.Component = i, t.Fragment = o, t.Profiler = k, t.PureComponent = h, t.StrictMode = m, t.Suspense = A, t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = q, t.__COMPILER_RUNTIME = ae, t.act = function(n) {
952
- var u = q.actQueue, E = Xe;
953
- Xe++;
954
- var C = q.actQueue = u !== null ? u : [], $ = !1;
955
- try {
956
- var U = n();
957
- } catch (H) {
958
- q.thrownErrors.push(H);
959
- }
960
- if (0 < q.thrownErrors.length)
961
- throw K(u, E), n = M(q.thrownErrors), q.thrownErrors.length = 0, n;
962
- if (U !== null && typeof U == "object" && typeof U.then == "function") {
963
- var B = U;
964
- return Dt(function() {
965
- $ || Ge || (Ge = !0, console.error(
966
- "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"
967
- ));
968
- }), {
969
- then: function(H, ge) {
970
- $ = !0, B.then(
971
- function(Ce) {
972
- if (K(u, E), E === 0) {
973
- try {
974
- Z(C), te(function() {
975
- return W(
976
- Ce,
977
- H,
978
- ge
979
- );
980
- });
981
- } catch (In) {
982
- q.thrownErrors.push(In);
983
- }
984
- if (0 < q.thrownErrors.length) {
985
- var Nn = M(
986
- q.thrownErrors
987
- );
988
- q.thrownErrors.length = 0, ge(Nn);
989
- }
990
- } else H(Ce);
991
- },
992
- function(Ce) {
993
- K(u, E), 0 < q.thrownErrors.length && (Ce = M(
994
- q.thrownErrors
995
- ), q.thrownErrors.length = 0), ge(Ce);
996
- }
997
- );
998
- }
999
- };
1000
- }
1001
- var Q = U;
1002
- if (K(u, E), E === 0 && (Z(C), C.length !== 0 && Dt(function() {
1003
- $ || Ge || (Ge = !0, console.error(
1004
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1005
- ));
1006
- }), q.actQueue = null), 0 < q.thrownErrors.length)
1007
- throw n = M(q.thrownErrors), q.thrownErrors.length = 0, n;
1008
- return {
1009
- then: function(H, ge) {
1010
- $ = !0, E === 0 ? (q.actQueue = C, te(function() {
1011
- return W(
1012
- Q,
1013
- H,
1014
- ge
1015
- );
1016
- })) : H(Q);
1017
- }
1018
- };
1019
- }, t.cache = function(n) {
1020
- return function() {
1021
- return n.apply(null, arguments);
1022
- };
1023
- }, t.captureOwnerStack = function() {
1024
- var n = q.getCurrentStack;
1025
- return n === null ? null : n();
1026
- }, t.cloneElement = function(n, u, E) {
1027
- if (n == null)
1028
- throw Error(
1029
- "The argument must be a React element, but you passed " + n + "."
1030
- );
1031
- var C = jt({}, n.props), $ = n.key, U = n._owner;
1032
- if (u != null) {
1033
- var B;
1034
- e: {
1035
- if (Ye.call(u, "ref") && (B = Object.getOwnPropertyDescriptor(
1036
- u,
1037
- "ref"
1038
- ).get) && B.isReactWarning) {
1039
- B = !1;
1040
- break e;
1041
- }
1042
- B = u.ref !== void 0;
1043
- }
1044
- B && (U = g()), v(u) && (c(u.key), $ = "" + u.key);
1045
- for (Q in u)
1046
- !Ye.call(u, Q) || Q === "key" || Q === "__self" || Q === "__source" || Q === "ref" && u.ref === void 0 || (C[Q] = u[Q]);
1047
- }
1048
- var Q = arguments.length - 2;
1049
- if (Q === 1) C.children = E;
1050
- else if (1 < Q) {
1051
- B = Array(Q);
1052
- for (var H = 0; H < Q; H++)
1053
- B[H] = arguments[H + 2];
1054
- C.children = B;
1055
- }
1056
- for (C = y(
1057
- n.type,
1058
- $,
1059
- void 0,
1060
- void 0,
1061
- U,
1062
- C,
1063
- n._debugStack,
1064
- n._debugTask
1065
- ), $ = 2; $ < arguments.length; $++)
1066
- U = arguments[$], L(U) && U._store && (U._store.validated = 1);
1067
- return C;
1068
- }, t.createContext = function(n) {
1069
- return n = {
1070
- $$typeof: I,
1071
- _currentValue: n,
1072
- _currentValue2: n,
1073
- _threadCount: 0,
1074
- Provider: null,
1075
- Consumer: null
1076
- }, n.Provider = n, n.Consumer = {
1077
- $$typeof: R,
1078
- _context: n
1079
- }, n._currentRenderer = null, n._currentRenderer2 = null, n;
1080
- }, t.createElement = function(n, u, E) {
1081
- for (var C = 2; C < arguments.length; C++) {
1082
- var $ = arguments[C];
1083
- L($) && $._store && ($._store.validated = 1);
1084
- }
1085
- if (C = {}, $ = null, u != null)
1086
- for (H in Nt || !("__self" in u) || "key" in u || (Nt = !0, console.warn(
1087
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1088
- )), v(u) && (c(u.key), $ = "" + u.key), u)
1089
- Ye.call(u, H) && H !== "key" && H !== "__self" && H !== "__source" && (C[H] = u[H]);
1090
- var U = arguments.length - 2;
1091
- if (U === 1) C.children = E;
1092
- else if (1 < U) {
1093
- for (var B = Array(U), Q = 0; Q < U; Q++)
1094
- B[Q] = arguments[Q + 2];
1095
- Object.freeze && Object.freeze(B), C.children = B;
1096
- }
1097
- if (n && n.defaultProps)
1098
- for (H in U = n.defaultProps, U)
1099
- C[H] === void 0 && (C[H] = U[H]);
1100
- $ && b(
1101
- C,
1102
- typeof n == "function" ? n.displayName || n.name || "Unknown" : n
1103
- );
1104
- var H = 1e4 > q.recentlyCreatedOwnerStacks++;
1105
- return y(
1106
- n,
1107
- $,
1108
- void 0,
1109
- void 0,
1110
- g(),
1111
- C,
1112
- H ? Error("react-stack-top-frame") : $n,
1113
- H ? $t(w(n)) : Mn
1114
- );
1115
- }, t.createRef = function() {
1116
- var n = { current: null };
1117
- return Object.seal(n), n;
1118
- }, t.forwardRef = function(n) {
1119
- n != null && n.$$typeof === P ? console.error(
1120
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1121
- ) : typeof n != "function" ? console.error(
1122
- "forwardRef requires a render function but was given %s.",
1123
- n === null ? "null" : typeof n
1124
- ) : n.length !== 0 && n.length !== 2 && console.error(
1125
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1126
- n.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1127
- ), n != null && n.defaultProps != null && console.error(
1128
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1129
- );
1130
- var u = { $$typeof: V, render: n }, E;
1131
- return Object.defineProperty(u, "displayName", {
1132
- enumerable: !1,
1133
- configurable: !0,
1134
- get: function() {
1135
- return E;
1136
- },
1137
- set: function(C) {
1138
- E = C, n.name || n.displayName || (Object.defineProperty(n, "name", { value: C }), n.displayName = C);
1139
- }
1140
- }), u;
1141
- }, t.isValidElement = L, t.lazy = function(n) {
1142
- return {
1143
- $$typeof: se,
1144
- _payload: { _status: -1, _result: n },
1145
- _init: F
1146
- };
1147
- }, t.memo = function(n, u) {
1148
- n == null && console.error(
1149
- "memo: The first argument must be a component. Instead received: %s",
1150
- n === null ? "null" : typeof n
1151
- ), u = {
1152
- $$typeof: P,
1153
- type: n,
1154
- compare: u === void 0 ? null : u
1155
- };
1156
- var E;
1157
- return Object.defineProperty(u, "displayName", {
1158
- enumerable: !1,
1159
- configurable: !0,
1160
- get: function() {
1161
- return E;
1162
- },
1163
- set: function(C) {
1164
- E = C, n.name || n.displayName || (Object.defineProperty(n, "name", { value: C }), n.displayName = C);
1165
- }
1166
- }), u;
1167
- }, t.startTransition = function(n) {
1168
- var u = q.T, E = {};
1169
- q.T = E, E._updatedFibers = /* @__PURE__ */ new Set();
1170
- try {
1171
- var C = n(), $ = q.S;
1172
- $ !== null && $(E, C), typeof C == "object" && C !== null && typeof C.then == "function" && C.then(re, Pt);
1173
- } catch (U) {
1174
- Pt(U);
1175
- } finally {
1176
- u === null && E._updatedFibers && (n = E._updatedFibers.size, E._updatedFibers.clear(), 10 < n && console.warn(
1177
- "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
1178
- )), q.T = u;
1179
- }
1180
- }, t.unstable_useCacheRefresh = function() {
1181
- return D().useCacheRefresh();
1182
- }, t.use = function(n) {
1183
- return D().use(n);
1184
- }, t.useActionState = function(n, u, E) {
1185
- return D().useActionState(
1186
- n,
1187
- u,
1188
- E
1189
- );
1190
- }, t.useCallback = function(n, u) {
1191
- return D().useCallback(n, u);
1192
- }, t.useContext = function(n) {
1193
- var u = D();
1194
- return n.$$typeof === R && console.error(
1195
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1196
- ), u.useContext(n);
1197
- }, t.useDebugValue = function(n, u) {
1198
- return D().useDebugValue(n, u);
1199
- }, t.useDeferredValue = function(n, u) {
1200
- return D().useDeferredValue(n, u);
1201
- }, t.useEffect = function(n, u, E) {
1202
- n == null && console.warn(
1203
- "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1204
- );
1205
- var C = D();
1206
- if (typeof E == "function")
1207
- throw Error(
1208
- "useEffect CRUD overload is not enabled in this build of React."
1209
- );
1210
- return C.useEffect(n, u);
1211
- }, t.useId = function() {
1212
- return D().useId();
1213
- }, t.useImperativeHandle = function(n, u, E) {
1214
- return D().useImperativeHandle(n, u, E);
1215
- }, t.useInsertionEffect = function(n, u) {
1216
- return n == null && console.warn(
1217
- "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1218
- ), D().useInsertionEffect(n, u);
1219
- }, t.useLayoutEffect = function(n, u) {
1220
- return n == null && console.warn(
1221
- "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1222
- ), D().useLayoutEffect(n, u);
1223
- }, t.useMemo = function(n, u) {
1224
- return D().useMemo(n, u);
1225
- }, t.useOptimistic = function(n, u) {
1226
- return D().useOptimistic(n, u);
1227
- }, t.useReducer = function(n, u, E) {
1228
- return D().useReducer(n, u, E);
1229
- }, t.useRef = function(n) {
1230
- return D().useRef(n);
1231
- }, t.useState = function(n) {
1232
- return D().useState(n);
1233
- }, t.useSyncExternalStore = function(n, u, E) {
1234
- return D().useSyncExternalStore(
1235
- n,
1236
- u,
1237
- E
1238
- );
1239
- }, t.useTransition = function() {
1240
- return D().useTransition();
1241
- }, t.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1242
- }();
1243
- }(De, De.exports)), De.exports;
1244
- }
1245
- var qt;
1246
- function cn() {
1247
- return qt || (qt = 1, process.env.NODE_ENV === "production" ? Qe.exports = Pn() : Qe.exports = zn()), Qe.exports;
1248
- }
1249
- /**
1250
- * @license React
1251
- * react-jsx-runtime.development.js
1252
- *
1253
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1254
- *
1255
- * This source code is licensed under the MIT license found in the
1256
- * LICENSE file in the root directory of this source tree.
1257
- */
1258
- var Ut;
1259
- function Dn() {
1260
- return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && function() {
1261
- function e(o) {
1262
- if (o == null) return null;
1263
- if (typeof o == "function")
1264
- return o.$$typeof === F ? null : o.displayName || o.name || null;
1265
- if (typeof o == "string") return o;
1266
- switch (o) {
1267
- case b:
1268
- return "Fragment";
1269
- case y:
1270
- return "Profiler";
1271
- case N:
1272
- return "StrictMode";
1273
- case T:
1274
- return "Suspense";
1275
- case X:
1276
- return "SuspenseList";
1277
- case Y:
1278
- return "Activity";
1279
- }
1280
- if (typeof o == "object")
1281
- switch (typeof o.tag == "number" && console.error(
1282
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1283
- ), o.$$typeof) {
1284
- case v:
1285
- return "Portal";
1286
- case L:
1287
- return (o.displayName || "Context") + ".Provider";
1288
- case S:
1289
- return (o._context.displayName || "Context") + ".Consumer";
1290
- case j:
1291
- var m = o.render;
1292
- return o = o.displayName, o || (o = m.displayName || m.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
1293
- case G:
1294
- return m = o.displayName || null, m !== null ? m : e(o.type) || "Memo";
1295
- case z:
1296
- m = o._payload, o = o._init;
1297
- try {
1298
- return e(o(m));
1299
- } catch {
1300
- }
1301
- }
1302
- return null;
1303
- }
1304
- function t(o) {
1305
- return "" + o;
1306
- }
1307
- function r(o) {
1308
- try {
1309
- t(o);
1310
- var m = !1;
1311
- } catch {
1312
- m = !0;
1313
- }
1314
- if (m) {
1315
- m = console;
1316
- var k = m.error, R = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
1317
- return k.call(
1318
- m,
1319
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1320
- R
1321
- ), t(o);
1322
- }
1323
- }
1324
- function a(o) {
1325
- if (o === b) return "<>";
1326
- if (typeof o == "object" && o !== null && o.$$typeof === z)
1327
- return "<...>";
1328
- try {
1329
- var m = e(o);
1330
- return m ? "<" + m + ">" : "<...>";
1331
- } catch {
1332
- return "<...>";
1333
- }
1334
- }
1335
- function s() {
1336
- var o = D.A;
1337
- return o === null ? null : o.getOwner();
1338
- }
1339
- function i() {
1340
- return Error("react-stack-top-frame");
1341
- }
1342
- function f(o) {
1343
- if (re.call(o, "key")) {
1344
- var m = Object.getOwnPropertyDescriptor(o, "key").get;
1345
- if (m && m.isReactWarning) return !1;
1346
- }
1347
- return o.key !== void 0;
1348
- }
1349
- function h(o, m) {
1350
- function k() {
1351
- K || (K = !0, console.error(
1352
- "%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://react.dev/link/special-props)",
1353
- m
1354
- ));
1355
- }
1356
- k.isReactWarning = !0, Object.defineProperty(o, "key", {
1357
- get: k,
1358
- configurable: !0
1359
- });
1360
- }
1361
- function l() {
1362
- var o = e(this.type);
1363
- return W[o] || (W[o] = !0, console.error(
1364
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1365
- )), o = this.props.ref, o !== void 0 ? o : null;
1366
- }
1367
- function c(o, m, k, R, I, V, A, oe) {
1368
- return k = V.ref, o = {
1369
- $$typeof: x,
1370
- type: o,
1371
- key: m,
1372
- props: V,
1373
- _owner: I
1374
- }, (k !== void 0 ? k : null) !== null ? Object.defineProperty(o, "ref", {
1375
- enumerable: !1,
1376
- get: l
1377
- }) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
1378
- configurable: !1,
1379
- enumerable: !1,
1380
- writable: !0,
1381
- value: 0
1382
- }), Object.defineProperty(o, "_debugInfo", {
1383
- configurable: !1,
1384
- enumerable: !1,
1385
- writable: !0,
1386
- value: null
1387
- }), Object.defineProperty(o, "_debugStack", {
1388
- configurable: !1,
1389
- enumerable: !1,
1390
- writable: !0,
1391
- value: A
1392
- }), Object.defineProperty(o, "_debugTask", {
1393
- configurable: !1,
1394
- enumerable: !1,
1395
- writable: !0,
1396
- value: oe
1397
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
1398
- }
1399
- function _(o, m, k, R, I, V, A, oe) {
1400
- var P = m.children;
1401
- if (P !== void 0)
1402
- if (R)
1403
- if (te(P)) {
1404
- for (R = 0; R < P.length; R++)
1405
- w(P[R]);
1406
- Object.freeze && Object.freeze(P);
1407
- } else
1408
- console.error(
1409
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1410
- );
1411
- else w(P);
1412
- if (re.call(m, "key")) {
1413
- P = e(o);
1414
- var se = Object.keys(m).filter(function(Ue) {
1415
- return Ue !== "key";
1416
- });
1417
- R = 0 < se.length ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}", Ee[P + R] || (se = 0 < se.length ? "{" + se.join(": ..., ") + ": ...}" : "{}", console.error(
1418
- `A props object containing a "key" prop is being spread into JSX:
1419
- let props = %s;
1420
- <%s {...props} />
1421
- React keys must be passed directly to JSX without using spread:
1422
- let props = %s;
1423
- <%s key={someKey} {...props} />`,
1424
- R,
1425
- P,
1426
- se,
1427
- P
1428
- ), Ee[P + R] = !0);
1429
- }
1430
- if (P = null, k !== void 0 && (r(k), P = "" + k), f(m) && (r(m.key), P = "" + m.key), "key" in m) {
1431
- k = {};
1432
- for (var Ie in m)
1433
- Ie !== "key" && (k[Ie] = m[Ie]);
1434
- } else k = m;
1435
- return P && h(
1436
- k,
1437
- typeof o == "function" ? o.displayName || o.name || "Unknown" : o
1438
- ), c(
1439
- o,
1440
- P,
1441
- V,
1442
- I,
1443
- s(),
1444
- k,
1445
- A,
1446
- oe
1447
- );
1448
- }
1449
- function w(o) {
1450
- typeof o == "object" && o !== null && o.$$typeof === x && o._store && (o._store.validated = 1);
1451
- }
1452
- var g = cn(), x = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), N = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), L = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), D = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, re = Object.prototype.hasOwnProperty, te = Array.isArray, M = console.createTask ? console.createTask : function() {
1453
- return null;
1454
- };
1455
- g = {
1456
- "react-stack-bottom-frame": function(o) {
1457
- return o();
1458
- }
1459
- };
1460
- var K, W = {}, Z = g["react-stack-bottom-frame"].bind(
1461
- g,
1462
- i
1463
- )(), ie = M(a(i)), Ee = {};
1464
- Oe.Fragment = b, Oe.jsx = function(o, m, k, R, I) {
1465
- var V = 1e4 > D.recentlyCreatedOwnerStacks++;
1466
- return _(
1467
- o,
1468
- m,
1469
- k,
1470
- !1,
1471
- R,
1472
- I,
1473
- V ? Error("react-stack-top-frame") : Z,
1474
- V ? M(a(o)) : ie
1475
- );
1476
- }, Oe.jsxs = function(o, m, k, R, I) {
1477
- var V = 1e4 > D.recentlyCreatedOwnerStacks++;
1478
- return _(
1479
- o,
1480
- m,
1481
- k,
1482
- !0,
1483
- R,
1484
- I,
1485
- V ? Error("react-stack-top-frame") : Z,
1486
- V ? M(a(o)) : ie
1487
- );
1488
- };
1489
- }()), Oe;
1490
- }
1491
- var Vt;
1492
- function Bn() {
1493
- return Vt || (Vt = 1, process.env.NODE_ENV === "production" ? Ke.exports = On() : Ke.exports = Dn()), Ke.exports;
1494
- }
1495
- var d = Bn(), p = cn();
1496
- const fe = /* @__PURE__ */ An(p), J = (e) => (e == null ? void 0 : e.filter(Boolean).join(" ")) || "", un = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Fn = (e) => !(e != null && e.colors) || !Object.entries(e.colors).length ? {} : Object.entries(e.colors).reduce(
1497
- (t, [r, a]) => (r && a && (t[`--color-${un(r)}`] = a), t),
1498
- {}
1499
- ), Hn = (e) => !(e != null && e.sizes) || !Object.entries(e.sizes).length ? {} : Object.entries(e.sizes).reduce(
1500
- (t, [r, a]) => (r && a && (t[`--size-${un(r)}`] = a), t),
1501
- {}
1502
- ), qn = (e) => ({
1503
- ...Fn(e),
1504
- ...Hn(e)
1505
- }), Un = (e, t) => {
1506
- if (typeof document > "u") return;
1507
- const r = document.createElement("style");
1508
- r.setAttribute("id", e), r.textContent = t;
1509
- const a = document.getElementById(e);
1510
- a && a.remove(), document.head.appendChild(r);
1511
- }, Vn = (e) => Object.entries(e).map(([t, r]) => `${t}: ${r};`).join(""), Me = (e) => {
1512
- const t = [];
1513
- return p.Children.forEach(e, (r) => {
1514
- if (p.isValidElement(r)) {
1515
- const a = r;
1516
- if (a.type === p.Fragment) {
1517
- const s = Me(a.props.children);
1518
- t.push(...s);
1519
- } else
1520
- t.push(p.cloneElement(a, { ...a.props }));
1521
- } else
1522
- t.push(r);
1523
- }), t;
1524
- }, Yn = (e) => {
1525
- if (typeof document > "u") return;
1526
- const t = document.createElement("button");
1527
- t.style.position = "absolute", t.style.opacity = "0", e.prepend(t), t.focus(), t.remove();
1528
- }, Wn = (e) => Array.from(
1529
- e.querySelectorAll('button, [href], input, [tabindex="0"]')
1530
- ).filter((r) => !!r), dn = (e) => {
1531
- Yn(e);
1532
- const t = Wn(e), r = t[0], a = t[t.length - 1] || r;
1533
- r && (r.onkeydown = (s) => {
1534
- s.key === "Tab" && s.shiftKey && (s.preventDefault(), a.focus());
1535
- }), a && (a.onclick = () => {
1536
- r == null || r.focus();
1537
- }, a.onkeydown = (s) => {
1538
- s.key === "Tab" && !s.shiftKey && (s.preventDefault(), r == null || r.focus());
1539
- });
1540
- }, Xn = "_accordion_1o1ts_67", Gn = "_panel_1o1ts_76", Kn = "_content_1o1ts_77", Qn = "_secondary_1o1ts_80", Zn = "_margin_1o1ts_88", Jn = "_panelText_1o1ts_122", er = "_panelChevron_1o1ts_128", tr = "_expanded_1o1ts_155", nr = "_initialized_1o1ts_171", rr = "_hide_1o1ts_1", or = "_show_1o1ts_1", le = {
1541
- accordion: Xn,
1542
- default: "_default_1o1ts_73",
1543
- panel: Gn,
1544
- content: Kn,
1545
- secondary: Qn,
1546
- margin: Zn,
1547
- panelText: Jn,
1548
- panelChevron: er,
1549
- expanded: tr,
1550
- initialized: nr,
1551
- hide: rr,
1552
- show: or
1553
- }, Bi = ({
1554
- title: e,
1555
- color: t = "default",
1556
- expanded: r = !1,
1557
- onToggleExpand: a,
1558
- buttonProps: s,
1559
- noMargin: i = !1,
1560
- initialized: f,
1561
- children: h,
1562
- ...l
1563
- }) => {
1564
- const [c, _] = p.useState(r), [w, g] = p.useState(f), x = () => {
1565
- _(!c), g(!0), a && a();
1566
- };
1567
- p.useEffect(() => {
1568
- _(r);
1569
- }, [r]);
1570
- const v = () => /* @__PURE__ */ d.jsxs(
1571
- "button",
1572
- {
1573
- ...s,
1574
- className: le.panel,
1575
- onClick: x,
1576
- "aria-expanded": c ? "true" : "false",
1577
- children: [
1578
- /* @__PURE__ */ d.jsx("span", { className: le.panelText, children: e }),
1579
- /* @__PURE__ */ d.jsx(
1580
- "span",
1581
- {
1582
- className: `${le.panelChevron} ${c ? le.expanded : ""}`
1583
- }
1584
- )
1585
- ]
1586
- }
1587
- ), b = J([
1588
- le.accordion,
1589
- t && le[t],
1590
- !i && le.margin
1591
- ]);
1592
- return /* @__PURE__ */ d.jsxs("div", { className: b, ...l, children: [
1593
- /* @__PURE__ */ d.jsx(v, {}),
1594
- /* @__PURE__ */ d.jsx(
1595
- "div",
1596
- {
1597
- className: `${le.content} ${w ? le.initialized : ""} ${c ? le.expanded : ""}`,
1598
- children: h
1599
- }
1600
- )
1601
- ] });
1602
- };
1603
- var Pe = {}, Yt;
1604
- function sr() {
1605
- if (Yt) return Pe;
1606
- Yt = 1, Object.defineProperty(Pe, "__esModule", { value: !0 }), Pe.parse = f, Pe.serialize = c;
1607
- const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, s = Object.prototype.toString, i = /* @__PURE__ */ (() => {
1608
- const g = function() {
1609
- };
1610
- return g.prototype = /* @__PURE__ */ Object.create(null), g;
1611
- })();
1612
- function f(g, x) {
1613
- const v = new i(), b = g.length;
1614
- if (b < 2)
1615
- return v;
1616
- const N = (x == null ? void 0 : x.decode) || _;
1617
- let y = 0;
1618
- do {
1619
- const S = g.indexOf("=", y);
1620
- if (S === -1)
1621
- break;
1622
- const L = g.indexOf(";", y), j = L === -1 ? b : L;
1623
- if (S > j) {
1624
- y = g.lastIndexOf(";", S - 1) + 1;
1625
- continue;
1626
- }
1627
- const T = h(g, y, S), X = l(g, S, T), G = g.slice(T, X);
1628
- if (v[G] === void 0) {
1629
- let z = h(g, S + 1, j), Y = l(g, j, z);
1630
- const F = N(g.slice(z, Y));
1631
- v[G] = F;
1632
- }
1633
- y = j + 1;
1634
- } while (y < b);
1635
- return v;
1636
- }
1637
- function h(g, x, v) {
1638
- do {
1639
- const b = g.charCodeAt(x);
1640
- if (b !== 32 && b !== 9)
1641
- return x;
1642
- } while (++x < v);
1643
- return v;
1644
- }
1645
- function l(g, x, v) {
1646
- for (; x > v; ) {
1647
- const b = g.charCodeAt(--x);
1648
- if (b !== 32 && b !== 9)
1649
- return x + 1;
1650
- }
1651
- return v;
1652
- }
1653
- function c(g, x, v) {
1654
- const b = (v == null ? void 0 : v.encode) || encodeURIComponent;
1655
- if (!e.test(g))
1656
- throw new TypeError(`argument name is invalid: ${g}`);
1657
- const N = b(x);
1658
- if (!t.test(N))
1659
- throw new TypeError(`argument val is invalid: ${x}`);
1660
- let y = g + "=" + N;
1661
- if (!v)
1662
- return y;
1663
- if (v.maxAge !== void 0) {
1664
- if (!Number.isInteger(v.maxAge))
1665
- throw new TypeError(`option maxAge is invalid: ${v.maxAge}`);
1666
- y += "; Max-Age=" + v.maxAge;
1667
- }
1668
- if (v.domain) {
1669
- if (!r.test(v.domain))
1670
- throw new TypeError(`option domain is invalid: ${v.domain}`);
1671
- y += "; Domain=" + v.domain;
1672
- }
1673
- if (v.path) {
1674
- if (!a.test(v.path))
1675
- throw new TypeError(`option path is invalid: ${v.path}`);
1676
- y += "; Path=" + v.path;
1677
- }
1678
- if (v.expires) {
1679
- if (!w(v.expires) || !Number.isFinite(v.expires.valueOf()))
1680
- throw new TypeError(`option expires is invalid: ${v.expires}`);
1681
- y += "; Expires=" + v.expires.toUTCString();
1682
- }
1683
- if (v.httpOnly && (y += "; HttpOnly"), v.secure && (y += "; Secure"), v.partitioned && (y += "; Partitioned"), v.priority)
1684
- switch (typeof v.priority == "string" ? v.priority.toLowerCase() : void 0) {
1685
- case "low":
1686
- y += "; Priority=Low";
1687
- break;
1688
- case "medium":
1689
- y += "; Priority=Medium";
1690
- break;
1691
- case "high":
1692
- y += "; Priority=High";
1693
- break;
1694
- default:
1695
- throw new TypeError(`option priority is invalid: ${v.priority}`);
1696
- }
1697
- if (v.sameSite)
1698
- switch (typeof v.sameSite == "string" ? v.sameSite.toLowerCase() : v.sameSite) {
1699
- case !0:
1700
- case "strict":
1701
- y += "; SameSite=Strict";
1702
- break;
1703
- case "lax":
1704
- y += "; SameSite=Lax";
1705
- break;
1706
- case "none":
1707
- y += "; SameSite=None";
1708
- break;
1709
- default:
1710
- throw new TypeError(`option sameSite is invalid: ${v.sameSite}`);
1711
- }
1712
- return y;
1713
- }
1714
- function _(g) {
1715
- if (g.indexOf("%") === -1)
1716
- return g;
1717
- try {
1718
- return decodeURIComponent(g);
1719
- } catch {
1720
- return g;
1721
- }
1722
- }
1723
- function w(g) {
1724
- return s.call(g) === "[object Date]";
1725
- }
1726
- return Pe;
1727
- }
1728
- sr();
1729
- /**
1730
- * react-router v7.6.1
1731
- *
1732
- * Copyright (c) Remix Software Inc.
1733
- *
1734
- * This source code is licensed under the MIT license found in the
1735
- * LICENSE.md file in the root directory of this source tree.
1736
- *
1737
- * @license MIT
1738
- */
1739
- function ne(e, t) {
1740
- if (e === !1 || e === null || typeof e > "u")
1741
- throw new Error(t);
1742
- }
1743
- function pe(e, t) {
1744
- if (!e) {
1745
- typeof console < "u" && console.warn(t);
1746
- try {
1747
- throw new Error(t);
1748
- } catch {
1749
- }
1750
- }
1751
- }
1752
- function vt({
1753
- pathname: e = "/",
1754
- search: t = "",
1755
- hash: r = ""
1756
- }) {
1757
- return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
1758
- }
1759
- function yt(e) {
1760
- let t = {};
1761
- if (e) {
1762
- let r = e.indexOf("#");
1763
- r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
1764
- let a = e.indexOf("?");
1765
- a >= 0 && (t.search = e.substring(a), e = e.substring(0, a)), e && (t.pathname = e);
1766
- }
1767
- return t;
1768
- }
1769
- function fn(e, t, r = "/") {
1770
- return ar(e, t, r, !1);
1771
- }
1772
- function ar(e, t, r, a) {
1773
- let s = typeof t == "string" ? yt(t) : t, i = ye(s.pathname || "/", r);
1774
- if (i == null)
1775
- return null;
1776
- let f = hn(e);
1777
- ir(f);
1778
- let h = null;
1779
- for (let l = 0; h == null && l < f.length; ++l) {
1780
- let c = vr(i);
1781
- h = _r(
1782
- f[l],
1783
- c,
1784
- a
1785
- );
1786
- }
1787
- return h;
1788
- }
1789
- function hn(e, t = [], r = [], a = "") {
1790
- let s = (i, f, h) => {
1791
- let l = {
1792
- relativePath: h === void 0 ? i.path || "" : h,
1793
- caseSensitive: i.caseSensitive === !0,
1794
- childrenIndex: f,
1795
- route: i
1796
- };
1797
- l.relativePath.startsWith("/") && (ne(
1798
- l.relativePath.startsWith(a),
1799
- `Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
1800
- ), l.relativePath = l.relativePath.slice(a.length));
1801
- let c = he([a, l.relativePath]), _ = r.concat(l);
1802
- i.children && i.children.length > 0 && (ne(
1803
- // Our types know better, but runtime JS may not!
1804
- // @ts-expect-error
1805
- i.index !== !0,
1806
- `Index routes must not have child routes. Please remove all child routes from route path "${c}".`
1807
- ), hn(i.children, t, _, c)), !(i.path == null && !i.index) && t.push({
1808
- path: c,
1809
- score: pr(c, i.index),
1810
- routesMeta: _
1811
- });
1812
- };
1813
- return e.forEach((i, f) => {
1814
- var h;
1815
- if (i.path === "" || !((h = i.path) != null && h.includes("?")))
1816
- s(i, f);
1817
- else
1818
- for (let l of pn(i.path))
1819
- s(i, f, l);
1820
- }), t;
1821
- }
1822
- function pn(e) {
1823
- let t = e.split("/");
1824
- if (t.length === 0) return [];
1825
- let [r, ...a] = t, s = r.endsWith("?"), i = r.replace(/\?$/, "");
1826
- if (a.length === 0)
1827
- return s ? [i, ""] : [i];
1828
- let f = pn(a.join("/")), h = [];
1829
- return h.push(
1830
- ...f.map(
1831
- (l) => l === "" ? i : [i, l].join("/")
1832
- )
1833
- ), s && h.push(...f), h.map(
1834
- (l) => e.startsWith("/") && l === "" ? "/" : l
1835
- );
1836
- }
1837
- function ir(e) {
1838
- e.sort(
1839
- (t, r) => t.score !== r.score ? r.score - t.score : mr(
1840
- t.routesMeta.map((a) => a.childrenIndex),
1841
- r.routesMeta.map((a) => a.childrenIndex)
1842
- )
1843
- );
1844
- }
1845
- var lr = /^:[\w-]+$/, cr = 3, ur = 2, dr = 1, fr = 10, hr = -2, Wt = (e) => e === "*";
1846
- function pr(e, t) {
1847
- let r = e.split("/"), a = r.length;
1848
- return r.some(Wt) && (a += hr), t && (a += ur), r.filter((s) => !Wt(s)).reduce(
1849
- (s, i) => s + (lr.test(i) ? cr : i === "" ? dr : fr),
1850
- a
1851
- );
1852
- }
1853
- function mr(e, t) {
1854
- return e.length === t.length && e.slice(0, -1).every((a, s) => a === t[s]) ? (
1855
- // If two routes are siblings, we should try to match the earlier sibling
1856
- // first. This allows people to have fine-grained control over the matching
1857
- // behavior by simply putting routes with identical paths in the order they
1858
- // want them tried.
1859
- e[e.length - 1] - t[t.length - 1]
1860
- ) : (
1861
- // Otherwise, it doesn't really make sense to rank non-siblings by index,
1862
- // so they sort equally.
1863
- 0
1864
- );
1865
- }
1866
- function _r(e, t, r = !1) {
1867
- let { routesMeta: a } = e, s = {}, i = "/", f = [];
1868
- for (let h = 0; h < a.length; ++h) {
1869
- let l = a[h], c = h === a.length - 1, _ = i === "/" ? t : t.slice(i.length) || "/", w = ot(
1870
- { path: l.relativePath, caseSensitive: l.caseSensitive, end: c },
1871
- _
1872
- ), g = l.route;
1873
- if (!w && c && r && !a[a.length - 1].route.index && (w = ot(
1874
- {
1875
- path: l.relativePath,
1876
- caseSensitive: l.caseSensitive,
1877
- end: !1
1878
- },
1879
- _
1880
- )), !w)
1881
- return null;
1882
- Object.assign(s, w.params), f.push({
1883
- // TODO: Can this as be avoided?
1884
- params: s,
1885
- pathname: he([i, w.pathname]),
1886
- pathnameBase: br(
1887
- he([i, w.pathnameBase])
1888
- ),
1889
- route: g
1890
- }), w.pathnameBase !== "/" && (i = he([i, w.pathnameBase]));
1891
- }
1892
- return f;
1893
- }
1894
- function ot(e, t) {
1895
- typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
1896
- let [r, a] = gr(
1897
- e.path,
1898
- e.caseSensitive,
1899
- e.end
1900
- ), s = t.match(r);
1901
- if (!s) return null;
1902
- let i = s[0], f = i.replace(/(.)\/+$/, "$1"), h = s.slice(1);
1903
- return {
1904
- params: a.reduce(
1905
- (c, { paramName: _, isOptional: w }, g) => {
1906
- if (_ === "*") {
1907
- let v = h[g] || "";
1908
- f = i.slice(0, i.length - v.length).replace(/(.)\/+$/, "$1");
1909
- }
1910
- const x = h[g];
1911
- return w && !x ? c[_] = void 0 : c[_] = (x || "").replace(/%2F/g, "/"), c;
1912
- },
1913
- {}
1914
- ),
1915
- pathname: i,
1916
- pathnameBase: f,
1917
- pattern: e
1918
- };
1919
- }
1920
- function gr(e, t = !1, r = !0) {
1921
- pe(
1922
- e === "*" || !e.endsWith("*") || e.endsWith("/*"),
1923
- `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
1924
- );
1925
- let a = [], s = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
1926
- /\/:([\w-]+)(\?)?/g,
1927
- (f, h, l) => (a.push({ paramName: h, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
1928
- );
1929
- return e.endsWith("*") ? (a.push({ paramName: "*" }), s += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? s += "\\/*$" : e !== "" && e !== "/" && (s += "(?:(?=\\/|$))"), [new RegExp(s, t ? void 0 : "i"), a];
1930
- }
1931
- function vr(e) {
1932
- try {
1933
- return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
1934
- } catch (t) {
1935
- return pe(
1936
- !1,
1937
- `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
1938
- ), e;
1939
- }
1940
- }
1941
- function ye(e, t) {
1942
- if (t === "/") return e;
1943
- if (!e.toLowerCase().startsWith(t.toLowerCase()))
1944
- return null;
1945
- let r = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(r);
1946
- return a && a !== "/" ? null : e.slice(r) || "/";
1947
- }
1948
- function yr(e, t = "/") {
1949
- let {
1950
- pathname: r,
1951
- search: a = "",
1952
- hash: s = ""
1953
- } = typeof e == "string" ? yt(e) : e;
1954
- return {
1955
- pathname: r ? r.startsWith("/") ? r : wr(r, t) : t,
1956
- search: xr(a),
1957
- hash: Cr(s)
1958
- };
1959
- }
1960
- function wr(e, t) {
1961
- let r = t.replace(/\/+$/, "").split("/");
1962
- return e.split("/").forEach((s) => {
1963
- s === ".." ? r.length > 1 && r.pop() : s !== "." && r.push(s);
1964
- }), r.length > 1 ? r.join("/") : "/";
1965
- }
1966
- function dt(e, t, r, a) {
1967
- return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
1968
- a
1969
- )}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
1970
- }
1971
- function Er(e) {
1972
- return e.filter(
1973
- (t, r) => r === 0 || t.route.path && t.route.path.length > 0
1974
- );
1975
- }
1976
- function mn(e) {
1977
- let t = Er(e);
1978
- return t.map(
1979
- (r, a) => a === t.length - 1 ? r.pathname : r.pathnameBase
1980
- );
1981
- }
1982
- function _n(e, t, r, a = !1) {
1983
- let s;
1984
- typeof e == "string" ? s = yt(e) : (s = { ...e }, ne(
1985
- !s.pathname || !s.pathname.includes("?"),
1986
- dt("?", "pathname", "search", s)
1987
- ), ne(
1988
- !s.pathname || !s.pathname.includes("#"),
1989
- dt("#", "pathname", "hash", s)
1990
- ), ne(
1991
- !s.search || !s.search.includes("#"),
1992
- dt("#", "search", "hash", s)
1993
- ));
1994
- let i = e === "" || s.pathname === "", f = i ? "/" : s.pathname, h;
1995
- if (f == null)
1996
- h = r;
1997
- else {
1998
- let w = t.length - 1;
1999
- if (!a && f.startsWith("..")) {
2000
- let g = f.split("/");
2001
- for (; g[0] === ".."; )
2002
- g.shift(), w -= 1;
2003
- s.pathname = g.join("/");
2004
- }
2005
- h = w >= 0 ? t[w] : "/";
2006
- }
2007
- let l = yr(s, h), c = f && f !== "/" && f.endsWith("/"), _ = (i || f === ".") && r.endsWith("/");
2008
- return !l.pathname.endsWith("/") && (c || _) && (l.pathname += "/"), l;
2009
- }
2010
- var he = (e) => e.join("/").replace(/\/\/+/g, "/"), br = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), xr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Cr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
2011
- function kr(e) {
2012
- return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
2013
- }
2014
- var gn = [
2015
- "POST",
2016
- "PUT",
2017
- "PATCH",
2018
- "DELETE"
2019
- ];
2020
- new Set(
2021
- gn
2022
- );
2023
- var Rr = [
2024
- "GET",
2025
- ...gn
2026
- ];
2027
- new Set(Rr);
2028
- var Ne = p.createContext(null);
2029
- Ne.displayName = "DataRouter";
2030
- var st = p.createContext(null);
2031
- st.displayName = "DataRouterState";
2032
- var vn = p.createContext({
2033
- isTransitioning: !1
2034
- });
2035
- vn.displayName = "ViewTransition";
2036
- var Sr = p.createContext(
2037
- /* @__PURE__ */ new Map()
2038
- );
2039
- Sr.displayName = "Fetchers";
2040
- var Lr = p.createContext(null);
2041
- Lr.displayName = "Await";
2042
- var me = p.createContext(
2043
- null
2044
- );
2045
- me.displayName = "Navigation";
2046
- var wt = p.createContext(
2047
- null
2048
- );
2049
- wt.displayName = "Location";
2050
- var _e = p.createContext({
2051
- outlet: null,
2052
- matches: [],
2053
- isDataRoute: !1
2054
- });
2055
- _e.displayName = "Route";
2056
- var Et = p.createContext(null);
2057
- Et.displayName = "RouteError";
2058
- function jr(e, { relative: t } = {}) {
2059
- ne(
2060
- at(),
2061
- // TODO: This error is probably because they somehow have 2 versions of the
2062
- // router loaded. We can help them understand how to avoid that.
2063
- "useHref() may be used only in the context of a <Router> component."
2064
- );
2065
- let { basename: r, navigator: a } = p.useContext(me), { hash: s, pathname: i, search: f } = qe(e, { relative: t }), h = i;
2066
- return r !== "/" && (h = i === "/" ? r : he([r, i])), a.createHref({ pathname: h, search: f, hash: s });
2067
- }
2068
- function at() {
2069
- return p.useContext(wt) != null;
2070
- }
2071
- function xe() {
2072
- return ne(
2073
- at(),
2074
- // TODO: This error is probably because they somehow have 2 versions of the
2075
- // router loaded. We can help them understand how to avoid that.
2076
- "useLocation() may be used only in the context of a <Router> component."
2077
- ), p.useContext(wt).location;
2078
- }
2079
- var yn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
2080
- function wn(e) {
2081
- p.useContext(me).static || p.useLayoutEffect(e);
2082
- }
2083
- function Tr() {
2084
- let { isDataRoute: e } = p.useContext(_e);
2085
- return e ? qr() : $r();
2086
- }
2087
- function $r() {
2088
- ne(
2089
- at(),
2090
- // TODO: This error is probably because they somehow have 2 versions of the
2091
- // router loaded. We can help them understand how to avoid that.
2092
- "useNavigate() may be used only in the context of a <Router> component."
2093
- );
2094
- let e = p.useContext(Ne), { basename: t, navigator: r } = p.useContext(me), { matches: a } = p.useContext(_e), { pathname: s } = xe(), i = JSON.stringify(mn(a)), f = p.useRef(!1);
2095
- return wn(() => {
2096
- f.current = !0;
2097
- }), p.useCallback(
2098
- (l, c = {}) => {
2099
- if (pe(f.current, yn), !f.current) return;
2100
- if (typeof l == "number") {
2101
- r.go(l);
2102
- return;
2103
- }
2104
- let _ = _n(
2105
- l,
2106
- JSON.parse(i),
2107
- s,
2108
- c.relative === "path"
2109
- );
2110
- e == null && t !== "/" && (_.pathname = _.pathname === "/" ? t : he([t, _.pathname])), (c.replace ? r.replace : r.push)(
2111
- _,
2112
- c.state,
2113
- c
2114
- );
2115
- },
2116
- [
2117
- t,
2118
- r,
2119
- i,
2120
- s,
2121
- e
2122
- ]
2123
- );
2124
- }
2125
- p.createContext(null);
2126
- function qe(e, { relative: t } = {}) {
2127
- let { matches: r } = p.useContext(_e), { pathname: a } = xe(), s = JSON.stringify(mn(r));
2128
- return p.useMemo(
2129
- () => _n(
2130
- e,
2131
- JSON.parse(s),
2132
- a,
2133
- t === "path"
2134
- ),
2135
- [e, s, a, t]
2136
- );
2137
- }
2138
- function Mr(e, t, r, a) {
2139
- ne(
2140
- at(),
2141
- // TODO: This error is probably because they somehow have 2 versions of the
2142
- // router loaded. We can help them understand how to avoid that.
2143
- "useRoutes() may be used only in the context of a <Router> component."
2144
- );
2145
- let { navigator: s } = p.useContext(me), { matches: i } = p.useContext(_e), f = i[i.length - 1], h = f ? f.params : {}, l = f ? f.pathname : "/", c = f ? f.pathnameBase : "/", _ = f && f.route;
2146
- {
2147
- let y = _ && _.path || "";
2148
- En(
2149
- l,
2150
- !_ || y.endsWith("*") || y.endsWith("*?"),
2151
- `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2152
-
2153
- Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" : `${y}/*`}">.`
2154
- );
2155
- }
2156
- let w = xe(), g;
2157
- g = w;
2158
- let x = g.pathname || "/", v = x;
2159
- if (c !== "/") {
2160
- let y = c.replace(/^\//, "").split("/");
2161
- v = "/" + x.replace(/^\//, "").split("/").slice(y.length).join("/");
2162
- }
2163
- let b = fn(e, { pathname: v });
2164
- return pe(
2165
- _ || b != null,
2166
- `No routes matched location "${g.pathname}${g.search}${g.hash}" `
2167
- ), pe(
2168
- b == null || b[b.length - 1].route.element !== void 0 || b[b.length - 1].route.Component !== void 0 || b[b.length - 1].route.lazy !== void 0,
2169
- `Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
2170
- ), Pr(
2171
- b && b.map(
2172
- (y) => Object.assign({}, y, {
2173
- params: Object.assign({}, h, y.params),
2174
- pathname: he([
2175
- c,
2176
- // Re-encode pathnames that were decoded inside matchRoutes
2177
- s.encodeLocation ? s.encodeLocation(y.pathname).pathname : y.pathname
2178
- ]),
2179
- pathnameBase: y.pathnameBase === "/" ? c : he([
2180
- c,
2181
- // Re-encode pathnames that were decoded inside matchRoutes
2182
- s.encodeLocation ? s.encodeLocation(y.pathnameBase).pathname : y.pathnameBase
2183
- ])
2184
- })
2185
- ),
2186
- i,
2187
- r,
2188
- a
2189
- );
2190
- }
2191
- function Nr() {
2192
- let e = Hr(), t = kr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", s = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, f = null;
2193
- return console.error(
2194
- "Error handled by React Router default ErrorBoundary:",
2195
- e
2196
- ), f = /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ p.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ p.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ p.createElement(p.Fragment, null, /* @__PURE__ */ p.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ p.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ p.createElement("pre", { style: s }, r) : null, f);
2197
- }
2198
- var Ir = /* @__PURE__ */ p.createElement(Nr, null), Ar = class extends p.Component {
2199
- constructor(e) {
2200
- super(e), this.state = {
2201
- location: e.location,
2202
- revalidation: e.revalidation,
2203
- error: e.error
2204
- };
2205
- }
2206
- static getDerivedStateFromError(e) {
2207
- return { error: e };
2208
- }
2209
- static getDerivedStateFromProps(e, t) {
2210
- return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
2211
- error: e.error,
2212
- location: e.location,
2213
- revalidation: e.revalidation
2214
- } : {
2215
- error: e.error !== void 0 ? e.error : t.error,
2216
- location: t.location,
2217
- revalidation: e.revalidation || t.revalidation
2218
- };
2219
- }
2220
- componentDidCatch(e, t) {
2221
- console.error(
2222
- "React Router caught the following error during render",
2223
- e,
2224
- t
2225
- );
2226
- }
2227
- render() {
2228
- return this.state.error !== void 0 ? /* @__PURE__ */ p.createElement(_e.Provider, { value: this.props.routeContext }, /* @__PURE__ */ p.createElement(
2229
- Et.Provider,
2230
- {
2231
- value: this.state.error,
2232
- children: this.props.component
2233
- }
2234
- )) : this.props.children;
2235
- }
2236
- };
2237
- function Or({ routeContext: e, match: t, children: r }) {
2238
- let a = p.useContext(Ne);
2239
- return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(_e.Provider, { value: e }, r);
2240
- }
2241
- function Pr(e, t = [], r = null, a = null) {
2242
- if (e == null) {
2243
- if (!r)
2244
- return null;
2245
- if (r.errors)
2246
- e = r.matches;
2247
- else if (t.length === 0 && !r.initialized && r.matches.length > 0)
2248
- e = r.matches;
2249
- else
2250
- return null;
2251
- }
2252
- let s = e, i = r == null ? void 0 : r.errors;
2253
- if (i != null) {
2254
- let l = s.findIndex(
2255
- (c) => c.route.id && (i == null ? void 0 : i[c.route.id]) !== void 0
2256
- );
2257
- ne(
2258
- l >= 0,
2259
- `Could not find a matching route for errors on route IDs: ${Object.keys(
2260
- i
2261
- ).join(",")}`
2262
- ), s = s.slice(
2263
- 0,
2264
- Math.min(s.length, l + 1)
2265
- );
2266
- }
2267
- let f = !1, h = -1;
2268
- if (r)
2269
- for (let l = 0; l < s.length; l++) {
2270
- let c = s[l];
2271
- if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (h = l), c.route.id) {
2272
- let { loaderData: _, errors: w } = r, g = c.route.loader && !_.hasOwnProperty(c.route.id) && (!w || w[c.route.id] === void 0);
2273
- if (c.route.lazy || g) {
2274
- f = !0, h >= 0 ? s = s.slice(0, h + 1) : s = [s[0]];
2275
- break;
2276
- }
2277
- }
2278
- }
2279
- return s.reduceRight((l, c, _) => {
2280
- let w, g = !1, x = null, v = null;
2281
- r && (w = i && c.route.id ? i[c.route.id] : void 0, x = c.route.errorElement || Ir, f && (h < 0 && _ === 0 ? (En(
2282
- "route-fallback",
2283
- !1,
2284
- "No `HydrateFallback` element provided to render during initial hydration"
2285
- ), g = !0, v = null) : h === _ && (g = !0, v = c.route.hydrateFallbackElement || null)));
2286
- let b = t.concat(s.slice(0, _ + 1)), N = () => {
2287
- let y;
2288
- return w ? y = x : g ? y = v : c.route.Component ? y = /* @__PURE__ */ p.createElement(c.route.Component, null) : c.route.element ? y = c.route.element : y = l, /* @__PURE__ */ p.createElement(
2289
- Or,
2290
- {
2291
- match: c,
2292
- routeContext: {
2293
- outlet: l,
2294
- matches: b,
2295
- isDataRoute: r != null
2296
- },
2297
- children: y
2298
- }
2299
- );
2300
- };
2301
- return r && (c.route.ErrorBoundary || c.route.errorElement || _ === 0) ? /* @__PURE__ */ p.createElement(
2302
- Ar,
2303
- {
2304
- location: r.location,
2305
- revalidation: r.revalidation,
2306
- component: x,
2307
- error: w,
2308
- children: N(),
2309
- routeContext: { outlet: null, matches: b, isDataRoute: !0 }
2310
- }
2311
- ) : N();
2312
- }, null);
2313
- }
2314
- function bt(e) {
2315
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2316
- }
2317
- function zr(e) {
2318
- let t = p.useContext(Ne);
2319
- return ne(t, bt(e)), t;
2320
- }
2321
- function Dr(e) {
2322
- let t = p.useContext(st);
2323
- return ne(t, bt(e)), t;
2324
- }
2325
- function Br(e) {
2326
- let t = p.useContext(_e);
2327
- return ne(t, bt(e)), t;
2328
- }
2329
- function xt(e) {
2330
- let t = Br(e), r = t.matches[t.matches.length - 1];
2331
- return ne(
2332
- r.route.id,
2333
- `${e} can only be used on routes that contain a unique "id"`
2334
- ), r.route.id;
2335
- }
2336
- function Fr() {
2337
- return xt(
2338
- "useRouteId"
2339
- /* UseRouteId */
2340
- );
2341
- }
2342
- function Hr() {
2343
- var a;
2344
- let e = p.useContext(Et), t = Dr(
2345
- "useRouteError"
2346
- /* UseRouteError */
2347
- ), r = xt(
2348
- "useRouteError"
2349
- /* UseRouteError */
2350
- );
2351
- return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[r];
2352
- }
2353
- function qr() {
2354
- let { router: e } = zr(
2355
- "useNavigate"
2356
- /* UseNavigateStable */
2357
- ), t = xt(
2358
- "useNavigate"
2359
- /* UseNavigateStable */
2360
- ), r = p.useRef(!1);
2361
- return wn(() => {
2362
- r.current = !0;
2363
- }), p.useCallback(
2364
- async (s, i = {}) => {
2365
- pe(r.current, yn), r.current && (typeof s == "number" ? e.navigate(s) : await e.navigate(s, { fromRouteId: t, ...i }));
2366
- },
2367
- [e, t]
2368
- );
2369
- }
2370
- var Xt = {};
2371
- function En(e, t, r) {
2372
- !t && !Xt[e] && (Xt[e] = !0, pe(!1, r));
2373
- }
2374
- p.memo(Ur);
2375
- function Ur({
2376
- routes: e,
2377
- future: t,
2378
- state: r
2379
- }) {
2380
- return Mr(e, void 0, r, t);
2381
- }
2382
- var nt = "get", rt = "application/x-www-form-urlencoded";
2383
- function it(e) {
2384
- return e != null && typeof e.tagName == "string";
2385
- }
2386
- function Vr(e) {
2387
- return it(e) && e.tagName.toLowerCase() === "button";
2388
- }
2389
- function Yr(e) {
2390
- return it(e) && e.tagName.toLowerCase() === "form";
2391
- }
2392
- function Wr(e) {
2393
- return it(e) && e.tagName.toLowerCase() === "input";
2394
- }
2395
- function Xr(e) {
2396
- return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
2397
- }
2398
- function Gr(e, t) {
2399
- return e.button === 0 && // Ignore everything but left clicks
2400
- (!t || t === "_self") && // Let browser handle "target=_blank" etc.
2401
- !Xr(e);
2402
- }
2403
- var Ze = null;
2404
- function Kr() {
2405
- if (Ze === null)
2406
- try {
2407
- new FormData(
2408
- document.createElement("form"),
2409
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
2410
- 0
2411
- ), Ze = !1;
2412
- } catch {
2413
- Ze = !0;
2414
- }
2415
- return Ze;
2416
- }
2417
- var Qr = /* @__PURE__ */ new Set([
2418
- "application/x-www-form-urlencoded",
2419
- "multipart/form-data",
2420
- "text/plain"
2421
- ]);
2422
- function ft(e) {
2423
- return e != null && !Qr.has(e) ? (pe(
2424
- !1,
2425
- `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${rt}"`
2426
- ), null) : e;
2427
- }
2428
- function Zr(e, t) {
2429
- let r, a, s, i, f;
2430
- if (Yr(e)) {
2431
- let h = e.getAttribute("action");
2432
- a = h ? ye(h, t) : null, r = e.getAttribute("method") || nt, s = ft(e.getAttribute("enctype")) || rt, i = new FormData(e);
2433
- } else if (Vr(e) || Wr(e) && (e.type === "submit" || e.type === "image")) {
2434
- let h = e.form;
2435
- if (h == null)
2436
- throw new Error(
2437
- 'Cannot submit a <button> or <input type="submit"> without a <form>'
2438
- );
2439
- let l = e.getAttribute("formaction") || h.getAttribute("action");
2440
- if (a = l ? ye(l, t) : null, r = e.getAttribute("formmethod") || h.getAttribute("method") || nt, s = ft(e.getAttribute("formenctype")) || ft(h.getAttribute("enctype")) || rt, i = new FormData(h, e), !Kr()) {
2441
- let { name: c, type: _, value: w } = e;
2442
- if (_ === "image") {
2443
- let g = c ? `${c}.` : "";
2444
- i.append(`${g}x`, "0"), i.append(`${g}y`, "0");
2445
- } else c && i.append(c, w);
2446
- }
2447
- } else {
2448
- if (it(e))
2449
- throw new Error(
2450
- 'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
2451
- );
2452
- r = nt, a = null, s = rt, f = e;
2453
- }
2454
- return i && s === "text/plain" && (f = i, i = void 0), { action: a, method: r.toLowerCase(), encType: s, formData: i, body: f };
2455
- }
2456
- function Ct(e, t) {
2457
- if (e === !1 || e === null || typeof e > "u")
2458
- throw new Error(t);
2459
- }
2460
- async function Jr(e, t) {
2461
- if (e.id in t)
2462
- return t[e.id];
2463
- try {
2464
- let r = await import(
2465
- /* @vite-ignore */
2466
- /* webpackIgnore: true */
2467
- e.module
2468
- );
2469
- return t[e.id] = r, r;
2470
- } catch (r) {
2471
- return console.error(
2472
- `Error loading route module \`${e.module}\`, reloading page...`
2473
- ), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
2474
- });
2475
- }
2476
- }
2477
- function eo(e) {
2478
- return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
2479
- }
2480
- async function to(e, t, r) {
2481
- let a = await Promise.all(
2482
- e.map(async (s) => {
2483
- let i = t.routes[s.route.id];
2484
- if (i) {
2485
- let f = await Jr(i, r);
2486
- return f.links ? f.links() : [];
2487
- }
2488
- return [];
2489
- })
2490
- );
2491
- return so(
2492
- a.flat(1).filter(eo).filter((s) => s.rel === "stylesheet" || s.rel === "preload").map(
2493
- (s) => s.rel === "stylesheet" ? { ...s, rel: "prefetch", as: "style" } : { ...s, rel: "prefetch" }
2494
- )
2495
- );
2496
- }
2497
- function Gt(e, t, r, a, s, i) {
2498
- let f = (l, c) => r[c] ? l.route.id !== r[c].route.id : !0, h = (l, c) => {
2499
- var _;
2500
- return (
2501
- // param change, /users/123 -> /users/456
2502
- r[c].pathname !== l.pathname || // splat param changed, which is not present in match.path
2503
- // e.g. /files/images/avatar.jpg -> files/finances.xls
2504
- ((_ = r[c].route.path) == null ? void 0 : _.endsWith("*")) && r[c].params["*"] !== l.params["*"]
2505
- );
2506
- };
2507
- return i === "assets" ? t.filter(
2508
- (l, c) => f(l, c) || h(l, c)
2509
- ) : i === "data" ? t.filter((l, c) => {
2510
- var w;
2511
- let _ = a.routes[l.route.id];
2512
- if (!_ || !_.hasLoader)
2513
- return !1;
2514
- if (f(l, c) || h(l, c))
2515
- return !0;
2516
- if (l.route.shouldRevalidate) {
2517
- let g = l.route.shouldRevalidate({
2518
- currentUrl: new URL(
2519
- s.pathname + s.search + s.hash,
2520
- window.origin
2521
- ),
2522
- currentParams: ((w = r[0]) == null ? void 0 : w.params) || {},
2523
- nextUrl: new URL(e, window.origin),
2524
- nextParams: l.params,
2525
- defaultShouldRevalidate: !0
2526
- });
2527
- if (typeof g == "boolean")
2528
- return g;
2529
- }
2530
- return !0;
2531
- }) : [];
2532
- }
2533
- function no(e, t, { includeHydrateFallback: r } = {}) {
2534
- return ro(
2535
- e.map((a) => {
2536
- let s = t.routes[a.route.id];
2537
- if (!s) return [];
2538
- let i = [s.module];
2539
- return s.clientActionModule && (i = i.concat(s.clientActionModule)), s.clientLoaderModule && (i = i.concat(s.clientLoaderModule)), r && s.hydrateFallbackModule && (i = i.concat(s.hydrateFallbackModule)), s.imports && (i = i.concat(s.imports)), i;
2540
- }).flat(1)
2541
- );
2542
- }
2543
- function ro(e) {
2544
- return [...new Set(e)];
2545
- }
2546
- function oo(e) {
2547
- let t = {}, r = Object.keys(e).sort();
2548
- for (let a of r)
2549
- t[a] = e[a];
2550
- return t;
2551
- }
2552
- function so(e, t) {
2553
- let r = /* @__PURE__ */ new Set();
2554
- return new Set(t), e.reduce((a, s) => {
2555
- let i = JSON.stringify(oo(s));
2556
- return r.has(i) || (r.add(i), a.push({ key: i, link: s })), a;
2557
- }, []);
2558
- }
2559
- Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
2560
- var ao = /* @__PURE__ */ new Set([100, 101, 204, 205]);
2561
- function io(e, t) {
2562
- let r = typeof e == "string" ? new URL(
2563
- e,
2564
- // This can be called during the SSR flow via PrefetchPageLinksImpl so
2565
- // don't assume window is available
2566
- typeof window > "u" ? "server://singlefetch/" : window.location.origin
2567
- ) : e;
2568
- return r.pathname === "/" ? r.pathname = "_root.data" : t && ye(r.pathname, t) === "/" ? r.pathname = `${t.replace(/\/$/, "")}/_root.data` : r.pathname = `${r.pathname.replace(/\/$/, "")}.data`, r;
2569
- }
2570
- function bn() {
2571
- let e = p.useContext(Ne);
2572
- return Ct(
2573
- e,
2574
- "You must render this element inside a <DataRouterContext.Provider> element"
2575
- ), e;
2576
- }
2577
- function lo() {
2578
- let e = p.useContext(st);
2579
- return Ct(
2580
- e,
2581
- "You must render this element inside a <DataRouterStateContext.Provider> element"
2582
- ), e;
2583
- }
2584
- var kt = p.createContext(void 0);
2585
- kt.displayName = "FrameworkContext";
2586
- function xn() {
2587
- let e = p.useContext(kt);
2588
- return Ct(
2589
- e,
2590
- "You must render this element inside a <HydratedRouter> element"
2591
- ), e;
2592
- }
2593
- function co(e, t) {
2594
- let r = p.useContext(kt), [a, s] = p.useState(!1), [i, f] = p.useState(!1), { onFocus: h, onBlur: l, onMouseEnter: c, onMouseLeave: _, onTouchStart: w } = t, g = p.useRef(null);
2595
- p.useEffect(() => {
2596
- if (e === "render" && f(!0), e === "viewport") {
2597
- let b = (y) => {
2598
- y.forEach((S) => {
2599
- f(S.isIntersecting);
2600
- });
2601
- }, N = new IntersectionObserver(b, { threshold: 0.5 });
2602
- return g.current && N.observe(g.current), () => {
2603
- N.disconnect();
2604
- };
2605
- }
2606
- }, [e]), p.useEffect(() => {
2607
- if (a) {
2608
- let b = setTimeout(() => {
2609
- f(!0);
2610
- }, 100);
2611
- return () => {
2612
- clearTimeout(b);
2613
- };
2614
- }
2615
- }, [a]);
2616
- let x = () => {
2617
- s(!0);
2618
- }, v = () => {
2619
- s(!1), f(!1);
2620
- };
2621
- return r ? e !== "intent" ? [i, g, {}] : [
2622
- i,
2623
- g,
2624
- {
2625
- onFocus: ze(h, x),
2626
- onBlur: ze(l, v),
2627
- onMouseEnter: ze(c, x),
2628
- onMouseLeave: ze(_, v),
2629
- onTouchStart: ze(w, x)
2630
- }
2631
- ] : [!1, g, {}];
2632
- }
2633
- function ze(e, t) {
2634
- return (r) => {
2635
- e && e(r), r.defaultPrevented || t(r);
2636
- };
2637
- }
2638
- function uo({
2639
- page: e,
2640
- ...t
2641
- }) {
2642
- let { router: r } = bn(), a = p.useMemo(
2643
- () => fn(r.routes, e, r.basename),
2644
- [r.routes, e, r.basename]
2645
- );
2646
- return a ? /* @__PURE__ */ p.createElement(ho, { page: e, matches: a, ...t }) : null;
2647
- }
2648
- function fo(e) {
2649
- let { manifest: t, routeModules: r } = xn(), [a, s] = p.useState([]);
2650
- return p.useEffect(() => {
2651
- let i = !1;
2652
- return to(e, t, r).then(
2653
- (f) => {
2654
- i || s(f);
2655
- }
2656
- ), () => {
2657
- i = !0;
2658
- };
2659
- }, [e, t, r]), a;
2660
- }
2661
- function ho({
2662
- page: e,
2663
- matches: t,
2664
- ...r
2665
- }) {
2666
- let a = xe(), { manifest: s, routeModules: i } = xn(), { basename: f } = bn(), { loaderData: h, matches: l } = lo(), c = p.useMemo(
2667
- () => Gt(
2668
- e,
2669
- t,
2670
- l,
2671
- s,
2672
- a,
2673
- "data"
2674
- ),
2675
- [e, t, l, s, a]
2676
- ), _ = p.useMemo(
2677
- () => Gt(
2678
- e,
2679
- t,
2680
- l,
2681
- s,
2682
- a,
2683
- "assets"
2684
- ),
2685
- [e, t, l, s, a]
2686
- ), w = p.useMemo(() => {
2687
- if (e === a.pathname + a.search + a.hash)
2688
- return [];
2689
- let v = /* @__PURE__ */ new Set(), b = !1;
2690
- if (t.forEach((y) => {
2691
- var L;
2692
- let S = s.routes[y.route.id];
2693
- !S || !S.hasLoader || (!c.some((j) => j.route.id === y.route.id) && y.route.id in h && ((L = i[y.route.id]) != null && L.shouldRevalidate) || S.hasClientLoader ? b = !0 : v.add(y.route.id));
2694
- }), v.size === 0)
2695
- return [];
2696
- let N = io(e, f);
2697
- return b && v.size > 0 && N.searchParams.set(
2698
- "_routes",
2699
- t.filter((y) => v.has(y.route.id)).map((y) => y.route.id).join(",")
2700
- ), [N.pathname + N.search];
2701
- }, [
2702
- f,
2703
- h,
2704
- a,
2705
- s,
2706
- c,
2707
- t,
2708
- e,
2709
- i
2710
- ]), g = p.useMemo(
2711
- () => no(_, s),
2712
- [_, s]
2713
- ), x = fo(_);
2714
- return /* @__PURE__ */ p.createElement(p.Fragment, null, w.map((v) => /* @__PURE__ */ p.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...r })), g.map((v) => /* @__PURE__ */ p.createElement("link", { key: v, rel: "modulepreload", href: v, ...r })), x.map(({ key: v, link: b }) => (
2715
- // these don't spread `linkProps` because they are full link descriptors
2716
- // already with their own props
2717
- /* @__PURE__ */ p.createElement("link", { key: v, ...b })
2718
- )));
2719
- }
2720
- function po(...e) {
2721
- return (t) => {
2722
- e.forEach((r) => {
2723
- typeof r == "function" ? r(t) : r != null && (r.current = t);
2724
- });
2725
- };
2726
- }
2727
- var Cn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
2728
- try {
2729
- Cn && (window.__reactRouterVersion = "7.6.1");
2730
- } catch {
2731
- }
2732
- var kn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Be = p.forwardRef(
2733
- function({
2734
- onClick: t,
2735
- discover: r = "render",
2736
- prefetch: a = "none",
2737
- relative: s,
2738
- reloadDocument: i,
2739
- replace: f,
2740
- state: h,
2741
- target: l,
2742
- to: c,
2743
- preventScrollReset: _,
2744
- viewTransition: w,
2745
- ...g
2746
- }, x) {
2747
- let { basename: v } = p.useContext(me), b = typeof c == "string" && kn.test(c), N, y = !1;
2748
- if (typeof c == "string" && b && (N = c, Cn))
2749
- try {
2750
- let Y = new URL(window.location.href), F = c.startsWith("//") ? new URL(Y.protocol + c) : new URL(c), D = ye(F.pathname, v);
2751
- F.origin === Y.origin && D != null ? c = D + F.search + F.hash : y = !0;
2752
- } catch {
2753
- pe(
2754
- !1,
2755
- `<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
2756
- );
2757
- }
2758
- let S = jr(c, { relative: s }), [L, j, T] = co(
2759
- a,
2760
- g
2761
- ), X = vo(c, {
2762
- replace: f,
2763
- state: h,
2764
- target: l,
2765
- preventScrollReset: _,
2766
- relative: s,
2767
- viewTransition: w
2768
- });
2769
- function G(Y) {
2770
- t && t(Y), Y.defaultPrevented || X(Y);
2771
- }
2772
- let z = (
2773
- // eslint-disable-next-line jsx-a11y/anchor-has-content
2774
- /* @__PURE__ */ p.createElement(
2775
- "a",
2776
- {
2777
- ...g,
2778
- ...T,
2779
- href: N || S,
2780
- onClick: y || i ? t : G,
2781
- ref: po(x, j),
2782
- target: l,
2783
- "data-discover": !b && r === "render" ? "true" : void 0
2784
- }
2785
- )
2786
- );
2787
- return L && !b ? /* @__PURE__ */ p.createElement(p.Fragment, null, z, /* @__PURE__ */ p.createElement(uo, { page: S })) : z;
2788
- }
2789
- );
2790
- Be.displayName = "Link";
2791
- var mo = p.forwardRef(
2792
- function({
2793
- "aria-current": t = "page",
2794
- caseSensitive: r = !1,
2795
- className: a = "",
2796
- end: s = !1,
2797
- style: i,
2798
- to: f,
2799
- viewTransition: h,
2800
- children: l,
2801
- ...c
2802
- }, _) {
2803
- let w = qe(f, { relative: c.relative }), g = xe(), x = p.useContext(st), { navigator: v, basename: b } = p.useContext(me), N = x != null && // Conditional usage is OK here because the usage of a data router is static
2804
- // eslint-disable-next-line react-hooks/rules-of-hooks
2805
- xo(w) && h === !0, y = v.encodeLocation ? v.encodeLocation(w).pathname : w.pathname, S = g.pathname, L = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
2806
- r || (S = S.toLowerCase(), L = L ? L.toLowerCase() : null, y = y.toLowerCase()), L && b && (L = ye(L, b) || L);
2807
- const j = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
2808
- let T = S === y || !s && S.startsWith(y) && S.charAt(j) === "/", X = L != null && (L === y || !s && L.startsWith(y) && L.charAt(y.length) === "/"), G = {
2809
- isActive: T,
2810
- isPending: X,
2811
- isTransitioning: N
2812
- }, z = T ? t : void 0, Y;
2813
- typeof a == "function" ? Y = a(G) : Y = [
2814
- a,
2815
- T ? "active" : null,
2816
- X ? "pending" : null,
2817
- N ? "transitioning" : null
2818
- ].filter(Boolean).join(" ");
2819
- let F = typeof i == "function" ? i(G) : i;
2820
- return /* @__PURE__ */ p.createElement(
2821
- Be,
2822
- {
2823
- ...c,
2824
- "aria-current": z,
2825
- className: Y,
2826
- ref: _,
2827
- style: F,
2828
- to: f,
2829
- viewTransition: h
2830
- },
2831
- typeof l == "function" ? l(G) : l
2832
- );
2833
- }
2834
- );
2835
- mo.displayName = "NavLink";
2836
- var _o = p.forwardRef(
2837
- ({
2838
- discover: e = "render",
2839
- fetcherKey: t,
2840
- navigate: r,
2841
- reloadDocument: a,
2842
- replace: s,
2843
- state: i,
2844
- method: f = nt,
2845
- action: h,
2846
- onSubmit: l,
2847
- relative: c,
2848
- preventScrollReset: _,
2849
- viewTransition: w,
2850
- ...g
2851
- }, x) => {
2852
- let v = Eo(), b = bo(h, { relative: c }), N = f.toLowerCase() === "get" ? "get" : "post", y = typeof h == "string" && kn.test(h), S = (L) => {
2853
- if (l && l(L), L.defaultPrevented) return;
2854
- L.preventDefault();
2855
- let j = L.nativeEvent.submitter, T = (j == null ? void 0 : j.getAttribute("formmethod")) || f;
2856
- v(j || L.currentTarget, {
2857
- fetcherKey: t,
2858
- method: T,
2859
- navigate: r,
2860
- replace: s,
2861
- state: i,
2862
- relative: c,
2863
- preventScrollReset: _,
2864
- viewTransition: w
2865
- });
2866
- };
2867
- return /* @__PURE__ */ p.createElement(
2868
- "form",
2869
- {
2870
- ref: x,
2871
- method: N,
2872
- action: b,
2873
- onSubmit: a ? l : S,
2874
- ...g,
2875
- "data-discover": !y && e === "render" ? "true" : void 0
2876
- }
2877
- );
2878
- }
2879
- );
2880
- _o.displayName = "Form";
2881
- function go(e) {
2882
- return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
2883
- }
2884
- function Rn(e) {
2885
- let t = p.useContext(Ne);
2886
- return ne(t, go(e)), t;
2887
- }
2888
- function vo(e, {
2889
- target: t,
2890
- replace: r,
2891
- state: a,
2892
- preventScrollReset: s,
2893
- relative: i,
2894
- viewTransition: f
2895
- } = {}) {
2896
- let h = Tr(), l = xe(), c = qe(e, { relative: i });
2897
- return p.useCallback(
2898
- (_) => {
2899
- if (Gr(_, t)) {
2900
- _.preventDefault();
2901
- let w = r !== void 0 ? r : vt(l) === vt(c);
2902
- h(e, {
2903
- replace: w,
2904
- state: a,
2905
- preventScrollReset: s,
2906
- relative: i,
2907
- viewTransition: f
2908
- });
2909
- }
2910
- },
2911
- [
2912
- l,
2913
- h,
2914
- c,
2915
- r,
2916
- a,
2917
- t,
2918
- e,
2919
- s,
2920
- i,
2921
- f
2922
- ]
2923
- );
2924
- }
2925
- var yo = 0, wo = () => `__${String(++yo)}__`;
2926
- function Eo() {
2927
- let { router: e } = Rn(
2928
- "useSubmit"
2929
- /* UseSubmit */
2930
- ), { basename: t } = p.useContext(me), r = Fr();
2931
- return p.useCallback(
2932
- async (a, s = {}) => {
2933
- let { action: i, method: f, encType: h, formData: l, body: c } = Zr(
2934
- a,
2935
- t
2936
- );
2937
- if (s.navigate === !1) {
2938
- let _ = s.fetcherKey || wo();
2939
- await e.fetch(_, r, s.action || i, {
2940
- preventScrollReset: s.preventScrollReset,
2941
- formData: l,
2942
- body: c,
2943
- formMethod: s.method || f,
2944
- formEncType: s.encType || h,
2945
- flushSync: s.flushSync
2946
- });
2947
- } else
2948
- await e.navigate(s.action || i, {
2949
- preventScrollReset: s.preventScrollReset,
2950
- formData: l,
2951
- body: c,
2952
- formMethod: s.method || f,
2953
- formEncType: s.encType || h,
2954
- replace: s.replace,
2955
- state: s.state,
2956
- fromRouteId: r,
2957
- flushSync: s.flushSync,
2958
- viewTransition: s.viewTransition
2959
- });
2960
- },
2961
- [e, t, r]
2962
- );
2963
- }
2964
- function bo(e, { relative: t } = {}) {
2965
- let { basename: r } = p.useContext(me), a = p.useContext(_e);
2966
- ne(a, "useFormAction must be used inside a RouteContext");
2967
- let [s] = a.matches.slice(-1), i = { ...qe(e || ".", { relative: t }) }, f = xe();
2968
- if (e == null) {
2969
- i.search = f.search;
2970
- let h = new URLSearchParams(i.search), l = h.getAll("index");
2971
- if (l.some((_) => _ === "")) {
2972
- h.delete("index"), l.filter((w) => w).forEach((w) => h.append("index", w));
2973
- let _ = h.toString();
2974
- i.search = _ ? `?${_}` : "";
2975
- }
2976
- }
2977
- return (!e || e === ".") && s.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : he([r, i.pathname])), vt(i);
2978
- }
2979
- function xo(e, t = {}) {
2980
- let r = p.useContext(vn);
2981
- ne(
2982
- r != null,
2983
- "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
2984
- );
2985
- let { basename: a } = Rn(
2986
- "useViewTransitionState"
2987
- /* useViewTransitionState */
2988
- ), s = qe(e, { relative: t.relative });
2989
- if (!r.isTransitioning)
2990
- return !1;
2991
- let i = ye(r.currentLocation.pathname, a) || r.currentLocation.pathname, f = ye(r.nextLocation.pathname, a) || r.nextLocation.pathname;
2992
- return ot(s.pathname, f) != null || ot(s.pathname, i) != null;
2993
- }
2994
- [
2995
- ...ao
2996
- ];
2997
- const Co = "_button_w916g_161", ko = "_noMargin_w916g_189", Ro = "_regular_w916g_199", So = "_small_w916g_202", Lo = "_primary_w916g_213", jo = "_noHover_w916g_217", To = "_secondary_w916g_233", $o = "_disabled_w916g_252", Mo = "_hasErrors_w916g_272", No = "_rounded_w916g_278", Io = "_hasArrowLeft_w916g_282", Ao = "_pushprev_w916g_1", Oo = "_hasArrowRight_w916g_320", Po = "_pushnext_w916g_1", ce = {
2998
- button: Co,
2999
- noMargin: ko,
3000
- regular: Ro,
3001
- small: So,
3002
- primary: Lo,
3003
- noHover: jo,
3004
- secondary: To,
3005
- disabled: $o,
3006
- hasErrors: Mo,
3007
- rounded: No,
3008
- hasArrowLeft: Io,
3009
- pushprev: Ao,
3010
- hasArrowRight: Oo,
3011
- pushnext: Po
3012
- }, Sn = ({
3013
- content: e,
3014
- color: t = "primary",
3015
- size: r = "regular",
3016
- arrow: a = "none",
3017
- disabled: s = !1,
3018
- inputType: i,
3019
- defaultChecked: f,
3020
- hasErrors: h = !1,
3021
- noHover: l = !1,
3022
- rounded: c = !1,
3023
- noMargin: _ = !1,
3024
- href: w,
3025
- children: g,
3026
- ...x
3027
- }) => {
3028
- const v = (j) => {
3029
- switch (j) {
3030
- case "left":
3031
- return ce.hasArrowLeft;
3032
- case "right":
3033
- return ce.hasArrowRight;
3034
- default:
3035
- return "";
3036
- }
3037
- }, b = i === "radio" ? f ? "primary" : "secondary" : t, N = J([
3038
- ce.button,
3039
- ce[b],
3040
- ce[r],
3041
- v(a),
3042
- l || i === "radio" ? ce.noHover : null,
3043
- c && ce.rounded,
3044
- h && ce.hasErrors,
3045
- s && ce.disabled,
3046
- _ && ce.noMargin
3047
- ]), y = {
3048
- "aria-invalid": h || void 0,
3049
- href: !s && (w != null && w.length) ? w : void 0,
3050
- className: N,
3051
- // Always include className in buttonProps for all elements
3052
- ...x
3053
- }, S = (j) => fe.Children.toArray(
3054
- Me(j)
3055
- ).map((X, G) => {
3056
- if (!fe.isValidElement(X)) return null;
3057
- const z = X, Y = z.type === Be && typeof z.props == "object" && z.props !== null && "to" in z.props;
3058
- return !s && Y ? p.cloneElement(z, {
3059
- className: N,
3060
- key: `button-${G}`,
3061
- to: z.props.to
3062
- }) : /* @__PURE__ */ p.createElement("button", { ...y, key: `button-${G}` }, e || z.props && z.props.children);
3063
- });
3064
- if (i === "button") {
3065
- const j = { ...y };
3066
- return delete j.href, /* @__PURE__ */ d.jsx(
3067
- "input",
3068
- {
3069
- ...j,
3070
- type: "button",
3071
- value: e
3072
- }
3073
- );
3074
- }
3075
- if (i === "radio") {
3076
- const j = { ...y };
3077
- return delete j.href, /* @__PURE__ */ d.jsxs("label", { className: N, children: [
3078
- /* @__PURE__ */ d.jsx(
3079
- "input",
3080
- {
3081
- ...j,
3082
- type: "radio"
3083
- }
3084
- ),
3085
- e
3086
- ] });
3087
- }
3088
- if (w != null && w.length && !s) {
3089
- const j = { ...y };
3090
- return "type" in j && delete j.type, /* @__PURE__ */ d.jsx("a", { ...j, children: e || g });
3091
- }
3092
- return fe.isValidElement(g) && g.type === Be ? /* @__PURE__ */ d.jsx(p.Fragment, { children: S(p.Children.toArray(g)) }) : /* @__PURE__ */ d.jsx("button", { ...y, children: e || g });
3093
- }, zo = "_checkBoxIcon_1kc3w_1", Do = "_showBox_1kc3w_22", Bo = "_hasErrors_1kc3w_27", Fo = "_checked_1kc3w_37", Ho = "_disabled_1kc3w_53", qo = "_checkmark_1kc3w_58", ke = {
3094
- checkBoxIcon: zo,
3095
- showBox: Do,
3096
- hasErrors: Bo,
3097
- checked: Fo,
3098
- disabled: Ho,
3099
- checkmark: qo
3100
- }, Kt = ({
3101
- size: e = "20px",
3102
- checked: t = !1,
3103
- disabled: r = !1,
3104
- showBox: a = !0,
3105
- hasErrors: s = !1,
3106
- checkmarkCharacter: i = "✔"
3107
- }) => {
3108
- const f = {
3109
- height: e,
3110
- width: e,
3111
- fontSize: e
3112
- }, h = [
3113
- ke.checkBoxIcon,
3114
- t && ke.checked,
3115
- r && ke.disabled,
3116
- a && ke.showBox,
3117
- s && ke.hasErrors
3118
- ].filter(Boolean).join(" ");
3119
- return /* @__PURE__ */ d.jsx("span", { className: h, style: f, children: /* @__PURE__ */ d.jsx("span", { "aria-hidden": !0, className: ke.checkmark, children: t ? i : "" }) });
3120
- }, we = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e", Uo = "_checkBoxInput_f1w9m_1", Vo = "_requiredSymbol_f1w9m_6", Yo = "_contentOnly_f1w9m_13", Wo = "_disabled_f1w9m_13", Xo = "_labelText_f1w9m_19", Go = "_hasErrors_f1w9m_27", Re = {
3121
- checkBoxInput: Uo,
3122
- requiredSymbol: Vo,
3123
- contentOnly: Yo,
3124
- disabled: Wo,
3125
- labelText: Xo,
3126
- hasErrors: Go
3127
- }, Ko = ({
3128
- checked: e = !1,
3129
- disabled: t = !1,
3130
- required: r = !1,
3131
- requiredGroup: a = !1,
3132
- id: s,
3133
- name: i = "",
3134
- onChange: f,
3135
- contentOnly: h = !1,
3136
- hasErrors: l = !1,
3137
- checkmarkCharacter: c = "✔",
3138
- tabIndex: _ = 0,
3139
- children: w,
3140
- "aria-controls": g,
3141
- "aria-describedby": x
3142
- }) => {
3143
- const v = [
3144
- Re.checkBoxInput,
3145
- h && Re.contentOnly,
3146
- t && Re.disabled,
3147
- l && Re.hasErrors
3148
- ].filter(Boolean).join(" "), b = {
3149
- checked: e,
3150
- disabled: t,
3151
- showBox: !h,
3152
- hasErrors: h && l,
3153
- checkmarkCharacter: c
3154
- }, N = {
3155
- id: s,
3156
- name: i,
3157
- type: "checkbox",
3158
- checked: e,
3159
- disabled: t,
3160
- required: r || a,
3161
- onChange: f,
3162
- tabIndex: _,
3163
- "aria-controls": g,
3164
- "aria-invalid": l ? "true" : void 0,
3165
- "aria-describedby": x
3166
- };
3167
- return /* @__PURE__ */ d.jsxs("label", { htmlFor: s, className: v, children: [
3168
- h ? /* @__PURE__ */ d.jsx(Kt, { ...b }) : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3169
- /* @__PURE__ */ d.jsx(Kt, { ...b }),
3170
- /* @__PURE__ */ d.jsx("input", { ...N })
3171
- ] }),
3172
- /* @__PURE__ */ d.jsxs("span", { className: Re.labelText, children: [
3173
- w,
3174
- r && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: Re.requiredSymbol })
3175
- ] })
3176
- ] });
3177
- }, Qo = "_checkBoxList_1sp8d_1", Zo = "_requiredSymbol_1sp8d_16", Qt = {
3178
- checkBoxList: Qo,
3179
- requiredSymbol: Zo
3180
- }, Jo = "_headerContainer_t2si7_1", es = "_header_t2si7_1", ts = "_bigHeader_t2si7_16", Je = {
3181
- headerContainer: Jo,
3182
- header: es,
3183
- "size-1": "_size-1_t2si7_8",
3184
- bigHeader: ts,
3185
- "size-2": "_size-2_t2si7_28",
3186
- "size-3": "_size-3_t2si7_36",
3187
- "size-4": "_size-4_t2si7_44",
3188
- "size-5": "_size-5_t2si7_52"
3189
- }, Ln = ({
3190
- id: e,
3191
- content: t,
3192
- size: r = 1,
3193
- big: a,
3194
- label: s,
3195
- htmlTag: i,
3196
- htmlFor: f,
3197
- children: h
3198
- }) => {
3199
- const l = i || `h${r}`, c = J([
3200
- Je.header,
3201
- Je[`size-${r}`],
3202
- a && Je.bigHeader
3203
- ]), _ = s != null && s.length && typeof s == "string" ? { "--label": `"${s}"` } : void 0, w = fe.createElement(
3204
- l,
3205
- {
3206
- className: c,
3207
- id: e || void 0,
3208
- htmlFor: f || void 0,
3209
- style: _
3210
- },
3211
- t != null && t.length ? t : h
3212
- );
3213
- return /* @__PURE__ */ d.jsx("div", { className: Je.headerContainer, children: w });
3214
- }, ns = ({
3215
- legend: e,
3216
- legendSize: t,
3217
- required: r = !1,
3218
- compact: a = !1,
3219
- children: s
3220
- }) => {
3221
- const i = (f) => Me(f).map((l, c) => {
3222
- var _;
3223
- return p.isValidElement(
3224
- l
3225
- ) && ((_ = l.type) == null ? void 0 : _.displayName) === "RadioButtonListItem" ? p.cloneElement(l, {
3226
- requiredGroup: r,
3227
- compact: a,
3228
- key: `checkboxListItem-${c}`
3229
- }) : l;
3230
- });
3231
- return /* @__PURE__ */ d.jsxs("fieldset", { className: Qt.checkBoxList, children: [
3232
- !!(e != null && e.length) && /* @__PURE__ */ d.jsxs("legend", { children: [
3233
- t ? /* @__PURE__ */ d.jsx(Ln, { size: t, children: e }) : e,
3234
- r && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: Qt.requiredSymbol })
3235
- ] }),
3236
- i(p.Children.toArray(s))
3237
- ] });
3238
- }, rs = "_checkBoxListItem_jnb8z_1", os = "_contentOnly_jnb8z_26", ss = "_compact_jnb8z_26", as = "_disabled_jnb8z_41", is = "_checked_jnb8z_44", Se = {
3239
- checkBoxListItem: rs,
3240
- contentOnly: os,
3241
- compact: ss,
3242
- disabled: as,
3243
- checked: is
3244
- }, ls = ({
3245
- checked: e = !1,
3246
- disabled: t = !1,
3247
- required: r = !1,
3248
- requiredGroup: a = !1,
3249
- id: s,
3250
- name: i = "",
3251
- onChange: f,
3252
- contentOnly: h = !1,
3253
- compact: l = !1,
3254
- hasErrors: c = !1,
3255
- checkmarkCharacter: _ = "✔",
3256
- "aria-controls": w,
3257
- "aria-describedby": g,
3258
- children: x
3259
- }) => {
3260
- const v = J([
3261
- Se.checkBoxListItem,
3262
- e && Se.checked,
3263
- t && Se.disabled,
3264
- l && Se.compact,
3265
- h && Se.contentOnly,
3266
- c && Se.hasErrors
3267
- ]), b = {
3268
- onChange: f ?? (() => {
3269
- }),
3270
- checked: e,
3271
- disabled: t,
3272
- required: r,
3273
- requiredGroup: a,
3274
- contentOnly: h,
3275
- hasErrors: c,
3276
- "aria-controls": w,
3277
- "aria-describedby": g,
3278
- id: s,
3279
- name: i,
3280
- checkmarkCharacter: _
3281
- };
3282
- return /* @__PURE__ */ d.jsx("div", { className: v, children: /* @__PURE__ */ d.jsx(Ko, { ...b, children: x }) });
3283
- }, cs = "_container_f8z49_1", us = {
3284
- container: cs
3285
- }, ds = ({ maxWidth: e, children: t }) => {
3286
- const r = {
3287
- "--max-width": e != null && e.length ? e : void 0
3288
- };
3289
- return /* @__PURE__ */ d.jsx("div", { className: us.container, style: r, children: t });
3290
- }, fs = "_contentBox_1ndvc_1", hs = "_link_1ndvc_8", ps = "_content_1ndvc_1", ms = "_title_1ndvc_25", _s = "_secondary_1ndvc_28", gs = "_regular_1ndvc_36", vs = "_large_1ndvc_45", Le = {
3291
- contentBox: fs,
3292
- link: hs,
3293
- default: "_default_1ndvc_21",
3294
- content: ps,
3295
- title: ms,
3296
- secondary: _s,
3297
- regular: gs,
3298
- large: vs
3299
- }, Fi = ({
3300
- title: e = null,
3301
- titleSize: t = "regular",
3302
- content: r = "",
3303
- children: a,
3304
- color: s = "default",
3305
- href: i = null
3306
- }) => {
3307
- const f = () => {
3308
- if (!e) return null;
3309
- const g = `${Le.title} ${Le[t]}`;
3310
- return /* @__PURE__ */ d.jsx("h2", { className: g, children: e });
3311
- }, h = Le[s] || "", l = i ? Le.link : "", c = `${Le.contentBox} ${h} ${l}`.trim(), _ = r != null && r.length ? r : a, w = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3312
- f(),
3313
- /* @__PURE__ */ d.jsx("div", { className: Le.content, children: _ })
3314
- ] });
3315
- return i ? /* @__PURE__ */ d.jsx("a", { href: i, className: c, children: w }) : /* @__PURE__ */ d.jsx("div", { className: c, children: w });
3316
- }, ys = "_descriptionDetails_1d1dj_1", ws = "_compact_1d1dj_7", Zt = {
3317
- descriptionDetails: ys,
3318
- compact: ws
3319
- }, Hi = ({
3320
- compact: e = !1,
3321
- titleWidth: t,
3322
- children: r
3323
- }) => /* @__PURE__ */ d.jsx(
3324
- "dd",
3325
- {
3326
- className: J([
3327
- Zt.descriptionDetails,
3328
- e && Zt.compact
3329
- ]),
3330
- style: { "--title-width": t || void 0 },
3331
- children: r
3332
- }
3333
- ), Es = "_descriptionList_w11ua_1", bs = "_compact_w11ua_13", Jt = {
3334
- descriptionList: Es,
3335
- compact: bs
3336
- }, qi = ({
3337
- compact: e = !1,
3338
- titleWidth: t,
3339
- children: r
3340
- }) => {
3341
- const a = (s) => Me(s).map((f, h) => p.isValidElement(f) ? p.cloneElement(f, {
3342
- compact: e,
3343
- titleWidth: t,
3344
- key: `descriptionListItem-${h}`
3345
- }) : f);
3346
- return fe.createElement(
3347
- "dl",
3348
- {
3349
- className: J([
3350
- Jt.descriptionList,
3351
- e && Jt.compact
3352
- ]),
3353
- style: {
3354
- "--title-width": t || void 0
3355
- }
3356
- },
3357
- a(p.Children.toArray(r))
3358
- );
3359
- }, xs = "_descriptionTerm_uuapd_1", Cs = "_compact_uuapd_8", en = {
3360
- descriptionTerm: xs,
3361
- compact: Cs
3362
- }, Ui = ({
3363
- compact: e = !1,
3364
- titleWidth: t,
3365
- children: r
3366
- }) => /* @__PURE__ */ d.jsx(
3367
- "dt",
3368
- {
3369
- className: J([
3370
- en.descriptionTerm,
3371
- e && en.compact
3372
- ]),
3373
- style: { "--title-width": t || void 0 },
3374
- children: r
3375
- }
3376
- ), ks = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e", Rs = "_dialog_1qsqp_19", Ss = "_dialogContainer_1qsqp_33", Ls = "_dialogContent_1qsqp_38", js = "_closeButton_1qsqp_45", Ts = "_isSidebar_1qsqp_60", $s = "_modalInVertical_1qsqp_1", Ms = "_noPadding_1qsqp_74", Ns = "_left_1qsqp_113", Is = "_modalInHorizontalLeft_1qsqp_1", As = "_right_1qsqp_120", Os = "_modalInHorizontalRight_1qsqp_1", Ps = "_dialogOverlay_1qsqp_128", ve = {
3377
- dialog: Rs,
3378
- dialogContainer: Ss,
3379
- dialogContent: Ls,
3380
- closeButton: js,
3381
- isSidebar: Ts,
3382
- modalInVertical: $s,
3383
- noPadding: Ms,
3384
- left: Ns,
3385
- modalInHorizontalLeft: Is,
3386
- right: As,
3387
- modalInHorizontalRight: Os,
3388
- dialogOverlay: Ps
3389
- }, Vi = ({
3390
- maxWidth: e = "none",
3391
- noPadding: t,
3392
- closeButton: r,
3393
- onClickOutside: a,
3394
- modal: s = !1,
3395
- attachTo: i,
3396
- hidden: f = !1,
3397
- children: h
3398
- }) => {
3399
- const l = p.useRef(null), c = p.useRef(null), _ = p.useCallback(
3400
- (x) => {
3401
- x && dn(x);
3402
- },
3403
- []
3404
- );
3405
- p.useEffect(() => {
3406
- const x = (b) => {
3407
- b.key === "Escape" && a && a();
3408
- }, v = (b) => {
3409
- c.current && !c.current.contains(b.target) && a();
3410
- };
3411
- return document.addEventListener("mousedown", v), document.addEventListener("keydown", x, !1), () => {
3412
- document.removeEventListener("mousedown", v), document.removeEventListener("keydown", x, !1);
3413
- };
3414
- }, [a]), p.useEffect(() => {
3415
- l.current && (l.current.close(), f || (s ? l.current.showModal() : l.current.show()));
3416
- }, [f, s]);
3417
- const w = i && J([ve.isSidebar, ve[i]]), g = {
3418
- "--max-width": e
3419
- };
3420
- return /* @__PURE__ */ d.jsx(
3421
- "dialog",
3422
- {
3423
- className: J([
3424
- ve.dialog,
3425
- w
3426
- ]),
3427
- ref: l,
3428
- children: /* @__PURE__ */ d.jsx(
3429
- "div",
3430
- {
3431
- ref: c,
3432
- className: ve.dialogContainer,
3433
- style: g,
3434
- children: /* @__PURE__ */ d.jsxs(
3435
- "div",
3436
- {
3437
- ref: _,
3438
- className: J([
3439
- ve.dialogContent,
3440
- t && ve.noPadding
3441
- ]),
3442
- children: [
3443
- r && /* @__PURE__ */ d.jsx(
3444
- "button",
3445
- {
3446
- "aria-label": "Lukk dialog",
3447
- onClick: a,
3448
- className: J([
3449
- ve.closeButton,
3450
- t && ve.noPadding
3451
- ]),
3452
- children: /* @__PURE__ */ d.jsx("img", { src: ks, alt: "" })
3453
- }
3454
- ),
3455
- /* @__PURE__ */ d.jsx("div", { "aria-live": "assertive", role: "dialog", children: h })
3456
- ]
3457
- }
3458
- )
3459
- }
3460
- )
3461
- }
3462
- );
3463
- }, zs = "_label_18de6_1", Ds = "_inline_18de6_11", Bs = "_normalCursor_18de6_14", ht = {
3464
- label: zs,
3465
- inline: Ds,
3466
- normalCursor: Bs
3467
- }, Fe = ({
3468
- inline: e = !1,
3469
- normalCursor: t = !1,
3470
- htmlTag: r = "label",
3471
- children: a,
3472
- id: s,
3473
- ...i
3474
- }) => {
3475
- const f = [
3476
- ht.label,
3477
- e && ht.inline,
3478
- t && ht.normalCursor
3479
- ].filter(Boolean).join(" "), h = {
3480
- ...i,
3481
- className: f,
3482
- id: s || void 0
3483
- };
3484
- return fe.createElement(r, h, a);
3485
- }, Fs = "_dragAndDropFileInput_l98z1_1", Hs = "_requiredSymbol_l98z1_1", qs = "_dragAndDropContainer_l98z1_8", Us = "_highlighted_l98z1_26", et = {
3486
- dragAndDropFileInput: Fs,
3487
- requiredSymbol: Hs,
3488
- dragAndDropContainer: qs,
3489
- highlighted: Us
3490
- }, Vs = "_errorMessage_i8u6b_7", Ys = "_errorSign_i8u6b_19", tn = {
3491
- errorMessage: Vs,
3492
- errorSign: Ys
3493
- }, Ws = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", lt = ({ id: e, content: t = "" }) => {
3494
- const r = () => ({
3495
- id: e != null && e.length ? e : void 0,
3496
- className: tn.errorMessage
3497
- });
3498
- return (typeof t == "string" ? t.trim().length > 0 : !!t) ? /* @__PURE__ */ d.jsxs("span", { "aria-live": "polite", ...r(), children: [
3499
- /* @__PURE__ */ d.jsx("img", { src: Ws, alt: "", className: tn.errorSign }),
3500
- t
3501
- ] }) : null;
3502
- }, Yi = ({
3503
- id: e,
3504
- name: t,
3505
- onSelectChange: r,
3506
- onDragAndDropChange: a,
3507
- label: s = "",
3508
- contentOnly: i = !1,
3509
- buttonColor: f = "primary",
3510
- buttonContent: h,
3511
- buttonContentWhenSelectedFile: l,
3512
- selectedFileName: c,
3513
- defaultContent: _ = "",
3514
- hasErrors: w = !1,
3515
- errorMessage: g = "",
3516
- required: x = !1,
3517
- children: v,
3518
- "data-transaction-name": b
3519
- }) => {
3520
- const [N, y] = p.useState(!1), S = p.useRef(null), L = p.useRef(null), j = (F) => {
3521
- F.preventDefault(), F.stopPropagation();
3522
- }, T = (F, D) => F || D, X = () => {
3523
- var F;
3524
- (F = L.current) == null || F.click();
3525
- }, G = () => `${e}-errorMessage`, z = {
3526
- id: e,
3527
- "aria-describedby": w && (g != null && g.toString().length) ? G() : void 0,
3528
- "aria-invalid": w ? "true" : void 0,
3529
- name: t,
3530
- required: x
3531
- }, Y = c && l || h;
3532
- return p.useEffect(() => {
3533
- const F = S.current;
3534
- if (!F) return;
3535
- const D = (M) => {
3536
- var K;
3537
- j(M), (K = M.dataTransfer) != null && K.files && a(M.dataTransfer.files), y(!1);
3538
- }, re = () => y(!0), te = () => y(!1);
3539
- return ["dragenter", "dragover"].forEach(
3540
- (M) => F.addEventListener(M, re)
3541
- ), ["dragleave", "drop"].forEach(
3542
- (M) => F.addEventListener(M, te)
3543
- ), ["dragenter", "dragover", "dragleave", "drop"].forEach(
3544
- (M) => F.addEventListener(M, j)
3545
- ), F.addEventListener("drop", D), () => {
3546
- ["dragenter", "dragover", "dragleave", "drop"].forEach((M) => {
3547
- F.removeEventListener(M, j), F.removeEventListener(M, re), F.removeEventListener(M, te);
3548
- }), F.removeEventListener("drop", D);
3549
- };
3550
- }, [a]), /* @__PURE__ */ d.jsxs("div", { className: et.dragAndDropFileInput, children: [
3551
- /* @__PURE__ */ d.jsxs(Fe, { htmlFor: e, children: [
3552
- s,
3553
- x && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: et.requiredSymbol })
3554
- ] }),
3555
- /* @__PURE__ */ d.jsx("div", { children: v }),
3556
- !i && /* @__PURE__ */ d.jsxs(
3557
- "div",
3558
- {
3559
- ref: S,
3560
- className: `${et.dragAndDropContainer} ${N ? et.highlighted : ""}`,
3561
- children: [
3562
- c ? /* @__PURE__ */ d.jsx("div", { children: /* @__PURE__ */ d.jsxs("span", { children: [
3563
- /* @__PURE__ */ d.jsx("b", { children: "Valgt fil:" }),
3564
- " ",
3565
- c
3566
- ] }) }) : /* @__PURE__ */ d.jsx("div", { children: "Slipp fil her" }),
3567
- /* @__PURE__ */ d.jsx(
3568
- "input",
3569
- {
3570
- ...z,
3571
- ref: L,
3572
- type: "file",
3573
- onChange: r
3574
- }
3575
- ),
3576
- h && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3577
- /* @__PURE__ */ d.jsx("div", { children: c ? "" : "eller klikk på knappen for å velge fil" }),
3578
- /* @__PURE__ */ d.jsx(
3579
- Sn,
3580
- {
3581
- size: "small",
3582
- inputType: "button",
3583
- color: f,
3584
- onClick: X,
3585
- content: Y,
3586
- hasErrors: w,
3587
- "data-transaction-name": b
3588
- }
3589
- )
3590
- ] })
3591
- ]
3592
- }
3593
- ),
3594
- i && /* @__PURE__ */ d.jsx("span", { children: T(c, _) }),
3595
- /* @__PURE__ */ d.jsx(lt, { id: G(), content: g })
3596
- ] });
3597
- }, Xs = "_errorBoxContainer_88ulw_7", Gs = "_messageIn_88ulw_1", Ks = "_warning_88ulw_14", Qs = "_error_88ulw_7", Zs = "_fullScreen_88ulw_22", Js = "_errorBox_88ulw_7", ea = "_infoSign_88ulw_38", je = {
3598
- errorBoxContainer: Xs,
3599
- messageIn: Gs,
3600
- warning: Ks,
3601
- error: Qs,
3602
- fullScreen: Zs,
3603
- errorBox: Js,
3604
- infoSign: ea
3605
- }, jn = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e", Wi = ({
3606
- type: e = "warning",
3607
- fullScreen: t = !1,
3608
- children: r = ""
3609
- }) => /* @__PURE__ */ d.jsx(
3610
- "div",
3611
- {
3612
- className: J([
3613
- je.errorBoxContainer,
3614
- je[e],
3615
- t && je.fullScreen
3616
- ]),
3617
- children: /* @__PURE__ */ d.jsxs(
3618
- "div",
3619
- {
3620
- className: J([
3621
- je.errorBox,
3622
- t && je.fullScreen
3623
- ]),
3624
- children: [
3625
- /* @__PURE__ */ d.jsx("img", { src: jn, alt: "", className: je.infoSign }),
3626
- r
3627
- ]
3628
- }
3629
- )
3630
- }
3631
- ), ta = "_footer_19fad_1", na = {
3632
- footer: ta
3633
- }, Xi = ({ children: e }) => /* @__PURE__ */ d.jsx("footer", { className: na.footer, children: /* @__PURE__ */ d.jsx(ds, { children: e }) }), ra = "_infoBox_1mh67_7", oa = "_infoSign_1mh67_15", nn = {
3634
- infoBox: ra,
3635
- infoSign: oa
3636
- }, Gi = ({ children: e = "" }) => /* @__PURE__ */ d.jsxs("div", { className: nn.infoBox, children: [
3637
- /* @__PURE__ */ d.jsx("img", { src: jn, alt: "", className: nn.infoSign }),
3638
- e
3639
- ] }), sa = "_inputField_17rmz_1", aa = "_noMargin_17rmz_4", ia = "_requiredSymbol_17rmz_10", la = "_file_17rmz_17", ca = "_input_17rmz_1", ua = "_hasErrors_17rmz_50", da = "_fileInputContainer_17rmz_62", be = {
3640
- inputField: sa,
3641
- noMargin: aa,
3642
- requiredSymbol: ia,
3643
- file: la,
3644
- input: ca,
3645
- hasErrors: ua,
3646
- fileInputContainer: da
3647
- }, Rt = (e) => {
3648
- let t = "";
3649
- const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = r.length;
3650
- for (let s = 0; s < e; s++)
3651
- t += r.charAt(Math.floor(Math.random() * a));
3652
- return t;
3653
- }, Ki = ({
3654
- id: e,
3655
- onChange: t,
3656
- onBlur: r,
3657
- name: a = "",
3658
- type: s = "text",
3659
- disabled: i = !1,
3660
- required: f = !1,
3661
- readOnly: h,
3662
- width: l,
3663
- value: c,
3664
- defaultValue: _,
3665
- elementKey: w,
3666
- label: g = "",
3667
- contentOnly: x = !1,
3668
- buttonColor: v = "primary",
3669
- buttonContent: b,
3670
- selectedFileName: N,
3671
- placeholder: y = "",
3672
- defaultContent: S = "",
3673
- min: L,
3674
- max: j,
3675
- role: T,
3676
- "aria-describedby": X,
3677
- "aria-autocomplete": G,
3678
- hasErrors: z = !1,
3679
- errorMessage: Y = "",
3680
- noMargin: F = !1
3681
- }) => {
3682
- const D = (W) => {
3683
- const Z = new Date(W);
3684
- return `${String(Z.getDate()).padStart(2, "0")}.${String(
3685
- Z.getMonth() + 1
3686
- ).padStart(2, "0")}.${Z.getFullYear()}`;
3687
- }, re = (W, Z) => s === "date" ? W ? D(W) : Z : W || Z, te = () => `${e}-errorMessage`, M = l ? { maxWidth: l } : {}, K = {
3688
- name: a,
3689
- readOnly: h,
3690
- disabled: i,
3691
- required: f,
3692
- type: s,
3693
- role: T,
3694
- id: e,
3695
- min: L,
3696
- max: j,
3697
- onChange: t,
3698
- onBlur: r,
3699
- [_ && !c ? "defaultValue" : "value"]: _ || c || "",
3700
- placeholder: y,
3701
- className: z ? be.hasErrors : void 0,
3702
- "aria-describedby": z && Y ? te() : X,
3703
- "aria-invalid": z ? "true" : void 0,
3704
- "aria-autocomplete": G || void 0,
3705
- style: M
3706
- };
3707
- return /* @__PURE__ */ d.jsxs(
3708
- "div",
3709
- {
3710
- className: J([
3711
- be.inputField,
3712
- be[s],
3713
- F && be.noMargin
3714
- ]),
3715
- children: [
3716
- /* @__PURE__ */ d.jsxs(Fe, { htmlFor: e, children: [
3717
- g,
3718
- f && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: be.requiredSymbol }),
3719
- s === "file" && /* @__PURE__ */ d.jsxs("div", { className: be.fileInputContainer, children: [
3720
- /* @__PURE__ */ d.jsx("span", { className: be.input, children: N }),
3721
- b && /* @__PURE__ */ d.jsx(
3722
- Sn,
3723
- {
3724
- color: v,
3725
- inputType: "button",
3726
- onClick: () => {
3727
- const W = document == null ? void 0 : document.getElementById(e);
3728
- W == null || W.click();
3729
- },
3730
- content: b
3731
- }
3732
- )
3733
- ] })
3734
- ] }),
3735
- x ? /* @__PURE__ */ d.jsx("span", { children: re(c ?? _, S) }) : /* @__PURE__ */ d.jsx(
3736
- "input",
3737
- {
3738
- ...K
3739
- },
3740
- w || `${e}-${Rt(6)}`
3741
- ),
3742
- /* @__PURE__ */ d.jsx(lt, { id: te(), content: Y })
3743
- ]
3744
- }
3745
- );
3746
- }, fa = "_lead_176gy_1", ha = {
3747
- lead: fa
3748
- }, Qi = ({ id: e, htmlTag: t = "p", children: r }) => fe.createElement(
3749
- t,
3750
- {
3751
- className: ha.lead,
3752
- id: e || void 0
3753
- },
3754
- r
3755
- ), pa = "_list_16gsl_1", ma = "_compact_16gsl_10", rn = {
3756
- list: pa,
3757
- compact: ma
3758
- }, Zi = ({
3759
- listStyle: e,
3760
- compact: t = !1,
3761
- ordered: r = !1,
3762
- children: a
3763
- }) => {
3764
- const s = (l) => Me(l).map((_, w) => p.isValidElement(_) ? p.cloneElement(_, {
3765
- compact: t,
3766
- key: `listItem-${w}`
3767
- }) : _), i = r ? "ol" : "ul", f = r ? "decimal" : "disc";
3768
- return fe.createElement(
3769
- i,
3770
- {
3771
- className: `${rn.list} ${t ? rn.compact : ""}`,
3772
- style: { ["--listStyle"]: e || f }
3773
- },
3774
- s(p.Children.toArray(a))
3775
- );
3776
- }, _a = "_listItem_33xs0_1", ga = "_compact_33xs0_5", on = {
3777
- listItem: _a,
3778
- compact: ga
3779
- }, Ji = ({ compact: e = !1, children: t }) => {
3780
- const r = J([
3781
- on.listItem,
3782
- e && on.compact
3783
- ]);
3784
- return /* @__PURE__ */ d.jsx("li", { className: r, children: t });
3785
- }, va = "_loadingAnimation_hzd5u_1", ya = "_fixed_hzd5u_17", pt = {
3786
- loadingAnimation: va,
3787
- fixed: ya
3788
- }, el = ({
3789
- fixed: e = !1,
3790
- message: t = ""
3791
- }) => {
3792
- const r = e ? `${pt.loadingAnimation} ${pt.fixed}` : pt.loadingAnimation;
3793
- return /* @__PURE__ */ d.jsx("div", { className: r, children: t });
3794
- }, sn = ({ listItem: e }) => typeof e == "string" ? /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx("span", { children: e }) }) : typeof e == "object" ? /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx("a", { href: e.href, children: e.name }) }) : null, wa = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e", Ea = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ba = "_navigationBarContainer_n1cc0_1", xa = "_mainContentLink_n1cc0_1", Ca = "_compact_n1cc0_30", ka = "_navigationBar_n1cc0_1", Ra = "_preventStacking_n1cc0_63", Sa = "_logoContainer_n1cc0_82", La = "_childElements_n1cc0_91", ja = "_menuToggle_n1cc0_97", Ta = "_hamburgerIcon_n1cc0_125", $a = "_active_n1cc0_161", Ma = "_dropdownContainer_n1cc0_170", Na = "_dropdown_n1cc0_170", Ia = "_primaryList_n1cc0_195", Aa = "_secondaryList_n1cc0_196", Oa = "_line_n1cc0_392", ee = {
3795
- navigationBarContainer: ba,
3796
- mainContentLink: xa,
3797
- compact: Ca,
3798
- navigationBar: ka,
3799
- preventStacking: Ra,
3800
- logoContainer: Sa,
3801
- childElements: La,
3802
- menuToggle: ja,
3803
- hamburgerIcon: Ta,
3804
- active: $a,
3805
- dropdownContainer: Ma,
3806
- dropdown: Na,
3807
- primaryList: Ia,
3808
- secondaryList: Aa,
3809
- line: Oa
3810
- }, Pa = (e) => (e == null ? void 0 : e.logo) ?? "", za = (e) => (e == null ? void 0 : e.logoPadding) ?? "", Da = (e) => (e == null ? void 0 : e.appName) ?? "", tl = ({
3811
- primaryListItems: e = [],
3812
- secondaryListItems: t = [],
3813
- logoLink: r = "",
3814
- logoLinkTitle: a,
3815
- openLogoLinkInNewTab: s,
3816
- theme: i,
3817
- compact: f,
3818
- mainContentId: h,
3819
- preventChildElementStacking: l = !1,
3820
- children: c
3821
- }) => {
3822
- const [_, w] = p.useState(!1), g = () => w(!_), x = (S) => ({
3823
- padding: za(S)
3824
- }), v = (S = e, L = 0) => S.length ? /* @__PURE__ */ d.jsx("ul", { className: ee.primaryList, children: S.map((j, T) => {
3825
- const X = `${L}-${T}`;
3826
- return j.listItems ? /* @__PURE__ */ d.jsxs("li", { children: [
3827
- /* @__PURE__ */ d.jsx("span", { children: j.name }),
3828
- v(j.listItems, L + 1)
3829
- ] }, X) : /* @__PURE__ */ d.jsx(sn, { listItem: j }, X);
3830
- }) }) : null, b = () => t.length ? /* @__PURE__ */ d.jsx("ul", { className: ee.secondaryList, children: t.map((S, L) => /* @__PURE__ */ d.jsx(sn, { listItem: S }, L)) }) : null, N = (S, L) => {
3831
- const j = Pa(i), T = Da(i), X = S && L ? "" : j && T ? `${T} logo` : "DIBK logo", G = j ? /* @__PURE__ */ d.jsx("img", { alt: X, src: j, style: x(i) }) : /* @__PURE__ */ d.jsx("img", { alt: X, src: f ? wa : Ea });
3832
- return S != null && S.length ? /* @__PURE__ */ d.jsx(
3833
- "a",
3834
- {
3835
- href: S,
3836
- title: L,
3837
- target: s ? "_blank" : void 0,
3838
- rel: s ? "noopener noreferrer" : void 0,
3839
- children: G
3840
- }
3841
- ) : G;
3842
- }, y = e.length > 0 || t.length > 0;
3843
- return /* @__PURE__ */ d.jsxs(
3844
- "div",
3845
- {
3846
- className: J([
3847
- f && ee.compact,
3848
- ee.navigationBarContainer
3849
- ]),
3850
- children: [
3851
- h && /* @__PURE__ */ d.jsx(
3852
- "a",
3853
- {
3854
- id: "main-content-link",
3855
- href: `#${h}`,
3856
- className: ee.mainContentLink,
3857
- children: /* @__PURE__ */ d.jsx("span", { id: "main-content-link-text", children: "Hopp til hovedinnhold" })
3858
- }
3859
- ),
3860
- /* @__PURE__ */ d.jsxs(
3861
- "div",
3862
- {
3863
- className: J([
3864
- ee.navigationBar,
3865
- l && ee.preventStacking
3866
- ]),
3867
- children: [
3868
- /* @__PURE__ */ d.jsx("div", { className: ee.logoContainer, children: N(r, a) }),
3869
- c && /* @__PURE__ */ d.jsx("div", { className: ee.childElements, children: c }),
3870
- y && /* @__PURE__ */ d.jsxs(
3871
- "button",
3872
- {
3873
- type: "button",
3874
- className: `${ee.menuToggle} ${_ ? ee.active : ""}`,
3875
- onClick: g,
3876
- "aria-expanded": _ ? "true" : "false",
3877
- "aria-controls": "main-menu-dropdown",
3878
- children: [
3879
- !f && "Meny",
3880
- /* @__PURE__ */ d.jsxs("span", { className: ee.hamburgerIcon, children: [
3881
- /* @__PURE__ */ d.jsx("span", { className: ee.line }),
3882
- /* @__PURE__ */ d.jsx("span", { className: ee.line }),
3883
- /* @__PURE__ */ d.jsx("span", { className: ee.line })
3884
- ] })
3885
- ]
3886
- }
3887
- )
3888
- ]
3889
- }
3890
- ),
3891
- y && /* @__PURE__ */ d.jsx(p.Fragment, { children: /* @__PURE__ */ d.jsx(
3892
- "div",
3893
- {
3894
- className: J([
3895
- ee.dropdownContainer,
3896
- _ && ee.active
3897
- ]),
3898
- children: /* @__PURE__ */ d.jsxs("div", { id: "main-menu-dropdown", className: ee.dropdown, children: [
3899
- v(),
3900
- b()
3901
- ] })
3902
- }
3903
- ) })
3904
- ]
3905
- }
3906
- );
3907
- }, Ba = "_paper_1lgl3_1", Fa = "_noMargin_1lgl3_6", Ha = "_noPadding_1lgl3_9", mt = {
3908
- paper: Ba,
3909
- noMargin: Fa,
3910
- noPadding: Ha
3911
- }, nl = ({
3912
- noMargin: e = !1,
3913
- noPadding: t = !1,
3914
- children: r
3915
- }) => {
3916
- const a = [
3917
- mt.paper,
3918
- e && mt.noMargin,
3919
- t && mt.noPadding
3920
- ].filter(Boolean).join(" ");
3921
- return /* @__PURE__ */ d.jsx("div", { className: a, children: r });
3922
- }, qa = "_progressBar_t5aid_1", Ua = "_hasErrors_t5aid_23", an = {
3923
- progressBar: qa,
3924
- hasErrors: Ua
3925
- }, rl = ({ progress: e = 0, hasErrors: t = !1 }) => /* @__PURE__ */ d.jsx(
3926
- "div",
3927
- {
3928
- className: `${an.progressBar} ${t ? an.hasErrors : ""}`,
3929
- role: "progressbar",
3930
- "aria-valuenow": e,
3931
- "aria-valuemin": 0,
3932
- "aria-valuemax": 100,
3933
- style: { "--value": e }
3934
- }
3935
- ), Va = "_radioButtonIcon_32fe0_1", Ya = "_hasErrors_32fe0_22", Wa = "_checked_32fe0_32", Xa = "_disabled_32fe0_48", tt = {
3936
- radioButtonIcon: Va,
3937
- hasErrors: Ya,
3938
- checked: Wa,
3939
- disabled: Xa
3940
- }, Ga = ({
3941
- size: e = "10px",
3942
- checked: t = !1,
3943
- disabled: r = !1,
3944
- hasErrors: a = !1
3945
- }) => {
3946
- const s = {
3947
- height: e,
3948
- width: e
3949
- }, i = [
3950
- tt.radioButtonIcon,
3951
- t && tt.checked,
3952
- r && tt.disabled,
3953
- a && tt.hasErrors
3954
- ].filter(Boolean).join(" ");
3955
- return /* @__PURE__ */ d.jsx("span", { className: i, style: s });
3956
- }, Ka = "_radioButtonInput_1i7cy_1", Qa = "_requiredSymbol_1i7cy_6", Za = "_disabled_1i7cy_13", Ja = "_labelText_1i7cy_19", ei = "_hasErrors_1i7cy_27", Te = {
3957
- radioButtonInput: Ka,
3958
- requiredSymbol: Qa,
3959
- disabled: Za,
3960
- labelText: Ja,
3961
- hasErrors: ei
3962
- }, ti = ({
3963
- checked: e = !1,
3964
- disabled: t = !1,
3965
- required: r = !1,
3966
- requiredGroup: a = !1,
3967
- id: s,
3968
- name: i = "",
3969
- onChange: f,
3970
- contentOnly: h = !1,
3971
- hasErrors: l = !1,
3972
- inputValue: c,
3973
- tabIndex: _,
3974
- children: w,
3975
- "aria-controls": g,
3976
- "aria-describedby": x
3977
- }) => {
3978
- const v = [
3979
- Te.radioButtonInput,
3980
- e && Te.checked,
3981
- t && Te.disabled,
3982
- l && Te.hasErrors
3983
- ].filter(Boolean).join(" "), b = {
3984
- checked: e,
3985
- disabled: t,
3986
- hasErrors: !h && l
3987
- }, N = {
3988
- id: s,
3989
- name: i,
3990
- type: "radio",
3991
- value: c,
3992
- checked: e,
3993
- disabled: t,
3994
- required: r || a,
3995
- onChange: f,
3996
- tabIndex: _ ?? void 0,
3997
- "aria-controls": g,
3998
- "aria-invalid": l ? "true" : void 0,
3999
- "aria-describedby": x
4000
- };
4001
- return /* @__PURE__ */ d.jsxs("label", { htmlFor: s, className: v, children: [
4002
- !h && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4003
- /* @__PURE__ */ d.jsx(Ga, { ...b }),
4004
- /* @__PURE__ */ d.jsx("input", { ...N })
4005
- ] }),
4006
- /* @__PURE__ */ d.jsxs("span", { className: Te.labelText, children: [
4007
- w,
4008
- r && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: Te.requiredSymbol })
4009
- ] })
4010
- ] });
4011
- }, ni = "_radioButtonList_1cyu3_1", ri = "_requiredSymbol_1cyu3_16", ln = {
4012
- radioButtonList: ni,
4013
- requiredSymbol: ri
4014
- }, ol = ({
4015
- legend: e,
4016
- legendSize: t,
4017
- required: r = !1,
4018
- compact: a = !1,
4019
- children: s
4020
- }) => {
4021
- const i = (f) => Me(f).map((l, c) => {
4022
- var _;
4023
- return p.isValidElement(l) && ((_ = l.type) == null ? void 0 : _.displayName) === "RadioButtonListItem" ? p.cloneElement(l, {
4024
- requiredGroup: r,
4025
- compact: a,
4026
- key: `radioButtonListItem-${c}`
4027
- }) : l;
4028
- });
4029
- return /* @__PURE__ */ d.jsxs("fieldset", { className: ln.radioButtonList, children: [
4030
- !!(e != null && e.length) && /* @__PURE__ */ d.jsxs("legend", { children: [
4031
- t ? /* @__PURE__ */ d.jsx(Ln, { size: t, children: e }) : e,
4032
- r && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: ln.requiredSymbol })
4033
- ] }),
4034
- i(p.Children.toArray(s))
4035
- ] });
4036
- }, oi = "_radioButtonListItem_1ggab_1", si = "_contentOnly_1ggab_26", ai = "_compact_1ggab_26", ii = "_disabled_1ggab_41", li = "_checked_1ggab_44", $e = {
4037
- radioButtonListItem: oi,
4038
- contentOnly: si,
4039
- compact: ai,
4040
- disabled: ii,
4041
- checked: li
4042
- }, sl = ({
4043
- inputValue: e,
4044
- checked: t = !1,
4045
- disabled: r = !1,
4046
- required: a = !1,
4047
- requiredGroup: s = !1,
4048
- name: i = "",
4049
- id: f,
4050
- onChange: h,
4051
- contentOnly: l = !1,
4052
- compact: c = !1,
4053
- hasErrors: _ = !1,
4054
- "aria-controls": w,
4055
- "aria-describedby": g,
4056
- children: x
4057
- }) => {
4058
- const v = J([
4059
- $e.radioButtonListItem,
4060
- t && $e.checked,
4061
- r && $e.disabled,
4062
- c && $e.compact,
4063
- l && $e.contentOnly,
4064
- _ && $e.hasErrors
4065
- ]), b = {
4066
- onChange: h,
4067
- inputValue: e,
4068
- checked: t,
4069
- disabled: r,
4070
- required: a,
4071
- requiredGroup: s,
4072
- contentOnly: l,
4073
- hasErrors: _,
4074
- "aria-controls": w,
4075
- "aria-describedby": g,
4076
- id: f,
4077
- name: i
4078
- };
4079
- return /* @__PURE__ */ d.jsx("div", { className: v, children: /* @__PURE__ */ d.jsx(ti, { ...b, children: x }) });
4080
- }, ci = "_select_18o2z_1", ui = "_requiredSymbol_18o2z_1", di = "_selectContainer_18o2z_8", fi = "_selectListArrow_18o2z_11", hi = "_multipleSelectDropdown_18o2z_40", pi = "_multipleSelectElement_18o2z_52", mi = "_multiple_18o2z_40", _i = "_hasErrors_18o2z_100", de = {
4081
- select: ci,
4082
- requiredSymbol: ui,
4083
- selectContainer: di,
4084
- selectListArrow: fi,
4085
- multipleSelectDropdown: hi,
4086
- multipleSelectElement: pi,
4087
- multiple: mi,
4088
- hasErrors: _i
4089
- }, al = ({
4090
- id: e,
4091
- onChange: t,
4092
- name: r = "",
4093
- required: a = !1,
4094
- disabled: s = !1,
4095
- multiple: i = !1,
4096
- options: f = [],
4097
- width: h,
4098
- value: l,
4099
- defaultValue: c,
4100
- label: _ = "",
4101
- contentOnly: w = !1,
4102
- keyAsContent: g = !1,
4103
- placeholder: x = "",
4104
- placeholderValue: v = "",
4105
- defaultContent: b = "",
4106
- role: N,
4107
- "aria-describedby": y,
4108
- hasErrors: S = !1,
4109
- errorMessage: L = ""
4110
- }) => {
4111
- const [j, T] = p.useState(!1), X = p.useRef(null);
4112
- p.useCallback((M) => {
4113
- M && dn(M);
4114
- }, []);
4115
- const G = () => T(!1);
4116
- p.useEffect(() => {
4117
- const M = (W) => {
4118
- W.key === "Escape" && G();
4119
- }, K = (W) => {
4120
- X.current && !X.current.contains(W.target) && G();
4121
- };
4122
- return document.addEventListener("mousedown", K), document.addEventListener("keydown", M), () => {
4123
- document.removeEventListener("mousedown", K), document.removeEventListener("keydown", M);
4124
- };
4125
- }, []);
4126
- const z = (M, K) => {
4127
- const W = K.find(
4128
- (Z) => typeof Z == "object" ? Z.value === M : Z === M
4129
- );
4130
- return typeof W == "object" ? W.key ?? W.value : W;
4131
- }, Y = (M) => typeof M == "object" ? { key: M.key, value: M.value } : { key: M, value: M }, F = () => {
4132
- var M;
4133
- return ((M = c || l) == null ? void 0 : M.map((K) => z(K, f)).join(", ")) || null;
4134
- }, D = () => f.map((M, K) => {
4135
- const { key: W, value: Z } = Y(M), ie = (c || l || []).includes(Z);
4136
- return /* @__PURE__ */ d.jsx(
4137
- ls,
4138
- {
4139
- id: `${e}-${K}`,
4140
- value: Z,
4141
- checked: ie,
4142
- onChange: () => t(Z),
4143
- children: W
4144
- },
4145
- K
4146
- );
4147
- }), re = () => `${e}-errorMessage`;
4148
- if (w) {
4149
- const M = c || l || null;
4150
- return /* @__PURE__ */ d.jsxs("div", { className: de.select, children: [
4151
- /* @__PURE__ */ d.jsx(Fe, { htmlFor: e, children: _ }),
4152
- /* @__PURE__ */ d.jsx("span", { children: M ? g ? z(M, f) : M : b })
4153
- ] });
4154
- }
4155
- const te = {
4156
- name: r,
4157
- multiple: i,
4158
- required: a,
4159
- disabled: s,
4160
- onChange: t,
4161
- id: e,
4162
- role: N,
4163
- className: J([
4164
- S && de.hasErrors,
4165
- i && de.multiple
4166
- ]),
4167
- "aria-describedby": S && L ? re() : y,
4168
- "aria-invalid": S || void 0,
4169
- style: h ? { maxWidth: h } : void 0,
4170
- ...c && !l ? { defaultValue: c } : { value: l || "" }
4171
- };
4172
- return /* @__PURE__ */ d.jsxs("div", { className: de.select, children: [
4173
- /* @__PURE__ */ d.jsxs(Fe, { htmlFor: e, children: [
4174
- _,
4175
- a && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: de.requiredSymbol })
4176
- ] }),
4177
- /* @__PURE__ */ d.jsxs(
4178
- "div",
4179
- {
4180
- className: de.selectContainer,
4181
- style: h ? { maxWidth: h } : void 0,
4182
- children: [
4183
- /* @__PURE__ */ d.jsx("span", { className: de.selectListArrow }),
4184
- i ? /* @__PURE__ */ d.jsxs("div", { ref: X, children: [
4185
- /* @__PURE__ */ d.jsx(
4186
- "div",
4187
- {
4188
- onClick: () => T(!j),
4189
- className: de.multipleSelectElement,
4190
- children: F()
4191
- }
4192
- ),
4193
- j && /* @__PURE__ */ d.jsx("div", { className: de.multipleSelectDropdown, children: /* @__PURE__ */ d.jsx(ns, { compact: !0, children: D() }) })
4194
- ] }) : /* @__PURE__ */ d.jsxs("select", { ...te, children: [
4195
- x && /* @__PURE__ */ d.jsx("option", { value: v, disabled: !0, children: x }),
4196
- f.map((M, K) => {
4197
- const { key: W, value: Z } = Y(M);
4198
- return /* @__PURE__ */ d.jsx("option", { value: Z, children: W }, K);
4199
- })
4200
- ] }, `${e}-${Rt(6)}`)
4201
- ]
4202
- }
4203
- ),
4204
- /* @__PURE__ */ d.jsx(lt, { id: re(), content: L })
4205
- ] });
4206
- }, gi = "_table_miy9l_1", He = {
4207
- table: gi,
4208
- "captionSide-top": "_captionSide-top_miy9l_14",
4209
- "captionSide-bottom": "_captionSide-bottom_miy9l_18",
4210
- "captionAlign-left": "_captionAlign-left_miy9l_22",
4211
- "captionAlign-center": "_captionAlign-center_miy9l_25",
4212
- "captionAlign-right": "_captionAlign-right_miy9l_28"
4213
- }, vi = (e) => e && ["left", "center", "right"].includes(e) ? He[`captionAlign-${e}`] : He["captionAlign-left"], yi = (e) => e && ["top", "bottom"].includes(e) ? He[`captionSide-${e}`] : He["captionSide-top"], il = ({ captionAlign: e, captionSide: t, children: r }) => {
4214
- const a = J([
4215
- He.table,
4216
- vi(e),
4217
- yi(t)
4218
- ]);
4219
- return /* @__PURE__ */ d.jsx("table", { className: a, children: r });
4220
- }, wi = "_textarea_1596u_1", Ei = "_requiredSymbol_1596u_4", bi = "_hasErrors_1596u_55", _t = {
4221
- textarea: wi,
4222
- requiredSymbol: Ei,
4223
- hasErrors: bi
4224
- }, ll = ({
4225
- id: e,
4226
- onChange: t,
4227
- onBlur: r,
4228
- name: a = "",
4229
- required: s = !1,
4230
- readOnly: i,
4231
- disabled: f,
4232
- width: h,
4233
- resize: l = "both",
4234
- value: c,
4235
- defaultValue: _,
4236
- elementKey: w,
4237
- rows: g,
4238
- label: x = "",
4239
- contentOnly: v = !1,
4240
- placeholder: b = "",
4241
- defaultContent: N = "",
4242
- "aria-describedby": y,
4243
- hasErrors: S = !1,
4244
- errorMessage: L = ""
4245
- }) => {
4246
- const j = () => `${e}-errorMessage`, T = !(c != null && c.length) && (_ != null && _.length) ? _ : void 0, X = w || `${e}-${Rt(6)}`, G = {
4247
- ...h && { maxWidth: h },
4248
- ...l && { resize: l }
4249
- }, z = {
4250
- name: a,
4251
- readOnly: i,
4252
- disabled: f,
4253
- required: s,
4254
- id: e,
4255
- onChange: t,
4256
- onBlur: r,
4257
- value: T ? void 0 : c,
4258
- defaultValue: T || void 0,
4259
- placeholder: b,
4260
- rows: g ? parseInt(g, 10) : void 0,
4261
- className: S ? _t.hasErrors : "",
4262
- "aria-describedby": S && L ? j() : y,
4263
- "aria-invalid": S ? "true" : void 0,
4264
- style: G
4265
- };
4266
- return /* @__PURE__ */ d.jsxs("div", { className: _t.textarea, children: [
4267
- /* @__PURE__ */ d.jsxs(Fe, { htmlFor: e, children: [
4268
- x,
4269
- s && /* @__PURE__ */ d.jsx("img", { src: we, alt: "", className: _t.requiredSymbol })
4270
- ] }),
4271
- v ? /* @__PURE__ */ d.jsx("span", { children: c || _ || N }) : /* @__PURE__ */ d.jsx("textarea", { ...z }, X),
4272
- /* @__PURE__ */ d.jsx(lt, { id: j(), content: L })
4273
- ] });
4274
- }, cl = ({ theme: e, children: t }) => {
4275
- const r = qn(e), a = Vn(
4276
- r
4277
- );
4278
- return Un("theme-provider", `:root {${a}}`), t;
4279
- }, xi = "_toggleNavigationButton_1eb2w_1", Ci = {
4280
- toggleNavigationButton: xi
4281
- }, ul = ({
4282
- id: e,
4283
- htmlTag: t = "button",
4284
- showText: r,
4285
- hideText: a,
4286
- buttonProps: s = {},
4287
- isOpen: i = !1
4288
- }) => fe.createElement(
4289
- t,
4290
- {
4291
- ...s,
4292
- className: Ci.toggleNavigationButton,
4293
- id: e || void 0
4294
- },
4295
- i ? a : r
4296
- ), ki = "_wizardTopnavItem_5ar16_1", Ri = "_wizardTopnavItemContent_5ar16_4", Si = "_vertical_5ar16_7", Li = "_stepNumber_5ar16_24", ji = "_stepName_5ar16_36", Ti = "_active_5ar16_46", $i = "_finished_5ar16_46", Mi = "_hasErrors_5ar16_46", Ni = "_horizontal_5ar16_64", ue = {
4297
- wizardTopnavItem: ki,
4298
- wizardTopnavItemContent: Ri,
4299
- vertical: Si,
4300
- stepNumber: Li,
4301
- stepName: ji,
4302
- active: Ti,
4303
- finished: $i,
4304
- hasErrors: Mi,
4305
- horizontal: Ni
4306
- }, Ii = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e", Ai = ({
4307
- step: e,
4308
- index: t,
4309
- activeStepId: r,
4310
- direction: a = "vertical"
4311
- }) => {
4312
- const s = r === e.id, i = a === "vertical", f = J([
4313
- ue.wizardTopnavItem,
4314
- s && ue.active,
4315
- e.finished && ue.finished,
4316
- e.hasErrors && ue.hasErrors,
4317
- ue[a]
4318
- ]), h = s ? "step" : void 0, l = () => /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
4319
- /* @__PURE__ */ d.jsx("span", { className: ue.stepNumber, children: t + 1 }),
4320
- /* @__PURE__ */ d.jsx("span", { className: ue.stepName, children: e.name }),
4321
- i && e.finished && !s && /* @__PURE__ */ d.jsx("img", { src: Ii, alt: "", className: ue.checkmarkSymbol })
4322
- ] });
4323
- return e.link && Object.keys(e.link).length > 0 ? /* @__PURE__ */ d.jsx("li", { className: f, children: /* @__PURE__ */ d.jsx(
4324
- Be,
4325
- {
4326
- to: e.link,
4327
- "aria-current": h,
4328
- className: ue.wizardTopnavItemContent,
4329
- children: l()
4330
- }
4331
- ) }) : /* @__PURE__ */ d.jsx("li", { className: f, children: /* @__PURE__ */ d.jsx(
4332
- "span",
4333
- {
4334
- "aria-current": h,
4335
- className: ue.wizardTopnavItemContent,
4336
- children: l()
4337
- }
4338
- ) });
4339
- }, Oi = "_wizardTopnavContainer_qiy2o_1", Pi = "_wizardTopnav_qiy2o_1", zi = "_vertical_qiy2o_6", Di = "_horizontal_qiy2o_11", gt = {
4340
- wizardTopnavContainer: Oi,
4341
- wizardTopnav: Pi,
4342
- vertical: zi,
4343
- horizontal: Di
4344
- }, dl = ({
4345
- steps: e,
4346
- activeStepId: t,
4347
- direction: r = "vertical",
4348
- "aria-label": a
4349
- }) => {
4350
- const s = Object.keys(e), f = `I dette skjemaet er det totalt ${s.length} steg som du skal gå igjennom`, h = a != null && a.length ? a : f;
4351
- return /* @__PURE__ */ d.jsx(
4352
- "nav",
4353
- {
4354
- "aria-label": h,
4355
- className: J([
4356
- gt.wizardTopnavContainer,
4357
- gt[r]
4358
- ]),
4359
- children: /* @__PURE__ */ d.jsx("ol", { className: gt.wizardTopnav, children: s.map((l, c) => /* @__PURE__ */ d.jsx(
4360
- Ai,
4361
- {
4362
- step: e[l],
4363
- activeStepId: t,
4364
- direction: r,
4365
- index: c
4366
- },
4367
- l
4368
- )) })
4369
- }
4370
- );
4371
- };
4372
- export {
4373
- Bi as Accordion,
4374
- Sn as Button,
4375
- Kt as CheckBoxIcon,
4376
- Ko as CheckBoxInput,
4377
- ns as CheckBoxList,
4378
- ls as CheckBoxListItem,
4379
- ds as Container,
4380
- Fi as ContentBox,
4381
- Hi as DescriptionDetails,
4382
- qi as DescriptionList,
4383
- Ui as DescriptionTerm,
4384
- Vi as Dialog,
4385
- Yi as DragAndDropFileInput,
4386
- Wi as ErrorBox,
4387
- lt as ErrorMessage,
4388
- Xi as Footer,
4389
- Ln as Header,
4390
- Gi as InfoBox,
4391
- Ki as InputField,
4392
- Fe as Label,
4393
- Qi as Lead,
4394
- Zi as List,
4395
- Ji as ListItem,
4396
- el as LoadingAnimation,
4397
- tl as NavigationBar,
4398
- sn as NavigationBarListItem,
4399
- nl as Paper,
4400
- rl as ProgressBar,
4401
- Ga as RadioButtonIcon,
4402
- ti as RadioButtonInput,
4403
- ol as RadioButtonList,
4404
- sl as RadioButtonListItem,
4405
- al as Select,
4406
- il as Table,
4407
- ll as Textarea,
4408
- cl as ThemeProvider,
4409
- ul as ToggleNavigationButton,
4410
- dl as WizardNavigation,
4411
- Ai as WizardNavigationStep
4412
- };
4413
- //# sourceMappingURL=dibk-design.js.map