@oslokommune/punkt-react 5.2.2 → 5.2.3

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,6 +1,6 @@
1
1
  import ne, { useState as le, useEffect as ht, forwardRef as W } from "react";
2
- function vt(l) {
3
- return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
2
+ function vt(n) {
3
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
4
4
  }
5
5
  var ye = { exports: {} }, J = {};
6
6
  /**
@@ -12,23 +12,23 @@ var ye = { exports: {} }, J = {};
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- var Le;
15
+ var Be;
16
16
  function bt() {
17
- if (Le)
17
+ if (Be)
18
18
  return J;
19
- Le = 1;
20
- var l = ne, s = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function p(h, d, g) {
19
+ Be = 1;
20
+ var n = ne, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, d = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function k(l, u, g) {
22
22
  var N, w = {}, R = null, C = null;
23
- g !== void 0 && (R = "" + g), d.key !== void 0 && (R = "" + d.key), d.ref !== void 0 && (C = d.ref);
24
- for (N in d)
25
- c.call(d, N) && !a.hasOwnProperty(N) && (w[N] = d[N]);
26
- if (h && h.defaultProps)
27
- for (N in d = h.defaultProps, d)
28
- w[N] === void 0 && (w[N] = d[N]);
29
- return { $$typeof: s, type: h, key: R, ref: C, props: w, _owner: f.current };
23
+ g !== void 0 && (R = "" + g), u.key !== void 0 && (R = "" + u.key), u.ref !== void 0 && (C = u.ref);
24
+ for (N in u)
25
+ i.call(u, N) && !c.hasOwnProperty(N) && (w[N] = u[N]);
26
+ if (l && l.defaultProps)
27
+ for (N in u = l.defaultProps, u)
28
+ w[N] === void 0 && (w[N] = u[N]);
29
+ return { $$typeof: o, type: l, key: R, ref: C, props: w, _owner: d.current };
30
30
  }
31
- return J.Fragment = i, J.jsx = p, J.jsxs = p, J;
31
+ return J.Fragment = s, J.jsx = k, J.jsxs = k, J;
32
32
  }
33
33
  var z = {};
34
34
  /**
@@ -40,49 +40,49 @@ var z = {};
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
- var Be;
43
+ var Le;
44
44
  function gt() {
45
- return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
46
- var l = ne, s = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), h = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, S = "@@iterator";
45
+ return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
46
+ var n = ne, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, S = "@@iterator";
47
47
  function F(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
50
50
  var t = $ && e[$] || e[S];
51
51
  return typeof t == "function" ? t : null;
52
52
  }
53
- var P = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
+ var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
54
  function x(e) {
55
55
  {
56
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
57
- n[o - 1] = arguments[o];
58
- se("error", e, n);
56
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
57
+ a[f - 1] = arguments[f];
58
+ se("error", e, a);
59
59
  }
60
60
  }
61
- function se(e, t, n) {
61
+ function se(e, t, a) {
62
62
  {
63
- var o = P.ReactDebugCurrentFrame, k = o.getStackAddendum();
64
- k !== "" && (t += "%s", n = n.concat([k]));
65
- var v = n.map(function(_) {
63
+ var f = P.ReactDebugCurrentFrame, h = f.getStackAddendum();
64
+ h !== "" && (t += "%s", a = a.concat([h]));
65
+ var v = a.map(function(_) {
66
66
  return String(_);
67
67
  });
68
68
  v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
69
69
  }
70
70
  }
71
- var U = !1, K = !1, ie = !1, H = !1, q = !1, Y;
71
+ var U = !1, K = !1, oe = !1, H = !1, q = !1, Y;
72
72
  Y = Symbol.for("react.module.reference");
73
- function oe(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === a || q || e === f || e === g || e === N || H || e === C || U || K || ie || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === p || e.$$typeof === h || e.$$typeof === d || // This needs to include all possible module reference object
73
+ function ie(e) {
74
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === c || q || e === d || e === g || e === N || H || e === C || U || K || oe || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === k || e.$$typeof === l || e.$$typeof === u || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
78
78
  e.$$typeof === Y || e.getModuleId !== void 0));
79
79
  }
80
- function ce(e, t, n) {
81
- var o = e.displayName;
82
- if (o)
83
- return o;
84
- var k = t.displayName || t.name || "";
85
- return k !== "" ? n + "(" + k + ")" : n;
80
+ function ce(e, t, a) {
81
+ var f = e.displayName;
82
+ if (f)
83
+ return f;
84
+ var h = t.displayName || t.name || "";
85
+ return h !== "" ? a + "(" + h + ")" : a;
86
86
  }
87
87
  function X(e) {
88
88
  return e.displayName || "Context";
@@ -95,13 +95,13 @@ function gt() {
95
95
  if (typeof e == "string")
96
96
  return e;
97
97
  switch (e) {
98
- case c:
99
- return "Fragment";
100
98
  case i:
99
+ return "Fragment";
100
+ case s:
101
101
  return "Portal";
102
- case a:
102
+ case c:
103
103
  return "Profiler";
104
- case f:
104
+ case d:
105
105
  return "StrictMode";
106
106
  case g:
107
107
  return "Suspense";
@@ -110,19 +110,19 @@ function gt() {
110
110
  }
111
111
  if (typeof e == "object")
112
112
  switch (e.$$typeof) {
113
- case h:
113
+ case l:
114
114
  var t = e;
115
115
  return X(t) + ".Consumer";
116
- case p:
117
- var n = e;
118
- return X(n._context) + ".Provider";
119
- case d:
116
+ case k:
117
+ var a = e;
118
+ return X(a._context) + ".Provider";
119
+ case u:
120
120
  return ce(e, e.render, "ForwardRef");
121
121
  case w:
122
- var o = e.displayName || null;
123
- return o !== null ? o : j(e.type) || "Memo";
122
+ var f = e.displayName || null;
123
+ return f !== null ? f : j(e.type) || "Memo";
124
124
  case R: {
125
- var k = e, v = k._payload, _ = k._init;
125
+ var h = e, v = h._payload, _ = h._init;
126
126
  try {
127
127
  return j(_(v));
128
128
  } catch {
@@ -195,14 +195,14 @@ function gt() {
195
195
  }
196
196
  }
197
197
  var de = P.ReactCurrentDispatcher, me;
198
- function Q(e, t, n) {
198
+ function Q(e, t, a) {
199
199
  {
200
200
  if (me === void 0)
201
201
  try {
202
202
  throw Error();
203
- } catch (k) {
204
- var o = k.stack.trim().match(/\n( *(at )?)/);
205
- me = o && o[1] || "";
203
+ } catch (h) {
204
+ var f = h.stack.trim().match(/\n( *(at )?)/);
205
+ me = f && f[1] || "";
206
206
  }
207
207
  return `
208
208
  ` + me + e;
@@ -217,13 +217,13 @@ function gt() {
217
217
  if (!e || _e)
218
218
  return "";
219
219
  {
220
- var n = ee.get(e);
221
- if (n !== void 0)
222
- return n;
220
+ var a = ee.get(e);
221
+ if (a !== void 0)
222
+ return a;
223
223
  }
224
- var o;
224
+ var f;
225
225
  _e = !0;
226
- var k = Error.prepareStackTrace;
226
+ var h = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var v;
229
229
  v = de.current, de.current = null, qe();
@@ -240,14 +240,14 @@ function gt() {
240
240
  try {
241
241
  Reflect.construct(_, []);
242
242
  } catch (I) {
243
- o = I;
243
+ f = I;
244
244
  }
245
245
  Reflect.construct(e, [], _);
246
246
  } else {
247
247
  try {
248
248
  _.call();
249
249
  } catch (I) {
250
- o = I;
250
+ f = I;
251
251
  }
252
252
  e.call(_.prototype);
253
253
  }
@@ -255,14 +255,14 @@ function gt() {
255
255
  try {
256
256
  throw Error();
257
257
  } catch (I) {
258
- o = I;
258
+ f = I;
259
259
  }
260
260
  e();
261
261
  }
262
262
  } catch (I) {
263
- if (I && o && typeof I.stack == "string") {
263
+ if (I && f && typeof I.stack == "string") {
264
264
  for (var m = I.stack.split(`
265
- `), T = o.stack.split(`
265
+ `), T = f.stack.split(`
266
266
  `), y = m.length - 1, E = T.length - 1; y >= 1 && E >= 0 && m[y] !== T[E]; )
267
267
  E--;
268
268
  for (; y >= 1 && E >= 0; y--, E--)
@@ -279,19 +279,19 @@ function gt() {
279
279
  }
280
280
  }
281
281
  } finally {
282
- _e = !1, de.current = v, Ge(), Error.prepareStackTrace = k;
282
+ _e = !1, de.current = v, Ge(), Error.prepareStackTrace = h;
283
283
  }
284
- var B = e ? e.displayName || e.name : "", Me = B ? Q(B) : "";
284
+ var L = e ? e.displayName || e.name : "", Me = L ? Q(L) : "";
285
285
  return typeof e == "function" && ee.set(e, Me), Me;
286
286
  }
287
- function ze(e, t, n) {
287
+ function ze(e, t, a) {
288
288
  return Pe(e, !1);
289
289
  }
290
290
  function Ke(e) {
291
291
  var t = e.prototype;
292
292
  return !!(t && t.isReactComponent);
293
293
  }
294
- function te(e, t, n) {
294
+ function te(e, t, a) {
295
295
  if (e == null)
296
296
  return "";
297
297
  if (typeof e == "function")
@@ -306,14 +306,14 @@ function gt() {
306
306
  }
307
307
  if (typeof e == "object")
308
308
  switch (e.$$typeof) {
309
- case d:
309
+ case u:
310
310
  return ze(e.render);
311
311
  case w:
312
- return te(e.type, t, n);
312
+ return te(e.type, t, a);
313
313
  case R: {
314
- var o = e, k = o._payload, v = o._init;
314
+ var f = e, h = f._payload, v = f._init;
315
315
  try {
316
- return te(v(k), t, n);
316
+ return te(v(h), t, a);
317
317
  } catch {
318
318
  }
319
319
  }
@@ -323,12 +323,12 @@ function gt() {
323
323
  var re = Object.prototype.hasOwnProperty, Te = {}, Ce = P.ReactDebugCurrentFrame;
324
324
  function ae(e) {
325
325
  if (e) {
326
- var t = e._owner, n = te(e.type, e._source, t ? t.type : null);
327
- Ce.setExtraStackFrame(n);
326
+ var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
327
+ Ce.setExtraStackFrame(a);
328
328
  } else
329
329
  Ce.setExtraStackFrame(null);
330
330
  }
331
- function Xe(e, t, n, o, k) {
331
+ function Xe(e, t, a, f, h) {
332
332
  {
333
333
  var v = Function.call.bind(re);
334
334
  for (var _ in e)
@@ -336,14 +336,14 @@ function gt() {
336
336
  var m = void 0;
337
337
  try {
338
338
  if (typeof e[_] != "function") {
339
- var T = Error((o || "React class") + ": " + n + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ var T = Error((f || "React class") + ": " + a + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
340
  throw T.name = "Invariant Violation", T;
341
341
  }
342
- m = e[_](t, _, o, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
+ m = e[_](t, _, f, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
343
  } catch (y) {
344
344
  m = y;
345
345
  }
346
- m && !(m instanceof Error) && (ae(k), x("%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).", o || "React class", n, _, typeof m), ae(null)), m instanceof Error && !(m.message in Te) && (Te[m.message] = !0, ae(k), x("Failed %s type: %s", n, m.message), ae(null));
346
+ m && !(m instanceof Error) && (ae(h), x("%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).", f || "React class", a, _, typeof m), ae(null)), m instanceof Error && !(m.message in Te) && (Te[m.message] = !0, ae(h), x("Failed %s type: %s", a, m.message), ae(null));
347
347
  }
348
348
  }
349
349
  }
@@ -353,8 +353,8 @@ function gt() {
353
353
  }
354
354
  function Qe(e) {
355
355
  {
356
- var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
- return n;
356
+ var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
+ return a;
358
358
  }
359
359
  }
360
360
  function et(e) {
@@ -396,40 +396,40 @@ function gt() {
396
396
  }
397
397
  function nt(e, t) {
398
398
  if (typeof e.ref == "string" && G.current && t && G.current.stateNode !== t) {
399
- var n = j(G.current.type);
400
- he[n] || (x('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(G.current.type), e.ref), he[n] = !0);
399
+ var a = j(G.current.type);
400
+ he[a] || (x('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(G.current.type), e.ref), he[a] = !0);
401
401
  }
402
402
  }
403
403
  function lt(e, t) {
404
404
  {
405
- var n = function() {
405
+ var a = function() {
406
406
  Se || (Se = !0, x("%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)", t));
407
407
  };
408
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
409
- get: n,
408
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
409
+ get: a,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
414
  function st(e, t) {
415
415
  {
416
- var n = function() {
416
+ var a = function() {
417
417
  $e || ($e = !0, x("%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)", t));
418
418
  };
419
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
- get: n,
419
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
+ get: a,
421
421
  configurable: !0
422
422
  });
423
423
  }
424
424
  }
425
- var it = function(e, t, n, o, k, v, _) {
425
+ var ot = function(e, t, a, f, h, v, _) {
426
426
  var m = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: s,
428
+ $$typeof: o,
429
429
  // Built-in properties that belong on the element
430
430
  type: e,
431
431
  key: t,
432
- ref: n,
432
+ ref: a,
433
433
  props: _,
434
434
  // Record the component responsible for creating this element.
435
435
  _owner: v
@@ -443,18 +443,18 @@ function gt() {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: o
446
+ value: f
447
447
  }), Object.defineProperty(m, "_source", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !1,
451
- value: k
451
+ value: h
452
452
  }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
453
453
  };
454
- function ot(e, t, n, o, k) {
454
+ function it(e, t, a, f, h) {
455
455
  {
456
456
  var v, _ = {}, m = null, T = null;
457
- n !== void 0 && (Oe(n), m = "" + n), at(t) && (Oe(t.key), m = "" + t.key), rt(t) && (T = t.ref, nt(t, k));
457
+ a !== void 0 && (Oe(a), m = "" + a), at(t) && (Oe(t.key), m = "" + t.key), rt(t) && (T = t.ref, nt(t, h));
458
458
  for (v in t)
459
459
  re.call(t, v) && !tt.hasOwnProperty(v) && (_[v] = t[v]);
460
460
  if (e && e.defaultProps) {
@@ -466,21 +466,21 @@ function gt() {
466
466
  var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
467
  m && lt(_, E), T && st(_, E);
468
468
  }
469
- return it(e, m, T, k, o, G.current, _);
469
+ return ot(e, m, T, h, f, G.current, _);
470
470
  }
471
471
  }
472
472
  var ve = P.ReactCurrentOwner, Fe = P.ReactDebugCurrentFrame;
473
- function L(e) {
473
+ function B(e) {
474
474
  if (e) {
475
- var t = e._owner, n = te(e.type, e._source, t ? t.type : null);
476
- Fe.setExtraStackFrame(n);
475
+ var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
476
+ Fe.setExtraStackFrame(a);
477
477
  } else
478
478
  Fe.setExtraStackFrame(null);
479
479
  }
480
480
  var be;
481
481
  be = !1;
482
482
  function ge(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === s;
483
+ return typeof e == "object" && e !== null && e.$$typeof === o;
484
484
  }
485
485
  function Ie() {
486
486
  {
@@ -497,10 +497,10 @@ Check the render method of \`` + e + "`.";
497
497
  function ct(e) {
498
498
  {
499
499
  if (e !== void 0) {
500
- var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
500
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
501
501
  return `
502
502
 
503
- Check your code at ` + t + ":" + n + ".";
503
+ Check your code at ` + t + ":" + a + ".";
504
504
  }
505
505
  return "";
506
506
  }
@@ -510,10 +510,10 @@ Check your code at ` + t + ":" + n + ".";
510
510
  {
511
511
  var t = Ie();
512
512
  if (!t) {
513
- var n = typeof e == "string" ? e : e.displayName || e.name;
514
- n && (t = `
513
+ var a = typeof e == "string" ? e : e.displayName || e.name;
514
+ a && (t = `
515
515
 
516
- Check the top-level render call using <` + n + ">.");
516
+ Check the top-level render call using <` + a + ">.");
517
517
  }
518
518
  return t;
519
519
  }
@@ -523,12 +523,12 @@ Check the top-level render call using <` + n + ">.");
523
523
  if (!e._store || e._store.validated || e.key != null)
524
524
  return;
525
525
  e._store.validated = !0;
526
- var n = ut(t);
527
- if (De[n])
526
+ var a = ut(t);
527
+ if (De[a])
528
528
  return;
529
- De[n] = !0;
530
- var o = "";
531
- e && e._owner && e._owner !== ve.current && (o = " It was passed a child from " + j(e._owner.type) + "."), L(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, o), L(null);
529
+ De[a] = !0;
530
+ var f = "";
531
+ e && e._owner && e._owner !== ve.current && (f = " It was passed a child from " + j(e._owner.type) + "."), B(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, f), B(null);
532
532
  }
533
533
  }
534
534
  function We(e, t) {
@@ -536,16 +536,16 @@ Check the top-level render call using <` + n + ">.");
536
536
  if (typeof e != "object")
537
537
  return;
538
538
  if (ke(e))
539
- for (var n = 0; n < e.length; n++) {
540
- var o = e[n];
541
- ge(o) && Ae(o, t);
539
+ for (var a = 0; a < e.length; a++) {
540
+ var f = e[a];
541
+ ge(f) && Ae(f, t);
542
542
  }
543
543
  else if (ge(e))
544
544
  e._store && (e._store.validated = !0);
545
545
  else if (e) {
546
- var k = F(e);
547
- if (typeof k == "function" && k !== e.entries)
548
- for (var v = k.call(e), _; !(_ = v.next()).done; )
546
+ var h = F(e);
547
+ if (typeof h == "function" && h !== e.entries)
548
+ for (var v = h.call(e), _; !(_ = v.next()).done; )
549
549
  ge(_.value) && Ae(_.value, t);
550
550
  }
551
551
  }
@@ -555,122 +555,122 @@ Check the top-level render call using <` + n + ">.");
555
555
  var t = e.type;
556
556
  if (t == null || typeof t == "string")
557
557
  return;
558
- var n;
558
+ var a;
559
559
  if (typeof t == "function")
560
- n = t.propTypes;
561
- else if (typeof t == "object" && (t.$$typeof === d || // Note: Memo only checks outer props here.
560
+ a = t.propTypes;
561
+ else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
562
562
  // Inner props are checked in the reconciler.
563
563
  t.$$typeof === w))
564
- n = t.propTypes;
564
+ a = t.propTypes;
565
565
  else
566
566
  return;
567
- if (n) {
568
- var o = j(t);
569
- Xe(n, e.props, "prop", o, e);
567
+ if (a) {
568
+ var f = j(t);
569
+ Xe(a, e.props, "prop", f, e);
570
570
  } else if (t.PropTypes !== void 0 && !be) {
571
571
  be = !0;
572
- var k = j(t);
573
- x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "Unknown");
572
+ var h = j(t);
573
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
574
574
  }
575
575
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
576
  }
577
577
  }
578
578
  function pt(e) {
579
579
  {
580
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
581
- var o = t[n];
582
- if (o !== "children" && o !== "key") {
583
- L(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), L(null);
580
+ for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
581
+ var f = t[a];
582
+ if (f !== "children" && f !== "key") {
583
+ B(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), B(null);
584
584
  break;
585
585
  }
586
586
  }
587
- e.ref !== null && (L(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
587
+ e.ref !== null && (B(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
588
588
  }
589
589
  }
590
- function Ye(e, t, n, o, k, v) {
590
+ function Ye(e, t, a, f, h, v) {
591
591
  {
592
- var _ = oe(e);
592
+ var _ = ie(e);
593
593
  if (!_) {
594
594
  var m = "";
595
595
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
596
- var T = ct(k);
596
+ var T = ct(h);
597
597
  T ? m += T : m += Ie();
598
598
  var y;
599
- e === null ? y = "null" : ke(e) ? y = "array" : e !== void 0 && e.$$typeof === s ? (y = "<" + (j(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, m);
599
+ e === null ? y = "null" : ke(e) ? y = "array" : e !== void 0 && e.$$typeof === o ? (y = "<" + (j(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, m);
600
600
  }
601
- var E = ot(e, t, n, k, v);
601
+ var E = it(e, t, a, h, v);
602
602
  if (E == null)
603
603
  return E;
604
604
  if (_) {
605
605
  var O = t.children;
606
606
  if (O !== void 0)
607
- if (o)
607
+ if (f)
608
608
  if (ke(O)) {
609
- for (var B = 0; B < O.length; B++)
610
- We(O[B], e);
609
+ for (var L = 0; L < O.length; L++)
610
+ We(O[L], e);
611
611
  Object.freeze && Object.freeze(O);
612
612
  } else
613
613
  x("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
614
  else
615
615
  We(O, e);
616
616
  }
617
- return e === c ? pt(E) : ft(E), E;
617
+ return e === i ? pt(E) : ft(E), E;
618
618
  }
619
619
  }
620
- function dt(e, t, n) {
621
- return Ye(e, t, n, !0);
620
+ function dt(e, t, a) {
621
+ return Ye(e, t, a, !0);
622
622
  }
623
- function mt(e, t, n) {
624
- return Ye(e, t, n, !1);
623
+ function mt(e, t, a) {
624
+ return Ye(e, t, a, !1);
625
625
  }
626
626
  var _t = mt, kt = dt;
627
- z.Fragment = c, z.jsx = _t, z.jsxs = kt;
627
+ z.Fragment = i, z.jsx = _t, z.jsxs = kt;
628
628
  }()), z;
629
629
  }
630
630
  process.env.NODE_ENV === "production" ? ye.exports = bt() : ye.exports = gt();
631
631
  var xe = ye.exports;
632
- const V = xe.Fragment, r = xe.jsx, u = xe.jsxs, Ne = {}, Nt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
- function yt(l, s) {
634
- return !Ne[l] && typeof window.fetch == "function" && (Ne[l] = window.fetch(s + l + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + s + l + ".svg"), Nt)).then((i) => i)), Promise.resolve(Ne[l]);
632
+ const V = xe.Fragment, r = xe.jsx, p = xe.jsxs, Ne = {}, Nt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
+ function yt(n, o) {
634
+ return !Ne[n] && typeof window.fetch == "function" && (Ne[n] = window.fetch(o + n + ".svg").then((s) => s.ok ? s.text() : (console.error("Missing icon: " + o + n + ".svg"), Nt)).then((s) => s)), Promise.resolve(Ne[n]);
635
635
  }
636
- const b = ({ name: l, path: s, className: i = "", ...c }) => {
637
- const f = "https://punkt-cdn.oslo.kommune.no/5.2/icons/", [a, p] = le(null);
636
+ const b = ({ name: n, path: o, className: s = "", ...i }) => {
637
+ const d = "https://punkt-cdn.oslo.kommune.no/5.2/icons/", [c, k] = le(null);
638
638
  return ht(() => {
639
- if (!l)
639
+ if (!n)
640
640
  return;
641
- yt(l, s || f).then((d) => p(d));
642
- }, [l, s, f]), a ? /* @__PURE__ */ r(
641
+ yt(n, o || d).then((u) => k(u));
642
+ }, [n, o, d]), c ? /* @__PURE__ */ r(
643
643
  "span",
644
644
  {
645
- className: `pkt-icon ${i}`,
646
- dangerouslySetInnerHTML: { __html: a },
647
- ...c
645
+ className: `pkt-icon ${s}`,
646
+ dangerouslySetInnerHTML: { __html: c },
647
+ ...i
648
648
  }
649
649
  ) : null;
