@oslokommune/punkt-react 6.0.5 → 7.0.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 B, { useState as se, useEffect as bt, forwardRef as G } 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"), u = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { 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
- u.call(p, N) && !f.hasOwnProperty(N) && (x[N] = p[N]);
20
+ var a = B, u = Symbol.for("react.element"), p = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function f(o, 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) && !c.hasOwnProperty(N) && (v[N] = d[N]);
26
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 };
27
+ for (N in d = o.defaultProps, d)
28
+ v[N] === void 0 && (v[N] = d[N]);
29
+ return { $$typeof: u, type: o, 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 = p, 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,69 +41,69 @@ 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"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = 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 = B, u = Symbol.for("react.element"), p = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = 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"), 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 === u || e === f || 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, U = !1, A = !1, M = !1, O = !1, J;
72
+ J = Symbol.for("react.module.reference");
73
+ function Y(e) {
74
+ return !!(typeof e == "string" || typeof e == "function" || e === s || e === c || O || e === l || e === x || e === N || M || e === C || j || U || A || 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
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 u:
98
+ case s:
99
99
  return "Fragment";
100
- case i:
100
+ case p:
101
101
  return "Portal";
102
- case f:
102
+ case c:
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";
@@ -113,18 +113,18 @@ function Nt() {
113
113
  case o:
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 (V) {
243
+ m = V;
244
244
  }
245
245
  Reflect.construct(e, [], _);
246
246
  } else {
247
247
  try {
248
248
  _.call();
249
- } catch (L) {
250
- d = L;
249
+ } catch (V) {
250
+ m = V;
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 (V) {
258
+ m = V;
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 (V) {
263
+ if (V && m && typeof V.stack == "string") {
264
+ for (var h = V.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 : "", Be = X ? re(X) : "";
285
+ return typeof e == "function" && ae.set(e, Be), Be;
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;
324
- function ie(e) {
323
+ var le = Object.prototype.hasOwnProperty, je = {}, Se = R.ReactDebugCurrentFrame;
324
+ function oe(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) && (oe(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), oe(null)), h instanceof Error && !(h.message in je) && (je[h.message] = !0, oe(b), y("Failed %s type: %s", n, h.message), oe(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 ot(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
- function ot(e, r) {
403
+ function it(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: u,
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, ot(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 && it(_, 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 === u;
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,176 +558,176 @@ 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 Ye(e, r, n, m, b, w) {
591
591
  {
592
- var _ = q(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 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 === u ? (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 === u ? 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 Ye(e, r, n, !0);
622
+ }
623
+ function ht(e, r, n) {
624
+ return Ye(e, r, n, !1);
625
625
  }
626
- var ht = kt, _t = mt;
627
- re.Fragment = u, re.jsx = ht, re.jsxs = _t;
628
- }()), re;
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 H = be.Fragment, t = be.jsx, i = be.jsxs, _e = {}, wt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
+ function xt(a, u) {
634
+ return !_e[a] && typeof window.fetch == "function" && (_e[a] = window.fetch(u + a + ".svg").then((p) => p.ok ? p.text() : (console.error("Missing icon: " + u + a + ".svg"), wt)).then((p) => p)), Promise.resolve(_e[a]);
635
635
  }
636
- const g = ({ name: a, path: c, className: i = "", ...u }) => {
637
- const l = "https://punkt-cdn.oslo.kommune.no/6.0/icons/", [f, m] = ue(null);
638
- return vt(() => {
636
+ const g = ({ name: a, path: u, className: p = "", ...s }) => {
637
+ const l = "https://punkt-cdn.oslo.kommune.no/7.0/icons/", [c, 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]), f ? /* @__PURE__ */ t(
641
+ xt(a, u || l).then((d) => f(d));
642
+ }, [a, u, l]), c ? /* @__PURE__ */ t(
643
643
  "span",
644
644
  {
645
- className: `pkt-icon ${i}`,
646
- dangerouslySetInnerHTML: { __html: f },
647
- ...u
645
+ className: `pkt-icon ${p}`,
646
+ dangerouslySetInnerHTML: { __html: c },
647
+ ...s
648
648
  }
649
649
  ) : null;
650
- }, Be = B(
650
+ }, He = G(
651
651
  ({
652
652
  children: a,
653
- className: c,
654
- skin: i = "info",
655
- closeAlert: u = !1,
653
+ className: u,
654
+ skin: p = "info",
655
+ closeAlert: s = !1,
656
656
  onClose: l,
657
- title: f,
658
- date: m,
657
+ title: c,
658
+ date: f,
659
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 = () => {
660
+ ...d
661
+ }, x) => {
662
+ const N = [u, "pkt-alert", p && `pkt-alert--${p}`].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__ */ i("div", { ...d, className: N, "aria-live": o, 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: p === "info" ? "alert-information" : `alert-${p}`
671
671
  }
672
672
  ),
673
- u && /* @__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
- f && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: f }),
684
+ c && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: c }),
685
685
  /* @__PURE__ */ t("div", { className: "pkt-alert__text", children: a }),
686
- m && /* @__PURE__ */ s("div", { className: "pkt-alert__date", children: [
686
+ f && /* @__PURE__ */ i("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
+ ), ie = G(
693
693
  ({
694
694
  children: a,
695
- className: c,
696
- iconName: i = "user",
697
- secondIconName: u = "user",
695
+ className: u,
696
+ iconName: p = "user",
697
+ secondIconName: s = "user",
698
698
  size: l = "medium",
699
- skin: f = "primary",
700
- type: m = "button",
699
+ skin: c = "primary",
700
+ type: f = "button",
701
701
  variant: o = "label-only",
702
- color: p,
703
- ...y
702
+ color: d,
703
+ ...x
704
704
  }, N) => {
705
- const x = [
706
- c,
705
+ const v = [
706
+ u,
707
707
  "pkt-btn",
708
708
  l && `pkt-btn--${l}`,
709
- f && `pkt-btn--${f}`,
709
+ c && `pkt-btn--${c}`,
710
710
  o && `pkt-btn--${o}`,
711
- p && `pkt-btn--${p}`
711
+ d && `pkt-btn--${d}`
712
712
  ].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 }),
713
+ return /* @__PURE__ */ i("button", { ...x, className: v, type: f, ref: N, children: [
714
+ o !== "label-only" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: p }),
715
715
  /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: a }),
716
- o === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: u })
716
+ o === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: s })
717
717
  ] });
718
718
  }
719
719
  );
720
- ce.displayName = "PktButton";
721
- const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
722
- var f, m;
723
- const l = [u, "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: [
720
+ ie.displayName = "PktButton";
721
+ const Ot = ({ columnOne: a, columnTwo: u, socialLinks: p, className: s }) => {
722
+ var c, f;
723
+ const l = [s, "pkt-footer"].filter(Boolean).join(" ");
724
+ return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ i("div", { className: "pkt-footer__container", children: [
725
+ /* @__PURE__ */ i("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
726
+ /* @__PURE__ */ i("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
727
727
  /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: a.title }),
728
- /* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
728
+ /* @__PURE__ */ i("ul", { className: "pkt-footer__list", children: [
729
729
  a.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: a.text }),
730
- (f = a.links) == null ? void 0 : f.map((o, p) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
730
+ (c = a.links) == null ? void 0 : c.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ i(
731
731
  "a",
732
732
  {
733
733
  className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
@@ -739,14 +739,14 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
739
739
  o.text
740
740
  ]
741
741
  }
742
- ) }, `links-${p}`))
742
+ ) }, `links-${d}`))
743
743
  ] })
744
744
  ] }),
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(
745
+ /* @__PURE__ */ i("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: u.title }),
747
+ /* @__PURE__ */ i("ul", { className: "pkt-footer__list", children: [
748
+ u.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: u.text }),
749
+ (f = u.links) == null ? void 0 : f.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ i(
750
750
  "a",
751
751
  {
752
752
  className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
@@ -758,13 +758,13 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
758
758
  o.text
759
759
  ]
760
760
  }
761
- ) }, `links-${p}`))
761
+ ) }, `links-${d}`))
762
762
  ] })
