@oslokommune/punkt-react 5.1.4 → 5.1.6

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [5.1.6](https://github.com/oslokommune/punkt/compare/5.1.5...5.1.6) (2023-06-22)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * [962](https://github.com/oslokommune/punkt/issues/962) Fiks icon cache.
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [5.1.0](https://github.com/oslokommune/punkt/compare/5.0.11...5.1.0) (2023-06-12)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
@@ -1,5 +1,5 @@
1
- import z, { useState as se, useEffect as _t, forwardRef as I } from "react";
2
- function vt(o) {
1
+ import z, { useState as se, useEffect as ht, forwardRef as I } from "react";
2
+ function _t(o) {
3
3
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
4
4
  }
5
5
  var le = { exports: {} }, M = {};
@@ -13,11 +13,11 @@ var le = { exports: {} }, M = {};
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  var $e;
16
- function kt() {
16
+ function vt() {
17
17
  if ($e)
18
18
  return M;
19
19
  $e = 1;
20
- var o = z, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, u = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
20
+ var o = z, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, u = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
21
21
  function m(k, h, E) {
22
22
  var y, x = {}, P = null, j = null;
23
23
  E !== void 0 && (P = "" + E), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (j = h.ref);
@@ -26,9 +26,9 @@ function kt() {
26
26
  if (k && k.defaultProps)
27
27
  for (y in h = k.defaultProps, h)
28
28
  x[y] === void 0 && (x[y] = h[y]);
29
- return { $$typeof: s, type: k, key: P, ref: j, props: x, _owner: u.current };
29
+ return { $$typeof: l, type: k, key: P, ref: j, props: x, _owner: u.current };
30
30
  }
31
- return M.Fragment = l, M.jsx = m, M.jsxs = m, M;
31
+ return M.Fragment = s, M.jsx = m, M.jsxs = m, M;
32
32
  }
33
33
  var B = {};
34
34
  /**
@@ -41,9 +41,9 @@ var B = {};
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
43
  var Fe;
44
- function bt() {
44
+ function kt() {
45
45
  return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
46
- var o = z, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), k = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, L = "@@iterator";
46
+ var o = z, l = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), k = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, L = "@@iterator";
47
47
  function K(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
@@ -55,10 +55,10 @@ function bt() {
55
55
  {
56
56
  for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
57
57
  a[i - 1] = arguments[i];
58
- Ae("error", e, a);
58
+ Ie("error", e, a);
59
59
  }
60
60
  }
61
- function Ae(e, t, a) {
61
+ function Ie(e, t, a) {
62
62
  {
63
63
  var i = $.ReactDebugCurrentFrame, _ = i.getStackAddendum();
64
64
  _ !== "" && (t += "%s", a = a.concat([_]));
@@ -68,16 +68,16 @@ function bt() {
68
68
  v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
69
69
  }
70
70
  }
71
- var We = !1, Ye = !1, Me = !1, Be = !1, Le = !1, ce;
71
+ var Ae = !1, We = !1, Ye = !1, Me = !1, Be = !1, ce;
72
72
  ce = Symbol.for("react.module.reference");
73
- function Ve(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Le || e === u || e === E || e === y || Be || e === j || We || Ye || Me || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === x || e.$$typeof === m || e.$$typeof === k || e.$$typeof === h || // This needs to include all possible module reference object
73
+ function Le(e) {
74
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Be || e === u || e === E || e === y || Me || e === j || Ae || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === x || e.$$typeof === m || e.$$typeof === k || e.$$typeof === h || // 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 === ce || e.getModuleId !== void 0));
79
79
  }
80
- function Ue(e, t, a) {
80
+ function Ve(e, t, a) {
81
81
  var i = e.displayName;
82
82
  if (i)
83
83
  return i;
@@ -97,7 +97,7 @@ function bt() {
97
97
  switch (e) {
98
98
  case c:
99
99
  return "Fragment";
100
- case l:
100
+ case s:
101
101
  return "Portal";
102
102
  case n:
103
103
  return "Profiler";
@@ -117,7 +117,7 @@ function bt() {
117
117
  var a = e;
118
118
  return ue(a._context) + ".Provider";
119
119
  case h:
120
- return Ue(e, e.render, "ForwardRef");
120
+ return Ve(e, e.render, "ForwardRef");
121
121
  case x:
122
122
  var i = e.displayName || null;
123
123
  return i !== null ? i : C(e.type) || "Memo";
@@ -136,7 +136,7 @@ function bt() {
136
136
  function ke() {
137
137
  }
138
138
  ke.__reactDisabledLog = !0;
139
- function qe() {
139
+ function Ue() {
140
140
  {
141
141
  if (W === 0) {
142
142
  fe = console.log, pe = console.info, de = console.warn, me = console.error, he = console.group, _e = console.groupCollapsed, ve = console.groupEnd;
@@ -159,7 +159,7 @@ function bt() {
159
159
  W++;
160
160
  }
161
161
  }
162
- function He() {
162
+ function qe() {
163
163
  {
164
164
  if (W--, W === 0) {
165
165
  var e = {
@@ -210,8 +210,8 @@ function bt() {
210
210
  }
211
211
  var Q = !1, U;
212
212
  {
213
- var Ge = typeof WeakMap == "function" ? WeakMap : Map;
214
- U = new Ge();
213
+ var He = typeof WeakMap == "function" ? WeakMap : Map;
214
+ U = new He();
215
215
  }
216
216
  function be(e, t) {
217
217
  if (!e || Q)
@@ -226,7 +226,7 @@ function bt() {
226
226
  var _ = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var v;
229
- v = X.current, X.current = null, qe();
229
+ v = X.current, X.current = null, Ue();
230
230
  try {
231
231
  if (t) {
232
232
  var d = function() {
@@ -279,15 +279,15 @@ function bt() {
279
279
  }
280
280
  }
281
281
  } finally {
282
- Q = !1, X.current = v, He(), Error.prepareStackTrace = _;
282
+ Q = !1, X.current = v, qe(), Error.prepareStackTrace = _;
283
283
  }
284
284
  var D = e ? e.displayName || e.name : "", Oe = D ? V(D) : "";
285
285
  return typeof e == "function" && U.set(e, Oe), Oe;
286
286
  }
287
- function Je(e, t, a) {
287
+ function Ge(e, t, a) {
288
288
  return be(e, !1);
289
289
  }
290
- function ze(e) {
290
+ function Je(e) {
291
291
  var t = e.prototype;
292
292
  return !!(t && t.isReactComponent);
293
293
  }
@@ -295,7 +295,7 @@ function bt() {
295
295
  if (e == null)
296
296
  return "";
297
297
  if (typeof e == "function")
298
- return be(e, ze(e));
298
+ return be(e, Je(e));
299
299
  if (typeof e == "string")
300
300
  return V(e);
301
301
  switch (e) {
@@ -307,7 +307,7 @@ function bt() {
307
307
  if (typeof e == "object")
308
308
  switch (e.$$typeof) {
309
309
  case h:
310
- return Je(e.render);
310
+ return Ge(e.render);
311
311
  case x:
312
312
  return q(e.type, t, a);
313
313
  case P: {
@@ -328,7 +328,7 @@ function bt() {
328
328
  } else
329
329
  Ne.setExtraStackFrame(null);
330
330
  }
331
- function Ke(e, t, a, i, _) {
331
+ function ze(e, t, a, i, _) {
332
332
  {
333
333
  var v = Function.call.bind(H);
334
334
  for (var d in e)
@@ -347,17 +347,17 @@ function bt() {
347
347
  }
348
348
  }
349
349
  }
350
- var Xe = Array.isArray;
350
+ var Ke = Array.isArray;
351
351
  function ee(e) {
352
- return Xe(e);
352
+ return Ke(e);
353
353
  }
354
- function Ze(e) {
354
+ function Xe(e) {
355
355
  {
356
356
  var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
357
  return a;
358
358
  }
359
359
  }
360
- function Qe(e) {
360
+ function Ze(e) {
361
361
  try {
362
362
  return ye(e), !1;
363
363
  } catch {
@@ -368,17 +368,17 @@ function bt() {
368
368
  return "" + e;
369
369
  }
370
370
  function Ee(e) {
371
- if (Qe(e))
372
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), ye(e);
371
+ if (Ze(e))
372
+ return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xe(e)), ye(e);
373
373
  }
374
- var Y = $.ReactCurrentOwner, et = {
374
+ var Y = $.ReactCurrentOwner, Qe = {
375
375
  key: !0,
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
379
  }, Re, we, te;
380
380
  te = {};
381
- function tt(e) {
381
+ function et(e) {
382
382
  if (H.call(e, "ref")) {
383
383
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
384
384
  if (t && t.isReactWarning)
@@ -386,7 +386,7 @@ function bt() {
386
386
  }
387
387
  return e.ref !== void 0;
388
388
  }
389
- function rt(e) {
389
+ function tt(e) {
390
390
  if (H.call(e, "key")) {
391
391
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
392
392
  if (t && t.isReactWarning)
@@ -394,13 +394,13 @@ function bt() {
394
394
  }
395
395
  return e.key !== void 0;
396
396
  }
397
- function at(e, t) {
397
+ function rt(e, t) {
398
398
  if (typeof e.ref == "string" && Y.current && t && Y.current.stateNode !== t) {
399
399
  var a = C(Y.current.type);
400
400
  te[a] || (R('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', C(Y.current.type), e.ref), te[a] = !0);
401
401
  }
402
402
  }
403
- function nt(e, t) {
403
+ function at(e, t) {
404
404
  {
405
405
  var a = function() {
406
406
  Re || (Re = !0, R("%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));
@@ -411,7 +411,7 @@ function bt() {
411
411
  });
412
412
  }
413
413
  }
414
- function ot(e, t) {
414
+ function nt(e, t) {
415
415
  {
416
416
  var a = function() {
417
417
  we || (we = !0, R("%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));
@@ -422,10 +422,10 @@ function bt() {
422
422
  });
423
423
  }
424
424
  }
425
- var lt = function(e, t, a, i, _, v, d) {
425
+ var ot = function(e, t, a, i, _, v, d) {
426
426
  var f = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: s,
428
+ $$typeof: l,
429
429
  // Built-in properties that belong on the element
430
430
  type: e,
431
431
  key: t,
@@ -451,12 +451,12 @@ function bt() {
451
451
  value: _
452
452
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
453
453
  };
454
- function st(e, t, a, i, _) {
454
+ function lt(e, t, a, i, _) {
455
455
  {
456
456
  var v, d = {}, f = null, w = null;
457
- a !== void 0 && (Ee(a), f = "" + a), rt(t) && (Ee(t.key), f = "" + t.key), tt(t) && (w = t.ref, at(t, _));
457
+ a !== void 0 && (Ee(a), f = "" + a), tt(t) && (Ee(t.key), f = "" + t.key), et(t) && (w = t.ref, rt(t, _));
458
458
  for (v in t)
459
- H.call(t, v) && !et.hasOwnProperty(v) && (d[v] = t[v]);
459
+ H.call(t, v) && !Qe.hasOwnProperty(v) && (d[v] = t[v]);
460
460
  if (e && e.defaultProps) {
461
461
  var g = e.defaultProps;
462
462
  for (v in g)
@@ -464,9 +464,9 @@ function bt() {
464
464
  }
465
465
  if (f || w) {
466
466
  var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- f && nt(d, N), w && ot(d, N);
467
+ f && at(d, N), w && nt(d, N);
468
468
  }
469
- return lt(e, f, w, _, i, Y.current, d);
469
+ return ot(e, f, w, _, i, Y.current, d);
470
470
  }
471
471
  }
472
472
  var re = $.ReactCurrentOwner, xe = $.ReactDebugCurrentFrame;
@@ -480,7 +480,7 @@ function bt() {
480
480
  var ae;
481
481
  ae = !1;
482
482
  function ne(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === s;
483
+ return typeof e == "object" && e !== null && e.$$typeof === l;
484
484
  }
485
485
  function Pe() {
486
486
  {
@@ -494,7 +494,7 @@ Check the render method of \`` + e + "`.";
494
494
  return "";
495
495
  }
496
496
  }
497
- function it(e) {
497
+ function st(e) {
498
498
  {
499
499
  if (e !== void 0) {
500
500
  var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
@@ -506,7 +506,7 @@ Check your code at ` + t + ":" + a + ".";
506
506
  }
507
507
  }
508
508
  var Te = {};
509
- function ct(e) {
509
+ function it(e) {
510
510
  {
511
511
  var t = Pe();
512
512
  if (!t) {
@@ -523,7 +523,7 @@ Check the top-level render call using <` + a + ">.");
523
523
  if (!e._store || e._store.validated || e.key != null)
524
524
  return;
525
525
  e._store.validated = !0;
526
- var a = ct(t);
526
+ var a = it(t);
527
527
  if (Te[a])
528
528
  return;
529
529
  Te[a] = !0;
@@ -550,7 +550,7 @@ Check the top-level render call using <` + a + ">.");
550
550
  }
551
551
  }
552
552
  }
553
- function ut(e) {
553
+ function ct(e) {
554
554
  {
555
555
  var t = e.type;
556
556
  if (t == null || typeof t == "string")
@@ -566,7 +566,7 @@ Check the top-level render call using <` + a + ">.");
566
566
  return;
567
567
  if (a) {
568
568
  var i = C(t);
569
- Ke(a, e.props, "prop", i, e);
569
+ ze(a, e.props, "prop", i, e);
570
570
  } else if (t.PropTypes !== void 0 && !ae) {
571
571
  ae = !0;
572
572
  var _ = C(t);
@@ -575,7 +575,7 @@ Check the top-level render call using <` + a + ">.");
575
575
  typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
576
  }
577
577
  }
578
- function ft(e) {
578
+ function ut(e) {
579
579
  {
580
580
  for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
581
581
  var i = t[a];
@@ -589,16 +589,16 @@ Check the top-level render call using <` + a + ">.");
589
589
  }
590
590
  function Se(e, t, a, i, _, v) {
591
591
  {
592
- var d = Ve(e);
592
+ var d = Le(e);
593
593
  if (!d) {
594
594
  var f = "";
595
595
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " 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 w = it(_);
596
+ var w = st(_);
597
597
  w ? f += w : f += Pe();
598
598
  var g;
599
- e === null ? g = "null" : ee(e) ? g = "array" : e !== void 0 && e.$$typeof === s ? (g = "<" + (C(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, f);
599
+ e === null ? g = "null" : ee(e) ? g = "array" : e !== void 0 && e.$$typeof === l ? (g = "<" + (C(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, f);
600
600
  }
601
- var N = st(e, t, a, _, v);
601
+ var N = lt(e, t, a, _, v);
602
602
  if (N == null)
603
603
  return N;
604
604
  if (d) {
@@ -614,35 +614,35 @@ Check the top-level render call using <` + a + ">.");
614
614
  else
615
615
  Ce(T, e);
616
616
  }
617
- return e === c ? ft(N) : ut(N), N;
617
+ return e === c ? ut(N) : ct(N), N;
618
618
  }
619
619
  }
620
- function pt(e, t, a) {
620
+ function ft(e, t, a) {
621
621
  return Se(e, t, a, !0);
622
622
  }
623
- function dt(e, t, a) {
623
+ function pt(e, t, a) {
624
624
  return Se(e, t, a, !1);
625
625
  }
626
- var mt = dt, ht = pt;
627
- B.Fragment = c, B.jsx = mt, B.jsxs = ht;
626
+ var dt = pt, mt = ft;
627
+ B.Fragment = c, B.jsx = dt, B.jsxs = mt;
628
628
  }()), B;
629
629
  }
630
- process.env.NODE_ENV === "production" ? le.exports = kt() : le.exports = bt();
630
+ process.env.NODE_ENV === "production" ? le.exports = vt() : le.exports = kt();
631
631
  var ie = le.exports;
632
- const J = ie.Fragment, r = ie.jsx, p = ie.jsxs, oe = {}, De = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
- function gt(o, s) {
634
- return !oe[o] && typeof fetch == "function" ? fetch(s + o + ".svg").then((l) => l.ok ? l.text() : (console.error("Missing icon: " + s + o + ".svg"), De)).then((l) => (l !== De && (oe[o] = l), l)) : Promise.resolve(oe[o]);
632
+ const J = ie.Fragment, r = ie.jsx, p = ie.jsxs, oe = {}, bt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
+ function gt(o, l) {
634
+ return !oe[o] && typeof window.fetch == "function" && (oe[o] = window.fetch(l + o + ".svg").then((s) => s.ok ? s.text() : (console.error("Missing icon: " + l + o + ".svg"), bt)).then((s) => s)), Promise.resolve(oe[o]);
635
635
  }
636
- const b = ({ name: o, path: s, className: l = "", ...c }) => {
636
+ const b = ({ name: o, path: l, className: s = "", ...c }) => {
637
637
  const u = "https://punkt-cdn.oslo.kommune.no/5.1/icons/", [n, m] = se(null);
638
- return _t(() => {
638
+ return ht(() => {
639
639
  if (!o)
640
640
  return;
641
- gt(o, s || u).then((h) => m(h));
642
- }, [o, s, u]), n ? /* @__PURE__ */ r(
641
+ gt(o, l || u).then((h) => m(h));
642
+ }, [o, l, u]), n ? /* @__PURE__ */ r(
643
643
  "span",
644
644
  {
645
- className: `pkt-icon ${l}`,
645
+ className: `pkt-icon ${s}`,
646
646
  dangerouslySetInnerHTML: { __html: n },
647
647
  ...c
648
648
  }
@@ -650,8 +650,8 @@ const b = ({ name: o, path: s, className: l = "", ...c }) => {
650
650
  }, St = I(
651
651
  ({
652
652
  children: o,
653
- className: s,
654
- skin: l = "info",
653
+ className: l,
654
+ skin: s = "info",
655
655
  closeAlert: c = !1,
656
656
  onClose: u,
657
657
  title: n,
@@ -659,7 +659,7 @@ const b = ({ name: o, path: s, className: l = "", ...c }) => {
659
659
  ariaLive: k = "polite",
660
660
  ...h
661
661
  }, E) => {
662
- const y = [s, "pkt-alert", l && `pkt-alert--${l}`].filter(Boolean).join(" "), [x, P] = se(!0), j = () => {
662
+ const y = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [x, P] = se(!0), j = () => {
663
663
  P(!1), u && u();
664
664
  };
665
665
  return x ? /* @__PURE__ */ p("div", { ...h, className: y, "aria-live": k, ref: E, children: [
@@ -667,7 +667,7 @@ const b = ({ name: o, path: s, className: l = "", ...c }) => {
667
667
  b,
668
668
  {
669
669
  className: "pkt-alert__icon",
670
- name: l === "info" ? "alert-information" : `alert-${l}`
670
+ name: s === "info" ? "alert-information" : `alert-${s}`
671
671
  }
672
672
  ),
673
673
  c && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
@@ -692,8 +692,8 @@ const b = ({ name: o, path: s, className: l = "", ...c }) => {
692
692
  ), Nt = I(
693
693
  ({
694
694
  children: o,
695
- className: s,
696
- iconName: l = "user",
695
+ className: l,
696
+ iconName: s = "user",
697
697
  secondIconName: c = "user",
698
698
  size: u = "medium",
699
699
  skin: n = "primary",
@@ -702,21 +702,21 @@ const b = ({ name: o, path: s, className: l = "", ...c }) => {
702
702
  ...h
703
703
  }, E) => {
704
704
  const y = [
705
- s,
705
+ l,
706
706
  "pkt-btn",
707
707
  u && `pkt-btn--${u}`,
708
708
  n && `pkt-btn--${n}`,
709
709
  k && `pkt-btn--${k}`
710
710
  ].filter(Boolean).join(" ");
711
711
  return /* @__PURE__ */ p("button", { ...h, className: y, type: m, ref: E, children: [
712
- k !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: l }),
712
+ k !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: s }),
713
713
  /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: o }),
714
714
  k === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: c })
715
715
  ] });
716
716
  }
717
717
  );
718
718
  Nt.displayName = "PktButton";
719
- const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
719
+ const Ot = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
720
720
  var c, u;
721
721
  return /* @__PURE__ */ r("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
722
722
  /* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -740,10 +740,10 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
740
740
  ] })
741
741
  ] }),
742
742
  /* @__PURE__ */ p("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 }),
743
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: l.title }),
744
744
  /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
745
- s.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: s.text }),
746
- (u = s.links) == null ? void 0 : u.map((n, m) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
745
+ l.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: l.text }),
746
+ (u = l.links) == null ? void 0 : u.map((n, m) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
747
747
  "a",
748
748
  {
749
749
  className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
@@ -779,8 +779,8 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
779
779
  ] })
780
780
  ] })
