@oslokommune/punkt-react 11.12.3 → 11.12.8

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 (66) hide show
  1. package/CHANGELOG.md +35 -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/index.d.ts +4 -1
  15. package/dist/components/input/Input.d.ts +1 -1
  16. package/dist/components/inputwrapper/InputWrapper.d.ts +2 -2
  17. package/dist/components/linkcard/LinkCard.d.ts +1 -1
  18. package/dist/components/loader/Loader.d.ts +1 -1
  19. package/dist/components/messagebox/Messagebox.d.ts +1 -1
  20. package/dist/components/radio/RadioButton.d.ts +1 -1
  21. package/dist/components/searchinput/SearchInput.d.ts +1 -1
  22. package/dist/components/select/Select.d.ts +2 -2
  23. package/dist/components/table/Table.d.ts +7 -7
  24. package/dist/components/table/Table.test.d.ts +1 -1
  25. package/dist/components/table/TableBody.d.ts +7 -0
  26. package/dist/components/table/TableData.d.ts +1 -1
  27. package/dist/components/table/TableDataCell.d.ts +8 -0
  28. package/dist/components/table/TableHeader.d.ts +3 -2
  29. package/dist/components/table/TableHeaderCell.d.ts +7 -0
  30. package/dist/components/table/TableRow.d.ts +7 -0
  31. package/dist/components/tabs/Tabs.d.ts +1 -1
  32. package/dist/components/tag/Tag.d.ts +1 -1
  33. package/dist/components/textarea/Textarea.d.ts +2 -2
  34. package/dist/components/textinput/Textinput.d.ts +1 -1
  35. package/dist/punkt-react.es.js +1414 -1438
  36. package/dist/punkt-react.umd.js +22 -17
  37. package/package.json +14 -14
  38. package/src/components/accordion/Accordion.test.tsx +1 -1
  39. package/src/components/accordion/Accordion.tsx +0 -1
  40. package/src/components/checkbox/Checkbox.test.tsx +4 -10
  41. package/src/components/footer/Footer.test.tsx +11 -14
  42. package/src/components/footerSimple/FooterSimple.test.tsx +27 -30
  43. package/src/components/header/Header.test.tsx +4 -10
  44. package/src/components/header/Header.tsx +1 -1
  45. package/src/components/icon/Icon.test.tsx +3 -7
  46. package/src/components/index.ts +4 -1
  47. package/src/components/inputwrapper/InputWrapper.tsx +7 -27
  48. package/src/components/linkcard/LinkCard.test.tsx +4 -10
  49. package/src/components/loader/Loader.test.tsx +2 -4
  50. package/src/components/radio/RadioButton.test.tsx +45 -44
  51. package/src/components/searchinput/SearchInput.test.tsx +3 -5
  52. package/src/components/searchinput/SearchInput.tsx +9 -28
  53. package/src/components/select/Select.test.tsx +4 -13
  54. package/src/components/select/Select.tsx +1 -1
  55. package/src/components/table/Table.test.tsx +48 -89
  56. package/src/components/table/Table.tsx +24 -23
  57. package/src/components/table/TableBody.tsx +13 -0
  58. package/src/components/table/TableData.tsx +1 -1
  59. package/src/components/table/TableDataCell.tsx +19 -0
  60. package/src/components/table/TableHeader.tsx +8 -2
  61. package/src/components/table/TableHeaderCell.tsx +13 -0
  62. package/src/components/table/TableRow.tsx +13 -0
  63. package/src/components/tag/Tag.test.tsx +1 -1
  64. package/src/components/textarea/Textarea.test.tsx +4 -13
  65. package/src/components/textinput/Textinput.test.tsx +4 -13
  66. package/src/components/table/__snapshots__/Table.test.tsx.snap +0 -137
@@ -1,10 +1,10 @@
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 g from "react";
2
+ import X, { createContext as fn, useState as le, useContext as dn, useEffect as Je, forwardRef as V, useRef as yt, 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
- var We = { exports: {} }, ue = {};
7
+ var Be = { exports: {} }, pe = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -15,24 +15,24 @@ var We = { exports: {} }, ue = {};
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
17
  var _t;
18
- function hn() {
18
+ function kn() {
19
19
  if (_t)
20
- return ue;
20
+ return pe;
21
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 };
22
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { 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) && !l.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: s.current };
32
32
  }
33
- return ue.Fragment = r, ue.jsx = c, ue.jsxs = c, ue;
33
+ return pe.Fragment = a, pe.jsx = c, pe.jsxs = c, pe;
34
34
  }