763
763
  ] }),
764
- /* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
764
+ /* @__PURE__ */ i("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
765
765
  /* @__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(
766
+ /* @__PURE__ */ i("ul", { className: "pkt-footer__list", children: [
767
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ i(
768
768
  "a",
769
769
  {
770
770
  className: "pkt-footer__link",
@@ -775,15 +775,15 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
775
775
  ]
776
776
  }
777
777
  ) }),
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: [
778
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ i("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
779
779
  /* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
780
780
  "Tilgjengelighet"
781
781
  ] }) })
782
782
  ] })
783
783
  ] })
784
784
  ] }),
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(
785
+ p && /* @__PURE__ */ i("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
786
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: p.filter((o) => o.language).map((o, d) => /* @__PURE__ */ t(
787
787
  "div",
788
788
  {
789
789
  className: "pkt-footer__social-language",
@@ -798,9 +798,9 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
798
798
  }
799
799
  )
800
800
  },
801
- `sociallinks-language-${p}`
801
+ `sociallinks-language-${d}`
802
802
  )) }),
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(
803
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: p.filter((o) => o.iconName).map((o, d) => /* @__PURE__ */ t(B.Fragment, { children: /* @__PURE__ */ t(
804
804
  "a",
805
805
  {
806
806
  href: o.href,
@@ -810,22 +810,22 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
810
810
  rel: o.openInNewTab ? "noopener noreferrer" : void 0,
811
811
  children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name: o.iconName })
812
812
  }
813
- ) }, `sociallinks-${p}`)) })
813
+ ) }, `sociallinks-${d}`)) })
814
814
  ] })
815
815
  ] }) });