781
781
  ] }),
782
- l && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
783
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: l.filter((n) => n.language).map((n, m) => /* @__PURE__ */ r(
782
+ s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
783
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((n) => n.language).map((n, m) => /* @__PURE__ */ r(
784
784
  "div",
785
785
  {
786
786
  className: "pkt-footer__social-language",
@@ -797,7 +797,7 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
797
797
  },
798
798
  `sociallinks-language-${m}`
799
799
  )) }),
800
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: l.filter((n) => n.iconName).map((n, m) => /* @__PURE__ */ r(z.Fragment, { children: /* @__PURE__ */ r(
800
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((n) => n.iconName).map((n, m) => /* @__PURE__ */ r(z.Fragment, { children: /* @__PURE__ */ r(
801
801
  "a",
802
802
  {
803
803
  href: n.href,
@@ -813,13 +813,13 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
813
813
  }, $t = ({
814
814
  links: o = []
815
815
  }) => /* @__PURE__ */ r("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
816
- o.map((s, l) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
816
+ o.map((l, s) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
817
817
  "a",
818
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,
819
+ className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
820
+ href: l.href,
821
+ target: l.openInNewTab ? "_blank" : "_self",
822
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
823
823
  children: [
824
824
  /* @__PURE__ */ r(
825
825
  b,
@@ -828,10 +828,10 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
828
828
  name: "chevron-right"
829
829
  }
830
830
  ),
831
- s.text
831
+ l.text
832
832
  ]
833
833
  }
834
- ) }, l)),
834
+ ) }, s)),
835
835
  /* @__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: [
836
836
  /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
837
837
  "Personvern og informasjonskapsler"
@@ -842,8 +842,8 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
842
842
  ] }) })
843
843
  ] }) }) }), Ft = ({
844
844
  className: o,
845
- logoLink: s = "https://www.oslo.kommune.no/",
846
- isLoggedIn: l = !1,
845
+ logoLink: l = "https://www.oslo.kommune.no/",
846
+ isLoggedIn: s = !1,
847
847
  representing: c = "",
848
848
  canChangeRepresentation: u = !1,
849
849
  showLogInButton: n = !0,
@@ -853,9 +853,9 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
853
853
  }) => {
854
854
  const E = [o, "pkt-header"].filter(Boolean).join(" ");
855
855
  return /* @__PURE__ */ p("header", { id: "pkt-header", className: E, "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.1/logos/" }) }) }),
