dibk-design 9.0.2 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -7
- package/dist/dibk-design.css +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.es.js +1393 -1369
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +10 -11
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import Y, { Children as
|
|
3
|
-
var
|
|
2
|
+
import Y, { Children as _e, isValidElement as Me, Fragment as nt, cloneElement as ge, useState as ke, useEffect as je, createElement as Gt, useRef as Le, useCallback as Ee } from "react";
|
|
3
|
+
var Ne = { exports: {} }, xe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,10 +10,10 @@ var Me = { exports: {} }, ve = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var ut;
|
|
14
|
+
function Kt() {
|
|
15
|
+
if (ut) return xe;
|
|
16
|
+
ut = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
18
18
|
function n(a, r, s) {
|
|
19
19
|
var c = null;
|
|
@@ -30,9 +30,9 @@ function Zt() {
|
|
|
30
30
|
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return xe.Fragment = t, xe.jsx = n, xe.jsxs = n, xe;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var be = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,281 +42,281 @@ var ye = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
45
|
+
var dt;
|
|
46
|
+
function Zt() {
|
|
47
|
+
return dt || (dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
function e(_) {
|
|
49
|
+
if (_ == null) return null;
|
|
50
|
+
if (typeof _ == "function")
|
|
51
|
+
return _.$$typeof === $ ? null : _.displayName || _.name || null;
|
|
52
|
+
if (typeof _ == "string") return _;
|
|
53
|
+
switch (_) {
|
|
54
|
+
case y:
|
|
55
55
|
return "Fragment";
|
|
56
56
|
case f:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case w:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case S:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case j:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case I:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof _ == "object")
|
|
68
|
+
switch (typeof _.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
-
),
|
|
70
|
+
), _.$$typeof) {
|
|
71
71
|
case m:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case b:
|
|
74
|
-
return (
|
|
74
|
+
return (_.displayName || "Context") + ".Provider";
|
|
75
75
|
case x:
|
|
76
|
-
return (
|
|
77
|
-
case
|
|
78
|
-
var k =
|
|
79
|
-
return
|
|
80
|
-
case
|
|
81
|
-
return k =
|
|
82
|
-
case
|
|
83
|
-
k =
|
|
76
|
+
return (_._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case E:
|
|
78
|
+
var k = _.render;
|
|
79
|
+
return _ = _.displayName, _ || (_ = k.displayName || k.name || "", _ = _ !== "" ? "ForwardRef(" + _ + ")" : "ForwardRef"), _;
|
|
80
|
+
case N:
|
|
81
|
+
return k = _.displayName || null, k !== null ? k : e(_.type) || "Memo";
|
|
82
|
+
case R:
|
|
83
|
+
k = _._payload, _ = _._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(_(k));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function t(
|
|
92
|
-
return "" +
|
|
91
|
+
function t(_) {
|
|
92
|
+
return "" + _;
|
|
93
93
|
}
|
|
94
|
-
function n(
|
|
94
|
+
function n(_) {
|
|
95
95
|
try {
|
|
96
|
-
t(
|
|
96
|
+
t(_);
|
|
97
97
|
var k = !1;
|
|
98
98
|
} catch {
|
|
99
99
|
k = !0;
|
|
100
100
|
}
|
|
101
101
|
if (k) {
|
|
102
102
|
k = console;
|
|
103
|
-
var
|
|
104
|
-
return
|
|
103
|
+
var T = k.error, O = typeof Symbol == "function" && Symbol.toStringTag && _[Symbol.toStringTag] || _.constructor.name || "Object";
|
|
104
|
+
return T.call(
|
|
105
105
|
k,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
), t(
|
|
107
|
+
O
|
|
108
|
+
), t(_);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function a(
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function a(_) {
|
|
112
|
+
if (_ === y) return "<>";
|
|
113
|
+
if (typeof _ == "object" && _ !== null && _.$$typeof === R)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var k = e(
|
|
116
|
+
var k = e(_);
|
|
117
117
|
return k ? "<" + k + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function r() {
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var _ = H.A;
|
|
124
|
+
return _ === null ? null : _.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function c(
|
|
130
|
-
if (
|
|
131
|
-
var k = Object.getOwnPropertyDescriptor(
|
|
129
|
+
function c(_) {
|
|
130
|
+
if (J.call(_, "key")) {
|
|
131
|
+
var k = Object.getOwnPropertyDescriptor(_, "key").get;
|
|
132
132
|
if (k && k.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return _.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function u(
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function u(_, k) {
|
|
137
|
+
function T() {
|
|
138
|
+
le || (le = !0, console.error(
|
|
139
139
|
"%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)",
|
|
140
140
|
k
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
T.isReactWarning = !0, Object.defineProperty(_, "key", {
|
|
144
|
+
get: T,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return
|
|
148
|
+
function l() {
|
|
149
|
+
var _ = e(this.type);
|
|
150
|
+
return C[_] || (C[_] = !0, console.error(
|
|
151
151
|
"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."
|
|
152
|
-
)),
|
|
152
|
+
)), _ = this.props.ref, _ !== void 0 ? _ : null;
|
|
153
153
|
}
|
|
154
|
-
function i(
|
|
155
|
-
return
|
|
156
|
-
$$typeof:
|
|
157
|
-
type:
|
|
154
|
+
function i(_, k, T, O, te, X, Xe, We) {
|
|
155
|
+
return T = X.ref, _ = {
|
|
156
|
+
$$typeof: v,
|
|
157
|
+
type: _,
|
|
158
158
|
key: k,
|
|
159
|
-
props:
|
|
160
|
-
_owner:
|
|
161
|
-
}, (
|
|
159
|
+
props: X,
|
|
160
|
+
_owner: te
|
|
161
|
+
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(_, "ref", {
|
|
162
162
|
enumerable: !1,
|
|
163
|
-
get:
|
|
164
|
-
}) : Object.defineProperty(
|
|
163
|
+
get: l
|
|
164
|
+
}) : Object.defineProperty(_, "ref", { enumerable: !1, value: null }), _._store = {}, Object.defineProperty(_._store, "validated", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
168
|
value: 0
|
|
169
|
-
}), Object.defineProperty(
|
|
169
|
+
}), Object.defineProperty(_, "_debugInfo", {
|
|
170
170
|
configurable: !1,
|
|
171
171
|
enumerable: !1,
|
|
172
172
|
writable: !0,
|
|
173
173
|
value: null
|
|
174
|
-
}), Object.defineProperty(
|
|
174
|
+
}), Object.defineProperty(_, "_debugStack", {
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
179
|
-
}), Object.defineProperty(
|
|
178
|
+
value: Xe
|
|
179
|
+
}), Object.defineProperty(_, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
182
182
|
writable: !0,
|
|
183
|
-
value:
|
|
184
|
-
}), Object.freeze && (Object.freeze(
|
|
183
|
+
value: We
|
|
184
|
+
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
185
185
|
}
|
|
186
|
-
function d(
|
|
187
|
-
var
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
for (
|
|
192
|
-
|
|
193
|
-
Object.freeze && Object.freeze(
|
|
186
|
+
function d(_, k, T, O, te, X, Xe, We) {
|
|
187
|
+
var q = k.children;
|
|
188
|
+
if (q !== void 0)
|
|
189
|
+
if (O)
|
|
190
|
+
if (L(q)) {
|
|
191
|
+
for (O = 0; O < q.length; O++)
|
|
192
|
+
g(q[O]);
|
|
193
|
+
Object.freeze && Object.freeze(q);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
return
|
|
198
|
+
else g(q);
|
|
199
|
+
if (J.call(k, "key")) {
|
|
200
|
+
q = e(_);
|
|
201
|
+
var ie = Object.keys(k).filter(function(Jt) {
|
|
202
|
+
return Jt !== "key";
|
|
203
203
|
});
|
|
204
|
-
|
|
204
|
+
O = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", V[q + O] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
208
208
|
React keys must be passed directly to JSX without using spread:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
|
-
F,
|
|
212
211
|
O,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
212
|
+
q,
|
|
213
|
+
ie,
|
|
214
|
+
q
|
|
215
|
+
), V[q + O] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (
|
|
218
|
-
|
|
219
|
-
for (var
|
|
220
|
-
|
|
221
|
-
} else
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
typeof
|
|
217
|
+
if (q = null, T !== void 0 && (n(T), q = "" + T), c(k) && (n(k.key), q = "" + k.key), "key" in k) {
|
|
218
|
+
T = {};
|
|
219
|
+
for (var Ue in k)
|
|
220
|
+
Ue !== "key" && (T[Ue] = k[Ue]);
|
|
221
|
+
} else T = k;
|
|
222
|
+
return q && u(
|
|
223
|
+
T,
|
|
224
|
+
typeof _ == "function" ? _.displayName || _.name || "Unknown" : _
|
|
225
225
|
), i(
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
_,
|
|
227
|
+
q,
|
|
228
|
+
X,
|
|
229
|
+
te,
|
|
230
230
|
r(),
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
T,
|
|
232
|
+
Xe,
|
|
233
|
+
We
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function _
|
|
237
|
-
typeof
|
|
236
|
+
function g(_) {
|
|
237
|
+
typeof _ == "object" && _ !== null && _.$$typeof === v && _._store && (_._store.validated = 1);
|
|
238
238
|
}
|
|
239
|
-
var h = Y,
|
|
239
|
+
var h = Y, v = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), b = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), H = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, L = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
240
240
|
return null;
|
|
241
241
|
};
|
|
242
242
|
h = {
|
|
243
|
-
"react-stack-bottom-frame": function(
|
|
244
|
-
return
|
|
243
|
+
"react-stack-bottom-frame": function(_) {
|
|
244
|
+
return _();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
|
-
var
|
|
247
|
+
var le, C = {}, M = h["react-stack-bottom-frame"].bind(
|
|
248
248
|
h,
|
|
249
249
|
s
|
|
250
|
-
)(),
|
|
251
|
-
|
|
252
|
-
var
|
|
250
|
+
)(), D = z(a(s)), V = {};
|
|
251
|
+
be.Fragment = y, be.jsx = function(_, k, T, O, te) {
|
|
252
|
+
var X = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
253
253
|
return d(
|
|
254
|
-
|
|
254
|
+
_,
|
|
255
255
|
k,
|
|
256
|
-
|
|
256
|
+
T,
|
|
257
257
|
!1,
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
258
|
+
O,
|
|
259
|
+
te,
|
|
260
|
+
X ? Error("react-stack-top-frame") : M,
|
|
261
|
+
X ? z(a(_)) : D
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
263
|
+
}, be.jsxs = function(_, k, T, O, te) {
|
|
264
|
+
var X = 1e4 > H.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return d(
|
|
266
|
-
|
|
266
|
+
_,
|
|
267
267
|
k,
|
|
268
|
-
|
|
268
|
+
T,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
O,
|
|
271
|
+
te,
|
|
272
|
+
X ? Error("react-stack-top-frame") : M,
|
|
273
|
+
X ? z(a(_)) : D
|
|
274
274
|
);
|
|
275
275
|
};
|
|
276
|
-
}()),
|
|
276
|
+
}()), be;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
280
|
-
return
|
|
278
|
+
var ht;
|
|
279
|
+
function Qt() {
|
|
280
|
+
return ht || (ht = 1, process.env.NODE_ENV === "production" ? Ne.exports = Kt() : Ne.exports = Zt()), Ne.exports;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
const
|
|
284
|
-
(t, [n, a]) => (n && a && (t[`--color-${
|
|
282
|
+
var o = Qt();
|
|
283
|
+
const P = (e) => (e == null ? void 0 : e.filter(Boolean).join(" ")) || "", $t = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), en = (e) => !(e != null && e.colors) || !Object.entries(e.colors).length ? {} : Object.entries(e.colors).reduce(
|
|
284
|
+
(t, [n, a]) => (n && a && (t[`--color-${$t(n)}`] = a), t),
|
|
285
285
|
{}
|
|
286
|
-
),
|
|
287
|
-
(t, [n, a]) => (n && a && (t[`--size-${
|
|
286
|
+
), tn = (e) => !(e != null && e.sizes) || !Object.entries(e.sizes).length ? {} : Object.entries(e.sizes).reduce(
|
|
287
|
+
(t, [n, a]) => (n && a && (t[`--size-${$t(n)}`] = a), t),
|
|
288
288
|
{}
|
|
289
|
-
),
|
|
290
|
-
...
|
|
291
|
-
...
|
|
292
|
-
}),
|
|
289
|
+
), nn = (e) => ({
|
|
290
|
+
...en(e),
|
|
291
|
+
...tn(e)
|
|
292
|
+
}), rn = (e, t) => {
|
|
293
293
|
if (typeof document > "u") return;
|
|
294
294
|
const n = document.createElement("style");
|
|
295
295
|
n.setAttribute("id", e), n.textContent = t;
|
|
296
296
|
const a = document.getElementById(e);
|
|
297
297
|
a && a.remove(), document.head.appendChild(n);
|
|
298
|
-
},
|
|
298
|
+
}, an = (e) => Object.entries(e).map(([t, n]) => `${t}: ${n};`).join(""), ve = (e) => {
|
|
299
299
|
const t = [];
|
|
300
|
-
return
|
|
301
|
-
if (
|
|
300
|
+
return _e.forEach(e, (n) => {
|
|
301
|
+
if (Me(n)) {
|
|
302
302
|
const a = n;
|
|
303
|
-
if (a.type ===
|
|
304
|
-
const r =
|
|
303
|
+
if (a.type === nt) {
|
|
304
|
+
const r = ve(a.props.children);
|
|
305
305
|
t.push(...r);
|
|
306
306
|
} else
|
|
307
|
-
t.push(
|
|
307
|
+
t.push(ge(a, { ...a.props }));
|
|
308
308
|
} else
|
|
309
309
|
t.push(n);
|
|
310
310
|
}), t;
|
|
311
|
-
},
|
|
311
|
+
}, sn = (e) => {
|
|
312
312
|
if (typeof document > "u") return;
|
|
313
313
|
const t = document.createElement("button");
|
|
314
314
|
t.style.position = "absolute", t.style.opacity = "0", e.prepend(t), t.focus(), t.remove();
|
|
315
|
-
},
|
|
315
|
+
}, on = (e) => Array.from(
|
|
316
316
|
e.querySelectorAll('button, [href], input, [tabindex="0"]')
|
|
317
|
-
).filter((n) => !!n),
|
|
318
|
-
|
|
319
|
-
const t =
|
|
317
|
+
).filter((n) => !!n), It = (e) => {
|
|
318
|
+
sn(e);
|
|
319
|
+
const t = on(e), n = t[0], a = t[t.length - 1] || n;
|
|
320
320
|
n && (n.onkeydown = (r) => {
|
|
321
321
|
r.key === "Tab" && r.shiftKey && (r.preventDefault(), a.focus());
|
|
322
322
|
}), a && (a.onclick = () => {
|
|
@@ -324,22 +324,22 @@ const z = (e) => (e == null ? void 0 : e.filter(Boolean).join(" ")) || "", It =
|
|
|
324
324
|
}, a.onkeydown = (r) => {
|
|
325
325
|
r.key === "Tab" && !r.shiftKey && (r.preventDefault(), n == null || n.focus());
|
|
326
326
|
});
|
|
327
|
-
},
|
|
328
|
-
accordion:
|
|
327
|
+
}, ln = "_accordion_kwqaf_67", cn = "_panel_kwqaf_76", un = "_content_kwqaf_77", dn = "_secondary_kwqaf_80", hn = "_info_kwqaf_88", mn = "_contrast_kwqaf_96", fn = "_margin_kwqaf_104", pn = "_panelText_kwqaf_138", _n = "_panelChevron_kwqaf_144", gn = "_expanded_kwqaf_171", vn = "_initialized_kwqaf_187", yn = "_hide_kwqaf_1", xn = "_show_kwqaf_1", W = {
|
|
328
|
+
accordion: ln,
|
|
329
329
|
default: "_default_kwqaf_73",
|
|
330
|
-
panel:
|
|
331
|
-
content:
|
|
332
|
-
secondary:
|
|
333
|
-
info:
|
|
334
|
-
contrast:
|
|
335
|
-
margin:
|
|
336
|
-
panelText:
|
|
337
|
-
panelChevron:
|
|
338
|
-
expanded:
|
|
339
|
-
initialized:
|
|
340
|
-
hide:
|
|
341
|
-
show:
|
|
342
|
-
},
|
|
330
|
+
panel: cn,
|
|
331
|
+
content: un,
|
|
332
|
+
secondary: dn,
|
|
333
|
+
info: hn,
|
|
334
|
+
contrast: mn,
|
|
335
|
+
margin: fn,
|
|
336
|
+
panelText: pn,
|
|
337
|
+
panelChevron: _n,
|
|
338
|
+
expanded: gn,
|
|
339
|
+
initialized: vn,
|
|
340
|
+
hide: yn,
|
|
341
|
+
show: xn
|
|
342
|
+
}, ol = ({
|
|
343
343
|
title: e,
|
|
344
344
|
color: t = "default",
|
|
345
345
|
expanded: n = !1,
|
|
@@ -348,106 +348,106 @@ const z = (e) => (e == null ? void 0 : e.filter(Boolean).join(" ")) || "", It =
|
|
|
348
348
|
noMargin: s = !1,
|
|
349
349
|
initialized: c,
|
|
350
350
|
children: u,
|
|
351
|
-
...
|
|
351
|
+
...l
|
|
352
352
|
}) => {
|
|
353
|
-
const [i, d] =
|
|
353
|
+
const [i, d] = ke(n), [g, h] = ke(c), v = () => {
|
|
354
354
|
d(!i), h(!0), a && a();
|
|
355
355
|
};
|
|
356
|
-
|
|
356
|
+
je(() => {
|
|
357
357
|
d(n);
|
|
358
358
|
}, [n]);
|
|
359
|
-
const m = () => /* @__PURE__ */
|
|
359
|
+
const m = () => /* @__PURE__ */ o.jsxs(
|
|
360
360
|
"button",
|
|
361
361
|
{
|
|
362
362
|
...r,
|
|
363
|
-
className:
|
|
364
|
-
onClick:
|
|
363
|
+
className: W.panel,
|
|
364
|
+
onClick: v,
|
|
365
365
|
"aria-expanded": i ? "true" : "false",
|
|
366
366
|
children: [
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
-
/* @__PURE__ */
|
|
367
|
+
/* @__PURE__ */ o.jsx("span", { className: W.panelText, children: e }),
|
|
368
|
+
/* @__PURE__ */ o.jsx(
|
|
369
369
|
"span",
|
|
370
370
|
{
|
|
371
|
-
className: `${
|
|
371
|
+
className: `${W.panelChevron} ${i ? W.expanded : ""}`
|
|
372
372
|
}
|
|
373
373
|
)
|
|
374
374
|
]
|
|
375
375
|
}
|
|
376
|
-
),
|
|
377
|
-
|
|
378
|
-
t &&
|
|
379
|
-
!s &&
|
|
380
|
-
|
|
376
|
+
), y = P([
|
|
377
|
+
W.accordion,
|
|
378
|
+
t && W[t],
|
|
379
|
+
!s && W.margin,
|
|
380
|
+
l.className
|
|
381
381
|
]);
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */
|
|
382
|
+
return /* @__PURE__ */ o.jsxs("div", { className: y, ...l, children: [
|
|
383
|
+
/* @__PURE__ */ o.jsx(m, {}),
|
|
384
|
+
/* @__PURE__ */ o.jsx(
|
|
385
385
|
"div",
|
|
386
386
|
{
|
|
387
|
-
className: `${
|
|
387
|
+
className: `${W.content} ${g ? W.initialized : ""} ${i ? W.expanded : ""}`,
|
|
388
388
|
children: u
|
|
389
389
|
}
|
|
390
390
|
)
|
|
391
391
|
] });
|
|
392
392
|
};
|
|
393
|
-
var
|
|
393
|
+
var we = {}, mt;
|
|
394
394
|
function bn() {
|
|
395
|
-
if (
|
|
396
|
-
|
|
395
|
+
if (mt) return we;
|
|
396
|
+
mt = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.parse = c, we.serialize = i;
|
|
397
397
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, n = /^([.]?[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]*$/, r = Object.prototype.toString, s = /* @__PURE__ */ (() => {
|
|
398
398
|
const h = function() {
|
|
399
399
|
};
|
|
400
400
|
return h.prototype = /* @__PURE__ */ Object.create(null), h;
|
|
401
401
|
})();
|
|
402
|
-
function c(h,
|
|
403
|
-
const m = new s(),
|
|
404
|
-
if (
|
|
402
|
+
function c(h, v) {
|
|
403
|
+
const m = new s(), y = h.length;
|
|
404
|
+
if (y < 2)
|
|
405
405
|
return m;
|
|
406
|
-
const
|
|
406
|
+
const w = (v == null ? void 0 : v.decode) || d;
|
|
407
407
|
let f = 0;
|
|
408
408
|
do {
|
|
409
409
|
const x = h.indexOf("=", f);
|
|
410
410
|
if (x === -1)
|
|
411
411
|
break;
|
|
412
|
-
const b = h.indexOf(";", f),
|
|
413
|
-
if (x >
|
|
412
|
+
const b = h.indexOf(";", f), E = b === -1 ? y : b;
|
|
413
|
+
if (x > E) {
|
|
414
414
|
f = h.lastIndexOf(";", x - 1) + 1;
|
|
415
415
|
continue;
|
|
416
416
|
}
|
|
417
|
-
const
|
|
418
|
-
if (m[
|
|
419
|
-
let
|
|
420
|
-
const
|
|
421
|
-
m[
|
|
417
|
+
const S = u(h, f, x), j = l(h, x, S), N = h.slice(S, j);
|
|
418
|
+
if (m[N] === void 0) {
|
|
419
|
+
let R = u(h, x + 1, E), I = l(h, E, R);
|
|
420
|
+
const $ = w(h.slice(R, I));
|
|
421
|
+
m[N] = $;
|
|
422
422
|
}
|
|
423
|
-
f =
|
|
424
|
-
} while (f <
|
|
423
|
+
f = E + 1;
|
|
424
|
+
} while (f < y);
|
|
425
425
|
return m;
|
|
426
426
|
}
|
|
427
|
-
function u(h,
|
|
427
|
+
function u(h, v, m) {
|
|
428
428
|
do {
|
|
429
|
-
const
|
|
430
|
-
if (
|
|
431
|
-
return
|
|
432
|
-
} while (++
|
|
429
|
+
const y = h.charCodeAt(v);
|
|
430
|
+
if (y !== 32 && y !== 9)
|
|
431
|
+
return v;
|
|
432
|
+
} while (++v < m);
|
|
433
433
|
return m;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
for (;
|
|
437
|
-
const
|
|
438
|
-
if (
|
|
439
|
-
return
|
|
435
|
+
function l(h, v, m) {
|
|
436
|
+
for (; v > m; ) {
|
|
437
|
+
const y = h.charCodeAt(--v);
|
|
438
|
+
if (y !== 32 && y !== 9)
|
|
439
|
+
return v + 1;
|
|
440
440
|
}
|
|
441
441
|
return m;
|
|
442
442
|
}
|
|
443
|
-
function i(h,
|
|
444
|
-
const
|
|
443
|
+
function i(h, v, m) {
|
|
444
|
+
const y = (m == null ? void 0 : m.encode) || encodeURIComponent;
|
|
445
445
|
if (!e.test(h))
|
|
446
446
|
throw new TypeError(`argument name is invalid: ${h}`);
|
|
447
|
-
const
|
|
448
|
-
if (!t.test(
|
|
449
|
-
throw new TypeError(`argument val is invalid: ${
|
|
450
|
-
let f = h + "=" +
|
|
447
|
+
const w = y(v);
|
|
448
|
+
if (!t.test(w))
|
|
449
|
+
throw new TypeError(`argument val is invalid: ${v}`);
|
|
450
|
+
let f = h + "=" + w;
|
|
451
451
|
if (!m)
|
|
452
452
|
return f;
|
|
453
453
|
if (m.maxAge !== void 0) {
|
|
@@ -466,7 +466,7 @@ function bn() {
|
|
|
466
466
|
f += "; Path=" + m.path;
|
|
467
467
|
}
|
|
468
468
|
if (m.expires) {
|
|
469
|
-
if (!
|
|
469
|
+
if (!g(m.expires) || !Number.isFinite(m.expires.valueOf()))
|
|
470
470
|
throw new TypeError(`option expires is invalid: ${m.expires}`);
|
|
471
471
|
f += "; Expires=" + m.expires.toUTCString();
|
|
472
472
|
}
|
|
@@ -510,10 +510,10 @@ function bn() {
|
|
|
510
510
|
return h;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function g(h) {
|
|
514
514
|
return r.call(h) === "[object Date]";
|
|
515
515
|
}
|
|
516
|
-
return
|
|
516
|
+
return we;
|
|
517
517
|
}
|
|
518
518
|
bn();
|
|
519
519
|
/**
|
|
@@ -526,11 +526,11 @@ bn();
|
|
|
526
526
|
*
|
|
527
527
|
* @license MIT
|
|
528
528
|
*/
|
|
529
|
-
function
|
|
529
|
+
function F(e, t) {
|
|
530
530
|
if (e === !1 || e === null || typeof e > "u")
|
|
531
531
|
throw new Error(t);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Z(e, t) {
|
|
534
534
|
if (!e) {
|
|
535
535
|
typeof console < "u" && console.warn(t);
|
|
536
536
|
try {
|
|
@@ -539,14 +539,14 @@ function K(e, t) {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function tt({
|
|
543
543
|
pathname: e = "/",
|
|
544
544
|
search: t = "",
|
|
545
545
|
hash: n = ""
|
|
546
546
|
}) {
|
|
547
547
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function rt(e) {
|
|
550
550
|
let t = {};
|
|
551
551
|
if (e) {
|
|
552
552
|
let n = e.indexOf("#");
|
|
@@ -557,46 +557,46 @@ function nt(e) {
|
|
|
557
557
|
return t;
|
|
558
558
|
}
|
|
559
559
|
function Mt(e, t, n = "/") {
|
|
560
|
-
return
|
|
560
|
+
return wn(e, t, n, !1);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
563
|
-
let r = typeof t == "string" ?
|
|
562
|
+
function wn(e, t, n, a) {
|
|
563
|
+
let r = typeof t == "string" ? rt(t) : t, s = re(r.pathname || "/", n);
|
|
564
564
|
if (s == null)
|
|
565
565
|
return null;
|
|
566
|
-
let c =
|
|
566
|
+
let c = Rt(e);
|
|
567
567
|
Cn(c);
|
|
568
568
|
let u = null;
|
|
569
|
-
for (let
|
|
570
|
-
let i =
|
|
571
|
-
u =
|
|
572
|
-
c[
|
|
569
|
+
for (let l = 0; u == null && l < c.length; ++l) {
|
|
570
|
+
let i = zn(s);
|
|
571
|
+
u = Rn(
|
|
572
|
+
c[l],
|
|
573
573
|
i,
|
|
574
574
|
a
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
return u;
|
|
578
578
|
}
|
|
579
|
-
function
|
|
579
|
+
function Rt(e, t = [], n = [], a = "") {
|
|
580
580
|
let r = (s, c, u) => {
|
|
581
|
-
let
|
|
581
|
+
let l = {
|
|
582
582
|
relativePath: u === void 0 ? s.path || "" : u,
|
|
583
583
|
caseSensitive: s.caseSensitive === !0,
|
|
584
584
|
childrenIndex: c,
|
|
585
585
|
route: s
|
|
586
586
|
};
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
`Absolute route path "${
|
|
590
|
-
),
|
|
591
|
-
let i =
|
|
592
|
-
s.children && s.children.length > 0 && (
|
|
587
|
+
l.relativePath.startsWith("/") && (F(
|
|
588
|
+
l.relativePath.startsWith(a),
|
|
589
|
+
`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.`
|
|
590
|
+
), l.relativePath = l.relativePath.slice(a.length));
|
|
591
|
+
let i = K([a, l.relativePath]), d = n.concat(l);
|
|
592
|
+
s.children && s.children.length > 0 && (F(
|
|
593
593
|
// Our types know better, but runtime JS may not!
|
|
594
594
|
// @ts-expect-error
|
|
595
595
|
s.index !== !0,
|
|
596
596
|
`Index routes must not have child routes. Please remove all child routes from route path "${i}".`
|
|
597
|
-
),
|
|
597
|
+
), Rt(s.children, t, d, i)), !(s.path == null && !s.index) && t.push({
|
|
598
598
|
path: i,
|
|
599
|
-
score:
|
|
599
|
+
score: In(i, s.index),
|
|
600
600
|
routesMeta: d
|
|
601
601
|
});
|
|
602
602
|
};
|
|
@@ -605,23 +605,23 @@ function Nt(e, t = [], n = [], a = "") {
|
|
|
605
605
|
if (s.path === "" || !((u = s.path) != null && u.includes("?")))
|
|
606
606
|
r(s, c);
|
|
607
607
|
else
|
|
608
|
-
for (let
|
|
609
|
-
r(s, c,
|
|
608
|
+
for (let l of Nt(s.path))
|
|
609
|
+
r(s, c, l);
|
|
610
610
|
}), t;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function Nt(e) {
|
|
613
613
|
let t = e.split("/");
|
|
614
614
|
if (t.length === 0) return [];
|
|
615
615
|
let [n, ...a] = t, r = n.endsWith("?"), s = n.replace(/\?$/, "");
|
|
616
616
|
if (a.length === 0)
|
|
617
617
|
return r ? [s, ""] : [s];
|
|
618
|
-
let c =
|
|
618
|
+
let c = Nt(a.join("/")), u = [];
|
|
619
619
|
return u.push(
|
|
620
620
|
...c.map(
|
|
621
|
-
(
|
|
621
|
+
(l) => l === "" ? s : [s, l].join("/")
|
|
622
622
|
)
|
|
623
623
|
), r && u.push(...c), u.map(
|
|
624
|
-
(
|
|
624
|
+
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
625
625
|
);
|
|
626
626
|
}
|
|
627
627
|
function Cn(e) {
|
|
@@ -632,11 +632,11 @@ function Cn(e) {
|
|
|
632
632
|
)
|
|
633
633
|
);
|
|
634
634
|
}
|
|
635
|
-
var
|
|
636
|
-
function
|
|
635
|
+
var En = /^:[\w-]+$/, kn = 3, jn = 2, Ln = 1, Sn = 10, $n = -2, ft = (e) => e === "*";
|
|
636
|
+
function In(e, t) {
|
|
637
637
|
let n = e.split("/"), a = n.length;
|
|
638
|
-
return n.some(
|
|
639
|
-
(r, s) => r + (
|
|
638
|
+
return n.some(ft) && (a += $n), t && (a += jn), n.filter((r) => !ft(r)).reduce(
|
|
639
|
+
(r, s) => r + (En.test(s) ? kn : s === "" ? Ln : Sn),
|
|
640
640
|
a
|
|
641
641
|
);
|
|
642
642
|
}
|
|
@@ -653,37 +653,37 @@ function Mn(e, t) {
|
|
|
653
653
|
0
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Rn(e, t, n = !1) {
|
|
657
657
|
let { routesMeta: a } = e, r = {}, s = "/", c = [];
|
|
658
658
|
for (let u = 0; u < a.length; ++u) {
|
|
659
|
-
let
|
|
660
|
-
{ path:
|
|
659
|
+
let l = a[u], i = u === a.length - 1, d = s === "/" ? t : t.slice(s.length) || "/", g = Fe(
|
|
660
|
+
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: i },
|
|
661
661
|
d
|
|
662
|
-
), h =
|
|
663
|
-
if (!
|
|
662
|
+
), h = l.route;
|
|
663
|
+
if (!g && i && n && !a[a.length - 1].route.index && (g = Fe(
|
|
664
664
|
{
|
|
665
|
-
path:
|
|
666
|
-
caseSensitive:
|
|
665
|
+
path: l.relativePath,
|
|
666
|
+
caseSensitive: l.caseSensitive,
|
|
667
667
|
end: !1
|
|
668
668
|
},
|
|
669
669
|
d
|
|
670
|
-
)), !
|
|
670
|
+
)), !g)
|
|
671
671
|
return null;
|
|
672
|
-
Object.assign(r,
|
|
672
|
+
Object.assign(r, g.params), c.push({
|
|
673
673
|
// TODO: Can this as be avoided?
|
|
674
674
|
params: r,
|
|
675
|
-
pathname:
|
|
676
|
-
pathnameBase:
|
|
677
|
-
|
|
675
|
+
pathname: K([s, g.pathname]),
|
|
676
|
+
pathnameBase: Dn(
|
|
677
|
+
K([s, g.pathnameBase])
|
|
678
678
|
),
|
|
679
679
|
route: h
|
|
680
|
-
}),
|
|
680
|
+
}), g.pathnameBase !== "/" && (s = K([s, g.pathnameBase]));
|
|
681
681
|
}
|
|
682
682
|
return c;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Fe(e, t) {
|
|
685
685
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
686
|
-
let [n, a] =
|
|
686
|
+
let [n, a] = Nn(
|
|
687
687
|
e.path,
|
|
688
688
|
e.caseSensitive,
|
|
689
689
|
e.end
|
|
@@ -692,13 +692,13 @@ function Ae(e, t) {
|
|
|
692
692
|
let s = r[0], c = s.replace(/(.)\/+$/, "$1"), u = r.slice(1);
|
|
693
693
|
return {
|
|
694
694
|
params: a.reduce(
|
|
695
|
-
(i, { paramName: d, isOptional:
|
|
695
|
+
(i, { paramName: d, isOptional: g }, h) => {
|
|
696
696
|
if (d === "*") {
|
|
697
697
|
let m = u[h] || "";
|
|
698
698
|
c = s.slice(0, s.length - m.length).replace(/(.)\/+$/, "$1");
|
|
699
699
|
}
|
|
700
|
-
const
|
|
701
|
-
return
|
|
700
|
+
const v = u[h];
|
|
701
|
+
return g && !v ? i[d] = void 0 : i[d] = (v || "").replace(/%2F/g, "/"), i;
|
|
702
702
|
},
|
|
703
703
|
{}
|
|
704
704
|
),
|
|
@@ -707,197 +707,197 @@ function Ae(e, t) {
|
|
|
707
707
|
pattern: e
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
|
|
710
|
+
function Nn(e, t = !1, n = !0) {
|
|
711
|
+
Z(
|
|
712
712
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
713
713
|
`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(/\*$/, "/*")}".`
|
|
714
714
|
);
|
|
715
715
|
let a = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
716
716
|
/\/:([\w-]+)(\?)?/g,
|
|
717
|
-
(c, u,
|
|
717
|
+
(c, u, l) => (a.push({ paramName: u, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
718
718
|
);
|
|
719
719
|
return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, t ? void 0 : "i"), a];
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function zn(e) {
|
|
722
722
|
try {
|
|
723
723
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
724
724
|
} catch (t) {
|
|
725
|
-
return
|
|
725
|
+
return Z(
|
|
726
726
|
!1,
|
|
727
727
|
`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}).`
|
|
728
728
|
), e;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function re(e, t) {
|
|
732
732
|
if (t === "/") return e;
|
|
733
733
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
734
734
|
return null;
|
|
735
735
|
let n = t.endsWith("/") ? t.length - 1 : t.length, a = e.charAt(n);
|
|
736
736
|
return a && a !== "/" ? null : e.slice(n) || "/";
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Tn(e, t = "/") {
|
|
739
739
|
let {
|
|
740
740
|
pathname: n,
|
|
741
741
|
search: a = "",
|
|
742
742
|
hash: r = ""
|
|
743
|
-
} = typeof e == "string" ?
|
|
743
|
+
} = typeof e == "string" ? rt(e) : e;
|
|
744
744
|
return {
|
|
745
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
746
|
-
search:
|
|
747
|
-
hash:
|
|
745
|
+
pathname: n ? n.startsWith("/") ? n : Pn(n, t) : t,
|
|
746
|
+
search: An(a),
|
|
747
|
+
hash: Fn(r)
|
|
748
748
|
};
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Pn(e, t) {
|
|
751
751
|
let n = t.replace(/\/+$/, "").split("/");
|
|
752
752
|
return e.split("/").forEach((r) => {
|
|
753
753
|
r === ".." ? n.length > 1 && n.pop() : r !== "." && n.push(r);
|
|
754
754
|
}), n.length > 1 ? n.join("/") : "/";
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Ye(e, t, n, a) {
|
|
757
757
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
758
758
|
a
|
|
759
759
|
)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function Bn(e) {
|
|
762
762
|
return e.filter(
|
|
763
763
|
(t, n) => n === 0 || t.route.path && t.route.path.length > 0
|
|
764
764
|
);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
let t =
|
|
766
|
+
function zt(e) {
|
|
767
|
+
let t = Bn(e);
|
|
768
768
|
return t.map(
|
|
769
769
|
(n, a) => a === t.length - 1 ? n.pathname : n.pathnameBase
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Tt(e, t, n, a = !1) {
|
|
773
773
|
let r;
|
|
774
|
-
typeof e == "string" ? r =
|
|
774
|
+
typeof e == "string" ? r = rt(e) : (r = { ...e }, F(
|
|
775
775
|
!r.pathname || !r.pathname.includes("?"),
|
|
776
|
-
|
|
777
|
-
),
|
|
776
|
+
Ye("?", "pathname", "search", r)
|
|
777
|
+
), F(
|
|
778
778
|
!r.pathname || !r.pathname.includes("#"),
|
|
779
|
-
|
|
780
|
-
),
|
|
779
|
+
Ye("#", "pathname", "hash", r)
|
|
780
|
+
), F(
|
|
781
781
|
!r.search || !r.search.includes("#"),
|
|
782
|
-
|
|
782
|
+
Ye("#", "search", "hash", r)
|
|
783
783
|
));
|
|
784
784
|
let s = e === "" || r.pathname === "", c = s ? "/" : r.pathname, u;
|
|
785
785
|
if (c == null)
|
|
786
786
|
u = n;
|
|
787
787
|
else {
|
|
788
|
-
let
|
|
788
|
+
let g = t.length - 1;
|
|
789
789
|
if (!a && c.startsWith("..")) {
|
|
790
790
|
let h = c.split("/");
|
|
791
791
|
for (; h[0] === ".."; )
|
|
792
|
-
h.shift(),
|
|
792
|
+
h.shift(), g -= 1;
|
|
793
793
|
r.pathname = h.join("/");
|
|
794
794
|
}
|
|
795
|
-
u =
|
|
795
|
+
u = g >= 0 ? t[g] : "/";
|
|
796
796
|
}
|
|
797
|
-
let
|
|
798
|
-
return !
|
|
797
|
+
let l = Tn(r, u), i = c && c !== "/" && c.endsWith("/"), d = (s || c === ".") && n.endsWith("/");
|
|
798
|
+
return !l.pathname.endsWith("/") && (i || d) && (l.pathname += "/"), l;
|
|
799
799
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
800
|
+
var K = (e) => e.join("/").replace(/\/\/+/g, "/"), Dn = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), An = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
801
|
+
function On(e) {
|
|
802
802
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
803
803
|
}
|
|
804
|
-
var
|
|
804
|
+
var Pt = [
|
|
805
805
|
"POST",
|
|
806
806
|
"PUT",
|
|
807
807
|
"PATCH",
|
|
808
808
|
"DELETE"
|
|
809
809
|
];
|
|
810
810
|
new Set(
|
|
811
|
-
|
|
811
|
+
Pt
|
|
812
812
|
);
|
|
813
|
-
var
|
|
813
|
+
var qn = [
|
|
814
814
|
"GET",
|
|
815
|
-
...
|
|
815
|
+
...Pt
|
|
816
816
|
];
|
|
817
|
-
new Set(
|
|
818
|
-
var
|
|
819
|
-
|
|
820
|
-
var
|
|
821
|
-
|
|
822
|
-
var
|
|
817
|
+
new Set(qn);
|
|
818
|
+
var ye = p.createContext(null);
|
|
819
|
+
ye.displayName = "DataRouter";
|
|
820
|
+
var Oe = p.createContext(null);
|
|
821
|
+
Oe.displayName = "DataRouterState";
|
|
822
|
+
var Bt = p.createContext({
|
|
823
823
|
isTransitioning: !1
|
|
824
824
|
});
|
|
825
|
-
|
|
826
|
-
var
|
|
825
|
+
Bt.displayName = "ViewTransition";
|
|
826
|
+
var Hn = p.createContext(
|
|
827
827
|
/* @__PURE__ */ new Map()
|
|
828
828
|
);
|
|
829
|
-
|
|
830
|
-
var
|
|
831
|
-
|
|
832
|
-
var
|
|
829
|
+
Hn.displayName = "Fetchers";
|
|
830
|
+
var Vn = p.createContext(null);
|
|
831
|
+
Vn.displayName = "Await";
|
|
832
|
+
var Q = p.createContext(
|
|
833
833
|
null
|
|
834
834
|
);
|
|
835
|
-
|
|
836
|
-
var
|
|
835
|
+
Q.displayName = "Navigation";
|
|
836
|
+
var at = p.createContext(
|
|
837
837
|
null
|
|
838
838
|
);
|
|
839
|
-
|
|
840
|
-
var
|
|
839
|
+
at.displayName = "Location";
|
|
840
|
+
var ee = p.createContext({
|
|
841
841
|
outlet: null,
|
|
842
842
|
matches: [],
|
|
843
843
|
isDataRoute: !1
|
|
844
844
|
});
|
|
845
|
-
|
|
846
|
-
var
|
|
847
|
-
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
|
|
845
|
+
ee.displayName = "Route";
|
|
846
|
+
var st = p.createContext(null);
|
|
847
|
+
st.displayName = "RouteError";
|
|
848
|
+
function Xn(e, { relative: t } = {}) {
|
|
849
|
+
F(
|
|
850
|
+
qe(),
|
|
851
851
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
852
852
|
// router loaded. We can help them understand how to avoid that.
|
|
853
853
|
"useHref() may be used only in the context of a <Router> component."
|
|
854
854
|
);
|
|
855
|
-
let { basename: n, navigator: a } = p.useContext(
|
|
856
|
-
return n !== "/" && (u = s === "/" ? n :
|
|
855
|
+
let { basename: n, navigator: a } = p.useContext(Q), { hash: r, pathname: s, search: c } = Re(e, { relative: t }), u = s;
|
|
856
|
+
return n !== "/" && (u = s === "/" ? n : K([n, s])), a.createHref({ pathname: u, search: c, hash: r });
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
return p.useContext(
|
|
858
|
+
function qe() {
|
|
859
|
+
return p.useContext(at) != null;
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
return
|
|
863
|
-
|
|
861
|
+
function oe() {
|
|
862
|
+
return F(
|
|
863
|
+
qe(),
|
|
864
864
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
865
865
|
// router loaded. We can help them understand how to avoid that.
|
|
866
866
|
"useLocation() may be used only in the context of a <Router> component."
|
|
867
|
-
), p.useContext(
|
|
867
|
+
), p.useContext(at).location;
|
|
868
868
|
}
|
|
869
|
-
var
|
|
870
|
-
function
|
|
871
|
-
p.useContext(
|
|
869
|
+
var Dt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
870
|
+
function At(e) {
|
|
871
|
+
p.useContext(Q).static || p.useLayoutEffect(e);
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
let { isDataRoute: e } = p.useContext(
|
|
875
|
-
return e ?
|
|
873
|
+
function Wn() {
|
|
874
|
+
let { isDataRoute: e } = p.useContext(ee);
|
|
875
|
+
return e ? sr() : Un();
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
|
|
879
|
-
|
|
877
|
+
function Un() {
|
|
878
|
+
F(
|
|
879
|
+
qe(),
|
|
880
880
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
881
881
|
// router loaded. We can help them understand how to avoid that.
|
|
882
882
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
883
883
|
);
|
|
884
|
-
let e = p.useContext(
|
|
885
|
-
return
|
|
884
|
+
let e = p.useContext(ye), { basename: t, navigator: n } = p.useContext(Q), { matches: a } = p.useContext(ee), { pathname: r } = oe(), s = JSON.stringify(zt(a)), c = p.useRef(!1);
|
|
885
|
+
return At(() => {
|
|
886
886
|
c.current = !0;
|
|
887
887
|
}), p.useCallback(
|
|
888
|
-
(
|
|
889
|
-
if (
|
|
890
|
-
if (typeof
|
|
891
|
-
n.go(
|
|
888
|
+
(l, i = {}) => {
|
|
889
|
+
if (Z(c.current, Dt), !c.current) return;
|
|
890
|
+
if (typeof l == "number") {
|
|
891
|
+
n.go(l);
|
|
892
892
|
return;
|
|
893
893
|
}
|
|
894
|
-
let d =
|
|
895
|
-
|
|
894
|
+
let d = Tt(
|
|
895
|
+
l,
|
|
896
896
|
JSON.parse(s),
|
|
897
897
|
r,
|
|
898
898
|
i.relative === "path"
|
|
899
899
|
);
|
|
900
|
-
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t :
|
|
900
|
+
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : K([t, d.pathname])), (i.replace ? n.replace : n.push)(
|
|
901
901
|
d,
|
|
902
902
|
i.state,
|
|
903
903
|
i
|
|
@@ -913,10 +913,10 @@ function Yn() {
|
|
|
913
913
|
);
|
|
914
914
|
}
|
|
915
915
|
p.createContext(null);
|
|
916
|
-
function
|
|
917
|
-
let { matches: n } = p.useContext(
|
|
916
|
+
function Re(e, { relative: t } = {}) {
|
|
917
|
+
let { matches: n } = p.useContext(ee), { pathname: a } = oe(), r = JSON.stringify(zt(n));
|
|
918
918
|
return p.useMemo(
|
|
919
|
-
() =>
|
|
919
|
+
() => Tt(
|
|
920
920
|
e,
|
|
921
921
|
JSON.parse(r),
|
|
922
922
|
a,
|
|
@@ -925,48 +925,48 @@ function Ie(e, { relative: t } = {}) {
|
|
|
925
925
|
[e, r, a, t]
|
|
926
926
|
);
|
|
927
927
|
}
|
|
928
|
-
function
|
|
929
|
-
|
|
930
|
-
|
|
928
|
+
function Yn(e, t, n, a) {
|
|
929
|
+
F(
|
|
930
|
+
qe(),
|
|
931
931
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
932
932
|
// router loaded. We can help them understand how to avoid that.
|
|
933
933
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
934
934
|
);
|
|
935
|
-
let { navigator: r } = p.useContext(
|
|
935
|
+
let { navigator: r } = p.useContext(Q), { matches: s } = p.useContext(ee), c = s[s.length - 1], u = c ? c.params : {}, l = c ? c.pathname : "/", i = c ? c.pathnameBase : "/", d = c && c.route;
|
|
936
936
|
{
|
|
937
937
|
let f = d && d.path || "";
|
|
938
|
-
|
|
939
|
-
|
|
938
|
+
Ft(
|
|
939
|
+
l,
|
|
940
940
|
!d || f.endsWith("*") || f.endsWith("*?"),
|
|
941
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
941
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${f}">) 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.
|
|
942
942
|
|
|
943
943
|
Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" : `${f}/*`}">.`
|
|
944
944
|
);
|
|
945
945
|
}
|
|
946
|
-
let
|
|
947
|
-
h =
|
|
948
|
-
let
|
|
946
|
+
let g = oe(), h;
|
|
947
|
+
h = g;
|
|
948
|
+
let v = h.pathname || "/", m = v;
|
|
949
949
|
if (i !== "/") {
|
|
950
950
|
let f = i.replace(/^\//, "").split("/");
|
|
951
|
-
m = "/" +
|
|
951
|
+
m = "/" + v.replace(/^\//, "").split("/").slice(f.length).join("/");
|
|
952
952
|
}
|
|
953
|
-
let
|
|
954
|
-
return
|
|
955
|
-
d ||
|
|
953
|
+
let y = Mt(e, { pathname: m });
|
|
954
|
+
return Z(
|
|
955
|
+
d || y != null,
|
|
956
956
|
`No routes matched location "${h.pathname}${h.search}${h.hash}" `
|
|
957
|
-
),
|
|
958
|
-
|
|
957
|
+
), Z(
|
|
958
|
+
y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0,
|
|
959
959
|
`Matched leaf route at location "${h.pathname}${h.search}${h.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.`
|
|
960
|
-
),
|
|
961
|
-
|
|
960
|
+
), Qn(
|
|
961
|
+
y && y.map(
|
|
962
962
|
(f) => Object.assign({}, f, {
|
|
963
963
|
params: Object.assign({}, u, f.params),
|
|
964
|
-
pathname:
|
|
964
|
+
pathname: K([
|
|
965
965
|
i,
|
|
966
966
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
967
967
|
r.encodeLocation ? r.encodeLocation(f.pathname).pathname : f.pathname
|
|
968
968
|
]),
|
|
969
|
-
pathnameBase: f.pathnameBase === "/" ? i :
|
|
969
|
+
pathnameBase: f.pathnameBase === "/" ? i : K([
|
|
970
970
|
i,
|
|
971
971
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
972
972
|
r.encodeLocation ? r.encodeLocation(f.pathnameBase).pathname : f.pathnameBase
|
|
@@ -978,14 +978,14 @@ Please change the parent <Route path="${f}"> to <Route path="${f === "/" ? "*" :
|
|
|
978
978
|
a
|
|
979
979
|
);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
982
|
-
let e =
|
|
981
|
+
function Jn() {
|
|
982
|
+
let e = ar(), t = On(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, s = { padding: "2px 4px", backgroundColor: a }, c = null;
|
|
983
983
|
return console.error(
|
|
984
984
|
"Error handled by React Router default ErrorBoundary:",
|
|
985
985
|
e
|
|
986
986
|
), c = /* @__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: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ p.createElement("code", { style: s }, "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), n ? /* @__PURE__ */ p.createElement("pre", { style: r }, n) : null, c);
|
|
987
987
|
}
|
|
988
|
-
var
|
|
988
|
+
var Gn = /* @__PURE__ */ p.createElement(Jn, null), Kn = class extends p.Component {
|
|
989
989
|
constructor(e) {
|
|
990
990
|
super(e), this.state = {
|
|
991
991
|
location: e.location,
|
|
@@ -1015,8 +1015,8 @@ var Kn = /* @__PURE__ */ p.createElement(Gn, null), Zn = class extends p.Compone
|
|
|
1015
1015
|
);
|
|
1016
1016
|
}
|
|
1017
1017
|
render() {
|
|
1018
|
-
return this.state.error !== void 0 ? /* @__PURE__ */ p.createElement(
|
|
1019
|
-
|
|
1018
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ p.createElement(ee.Provider, { value: this.props.routeContext }, /* @__PURE__ */ p.createElement(
|
|
1019
|
+
st.Provider,
|
|
1020
1020
|
{
|
|
1021
1021
|
value: this.state.error,
|
|
1022
1022
|
children: this.props.component
|
|
@@ -1024,11 +1024,11 @@ var Kn = /* @__PURE__ */ p.createElement(Gn, null), Zn = class extends p.Compone
|
|
|
1024
1024
|
)) : this.props.children;
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
function
|
|
1028
|
-
let a = p.useContext(
|
|
1029
|
-
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(
|
|
1027
|
+
function Zn({ routeContext: e, match: t, children: n }) {
|
|
1028
|
+
let a = p.useContext(ye);
|
|
1029
|
+
return a && a.static && a.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ p.createElement(ee.Provider, { value: e }, n);
|
|
1030
1030
|
}
|
|
1031
|
-
function
|
|
1031
|
+
function Qn(e, t = [], n = null, a = null) {
|
|
1032
1032
|
if (e == null) {
|
|
1033
1033
|
if (!n)
|
|
1034
1034
|
return null;
|
|
@@ -1041,47 +1041,47 @@ function er(e, t = [], n = null, a = null) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
let r = e, s = n == null ? void 0 : n.errors;
|
|
1043
1043
|
if (s != null) {
|
|
1044
|
-
let
|
|
1044
|
+
let l = r.findIndex(
|
|
1045
1045
|
(i) => i.route.id && (s == null ? void 0 : s[i.route.id]) !== void 0
|
|
1046
1046
|
);
|
|
1047
|
-
|
|
1048
|
-
|
|
1047
|
+
F(
|
|
1048
|
+
l >= 0,
|
|
1049
1049
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
1050
1050
|
s
|
|
1051
1051
|
).join(",")}`
|
|
1052
1052
|
), r = r.slice(
|
|
1053
1053
|
0,
|
|
1054
|
-
Math.min(r.length,
|
|
1054
|
+
Math.min(r.length, l + 1)
|
|
1055
1055
|
);
|
|
1056
1056
|
}
|
|
1057
1057
|
let c = !1, u = -1;
|
|
1058
1058
|
if (n)
|
|
1059
|
-
for (let
|
|
1060
|
-
let i = r[
|
|
1061
|
-
if ((i.route.HydrateFallback || i.route.hydrateFallbackElement) && (u =
|
|
1062
|
-
let { loaderData: d, errors:
|
|
1059
|
+
for (let l = 0; l < r.length; l++) {
|
|
1060
|
+
let i = r[l];
|
|
1061
|
+
if ((i.route.HydrateFallback || i.route.hydrateFallbackElement) && (u = l), i.route.id) {
|
|
1062
|
+
let { loaderData: d, errors: g } = n, h = i.route.loader && !d.hasOwnProperty(i.route.id) && (!g || g[i.route.id] === void 0);
|
|
1063
1063
|
if (i.route.lazy || h) {
|
|
1064
1064
|
c = !0, u >= 0 ? r = r.slice(0, u + 1) : r = [r[0]];
|
|
1065
1065
|
break;
|
|
1066
1066
|
}
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
return r.reduceRight((
|
|
1070
|
-
let
|
|
1071
|
-
n && (
|
|
1069
|
+
return r.reduceRight((l, i, d) => {
|
|
1070
|
+
let g, h = !1, v = null, m = null;
|
|
1071
|
+
n && (g = s && i.route.id ? s[i.route.id] : void 0, v = i.route.errorElement || Gn, c && (u < 0 && d === 0 ? (Ft(
|
|
1072
1072
|
"route-fallback",
|
|
1073
1073
|
!1,
|
|
1074
1074
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
1075
1075
|
), h = !0, m = null) : u === d && (h = !0, m = i.route.hydrateFallbackElement || null)));
|
|
1076
|
-
let
|
|
1076
|
+
let y = t.concat(r.slice(0, d + 1)), w = () => {
|
|
1077
1077
|
let f;
|
|
1078
|
-
return
|
|
1079
|
-
|
|
1078
|
+
return g ? f = v : h ? f = m : i.route.Component ? f = /* @__PURE__ */ p.createElement(i.route.Component, null) : i.route.element ? f = i.route.element : f = l, /* @__PURE__ */ p.createElement(
|
|
1079
|
+
Zn,
|
|
1080
1080
|
{
|
|
1081
1081
|
match: i,
|
|
1082
1082
|
routeContext: {
|
|
1083
|
-
outlet:
|
|
1084
|
-
matches:
|
|
1083
|
+
outlet: l,
|
|
1084
|
+
matches: y,
|
|
1085
1085
|
isDataRoute: n != null
|
|
1086
1086
|
},
|
|
1087
1087
|
children: f
|
|
@@ -1089,165 +1089,165 @@ function er(e, t = [], n = null, a = null) {
|
|
|
1089
1089
|
);
|
|
1090
1090
|
};
|
|
1091
1091
|
return n && (i.route.ErrorBoundary || i.route.errorElement || d === 0) ? /* @__PURE__ */ p.createElement(
|
|
1092
|
-
|
|
1092
|
+
Kn,
|
|
1093
1093
|
{
|
|
1094
1094
|
location: n.location,
|
|
1095
1095
|
revalidation: n.revalidation,
|
|
1096
|
-
component:
|
|
1097
|
-
error:
|
|
1098
|
-
children:
|
|
1099
|
-
routeContext: { outlet: null, matches:
|
|
1096
|
+
component: v,
|
|
1097
|
+
error: g,
|
|
1098
|
+
children: w(),
|
|
1099
|
+
routeContext: { outlet: null, matches: y, isDataRoute: !0 }
|
|
1100
1100
|
}
|
|
1101
|
-
) :
|
|
1101
|
+
) : w();
|
|
1102
1102
|
}, null);
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function ot(e) {
|
|
1105
1105
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1106
1106
|
}
|
|
1107
|
+
function er(e) {
|
|
1108
|
+
let t = p.useContext(ye);
|
|
1109
|
+
return F(t, ot(e)), t;
|
|
1110
|
+
}
|
|
1107
1111
|
function tr(e) {
|
|
1108
|
-
let t = p.useContext(
|
|
1109
|
-
return
|
|
1112
|
+
let t = p.useContext(Oe);
|
|
1113
|
+
return F(t, ot(e)), t;
|
|
1110
1114
|
}
|
|
1111
1115
|
function nr(e) {
|
|
1112
|
-
let t = p.useContext(
|
|
1113
|
-
return
|
|
1114
|
-
}
|
|
1115
|
-
function rr(e) {
|
|
1116
|
-
let t = p.useContext(Q);
|
|
1117
|
-
return D(t, st(e)), t;
|
|
1116
|
+
let t = p.useContext(ee);
|
|
1117
|
+
return F(t, ot(e)), t;
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1120
|
-
let t =
|
|
1121
|
-
return
|
|
1119
|
+
function lt(e) {
|
|
1120
|
+
let t = nr(e), n = t.matches[t.matches.length - 1];
|
|
1121
|
+
return F(
|
|
1122
1122
|
n.route.id,
|
|
1123
1123
|
`${e} can only be used on routes that contain a unique "id"`
|
|
1124
1124
|
), n.route.id;
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return
|
|
1126
|
+
function rr() {
|
|
1127
|
+
return lt(
|
|
1128
1128
|
"useRouteId"
|
|
1129
1129
|
/* UseRouteId */
|
|
1130
1130
|
);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function ar() {
|
|
1133
1133
|
var a;
|
|
1134
|
-
let e = p.useContext(
|
|
1134
|
+
let e = p.useContext(st), t = tr(
|
|
1135
1135
|
"useRouteError"
|
|
1136
1136
|
/* UseRouteError */
|
|
1137
|
-
), n =
|
|
1137
|
+
), n = lt(
|
|
1138
1138
|
"useRouteError"
|
|
1139
1139
|
/* UseRouteError */
|
|
1140
1140
|
);
|
|
1141
1141
|
return e !== void 0 ? e : (a = t.errors) == null ? void 0 : a[n];
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1144
|
-
let { router: e } =
|
|
1143
|
+
function sr() {
|
|
1144
|
+
let { router: e } = er(
|
|
1145
1145
|
"useNavigate"
|
|
1146
1146
|
/* UseNavigateStable */
|
|
1147
|
-
), t =
|
|
1147
|
+
), t = lt(
|
|
1148
1148
|
"useNavigate"
|
|
1149
1149
|
/* UseNavigateStable */
|
|
1150
1150
|
), n = p.useRef(!1);
|
|
1151
|
-
return
|
|
1151
|
+
return At(() => {
|
|
1152
1152
|
n.current = !0;
|
|
1153
1153
|
}), p.useCallback(
|
|
1154
1154
|
async (r, s = {}) => {
|
|
1155
|
-
|
|
1155
|
+
Z(n.current, Dt), n.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: t, ...s }));
|
|
1156
1156
|
},
|
|
1157
1157
|
[e, t]
|
|
1158
1158
|
);
|
|
1159
1159
|
}
|
|
1160
|
-
var
|
|
1161
|
-
function
|
|
1162
|
-
!t && !
|
|
1160
|
+
var pt = {};
|
|
1161
|
+
function Ft(e, t, n) {
|
|
1162
|
+
!t && !pt[e] && (pt[e] = !0, Z(!1, n));
|
|
1163
1163
|
}
|
|
1164
|
-
p.memo(
|
|
1165
|
-
function
|
|
1164
|
+
p.memo(or);
|
|
1165
|
+
function or({
|
|
1166
1166
|
routes: e,
|
|
1167
1167
|
future: t,
|
|
1168
1168
|
state: n
|
|
1169
1169
|
}) {
|
|
1170
|
-
return
|
|
1170
|
+
return Yn(e, void 0, n, t);
|
|
1171
1171
|
}
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1172
|
+
var De = "get", Ae = "application/x-www-form-urlencoded";
|
|
1173
|
+
function He(e) {
|
|
1174
1174
|
return e != null && typeof e.tagName == "string";
|
|
1175
1175
|
}
|
|
1176
|
+
function lr(e) {
|
|
1177
|
+
return He(e) && e.tagName.toLowerCase() === "button";
|
|
1178
|
+
}
|
|
1176
1179
|
function ir(e) {
|
|
1177
|
-
return
|
|
1180
|
+
return He(e) && e.tagName.toLowerCase() === "form";
|
|
1178
1181
|
}
|
|
1179
1182
|
function cr(e) {
|
|
1180
|
-
return
|
|
1183
|
+
return He(e) && e.tagName.toLowerCase() === "input";
|
|
1181
1184
|
}
|
|
1182
1185
|
function ur(e) {
|
|
1183
|
-
return qe(e) && e.tagName.toLowerCase() === "input";
|
|
1184
|
-
}
|
|
1185
|
-
function dr(e) {
|
|
1186
1186
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function dr(e, t) {
|
|
1189
1189
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1190
1190
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1191
|
-
!
|
|
1191
|
+
!ur(e);
|
|
1192
1192
|
}
|
|
1193
|
-
var
|
|
1194
|
-
function
|
|
1195
|
-
if (
|
|
1193
|
+
var ze = null;
|
|
1194
|
+
function hr() {
|
|
1195
|
+
if (ze === null)
|
|
1196
1196
|
try {
|
|
1197
1197
|
new FormData(
|
|
1198
1198
|
document.createElement("form"),
|
|
1199
1199
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1200
1200
|
0
|
|
1201
|
-
),
|
|
1201
|
+
), ze = !1;
|
|
1202
1202
|
} catch {
|
|
1203
|
-
|
|
1203
|
+
ze = !0;
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return ze;
|
|
1206
1206
|
}
|
|
1207
|
-
var
|
|
1207
|
+
var mr = /* @__PURE__ */ new Set([
|
|
1208
1208
|
"application/x-www-form-urlencoded",
|
|
1209
1209
|
"multipart/form-data",
|
|
1210
1210
|
"text/plain"
|
|
1211
1211
|
]);
|
|
1212
|
-
function
|
|
1213
|
-
return e != null && !
|
|
1212
|
+
function Je(e) {
|
|
1213
|
+
return e != null && !mr.has(e) ? (Z(
|
|
1214
1214
|
!1,
|
|
1215
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
1215
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ae}"`
|
|
1216
1216
|
), null) : e;
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function fr(e, t) {
|
|
1219
1219
|
let n, a, r, s, c;
|
|
1220
|
-
if (
|
|
1220
|
+
if (ir(e)) {
|
|
1221
1221
|
let u = e.getAttribute("action");
|
|
1222
|
-
a = u ?
|
|
1223
|
-
} else if (
|
|
1222
|
+
a = u ? re(u, t) : null, n = e.getAttribute("method") || De, r = Je(e.getAttribute("enctype")) || Ae, s = new FormData(e);
|
|
1223
|
+
} else if (lr(e) || cr(e) && (e.type === "submit" || e.type === "image")) {
|
|
1224
1224
|
let u = e.form;
|
|
1225
1225
|
if (u == null)
|
|
1226
1226
|
throw new Error(
|
|
1227
1227
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1228
1228
|
);
|
|
1229
|
-
let
|
|
1230
|
-
if (a =
|
|
1231
|
-
let { name: i, type: d, value:
|
|
1229
|
+
let l = e.getAttribute("formaction") || u.getAttribute("action");
|
|
1230
|
+
if (a = l ? re(l, t) : null, n = e.getAttribute("formmethod") || u.getAttribute("method") || De, r = Je(e.getAttribute("formenctype")) || Je(u.getAttribute("enctype")) || Ae, s = new FormData(u, e), !hr()) {
|
|
1231
|
+
let { name: i, type: d, value: g } = e;
|
|
1232
1232
|
if (d === "image") {
|
|
1233
1233
|
let h = i ? `${i}.` : "";
|
|
1234
1234
|
s.append(`${h}x`, "0"), s.append(`${h}y`, "0");
|
|
1235
|
-
} else i && s.append(i,
|
|
1235
|
+
} else i && s.append(i, g);
|
|
1236
1236
|
}
|
|
1237
1237
|
} else {
|
|
1238
|
-
if (
|
|
1238
|
+
if (He(e))
|
|
1239
1239
|
throw new Error(
|
|
1240
1240
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1241
1241
|
);
|
|
1242
|
-
n =
|
|
1242
|
+
n = De, a = null, r = Ae, c = e;
|
|
1243
1243
|
}
|
|
1244
1244
|
return s && r === "text/plain" && (c = s, s = void 0), { action: a, method: n.toLowerCase(), encType: r, formData: s, body: c };
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function it(e, t) {
|
|
1247
1247
|
if (e === !1 || e === null || typeof e > "u")
|
|
1248
1248
|
throw new Error(t);
|
|
1249
1249
|
}
|
|
1250
|
-
async function
|
|
1250
|
+
async function pr(e, t) {
|
|
1251
1251
|
if (e.id in t)
|
|
1252
1252
|
return t[e.id];
|
|
1253
1253
|
try {
|
|
@@ -1264,54 +1264,54 @@ async function _r(e, t) {
|
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function _r(e) {
|
|
1268
1268
|
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";
|
|
1269
1269
|
}
|
|
1270
|
-
async function
|
|
1270
|
+
async function gr(e, t, n) {
|
|
1271
1271
|
let a = await Promise.all(
|
|
1272
1272
|
e.map(async (r) => {
|
|
1273
1273
|
let s = t.routes[r.route.id];
|
|
1274
1274
|
if (s) {
|
|
1275
|
-
let c = await
|
|
1275
|
+
let c = await pr(s, n);
|
|
1276
1276
|
return c.links ? c.links() : [];
|
|
1277
1277
|
}
|
|
1278
1278
|
return [];
|
|
1279
1279
|
})
|
|
1280
1280
|
);
|
|
1281
1281
|
return br(
|
|
1282
|
-
a.flat(1).filter(
|
|
1282
|
+
a.flat(1).filter(_r).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
|
|
1283
1283
|
(r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
|
|
1284
1284
|
)
|
|
1285
1285
|
);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1288
|
-
let c = (
|
|
1287
|
+
function _t(e, t, n, a, r, s) {
|
|
1288
|
+
let c = (l, i) => n[i] ? l.route.id !== n[i].route.id : !0, u = (l, i) => {
|
|
1289
1289
|
var d;
|
|
1290
1290
|
return (
|
|
1291
1291
|
// param change, /users/123 -> /users/456
|
|
1292
|
-
n[i].pathname !==
|
|
1292
|
+
n[i].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
1293
1293
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1294
|
-
((d = n[i].route.path) == null ? void 0 : d.endsWith("*")) && n[i].params["*"] !==
|
|
1294
|
+
((d = n[i].route.path) == null ? void 0 : d.endsWith("*")) && n[i].params["*"] !== l.params["*"]
|
|
1295
1295
|
);
|
|
1296
1296
|
};
|
|
1297
1297
|
return s === "assets" ? t.filter(
|
|
1298
|
-
(
|
|
1299
|
-
) : s === "data" ? t.filter((
|
|
1300
|
-
var
|
|
1301
|
-
let d = a.routes[
|
|
1298
|
+
(l, i) => c(l, i) || u(l, i)
|
|
1299
|
+
) : s === "data" ? t.filter((l, i) => {
|
|
1300
|
+
var g;
|
|
1301
|
+
let d = a.routes[l.route.id];
|
|
1302
1302
|
if (!d || !d.hasLoader)
|
|
1303
1303
|
return !1;
|
|
1304
|
-
if (c(
|
|
1304
|
+
if (c(l, i) || u(l, i))
|
|
1305
1305
|
return !0;
|
|
1306
|
-
if (
|
|
1307
|
-
let h =
|
|
1306
|
+
if (l.route.shouldRevalidate) {
|
|
1307
|
+
let h = l.route.shouldRevalidate({
|
|
1308
1308
|
currentUrl: new URL(
|
|
1309
1309
|
r.pathname + r.search + r.hash,
|
|
1310
1310
|
window.origin
|
|
1311
1311
|
),
|
|
1312
|
-
currentParams: ((
|
|
1312
|
+
currentParams: ((g = n[0]) == null ? void 0 : g.params) || {},
|
|
1313
1313
|
nextUrl: new URL(e, window.origin),
|
|
1314
|
-
nextParams:
|
|
1314
|
+
nextParams: l.params,
|
|
1315
1315
|
defaultShouldRevalidate: !0
|
|
1316
1316
|
});
|
|
1317
1317
|
if (typeof h == "boolean")
|
|
@@ -1320,8 +1320,8 @@ function gt(e, t, n, a, r, s) {
|
|
|
1320
1320
|
return !0;
|
|
1321
1321
|
}) : [];
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
return
|
|
1323
|
+
function vr(e, t, { includeHydrateFallback: n } = {}) {
|
|
1324
|
+
return yr(
|
|
1325
1325
|
e.map((a) => {
|
|
1326
1326
|
let r = t.routes[a.route.id];
|
|
1327
1327
|
if (!r) return [];
|
|
@@ -1330,10 +1330,10 @@ function yr(e, t, { includeHydrateFallback: n } = {}) {
|
|
|
1330
1330
|
}).flat(1)
|
|
1331
1331
|
);
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function yr(e) {
|
|
1334
1334
|
return [...new Set(e)];
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function xr(e) {
|
|
1337
1337
|
let t = {}, n = Object.keys(e).sort();
|
|
1338
1338
|
for (let a of n)
|
|
1339
1339
|
t[a] = e[a];
|
|
@@ -1342,12 +1342,12 @@ function wr(e) {
|
|
|
1342
1342
|
function br(e, t) {
|
|
1343
1343
|
let n = /* @__PURE__ */ new Set();
|
|
1344
1344
|
return new Set(t), e.reduce((a, r) => {
|
|
1345
|
-
let s = JSON.stringify(
|
|
1345
|
+
let s = JSON.stringify(xr(r));
|
|
1346
1346
|
return n.has(s) || (n.add(s), a.push({ key: s, link: r })), a;
|
|
1347
1347
|
}, []);
|
|
1348
1348
|
}
|
|
1349
1349
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
1350
|
-
var
|
|
1350
|
+
var wr = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
1351
1351
|
function Cr(e, t) {
|
|
1352
1352
|
let n = typeof e == "string" ? new URL(
|
|
1353
1353
|
e,
|
|
@@ -1355,55 +1355,55 @@ function Cr(e, t) {
|
|
|
1355
1355
|
// don't assume window is available
|
|
1356
1356
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1357
1357
|
) : e;
|
|
1358
|
-
return n.pathname === "/" ? n.pathname = "_root.data" : t &&
|
|
1358
|
+
return n.pathname === "/" ? n.pathname = "_root.data" : t && re(n.pathname, t) === "/" ? n.pathname = `${t.replace(/\/$/, "")}/_root.data` : n.pathname = `${n.pathname.replace(/\/$/, "")}.data`, n;
|
|
1359
1359
|
}
|
|
1360
|
-
function
|
|
1361
|
-
let e = p.useContext(
|
|
1362
|
-
return
|
|
1360
|
+
function Ot() {
|
|
1361
|
+
let e = p.useContext(ye);
|
|
1362
|
+
return it(
|
|
1363
1363
|
e,
|
|
1364
1364
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1365
1365
|
), e;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
let e = p.useContext(
|
|
1369
|
-
return
|
|
1367
|
+
function Er() {
|
|
1368
|
+
let e = p.useContext(Oe);
|
|
1369
|
+
return it(
|
|
1370
1370
|
e,
|
|
1371
1371
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1372
1372
|
), e;
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1375
|
-
|
|
1376
|
-
function
|
|
1377
|
-
let e = p.useContext(
|
|
1378
|
-
return
|
|
1374
|
+
var ct = p.createContext(void 0);
|
|
1375
|
+
ct.displayName = "FrameworkContext";
|
|
1376
|
+
function qt() {
|
|
1377
|
+
let e = p.useContext(ct);
|
|
1378
|
+
return it(
|
|
1379
1379
|
e,
|
|
1380
1380
|
"You must render this element inside a <HydratedRouter> element"
|
|
1381
1381
|
), e;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
let n = p.useContext(
|
|
1383
|
+
function kr(e, t) {
|
|
1384
|
+
let n = p.useContext(ct), [a, r] = p.useState(!1), [s, c] = p.useState(!1), { onFocus: u, onBlur: l, onMouseEnter: i, onMouseLeave: d, onTouchStart: g } = t, h = p.useRef(null);
|
|
1385
1385
|
p.useEffect(() => {
|
|
1386
1386
|
if (e === "render" && c(!0), e === "viewport") {
|
|
1387
|
-
let
|
|
1387
|
+
let y = (f) => {
|
|
1388
1388
|
f.forEach((x) => {
|
|
1389
1389
|
c(x.isIntersecting);
|
|
1390
1390
|
});
|
|
1391
|
-
},
|
|
1392
|
-
return h.current &&
|
|
1393
|
-
|
|
1391
|
+
}, w = new IntersectionObserver(y, { threshold: 0.5 });
|
|
1392
|
+
return h.current && w.observe(h.current), () => {
|
|
1393
|
+
w.disconnect();
|
|
1394
1394
|
};
|
|
1395
1395
|
}
|
|
1396
1396
|
}, [e]), p.useEffect(() => {
|
|
1397
1397
|
if (a) {
|
|
1398
|
-
let
|
|
1398
|
+
let y = setTimeout(() => {
|
|
1399
1399
|
c(!0);
|
|
1400
1400
|
}, 100);
|
|
1401
1401
|
return () => {
|
|
1402
|
-
clearTimeout(
|
|
1402
|
+
clearTimeout(y);
|
|
1403
1403
|
};
|
|
1404
1404
|
}
|
|
1405
1405
|
}, [a]);
|
|
1406
|
-
let
|
|
1406
|
+
let v = () => {
|
|
1407
1407
|
r(!0);
|
|
1408
1408
|
}, m = () => {
|
|
1409
1409
|
r(!1), c(!1);
|
|
@@ -1412,34 +1412,34 @@ function Lr(e, t) {
|
|
|
1412
1412
|
s,
|
|
1413
1413
|
h,
|
|
1414
1414
|
{
|
|
1415
|
-
onFocus:
|
|
1416
|
-
onBlur:
|
|
1417
|
-
onMouseEnter:
|
|
1418
|
-
onMouseLeave:
|
|
1419
|
-
onTouchStart:
|
|
1415
|
+
onFocus: Ce(u, v),
|
|
1416
|
+
onBlur: Ce(l, m),
|
|
1417
|
+
onMouseEnter: Ce(i, v),
|
|
1418
|
+
onMouseLeave: Ce(d, m),
|
|
1419
|
+
onTouchStart: Ce(g, v)
|
|
1420
1420
|
}
|
|
1421
1421
|
] : [!1, h, {}];
|
|
1422
1422
|
}
|
|
1423
|
-
function
|
|
1423
|
+
function Ce(e, t) {
|
|
1424
1424
|
return (n) => {
|
|
1425
1425
|
e && e(n), n.defaultPrevented || t(n);
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function jr({
|
|
1429
1429
|
page: e,
|
|
1430
1430
|
...t
|
|
1431
1431
|
}) {
|
|
1432
|
-
let { router: n } =
|
|
1432
|
+
let { router: n } = Ot(), a = p.useMemo(
|
|
1433
1433
|
() => Mt(n.routes, e, n.basename),
|
|
1434
1434
|
[n.routes, e, n.basename]
|
|
1435
1435
|
);
|
|
1436
|
-
return a ? /* @__PURE__ */ p.createElement(
|
|
1436
|
+
return a ? /* @__PURE__ */ p.createElement(Sr, { page: e, matches: a, ...t }) : null;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1439
|
-
let { manifest: t, routeModules: n } =
|
|
1438
|
+
function Lr(e) {
|
|
1439
|
+
let { manifest: t, routeModules: n } = qt(), [a, r] = p.useState([]);
|
|
1440
1440
|
return p.useEffect(() => {
|
|
1441
1441
|
let s = !1;
|
|
1442
|
-
return
|
|
1442
|
+
return gr(e, t, n).then(
|
|
1443
1443
|
(c) => {
|
|
1444
1444
|
s || r(c);
|
|
1445
1445
|
}
|
|
@@ -1448,46 +1448,46 @@ function jr(e) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
}, [e, t, n]), a;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Sr({
|
|
1452
1452
|
page: e,
|
|
1453
1453
|
matches: t,
|
|
1454
1454
|
...n
|
|
1455
1455
|
}) {
|
|
1456
|
-
let a =
|
|
1457
|
-
() =>
|
|
1456
|
+
let a = oe(), { manifest: r, routeModules: s } = qt(), { basename: c } = Ot(), { loaderData: u, matches: l } = Er(), i = p.useMemo(
|
|
1457
|
+
() => _t(
|
|
1458
1458
|
e,
|
|
1459
1459
|
t,
|
|
1460
|
-
|
|
1460
|
+
l,
|
|
1461
1461
|
r,
|
|
1462
1462
|
a,
|
|
1463
1463
|
"data"
|
|
1464
1464
|
),
|
|
1465
|
-
[e, t,
|
|
1465
|
+
[e, t, l, r, a]
|
|
1466
1466
|
), d = p.useMemo(
|
|
1467
|
-
() =>
|
|
1467
|
+
() => _t(
|
|
1468
1468
|
e,
|
|
1469
1469
|
t,
|
|
1470
|
-
|
|
1470
|
+
l,
|
|
1471
1471
|
r,
|
|
1472
1472
|
a,
|
|
1473
1473
|
"assets"
|
|
1474
1474
|
),
|
|
1475
|
-
[e, t,
|
|
1476
|
-
),
|
|
1475
|
+
[e, t, l, r, a]
|
|
1476
|
+
), g = p.useMemo(() => {
|
|
1477
1477
|
if (e === a.pathname + a.search + a.hash)
|
|
1478
1478
|
return [];
|
|
1479
|
-
let m = /* @__PURE__ */ new Set(),
|
|
1479
|
+
let m = /* @__PURE__ */ new Set(), y = !1;
|
|
1480
1480
|
if (t.forEach((f) => {
|
|
1481
1481
|
var b;
|
|
1482
1482
|
let x = r.routes[f.route.id];
|
|
1483
|
-
!x || !x.hasLoader || (!i.some((
|
|
1483
|
+
!x || !x.hasLoader || (!i.some((E) => E.route.id === f.route.id) && f.route.id in u && ((b = s[f.route.id]) != null && b.shouldRevalidate) || x.hasClientLoader ? y = !0 : m.add(f.route.id));
|
|
1484
1484
|
}), m.size === 0)
|
|
1485
1485
|
return [];
|
|
1486
|
-
let
|
|
1487
|
-
return
|
|
1486
|
+
let w = Cr(e, c);
|
|
1487
|
+
return y && m.size > 0 && w.searchParams.set(
|
|
1488
1488
|
"_routes",
|
|
1489
1489
|
t.filter((f) => m.has(f.route.id)).map((f) => f.route.id).join(",")
|
|
1490
|
-
), [
|
|
1490
|
+
), [w.pathname + w.search];
|
|
1491
1491
|
}, [
|
|
1492
1492
|
c,
|
|
1493
1493
|
u,
|
|
@@ -1498,28 +1498,28 @@ function $r({
|
|
|
1498
1498
|
e,
|
|
1499
1499
|
s
|
|
1500
1500
|
]), h = p.useMemo(
|
|
1501
|
-
() =>
|
|
1501
|
+
() => vr(d, r),
|
|
1502
1502
|
[d, r]
|
|
1503
|
-
),
|
|
1504
|
-
return /* @__PURE__ */ p.createElement(p.Fragment, null,
|
|
1503
|
+
), v = Lr(d);
|
|
1504
|
+
return /* @__PURE__ */ p.createElement(p.Fragment, null, g.map((m) => /* @__PURE__ */ p.createElement("link", { key: m, rel: "prefetch", as: "fetch", href: m, ...n })), h.map((m) => /* @__PURE__ */ p.createElement("link", { key: m, rel: "modulepreload", href: m, ...n })), v.map(({ key: m, link: y }) => (
|
|
1505
1505
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1506
1506
|
// already with their own props
|
|
1507
|
-
/* @__PURE__ */ p.createElement("link", { key: m, ...
|
|
1507
|
+
/* @__PURE__ */ p.createElement("link", { key: m, ...y })
|
|
1508
1508
|
)));
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function $r(...e) {
|
|
1511
1511
|
return (t) => {
|
|
1512
1512
|
e.forEach((n) => {
|
|
1513
1513
|
typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
1514
1514
|
});
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
var
|
|
1517
|
+
var Ht = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1518
1518
|
try {
|
|
1519
|
-
|
|
1519
|
+
Ht && (window.__reactRouterVersion = "7.6.2");
|
|
1520
1520
|
} catch {
|
|
1521
1521
|
}
|
|
1522
|
-
var
|
|
1522
|
+
var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Se = p.forwardRef(
|
|
1523
1523
|
function({
|
|
1524
1524
|
onClick: t,
|
|
1525
1525
|
discover: n = "render",
|
|
@@ -1528,57 +1528,57 @@ var Xt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Le = p.forwardRef(
|
|
|
1528
1528
|
reloadDocument: s,
|
|
1529
1529
|
replace: c,
|
|
1530
1530
|
state: u,
|
|
1531
|
-
target:
|
|
1531
|
+
target: l,
|
|
1532
1532
|
to: i,
|
|
1533
1533
|
preventScrollReset: d,
|
|
1534
|
-
viewTransition:
|
|
1534
|
+
viewTransition: g,
|
|
1535
1535
|
...h
|
|
1536
|
-
},
|
|
1537
|
-
let { basename: m } = p.useContext(
|
|
1538
|
-
if (typeof i == "string" &&
|
|
1536
|
+
}, v) {
|
|
1537
|
+
let { basename: m } = p.useContext(Q), y = typeof i == "string" && Vt.test(i), w, f = !1;
|
|
1538
|
+
if (typeof i == "string" && y && (w = i, Ht))
|
|
1539
1539
|
try {
|
|
1540
|
-
let
|
|
1541
|
-
|
|
1540
|
+
let I = new URL(window.location.href), $ = i.startsWith("//") ? new URL(I.protocol + i) : new URL(i), H = re($.pathname, m);
|
|
1541
|
+
$.origin === I.origin && H != null ? i = H + $.search + $.hash : f = !0;
|
|
1542
1542
|
} catch {
|
|
1543
|
-
|
|
1543
|
+
Z(
|
|
1544
1544
|
!1,
|
|
1545
1545
|
`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1546
1546
|
);
|
|
1547
1547
|
}
|
|
1548
|
-
let x =
|
|
1548
|
+
let x = Xn(i, { relative: r }), [b, E, S] = kr(
|
|
1549
1549
|
a,
|
|
1550
1550
|
h
|
|
1551
|
-
),
|
|
1551
|
+
), j = Nr(i, {
|
|
1552
1552
|
replace: c,
|
|
1553
1553
|
state: u,
|
|
1554
|
-
target:
|
|
1554
|
+
target: l,
|
|
1555
1555
|
preventScrollReset: d,
|
|
1556
1556
|
relative: r,
|
|
1557
|
-
viewTransition:
|
|
1557
|
+
viewTransition: g
|
|
1558
1558
|
});
|
|
1559
|
-
function I
|
|
1560
|
-
t && t(
|
|
1559
|
+
function N(I) {
|
|
1560
|
+
t && t(I), I.defaultPrevented || j(I);
|
|
1561
1561
|
}
|
|
1562
|
-
let
|
|
1562
|
+
let R = (
|
|
1563
1563
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1564
1564
|
/* @__PURE__ */ p.createElement(
|
|
1565
1565
|
"a",
|
|
1566
1566
|
{
|
|
1567
1567
|
...h,
|
|
1568
|
-
...
|
|
1569
|
-
href:
|
|
1570
|
-
onClick: f || s ? t :
|
|
1571
|
-
ref:
|
|
1572
|
-
target:
|
|
1573
|
-
"data-discover": !
|
|
1568
|
+
...S,
|
|
1569
|
+
href: w || x,
|
|
1570
|
+
onClick: f || s ? t : N,
|
|
1571
|
+
ref: $r(v, E),
|
|
1572
|
+
target: l,
|
|
1573
|
+
"data-discover": !y && n === "render" ? "true" : void 0
|
|
1574
1574
|
}
|
|
1575
1575
|
)
|
|
1576
1576
|
);
|
|
1577
|
-
return b && !
|
|
1577
|
+
return b && !y ? /* @__PURE__ */ p.createElement(p.Fragment, null, R, /* @__PURE__ */ p.createElement(jr, { page: x })) : R;
|
|
1578
1578
|
}
|
|
1579
1579
|
);
|
|
1580
|
-
|
|
1581
|
-
var
|
|
1580
|
+
Se.displayName = "Link";
|
|
1581
|
+
var Ir = p.forwardRef(
|
|
1582
1582
|
function({
|
|
1583
1583
|
"aria-current": t = "page",
|
|
1584
1584
|
caseSensitive: n = !1,
|
|
@@ -1587,42 +1587,42 @@ var Rr = p.forwardRef(
|
|
|
1587
1587
|
style: s,
|
|
1588
1588
|
to: c,
|
|
1589
1589
|
viewTransition: u,
|
|
1590
|
-
children:
|
|
1590
|
+
children: l,
|
|
1591
1591
|
...i
|
|
1592
1592
|
}, d) {
|
|
1593
|
-
let
|
|
1593
|
+
let g = Re(c, { relative: i.relative }), h = oe(), v = p.useContext(Oe), { navigator: m, basename: y } = p.useContext(Q), w = v != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1594
1594
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1595
|
-
|
|
1596
|
-
n || (x = x.toLowerCase(), b = b ? b.toLowerCase() : null, f = f.toLowerCase()), b &&
|
|
1597
|
-
const
|
|
1598
|
-
let
|
|
1599
|
-
isActive:
|
|
1600
|
-
isPending:
|
|
1601
|
-
isTransitioning:
|
|
1602
|
-
},
|
|
1603
|
-
typeof a == "function" ?
|
|
1595
|
+
Dr(g) && u === !0, f = m.encodeLocation ? m.encodeLocation(g).pathname : g.pathname, x = h.pathname, b = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
|
|
1596
|
+
n || (x = x.toLowerCase(), b = b ? b.toLowerCase() : null, f = f.toLowerCase()), b && y && (b = re(b, y) || b);
|
|
1597
|
+
const E = f !== "/" && f.endsWith("/") ? f.length - 1 : f.length;
|
|
1598
|
+
let S = x === f || !r && x.startsWith(f) && x.charAt(E) === "/", j = b != null && (b === f || !r && b.startsWith(f) && b.charAt(f.length) === "/"), N = {
|
|
1599
|
+
isActive: S,
|
|
1600
|
+
isPending: j,
|
|
1601
|
+
isTransitioning: w
|
|
1602
|
+
}, R = S ? t : void 0, I;
|
|
1603
|
+
typeof a == "function" ? I = a(N) : I = [
|
|
1604
1604
|
a,
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1605
|
+
S ? "active" : null,
|
|
1606
|
+
j ? "pending" : null,
|
|
1607
|
+
w ? "transitioning" : null
|
|
1608
1608
|
].filter(Boolean).join(" ");
|
|
1609
|
-
let
|
|
1609
|
+
let $ = typeof s == "function" ? s(N) : s;
|
|
1610
1610
|
return /* @__PURE__ */ p.createElement(
|
|
1611
|
-
|
|
1611
|
+
Se,
|
|
1612
1612
|
{
|
|
1613
1613
|
...i,
|
|
1614
|
-
"aria-current":
|
|
1615
|
-
className:
|
|
1614
|
+
"aria-current": R,
|
|
1615
|
+
className: I,
|
|
1616
1616
|
ref: d,
|
|
1617
|
-
style:
|
|
1617
|
+
style: $,
|
|
1618
1618
|
to: c,
|
|
1619
1619
|
viewTransition: u
|
|
1620
1620
|
},
|
|
1621
|
-
typeof
|
|
1621
|
+
typeof l == "function" ? l(N) : l
|
|
1622
1622
|
);
|
|
1623
1623
|
}
|
|
1624
1624
|
);
|
|
1625
|
-
|
|
1625
|
+
Ir.displayName = "NavLink";
|
|
1626
1626
|
var Mr = p.forwardRef(
|
|
1627
1627
|
({
|
|
1628
1628
|
discover: e = "render",
|
|
@@ -1631,36 +1631,36 @@ var Mr = p.forwardRef(
|
|
|
1631
1631
|
reloadDocument: a,
|
|
1632
1632
|
replace: r,
|
|
1633
1633
|
state: s,
|
|
1634
|
-
method: c =
|
|
1634
|
+
method: c = De,
|
|
1635
1635
|
action: u,
|
|
1636
|
-
onSubmit:
|
|
1636
|
+
onSubmit: l,
|
|
1637
1637
|
relative: i,
|
|
1638
1638
|
preventScrollReset: d,
|
|
1639
|
-
viewTransition:
|
|
1639
|
+
viewTransition: g,
|
|
1640
1640
|
...h
|
|
1641
|
-
},
|
|
1642
|
-
let m =
|
|
1643
|
-
if (
|
|
1641
|
+
}, v) => {
|
|
1642
|
+
let m = Pr(), y = Br(u, { relative: i }), w = c.toLowerCase() === "get" ? "get" : "post", f = typeof u == "string" && Vt.test(u), x = (b) => {
|
|
1643
|
+
if (l && l(b), b.defaultPrevented) return;
|
|
1644
1644
|
b.preventDefault();
|
|
1645
|
-
let
|
|
1646
|
-
m(
|
|
1645
|
+
let E = b.nativeEvent.submitter, S = (E == null ? void 0 : E.getAttribute("formmethod")) || c;
|
|
1646
|
+
m(E || b.currentTarget, {
|
|
1647
1647
|
fetcherKey: t,
|
|
1648
|
-
method:
|
|
1648
|
+
method: S,
|
|
1649
1649
|
navigate: n,
|
|
1650
1650
|
replace: r,
|
|
1651
1651
|
state: s,
|
|
1652
1652
|
relative: i,
|
|
1653
1653
|
preventScrollReset: d,
|
|
1654
|
-
viewTransition:
|
|
1654
|
+
viewTransition: g
|
|
1655
1655
|
});
|
|
1656
1656
|
};
|
|
1657
1657
|
return /* @__PURE__ */ p.createElement(
|
|
1658
1658
|
"form",
|
|
1659
1659
|
{
|
|
1660
|
-
ref:
|
|
1661
|
-
method:
|
|
1662
|
-
action:
|
|
1663
|
-
onSubmit: a ?
|
|
1660
|
+
ref: v,
|
|
1661
|
+
method: w,
|
|
1662
|
+
action: y,
|
|
1663
|
+
onSubmit: a ? l : x,
|
|
1664
1664
|
...h,
|
|
1665
1665
|
"data-discover": !f && e === "render" ? "true" : void 0
|
|
1666
1666
|
}
|
|
@@ -1668,14 +1668,14 @@ var Mr = p.forwardRef(
|
|
|
1668
1668
|
}
|
|
1669
1669
|
);
|
|
1670
1670
|
Mr.displayName = "Form";
|
|
1671
|
-
function
|
|
1671
|
+
function Rr(e) {
|
|
1672
1672
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
let t = p.useContext(
|
|
1676
|
-
return
|
|
1674
|
+
function Xt(e) {
|
|
1675
|
+
let t = p.useContext(ye);
|
|
1676
|
+
return F(t, Rr(e)), t;
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function Nr(e, {
|
|
1679
1679
|
target: t,
|
|
1680
1680
|
replace: n,
|
|
1681
1681
|
state: a,
|
|
@@ -1683,14 +1683,14 @@ function zr(e, {
|
|
|
1683
1683
|
relative: s,
|
|
1684
1684
|
viewTransition: c
|
|
1685
1685
|
} = {}) {
|
|
1686
|
-
let u =
|
|
1686
|
+
let u = Wn(), l = oe(), i = Re(e, { relative: s });
|
|
1687
1687
|
return p.useCallback(
|
|
1688
1688
|
(d) => {
|
|
1689
|
-
if (
|
|
1689
|
+
if (dr(d, t)) {
|
|
1690
1690
|
d.preventDefault();
|
|
1691
|
-
let
|
|
1691
|
+
let g = n !== void 0 ? n : tt(l) === tt(i);
|
|
1692
1692
|
u(e, {
|
|
1693
|
-
replace:
|
|
1693
|
+
replace: g,
|
|
1694
1694
|
state: a,
|
|
1695
1695
|
preventScrollReset: r,
|
|
1696
1696
|
relative: s,
|
|
@@ -1699,7 +1699,7 @@ function zr(e, {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
},
|
|
1701
1701
|
[
|
|
1702
|
-
|
|
1702
|
+
l,
|
|
1703
1703
|
u,
|
|
1704
1704
|
i,
|
|
1705
1705
|
n,
|
|
@@ -1712,23 +1712,23 @@ function zr(e, {
|
|
|
1712
1712
|
]
|
|
1713
1713
|
);
|
|
1714
1714
|
}
|
|
1715
|
-
var
|
|
1716
|
-
function
|
|
1717
|
-
let { router: e } =
|
|
1715
|
+
var zr = 0, Tr = () => `__${String(++zr)}__`;
|
|
1716
|
+
function Pr() {
|
|
1717
|
+
let { router: e } = Xt(
|
|
1718
1718
|
"useSubmit"
|
|
1719
1719
|
/* UseSubmit */
|
|
1720
|
-
), { basename: t } = p.useContext(
|
|
1720
|
+
), { basename: t } = p.useContext(Q), n = rr();
|
|
1721
1721
|
return p.useCallback(
|
|
1722
1722
|
async (a, r = {}) => {
|
|
1723
|
-
let { action: s, method: c, encType: u, formData:
|
|
1723
|
+
let { action: s, method: c, encType: u, formData: l, body: i } = fr(
|
|
1724
1724
|
a,
|
|
1725
1725
|
t
|
|
1726
1726
|
);
|
|
1727
1727
|
if (r.navigate === !1) {
|
|
1728
|
-
let d = r.fetcherKey ||
|
|
1728
|
+
let d = r.fetcherKey || Tr();
|
|
1729
1729
|
await e.fetch(d, n, r.action || s, {
|
|
1730
1730
|
preventScrollReset: r.preventScrollReset,
|
|
1731
|
-
formData:
|
|
1731
|
+
formData: l,
|
|
1732
1732
|
body: i,
|
|
1733
1733
|
formMethod: r.method || c,
|
|
1734
1734
|
formEncType: r.encType || u,
|
|
@@ -1737,7 +1737,7 @@ function Br() {
|
|
|
1737
1737
|
} else
|
|
1738
1738
|
await e.navigate(r.action || s, {
|
|
1739
1739
|
preventScrollReset: r.preventScrollReset,
|
|
1740
|
-
formData:
|
|
1740
|
+
formData: l,
|
|
1741
1741
|
body: i,
|
|
1742
1742
|
formMethod: r.method || c,
|
|
1743
1743
|
formEncType: r.encType || u,
|
|
@@ -1751,55 +1751,57 @@ function Br() {
|
|
|
1751
1751
|
[e, t, n]
|
|
1752
1752
|
);
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1755
|
-
let { basename: n } = p.useContext(
|
|
1756
|
-
|
|
1757
|
-
let [r] = a.matches.slice(-1), s = { ...
|
|
1754
|
+
function Br(e, { relative: t } = {}) {
|
|
1755
|
+
let { basename: n } = p.useContext(Q), a = p.useContext(ee);
|
|
1756
|
+
F(a, "useFormAction must be used inside a RouteContext");
|
|
1757
|
+
let [r] = a.matches.slice(-1), s = { ...Re(e || ".", { relative: t }) }, c = oe();
|
|
1758
1758
|
if (e == null) {
|
|
1759
1759
|
s.search = c.search;
|
|
1760
|
-
let u = new URLSearchParams(s.search),
|
|
1761
|
-
if (
|
|
1762
|
-
u.delete("index"),
|
|
1760
|
+
let u = new URLSearchParams(s.search), l = u.getAll("index");
|
|
1761
|
+
if (l.some((d) => d === "")) {
|
|
1762
|
+
u.delete("index"), l.filter((g) => g).forEach((g) => u.append("index", g));
|
|
1763
1763
|
let d = u.toString();
|
|
1764
1764
|
s.search = d ? `?${d}` : "";
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
|
-
return (!e || e === ".") && r.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (s.pathname = s.pathname === "/" ? n :
|
|
1767
|
+
return (!e || e === ".") && r.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (s.pathname = s.pathname === "/" ? n : K([n, s.pathname])), tt(s);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
let n = p.useContext(
|
|
1771
|
-
|
|
1769
|
+
function Dr(e, t = {}) {
|
|
1770
|
+
let n = p.useContext(Bt);
|
|
1771
|
+
F(
|
|
1772
1772
|
n != null,
|
|
1773
1773
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1774
1774
|
);
|
|
1775
|
-
let { basename: a } =
|
|
1775
|
+
let { basename: a } = Xt(
|
|
1776
1776
|
"useViewTransitionState"
|
|
1777
1777
|
/* useViewTransitionState */
|
|
1778
|
-
), r =
|
|
1778
|
+
), r = Re(e, { relative: t.relative });
|
|
1779
1779
|
if (!n.isTransitioning)
|
|
1780
1780
|
return !1;
|
|
1781
|
-
let s =
|
|
1782
|
-
return
|
|
1781
|
+
let s = re(n.currentLocation.pathname, a) || n.currentLocation.pathname, c = re(n.nextLocation.pathname, a) || n.nextLocation.pathname;
|
|
1782
|
+
return Fe(r.pathname, c) != null || Fe(r.pathname, s) != null;
|
|
1783
1783
|
}
|
|
1784
1784
|
[
|
|
1785
|
-
...
|
|
1785
|
+
...wr
|
|
1786
1786
|
];
|
|
1787
|
-
const Fr = "
|
|
1788
|
-
button:
|
|
1789
|
-
noMargin:
|
|
1790
|
-
regular:
|
|
1791
|
-
small:
|
|
1792
|
-
primary:
|
|
1793
|
-
noHover:
|
|
1794
|
-
secondary:
|
|
1795
|
-
disabled:
|
|
1796
|
-
hasErrors:
|
|
1797
|
-
rounded:
|
|
1798
|
-
hasArrowLeft:
|
|
1799
|
-
pushprev:
|
|
1800
|
-
hasArrowRight:
|
|
1801
|
-
pushnext:
|
|
1802
|
-
|
|
1787
|
+
const Ar = "_button_1jbpj_161", Fr = "_noMargin_1jbpj_189", Or = "_regular_1jbpj_199", qr = "_small_1jbpj_202", Hr = "_primary_1jbpj_213", Vr = "_noHover_1jbpj_217", Xr = "_secondary_1jbpj_233", Wr = "_disabled_1jbpj_252", Ur = "_hasErrors_1jbpj_272", Yr = "_rounded_1jbpj_278", Jr = "_hasArrowLeft_1jbpj_282", Gr = "_pushprev_1jbpj_1", Kr = "_hasArrowRight_1jbpj_320", Zr = "_pushnext_1jbpj_1", Qr = "_hasIcon_1jbpj_358", ea = "_buttonContent_1jbpj_362", A = {
|
|
1788
|
+
button: Ar,
|
|
1789
|
+
noMargin: Fr,
|
|
1790
|
+
regular: Or,
|
|
1791
|
+
small: qr,
|
|
1792
|
+
primary: Hr,
|
|
1793
|
+
noHover: Vr,
|
|
1794
|
+
secondary: Xr,
|
|
1795
|
+
disabled: Wr,
|
|
1796
|
+
hasErrors: Ur,
|
|
1797
|
+
rounded: Yr,
|
|
1798
|
+
hasArrowLeft: Jr,
|
|
1799
|
+
pushprev: Gr,
|
|
1800
|
+
hasArrowRight: Kr,
|
|
1801
|
+
pushnext: Zr,
|
|
1802
|
+
hasIcon: Qr,
|
|
1803
|
+
buttonContent: ea
|
|
1804
|
+
}, Wt = ({
|
|
1803
1805
|
content: e,
|
|
1804
1806
|
color: t = "primary",
|
|
1805
1807
|
size: n = "regular",
|
|
@@ -1808,77 +1810,100 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1808
1810
|
inputType: s,
|
|
1809
1811
|
defaultChecked: c,
|
|
1810
1812
|
hasErrors: u = !1,
|
|
1811
|
-
noHover:
|
|
1813
|
+
noHover: l = !1,
|
|
1812
1814
|
rounded: i = !1,
|
|
1813
1815
|
noMargin: d = !1,
|
|
1814
|
-
href:
|
|
1816
|
+
href: g,
|
|
1815
1817
|
children: h,
|
|
1818
|
+
iconLeft: v,
|
|
1819
|
+
iconRight: m,
|
|
1816
1820
|
...y
|
|
1817
1821
|
}) => {
|
|
1818
|
-
const
|
|
1819
|
-
switch (
|
|
1822
|
+
const w = (j) => {
|
|
1823
|
+
switch (j) {
|
|
1820
1824
|
case "left":
|
|
1821
|
-
return
|
|
1825
|
+
return A.hasArrowLeft;
|
|
1822
1826
|
case "right":
|
|
1823
|
-
return
|
|
1827
|
+
return A.hasArrowRight;
|
|
1824
1828
|
default:
|
|
1825
1829
|
return "";
|
|
1826
1830
|
}
|
|
1827
|
-
},
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
i &&
|
|
1834
|
-
u &&
|
|
1835
|
-
r
|
|
1836
|
-
d
|
|
1837
|
-
|
|
1831
|
+
}, f = s === "radio" ? c ? "primary" : "secondary" : t, x = P([
|
|
1832
|
+
A.button,
|
|
1833
|
+
A[f],
|
|
1834
|
+
A[n],
|
|
1835
|
+
w(a),
|
|
1836
|
+
l || s === "radio" ? A.noHover : null,
|
|
1837
|
+
i && A.rounded,
|
|
1838
|
+
u && A.hasErrors,
|
|
1839
|
+
r ? A.disabled : null,
|
|
1840
|
+
d ? A.noMargin : null,
|
|
1841
|
+
v || m ? A.hasIcon : null
|
|
1842
|
+
]), b = {
|
|
1838
1843
|
"aria-invalid": u || void 0,
|
|
1839
|
-
href: !r && (
|
|
1840
|
-
className:
|
|
1844
|
+
href: !r && (g != null && g.length) ? g : void 0,
|
|
1845
|
+
className: x,
|
|
1841
1846
|
// Always include className in buttonProps for all elements
|
|
1842
1847
|
...y
|
|
1843
|
-
},
|
|
1844
|
-
|
|
1845
|
-
).map((
|
|
1846
|
-
if (!Y.isValidElement(
|
|
1847
|
-
const
|
|
1848
|
-
return !r &&
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1848
|
+
}, E = (j) => Y.Children.toArray(
|
|
1849
|
+
ve(j)
|
|
1850
|
+
).map((R, I) => {
|
|
1851
|
+
if (!Y.isValidElement(R)) return null;
|
|
1852
|
+
const $ = R, H = $.type === Se && typeof $.props == "object" && $.props !== null && "to" in $.props;
|
|
1853
|
+
return !r && H ? ge(
|
|
1854
|
+
$,
|
|
1855
|
+
{
|
|
1856
|
+
className: x,
|
|
1857
|
+
key: `button-${I}`,
|
|
1858
|
+
to: $.props.to
|
|
1859
|
+
},
|
|
1860
|
+
v,
|
|
1861
|
+
/* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: $.props.children }),
|
|
1862
|
+
m
|
|
1863
|
+
) : /* @__PURE__ */ Gt("button", { ...b, key: `button-${I}` }, v, /* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: e || $.props && $.props.children }), m);
|
|
1853
1864
|
});
|
|
1854
1865
|
if (s === "button")
|
|
1855
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ o.jsxs("button", { type: "button", ...b, children: [
|
|
1867
|
+
v,
|
|
1868
|
+
/* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: e || h }),
|
|
1869
|
+
m
|
|
1870
|
+
] });
|
|
1856
1871
|
if (s === "radio") {
|
|
1857
|
-
const
|
|
1858
|
-
return delete
|
|
1859
|
-
/* @__PURE__ */
|
|
1872
|
+
const j = { ...b };
|
|
1873
|
+
return delete j.href, /* @__PURE__ */ o.jsxs("label", { className: x, children: [
|
|
1874
|
+
/* @__PURE__ */ o.jsx(
|
|
1860
1875
|
"input",
|
|
1861
1876
|
{
|
|
1862
|
-
...
|
|
1877
|
+
...j,
|
|
1863
1878
|
type: "radio"
|
|
1864
1879
|
}
|
|
1865
1880
|
),
|
|
1866
|
-
|
|
1881
|
+
v,
|
|
1882
|
+
/* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: e }),
|
|
1883
|
+
m
|
|
1867
1884
|
] });
|
|
1868
1885
|
}
|
|
1869
|
-
if (
|
|
1870
|
-
const
|
|
1871
|
-
return "type" in
|
|
1886
|
+
if (g != null && g.length && !r) {
|
|
1887
|
+
const j = { ...b };
|
|
1888
|
+
return "type" in j && delete j.type, /* @__PURE__ */ o.jsxs("a", { ...j, children: [
|
|
1889
|
+
v,
|
|
1890
|
+
/* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: e || h }),
|
|
1891
|
+
m
|
|
1892
|
+
] });
|
|
1872
1893
|
}
|
|
1873
|
-
return Y.isValidElement(h) && h.type ===
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1894
|
+
return Y.isValidElement(h) && h.type === Se ? /* @__PURE__ */ o.jsx(nt, { children: E(_e.toArray(h)) }) : /* @__PURE__ */ o.jsxs("button", { ...b, children: [
|
|
1895
|
+
v,
|
|
1896
|
+
/* @__PURE__ */ o.jsx("span", { className: A.buttonContent, children: e || h }),
|
|
1897
|
+
m
|
|
1898
|
+
] });
|
|
1899
|
+
}, ta = "_checkBoxIcon_1kc3w_1", na = "_showBox_1kc3w_22", ra = "_hasErrors_1kc3w_27", aa = "_checked_1kc3w_37", sa = "_disabled_1kc3w_53", oa = "_checkmark_1kc3w_58", ce = {
|
|
1900
|
+
checkBoxIcon: ta,
|
|
1901
|
+
showBox: na,
|
|
1902
|
+
hasErrors: ra,
|
|
1903
|
+
checked: aa,
|
|
1904
|
+
disabled: sa,
|
|
1905
|
+
checkmark: oa
|
|
1906
|
+
}, gt = ({
|
|
1882
1907
|
size: e = "20px",
|
|
1883
1908
|
checked: t = !1,
|
|
1884
1909
|
disabled: n = !1,
|
|
@@ -1891,21 +1916,21 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1891
1916
|
width: e,
|
|
1892
1917
|
fontSize: e
|
|
1893
1918
|
}, u = [
|
|
1894
|
-
|
|
1895
|
-
t &&
|
|
1896
|
-
n &&
|
|
1897
|
-
a &&
|
|
1898
|
-
r &&
|
|
1919
|
+
ce.checkBoxIcon,
|
|
1920
|
+
t && ce.checked,
|
|
1921
|
+
n && ce.disabled,
|
|
1922
|
+
a && ce.showBox,
|
|
1923
|
+
r && ce.hasErrors
|
|
1899
1924
|
].filter(Boolean).join(" ");
|
|
1900
|
-
return /* @__PURE__ */
|
|
1901
|
-
},
|
|
1902
|
-
checkBoxInput:
|
|
1903
|
-
requiredSymbol:
|
|
1904
|
-
contentOnly:
|
|
1905
|
-
disabled:
|
|
1906
|
-
labelText:
|
|
1907
|
-
hasErrors:
|
|
1908
|
-
},
|
|
1925
|
+
return /* @__PURE__ */ o.jsx("span", { className: u, style: c, children: /* @__PURE__ */ o.jsx("span", { "aria-hidden": !0, className: ce.checkmark, children: t ? s : "" }) });
|
|
1926
|
+
}, ae = "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", la = "_checkBoxInput_f1w9m_1", ia = "_requiredSymbol_f1w9m_6", ca = "_contentOnly_f1w9m_13", ua = "_disabled_f1w9m_13", da = "_labelText_f1w9m_19", ha = "_hasErrors_f1w9m_27", ue = {
|
|
1927
|
+
checkBoxInput: la,
|
|
1928
|
+
requiredSymbol: ia,
|
|
1929
|
+
contentOnly: ca,
|
|
1930
|
+
disabled: ua,
|
|
1931
|
+
labelText: da,
|
|
1932
|
+
hasErrors: ha
|
|
1933
|
+
}, ma = ({
|
|
1909
1934
|
checked: e = !1,
|
|
1910
1935
|
disabled: t = !1,
|
|
1911
1936
|
required: n = !1,
|
|
@@ -1914,25 +1939,26 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1914
1939
|
name: s = "",
|
|
1915
1940
|
onChange: c,
|
|
1916
1941
|
contentOnly: u = !1,
|
|
1917
|
-
hasErrors:
|
|
1942
|
+
hasErrors: l = !1,
|
|
1918
1943
|
checkmarkCharacter: i = "✔",
|
|
1919
1944
|
tabIndex: d = 0,
|
|
1920
|
-
children:
|
|
1945
|
+
children: g,
|
|
1921
1946
|
"aria-controls": h,
|
|
1922
|
-
"aria-describedby":
|
|
1947
|
+
"aria-describedby": v,
|
|
1948
|
+
value: m
|
|
1923
1949
|
}) => {
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
u &&
|
|
1927
|
-
t &&
|
|
1928
|
-
|
|
1929
|
-
].filter(Boolean).join(" "),
|
|
1950
|
+
const y = [
|
|
1951
|
+
ue.checkBoxInput,
|
|
1952
|
+
u && ue.contentOnly,
|
|
1953
|
+
t && ue.disabled,
|
|
1954
|
+
l && ue.hasErrors
|
|
1955
|
+
].filter(Boolean).join(" "), w = {
|
|
1930
1956
|
checked: e,
|
|
1931
1957
|
disabled: t,
|
|
1932
1958
|
showBox: !u,
|
|
1933
|
-
hasErrors: u &&
|
|
1959
|
+
hasErrors: u && l,
|
|
1934
1960
|
checkmarkCharacter: i
|
|
1935
|
-
},
|
|
1961
|
+
}, f = {
|
|
1936
1962
|
id: r,
|
|
1937
1963
|
name: s,
|
|
1938
1964
|
type: "checkbox",
|
|
@@ -1942,32 +1968,33 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1942
1968
|
onChange: c,
|
|
1943
1969
|
tabIndex: d,
|
|
1944
1970
|
"aria-controls": h,
|
|
1945
|
-
"aria-invalid":
|
|
1946
|
-
"aria-describedby":
|
|
1971
|
+
"aria-invalid": l ? "true" : void 0,
|
|
1972
|
+
"aria-describedby": v,
|
|
1973
|
+
value: m
|
|
1947
1974
|
};
|
|
1948
|
-
return /* @__PURE__ */
|
|
1949
|
-
u ? /* @__PURE__ */
|
|
1950
|
-
/* @__PURE__ */
|
|
1951
|
-
/* @__PURE__ */
|
|
1975
|
+
return /* @__PURE__ */ o.jsxs("label", { htmlFor: r, className: y, children: [
|
|
1976
|
+
u ? /* @__PURE__ */ o.jsx(gt, { ...w }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1977
|
+
/* @__PURE__ */ o.jsx(gt, { ...w }),
|
|
1978
|
+
/* @__PURE__ */ o.jsx("input", { ...f })
|
|
1952
1979
|
] }),
|
|
1953
|
-
/* @__PURE__ */
|
|
1954
|
-
|
|
1955
|
-
n && /* @__PURE__ */
|
|
1980
|
+
/* @__PURE__ */ o.jsxs("span", { className: ue.labelText, children: [
|
|
1981
|
+
g,
|
|
1982
|
+
n && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: ue.requiredSymbol })
|
|
1956
1983
|
] })
|
|
1957
1984
|
] });
|
|
1958
|
-
},
|
|
1959
|
-
checkBoxList:
|
|
1960
|
-
requiredSymbol:
|
|
1961
|
-
},
|
|
1962
|
-
headerContainer:
|
|
1963
|
-
header:
|
|
1985
|
+
}, fa = "_checkBoxList_1sp8d_1", pa = "_requiredSymbol_1sp8d_16", vt = {
|
|
1986
|
+
checkBoxList: fa,
|
|
1987
|
+
requiredSymbol: pa
|
|
1988
|
+
}, _a = "_headerContainer_t2si7_1", ga = "_header_t2si7_1", va = "_bigHeader_t2si7_16", Te = {
|
|
1989
|
+
headerContainer: _a,
|
|
1990
|
+
header: ga,
|
|
1964
1991
|
"size-1": "_size-1_t2si7_8",
|
|
1965
|
-
bigHeader:
|
|
1992
|
+
bigHeader: va,
|
|
1966
1993
|
"size-2": "_size-2_t2si7_28",
|
|
1967
1994
|
"size-3": "_size-3_t2si7_36",
|
|
1968
1995
|
"size-4": "_size-4_t2si7_44",
|
|
1969
1996
|
"size-5": "_size-5_t2si7_52"
|
|
1970
|
-
},
|
|
1997
|
+
}, Ut = ({
|
|
1971
1998
|
id: e,
|
|
1972
1999
|
content: t,
|
|
1973
2000
|
size: n = 1,
|
|
@@ -1977,12 +2004,12 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1977
2004
|
htmlFor: c,
|
|
1978
2005
|
children: u
|
|
1979
2006
|
}) => {
|
|
1980
|
-
const
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
a &&
|
|
1984
|
-
]), d = r != null && r.length && typeof r == "string" ? { "--label": `"${r}"` } : void 0,
|
|
1985
|
-
|
|
2007
|
+
const l = s || `h${n}`, i = P([
|
|
2008
|
+
Te.header,
|
|
2009
|
+
Te[`size-${n}`],
|
|
2010
|
+
a && Te.bigHeader
|
|
2011
|
+
]), d = r != null && r.length && typeof r == "string" ? { "--label": `"${r}"` } : void 0, g = Y.createElement(
|
|
2012
|
+
l,
|
|
1986
2013
|
{
|
|
1987
2014
|
className: i,
|
|
1988
2015
|
id: e || void 0,
|
|
@@ -1991,38 +2018,38 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
1991
2018
|
},
|
|
1992
2019
|
t != null && t.length ? t : u
|
|
1993
2020
|
);
|
|
1994
|
-
return /* @__PURE__ */
|
|
1995
|
-
},
|
|
2021
|
+
return /* @__PURE__ */ o.jsx("div", { className: Te.headerContainer, children: g });
|
|
2022
|
+
}, ya = ({
|
|
1996
2023
|
legend: e,
|
|
1997
2024
|
legendSize: t,
|
|
1998
2025
|
required: n = !1,
|
|
1999
2026
|
compact: a = !1,
|
|
2000
2027
|
children: r
|
|
2001
2028
|
}) => {
|
|
2002
|
-
const s = (c) =>
|
|
2029
|
+
const s = (c) => ve(c).map((l, i) => {
|
|
2003
2030
|
var d;
|
|
2004
|
-
return
|
|
2005
|
-
|
|
2006
|
-
) && ((d =
|
|
2031
|
+
return Me(
|
|
2032
|
+
l
|
|
2033
|
+
) && ((d = l.type) == null ? void 0 : d.displayName) === "RadioButtonListItem" ? ge(l, {
|
|
2007
2034
|
requiredGroup: n,
|
|
2008
2035
|
compact: a,
|
|
2009
2036
|
key: `checkboxListItem-${i}`
|
|
2010
|
-
}) :
|
|
2037
|
+
}) : l;
|
|
2011
2038
|
});
|
|
2012
|
-
return /* @__PURE__ */
|
|
2013
|
-
!!(e != null && e.length) && /* @__PURE__ */
|
|
2014
|
-
t ? /* @__PURE__ */
|
|
2015
|
-
n && /* @__PURE__ */
|
|
2039
|
+
return /* @__PURE__ */ o.jsxs("fieldset", { className: vt.checkBoxList, children: [
|
|
2040
|
+
!!(e != null && e.length) && /* @__PURE__ */ o.jsxs("legend", { children: [
|
|
2041
|
+
t ? /* @__PURE__ */ o.jsx(Ut, { size: t, children: e }) : e,
|
|
2042
|
+
n && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: vt.requiredSymbol })
|
|
2016
2043
|
] }),
|
|
2017
|
-
s(
|
|
2044
|
+
s(_e.toArray(r))
|
|
2018
2045
|
] });
|
|
2019
|
-
},
|
|
2020
|
-
checkBoxListItem:
|
|
2021
|
-
contentOnly:
|
|
2046
|
+
}, xa = "_checkBoxListItem_jnb8z_1", ba = "_contentOnly_jnb8z_26", wa = "_compact_jnb8z_26", Ca = "_disabled_jnb8z_41", Ea = "_checked_jnb8z_44", de = {
|
|
2047
|
+
checkBoxListItem: xa,
|
|
2048
|
+
contentOnly: ba,
|
|
2022
2049
|
compact: wa,
|
|
2023
|
-
disabled:
|
|
2050
|
+
disabled: Ca,
|
|
2024
2051
|
checked: Ea
|
|
2025
|
-
},
|
|
2052
|
+
}, ka = ({
|
|
2026
2053
|
checked: e = !1,
|
|
2027
2054
|
disabled: t = !1,
|
|
2028
2055
|
required: n = !1,
|
|
@@ -2031,21 +2058,22 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2031
2058
|
name: s = "",
|
|
2032
2059
|
onChange: c,
|
|
2033
2060
|
contentOnly: u = !1,
|
|
2034
|
-
compact:
|
|
2061
|
+
compact: l = !1,
|
|
2035
2062
|
hasErrors: i = !1,
|
|
2036
2063
|
checkmarkCharacter: d = "✔",
|
|
2037
|
-
"aria-controls":
|
|
2064
|
+
"aria-controls": g,
|
|
2038
2065
|
"aria-describedby": h,
|
|
2039
|
-
children:
|
|
2066
|
+
children: v,
|
|
2067
|
+
value: m
|
|
2040
2068
|
}) => {
|
|
2041
|
-
const
|
|
2042
|
-
|
|
2043
|
-
e &&
|
|
2044
|
-
t &&
|
|
2045
|
-
|
|
2046
|
-
u &&
|
|
2047
|
-
i &&
|
|
2048
|
-
]),
|
|
2069
|
+
const y = P([
|
|
2070
|
+
de.checkBoxListItem,
|
|
2071
|
+
e && de.checked,
|
|
2072
|
+
t && de.disabled,
|
|
2073
|
+
l && de.compact,
|
|
2074
|
+
u && de.contentOnly,
|
|
2075
|
+
i && de.hasErrors
|
|
2076
|
+
]), w = {
|
|
2049
2077
|
onChange: c ?? (() => {
|
|
2050
2078
|
}),
|
|
2051
2079
|
checked: e,
|
|
@@ -2054,30 +2082,31 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2054
2082
|
requiredGroup: a,
|
|
2055
2083
|
contentOnly: u,
|
|
2056
2084
|
hasErrors: i,
|
|
2057
|
-
"aria-controls":
|
|
2085
|
+
"aria-controls": g,
|
|
2058
2086
|
"aria-describedby": h,
|
|
2059
2087
|
id: r,
|
|
2060
2088
|
name: s,
|
|
2061
|
-
checkmarkCharacter: d
|
|
2089
|
+
checkmarkCharacter: d,
|
|
2090
|
+
value: m
|
|
2062
2091
|
};
|
|
2063
|
-
return /* @__PURE__ */
|
|
2064
|
-
},
|
|
2065
|
-
container:
|
|
2092
|
+
return /* @__PURE__ */ o.jsx("div", { className: y, children: /* @__PURE__ */ o.jsx(ma, { ...w, children: v }) });
|
|
2093
|
+
}, ja = "_container_f8z49_1", La = {
|
|
2094
|
+
container: ja
|
|
2066
2095
|
}, Sa = ({ maxWidth: e, children: t }) => {
|
|
2067
2096
|
const n = {
|
|
2068
2097
|
"--max-width": e != null && e.length ? e : void 0
|
|
2069
2098
|
};
|
|
2070
|
-
return /* @__PURE__ */
|
|
2071
|
-
},
|
|
2072
|
-
contentBox:
|
|
2073
|
-
link:
|
|
2099
|
+
return /* @__PURE__ */ o.jsx("div", { className: La.container, style: n, children: t });
|
|
2100
|
+
}, $a = "_contentBox_1ndvc_1", Ia = "_link_1ndvc_8", Ma = "_content_1ndvc_1", Ra = "_title_1ndvc_25", Na = "_secondary_1ndvc_28", za = "_regular_1ndvc_36", Ta = "_large_1ndvc_45", he = {
|
|
2101
|
+
contentBox: $a,
|
|
2102
|
+
link: Ia,
|
|
2074
2103
|
default: "_default_1ndvc_21",
|
|
2075
|
-
content:
|
|
2104
|
+
content: Ma,
|
|
2076
2105
|
title: Ra,
|
|
2077
|
-
secondary:
|
|
2078
|
-
regular:
|
|
2079
|
-
large:
|
|
2080
|
-
},
|
|
2106
|
+
secondary: Na,
|
|
2107
|
+
regular: za,
|
|
2108
|
+
large: Ta
|
|
2109
|
+
}, ll = ({
|
|
2081
2110
|
title: e = null,
|
|
2082
2111
|
titleSize: t = "regular",
|
|
2083
2112
|
content: n = "",
|
|
@@ -2087,39 +2116,39 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2087
2116
|
}) => {
|
|
2088
2117
|
const c = () => {
|
|
2089
2118
|
if (!e) return null;
|
|
2090
|
-
const h = `${
|
|
2091
|
-
return /* @__PURE__ */
|
|
2092
|
-
}, u =
|
|
2119
|
+
const h = `${he.title} ${he[t]}`;
|
|
2120
|
+
return /* @__PURE__ */ o.jsx("h2", { className: h, children: e });
|
|
2121
|
+
}, u = he[r] || "", l = s ? he.link : "", i = `${he.contentBox} ${u} ${l}`.trim(), d = n != null && n.length ? n : a, g = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2093
2122
|
c(),
|
|
2094
|
-
/* @__PURE__ */
|
|
2123
|
+
/* @__PURE__ */ o.jsx("div", { className: he.content, children: d })
|
|
2095
2124
|
] });
|
|
2096
|
-
return s ? /* @__PURE__ */
|
|
2097
|
-
},
|
|
2098
|
-
descriptionDetails:
|
|
2099
|
-
compact:
|
|
2100
|
-
},
|
|
2125
|
+
return s ? /* @__PURE__ */ o.jsx("a", { href: s, className: i, children: g }) : /* @__PURE__ */ o.jsx("div", { className: i, children: g });
|
|
2126
|
+
}, Pa = "_descriptionDetails_1d1dj_1", Ba = "_compact_1d1dj_7", yt = {
|
|
2127
|
+
descriptionDetails: Pa,
|
|
2128
|
+
compact: Ba
|
|
2129
|
+
}, il = ({
|
|
2101
2130
|
compact: e = !1,
|
|
2102
2131
|
titleWidth: t,
|
|
2103
2132
|
children: n
|
|
2104
|
-
}) => /* @__PURE__ */
|
|
2133
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
2105
2134
|
"dd",
|
|
2106
2135
|
{
|
|
2107
|
-
className:
|
|
2108
|
-
|
|
2109
|
-
e &&
|
|
2136
|
+
className: P([
|
|
2137
|
+
yt.descriptionDetails,
|
|
2138
|
+
e && yt.compact
|
|
2110
2139
|
]),
|
|
2111
2140
|
style: { "--title-width": t || void 0 },
|
|
2112
2141
|
children: n
|
|
2113
2142
|
}
|
|
2114
|
-
),
|
|
2115
|
-
descriptionList:
|
|
2116
|
-
compact:
|
|
2117
|
-
},
|
|
2143
|
+
), Da = "_descriptionList_w11ua_1", Aa = "_compact_w11ua_13", xt = {
|
|
2144
|
+
descriptionList: Da,
|
|
2145
|
+
compact: Aa
|
|
2146
|
+
}, cl = ({
|
|
2118
2147
|
compact: e = !1,
|
|
2119
2148
|
titleWidth: t,
|
|
2120
2149
|
children: n
|
|
2121
2150
|
}) => {
|
|
2122
|
-
const a = (r) =>
|
|
2151
|
+
const a = (r) => ve(r).map((c, u) => Me(c) ? ge(c, {
|
|
2123
2152
|
compact: e,
|
|
2124
2153
|
titleWidth: t,
|
|
2125
2154
|
key: `descriptionListItem-${u}`
|
|
@@ -2127,47 +2156,47 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2127
2156
|
return Y.createElement(
|
|
2128
2157
|
"dl",
|
|
2129
2158
|
{
|
|
2130
|
-
className:
|
|
2131
|
-
|
|
2132
|
-
e &&
|
|
2159
|
+
className: P([
|
|
2160
|
+
xt.descriptionList,
|
|
2161
|
+
e && xt.compact
|
|
2133
2162
|
]),
|
|
2134
2163
|
style: {
|
|
2135
2164
|
"--title-width": t || void 0
|
|
2136
2165
|
}
|
|
2137
2166
|
},
|
|
2138
|
-
a(
|
|
2167
|
+
a(_e.toArray(n))
|
|
2139
2168
|
);
|
|
2140
|
-
},
|
|
2141
|
-
descriptionTerm:
|
|
2142
|
-
compact:
|
|
2143
|
-
},
|
|
2169
|
+
}, Fa = "_descriptionTerm_uuapd_1", Oa = "_compact_uuapd_8", bt = {
|
|
2170
|
+
descriptionTerm: Fa,
|
|
2171
|
+
compact: Oa
|
|
2172
|
+
}, ul = ({
|
|
2144
2173
|
compact: e = !1,
|
|
2145
2174
|
titleWidth: t,
|
|
2146
2175
|
children: n
|
|
2147
|
-
}) => /* @__PURE__ */
|
|
2176
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
2148
2177
|
"dt",
|
|
2149
2178
|
{
|
|
2150
|
-
className:
|
|
2179
|
+
className: P([
|
|
2151
2180
|
bt.descriptionTerm,
|
|
2152
2181
|
e && bt.compact
|
|
2153
2182
|
]),
|
|
2154
2183
|
style: { "--title-width": t || void 0 },
|
|
2155
2184
|
children: n
|
|
2156
2185
|
}
|
|
2157
|
-
),
|
|
2158
|
-
dialog:
|
|
2159
|
-
dialogContainer:
|
|
2160
|
-
dialogContent:
|
|
2161
|
-
closeButton:
|
|
2162
|
-
isSidebar:
|
|
2163
|
-
modalInVertical:
|
|
2164
|
-
noPadding:
|
|
2165
|
-
left:
|
|
2166
|
-
modalInHorizontalLeft:
|
|
2167
|
-
right:
|
|
2168
|
-
modalInHorizontalRight:
|
|
2169
|
-
dialogOverlay:
|
|
2170
|
-
},
|
|
2186
|
+
), qa = "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", Ha = "_dialog_1qsqp_19", Va = "_dialogContainer_1qsqp_33", Xa = "_dialogContent_1qsqp_38", Wa = "_closeButton_1qsqp_45", Ua = "_isSidebar_1qsqp_60", Ya = "_modalInVertical_1qsqp_1", Ja = "_noPadding_1qsqp_74", Ga = "_left_1qsqp_113", Ka = "_modalInHorizontalLeft_1qsqp_1", Za = "_right_1qsqp_120", Qa = "_modalInHorizontalRight_1qsqp_1", es = "_dialogOverlay_1qsqp_128", ne = {
|
|
2187
|
+
dialog: Ha,
|
|
2188
|
+
dialogContainer: Va,
|
|
2189
|
+
dialogContent: Xa,
|
|
2190
|
+
closeButton: Wa,
|
|
2191
|
+
isSidebar: Ua,
|
|
2192
|
+
modalInVertical: Ya,
|
|
2193
|
+
noPadding: Ja,
|
|
2194
|
+
left: Ga,
|
|
2195
|
+
modalInHorizontalLeft: Ka,
|
|
2196
|
+
right: Za,
|
|
2197
|
+
modalInHorizontalRight: Qa,
|
|
2198
|
+
dialogOverlay: es
|
|
2199
|
+
}, dl = ({
|
|
2171
2200
|
maxWidth: e = "none",
|
|
2172
2201
|
noPadding: t,
|
|
2173
2202
|
closeButton: n,
|
|
@@ -2177,63 +2206,63 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2177
2206
|
hidden: c = !1,
|
|
2178
2207
|
children: u
|
|
2179
2208
|
}) => {
|
|
2180
|
-
const
|
|
2181
|
-
(
|
|
2182
|
-
|
|
2209
|
+
const l = Le(null), i = Le(null), d = Ee(
|
|
2210
|
+
(v) => {
|
|
2211
|
+
v && It(v);
|
|
2183
2212
|
},
|
|
2184
2213
|
[]
|
|
2185
2214
|
);
|
|
2186
|
-
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2189
|
-
}, m = (
|
|
2190
|
-
i.current && !i.current.contains(
|
|
2215
|
+
je(() => {
|
|
2216
|
+
const v = (y) => {
|
|
2217
|
+
y.key === "Escape" && a && a();
|
|
2218
|
+
}, m = (y) => {
|
|
2219
|
+
i.current && !i.current.contains(y.target) && a();
|
|
2191
2220
|
};
|
|
2192
|
-
return document.addEventListener("mousedown", m), document.addEventListener("keydown",
|
|
2193
|
-
document.removeEventListener("mousedown", m), document.removeEventListener("keydown",
|
|
2221
|
+
return document.addEventListener("mousedown", m), document.addEventListener("keydown", v, !1), () => {
|
|
2222
|
+
document.removeEventListener("mousedown", m), document.removeEventListener("keydown", v, !1);
|
|
2194
2223
|
};
|
|
2195
|
-
}, [a]),
|
|
2196
|
-
|
|
2224
|
+
}, [a]), je(() => {
|
|
2225
|
+
l.current && (l.current.close(), c || (r ? l.current.showModal() : l.current.show()));
|
|
2197
2226
|
}, [c, r]);
|
|
2198
|
-
const
|
|
2227
|
+
const g = s && P([ne.isSidebar, ne[s]]), h = {
|
|
2199
2228
|
"--max-width": e
|
|
2200
2229
|
};
|
|
2201
|
-
return /* @__PURE__ */
|
|
2230
|
+
return /* @__PURE__ */ o.jsx(
|
|
2202
2231
|
"dialog",
|
|
2203
2232
|
{
|
|
2204
|
-
className:
|
|
2205
|
-
|
|
2206
|
-
|
|
2233
|
+
className: P([
|
|
2234
|
+
ne.dialog,
|
|
2235
|
+
g
|
|
2207
2236
|
]),
|
|
2208
|
-
ref:
|
|
2209
|
-
children: /* @__PURE__ */
|
|
2237
|
+
ref: l,
|
|
2238
|
+
children: /* @__PURE__ */ o.jsx(
|
|
2210
2239
|
"div",
|
|
2211
2240
|
{
|
|
2212
2241
|
ref: i,
|
|
2213
|
-
className:
|
|
2242
|
+
className: ne.dialogContainer,
|
|
2214
2243
|
style: h,
|
|
2215
|
-
children: /* @__PURE__ */
|
|
2244
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
2216
2245
|
"div",
|
|
2217
2246
|
{
|
|
2218
2247
|
ref: d,
|
|
2219
|
-
className:
|
|
2220
|
-
|
|
2221
|
-
t &&
|
|
2248
|
+
className: P([
|
|
2249
|
+
ne.dialogContent,
|
|
2250
|
+
t && ne.noPadding
|
|
2222
2251
|
]),
|
|
2223
2252
|
children: [
|
|
2224
|
-
n && /* @__PURE__ */
|
|
2253
|
+
n && /* @__PURE__ */ o.jsx(
|
|
2225
2254
|
"button",
|
|
2226
2255
|
{
|
|
2227
2256
|
"aria-label": "Lukk dialog",
|
|
2228
2257
|
onClick: a,
|
|
2229
|
-
className:
|
|
2230
|
-
|
|
2231
|
-
t &&
|
|
2258
|
+
className: P([
|
|
2259
|
+
ne.closeButton,
|
|
2260
|
+
t && ne.noPadding
|
|
2232
2261
|
]),
|
|
2233
|
-
children: /* @__PURE__ */
|
|
2262
|
+
children: /* @__PURE__ */ o.jsx("img", { src: qa, alt: "" })
|
|
2234
2263
|
}
|
|
2235
2264
|
),
|
|
2236
|
-
/* @__PURE__ */
|
|
2265
|
+
/* @__PURE__ */ o.jsx("div", { "aria-live": "assertive", role: "dialog", children: u })
|
|
2237
2266
|
]
|
|
2238
2267
|
}
|
|
2239
2268
|
)
|
|
@@ -2241,11 +2270,11 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2241
2270
|
)
|
|
2242
2271
|
}
|
|
2243
2272
|
);
|
|
2244
|
-
},
|
|
2245
|
-
label:
|
|
2246
|
-
inline:
|
|
2247
|
-
normalCursor:
|
|
2248
|
-
},
|
|
2273
|
+
}, ts = "_label_18de6_1", ns = "_inline_18de6_11", rs = "_normalCursor_18de6_14", Ge = {
|
|
2274
|
+
label: ts,
|
|
2275
|
+
inline: ns,
|
|
2276
|
+
normalCursor: rs
|
|
2277
|
+
}, $e = ({
|
|
2249
2278
|
inline: e = !1,
|
|
2250
2279
|
normalCursor: t = !1,
|
|
2251
2280
|
htmlTag: n = "label",
|
|
@@ -2254,33 +2283,33 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2254
2283
|
...s
|
|
2255
2284
|
}) => {
|
|
2256
2285
|
const c = [
|
|
2257
|
-
|
|
2258
|
-
e &&
|
|
2259
|
-
t &&
|
|
2286
|
+
Ge.label,
|
|
2287
|
+
e && Ge.inline,
|
|
2288
|
+
t && Ge.normalCursor
|
|
2260
2289
|
].filter(Boolean).join(" "), u = {
|
|
2261
2290
|
...s,
|
|
2262
2291
|
className: c,
|
|
2263
2292
|
id: r || void 0
|
|
2264
2293
|
};
|
|
2265
2294
|
return Y.createElement(n, u, a);
|
|
2266
|
-
},
|
|
2267
|
-
dragAndDropFileInput:
|
|
2268
|
-
requiredSymbol:
|
|
2269
|
-
dragAndDropContainer:
|
|
2270
|
-
highlighted:
|
|
2271
|
-
},
|
|
2272
|
-
errorMessage:
|
|
2273
|
-
errorSign:
|
|
2274
|
-
},
|
|
2295
|
+
}, as = "_dragAndDropFileInput_l98z1_1", ss = "_requiredSymbol_l98z1_1", os = "_dragAndDropContainer_l98z1_8", ls = "_highlighted_l98z1_26", Pe = {
|
|
2296
|
+
dragAndDropFileInput: as,
|
|
2297
|
+
requiredSymbol: ss,
|
|
2298
|
+
dragAndDropContainer: os,
|
|
2299
|
+
highlighted: ls
|
|
2300
|
+
}, is = "_errorMessage_i8u6b_7", cs = "_errorSign_i8u6b_19", wt = {
|
|
2301
|
+
errorMessage: is,
|
|
2302
|
+
errorSign: cs
|
|
2303
|
+
}, us = "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", Ve = ({ id: e, content: t = "" }) => {
|
|
2275
2304
|
const n = () => ({
|
|
2276
2305
|
id: e != null && e.length ? e : void 0,
|
|
2277
|
-
className:
|
|
2306
|
+
className: wt.errorMessage
|
|
2278
2307
|
});
|
|
2279
|
-
return (typeof t == "string" ? t.trim().length > 0 : !!t) ? /* @__PURE__ */
|
|
2280
|
-
/* @__PURE__ */
|
|
2308
|
+
return (typeof t == "string" ? t.trim().length > 0 : !!t) ? /* @__PURE__ */ o.jsxs("span", { "aria-live": "polite", ...n(), children: [
|
|
2309
|
+
/* @__PURE__ */ o.jsx("img", { src: us, alt: "", className: wt.errorSign }),
|
|
2281
2310
|
t
|
|
2282
2311
|
] }) : null;
|
|
2283
|
-
},
|
|
2312
|
+
}, hl = ({
|
|
2284
2313
|
id: e,
|
|
2285
2314
|
name: t,
|
|
2286
2315
|
onSelectChange: n,
|
|
@@ -2289,151 +2318,145 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2289
2318
|
contentOnly: s = !1,
|
|
2290
2319
|
buttonColor: c = "primary",
|
|
2291
2320
|
buttonContent: u,
|
|
2292
|
-
buttonContentWhenSelectedFile:
|
|
2321
|
+
buttonContentWhenSelectedFile: l,
|
|
2293
2322
|
selectedFileName: i,
|
|
2294
2323
|
defaultContent: d = "",
|
|
2295
|
-
hasErrors:
|
|
2324
|
+
hasErrors: g = !1,
|
|
2296
2325
|
errorMessage: h = "",
|
|
2297
|
-
required:
|
|
2326
|
+
required: v = !1,
|
|
2298
2327
|
children: m,
|
|
2299
|
-
"data-transaction-name":
|
|
2328
|
+
"data-transaction-name": y
|
|
2300
2329
|
}) => {
|
|
2301
|
-
const [
|
|
2302
|
-
|
|
2303
|
-
},
|
|
2304
|
-
var
|
|
2305
|
-
(
|
|
2306
|
-
},
|
|
2330
|
+
const [w, f] = ke(!1), x = Le(null), b = Le(null), E = (L) => {
|
|
2331
|
+
L.preventDefault(), L.stopPropagation();
|
|
2332
|
+
}, S = (L, z) => L || z, j = () => {
|
|
2333
|
+
var L;
|
|
2334
|
+
(L = b.current) == null || L.click();
|
|
2335
|
+
}, N = () => `${e}-errorMessage`, R = {
|
|
2307
2336
|
id: e,
|
|
2308
|
-
"aria-describedby":
|
|
2309
|
-
"aria-invalid":
|
|
2337
|
+
"aria-describedby": g && (h != null && h.toString().length) ? N() : void 0,
|
|
2338
|
+
"aria-invalid": g ? "true" : void 0,
|
|
2310
2339
|
name: t,
|
|
2311
|
-
required:
|
|
2312
|
-
},
|
|
2313
|
-
(
|
|
2314
|
-
var
|
|
2315
|
-
|
|
2340
|
+
required: v
|
|
2341
|
+
}, I = i && l || u, $ = Ee(() => f(!0), []), H = Ee(() => f(!1), []), J = Ee(
|
|
2342
|
+
(L) => {
|
|
2343
|
+
var z;
|
|
2344
|
+
E(L), (z = L.dataTransfer) != null && z.files && a(L.dataTransfer.files), f(!1);
|
|
2316
2345
|
},
|
|
2317
2346
|
[a]
|
|
2318
2347
|
);
|
|
2319
|
-
return
|
|
2320
|
-
const
|
|
2321
|
-
if (
|
|
2348
|
+
return je(() => {
|
|
2349
|
+
const L = x.current;
|
|
2350
|
+
if (L)
|
|
2322
2351
|
return ["dragenter", "dragover"].forEach(
|
|
2323
|
-
(
|
|
2352
|
+
(z) => L.addEventListener(z, $)
|
|
2324
2353
|
), ["dragleave", "drop"].forEach(
|
|
2325
|
-
(
|
|
2354
|
+
(z) => L.addEventListener(z, H)
|
|
2326
2355
|
), ["dragenter", "dragover", "dragleave", "drop"].forEach(
|
|
2327
|
-
(
|
|
2328
|
-
),
|
|
2329
|
-
["dragenter", "dragover", "dragleave", "drop"].forEach((
|
|
2330
|
-
|
|
2331
|
-
}),
|
|
2356
|
+
(z) => L.addEventListener(z, E)
|
|
2357
|
+
), L.addEventListener("drop", J), () => {
|
|
2358
|
+
["dragenter", "dragover", "dragleave", "drop"].forEach((z) => {
|
|
2359
|
+
L.removeEventListener(z, E), L.removeEventListener(z, $), L.removeEventListener(z, H);
|
|
2360
|
+
}), L.removeEventListener("drop", J);
|
|
2332
2361
|
};
|
|
2333
|
-
}, [a]), /* @__PURE__ */
|
|
2334
|
-
/* @__PURE__ */
|
|
2362
|
+
}, [a]), /* @__PURE__ */ o.jsxs("div", { className: Pe.dragAndDropFileInput, children: [
|
|
2363
|
+
/* @__PURE__ */ o.jsxs($e, { htmlFor: e, children: [
|
|
2335
2364
|
r,
|
|
2336
|
-
|
|
2365
|
+
v && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: Pe.requiredSymbol })
|
|
2337
2366
|
] }),
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
!s && /* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ o.jsx("div", { children: m }),
|
|
2368
|
+
!s && /* @__PURE__ */ o.jsxs(
|
|
2340
2369
|
"div",
|
|
2341
2370
|
{
|
|
2342
2371
|
ref: x,
|
|
2343
|
-
className: `${
|
|
2372
|
+
className: `${Pe.dragAndDropContainer} ${w ? Pe.highlighted : ""}`,
|
|
2344
2373
|
children: [
|
|
2345
|
-
i ? /* @__PURE__ */
|
|
2346
|
-
/* @__PURE__ */
|
|
2374
|
+
i ? /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsxs("span", { children: [
|
|
2375
|
+
/* @__PURE__ */ o.jsx("b", { children: "Valgt fil:" }),
|
|
2347
2376
|
" ",
|
|
2348
2377
|
i
|
|
2349
|
-
] }) }) : /* @__PURE__ */
|
|
2350
|
-
/* @__PURE__ */
|
|
2378
|
+
] }) }) : /* @__PURE__ */ o.jsx("div", { children: "Slipp fil her" }),
|
|
2379
|
+
/* @__PURE__ */ o.jsx(
|
|
2351
2380
|
"input",
|
|
2352
2381
|
{
|
|
2353
|
-
...
|
|
2382
|
+
...R,
|
|
2354
2383
|
ref: b,
|
|
2355
2384
|
type: "file",
|
|
2356
2385
|
onChange: n
|
|
2357
2386
|
}
|
|
2358
2387
|
),
|
|
2359
|
-
u && /* @__PURE__ */
|
|
2360
|
-
/* @__PURE__ */
|
|
2361
|
-
/* @__PURE__ */
|
|
2362
|
-
|
|
2388
|
+
u && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2389
|
+
/* @__PURE__ */ o.jsx("div", { children: i ? "" : "eller klikk på knappen for å velge fil" }),
|
|
2390
|
+
/* @__PURE__ */ o.jsx(
|
|
2391
|
+
Wt,
|
|
2363
2392
|
{
|
|
2364
2393
|
size: "small",
|
|
2365
2394
|
inputType: "button",
|
|
2366
2395
|
color: c,
|
|
2367
|
-
onClick:
|
|
2368
|
-
content:
|
|
2369
|
-
hasErrors:
|
|
2370
|
-
"data-transaction-name":
|
|
2396
|
+
onClick: j,
|
|
2397
|
+
content: I,
|
|
2398
|
+
hasErrors: g,
|
|
2399
|
+
"data-transaction-name": y
|
|
2371
2400
|
}
|
|
2372
2401
|
)
|
|
2373
2402
|
] })
|
|
2374
2403
|
]
|
|
2375
2404
|
}
|
|
2376
2405
|
),
|
|
2377
|
-
s && /* @__PURE__ */
|
|
2378
|
-
/* @__PURE__ */
|
|
2406
|
+
s && /* @__PURE__ */ o.jsx("span", { children: S(i, d) }),
|
|
2407
|
+
/* @__PURE__ */ o.jsx(Ve, { id: N(), content: h })
|
|
2379
2408
|
] });
|
|
2380
|
-
},
|
|
2381
|
-
errorBoxContainer:
|
|
2382
|
-
messageIn:
|
|
2383
|
-
warning:
|
|
2384
|
-
error:
|
|
2385
|
-
fullScreen:
|
|
2386
|
-
errorBox:
|
|
2387
|
-
infoSign:
|
|
2388
|
-
},
|
|
2409
|
+
}, ds = "_errorBoxContainer_88ulw_7", hs = "_messageIn_88ulw_1", ms = "_warning_88ulw_14", fs = "_error_88ulw_7", ps = "_fullScreen_88ulw_22", _s = "_errorBox_88ulw_7", gs = "_infoSign_88ulw_38", me = {
|
|
2410
|
+
errorBoxContainer: ds,
|
|
2411
|
+
messageIn: hs,
|
|
2412
|
+
warning: ms,
|
|
2413
|
+
error: fs,
|
|
2414
|
+
fullScreen: ps,
|
|
2415
|
+
errorBox: _s,
|
|
2416
|
+
infoSign: gs
|
|
2417
|
+
}, Yt = "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", ml = ({
|
|
2389
2418
|
type: e = "warning",
|
|
2390
2419
|
fullScreen: t = !1,
|
|
2391
2420
|
children: n = ""
|
|
2392
|
-
}) => /* @__PURE__ */
|
|
2421
|
+
}) => /* @__PURE__ */ o.jsx(
|
|
2393
2422
|
"div",
|
|
2394
2423
|
{
|
|
2395
|
-
className:
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
t &&
|
|
2424
|
+
className: P([
|
|
2425
|
+
me.errorBoxContainer,
|
|
2426
|
+
me[e],
|
|
2427
|
+
t && me.fullScreen
|
|
2399
2428
|
]),
|
|
2400
|
-
children: /* @__PURE__ */
|
|
2429
|
+
children: /* @__PURE__ */ o.jsxs(
|
|
2401
2430
|
"div",
|
|
2402
2431
|
{
|
|
2403
|
-
className:
|
|
2404
|
-
|
|
2405
|
-
t &&
|
|
2432
|
+
className: P([
|
|
2433
|
+
me.errorBox,
|
|
2434
|
+
t && me.fullScreen
|
|
2406
2435
|
]),
|
|
2407
2436
|
children: [
|
|
2408
|
-
/* @__PURE__ */
|
|
2437
|
+
/* @__PURE__ */ o.jsx("img", { src: Yt, alt: "", className: me.infoSign }),
|
|
2409
2438
|
n
|
|
2410
2439
|
]
|
|
2411
2440
|
}
|
|
2412
2441
|
)
|
|
2413
2442
|
}
|
|
2414
|
-
),
|
|
2415
|
-
footer:
|
|
2416
|
-
},
|
|
2417
|
-
infoBox:
|
|
2418
|
-
infoSign:
|
|
2419
|
-
},
|
|
2420
|
-
/* @__PURE__ */
|
|
2443
|
+
), vs = "_footer_19fad_1", ys = {
|
|
2444
|
+
footer: vs
|
|
2445
|
+
}, fl = ({ children: e }) => /* @__PURE__ */ o.jsx("footer", { className: ys.footer, children: /* @__PURE__ */ o.jsx(Sa, { children: e }) }), xs = "_infoBox_1mh67_7", bs = "_infoSign_1mh67_15", Ct = {
|
|
2446
|
+
infoBox: xs,
|
|
2447
|
+
infoSign: bs
|
|
2448
|
+
}, pl = ({ children: e = "" }) => /* @__PURE__ */ o.jsxs("div", { className: Ct.infoBox, children: [
|
|
2449
|
+
/* @__PURE__ */ o.jsx("img", { src: Yt, alt: "", className: Ct.infoSign }),
|
|
2421
2450
|
e
|
|
2422
|
-
] }), ws = "_inputField_17rmz_1",
|
|
2451
|
+
] }), ws = "_inputField_17rmz_1", Cs = "_noMargin_17rmz_4", Es = "_requiredSymbol_17rmz_10", ks = "_file_17rmz_17", js = "_input_17rmz_1", Ls = "_hasErrors_17rmz_50", Ss = "_fileInputContainer_17rmz_62", se = {
|
|
2423
2452
|
inputField: ws,
|
|
2424
|
-
noMargin:
|
|
2453
|
+
noMargin: Cs,
|
|
2425
2454
|
requiredSymbol: Es,
|
|
2426
|
-
file:
|
|
2427
|
-
input:
|
|
2455
|
+
file: ks,
|
|
2456
|
+
input: js,
|
|
2428
2457
|
hasErrors: Ls,
|
|
2429
2458
|
fileInputContainer: Ss
|
|
2430
|
-
},
|
|
2431
|
-
let t = "";
|
|
2432
|
-
const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = n.length;
|
|
2433
|
-
for (let r = 0; r < e; r++)
|
|
2434
|
-
t += n.charAt(Math.floor(Math.random() * a));
|
|
2435
|
-
return t;
|
|
2436
|
-
}, fl = ({
|
|
2459
|
+
}, _l = ({
|
|
2437
2460
|
id: e,
|
|
2438
2461
|
onChange: t,
|
|
2439
2462
|
onBlur: n,
|
|
@@ -2442,155 +2465,149 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2442
2465
|
disabled: s = !1,
|
|
2443
2466
|
required: c = !1,
|
|
2444
2467
|
readOnly: u,
|
|
2445
|
-
width:
|
|
2468
|
+
width: l,
|
|
2446
2469
|
value: i,
|
|
2447
2470
|
defaultValue: d,
|
|
2448
|
-
elementKey:
|
|
2471
|
+
elementKey: g,
|
|
2449
2472
|
label: h = "",
|
|
2450
|
-
contentOnly:
|
|
2473
|
+
contentOnly: v = !1,
|
|
2451
2474
|
buttonColor: m = "primary",
|
|
2452
|
-
buttonContent:
|
|
2453
|
-
selectedFileName:
|
|
2475
|
+
buttonContent: y,
|
|
2476
|
+
selectedFileName: w,
|
|
2454
2477
|
placeholder: f = "",
|
|
2455
2478
|
defaultContent: x = "",
|
|
2456
2479
|
min: b,
|
|
2457
|
-
max:
|
|
2458
|
-
role:
|
|
2459
|
-
"aria-describedby":
|
|
2460
|
-
"aria-autocomplete":
|
|
2461
|
-
hasErrors:
|
|
2462
|
-
errorMessage:
|
|
2463
|
-
noMargin:
|
|
2480
|
+
max: E,
|
|
2481
|
+
role: S,
|
|
2482
|
+
"aria-describedby": j,
|
|
2483
|
+
"aria-autocomplete": N,
|
|
2484
|
+
hasErrors: R = !1,
|
|
2485
|
+
errorMessage: I = "",
|
|
2486
|
+
noMargin: $ = !1
|
|
2464
2487
|
}) => {
|
|
2465
|
-
const
|
|
2466
|
-
const
|
|
2467
|
-
return `${String(
|
|
2468
|
-
|
|
2469
|
-
).padStart(2, "0")}.${
|
|
2470
|
-
},
|
|
2488
|
+
const H = (C) => {
|
|
2489
|
+
const M = new Date(C);
|
|
2490
|
+
return `${String(M.getDate()).padStart(2, "0")}.${String(
|
|
2491
|
+
M.getMonth() + 1
|
|
2492
|
+
).padStart(2, "0")}.${M.getFullYear()}`;
|
|
2493
|
+
}, J = (C, M) => r === "date" ? C ? H(C) : M : C || M, L = () => `${e}-errorMessage`, z = l ? { maxWidth: l } : {}, le = {
|
|
2471
2494
|
name: a,
|
|
2472
2495
|
readOnly: u,
|
|
2473
2496
|
disabled: s,
|
|
2474
2497
|
required: c,
|
|
2475
2498
|
type: r,
|
|
2476
|
-
role:
|
|
2499
|
+
role: S,
|
|
2477
2500
|
id: e,
|
|
2478
2501
|
min: b,
|
|
2479
|
-
max:
|
|
2502
|
+
max: E,
|
|
2480
2503
|
onChange: t,
|
|
2481
2504
|
onBlur: n,
|
|
2482
2505
|
...i !== void 0 ? { value: i } : d !== void 0 ? { defaultValue: d } : {},
|
|
2483
2506
|
placeholder: f,
|
|
2484
|
-
className:
|
|
2485
|
-
"aria-describedby":
|
|
2486
|
-
"aria-invalid":
|
|
2487
|
-
"aria-autocomplete":
|
|
2488
|
-
style:
|
|
2507
|
+
className: R ? se.hasErrors : void 0,
|
|
2508
|
+
"aria-describedby": R && I ? L() : j,
|
|
2509
|
+
"aria-invalid": R ? "true" : void 0,
|
|
2510
|
+
"aria-autocomplete": N || void 0,
|
|
2511
|
+
style: z
|
|
2489
2512
|
};
|
|
2490
|
-
return /* @__PURE__ */
|
|
2513
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2491
2514
|
"div",
|
|
2492
2515
|
{
|
|
2493
|
-
className:
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2516
|
+
className: P([
|
|
2517
|
+
se.inputField,
|
|
2518
|
+
se[r],
|
|
2519
|
+
$ && se.noMargin
|
|
2497
2520
|
]),
|
|
2498
2521
|
children: [
|
|
2499
|
-
/* @__PURE__ */
|
|
2522
|
+
/* @__PURE__ */ o.jsxs($e, { htmlFor: e, children: [
|
|
2500
2523
|
h,
|
|
2501
|
-
c && /* @__PURE__ */
|
|
2502
|
-
r === "file" && /* @__PURE__ */
|
|
2503
|
-
/* @__PURE__ */
|
|
2504
|
-
|
|
2505
|
-
|
|
2524
|
+
c && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: se.requiredSymbol }),
|
|
2525
|
+
r === "file" && /* @__PURE__ */ o.jsxs("div", { className: se.fileInputContainer, children: [
|
|
2526
|
+
/* @__PURE__ */ o.jsx("span", { className: se.input, children: w }),
|
|
2527
|
+
y && /* @__PURE__ */ o.jsx(
|
|
2528
|
+
Wt,
|
|
2506
2529
|
{
|
|
2507
2530
|
color: m,
|
|
2508
2531
|
inputType: "button",
|
|
2509
2532
|
onClick: () => {
|
|
2510
|
-
const
|
|
2511
|
-
|
|
2533
|
+
const C = document == null ? void 0 : document.getElementById(e);
|
|
2534
|
+
C == null || C.click();
|
|
2512
2535
|
},
|
|
2513
|
-
content:
|
|
2536
|
+
content: y
|
|
2514
2537
|
}
|
|
2515
2538
|
)
|
|
2516
2539
|
] })
|
|
2517
2540
|
] }),
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
{
|
|
2521
|
-
...A
|
|
2522
|
-
},
|
|
2523
|
-
_ || `${e}-${ct(6)}`
|
|
2524
|
-
),
|
|
2525
|
-
/* @__PURE__ */ l.jsx(He, { id: S(), content: R })
|
|
2541
|
+
v ? /* @__PURE__ */ o.jsx("span", { children: J(i ?? d, x) }) : /* @__PURE__ */ o.jsx("input", { ...le }, g || e),
|
|
2542
|
+
/* @__PURE__ */ o.jsx(Ve, { id: L(), content: I })
|
|
2526
2543
|
]
|
|
2527
2544
|
}
|
|
2528
2545
|
);
|
|
2529
|
-
},
|
|
2530
|
-
lead:
|
|
2531
|
-
},
|
|
2546
|
+
}, $s = "_lead_176gy_1", Is = {
|
|
2547
|
+
lead: $s
|
|
2548
|
+
}, gl = ({ id: e, htmlTag: t = "p", children: n }) => Y.createElement(
|
|
2532
2549
|
t,
|
|
2533
2550
|
{
|
|
2534
|
-
className:
|
|
2551
|
+
className: Is.lead,
|
|
2535
2552
|
id: e || void 0
|
|
2536
2553
|
},
|
|
2537
2554
|
n
|
|
2538
|
-
),
|
|
2539
|
-
list:
|
|
2555
|
+
), Ms = "_list_16gsl_1", Rs = "_compact_16gsl_10", Et = {
|
|
2556
|
+
list: Ms,
|
|
2540
2557
|
compact: Rs
|
|
2541
|
-
},
|
|
2558
|
+
}, vl = ({
|
|
2542
2559
|
listStyle: e,
|
|
2543
2560
|
compact: t = !1,
|
|
2544
2561
|
ordered: n = !1,
|
|
2545
2562
|
children: a
|
|
2546
2563
|
}) => {
|
|
2547
|
-
const r = (
|
|
2564
|
+
const r = (l) => ve(l).map((d, g) => Me(d) ? ge(d, {
|
|
2548
2565
|
compact: t,
|
|
2549
|
-
key: `listItem-${
|
|
2566
|
+
key: `listItem-${g}`
|
|
2550
2567
|
}) : d), s = n ? "ol" : "ul", c = n ? "decimal" : "disc";
|
|
2551
2568
|
return Y.createElement(
|
|
2552
2569
|
s,
|
|
2553
2570
|
{
|
|
2554
|
-
className: `${
|
|
2571
|
+
className: `${Et.list} ${t ? Et.compact : ""}`,
|
|
2555
2572
|
style: { ["--listStyle"]: e || c }
|
|
2556
2573
|
},
|
|
2557
|
-
r(
|
|
2574
|
+
r(_e.toArray(a))
|
|
2558
2575
|
);
|
|
2559
|
-
},
|
|
2560
|
-
listItem:
|
|
2561
|
-
compact:
|
|
2562
|
-
},
|
|
2563
|
-
const n =
|
|
2564
|
-
|
|
2565
|
-
e &&
|
|
2576
|
+
}, Ns = "_listItem_33xs0_1", zs = "_compact_33xs0_5", kt = {
|
|
2577
|
+
listItem: Ns,
|
|
2578
|
+
compact: zs
|
|
2579
|
+
}, yl = ({ compact: e = !1, children: t }) => {
|
|
2580
|
+
const n = P([
|
|
2581
|
+
kt.listItem,
|
|
2582
|
+
e && kt.compact
|
|
2566
2583
|
]);
|
|
2567
|
-
return /* @__PURE__ */
|
|
2568
|
-
},
|
|
2569
|
-
loadingAnimation:
|
|
2570
|
-
fixed:
|
|
2571
|
-
},
|
|
2584
|
+
return /* @__PURE__ */ o.jsx("li", { className: n, children: t });
|
|
2585
|
+
}, Ts = "_loadingAnimation_hzd5u_1", Ps = "_fixed_hzd5u_17", Ke = {
|
|
2586
|
+
loadingAnimation: Ts,
|
|
2587
|
+
fixed: Ps
|
|
2588
|
+
}, xl = ({
|
|
2572
2589
|
fixed: e = !1,
|
|
2573
2590
|
message: t = ""
|
|
2574
2591
|
}) => {
|
|
2575
|
-
const n = e ? `${
|
|
2576
|
-
return /* @__PURE__ */
|
|
2577
|
-
}, St = ({ listItem: e }) => typeof e == "string" ? /* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("span", { children: e }) }) : typeof e == "object" ? /* @__PURE__ */ l.jsx("li", { children: /* @__PURE__ */ l.jsx("a", { href: e.href, children: e.name }) }) : null, Ps = "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", Bs = "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", Ds = "_navigationBarContainer_n1cc0_1", As = "_mainContentLink_n1cc0_1", Fs = "_compact_n1cc0_30", Os = "_navigationBar_n1cc0_1", qs = "_preventStacking_n1cc0_63", Hs = "_logoContainer_n1cc0_82", Vs = "_childElements_n1cc0_91", Xs = "_menuToggle_n1cc0_97", Ws = "_hamburgerIcon_n1cc0_125", Us = "_active_n1cc0_161", Ys = "_dropdownContainer_n1cc0_170", Js = "_dropdown_n1cc0_170", Gs = "_primaryList_n1cc0_195", Ks = "_secondaryList_n1cc0_196", Zs = "_line_n1cc0_392", P = {
|
|
2578
|
-
navigationBarContainer:
|
|
2579
|
-
mainContentLink:
|
|
2580
|
-
compact:
|
|
2581
|
-
navigationBar:
|
|
2582
|
-
preventStacking:
|
|
2583
|
-
logoContainer:
|
|
2584
|
-
childElements:
|
|
2585
|
-
menuToggle:
|
|
2586
|
-
hamburgerIcon:
|
|
2587
|
-
active:
|
|
2588
|
-
dropdownContainer:
|
|
2589
|
-
dropdown:
|
|
2590
|
-
primaryList:
|
|
2591
|
-
secondaryList:
|
|
2592
|
-
line:
|
|
2593
|
-
},
|
|
2592
|
+
const n = e ? `${Ke.loadingAnimation} ${Ke.fixed}` : Ke.loadingAnimation;
|
|
2593
|
+
return /* @__PURE__ */ o.jsx("div", { className: n, children: t });
|
|
2594
|
+
}, jt = ({ listItem: e }) => typeof e == "string" ? /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx("span", { children: e }) }) : typeof e == "object" ? /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx("a", { href: e.href, children: e.name }) }) : null, Bs = "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", Ds = "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", As = "_navigationBarContainer_n1cc0_1", Fs = "_mainContentLink_n1cc0_1", Os = "_compact_n1cc0_30", qs = "_navigationBar_n1cc0_1", Hs = "_preventStacking_n1cc0_63", Vs = "_logoContainer_n1cc0_82", Xs = "_childElements_n1cc0_91", Ws = "_menuToggle_n1cc0_97", Us = "_hamburgerIcon_n1cc0_125", Ys = "_active_n1cc0_161", Js = "_dropdownContainer_n1cc0_170", Gs = "_dropdown_n1cc0_170", Ks = "_primaryList_n1cc0_195", Zs = "_secondaryList_n1cc0_196", Qs = "_line_n1cc0_392", B = {
|
|
2595
|
+
navigationBarContainer: As,
|
|
2596
|
+
mainContentLink: Fs,
|
|
2597
|
+
compact: Os,
|
|
2598
|
+
navigationBar: qs,
|
|
2599
|
+
preventStacking: Hs,
|
|
2600
|
+
logoContainer: Vs,
|
|
2601
|
+
childElements: Xs,
|
|
2602
|
+
menuToggle: Ws,
|
|
2603
|
+
hamburgerIcon: Us,
|
|
2604
|
+
active: Ys,
|
|
2605
|
+
dropdownContainer: Js,
|
|
2606
|
+
dropdown: Gs,
|
|
2607
|
+
primaryList: Ks,
|
|
2608
|
+
secondaryList: Zs,
|
|
2609
|
+
line: Qs
|
|
2610
|
+
}, eo = (e) => (e == null ? void 0 : e.logo) ?? "", to = (e) => (e == null ? void 0 : e.logoPadding) ?? "", no = (e) => (e == null ? void 0 : e.appName) ?? "", bl = ({
|
|
2594
2611
|
primaryListItems: e = [],
|
|
2595
2612
|
secondaryListItems: t = [],
|
|
2596
2613
|
logoLink: n = "",
|
|
@@ -2599,71 +2616,71 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2599
2616
|
theme: s,
|
|
2600
2617
|
compact: c,
|
|
2601
2618
|
mainContentId: u,
|
|
2602
|
-
preventChildElementStacking:
|
|
2619
|
+
preventChildElementStacking: l = !1,
|
|
2603
2620
|
children: i
|
|
2604
2621
|
}) => {
|
|
2605
|
-
const [d,
|
|
2606
|
-
padding:
|
|
2607
|
-
}), m = (x = e, b = 0) => x.length ? /* @__PURE__ */
|
|
2608
|
-
const
|
|
2609
|
-
return
|
|
2610
|
-
/* @__PURE__ */
|
|
2611
|
-
m(
|
|
2612
|
-
] },
|
|
2613
|
-
}) }) : null,
|
|
2614
|
-
const
|
|
2615
|
-
return x != null && x.length ? /* @__PURE__ */
|
|
2622
|
+
const [d, g] = ke(!1), h = () => g(!d), v = (x) => ({
|
|
2623
|
+
padding: to(x)
|
|
2624
|
+
}), m = (x = e, b = 0) => x.length ? /* @__PURE__ */ o.jsx("ul", { className: B.primaryList, children: x.map((E, S) => {
|
|
2625
|
+
const j = `${b}-${S}`;
|
|
2626
|
+
return E.listItems ? /* @__PURE__ */ o.jsxs("li", { children: [
|
|
2627
|
+
/* @__PURE__ */ o.jsx("span", { children: E.name }),
|
|
2628
|
+
m(E.listItems, b + 1)
|
|
2629
|
+
] }, j) : /* @__PURE__ */ o.jsx(jt, { listItem: E }, j);
|
|
2630
|
+
}) }) : null, y = () => t.length ? /* @__PURE__ */ o.jsx("ul", { className: B.secondaryList, children: t.map((x, b) => /* @__PURE__ */ o.jsx(jt, { listItem: x }, b)) }) : null, w = (x, b) => {
|
|
2631
|
+
const E = eo(s), S = no(s), j = x && b ? "" : E && S ? `${S} logo` : "DIBK logo", N = E ? /* @__PURE__ */ o.jsx("img", { alt: j, src: E, style: v(s) }) : /* @__PURE__ */ o.jsx("img", { alt: j, src: c ? Bs : Ds });
|
|
2632
|
+
return x != null && x.length ? /* @__PURE__ */ o.jsx(
|
|
2616
2633
|
"a",
|
|
2617
2634
|
{
|
|
2618
2635
|
href: x,
|
|
2619
2636
|
title: b,
|
|
2620
2637
|
target: r ? "_blank" : void 0,
|
|
2621
2638
|
rel: r ? "noopener noreferrer" : void 0,
|
|
2622
|
-
children:
|
|
2639
|
+
children: N
|
|
2623
2640
|
}
|
|
2624
|
-
) :
|
|
2641
|
+
) : N;
|
|
2625
2642
|
}, f = e.length > 0 || t.length > 0;
|
|
2626
|
-
return /* @__PURE__ */
|
|
2643
|
+
return /* @__PURE__ */ o.jsxs(
|
|
2627
2644
|
"div",
|
|
2628
2645
|
{
|
|
2629
|
-
className:
|
|
2630
|
-
c &&
|
|
2631
|
-
|
|
2646
|
+
className: P([
|
|
2647
|
+
c && B.compact,
|
|
2648
|
+
B.navigationBarContainer
|
|
2632
2649
|
]),
|
|
2633
2650
|
children: [
|
|
2634
|
-
u && /* @__PURE__ */
|
|
2651
|
+
u && /* @__PURE__ */ o.jsx(
|
|
2635
2652
|
"a",
|
|
2636
2653
|
{
|
|
2637
2654
|
id: "main-content-link",
|
|
2638
2655
|
href: `#${u}`,
|
|
2639
|
-
className:
|
|
2640
|
-
children: /* @__PURE__ */
|
|
2656
|
+
className: B.mainContentLink,
|
|
2657
|
+
children: /* @__PURE__ */ o.jsx("span", { id: "main-content-link-text", children: "Hopp til hovedinnhold" })
|
|
2641
2658
|
}
|
|
2642
2659
|
),
|
|
2643
|
-
/* @__PURE__ */
|
|
2660
|
+
/* @__PURE__ */ o.jsxs(
|
|
2644
2661
|
"div",
|
|
2645
2662
|
{
|
|
2646
|
-
className:
|
|
2647
|
-
|
|
2648
|
-
|
|
2663
|
+
className: P([
|
|
2664
|
+
B.navigationBar,
|
|
2665
|
+
l && B.preventStacking
|
|
2649
2666
|
]),
|
|
2650
2667
|
children: [
|
|
2651
|
-
/* @__PURE__ */
|
|
2652
|
-
i && /* @__PURE__ */
|
|
2653
|
-
f && /* @__PURE__ */
|
|
2668
|
+
/* @__PURE__ */ o.jsx("div", { className: B.logoContainer, children: w(n, a) }),
|
|
2669
|
+
i && /* @__PURE__ */ o.jsx("div", { className: B.childElements, children: i }),
|
|
2670
|
+
f && /* @__PURE__ */ o.jsxs(
|
|
2654
2671
|
"button",
|
|
2655
2672
|
{
|
|
2656
2673
|
type: "button",
|
|
2657
|
-
className: `${
|
|
2674
|
+
className: `${B.menuToggle} ${d ? B.active : ""}`,
|
|
2658
2675
|
onClick: h,
|
|
2659
2676
|
"aria-expanded": d ? "true" : "false",
|
|
2660
2677
|
"aria-controls": "main-menu-dropdown",
|
|
2661
2678
|
children: [
|
|
2662
2679
|
!c && "Meny",
|
|
2663
|
-
/* @__PURE__ */
|
|
2664
|
-
/* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2666
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ o.jsxs("span", { className: B.hamburgerIcon, children: [
|
|
2681
|
+
/* @__PURE__ */ o.jsx("span", { className: B.line }),
|
|
2682
|
+
/* @__PURE__ */ o.jsx("span", { className: B.line }),
|
|
2683
|
+
/* @__PURE__ */ o.jsx("span", { className: B.line })
|
|
2667
2684
|
] })
|
|
2668
2685
|
]
|
|
2669
2686
|
}
|
|
@@ -2671,56 +2688,56 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2671
2688
|
]
|
|
2672
2689
|
}
|
|
2673
2690
|
),
|
|
2674
|
-
f && /* @__PURE__ */
|
|
2691
|
+
f && /* @__PURE__ */ o.jsx(nt, { children: /* @__PURE__ */ o.jsx(
|
|
2675
2692
|
"div",
|
|
2676
2693
|
{
|
|
2677
|
-
className:
|
|
2678
|
-
|
|
2679
|
-
d &&
|
|
2694
|
+
className: P([
|
|
2695
|
+
B.dropdownContainer,
|
|
2696
|
+
d && B.active
|
|
2680
2697
|
]),
|
|
2681
|
-
children: /* @__PURE__ */
|
|
2698
|
+
children: /* @__PURE__ */ o.jsxs("div", { id: "main-menu-dropdown", className: B.dropdown, children: [
|
|
2682
2699
|
m(),
|
|
2683
|
-
|
|
2700
|
+
y()
|
|
2684
2701
|
] })
|
|
2685
2702
|
}
|
|
2686
2703
|
) })
|
|
2687
2704
|
]
|
|
2688
2705
|
}
|
|
2689
2706
|
);
|
|
2690
|
-
},
|
|
2691
|
-
paper:
|
|
2692
|
-
noMargin:
|
|
2693
|
-
noPadding:
|
|
2694
|
-
},
|
|
2707
|
+
}, ro = "_paper_1lgl3_1", ao = "_noMargin_1lgl3_6", so = "_noPadding_1lgl3_9", Ze = {
|
|
2708
|
+
paper: ro,
|
|
2709
|
+
noMargin: ao,
|
|
2710
|
+
noPadding: so
|
|
2711
|
+
}, wl = ({
|
|
2695
2712
|
noMargin: e = !1,
|
|
2696
2713
|
noPadding: t = !1,
|
|
2697
2714
|
children: n
|
|
2698
2715
|
}) => {
|
|
2699
2716
|
const a = [
|
|
2700
|
-
|
|
2701
|
-
e &&
|
|
2702
|
-
t &&
|
|
2717
|
+
Ze.paper,
|
|
2718
|
+
e && Ze.noMargin,
|
|
2719
|
+
t && Ze.noPadding
|
|
2703
2720
|
].filter(Boolean).join(" ");
|
|
2704
|
-
return /* @__PURE__ */
|
|
2705
|
-
},
|
|
2706
|
-
progressBar:
|
|
2707
|
-
hasErrors:
|
|
2708
|
-
},
|
|
2721
|
+
return /* @__PURE__ */ o.jsx("div", { className: a, children: n });
|
|
2722
|
+
}, oo = "_progressBar_t5aid_1", lo = "_hasErrors_t5aid_23", Lt = {
|
|
2723
|
+
progressBar: oo,
|
|
2724
|
+
hasErrors: lo
|
|
2725
|
+
}, Cl = ({ progress: e = 0, hasErrors: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
2709
2726
|
"div",
|
|
2710
2727
|
{
|
|
2711
|
-
className: `${
|
|
2728
|
+
className: `${Lt.progressBar} ${t ? Lt.hasErrors : ""}`,
|
|
2712
2729
|
role: "progressbar",
|
|
2713
2730
|
"aria-valuenow": e,
|
|
2714
2731
|
"aria-valuemin": 0,
|
|
2715
2732
|
"aria-valuemax": 100,
|
|
2716
2733
|
style: { "--value": e }
|
|
2717
2734
|
}
|
|
2718
|
-
),
|
|
2719
|
-
radioButtonIcon:
|
|
2720
|
-
hasErrors:
|
|
2721
|
-
checked:
|
|
2722
|
-
disabled:
|
|
2723
|
-
},
|
|
2735
|
+
), io = "_radioButtonIcon_32fe0_1", co = "_hasErrors_32fe0_22", uo = "_checked_32fe0_32", ho = "_disabled_32fe0_48", Be = {
|
|
2736
|
+
radioButtonIcon: io,
|
|
2737
|
+
hasErrors: co,
|
|
2738
|
+
checked: uo,
|
|
2739
|
+
disabled: ho
|
|
2740
|
+
}, mo = ({
|
|
2724
2741
|
size: e = "10px",
|
|
2725
2742
|
checked: t = !1,
|
|
2726
2743
|
disabled: n = !1,
|
|
@@ -2730,19 +2747,19 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2730
2747
|
height: e,
|
|
2731
2748
|
width: e
|
|
2732
2749
|
}, s = [
|
|
2733
|
-
|
|
2734
|
-
t &&
|
|
2735
|
-
n &&
|
|
2736
|
-
a &&
|
|
2750
|
+
Be.radioButtonIcon,
|
|
2751
|
+
t && Be.checked,
|
|
2752
|
+
n && Be.disabled,
|
|
2753
|
+
a && Be.hasErrors
|
|
2737
2754
|
].filter(Boolean).join(" ");
|
|
2738
|
-
return /* @__PURE__ */
|
|
2739
|
-
},
|
|
2740
|
-
radioButtonInput:
|
|
2741
|
-
requiredSymbol:
|
|
2742
|
-
disabled:
|
|
2743
|
-
labelText:
|
|
2744
|
-
hasErrors:
|
|
2745
|
-
},
|
|
2755
|
+
return /* @__PURE__ */ o.jsx("span", { className: s, style: r });
|
|
2756
|
+
}, fo = "_radioButtonInput_1i7cy_1", po = "_requiredSymbol_1i7cy_6", _o = "_disabled_1i7cy_13", go = "_labelText_1i7cy_19", vo = "_hasErrors_1i7cy_27", fe = {
|
|
2757
|
+
radioButtonInput: fo,
|
|
2758
|
+
requiredSymbol: po,
|
|
2759
|
+
disabled: _o,
|
|
2760
|
+
labelText: go,
|
|
2761
|
+
hasErrors: vo
|
|
2762
|
+
}, yo = ({
|
|
2746
2763
|
checked: e = !1,
|
|
2747
2764
|
disabled: t = !1,
|
|
2748
2765
|
required: n = !1,
|
|
@@ -2751,23 +2768,23 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2751
2768
|
name: s = "",
|
|
2752
2769
|
onChange: c,
|
|
2753
2770
|
contentOnly: u = !1,
|
|
2754
|
-
hasErrors:
|
|
2771
|
+
hasErrors: l = !1,
|
|
2755
2772
|
inputValue: i,
|
|
2756
2773
|
tabIndex: d,
|
|
2757
|
-
children:
|
|
2774
|
+
children: g,
|
|
2758
2775
|
"aria-controls": h,
|
|
2759
|
-
"aria-describedby":
|
|
2776
|
+
"aria-describedby": v
|
|
2760
2777
|
}) => {
|
|
2761
2778
|
const m = [
|
|
2762
|
-
|
|
2763
|
-
e &&
|
|
2764
|
-
t &&
|
|
2765
|
-
|
|
2766
|
-
].filter(Boolean).join(" "),
|
|
2779
|
+
fe.radioButtonInput,
|
|
2780
|
+
e && fe.checked,
|
|
2781
|
+
t && fe.disabled,
|
|
2782
|
+
l && fe.hasErrors
|
|
2783
|
+
].filter(Boolean).join(" "), y = {
|
|
2767
2784
|
checked: e,
|
|
2768
2785
|
disabled: t,
|
|
2769
|
-
hasErrors: !u &&
|
|
2770
|
-
},
|
|
2786
|
+
hasErrors: !u && l
|
|
2787
|
+
}, w = {
|
|
2771
2788
|
id: r,
|
|
2772
2789
|
name: s,
|
|
2773
2790
|
type: "radio",
|
|
@@ -2778,51 +2795,51 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2778
2795
|
onChange: c,
|
|
2779
2796
|
tabIndex: d ?? void 0,
|
|
2780
2797
|
"aria-controls": h,
|
|
2781
|
-
"aria-invalid":
|
|
2782
|
-
"aria-describedby":
|
|
2798
|
+
"aria-invalid": l ? "true" : void 0,
|
|
2799
|
+
"aria-describedby": v
|
|
2783
2800
|
};
|
|
2784
|
-
return /* @__PURE__ */
|
|
2785
|
-
!u && /* @__PURE__ */
|
|
2786
|
-
/* @__PURE__ */
|
|
2787
|
-
/* @__PURE__ */
|
|
2801
|
+
return /* @__PURE__ */ o.jsxs("label", { htmlFor: r, className: m, children: [
|
|
2802
|
+
!u && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2803
|
+
/* @__PURE__ */ o.jsx(mo, { ...y }),
|
|
2804
|
+
/* @__PURE__ */ o.jsx("input", { ...w })
|
|
2788
2805
|
] }),
|
|
2789
|
-
/* @__PURE__ */
|
|
2790
|
-
|
|
2791
|
-
n && /* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ o.jsxs("span", { className: fe.labelText, children: [
|
|
2807
|
+
g,
|
|
2808
|
+
n && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: fe.requiredSymbol })
|
|
2792
2809
|
] })
|
|
2793
2810
|
] });
|
|
2794
|
-
},
|
|
2795
|
-
radioButtonList:
|
|
2796
|
-
requiredSymbol:
|
|
2797
|
-
},
|
|
2811
|
+
}, xo = "_radioButtonList_1cyu3_1", bo = "_requiredSymbol_1cyu3_16", St = {
|
|
2812
|
+
radioButtonList: xo,
|
|
2813
|
+
requiredSymbol: bo
|
|
2814
|
+
}, El = ({
|
|
2798
2815
|
legend: e,
|
|
2799
2816
|
legendSize: t,
|
|
2800
2817
|
required: n = !1,
|
|
2801
2818
|
compact: a = !1,
|
|
2802
2819
|
children: r
|
|
2803
2820
|
}) => {
|
|
2804
|
-
const s = (c) =>
|
|
2821
|
+
const s = (c) => ve(c).map((l, i) => {
|
|
2805
2822
|
var d;
|
|
2806
|
-
return
|
|
2823
|
+
return Me(l) && ((d = l.type) == null ? void 0 : d.displayName) === "RadioButtonListItem" ? ge(l, {
|
|
2807
2824
|
requiredGroup: n,
|
|
2808
2825
|
compact: a,
|
|
2809
2826
|
key: `radioButtonListItem-${i}`
|
|
2810
|
-
}) :
|
|
2827
|
+
}) : l;
|
|
2811
2828
|
});
|
|
2812
|
-
return /* @__PURE__ */
|
|
2813
|
-
!!(e != null && e.length) && /* @__PURE__ */
|
|
2814
|
-
t ? /* @__PURE__ */
|
|
2815
|
-
n && /* @__PURE__ */
|
|
2829
|
+
return /* @__PURE__ */ o.jsxs("fieldset", { className: St.radioButtonList, children: [
|
|
2830
|
+
!!(e != null && e.length) && /* @__PURE__ */ o.jsxs("legend", { children: [
|
|
2831
|
+
t ? /* @__PURE__ */ o.jsx(Ut, { size: t, children: e }) : e,
|
|
2832
|
+
n && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: St.requiredSymbol })
|
|
2816
2833
|
] }),
|
|
2817
|
-
s(
|
|
2834
|
+
s(_e.toArray(r))
|
|
2818
2835
|
] });
|
|
2819
|
-
}, wo = "_radioButtonListItem_1ggab_1",
|
|
2836
|
+
}, wo = "_radioButtonListItem_1ggab_1", Co = "_contentOnly_1ggab_26", Eo = "_compact_1ggab_26", ko = "_disabled_1ggab_41", jo = "_checked_1ggab_44", pe = {
|
|
2820
2837
|
radioButtonListItem: wo,
|
|
2821
|
-
contentOnly:
|
|
2838
|
+
contentOnly: Co,
|
|
2822
2839
|
compact: Eo,
|
|
2823
|
-
disabled:
|
|
2824
|
-
checked:
|
|
2825
|
-
},
|
|
2840
|
+
disabled: ko,
|
|
2841
|
+
checked: jo
|
|
2842
|
+
}, kl = ({
|
|
2826
2843
|
inputValue: e,
|
|
2827
2844
|
checked: t = !1,
|
|
2828
2845
|
disabled: n = !1,
|
|
@@ -2831,45 +2848,45 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2831
2848
|
name: s = "",
|
|
2832
2849
|
id: c,
|
|
2833
2850
|
onChange: u,
|
|
2834
|
-
contentOnly:
|
|
2851
|
+
contentOnly: l = !1,
|
|
2835
2852
|
compact: i = !1,
|
|
2836
2853
|
hasErrors: d = !1,
|
|
2837
|
-
"aria-controls":
|
|
2854
|
+
"aria-controls": g,
|
|
2838
2855
|
"aria-describedby": h,
|
|
2839
|
-
children:
|
|
2856
|
+
children: v
|
|
2840
2857
|
}) => {
|
|
2841
|
-
const m =
|
|
2842
|
-
|
|
2843
|
-
t &&
|
|
2844
|
-
n &&
|
|
2845
|
-
i &&
|
|
2846
|
-
|
|
2847
|
-
d &&
|
|
2848
|
-
]),
|
|
2858
|
+
const m = P([
|
|
2859
|
+
pe.radioButtonListItem,
|
|
2860
|
+
t && pe.checked,
|
|
2861
|
+
n && pe.disabled,
|
|
2862
|
+
i && pe.compact,
|
|
2863
|
+
l && pe.contentOnly,
|
|
2864
|
+
d && pe.hasErrors
|
|
2865
|
+
]), y = {
|
|
2849
2866
|
onChange: u,
|
|
2850
2867
|
inputValue: e,
|
|
2851
2868
|
checked: t,
|
|
2852
2869
|
disabled: n,
|
|
2853
2870
|
required: a,
|
|
2854
2871
|
requiredGroup: r,
|
|
2855
|
-
contentOnly:
|
|
2872
|
+
contentOnly: l,
|
|
2856
2873
|
hasErrors: d,
|
|
2857
|
-
"aria-controls":
|
|
2874
|
+
"aria-controls": g,
|
|
2858
2875
|
"aria-describedby": h,
|
|
2859
2876
|
id: c,
|
|
2860
2877
|
name: s
|
|
2861
2878
|
};
|
|
2862
|
-
return /* @__PURE__ */
|
|
2863
|
-
}, Lo = "_select_18o2z_1", So = "_requiredSymbol_18o2z_1",
|
|
2879
|
+
return /* @__PURE__ */ o.jsx("div", { className: m, children: /* @__PURE__ */ o.jsx(yo, { ...y, children: v }) });
|
|
2880
|
+
}, Lo = "_select_18o2z_1", So = "_requiredSymbol_18o2z_1", $o = "_selectContainer_18o2z_8", Io = "_selectListArrow_18o2z_11", Mo = "_multipleSelectDropdown_18o2z_40", Ro = "_multipleSelectElement_18o2z_52", No = "_multiple_18o2z_40", zo = "_hasErrors_18o2z_100", G = {
|
|
2864
2881
|
select: Lo,
|
|
2865
2882
|
requiredSymbol: So,
|
|
2866
|
-
selectContainer:
|
|
2867
|
-
selectListArrow:
|
|
2868
|
-
multipleSelectDropdown:
|
|
2883
|
+
selectContainer: $o,
|
|
2884
|
+
selectListArrow: Io,
|
|
2885
|
+
multipleSelectDropdown: Mo,
|
|
2869
2886
|
multipleSelectElement: Ro,
|
|
2870
|
-
multiple:
|
|
2871
|
-
hasErrors:
|
|
2872
|
-
},
|
|
2887
|
+
multiple: No,
|
|
2888
|
+
hasErrors: zo
|
|
2889
|
+
}, jl = ({
|
|
2873
2890
|
id: e,
|
|
2874
2891
|
onChange: t,
|
|
2875
2892
|
name: n = "",
|
|
@@ -2878,133 +2895,140 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
2878
2895
|
multiple: s = !1,
|
|
2879
2896
|
options: c = [],
|
|
2880
2897
|
width: u,
|
|
2881
|
-
value:
|
|
2898
|
+
value: l,
|
|
2882
2899
|
defaultValue: i,
|
|
2883
2900
|
label: d = "",
|
|
2884
|
-
contentOnly:
|
|
2901
|
+
contentOnly: g = !1,
|
|
2885
2902
|
keyAsContent: h = !1,
|
|
2886
|
-
placeholder:
|
|
2903
|
+
placeholder: v = "",
|
|
2887
2904
|
placeholderValue: m = "",
|
|
2888
|
-
defaultContent:
|
|
2889
|
-
role:
|
|
2905
|
+
defaultContent: y = "",
|
|
2906
|
+
role: w,
|
|
2890
2907
|
"aria-describedby": f,
|
|
2891
2908
|
hasErrors: x = !1,
|
|
2892
2909
|
errorMessage: b = ""
|
|
2893
2910
|
}) => {
|
|
2894
|
-
const [
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
}, A = (M) => {
|
|
2903
|
-
$.current && !$.current.contains(M.target) && I();
|
|
2911
|
+
const [E, S] = ke(!1), j = Le(null), N = Ee((C) => {
|
|
2912
|
+
C && It(C);
|
|
2913
|
+
}, []), R = () => S(!1);
|
|
2914
|
+
je(() => {
|
|
2915
|
+
const C = (D) => {
|
|
2916
|
+
D.key === "Escape" && R();
|
|
2917
|
+
}, M = (D) => {
|
|
2918
|
+
j.current && !j.current.contains(D.target) && R();
|
|
2904
2919
|
};
|
|
2905
|
-
return document.addEventListener("mousedown",
|
|
2906
|
-
document.removeEventListener("mousedown",
|
|
2920
|
+
return document.addEventListener("mousedown", M), document.addEventListener("keydown", C), () => {
|
|
2921
|
+
document.removeEventListener("mousedown", M), document.removeEventListener("keydown", C);
|
|
2907
2922
|
};
|
|
2908
2923
|
}, []);
|
|
2909
|
-
const
|
|
2910
|
-
const
|
|
2911
|
-
(
|
|
2924
|
+
const I = (C, M) => {
|
|
2925
|
+
const D = M.find(
|
|
2926
|
+
(V) => typeof V == "object" ? V.value === C : V === C
|
|
2912
2927
|
);
|
|
2913
|
-
return typeof
|
|
2914
|
-
},
|
|
2915
|
-
var
|
|
2916
|
-
return ((
|
|
2917
|
-
},
|
|
2918
|
-
const
|
|
2919
|
-
|
|
2920
|
-
|
|
2928
|
+
return typeof D == "object" ? D.key ?? D.value : D;
|
|
2929
|
+
}, $ = (C) => typeof C == "object" ? { key: C.key, value: C.value } : { key: C, value: C }, H = () => {
|
|
2930
|
+
var C;
|
|
2931
|
+
return ((C = i || l) == null ? void 0 : C.map((M) => I(M, c)).join(", ")) || null;
|
|
2932
|
+
}, J = (C) => {
|
|
2933
|
+
const M = l ?? i ?? [], D = M.includes(C) ? M.filter((V) => V !== C) : [...M, C];
|
|
2934
|
+
t(D);
|
|
2935
|
+
}, L = () => c.map((C, M) => {
|
|
2936
|
+
const { key: D, value: V } = $(C), _ = (i || l || []).includes(V);
|
|
2937
|
+
return /* @__PURE__ */ o.jsx(
|
|
2938
|
+
ka,
|
|
2921
2939
|
{
|
|
2922
|
-
id: `${e}-${
|
|
2923
|
-
value:
|
|
2924
|
-
checked:
|
|
2925
|
-
onChange: () =>
|
|
2926
|
-
children:
|
|
2940
|
+
id: `${e}-${M}`,
|
|
2941
|
+
value: V,
|
|
2942
|
+
checked: _,
|
|
2943
|
+
onChange: () => J(V),
|
|
2944
|
+
children: D
|
|
2927
2945
|
},
|
|
2928
|
-
|
|
2946
|
+
M
|
|
2929
2947
|
);
|
|
2930
|
-
}),
|
|
2931
|
-
if (
|
|
2932
|
-
const
|
|
2933
|
-
return /* @__PURE__ */
|
|
2934
|
-
/* @__PURE__ */
|
|
2935
|
-
/* @__PURE__ */
|
|
2948
|
+
}), z = () => `${e}-errorMessage`;
|
|
2949
|
+
if (g) {
|
|
2950
|
+
const C = i || l || null;
|
|
2951
|
+
return /* @__PURE__ */ o.jsxs("div", { className: G.select, children: [
|
|
2952
|
+
/* @__PURE__ */ o.jsx($e, { htmlFor: e, children: d }),
|
|
2953
|
+
/* @__PURE__ */ o.jsx("span", { children: C ? h ? I(C, c) : C : y })
|
|
2936
2954
|
] });
|
|
2937
2955
|
}
|
|
2938
|
-
const
|
|
2956
|
+
const le = {
|
|
2939
2957
|
name: n,
|
|
2940
2958
|
multiple: s,
|
|
2941
2959
|
required: a,
|
|
2942
2960
|
disabled: r,
|
|
2943
|
-
onChange: t,
|
|
2961
|
+
onChange: (C) => t(C.target.value),
|
|
2944
2962
|
id: e,
|
|
2945
|
-
role:
|
|
2946
|
-
className:
|
|
2947
|
-
x &&
|
|
2948
|
-
s &&
|
|
2963
|
+
role: w,
|
|
2964
|
+
className: P([
|
|
2965
|
+
x && G.hasErrors,
|
|
2966
|
+
s && G.multiple
|
|
2949
2967
|
]),
|
|
2950
|
-
"aria-describedby": x && b ?
|
|
2968
|
+
"aria-describedby": x && b ? z() : f,
|
|
2951
2969
|
"aria-invalid": x || void 0,
|
|
2952
2970
|
style: u ? { maxWidth: u } : void 0,
|
|
2953
|
-
...i &&
|
|
2971
|
+
...i !== void 0 && l === void 0 ? { defaultValue: i } : { value: l || "" }
|
|
2954
2972
|
};
|
|
2955
|
-
return /* @__PURE__ */
|
|
2956
|
-
/* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ o.jsxs("div", { className: G.select, children: [
|
|
2974
|
+
/* @__PURE__ */ o.jsxs($e, { htmlFor: e, children: [
|
|
2957
2975
|
d,
|
|
2958
|
-
a && /* @__PURE__ */
|
|
2976
|
+
a && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: G.requiredSymbol })
|
|
2959
2977
|
] }),
|
|
2960
|
-
/* @__PURE__ */
|
|
2978
|
+
/* @__PURE__ */ o.jsxs(
|
|
2961
2979
|
"div",
|
|
2962
2980
|
{
|
|
2963
|
-
className:
|
|
2981
|
+
className: G.selectContainer,
|
|
2964
2982
|
style: u ? { maxWidth: u } : void 0,
|
|
2965
2983
|
children: [
|
|
2966
|
-
/* @__PURE__ */
|
|
2967
|
-
s ? /* @__PURE__ */
|
|
2968
|
-
/* @__PURE__ */
|
|
2984
|
+
/* @__PURE__ */ o.jsx("span", { className: G.selectListArrow }),
|
|
2985
|
+
s ? /* @__PURE__ */ o.jsxs("div", { ref: j, children: [
|
|
2986
|
+
/* @__PURE__ */ o.jsx(
|
|
2969
2987
|
"div",
|
|
2970
2988
|
{
|
|
2971
|
-
onClick: () =>
|
|
2972
|
-
className:
|
|
2973
|
-
children:
|
|
2989
|
+
onClick: () => S(!E),
|
|
2990
|
+
className: G.multipleSelectElement,
|
|
2991
|
+
children: H()
|
|
2974
2992
|
}
|
|
2975
2993
|
),
|
|
2976
|
-
|
|
2977
|
-
] }) : /* @__PURE__ */
|
|
2978
|
-
|
|
2979
|
-
c.map((
|
|
2980
|
-
const { key: M, value:
|
|
2981
|
-
return /* @__PURE__ */
|
|
2994
|
+
E && /* @__PURE__ */ o.jsx("div", { ref: N, className: G.multipleSelectDropdown, children: /* @__PURE__ */ o.jsx(ya, { compact: !0, children: L() }) })
|
|
2995
|
+
] }) : /* @__PURE__ */ o.jsxs("select", { ...le, children: [
|
|
2996
|
+
v && /* @__PURE__ */ o.jsx("option", { value: m, disabled: !0, children: v }),
|
|
2997
|
+
c.map((C) => {
|
|
2998
|
+
const { key: M, value: D } = $(C);
|
|
2999
|
+
return /* @__PURE__ */ o.jsx("option", { value: D, children: M }, M);
|
|
2982
3000
|
})
|
|
2983
|
-
] }
|
|
3001
|
+
] })
|
|
2984
3002
|
]
|
|
2985
3003
|
}
|
|
2986
3004
|
),
|
|
2987
|
-
/* @__PURE__ */
|
|
3005
|
+
/* @__PURE__ */ o.jsx(Ve, { id: z(), content: b })
|
|
2988
3006
|
] });
|
|
2989
|
-
},
|
|
2990
|
-
table:
|
|
3007
|
+
}, To = "_table_miy9l_1", Ie = {
|
|
3008
|
+
table: To,
|
|
2991
3009
|
"captionSide-top": "_captionSide-top_miy9l_14",
|
|
2992
3010
|
"captionSide-bottom": "_captionSide-bottom_miy9l_18",
|
|
2993
3011
|
"captionAlign-left": "_captionAlign-left_miy9l_22",
|
|
2994
3012
|
"captionAlign-center": "_captionAlign-center_miy9l_25",
|
|
2995
3013
|
"captionAlign-right": "_captionAlign-right_miy9l_28"
|
|
2996
|
-
},
|
|
2997
|
-
const a =
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3014
|
+
}, Po = (e) => e && ["left", "center", "right"].includes(e) ? Ie[`captionAlign-${e}`] : Ie["captionAlign-left"], Bo = (e) => e && ["top", "bottom"].includes(e) ? Ie[`captionSide-${e}`] : Ie["captionSide-top"], Ll = ({ captionAlign: e, captionSide: t, children: n }) => {
|
|
3015
|
+
const a = P([
|
|
3016
|
+
Ie.table,
|
|
3017
|
+
Po(e),
|
|
3018
|
+
Bo(t)
|
|
3001
3019
|
]);
|
|
3002
|
-
return /* @__PURE__ */
|
|
3003
|
-
},
|
|
3004
|
-
textarea:
|
|
3005
|
-
requiredSymbol:
|
|
3006
|
-
hasErrors:
|
|
3007
|
-
},
|
|
3020
|
+
return /* @__PURE__ */ o.jsx("table", { className: a, children: n });
|
|
3021
|
+
}, Do = "_textarea_1596u_1", Ao = "_requiredSymbol_1596u_4", Fo = "_hasErrors_1596u_55", Qe = {
|
|
3022
|
+
textarea: Do,
|
|
3023
|
+
requiredSymbol: Ao,
|
|
3024
|
+
hasErrors: Fo
|
|
3025
|
+
}, Oo = (e) => {
|
|
3026
|
+
let t = "";
|
|
3027
|
+
const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = n.length;
|
|
3028
|
+
for (let r = 0; r < e; r++)
|
|
3029
|
+
t += n.charAt(Math.floor(Math.random() * a));
|
|
3030
|
+
return t;
|
|
3031
|
+
}, Sl = ({
|
|
3008
3032
|
id: e,
|
|
3009
3033
|
onChange: t,
|
|
3010
3034
|
onBlur: n,
|
|
@@ -3013,23 +3037,23 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
3013
3037
|
readOnly: s,
|
|
3014
3038
|
disabled: c,
|
|
3015
3039
|
width: u,
|
|
3016
|
-
resize:
|
|
3040
|
+
resize: l = "both",
|
|
3017
3041
|
value: i,
|
|
3018
3042
|
defaultValue: d,
|
|
3019
|
-
elementKey:
|
|
3043
|
+
elementKey: g,
|
|
3020
3044
|
rows: h,
|
|
3021
|
-
label:
|
|
3045
|
+
label: v = "",
|
|
3022
3046
|
contentOnly: m = !1,
|
|
3023
|
-
placeholder:
|
|
3024
|
-
defaultContent:
|
|
3047
|
+
placeholder: y = "",
|
|
3048
|
+
defaultContent: w = "",
|
|
3025
3049
|
"aria-describedby": f,
|
|
3026
3050
|
hasErrors: x = !1,
|
|
3027
3051
|
errorMessage: b = ""
|
|
3028
3052
|
}) => {
|
|
3029
|
-
const
|
|
3053
|
+
const E = () => `${e}-errorMessage`, S = !(i != null && i.length) && (d != null && d.length) ? d : void 0, j = g || `${e}-${Oo(6)}`, N = {
|
|
3030
3054
|
...u && { maxWidth: u },
|
|
3031
|
-
...
|
|
3032
|
-
},
|
|
3055
|
+
...l && { resize: l }
|
|
3056
|
+
}, R = {
|
|
3033
3057
|
name: a,
|
|
3034
3058
|
readOnly: s,
|
|
3035
3059
|
disabled: c,
|
|
@@ -3037,31 +3061,31 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
3037
3061
|
id: e,
|
|
3038
3062
|
onChange: t,
|
|
3039
3063
|
onBlur: n,
|
|
3040
|
-
value:
|
|
3041
|
-
defaultValue:
|
|
3042
|
-
placeholder:
|
|
3064
|
+
value: S ? void 0 : i,
|
|
3065
|
+
defaultValue: S || void 0,
|
|
3066
|
+
placeholder: y,
|
|
3043
3067
|
rows: h ? parseInt(h, 10) : void 0,
|
|
3044
|
-
className: x ?
|
|
3045
|
-
"aria-describedby": x && b ?
|
|
3068
|
+
className: x ? Qe.hasErrors : "",
|
|
3069
|
+
"aria-describedby": x && b ? E() : f,
|
|
3046
3070
|
"aria-invalid": x ? "true" : void 0,
|
|
3047
|
-
style:
|
|
3071
|
+
style: N
|
|
3048
3072
|
};
|
|
3049
|
-
return /* @__PURE__ */
|
|
3050
|
-
/* @__PURE__ */
|
|
3051
|
-
|
|
3052
|
-
r && /* @__PURE__ */
|
|
3073
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Qe.textarea, children: [
|
|
3074
|
+
/* @__PURE__ */ o.jsxs($e, { htmlFor: e, children: [
|
|
3075
|
+
v,
|
|
3076
|
+
r && /* @__PURE__ */ o.jsx("img", { src: ae, alt: "", className: Qe.requiredSymbol })
|
|
3053
3077
|
] }),
|
|
3054
|
-
m ? /* @__PURE__ */
|
|
3055
|
-
/* @__PURE__ */
|
|
3078
|
+
m ? /* @__PURE__ */ o.jsx("span", { children: i || d || w }) : /* @__PURE__ */ o.jsx("textarea", { ...R }, j),
|
|
3079
|
+
/* @__PURE__ */ o.jsx(Ve, { id: E(), content: b })
|
|
3056
3080
|
] });
|
|
3057
|
-
},
|
|
3058
|
-
const n =
|
|
3081
|
+
}, $l = ({ theme: e, children: t }) => {
|
|
3082
|
+
const n = nn(e), a = an(
|
|
3059
3083
|
n
|
|
3060
3084
|
);
|
|
3061
|
-
return
|
|
3062
|
-
},
|
|
3063
|
-
toggleNavigationButton:
|
|
3064
|
-
},
|
|
3085
|
+
return rn("theme-provider", `:root {${a}}`), t;
|
|
3086
|
+
}, qo = "_toggleNavigationButton_1eb2w_1", Ho = {
|
|
3087
|
+
toggleNavigationButton: qo
|
|
3088
|
+
}, Il = ({
|
|
3065
3089
|
id: e,
|
|
3066
3090
|
htmlTag: t = "button",
|
|
3067
3091
|
showText: n,
|
|
@@ -3072,125 +3096,125 @@ const Fr = "_button_w916g_161", Or = "_noMargin_w916g_189", qr = "_regular_w916g
|
|
|
3072
3096
|
t,
|
|
3073
3097
|
{
|
|
3074
3098
|
...r,
|
|
3075
|
-
className:
|
|
3099
|
+
className: Ho.toggleNavigationButton,
|
|
3076
3100
|
id: e || void 0
|
|
3077
3101
|
},
|
|
3078
3102
|
s ? a : n
|
|
3079
|
-
),
|
|
3080
|
-
wizardTopnavItem:
|
|
3081
|
-
wizardTopnavItemContent:
|
|
3082
|
-
vertical:
|
|
3083
|
-
stepNumber:
|
|
3084
|
-
stepName:
|
|
3085
|
-
active:
|
|
3086
|
-
finished:
|
|
3087
|
-
hasErrors:
|
|
3088
|
-
horizontal:
|
|
3089
|
-
},
|
|
3103
|
+
), Vo = "_wizardTopnavItem_5ar16_1", Xo = "_wizardTopnavItemContent_5ar16_4", Wo = "_vertical_5ar16_7", Uo = "_stepNumber_5ar16_24", Yo = "_stepName_5ar16_36", Jo = "_active_5ar16_46", Go = "_finished_5ar16_46", Ko = "_hasErrors_5ar16_46", Zo = "_horizontal_5ar16_64", U = {
|
|
3104
|
+
wizardTopnavItem: Vo,
|
|
3105
|
+
wizardTopnavItemContent: Xo,
|
|
3106
|
+
vertical: Wo,
|
|
3107
|
+
stepNumber: Uo,
|
|
3108
|
+
stepName: Yo,
|
|
3109
|
+
active: Jo,
|
|
3110
|
+
finished: Go,
|
|
3111
|
+
hasErrors: Ko,
|
|
3112
|
+
horizontal: Zo
|
|
3113
|
+
}, Qo = "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", el = ({
|
|
3090
3114
|
step: e,
|
|
3091
3115
|
index: t,
|
|
3092
3116
|
activeStepId: n,
|
|
3093
3117
|
direction: a = "vertical"
|
|
3094
3118
|
}) => {
|
|
3095
|
-
const r = n === e.id, s = a === "vertical", c =
|
|
3119
|
+
const r = n === e.id, s = a === "vertical", c = P([
|
|
3096
3120
|
U.wizardTopnavItem,
|
|
3097
3121
|
r && U.active,
|
|
3098
3122
|
e.finished && U.finished,
|
|
3099
3123
|
e.hasErrors && U.hasErrors,
|
|
3100
3124
|
U[a]
|
|
3101
|
-
]), u = r ? "step" : void 0,
|
|
3102
|
-
/* @__PURE__ */
|
|
3103
|
-
/* @__PURE__ */
|
|
3104
|
-
s && e.finished && !r && /* @__PURE__ */
|
|
3125
|
+
]), u = r ? "step" : void 0, l = () => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3126
|
+
/* @__PURE__ */ o.jsx("span", { className: U.stepNumber, children: t + 1 }),
|
|
3127
|
+
/* @__PURE__ */ o.jsx("span", { className: U.stepName, children: e.name }),
|
|
3128
|
+
s && e.finished && !r && /* @__PURE__ */ o.jsx("img", { src: Qo, alt: "", className: U.checkmarkSymbol })
|
|
3105
3129
|
] });
|
|
3106
|
-
return e.link && Object.keys(e.link).length > 0 ? /* @__PURE__ */
|
|
3107
|
-
|
|
3130
|
+
return e.link && Object.keys(e.link).length > 0 ? /* @__PURE__ */ o.jsx("li", { className: c, children: /* @__PURE__ */ o.jsx(
|
|
3131
|
+
Se,
|
|
3108
3132
|
{
|
|
3109
3133
|
to: e.link,
|
|
3110
3134
|
"aria-current": u,
|
|
3111
3135
|
className: U.wizardTopnavItemContent,
|
|
3112
|
-
children:
|
|
3136
|
+
children: l()
|
|
3113
3137
|
}
|
|
3114
|
-
) }) : /* @__PURE__ */
|
|
3138
|
+
) }) : /* @__PURE__ */ o.jsx("li", { className: c, children: /* @__PURE__ */ o.jsx(
|
|
3115
3139
|
"span",
|
|
3116
3140
|
{
|
|
3117
3141
|
"aria-current": u,
|
|
3118
3142
|
className: U.wizardTopnavItemContent,
|
|
3119
|
-
children:
|
|
3143
|
+
children: l()
|
|
3120
3144
|
}
|
|
3121
3145
|
) });
|
|
3122
|
-
},
|
|
3123
|
-
wizardTopnavContainer:
|
|
3124
|
-
wizardTopnav:
|
|
3125
|
-
vertical:
|
|
3126
|
-
horizontal:
|
|
3127
|
-
},
|
|
3146
|
+
}, tl = "_wizardTopnavContainer_qiy2o_1", nl = "_wizardTopnav_qiy2o_1", rl = "_vertical_qiy2o_6", al = "_horizontal_qiy2o_11", et = {
|
|
3147
|
+
wizardTopnavContainer: tl,
|
|
3148
|
+
wizardTopnav: nl,
|
|
3149
|
+
vertical: rl,
|
|
3150
|
+
horizontal: al
|
|
3151
|
+
}, Ml = ({
|
|
3128
3152
|
steps: e,
|
|
3129
3153
|
activeStepId: t,
|
|
3130
3154
|
direction: n = "vertical",
|
|
3131
3155
|
"aria-label": a
|
|
3132
3156
|
}) => {
|
|
3133
3157
|
const r = Object.keys(e), c = `I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`, u = a != null && a.length ? a : c;
|
|
3134
|
-
return /* @__PURE__ */
|
|
3158
|
+
return /* @__PURE__ */ o.jsx(
|
|
3135
3159
|
"nav",
|
|
3136
3160
|
{
|
|
3137
3161
|
"aria-label": u,
|
|
3138
|
-
className:
|
|
3139
|
-
|
|
3140
|
-
|
|
3162
|
+
className: P([
|
|
3163
|
+
et.wizardTopnavContainer,
|
|
3164
|
+
et[n]
|
|
3141
3165
|
]),
|
|
3142
|
-
children: /* @__PURE__ */
|
|
3143
|
-
|
|
3166
|
+
children: /* @__PURE__ */ o.jsx("ol", { className: et.wizardTopnav, children: r.map((l, i) => /* @__PURE__ */ o.jsx(
|
|
3167
|
+
el,
|
|
3144
3168
|
{
|
|
3145
|
-
step: e[
|
|
3169
|
+
step: e[l],
|
|
3146
3170
|
activeStepId: t,
|
|
3147
3171
|
direction: n,
|
|
3148
3172
|
index: i
|
|
3149
3173
|
},
|
|
3150
|
-
|
|
3174
|
+
l
|
|
3151
3175
|
)) })
|
|
3152
3176
|
}
|
|
3153
3177
|
);
|
|
3154
3178
|
};
|
|
3155
3179
|
export {
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3180
|
+
ol as Accordion,
|
|
3181
|
+
Wt as Button,
|
|
3182
|
+
gt as CheckBoxIcon,
|
|
3183
|
+
ma as CheckBoxInput,
|
|
3184
|
+
ya as CheckBoxList,
|
|
3185
|
+
ka as CheckBoxListItem,
|
|
3162
3186
|
Sa as Container,
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3187
|
+
ll as ContentBox,
|
|
3188
|
+
il as DescriptionDetails,
|
|
3189
|
+
cl as DescriptionList,
|
|
3190
|
+
ul as DescriptionTerm,
|
|
3191
|
+
dl as Dialog,
|
|
3192
|
+
hl as DragAndDropFileInput,
|
|
3193
|
+
ml as ErrorBox,
|
|
3194
|
+
Ve as ErrorMessage,
|
|
3195
|
+
fl as Footer,
|
|
3196
|
+
Ut as Header,
|
|
3197
|
+
pl as InfoBox,
|
|
3198
|
+
_l as InputField,
|
|
3199
|
+
$e as Label,
|
|
3200
|
+
gl as Lead,
|
|
3201
|
+
vl as List,
|
|
3202
|
+
yl as ListItem,
|
|
3203
|
+
xl as LoadingAnimation,
|
|
3204
|
+
bl as NavigationBar,
|
|
3205
|
+
jt as NavigationBarListItem,
|
|
3206
|
+
wl as Paper,
|
|
3207
|
+
Cl as ProgressBar,
|
|
3208
|
+
mo as RadioButtonIcon,
|
|
3209
|
+
yo as RadioButtonInput,
|
|
3210
|
+
El as RadioButtonList,
|
|
3211
|
+
kl as RadioButtonListItem,
|
|
3212
|
+
jl as Select,
|
|
3213
|
+
Ll as Table,
|
|
3214
|
+
Sl as Textarea,
|
|
3215
|
+
$l as ThemeProvider,
|
|
3216
|
+
Il as ToggleNavigationButton,
|
|
3217
|
+
Ml as WizardNavigation,
|
|
3218
|
+
el as WizardNavigationStep
|
|
3195
3219
|
};
|
|
3196
3220
|
//# sourceMappingURL=index.es.js.map
|