816
816
  }, $t = ({
817
817
  links: a = [],
818
- className: c
818
+ className: u
819
819
  }) => {
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((u, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s(
820
+ const p = [u, "pkt-footer-simple"].filter(Boolean).join(" ");
821
+ return /* @__PURE__ */ t("footer", { className: p, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ i("ul", { className: "pkt-footer-simple__list", children: [
822
+ a.map((s, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ i(
823
823
  "a",
824
824
  {
825
- className: `pkt-footer-simple__link ${u.external ? " pkt-link--external" : ""}`,
826
- href: u.href,
827
- target: u.openInNewTab ? "_blank" : "_self",
828
- rel: u.openInNewTab ? "noopener noreferrer" : void 0,
825
+ className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
826
+ href: s.href,
827
+ target: s.openInNewTab ? "_blank" : "_self",
828
+ rel: s.openInNewTab ? "noopener noreferrer" : void 0,
829
829
  children: [
830
830
  /* @__PURE__ */ t(
831
831
  g,
@@ -834,21 +834,21 @@ const Ot = ({ columnOne: a, columnTwo: c, socialLinks: i, className: u }) => {
834
834
  name: "chevron-right"
835
835
  }
836
836
  ),
837
- u.text
837
+ s.text
838
838
  ]
839
839
  }
840
840
  ) }, 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: [
841
+ /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ i("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
842
842
  /* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
843
843
  "Personvern og informasjonskapsler"
844
844
  ] }) }),
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: [
845
+ /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ i("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
846
846
  /* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
847
847
  "Tilgjengelighet"
848
848
  ] }) })
849
849
  ] }) }) });
850
850
  };
851
- var He = { exports: {} };
851
+ var Ge = { exports: {} };
852
852
  /*!
853
853
  Copyright (c) 2018 Jed Watson.
854
854
  Licensed under the MIT License (MIT), see
@@ -856,96 +856,96 @@ var He = { exports: {} };
856
856
  */
857
857
  (function(a) {
858
858
  (function() {
859
- var c = {}.hasOwnProperty;
860
- function i() {
861
- for (var u = [], l = 0; l < arguments.length; l++) {
862
- var f = arguments[l];
863
- if (f) {
864
- var m = typeof f;
865
- if (m === "string" || m === "number")
866
- u.push(f);
867
- else if (Array.isArray(f)) {
868
- if (f.length) {
869
- var o = i.apply(null, f);
870
- o && u.push(o);
859
+ var u = {}.hasOwnProperty;
860
+ function p() {
861
+ for (var s = [], l = 0; l < arguments.length; l++) {
862
+ var c = arguments[l];
863
+ if (c) {
864
+ var f = typeof c;
865
+ if (f === "string" || f === "number")
866
+ s.push(c);
867
+ else if (Array.isArray(c)) {
868
+ if (c.length) {
869
+ var o = p.apply(null, c);
870
+ o && s.push(o);
871
871
  }
872
- } else if (m === "object") {
873
- if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
874
- u.push(f.toString());
872
+ } else if (f === "object") {
873
+ if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
874
+ s.push(c.toString());
875
875
  continue;
876
876
  }
877
- for (var p in f)
878
- c.call(f, p) && f[p] && u.push(p);
877
+ for (var d in c)
878
+ u.call(c, d) && c[d] && s.push(d);
879
879
  }
880
880
  }
881
881
  }
882
- return u.join(" ");
882
+ return s.join(" ");
883
883
  }
884
- a.exports ? (i.default = i, a.exports = i) : window.classNames = i;
884
+ a.exports ? (p.default = p, a.exports = p) : window.classNames = p;
885
885
  })();
886
- })(He);
887
- var Et = He.exports;
888
- const Ge = /* @__PURE__ */ gt(Et), It = B(
886
+ })(Ge);
887
+ var Et = Ge.exports;
888
+ const Je = /* @__PURE__ */ gt(Et), It = G(
889
889
  ({
890
890
  logoLink: a = "https://www.oslo.kommune.no/",
891
- serviceName: c,
892
- fixed: i = !0,
893
- scrollToHide: u = !0,
891
+ serviceName: u,
892
+ fixed: p = !0,
893
+ scrollToHide: s = !0,
894
894
  user: l,
895
- userMenu: f,
896
- representing: m,
895
+ userMenu: c,
896
+ representing: f,
897
897
  userOptions: o,
898
- userMenuFooter: p,
899
- canChangeRepresentation: y = !0,
898
+ userMenuFooter: d,
899
+ canChangeRepresentation: x = !0,
900
900
  showMenuButton: N = !1,
901
- showLogOutButton: x = !1,
901
+ showLogOutButton: v = !1,
902
902
  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", {
903
+ logOut: C,
904
+ changeRepresentation: $,
905
+ ...L
906
+ }, S) => {
907
+ const R = B.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
908
908
  year: "numeric",
909
909
  month: "long",
910
910
  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);
911
+ }) : "", [l]), [y, D] = B.useState(!1), [j, U] = B.useState(0), [A, M] = B.useState(!1), O = B.useRef(null);
912
+ B.useEffect(() => (document.addEventListener("mouseup", Y), window.addEventListener("scroll", z), () => {
913
+ document.removeEventListener("mouseup", Y), window.removeEventListener("scroll", z);
914
914
  }));
915
- const Y = () => {
916
- W(!H);
917
- }, q = (k) => {
918
- A.current && !A.current.contains(k.target) && W(!1);
915
+ const J = () => {
916
+ M(!A);
917
+ }, Y = (k) => {
918
+ O.current && !O.current.contains(k.target) && M(!1);
919
919
  }, z = () => {
920
- if (u) {
920
+ if (s) {
921
921
  const k = window.pageYOffset || document.documentElement.scrollTop;
922
- if (k < 0 || Math.abs(k - M) < 60)
922
+ if (k < 0 || Math.abs(k - j) < 60)
923
923
  return;
924
- Q(k > M), J(k);
924
+ D(k > j), U(k);
925
925
  }
926
926
  };
927
- return /* @__PURE__ */ s(
927
+ return /* @__PURE__ */ i(
928
928
  "header",
929
929
  {
930
- ...O,
930
+ ...L,
931
931
  id: "pkt-header",
932
932
  "data-testid": "pkt-header",
933
933
  "aria-label": "Topp",
934
- className: Ge("pkt-header", {
935
- "pkt-header--fixed": i,
936
- "pkt-header--scroll-to-hide": u,
937
- "pkt-header--hidden": E
934
+ className: Je("pkt-header", {
935
+ "pkt-header--fixed": p,
936
+ "pkt-header--scroll-to-hide": s,
937
+ "pkt-header--hidden": y
938
938
  }),
939
- ref: F,
939
+ ref: S,
940
940
  children: [
941
- /* @__PURE__ */ s("div", { className: "pkt-header__logo", children: [
941
+ /* @__PURE__ */ i("div", { className: "pkt-header__logo", children: [
942
942
  typeof a == "string" ? /* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: a, children: /* @__PURE__ */ t(
943
943
  g,
944
944
  {
945
945
  name: "oslologo",
946
946
  className: "pkt-header__logo-svg",
947
947
  "aria-hidden": "true",
948
- path: "https://punkt-cdn.oslo.kommune.no/6.0/logos/"
948
+ path: "https://punkt-cdn.oslo.kommune.no/7.0/logos/"
949
949
  }
950
950
  ) }) : /* @__PURE__ */ t(
951
951
  "button",
@@ -959,16 +959,16 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
959
959
  name: "oslologo",
960
960
  className: "pkt-header__logo-svg",
961
961
  "aria-hidden": "true",
962
- path: "https://punkt-cdn.oslo.kommune.no/6.0/logos/"
962
+ path: "https://punkt-cdn.oslo.kommune.no/7.0/logos/"
963
963
  }
964
964
  )
965
965
  }
966
966
  ),
967
- /* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: c })
967
+ /* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: u })
968
968
  ] }),
969
- /* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ s("ul", { className: "pkt-header__actions-row", children: [
969
+ /* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ i("ul", { className: "pkt-header__actions-row", children: [
970
970
  N && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
971
- ce,
971
+ ie,
972
972
  {
973
973
  className: "pkt-header__menu-btn",
974
974
  skin: "secondary",
@@ -978,61 +978,61 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
978
978
  children: "Meny"
979
979
  }
980
980
  ) }),
981
- (l || m) && /* @__PURE__ */ s(
981
+ (l || f) && /* @__PURE__ */ i(
982
982
  "li",
983
983
  {
984
984
  "data-testid": "usermenu",
985
- className: `pkt-header--has-dropdown ${H && !E ? "pkt-header--open-dropdown" : ""}`,
986
- ref: A,
985
+ className: `pkt-header--has-dropdown ${A && !y ? "pkt-header--open-dropdown" : ""}`,
986
+ ref: O,
987
987
  children: [
988
- /* @__PURE__ */ s(
988
+ /* @__PURE__ */ i(
989
989
  "button",
990
990
  {
991
991
  className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
992
992
  type: "button",
993
993
  role: "button",
994
994
  "aria-controls": "pktUserDropdown",
995
- "aria-expanded": H,
996
- onClick: Y,
995
+ "aria-expanded": A,
996
+ onClick: J,
997
997
  children: [
998
998
  /* @__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) }),
999
+ /* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (f == null ? void 0 : f.name) || (l == null ? void 0 : l.name) }),
1000
+ /* @__PURE__ */ t("span", { className: "pkt-header__user-shortname", children: (f == null ? void 0 : f.shortname) || (l == null ? void 0 : l.shortname) }),
1001
1001
  /* @__PURE__ */ t(g, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1002
1002
  /* @__PURE__ */ t(g, { name: "chevron-thin-up", className: "pkt-btn--open" })
1003
1003
  ]
1004
1004
  }
1005
1005
  ),
1006
- /* @__PURE__ */ s("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1007
- l && /* @__PURE__ */ s("li", { children: [
1006
+ /* @__PURE__ */ i("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1007
+ l && /* @__PURE__ */ i("li", { children: [
1008
1008
  /* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1009
1009
  /* @__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: [
1010
+ l.lastLoggedIn && /* @__PURE__ */ i("div", { className: "pkt-user-menu__last-logged-in", children: [
1011
1011
  "Sist pålogget: ",
1012
- /* @__PURE__ */ t("time", { children: C })
1012
+ /* @__PURE__ */ t("time", { children: R })
1013
1013
  ] })
1014
1014
  ] }),
1015
- f && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: f.map((k, P) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ s("a", { href: k.target, className: "pkt-link", children: [
1015
+ c && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: c.map((k, I) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ i("a", { href: k.target, className: "pkt-link", children: [
1016
1016
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1017
1017
  k.title
1018
- ] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1018
+ ] }) : /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1019
1019
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1020
1020
  k.title
1021
- ] }) }, `userMenu-${P}`)) }) }),
1022
- (m || y) && /* @__PURE__ */ s("li", { children: [
1023
- m && /* @__PURE__ */ s(V, { children: [
1021
+ ] }) }, `userMenu-${I}`)) }) }),
1022
+ (f || x) && /* @__PURE__ */ i("li", { children: [
1023
+ f && /* @__PURE__ */ i(H, { children: [
1024
1024
  /* @__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: [
1025
+ /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: f.name }),
1026
+ f.orgNumber && /* @__PURE__ */ i("div", { className: "pkt-user-menu__org-number", children: [
1027
1027
  "Org.nr. ",
1028
- m.orgNumber
1028
+ f.orgNumber
1029
1029
  ] })
1030
1030
  ] }),
1031
- /* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: y && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s(
1031
+ /* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i(
1032
1032
  "button",
1033
1033
  {
1034
1034
  className: "pkt-link-button pkt-link",
1035
- onClick: I,
1035
+ onClick: $,
1036
1036
  children: [
1037
1037
  /* @__PURE__ */ t(g, { name: "cogwheel", className: "pkt-link__icon" }),
1038
1038
  "Endre organisasjon"
@@ -1040,31 +1040,31 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
1040
1040
  }
1041
1041
  ) }) })
1042
1042
  ] }),
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: [
1043
+ /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (o || !v) && /* @__PURE__ */ i(H, { children: [
1044
+ o == null ? void 0 : o.map((k, I) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ i("a", { href: k.target, className: "pkt-link", children: [
1045
1045
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1046
1046
  k.title
1047
- ] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1047
+ ] }) : /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1048
1048
  k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
1049
1049
  k.title
1050
- ] }) }, `userOptions-${P}`)),
1051
- !x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: j, children: [
1050
+ ] }) }, `userOptions-${I}`)),
1051
+ !v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1052
1052
  /* @__PURE__ */ t(g, { name: "exit", className: "pkt-link__icon" }),
1053
1053
  "Logg ut"
1054
1054
  ] }) })
1055
1055
  ] }) }) }),
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}`)) }) })
1056
+ 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
1057
  ] })
1058
1058
  ]
1059
1059
  }
1060
1060
  ),
1061
- x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
1062
- ce,
1061
+ v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
1062
+ ie,
1063
1063
  {
1064
1064
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1065
1065
  iconName: "exit",
1066
1066
  role: "button",
1067
- onClick: j,
1067
+ onClick: C,
1068
1068
  skin: "secondary",
1069
1069
  variant: "icon-right",
1070
1070
  children: "Logg ut"
@@ -1075,38 +1075,124 @@ const Ge = /* @__PURE__ */ gt(Et), It = B(
1075
1075
  }
1076
1076
  );
1077
1077
  }
1078
- ), wt = D.forwardRef(
1079
- ({ label: a, id: c, children: i, ...u }, 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, ...u, ref: l }),
1082
- i
1078
+ ), Rt = B.forwardRef(
1079
+ ({ label: a, id: u, children: p, ...s }, l) => /* @__PURE__ */ i("div", { className: "pkt-form-group", children: [
1080
+ /* @__PURE__ */ t("label", { htmlFor: u, className: "pkt-form-label", children: a }),
1081
+ /* @__PURE__ */ t("input", { className: "pkt-form-input", id: u, ...s, ref: l }),
1082
+ p
1083
1083
  ] })
1084
1084
  );
1085
- wt.displayName = "PktInput";
1086
- const Rt = B(
1085
+ Rt.displayName = "PktInput";
1086
+ const ge = G(
1087
+ ({
1088
+ forId: a,
1089
+ label: u,
1090
+ helptext: p,
1091
+ helptextDropdown: s,
1092
+ helptextDropdownButton: l,
1093
+ optional: c,
1094
+ required: f,
1095
+ hasError: o,
1096
+ errorMessage: d,
1097
+ disabled: x,
1098
+ inline: N,
1099
+ ariaDescribedby: v,
1100
+ useWrapper: T = !0,
1101
+ children: C,
1102
+ className: $
1103
+ }, L) => {
1104
+ const [S, R] = se(!1), y = () => {
1105
+ R(!S);
1106
+ }, D = () => c ? "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 = c ? "Valgfritt" : f ? "Må fylles ut" : "", U = x ? "pkt-inputwrapper--disabled" : "", A = N ? "pkt-inputwrapper--inline" : "", M = o ? "pkt-inputwrapper--error" : "", O = !!s && s !== "", J = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', Y = O ? "div" : "label", z = O ? "h2" : "span", k = v || (p ? `${a}-helptext` : void 0);
1107
+ return /* @__PURE__ */ i(
1108
+ "div",
1109
+ {
1110
+ className: ["pkt-inputwrapper", $, U, A, M].join(
1111
+ " "
1112
+ ),
1113
+ ref: L,
1114
+ children: [
1115
+ T ? /* @__PURE__ */ i(H, { children: [
1116
+ /* @__PURE__ */ t(
1117
+ Y,
1118
+ {
1119
+ htmlFor: a,
1120
+ className: "pkt-inputwrapper__label",
1121
+ "aria-describedby": O ? "" : v,
1122
+ children: /* @__PURE__ */ i(z, { id: `${a}-label`, children: [
1123
+ u,
1124
+ j !== "" && /* @__PURE__ */ t("span", { className: D(), children: j })
1125
+ ] })
1126
+ }
1127
+ ),
1128
+ p && /* @__PURE__ */ t("div", { className: "pkt-inputwrapper__helptext", id: `${a}-helptext`, children: p }),
1129
+ O && s !== "" && /* @__PURE__ */ i("div", { children: [
1130
+ /* @__PURE__ */ t(
1131
+ ie,
1132
+ {
1133
+ skin: "tertiary",
1134
+ size: "small",
1135
+ variant: "icon-right",
1136
+ iconName: S ? "chevron-thin-up" : "chevron-thin-down",
1137
+ className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1138
+ onClick: y,
1139
+ children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: J } })
1140
+ }
1141
+ ),
1142
+ /* @__PURE__ */ t(
1143
+ "div",
1144
+ {
1145
+ className: `pkt-inputwrapper__helptext ${S ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1146
+ children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: s } }) })
1147
+ }
1148
+ ),
1149
+ /* @__PURE__ */ t("label", { htmlFor: a, className: "pkt-sr-only", "aria-describedby": k, children: u })
1150
+ ] }),
1151
+ /* @__PURE__ */ t(H, { children: C })
1152
+ ] }) : /* @__PURE__ */ i(H, { children: [
1153
+ /* @__PURE__ */ t(
1154
+ "label",
1155
+ {
1156
+ htmlFor: a,
1157
+ className: "pkt-sr-only",
1158
+ "aria-describedby": k,
1159
+ id: `${a}-label`,
1160
+ children: u
1161
+ }
1162
+ ),
1163
+ C
1164
+ ] }),
1165
+ o && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(He, { skin: "error", "aria-live": "assertive", children: d }) })
1166
+ ]
1167
+ }
1168
+ );
1169
+ }
1170
+ );
1171
+ ge.displayName = "PktInputWrapper";
1172
+ const Pt = G(
1087
1173
  ({
1088
1174
  children: a,
1089
- className: c,
1090
- iconName: i = "user",
1091
- openInNewTab: u = !1,
1175
+ className: u,
1176
+ iconName: p = "user",
1177
+ openInNewTab: s = !1,
1092
1178
  skin: l = "normal",
1093
- href: f = "#",
1094
- external: m = !1,
1179
+ href: c = "#",
1180
+ external: f = !1,
1095
1181
  title: o
1096
- }, p) => {
1097
- const y = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
1098
- return /* @__PURE__ */ s(
1182
+ }, d) => {
1183
+ const x = [u, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
1184
+ return /* @__PURE__ */ i(
1099
1185
  "a",
1100
1186
  {
1101
- href: f,
1102
- className: `pkt-linkcard pkt-link ${y}`,
1103
- target: u ? "_blank" : "_self",
1104
- rel: u ? "noopener noreferrer" : void 0,
1105
- ref: p,
1187
+ href: c,
1188
+ className: `pkt-linkcard pkt-link ${x}`,
1189
+ target: s ? "_blank" : "_self",
1190
+ rel: s ? "noopener noreferrer" : void 0,
1191
+ ref: d,
1106
1192
  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 }),
1193
+ /* @__PURE__ */ t(g, { className: "pkt-link__icon", name: p }),
1194
+ /* @__PURE__ */ i("div", { className: "pkt-linkcard__content", children: [
1195
+ /* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${f ? "pkt-link pkt-link--external" : ""}`, children: o }),
1110
1196
  /* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: a })
1111
1197
  ] })
1112
1198
  ]
@@ -1114,280 +1200,310 @@ const Rt = B(
1114
1200
  );
1115
1201
  }
1116
1202
  );
1117
- Rt.displayName = "PktLinkCard";
1203
+ Pt.displayName = "PktLinkCard";
1118
1204
  const Ft = ({
1119
1205
  children: a,
1120
- skin: c = "beige",
1121
- title: i,
1122
- ...u
1206
+ skin: u = "beige",
1207
+ title: p,
1208
+ className: s,
1209
+ ...l
1123
1210
  }) => {
1124
- const l = ["pkt-messagebox", c && `pkt-messagebox--${c}`].filter(Boolean).join(" ");
1125
- return /* @__PURE__ */ s("div", { ...u, className: l, children: [
1126
- /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: i }),
1211
+ const c = ["pkt-messagebox", u && `pkt-messagebox--${u}`, s].filter(Boolean).join(" ");
1212
+ return /* @__PURE__ */ i("div", { ...l, className: c, children: [
1213
+ /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: p }),
1127
1214
  /* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: a })
1128
1215
  ] });
1129
- }, Pt = B(
1130
- ({ id: a, name: c, label: i, value: u, ...l }, f) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
1131
- /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: a, name: c, value: u, ref: f, ...l }),
1132
- /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: a, children: i })
1216
+ }, Tt = G(
1217
+ ({ id: a, name: u, label: p, value: s, ...l }, c) => /* @__PURE__ */ i("div", { className: "pkt-form-group", children: [
1218
+ /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: a, name: u, value: s, ref: c, ...l }),
1219
+ /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: a, children: p })
1133
1220
  ] })
1134
1221
  );
1135
- Pt.displayName = "PktRadio";
1136
- const Dt = ({ label: a, children: c }) => /* @__PURE__ */ s(V, { children: [
1222
+ Tt.displayName = "PktRadio";
1223
+ const Dt = ({ label: a, children: u }) => /* @__PURE__ */ i(H, { children: [
1137
1224
  /* @__PURE__ */ t("p", { children: a }),
1138
- /* @__PURE__ */ t("div", { className: "pkt-form-group", children: c })
1139
- ] }), Tt = ({ isResponsive: a, children: c }) => a ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ t(V, { children: c }), At = ({
1225
+ /* @__PURE__ */ t("div", { className: "pkt-form-group", children: u })
1226
+ ] }), Ct = ({ isResponsive: a, children: u }) => a ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: u }) : /* @__PURE__ */ t(H, { children: u }), At = ({
1140
1227
  isResponsive: a,
1141
- modifiers: { info: c = !1, success: i = !1, strong: u = !1, shadow: l = !1 } = {},
1142
- children: f
1143
- }) => /* @__PURE__ */ t(Tt, { isResponsive: a, children: /* @__PURE__ */ t(
1228
+ modifiers: { info: u = !1, success: p = !1, strong: s = !1, shadow: l = !1 } = {},
1229
+ children: c
1230
+ }) => /* @__PURE__ */ t(Ct, { isResponsive: a, children: /* @__PURE__ */ t(
1144
1231
  "table",
1145
1232
  {
1146
- className: Ge("pkt-table", {
1147
- "pkt-table--info": c,
1148
- "pkt-table--success": i,
1149
- "pkt-table--strong": u,
1233
+ className: Je("pkt-table", {
1234
+ "pkt-table--info": u,
1235
+ "pkt-table--success": p,
1236
+ "pkt-table--strong": s,
1150
1237
  "pkt-table--shadow": l
1151
1238
  }),
1152
- children: f
1239
+ children: c
1153
1240
  }
1154
- ) }), 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(({
1241
+ ) }), Lt = ({ children: a }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: a }), Mt = ({ children: a }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: a }), jt = G(({
1155
1242
  children: a,
1156
- className: c,
1157
- skin: i = "blue",
1158
- textStyle: u = "normal-text",
1243
+ className: u,
1244
+ skin: p = "blue",
1245
+ textStyle: s = "normal-text",
1159
1246
  size: l = "medium",
1160
- closeTag: f = !1,
1161
- iconName: m = "",
1247
+ closeTag: c = !1,
1248
+ iconName: f = "",
1162
1249
  type: o = "button",
1163
- ariaLabel: p = "close",
1164
- onClick: y = () => {
1250
+ ariaLabel: d = "close",
1251
+ onClick: x = () => {
1165
1252
  }
1166
1253
  }, N) => {
1167
- const [x, T] = ue(!1), j = (C) => {
1168
- T(!0), y(C);
1169
- }, I = [
1254
+ const [v, T] = se(!1), C = (R) => {
1255
+ T(!0), x(R);
1256
+ }, $ = [
1170
1257
  "pkt-tag",
1171
1258
  l && `pkt-tag--${l}`,
1172
- i && `pkt-tag--${i}`,
1173
- u && `pkt-tag--${u}`,
1174
- c
1175
- ].filter(Boolean).join(" "), O = [
1259
+ p && `pkt-tag--${p}`,
1260
+ s && `pkt-tag--${s}`,
1261
+ u
1262
+ ].filter(Boolean).join(" "), L = [
1176
1263
  "pkt-tag",
1177
1264
  "pkt-btn",
1178
1265
  "pkt-btn--tertiary",
1179
1266
  l && `pkt-tag--${l}`,
1180
- i && `pkt-tag--${i}`,
1181
- u && `pkt-tag--${u}`,
1182
- m && f ? "pkt-btn--icons-right-and-left" : null,
1183
- f && !m ? "pkt-btn--icon-right" : null,
1184
- c
1185
- ].filter(Boolean).join(" "), F = !x;
1186
- return f && m ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
1267
+ p && `pkt-tag--${p}`,
1268
+ s && `pkt-tag--${s}`,
1269
+ f && c ? "pkt-btn--icons-right-and-left" : null,
1270
+ c && !f ? "pkt-btn--icon-right" : null,
1271
+ u
1272
+ ].filter(Boolean).join(" "), S = !v;
1273
+ return c && f ? /* @__PURE__ */ t(H, { children: S && /* @__PURE__ */ i(
1187
1274
  "button",
1188
1275
  {
1189
- className: O,
1276
+ className: L,
1190
1277
  type: o,
1191
- "aria-label": p,
1192
- onClick: j,
1278
+ "aria-label": d,
1279
+ onClick: C,
1193
1280
  ref: N,
1194
1281
  children: [
1195
- /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
1282
+ /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
1196
1283
  a,
1197
1284
  /* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" })
1198
1285
  ]
1199
1286
  }
1200
- ) }) : f ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
1287
+ ) }) : c ? /* @__PURE__ */ t(H, { children: S && /* @__PURE__ */ i(
1201
1288
  "button",
1202
1289
  {
1203
- className: O,
1290
+ className: L,
1204
1291
  type: o,
1205
- "aria-label": p,
1206
- onClick: j,
1292
+ "aria-label": d,
1293
+ onClick: C,
1207
1294
  ref: N,
1208
1295
  children: [
1209
1296
  /* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" }),
1210
1297
  a
1211
1298
  ]
1212
1299
  }
1213
- ) }) : m ? /* @__PURE__ */ s("span", { className: I, children: [
1214
- /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
1300
+ ) }) : f ? /* @__PURE__ */ i("span", { className: $, children: [
1301
+ /* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
1215
1302
  a
1216
- ] }) : /* @__PURE__ */ t("span", { className: I, children: a });
1303
+ ] }) : /* @__PURE__ */ t("span", { className: $, children: a });
1217
1304
  });
1218
- Ct.displayName = "PktTag";
1219
- const jt = B(
1220
- ({ id: a, label: c, ...i }, u) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
1221
- /* @__PURE__ */ t("label", { htmlFor: a, className: "pkt-form-label", children: c }),
1222
- /* @__PURE__ */ t("textarea", { className: "pkt-form-textarea", id: a, ref: u, ...i })
1223
- ] })
1224
- );
1225
- jt.displayName = "PktTextarea";
1226
- const Wt = B(
1305
+ jt.displayName = "PktTag";
1306
+ const Wt = G(
1227
1307
  ({
1228
1308
  id: a,
1229
- label: c,
1230
- name: i,
1231
- srOnlyLabel: u = !1,
1232
- helptext: l,
1233
- helptextDropdown: f,
1234
- helptextDropdownButton: m,
1235
- optional: o = !1,
1236
- required: p = !1,
1237
- hasError: y = !1,
1238
- errorMessage: N,
1239
- placeholder: x,
1240
- type: T = "text",
1241
- autocomplete: j = "off",
1242
- value: I,
1243
- suffix: O,
1244
- prefix: F,
1245
- iconNameRight: C,
1246
- disabled: E = !1,
1247
- inline: Q = !1,
1248
- ariaLabelledby: M,
1249
- ariaDescribedby: J,
1250
- className: H,
1251
- ...W
1309
+ ariaDescribedby: u,
1310
+ ariaLabelledby: p,
1311
+ counter: s,
1312
+ counterMaxLength: l,
1313
+ className: c,
1314
+ disabled: f,
1315
+ errorMessage: o,
1316
+ hasError: d,
1317
+ helptext: x,
1318
+ helptextDropdown: N,
1319
+ helptextDropdownButton: v,
1320
+ inline: T,
1321
+ label: C,
1322
+ name: $,
1323
+ optional: L,
1324
+ placeholder: S,
1325
+ required: R,
1326
+ rows: y,
1327
+ useWrapper: D,
1328
+ value: j = "",
1329
+ ...U
1252
1330
  }, A) => {
1253
- const [Y, q] = ue(!1), z = () => {
1254
- q(!Y);
1255
- }, 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(
1256
- " "
1257
- ), G = !!f && f !== "";
1258
- return /* @__PURE__ */ s("div", { className: ae, children: [
1259
- /* @__PURE__ */ s(
1260
- G ? "div" : "label",
1261
- {
1262
- htmlFor: a,
1263
- className: `pkt-textinput__label ${u ? "pkt-sr-only" : ""}`,
1264
- "aria-describedby": G ? "" : J,
1265
- children: [
1266
- /* @__PURE__ */ s(G ? "h2" : "span", { children: [
1267
- c,
1268
- P !== "" && /* @__PURE__ */ t("span", { className: k(), children: P })
1269
- ] }),
1270
- l && /* @__PURE__ */ t("div", { className: "pkt-textinput__helptext", children: l }),
1271
- G && /* @__PURE__ */ s(V, { children: [
1272
- /* @__PURE__ */ t(
1273
- ce,
1274
- {
1275
- skin: "tertiary",
1276
- size: "small",
1277
- variant: "icon-right",
1278
- iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
1279
- className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
1280
- onClick: z,
1281
- children: m || /* @__PURE__ */ s(V, { children: [
1282
- "Les mer ",
1283
- /* @__PURE__ */ t("span", { className: "pkt-sr-only", children: "om inputfeltet" })
1284
- ] })
1285
- }
1286
- ),
1287
- /* @__PURE__ */ t(
1288
- "div",
1289
- {
1290
- className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
1291
- children: /* @__PURE__ */ t(Be, { children: f })
1292
- }
1293
- ),
1294
- /* @__PURE__ */ t(
1295
- "label",
1296
- {
1297
- htmlFor: a,
1298
- className: "pkt-textinput__label pkt-sr-only",
1299
- "aria-describedby": J,
1300
- children: c
1301
- }
1302
- )
1303
- ] }),
1304
- F && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1305
- /* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: F }),
1306
- /* @__PURE__ */ t(
1307
- "input",
1308
- {
1309
- ref: A,
1310
- className: "pkt-textinput__input",
1311
- type: T,
1312
- name: i || a,
1313
- id: a,
1314
- placeholder: x,
1315
- autoComplete: j,
1316
- value: I,
1317
- disabled: E,
1318
- "aria-required": p,
1319
- "aria-invalid": y,
1320
- "aria-labelledby": M,
1321
- ...W
1322
- }
1323
- )
1324
- ] }),
1325
- !F && (O || C) && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1326
- /* @__PURE__ */ t(
1327
- "input",
1328
- {
1329
- ref: A,
1330
- className: "pkt-textinput__input",
1331
- type: T,
1332
- name: i || a,
1333
- id: a,
1334
- placeholder: x,
1335
- autoComplete: j,
1336
- value: I,
1337
- disabled: E,
1338
- "aria-required": p,
1339
- "aria-invalid": y,
1340
- "aria-labelledby": M,
1341
- ...W
1342
- }
1343
- ),
1344
- O && /* @__PURE__ */ s("p", { className: "pkt-textinput__input-suffix", children: [
1345
- O,
1346
- C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: C })
1347
- ] }),
1348
- !O && C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: C })
1349
- ] }),
1350
- !F && !O && !C && !f && /* @__PURE__ */ t(
1331
+ const M = [c, "pkt-textinput", "pkt-textarea"].join(" "), O = p || `${a}-label`;
1332
+ return /* @__PURE__ */ i(
1333
+ ge,
1334
+ {
1335
+ ariaDescribedby: u,
1336
+ className: M,
1337
+ disabled: f,
1338
+ errorMessage: o,
1339
+ forId: a,
1340
+ hasError: d,
1341
+ helptext: x,
1342
+ helptextDropdown: N,
1343
+ helptextDropdownButton: v,
1344
+ inline: T,
1345
+ label: C,
1346
+ optional: L,
1347
+ required: R,
1348
+ useWrapper: D,
1349
+ children: [
1350
+ /* @__PURE__ */ t(
1351
+ "textarea",
1352
+ {
1353
+ ref: A,
1354
+ className: `pkt-textinput__input ${l && (j == null ? void 0 : j.length) > l ? "pkt-textinput__input--counter-error" : ""}`,
1355
+ name: $ || a,
1356
+ id: a,
1357
+ placeholder: S,
1358
+ value: j,
1359
+ disabled: f,
1360
+ rows: y,
1361
+ "aria-labelledby": O,
1362
+ "aria-invalid": d,
1363
+ "aria-required": R,
1364
+ ...U
1365
+ }
1366
+ ),
1367
+ s && /* @__PURE__ */ i("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
1368
+ (j == null ? void 0 : j.length) || 0,
1369
+ l && `/${l}`
1370
+ ] })
1371
+ ]
1372
+ }
1373
+ );
1374
+ }
1375
+ ), Yt = G(
1376
+ ({
1377
+ id: a,
1378
+ ariaDescribedby: u,
1379
+ ariaLabelledby: p,
1380
+ autocomplete: s = "off",
1381
+ className: l,
1382
+ disabled: c = !1,
1383
+ errorMessage: f,
1384
+ hasError: o = !1,
1385
+ helptext: d,
1386
+ helptextDropdown: x,
1387
+ helptextDropdownButton: N,
1388
+ iconNameRight: v,
1389
+ inline: T = !1,
1390
+ label: C,
1391
+ name: $,
1392
+ optional: L = !1,
1393
+ placeholder: S,
1394
+ prefix: R,
1395
+ required: y = !1,
1396
+ suffix: D,
1397
+ type: j = "text",
1398
+ useWrapper: U = !0,
1399
+ value: A,
1400
+ ...M
1401
+ }, O) => {
1402
+ const J = [l, "pkt-textinput"].join(" "), Y = p || `${a}-label`;
1403
+ return /* @__PURE__ */ i(
1404
+ ge,
1405
+ {
1406
+ ariaDescribedby: u,
1407
+ className: J,
1408
+ disabled: c,
1409
+ errorMessage: f,
1410
+ forId: a,
1411
+ hasError: o,
1412
+ helptext: d,
1413
+ helptextDropdown: x,
1414
+ helptextDropdownButton: N,
1415
+ inline: T,
1416
+ label: C,
1417
+ optional: L,
1418
+ required: y,
1419
+ useWrapper: U,
1420
+ children: [
1421
+ R && /* @__PURE__ */ i("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
1422
+ /* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: R }),
1423
+ /* @__PURE__ */ t(
1351
1424
  "input",
1352
1425
  {
1353
- ref: A,
1426
+ ref: O,
1354
1427
  className: "pkt-textinput__input",
1355
- type: T,
1356
- name: i || a,
1428
+ type: j,
1429
+ name: $ || a,
1357
1430
  id: a,
1358
- placeholder: x,
1359
- autoComplete: j,
1360
- value: I,
1361
- disabled: E,
1362
- "aria-required": p,
1363
- "aria-invalid": y,
1364
- "aria-labelledby": M,
1365
- ...W
1431
+ placeholder: S,
1432
+ autoComplete: s,
1433
+ value: A,
1434
+ disabled: c,
1435
+ "aria-required": y,
1436
+ "aria-invalid": o,
1437
+ "aria-labelledby": Y,
1438
+ ...M
1366
1439
  }
1367
1440
  )
1368
- ]
1369
- }
1370
- ),
1371
- y && /* @__PURE__ */ t(Be, { skin: "error", "aria-live": "assertive", children: N })
1372
- ] });
1441
+ ] }),
1442
+ !R && (D || v) && /* @__PURE__ */ i("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
1443
+ /* @__PURE__ */ t(
1444
+ "input",
1445
+ {
1446
+ ref: O,
1447
+ className: "pkt-textinput__input",
1448
+ type: j,
1449
+ name: $ || a,
1450
+ id: a,
1451
+ placeholder: S,
1452
+ autoComplete: s,
1453
+ value: A,
1454
+ disabled: c,
1455
+ "aria-required": y,
1456
+ "aria-invalid": o,
1457
+ "aria-labelledby": Y,
1458
+ ...M
1459
+ }
1460
+ ),
1461
+ D && /* @__PURE__ */ i("p", { className: "pkt-textinput__input-suffix", children: [
1462
+ D,
1463
+ v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: v })
1464
+ ] }),
1465
+ !D && v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: v })
1466
+ ] }),
1467
+ !R && !D && !v && /* @__PURE__ */ t(
1468
+ "input",
1469
+ {
1470
+ ref: O,
1471
+ className: "pkt-textinput__input",
1472
+ type: j,
1473
+ name: $ || a,
1474
+ id: a,
1475
+ placeholder: S,
1476
+ autoComplete: s,
1477
+ value: A,
1478
+ disabled: c,
1479
+ "aria-required": y,
1480
+ "aria-invalid": o,
1481
+ "aria-labelledby": Y,
1482
+ ...M
1483
+ }
1484
+ )
1485
+ ]
1486
+ }
1487
+ );
1373
1488
  }
1374
1489
  );
1375
1490
  export {
1376
- Be as PktAlert,
1377
- ce as PktButton,
1491
+ He as PktAlert,
1492
+ ie as PktButton,
1378
1493
  Ot as PktFooter,
1379
1494
  $t as PktFooterSimple,
1380
1495
  It as PktHeader,
1381
1496
  g as PktIcon,
1382
- wt as PktInput,
1383
- Rt as PktLinkCard,
1497
+ Rt as PktInput,
1498
+ ge as PktInputWrapper,
1499
+ Pt as PktLinkCard,
1384
1500
  Ft as PktMessagebox,
1385
- Pt as PktRadio,
1501
+ Tt as PktRadio,
1386
1502
  Dt as PktRadioGroup,
1387
1503
  At as PktTable,
1388
1504
  Lt as PktTableData,
1389
1505
  Mt as PktTableHeader,
1390
- Ct as PktTag,
1391
- jt as PktTextarea,
1392
- Wt as PktTextinput
1506
+ jt as PktTag,
1507
+ Wt as PktTextarea,
1508
+ Yt as PktTextinput
1393
1509
  };