@oslokommune/punkt-react 6.0.6 → 7.1.0

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 D, { useState as ue, useEffect as vt, forwardRef as B } from "react";
1
+ import Y, { useState as se, useEffect as bt, forwardRef as U } from "react";
2
2
  function gt(a) {
3
3
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
4
4
  }
5
- var xe = { exports: {} }, te = {};
5
+ var ve = { exports: {} }, ee = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -13,24 +13,24 @@ var xe = { exports: {} }, te = {};
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
15
  var Ue;
16
- function bt() {
16
+ function Nt() {
17
17
  if (Ue)
18
- return te;
18
+ return ee;
19
19
  Ue = 1;
20
- var a = D, c = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function m(o, p, y) {
22
- var N, x = {}, T = null, j = null;
23
- y !== void 0 && (T = "" + y), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (j = p.ref);
24
- for (N in p)
25
- f.call(p, N) && !u.hasOwnProperty(N) && (x[N] = p[N]);
26
- if (o && o.defaultProps)
27
- for (N in p = o.defaultProps, p)
28
- x[N] === void 0 && (x[N] = p[N]);
29
- return { $$typeof: c, type: o, key: T, ref: j, props: x, _owner: l.current };
20
+ var a = Y, p = Symbol.for("react.element"), c = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function f(i, d, x) {
22
+ var N, v = {}, T = null, C = null;
23
+ x !== void 0 && (T = "" + x), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (C = d.ref);
24
+ for (N in d)
25
+ s.call(d, N) && !u.hasOwnProperty(N) && (v[N] = d[N]);
26
+ if (i && i.defaultProps)
27
+ for (N in d = i.defaultProps, d)
28
+ v[N] === void 0 && (v[N] = d[N]);
29
+ return { $$typeof: p, type: i, key: T, ref: C, props: v, _owner: l.current };
30
30
  }
31
- return te.Fragment = i, te.jsx = m, te.jsxs = m, te;
31
+ return ee.Fragment = c, ee.jsx = f, ee.jsxs = f, ee;
32
32
  }
33
- var re = {};
33
+ var te = {};
34
34
  /**
35
35
  * @license React
36
36
  * react-jsx-runtime.development.js
@@ -41,90 +41,90 @@ var re = {};
41
41
  * LICENSE file in the root directory of this source tree.
42
42
  */
43
43
  var Ve;
44
- function Nt() {
44
+ function yt() {
45
45
  return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
46
- var a = D, c = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), y = 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"), I = Symbol.iterator, O = "@@iterator";
47
- function F(e) {
46
+ var a = Y, p = Symbol.for("react.element"), c = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), i = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, L = "@@iterator";
47
+ function S(e) {
48
48
  if (e === null || typeof e != "object")
49
49
  return null;
50
- var r = I && e[I] || e[O];
50
+ var r = $ && e[$] || e[L];
51
51
  return typeof r == "function" ? r : null;
52
52
  }
53
- var C = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function E(e) {
53
+ var R = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ function y(e) {
55
55
  {
56
- for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
57
- n[d - 1] = arguments[d];
58
- Q("error", e, n);
56
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), m = 1; m < r; m++)
57
+ n[m - 1] = arguments[m];
58
+ D("error", e, n);
59
59
  }
60
60
  }
61
- function Q(e, r, n) {
61
+ function D(e, r, n) {
62
62
  {
63
- var d = C.ReactDebugCurrentFrame, v = d.getStackAddendum();
64
- v !== "" && (r += "%s", n = n.concat([v]));
65
- var b = n.map(function(_) {
63
+ var m = R.ReactDebugCurrentFrame, b = m.getStackAddendum();
64
+ b !== "" && (r += "%s", n = n.concat([b]));
65
+ var w = n.map(function(_) {
66
66
  return String(_);
67
67
  });
68
- b.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, b);
68
+ w.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, w);
69
69
  }
70
70
  }
71
- var M = !1, J = !1, H = !1, W = !1, A = !1, Y;
72
- Y = Symbol.for("react.module.reference");
73
- function q(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === f || e === u || A || e === l || e === y || e === N || W || e === j || M || J || H || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === x || e.$$typeof === m || e.$$typeof === o || e.$$typeof === p || // This needs to include all possible module reference object
71
+ var j = !1, V = !1, A = !1, M = !1, O = !1, J;
72
+ J = Symbol.for("react.module.reference");
73
+ function B(e) {
74
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === u || O || e === l || e === x || e === N || M || e === C || j || V || A || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === v || e.$$typeof === f || e.$$typeof === i || 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 === Y || e.getModuleId !== void 0));
78
+ e.$$typeof === J || e.getModuleId !== void 0));
79
79
  }
80
80
  function z(e, r, n) {
81
- var d = e.displayName;
82
- if (d)
83
- return d;
84
- var v = r.displayName || r.name || "";
85
- return v !== "" ? n + "(" + v + ")" : n;
81
+ var m = e.displayName;
82
+ if (m)
83
+ return m;
84
+ var b = r.displayName || r.name || "";
85
+ return b !== "" ? n + "(" + b + ")" : n;
86
86
  }
87
87
  function k(e) {
88
88
  return e.displayName || "Context";
89
89
  }