650
650
  }, Ve = W(
651
651
  ({
652
- children: l,
653
- className: s,
654
- skin: i = "info",
655
- closeAlert: c = !1,
656
- onClose: f,
657
- title: a,
658
- date: p,
659
- ariaLive: h = "polite",
660
- ...d
652
+ children: n,
653
+ className: o,
654
+ skin: s = "info",
655
+ closeAlert: i = !1,
656
+ onClose: d,
657
+ title: c,
658
+ date: k,
659
+ ariaLive: l = "polite",
660
+ ...u
661
661
  }, g) => {
662
- const N = [s, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [w, R] = le(!0), C = () => {
663
- R(!1), f && f();
662
+ const N = [o, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [w, R] = le(!0), C = () => {
663
+ R(!1), d && d();
664
664
  };
665
- return w ? /* @__PURE__ */ u("div", { ...d, className: N, "aria-live": h, ref: g, children: [
665
+ return w ? /* @__PURE__ */ p("div", { ...u, className: N, "aria-live": l, ref: g, children: [
666
666
  /* @__PURE__ */ r(
667
667
  b,
668
668
  {
669
669
  className: "pkt-alert__icon",
670
- name: i === "info" ? "alert-information" : `alert-${i}`
670
+ name: s === "info" ? "alert-information" : `alert-${s}`
671
671
  }
672
672
  ),
673
- c && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
673
+ i && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
674
674
  "button",
675
675
  {
676
676
  type: "button",
@@ -681,87 +681,88 @@ const b = ({ name: l, path: s, className: i = "", ...c }) => {
681
681
  children: /* @__PURE__ */ r(b, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
682
682
  }
683
683
  ) }),
684
- a && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: a }),
685
- /* @__PURE__ */ r("div", { className: "pkt-alert__text", children: l }),
686
- p && /* @__PURE__ */ u("div", { className: "pkt-alert__date", children: [
684
+ c && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: c }),
685
+ /* @__PURE__ */ r("div", { className: "pkt-alert__text", children: n }),
686
+ k && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
687
687
  "Sist oppdatert: ",
688
- p
688
+ k
689
689
  ] })
690
690
  ] }) : null;
691
691
  }
692
692
  ), Ue = W(
693
693
  ({
694
- children: l,
695
- className: s,
696
- iconName: i = "user",
697
- secondIconName: c = "user",
698
- size: f = "medium",
699
- skin: a = "primary",
700
- type: p = "button",
701
- variant: h = "label-only",
702
- ...d
694
+ children: n,
695
+ className: o,
696
+ iconName: s = "user",
697
+ secondIconName: i = "user",
698
+ size: d = "medium",
699
+ skin: c = "primary",
700
+ type: k = "button",
701
+ variant: l = "label-only",
702
+ ...u
703
703
  }, g) => {
704
704
  const N = [
705
- s,
705
+ o,
706
706
  "pkt-btn",
707
- f && `pkt-btn--${f}`,
708
- a && `pkt-btn--${a}`,
709
- h && `pkt-btn--${h}`
707
+ d && `pkt-btn--${d}`,
708
+ c && `pkt-btn--${c}`,
709
+ l && `pkt-btn--${l}`
710
710
  ].filter(Boolean).join(" ");
711
- return /* @__PURE__ */ u("button", { ...d, className: N, type: p, ref: g, children: [
712
- h !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: i }),
713
- /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: l }),
714
- h === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: c })
711
+ return /* @__PURE__ */ p("button", { ...u, className: N, type: k, ref: g, children: [
712
+ l !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: s }),
713
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: n }),
714
+ l === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: i })
715
715
  ] });