856
+ /* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: l, children: /* @__PURE__ */ r(b, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.1/logos/" }) }) }),
857
857
  /* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
858
- l && u && /* @__PURE__ */ p(
858
+ s && u && /* @__PURE__ */ p(
859
859
  "button",
860
860
  {
861
861
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
@@ -869,11 +869,11 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
869
869
  ]
870
870
  }
871
871
  ),
872
- l && !u && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
872
+ s && !u && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
873
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 }) }),
874
874
  /* @__PURE__ */ r(b, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
875
875
  ] }),
876
- n && l && /* @__PURE__ */ p(
876
+ n && s && /* @__PURE__ */ p(
877
877
  "button",
878
878
  {
879
879
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
@@ -885,7 +885,7 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
885
885
  ]
886
886
  }
887
887
  ),
888
- n && !l && /* @__PURE__ */ p(
888
+ n && !s && /* @__PURE__ */ p(
889
889
  "button",
890
890
  {
891
891
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
@@ -900,25 +900,25 @@ const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
900
900
  ] })
901
901
  ] });
902
902
  }, yt = z.forwardRef(
903
- ({ label: o, id: s, children: l, ...c }, u) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
904
- /* @__PURE__ */ r("label", { htmlFor: s, className: "pkt-form-label", children: o }),
905
- /* @__PURE__ */ r("input", { className: "pkt-form-input", id: s, ...c, ref: u }),
906
- l
903
+ ({ label: o, id: l, children: s, ...c }, u) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
904
+ /* @__PURE__ */ r("label", { htmlFor: l, className: "pkt-form-label", children: o }),
905
+ /* @__PURE__ */ r("input", { className: "pkt-form-input", id: l, ...c, ref: u }),
906
+ s
907
907
  ] })
908
908
  );
909
909
  yt.displayName = "PktInput";
