@oslokommune/punkt-react 3.4.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,8 @@
1
- import re, { useState as dr, forwardRef as te } from "react";
2
- var Y = {}, pr = {
3
- get exports() {
4
- return Y;
5
- },
6
- set exports(i) {
7
- Y = i;
8
- }
9
- }, I = {};
1
+ import q, { forwardRef as z, useState as dt } from "react";
2
+ function mt(i) {
3
+ return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4
+ }
5
+ var te = { exports: {} }, W = {};
10
6
  /**
11
7
  * @license React
12
8
  * react-jsx-runtime.production.min.js
@@ -16,25 +12,25 @@ var Y = {}, pr = {
16
12
  * This source code is licensed under the MIT license found in the
17
13
  * LICENSE file in the root directory of this source tree.
18
14
  */
19
- var we;
20
- function vr() {
21
- if (we)
22
- return I;
23
- we = 1;
24
- var i = re, c = Symbol.for("react.element"), s = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, p = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
25
- function _(k, m, x) {
26
- var g, P = {}, w = null, L = null;
27
- x !== void 0 && (w = "" + x), m.key !== void 0 && (w = "" + m.key), m.ref !== void 0 && (L = m.ref);
28
- for (g in m)
29
- l.call(m, g) && !f.hasOwnProperty(g) && (P[g] = m[g]);
30
- if (k && k.defaultProps)
31
- for (g in m = k.defaultProps, m)
32
- P[g] === void 0 && (P[g] = m[g]);
33
- return { $$typeof: c, type: k, key: w, ref: L, props: P, _owner: p.current };
15
+ var Te;
16
+ function ht() {
17
+ if (Te)
18
+ return W;
19
+ Te = 1;
20
+ var i = q, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function v(g, _, x) {
22
+ var N, P = {}, T = null, C = null;
23
+ x !== void 0 && (T = "" + x), _.key !== void 0 && (T = "" + _.key), _.ref !== void 0 && (C = _.ref);
24
+ for (N in _)
25
+ c.call(_, N) && !n.hasOwnProperty(N) && (P[N] = _[N]);
26
+ if (g && g.defaultProps)
27
+ for (N in _ = g.defaultProps, _)
28
+ P[N] === void 0 && (P[N] = _[N]);
29
+ return { $$typeof: l, type: g, key: T, ref: C, props: P, _owner: d.current };
34
30
  }
35
- return I.Fragment = s, I.jsx = _, I.jsxs = _, I;
31
+ return W.Fragment = s, W.jsx = v, W.jsxs = v, W;
36
32
  }
37
- var W = {};
33
+ var Y = {};
38
34
  /**
39
35
  * @license React
40
36
  * react-jsx-runtime.development.js
@@ -44,54 +40,54 @@ var W = {};
44
40
  * This source code is licensed under the MIT license found in the
45
41
  * LICENSE file in the root directory of this source tree.
46
42
  */
47
- var Oe;
48
- function mr() {
49
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
50
- var i = re, c = Symbol.for("react.element"), s = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), k = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), ae = Symbol.iterator, Ce = "@@iterator";
51
- function je(e) {
43
+ var je;
44
+ function vt() {
45
+ return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
46
+ var i = q, l = Symbol.for("react.element"), s = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), ae = Symbol.iterator, Ce = "@@iterator";
47
+ function Fe(e) {
52
48
  if (e === null || typeof e != "object")
53
49
  return null;
54
- var r = ae && e[ae] || e[Ce];
55
- return typeof r == "function" ? r : null;
50
+ var t = ae && e[ae] || e[Ce];
51
+ return typeof t == "function" ? t : null;
56
52
  }
57
- var j = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
+ var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
54
  function E(e) {
59
55
  {
60
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
61
- t[a - 1] = arguments[a];
62
- Fe("error", e, t);
56
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
57
+ a[o - 1] = arguments[o];
58
+ $e("error", e, a);
63
59
  }
64
60
  }
65
- function Fe(e, r, t) {
61
+ function $e(e, t, a) {
66
62
  {
67
- var a = j.ReactDebugCurrentFrame, d = a.getStackAddendum();
68
- d !== "" && (r += "%s", t = t.concat([d]));
69
- var v = t.map(function(u) {
70
- return String(u);
63
+ var o = F.ReactDebugCurrentFrame, m = o.getStackAddendum();
64
+ m !== "" && (t += "%s", a = a.concat([m]));
65
+ var h = a.map(function(f) {
66
+ return String(f);
71
67
  });
72
- v.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, v);
68
+ h.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, h);
73
69
  }
74
70
  }
75
- var De = !1, Ae = !1, $e = !1, Ie = !1, We = !1, ne;
71
+ var De = !1, Ae = !1, Ie = !1, We = !1, Ye = !1, ne;
76
72
  ne = Symbol.for("react.module.reference");
77
- function Ye(e) {
78
- return !!(typeof e == "string" || typeof e == "function" || e === l || e === f || We || e === p || e === x || e === g || Ie || e === L || De || Ae || $e || typeof e == "object" && e !== null && (e.$$typeof === w || e.$$typeof === P || e.$$typeof === _ || e.$$typeof === k || e.$$typeof === m || // This needs to include all possible module reference object
73
+ function Be(e) {
74
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Ye || e === d || e === x || e === N || We || e === C || De || Ae || Ie || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === P || e.$$typeof === v || e.$$typeof === g || e.$$typeof === _ || // This needs to include all possible module reference object
79
75
  // types supported by any Flight configuration anywhere since
80
76
  // we don't know which Flight build this will end up being used
81
77
  // with.
82
78
  e.$$typeof === ne || e.getModuleId !== void 0));
83
79
  }
84
- function Le(e, r, t) {
85
- var a = e.displayName;
86
- if (a)
87
- return a;
88
- var d = r.displayName || r.name || "";
89
- return d !== "" ? t + "(" + d + ")" : t;
80
+ function Me(e, t, a) {
81
+ var o = e.displayName;
82
+ if (o)
83
+ return o;
84
+ var m = t.displayName || t.name || "";
85
+ return m !== "" ? a + "(" + m + ")" : a;
90
86
  }
91
87
  function ie(e) {
92
88
  return e.displayName || "Context";
93
89
  }
94
- function O(e) {
90
+ function j(e) {
95
91
  if (e == null)
96
92
  return null;
97
93
  if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -99,36 +95,36 @@ function mr() {
99
95
  if (typeof e == "string")
100
96
  return e;
101
97
  switch (e) {
102
- case l:
98
+ case c:
103
99
  return "Fragment";
104
100
  case s:
105
101
  return "Portal";
106
- case f:
102
+ case n:
107
103
  return "Profiler";
108
- case p:
104
+ case d:
109
105
  return "StrictMode";
110
106
  case x:
111
107
  return "Suspense";
112
- case g:
108
+ case N:
113
109
  return "SuspenseList";
114
110
  }
115
111
  if (typeof e == "object")
116
112
  switch (e.$$typeof) {
117
- case k:
118
- var r = e;
119
- return ie(r) + ".Consumer";
120
- case _:
113
+ case g:
121
114
  var t = e;
122
- return ie(t._context) + ".Provider";
123
- case m:
124
- return Le(e, e.render, "ForwardRef");
115
+ return ie(t) + ".Consumer";
116
+ case v:
117
+ var a = e;
118
+ return ie(a._context) + ".Provider";
119
+ case _:
120
+ return Me(e, e.render, "ForwardRef");
125
121
  case P:
126
- var a = e.displayName || null;
127
- return a !== null ? a : O(e.type) || "Memo";
128
- case w: {
129
- var d = e, v = d._payload, u = d._init;
122
+ var o = e.displayName || null;
123
+ return o !== null ? o : j(e.type) || "Memo";
124
+ case T: {
125
+ var m = e, h = m._payload, f = m._init;
130
126
  try {
131
- return O(u(v));
127
+ return j(f(h));
132
128
  } catch {
133
129
  return null;
134
130
  }
@@ -136,18 +132,18 @@ function mr() {
136
132
  }
137
133
  return null;
138
134
  }
139
- var C = Object.assign, A = 0, oe, se, le, ce, ue, fe, de;
140
- function pe() {
135
+ var O = Object.assign, A = 0, oe, le, se, ce, ue, fe, pe;
136
+ function de() {
141
137
  }
142
- pe.__reactDisabledLog = !0;
143
- function Be() {
138
+ de.__reactDisabledLog = !0;
139
+ function Le() {
144
140
  {
145
141
  if (A === 0) {
146
- oe = console.log, se = console.info, le = console.warn, ce = console.error, ue = console.group, fe = console.groupCollapsed, de = console.groupEnd;
142
+ oe = console.log, le = console.info, se = console.warn, ce = console.error, ue = console.group, fe = console.groupCollapsed, pe = console.groupEnd;
147
143
  var e = {
148
144
  configurable: !0,
149
145
  enumerable: !0,
150
- value: pe,
146
+ value: de,
151
147
  writable: !0
152
148
  };
153
149
  Object.defineProperties(console, {
@@ -163,7 +159,7 @@ function mr() {
163
159
  A++;
164
160
  }
165
161
  }
166
- function Me() {
162
+ function Ve() {
167
163
  {
168
164
  if (A--, A === 0) {
169
165
  var e = {
@@ -172,324 +168,324 @@ function mr() {
172
168
  writable: !0
173
169
  };
174
170
  Object.defineProperties(console, {
175
- log: C({}, e, {
171
+ log: O({}, e, {
176
172
  value: oe
177
173
  }),
178
- info: C({}, e, {
179
- value: se
180
- }),
181
- warn: C({}, e, {
174
+ info: O({}, e, {
182
175
  value: le
183
176
  }),
184
- error: C({}, e, {
177
+ warn: O({}, e, {
178
+ value: se
179
+ }),
180
+ error: O({}, e, {
185
181
  value: ce
186
182
  }),
187
- group: C({}, e, {
183
+ group: O({}, e, {
188
184
  value: ue
189
185
  }),
190
- groupCollapsed: C({}, e, {
186
+ groupCollapsed: O({}, e, {
191
187
  value: fe
192
188
  }),
193
- groupEnd: C({}, e, {
194
- value: de
189
+ groupEnd: O({}, e, {
190
+ value: pe
195
191
  })
196
192
  });
197
193
  }
198
194
  A < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
195
  }
200
196
  }
201
- var G = j.ReactCurrentDispatcher, J;
202
- function B(e, r, t) {
197
+ var G = F.ReactCurrentDispatcher, J;
198
+ function B(e, t, a) {
203
199
  {
204
200
  if (J === void 0)
205
201
  try {
206
202
  throw Error();
207
- } catch (d) {
208
- var a = d.stack.trim().match(/\n( *(at )?)/);
209
- J = a && a[1] || "";
203
+ } catch (m) {
204
+ var o = m.stack.trim().match(/\n( *(at )?)/);
205
+ J = o && o[1] || "";
210
206
  }
211
207
  return `
212
208
  ` + J + e;
213
209
  }
214
210
  }
215
- var z = !1, M;
211
+ var H = !1, M;
216
212
  {
217
- var Ve = typeof WeakMap == "function" ? WeakMap : Map;
218
- M = new Ve();
213
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
214
+ M = new Ue();
219
215
  }
220
- function ve(e, r) {
221
- if (!e || z)
216
+ function me(e, t) {
217
+ if (!e || H)
222
218
  return "";
223
219
  {
224
- var t = M.get(e);
225
- if (t !== void 0)
226
- return t;
220
+ var a = M.get(e);
221
+ if (a !== void 0)
222
+ return a;
227
223
  }
228
- var a;
229
- z = !0;
230
- var d = Error.prepareStackTrace;
224
+ var o;
225
+ H = !0;
226
+ var m = Error.prepareStackTrace;
231
227
  Error.prepareStackTrace = void 0;
232
- var v;
233
- v = G.current, G.current = null, Be();
228
+ var h;
229
+ h = G.current, G.current = null, Le();
234
230
  try {
235
- if (r) {
236
- var u = function() {
231
+ if (t) {
232
+ var f = function() {
237
233
  throw Error();
238
234
  };
239
- if (Object.defineProperty(u.prototype, "props", {
235
+ if (Object.defineProperty(f.prototype, "props", {
240
236
  set: function() {
241
237
  throw Error();
242
238
  }
243
239
  }), typeof Reflect == "object" && Reflect.construct) {
244
240
  try {
245
- Reflect.construct(u, []);
241
+ Reflect.construct(f, []);
246
242
  } catch (S) {
247
- a = S;
243
+ o = S;
248
244
  }
249
- Reflect.construct(e, [], u);
245
+ Reflect.construct(e, [], f);
250
246
  } else {
251
247
  try {
252
- u.call();
248
+ f.call();
253
249
  } catch (S) {
254
- a = S;
250
+ o = S;
255
251
  }
256
- e.call(u.prototype);
252
+ e.call(f.prototype);
257
253
  }
258
254
  } else {
259
255
  try {
260
256
  throw Error();
261
257
  } catch (S) {
262
- a = S;
258
+ o = S;
263
259
  }
264
260
  e();
265
261
  }
266
262
  } catch (S) {
267
- if (S && a && typeof S.stack == "string") {
268
- for (var o = S.stack.split(`
269
- `), R = a.stack.split(`
270
- `), h = o.length - 1, b = R.length - 1; h >= 1 && b >= 0 && o[h] !== R[b]; )
263
+ if (S && o && typeof S.stack == "string") {
264
+ for (var u = S.stack.split(`
265
+ `), R = o.stack.split(`
266
+ `), k = u.length - 1, b = R.length - 1; k >= 1 && b >= 0 && u[k] !== R[b]; )
271
267
  b--;
272
- for (; h >= 1 && b >= 0; h--, b--)
273
- if (o[h] !== R[b]) {
274
- if (h !== 1 || b !== 1)
268
+ for (; k >= 1 && b >= 0; k--, b--)
269
+ if (u[k] !== R[b]) {
270
+ if (k !== 1 || b !== 1)
275
271
  do
276
- if (h--, b--, b < 0 || o[h] !== R[b]) {
277
- var N = `
278
- ` + o[h].replace(" at new ", " at ");
279
- return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, N), N;
272
+ if (k--, b--, b < 0 || u[k] !== R[b]) {
273
+ var w = `
274
+ ` + u[k].replace(" at new ", " at ");
275
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, w), w;
280
276
  }
281
- while (h >= 1 && b >= 0);
277
+ while (k >= 1 && b >= 0);
282
278
  break;
283
279
  }
284
280
  }
285
281
  } finally {
286
- z = !1, G.current = v, Me(), Error.prepareStackTrace = d;
282
+ H = !1, G.current = h, Ve(), Error.prepareStackTrace = m;
287
283
  }
288
- var D = e ? e.displayName || e.name : "", Te = D ? B(D) : "";
289
- return typeof e == "function" && M.set(e, Te), Te;
284
+ var D = e ? e.displayName || e.name : "", Pe = D ? B(D) : "";
285
+ return typeof e == "function" && M.set(e, Pe), Pe;
290
286
  }
291
- function Ue(e, r, t) {
292
- return ve(e, !1);
287
+ function qe(e, t, a) {
288
+ return me(e, !1);
293
289
  }
294
- function qe(e) {
295
- var r = e.prototype;
296
- return !!(r && r.isReactComponent);
290
+ function ze(e) {
291
+ var t = e.prototype;
292
+ return !!(t && t.isReactComponent);
297
293
  }
298
- function V(e, r, t) {
294
+ function L(e, t, a) {
299
295
  if (e == null)
300
296
  return "";
301
297
  if (typeof e == "function")
302
- return ve(e, qe(e));
298
+ return me(e, ze(e));
303
299
  if (typeof e == "string")
304
300
  return B(e);
305
301
  switch (e) {
306
302
  case x:
307
303
  return B("Suspense");
308
- case g:
304
+ case N:
309
305
  return B("SuspenseList");
310
306
  }
311
307
  if (typeof e == "object")
312
308
  switch (e.$$typeof) {
313
- case m:
314
- return Ue(e.render);
309
+ case _:
310
+ return qe(e.render);
315
311
  case P:
316
- return V(e.type, r, t);
317
- case w: {
318
- var a = e, d = a._payload, v = a._init;
312
+ return L(e.type, t, a);
313
+ case T: {
314
+ var o = e, m = o._payload, h = o._init;
319
315
  try {
320
- return V(v(d), r, t);
316
+ return L(h(m), t, a);
321
317
  } catch {
322
318
  }
323
319
  }
324
320
  }
325
321
  return "";
326
322
  }
327
- var U = Object.prototype.hasOwnProperty, me = {}, he = j.ReactDebugCurrentFrame;
328
- function q(e) {
323
+ var V = Object.prototype.hasOwnProperty, he = {}, ve = F.ReactDebugCurrentFrame;
324
+ function U(e) {
329
325
  if (e) {
330
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
331
- he.setExtraStackFrame(t);
326
+ var t = e._owner, a = L(e.type, e._source, t ? t.type : null);
327
+ ve.setExtraStackFrame(a);
332
328
  } else
333
- he.setExtraStackFrame(null);
329
+ ve.setExtraStackFrame(null);
334
330
  }
335
- function Ge(e, r, t, a, d) {
331
+ function Ge(e, t, a, o, m) {
336
332
  {
337
- var v = Function.call.bind(U);
338
- for (var u in e)
339
- if (v(e, u)) {
340
- var o = void 0;
333
+ var h = Function.call.bind(V);
334
+ for (var f in e)
335
+ if (h(e, f)) {
336
+ var u = void 0;
341
337
  try {
342
- if (typeof e[u] != "function") {
343
- var R = Error((a || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ if (typeof e[f] != "function") {
339
+ var R = Error((o || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
340
  throw R.name = "Invariant Violation", R;
345
341
  }
346
- o = e[u](r, u, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
- } catch (h) {
348
- o = h;
342
+ u = e[f](t, f, o, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ } catch (k) {
344
+ u = k;
349
345
  }
350
- o && !(o instanceof Error) && (q(d), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, u, typeof o), q(null)), o instanceof Error && !(o.message in me) && (me[o.message] = !0, q(d), E("Failed %s type: %s", t, o.message), q(null));
346
+ u && !(u instanceof Error) && (U(m), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", o || "React class", a, f, typeof u), U(null)), u instanceof Error && !(u.message in he) && (he[u.message] = !0, U(m), E("Failed %s type: %s", a, u.message), U(null));
351
347
  }
352
348
  }
353
349
  }
354
350
  var Je = Array.isArray;
355
- function H(e) {
351
+ function K(e) {
356
352
  return Je(e);
357
353
  }
358
- function ze(e) {
354
+ function He(e) {
359
355
  {
360
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
361
- return t;
356
+ var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
+ return a;
362
358
  }
363
359
  }
364
- function He(e) {
360
+ function Ke(e) {
365
361
  try {
366
- return be(e), !1;
362
+ return _e(e), !1;
367
363
  } catch {
368
364
  return !0;
369
365
  }
370
366
  }
371
- function be(e) {
367
+ function _e(e) {
372
368
  return "" + e;
373
369
  }
374
- function _e(e) {
375
- if (He(e))
376
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), be(e);
370
+ function ke(e) {
371
+ if (Ke(e))
372
+ return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), _e(e);
377
373
  }
378
- var $ = j.ReactCurrentOwner, Ke = {
374
+ var I = F.ReactCurrentOwner, Xe = {
379
375
  key: !0,
380
376
  ref: !0,
381
377
  __self: !0,
382
378
  __source: !0
383
- }, ke, ge, K;
384
- K = {};
385
- function Xe(e) {
386
- if (U.call(e, "ref")) {
387
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
388
- if (r && r.isReactWarning)
379
+ }, be, ge, X;
380
+ X = {};
381
+ function Ze(e) {
382
+ if (V.call(e, "ref")) {
383
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
384
+ if (t && t.isReactWarning)
389
385
  return !1;
390
386
  }
391
387
  return e.ref !== void 0;
392
388
  }
393
- function Ze(e) {
394
- if (U.call(e, "key")) {
395
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
396
- if (r && r.isReactWarning)
389
+ function Qe(e) {
390
+ if (V.call(e, "key")) {
391
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
392
+ if (t && t.isReactWarning)
397
393
  return !1;
398
394
  }
399
395
  return e.key !== void 0;
400
396
  }
401
- function Qe(e, r) {
402
- if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
403
- var t = O($.current.type);
404
- K[t] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O($.current.type), e.ref), K[t] = !0);
397
+ function et(e, t) {
398
+ if (typeof e.ref == "string" && I.current && t && I.current.stateNode !== t) {
399
+ var a = j(I.current.type);
400
+ X[a] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(I.current.type), e.ref), X[a] = !0);
405
401
  }
406
402
  }
407
- function er(e, r) {
403
+ function tt(e, t) {
408
404
  {
409
- var t = function() {
410
- ke || (ke = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
405
+ var a = function() {
406
+ be || (be = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
411
407
  };
412
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
413
- get: t,
408
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
409
+ get: a,
414
410
  configurable: !0
415
411
  });
416
412
  }
417
413
  }
418
- function rr(e, r) {
414
+ function rt(e, t) {
419
415
  {
420
- var t = function() {
421
- ge || (ge = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
416
+ var a = function() {
417
+ ge || (ge = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
422
418
  };
423
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
424
- get: t,
419
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
+ get: a,
425
421
  configurable: !0
426
422
  });
427
423
  }
428
424
  }
429
- var tr = function(e, r, t, a, d, v, u) {
430
- var o = {
425
+ var at = function(e, t, a, o, m, h, f) {
426
+ var u = {
431
427
  // This tag allows us to uniquely identify this as a React Element
432
- $$typeof: c,
428
+ $$typeof: l,
433
429
  // Built-in properties that belong on the element
434
430
  type: e,
435
- key: r,
436
- ref: t,
437
- props: u,
431
+ key: t,
432
+ ref: a,
433
+ props: f,
438
434
  // Record the component responsible for creating this element.
439
- _owner: v
435
+ _owner: h
440
436
  };
441
- return o._store = {}, Object.defineProperty(o._store, "validated", {
437
+ return u._store = {}, Object.defineProperty(u._store, "validated", {
442
438
  configurable: !1,
443
439
  enumerable: !1,
444
440
  writable: !0,
445
441
  value: !1
446
- }), Object.defineProperty(o, "_self", {
442
+ }), Object.defineProperty(u, "_self", {
447
443
  configurable: !1,
448
444
  enumerable: !1,
449
445
  writable: !1,
450
- value: a
451
- }), Object.defineProperty(o, "_source", {
446
+ value: o
447
+ }), Object.defineProperty(u, "_source", {
452
448
  configurable: !1,
453
449
  enumerable: !1,
454
450
  writable: !1,
455
- value: d
456
- }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
451
+ value: m
452
+ }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
457
453
  };
458
- function ar(e, r, t, a, d) {
454
+ function nt(e, t, a, o, m) {
459
455
  {
460
- var v, u = {}, o = null, R = null;
461
- t !== void 0 && (_e(t), o = "" + t), Ze(r) && (_e(r.key), o = "" + r.key), Xe(r) && (R = r.ref, Qe(r, d));
462
- for (v in r)
463
- U.call(r, v) && !Ke.hasOwnProperty(v) && (u[v] = r[v]);
456
+ var h, f = {}, u = null, R = null;
457
+ a !== void 0 && (ke(a), u = "" + a), Qe(t) && (ke(t.key), u = "" + t.key), Ze(t) && (R = t.ref, et(t, m));
458
+ for (h in t)
459
+ V.call(t, h) && !Xe.hasOwnProperty(h) && (f[h] = t[h]);
464
460
  if (e && e.defaultProps) {
465
- var h = e.defaultProps;
466
- for (v in h)
467
- u[v] === void 0 && (u[v] = h[v]);
461
+ var k = e.defaultProps;
462
+ for (h in k)
463
+ f[h] === void 0 && (f[h] = k[h]);
468
464
  }
469
- if (o || R) {
465
+ if (u || R) {
470
466
  var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
- o && er(u, b), R && rr(u, b);
467
+ u && tt(f, b), R && rt(f, b);
472
468
  }
473
- return tr(e, o, R, d, a, $.current, u);
469
+ return at(e, u, R, m, o, I.current, f);
474
470
  }
475
471
  }
476
- var X = j.ReactCurrentOwner, ye = j.ReactDebugCurrentFrame;
477
- function F(e) {
472
+ var Z = F.ReactCurrentOwner, Ne = F.ReactDebugCurrentFrame;
473
+ function $(e) {
478
474
  if (e) {
479
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
480
- ye.setExtraStackFrame(t);
475
+ var t = e._owner, a = L(e.type, e._source, t ? t.type : null);
476
+ Ne.setExtraStackFrame(a);
481
477
  } else
482
- ye.setExtraStackFrame(null);
478
+ Ne.setExtraStackFrame(null);
483
479
  }
484
- var Z;
485
- Z = !1;
486
- function Q(e) {
487
- return typeof e == "object" && e !== null && e.$$typeof === c;
480
+ var Q;
481
+ Q = !1;
482
+ function ee(e) {
483
+ return typeof e == "object" && e !== null && e.$$typeof === l;
488
484
  }
489
- function Ee() {
485
+ function ye() {
490
486
  {
491
- if (X.current) {
492
- var e = O(X.current.type);
487
+ if (Z.current) {
488
+ var e = j(Z.current.type);
493
489
  if (e)
494
490
  return `
495
491
 
@@ -498,225 +494,326 @@ Check the render method of \`` + e + "`.";
498
494
  return "";
499
495
  }
500
496
  }
501
- function nr(e) {
497
+ function it(e) {
502
498
  {
503
499
  if (e !== void 0) {
504
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
500
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
505
501
  return `
506
502
 
507
- Check your code at ` + r + ":" + t + ".";
503
+ Check your code at ` + t + ":" + a + ".";
508
504
  }
509
505
  return "";
510
506
  }
511
507
  }
512
- var Re = {};
513
- function ir(e) {
508
+ var Ee = {};
509
+ function ot(e) {
514
510
  {
515
- var r = Ee();
516
- if (!r) {
517
- var t = typeof e == "string" ? e : e.displayName || e.name;
518
- t && (r = `
511
+ var t = ye();
512
+ if (!t) {
513
+ var a = typeof e == "string" ? e : e.displayName || e.name;
514
+ a && (t = `
519
515
 
520
- Check the top-level render call using <` + t + ">.");
516
+ Check the top-level render call using <` + a + ">.");
521
517
  }
522
- return r;
518
+ return t;
523
519
  }
524
520
  }
525
- function xe(e, r) {
521
+ function Re(e, t) {
526
522
  {
527
523
  if (!e._store || e._store.validated || e.key != null)
528
524
  return;
529
525
  e._store.validated = !0;
530
- var t = ir(r);
531
- if (Re[t])
526
+ var a = ot(t);
527
+ if (Ee[a])
532
528
  return;
533
- Re[t] = !0;
534
- var a = "";
535
- e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + O(e._owner.type) + "."), F(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), F(null);
529
+ Ee[a] = !0;
530
+ var o = "";
531
+ e && e._owner && e._owner !== Z.current && (o = " It was passed a child from " + j(e._owner.type) + "."), $(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, o), $(null);
536
532
  }
537
533
  }
538
- function Ne(e, r) {
534
+ function xe(e, t) {
539
535
  {
540
536
  if (typeof e != "object")
541
537
  return;
542
- if (H(e))
543
- for (var t = 0; t < e.length; t++) {
544
- var a = e[t];
545
- Q(a) && xe(a, r);
538
+ if (K(e))
539
+ for (var a = 0; a < e.length; a++) {
540
+ var o = e[a];
541
+ ee(o) && Re(o, t);
546
542
  }
547
- else if (Q(e))
543
+ else if (ee(e))
548
544
  e._store && (e._store.validated = !0);
549
545
  else if (e) {
550
- var d = je(e);
551
- if (typeof d == "function" && d !== e.entries)
552
- for (var v = d.call(e), u; !(u = v.next()).done; )
553
- Q(u.value) && xe(u.value, r);
546
+ var m = Fe(e);
547
+ if (typeof m == "function" && m !== e.entries)
548
+ for (var h = m.call(e), f; !(f = h.next()).done; )
549
+ ee(f.value) && Re(f.value, t);
554
550
  }
555
551
  }
556
552
  }
557
- function or(e) {
553
+ function lt(e) {
558
554
  {
559
- var r = e.type;
560
- if (r == null || typeof r == "string")
555
+ var t = e.type;
556
+ if (t == null || typeof t == "string")
561
557
  return;
562
- var t;
563
- if (typeof r == "function")
564
- t = r.propTypes;
565
- else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
558
+ var a;
559
+ if (typeof t == "function")
560
+ a = t.propTypes;
561
+ else if (typeof t == "object" && (t.$$typeof === _ || // Note: Memo only checks outer props here.
566
562
  // Inner props are checked in the reconciler.
567
- r.$$typeof === P))
568
- t = r.propTypes;
563
+ t.$$typeof === P))
564
+ a = t.propTypes;
569
565
  else
570
566
  return;
571
- if (t) {
572
- var a = O(r);
573
- Ge(t, e.props, "prop", a, e);
574
- } else if (r.PropTypes !== void 0 && !Z) {
575
- Z = !0;
576
- var d = O(r);
577
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
567
+ if (a) {
568
+ var o = j(t);
569
+ Ge(a, e.props, "prop", o, e);
570
+ } else if (t.PropTypes !== void 0 && !Q) {
571
+ Q = !0;
572
+ var m = j(t);
573
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
578
574
  }
579
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
575
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
576
  }
581
577
  }
582
- function sr(e) {
578
+ function st(e) {
583
579
  {
584
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
585
- var a = r[t];
586
- if (a !== "children" && a !== "key") {
587
- F(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), F(null);
580
+ for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
581
+ var o = t[a];
582
+ if (o !== "children" && o !== "key") {
583
+ $(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), $(null);
588
584
  break;
589
585
  }
590
586
  }
591
- e.ref !== null && (F(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
587
+ e.ref !== null && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
592
588
  }
593
589
  }
594
- function Pe(e, r, t, a, d, v) {
590
+ function we(e, t, a, o, m, h) {
595
591
  {
596
- var u = Ye(e);
597
- if (!u) {
598
- var o = "";
599
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
- var R = nr(d);
601
- R ? o += R : o += Ee();
602
- var h;
603
- e === null ? h = "null" : H(e) ? h = "array" : e !== void 0 && e.$$typeof === c ? (h = "<" + (O(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, o);
592
+ var f = Be(e);
593
+ if (!f) {
594
+ var u = "";
595
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " 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 R = it(m);
597
+ R ? u += R : u += ye();
598
+ var k;
599
+ e === null ? k = "null" : K(e) ? k = "array" : e !== void 0 && e.$$typeof === l ? (k = "<" + (j(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : k = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, u);
604
600
  }
605
- var b = ar(e, r, t, d, v);
601
+ var b = nt(e, t, a, m, h);
606
602
  if (b == null)
607
603
  return b;
608
- if (u) {
609
- var N = r.children;
610
- if (N !== void 0)
611
- if (a)
612
- if (H(N)) {
613
- for (var D = 0; D < N.length; D++)
614
- Ne(N[D], e);
615
- Object.freeze && Object.freeze(N);
604
+ if (f) {
605
+ var w = t.children;
606
+ if (w !== void 0)
607
+ if (o)
608
+ if (K(w)) {
609
+ for (var D = 0; D < w.length; D++)
610
+ xe(w[D], e);
611
+ Object.freeze && Object.freeze(w);
616
612
  } else
617
613
  E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
614
  else
619
- Ne(N, e);
615
+ xe(w, e);
620
616
  }
621
- return e === l ? sr(b) : or(b), b;
617
+ return e === c ? st(b) : lt(b), b;
622
618
  }
623
619
  }
624
- function lr(e, r, t) {
625
- return Pe(e, r, t, !0);
620
+ function ct(e, t, a) {
621
+ return we(e, t, a, !0);
626
622
  }
627
- function cr(e, r, t) {
628
- return Pe(e, r, t, !1);
623
+ function ut(e, t, a) {
624
+ return we(e, t, a, !1);
629
625
  }
630
- var ur = cr, fr = lr;
631
- W.Fragment = l, W.jsx = ur, W.jsxs = fr;
632
- }()), W;
626
+ var ft = ut, pt = ct;
627
+ Y.Fragment = c, Y.jsx = ft, Y.jsxs = pt;
628
+ }()), Y;
633
629
  }
634
- (function(i) {
635
- process.env.NODE_ENV === "production" ? i.exports = vr() : i.exports = mr();
636
- })(pr);
637
- const Se = Y.Fragment, n = Y.jsx, y = Y.jsxs, T = ({
630
+ process.env.NODE_ENV === "production" ? te.exports = ht() : te.exports = vt();
631
+ var re = te.exports;
632
+ const Se = re.Fragment, r = re.jsx, p = re.jsxs, y = ({
638
633
  className: i,
639
- name: c,
634
+ name: l,
640
635
  viewBox: s = "0 0 32 32",
641
- ...l
642
- }) => {
643
- const p = [i].filter(Boolean).join(" ");
644
- return /* @__PURE__ */ n("svg", { ...l, className: p, viewBox: s, children: /* @__PURE__ */ n("use", { href: `#${c}` }) });
645
- }, xr = ({
646
- children: i,
647
- className: c,
648
- skin: s = "info",
649
- closeAlert: l = !1,
650
- onClose: p,
651
- title: f,
652
- date: _,
653
- ariaLive: k = "polite",
654
- ...m
636
+ ...c
655
637
  }) => {
656
- const x = [c, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [g, P] = dr(!0), w = () => {
657
- P(!1), p && p();
658
- };
659
- return g ? /* @__PURE__ */ y("div", { ...m, className: x, "aria-live": k, children: [
660
- /* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(T, { name: s === "info" ? "alert-information" : `alert-${s}` }) }),
661
- l && /* @__PURE__ */ n("div", { className: "pkt-alert__close", children: /* @__PURE__ */ n(
662
- "button",
663
- {
664
- className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
665
- tabIndex: 0,
666
- "aria-label": "close",
667
- onClick: w,
668
- children: /* @__PURE__ */ n(T, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
669
- }
670
- ) }),
671
- f && /* @__PURE__ */ n("div", { className: "pkt-alert__title", children: f }),
672
- /* @__PURE__ */ n("div", { className: "pkt-alert__text", children: i }),
673
- _ && /* @__PURE__ */ y("div", { className: "pkt-alert__date", children: [
674
- "Sist oppdatert: ",
675
- _
676
- ] })
677
- ] }) : null;
678
- }, hr = te(
638
+ const d = [i].filter(Boolean).join(" ");
639
+ return /* @__PURE__ */ r("svg", { ...c, className: d, viewBox: s, children: /* @__PURE__ */ r("use", { href: `#${l}` }) });
640
+ }, xt = z(
679
641
  ({
680
642
  children: i,
681
- className: c,
643
+ className: l,
644
+ skin: s = "info",
645
+ closeAlert: c = !1,
646
+ onClose: d,
647
+ title: n,
648
+ date: v,
649
+ ariaLive: g = "polite",
650
+ ..._
651
+ }, x) => {
652
+ const N = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [P, T] = dt(!0), C = () => {
653
+ T(!1), d && d();
654
+ };
655
+ return P ? /* @__PURE__ */ p("div", { ..._, className: N, "aria-live": g, ref: x, children: [
656
+ /* @__PURE__ */ r("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ r(y, { name: s === "info" ? "alert-information" : `alert-${s}` }) }),
657
+ c && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
658
+ "button",
659
+ {
660
+ className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
661
+ tabIndex: 0,
662
+ "aria-label": "close",
663
+ onClick: C,
664
+ children: /* @__PURE__ */ r(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
665
+ }
666
+ ) }),
667
+ n && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: n }),
668
+ /* @__PURE__ */ r("div", { className: "pkt-alert__text", children: i }),
669
+ v && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
670
+ "Sist oppdatert: ",
671
+ v
672
+ ] })
673
+ ] }) : null;
674
+ }
675
+ ), _t = z(
676
+ ({
677
+ children: i,
678
+ className: l,
682
679
  iconName: s = "user",
683
- secondIconName: l = "user",
684
- size: p = "medium",
685
- skin: f = "primary",
686
- type: _ = "button",
687
- variant: k = "label-only",
688
- ...m
680
+ secondIconName: c = "user",
681
+ size: d = "medium",
682
+ skin: n = "primary",
683
+ type: v = "button",
684
+ variant: g = "label-only",
685
+ ..._
689
686
  }, x) => {
690
- const g = [
691
- c,
687
+ const N = [
688
+ l,
692
689
  "pkt-btn",
693
- p && `pkt-btn--${p}`,
694
- f && `pkt-btn--${f}`,
695
- k && `pkt-btn--${k}`
690
+ d && `pkt-btn--${d}`,
691
+ n && `pkt-btn--${n}`,
692
+ g && `pkt-btn--${g}`
696
693
  ].filter(Boolean).join(" ");
697
- return /* @__PURE__ */ y("button", { ...m, className: g, type: _, ref: x, children: [
698
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: s }),
699
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: i }),
700
- k === "icons-right-and-left" && /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: l })
694
+ return /* @__PURE__ */ p("button", { ..._, className: N, type: v, ref: x, children: [
695
+ /* @__PURE__ */ r(y, { className: "pkt-btn__icon", name: s }),
696
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: i }),
697
+ g === "icons-right-and-left" && /* @__PURE__ */ r(y, { className: "pkt-btn__icon", name: c })
701
698
  ] });
702
699
  }
703
700
  );
704
- hr.displayName = "PktButton";
705
- const Nr = ({
701
+ _t.displayName = "PktButton";
702
+ const wt = ({
703
+ links: i = []
704
+ }) => /* @__PURE__ */ r("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
705
+ i.map((l, s) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
706
+ "a",
707
+ {
708
+ className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
709
+ href: l.href,
710
+ children: [
711
+ /* @__PURE__ */ r(
712
+ y,
713
+ {
714
+ className: "pkt-footer-simple__link-icon",
715
+ name: "chevron-right"
716
+ }
717
+ ),
718
+ l.text
719
+ ]
720
+ }
721
+ ) }, s)),
722
+ /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
723
+ /* @__PURE__ */ r(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
724
+ "Personvern og informasjonskapsler"
725
+ ] }) }),
726
+ /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
727
+ /* @__PURE__ */ r(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
728
+ "Tilgjengelighet"
729
+ ] }) })
730
+ ] }) }) }), Pt = ({ columnOne: i, columnTwo: l, socialLinks: s }) => {
731
+ var c, d;
732
+ return /* @__PURE__ */ r("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
733
+ /* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
734
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
735
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: i.title }),
736
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
737
+ i.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: i.text }),
738
+ (c = i.links) == null ? void 0 : c.map((n, v) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
739
+ "a",
740
+ {
741
+ className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
742
+ href: n.href,
743
+ children: [
744
+ /* @__PURE__ */ r(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
745
+ n.text
746
+ ]
747
+ }
748
+ ) }, `links-${v}`))
749
+ ] })
750
+ ] }),
751
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
752
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: l.title }),
753
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
754
+ l.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: l.text }),
755
+ (d = l.links) == null ? void 0 : d.map((n, v) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
756
+ "a",
757
+ {
758
+ className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
759
+ href: n.href,
760
+ children: [
761
+ /* @__PURE__ */ r(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
762
+ n.text
763
+ ]
764
+ }
765
+ ) }, `links-${v}`))
766
+ ] })
767
+ ] }),
768
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
769
+ /* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
770
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
771
+ /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
772
+ "a",
773
+ {
774
+ className: "pkt-footer__link",
775
+ href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
776
+ children: [
777
+ /* @__PURE__ */ r(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
778
+ "Personvern og informasjonskapsler"
779
+ ]
780
+ }
781
+ ) }),
782
+ /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
783
+ /* @__PURE__ */ r(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
784
+ "Tilgjengelighet"
785
+ ] }) })
786
+ ] })
787
+ ] })
788
+ ] }),
789
+ s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
790
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((n) => n.language).map((n, v) => /* @__PURE__ */ r("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ r("a", { href: n.href, "aria-label": `til ${n.language} versjon av nettsiden`, children: n.language }) }, `sociallinks-language-${v}`)) }),
791
+ /* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((n) => n.iconName).map((n, v) => /* @__PURE__ */ r(q.Fragment, { children: /* @__PURE__ */ r(
792
+ "a",
793
+ {
794
+ href: n.href,
795
+ "aria-label": `til ${n.iconName}`,
796
+ className: "pkt-footer__social-icon-link",
797
+ children: /* @__PURE__ */ r("svg", { className: "pkt-footer__social-icon", viewBox: "0 0 32 32", "aria-hidden": "true", children: /* @__PURE__ */ r("use", { href: `#${n.iconName}` }) })
798
+ }
799
+ ) }, `sociallinks-${v}`)) })
800
+ ] })
801
+ ] }) });
802
+ }, Tt = ({
706
803
  className: i,
707
- logoLink: c = "https://www.oslo.kommune.no/",
804
+ logoLink: l = "https://www.oslo.kommune.no/",
708
805
  isLoggedIn: s = !1,
709
- representing: l = "",
710
- canChangeRepresentation: p = !1,
711
- showLogInButton: f = !0,
712
- onLogIn: _,
713
- onLogOut: k,
714
- onChangeRepresentation: m
806
+ representing: c = "",
807
+ canChangeRepresentation: d = !1,
808
+ showLogInButton: n = !0,
809
+ onLogIn: v,
810
+ onLogOut: g,
811
+ onChangeRepresentation: _
715
812
  }) => {
716
813
  const x = [i, "pkt-header"].filter(Boolean).join(" ");
717
- return /* @__PURE__ */ y("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
718
- /* @__PURE__ */ n("div", { className: "pkt-header__logo", children: /* @__PURE__ */ n("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: c, children: /* @__PURE__ */ n(
719
- T,
814
+ return /* @__PURE__ */ p("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
815
+ /* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: l, children: /* @__PURE__ */ r(
816
+ y,
720
817
  {
721
818
  name: "oslologo",
722
819
  className: "pkt-header__logo-svg",
@@ -724,105 +821,98 @@ const Nr = ({
724
821
  "aria-hidden": "true"
725
822
  }
726
823
  ) }) }),
727
- /* @__PURE__ */ y("div", { className: "pkt-header__actions", children: [
728
- s && p && /* @__PURE__ */ y(
824
+ /* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
825
+ s && d && /* @__PURE__ */ p(
729
826
  "button",
730
827
  {
731
828
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
732
- "aria-label": `Bytt bruker fra ${l}`,
733
- onClick: m,
829
+ "aria-label": `Bytt bruker fra ${c}`,
830
+ onClick: _,
734
831
  children: [
735
- /* @__PURE__ */ n(T, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
736
- /* @__PURE__ */ n("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
737
- /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
738
- /* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: l })
832
+ /* @__PURE__ */ r(y, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
833
+ /* @__PURE__ */ r("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
834
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
835
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: c })
739
836
  ]
740
837
  }
741
838
  ),
742
- s && !p && /* @__PURE__ */ y("div", { className: "pkt-header__action", children: [
743
- /* @__PURE__ */ n("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: l }) }),
744
- /* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(T, { name: "user" }) })
839
+ s && !d && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
840
+ /* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: c }) }),
841
+ /* @__PURE__ */ r("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ r(y, { name: "user" }) })
745
842
  ] }),
746
- f && s && /* @__PURE__ */ y(
843
+ n && s && /* @__PURE__ */ p(
747
844
  "button",
748
845
  {
749
846
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
750
847
  "aria-label": "Logg ut",
751
- onClick: k,
848
+ onClick: g,
752
849
  children: [
753
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
754
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg ut" })
850
+ /* @__PURE__ */ r(y, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
851
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg ut" })
755
852
  ]
756
853
  }
757
854
  ),
758
- f && !s && /* @__PURE__ */ y(
855
+ n && !s && /* @__PURE__ */ p(
759
856
  "button",
760
857
  {
761
858
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
762
859
  "aria-label": "Logg inn",
763
- onClick: _,
860
+ onClick: v,
764
861
  children: [
765
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: "user" }),
766
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg inn" })
862
+ /* @__PURE__ */ r(y, { className: "pkt-btn__icon", name: "user" }),
863
+ /* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
767
864
  ]
768
865
  }
769
866
  )
770
867
  ] })
771
868
  ] });
772
- }, br = re.forwardRef(
773
- ({ label: i, id: c, children: s, ...l }, p) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
774
- /* @__PURE__ */ n("label", { htmlFor: c, className: "pkt-form-label", children: i }),
775
- /* @__PURE__ */ n("input", { className: "pkt-form-input", id: c, ...l, ref: p }),
869
+ }, kt = q.forwardRef(
870
+ ({ label: i, id: l, children: s, ...c }, d) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
871
+ /* @__PURE__ */ r("label", { htmlFor: l, className: "pkt-form-label", children: i }),
872
+ /* @__PURE__ */ r("input", { className: "pkt-form-input", id: l, ...c, ref: d }),
776
873
  s
777
874
  ] })
778
875
  );
779
- br.displayName = "PktInput";
780
- const Pr = ({
876
+ kt.displayName = "PktInput";
877
+ const jt = ({
781
878
  children: i,
782
- className: c,
879
+ className: l,
783
880
  iconName: s = "user",
784
- skin: l = "",
785
- href: p = "#",
786
- title: f
881
+ skin: c = "",
882
+ href: d = "#",
883
+ title: n
787
884
  }) => {
788
- const _ = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
789
- return /* @__PURE__ */ y("a", { href: p, className: `pkt-linkcard pkt-link ${_}`, children: [
790
- /* @__PURE__ */ n(T, { className: "pkt-link__icon", name: s }),
791
- /* @__PURE__ */ y("div", { className: "pkt-linkcard__content", children: [
792
- /* @__PURE__ */ n("div", { className: "pkt-linkcard__title", children: f }),
793
- /* @__PURE__ */ n("div", { className: "pkt-linkcard__text", children: i })
885
+ const v = [l, "pkt-linkcard", c && `pkt-linkcard--${c}`].filter(Boolean).join(" ");
886
+ return /* @__PURE__ */ p("a", { href: d, className: `pkt-linkcard pkt-link ${v}`, children: [
887
+ /* @__PURE__ */ r(y, { className: "pkt-link__icon", name: s }),
888
+ /* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
889
+ /* @__PURE__ */ r("div", { className: "pkt-linkcard__title", children: n }),
890
+ /* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: i })
794
891
  ] })
795
892
  ] });
796
- }, Tr = ({
893
+ }, St = ({
797
894
  children: i,
798
- skin: c = "beige",
895
+ skin: l = "beige",
799
896
  title: s,
800
- ...l
897
+ ...c
801
898
  }) => {
802
- const p = ["pkt-messagebox", c && `pkt-messagebox--${c}`].filter(Boolean).join(" ");
803
- return /* @__PURE__ */ y("div", { ...l, className: p, children: [
804
- /* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children: s }),
805
- /* @__PURE__ */ n("div", { className: "pkt-messagebox__text", children: i })
899
+ const d = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
900
+ return /* @__PURE__ */ p("div", { ...c, className: d, children: [
901
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: s }),
902
+ /* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: i })
806
903
  ] });
807
- }, _r = te(
808
- ({ id: i, name: c, label: s, value: l, ...p }, f) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
809
- /* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: i, name: c, value: l, ref: f, ...p }),
810
- /* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: i, children: s })
904
+ }, bt = z(
905
+ ({ id: i, name: l, label: s, value: c, ...d }, n) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
906
+ /* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: i, name: l, value: c, ref: n, ...d }),
907
+ /* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: i, children: s })
811
908
  ] })
812
909
  );
813
- _r.displayName = "PktRadio";
814
- const wr = ({ label: i, children: c }) => /* @__PURE__ */ y(Se, { children: [
815
- /* @__PURE__ */ n("p", { children: i }),
816
- /* @__PURE__ */ n("div", { className: "pkt-form-group", children: c })
910
+ bt.displayName = "PktRadio";
911
+ const Ot = ({ label: i, children: l }) => /* @__PURE__ */ p(Se, { children: [
912
+ /* @__PURE__ */ r("p", { children: i }),
913
+ /* @__PURE__ */ r("div", { className: "pkt-form-group", children: l })
817
914
  ] });
818
- var ee = {}, kr = {
819
- get exports() {
820
- return ee;
821
- },
822
- set exports(i) {
823
- ee = i;
824
- }
825
- };
915
+ var Oe = { exports: {} };
826
916
  /*!
827
917
  Copyright (c) 2018 Jed Watson.
828
918
  Licensed under the MIT License (MIT), see
@@ -830,67 +920,70 @@ var ee = {}, kr = {
830
920
  */
831
921
  (function(i) {
832
922
  (function() {
833
- var c = {}.hasOwnProperty;
923
+ var l = {}.hasOwnProperty;
834
924
  function s() {
835
- for (var l = [], p = 0; p < arguments.length; p++) {
836
- var f = arguments[p];
837
- if (f) {
838
- var _ = typeof f;
839
- if (_ === "string" || _ === "number")
840
- l.push(f);
841
- else if (Array.isArray(f)) {
842
- if (f.length) {
843
- var k = s.apply(null, f);
844
- k && l.push(k);
925
+ for (var c = [], d = 0; d < arguments.length; d++) {
926
+ var n = arguments[d];
927
+ if (n) {
928
+ var v = typeof n;
929
+ if (v === "string" || v === "number")
930
+ c.push(n);
931
+ else if (Array.isArray(n)) {
932
+ if (n.length) {
933
+ var g = s.apply(null, n);
934
+ g && c.push(g);
845
935
  }
846
- } else if (_ === "object") {
847
- if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
848
- l.push(f.toString());
936
+ } else if (v === "object") {
937
+ if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
938
+ c.push(n.toString());
849
939
  continue;
850
940
  }
851
- for (var m in f)
852
- c.call(f, m) && f[m] && l.push(m);
941
+ for (var _ in n)
942
+ l.call(n, _) && n[_] && c.push(_);
853
943
  }
854
944
  }
855
945
  }
856
- return l.join(" ");
946
+ return c.join(" ");
857
947
  }
858
948
  i.exports ? (s.default = s, i.exports = s) : window.classNames = s;
859
949
  })();
860
- })(kr);
861
- const gr = ee, yr = ({ isResponsive: i, children: c }) => i ? /* @__PURE__ */ n("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ n(Se, { children: c }), Or = ({
950
+ })(Oe);
951
+ var gt = Oe.exports;
952
+ const Nt = /* @__PURE__ */ mt(gt), yt = ({ isResponsive: i, children: l }) => i ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ r(Se, { children: l }), Ct = ({
862
953
  isResponsive: i,
863
- modifiers: { info: c = !1, success: s = !1, strong: l = !1, shadow: p = !1 } = {},
864
- children: f
865
- }) => /* @__PURE__ */ n(yr, { isResponsive: i, children: /* @__PURE__ */ n(
954
+ modifiers: { info: l = !1, success: s = !1, strong: c = !1, shadow: d = !1 } = {},
955
+ children: n
956
+ }) => /* @__PURE__ */ r(yt, { isResponsive: i, children: /* @__PURE__ */ r(
866
957
  "table",
867
958
  {
868
- className: gr("pkt-table", {
869
- "pkt-table--info": c,
959
+ className: Nt("pkt-table", {
960
+ "pkt-table--info": l,
870
961
  "pkt-table--success": s,
871
- "pkt-table--strong": l,
872
- "pkt-table--shadow": p
962
+ "pkt-table--strong": c,
963
+ "pkt-table--shadow": d
873
964
  }),
874
- children: f
965
+ children: n
875
966
  }
876
- ) }), Sr = ({ children: i }) => /* @__PURE__ */ n("td", { className: "pkt-table__th", children: i }), Cr = ({ children: i }) => /* @__PURE__ */ n("th", { className: "pkt-table__th", children: i }), Er = te(
877
- ({ id: i, label: c, ...s }, l) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
878
- /* @__PURE__ */ n("label", { htmlFor: i, className: "pkt-form-label", children: c }),
879
- /* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id: i, ref: l, ...s })
967
+ ) }), Ft = ({ children: i }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: i }), $t = ({ children: i }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: i }), Et = z(
968
+ ({ id: i, label: l, ...s }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
969
+ /* @__PURE__ */ r("label", { htmlFor: i, className: "pkt-form-label", children: l }),
970
+ /* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: i, ref: c, ...s })
880
971
  ] })
881
972
  );
882
- Er.displayName = "PktTextarea";
973
+ Et.displayName = "PktTextarea";
883
974
  export {
884
- xr as PktAlert,
885
- hr as PktButton,
886
- Nr as PktHeader,
887
- br as PktInput,
888
- Pr as PktLinkCard,
889
- Tr as PktMessagebox,
890
- _r as PktRadio,
891
- wr as PktRadioGroup,
892
- Or as PktTable,
893
- Sr as PktTableData,
894
- Cr as PktTableHeader,
895
- Er as PktTextarea
975
+ xt as PktAlert,
976
+ _t as PktButton,
977
+ Pt as PktFooter,
978
+ wt as PktFooterSimple,
979
+ Tt as PktHeader,
980
+ kt as PktInput,
981
+ jt as PktLinkCard,
982
+ St as PktMessagebox,
983
+ bt as PktRadio,
984
+ Ot as PktRadioGroup,
985
+ Ct as PktTable,
986
+ Ft as PktTableData,
987
+ $t as PktTableHeader,
988
+ Et as PktTextarea
896
989
  };