@oslokommune/punkt-react 5.1.20 → 5.2.1

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