@oslokommune/punkt-react 7.1.7 → 7.2.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,9 @@
1
- import V, { useState as re, useEffect as He, forwardRef as H, useRef as bt } from "react";
2
- function gt(n) {
3
- return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1
+ import * as _ from "react";
2
+ import G, { useState as ie, useEffect as yt, forwardRef as H, useRef as ln } from "react";
3
+ function sn(e) {
4
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
5
  }
5
- var ve = { exports: {} }, ee = {};
6
+ var Fe = { exports: {} }, oe = {};
6
7
  /**
7
8
  * @license React
8
9
  * react-jsx-runtime.production.min.js
@@ -12,25 +13,25 @@ var ve = { exports: {} }, ee = {};
12
13
  * This source code is licensed under the MIT license found in the
13
14
  * LICENSE file in the root directory of this source tree.
14
15
  */
15
- var Ue;
16
- function Nt() {
17
- if (Ue)
18
- return ee;
19
- Ue = 1;
20
- var n = V, u = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function f(o, d, x) {
22
- var N, g = {}, T = null, C = null;
23
- x !== void 0 && (T = "" + x), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (C = d.ref);
24
- for (N in d)
25
- s.call(d, N) && !p.hasOwnProperty(N) && (g[N] = d[N]);
26
- if (o && o.defaultProps)
27
- for (N in d = o.defaultProps, d)
28
- g[N] === void 0 && (g[N] = d[N]);
29
- return { $$typeof: u, type: o, key: T, ref: C, props: g, _owner: l.current };
16
+ var kt;
17
+ function cn() {
18
+ if (kt)
19
+ return oe;
20
+ kt = 1;
21
+ var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function s(c, f, d) {
23
+ var h, v = {}, x = null, C = null;
24
+ d !== void 0 && (x = "" + d), f.key !== void 0 && (x = "" + f.key), f.ref !== void 0 && (C = f.ref);
25
+ for (h in f)
26
+ l.call(f, h) && !i.hasOwnProperty(h) && (v[h] = f[h]);
27
+ if (c && c.defaultProps)
28
+ for (h in f = c.defaultProps, f)
29
+ v[h] === void 0 && (v[h] = f[h]);
30
+ return { $$typeof: n, type: c, key: x, ref: C, props: v, _owner: a.current };
30
31
  }
31
- return ee.Fragment = i, ee.jsx = f, ee.jsxs = f, ee;
32
+ return oe.Fragment = r, oe.jsx = s, oe.jsxs = s, oe;
32
33
  }
33
- var te = {};
34
+ var le = {};
34
35
  /**
35
36
  * @license React
36
37
  * react-jsx-runtime.development.js
@@ -40,91 +41,91 @@ var te = {};
40
41
  * This source code is licensed under the MIT license found in the
41
42
  * LICENSE file in the root directory of this source tree.
42
43
  */
43
- var Ve;
44
- function yt() {
45
- return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
46
- var n = V, u = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), F = Symbol.iterator, L = "@@iterator";
47
- function O(e) {
48
- if (e === null || typeof e != "object")
44
+ var vt;
45
+ function un() {
46
+ return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
47
+ var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
48
+ function T(t) {
49
+ if (t === null || typeof t != "object")
49
50
  return null;
50
- var r = F && e[F] || e[L];
51
- return typeof r == "function" ? r : null;
51
+ var u = O && t[O] || t[P];
52
+ return typeof u == "function" ? u : null;
52
53
  }
53
- var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function w(e) {
54
+ var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
55
+ function g(t) {
55
56
  {
56
- for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), m = 1; m < r; m++)
57
- a[m - 1] = arguments[m];
58
- B("error", e, a);
57
+ for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
58
+ p[k - 1] = arguments[k];
59
+ j("error", t, p);
59
60
  }
60
61
  }
61
- function B(e, r, a) {
62
+ function j(t, u, p) {
62
63
  {
63
- var m = j.ReactDebugCurrentFrame, v = m.getStackAddendum();
64
- v !== "" && (r += "%s", a = a.concat([v]));
65
- var y = a.map(function(_) {
66
- return String(_);
64
+ var k = R.ReactDebugCurrentFrame, w = k.getStackAddendum();
65
+ w !== "" && (u += "%s", p = p.concat([w]));
66
+ var S = p.map(function(E) {
67
+ return String(E);
67
68
  });
68
- y.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, y);
69
+ S.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, S);
69
70
  }
70
71
  }
71
- var M = !1, G = !1, D = !1, U = !1, $ = !1, I;
72
- I = Symbol.for("react.module.reference");
73
- function Y(e) {
74
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === p || $ || e === l || e === x || e === N || U || e === C || M || G || D || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === g || e.$$typeof === f || e.$$typeof === o || e.$$typeof === d || // This needs to include all possible module reference object
72
+ var $ = !1, M = !1, A = !1, z = !1, V = !1, W;
73
+ W = Symbol.for("react.module.reference");
74
+ function J(t) {
75
+ return !!(typeof t == "string" || typeof t == "function" || t === l || t === i || V || t === a || t === d || t === h || z || t === C || $ || M || A || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === v || t.$$typeof === s || t.$$typeof === c || t.$$typeof === f || // This needs to include all possible module reference object
75
76
  // types supported by any Flight configuration anywhere since
76
77
  // we don't know which Flight build this will end up being used
77
78
  // with.
78
- e.$$typeof === I || e.getModuleId !== void 0));
79
+ t.$$typeof === W || t.getModuleId !== void 0));
79
80
  }
80
- function J(e, r, a) {
81
- var m = e.displayName;
82
- if (m)
83
- return m;
84
- var v = r.displayName || r.name || "";
85
- return v !== "" ? a + "(" + v + ")" : a;
81
+ function K(t, u, p) {
82
+ var k = t.displayName;
83
+ if (k)
84
+ return k;
85
+ var w = u.displayName || u.name || "";
86
+ return w !== "" ? p + "(" + w + ")" : p;
86
87
  }
87
- function k(e) {
88
- return e.displayName || "Context";
88
+ function b(t) {
89
+ return t.displayName || "Context";
89
90
  }
90
- function E(e) {
91
- if (e == null)
91
+ function D(t) {
92
+ if (t == null)
92
93
  return null;
93
- if (typeof e.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
94
- return e.displayName || e.name || null;
95
- if (typeof e == "string")
96
- return e;
97
- switch (e) {
98
- case s:
94
+ if (typeof t.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
95
+ return t.displayName || t.name || null;
96
+ if (typeof t == "string")
97
+ return t;
98
+ switch (t) {
99
+ case l:
99
100
  return "Fragment";
100
- case i:
101
+ case r:
101
102
  return "Portal";
102
- case p:
103
+ case i:
103
104
  return "Profiler";
104
- case l:
105
+ case a:
105
106
  return "StrictMode";
106
- case x:
107
+ case d:
107
108
  return "Suspense";
108
- case N:
109
+ case h:
109
110
  return "SuspenseList";
110
111
  }
111
- if (typeof e == "object")
112
- switch (e.$$typeof) {
113
- case o:
114
- var r = e;
115
- return k(r) + ".Consumer";
112
+ if (typeof t == "object")
113
+ switch (t.$$typeof) {
114
+ case c:
115
+ var u = t;
116
+ return b(u) + ".Consumer";
117
+ case s:
118
+ var p = t;
119
+ return b(p._context) + ".Provider";
116
120
  case f:
117
- var a = e;
118
- return k(a._context) + ".Provider";
119
- case d:
120
- return J(e, e.render, "ForwardRef");
121
- case g:
122
- var m = e.displayName || null;
123
- return m !== null ? m : E(e.type) || "Memo";
124
- case T: {
125
- var v = e, y = v._payload, _ = v._init;
121
+ return K(t, t.render, "ForwardRef");
122
+ case v:
123
+ var k = t.displayName || null;
124
+ return k !== null ? k : D(t.type) || "Memo";
125
+ case x: {
126
+ var w = t, S = w._payload, E = w._init;
126
127
  try {
127
- return E(_(y));
128
+ return D(E(S));
128
129
  } catch {
129
130
  return null;
130
131
  }
@@ -132,545 +133,545 @@ function yt() {
132
133
  }
133
134
  return null;
134
135
  }
135
- var A = Object.assign, K = 0, Ne, ye, we, xe, Ee, Re, Pe;
136
- function Te() {
136
+ var B = Object.assign, Z = 0, Ge, Ke, qe, Xe, Ze, Qe, et;
137
+ function tt() {
137
138
  }
138
- Te.__reactDisabledLog = !0;
139
- function qe() {
139
+ tt.__reactDisabledLog = !0;
140
+ function Ft() {
140
141
  {
141
- if (K === 0) {
142
- Ne = console.log, ye = console.info, we = console.warn, xe = console.error, Ee = console.group, Re = console.groupCollapsed, Pe = console.groupEnd;
143
- var e = {
142
+ if (Z === 0) {
143
+ Ge = console.log, Ke = console.info, qe = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
144
+ var t = {
144
145
  configurable: !0,
145
146
  enumerable: !0,
146
- value: Te,
147
+ value: tt,
147
148
  writable: !0
148
149
  };
149
150
  Object.defineProperties(console, {
150
- info: e,
151
- log: e,
152
- warn: e,
153
- error: e,
154
- group: e,
155
- groupCollapsed: e,
156
- groupEnd: e
151
+ info: t,
152
+ log: t,
153
+ warn: t,
154
+ error: t,
155
+ group: t,
156
+ groupCollapsed: t,
157
+ groupEnd: t
157
158
  });
158
159
  }
159
- K++;
160
+ Z++;
160
161
  }
161
162
  }
162
- function ze() {
163
+ function It() {
163
164
  {
164
- if (K--, K === 0) {
165
- var e = {
165
+ if (Z--, Z === 0) {
166
+ var t = {
166
167
  configurable: !0,
167
168
  enumerable: !0,
168
169
  writable: !0
169
170
  };
170
171
  Object.defineProperties(console, {
171
- log: A({}, e, {
172
- value: Ne
172
+ log: B({}, t, {
173
+ value: Ge
173
174
  }),
174
- info: A({}, e, {
175
- value: ye
175
+ info: B({}, t, {
176
+ value: Ke
176
177
  }),
177
- warn: A({}, e, {
178
- value: we
178
+ warn: B({}, t, {
179
+ value: qe
179
180
  }),
180
- error: A({}, e, {
181
- value: xe
181
+ error: B({}, t, {
182
+ value: Xe
182
183
  }),
183
- group: A({}, e, {
184
- value: Ee
184
+ group: B({}, t, {
185
+ value: Ze
185
186
  }),
186
- groupCollapsed: A({}, e, {
187
- value: Re
187
+ groupCollapsed: B({}, t, {
188
+ value: Qe
188
189
  }),
189
- groupEnd: A({}, e, {
190
- value: Pe
190
+ groupEnd: B({}, t, {
191
+ value: et
191
192
  })
192
193
  });
193
194
  }
194
- K < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
+ Z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
196
  }
196
197
  }
197
- var ce = j.ReactCurrentDispatcher, ue;
198
- function ne(e, r, a) {
198
+ var xe = R.ReactCurrentDispatcher, we;
199
+ function ce(t, u, p) {
199
200
  {
200
- if (ue === void 0)
201
+ if (we === void 0)
201
202
  try {
202
203
  throw Error();
203
- } catch (v) {
204
- var m = v.stack.trim().match(/\n( *(at )?)/);
205
- ue = m && m[1] || "";
204
+ } catch (w) {
205
+ var k = w.stack.trim().match(/\n( *(at )?)/);
206
+ we = k && k[1] || "";
206
207
  }
207
208
  return `
208
- ` + ue + e;
209
+ ` + we + t;
209
210
  }
210
211
  }
211
- var pe = !1, ae;
212
+ var Ce = !1, ue;
212
213
  {
213
- var Ke = typeof WeakMap == "function" ? WeakMap : Map;
214
- ae = new Ke();
214
+ var $t = typeof WeakMap == "function" ? WeakMap : Map;
215
+ ue = new $t();
215
216
  }
216
- function Ce(e, r) {
217
- if (!e || pe)
217
+ function nt(t, u) {
218
+ if (!t || Ce)
218
219
  return "";
219
220
  {
220
- var a = ae.get(e);
221
- if (a !== void 0)
222
- return a;
221
+ var p = ue.get(t);
222
+ if (p !== void 0)
223
+ return p;
223
224
  }
224
- var m;
225
- pe = !0;
226
- var v = Error.prepareStackTrace;
225
+ var k;
226
+ Ce = !0;
227
+ var w = Error.prepareStackTrace;
227
228
  Error.prepareStackTrace = void 0;
228
- var y;
229
- y = ce.current, ce.current = null, qe();
229
+ var S;
230
+ S = xe.current, xe.current = null, Ft();
230
231
  try {
231
- if (r) {
232
- var _ = function() {
232
+ if (u) {
233
+ var E = function() {
233
234
  throw Error();
234
235
  };
235
- if (Object.defineProperty(_.prototype, "props", {
236
+ if (Object.defineProperty(E.prototype, "props", {
236
237
  set: function() {
237
238
  throw Error();
238
239
  }
239
240
  }), typeof Reflect == "object" && Reflect.construct) {
240
241
  try {
241
- Reflect.construct(_, []);
242
+ Reflect.construct(E, []);
242
243
  } catch (q) {
243
- m = q;
244
+ k = q;
244
245
  }
245
- Reflect.construct(e, [], _);
246
+ Reflect.construct(t, [], E);
246
247
  } else {
247
248
  try {
248
- _.call();
249
+ E.call();
249
250
  } catch (q) {
250
- m = q;
251
+ k = q;
251
252
  }
252
- e.call(_.prototype);
253
+ t.call(E.prototype);
253
254
  }
254
255
  } else {
255
256
  try {
256
257
  throw Error();
257
258
  } catch (q) {
258
- m = q;
259
+ k = q;
259
260
  }
260
- e();
261
+ t();
261
262
  }
262
263
  } catch (q) {
263
- if (q && m && typeof q.stack == "string") {
264
- for (var h = q.stack.split(`
265
- `), S = m.stack.split(`
266
- `), R = h.length - 1, P = S.length - 1; R >= 1 && P >= 0 && h[R] !== S[P]; )
267
- P--;
268
- for (; R >= 1 && P >= 0; R--, P--)
269
- if (h[R] !== S[P]) {
270
- if (R !== 1 || P !== 1)
264
+ if (q && k && typeof q.stack == "string") {
265
+ for (var N = q.stack.split(`
266
+ `), U = k.stack.split(`
267
+ `), L = N.length - 1, F = U.length - 1; L >= 1 && F >= 0 && N[L] !== U[F]; )
268
+ F--;
269
+ for (; L >= 1 && F >= 0; L--, F--)
270
+ if (N[L] !== U[F]) {
271
+ if (L !== 1 || F !== 1)
271
272
  do
272
- if (R--, P--, P < 0 || h[R] !== S[P]) {
273
- var W = `
274
- ` + h[R].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;
273
+ if (L--, F--, F < 0 || N[L] !== U[F]) {
274
+ var Y = `
275
+ ` + N[L].replace(" at new ", " at ");
276
+ return t.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", t.displayName)), typeof t == "function" && ue.set(t, Y), Y;
276
277
  }
277
- while (R >= 1 && P >= 0);
278
+ while (L >= 1 && F >= 0);
278
279
  break;
279
280
  }
280
281
  }
281
282
  } finally {
282
- pe = !1, ce.current = y, ze(), Error.prepareStackTrace = v;
283
+ Ce = !1, xe.current = S, It(), Error.prepareStackTrace = w;
283
284
  }
284
- var Z = e ? e.displayName || e.name : "", Ye = Z ? ne(Z) : "";
285
- return typeof e == "function" && ae.set(e, Ye), Ye;
285
+ var ne = t ? t.displayName || t.name : "", ht = ne ? ce(ne) : "";
286
+ return typeof t == "function" && ue.set(t, ht), ht;
286
287
  }
287
- function Xe(e, r, a) {
288
- return Ce(e, !1);
288
+ function At(t, u, p) {
289
+ return nt(t, !1);
289
290
  }
290
- function Ze(e) {
291
- var r = e.prototype;
292
- return !!(r && r.isReactComponent);
291
+ function Ut(t) {
292
+ var u = t.prototype;
293
+ return !!(u && u.isReactComponent);
293
294
  }
294
- function le(e, r, a) {
295
- if (e == null)
295
+ function fe(t, u, p) {
296
+ if (t == null)
296
297
  return "";
297
- if (typeof e == "function")
298
- return Ce(e, Ze(e));
299
- if (typeof e == "string")
300
- return ne(e);
301
- switch (e) {
302
- case x:
303
- return ne("Suspense");
304
- case N:
305
- return ne("SuspenseList");
298
+ if (typeof t == "function")
299
+ return nt(t, Ut(t));
300
+ if (typeof t == "string")
301
+ return ce(t);
302
+ switch (t) {
303
+ case d:
304
+ return ce("Suspense");
305
+ case h:
306
+ return ce("SuspenseList");
306
307
  }
307
- if (typeof e == "object")
308
- switch (e.$$typeof) {
309
- case d:
310
- return Xe(e.render);
311
- case g:
312
- return le(e.type, r, a);
313
- case T: {
314
- var m = e, v = m._payload, y = m._init;
308
+ if (typeof t == "object")
309
+ switch (t.$$typeof) {
310
+ case f:
311
+ return At(t.render);
312
+ case v:
313
+ return fe(t.type, u, p);
314
+ case x: {
315
+ var k = t, w = k._payload, S = k._init;
315
316
  try {
316
- return le(y(v), r, a);
317
+ return fe(S(w), u, p);
317
318
  } catch {
318
319
  }
319
320
  }
320
321
  }
321
322
  return "";
322
323
  }
323
- var oe = Object.prototype.hasOwnProperty, je = {}, Se = j.ReactDebugCurrentFrame;
324
- function se(e) {
325
- if (e) {
326
- var r = e._owner, a = le(e.type, e._source, r ? r.type : null);
327
- Se.setExtraStackFrame(a);
324
+ var pe = Object.prototype.hasOwnProperty, rt = {}, at = R.ReactDebugCurrentFrame;
325
+ function de(t) {
326
+ if (t) {
327
+ var u = t._owner, p = fe(t.type, t._source, u ? u.type : null);
328
+ at.setExtraStackFrame(p);
328
329
  } else
329
- Se.setExtraStackFrame(null);
330
+ at.setExtraStackFrame(null);
330
331
  }
331
- function Qe(e, r, a, m, v) {
332
+ function Vt(t, u, p, k, w) {
332
333
  {
333
- var y = Function.call.bind(oe);
334
- for (var _ in e)
335
- if (y(e, _)) {
336
- var h = void 0;
334
+ var S = Function.call.bind(pe);
335
+ for (var E in t)
336
+ if (S(t, E)) {
337
+ var N = void 0;
337
338
  try {
338
- if (typeof e[_] != "function") {
339
- var S = Error((m || "React class") + ": " + a + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw S.name = "Invariant Violation", S;
339
+ if (typeof t[E] != "function") {
340
+ var U = Error((k || "React class") + ": " + p + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
+ throw U.name = "Invariant Violation", U;
341
342
  }
342
- h = e[_](r, _, m, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (R) {
344
- h = R;
343
+ N = t[E](u, E, k, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
+ } catch (L) {
345
+ N = L;
345
346
  }
346
- h && !(h instanceof Error) && (se(v), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", a, _, typeof h), se(null)), h instanceof Error && !(h.message in je) && (je[h.message] = !0, se(v), w("Failed %s type: %s", a, h.message), se(null));
347
+ N && !(N instanceof Error) && (de(w), g("%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).", k || "React class", p, E, typeof N), de(null)), N instanceof Error && !(N.message in rt) && (rt[N.message] = !0, de(w), g("Failed %s type: %s", p, N.message), de(null));
347
348
  }
348
349
  }
349
350
  }
350
- var et = Array.isArray;
351
- function fe(e) {
352
- return et(e);
351
+ var Wt = Array.isArray;
352
+ function Re(t) {
353
+ return Wt(t);
353
354
  }
354
- function tt(e) {
355
+ function Mt(t) {
355
356
  {
356
- var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
- return a;
357
+ var u = typeof Symbol == "function" && Symbol.toStringTag, p = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
358
+ return p;
358
359
  }
359
360
  }
360
- function rt(e) {
361
+ function Bt(t) {
361
362
  try {
362
- return Oe(e), !1;
363
+ return ot(t), !1;
363
364
  } catch {
364
365
  return !0;
365
366
  }
366
367
  }
367
- function Oe(e) {
368
- return "" + e;
368
+ function ot(t) {
369
+ return "" + t;
369
370
  }
370
- function $e(e) {
371
- if (rt(e))
372
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tt(e)), Oe(e);
371
+ function lt(t) {
372
+ if (Bt(t))
373
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(t)), ot(t);
373
374
  }
374
- var Q = j.ReactCurrentOwner, nt = {
375
+ var ae = R.ReactCurrentOwner, Yt = {
375
376
  key: !0,
376
377
  ref: !0,
377
378
  __self: !0,
378
379
  __source: !0
379
- }, Ie, Fe, de;
380
- de = {};
381
- function at(e) {
382
- if (oe.call(e, "ref")) {
383
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
384
- if (r && r.isReactWarning)
380
+ }, it, st, Pe;
381
+ Pe = {};
382
+ function Jt(t) {
383
+ if (pe.call(t, "ref")) {
384
+ var u = Object.getOwnPropertyDescriptor(t, "ref").get;
385
+ if (u && u.isReactWarning)
385
386
  return !1;
386
387
  }
387
- return e.ref !== void 0;
388
+ return t.ref !== void 0;
388
389
  }
389
- function lt(e) {
390
- if (oe.call(e, "key")) {
391
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
392
- if (r && r.isReactWarning)
390
+ function Ht(t) {
391
+ if (pe.call(t, "key")) {
392
+ var u = Object.getOwnPropertyDescriptor(t, "key").get;
393
+ if (u && u.isReactWarning)
393
394
  return !1;
394
395
  }
395
- return e.key !== void 0;
396
+ return t.key !== void 0;
396
397
  }
397
- function ot(e, r) {
398
- if (typeof e.ref == "string" && Q.current && r && Q.current.stateNode !== r) {
399
- var a = E(Q.current.type);
400
- de[a] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(Q.current.type), e.ref), de[a] = !0);
398
+ function zt(t, u) {
399
+ if (typeof t.ref == "string" && ae.current && u && ae.current.stateNode !== u) {
400
+ var p = D(ae.current.type);
401
+ Pe[p] || (g('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', D(ae.current.type), t.ref), Pe[p] = !0);
401
402
  }
402
403
  }
403
- function st(e, r) {
404
+ function Gt(t, u) {
404
405
  {
405
- var a = function() {
406
- Ie || (Ie = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
406
+ var p = function() {
407
+ it || (it = !0, g("%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)", u));
407
408
  };
408
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
409
- get: a,
409
+ p.isReactWarning = !0, Object.defineProperty(t, "key", {
410
+ get: p,
410
411
  configurable: !0
411
412
  });
412
413
  }
413
414
  }
414
- function it(e, r) {
415
+ function Kt(t, u) {
415
416
  {
416
- var a = function() {
417
- Fe || (Fe = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
417
+ var p = function() {
418
+ st || (st = !0, g("%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)", u));
418
419
  };
419
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
- get: a,
420
+ p.isReactWarning = !0, Object.defineProperty(t, "ref", {
421
+ get: p,
421
422
  configurable: !0
422
423
  });
423
424
  }
424
425
  }
425
- var ct = function(e, r, a, m, v, y, _) {
426
- var h = {
426
+ var qt = function(t, u, p, k, w, S, E) {
427
+ var N = {
427
428
  // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: u,
429
+ $$typeof: n,
429
430
  // Built-in properties that belong on the element
430
- type: e,
431
- key: r,
432
- ref: a,
433
- props: _,
431
+ type: t,
432
+ key: u,
433
+ ref: p,
434
+ props: E,
434
435
  // Record the component responsible for creating this element.
435
- _owner: y
436
+ _owner: S
436
437
  };
437
- return h._store = {}, Object.defineProperty(h._store, "validated", {
438
+ return N._store = {}, Object.defineProperty(N._store, "validated", {
438
439
  configurable: !1,
439
440
  enumerable: !1,
440
441
  writable: !0,
441
442
  value: !1
442
- }), Object.defineProperty(h, "_self", {
443
+ }), Object.defineProperty(N, "_self", {
443
444
  configurable: !1,
444
445
  enumerable: !1,
445
446
  writable: !1,
446
- value: m
447
- }), Object.defineProperty(h, "_source", {
447
+ value: k
448
+ }), Object.defineProperty(N, "_source", {
448
449
  configurable: !1,
449
450
  enumerable: !1,
450
451
  writable: !1,
451
- value: v
452
- }), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
452
+ value: w
453
+ }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
453
454
  };
454
- function ut(e, r, a, m, v) {
455
+ function Xt(t, u, p, k, w) {
455
456
  {
456
- var y, _ = {}, h = null, S = null;
457
- a !== void 0 && ($e(a), h = "" + a), lt(r) && ($e(r.key), h = "" + r.key), at(r) && (S = r.ref, ot(r, v));
458
- for (y in r)
459
- oe.call(r, y) && !nt.hasOwnProperty(y) && (_[y] = r[y]);
460
- if (e && e.defaultProps) {
461
- var R = e.defaultProps;
462
- for (y in R)
463
- _[y] === void 0 && (_[y] = R[y]);
457
+ var S, E = {}, N = null, U = null;
458
+ p !== void 0 && (lt(p), N = "" + p), Ht(u) && (lt(u.key), N = "" + u.key), Jt(u) && (U = u.ref, zt(u, w));
459
+ for (S in u)
460
+ pe.call(u, S) && !Yt.hasOwnProperty(S) && (E[S] = u[S]);
461
+ if (t && t.defaultProps) {
462
+ var L = t.defaultProps;
463
+ for (S in L)
464
+ E[S] === void 0 && (E[S] = L[S]);
464
465
  }
465
- if (h || S) {
466
- var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- h && st(_, P), S && it(_, P);
466
+ if (N || U) {
467
+ var F = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
468
+ N && Gt(E, F), U && Kt(E, F);
468
469
  }
469
- return ct(e, h, S, v, m, Q.current, _);
470
+ return qt(t, N, U, w, k, ae.current, E);
470
471
  }
471
472
  }
472
- var me = j.ReactCurrentOwner, De = j.ReactDebugCurrentFrame;
473
- function X(e) {
474
- if (e) {
475
- var r = e._owner, a = le(e.type, e._source, r ? r.type : null);
476
- De.setExtraStackFrame(a);
473
+ var Se = R.ReactCurrentOwner, ct = R.ReactDebugCurrentFrame;
474
+ function te(t) {
475
+ if (t) {
476
+ var u = t._owner, p = fe(t.type, t._source, u ? u.type : null);
477
+ ct.setExtraStackFrame(p);
477
478
  } else
478
- De.setExtraStackFrame(null);
479
+ ct.setExtraStackFrame(null);
479
480
  }
480
- var ke;
481
- ke = !1;
482
- function he(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === u;
481
+ var Oe;
482
+ Oe = !1;
483
+ function Te(t) {
484
+ return typeof t == "object" && t !== null && t.$$typeof === n;
484
485
  }
485
- function Ae() {
486
+ function ut() {
486
487
  {
487
- if (me.current) {
488
- var e = E(me.current.type);
489
- if (e)
488
+ if (Se.current) {
489
+ var t = D(Se.current.type);
490
+ if (t)
490
491
  return `
491
492
 
492
- Check the render method of \`` + e + "`.";
493
+ Check the render method of \`` + t + "`.";
493
494
  }
494
495
  return "";
495
496
  }
496
497
  }
497
- function pt(e) {
498
+ function Zt(t) {
498
499
  {
499
- if (e !== void 0) {
500
- var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
500
+ if (t !== void 0) {
501
+ var u = t.fileName.replace(/^.*[\\\/]/, ""), p = t.lineNumber;
501
502
  return `
502
503
 
503
- Check your code at ` + r + ":" + a + ".";
504
+ Check your code at ` + u + ":" + p + ".";
504
505
  }
505
506
  return "";
506
507
  }
507
508
  }
508
- var Le = {};
509
- function ft(e) {
509
+ var ft = {};
510
+ function Qt(t) {
510
511
  {
511
- var r = Ae();
512
- if (!r) {
513
- var a = typeof e == "string" ? e : e.displayName || e.name;
514
- a && (r = `
512
+ var u = ut();
513
+ if (!u) {
514
+ var p = typeof t == "string" ? t : t.displayName || t.name;
515
+ p && (u = `
515
516
 
516
- Check the top-level render call using <` + a + ">.");
517
+ Check the top-level render call using <` + p + ">.");
517
518
  }
518
- return r;
519
+ return u;
519
520
  }
520
521
  }
521
- function Me(e, r) {
522
+ function pt(t, u) {
522
523
  {
523
- if (!e._store || e._store.validated || e.key != null)
524
+ if (!t._store || t._store.validated || t.key != null)
524
525
  return;
525
- e._store.validated = !0;
526
- var a = ft(r);
527
- if (Le[a])
526
+ t._store.validated = !0;
527
+ var p = Qt(u);
528
+ if (ft[p])
528
529
  return;
529
- Le[a] = !0;
530
- var m = "";
531
- e && e._owner && e._owner !== me.current && (m = " It was passed a child from " + E(e._owner.type) + "."), X(e), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, m), X(null);
530
+ ft[p] = !0;
531
+ var k = "";
532
+ t && t._owner && t._owner !== Se.current && (k = " It was passed a child from " + D(t._owner.type) + "."), te(t), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, k), te(null);
532
533
  }
533
534
  }
534
- function We(e, r) {
535
+ function dt(t, u) {
535
536
  {
536
- if (typeof e != "object")
537
+ if (typeof t != "object")
537
538
  return;
538
- if (fe(e))
539
- for (var a = 0; a < e.length; a++) {
540
- var m = e[a];
541
- he(m) && Me(m, r);
539
+ if (Re(t))
540
+ for (var p = 0; p < t.length; p++) {
541
+ var k = t[p];
542
+ Te(k) && pt(k, u);
542
543
  }
543
- else if (he(e))
544
- e._store && (e._store.validated = !0);
545
- else if (e) {
546
- var v = O(e);
547
- if (typeof v == "function" && v !== e.entries)
548
- for (var y = v.call(e), _; !(_ = y.next()).done; )
549
- he(_.value) && Me(_.value, r);
544
+ else if (Te(t))
545
+ t._store && (t._store.validated = !0);
546
+ else if (t) {
547
+ var w = T(t);
548
+ if (typeof w == "function" && w !== t.entries)
549
+ for (var S = w.call(t), E; !(E = S.next()).done; )
550
+ Te(E.value) && pt(E.value, u);
550
551
  }
551
552
  }
552
553
  }
553
- function dt(e) {
554
+ function en(t) {
554
555
  {
555
- var r = e.type;
556
- if (r == null || typeof r == "string")
556
+ var u = t.type;
557
+ if (u == null || typeof u == "string")
557
558
  return;
558
- var a;
559
- if (typeof r == "function")
560
- a = r.propTypes;
561
- else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
559
+ var p;
560
+ if (typeof u == "function")
561
+ p = u.propTypes;
562
+ else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
562
563
  // Inner props are checked in the reconciler.
563
- r.$$typeof === g))
564
- a = r.propTypes;
564
+ u.$$typeof === v))
565
+ p = u.propTypes;
565
566
  else
566
567
  return;
567
- if (a) {
568
- var m = E(r);
569
- Qe(a, e.props, "prop", m, e);
570
- } else if (r.PropTypes !== void 0 && !ke) {
571
- ke = !0;
572
- var v = E(r);
573
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
568
+ if (p) {
569
+ var k = D(u);
570
+ Vt(p, t.props, "prop", k, t);
571
+ } else if (u.PropTypes !== void 0 && !Oe) {
572
+ Oe = !0;
573
+ var w = D(u);
574
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
574
575
  }
575
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
577
  }
577
578
  }
578
- function mt(e) {
579
+ function tn(t) {
579
580
  {
580
- for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
581
- var m = r[a];
582
- if (m !== "children" && m !== "key") {
583
- X(e), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), X(null);
581
+ for (var u = Object.keys(t.props), p = 0; p < u.length; p++) {
582
+ var k = u[p];
583
+ if (k !== "children" && k !== "key") {
584
+ te(t), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), te(null);
584
585
  break;
585
586
  }
586
587
  }
587
- e.ref !== null && (X(e), w("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
588
+ t.ref !== null && (te(t), g("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
588
589
  }
589
590
  }
590
- function Be(e, r, a, m, v, y) {
591
+ function mt(t, u, p, k, w, S) {
591
592
  {
592
- var _ = Y(e);
593
- if (!_) {
594
- var h = "";
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 = pt(v);
597
- S ? h += S : h += Ae();
598
- var R;
599
- e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === u ? (R = "<" + (E(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, h);
593
+ var E = J(t);
594
+ if (!E) {
595
+ var N = "";
596
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
597
+ var U = Zt(w);
598
+ U ? N += U : N += ut();
599
+ var L;
600
+ t === null ? L = "null" : Re(t) ? L = "array" : t !== void 0 && t.$$typeof === n ? (L = "<" + (D(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : L = typeof t, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, N);
600
601
  }
601
- var P = ut(e, r, a, v, y);
602
- if (P == null)
603
- return P;
604
- if (_) {
605
- var W = r.children;
606
- if (W !== void 0)
607
- if (m)
608
- if (fe(W)) {
609
- for (var Z = 0; Z < W.length; Z++)
610
- We(W[Z], e);
611
- Object.freeze && Object.freeze(W);
602
+ var F = Xt(t, u, p, w, S);
603
+ if (F == null)
604
+ return F;
605
+ if (E) {
606
+ var Y = u.children;
607
+ if (Y !== void 0)
608
+ if (k)
609
+ if (Re(Y)) {
610
+ for (var ne = 0; ne < Y.length; ne++)
611
+ dt(Y[ne], t);
612
+ Object.freeze && Object.freeze(Y);
612
613
  } else
613
- w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
614
+ g("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
615
  else
615
- We(W, e);
616
+ dt(Y, t);
616
617
  }
617
- return e === s ? mt(P) : dt(P), P;
618
+ return t === l ? tn(F) : en(F), F;
618
619
  }
619
620
  }
620
- function kt(e, r, a) {
621
- return Be(e, r, a, !0);
621
+ function nn(t, u, p) {
622
+ return mt(t, u, p, !0);
622
623
  }
623
- function ht(e, r, a) {
624
- return Be(e, r, a, !1);
624
+ function rn(t, u, p) {
625
+ return mt(t, u, p, !1);
625
626
  }
626
- var _t = ht, vt = kt;
627
- te.Fragment = s, te.jsx = _t, te.jsxs = vt;
628
- }()), te;
627
+ var an = rn, on = nn;
628
+ le.Fragment = l, le.jsx = an, le.jsxs = on;
629
+ }()), le;
629
630
  }
630
- process.env.NODE_ENV === "production" ? ve.exports = Nt() : ve.exports = yt();
631
- var be = ve.exports;
632
- const z = be.Fragment, t = be.jsx, c = be.jsxs, _e = {}, wt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
- function xt(n, u) {
634
- return !_e[n] && typeof window.fetch == "function" && (_e[n] = window.fetch(u + n + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + u + n + ".svg"), wt)).then((i) => i)), Promise.resolve(_e[n]);
631
+ process.env.NODE_ENV === "production" ? Fe.exports = cn() : Fe.exports = un();
632
+ var Me = Fe.exports;
633
+ const X = Me.Fragment, o = Me.jsx, m = Me.jsxs, je = {}, fn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
634
+ function pn(e, n) {
635
+ return !je[e] && typeof window.fetch == "function" && (je[e] = window.fetch(n + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + n + e + ".svg"), fn)).then((r) => r)), Promise.resolve(je[e]);
635
636
  }
636
- const b = ({ name: n, path: u, className: i = "", ...s }) => {
637
- const l = "https://punkt-cdn.oslo.kommune.no/7.1/icons/", [p, f] = re(null);
638
- return He(() => {
639
- if (!n)
637
+ const y = ({ name: e, path: n, className: r = "", ...l }) => {
638
+ const a = "https://punkt-cdn.oslo.kommune.no/7.2/icons/", [i, s] = ie(null);
639
+ return yt(() => {
640
+ if (!e)
640
641
  return;
641
- xt(n, u || l).then((d) => f(d));
642
- }, [n, u, l]), p ? /* @__PURE__ */ t(
642
+ pn(e, n || a).then((f) => s(f));
643
+ }, [e, n, a]), i ? /* @__PURE__ */ o(
643
644
  "span",
644
645
  {
645
- className: `pkt-icon ${i}`,
646
- dangerouslySetInnerHTML: { __html: p },
647
- ...s
646
+ className: `pkt-icon ${r}`,
647
+ dangerouslySetInnerHTML: { __html: i },
648
+ ...l
648
649
  }
649
650
  ) : null;
650
- }, Et = H(
651
+ }, dn = H(
651
652
  ({
652
- children: n,
653
- className: u,
654
- skin: i = "info",
655
- closeAlert: s = !1,
656
- onClose: l,
657
- title: p,
658
- date: f,
659
- ariaLive: o = "polite",
660
- ...d
661
- }, x) => {
662
- const N = [u, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [g, T] = re(!0), C = () => {
663
- T(!1), l && l();
653
+ children: e,
654
+ className: n,
655
+ skin: r = "info",
656
+ closeAlert: l = !1,
657
+ onClose: a,
658
+ title: i,
659
+ date: s,
660
+ ariaLive: c = "polite",
661
+ ...f
662
+ }, d) => {
663
+ const h = [n, "pkt-alert", r && `pkt-alert--${r}`].filter(Boolean).join(" "), [v, x] = ie(!0), C = () => {
664
+ x(!1), a && a();
664
665
  };
665
- return g ? /* @__PURE__ */ c("div", { ...d, className: N, "aria-live": o, ref: x, children: [
666
- /* @__PURE__ */ t(
667
- b,
666
+ return v ? /* @__PURE__ */ m("div", { ...f, className: h, "aria-live": c, ref: d, children: [
667
+ /* @__PURE__ */ o(
668
+ y,
668
669
  {
669
670
  className: "pkt-alert__icon",
670
- name: i === "info" ? "alert-information" : `alert-${i}`
671
+ name: r === "info" ? "alert-information" : `alert-${r}`
671
672
  }
672
673
  ),
673
- s && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
674
+ l && /* @__PURE__ */ o("div", { className: "pkt-alert__close", children: /* @__PURE__ */ o(
674
675
  "button",
675
676
  {
676
677
  type: "button",
@@ -678,401 +679,1079 @@ const b = ({ name: n, path: u, className: i = "", ...s }) => {
678
679
  tabIndex: 0,
679
680
  "aria-label": "close",
680
681
  onClick: C,
681
- children: /* @__PURE__ */ t(b, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
682
+ children: /* @__PURE__ */ o(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
682
683
  }
683
684
  ) }),
684
- p && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: p }),
685
- /* @__PURE__ */ t("div", { className: "pkt-alert__text", children: n }),
686
- f && /* @__PURE__ */ c("div", { className: "pkt-alert__date", children: [
685
+ i && /* @__PURE__ */ o("div", { className: "pkt-alert__title", children: i }),
686
+ /* @__PURE__ */ o("div", { className: "pkt-alert__text", children: e }),
687
+ s && /* @__PURE__ */ m("div", { className: "pkt-alert__date", children: [
687
688
  "Sist oppdatert: ",
688
- f
689
+ s
689
690
  ] })
690
691
  ] }) : null;
691
692
  }
692
- ), $t = H(
693
- ({ href: n, text: u, onClick: i, className: s, ...l }, p) => {
694
- const f = [
695
- s,
693
+ ), nr = H(
694
+ ({ href: e, text: n, onClick: r, className: l, ...a }, i) => {
695
+ const s = [
696
+ l,
696
697
  "pkt-back-link"
697
698
  ].filter(Boolean).join(" ");
698
- return /* @__PURE__ */ t("nav", { ref: p, className: f, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ c("a", { href: n || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
699
- i && i();
700
- }, ...l, children: [
701
- /* @__PURE__ */ t(b, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
702
- /* @__PURE__ */ t("span", { className: "pkt-back-link__text", children: u || "Forsiden" })
699
+ return /* @__PURE__ */ o("nav", { ref: i, className: s, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ m("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
700
+ r && r();
701
+ }, ...a, children: [
702
+ /* @__PURE__ */ o(y, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
703
+ /* @__PURE__ */ o("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
703
704
  ] }) });
704
705
  }
705
- ), ie = H(
706
+ );
707
+ /**
708
+ * @remix-run/router v1.7.1
709
+ *
710
+ * Copyright (c) Remix Software Inc.
711
+ *
712
+ * This source code is licensed under the MIT license found in the
713
+ * LICENSE.md file in the root directory of this source tree.
714
+ *
715
+ * @license MIT
716
+ */
717
+ function Ie() {
718
+ return Ie = Object.assign ? Object.assign.bind() : function(e) {
719
+ for (var n = 1; n < arguments.length; n++) {
720
+ var r = arguments[n];
721
+ for (var l in r)
722
+ Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
723
+ }
724
+ return e;
725
+ }, Ie.apply(this, arguments);
726
+ }
727
+ var _t;
728
+ (function(e) {
729
+ e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
730
+ })(_t || (_t = {}));
731
+ function I(e, n) {
732
+ if (e === !1 || e === null || typeof e > "u")
733
+ throw new Error(n);
734
+ }
735
+ function ge(e, n) {
736
+ if (!e) {
737
+ typeof console < "u" && console.warn(n);
738
+ try {
739
+ throw new Error(n);
740
+ } catch {
741
+ }
742
+ }
743
+ }
744
+ function $e(e) {
745
+ let {
746
+ pathname: n = "/",
747
+ search: r = "",
748
+ hash: l = ""
749
+ } = e;
750
+ return r && r !== "?" && (n += r.charAt(0) === "?" ? r : "?" + r), l && l !== "#" && (n += l.charAt(0) === "#" ? l : "#" + l), n;
751
+ }
752
+ function Et(e) {
753
+ let n = {};
754
+ if (e) {
755
+ let r = e.indexOf("#");
756
+ r >= 0 && (n.hash = e.substr(r), e = e.substr(0, r));
757
+ let l = e.indexOf("?");
758
+ l >= 0 && (n.search = e.substr(l), e = e.substr(0, l)), e && (n.pathname = e);
759
+ }
760
+ return n;
761
+ }
762
+ var bt;
763
+ (function(e) {
764
+ e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
765
+ })(bt || (bt = {}));
766
+ function Ae(e, n) {
767
+ if (n === "/")
768
+ return e;
769
+ if (!e.toLowerCase().startsWith(n.toLowerCase()))
770
+ return null;
771
+ let r = n.endsWith("/") ? n.length - 1 : n.length, l = e.charAt(r);
772
+ return l && l !== "/" ? null : e.slice(r) || "/";
773
+ }
774
+ function mn(e, n) {
775
+ n === void 0 && (n = "/");
776
+ let {
777
+ pathname: r,
778
+ search: l = "",
779
+ hash: a = ""
780
+ } = typeof e == "string" ? Et(e) : e;
781
+ return {
782
+ pathname: r ? r.startsWith("/") ? r : hn(r, n) : n,
783
+ search: kn(l),
784
+ hash: vn(a)
785
+ };
786
+ }
787
+ function hn(e, n) {
788
+ let r = n.replace(/\/+$/, "").split("/");
789
+ return e.split("/").forEach((a) => {
790
+ a === ".." ? r.length > 1 && r.pop() : a !== "." && r.push(a);
791
+ }), r.length > 1 ? r.join("/") : "/";
792
+ }
793
+ function De(e, n, r, l) {
794
+ return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(l) + "]. Please separate it out to the ") + ("`to." + r + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
795
+ }
796
+ function xt(e) {
797
+ return e.filter((n, r) => r === 0 || n.route.path && n.route.path.length > 0);
798
+ }
799
+ function wt(e, n, r, l) {
800
+ l === void 0 && (l = !1);
801
+ let a;
802
+ typeof e == "string" ? a = Et(e) : (a = Ie({}, e), I(!a.pathname || !a.pathname.includes("?"), De("?", "pathname", "search", a)), I(!a.pathname || !a.pathname.includes("#"), De("#", "pathname", "hash", a)), I(!a.search || !a.search.includes("#"), De("#", "search", "hash", a)));
803
+ let i = e === "" || a.pathname === "", s = i ? "/" : a.pathname, c;
804
+ if (l || s == null)
805
+ c = r;
806
+ else {
807
+ let v = n.length - 1;
808
+ if (s.startsWith("..")) {
809
+ let x = s.split("/");
810
+ for (; x[0] === ".."; )
811
+ x.shift(), v -= 1;
812
+ a.pathname = x.join("/");
813
+ }
814
+ c = v >= 0 ? n[v] : "/";
815
+ }
816
+ let f = mn(a, c), d = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && r.endsWith("/");
817
+ return !f.pathname.endsWith("/") && (d || h) && (f.pathname += "/"), f;
818
+ }
819
+ const Be = (e) => e.join("/").replace(/\/\/+/g, "/"), kn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, vn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ct = ["post", "put", "patch", "delete"];
820
+ new Set(Ct);
821
+ const _n = ["get", ...Ct];
822
+ new Set(_n);
823
+ /**
824
+ * React Router v6.14.1
825
+ *
826
+ * Copyright (c) Remix Software Inc.
827
+ *
828
+ * This source code is licensed under the MIT license found in the
829
+ * LICENSE.md file in the root directory of this source tree.
830
+ *
831
+ * @license MIT
832
+ */
833
+ function Ue() {
834
+ return Ue = Object.assign ? Object.assign.bind() : function(e) {
835
+ for (var n = 1; n < arguments.length; n++) {
836
+ var r = arguments[n];
837
+ for (var l in r)
838
+ Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
839
+ }
840
+ return e;
841
+ }, Ue.apply(this, arguments);
842
+ }
843
+ const Ne = /* @__PURE__ */ _.createContext(null);
844
+ process.env.NODE_ENV !== "production" && (Ne.displayName = "DataRouter");
845
+ const Rt = /* @__PURE__ */ _.createContext(null);
846
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
847
+ const bn = /* @__PURE__ */ _.createContext(null);
848
+ process.env.NODE_ENV !== "production" && (bn.displayName = "Await");
849
+ const Q = /* @__PURE__ */ _.createContext(null);
850
+ process.env.NODE_ENV !== "production" && (Q.displayName = "Navigation");
851
+ const Ye = /* @__PURE__ */ _.createContext(null);
852
+ process.env.NODE_ENV !== "production" && (Ye.displayName = "Location");
853
+ const re = /* @__PURE__ */ _.createContext({
854
+ outlet: null,
855
+ matches: [],
856
+ isDataRoute: !1
857
+ });
858
+ process.env.NODE_ENV !== "production" && (re.displayName = "Route");
859
+ const gn = /* @__PURE__ */ _.createContext(null);
860
+ process.env.NODE_ENV !== "production" && (gn.displayName = "RouteError");
861
+ function Nn(e, n) {
862
+ let {
863
+ relative: r
864
+ } = n === void 0 ? {} : n;
865
+ Je() || (process.env.NODE_ENV !== "production" ? I(
866
+ !1,
867
+ // TODO: This error is probably because they somehow have 2 versions of the
868
+ // router loaded. We can help them understand how to avoid that.
869
+ "useHref() may be used only in the context of a <Router> component."
870
+ ) : I(!1));
871
+ let {
872
+ basename: l,
873
+ navigator: a
874
+ } = _.useContext(Q), {
875
+ hash: i,
876
+ pathname: s,
877
+ search: c
878
+ } = ye(e, {
879
+ relative: r
880
+ }), f = s;
881
+ return l !== "/" && (f = s === "/" ? l : Be([l, s])), a.createHref({
882
+ pathname: f,
883
+ search: c,
884
+ hash: i
885
+ });
886
+ }
887
+ function Je() {
888
+ return _.useContext(Ye) != null;
889
+ }
890
+ function se() {
891
+ return Je() || (process.env.NODE_ENV !== "production" ? I(
892
+ !1,
893
+ // TODO: This error is probably because they somehow have 2 versions of the
894
+ // router loaded. We can help them understand how to avoid that.
895
+ "useLocation() may be used only in the context of a <Router> component."
896
+ ) : I(!1)), _.useContext(Ye).location;
897
+ }
898
+ const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
899
+ function St(e) {
900
+ _.useContext(Q).static || _.useLayoutEffect(e);
901
+ }
902
+ function yn() {
903
+ let {
904
+ isDataRoute: e
905
+ } = _.useContext(re);
906
+ return e ? Rn() : En();
907
+ }
908
+ function En() {
909
+ Je() || (process.env.NODE_ENV !== "production" ? I(
910
+ !1,
911
+ // TODO: This error is probably because they somehow have 2 versions of the
912
+ // router loaded. We can help them understand how to avoid that.
913
+ "useNavigate() may be used only in the context of a <Router> component."
914
+ ) : I(!1));
915
+ let e = _.useContext(Ne), {
916
+ basename: n,
917
+ navigator: r
918
+ } = _.useContext(Q), {
919
+ matches: l
920
+ } = _.useContext(re), {
921
+ pathname: a
922
+ } = se(), i = JSON.stringify(xt(l).map((f) => f.pathnameBase)), s = _.useRef(!1);
923
+ return St(() => {
924
+ s.current = !0;
925
+ }), _.useCallback(function(f, d) {
926
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ge(s.current, Pt), !s.current)
927
+ return;
928
+ if (typeof f == "number") {
929
+ r.go(f);
930
+ return;
931
+ }
932
+ let h = wt(f, JSON.parse(i), a, d.relative === "path");
933
+ e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : Be([n, h.pathname])), (d.replace ? r.replace : r.push)(h, d.state, d);
934
+ }, [n, r, i, a, e]);
935
+ }
936
+ function ye(e, n) {
937
+ let {
938
+ relative: r
939
+ } = n === void 0 ? {} : n, {
940
+ matches: l
941
+ } = _.useContext(re), {
942
+ pathname: a
943
+ } = se(), i = JSON.stringify(xt(l).map((s) => s.pathnameBase));
944
+ return _.useMemo(() => wt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
945
+ }
946
+ var Ve;
947
+ (function(e) {
948
+ e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate";
949
+ })(Ve || (Ve = {}));
950
+ var ve;
951
+ (function(e) {
952
+ e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId";
953
+ })(ve || (ve = {}));
954
+ function Ot(e) {
955
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
956
+ }
957
+ function xn(e) {
958
+ let n = _.useContext(Ne);
959
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
960
+ }
961
+ function wn(e) {
962
+ let n = _.useContext(re);
963
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
964
+ }
965
+ function Tt(e) {
966
+ let n = wn(e), r = n.matches[n.matches.length - 1];
967
+ return r.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), r.route.id;
968
+ }
969
+ function Cn() {
970
+ return Tt(ve.UseRouteId);
971
+ }
972
+ function Rn() {
973
+ let {
974
+ router: e
975
+ } = xn(Ve.UseNavigateStable), n = Tt(ve.UseNavigateStable), r = _.useRef(!1);
976
+ return St(() => {
977
+ r.current = !0;
978
+ }), _.useCallback(function(a, i) {
979
+ i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && ge(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Ue({
980
+ fromRouteId: n
981
+ }, i)));
982
+ }, [e, n]);
983
+ }
984
+ var gt;
985
+ (function(e) {
986
+ e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error";
987
+ })(gt || (gt = {}));
988
+ new Promise(() => {
989
+ });
990
+ /**
991
+ * React Router DOM v6.14.1
992
+ *
993
+ * Copyright (c) Remix Software Inc.
994
+ *
995
+ * This source code is licensed under the MIT license found in the
996
+ * LICENSE.md file in the root directory of this source tree.
997
+ *
998
+ * @license MIT
999
+ */
1000
+ function ee() {
1001
+ return ee = Object.assign ? Object.assign.bind() : function(e) {
1002
+ for (var n = 1; n < arguments.length; n++) {
1003
+ var r = arguments[n];
1004
+ for (var l in r)
1005
+ Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
1006
+ }
1007
+ return e;
1008
+ }, ee.apply(this, arguments);
1009
+ }
1010
+ function He(e, n) {
1011
+ if (e == null)
1012
+ return {};
1013
+ var r = {}, l = Object.keys(e), a, i;
1014
+ for (i = 0; i < l.length; i++)
1015
+ a = l[i], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
1016
+ return r;
1017
+ }
1018
+ const he = "get", ke = "application/x-www-form-urlencoded";
1019
+ function Ee(e) {
1020
+ return e != null && typeof e.tagName == "string";
1021
+ }
1022
+ function Pn(e) {
1023
+ return Ee(e) && e.tagName.toLowerCase() === "button";
1024
+ }
1025
+ function Sn(e) {
1026
+ return Ee(e) && e.tagName.toLowerCase() === "form";
1027
+ }
1028
+ function On(e) {
1029
+ return Ee(e) && e.tagName.toLowerCase() === "input";
1030
+ }
1031
+ function Tn(e) {
1032
+ return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1033
+ }
1034
+ function jn(e, n) {
1035
+ return e.button === 0 && // Ignore everything but left clicks
1036
+ (!n || n === "_self") && // Let browser handle "target=_blank" etc.
1037
+ !Tn(e);
1038
+ }
1039
+ let me = null;
1040
+ function Dn() {
1041
+ if (me === null)
1042
+ try {
1043
+ new FormData(
1044
+ document.createElement("form"),
1045
+ // @ts-expect-error if FormData supports the submitter parameter, this will throw
1046
+ 0
1047
+ ), me = !1;
1048
+ } catch {
1049
+ me = !0;
1050
+ }
1051
+ return me;
1052
+ }
1053
+ const Ln = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1054
+ function Le(e) {
1055
+ return e != null && !Ln.has(e) ? (process.env.NODE_ENV !== "production" && ge(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + ke + '"')), null) : e;
1056
+ }
1057
+ function Fn(e, n) {
1058
+ let r, l, a, i, s;
1059
+ if (Sn(e)) {
1060
+ let c = e.getAttribute("action");
1061
+ l = c ? Ae(c, n) : null, r = e.getAttribute("method") || he, a = Le(e.getAttribute("enctype")) || ke, i = new FormData(e);
1062
+ } else if (Pn(e) || On(e) && (e.type === "submit" || e.type === "image")) {
1063
+ let c = e.form;
1064
+ if (c == null)
1065
+ throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1066
+ let f = e.getAttribute("formaction") || c.getAttribute("action");
1067
+ if (l = f ? Ae(f, n) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || he, a = Le(e.getAttribute("formenctype")) || Le(c.getAttribute("enctype")) || ke, i = new FormData(c, e), !Dn()) {
1068
+ let {
1069
+ name: d,
1070
+ type: h,
1071
+ value: v
1072
+ } = e;
1073
+ if (h === "image") {
1074
+ let x = d ? d + "." : "";
1075
+ i.append(x + "x", "0"), i.append(x + "y", "0");
1076
+ } else
1077
+ d && i.append(d, v);
1078
+ }
1079
+ } else {
1080
+ if (Ee(e))
1081
+ throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1082
+ r = he, l = null, a = ke, s = e;
1083
+ }
1084
+ return i && a === "text/plain" && (s = i, i = void 0), {
1085
+ action: l,
1086
+ method: r.toLowerCase(),
1087
+ encType: a,
1088
+ formData: i,
1089
+ body: s
1090
+ };
1091
+ }
1092
+ const In = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], $n = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], An = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
1093
+ process.env.NODE_ENV;
1094
+ const Un = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, _e = /* @__PURE__ */ _.forwardRef(function(n, r) {
1095
+ let {
1096
+ onClick: l,
1097
+ relative: a,
1098
+ reloadDocument: i,
1099
+ replace: s,
1100
+ state: c,
1101
+ target: f,
1102
+ to: d,
1103
+ preventScrollReset: h
1104
+ } = n, v = He(n, In), {
1105
+ basename: x
1106
+ } = _.useContext(Q), C, O = !1;
1107
+ if (typeof d == "string" && Vn.test(d) && (C = d, Un))
1108
+ try {
1109
+ let g = new URL(window.location.href), j = d.startsWith("//") ? new URL(g.protocol + d) : new URL(d), $ = Ae(j.pathname, x);
1110
+ j.origin === g.origin && $ != null ? d = $ + j.search + j.hash : O = !0;
1111
+ } catch {
1112
+ process.env.NODE_ENV !== "production" && ge(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1113
+ }
1114
+ let P = Nn(d, {
1115
+ relative: a
1116
+ }), T = Jn(d, {
1117
+ replace: s,
1118
+ state: c,
1119
+ target: f,
1120
+ preventScrollReset: h,
1121
+ relative: a
1122
+ });
1123
+ function R(g) {
1124
+ l && l(g), g.defaultPrevented || T(g);
1125
+ }
1126
+ return (
1127
+ // eslint-disable-next-line jsx-a11y/anchor-has-content
1128
+ /* @__PURE__ */ _.createElement("a", ee({}, v, {
1129
+ href: C || P,
1130
+ onClick: O || i ? l : R,
1131
+ ref: r,
1132
+ target: f
1133
+ }))
1134
+ );
1135
+ });
1136
+ process.env.NODE_ENV !== "production" && (_e.displayName = "Link");
1137
+ const Wn = /* @__PURE__ */ _.forwardRef(function(n, r) {
1138
+ let {
1139
+ "aria-current": l = "page",
1140
+ caseSensitive: a = !1,
1141
+ className: i = "",
1142
+ end: s = !1,
1143
+ style: c,
1144
+ to: f,
1145
+ children: d
1146
+ } = n, h = He(n, $n), v = ye(f, {
1147
+ relative: h.relative
1148
+ }), x = se(), C = _.useContext(Rt), {
1149
+ navigator: O
1150
+ } = _.useContext(Q), P = O.encodeLocation ? O.encodeLocation(v).pathname : v.pathname, T = x.pathname, R = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
1151
+ a || (T = T.toLowerCase(), R = R ? R.toLowerCase() : null, P = P.toLowerCase());
1152
+ let g = T === P || !s && T.startsWith(P) && T.charAt(P.length) === "/", j = R != null && (R === P || !s && R.startsWith(P) && R.charAt(P.length) === "/"), $ = g ? l : void 0, M;
1153
+ typeof i == "function" ? M = i({
1154
+ isActive: g,
1155
+ isPending: j
1156
+ }) : M = [i, g ? "active" : null, j ? "pending" : null].filter(Boolean).join(" ");
1157
+ let A = typeof c == "function" ? c({
1158
+ isActive: g,
1159
+ isPending: j
1160
+ }) : c;
1161
+ return /* @__PURE__ */ _.createElement(_e, ee({}, h, {
1162
+ "aria-current": $,
1163
+ className: M,
1164
+ ref: r,
1165
+ style: A,
1166
+ to: f
1167
+ }), typeof d == "function" ? d({
1168
+ isActive: g,
1169
+ isPending: j
1170
+ }) : d);
1171
+ });
1172
+ process.env.NODE_ENV !== "production" && (Wn.displayName = "NavLink");
1173
+ const Mn = /* @__PURE__ */ _.forwardRef((e, n) => {
1174
+ let r = zn();
1175
+ return /* @__PURE__ */ _.createElement(jt, ee({}, e, {
1176
+ submit: r,
1177
+ ref: n
1178
+ }));
1179
+ });
1180
+ process.env.NODE_ENV !== "production" && (Mn.displayName = "Form");
1181
+ const jt = /* @__PURE__ */ _.forwardRef((e, n) => {
1182
+ let {
1183
+ reloadDocument: r,
1184
+ replace: l,
1185
+ method: a = he,
1186
+ action: i,
1187
+ onSubmit: s,
1188
+ submit: c,
1189
+ relative: f,
1190
+ preventScrollReset: d
1191
+ } = e, h = He(e, An), v = a.toLowerCase() === "get" ? "get" : "post", x = Gn(i, {
1192
+ relative: f
1193
+ }), C = (O) => {
1194
+ if (s && s(O), O.defaultPrevented)
1195
+ return;
1196
+ O.preventDefault();
1197
+ let P = O.nativeEvent.submitter, T = (P == null ? void 0 : P.getAttribute("formmethod")) || a;
1198
+ c(P || O.currentTarget, {
1199
+ method: T,
1200
+ replace: l,
1201
+ relative: f,
1202
+ preventScrollReset: d
1203
+ });
1204
+ };
1205
+ return /* @__PURE__ */ _.createElement("form", ee({
1206
+ ref: n,
1207
+ method: v,
1208
+ action: x,
1209
+ onSubmit: r ? s : C
1210
+ }, h));
1211
+ });
1212
+ process.env.NODE_ENV !== "production" && (jt.displayName = "FormImpl");
1213
+ process.env.NODE_ENV;
1214
+ var We;
1215
+ (function(e) {
1216
+ e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher";
1217
+ })(We || (We = {}));
1218
+ var Nt;
1219
+ (function(e) {
1220
+ e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1221
+ })(Nt || (Nt = {}));
1222
+ function Bn(e) {
1223
+ return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1224
+ }
1225
+ function Yn(e) {
1226
+ let n = _.useContext(Ne);
1227
+ return n || (process.env.NODE_ENV !== "production" ? I(!1, Bn(e)) : I(!1)), n;
1228
+ }
1229
+ function Jn(e, n) {
1230
+ let {
1231
+ target: r,
1232
+ replace: l,
1233
+ state: a,
1234
+ preventScrollReset: i,
1235
+ relative: s
1236
+ } = n === void 0 ? {} : n, c = yn(), f = se(), d = ye(e, {
1237
+ relative: s
1238
+ });
1239
+ return _.useCallback((h) => {
1240
+ if (jn(h, r)) {
1241
+ h.preventDefault();
1242
+ let v = l !== void 0 ? l : $e(f) === $e(d);
1243
+ c(e, {
1244
+ replace: v,
1245
+ state: a,
1246
+ preventScrollReset: i,
1247
+ relative: s
1248
+ });
1249
+ }
1250
+ }, [f, c, d, l, a, r, e, i, s]);
1251
+ }
1252
+ function Hn() {
1253
+ if (typeof document > "u")
1254
+ throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1255
+ }
1256
+ function zn() {
1257
+ let {
1258
+ router: e
1259
+ } = Yn(We.UseSubmit), {
1260
+ basename: n
1261
+ } = _.useContext(Q), r = Cn();
1262
+ return _.useCallback(function(l, a) {
1263
+ a === void 0 && (a = {}), Hn();
1264
+ let {
1265
+ action: i,
1266
+ method: s,
1267
+ encType: c,
1268
+ formData: f,
1269
+ body: d
1270
+ } = Fn(l, n);
1271
+ e.navigate(a.action || i, {
1272
+ preventScrollReset: a.preventScrollReset,
1273
+ formData: f,
1274
+ body: d,
1275
+ formMethod: a.method || s,
1276
+ formEncType: a.encType || c,
1277
+ replace: a.replace,
1278
+ fromRouteId: r
1279
+ });
1280
+ }, [e, n, r]);
1281
+ }
1282
+ function Gn(e, n) {
1283
+ let {
1284
+ relative: r
1285
+ } = n === void 0 ? {} : n, {
1286
+ basename: l
1287
+ } = _.useContext(Q), a = _.useContext(re);
1288
+ a || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
1289
+ let [i] = a.matches.slice(-1), s = ee({}, ye(e || ".", {
1290
+ relative: r
1291
+ })), c = se();
1292
+ if (e == null && (s.search = c.search, s.hash = c.hash, i.route.index)) {
1293
+ let f = new URLSearchParams(s.search);
1294
+ f.delete("index"), s.search = f.toString() ? "?" + f.toString() : "";
1295
+ }
1296
+ return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (s.pathname = s.pathname === "/" ? l : Be([l, s.pathname])), $e(s);
1297
+ }
1298
+ const rr = H(
1299
+ ({ breadcrumbs: e, navigationType: n, className: r, ...l }, a) => {
1300
+ const i = e.slice(0, 4), s = i[i.length - 2], c = [
1301
+ r,
1302
+ "pkt-breadcrumbs"
1303
+ ].filter(Boolean).join(" ");
1304
+ return /* @__PURE__ */ m("nav", { ref: a, "aria-label": "brødsmulemeny", className: c, children: [
1305
+ /* @__PURE__ */ o("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: i.map((f, d) => /* @__PURE__ */ o(
1306
+ "li",
1307
+ {
1308
+ className: "pkt-breadcrumbs__item",
1309
+ children: d === i.length - 1 ? /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text }) }) : n === "router" ? /* @__PURE__ */ m(
1310
+ _e,
1311
+ {
1312
+ to: f.href,
1313
+ className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1314
+ ...l,
1315
+ children: [
1316
+ /* @__PURE__ */ o(
1317
+ y,
1318
+ {
1319
+ className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1320
+ name: "chevron-thin-right"
1321
+ }
1322
+ ),
1323
+ /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text })
1324
+ ]
1325
+ }
1326
+ ) : /* @__PURE__ */ m(
1327
+ "a",
1328
+ {
1329
+ href: f.href,
1330
+ className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1331
+ ...l,
1332
+ children: [
1333
+ /* @__PURE__ */ o(
1334
+ y,
1335
+ {
1336
+ className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1337
+ name: "chevron-thin-right"
1338
+ }
1339
+ ),
1340
+ /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text })
1341
+ ]
1342
+ }
1343
+ )
1344
+ },
1345
+ `breadcrumb-${d}`
1346
+ )) }),
1347
+ n === "router" ? /* @__PURE__ */ m(
1348
+ _e,
1349
+ {
1350
+ to: s.href,
1351
+ className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1352
+ ...l,
1353
+ children: [
1354
+ /* @__PURE__ */ o(
1355
+ y,
1356
+ {
1357
+ className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1358
+ name: "chevron-thin-left"
1359
+ }
1360
+ ),
1361
+ /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: s.text })
1362
+ ]
1363
+ }
1364
+ ) : /* @__PURE__ */ m(
1365
+ "a",
1366
+ {
1367
+ href: s.href,
1368
+ className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1369
+ ...l,
1370
+ children: [
1371
+ /* @__PURE__ */ o(
1372
+ y,
1373
+ {
1374
+ className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1375
+ name: "chevron-thin-left"
1376
+ }
1377
+ ),
1378
+ /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: s.text })
1379
+ ]
1380
+ }
1381
+ )
1382
+ ] });
1383
+ }
1384
+ ), be = H(
706
1385
  ({
707
- children: n,
708
- className: u,
709
- iconName: i = "user",
710
- secondIconName: s = "user",
711
- size: l = "medium",
712
- skin: p = "primary",
713
- type: f = "button",
714
- variant: o = "label-only",
715
- color: d,
716
- ...x
717
- }, N) => {
718
- const g = [
719
- u,
1386
+ children: e,
1387
+ className: n,
1388
+ iconName: r = "user",
1389
+ secondIconName: l = "user",
1390
+ size: a = "medium",
1391
+ skin: i = "primary",
1392
+ type: s = "button",
1393
+ variant: c = "label-only",
1394
+ color: f,
1395
+ ...d
1396
+ }, h) => {
1397
+ const v = [
1398
+ n,
720
1399
  "pkt-btn",
721
- l && `pkt-btn--${l}`,
722
- p && `pkt-btn--${p}`,
723
- o && `pkt-btn--${o}`,
724
- d && `pkt-btn--${d}`
1400
+ a && `pkt-btn--${a}`,
1401
+ i && `pkt-btn--${i}`,
1402
+ c && `pkt-btn--${c}`,
1403
+ f && `pkt-btn--${f}`
725
1404
  ].filter(Boolean).join(" ");
726
- return /* @__PURE__ */ c("button", { ...x, className: g, type: f, ref: N, children: [
727
- o !== "label-only" && /* @__PURE__ */ t(b, { className: "pkt-btn__icon", name: i }),
728
- /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: n }),
729
- o === "icons-right-and-left" && /* @__PURE__ */ t(b, { className: "pkt-btn__icon", name: s })
1405
+ return /* @__PURE__ */ m("button", { ...d, className: v, type: s, ref: h, children: [
1406
+ c !== "label-only" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: r }),
1407
+ /* @__PURE__ */ o("span", { className: "pkt-btn__text", children: e }),
1408
+ c === "icons-right-and-left" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: l })
730
1409
  ] });
731
1410
  }
732
1411
  );
733
- ie.displayName = "PktButton";
734
- const It = ({ columnOne: n, columnTwo: u, socialLinks: i, className: s }) => {
735
- var p, f;
736
- const l = [s, "pkt-footer"].filter(Boolean).join(" ");
737
- return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ c("div", { className: "pkt-footer__container", children: [
738
- /* @__PURE__ */ c("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
739
- /* @__PURE__ */ c("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
740
- /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: n.title }),
741
- /* @__PURE__ */ c("ul", { className: "pkt-footer__list", children: [
742
- n.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: n.text }),
743
- (p = n.links) == null ? void 0 : p.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ c(
1412
+ be.displayName = "PktButton";
1413
+ const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: l }) => {
1414
+ var i, s;
1415
+ const a = [l, "pkt-footer"].filter(Boolean).join(" ");
1416
+ return /* @__PURE__ */ o("footer", { className: a, "data-mode": "dark", children: /* @__PURE__ */ m("div", { className: "pkt-footer__container", children: [
1417
+ /* @__PURE__ */ m("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
1418
+ /* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1419
+ /* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: e.title }),
1420
+ /* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
1421
+ e.text && /* @__PURE__ */ o("li", { className: "pkt-footer__text", children: e.text }),
1422
+ (i = e.links) == null ? void 0 : i.map((c, f) => /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
744
1423
  "a",
745
1424
  {
746
- className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
747
- href: o.href,
748
- target: o.openInNewTab ? "_blank" : "_self",
749
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
1425
+ className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
1426
+ href: c.href,
1427
+ target: c.openInNewTab ? "_blank" : "_self",
1428
+ rel: c.openInNewTab ? "noopener noreferrer" : void 0,
750
1429
  children: [
751
- /* @__PURE__ */ t(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
752
- o.text
1430
+ /* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1431
+ c.text
753
1432
  ]
754
1433
  }
755
- ) }, `links-${d}`))
1434
+ ) }, `links-${f}`))
756
1435
  ] })
757
1436
  ] }),
758
- /* @__PURE__ */ c("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
759
- /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: u.title }),
760
- /* @__PURE__ */ c("ul", { className: "pkt-footer__list", children: [
761
- u.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: u.text }),
762
- (f = u.links) == null ? void 0 : f.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ c(
1437
+ /* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1438
+ /* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: n.title }),
1439
+ /* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
1440
+ n.text && /* @__PURE__ */ o("li", { className: "pkt-footer__text", children: n.text }),
1441
+ (s = n.links) == null ? void 0 : s.map((c, f) => /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
763
1442
  "a",
764
1443
  {
765
- className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
766
- href: o.href,
767
- target: o.openInNewTab ? "_blank" : "_self",
768
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
1444
+ className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
1445
+ href: c.href,
1446
+ target: c.openInNewTab ? "_blank" : "_self",
1447
+ rel: c.openInNewTab ? "noopener noreferrer" : void 0,
769
1448
  children: [
770
- /* @__PURE__ */ t(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
771
- o.text
1449
+ /* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1450
+ c.text
772
1451
  ]
773
1452
  }
774
- ) }, `links-${d}`))
1453
+ ) }, `links-${f}`))
775
1454
  ] })
776
1455
  ] }),
777
- /* @__PURE__ */ c("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
778
- /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
779
- /* @__PURE__ */ c("ul", { className: "pkt-footer__list", children: [
780
- /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ c(
1456
+ /* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1457
+ /* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
1458
+ /* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
1459
+ /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
781
1460
  "a",
782
1461
  {
783
1462
  className: "pkt-footer__link",
784
1463
  href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
785
1464
  children: [
786
- /* @__PURE__ */ t(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1465
+ /* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
787
1466
  "Personvern og informasjonskapsler"
788
1467
  ]
789
1468
  }
790
1469
  ) }),
791
- /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ c("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
792
- /* @__PURE__ */ t(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1470
+ /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
1471
+ /* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
793
1472
  "Tilgjengelighet"
794
1473
  ] }) })
795
1474
  ] })
796
1475
  ] })
797
1476
  ] }),
798
- i && /* @__PURE__ */ c("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
799
- /* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: i.filter((o) => o.language).map((o, d) => /* @__PURE__ */ t(
1477
+ r && /* @__PURE__ */ m("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
1478
+ /* @__PURE__ */ o("div", { className: "pkt-footer__social-languages", children: r.filter((c) => c.language).map((c, f) => /* @__PURE__ */ o(
800
1479
  "div",
801
1480
  {
802
1481
  className: "pkt-footer__social-language",
803
- children: /* @__PURE__ */ t(
1482
+ children: /* @__PURE__ */ o(
804
1483
  "a",
805
1484
  {
806
- href: o.href,
807
- "aria-label": `til ${o.language} versjon av nettsiden`,
808
- target: o.openInNewTab ? "_blank" : "_self",
809
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
810
- children: o.language
1485
+ href: c.href,
1486
+ "aria-label": `til ${c.language} versjon av nettsiden`,
1487
+ target: c.openInNewTab ? "_blank" : "_self",
1488
+ rel: c.openInNewTab ? "noopener noreferrer" : void 0,
1489
+ children: c.language
811
1490
  }
812
1491
  )
813
1492
  },
814
- `sociallinks-language-${d}`
1493
+ `sociallinks-language-${f}`
815
1494
  )) }),
816
- /* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: i.filter((o) => o.iconName).map((o, d) => /* @__PURE__ */ t(V.Fragment, { children: /* @__PURE__ */ t(
1495
+ /* @__PURE__ */ o("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, f) => /* @__PURE__ */ o(G.Fragment, { children: /* @__PURE__ */ o(
817
1496
  "a",
818
1497
  {
819
- href: o.href,
820
- "aria-label": `til ${o.iconName}`,
1498
+ href: c.href,
1499
+ "aria-label": `til ${c.iconName}`,
821
1500
  className: "pkt-footer__social-icon-link",
822
- target: o.openInNewTab ? "_blank" : "_self",
823
- rel: o.openInNewTab ? "noopener noreferrer" : void 0,
824
- children: /* @__PURE__ */ t(b, { className: "pkt-footer__social-icon", name: o.iconName })
1501
+ target: c.openInNewTab ? "_blank" : "_self",
1502
+ rel: c.openInNewTab ? "noopener noreferrer" : void 0,
1503
+ children: /* @__PURE__ */ o(y, { className: "pkt-footer__social-icon", name: c.iconName })
825
1504
  }
826
- ) }, `sociallinks-${d}`)) })
1505
+ ) }, `sociallinks-${f}`)) })
827
1506
  ] })
828
1507
  ] }) });
829
- }, Ft = ({
830
- links: n = [],
831
- className: u
1508
+ }, or = ({
1509
+ links: e = [],
1510
+ className: n
832
1511
  }) => {
833
- const i = [u, "pkt-footer-simple"].filter(Boolean).join(" ");
834
- return /* @__PURE__ */ t("footer", { className: i, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ c("ul", { className: "pkt-footer-simple__list", children: [
835
- n.map((s, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ c(
1512
+ const r = [n, "pkt-footer-simple"].filter(Boolean).join(" ");
1513
+ return /* @__PURE__ */ o("footer", { className: r, "data-mode": "dark", children: /* @__PURE__ */ o("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ m("ul", { className: "pkt-footer-simple__list", children: [
1514
+ e.map((l, a) => /* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m(
836
1515
  "a",
837
1516
  {
838
- className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
839
- href: s.href,
840
- target: s.openInNewTab ? "_blank" : "_self",
841
- rel: s.openInNewTab ? "noopener noreferrer" : void 0,
1517
+ className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
1518
+ href: l.href,
1519
+ target: l.openInNewTab ? "_blank" : "_self",
1520
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
842
1521
  children: [
843
- /* @__PURE__ */ t(
844
- b,
1522
+ /* @__PURE__ */ o(
1523
+ y,
845
1524
  {
846
1525
  className: "pkt-footer-simple__link-icon",
847
1526
  name: "chevron-right"
848
1527
  }
849
1528
  ),
850
- s.text
1529
+ l.text
851
1530
  ]
852
1531
  }
853
- ) }, l)),
854
- /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ c("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
855
- /* @__PURE__ */ t(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1532
+ ) }, a)),
1533
+ /* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
1534
+ /* @__PURE__ */ o(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
856
1535
  "Personvern og informasjonskapsler"
857
1536
  ] }) }),
858
- /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ c("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
859
- /* @__PURE__ */ t(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1537
+ /* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
1538
+ /* @__PURE__ */ o(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
860
1539
  "Tilgjengelighet"
861
1540
  ] }) })
862
1541
  ] }) }) });
863
1542
  };
864
- var Ge = { exports: {} };
1543
+ var Dt = { exports: {} };
865
1544
  /*!
866
1545
  Copyright (c) 2018 Jed Watson.
867
1546
  Licensed under the MIT License (MIT), see
868
1547
  http://jedwatson.github.io/classnames
869
1548
  */
870
- (function(n) {
1549
+ (function(e) {
871
1550
  (function() {
872
- var u = {}.hasOwnProperty;
873
- function i() {
874
- for (var s = [], l = 0; l < arguments.length; l++) {
875
- var p = arguments[l];
876
- if (p) {
877
- var f = typeof p;
878
- if (f === "string" || f === "number")
879
- s.push(p);
880
- else if (Array.isArray(p)) {
881
- if (p.length) {
882
- var o = i.apply(null, p);
883
- o && s.push(o);
1551
+ var n = {}.hasOwnProperty;
1552
+ function r() {
1553
+ for (var l = [], a = 0; a < arguments.length; a++) {
1554
+ var i = arguments[a];
1555
+ if (i) {
1556
+ var s = typeof i;
1557
+ if (s === "string" || s === "number")
1558
+ l.push(i);
1559
+ else if (Array.isArray(i)) {
1560
+ if (i.length) {
1561
+ var c = r.apply(null, i);
1562
+ c && l.push(c);
884
1563
  }
885
- } else if (f === "object") {
886
- if (p.toString !== Object.prototype.toString && !p.toString.toString().includes("[native code]")) {
887
- s.push(p.toString());
1564
+ } else if (s === "object") {
1565
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
1566
+ l.push(i.toString());
888
1567
  continue;
889
1568
  }
890
- for (var d in p)
891
- u.call(p, d) && p[d] && s.push(d);
1569
+ for (var f in i)
1570
+ n.call(i, f) && i[f] && l.push(f);
892
1571
  }
893
1572
  }
894
1573
  }
895
- return s.join(" ");
1574
+ return l.join(" ");
896
1575
  }
897
- n.exports ? (i.default = i, n.exports = i) : window.classNames = i;
1576
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
898
1577
  })();
899
- })(Ge);
900
- var Rt = Ge.exports;
901
- const Je = /* @__PURE__ */ gt(Rt), Dt = H(
1578
+ })(Dt);
1579
+ var Kn = Dt.exports;
1580
+ const Lt = /* @__PURE__ */ sn(Kn), lr = H(
902
1581
  ({
903
- logoLink: n = "https://www.oslo.kommune.no/",
904
- serviceName: u,
905
- fixed: i = !0,
906
- scrollToHide: s = !0,
907
- user: l,
908
- userMenu: p,
909
- representing: f,
910
- userOptions: o,
911
- userMenuFooter: d,
912
- canChangeRepresentation: x = !0,
913
- showMenuButton: N = !1,
914
- showLogOutButton: g = !1,
915
- openMenu: T,
1582
+ logoLink: e = "https://www.oslo.kommune.no/",
1583
+ serviceName: n,
1584
+ fixed: r = !0,
1585
+ scrollToHide: l = !0,
1586
+ user: a,
1587
+ userMenu: i,
1588
+ representing: s,
1589
+ userOptions: c,
1590
+ userMenuFooter: f,
1591
+ canChangeRepresentation: d = !0,
1592
+ showMenuButton: h = !1,
1593
+ showLogOutButton: v = !1,
1594
+ openMenu: x,
916
1595
  logOut: C,
917
- changeRepresentation: F,
918
- ...L
919
- }, O) => {
920
- const j = V.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
1596
+ changeRepresentation: O,
1597
+ ...P
1598
+ }, T) => {
1599
+ const R = G.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
921
1600
  year: "numeric",
922
1601
  month: "long",
923
1602
  day: "numeric"
924
- }) : "", [l]), [w, B] = V.useState(!1), [M, G] = V.useState(0), [D, U] = V.useState(!1), $ = V.useRef(null);
925
- V.useEffect(() => (document.addEventListener("mouseup", Y), window.addEventListener("scroll", J), () => {
926
- document.removeEventListener("mouseup", Y), window.removeEventListener("scroll", J);
1603
+ }) : "", [a]), [g, j] = G.useState(!1), [$, M] = G.useState(0), [A, z] = G.useState(!1), V = G.useRef(null);
1604
+ G.useEffect(() => (document.addEventListener("mouseup", J), window.addEventListener("scroll", K), () => {
1605
+ document.removeEventListener("mouseup", J), window.removeEventListener("scroll", K);
927
1606
  }));
928
- const I = () => {
929
- U(!D);
930
- }, Y = (k) => {
931
- $.current && !$.current.contains(k.target) && U(!1);
932
- }, J = () => {
933
- if (s) {
934
- const k = window.pageYOffset || document.documentElement.scrollTop;
935
- if (k < 0 || Math.abs(k - M) < 60)
1607
+ const W = () => {
1608
+ z(!A);
1609
+ }, J = (b) => {
1610
+ V.current && !V.current.contains(b.target) && z(!1);
1611
+ }, K = () => {
1612
+ if (l) {
1613
+ const b = window.pageYOffset || document.documentElement.scrollTop;
1614
+ if (b < 0 || Math.abs(b - $) < 60)
936
1615
  return;
937
- B(k > M), G(k);
1616
+ j(b > $), M(b);
938
1617
  }
939
1618
  };
940
- return /* @__PURE__ */ c(
1619
+ return /* @__PURE__ */ m(
941
1620
  "header",
942
1621
  {
943
- ...L,
1622
+ ...P,
944
1623
  id: "pkt-header",
945
1624
  "data-testid": "pkt-header",
946
1625
  "aria-label": "Topp",
947
- className: Je("pkt-header", {
948
- "pkt-header--fixed": i,
949
- "pkt-header--scroll-to-hide": s,
950
- "pkt-header--hidden": w
1626
+ className: Lt("pkt-header", {
1627
+ "pkt-header--fixed": r,
1628
+ "pkt-header--scroll-to-hide": l,
1629
+ "pkt-header--hidden": g
951
1630
  }),
952
- ref: O,
1631
+ ref: T,
953
1632
  children: [
954
- /* @__PURE__ */ c("div", { className: "pkt-header__logo", children: [
955
- typeof n == "string" ? /* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: n, children: /* @__PURE__ */ t(
956
- b,
1633
+ /* @__PURE__ */ m("div", { className: "pkt-header__logo", children: [
1634
+ typeof e == "string" ? /* @__PURE__ */ o("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: e, children: /* @__PURE__ */ o(
1635
+ y,
957
1636
  {
958
1637
  name: "oslologo",
959
1638
  className: "pkt-header__logo-svg",
960
1639
  "aria-hidden": "true",
961
- path: "https://punkt-cdn.oslo.kommune.no/7.1/logos/"
1640
+ path: "https://punkt-cdn.oslo.kommune.no/7.2/logos/"
962
1641
  }
963
- ) }) : /* @__PURE__ */ t(
1642
+ ) }) : /* @__PURE__ */ o(
964
1643
  "button",
965
1644
  {
966
1645
  "aria-label": "Tilbake til forside",
967
1646
  className: "pkt-link-button pkt-link pkt-header__logo-link",
968
- onClick: n,
969
- children: /* @__PURE__ */ t(
970
- b,
1647
+ onClick: e,
1648
+ children: /* @__PURE__ */ o(
1649
+ y,
971
1650
  {
972
1651
  name: "oslologo",
973
1652
  className: "pkt-header__logo-svg",
974
1653
  "aria-hidden": "true",
975
- path: "https://punkt-cdn.oslo.kommune.no/7.1/logos/"
1654
+ path: "https://punkt-cdn.oslo.kommune.no/7.2/logos/"
976
1655
  }
977
1656
  )
978
1657
  }
979
1658
  ),
980
- /* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: u })
1659
+ /* @__PURE__ */ o("span", { className: "pkt-header__logo-service", children: n })
981
1660
  ] }),
982
- /* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ c("ul", { className: "pkt-header__actions-row", children: [
983
- N && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
984
- ie,
1661
+ /* @__PURE__ */ o("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ m("ul", { className: "pkt-header__actions-row", children: [
1662
+ h && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
1663
+ be,
985
1664
  {
986
1665
  className: "pkt-header__menu-btn",
987
1666
  skin: "secondary",
988
1667
  variant: "icon-right",
989
1668
  iconName: "menu",
990
- onClick: T,
1669
+ onClick: x,
991
1670
  children: "Meny"
992
1671
  }
993
1672
  ) }),
994
- (l || f) && /* @__PURE__ */ c(
1673
+ (a || s) && /* @__PURE__ */ m(
995
1674
  "li",
996
1675
  {
997
1676
  "data-testid": "usermenu",
998
- className: `pkt-header--has-dropdown ${D && !w ? "pkt-header--open-dropdown" : ""}`,
999
- ref: $,
1677
+ className: `pkt-header--has-dropdown ${A && !g ? "pkt-header--open-dropdown" : ""}`,
1678
+ ref: V,
1000
1679
  children: [
1001
- /* @__PURE__ */ c(
1680
+ /* @__PURE__ */ m(
1002
1681
  "button",
1003
1682
  {
1004
1683
  className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
1005
1684
  type: "button",
1006
1685
  role: "button",
1007
1686
  "aria-controls": "pktUserDropdown",
1008
- "aria-expanded": D,
1009
- onClick: I,
1687
+ "aria-expanded": A,
1688
+ onClick: W,
1010
1689
  children: [
1011
- /* @__PURE__ */ t(b, { name: "user", className: "pkt-btn__icon" }),
1012
- /* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (f == null ? void 0 : f.name) || (l == null ? void 0 : l.name) }),
1013
- /* @__PURE__ */ t("span", { className: "pkt-header__user-shortname", children: (f == null ? void 0 : f.shortname) || (l == null ? void 0 : l.shortname) }),
1014
- /* @__PURE__ */ t(b, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1015
- /* @__PURE__ */ t(b, { name: "chevron-thin-up", className: "pkt-btn--open" })
1690
+ /* @__PURE__ */ o(y, { name: "user", className: "pkt-btn__icon" }),
1691
+ /* @__PURE__ */ o("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (a == null ? void 0 : a.name) }),
1692
+ /* @__PURE__ */ o("span", { className: "pkt-header__user-shortname", children: (s == null ? void 0 : s.shortname) || (a == null ? void 0 : a.shortname) }),
1693
+ /* @__PURE__ */ o(y, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1694
+ /* @__PURE__ */ o(y, { name: "chevron-thin-up", className: "pkt-btn--open" })
1016
1695
  ]
1017
1696
  }
1018
1697
  ),
1019
- /* @__PURE__ */ c("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1020
- l && /* @__PURE__ */ c("li", { children: [
1021
- /* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1022
- /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: l.name }),
1023
- l.lastLoggedIn && /* @__PURE__ */ c("div", { className: "pkt-user-menu__last-logged-in", children: [
1698
+ /* @__PURE__ */ m("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1699
+ a && /* @__PURE__ */ m("li", { children: [
1700
+ /* @__PURE__ */ o("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1701
+ /* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: a.name }),
1702
+ a.lastLoggedIn && /* @__PURE__ */ m("div", { className: "pkt-user-menu__last-logged-in", children: [
1024
1703
  "Sist pålogget: ",
1025
- /* @__PURE__ */ t("time", { children: j })
1704
+ /* @__PURE__ */ o("time", { children: R })
1026
1705
  ] })
1027
1706
  ] }),
1028
- p && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: p.map((k, E) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ c("a", { href: k.target, className: "pkt-link", children: [
1029
- k.iconName && /* @__PURE__ */ t(b, { name: k.iconName, className: "pkt-link__icon" }),
1030
- k.title
1031
- ] }) : /* @__PURE__ */ c("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1032
- k.iconName && /* @__PURE__ */ t(b, { name: k.iconName, className: "pkt-link__icon" }),
1033
- k.title
1034
- ] }) }, `userMenu-${E}`)) }) }),
1035
- (f || x) && /* @__PURE__ */ c("li", { children: [
1036
- f && /* @__PURE__ */ c(z, { children: [
1037
- /* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1038
- /* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: f.name }),
1039
- f.orgNumber && /* @__PURE__ */ c("div", { className: "pkt-user-menu__org-number", children: [
1707
+ i && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: i.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ m("a", { href: b.target, className: "pkt-link", children: [
1708
+ b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
1709
+ b.title
1710
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1711
+ b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
1712
+ b.title
1713
+ ] }) }, `userMenu-${D}`)) }) }),
1714
+ (s || d) && /* @__PURE__ */ m("li", { children: [
1715
+ s && /* @__PURE__ */ m(X, { children: [
1716
+ /* @__PURE__ */ o("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1717
+ /* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: s.name }),
1718
+ s.orgNumber && /* @__PURE__ */ m("div", { className: "pkt-user-menu__org-number", children: [
1040
1719
  "Org.nr. ",
1041
- f.orgNumber
1720
+ s.orgNumber
1042
1721
  ] })
1043
1722
  ] }),
1044
- /* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ c(
1723
+ /* @__PURE__ */ o("ul", { className: "pkt-list mt-size-16", children: d && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m(
1045
1724
  "button",
1046
1725
  {
1047
1726
  className: "pkt-link-button pkt-link",
1048
- onClick: F,
1727
+ onClick: O,
1049
1728
  children: [
1050
- /* @__PURE__ */ t(b, { name: "cogwheel", className: "pkt-link__icon" }),
1729
+ /* @__PURE__ */ o(y, { name: "cogwheel", className: "pkt-link__icon" }),
1051
1730
  "Endre organisasjon"
1052
1731
  ]
1053
1732
  }
1054
1733
  ) }) })
1055
1734
  ] }),
1056
- /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (o || !g) && /* @__PURE__ */ c(z, { children: [
1057
- o == null ? void 0 : o.map((k, E) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ c("a", { href: k.target, className: "pkt-link", children: [
1058
- k.iconName && /* @__PURE__ */ t(b, { name: k.iconName, className: "pkt-link__icon" }),
1059
- k.title
1060
- ] }) : /* @__PURE__ */ c("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
1061
- k.iconName && /* @__PURE__ */ t(b, { name: k.iconName, className: "pkt-link__icon" }),
1062
- k.title
1063
- ] }) }, `userOptions-${E}`)),
1064
- !g && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ c("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1065
- /* @__PURE__ */ t(b, { name: "exit", className: "pkt-link__icon" }),
1735
+ /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: (c || !v) && /* @__PURE__ */ m(X, { children: [
1736
+ c == null ? void 0 : c.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ m("a", { href: b.target, className: "pkt-link", children: [
1737
+ b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
1738
+ b.title
1739
+ ] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
1740
+ b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
1741
+ b.title
1742
+ ] }) }, `userOptions-${D}`)),
1743
+ !v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
1744
+ /* @__PURE__ */ o(y, { name: "exit", className: "pkt-link__icon" }),
1066
1745
  "Logg ut"
1067
1746
  ] }) })
1068
1747
  ] }) }) }),
1069
- d && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: d.map((k, E) => /* @__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-${E}`)) }) })
1748
+ f && /* @__PURE__ */ o("li", { className: "footer", children: /* @__PURE__ */ o("ul", { className: "pkt-list-horizontal bordered", children: f.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ o("a", { href: b.target, className: "pkt-link", children: b.title }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: b.title }) }, `userMenuFooter-${D}`)) }) })
1070
1749
  ] })
1071
1750
  ]
1072
1751
  }
1073
1752
  ),
1074
- g && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
1075
- ie,
1753
+ v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
1754
+ be,
1076
1755
  {
1077
1756
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
1078
1757
  iconName: "exit",
@@ -1088,403 +1767,404 @@ const Je = /* @__PURE__ */ gt(Rt), Dt = H(
1088
1767
  }
1089
1768
  );
1090
1769
  }
1091
- ), Pt = V.forwardRef(
1092
- ({ label: n, id: u, children: i, ...s }, l) => /* @__PURE__ */ c("div", { className: "pkt-form-group", children: [
1093
- /* @__PURE__ */ t("label", { htmlFor: u, className: "pkt-form-label", children: n }),
1094
- /* @__PURE__ */ t("input", { className: "pkt-form-input", id: u, ...s, ref: l }),
1095
- i
1770
+ ), qn = G.forwardRef(
1771
+ ({ label: e, id: n, children: r, ...l }, a) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
1772
+ /* @__PURE__ */ o("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1773
+ /* @__PURE__ */ o("input", { className: "pkt-form-input", id: n, ...l, ref: a }),
1774
+ r
1096
1775
  ] })
1097
1776
  );
1098
- Pt.displayName = "PktInput";
1099
- const ge = H(
1777
+ qn.displayName = "PktInput";
1778
+ const ze = H(
1100
1779
  ({
1101
- forId: n,
1102
- label: u,
1103
- helptext: i,
1104
- helptextDropdown: s,
1105
- helptextDropdownButton: l,
1106
- optional: p,
1107
- required: f,
1108
- hasError: o,
1109
- errorMessage: d,
1110
- disabled: x,
1111
- inline: N,
1112
- ariaDescribedby: g,
1113
- useWrapper: T = !0,
1780
+ forId: e,
1781
+ label: n,
1782
+ helptext: r,
1783
+ helptextDropdown: l,
1784
+ helptextDropdownButton: a,
1785
+ optional: i,
1786
+ required: s,
1787
+ hasError: c,
1788
+ errorMessage: f,
1789
+ disabled: d,
1790
+ inline: h,
1791
+ ariaDescribedby: v,
1792
+ useWrapper: x = !0,
1114
1793
  children: C,
1115
- className: F
1116
- }, L) => {
1117
- const [O, j] = re(!1), w = () => {
1118
- j(!O);
1119
- }, B = () => p ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : f ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", M = p ? "Valgfritt" : f ? "Må fylles ut" : "", G = x ? "pkt-inputwrapper--disabled" : "", D = N ? "pkt-inputwrapper--inline" : "", U = o ? "pkt-inputwrapper--error" : "", $ = !!s && s !== "", I = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', Y = $ ? "div" : "label", J = $ ? "h2" : "span", k = g || (i ? `${n}-helptext` : void 0);
1120
- return /* @__PURE__ */ c(
1794
+ className: O
1795
+ }, P) => {
1796
+ const [T, R] = ie(!1), g = () => {
1797
+ R(!T);
1798
+ }, j = () => i ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", $ = i ? "Valgfritt" : s ? "Må fylles ut" : "", M = d ? "pkt-inputwrapper--disabled" : "", A = h ? "pkt-inputwrapper--inline" : "", z = c ? "pkt-inputwrapper--error" : "", V = !!l && l !== "", W = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', J = V ? "div" : "label", K = V ? "h2" : "span", b = v || (r ? `${e}-helptext` : void 0);
1799
+ return /* @__PURE__ */ m(
1121
1800
  "div",
1122
1801
  {
1123
- className: ["pkt-inputwrapper", F, G, D, U].join(
1802
+ className: ["pkt-inputwrapper", O, M, A, z].join(
1124
1803
  " "
1125
1804
  ),
1126
- ref: L,
1805
+ ref: P,
1127
1806
  children: [
1128
- T ? /* @__PURE__ */ c(z, { children: [
1129
- /* @__PURE__ */ t(
1130
- Y,
1807
+ x ? /* @__PURE__ */ m(X, { children: [
1808
+ /* @__PURE__ */ o(
1809
+ J,
1131
1810
  {
1132
- htmlFor: n,
1811
+ htmlFor: e,
1133
1812
  className: "pkt-inputwrapper__label",
1134
- "aria-describedby": $ ? "" : g,
1135
- children: /* @__PURE__ */ c(J, { id: `${n}-label`, children: [
1136
- u,
1137
- M !== "" && /* @__PURE__ */ t("span", { className: B(), children: M })
1813
+ "aria-describedby": V ? "" : v,
1814
+ children: /* @__PURE__ */ m(K, { id: `${e}-label`, children: [
1815
+ n,
1816
+ $ !== "" && /* @__PURE__ */ o("span", { className: j(), children: $ })
1138
1817
  ] })
1139
1818
  }
1140
1819
  ),
1141
- i && /* @__PURE__ */ t("div", { className: "pkt-inputwrapper__helptext", id: `${n}-helptext`, children: i }),
1142
- $ && s !== "" && /* @__PURE__ */ c("div", { children: [
1143
- /* @__PURE__ */ t(
1144
- ie,
1820
+ r && /* @__PURE__ */ o("div", { className: "pkt-inputwrapper__helptext", id: `${e}-helptext`, children: r }),
1821
+ V && l !== "" && /* @__PURE__ */ m("div", { children: [
1822
+ /* @__PURE__ */ o(
1823
+ be,
1145
1824
  {
1146
1825
  skin: "tertiary",
1147
1826
  size: "small",
1148
1827
  variant: "icon-right",
1149
- iconName: O ? "chevron-thin-up" : "chevron-thin-down",
1828
+ iconName: T ? "chevron-thin-up" : "chevron-thin-down",
1150
1829
  className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1151
- onClick: w,
1152
- children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: I } })
1830
+ onClick: g,
1831
+ children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: W } })
1153
1832
  }
1154
1833
  ),
1155
- /* @__PURE__ */ t(
1834
+ /* @__PURE__ */ o(
1156
1835
  "div",
1157
1836
  {
1158
- className: `pkt-inputwrapper__helptext ${O ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1159
- children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: s } })
1837
+ className: `pkt-inputwrapper__helptext ${T ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1838
+ children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: l } })
1160
1839
  }
1161
1840
  ),
1162
- /* @__PURE__ */ t("label", { htmlFor: n, className: "pkt-sr-only", "aria-describedby": k, children: u })
1841
+ /* @__PURE__ */ o("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": b, children: n })
1163
1842
  ] }),
1164
- /* @__PURE__ */ t(z, { children: C })
1165
- ] }) : /* @__PURE__ */ c(z, { children: [
1166
- /* @__PURE__ */ t(
1843
+ /* @__PURE__ */ o(X, { children: C })
1844
+ ] }) : /* @__PURE__ */ m(X, { children: [
1845
+ /* @__PURE__ */ o(
1167
1846
  "label",
1168
1847
  {
1169
- htmlFor: n,
1848
+ htmlFor: e,
1170
1849
  className: "pkt-sr-only",
1171
- "aria-describedby": k,
1172
- id: `${n}-label`,
1173
- children: u
1850
+ "aria-describedby": b,
1851
+ id: `${e}-label`,
1852
+ children: n
1174
1853
  }
1175
1854
  ),
1176
1855
  C
1177
1856
  ] }),
1178
- o && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Et, { skin: "error", "aria-live": "assertive", children: d }) })
1857
+ c && /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(dn, { skin: "error", "aria-live": "assertive", children: f }) })
1179
1858
  ]
1180
1859
  }
1181
1860
  );
1182
1861
  }
1183
1862
  );
1184
- ge.displayName = "PktInputWrapper";
1185
- const Tt = H(
1863
+ ze.displayName = "PktInputWrapper";
1864
+ const Xn = H(
1186
1865
  ({
1187
- children: n,
1188
- className: u,
1189
- iconName: i = "user",
1190
- openInNewTab: s = !1,
1191
- skin: l = "normal",
1192
- href: p = "#",
1193
- external: f = !1,
1194
- title: o
1195
- }, d) => {
1196
- const x = [u, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
1197
- return /* @__PURE__ */ c(
1866
+ children: e,
1867
+ className: n,
1868
+ iconName: r = "user",
1869
+ openInNewTab: l = !1,
1870
+ skin: a = "normal",
1871
+ href: i = "#",
1872
+ external: s = !1,
1873
+ title: c
1874
+ }, f) => {
1875
+ const d = [n, "pkt-linkcard", a && `pkt-linkcard--${a}`].filter(Boolean).join(" ");
1876
+ return /* @__PURE__ */ m(
1198
1877
  "a",
1199
1878
  {
1200
- href: p,
1201
- className: `pkt-linkcard pkt-link ${x}`,
1202
- target: s ? "_blank" : "_self",
1203
- rel: s ? "noopener noreferrer" : void 0,
1204
- ref: d,
1879
+ href: i,
1880
+ className: `pkt-linkcard pkt-link ${d}`,
1881
+ target: l ? "_blank" : "_self",
1882
+ rel: l ? "noopener noreferrer" : void 0,
1883
+ ref: f,
1205
1884
  children: [
1206
- /* @__PURE__ */ t(b, { className: "pkt-link__icon", name: i }),
1207
- /* @__PURE__ */ c("div", { className: "pkt-linkcard__content", children: [
1208
- /* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${f ? "pkt-link pkt-link--external" : ""}`, children: o }),
1209
- /* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: n })
1885
+ /* @__PURE__ */ o(y, { className: "pkt-link__icon", name: r }),
1886
+ /* @__PURE__ */ m("div", { className: "pkt-linkcard__content", children: [
1887
+ /* @__PURE__ */ o("div", { className: `pkt-linkcard__title ${s ? "pkt-link pkt-link--external" : ""}`, children: c }),
1888
+ /* @__PURE__ */ o("div", { className: "pkt-linkcard__text", children: e })
1210
1889
  ] })
1211
1890
  ]
1212
1891
  }
1213
1892
  );
1214
1893
  }
1215
1894
  );
1216
- Tt.displayName = "PktLinkCard";
1217
- const At = ({
1218
- children: n,
1219
- skin: u = "beige",
1220
- title: i,
1221
- className: s,
1222
- ...l
1895
+ Xn.displayName = "PktLinkCard";
1896
+ const ir = ({
1897
+ children: e,
1898
+ skin: n = "beige",
1899
+ title: r,
1900
+ className: l,
1901
+ ...a
1223
1902
  }) => {
1224
- const p = ["pkt-messagebox", u && `pkt-messagebox--${u}`, s].filter(Boolean).join(" ");
1225
- return /* @__PURE__ */ c("div", { ...l, className: p, children: [
1226
- /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: i }),
1227
- /* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: n })
1903
+ const i = ["pkt-messagebox", n && `pkt-messagebox--${n}`, l].filter(Boolean).join(" ");
1904
+ return /* @__PURE__ */ m("div", { ...a, className: i, children: [
1905
+ /* @__PURE__ */ o("div", { className: "pkt-messagebox__title", children: r }),
1906
+ /* @__PURE__ */ o("div", { className: "pkt-messagebox__text", children: e })
1228
1907
  ] });
1229
- }, Ct = H(
1230
- ({ id: n, name: u, label: i, value: s, ...l }, p) => /* @__PURE__ */ c("div", { className: "pkt-form-group", children: [
1231
- /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: n, name: u, value: s, ref: p, ...l }),
1232
- /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: n, children: i })
1908
+ }, Zn = H(
1909
+ ({ id: e, name: n, label: r, value: l, ...a }, i) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
1910
+ /* @__PURE__ */ o("input", { type: "radio", className: "pkt-form-check-input", id: e, name: n, value: l, ref: i, ...a }),
1911
+ /* @__PURE__ */ o("label", { className: "pkt-form-label", htmlFor: e, children: r })
1233
1912
  ] })
1234
1913
  );
1235
- Ct.displayName = "PktRadio";
1236
- const Lt = ({ label: n, children: u }) => /* @__PURE__ */ c(z, { children: [
1237
- /* @__PURE__ */ t("p", { children: n }),
1238
- /* @__PURE__ */ t("div", { className: "pkt-form-group", children: u })
1239
- ] }), jt = ({ isResponsive: n, children: u }) => n ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: u }) : /* @__PURE__ */ t(z, { children: u }), Mt = ({
1240
- isResponsive: n,
1241
- modifiers: { info: u = !1, success: i = !1, strong: s = !1, shadow: l = !1 } = {},
1242
- children: p
1243
- }) => /* @__PURE__ */ t(jt, { isResponsive: n, children: /* @__PURE__ */ t(
1914
+ Zn.displayName = "PktRadio";
1915
+ const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(X, { children: [
1916
+ /* @__PURE__ */ o("p", { children: e }),
1917
+ /* @__PURE__ */ o("div", { className: "pkt-form-group", children: n })
1918
+ ] }), Qn = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ o("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ o(X, { children: n }), cr = ({
1919
+ isResponsive: e,
1920
+ modifiers: { info: n = !1, success: r = !1, strong: l = !1, shadow: a = !1 } = {},
1921
+ children: i
1922
+ }) => /* @__PURE__ */ o(Qn, { isResponsive: e, children: /* @__PURE__ */ o(
1244
1923
  "table",
1245
1924
  {
1246
- className: Je("pkt-table", {
1247
- "pkt-table--info": u,
1248
- "pkt-table--success": i,
1249
- "pkt-table--strong": s,
1250
- "pkt-table--shadow": l
1925
+ className: Lt("pkt-table", {
1926
+ "pkt-table--info": n,
1927
+ "pkt-table--success": r,
1928
+ "pkt-table--strong": l,
1929
+ "pkt-table--shadow": a
1251
1930
  }),
1252
- children: p
1931
+ children: i
1253
1932
  }
1254
- ) }), Wt = ({ children: n }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: n }), Bt = ({ children: n }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: n }), St = H(({
1255
- children: n,
1256
- className: u,
1257
- skin: i = "blue",
1258
- textStyle: s = "normal-text",
1259
- size: l = "medium",
1260
- closeTag: p = !1,
1261
- iconName: f = "",
1262
- type: o = "button",
1263
- ariaLabel: d = "close",
1264
- onClick: x = () => {
1933
+ ) }), ur = ({ children: e }) => /* @__PURE__ */ o("td", { className: "pkt-table__th", children: e }), fr = ({ children: e }) => /* @__PURE__ */ o("th", { className: "pkt-table__th", children: e }), er = H(({
1934
+ children: e,
1935
+ className: n,
1936
+ skin: r = "blue",
1937
+ textStyle: l = "normal-text",
1938
+ size: a = "medium",
1939
+ closeTag: i = !1,
1940
+ iconName: s = "",
1941
+ type: c = "button",
1942
+ ariaLabel: f = "close",
1943
+ onClick: d = () => {
1265
1944
  }
1266
- }, N) => {
1267
- const [g, T] = re(!1), C = (j) => {
1268
- T(!0), x(j);
1269
- }, F = [
1945
+ }, h) => {
1946
+ const [v, x] = ie(!1), C = (R) => {
1947
+ x(!0), d(R);
1948
+ }, O = [
1270
1949
  "pkt-tag",
1950
+ a && `pkt-tag--${a}`,
1951
+ r && `pkt-tag--${r}`,
1271
1952
  l && `pkt-tag--${l}`,
1272
- i && `pkt-tag--${i}`,
1273
- s && `pkt-tag--${s}`,
1274
- u
1275
- ].filter(Boolean).join(" "), L = [
1953
+ n
1954
+ ].filter(Boolean).join(" "), P = [
1276
1955
  "pkt-tag",
1277
1956
  "pkt-btn",
1278
1957
  "pkt-btn--tertiary",
1958
+ a && `pkt-tag--${a}`,
1959
+ r && `pkt-tag--${r}`,
1279
1960
  l && `pkt-tag--${l}`,
1280
- i && `pkt-tag--${i}`,
1281
- s && `pkt-tag--${s}`,
1282
- f && p ? "pkt-btn--icons-right-and-left" : null,
1283
- p && !f ? "pkt-btn--icon-right" : null,
1284
- u
1285
- ].filter(Boolean).join(" "), O = !g;
1286
- return p && f ? /* @__PURE__ */ t(z, { children: O && /* @__PURE__ */ c(
1961
+ s && i ? "pkt-btn--icons-right-and-left" : null,
1962
+ i && !s ? "pkt-btn--icon-right" : null,
1963
+ n
1964
+ ].filter(Boolean).join(" "), T = !v;
1965
+ return i && s ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
1287
1966
  "button",
1288
1967
  {
1289
- className: L,
1290
- type: o,
1291
- "aria-label": d,
1968
+ className: P,
1969
+ type: c,
1970
+ "aria-label": f,
1292
1971
  onClick: C,
1293
- ref: N,
1972
+ ref: h,
1294
1973
  children: [
1295
- /* @__PURE__ */ t(b, { className: "pkt-tag__icon", name: f }),
1296
- n,
1297
- /* @__PURE__ */ t(b, { className: "pkt-tag__close-btn", name: "close" })
1974
+ /* @__PURE__ */ o(y, { className: "pkt-tag__icon", name: s }),
1975
+ e,
1976
+ /* @__PURE__ */ o(y, { className: "pkt-tag__close-btn", name: "close" })
1298
1977
  ]
1299
1978
  }
1300
- ) }) : p ? /* @__PURE__ */ t(z, { children: O && /* @__PURE__ */ c(
1979
+ ) }) : i ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
1301
1980
  "button",
1302
1981
  {
1303
- className: L,
1304
- type: o,
1305
- "aria-label": d,
1982
+ className: P,
1983
+ type: c,
1984
+ "aria-label": f,
1306
1985
  onClick: C,
1307
- ref: N,
1986
+ ref: h,
1308
1987
  children: [
1309
- /* @__PURE__ */ t(b, { className: "pkt-tag__close-btn", name: "close" }),
1310
- n
1988
+ /* @__PURE__ */ o(y, { className: "pkt-tag__close-btn", name: "close" }),
1989
+ e
1311
1990
  ]
1312
1991
  }
1313
- ) }) : f ? /* @__PURE__ */ c("span", { className: F, children: [
1314
- /* @__PURE__ */ t(b, { className: "pkt-tag__icon", name: f }),
1315
- n
1316
- ] }) : /* @__PURE__ */ t("span", { className: F, children: n });
1992
+ ) }) : s ? /* @__PURE__ */ m("span", { className: O, children: [
1993
+ /* @__PURE__ */ o(y, { className: "pkt-tag__icon", name: s }),
1994
+ e
1995
+ ] }) : /* @__PURE__ */ o("span", { className: O, children: e });
1317
1996
  });
1318
- St.displayName = "PktTag";
1319
- const Yt = H(
1997
+ er.displayName = "PktTag";
1998
+ const pr = H(
1320
1999
  ({
1321
- id: n,
1322
- ariaDescribedby: u,
1323
- ariaLabelledby: i,
1324
- counter: s,
1325
- counterMaxLength: l,
1326
- className: p,
1327
- disabled: f,
1328
- errorMessage: o,
1329
- hasError: d,
1330
- helptext: x,
1331
- helptextDropdown: N,
1332
- helptextDropdownButton: g,
1333
- inline: T,
2000
+ id: e,
2001
+ ariaDescribedby: n,
2002
+ ariaLabelledby: r,
2003
+ counter: l,
2004
+ counterMaxLength: a,
2005
+ className: i,
2006
+ disabled: s,
2007
+ errorMessage: c,
2008
+ hasError: f,
2009
+ helptext: d,
2010
+ helptextDropdown: h,
2011
+ helptextDropdownButton: v,
2012
+ inline: x,
1334
2013
  label: C,
1335
- name: F,
1336
- optional: L,
1337
- placeholder: O,
1338
- required: j,
1339
- rows: w,
1340
- useWrapper: B,
1341
- onChange: M,
1342
- ...G
1343
- }, D) => {
1344
- const U = [p, "pkt-textinput", "pkt-textarea"].join(" "), $ = i || `${n}-label`, I = bt(null), [Y, J] = re(0), k = (E) => {
1345
- var A, K;
1346
- if (s && J(((K = (A = E.currentTarget) == null ? void 0 : A.value) == null ? void 0 : K.length) || 0), M)
1347
- return M(E);
2014
+ name: O,
2015
+ optional: P,
2016
+ placeholder: T,
2017
+ required: R,
2018
+ rows: g,
2019
+ useWrapper: j,
2020
+ onChange: $,
2021
+ ...M
2022
+ }, A) => {
2023
+ const z = [i, "pkt-textinput", "pkt-textarea"].join(" "), V = r || `${e}-label`, W = ln(null), [J, K] = ie(0), b = (D) => {
2024
+ var B, Z;
2025
+ if (l && K(((Z = (B = D.currentTarget) == null ? void 0 : B.value) == null ? void 0 : Z.length) || 0), $)
2026
+ return $(D);
1348
2027
  };
1349
- return He(() => {
1350
- var E, A;
1351
- typeof D == "function" && D(I.current), s && J(((A = (E = I == null ? void 0 : I.current) == null ? void 0 : E.value) == null ? void 0 : A.length) || 0);
1352
- }, [D]), /* @__PURE__ */ c(
1353
- ge,
2028
+ return yt(() => {
2029
+ var D, B;
2030
+ typeof A == "function" && A(W.current), l && K(((B = (D = W == null ? void 0 : W.current) == null ? void 0 : D.value) == null ? void 0 : B.length) || 0);
2031
+ }, [A]), /* @__PURE__ */ m(
2032
+ ze,
1354
2033
  {
1355
- ariaDescribedby: u,
1356
- className: U,
1357
- disabled: f,
1358
- errorMessage: o,
1359
- forId: n,
1360
- hasError: d,
1361
- helptext: x,
1362
- helptextDropdown: N,
1363
- helptextDropdownButton: g,
1364
- inline: T,
2034
+ ariaDescribedby: n,
2035
+ className: z,
2036
+ disabled: s,
2037
+ errorMessage: c,
2038
+ forId: e,
2039
+ hasError: f,
2040
+ helptext: d,
2041
+ helptextDropdown: h,
2042
+ helptextDropdownButton: v,
2043
+ inline: x,
1365
2044
  label: C,
1366
- optional: L,
1367
- required: j,
1368
- useWrapper: B,
2045
+ optional: P,
2046
+ required: R,
2047
+ useWrapper: j,
1369
2048
  children: [
1370
- /* @__PURE__ */ t(
2049
+ /* @__PURE__ */ o(
1371
2050
  "textarea",
1372
2051
  {
1373
- ref: I,
1374
- className: `pkt-textinput__input ${l && Y > l ? "pkt-textinput__input--counter-error" : ""}`,
1375
- name: F || n,
1376
- id: n,
1377
- placeholder: O,
1378
- disabled: f,
1379
- rows: w,
1380
- "aria-labelledby": $,
1381
- "aria-invalid": d,
1382
- "aria-required": j,
1383
- ...G,
1384
- onChange: k
2052
+ ref: W,
2053
+ className: `pkt-textinput__input ${a && J > a ? "pkt-textinput__input--counter-error" : ""}`,
2054
+ name: O || e,
2055
+ id: e,
2056
+ placeholder: T,
2057
+ disabled: s,
2058
+ rows: g,
2059
+ "aria-labelledby": V,
2060
+ "aria-invalid": f,
2061
+ "aria-required": R,
2062
+ ...M,
2063
+ onChange: b
1385
2064
  }
1386
2065
  ),
1387
- s && /* @__PURE__ */ c("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
1388
- Y || 0,
1389
- l && `/${l}`
2066
+ l && /* @__PURE__ */ m("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2067
+ J || 0,
2068
+ a && `/${a}`
1390
2069
  ] })
1391
2070
  ]
1392
2071
  }
1393
2072
  );
1394
2073
  }
1395
- ), Ut = H(
2074
+ ), dr = H(
1396
2075
  ({
1397
- id: n,
1398
- ariaDescribedby: u,
1399
- ariaLabelledby: i,
1400
- autocomplete: s = "off",
1401
- className: l,
1402
- disabled: p = !1,
1403
- errorMessage: f,
1404
- hasError: o = !1,
1405
- helptext: d,
1406
- helptextDropdown: x,
1407
- helptextDropdownButton: N,
1408
- iconNameRight: g,
1409
- inline: T = !1,
2076
+ id: e,
2077
+ ariaDescribedby: n,
2078
+ ariaLabelledby: r,
2079
+ autocomplete: l = "off",
2080
+ className: a,
2081
+ disabled: i = !1,
2082
+ errorMessage: s,
2083
+ hasError: c = !1,
2084
+ helptext: f,
2085
+ helptextDropdown: d,
2086
+ helptextDropdownButton: h,
2087
+ iconNameRight: v,
2088
+ inline: x = !1,
1410
2089
  label: C,
1411
- name: F,
1412
- optional: L = !1,
1413
- placeholder: O,
1414
- prefix: j,
1415
- required: w = !1,
1416
- suffix: B,
1417
- type: M = "text",
1418
- useWrapper: G = !0,
1419
- value: D,
1420
- ...U
1421
- }, $) => {
1422
- const I = [l, "pkt-textinput"].join(" "), Y = i || `${n}-label`;
1423
- return /* @__PURE__ */ t(
1424
- ge,
2090
+ name: O,
2091
+ optional: P = !1,
2092
+ placeholder: T,
2093
+ prefix: R,
2094
+ required: g = !1,
2095
+ suffix: j,
2096
+ type: $ = "text",
2097
+ useWrapper: M = !0,
2098
+ value: A,
2099
+ ...z
2100
+ }, V) => {
2101
+ const W = [a, "pkt-textinput"].join(" "), J = r || `${e}-label`;
2102
+ return /* @__PURE__ */ o(
2103
+ ze,
1425
2104
  {
1426
- ariaDescribedby: u,
1427
- className: I,
1428
- disabled: p,
1429
- errorMessage: f,
1430
- forId: n,
1431
- hasError: o,
1432
- helptext: d,
1433
- helptextDropdown: x,
1434
- helptextDropdownButton: N,
1435
- inline: T,
2105
+ ariaDescribedby: n,
2106
+ className: W,
2107
+ disabled: i,
2108
+ errorMessage: s,
2109
+ forId: e,
2110
+ hasError: c,
2111
+ helptext: f,
2112
+ helptextDropdown: d,
2113
+ helptextDropdownButton: h,
2114
+ inline: x,
1436
2115
  label: C,
1437
- optional: L,
1438
- required: w,
1439
- useWrapper: G,
1440
- children: /* @__PURE__ */ c("div", { className: "pkt-textinput__container", children: [
1441
- j && /* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: j }),
1442
- /* @__PURE__ */ t(
2116
+ optional: P,
2117
+ required: g,
2118
+ useWrapper: M,
2119
+ children: /* @__PURE__ */ m("div", { className: "pkt-textinput__container", children: [
2120
+ R && /* @__PURE__ */ o("div", { className: "pkt-textinput__input-prefix", children: R }),
2121
+ /* @__PURE__ */ o(
1443
2122
  "input",
1444
2123
  {
1445
- ref: $,
2124
+ ref: V,
1446
2125
  className: "pkt-textinput__input",
1447
- type: M,
1448
- name: F || n,
1449
- id: n,
1450
- placeholder: O,
1451
- autoComplete: s,
1452
- value: D,
1453
- disabled: p,
1454
- "aria-required": w,
1455
- "aria-invalid": o,
1456
- "aria-labelledby": Y,
1457
- ...U
2126
+ type: $,
2127
+ name: O || e,
2128
+ id: e,
2129
+ placeholder: T,
2130
+ autoComplete: l,
2131
+ value: A,
2132
+ disabled: i,
2133
+ "aria-required": g,
2134
+ "aria-invalid": c,
2135
+ "aria-labelledby": J,
2136
+ ...z
1458
2137
  }
1459
2138
  ),
1460
- B && /* @__PURE__ */ c("p", { className: "pkt-textinput__input-suffix", children: [
1461
- B,
1462
- g && /* @__PURE__ */ t(b, { className: "pkt-textinput__input-suffix-icon", name: g })
2139
+ j && /* @__PURE__ */ m("p", { className: "pkt-textinput__input-suffix", children: [
2140
+ j,
2141
+ v && /* @__PURE__ */ o(y, { className: "pkt-textinput__input-suffix-icon", name: v })
1463
2142
  ] }),
1464
- !B && g && /* @__PURE__ */ t(b, { className: "pkt-textinput__input-icon", name: g })
2143
+ !j && v && /* @__PURE__ */ o(y, { className: "pkt-textinput__input-icon", name: v })
1465
2144
  ] })
1466
2145
  }
1467
2146
  );
1468
2147
  }
1469
2148
  );
1470
2149
  export {
1471
- Et as PktAlert,
1472
- $t as PktBackLink,
1473
- ie as PktButton,
1474
- It as PktFooter,
1475
- Ft as PktFooterSimple,
1476
- Dt as PktHeader,
1477
- b as PktIcon,
1478
- Pt as PktInput,
1479
- ge as PktInputWrapper,
1480
- Tt as PktLinkCard,
1481
- At as PktMessagebox,
1482
- Ct as PktRadio,
1483
- Lt as PktRadioGroup,
1484
- Mt as PktTable,
1485
- Wt as PktTableData,
1486
- Bt as PktTableHeader,
1487
- St as PktTag,
1488
- Yt as PktTextarea,
1489
- Ut as PktTextinput
2150
+ dn as PktAlert,
2151
+ nr as PktBackLink,
2152
+ rr as PktBreadcrumbs,
2153
+ be as PktButton,
2154
+ ar as PktFooter,
2155
+ or as PktFooterSimple,
2156
+ lr as PktHeader,
2157
+ y as PktIcon,
2158
+ qn as PktInput,
2159
+ ze as PktInputWrapper,
2160
+ Xn as PktLinkCard,
2161
+ ir as PktMessagebox,
2162
+ Zn as PktRadio,
2163
+ sr as PktRadioGroup,
2164
+ cr as PktTable,
2165
+ ur as PktTableData,
2166
+ fr as PktTableHeader,
2167
+ er as PktTag,
2168
+ pr as PktTextarea,
2169
+ dr as PktTextinput
1490
2170
  };