716
716
  }
717
717
  );
718
718
  Ue.displayName = "PktButton";
719
- const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
720
- var c, f;
721
- return /* @__PURE__ */ r("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ u("div", { className: "pkt-footer__container", children: [
722
- /* @__PURE__ */ u("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
723
- /* @__PURE__ */ u("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
724
- /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: l.title }),
725
- /* @__PURE__ */ u("ul", { className: "pkt-footer__list", children: [
726
- l.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: l.text }),
727
- (c = l.links) == null ? void 0 : c.map((a, p) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ u(
719
+ const St = ({ columnOne: n, columnTwo: o, socialLinks: s, className: i }) => {
720
+ var c, k;
721
+ const d = [i, "pkt-footer"].filter(Boolean).join(" ");
722
+ return /* @__PURE__ */ r("footer", { className: d, "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
723
+ /* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
724
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
725
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: n.title }),
726
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
727
+ n.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: n.text }),
728
+ (c = n.links) == null ? void 0 : c.map((l, u) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
728
729
  "a",
729
730
  {
730
- className: `pkt-footer__link ${a.external ? "pkt-link--external" : ""}`,
731
- href: a.href,
732
- target: a.openInNewTab ? "_blank" : "_self",
733
- rel: a.openInNewTab ? "noopener noreferrer" : void 0,
731
+ className: `pkt-footer__link ${l.external ? "pkt-link--external" : ""}`,
732
+ href: l.href,
733
+ target: l.openInNewTab ? "_blank" : "_self",
734
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
734
735
  children: [
735
736
  /* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
736
- a.text
737
+ l.text
737
738
  ]
738
739
  }
739
- ) }, `links-${p}`))
740
+ ) }, `links-${u}`))
740
741
  ] })
741
742
  ] }),
742
- /* @__PURE__ */ u("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
743
- /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: s.title }),
744
- /* @__PURE__ */ u("ul", { className: "pkt-footer__list", children: [
745
- s.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: s.text }),
746
- (f = s.links) == null ? void 0 : f.map((a, p) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ u(
743
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
744
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: o.title }),
745
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
746
+ o.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: o.text }),
747
+ (k = o.links) == null ? void 0 : k.map((l, u) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
747
748
  "a",
748
749
  {
749
- className: `pkt-footer__link ${a.external ? "pkt-link--external" : ""}`,
750
- href: a.href,
751
- target: a.openInNewTab ? "_blank" : "_self",
752
- rel: a.openInNewTab ? "noopener noreferrer" : void 0,
750
+ className: `pkt-footer__link ${l.external ? "pkt-link--external" : ""}`,
751
+ href: l.href,
752
+ target: l.openInNewTab ? "_blank" : "_self",
753
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
753
754
  children: [
754
755
  /* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
755
- a.text
756
+ l.text
756
757
  ]
757
758
  }
758
- ) }, `links-${p}`))
759
+ ) }, `links-${u}`))
759
760
  ] })
760
761
  ] }),
761
- /* @__PURE__ */ u("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
762
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
762
763
  /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
763
- /* @__PURE__ */ u("ul", { className: "pkt-footer__list", children: [
764
- /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ u(
764
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
765
+ /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
765
766
  "a",
766
767
  {
767
768
  className: "pkt-footer__link",
@@ -772,125 +773,129 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
772
773
  ]
773
774
  }
774
775
  ) }),
775
- /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ u("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
776
+ /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
776
777
  /* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
777
778
  "Tilgjengelighet"
778
779
  ] }) })
779
780
  ] })
780
781
  ] })
781
782
  ] }),
782
- i && /* @__PURE__ */ u("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
783
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: i.filter((a) => a.language).map((a, p) => /* @__PURE__ */ r(
783
+ s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
784
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((l) => l.language).map((l, u) => /* @__PURE__ */ r(
784
785
  "div",
785
786
  {
786
787
  className: "pkt-footer__social-language",
787
788
  children: /* @__PURE__ */ r(
788
789
  "a",
789
790
  {
790
- href: a.href,
791
- "aria-label": `til ${a.language} versjon av nettsiden`,
792
- target: a.openInNewTab ? "_blank" : "_self",
793
- rel: a.openInNewTab ? "noopener noreferrer" : void 0,
794
- children: a.language
791
+ href: l.href,
792
+ "aria-label": `til ${l.language} versjon av nettsiden`,
793
+ target: l.openInNewTab ? "_blank" : "_self",
794
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
795
+ children: l.language
795
796
  }
796
797
  )
797
798
  },
798
- `sociallinks-language-${p}`
799
+ `sociallinks-language-${u}`
799
800
  )) }),
800
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: i.filter((a) => a.iconName).map((a, p) => /* @__PURE__ */ r(ne.Fragment, { children: /* @__PURE__ */ r(
801
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((l) => l.iconName).map((l, u) => /* @__PURE__ */ r(ne.Fragment, { children: /* @__PURE__ */ r(
801
802
  "a",
802
803
  {
803
- href: a.href,
804
- "aria-label": `til ${a.iconName}`,
804
+ href: l.href,
805
+ "aria-label": `til ${l.iconName}`,
805
806
  className: "pkt-footer__social-icon-link",
806
- target: a.openInNewTab ? "_blank" : "_self",
807
- rel: a.openInNewTab ? "noopener noreferrer" : void 0,
808
- children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name: a.iconName })
807
+ target: l.openInNewTab ? "_blank" : "_self",
808
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
809
+ children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name: l.iconName })
809
810
  }
810
- ) }, `sociallinks-${p}`)) })
811
+ ) }, `sociallinks-${u}`)) })
811
812
  ] })