90
- function P(e) {
90
+ function I(e) {
91
91
  if (e == null)
92
92
  return null;
93
- if (typeof e.tag == "number" && E("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" && y("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
- case f:
98
+ case s:
99
99
  return "Fragment";
100
- case i:
100
+ case c:
101
101
  return "Portal";
102
102
  case u:
103
103
  return "Profiler";
104
104
  case l:
105
105
  return "StrictMode";
106
- case y:
106
+ case x:
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 o:
113
+ case i:
114
114
  var r = e;
115
115
  return k(r) + ".Consumer";
116
- case m:
116
+ case f:
117
117
  var n = e;
118
118
  return k(n._context) + ".Provider";
119
- case p:
119
+ case d:
120
120
  return z(e, e.render, "ForwardRef");
121
- case x:
122
- var d = e.displayName || null;
123
- return d !== null ? d : P(e.type) || "Memo";
121
+ case v:
122
+ var m = e.displayName || null;
123
+ return m !== null ? m : I(e.type) || "Memo";
124
124
  case T: {
125
- var v = e, b = v._payload, _ = v._init;
125
+ var b = e, w = b._payload, _ = b._init;
126
126
  try {
127
- return P(_(b));
127
+ return I(_(w));
128
128
  } catch {
129
129
  return null;
130
130
  }
@@ -132,18 +132,18 @@ function Nt() {
132
132
  }
133
133
  return null;
134
134
  }
135
- var U = Object.assign, K = 0, fe, ae, G, pe, de, we, Re;
136
- function Pe() {
135
+ var q = Object.assign, Z = 0, Ne, ye, we, xe, Ee, Re, Pe;
136
+ function Te() {
137
137
  }
138
- Pe.__reactDisabledLog = !0;
139
- function Je() {
138
+ Te.__reactDisabledLog = !0;
139
+ function qe() {
140
140
  {
141
- if (K === 0) {
142
- fe = console.log, ae = console.info, G = console.warn, pe = console.error, de = console.group, we = console.groupCollapsed, Re = console.groupEnd;
141
+ if (Z === 0) {
142
+ Ne = console.log, ye = console.info, we = console.warn, xe = console.error, Ee = console.group, Re = console.groupCollapsed, Pe = console.groupEnd;
143
143
  var e = {
144
144
  configurable: !0,
145
145
  enumerable: !0,
146
- value: Pe,
146
+ value: Te,
147
147
  writable: !0
148
148
  };
149
149
  Object.defineProperties(console, {
@@ -156,77 +156,77 @@ function Nt() {
156
156
  groupEnd: e
157
157
  });
158
158
  }
159
- K++;
159
+ Z++;
160
160
  }
161
161
  }
162
- function qe() {
162
+ function ze() {
163
163
  {
164
- if (K--, K === 0) {
164
+ if (Z--, Z === 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: U({}, e, {
172
- value: fe
171
+ log: q({}, e, {
172
+ value: Ne
173
173
  }),
174
- info: U({}, e, {
175
- value: ae
174
+ info: q({}, e, {
175
+ value: ye
176
176
  }),
177
- warn: U({}, e, {
178
- value: G
179
- }),
180
- error: U({}, e, {
181
- value: pe
177
+ warn: q({}, e, {
178
+ value: we
182
179
  }),
183
- group: U({}, e, {
184
- value: de
180
+ error: q({}, e, {
181
+ value: xe
185
182
  }),
186
- groupCollapsed: U({}, e, {
187
- value: we
183
+ group: q({}, e, {
184
+ value: Ee
188
185
  }),
189
- groupEnd: U({}, e, {
186
+ groupCollapsed: q({}, e, {
190
187
  value: Re
188
+ }),
189
+ groupEnd: q({}, e, {
190
+ value: Pe
191
191
  })
192
192
  });
193
193
  }
194
- K < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
+ Z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
195
  }
196
196
  }
197
- var me = C.ReactCurrentDispatcher, ke;
198
- function ne(e, r, n) {
197
+ var ce = R.ReactCurrentDispatcher, ue;
198
+ function re(e, r, n) {
199
199
  {
200
- if (ke === void 0)
200
+ if (ue === void 0)
201
201
  try {
202
202
  throw Error();
203
- } catch (v) {
204
- var d = v.stack.trim().match(/\n( *(at )?)/);
205
- ke = d && d[1] || "";
203
+ } catch (b) {
204
+ var m = b.stack.trim().match(/\n( *(at )?)/);
205
+ ue = m && m[1] || "";
206
206
  }
207
207
  return `
208
- ` + ke + e;
208
+ ` + ue + e;
209
209
  }
210
210
  }
211
- var he = !1, le;
211
+ var pe = !1, ae;
212
212
  {
213
- var ze = typeof WeakMap == "function" ? WeakMap : Map;
214
- le = new ze();
213
+ var Ke = typeof WeakMap == "function" ? WeakMap : Map;
214
+ ae = new Ke();
215
215
  }
216
- function Te(e, r) {
217
- if (!e || he)
216
+ function Ce(e, r) {
217
+ if (!e || pe)
218
218
  return "";
219
219
  {
220
- var n = le.get(e);
220
+ var n = ae.get(e);
221
221
  if (n !== void 0)
222
222
  return n;
223
223
  }
224
- var d;
225
- he = !0;
226
- var v = Error.prepareStackTrace;
224
+ var m;
225
+ pe = !0;
226
+ var b = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
- var b;
229
- b = me.current, me.current = null, Je();
228
+ var w;
229
+ w = ce.current, ce.current = null, qe();
230
230
  try {
231
231
  if (r) {
232
232
  var _ = function() {
@@ -239,171 +239,171 @@ function Nt() {
239
239
  }), typeof Reflect == "object" && Reflect.construct) {
240
240
  try {
241
241
  Reflect.construct(_, []);
242
- } catch (L) {
243
- d = L;
242
+ } catch (H) {
243
+ m = H;
244
244
  }
245
245
  Reflect.construct(e, [], _);
246
246
  } else {
247
247
  try {
248
248
  _.call();
249
- } catch (L) {
250
- d = L;
249
+ } catch (H) {
250
+ m = H;
251
251
  }
252
252
  e.call(_.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
256
256
  throw Error();
257
- } catch (L) {
258
- d = L;
257
+ } catch (H) {
258
+ m = H;
259
259
  }
260
260
  e();
261
261
  }
262
- } catch (L) {
263
- if (L && d && typeof L.stack == "string") {
264
- for (var h = L.stack.split(`
265
- `), S = d.stack.split(`
266
- `), w = h.length - 1, R = S.length - 1; w >= 1 && R >= 0 && h[w] !== S[R]; )
267
- R--;
268
- for (; w >= 1 && R >= 0; w--, R--)
269
- if (h[w] !== S[R]) {
270
- if (w !== 1 || R !== 1)
262
+ } catch (H) {
263
+ if (H && m && typeof H.stack == "string") {
264
+ for (var h = H.stack.split(`
265
+ `), F = m.stack.split(`
266
+ `), E = h.length - 1, P = F.length - 1; E >= 1 && P >= 0 && h[E] !== F[P]; )
267
+ P--;
268
+ for (; E >= 1 && P >= 0; E--, P--)
269
+ if (h[E] !== F[P]) {
270
+ if (E !== 1 || P !== 1)
271
271
  do
272
- if (w--, R--, R < 0 || h[w] !== S[R]) {
273
- var $ = `
274
- ` + h[w].replace(" at new ", " at ");
275
- return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, $), $;
272
+ if (E--, P--, P < 0 || h[E] !== F[P]) {
273
+ var W = `
274
+ ` + h[E].replace(" at new ", " at ");
275
+ return e.displayName && W.includes("<anonymous>") && (W = W.replace("<anonymous>", e.displayName)), typeof e == "function" && ae.set(e, W), W;
276
276
  }
277
- while (w >= 1 && R >= 0);
277
+ while (E >= 1 && P >= 0);
278
278
  break;
279
279
  }
280
280
  }
281
281
  } finally {
282
- he = !1, me.current = b, qe(), Error.prepareStackTrace = v;
282
+ pe = !1, ce.current = w, ze(), Error.prepareStackTrace = b;
283
283
  }
284
- var Z = e ? e.displayName || e.name : "", Ye = Z ? ne(Z) : "";
285
- return typeof e == "function" && le.set(e, Ye), Ye;
284
+ var X = e ? e.displayName || e.name : "", Ye = X ? re(X) : "";
285
+ return typeof e == "function" && ae.set(e, Ye), Ye;
286
286
  }
287
- function Ke(e, r, n) {
288
- return Te(e, !1);
287
+ function Xe(e, r, n) {
288
+ return Ce(e, !1);
289
289
  }
290
- function Xe(e) {
290
+ function Ze(e) {
291
291
  var r = e.prototype;
292
292
  return !!(r && r.isReactComponent);
293
293
  }
294
- function oe(e, r, n) {
294
+ function ne(e, r, n) {
295
295
  if (e == null)
296
296
  return "";
297
297
  if (typeof e == "function")
298
- return Te(e, Xe(e));
298
+ return Ce(e, Ze(e));
299
299
  if (typeof e == "string")
300
- return ne(e);
300
+ return re(e);
301
301
  switch (e) {
302
- case y:
303
- return ne("Suspense");
302
+ case x:
303
+ return re("Suspense");
304
304
  case N:
305
- return ne("SuspenseList");
305
+ return re("SuspenseList");
306
306
  }
307
307
  if (typeof e == "object")
308
308
  switch (e.$$typeof) {
309
- case p:
310
- return Ke(e.render);
311
- case x:
312
- return oe(e.type, r, n);
309
+ case d:
310
+ return Xe(e.render);
311
+ case v:
312
+ return ne(e.type, r, n);
313
313
  case T: {
314
- var d = e, v = d._payload, b = d._init;
314
+ var m = e, b = m._payload, w = m._init;
315
315
  try {
316
- return oe(b(v), r, n);
316
+ return ne(w(b), r, n);
317
317
  } catch {
318
318
  }
319
319
  }
320
320
  }
321
321
  return "";
322
322
  }
323
- var se = Object.prototype.hasOwnProperty, Ce = {}, je = C.ReactDebugCurrentFrame;
323
+ var le = Object.prototype.hasOwnProperty, je = {}, Se = R.ReactDebugCurrentFrame;
324
324
  function ie(e) {
325
325
  if (e) {
326
- var r = e._owner, n = oe(e.type, e._source, r ? r.type : null);
327
- je.setExtraStackFrame(n);
326
+ var r = e._owner, n = ne(e.type, e._source, r ? r.type : null);
327
+ Se.setExtraStackFrame(n);
328
328
  } else
329
- je.setExtraStackFrame(null);
329
+ Se.setExtraStackFrame(null);
330
330
  }
331
- function Ze(e, r, n, d, v) {
331
+ function Qe(e, r, n, m, b) {
332
332
  {
333
- var b = Function.call.bind(se);
333
+ var w = Function.call.bind(le);
334
334
  for (var _ in e)
335
- if (b(e, _)) {
335
+ if (w(e, _)) {
336
336
  var h = void 0;
337
337
  try {
338
338
  if (typeof e[_] != "function") {
339
- var S = Error((d || "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 S.name = "Invariant Violation", S;
339
+ var F = Error((m || "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 F.name = "Invariant Violation", F;
341
341
  }
342
- h = e[_](r, _, d, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (w) {
344
- h = w;
342
+ h = e[_](r, _, m, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ } catch (E) {
344
+ h = E;
345
345
  }
346
- h && !(h instanceof Error) && (ie(v), E("%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).", d || "React class", n, _, typeof h), ie(null)), h instanceof Error && !(h.message in Ce) && (Ce[h.message] = !0, ie(v), E("Failed %s type: %s", n, h.message), ie(null));
346
+ h && !(h instanceof Error) && (ie(b), y("%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).", m || "React class", n, _, typeof h), ie(null)), h instanceof Error && !(h.message in je) && (je[h.message] = !0, ie(b), y("Failed %s type: %s", n, h.message), ie(null));
347
347
  }
348
348
  }
349
349
  }
350
- var Qe = Array.isArray;
351
- function _e(e) {
352
- return Qe(e);
350
+ var et = Array.isArray;
351
+ function fe(e) {
352
+ return et(e);
353
353
  }
354
- function et(e) {
354
+ function tt(e) {
355
355
  {
356
356
  var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
357
  return n;
358
358
  }
359
359
  }
360
- function tt(e) {
360
+ function rt(e) {
361
361
  try {
362
- return Se(e), !1;
362
+ return Oe(e), !1;
363
363
  } catch {
364
364
  return !0;
365
365
  }
366
366
  }
367
- function Se(e) {
367
+ function Oe(e) {
368
368
  return "" + e;
369
369
  }
370
- function Oe(e) {
371
- if (tt(e))
372
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", et(e)), Se(e);
370
+ function $e(e) {
371
+ if (rt(e))
372
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tt(e)), Oe(e);
373
373
  }
374
- var ee = C.ReactCurrentOwner, rt = {
374
+ var Q = R.ReactCurrentOwner, at = {
375
375
  key: !0,
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, $e, Ie, ve;
380
- ve = {};
381
- function at(e) {
382
- if (se.call(e, "ref")) {
379
+ }, Ie, Fe, de;
380
+ de = {};
381
+ function nt(e) {
382
+ if (le.call(e, "ref")) {
383
383
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
384
384
  if (r && r.isReactWarning)
385
385
  return !1;
386
386
  }
387
387
  return e.ref !== void 0;
388
388
  }
389
- function nt(e) {
390
- if (se.call(e, "key")) {
389
+ function lt(e) {
390
+ if (le.call(e, "key")) {
391
391
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
392
392
  if (r && r.isReactWarning)
393
393
  return !1;
394
394
  }
395
395
  return e.key !== void 0;
396
396
  }
397
- function lt(e, r) {
398
- if (typeof e.ref == "string" && ee.current && r && ee.current.stateNode !== r) {
399
- var n = P(ee.current.type);
400
- ve[n] || (E('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', P(ee.current.type), e.ref), ve[n] = !0);
397
+ function it(e, r) {
398
+ if (typeof e.ref == "string" && Q.current && r && Q.current.stateNode !== r) {
399
+ var n = I(Q.current.type);
400
+ de[n] || (y('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(Q.current.type), e.ref), de[n] = !0);
401
401
  }
402
402
  }
403
403
  function ot(e, r) {
404
404
  {
405
405
  var n = function() {
406
- $e || ($e = !0, E("%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)", r));
406
+ Ie || (Ie = !0, y("%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)", r));
407
407
  };
408
408
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
409
409
  get: n,
@@ -414,7 +414,7 @@ function Nt() {
414
414
  function st(e, r) {
415
415
  {
416
416
  var n = function() {
417
- Ie || (Ie = !0, E("%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)", r));
417
+ Fe || (Fe = !0, y("%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)", r));
418
418
  };
419
419
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
420
  get: n,
@@ -422,17 +422,17 @@ function Nt() {
422
422
  });
423
423
  }
424
424
  }
425
- var it = function(e, r, n, d, v, b, _) {
425
+ var ct = function(e, r, n, m, b, w, _) {
426
426
  var h = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: c,
428
+ $$typeof: p,
429
429
  // Built-in properties that belong on the element
430
430
  type: e,
431
431
  key: r,
432
432
  ref: n,
433
433
  props: _,
434
434
  // Record the component responsible for creating this element.
435
- _owner: b
435
+ _owner: w
436
436
  };
437
437
  return h._store = {}, Object.defineProperty(h._store, "validated", {
438
438
  configurable: !1,
@@ -443,49 +443,49 @@ function Nt() {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: d
446
+ value: m
447
447
  }), Object.defineProperty(h, "_source", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !1,
451
- value: v
451
+ value: b
452
452
  }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
453
453
  };
454
- function ct(e, r, n, d, v) {
454
+ function ut(e, r, n, m, b) {
455
455
  {
456
- var b, _ = {}, h = null, S = null;
457
- n !== void 0 && (Oe(n), h = "" + n), nt(r) && (Oe(r.key), h = "" + r.key), at(r) && (S = r.ref, lt(r, v));
458
- for (b in r)
459
- se.call(r, b) && !rt.hasOwnProperty(b) && (_[b] = r[b]);
456
+ var w, _ = {}, h = null, F = null;
457
+ n !== void 0 && ($e(n), h = "" + n), lt(r) && ($e(r.key), h = "" + r.key), nt(r) && (F = r.ref, it(r, b));
458
+ for (w in r)
459
+ le.call(r, w) && !at.hasOwnProperty(w) && (_[w] = r[w]);
460
460
  if (e && e.defaultProps) {
461
- var w = e.defaultProps;
462
- for (b in w)
463
- _[b] === void 0 && (_[b] = w[b]);
461
+ var E = e.defaultProps;
462
+ for (w in E)
463
+ _[w] === void 0 && (_[w] = E[w]);
464
464
  }
465
- if (h || S) {
466
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- h && ot(_, R), S && st(_, R);
465
+ if (h || F) {
466
+ var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
+ h && ot(_, P), F && st(_, P);
468
468
  }
469
- return it(e, h, S, v, d, ee.current, _);
469
+ return ct(e, h, F, b, m, Q.current, _);
470
470
  }
471
471
  }
472
- var ge = C.ReactCurrentOwner, Fe = C.ReactDebugCurrentFrame;
473
- function X(e) {
472
+ var me = R.ReactCurrentOwner, De = R.ReactDebugCurrentFrame;
473
+ function K(e) {
474
474
  if (e) {
475
- var r = e._owner, n = oe(e.type, e._source, r ? r.type : null);
476
- Fe.setExtraStackFrame(n);
475
+ var r = e._owner, n = ne(e.type, e._source, r ? r.type : null);
476
+ De.setExtraStackFrame(n);
477
477
  } else
478
- Fe.setExtraStackFrame(null);
478
+ De.setExtraStackFrame(null);
479
479
  }
480
- var be;
481
- be = !1;
482
- function Ne(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === c;
480
+ var ke;
481
+ ke = !1;
482
+ function he(e) {
483
+ return typeof e == "object" && e !== null && e.$$typeof === p;
484
484
  }
485
- function De() {
485
+ function Ae() {
486
486
  {
487
- if (ge.current) {
488
- var e = P(ge.current.type);
487
+ if (me.current) {
488
+ var e = I(me.current.type);
489
489
  if (e)
490
490
  return `
491
491
 
@@ -494,7 +494,7 @@ Check the render method of \`` + e + "`.";
494
494
  return "";
495
495
  }
496
496
  }
497
- function ut(e) {
497
+ function pt(e) {
498
498
  {
499
499
  if (e !== void 0) {
500
500
  var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
@@ -505,10 +505,10 @@ Check your code at ` + r + ":" + n + ".";
505
505
  return "";
506
506
  }
507
507
  }
508
- var Ae = {};
508
+ var Le = {};
509
509
  function ft(e) {
510
510
  {
511
- var r = De();
511
+ var r = Ae();
512
512
  if (!r) {
513
513
  var n = typeof e == "string" ? e : e.displayName || e.name;
514
514
  n && (r = `
@@ -518,39 +518,39 @@ Check the top-level render call using <` + n + ">.");
518
518
  return r;
519
519
  }
520
520
  }
521
- function Le(e, r) {
521
+ function Me(e, r) {
522
522
  {
523
523
  if (!e._store || e._store.validated || e.key != null)
524
524
  return;
525
525
  e._store.validated = !0;
526
526
  var n = ft(r);
527
- if (Ae[n])
527
+ if (Le[n])
528
528
  return;
529
- Ae[n] = !0;
530
- var d = "";
531
- e && e._owner && e._owner !== ge.current && (d = " It was passed a child from " + P(e._owner.type) + "."), X(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, d), X(null);
529
+ Le[n] = !0;
530
+ var m = "";
531
+ e && e._owner && e._owner !== me.current && (m = " It was passed a child from " + I(e._owner.type) + "."), K(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, m), K(null);
532
532
  }
533
533
  }
534
- function Me(e, r) {
534
+ function We(e, r) {
535
535
  {
536
536
  if (typeof e != "object")
537
537
  return;
538
- if (_e(e))
538
+ if (fe(e))
539
539
  for (var n = 0; n < e.length; n++) {
540
- var d = e[n];
541
- Ne(d) && Le(d, r);
540
+ var m = e[n];
541
+ he(m) && Me(m, r);
542
542
  }
543
- else if (Ne(e))
543
+ else if (he(e))
544
544
  e._store && (e._store.validated = !0);
545
545
  else if (e) {
546
- var v = F(e);
547
- if (typeof v == "function" && v !== e.entries)
548
- for (var b = v.call(e), _; !(_ = b.next()).done; )
549
- Ne(_.value) && Le(_.value, r);
546
+ var b = S(e);
547
+ if (typeof b == "function" && b !== e.entries)
548
+ for (var w = b.call(e), _; !(_ = w.next()).done; )
549
+ he(_.value) && Me(_.value, r);
550
550
  }
551
551
  }
552
552
  }
553
- function pt(e) {
553
+ function dt(e) {
554
554
  {
555
555
  var r = e.type;
556
556
  if (r == null || typeof r == "string")
@@ -558,213 +558,226 @@ Check the top-level render call using <` + n + ">.");
558
558
  var n;
559
559
  if (typeof r == "function")
560
560
  n = r.propTypes;
561
- else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
561
+ else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
562
562
  // Inner props are checked in the reconciler.
563
- r.$$typeof === x))
563
+ r.$$typeof === v))
564
564
  n = r.propTypes;
565
565
  else
566
566
  return;
567
567
  if (n) {
568
- var d = P(r);
569
- Ze(n, e.props, "prop", d, e);
570
- } else if (r.PropTypes !== void 0 && !be) {
571
- be = !0;
572
- var v = P(r);
573
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
568
+ var m = I(r);
569
+ Qe(n, e.props, "prop", m, e);
570
+ } else if (r.PropTypes !== void 0 && !ke) {
571
+ ke = !0;
572
+ var b = I(r);
573
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
574
574
  }
575
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
575
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
576
  }
577
577
  }
578
- function dt(e) {
578
+ function mt(e) {
579
579
  {
580
580
  for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
581
- var d = r[n];
582
- if (d !== "children" && d !== "key") {
583
- X(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), X(null);
581
+ var m = r[n];
582
+ if (m !== "children" && m !== "key") {
583
+ K(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), K(null);
584
584
  break;
585
585
  }
586
586
  }
587
- e.ref !== null && (X(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
587
+ e.ref !== null && (K(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
588
588
  }
589
589
  }
590
- function We(e, r, n, d, v, b) {
590
+ function Be(e, r, n, m, b, w) {
591
591
  {
592
- var _ = q(e);
592
+ var _ = B(e);
593
593
  if (!_) {
594
594
  var h = "";
595
595
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " 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 S = ut(v);
597
- S ? h += S : h += De();
598
- var w;
599
- e === null ? w = "null" : _e(e) ? w = "array" : e !== void 0 && e.$$typeof === c ? (w = "<" + (P(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : w = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, h);
596
+ var F = pt(b);
597
+ F ? h += F : h += Ae();
598
+ var E;
599
+ e === null ? E = "null" : fe(e) ? E = "array" : e !== void 0 && e.$$typeof === p ? (E = "<" + (I(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, h);
600
600
  }
601
- var R = ct(e, r, n, v, b);
602
- if (R == null)
603
- return R;
601
+ var P = ut(e, r, n, b, w);
602
+ if (P == null)
603
+ return P;
604
604
  if (_) {
605
- var $ = r.children;
606
- if ($ !== void 0)
607
- if (d)
608
- if (_e($)) {
609
- for (var Z = 0; Z < $.length; Z++)
610
- Me($[Z], e);
611
- Object.freeze && Object.freeze($);
605
+ var W = r.children;
606
+ if (W !== void 0)
607
+ if (m)
608
+ if (fe(W)) {
609
+ for (var X = 0; X < W.length; X++)
610
+ We(W[X], e);
611
+ Object.freeze && Object.freeze(W);
612
612
  } else
613
- E("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
+ y("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
- Me($, e);
615
+ We(W, e);
616
616
  }
617
- return e === f ? dt(R) : pt(R), R;
617
+ return e === s ? mt(P) : dt(P), P;
618
618
  }
619
619
  }
620
- function mt(e, r, n) {
621
- return We(e, r, n, !0);
622
- }
623
620
  function kt(e, r, n) {
624
- return We(e, r, n, !1);
621
+ return Be(e, r, n, !0);
625
622
  }
626
- var ht = kt, _t = mt;
627
- re.Fragment = f, re.jsx = ht, re.jsxs = _t;
628
- }()), re;
623
+ function ht(e, r, n) {
624
+ return Be(e, r, n, !1);
625
+ }
626
+ var _t = ht, vt = kt;
627
+ te.Fragment = s, te.jsx = _t, te.jsxs = vt;
628
+ }()), te;
629
629
  }
630
- process.env.NODE_ENV === "production" ? xe.exports = bt() : xe.exports = Nt();
631
- var Ee = xe.exports;
632
- const V = Ee.Fragment, t = Ee.jsx, s = Ee.jsxs, ye = {}, yt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
- function xt(a, c) {
634
- return !ye[a] && typeof window.fetch == "function" && (ye[a] = window.fetch(c + a + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + c + a + ".svg"), yt)).then((i) => i)), Promise.resolve(ye[a]);
630
+ process.env.NODE_ENV === "production" ? ve.exports = Nt() : ve.exports = yt();
631
+ var be = ve.exports;
632
+ const G = be.Fragment, t = be.jsx, o = be.jsxs, _e = {}, wt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
+ function xt(a, p) {
634
+ return !_e[a] && typeof window.fetch == "function" && (_e[a] = window.fetch(p + a + ".svg").then((c) => c.ok ? c.text() : (console.error("Missing icon: " + p + a + ".svg"), wt)).then((c) => c)), Promise.resolve(_e[a]);
635
635
  }
636
- const g = ({ name: a, path: c, className: i = "", ...f }) => {
637
- const l = "https://punkt-cdn.oslo.kommune.no/6.0/icons/", [u, m] = ue(null);
638
- return vt(() => {
636
+ const g = ({ name: a, path: p, className: c = "", ...s }) => {
637
+ const l = "https://punkt-cdn.oslo.kommune.no/7.1/icons/", [u, f] = se(null);
638
+ return bt(() => {
639
639
  if (!a)
640
640
  return;
641
- xt(a, c || l).then((p) => m(p));
642
- }, [a, c, l]), u ? /* @__PURE__ */ t(
641
+ xt(a, p || l).then((d) => f(d));
642
+ }, [a, p, l]), u ? /* @__PURE__ */ t(
643
643
  "span",
644
644
  {
645
- className: `pkt-icon ${i}`,
645
+ className: `pkt-icon ${c}`,
646
646
  dangerouslySetInnerHTML: { __html: u },
647
- ...f
647
+ ...s
648
648
  }
649
649
  ) : null;
650
- }, Be = B(
650
+ }, He = U(
651
651
  ({
652
652
  children: a,
653
- className: c,
654
- skin: i = "info",
655
- closeAlert: f = !1,
653
+ className: p,
654
+ skin: c = "info",
655
+ closeAlert: s = !1,
656
656
  onClose: l,
657
657
  title: u,
658
- date: m,
659
- ariaLive: o = "polite",
660
- ...p
661
- }, y) => {
662
- const N = [c, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [x, T] = ue(!0), j = () => {
658
+ date: f,
659
+ ariaLive: i = "polite",
660
+ ...d
661
+ }, x) => {
662
+ const N = [p, "pkt-alert", c && `pkt-alert--${c}`].filter(Boolean).join(" "), [v, T] = se(!0), C = () => {
663
663
  T(!1), l && l();
664
664
  };
665
- return x ? /* @__PURE__ */ s("div", { ...p, className: N, "aria-live": o, ref: y, children: [
665
+ return v ? /* @__PURE__ */ o("div", { ...d, className: N, "aria-live": i, ref: x, children: [
666
666
  /* @__PURE__ */ t(
667
667
  g,
668
668
  {
669
669
  className: "pkt-alert__icon",
670
- name: i === "info" ? "alert-information" : `alert-${i}`
670
+ name: c === "info" ? "alert-information" : `alert-${c}`
671
671
  }
672
672
  ),
673
- f && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
673
+ s && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
674
674
  "button",
675
675
  {
676
676
  type: "button",
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__ */ t(g, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
682
682
  }
683
683
  ) }),
684
684
  u && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: u }),
685
685
  /* @__PURE__ */ t("div", { className: "pkt-alert__text", children: a }),
686
- m && /* @__PURE__ */ s("div", { className: "pkt-alert__date", children: [
686
+ f && /* @__PURE__ */ o("div", { className: "pkt-alert__date", children: [
687
687
  "Sist oppdatert: ",
688
- m
688
+ f
689
689
  ] })
690
690
  ] }) : null;
691
691
  }
692
- ), ce = B(
692
+ ), Ot = U(
693
+ ({ href: a, text: p, onClick: c, className: s, ...l }, u) => {
694
+ const f = [
695
+ s,
696
+ "pkt-back-link"
697
+ ].filter(Boolean).join(" ");
698
+ return /* @__PURE__ */ t("nav", { ref: u, className: f, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ o("a", { href: a || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
699
+ c && c();
700
+ }, ...l, children: [
701
+ /* @__PURE__ */ t(g, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
702
+ /* @__PURE__ */ t("span", { className: "pkt-back-link__text", children: p || "Forsiden" })
703
+ ] }) });
704
+ }
705
+ ), oe = U(
693
706
  ({
694
707
  children: a,
695
- className: c,
696
- iconName: i = "user",
697
- secondIconName: f = "user",
708
+ className: p,
709
+ iconName: c = "user",
710
+ secondIconName: s = "user",
698
711
  size: l = "medium",
699
712
  skin: u = "primary",
700
- type: m = "button",
701
- variant: o = "label-only",
702
- color: p,
703
- ...y
713
+ type: f = "button",
714
+ variant: i = "label-only",
715
+ color: d,
716
+ ...x
704
717
  }, N) => {
705
- const x = [
706
- c,
718
+ const v = [
719
+ p,
707
720
  "pkt-btn",
708
721
  l && `pkt-btn--${l}`,
709
722
  u && `pkt-btn--${u}`,
710
- o && `pkt-btn--${o}`,
711
- p && `pkt-btn--${p}`
723
+ i && `pkt-btn--${i}`,
724
+ d && `pkt-btn--${d}`
712
725
  ].filter(Boolean).join(" ");
713
- return /* @__PURE__ */ s("button", { ...y, className: x, type: m, ref: N, children: [
714
- o !== "label-only" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: i }),
726
+ return /* @__PURE__ */ o("button", { ...x, className: v, type: f, ref: N, children: [
727
+ i !== "label-only" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: c }),
715
728
  /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: a }),
716
- o === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: f })
729
+ i === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: s })
717
730
  ] });
718
731
  }
719
732
  );
720
- ce.displayName = "PktButton";
721
- const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: f }) => {
722
- var u, m;
723
- const l = [f, "pkt-footer"].filter(Boolean).join(" ");
724
- return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ s("div", { className: "pkt-footer__container", children: [
725
- /* @__PURE__ */ s("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
726
- /* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
733
+ oe.displayName = "PktButton";
734
+ const $t = ({ columnOne: a, columnTwo: p, socialLinks: c, className: s }) => {
735
+ var u, f;
736
+ const l = [s, "pkt-footer"].filter(Boolean).join(" ");
737
+ return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ o("div", { className: "pkt-footer__container", children: [
738
+ /* @__PURE__ */ o("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
739
+ /* @__PURE__ */ o("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
727
740
  /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: a.title }),
728
- /* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
741
+ /* @__PURE__ */ o("ul", { className: "pkt-footer__list", children: [
729
742
  a.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: a.text }),
730
- (u = a.links) == null ? void 0 : u.map((o, p) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
743
+ (u = a.links) == null ? void 0 : u.map((i, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ o(
731
744
  "a",
732
745
  {
733
- className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
734
- href: o.href,
735
- target: o.openInNewTab ? "_blank" : "_self",
736
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
746
+ className: `pkt-footer__link ${i.external ? "pkt-link--external" : ""}`,
747
+ href: i.href,
748
+ target: i.openInNewTab ? "_blank" : "_self",
749
+ rel: i.openInNewTab ? "noopener noreferrer" : void 0,
737
750
  children: [
738
751
  /* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
739
- o.text
752
+ i.text
740
753
  ]
741
754
  }
742
- ) }, `links-${p}`))
755
+ ) }, `links-${d}`))
743
756
  ] })
744
757
  ] }),
745
- /* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
746
- /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: c.title }),
747
- /* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
748
- c.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: c.text }),
749
- (m = c.links) == null ? void 0 : m.map((o, p) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
758
+ /* @__PURE__ */ o("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
759
+ /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: p.title }),
760
+ /* @__PURE__ */ o("ul", { className: "pkt-footer__list", children: [
761
+ p.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: p.text }),
762
+ (f = p.links) == null ? void 0 : f.map((i, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ o(
750
763
  "a",
751
764
  {
752
- className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
753
- href: o.href,
754
- target: o.openInNewTab ? "_blank" : "_self",
755
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
765
+ className: `pkt-footer__link ${i.external ? "pkt-link--external" : ""}`,
766
+ href: i.href,
767
+ target: i.openInNewTab ? "_blank" : "_self",
768
+ rel: i.openInNewTab ? "noopener noreferrer" : void 0,
756
769
  children: [
757
770
  /* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
758
- o.text
771
+ i.text
759
772
  ]
760
773
  }
761
- ) }, `links-${p}`))
774
+ ) }, `links-${d}`))
762
775
  ] })
763
776
  ] }),
764
- /* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
777
+ /* @__PURE__ */ o("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
765
778
  /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
766
- /* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
767
- /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
779
+ /* @__PURE__ */ o("ul", { className: "pkt-footer__list", children: [
780
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ o(
768
781
  "a",
769
782
  {
770
783
  className: "pkt-footer__link",
@@ -775,57 +788,57 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: f }) => {
775
788
  ]
776
789
  }
777
790
  ) }),
778
- /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
791
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ o("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
779
792
  /* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
780
793
  "Tilgjengelighet"
781
794
  ] }) })
782
795
  ] })
783
796
  ] })
784
797
  ] }),
785
- i && /* @__PURE__ */ s("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
786
- /* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: i.filter((o) => o.language).map((o, p) => /* @__PURE__ */ t(
798
+ c && /* @__PURE__ */ o("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
799
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: c.filter((i) => i.language).map((i, d) => /* @__PURE__ */ t(
787
800
  "div",
788
801
  {
789
802
  className: "pkt-footer__social-language",
790
803
  children: /* @__PURE__ */ t(
791
804
  "a",
792
805
  {
793
- href: o.href,
794
- "aria-label": `til ${o.language} versjon av nettsiden`,
795
- target: o.openInNewTab ? "_blank" : "_self",
796
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
797
- children: o.language
806
+ href: i.href,
807
+ "aria-label": `til ${i.language} versjon av nettsiden`,
808
+ target: i.openInNewTab ? "_blank" : "_self",
809
+ rel: i.openInNewTab ? "noopener noreferrer" : void 0,
810
+ children: i.language
798
811
  }
799
812
  )
800
813
  },
801
- `sociallinks-language-${p}`
814
+ `sociallinks-language-${d}`
802
815
  )) }),
803
- /* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: i.filter((o) => o.iconName).map((o, p) => /* @__PURE__ */ t(D.Fragment, { children: /* @__PURE__ */ t(
816
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: c.filter((i) => i.iconName).map((i, d) => /* @__PURE__ */ t(Y.Fragment, { children: /* @__PURE__ */ t(
804
817
  "a",
805
818
  {
806
- href: o.href,
807
- "aria-label": `til ${o.iconName}`,
819
+ href: i.href,
820
+ "aria-label": `til ${i.iconName}`,
808
821
  className: "pkt-footer__social-icon-link",
809
- target: o.openInNewTab ? "_blank" : "_self",
810
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
811
- children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name: o.iconName })
822
+ target: i.openInNewTab ? "_blank" : "_self",
823
+ rel: i.openInNewTab ? "noopener noreferrer" : void 0,
824
+ children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name: i.iconName })
812
825
  }
813
- ) }, `sociallinks-${p}`)) })
826
+ ) }, `sociallinks-${d}`)) })
814
827
  ] })
815
828
  ] }) });
816
- }, $t = ({
829
+ }, It = ({
817
830
  links: a = [],
818
- className: c
831
+ className: p
819
832
  }) => {
820
- const i = [c, "pkt-footer-simple"].filter(Boolean).join(" ");
821
- return /* @__PURE__ */ t("footer", { className: i, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ s("ul", { className: "pkt-footer-simple__list", children: [
822
- a.map((f, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s(
833
+ const c = [p, "pkt-footer-simple"].filter(Boolean).join(" ");
834
+ return /* @__PURE__ */ t("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ o("ul", { className: "pkt-footer-simple__list", children: [
835
+ a.map((s, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ o(
823
836
  "a",
824
837
  {
825
- className: `pkt-footer-simple__link ${f.external ? " pkt-link--external" : ""}`,
826
- href: f.href,
827
- target: f.openInNewTab ? "_blank" : "_self",
828
- rel: f.openInNewTab ? "noopener noreferrer" : void 0,
838
+ className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
839
+ href: s.href,
840
+ target: s.openInNewTab ? "_blank" : "_self",
841
+ rel: s.openInNewTab ? "noopener noreferrer" : void 0,
829
842
  children: [
830
843
  /* @__PURE__ */ t(
831
844
  g,
@@ -834,21 +847,21 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: f }) => {
834
847
  name: "chevron-right"
835
848
  }
836
849
  ),
837
- f.text
850
+ s.text
838
851
  ]
839
852
  }
840
853
  ) }, l)),
841
- /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
854
+ /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ o("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
842
855
  /* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
843
856
  "Personvern og informasjonskapsler"
844
857
  ] }) }),
845
- /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
858
+ /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ o("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
846
859
  /* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
847
860
  "Tilgjengelighet"
848
861
  ] }) })
849
862
  ] }) }) });
850
863
  };
851
- var He = { exports: {} };
864
+ var Ge = { exports: {} };
852
865
  /*!
853
866
  Copyright (c) 2018 Jed Watson.
854
867
  Licensed under the MIT License (MIT), see
@@ -856,96 +869,96 @@ var He = { exports: {} };
856
869
  */
857
870
  (function(a) {
858
871
  (function() {
859
- var c = {}.hasOwnProperty;
860
- function i() {
861
- for (var f = [], l = 0; l < arguments.length; l++) {
872
+ var p = {}.hasOwnProperty;
873
+ function c() {
874
+ for (var s = [], l = 0; l < arguments.length; l++) {
862
875
  var u = arguments[l];
863
876
  if (u) {
864
- var m = typeof u;
865
- if (m === "string" || m === "number")
866
- f.push(u);
877
+ var f = typeof u;
878
+ if (f === "string" || f === "number")
879
+ s.push(u);
867
880
  else if (Array.isArray(u)) {
868
881
  if (u.length) {
869
- var o = i.apply(null, u);
870
- o && f.push(o);
882
+ var i = c.apply(null, u);
883
+ i && s.push(i);
871
884
  }
872
- } else if (m === "object") {
885
+ } else if (f === "object") {
873
886
  if (u.toString !== Object.prototype.toString && !u.toString.toString().includes("[native code]")) {
874
- f.push(u.toString());
887
+ s.push(u.toString());
875
888
  continue;
876
889
  }
877
- for (var p in u)
878
- c.call(u, p) && u[p] && f.push(p);
890
+ for (var d in u)
891
+ p.call(u, d) && u[d] && s.push(d);
879
892
  }
880
893
  }
881
894
  }
882
- return f.join(" ");
895
+ return s.join(" ");
883
896
  }
884
- a.exports ? (i.default = i, a.exports = i) : window.classNames = i;
897
+ a.exports ? (c.default = c, a.exports = c) : window.classNames = c;
885
898
  })();
886
- })(He);
887
- var Et = He.exports;
888
- const Ge = /* @__PURE__ */ gt(Et), It = B(
899
+ })(Ge);
900
+ var Et = Ge.exports;
901
+ const Je = /* @__PURE__ */ gt(Et), Ft = U(
889
902
  ({
890
903
  logoLink: a = "https://www.oslo.kommune.no/",
891
- serviceName: c,
892
- fixed: i = !0,
893
- scrollToHide: f = !0,
904
+ serviceName: p,
905
+ fixed: c = !0,
906
+ scrollToHide: s = !0,
894
907
  user: l,
895
908
  userMenu: u,
896
- representing: m,
897
- userOptions: o,
898
- userMenuFooter: p,
899
- canChangeRepresentation: y = !0,
909
+ representing: f,
910
+ userOptions: i,
911
+ userMenuFooter: d,
912
+ canChangeRepresentation: x = !0,
900
913
  showMenuButton: N = !1,
901
- showLogOutButton: x = !1,
914
+ showLogOutButton: v = !1,
902
915
  openMenu: T,
903
- logOut: j,
904
- changeRepresentation: I,
905
- ...O
906
- }, F) => {
907
- const C = D.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
916
+ logOut: C,
917
+ changeRepresentation: $,
918
+ ...L
919
+ }, S) => {
920
+ const R = Y.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
908
921
  year: "numeric",
909
922
  month: "long",
910
923
  day: "numeric"
911
- }) : "", [l]), [E, Q] = D.useState(!1), [M, J] = D.useState(0), [H, W] = D.useState(!1), A = D.useRef(null);
912
- D.useEffect(() => (document.addEventListener("mouseup", q), window.addEventListener("scroll", z), () => {
913
- document.removeEventListener("mouseup", q), window.removeEventListener("scroll", z);
924
+ }) : "", [l]), [y, D] = Y.useState(!1), [j, V] = Y.useState(0), [A, M] = Y.useState(!1), O = Y.useRef(null);
925
+ Y.useEffect(() => (document.addEventListener("mouseup", B), window.addEventListener("scroll", z), () => {
926
+ document.removeEventListener("mouseup", B), window.removeEventListener("scroll", z);
914
927
  }));
915
- const Y = () => {
916
- W(!H);
917
- }, q = (k) => {
918
- A.current && !A.current.contains(k.target) && W(!1);
928
+ const J = () => {
929
+ M(!A);
930
+ }, B = (k) => {
931
+ O.current && !O.current.contains(k.target) && M(!1);
919
932
  }, z = () => {
920
- if (f) {
933
+ if (s) {
921
934
  const k = window.pageYOffset || document.documentElement.scrollTop;
922
- if (k < 0 || Math.abs(k - M) < 60)
935
+ if (k < 0 || Math.abs(k - j) < 60)
923
936
  return;
924
- Q(k > M), J(k);
937
+ D(k > j), V(k);
925
938
  }
926
939
  };
927
- return /* @__PURE__ */ s(
940
+ return /* @__PURE__ */ o(
928
941
  "header",
929
942
  {
930
- ...O,
943
+ ...L,
931
944
  id: "pkt-header",
932
945
  "data-testid": "pkt-header",
933
946
  "aria-label": "Topp",
934
- className: Ge("pkt-header", {
935
- "pkt-header--fixed": i,
936
- "pkt-header--scroll-to-hide": f,
937
- "pkt-header--hidden": E
947
+ className: Je("pkt-header", {
948
+ "pkt-header--fixed": c,
949
+ "pkt-header--scroll-to-hide": s,
950
+ "pkt-header--hidden": y
938
951
  }),
939
- ref: F,
952
+ ref: S,
940
953
  children: [
941
- /* @__PURE__ */ s("div", { className: "pkt-header__logo", children: [
954
+ /* @__PURE__ */ o("div", { className: "pkt-header__logo", children: [
942
955
  typeof a == "string" ? /* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: a, children: /* @__PURE__ */ t(
943
956
  g,
944
957
  {
945
958
  name: "oslologo",
946
959
  className: "pkt-header__logo-svg",
947
960
  "aria-hidden": "true",
948
- path: "https://punkt-cdn.oslo.kommune.no/6.0/logos/"
961
+ path: "https://punkt-cdn.oslo.kommune.no/7.1/logos/"
949
962
  }
950
963
  ) }) : /* @__PURE__ */ t(
951
964
  "button",
@@ -959,16 +972,16 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
959
972
  name: "oslologo",
960
973
  className: "pkt-header__logo-svg",
961
974
  "aria-hidden": "true",
962
- path: "https://punkt-cdn.oslo.kommune.no/6.0/logos/"
975
+ path: "https://punkt-cdn.oslo.kommune.no/7.1/logos/"
963
976
  }
964
977
  )
965
978
  }
966
979
  ),
967
- /* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: c })
980
+ /* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: p })
968
981
  ] }),
969
- /* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ s("ul", { className: "pkt-header__actions-row", children: [
982
+ /* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ o("ul", { className: "pkt-header__actions-row", children: [
970
983
  N && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
971
- ce,
984
+ oe,
972
985
  {
973
986
  className: "pkt-header__menu-btn",
974
987
  skin: "secondary",
@@ -978,61 +991,61 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
978
991
  children: "Meny"
979
992
  }
980
993
  ) }),
981
- (l || m) && /* @__PURE__ */ s(
994
+ (l || f) && /* @__PURE__ */ o(
982
995
  "li",
983
996
  {
984
997
  "data-testid": "usermenu",
985
- className: `pkt-header--has-dropdown ${H && !E ? "pkt-header--open-dropdown" : ""}`,
986
- ref: A,
998
+ className: `pkt-header--has-dropdown ${A && !y ? "pkt-header--open-dropdown" : ""}`,
999
+ ref: O,
987
1000
  children: [
988
- /* @__PURE__ */ s(
1001
+ /* @__PURE__ */ o(
989
1002
  "button",
990
1003
  {
991
1004
  className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
992
1005
  type: "button",
993
1006
  role: "button",
994
1007
  "aria-controls": "pktUserDropdown",
995
- "aria-expanded": H,
996
- onClick: Y,
1008
+ "aria-expanded": A,
1009
+ onClick: J,
997
1010
  children: [
998
1011
  /* @__PURE__ */ t(g, { name: "user", className: "pkt-btn__icon" }),
999
- /* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (m == null ? void 0 : m.name) || (l == null ? void 0 : l.name) }),
1000
- /* @__PURE__ */ t("span", { className: "pkt-header__user-shortname", children: (m == null ? void 0 : m.shortname) || (l == null ? void 0 : l.shortname) }),
1012
+ /* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (f == null ? void 0 : f.name) || (l == null ? void 0 : l.name) }),
1013
+ /* @__PURE__ */ t("span", { className: "pkt-header__user-shortname", children: (f == null ? void 0 : f.shortname) || (l == null ? void 0 : l.shortname) }),
1001
1014
  /* @__PURE__ */ t(g, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1002
1015
  /* @__PURE__ */ t(g, { name: "chevron-thin-up", className: "pkt-btn--open" })
1003
1016
  ]
1004
1017
  }
1005
1018
  ),
1006
- /* @__PURE__ */ s("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1007
- l && /* @__PURE__ */ s("li", { children: [
1019
+ /* @__PURE__ */ o("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1020
+ l && /* @__PURE__ */ o("li", { children: [
1008
1021
  /* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1009
1022
  /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: l.name }),
1010
- l.lastLoggedIn && /* @__PURE__ */ s("div", { className: "pkt-user-menu__last-logged-in", children: [
1023
+ l.lastLoggedIn && /* @__PURE__ */ o("div", { className: "pkt-user-menu__last-logged-in", children: [
1011
1024
  "Sist pålogget: ",
1012
- /* @__PURE__ */ t("time", { children: C })
1025
+ /* @__PURE__ */ t("time", { children: R })
1013
1026
  ] })
1014
1027
  ] }),
1015
- u && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: u.map((k, P) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ s("a", { href: k.target, className: "pkt-link", children: [
1028
+ u && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: u.map((k, I) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ o("a", { href: k.target, className: "pkt-link", children: [
1016
1029
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1017
1030
  k.title
1018
- ] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1031
+ ] }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1019
1032
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1020
1033
  k.title
1021
- ] }) }, `userMenu-${P}`)) }) }),
1022
- (m || y) && /* @__PURE__ */ s("li", { children: [
1023
- m && /* @__PURE__ */ s(V, { children: [
1034
+ ] }) }, `userMenu-${I}`)) }) }),
1035
+ (f || x) && /* @__PURE__ */ o("li", { children: [
1036
+ f && /* @__PURE__ */ o(G, { children: [
1024
1037
  /* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1025
- /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: m.name }),
1026
- m.orgNumber && /* @__PURE__ */ s("div", { className: "pkt-user-menu__org-number", children: [
1038
+ /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: f.name }),
1039
+ f.orgNumber && /* @__PURE__ */ o("div", { className: "pkt-user-menu__org-number", children: [
1027
1040
  "Org.nr. ",
1028
- m.orgNumber
1041
+ f.orgNumber
1029
1042
  ] })
1030
1043
  ] }),
1031
- /* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: y && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s(
1044
+ /* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ o(
1032
1045
  "button",
1033
1046
  {
1034
1047
  className: "pkt-link-button pkt-link",
1035
- onClick: I,
1048
+ onClick: $,
1036
1049
  children: [
1037
1050
  /* @__PURE__ */ t(g, { name: "cogwheel", className: "pkt-link__icon" }),
1038
1051
  "Endre organisasjon"
@@ -1040,31 +1053,31 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
1040
1053
  }
1041
1054
  ) }) })
1042
1055
  ] }),
1043
- /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (o || !x) && /* @__PURE__ */ s(V, { children: [
1044
- o == null ? void 0 : o.map((k, P) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ s("a", { href: k.target, className: "pkt-link", children: [
1056
+ /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (i || !v) && /* @__PURE__ */ o(G, { children: [
1057
+ i == null ? void 0 : i.map((k, I) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ o("a", { href: k.target, className: "pkt-link", children: [
1045
1058
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1046
1059
  k.title
1047
- ] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1060
+ ] }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1048
1061
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1049
1062
  k.title
1050
- ] }) }, `userOptions-${P}`)),
1051
- !x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: j, children: [
1063
+ ] }) }, `userOptions-${I}`)),
1064
+ !v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1052
1065
  /* @__PURE__ */ t(g, { name: "exit", className: "pkt-link__icon" }),
1053
1066
  "Logg ut"
1054
1067
  ] }) })
1055
1068
  ] }) }) }),
1056
- p && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: p.map((k, P) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ t("a", { href: k.target, className: "pkt-link", children: k.title }) : /* @__PURE__ */ t("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: k.title }) }, `userMenuFooter-${P}`)) }) })
1069
+ d && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: d.map((k, I) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ t("a", { href: k.target, className: "pkt-link", children: k.title }) : /* @__PURE__ */ t("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: k.title }) }, `userMenuFooter-${I}`)) }) })
1057
1070
  ] })
1058
1071
  ]
1059
1072
  }
1060
1073
  ),
1061
- x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
1062
- ce,
1074
+ v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
1075
+ oe,
1063
1076
  {
1064
1077
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1065
1078
  iconName: "exit",
1066
1079
  role: "button",
1067
- onClick: j,
1080
+ onClick: C,
1068
1081
  skin: "secondary",
1069
1082
  variant: "icon-right",
1070
1083
  children: "Logg ut"
@@ -1075,38 +1088,124 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
1075
1088
  }
1076
1089
  );
1077
1090
  }
1078
- ), wt = D.forwardRef(
1079
- ({ label: a, id: c, children: i, ...f }, l) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
1080
- /* @__PURE__ */ t("label", { htmlFor: c, className: "pkt-form-label", children: a }),
1081
- /* @__PURE__ */ t("input", { className: "pkt-form-input", id: c, ...f, ref: l }),
1082
- i
1091
+ ), Rt = Y.forwardRef(
1092
+ ({ label: a, id: p, children: c, ...s }, l) => /* @__PURE__ */ o("div", { className: "pkt-form-group", children: [
1093
+ /* @__PURE__ */ t("label", { htmlFor: p, className: "pkt-form-label", children: a }),
1094
+ /* @__PURE__ */ t("input", { className: "pkt-form-input", id: p, ...s, ref: l }),
1095
+ c
1083
1096
  ] })
1084
1097
  );
1085
- wt.displayName = "PktInput";
1086
- const Rt = B(
1098
+ Rt.displayName = "PktInput";
1099
+ const ge = U(
1100
+ ({
1101
+ forId: a,
1102
+ label: p,
1103
+ helptext: c,
1104
+ helptextDropdown: s,
1105
+ helptextDropdownButton: l,
1106
+ optional: u,
1107
+ required: f,
1108
+ hasError: i,
1109
+ errorMessage: d,
1110
+ disabled: x,
1111
+ inline: N,
1112
+ ariaDescribedby: v,
1113
+ useWrapper: T = !0,
1114
+ children: C,
1115
+ className: $
1116
+ }, L) => {
1117
+ const [S, R] = se(!1), y = () => {
1118
+ R(!S);
1119
+ }, D = () => u ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : f ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", j = u ? "Valgfritt" : f ? "Må fylles ut" : "", V = x ? "pkt-inputwrapper--disabled" : "", A = N ? "pkt-inputwrapper--inline" : "", M = i ? "pkt-inputwrapper--error" : "", O = !!s && s !== "", J = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', B = O ? "div" : "label", z = O ? "h2" : "span", k = v || (c ? `${a}-helptext` : void 0);
1120
+ return /* @__PURE__ */ o(
1121
+ "div",
1122
+ {
1123
+ className: ["pkt-inputwrapper", $, V, A, M].join(
1124
+ " "
1125
+ ),
1126
+ ref: L,
1127
+ children: [
1128
+ T ? /* @__PURE__ */ o(G, { children: [
1129
+ /* @__PURE__ */ t(
1130
+ B,
1131
+ {
1132
+ htmlFor: a,
1133
+ className: "pkt-inputwrapper__label",
1134
+ "aria-describedby": O ? "" : v,
1135
+ children: /* @__PURE__ */ o(z, { id: `${a}-label`, children: [
1136
+ p,
1137
+ j !== "" && /* @__PURE__ */ t("span", { className: D(), children: j })
1138
+ ] })
1139
+ }
1140
+ ),
1141
+ c && /* @__PURE__ */ t("div", { className: "pkt-inputwrapper__helptext", id: `${a}-helptext`, children: c }),
1142
+ O && s !== "" && /* @__PURE__ */ o("div", { children: [
1143
+ /* @__PURE__ */ t(
1144
+ oe,
1145
+ {
1146
+ skin: "tertiary",
1147
+ size: "small",
1148
+ variant: "icon-right",
1149
+ iconName: S ? "chevron-thin-up" : "chevron-thin-down",
1150
+ className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1151
+ onClick: y,
1152
+ children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: J } })
1153
+ }
1154
+ ),
1155
+ /* @__PURE__ */ t(
1156
+ "div",
1157
+ {
1158
+ className: `pkt-inputwrapper__helptext ${S ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1159
+ children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: s } }) })
1160
+ }
1161
+ ),
1162
+ /* @__PURE__ */ t("label", { htmlFor: a, className: "pkt-sr-only", "aria-describedby": k, children: p })
1163
+ ] }),
1164
+ /* @__PURE__ */ t(G, { children: C })
1165
+ ] }) : /* @__PURE__ */ o(G, { children: [
1166
+ /* @__PURE__ */ t(
1167
+ "label",
1168
+ {
1169
+ htmlFor: a,
1170
+ className: "pkt-sr-only",
1171
+ "aria-describedby": k,
1172
+ id: `${a}-label`,
1173
+ children: p
1174
+ }
1175
+ ),
1176
+ C
1177
+ ] }),
1178
+ i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(He, { skin: "error", "aria-live": "assertive", children: d }) })
1179
+ ]
1180
+ }
1181
+ );
1182
+ }
1183
+ );
1184
+ ge.displayName = "PktInputWrapper";
1185
+ const Pt = U(
1087
1186
  ({
1088
1187
  children: a,
1089
- className: c,
1090
- iconName: i = "user",
1091
- openInNewTab: f = !1,
1188
+ className: p,
1189
+ iconName: c = "user",
1190
+ openInNewTab: s = !1,
1092
1191
  skin: l = "normal",
1093
1192
  href: u = "#",
1094
- external: m = !1,
1095
- title: o
1096
- }, p) => {
1097
- const y = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
1098
- return /* @__PURE__ */ s(
1193
+ external: f = !1,
1194
+ title: i
1195
+ }, d) => {
1196
+ const x = [p, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
1197
+ return /* @__PURE__ */ o(
1099
1198
  "a",
1100
1199
  {
1101
1200
  href: u,
1102
- className: `pkt-linkcard pkt-link ${y}`,
1103
- target: f ? "_blank" : "_self",
1104
- rel: f ? "noopener noreferrer" : void 0,
1105
- ref: p,
1201
+ className: `pkt-linkcard pkt-link ${x}`,
1202
+ target: s ? "_blank" : "_self",
1203
+ rel: s ? "noopener noreferrer" : void 0,
1204
+ ref: d,
1106
1205
  children: [
1107
- /* @__PURE__ */ t(g, { className: "pkt-link__icon", name: i }),
1108
- /* @__PURE__ */ s("div", { className: "pkt-linkcard__content", children: [
1109
- /* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${m ? "pkt-link pkt-link--external" : ""}`, children: o }),
1206
+ /* @__PURE__ */ t(g, { className: "pkt-link__icon", name: c }),
1207
+ /* @__PURE__ */ o("div", { className: "pkt-linkcard__content", children: [
1208
+ /* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${f ? "pkt-link pkt-link--external" : ""}`, children: i }),
1110
1209
  /* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: a })
1111
1210
  ] })
1112
1211
  ]
@@ -1114,281 +1213,311 @@ const Rt = B(
1114
1213
  );
1115
1214
  }
1116
1215
  );
1117
- Rt.displayName = "PktLinkCard";
1118
- const Ft = ({
1216
+ Pt.displayName = "PktLinkCard";
1217
+ const Dt = ({
1119
1218
  children: a,
1120
- skin: c = "beige",
1121
- title: i,
1122
- className: f,
1219
+ skin: p = "beige",
1220
+ title: c,
1221
+ className: s,
1123
1222
  ...l
1124
1223
  }) => {
1125
- const u = ["pkt-messagebox", c && `pkt-messagebox--${c}`, f].filter(Boolean).join(" ");
1126
- return /* @__PURE__ */ s("div", { ...l, className: u, children: [
1127
- /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: i }),
1224
+ const u = ["pkt-messagebox", p && `pkt-messagebox--${p}`, s].filter(Boolean).join(" ");
1225
+ return /* @__PURE__ */ o("div", { ...l, className: u, children: [
1226
+ /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: c }),
1128
1227
  /* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: a })
1129
1228
  ] });
1130
- }, Pt = B(
1131
- ({ id: a, name: c, label: i, value: f, ...l }, u) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
1132
- /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: a, name: c, value: f, ref: u, ...l }),
1133
- /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: a, children: i })
1229
+ }, Tt = U(
1230
+ ({ id: a, name: p, label: c, value: s, ...l }, u) => /* @__PURE__ */ o("div", { className: "pkt-form-group", children: [
1231
+ /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: a, name: p, value: s, ref: u, ...l }),
1232
+ /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: a, children: c })
1134
1233
  ] })
1135
1234
  );
1136
- Pt.displayName = "PktRadio";
1137
- const Dt = ({ label: a, children: c }) => /* @__PURE__ */ s(V, { children: [
1235
+ Tt.displayName = "PktRadio";
1236
+ const At = ({ label: a, children: p }) => /* @__PURE__ */ o(G, { children: [
1138
1237
  /* @__PURE__ */ t("p", { children: a }),
1139
- /* @__PURE__ */ t("div", { className: "pkt-form-group", children: c })
1140
- ] }), Tt = ({ isResponsive: a, children: c }) => a ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ t(V, { children: c }), At = ({
1238
+ /* @__PURE__ */ t("div", { className: "pkt-form-group", children: p })
1239
+ ] }), Ct = ({ isResponsive: a, children: p }) => a ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: p }) : /* @__PURE__ */ t(G, { children: p }), Lt = ({
1141
1240
  isResponsive: a,
1142
- modifiers: { info: c = !1, success: i = !1, strong: f = !1, shadow: l = !1 } = {},
1241
+ modifiers: { info: p = !1, success: c = !1, strong: s = !1, shadow: l = !1 } = {},
1143
1242
  children: u
1144
- }) => /* @__PURE__ */ t(Tt, { isResponsive: a, children: /* @__PURE__ */ t(
1243
+ }) => /* @__PURE__ */ t(Ct, { isResponsive: a, children: /* @__PURE__ */ t(
1145
1244
  "table",
1146
1245
  {
1147
- className: Ge("pkt-table", {
1148
- "pkt-table--info": c,
1149
- "pkt-table--success": i,
1150
- "pkt-table--strong": f,
1246
+ className: Je("pkt-table", {
1247
+ "pkt-table--info": p,
1248
+ "pkt-table--success": c,
1249
+ "pkt-table--strong": s,
1151
1250
  "pkt-table--shadow": l
1152
1251
  }),
1153
1252
  children: u
1154
1253
  }
1155
- ) }), Lt = ({ children: a }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: a }), Mt = ({ children: a }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: a }), Ct = B(({
1254
+ ) }), Mt = ({ children: a }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: a }), Wt = ({ children: a }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: a }), jt = U(({
1156
1255
  children: a,
1157
- className: c,
1158
- skin: i = "blue",
1159
- textStyle: f = "normal-text",
1256
+ className: p,
1257
+ skin: c = "blue",
1258
+ textStyle: s = "normal-text",
1160
1259
  size: l = "medium",
1161
1260
  closeTag: u = !1,
1162
- iconName: m = "",
1163
- type: o = "button",
1164
- ariaLabel: p = "close",
1165
- onClick: y = () => {
1261
+ iconName: f = "",
1262
+ type: i = "button",
1263
+ ariaLabel: d = "close",
1264
+ onClick: x = () => {
1166
1265
  }
1167
1266
  }, N) => {
1168
- const [x, T] = ue(!1), j = (C) => {
1169
- T(!0), y(C);
1170
- }, I = [
1267
+ const [v, T] = se(!1), C = (R) => {
1268
+ T(!0), x(R);
1269
+ }, $ = [
1171
1270
  "pkt-tag",
1172
1271
  l && `pkt-tag--${l}`,
1173
- i && `pkt-tag--${i}`,
1174
- f && `pkt-tag--${f}`,
1175
- c
1176
- ].filter(Boolean).join(" "), O = [
1272
+ c && `pkt-tag--${c}`,
1273
+ s && `pkt-tag--${s}`,
1274
+ p
1275
+ ].filter(Boolean).join(" "), L = [
1177
1276
  "pkt-tag",
1178
1277
  "pkt-btn",
1179
1278
  "pkt-btn--tertiary",
1180
1279
  l && `pkt-tag--${l}`,
1181
- i && `pkt-tag--${i}`,
1182
- f && `pkt-tag--${f}`,
1183
- m && u ? "pkt-btn--icons-right-and-left" : null,
1184
- u && !m ? "pkt-btn--icon-right" : null,
1185
- c
1186
- ].filter(Boolean).join(" "), F = !x;
1187
- return u && m ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
1280
+ c && `pkt-tag--${c}`,
1281
+ s && `pkt-tag--${s}`,
1282
+ f && u ? "pkt-btn--icons-right-and-left" : null,
1283
+ u && !f ? "pkt-btn--icon-right" : null,
1284
+ p
1285
+ ].filter(Boolean).join(" "), S = !v;
1286
+ return u && f ? /* @__PURE__ */ t(G, { children: S && /* @__PURE__ */ o(
1188
1287
  "button",
1189
1288
  {
1190
- className: O,
1191
- type: o,
1192
- "aria-label": p,
1193
- onClick: j,
1289
+ className: L,
1290
+ type: i,
1291
+ "aria-label": d,
1292
+ onClick: C,
1194
1293
  ref: N,
1195
1294
  children: [
1196
- /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
1295
+ /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
1197
1296
  a,
1198
1297
  /* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" })
1199
1298
  ]
1200
1299
  }
1201
- ) }) : u ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
1300
+ ) }) : u ? /* @__PURE__ */ t(G, { children: S && /* @__PURE__ */ o(
1202
1301
  "button",
1203
1302
  {
1204
- className: O,
1205
- type: o,
1206
- "aria-label": p,
1207
- onClick: j,
1303
+ className: L,
1304
+ type: i,
1305
+ "aria-label": d,
1306
+ onClick: C,
1208
1307
  ref: N,
1209
1308
  children: [
1210
1309
  /* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" }),
1211
1310
  a
1212
1311
  ]
1213
1312
  }
1214
- ) }) : m ? /* @__PURE__ */ s("span", { className: I, children: [
1215
- /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
1313
+ ) }) : f ? /* @__PURE__ */ o("span", { className: $, children: [
1314
+ /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
1216
1315
  a
1217
- ] }) : /* @__PURE__ */ t("span", { className: I, children: a });
1316
+ ] }) : /* @__PURE__ */ t("span", { className: $, children: a });
1218
1317
  });
1219
- Ct.displayName = "PktTag";
1220
- const jt = B(
1221
- ({ id: a, label: c, ...i }, f) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
1222
- /* @__PURE__ */ t("label", { htmlFor: a, className: "pkt-form-label", children: c }),
1223
- /* @__PURE__ */ t("textarea", { className: "pkt-form-textarea", id: a, ref: f, ...i })
1224
- ] })
1225
- );
1226
- jt.displayName = "PktTextarea";
1227
- const Wt = B(
1318
+ jt.displayName = "PktTag";
1319
+ const Bt = U(
1228
1320
  ({
1229
1321
  id: a,
1230
- label: c,
1231
- name: i,
1232
- srOnlyLabel: f = !1,
1233
- helptext: l,
1234
- helptextDropdown: u,
1235
- helptextDropdownButton: m,
1236
- optional: o = !1,
1237
- required: p = !1,
1238
- hasError: y = !1,
1239
- errorMessage: N,
1240
- placeholder: x,
1241
- type: T = "text",
1242
- autocomplete: j = "off",
1243
- value: I,
1244
- suffix: O,
1245
- prefix: F,
1246
- iconNameRight: C,
1247
- disabled: E = !1,
1248
- inline: Q = !1,
1249
- ariaLabelledby: M,
1250
- ariaDescribedby: J,
1251
- className: H,
1252
- ...W
1322
+ ariaDescribedby: p,
1323
+ ariaLabelledby: c,
1324
+ counter: s,
1325
+ counterMaxLength: l,
1326
+ className: u,
1327
+ disabled: f,
1328
+ errorMessage: i,
1329
+ hasError: d,
1330
+ helptext: x,
1331
+ helptextDropdown: N,
1332
+ helptextDropdownButton: v,
1333
+ inline: T,
1334
+ label: C,
1335
+ name: $,
1336
+ optional: L,
1337
+ placeholder: S,
1338
+ required: R,
1339
+ rows: y,
1340
+ useWrapper: D,
1341
+ value: j = "",
1342
+ ...V
1253
1343
  }, A) => {
1254
- const [Y, q] = ue(!1), z = () => {
1255
- q(!Y);
1256
- }, k = () => o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : p ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", P = o ? "Valgfritt" : p ? "Må fylles ut" : "", ae = [H, "pkt-textinput", E ? "pkt-textinput--disabled" : "", Q ? "pkt-textinput--inline" : "", y ? "pkt-textinput--error" : ""].join(
1257
- " "
1258
- ), G = !!u && u !== "";
1259
- return /* @__PURE__ */ s("div", { className: ae, children: [
1260
- /* @__PURE__ */ s(
1261
- G ? "div" : "label",
1262
- {
1263
- htmlFor: a,
1264
- className: `pkt-textinput__label ${f ? "pkt-sr-only" : ""}`,
1265
- "aria-describedby": G ? "" : J,
1266
- children: [
1267
- /* @__PURE__ */ s(G ? "h2" : "span", { children: [
1268
- c,
1269
- P !== "" && /* @__PURE__ */ t("span", { className: k(), children: P })
1270
- ] }),
1271
- l && /* @__PURE__ */ t("div", { className: "pkt-textinput__helptext", children: l }),
1272
- G && /* @__PURE__ */ s(V, { children: [
1273
- /* @__PURE__ */ t(
1274
- ce,
1275
- {
1276
- skin: "tertiary",
1277
- size: "small",
1278
- variant: "icon-right",
1279
- iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
1280
- className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
1281
- onClick: z,
1282
- children: m || /* @__PURE__ */ s(V, { children: [
1283
- "Les mer ",
1284
- /* @__PURE__ */ t("span", { className: "pkt-sr-only", children: "om inputfeltet" })
1285
- ] })
1286
- }
1287
- ),
1288
- /* @__PURE__ */ t(
1289
- "div",
1290
- {
1291
- className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
1292
- children: /* @__PURE__ */ t(Be, { children: u })
1293
- }
1294
- ),
1295
- /* @__PURE__ */ t(
1296
- "label",
1297
- {
1298
- htmlFor: a,
1299
- className: "pkt-textinput__label pkt-sr-only",
1300
- "aria-describedby": J,
1301
- children: c
1302
- }
1303
- )
1304
- ] }),
1305
- F && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1306
- /* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: F }),
1307
- /* @__PURE__ */ t(
1308
- "input",
1309
- {
1310
- ref: A,
1311
- className: "pkt-textinput__input",
1312
- type: T,
1313
- name: i || a,
1314
- id: a,
1315
- placeholder: x,
1316
- autoComplete: j,
1317
- value: I,
1318
- disabled: E,
1319
- "aria-required": p,
1320
- "aria-invalid": y,
1321
- "aria-labelledby": M,
1322
- ...W
1323
- }
1324
- )
1325
- ] }),
1326
- !F && (O || C) && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1327
- /* @__PURE__ */ t(
1328
- "input",
1329
- {
1330
- ref: A,
1331
- className: "pkt-textinput__input",
1332
- type: T,
1333
- name: i || a,
1334
- id: a,
1335
- placeholder: x,
1336
- autoComplete: j,
1337
- value: I,
1338
- disabled: E,
1339
- "aria-required": p,
1340
- "aria-invalid": y,
1341
- "aria-labelledby": M,
1342
- ...W
1343
- }
1344
- ),
1345
- O && /* @__PURE__ */ s("p", { className: "pkt-textinput__input-suffix", children: [
1346
- O,
1347
- C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: C })
1348
- ] }),
1349
- !O && C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: C })
1350
- ] }),
1351
- !F && !O && !C && !u && /* @__PURE__ */ t(
1344
+ const M = [u, "pkt-textinput", "pkt-textarea"].join(" "), O = c || `${a}-label`;
1345
+ return /* @__PURE__ */ o(
1346
+ ge,
1347
+ {
1348
+ ariaDescribedby: p,
1349
+ className: M,
1350
+ disabled: f,
1351
+ errorMessage: i,
1352
+ forId: a,
1353
+ hasError: d,
1354
+ helptext: x,
1355
+ helptextDropdown: N,
1356
+ helptextDropdownButton: v,
1357
+ inline: T,
1358
+ label: C,
1359
+ optional: L,
1360
+ required: R,
1361
+ useWrapper: D,
1362
+ children: [
1363
+ /* @__PURE__ */ t(
1364
+ "textarea",
1365
+ {
1366
+ ref: A,
1367
+ className: `pkt-textinput__input ${l && (j == null ? void 0 : j.length) > l ? "pkt-textinput__input--counter-error" : ""}`,
1368
+ name: $ || a,
1369
+ id: a,
1370
+ placeholder: S,
1371
+ value: j,
1372
+ disabled: f,
1373
+ rows: y,
1374
+ "aria-labelledby": O,
1375
+ "aria-invalid": d,
1376
+ "aria-required": R,
1377
+ ...V
1378
+ }
1379
+ ),
1380
+ s && /* @__PURE__ */ o("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
1381
+ (j == null ? void 0 : j.length) || 0,
1382
+ l && `/${l}`
1383
+ ] })
1384
+ ]
1385
+ }
1386
+ );
1387
+ }
1388
+ ), Yt = U(
1389
+ ({
1390
+ id: a,
1391
+ ariaDescribedby: p,
1392
+ ariaLabelledby: c,
1393
+ autocomplete: s = "off",
1394
+ className: l,
1395
+ disabled: u = !1,
1396
+ errorMessage: f,
1397
+ hasError: i = !1,
1398
+ helptext: d,
1399
+ helptextDropdown: x,
1400
+ helptextDropdownButton: N,
1401
+ iconNameRight: v,
1402
+ inline: T = !1,
1403
+ label: C,
1404
+ name: $,
1405
+ optional: L = !1,
1406
+ placeholder: S,
1407
+ prefix: R,
1408
+ required: y = !1,
1409
+ suffix: D,
1410
+ type: j = "text",
1411
+ useWrapper: V = !0,
1412
+ value: A,
1413
+ ...M
1414
+ }, O) => {
1415
+ const J = [l, "pkt-textinput"].join(" "), B = c || `${a}-label`;
1416
+ return /* @__PURE__ */ o(
1417
+ ge,
1418
+ {
1419
+ ariaDescribedby: p,
1420
+ className: J,
1421
+ disabled: u,
1422
+ errorMessage: f,
1423
+ forId: a,
1424
+ hasError: i,
1425
+ helptext: d,
1426
+ helptextDropdown: x,
1427
+ helptextDropdownButton: N,
1428
+ inline: T,
1429
+ label: C,
1430
+ optional: L,
1431
+ required: y,
1432
+ useWrapper: V,
1433
+ children: [
1434
+ R && /* @__PURE__ */ o("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1435
+ /* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: R }),
1436
+ /* @__PURE__ */ t(
1352
1437
  "input",
1353
1438
  {
1354
- ref: A,
1439
+ ref: O,
1355
1440
  className: "pkt-textinput__input",
1356
- type: T,
1357
- name: i || a,
1441
+ type: j,
1442
+ name: $ || a,
1358
1443
  id: a,
1359
- placeholder: x,
1360
- autoComplete: j,
1361
- value: I,
1362
- disabled: E,
1363
- "aria-required": p,
1364
- "aria-invalid": y,
1365
- "aria-labelledby": M,
1366
- ...W
1444
+ placeholder: S,
1445
+ autoComplete: s,
1446
+ value: A,
1447
+ disabled: u,
1448
+ "aria-required": y,
1449
+ "aria-invalid": i,
1450
+ "aria-labelledby": B,
1451
+ ...M
1367
1452
  }
1368
1453
  )
1369
- ]
1370
- }
1371
- ),
1372
- y && /* @__PURE__ */ t(Be, { skin: "error", "aria-live": "assertive", children: N })
1373
- ] });
1454
+ ] }),
1455
+ !R && (D || v) && /* @__PURE__ */ o("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1456
+ /* @__PURE__ */ t(
1457
+ "input",
1458
+ {
1459
+ ref: O,
1460
+ className: "pkt-textinput__input",
1461
+ type: j,
1462
+ name: $ || a,
1463
+ id: a,
1464
+ placeholder: S,
1465
+ autoComplete: s,
1466
+ value: A,
1467
+ disabled: u,
1468
+ "aria-required": y,
1469
+ "aria-invalid": i,
1470
+ "aria-labelledby": B,
1471
+ ...M
1472
+ }
1473
+ ),
1474
+ D && /* @__PURE__ */ o("p", { className: "pkt-textinput__input-suffix", children: [
1475
+ D,
1476
+ v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: v })
1477
+ ] }),
1478
+ !D && v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: v })
1479
+ ] }),
1480
+ !R && !D && !v && /* @__PURE__ */ t(
1481
+ "input",
1482
+ {
1483
+ ref: O,
1484
+ className: "pkt-textinput__input",
1485
+ type: j,
1486
+ name: $ || a,
1487
+ id: a,
1488
+ placeholder: S,
1489
+ autoComplete: s,
1490
+ value: A,
1491
+ disabled: u,
1492
+ "aria-required": y,
1493
+ "aria-invalid": i,
1494
+ "aria-labelledby": B,
1495
+ ...M
1496
+ }
1497
+ )
1498
+ ]
1499
+ }
1500
+ );
1374
1501
  }
1375
1502
  );
1376
1503
  export {
1377
- Be as PktAlert,
1378
- ce as PktButton,
1379
- Ot as PktFooter,
1380
- $t as PktFooterSimple,
1381
- It as PktHeader,
1504
+ He as PktAlert,
1505
+ Ot as PktBackLink,
1506
+ oe as PktButton,
1507
+ $t as PktFooter,
1508
+ It as PktFooterSimple,
1509
+ Ft as PktHeader,
1382
1510
  g as PktIcon,
1383
- wt as PktInput,
1384
- Rt as PktLinkCard,
1385
- Ft as PktMessagebox,
1386
- Pt as PktRadio,
1387
- Dt as PktRadioGroup,
1388
- At as PktTable,
1389
- Lt as PktTableData,
1390
- Mt as PktTableHeader,
1391
- Ct as PktTag,
1392
- jt as PktTextarea,
1393
- Wt as PktTextinput
1511
+ Rt as PktInput,
1512
+ ge as PktInputWrapper,
1513
+ Pt as PktLinkCard,
1514
+ Dt as PktMessagebox,
1515
+ Tt as PktRadio,
1516
+ At as PktRadioGroup,
1517
+ Lt as PktTable,
1518
+ Mt as PktTableData,
1519
+ Wt as PktTableHeader,
1520
+ jt as PktTag,
1521
+ Bt as PktTextarea,
1522
+ Yt as PktTextinput
1394
1523
  };