910
910
  const Et = I(
911
911
  ({
912
912
  children: o,
913
- className: s,
914
- iconName: l = "user",
913
+ className: l,
914
+ iconName: s = "user",
915
915
  openInNewTab: c = !1,
916
916
  skin: u = "normal",
917
917
  href: n = "#",
918
918
  external: m = !1,
919
919
  title: k
920
920
  }, h) => {
921
- const E = [s, "pkt-linkcard", u && `pkt-linkcard--${u}`].filter(Boolean).join(" ");
921
+ const E = [l, "pkt-linkcard", u && `pkt-linkcard--${u}`].filter(Boolean).join(" ");
922
922
  return /* @__PURE__ */ p(
923
923
  "a",
924
924
  {
@@ -928,7 +928,7 @@ const Et = I(
928
928
  rel: c ? "noopener noreferrer" : void 0,
929
929
  ref: h,
930
930
  children: [
931
- /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: l }),
931
+ /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: s }),
932
932
  /* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
933
933
  /* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${m ? "pkt-link pkt-link--external" : ""}`, children: k }),
934
934
  /* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: o })
@@ -941,27 +941,27 @@ const Et = I(
941
941
  Et.displayName = "PktLinkCard";
942
942
  const Dt = ({
943
943
  children: o,
944
- skin: s = "beige",
945
- title: l,
944
+ skin: l = "beige",
945
+ title: s,
946
946
  ...c
947
947
  }) => {
948
- const u = ["pkt-messagebox", s && `pkt-messagebox--${s}`].filter(Boolean).join(" ");
948
+ const u = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
949
949
  return /* @__PURE__ */ p("div", { ...c, className: u, children: [
950
- /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: l }),
950
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: s }),
951
951
  /* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: o })
952
952
  ] });
953
953
  }, Rt = I(
954
- ({ id: o, name: s, label: l, value: c, ...u }, n) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
955
- /* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: o, name: s, value: c, ref: n, ...u }),
956
- /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: o, children: l })
954
+ ({ id: o, name: l, label: s, value: c, ...u }, n) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
955
+ /* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: o, name: l, value: c, ref: n, ...u }),
956
+ /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: o, children: s })
957
957
  ] })
958
958
  );
959
959
  Rt.displayName = "PktRadio";
960
- const It = ({ label: o, children: s }) => /* @__PURE__ */ p(J, { children: [
960
+ const It = ({ label: o, children: l }) => /* @__PURE__ */ p(J, { children: [
961
961
  /* @__PURE__ */ r("p", { children: o }),
962
- /* @__PURE__ */ r("div", { className: "pkt-form-group", children: s })
962
+ /* @__PURE__ */ r("div", { className: "pkt-form-group", children: l })
963
963
  ] });
964
- var Ie = { exports: {} };
964
+ var De = { exports: {} };
965
965
  /*!
966
966
  Copyright (c) 2018 Jed Watson.
967
967
  Licensed under the MIT License (MIT), see
@@ -969,8 +969,8 @@ var Ie = { exports: {} };
969
969
  */
970
970
  (function(o) {
971
971
  (function() {
972
- var s = {}.hasOwnProperty;
973
- function l() {
972
+ var l = {}.hasOwnProperty;
973
+ function s() {
974
974
  for (var c = [], u = 0; u < arguments.length; u++) {
975
975
  var n = arguments[u];
976
976
  if (n) {
@@ -979,7 +979,7 @@ var Ie = { exports: {} };
979
979
  c.push(n);
980
980
  else if (Array.isArray(n)) {
981
981
  if (n.length) {
982
- var k = l.apply(null, n);
982
+ var k = s.apply(null, n);
983
983
  k && c.push(k);
984
984
  }
985
985
  } else if (m === "object") {
@@ -988,26 +988,26 @@ var Ie = { exports: {} };
988
988
  continue;
989
989
  }
990
990
  for (var h in n)
991
- s.call(n, h) && n[h] && c.push(h);
991
+ l.call(n, h) && n[h] && c.push(h);
992
992
  }
993
993
  }
994
994
  }
995
995
  return c.join(" ");
996
996
  }
997
- o.exports ? (l.default = l, o.exports = l) : window.classNames = l;
997
+ o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
998
998
  })();
999
- })(Ie);
1000
- var wt = Ie.exports;
1001
- const xt = /* @__PURE__ */ vt(wt), Pt = ({ isResponsive: o, children: s }) => o ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: s }) : /* @__PURE__ */ r(J, { children: s }), At = ({
999
+ })(De);
1000
+ var wt = De.exports;
1001
+ const xt = /* @__PURE__ */ _t(wt), Pt = ({ isResponsive: o, children: l }) => o ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ r(J, { children: l }), At = ({
1002
1002
  isResponsive: o,
1003
- modifiers: { info: s = !1, success: l = !1, strong: c = !1, shadow: u = !1 } = {},
1003
+ modifiers: { info: l = !1, success: s = !1, strong: c = !1, shadow: u = !1 } = {},
1004
1004
  children: n
1005
1005
  }) => /* @__PURE__ */ r(Pt, { isResponsive: o, children: /* @__PURE__ */ r(
1006
1006
  "table",
1007
1007
  {
1008
1008
  className: xt("pkt-table", {
1009
- "pkt-table--info": s,
1010
- "pkt-table--success": l,
1009
+ "pkt-table--info": l,
1010
+ "pkt-table--success": s,
1011
1011
  "pkt-table--strong": c,
1012
1012
  "pkt-table--shadow": u
1013
1013
  }),
@@ -1015,8 +1015,8 @@ const xt = /* @__PURE__ */ vt(wt), Pt = ({ isResponsive: o, children: s }) => o
1015
1015
  }
1016
1016
  ) }), Wt = ({ children: o }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: o }), Yt = ({ children: o }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: o }), Tt = I(({
1017
1017
  children: o,
1018
- className: s,
1019
- skin: l = "blue",
1018
+ className: l,
1019
+ skin: s = "blue",
1020
1020
  size: c = "medium",
1021
1021
  closeTag: u = !1,
1022
1022
  iconName: n = "",
@@ -1030,17 +1030,17 @@ const xt = /* @__PURE__ */ vt(wt), Pt = ({ isResponsive: o, children: s }) => o
1030
1030
  }, j = [
1031
1031
  "pkt-tag",
1032
1032
  c && `pkt-tag--${c}`,
1033
- l && `pkt-tag--${l}`,
1034
- s
1033
+ s && `pkt-tag--${s}`,
1034
+ l
1035
1035
  ].filter(Boolean).join(" "), A = [
1036
1036
  "pkt-tag",
1037
1037
  "pkt-btn",
1038
1038
  "pkt-btn--tertiary",
1039
1039
  c && `pkt-tag--${c}`,
1040
- l && `pkt-tag--${l}`,
1040
+ s && `pkt-tag--${s}`,
1041
1041
  n && u ? "pkt-btn--icons-right-and-left" : null,
1042
1042
  u && !n ? "pkt-btn--icon-right" : null,
1043
- s
1043
+ l
1044
1044
  ].filter(Boolean).join(" "), L = !y;
1045
1045
  return u && n ? /* @__PURE__ */ r(J, { children: L && /* @__PURE__ */ p(
1046
1046
  "button",
@@ -1076,9 +1076,9 @@ const xt = /* @__PURE__ */ vt(wt), Pt = ({ isResponsive: o, children: s }) => o
1076
1076
  });
1077
1077
  Tt.displayName = "PktTag";
1078
1078
  const jt = I(
1079
- ({ id: o, label: s, ...l }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
1080
- /* @__PURE__ */ r("label", { htmlFor: o, className: "pkt-form-label", children: s }),
1081
- /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: o, ref: c, ...l })
1079
+ ({ id: o, label: l, ...s }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
1080
+ /* @__PURE__ */ r("label", { htmlFor: o, className: "pkt-form-label", children: l }),
1081
+ /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: o, ref: c, ...s })
1082
1082
  ] })
1083
1083
  );
1084
1084
  jt.displayName = "PktTextarea";
