@oslokommune/punkt-react 11.12.3 → 11.12.4

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 (53) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/accordion/Accordion.d.ts +1 -1
  3. package/dist/components/accordion/AccordionItem.d.ts +1 -1
  4. package/dist/components/alert/Alert.d.ts +1 -1
  5. package/dist/components/backlink/BackLink.d.ts +1 -1
  6. package/dist/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
  7. package/dist/components/button/Button.d.ts +1 -1
  8. package/dist/components/checkbox/Checkbox.d.ts +1 -1
  9. package/dist/components/footer/Footer.d.ts +1 -1
  10. package/dist/components/footerSimple/FooterSimple.d.ts +1 -1
  11. package/dist/components/header/Header.d.ts +2 -2
  12. package/dist/components/icon/Icon.d.ts +1 -1
  13. package/dist/components/icon/IconContext.d.ts +1 -1
  14. package/dist/components/input/Input.d.ts +1 -1
  15. package/dist/components/inputwrapper/InputWrapper.d.ts +2 -2
  16. package/dist/components/linkcard/LinkCard.d.ts +1 -1
  17. package/dist/components/loader/Loader.d.ts +1 -1
  18. package/dist/components/messagebox/Messagebox.d.ts +1 -1
  19. package/dist/components/radio/RadioButton.d.ts +1 -1
  20. package/dist/components/searchinput/SearchInput.d.ts +1 -1
  21. package/dist/components/select/Select.d.ts +2 -2
  22. package/dist/components/table/Table.d.ts +1 -1
  23. package/dist/components/table/TableData.d.ts +1 -1
  24. package/dist/components/table/TableHeader.d.ts +1 -1
  25. package/dist/components/tabs/Tabs.d.ts +1 -1
  26. package/dist/components/tag/Tag.d.ts +1 -1
  27. package/dist/components/textarea/Textarea.d.ts +2 -2
  28. package/dist/components/textinput/Textinput.d.ts +1 -1
  29. package/dist/punkt-react.es.js +1280 -1321
  30. package/dist/punkt-react.umd.js +22 -17
  31. package/package.json +13 -13
  32. package/src/components/accordion/Accordion.test.tsx +1 -1
  33. package/src/components/accordion/Accordion.tsx +0 -1
  34. package/src/components/checkbox/Checkbox.test.tsx +4 -10
  35. package/src/components/footer/Footer.test.tsx +11 -14
  36. package/src/components/footerSimple/FooterSimple.test.tsx +27 -30
  37. package/src/components/header/Header.test.tsx +4 -10
  38. package/src/components/header/Header.tsx +1 -1
  39. package/src/components/icon/Icon.test.tsx +3 -7
  40. package/src/components/inputwrapper/InputWrapper.tsx +7 -27
  41. package/src/components/linkcard/LinkCard.test.tsx +4 -10
  42. package/src/components/loader/Loader.test.tsx +2 -4
  43. package/src/components/radio/RadioButton.test.tsx +45 -44
  44. package/src/components/searchinput/SearchInput.test.tsx +3 -5
  45. package/src/components/searchinput/SearchInput.tsx +9 -28
  46. package/src/components/select/Select.test.tsx +4 -13
  47. package/src/components/select/Select.tsx +1 -1
  48. package/src/components/table/Table.tsx +1 -1
  49. package/src/components/table/TableData.tsx +1 -1
  50. package/src/components/table/TableHeader.tsx +1 -1
  51. package/src/components/tag/Tag.test.tsx +1 -1
  52. package/src/components/textarea/Textarea.test.tsx +4 -13
  53. package/src/components/textinput/Textinput.test.tsx +4 -13
@@ -1,7 +1,7 @@
1
- import * as N from "react";
2
- import H, { createContext as pn, useState as le, useContext as fn, useEffect as Je, forwardRef as M, useRef as Et, Fragment as dn } from "react";
1
+ import * as b from "react";
2
+ import X, { createContext as fn, useState as se, useContext as dn, useEffect as Je, forwardRef as V, useRef as jt, Fragment as mn } from "react";
3
3
  import "react-dom";
