@oslokommune/punkt-react 5.2.3 → 6.0.1

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