dibk-design 7.7.1 → 8.0.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.
Files changed (136) hide show
  1. package/README.md +7 -0
  2. package/dist/dibk-design.css +1 -0
  3. package/dist/favicon.ico +0 -0
  4. package/dist/index.es.js +2386 -0
  5. package/dist/index.html +38 -0
  6. package/dist/index.umd.js +20 -0
  7. package/dist/manifest.json +15 -0
  8. package/dist/robots.txt +3 -0
  9. package/package.json +19 -27
  10. package/dist/assets/fonts/PPMori-Bold.otf +0 -0
  11. package/dist/assets/fonts/PPMori-Book.otf +0 -0
  12. package/dist/assets/fonts/PPMori-ExtraBold.otf +0 -0
  13. package/dist/assets/fonts/PPMori-Light.otf +0 -0
  14. package/dist/assets/fonts/PPMori-Medium.otf +0 -0
  15. package/dist/assets/fonts/PPMori-Regular.otf +0 -0
  16. package/dist/assets/fonts/PPMori-RegularItalic.otf +0 -0
  17. package/dist/assets/fonts/PPMori-SemiBold.otf +0 -0
  18. package/dist/assets/png/dibk-logo.png +0 -0
  19. package/dist/assets/svg/arbeidstilsynet-logo.svg +0 -1
  20. package/dist/assets/svg/asterisk.svg +0 -1
  21. package/dist/assets/svg/checkmark-symbol.svg +0 -8
  22. package/dist/assets/svg/dibk-logo-base64.js +0 -7
  23. package/dist/assets/svg/dibk-logo-mobile.svg +0 -91
  24. package/dist/assets/svg/dibk-logo.svg +0 -52
  25. package/dist/assets/svg/error-sign.svg +0 -15
  26. package/dist/assets/svg/info-sign.svg +0 -1
  27. package/dist/assets/svg/spinner.svg +0 -57
  28. package/dist/assets/svg/x-symbol.svg +0 -1
  29. package/dist/components/Accordion.js +0 -64
  30. package/dist/components/Accordion.module.scss +0 -190
  31. package/dist/components/Button.js +0 -118
  32. package/dist/components/Button.module.scss +0 -290
  33. package/dist/components/CheckBoxIcon.js +0 -42
  34. package/dist/components/CheckBoxIcon.module.scss +0 -69
  35. package/dist/components/CheckBoxInput.js +0 -70
  36. package/dist/components/CheckBoxInput.module.scss +0 -53
  37. package/dist/components/CheckBoxList.js +0 -55
  38. package/dist/components/CheckBoxList.module.scss +0 -25
  39. package/dist/components/CheckBoxListItem.js +0 -61
  40. package/dist/components/CheckBoxListItem.module.scss +0 -84
  41. package/dist/components/Container.js +0 -24
  42. package/dist/components/Container.module.scss +0 -15
  43. package/dist/components/ContentBox.js +0 -56
  44. package/dist/components/ContentBox.module.scss +0 -60
  45. package/dist/components/DescriptionDetails.js +0 -32
  46. package/dist/components/DescriptionDetails.module.scss +0 -22
  47. package/dist/components/DescriptionList.js +0 -47
  48. package/dist/components/DescriptionList.module.scss +0 -15
  49. package/dist/components/DescriptionTerm.js +0 -32
  50. package/dist/components/DescriptionTerm.module.scss +0 -30
  51. package/dist/components/Dialog.js +0 -86
  52. package/dist/components/Dialog.module.scss +0 -178
  53. package/dist/components/DragAndDropFileInput.js +0 -142
  54. package/dist/components/DragAndDropFileInput.module.scss +0 -38
  55. package/dist/components/ErrorBox.js +0 -33
  56. package/dist/components/ErrorBox.module.scss +0 -68
  57. package/dist/components/ErrorMessage.js +0 -37
  58. package/dist/components/ErrorMessage.module.scss +0 -30
  59. package/dist/components/Footer.js +0 -16
  60. package/dist/components/Footer.module.scss +0 -21
  61. package/dist/components/Header.js +0 -42
  62. package/dist/components/Header.module.scss +0 -79
  63. package/dist/components/InfoBox.js +0 -23
  64. package/dist/components/InfoBox.module.scss +0 -44
  65. package/dist/components/InputField.js +0 -137
  66. package/dist/components/InputField.module.scss +0 -88
  67. package/dist/components/Label.js +0 -40
  68. package/dist/components/Label.module.scss +0 -19
  69. package/dist/components/Lead.js +0 -31
  70. package/dist/components/Lead.module.scss +0 -13
  71. package/dist/components/List.js +0 -46
  72. package/dist/components/List.module.scss +0 -12
  73. package/dist/components/ListItem.js +0 -27
  74. package/dist/components/ListItem.module.scss +0 -10
  75. package/dist/components/LoadingAnimation.js +0 -26
  76. package/dist/components/LoadingAnimation.module.scss +0 -28
  77. package/dist/components/NavigationBar.js +0 -146
  78. package/dist/components/NavigationBar.module.scss +0 -474
  79. package/dist/components/NavigationBarListItem.js +0 -24
  80. package/dist/components/PDF.js +0 -14
  81. package/dist/components/PDF.scss +0 -765
  82. package/dist/components/Paper.js +0 -24
  83. package/dist/components/Paper.module.scss +0 -17
  84. package/dist/components/ProgressBar.js +0 -32
  85. package/dist/components/ProgressBar.module.scss +0 -30
  86. package/dist/components/RadioButtonIcon.js +0 -34
  87. package/dist/components/RadioButtonIcon.module.scss +0 -49
  88. package/dist/components/RadioButtonInput.js +0 -68
  89. package/dist/components/RadioButtonInput.module.scss +0 -53
  90. package/dist/components/RadioButtonList.js +0 -55
  91. package/dist/components/RadioButtonList.module.scss +0 -25
  92. package/dist/components/RadioButtonListItem.js +0 -59
  93. package/dist/components/RadioButtonListItem.module.scss +0 -84
  94. package/dist/components/Select.js +0 -224
  95. package/dist/components/Select.module.scss +0 -118
  96. package/dist/components/Table.js +0 -31
  97. package/dist/components/Table.module.scss +0 -65
  98. package/dist/components/Textarea.js +0 -105
  99. package/dist/components/Textarea.module.scss +0 -73
  100. package/dist/components/Theme.js +0 -138
  101. package/dist/components/Theme.module.scss +0 -103
  102. package/dist/components/ThemeProvider.js +0 -24
  103. package/dist/components/ThemeProvider.module.scss +0 -24
  104. package/dist/components/ToggleNavigationButton.js +0 -44
  105. package/dist/components/ToggleNavigationButton.module.scss +0 -34
  106. package/dist/components/WizardNavigation/Step.js +0 -66
  107. package/dist/components/WizardNavigation/Step.module.scss +0 -175
  108. package/dist/components/WizardNavigation.js +0 -56
  109. package/dist/components/WizardNavigation.module.scss +0 -25
  110. package/dist/functions/generators.js +0 -16
  111. package/dist/functions/helpers.js +0 -112
  112. package/dist/functions/theme.js +0 -18
  113. package/dist/index.js +0 -279
  114. package/dist/style/abstracts/mixins/_animation.scss +0 -6
  115. package/dist/style/abstracts/mixins/_appearance.scss +0 -5
  116. package/dist/style/abstracts/mixins/_border-radius.scss +0 -31
  117. package/dist/style/abstracts/mixins/_box-shadow.scss +0 -5
  118. package/dist/style/abstracts/mixins/_box-sizing.scss +0 -5
  119. package/dist/style/abstracts/mixins/_calc.scss +0 -5
  120. package/dist/style/abstracts/mixins/_keyframes.scss +0 -14
  121. package/dist/style/abstracts/mixins/_opacity.scss +0 -5
  122. package/dist/style/abstracts/mixins/_placeholder.scss +0 -17
  123. package/dist/style/abstracts/mixins/_scrollbar.scss +0 -26
  124. package/dist/style/abstracts/mixins/_transform.scss +0 -6
  125. package/dist/style/abstracts/mixins/_transition.scss +0 -34
  126. package/dist/style/abstracts/variables/_colors.scss +0 -33
  127. package/dist/style/abstracts/variables/_sizes.scss +0 -1
  128. package/dist/style/abstracts/variables/_transitions.scss +0 -2
  129. package/dist/style/abstracts/variables/_typography.scss +0 -1
  130. package/dist/style/abstracts/variables/_viewports.scss +0 -14
  131. package/dist/style/base/_fonts.scss +0 -57
  132. package/dist/style/base/_reset.scss +0 -15
  133. package/dist/style/base/_typography.scss +0 -10
  134. package/dist/style/layout/_containers.scss +0 -11
  135. package/dist/style/pdf.css +0 -637
  136. package/dist/style/pdf.css.map +0 -1
