@oslokommune/punkt-react 8.0.12 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import * as g from "react";
2
- import K, { useState as ue, useEffect as yt, forwardRef as z, useRef as on } from "react";
2
+ import G, { useState as ue, useEffect as yt, forwardRef as B, useRef as on } from "react";
3
3
  function sn(e) {
4
4
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5
5
  }
6
- var Ae = { exports: {} }, se = {};
6
+ var Ue = { exports: {} }, se = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -18,18 +18,18 @@ function cn() {
18
18
  if (kt)
19
19
  return se;
20
20
  kt = 1;
21
- var e = K, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function s(c, f, d) {
23
- var h, _ = {}, w = null, C = null;
24
- d !== void 0 && (w = "" + d), f.key !== void 0 && (w = "" + f.key), f.ref !== void 0 && (C = f.ref);
25
- for (h in f)
26
- o.call(f, h) && !i.hasOwnProperty(h) && (_[h] = f[h]);
21
+ var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function i(c, p, d) {
23
+ var h, v = {}, E = null, w = null;
24
+ d !== void 0 && (E = "" + d), p.key !== void 0 && (E = "" + p.key), p.ref !== void 0 && (w = p.ref);
25
+ for (h in p)
26
+ o.call(p, h) && !s.hasOwnProperty(h) && (v[h] = p[h]);
27
27
  if (c && c.defaultProps)
28
- for (h in f = c.defaultProps, f)
29
- _[h] === void 0 && (_[h] = f[h]);
30
- return { $$typeof: n, type: c, key: w, ref: C, props: _, _owner: a.current };
28
+ for (h in p = c.defaultProps, p)
29
+ v[h] === void 0 && (v[h] = p[h]);
30
+ return { $$typeof: n, type: c, key: E, ref: w, props: v, _owner: a.current };
31
31
  }
32
- return se.Fragment = r, se.jsx = s, se.jsxs = s, se;
32
+ return se.Fragment = r, se.jsx = i, se.jsxs = i, se;
33
33
  }
34
34
  var ce = {};
35
35
  /**
@@ -44,51 +44,51 @@ var ce = {};
44
44
  var vt;
45
45
  function un() {
46
46
  return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
47
- var e = K, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), P = Symbol.iterator, R = "@@iterator";
47
+ var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), S = Symbol.iterator, P = "@@iterator";
48
48
  function T(t) {
49
49
  if (t === null || typeof t != "object")
50
50
  return null;
51
- var u = P && t[P] || t[R];
51
+ var u = S && t[S] || t[P];
52
52
  return typeof u == "function" ? u : null;
53
53
  }
54
- var O = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
55
  function b(t) {
56
56
  {
57
- for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
58
- p[k - 1] = arguments[k];
59
- $("error", t, p);
57
+ for (var u = arguments.length, f = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
58
+ f[k - 1] = arguments[k];
59
+ j("error", t, f);
60
60
  }
61
61
  }
62
- function $(t, u, p) {
62
+ function j(t, u, f) {
63
63
  {
64
- var k = O.ReactDebugCurrentFrame, x = k.getStackAddendum();
65
- x !== "" && (u += "%s", p = p.concat([x]));
66
- var S = p.map(function(E) {
67
- return String(E);
64
+ var k = C.ReactDebugCurrentFrame, R = k.getStackAddendum();
65
+ R !== "" && (u += "%s", f = f.concat([R]));
66
+ var O = f.map(function(x) {
67
+ return String(x);
68
68
  });
69
- S.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, S);
69
+ O.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, O);
70
70
  }
71
71
  }
72
- var A = !1, V = !1, I = !1, J = !1, H = !1, B;
73
- B = Symbol.for("react.module.reference");
74
- function W(t) {
75
- return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || H || t === a || t === d || t === h || J || t === C || A || V || I || typeof t == "object" && t !== null && (t.$$typeof === w || t.$$typeof === _ || t.$$typeof === s || t.$$typeof === c || t.$$typeof === f || // This needs to include all possible module reference object
72
+ var F = !1, A = !1, U = !1, M = !1, H = !1, Y;
73
+ Y = Symbol.for("react.module.reference");
74
+ function K(t) {
75
+ return !!(typeof t == "string" || typeof t == "function" || t === o || t === s || H || t === a || t === d || t === h || M || t === w || F || A || U || typeof t == "object" && t !== null && (t.$$typeof === E || t.$$typeof === v || t.$$typeof === i || t.$$typeof === c || t.$$typeof === p || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
- t.$$typeof === B || t.getModuleId !== void 0));
79
+ t.$$typeof === Y || t.getModuleId !== void 0));
80
80
  }
81
- function G(t, u, p) {
81
+ function W(t, u, f) {
82
82
  var k = t.displayName;
83
83
  if (k)
84
84
  return k;
85
- var x = u.displayName || u.name || "";
86
- return x !== "" ? p + "(" + x + ")" : p;
85
+ var R = u.displayName || u.name || "";
86
+ return R !== "" ? f + "(" + R + ")" : f;
87
87
  }
88
- function v(t) {
88
+ function _(t) {
89
89
  return t.displayName || "Context";
90
90
  }
91
- function j(t) {
91
+ function D(t) {
92
92
  if (t == null)
93
93
  return null;
94
94
  if (typeof t.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
@@ -100,7 +100,7 @@ function un() {
100
100
  return "Fragment";
101
101
  case r:
102
102
  return "Portal";
103
- case i:
103
+ case s:
104
104
  return "Profiler";
105
105
  case a:
106
106
  return "StrictMode";
@@ -113,19 +113,19 @@ function un() {
113
113
  switch (t.$$typeof) {
114
114
  case c:
115
115
  var u = t;
116
- return v(u) + ".Consumer";
117
- case s:
118
- var p = t;
119
- return v(p._context) + ".Provider";
120
- case f:
121
- return G(t, t.render, "ForwardRef");
122
- case _:
116
+ return _(u) + ".Consumer";
117
+ case i:
118
+ var f = t;
119
+ return _(f._context) + ".Provider";
120
+ case p:
121
+ return W(t, t.render, "ForwardRef");
122
+ case v:
123
123
  var k = t.displayName || null;
124
- return k !== null ? k : j(t.type) || "Memo";
125
- case w: {
126
- var x = t, S = x._payload, E = x._init;
124
+ return k !== null ? k : D(t.type) || "Memo";
125
+ case E: {
126
+ var R = t, O = R._payload, x = R._init;
127
127
  try {
128
- return j(E(S));
128
+ return D(x(O));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,13 +133,13 @@ function un() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var M = Object.assign, te = 0, Z, Q, oe, Xe, Ze, Qe, et;
136
+ var J = Object.assign, q = 0, Z, Q, oe, Xe, Ze, Qe, et;
137
137
  function tt() {
138
138
  }
139
139
  tt.__reactDisabledLog = !0;
140
- function $t() {
140
+ function Lt() {
141
141
  {
142
- if (te === 0) {
142
+ if (q === 0) {
143
143
  Z = console.log, Q = console.info, oe = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
144
144
  var t = {
145
145
  configurable: !0,
@@ -157,208 +157,208 @@ function un() {
157
157
  groupEnd: t
158
158
  });
159
159
  }
160
- te++;
160
+ q++;
161
161
  }
162
162
  }
163
- function Ft() {
163
+ function It() {
164
164
  {
165
- if (te--, te === 0) {
165
+ if (q--, q === 0) {
166
166
  var t = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: M({}, t, {
172
+ log: J({}, t, {
173
173
  value: Z
174
174
  }),
175
- info: M({}, t, {
175
+ info: J({}, t, {
176
176
  value: Q
177
177
  }),
178
- warn: M({}, t, {
178
+ warn: J({}, t, {
179
179
  value: oe
180
180
  }),
181
- error: M({}, t, {
181
+ error: J({}, t, {
182
182
  value: Xe
183
183
  }),
184
- group: M({}, t, {
184
+ group: J({}, t, {
185
185
  value: Ze
186
186
  }),
187
- groupCollapsed: M({}, t, {
187
+ groupCollapsed: J({}, t, {
188
188
  value: Qe
189
189
  }),
190
- groupEnd: M({}, t, {
190
+ groupEnd: J({}, t, {
191
191
  value: et
192
192
  })
193
193
  });
194
194
  }
195
- te < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ q < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var Re = O.ReactCurrentDispatcher, Pe;
199
- function pe(t, u, p) {
198
+ var Pe = C.ReactCurrentDispatcher, Se;
199
+ function fe(t, u, f) {
200
200
  {
201
- if (Pe === void 0)
201
+ if (Se === void 0)
202
202
  try {
203
203
  throw Error();
204
- } catch (x) {
205
- var k = x.stack.trim().match(/\n( *(at )?)/);
206
- Pe = k && k[1] || "";
204
+ } catch (R) {
205
+ var k = R.stack.trim().match(/\n( *(at )?)/);
206
+ Se = k && k[1] || "";
207
207
  }
208
208
  return `
209
- ` + Pe + t;
209
+ ` + Se + t;
210
210
  }
211
211
  }
212
- var Se = !1, de;
212
+ var Oe = !1, de;
213
213
  {
214
- var It = typeof WeakMap == "function" ? WeakMap : Map;
215
- de = new It();
214
+ var Ft = typeof WeakMap == "function" ? WeakMap : Map;
215
+ de = new Ft();
216
216
  }
217
217
  function nt(t, u) {
218
- if (!t || Se)
218
+ if (!t || Oe)
219
219
  return "";
220
220
  {
221
- var p = de.get(t);
222
- if (p !== void 0)
223
- return p;
221
+ var f = de.get(t);
222
+ if (f !== void 0)
223
+ return f;
224
224
  }
225
225
  var k;
226
- Se = !0;
227
- var x = Error.prepareStackTrace;
226
+ Oe = !0;
227
+ var R = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
- var S;
230
- S = Re.current, Re.current = null, $t();
229
+ var O;
230
+ O = Pe.current, Pe.current = null, Lt();
231
231
  try {
232
232
  if (u) {
233
- var E = function() {
233
+ var x = function() {
234
234
  throw Error();
235
235
  };
236
- if (Object.defineProperty(E.prototype, "props", {
236
+ if (Object.defineProperty(x.prototype, "props", {
237
237
  set: function() {
238
238
  throw Error();
239
239
  }
240
240
  }), typeof Reflect == "object" && Reflect.construct) {
241
241
  try {
242
- Reflect.construct(E, []);
243
- } catch (q) {
244
- k = q;
242
+ Reflect.construct(x, []);
243
+ } catch (X) {
244
+ k = X;
245
245
  }
246
- Reflect.construct(t, [], E);
246
+ Reflect.construct(t, [], x);
247
247
  } else {
248
248
  try {
249
- E.call();
250
- } catch (q) {
251
- k = q;
249
+ x.call();
250
+ } catch (X) {
251
+ k = X;
252
252
  }
253
- t.call(E.prototype);
253
+ t.call(x.prototype);
254
254
  }
255
255
  } else {
256
256
  try {
257
257
  throw Error();
258
- } catch (q) {
259
- k = q;
258
+ } catch (X) {
259
+ k = X;
260
260
  }
261
261
  t();
262
262
  }
263
- } catch (q) {
264
- if (q && k && typeof q.stack == "string") {
265
- for (var N = q.stack.split(`
266
- `), U = k.stack.split(`
267
- `), D = N.length - 1, L = U.length - 1; D >= 1 && L >= 0 && N[D] !== U[L]; )
263
+ } catch (X) {
264
+ if (X && k && typeof X.stack == "string") {
265
+ for (var N = X.stack.split(`
266
+ `), V = k.stack.split(`
267
+ `), $ = N.length - 1, L = V.length - 1; $ >= 1 && L >= 0 && N[$] !== V[L]; )
268
268
  L--;
269
- for (; D >= 1 && L >= 0; D--, L--)
270
- if (N[D] !== U[L]) {
271
- if (D !== 1 || L !== 1)
269
+ for (; $ >= 1 && L >= 0; $--, L--)
270
+ if (N[$] !== V[L]) {
271
+ if ($ !== 1 || L !== 1)
272
272
  do
273
- if (D--, L--, L < 0 || N[D] !== U[L]) {
274
- var Y = `
275
- ` + N[D].replace(" at new ", " at ");
276
- return t.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", t.displayName)), typeof t == "function" && de.set(t, Y), Y;
273
+ if ($--, L--, L < 0 || N[$] !== V[L]) {
274
+ var z = `
275
+ ` + N[$].replace(" at new ", " at ");
276
+ return t.displayName && z.includes("<anonymous>") && (z = z.replace("<anonymous>", t.displayName)), typeof t == "function" && de.set(t, z), z;
277
277
  }
278
- while (D >= 1 && L >= 0);
278
+ while ($ >= 1 && L >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- Se = !1, Re.current = S, Ft(), Error.prepareStackTrace = x;
283
+ Oe = !1, Pe.current = O, It(), Error.prepareStackTrace = R;
284
284
  }
285
- var ae = t ? t.displayName || t.name : "", ht = ae ? pe(ae) : "";
285
+ var ae = t ? t.displayName || t.name : "", ht = ae ? fe(ae) : "";
286
286
  return typeof t == "function" && de.set(t, ht), ht;
287
287
  }
288
- function At(t, u, p) {
288
+ function At(t, u, f) {
289
289
  return nt(t, !1);
290
290
  }
291
291
  function Ut(t) {
292
292
  var u = t.prototype;
293
293
  return !!(u && u.isReactComponent);
294
294
  }
295
- function me(t, u, p) {
295
+ function me(t, u, f) {
296
296
  if (t == null)
297
297
  return "";
298
298
  if (typeof t == "function")
299
299
  return nt(t, Ut(t));
300
300
  if (typeof t == "string")
301
- return pe(t);
301
+ return fe(t);
302
302
  switch (t) {
303
303
  case d:
304
- return pe("Suspense");
304
+ return fe("Suspense");
305
305
  case h:
306
- return pe("SuspenseList");
306
+ return fe("SuspenseList");
307
307
  }
308
308
  if (typeof t == "object")
309
309
  switch (t.$$typeof) {
310
- case f:
310
+ case p:
311
311
  return At(t.render);
312
- case _:
313
- return me(t.type, u, p);
314
- case w: {
315
- var k = t, x = k._payload, S = k._init;
312
+ case v:
313
+ return me(t.type, u, f);
314
+ case E: {
315
+ var k = t, R = k._payload, O = k._init;
316
316
  try {
317
- return me(S(x), u, p);
317
+ return me(O(R), u, f);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var he = Object.prototype.hasOwnProperty, rt = {}, at = O.ReactDebugCurrentFrame;
324
+ var he = Object.prototype.hasOwnProperty, rt = {}, at = C.ReactDebugCurrentFrame;
325
325
  function ke(t) {
326
326
  if (t) {
327
- var u = t._owner, p = me(t.type, t._source, u ? u.type : null);
328
- at.setExtraStackFrame(p);
327
+ var u = t._owner, f = me(t.type, t._source, u ? u.type : null);
328
+ at.setExtraStackFrame(f);
329
329
  } else
330
330
  at.setExtraStackFrame(null);
331
331
  }
332
- function Vt(t, u, p, k, x) {
332
+ function Vt(t, u, f, k, R) {
333
333
  {
334
- var S = Function.call.bind(he);
335
- for (var E in t)
336
- if (S(t, E)) {
334
+ var O = Function.call.bind(he);
335
+ for (var x in t)
336
+ if (O(t, x)) {
337
337
  var N = void 0;
338
338
  try {
339
- if (typeof t[E] != "function") {
340
- var U = Error((k || "React class") + ": " + p + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
- throw U.name = "Invariant Violation", U;
339
+ if (typeof t[x] != "function") {
340
+ var V = Error((k || "React class") + ": " + f + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
+ throw V.name = "Invariant Violation", V;
342
342
  }
343
- N = t[E](u, E, k, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (D) {
345
- N = D;
343
+ N = t[x](u, x, k, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch ($) {
345
+ N = $;
346
346
  }
347
- N && !(N instanceof Error) && (ke(x), b("%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).", k || "React class", p, E, typeof N), ke(null)), N instanceof Error && !(N.message in rt) && (rt[N.message] = !0, ke(x), b("Failed %s type: %s", p, N.message), ke(null));
347
+ N && !(N instanceof Error) && (ke(R), b("%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).", k || "React class", f, x, typeof N), ke(null)), N instanceof Error && !(N.message in rt) && (rt[N.message] = !0, ke(R), b("Failed %s type: %s", f, N.message), ke(null));
348
348
  }
349
349
  }
350
350
  }
351
351
  var Wt = Array.isArray;
352
- function Oe(t) {
352
+ function Te(t) {
353
353
  return Wt(t);
354
354
  }
355
- function Mt(t) {
355
+ function Bt(t) {
356
356
  {
357
- var u = typeof Symbol == "function" && Symbol.toStringTag, p = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
358
- return p;
357
+ var u = typeof Symbol == "function" && Symbol.toStringTag, f = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
358
+ return f;
359
359
  }
360
360
  }
361
- function Bt(t) {
361
+ function Mt(t) {
362
362
  try {
363
363
  return lt(t), !1;
364
364
  } catch {
@@ -369,16 +369,16 @@ function un() {
369
369
  return "" + t;
370
370
  }
371
371
  function ot(t) {
372
- if (Bt(t))
373
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(t)), lt(t);
372
+ if (Mt(t))
373
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(t)), lt(t);
374
374
  }
375
- var ie = O.ReactCurrentOwner, Yt = {
375
+ var ie = C.ReactCurrentOwner, Yt = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, it, st, Te;
381
- Te = {};
380
+ }, it, st, je;
381
+ je = {};
382
382
  function Jt(t) {
383
383
  if (he.call(t, "ref")) {
384
384
  var u = Object.getOwnPropertyDescriptor(t, "ref").get;
@@ -387,7 +387,7 @@ function un() {
387
387
  }
388
388
  return t.ref !== void 0;
389
389
  }
390
- function Ht(t) {
390
+ function zt(t) {
391
391
  if (he.call(t, "key")) {
392
392
  var u = Object.getOwnPropertyDescriptor(t, "key").get;
393
393
  if (u && u.isReactWarning)
@@ -395,45 +395,45 @@ function un() {
395
395
  }
396
396
  return t.key !== void 0;
397
397
  }
398
- function zt(t, u) {
398
+ function Ht(t, u) {
399
399
  if (typeof t.ref == "string" && ie.current && u && ie.current.stateNode !== u) {
400
- var p = j(ie.current.type);
401
- Te[p] || (b('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', j(ie.current.type), t.ref), Te[p] = !0);
400
+ var f = D(ie.current.type);
401
+ je[f] || (b('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', D(ie.current.type), t.ref), je[f] = !0);
402
402
  }
403
403
  }
404
- function Gt(t, u) {
404
+ function Kt(t, u) {
405
405
  {
406
- var p = function() {
406
+ var f = function() {
407
407
  it || (it = !0, b("%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)", u));
408
408
  };
409
- p.isReactWarning = !0, Object.defineProperty(t, "key", {
410
- get: p,
409
+ f.isReactWarning = !0, Object.defineProperty(t, "key", {
410
+ get: f,
411
411
  configurable: !0
412
412
  });
413
413
  }
414
414
  }
415
- function Kt(t, u) {
415
+ function qt(t, u) {
416
416
  {
417
- var p = function() {
417
+ var f = function() {
418
418
  st || (st = !0, b("%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)", u));
419
419
  };
420
- p.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
- get: p,
420
+ f.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
+ get: f,
422
422
  configurable: !0
423
423
  });
424
424
  }
425
425
  }
426
- var qt = function(t, u, p, k, x, S, E) {
426
+ var Gt = function(t, u, f, k, R, O, x) {
427
427
  var N = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
429
  $$typeof: n,
430
430
  // Built-in properties that belong on the element
431
431
  type: t,
432
432
  key: u,
433
- ref: p,
434
- props: E,
433
+ ref: f,
434
+ props: x,
435
435
  // Record the component responsible for creating this element.
436
- _owner: S
436
+ _owner: O
437
437
  };
438
438
  return N._store = {}, Object.defineProperty(N._store, "validated", {
439
439
  configurable: !1,
@@ -449,44 +449,44 @@ function un() {
449
449
  configurable: !1,
450
450
  enumerable: !1,
451
451
  writable: !1,
452
- value: x
452
+ value: R
453
453
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
454
454
  };
455
- function Xt(t, u, p, k, x) {
455
+ function Xt(t, u, f, k, R) {
456
456
  {
457
- var S, E = {}, N = null, U = null;
458
- p !== void 0 && (ot(p), N = "" + p), Ht(u) && (ot(u.key), N = "" + u.key), Jt(u) && (U = u.ref, zt(u, x));
459
- for (S in u)
460
- he.call(u, S) && !Yt.hasOwnProperty(S) && (E[S] = u[S]);
457
+ var O, x = {}, N = null, V = null;
458
+ f !== void 0 && (ot(f), N = "" + f), zt(u) && (ot(u.key), N = "" + u.key), Jt(u) && (V = u.ref, Ht(u, R));
459
+ for (O in u)
460
+ he.call(u, O) && !Yt.hasOwnProperty(O) && (x[O] = u[O]);
461
461
  if (t && t.defaultProps) {
462
- var D = t.defaultProps;
463
- for (S in D)
464
- E[S] === void 0 && (E[S] = D[S]);
462
+ var $ = t.defaultProps;
463
+ for (O in $)
464
+ x[O] === void 0 && (x[O] = $[O]);
465
465
  }
466
- if (N || U) {
466
+ if (N || V) {
467
467
  var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
468
- N && Gt(E, L), U && Kt(E, L);
468
+ N && Kt(x, L), V && qt(x, L);
469
469
  }
470
- return qt(t, N, U, x, k, ie.current, E);
470
+ return Gt(t, N, V, R, k, ie.current, x);
471
471
  }
472
472
  }
473
- var je = O.ReactCurrentOwner, ct = O.ReactDebugCurrentFrame;
473
+ var De = C.ReactCurrentOwner, ct = C.ReactDebugCurrentFrame;
474
474
  function re(t) {
475
475
  if (t) {
476
- var u = t._owner, p = me(t.type, t._source, u ? u.type : null);
477
- ct.setExtraStackFrame(p);
476
+ var u = t._owner, f = me(t.type, t._source, u ? u.type : null);
477
+ ct.setExtraStackFrame(f);
478
478
  } else
479
479
  ct.setExtraStackFrame(null);
480
480
  }
481
- var De;
482
- De = !1;
481
+ var $e;
482
+ $e = !1;
483
483
  function Le(t) {
484
484
  return typeof t == "object" && t !== null && t.$$typeof === n;
485
485
  }
486
486
  function ut() {
487
487
  {
488
- if (je.current) {
489
- var t = j(je.current.type);
488
+ if (De.current) {
489
+ var t = D(De.current.type);
490
490
  if (t)
491
491
  return `
492
492
 
@@ -498,56 +498,56 @@ Check the render method of \`` + t + "`.";
498
498
  function Zt(t) {
499
499
  {
500
500
  if (t !== void 0) {
501
- var u = t.fileName.replace(/^.*[\\\/]/, ""), p = t.lineNumber;
501
+ var u = t.fileName.replace(/^.*[\\\/]/, ""), f = t.lineNumber;
502
502
  return `
503
503
 
504
- Check your code at ` + u + ":" + p + ".";
504
+ Check your code at ` + u + ":" + f + ".";
505
505
  }
506
506
  return "";
507
507
  }
508
508
  }
509
- var ft = {};
509
+ var pt = {};
510
510
  function Qt(t) {
511
511
  {
512
512
  var u = ut();
513
513
  if (!u) {
514
- var p = typeof t == "string" ? t : t.displayName || t.name;
515
- p && (u = `
514
+ var f = typeof t == "string" ? t : t.displayName || t.name;
515
+ f && (u = `
516
516
 
517
- Check the top-level render call using <` + p + ">.");
517
+ Check the top-level render call using <` + f + ">.");
518
518
  }
519
519
  return u;
520
520
  }
521
521
  }
522
- function pt(t, u) {
522
+ function ft(t, u) {
523
523
  {
524
524
  if (!t._store || t._store.validated || t.key != null)
525
525
  return;
526
526
  t._store.validated = !0;
527
- var p = Qt(u);
528
- if (ft[p])
527
+ var f = Qt(u);
528
+ if (pt[f])
529
529
  return;
530
- ft[p] = !0;
530
+ pt[f] = !0;
531
531
  var k = "";
532
- t && t._owner && t._owner !== je.current && (k = " It was passed a child from " + j(t._owner.type) + "."), re(t), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, k), re(null);
532
+ t && t._owner && t._owner !== De.current && (k = " It was passed a child from " + D(t._owner.type) + "."), re(t), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, k), re(null);
533
533
  }
534
534
  }
535
535
  function dt(t, u) {
536
536
  {
537
537
  if (typeof t != "object")
538
538
  return;
539
- if (Oe(t))
540
- for (var p = 0; p < t.length; p++) {
541
- var k = t[p];
542
- Le(k) && pt(k, u);
539
+ if (Te(t))
540
+ for (var f = 0; f < t.length; f++) {
541
+ var k = t[f];
542
+ Le(k) && ft(k, u);
543
543
  }
544
544
  else if (Le(t))
545
545
  t._store && (t._store.validated = !0);
546
546
  else if (t) {
547
- var x = T(t);
548
- if (typeof x == "function" && x !== t.entries)
549
- for (var S = x.call(t), E; !(E = S.next()).done; )
550
- Le(E.value) && pt(E.value, u);
547
+ var R = T(t);
548
+ if (typeof R == "function" && R !== t.entries)
549
+ for (var O = R.call(t), x; !(x = O.next()).done; )
550
+ Le(x.value) && ft(x.value, u);
551
551
  }
552
552
  }
553
553
  }
@@ -556,30 +556,30 @@ Check the top-level render call using <` + p + ">.");
556
556
  var u = t.type;
557
557
  if (u == null || typeof u == "string")
558
558
  return;
559
- var p;
559
+ var f;
560
560
  if (typeof u == "function")
561
- p = u.propTypes;
562
- else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
561
+ f = u.propTypes;
562
+ else if (typeof u == "object" && (u.$$typeof === p || // Note: Memo only checks outer props here.
563
563
  // Inner props are checked in the reconciler.
564
- u.$$typeof === _))
565
- p = u.propTypes;
564
+ u.$$typeof === v))
565
+ f = u.propTypes;
566
566
  else
567
567
  return;
568
- if (p) {
569
- var k = j(u);
570
- Vt(p, t.props, "prop", k, t);
571
- } else if (u.PropTypes !== void 0 && !De) {
572
- De = !0;
573
- var x = j(u);
574
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
568
+ if (f) {
569
+ var k = D(u);
570
+ Vt(f, t.props, "prop", k, t);
571
+ } else if (u.PropTypes !== void 0 && !$e) {
572
+ $e = !0;
573
+ var R = D(u);
574
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
575
575
  }
576
576
  typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
577
577
  }
578
578
  }
579
579
  function tn(t) {
580
580
  {
581
- for (var u = Object.keys(t.props), p = 0; p < u.length; p++) {
582
- var k = u[p];
581
+ for (var u = Object.keys(t.props), f = 0; f < u.length; f++) {
582
+ var k = u[f];
583
583
  if (k !== "children" && k !== "key") {
584
584
  re(t), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), re(null);
585
585
  break;
@@ -588,88 +588,88 @@ Check the top-level render call using <` + p + ">.");
588
588
  t.ref !== null && (re(t), b("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
589
589
  }
590
590
  }
591
- function mt(t, u, p, k, x, S) {
591
+ function mt(t, u, f, k, R, O) {
592
592
  {
593
- var E = W(t);
594
- if (!E) {
593
+ var x = K(t);
594
+ if (!x) {
595
595
  var N = "";
596
596
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
597
- var U = Zt(x);
598
- U ? N += U : N += ut();
599
- var D;
600
- t === null ? D = "null" : Oe(t) ? D = "array" : t !== void 0 && t.$$typeof === n ? (D = "<" + (j(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : D = typeof t, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, N);
597
+ var V = Zt(R);
598
+ V ? N += V : N += ut();
599
+ var $;
600
+ t === null ? $ = "null" : Te(t) ? $ = "array" : t !== void 0 && t.$$typeof === n ? ($ = "<" + (D(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof t, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, N);
601
601
  }
602
- var L = Xt(t, u, p, x, S);
602
+ var L = Xt(t, u, f, R, O);
603
603
  if (L == null)
604
604
  return L;
605
- if (E) {
606
- var Y = u.children;
607
- if (Y !== void 0)
605
+ if (x) {
606
+ var z = u.children;
607
+ if (z !== void 0)
608
608
  if (k)
609
- if (Oe(Y)) {
610
- for (var ae = 0; ae < Y.length; ae++)
611
- dt(Y[ae], t);
612
- Object.freeze && Object.freeze(Y);
609
+ if (Te(z)) {
610
+ for (var ae = 0; ae < z.length; ae++)
611
+ dt(z[ae], t);
612
+ Object.freeze && Object.freeze(z);
613
613
  } else
614
614
  b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
615
615
  else
616
- dt(Y, t);
616
+ dt(z, t);
617
617
  }
618
618
  return t === o ? tn(L) : en(L), L;
619
619
  }
620
620
  }
621
- function nn(t, u, p) {
622
- return mt(t, u, p, !0);
621
+ function nn(t, u, f) {
622
+ return mt(t, u, f, !0);
623
623
  }
624
- function rn(t, u, p) {
625
- return mt(t, u, p, !1);
624
+ function rn(t, u, f) {
625
+ return mt(t, u, f, !1);
626
626
  }
627
627
  var an = rn, ln = nn;
628
628
  ce.Fragment = o, ce.jsx = an, ce.jsxs = ln;
629
629
  }()), ce;
630
630
  }
631
- process.env.NODE_ENV === "production" ? Ae.exports = cn() : Ae.exports = un();
632
- var Je = Ae.exports;
633
- const X = Je.Fragment, l = Je.jsx, m = Je.jsxs, $e = {}, fn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
634
- function pn(e, n) {
635
- return !$e[e] && typeof window.fetch == "function" && ($e[e] = window.fetch(n + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + n + e + ".svg"), fn)).then((r) => r)), Promise.resolve($e[e]);
631
+ process.env.NODE_ENV === "production" ? Ue.exports = cn() : Ue.exports = un();
632
+ var ze = Ue.exports;
633
+ const ee = ze.Fragment, l = ze.jsx, m = ze.jsxs, Ie = {}, pn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
634
+ function fn(e, n) {
635
+ return !Ie[e] && typeof window.fetch == "function" && (Ie[e] = window.fetch(n + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + n + e + ".svg"), pn)).then((r) => r)), Promise.resolve(Ie[e]);
636
636
  }
637
637
  const y = ({ name: e, path: n, className: r = "", ...o }) => {
638
- const a = "https://punkt-cdn.oslo.kommune.no/8.0/icons/", [i, s] = ue(null);
638
+ const a = "https://punkt-cdn.oslo.kommune.no/9.0/icons/", [s, i] = ue(null);
639
639
  return yt(() => {
640
640
  if (!e)
641
641
  return;
642
- pn(e, n || a).then((f) => s(f));
643
- }, [e, n, a]), i ? /* @__PURE__ */ l(
642
+ fn(e, n || a).then((p) => i(p));
643
+ }, [e, n, a]), s ? /* @__PURE__ */ l(
644
644
  "span",
645
645
  {
646
646
  className: `pkt-icon ${r}`,
647
- dangerouslySetInnerHTML: { __html: i },
647
+ dangerouslySetInnerHTML: { __html: s },
648
648
  ...o
649
649
  }
650
650
  ) : null;