4
- function mn(e) {
4
+ function hn(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
7
  var We = { exports: {} }, ue = {};
@@ -14,23 +14,23 @@ var We = { exports: {} }, ue = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var _t;
18
- function hn() {
19
- if (_t)
17
+ var vt;
18
+ function kn() {
19
+ if (vt)
20
20
  return ue;
21
- _t = 1;
22
- var e = H, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ vt = 1;
22
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function c(o, p, u) {
24
- var d, k = {}, v = null, S = null;
25
- u !== void 0 && (v = "" + u), p.key !== void 0 && (v = "" + p.key), p.ref !== void 0 && (S = p.ref);
24
+ var d, h = {}, k = null, C = null;
25
+ u !== void 0 && (k = "" + u), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (C = p.ref);
26
26
  for (d in p)
27
- a.call(p, d) && !s.hasOwnProperty(d) && (k[d] = p[d]);
27
+ i.call(p, d) && !s.hasOwnProperty(d) && (h[d] = p[d]);
28
28
  if (o && o.defaultProps)
29
29
  for (d in p = o.defaultProps, p)
30
- k[d] === void 0 && (k[d] = p[d]);
31
- return { $$typeof: n, type: o, key: v, ref: S, props: k, _owner: l.current };
30
+ h[d] === void 0 && (h[d] = p[d]);
31
+ return { $$typeof: r, type: o, key: k, ref: C, props: h, _owner: l.current };
32
32
  }
33
- return ue.Fragment = r, ue.jsx = c, ue.jsxs = c, ue;
33
+ return ue.Fragment = a, ue.jsx = c, ue.jsxs = c, ue;
34
34
  }
35
35
  var pe = {};
36
36
  /**
@@ -42,64 +42,64 @@ var pe = {};
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
- var bt;
46
- function kn() {
47
- return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = H, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), x = Symbol.iterator, T = "@@iterator";
49
- function j(t) {
50
- if (t === null || typeof t != "object")
45
+ var _t;
46
+ function vn() {
47
+ return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
48
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
49
+ function O(n) {
50
+ if (n === null || typeof n != "object")
51
51
  return null;
52
- var f = x && t[x] || t[T];
52
+ var f = j && n[j] || n[S];
53
53
  return typeof f == "function" ? f : null;
54
54
  }
55
- var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
- function E(t) {
55
+ var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
56
+ function _(n) {
57
57
  {
58
58
  for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
59
59
  m[g - 1] = arguments[g];
60
- _("error", t, m);
60
+ v("error", n, m);
61
61
  }
62
62
  }
63
- function _(t, f, m) {
63
+ function v(n, f, m) {
64
64
  {
65
- var g = y.ReactDebugCurrentFrame, P = g.getStackAddendum();
65
+ var g = R.ReactDebugCurrentFrame, P = g.getStackAddendum();
66
66
  P !== "" && (f += "%s", m = m.concat([P]));
67
- var $ = m.map(function(R) {
68
- return String(R);
67
+ var T = m.map(function(E) {
68
+ return String(E);
69
69
  });
70
- $.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, $);
70
+ T.unshift("Warning: " + f), Function.prototype.apply.call(console[n], console, T);
71
71
  }
72
72
  }
73
- var O = !1, F = !1, W = !1, B = !1, J = !1, V;
74
- V = Symbol.for("react.module.reference");
75
- function z(t) {
76
- return !!(typeof t == "string" || typeof t == "function" || t === a || t === s || J || t === l || t === u || t === d || B || t === S || O || F || W || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === k || t.$$typeof === c || t.$$typeof === o || t.$$typeof === p || // This needs to include all possible module reference object
73
+ var y = !1, A = !1, U = !1, W = !1, B = !1, M;
74
+ M = Symbol.for("react.module.reference");
75
+ function Y(n) {
76
+ return !!(typeof n == "string" || typeof n == "function" || n === i || n === s || B || n === l || n === u || n === d || W || n === C || y || A || U || typeof n == "object" && n !== null && (n.$$typeof === k || n.$$typeof === h || n.$$typeof === c || n.$$typeof === o || n.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- t.$$typeof === V || t.getModuleId !== void 0));
80
+ n.$$typeof === M || n.getModuleId !== void 0));
81
81
  }
82
- function G(t, f, m) {
83
- var g = t.displayName;
82
+ function z(n, f, m) {
83
+ var g = n.displayName;
84
84
  if (g)
85
85
  return g;
86
86
  var P = f.displayName || f.name || "";
87
87
  return P !== "" ? m + "(" + P + ")" : m;
88
88
  }
89
- function Y(t) {
90
- return t.displayName || "Context";
89
+ function K(n) {
90
+ return n.displayName || "Context";
91
91
  }
92
- function U(t) {
93
- if (t == null)
92
+ function F(n) {
93
+ if (n == null)
94
94
  return null;
95
- if (typeof t.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
96
- return t.displayName || t.name || null;
97
- if (typeof t == "string")
98
- return t;
99
- switch (t) {
100
- case a:
95
+ if (typeof n.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
96
+ return n.displayName || n.name || null;
97
+ if (typeof n == "string")
98
+ return n;
99
+ switch (n) {
100
+ case i:
101
101
  return "Fragment";
102
- case r:
102
+ case a:
103
103
  return "Portal";
104
104
  case s:
105
105
  return "Profiler";
@@ -110,23 +110,23 @@ function kn() {
110
110
  case d:
111
111
  return "SuspenseList";
112
112
  }
113
- if (typeof t == "object")
114
- switch (t.$$typeof) {
113
+ if (typeof n == "object")
114
+ switch (n.$$typeof) {
115
115
  case o:
116
- var f = t;
117
- return Y(f) + ".Consumer";
116
+ var f = n;
117
+ return K(f) + ".Consumer";
118
118
  case c:
119
- var m = t;
120
- return Y(m._context) + ".Provider";
119
+ var m = n;
120
+ return K(m._context) + ".Provider";
121
121
  case p:
122
- return G(t, t.render, "ForwardRef");
123
- case k:
124
- var g = t.displayName || null;
125
- return g !== null ? g : U(t.type) || "Memo";
126
- case v: {
127
- var P = t, $ = P._payload, R = P._init;
122
+ return z(n, n.render, "ForwardRef");
123
+ case h:
124
+ var g = n.displayName || null;
125
+ return g !== null ? g : F(n.type) || "Memo";
126
+ case k: {
127
+ var P = n, T = P._payload, E = P._init;
128
128
  try {
129
- return U(R($));
129
+ return F(E(T));
130
130
  } catch {
131
131
  return null;
132
132
  }
@@ -134,372 +134,372 @@ function kn() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var b = Object.assign, A = 0, ee, te, oe, Qe, et, tt, nt;
138
- function rt() {
137
+ var x = Object.assign, L = 0, Z, Q, ie, Ze, Qe, et, tt;
138
+ function nt() {
139
139
  }
140
- rt.__reactDisabledLog = !0;
140
+ nt.__reactDisabledLog = !0;
141
141
  function At() {
142
142
  {
143
- if (A === 0) {
144
- ee = console.log, te = console.info, oe = console.warn, Qe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
145
- var t = {
143
+ if (L === 0) {
144
+ Z = console.log, Q = console.info, ie = console.warn, Ze = console.error, Qe = console.group, et = console.groupCollapsed, tt = console.groupEnd;
145
+ var n = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
- value: rt,
148
+ value: nt,
149
149
  writable: !0
150
150
  };
151
151
  Object.defineProperties(console, {
152
- info: t,
153
- log: t,
154
- warn: t,
155
- error: t,
156
- group: t,
157
- groupCollapsed: t,
158
- groupEnd: t
152
+ info: n,
153
+ log: n,
154
+ warn: n,
155
+ error: n,
156
+ group: n,
157
+ groupCollapsed: n,
158
+ groupEnd: n
159
159
  });
160
160
  }
161
- A++;
161
+ L++;
162
162
  }
163
163
  }
164
- function Vt() {
164
+ function Ut() {
165
165
  {
166
- if (A--, A === 0) {
167
- var t = {
166
+ if (L--, L === 0) {
167
+ var n = {
168
168
  configurable: !0,
169
169
  enumerable: !0,
170
170
  writable: !0
171
171
  };
172
172
  Object.defineProperties(console, {
173
- log: b({}, t, {
174
- value: ee
173
+ log: x({}, n, {
174
+ value: Z
175
175
  }),
176
- info: b({}, t, {
177
- value: te
176
+ info: x({}, n, {
177
+ value: Q
178
178
  }),
179
- warn: b({}, t, {
180
- value: oe
179
+ warn: x({}, n, {
180
+ value: ie
181
181
  }),
182
- error: b({}, t, {
182
+ error: x({}, n, {
183
+ value: Ze
184
+ }),
185
+ group: x({}, n, {
183
186
  value: Qe
184
187
  }),
185
- group: b({}, t, {
188
+ groupCollapsed: x({}, n, {
186
189
  value: et
187
190
  }),
188
- groupCollapsed: b({}, t, {
191
+ groupEnd: x({}, n, {
189
192
  value: tt
190
- }),
191
- groupEnd: b({}, t, {
192
- value: nt
193
193
  })
194
194
  });
195
195
  }
196
- A < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
+ L < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
197
197
  }
198
198
  }
199
- var Pe = y.ReactCurrentDispatcher, Te;
200
- function ke(t, f, m) {
199
+ var Re = R.ReactCurrentDispatcher, Pe;
200
+ function ke(n, f, m) {
201
201
  {
202
- if (Te === void 0)
202
+ if (Pe === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (P) {
206
206
  var g = P.stack.trim().match(/\n( *(at )?)/);
207
- Te = g && g[1] || "";
207
+ Pe = g && g[1] || "";
208
208
  }
209
209
  return `
210
- ` + Te + t;
210
+ ` + Pe + n;
211
211
  }
212
212
  }
213
- var Oe = !1, ve;
213
+ var Se = !1, ve;
214
214
  {
215
- var Wt = typeof WeakMap == "function" ? WeakMap : Map;
216
- ve = new Wt();
215
+ var Vt = typeof WeakMap == "function" ? WeakMap : Map;
216
+ ve = new Vt();
217
217
  }
218
- function at(t, f) {
219
- if (!t || Oe)
218
+ function rt(n, f) {
219
+ if (!n || Se)
220
220
  return "";
221
221
  {
222
- var m = ve.get(t);
222
+ var m = ve.get(n);
223
223
  if (m !== void 0)
224
224
  return m;
225
225
  }
226
226
  var g;
227
- Oe = !0;
227
+ Se = !0;
228
228
  var P = Error.prepareStackTrace;
229
229
  Error.prepareStackTrace = void 0;
230
- var $;
231
- $ = Pe.current, Pe.current = null, At();
230
+ var T;
231
+ T = Re.current, Re.current = null, At();
232
232
  try {
233
233
  if (f) {
234
- var R = function() {
234
+ var E = function() {
235
235
  throw Error();
236
236
  };
237
- if (Object.defineProperty(R.prototype, "props", {
237
+ if (Object.defineProperty(E.prototype, "props", {
238
238
  set: function() {
239
239
  throw Error();
240
240
  }
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
- Reflect.construct(R, []);
244
- } catch (Z) {
245
- g = Z;
243
+ Reflect.construct(E, []);
244
+ } catch (G) {
245
+ g = G;
246
246
  }
247
- Reflect.construct(t, [], R);
247
+ Reflect.construct(n, [], E);
248
248
  } else {
249
249
  try {
250
- R.call();
251
- } catch (Z) {
252
- g = Z;
250
+ E.call();
251
+ } catch (G) {
252
+ g = G;
253
253
  }
254
- t.call(R.prototype);
254
+ n.call(E.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (Z) {
260
- g = Z;
259
+ } catch (G) {
260
+ g = G;
261
261
  }
262
- t();
262
+ n();
263
263
  }
264
- } catch (Z) {
265
- if (Z && g && typeof Z.stack == "string") {
266
- for (var C = Z.stack.split(`
267
- `), K = g.stack.split(`
268
- `), D = C.length - 1, L = K.length - 1; D >= 1 && L >= 0 && C[D] !== K[L]; )
269
- L--;
270
- for (; D >= 1 && L >= 0; D--, L--)
271
- if (C[D] !== K[L]) {
272
- if (D !== 1 || L !== 1)
264
+ } catch (G) {
265
+ if (G && g && typeof G.stack == "string") {
266
+ for (var w = G.stack.split(`
267
+ `), J = g.stack.split(`
268
+ `), $ = w.length - 1, I = J.length - 1; $ >= 1 && I >= 0 && w[$] !== J[I]; )
269
+ I--;
270
+ for (; $ >= 1 && I >= 0; $--, I--)
271
+ if (w[$] !== J[I]) {
272
+ if ($ !== 1 || I !== 1)
273
273
  do
274
- if (D--, L--, L < 0 || C[D] !== K[L]) {
274
+ if ($--, I--, I < 0 || w[$] !== J[I]) {
275
275
  var q = `
276
- ` + C[D].replace(" at new ", " at ");
277
- return t.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", t.displayName)), typeof t == "function" && ve.set(t, q), q;
276
+ ` + w[$].replace(" at new ", " at ");
277
+ return n.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", n.displayName)), typeof n == "function" && ve.set(n, q), q;
278
278
  }
279
- while (D >= 1 && L >= 0);
279
+ while ($ >= 1 && I >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Oe = !1, Pe.current = $, Vt(), Error.prepareStackTrace = P;
284
+ Se = !1, Re.current = T, Ut(), Error.prepareStackTrace = P;
285
285
  }
286
- var re = t ? t.displayName || t.name : "", vt = re ? ke(re) : "";
287
- return typeof t == "function" && ve.set(t, vt), vt;
286
+ var ne = n ? n.displayName || n.name : "", ee = ne ? ke(ne) : "";
287
+ return typeof n == "function" && ve.set(n, ee), ee;
288
288
  }
289
- function Bt(t, f, m) {
290
- return at(t, !1);
289
+ function Wt(n, f, m) {
290
+ return rt(n, !1);
291
291
  }
292
- function Mt(t) {
293
- var f = t.prototype;
292
+ function Bt(n) {
293
+ var f = n.prototype;
294
294
  return !!(f && f.isReactComponent);
295
295
  }
296
- function _e(t, f, m) {
297
- if (t == null)
296
+ function _e(n, f, m) {
297
+ if (n == null)
298
298
  return "";
299
- if (typeof t == "function")
300
- return at(t, Mt(t));
301
- if (typeof t == "string")
302
- return ke(t);
303
- switch (t) {
299
+ if (typeof n == "function")
300
+ return rt(n, Bt(n));
301
+ if (typeof n == "string")
302
+ return ke(n);
303
+ switch (n) {
304
304
  case u:
305
305
  return ke("Suspense");
306
306
  case d:
307
307
  return ke("SuspenseList");
308
308
  }
309
- if (typeof t == "object")
310
- switch (t.$$typeof) {
309
+ if (typeof n == "object")
310
+ switch (n.$$typeof) {
311
311
  case p:
312
- return Bt(t.render);
313
- case k:
314
- return _e(t.type, f, m);
315
- case v: {
316
- var g = t, P = g._payload, $ = g._init;
312
+ return Wt(n.render);
313
+ case h:
314
+ return _e(n.type, f, m);
315
+ case k: {
316
+ var g = n, P = g._payload, T = g._init;
317
317
  try {
318
- return _e($(P), f, m);
318
+ return _e(T(P), f, m);
319
319
  } catch {
320
320
  }
321
321
  }
322
322
  }
323
323
  return "";
324
324
  }
325
- var be = Object.prototype.hasOwnProperty, lt = {}, it = y.ReactDebugCurrentFrame;
326
- function ge(t) {
327
- if (t) {
328
- var f = t._owner, m = _e(t.type, t._source, f ? f.type : null);
329
- it.setExtraStackFrame(m);
325
+ var oe = Object.prototype.hasOwnProperty, at = {}, st = R.ReactDebugCurrentFrame;
326
+ function xe(n) {
327
+ if (n) {
328
+ var f = n._owner, m = _e(n.type, n._source, f ? f.type : null);
329
+ st.setExtraStackFrame(m);
330
330
  } else
331
- it.setExtraStackFrame(null);
331
+ st.setExtraStackFrame(null);
332
332
  }
333
- function Yt(t, f, m, g, P) {
333
+ function Mt(n, f, m, g, P) {
334
334
  {
335
- var $ = Function.call.bind(be);
336
- for (var R in t)
337
- if ($(t, R)) {
338
- var C = void 0;
335
+ var T = Function.call.bind(oe);
336
+ for (var E in n)
337
+ if (T(n, E)) {
338
+ var w = void 0;
339
339
  try {
340
- if (typeof t[R] != "function") {
341
- var K = Error((g || "React class") + ": " + m + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
- throw K.name = "Invariant Violation", K;
340
+ if (typeof n[E] != "function") {
341
+ var J = Error((g || "React class") + ": " + m + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ throw J.name = "Invariant Violation", J;
343
343
  }
344
- C = t[R](f, R, g, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
- } catch (D) {
346
- C = D;
344
+ w = n[E](f, E, g, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
345
+ } catch ($) {
346
+ w = $;
347
347
  }
348
- C && !(C instanceof Error) && (ge(P), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", m, R, typeof C), ge(null)), C instanceof Error && !(C.message in lt) && (lt[C.message] = !0, ge(P), E("Failed %s type: %s", m, C.message), ge(null));
348
+ w && !(w instanceof Error) && (xe(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", m, E, typeof w), xe(null)), w instanceof Error && !(w.message in at) && (at[w.message] = !0, xe(P), _("Failed %s type: %s", m, w.message), xe(null));
349
349
  }
350
350
  }
351
351
  }
352
- var Kt = Array.isArray;
353
- function $e(t) {
354
- return Kt(t);
352
+ var Yt = Array.isArray;
353
+ function Te(n) {
354
+ return Yt(n);
355
355
  }
356
- function Jt(t) {
356
+ function Kt(n) {
357
357
  {
358
- var f = typeof Symbol == "function" && Symbol.toStringTag, m = f && t[Symbol.toStringTag] || t.constructor.name || "Object";
358
+ var f = typeof Symbol == "function" && Symbol.toStringTag, m = f && n[Symbol.toStringTag] || n.constructor.name || "Object";
359
359
  return m;
360
360
  }
361
361
  }
362
- function zt(t) {
362
+ function Jt(n) {
363
363
  try {
364
- return st(t), !1;
364
+ return lt(n), !1;
365
365
  } catch {
366
366
  return !0;
367
367
  }
368
368
  }
369
- function st(t) {
370
- return "" + t;
369
+ function lt(n) {
370
+ return "" + n;
371
371
  }
372
- function ot(t) {
373
- if (zt(t))
374
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jt(t)), st(t);
372
+ function it(n) {
373
+ if (Jt(n))
374
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Kt(n)), lt(n);
375
375
  }
376
- var ce = y.ReactCurrentOwner, Gt = {
376
+ var ce = R.ReactCurrentOwner, zt = {
377
377
  key: !0,
378
378
  ref: !0,
379
379
  __self: !0,
380
380
  __source: !0
381
- }, ct, ut, je;
382
- je = {};
383
- function qt(t) {
384
- if (be.call(t, "ref")) {
385
- var f = Object.getOwnPropertyDescriptor(t, "ref").get;
381
+ }, ot, ct, Oe;
382
+ Oe = {};
383
+ function Gt(n) {
384
+ if (oe.call(n, "ref")) {
385
+ var f = Object.getOwnPropertyDescriptor(n, "ref").get;
386
386
  if (f && f.isReactWarning)
387
387
  return !1;
388
388
  }
389
- return t.ref !== void 0;
389
+ return n.ref !== void 0;
390
390
  }
391
- function Ht(t) {
392
- if (be.call(t, "key")) {
393
- var f = Object.getOwnPropertyDescriptor(t, "key").get;
391
+ function qt(n) {
392
+ if (oe.call(n, "key")) {
393
+ var f = Object.getOwnPropertyDescriptor(n, "key").get;
394
394
  if (f && f.isReactWarning)
395
395
  return !1;
396
396
  }
397
- return t.key !== void 0;
397
+ return n.key !== void 0;
398
398
  }
399
- function Xt(t, f) {
400
- if (typeof t.ref == "string" && ce.current && f && ce.current.stateNode !== f) {
401
- var m = U(ce.current.type);
402
- je[m] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(ce.current.type), t.ref), je[m] = !0);
399
+ function Xt(n, f) {
400
+ if (typeof n.ref == "string" && ce.current && f && ce.current.stateNode !== f) {
401
+ var m = F(ce.current.type);
402
+ Oe[m] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(ce.current.type), n.ref), Oe[m] = !0);
403
403
  }
404
404
  }
405
- function Zt(t, f) {
405
+ function Ht(n, f) {
406
406
  {
407
407
  var m = function() {
408
- ct || (ct = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
408
+ ot || (ot = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
409
409
  };
410
- m.isReactWarning = !0, Object.defineProperty(t, "key", {
410
+ m.isReactWarning = !0, Object.defineProperty(n, "key", {
411
411
  get: m,
412
412
  configurable: !0
413
413
  });
414
414
  }
415
415
  }
416
- function Qt(t, f) {
416
+ function Zt(n, f) {
417
417
  {
418
418
  var m = function() {
419
- ut || (ut = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
419
+ ct || (ct = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", f));
420
420
  };
421
- m.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
+ m.isReactWarning = !0, Object.defineProperty(n, "ref", {
422
422
  get: m,
423
423
  configurable: !0
424
424
  });
425
425
  }
426
426
  }
427
- var en = function(t, f, m, g, P, $, R) {
428
- var C = {
427
+ var Qt = function(n, f, m, g, P, T, E) {
428
+ var w = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
- $$typeof: n,
430
+ $$typeof: r,
431
431
  // Built-in properties that belong on the element
432
- type: t,
432
+ type: n,
433
433
  key: f,
434
434
  ref: m,
435
- props: R,
435
+ props: E,
436
436
  // Record the component responsible for creating this element.
437
- _owner: $
437
+ _owner: T
438
438
  };
439
- return C._store = {}, Object.defineProperty(C._store, "validated", {
439
+ return w._store = {}, Object.defineProperty(w._store, "validated", {
440
440
  configurable: !1,
441
441
  enumerable: !1,
442
442
  writable: !0,
443
443
  value: !1
444
- }), Object.defineProperty(C, "_self", {
444
+ }), Object.defineProperty(w, "_self", {
445
445
  configurable: !1,
446
446
  enumerable: !1,
447
447
  writable: !1,
448
448
  value: g
449
- }), Object.defineProperty(C, "_source", {
449
+ }), Object.defineProperty(w, "_source", {
450
450
  configurable: !1,
451
451
  enumerable: !1,
452
452
  writable: !1,
453
453
  value: P
454
- }), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
454
+ }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
455
455
  };
456
- function tn(t, f, m, g, P) {
456
+ function en(n, f, m, g, P) {
457
457
  {
458
- var $, R = {}, C = null, K = null;
459
- m !== void 0 && (ot(m), C = "" + m), Ht(f) && (ot(f.key), C = "" + f.key), qt(f) && (K = f.ref, Xt(f, P));
460
- for ($ in f)
461
- be.call(f, $) && !Gt.hasOwnProperty($) && (R[$] = f[$]);
462
- if (t && t.defaultProps) {
463
- var D = t.defaultProps;
464
- for ($ in D)
465
- R[$] === void 0 && (R[$] = D[$]);
458
+ var T, E = {}, w = null, J = null;
459
+ m !== void 0 && (it(m), w = "" + m), qt(f) && (it(f.key), w = "" + f.key), Gt(f) && (J = f.ref, Xt(f, P));
460
+ for (T in f)
461
+ oe.call(f, T) && !zt.hasOwnProperty(T) && (E[T] = f[T]);
462
+ if (n && n.defaultProps) {
463
+ var $ = n.defaultProps;
464
+ for (T in $)
465
+ E[T] === void 0 && (E[T] = $[T]);
466
466
  }
467
- if (C || K) {
468
- var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
469
- C && Zt(R, L), K && Qt(R, L);
467
+ if (w || J) {
468
+ var I = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
469
+ w && Ht(E, I), J && Zt(E, I);
470
470
  }
471
- return en(t, C, K, P, g, ce.current, R);
471
+ return Qt(n, w, J, P, g, ce.current, E);
472
472
  }
473
473
  }
474
- var De = y.ReactCurrentOwner, pt = y.ReactDebugCurrentFrame;
475
- function ne(t) {
476
- if (t) {
477
- var f = t._owner, m = _e(t.type, t._source, f ? f.type : null);
478
- pt.setExtraStackFrame(m);
474
+ var $e = R.ReactCurrentOwner, ut = R.ReactDebugCurrentFrame;
475
+ function te(n) {
476
+ if (n) {
477
+ var f = n._owner, m = _e(n.type, n._source, f ? f.type : null);
478
+ ut.setExtraStackFrame(m);
479
479
  } else
480
- pt.setExtraStackFrame(null);
480
+ ut.setExtraStackFrame(null);
481
481
  }
482
- var Ie;
483
- Ie = !1;
484
- function Le(t) {
485
- return typeof t == "object" && t !== null && t.$$typeof === n;
482
+ var De;
483
+ De = !1;
484
+ function Fe(n) {
485
+ return typeof n == "object" && n !== null && n.$$typeof === r;
486
486
  }
487
- function ft() {
487
+ function pt() {
488
488
  {
489
- if (De.current) {
490
- var t = U(De.current.type);
491
- if (t)
489
+ if ($e.current) {
490
+ var n = F($e.current.type);
491
+ if (n)
492
492
  return `
493
493
 
494
- Check the render method of \`` + t + "`.";
494
+ Check the render method of \`` + n + "`.";
495
495
  }
496
496
  return "";
497
497
  }
498
498
  }
499
- function nn(t) {
499
+ function tn(n) {
500
500
  {
501
- if (t !== void 0) {
502
- var f = t.fileName.replace(/^.*[\\\/]/, ""), m = t.lineNumber;
501
+ if (n !== void 0) {
502
+ var f = n.fileName.replace(/^.*[\\\/]/, ""), m = n.lineNumber;
503
503
  return `
504
504
 
505
505
  Check your code at ` + f + ":" + m + ".";
@@ -507,12 +507,12 @@ Check your code at ` + f + ":" + m + ".";
507
507
  return "";
508
508
  }
509
509
  }
510
- var dt = {};
511
- function rn(t) {
510
+ var ft = {};
511
+ function nn(n) {
512
512
  {
513
- var f = ft();
513
+ var f = pt();
514
514
  if (!f) {
515
- var m = typeof t == "string" ? t : t.displayName || t.name;
515
+ var m = typeof n == "string" ? n : n.displayName || n.name;
516
516
  m && (f = `
517
517
 
518
518
  Check the top-level render call using <` + m + ">.");
@@ -520,41 +520,41 @@ Check the top-level render call using <` + m + ">.");
520
520
  return f;
521
521
  }
522
522
  }
523
- function mt(t, f) {
523
+ function dt(n, f) {
524
524
  {
525
- if (!t._store || t._store.validated || t.key != null)
525
+ if (!n._store || n._store.validated || n.key != null)
526
526
  return;
527
- t._store.validated = !0;
528
- var m = rn(f);
529
- if (dt[m])
527
+ n._store.validated = !0;
528
+ var m = nn(f);
529
+ if (ft[m])
530
530
  return;
531
- dt[m] = !0;
531
+ ft[m] = !0;
532
532
  var g = "";
533
- t && t._owner && t._owner !== De.current && (g = " It was passed a child from " + U(t._owner.type) + "."), ne(t), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, g), ne(null);
533
+ n && n._owner && n._owner !== $e.current && (g = " It was passed a child from " + F(n._owner.type) + "."), te(n), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, g), te(null);
534
534
  }
535
535
  }
536
- function ht(t, f) {
536
+ function mt(n, f) {
537
537
  {
538
- if (typeof t != "object")
538
+ if (typeof n != "object")
539
539
  return;
540
- if ($e(t))
541
- for (var m = 0; m < t.length; m++) {
542
- var g = t[m];
543
- Le(g) && mt(g, f);
540
+ if (Te(n))
541
+ for (var m = 0; m < n.length; m++) {
542
+ var g = n[m];
543
+ Fe(g) && dt(g, f);
544
544
  }
545
- else if (Le(t))
546
- t._store && (t._store.validated = !0);
547
- else if (t) {
548
- var P = j(t);
549
- if (typeof P == "function" && P !== t.entries)
550
- for (var $ = P.call(t), R; !(R = $.next()).done; )
551
- Le(R.value) && mt(R.value, f);
545
+ else if (Fe(n))
546
+ n._store && (n._store.validated = !0);
547
+ else if (n) {
548
+ var P = O(n);
549
+ if (typeof P == "function" && P !== n.entries)
550
+ for (var T = P.call(n), E; !(E = T.next()).done; )
551
+ Fe(E.value) && dt(E.value, f);
552
552
  }
553
553
  }
554
554
  }
555
- function an(t) {
555
+ function rn(n) {
556
556
  {
557
- var f = t.type;
557
+ var f = n.type;
558
558
  if (f == null || typeof f == "string")
559
559
  return;
560
560
  var m;
@@ -562,106 +562,121 @@ Check the top-level render call using <` + m + ">.");
562
562
  m = f.propTypes;
563
563
  else if (typeof f == "object" && (f.$$typeof === p || // Note: Memo only checks outer props here.
564
564
  // Inner props are checked in the reconciler.
565
- f.$$typeof === k))
565
+ f.$$typeof === h))
566
566
  m = f.propTypes;
567
567
  else
568
568
  return;
569
569
  if (m) {
570
- var g = U(f);
571
- Yt(m, t.props, "prop", g, t);
572
- } else if (f.PropTypes !== void 0 && !Ie) {
573
- Ie = !0;
574
- var P = U(f);
575
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
570
+ var g = F(f);
571
+ Mt(m, n.props, "prop", g, n);
572
+ } else if (f.PropTypes !== void 0 && !De) {
573
+ De = !0;
574
+ var P = F(f);
575
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
576
576
  }
577
- typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
+ typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
578
  }
579
579
  }
580
- function ln(t) {
580
+ function an(n) {
581
581
  {
582
- for (var f = Object.keys(t.props), m = 0; m < f.length; m++) {
582
+ for (var f = Object.keys(n.props), m = 0; m < f.length; m++) {
583
583
  var g = f[m];
584
584
  if (g !== "children" && g !== "key") {
585
- ne(t), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), ne(null);
585
+ te(n), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), te(null);
586
586
  break;
587
587
  }
588
588
  }
589
- t.ref !== null && (ne(t), E("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
589
+ n.ref !== null && (te(n), _("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
590
590
  }
591
591
  }
592
- function kt(t, f, m, g, P, $) {
592
+ var ht = {};
593
+ function kt(n, f, m, g, P, T) {
593
594
  {
594
- var R = z(t);
595
- if (!R) {
596
- var C = "";
597
- (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
598
- var K = nn(P);
599
- K ? C += K : C += ft();
600
- var D;
601
- t === null ? D = "null" : $e(t) ? D = "array" : t !== void 0 && t.$$typeof === n ? (D = "<" + (U(t.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : D = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, C);
595
+ var E = Y(n);
596
+ if (!E) {
597
+ var w = "";
598
+ (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
599
+ var J = tn(P);
600
+ J ? w += J : w += pt();
601
+ var $;
602
+ n === null ? $ = "null" : Te(n) ? $ = "array" : n !== void 0 && n.$$typeof === r ? ($ = "<" + (F(n.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, w);
602
603
  }
603
- var L = tn(t, f, m, P, $);
604
- if (L == null)
605
- return L;
606
- if (R) {
604
+ var I = en(n, f, m, P, T);
605
+ if (I == null)
606
+ return I;
607
+ if (E) {
607
608
  var q = f.children;
608
609
  if (q !== void 0)
609
610
  if (g)
610
- if ($e(q)) {
611
- for (var re = 0; re < q.length; re++)
612
- ht(q[re], t);
611
+ if (Te(q)) {
612
+ for (var ne = 0; ne < q.length; ne++)
613
+ mt(q[ne], n);
613
614
  Object.freeze && Object.freeze(q);
614
615
  } else
615
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
616
617
  else
617
- ht(q, t);
618
+ mt(q, n);
618
619
  }
619
- return t === a ? ln(L) : an(L), L;
620
+ if (oe.call(f, "key")) {
621
+ var ee = F(n), G = Object.keys(f).filter(function(pn) {
622
+ return pn !== "key";
623
+ }), Ie = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!ht[ee + Ie]) {
625
+ var un = G.length > 0 ? "{" + G.join(": ..., ") + ": ...}" : "{}";
626
+ _(`A props object containing a "key" prop is being spread into JSX:
627
+ let props = %s;
628
+ <%s {...props} />
629
+ React keys must be passed directly to JSX without using spread:
630
+ let props = %s;
631
+ <%s key={someKey} {...props} />`, Ie, ee, un, ee), ht[ee + Ie] = !0;
632
+ }
633
+ }
634
+ return n === i ? an(I) : rn(I), I;
620
635
  }
621
636
  }
622
- function sn(t, f, m) {
623
- return kt(t, f, m, !0);
637
+ function sn(n, f, m) {
638
+ return kt(n, f, m, !0);
624
639
  }
625
- function on(t, f, m) {
626
- return kt(t, f, m, !1);
640
+ function ln(n, f, m) {
641
+ return kt(n, f, m, !1);
627
642
  }
628
- var cn = on, un = sn;
629
- pe.Fragment = a, pe.jsx = cn, pe.jsxs = un;
643
+ var on = ln, cn = sn;
644
+ pe.Fragment = i, pe.jsx = on, pe.jsxs = cn;
630
645
  }()), pe;
631
646
  }
632
- process.env.NODE_ENV === "production" ? We.exports = hn() : We.exports = kn();
633
- var ze = We.exports;
634
- const X = ze.Fragment, i = ze.jsx, h = ze.jsxs, Fe = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', vn = "https://punkt-cdn.oslo.kommune.no/11.12/icons/";
635
- function _n(e) {
636
- return new Promise((n) => setTimeout(n, e));
647
+ process.env.NODE_ENV === "production" ? We.exports = kn() : We.exports = vn();
648
+ var t = We.exports;
649
+ const Le = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', _n = "https://punkt-cdn.oslo.kommune.no/11.12/icons/";
650
+ function xn(e) {
651
+ return new Promise((r) => setTimeout(r, e));
637
652
  }
638
- const Ue = {}, bn = async (e, n) => {
639
- let r = 0;
640
- for (; Ue[n + e + ".svg"] === "fetching" && (r++, !(r > 50)); )
641
- await _n(50);
642
- return localStorage.getItem(n + e + ".svg") ? Promise.resolve(localStorage.getItem(n + e + ".svg")) : typeof window.fetch == "function" ? (Ue[n + e + ".svg"] = "fetching", Promise.resolve(
643
- fetch(n + e + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + n + e + ".svg"), Fe)).then((a) => (a !== Fe && localStorage.setItem(n + e + ".svg", a), Ue[n + e + ".svg"] = "fetched", a))
644
- )) : Promise.resolve(Fe);
645
- }, gn = {
646
- fetchIcon: async (e, n) => bn(e, n || vn)
647
- }, Nn = pn(gn), w = ({ name: e, path: n, className: r = "", ...a }) => {
648
- const [l, s] = le(null), c = fn(Nn);
653
+ const Ae = {}, gn = async (e, r) => {
654
+ let a = 0;
655
+ for (; Ae[r + e + ".svg"] === "fetching" && (a++, !(a > 50)); )
656
+ await xn(50);
657
+ return localStorage.getItem(r + e + ".svg") ? Promise.resolve(localStorage.getItem(r + e + ".svg")) : typeof window.fetch == "function" ? (Ae[r + e + ".svg"] = "fetching", Promise.resolve(
658
+ fetch(r + e + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + r + e + ".svg"), Le)).then((i) => (i !== Le && localStorage.setItem(r + e + ".svg", i), Ae[r + e + ".svg"] = "fetched", i))
659
+ )) : Promise.resolve(Le);
660
+ }, bn = {
661
+ fetchIcon: async (e, r) => gn(e, r || _n)
662
+ }, Nn = fn(bn), N = ({ name: e, path: r, className: a = "", ...i }) => {
663
+ const [l, s] = se(null), c = dn(Nn);
649
664
  return Je(() => {
650
- e ? c.fetchIcon(e, n).then(s) : s(null);
651
- }, [e, n]), l ? /* @__PURE__ */ i(
665
+ e ? c.fetchIcon(e, r).then(s) : s(null);
666
+ }, [e, r]), l ? /* @__PURE__ */ t.jsx(
652
667
  "span",
653
668
  {
654
- className: `pkt-icon ${r}`,
669
+ className: `pkt-icon ${a}`,
655
670
  dangerouslySetInnerHTML: { __html: l },
656
- ...a
671
+ ...i
657
672
  }
658
673
  ) : null;
659
- }, yn = M(
674
+ }, jn = V(
660
675
  ({
661
676
  children: e,
662
- className: n,
663
- skin: r = "info",
664
- closeAlert: a = !1,
677
+ className: r,
678
+ skin: a = "info",
679
+ closeAlert: i = !1,
665
680
  onClose: l,
666
681
  title: s,
667
682
  date: c,
@@ -669,46 +684,46 @@ const Ue = {}, bn = async (e, n) => {
669
684
  compact: p = !1,
670
685
  ...u
671
686
  }, d) => {
672
- const k = [n, "pkt-alert", r && `pkt-alert--${r}`, p && "pkt-alert--compact"].filter(Boolean).join(" "), [v, S] = le(!0), x = () => {
673
- S(!1), l && l();
687
+ const h = [r, "pkt-alert", a && `pkt-alert--${a}`, p && "pkt-alert--compact"].filter(Boolean).join(" "), [k, C] = se(!0), j = () => {
688
+ C(!1), l && l();
674
689
  };
675
- return v ? /* @__PURE__ */ h("div", { ...u, className: k, "aria-live": o, ref: d, children: [
676
- /* @__PURE__ */ i(w, { className: "pkt-alert__icon", name: r === "info" ? "alert-information" : `alert-${r}` }),
677
- a && /* @__PURE__ */ i("div", { className: "pkt-alert__close", children: /* @__PURE__ */ i(
690
+ return k ? /* @__PURE__ */ t.jsxs("div", { ...u, className: h, "aria-live": o, ref: d, children: [
691
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-alert__icon", name: a === "info" ? "alert-information" : `alert-${a}` }),
692
+ i && /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t.jsx(
678
693
  "button",
679
694
  {
680
695
  type: "button",
681
696
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
682
697
  tabIndex: 0,
683
698
  "aria-label": "close",
684
- onClick: x,
685
- children: /* @__PURE__ */ i(w, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
699
+ onClick: j,
700
+ children: /* @__PURE__ */ t.jsx(N, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
686
701
  }
687
702
  ) }),
688
- s && /* @__PURE__ */ i("div", { className: "pkt-alert__title", children: s }),
689
- /* @__PURE__ */ i("div", { className: "pkt-alert__text", children: e }),
690
- c && /* @__PURE__ */ h("div", { className: "pkt-alert__date", children: [
703
+ s && /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__title", children: s }),
704
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__text", children: e }),
705
+ c && /* @__PURE__ */ t.jsxs("div", { className: "pkt-alert__date", children: [
691
706
  "Sist oppdatert: ",
692
707
  c
693
708
  ] })
694
709
  ] }) : null;
695
710
  }
696
- ), _r = M(
697
- ({ href: e, text: n, onClick: r, className: a, ...l }, s) => {
711
+ ), xr = V(
712
+ ({ href: e, text: r, onClick: a, className: i, ...l }, s) => {
698
713
  const c = [
699
- a,
714
+ i,
700
715
  "pkt-back-link"
701
- ].filter(Boolean).join(" ");
702
- return /* @__PURE__ */ i("nav", { ref: s, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ h("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: (p) => {
703
- r && r(p);
704
- }, ...l, children: [
705
- /* @__PURE__ */ i(w, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
706
- /* @__PURE__ */ i("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
716
+ ].filter(Boolean).join(" "), o = (p) => {
717
+ a && a(p);
718
+ };
719
+ return /* @__PURE__ */ t.jsx("nav", { ref: s, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ t.jsxs("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: o, ...l, children: [
720
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
721
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-back-link__text", children: r || "Forsiden" })
707
722
  ] }) });
708
723
  }
709
724
  );
710
725
  /**
711
- * @remix-run/router v1.14.0
726
+ * @remix-run/router v1.16.0
712
727
  *
713
728
  * Copyright (c) Remix Software Inc.
714
729
  *
@@ -719,170 +734,154 @@ const Ue = {}, bn = async (e, n) => {
719
734
  */
720
735
  function Be() {
721
736
  return Be = Object.assign ? Object.assign.bind() : function(e) {
722
- for (var n = 1; n < arguments.length; n++) {
723
- var r = arguments[n];
724
- for (var a in r)
725
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
737
+ for (var r = 1; r < arguments.length; r++) {
738
+ var a = arguments[r];
739
+ for (var i in a)
740
+ Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
726
741
  }
727
742
  return e;
728
743
  }, Be.apply(this, arguments);
729
744
  }
730
- var gt;
745
+ var xt;
731
746
  (function(e) {
732
747
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
733
- })(gt || (gt = {}));
734
- function I(e, n) {
748
+ })(xt || (xt = {}));
749
+ function D(e, r) {
735
750
  if (e === !1 || e === null || typeof e > "u")
736
- throw new Error(n);
751
+ throw new Error(r);
737
752
  }
738
- function ie(e, n) {
753
+ function de(e, r) {
739
754
  if (!e) {
740
- typeof console < "u" && console.warn(n);
755
+ typeof console < "u" && console.warn(r);
741
756
  try {
742
- throw new Error(n);
757
+ throw new Error(r);
743
758
  } catch {
744
759
  }
745
760
  }
746
761
  }
747
762
  function Me(e) {
748
763
  let {
749
- pathname: n = "/",
750
- search: r = "",
751
- hash: a = ""
764
+ pathname: r = "/",
765
+ search: a = "",
766
+ hash: i = ""
752
767
  } = e;
753
- return r && r !== "?" && (n += r.charAt(0) === "?" ? r : "?" + r), a && a !== "#" && (n += a.charAt(0) === "#" ? a : "#" + a), n;
768
+ return a && a !== "?" && (r += a.charAt(0) === "?" ? a : "?" + a), i && i !== "#" && (r += i.charAt(0) === "#" ? i : "#" + i), r;
754
769
  }
755
- function xt(e) {
756
- let n = {};
770
+ function yt(e) {
771
+ let r = {};
757
772
  if (e) {
758
- let r = e.indexOf("#");
759
- r >= 0 && (n.hash = e.substr(r), e = e.substr(0, r));
760
- let a = e.indexOf("?");
761
- a >= 0 && (n.search = e.substr(a), e = e.substr(0, a)), e && (n.pathname = e);
773
+ let a = e.indexOf("#");
774
+ a >= 0 && (r.hash = e.substr(a), e = e.substr(0, a));
775
+ let i = e.indexOf("?");
776
+ i >= 0 && (r.search = e.substr(i), e = e.substr(0, i)), e && (r.pathname = e);
762
777
  }
763
- return n;
778
+ return r;
764
779
  }
765
- var Nt;
780
+ var gt;
766
781
  (function(e) {
767
782
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
768
- })(Nt || (Nt = {}));
769
- function yt(e, n) {
783
+ })(gt || (gt = {}));
784
+ function bt(e, r) {
770
785
  typeof e == "string" && (e = {
771
786
  path: e,
772
787
  caseSensitive: !1,
773
788
  end: !0
774
789
  });
775
- let [r, a] = wn(e.path, e.caseSensitive, e.end), l = n.match(r);
790
+ let [a, i] = yn(e.path, e.caseSensitive, e.end), l = r.match(a);
776
791
  if (!l)
777
792
  return null;
778
793
  let s = l[0], c = s.replace(/(.)\/+$/, "$1"), o = l.slice(1);
779
794
  return {
780
- params: a.reduce((u, d, k) => {
795
+ params: i.reduce((u, d, h) => {
781
796
  let {
782
- paramName: v,
783
- isOptional: S
797
+ paramName: k,
798
+ isOptional: C
784
799
  } = d;
785
- if (v === "*") {
786
- let T = o[k] || "";
787
- c = s.slice(0, s.length - T.length).replace(/(.)\/+$/, "$1");
800
+ if (k === "*") {
801
+ let S = o[h] || "";
802
+ c = s.slice(0, s.length - S.length).replace(/(.)\/+$/, "$1");
788
803
  }
789
- const x = o[k];
790
- return S && !x ? u[v] = void 0 : u[v] = En(x || "", v), u;
804
+ const j = o[h];
805
+ return C && !j ? u[k] = void 0 : u[k] = (j || "").replace(/%2F/g, "/"), u;
791
806
  }, {}),
792
807
  pathname: s,
793
808
  pathnameBase: c,
794
809
  pattern: e
795
810
  };
796
811
  }
797
- function wn(e, n, r) {
798
- n === void 0 && (n = !1), r === void 0 && (r = !0), ie(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
799
- let a = [], l = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (c, o, p) => (a.push({
812
+ function yn(e, r, a) {
813
+ r === void 0 && (r = !1), a === void 0 && (a = !0), de(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
814
+ let i = [], l = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (c, o, p) => (i.push({
800
815
  paramName: o,
801
816
  isOptional: p != null
802
817
  }), p ? "/?([^\\/]+)?" : "/([^\\/]+)"));
803
- return e.endsWith("*") ? (a.push({
818
+ return e.endsWith("*") ? (i.push({
804
819
  paramName: "*"
805
- }), l += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? l += "\\/*$" : e !== "" && e !== "/" && (l += "(?:(?=\\/|$))"), [new RegExp(l, n ? void 0 : "i"), a];
806
- }
807
- function En(e, n) {
808
- try {
809
- return decodeURIComponent(e);
810
- } catch (r) {
811
- return ie(!1, 'The value for the URL param "' + n + '" will not be decoded because' + (' the string "' + e + '" is a malformed URL segment. This is probably') + (" due to a bad percent encoding (" + r + ").")), e;
812
- }
820
+ }), l += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? l += "\\/*$" : e !== "" && e !== "/" && (l += "(?:(?=\\/|$))"), [new RegExp(l, r ? void 0 : "i"), i];
813
821
  }
814
- function fe(e, n) {
815
- if (n === "/")
822
+ function re(e, r) {
823
+ if (r === "/")
816
824
  return e;
817
- if (!e.toLowerCase().startsWith(n.toLowerCase()))
825
+ if (!e.toLowerCase().startsWith(r.toLowerCase()))
818
826
  return null;
819
- let r = n.endsWith("/") ? n.length - 1 : n.length, a = e.charAt(r);
820
- return a && a !== "/" ? null : e.slice(r) || "/";
827
+ let a = r.endsWith("/") ? r.length - 1 : r.length, i = e.charAt(a);
828
+ return i && i !== "/" ? null : e.slice(a) || "/";
821
829
  }
822
- function xn(e, n) {
823
- n === void 0 && (n = "/");
830
+ function wn(e, r) {
831
+ r === void 0 && (r = "/");
824
832
  let {
825
- pathname: r,
826
- search: a = "",
833
+ pathname: a,
834
+ search: i = "",
827
835
  hash: l = ""
828
- } = typeof e == "string" ? xt(e) : e;
836
+ } = typeof e == "string" ? yt(e) : e;
829
837
  return {
830
- pathname: r ? r.startsWith("/") ? r : Cn(r, n) : n,
831
- search: Sn(a),
838
+ pathname: a ? a.startsWith("/") ? a : En(a, r) : r,
839
+ search: Rn(i),
832
840
  hash: Pn(l)
833
841
  };
834
842
  }
835
- function Cn(e, n) {
836
- let r = n.replace(/\/+$/, "").split("/");
843
+ function En(e, r) {
844
+ let a = r.replace(/\/+$/, "").split("/");
837
845
  return e.split("/").forEach((l) => {
838
- l === ".." ? r.length > 1 && r.pop() : l !== "." && r.push(l);
839
- }), r.length > 1 ? r.join("/") : "/";
846
+ l === ".." ? a.length > 1 && a.pop() : l !== "." && a.push(l);
847
+ }), a.length > 1 ? a.join("/") : "/";
840
848
  }
841
- function Ae(e, n, r, a) {
842
- return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(a) + "]. Please separate it out to the ") + ("`to." + r + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
849
+ function Ue(e, r, a, i) {
850
+ return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + r + "` field [" + JSON.stringify(i) + "]. Please separate it out to the ") + ("`to." + a + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
843
851
  }
844
- function Rn(e) {
845
- return e.filter((n, r) => r === 0 || n.route.path && n.route.path.length > 0);
852
+ function Cn(e) {
853
+ return e.filter((r, a) => a === 0 || r.route.path && r.route.path.length > 0);
846
854
  }
847
- function Ct(e, n) {
848
- let r = Rn(e);
849
- return n ? r.map((a, l) => l === e.length - 1 ? a.pathname : a.pathnameBase) : r.map((a) => a.pathnameBase);
855
+ function wt(e, r) {
856
+ let a = Cn(e);
857
+ return r ? a.map((i, l) => l === e.length - 1 ? i.pathname : i.pathnameBase) : a.map((i) => i.pathnameBase);
850
858
  }
851
- function Rt(e, n, r, a) {
852
- a === void 0 && (a = !1);
859
+ function Et(e, r, a, i) {
860
+ i === void 0 && (i = !1);
853
861
  let l;
854
- typeof e == "string" ? l = xt(e) : (l = Be({}, e), I(!l.pathname || !l.pathname.includes("?"), Ae("?", "pathname", "search", l)), I(!l.pathname || !l.pathname.includes("#"), Ae("#", "pathname", "hash", l)), I(!l.search || !l.search.includes("#"), Ae("#", "search", "hash", l)));
862
+ typeof e == "string" ? l = yt(e) : (l = Be({}, e), D(!l.pathname || !l.pathname.includes("?"), Ue("?", "pathname", "search", l)), D(!l.pathname || !l.pathname.includes("#"), Ue("#", "pathname", "hash", l)), D(!l.search || !l.search.includes("#"), Ue("#", "search", "hash", l)));
855
863
  let s = e === "" || l.pathname === "", c = s ? "/" : l.pathname, o;
856
864
  if (c == null)
857
- o = r;
858
- else if (a) {
859
- let k = n.length === 0 ? [] : n[n.length - 1].replace(/^\//, "").split("/");
860
- if (c.startsWith("..")) {
861
- let v = c.split("/");
862
- for (; v[0] === ".."; )
863
- v.shift(), k.pop();
864
- l.pathname = v.join("/");
865
+ o = a;
866
+ else {
867
+ let h = r.length - 1;
868
+ if (!i && c.startsWith("..")) {
869
+ let k = c.split("/");
870
+ for (; k[0] === ".."; )
871
+ k.shift(), h -= 1;
872
+ l.pathname = k.join("/");
865
873
  }
866
- o = "/" + k.join("/");
867
- } else {
868
- let k = n.length - 1;
869
- if (c.startsWith("..")) {
870
- let v = c.split("/");
871
- for (; v[0] === ".."; )
872
- v.shift(), k -= 1;
873
- l.pathname = v.join("/");
874
- }
875
- o = k >= 0 ? n[k] : "/";
874
+ o = h >= 0 ? r[h] : "/";
876
875
  }
877
- let p = xn(l, o), u = c && c !== "/" && c.endsWith("/"), d = (s || c === ".") && r.endsWith("/");
876
+ let p = wn(l, o), u = c && c !== "/" && c.endsWith("/"), d = (s || c === ".") && a.endsWith("/");
878
877
  return !p.pathname.endsWith("/") && (u || d) && (p.pathname += "/"), p;
879
878
  }
880
- const Ge = (e) => e.join("/").replace(/\/\/+/g, "/"), Sn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Pn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, St = ["post", "put", "patch", "delete"];
881
- new Set(St);
882
- const Tn = ["get", ...St];
883
- new Set(Tn);
879
+ const ze = (e) => e.join("/").replace(/\/\/+/g, "/"), Rn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Pn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ct = ["post", "put", "patch", "delete"];
880
+ new Set(Ct);
881
+ const Sn = ["get", ...Ct];
882
+ new Set(Sn);
884
883
  /**
885
- * React Router v6.21.0
884
+ * React Router v6.23.0
886
885
  *
887
886
  * Copyright (c) Remix Software Inc.
888
887
  *
@@ -893,159 +892,159 @@ new Set(Tn);
893
892
  */
894
893
  function Ye() {
895
894
  return Ye = Object.assign ? Object.assign.bind() : function(e) {
896
- for (var n = 1; n < arguments.length; n++) {
897
- var r = arguments[n];
898
- for (var a in r)
899
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
895
+ for (var r = 1; r < arguments.length; r++) {
896
+ var a = arguments[r];
897
+ for (var i in a)
898
+ Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
900
899
  }
901
900
  return e;
902
901
  }, Ye.apply(this, arguments);
903
902
  }
904
- const Ce = /* @__PURE__ */ N.createContext(null);
905
- process.env.NODE_ENV !== "production" && (Ce.displayName = "DataRouter");
906
- const Pt = /* @__PURE__ */ N.createContext(null);
907
- process.env.NODE_ENV !== "production" && (Pt.displayName = "DataRouterState");
908
- const On = /* @__PURE__ */ N.createContext(null);
909
- process.env.NODE_ENV !== "production" && (On.displayName = "Await");
910
- const Q = /* @__PURE__ */ N.createContext(null);
911
- process.env.NODE_ENV !== "production" && (Q.displayName = "Navigation");
912
- const qe = /* @__PURE__ */ N.createContext(null);
913
- process.env.NODE_ENV !== "production" && (qe.displayName = "Location");
914
- const se = /* @__PURE__ */ N.createContext({
903
+ const we = /* @__PURE__ */ b.createContext(null);
904
+ process.env.NODE_ENV !== "production" && (we.displayName = "DataRouter");
905
+ const Rt = /* @__PURE__ */ b.createContext(null);
906
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
907
+ const Tn = /* @__PURE__ */ b.createContext(null);
908
+ process.env.NODE_ENV !== "production" && (Tn.displayName = "Await");
909
+ const H = /* @__PURE__ */ b.createContext(null);
910
+ process.env.NODE_ENV !== "production" && (H.displayName = "Navigation");
911
+ const Ge = /* @__PURE__ */ b.createContext(null);
912
+ process.env.NODE_ENV !== "production" && (Ge.displayName = "Location");
913
+ const le = /* @__PURE__ */ b.createContext({
915
914
  outlet: null,
916
915
  matches: [],
917
916
  isDataRoute: !1
918
917
  });
919
- process.env.NODE_ENV !== "production" && (se.displayName = "Route");
920
- const $n = /* @__PURE__ */ N.createContext(null);
921
- process.env.NODE_ENV !== "production" && ($n.displayName = "RouteError");
922
- function jn(e, n) {
918
+ process.env.NODE_ENV !== "production" && (le.displayName = "Route");
919
+ const On = /* @__PURE__ */ b.createContext(null);
920
+ process.env.NODE_ENV !== "production" && (On.displayName = "RouteError");
921
+ function $n(e, r) {
923
922
  let {
924
- relative: r
925
- } = n === void 0 ? {} : n;
926
- He() || (process.env.NODE_ENV !== "production" ? I(
923
+ relative: a
924
+ } = r === void 0 ? {} : r;
925
+ qe() || (process.env.NODE_ENV !== "production" ? D(
927
926
  !1,
928
927
  // TODO: This error is probably because they somehow have 2 versions of the
929
928
  // router loaded. We can help them understand how to avoid that.
930
929
  "useHref() may be used only in the context of a <Router> component."
931
- ) : I(!1));
930
+ ) : D(!1));
932
931
  let {
933
- basename: a,
932
+ basename: i,
934
933
  navigator: l
935
- } = N.useContext(Q), {
934
+ } = b.useContext(H), {
936
935
  hash: s,
937
936
  pathname: c,
938
937
  search: o
939
938
  } = he(e, {
940
- relative: r
939
+ relative: a
941
940
  }), p = c;
942
- return a !== "/" && (p = c === "/" ? a : Ge([a, c])), l.createHref({
941
+ return i !== "/" && (p = c === "/" ? i : ze([i, c])), l.createHref({
943
942
  pathname: p,
944
943
  search: o,
945
944
  hash: s
946
945
  });
947
946
  }
948
- function He() {
949
- return N.useContext(qe) != null;
947
+ function qe() {
948
+ return b.useContext(Ge) != null;
950
949
  }
951
950
  function me() {
952
- return He() || (process.env.NODE_ENV !== "production" ? I(
951
+ return qe() || (process.env.NODE_ENV !== "production" ? D(
953
952
  !1,
954
953
  // TODO: This error is probably because they somehow have 2 versions of the
955
954
  // router loaded. We can help them understand how to avoid that.
956
955
  "useLocation() may be used only in the context of a <Router> component."
957
- ) : I(!1)), N.useContext(qe).location;
956
+ ) : D(!1)), b.useContext(Ge).location;
958
957
  }
959
- const Tt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
960
- function Ot(e) {
961
- N.useContext(Q).static || N.useLayoutEffect(e);
958
+ const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
959
+ function St(e) {
960
+ b.useContext(H).static || b.useLayoutEffect(e);
962
961
  }
963
962
  function Dn() {
964
963
  let {
965
964
  isDataRoute: e
966
- } = N.useContext(se);
967
- return e ? An() : In();
965
+ } = b.useContext(le);
966
+ return e ? Un() : Fn();
968
967
  }
969
- function In() {
970
- He() || (process.env.NODE_ENV !== "production" ? I(
968
+ function Fn() {
969
+ qe() || (process.env.NODE_ENV !== "production" ? D(
971
970
  !1,
972
971
  // TODO: This error is probably because they somehow have 2 versions of the
973
972
  // router loaded. We can help them understand how to avoid that.
974
973
  "useNavigate() may be used only in the context of a <Router> component."
975
- ) : I(!1));
976
- let e = N.useContext(Ce), {
977
- basename: n,
978
- future: r,
979
- navigator: a
980
- } = N.useContext(Q), {
974
+ ) : D(!1));
975
+ let e = b.useContext(we), {
976
+ basename: r,
977
+ future: a,
978
+ navigator: i
979
+ } = b.useContext(H), {
981
980
  matches: l
982
- } = N.useContext(se), {
981
+ } = b.useContext(le), {
983
982
  pathname: s
984
- } = me(), c = JSON.stringify(Ct(l, r.v7_relativeSplatPath)), o = N.useRef(!1);
985
- return Ot(() => {
983
+ } = me(), c = JSON.stringify(wt(l, a.v7_relativeSplatPath)), o = b.useRef(!1);
984
+ return St(() => {
986
985
  o.current = !0;
987
- }), N.useCallback(function(u, d) {
988
- if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ie(o.current, Tt), !o.current)
986
+ }), b.useCallback(function(u, d) {
987
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && de(o.current, Pt), !o.current)
989
988
  return;
990
989
  if (typeof u == "number") {
991
- a.go(u);
990
+ i.go(u);
992
991
  return;
993
992
  }
994
- let k = Rt(u, JSON.parse(c), s, d.relative === "path");
995
- e == null && n !== "/" && (k.pathname = k.pathname === "/" ? n : Ge([n, k.pathname])), (d.replace ? a.replace : a.push)(k, d.state, d);
996
- }, [n, a, c, s, e]);
993
+ let h = Et(u, JSON.parse(c), s, d.relative === "path");
994
+ e == null && r !== "/" && (h.pathname = h.pathname === "/" ? r : ze([r, h.pathname])), (d.replace ? i.replace : i.push)(h, d.state, d);
995
+ }, [r, i, c, s, e]);
997
996
  }
998
- function he(e, n) {
997
+ function he(e, r) {
999
998
  let {
1000
- relative: r
1001
- } = n === void 0 ? {} : n, {
1002
- future: a
1003
- } = N.useContext(Q), {
999
+ relative: a
1000
+ } = r === void 0 ? {} : r, {
1001
+ future: i
1002
+ } = b.useContext(H), {
1004
1003
  matches: l
1005
- } = N.useContext(se), {
1004
+ } = b.useContext(le), {
1006
1005
  pathname: s
1007
- } = me(), c = JSON.stringify(Ct(l, a.v7_relativeSplatPath));
1008
- return N.useMemo(() => Rt(e, JSON.parse(c), s, r === "path"), [e, c, s, r]);
1006
+ } = me(), c = JSON.stringify(wt(l, i.v7_relativeSplatPath));
1007
+ return b.useMemo(() => Et(e, JSON.parse(c), s, a === "path"), [e, c, s, a]);
1009
1008
  }
1010
- var $t = /* @__PURE__ */ function(e) {
1009
+ var Tt = /* @__PURE__ */ function(e) {
1011
1010
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
1012
- }($t || {}), Xe = /* @__PURE__ */ function(e) {
1011
+ }(Tt || {}), Xe = /* @__PURE__ */ function(e) {
1013
1012
  return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
1014
1013
  }(Xe || {});
1015
- function jt(e) {
1014
+ function Ot(e) {
1016
1015
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1017
1016
  }
1017
+ function In(e) {
1018
+ let r = b.useContext(we);
1019
+ return r || (process.env.NODE_ENV !== "production" ? D(!1, Ot(e)) : D(!1)), r;
1020
+ }
1018
1021
  function Ln(e) {
1019
- let n = N.useContext(Ce);
1020
- return n || (process.env.NODE_ENV !== "production" ? I(!1, jt(e)) : I(!1)), n;
1022
+ let r = b.useContext(le);
1023
+ return r || (process.env.NODE_ENV !== "production" ? D(!1, Ot(e)) : D(!1)), r;
1021
1024
  }
1022
- function Fn(e) {
1023
- let n = N.useContext(se);
1024
- return n || (process.env.NODE_ENV !== "production" ? I(!1, jt(e)) : I(!1)), n;
1025
+ function $t(e) {
1026
+ let r = Ln(e), a = r.matches[r.matches.length - 1];
1027
+ return a.route.id || (process.env.NODE_ENV !== "production" ? D(!1, e + ' can only be used on routes that contain a unique "id"') : D(!1)), a.route.id;
1025
1028
  }
1026
- function Dt(e) {
1027
- let n = Fn(e), r = n.matches[n.matches.length - 1];
1028
- return r.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), r.route.id;
1029
+ function An() {
1030
+ return $t(Xe.UseRouteId);
1029
1031
  }
1030
1032
  function Un() {
1031
- return Dt(Xe.UseRouteId);
1032
- }
1033
- function An() {
1034
1033
  let {
1035
1034
  router: e
1036
- } = Ln($t.UseNavigateStable), n = Dt(Xe.UseNavigateStable), r = N.useRef(!1);
1037
- return Ot(() => {
1038
- r.current = !0;
1039
- }), N.useCallback(function(l, s) {
1040
- s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && ie(r.current, Tt), r.current && (typeof l == "number" ? e.navigate(l) : e.navigate(l, Ye({
1041
- fromRouteId: n
1035
+ } = In(Tt.UseNavigateStable), r = $t(Xe.UseNavigateStable), a = b.useRef(!1);
1036
+ return St(() => {
1037
+ a.current = !0;
1038
+ }), b.useCallback(function(l, s) {
1039
+ s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && de(a.current, Pt), a.current && (typeof l == "number" ? e.navigate(l) : e.navigate(l, Ye({
1040
+ fromRouteId: r
1042
1041
  }, s)));
1043
- }, [e, n]);
1042
+ }, [e, r]);
1044
1043
  }
1045
1044
  new Promise(() => {
1046
1045
  });
1047
1046
  /**
1048
- * React Router DOM v6.21.0
1047
+ * React Router DOM v6.23.0
1049
1048
  *
1050
1049
  * Copyright (c) Remix Software Inc.
1051
1050
  *
@@ -1056,106 +1055,111 @@ new Promise(() => {
1056
1055
  */
1057
1056
  function ae() {
1058
1057
  return ae = Object.assign ? Object.assign.bind() : function(e) {
1059
- for (var n = 1; n < arguments.length; n++) {
1060
- var r = arguments[n];
1061
- for (var a in r)
1062
- Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]);
1058
+ for (var r = 1; r < arguments.length; r++) {
1059
+ var a = arguments[r];
1060
+ for (var i in a)
1061
+ Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
1063
1062
  }
1064
1063
  return e;
1065
1064
  }, ae.apply(this, arguments);
1066
1065
  }
1067
- function Ze(e, n) {
1066
+ function He(e, r) {
1068
1067
  if (e == null)
1069
1068
  return {};
1070
- var r = {}, a = Object.keys(e), l, s;
1071
- for (s = 0; s < a.length; s++)
1072
- l = a[s], !(n.indexOf(l) >= 0) && (r[l] = e[l]);
1073
- return r;
1069
+ var a = {}, i = Object.keys(e), l, s;
1070
+ for (s = 0; s < i.length; s++)
1071
+ l = i[s], !(r.indexOf(l) >= 0) && (a[l] = e[l]);
1072
+ return a;
1074
1073
  }
1075
- const ye = "get", we = "application/x-www-form-urlencoded";
1076
- function Re(e) {
1074
+ const be = "get", Ne = "application/x-www-form-urlencoded";
1075
+ function Ee(e) {
1077
1076
  return e != null && typeof e.tagName == "string";
1078
1077
  }
1079
1078
  function Vn(e) {
1080
- return Re(e) && e.tagName.toLowerCase() === "button";
1079
+ return Ee(e) && e.tagName.toLowerCase() === "button";
1081
1080
  }
1082
1081
  function Wn(e) {
1083
- return Re(e) && e.tagName.toLowerCase() === "form";
1082
+ return Ee(e) && e.tagName.toLowerCase() === "form";
1084
1083
  }
1085
1084
  function Bn(e) {
1086
- return Re(e) && e.tagName.toLowerCase() === "input";
1085
+ return Ee(e) && e.tagName.toLowerCase() === "input";
1087
1086
  }
1088
1087
  function Mn(e) {
1089
1088
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1090
1089
  }
1091
- function Yn(e, n) {
1090
+ function Yn(e, r) {
1092
1091
  return e.button === 0 && // Ignore everything but left clicks
1093
- (!n || n === "_self") && // Let browser handle "target=_blank" etc.
1092
+ (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1094
1093
  !Mn(e);
1095
1094
  }
1096
- let Ne = null;
1095
+ let ge = null;
1097
1096
  function Kn() {
1098
- if (Ne === null)
1097
+ if (ge === null)
1099
1098
  try {
1100
1099
  new FormData(
1101
1100
  document.createElement("form"),
1102
1101
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
1103
1102
  0
1104
- ), Ne = !1;
1103
+ ), ge = !1;
1105
1104
  } catch {
1106
- Ne = !0;
1105
+ ge = !0;
1107
1106
  }
1108
- return Ne;
1107
+ return ge;
1109
1108
  }
1110
1109
  const Jn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1111
1110
  function Ve(e) {
1112
- return e != null && !Jn.has(e) ? (process.env.NODE_ENV !== "production" && ie(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + we + '"')), null) : e;
1111
+ return e != null && !Jn.has(e) ? (process.env.NODE_ENV !== "production" && de(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + Ne + '"')), null) : e;
1113
1112
  }
1114
- function zn(e, n) {
1115
- let r, a, l, s, c;
1113
+ function zn(e, r) {
1114
+ let a, i, l, s, c;
1116
1115
  if (Wn(e)) {
1117
1116
  let o = e.getAttribute("action");
1118
- a = o ? fe(o, n) : null, r = e.getAttribute("method") || ye, l = Ve(e.getAttribute("enctype")) || we, s = new FormData(e);
1117
+ i = o ? re(o, r) : null, a = e.getAttribute("method") || be, l = Ve(e.getAttribute("enctype")) || Ne, s = new FormData(e);
1119
1118
  } else if (Vn(e) || Bn(e) && (e.type === "submit" || e.type === "image")) {
1120
1119
  let o = e.form;
1121
1120
  if (o == null)
1122
1121
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1123
1122
  let p = e.getAttribute("formaction") || o.getAttribute("action");
1124
- if (a = p ? fe(p, n) : null, r = e.getAttribute("formmethod") || o.getAttribute("method") || ye, l = Ve(e.getAttribute("formenctype")) || Ve(o.getAttribute("enctype")) || we, s = new FormData(o, e), !Kn()) {
1123
+ if (i = p ? re(p, r) : null, a = e.getAttribute("formmethod") || o.getAttribute("method") || be, l = Ve(e.getAttribute("formenctype")) || Ve(o.getAttribute("enctype")) || Ne, s = new FormData(o, e), !Kn()) {
1125
1124
  let {
1126
1125
  name: u,
1127
1126
  type: d,
1128
- value: k
1127
+ value: h
1129
1128
  } = e;
1130
1129
  if (d === "image") {
1131
- let v = u ? u + "." : "";
1132
- s.append(v + "x", "0"), s.append(v + "y", "0");
1130
+ let k = u ? u + "." : "";
1131
+ s.append(k + "x", "0"), s.append(k + "y", "0");
1133
1132
  } else
1134
- u && s.append(u, k);
1133
+ u && s.append(u, h);
1135
1134
  }
1136
1135
  } else {
1137
- if (Re(e))
1136
+ if (Ee(e))
1138
1137
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1139
- r = ye, a = null, l = we, c = e;
1138
+ a = be, i = null, l = Ne, c = e;
1140
1139
  }
1141
1140
  return s && l === "text/plain" && (c = s, s = void 0), {
1142
- action: a,
1143
- method: r.toLowerCase(),
1141
+ action: i,
1142
+ method: a.toLowerCase(),
1144
1143
  encType: l,
1145
1144
  formData: s,
1146
1145
  body: c
1147
1146
  };
1148
1147
  }
1149
- const Gn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], qn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], Hn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], It = /* @__PURE__ */ N.createContext({
1148
+ const Gn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], qn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], Xn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Hn = "6";
1149
+ try {
1150
+ window.__reactRouterVersion = Hn;
1151
+ } catch {
1152
+ }
1153
+ const Dt = /* @__PURE__ */ b.createContext({
1150
1154
  isTransitioning: !1
1151
1155
  });
1152
- process.env.NODE_ENV !== "production" && (It.displayName = "ViewTransition");
1153
- const Xn = /* @__PURE__ */ N.createContext(/* @__PURE__ */ new Map());
1154
- process.env.NODE_ENV !== "production" && (Xn.displayName = "Fetchers");
1156
+ process.env.NODE_ENV !== "production" && (Dt.displayName = "ViewTransition");
1157
+ const Zn = /* @__PURE__ */ b.createContext(/* @__PURE__ */ new Map());
1158
+ process.env.NODE_ENV !== "production" && (Zn.displayName = "Fetchers");
1155
1159
  process.env.NODE_ENV;
1156
- const Zn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Qn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ee = /* @__PURE__ */ N.forwardRef(function(n, r) {
1160
+ const Qn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", er = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, je = /* @__PURE__ */ b.forwardRef(function(r, a) {
1157
1161
  let {
1158
- onClick: a,
1162
+ onClick: i,
1159
1163
  relative: l,
1160
1164
  reloadDocument: s,
1161
1165
  replace: c,
@@ -1163,44 +1167,44 @@ const Zn = typeof window < "u" && typeof window.document < "u" && typeof window.
1163
1167
  target: p,
1164
1168
  to: u,
1165
1169
  preventScrollReset: d,
1166
- unstable_viewTransition: k
1167
- } = n, v = Ze(n, Gn), {
1168
- basename: S
1169
- } = N.useContext(Q), x, T = !1;
1170
- if (typeof u == "string" && Qn.test(u) && (x = u, Zn))
1170
+ unstable_viewTransition: h
1171
+ } = r, k = He(r, Gn), {
1172
+ basename: C
1173
+ } = b.useContext(H), j, S = !1;
1174
+ if (typeof u == "string" && er.test(u) && (j = u, Qn))
1171
1175
  try {
1172
- let _ = new URL(window.location.href), O = u.startsWith("//") ? new URL(_.protocol + u) : new URL(u), F = fe(O.pathname, S);
1173
- O.origin === _.origin && F != null ? u = F + O.search + O.hash : T = !0;
1176
+ let v = new URL(window.location.href), y = u.startsWith("//") ? new URL(v.protocol + u) : new URL(u), A = re(y.pathname, C);
1177
+ y.origin === v.origin && A != null ? u = A + y.search + y.hash : S = !0;
1174
1178
  } catch {
1175
- process.env.NODE_ENV !== "production" && ie(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1179
+ process.env.NODE_ENV !== "production" && de(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1176
1180
  }
1177
- let j = jn(u, {
1181
+ let O = $n(u, {
1178
1182
  relative: l
1179
- }), y = rr(u, {
1183
+ }), R = ar(u, {
1180
1184
  replace: c,
1181
1185
  state: o,
1182
1186
  target: p,
1183
1187
  preventScrollReset: d,
1184
1188
  relative: l,
1185
- unstable_viewTransition: k
1189
+ unstable_viewTransition: h
1186
1190
  });
1187
- function E(_) {
1188
- a && a(_), _.defaultPrevented || y(_);
1191
+ function _(v) {
1192
+ i && i(v), v.defaultPrevented || R(v);
1189
1193
  }
1190
1194
  return (
1191
1195
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1192
- /* @__PURE__ */ N.createElement("a", ae({}, v, {
1193
- href: x || j,
1194
- onClick: T || s ? a : E,
1195
- ref: r,
1196
+ /* @__PURE__ */ b.createElement("a", ae({}, k, {
1197
+ href: j || O,
1198
+ onClick: S || s ? i : _,
1199
+ ref: a,
1196
1200
  target: p
1197
1201
  }))
1198
1202
  );
1199
1203
  });
1200
- process.env.NODE_ENV !== "production" && (Ee.displayName = "Link");
1201
- const er = /* @__PURE__ */ N.forwardRef(function(n, r) {
1204
+ process.env.NODE_ENV !== "production" && (je.displayName = "Link");
1205
+ const tr = /* @__PURE__ */ b.forwardRef(function(r, a) {
1202
1206
  let {
1203
- "aria-current": a = "page",
1207
+ "aria-current": i = "page",
1204
1208
  caseSensitive: l = !1,
1205
1209
  className: s = "",
1206
1210
  end: c = !1,
@@ -1208,135 +1212,136 @@ const er = /* @__PURE__ */ N.forwardRef(function(n, r) {
1208
1212
  to: p,
1209
1213
  unstable_viewTransition: u,
1210
1214
  children: d
1211
- } = n, k = Ze(n, qn), v = he(p, {
1212
- relative: k.relative
1213
- }), S = me(), x = N.useContext(Pt), {
1214
- navigator: T
1215
- } = N.useContext(Q), j = x != null && // Conditional usage is OK here because the usage of a data router is static
1215
+ } = r, h = He(r, qn), k = he(p, {
1216
+ relative: h.relative
1217
+ }), C = me(), j = b.useContext(Rt), {
1218
+ navigator: S,
1219
+ basename: O
1220
+ } = b.useContext(H), R = j != null && // Conditional usage is OK here because the usage of a data router is static
1216
1221
  // eslint-disable-next-line react-hooks/rules-of-hooks
1217
- cr(v) && u === !0, y = T.encodeLocation ? T.encodeLocation(v).pathname : v.pathname, E = S.pathname, _ = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
1218
- l || (E = E.toLowerCase(), _ = _ ? _.toLowerCase() : null, y = y.toLowerCase());
1219
- const O = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
1220
- let F = E === y || !c && E.startsWith(y) && E.charAt(O) === "/", W = _ != null && (_ === y || !c && _.startsWith(y) && _.charAt(y.length) === "/"), B = {
1221
- isActive: F,
1222
+ ur(k) && u === !0, _ = S.encodeLocation ? S.encodeLocation(k).pathname : k.pathname, v = C.pathname, y = j && j.navigation && j.navigation.location ? j.navigation.location.pathname : null;
1223
+ l || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && O && (y = re(y, O) || y);
1224
+ const A = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length;
1225
+ let U = v === _ || !c && v.startsWith(_) && v.charAt(A) === "/", W = y != null && (y === _ || !c && y.startsWith(_) && y.charAt(_.length) === "/"), B = {
1226
+ isActive: U,
1222
1227
  isPending: W,
1223
- isTransitioning: j
1224
- }, J = F ? a : void 0, V;
1225
- typeof s == "function" ? V = s(B) : V = [s, F ? "active" : null, W ? "pending" : null, j ? "transitioning" : null].filter(Boolean).join(" ");
1228
+ isTransitioning: R
1229
+ }, M = U ? i : void 0, Y;
1230
+ typeof s == "function" ? Y = s(B) : Y = [s, U ? "active" : null, W ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
1226
1231
  let z = typeof o == "function" ? o(B) : o;
1227
- return /* @__PURE__ */ N.createElement(Ee, ae({}, k, {
1228
- "aria-current": J,
1229
- className: V,
1230
- ref: r,
1232
+ return /* @__PURE__ */ b.createElement(je, ae({}, h, {
1233
+ "aria-current": M,
1234
+ className: Y,
1235
+ ref: a,
1231
1236
  style: z,
1232
1237
  to: p,
1233
1238
  unstable_viewTransition: u
1234
1239
  }), typeof d == "function" ? d(B) : d);
1235
1240
  });
1236
- process.env.NODE_ENV !== "production" && (er.displayName = "NavLink");
1237
- const tr = /* @__PURE__ */ N.forwardRef((e, n) => {
1241
+ process.env.NODE_ENV !== "production" && (tr.displayName = "NavLink");
1242
+ const nr = /* @__PURE__ */ b.forwardRef((e, r) => {
1238
1243
  let {
1239
- fetcherKey: r,
1240
- navigate: a,
1244
+ fetcherKey: a,
1245
+ navigate: i,
1241
1246
  reloadDocument: l,
1242
1247
  replace: s,
1243
1248
  state: c,
1244
- method: o = ye,
1249
+ method: o = be,
1245
1250
  action: p,
1246
1251
  onSubmit: u,
1247
1252
  relative: d,
1248
- preventScrollReset: k,
1249
- unstable_viewTransition: v
1250
- } = e, S = Ze(e, Hn), x = sr(), T = or(p, {
1253
+ preventScrollReset: h,
1254
+ unstable_viewTransition: k
1255
+ } = e, C = He(e, Xn), j = or(), S = cr(p, {
1251
1256
  relative: d
1252
- }), j = o.toLowerCase() === "get" ? "get" : "post", y = (E) => {
1253
- if (u && u(E), E.defaultPrevented)
1257
+ }), O = o.toLowerCase() === "get" ? "get" : "post", R = (_) => {
1258
+ if (u && u(_), _.defaultPrevented)
1254
1259
  return;
1255
- E.preventDefault();
1256
- let _ = E.nativeEvent.submitter, O = (_ == null ? void 0 : _.getAttribute("formmethod")) || o;
1257
- x(_ || E.currentTarget, {
1258
- fetcherKey: r,
1259
- method: O,
1260
- navigate: a,
1260
+ _.preventDefault();
1261
+ let v = _.nativeEvent.submitter, y = (v == null ? void 0 : v.getAttribute("formmethod")) || o;
1262
+ j(v || _.currentTarget, {
1263
+ fetcherKey: a,
1264
+ method: y,
1265
+ navigate: i,
1261
1266
  replace: s,
1262
1267
  state: c,
1263
1268
  relative: d,
1264
- preventScrollReset: k,
1265
- unstable_viewTransition: v
1269
+ preventScrollReset: h,
1270
+ unstable_viewTransition: k
1266
1271
  });
1267
1272
  };
1268
- return /* @__PURE__ */ N.createElement("form", ae({
1269
- ref: n,
1270
- method: j,
1271
- action: T,
1272
- onSubmit: l ? u : y
1273
- }, S));
1273
+ return /* @__PURE__ */ b.createElement("form", ae({
1274
+ ref: r,
1275
+ method: O,
1276
+ action: S,
1277
+ onSubmit: l ? u : R
1278
+ }, C));
1274
1279
  });
1275
- process.env.NODE_ENV !== "production" && (tr.displayName = "Form");
1280
+ process.env.NODE_ENV !== "production" && (nr.displayName = "Form");
1276
1281
  process.env.NODE_ENV;
1277
- var xe;
1282
+ var ye;
1278
1283
  (function(e) {
1279
1284
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
1280
- })(xe || (xe = {}));
1281
- var wt;
1285
+ })(ye || (ye = {}));
1286
+ var Nt;
1282
1287
  (function(e) {
1283
1288
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1284
- })(wt || (wt = {}));
1285
- function nr(e) {
1289
+ })(Nt || (Nt = {}));
1290
+ function rr(e) {
1286
1291
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1287
1292
  }
1288
- function Lt(e) {
1289
- let n = N.useContext(Ce);
1290
- return n || (process.env.NODE_ENV !== "production" ? I(!1, nr(e)) : I(!1)), n;
1293
+ function Ft(e) {
1294
+ let r = b.useContext(we);
1295
+ return r || (process.env.NODE_ENV !== "production" ? D(!1, rr(e)) : D(!1)), r;
1291
1296
  }
1292
- function rr(e, n) {
1297
+ function ar(e, r) {
1293
1298
  let {
1294
- target: r,
1295
- replace: a,
1299
+ target: a,
1300
+ replace: i,
1296
1301
  state: l,
1297
1302
  preventScrollReset: s,
1298
1303
  relative: c,
1299
1304
  unstable_viewTransition: o
1300
- } = n === void 0 ? {} : n, p = Dn(), u = me(), d = he(e, {
1305
+ } = r === void 0 ? {} : r, p = Dn(), u = me(), d = he(e, {
1301
1306
  relative: c
1302
1307
  });
1303
- return N.useCallback((k) => {
1304
- if (Yn(k, r)) {
1305
- k.preventDefault();
1306
- let v = a !== void 0 ? a : Me(u) === Me(d);
1308
+ return b.useCallback((h) => {
1309
+ if (Yn(h, a)) {
1310
+ h.preventDefault();
1311
+ let k = i !== void 0 ? i : Me(u) === Me(d);
1307
1312
  p(e, {
1308
- replace: v,
1313
+ replace: k,
1309
1314
  state: l,
1310
1315
  preventScrollReset: s,
1311
1316
  relative: c,
1312
1317
  unstable_viewTransition: o
1313
1318
  });
1314
1319
  }
1315
- }, [u, p, d, a, l, r, e, s, c, o]);
1320
+ }, [u, p, d, i, l, a, e, s, c, o]);
1316
1321
  }
1317
- function ar() {
1322
+ function sr() {
1318
1323
  if (typeof document > "u")
1319
1324
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1320
1325
  }
1321
1326
  let lr = 0, ir = () => "__" + String(++lr) + "__";
1322
- function sr() {
1327
+ function or() {
1323
1328
  let {
1324
1329
  router: e
1325
- } = Lt(xe.UseSubmit), {
1326
- basename: n
1327
- } = N.useContext(Q), r = Un();
1328
- return N.useCallback(function(a, l) {
1329
- l === void 0 && (l = {}), ar();
1330
+ } = Ft(ye.UseSubmit), {
1331
+ basename: r
1332
+ } = b.useContext(H), a = An();
1333
+ return b.useCallback(function(i, l) {
1334
+ l === void 0 && (l = {}), sr();
1330
1335
  let {
1331
1336
  action: s,
1332
1337
  method: c,
1333
1338
  encType: o,
1334
1339
  formData: p,
1335
1340
  body: u
1336
- } = zn(a, n);
1341
+ } = zn(i, r);
1337
1342
  if (l.navigate === !1) {
1338
1343
  let d = l.fetcherKey || ir();
1339
- e.fetch(d, r, l.action || s, {
1344
+ e.fetch(d, a, l.action || s, {
1340
1345
  preventScrollReset: l.preventScrollReset,
1341
1346
  formData: p,
1342
1347
  body: u,
@@ -1353,135 +1358,135 @@ function sr() {
1353
1358
  formEncType: l.encType || o,
1354
1359
  replace: l.replace,
1355
1360
  state: l.state,
1356
- fromRouteId: r,
1361
+ fromRouteId: a,
1357
1362
  unstable_flushSync: l.unstable_flushSync,
1358
1363
  unstable_viewTransition: l.unstable_viewTransition
1359
1364
  });
1360
- }, [e, n, r]);
1365
+ }, [e, r, a]);
1361
1366
  }
1362
- function or(e, n) {
1367
+ function cr(e, r) {
1363
1368
  let {
1364
- relative: r
1365
- } = n === void 0 ? {} : n, {
1366
- basename: a
1367
- } = N.useContext(Q), l = N.useContext(se);
1368
- l || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
1369
+ relative: a
1370
+ } = r === void 0 ? {} : r, {
1371
+ basename: i
1372
+ } = b.useContext(H), l = b.useContext(le);
1373
+ l || (process.env.NODE_ENV !== "production" ? D(!1, "useFormAction must be used inside a RouteContext") : D(!1));
1369
1374
  let [s] = l.matches.slice(-1), c = ae({}, he(e || ".", {
1370
- relative: r
1375
+ relative: a
1371
1376
  })), o = me();
1372
1377
  if (e == null) {
1373
1378
  c.search = o.search;
1374
1379
  let p = new URLSearchParams(c.search);
1375
1380
  p.has("index") && p.get("index") === "" && (p.delete("index"), c.search = p.toString() ? "?" + p.toString() : "");
1376
1381
  }
1377
- return (!e || e === ".") && s.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), a !== "/" && (c.pathname = c.pathname === "/" ? a : Ge([a, c.pathname])), Me(c);
1382
+ return (!e || e === ".") && s.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (c.pathname = c.pathname === "/" ? i : ze([i, c.pathname])), Me(c);
1378
1383
  }
1379
- function cr(e, n) {
1380
- n === void 0 && (n = {});
1381
- let r = N.useContext(It);
1382
- r == null && (process.env.NODE_ENV !== "production" ? I(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
1384
+ function ur(e, r) {
1385
+ r === void 0 && (r = {});
1386
+ let a = b.useContext(Dt);
1387
+ a == null && (process.env.NODE_ENV !== "production" ? D(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : D(!1));
1383
1388
  let {
1384
- basename: a
1385
- } = Lt(xe.useViewTransitionState), l = he(e, {
1386
- relative: n.relative
1389
+ basename: i
1390
+ } = Ft(ye.useViewTransitionState), l = he(e, {
1391
+ relative: r.relative
1387
1392
  });
1388
- if (!r.isTransitioning)
1393
+ if (!a.isTransitioning)
1389
1394
  return !1;
1390
- let s = fe(r.currentLocation.pathname, a) || r.currentLocation.pathname, c = fe(r.nextLocation.pathname, a) || r.nextLocation.pathname;
1391
- return yt(l.pathname, c) != null || yt(l.pathname, s) != null;
1395
+ let s = re(a.currentLocation.pathname, i) || a.currentLocation.pathname, c = re(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1396
+ return bt(l.pathname, c) != null || bt(l.pathname, s) != null;
1392
1397
  }
1393
- const br = M(
1394
- ({ breadcrumbs: e, navigationType: n, className: r, ...a }, l) => {
1398
+ const gr = V(
1399
+ ({ breadcrumbs: e, navigationType: r, className: a, ...i }, l) => {
1395
1400
  const s = e.slice(0, 4), c = s[s.length - 2], o = [
1396
- r,
1401
+ a,
1397
1402
  "pkt-breadcrumbs"
1398
1403
  ].filter(Boolean).join(" ");
1399
- return /* @__PURE__ */ h("nav", { ref: l, "aria-label": "brødsmulemeny", className: o, children: [
1400
- /* @__PURE__ */ i("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((p, u) => /* @__PURE__ */ i(
1404
+ return /* @__PURE__ */ t.jsxs("nav", { ref: l, "aria-label": "brødsmulemeny", className: o, children: [
1405
+ /* @__PURE__ */ t.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((p, u) => /* @__PURE__ */ t.jsx(
1401
1406
  "li",
1402
1407
  {
1403
1408
  className: "pkt-breadcrumbs__item",
1404
- children: u === s.length - 1 ? /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : n === "router" ? /* @__PURE__ */ h(
1405
- Ee,
1409
+ children: u === s.length - 1 ? /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : r === "router" ? /* @__PURE__ */ t.jsxs(
1410
+ je,
1406
1411
  {
1407
1412
  to: p.href,
1408
1413
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1409
- ...a,
1414
+ ...i,
1410
1415
  children: [
1411
- /* @__PURE__ */ i(
1412
- w,
1416
+ /* @__PURE__ */ t.jsx(
1417
+ N,
1413
1418
  {
1414
1419
  className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1415
1420
  name: "chevron-thin-right"
1416
1421
  }
1417
1422
  ),
1418
- /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
1423
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: p.text })
1419
1424
  ]
1420
1425
  }
1421
- ) : /* @__PURE__ */ h(
1426
+ ) : /* @__PURE__ */ t.jsxs(
1422
1427
  "a",
1423
1428
  {
1424
1429
  href: p.href,
1425
1430
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1426
- ...a,
1431
+ ...i,
1427
1432
  children: [
1428
- /* @__PURE__ */ i(
1429
- w,
1433
+ /* @__PURE__ */ t.jsx(
1434
+ N,
1430
1435
  {
1431
1436
  className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1432
1437
  name: "chevron-thin-right"
1433
1438
  }
1434
1439
  ),
1435
- /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
1440
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: p.text })
1436
1441
  ]
1437
1442
  }
1438
1443
  )
1439
1444
  },
1440
1445
  `breadcrumb-${u}`
1441
1446
  )) }),
1442
- n === "router" ? /* @__PURE__ */ h(
1443
- Ee,
1447
+ r === "router" ? /* @__PURE__ */ t.jsxs(
1448
+ je,
1444
1449
  {
1445
1450
  to: c.href,
1446
1451
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1447
- ...a,
1452
+ ...i,
1448
1453
  children: [
1449
- /* @__PURE__ */ i(
1450
- w,
1454
+ /* @__PURE__ */ t.jsx(
1455
+ N,
1451
1456
  {
1452
1457
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1453
1458
  name: "chevron-thin-left"
1454
1459
  }
1455
1460
  ),
1456
- /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: c.text })
1461
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: c.text })
1457
1462
  ]
1458
1463
  }
1459
- ) : /* @__PURE__ */ h(
1464
+ ) : /* @__PURE__ */ t.jsxs(
1460
1465
  "a",
1461
1466
  {
1462
1467
  href: c.href,
1463
1468
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1464
- ...a,
1469
+ ...i,
1465
1470
  children: [
1466
- /* @__PURE__ */ i(
1467
- w,
1471
+ /* @__PURE__ */ t.jsx(
1472
+ N,
1468
1473
  {
1469
1474
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1470
1475
  name: "chevron-thin-left"
1471
1476
  }
1472
1477
  ),
1473
- /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: c.text })
1478
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: c.text })
1474
1479
  ]
1475
1480
  }
1476
1481
  )
1477
1482
  ] });
1478
1483
  }
1479
- ), de = M(
1484
+ ), fe = V(
1480
1485
  ({
1481
1486
  children: e,
1482
- className: n,
1483
- iconName: r = "user",
1484
- secondIconName: a = "user",
1487
+ className: r,
1488
+ iconName: a = "user",
1489
+ secondIconName: i = "user",
1485
1490
  size: l = "medium",
1486
1491
  skin: s = "primary",
1487
1492
  type: c = "button",
@@ -1489,9 +1494,9 @@ const br = M(
1489
1494
  color: p,
1490
1495
  isLoading: u = !1,
1491
1496
  ...d
1492
- }, k) => {
1493
- const v = [
1494
- n,
1497
+ }, h) => {
1498
+ const k = [
1499
+ r,
1495
1500
  "pkt-btn",
1496
1501
  l && `pkt-btn--${l}`,
1497
1502
  s && `pkt-btn--${s}`,
@@ -1499,28 +1504,28 @@ const br = M(
1499
1504
  p && `pkt-btn--${p}`,
1500
1505
  u && "pkt-btn--active"
1501
1506
  ].filter(Boolean).join(" ");
1502
- return /* @__PURE__ */ h("button", { ...d, className: v, type: c, ref: k, children: [
1503
- u && /* @__PURE__ */ i(
1504
- w,
1507
+ return /* @__PURE__ */ t.jsxs("button", { ...d, className: k, type: c, ref: h, children: [
1508
+ u && /* @__PURE__ */ t.jsx(
1509
+ N,
1505
1510
  {
1506
1511
  className: "pkt-btn__icon pkt-btn__spinner",
1507
1512
  name: "spinner-blue",
1508
1513
  path: "https://punkt-cdn.oslo.kommune.no/11.12/animations/"
1509
1514
  }
1510
1515
  ),
1511
- o !== "label-only" && /* @__PURE__ */ i(w, { className: "pkt-btn__icon", name: r }),
1512
- /* @__PURE__ */ i("span", { className: "pkt-btn__text", children: e }),
1513
- o === "icons-right-and-left" && /* @__PURE__ */ i(w, { className: "pkt-btn__icon", name: a })
1516
+ o !== "label-only" && /* @__PURE__ */ t.jsx(N, { className: "pkt-btn__icon", name: a }),
1517
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-btn__text", children: e }),
1518
+ o === "icons-right-and-left" && /* @__PURE__ */ t.jsx(N, { className: "pkt-btn__icon", name: i })
1514
1519
  ] });
1515
1520
  }
1516
1521
  );
1517
- de.displayName = "PktButton";
1518
- const ur = M(
1522
+ fe.displayName = "PktButton";
1523
+ const pr = V(
1519
1524
  ({
1520
1525
  id: e,
1521
- hasTile: n = !1,
1522
- disabled: r = !1,
1523
- label: a,
1526
+ hasTile: r = !1,
1527
+ disabled: a = !1,
1528
+ label: i,
1524
1529
  labelPosition: l = "right",
1525
1530
  hideLabel: s = !1,
1526
1531
  checkHelptext: c,
@@ -1528,44 +1533,44 @@ const ur = M(
1528
1533
  isSwitch: p = !1,
1529
1534
  className: u,
1530
1535
  ...d
1531
- }, k) => {
1532
- const v = [u, "pkt-input-check"].filter(Boolean).join(" ");
1533
- return /* @__PURE__ */ i("div", { className: v, children: /* @__PURE__ */ h(
1536
+ }, h) => {
1537
+ const k = [u, "pkt-input-check"].filter(Boolean).join(" ");
1538
+ return /* @__PURE__ */ t.jsx("div", { className: k, children: /* @__PURE__ */ t.jsxs(
1534
1539
  "div",
1535
1540
  {
1536
- className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${r && n ? "pkt-input-check__input--tile-disabled" : ""}`,
1541
+ className: `pkt-input-check__input ${r ? "pkt-input-check__input--tile" : ""} ${a && r ? "pkt-input-check__input--tile-disabled" : ""}`,
1537
1542
  children: [
1538
- a && l === "left" && /* @__PURE__ */ h(
1543
+ i && l === "left" && /* @__PURE__ */ t.jsxs(
1539
1544
  "label",
1540
1545
  {
1541
1546
  className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1542
1547
  htmlFor: e,
1543
1548
  children: [
1544
- a,
1545
- c && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: c })
1549
+ i,
1550
+ c && /* @__PURE__ */ t.jsx("div", { className: "pkt-input-check__input-helptext", children: c })
1546
1551
  ]
1547
1552
  }
1548
1553
  ),
1549
- /* @__PURE__ */ i(
1554
+ /* @__PURE__ */ t.jsx(
1550
1555
  "input",
1551
1556
  {
1552
- ref: k,
1557
+ ref: h,
1553
1558
  className: `pkt-input-check__input-checkbox ${o ? "pkt-input-check__input-checkbox--error" : ""}`,
1554
1559
  type: "checkbox",
1555
1560
  role: p ? "switch" : "checkbox",
1556
1561
  id: e,
1557
- disabled: r,
1562
+ disabled: a,
1558
1563
  ...d
1559
1564
  }
1560
1565
  ),
1561
- a && l === "right" && /* @__PURE__ */ h(
1566
+ i && l === "right" && /* @__PURE__ */ t.jsxs(
1562
1567
  "label",
1563
1568
  {
1564
1569
  className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1565
1570
  htmlFor: e,
1566
1571
  children: [
1567
- a,
1568
- c && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: c })
1572
+ i,
1573
+ c && /* @__PURE__ */ t.jsx("div", { className: "pkt-input-check__input-helptext", children: c })
1569
1574
  ]
1570
1575
  }
1571
1576
  )
@@ -1574,24 +1579,24 @@ const ur = M(
1574
1579
  ) });
1575
1580
  }
1576
1581
  );
1577
- ur.displayName = "PktCheckbox";
1578
- const gr = ({
1582
+ pr.displayName = "PktCheckbox";
1583
+ const br = ({
1579
1584
  columnOne: e,
1580
- columnTwo: n,
1581
- socialLinks: r,
1582
- className: a,
1585
+ columnTwo: r,
1586
+ socialLinks: a,
1587
+ className: i,
1583
1588
  personvernOgInfoLink: l = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1584
1589
  tilgjengelighetLink: s = "https://www.oslo.kommune.no/tilgjengelighet/"
1585
1590
  }) => {
1586
1591
  var o, p;
1587
- const c = [a, "pkt-footer"].filter(Boolean).join(" ");
1588
- return /* @__PURE__ */ i("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ h("div", { className: "pkt-footer__container", children: [
1589
- /* @__PURE__ */ h("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
1590
- /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1591
- /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: e.title }),
1592
- /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1593
- e.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: e.text }),
1594
- (o = e.links) == null ? void 0 : o.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1592
+ const c = [i, "pkt-footer"].filter(Boolean).join(" ");
1593
+ return /* @__PURE__ */ t.jsx("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ t.jsxs("div", { className: "pkt-footer__container", children: [
1594
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
1595
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1596
+ /* @__PURE__ */ t.jsx("h2", { className: "pkt-footer__title", children: e.title }),
1597
+ /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer__list", children: [
1598
+ e.text && /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__text", children: e.text }),
1599
+ (o = e.links) == null ? void 0 : o.map((u, d) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs(
1595
1600
  "a",
1596
1601
  {
1597
1602
  className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
@@ -1599,18 +1604,18 @@ const gr = ({
1599
1604
  target: u.openInNewTab ? "_blank" : "_self",
1600
1605
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1601
1606
  children: [
1602
- /* @__PURE__ */ i(w, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1607
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1603
1608
  u.text
1604
1609
  ]
1605
1610
  }
1606
1611
  ) }, `links-${d}`))
1607
1612
  ] })
1608
1613
  ] }),
1609
- /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1610
- /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: n.title }),
1611
- /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1612
- n.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: n.text }),
1613
- (p = n.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1614
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1615
+ /* @__PURE__ */ t.jsx("h2", { className: "pkt-footer__title", children: r.title }),
1616
+ /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer__list", children: [
1617
+ r.text && /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__text", children: r.text }),
1618
+ (p = r.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs(
1614
1619
  "a",
1615
1620
  {
1616
1621
  className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
@@ -1618,40 +1623,40 @@ const gr = ({
1618
1623
  target: u.openInNewTab ? "_blank" : "_self",
1619
1624
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1620
1625
  children: [
1621
- /* @__PURE__ */ i(w, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1626
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1622
1627
  u.text
1623
1628
  ]
1624
1629
  }
1625
1630
  ) }, `links-${d}`))
1626
1631
  ] })
1627
1632
  ] }),
1628
- /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1629
- /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
1630
- /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1631
- /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1633
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1634
+ /* @__PURE__ */ t.jsx("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
1635
+ /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer__list", children: [
1636
+ /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs(
1632
1637
  "a",
1633
1638
  {
1634
1639
  className: "pkt-footer__link",
1635
1640
  href: l,
1636
1641
  children: [
1637
- /* @__PURE__ */ i(w, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1642
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1638
1643
  "Personvern og informasjonskapsler"
1639
1644
  ]
1640
1645
  }
1641
1646
  ) }),
1642
- /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer__link", href: s, children: [
1643
- /* @__PURE__ */ i(w, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1647
+ /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs("a", { className: "pkt-footer__link", href: s, children: [
1648
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1644
1649
  "Tilgjengelighet"
1645
1650
  ] }) })
1646
1651
  ] })
1647
1652
  ] })
1648
1653
  ] }),
1649
- r && /* @__PURE__ */ h("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
1650
- /* @__PURE__ */ i("div", { className: "pkt-footer__social-languages", children: r.filter((u) => u.language).map((u, d) => /* @__PURE__ */ i(
1654
+ a && /* @__PURE__ */ t.jsxs("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
1655
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-footer__social-languages", children: a.filter((u) => u.language).map((u, d) => /* @__PURE__ */ t.jsx(
1651
1656
  "div",
1652
1657
  {
1653
1658
  className: "pkt-footer__social-language",
1654
- children: /* @__PURE__ */ i(
1659
+ children: /* @__PURE__ */ t.jsx(
1655
1660
  "a",
1656
1661
  {
1657
1662
  href: u.href,
@@ -1664,7 +1669,7 @@ const gr = ({
1664
1669
  },
1665
1670
  `sociallinks-language-${d}`
1666
1671
  )) }),
1667
- /* @__PURE__ */ i("div", { className: "pkt-footer__social-icons", children: r.filter((u) => u.iconName).map((u, d) => /* @__PURE__ */ i(H.Fragment, { children: /* @__PURE__ */ i(
1672
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-footer__social-icons", children: a.filter((u) => u.iconName).map((u, d) => /* @__PURE__ */ t.jsx(X.Fragment, { children: /* @__PURE__ */ t.jsx(
1668
1673
  "a",
1669
1674
  {
1670
1675
  href: u.href,
@@ -1672,20 +1677,20 @@ const gr = ({
1672
1677
  className: "pkt-footer__social-icon-link",
1673
1678
  target: u.openInNewTab ? "_blank" : "_self",
1674
1679
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1675
- children: /* @__PURE__ */ i(w, { className: "pkt-footer__social-icon", name: u.iconName })
1680
+ children: /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__social-icon", name: u.iconName })
1676
1681
  }
1677
1682
  ) }, `sociallinks-${d}`)) })
1678
1683
  ] })
1679
1684
  ] }) });
1680
1685
  }, Nr = ({
1681
1686
  links: e = [],
1682
- personvernOgInfoLink: n = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1683
- tilgjengelighetLink: r = "https://www.oslo.kommune.no/tilgjengelighet/",
1684
- className: a
1687
+ personvernOgInfoLink: r = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1688
+ tilgjengelighetLink: a = "https://www.oslo.kommune.no/tilgjengelighet/",
1689
+ className: i
1685
1690
  }) => {
1686
- const l = [a, "pkt-footer-simple"].filter(Boolean).join(" ");
1687
- return /* @__PURE__ */ i("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ i("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ h("ul", { className: "pkt-footer-simple__list", children: [
1688
- e.map((s, c) => /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h(
1691
+ const l = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1692
+ return /* @__PURE__ */ t.jsx("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ t.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer-simple__list", children: [
1693
+ e.map((s, c) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs(
1689
1694
  "a",
1690
1695
  {
1691
1696
  className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
@@ -1693,8 +1698,8 @@ const gr = ({
1693
1698
  target: s.openInNewTab ? "_blank" : "_self",
1694
1699
  rel: s.openInNewTab ? "noopener noreferrer" : void 0,
1695
1700
  children: [
1696
- /* @__PURE__ */ i(
1697
- w,
1701
+ /* @__PURE__ */ t.jsx(
1702
+ N,
1698
1703
  {
1699
1704
  className: "pkt-footer-simple__link-icon",
1700
1705
  name: "chevron-right"
@@ -1704,17 +1709,17 @@ const gr = ({
1704
1709
  ]
1705
1710
  }
1706
1711
  ) }, c)),
1707
- /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: n, children: [
1708
- /* @__PURE__ */ i(w, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1712
+ /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs("a", { className: "pkt-footer-simple__link", href: r, children: [
1713
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1709
1714
  "Personvern og informasjonskapsler"
1710
1715
  ] }) }),
1711
- /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: r, children: [
1712
- /* @__PURE__ */ i(w, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1716
+ /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs("a", { className: "pkt-footer-simple__link", href: a, children: [
1717
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1713
1718
  "Tilgjengelighet"
1714
1719
  ] }) })
1715
1720
  ] }) }) });
1716
1721
  };
1717
- var Ft = { exports: {} };
1722
+ var It = { exports: {} };
1718
1723
  /*!
1719
1724
  Copyright (c) 2018 Jed Watson.
1720
1725
  Licensed under the MIT License (MIT), see
@@ -1722,41 +1727,41 @@ var Ft = { exports: {} };
1722
1727
  */
1723
1728
  (function(e) {
1724
1729
  (function() {
1725
- var n = {}.hasOwnProperty;
1726
- function r() {
1727
- for (var a = [], l = 0; l < arguments.length; l++) {
1728
- var s = arguments[l];
1729
- if (s) {
1730
- var c = typeof s;
1731
- if (c === "string" || c === "number")
1732
- a.push(s);
1733
- else if (Array.isArray(s)) {
1734
- if (s.length) {
1735
- var o = r.apply(null, s);
1736
- o && a.push(o);
1737
- }
1738
- } else if (c === "object") {
1739
- if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]")) {
1740
- a.push(s.toString());
1741
- continue;
1742
- }
1743
- for (var p in s)
1744
- n.call(s, p) && s[p] && a.push(p);
1745
- }
1746
- }
1730
+ var r = {}.hasOwnProperty;
1731
+ function a() {
1732
+ for (var s = "", c = 0; c < arguments.length; c++) {
1733
+ var o = arguments[c];
1734
+ o && (s = l(s, i(o)));
1747
1735
  }
1748
- return a.join(" ");
1736
+ return s;
1749
1737
  }
1750
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1738
+ function i(s) {
1739
+ if (typeof s == "string" || typeof s == "number")
1740
+ return s;
1741
+ if (typeof s != "object")
1742
+ return "";
1743
+ if (Array.isArray(s))
1744
+ return a.apply(null, s);
1745
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
1746
+ return s.toString();
1747
+ var c = "";
1748
+ for (var o in s)
1749
+ r.call(s, o) && s[o] && (c = l(c, o));
1750
+ return c;
1751
+ }
1752
+ function l(s, c) {
1753
+ return c ? s ? s + " " + c : s + c : s;
1754
+ }
1755
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
1751
1756
  })();
1752
- })(Ft);
1753
- var pr = Ft.exports;
1754
- const Ut = /* @__PURE__ */ mn(pr), yr = M(
1757
+ })(It);
1758
+ var fr = It.exports;
1759
+ const Lt = /* @__PURE__ */ hn(fr), jr = V(
1755
1760
  ({
1756
1761
  className: e,
1757
- logoLink: n = "https://www.oslo.kommune.no/",
1758
- serviceName: r,
1759
- fixed: a = !0,
1762
+ logoLink: r = "https://www.oslo.kommune.no/",
1763
+ serviceName: a,
1764
+ fixed: i = !0,
1760
1765
  scrollToHide: l = !0,
1761
1766
  user: s,
1762
1767
  userMenu: c,
@@ -1764,65 +1769,65 @@ const Ut = /* @__PURE__ */ mn(pr), yr = M(
1764
1769
  userOptions: p,
1765
1770
  userMenuFooter: u,
1766
1771
  canChangeRepresentation: d = !0,
1767
- showMenuButton: k = !1,
1768
- showLogOutButton: v = !1,
1769
- openMenu: S,
1770
- logOut: x,
1771
- changeRepresentation: T,
1772
- children: j,
1773
- ...y
1774
- }, E) => {
1775
- const _ = H.useMemo(() => typeof (s == null ? void 0 : s.lastLoggedIn) == "string" ? s.lastLoggedIn : s != null && s.lastLoggedIn ? new Date(s.lastLoggedIn).toLocaleString("nb-NO", {
1772
+ showMenuButton: h = !1,
1773
+ showLogOutButton: k = !1,
1774
+ openMenu: C,
1775
+ logOut: j,
1776
+ changeRepresentation: S,
1777
+ children: O,
1778
+ ...R
1779
+ }, _) => {
1780
+ const v = X.useMemo(() => typeof (s == null ? void 0 : s.lastLoggedIn) == "string" ? s.lastLoggedIn : s != null && s.lastLoggedIn ? new Date(s.lastLoggedIn).toLocaleString("nb-NO", {
1776
1781
  year: "numeric",
1777
1782
  month: "long",
1778
1783
  day: "numeric"
1779
- }) : "", [s]), [O, F] = H.useState(!1), [W, B] = H.useState(0), [J, V] = H.useState(!1), z = H.useRef(null);
1780
- H.useEffect(() => (document.addEventListener("mouseup", Y), window.addEventListener("scroll", U), () => {
1781
- document.removeEventListener("mouseup", Y), window.removeEventListener("scroll", U);
1784
+ }) : "", [s]), [y, A] = X.useState(!1), [U, W] = X.useState(0), [B, M] = X.useState(!1), Y = X.useRef(null);
1785
+ X.useEffect(() => (document.addEventListener("mouseup", K), window.addEventListener("scroll", F), () => {
1786
+ document.removeEventListener("mouseup", K), window.removeEventListener("scroll", F);
1782
1787
  }));
1783
- const G = () => {
1784
- V(!J);
1785
- }, Y = (b) => {
1786
- z.current && !z.current.contains(b.target) && V(!1);
1787
- }, U = () => {
1788
+ const z = () => {
1789
+ M(!B);
1790
+ }, K = (x) => {
1791
+ Y.current && !Y.current.contains(x.target) && M(!1);
1792
+ }, F = () => {
1788
1793
  if (l) {
1789
- const b = window.pageYOffset || document.documentElement.scrollTop;
1790
- if (b < 0 || Math.abs(b - W) < 60)
1794
+ const x = window.pageYOffset || document.documentElement.scrollTop;
1795
+ if (x < 0 || Math.abs(x - U) < 60)
1791
1796
  return;
1792
- F(b > W), B(b);
1797
+ A(x > U), W(x);
1793
1798
  }
1794
1799
  };
1795
- return /* @__PURE__ */ h(
1800
+ return /* @__PURE__ */ t.jsxs(
1796
1801
  "header",
1797
1802
  {
1798
- ...y,
1803
+ ...R,
1799
1804
  id: "pkt-header",
1800
1805
  "data-testid": "pkt-header",
1801
1806
  "aria-label": "Topp",
1802
- className: Ut(e, "pkt-header", {
1803
- "pkt-header--fixed": a,
1807
+ className: Lt(e, "pkt-header", {
1808
+ "pkt-header--fixed": i,
1804
1809
  "pkt-header--scroll-to-hide": l,
1805
- "pkt-header--hidden": O
1810
+ "pkt-header--hidden": y
1806
1811
  }),
1807
- ref: E,
1812
+ ref: _,
1808
1813
  children: [
1809
- /* @__PURE__ */ h("div", { className: "pkt-header__logo", children: [
1810
- typeof n == "string" ? /* @__PURE__ */ i("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: n, children: /* @__PURE__ */ i(
1811
- w,
1814
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-header__logo", children: [
1815
+ typeof r == "string" ? /* @__PURE__ */ t.jsx("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: r, children: /* @__PURE__ */ t.jsx(
1816
+ N,
1812
1817
  {
1813
1818
  name: "oslologo",
1814
1819
  className: "pkt-header__logo-svg",
1815
1820
  "aria-hidden": "true",
1816
1821
  path: "https://punkt-cdn.oslo.kommune.no/11.12/logos/"
1817
1822
  }
1818
- ) }) : /* @__PURE__ */ i(
1823
+ ) }) : /* @__PURE__ */ t.jsx(
1819
1824
  "button",
1820
1825
  {
1821
1826
  "aria-label": "Tilbake til forside",
1822
1827
  className: "pkt-link-button pkt-link pkt-header__logo-link",
1823
- onClick: n,
1824
- children: /* @__PURE__ */ i(
1825
- w,
1828
+ onClick: r,
1829
+ children: /* @__PURE__ */ t.jsx(
1830
+ N,
1826
1831
  {
1827
1832
  name: "oslologo",
1828
1833
  className: "pkt-header__logo-svg",
@@ -1832,101 +1837,101 @@ const Ut = /* @__PURE__ */ mn(pr), yr = M(
1832
1837
  )
1833
1838
  }
1834
1839
  ),
1835
- /* @__PURE__ */ i("span", { className: "pkt-header__logo-service", children: r })
1840
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__logo-service", children: a })
1836
1841
  ] }),
1837
- /* @__PURE__ */ i("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ h("ul", { className: "pkt-header__actions-row", children: [
1838
- k && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1839
- de,
1842
+ /* @__PURE__ */ t.jsx("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ t.jsxs("ul", { className: "pkt-header__actions-row", children: [
1843
+ h && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx(
1844
+ fe,
1840
1845
  {
1841
1846
  className: "pkt-header__menu-btn",
1842
1847
  skin: "secondary",
1843
1848
  variant: "icon-right",
1844
1849
  iconName: "menu",
1845
- onClick: S,
1850
+ onClick: C,
1846
1851
  children: "Meny"
1847
1852
  }
1848
1853
  ) }),
1849
- (s || o) && /* @__PURE__ */ h(
1854
+ (s || o) && /* @__PURE__ */ t.jsxs(
1850
1855
  "li",
1851
1856
  {
1852
1857
  "data-testid": "usermenu",
1853
- className: `pkt-header--has-dropdown ${J && !O ? "pkt-header--open-dropdown" : ""}`,
1854
- ref: z,
1858
+ className: `pkt-header--has-dropdown ${B && !y ? "pkt-header--open-dropdown" : ""}`,
1859
+ ref: Y,
1855
1860
  children: [
1856
- /* @__PURE__ */ h(
1861
+ /* @__PURE__ */ t.jsxs(
1857
1862
  "button",
1858
1863
  {
1859
1864
  className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
1860
1865
  type: "button",
1861
1866
  role: "button",
1862
1867
  "aria-controls": "pktUserDropdown",
1863
- "aria-expanded": J,
1864
- onClick: G,
1868
+ "aria-expanded": B,
1869
+ onClick: z,
1865
1870
  children: [
1866
- /* @__PURE__ */ i(w, { name: "user", className: "pkt-btn__icon" }),
1867
- /* @__PURE__ */ i("span", { className: "pkt-header__user-fullname", children: (o == null ? void 0 : o.name) || (s == null ? void 0 : s.name) }),
1868
- /* @__PURE__ */ i("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (s == null ? void 0 : s.shortname) }),
1869
- /* @__PURE__ */ i(w, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1870
- /* @__PURE__ */ i(w, { name: "chevron-thin-up", className: "pkt-btn--open" })
1871
+ /* @__PURE__ */ t.jsx(N, { name: "user", className: "pkt-btn__icon" }),
1872
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-fullname", children: (o == null ? void 0 : o.name) || (s == null ? void 0 : s.name) }),
1873
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (s == null ? void 0 : s.shortname) }),
1874
+ /* @__PURE__ */ t.jsx(N, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1875
+ /* @__PURE__ */ t.jsx(N, { name: "chevron-thin-up", className: "pkt-btn--open" })
1871
1876
  ]
1872
1877
  }
1873
1878
  ),
1874
- /* @__PURE__ */ h("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1875
- s && /* @__PURE__ */ h("li", { children: [
1876
- /* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1877
- /* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: s.name }),
1878
- s.lastLoggedIn && /* @__PURE__ */ h("div", { className: "pkt-user-menu__last-logged-in", children: [
1879
+ /* @__PURE__ */ t.jsxs("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1880
+ s && /* @__PURE__ */ t.jsxs("li", { children: [
1881
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1882
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__name", children: s.name }),
1883
+ s.lastLoggedIn && /* @__PURE__ */ t.jsxs("div", { className: "pkt-user-menu__last-logged-in", children: [
1879
1884
  "Sist pålogget: ",
1880
- /* @__PURE__ */ i("time", { children: _ })
1885
+ /* @__PURE__ */ t.jsx("time", { children: v })
1881
1886
  ] })
1882
1887
  ] }),
1883
- c && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: c.map((b, A) => /* @__PURE__ */ i("li", { children: typeof b.target == "string" ? /* @__PURE__ */ h("a", { href: b.target, className: "pkt-link", children: [
1884
- b.iconName && /* @__PURE__ */ i(w, { name: b.iconName, className: "pkt-link__icon" }),
1885
- b.title
1886
- ] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1887
- b.iconName && /* @__PURE__ */ i(w, { name: b.iconName, className: "pkt-link__icon" }),
1888
- b.title
1889
- ] }) }, `userMenu-${A}`)) }) }),
1890
- (o || d) && /* @__PURE__ */ h("li", { children: [
1891
- o && /* @__PURE__ */ h(X, { children: [
1892
- /* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1893
- /* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: o.name }),
1894
- o.orgNumber && /* @__PURE__ */ h("div", { className: "pkt-user-menu__org-number", children: [
1888
+ c && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx("ul", { className: "pkt-list", children: c.map((x, L) => /* @__PURE__ */ t.jsx("li", { children: typeof x.target == "string" ? /* @__PURE__ */ t.jsxs("a", { href: x.target, className: "pkt-link", children: [
1889
+ x.iconName && /* @__PURE__ */ t.jsx(N, { name: x.iconName, className: "pkt-link__icon" }),
1890
+ x.title
1891
+ ] }) : /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: x.target, children: [
1892
+ x.iconName && /* @__PURE__ */ t.jsx(N, { name: x.iconName, className: "pkt-link__icon" }),
1893
+ x.title
1894
+ ] }) }, `userMenu-${L}`)) }) }),
1895
+ (o || d) && /* @__PURE__ */ t.jsxs("li", { children: [
1896
+ o && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1897
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1898
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__name", children: o.name }),
1899
+ o.orgNumber && /* @__PURE__ */ t.jsxs("div", { className: "pkt-user-menu__org-number", children: [
1895
1900
  "Org.nr. ",
1896
1901
  o.orgNumber
1897
1902
  ] })
1898
1903
  ] }),
1899
- /* @__PURE__ */ i("ul", { className: "pkt-list mt-size-16", children: d && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: T, children: [
1900
- /* @__PURE__ */ i(w, { name: "cogwheel", className: "pkt-link__icon" }),
1904
+ /* @__PURE__ */ t.jsx("ul", { className: "pkt-list mt-size-16", children: d && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: S, children: [
1905
+ /* @__PURE__ */ t.jsx(N, { name: "cogwheel", className: "pkt-link__icon" }),
1901
1906
  "Endre organisasjon"
1902
1907
  ] }) }) })
1903
1908
  ] }),
1904
- /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: (p || !v) && /* @__PURE__ */ h(X, { children: [
1905
- p == null ? void 0 : p.map((b, A) => /* @__PURE__ */ i("li", { children: typeof b.target == "string" ? /* @__PURE__ */ h("a", { href: b.target, className: "pkt-link", children: [
1906
- b.iconName && /* @__PURE__ */ i(w, { name: b.iconName, className: "pkt-link__icon" }),
1907
- b.title
1908
- ] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1909
- b.iconName && /* @__PURE__ */ i(w, { name: b.iconName, className: "pkt-link__icon" }),
1910
- b.title
1911
- ] }) }, `userOptions-${A}`)),
1912
- !v && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: x, children: [
1913
- /* @__PURE__ */ i(w, { name: "exit", className: "pkt-link__icon" }),
1909
+ /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx("ul", { className: "pkt-list", children: (p || !k) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1910
+ p == null ? void 0 : p.map((x, L) => /* @__PURE__ */ t.jsx("li", { children: typeof x.target == "string" ? /* @__PURE__ */ t.jsxs("a", { href: x.target, className: "pkt-link", children: [
1911
+ x.iconName && /* @__PURE__ */ t.jsx(N, { name: x.iconName, className: "pkt-link__icon" }),
1912
+ x.title
1913
+ ] }) : /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: x.target, children: [
1914
+ x.iconName && /* @__PURE__ */ t.jsx(N, { name: x.iconName, className: "pkt-link__icon" }),
1915
+ x.title
1916
+ ] }) }, `userOptions-${L}`)),
1917
+ !k && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: j, children: [
1918
+ /* @__PURE__ */ t.jsx(N, { name: "exit", className: "pkt-link__icon" }),
1914
1919
  "Logg ut"
1915
1920
  ] }) })
1916
1921
  ] }) }) }),
1917
- u && /* @__PURE__ */ i("li", { className: "footer", children: /* @__PURE__ */ i("ul", { className: "pkt-list-horizontal bordered", children: u.map((b, A) => /* @__PURE__ */ i("li", { children: typeof b.target == "string" ? /* @__PURE__ */ i("a", { href: b.target, className: "pkt-link", children: b.title }) : /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: b.title }) }, `userMenuFooter-${A}`)) }) })
1922
+ u && /* @__PURE__ */ t.jsx("li", { className: "footer", children: /* @__PURE__ */ t.jsx("ul", { className: "pkt-list-horizontal bordered", children: u.map((x, L) => /* @__PURE__ */ t.jsx("li", { children: typeof x.target == "string" ? /* @__PURE__ */ t.jsx("a", { href: x.target, className: "pkt-link", children: x.title }) : /* @__PURE__ */ t.jsx("button", { className: "pkt-link-button pkt-link", onClick: x.target, children: x.title }) }, `userMenuFooter-${L}`)) }) })
1918
1923
  ] })
1919
1924
  ]
1920
1925
  }
1921
1926
  ),
1922
- j && /* @__PURE__ */ i("li", { children: j }),
1923
- v && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1924
- de,
1927
+ O && /* @__PURE__ */ t.jsx("li", { children: O }),
1928
+ k && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx(
1929
+ fe,
1925
1930
  {
1926
1931
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1927
1932
  iconName: "exit",
1928
1933
  role: "button",
1929
- onClick: x,
1934
+ onClick: j,
1930
1935
  skin: "secondary",
1931
1936
  variant: "icon-right",
1932
1937
  children: "Logg ut"
@@ -1937,20 +1942,20 @@ const Ut = /* @__PURE__ */ mn(pr), yr = M(
1937
1942
  }
1938
1943
  );
1939
1944
  }
1940
- ), fr = H.forwardRef(
1941
- ({ label: e, id: n, children: r, ...a }, l) => /* @__PURE__ */ h("div", { className: "pkt-form-group", children: [
1942
- /* @__PURE__ */ i("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1943
- /* @__PURE__ */ i("input", { className: "pkt-form-input", id: n, ...a, ref: l }),
1944
- r
1945
+ ), dr = X.forwardRef(
1946
+ ({ label: e, id: r, children: a, ...i }, l) => /* @__PURE__ */ t.jsxs("div", { className: "pkt-form-group", children: [
1947
+ /* @__PURE__ */ t.jsx("label", { htmlFor: r, className: "pkt-form-label", children: e }),
1948
+ /* @__PURE__ */ t.jsx("input", { className: "pkt-form-input", id: r, ...i, ref: l }),
1949
+ a
1945
1950
  ] })
1946
1951
  );
1947
- fr.displayName = "PktInput";
1948
- const Se = M(
1952
+ dr.displayName = "PktInput";
1953
+ const Ce = V(
1949
1954
  ({
1950
1955
  forId: e,
1951
- label: n,
1952
- helptext: r,
1953
- helptextDropdown: a,
1956
+ label: r,
1957
+ helptext: a,
1958
+ helptextDropdown: i,
1954
1959
  helptextDropdownButton: l,
1955
1960
  optionalTag: s = !1,
1956
1961
  optionalText: c = "Valgfritt",
@@ -1958,193 +1963,168 @@ const Se = M(
1958
1963
  requiredText: p = "Må fylles ut",
1959
1964
  hasError: u,
1960
1965
  errorMessage: d,
1961
- disabled: k,
1962
- inline: v,
1963
- ariaDescribedby: S,
1964
- useWrapper: x = !0,
1965
- children: T,
1966
- className: j,
1967
- hasFieldset: y = !1
1968
- }, E) => {
1969
- const [_, O] = le(!1), F = () => {
1970
- O(!_);
1971
- }, W = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", B = s ? c : o ? p : "", J = k ? "pkt-inputwrapper--disabled" : "", V = v ? "pkt-inputwrapper--inline" : "", z = u ? "pkt-inputwrapper--error" : "", G = !!a && a !== "", Y = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', U = y ? "fieldset" : G ? "div" : "label", b = y ? "legend" : G ? "h2" : "span", A = S || (r ? `${e}-helptext` : void 0);
1972
- return /* @__PURE__ */ h(
1973
- "div",
1974
- {
1975
- className: ["pkt-inputwrapper", j, J, V, z].join(
1976
- " "
1977
- ),
1978
- ref: E,
1979
- children: [
1980
- x ? /* @__PURE__ */ i(X, { children: /* @__PURE__ */ h(
1981
- U,
1982
- {
1983
- htmlFor: y ? void 0 : e,
1984
- "aria-describedby": G ? void 0 : S,
1985
- className: `pkt-inputwrapper__label${y ? " pkt-inputwrapper__fieldset" : ""}`,
1986
- children: [
1987
- /* @__PURE__ */ h(
1988
- b,
1989
- {
1990
- id: `${e}-label`,
1991
- className: `${y ? " pkt-inputwrapper__legend" : ""}`,
1992
- children: [
1993
- n,
1994
- B !== "" && /* @__PURE__ */ i("span", { className: W(), children: B })
1995
- ]
1996
- }
1997
- ),
1998
- r && /* @__PURE__ */ i(
1999
- "div",
2000
- {
2001
- className: "pkt-inputwrapper__helptext",
2002
- id: `${e}-helptext`,
2003
- dangerouslySetInnerHTML: { __html: r }
2004
- }
2005
- ),
2006
- G && a !== "" && /* @__PURE__ */ h("div", { children: [
2007
- /* @__PURE__ */ i(
2008
- de,
2009
- {
2010
- skin: "tertiary",
2011
- size: "small",
2012
- variant: "icon-right",
2013
- iconName: _ ? "chevron-thin-up" : "chevron-thin-down",
2014
- className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
2015
- onClick: F,
2016
- children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: Y } })
2017
- }
2018
- ),
2019
- /* @__PURE__ */ i(
2020
- "div",
2021
- {
2022
- className: `pkt-inputwrapper__helptext ${_ ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
2023
- children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: a } })
2024
- }
2025
- ),
2026
- !y && /* @__PURE__ */ i("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": A, children: n })
2027
- ] }),
2028
- /* @__PURE__ */ i(X, { children: T })
2029
- ]
2030
- }
2031
- ) }) : /* @__PURE__ */ h(X, { children: [
2032
- !y && /* @__PURE__ */ i(
2033
- "label",
1966
+ disabled: h,
1967
+ inline: k,
1968
+ ariaDescribedby: C,
1969
+ useWrapper: j = !0,
1970
+ children: S,
1971
+ className: O,
1972
+ hasFieldset: R = !1
1973
+ }, _) => {
1974
+ const [v, y] = se(!1), A = () => {
1975
+ y(!v);
1976
+ }, U = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = s ? c : o ? p : "", B = h ? "pkt-inputwrapper--disabled" : "", M = k ? "pkt-inputwrapper--inline" : "", Y = u ? "pkt-inputwrapper--error" : "", z = !!i && i !== "", K = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', F = R ? "fieldset" : z ? "div" : "label", x = R ? "legend" : z ? "h2" : "span", L = C || (a ? `${e}-helptext` : void 0);
1977
+ return /* @__PURE__ */ t.jsxs("div", { className: ["pkt-inputwrapper", O, B, M, Y].join(" "), ref: _, children: [
1978
+ j ? /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
1979
+ F,
1980
+ {
1981
+ htmlFor: R ? void 0 : e,
1982
+ "aria-describedby": z ? void 0 : C,
1983
+ className: `pkt-inputwrapper__label${R ? " pkt-inputwrapper__fieldset" : ""}`,
1984
+ children: [
1985
+ /* @__PURE__ */ t.jsxs(x, { id: `${e}-label`, className: `${R ? " pkt-inputwrapper__legend" : ""}`, children: [
1986
+ r,
1987
+ W !== "" && /* @__PURE__ */ t.jsx("span", { className: U(), children: W })
1988
+ ] }),
1989
+ a && /* @__PURE__ */ t.jsx(
1990
+ "div",
2034
1991
  {
2035
- htmlFor: e,
2036
- className: "pkt-sr-only",
2037
- "aria-describedby": A,
2038
- id: `${e}-label`,
2039
- children: n
1992
+ className: "pkt-inputwrapper__helptext",
1993
+ id: `${e}-helptext`,
1994
+ dangerouslySetInnerHTML: { __html: a }
2040
1995
  }
2041
1996
  ),
2042
- T
2043
- ] }),
2044
- u && d && /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(yn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, compact: !0, children: d }) })
2045
- ]
2046
- }
2047
- );
1997
+ z && i !== "" && /* @__PURE__ */ t.jsxs("div", { children: [
1998
+ /* @__PURE__ */ t.jsx(
1999
+ fe,
2000
+ {
2001
+ skin: "tertiary",
2002
+ size: "small",
2003
+ variant: "icon-right",
2004
+ iconName: v ? "chevron-thin-up" : "chevron-thin-down",
2005
+ className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
2006
+ onClick: A,
2007
+ children: /* @__PURE__ */ t.jsx("span", { dangerouslySetInnerHTML: { __html: K } })
2008
+ }
2009
+ ),
2010
+ /* @__PURE__ */ t.jsx(
2011
+ "div",
2012
+ {
2013
+ className: `pkt-inputwrapper__helptext ${v ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
2014
+ children: /* @__PURE__ */ t.jsx("span", { dangerouslySetInnerHTML: { __html: i } })
2015
+ }
2016
+ ),
2017
+ !R && /* @__PURE__ */ t.jsx("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": L, children: r })
2018
+ ] }),
2019
+ /* @__PURE__ */ t.jsx(t.Fragment, { children: S })
2020
+ ]
2021
+ }
2022
+ ) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2023
+ !R && /* @__PURE__ */ t.jsx("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": L, id: `${e}-label`, children: r }),
2024
+ S
2025
+ ] }),
2026
+ u && d && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(jn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, compact: !0, children: d }) })
2027
+ ] });
2048
2028
  }
2049
2029
  );
2050
- Se.displayName = "PktInputWrapper";
2051
- const dr = M(
2030
+ Ce.displayName = "PktInputWrapper";
2031
+ const mr = V(
2052
2032
  ({
2053
2033
  children: e,
2054
- className: n,
2055
- iconName: r = "user",
2056
- openInNewTab: a = !1,
2034
+ className: r,
2035
+ iconName: a = "user",
2036
+ openInNewTab: i = !1,
2057
2037
  skin: l = "normal",
2058
2038
  href: s = "#",
2059
2039
  external: c = !1,
2060
2040
  title: o,
2061
2041
  ...p
2062
2042
  }, u) => {
2063
- const d = [n, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
2064
- return /* @__PURE__ */ h(
2043
+ const d = [r, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
2044
+ return /* @__PURE__ */ t.jsxs(
2065
2045
  "a",
2066
2046
  {
2067
2047
  ...p,
2068
2048
  href: s,
2069
2049
  className: `pkt-linkcard pkt-link ${d}`,
2070
- target: a ? "_blank" : "_self",
2071
- rel: a ? "noopener noreferrer" : void 0,
2050
+ target: i ? "_blank" : "_self",
2051
+ rel: i ? "noopener noreferrer" : void 0,
2072
2052
  ref: u,
2073
2053
  children: [
2074
- /* @__PURE__ */ i(w, { className: "pkt-link__icon", name: r }),
2075
- /* @__PURE__ */ h("div", { className: "pkt-linkcard__content", children: [
2076
- /* @__PURE__ */ i("div", { className: `pkt-linkcard__title ${c ? "pkt-link pkt-link--external" : ""}`, children: o }),
2077
- /* @__PURE__ */ i("div", { className: "pkt-linkcard__text", children: e })
2054
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-link__icon", name: a }),
2055
+ /* @__PURE__ */ t.jsxs("div", { className: "pkt-linkcard__content", children: [
2056
+ /* @__PURE__ */ t.jsx("div", { className: `pkt-linkcard__title ${c ? "pkt-link pkt-link--external" : ""}`, children: o }),
2057
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-linkcard__text", children: e })
2078
2058
  ] })
2079
2059
  ]
2080
2060
  }
2081
2061
  );
2082
2062
  }
2083
2063
  );
2084
- dr.displayName = "PktLinkCard";
2085
- const wr = M(
2064
+ mr.displayName = "PktLinkCard";
2065
+ const yr = V(
2086
2066
  ({
2087
2067
  className: e,
2088
- message: n,
2089
- size: r = "medium",
2090
- inline: a = !1,
2068
+ message: r,
2069
+ size: a = "medium",
2070
+ inline: i = !1,
2091
2071
  isLoading: l = !0,
2092
2072
  variant: s = "rainbow",
2093
2073
  delay: c = 0,
2094
2074
  children: o,
2095
2075
  ...p
2096
2076
  }, u) => {
2097
- const d = `pkt-loader pkt-loader--${r}`, [k, v] = le(!(c > 0));
2077
+ const d = `pkt-loader pkt-loader--${a}`, [h, k] = se(!(c > 0));
2098
2078
  c > 0 && setTimeout(() => {
2099
- v(!0);
2079
+ k(!0);
2100
2080
  }, c);
2101
- const S = (x) => x === "shapes" ? "loader" : x === "blue" ? "spinner-blue" : "spinner";
2102
- return /* @__PURE__ */ i(
2081
+ const C = (j) => j === "shapes" ? "loader" : j === "blue" ? "spinner-blue" : "spinner";
2082
+ return /* @__PURE__ */ t.jsx(
2103
2083
  "div",
2104
2084
  {
2105
2085
  role: "status",
2106
2086
  "aria-live": "polite",
2107
2087
  "aria-busy": l,
2108
- className: `pkt-loader--${a ? "inline" : "box"} ${e || ""}`,
2109
- children: l ? /* @__PURE__ */ i(X, { children: k ? /* @__PURE__ */ h("div", { className: d, "data-testid": "pkt-loader", ref: u, ...p, children: [
2110
- /* @__PURE__ */ i(
2111
- w,
2088
+ className: `pkt-loader--${i ? "inline" : "box"} ${e || ""}`,
2089
+ children: l ? /* @__PURE__ */ t.jsx(t.Fragment, { children: h ? /* @__PURE__ */ t.jsxs("div", { className: d, "data-testid": "pkt-loader", ref: u, ...p, children: [
2090
+ /* @__PURE__ */ t.jsx(
2091
+ N,
2112
2092
  {
2113
- name: S(s),
2093
+ name: C(s),
2114
2094
  "aria-label": "loading",
2115
2095
  path: "https://punkt-cdn.oslo.kommune.no/11.12/animations/",
2116
2096
  className: `pkt-loader__svg pkt-loader__${s}`
2117
2097
  }
2118
2098
  ),
2119
- n && /* @__PURE__ */ i("p", { children: n })
2099
+ r && /* @__PURE__ */ t.jsx("p", { children: r })
2120
2100
  ] }) : null }) : o
2121
2101
  }
2122
2102
  );
2123
2103
  }
2124
- ), Er = ({
2104
+ ), wr = ({
2125
2105
  children: e,
2126
- className: n,
2127
- compact: r = !1,
2128
- skin: a = "beige",
2106
+ className: r,
2107
+ compact: a = !1,
2108
+ skin: i = "beige",
2129
2109
  title: l,
2130
2110
  ...s
2131
2111
  }) => {
2132
2112
  const c = [
2133
- n,
2113
+ r,
2134
2114
  "pkt-messagebox",
2135
- a && `pkt-messagebox--${a}`,
2136
- r && "pkt-messagebox--compact"
2115
+ i && `pkt-messagebox--${i}`,
2116
+ a && "pkt-messagebox--compact"
2137
2117
  ].filter(Boolean).join(" ");
2138
- return /* @__PURE__ */ h("div", { ...s, className: c, children: [
2139
- l && /* @__PURE__ */ i("div", { className: "pkt-messagebox__title", children: l }),
2140
- /* @__PURE__ */ i("div", { className: "pkt-messagebox__text", children: e })
2118
+ return /* @__PURE__ */ t.jsxs("div", { ...s, className: c, children: [
2119
+ l && /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__title", children: l }),
2120
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__text", children: e })
2141
2121
  ] });
2142
- }, mr = M(
2122
+ }, hr = V(
2143
2123
  ({
2144
2124
  id: e,
2145
- name: n,
2146
- label: r,
2147
- className: a,
2125
+ name: r,
2126
+ label: a,
2127
+ className: i,
2148
2128
  hasTile: l = !1,
2149
2129
  disabled: s = !1,
2150
2130
  checkHelptext: c,
@@ -2152,11 +2132,11 @@ const wr = M(
2152
2132
  ...p
2153
2133
  }, u) => {
2154
2134
  const d = [
2155
- a,
2135
+ i,
2156
2136
  "pkt-input-check"
2157
2137
  ].filter(Boolean).join(" ");
2158
- return /* @__PURE__ */ i("div", { className: d, children: /* @__PURE__ */ h("div", { className: `pkt-input-check__input ${l ? "pkt-input-check__input--tile" : ""} ${s && l ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2159
- /* @__PURE__ */ i(
2138
+ return /* @__PURE__ */ t.jsx("div", { className: d, children: /* @__PURE__ */ t.jsxs("div", { className: `pkt-input-check__input ${l ? "pkt-input-check__input--tile" : ""} ${s && l ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2139
+ /* @__PURE__ */ t.jsx(
2160
2140
  "input",
2161
2141
  {
2162
2142
  ref: u,
@@ -2164,24 +2144,24 @@ const wr = M(
2164
2144
  type: "radio",
2165
2145
  id: e,
2166
2146
  disabled: s,
2167
- name: n,
2147
+ name: r,
2168
2148
  ...p
2169
2149
  }
2170
2150
  ),
2171
- /* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
2172
- r,
2173
- c && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: c })
2151
+ /* @__PURE__ */ t.jsxs("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
2152
+ a,
2153
+ c && /* @__PURE__ */ t.jsx("div", { className: "pkt-input-check__input-helptext", children: c })
2174
2154
  ] })
2175
2155
  ] }) });
2176
2156
  }
2177
2157
  );
2178
- mr.displayName = "PktRadioButton";
2179
- const xr = M(
2158
+ hr.displayName = "PktRadioButton";
2159
+ const Er = V(
2180
2160
  ({
2181
2161
  action: e,
2182
- appearance: n = "local",
2183
- disabled: r = !1,
2184
- fullwidth: a = !1,
2162
+ appearance: r = "local",
2163
+ disabled: a = !1,
2164
+ fullwidth: i = !1,
2185
2165
  id: l,
2186
2166
  label: s,
2187
2167
  method: c = "get",
@@ -2189,105 +2169,84 @@ const xr = M(
2189
2169
  placeholder: p = "Søk…",
2190
2170
  suggestions: u,
2191
2171
  value: d = "",
2192
- onSearch: k,
2193
- onSuggestionClick: v,
2194
- ...S
2195
- }, x) => {
2196
- const T = (_, O) => {
2197
- _ ? _() : v && v(O);
2198
- }, j = `pkt-searchinput pkt-searchinput--${n} ${a ? "pkt-searchinput--fullwidth" : ""}`;
2199
- return /* @__PURE__ */ h(
2200
- e ? "form" : "div",
2172
+ onSearch: h,
2173
+ onSuggestionClick: k,
2174
+ ...C
2175
+ }, j) => {
2176
+ const S = (v, y) => {
2177
+ v ? v() : k && k(y);
2178
+ }, O = `pkt-searchinput pkt-searchinput--${r} ${i ? "pkt-searchinput--fullwidth" : ""}`, R = e ? "form" : "div", _ = s ? "label" : "div";
2179
+ return /* @__PURE__ */ t.jsxs(
2180
+ R,
2201
2181
  {
2202
- className: j,
2203
- onSubmit: k && (() => k(d)),
2182
+ className: O,
2183
+ onSubmit: h && (() => h(d)),
2204
2184
  action: e || void 0,
2205
2185
  method: e ? c : void 0,
2206
2186
  role: "search",
2207
- ref: x,
2208
- ...S,
2187
+ ref: j,
2188
+ ...C,
2209
2189
  children: [
2210
- /* @__PURE__ */ h(
2211
- s ? "label" : "div",
2212
- {
2213
- htmlFor: s ? l : void 0,
2214
- className: s ? "pkt-inputwrapper__label" : "",
2215
- children: [
2216
- s && /* @__PURE__ */ i(X, { children: s }),
2217
- /* @__PURE__ */ h(
2218
- "div",
2219
- {
2220
- className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field",
2221
- children: [
2222
- /* @__PURE__ */ i(
2223
- "input",
2224
- {
2225
- className: `pkt-input ${a ? "pkt-input--fullwidth" : ""}`,
2226
- type: "search",
2227
- name: o || l,
2228
- id: l,
2229
- placeholder: p,
2230
- value: d,
2231
- disabled: r,
2232
- onInput: k && ((_) => k(_.currentTarget.value)),
2233
- autoComplete: "off",
2234
- "aria-autocomplete": "list",
2235
- "aria-controls": `${l}-suggestions`
2236
- }
2237
- ),
2238
- /* @__PURE__ */ i(
2239
- de,
2240
- {
2241
- className: `pkt-searchinput__button ${n === "local" ? "pkt-input-icon" : ""}`,
2242
- variant: "icon-only",
2243
- iconName: "magnifying-glass-big",
2244
- skin: n === "local" ? "tertiary" : "primary",
2245
- color: n === "global" ? "yellow" : void 0,
2246
- type: "submit",
2247
- disabled: r,
2248
- onClick: k && (() => k(d)),
2249
- onKeyUp: k && ((_) => _.key === "Enter" && k(d)),
2250
- children: s || p
2251
- }
2252
- )
2253
- ]
2254
- }
2255
- )
2256
- ]
2257
- }
2258
- ),
2259
- u && /* @__PURE__ */ i(
2260
- "ul",
2261
- {
2262
- id: `${l}-suggestions`,
2263
- className: "pkt-searchinput__suggestions",
2264
- "aria-live": "assertive",
2265
- children: u.map((_, O) => /* @__PURE__ */ i("li", { children: H.createElement(
2266
- _.href ? "a" : _.onClick ? "button" : "div",
2190
+ /* @__PURE__ */ t.jsxs(_, { htmlFor: s ? l : void 0, className: s ? "pkt-inputwrapper__label" : "", children: [
2191
+ s && /* @__PURE__ */ t.jsx(t.Fragment, { children: s }),
2192
+ /* @__PURE__ */ t.jsxs("div", { className: r === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
2193
+ /* @__PURE__ */ t.jsx(
2194
+ "input",
2267
2195
  {
2268
- href: _.href,
2269
- className: `pkt-searchinput__suggestion ${_.onClick ? "pkt-link-button" : ""} ${_.href || _.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
2270
- type: _.onClick ? "button" : void 0,
2271
- onClick: () => T(_.onClick, O),
2272
- onKeyUp: () => T(_.onClick, O)
2273
- },
2274
- /* @__PURE__ */ h(X, { children: [
2275
- _.title && /* @__PURE__ */ i("h3", { className: "pkt-searchinput__suggestion-title", children: _.title }),
2276
- _.text && /* @__PURE__ */ i("p", { className: "pkt-searchinput__suggestion-text", children: _.text })
2277
- ] })
2278
- ) }, `search-suggestion-${O}`))
2279
- }
2280
- )
2196
+ className: `pkt-input ${i ? "pkt-input--fullwidth" : ""}`,
2197
+ type: "search",
2198
+ name: o || l,
2199
+ id: l,
2200
+ placeholder: p,
2201
+ defaultValue: d,
2202
+ disabled: a,
2203
+ onInput: h && ((v) => h(v.currentTarget.value)),
2204
+ autoComplete: "off",
2205
+ "aria-autocomplete": "list",
2206
+ "aria-controls": `${l}-suggestions`
2207
+ }
2208
+ ),
2209
+ /* @__PURE__ */ t.jsx(
2210
+ fe,
2211
+ {
2212
+ className: `pkt-searchinput__button ${r === "local" ? "pkt-input-icon" : ""}`,
2213
+ variant: "icon-only",
2214
+ iconName: "magnifying-glass-big",
2215
+ skin: r === "local" ? "tertiary" : "primary",
2216
+ color: r === "global" ? "yellow" : void 0,
2217
+ type: "submit",
2218
+ disabled: a,
2219
+ onClick: h && (() => h(d)),
2220
+ onKeyUp: h && ((v) => v.key === "Enter" && h(d)),
2221
+ children: s || p
2222
+ }
2223
+ )
2224
+ ] })
2225
+ ] }),
2226
+ u && /* @__PURE__ */ t.jsx("ul", { id: `${l}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: u.map((v, y) => /* @__PURE__ */ t.jsx("li", { children: X.createElement(
2227
+ v.href ? "a" : v.onClick ? "button" : "div",
2228
+ {
2229
+ href: v.href,
2230
+ className: `pkt-searchinput__suggestion ${v.onClick ? "pkt-link-button" : ""} ${v.href || v.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
2231
+ type: v.onClick ? "button" : void 0,
2232
+ onClick: () => S(v.onClick, y),
2233
+ onKeyUp: () => S(v.onClick, y)
2234
+ },
2235
+ /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2236
+ v.title && /* @__PURE__ */ t.jsx("h3", { className: "pkt-searchinput__suggestion-title", children: v.title }),
2237
+ v.text && /* @__PURE__ */ t.jsx("p", { className: "pkt-searchinput__suggestion-text", children: v.text })
2238
+ ] })
2239
+ ) }, `search-suggestion-${y}`)) })
2281
2240
  ]
2282
2241
  }
2283
2242
  );
2284
2243
  }
2285
- ), Cr = M(
2244
+ ), Cr = V(
2286
2245
  ({
2287
2246
  ariaDescribedby: e,
2288
- ariaLabelledby: n,
2289
- children: r,
2290
- className: a,
2247
+ ariaLabelledby: r,
2248
+ children: a,
2249
+ className: i,
2291
2250
  disabled: l = !1,
2292
2251
  errorMessage: s,
2293
2252
  hasError: c,
@@ -2295,73 +2254,73 @@ const xr = M(
2295
2254
  helptextDropdown: p,
2296
2255
  helptextDropdownButton: u,
2297
2256
  id: d,
2298
- inline: k = !1,
2299
- fullwidth: v = !1,
2300
- label: S,
2301
- name: x,
2302
- optionalTag: T = !1,
2303
- optionalText: j,
2304
- requiredTag: y = !1,
2305
- requiredText: E,
2306
- ..._
2307
- }, O) => {
2308
- const F = [a, "pkt-select"].join(" ");
2309
- return /* @__PURE__ */ i(
2310
- Se,
2257
+ inline: h = !1,
2258
+ fullwidth: k = !1,
2259
+ label: C,
2260
+ name: j,
2261
+ optionalTag: S = !1,
2262
+ optionalText: O,
2263
+ requiredTag: R = !1,
2264
+ requiredText: _,
2265
+ ...v
2266
+ }, y) => {
2267
+ const A = [i, "pkt-select"].join(" ");
2268
+ return /* @__PURE__ */ t.jsx(
2269
+ Ce,
2311
2270
  {
2312
- className: F,
2271
+ className: A,
2313
2272
  forId: d,
2314
- label: S,
2273
+ label: C,
2315
2274
  helptext: o,
2316
2275
  helptextDropdown: p,
2317
2276
  helptextDropdownButton: u,
2318
- optionalTag: T,
2319
- optionalText: j,
2320
- requiredTag: y,
2321
- requiredText: E,
2277
+ optionalTag: S,
2278
+ optionalText: O,
2279
+ requiredTag: R,
2280
+ requiredText: _,
2322
2281
  hasError: c,
2323
2282
  errorMessage: s,
2324
2283
  disabled: l,
2325
- inline: k,
2284
+ inline: h,
2326
2285
  ariaDescribedby: e,
2327
- children: /* @__PURE__ */ i(
2286
+ children: /* @__PURE__ */ t.jsx(
2328
2287
  "select",
2329
2288
  {
2330
- ref: O,
2331
- className: `pkt-input ${v ? "pkt-input--fullwidth" : ""}`,
2289
+ ref: y,
2290
+ className: `pkt-input ${k ? "pkt-input--fullwidth" : ""}`,
2332
2291
  "aria-invalid": c,
2333
2292
  "aria-errormessage": `${d}-error`,
2334
- "aria-labelledby": n || `${d}-label`,
2293
+ "aria-labelledby": r || `${d}-label`,
2335
2294
  disabled: l,
2336
2295
  id: d,
2337
- name: x || d,
2338
- ..._,
2339
- children: r
2296
+ name: j || d,
2297
+ ...v,
2298
+ children: a
2340
2299
  }
2341
2300
  )
2342
2301
  }
2343
2302
  );
2344
2303
  }
2345
- ), hr = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ i("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ i(X, { children: n }), Rr = ({
2304
+ ), kr = ({ isResponsive: e, children: r }) => e ? /* @__PURE__ */ t.jsx("div", { className: "pkt-table-container", children: r }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: r }), Rr = ({
2346
2305
  isResponsive: e,
2347
- modifiers: { info: n = !1, success: r = !1, strong: a = !1, shadow: l = !1 } = {},
2306
+ modifiers: { info: r = !1, success: a = !1, strong: i = !1, shadow: l = !1 } = {},
2348
2307
  children: s
2349
- }) => /* @__PURE__ */ i(hr, { isResponsive: e, children: /* @__PURE__ */ i(
2308
+ }) => /* @__PURE__ */ t.jsx(kr, { isResponsive: e, children: /* @__PURE__ */ t.jsx(
2350
2309
  "table",
2351
2310
  {
2352
- className: Ut("pkt-table", {
2353
- "pkt-table--info": n,
2354
- "pkt-table--success": r,
2355
- "pkt-table--strong": a,
2311
+ className: Lt("pkt-table", {
2312
+ "pkt-table--info": r,
2313
+ "pkt-table--success": a,
2314
+ "pkt-table--strong": i,
2356
2315
  "pkt-table--shadow": l
2357
2316
  }),
2358
2317
  children: s
2359
2318
  }
2360
- ) }), Sr = ({ children: e }) => /* @__PURE__ */ i("td", { className: "pkt-table__th", children: e }), Pr = ({ children: e }) => /* @__PURE__ */ i("th", { className: "pkt-table__th", children: e }), Ke = M(({
2319
+ ) }), Pr = ({ children: e }) => /* @__PURE__ */ t.jsx("td", { className: "pkt-table__th", children: e }), Sr = ({ children: e }) => /* @__PURE__ */ t.jsx("th", { className: "pkt-table__th", children: e }), Ke = V(({
2361
2320
  children: e,
2362
- className: n,
2363
- skin: r = "blue",
2364
- textStyle: a = "normal-text",
2321
+ className: r,
2322
+ skin: a = "blue",
2323
+ textStyle: i = "normal-text",
2365
2324
  size: l = "medium",
2366
2325
  closeTag: s = !1,
2367
2326
  iconName: c = "",
@@ -2370,71 +2329,71 @@ const xr = M(
2370
2329
  onClick: u = () => {
2371
2330
  }
2372
2331
  }, d) => {
2373
- const [k, v] = le(!1), S = (y) => {
2374
- v(!0), u(y);
2375
- }, x = [
2332
+ const [h, k] = se(!1), C = (R) => {
2333
+ k(!0), u(R);
2334
+ }, j = [
2376
2335
  "pkt-tag",
2377
2336
  l && `pkt-tag--${l}`,
2378
- r && `pkt-tag--${r}`,
2379
2337
  a && `pkt-tag--${a}`,
2380
- n
2381
- ].filter(Boolean).join(" "), T = [
2338
+ i && `pkt-tag--${i}`,
2339
+ r
2340
+ ].filter(Boolean).join(" "), S = [
2382
2341
  "pkt-tag",
2383
2342
  "pkt-btn",
2384
2343
  "pkt-btn--tertiary",
2385
2344
  l && `pkt-tag--${l}`,
2386
- r && `pkt-tag--${r}`,
2387
2345
  a && `pkt-tag--${a}`,
2346
+ i && `pkt-tag--${i}`,
2388
2347
  c && s ? "pkt-btn--icons-right-and-left" : null,
2389
2348
  s && !c ? "pkt-btn--icon-right" : null,
2390
- n
2391
- ].filter(Boolean).join(" "), j = !k;
2392
- return s && c ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
2349
+ r
2350
+ ].filter(Boolean).join(" "), O = !h;
2351
+ return s && c ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2393
2352
  "button",
2394
2353
  {
2395
- className: T,
2354
+ className: S,
2396
2355
  type: o,
2397
2356
  "aria-label": p,
2398
- onClick: S,
2357
+ onClick: C,
2399
2358
  ref: d,
2400
2359
  children: [
2401
- /* @__PURE__ */ i(w, { className: "pkt-tag__icon", name: c }),
2360
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__icon", name: c }),
2402
2361
  e,
2403
- /* @__PURE__ */ i(w, { className: "pkt-tag__close-btn", name: "close" })
2362
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__close-btn", name: "close" })
2404
2363
  ]
2405
2364
  }
2406
- ) }) : s ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
2365
+ ) }) : s ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2407
2366
  "button",
2408
2367
  {
2409
- className: T,
2368
+ className: S,
2410
2369
  type: o,
2411
2370
  "aria-label": p,
2412
- onClick: S,
2371
+ onClick: C,
2413
2372
  ref: d,
2414
2373
  children: [
2415
- /* @__PURE__ */ i(w, { className: "pkt-tag__close-btn", name: "close" }),
2374
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__close-btn", name: "close" }),
2416
2375
  e
2417
2376
  ]
2418
2377
  }
2419
- ) }) : c ? /* @__PURE__ */ h("span", { className: x, children: [
2420
- /* @__PURE__ */ i(w, { className: "pkt-tag__icon", name: c }),
2378
+ ) }) : c ? /* @__PURE__ */ t.jsxs("span", { className: j, children: [
2379
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__icon", name: c }),
2421
2380
  e
2422
- ] }) : /* @__PURE__ */ i("span", { className: x, children: e });
2381
+ ] }) : /* @__PURE__ */ t.jsx("span", { className: j, children: e });
2423
2382
  });
2424
2383
  Ke.displayName = "PktTag";
2425
- const Tr = M(
2426
- ({ arrowNav: e = !0, tabs: n, onTabSelected: r }, a) => {
2427
- const l = Et([]);
2384
+ const Tr = V(
2385
+ ({ arrowNav: e = !0, tabs: r, onTabSelected: a }, i) => {
2386
+ const l = jt([]);
2428
2387
  Je(() => {
2429
- l.current = l.current.slice(0, n.length);
2430
- }, [n]);
2388
+ l.current = l.current.slice(0, r.length);
2389
+ }, [r]);
2431
2390
  const s = (o, p) => {
2432
- p.action && p.action(o), r && r(o);
2391
+ p.action && p.action(o), a && a(o);
2433
2392
  }, c = (o, p) => {
2434
2393
  var u, d;
2435
- e && (p.code === "ArrowLeft" && o !== 0 && ((u = l.current[o - 1]) == null || u.focus()), p.code === "ArrowRight" && o < n.length - 1 && ((d = l.current[o + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && s(o, n[o]));
2394
+ e && (p.code === "ArrowLeft" && o !== 0 && ((u = l.current[o - 1]) == null || u.focus()), p.code === "ArrowRight" && o < r.length - 1 && ((d = l.current[o + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && s(o, r[o]));
2436
2395
  };
2437
- return /* @__PURE__ */ i("div", { className: "pkt-tabs", ref: a, children: /* @__PURE__ */ i("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: n.map((o, p) => /* @__PURE__ */ i(dn, { children: o.href ? /* @__PURE__ */ h(
2396
+ return /* @__PURE__ */ t.jsx("div", { className: "pkt-tabs", ref: i, children: /* @__PURE__ */ t.jsx("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: r.map((o, p) => /* @__PURE__ */ t.jsx(mn, { children: o.href ? /* @__PURE__ */ t.jsxs(
2438
2397
  "a",
2439
2398
  {
2440
2399
  "aria-selected": !!o.active,
@@ -2449,12 +2408,12 @@ const Tr = M(
2449
2408
  l.current[p] = u;
2450
2409
  },
2451
2410
  children: [
2452
- o.icon && /* @__PURE__ */ i(w, { name: o.icon, className: "pkt-icon--small" }),
2411
+ o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
2453
2412
  o.text,
2454
- o.tag && /* @__PURE__ */ i(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2413
+ o.tag && /* @__PURE__ */ t.jsx(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2455
2414
  ]
2456
2415
  }
2457
- ) : /* @__PURE__ */ h(
2416
+ ) : /* @__PURE__ */ t.jsxs(
2458
2417
  "button",
2459
2418
  {
2460
2419
  "aria-selected": !!o.active,
@@ -2469,20 +2428,20 @@ const Tr = M(
2469
2428
  l.current[p] = u;
2470
2429
  },
2471
2430
  children: [
2472
- o.icon && /* @__PURE__ */ i(w, { name: o.icon, className: "pkt-icon--small" }),
2431
+ o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
2473
2432
  o.text,
2474
- o.tag && /* @__PURE__ */ i(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2433
+ o.tag && /* @__PURE__ */ t.jsx(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2475
2434
  ]
2476
2435
  },
2477
2436
  "b-" + p
2478
2437
  ) }, p)) }) });
2479
2438
  }
2480
- ), Or = M(
2439
+ ), Or = V(
2481
2440
  ({
2482
2441
  id: e,
2483
- ariaDescribedby: n,
2484
- ariaLabelledby: r,
2485
- counter: a,
2442
+ ariaDescribedby: r,
2443
+ ariaLabelledby: a,
2444
+ counter: i,
2486
2445
  counterMaxLength: l,
2487
2446
  className: s,
2488
2447
  disabled: c,
@@ -2490,80 +2449,80 @@ const Tr = M(
2490
2449
  hasError: p,
2491
2450
  helptext: u,
2492
2451
  helptextDropdown: d,
2493
- helptextDropdownButton: k,
2494
- inline: v,
2495
- fullwidth: S = !1,
2496
- label: x,
2497
- name: T,
2498
- optionalTag: j = !1,
2499
- optionalText: y,
2500
- requiredTag: E = !1,
2501
- requiredText: _,
2502
- placeholder: O,
2503
- rows: F,
2504
- useWrapper: W = !0,
2505
- onChange: B,
2506
- ...J
2507
- }, V) => {
2508
- const z = [s, "pkt-textinput", "pkt-textarea"].join(" "), G = r || `${e}-label`, Y = Et(null), [U, b] = le(0), A = (ee) => {
2509
- var te, oe;
2510
- if (a && b(((oe = (te = ee.currentTarget) == null ? void 0 : te.value) == null ? void 0 : oe.length) || 0), B)
2511
- return B(ee);
2452
+ helptextDropdownButton: h,
2453
+ inline: k,
2454
+ fullwidth: C = !1,
2455
+ label: j,
2456
+ name: S,
2457
+ optionalTag: O = !1,
2458
+ optionalText: R,
2459
+ requiredTag: _ = !1,
2460
+ requiredText: v,
2461
+ placeholder: y,
2462
+ rows: A,
2463
+ useWrapper: U = !0,
2464
+ onChange: W,
2465
+ ...B
2466
+ }, M) => {
2467
+ const Y = [s, "pkt-textinput", "pkt-textarea"].join(" "), z = a || `${e}-label`, K = jt(null), [F, x] = se(0), L = (Z) => {
2468
+ var Q, ie;
2469
+ if (i && x(((ie = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : ie.length) || 0), W)
2470
+ return W(Z);
2512
2471
  };
2513
2472
  return Je(() => {
2514
- var ee, te;
2515
- typeof V == "function" && V(Y.current), a && b(((te = (ee = Y == null ? void 0 : Y.current) == null ? void 0 : ee.value) == null ? void 0 : te.length) || 0);
2516
- }, [V]), /* @__PURE__ */ h(
2517
- Se,
2473
+ var Z, Q;
2474
+ typeof M == "function" && M(K.current), i && x(((Q = (Z = K == null ? void 0 : K.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2475
+ }, [M]), /* @__PURE__ */ t.jsxs(
2476
+ Ce,
2518
2477
  {
2519
- ariaDescribedby: n,
2520
- className: z,
2478
+ ariaDescribedby: r,
2479
+ className: Y,
2521
2480
  disabled: c,
2522
2481
  errorMessage: o,
2523
2482
  forId: e,
2524
2483
  hasError: p,
2525
2484
  helptext: u,
2526
2485
  helptextDropdown: d,
2527
- helptextDropdownButton: k,
2528
- inline: v,
2529
- label: x,
2530
- optionalTag: j,
2531
- optionalText: y,
2532
- requiredTag: E,
2533
- requiredText: _,
2534
- useWrapper: W,
2486
+ helptextDropdownButton: h,
2487
+ inline: k,
2488
+ label: j,
2489
+ optionalTag: O,
2490
+ optionalText: R,
2491
+ requiredTag: _,
2492
+ requiredText: v,
2493
+ useWrapper: U,
2535
2494
  children: [
2536
- /* @__PURE__ */ i(
2495
+ /* @__PURE__ */ t.jsx(
2537
2496
  "textarea",
2538
2497
  {
2539
- ref: Y,
2540
- className: `pkt-input ${S ? "pkt-input--fullwidth" : ""} ${l && U > l ? "pkt-input--counter-error" : ""}`,
2541
- name: T || e,
2498
+ ref: K,
2499
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${l && F > l ? "pkt-input--counter-error" : ""}`,
2500
+ name: S || e,
2542
2501
  id: e,
2543
- placeholder: O,
2502
+ placeholder: y,
2544
2503
  disabled: c,
2545
- rows: F,
2546
- "aria-labelledby": G,
2504
+ rows: A,
2505
+ "aria-labelledby": z,
2547
2506
  "aria-invalid": p,
2548
2507
  "aria-errormessage": `${e}-error`,
2549
- ...J,
2550
- onChange: A
2508
+ ...B,
2509
+ onChange: L
2551
2510
  }
2552
2511
  ),
2553
- a && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2554
- U || 0,
2512
+ i && /* @__PURE__ */ t.jsxs("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2513
+ F || 0,
2555
2514
  l && `/${l}`
2556
2515
  ] })
2557
2516
  ]
2558
2517
  }
2559
2518
  );
2560
2519
  }
2561
- ), $r = M(
2520
+ ), $r = V(
2562
2521
  ({
2563
2522
  id: e,
2564
- ariaDescribedby: n,
2565
- ariaLabelledby: r,
2566
- autocomplete: a = "off",
2523
+ ariaDescribedby: r,
2524
+ ariaLabelledby: a,
2525
+ autocomplete: i = "off",
2567
2526
  className: l,
2568
2527
  disabled: s = !1,
2569
2528
  errorMessage: c,
@@ -2571,30 +2530,30 @@ const Tr = M(
2571
2530
  helptext: p,
2572
2531
  helptextDropdown: u,
2573
2532
  helptextDropdownButton: d,
2574
- iconNameRight: k,
2575
- inline: v = !1,
2576
- fullwidth: S = !1,
2577
- label: x,
2578
- name: T,
2579
- optionalTag: j = !1,
2580
- optionalText: y,
2581
- requiredTag: E = !1,
2582
- requiredText: _,
2583
- placeholder: O,
2584
- prefix: F,
2585
- suffix: W,
2586
- type: B = "text",
2587
- useWrapper: J = !0,
2588
- omitSearchIcon: V = !1,
2589
- value: z,
2590
- ...G
2591
- }, Y) => {
2592
- const U = [l, "pkt-textinput"].join(" "), b = r || `${e}-label`, A = B === "search" && !k && !V;
2593
- return /* @__PURE__ */ i(
2594
- Se,
2533
+ iconNameRight: h,
2534
+ inline: k = !1,
2535
+ fullwidth: C = !1,
2536
+ label: j,
2537
+ name: S,
2538
+ optionalTag: O = !1,
2539
+ optionalText: R,
2540
+ requiredTag: _ = !1,
2541
+ requiredText: v,
2542
+ placeholder: y,
2543
+ prefix: A,
2544
+ suffix: U,
2545
+ type: W = "text",
2546
+ useWrapper: B = !0,
2547
+ omitSearchIcon: M = !1,
2548
+ value: Y,
2549
+ ...z
2550
+ }, K) => {
2551
+ const F = [l, "pkt-textinput"].join(" "), x = a || `${e}-label`, L = W === "search" && !h && !M;
2552
+ return /* @__PURE__ */ t.jsx(
2553
+ Ce,
2595
2554
  {
2596
- ariaDescribedby: n,
2597
- className: U,
2555
+ ariaDescribedby: r,
2556
+ className: F,
2598
2557
  disabled: s,
2599
2558
  errorMessage: c,
2600
2559
  forId: e,
@@ -2602,67 +2561,67 @@ const Tr = M(
2602
2561
  helptext: p,
2603
2562
  helptextDropdown: u,
2604
2563
  helptextDropdownButton: d,
2605
- inline: v,
2606
- label: x,
2607
- optionalTag: j,
2608
- optionalText: y,
2609
- requiredTag: E,
2610
- requiredText: _,
2611
- useWrapper: J,
2612
- children: /* @__PURE__ */ h("div", { className: "pkt-input__container", children: [
2613
- F && /* @__PURE__ */ i("div", { className: "pkt-input-prefix", children: F }),
2614
- /* @__PURE__ */ i(
2564
+ inline: k,
2565
+ label: j,
2566
+ optionalTag: O,
2567
+ optionalText: R,
2568
+ requiredTag: _,
2569
+ requiredText: v,
2570
+ useWrapper: B,
2571
+ children: /* @__PURE__ */ t.jsxs("div", { className: "pkt-input__container", children: [
2572
+ A && /* @__PURE__ */ t.jsx("div", { className: "pkt-input-prefix", children: A }),
2573
+ /* @__PURE__ */ t.jsx(
2615
2574
  "input",
2616
2575
  {
2617
- ref: Y,
2618
- className: `pkt-input ${S ? "pkt-input--fullwidth" : ""}`,
2619
- type: B,
2620
- name: T || e,
2576
+ ref: K,
2577
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""}`,
2578
+ type: W,
2579
+ name: S || e,
2621
2580
  id: e,
2622
- placeholder: O,
2623
- autoComplete: a,
2624
- value: z,
2581
+ placeholder: y,
2582
+ autoComplete: i,
2583
+ value: Y,
2625
2584
  disabled: s,
2626
2585
  "aria-invalid": o,
2627
2586
  "aria-errormessage": `${e}-error`,
2628
- "aria-labelledby": b,
2629
- ...G
2587
+ "aria-labelledby": x,
2588
+ ...z
2630
2589
  }
2631
2590
  ),
2632
- W && /* @__PURE__ */ h("p", { className: "pkt-input-suffix", children: [
2633
- W,
2634
- k && /* @__PURE__ */ i(w, { className: "pkt-input-suffix-icon", name: k }),
2635
- A && /* @__PURE__ */ i(w, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
2591
+ U && /* @__PURE__ */ t.jsxs("p", { className: "pkt-input-suffix", children: [
2592
+ U,
2593
+ h && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-suffix-icon", name: h }),
2594
+ L && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
2636
2595
  ] }),
2637
- !W && k && /* @__PURE__ */ i(w, { className: "pkt-input-icon", name: k }),
2638
- !W && A && /* @__PURE__ */ i(w, { className: "pkt-input-icon", name: "magnifying-glass-big" })
2596
+ !U && h && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-icon", name: h }),
2597
+ !U && L && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-icon", name: "magnifying-glass-big" })
2639
2598
  ] })
2640
2599
  }
2641
2600
  );
2642
2601
  }
2643
2602
  );
2644
2603
  export {
2645
- yn as PktAlert,
2646
- _r as PktBackLink,
2647
- br as PktBreadcrumbs,
2648
- de as PktButton,
2649
- ur as PktCheckbox,
2650
- gr as PktFooter,
2604
+ jn as PktAlert,
2605
+ xr as PktBackLink,
2606
+ gr as PktBreadcrumbs,
2607
+ fe as PktButton,
2608
+ pr as PktCheckbox,
2609
+ br as PktFooter,
2651
2610
  Nr as PktFooterSimple,
2652
- yr as PktHeader,
2653
- w as PktIcon,
2611
+ jr as PktHeader,
2612
+ N as PktIcon,
2654
2613
  Nn as PktIconContext,
2655
- fr as PktInput,
2656
- Se as PktInputWrapper,
2657
- dr as PktLinkCard,
2658
- wr as PktLoader,
2659
- Er as PktMessagebox,
2660
- mr as PktRadioButton,
2661
- xr as PktSearchInput,
2614
+ dr as PktInput,
2615
+ Ce as PktInputWrapper,
2616
+ mr as PktLinkCard,
2617
+ yr as PktLoader,
2618
+ wr as PktMessagebox,
2619
+ hr as PktRadioButton,
2620
+ Er as PktSearchInput,
2662
2621
  Cr as PktSelect,
2663
2622
  Rr as PktTable,
2664
- Sr as PktTableData,
2665
- Pr as PktTableHeader,
2623
+ Pr as PktTableData,
2624
+ Sr as PktTableHeader,
2666
2625
  Tr as PktTabs,
2667
2626
  Ke as PktTag,
2668
2627
  Or as PktTextarea,