@oslokommune/punkt-react 5.2.1 → 5.2.2

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.2.2](https://github.com/oslokommune/punkt/compare/5.2.1...5.2.2) (2023-08-17)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Fiks manglende ...props på PktTextInput (#1052).
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [5.2.0](https://github.com/oslokommune/punkt/compare/5.1.21...5.2.0) (2023-08-11)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
@@ -2,7 +2,7 @@ import ne, { useState as le, useEffect as ht, forwardRef as W } from "react";
2
2
  function vt(l) {
3
3
  return l && l.__esModule && Object.prototype.hasOwnProperty.call(l, "default") ? l.default : l;
4
4
  }
5
- var Ne = { exports: {} }, J = {};
5
+ var ye = { exports: {} }, J = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -17,7 +17,7 @@ function bt() {
17
17
  if (Le)
18
18
  return J;
19
19
  Le = 1;
20
- var l = ne, s = Symbol.for("react.element"), o = 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 };
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
21
  function p(h, d, g) {
22
22
  var N, w = {}, R = null, C = null;
23
23
  g !== void 0 && (R = "" + g), d.key !== void 0 && (R = "" + d.key), d.ref !== void 0 && (C = d.ref);
@@ -28,7 +28,7 @@ function bt() {
28
28
  w[N] === void 0 && (w[N] = d[N]);
29
29
  return { $$typeof: s, type: h, key: R, ref: C, props: w, _owner: f.current };
30
30
  }
31
- return J.Fragment = o, J.jsx = p, J.jsxs = p, J;
31
+ return J.Fragment = i, J.jsx = p, J.jsxs = p, J;
32
32
  }
33
33
  var z = {};
34
34
  /**
@@ -43,24 +43,24 @@ var z = {};
43
43
  var Be;
44
44
  function gt() {
45
45
  return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
46
- var l = ne, s = Symbol.for("react.element"), o = 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, O = "@@iterator";
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";
47
47
  function F(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
50
- var t = $ && e[$] || e[O];
50
+ var t = $ && e[$] || e[S];
51
51
  return typeof t == "function" ? t : null;
52
52
  }
53
53
  var P = l.__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), i = 1; i < t; i++)
57
- n[i - 1] = arguments[i];
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
58
  se("error", e, n);
59
59
  }
60
60
  }
61
61
  function se(e, t, n) {
62
62
  {
63
- var i = P.ReactDebugCurrentFrame, k = i.getStackAddendum();
63
+ var o = P.ReactDebugCurrentFrame, k = o.getStackAddendum();
64
64
  k !== "" && (t += "%s", n = n.concat([k]));
65
65
  var v = n.map(function(_) {
66
66
  return String(_);
@@ -68,26 +68,26 @@ function gt() {
68
68
  v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
69
69
  }
70
70
  }
71
- var V = !1, K = !1, oe = !1, U = !1, H = !1, X;
72
- X = Symbol.for("react.module.reference");
73
- function ie(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === a || H || e === f || e === g || e === N || U || e === C || V || K || oe || 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
71
+ var U = !1, K = !1, ie = !1, H = !1, q = !1, Y;
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
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
- e.$$typeof === X || e.getModuleId !== void 0));
78
+ e.$$typeof === Y || e.getModuleId !== void 0));
79
79
  }
80
80
  function ce(e, t, n) {
81
- var i = e.displayName;
82
- if (i)
83
- return i;
81
+ var o = e.displayName;
82
+ if (o)
83
+ return o;
84
84
  var k = t.displayName || t.name || "";
85
85
  return k !== "" ? n + "(" + k + ")" : n;
86
86
  }
87
- function q(e) {
87
+ function X(e) {
88
88
  return e.displayName || "Context";
89
89
  }
90
- function S(e) {
90
+ function j(e) {
91
91
  if (e == null)
92
92
  return null;
93
93
  if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -97,7 +97,7 @@ function gt() {
97
97
  switch (e) {
98
98
  case c:
99
99
  return "Fragment";
100
- case o:
100
+ case i:
101
101
  return "Portal";
102
102
  case a:
103
103
  return "Profiler";
@@ -112,19 +112,19 @@ function gt() {
112
112
  switch (e.$$typeof) {
113
113
  case h:
114
114
  var t = e;
115
- return q(t) + ".Consumer";
115
+ return X(t) + ".Consumer";
116
116
  case p:
117
117
  var n = e;
118
- return q(n._context) + ".Provider";
118
+ return X(n._context) + ".Provider";
119
119
  case d:
120
120
  return ce(e, e.render, "ForwardRef");
121
121
  case w:
122
- var i = e.displayName || null;
123
- return i !== null ? i : S(e.type) || "Memo";
122
+ var o = e.displayName || null;
123
+ return o !== null ? o : j(e.type) || "Memo";
124
124
  case R: {
125
125
  var k = e, v = k._payload, _ = k._init;
126
126
  try {
127
- return S(_(v));
127
+ return j(_(v));
128
128
  } catch {
129
129
  return null;
130
130
  }
@@ -132,14 +132,14 @@ function gt() {
132
132
  }
133
133
  return null;
134
134
  }
135
- var D = Object.assign, Y = 0, Z, A, ue, fe, xe, Ee, we;
135
+ var D = Object.assign, M = 0, ue, Z, A, fe, pe, Ee, we;
136
136
  function Re() {
137
137
  }
138
138
  Re.__reactDisabledLog = !0;
139
139
  function qe() {
140
140
  {
141
- if (Y === 0) {
142
- Z = console.log, A = console.info, ue = console.warn, fe = console.error, xe = console.group, Ee = console.groupCollapsed, we = console.groupEnd;
141
+ if (M === 0) {
142
+ ue = console.log, Z = console.info, A = console.warn, fe = console.error, pe = console.group, Ee = console.groupCollapsed, we = console.groupEnd;
143
143
  var e = {
144
144
  configurable: !0,
145
145
  enumerable: !0,
@@ -156,12 +156,12 @@ function gt() {
156
156
  groupEnd: e
157
157
  });
158
158
  }
159
- Y++;
159
+ M++;
160
160
  }
161
161
  }
162
162
  function Ge() {
163
163
  {
164
- if (Y--, Y === 0) {
164
+ if (M--, M === 0) {
165
165
  var e = {
166
166
  configurable: !0,
167
167
  enumerable: !0,
@@ -169,19 +169,19 @@ function gt() {
169
169
  };
170
170
  Object.defineProperties(console, {
171
171
  log: D({}, e, {
172
- value: Z
172
+ value: ue
173
173
  }),
174
174
  info: D({}, e, {
175
- value: A
175
+ value: Z
176
176
  }),
177
177
  warn: D({}, e, {
178
- value: ue
178
+ value: A
179
179
  }),
180
180
  error: D({}, e, {
181
181
  value: fe
182
182
  }),
183
183
  group: D({}, e, {
184
- value: xe
184
+ value: pe
185
185
  }),
186
186
  groupCollapsed: D({}, e, {
187
187
  value: Ee
@@ -191,42 +191,42 @@ function gt() {
191
191
  })
192
192
  });
193
193
  }
194
- Y < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
+ M < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
195
  }
196
196
  }
197
- var pe = P.ReactCurrentDispatcher, de;
197
+ var de = P.ReactCurrentDispatcher, me;
198
198
  function Q(e, t, n) {
199
199
  {
200
- if (de === void 0)
200
+ if (me === void 0)
201
201
  try {
202
202
  throw Error();
203
203
  } catch (k) {
204
- var i = k.stack.trim().match(/\n( *(at )?)/);
205
- de = i && i[1] || "";
204
+ var o = k.stack.trim().match(/\n( *(at )?)/);
205
+ me = o && o[1] || "";
206
206
  }
207
207
  return `
208
- ` + de + e;
208
+ ` + me + e;
209
209
  }
210
210
  }
211
- var me = !1, ee;
211
+ var _e = !1, ee;
212
212
  {
213
213
  var Je = typeof WeakMap == "function" ? WeakMap : Map;
214
214
  ee = new Je();
215
215
  }
216
216
  function Pe(e, t) {
217
- if (!e || me)
217
+ if (!e || _e)
218
218
  return "";
219
219
  {
220
220
  var n = ee.get(e);
221
221
  if (n !== void 0)
222
222
  return n;
223
223
  }
224
- var i;
225
- me = !0;
224
+ var o;
225
+ _e = !0;
226
226
  var k = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var v;
229
- v = pe.current, pe.current = null, qe();
229
+ v = de.current, de.current = null, qe();
230
230
  try {
231
231
  if (t) {
232
232
  var _ = function() {
@@ -240,14 +240,14 @@ function gt() {
240
240
  try {
241
241
  Reflect.construct(_, []);
242
242
  } catch (I) {
243
- i = I;
243
+ o = I;
244
244
  }
245
245
  Reflect.construct(e, [], _);
246
246
  } else {
247
247
  try {
248
248
  _.call();
249
249
  } catch (I) {
250
- i = I;
250
+ o = 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
- i = I;
258
+ o = I;
259
259
  }
260
260
  e();
261
261
  }
262
262
  } catch (I) {
263
- if (I && i && typeof I.stack == "string") {
263
+ if (I && o && typeof I.stack == "string") {
264
264
  for (var m = I.stack.split(`
265
- `), T = i.stack.split(`
265
+ `), T = o.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--)
@@ -270,18 +270,18 @@ function gt() {
270
270
  if (y !== 1 || E !== 1)
271
271
  do
272
272
  if (y--, E--, E < 0 || m[y] !== T[E]) {
273
- var j = `
273
+ var O = `
274
274
  ` + m[y].replace(" at new ", " at ");
275
- return e.displayName && j.includes("<anonymous>") && (j = j.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, j), j;
275
+ return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, O), O;
276
276
  }
277
277
  while (y >= 1 && E >= 0);
278
278
  break;
279
279
  }
280
280
  }
281
281
  } finally {
282
- me = !1, pe.current = v, Ge(), Error.prepareStackTrace = k;
282
+ _e = !1, de.current = v, Ge(), Error.prepareStackTrace = k;
283
283
  }
284
- var L = e ? e.displayName || e.name : "", Me = L ? Q(L) : "";
284
+ var B = e ? e.displayName || e.name : "", Me = B ? Q(B) : "";
285
285
  return typeof e == "function" && ee.set(e, Me), Me;
286
286
  }
287
287
  function ze(e, t, n) {
@@ -311,7 +311,7 @@ function gt() {
311
311
  case w:
312
312
  return te(e.type, t, n);
313
313
  case R: {
314
- var i = e, k = i._payload, v = i._init;
314
+ var o = e, k = o._payload, v = o._init;
315
315
  try {
316
316
  return te(v(k), t, n);
317
317
  } catch {
@@ -328,7 +328,7 @@ function gt() {
328
328
  } else
329
329
  Ce.setExtraStackFrame(null);
330
330
  }
331
- function Xe(e, t, n, i, k) {
331
+ function Xe(e, t, n, o, k) {
332
332
  {
333
333
  var v = Function.call.bind(re);
334
334
  for (var _ in e)
@@ -336,19 +336,19 @@ function gt() {
336
336
  var m = void 0;
337
337
  try {
338
338
  if (typeof e[_] != "function") {
339
- var T = Error((i || "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((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`.");
340
340
  throw T.name = "Invariant Violation", T;
341
341
  }
342
- m = e[_](t, _, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
+ m = e[_](t, _, o, n, 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).", i || "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(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));
347
347
  }
348
348
  }
349
349
  }
350
350
  var Ze = Array.isArray;
351
- function _e(e) {
351
+ function ke(e) {
352
352
  return Ze(e);
353
353
  }
354
354
  function Qe(e) {
@@ -376,8 +376,8 @@ function gt() {
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, Se, $e, ke;
380
- ke = {};
379
+ }, Se, $e, he;
380
+ he = {};
381
381
  function rt(e) {
382
382
  if (re.call(e, "ref")) {
383
383
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -396,8 +396,8 @@ 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 = S(G.current.type);
400
- ke[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', S(G.current.type), e.ref), ke[n] = !0);
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);
401
401
  }
402
402
  }
403
403
  function lt(e, t) {
@@ -422,7 +422,7 @@ function gt() {
422
422
  });
423
423
  }
424
424
  }
425
- var ot = function(e, t, n, i, k, v, _) {
425
+ var it = function(e, t, n, o, k, v, _) {
426
426
  var m = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
428
  $$typeof: s,
@@ -443,7 +443,7 @@ function gt() {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: i
446
+ value: o
447
447
  }), Object.defineProperty(m, "_source", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
@@ -451,7 +451,7 @@ function gt() {
451
451
  value: k
452
452
  }), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
453
453
  };
454
- function it(e, t, n, i, k) {
454
+ function ot(e, t, n, o, k) {
455
455
  {
456
456
  var v, _ = {}, m = null, T = null;
457
457
  n !== void 0 && (Oe(n), m = "" + n), at(t) && (Oe(t.key), m = "" + t.key), rt(t) && (T = t.ref, nt(t, k));
@@ -466,26 +466,26 @@ 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 ot(e, m, T, k, i, G.current, _);
469
+ return it(e, m, T, k, o, G.current, _);
470
470
  }
471
471
  }
472
- var he = P.ReactCurrentOwner, Fe = P.ReactDebugCurrentFrame;
473
- function M(e) {
472
+ var ve = P.ReactCurrentOwner, Fe = P.ReactDebugCurrentFrame;
473
+ function L(e) {
474
474
  if (e) {
475
475
  var t = e._owner, n = te(e.type, e._source, t ? t.type : null);
476
476
  Fe.setExtraStackFrame(n);
477
477
  } else
478
478
  Fe.setExtraStackFrame(null);
479
479
  }
480
- var ve;
481
- ve = !1;
482
- function be(e) {
480
+ var be;
481
+ be = !1;
482
+ function ge(e) {
483
483
  return typeof e == "object" && e !== null && e.$$typeof === s;
484
484
  }
485
485
  function Ie() {
486
486
  {
487
- if (he.current) {
488
- var e = S(he.current.type);
487
+ if (ve.current) {
488
+ var e = j(ve.current.type);
489
489
  if (e)
490
490
  return `
491
491
 
@@ -527,26 +527,26 @@ Check the top-level render call using <` + n + ">.");
527
527
  if (De[n])
528
528
  return;
529
529
  De[n] = !0;
530
- var i = "";
531
- e && e._owner && e._owner !== he.current && (i = " It was passed a child from " + S(e._owner.type) + "."), M(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, i), M(null);
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);
532
532
  }
533
533
  }
534
534
  function We(e, t) {
535
535
  {
536
536
  if (typeof e != "object")
537
537
  return;
538
- if (_e(e))
538
+ if (ke(e))
539
539
  for (var n = 0; n < e.length; n++) {
540
- var i = e[n];
541
- be(i) && Ae(i, t);
540
+ var o = e[n];
541
+ ge(o) && Ae(o, t);
542
542
  }
543
- else if (be(e))
543
+ else if (ge(e))
544
544
  e._store && (e._store.validated = !0);
545
545
  else if (e) {
546
546
  var k = F(e);
547
547
  if (typeof k == "function" && k !== e.entries)
548
548
  for (var v = k.call(e), _; !(_ = v.next()).done; )
549
- be(_.value) && Ae(_.value, t);
549
+ ge(_.value) && Ae(_.value, t);
550
550
  }
551
551
  }
552
552
  }
@@ -565,11 +565,11 @@ Check the top-level render call using <` + n + ">.");
565
565
  else
566
566
  return;
567
567
  if (n) {
568
- var i = S(t);
569
- Xe(n, e.props, "prop", i, e);
570
- } else if (t.PropTypes !== void 0 && !ve) {
571
- ve = !0;
572
- var k = S(t);
568
+ var o = j(t);
569
+ Xe(n, e.props, "prop", o, e);
570
+ } else if (t.PropTypes !== void 0 && !be) {
571
+ be = !0;
572
+ var k = j(t);
573
573
  x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", k || "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.");
@@ -578,41 +578,41 @@ Check the top-level render call using <` + n + ">.");
578
578
  function pt(e) {
579
579
  {
580
580
  for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
581
- var i = t[n];
582
- if (i !== "children" && i !== "key") {
583
- M(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), M(null);
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);
584
584
  break;
585
585
  }
586
586
  }
587
- e.ref !== null && (M(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), M(null));
587
+ e.ref !== null && (L(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
588
588
  }
589
589
  }
590
- function Ye(e, t, n, i, k, v) {
590
+ function Ye(e, t, n, o, k, v) {
591
591
  {
592
- var _ = ie(e);
592
+ var _ = oe(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
596
  var T = ct(k);
597
597
  T ? m += T : m += Ie();
598
598
  var y;
599
- e === null ? y = "null" : _e(e) ? y = "array" : e !== void 0 && e.$$typeof === s ? (y = "<" + (S(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 === 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);
600
600
  }
601
- var E = it(e, t, n, k, v);
601
+ var E = ot(e, t, n, k, v);
602
602
  if (E == null)
603
603
  return E;
604
604
  if (_) {
605
- var j = t.children;
606
- if (j !== void 0)
607
- if (i)
608
- if (_e(j)) {
609
- for (var L = 0; L < j.length; L++)
610
- We(j[L], e);
611
- Object.freeze && Object.freeze(j);
605
+ var O = t.children;
606
+ if (O !== void 0)
607
+ if (o)
608
+ if (ke(O)) {
609
+ for (var B = 0; B < O.length; B++)
610
+ We(O[B], e);
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
- We(j, e);
615
+ We(O, e);
616
616
  }
617
617
  return e === c ? pt(E) : ft(E), E;
618
618
  }
@@ -627,13 +627,13 @@ Check the top-level render call using <` + n + ">.");
627
627
  z.Fragment = c, z.jsx = _t, z.jsxs = kt;
628
628
  }()), z;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Ne.exports = bt() : Ne.exports = gt();
631
- var ye = Ne.exports;
632
- const B = ye.Fragment, r = ye.jsx, u = ye.jsxs, ge = {}, Nt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
630
+ process.env.NODE_ENV === "production" ? ye.exports = bt() : ye.exports = gt();
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
633
  function yt(l, s) {
634
- return !ge[l] && typeof window.fetch == "function" && (ge[l] = window.fetch(s + l + ".svg").then((o) => o.ok ? o.text() : (console.error("Missing icon: " + s + l + ".svg"), Nt)).then((o) => o)), Promise.resolve(ge[l]);
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]);
635
635
  }
636
- const b = ({ name: l, path: s, className: o = "", ...c }) => {
636
+ const b = ({ name: l, path: s, className: i = "", ...c }) => {
637
637
  const f = "https://punkt-cdn.oslo.kommune.no/5.2/icons/", [a, p] = le(null);
638
638
  return ht(() => {
639
639
  if (!l)
@@ -642,7 +642,7 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
642
642
  }, [l, s, f]), a ? /* @__PURE__ */ r(
643
643
  "span",
644
644
  {
645
- className: `pkt-icon ${o}`,
645
+ className: `pkt-icon ${i}`,
646
646
  dangerouslySetInnerHTML: { __html: a },
647
647
  ...c
648
648
  }
@@ -651,7 +651,7 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
651
651
  ({
652
652
  children: l,
653
653
  className: s,
654
- skin: o = "info",
654
+ skin: i = "info",
655
655
  closeAlert: c = !1,
656
656
  onClose: f,
657
657
  title: a,
@@ -659,7 +659,7 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
659
659
  ariaLive: h = "polite",
660
660
  ...d
661
661
  }, g) => {
662
- const N = [s, "pkt-alert", o && `pkt-alert--${o}`].filter(Boolean).join(" "), [w, R] = le(!0), C = () => {
662
+ const N = [s, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [w, R] = le(!0), C = () => {
663
663
  R(!1), f && f();
664
664
  };
665
665
  return w ? /* @__PURE__ */ u("div", { ...d, className: N, "aria-live": h, ref: g, children: [
@@ -667,7 +667,7 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
667
667
  b,
668
668
  {
669
669
  className: "pkt-alert__icon",
670
- name: o === "info" ? "alert-information" : `alert-${o}`
670
+ name: i === "info" ? "alert-information" : `alert-${i}`
671
671
  }
672
672
  ),
673
673
  c && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
@@ -693,7 +693,7 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
693
693
  ({
694
694
  children: l,
695
695
  className: s,
696
- iconName: o = "user",
696
+ iconName: i = "user",
697
697
  secondIconName: c = "user",
698
698
  size: f = "medium",
699
699
  skin: a = "primary",
@@ -709,14 +709,14 @@ const b = ({ name: l, path: s, className: o = "", ...c }) => {
709
709
  h && `pkt-btn--${h}`
710
710
  ].filter(Boolean).join(" ");
711
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: o }),
712
+ h !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: i }),
713
713
  /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: l }),
714
714
  h === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: c })
715
715
  ] });