@@ -1,4 +1,4 @@
1
- (function(g,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(g=typeof globalThis<"u"?globalThis:g||self,E(g["punkt-react"]={},g.React))})(this,function(g,E){"use strict";function Le(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var X={exports:{}},Y={};/**
1
+ (function(g,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(g=typeof globalThis<"u"?globalThis:g||self,E(g["punkt-react"]={},g.React))})(this,function(g,E){"use strict";function Be(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var X={exports:{}},Y={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ie;function Ve(){if(ie)return Y;ie=1;var o=E,s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,u=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function m(v,h,P){var R,x={},j=null,C=null;P!==void 0&&(j=""+P),h.key!==void 0&&(j=""+h.key),h.ref!==void 0&&(C=h.ref);for(R in h)c.call(h,R)&&!n.hasOwnProperty(R)&&(x[R]=h[R]);if(v&&v.defaultProps)for(R in h=v.defaultProps,h)x[R]===void 0&&(x[R]=h[R]);return{$$typeof:s,type:v,key:j,ref:C,props:x,_owner:u.current}}return Y.Fragment=l,Y.jsx=m,Y.jsxs=m,Y}var M={};/**
9
+ */var ie;function Le(){if(ie)return Y;ie=1;var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,u=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function m(v,h,w){var R,x={},j=null,C=null;w!==void 0&&(j=""+w),h.key!==void 0&&(j=""+h.key),h.ref!==void 0&&(C=h.ref);for(R in h)c.call(h,R)&&!n.hasOwnProperty(R)&&(x[R]=h[R]);if(v&&v.defaultProps)for(R in h=v.defaultProps,h)x[R]===void 0&&(x[R]=h[R]);return{$$typeof:l,type:v,key:j,ref:C,props:x,_owner:u.current}}return Y.Fragment=s,Y.jsx=m,Y.jsxs=m,Y}var M={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,18 +14,18 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ce;function Ue(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var o=E,s=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),$=Symbol.iterator,U="@@iterator";function q(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[U];return typeof t=="function"?t:null}var I=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];nt("error",e,a)}}function nt(e,t,a){{var i=I.ReactDebugCurrentFrame,k=i.getStackAddendum();k!==""&&(t+="%s",a=a.concat([k]));var _=a.map(function(d){return String(d)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var ot=!1,lt=!1,st=!1,it=!1,ct=!1,ve;ve=Symbol.for("react.module.reference");function ut(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===n||ct||e===u||e===P||e===R||it||e===C||ot||lt||st||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===x||e.$$typeof===m||e.$$typeof===v||e.$$typeof===h||e.$$typeof===ve||e.getModuleId!==void 0))}function ft(e,t,a){var i=e.displayName;if(i)return i;var k=t.displayName||t.name||"";return k!==""?a+"("+k+")":a}function be(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case l:return"Portal";case n:return"Profiler";case u:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var t=e;return be(t)+".Consumer";case m:var a=e;return be(a._context)+".Provider";case h:return ft(e,e.render,"ForwardRef");case x:var i=e.displayName||null;return i!==null?i:O(e.type)||"Memo";case j:{var k=e,_=k._payload,d=k._init;try{return O(d(_))}catch{return null}}}return null}var D=Object.assign,B=0,ge,Ne,ye,Re,Ee,Pe,we;function Te(){}Te.__reactDisabledLog=!0;function pt(){{if(B===0){ge=console.log,Ne=console.info,ye=console.warn,Re=console.error,Ee=console.group,Pe=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function dt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:ge}),info:D({},e,{value:Ne}),warn:D({},e,{value:ye}),error:D({},e,{value:Re}),group:D({},e,{value:Ee}),groupCollapsed:D({},e,{value:Pe}),groupEnd:D({},e,{value:we})})}B<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=I.ReactCurrentDispatcher,te;function H(e,t,a){{if(te===void 0)try{throw Error()}catch(k){var i=k.stack.trim().match(/\n( *(at )?)/);te=i&&i[1]||""}return`
18
- `+te+e}}var re=!1,G;{var mt=typeof WeakMap=="function"?WeakMap:Map;G=new mt}function xe(e,t){if(!e||re)return"";{var a=G.get(e);if(a!==void 0)return a}var i;re=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=ee.current,ee.current=null,pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(F){i=F}Reflect.construct(e,[],d)}else{try{d.call()}catch(F){i=F}e.call(d.prototype)}}else{try{throw Error()}catch(F){i=F}e()}}catch(F){if(F&&i&&typeof F.stack=="string"){for(var p=F.stack.split(`
17
+ */var ce;function Ve(){return ce||(ce=1,process.env.NODE_ENV!=="production"&&function(){var o=E,l=Symbol.for("react.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),v=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),$=Symbol.iterator,U="@@iterator";function q(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[U];return typeof t=="function"?t:null}var I=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){{for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];nt("error",e,a)}}function nt(e,t,a){{var i=I.ReactDebugCurrentFrame,k=i.getStackAddendum();k!==""&&(t+="%s",a=a.concat([k]));var _=a.map(function(d){return String(d)});_.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,_)}}var ot=!1,lt=!1,st=!1,it=!1,ct=!1,_e;_e=Symbol.for("react.module.reference");function ut(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===n||ct||e===u||e===w||e===R||it||e===C||ot||lt||st||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===x||e.$$typeof===m||e.$$typeof===v||e.$$typeof===h||e.$$typeof===_e||e.getModuleId!==void 0))}function ft(e,t,a){var i=e.displayName;if(i)return i;var k=t.displayName||t.name||"";return k!==""?a+"("+k+")":a}function ve(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case s:return"Portal";case n:return"Profiler";case u:return"StrictMode";case w:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var t=e;return ve(t)+".Consumer";case m:var a=e;return ve(a._context)+".Provider";case h:return ft(e,e.render,"ForwardRef");case x:var i=e.displayName||null;return i!==null?i:O(e.type)||"Memo";case j:{var k=e,_=k._payload,d=k._init;try{return O(d(_))}catch{return null}}}return null}var D=Object.assign,B=0,be,ge,Ne,ye,Re,Ee,we;function Pe(){}Pe.__reactDisabledLog=!0;function pt(){{if(B===0){be=console.log,ge=console.info,Ne=console.warn,ye=console.error,Re=console.group,Ee=console.groupCollapsed,we=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function dt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:be}),info:D({},e,{value:ge}),warn:D({},e,{value:Ne}),error:D({},e,{value:ye}),group:D({},e,{value:Re}),groupCollapsed:D({},e,{value:Ee}),groupEnd:D({},e,{value:we})})}B<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ee=I.ReactCurrentDispatcher,te;function H(e,t,a){{if(te===void 0)try{throw Error()}catch(k){var i=k.stack.trim().match(/\n( *(at )?)/);te=i&&i[1]||""}return`
18
+ `+te+e}}var re=!1,G;{var mt=typeof WeakMap=="function"?WeakMap:Map;G=new mt}function Te(e,t){if(!e||re)return"";{var a=G.get(e);if(a!==void 0)return a}var i;re=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=ee.current,ee.current=null,pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(F){i=F}Reflect.construct(e,[],d)}else{try{d.call()}catch(F){i=F}e.call(d.prototype)}}else{try{throw Error()}catch(F){i=F}e()}}catch(F){if(F&&i&&typeof F.stack=="string"){for(var p=F.stack.split(`
19
19
  `),T=i.stack.split(`
20
20
  `),N=p.length-1,y=T.length-1;N>=1&&y>=0&&p[N]!==T[y];)y--;for(;N>=1&&y>=0;N--,y--)if(p[N]!==T[y]){if(N!==1||y!==1)do if(N--,y--,y<0||p[N]!==T[y]){var S=`
21
- `+p[N].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,S),S}while(N>=1&&y>=0);break}}}finally{re=!1,ee.current=_,dt(),Error.prepareStackTrace=k}var W=e?e.displayName||e.name:"",Be=W?H(W):"";return typeof e=="function"&&G.set(e,Be),Be}function ht(e,t,a){return xe(e,!1)}function kt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function J(e,t,a){if(e==null)return"";if(typeof e=="function")return xe(e,kt(e));if(typeof e=="string")return H(e);switch(e){case P:return H("Suspense");case R:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return ht(e.render);case x:return J(e.type,t,a);case j:{var i=e,k=i._payload,_=i._init;try{return J(_(k),t,a)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,je={},Se=I.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,a=J(e.type,e._source,t?t.type:null);Se.setExtraStackFrame(a)}else Se.setExtraStackFrame(null)}function _t(e,t,a,i,k){{var _=Function.call.bind(z);for(var d in e)if(_(e,d)){var p=void 0;try{if(typeof e[d]!="function"){var T=Error((i||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}p=e[d](t,d,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){p=N}p&&!(p instanceof Error)&&(K(k),w("%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).",i||"React class",a,d,typeof p),K(null)),p instanceof Error&&!(p.message in je)&&(je[p.message]=!0,K(k),w("Failed %s type: %s",a,p.message),K(null))}}}var vt=Array.isArray;function ae(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function gt(e){try{return Ce(e),!1}catch{return!0}}function Ce(e){return""+e}function Oe(e){if(gt(e))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),Ce(e)}var L=I.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Fe,De,ne;ne={};function yt(e){if(z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){if(typeof e.ref=="string"&&L.current&&t&&L.current.stateNode!==t){var a=O(L.current.type);ne[a]||(w('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',O(L.current.type),e.ref),ne[a]=!0)}}function Pt(e,t){{var a=function(){Fe||(Fe=!0,w("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function wt(e,t){{var a=function(){De||(De=!0,w("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Tt=function(e,t,a,i,k,_,d){var p={$$typeof:s,type:e,key:t,ref:a,props:d,_owner:_};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function xt(e,t,a,i,k){{var _,d={},p=null,T=null;a!==void 0&&(Oe(a),p=""+a),Rt(t)&&(Oe(t.key),p=""+t.key),yt(t)&&(T=t.ref,Et(t,k));for(_ in t)z.call(t,_)&&!Nt.hasOwnProperty(_)&&(d[_]=t[_]);if(e&&e.defaultProps){var N=e.defaultProps;for(_ in N)d[_]===void 0&&(d[_]=N[_])}if(p||T){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&Pt(d,y),T&&wt(d,y)}return Tt(e,p,T,k,i,L.current,d)}}var oe=I.ReactCurrentOwner,Ie=I.ReactDebugCurrentFrame;function A(e){if(e){var t=e._owner,a=J(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(a)}else Ie.setExtraStackFrame(null)}var le;le=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ae(){{if(oe.current){var e=O(oe.current.type);if(e)return`
21
+ `+p[N].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,S),S}while(N>=1&&y>=0);break}}}finally{re=!1,ee.current=_,dt(),Error.prepareStackTrace=k}var W=e?e.displayName||e.name:"",$e=W?H(W):"";return typeof e=="function"&&G.set(e,$e),$e}function ht(e,t,a){return Te(e,!1)}function kt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function J(e,t,a){if(e==null)return"";if(typeof e=="function")return Te(e,kt(e));if(typeof e=="string")return H(e);switch(e){case w:return H("Suspense");case R:return H("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return ht(e.render);case x:return J(e.type,t,a);case j:{var i=e,k=i._payload,_=i._init;try{return J(_(k),t,a)}catch{}}}return""}var z=Object.prototype.hasOwnProperty,xe={},je=I.ReactDebugCurrentFrame;function K(e){if(e){var t=e._owner,a=J(e.type,e._source,t?t.type:null);je.setExtraStackFrame(a)}else je.setExtraStackFrame(null)}function _t(e,t,a,i,k){{var _=Function.call.bind(z);for(var d in e)if(_(e,d)){var p=void 0;try{if(typeof e[d]!="function"){var T=Error((i||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}p=e[d](t,d,i,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){p=N}p&&!(p instanceof Error)&&(K(k),P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",a,d,typeof p),K(null)),p instanceof Error&&!(p.message in xe)&&(xe[p.message]=!0,K(k),P("Failed %s type: %s",a,p.message),K(null))}}}var vt=Array.isArray;function ae(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,a=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function gt(e){try{return Se(e),!1}catch{return!0}}function Se(e){return""+e}function Ce(e){if(gt(e))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),Se(e)}var L=I.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},Oe,Fe,ne;ne={};function yt(e){if(z.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(z.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Et(e,t){if(typeof e.ref=="string"&&L.current&&t&&L.current.stateNode!==t){var a=O(L.current.type);ne[a]||(P('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',O(L.current.type),e.ref),ne[a]=!0)}}function wt(e,t){{var a=function(){Oe||(Oe=!0,P("%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))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Pt(e,t){{var a=function(){Fe||(Fe=!0,P("%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))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Tt=function(e,t,a,i,k,_,d){var p={$$typeof:l,type:e,key:t,ref:a,props:d,_owner:_};return p._store={},Object.defineProperty(p._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(p,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(p,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(p.props),Object.freeze(p)),p};function xt(e,t,a,i,k){{var _,d={},p=null,T=null;a!==void 0&&(Ce(a),p=""+a),Rt(t)&&(Ce(t.key),p=""+t.key),yt(t)&&(T=t.ref,Et(t,k));for(_ in t)z.call(t,_)&&!Nt.hasOwnProperty(_)&&(d[_]=t[_]);if(e&&e.defaultProps){var N=e.defaultProps;for(_ in N)d[_]===void 0&&(d[_]=N[_])}if(p||T){var y=typeof e=="function"?e.displayName||e.name||"Unknown":e;p&&wt(d,y),T&&Pt(d,y)}return Tt(e,p,T,k,i,L.current,d)}}var oe=I.ReactCurrentOwner,De=I.ReactDebugCurrentFrame;function A(e){if(e){var t=e._owner,a=J(e.type,e._source,t?t.type:null);De.setExtraStackFrame(a)}else De.setExtraStackFrame(null)}var le;le=!1;function se(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Ie(){{if(oe.current){var e=O(oe.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function jt(e){{if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,""),a=e.lineNumber;return`
24
24
 
25
- Check your code at `+t+":"+a+"."}return""}}var We={};function St(e){{var t=Ae();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
25
+ Check your code at `+t+":"+a+"."}return""}}var Ae={};function St(e){{var t=Ie();if(!t){var a=typeof e=="string"?e:e.displayName||e.name;a&&(t=`
26
26
 
27
- Check the top-level render call using <`+a+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=St(t);if(We[a])return;We[a]=!0;var i="";e&&e._owner&&e._owner!==oe.current&&(i=" It was passed a child from "+O(e._owner.type)+"."),A(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),A(null)}}function Me(e,t){{if(typeof e!="object")return;if(ae(e))for(var a=0;a<e.length;a++){var i=e[a];se(i)&&Ye(i,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var k=q(e);if(typeof k=="function"&&k!==e.entries)for(var _=k.call(e),d;!(d=_.next()).done;)se(d.value)&&Ye(d.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===x))a=t.propTypes;else return;if(a){var i=O(t);_t(a,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!le){le=!0;var k=O(t);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var i=t[a];if(i!=="children"&&i!=="key"){A(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function $e(e,t,a,i,k,_){{var d=ut(e);if(!d){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=jt(k);T?p+=T:p+=Ae();var N;e===null?N="null":ae(e)?N="array":e!==void 0&&e.$$typeof===s?(N="<"+(O(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,p)}var y=xt(e,t,a,k,_);if(y==null)return y;if(d){var S=t.children;if(S!==void 0)if(i)if(ae(S)){for(var W=0;W<S.length;W++)Me(S[W],e);Object.freeze&&Object.freeze(S)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Me(S,e)}return e===c?Ot(y):Ct(y),y}}function Ft(e,t,a){return $e(e,t,a,!0)}function Dt(e,t,a){return $e(e,t,a,!1)}var It=Dt,At=Ft;M.Fragment=c,M.jsx=It,M.jsxs=At}()),M}process.env.NODE_ENV==="production"?X.exports=Ve():X.exports=Ue();var Z=X.exports;const V=Z.Fragment,r=Z.jsx,f=Z.jsxs,Q={},ue='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function He(o,s){return!Q[o]&&typeof fetch=="function"?fetch(s+o+".svg").then(l=>l.ok?l.text():(console.error("Missing icon: "+s+o+".svg"),ue)).then(l=>(l!==ue&&(Q[o]=l),l)):Promise.resolve(Q[o])}const b=({name:o,path:s,className:l="",...c})=>{const u="https://punkt-cdn.oslo.kommune.no/5.1/icons/",[n,m]=E.useState(null);return E.useEffect(()=>{if(!o)return;He(o,s||u).then(h=>m(h))},[o,s,u]),n?r("span",{className:`pkt-icon ${l}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ge=E.forwardRef(({children:o,className:s,skin:l="info",closeAlert:c=!1,onClose:u,title:n,date:m,ariaLive:v="polite",...h},P)=>{const R=[s,"pkt-alert",l&&`pkt-alert--${l}`].filter(Boolean).join(" "),[x,j]=E.useState(!0),C=()=>{j(!1),u&&u()};return x?f("div",{...h,className:R,"aria-live":v,ref:P,children:[r(b,{className:"pkt-alert__icon",name:l==="info"?"alert-information":`alert-${l}`}),c&&r("div",{className:"pkt-alert__close",children:r("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:C,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&r("div",{className:"pkt-alert__title",children:n}),r("div",{className:"pkt-alert__text",children:o}),m&&f("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",m]})]}):null}),fe=E.forwardRef(({children:o,className:s,iconName:l="user",secondIconName:c="user",size:u="medium",skin:n="primary",type:m="button",variant:v="label-only",...h},P)=>{const R=[s,"pkt-btn",u&&`pkt-btn--${u}`,n&&`pkt-btn--${n}`,v&&`pkt-btn--${v}`].filter(Boolean).join(" ");return f("button",{...h,className:R,type:m,ref:P,children:[v!=="label-only"&&r(b,{className:"pkt-btn__icon",name:l}),r("span",{className:"pkt-btn__text",children:o}),v==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});fe.displayName="PktButton";const Je=({columnOne:o,columnTwo:s,socialLinks:l})=>{var c,u;return r("footer",{className:"pkt-footer","data-mode":"dark",children:f("div",{className:"pkt-footer__container",children:[f("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:o.title}),f("ul",{className:"pkt-footer__list",children:[o.text&&r("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:s.title}),f("ul",{className:"pkt-footer__list",children:[s.text&&r("li",{className:"pkt-footer__text",children:s.text}),(u=s.links)==null?void 0:u.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),f("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),l&&f("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:l.filter(n=>n.language).map((n,m)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${m}`))}),r("div",{className:"pkt-footer__social-icons",children:l.filter(n=>n.iconName).map((n,m)=>r(E.Fragment,{children:r("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${m}`))})]})]})})},ze=({links:o=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:f("ul",{className:"pkt-footer-simple__list",children:[o.map((s,l)=>r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:`pkt-footer-simple__link ${s.external?" pkt-link--external":""}`,href:s.href,target:s.openInNewTab?"_blank":"_self",rel:s.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),s.text]})},l)),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ke=({className:o,logoLink:s="https://www.oslo.kommune.no/",isLoggedIn:l=!1,representing:c="",canChangeRepresentation:u=!1,showLogInButton:n=!0,onLogIn:m,onLogOut:v,onChangeRepresentation:h})=>{const P=[o,"pkt-header"].filter(Boolean).join(" ");return f("header",{id:"pkt-header",className:P,"aria-label":"Topp",children:[r("div",{className:"pkt-header__logo",children:r("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:s,children:r(b,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/5.1/logos/"})})}),f("div",{className:"pkt-header__actions",children:[l&&u&&f("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:h,children:[r(b,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),r("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),r("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),r("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),l&&!u&&f("div",{className:"pkt-header__action",children:[r("span",{className:"pkt-header__action-text",children:r("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),r(b,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&l&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:v,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!l&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:m,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},pe=E.forwardRef(({label:o,id:s,children:l,...c},u)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:s,className:"pkt-form-label",children:o}),r("input",{className:"pkt-form-input",id:s,...c,ref:u}),l]}));pe.displayName="PktInput";const de=E.forwardRef(({children:o,className:s,iconName:l="user",openInNewTab:c=!1,skin:u="normal",href:n="#",external:m=!1,title:v},h)=>{const P=[s,"pkt-linkcard",u&&`pkt-linkcard--${u}`].filter(Boolean).join(" ");return f("a",{href:n,className:`pkt-linkcard pkt-link ${P}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:h,children:[r(b,{className:"pkt-link__icon",name:l}),f("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${m?"pkt-link pkt-link--external":""}`,children:v}),r("div",{className:"pkt-linkcard__text",children:o})]})]})});de.displayName="PktLinkCard";const Xe=({children:o,skin:s="beige",title:l,...c})=>{const u=["pkt-messagebox",s&&`pkt-messagebox--${s}`].filter(Boolean).join(" ");return f("div",{...c,className:u,children:[r("div",{className:"pkt-messagebox__title",children:l}),r("div",{className:"pkt-messagebox__text",children:o})]})},me=E.forwardRef(({id:o,name:s,label:l,value:c,...u},n)=>f("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:o,name:s,value:c,ref:n,...u}),r("label",{className:"pkt-form-label",htmlFor:o,children:l})]}));me.displayName="PktRadio";const Ze=({label:o,children:s})=>f(V,{children:[r("p",{children:o}),r("div",{className:"pkt-form-group",children:s})]});var he={exports:{}};/*!
27
+ Check the top-level render call using <`+a+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=St(t);if(Ae[a])return;Ae[a]=!0;var i="";e&&e._owner&&e._owner!==oe.current&&(i=" It was passed a child from "+O(e._owner.type)+"."),A(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,i),A(null)}}function Ye(e,t){{if(typeof e!="object")return;if(ae(e))for(var a=0;a<e.length;a++){var i=e[a];se(i)&&We(i,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var k=q(e);if(typeof k=="function"&&k!==e.entries)for(var _=k.call(e),d;!(d=_.next()).done;)se(d.value)&&We(d.value,t)}}}function Ct(e){{var t=e.type;if(t==null||typeof t=="string")return;var a;if(typeof t=="function")a=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===x))a=t.propTypes;else return;if(a){var i=O(t);_t(a,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!le){le=!0;var k=O(t);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var t=Object.keys(e.props),a=0;a<t.length;a++){var i=t[a];if(i!=="children"&&i!=="key"){A(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),A(null);break}}e.ref!==null&&(A(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Me(e,t,a,i,k,_){{var d=ut(e);if(!d){var p="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=jt(k);T?p+=T:p+=Ie();var N;e===null?N="null":ae(e)?N="array":e!==void 0&&e.$$typeof===l?(N="<"+(O(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):N=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,p)}var y=xt(e,t,a,k,_);if(y==null)return y;if(d){var S=t.children;if(S!==void 0)if(i)if(ae(S)){for(var W=0;W<S.length;W++)Ye(S[W],e);Object.freeze&&Object.freeze(S)}else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(S,e)}return e===c?Ot(y):Ct(y),y}}function Ft(e,t,a){return Me(e,t,a,!0)}function Dt(e,t,a){return Me(e,t,a,!1)}var It=Dt,At=Ft;M.Fragment=c,M.jsx=It,M.jsxs=At}()),M}process.env.NODE_ENV==="production"?X.exports=Le():X.exports=Ve();var Z=X.exports;const V=Z.Fragment,r=Z.jsx,f=Z.jsxs,Q={},Ue='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function He(o,l){return!Q[o]&&typeof window.fetch=="function"&&(Q[o]=window.fetch(l+o+".svg").then(s=>s.ok?s.text():(console.error("Missing icon: "+l+o+".svg"),Ue)).then(s=>s)),Promise.resolve(Q[o])}const b=({name:o,path:l,className:s="",...c})=>{const u="https://punkt-cdn.oslo.kommune.no/5.1/icons/",[n,m]=E.useState(null);return E.useEffect(()=>{if(!o)return;He(o,l||u).then(h=>m(h))},[o,l,u]),n?r("span",{className:`pkt-icon ${s}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ge=E.forwardRef(({children:o,className:l,skin:s="info",closeAlert:c=!1,onClose:u,title:n,date:m,ariaLive:v="polite",...h},w)=>{const R=[l,"pkt-alert",s&&`pkt-alert--${s}`].filter(Boolean).join(" "),[x,j]=E.useState(!0),C=()=>{j(!1),u&&u()};return x?f("div",{...h,className:R,"aria-live":v,ref:w,children:[r(b,{className:"pkt-alert__icon",name:s==="info"?"alert-information":`alert-${s}`}),c&&r("div",{className:"pkt-alert__close",children:r("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:C,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&r("div",{className:"pkt-alert__title",children:n}),r("div",{className:"pkt-alert__text",children:o}),m&&f("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",m]})]}):null}),ue=E.forwardRef(({children:o,className:l,iconName:s="user",secondIconName:c="user",size:u="medium",skin:n="primary",type:m="button",variant:v="label-only",...h},w)=>{const R=[l,"pkt-btn",u&&`pkt-btn--${u}`,n&&`pkt-btn--${n}`,v&&`pkt-btn--${v}`].filter(Boolean).join(" ");return f("button",{...h,className:R,type:m,ref:w,children:[v!=="label-only"&&r(b,{className:"pkt-btn__icon",name:s}),r("span",{className:"pkt-btn__text",children:o}),v==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});ue.displayName="PktButton";const Je=({columnOne:o,columnTwo:l,socialLinks:s})=>{var c,u;return r("footer",{className:"pkt-footer","data-mode":"dark",children:f("div",{className:"pkt-footer__container",children:[f("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:o.title}),f("ul",{className:"pkt-footer__list",children:[o.text&&r("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:l.title}),f("ul",{className:"pkt-footer__list",children:[l.text&&r("li",{className:"pkt-footer__text",children:l.text}),(u=l.links)==null?void 0:u.map((n,m)=>r("li",{className:"pkt-footer__list-item",children:f("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${m}`))]})]}),f("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[r("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),f("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer__list-item",children:f("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),s&&f("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:s.filter(n=>n.language).map((n,m)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${m}`))}),r("div",{className:"pkt-footer__social-icons",children:s.filter(n=>n.iconName).map((n,m)=>r(E.Fragment,{children:r("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${m}`))})]})]})})},ze=({links:o=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:f("ul",{className:"pkt-footer-simple__list",children:[o.map((l,s)=>r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},s)),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),r("li",{className:"pkt-footer-simple__list-item",children:f("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ke=({className:o,logoLink:l="https://www.oslo.kommune.no/",isLoggedIn:s=!1,representing:c="",canChangeRepresentation:u=!1,showLogInButton:n=!0,onLogIn:m,onLogOut:v,onChangeRepresentation:h})=>{const w=[o,"pkt-header"].filter(Boolean).join(" ");return f("header",{id:"pkt-header",className:w,"aria-label":"Topp",children:[r("div",{className:"pkt-header__logo",children:r("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:l,children:r(b,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/5.1/logos/"})})}),f("div",{className:"pkt-header__actions",children:[s&&u&&f("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:h,children:[r(b,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),r("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),r("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),r("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),s&&!u&&f("div",{className:"pkt-header__action",children:[r("span",{className:"pkt-header__action-text",children:r("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),r(b,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:v,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!s&&f("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:m,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},fe=E.forwardRef(({label:o,id:l,children:s,...c},u)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:l,className:"pkt-form-label",children:o}),r("input",{className:"pkt-form-input",id:l,...c,ref:u}),s]}));fe.displayName="PktInput";const pe=E.forwardRef(({children:o,className:l,iconName:s="user",openInNewTab:c=!1,skin:u="normal",href:n="#",external:m=!1,title:v},h)=>{const w=[l,"pkt-linkcard",u&&`pkt-linkcard--${u}`].filter(Boolean).join(" ");return f("a",{href:n,className:`pkt-linkcard pkt-link ${w}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:h,children:[r(b,{className:"pkt-link__icon",name:s}),f("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${m?"pkt-link pkt-link--external":""}`,children:v}),r("div",{className:"pkt-linkcard__text",children:o})]})]})});pe.displayName="PktLinkCard";const Xe=({children:o,skin:l="beige",title:s,...c})=>{const u=["pkt-messagebox",l&&`pkt-messagebox--${l}`].filter(Boolean).join(" ");return f("div",{...c,className:u,children:[r("div",{className:"pkt-messagebox__title",children:s}),r("div",{className:"pkt-messagebox__text",children:o})]})},de=E.forwardRef(({id:o,name:l,label:s,value:c,...u},n)=>f("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:o,name:l,value:c,ref:n,...u}),r("label",{className:"pkt-form-label",htmlFor:o,children:s})]}));de.displayName="PktRadio";const Ze=({label:o,children:l})=>f(V,{children:[r("p",{children:o}),r("div",{className:"pkt-form-group",children:l})]});var me={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(o){(function(){var s={}.hasOwnProperty;function l(){for(var c=[],u=0;u<arguments.length;u++){var n=arguments[u];if(n){var m=typeof n;if(m==="string"||m==="number")c.push(n);else if(Array.isArray(n)){if(n.length){var v=l.apply(null,n);v&&c.push(v)}}else if(m==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){c.push(n.toString());continue}for(var h in n)s.call(n,h)&&n[h]&&c.push(h)}}}return c.join(" ")}o.exports?(l.default=l,o.exports=l):window.classNames=l})()})(he);var Qe=he.exports;const qe=Le(Qe),et=({isResponsive:o,children:s})=>o?r("div",{className:"pkt-table-container",children:s}):r(V,{children:s}),tt=({isResponsive:o,modifiers:{info:s=!1,success:l=!1,strong:c=!1,shadow:u=!1}={},children:n})=>r(et,{isResponsive:o,children:r("table",{className:qe("pkt-table",{"pkt-table--info":s,"pkt-table--success":l,"pkt-table--strong":c,"pkt-table--shadow":u}),children:n})}),rt=({children:o})=>r("td",{className:"pkt-table__th",children:o}),at=({children:o})=>r("th",{className:"pkt-table__th",children:o}),ke=E.forwardRef(({children:o,className:s,skin:l="blue",size:c="medium",closeTag:u=!1,iconName:n="",type:m="button",ariaLabel:v="close",onClick:h=()=>{}},P)=>{const[R,x]=E.useState(!1),j=q=>{x(!0),h(q)},C=["pkt-tag",c&&`pkt-tag--${c}`,l&&`pkt-tag--${l}`,s].filter(Boolean).join(" "),$=["pkt-tag","pkt-btn","pkt-btn--tertiary",c&&`pkt-tag--${c}`,l&&`pkt-tag--${l}`,n&&u?"pkt-btn--icons-right-and-left":null,u&&!n?"pkt-btn--icon-right":null,s].filter(Boolean).join(" "),U=!R;return u&&n?r(V,{children:U&&f("button",{className:$,type:m,"aria-label":v,onClick:j,ref:P,children:[r(b,{className:"pkt-tag__icon",name:n}),o,r(b,{className:"pkt-tag__close-btn",name:"close"})]})}):u?r(V,{children:U&&f("button",{className:$,type:m,"aria-label":v,onClick:j,ref:P,children:[r(b,{className:"pkt-tag__close-btn",name:"close"}),o]})}):n?f("span",{className:C,children:[r(b,{className:"pkt-tag__icon",name:n}),o]}):r("span",{className:C,children:o})});ke.displayName="PktTag";const _e=E.forwardRef(({id:o,label:s,...l},c)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:o,className:"pkt-form-label",children:s}),r("textarea",{className:"pkt-form-textarea",id:o,ref:c,...l})]}));_e.displayName="PktTextarea",g.PktAlert=Ge,g.PktButton=fe,g.PktFooter=Je,g.PktFooterSimple=ze,g.PktHeader=Ke,g.PktIcon=b,g.PktInput=pe,g.PktLinkCard=de,g.PktMessagebox=Xe,g.PktRadio=me,g.PktRadioGroup=Ze,g.PktTable=tt,g.PktTableData=rt,g.PktTableHeader=at,g.PktTag=ke,g.PktTextarea=_e,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
31
+ */(function(o){(function(){var l={}.hasOwnProperty;function s(){for(var c=[],u=0;u<arguments.length;u++){var n=arguments[u];if(n){var m=typeof n;if(m==="string"||m==="number")c.push(n);else if(Array.isArray(n)){if(n.length){var v=s.apply(null,n);v&&c.push(v)}}else if(m==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){c.push(n.toString());continue}for(var h in n)l.call(n,h)&&n[h]&&c.push(h)}}}return c.join(" ")}o.exports?(s.default=s,o.exports=s):window.classNames=s})()})(me);var Qe=me.exports;const qe=Be(Qe),et=({isResponsive:o,children:l})=>o?r("div",{className:"pkt-table-container",children:l}):r(V,{children:l}),tt=({isResponsive:o,modifiers:{info:l=!1,success:s=!1,strong:c=!1,shadow:u=!1}={},children:n})=>r(et,{isResponsive:o,children:r("table",{className:qe("pkt-table",{"pkt-table--info":l,"pkt-table--success":s,"pkt-table--strong":c,"pkt-table--shadow":u}),children:n})}),rt=({children:o})=>r("td",{className:"pkt-table__th",children:o}),at=({children:o})=>r("th",{className:"pkt-table__th",children:o}),he=E.forwardRef(({children:o,className:l,skin:s="blue",size:c="medium",closeTag:u=!1,iconName:n="",type:m="button",ariaLabel:v="close",onClick:h=()=>{}},w)=>{const[R,x]=E.useState(!1),j=q=>{x(!0),h(q)},C=["pkt-tag",c&&`pkt-tag--${c}`,s&&`pkt-tag--${s}`,l].filter(Boolean).join(" "),$=["pkt-tag","pkt-btn","pkt-btn--tertiary",c&&`pkt-tag--${c}`,s&&`pkt-tag--${s}`,n&&u?"pkt-btn--icons-right-and-left":null,u&&!n?"pkt-btn--icon-right":null,l].filter(Boolean).join(" "),U=!R;return u&&n?r(V,{children:U&&f("button",{className:$,type:m,"aria-label":v,onClick:j,ref:w,children:[r(b,{className:"pkt-tag__icon",name:n}),o,r(b,{className:"pkt-tag__close-btn",name:"close"})]})}):u?r(V,{children:U&&f("button",{className:$,type:m,"aria-label":v,onClick:j,ref:w,children:[r(b,{className:"pkt-tag__close-btn",name:"close"}),o]})}):n?f("span",{className:C,children:[r(b,{className:"pkt-tag__icon",name:n}),o]}):r("span",{className:C,children:o})});he.displayName="PktTag";const ke=E.forwardRef(({id:o,label:l,...s},c)=>f("div",{className:"pkt-form-group",children:[r("label",{htmlFor:o,className:"pkt-form-label",children:l}),r("textarea",{className:"pkt-form-textarea",id:o,ref:c,...s})]}));ke.displayName="PktTextarea",g.PktAlert=Ge,g.PktButton=ue,g.PktFooter=Je,g.PktFooterSimple=ze,g.PktHeader=Ke,g.PktIcon=b,g.PktInput=fe,g.PktLinkCard=pe,g.PktMessagebox=Xe,g.PktRadio=de,g.PktRadioGroup=Ze,g.PktTable=tt,g.PktTableData=rt,g.PktTableHeader=at,g.PktTag=he,g.PktTextarea=ke,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -31,8 +31,8 @@
31
31
  "test": "react-scripts test --env=jsdom"
32
32
  },
33
33
  "devDependencies": {
34
- "@oslokommune/punkt-assets": "^5.1.4",
35
- "@oslokommune/punkt-css": "^5.1.4",
34
+ "@oslokommune/punkt-assets": "^5.1.5",
35
+ "@oslokommune/punkt-css": "^5.1.5",
36
36
  "@testing-library/jest-dom": "^5.16.5",
37
37
  "@testing-library/react": "^14.0.0",
38
38
  "@testing-library/user-event": "^14.4.3",
@@ -90,5 +90,5 @@
90
90
  "url": "https://github.com/oslokommune/punkt/issues"
91
91
  },
92
92
  "license": "MIT",
93
- "gitHead": "52f5cda477d710867463a855a7e5dc13d62553f2"
93
+ "gitHead": "4d63c01f0fabb783bbd3f148c5c9f91404ed8ca5"
94
94
  }
@@ -1,14 +1,14 @@
1
1
  import React, { useEffect, useState } from 'react'
2
2
 
3
3
  // Cache is a dictionary of promises that each resolves to an svg icon
4
- const iconCache: { [name: string]: string } = {}
4
+ const iconCache: { [name: string]: Promise<string> } = {}
5
5
 
6
6
  const errorSvg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>'
7
7
 
8
8
  function getIcon(name: string, path: string): Promise<string> {
9
9
  // Download and cache icon if not in cache
10
- if (!iconCache[name] && typeof fetch === 'function') {
11
- return fetch(path + name + '.svg')
10
+ if (!iconCache[name] && typeof window.fetch === 'function') {
11
+ iconCache[name] = window.fetch(path + name + '.svg')
12
12
  .then((response) => {
13
13
  if (!response.ok) {
14
14
  console.error('Missing icon: ' + path + name + '.svg')
@@ -17,11 +17,7 @@ function getIcon(name: string, path: string): Promise<string> {
17
17
  return response.text()
18
18
  })
19
19
  .then((text) => {
20
- // Only cache the icon if it isn't the errorSvg
21
- if (text !== errorSvg) {
22
- iconCache[name] = text
23
- }
24
- return text
20
+ return text;
25
21
  })
26
22
  }
27
23