651
- }, dn = z(
651
+ }, dn = B(
652
652
  ({
653
653
  children: e,
654
654
  className: n,
655
655
  skin: r = "info",
656
656
  closeAlert: o = !1,
657
657
  onClose: a,
658
- title: i,
659
- date: s,
658
+ title: s,
659
+ date: i,
660
660
  ariaLive: c = "polite",
661
- slim: f = !1,
661
+ slim: p = !1,
662
662
  ...d
663
663
  }, h) => {
664
- const _ = [
664
+ const v = [
665
665
  n,
666
666
  "pkt-alert",
667
667
  r && `pkt-alert--${r}`,
668
- f && "pkt-alert--slim"
669
- ].filter(Boolean).join(" "), [w, C] = ue(!0), P = () => {
670
- C(!1), a && a();
668
+ p && "pkt-alert--slim"
669
+ ].filter(Boolean).join(" "), [E, w] = ue(!0), S = () => {
670
+ w(!1), a && a();
671
671
  };
672
- return w ? /* @__PURE__ */ m("div", { ...d, className: _, "aria-live": c, ref: h, children: [
672
+ return E ? /* @__PURE__ */ m("div", { ...d, className: v, "aria-live": c, ref: h, children: [
673
673
  /* @__PURE__ */ l(
674
674
  y,
675
675
  {
@@ -684,25 +684,25 @@ const y = ({ name: e, path: n, className: r = "", ...o }) => {
684
684
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
685
685
  tabIndex: 0,
686
686
  "aria-label": "close",
687
- onClick: P,
687
+ onClick: S,
688
688
  children: /* @__PURE__ */ l(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
689
689
  }
690
690
  ) }),
691
- i && /* @__PURE__ */ l("div", { className: "pkt-alert__title", children: i }),
691
+ s && /* @__PURE__ */ l("div", { className: "pkt-alert__title", children: s }),
692
692
  /* @__PURE__ */ l("div", { className: "pkt-alert__text", children: e }),
693
- s && /* @__PURE__ */ m("div", { className: "pkt-alert__date", children: [
693
+ i && /* @__PURE__ */ m("div", { className: "pkt-alert__date", children: [
694
694
  "Sist oppdatert: ",
695
- s
695
+ i
696
696
  ] })
697
697
  ] }) : null;
698
698
  }
699
- ), nr = z(
700
- ({ href: e, text: n, onClick: r, className: o, ...a }, i) => {
701
- const s = [
699
+ ), rr = B(
700
+ ({ href: e, text: n, onClick: r, className: o, ...a }, s) => {
701
+ const i = [
702
702
  o,
703
703
  "pkt-back-link"
704
704
  ].filter(Boolean).join(" ");
705
- return /* @__PURE__ */ l("nav", { ref: i, className: s, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ m("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
705
+ return /* @__PURE__ */ l("nav", { ref: s, className: i, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ m("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
706
706
  r && r();
707
707
  }, ...a, children: [
708
708
  /* @__PURE__ */ l(y, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
@@ -720,21 +720,21 @@ const y = ({ name: e, path: n, className: r = "", ...o }) => {
720
720
  *
721
721
  * @license MIT
722
722
  */
723
- function Ue() {
724
- return Ue = Object.assign ? Object.assign.bind() : function(e) {
723
+ function Ve() {
724
+ return Ve = Object.assign ? Object.assign.bind() : function(e) {
725
725
  for (var n = 1; n < arguments.length; n++) {
726
726
  var r = arguments[n];
727
727
  for (var o in r)
728
728
  Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
729
729
  }
730
730
  return e;
731
- }, Ue.apply(this, arguments);
731
+ }, Ve.apply(this, arguments);
732
732
  }
733
733
  var _t;
734
734
  (function(e) {
735
735
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
736
736
  })(_t || (_t = {}));
737
- function F(e, n) {
737
+ function I(e, n) {
738
738
  if (e === !1 || e === null || typeof e > "u")
739
739
  throw new Error(n);
740
740
  }
@@ -747,7 +747,7 @@ function Ee(e, n) {
747
747
  }
748
748
  }
749
749
  }
750
- function Ve(e) {
750
+ function We(e) {
751
751
  let {
752
752
  pathname: n = "/",
753
753
  search: r = "",
@@ -769,7 +769,7 @@ var bt;
769
769
  (function(e) {
770
770
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
771
771
  })(bt || (bt = {}));
772
- function We(e, n) {
772
+ function Be(e, n) {
773
773
  if (n === "/")
774
774
  return e;
775
775
  if (!e.toLowerCase().startsWith(n.toLowerCase()))
@@ -799,28 +799,28 @@ function hn(e, n) {
799
799
  function Fe(e, n, r, o) {
800
800
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(o) + "]. 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.';
801
801
  }
802
- function wt(e) {
802
+ function xt(e) {
803
803
  return e.filter((n, r) => r === 0 || n.route.path && n.route.path.length > 0);
804
804
  }
805
- function xt(e, n, r, o) {
805
+ function wt(e, n, r, o) {
806
806
  o === void 0 && (o = !1);
807
807
  let a;
808
- typeof e == "string" ? a = Et(e) : (a = Ue({}, e), F(!a.pathname || !a.pathname.includes("?"), Fe("?", "pathname", "search", a)), F(!a.pathname || !a.pathname.includes("#"), Fe("#", "pathname", "hash", a)), F(!a.search || !a.search.includes("#"), Fe("#", "search", "hash", a)));
809
- let i = e === "" || a.pathname === "", s = i ? "/" : a.pathname, c;
810
- if (o || s == null)
808
+ typeof e == "string" ? a = Et(e) : (a = Ve({}, e), I(!a.pathname || !a.pathname.includes("?"), Fe("?", "pathname", "search", a)), I(!a.pathname || !a.pathname.includes("#"), Fe("#", "pathname", "hash", a)), I(!a.search || !a.search.includes("#"), Fe("#", "search", "hash", a)));
809
+ let s = e === "" || a.pathname === "", i = s ? "/" : a.pathname, c;
810
+ if (o || i == null)
811
811
  c = r;
812
812
  else {
813
- let _ = n.length - 1;
814
- if (s.startsWith("..")) {
815
- let w = s.split("/");
816
- for (; w[0] === ".."; )
817
- w.shift(), _ -= 1;
818
- a.pathname = w.join("/");
813
+ let v = n.length - 1;
814
+ if (i.startsWith("..")) {
815
+ let E = i.split("/");
816
+ for (; E[0] === ".."; )
817
+ E.shift(), v -= 1;
818
+ a.pathname = E.join("/");
819
819
  }
820
- c = _ >= 0 ? n[_] : "/";
820
+ c = v >= 0 ? n[v] : "/";
821
821
  }
822
- let f = mn(a, c), d = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && r.endsWith("/");
823
- return !f.pathname.endsWith("/") && (d || h) && (f.pathname += "/"), f;
822
+ let p = mn(a, c), d = i && i !== "/" && i.endsWith("/"), h = (s || i === ".") && r.endsWith("/");
823
+ return !p.pathname.endsWith("/") && (d || h) && (p.pathname += "/"), p;
824
824
  }
825
825
  const He = (e) => e.join("/").replace(/\/\/+/g, "/"), kn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, vn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ct = ["post", "put", "patch", "delete"];
826
826
  new Set(Ct);
@@ -846,16 +846,16 @@ function Me() {
846
846
  return e;
847
847
  }, Me.apply(this, arguments);
848
848
  }
849
- const we = /* @__PURE__ */ g.createContext(null);
850
- process.env.NODE_ENV !== "production" && (we.displayName = "DataRouter");
849
+ const xe = /* @__PURE__ */ g.createContext(null);
850
+ process.env.NODE_ENV !== "production" && (xe.displayName = "DataRouter");
851
851
  const Rt = /* @__PURE__ */ g.createContext(null);
852
852
  process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
853
853
  const bn = /* @__PURE__ */ g.createContext(null);
854
854
  process.env.NODE_ENV !== "production" && (bn.displayName = "Await");
855
- const ee = /* @__PURE__ */ g.createContext(null);
856
- process.env.NODE_ENV !== "production" && (ee.displayName = "Navigation");
857
- const ze = /* @__PURE__ */ g.createContext(null);
858
- process.env.NODE_ENV !== "production" && (ze.displayName = "Location");
855
+ const te = /* @__PURE__ */ g.createContext(null);
856
+ process.env.NODE_ENV !== "production" && (te.displayName = "Navigation");
857
+ const Ke = /* @__PURE__ */ g.createContext(null);
858
+ process.env.NODE_ENV !== "production" && (Ke.displayName = "Location");
859
859
  const le = /* @__PURE__ */ g.createContext({
860
860
  outlet: null,
861
861
  matches: [],
@@ -868,42 +868,42 @@ function Nn(e, n) {
868
868
  let {
869
869
  relative: r
870
870
  } = n === void 0 ? {} : n;
871
- Ge() || (process.env.NODE_ENV !== "production" ? F(
871
+ qe() || (process.env.NODE_ENV !== "production" ? I(
872
872
  !1,
873
873
  // TODO: This error is probably because they somehow have 2 versions of the
874
874
  // router loaded. We can help them understand how to avoid that.
875
875
  "useHref() may be used only in the context of a <Router> component."
876
- ) : F(!1));
876
+ ) : I(!1));
877
877
  let {
878
878
  basename: o,
879
879
  navigator: a
880
- } = g.useContext(ee), {
881
- hash: i,
882
- pathname: s,
880
+ } = g.useContext(te), {
881
+ hash: s,
882
+ pathname: i,
883
883
  search: c
884
- } = xe(e, {
884
+ } = we(e, {
885
885
  relative: r
886
- }), f = s;
887
- return o !== "/" && (f = s === "/" ? o : He([o, s])), a.createHref({
888
- pathname: f,
886
+ }), p = i;
887
+ return o !== "/" && (p = i === "/" ? o : He([o, i])), a.createHref({
888
+ pathname: p,
889
889
  search: c,
890
- hash: i
890
+ hash: s
891
891
  });
892
892
  }
893
- function Ge() {
894
- return g.useContext(ze) != null;
893
+ function qe() {
894
+ return g.useContext(Ke) != null;
895
895
  }
896
- function fe() {
897
- return Ge() || (process.env.NODE_ENV !== "production" ? F(
896
+ function pe() {
897
+ return qe() || (process.env.NODE_ENV !== "production" ? I(
898
898
  !1,
899
899
  // TODO: This error is probably because they somehow have 2 versions of the
900
900
  // router loaded. We can help them understand how to avoid that.
901
901
  "useLocation() may be used only in the context of a <Router> component."
902
- ) : F(!1)), g.useContext(ze).location;
902
+ ) : I(!1)), g.useContext(Ke).location;
903
903
  }
904
904
  const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
905
905
  function St(e) {
906
- g.useContext(ee).static || g.useLayoutEffect(e);
906
+ g.useContext(te).static || g.useLayoutEffect(e);
907
907
  }
908
908
  function yn() {
909
909
  let {
@@ -912,47 +912,47 @@ function yn() {
912
912
  return e ? Rn() : En();
913
913
  }
914
914
  function En() {
915
- Ge() || (process.env.NODE_ENV !== "production" ? F(
915
+ qe() || (process.env.NODE_ENV !== "production" ? I(
916
916
  !1,
917
917
  // TODO: This error is probably because they somehow have 2 versions of the
918
918
  // router loaded. We can help them understand how to avoid that.
919
919
  "useNavigate() may be used only in the context of a <Router> component."
920
- ) : F(!1));
921
- let e = g.useContext(we), {
920
+ ) : I(!1));
921
+ let e = g.useContext(xe), {
922
922
  basename: n,
923
923
  navigator: r
924
- } = g.useContext(ee), {
924
+ } = g.useContext(te), {
925
925
  matches: o
926
926
  } = g.useContext(le), {
927
927
  pathname: a
928
- } = fe(), i = JSON.stringify(wt(o).map((f) => f.pathnameBase)), s = g.useRef(!1);
928
+ } = pe(), s = JSON.stringify(xt(o).map((p) => p.pathnameBase)), i = g.useRef(!1);
929
929
  return St(() => {
930
- s.current = !0;
931
- }), g.useCallback(function(f, d) {
932
- if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && Ee(s.current, Pt), !s.current)
930
+ i.current = !0;
931
+ }), g.useCallback(function(p, d) {
932
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && Ee(i.current, Pt), !i.current)
933
933
  return;
934
- if (typeof f == "number") {
935
- r.go(f);
934
+ if (typeof p == "number") {
935
+ r.go(p);
936
936
  return;
937
937
  }
938
- let h = xt(f, JSON.parse(i), a, d.relative === "path");
938
+ let h = wt(p, JSON.parse(s), a, d.relative === "path");
939
939
  e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : He([n, h.pathname])), (d.replace ? r.replace : r.push)(h, d.state, d);
940
- }, [n, r, i, a, e]);
940
+ }, [n, r, s, a, e]);
941
941
  }
942
- function xe(e, n) {
942
+ function we(e, n) {
943
943
  let {
944
944
  relative: r
945
945
  } = n === void 0 ? {} : n, {
946
946
  matches: o
947
947
  } = g.useContext(le), {
948
948
  pathname: a
949
- } = fe(), i = JSON.stringify(wt(o).map((s) => s.pathnameBase));
950
- return g.useMemo(() => xt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
949
+ } = pe(), s = JSON.stringify(xt(o).map((i) => i.pathnameBase));
950
+ return g.useMemo(() => wt(e, JSON.parse(s), a, r === "path"), [e, s, a, r]);
951
951
  }
952
- var Be;
952
+ var Ye;
953
953
  (function(e) {
954
954
  e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate";
955
- })(Be || (Be = {}));
955
+ })(Ye || (Ye = {}));
956
956
  var ge;
957
957
  (function(e) {
958
958
  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";
@@ -960,17 +960,17 @@ var ge;
960
960
  function Ot(e) {
961
961
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
962
962
  }
963
- function wn(e) {
964
- let n = g.useContext(we);
965
- return n || (process.env.NODE_ENV !== "production" ? F(!1, Ot(e)) : F(!1)), n;
966
- }
967
963
  function xn(e) {
964
+ let n = g.useContext(xe);
965
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
966
+ }
967
+ function wn(e) {
968
968
  let n = g.useContext(le);
969
- return n || (process.env.NODE_ENV !== "production" ? F(!1, Ot(e)) : F(!1)), n;
969
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
970
970
  }
971
971
  function Tt(e) {
972
- let n = xn(e), r = n.matches[n.matches.length - 1];
973
- return r.route.id || (process.env.NODE_ENV !== "production" ? F(!1, e + ' can only be used on routes that contain a unique "id"') : F(!1)), r.route.id;
972
+ let n = wn(e), r = n.matches[n.matches.length - 1];
973
+ 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;
974
974
  }
975
975
  function Cn() {
976
976
  return Tt(ge.UseRouteId);
@@ -978,13 +978,13 @@ function Cn() {
978
978
  function Rn() {
979
979
  let {
980
980
  router: e
981
- } = wn(Be.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = g.useRef(!1);
981
+ } = xn(Ye.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = g.useRef(!1);
982
982
  return St(() => {
983
983
  r.current = !0;
984
- }), g.useCallback(function(a, i) {
985
- i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && Ee(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Me({
984
+ }), g.useCallback(function(a, s) {
985
+ s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && Ee(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Me({
986
986
  fromRouteId: n
987
- }, i)));
987
+ }, s)));
988
988
  }, [e, n]);
989
989
  }
990
990
  var gt;
@@ -1013,12 +1013,12 @@ function ne() {
1013
1013
  return e;
1014
1014
  }, ne.apply(this, arguments);
1015
1015
  }
1016
- function Ke(e, n) {
1016
+ function Ge(e, n) {
1017
1017
  if (e == null)
1018
1018
  return {};
1019
- var r = {}, o = Object.keys(e), a, i;
1020
- for (i = 0; i < o.length; i++)
1021
- a = o[i], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
1019
+ var r = {}, o = Object.keys(e), a, s;
1020
+ for (s = 0; s < o.length; s++)
1021
+ a = o[s], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
1022
1022
  return r;
1023
1023
  }
1024
1024
  const _e = "get", be = "application/x-www-form-urlencoded";
@@ -1056,86 +1056,86 @@ function Dn() {
1056
1056
  }
1057
1057
  return ve;
1058
1058
  }
1059
- const Ln = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1060
- function Ie(e) {
1061
- return e != null && !Ln.has(e) ? (process.env.NODE_ENV !== "production" && Ee(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + be + '"')), null) : e;
1059
+ const $n = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1060
+ function Ae(e) {
1061
+ return e != null && !$n.has(e) ? (process.env.NODE_ENV !== "production" && Ee(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + be + '"')), null) : e;
1062
1062
  }
1063
- function $n(e, n) {
1064
- let r, o, a, i, s;
1063
+ function Ln(e, n) {
1064
+ let r, o, a, s, i;
1065
1065
  if (Sn(e)) {
1066
1066
  let c = e.getAttribute("action");
1067
- o = c ? We(c, n) : null, r = e.getAttribute("method") || _e, a = Ie(e.getAttribute("enctype")) || be, i = new FormData(e);
1067
+ o = c ? Be(c, n) : null, r = e.getAttribute("method") || _e, a = Ae(e.getAttribute("enctype")) || be, s = new FormData(e);
1068
1068
  } else if (Pn(e) || On(e) && (e.type === "submit" || e.type === "image")) {
1069
1069
  let c = e.form;
1070
1070
  if (c == null)
1071
1071
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1072
- let f = e.getAttribute("formaction") || c.getAttribute("action");
1073
- if (o = f ? We(f, n) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || _e, a = Ie(e.getAttribute("formenctype")) || Ie(c.getAttribute("enctype")) || be, i = new FormData(c, e), !Dn()) {
1072
+ let p = e.getAttribute("formaction") || c.getAttribute("action");
1073
+ if (o = p ? Be(p, n) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || _e, a = Ae(e.getAttribute("formenctype")) || Ae(c.getAttribute("enctype")) || be, s = new FormData(c, e), !Dn()) {
1074
1074
  let {
1075
1075
  name: d,
1076
1076
  type: h,
1077
- value: _
1077
+ value: v
1078
1078
  } = e;
1079
1079
  if (h === "image") {
1080
- let w = d ? d + "." : "";
1081
- i.append(w + "x", "0"), i.append(w + "y", "0");
1080
+ let E = d ? d + "." : "";
1081
+ s.append(E + "x", "0"), s.append(E + "y", "0");
1082
1082
  } else
1083
- d && i.append(d, _);
1083
+ d && s.append(d, v);
1084
1084
  }
1085
1085
  } else {
1086
1086
  if (Ce(e))
1087
1087
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1088
- r = _e, o = null, a = be, s = e;
1088
+ r = _e, o = null, a = be, i = e;
1089
1089
  }
1090
- return i && a === "text/plain" && (s = i, i = void 0), {
1090
+ return s && a === "text/plain" && (i = s, s = void 0), {
1091
1091
  action: o,
1092
1092
  method: r.toLowerCase(),
1093
1093
  encType: a,
1094
- formData: i,
1095
- body: s
1094
+ formData: s,
1095
+ body: i
1096
1096
  };
1097
1097
  }
1098
- const Fn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], In = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], An = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
1098
+ const In = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], Fn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], An = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
1099
1099
  process.env.NODE_ENV;
1100
1100
  const Un = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = /* @__PURE__ */ g.forwardRef(function(n, r) {
1101
1101
  let {
1102
1102
  onClick: o,
1103
1103
  relative: a,
1104
- reloadDocument: i,
1105
- replace: s,
1104
+ reloadDocument: s,
1105
+ replace: i,
1106
1106
  state: c,
1107
- target: f,
1107
+ target: p,
1108
1108
  to: d,
1109
1109
  preventScrollReset: h
1110
- } = n, _ = Ke(n, Fn), {
1111
- basename: w
1112
- } = g.useContext(ee), C, P = !1;
1113
- if (typeof d == "string" && Vn.test(d) && (C = d, Un))
1110
+ } = n, v = Ge(n, In), {
1111
+ basename: E
1112
+ } = g.useContext(te), w, S = !1;
1113
+ if (typeof d == "string" && Vn.test(d) && (w = d, Un))
1114
1114
  try {
1115
- let b = new URL(window.location.href), $ = d.startsWith("//") ? new URL(b.protocol + d) : new URL(d), A = We($.pathname, w);
1116
- $.origin === b.origin && A != null ? d = A + $.search + $.hash : P = !0;
1115
+ let b = new URL(window.location.href), j = d.startsWith("//") ? new URL(b.protocol + d) : new URL(d), F = Be(j.pathname, E);
1116
+ j.origin === b.origin && F != null ? d = F + j.search + j.hash : S = !0;
1117
1117
  } catch {
1118
1118
  process.env.NODE_ENV !== "production" && Ee(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1119
1119
  }
1120
- let R = Nn(d, {
1120
+ let P = Nn(d, {
1121
1121
  relative: a
1122
1122
  }), T = Jn(d, {
1123
- replace: s,
1123
+ replace: i,
1124
1124
  state: c,
1125
- target: f,
1125
+ target: p,
1126
1126
  preventScrollReset: h,
1127
1127
  relative: a
1128
1128
  });
1129
- function O(b) {
1129
+ function C(b) {
1130
1130
  o && o(b), b.defaultPrevented || T(b);
1131
1131
  }
1132
1132
  return (
1133
1133
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1134
- /* @__PURE__ */ g.createElement("a", ne({}, _, {
1135
- href: C || R,
1136
- onClick: P || i ? o : O,
1134
+ /* @__PURE__ */ g.createElement("a", ne({}, v, {
1135
+ href: w || P,
1136
+ onClick: S || s ? o : C,
1137
1137
  ref: r,
1138
- target: f
1138
+ target: p
1139
1139
  }))
1140
1140
  );
1141
1141
  });
@@ -1144,178 +1144,178 @@ const Wn = /* @__PURE__ */ g.forwardRef(function(n, r) {
1144
1144
  let {
1145
1145
  "aria-current": o = "page",
1146
1146
  caseSensitive: a = !1,
1147
- className: i = "",
1148
- end: s = !1,
1147
+ className: s = "",
1148
+ end: i = !1,
1149
1149
  style: c,
1150
- to: f,
1150
+ to: p,
1151
1151
  children: d
1152
- } = n, h = Ke(n, In), _ = xe(f, {
1152
+ } = n, h = Ge(n, Fn), v = we(p, {
1153
1153
  relative: h.relative
1154
- }), w = fe(), C = g.useContext(Rt), {
1155
- navigator: P
1156
- } = g.useContext(ee), R = P.encodeLocation ? P.encodeLocation(_).pathname : _.pathname, T = w.pathname, O = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
1157
- a || (T = T.toLowerCase(), O = O ? O.toLowerCase() : null, R = R.toLowerCase());
1158
- let b = T === R || !s && T.startsWith(R) && T.charAt(R.length) === "/", $ = O != null && (O === R || !s && O.startsWith(R) && O.charAt(R.length) === "/"), A = b ? o : void 0, V;
1159
- typeof i == "function" ? V = i({
1154
+ }), E = pe(), w = g.useContext(Rt), {
1155
+ navigator: S
1156
+ } = g.useContext(te), P = S.encodeLocation ? S.encodeLocation(v).pathname : v.pathname, T = E.pathname, C = w && w.navigation && w.navigation.location ? w.navigation.location.pathname : null;
1157
+ a || (T = T.toLowerCase(), C = C ? C.toLowerCase() : null, P = P.toLowerCase());
1158
+ let b = T === P || !i && T.startsWith(P) && T.charAt(P.length) === "/", j = C != null && (C === P || !i && C.startsWith(P) && C.charAt(P.length) === "/"), F = b ? o : void 0, A;
1159
+ typeof s == "function" ? A = s({
1160
1160
  isActive: b,
1161
- isPending: $
1162
- }) : V = [i, b ? "active" : null, $ ? "pending" : null].filter(Boolean).join(" ");
1163
- let I = typeof c == "function" ? c({
1161
+ isPending: j
1162
+ }) : A = [s, b ? "active" : null, j ? "pending" : null].filter(Boolean).join(" ");
1163
+ let U = typeof c == "function" ? c({
1164
1164
  isActive: b,
1165
- isPending: $
1165
+ isPending: j
1166
1166
  }) : c;
1167
1167
  return /* @__PURE__ */ g.createElement(Ne, ne({}, h, {
1168
- "aria-current": A,
1169
- className: V,
1168
+ "aria-current": F,
1169
+ className: A,
1170
1170
  ref: r,
1171
- style: I,
1172
- to: f
1171
+ style: U,
1172
+ to: p
1173
1173
  }), typeof d == "function" ? d({
1174
1174
  isActive: b,
1175
- isPending: $
1175
+ isPending: j
1176
1176
  }) : d);
1177
1177
  });
1178
1178
  process.env.NODE_ENV !== "production" && (Wn.displayName = "NavLink");
1179
- const Mn = /* @__PURE__ */ g.forwardRef((e, n) => {
1180
- let r = zn();
1179
+ const Bn = /* @__PURE__ */ g.forwardRef((e, n) => {
1180
+ let r = Hn();
1181
1181
  return /* @__PURE__ */ g.createElement(jt, ne({}, e, {
1182
1182
  submit: r,
1183
1183
  ref: n
1184
1184
  }));
1185
1185
  });
1186
- process.env.NODE_ENV !== "production" && (Mn.displayName = "Form");
1186
+ process.env.NODE_ENV !== "production" && (Bn.displayName = "Form");
1187
1187
  const jt = /* @__PURE__ */ g.forwardRef((e, n) => {
1188
1188
  let {
1189
1189
  reloadDocument: r,
1190
1190
  replace: o,
1191
1191
  method: a = _e,
1192
- action: i,
1193
- onSubmit: s,
1192
+ action: s,
1193
+ onSubmit: i,
1194
1194
  submit: c,
1195
- relative: f,
1195
+ relative: p,
1196
1196
  preventScrollReset: d
1197
- } = e, h = Ke(e, An), _ = a.toLowerCase() === "get" ? "get" : "post", w = Gn(i, {
1198
- relative: f
1199
- }), C = (P) => {
1200
- if (s && s(P), P.defaultPrevented)
1197
+ } = e, h = Ge(e, An), v = a.toLowerCase() === "get" ? "get" : "post", E = Kn(s, {
1198
+ relative: p
1199
+ }), w = (S) => {
1200
+ if (i && i(S), S.defaultPrevented)
1201
1201
  return;
1202
- P.preventDefault();
1203
- let R = P.nativeEvent.submitter, T = (R == null ? void 0 : R.getAttribute("formmethod")) || a;
1204
- c(R || P.currentTarget, {
1202
+ S.preventDefault();
1203
+ let P = S.nativeEvent.submitter, T = (P == null ? void 0 : P.getAttribute("formmethod")) || a;
1204
+ c(P || S.currentTarget, {
1205
1205
  method: T,
1206
1206
  replace: o,
1207
- relative: f,
1207
+ relative: p,
1208
1208
  preventScrollReset: d
1209
1209
  });
1210
1210
  };
1211
1211
  return /* @__PURE__ */ g.createElement("form", ne({
1212
1212
  ref: n,
1213
- method: _,
1214
- action: w,
1215
- onSubmit: r ? s : C
1213
+ method: v,
1214
+ action: E,
1215
+ onSubmit: r ? i : w
1216
1216
  }, h));
1217
1217
  });
1218
1218
  process.env.NODE_ENV !== "production" && (jt.displayName = "FormImpl");
1219
1219
  process.env.NODE_ENV;
1220
- var Ye;
1220
+ var Je;
1221
1221
  (function(e) {
1222
1222
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher";
1223
- })(Ye || (Ye = {}));
1223
+ })(Je || (Je = {}));
1224
1224
  var Nt;
1225
1225
  (function(e) {
1226
1226
  e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1227
1227
  })(Nt || (Nt = {}));
1228
- function Bn(e) {
1228
+ function Mn(e) {
1229
1229
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1230
1230
  }
1231
1231
  function Yn(e) {
1232
- let n = g.useContext(we);
1233
- return n || (process.env.NODE_ENV !== "production" ? F(!1, Bn(e)) : F(!1)), n;
1232
+ let n = g.useContext(xe);
1233
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Mn(e)) : I(!1)), n;
1234
1234
  }
1235
1235
  function Jn(e, n) {
1236
1236
  let {
1237
1237
  target: r,
1238
1238
  replace: o,
1239
1239
  state: a,
1240
- preventScrollReset: i,
1241
- relative: s
1242
- } = n === void 0 ? {} : n, c = yn(), f = fe(), d = xe(e, {
1243
- relative: s
1240
+ preventScrollReset: s,
1241
+ relative: i
1242
+ } = n === void 0 ? {} : n, c = yn(), p = pe(), d = we(e, {
1243
+ relative: i
1244
1244
  });
1245
1245
  return g.useCallback((h) => {
1246
1246
  if (jn(h, r)) {
1247
1247
  h.preventDefault();
1248
- let _ = o !== void 0 ? o : Ve(f) === Ve(d);
1248
+ let v = o !== void 0 ? o : We(p) === We(d);
1249
1249
  c(e, {
1250
- replace: _,
1250
+ replace: v,
1251
1251
  state: a,
1252
- preventScrollReset: i,
1253
- relative: s
1252
+ preventScrollReset: s,
1253
+ relative: i
1254
1254
  });
1255
1255
  }
1256
- }, [f, c, d, o, a, r, e, i, s]);
1256
+ }, [p, c, d, o, a, r, e, s, i]);
1257
1257
  }
1258
- function Hn() {
1258
+ function zn() {
1259
1259
  if (typeof document > "u")
1260
1260
  throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1261
1261
  }
1262
- function zn() {
1262
+ function Hn() {
1263
1263
  let {
1264
1264
  router: e
1265
- } = Yn(Ye.UseSubmit), {
1265
+ } = Yn(Je.UseSubmit), {
1266
1266
  basename: n
1267
- } = g.useContext(ee), r = Cn();
1267
+ } = g.useContext(te), r = Cn();
1268
1268
  return g.useCallback(function(o, a) {
1269
- a === void 0 && (a = {}), Hn();
1269
+ a === void 0 && (a = {}), zn();
1270
1270
  let {
1271
- action: i,
1272
- method: s,
1271
+ action: s,
1272
+ method: i,
1273
1273
  encType: c,
1274
- formData: f,
1274
+ formData: p,
1275
1275
  body: d
1276
- } = $n(o, n);
1277
- e.navigate(a.action || i, {
1276
+ } = Ln(o, n);
1277
+ e.navigate(a.action || s, {
1278
1278
  preventScrollReset: a.preventScrollReset,
1279
- formData: f,
1279
+ formData: p,
1280
1280
  body: d,
1281
- formMethod: a.method || s,
1281
+ formMethod: a.method || i,
1282
1282
  formEncType: a.encType || c,
1283
1283
  replace: a.replace,
1284
1284
  fromRouteId: r
1285
1285
  });
1286
1286
  }, [e, n, r]);
1287
1287
  }
1288
- function Gn(e, n) {
1288
+ function Kn(e, n) {
1289
1289
  let {
1290
1290
  relative: r
1291
1291
  } = n === void 0 ? {} : n, {
1292
1292
  basename: o
1293
- } = g.useContext(ee), a = g.useContext(le);
1294
- a || (process.env.NODE_ENV !== "production" ? F(!1, "useFormAction must be used inside a RouteContext") : F(!1));
1295
- let [i] = a.matches.slice(-1), s = ne({}, xe(e || ".", {
1293
+ } = g.useContext(te), a = g.useContext(le);
1294
+ a || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
1295
+ let [s] = a.matches.slice(-1), i = ne({}, we(e || ".", {
1296
1296
  relative: r
1297
- })), c = fe();
1298
- if (e == null && (s.search = c.search, s.hash = c.hash, i.route.index)) {
1299
- let f = new URLSearchParams(s.search);
1300
- f.delete("index"), s.search = f.toString() ? "?" + f.toString() : "";
1297
+ })), c = pe();
1298
+ if (e == null && (i.search = c.search, i.hash = c.hash, s.route.index)) {
1299
+ let p = new URLSearchParams(i.search);
1300
+ p.delete("index"), i.search = p.toString() ? "?" + p.toString() : "";
1301
1301
  }
1302
- return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (s.pathname = s.pathname === "/" ? o : He([o, s.pathname])), Ve(s);
1302
+ return (!e || e === ".") && s.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), o !== "/" && (i.pathname = i.pathname === "/" ? o : He([o, i.pathname])), We(i);
1303
1303
  }
1304
- const rr = z(
1304
+ const ar = B(
1305
1305
  ({ breadcrumbs: e, navigationType: n, className: r, ...o }, a) => {
1306
- const i = e.slice(0, 4), s = i[i.length - 2], c = [
1306
+ const s = e.slice(0, 4), i = s[s.length - 2], c = [
1307
1307
  r,
1308
1308
  "pkt-breadcrumbs"
1309
1309
  ].filter(Boolean).join(" ");
1310
1310
  return /* @__PURE__ */ m("nav", { ref: a, "aria-label": "brødsmulemeny", className: c, children: [
1311
- /* @__PURE__ */ l("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: i.map((f, d) => /* @__PURE__ */ l(
1311
+ /* @__PURE__ */ l("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((p, d) => /* @__PURE__ */ l(
1312
1312
  "li",
1313
1313
  {
1314
1314
  className: "pkt-breadcrumbs__item",
1315
- children: d === i.length - 1 ? /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: f.text }) }) : n === "router" ? /* @__PURE__ */ m(
1315
+ children: d === s.length - 1 ? /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : n === "router" ? /* @__PURE__ */ m(
1316
1316
  Ne,
1317
1317
  {
1318
- to: f.href,
1318
+ to: p.href,
1319
1319
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1320
1320
  ...o,
1321
1321
  children: [
@@ -1326,13 +1326,13 @@ const rr = z(
1326
1326
  name: "chevron-thin-right"
1327
1327
  }
1328
1328
  ),
1329
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: f.text })
1329
+ /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text })
1330
1330
  ]
1331
1331
  }
1332
1332
  ) : /* @__PURE__ */ m(
1333
1333
  "a",
1334
1334
  {
1335
- href: f.href,
1335
+ href: p.href,
1336
1336
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1337
1337
  ...o,
1338
1338
  children: [
@@ -1343,7 +1343,7 @@ const rr = z(
1343
1343
  name: "chevron-thin-right"
1344
1344
  }
1345
1345
  ),
1346
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: f.text })
1346
+ /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text })
1347
1347
  ]
1348
1348
  }
1349
1349
  )
@@ -1353,7 +1353,7 @@ const rr = z(
1353
1353
  n === "router" ? /* @__PURE__ */ m(
1354
1354
  Ne,
1355
1355
  {
1356
- to: s.href,
1356
+ to: i.href,
1357
1357
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1358
1358
  ...o,
1359
1359
  children: [
@@ -1364,13 +1364,13 @@ const rr = z(
1364
1364
  name: "chevron-thin-left"
1365
1365
  }
1366
1366
  ),
1367
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: s.text })
1367
+ /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: i.text })
1368
1368
  ]
1369
1369
  }
1370
1370
  ) : /* @__PURE__ */ m(
1371
1371
  "a",
1372
1372
  {
1373
- href: s.href,
1373
+ href: i.href,
1374
1374
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1375
1375
  ...o,
1376
1376
  children: [
@@ -1381,34 +1381,34 @@ const rr = z(
1381
1381
  name: "chevron-thin-left"
1382
1382
  }
1383
1383
  ),
1384
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: s.text })
1384
+ /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: i.text })
1385
1385
  ]
1386
1386
  }
1387
1387
  )
1388
1388
  ] });
1389
1389
  }
1390
- ), ye = z(
1390
+ ), ye = B(
1391
1391
  ({
1392
1392
  children: e,
1393
1393
  className: n,
1394
1394
  iconName: r = "user",
1395
1395
  secondIconName: o = "user",
1396
1396
  size: a = "medium",
1397
- skin: i = "primary",
1398
- type: s = "button",
1397
+ skin: s = "primary",
1398
+ type: i = "button",
1399
1399
  variant: c = "label-only",
1400
- color: f,
1400
+ color: p,
1401
1401
  ...d
1402
1402
  }, h) => {
1403
- const _ = [
1403
+ const v = [
1404
1404
  n,
1405
1405
  "pkt-btn",
1406
1406
  a && `pkt-btn--${a}`,
1407
- i && `pkt-btn--${i}`,
1407
+ s && `pkt-btn--${s}`,
1408
1408
  c && `pkt-btn--${c}`,
1409
- f && `pkt-btn--${f}`
1409
+ p && `pkt-btn--${p}`
1410
1410
  ].filter(Boolean).join(" ");
1411
- return /* @__PURE__ */ m("button", { ...d, className: _, type: s, ref: h, children: [
1411
+ return /* @__PURE__ */ m("button", { ...d, className: v, type: i, ref: h, children: [
1412
1412
  c !== "label-only" && /* @__PURE__ */ l(y, { className: "pkt-btn__icon", name: r }),
1413
1413
  /* @__PURE__ */ l("span", { className: "pkt-btn__text", children: e }),
1414
1414
  c === "icons-right-and-left" && /* @__PURE__ */ l(y, { className: "pkt-btn__icon", name: o })
@@ -1416,8 +1416,43 @@ const rr = z(
1416
1416
  }
1417
1417
  );
1418
1418
  ye.displayName = "PktButton";
1419
- const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1420
- var i, s;
1419
+ const qn = B(
1420
+ ({
1421
+ id: e,
1422
+ hasTile: n = !1,
1423
+ disabled: r = !1,
1424
+ label: o,
1425
+ checkHelptext: a,
1426
+ hasError: s = !1,
1427
+ className: i,
1428
+ ...c
1429
+ }, p) => {
1430
+ const d = [
1431
+ i,
1432
+ "pkt-input-check"
1433
+ ].filter(Boolean).join(" ");
1434
+ return /* @__PURE__ */ l("div", { className: d, children: /* @__PURE__ */ m("div", { className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""}`, children: [
1435
+ /* @__PURE__ */ l(
1436
+ "input",
1437
+ {
1438
+ ref: p,
1439
+ className: `pkt-input-check__input-checkbox ${s ? "pkt-input-check__input-checkbox--error" : ""}`,
1440
+ type: "checkbox",
1441
+ id: e,
1442
+ disabled: r,
1443
+ ...c
1444
+ }
1445
+ ),
1446
+ /* @__PURE__ */ m("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
1447
+ o,
1448
+ a && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: a })
1449
+ ] })
1450
+ ] }) });
1451
+ }
1452
+ );
1453
+ qn.displayName = "PktCheckbox";
1454
+ const lr = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1455
+ var s, i;
1421
1456
  const a = [o, "pkt-footer"].filter(Boolean).join(" ");
1422
1457
  return /* @__PURE__ */ l("footer", { className: a, "data-mode": "dark", children: /* @__PURE__ */ m("div", { className: "pkt-footer__container", children: [
1423
1458
  /* @__PURE__ */ m("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -1425,7 +1460,7 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1425
1460
  /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: e.title }),
1426
1461
  /* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
1427
1462
  e.text && /* @__PURE__ */ l("li", { className: "pkt-footer__text", children: e.text }),
1428
- (i = e.links) == null ? void 0 : i.map((c, f) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
1463
+ (s = e.links) == null ? void 0 : s.map((c, p) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
1429
1464
  "a",
1430
1465
  {
1431
1466
  className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
@@ -1437,14 +1472,14 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1437
1472
  c.text
1438
1473
  ]
1439
1474
  }
1440
- ) }, `links-${f}`))
1475
+ ) }, `links-${p}`))
1441
1476
  ] })
1442
1477
  ] }),
1443
1478
  /* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1444
1479
  /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: n.title }),
1445
1480
  /* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
1446
1481
  n.text && /* @__PURE__ */ l("li", { className: "pkt-footer__text", children: n.text }),
1447
- (s = n.links) == null ? void 0 : s.map((c, f) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
1482
+ (i = n.links) == null ? void 0 : i.map((c, p) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
1448
1483
  "a",
1449
1484
  {
1450
1485
  className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
@@ -1456,7 +1491,7 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1456
1491
  c.text
1457
1492
  ]
1458
1493
  }
1459
- ) }, `links-${f}`))
1494
+ ) }, `links-${p}`))
1460
1495
  ] })
1461
1496
  ] }),
1462
1497
  /* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -1481,7 +1516,7 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1481
1516
  ] })
1482
1517
  ] }),
1483
1518
  r && /* @__PURE__ */ m("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
1484
- /* @__PURE__ */ l("div", { className: "pkt-footer__social-languages", children: r.filter((c) => c.language).map((c, f) => /* @__PURE__ */ l(
1519
+ /* @__PURE__ */ l("div", { className: "pkt-footer__social-languages", children: r.filter((c) => c.language).map((c, p) => /* @__PURE__ */ l(
1485
1520
  "div",
1486
1521
  {
1487
1522
  className: "pkt-footer__social-language",
@@ -1496,9 +1531,9 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1496
1531
  }
1497
1532
  )
1498
1533
  },
1499
- `sociallinks-language-${f}`
1534
+ `sociallinks-language-${p}`
1500
1535
  )) }),
1501
- /* @__PURE__ */ l("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, f) => /* @__PURE__ */ l(K.Fragment, { children: /* @__PURE__ */ l(
1536
+ /* @__PURE__ */ l("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, p) => /* @__PURE__ */ l(G.Fragment, { children: /* @__PURE__ */ l(
1502
1537
  "a",
1503
1538
  {
1504
1539
  href: c.href,
@@ -1508,10 +1543,10 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: o }) => {
1508
1543
  rel: c.openInNewTab ? "noopener noreferrer" : void 0,
1509
1544
  children: /* @__PURE__ */ l(y, { className: "pkt-footer__social-icon", name: c.iconName })
1510
1545
  }
1511
- ) }, `sociallinks-${f}`)) })
1546
+ ) }, `sociallinks-${p}`)) })
1512
1547
  ] })
1513
1548
  ] }) });
1514
- }, lr = ({
1549
+ }, or = ({
1515
1550
  links: e = [],
1516
1551
  className: n
1517
1552
  }) => {
@@ -1557,23 +1592,23 @@ var Dt = { exports: {} };
1557
1592
  var n = {}.hasOwnProperty;
1558
1593
  function r() {
1559
1594
  for (var o = [], a = 0; a < arguments.length; a++) {
1560
- var i = arguments[a];
1561
- if (i) {
1562
- var s = typeof i;
1563
- if (s === "string" || s === "number")
1564
- o.push(i);
1565
- else if (Array.isArray(i)) {
1566
- if (i.length) {
1567
- var c = r.apply(null, i);
1595
+ var s = arguments[a];
1596
+ if (s) {
1597
+ var i = typeof s;
1598
+ if (i === "string" || i === "number")
1599
+ o.push(s);
1600
+ else if (Array.isArray(s)) {
1601
+ if (s.length) {
1602
+ var c = r.apply(null, s);
1568
1603
  c && o.push(c);
1569
1604
  }
1570
- } else if (s === "object") {
1571
- if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
1572
- o.push(i.toString());
1605
+ } else if (i === "object") {
1606
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]")) {
1607
+ o.push(s.toString());
1573
1608
  continue;
1574
1609
  }
1575
- for (var f in i)
1576
- n.call(i, f) && i[f] && o.push(f);
1610
+ for (var p in s)
1611
+ n.call(s, p) && s[p] && o.push(p);
1577
1612
  }
1578
1613
  }
1579
1614
  }
@@ -1582,54 +1617,54 @@ var Dt = { exports: {} };
1582
1617
  e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
1583
1618
  })();
1584
1619
  })(Dt);
1585
- var Kn = Dt.exports;
1586
- const Lt = /* @__PURE__ */ sn(Kn), or = z(
1620
+ var Gn = Dt.exports;
1621
+ const $t = /* @__PURE__ */ sn(Gn), ir = B(
1587
1622
  ({
1588
1623
  logoLink: e = "https://www.oslo.kommune.no/",
1589
1624
  serviceName: n,
1590
1625
  fixed: r = !0,
1591
1626
  scrollToHide: o = !0,
1592
1627
  user: a,
1593
- userMenu: i,
1594
- representing: s,
1628
+ userMenu: s,
1629
+ representing: i,
1595
1630
  userOptions: c,
1596
- userMenuFooter: f,
1631
+ userMenuFooter: p,
1597
1632
  canChangeRepresentation: d = !0,
1598
1633
  showMenuButton: h = !1,
1599
- showLogOutButton: _ = !1,
1600
- openMenu: w,
1601
- logOut: C,
1602
- changeRepresentation: P,
1603
- ...R
1634
+ showLogOutButton: v = !1,
1635
+ openMenu: E,
1636
+ logOut: w,
1637
+ changeRepresentation: S,
1638
+ ...P
1604
1639
  }, T) => {
1605
- const O = K.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
1640
+ const C = G.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
1606
1641
  year: "numeric",
1607
1642
  month: "long",
1608
1643
  day: "numeric"
1609
- }) : "", [a]), [b, $] = K.useState(!1), [A, V] = K.useState(0), [I, J] = K.useState(!1), H = K.useRef(null);
1610
- K.useEffect(() => (document.addEventListener("mouseup", W), window.addEventListener("scroll", G), () => {
1611
- document.removeEventListener("mouseup", W), window.removeEventListener("scroll", G);
1644
+ }) : "", [a]), [b, j] = G.useState(!1), [F, A] = G.useState(0), [U, M] = G.useState(!1), H = G.useRef(null);
1645
+ G.useEffect(() => (document.addEventListener("mouseup", K), window.addEventListener("scroll", W), () => {
1646
+ document.removeEventListener("mouseup", K), window.removeEventListener("scroll", W);
1612
1647
  }));
1613
- const B = () => {
1614
- J(!I);
1615
- }, W = (v) => {
1616
- H.current && !H.current.contains(v.target) && J(!1);
1617
- }, G = () => {
1648
+ const Y = () => {
1649
+ M(!U);
1650
+ }, K = (_) => {
1651
+ H.current && !H.current.contains(_.target) && M(!1);
1652
+ }, W = () => {
1618
1653
  if (o) {
1619
- const v = window.pageYOffset || document.documentElement.scrollTop;
1620
- if (v < 0 || Math.abs(v - A) < 60)
1654
+ const _ = window.pageYOffset || document.documentElement.scrollTop;
1655
+ if (_ < 0 || Math.abs(_ - F) < 60)
1621
1656
  return;
1622
- $(v > A), V(v);
1657
+ j(_ > F), A(_);
1623
1658
  }
1624
1659
  };
1625
1660
  return /* @__PURE__ */ m(
1626
1661
  "header",
1627
1662
  {
1628
- ...R,
1663
+ ...P,
1629
1664
  id: "pkt-header",
1630
1665
  "data-testid": "pkt-header",
1631
1666
  "aria-label": "Topp",
1632
- className: Lt("pkt-header", {
1667
+ className: $t("pkt-header", {
1633
1668
  "pkt-header--fixed": r,
1634
1669
  "pkt-header--scroll-to-hide": o,
1635
1670
  "pkt-header--hidden": b
@@ -1643,7 +1678,7 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1643
1678
  name: "oslologo",
1644
1679
  className: "pkt-header__logo-svg",
1645
1680
  "aria-hidden": "true",
1646
- path: "https://punkt-cdn.oslo.kommune.no/8.0/logos/"
1681
+ path: "https://punkt-cdn.oslo.kommune.no/9.0/logos/"
1647
1682
  }
1648
1683
  ) }) : /* @__PURE__ */ l(
1649
1684
  "button",
@@ -1657,7 +1692,7 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1657
1692
  name: "oslologo",
1658
1693
  className: "pkt-header__logo-svg",
1659
1694
  "aria-hidden": "true",
1660
- path: "https://punkt-cdn.oslo.kommune.no/8.0/logos/"
1695
+ path: "https://punkt-cdn.oslo.kommune.no/9.0/logos/"
1661
1696
  }
1662
1697
  )
1663
1698
  }
@@ -1672,15 +1707,15 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1672
1707
  skin: "secondary",
1673
1708
  variant: "icon-right",
1674
1709
  iconName: "menu",
1675
- onClick: w,
1710
+ onClick: E,
1676
1711
  children: "Meny"
1677
1712
  }
1678
1713
  ) }),
1679
- (a || s) && /* @__PURE__ */ m(
1714
+ (a || i) && /* @__PURE__ */ m(
1680
1715
  "li",
1681
1716
  {
1682
1717
  "data-testid": "usermenu",
1683
- className: `pkt-header--has-dropdown ${I && !b ? "pkt-header--open-dropdown" : ""}`,
1718
+ className: `pkt-header--has-dropdown ${U && !b ? "pkt-header--open-dropdown" : ""}`,
1684
1719
  ref: H,
1685
1720
  children: [
1686
1721
  /* @__PURE__ */ m(
@@ -1690,12 +1725,12 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1690
1725
  type: "button",
1691
1726
  role: "button",
1692
1727
  "aria-controls": "pktUserDropdown",
1693
- "aria-expanded": I,
1694
- onClick: B,
1728
+ "aria-expanded": U,
1729
+ onClick: Y,
1695
1730
  children: [
1696
1731
  /* @__PURE__ */ l(y, { name: "user", className: "pkt-btn__icon" }),
1697
- /* @__PURE__ */ l("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (a == null ? void 0 : a.name) }),
1698
- /* @__PURE__ */ l("span", { className: "pkt-header__user-shortname", children: (s == null ? void 0 : s.shortname) || (a == null ? void 0 : a.shortname) }),
1732
+ /* @__PURE__ */ l("span", { className: "pkt-header__user-fullname", children: (i == null ? void 0 : i.name) || (a == null ? void 0 : a.name) }),
1733
+ /* @__PURE__ */ l("span", { className: "pkt-header__user-shortname", children: (i == null ? void 0 : i.shortname) || (a == null ? void 0 : a.shortname) }),
1699
1734
  /* @__PURE__ */ l(y, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1700
1735
  /* @__PURE__ */ l(y, { name: "chevron-thin-up", className: "pkt-btn--open" })
1701
1736
  ]
@@ -1707,30 +1742,30 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1707
1742
  /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: a.name }),
1708
1743
  a.lastLoggedIn && /* @__PURE__ */ m("div", { className: "pkt-user-menu__last-logged-in", children: [
1709
1744
  "Sist pålogget: ",
1710
- /* @__PURE__ */ l("time", { children: O })
1745
+ /* @__PURE__ */ l("time", { children: C })
1711
1746
  ] })
1712
1747
  ] }),
1713
- i && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: i.map((v, j) => /* @__PURE__ */ l("li", { children: typeof v.target == "string" ? /* @__PURE__ */ m("a", { href: v.target, className: "pkt-link", children: [
1714
- v.iconName && /* @__PURE__ */ l(y, { name: v.iconName, className: "pkt-link__icon" }),
1715
- v.title
1716
- ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: [
1717
- v.iconName && /* @__PURE__ */ l(y, { name: v.iconName, className: "pkt-link__icon" }),
1718
- v.title
1719
- ] }) }, `userMenu-${j}`)) }) }),
1720
- (s || d) && /* @__PURE__ */ m("li", { children: [
1721
- s && /* @__PURE__ */ m(X, { children: [
1748
+ s && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: s.map((_, D) => /* @__PURE__ */ l("li", { children: typeof _.target == "string" ? /* @__PURE__ */ m("a", { href: _.target, className: "pkt-link", children: [
1749
+ _.iconName && /* @__PURE__ */ l(y, { name: _.iconName, className: "pkt-link__icon" }),
1750
+ _.title
1751
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: [
1752
+ _.iconName && /* @__PURE__ */ l(y, { name: _.iconName, className: "pkt-link__icon" }),
1753
+ _.title
1754
+ ] }) }, `userMenu-${D}`)) }) }),
1755
+ (i || d) && /* @__PURE__ */ m("li", { children: [
1756
+ i && /* @__PURE__ */ m(ee, { children: [
1722
1757
  /* @__PURE__ */ l("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1723
- /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: s.name }),
1724
- s.orgNumber && /* @__PURE__ */ m("div", { className: "pkt-user-menu__org-number", children: [
1758
+ /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: i.name }),
1759
+ i.orgNumber && /* @__PURE__ */ m("div", { className: "pkt-user-menu__org-number", children: [
1725
1760
  "Org.nr. ",
1726
- s.orgNumber
1761
+ i.orgNumber
1727
1762
  ] })
1728
1763
  ] }),
1729
1764
  /* @__PURE__ */ l("ul", { className: "pkt-list mt-size-16", children: d && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ m(
1730
1765
  "button",
1731
1766
  {
1732
1767
  className: "pkt-link-button pkt-link",
1733
- onClick: P,
1768
+ onClick: S,
1734
1769
  children: [
1735
1770
  /* @__PURE__ */ l(y, { name: "cogwheel", className: "pkt-link__icon" }),
1736
1771
  "Endre organisasjon"
@@ -1738,31 +1773,31 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1738
1773
  }
1739
1774
  ) }) })
1740
1775
  ] }),
1741
- /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: (c || !_) && /* @__PURE__ */ m(X, { children: [
1742
- c == null ? void 0 : c.map((v, j) => /* @__PURE__ */ l("li", { children: typeof v.target == "string" ? /* @__PURE__ */ m("a", { href: v.target, className: "pkt-link", children: [
1743
- v.iconName && /* @__PURE__ */ l(y, { name: v.iconName, className: "pkt-link__icon" }),
1744
- v.title
1745
- ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: [
1746
- v.iconName && /* @__PURE__ */ l(y, { name: v.iconName, className: "pkt-link__icon" }),
1747
- v.title
1748
- ] }) }, `userOptions-${j}`)),
1749
- !_ && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1776
+ /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: (c || !v) && /* @__PURE__ */ m(ee, { children: [
1777
+ c == null ? void 0 : c.map((_, D) => /* @__PURE__ */ l("li", { children: typeof _.target == "string" ? /* @__PURE__ */ m("a", { href: _.target, className: "pkt-link", children: [
1778
+ _.iconName && /* @__PURE__ */ l(y, { name: _.iconName, className: "pkt-link__icon" }),
1779
+ _.title
1780
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: [
1781
+ _.iconName && /* @__PURE__ */ l(y, { name: _.iconName, className: "pkt-link__icon" }),
1782
+ _.title
1783
+ ] }) }, `userOptions-${D}`)),
1784
+ !v && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: w, children: [
1750
1785
  /* @__PURE__ */ l(y, { name: "exit", className: "pkt-link__icon" }),
1751
1786
  "Logg ut"
1752
1787
  ] }) })
1753
1788
  ] }) }) }),
1754
- f && /* @__PURE__ */ l("li", { className: "footer", children: /* @__PURE__ */ l("ul", { className: "pkt-list-horizontal bordered", children: f.map((v, j) => /* @__PURE__ */ l("li", { children: typeof v.target == "string" ? /* @__PURE__ */ l("a", { href: v.target, className: "pkt-link", children: v.title }) : /* @__PURE__ */ l("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: v.title }) }, `userMenuFooter-${j}`)) }) })
1789
+ p && /* @__PURE__ */ l("li", { className: "footer", children: /* @__PURE__ */ l("ul", { className: "pkt-list-horizontal bordered", children: p.map((_, D) => /* @__PURE__ */ l("li", { children: typeof _.target == "string" ? /* @__PURE__ */ l("a", { href: _.target, className: "pkt-link", children: _.title }) : /* @__PURE__ */ l("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: _.title }) }, `userMenuFooter-${D}`)) }) })
1755
1790
  ] })
1756
1791
  ]
1757
1792
  }
1758
1793
  ),
1759
- _ && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
1794
+ v && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
1760
1795
  ye,
1761
1796
  {
1762
1797
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1763
1798
  iconName: "exit",
1764
1799
  role: "button",
1765
- onClick: C,
1800
+ onClick: w,
1766
1801
  skin: "secondary",
1767
1802
  variant: "icon-right",
1768
1803
  children: "Logg ut"
@@ -1773,101 +1808,109 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1773
1808
  }
1774
1809
  );
1775
1810
  }
1776
- ), qn = K.forwardRef(
1811
+ ), Xn = G.forwardRef(
1777
1812
  ({ label: e, id: n, children: r, ...o }, a) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
1778
1813
  /* @__PURE__ */ l("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1779
1814
  /* @__PURE__ */ l("input", { className: "pkt-form-input", id: n, ...o, ref: a }),
1780
1815
  r
1781
1816
  ] })
1782
1817
  );
1783
- qn.displayName = "PktInput";
1784
- const qe = z(
1818
+ Xn.displayName = "PktInput";
1819
+ const Re = B(
1785
1820
  ({
1786
1821
  forId: e,
1787
1822
  label: n,
1788
1823
  helptext: r,
1789
1824
  helptextDropdown: o,
1790
1825
  helptextDropdownButton: a,
1791
- optional: i,
1792
- optionalText: s = "Valgfritt",
1826
+ optional: s,
1827
+ optionalText: i = "Valgfritt",
1793
1828
  required: c,
1794
- requiredText: f = "Må fylles ut",
1829
+ requiredText: p = "Må fylles ut",
1795
1830
  hasError: d,
1796
1831
  errorMessage: h,
1797
- disabled: _,
1798
- inline: w,
1799
- ariaDescribedby: C,
1800
- useWrapper: P = !0,
1801
- children: R,
1802
- className: T
1803
- }, O) => {
1804
- const [b, $] = ue(!1), A = () => {
1805
- $(!b);
1806
- }, V = () => i ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : c ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", I = i ? s : c ? f : "", J = _ ? "pkt-inputwrapper--disabled" : "", H = w ? "pkt-inputwrapper--inline" : "", B = d ? "pkt-inputwrapper--error" : "", W = !!o && o !== "", G = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', v = W ? "div" : "label", j = W ? "h2" : "span", M = C || (r ? `${e}-helptext` : void 0);
1832
+ disabled: v,
1833
+ inline: E,
1834
+ ariaDescribedby: w,
1835
+ useWrapper: S = !0,
1836
+ children: P,
1837
+ className: T,
1838
+ hasFieldset: C = !1
1839
+ }, b) => {
1840
+ const [j, F] = ue(!1), A = () => {
1841
+ F(!j);
1842
+ }, U = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : c ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", M = s ? i : c ? p : "", H = v ? "pkt-inputwrapper--disabled" : "", Y = E ? "pkt-inputwrapper--inline" : "", K = d ? "pkt-inputwrapper--error" : "", W = !!o && o !== "", _ = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', D = C ? "fieldset" : W ? "div" : "label", J = C ? "legend" : W ? "h2" : "span", q = w || (r ? `${e}-helptext` : void 0);
1807
1843
  return /* @__PURE__ */ m(
1808
1844
  "div",
1809
1845
  {
1810
- className: ["pkt-inputwrapper", T, J, H, B].join(
1846
+ className: ["pkt-inputwrapper", T, H, Y, K].join(
1811
1847
  " "
1812
1848
  ),
1813
- ref: O,
1849
+ ref: b,
1814
1850
  children: [
1815
- P ? /* @__PURE__ */ m(X, { children: [
1816
- /* @__PURE__ */ l(
1817
- v,
1818
- {
1819
- htmlFor: e,
1820
- className: "pkt-inputwrapper__label",
1821
- "aria-describedby": W ? "" : C,
1822
- children: /* @__PURE__ */ m(j, { id: `${e}-label`, children: [
1823
- n,
1824
- I !== "" && /* @__PURE__ */ l("span", { className: V(), children: I })
1825
- ] })
1826
- }
1827
- ),
1828
- r && /* @__PURE__ */ l(
1829
- "div",
1830
- {
1831
- className: "pkt-inputwrapper__helptext",
1832
- id: `${e}-helptext`,
1833
- dangerouslySetInnerHTML: { __html: r }
1834
- }
1835
- ),
1836
- W && o !== "" && /* @__PURE__ */ m("div", { children: [
1837
- /* @__PURE__ */ l(
1838
- ye,
1839
- {
1840
- skin: "tertiary",
1841
- size: "small",
1842
- variant: "icon-right",
1843
- iconName: b ? "chevron-thin-up" : "chevron-thin-down",
1844
- className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1845
- onClick: A,
1846
- children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: G } })
1847
- }
1848
- ),
1849
- /* @__PURE__ */ l(
1850
- "div",
1851
- {
1852
- className: `pkt-inputwrapper__helptext ${b ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1853
- children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: o } })
1854
- }
1855
- ),
1856
- /* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": M, children: n })
1857
- ] }),
1858
- /* @__PURE__ */ l(X, { children: R })
1859
- ] }) : /* @__PURE__ */ m(X, { children: [
1851
+ S ? /* @__PURE__ */ l(ee, { children: /* @__PURE__ */ m(
1852
+ D,
1853
+ {
1854
+ htmlFor: e,
1855
+ "aria-describedby": W ? "" : w,
1856
+ className: `pkt-inputwrapper__label${C ? " pkt-inputwrapper__fieldset" : ""}`,
1857
+ children: [
1858
+ /* @__PURE__ */ m(
1859
+ J,
1860
+ {
1861
+ id: `${e}-label`,
1862
+ className: `${C ? " pkt-inputwrapper__legend" : ""}`,
1863
+ children: [
1864
+ n,
1865
+ M !== "" && /* @__PURE__ */ l("span", { className: U(), children: M })
1866
+ ]
1867
+ }
1868
+ ),
1869
+ r && /* @__PURE__ */ l(
1870
+ "div",
1871
+ {
1872
+ className: "pkt-inputwrapper__helptext",
1873
+ id: `${e}-helptext`,
1874
+ dangerouslySetInnerHTML: { __html: r }
1875
+ }
1876
+ ),
1877
+ W && o !== "" && /* @__PURE__ */ m("div", { children: [
1878
+ /* @__PURE__ */ l(
1879
+ ye,
1880
+ {
1881
+ skin: "tertiary",
1882
+ size: "small",
1883
+ variant: "icon-right",
1884
+ iconName: j ? "chevron-thin-up" : "chevron-thin-down",
1885
+ className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1886
+ onClick: A,
1887
+ children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: _ } })
1888
+ }
1889
+ ),
1890
+ /* @__PURE__ */ l(
1891
+ "div",
1892
+ {
1893
+ className: `pkt-inputwrapper__helptext ${j ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1894
+ children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: o } })
1895
+ }
1896
+ ),
1897
+ /* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": q, children: n })
1898
+ ] }),
1899
+ /* @__PURE__ */ l(ee, { children: P })
1900
+ ]
1901
+ }
1902
+ ) }) : /* @__PURE__ */ m(ee, { children: [
1860
1903
  /* @__PURE__ */ l(
1861
1904
  "label",
1862
1905
  {
1863
1906
  htmlFor: e,
1864
1907
  className: "pkt-sr-only",
1865
- "aria-describedby": M,
1908
+ "aria-describedby": q,
1866
1909
  id: `${e}-label`,
1867
1910
  children: n
1868
1911
  }
1869
1912
  ),
1870
- R
1913
+ P
1871
1914
  ] }),
1872
1915
  d && h && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(dn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, slim: !0, children: h }) })
1873
1916
  ]
@@ -1875,31 +1918,31 @@ const qe = z(
1875
1918
  );
1876
1919
  }
1877
1920
  );
1878
- qe.displayName = "PktInputWrapper";
1879
- const Xn = z(
1921
+ Re.displayName = "PktInputWrapper";
1922
+ const Zn = B(
1880
1923
  ({
1881
1924
  children: e,
1882
1925
  className: n,
1883
1926
  iconName: r = "user",
1884
1927
  openInNewTab: o = !1,
1885
1928
  skin: a = "normal",
1886
- href: i = "#",
1887
- external: s = !1,
1929
+ href: s = "#",
1930
+ external: i = !1,
1888
1931
  title: c
1889
- }, f) => {
1932
+ }, p) => {
1890
1933
  const d = [n, "pkt-linkcard", a && `pkt-linkcard--${a}`].filter(Boolean).join(" ");
1891
1934
  return /* @__PURE__ */ m(
1892
1935
  "a",
1893
1936
  {
1894
- href: i,
1937
+ href: s,
1895
1938
  className: `pkt-linkcard pkt-link ${d}`,
1896
1939
  target: o ? "_blank" : "_self",
1897
1940
  rel: o ? "noopener noreferrer" : void 0,
1898
- ref: f,
1941
+ ref: p,
1899
1942
  children: [
1900
1943
  /* @__PURE__ */ l(y, { className: "pkt-link__icon", name: r }),
1901
1944
  /* @__PURE__ */ m("div", { className: "pkt-linkcard__content", children: [
1902
- /* @__PURE__ */ l("div", { className: `pkt-linkcard__title ${s ? "pkt-link pkt-link--external" : ""}`, children: c }),
1945
+ /* @__PURE__ */ l("div", { className: `pkt-linkcard__title ${i ? "pkt-link pkt-link--external" : ""}`, children: c }),
1903
1946
  /* @__PURE__ */ l("div", { className: "pkt-linkcard__text", children: e })
1904
1947
  ] })
1905
1948
  ]
@@ -1907,267 +1950,355 @@ const Xn = z(
1907
1950
  );
1908
1951
  }
1909
1952
  );
1910
- Xn.displayName = "PktLinkCard";
1911
- const ir = ({
1953
+ Zn.displayName = "PktLinkCard";
1954
+ const sr = ({
1912
1955
  children: e,
1913
1956
  skin: n = "beige",
1914
1957
  title: r,
1915
1958
  className: o,
1916
1959
  ...a
1917
1960
  }) => {
1918
- const i = ["pkt-messagebox", n && `pkt-messagebox--${n}`, o].filter(Boolean).join(" ");
1919
- return /* @__PURE__ */ m("div", { ...a, className: i, children: [
1961
+ const s = ["pkt-messagebox", n && `pkt-messagebox--${n}`, o].filter(Boolean).join(" ");
1962
+ return /* @__PURE__ */ m("div", { ...a, className: s, children: [
1920
1963
  /* @__PURE__ */ l("div", { className: "pkt-messagebox__title", children: r }),
1921
1964
  /* @__PURE__ */ l("div", { className: "pkt-messagebox__text", children: e })
1922
1965
  ] });
1923
- }, Zn = z(
1924
- ({ id: e, name: n, label: r, value: o, ...a }, i) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
1925
- /* @__PURE__ */ l("input", { type: "radio", className: "pkt-form-check-input", id: e, name: n, value: o, ref: i, ...a }),
1926
- /* @__PURE__ */ l("label", { className: "pkt-form-label", htmlFor: e, children: r })
1927
- ] })
1966
+ }, Qn = B(
1967
+ ({
1968
+ id: e,
1969
+ name: n,
1970
+ label: r,
1971
+ className: o,
1972
+ hasTile: a = !1,
1973
+ disabled: s = !1,
1974
+ checkHelptext: i,
1975
+ hasError: c = !1,
1976
+ ...p
1977
+ }, d) => {
1978
+ const h = [
1979
+ o,
1980
+ "pkt-input-check"
1981
+ ].filter(Boolean).join(" ");
1982
+ return /* @__PURE__ */ l("div", { className: h, children: /* @__PURE__ */ m("div", { className: `pkt-input-check__input ${a ? "pkt-input-check__input--tile" : ""}`, children: [
1983
+ /* @__PURE__ */ l(
1984
+ "input",
1985
+ {
1986
+ ref: d,
1987
+ className: `pkt-input-check__input-checkbox ${c ? "pkt-input-check__input-checkbox--error" : ""}`,
1988
+ type: "radio",
1989
+ id: e,
1990
+ disabled: s,
1991
+ name: n,
1992
+ ...p
1993
+ }
1994
+ ),
1995
+ /* @__PURE__ */ m("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
1996
+ r,
1997
+ i && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: i })
1998
+ ] })
1999
+ ] }) });
2000
+ }
1928
2001
  );
1929
- Zn.displayName = "PktRadio";
1930
- const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(X, { children: [
1931
- /* @__PURE__ */ l("p", { children: e }),
1932
- /* @__PURE__ */ l("div", { className: "pkt-form-group", children: n })
1933
- ] }), Qn = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ l("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ l(X, { children: n }), cr = ({
2002
+ Qn.displayName = "PktRadioButton";
2003
+ const cr = B(
2004
+ ({
2005
+ ariaDescribedby: e,
2006
+ ariaLabelledby: n,
2007
+ children: r,
2008
+ className: o,
2009
+ disabled: a = !1,
2010
+ errorMessage: s,
2011
+ hasError: i,
2012
+ helptext: c,
2013
+ helptextDropdown: p,
2014
+ helptextDropdownButton: d,
2015
+ id: h,
2016
+ inline: v = !1,
2017
+ fullwidth: E = !1,
2018
+ label: w,
2019
+ name: S,
2020
+ optional: P = !1,
2021
+ optionalText: T,
2022
+ required: C = !1,
2023
+ requiredText: b,
2024
+ ...j
2025
+ }, F) => {
2026
+ const A = [o, "pkt-select"].join(" ");
2027
+ return /* @__PURE__ */ l(
2028
+ Re,
2029
+ {
2030
+ className: A,
2031
+ forId: h,
2032
+ label: w,
2033
+ helptext: c,
2034
+ helptextDropdown: p,
2035
+ helptextDropdownButton: d,
2036
+ optional: P,
2037
+ optionalText: T,
2038
+ required: C,
2039
+ requiredText: b,
2040
+ hasError: i,
2041
+ errorMessage: s,
2042
+ disabled: a,
2043
+ inline: v,
2044
+ ariaDescribedby: e,
2045
+ children: /* @__PURE__ */ l(
2046
+ "select",
2047
+ {
2048
+ ref: F,
2049
+ className: `pkt-input ${E ? "pkt-input--fullwidth" : ""}`,
2050
+ "aria-invalid": i,
2051
+ "aria-errormessage": `${h}-error`,
2052
+ "aria-labelledby": n || `${h}-label`,
2053
+ "aria-required": C,
2054
+ disabled: a,
2055
+ id: h,
2056
+ name: S || h,
2057
+ ...j,
2058
+ children: r
2059
+ }
2060
+ )
2061
+ }
2062
+ );
2063
+ }
2064
+ ), er = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ l("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ l(ee, { children: n }), ur = ({
1934
2065
  isResponsive: e,
1935
2066
  modifiers: { info: n = !1, success: r = !1, strong: o = !1, shadow: a = !1 } = {},
1936
- children: i
1937
- }) => /* @__PURE__ */ l(Qn, { isResponsive: e, children: /* @__PURE__ */ l(
2067
+ children: s
2068
+ }) => /* @__PURE__ */ l(er, { isResponsive: e, children: /* @__PURE__ */ l(
1938
2069
  "table",
1939
2070
  {
1940
- className: Lt("pkt-table", {
2071
+ className: $t("pkt-table", {
1941
2072
  "pkt-table--info": n,
1942
2073
  "pkt-table--success": r,
1943
2074
  "pkt-table--strong": o,
1944
2075
  "pkt-table--shadow": a
1945
2076
  }),
1946
- children: i
2077
+ children: s
1947
2078
  }
1948
- ) }), ur = ({ children: e }) => /* @__PURE__ */ l("td", { className: "pkt-table__th", children: e }), fr = ({ children: e }) => /* @__PURE__ */ l("th", { className: "pkt-table__th", children: e }), er = z(({
2079
+ ) }), pr = ({ children: e }) => /* @__PURE__ */ l("td", { className: "pkt-table__th", children: e }), fr = ({ children: e }) => /* @__PURE__ */ l("th", { className: "pkt-table__th", children: e }), tr = B(({
1949
2080
  children: e,
1950
2081
  className: n,
1951
2082
  skin: r = "blue",
1952
2083
  textStyle: o = "normal-text",
1953
2084
  size: a = "medium",
1954
- closeTag: i = !1,
1955
- iconName: s = "",
2085
+ closeTag: s = !1,
2086
+ iconName: i = "",
1956
2087
  type: c = "button",
1957
- ariaLabel: f = "close",
2088
+ ariaLabel: p = "close",
1958
2089
  onClick: d = () => {
1959
2090
  }
1960
2091
  }, h) => {
1961
- const [_, w] = ue(!1), C = (O) => {
1962
- w(!0), d(O);
1963
- }, P = [
2092
+ const [v, E] = ue(!1), w = (C) => {
2093
+ E(!0), d(C);
2094
+ }, S = [
1964
2095
  "pkt-tag",
1965
2096
  a && `pkt-tag--${a}`,
1966
2097
  r && `pkt-tag--${r}`,
1967
2098
  o && `pkt-tag--${o}`,
1968
2099
  n
1969
- ].filter(Boolean).join(" "), R = [
2100
+ ].filter(Boolean).join(" "), P = [
1970
2101
  "pkt-tag",
1971
2102
  "pkt-btn",
1972
2103
  "pkt-btn--tertiary",
1973
2104
  a && `pkt-tag--${a}`,
1974
2105
  r && `pkt-tag--${r}`,
1975
2106
  o && `pkt-tag--${o}`,
1976
- s && i ? "pkt-btn--icons-right-and-left" : null,
1977
- i && !s ? "pkt-btn--icon-right" : null,
2107
+ i && s ? "pkt-btn--icons-right-and-left" : null,
2108
+ s && !i ? "pkt-btn--icon-right" : null,
1978
2109
  n
1979
- ].filter(Boolean).join(" "), T = !_;
1980
- return i && s ? /* @__PURE__ */ l(X, { children: T && /* @__PURE__ */ m(
2110
+ ].filter(Boolean).join(" "), T = !v;
2111
+ return s && i ? /* @__PURE__ */ l(ee, { children: T && /* @__PURE__ */ m(
1981
2112
  "button",
1982
2113
  {
1983
- className: R,
2114
+ className: P,
1984
2115
  type: c,
1985
- "aria-label": f,
1986
- onClick: C,
2116
+ "aria-label": p,
2117
+ onClick: w,
1987
2118
  ref: h,
1988
2119
  children: [
1989
- /* @__PURE__ */ l(y, { className: "pkt-tag__icon", name: s }),
2120
+ /* @__PURE__ */ l(y, { className: "pkt-tag__icon", name: i }),
1990
2121
  e,
1991
2122
  /* @__PURE__ */ l(y, { className: "pkt-tag__close-btn", name: "close" })
1992
2123
  ]
1993
2124
  }
1994
- ) }) : i ? /* @__PURE__ */ l(X, { children: T && /* @__PURE__ */ m(
2125
+ ) }) : s ? /* @__PURE__ */ l(ee, { children: T && /* @__PURE__ */ m(
1995
2126
  "button",
1996
2127
  {
1997
- className: R,
2128
+ className: P,
1998
2129
  type: c,
1999
- "aria-label": f,
2000
- onClick: C,
2130
+ "aria-label": p,
2131
+ onClick: w,
2001
2132
  ref: h,
2002
2133
  children: [
2003
2134
  /* @__PURE__ */ l(y, { className: "pkt-tag__close-btn", name: "close" }),
2004
2135
  e
2005
2136
  ]
2006
2137
  }
2007
- ) }) : s ? /* @__PURE__ */ m("span", { className: P, children: [
2008
- /* @__PURE__ */ l(y, { className: "pkt-tag__icon", name: s }),
2138
+ ) }) : i ? /* @__PURE__ */ m("span", { className: S, children: [
2139
+ /* @__PURE__ */ l(y, { className: "pkt-tag__icon", name: i }),
2009
2140
  e
2010
- ] }) : /* @__PURE__ */ l("span", { className: P, children: e });
2141
+ ] }) : /* @__PURE__ */ l("span", { className: S, children: e });
2011
2142
  });
2012
- er.displayName = "PktTag";
2013
- const pr = z(
2143
+ tr.displayName = "PktTag";
2144
+ const dr = B(
2014
2145
  ({
2015
2146
  id: e,
2016
2147
  ariaDescribedby: n,
2017
2148
  ariaLabelledby: r,
2018
2149
  counter: o,
2019
2150
  counterMaxLength: a,
2020
- className: i,
2021
- disabled: s,
2151
+ className: s,
2152
+ disabled: i,
2022
2153
  errorMessage: c,
2023
- hasError: f,
2154
+ hasError: p,
2024
2155
  helptext: d,
2025
2156
  helptextDropdown: h,
2026
- helptextDropdownButton: _,
2027
- inline: w,
2028
- fullwidth: C = !1,
2029
- label: P,
2030
- name: R,
2157
+ helptextDropdownButton: v,
2158
+ inline: E,
2159
+ fullwidth: w = !1,
2160
+ label: S,
2161
+ name: P,
2031
2162
  optional: T = !1,
2032
- optionalText: O,
2163
+ optionalText: C,
2033
2164
  required: b = !1,
2034
- requiredText: $,
2035
- placeholder: A,
2036
- rows: V,
2037
- useWrapper: I,
2038
- onChange: J,
2165
+ requiredText: j,
2166
+ placeholder: F,
2167
+ rows: A,
2168
+ useWrapper: U,
2169
+ onChange: M,
2039
2170
  ...H
2040
- }, B) => {
2041
- const W = [i, "pkt-textinput", "pkt-textarea"].join(" "), G = r || `${e}-label`, v = on(null), [j, M] = ue(0), te = (Z) => {
2171
+ }, Y) => {
2172
+ const K = [s, "pkt-textinput", "pkt-textarea"].join(" "), W = r || `${e}-label`, _ = on(null), [D, J] = ue(0), q = (Z) => {
2042
2173
  var Q, oe;
2043
- if (o && M(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), J)
2044
- return J(Z);
2174
+ if (o && J(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), M)
2175
+ return M(Z);
2045
2176
  };
2046
2177
  return yt(() => {
2047
2178
  var Z, Q;
2048
- typeof B == "function" && B(v.current), o && M(((Q = (Z = v == null ? void 0 : v.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2049
- }, [B]), /* @__PURE__ */ m(
2050
- qe,
2179
+ typeof Y == "function" && Y(_.current), o && J(((Q = (Z = _ == null ? void 0 : _.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2180
+ }, [Y]), /* @__PURE__ */ m(
2181
+ Re,
2051
2182
  {
2052
2183
  ariaDescribedby: n,
2053
- className: W,
2054
- disabled: s,
2184
+ className: K,
2185
+ disabled: i,
2055
2186
  errorMessage: c,
2056
2187
  forId: e,
2057
- hasError: f,
2188
+ hasError: p,
2058
2189
  helptext: d,
2059
2190
  helptextDropdown: h,
2060
- helptextDropdownButton: _,
2061
- inline: w,
2062
- label: P,
2191
+ helptextDropdownButton: v,
2192
+ inline: E,
2193
+ label: S,
2063
2194
  optional: T,
2064
- optionalText: O,
2195
+ optionalText: C,
2065
2196
  required: b,
2066
- requiredText: $,
2067
- useWrapper: I,
2197
+ requiredText: j,
2198
+ useWrapper: U,
2068
2199
  children: [
2069
2200
  /* @__PURE__ */ l(
2070
2201
  "textarea",
2071
2202
  {
2072
- ref: v,
2073
- className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${a && j > a ? "pkt-input--counter-error" : ""}`,
2074
- name: R || e,
2203
+ ref: _,
2204
+ className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${a && D > a ? "pkt-input--counter-error" : ""}`,
2205
+ name: P || e,
2075
2206
  id: e,
2076
- placeholder: A,
2077
- disabled: s,
2078
- rows: V,
2079
- "aria-labelledby": G,
2080
- "aria-invalid": f,
2207
+ placeholder: F,
2208
+ disabled: i,
2209
+ rows: A,
2210
+ "aria-labelledby": W,
2211
+ "aria-invalid": p,
2081
2212
  "aria-errormessage": `${e}-error`,
2082
2213
  "aria-required": b,
2083
2214
  ...H,
2084
- onChange: te
2215
+ onChange: q
2085
2216
  }
2086
2217
  ),
2087
2218
  o && /* @__PURE__ */ m("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2088
- j || 0,
2219
+ D || 0,
2089
2220
  a && `/${a}`
2090
2221
  ] })
2091
2222
  ]
2092
2223
  }
2093
2224
  );
2094
2225
  }
2095
- ), dr = z(
2226
+ ), mr = B(
2096
2227
  ({
2097
2228
  id: e,
2098
2229
  ariaDescribedby: n,
2099
2230
  ariaLabelledby: r,
2100
2231
  autocomplete: o = "off",
2101
2232
  className: a,
2102
- disabled: i = !1,
2103
- errorMessage: s,
2233
+ disabled: s = !1,
2234
+ errorMessage: i,
2104
2235
  hasError: c = !1,
2105
- helptext: f,
2236
+ helptext: p,
2106
2237
  helptextDropdown: d,
2107
2238
  helptextDropdownButton: h,
2108
- iconNameRight: _,
2109
- inline: w = !1,
2110
- fullwidth: C = !1,
2111
- label: P,
2112
- name: R,
2239
+ iconNameRight: v,
2240
+ inline: E = !1,
2241
+ fullwidth: w = !1,
2242
+ label: S,
2243
+ name: P,
2113
2244
  optional: T = !1,
2114
- optionalText: O,
2245
+ optionalText: C,
2115
2246
  required: b = !1,
2116
- requiredText: $,
2117
- placeholder: A,
2118
- prefix: V,
2119
- suffix: I,
2120
- type: J = "text",
2247
+ requiredText: j,
2248
+ placeholder: F,
2249
+ prefix: A,
2250
+ suffix: U,
2251
+ type: M = "text",
2121
2252
  useWrapper: H = !0,
2122
- value: B,
2123
- ...W
2124
- }, G) => {
2125
- const v = [a, "pkt-textinput"].join(" "), j = r || `${e}-label`;
2253
+ value: Y,
2254
+ ...K
2255
+ }, W) => {
2256
+ const _ = [a, "pkt-textinput"].join(" "), D = r || `${e}-label`;
2126
2257
  return /* @__PURE__ */ l(
2127
- qe,
2258
+ Re,
2128
2259
  {
2129
2260
  ariaDescribedby: n,
2130
- className: v,
2131
- disabled: i,
2132
- errorMessage: s,
2261
+ className: _,
2262
+ disabled: s,
2263
+ errorMessage: i,
2133
2264
  forId: e,
2134
2265
  hasError: c,
2135
- helptext: f,
2266
+ helptext: p,
2136
2267
  helptextDropdown: d,
2137
2268
  helptextDropdownButton: h,
2138
- inline: w,
2139
- label: P,
2269
+ inline: E,
2270
+ label: S,
2140
2271
  optional: T,
2141
- optionalText: O,
2272
+ optionalText: C,
2142
2273
  required: b,
2143
- requiredText: $,
2274
+ requiredText: j,
2144
2275
  useWrapper: H,
2145
2276
  children: /* @__PURE__ */ m("div", { className: "pkt-input__container", children: [
2146
- V && /* @__PURE__ */ l("div", { className: "pkt-input-prefix", children: V }),
2277
+ A && /* @__PURE__ */ l("div", { className: "pkt-input-prefix", children: A }),
2147
2278
  /* @__PURE__ */ l(
2148
2279
  "input",
2149
2280
  {
2150
- ref: G,
2151
- className: `pkt-input ${C ? "pkt-input--fullwidth" : ""}`,
2152
- type: J,
2153
- name: R || e,
2281
+ ref: W,
2282
+ className: `pkt-input ${w ? "pkt-input--fullwidth" : ""}`,
2283
+ type: M,
2284
+ name: P || e,
2154
2285
  id: e,
2155
- placeholder: A,
2286
+ placeholder: F,
2156
2287
  autoComplete: o,
2157
- value: B,
2158
- disabled: i,
2288
+ value: Y,
2289
+ disabled: s,
2159
2290
  "aria-required": b,
2160
2291
  "aria-invalid": c,
2161
2292
  "aria-errormessage": `${e}-error`,
2162
- "aria-labelledby": j,
2163
- ...W
2293
+ "aria-labelledby": D,
2294
+ ...K
2164
2295
  }
2165
2296
  ),
2166
- I && /* @__PURE__ */ m("p", { className: "pkt-input-suffix", children: [
2167
- I,
2168
- _ && /* @__PURE__ */ l(y, { className: "pkt-input-suffix-icon", name: _ })
2297
+ U && /* @__PURE__ */ m("p", { className: "pkt-input-suffix", children: [
2298
+ U,
2299
+ v && /* @__PURE__ */ l(y, { className: "pkt-input-suffix-icon", name: v })
2169
2300
  ] }),
2170
- !I && _ && /* @__PURE__ */ l(y, { className: "pkt-input-icon", name: _ })
2301
+ !U && v && /* @__PURE__ */ l(y, { className: "pkt-input-icon", name: v })
2171
2302
  ] })
2172
2303
  }
2173
2304
  );
@@ -2175,23 +2306,24 @@ const pr = z(
2175
2306
  );
2176
2307
  export {
2177
2308
  dn as PktAlert,
2178
- nr as PktBackLink,
2179
- rr as PktBreadcrumbs,
2309
+ rr as PktBackLink,
2310
+ ar as PktBreadcrumbs,
2180
2311
  ye as PktButton,
2181
- ar as PktFooter,
2182
- lr as PktFooterSimple,
2183
- or as PktHeader,
2312
+ qn as PktCheckbox,
2313
+ lr as PktFooter,
2314
+ or as PktFooterSimple,
2315
+ ir as PktHeader,
2184
2316
  y as PktIcon,
2185
- qn as PktInput,
2186
- qe as PktInputWrapper,
2187
- Xn as PktLinkCard,
2188
- ir as PktMessagebox,
2189
- Zn as PktRadio,
2190
- sr as PktRadioGroup,
2191
- cr as PktTable,
2192
- ur as PktTableData,
2317
+ Xn as PktInput,
2318
+ Re as PktInputWrapper,
2319
+ Zn as PktLinkCard,
2320
+ sr as PktMessagebox,
2321
+ Qn as PktRadioButton,
2322
+ cr as PktSelect,
2323
+ ur as PktTable,
2324
+ pr as PktTableData,
2193
2325
  fr as PktTableHeader,
2194
- er as PktTag,
2195
- pr as PktTextarea,
2196
- dr as PktTextinput
2326
+ tr as PktTag,
2327
+ dr as PktTextarea,
2328
+ mr as PktTextinput
2197
2329
  };