716
716
  }
717
717
  );
718
718
  Ue.displayName = "PktButton";
719
- const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
719
+ const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
720
720
  var c, f;
721
721
  return /* @__PURE__ */ r("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ u("div", { className: "pkt-footer__container", children: [
722
722
  /* @__PURE__ */ u("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -779,8 +779,8 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
779
779
  ] })
780
780
  ] })
781
781
  ] }),
782
- o && /* @__PURE__ */ u("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
783
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: o.filter((a) => a.language).map((a, p) => /* @__PURE__ */ r(
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(
784
784
  "div",
785
785
  {
786
786
  className: "pkt-footer__social-language",
@@ -797,7 +797,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
797
797
  },
798
798
  `sociallinks-language-${p}`
799
799
  )) }),
800
- /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: o.filter((a) => a.iconName).map((a, p) => /* @__PURE__ */ r(ne.Fragment, { children: /* @__PURE__ */ r(
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
801
  "a",
802
802
  {
803
803
  href: a.href,
@@ -813,7 +813,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
813
813
  }, $t = ({
814
814
  links: l = []
815
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, o) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u(
816
+ l.map((s, i) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u(
817
817
  "a",
818
818
  {
819
819
  className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
@@ -831,7 +831,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
831
831
  s.text
832
832
  ]
833
833
  }
834
- ) }, o)),
834
+ ) }, i)),
835
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
836
  /* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
837
837
  "Personvern og informasjonskapsler"
@@ -843,7 +843,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
843
843
  ] }) }) }), Ft = ({
844
844
  className: l,
845
845
  logoLink: s = "https://www.oslo.kommune.no/",
846
- isLoggedIn: o = !1,
846
+ isLoggedIn: i = !1,
847
847
  representing: c = "",
848
848
  canChangeRepresentation: f = !1,
849
849
  showLogInButton: a = !0,
@@ -855,7 +855,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
855
855
  return /* @__PURE__ */ u("header", { id: "pkt-header", className: g, "aria-label": "Topp", children: [
856
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
857
  /* @__PURE__ */ u("div", { className: "pkt-header__actions", children: [
858
- o && f && /* @__PURE__ */ u(
858
+ i && f && /* @__PURE__ */ u(
859
859
  "button",
860
860
  {
861
861
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
@@ -869,11 +869,11 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
869
869
  ]
870
870
  }
871
871
  ),
872
- o && !f && /* @__PURE__ */ u("div", { className: "pkt-header__action", children: [
872
+ i && !f && /* @__PURE__ */ u("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
- a && o && /* @__PURE__ */ u(
876
+ a && i && /* @__PURE__ */ u(
877
877
  "button",
878
878
  {
879
879
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
@@ -885,7 +885,7 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
885
885
  ]
886
886
  }
887
887
  ),
888
- a && !o && /* @__PURE__ */ u(
888
+ a && !i && /* @__PURE__ */ u(
889
889
  "button",
890
890
  {
891
891
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
@@ -900,10 +900,10 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: o }) => {
900
900
  ] })
901
901
  ] });
902
902
  }, xt = ne.forwardRef(
903
- ({ label: l, id: s, children: o, ...c }, f) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
903
+ ({ label: l, id: s, children: i, ...c }, f) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
904
904
  /* @__PURE__ */ r("label", { htmlFor: s, className: "pkt-form-label", children: l }),
905
905
  /* @__PURE__ */ r("input", { className: "pkt-form-input", id: s, ...c, ref: f }),
906
- o
906
+ i
907
907
  ] })
908
908
  );
909
909
  xt.displayName = "PktInput";
@@ -911,7 +911,7 @@ const Et = W(
911
911
  ({
912
912
  children: l,
913
913
  className: s,
914
- iconName: o = "user",
914
+ iconName: i = "user",
915
915
  openInNewTab: c = !1,
916
916
  skin: f = "normal",
917
917
  href: a = "#",
@@ -928,7 +928,7 @@ const Et = W(
928
928
  rel: c ? "noopener noreferrer" : void 0,
929
929
  ref: d,
930
930
  children: [
931
- /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: o }),
931
+ /* @__PURE__ */ r(b, { className: "pkt-link__icon", name: i }),
932
932
  /* @__PURE__ */ u("div", { className: "pkt-linkcard__content", children: [
933
933
  /* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${p ? "pkt-link pkt-link--external" : ""}`, children: h }),
934
934
  /* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: l })
@@ -942,22 +942,22 @@ Et.displayName = "PktLinkCard";
942
942
  const It = ({
943
943
  children: l,
944
944
  skin: s = "beige",
945
- title: o,
945
+ title: i,
946
946
  ...c
947
947
  }) => {
948
948
  const f = ["pkt-messagebox", s && `pkt-messagebox--${s}`].filter(Boolean).join(" ");
949
949
  return /* @__PURE__ */ u("div", { ...c, className: f, children: [
950
- /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: o }),
950
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: i }),
951
951
  /* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: l })
952
952
  ] });
953
953
  }, wt = W(
954
- ({ id: l, name: s, label: o, value: c, ...f }, a) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
954
+ ({ id: l, name: s, label: i, value: c, ...f }, a) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
955
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: o })
956
+ /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: l, children: i })
957
957
  ] })
958
958
  );
959
959
  wt.displayName = "PktRadio";
960
- const Dt = ({ label: l, children: s }) => /* @__PURE__ */ u(B, { children: [
960
+ const Dt = ({ label: l, children: s }) => /* @__PURE__ */ u(V, { children: [
961
961
  /* @__PURE__ */ r("p", { children: l }),
962
962
  /* @__PURE__ */ r("div", { className: "pkt-form-group", children: s })
963
963
  ] });
@@ -970,7 +970,7 @@ var He = { exports: {} };
970
970
  (function(l) {
971
971
  (function() {
972
972
  var s = {}.hasOwnProperty;
973
- function o() {
973
+ function i() {
974
974
  for (var c = [], f = 0; f < arguments.length; f++) {
975
975
  var a = arguments[f];
976
976
  if (a) {
@@ -979,7 +979,7 @@ var He = { exports: {} };
979
979
  c.push(a);
980
980
  else if (Array.isArray(a)) {
981
981
  if (a.length) {
982
- var h = o.apply(null, a);
982
+ var h = i.apply(null, a);
983
983
  h && c.push(h);
984
984
  }
985
985
  } else if (p === "object") {
@@ -994,20 +994,20 @@ var He = { exports: {} };
994
994
  }
995
995
  return c.join(" ");
996
996
  }
997
- l.exports ? (o.default = o, l.exports = o) : window.classNames = o;
997
+ l.exports ? (i.default = i, l.exports = i) : window.classNames = i;
998
998
  })();
999
999
  })(He);
1000
1000
  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(B, { children: s }), At = ({
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
1002
  isResponsive: l,
1003
- modifiers: { info: s = !1, success: o = !1, strong: c = !1, shadow: f = !1 } = {},
1003
+ modifiers: { info: s = !1, success: i = !1, strong: c = !1, shadow: f = !1 } = {},
1004
1004
  children: a
1005
1005
  }) => /* @__PURE__ */ r(Tt, { isResponsive: l, children: /* @__PURE__ */ r(
1006
1006
  "table",
1007
1007
  {
1008
1008
  className: Pt("pkt-table", {
1009
1009
  "pkt-table--info": s,
1010
- "pkt-table--success": o,
1010
+ "pkt-table--success": i,
1011
1011
  "pkt-table--strong": c,
1012
1012
  "pkt-table--shadow": f
1013
1013
  }),
@@ -1016,7 +1016,7 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
1016
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
1017
  children: l,
1018
1018
  className: s,
1019
- skin: o = "blue",
1019
+ skin: i = "blue",
1020
1020
  textStyle: c = "normal-text",
1021
1021
  size: f = "medium",
1022
1022
  closeTag: a = !1,
@@ -1031,24 +1031,24 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
1031
1031
  }, $ = [
1032
1032
  "pkt-tag",
1033
1033
  f && `pkt-tag--${f}`,
1034
- o && `pkt-tag--${o}`,
1034
+ i && `pkt-tag--${i}`,
1035
1035
  c && `pkt-tag--${c}`,
1036
1036
  s
1037
- ].filter(Boolean).join(" "), O = [
1037
+ ].filter(Boolean).join(" "), S = [
1038
1038
  "pkt-tag",
1039
1039
  "pkt-btn",
1040
1040
  "pkt-btn--tertiary",
1041
1041
  f && `pkt-tag--${f}`,
1042
- o && `pkt-tag--${o}`,
1042
+ i && `pkt-tag--${i}`,
1043
1043
  c && `pkt-tag--${c}`,
1044
1044
  p && a ? "pkt-btn--icons-right-and-left" : null,
1045
1045
  a && !p ? "pkt-btn--icon-right" : null,
1046
1046
  s
1047
1047
  ].filter(Boolean).join(" "), F = !w;
1048
- return a && p ? /* @__PURE__ */ r(B, { children: F && /* @__PURE__ */ u(
1048
+ return a && p ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ u(
1049
1049
  "button",
1050
1050
  {
1051
- className: O,
1051
+ className: S,
1052
1052
  type: h,
1053
1053
  "aria-label": d,
1054
1054
  onClick: C,
@@ -1059,10 +1059,10 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
1059
1059
  /* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" })
1060
1060
  ]
1061
1061
  }
1062
- ) }) : a ? /* @__PURE__ */ r(B, { children: F && /* @__PURE__ */ u(
1062
+ ) }) : a ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ u(
1063
1063
  "button",
1064
1064
  {
1065
- className: O,
1065
+ className: S,
1066
1066
  type: h,
1067
1067
  "aria-label": d,
1068
1068
  onClick: C,
@@ -1079,9 +1079,9 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
1079
1079
  });
1080
1080
  Ct.displayName = "PktTag";
1081
1081
  const jt = W(
1082
- ({ id: l, label: s, ...o }, c) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
1082
+ ({ id: l, label: s, ...i }, c) => /* @__PURE__ */ u("div", { className: "pkt-form-group", children: [
1083
1083
  /* @__PURE__ */ r("label", { htmlFor: l, className: "pkt-form-label", children: s }),
1084
- /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: l, ref: c, ...o })
1084
+ /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: l, ref: c, ...i })
1085
1085
  ] })
1086
1086
  );
1087
1087
  jt.displayName = "PktTextarea";
@@ -1089,7 +1089,7 @@ const Mt = W(
1089
1089
  ({
1090
1090
  id: l,
1091
1091
  label: s,
1092
- name: o,
1092
+ name: i,
1093
1093
  srOnlyLabel: c = !1,
1094
1094
  helptext: f,
1095
1095
  helptextDropdown: a,
@@ -1102,18 +1102,19 @@ const Mt = W(
1102
1102
  type: R = "text",
1103
1103
  autocomplete: C = "off",
1104
1104
  value: $,
1105
- suffix: O,
1105
+ suffix: S,
1106
1106
  prefix: F,
1107
1107
  iconNameRight: P,
1108
1108
  disabled: x = !1,
1109
1109
  inline: se = !1,
1110
- ariaLabelledby: V,
1110
+ ariaLabelledby: U,
1111
1111
  ariaDescribedby: K,
1112
- className: oe
1113
- }, U) => {
1114
- const [H, X] = le(!1), ie = () => {
1115
- X(!H);
1116
- }, ce = () => 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" : "", q = h ? "Valgfritt" : d ? "Må fylles ut" : "", Z = [oe, "pkt-textinput", x ? "pkt-textinput--disabled" : "", se ? "pkt-textinput--inline" : "", g ? "pkt-textinput--error" : ""].join(
1112
+ className: ie,
1113
+ ...H
1114
+ }, 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(
1117
1118
  " "
1118
1119
  ), A = !!a && a !== "";
1119
1120
  return /* @__PURE__ */ u("div", { className: Z, children: [
@@ -1126,20 +1127,20 @@ const Mt = W(
1126
1127
  children: [
1127
1128
  /* @__PURE__ */ u(A ? "h2" : "span", { children: [
1128
1129
  s,
1129
- q !== "" && /* @__PURE__ */ r("span", { className: ce(), children: q })
1130
+ j !== "" && /* @__PURE__ */ r("span", { className: X(), children: j })
1130
1131
  ] }),
1131
1132
  f && /* @__PURE__ */ r("div", { className: "pkt-textinput__helptext", children: f }),
1132
- A && /* @__PURE__ */ u(B, { children: [
1133
+ A && /* @__PURE__ */ u(V, { children: [
1133
1134
  /* @__PURE__ */ r(
1134
1135
  Ue,
1135
1136
  {
1136
1137
  skin: "tertiary",
1137
1138
  size: "small",
1138
1139
  variant: "icon-right",
1139
- iconName: H ? "chevron-thin-up" : "chevron-thin-down",
1140
+ iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
1140
1141
  className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
1141
- onClick: ie,
1142
- children: p || /* @__PURE__ */ u(B, { children: [
1142
+ onClick: ce,
1143
+ children: p || /* @__PURE__ */ u(V, { children: [
1143
1144
  "Les mer ",
1144
1145
  /* @__PURE__ */ r("span", { className: "pkt-sr-only", children: "om inputfeltet" })
1145
1146
  ] })
@@ -1148,7 +1149,7 @@ const Mt = W(
1148
1149
  /* @__PURE__ */ r(
1149
1150
  "div",
1150
1151
  {
1151
- className: `pkt-textinput__helptext ${H ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
1152
+ className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
1152
1153
  children: /* @__PURE__ */ r(Ve, { children: a })
1153
1154
  }
1154
1155
  ),
@@ -1167,10 +1168,10 @@ const Mt = W(
1167
1168
  /* @__PURE__ */ r(
1168
1169
  "input",
1169
1170
  {
1170
- ref: U,
1171
+ ref: q,
1171
1172
  className: "pkt-textinput__input",
1172
1173
  type: R,
1173
- name: o || l,
1174
+ name: i || l,
1174
1175
  id: l,
1175
1176
  placeholder: w,
1176
1177
  autoComplete: C,
@@ -1178,18 +1179,19 @@ const Mt = W(
1178
1179
  disabled: x,
1179
1180
  "aria-required": d,
1180
1181
  "aria-invalid": g,
1181
- "aria-labelledby": V
1182
+ "aria-labelledby": U,
1183
+ ...H
1182
1184
  }
1183
1185
  )
1184
1186
  ] }),
1185
- !F && (O || P) && /* @__PURE__ */ u("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1187
+ !F && (S || P) && /* @__PURE__ */ u("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1186
1188
  /* @__PURE__ */ r(
1187
1189
  "input",
1188
1190
  {
1189
- ref: U,
1191
+ ref: q,
1190
1192
  className: "pkt-textinput__input",
1191
1193
  type: R,
1192
- name: o || l,
1194
+ name: i || l,
1193
1195
  id: l,
1194
1196
  placeholder: w,
1195
1197
  autoComplete: C,
@@ -1197,22 +1199,23 @@ const Mt = W(
1197
1199
  disabled: x,
1198
1200
  "aria-required": d,
1199
1201
  "aria-invalid": g,
1200
- "aria-labelledby": V
1202
+ "aria-labelledby": U,
1203
+ ...H
1201
1204
  }
1202
1205
  ),
1203
- O && /* @__PURE__ */ u("p", { className: "pkt-textinput__input-suffix", children: [
1204
- O,
1206
+ S && /* @__PURE__ */ u("p", { className: "pkt-textinput__input-suffix", children: [
1207
+ S,
1205
1208
  P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-suffix-icon", name: P })
1206
1209
  ] }),
1207
- !O && P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-icon", name: P })
1210
+ !S && P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-icon", name: P })
1208
1211
  ] }),
1209
- !F && !O && !P && !a && /* @__PURE__ */ r(
1212
+ !F && !S && !P && !a && /* @__PURE__ */ r(
1210
1213
  "input",
1211
1214
  {
1212
- ref: U,
1215
+ ref: q,
1213
1216
  className: "pkt-textinput__input",
1214
1217
  type: R,
1215
- name: o || l,
1218
+ name: i || l,
1216
1219
  id: l,
1217
1220
  placeholder: w,
1218
1221
  autoComplete: C,
@@ -1220,7 +1223,8 @@ const Mt = W(
1220
1223
  disabled: x,
1221
1224
  "aria-required": d,
1222
1225
  "aria-invalid": g,
1223
- "aria-labelledby": V
1226
+ "aria-labelledby": U,
1227
+ ...H
1224
1228
  }
1225
1229
  )
1226
1230
  ]
@@ -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 Xe(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var le={exports:{}},U={};/**
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 Xe(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var le={exports:{}},H={};/**
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 Ee;function Ze(){if(Ee)return U;Ee=1;var l=E,s=Symbol.for("react.element"),o=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};function p(h,d,N){var y,P={},T=null,S=null;N!==void 0&&(T=""+N),d.key!==void 0&&(T=""+d.key),d.ref!==void 0&&(S=d.ref);for(y in d)c.call(d,y)&&!a.hasOwnProperty(y)&&(P[y]=d[y]);if(h&&h.defaultProps)for(y in d=h.defaultProps,d)P[y]===void 0&&(P[y]=d[y]);return{$$typeof:s,type:h,key:T,ref:S,props:P,_owner:f.current}}return U.Fragment=o,U.jsx=p,U.jsxs=p,U}var H={};/**
9
+ */var Re;function Ze(){if(Re)return H;Re=1;var l=E,s=Symbol.for("react.element"),o=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};function p(h,d,N){var y,P={},T=null,S=null;N!==void 0&&(T=""+N),d.key!==void 0&&(T=""+d.key),d.ref!==void 0&&(S=d.ref);for(y in d)c.call(d,y)&&!a.hasOwnProperty(y)&&(P[y]=d[y]);if(h&&h.defaultProps)for(y in d=h.defaultProps,d)P[y]===void 0&&(P[y]=d[y]);return{$$typeof:s,type:h,key:T,ref:S,props:P,_owner:f.current}}return H.Fragment=o,H.jsx=p,H.jsxs=p,H}var G={};/**
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 Re;function Qe(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&function(){var l=E,s=Symbol.for("react.element"),o=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"),N=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),D=Symbol.iterator,F="@@iterator";function A(e){if(e===null||typeof e!="object")return null;var t=D&&e[D]||e[F];return typeof t=="function"?t:null}var C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];ue("error",e,n)}}function ue(e,t,n){{var i=C.ReactDebugCurrentFrame,_=i.getStackAddendum();_!==""&&(t+="%s",n=n.concat([_]));var v=n.map(function(k){return String(k)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var G=!1,Z=!1,fe=!1,J=!1,z=!1,Q;Q=Symbol.for("react.module.reference");function pe(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===a||z||e===f||e===N||e===y||J||e===S||G||Z||fe||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===P||e.$$typeof===p||e.$$typeof===h||e.$$typeof===d||e.$$typeof===Q||e.getModuleId!==void 0))}function de(e,t,n){var i=e.displayName;if(i)return i;var _=t.displayName||t.name||"";return _!==""?n+"("+_+")":n}function K(e){return e.displayName||"Context"}function I(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 o:return"Portal";case a:return"Profiler";case f:return"StrictMode";case N:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return K(t)+".Consumer";case p:var n=e;return K(n._context)+".Provider";case d:return de(e,e.render,"ForwardRef");case P:var i=e.displayName||null;return i!==null?i:I(e.type)||"Memo";case T:{var _=e,v=_._payload,k=_._init;try{return I(k(v))}catch{return null}}}return null}var M=Object.assign,L=0,q,Y,me,ke,Oe,Fe,Ie;function De(){}De.__reactDisabledLog=!0;function dt(){{if(L===0){q=console.log,Y=console.info,me=console.warn,ke=console.error,Oe=console.group,Fe=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function mt(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:q}),info:M({},e,{value:Y}),warn:M({},e,{value:me}),error:M({},e,{value:ke}),group:M({},e,{value:Oe}),groupCollapsed:M({},e,{value:Fe}),groupEnd:M({},e,{value:Ie})})}L<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=C.ReactCurrentDispatcher,he;function ee(e,t,n){{if(he===void 0)try{throw Error()}catch(_){var i=_.stack.trim().match(/\n( *(at )?)/);he=i&&i[1]||""}return`
18
- `+he+e}}var ve=!1,te;{var kt=typeof WeakMap=="function"?WeakMap:Map;te=new kt}function Ae(e,t){if(!e||ve)return"";{var n=te.get(e);if(n!==void 0)return n}var i;ve=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=_e.current,_e.current=null,dt();try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(W){i=W}Reflect.construct(e,[],k)}else{try{k.call()}catch(W){i=W}e.call(k.prototype)}}else{try{throw Error()}catch(W){i=W}e()}}catch(W){if(W&&i&&typeof W.stack=="string"){for(var m=W.stack.split(`
17
+ */var we;function Qe(){return we||(we=1,process.env.NODE_ENV!=="production"&&function(){var l=E,s=Symbol.for("react.element"),o=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"),N=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),D=Symbol.iterator,I="@@iterator";function A(e){if(e===null||typeof e!="object")return null;var t=D&&e[D]||e[I];return typeof t=="function"?t:null}var C=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];ue("error",e,n)}}function ue(e,t,n){{var i=C.ReactDebugCurrentFrame,_=i.getStackAddendum();_!==""&&(t+="%s",n=n.concat([_]));var v=n.map(function(k){return String(k)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var J=!1,Z=!1,fe=!1,z=!1,K=!1,L;L=Symbol.for("react.module.reference");function pe(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===a||K||e===f||e===N||e===y||z||e===S||J||Z||fe||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===P||e.$$typeof===p||e.$$typeof===h||e.$$typeof===d||e.$$typeof===L||e.getModuleId!==void 0))}function de(e,t,n){var i=e.displayName;if(i)return i;var _=t.displayName||t.name||"";return _!==""?n+"("+_+")":n}function Q(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 o:return"Portal";case a:return"Profiler";case f:return"StrictMode";case N:return"Suspense";case y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return Q(t)+".Consumer";case p:var n=e;return Q(n._context)+".Provider";case d:return de(e,e.render,"ForwardRef");case P:var i=e.displayName||null;return i!==null?i:O(e.type)||"Memo";case T:{var _=e,v=_._payload,k=_._init;try{return O(k(v))}catch{return null}}}return null}var M=Object.assign,B=0,me,q,Y,ke,_e,Fe,Ie;function De(){}De.__reactDisabledLog=!0;function dt(){{if(B===0){me=console.log,q=console.info,Y=console.warn,ke=console.error,_e=console.group,Fe=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function mt(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:me}),info:M({},e,{value:q}),warn:M({},e,{value:Y}),error:M({},e,{value:ke}),group:M({},e,{value:_e}),groupCollapsed:M({},e,{value:Fe}),groupEnd:M({},e,{value:Ie})})}B<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=C.ReactCurrentDispatcher,ve;function ee(e,t,n){{if(ve===void 0)try{throw Error()}catch(_){var i=_.stack.trim().match(/\n( *(at )?)/);ve=i&&i[1]||""}return`
18
+ `+ve+e}}var be=!1,te;{var kt=typeof WeakMap=="function"?WeakMap:Map;te=new kt}function Ae(e,t){if(!e||be)return"";{var n=te.get(e);if(n!==void 0)return n}var i;be=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=he.current,he.current=null,dt();try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(W){i=W}Reflect.construct(e,[],k)}else{try{k.call()}catch(W){i=W}e.call(k.prototype)}}else{try{throw Error()}catch(W){i=W}e()}}catch(W){if(W&&i&&typeof W.stack=="string"){for(var m=W.stack.split(`
19
19
  `),j=i.stack.split(`
20
- `),x=m.length-1,w=j.length-1;x>=1&&w>=0&&m[x]!==j[w];)w--;for(;x>=1&&w>=0;x--,w--)if(m[x]!==j[w]){if(x!==1||w!==1)do if(x--,w--,w<0||m[x]!==j[w]){var O=`
21
- `+m[x].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,O),O}while(x>=1&&w>=0);break}}}finally{ve=!1,_e.current=v,mt(),Error.prepareStackTrace=_}var V=e?e.displayName||e.name:"",Ke=V?ee(V):"";return typeof e=="function"&&te.set(e,Ke),Ke}function _t(e,t,n){return Ae(e,!1)}function ht(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,n){if(e==null)return"";if(typeof e=="function")return Ae(e,ht(e));if(typeof e=="string")return ee(e);switch(e){case N:return ee("Suspense");case y:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return _t(e.render);case P:return re(e.type,t,n);case T:{var i=e,_=i._payload,v=i._init;try{return re(v(_),t,n)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,We={},Me=C.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=re(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function vt(e,t,n,i,_){{var v=Function.call.bind(ae);for(var k in e)if(v(e,k)){var m=void 0;try{if(typeof e[k]!="function"){var j=Error((i||"React class")+": "+n+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}m=e[k](t,k,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){m=x}m&&!(m instanceof Error)&&(ne(_),R("%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",n,k,typeof m),ne(null)),m instanceof Error&&!(m.message in We)&&(We[m.message]=!0,ne(_),R("Failed %s type: %s",n,m.message),ne(null))}}}var bt=Array.isArray;function be(e){return bt(e)}function gt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Nt(e){try{return Ye(e),!1}catch{return!0}}function Ye(e){return""+e}function $e(e){if(Nt(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gt(e)),Ye(e)}var X=C.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},Le,Be,ge;ge={};function xt(e){if(ae.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(ae.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Rt(e,t){if(typeof e.ref=="string"&&X.current&&t&&X.current.stateNode!==t){var n=I(X.current.type);ge[n]||(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',I(X.current.type),e.ref),ge[n]=!0)}}function wt(e,t){{var n=function(){Le||(Le=!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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Pt(e,t){{var n=function(){Be||(Be=!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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Tt=function(e,t,n,i,_,v,k){var m={$$typeof:s,type:e,key:t,ref:n,props:k,_owner:v};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Ct(e,t,n,i,_){{var v,k={},m=null,j=null;n!==void 0&&($e(n),m=""+n),Et(t)&&($e(t.key),m=""+t.key),xt(t)&&(j=t.ref,Rt(t,_));for(v in t)ae.call(t,v)&&!yt.hasOwnProperty(v)&&(k[v]=t[v]);if(e&&e.defaultProps){var x=e.defaultProps;for(v in x)k[v]===void 0&&(k[v]=x[v])}if(m||j){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&wt(k,w),j&&Pt(k,w)}return Tt(e,m,j,_,i,X.current,k)}}var Ne=C.ReactCurrentOwner,Ve=C.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,n=re(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var ye;ye=!1;function xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ue(){{if(Ne.current){var e=I(Ne.current.type);if(e)return`
20
+ `),x=m.length-1,w=j.length-1;x>=1&&w>=0&&m[x]!==j[w];)w--;for(;x>=1&&w>=0;x--,w--)if(m[x]!==j[w]){if(x!==1||w!==1)do if(x--,w--,w<0||m[x]!==j[w]){var F=`
21
+ `+m[x].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,F),F}while(x>=1&&w>=0);break}}}finally{be=!1,he.current=v,mt(),Error.prepareStackTrace=_}var U=e?e.displayName||e.name:"",Ke=U?ee(U):"";return typeof e=="function"&&te.set(e,Ke),Ke}function _t(e,t,n){return Ae(e,!1)}function ht(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,n){if(e==null)return"";if(typeof e=="function")return Ae(e,ht(e));if(typeof e=="string")return ee(e);switch(e){case N:return ee("Suspense");case y:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return _t(e.render);case P:return re(e.type,t,n);case T:{var i=e,_=i._payload,v=i._init;try{return re(v(_),t,n)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,We={},Me=C.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=re(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(n)}else Me.setExtraStackFrame(null)}function vt(e,t,n,i,_){{var v=Function.call.bind(ae);for(var k in e)if(v(e,k)){var m=void 0;try{if(typeof e[k]!="function"){var j=Error((i||"React class")+": "+n+" type `"+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[k]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}m=e[k](t,k,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(x){m=x}m&&!(m instanceof Error)&&(ne(_),R("%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",n,k,typeof m),ne(null)),m instanceof Error&&!(m.message in We)&&(We[m.message]=!0,ne(_),R("Failed %s type: %s",n,m.message),ne(null))}}}var bt=Array.isArray;function ge(e){return bt(e)}function gt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function Nt(e){try{return Ye(e),!1}catch{return!0}}function Ye(e){return""+e}function $e(e){if(Nt(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",gt(e)),Ye(e)}var X=C.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},Le,Be,Ne;Ne={};function xt(e){if(ae.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(ae.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Rt(e,t){if(typeof e.ref=="string"&&X.current&&t&&X.current.stateNode!==t){var n=O(X.current.type);Ne[n]||(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',O(X.current.type),e.ref),Ne[n]=!0)}}function wt(e,t){{var n=function(){Le||(Le=!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))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Pt(e,t){{var n=function(){Be||(Be=!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))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Tt=function(e,t,n,i,_,v,k){var m={$$typeof:s,type:e,key:t,ref:n,props:k,_owner:v};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function Ct(e,t,n,i,_){{var v,k={},m=null,j=null;n!==void 0&&($e(n),m=""+n),Et(t)&&($e(t.key),m=""+t.key),xt(t)&&(j=t.ref,Rt(t,_));for(v in t)ae.call(t,v)&&!yt.hasOwnProperty(v)&&(k[v]=t[v]);if(e&&e.defaultProps){var x=e.defaultProps;for(v in x)k[v]===void 0&&(k[v]=x[v])}if(m||j){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&wt(k,w),j&&Pt(k,w)}return Tt(e,m,j,_,i,X.current,k)}}var ye=C.ReactCurrentOwner,Ve=C.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=re(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var xe;xe=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ue(){{if(ye.current){var e=O(ye.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(/^.*[\\\/]/,""),n=e.lineNumber;return`
24
24
 
25
25
  Check your code at `+t+":"+n+"."}return""}}var He={};function St(e){{var t=Ue();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
26
26
 
27
- Check the top-level render call using <`+n+">.")}return t}}function Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=St(t);if(He[n])return;He[n]=!0;var i="";e&&e._owner&&e._owner!==Ne.current&&(i=" It was passed a child from "+I(e._owner.type)+"."),B(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),B(null)}}function Je(e,t){{if(typeof e!="object")return;if(be(e))for(var n=0;n<e.length;n++){var i=e[n];xe(i)&&Ge(i,t)}else if(xe(e))e._store&&(e._store.validated=!0);else if(e){var _=A(e);if(typeof _=="function"&&_!==e.entries)for(var v=_.call(e),k;!(k=v.next()).done;)xe(k.value)&&Ge(k.value,t)}}}function Ot(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===P))n=t.propTypes;else return;if(n){var i=I(t);vt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!ye){ye=!0;var _=I(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ft(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){B(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),B(null);break}}e.ref!==null&&(B(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}function ze(e,t,n,i,_,v){{var k=pe(e);if(!k){var m="";(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.");var j=jt(_);j?m+=j:m+=Ue();var x;e===null?x="null":be(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(I(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):x=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",x,m)}var w=Ct(e,t,n,_,v);if(w==null)return w;if(k){var O=t.children;if(O!==void 0)if(i)if(be(O)){for(var V=0;V<O.length;V++)Je(O[V],e);Object.freeze&&Object.freeze(O)}else R("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 Je(O,e)}return e===c?Ft(w):Ot(w),w}}function It(e,t,n){return ze(e,t,n,!0)}function Dt(e,t,n){return ze(e,t,n,!1)}var At=Dt,Wt=It;H.Fragment=c,H.jsx=At,H.jsxs=Wt}()),H}process.env.NODE_ENV==="production"?le.exports=Ze():le.exports=Qe();var se=le.exports;const $=se.Fragment,r=se.jsx,u=se.jsxs,oe={},qe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function et(l,s){return!oe[l]&&typeof window.fetch=="function"&&(oe[l]=window.fetch(s+l+".svg").then(o=>o.ok?o.text():(console.error("Missing icon: "+s+l+".svg"),qe)).then(o=>o)),Promise.resolve(oe[l])}const b=({name:l,path:s,className:o="",...c})=>{const f="https://punkt-cdn.oslo.kommune.no/5.2/icons/",[a,p]=E.useState(null);return E.useEffect(()=>{if(!l)return;et(l,s||f).then(d=>p(d))},[l,s,f]),a?r("span",{className:`pkt-icon ${o}`,dangerouslySetInnerHTML:{__html:a},...c}):null},ie=E.forwardRef(({children:l,className:s,skin:o="info",closeAlert:c=!1,onClose:f,title:a,date:p,ariaLive:h="polite",...d},N)=>{const y=[s,"pkt-alert",o&&`pkt-alert--${o}`].filter(Boolean).join(" "),[P,T]=E.useState(!0),S=()=>{T(!1),f&&f()};return P?u("div",{...d,className:y,"aria-live":h,ref:N,children:[r(b,{className:"pkt-alert__icon",name:o==="info"?"alert-information":`alert-${o}`}),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:S,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),a&&r("div",{className:"pkt-alert__title",children:a}),r("div",{className:"pkt-alert__text",children:l}),p&&u("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",p]})]}):null}),ce=E.forwardRef(({children:l,className:s,iconName:o="user",secondIconName:c="user",size:f="medium",skin:a="primary",type:p="button",variant:h="label-only",...d},N)=>{const y=[s,"pkt-btn",f&&`pkt-btn--${f}`,a&&`pkt-btn--${a}`,h&&`pkt-btn--${h}`].filter(Boolean).join(" ");return u("button",{...d,className:y,type:p,ref:N,children:[h!=="label-only"&&r(b,{className:"pkt-btn__icon",name:o}),r("span",{className:"pkt-btn__text",children:l}),h==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});ce.displayName="PktButton";const tt=({columnOne:l,columnTwo:s,socialLinks:o})=>{var c,f;return r("footer",{className:"pkt-footer","data-mode":"dark",children:u("div",{className:"pkt-footer__container",children:[u("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[u("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}),u("ul",{className:"pkt-footer__list",children:[l.text&&r("li",{className:"pkt-footer__text",children:l.text}),(c=l.links)==null?void 0:c.map((a,p)=>r("li",{className:"pkt-footer__list-item",children:u("a",{className:`pkt-footer__link ${a.external?"pkt-link--external":""}`,href:a.href,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),a.text]})},`links-${p}`))]})]}),u("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}),u("ul",{className:"pkt-footer__list",children:[s.text&&r("li",{className:"pkt-footer__text",children:s.text}),(f=s.links)==null?void 0:f.map((a,p)=>r("li",{className:"pkt-footer__list-item",children:u("a",{className:`pkt-footer__link ${a.external?"pkt-link--external":""}`,href:a.href,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),a.text]})},`links-${p}`))]})]}),u("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"}),u("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:u("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:u("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),o&&u("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:o.filter(a=>a.language).map((a,p)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:a.href,"aria-label":`til ${a.language} versjon av nettsiden`,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:a.language})},`sociallinks-language-${p}`))}),r("div",{className:"pkt-footer__social-icons",children:o.filter(a=>a.iconName).map((a,p)=>r(E.Fragment,{children:r("a",{href:a.href,"aria-label":`til ${a.iconName}`,className:"pkt-footer__social-icon-link",target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:a.iconName})})},`sociallinks-${p}`))})]})]})})},rt=({links:l=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:u("ul",{className:"pkt-footer-simple__list",children:[l.map((s,o)=>r("li",{className:"pkt-footer-simple__list-item",children:u("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]})},o)),r("li",{className:"pkt-footer-simple__list-item",children:u("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:u("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"]})})]})})}),at=({className:l,logoLink:s="https://www.oslo.kommune.no/",isLoggedIn:o=!1,representing:c="",canChangeRepresentation:f=!1,showLogInButton:a=!0,onLogIn:p,onLogOut:h,onChangeRepresentation:d})=>{const N=[l,"pkt-header"].filter(Boolean).join(" ");return u("header",{id:"pkt-header",className:N,"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.2/logos/"})})}),u("div",{className:"pkt-header__actions",children:[o&&f&&u("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:d,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})]}),o&&!f&&u("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"})]}),a&&o&&u("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:h,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),a&&!o&&u("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:p,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},we=E.forwardRef(({label:l,id:s,children:o,...c},f)=>u("div",{className:"pkt-form-group",children:[r("label",{htmlFor:s,className:"pkt-form-label",children:l}),r("input",{className:"pkt-form-input",id:s,...c,ref:f}),o]}));we.displayName="PktInput";const Pe=E.forwardRef(({children:l,className:s,iconName:o="user",openInNewTab:c=!1,skin:f="normal",href:a="#",external:p=!1,title:h},d)=>{const N=[s,"pkt-linkcard",f&&`pkt-linkcard--${f}`].filter(Boolean).join(" ");return u("a",{href:a,className:`pkt-linkcard pkt-link ${N}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:d,children:[r(b,{className:"pkt-link__icon",name:o}),u("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${p?"pkt-link pkt-link--external":""}`,children:h}),r("div",{className:"pkt-linkcard__text",children:l})]})]})});Pe.displayName="PktLinkCard";const nt=({children:l,skin:s="beige",title:o,...c})=>{const f=["pkt-messagebox",s&&`pkt-messagebox--${s}`].filter(Boolean).join(" ");return u("div",{...c,className:f,children:[r("div",{className:"pkt-messagebox__title",children:o}),r("div",{className:"pkt-messagebox__text",children:l})]})},Te=E.forwardRef(({id:l,name:s,label:o,value:c,...f},a)=>u("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:l,name:s,value:c,ref:a,...f}),r("label",{className:"pkt-form-label",htmlFor:l,children:o})]}));Te.displayName="PktRadio";const lt=({label:l,children:s})=>u($,{children:[r("p",{children:l}),r("div",{className:"pkt-form-group",children:s})]});var Ce={exports:{}};/*!
27
+ Check the top-level render call using <`+n+">.")}return t}}function Ge(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=St(t);if(He[n])return;He[n]=!0;var i="";e&&e._owner&&e._owner!==ye.current&&(i=" It was passed a child from "+O(e._owner.type)+"."),V(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),V(null)}}function Je(e,t){{if(typeof e!="object")return;if(ge(e))for(var n=0;n<e.length;n++){var i=e[n];Ee(i)&&Ge(i,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var _=A(e);if(typeof _=="function"&&_!==e.entries)for(var v=_.call(e),k;!(k=v.next()).done;)Ee(k.value)&&Ge(k.value,t)}}}function Ot(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===P))n=t.propTypes;else return;if(n){var i=O(t);vt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!xe){xe=!0;var _=O(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ft(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){V(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}function ze(e,t,n,i,_,v){{var k=pe(e);if(!k){var m="";(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.");var j=jt(_);j?m+=j:m+=Ue();var x;e===null?x="null":ge(e)?x="array":e!==void 0&&e.$$typeof===s?(x="<"+(O(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):x=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",x,m)}var w=Ct(e,t,n,_,v);if(w==null)return w;if(k){var F=t.children;if(F!==void 0)if(i)if(ge(F)){for(var U=0;U<F.length;U++)Je(F[U],e);Object.freeze&&Object.freeze(F)}else R("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 Je(F,e)}return e===c?Ft(w):Ot(w),w}}function It(e,t,n){return ze(e,t,n,!0)}function Dt(e,t,n){return ze(e,t,n,!1)}var At=Dt,Wt=It;G.Fragment=c,G.jsx=At,G.jsxs=Wt}()),G}process.env.NODE_ENV==="production"?le.exports=Ze():le.exports=Qe();var se=le.exports;const $=se.Fragment,r=se.jsx,u=se.jsxs,oe={},qe='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function et(l,s){return!oe[l]&&typeof window.fetch=="function"&&(oe[l]=window.fetch(s+l+".svg").then(o=>o.ok?o.text():(console.error("Missing icon: "+s+l+".svg"),qe)).then(o=>o)),Promise.resolve(oe[l])}const b=({name:l,path:s,className:o="",...c})=>{const f="https://punkt-cdn.oslo.kommune.no/5.2/icons/",[a,p]=E.useState(null);return E.useEffect(()=>{if(!l)return;et(l,s||f).then(d=>p(d))},[l,s,f]),a?r("span",{className:`pkt-icon ${o}`,dangerouslySetInnerHTML:{__html:a},...c}):null},ie=E.forwardRef(({children:l,className:s,skin:o="info",closeAlert:c=!1,onClose:f,title:a,date:p,ariaLive:h="polite",...d},N)=>{const y=[s,"pkt-alert",o&&`pkt-alert--${o}`].filter(Boolean).join(" "),[P,T]=E.useState(!0),S=()=>{T(!1),f&&f()};return P?u("div",{...d,className:y,"aria-live":h,ref:N,children:[r(b,{className:"pkt-alert__icon",name:o==="info"?"alert-information":`alert-${o}`}),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:S,children:r(b,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),a&&r("div",{className:"pkt-alert__title",children:a}),r("div",{className:"pkt-alert__text",children:l}),p&&u("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",p]})]}):null}),ce=E.forwardRef(({children:l,className:s,iconName:o="user",secondIconName:c="user",size:f="medium",skin:a="primary",type:p="button",variant:h="label-only",...d},N)=>{const y=[s,"pkt-btn",f&&`pkt-btn--${f}`,a&&`pkt-btn--${a}`,h&&`pkt-btn--${h}`].filter(Boolean).join(" ");return u("button",{...d,className:y,type:p,ref:N,children:[h!=="label-only"&&r(b,{className:"pkt-btn__icon",name:o}),r("span",{className:"pkt-btn__text",children:l}),h==="icons-right-and-left"&&r(b,{className:"pkt-btn__icon",name:c})]})});ce.displayName="PktButton";const tt=({columnOne:l,columnTwo:s,socialLinks:o})=>{var c,f;return r("footer",{className:"pkt-footer","data-mode":"dark",children:u("div",{className:"pkt-footer__container",children:[u("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[u("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}),u("ul",{className:"pkt-footer__list",children:[l.text&&r("li",{className:"pkt-footer__text",children:l.text}),(c=l.links)==null?void 0:c.map((a,p)=>r("li",{className:"pkt-footer__list-item",children:u("a",{className:`pkt-footer__link ${a.external?"pkt-link--external":""}`,href:a.href,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),a.text]})},`links-${p}`))]})]}),u("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}),u("ul",{className:"pkt-footer__list",children:[s.text&&r("li",{className:"pkt-footer__text",children:s.text}),(f=s.links)==null?void 0:f.map((a,p)=>r("li",{className:"pkt-footer__list-item",children:u("a",{className:`pkt-footer__link ${a.external?"pkt-link--external":""}`,href:a.href,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),a.text]})},`links-${p}`))]})]}),u("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"}),u("ul",{className:"pkt-footer__list",children:[r("li",{className:"pkt-footer__list-item",children:u("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:u("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[r(b,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),o&&u("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[r("div",{className:"pkt-footer__social-languages",children:o.filter(a=>a.language).map((a,p)=>r("div",{className:"pkt-footer__social-language",children:r("a",{href:a.href,"aria-label":`til ${a.language} versjon av nettsiden`,target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:a.language})},`sociallinks-language-${p}`))}),r("div",{className:"pkt-footer__social-icons",children:o.filter(a=>a.iconName).map((a,p)=>r(E.Fragment,{children:r("a",{href:a.href,"aria-label":`til ${a.iconName}`,className:"pkt-footer__social-icon-link",target:a.openInNewTab?"_blank":"_self",rel:a.openInNewTab?"noopener noreferrer":void 0,children:r(b,{className:"pkt-footer__social-icon",name:a.iconName})})},`sociallinks-${p}`))})]})]})})},rt=({links:l=[]})=>r("footer",{className:"pkt-footer-simple","data-mode":"dark",children:r("div",{className:"pkt-footer-simple__container",children:u("ul",{className:"pkt-footer-simple__list",children:[l.map((s,o)=>r("li",{className:"pkt-footer-simple__list-item",children:u("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]})},o)),r("li",{className:"pkt-footer-simple__list-item",children:u("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:u("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"]})})]})})}),at=({className:l,logoLink:s="https://www.oslo.kommune.no/",isLoggedIn:o=!1,representing:c="",canChangeRepresentation:f=!1,showLogInButton:a=!0,onLogIn:p,onLogOut:h,onChangeRepresentation:d})=>{const N=[l,"pkt-header"].filter(Boolean).join(" ");return u("header",{id:"pkt-header",className:N,"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.2/logos/"})})}),u("div",{className:"pkt-header__actions",children:[o&&f&&u("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:d,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})]}),o&&!f&&u("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"})]}),a&&o&&u("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:h,children:[r(b,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),r("span",{className:"pkt-btn__text",children:"Logg ut"})]}),a&&!o&&u("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:p,children:[r(b,{className:"pkt-btn__icon",name:"user"}),r("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},Pe=E.forwardRef(({label:l,id:s,children:o,...c},f)=>u("div",{className:"pkt-form-group",children:[r("label",{htmlFor:s,className:"pkt-form-label",children:l}),r("input",{className:"pkt-form-input",id:s,...c,ref:f}),o]}));Pe.displayName="PktInput";const Te=E.forwardRef(({children:l,className:s,iconName:o="user",openInNewTab:c=!1,skin:f="normal",href:a="#",external:p=!1,title:h},d)=>{const N=[s,"pkt-linkcard",f&&`pkt-linkcard--${f}`].filter(Boolean).join(" ");return u("a",{href:a,className:`pkt-linkcard pkt-link ${N}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:d,children:[r(b,{className:"pkt-link__icon",name:o}),u("div",{className:"pkt-linkcard__content",children:[r("div",{className:`pkt-linkcard__title ${p?"pkt-link pkt-link--external":""}`,children:h}),r("div",{className:"pkt-linkcard__text",children:l})]})]})});Te.displayName="PktLinkCard";const nt=({children:l,skin:s="beige",title:o,...c})=>{const f=["pkt-messagebox",s&&`pkt-messagebox--${s}`].filter(Boolean).join(" ");return u("div",{...c,className:f,children:[r("div",{className:"pkt-messagebox__title",children:o}),r("div",{className:"pkt-messagebox__text",children:l})]})},Ce=E.forwardRef(({id:l,name:s,label:o,value:c,...f},a)=>u("div",{className:"pkt-form-group",children:[r("input",{type:"radio",className:"pkt-form-check-input",id:l,name:s,value:c,ref:a,...f}),r("label",{className:"pkt-form-label",htmlFor:l,children:o})]}));Ce.displayName="PktRadio";const lt=({label:l,children:s})=>u($,{children:[r("p",{children:l}),r("div",{className:"pkt-form-group",children:s})]});var je={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(l){(function(){var s={}.hasOwnProperty;function o(){for(var c=[],f=0;f<arguments.length;f++){var a=arguments[f];if(a){var p=typeof a;if(p==="string"||p==="number")c.push(a);else if(Array.isArray(a)){if(a.length){var h=o.apply(null,a);h&&c.push(h)}}else if(p==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){c.push(a.toString());continue}for(var d in a)s.call(a,d)&&a[d]&&c.push(d)}}}return c.join(" ")}l.exports?(o.default=o,l.exports=o):window.classNames=o})()})(Ce);var st=Ce.exports;const ot=Xe(st),it=({isResponsive:l,children:s})=>l?r("div",{className:"pkt-table-container",children:s}):r($,{children:s}),ct=({isResponsive:l,modifiers:{info:s=!1,success:o=!1,strong:c=!1,shadow:f=!1}={},children:a})=>r(it,{isResponsive:l,children:r("table",{className:ot("pkt-table",{"pkt-table--info":s,"pkt-table--success":o,"pkt-table--strong":c,"pkt-table--shadow":f}),children:a})}),ut=({children:l})=>r("td",{className:"pkt-table__th",children:l}),ft=({children:l})=>r("th",{className:"pkt-table__th",children:l}),je=E.forwardRef(({children:l,className:s,skin:o="blue",textStyle:c="normal-text",size:f="medium",closeTag:a=!1,iconName:p="",type:h="button",ariaLabel:d="close",onClick:N=()=>{}},y)=>{const[P,T]=E.useState(!1),S=C=>{T(!0),N(C)},D=["pkt-tag",f&&`pkt-tag--${f}`,o&&`pkt-tag--${o}`,c&&`pkt-tag--${c}`,s].filter(Boolean).join(" "),F=["pkt-tag","pkt-btn","pkt-btn--tertiary",f&&`pkt-tag--${f}`,o&&`pkt-tag--${o}`,c&&`pkt-tag--${c}`,p&&a?"pkt-btn--icons-right-and-left":null,a&&!p?"pkt-btn--icon-right":null,s].filter(Boolean).join(" "),A=!P;return a&&p?r($,{children:A&&u("button",{className:F,type:h,"aria-label":d,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__icon",name:p}),l,r(b,{className:"pkt-tag__close-btn",name:"close"})]})}):a?r($,{children:A&&u("button",{className:F,type:h,"aria-label":d,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__close-btn",name:"close"}),l]})}):p?u("span",{className:D,children:[r(b,{className:"pkt-tag__icon",name:p}),l]}):r("span",{className:D,children:l})});je.displayName="PktTag";const Se=E.forwardRef(({id:l,label:s,...o},c)=>u("div",{className:"pkt-form-group",children:[r("label",{htmlFor:l,className:"pkt-form-label",children:s}),r("textarea",{className:"pkt-form-textarea",id:l,ref:c,...o})]}));Se.displayName="PktTextarea";const pt=E.forwardRef(({id:l,label:s,name:o,srOnlyLabel:c=!1,helptext:f,helptextDropdown:a,helptextDropdownButton:p,optional:h=!1,required:d=!1,hasError:N=!1,errorMessage:y,placeholder:P,type:T="text",autocomplete:S="off",value:D,suffix:F,prefix:A,iconNameRight:C,disabled:R=!1,inline:ue=!1,ariaLabelledby:G,ariaDescribedby:Z,className:fe},J)=>{const[z,Q]=E.useState(!1),pe=()=>{Q(!z)},de=()=>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":"",K=h?"Valgfritt":d?"Må fylles ut":"",q=[fe,"pkt-textinput",R?"pkt-textinput--disabled":"",ue?"pkt-textinput--inline":"",N?"pkt-textinput--error":""].join(" "),Y=!!a&&a!=="";return u("div",{className:q,children:[u(Y?"div":"label",{htmlFor:l,className:`pkt-textinput__label ${c?"pkt-sr-only":""}`,"aria-describedby":Y?"":Z,children:[u(Y?"h2":"span",{children:[s,K!==""&&r("span",{className:de(),children:K})]}),f&&r("div",{className:"pkt-textinput__helptext",children:f}),Y&&u($,{children:[r(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:z?"chevron-thin-up":"chevron-thin-down",className:"pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",onClick:pe,children:p||u($,{children:["Les mer ",r("span",{className:"pkt-sr-only",children:"om inputfeltet"})]})}),r("div",{className:`pkt-textinput__helptext ${z?"pkt-textinput__helptext-expandable-open":"pkt-textinput__helptext-expandable-closed"}`,children:r(ie,{children:a})}),r("label",{htmlFor:l,className:"pkt-textinput__label pkt-sr-only","aria-describedby":Z,children:s})]}),A&&u("div",{className:"pkt-textinput__input-prefix-wrapper",children:[r("div",{className:"pkt-textinput__input-prefix",children:A}),r("input",{ref:J,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":G})]}),!A&&(F||C)&&u("div",{className:"pkt-textinput__input-suffix-wrapper",children:[r("input",{ref:J,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":G}),F&&u("p",{className:"pkt-textinput__input-suffix",children:[F,C&&r(b,{className:"pkt-textinput__input-suffix-icon",name:C})]}),!F&&C&&r(b,{className:"pkt-textinput__input-icon",name:C})]}),!A&&!F&&!C&&!a&&r("input",{ref:J,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":G})]}),N&&r(ie,{skin:"error","aria-live":"assertive",children:y})]})});g.PktAlert=ie,g.PktButton=ce,g.PktFooter=tt,g.PktFooterSimple=rt,g.PktHeader=at,g.PktIcon=b,g.PktInput=we,g.PktLinkCard=Pe,g.PktMessagebox=nt,g.PktRadio=Te,g.PktRadioGroup=lt,g.PktTable=ct,g.PktTableData=ut,g.PktTableHeader=ft,g.PktTag=je,g.PktTextarea=Se,g.PktTextinput=pt,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
31
+ */(function(l){(function(){var s={}.hasOwnProperty;function o(){for(var c=[],f=0;f<arguments.length;f++){var a=arguments[f];if(a){var p=typeof a;if(p==="string"||p==="number")c.push(a);else if(Array.isArray(a)){if(a.length){var h=o.apply(null,a);h&&c.push(h)}}else if(p==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){c.push(a.toString());continue}for(var d in a)s.call(a,d)&&a[d]&&c.push(d)}}}return c.join(" ")}l.exports?(o.default=o,l.exports=o):window.classNames=o})()})(je);var st=je.exports;const ot=Xe(st),it=({isResponsive:l,children:s})=>l?r("div",{className:"pkt-table-container",children:s}):r($,{children:s}),ct=({isResponsive:l,modifiers:{info:s=!1,success:o=!1,strong:c=!1,shadow:f=!1}={},children:a})=>r(it,{isResponsive:l,children:r("table",{className:ot("pkt-table",{"pkt-table--info":s,"pkt-table--success":o,"pkt-table--strong":c,"pkt-table--shadow":f}),children:a})}),ut=({children:l})=>r("td",{className:"pkt-table__th",children:l}),ft=({children:l})=>r("th",{className:"pkt-table__th",children:l}),Se=E.forwardRef(({children:l,className:s,skin:o="blue",textStyle:c="normal-text",size:f="medium",closeTag:a=!1,iconName:p="",type:h="button",ariaLabel:d="close",onClick:N=()=>{}},y)=>{const[P,T]=E.useState(!1),S=C=>{T(!0),N(C)},D=["pkt-tag",f&&`pkt-tag--${f}`,o&&`pkt-tag--${o}`,c&&`pkt-tag--${c}`,s].filter(Boolean).join(" "),I=["pkt-tag","pkt-btn","pkt-btn--tertiary",f&&`pkt-tag--${f}`,o&&`pkt-tag--${o}`,c&&`pkt-tag--${c}`,p&&a?"pkt-btn--icons-right-and-left":null,a&&!p?"pkt-btn--icon-right":null,s].filter(Boolean).join(" "),A=!P;return a&&p?r($,{children:A&&u("button",{className:I,type:h,"aria-label":d,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__icon",name:p}),l,r(b,{className:"pkt-tag__close-btn",name:"close"})]})}):a?r($,{children:A&&u("button",{className:I,type:h,"aria-label":d,onClick:S,ref:y,children:[r(b,{className:"pkt-tag__close-btn",name:"close"}),l]})}):p?u("span",{className:D,children:[r(b,{className:"pkt-tag__icon",name:p}),l]}):r("span",{className:D,children:l})});Se.displayName="PktTag";const Oe=E.forwardRef(({id:l,label:s,...o},c)=>u("div",{className:"pkt-form-group",children:[r("label",{htmlFor:l,className:"pkt-form-label",children:s}),r("textarea",{className:"pkt-form-textarea",id:l,ref:c,...o})]}));Oe.displayName="PktTextarea";const pt=E.forwardRef(({id:l,label:s,name:o,srOnlyLabel:c=!1,helptext:f,helptextDropdown:a,helptextDropdownButton:p,optional:h=!1,required:d=!1,hasError:N=!1,errorMessage:y,placeholder:P,type:T="text",autocomplete:S="off",value:D,suffix:I,prefix:A,iconNameRight:C,disabled:R=!1,inline:ue=!1,ariaLabelledby:J,ariaDescribedby:Z,className:fe,...z},K)=>{const[L,pe]=E.useState(!1),de=()=>{pe(!L)},Q=()=>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":"",O=h?"Valgfritt":d?"Må fylles ut":"",q=[fe,"pkt-textinput",R?"pkt-textinput--disabled":"",ue?"pkt-textinput--inline":"",N?"pkt-textinput--error":""].join(" "),Y=!!a&&a!=="";return u("div",{className:q,children:[u(Y?"div":"label",{htmlFor:l,className:`pkt-textinput__label ${c?"pkt-sr-only":""}`,"aria-describedby":Y?"":Z,children:[u(Y?"h2":"span",{children:[s,O!==""&&r("span",{className:Q(),children:O})]}),f&&r("div",{className:"pkt-textinput__helptext",children:f}),Y&&u($,{children:[r(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:L?"chevron-thin-up":"chevron-thin-down",className:"pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",onClick:de,children:p||u($,{children:["Les mer ",r("span",{className:"pkt-sr-only",children:"om inputfeltet"})]})}),r("div",{className:`pkt-textinput__helptext ${L?"pkt-textinput__helptext-expandable-open":"pkt-textinput__helptext-expandable-closed"}`,children:r(ie,{children:a})}),r("label",{htmlFor:l,className:"pkt-textinput__label pkt-sr-only","aria-describedby":Z,children:s})]}),A&&u("div",{className:"pkt-textinput__input-prefix-wrapper",children:[r("div",{className:"pkt-textinput__input-prefix",children:A}),r("input",{ref:K,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":J,...z})]}),!A&&(I||C)&&u("div",{className:"pkt-textinput__input-suffix-wrapper",children:[r("input",{ref:K,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":J,...z}),I&&u("p",{className:"pkt-textinput__input-suffix",children:[I,C&&r(b,{className:"pkt-textinput__input-suffix-icon",name:C})]}),!I&&C&&r(b,{className:"pkt-textinput__input-icon",name:C})]}),!A&&!I&&!C&&!a&&r("input",{ref:K,className:"pkt-textinput__input",type:T,name:o||l,id:l,placeholder:P,autoComplete:S,value:D,disabled:R,"aria-required":d,"aria-invalid":N,"aria-labelledby":J,...z})]}),N&&r(ie,{skin:"error","aria-live":"assertive",children:y})]})});g.PktAlert=ie,g.PktButton=ce,g.PktFooter=tt,g.PktFooterSimple=rt,g.PktHeader=at,g.PktIcon=b,g.PktInput=Pe,g.PktLinkCard=Te,g.PktMessagebox=nt,g.PktRadio=Ce,g.PktRadioGroup=lt,g.PktTable=ct,g.PktTableData=ut,g.PktTableHeader=ft,g.PktTag=Se,g.PktTextarea=Oe,g.PktTextinput=pt,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.2.1",
3
+ "version": "5.2.2",
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",
@@ -90,5 +90,5 @@
90
90
  "url": "https://github.com/oslokommune/punkt/issues"
91
91
  },
92
92
  "license": "MIT",
93
- "gitHead": "582b1bb38c470e76cbdb5e0ec2dc98231f674291"
93
+ "gitHead": "163d02095bfec89ed28524133589fff733e38251"
94
94
  }
@@ -55,6 +55,7 @@ export const PktTextinput = forwardRef(
55
55
  ariaLabelledby,
56
56
  ariaDescribedby,
57
57
  className,
58
+ ...props
58
59
  }: IPktTextinput,
59
60
  ref: ForwardedRef<HTMLInputElement>,
60
61
  ) => {
@@ -152,6 +153,7 @@ export const PktTextinput = forwardRef(
152
153
  aria-required={required}
153
154
  aria-invalid={hasError}
154
155
  aria-labelledby={ariaLabelledby}
156
+ {...props}
155
157
  />
156
158
  </div>
157
159
  )}
@@ -171,6 +173,7 @@ export const PktTextinput = forwardRef(
171
173
  aria-required={required}
172
174
  aria-invalid={hasError}
173
175
  aria-labelledby={ariaLabelledby}
176
+ {...props}
174
177
  />
175
178
 
176
179
  {suffix && (
@@ -202,6 +205,7 @@ export const PktTextinput = forwardRef(
202
205
  aria-required={required}
203
206
  aria-invalid={hasError}
204
207
  aria-labelledby={ariaLabelledby}
208
+ {...props}
205
209
  />
206
210
  )}
207
211
  </WrapperElement>