@oslokommune/punkt-react 8.0.2 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import * as b from "react";
2
- import q, { useState as ce, useEffect as yt, forwardRef as z, useRef as ln } from "react";
1
+ import * as g from "react";
2
+ import K, { useState as ue, useEffect as yt, forwardRef as z, useRef as ln } 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 $e = { exports: {} }, ie = {};
6
+ var Ae = { exports: {} }, se = {};
7
7
  /**
8
8
  * @license React
9
9
  * react-jsx-runtime.production.min.js
@@ -16,22 +16,22 @@ var $e = { exports: {} }, ie = {};
16
16
  var kt;
17
17
  function cn() {
18
18
  if (kt)
19
- return ie;
19
+ return se;
20
20
  kt = 1;
21
- var e = q, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), l = 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 };
21
+ var e = K, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), l = 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
22
  function s(c, f, d) {
23
- var h, v = {}, x = null, C = null;
24
- d !== void 0 && (x = "" + d), f.key !== void 0 && (x = "" + f.key), f.ref !== void 0 && (C = f.ref);
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
25
  for (h in f)
26
- l.call(f, h) && !i.hasOwnProperty(h) && (v[h] = f[h]);
26
+ l.call(f, h) && !i.hasOwnProperty(h) && (_[h] = f[h]);
27
27
  if (c && c.defaultProps)
28
28
  for (h in f = c.defaultProps, f)
29
- v[h] === void 0 && (v[h] = f[h]);
30
- return { $$typeof: n, type: c, key: x, ref: C, props: v, _owner: a.current };
29
+ _[h] === void 0 && (_[h] = f[h]);
30
+ return { $$typeof: n, type: c, key: w, ref: C, props: _, _owner: a.current };
31
31
  }
32
- return ie.Fragment = r, ie.jsx = s, ie.jsxs = s, ie;
32
+ return se.Fragment = r, se.jsx = s, se.jsxs = s, se;
33
33
  }
34
- var se = {};
34
+ var ce = {};
35
35
  /**
36
36
  * @license React
37
37
  * react-jsx-runtime.development.js
@@ -44,54 +44,54 @@ var se = {};
44
44
  var vt;
45
45
  function un() {
46
46
  return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
47
- var e = q, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), l = 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"), v = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), O = Symbol.iterator, R = "@@iterator";
47
+ var e = K, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), l = 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"), O = Symbol.iterator, R = "@@iterator";
48
48
  function T(t) {
49
49
  if (t === null || typeof t != "object")
50
50
  return null;
51
51
  var u = O && t[O] || t[R];
52
52
  return typeof u == "function" ? u : null;
53
53
  }
54
- var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
- function g(t) {
54
+ var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function b(t) {
56
56
  {
57
57
  for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
58
58
  p[k - 1] = arguments[k];
59
- F("error", t, p);
59
+ $("error", t, p);
60
60
  }
61
61
  }
62
- function F(t, u, p) {
62
+ function $(t, u, p) {
63
63
  {
64
- var k = P.ReactDebugCurrentFrame, w = k.getStackAddendum();
65
- w !== "" && (u += "%s", p = p.concat([w]));
66
- var S = p.map(function(E) {
64
+ var k = S.ReactDebugCurrentFrame, x = k.getStackAddendum();
65
+ x !== "" && (u += "%s", p = p.concat([x]));
66
+ var P = p.map(function(E) {
67
67
  return String(E);
68
68
  });
69
- S.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, S);
69
+ P.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, P);
70
70
  }
71
71
  }
72
- var $ = !1, A = !1, U = !1, G = !1, M = !1, K;
73
- K = Symbol.for("react.module.reference");
74
- function B(t) {
75
- return !!(typeof t == "string" || typeof t == "function" || t === l || t === i || M || t === a || t === d || t === h || G || t === C || $ || A || U || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === v || t.$$typeof === s || t.$$typeof === c || t.$$typeof === f || // This needs to include all possible module reference object
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 === l || 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
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 === K || t.getModuleId !== void 0));
79
+ t.$$typeof === B || t.getModuleId !== void 0));
80
80
  }
81
- function W(t, u, p) {
81
+ function G(t, u, p) {
82
82
  var k = t.displayName;
83
83
  if (k)
84
84
  return k;
85
- var w = u.displayName || u.name || "";
86
- return w !== "" ? p + "(" + w + ")" : p;
85
+ var x = u.displayName || u.name || "";
86
+ return x !== "" ? p + "(" + x + ")" : p;
87
87
  }
88
- function _(t) {
88
+ function v(t) {
89
89
  return t.displayName || "Context";
90
90
  }
91
- function D(t) {
91
+ function j(t) {
92
92
  if (t == null)
93
93
  return null;
94
- if (typeof t.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
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")
95
95
  return t.displayName || t.name || null;
96
96
  if (typeof t == "string")
97
97
  return t;
@@ -113,19 +113,19 @@ function un() {
113
113
  switch (t.$$typeof) {
114
114
  case c:
115
115
  var u = t;
116
- return _(u) + ".Consumer";
116
+ return v(u) + ".Consumer";
117
117
  case s:
118
118
  var p = t;
119
- return _(p._context) + ".Provider";
119
+ return v(p._context) + ".Provider";
120
120
  case f:
121
- return W(t, t.render, "ForwardRef");
122
- case v:
121
+ return G(t, t.render, "ForwardRef");
122
+ case _:
123
123
  var k = t.displayName || null;
124
- return k !== null ? k : D(t.type) || "Memo";
125
- case x: {
126
- var w = t, S = w._payload, E = w._init;
124
+ return k !== null ? k : j(t.type) || "Memo";
125
+ case w: {
126
+ var x = t, P = x._payload, E = x._init;
127
127
  try {
128
- return D(E(S));
128
+ return j(E(P));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -133,14 +133,14 @@ function un() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var Y = Object.assign, H = 0, Q, oe, qe, Xe, Ze, Qe, et;
136
+ var M = Object.assign, te = 0, Z, Q, le, Xe, Ze, Qe, et;
137
137
  function tt() {
138
138
  }
139
139
  tt.__reactDisabledLog = !0;
140
- function Ft() {
140
+ function $t() {
141
141
  {
142
- if (H === 0) {
143
- Q = console.log, oe = console.info, qe = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
142
+ if (te === 0) {
143
+ Z = console.log, Q = console.info, le = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
144
144
  var t = {
145
145
  configurable: !0,
146
146
  enumerable: !0,
@@ -157,77 +157,77 @@ function un() {
157
157
  groupEnd: t
158
158
  });
159
159
  }
160
- H++;
160
+ te++;
161
161
  }
162
162
  }
163
- function It() {
163
+ function Ft() {
164
164
  {
165
- if (H--, H === 0) {
165
+ if (te--, te === 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: Y({}, t, {
173
- value: Q
172
+ log: M({}, t, {
173
+ value: Z
174
174
  }),
175
- info: Y({}, t, {
176
- value: oe
175
+ info: M({}, t, {
176
+ value: Q
177
177
  }),
178
- warn: Y({}, t, {
179
- value: qe
178
+ warn: M({}, t, {
179
+ value: le
180
180
  }),
181
- error: Y({}, t, {
181
+ error: M({}, t, {
182
182
  value: Xe
183
183
  }),
184
- group: Y({}, t, {
184
+ group: M({}, t, {
185
185
  value: Ze
186
186
  }),
187
- groupCollapsed: Y({}, t, {
187
+ groupCollapsed: M({}, t, {
188
188
  value: Qe
189
189
  }),
190
- groupEnd: Y({}, t, {
190
+ groupEnd: M({}, t, {
191
191
  value: et
192
192
  })
193
193
  });
194
194
  }
195
- H < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ te < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
196
196
  }
197
197
  }
198
- var Ce = P.ReactCurrentDispatcher, Re;
199
- function fe(t, u, p) {
198
+ var Re = S.ReactCurrentDispatcher, Pe;
199
+ function pe(t, u, p) {
200
200
  {
201
- if (Re === void 0)
201
+ if (Pe === void 0)
202
202
  try {
203
203
  throw Error();
204
- } catch (w) {
205
- var k = w.stack.trim().match(/\n( *(at )?)/);
206
- Re = k && k[1] || "";
204
+ } catch (x) {
205
+ var k = x.stack.trim().match(/\n( *(at )?)/);
206
+ Pe = k && k[1] || "";
207
207
  }
208
208
  return `
209
- ` + Re + t;
209
+ ` + Pe + t;
210
210
  }
211
211
  }
212
- var Pe = !1, pe;
212
+ var Se = !1, de;
213
213
  {
214
- var $t = typeof WeakMap == "function" ? WeakMap : Map;
215
- pe = new $t();
214
+ var It = typeof WeakMap == "function" ? WeakMap : Map;
215
+ de = new It();
216
216
  }
217
217
  function nt(t, u) {
218
- if (!t || Pe)
218
+ if (!t || Se)
219
219
  return "";
220
220
  {
221
- var p = pe.get(t);
221
+ var p = de.get(t);
222
222
  if (p !== void 0)
223
223
  return p;
224
224
  }
225
225
  var k;
226
- Pe = !0;
227
- var w = Error.prepareStackTrace;
226
+ Se = !0;
227
+ var x = Error.prepareStackTrace;
228
228
  Error.prepareStackTrace = void 0;
229
- var S;
230
- S = Ce.current, Ce.current = null, Ft();
229
+ var P;
230
+ P = Re.current, Re.current = null, $t();
231
231
  try {
232
232
  if (u) {
233
233
  var E = function() {
@@ -240,50 +240,50 @@ function un() {
240
240
  }), typeof Reflect == "object" && Reflect.construct) {
241
241
  try {
242
242
  Reflect.construct(E, []);
243
- } catch (X) {
244
- k = X;
243
+ } catch (q) {
244
+ k = q;
245
245
  }
246
246
  Reflect.construct(t, [], E);
247
247
  } else {
248
248
  try {
249
249
  E.call();
250
- } catch (X) {
251
- k = X;
250
+ } catch (q) {
251
+ k = q;
252
252
  }
253
253
  t.call(E.prototype);
254
254
  }
255
255
  } else {
256
256
  try {
257
257
  throw Error();
258
- } catch (X) {
259
- k = X;
258
+ } catch (q) {
259
+ k = q;
260
260
  }
261
261
  t();
262
262
  }
263
- } catch (X) {
264
- if (X && k && typeof X.stack == "string") {
265
- for (var N = X.stack.split(`
266
- `), V = k.stack.split(`
267
- `), j = N.length - 1, L = V.length - 1; j >= 1 && L >= 0 && N[j] !== V[L]; )
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]; )
268
268
  L--;
269
- for (; j >= 1 && L >= 0; j--, L--)
270
- if (N[j] !== V[L]) {
271
- if (j !== 1 || L !== 1)
269
+ for (; D >= 1 && L >= 0; D--, L--)
270
+ if (N[D] !== U[L]) {
271
+ if (D !== 1 || L !== 1)
272
272
  do
273
- if (j--, L--, L < 0 || N[j] !== V[L]) {
274
- var J = `
275
- ` + N[j].replace(" at new ", " at ");
276
- return t.displayName && J.includes("<anonymous>") && (J = J.replace("<anonymous>", t.displayName)), typeof t == "function" && pe.set(t, J), J;
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;
277
277
  }
278
- while (j >= 1 && L >= 0);
278
+ while (D >= 1 && L >= 0);
279
279
  break;
280
280
  }
281
281
  }
282
282
  } finally {
283
- Pe = !1, Ce.current = S, It(), Error.prepareStackTrace = w;
283
+ Se = !1, Re.current = P, Ft(), Error.prepareStackTrace = x;
284
284
  }
285
- var re = t ? t.displayName || t.name : "", ht = re ? fe(re) : "";
286
- return typeof t == "function" && pe.set(t, ht), ht;
285
+ var ae = t ? t.displayName || t.name : "", ht = ae ? pe(ae) : "";
286
+ return typeof t == "function" && de.set(t, ht), ht;
287
287
  }
288
288
  function At(t, u, p) {
289
289
  return nt(t, !1);
@@ -292,64 +292,64 @@ function un() {
292
292
  var u = t.prototype;
293
293
  return !!(u && u.isReactComponent);
294
294
  }
295
- function de(t, u, p) {
295
+ function me(t, u, p) {
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 fe(t);
301
+ return pe(t);
302
302
  switch (t) {
303
303
  case d:
304
- return fe("Suspense");
304
+ return pe("Suspense");
305
305
  case h:
306
- return fe("SuspenseList");
306
+ return pe("SuspenseList");
307
307
  }
308
308
  if (typeof t == "object")
309
309
  switch (t.$$typeof) {
310
310
  case f:
311
311
  return At(t.render);
312
- case v:
313
- return de(t.type, u, p);
314
- case x: {
315
- var k = t, w = k._payload, S = k._init;
312
+ case _:
313
+ return me(t.type, u, p);
314
+ case w: {
315
+ var k = t, x = k._payload, P = k._init;
316
316
  try {
317
- return de(S(w), u, p);
317
+ return me(P(x), u, p);
318
318
  } catch {
319
319
  }
320
320
  }
321
321
  }
322
322
  return "";
323
323
  }
324
- var me = Object.prototype.hasOwnProperty, rt = {}, at = P.ReactDebugCurrentFrame;
325
- function he(t) {
324
+ var he = Object.prototype.hasOwnProperty, rt = {}, at = S.ReactDebugCurrentFrame;
325
+ function ke(t) {
326
326
  if (t) {
327
- var u = t._owner, p = de(t.type, t._source, u ? u.type : null);
327
+ var u = t._owner, p = me(t.type, t._source, u ? u.type : null);
328
328
  at.setExtraStackFrame(p);
329
329
  } else
330
330
  at.setExtraStackFrame(null);
331
331
  }
332
- function Vt(t, u, p, k, w) {
332
+ function Vt(t, u, p, k, x) {
333
333
  {
334
- var S = Function.call.bind(me);
334
+ var P = Function.call.bind(he);
335
335
  for (var E in t)
336
- if (S(t, E)) {
336
+ if (P(t, E)) {
337
337
  var N = void 0;
338
338
  try {
339
339
  if (typeof t[E] != "function") {
340
- var V = 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 V.name = "Invariant Violation", V;
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;
342
342
  }
343
343
  N = t[E](u, E, k, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
- } catch (j) {
345
- N = j;
344
+ } catch (D) {
345
+ N = D;
346
346
  }
347
- N && !(N instanceof Error) && (he(w), g("%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), he(null)), N instanceof Error && !(N.message in rt) && (rt[N.message] = !0, he(w), g("Failed %s type: %s", p, N.message), he(null));
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));
348
348
  }
349
349
  }
350
350
  }
351
351
  var Wt = Array.isArray;
352
- function Se(t) {
352
+ function Oe(t) {
353
353
  return Wt(t);
354
354
  }
355
355
  function Mt(t) {
@@ -370,17 +370,17 @@ function un() {
370
370
  }
371
371
  function lt(t) {
372
372
  if (Bt(t))
373
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(t)), ot(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)), ot(t);
374
374
  }
375
- var le = P.ReactCurrentOwner, Yt = {
375
+ var ie = S.ReactCurrentOwner, Yt = {
376
376
  key: !0,
377
377
  ref: !0,
378
378
  __self: !0,
379
379
  __source: !0
380
- }, it, st, Oe;
381
- Oe = {};
380
+ }, it, st, Te;
381
+ Te = {};
382
382
  function Jt(t) {
383
- if (me.call(t, "ref")) {
383
+ if (he.call(t, "ref")) {
384
384
  var u = Object.getOwnPropertyDescriptor(t, "ref").get;
385
385
  if (u && u.isReactWarning)
386
386
  return !1;
@@ -388,7 +388,7 @@ function un() {
388
388
  return t.ref !== void 0;
389
389
  }
390
390
  function Ht(t) {
391
- if (me.call(t, "key")) {
391
+ if (he.call(t, "key")) {
392
392
  var u = Object.getOwnPropertyDescriptor(t, "key").get;
393
393
  if (u && u.isReactWarning)
394
394
  return !1;
@@ -396,15 +396,15 @@ function un() {
396
396
  return t.key !== void 0;
397
397
  }
398
398
  function zt(t, u) {
399
- if (typeof t.ref == "string" && le.current && u && le.current.stateNode !== u) {
400
- var p = D(le.current.type);
401
- Oe[p] || (g('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(le.current.type), t.ref), Oe[p] = !0);
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);
402
402
  }
403
403
  }
404
404
  function Gt(t, u) {
405
405
  {
406
406
  var p = function() {
407
- it || (it = !0, g("%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));
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
409
  p.isReactWarning = !0, Object.defineProperty(t, "key", {
410
410
  get: p,
@@ -415,7 +415,7 @@ function un() {
415
415
  function Kt(t, u) {
416
416
  {
417
417
  var p = function() {
418
- st || (st = !0, g("%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));
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
420
  p.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
421
  get: p,
@@ -423,7 +423,7 @@ function un() {
423
423
  });
424
424
  }
425
425
  }
426
- var qt = function(t, u, p, k, w, S, E) {
426
+ var qt = function(t, u, p, k, x, P, E) {
427
427
  var N = {
428
428
  // This tag allows us to uniquely identify this as a React Element
429
429
  $$typeof: n,
@@ -433,7 +433,7 @@ function un() {
433
433
  ref: p,
434
434
  props: E,
435
435
  // Record the component responsible for creating this element.
436
- _owner: S
436
+ _owner: P
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: w
452
+ value: x
453
453
  }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
454
454
  };
455
- function Xt(t, u, p, k, w) {
455
+ function Xt(t, u, p, k, x) {
456
456
  {
457
- var S, E = {}, N = null, V = null;
458
- p !== void 0 && (lt(p), N = "" + p), Ht(u) && (lt(u.key), N = "" + u.key), Jt(u) && (V = u.ref, zt(u, w));
459
- for (S in u)
460
- me.call(u, S) && !Yt.hasOwnProperty(S) && (E[S] = u[S]);
457
+ var P, E = {}, N = null, U = null;
458
+ p !== void 0 && (lt(p), N = "" + p), Ht(u) && (lt(u.key), N = "" + u.key), Jt(u) && (U = u.ref, zt(u, x));
459
+ for (P in u)
460
+ he.call(u, P) && !Yt.hasOwnProperty(P) && (E[P] = u[P]);
461
461
  if (t && t.defaultProps) {
462
- var j = t.defaultProps;
463
- for (S in j)
464
- E[S] === void 0 && (E[S] = j[S]);
462
+ var D = t.defaultProps;
463
+ for (P in D)
464
+ E[P] === void 0 && (E[P] = D[P]);
465
465
  }
466
- if (N || V) {
466
+ if (N || U) {
467
467
  var L = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
468
- N && Gt(E, L), V && Kt(E, L);
468
+ N && Gt(E, L), U && Kt(E, L);
469
469
  }
470
- return qt(t, N, V, w, k, le.current, E);
470
+ return qt(t, N, U, x, k, ie.current, E);
471
471
  }
472
472
  }
473
- var Te = P.ReactCurrentOwner, ct = P.ReactDebugCurrentFrame;
474
- function ne(t) {
473
+ var je = S.ReactCurrentOwner, ct = S.ReactDebugCurrentFrame;
474
+ function re(t) {
475
475
  if (t) {
476
- var u = t._owner, p = de(t.type, t._source, u ? u.type : null);
476
+ var u = t._owner, p = me(t.type, t._source, u ? u.type : null);
477
477
  ct.setExtraStackFrame(p);
478
478
  } else
479
479
  ct.setExtraStackFrame(null);
480
480
  }
481
- var je;
482
- je = !1;
483
- function De(t) {
481
+ var De;
482
+ De = !1;
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 (Te.current) {
489
- var t = D(Te.current.type);
488
+ if (je.current) {
489
+ var t = j(je.current.type);
490
490
  if (t)
491
491
  return `
492
492
 
@@ -529,25 +529,25 @@ Check the top-level render call using <` + p + ">.");
529
529
  return;
530
530
  ft[p] = !0;
531
531
  var k = "";
532
- t && t._owner && t._owner !== Te.current && (k = " It was passed a child from " + D(t._owner.type) + "."), ne(t), g('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), ne(null);
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);
533
533
  }
534
534
  }
535
535
  function dt(t, u) {
536
536
  {
537
537
  if (typeof t != "object")
538
538
  return;
539
- if (Se(t))
539
+ if (Oe(t))
540
540
  for (var p = 0; p < t.length; p++) {
541
541
  var k = t[p];
542
- De(k) && pt(k, u);
542
+ Le(k) && pt(k, u);
543
543
  }
544
- else if (De(t))
544
+ else if (Le(t))
545
545
  t._store && (t._store.validated = !0);
546
546
  else if (t) {
547
- var w = T(t);
548
- if (typeof w == "function" && w !== t.entries)
549
- for (var S = w.call(t), E; !(E = S.next()).done; )
550
- De(E.value) && pt(E.value, u);
547
+ var x = T(t);
548
+ if (typeof x == "function" && x !== t.entries)
549
+ for (var P = x.call(t), E; !(E = P.next()).done; )
550
+ Le(E.value) && pt(E.value, u);
551
551
  }
552
552
  }
553
553
  }
@@ -561,19 +561,19 @@ Check the top-level render call using <` + p + ">.");
561
561
  p = u.propTypes;
562
562
  else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
563
563
  // Inner props are checked in the reconciler.
564
- u.$$typeof === v))
564
+ u.$$typeof === _))
565
565
  p = u.propTypes;
566
566
  else
567
567
  return;
568
568
  if (p) {
569
- var k = D(u);
569
+ var k = j(u);
570
570
  Vt(p, t.props, "prop", k, t);
571
- } else if (u.PropTypes !== void 0 && !je) {
572
- je = !0;
573
- var w = D(u);
574
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
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");
575
575
  }
576
- typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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) {
@@ -581,39 +581,39 @@ Check the top-level render call using <` + p + ">.");
581
581
  for (var u = Object.keys(t.props), p = 0; p < u.length; p++) {
582
582
  var k = u[p];
583
583
  if (k !== "children" && k !== "key") {
584
- ne(t), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), ne(null);
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;
586
586
  }
587
587
  }
588
- t.ref !== null && (ne(t), g("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
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, w, S) {
591
+ function mt(t, u, p, k, x, P) {
592
592
  {
593
- var E = B(t);
593
+ var E = W(t);
594
594
  if (!E) {
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 V = Zt(w);
598
- V ? N += V : N += ut();
599
- var j;
600
- t === null ? j = "null" : Se(t) ? j = "array" : t !== void 0 && t.$$typeof === n ? (j = "<" + (D(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : j = typeof t, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, N);
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);
601
601
  }
602
- var L = Xt(t, u, p, w, S);
602
+ var L = Xt(t, u, p, x, P);
603
603
  if (L == null)
604
604
  return L;
605
605
  if (E) {
606
- var J = u.children;
607
- if (J !== void 0)
606
+ var Y = u.children;
607
+ if (Y !== void 0)
608
608
  if (k)
609
- if (Se(J)) {
610
- for (var re = 0; re < J.length; re++)
611
- dt(J[re], t);
612
- Object.freeze && Object.freeze(J);
609
+ if (Oe(Y)) {
610
+ for (var ae = 0; ae < Y.length; ae++)
611
+ dt(Y[ae], t);
612
+ Object.freeze && Object.freeze(Y);
613
613
  } else
614
- g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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(J, t);
616
+ dt(Y, t);
617
617
  }
618
618
  return t === l ? tn(L) : en(L), L;
619
619
  }
@@ -625,17 +625,17 @@ Check the top-level render call using <` + p + ">.");
625
625
  return mt(t, u, p, !1);
626
626
  }
627
627
  var an = rn, on = nn;
628
- se.Fragment = l, se.jsx = an, se.jsxs = on;
629
- }()), se;
628
+ ce.Fragment = l, ce.jsx = an, ce.jsxs = on;
629
+ }()), ce;
630
630
  }
631
- process.env.NODE_ENV === "production" ? $e.exports = cn() : $e.exports = un();
632
- var Ye = $e.exports;
633
- const Z = Ye.Fragment, o = Ye.jsx, m = Ye.jsxs, Le = {}, fn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
631
+ process.env.NODE_ENV === "production" ? Ae.exports = cn() : Ae.exports = un();
632
+ var Je = Ae.exports;
633
+ const X = Je.Fragment, o = Je.jsx, m = Je.jsxs, $e = {}, fn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
634
634
  function pn(e, n) {
635
- return !Le[e] && typeof window.fetch == "function" && (Le[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(Le[e]);
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]);
636
636
  }
637
637
  const y = ({ name: e, path: n, className: r = "", ...l }) => {
638
- const a = "https://punkt-cdn.oslo.kommune.no/8.0/icons/", [i, s] = ce(null);
638
+ const a = "https://punkt-cdn.oslo.kommune.no/8.0/icons/", [i, s] = ue(null);
639
639
  return yt(() => {
640
640
  if (!e)
641
641
  return;
@@ -660,10 +660,10 @@ const y = ({ name: e, path: n, className: r = "", ...l }) => {
660
660
  ariaLive: c = "polite",
661
661
  ...f
662
662
  }, d) => {
663
- const h = [n, "pkt-alert", r && `pkt-alert--${r}`].filter(Boolean).join(" "), [v, x] = ce(!0), C = () => {
664
- x(!1), a && a();
663
+ const h = [n, "pkt-alert", r && `pkt-alert--${r}`].filter(Boolean).join(" "), [_, w] = ue(!0), C = () => {
664
+ w(!1), a && a();
665
665
  };
666
- return v ? /* @__PURE__ */ m("div", { ...f, className: h, "aria-live": c, ref: d, children: [
666
+ return _ ? /* @__PURE__ */ m("div", { ...f, className: h, "aria-live": c, ref: d, children: [
667
667
  /* @__PURE__ */ o(
668
668
  y,
669
669
  {
@@ -714,25 +714,25 @@ const y = ({ name: e, path: n, className: r = "", ...l }) => {
714
714
  *
715
715
  * @license MIT
716
716
  */
717
- function Ae() {
718
- return Ae = Object.assign ? Object.assign.bind() : function(e) {
717
+ function Ue() {
718
+ return Ue = Object.assign ? Object.assign.bind() : function(e) {
719
719
  for (var n = 1; n < arguments.length; n++) {
720
720
  var r = arguments[n];
721
721
  for (var l in r)
722
722
  Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
723
723
  }
724
724
  return e;
725
- }, Ae.apply(this, arguments);
725
+ }, Ue.apply(this, arguments);
726
726
  }
727
727
  var _t;
728
728
  (function(e) {
729
729
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
730
730
  })(_t || (_t = {}));
731
- function I(e, n) {
731
+ function F(e, n) {
732
732
  if (e === !1 || e === null || typeof e > "u")
733
733
  throw new Error(n);
734
734
  }
735
- function ye(e, n) {
735
+ function Ee(e, n) {
736
736
  if (!e) {
737
737
  typeof console < "u" && console.warn(n);
738
738
  try {
@@ -741,7 +741,7 @@ function ye(e, n) {
741
741
  }
742
742
  }
743
743
  }
744
- function Ue(e) {
744
+ function Ve(e) {
745
745
  let {
746
746
  pathname: n = "/",
747
747
  search: r = "",
@@ -763,7 +763,7 @@ var bt;
763
763
  (function(e) {
764
764
  e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
765
765
  })(bt || (bt = {}));
766
- function Ve(e, n) {
766
+ function We(e, n) {
767
767
  if (n === "/")
768
768
  return e;
769
769
  if (!e.toLowerCase().startsWith(n.toLowerCase()))
@@ -793,30 +793,30 @@ function hn(e, n) {
793
793
  function Fe(e, n, r, l) {
794
794
  return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(l) + "]. 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.';
795
795
  }
796
- function xt(e) {
796
+ function wt(e) {
797
797
  return e.filter((n, r) => r === 0 || n.route.path && n.route.path.length > 0);
798
798
  }
799
- function wt(e, n, r, l) {
799
+ function xt(e, n, r, l) {
800
800
  l === void 0 && (l = !1);
801
801
  let a;
802
- typeof e == "string" ? a = Et(e) : (a = Ae({}, 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)));
802
+ 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)));
803
803
  let i = e === "" || a.pathname === "", s = i ? "/" : a.pathname, c;
804
804
  if (l || s == null)
805
805
  c = r;
806
806
  else {
807
- let v = n.length - 1;
807
+ let _ = n.length - 1;
808
808
  if (s.startsWith("..")) {
809
- let x = s.split("/");
810
- for (; x[0] === ".."; )
811
- x.shift(), v -= 1;
812
- a.pathname = x.join("/");
809
+ let w = s.split("/");
810
+ for (; w[0] === ".."; )
811
+ w.shift(), _ -= 1;
812
+ a.pathname = w.join("/");
813
813
  }
814
- c = v >= 0 ? n[v] : "/";
814
+ c = _ >= 0 ? n[_] : "/";
815
815
  }
816
816
  let f = mn(a, c), d = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && r.endsWith("/");
817
817
  return !f.pathname.endsWith("/") && (d || h) && (f.pathname += "/"), f;
818
818
  }
819
- const Je = (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"];
819
+ 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"];
820
820
  new Set(Ct);
821
821
  const _n = ["get", ...Ct];
822
822
  new Set(_n);
@@ -830,107 +830,107 @@ new Set(_n);
830
830
  *
831
831
  * @license MIT
832
832
  */
833
- function We() {
834
- return We = Object.assign ? Object.assign.bind() : function(e) {
833
+ function Me() {
834
+ return Me = Object.assign ? Object.assign.bind() : function(e) {
835
835
  for (var n = 1; n < arguments.length; n++) {
836
836
  var r = arguments[n];
837
837
  for (var l in r)
838
838
  Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
839
839
  }
840
840
  return e;
841
- }, We.apply(this, arguments);
841
+ }, Me.apply(this, arguments);
842
842
  }
843
- const Ee = /* @__PURE__ */ b.createContext(null);
844
- process.env.NODE_ENV !== "production" && (Ee.displayName = "DataRouter");
845
- const Rt = /* @__PURE__ */ b.createContext(null);
843
+ const we = /* @__PURE__ */ g.createContext(null);
844
+ process.env.NODE_ENV !== "production" && (we.displayName = "DataRouter");
845
+ const Rt = /* @__PURE__ */ g.createContext(null);
846
846
  process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
847
- const bn = /* @__PURE__ */ b.createContext(null);
847
+ const bn = /* @__PURE__ */ g.createContext(null);
848
848
  process.env.NODE_ENV !== "production" && (bn.displayName = "Await");
849
- const ee = /* @__PURE__ */ b.createContext(null);
849
+ const ee = /* @__PURE__ */ g.createContext(null);
850
850
  process.env.NODE_ENV !== "production" && (ee.displayName = "Navigation");
851
- const He = /* @__PURE__ */ b.createContext(null);
852
- process.env.NODE_ENV !== "production" && (He.displayName = "Location");
853
- const ae = /* @__PURE__ */ b.createContext({
851
+ const ze = /* @__PURE__ */ g.createContext(null);
852
+ process.env.NODE_ENV !== "production" && (ze.displayName = "Location");
853
+ const oe = /* @__PURE__ */ g.createContext({
854
854
  outlet: null,
855
855
  matches: [],
856
856
  isDataRoute: !1
857
857
  });
858
- process.env.NODE_ENV !== "production" && (ae.displayName = "Route");
859
- const gn = /* @__PURE__ */ b.createContext(null);
858
+ process.env.NODE_ENV !== "production" && (oe.displayName = "Route");
859
+ const gn = /* @__PURE__ */ g.createContext(null);
860
860
  process.env.NODE_ENV !== "production" && (gn.displayName = "RouteError");
861
861
  function Nn(e, n) {
862
862
  let {
863
863
  relative: r
864
864
  } = n === void 0 ? {} : n;
865
- ze() || (process.env.NODE_ENV !== "production" ? I(
865
+ Ge() || (process.env.NODE_ENV !== "production" ? F(
866
866
  !1,
867
867
  // TODO: This error is probably because they somehow have 2 versions of the
868
868
  // router loaded. We can help them understand how to avoid that.
869
869
  "useHref() may be used only in the context of a <Router> component."
870
- ) : I(!1));
870
+ ) : F(!1));
871
871
  let {
872
872
  basename: l,
873
873
  navigator: a
874
- } = b.useContext(ee), {
874
+ } = g.useContext(ee), {
875
875
  hash: i,
876
876
  pathname: s,
877
877
  search: c
878
878
  } = xe(e, {
879
879
  relative: r
880
880
  }), f = s;
881
- return l !== "/" && (f = s === "/" ? l : Je([l, s])), a.createHref({
881
+ return l !== "/" && (f = s === "/" ? l : He([l, s])), a.createHref({
882
882
  pathname: f,
883
883
  search: c,
884
884
  hash: i
885
885
  });
886
886
  }
887
- function ze() {
888
- return b.useContext(He) != null;
887
+ function Ge() {
888
+ return g.useContext(ze) != null;
889
889
  }
890
- function ue() {
891
- return ze() || (process.env.NODE_ENV !== "production" ? I(
890
+ function fe() {
891
+ return Ge() || (process.env.NODE_ENV !== "production" ? F(
892
892
  !1,
893
893
  // TODO: This error is probably because they somehow have 2 versions of the
894
894
  // router loaded. We can help them understand how to avoid that.
895
895
  "useLocation() may be used only in the context of a <Router> component."
896
- ) : I(!1)), b.useContext(He).location;
896
+ ) : F(!1)), g.useContext(ze).location;
897
897
  }
898
898
  const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
899
899
  function St(e) {
900
- b.useContext(ee).static || b.useLayoutEffect(e);
900
+ g.useContext(ee).static || g.useLayoutEffect(e);
901
901
  }
902
902
  function yn() {
903
903
  let {
904
904
  isDataRoute: e
905
- } = b.useContext(ae);
905
+ } = g.useContext(oe);
906
906
  return e ? Rn() : En();
907
907
  }
908
908
  function En() {
909
- ze() || (process.env.NODE_ENV !== "production" ? I(
909
+ Ge() || (process.env.NODE_ENV !== "production" ? F(
910
910
  !1,
911
911
  // TODO: This error is probably because they somehow have 2 versions of the
912
912
  // router loaded. We can help them understand how to avoid that.
913
913
  "useNavigate() may be used only in the context of a <Router> component."
914
- ) : I(!1));
915
- let e = b.useContext(Ee), {
914
+ ) : F(!1));
915
+ let e = g.useContext(we), {
916
916
  basename: n,
917
917
  navigator: r
918
- } = b.useContext(ee), {
918
+ } = g.useContext(ee), {
919
919
  matches: l
920
- } = b.useContext(ae), {
920
+ } = g.useContext(oe), {
921
921
  pathname: a
922
- } = ue(), i = JSON.stringify(xt(l).map((f) => f.pathnameBase)), s = b.useRef(!1);
922
+ } = fe(), i = JSON.stringify(wt(l).map((f) => f.pathnameBase)), s = g.useRef(!1);
923
923
  return St(() => {
924
924
  s.current = !0;
925
- }), b.useCallback(function(f, d) {
926
- if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ye(s.current, Pt), !s.current)
925
+ }), g.useCallback(function(f, d) {
926
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && Ee(s.current, Pt), !s.current)
927
927
  return;
928
928
  if (typeof f == "number") {
929
929
  r.go(f);
930
930
  return;
931
931
  }
932
- let h = wt(f, JSON.parse(i), a, d.relative === "path");
933
- e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : Je([n, h.pathname])), (d.replace ? r.replace : r.push)(h, d.state, d);
932
+ let h = xt(f, JSON.parse(i), a, d.relative === "path");
933
+ e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : He([n, h.pathname])), (d.replace ? r.replace : r.push)(h, d.state, d);
934
934
  }, [n, r, i, a, e]);
935
935
  }
936
936
  function xe(e, n) {
@@ -938,45 +938,45 @@ function xe(e, n) {
938
938
  relative: r
939
939
  } = n === void 0 ? {} : n, {
940
940
  matches: l
941
- } = b.useContext(ae), {
941
+ } = g.useContext(oe), {
942
942
  pathname: a
943
- } = ue(), i = JSON.stringify(xt(l).map((s) => s.pathnameBase));
944
- return b.useMemo(() => wt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
943
+ } = fe(), i = JSON.stringify(wt(l).map((s) => s.pathnameBase));
944
+ return g.useMemo(() => xt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
945
945
  }
946
- var Me;
946
+ var Be;
947
947
  (function(e) {
948
948
  e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate";
949
- })(Me || (Me = {}));
950
- var be;
949
+ })(Be || (Be = {}));
950
+ var ge;
951
951
  (function(e) {
952
952
  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";
953
- })(be || (be = {}));
953
+ })(ge || (ge = {}));
954
954
  function Ot(e) {
955
955
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
956
956
  }
957
- function xn(e) {
958
- let n = b.useContext(Ee);
959
- return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
960
- }
961
957
  function wn(e) {
962
- let n = b.useContext(ae);
963
- return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
958
+ let n = g.useContext(we);
959
+ return n || (process.env.NODE_ENV !== "production" ? F(!1, Ot(e)) : F(!1)), n;
960
+ }
961
+ function xn(e) {
962
+ let n = g.useContext(oe);
963
+ return n || (process.env.NODE_ENV !== "production" ? F(!1, Ot(e)) : F(!1)), n;
964
964
  }
965
965
  function Tt(e) {
966
- let n = wn(e), r = n.matches[n.matches.length - 1];
967
- 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;
966
+ let n = xn(e), r = n.matches[n.matches.length - 1];
967
+ 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;
968
968
  }
969
969
  function Cn() {
970
- return Tt(be.UseRouteId);
970
+ return Tt(ge.UseRouteId);
971
971
  }
972
972
  function Rn() {
973
973
  let {
974
974
  router: e
975
- } = xn(Me.UseNavigateStable), n = Tt(be.UseNavigateStable), r = b.useRef(!1);
975
+ } = wn(Be.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = g.useRef(!1);
976
976
  return St(() => {
977
977
  r.current = !0;
978
- }), b.useCallback(function(a, i) {
979
- i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && ye(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, We({
978
+ }), g.useCallback(function(a, i) {
979
+ 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({
980
980
  fromRouteId: n
981
981
  }, i)));
982
982
  }, [e, n]);
@@ -997,17 +997,17 @@ new Promise(() => {
997
997
  *
998
998
  * @license MIT
999
999
  */
1000
- function te() {
1001
- return te = Object.assign ? Object.assign.bind() : function(e) {
1000
+ function ne() {
1001
+ return ne = Object.assign ? Object.assign.bind() : function(e) {
1002
1002
  for (var n = 1; n < arguments.length; n++) {
1003
1003
  var r = arguments[n];
1004
1004
  for (var l in r)
1005
1005
  Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
1006
1006
  }
1007
1007
  return e;
1008
- }, te.apply(this, arguments);
1008
+ }, ne.apply(this, arguments);
1009
1009
  }
1010
- function Ge(e, n) {
1010
+ function Ke(e, n) {
1011
1011
  if (e == null)
1012
1012
  return {};
1013
1013
  var r = {}, l = Object.keys(e), a, i;
@@ -1015,18 +1015,18 @@ function Ge(e, n) {
1015
1015
  a = l[i], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
1016
1016
  return r;
1017
1017
  }
1018
- const ve = "get", _e = "application/x-www-form-urlencoded";
1019
- function we(e) {
1018
+ const _e = "get", be = "application/x-www-form-urlencoded";
1019
+ function Ce(e) {
1020
1020
  return e != null && typeof e.tagName == "string";
1021
1021
  }
1022
1022
  function Pn(e) {
1023
- return we(e) && e.tagName.toLowerCase() === "button";
1023
+ return Ce(e) && e.tagName.toLowerCase() === "button";
1024
1024
  }
1025
1025
  function Sn(e) {
1026
- return we(e) && e.tagName.toLowerCase() === "form";
1026
+ return Ce(e) && e.tagName.toLowerCase() === "form";
1027
1027
  }
1028
1028
  function On(e) {
1029
- return we(e) && e.tagName.toLowerCase() === "input";
1029
+ return Ce(e) && e.tagName.toLowerCase() === "input";
1030
1030
  }
1031
1031
  function Tn(e) {
1032
1032
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
@@ -1036,50 +1036,50 @@ function jn(e, n) {
1036
1036
  (!n || n === "_self") && // Let browser handle "target=_blank" etc.
1037
1037
  !Tn(e);
1038
1038
  }
1039
- let ke = null;
1039
+ let ve = null;
1040
1040
  function Dn() {
1041
- if (ke === null)
1041
+ if (ve === null)
1042
1042
  try {
1043
1043
  new FormData(
1044
1044
  document.createElement("form"),
1045
1045
  // @ts-expect-error if FormData supports the submitter parameter, this will throw
1046
1046
  0
1047
- ), ke = !1;
1047
+ ), ve = !1;
1048
1048
  } catch {
1049
- ke = !0;
1049
+ ve = !0;
1050
1050
  }
1051
- return ke;
1051
+ return ve;
1052
1052
  }
1053
1053
  const Ln = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1054
1054
  function Ie(e) {
1055
- return e != null && !Ln.has(e) ? (process.env.NODE_ENV !== "production" && ye(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + _e + '"')), null) : e;
1055
+ 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;
1056
1056
  }
1057
- function Fn(e, n) {
1057
+ function $n(e, n) {
1058
1058
  let r, l, a, i, s;
1059
1059
  if (Sn(e)) {
1060
1060
  let c = e.getAttribute("action");
1061
- l = c ? Ve(c, n) : null, r = e.getAttribute("method") || ve, a = Ie(e.getAttribute("enctype")) || _e, i = new FormData(e);
1061
+ l = c ? We(c, n) : null, r = e.getAttribute("method") || _e, a = Ie(e.getAttribute("enctype")) || be, i = new FormData(e);
1062
1062
  } else if (Pn(e) || On(e) && (e.type === "submit" || e.type === "image")) {
1063
1063
  let c = e.form;
1064
1064
  if (c == null)
1065
1065
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1066
1066
  let f = e.getAttribute("formaction") || c.getAttribute("action");
1067
- if (l = f ? Ve(f, n) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || ve, a = Ie(e.getAttribute("formenctype")) || Ie(c.getAttribute("enctype")) || _e, i = new FormData(c, e), !Dn()) {
1067
+ if (l = 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()) {
1068
1068
  let {
1069
1069
  name: d,
1070
1070
  type: h,
1071
- value: v
1071
+ value: _
1072
1072
  } = e;
1073
1073
  if (h === "image") {
1074
- let x = d ? d + "." : "";
1075
- i.append(x + "x", "0"), i.append(x + "y", "0");
1074
+ let w = d ? d + "." : "";
1075
+ i.append(w + "x", "0"), i.append(w + "y", "0");
1076
1076
  } else
1077
- d && i.append(d, v);
1077
+ d && i.append(d, _);
1078
1078
  }
1079
1079
  } else {
1080
- if (we(e))
1080
+ if (Ce(e))
1081
1081
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1082
- r = ve, l = null, a = _e, s = e;
1082
+ r = _e, l = null, a = be, s = e;
1083
1083
  }
1084
1084
  return i && a === "text/plain" && (s = i, i = void 0), {
1085
1085
  action: l,
@@ -1089,9 +1089,9 @@ function Fn(e, n) {
1089
1089
  body: s
1090
1090
  };
1091
1091
  }
1092
- const In = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], $n = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], An = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
1092
+ 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"];
1093
1093
  process.env.NODE_ENV;
1094
- const Un = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ge = /* @__PURE__ */ b.forwardRef(function(n, r) {
1094
+ 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) {
1095
1095
  let {
1096
1096
  onClick: l,
1097
1097
  relative: a,
@@ -1101,15 +1101,15 @@ const Un = typeof window < "u" && typeof window.document < "u" && typeof window.
1101
1101
  target: f,
1102
1102
  to: d,
1103
1103
  preventScrollReset: h
1104
- } = n, v = Ge(n, In), {
1105
- basename: x
1106
- } = b.useContext(ee), C, O = !1;
1104
+ } = n, _ = Ke(n, Fn), {
1105
+ basename: w
1106
+ } = g.useContext(ee), C, O = !1;
1107
1107
  if (typeof d == "string" && Vn.test(d) && (C = d, Un))
1108
1108
  try {
1109
- let g = new URL(window.location.href), F = d.startsWith("//") ? new URL(g.protocol + d) : new URL(d), $ = Ve(F.pathname, x);
1110
- F.origin === g.origin && $ != null ? d = $ + F.search + F.hash : O = !0;
1109
+ let b = new URL(window.location.href), $ = d.startsWith("//") ? new URL(b.protocol + d) : new URL(d), A = We($.pathname, w);
1110
+ $.origin === b.origin && A != null ? d = A + $.search + $.hash : O = !0;
1111
1111
  } catch {
1112
- process.env.NODE_ENV !== "production" && ye(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1112
+ 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.');
1113
1113
  }
1114
1114
  let R = Nn(d, {
1115
1115
  relative: a
@@ -1120,21 +1120,21 @@ const Un = typeof window < "u" && typeof window.document < "u" && typeof window.
1120
1120
  preventScrollReset: h,
1121
1121
  relative: a
1122
1122
  });
1123
- function P(g) {
1124
- l && l(g), g.defaultPrevented || T(g);
1123
+ function S(b) {
1124
+ l && l(b), b.defaultPrevented || T(b);
1125
1125
  }
1126
1126
  return (
1127
1127
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1128
- /* @__PURE__ */ b.createElement("a", te({}, v, {
1128
+ /* @__PURE__ */ g.createElement("a", ne({}, _, {
1129
1129
  href: C || R,
1130
- onClick: O || i ? l : P,
1130
+ onClick: O || i ? l : S,
1131
1131
  ref: r,
1132
1132
  target: f
1133
1133
  }))
1134
1134
  );
1135
1135
  });
1136
- process.env.NODE_ENV !== "production" && (ge.displayName = "Link");
1137
- const Wn = /* @__PURE__ */ b.forwardRef(function(n, r) {
1136
+ process.env.NODE_ENV !== "production" && (Ne.displayName = "Link");
1137
+ const Wn = /* @__PURE__ */ g.forwardRef(function(n, r) {
1138
1138
  let {
1139
1139
  "aria-current": l = "page",
1140
1140
  caseSensitive: a = !1,
@@ -1143,52 +1143,52 @@ const Wn = /* @__PURE__ */ b.forwardRef(function(n, r) {
1143
1143
  style: c,
1144
1144
  to: f,
1145
1145
  children: d
1146
- } = n, h = Ge(n, $n), v = xe(f, {
1146
+ } = n, h = Ke(n, In), _ = xe(f, {
1147
1147
  relative: h.relative
1148
- }), x = ue(), C = b.useContext(Rt), {
1148
+ }), w = fe(), C = g.useContext(Rt), {
1149
1149
  navigator: O
1150
- } = b.useContext(ee), R = O.encodeLocation ? O.encodeLocation(v).pathname : v.pathname, T = x.pathname, P = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
1151
- a || (T = T.toLowerCase(), P = P ? P.toLowerCase() : null, R = R.toLowerCase());
1152
- let g = T === R || !s && T.startsWith(R) && T.charAt(R.length) === "/", F = P != null && (P === R || !s && P.startsWith(R) && P.charAt(R.length) === "/"), $ = g ? l : void 0, A;
1153
- typeof i == "function" ? A = i({
1154
- isActive: g,
1155
- isPending: F
1156
- }) : A = [i, g ? "active" : null, F ? "pending" : null].filter(Boolean).join(" ");
1157
- let U = typeof c == "function" ? c({
1158
- isActive: g,
1159
- isPending: F
1150
+ } = g.useContext(ee), R = O.encodeLocation ? O.encodeLocation(_).pathname : _.pathname, T = w.pathname, S = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
1151
+ a || (T = T.toLowerCase(), S = S ? S.toLowerCase() : null, R = R.toLowerCase());
1152
+ let b = T === R || !s && T.startsWith(R) && T.charAt(R.length) === "/", $ = S != null && (S === R || !s && S.startsWith(R) && S.charAt(R.length) === "/"), A = b ? l : void 0, V;
1153
+ typeof i == "function" ? V = i({
1154
+ isActive: b,
1155
+ isPending: $
1156
+ }) : V = [i, b ? "active" : null, $ ? "pending" : null].filter(Boolean).join(" ");
1157
+ let I = typeof c == "function" ? c({
1158
+ isActive: b,
1159
+ isPending: $
1160
1160
  }) : c;
1161
- return /* @__PURE__ */ b.createElement(ge, te({}, h, {
1162
- "aria-current": $,
1163
- className: A,
1161
+ return /* @__PURE__ */ g.createElement(Ne, ne({}, h, {
1162
+ "aria-current": A,
1163
+ className: V,
1164
1164
  ref: r,
1165
- style: U,
1165
+ style: I,
1166
1166
  to: f
1167
1167
  }), typeof d == "function" ? d({
1168
- isActive: g,
1169
- isPending: F
1168
+ isActive: b,
1169
+ isPending: $
1170
1170
  }) : d);
1171
1171
  });
1172
1172
  process.env.NODE_ENV !== "production" && (Wn.displayName = "NavLink");
1173
- const Mn = /* @__PURE__ */ b.forwardRef((e, n) => {
1173
+ const Mn = /* @__PURE__ */ g.forwardRef((e, n) => {
1174
1174
  let r = zn();
1175
- return /* @__PURE__ */ b.createElement(jt, te({}, e, {
1175
+ return /* @__PURE__ */ g.createElement(jt, ne({}, e, {
1176
1176
  submit: r,
1177
1177
  ref: n
1178
1178
  }));
1179
1179
  });
1180
1180
  process.env.NODE_ENV !== "production" && (Mn.displayName = "Form");
1181
- const jt = /* @__PURE__ */ b.forwardRef((e, n) => {
1181
+ const jt = /* @__PURE__ */ g.forwardRef((e, n) => {
1182
1182
  let {
1183
1183
  reloadDocument: r,
1184
1184
  replace: l,
1185
- method: a = ve,
1185
+ method: a = _e,
1186
1186
  action: i,
1187
1187
  onSubmit: s,
1188
1188
  submit: c,
1189
1189
  relative: f,
1190
1190
  preventScrollReset: d
1191
- } = e, h = Ge(e, An), v = a.toLowerCase() === "get" ? "get" : "post", x = Gn(i, {
1191
+ } = e, h = Ke(e, An), _ = a.toLowerCase() === "get" ? "get" : "post", w = Gn(i, {
1192
1192
  relative: f
1193
1193
  }), C = (O) => {
1194
1194
  if (s && s(O), O.defaultPrevented)
@@ -1202,19 +1202,19 @@ const jt = /* @__PURE__ */ b.forwardRef((e, n) => {
1202
1202
  preventScrollReset: d
1203
1203
  });
1204
1204
  };
1205
- return /* @__PURE__ */ b.createElement("form", te({
1205
+ return /* @__PURE__ */ g.createElement("form", ne({
1206
1206
  ref: n,
1207
- method: v,
1208
- action: x,
1207
+ method: _,
1208
+ action: w,
1209
1209
  onSubmit: r ? s : C
1210
1210
  }, h));
1211
1211
  });
1212
1212
  process.env.NODE_ENV !== "production" && (jt.displayName = "FormImpl");
1213
1213
  process.env.NODE_ENV;
1214
- var Be;
1214
+ var Ye;
1215
1215
  (function(e) {
1216
1216
  e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher";
1217
- })(Be || (Be = {}));
1217
+ })(Ye || (Ye = {}));
1218
1218
  var Nt;
1219
1219
  (function(e) {
1220
1220
  e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
@@ -1223,8 +1223,8 @@ function Bn(e) {
1223
1223
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1224
1224
  }
1225
1225
  function Yn(e) {
1226
- let n = b.useContext(Ee);
1227
- return n || (process.env.NODE_ENV !== "production" ? I(!1, Bn(e)) : I(!1)), n;
1226
+ let n = g.useContext(we);
1227
+ return n || (process.env.NODE_ENV !== "production" ? F(!1, Bn(e)) : F(!1)), n;
1228
1228
  }
1229
1229
  function Jn(e, n) {
1230
1230
  let {
@@ -1233,15 +1233,15 @@ function Jn(e, n) {
1233
1233
  state: a,
1234
1234
  preventScrollReset: i,
1235
1235
  relative: s
1236
- } = n === void 0 ? {} : n, c = yn(), f = ue(), d = xe(e, {
1236
+ } = n === void 0 ? {} : n, c = yn(), f = fe(), d = xe(e, {
1237
1237
  relative: s
1238
1238
  });
1239
- return b.useCallback((h) => {
1239
+ return g.useCallback((h) => {
1240
1240
  if (jn(h, r)) {
1241
1241
  h.preventDefault();
1242
- let v = l !== void 0 ? l : Ue(f) === Ue(d);
1242
+ let _ = l !== void 0 ? l : Ve(f) === Ve(d);
1243
1243
  c(e, {
1244
- replace: v,
1244
+ replace: _,
1245
1245
  state: a,
1246
1246
  preventScrollReset: i,
1247
1247
  relative: s
@@ -1256,10 +1256,10 @@ function Hn() {
1256
1256
  function zn() {
1257
1257
  let {
1258
1258
  router: e
1259
- } = Yn(Be.UseSubmit), {
1259
+ } = Yn(Ye.UseSubmit), {
1260
1260
  basename: n
1261
- } = b.useContext(ee), r = Cn();
1262
- return b.useCallback(function(l, a) {
1261
+ } = g.useContext(ee), r = Cn();
1262
+ return g.useCallback(function(l, a) {
1263
1263
  a === void 0 && (a = {}), Hn();
1264
1264
  let {
1265
1265
  action: i,
@@ -1267,7 +1267,7 @@ function zn() {
1267
1267
  encType: c,
1268
1268
  formData: f,
1269
1269
  body: d
1270
- } = Fn(l, n);
1270
+ } = $n(l, n);
1271
1271
  e.navigate(a.action || i, {
1272
1272
  preventScrollReset: a.preventScrollReset,
1273
1273
  formData: f,
@@ -1284,16 +1284,16 @@ function Gn(e, n) {
1284
1284
  relative: r
1285
1285
  } = n === void 0 ? {} : n, {
1286
1286
  basename: l
1287
- } = b.useContext(ee), a = b.useContext(ae);
1288
- a || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
1289
- let [i] = a.matches.slice(-1), s = te({}, xe(e || ".", {
1287
+ } = g.useContext(ee), a = g.useContext(oe);
1288
+ a || (process.env.NODE_ENV !== "production" ? F(!1, "useFormAction must be used inside a RouteContext") : F(!1));
1289
+ let [i] = a.matches.slice(-1), s = ne({}, xe(e || ".", {
1290
1290
  relative: r
1291
- })), c = ue();
1291
+ })), c = fe();
1292
1292
  if (e == null && (s.search = c.search, s.hash = c.hash, i.route.index)) {
1293
1293
  let f = new URLSearchParams(s.search);
1294
1294
  f.delete("index"), s.search = f.toString() ? "?" + f.toString() : "";
1295
1295
  }
1296
- return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (s.pathname = s.pathname === "/" ? l : Je([l, s.pathname])), Ue(s);
1296
+ return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (s.pathname = s.pathname === "/" ? l : He([l, s.pathname])), Ve(s);
1297
1297
  }
1298
1298
  const rr = z(
1299
1299
  ({ breadcrumbs: e, navigationType: n, className: r, ...l }, a) => {
@@ -1307,7 +1307,7 @@ const rr = z(
1307
1307
  {
1308
1308
  className: "pkt-breadcrumbs__item",
1309
1309
  children: d === i.length - 1 ? /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text }) }) : n === "router" ? /* @__PURE__ */ m(
1310
- ge,
1310
+ Ne,
1311
1311
  {
1312
1312
  to: f.href,
1313
1313
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
@@ -1345,7 +1345,7 @@ const rr = z(
1345
1345
  `breadcrumb-${d}`
1346
1346
  )) }),
1347
1347
  n === "router" ? /* @__PURE__ */ m(
1348
- ge,
1348
+ Ne,
1349
1349
  {
1350
1350
  to: s.href,
1351
1351
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
@@ -1381,7 +1381,7 @@ const rr = z(
1381
1381
  )
1382
1382
  ] });
1383
1383
  }
1384
- ), Ne = z(
1384
+ ), ye = z(
1385
1385
  ({
1386
1386
  children: e,
1387
1387
  className: n,
@@ -1394,7 +1394,7 @@ const rr = z(
1394
1394
  color: f,
1395
1395
  ...d
1396
1396
  }, h) => {
1397
- const v = [
1397
+ const _ = [
1398
1398
  n,
1399
1399
  "pkt-btn",
1400
1400
  a && `pkt-btn--${a}`,
@@ -1402,14 +1402,14 @@ const rr = z(
1402
1402
  c && `pkt-btn--${c}`,
1403
1403
  f && `pkt-btn--${f}`
1404
1404
  ].filter(Boolean).join(" ");
1405
- return /* @__PURE__ */ m("button", { ...d, className: v, type: s, ref: h, children: [
1405
+ return /* @__PURE__ */ m("button", { ...d, className: _, type: s, ref: h, children: [
1406
1406
  c !== "label-only" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: r }),
1407
1407
  /* @__PURE__ */ o("span", { className: "pkt-btn__text", children: e }),
1408
1408
  c === "icons-right-and-left" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: l })
1409
1409
  ] });
1410
1410
  }
1411
1411
  );
1412
- Ne.displayName = "PktButton";
1412
+ ye.displayName = "PktButton";
1413
1413
  const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: l }) => {
1414
1414
  var i, s;
1415
1415
  const a = [l, "pkt-footer"].filter(Boolean).join(" ");
@@ -1492,7 +1492,7 @@ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: l }) => {
1492
1492
  },
1493
1493
  `sociallinks-language-${f}`
1494
1494
  )) }),
1495
- /* @__PURE__ */ o("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, f) => /* @__PURE__ */ o(q.Fragment, { children: /* @__PURE__ */ o(
1495
+ /* @__PURE__ */ o("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, f) => /* @__PURE__ */ o(K.Fragment, { children: /* @__PURE__ */ o(
1496
1496
  "a",
1497
1497
  {
1498
1498
  href: c.href,
@@ -1590,30 +1590,30 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1590
1590
  userMenuFooter: f,
1591
1591
  canChangeRepresentation: d = !0,
1592
1592
  showMenuButton: h = !1,
1593
- showLogOutButton: v = !1,
1594
- openMenu: x,
1593
+ showLogOutButton: _ = !1,
1594
+ openMenu: w,
1595
1595
  logOut: C,
1596
1596
  changeRepresentation: O,
1597
1597
  ...R
1598
1598
  }, T) => {
1599
- const P = q.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
1599
+ const S = K.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
1600
1600
  year: "numeric",
1601
1601
  month: "long",
1602
1602
  day: "numeric"
1603
- }) : "", [a]), [g, F] = q.useState(!1), [$, A] = q.useState(0), [U, G] = q.useState(!1), M = q.useRef(null);
1604
- q.useEffect(() => (document.addEventListener("mouseup", B), window.addEventListener("scroll", W), () => {
1605
- document.removeEventListener("mouseup", B), window.removeEventListener("scroll", W);
1603
+ }) : "", [a]), [b, $] = K.useState(!1), [A, V] = K.useState(0), [I, J] = K.useState(!1), H = K.useRef(null);
1604
+ K.useEffect(() => (document.addEventListener("mouseup", W), window.addEventListener("scroll", G), () => {
1605
+ document.removeEventListener("mouseup", W), window.removeEventListener("scroll", G);
1606
1606
  }));
1607
- const K = () => {
1608
- G(!U);
1609
- }, B = (_) => {
1610
- M.current && !M.current.contains(_.target) && G(!1);
1611
- }, W = () => {
1607
+ const B = () => {
1608
+ J(!I);
1609
+ }, W = (v) => {
1610
+ H.current && !H.current.contains(v.target) && J(!1);
1611
+ }, G = () => {
1612
1612
  if (l) {
1613
- const _ = window.pageYOffset || document.documentElement.scrollTop;
1614
- if (_ < 0 || Math.abs(_ - $) < 60)
1613
+ const v = window.pageYOffset || document.documentElement.scrollTop;
1614
+ if (v < 0 || Math.abs(v - A) < 60)
1615
1615
  return;
1616
- F(_ > $), A(_);
1616
+ $(v > A), V(v);
1617
1617
  }
1618
1618
  };
1619
1619
  return /* @__PURE__ */ m(
@@ -1626,7 +1626,7 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1626
1626
  className: Lt("pkt-header", {
1627
1627
  "pkt-header--fixed": r,
1628
1628
  "pkt-header--scroll-to-hide": l,
1629
- "pkt-header--hidden": g
1629
+ "pkt-header--hidden": b
1630
1630
  }),
1631
1631
  ref: T,
1632
1632
  children: [
@@ -1660,13 +1660,13 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1660
1660
  ] }),
1661
1661
  /* @__PURE__ */ o("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ m("ul", { className: "pkt-header__actions-row", children: [
1662
1662
  h && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
1663
- Ne,
1663
+ ye,
1664
1664
  {
1665
1665
  className: "pkt-header__menu-btn",
1666
1666
  skin: "secondary",
1667
1667
  variant: "icon-right",
1668
1668
  iconName: "menu",
1669
- onClick: x,
1669
+ onClick: w,
1670
1670
  children: "Meny"
1671
1671
  }
1672
1672
  ) }),
@@ -1674,8 +1674,8 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1674
1674
  "li",
1675
1675
  {
1676
1676
  "data-testid": "usermenu",
1677
- className: `pkt-header--has-dropdown ${U && !g ? "pkt-header--open-dropdown" : ""}`,
1678
- ref: M,
1677
+ className: `pkt-header--has-dropdown ${I && !b ? "pkt-header--open-dropdown" : ""}`,
1678
+ ref: H,
1679
1679
  children: [
1680
1680
  /* @__PURE__ */ m(
1681
1681
  "button",
@@ -1684,8 +1684,8 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1684
1684
  type: "button",
1685
1685
  role: "button",
1686
1686
  "aria-controls": "pktUserDropdown",
1687
- "aria-expanded": U,
1688
- onClick: K,
1687
+ "aria-expanded": I,
1688
+ onClick: B,
1689
1689
  children: [
1690
1690
  /* @__PURE__ */ o(y, { name: "user", className: "pkt-btn__icon" }),
1691
1691
  /* @__PURE__ */ o("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (a == null ? void 0 : a.name) }),
@@ -1701,18 +1701,18 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1701
1701
  /* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: a.name }),
1702
1702
  a.lastLoggedIn && /* @__PURE__ */ m("div", { className: "pkt-user-menu__last-logged-in", children: [
1703
1703
  "Sist pålogget: ",
1704
- /* @__PURE__ */ o("time", { children: P })
1704
+ /* @__PURE__ */ o("time", { children: S })
1705
1705
  ] })
1706
1706
  ] }),
1707
- i && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: i.map((_, D) => /* @__PURE__ */ o("li", { children: typeof _.target == "string" ? /* @__PURE__ */ m("a", { href: _.target, className: "pkt-link", children: [
1708
- _.iconName && /* @__PURE__ */ o(y, { name: _.iconName, className: "pkt-link__icon" }),
1709
- _.title
1710
- ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: [
1711
- _.iconName && /* @__PURE__ */ o(y, { name: _.iconName, className: "pkt-link__icon" }),
1712
- _.title
1713
- ] }) }, `userMenu-${D}`)) }) }),
1707
+ i && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: i.map((v, j) => /* @__PURE__ */ o("li", { children: typeof v.target == "string" ? /* @__PURE__ */ m("a", { href: v.target, className: "pkt-link", children: [
1708
+ v.iconName && /* @__PURE__ */ o(y, { name: v.iconName, className: "pkt-link__icon" }),
1709
+ v.title
1710
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: [
1711
+ v.iconName && /* @__PURE__ */ o(y, { name: v.iconName, className: "pkt-link__icon" }),
1712
+ v.title
1713
+ ] }) }, `userMenu-${j}`)) }) }),
1714
1714
  (s || d) && /* @__PURE__ */ m("li", { children: [
1715
- s && /* @__PURE__ */ m(Z, { children: [
1715
+ s && /* @__PURE__ */ m(X, { children: [
1716
1716
  /* @__PURE__ */ o("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1717
1717
  /* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: s.name }),
1718
1718
  s.orgNumber && /* @__PURE__ */ m("div", { className: "pkt-user-menu__org-number", children: [
@@ -1732,26 +1732,26 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1732
1732
  }
1733
1733
  ) }) })
1734
1734
  ] }),
1735
- /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: (c || !v) && /* @__PURE__ */ m(Z, { children: [
1736
- c == null ? void 0 : c.map((_, D) => /* @__PURE__ */ o("li", { children: typeof _.target == "string" ? /* @__PURE__ */ m("a", { href: _.target, className: "pkt-link", children: [
1737
- _.iconName && /* @__PURE__ */ o(y, { name: _.iconName, className: "pkt-link__icon" }),
1738
- _.title
1739
- ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: [
1740
- _.iconName && /* @__PURE__ */ o(y, { name: _.iconName, className: "pkt-link__icon" }),
1741
- _.title
1742
- ] }) }, `userOptions-${D}`)),
1743
- !v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1735
+ /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: (c || !_) && /* @__PURE__ */ m(X, { children: [
1736
+ c == null ? void 0 : c.map((v, j) => /* @__PURE__ */ o("li", { children: typeof v.target == "string" ? /* @__PURE__ */ m("a", { href: v.target, className: "pkt-link", children: [
1737
+ v.iconName && /* @__PURE__ */ o(y, { name: v.iconName, className: "pkt-link__icon" }),
1738
+ v.title
1739
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: [
1740
+ v.iconName && /* @__PURE__ */ o(y, { name: v.iconName, className: "pkt-link__icon" }),
1741
+ v.title
1742
+ ] }) }, `userOptions-${j}`)),
1743
+ !_ && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1744
1744
  /* @__PURE__ */ o(y, { name: "exit", className: "pkt-link__icon" }),
1745
1745
  "Logg ut"
1746
1746
  ] }) })
1747
1747
  ] }) }) }),
1748
- f && /* @__PURE__ */ o("li", { className: "footer", children: /* @__PURE__ */ o("ul", { className: "pkt-list-horizontal bordered", children: f.map((_, D) => /* @__PURE__ */ o("li", { children: typeof _.target == "string" ? /* @__PURE__ */ o("a", { href: _.target, className: "pkt-link", children: _.title }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: _.target, children: _.title }) }, `userMenuFooter-${D}`)) }) })
1748
+ f && /* @__PURE__ */ o("li", { className: "footer", children: /* @__PURE__ */ o("ul", { className: "pkt-list-horizontal bordered", children: f.map((v, j) => /* @__PURE__ */ o("li", { children: typeof v.target == "string" ? /* @__PURE__ */ o("a", { href: v.target, className: "pkt-link", children: v.title }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: v.target, children: v.title }) }, `userMenuFooter-${j}`)) }) })
1749
1749
  ] })
1750
1750
  ]
1751
1751
  }
1752
1752
  ),
1753
- v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
1754
- Ne,
1753
+ _ && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
1754
+ ye,
1755
1755
  {
1756
1756
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1757
1757
  iconName: "exit",
@@ -1767,7 +1767,7 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1767
1767
  }
1768
1768
  );
1769
1769
  }
1770
- ), qn = q.forwardRef(
1770
+ ), qn = K.forwardRef(
1771
1771
  ({ label: e, id: n, children: r, ...l }, a) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
1772
1772
  /* @__PURE__ */ o("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1773
1773
  /* @__PURE__ */ o("input", { className: "pkt-form-input", id: n, ...l, ref: a }),
@@ -1775,7 +1775,7 @@ const Lt = /* @__PURE__ */ sn(Kn), lr = z(
1775
1775
  ] })
1776
1776
  );
1777
1777
  qn.displayName = "PktInput";
1778
- const Ke = z(
1778
+ const qe = z(
1779
1779
  ({
1780
1780
  forId: e,
1781
1781
  label: n,
@@ -1788,81 +1788,81 @@ const Ke = z(
1788
1788
  requiredText: f = "Må fylles ut",
1789
1789
  hasError: d,
1790
1790
  errorMessage: h,
1791
- disabled: v,
1792
- inline: x,
1791
+ disabled: _,
1792
+ inline: w,
1793
1793
  ariaDescribedby: C,
1794
1794
  useWrapper: O = !0,
1795
1795
  children: R,
1796
1796
  className: T
1797
- }, P) => {
1798
- const [g, F] = ce(!1), $ = () => {
1799
- F(!g);
1800
- }, A = () => 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" : "", U = i ? s : c ? f : "", G = v ? "pkt-inputwrapper--disabled" : "", M = x ? "pkt-inputwrapper--inline" : "", K = d ? "pkt-inputwrapper--error" : "", B = !!l && l !== "", W = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', _ = B ? "div" : "label", D = B ? "h2" : "span", Y = C || (r ? `${e}-helptext` : void 0);
1797
+ }, S) => {
1798
+ const [b, $] = ue(!1), A = () => {
1799
+ $(!b);
1800
+ }, 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 = !!l && l !== "", 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);
1801
1801
  return /* @__PURE__ */ m(
1802
1802
  "div",
1803
1803
  {
1804
- className: ["pkt-inputwrapper", T, G, M, K].join(
1804
+ className: ["pkt-inputwrapper", T, J, H, B].join(
1805
1805
  " "
1806
1806
  ),
1807
- ref: P,
1807
+ ref: S,
1808
1808
  children: [
1809
- O ? /* @__PURE__ */ m(Z, { children: [
1809
+ O ? /* @__PURE__ */ m(X, { children: [
1810
1810
  /* @__PURE__ */ o(
1811
- _,
1811
+ v,
1812
1812
  {
1813
1813
  htmlFor: e,
1814
1814
  className: "pkt-inputwrapper__label",
1815
- "aria-describedby": B ? "" : C,
1816
- children: /* @__PURE__ */ m(D, { id: `${e}-label`, children: [
1815
+ "aria-describedby": W ? "" : C,
1816
+ children: /* @__PURE__ */ m(j, { id: `${e}-label`, children: [
1817
1817
  n,
1818
- U !== "" && /* @__PURE__ */ o("span", { className: A(), children: U })
1818
+ I !== "" && /* @__PURE__ */ o("span", { className: V(), children: I })
1819
1819
  ] })
1820
1820
  }
1821
1821
  ),
1822
1822
  r && /* @__PURE__ */ o("div", { className: "pkt-inputwrapper__helptext", id: `${e}-helptext`, children: r }),
1823
- B && l !== "" && /* @__PURE__ */ m("div", { children: [
1823
+ W && l !== "" && /* @__PURE__ */ m("div", { children: [
1824
1824
  /* @__PURE__ */ o(
1825
- Ne,
1825
+ ye,
1826
1826
  {
1827
1827
  skin: "tertiary",
1828
1828
  size: "small",
1829
1829
  variant: "icon-right",
1830
- iconName: g ? "chevron-thin-up" : "chevron-thin-down",
1830
+ iconName: b ? "chevron-thin-up" : "chevron-thin-down",
1831
1831
  className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1832
- onClick: $,
1833
- children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: W } })
1832
+ onClick: A,
1833
+ children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: G } })
1834
1834
  }
1835
1835
  ),
1836
1836
  /* @__PURE__ */ o(
1837
1837
  "div",
1838
1838
  {
1839
- className: `pkt-inputwrapper__helptext ${g ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1839
+ className: `pkt-inputwrapper__helptext ${b ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1840
1840
  children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: l } })
1841
1841
  }
1842
1842
  ),
1843
- /* @__PURE__ */ o("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": Y, children: n })
1843
+ /* @__PURE__ */ o("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": M, children: n })
1844
1844
  ] }),
1845
- /* @__PURE__ */ o(Z, { children: R })
1846
- ] }) : /* @__PURE__ */ m(Z, { children: [
1845
+ /* @__PURE__ */ o(X, { children: R })
1846
+ ] }) : /* @__PURE__ */ m(X, { children: [
1847
1847
  /* @__PURE__ */ o(
1848
1848
  "label",
1849
1849
  {
1850
1850
  htmlFor: e,
1851
1851
  className: "pkt-sr-only",
1852
- "aria-describedby": Y,
1852
+ "aria-describedby": M,
1853
1853
  id: `${e}-label`,
1854
1854
  children: n
1855
1855
  }
1856
1856
  ),
1857
1857
  R
1858
1858
  ] }),
1859
- d && /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(dn, { skin: "error", "aria-live": "assertive", children: h }) })
1859
+ d && /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(dn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, children: h }) })
1860
1860
  ]
1861
1861
  }
1862
1862
  );
1863
1863
  }
1864
1864
  );
1865
- Ke.displayName = "PktInputWrapper";
1865
+ qe.displayName = "PktInputWrapper";
1866
1866
  const Xn = z(
1867
1867
  ({
1868
1868
  children: e,
@@ -1914,10 +1914,10 @@ const ir = ({
1914
1914
  ] })
1915
1915
  );
1916
1916
  Zn.displayName = "PktRadio";
1917
- const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(Z, { children: [
1917
+ const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(X, { children: [
1918
1918
  /* @__PURE__ */ o("p", { children: e }),
1919
1919
  /* @__PURE__ */ o("div", { className: "pkt-form-group", children: n })
1920
- ] }), Qn = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ o("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ o(Z, { children: n }), cr = ({
1920
+ ] }), Qn = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ o("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ o(X, { children: n }), cr = ({
1921
1921
  isResponsive: e,
1922
1922
  modifiers: { info: n = !1, success: r = !1, strong: l = !1, shadow: a = !1 } = {},
1923
1923
  children: i
@@ -1945,8 +1945,8 @@ const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(Z, { children: [
1945
1945
  onClick: d = () => {
1946
1946
  }
1947
1947
  }, h) => {
1948
- const [v, x] = ce(!1), C = (P) => {
1949
- x(!0), d(P);
1948
+ const [_, w] = ue(!1), C = (S) => {
1949
+ w(!0), d(S);
1950
1950
  }, O = [
1951
1951
  "pkt-tag",
1952
1952
  a && `pkt-tag--${a}`,
@@ -1963,8 +1963,8 @@ const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(Z, { children: [
1963
1963
  s && i ? "pkt-btn--icons-right-and-left" : null,
1964
1964
  i && !s ? "pkt-btn--icon-right" : null,
1965
1965
  n
1966
- ].filter(Boolean).join(" "), T = !v;
1967
- return i && s ? /* @__PURE__ */ o(Z, { children: T && /* @__PURE__ */ m(
1966
+ ].filter(Boolean).join(" "), T = !_;
1967
+ return i && s ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
1968
1968
  "button",
1969
1969
  {
1970
1970
  className: R,
@@ -1978,7 +1978,7 @@ const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(Z, { children: [
1978
1978
  /* @__PURE__ */ o(y, { className: "pkt-tag__close-btn", name: "close" })
1979
1979
  ]
1980
1980
  }
1981
- ) }) : i ? /* @__PURE__ */ o(Z, { children: T && /* @__PURE__ */ m(
1981
+ ) }) : i ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
1982
1982
  "button",
1983
1983
  {
1984
1984
  className: R,
@@ -2010,67 +2010,69 @@ const pr = z(
2010
2010
  hasError: f,
2011
2011
  helptext: d,
2012
2012
  helptextDropdown: h,
2013
- helptextDropdownButton: v,
2014
- inline: x,
2015
- label: C,
2016
- name: O,
2017
- optional: R = !1,
2018
- optionalText: T,
2019
- required: P = !1,
2020
- requiredText: g,
2021
- placeholder: F,
2022
- rows: $,
2023
- useWrapper: A,
2024
- onChange: U,
2025
- ...G
2026
- }, M) => {
2027
- const K = [i, "pkt-textinput", "pkt-textarea"].join(" "), B = r || `${e}-label`, W = ln(null), [_, D] = ce(0), Y = (H) => {
2028
- var Q, oe;
2029
- if (l && D(((oe = (Q = H.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), U)
2030
- return U(H);
2013
+ helptextDropdownButton: _,
2014
+ inline: w,
2015
+ fullwidth: C = !1,
2016
+ label: O,
2017
+ name: R,
2018
+ optional: T = !1,
2019
+ optionalText: S,
2020
+ required: b = !1,
2021
+ requiredText: $,
2022
+ placeholder: A,
2023
+ rows: V,
2024
+ useWrapper: I,
2025
+ onChange: J,
2026
+ ...H
2027
+ }, B) => {
2028
+ const W = [i, "pkt-textinput", "pkt-textarea"].join(" "), G = r || `${e}-label`, v = ln(null), [j, M] = ue(0), te = (Z) => {
2029
+ var Q, le;
2030
+ if (l && M(((le = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : le.length) || 0), J)
2031
+ return J(Z);
2031
2032
  };
2032
2033
  return yt(() => {
2033
- var H, Q;
2034
- typeof M == "function" && M(W.current), l && D(((Q = (H = W == null ? void 0 : W.current) == null ? void 0 : H.value) == null ? void 0 : Q.length) || 0);
2035
- }, [M]), /* @__PURE__ */ m(
2036
- Ke,
2034
+ var Z, Q;
2035
+ typeof B == "function" && B(v.current), l && M(((Q = (Z = v == null ? void 0 : v.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2036
+ }, [B]), /* @__PURE__ */ m(
2037
+ qe,
2037
2038
  {
2038
2039
  ariaDescribedby: n,
2039
- className: K,
2040
+ className: W,
2040
2041
  disabled: s,
2041
2042
  errorMessage: c,
2042
2043
  forId: e,
2043
2044
  hasError: f,
2044
2045
  helptext: d,
2045
2046
  helptextDropdown: h,
2046
- helptextDropdownButton: v,
2047
- inline: x,
2048
- label: C,
2049
- optional: R,
2050
- optionalText: T,
2051
- required: P,
2052
- requiredText: g,
2053
- useWrapper: A,
2047
+ helptextDropdownButton: _,
2048
+ inline: w,
2049
+ label: O,
2050
+ optional: T,
2051
+ optionalText: S,
2052
+ required: b,
2053
+ requiredText: $,
2054
+ useWrapper: I,
2054
2055
  children: [
2055
2056
  /* @__PURE__ */ o(
2056
2057
  "textarea",
2057
2058
  {
2058
- ref: W,
2059
- className: `pkt-input ${a && _ > a ? "pkt-input--counter-error" : ""}`,
2060
- name: O || e,
2059
+ ref: v,
2060
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${a && j > a ? "pkt-input--counter-error" : ""}`,
2061
+ name: R || e,
2061
2062
  id: e,
2062
- placeholder: F,
2063
+ placeholder: A,
2063
2064
  disabled: s,
2064
- rows: $,
2065
- "aria-labelledby": B,
2065
+ rows: V,
2066
+ "aria-labelledby": G,
2066
2067
  "aria-invalid": f,
2067
- "aria-required": P,
2068
- ...G,
2069
- onChange: Y
2068
+ "aria-errormessage": `${e}-error`,
2069
+ "aria-required": b,
2070
+ ...H,
2071
+ onChange: te
2070
2072
  }
2071
2073
  ),
2072
2074
  l && /* @__PURE__ */ m("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2073
- _ || 0,
2075
+ j || 0,
2074
2076
  a && `/${a}`
2075
2077
  ] })
2076
2078
  ]
@@ -2090,28 +2092,29 @@ const pr = z(
2090
2092
  helptext: f,
2091
2093
  helptextDropdown: d,
2092
2094
  helptextDropdownButton: h,
2093
- iconNameRight: v,
2094
- inline: x = !1,
2095
- label: C,
2096
- name: O,
2097
- optional: R = !1,
2098
- optionalText: T,
2099
- required: P = !1,
2100
- requiredText: g,
2101
- placeholder: F,
2102
- prefix: $,
2103
- suffix: A,
2104
- type: U = "text",
2105
- useWrapper: G = !0,
2106
- value: M,
2107
- ...K
2108
- }, B) => {
2109
- const W = [a, "pkt-textinput"].join(" "), _ = r || `${e}-label`;
2095
+ iconNameRight: _,
2096
+ inline: w = !1,
2097
+ fullwidth: C = !1,
2098
+ label: O,
2099
+ name: R,
2100
+ optional: T = !1,
2101
+ optionalText: S,
2102
+ required: b = !1,
2103
+ requiredText: $,
2104
+ placeholder: A,
2105
+ prefix: V,
2106
+ suffix: I,
2107
+ type: J = "text",
2108
+ useWrapper: H = !0,
2109
+ value: B,
2110
+ ...W
2111
+ }, G) => {
2112
+ const v = [a, "pkt-textinput"].join(" "), j = r || `${e}-label`;
2110
2113
  return /* @__PURE__ */ o(
2111
- Ke,
2114
+ qe,
2112
2115
  {
2113
2116
  ariaDescribedby: n,
2114
- className: W,
2117
+ className: v,
2115
2118
  disabled: i,
2116
2119
  errorMessage: s,
2117
2120
  forId: e,
@@ -2119,38 +2122,39 @@ const pr = z(
2119
2122
  helptext: f,
2120
2123
  helptextDropdown: d,
2121
2124
  helptextDropdownButton: h,
2122
- inline: x,
2123
- label: C,
2124
- optional: R,
2125
- optionalText: T,
2126
- required: P,
2127
- requiredText: g,
2128
- useWrapper: G,
2125
+ inline: w,
2126
+ label: O,
2127
+ optional: T,
2128
+ optionalText: S,
2129
+ required: b,
2130
+ requiredText: $,
2131
+ useWrapper: H,
2129
2132
  children: /* @__PURE__ */ m("div", { className: "pkt-input__container", children: [
2130
- $ && /* @__PURE__ */ o("div", { className: "pkt-input-prefix", children: $ }),
2133
+ V && /* @__PURE__ */ o("div", { className: "pkt-input-prefix", children: V }),
2131
2134
  /* @__PURE__ */ o(
2132
2135
  "input",
2133
2136
  {
2134
- ref: B,
2135
- className: "pkt-input",
2136
- type: U,
2137
- name: O || e,
2137
+ ref: G,
2138
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""}`,
2139
+ type: J,
2140
+ name: R || e,
2138
2141
  id: e,
2139
- placeholder: F,
2142
+ placeholder: A,
2140
2143
  autoComplete: l,
2141
- value: M,
2144
+ value: B,
2142
2145
  disabled: i,
2143
- "aria-required": P,
2146
+ "aria-required": b,
2144
2147
  "aria-invalid": c,
2145
- "aria-labelledby": _,
2146
- ...K
2148
+ "aria-errormessage": `${e}-error`,
2149
+ "aria-labelledby": j,
2150
+ ...W
2147
2151
  }
2148
2152
  ),
2149
- A && /* @__PURE__ */ m("p", { className: "pkt-input-suffix", children: [
2150
- A,
2151
- v && /* @__PURE__ */ o(y, { className: "pkt-input-suffix-icon", name: v })
2153
+ I && /* @__PURE__ */ m("p", { className: "pkt-input-suffix", children: [
2154
+ I,
2155
+ _ && /* @__PURE__ */ o(y, { className: "pkt-input-suffix-icon", name: _ })
2152
2156
  ] }),
2153
- !A && v && /* @__PURE__ */ o(y, { className: "pkt-input-icon", name: v })
2157
+ !I && _ && /* @__PURE__ */ o(y, { className: "pkt-input-icon", name: _ })
2154
2158
  ] })
2155
2159
  }
2156
2160
  );
@@ -2160,13 +2164,13 @@ export {
2160
2164
  dn as PktAlert,
2161
2165
  nr as PktBackLink,
2162
2166
  rr as PktBreadcrumbs,
2163
- Ne as PktButton,
2167
+ ye as PktButton,
2164
2168
  ar as PktFooter,
2165
2169
  or as PktFooterSimple,
2166
2170
  lr as PktHeader,
2167
2171
  y as PktIcon,
2168
2172
  qn as PktInput,
2169
- Ke as PktInputWrapper,
2173
+ qe as PktInputWrapper,
2170
2174
  Xn as PktLinkCard,
2171
2175
  ir as PktMessagebox,
2172
2176
  Zn as PktRadio,