812
813
  ] }) });
813
814
  }, $t = ({
814
- links: l = []
815
- }) => /* @__PURE__ */ r("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ u("ul", { className: "pkt-footer-simple__list", children: [
816
- l.map((s, i) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u(
817
- "a",
818
- {
819
- className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
820
- href: s.href,
821
- target: s.openInNewTab ? "_blank" : "_self",
822
- rel: s.openInNewTab ? "noopener noreferrer" : void 0,
823
- children: [
824
- /* @__PURE__ */ r(
825
- b,
826
- {
827
- className: "pkt-footer-simple__link-icon",
828
- name: "chevron-right"
829
- }
830
- ),
831
- s.text
832
- ]
833
- }
834
- ) }, i)),
835
- /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
836
- /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
837
- "Personvern og informasjonskapsler"
838
- ] }) }),
839
- /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
840
- /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
841
- "Tilgjengelighet"
842
- ] }) })
843
- ] }) }) }), Ft = ({
844
- className: l,
845
- logoLink: s = "https://www.oslo.kommune.no/",
846
- isLoggedIn: i = !1,
847
- representing: c = "",
848
- canChangeRepresentation: f = !1,
849
- showLogInButton: a = !0,
850
- onLogIn: p,
851
- onLogOut: h,
852
- onChangeRepresentation: d
815
+ links: n = [],
816
+ className: o
853
817
  }) => {
854
- const g = [l, "pkt-header"].filter(Boolean).join(" ");
855
- return /* @__PURE__ */ u("header", { id: "pkt-header", className: g, "aria-label": "Topp", children: [
856
- /* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: s, children: /* @__PURE__ */ r(b, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.2/logos/" }) }) }),
857
- /* @__PURE__ */ u("div", { className: "pkt-header__actions", children: [
858
- i && f && /* @__PURE__ */ u(
818
+ const s = [o, "pkt-footer-simple"].filter(Boolean).join(" ");
819
+ return /* @__PURE__ */ r("footer", { className: s, "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
820
+ n.map((i, d) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
821
+ "a",
822
+ {
823
+ className: `pkt-footer-simple__link ${i.external ? " pkt-link--external" : ""}`,
824
+ href: i.href,
825
+ target: i.openInNewTab ? "_blank" : "_self",
826
+ rel: i.openInNewTab ? "noopener noreferrer" : void 0,
827
+ children: [
828
+ /* @__PURE__ */ r(
829
+ b,
830
+ {
831
+ className: "pkt-footer-simple__link-icon",
832
+ name: "chevron-right"
833
+ }
834
+ ),
835
+ i.text
836
+ ]
837
+ }
838
+ ) }, d)),
839
+ /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
840
+ /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
841
+ "Personvern og informasjonskapsler"
842
+ ] }) }),
843
+ /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
844
+ /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
845
+ "Tilgjengelighet"
846
+ ] }) })
847
+ ] }) }) });
848
+ }, Ft = ({
849
+ className: n,
850
+ logoLink: o = "https://www.oslo.kommune.no/",
851
+ isLoggedIn: s = !1,
852
+ representing: i = "",
853
+ canChangeRepresentation: d = !1,
854
+ showLogInButton: c = !0,
855
+ onLogIn: k,
856
+ onLogOut: l,
857
+ onChangeRepresentation: u
858
+ }) => {
859
+ const g = [n, "pkt-header"].filter(Boolean).join(" ");
860
+ return /* @__PURE__ */ p("header", { id: "pkt-header", className: g, "aria-label": "Topp", children: [
861
+ /* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: o, children: /* @__PURE__ */ r(b, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.2/logos/" }) }) }),
862
+ /* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
863
+ s && d && /* @__PURE__ */ p(
859
864
  "button",
860
865
  {
861
866
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
862
- "aria-label": `Bytt bruker fra ${c}`,
863
- onClick: d,
867
+ "aria-label": `Bytt bruker fra ${i}`,
868
+ onClick: u,
864
869
  children: [
865
870
  /* @__PURE__ */ r(b, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
866
871
  /* @__PURE__ */ r("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
867
872
  /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
868
- /* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: c })
873
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: i })
869
874
  ]
870
875
  }
871
876
  ),
872
- i && !f && /* @__PURE__ */ u("div", { className: "pkt-header__action", children: [
873
- /* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: c }) }),
877
+ s && !d && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
878
+ /* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: i }) }),
874
879
  /* @__PURE__ */ r(b, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
875
880
  ] }),
876
- a && i && /* @__PURE__ */ u(
881
+ c && s && /* @__PURE__ */ p(
877
882
  "button",
878
883
  {
879
884
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
880
885
  "aria-label": "Logg ut",
881
- onClick: h,
886
+ onClick: l,
882
887
  children: [
883
888
  /* @__PURE__ */ r(b, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
884
889
  /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg ut" })
885
890
  ]
886
891
  }
887
892
  ),
888
- a && !i && /* @__PURE__ */ u(
893
+ c && !s && /* @__PURE__ */ p(
889
894
  "button",
890
895
  {
891
896
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
892
897
  "aria-label": "Logg inn",
893
- onClick: p,
898
+ onClick: k,
894
899
  children: [
895
900
  /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: "user" }),
896
901
  /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
@@ -900,38 +905,38 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
900
905
  ] })
901
906
  ] });
902
907
  }, xt = ne.forwardRef(
903
- ({ label: l, id: s, children: i, ...c }, f) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
904
- /* @__PURE__ */ r("label", { htmlFor: s, className: "pkt-form-label", children: l }),
905
- /* @__PURE__ */ r("input", { className: "pkt-form-input", id: s, ...c, ref: f }),
906
- i
908
+ ({ label: n, id: o, children: s, ...i }, d) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
909
+ /* @__PURE__ */ r("label", { htmlFor: o, className: "pkt-form-label", children: n }),
910
+ /* @__PURE__ */ r("input", { className: "pkt-form-input", id: o, ...i, ref: d }),
911
+ s
907
912
  ] })
908
913
  );
909
914
  xt.displayName = "PktInput";
910
915
  const Et = W(
911
916
  ({
912
- children: l,
913
- className: s,
914
- iconName: i = "user",
915
- openInNewTab: c = !1,
916
- skin: f = "normal",
917
- href: a = "#",
918
- external: p = !1,
919
- title: h
920
- }, d) => {
921
- const g = [s, "pkt-linkcard", f && `pkt-linkcard--${f}`].filter(Boolean).join(" ");
922
- return /* @__PURE__ */ u(
917
+ children: n,
918
+ className: o,
919
+ iconName: s = "user",
920
+ openInNewTab: i = !1,
921
+ skin: d = "normal",
922
+ href: c = "#",
923
+ external: k = !1,
924
+ title: l
925
+ }, u) => {
926
+ const g = [o, "pkt-linkcard", d && `pkt-linkcard--${d}`].filter(Boolean).join(" ");
927
+ return /* @__PURE__ */ p(
923
928
  "a",
924
929
  {
925
- href: a,
930
+ href: c,
926
931
  className: `pkt-linkcard pkt-link ${g}`,
927
- target: c ? "_blank" : "_self",
928
- rel: c ? "noopener noreferrer" : void 0,
929
- ref: d,
932
+ target: i ? "_blank" : "_self",
933
+ rel: i ? "noopener noreferrer" : void 0,
934
+ ref: u,
930
935
  children: [
931
- /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: i }),
932
- /* @__PURE__ */ u("div", { className: "pkt-linkcard__content", children: [
933
- /* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${p ? "pkt-link pkt-link--external" : ""}`, children: h }),
934
- /* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: l })
936
+ /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: s }),
937
+ /* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
938
+ /* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${k ? "pkt-link pkt-link--external" : ""}`, children: l }),
939
+ /* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: n })
935
940
  ] })
936
941
  ]
937
942
  }
@@ -940,26 +945,26 @@ const Et = W(
940
945
  );
941
946
  Et.displayName = "PktLinkCard";
942
947
  const It = ({
943
- children: l,
944
- skin: s = "beige",
945
- title: i,
946
- ...c
948
+ children: n,
949
+ skin: o = "beige",
950
+ title: s,
951
+ ...i
947
952
  }) => {
948
- const f = ["pkt-messagebox", s && `pkt-messagebox--${s}`].filter(Boolean).join(" ");
949
- return /* @__PURE__ */ u("div", { ...c, className: f, children: [
950
- /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: i }),
951
- /* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: l })
953
+ const d = ["pkt-messagebox", o && `pkt-messagebox--${o}`].filter(Boolean).join(" ");
954
+ return /* @__PURE__ */ p("div", { ...i, className: d, children: [
955
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: s }),
956
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: n })
952
957
  ] });
953
958
  }, wt = W(
954
- ({ id: l, name: s, label: i, value: c, ...f }, a) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
955
- /* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: l, name: s, value: c, ref: a, ...f }),
956
- /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: l, children: i })
959
+ ({ id: n, name: o, label: s, value: i, ...d }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
960
+ /* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: n, name: o, value: i, ref: c, ...d }),
961
+ /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: n, children: s })
957
962
  ] })
958
963
  );
959
964
  wt.displayName = "PktRadio";
960
- const Dt = ({ label: l, children: s }) => /* @__PURE__ */ u(V, { children: [
961
- /* @__PURE__ */ r("p", { children: l }),
962
- /* @__PURE__ */ r("div", { className: "pkt-form-group", children: s })
965
+ const Dt = ({ label: n, children: o }) => /* @__PURE__ */ p(V, { children: [
966
+ /* @__PURE__ */ r("p", { children: n }),
967
+ /* @__PURE__ */ r("div", { className: "pkt-form-group", children: o })
963
968
  ] });
964
969
  var He = { exports: {} };
965
970
  /*!
@@ -967,62 +972,62 @@ var He = { exports: {} };
967
972
  Licensed under the MIT License (MIT), see
968
973
  http://jedwatson.github.io/classnames
969
974
  */
970
- (function(l) {
975
+ (function(n) {
971
976
  (function() {
972
- var s = {}.hasOwnProperty;
973
- function i() {
974
- for (var c = [], f = 0; f < arguments.length; f++) {
975
- var a = arguments[f];
976
- if (a) {
977
- var p = typeof a;
978
- if (p === "string" || p === "number")
979
- c.push(a);
980
- else if (Array.isArray(a)) {
981
- if (a.length) {
982
- var h = i.apply(null, a);
983
- h && c.push(h);
977
+ var o = {}.hasOwnProperty;
978
+ function s() {
979
+ for (var i = [], d = 0; d < arguments.length; d++) {
980
+ var c = arguments[d];
981
+ if (c) {
982
+ var k = typeof c;
983
+ if (k === "string" || k === "number")
984
+ i.push(c);
985
+ else if (Array.isArray(c)) {
986
+ if (c.length) {
987
+ var l = s.apply(null, c);
988
+ l && i.push(l);
984
989
  }
985
- } else if (p === "object") {
986
- if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]")) {
987
- c.push(a.toString());
990
+ } else if (k === "object") {
991
+ if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
992
+ i.push(c.toString());
988
993
  continue;
989
994
  }
990
- for (var d in a)
991
- s.call(a, d) && a[d] && c.push(d);
995
+ for (var u in c)
996
+ o.call(c, u) && c[u] && i.push(u);
992
997
  }
993
998
  }
994
999
  }
995
- return c.join(" ");
1000
+ return i.join(" ");
996
1001
  }
997
- l.exports ? (i.default = i, l.exports = i) : window.classNames = i;
1002
+ n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
998
1003
  })();
999
1004
  })(He);
1000
1005
  var Rt = He.exports;
1001
- const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: s }) : /* @__PURE__ */ r(V, { children: s }), At = ({
1002
- isResponsive: l,
1003
- modifiers: { info: s = !1, success: i = !1, strong: c = !1, shadow: f = !1 } = {},
1004
- children: a
1005
- }) => /* @__PURE__ */ r(Tt, { isResponsive: l, children: /* @__PURE__ */ r(
1006
+ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: n, children: o }) => n ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: o }) : /* @__PURE__ */ r(V, { children: o }), At = ({
1007
+ isResponsive: n,
1008
+ modifiers: { info: o = !1, success: s = !1, strong: i = !1, shadow: d = !1 } = {},
1009
+ children: c
1010
+ }) => /* @__PURE__ */ r(Tt, { isResponsive: n, children: /* @__PURE__ */ r(
1006
1011
  "table",
1007
1012
  {
1008
1013
  className: Pt("pkt-table", {
1009
- "pkt-table--info": s,
1010
- "pkt-table--success": i,
1011
- "pkt-table--strong": c,
1012
- "pkt-table--shadow": f
1014
+ "pkt-table--info": o,
1015
+ "pkt-table--success": s,
1016
+ "pkt-table--strong": i,
1017
+ "pkt-table--shadow": d
1013
1018
  }),
1014
- children: a
1019
+ children: c
1015
1020
  }
1016
- ) }), Wt = ({ children: l }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: l }), Yt = ({ children: l }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: l }), Ct = W(({
1017
- children: l,
1018
- className: s,
1019
- skin: i = "blue",
1020
- textStyle: c = "normal-text",
1021
- size: f = "medium",
1022
- closeTag: a = !1,
1023
- iconName: p = "",
1024
- type: h = "button",
1025
- ariaLabel: d = "close",
1021
+ ) }), Wt = ({ children: n }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: n }), Yt = ({ children: n }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: n }), Ct = W(({
1022
+ children: n,
1023
+ className: o,
1024
+ skin: s = "blue",
1025
+ textStyle: i = "normal-text",
1026
+ size: d = "medium",
1027
+ closeTag: c = !1,
1028
+ iconName: k = "",
1029
+ type: l = "button",
1030
+ ariaLabel: u = "close",
1026
1031
  onClick: g = () => {
1027
1032
  }
1028
1033
  }, N) => {
@@ -1030,72 +1035,72 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
1030
1035
  R(!0), g(P);
1031
1036
  }, $ = [
1032
1037
  "pkt-tag",
1033
- f && `pkt-tag--${f}`,
1038
+ d && `pkt-tag--${d}`,
1039
+ s && `pkt-tag--${s}`,
1034
1040
  i && `pkt-tag--${i}`,
1035
- c && `pkt-tag--${c}`,
1036
- s
1041
+ o
1037
1042
  ].filter(Boolean).join(" "), S = [
1038
1043
  "pkt-tag",
1039
1044
  "pkt-btn",
1040
1045
  "pkt-btn--tertiary",
1041
- f && `pkt-tag--${f}`,
1046
+ d && `pkt-tag--${d}`,
1047
+ s && `pkt-tag--${s}`,
1042
1048
  i && `pkt-tag--${i}`,
1043
- c && `pkt-tag--${c}`,
1044
- p && a ? "pkt-btn--icons-right-and-left" : null,
1045
- a && !p ? "pkt-btn--icon-right" : null,
1046
- s
1049
+ k && c ? "pkt-btn--icons-right-and-left" : null,
1050
+ c && !k ? "pkt-btn--icon-right" : null,
1051
+ o
1047
1052
  ].filter(Boolean).join(" "), F = !w;
1048
- return a && p ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ u(
1053
+ return c && k ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ p(
1049
1054
  "button",
1050
1055
  {
1051
1056
  className: S,
1052
- type: h,
1053
- "aria-label": d,
1057
+ type: l,
1058
+ "aria-label": u,
1054
1059
  onClick: C,
1055
1060
  ref: N,
1056
1061
  children: [
1057
- /* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: p }),
1058
- l,
1062
+ /* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: k }),
1063
+ n,
1059
1064
  /* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" })
1060
1065
  ]
1061
1066
  }
1062
- ) }) : a ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ u(
1067
+ ) }) : c ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ p(
1063
1068
  "button",
1064
1069
  {
1065
1070
  className: S,
1066
- type: h,
1067
- "aria-label": d,
1071
+ type: l,
1072
+ "aria-label": u,
1068
1073
  onClick: C,
1069
1074
  ref: N,
1070
1075
  children: [
1071
1076
  /* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" }),
1072
- l
1077
+ n
1073
1078
  ]
1074
1079
  }
1075
- ) }) : p ? /* @__PURE__ */ u("span", { className: $, children: [
1076
- /* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: p }),
1077
- l
1078
- ] }) : /* @__PURE__ */ r("span", { className: $, children: l });
1080
+ ) }) : k ? /* @__PURE__ */ p("span", { className: $, children: [
1081
+ /* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: k }),
1082
+ n
1083
+ ] }) : /* @__PURE__ */ r("span", { className: $, children: n });
1079
1084
  });
1080
1085
  Ct.displayName = "PktTag";
1081
1086
  const jt = W(
1082
- ({ id: l, label: s, ...i }, c) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
1083
- /* @__PURE__ */ r("label", { htmlFor: l, className: "pkt-form-label", children: s }),
1084
- /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: l, ref: c, ...i })
1087
+ ({ id: n, label: o, ...s }, i) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
1088
+ /* @__PURE__ */ r("label", { htmlFor: n, className: "pkt-form-label", children: o }),
1089
+ /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: n, ref: i, ...s })
1085
1090
  ] })
1086
1091
  );
1087
1092
  jt.displayName = "PktTextarea";
1088
1093
  const Mt = W(
1089
1094
  ({
1090
- id: l,
1091
- label: s,
1092
- name: i,
1093
- srOnlyLabel: c = !1,
1094
- helptext: f,
1095
- helptextDropdown: a,
1096
- helptextDropdownButton: p,
1097
- optional: h = !1,
1098
- required: d = !1,
1095
+ id: n,
1096
+ label: o,
1097
+ name: s,
1098
+ srOnlyLabel: i = !1,
1099
+ helptext: d,
1100
+ helptextDropdown: c,
1101
+ helptextDropdownButton: k,
1102
+ optional: l = !1,
1103
+ required: u = !1,
1099
1104
  hasError: g = !1,
1100
1105
  errorMessage: N,
1101
1106
  placeholder: w,
@@ -1109,28 +1114,28 @@ const Mt = W(
1109
1114
  inline: se = !1,
1110
1115
  ariaLabelledby: U,
1111
1116
  ariaDescribedby: K,
1112
- className: ie,
1117
+ className: oe,
1113
1118
  ...H
1114
1119
  }, q) => {
1115
- const [Y, oe] = le(!1), ce = () => {
1116
- oe(!Y);
1117
- }, X = () => h ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : d ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", j = h ? "Valgfritt" : d ? "Må fylles ut" : "", Z = [ie, "pkt-textinput", x ? "pkt-textinput--disabled" : "", se ? "pkt-textinput--inline" : "", g ? "pkt-textinput--error" : ""].join(
1120
+ const [Y, ie] = le(!1), ce = () => {
1121
+ ie(!Y);
1122
+ }, X = () => l ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : u ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", j = l ? "Valgfritt" : u ? "Må fylles ut" : "", Z = [oe, "pkt-textinput", x ? "pkt-textinput--disabled" : "", se ? "pkt-textinput--inline" : "", g ? "pkt-textinput--error" : ""].join(
1118
1123
  " "
1119
- ), A = !!a && a !== "";
1120
- return /* @__PURE__ */ u("div", { className: Z, children: [
1121
- /* @__PURE__ */ u(
1124
+ ), A = !!c && c !== "";
1125
+ return /* @__PURE__ */ p("div", { className: Z, children: [
1126
+ /* @__PURE__ */ p(
1122
1127
  A ? "div" : "label",
1123
1128
  {
1124
- htmlFor: l,
1125
- className: `pkt-textinput__label ${c ? "pkt-sr-only" : ""}`,
1129
+ htmlFor: n,
1130
+ className: `pkt-textinput__label ${i ? "pkt-sr-only" : ""}`,
1126
1131
  "aria-describedby": A ? "" : K,
1127
1132
  children: [
1128
- /* @__PURE__ */ u(A ? "h2" : "span", { children: [
1129
- s,
1133
+ /* @__PURE__ */ p(A ? "h2" : "span", { children: [
1134
+ o,
1130
1135
  j !== "" && /* @__PURE__ */ r("span", { className: X(), children: j })
1131
1136
  ] }),
1132
- f && /* @__PURE__ */ r("div", { className: "pkt-textinput__helptext", children: f }),
1133
- A && /* @__PURE__ */ u(V, { children: [
1137
+ d && /* @__PURE__ */ r("div", { className: "pkt-textinput__helptext", children: d }),
1138
+ A && /* @__PURE__ */ p(V, { children: [
1134
1139
  /* @__PURE__ */ r(
1135
1140
  Ue,
1136
1141
  {
@@ -1140,7 +1145,7 @@ const Mt = W(
1140
1145
  iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
1141
1146
  className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
1142
1147
  onClick: ce,
1143
- children: p || /* @__PURE__ */ u(V, { children: [
1148
+ children: k || /* @__PURE__ */ p(V, { children: [
1144
1149
  "Les mer ",
1145
1150
  /* @__PURE__ */ r("span", { className: "pkt-sr-only", children: "om inputfeltet" })
1146
1151
  ] })
@@ -1150,20 +1155,20 @@ const Mt = W(
1150
1155
  "div",
1151
1156
  {
1152
1157
  className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
1153
- children: /* @__PURE__ */ r(Ve, { children: a })
1158
+ children: /* @__PURE__ */ r(Ve, { children: c })
1154
1159
  }
1155
1160
  ),
1156
1161
  /* @__PURE__ */ r(
1157
1162
  "label",
1158
1163
  {
1159
- htmlFor: l,
1164
+ htmlFor: n,
1160
1165
  className: "pkt-textinput__label pkt-sr-only",
1161
1166
  "aria-describedby": K,
1162
- children: s
1167
+ children: o
1163
1168
  }
1164
1169
  )
1165
1170
  ] }),
1166
- F && /* @__PURE__ */ u("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1171
+ F && /* @__PURE__ */ p("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1167
1172
  /* @__PURE__ */ r("div", { className: "pkt-textinput__input-prefix", children: F }),
1168
1173
  /* @__PURE__ */ r(
1169
1174
  "input",
@@ -1171,57 +1176,57 @@ const Mt = W(
1171
1176
  ref: q,
1172
1177
  className: "pkt-textinput__input",
1173
1178
  type: R,
1174
- name: i || l,
1175
- id: l,
1179
+ name: s || n,
1180
+ id: n,
1176
1181
  placeholder: w,
1177
1182
  autoComplete: C,
1178
1183
  value: $,
1179
1184
  disabled: x,
1180
- "aria-required": d,
1185
+ "aria-required": u,
1181
1186
  "aria-invalid": g,
1182
1187
  "aria-labelledby": U,
1183
1188
  ...H
1184
1189
  }
1185
1190
  )
1186
1191
  ] }),
1187
- !F && (S || P) && /* @__PURE__ */ u("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1192
+ !F && (S || P) && /* @__PURE__ */ p("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1188
1193
  /* @__PURE__ */ r(
1189
1194
  "input",
1190
1195
  {
1191
1196
  ref: q,
1192
1197
  className: "pkt-textinput__input",
1193
1198
  type: R,
1194
- name: i || l,
1195
- id: l,
1199
+ name: s || n,
1200
+ id: n,
1196
1201
  placeholder: w,
1197
1202
  autoComplete: C,
1198
1203
  value: $,
1199
1204
  disabled: x,
1200
- "aria-required": d,
1205
+ "aria-required": u,
1201
1206
  "aria-invalid": g,
1202
1207
  "aria-labelledby": U,
1203
1208
  ...H
1204
1209
  }
1205
1210
  ),
1206
- S && /* @__PURE__ */ u("p", { className: "pkt-textinput__input-suffix", children: [
1211
+ S && /* @__PURE__ */ p("p", { className: "pkt-textinput__input-suffix", children: [
1207
1212
  S,
1208
1213
  P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-suffix-icon", name: P })
1209
1214
  ] }),
1210
1215
  !S && P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-icon", name: P })
1211
1216
  ] }),
1212
- !F && !S && !P && !a && /* @__PURE__ */ r(
1217
+ !F && !S && !P && !c && /* @__PURE__ */ r(
1213
1218
  "input",
1214
1219
  {
1215
1220
  ref: q,
1216
1221
  className: "pkt-textinput__input",
1217
1222
  type: R,
1218
- name: i || l,
1219
- id: l,
1223
+ name: s || n,
1224
+ id: n,
1220
1225
  placeholder: w,
1221
1226
  autoComplete: C,
1222
1227
  value: $,
1223
1228
  disabled: x,
1224
- "aria-required": d,
1229
+ "aria-required": u,
1225
1230
  "aria-invalid": g,
1226
1231
  "aria-labelledby": U,
1227
1232
  ...H