35
- var pe = {};
35
+ var fe = {};
36
36
  /**
37
37
  * @license React
38
38
  * react-jsx-runtime.development.js
@@ -43,90 +43,90 @@ var pe = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var bt;
46
- function kn() {
46
+ function vn() {
47
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")
48
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = 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
- for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
59
- m[g - 1] = arguments[g];
60
- _("error", t, m);
58
+ for (var f = arguments.length, m = new Array(f > 1 ? f - 1 : 0), x = 1; x < f; x++)
59
+ m[x - 1] = arguments[x];
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 x = R.ReactDebugCurrentFrame, P = x.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 === l || B || n === s || 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;
84
- if (g)
85
- return g;
82
+ function J(n, f, m) {
83
+ var x = n.displayName;
84
+ if (x)
85
+ return x;
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 I(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
- case s:
105
- return "Profiler";
106
104
  case l:
105
+ return "Profiler";
106
+ case s:
107
107
  return "StrictMode";
108
108
  case u:
109
109
  return "Suspense";
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 J(n, n.render, "ForwardRef");
123
+ case h:
124
+ var x = n.displayName || null;
125
+ return x !== null ? x : I(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 I(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;
137
+ var b = Object.assign, L = 0, Z, Q, oe, Qe, et, tt, nt;
138
138
  function rt() {
139
139
  }
140
140
  rt.__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, oe = console.warn, Qe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
145
+ var n = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
148
148
  value: rt,
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: b({}, n, {
174
+ value: Z
175
175
  }),
176
- info: b({}, t, {
177
- value: te
176
+ info: b({}, n, {
177
+ value: Q
178
178
  }),
179
- warn: b({}, t, {
179
+ warn: b({}, n, {
180
180
  value: oe
181
181
  }),
182
- error: b({}, t, {
182
+ error: b({}, n, {
183
183
  value: Qe
184
184
  }),
185
- group: b({}, t, {
185
+ group: b({}, n, {
186
186
  value: et
187
187
  }),
188
- groupCollapsed: b({}, t, {
188
+ groupCollapsed: b({}, n, {
189
189
  value: tt
190
190
  }),
191
- groupEnd: b({}, t, {
191
+ groupEnd: b({}, n, {
192
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 Pe = R.ReactCurrentDispatcher, Se;
200
+ function ve(n, f, m) {
201
201
  {
202
- if (Te === void 0)
202
+ if (Se === void 0)
203
203
  try {
204
204
  throw Error();
205
205
  } catch (P) {
206
- var g = P.stack.trim().match(/\n( *(at )?)/);
207
- Te = g && g[1] || "";
206
+ var x = P.stack.trim().match(/\n( *(at )?)/);
207
+ Se = x && x[1] || "";
208
208
  }
209
209
  return `
210
- ` + Te + t;
210
+ ` + Se + n;
211
211
  }
212
212
  }
213
- var Oe = !1, ve;
213
+ var Te = !1, _e;
214
214
  {
215
- var Wt = typeof WeakMap == "function" ? WeakMap : Map;
216
- ve = new Wt();
215
+ var Vt = typeof WeakMap == "function" ? WeakMap : Map;
216
+ _e = new Vt();
217
217
  }
218
- function at(t, f) {
219
- if (!t || Oe)
218
+ function at(n, f) {
219
+ if (!n || Te)
220
220
  return "";
221
221
  {
222
- var m = ve.get(t);
222
+ var m = _e.get(n);
223
223
  if (m !== void 0)
224
224
  return m;
225
225
  }
226
- var g;
227
- Oe = !0;
226
+ var x;
227
+ Te = !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 = Pe.current, Pe.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
+ x = 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
+ x = 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
+ x = 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 && x && typeof G.stack == "string") {
266
+ for (var w = G.stack.split(`
267
+ `), z = x.stack.split(`
268
+ `), $ = w.length - 1, F = z.length - 1; $ >= 1 && F >= 0 && w[$] !== z[F]; )
269
+ F--;
270
+ for (; $ >= 1 && F >= 0; $--, F--)
271
+ if (w[$] !== z[F]) {
272
+ if ($ !== 1 || F !== 1)
273
273
  do
274
- if (D--, L--, L < 0 || C[D] !== K[L]) {
274
+ if ($--, F--, F < 0 || w[$] !== z[F]) {
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" && _e.set(n, q), q;
278
278
  }
279
- while (D >= 1 && L >= 0);
279
+ while ($ >= 1 && F >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Oe = !1, Pe.current = $, Vt(), Error.prepareStackTrace = P;
284
+ Te = !1, Pe.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 re = n ? n.displayName || n.name : "", ee = re ? ve(re) : "";
287
+ return typeof n == "function" && _e.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 at(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 be(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 at(n, Bt(n));
301
+ if (typeof n == "string")
302
+ return ve(n);
303
+ switch (n) {
304
304
  case u:
305
- return ke("Suspense");
305
+ return ve("Suspense");
306
306
  case d:
307
- return ke("SuspenseList");
307
+ return ve("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 be(n.type, f, m);
315
+ case k: {
316
+ var x = n, P = x._payload, T = x._init;
317
317
  try {
318
- return _e($(P), f, m);
318
+ return be(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 ce = Object.prototype.hasOwnProperty, st = {}, lt = R.ReactDebugCurrentFrame;
326
+ function xe(n) {
327
+ if (n) {
328
+ var f = n._owner, m = be(n.type, n._source, f ? f.type : null);
329
+ lt.setExtraStackFrame(m);
330
330
  } else
331
- it.setExtraStackFrame(null);
331
+ lt.setExtraStackFrame(null);
332
332
  }
333
- function Yt(t, f, m, g, P) {
333
+ function Mt(n, f, m, x, 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(ce);
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 z = Error((x || "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 z.name = "Invariant Violation", z;
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, x, 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).", x || "React class", m, E, typeof w), xe(null)), w instanceof Error && !(w.message in st) && (st[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 Oe(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 zt(n) {
363
363
  try {
364
- return st(t), !1;
364
+ return it(n), !1;
365
365
  } catch {
366
366
  return !0;
367
367
  }
368
368
  }
369
- function st(t) {
370
- return "" + t;
369
+ function it(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 ot(n) {
373
+ if (zt(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)), it(n);
375
375
  }
376
- var ce = y.ReactCurrentOwner, Gt = {
376
+ var ue = R.ReactCurrentOwner, Jt = {
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
+ }, ct, ut, $e;
382
+ $e = {};
383
+ function Gt(n) {
384
+ if (ce.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 (ce.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" && ue.current && f && ue.current.stateNode !== f) {
401
+ var m = I(ue.current.type);
402
+ $e[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', I(ue.current.type), n.ref), $e[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
+ ct || (ct = !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
+ ut || (ut = !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, x, 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
- value: g
449
- }), Object.defineProperty(C, "_source", {
448
+ value: x
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, x, 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, z = null;
459
+ m !== void 0 && (ot(m), w = "" + m), qt(f) && (ot(f.key), w = "" + f.key), Gt(f) && (z = f.ref, Xt(f, P));
460
+ for (T in f)
461
+ ce.call(f, T) && !Jt.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 || z) {
468
+ var F = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
469
+ w && Ht(E, F), z && Zt(E, F);
470
470
  }
471
- return en(t, C, K, P, g, ce.current, R);
471
+ return Qt(n, w, z, P, x, ue.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);
474
+ var De = R.ReactCurrentOwner, pt = R.ReactDebugCurrentFrame;
475
+ function ne(n) {
476
+ if (n) {
477
+ var f = n._owner, m = be(n.type, n._source, f ? f.type : null);
478
478
  pt.setExtraStackFrame(m);
479
479
  } else
480
480
  pt.setExtraStackFrame(null);
481
481
  }
482
482
  var Ie;
483
483
  Ie = !1;
484
- function Le(t) {
485
- return typeof t == "object" && t !== null && t.$$typeof === n;
484
+ function Fe(n) {
485
+ return typeof n == "object" && n !== null && n.$$typeof === r;
486
486
  }
487
487
  function ft() {
488
488
  {
489
489
  if (De.current) {
490
- var t = U(De.current.type);
491
- if (t)
490
+ var n = I(De.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 + ".";
@@ -508,11 +508,11 @@ Check your code at ` + f + ":" + m + ".";
508
508
  }
509
509
  }
510
510
  var dt = {};
511
- function rn(t) {
511
+ function nn(n) {
512
512
  {
513
513
  var f = ft();
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 mt(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);
527
+ n._store.validated = !0;
528
+ var m = nn(f);
529
529
  if (dt[m])
530
530
  return;
531
531
  dt[m] = !0;
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);
532
+ var x = "";
533
+ n && n._owner && n._owner !== De.current && (x = " It was passed a child from " + I(n._owner.type) + "."), ne(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, x), ne(null);
534
534
  }
535
535
  }
536
- function ht(t, f) {
536
+ function ht(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 (Oe(n))
541
+ for (var m = 0; m < n.length; m++) {
542
+ var x = n[m];
543
+ Fe(x) && mt(x, 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) && mt(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,153 +562,168 @@ 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);
570
+ var x = I(f);
571
+ Mt(m, n.props, "prop", x, n);
572
572
  } else if (f.PropTypes !== void 0 && !Ie) {
573
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");
574
+ var P = I(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++) {
583
- var g = f[m];
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);
582
+ for (var f = Object.keys(n.props), m = 0; m < f.length; m++) {
583
+ var x = f[m];
584
+ if (x !== "children" && x !== "key") {
585
+ ne(n), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ne(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 && (ne(n), _("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
590
590
  }
591
591
  }
592
- function kt(t, f, m, g, P, $) {
592
+ var kt = {};
593
+ function vt(n, f, m, x, 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 z = tn(P);
600
+ z ? w += z : w += ft();
601
+ var $;
602
+ n === null ? $ = "null" : Oe(n) ? $ = "array" : n !== void 0 && n.$$typeof === r ? ($ = "<" + (I(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 F = en(n, f, m, P, T);
605
+ if (F == null)
606
+ return F;
607
+ if (E) {
607
608
  var q = f.children;
608
609
  if (q !== void 0)
609
- if (g)
610
- if ($e(q)) {
610
+ if (x)
611
+ if (Oe(q)) {
611
612
  for (var re = 0; re < q.length; re++)
612
- ht(q[re], t);
613
+ ht(q[re], 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
+ ht(q, n);
619
+ }
620
+ if (ce.call(f, "key")) {
621
+ var ee = I(n), G = Object.keys(f).filter(function(pn) {
622
+ return pn !== "key";
623
+ }), Le = G.length > 0 ? "{key: someKey, " + G.join(": ..., ") + ": ...}" : "{key: someKey}";
624
+ if (!kt[ee + Le]) {
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} />`, Le, ee, un, ee), kt[ee + Le] = !0;
632
+ }
618
633
  }
619
- return t === a ? ln(L) : an(L), L;
634
+ return n === i ? an(F) : rn(F), F;
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 vt(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 vt(n, f, m, !1);
627
642
  }
628
- var cn = on, un = sn;
629
- pe.Fragment = a, pe.jsx = cn, pe.jsxs = un;
630
- }()), pe;
643
+ var on = ln, cn = sn;
644
+ fe.Fragment = i, fe.jsx = on, fe.jsxs = cn;
645
+ }()), fe;
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" ? Be.exports = kn() : Be.exports = vn();
648
+ var t = Be.exports;
649
+ const Ae = '<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 bn(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);
653
+ const Ue = {}, xn = async (e, r) => {
654
+ let a = 0;
655
+ for (; Ue[r + e + ".svg"] === "fetching" && (a++, !(a > 50)); )
656
+ await bn(50);
657
+ return localStorage.getItem(r + e + ".svg") ? Promise.resolve(localStorage.getItem(r + e + ".svg")) : typeof window.fetch == "function" ? (Ue[r + e + ".svg"] = "fetching", Promise.resolve(
658
+ fetch(r + e + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + r + e + ".svg"), Ae)).then((i) => (i !== Ae && localStorage.setItem(r + e + ".svg", i), Ue[r + e + ".svg"] = "fetched", i))
659
+ )) : Promise.resolve(Ae);
645
660
  }, 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);
661
+ fetchIcon: async (e, r) => xn(e, r || _n)
662
+ }, Nn = fn(gn), N = ({ name: e, path: r, className: a = "", ...i }) => {
663
+ const [s, l] = le(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(l) : l(null);
666
+ }, [e, r]), s ? /* @__PURE__ */ t.jsx(
652
667
  "span",
653
668
  {
654
- className: `pkt-icon ${r}`,
655
- dangerouslySetInnerHTML: { __html: l },
656
- ...a
669
+ className: `pkt-icon ${a}`,
670
+ dangerouslySetInnerHTML: { __html: s },
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,
665
- onClose: l,
666
- title: s,
677
+ className: r,
678
+ skin: a = "info",
679
+ closeAlert: i = !1,
680
+ onClose: s,
681
+ title: l,
667
682
  date: c,
668
683
  ariaLive: o = "polite",
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] = le(!0), j = () => {
688
+ C(!1), s && s();
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
+ l && /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__title", children: l }),
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
+ ), _r = V(
712
+ ({ href: e, text: r, onClick: a, className: i, ...s }, l) => {
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: l, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ t.jsxs("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: o, ...s, 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
  *
@@ -717,172 +732,156 @@ const Ue = {}, bn = async (e, n) => {
717
732
  *
718
733
  * @license MIT
719
734
  */
720
- function Be() {
721
- 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]);
735
+ function Me() {
736
+ return Me = Object.assign ? Object.assign.bind() : function(e) {
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
- }, Be.apply(this, arguments);
743
+ }, Me.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 me(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
- function Me(e) {
762
+ function Ye(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 wt(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 Nt(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);
776
- if (!l)
790
+ let [a, i] = yn(e.path, e.caseSensitive, e.end), s = r.match(a);
791
+ if (!s)
777
792
  return null;
778
- let s = l[0], c = s.replace(/(.)\/+$/, "$1"), o = l.slice(1);
793
+ let l = s[0], c = l.replace(/(.)\/+$/, "$1"), o = s.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 = l.slice(0, l.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
- pathname: s,
807
+ pathname: l,
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), me(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 = [], s = "^" + 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];
820
+ }), s += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? s += "\\/*$" : e !== "" && e !== "/" && (s += "(?:(?=\\/|$))"), [new RegExp(s, r ? void 0 : "i"), i];
806
821
  }
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
- }
813
- }
814
- function fe(e, n) {
815
- if (n === "/")
822
+ function ae(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 = "",
827
- hash: l = ""
828
- } = typeof e == "string" ? xt(e) : e;
833
+ pathname: a,
834
+ search: i = "",
835
+ hash: s = ""
836
+ } = typeof e == "string" ? wt(e) : e;
829
837
  return {
830
- pathname: r ? r.startsWith("/") ? r : Cn(r, n) : n,
831
- search: Sn(a),
832
- hash: Pn(l)
838
+ pathname: a ? a.startsWith("/") ? a : En(a, r) : r,
839
+ search: Rn(i),
840
+ hash: Pn(s)
833
841
  };
834
842
  }
835
- function Cn(e, n) {
836
- let r = n.replace(/\/+$/, "").split("/");
837
- return e.split("/").forEach((l) => {
838
- l === ".." ? r.length > 1 && r.pop() : l !== "." && r.push(l);
839
- }), r.length > 1 ? r.join("/") : "/";
843
+ function En(e, r) {
844
+ let a = r.replace(/\/+$/, "").split("/");
845
+ return e.split("/").forEach((s) => {
846
+ s === ".." ? a.length > 1 && a.pop() : s !== "." && a.push(s);
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 Ve(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 Et(e, r) {
856
+ let a = Cn(e);
857
+ return r ? a.map((i, s) => s === 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);
853
- 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)));
855
- let s = e === "" || l.pathname === "", c = s ? "/" : l.pathname, o;
859
+ function Ct(e, r, a, i) {
860
+ i === void 0 && (i = !1);
861
+ let s;
862
+ typeof e == "string" ? s = wt(e) : (s = Me({}, e), D(!s.pathname || !s.pathname.includes("?"), Ve("?", "pathname", "search", s)), D(!s.pathname || !s.pathname.includes("#"), Ve("#", "pathname", "hash", s)), D(!s.search || !s.search.includes("#"), Ve("#", "search", "hash", s)));
863
+ let l = e === "" || s.pathname === "", c = l ? "/" : s.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
- }
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("/");
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
+ s.pathname = k.join("/");
874
873
  }
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(s, o), u = c && c !== "/" && c.endsWith("/"), d = (l || 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 Ge = (e) => e.join("/").replace(/\/\/+/g, "/"), Rn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Pn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Rt = ["post", "put", "patch", "delete"];
880
+ new Set(Rt);
881
+ const Sn = ["get", ...Rt];
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
  *
@@ -891,161 +890,161 @@ new Set(Tn);
891
890
  *
892
891
  * @license MIT
893
892
  */
894
- function Ye() {
895
- 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]);
893
+ function Ke() {
894
+ return Ke = Object.assign ? Object.assign.bind() : function(e) {
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
- }, Ye.apply(this, arguments);
901
+ }, Ke.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);
903
+ const Ee = /* @__PURE__ */ g.createContext(null);
904
+ process.env.NODE_ENV !== "production" && (Ee.displayName = "DataRouter");
905
+ const Pt = /* @__PURE__ */ g.createContext(null);
907
906
  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);
907
+ const Tn = /* @__PURE__ */ g.createContext(null);
908
+ process.env.NODE_ENV !== "production" && (Tn.displayName = "Await");
909
+ const H = /* @__PURE__ */ g.createContext(null);
910
+ process.env.NODE_ENV !== "production" && (H.displayName = "Navigation");
911
+ const qe = /* @__PURE__ */ g.createContext(null);
913
912
  process.env.NODE_ENV !== "production" && (qe.displayName = "Location");
914
- const se = /* @__PURE__ */ N.createContext({
913
+ const ie = /* @__PURE__ */ g.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" && (ie.displayName = "Route");
919
+ const On = /* @__PURE__ */ g.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
+ Xe() || (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,
934
- navigator: l
935
- } = N.useContext(Q), {
936
- hash: s,
932
+ basename: i,
933
+ navigator: s
934
+ } = g.useContext(H), {
935
+ hash: l,
937
936
  pathname: c,
938
937
  search: o
939
- } = he(e, {
940
- relative: r
938
+ } = ke(e, {
939
+ relative: a
941
940
  }), p = c;
942
- return a !== "/" && (p = c === "/" ? a : Ge([a, c])), l.createHref({
941
+ return i !== "/" && (p = c === "/" ? i : Ge([i, c])), s.createHref({
943
942
  pathname: p,
944
943
  search: o,
945
- hash: s
944
+ hash: l
946
945
  });
947
946
  }
948
- function He() {
949
- return N.useContext(qe) != null;
947
+ function Xe() {
948
+ return g.useContext(qe) != null;
950
949
  }
951
- function me() {
952
- return He() || (process.env.NODE_ENV !== "production" ? I(
950
+ function he() {
951
+ return Xe() || (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)), g.useContext(qe).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 St = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
959
+ function Tt(e) {
960
+ g.useContext(H).static || g.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
+ } = g.useContext(ie);
966
+ return e ? Un() : In();
968
967
  }
969
968
  function In() {
970
- He() || (process.env.NODE_ENV !== "production" ? I(
969
+ Xe() || (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), {
981
- matches: l
982
- } = N.useContext(se), {
983
- pathname: s
984
- } = me(), c = JSON.stringify(Ct(l, r.v7_relativeSplatPath)), o = N.useRef(!1);
985
- return Ot(() => {
974
+ ) : D(!1));
975
+ let e = g.useContext(Ee), {
976
+ basename: r,
977
+ future: a,
978
+ navigator: i
979
+ } = g.useContext(H), {
980
+ matches: s
981
+ } = g.useContext(ie), {
982
+ pathname: l
983
+ } = he(), c = JSON.stringify(Et(s, a.v7_relativeSplatPath)), o = g.useRef(!1);
984
+ return Tt(() => {
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
+ }), g.useCallback(function(u, d) {
987
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && me(o.current, St), !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 = Ct(u, JSON.parse(c), l, d.relative === "path");
994
+ e == null && r !== "/" && (h.pathname = h.pathname === "/" ? r : Ge([r, h.pathname])), (d.replace ? i.replace : i.push)(h, d.state, d);
995
+ }, [r, i, c, l, e]);
997
996
  }
998
- function he(e, n) {
997
+ function ke(e, r) {
999
998
  let {
1000
- relative: r
1001
- } = n === void 0 ? {} : n, {
1002
- future: a
1003
- } = N.useContext(Q), {
1004
- matches: l
1005
- } = N.useContext(se), {
1006
- 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]);
999
+ relative: a
1000
+ } = r === void 0 ? {} : r, {
1001
+ future: i
1002
+ } = g.useContext(H), {
1003
+ matches: s
1004
+ } = g.useContext(ie), {
1005
+ pathname: l
1006
+ } = he(), c = JSON.stringify(Et(s, i.v7_relativeSplatPath));
1007
+ return g.useMemo(() => Ct(e, JSON.parse(c), l, a === "path"), [e, c, l, a]);
1009
1008
  }
1010
- var $t = /* @__PURE__ */ function(e) {
1009
+ var Ot = /* @__PURE__ */ function(e) {
1011
1010
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
1012
- }($t || {}), Xe = /* @__PURE__ */ function(e) {
1011
+ }(Ot || {}), He = /* @__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
- }(Xe || {});
1015
- function jt(e) {
1013
+ }(He || {});
1014
+ function $t(e) {
1016
1015
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1017
1016
  }
1018
- function Ln(e) {
1019
- let n = N.useContext(Ce);
1020
- return n || (process.env.NODE_ENV !== "production" ? I(!1, jt(e)) : I(!1)), n;
1021
- }
1022
1017
  function Fn(e) {
1023
- let n = N.useContext(se);
1024
- return n || (process.env.NODE_ENV !== "production" ? I(!1, jt(e)) : I(!1)), n;
1018
+ let r = g.useContext(Ee);
1019
+ return r || (process.env.NODE_ENV !== "production" ? D(!1, $t(e)) : D(!1)), r;
1025
1020
  }
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;
1021
+ function Ln(e) {
1022
+ let r = g.useContext(ie);
1023
+ return r || (process.env.NODE_ENV !== "production" ? D(!1, $t(e)) : D(!1)), r;
1029
1024
  }
1030
- function Un() {
1031
- return Dt(Xe.UseRouteId);
1025
+ function Dt(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;
1032
1028
  }
1033
1029
  function An() {
1030
+ return Dt(He.UseRouteId);
1031
+ }
1032
+ function Un() {
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
1042
- }, s)));
1043
- }, [e, n]);
1035
+ } = Fn(Ot.UseNavigateStable), r = Dt(He.UseNavigateStable), a = g.useRef(!1);
1036
+ return Tt(() => {
1037
+ a.current = !0;
1038
+ }), g.useCallback(function(s, l) {
1039
+ l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && me(a.current, St), a.current && (typeof s == "number" ? e.navigate(s) : e.navigate(s, Ke({
1040
+ fromRouteId: r
1041
+ }, l)));
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
  *
@@ -1054,518 +1053,524 @@ new Promise(() => {
1054
1053
  *
1055
1054
  * @license MIT
1056
1055
  */
1057
- function ae() {
1058
- 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]);
1056
+ function se() {
1057
+ return se = Object.assign ? Object.assign.bind() : function(e) {
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
- }, ae.apply(this, arguments);
1064
+ }, se.apply(this, arguments);
1066
1065
  }
1067
- function Ze(e, n) {
1066
+ function Ze(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), s, l;
1070
+ for (l = 0; l < i.length; l++)
1071
+ s = i[l], !(r.indexOf(s) >= 0) && (a[s] = e[s]);
1072
+ return a;
1074
1073
  }
1075
- const ye = "get", we = "application/x-www-form-urlencoded";
1076
- function Re(e) {
1074
+ const Ne = "get", je = "application/x-www-form-urlencoded";
1075
+ function Ce(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 Ce(e) && e.tagName.toLowerCase() === "button";
1081
1080
  }
1082
1081
  function Wn(e) {
1083
- return Re(e) && e.tagName.toLowerCase() === "form";
1082
+ return Ce(e) && e.tagName.toLowerCase() === "form";
1084
1083
  }
1085
1084
  function Bn(e) {
1086
- return Re(e) && e.tagName.toLowerCase() === "input";
1085
+ return Ce(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
- const Jn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1111
- 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;
1109
+ const zn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1110
+ function We(e) {
1111
+ return e != null && !zn.has(e) ? (process.env.NODE_ENV !== "production" && me(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + je + '"')), null) : e;
1113
1112
  }
1114
- function zn(e, n) {
1115
- let r, a, l, s, c;
1113
+ function Jn(e, r) {
1114
+ let a, i, s, l, 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 ? ae(o, r) : null, a = e.getAttribute("method") || Ne, s = We(e.getAttribute("enctype")) || je, l = 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 ? ae(p, r) : null, a = e.getAttribute("formmethod") || o.getAttribute("method") || Ne, s = We(e.getAttribute("formenctype")) || We(o.getAttribute("enctype")) || je, l = 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
+ l.append(k + "x", "0"), l.append(k + "y", "0");
1133
1132
  } else
1134
- u && s.append(u, k);
1133
+ u && l.append(u, h);
1135
1134
  }
1136
1135
  } else {
1137
- if (Re(e))
1136
+ if (Ce(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 = Ne, i = null, s = je, c = e;
1140
1139
  }
1141
- return s && l === "text/plain" && (c = s, s = void 0), {
1142
- action: a,
1143
- method: r.toLowerCase(),
1144
- encType: l,
1145
- formData: s,
1140
+ return l && s === "text/plain" && (c = l, l = void 0), {
1141
+ action: i,
1142
+ method: a.toLowerCase(),
1143
+ encType: s,
1144
+ formData: l,
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 It = /* @__PURE__ */ g.createContext({
1150
1154
  isTransitioning: !1
1151
1155
  });
1152
1156
  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");
1157
+ const Zn = /* @__PURE__ */ g.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, ye = /* @__PURE__ */ g.forwardRef(function(r, a) {
1157
1161
  let {
1158
- onClick: a,
1159
- relative: l,
1160
- reloadDocument: s,
1162
+ onClick: i,
1163
+ relative: s,
1164
+ reloadDocument: l,
1161
1165
  replace: c,
1162
1166
  state: o,
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 = Ze(r, Gn), {
1172
+ basename: C
1173
+ } = g.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 = ae(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" && me(!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, {
1178
- relative: l
1179
- }), y = rr(u, {
1181
+ let O = $n(u, {
1182
+ relative: s
1183
+ }), R = ar(u, {
1180
1184
  replace: c,
1181
1185
  state: o,
1182
1186
  target: p,
1183
1187
  preventScrollReset: d,
1184
- relative: l,
1185
- unstable_viewTransition: k
1188
+ relative: s,
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__ */ g.createElement("a", se({}, k, {
1197
+ href: j || O,
1198
+ onClick: S || l ? 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" && (ye.displayName = "Link");
1205
+ const tr = /* @__PURE__ */ g.forwardRef(function(r, a) {
1202
1206
  let {
1203
- "aria-current": a = "page",
1204
- caseSensitive: l = !1,
1205
- className: s = "",
1207
+ "aria-current": i = "page",
1208
+ caseSensitive: s = !1,
1209
+ className: l = "",
1206
1210
  end: c = !1,
1207
1211
  style: o,
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 = Ze(r, qn), k = ke(p, {
1216
+ relative: h.relative
1217
+ }), C = he(), j = g.useContext(Pt), {
1218
+ navigator: S,
1219
+ basename: O
1220
+ } = g.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
+ s || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && O && (y = ae(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(" ");
1226
- 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,
1231
- style: z,
1228
+ isTransitioning: R
1229
+ }, M = U ? i : void 0, Y;
1230
+ typeof l == "function" ? Y = l(B) : Y = [l, U ? "active" : null, W ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
1231
+ let J = typeof o == "function" ? o(B) : o;
1232
+ return /* @__PURE__ */ g.createElement(ye, se({}, h, {
1233
+ "aria-current": M,
1234
+ className: Y,
1235
+ ref: a,
1236
+ style: J,
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__ */ g.forwardRef((e, r) => {
1238
1243
  let {
1239
- fetcherKey: r,
1240
- navigate: a,
1241
- reloadDocument: l,
1242
- replace: s,
1244
+ fetcherKey: a,
1245
+ navigate: i,
1246
+ reloadDocument: s,
1247
+ replace: l,
1243
1248
  state: c,
1244
- method: o = ye,
1249
+ method: o = Ne,
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 = Ze(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,
1261
- replace: s,
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,
1266
+ replace: l,
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__ */ g.createElement("form", se({
1274
+ ref: r,
1275
+ method: O,
1276
+ action: S,
1277
+ onSubmit: s ? 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 we;
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
+ })(we || (we = {}));
1286
+ var jt;
1282
1287
  (function(e) {
1283
1288
  e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1284
- })(wt || (wt = {}));
1285
- function nr(e) {
1289
+ })(jt || (jt = {}));
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 = g.useContext(Ee);
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,
1296
- state: l,
1297
- preventScrollReset: s,
1299
+ target: a,
1300
+ replace: i,
1301
+ state: s,
1302
+ preventScrollReset: l,
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 = he(), d = ke(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 g.useCallback((h) => {
1309
+ if (Yn(h, a)) {
1310
+ h.preventDefault();
1311
+ let k = i !== void 0 ? i : Ye(u) === Ye(d);
1307
1312
  p(e, {
1308
- replace: v,
1309
- state: l,
1310
- preventScrollReset: s,
1313
+ replace: k,
1314
+ state: s,
1315
+ preventScrollReset: l,
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, s, a, e, l, 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(we.UseSubmit), {
1331
+ basename: r
1332
+ } = g.useContext(H), a = An();
1333
+ return g.useCallback(function(i, s) {
1334
+ s === void 0 && (s = {}), sr();
1330
1335
  let {
1331
- action: s,
1336
+ action: l,
1332
1337
  method: c,
1333
1338
  encType: o,
1334
1339
  formData: p,
1335
1340
  body: u
1336
- } = zn(a, n);
1337
- if (l.navigate === !1) {
1338
- let d = l.fetcherKey || ir();
1339
- e.fetch(d, r, l.action || s, {
1340
- preventScrollReset: l.preventScrollReset,
1341
+ } = Jn(i, r);
1342
+ if (s.navigate === !1) {
1343
+ let d = s.fetcherKey || ir();
1344
+ e.fetch(d, a, s.action || l, {
1345
+ preventScrollReset: s.preventScrollReset,
1341
1346
  formData: p,
1342
1347
  body: u,
1343
- formMethod: l.method || c,
1344
- formEncType: l.encType || o,
1345
- unstable_flushSync: l.unstable_flushSync
1348
+ formMethod: s.method || c,
1349
+ formEncType: s.encType || o,
1350
+ unstable_flushSync: s.unstable_flushSync
1346
1351
  });
1347
1352
  } else
1348
- e.navigate(l.action || s, {
1349
- preventScrollReset: l.preventScrollReset,
1353
+ e.navigate(s.action || l, {
1354
+ preventScrollReset: s.preventScrollReset,
1350
1355
  formData: p,
1351
1356
  body: u,
1352
- formMethod: l.method || c,
1353
- formEncType: l.encType || o,
1354
- replace: l.replace,
1355
- state: l.state,
1356
- fromRouteId: r,
1357
- unstable_flushSync: l.unstable_flushSync,
1358
- unstable_viewTransition: l.unstable_viewTransition
1357
+ formMethod: s.method || c,
1358
+ formEncType: s.encType || o,
1359
+ replace: s.replace,
1360
+ state: s.state,
1361
+ fromRouteId: a,
1362
+ unstable_flushSync: s.unstable_flushSync,
1363
+ unstable_viewTransition: s.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
- let [s] = l.matches.slice(-1), c = ae({}, he(e || ".", {
1370
- relative: r
1371
- })), o = me();
1369
+ relative: a
1370
+ } = r === void 0 ? {} : r, {
1371
+ basename: i
1372
+ } = g.useContext(H), s = g.useContext(ie);
1373
+ s || (process.env.NODE_ENV !== "production" ? D(!1, "useFormAction must be used inside a RouteContext") : D(!1));
1374
+ let [l] = s.matches.slice(-1), c = se({}, ke(e || ".", {
1375
+ relative: a
1376
+ })), o = he();
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 === ".") && l.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (c.pathname = c.pathname === "/" ? i : Ge([i, c.pathname])), Ye(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 = g.useContext(It);
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(we.useViewTransitionState), s = ke(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 l = ae(a.currentLocation.pathname, i) || a.currentLocation.pathname, c = ae(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1396
+ return Nt(s.pathname, c) != null || Nt(s.pathname, l) != null;
1392
1397
  }
1393
- const br = M(
1394
- ({ breadcrumbs: e, navigationType: n, className: r, ...a }, l) => {
1395
- const s = e.slice(0, 4), c = s[s.length - 2], o = [
1396
- r,
1398
+ const br = V(
1399
+ ({ breadcrumbs: e, navigationType: r, className: a, ...i }, s) => {
1400
+ const l = e.slice(0, 4), c = l[l.length - 2], o = [
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: s, "aria-label": "brødsmulemeny", className: o, children: [
1405
+ /* @__PURE__ */ t.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: l.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 === l.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
+ ye,
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
+ ye,
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
+ ), de = V(
1480
1485
  ({
1481
1486
  children: e,
1482
- className: n,
1483
- iconName: r = "user",
1484
- secondIconName: a = "user",
1485
- size: l = "medium",
1486
- skin: s = "primary",
1487
+ className: r,
1488
+ iconName: a = "user",
1489
+ secondIconName: i = "user",
1490
+ size: s = "medium",
1491
+ skin: l = "primary",
1487
1492
  type: c = "button",
1488
1493
  variant: o = "label-only",
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
- l && `pkt-btn--${l}`,
1497
1501
  s && `pkt-btn--${s}`,
1502
+ l && `pkt-btn--${l}`,
1498
1503
  o && `pkt-btn--${o}`,
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
1522
  de.displayName = "PktButton";
1518
- const ur = M(
1523
+ const pr = V(
1519
1524
  ({
1520
1525
  id: e,
1521
- hasTile: n = !1,
1522
- disabled: r = !1,
1523
- label: a,
1524
- labelPosition: l = "right",
1525
- hideLabel: s = !1,
1526
+ hasTile: r = !1,
1527
+ disabled: a = !1,
1528
+ label: i,
1529
+ labelPosition: s = "right",
1530
+ hideLabel: l = !1,
1526
1531
  checkHelptext: c,
1527
1532
  hasError: o = !1,
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 && s === "left" && /* @__PURE__ */ t.jsxs(
1539
1544
  "label",
1540
1545
  {
1541
- className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1546
+ className: `pkt-input-check__input-label ${l ? "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 && s === "right" && /* @__PURE__ */ t.jsxs(
1562
1567
  "label",
1563
1568
  {
1564
- className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1569
+ className: `pkt-input-check__input-label ${l ? "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 xr = ({
1579
1584
  columnOne: e,
1580
- columnTwo: n,
1581
- socialLinks: r,
1582
- className: a,
1583
- personvernOgInfoLink: l = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1584
- tilgjengelighetLink: s = "https://www.oslo.kommune.no/tilgjengelighet/"
1585
+ columnTwo: r,
1586
+ socialLinks: a,
1587
+ className: i,
1588
+ personvernOgInfoLink: s = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1589
+ tilgjengelighetLink: l = "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
- href: l,
1640
+ href: s,
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: l, 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,49 +1677,49 @@ 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
- }, Nr = ({
1685
+ }, gr = ({
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 s = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1692
+ return /* @__PURE__ */ t.jsx("footer", { className: s, "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((l, c) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs(
1689
1694
  "a",
1690
1695
  {
1691
- className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
1692
- href: s.href,
1693
- target: s.openInNewTab ? "_blank" : "_self",
1694
- rel: s.openInNewTab ? "noopener noreferrer" : void 0,
1696
+ className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
1697
+ href: l.href,
1698
+ target: l.openInNewTab ? "_blank" : "_self",
1699
+ rel: l.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"
1701
1706
  }
1702
1707
  ),
1703
- s.text
1708
+ l.text
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 Lt = { exports: {} };
1718
1723
  /*!
1719
1724
  Copyright (c) 2018 Jed Watson.
1720
1725
  Licensed under the MIT License (MIT), see
@@ -1722,107 +1727,107 @@ 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 l = "", c = 0; c < arguments.length; c++) {
1733
+ var o = arguments[c];
1734
+ o && (l = s(l, i(o)));
1747
1735
  }
1748
- return a.join(" ");
1736
+ return l;
1749
1737
  }
1750
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1738
+ function i(l) {
1739
+ if (typeof l == "string" || typeof l == "number")
1740
+ return l;
1741
+ if (typeof l != "object")
1742
+ return "";
1743
+ if (Array.isArray(l))
1744
+ return a.apply(null, l);
1745
+ if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
1746
+ return l.toString();
1747
+ var c = "";
1748
+ for (var o in l)
1749
+ r.call(l, o) && l[o] && (c = s(c, o));
1750
+ return c;
1751
+ }
1752
+ function s(l, c) {
1753
+ return c ? l ? l + " " + c : l + c : l;
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
+ })(Lt);
1758
+ var fr = Lt.exports;
1759
+ const te = /* @__PURE__ */ hn(fr), Nr = V(
1755
1760
  ({
1756
1761
  className: e,
1757
- logoLink: n = "https://www.oslo.kommune.no/",
1758
- serviceName: r,
1759
- fixed: a = !0,
1760
- scrollToHide: l = !0,
1761
- user: s,
1762
+ logoLink: r = "https://www.oslo.kommune.no/",
1763
+ serviceName: a,
1764
+ fixed: i = !0,
1765
+ scrollToHide: s = !0,
1766
+ user: l,
1762
1767
  userMenu: c,
1763
1768
  representing: o,
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 (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.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
+ }) : "", [l]), [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", I), () => {
1786
+ document.removeEventListener("mouseup", K), window.removeEventListener("scroll", I);
1782
1787
  }));
1783
- const G = () => {
1784
- V(!J);
1785
- }, Y = (b) => {
1786
- z.current && !z.current.contains(b.target) && V(!1);
1787
- }, U = () => {
1788
- if (l) {
1788
+ const J = () => {
1789
+ M(!B);
1790
+ }, K = (b) => {
1791
+ Y.current && !Y.current.contains(b.target) && M(!1);
1792
+ }, I = () => {
1793
+ if (s) {
1789
1794
  const b = window.pageYOffset || document.documentElement.scrollTop;
1790
- if (b < 0 || Math.abs(b - W) < 60)
1795
+ if (b < 0 || Math.abs(b - U) < 60)
1791
1796
  return;
1792
- F(b > W), B(b);
1797
+ A(b > U), W(b);
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,
1804
- "pkt-header--scroll-to-hide": l,
1805
- "pkt-header--hidden": O
1807
+ className: te(e, "pkt-header", {
1808
+ "pkt-header--fixed": i,
1809
+ "pkt-header--scroll-to-hide": s,
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(
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(
1839
1844
  de,
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
+ (l || 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: J,
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) || (l == null ? void 0 : l.name) }),
1873
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (l == null ? void 0 : l.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
+ l && /* @__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: l.name }),
1883
+ l.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" }),
1888
+ c && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx("ul", { className: "pkt-list", children: c.map((b, L) => /* @__PURE__ */ t.jsx("li", { children: typeof b.target == "string" ? /* @__PURE__ */ t.jsxs("a", { href: b.target, className: "pkt-link", children: [
1889
+ b.iconName && /* @__PURE__ */ t.jsx(N, { name: b.iconName, className: "pkt-link__icon" }),
1885
1890
  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" }),
1891
+ ] }) : /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1892
+ b.iconName && /* @__PURE__ */ t.jsx(N, { name: b.iconName, className: "pkt-link__icon" }),
1888
1893
  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: [
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" }),
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((b, L) => /* @__PURE__ */ t.jsx("li", { children: typeof b.target == "string" ? /* @__PURE__ */ t.jsxs("a", { href: b.target, className: "pkt-link", children: [
1911
+ b.iconName && /* @__PURE__ */ t.jsx(N, { name: b.iconName, className: "pkt-link__icon" }),
1907
1912
  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" }),
1913
+ ] }) : /* @__PURE__ */ t.jsxs("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1914
+ b.iconName && /* @__PURE__ */ t.jsx(N, { name: b.iconName, className: "pkt-link__icon" }),
1910
1915
  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" }),
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((b, L) => /* @__PURE__ */ t.jsx("li", { children: typeof b.target == "string" ? /* @__PURE__ */ t.jsx("a", { href: b.target, className: "pkt-link", children: b.title }) : /* @__PURE__ */ t.jsx("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: b.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(
1927
+ O && /* @__PURE__ */ t.jsx("li", { children: O }),
1928
+ k && /* @__PURE__ */ t.jsx("li", { children: /* @__PURE__ */ t.jsx(
1924
1929
  de,
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,504 +1942,472 @@ 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 }, s) => /* @__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: s }),
1949
+ a
1945
1950
  ] })
1946
1951
  );
1947
- fr.displayName = "PktInput";
1948
- const Se = M(
1952
+ dr.displayName = "PktInput";
1953
+ const Re = V(
1949
1954
  ({
1950
1955
  forId: e,
1951
- label: n,
1952
- helptext: r,
1953
- helptextDropdown: a,
1954
- helptextDropdownButton: l,
1955
- optionalTag: s = !1,
1956
+ label: r,
1957
+ helptext: a,
1958
+ helptextDropdown: i,
1959
+ helptextDropdownButton: s,
1960
+ optionalTag: l = !1,
1956
1961
  optionalText: c = "Valgfritt",
1957
1962
  requiredTag: o = !1,
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] = le(!1), A = () => {
1975
+ y(!v);
1976
+ }, U = () => l ? "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 = l ? c : o ? p : "", B = h ? "pkt-inputwrapper--disabled" : "", M = k ? "pkt-inputwrapper--inline" : "", Y = u ? "pkt-inputwrapper--error" : "", J = !!i && i !== "", K = s || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', I = R ? "fieldset" : J ? "div" : "label", b = R ? "legend" : J ? "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
+ I,
1980
+ {
1981
+ htmlFor: R ? void 0 : e,
1982
+ "aria-describedby": J ? void 0 : C,
1983
+ className: `pkt-inputwrapper__label${R ? " pkt-inputwrapper__fieldset" : ""}`,
1984
+ children: [
1985
+ /* @__PURE__ */ t.jsxs(b, { 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
+ J && i !== "" && /* @__PURE__ */ t.jsxs("div", { children: [
1998
+ /* @__PURE__ */ t.jsx(
1999
+ de,
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
+ Re.displayName = "PktInputWrapper";
2031
+ const mr = V(
2052
2032
  ({
2053
2033
  children: e,
2054
- className: n,
2055
- iconName: r = "user",
2056
- openInNewTab: a = !1,
2057
- skin: l = "normal",
2058
- href: s = "#",
2034
+ className: r,
2035
+ iconName: a = "user",
2036
+ openInNewTab: i = !1,
2037
+ skin: s = "normal",
2038
+ href: l = "#",
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", s && `pkt-linkcard--${s}`].filter(Boolean).join(" ");
2044
+ return /* @__PURE__ */ t.jsxs(
2065
2045
  "a",
2066
2046
  {
2067
2047
  ...p,
2068
- href: s,
2048
+ href: l,
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 jr = V(
2086
2066
  ({
2087
2067
  className: e,
2088
- message: n,
2089
- size: r = "medium",
2090
- inline: a = !1,
2091
- isLoading: l = !0,
2092
- variant: s = "rainbow",
2068
+ message: r,
2069
+ size: a = "medium",
2070
+ inline: i = !1,
2071
+ isLoading: s = !0,
2072
+ variant: l = "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] = le(!(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
- "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,
2087
+ "aria-busy": s,
2088
+ className: `pkt-loader--${i ? "inline" : "box"} ${e || ""}`,
2089
+ children: s ? /* @__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(l),
2114
2094
  "aria-label": "loading",
2115
2095
  path: "https://punkt-cdn.oslo.kommune.no/11.12/animations/",
2116
- className: `pkt-loader__svg pkt-loader__${s}`
2096
+ className: `pkt-loader__svg pkt-loader__${l}`
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
+ ), yr = ({
2125
2105
  children: e,
2126
- className: n,
2127
- compact: r = !1,
2128
- skin: a = "beige",
2129
- title: l,
2130
- ...s
2106
+ className: r,
2107
+ compact: a = !1,
2108
+ skin: i = "beige",
2109
+ title: s,
2110
+ ...l
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", { ...l, className: c, children: [
2119
+ s && /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__title", children: s }),
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,
2148
- hasTile: l = !1,
2149
- disabled: s = !1,
2125
+ name: r,
2126
+ label: a,
2127
+ className: i,
2128
+ hasTile: s = !1,
2129
+ disabled: l = !1,
2150
2130
  checkHelptext: c,
2151
2131
  hasError: o = !1,
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 ${s ? "pkt-input-check__input--tile" : ""} ${l && s ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2139
+ /* @__PURE__ */ t.jsx(
2160
2140
  "input",
2161
2141
  {
2162
2142
  ref: u,
2163
2143
  className: `pkt-input-check__input-checkbox ${o ? "pkt-input-check__input-checkbox--error" : ""}`,
2164
2144
  type: "radio",
2165
2145
  id: e,
2166
- disabled: s,
2167
- name: n,
2146
+ disabled: l,
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 wr = V(
2180
2160
  ({
2181
2161
  action: e,
2182
- appearance: n = "local",
2183
- disabled: r = !1,
2184
- fullwidth: a = !1,
2185
- id: l,
2186
- label: s,
2162
+ appearance: r = "local",
2163
+ disabled: a = !1,
2164
+ fullwidth: i = !1,
2165
+ id: s,
2166
+ label: l,
2187
2167
  method: c = "get",
2188
2168
  name: o,
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", _ = l ? "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: l ? s : void 0, className: l ? "pkt-inputwrapper__label" : "", children: [
2191
+ l && /* @__PURE__ */ t.jsx(t.Fragment, { children: l }),
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 || s,
2199
+ id: s,
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": `${s}-suggestions`
2207
+ }
2208
+ ),
2209
+ /* @__PURE__ */ t.jsx(
2210
+ de,
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: l || p
2222
+ }
2223
+ )
2224
+ ] })
2225
+ ] }),
2226
+ u && /* @__PURE__ */ t.jsx("ul", { id: `${s}-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
+ ), Er = V(
2286
2245
  ({
2287
2246
  ariaDescribedby: e,
2288
- ariaLabelledby: n,
2289
- children: r,
2290
- className: a,
2291
- disabled: l = !1,
2292
- errorMessage: s,
2247
+ ariaLabelledby: r,
2248
+ children: a,
2249
+ className: i,
2250
+ disabled: s = !1,
2251
+ errorMessage: l,
2293
2252
  hasError: c,
2294
2253
  helptext: o,
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
+ Re,
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
- errorMessage: s,
2324
- disabled: l,
2325
- inline: k,
2282
+ errorMessage: l,
2283
+ disabled: s,
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`,
2335
- disabled: l,
2293
+ "aria-labelledby": r || `${d}-label`,
2294
+ disabled: s,
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 = ({
2346
- isResponsive: e,
2347
- modifiers: { info: n = !1, success: r = !1, strong: a = !1, shadow: l = !1 } = {},
2304
+ ), Cr = ({
2305
+ className: e,
2306
+ compact: r = !1,
2307
+ skin: a = "basic",
2308
+ responsiveView: i = !0,
2348
2309
  children: s
2349
- }) => /* @__PURE__ */ i(hr, { isResponsive: e, children: /* @__PURE__ */ i(
2310
+ }) => /* @__PURE__ */ t.jsx(
2350
2311
  "table",
2351
2312
  {
2352
- className: Ut("pkt-table", {
2353
- "pkt-table--info": n,
2354
- "pkt-table--success": r,
2355
- "pkt-table--strong": a,
2356
- "pkt-table--shadow": l
2313
+ "data-testid": "pkt-table",
2314
+ className: te(e, "pkt-table", {
2315
+ "pkt-table--responsive": i,
2316
+ "pkt-table--compact": r,
2317
+ "pkt-table--basic": a === "basic",
2318
+ "pkt-table--zebra-grey": a === "zebra-grey",
2319
+ "pkt-table--zebra-blue": a === "zebra-blue"
2357
2320
  }),
2321
+ role: "table",
2358
2322
  children: s
2359
2323
  }
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(({
2324
+ ), Rr = ({ children: e, className: r, dataLabel: a }) => /* @__PURE__ */ t.jsx(
2325
+ "td",
2326
+ {
2327
+ className: te(r, "pkt-table__data-cell", {}),
2328
+ "data-label": a,
2329
+ role: "cell",
2330
+ "data-testid": "pkt-table__data-cell",
2331
+ children: e
2332
+ }
2333
+ ), Pr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("th", { className: te(e, "pkt-table__header-cell", {}), role: "columnheader", children: r }), Sr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("thead", { className: te(e, "pkt-table__header", {}), role: "rowgroup", children: r }), Tr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("tr", { className: te(e, "pkt-table__row", {}), role: "row", children: r }), Or = ({ children: e, className: r }) => /* @__PURE__ */ t.jsx("tbody", { className: te(r, "pkt-table__body", {}), role: "rowgroup", children: e }), ze = V(({
2361
2334
  children: e,
2362
- className: n,
2363
- skin: r = "blue",
2364
- textStyle: a = "normal-text",
2365
- size: l = "medium",
2366
- closeTag: s = !1,
2335
+ className: r,
2336
+ skin: a = "blue",
2337
+ textStyle: i = "normal-text",
2338
+ size: s = "medium",
2339
+ closeTag: l = !1,
2367
2340
  iconName: c = "",
2368
2341
  type: o = "button",
2369
2342
  ariaLabel: p = "close",
2370
2343
  onClick: u = () => {
2371
2344
  }
2372
2345
  }, d) => {
2373
- const [k, v] = le(!1), S = (y) => {
2374
- v(!0), u(y);
2375
- }, x = [
2346
+ const [h, k] = le(!1), C = (R) => {
2347
+ k(!0), u(R);
2348
+ }, j = [
2376
2349
  "pkt-tag",
2377
- l && `pkt-tag--${l}`,
2378
- r && `pkt-tag--${r}`,
2350
+ s && `pkt-tag--${s}`,
2379
2351
  a && `pkt-tag--${a}`,
2380
- n
2381
- ].filter(Boolean).join(" "), T = [
2352
+ i && `pkt-tag--${i}`,
2353
+ r
2354
+ ].filter(Boolean).join(" "), S = [
2382
2355
  "pkt-tag",
2383
2356
  "pkt-btn",
2384
2357
  "pkt-btn--tertiary",
2385
- l && `pkt-tag--${l}`,
2386
- r && `pkt-tag--${r}`,
2358
+ s && `pkt-tag--${s}`,
2387
2359
  a && `pkt-tag--${a}`,
2388
- c && s ? "pkt-btn--icons-right-and-left" : null,
2389
- 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(
2360
+ i && `pkt-tag--${i}`,
2361
+ c && l ? "pkt-btn--icons-right-and-left" : null,
2362
+ l && !c ? "pkt-btn--icon-right" : null,
2363
+ r
2364
+ ].filter(Boolean).join(" "), O = !h;
2365
+ return l && c ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2393
2366
  "button",
2394
2367
  {
2395
- className: T,
2368
+ className: S,
2396
2369
  type: o,
2397
2370
  "aria-label": p,
2398
- onClick: S,
2371
+ onClick: C,
2399
2372
  ref: d,
2400
2373
  children: [
2401
- /* @__PURE__ */ i(w, { className: "pkt-tag__icon", name: c }),
2374
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__icon", name: c }),
2402
2375
  e,
2403
- /* @__PURE__ */ i(w, { className: "pkt-tag__close-btn", name: "close" })
2376
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__close-btn", name: "close" })
2404
2377
  ]
2405
2378
  }
2406
- ) }) : s ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
2379
+ ) }) : l ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2407
2380
  "button",
2408
2381
  {
2409
- className: T,
2382
+ className: S,
2410
2383
  type: o,
2411
2384
  "aria-label": p,
2412
- onClick: S,
2385
+ onClick: C,
2413
2386
  ref: d,
2414
2387
  children: [
2415
- /* @__PURE__ */ i(w, { className: "pkt-tag__close-btn", name: "close" }),
2388
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__close-btn", name: "close" }),
2416
2389
  e
2417
2390
  ]
2418
2391
  }
2419
- ) }) : c ? /* @__PURE__ */ h("span", { className: x, children: [
2420
- /* @__PURE__ */ i(w, { className: "pkt-tag__icon", name: c }),
2392
+ ) }) : c ? /* @__PURE__ */ t.jsxs("span", { className: j, children: [
2393
+ /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__icon", name: c }),
2421
2394
  e
2422
- ] }) : /* @__PURE__ */ i("span", { className: x, children: e });
2395
+ ] }) : /* @__PURE__ */ t.jsx("span", { className: j, children: e });
2423
2396
  });
2424
- Ke.displayName = "PktTag";
2425
- const Tr = M(
2426
- ({ arrowNav: e = !0, tabs: n, onTabSelected: r }, a) => {
2427
- const l = Et([]);
2397
+ ze.displayName = "PktTag";
2398
+ const $r = V(
2399
+ ({ arrowNav: e = !0, tabs: r, onTabSelected: a }, i) => {
2400
+ const s = yt([]);
2428
2401
  Je(() => {
2429
- l.current = l.current.slice(0, n.length);
2430
- }, [n]);
2431
- const s = (o, p) => {
2432
- p.action && p.action(o), r && r(o);
2402
+ s.current = s.current.slice(0, r.length);
2403
+ }, [r]);
2404
+ const l = (o, p) => {
2405
+ p.action && p.action(o), a && a(o);
2433
2406
  }, c = (o, p) => {
2434
2407
  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]));
2408
+ e && (p.code === "ArrowLeft" && o !== 0 && ((u = s.current[o - 1]) == null || u.focus()), p.code === "ArrowRight" && o < r.length - 1 && ((d = s.current[o + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && l(o, r[o]));
2436
2409
  };
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(
2410
+ 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
2411
  "a",
2439
2412
  {
2440
2413
  "aria-selected": !!o.active,
@@ -2443,18 +2416,18 @@ const Tr = M(
2443
2416
  "aria-controls": o.controls,
2444
2417
  className: `pkt-tabs__link ${o.active ? "active" : ""}`,
2445
2418
  onKeyUp: (u) => c(p, u),
2446
- onClick: () => s(p, o),
2419
+ onClick: () => l(p, o),
2447
2420
  tabIndex: o.active || !e ? void 0 : -1,
2448
2421
  ref: (u) => {
2449
- l.current[p] = u;
2422
+ s.current[p] = u;
2450
2423
  },
2451
2424
  children: [
2452
- o.icon && /* @__PURE__ */ i(w, { name: o.icon, className: "pkt-icon--small" }),
2425
+ o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
2453
2426
  o.text,
2454
- o.tag && /* @__PURE__ */ i(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2427
+ o.tag && /* @__PURE__ */ t.jsx(ze, { skin: o.tag.skin, size: "small", children: o.tag.text })
2455
2428
  ]
2456
2429
  }
2457
- ) : /* @__PURE__ */ h(
2430
+ ) : /* @__PURE__ */ t.jsxs(
2458
2431
  "button",
2459
2432
  {
2460
2433
  "aria-selected": !!o.active,
@@ -2463,208 +2436,211 @@ const Tr = M(
2463
2436
  "aria-controls": o.controls,
2464
2437
  className: `pkt-tabs__button pkt-link-button ${o.active ? "active" : ""}`,
2465
2438
  onKeyUp: (u) => c(p, u),
2466
- onClick: () => s(p, o),
2439
+ onClick: () => l(p, o),
2467
2440
  tabIndex: o.active || !e ? void 0 : -1,
2468
2441
  ref: (u) => {
2469
- l.current[p] = u;
2442
+ s.current[p] = u;
2470
2443
  },
2471
2444
  children: [
2472
- o.icon && /* @__PURE__ */ i(w, { name: o.icon, className: "pkt-icon--small" }),
2445
+ o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
2473
2446
  o.text,
2474
- o.tag && /* @__PURE__ */ i(Ke, { skin: o.tag.skin, size: "small", children: o.tag.text })
2447
+ o.tag && /* @__PURE__ */ t.jsx(ze, { skin: o.tag.skin, size: "small", children: o.tag.text })
2475
2448
  ]
2476
2449
  },
2477
2450
  "b-" + p
2478
2451
  ) }, p)) }) });
2479
2452
  }
2480
- ), Or = M(
2453
+ ), Dr = V(
2481
2454
  ({
2482
2455
  id: e,
2483
- ariaDescribedby: n,
2484
- ariaLabelledby: r,
2485
- counter: a,
2486
- counterMaxLength: l,
2487
- className: s,
2456
+ ariaDescribedby: r,
2457
+ ariaLabelledby: a,
2458
+ counter: i,
2459
+ counterMaxLength: s,
2460
+ className: l,
2488
2461
  disabled: c,
2489
2462
  errorMessage: o,
2490
2463
  hasError: p,
2491
2464
  helptext: u,
2492
2465
  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);
2466
+ helptextDropdownButton: h,
2467
+ inline: k,
2468
+ fullwidth: C = !1,
2469
+ label: j,
2470
+ name: S,
2471
+ optionalTag: O = !1,
2472
+ optionalText: R,
2473
+ requiredTag: _ = !1,
2474
+ requiredText: v,
2475
+ placeholder: y,
2476
+ rows: A,
2477
+ useWrapper: U = !0,
2478
+ onChange: W,
2479
+ ...B
2480
+ }, M) => {
2481
+ const Y = [l, "pkt-textinput", "pkt-textarea"].join(" "), J = a || `${e}-label`, K = yt(null), [I, b] = le(0), L = (Z) => {
2482
+ var Q, oe;
2483
+ if (i && b(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), W)
2484
+ return W(Z);
2512
2485
  };
2513
2486
  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,
2487
+ var Z, Q;
2488
+ typeof M == "function" && M(K.current), i && b(((Q = (Z = K == null ? void 0 : K.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2489
+ }, [M]), /* @__PURE__ */ t.jsxs(
2490
+ Re,
2518
2491
  {
2519
- ariaDescribedby: n,
2520
- className: z,
2492
+ ariaDescribedby: r,
2493
+ className: Y,
2521
2494
  disabled: c,
2522
2495
  errorMessage: o,
2523
2496
  forId: e,
2524
2497
  hasError: p,
2525
2498
  helptext: u,
2526
2499
  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,
2500
+ helptextDropdownButton: h,
2501
+ inline: k,
2502
+ label: j,
2503
+ optionalTag: O,
2504
+ optionalText: R,
2505
+ requiredTag: _,
2506
+ requiredText: v,
2507
+ useWrapper: U,
2535
2508
  children: [
2536
- /* @__PURE__ */ i(
2509
+ /* @__PURE__ */ t.jsx(
2537
2510
  "textarea",
2538
2511
  {
2539
- ref: Y,
2540
- className: `pkt-input ${S ? "pkt-input--fullwidth" : ""} ${l && U > l ? "pkt-input--counter-error" : ""}`,
2541
- name: T || e,
2512
+ ref: K,
2513
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${s && I > s ? "pkt-input--counter-error" : ""}`,
2514
+ name: S || e,
2542
2515
  id: e,
2543
- placeholder: O,
2516
+ placeholder: y,
2544
2517
  disabled: c,
2545
- rows: F,
2546
- "aria-labelledby": G,
2518
+ rows: A,
2519
+ "aria-labelledby": J,
2547
2520
  "aria-invalid": p,
2548
2521
  "aria-errormessage": `${e}-error`,
2549
- ...J,
2550
- onChange: A
2522
+ ...B,
2523
+ onChange: L
2551
2524
  }
2552
2525
  ),
2553
- a && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2554
- U || 0,
2555
- l && `/${l}`
2526
+ i && /* @__PURE__ */ t.jsxs("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2527
+ I || 0,
2528
+ s && `/${s}`
2556
2529
  ] })
2557
2530
  ]
2558
2531
  }
2559
2532
  );
2560
2533
  }
2561
- ), $r = M(
2534
+ ), Ir = V(
2562
2535
  ({
2563
2536
  id: e,
2564
- ariaDescribedby: n,
2565
- ariaLabelledby: r,
2566
- autocomplete: a = "off",
2567
- className: l,
2568
- disabled: s = !1,
2537
+ ariaDescribedby: r,
2538
+ ariaLabelledby: a,
2539
+ autocomplete: i = "off",
2540
+ className: s,
2541
+ disabled: l = !1,
2569
2542
  errorMessage: c,
2570
2543
  hasError: o = !1,
2571
2544
  helptext: p,
2572
2545
  helptextDropdown: u,
2573
2546
  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,
2547
+ iconNameRight: h,
2548
+ inline: k = !1,
2549
+ fullwidth: C = !1,
2550
+ label: j,
2551
+ name: S,
2552
+ optionalTag: O = !1,
2553
+ optionalText: R,
2554
+ requiredTag: _ = !1,
2555
+ requiredText: v,
2556
+ placeholder: y,
2557
+ prefix: A,
2558
+ suffix: U,
2559
+ type: W = "text",
2560
+ useWrapper: B = !0,
2561
+ omitSearchIcon: M = !1,
2562
+ value: Y,
2563
+ ...J
2564
+ }, K) => {
2565
+ const I = [s, "pkt-textinput"].join(" "), b = a || `${e}-label`, L = W === "search" && !h && !M;
2566
+ return /* @__PURE__ */ t.jsx(
2567
+ Re,
2595
2568
  {
2596
- ariaDescribedby: n,
2597
- className: U,
2598
- disabled: s,
2569
+ ariaDescribedby: r,
2570
+ className: I,
2571
+ disabled: l,
2599
2572
  errorMessage: c,
2600
2573
  forId: e,
2601
2574
  hasError: o,
2602
2575
  helptext: p,
2603
2576
  helptextDropdown: u,
2604
2577
  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(
2578
+ inline: k,
2579
+ label: j,
2580
+ optionalTag: O,
2581
+ optionalText: R,
2582
+ requiredTag: _,
2583
+ requiredText: v,
2584
+ useWrapper: B,
2585
+ children: /* @__PURE__ */ t.jsxs("div", { className: "pkt-input__container", children: [
2586
+ A && /* @__PURE__ */ t.jsx("div", { className: "pkt-input-prefix", children: A }),
2587
+ /* @__PURE__ */ t.jsx(
2615
2588
  "input",
2616
2589
  {
2617
- ref: Y,
2618
- className: `pkt-input ${S ? "pkt-input--fullwidth" : ""}`,
2619
- type: B,
2620
- name: T || e,
2590
+ ref: K,
2591
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""}`,
2592
+ type: W,
2593
+ name: S || e,
2621
2594
  id: e,
2622
- placeholder: O,
2623
- autoComplete: a,
2624
- value: z,
2625
- disabled: s,
2595
+ placeholder: y,
2596
+ autoComplete: i,
2597
+ value: Y,
2598
+ disabled: l,
2626
2599
  "aria-invalid": o,
2627
2600
  "aria-errormessage": `${e}-error`,
2628
2601
  "aria-labelledby": b,
2629
- ...G
2602
+ ...J
2630
2603
  }
2631
2604
  ),
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" })
2605
+ U && /* @__PURE__ */ t.jsxs("p", { className: "pkt-input-suffix", children: [
2606
+ U,
2607
+ h && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-suffix-icon", name: h }),
2608
+ L && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
2636
2609
  ] }),
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" })
2610
+ !U && h && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-icon", name: h }),
2611
+ !U && L && /* @__PURE__ */ t.jsx(N, { className: "pkt-input-icon", name: "magnifying-glass-big" })
2639
2612
  ] })
2640
2613
  }
2641
2614
  );
2642
2615
  }
2643
2616
  );
2644
2617
  export {
2645
- yn as PktAlert,
2618
+ jn as PktAlert,
2646
2619
  _r as PktBackLink,
2647
2620
  br as PktBreadcrumbs,
2648
2621
  de as PktButton,
2649
- ur as PktCheckbox,
2650
- gr as PktFooter,
2651
- Nr as PktFooterSimple,
2652
- yr as PktHeader,
2653
- w as PktIcon,
2622
+ pr as PktCheckbox,
2623
+ xr as PktFooter,
2624
+ gr as PktFooterSimple,
2625
+ Nr as PktHeader,
2626
+ N as PktIcon,
2654
2627
  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,
2662
- Cr as PktSelect,
2663
- Rr as PktTable,
2664
- Sr as PktTableData,
2665
- Pr as PktTableHeader,
2666
- Tr as PktTabs,
2667
- Ke as PktTag,
2668
- Or as PktTextarea,
2669
- $r as PktTextinput
2628
+ dr as PktInput,
2629
+ Re as PktInputWrapper,
2630
+ mr as PktLinkCard,
2631
+ jr as PktLoader,
2632
+ yr as PktMessagebox,
2633
+ hr as PktRadioButton,
2634
+ wr as PktSearchInput,
2635
+ Er as PktSelect,
2636
+ Cr as PktTable,
2637
+ Or as PktTableBody,
2638
+ Rr as PktTableDataCell,
2639
+ Sr as PktTableHeader,
2640
+ Pr as PktTableHeaderCell,
2641
+ Tr as PktTableRow,
2642
+ $r as PktTabs,
2643
+ ze as PktTag,
2644
+ Dr as PktTextarea,
2645
+ Ir as PktTextinput
2670
2646
  };