dibk-design 7.7.1 → 8.0.1

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