@oslokommune/punkt-react 7.1.4 → 7.1.5

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