@@ -0,0 +1,2386 @@
1
+ import n, { Children as Gt, isValidElement as Ut, Fragment as He, cloneElement as Kt, useState as de, useEffect as ue, useRef as he, useCallback as bt } from "react";
2
+ function Zt(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ var ye = { exports: {} }, ve = { exports: {} }, $ = {};
6
+ /** @license React v16.13.1
7
+ * react-is.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ var Qe;
15
+ function Jt() {
16
+ if (Qe) return $;
17
+ Qe = 1;
18
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, l = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, _ = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
19
+ function C(i) {
20
+ if (typeof i == "object" && i !== null) {
21
+ var F = i.$$typeof;
22
+ switch (F) {
23
+ case r:
24
+ switch (i = i.type, i) {
25
+ case m:
26
+ case _:
27
+ case a:
28
+ case o:
29
+ case s:
30
+ case v:
31
+ return i;
32
+ default:
33
+ switch (i = i && i.$$typeof, i) {
34
+ case d:
35
+ case u:
36
+ case p:
37
+ case b:
38
+ case f:
39
+ return i;
40
+ default:
41
+ return F;
42
+ }
43
+ }
44
+ case l:
45
+ return F;
46
+ }
47
+ }
48
+ }
49
+ function O(i) {
50
+ return C(i) === _;
51
+ }
52
+ return $.AsyncMode = m, $.ConcurrentMode = _, $.ContextConsumer = d, $.ContextProvider = f, $.Element = r, $.ForwardRef = u, $.Fragment = a, $.Lazy = p, $.Memo = b, $.Portal = l, $.Profiler = o, $.StrictMode = s, $.Suspense = v, $.isAsyncMode = function(i) {
53
+ return O(i) || C(i) === m;
54
+ }, $.isConcurrentMode = O, $.isContextConsumer = function(i) {
55
+ return C(i) === d;
56
+ }, $.isContextProvider = function(i) {
57
+ return C(i) === f;
58
+ }, $.isElement = function(i) {
59
+ return typeof i == "object" && i !== null && i.$$typeof === r;
60
+ }, $.isForwardRef = function(i) {
61
+ return C(i) === u;
62
+ }, $.isFragment = function(i) {
63
+ return C(i) === a;
64
+ }, $.isLazy = function(i) {
65
+ return C(i) === p;
66
+ }, $.isMemo = function(i) {
67
+ return C(i) === b;
68
+ }, $.isPortal = function(i) {
69
+ return C(i) === l;
70
+ }, $.isProfiler = function(i) {
71
+ return C(i) === o;
72
+ }, $.isStrictMode = function(i) {
73
+ return C(i) === s;
74
+ }, $.isSuspense = function(i) {
75
+ return C(i) === v;
76
+ }, $.isValidElementType = function(i) {
77
+ return typeof i == "string" || typeof i == "function" || i === a || i === _ || i === o || i === s || i === v || i === y || typeof i == "object" && i !== null && (i.$$typeof === p || i.$$typeof === b || i.$$typeof === f || i.$$typeof === d || i.$$typeof === u || i.$$typeof === N || i.$$typeof === E || i.$$typeof === B || i.$$typeof === w);
78
+ }, $.typeOf = C, $;
79
+ }
80
+ var P = {};
81
+ /** @license React v16.13.1
82
+ * react-is.development.js
83
+ *
84
+ * Copyright (c) Facebook, Inc. and its affiliates.
85
+ *
86
+ * This source code is licensed under the MIT license found in the
87
+ * LICENSE file in the root directory of this source tree.
88
+ */
89
+ var et;
90
+ function Qt() {
91
+ return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
92
+ var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, l = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, m = e ? Symbol.for("react.async_mode") : 60111, _ = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, v = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, N = e ? Symbol.for("react.fundamental") : 60117, E = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
93
+ function C(h) {
94
+ return typeof h == "string" || typeof h == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
95
+ h === a || h === _ || h === o || h === s || h === v || h === y || typeof h == "object" && h !== null && (h.$$typeof === p || h.$$typeof === b || h.$$typeof === f || h.$$typeof === d || h.$$typeof === u || h.$$typeof === N || h.$$typeof === E || h.$$typeof === B || h.$$typeof === w);
96
+ }
97
+ function O(h) {
98
+ if (typeof h == "object" && h !== null) {
99
+ var j = h.$$typeof;
100
+ switch (j) {
101
+ case r:
102
+ var _e = h.type;
103
+ switch (_e) {
104
+ case m:
105
+ case _:
106
+ case a:
107
+ case o:
108
+ case s:
109
+ case v:
110
+ return _e;
111
+ default:
112
+ var Je = _e && _e.$$typeof;
113
+ switch (Je) {
114
+ case d:
115
+ case u:
116
+ case p:
117
+ case b:
118
+ case f:
119
+ return Je;
120
+ default:
121
+ return j;
122
+ }
123
+ }
124
+ case l:
125
+ return j;
126
+ }
127
+ }
128
+ }
129
+ var i = m, F = _, ie = d, ke = f, xe = r, Le = u, fe = a, Me = p, Oe = b, ee = l, Se = o, V = s, K = v, ge = !1;
130
+ function Ie(h) {
131
+ return ge || (ge = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), c(h) || O(h) === m;
132
+ }
133
+ function c(h) {
134
+ return O(h) === _;
135
+ }
136
+ function g(h) {
137
+ return O(h) === d;
138
+ }
139
+ function M(h) {
140
+ return O(h) === f;
141
+ }
142
+ function x(h) {
143
+ return typeof h == "object" && h !== null && h.$$typeof === r;
144
+ }
145
+ function T(h) {
146
+ return O(h) === u;
147
+ }
148
+ function S(h) {
149
+ return O(h) === a;
150
+ }
151
+ function k(h) {
152
+ return O(h) === p;
153
+ }
154
+ function L(h) {
155
+ return O(h) === b;
156
+ }
157
+ function I(h) {
158
+ return O(h) === l;
159
+ }
160
+ function q(h) {
161
+ return O(h) === o;
162
+ }
163
+ function z(h) {
164
+ return O(h) === s;
165
+ }
166
+ function D(h) {
167
+ return O(h) === v;
168
+ }
169
+ P.AsyncMode = i, P.ConcurrentMode = F, P.ContextConsumer = ie, P.ContextProvider = ke, P.Element = xe, P.ForwardRef = Le, P.Fragment = fe, P.Lazy = Me, P.Memo = Oe, P.Portal = ee, P.Profiler = Se, P.StrictMode = V, P.Suspense = K, P.isAsyncMode = Ie, P.isConcurrentMode = c, P.isContextConsumer = g, P.isContextProvider = M, P.isElement = x, P.isForwardRef = T, P.isFragment = S, P.isLazy = k, P.isMemo = L, P.isPortal = I, P.isProfiler = q, P.isStrictMode = z, P.isSuspense = D, P.isValidElementType = C, P.typeOf = O;
170
+ }()), P;
171
+ }
172
+ var tt;
173
+ function Et() {
174
+ return tt || (tt = 1, process.env.NODE_ENV === "production" ? ve.exports = Jt() : ve.exports = Qt()), ve.exports;
175
+ }
176
+ /*
177
+ object-assign
178
+ (c) Sindre Sorhus
179
+ @license MIT
180
+ */
181
+ var ze, nt;
182
+ function en() {
183
+ if (nt) return ze;
184
+ nt = 1;
185
+ var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
186
+ function a(o) {
187
+ if (o == null)
188
+ throw new TypeError("Object.assign cannot be called with null or undefined");
189
+ return Object(o);
190
+ }
191
+ function s() {
192
+ try {
193
+ if (!Object.assign)
194
+ return !1;
195
+ var o = new String("abc");
196
+ if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
197
+ return !1;
198
+ for (var f = {}, d = 0; d < 10; d++)
199
+ f["_" + String.fromCharCode(d)] = d;
200
+ var m = Object.getOwnPropertyNames(f).map(function(u) {
201
+ return f[u];
202
+ });
203
+ if (m.join("") !== "0123456789")
204
+ return !1;
205
+ var _ = {};
206
+ return "abcdefghijklmnopqrst".split("").forEach(function(u) {
207
+ _[u] = u;
208
+ }), Object.keys(Object.assign({}, _)).join("") === "abcdefghijklmnopqrst";
209
+ } catch {
210
+ return !1;
211
+ }
212
+ }
213
+ return ze = s() ? Object.assign : function(o, f) {
214
+ for (var d, m = a(o), _, u = 1; u < arguments.length; u++) {
215
+ d = Object(arguments[u]);
216
+ for (var v in d)
217
+ r.call(d, v) && (m[v] = d[v]);
218
+ if (e) {
219
+ _ = e(d);
220
+ for (var y = 0; y < _.length; y++)
221
+ l.call(d, _[y]) && (m[_[y]] = d[_[y]]);
222
+ }
223
+ }
224
+ return m;
225
+ }, ze;
226
+ }
227
+ var $e, rt;
228
+ function Xe() {
229
+ if (rt) return $e;
230
+ rt = 1;
231
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
232
+ return $e = e, $e;
233
+ }
234
+ var Pe, at;
235
+ function Ct() {
236
+ return at || (at = 1, Pe = Function.call.bind(Object.prototype.hasOwnProperty)), Pe;
237
+ }
238
+ var qe, lt;
239
+ function tn() {
240
+ if (lt) return qe;
241
+ lt = 1;
242
+ var e = function() {
243
+ };
244
+ if (process.env.NODE_ENV !== "production") {
245
+ var r = /* @__PURE__ */ Xe(), l = {}, a = /* @__PURE__ */ Ct();
246
+ e = function(o) {
247
+ var f = "Warning: " + o;
248
+ typeof console < "u" && console.error(f);
249
+ try {
250
+ throw new Error(f);
251
+ } catch {
252
+ }
253
+ };
254
+ }
255
+ function s(o, f, d, m, _) {
256
+ if (process.env.NODE_ENV !== "production") {
257
+ for (var u in o)
258
+ if (a(o, u)) {
259
+ var v;
260
+ try {
261
+ if (typeof o[u] != "function") {
262
+ var y = Error(
263
+ (m || "React class") + ": " + d + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
264
+ );
265
+ throw y.name = "Invariant Violation", y;
266
+ }
267
+ v = o[u](f, u, m, d, null, r);
268
+ } catch (p) {
269
+ v = p;
270
+ }
271
+ if (v && !(v instanceof Error) && e(
272
+ (m || "React class") + ": type specification of " + d + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof v + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
273
+ ), v instanceof Error && !(v.message in l)) {
274
+ l[v.message] = !0;
275
+ var b = _ ? _() : "";
276
+ e(
277
+ "Failed " + d + " type: " + v.message + (b ?? "")
278
+ );
279
+ }
280
+ }
281
+ }
282
+ }
283
+ return s.resetWarningCache = function() {
284
+ process.env.NODE_ENV !== "production" && (l = {});
285
+ }, qe = s, qe;
286
+ }
287
+ var Ne, ot;
288
+ function nn() {
289
+ if (ot) return Ne;
290
+ ot = 1;
291
+ var e = Et(), r = en(), l = /* @__PURE__ */ Xe(), a = /* @__PURE__ */ Ct(), s = /* @__PURE__ */ tn(), o = function() {
292
+ };
293
+ process.env.NODE_ENV !== "production" && (o = function(d) {
294
+ var m = "Warning: " + d;
295
+ typeof console < "u" && console.error(m);
296
+ try {
297
+ throw new Error(m);
298
+ } catch {
299
+ }
300
+ });
301
+ function f() {
302
+ return null;
303
+ }
304
+ return Ne = function(d, m) {
305
+ var _ = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
306
+ function v(c) {
307
+ var g = c && (_ && c[_] || c[u]);
308
+ if (typeof g == "function")
309
+ return g;
310
+ }
311
+ var y = "<<anonymous>>", b = {
312
+ array: E("array"),
313
+ bigint: E("bigint"),
314
+ bool: E("boolean"),
315
+ func: E("function"),
316
+ number: E("number"),
317
+ object: E("object"),
318
+ string: E("string"),
319
+ symbol: E("symbol"),
320
+ any: B(),
321
+ arrayOf: C,
322
+ element: O(),
323
+ elementType: i(),
324
+ instanceOf: F,
325
+ node: Le(),
326
+ objectOf: ke,
327
+ oneOf: ie,
328
+ oneOfType: xe,
329
+ shape: Me,
330
+ exact: Oe
331
+ };
332
+ function p(c, g) {
333
+ return c === g ? c !== 0 || 1 / c === 1 / g : c !== c && g !== g;
334
+ }
335
+ function w(c, g) {
336
+ this.message = c, this.data = g && typeof g == "object" ? g : {}, this.stack = "";
337
+ }
338
+ w.prototype = Error.prototype;
339
+ function N(c) {
340
+ if (process.env.NODE_ENV !== "production")
341
+ var g = {}, M = 0;
342
+ function x(S, k, L, I, q, z, D) {
343
+ if (I = I || y, z = z || L, D !== l) {
344
+ if (m) {
345
+ var h = new Error(
346
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
347
+ );
348
+ throw h.name = "Invariant Violation", h;
349
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
350
+ var j = I + ":" + L;
351
+ !g[j] && // Avoid spamming the console because they are often not actionable except for lib authors
352
+ M < 3 && (o(
353
+ "You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
354
+ ), g[j] = !0, M++);
355
+ }
356
+ }
357
+ return k[L] == null ? S ? k[L] === null ? new w("The " + q + " `" + z + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new w("The " + q + " `" + z + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : c(k, L, I, q, z);
358
+ }
359
+ var T = x.bind(null, !1);
360
+ return T.isRequired = x.bind(null, !0), T;
361
+ }
362
+ function E(c) {
363
+ function g(M, x, T, S, k, L) {
364
+ var I = M[x], q = V(I);
365
+ if (q !== c) {
366
+ var z = K(I);
367
+ return new w(
368
+ "Invalid " + S + " `" + k + "` of type " + ("`" + z + "` supplied to `" + T + "`, expected ") + ("`" + c + "`."),
369
+ { expectedType: c }
370
+ );
371
+ }
372
+ return null;
373
+ }
374
+ return N(g);
375
+ }
376
+ function B() {
377
+ return N(f);
378
+ }
379
+ function C(c) {
380
+ function g(M, x, T, S, k) {
381
+ if (typeof c != "function")
382
+ return new w("Property `" + k + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
383
+ var L = M[x];
384
+ if (!Array.isArray(L)) {
385
+ var I = V(L);
386
+ return new w("Invalid " + S + " `" + k + "` of type " + ("`" + I + "` supplied to `" + T + "`, expected an array."));
387
+ }
388
+ for (var q = 0; q < L.length; q++) {
389
+ var z = c(L, q, T, S, k + "[" + q + "]", l);
390
+ if (z instanceof Error)
391
+ return z;
392
+ }
393
+ return null;
394
+ }
395
+ return N(g);
396
+ }
397
+ function O() {
398
+ function c(g, M, x, T, S) {
399
+ var k = g[M];
400
+ if (!d(k)) {
401
+ var L = V(k);
402
+ return new w("Invalid " + T + " `" + S + "` of type " + ("`" + L + "` supplied to `" + x + "`, expected a single ReactElement."));
403
+ }
404
+ return null;
405
+ }
406
+ return N(c);
407
+ }
408
+ function i() {
409
+ function c(g, M, x, T, S) {
410
+ var k = g[M];
411
+ if (!e.isValidElementType(k)) {
412
+ var L = V(k);
413
+ return new w("Invalid " + T + " `" + S + "` of type " + ("`" + L + "` supplied to `" + x + "`, expected a single ReactElement type."));
414
+ }
415
+ return null;
416
+ }
417
+ return N(c);
418
+ }
419
+ function F(c) {
420
+ function g(M, x, T, S, k) {
421
+ if (!(M[x] instanceof c)) {
422
+ var L = c.name || y, I = Ie(M[x]);
423
+ return new w("Invalid " + S + " `" + k + "` of type " + ("`" + I + "` supplied to `" + T + "`, expected ") + ("instance of `" + L + "`."));
424
+ }
425
+ return null;
426
+ }
427
+ return N(g);
428
+ }
429
+ function ie(c) {
430
+ if (!Array.isArray(c))
431
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
432
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
433
+ ) : o("Invalid argument supplied to oneOf, expected an array.")), f;
434
+ function g(M, x, T, S, k) {
435
+ for (var L = M[x], I = 0; I < c.length; I++)
436
+ if (p(L, c[I]))
437
+ return null;
438
+ var q = JSON.stringify(c, function(D, h) {
439
+ var j = K(h);
440
+ return j === "symbol" ? String(h) : h;
441
+ });
442
+ return new w("Invalid " + S + " `" + k + "` of value `" + String(L) + "` " + ("supplied to `" + T + "`, expected one of " + q + "."));
443
+ }
444
+ return N(g);
445
+ }
446
+ function ke(c) {
447
+ function g(M, x, T, S, k) {
448
+ if (typeof c != "function")
449
+ return new w("Property `" + k + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
450
+ var L = M[x], I = V(L);
451
+ if (I !== "object")
452
+ return new w("Invalid " + S + " `" + k + "` of type " + ("`" + I + "` supplied to `" + T + "`, expected an object."));
453
+ for (var q in L)
454
+ if (a(L, q)) {
455
+ var z = c(L, q, T, S, k + "." + q, l);
456
+ if (z instanceof Error)
457
+ return z;
458
+ }
459
+ return null;
460
+ }
461
+ return N(g);
462
+ }
463
+ function xe(c) {
464
+ if (!Array.isArray(c))
465
+ return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), f;
466
+ for (var g = 0; g < c.length; g++) {
467
+ var M = c[g];
468
+ if (typeof M != "function")
469
+ return o(
470
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ge(M) + " at index " + g + "."
471
+ ), f;
472
+ }
473
+ function x(T, S, k, L, I) {
474
+ for (var q = [], z = 0; z < c.length; z++) {
475
+ var D = c[z], h = D(T, S, k, L, I, l);
476
+ if (h == null)
477
+ return null;
478
+ h.data && a(h.data, "expectedType") && q.push(h.data.expectedType);
479
+ }
480
+ var j = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
481
+ return new w("Invalid " + L + " `" + I + "` supplied to " + ("`" + k + "`" + j + "."));
482
+ }
483
+ return N(x);
484
+ }
485
+ function Le() {
486
+ function c(g, M, x, T, S) {
487
+ return ee(g[M]) ? null : new w("Invalid " + T + " `" + S + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
488
+ }
489
+ return N(c);
490
+ }
491
+ function fe(c, g, M, x, T) {
492
+ return new w(
493
+ (c || "React class") + ": " + g + " type `" + M + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
494
+ );
495
+ }
496
+ function Me(c) {
497
+ function g(M, x, T, S, k) {
498
+ var L = M[x], I = V(L);
499
+ if (I !== "object")
500
+ return new w("Invalid " + S + " `" + k + "` of type `" + I + "` " + ("supplied to `" + T + "`, expected `object`."));
501
+ for (var q in c) {
502
+ var z = c[q];
503
+ if (typeof z != "function")
504
+ return fe(T, S, k, q, K(z));
505
+ var D = z(L, q, T, S, k + "." + q, l);
506
+ if (D)
507
+ return D;
508
+ }
509
+ return null;
510
+ }
511
+ return N(g);
512
+ }
513
+ function Oe(c) {
514
+ function g(M, x, T, S, k) {
515
+ var L = M[x], I = V(L);
516
+ if (I !== "object")
517
+ return new w("Invalid " + S + " `" + k + "` of type `" + I + "` " + ("supplied to `" + T + "`, expected `object`."));
518
+ var q = r({}, M[x], c);
519
+ for (var z in q) {
520
+ var D = c[z];
521
+ if (a(c, z) && typeof D != "function")
522
+ return fe(T, S, k, z, K(D));
523
+ if (!D)
524
+ return new w(
525
+ "Invalid " + S + " `" + k + "` key `" + z + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(M[x], null, " ") + `
526
+ Valid keys: ` + JSON.stringify(Object.keys(c), null, " ")
527
+ );
528
+ var h = D(L, z, T, S, k + "." + z, l);
529
+ if (h)
530
+ return h;
531
+ }
532
+ return null;
533
+ }
534
+ return N(g);
535
+ }
536
+ function ee(c) {
537
+ switch (typeof c) {
538
+ case "number":
539
+ case "string":
540
+ case "undefined":
541
+ return !0;
542
+ case "boolean":
543
+ return !c;
544
+ case "object":
545
+ if (Array.isArray(c))
546
+ return c.every(ee);
547
+ if (c === null || d(c))
548
+ return !0;
549
+ var g = v(c);
550
+ if (g) {
551
+ var M = g.call(c), x;
552
+ if (g !== c.entries) {
553
+ for (; !(x = M.next()).done; )
554
+ if (!ee(x.value))
555
+ return !1;
556
+ } else
557
+ for (; !(x = M.next()).done; ) {
558
+ var T = x.value;
559
+ if (T && !ee(T[1]))
560
+ return !1;
561
+ }
562
+ } else
563
+ return !1;
564
+ return !0;
565
+ default:
566
+ return !1;
567
+ }
568
+ }
569
+ function Se(c, g) {
570
+ return c === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
571
+ }
572
+ function V(c) {
573
+ var g = typeof c;
574
+ return Array.isArray(c) ? "array" : c instanceof RegExp ? "object" : Se(g, c) ? "symbol" : g;
575
+ }
576
+ function K(c) {
577
+ if (typeof c > "u" || c === null)
578
+ return "" + c;
579
+ var g = V(c);
580
+ if (g === "object") {
581
+ if (c instanceof Date)
582
+ return "date";
583
+ if (c instanceof RegExp)
584
+ return "regexp";
585
+ }
586
+ return g;
587
+ }
588
+ function ge(c) {
589
+ var g = K(c);
590
+ switch (g) {
591
+ case "array":
592
+ case "object":
593
+ return "an " + g;
594
+ case "boolean":
595
+ case "date":
596
+ case "regexp":
597
+ return "a " + g;
598
+ default:
599
+ return g;
600
+ }
601
+ }
602
+ function Ie(c) {
603
+ return !c.constructor || !c.constructor.name ? y : c.constructor.name;
604
+ }
605
+ return b.checkPropTypes = s, b.resetWarningCache = s.resetWarningCache, b.PropTypes = b, b;
606
+ }, Ne;
607
+ }
608
+ var Be, st;
609
+ function rn() {
610
+ if (st) return Be;
611
+ st = 1;
612
+ var e = /* @__PURE__ */ Xe();
613
+ function r() {
614
+ }
615
+ function l() {
616
+ }
617
+ return l.resetWarningCache = r, Be = function() {
618
+ function a(f, d, m, _, u, v) {
619
+ if (v !== e) {
620
+ var y = new Error(
621
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
622
+ );
623
+ throw y.name = "Invariant Violation", y;
624
+ }
625
+ }
626
+ a.isRequired = a;
627
+ function s() {
628
+ return a;
629
+ }
630
+ var o = {
631
+ array: a,
632
+ bigint: a,
633
+ bool: a,
634
+ func: a,
635
+ number: a,
636
+ object: a,
637
+ string: a,
638
+ symbol: a,
639
+ any: a,
640
+ arrayOf: s,
641
+ element: a,
642
+ elementType: a,
643
+ instanceOf: s,
644
+ node: a,
645
+ objectOf: s,
646
+ oneOf: s,
647
+ oneOfType: s,
648
+ shape: s,
649
+ exact: s,
650
+ checkPropTypes: l,
651
+ resetWarningCache: r
652
+ };
653
+ return o.PropTypes = o, o;
654
+ }, Be;
655
+ }
656
+ var ct;
657
+ function an() {
658
+ if (ct) return ye.exports;
659
+ if (ct = 1, process.env.NODE_ENV !== "production") {
660
+ var e = Et(), r = !0;
661
+ ye.exports = /* @__PURE__ */ nn()(e.isElement, r);
662
+ } else
663
+ ye.exports = /* @__PURE__ */ rn()();
664
+ return ye.exports;
665
+ }
666
+ var ln = /* @__PURE__ */ an();
667
+ const t = /* @__PURE__ */ Zt(ln), R = (e) => {
668
+ var r;
669
+ return ((r = e == null ? void 0 : e.filter((l) => l)) == null ? void 0 : r.join(" ")) || "";
670
+ }, Tt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), on = (e) => {
671
+ var r;
672
+ return !!(e != null && e.colors) && !!((r = Object.entries(e == null ? void 0 : e.colors)) != null && r.length) && Object.entries(e == null ? void 0 : e.colors).reduce((l, [a, s]) => (a != null && a.length && (s != null && s.length) && (l[`--color-${Tt(a)}`] = s), l), {});
673
+ }, sn = (e) => {
674
+ var r;
675
+ return !!(e != null && e.sizes) && !!((r = Object.entries(e == null ? void 0 : e.sizes)) != null && r.length) && Object.entries(e == null ? void 0 : e.sizes).reduce((l, [a, s]) => (a != null && a.length && (s != null && s.length) && (l[`--size-${Tt(a)}`] = s), l), {});
676
+ }, cn = (e) => ({
677
+ ...on(e),
678
+ ...sn(e)
679
+ }), dn = (e, r) => {
680
+ var a;
681
+ const l = document.createElement("style");
682
+ l.setAttribute("id", e), l.textContent = r, (a = document.getElementById(e)) == null || a.remove(), document.head.appendChild(l);
683
+ }, un = (e) => Object.keys(e).reduce((r, l) => `${r}${l}: ${e[l]};`, ""), se = (e) => Gt.map(e, (r) => Ut(r) ? r.type === He ? se(r.props.children) : Kt(r, { ...r.props }) : r), hn = (e) => {
684
+ const r = document.createElement("button");
685
+ e.prepend(r), r.focus(), r.remove();
686
+ }, mn = (e) => Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter((r) => r), wt = (e) => {
687
+ hn(e);
688
+ const r = mn(e), l = r != null && r.length ? r[0] : null, a = (r == null ? void 0 : r.length) > 1 ? r[r.length - 1] : l;
689
+ l && (l.onkeydown = (s) => {
690
+ s.keyCode === 9 && s.shiftKey && a.focus();
691
+ }), a && (a.onclick = () => {
692
+ l.focus();
693
+ }, a.onkeydown = (s) => {
694
+ s.keyCode === 9 && !s.shiftKey && (s.preventDefault(), l.focus());
695
+ });
696
+ }, fn = "_accordion_1o1ts_67", gn = "_panel_1o1ts_76", _n = "_content_1o1ts_77", yn = "_secondary_1o1ts_80", vn = "_margin_1o1ts_88", bn = "_panelText_1o1ts_122", En = "_panelChevron_1o1ts_128", Cn = "_expanded_1o1ts_155", Tn = "_initialized_1o1ts_171", wn = "_hide_1o1ts_1", pn = "_show_1o1ts_1", H = {
697
+ accordion: fn,
698
+ default: "_default_1o1ts_73",
699
+ panel: gn,
700
+ content: _n,
701
+ secondary: yn,
702
+ margin: vn,
703
+ panelText: bn,
704
+ panelChevron: En,
705
+ expanded: Cn,
706
+ initialized: Tn,
707
+ hide: wn,
708
+ show: pn
709
+ }, pt = (e) => {
710
+ const [r, l] = de(e.expanded), [a, s] = de(e.initialized), o = () => {
711
+ l(!r), s(!0), e.onToggleExpand && e.onToggleExpand();
712
+ };
713
+ ue(() => {
714
+ l(e.expanded);
715
+ }, [e.expanded]);
716
+ const f = () => /* @__PURE__ */ n.createElement(
717
+ "button",
718
+ {
719
+ ...e.buttonProps,
720
+ className: H.panel,
721
+ onClick: o,
722
+ "aria-expanded": r ? "true" : "false"
723
+ },
724
+ /* @__PURE__ */ n.createElement("span", { className: H.panelText }, e.title),
725
+ /* @__PURE__ */ n.createElement(
726
+ "span",
727
+ {
728
+ className: `${H.panelChevron} ${r ? H.expanded : ""}`
729
+ }
730
+ )
731
+ ), d = R([
732
+ H.accordion,
733
+ e.color && H[e.color],
734
+ !e.noMargin && H.margin
735
+ ]);
736
+ return /* @__PURE__ */ n.createElement("div", { className: d }, f(), /* @__PURE__ */ n.createElement(
737
+ "div",
738
+ {
739
+ className: `${H.content} ${a ? H.initialized : ""} ${r ? H.expanded : ""}`
740
+ },
741
+ e.children
742
+ ));
743
+ };
744
+ pt.propTypes = {
745
+ /** Content title inside box */
746
+ title: t.string,
747
+ titleSize: t.oneOf(["regular", "large"]),
748
+ /** Text content inside box */
749
+ content: t.string,
750
+ color: t.oneOf(["default", "secondary"]),
751
+ expanded: t.bool,
752
+ onToggleExpand: t.func,
753
+ buttonProps: t.object
754
+ };
755
+ pt.defaultProps = {
756
+ title: null,
757
+ titleSize: "regular",
758
+ href: null,
759
+ content: "",
760
+ color: "default",
761
+ expanded: !1,
762
+ noMargin: !1
763
+ };
764
+ const kn = "_button_w916g_161", xn = "_noMargin_w916g_189", Ln = "_regular_w916g_199", Mn = "_small_w916g_202", On = "_primary_w916g_213", Sn = "_noHover_w916g_217", In = "_secondary_w916g_233", zn = "_disabled_w916g_252", $n = "_hasErrors_w916g_272", Pn = "_rounded_w916g_278", qn = "_hasArrowLeft_w916g_282", Nn = "_pushprev_w916g_1", Bn = "_hasArrowRight_w916g_320", Rn = "_pushnext_w916g_1", X = {
765
+ button: kn,
766
+ noMargin: xn,
767
+ regular: Ln,
768
+ small: Mn,
769
+ primary: On,
770
+ noHover: Sn,
771
+ secondary: In,
772
+ disabled: zn,
773
+ hasErrors: $n,
774
+ rounded: Pn,
775
+ hasArrowLeft: qn,
776
+ pushprev: Nn,
777
+ hasArrowRight: Bn,
778
+ pushnext: Rn
779
+ }, we = (e) => {
780
+ var m, _, u;
781
+ const { linkComponent: r } = e, l = (v) => {
782
+ switch (v) {
783
+ case "left":
784
+ return X.hasArrowLeft;
785
+ case "right":
786
+ return X.hasArrowRight;
787
+ default:
788
+ return "";
789
+ }
790
+ };
791
+ let a = {
792
+ ...e,
793
+ "aria-invalid": e.hasErrors || null,
794
+ href: !e.disabled && ((m = e.href) != null && m.length) ? e.href : null
795
+ };
796
+ delete a.noHover, delete a.hasErrors, delete a.rounded, delete a.inputType, delete a.color, delete a.content, delete a.arrow, delete a.noMargin, delete a.linkComponent;
797
+ const s = (e == null ? void 0 : e.inputType) === "radio" ? e.defaultChecked ? "primary" : "secondary" : e.color, o = R([
798
+ X.button,
799
+ X[s],
800
+ X[e.size],
801
+ l(e.arrow),
802
+ e.noHover || (e == null ? void 0 : e.inputType) === "radio" ? X.noHover : null,
803
+ e.rounded && X.rounded,
804
+ e.hasErrors && X.hasErrors,
805
+ e.disabled && X.disabled,
806
+ e.noMargin && X.noMargin
807
+ ]), f = (v) => se(v).map((b, p) => {
808
+ var N;
809
+ const w = r && (b == null ? void 0 : b.type) === r && ((N = b == null ? void 0 : b.props) == null ? void 0 : N.to);
810
+ return !a.disabled && w ? n.cloneElement(b, {
811
+ className: o,
812
+ key: `button-${p}`,
813
+ to: b.props.to
814
+ }) : /* @__PURE__ */ n.createElement("button", { ...a, key: `button-${p}`, className: o }, e.content || b.props.children);
815
+ });
816
+ return e.inputType === "button" ? /* @__PURE__ */ n.createElement(
817
+ "input",
818
+ {
819
+ ...a,
820
+ className: o,
821
+ type: "button",
822
+ value: e.content
823
+ }
824
+ ) : e.inputType === "radio" ? /* @__PURE__ */ n.createElement("label", { className: o }, /* @__PURE__ */ n.createElement("input", { ...a, type: "radio" }), e.content) : (_ = e.href) != null && _.length && !e.disabled ? /* @__PURE__ */ n.createElement("a", { ...a, className: o }, e.content || e.children) : r && ((u = e == null ? void 0 : e.children) == null ? void 0 : u.type) === r ? /* @__PURE__ */ n.createElement(He, null, f(n.Children.toArray(e.children))) : /* @__PURE__ */ n.createElement("button", { ...a, className: o }, e.content || e.children);
825
+ };
826
+ we.propTypes = {
827
+ content: t.string,
828
+ color: t.oneOf(["primary", "secondary"]),
829
+ size: t.oneOf(["small", "regular"]),
830
+ arrow: t.oneOf(["none", "left", "right"]),
831
+ disabled: t.bool,
832
+ inputType: t.oneOf(["button", "radio"]),
833
+ name: t.string,
834
+ defaultChecked: t.bool,
835
+ required: t.bool,
836
+ hasErrors: t.bool,
837
+ "aria-describedby": t.string,
838
+ noHover: t.bool,
839
+ rounded: t.bool,
840
+ href: t.string,
841
+ onClick: t.func,
842
+ noMargin: t.bool,
843
+ linkComponent: t.elementType
844
+ };
845
+ we.defaultProps = {
846
+ color: "primary",
847
+ size: "regular",
848
+ disabled: !1,
849
+ hasErrors: !1,
850
+ noHover: !1,
851
+ arrow: "none",
852
+ noMargin: !1
853
+ };
854
+ const An = "_checkBoxIcon_1kc3w_1", Dn = "_showBox_1kc3w_22", Fn = "_hasErrors_1kc3w_27", Vn = "_checked_1kc3w_37", jn = "_disabled_1kc3w_53", Hn = "_checkmark_1kc3w_58", te = {
855
+ checkBoxIcon: An,
856
+ showBox: Dn,
857
+ hasErrors: Fn,
858
+ checked: Vn,
859
+ disabled: jn,
860
+ checkmark: Hn
861
+ }, Te = (e) => {
862
+ let r = {
863
+ height: e.size,
864
+ width: e.size,
865
+ fontSize: e.size
866
+ };
867
+ const l = {
868
+ className: `${te.checkBoxIcon} ${e.checked ? te.checked : ""} ${e.disabled ? te.disabled : ""} ${e.showBox ? te.showBox : ""} ${e.hasErrors ? te.hasErrors : ""}`,
869
+ style: r
870
+ };
871
+ return /* @__PURE__ */ n.createElement("span", { ...l }, /* @__PURE__ */ n.createElement("span", { "aria-hidden": !0, className: te.checkmark }, e.checked ? e.checkmarkCharacter : ""));
872
+ };
873
+ Te.propTypes = {
874
+ /**
875
+ * How large should the radio button icon be?
876
+ */
877
+ size: t.string,
878
+ checked: t.bool,
879
+ disabled: t.bool,
880
+ showBox: t.bool,
881
+ hasErrors: t.bool,
882
+ checkmarkCharacter: t.string
883
+ };
884
+ Te.defaultProps = {
885
+ size: "20px",
886
+ checked: !1,
887
+ disabled: !1,
888
+ showBox: !0,
889
+ hasErrors: !1,
890
+ checkmarkCharacter: "✔"
891
+ };
892
+ const U = "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", Xn = "_checkBoxInput_f1w9m_1", Wn = "_requiredSymbol_f1w9m_6", Yn = "_contentOnly_f1w9m_13", Gn = "_disabled_f1w9m_13", Un = "_labelText_f1w9m_19", Kn = "_hasErrors_f1w9m_27", ne = {
893
+ checkBoxInput: Xn,
894
+ requiredSymbol: Wn,
895
+ contentOnly: Yn,
896
+ disabled: Gn,
897
+ labelText: Un,
898
+ hasErrors: Kn
899
+ }, We = (e) => {
900
+ const r = {
901
+ className: `${ne.checkBoxInput} ${e.contentOnly ? ne.contentOnly : ""} ${e.disabled ? ne.disabled : ""} ${e.hasErrors ? ne.hasErrors : ""}`,
902
+ htmlFor: e.id
903
+ }, l = {
904
+ checked: e.checked,
905
+ disabled: e.disabled,
906
+ showBox: !e.contentOnly,
907
+ hasErrors: e.contentOnly && e.hasErrors,
908
+ checkmarkCharacter: e.checkmarkCharacter
909
+ }, a = {
910
+ id: e.id,
911
+ name: e.name || null,
912
+ type: "checkbox",
913
+ checked: e.checked,
914
+ disabled: e.disabled,
915
+ required: e.required || e.requiredGroup,
916
+ onChange: e.onChange,
917
+ tabIndex: e.tabIndex || null,
918
+ "aria-controls": e["aria-controls"],
919
+ "aria-invalid": e.hasErrors ? "true" : null,
920
+ "aria-describedby": e["aria-describedby"]
921
+ };
922
+ return /* @__PURE__ */ n.createElement("label", { ...r }, e.contentOnly ? /* @__PURE__ */ n.createElement(Te, { ...l }) : /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(Te, { ...l }), /* @__PURE__ */ n.createElement("input", { ...a })), /* @__PURE__ */ n.createElement("span", { className: ne.labelText }, e.children, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: ne.requiredSymbol })));
923
+ };
924
+ We.propTypes = {
925
+ checked: t.bool,
926
+ disabled: t.bool,
927
+ required: t.bool,
928
+ requiredGroup: t.bool,
929
+ id: t.string.isRequired,
930
+ name: t.string,
931
+ onChange: t.func.isRequired,
932
+ contentOnly: t.bool,
933
+ hasErrors: t.bool,
934
+ checkmarkCharacter: t.string,
935
+ "aria-controls": t.string,
936
+ "aria-describedby": t.string
937
+ };
938
+ We.defaultProps = {
939
+ checked: !1,
940
+ disabled: !1,
941
+ required: !1,
942
+ requiredGroup: !1,
943
+ name: "",
944
+ contentOnly: !1,
945
+ hasErrors: !1,
946
+ checkmarkCharacter: "✔"
947
+ };
948
+ const Zn = "_checkBoxList_1sp8d_1", Jn = "_requiredSymbol_1sp8d_16", it = {
949
+ checkBoxList: Zn,
950
+ requiredSymbol: Jn
951
+ }, Qn = "_headerContainer_t2si7_1", er = "_header_t2si7_1", tr = "_bigHeader_t2si7_16", be = {
952
+ headerContainer: Qn,
953
+ header: er,
954
+ "size-1": "_size-1_t2si7_8",
955
+ bigHeader: tr,
956
+ "size-2": "_size-2_t2si7_28",
957
+ "size-3": "_size-3_t2si7_36",
958
+ "size-4": "_size-4_t2si7_44",
959
+ "size-5": "_size-5_t2si7_52"
960
+ }, pe = (e) => {
961
+ var f, d, m;
962
+ const r = e.big ? be.bigHeader : "", l = (f = e.htmlTag) != null && f.length ? e.htmlTag : `h${e.size}`, a = be.header, s = be[`size-${e.size}`];
963
+ let o = n.createElement(
964
+ l,
965
+ {
966
+ className: R([a, s, r]),
967
+ id: e.id || null,
968
+ htmlFor: e.htmlFor || null,
969
+ style: (d = e == null ? void 0 : e.label) != null && d.length ? { "--label": `"${e.label}"` } : null
970
+ },
971
+ (m = e.content) != null && m.length ? e.content : e.children
972
+ // props.content for backward compatibility
973
+ );
974
+ return /* @__PURE__ */ n.createElement("div", { className: be.headerContainer }, " ", o, " ");
975
+ };
976
+ pe.propTypes = {
977
+ id: t.string,
978
+ /** Text content inside button */
979
+ content: t.string,
980
+ size: t.oneOf([1, 2, 3, 4, 5]),
981
+ big: t.bool,
982
+ label: t.string,
983
+ htmlTag: t.string,
984
+ htmlFor: t.string
985
+ };
986
+ pe.defaultProps = {
987
+ size: 1
988
+ };
989
+ const kt = ({ required: e, compact: r, legend: l, legendSize: a, children: s }) => {
990
+ const o = (f) => se(f).map((m, _) => {
991
+ var v;
992
+ return ((v = m == null ? void 0 : m.props) == null ? void 0 : v.type) === "CheckBoxListItem" ? n.cloneElement(m, {
993
+ requiredGroup: e,
994
+ compact: r,
995
+ key: `checkboxListItem-${_}`
996
+ }) : m;
997
+ });
998
+ return /* @__PURE__ */ n.createElement("fieldset", { className: it.checkBoxList }, l != null && l.length ? /* @__PURE__ */ n.createElement("legend", null, a ? /* @__PURE__ */ n.createElement(pe, { size: a }, l) : l, e && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: it.requiredSymbol })) : null, o(n.Children.toArray(s)));
999
+ };
1000
+ kt.propTypes = {
1001
+ legend: t.string,
1002
+ legendSize: t.oneOf([1, 2, 3, 4, 5]),
1003
+ required: t.bool,
1004
+ compact: t.bool
1005
+ };
1006
+ const nr = "_checkBoxListItem_jnb8z_1", rr = "_contentOnly_jnb8z_26", ar = "_compact_jnb8z_26", lr = "_disabled_jnb8z_41", or = "_checked_jnb8z_44", re = {
1007
+ checkBoxListItem: nr,
1008
+ contentOnly: rr,
1009
+ compact: ar,
1010
+ disabled: lr,
1011
+ checked: or
1012
+ }, Ye = (e) => {
1013
+ const r = [
1014
+ re.checkBoxListItem,
1015
+ e.checked ? re.checked : null,
1016
+ e.disabled ? re.disabled : null,
1017
+ e.compact ? re.compact : null,
1018
+ e.contentOnly ? re.contentOnly : null,
1019
+ e.hasErrors ? re.hasErrors : null
1020
+ ], l = R(r), a = {
1021
+ onChange: e.onChange,
1022
+ checked: e.checked,
1023
+ disabled: e.disabled,
1024
+ required: e.required,
1025
+ requiredGroup: e.requiredGroup,
1026
+ contentOnly: e.contentOnly,
1027
+ hasErrors: e.hasErrors,
1028
+ "aria-controls": e["aria-controls"],
1029
+ "aria-describedby": e["aria-describedby"],
1030
+ id: e.id,
1031
+ name: e.name,
1032
+ checkmarkCharacter: e.checkmarkCharacter
1033
+ };
1034
+ return /* @__PURE__ */ n.createElement("div", { className: l }, /* @__PURE__ */ n.createElement(We, { ...a }, e.children));
1035
+ };
1036
+ Ye.propTypes = {
1037
+ checked: t.bool,
1038
+ disabled: t.bool,
1039
+ required: t.bool,
1040
+ requiredGroup: t.bool,
1041
+ id: t.string.isRequired,
1042
+ name: t.string,
1043
+ onChange: t.func.isRequired,
1044
+ contentOnly: t.bool,
1045
+ compact: t.bool,
1046
+ hasErrors: t.bool,
1047
+ checkmarkCharacter: t.string,
1048
+ "aria-controls": t.string,
1049
+ "aria-describedby": t.string
1050
+ };
1051
+ Ye.defaultProps = {
1052
+ checked: !1,
1053
+ disabled: !1,
1054
+ required: !1,
1055
+ requiredGroup: !1,
1056
+ id: "",
1057
+ name: "",
1058
+ contentOnly: !1,
1059
+ hasErrors: !1,
1060
+ checkmarkCharacter: "✔",
1061
+ type: "CheckBoxListItem"
1062
+ };
1063
+ const sr = "_container_f8z49_1", cr = {
1064
+ container: sr
1065
+ }, xt = (e) => {
1066
+ var l;
1067
+ const r = {
1068
+ "--max-width": ((l = e == null ? void 0 : e.maxWidth) == null ? void 0 : l.length) && e.maxWidth
1069
+ };
1070
+ return /* @__PURE__ */ n.createElement("div", { className: cr.container, style: r }, e.children);
1071
+ };
1072
+ xt.propTypes = {
1073
+ maxWidth: t.string
1074
+ };
1075
+ const ir = "_contentBox_1ndvc_1", dr = "_link_1ndvc_8", ur = "_content_1ndvc_1", hr = "_title_1ndvc_25", mr = "_secondary_1ndvc_28", fr = "_regular_1ndvc_36", gr = "_large_1ndvc_45", Z = {
1076
+ contentBox: ir,
1077
+ link: dr,
1078
+ default: "_default_1ndvc_21",
1079
+ content: ur,
1080
+ title: hr,
1081
+ secondary: mr,
1082
+ regular: fr,
1083
+ large: gr
1084
+ }, Lt = (e) => {
1085
+ var f;
1086
+ const r = () => {
1087
+ let d = Z.title + " " + Z[e.titleSize];
1088
+ if (e.title)
1089
+ return /* @__PURE__ */ n.createElement("h2", { className: d }, e.title);
1090
+ };
1091
+ let l = " " + Z[e.color], a = e.href ? " " + Z.link : "", s = Z.contentBox + l + a;
1092
+ const o = (f = e.content) != null && f.length ? e.content : e.children;
1093
+ return e.href ? /* @__PURE__ */ n.createElement("a", { href: e.href, className: s }, r(), /* @__PURE__ */ n.createElement("div", { className: Z.content }, o)) : /* @__PURE__ */ n.createElement("div", { className: s }, r(), /* @__PURE__ */ n.createElement("div", { className: Z.content }, o));
1094
+ };
1095
+ Lt.propTypes = {
1096
+ /** Content title inside box */
1097
+ title: t.string,
1098
+ titleSize: t.oneOf(["regular", "large"]),
1099
+ /** Text content inside box */
1100
+ content: t.string,
1101
+ /** HTML content inside box if not content is set */
1102
+ children: t.any,
1103
+ color: t.oneOf([
1104
+ "default",
1105
+ "secondary"
1106
+ ])
1107
+ };
1108
+ Lt.defaultProps = {
1109
+ title: null,
1110
+ titleSize: "regular",
1111
+ href: null,
1112
+ content: "",
1113
+ color: "default"
1114
+ };
1115
+ const _r = "_descriptionDetails_1d1dj_1", yr = "_compact_1d1dj_7", dt = {
1116
+ descriptionDetails: _r,
1117
+ compact: yr
1118
+ }, Mt = ({ compact: e, titleWidth: r, children: l }) => /* @__PURE__ */ n.createElement(
1119
+ "dd",
1120
+ {
1121
+ className: R([dt.descriptionDetails, e && dt.compact]),
1122
+ style: { "--title-width": r || null }
1123
+ },
1124
+ l
1125
+ );
1126
+ Mt.propTypes = {
1127
+ compact: t.bool,
1128
+ titleWidth: t.string
1129
+ };
1130
+ Mt.defaultProps = {
1131
+ compact: !1
1132
+ };
1133
+ const vr = "_descriptionList_w11ua_1", br = "_compact_w11ua_13", ut = {
1134
+ descriptionList: vr,
1135
+ compact: br
1136
+ }, Ot = ({ compact: e, titleWidth: r, children: l }) => {
1137
+ const a = (o) => se(o).map((d, m) => n.cloneElement(d, {
1138
+ compact: e,
1139
+ titleWidth: r,
1140
+ key: `descriptionListItem-${m}`
1141
+ }));
1142
+ return ((o) => n.createElement(
1143
+ "dl",
1144
+ {
1145
+ className: R([ut.descriptionList, !!e && ut.compact]),
1146
+ style: { "--title-width": r || null }
1147
+ },
1148
+ a(n.Children.toArray(o))
1149
+ ))(l);
1150
+ };
1151
+ Ot.propTypes = {
1152
+ compact: t.bool,
1153
+ titleWidth: t.string
1154
+ };
1155
+ Ot.defaultProps = {
1156
+ compact: !1
1157
+ };
1158
+ const Er = "_descriptionTerm_uuapd_1", Cr = "_compact_uuapd_8", ht = {
1159
+ descriptionTerm: Er,
1160
+ compact: Cr
1161
+ }, St = ({ compact: e, titleWidth: r, children: l }) => /* @__PURE__ */ n.createElement(
1162
+ "dt",
1163
+ {
1164
+ className: R([ht.descriptionTerm, e && ht.compact]),
1165
+ style: { "--title-width": r || null }
1166
+ },
1167
+ l
1168
+ );
1169
+ St.propTypes = {
1170
+ compact: t.bool,
1171
+ titleWidth: t.string
1172
+ };
1173
+ St.defaultProps = {
1174
+ compact: !1
1175
+ };
1176
+ const Tr = "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", wr = "_dialog_1qsqp_19", pr = "_dialogContainer_1qsqp_33", kr = "_dialogContent_1qsqp_38", xr = "_closeButton_1qsqp_45", Lr = "_isSidebar_1qsqp_60", Mr = "_modalInVertical_1qsqp_1", Or = "_noPadding_1qsqp_74", Sr = "_left_1qsqp_113", Ir = "_modalInHorizontalLeft_1qsqp_1", zr = "_right_1qsqp_120", $r = "_modalInHorizontalRight_1qsqp_1", Pr = "_dialogOverlay_1qsqp_128", G = {
1177
+ dialog: wr,
1178
+ dialogContainer: pr,
1179
+ dialogContent: kr,
1180
+ closeButton: xr,
1181
+ isSidebar: Lr,
1182
+ modalInVertical: Mr,
1183
+ noPadding: Or,
1184
+ left: Sr,
1185
+ modalInHorizontalLeft: Ir,
1186
+ right: zr,
1187
+ modalInHorizontalRight: $r,
1188
+ dialogOverlay: Pr
1189
+ }, It = (e) => {
1190
+ var f, d;
1191
+ const r = he(), l = he(), a = bt((m) => (m && wt(m), m), []);
1192
+ ue(() => {
1193
+ const m = (u) => {
1194
+ switch (u.keyCode) {
1195
+ case 27:
1196
+ e.onClickOutside && e.onClickOutside();
1197
+ break;
1198
+ default:
1199
+ return null;
1200
+ }
1201
+ }, _ = (u) => {
1202
+ l != null && l.current && !l.current.contains(u.target) && e.onClickOutside();
1203
+ };
1204
+ document.addEventListener("mousedown", _), document.addEventListener("keydown", m, !1);
1205
+ }, [e, l]), ue(() => {
1206
+ r.current.close(), e.hidden || (e.modal ? r.current.showModal() : r.current.show());
1207
+ }, [r, e.hidden, e.modal]);
1208
+ const s = ((f = e.attachTo) == null ? void 0 : f.length) && R([G.isSidebar, G[e.attachTo]]), o = {
1209
+ "--max-width": ((d = e == null ? void 0 : e.maxWidth) == null ? void 0 : d.length) && e.maxWidth
1210
+ };
1211
+ return /* @__PURE__ */ n.createElement("dialog", { className: R([G.dialog, s]), ref: r }, /* @__PURE__ */ n.createElement("div", { ref: l, className: G.dialogContainer, style: o }, /* @__PURE__ */ n.createElement(
1212
+ "div",
1213
+ {
1214
+ ref: a,
1215
+ className: R([
1216
+ G.dialogContent,
1217
+ e.noPadding && G.noPadding
1218
+ ])
1219
+ },
1220
+ e.closeButton ? /* @__PURE__ */ n.createElement(
1221
+ "button",
1222
+ {
1223
+ "aria-label": "Lukk dialog",
1224
+ onClick: e.onClickOutside,
1225
+ className: R([
1226
+ G.closeButton,
1227
+ e.noPadding && G.noPadding
1228
+ ])
1229
+ },
1230
+ /* @__PURE__ */ n.createElement("img", { src: Tr, alt: "" })
1231
+ ) : null,
1232
+ /* @__PURE__ */ n.createElement("div", { "aria-live": "assertive", role: "dialog" }, e.children)
1233
+ )));
1234
+ };
1235
+ It.propTypes = {
1236
+ /** Sets max width for modal content element */
1237
+ maxWidth: t.string,
1238
+ /** Removes padding from modal content element */
1239
+ noPadding: t.bool,
1240
+ /** Displays close button in upper right corner */
1241
+ closeButton: t.bool,
1242
+ /** Function for click outside modal content element or click on close button element */
1243
+ onClickOutside: t.func.isRequired,
1244
+ modal: t.bool
1245
+ };
1246
+ It.defaultProps = {
1247
+ maxWidth: "none",
1248
+ modal: !1
1249
+ };
1250
+ const qr = "_errorMessage_i8u6b_7", Nr = "_errorSign_i8u6b_19", mt = {
1251
+ errorMessage: qr,
1252
+ errorSign: Nr
1253
+ }, Br = "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", ce = (e) => {
1254
+ var l;
1255
+ const r = () => {
1256
+ var a;
1257
+ return {
1258
+ id: (a = e.id) != null && a.length ? e.id : null,
1259
+ className: mt.errorMessage
1260
+ };
1261
+ };
1262
+ return (l = e == null ? void 0 : e.content) != null && l.length ? /* @__PURE__ */ n.createElement("span", { "aria-live": "polite", ...r() }, /* @__PURE__ */ n.createElement("img", { src: Br, alt: "", className: mt.errorSign }), e.content) : null;
1263
+ };
1264
+ ce.propTypes = {
1265
+ id: t.string,
1266
+ /** Text content inside error message */
1267
+ content: t.oneOfType([
1268
+ t.string,
1269
+ t.arrayOf(t.oneOfType([t.string, t.object]))
1270
+ ])
1271
+ };
1272
+ ce.defaultProps = {
1273
+ content: ""
1274
+ };
1275
+ const Rr = "_label_18de6_1", Ar = "_inline_18de6_11", Dr = "_normalCursor_18de6_14", Re = {
1276
+ label: Rr,
1277
+ inline: Ar,
1278
+ normalCursor: Dr
1279
+ }, Q = (e) => {
1280
+ var o;
1281
+ let r = { ...e };
1282
+ const l = (o = e.htmlTag) != null && o.length ? e.htmlTag : "label";
1283
+ delete r.inline, delete r.normalCursor, delete r.htmlTag;
1284
+ const a = `${Re.label} ${e.inline ? Re.inline : ""} ${e.normalCursor ? Re.normalCursor : ""}`;
1285
+ return n.createElement(
1286
+ l,
1287
+ {
1288
+ ...r,
1289
+ className: a,
1290
+ id: e.id || null
1291
+ },
1292
+ e.children
1293
+ );
1294
+ };
1295
+ Q.propTypes = {
1296
+ inline: t.bool,
1297
+ normalCursor: t.bool,
1298
+ htmlTag: t.string
1299
+ };
1300
+ Q.defaultProps = {
1301
+ inline: !1,
1302
+ normalCursor: !1,
1303
+ htmlTag: "label"
1304
+ };
1305
+ const Fr = "_dragAndDropFileInput_l98z1_1", Vr = "_requiredSymbol_l98z1_1", jr = "_dragAndDropContainer_l98z1_8", Hr = "_highlighted_l98z1_26", Ee = {
1306
+ dragAndDropFileInput: Fr,
1307
+ requiredSymbol: Vr,
1308
+ dragAndDropContainer: jr,
1309
+ highlighted: Hr
1310
+ }, zt = (e) => {
1311
+ var v, y;
1312
+ const [r, l] = de(!1), a = he(), s = he(), o = (b) => {
1313
+ b.preventDefault(), b.stopPropagation();
1314
+ }, f = (b, p) => b || p, d = () => {
1315
+ s.current.click();
1316
+ }, m = () => `${e.id}-errorMessage`, _ = {
1317
+ id: e.id,
1318
+ "aria-describedby": e.hasErrors && ((v = e.errorMessage) != null && v.length) ? m() : (y = e["aria-describedby"]) != null && y.length ? e["aria-describedby"] : null,
1319
+ "aria-invalid": e.hasErrors ? "true" : null,
1320
+ name: e.name,
1321
+ required: e.required
1322
+ };
1323
+ let u;
1324
+ return e.selectedFileName ? u = e.buttonContentWhenSelectedFile ? e.buttonContentWhenSelectedFile : e.buttonContent : u = e.buttonContent, ue(() => {
1325
+ const b = (w) => {
1326
+ e.onDragAndDropChange(w);
1327
+ }, p = (w) => {
1328
+ const N = w.dataTransfer.files;
1329
+ b(N);
1330
+ };
1331
+ if (a != null && a.current)
1332
+ return a.current.addEventListener("dragenter", o, !1), a.current.addEventListener("dragover", o, !1), a.current.addEventListener("dragleave", o, !1), a.current.addEventListener("drop", o, !1), a.current.addEventListener(
1333
+ "dragenter",
1334
+ () => {
1335
+ l(!0);
1336
+ },
1337
+ !1
1338
+ ), a.current.addEventListener(
1339
+ "dragover",
1340
+ () => {
1341
+ l(!0);
1342
+ },
1343
+ !1
1344
+ ), a.current.addEventListener(
1345
+ "dragleave",
1346
+ () => {
1347
+ l(!1);
1348
+ },
1349
+ !1
1350
+ ), a.current.addEventListener(
1351
+ "drop",
1352
+ () => {
1353
+ l(!1);
1354
+ },
1355
+ !1
1356
+ ), a.current.addEventListener("drop", p, !1), () => {
1357
+ a.current.removeEventListener("dragenter", o, !1), a.current.removeEventListener("dragover", o, !1), a.current.removeEventListener("dragleave", o, !1), a.current.removeEventListener("drop", o, !1), a.current.removeEventListener("dragenter", () => l(!0), !1), a.current.removeEventListener("dragover", () => l(!0), !1), a.current.removeEventListener("dragleave", () => l(!1), !1), a.current.removeEventListener("drop", () => l(!1), !1), a.current.removeEventListener("drop", p, !1);
1358
+ };
1359
+ }, [e]), /* @__PURE__ */ n.createElement("div", { className: Ee.dragAndDropFileInput }, /* @__PURE__ */ n.createElement(Q, { htmlFor: e.id }, e.label, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: Ee.requiredSymbol })), /* @__PURE__ */ n.createElement("div", null, e.children), e.contentOnly ? null : /* @__PURE__ */ n.createElement(
1360
+ "div",
1361
+ {
1362
+ ref: a,
1363
+ className: `${Ee.dragAndDropContainer} ${r ? Ee.highlighted : ""}`
1364
+ },
1365
+ e.selectedFileName ? /* @__PURE__ */ n.createElement("div", null, /* @__PURE__ */ n.createElement("span", null, /* @__PURE__ */ n.createElement("b", null, "Valgt fil:"), " ", e.selectedFileName)) : /* @__PURE__ */ n.createElement("div", null, "Slipp fil her"),
1366
+ /* @__PURE__ */ n.createElement(
1367
+ "input",
1368
+ {
1369
+ ..._,
1370
+ ref: s,
1371
+ type: "file",
1372
+ onChange: e.onSelectChange
1373
+ }
1374
+ ),
1375
+ e.buttonContent ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("div", null, e.selectedFileName ? "" : "eller klikk på knappen for å velge fil"), /* @__PURE__ */ n.createElement(
1376
+ we,
1377
+ {
1378
+ size: "small",
1379
+ type: "button",
1380
+ color: e.buttonColor,
1381
+ onClick: () => d(),
1382
+ content: u,
1383
+ hasErrors: e.hasErrors,
1384
+ "data-transaction-name": e["data-transaction-name"]
1385
+ }
1386
+ )) : null
1387
+ ), e.contentOnly ? /* @__PURE__ */ n.createElement("span", null, f(e.selectedFileName, e.defaultContent)) : "", /* @__PURE__ */ n.createElement(ce, { id: m(), content: e.errorMessage }));
1388
+ };
1389
+ zt.propTypes = {
1390
+ /** Text content inside list item */
1391
+ id: t.string.isRequired,
1392
+ name: t.string,
1393
+ onSelectChange: t.func.isRequired,
1394
+ onDragAndDropChange: t.func.isRequired,
1395
+ label: t.oneOfType([
1396
+ t.string,
1397
+ t.arrayOf(t.oneOfType([t.string, t.object]))
1398
+ ]),
1399
+ contentOnly: t.bool,
1400
+ buttonColor: t.string,
1401
+ buttonContent: t.string,
1402
+ buttonContentWhenSelectedFile: t.string,
1403
+ selectedFileName: t.string,
1404
+ defaultContent: t.string,
1405
+ hasErrors: t.bool,
1406
+ errorMessage: t.oneOfType([
1407
+ t.string,
1408
+ t.arrayOf(t.oneOfType([t.string, t.object]))
1409
+ ]),
1410
+ required: t.bool,
1411
+ "data-transaction-name": t.string
1412
+ };
1413
+ zt.defaultProps = {
1414
+ label: "",
1415
+ contentOnly: !1,
1416
+ buttonColor: "primary",
1417
+ defaultContent: "",
1418
+ hasErrors: !1,
1419
+ errorMessage: "",
1420
+ required: !1
1421
+ };
1422
+ const Xr = "_errorBoxContainer_88ulw_7", Wr = "_messageIn_88ulw_1", Yr = "_warning_88ulw_14", Gr = "_error_88ulw_7", Ur = "_fullScreen_88ulw_22", Kr = "_errorBox_88ulw_7", Zr = "_infoSign_88ulw_38", ae = {
1423
+ errorBoxContainer: Xr,
1424
+ messageIn: Wr,
1425
+ warning: Yr,
1426
+ error: Gr,
1427
+ fullScreen: Ur,
1428
+ errorBox: Kr,
1429
+ infoSign: Zr
1430
+ }, $t = "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", Pt = (e) => /* @__PURE__ */ n.createElement(
1431
+ "div",
1432
+ {
1433
+ className: R([
1434
+ ae.errorBoxContainer,
1435
+ ae[e.type],
1436
+ e.fullScreen && ae.fullScreen
1437
+ ])
1438
+ },
1439
+ /* @__PURE__ */ n.createElement("div", { className: R([ae.errorBox, e.fullScreen && ae.fullScreen]) }, /* @__PURE__ */ n.createElement("img", { src: $t, alt: "", className: ae.infoSign }), e.children)
1440
+ );
1441
+ Pt.propTypes = {
1442
+ type: t.oneOf(["warning", "error"]),
1443
+ fullScreen: t.bool
1444
+ };
1445
+ Pt.defaultProps = {
1446
+ children: "",
1447
+ type: "warning",
1448
+ fullScreen: !1
1449
+ };
1450
+ const Jr = "_footer_19fad_1", Qr = {
1451
+ footer: Jr
1452
+ }, Al = (e) => /* @__PURE__ */ n.createElement("footer", { className: Qr.footer }, /* @__PURE__ */ n.createElement(xt, null, e.children)), ea = "_infoBox_1mh67_7", ta = "_infoSign_1mh67_15", ft = {
1453
+ infoBox: ea,
1454
+ infoSign: ta
1455
+ }, na = (e) => /* @__PURE__ */ n.createElement("div", { className: ft.infoBox }, /* @__PURE__ */ n.createElement("img", { src: $t, alt: "", className: ft.infoSign }), e.children);
1456
+ na.defaultProps = {
1457
+ children: ""
1458
+ };
1459
+ const Ge = (e) => {
1460
+ let r = "";
1461
+ const l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = l.length;
1462
+ for (let s = 0; s < e; s++)
1463
+ r += l.charAt(Math.floor(Math.random() * a));
1464
+ return r;
1465
+ }, ra = "_inputField_17rmz_1", aa = "_noMargin_17rmz_4", la = "_requiredSymbol_17rmz_10", oa = "_file_17rmz_17", sa = "_input_17rmz_1", ca = "_hasErrors_17rmz_50", ia = "_fileInputContainer_17rmz_62", J = {
1466
+ inputField: ra,
1467
+ noMargin: aa,
1468
+ requiredSymbol: la,
1469
+ file: oa,
1470
+ input: sa,
1471
+ hasErrors: ca,
1472
+ fileInputContainer: ia
1473
+ }, qt = (e) => {
1474
+ var m;
1475
+ const r = (_) => {
1476
+ if (!_)
1477
+ return null;
1478
+ const u = new Date(_), v = u.getFullYear(), y = u.getMonth() + 1 < 10 ? `0${u.getMonth() + 1}` : u.getMonth() + 1;
1479
+ return `${u.getDate() < 10 ? `0${u.getDate()}` : u.getDate()}.${y}.${v}`;
1480
+ }, l = (_, u) => e.type === "date" ? _ ? r(_) : u : _ || u, a = () => `${e.id}-errorMessage`, s = (_, u, v) => {
1481
+ var y, b;
1482
+ return {
1483
+ name: e.name,
1484
+ readOnly: e.readOnly,
1485
+ disabled: e.disabled,
1486
+ required: e.required,
1487
+ type: e.type,
1488
+ role: e.role,
1489
+ id: e.id,
1490
+ key: u || `${e.id}-${Ge(6)}`,
1491
+ min: e.min || null,
1492
+ max: e.max || null,
1493
+ onChange: e.onChange,
1494
+ onBlur: e.onBlur,
1495
+ [_ ? "defaultValue" : "value"]: _ || e.value,
1496
+ placeholder: e.placeholder || null,
1497
+ className: e.hasErrors ? J.hasErrors : null,
1498
+ "aria-describedby": e.hasErrors && ((y = e.errorMessage) != null && y.length) ? a() : (b = e["aria-describedby"]) != null && b.length ? e["aria-describedby"] : null,
1499
+ "aria-invalid": e.hasErrors ? "true" : null,
1500
+ "aria-autocomplete": e["aria-autocomplete"] || null,
1501
+ style: v
1502
+ };
1503
+ }, o = e.defaultValue ? e.defaultValue : e.value || null, f = e.elementKey || null, d = {
1504
+ ...((m = e.width) == null ? void 0 : m.length) && { maxWidth: e.width }
1505
+ };
1506
+ return /* @__PURE__ */ n.createElement(
1507
+ "div",
1508
+ {
1509
+ className: R([
1510
+ J.inputField,
1511
+ J[e.type],
1512
+ e.noMargin && J.noMargin
1513
+ ])
1514
+ },
1515
+ /* @__PURE__ */ n.createElement(Q, { htmlFor: e.id }, e.label, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: J.requiredSymbol }), e.type === "file" ? /* @__PURE__ */ n.createElement("div", { className: J.fileInputContainer }, /* @__PURE__ */ n.createElement("span", { className: J.input }, e.selectedFileName), e.buttonContent ? /* @__PURE__ */ n.createElement(
1516
+ we,
1517
+ {
1518
+ color: e.buttonColor,
1519
+ onClick: () => {
1520
+ document.getElementById(e.id).click();
1521
+ },
1522
+ content: e.buttonContent,
1523
+ type: "button"
1524
+ }
1525
+ ) : null) : null),
1526
+ e.contentOnly ? /* @__PURE__ */ n.createElement("span", null, l(e.value || e.defaultValue, e.defaultContent)) : /* @__PURE__ */ n.createElement("input", { ...s(o, f, d) }),
1527
+ /* @__PURE__ */ n.createElement(ce, { id: a(), content: e.errorMessage })
1528
+ );
1529
+ };
1530
+ qt.propTypes = {
1531
+ id: t.string.isRequired,
1532
+ onChange: t.func.isRequired,
1533
+ onBlur: t.func,
1534
+ name: t.string,
1535
+ type: t.string,
1536
+ disabled: t.bool,
1537
+ required: t.bool,
1538
+ width: t.string,
1539
+ value: t.any,
1540
+ defaultValue: t.any,
1541
+ elementKey: t.string,
1542
+ label: t.oneOfType([
1543
+ t.string,
1544
+ t.arrayOf(t.oneOfType([t.string, t.object]))
1545
+ ]),
1546
+ contentOnly: t.bool,
1547
+ buttonColor: t.oneOf(["primary", "secondary"]),
1548
+ buttonContent: t.string,
1549
+ selectedFileName: t.string,
1550
+ dateFormat: t.string,
1551
+ placeholder: t.string,
1552
+ defaultContent: t.string,
1553
+ "aria-describedby": t.string,
1554
+ "aria-autocomplete": t.oneOf(["none", "inline", "list", "both"]),
1555
+ hasErrors: t.bool,
1556
+ errorMessage: t.oneOfType([
1557
+ t.string,
1558
+ t.arrayOf(t.oneOfType([t.string, t.object]))
1559
+ ]),
1560
+ noMargin: t.bool
1561
+ };
1562
+ qt.defaultProps = {
1563
+ onChange: () => !1,
1564
+ name: "",
1565
+ type: "text",
1566
+ disabled: !1,
1567
+ required: !1,
1568
+ label: "",
1569
+ contentOnly: !1,
1570
+ buttonColor: "primary",
1571
+ dateFormat: "d. MMMM, yyyy",
1572
+ placeholder: "",
1573
+ defaultContent: "",
1574
+ hasErrors: !1,
1575
+ errorMessage: "",
1576
+ noMargin: !1
1577
+ };
1578
+ const da = "_lead_176gy_1", ua = {
1579
+ lead: da
1580
+ }, Nt = ({ id: e, htmlTag: r, children: l }) => {
1581
+ const a = ua.lead;
1582
+ return n.createElement(
1583
+ r,
1584
+ {
1585
+ className: a,
1586
+ id: e || null
1587
+ },
1588
+ l
1589
+ );
1590
+ };
1591
+ Nt.propTypes = {
1592
+ id: t.string,
1593
+ htmlTag: t.string
1594
+ };
1595
+ Nt.defaultProps = {
1596
+ htmlTag: "p"
1597
+ };
1598
+ const ha = "_list_16gsl_1", ma = "_compact_16gsl_10", gt = {
1599
+ list: ha,
1600
+ compact: ma
1601
+ }, Bt = (e) => {
1602
+ const r = (a) => se(a).map((o, f) => n.cloneElement(o, {
1603
+ compact: e.compact,
1604
+ key: `listItem-${f}`
1605
+ }));
1606
+ return ((a) => {
1607
+ let s = e.ordered ? "ol" : "ul";
1608
+ const o = e.ordered ? "decimal" : "disc";
1609
+ return n.createElement(
1610
+ s,
1611
+ {
1612
+ className: `${gt.list} ${e.compact ? gt.compact : ""}`,
1613
+ style: { ["--listStyle"]: e.listStyle || o }
1614
+ },
1615
+ r(n.Children.toArray(a))
1616
+ );
1617
+ })(e.children);
1618
+ };
1619
+ Bt.propTypes = {
1620
+ listStyle: t.string,
1621
+ compact: t.bool,
1622
+ ordered: t.bool
1623
+ };
1624
+ Bt.defaultProps = {
1625
+ ordered: !1,
1626
+ compact: !1
1627
+ };
1628
+ const fa = "_listItem_33xs0_1", ga = "_compact_33xs0_5", _t = {
1629
+ listItem: fa,
1630
+ compact: ga
1631
+ }, Rt = ({ compact: e, children: r }) => /* @__PURE__ */ n.createElement("li", { className: R([_t.listItem, e && _t.compact]) }, r);
1632
+ Rt.propTypes = {
1633
+ compact: t.bool
1634
+ };
1635
+ Rt.defaultProps = {
1636
+ compact: !1
1637
+ };
1638
+ const _a = "_loadingAnimation_hzd5u_1", ya = "_fixed_hzd5u_17", Ae = {
1639
+ loadingAnimation: _a,
1640
+ fixed: ya
1641
+ }, At = (e) => /* @__PURE__ */ n.createElement("div", { className: e.fixed ? Ae.loadingAnimation + " " + Ae.fixed : Ae.loadingAnimation }, e.message);
1642
+ At.propTypes = {
1643
+ fixed: t.bool,
1644
+ active: t.bool,
1645
+ /** Text content inside button */
1646
+ message: t.string
1647
+ };
1648
+ At.defaultProps = {
1649
+ fixed: !1,
1650
+ active: !0,
1651
+ message: ""
1652
+ };
1653
+ const je = (e) => typeof e.listItem == "string" ? /* @__PURE__ */ n.createElement("li", null, /* @__PURE__ */ n.createElement("span", null, e.listItem)) : typeof e.listItem == "object" ? /* @__PURE__ */ n.createElement("li", null, /* @__PURE__ */ n.createElement("a", { href: e.listItem.href }, e.listItem.name)) : null;
1654
+ je.propTypes = {
1655
+ listItem: t.oneOfType([t.string, t.object])
1656
+ };
1657
+ const va = (e) => (e == null ? void 0 : e.logo) || null, ba = (e) => (e == null ? void 0 : e.logoPadding) || null, Ea = (e) => (e == null ? void 0 : e.appName) || null, Ca = "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", Ta = "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", wa = "_navigationBarContainer_n1cc0_1", pa = "_mainContentLink_n1cc0_1", ka = "_compact_n1cc0_30", xa = "_navigationBar_n1cc0_1", La = "_preventStacking_n1cc0_63", Ma = "_logoContainer_n1cc0_82", Oa = "_childElements_n1cc0_91", Sa = "_menuToggle_n1cc0_97", Ia = "_hamburgerIcon_n1cc0_125", za = "_active_n1cc0_161", $a = "_dropdownContainer_n1cc0_170", Pa = "_dropdown_n1cc0_170", qa = "_primaryList_n1cc0_195", Na = "_secondaryList_n1cc0_196", Ba = "_line_n1cc0_392", A = {
1658
+ navigationBarContainer: wa,
1659
+ mainContentLink: pa,
1660
+ compact: ka,
1661
+ navigationBar: xa,
1662
+ preventStacking: La,
1663
+ logoContainer: Ma,
1664
+ childElements: Oa,
1665
+ menuToggle: Sa,
1666
+ hamburgerIcon: Ia,
1667
+ active: za,
1668
+ dropdownContainer: $a,
1669
+ dropdown: Pa,
1670
+ primaryList: qa,
1671
+ secondaryList: Na,
1672
+ line: Ba
1673
+ }, Dt = (e) => {
1674
+ var _, u, v;
1675
+ const [r, l] = de(!1), a = () => {
1676
+ l(!r);
1677
+ }, s = (y) => ({
1678
+ padding: ba(y)
1679
+ }), o = (y = e.primaryListItems, b = 0) => {
1680
+ let p = y.map((w, N) => {
1681
+ let E = b + "-" + N;
1682
+ return w.listItems !== void 0 ? /* @__PURE__ */ n.createElement("li", { key: E }, /* @__PURE__ */ n.createElement("span", null, w.name), o(w.listItems, b + 1)) : /* @__PURE__ */ n.createElement(je, { listItem: w, key: E, theme: e.theme });
1683
+ });
1684
+ return !!(p != null && p.length) && /* @__PURE__ */ n.createElement("ul", { className: A.primaryList }, p);
1685
+ }, f = () => {
1686
+ let y = e.secondaryListItems.map((b, p) => /* @__PURE__ */ n.createElement(je, { listItem: b, key: p, theme: e.theme }));
1687
+ return !!(y != null && y.length) && /* @__PURE__ */ n.createElement("ul", { className: A.secondaryList }, y);
1688
+ }, d = (y, b) => {
1689
+ const p = va(e.theme), w = Ea(e.theme), N = () => y && b ? "" : p && w ? `${w} logo` : "DIBK logo", E = () => {
1690
+ const C = N();
1691
+ return p ? /* @__PURE__ */ n.createElement("img", { alt: C, src: p, style: s(e.theme) }) : /* @__PURE__ */ n.createElement("img", { alt: C, src: e.compact ? Ca : Ta });
1692
+ }, B = {
1693
+ target: e.openLogoLinkInNewTab ? "_blank" : null,
1694
+ rel: e.openLogoLinkInNewTab ? "noopener noreferrer" : null
1695
+ };
1696
+ return y && y.length ? /* @__PURE__ */ n.createElement("a", { ...B, href: y, title: b }, E()) : E();
1697
+ }, m = !!((_ = e.primaryListItems) != null && _.length) || !!((u = e.secondaryListItems) != null && u.length);
1698
+ return /* @__PURE__ */ n.createElement(
1699
+ "div",
1700
+ {
1701
+ className: R([e.compact && A.compact, A.navigationBarContainer])
1702
+ },
1703
+ ((v = e.mainContentId) == null ? void 0 : v.length) && /* @__PURE__ */ n.createElement("a", { id: "main-content-link", href: `#${e.mainContentId}`, className: A.mainContentLink }, /* @__PURE__ */ n.createElement("span", { id: "main-content-link-text" }, "Hopp til hovedinnhold")),
1704
+ /* @__PURE__ */ n.createElement(
1705
+ "div",
1706
+ {
1707
+ className: R([
1708
+ A.navigationBar,
1709
+ e.preventChildElementStacking && A.preventStacking
1710
+ ])
1711
+ },
1712
+ /* @__PURE__ */ n.createElement("div", { className: A.logoContainer }, d(e.logoLink, e.logoLinkTitle)),
1713
+ !!e.children && /* @__PURE__ */ n.createElement("div", { className: A.childElements }, e.children),
1714
+ m && /* @__PURE__ */ n.createElement(
1715
+ "button",
1716
+ {
1717
+ type: "button",
1718
+ className: `${A.menuToggle} ${r ? A.active : ""}`,
1719
+ onClick: () => a(),
1720
+ "aria-expanded": r ? "true" : "false",
1721
+ "aria-controls": "main-menu-dropdown"
1722
+ },
1723
+ !e.compact && "Meny",
1724
+ /* @__PURE__ */ n.createElement("span", { className: A.hamburgerIcon }, /* @__PURE__ */ n.createElement("span", { className: A.line }), /* @__PURE__ */ n.createElement("span", { className: A.line }), /* @__PURE__ */ n.createElement("span", { className: A.line }))
1725
+ )
1726
+ ),
1727
+ m && /* @__PURE__ */ n.createElement(He, null, /* @__PURE__ */ n.createElement("div", { className: R([A.dropdownContainer, r && A.active]) }, /* @__PURE__ */ n.createElement("div", { id: "main-menu-dropdown", className: A.dropdown }, o(), f())))
1728
+ );
1729
+ };
1730
+ Dt.propTypes = {
1731
+ /** Main links in navigation bar */
1732
+ primaryListItems: t.array,
1733
+ /** Secondary links in navigation bar */
1734
+ secondaryListItems: t.array,
1735
+ /** Link for logo */
1736
+ logoLink: t.string,
1737
+ /** Title for the logo link */
1738
+ logoLinkTitle: t.string,
1739
+ /** Opens logo link in a new tab on click */
1740
+ openLogoLinkInNewTab: t.bool,
1741
+ /** Theme for navigation bar */
1742
+ theme: t.object,
1743
+ /** Prevent stacking of child elements on smaller screens */
1744
+ preventChildElementStacking: t.bool
1745
+ };
1746
+ Dt.defaultProps = {
1747
+ primaryListItems: [],
1748
+ secondaryListItems: [],
1749
+ logoLink: null,
1750
+ preventChildElementStacking: !1
1751
+ };
1752
+ const Ra = "_paper_1lgl3_1", Aa = "_noMargin_1lgl3_6", Da = "_noPadding_1lgl3_9", De = {
1753
+ paper: Ra,
1754
+ noMargin: Aa,
1755
+ noPadding: Da
1756
+ }, Ft = (e) => /* @__PURE__ */ n.createElement(
1757
+ "div",
1758
+ {
1759
+ className: `${De.paper} ${e.noMargin ? De.noMargin : ""} ${e.noPadding ? De.noPadding : ""}`
1760
+ },
1761
+ e.children
1762
+ );
1763
+ Ft.propTypes = {
1764
+ noMargin: t.bool,
1765
+ noPadding: t.bool
1766
+ };
1767
+ Ft.defaultProps = {
1768
+ noMargin: !1,
1769
+ noPadding: !1
1770
+ };
1771
+ const Fa = "_progressBar_t5aid_1", Va = "_hasErrors_t5aid_23", yt = {
1772
+ progressBar: Fa,
1773
+ hasErrors: Va
1774
+ }, Vt = (e) => /* @__PURE__ */ n.createElement(
1775
+ "div",
1776
+ {
1777
+ className: `${yt.progressBar} ${e.hasErrors ? yt.hasErrors : ""}`,
1778
+ role: "progressbar",
1779
+ "aria-valuenow": e.progress || 0,
1780
+ "aria-valuemin": "0",
1781
+ "aria-valuemax": "100",
1782
+ style: { ["--value"]: e.progress || 0 }
1783
+ }
1784
+ );
1785
+ Vt.propTypes = {
1786
+ progress: t.number,
1787
+ hasErrors: t.bool
1788
+ };
1789
+ Vt.defaultProps = {
1790
+ progress: 0,
1791
+ hasErrors: !1
1792
+ };
1793
+ const ja = "_radioButtonIcon_32fe0_1", Ha = "_hasErrors_32fe0_22", Xa = "_checked_32fe0_32", Wa = "_disabled_32fe0_48", Ce = {
1794
+ radioButtonIcon: ja,
1795
+ hasErrors: Ha,
1796
+ checked: Xa,
1797
+ disabled: Wa
1798
+ }, Ue = (e) => {
1799
+ let r = {
1800
+ height: e.size,
1801
+ width: e.size
1802
+ };
1803
+ const l = {
1804
+ className: `${Ce.radioButtonIcon} ${e.checked ? Ce.checked : ""} ${e.disabled ? Ce.disabled : ""} ${e.hasErrors ? Ce.hasErrors : ""}`,
1805
+ style: r
1806
+ };
1807
+ return /* @__PURE__ */ n.createElement("span", { ...l });
1808
+ };
1809
+ Ue.propTypes = {
1810
+ /**
1811
+ * How large should the radio button icon be?
1812
+ */
1813
+ size: t.string,
1814
+ checked: t.bool,
1815
+ disabled: t.bool,
1816
+ hasErrors: t.bool
1817
+ };
1818
+ Ue.defaultProps = {
1819
+ size: "10px",
1820
+ checked: !1,
1821
+ disabled: !1,
1822
+ hasErrors: !1
1823
+ };
1824
+ const Ya = "_radioButtonInput_1i7cy_1", Ga = "_requiredSymbol_1i7cy_6", Ua = "_disabled_1i7cy_13", Ka = "_labelText_1i7cy_19", Za = "_hasErrors_1i7cy_27", le = {
1825
+ radioButtonInput: Ya,
1826
+ requiredSymbol: Ga,
1827
+ disabled: Ua,
1828
+ labelText: Ka,
1829
+ hasErrors: Za
1830
+ }, Ke = (e) => {
1831
+ const r = {
1832
+ className: `${le.radioButtonInput} ${e.checked ? le.checked : ""} ${e.disabled ? le.disabled : ""} ${e.hasErrors ? le.hasErrors : ""}`,
1833
+ htmlFor: e.id
1834
+ }, l = {
1835
+ checked: e.checked,
1836
+ disabled: e.disabled,
1837
+ hasErrors: !e.contentOnly && e.hasErrors
1838
+ }, a = {
1839
+ id: e.id,
1840
+ name: e.name || null,
1841
+ type: "radio",
1842
+ value: e.inputValue,
1843
+ checked: e.checked,
1844
+ disabled: e.disabled,
1845
+ required: e.required || e.requiredGroup,
1846
+ onChange: e.onChange,
1847
+ tabIndex: e.tabIndex || null,
1848
+ "aria-controls": e["aria-controls"],
1849
+ "aria-invalid": e.hasErrors ? "true" : null,
1850
+ "aria-describedby": e["aria-describedby"]
1851
+ };
1852
+ return /* @__PURE__ */ n.createElement("label", { ...r }, e.contentOnly ? null : /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(Ue, { ...l }), /* @__PURE__ */ n.createElement("input", { ...a })), /* @__PURE__ */ n.createElement("span", { className: le.labelText }, e.children, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: le.requiredSymbol })));
1853
+ };
1854
+ Ke.propTypes = {
1855
+ checked: t.bool,
1856
+ disabled: t.bool,
1857
+ required: t.bool,
1858
+ requiredGroup: t.bool,
1859
+ id: t.string.isRequired,
1860
+ name: t.string,
1861
+ onChange: t.func,
1862
+ contentOnly: t.bool,
1863
+ hasErrors: t.bool,
1864
+ inputValue: t.string.isRequired,
1865
+ "aria-controls": t.string,
1866
+ "aria-describedby": t.string
1867
+ };
1868
+ Ke.defaultProps = {
1869
+ name: "",
1870
+ checked: !1,
1871
+ disabled: !1,
1872
+ required: !1,
1873
+ requiredGroup: !1,
1874
+ contentOnly: !1,
1875
+ hasErrors: !1
1876
+ };
1877
+ const Ja = "_radioButtonList_1cyu3_1", Qa = "_requiredSymbol_1cyu3_16", vt = {
1878
+ radioButtonList: Ja,
1879
+ requiredSymbol: Qa
1880
+ }, el = ({ required: e, compact: r, legend: l, legendSize: a, children: s }) => {
1881
+ const o = (f) => se(f).map((m, _) => {
1882
+ var v;
1883
+ return ((v = m == null ? void 0 : m.props) == null ? void 0 : v.type) === "RadioButtonListItem" ? n.cloneElement(m, {
1884
+ requiredGroup: e,
1885
+ compact: r,
1886
+ key: `radioButtonListItem-${_}`
1887
+ }) : m;
1888
+ });
1889
+ return /* @__PURE__ */ n.createElement("fieldset", { className: vt.radioButtonList }, l != null && l.length ? /* @__PURE__ */ n.createElement("legend", null, a ? /* @__PURE__ */ n.createElement(pe, { size: a }, l) : l, e && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: vt.requiredSymbol })) : null, o(n.Children.toArray(s)));
1890
+ };
1891
+ el.propTypes = {
1892
+ legend: t.string,
1893
+ legendSize: t.oneOf([1, 2, 3, 4, 5]),
1894
+ required: t.bool,
1895
+ compact: t.bool
1896
+ };
1897
+ const tl = "_radioButtonListItem_1ggab_1", nl = "_contentOnly_1ggab_26", rl = "_compact_1ggab_26", al = "_disabled_1ggab_41", ll = "_checked_1ggab_44", oe = {
1898
+ radioButtonListItem: tl,
1899
+ contentOnly: nl,
1900
+ compact: rl,
1901
+ disabled: al,
1902
+ checked: ll
1903
+ }, jt = (e) => {
1904
+ const r = [
1905
+ oe.radioButtonListItem,
1906
+ e.checked ? oe.checked : null,
1907
+ e.disabled ? oe.disabled : null,
1908
+ e.compact ? oe.compact : null,
1909
+ e.contentOnly ? oe.contentOnly : null,
1910
+ e.hasErrors ? oe.hasErrors : null
1911
+ ], l = R(r), a = {
1912
+ onChange: e.onChange,
1913
+ inputValue: e.inputValue,
1914
+ checked: e.checked,
1915
+ disabled: e.disabled,
1916
+ required: e.required,
1917
+ requiredGroup: e.requiredGroup,
1918
+ contentOnly: e.contentOnly,
1919
+ hasErrors: e.hasErrors,
1920
+ "aria-controls": e["aria-controls"],
1921
+ "aria-describedby": e["aria-describedby"],
1922
+ id: e.id,
1923
+ name: e.name
1924
+ };
1925
+ return /* @__PURE__ */ n.createElement("div", { className: l }, /* @__PURE__ */ n.createElement(Ke, { ...a }, e.children));
1926
+ };
1927
+ jt.propTypes = {
1928
+ inputValue: t.string.isRequired,
1929
+ checked: t.bool,
1930
+ disabled: t.bool,
1931
+ required: t.bool,
1932
+ requiredGroup: t.bool,
1933
+ name: t.string,
1934
+ id: t.string.isRequired,
1935
+ onChange: t.func,
1936
+ contentOnly: t.bool,
1937
+ compact: t.bool,
1938
+ hasErrors: t.bool,
1939
+ "aria-controls": t.string,
1940
+ "aria-describedby": t.string
1941
+ };
1942
+ jt.defaultProps = {
1943
+ name: "",
1944
+ checked: !1,
1945
+ required: !1,
1946
+ requiredGroup: !1,
1947
+ disabled: !1,
1948
+ contentOnly: !1,
1949
+ hasErrors: !1,
1950
+ type: "RadioButtonListItem"
1951
+ };
1952
+ const ol = "_select_18o2z_1", sl = "_requiredSymbol_18o2z_1", cl = "_selectContainer_18o2z_8", il = "_selectListArrow_18o2z_11", dl = "_multipleSelectDropdown_18o2z_40", ul = "_multipleSelectElement_18o2z_52", hl = "_multiple_18o2z_40", ml = "_hasErrors_18o2z_100", Y = {
1953
+ select: ol,
1954
+ requiredSymbol: sl,
1955
+ selectContainer: cl,
1956
+ selectListArrow: il,
1957
+ multipleSelectDropdown: dl,
1958
+ multipleSelectElement: ul,
1959
+ multiple: hl,
1960
+ hasErrors: ml
1961
+ }, Ht = (e) => {
1962
+ var b, p, w, N;
1963
+ const [r, l] = de(!1), a = he(), s = bt((E) => {
1964
+ E && wt(E);
1965
+ }, []), o = () => {
1966
+ l(!1);
1967
+ };
1968
+ ue(() => {
1969
+ const E = (C) => {
1970
+ switch (C.keyCode) {
1971
+ case 27:
1972
+ o();
1973
+ break;
1974
+ default:
1975
+ return null;
1976
+ }
1977
+ }, B = (C) => {
1978
+ a != null && a.current && !a.current.contains(C.target) && o();
1979
+ };
1980
+ document.addEventListener("mousedown", B), document.addEventListener("keydown", E, !1);
1981
+ }, [e, s]);
1982
+ const f = (E, B) => {
1983
+ const C = B && B.length ? B.find((O) => typeof O == "object" ? O.value === E : O === E) : null;
1984
+ return C && C.key ? C.key : C && C.value ? C.value : C;
1985
+ }, d = (E) => typeof E == "object" ? {
1986
+ key: E.key ? E.key : "",
1987
+ value: E.value ? E.value : ""
1988
+ } : {
1989
+ key: E,
1990
+ value: E
1991
+ }, m = (E, B) => {
1992
+ const C = B.defaultValue || B.value;
1993
+ return C != null && C.length ? C.map((O) => f(O, E)).join(", ") : null;
1994
+ }, _ = (E, B) => E.map((C, O) => {
1995
+ let i = d(C);
1996
+ const F = B.defaultValue || B.value, ie = F && F.length && F.includes(i.value);
1997
+ return /* @__PURE__ */ n.createElement(
1998
+ Ye,
1999
+ {
2000
+ key: O,
2001
+ id: `${e.id}-${O}`,
2002
+ value: i.value,
2003
+ checked: ie,
2004
+ onChange: () => B.onChange(i.value)
2005
+ },
2006
+ i.key
2007
+ );
2008
+ }), u = (E) => E.map((B, C) => {
2009
+ let O = d(B);
2010
+ return /* @__PURE__ */ n.createElement("option", { value: O.value, key: C }, O.key);
2011
+ }), v = (E, B) => E ? /* @__PURE__ */ n.createElement("option", { value: B || "", disabled: !0 }, E) : "", y = () => `${e.id}-errorMessage`;
2012
+ if (e.contentOnly) {
2013
+ const E = e.defaultValue ? e.defaultValue : e.value || null;
2014
+ return /* @__PURE__ */ n.createElement("div", { className: Y.select }, /* @__PURE__ */ n.createElement(Q, { htmlFor: e.id }, e.label), /* @__PURE__ */ n.createElement("span", null, E ? e.keyAsContent ? f(E, e.options) : E : e.defaultContent));
2015
+ } else {
2016
+ const E = !e.value && e.defaultValue ? e.defaultValue : !1, B = {
2017
+ ...((b = e.width) == null ? void 0 : b.length) && { maxWidth: e.width }
2018
+ }, C = R([
2019
+ e.hasErrors && Y.hasErrors,
2020
+ e.multiple && Y.multiple
2021
+ ]), O = {
2022
+ name: e.name,
2023
+ multiple: e.multiple,
2024
+ required: e.required,
2025
+ disabled: e.disabled,
2026
+ [E ? "defaultValue" : "value"]: E || e.value || "",
2027
+ onChange: e.onChange,
2028
+ id: e.id,
2029
+ role: e.role,
2030
+ key: `${e.id}-${Ge(6)}`,
2031
+ className: C,
2032
+ "aria-describedby": e.hasErrors && ((p = e.errorMessage) != null && p.length) ? y() : (w = e["aria-describedby"]) != null && w.length ? e["aria-describedby"] : null,
2033
+ "aria-invalid": e.hasErrors ? "true" : null,
2034
+ style: B
2035
+ };
2036
+ return /* @__PURE__ */ n.createElement("div", { className: Y.select }, /* @__PURE__ */ n.createElement(Q, { htmlFor: e.id }, e.label, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: Y.requiredSymbol })), /* @__PURE__ */ n.createElement(
2037
+ "div",
2038
+ {
2039
+ className: Y.selectContainer,
2040
+ style: { ...((N = e.width) == null ? void 0 : N.length) && { maxWidth: e.width } }
2041
+ },
2042
+ /* @__PURE__ */ n.createElement("span", { className: Y.selectListArrow }),
2043
+ e.multiple ? /* @__PURE__ */ n.createElement("div", { ref: a }, /* @__PURE__ */ n.createElement(
2044
+ "div",
2045
+ {
2046
+ onClick: () => {
2047
+ l(!r);
2048
+ },
2049
+ className: Y.multipleSelectElement
2050
+ },
2051
+ m(e.options, O)
2052
+ ), r ? /* @__PURE__ */ n.createElement("div", { className: Y.multipleSelectDropdown }, /* @__PURE__ */ n.createElement(kt, { compact: !0 }, _(e.options, O))) : null) : /* @__PURE__ */ n.createElement("select", { ...O }, v(e.placeholder, e.placeholderValue), u(e.options))
2053
+ ), /* @__PURE__ */ n.createElement(ce, { id: y(), content: e.errorMessage }));
2054
+ }
2055
+ };
2056
+ Ht.propTypes = {
2057
+ id: t.string.isRequired,
2058
+ onChange: t.func.isRequired,
2059
+ name: t.string,
2060
+ required: t.bool,
2061
+ disabled: t.bool,
2062
+ multiple: t.bool,
2063
+ options: t.arrayOf(
2064
+ t.oneOfType([
2065
+ t.oneOfType([t.string, t.number]),
2066
+ t.shape({
2067
+ key: t.oneOfType([t.string, t.number]),
2068
+ value: t.oneOfType([t.string, t.number])
2069
+ })
2070
+ ])
2071
+ ),
2072
+ width: t.string,
2073
+ value: t.any,
2074
+ defaultValue: t.any,
2075
+ label: t.oneOfType([
2076
+ t.string,
2077
+ t.arrayOf(t.oneOfType([t.string, t.object]))
2078
+ ]),
2079
+ contentOnly: t.bool,
2080
+ keyAsContent: t.bool,
2081
+ placeholder: t.string,
2082
+ placeholderValue: t.string,
2083
+ defaultContent: t.string,
2084
+ "aria-describedby": t.string,
2085
+ hasErrors: t.bool,
2086
+ errorMessage: t.oneOfType([
2087
+ t.string,
2088
+ t.arrayOf(t.oneOfType([t.string, t.object]))
2089
+ ])
2090
+ };
2091
+ Ht.defaultProps = {
2092
+ onChange: () => !1,
2093
+ name: "",
2094
+ required: !1,
2095
+ disabled: !1,
2096
+ options: [],
2097
+ label: "",
2098
+ contentOnly: !1,
2099
+ keyAsContent: !1,
2100
+ placeholder: null,
2101
+ placeholderValue: "",
2102
+ defaultContent: null,
2103
+ hasErrors: !1,
2104
+ errorMessage: ""
2105
+ };
2106
+ const fl = "_table_miy9l_1", me = {
2107
+ table: fl,
2108
+ "captionSide-top": "_captionSide-top_miy9l_14",
2109
+ "captionSide-bottom": "_captionSide-bottom_miy9l_18",
2110
+ "captionAlign-left": "_captionAlign-left_miy9l_22",
2111
+ "captionAlign-center": "_captionAlign-center_miy9l_25",
2112
+ "captionAlign-right": "_captionAlign-right_miy9l_28"
2113
+ }, gl = (e) => {
2114
+ const r = "left", l = ["left", "center", "right"];
2115
+ return e != null && e.length && l.includes(e) ? me[`captionAlign-${e}`] : me[`captionAlign-${r}`];
2116
+ }, _l = (e) => {
2117
+ const r = "top", l = ["top", "bottom"];
2118
+ return e != null && e.length && l.includes(e) ? me[`captionSide-${e}`] : me[`captionSide-${r}`];
2119
+ }, yl = (e) => /* @__PURE__ */ n.createElement(
2120
+ "table",
2121
+ {
2122
+ className: R([
2123
+ me.table,
2124
+ gl(e.captionAlign),
2125
+ _l(e.captionSide)
2126
+ ])
2127
+ },
2128
+ e.children
2129
+ );
2130
+ yl.propTypes = {
2131
+ captionAlign: t.oneOf(["left", "center", "right"]),
2132
+ captionSide: t.oneOf(["top", "bottom"])
2133
+ };
2134
+ const vl = "_textarea_1596u_1", bl = "_requiredSymbol_1596u_4", El = "_hasErrors_1596u_55", Fe = {
2135
+ textarea: vl,
2136
+ requiredSymbol: bl,
2137
+ hasErrors: El
2138
+ }, Xt = (e) => {
2139
+ const r = (s, o) => s || o, l = () => `${e.id}-errorMessage`, a = () => {
2140
+ var m, _, u, v, y, b;
2141
+ const s = !((m = e.value) != null && m.length) && ((_ = e.defaultValue) != null && _.length) ? e.defaultValue : !1, o = e.elementKey || null, f = {
2142
+ ...((u = e.width) == null ? void 0 : u.length) && { maxWidth: e.width },
2143
+ ...((v = e.resize) == null ? void 0 : v.length) && { resize: e.resize }
2144
+ }, d = {
2145
+ name: e.name,
2146
+ readOnly: e.readOnly,
2147
+ disabled: e.disabled,
2148
+ required: e.required,
2149
+ type: e.type,
2150
+ id: e.id,
2151
+ key: o || `${e.id}-${Ge(6)}`,
2152
+ onChange: e.onChange,
2153
+ onBlur: e.onBlur,
2154
+ [s ? "defaultValue" : "value"]: s || e.value,
2155
+ placeholder: e.placeholder,
2156
+ rows: e.rows,
2157
+ className: e.hasErrors ? Fe.hasErrors : "",
2158
+ "aria-describedby": e.hasErrors && ((y = e.errorMessage) != null && y.length) ? l() : (b = e["aria-describedby"]) != null && b.length ? e["aria-describedby"] : null,
2159
+ "aria-invalid": e.hasErrors ? "true" : null,
2160
+ style: f
2161
+ };
2162
+ return /* @__PURE__ */ n.createElement("textarea", { ...d });
2163
+ };
2164
+ return /* @__PURE__ */ n.createElement("div", { className: Fe.textarea }, /* @__PURE__ */ n.createElement(Q, { htmlFor: e.id }, e.label, e.required && /* @__PURE__ */ n.createElement("img", { src: U, alt: "", className: Fe.requiredSymbol })), e.contentOnly ? /* @__PURE__ */ n.createElement("span", null, r(e.value || e.defaultValue, e.defaultContent)) : a(), /* @__PURE__ */ n.createElement(ce, { id: l(), content: e.errorMessage }));
2165
+ };
2166
+ Xt.propTypes = {
2167
+ /** Text content inside list item */
2168
+ id: t.string.isRequired,
2169
+ onChange: t.func.isRequired,
2170
+ onBlur: t.func,
2171
+ name: t.string,
2172
+ type: t.string,
2173
+ required: t.bool,
2174
+ width: t.string,
2175
+ resize: t.oneOf(["both", "horizontal", "vertical", "none"]),
2176
+ value: t.string,
2177
+ defaultValue: t.string,
2178
+ elementKey: t.string,
2179
+ rows: t.string,
2180
+ label: t.oneOfType([
2181
+ t.string,
2182
+ t.arrayOf(t.oneOfType([t.string, t.object]))
2183
+ ]),
2184
+ contentOnly: t.bool,
2185
+ placeholder: t.string,
2186
+ defaultContent: t.string,
2187
+ "aria-describedby": t.string,
2188
+ hasErrors: t.bool,
2189
+ errorMessage: t.oneOfType([
2190
+ t.string,
2191
+ t.arrayOf(t.oneOfType([t.string, t.object]))
2192
+ ])
2193
+ };
2194
+ Xt.defaultProps = {
2195
+ onChange: () => !1,
2196
+ name: "",
2197
+ type: "text",
2198
+ required: !1,
2199
+ label: "",
2200
+ contentOnly: !1,
2201
+ resize: "both",
2202
+ placeholder: "",
2203
+ defaultContent: "",
2204
+ hasErrors: !1,
2205
+ errorMessage: ""
2206
+ };
2207
+ const Cl = ({ theme: e, children: r }) => {
2208
+ const l = cn(e), a = un(
2209
+ l
2210
+ );
2211
+ return dn("theme-provider", `:root {${a}}`), r;
2212
+ };
2213
+ Cl.propTypes = {
2214
+ theme: t.object
2215
+ };
2216
+ const Tl = "_toggleNavigationButton_1eb2w_1", wl = {
2217
+ toggleNavigationButton: Tl
2218
+ }, Wt = ({ id: e, htmlTag: r, showText: l, hideText: a, buttonProps: s, isOpen: o }) => {
2219
+ const f = wl.toggleNavigationButton;
2220
+ return n.createElement(
2221
+ r,
2222
+ {
2223
+ ...s,
2224
+ className: f,
2225
+ id: e || null
2226
+ },
2227
+ o ? a : l
2228
+ );
2229
+ };
2230
+ Wt.propTypes = {
2231
+ id: t.string,
2232
+ htmlTag: t.string,
2233
+ showText: t.string,
2234
+ hideText: t.string,
2235
+ buttonProps: t.object,
2236
+ isOpen: t.bool
2237
+ };
2238
+ Wt.defaultProps = {
2239
+ htmlTag: "button",
2240
+ isOpen: !1
2241
+ };
2242
+ const pl = "_wizardTopnavItem_5ar16_1", kl = "_wizardTopnavItemContent_5ar16_4", xl = "_vertical_5ar16_7", Ll = "_stepNumber_5ar16_24", Ml = "_stepName_5ar16_36", Ol = "_active_5ar16_46", Sl = "_finished_5ar16_46", Il = "_hasErrors_5ar16_46", zl = "_horizontal_5ar16_64", W = {
2243
+ wizardTopnavItem: pl,
2244
+ wizardTopnavItemContent: kl,
2245
+ vertical: xl,
2246
+ stepNumber: Ll,
2247
+ stepName: Ml,
2248
+ active: Ol,
2249
+ finished: Sl,
2250
+ hasErrors: Il,
2251
+ horizontal: zl
2252
+ }, $l = "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", Ze = (e) => {
2253
+ const {
2254
+ step: r,
2255
+ index: l,
2256
+ activeStepId: a,
2257
+ direction: s,
2258
+ linkComponent: o
2259
+ } = e, f = (y) => a === y.id ? W.active : "", d = (y) => y.finished ? W.finished : "", m = (y) => y.hasErrors ? W.hasErrors : "", _ = () => {
2260
+ const y = a === r.id, p = s === "vertical" && r.finished && !y;
2261
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("span", { className: W.stepNumber }, l + 1), /* @__PURE__ */ n.createElement("span", { className: W.stepName }, r.name), p && /* @__PURE__ */ n.createElement("img", { src: $l, alt: "", className: W.checkmarkSymbol }));
2262
+ }, u = R([
2263
+ W.wizardTopnavItem,
2264
+ f(r),
2265
+ d(r),
2266
+ m(r),
2267
+ W[s]
2268
+ ]), v = a === r.id ? "step" : null;
2269
+ return r.link && Object.keys(r.link).length && o ? /* @__PURE__ */ n.createElement("li", { className: u }, /* @__PURE__ */ n.createElement(
2270
+ o,
2271
+ {
2272
+ to: r.link,
2273
+ "aria-current": v,
2274
+ className: W.wizardTopnavItemContent
2275
+ },
2276
+ _()
2277
+ )) : /* @__PURE__ */ n.createElement("li", { className: u }, /* @__PURE__ */ n.createElement(
2278
+ "span",
2279
+ {
2280
+ "aria-current": v,
2281
+ className: W.wizardTopnavItemContent
2282
+ },
2283
+ _()
2284
+ ));
2285
+ };
2286
+ Ze.propTypes = {
2287
+ step: t.object.isRequired,
2288
+ activeStepId: t.oneOfType([t.string, t.number]).isRequired,
2289
+ index: t.number.isRequired,
2290
+ direction: t.oneOf(["vertical", "horizontal"]),
2291
+ linkComponent: t.elementType
2292
+ };
2293
+ Ze.defaultProps = {
2294
+ direction: "vertical"
2295
+ };
2296
+ const Pl = "_wizardTopnavContainer_qiy2o_1", ql = "_wizardTopnav_qiy2o_1", Nl = "_vertical_qiy2o_6", Bl = "_horizontal_qiy2o_11", Ve = {
2297
+ wizardTopnavContainer: Pl,
2298
+ wizardTopnav: ql,
2299
+ vertical: Nl,
2300
+ horizontal: Bl
2301
+ }, Yt = (e) => {
2302
+ var o, f;
2303
+ const r = (d, m) => d && Object.keys(d).length ? Object.keys(d).map((u, v) => {
2304
+ const y = d[u];
2305
+ return /* @__PURE__ */ n.createElement(
2306
+ Ze,
2307
+ {
2308
+ direction: e.direction,
2309
+ step: y,
2310
+ activeStepId: m,
2311
+ index: v,
2312
+ key: u
2313
+ }
2314
+ );
2315
+ }) : null, a = `I dette skjemaet er det totalt ${e.steps && ((o = Object.keys(e.steps)) != null && o.length) ? Object.keys(e.steps).length : 0} steg som du skal gå igjennom`, s = (f = e["aria-label"]) != null && f.length ? e["aria-label"] : a;
2316
+ return /* @__PURE__ */ n.createElement(
2317
+ "nav",
2318
+ {
2319
+ "aria-label": s,
2320
+ className: R([
2321
+ Ve.wizardTopnavContainer,
2322
+ Ve[e.direction]
2323
+ ])
2324
+ },
2325
+ /* @__PURE__ */ n.createElement("ol", { className: Ve.wizardTopnav }, r(e.steps, e.activeStepId))
2326
+ );
2327
+ };
2328
+ Yt.propTypes = {
2329
+ steps: t.shape({
2330
+ id: t.oneOfType([t.string, t.number]),
2331
+ name: t.string,
2332
+ finished: t.bool,
2333
+ hasErrors: t.bool,
2334
+ link: t.shape({
2335
+ to: t.object,
2336
+ reactLink: t.bool
2337
+ })
2338
+ }).isRequired,
2339
+ activeStepId: t.oneOfType([t.string, t.number]).isRequired,
2340
+ "aria-label": t.string,
2341
+ direction: t.oneOf(["vertical", "horizontal"])
2342
+ };
2343
+ Yt.defaultProps = {
2344
+ direction: "vertical"
2345
+ };
2346
+ export {
2347
+ pt as Accordion,
2348
+ we as Button,
2349
+ Te as CheckBoxIcon,
2350
+ We as CheckBoxInput,
2351
+ kt as CheckBoxList,
2352
+ Ye as CheckBoxListItem,
2353
+ xt as Container,
2354
+ Lt as ContentBox,
2355
+ Mt as DescriptionDetails,
2356
+ Ot as DescriptionList,
2357
+ St as DescriptionTerm,
2358
+ It as Dialog,
2359
+ zt as DragAndDropFileInput,
2360
+ Pt as ErrorBox,
2361
+ ce as ErrorMessage,
2362
+ Al as Footer,
2363
+ pe as Header,
2364
+ na as InfoBox,
2365
+ qt as InputField,
2366
+ Q as Label,
2367
+ Nt as Lead,
2368
+ Bt as List,
2369
+ Rt as ListItem,
2370
+ At as LoadingAnimation,
2371
+ Dt as NavigationBar,
2372
+ je as NavigationBarListItem,
2373
+ Ft as Paper,
2374
+ Vt as ProgressBar,
2375
+ Ue as RadioButtonIcon,
2376
+ Ke as RadioButtonInput,
2377
+ el as RadioButtonList,
2378
+ jt as RadioButtonListItem,
2379
+ Ht as Select,
2380
+ yl as Table,
2381
+ Xt as Textarea,
2382
+ Cl as ThemeProvider,
2383
+ Wt as ToggleNavigationButton,
2384
+ Yt as WizardNavigation,
2385
+ Ze as WizardNavigationStep
2386
+ };