@oslokommune/punkt-react 3.4.2 → 4.1.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 te, { forwardRef as G, useState as dr } from "react";
2
- var L = {}, pr = {
3
- get exports() {
4
- return L;
5
- },
6
- set exports(i) {
7
- L = i;
8
- }
9
- }, W = {};
1
+ import q, { forwardRef as z, useState as dr } from "react";
2
+ function mr(o) {
3
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
4
+ }
5
+ var re = { exports: {} }, W = {};
10
6
  /**
11
7
  * @license React
12
8
  * react-jsx-runtime.production.min.js
@@ -16,21 +12,21 @@ var L = {}, 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)
15
+ var Pe;
16
+ function hr() {
17
+ if (Pe)
22
18
  return W;
23
- we = 1;
24
- var i = te, 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, j = null;
27
- x !== void 0 && (w = "" + x), m.key !== void 0 && (w = "" + m.key), m.ref !== void 0 && (j = 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: j, props: P, _owner: p.current };
19
+ Pe = 1;
20
+ var o = q, l = Symbol.for("react.element"), s = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function _(g, v, x) {
22
+ var N, T = {}, P = null, C = null;
23
+ x !== void 0 && (P = "" + x), v.key !== void 0 && (P = "" + v.key), v.ref !== void 0 && (C = v.ref);
24
+ for (N in v)
25
+ c.call(v, N) && !n.hasOwnProperty(N) && (T[N] = v[N]);
26
+ if (g && g.defaultProps)
27
+ for (N in v = g.defaultProps, v)
28
+ T[N] === void 0 && (T[N] = v[N]);
29
+ return { $$typeof: l, type: g, key: P, ref: C, props: T, _owner: d.current };
34
30
  }
35
31
  return W.Fragment = s, W.jsx = _, W.jsxs = _, W;
36
32
  }
@@ -44,54 +40,54 @@ var Y = {};
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 = te, 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"), j = Symbol.for("react.offscreen"), ae = Symbol.iterator, Ce = "@@iterator";
51
- function je(e) {
43
+ var je;
44
+ function _r() {
45
+ return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
46
+ var o = 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"), _ = Symbol.for("react.provider"), g = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), P = 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
50
  var r = ae && e[ae] || e[Ce];
55
51
  return typeof r == "function" ? r : null;
56
52
  }
57
- var F = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
+ var F = o.__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 r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
57
+ a[i - 1] = arguments[i];
58
+ $e("error", e, a);
63
59
  }
64
60
  }
65
- function Fe(e, r, t) {
61
+ function $e(e, r, a) {
66
62
  {
67
- var a = F.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 i = F.ReactDebugCurrentFrame, m = i.getStackAddendum();
64
+ m !== "" && (r += "%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: " + r), 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, Ie = !1, Ae = !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 === j || 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 || Ie || Ae || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === T || e.$$typeof === _ || e.$$typeof === g || e.$$typeof === v || // 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, r, a) {
81
+ var i = e.displayName;
82
+ if (i)
83
+ return i;
84
+ var m = r.displayName || r.name || "";
85
+ return m !== "" ? a + "(" + m + ")" : a;
90
86
  }
91
- function ie(e) {
87
+ function oe(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:
113
+ case g:
118
114
  var r = e;
119
- return ie(r) + ".Consumer";
115
+ return oe(r) + ".Consumer";
120
116
  case _:
121
- var t = e;
122
- return ie(t._context) + ".Provider";
123
- case m:
124
- return Le(e, e.render, "ForwardRef");
125
- 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;
117
+ var a = e;
118
+ return oe(a._context) + ".Provider";
119
+ case v:
120
+ return Me(e, e.render, "ForwardRef");
121
+ case T:
122
+ var i = e.displayName || null;
123
+ return i !== null ? i : j(e.type) || "Memo";
124
+ case P: {
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, $ = 0, oe, se, le, ce, ue, fe, de;
140
- function pe() {
135
+ var O = Object.assign, I = 0, ie, 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
- if ($ === 0) {
146
- oe = console.log, se = console.info, le = console.warn, ce = console.error, ue = console.group, fe = console.groupCollapsed, de = console.groupEnd;
141
+ if (I === 0) {
142
+ ie = 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, {
@@ -160,194 +156,194 @@ function mr() {
160
156
  groupEnd: e
161
157
  });
162
158
  }
163
- $++;
159
+ I++;
164
160
  }
165
161
  }
166
- function Me() {
162
+ function Ve() {
167
163
  {
168
- if ($--, $ === 0) {
164
+ if (I--, I === 0) {
169
165
  var e = {
170
166
  configurable: !0,
171
167
  enumerable: !0,
172
168
  writable: !0
173
169
  };
174
170
  Object.defineProperties(console, {
175
- log: C({}, e, {
176
- value: oe
171
+ log: O({}, e, {
172
+ value: ie
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
- $ < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
+ I < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
195
  }
200
196
  }
201
- var J = F.ReactCurrentDispatcher, z;
202
- function B(e, r, t) {
197
+ var G = F.ReactCurrentDispatcher, J;
198
+ function B(e, r, a) {
203
199
  {
204
- if (z === void 0)
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
- z = a && a[1] || "";
203
+ } catch (m) {
204
+ var i = m.stack.trim().match(/\n( *(at )?)/);
205
+ J = i && i[1] || "";
210
206
  }
211
207
  return `
212
- ` + z + e;
208
+ ` + J + e;
213
209
  }
214
210
  }
215
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) {
216
+ function me(e, r) {
221
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;
224
+ var i;
229
225
  H = !0;
230
- var d = Error.prepareStackTrace;
226
+ var m = Error.prepareStackTrace;
231
227
  Error.prepareStackTrace = void 0;
232
- var v;
233
- v = J.current, J.current = null, Be();
228
+ var h;
229
+ h = G.current, G.current = null, Le();
234
230
  try {
235
231
  if (r) {
236
- var u = function() {
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
+ i = 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
+ i = 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
+ i = 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 && i && typeof S.stack == "string") {
264
+ for (var u = S.stack.split(`
265
+ `), R = i.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
- H = !1, J.current = v, Me(), Error.prepareStackTrace = d;
282
+ H = !1, G.current = h, Ve(), Error.prepareStackTrace = m;
287
283
  }
288
- var A = e ? e.displayName || e.name : "", Te = A ? B(A) : "";
284
+ var D = e ? e.displayName || e.name : "", Te = D ? B(D) : "";
289
285
  return typeof e == "function" && M.set(e, Te), Te;
290
286
  }
291
- function Ue(e, r, t) {
292
- return ve(e, !1);
287
+ function qe(e, r, a) {
288
+ return me(e, !1);
293
289
  }
294
- function qe(e) {
290
+ function ze(e) {
295
291
  var r = e.prototype;
296
292
  return !!(r && r.isReactComponent);
297
293
  }
298
- function V(e, r, t) {
294
+ function L(e, r, 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);
315
- case P:
316
- return V(e.type, r, t);
317
- case w: {
318
- var a = e, d = a._payload, v = a._init;
309
+ case v:
310
+ return qe(e.render);
311
+ case T:
312
+ return L(e.type, r, a);
313
+ case P: {
314
+ var i = e, m = i._payload, h = i._init;
319
315
  try {
320
- return V(v(d), r, t);
316
+ return L(h(m), r, a);
321
317
  } catch {
322
318
  }
323
319
  }
324
320
  }
325
321
  return "";
326
322
  }
327
- var U = Object.prototype.hasOwnProperty, me = {}, he = F.ReactDebugCurrentFrame;
328
- function q(e) {
323
+ var V = Object.prototype.hasOwnProperty, he = {}, _e = 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 r = e._owner, a = L(e.type, e._source, r ? r.type : null);
327
+ _e.setExtraStackFrame(a);
332
328
  } else
333
- he.setExtraStackFrame(null);
329
+ _e.setExtraStackFrame(null);
334
330
  }
335
- function Ge(e, r, t, a, d) {
331
+ function Ge(e, r, a, i, 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((i || "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](r, f, i, 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).", i || "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
  }
@@ -355,141 +351,141 @@ function mr() {
355
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 r = typeof Symbol == "function" && Symbol.toStringTag, a = r && 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 ve(e), !1;
367
363
  } catch {
368
364
  return !0;
369
365
  }
370
366
  }
371
- function be(e) {
367
+ function ve(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)), ve(e);
377
373
  }
378
- var I = F.ReactCurrentOwner, Ke = {
374
+ var A = F.ReactCurrentOwner, Xe = {
379
375
  key: !0,
380
376
  ref: !0,
381
377
  __self: !0,
382
378
  __source: !0
383
- }, ke, ge, X;
379
+ }, be, ge, X;
384
380
  X = {};
385
- function Xe(e) {
386
- if (U.call(e, "ref")) {
381
+ function Ze(e) {
382
+ if (V.call(e, "ref")) {
387
383
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
388
384
  if (r && r.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")) {
389
+ function Qe(e) {
390
+ if (V.call(e, "key")) {
395
391
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
396
392
  if (r && r.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" && I.current && r && I.current.stateNode !== r) {
403
- var t = O(I.current.type);
404
- X[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(I.current.type), e.ref), X[t] = !0);
397
+ function er(e, r) {
398
+ if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
399
+ var a = j(A.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(A.current.type), e.ref), X[a] = !0);
405
401
  }
406
402
  }
407
- function er(e, r) {
403
+ function rr(e, r) {
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)", r));
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 tr(e, r) {
419
415
  {
420
- var t = function() {
416
+ var a = function() {
421
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)", r));
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 ar = function(e, r, a, i, 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
431
  key: r,
436
- ref: t,
437
- props: u,
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: i
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 nr(e, r, a, i, 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(r) && (ke(r.key), u = "" + r.key), Ze(r) && (R = r.ref, er(r, m));
458
+ for (h in r)
459
+ V.call(r, h) && !Xe.hasOwnProperty(h) && (f[h] = r[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 && rr(f, b), R && tr(f, b);
472
468
  }
473
- return tr(e, o, R, d, a, I.current, u);
469
+ return ar(e, u, R, m, i, A.current, f);
474
470
  }
475
471
  }
476
- var Z = F.ReactCurrentOwner, ye = F.ReactDebugCurrentFrame;
477
- function D(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 r = e._owner, a = L(e.type, e._source, r ? r.type : null);
476
+ Ne.setExtraStackFrame(a);
481
477
  } else
482
- ye.setExtraStackFrame(null);
478
+ Ne.setExtraStackFrame(null);
483
479
  }
484
480
  var Q;
485
481
  Q = !1;
486
482
  function ee(e) {
487
- return typeof e == "object" && e !== null && e.$$typeof === c;
483
+ return typeof e == "object" && e !== null && e.$$typeof === l;
488
484
  }
489
- function Ee() {
485
+ function ye() {
490
486
  {
491
487
  if (Z.current) {
492
- var e = O(Z.current.type);
488
+ var e = j(Z.current.type);
493
489
  if (e)
494
490
  return `
495
491
 
@@ -498,227 +494,343 @@ Check the render method of \`` + e + "`.";
498
494
  return "";
499
495
  }
500
496
  }
501
- function nr(e) {
497
+ function or(e) {
502
498
  {
503
499
  if (e !== void 0) {
504
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
500
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
505
501
  return `
506
502
 
507
- Check your code at ` + r + ":" + t + ".";
503
+ Check your code at ` + r + ":" + a + ".";
508
504
  }
509
505
  return "";
510
506
  }
511
507
  }
512
- var Re = {};
508
+ var Ee = {};
513
509
  function ir(e) {
514
510
  {
515
- var r = Ee();
511
+ var r = ye();
516
512
  if (!r) {
517
- var t = typeof e == "string" ? e : e.displayName || e.name;
518
- t && (r = `
513
+ var a = typeof e == "string" ? e : e.displayName || e.name;
514
+ a && (r = `
519
515
 
520
- Check the top-level render call using <` + t + ">.");
516
+ Check the top-level render call using <` + a + ">.");
521
517
  }
522
518
  return r;
523
519
  }
524
520
  }
525
- function xe(e, r) {
521
+ function Re(e, r) {
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 = ir(r);
527
+ if (Ee[a])
532
528
  return;
533
- Re[t] = !0;
534
- var a = "";
535
- e && e._owner && e._owner !== Z.current && (a = " It was passed a child from " + O(e._owner.type) + "."), D(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), D(null);
529
+ Ee[a] = !0;
530
+ var i = "";
531
+ e && e._owner && e._owner !== Z.current && (i = " 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, i), $(null);
536
532
  }
537
533
  }
538
- function Ne(e, r) {
534
+ function xe(e, r) {
539
535
  {
540
536
  if (typeof e != "object")
541
537
  return;
542
538
  if (K(e))
543
- for (var t = 0; t < e.length; t++) {
544
- var a = e[t];
545
- ee(a) && xe(a, r);
539
+ for (var a = 0; a < e.length; a++) {
540
+ var i = e[a];
541
+ ee(i) && Re(i, r);
546
542
  }
547
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
- ee(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, r);
554
550
  }
555
551
  }
556
552
  }
557
- function or(e) {
553
+ function lr(e) {
558
554
  {
559
555
  var r = e.type;
560
556
  if (r == null || typeof r == "string")
561
557
  return;
562
- var t;
558
+ var a;
563
559
  if (typeof r == "function")
564
- t = r.propTypes;
565
- else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
560
+ a = r.propTypes;
561
+ else if (typeof r == "object" && (r.$$typeof === v || // 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
+ r.$$typeof === T))
564
+ a = r.propTypes;
569
565
  else
570
566
  return;
571
- if (t) {
572
- var a = O(r);
573
- Ge(t, e.props, "prop", a, e);
567
+ if (a) {
568
+ var i = j(r);
569
+ Ge(a, e.props, "prop", i, e);
574
570
  } else if (r.PropTypes !== void 0 && !Q) {
575
571
  Q = !0;
576
- var d = O(r);
577
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
572
+ var m = j(r);
573
+ E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
578
574
  }
579
575
  typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
576
  }
581
577
  }
582
578
  function sr(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
- D(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), D(null);
580
+ for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
581
+ var i = r[a];
582
+ if (i !== "children" && i !== "key") {
583
+ $(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), $(null);
588
584
  break;
589
585
  }
590
586
  }
591
- e.ref !== null && (D(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), D(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, r, a, i, 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" : K(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 = or(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 = nr(e, r, 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 (K(N)) {
613
- for (var A = 0; A < N.length; A++)
614
- Ne(N[A], e);
615
- Object.freeze && Object.freeze(N);
604
+ if (f) {
605
+ var w = r.children;
606
+ if (w !== void 0)
607
+ if (i)
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 ? sr(b) : lr(b), b;
622
618
  }
623
619
  }
624
- function lr(e, r, t) {
625
- return Pe(e, r, t, !0);
620
+ function cr(e, r, a) {
621
+ return we(e, r, a, !0);
626
622
  }
627
- function cr(e, r, t) {
628
- return Pe(e, r, t, !1);
623
+ function ur(e, r, a) {
624
+ return we(e, r, a, !1);
629
625
  }
630
- var ur = cr, fr = lr;
631
- Y.Fragment = l, Y.jsx = ur, Y.jsxs = fr;
626
+ var fr = ur, pr = cr;
627
+ Y.Fragment = c, Y.jsx = fr, Y.jsxs = pr;
632
628
  }()), Y;
633
629
  }
634
- (function(i) {
635
- process.env.NODE_ENV === "production" ? i.exports = vr() : i.exports = mr();
636
- })(pr);
637
- const Se = L.Fragment, n = L.jsx, y = L.jsxs, T = ({
638
- className: i,
639
- name: c,
630
+ process.env.NODE_ENV === "production" ? re.exports = hr() : re.exports = _r();
631
+ var te = re.exports;
632
+ const Se = te.Fragment, t = te.jsx, p = te.jsxs, y = ({
633
+ className: o,
634
+ name: l,
640
635
  viewBox: s = "0 0 32 32",
641
- ...l
636
+ ...c
642
637
  }) => {
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 = G(
638
+ const d = [o].filter(Boolean).join(" ");
639
+ return /* @__PURE__ */ t("svg", { ...c, className: d, viewBox: s, children: /* @__PURE__ */ t("use", { href: `#${l}` }) });
640
+ }, xr = z(
646
641
  ({
647
- children: i,
648
- className: c,
642
+ children: o,
643
+ className: l,
649
644
  skin: s = "info",
650
- closeAlert: l = !1,
651
- onClose: p,
652
- title: f,
645
+ closeAlert: c = !1,
646
+ onClose: d,
647
+ title: n,
653
648
  date: _,
654
- ariaLive: k = "polite",
655
- ...m
649
+ ariaLive: g = "polite",
650
+ ...v
656
651
  }, x) => {
657
- const g = [c, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [P, w] = dr(!0), j = () => {
658
- w(!1), p && p();
652
+ const N = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [T, P] = dr(!0), C = () => {
653
+ P(!1), d && d();
659
654
  };
660
- return P ? /* @__PURE__ */ y("div", { ...m, className: g, "aria-live": k, ref: x, children: [
661
- /* @__PURE__ */ n("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ n(T, { name: s === "info" ? "alert-information" : `alert-${s}` }) }),
662
- l && /* @__PURE__ */ n("div", { className: "pkt-alert__close", children: /* @__PURE__ */ n(
655
+ return T ? /* @__PURE__ */ p("div", { ...v, className: N, "aria-live": g, ref: x, children: [
656
+ /* @__PURE__ */ t("div", { className: "pkt-alert__icon", children: /* @__PURE__ */ t(y, { name: s === "info" ? "alert-information" : `alert-${s}` }) }),
657
+ c && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
663
658
  "button",
664
659
  {
665
660
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
666
661
  tabIndex: 0,
667
662
  "aria-label": "close",
668
- onClick: j,
669
- children: /* @__PURE__ */ n(T, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
663
+ onClick: C,
664
+ children: /* @__PURE__ */ t(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
670
665
  }
671
666
  ) }),
672
- f && /* @__PURE__ */ n("div", { className: "pkt-alert__title", children: f }),
673
- /* @__PURE__ */ n("div", { className: "pkt-alert__text", children: i }),
674
- _ && /* @__PURE__ */ y("div", { className: "pkt-alert__date", children: [
667
+ n && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: n }),
668
+ /* @__PURE__ */ t("div", { className: "pkt-alert__text", children: o }),
669
+ _ && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
675
670
  "Sist oppdatert: ",
676
671
  _
677
672
  ] })
678
673
  ] }) : null;
679
674
  }
680
- ), hr = G(
675
+ ), vr = z(
681
676
  ({
682
- children: i,
683
- className: c,
677
+ children: o,
678
+ className: l,
684
679
  iconName: s = "user",
685
- secondIconName: l = "user",
686
- size: p = "medium",
687
- skin: f = "primary",
680
+ secondIconName: c = "user",
681
+ size: d = "medium",
682
+ skin: n = "primary",
688
683
  type: _ = "button",
689
- variant: k = "label-only",
690
- ...m
684
+ variant: g = "label-only",
685
+ ...v
691
686
  }, x) => {
692
- const g = [
693
- c,
687
+ const N = [
688
+ l,
694
689
  "pkt-btn",
695
- p && `pkt-btn--${p}`,
696
- f && `pkt-btn--${f}`,
697
- k && `pkt-btn--${k}`
690
+ d && `pkt-btn--${d}`,
691
+ n && `pkt-btn--${n}`,
692
+ g && `pkt-btn--${g}`
698
693
  ].filter(Boolean).join(" ");
699
- return /* @__PURE__ */ y("button", { ...m, className: g, type: _, ref: x, children: [
700
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: s }),
701
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: i }),
702
- k === "icons-right-and-left" && /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: l })
694
+ return /* @__PURE__ */ p("button", { ...v, className: N, type: _, ref: x, children: [
695
+ /* @__PURE__ */ t(y, { className: "pkt-btn__icon", name: s }),
696
+ /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: o }),
697
+ g === "icons-right-and-left" && /* @__PURE__ */ t(y, { className: "pkt-btn__icon", name: c })
703
698
  ] });
704
699
  }
705
700
  );
706
- hr.displayName = "PktButton";
707
- const Nr = ({
708
- className: i,
709
- logoLink: c = "https://www.oslo.kommune.no/",
701
+ vr.displayName = "PktButton";
702
+ const wr = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
703
+ var c, d;
704
+ return /* @__PURE__ */ t("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
705
+ /* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
706
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
707
+ /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: o.title }),
708
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
709
+ o.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: o.text }),
710
+ (c = o.links) == null ? void 0 : c.map((n, _) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
711
+ "a",
712
+ {
713
+ className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
714
+ href: n.href,
715
+ target: n.openInNewTab ? "_blank" : "_self",
716
+ rel: n.openInNewTab ? "noopener noreferrer" : void 0,
717
+ children: [
718
+ /* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
719
+ n.text
720
+ ]
721
+ }
722
+ ) }, `links-${_}`))
723
+ ] })
724
+ ] }),
725
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
726
+ /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: l.title }),
727
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
728
+ l.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: l.text }),
729
+ (d = l.links) == null ? void 0 : d.map((n, _) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
730
+ "a",
731
+ {
732
+ className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
733
+ href: n.href,
734
+ target: n.openInNewTab ? "_blank" : "_self",
735
+ rel: n.openInNewTab ? "noopener noreferrer" : void 0,
736
+ children: [
737
+ /* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
738
+ n.text
739
+ ]
740
+ }
741
+ ) }, `links-${_}`))
742
+ ] })
743
+ ] }),
744
+ /* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
745
+ /* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
746
+ /* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
747
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
748
+ "a",
749
+ {
750
+ className: "pkt-footer__link",
751
+ href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
752
+ children: [
753
+ /* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
754
+ "Personvern og informasjonskapsler"
755
+ ]
756
+ }
757
+ ) }),
758
+ /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
759
+ /* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
760
+ "Tilgjengelighet"
761
+ ] }) })
762
+ ] })
763
+ ] })
764
+ ] }),
765
+ s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
766
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: s.filter((n) => n.language).map((n, _) => /* @__PURE__ */ t("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ t(
767
+ "a",
768
+ {
769
+ href: n.href,
770
+ "aria-label": `til ${n.language} versjon av nettsiden`,
771
+ target: n.openInNewTab ? "_blank" : "_self",
772
+ rel: n.openInNewTab ? "noopener noreferrer" : void 0,
773
+ children: n.language
774
+ }
775
+ ) }, `sociallinks-language-${_}`)) }),
776
+ /* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: s.filter((n) => n.iconName).map((n, _) => /* @__PURE__ */ t(q.Fragment, { children: /* @__PURE__ */ t(
777
+ "a",
778
+ {
779
+ href: n.href,
780
+ "aria-label": `til ${n.iconName}`,
781
+ className: "pkt-footer__social-icon-link",
782
+ target: n.openInNewTab ? "_blank" : "_self",
783
+ rel: n.openInNewTab ? "noopener noreferrer" : void 0,
784
+ children: /* @__PURE__ */ t("svg", { className: "pkt-footer__social-icon", viewBox: "0 0 32 32", "aria-hidden": "true", children: /* @__PURE__ */ t("use", { href: `#${n.iconName}` }) })
785
+ }
786
+ ) }, `sociallinks-${_}`)) })
787
+ ] })
788
+ ] }) });
789
+ }, Tr = ({
790
+ links: o = []
791
+ }) => /* @__PURE__ */ t("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
792
+ o.map((l, s) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
793
+ "a",
794
+ {
795
+ className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
796
+ href: l.href,
797
+ target: l.openInNewTab ? "_blank" : "_self",
798
+ rel: l.openInNewTab ? "noopener noreferrer" : void 0,
799
+ children: [
800
+ /* @__PURE__ */ t(
801
+ y,
802
+ {
803
+ className: "pkt-footer-simple__link-icon",
804
+ name: "chevron-right"
805
+ }
806
+ ),
807
+ l.text
808
+ ]
809
+ }
810
+ ) }, s)),
811
+ /* @__PURE__ */ t("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: [
812
+ /* @__PURE__ */ t(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
813
+ "Personvern og informasjonskapsler"
814
+ ] }) }),
815
+ /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
816
+ /* @__PURE__ */ t(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
817
+ "Tilgjengelighet"
818
+ ] }) })
819
+ ] }) }) }), Pr = ({
820
+ className: o,
821
+ logoLink: l = "https://www.oslo.kommune.no/",
710
822
  isLoggedIn: s = !1,
711
- representing: l = "",
712
- canChangeRepresentation: p = !1,
713
- showLogInButton: f = !0,
823
+ representing: c = "",
824
+ canChangeRepresentation: d = !1,
825
+ showLogInButton: n = !0,
714
826
  onLogIn: _,
715
- onLogOut: k,
716
- onChangeRepresentation: m
827
+ onLogOut: g,
828
+ onChangeRepresentation: v
717
829
  }) => {
718
- const x = [i, "pkt-header"].filter(Boolean).join(" ");
719
- return /* @__PURE__ */ y("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
720
- /* @__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(
721
- T,
830
+ const x = [o, "pkt-header"].filter(Boolean).join(" ");
831
+ return /* @__PURE__ */ p("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
832
+ /* @__PURE__ */ t("div", { className: "pkt-header__logo", children: /* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: l, children: /* @__PURE__ */ t(
833
+ y,
722
834
  {
723
835
  name: "oslologo",
724
836
  className: "pkt-header__logo-svg",
@@ -726,173 +838,169 @@ const Nr = ({
726
838
  "aria-hidden": "true"
727
839
  }
728
840
  ) }) }),
729
- /* @__PURE__ */ y("div", { className: "pkt-header__actions", children: [
730
- s && p && /* @__PURE__ */ y(
841
+ /* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
842
+ s && d && /* @__PURE__ */ p(
731
843
  "button",
732
844
  {
733
845
  className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
734
- "aria-label": `Bytt bruker fra ${l}`,
735
- onClick: m,
846
+ "aria-label": `Bytt bruker fra ${c}`,
847
+ onClick: v,
736
848
  children: [
737
- /* @__PURE__ */ n(T, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
738
- /* @__PURE__ */ n("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
739
- /* @__PURE__ */ n("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
740
- /* @__PURE__ */ n("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: l })
849
+ /* @__PURE__ */ t(y, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
850
+ /* @__PURE__ */ t("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
851
+ /* @__PURE__ */ t("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
852
+ /* @__PURE__ */ t("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: c })
741
853
  ]
742
854
  }
743
855
  ),
744
- s && !p && /* @__PURE__ */ y("div", { className: "pkt-header__action", children: [
745
- /* @__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 }) }),
746
- /* @__PURE__ */ n("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ n(T, { name: "user" }) })
856
+ s && !d && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
857
+ /* @__PURE__ */ t("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ t("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: c }) }),
858
+ /* @__PURE__ */ t("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ t(y, { name: "user" }) })
747
859
  ] }),
748
- f && s && /* @__PURE__ */ y(
860
+ n && s && /* @__PURE__ */ p(
749
861
  "button",
750
862
  {
751
863
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
752
864
  "aria-label": "Logg ut",
753
- onClick: k,
865
+ onClick: g,
754
866
  children: [
755
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
756
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg ut" })
867
+ /* @__PURE__ */ t(y, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
868
+ /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: "Logg ut" })
757
869
  ]
758
870
  }
759
871
  ),
760
- f && !s && /* @__PURE__ */ y(
872
+ n && !s && /* @__PURE__ */ p(
761
873
  "button",
762
874
  {
763
875
  className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
764
876
  "aria-label": "Logg inn",
765
877
  onClick: _,
766
878
  children: [
767
- /* @__PURE__ */ n(T, { className: "pkt-btn__icon", name: "user" }),
768
- /* @__PURE__ */ n("span", { className: "pkt-btn__text", children: "Logg inn" })
879
+ /* @__PURE__ */ t(y, { className: "pkt-btn__icon", name: "user" }),
880
+ /* @__PURE__ */ t("span", { className: "pkt-btn__text", children: "Logg inn" })
769
881
  ]
770
882
  }
771
883
  )
772
884
  ] })
773
885
  ] });
774
- }, br = te.forwardRef(
775
- ({ label: i, id: c, children: s, ...l }, p) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
776
- /* @__PURE__ */ n("label", { htmlFor: c, className: "pkt-form-label", children: i }),
777
- /* @__PURE__ */ n("input", { className: "pkt-form-input", id: c, ...l, ref: p }),
886
+ }, kr = q.forwardRef(
887
+ ({ label: o, id: l, children: s, ...c }, d) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
888
+ /* @__PURE__ */ t("label", { htmlFor: l, className: "pkt-form-label", children: o }),
889
+ /* @__PURE__ */ t("input", { className: "pkt-form-input", id: l, ...c, ref: d }),
778
890
  s
779
891
  ] })
780
892
  );
781
- br.displayName = "PktInput";
782
- const Pr = ({
783
- children: i,
784
- className: c,
893
+ kr.displayName = "PktInput";
894
+ const jr = ({
895
+ children: o,
896
+ className: l,
785
897
  iconName: s = "user",
786
- skin: l = "",
787
- href: p = "#",
788
- title: f
898
+ skin: c = "",
899
+ href: d = "#",
900
+ title: n
789
901
  }) => {
790
- const _ = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
791
- return /* @__PURE__ */ y("a", { href: p, className: `pkt-linkcard pkt-link ${_}`, children: [
792
- /* @__PURE__ */ n(T, { className: "pkt-link__icon", name: s }),
793
- /* @__PURE__ */ y("div", { className: "pkt-linkcard__content", children: [
794
- /* @__PURE__ */ n("div", { className: "pkt-linkcard__title", children: f }),
795
- /* @__PURE__ */ n("div", { className: "pkt-linkcard__text", children: i })
902
+ const _ = [l, "pkt-linkcard", c && `pkt-linkcard--${c}`].filter(Boolean).join(" ");
903
+ return /* @__PURE__ */ p("a", { href: d, className: `pkt-linkcard pkt-link ${_}`, children: [
904
+ /* @__PURE__ */ t(y, { className: "pkt-link__icon", name: s }),
905
+ /* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
906
+ /* @__PURE__ */ t("div", { className: "pkt-linkcard__title", children: n }),
907
+ /* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: o })
796
908
  ] })
797
909
  ] });
798
- }, Tr = ({
799
- children: i,
800
- skin: c = "beige",
910
+ }, Sr = ({
911
+ children: o,
912
+ skin: l = "beige",
801
913
  title: s,
802
- ...l
914
+ ...c
803
915
  }) => {
804
- const p = ["pkt-messagebox", c && `pkt-messagebox--${c}`].filter(Boolean).join(" ");
805
- return /* @__PURE__ */ y("div", { ...l, className: p, children: [
806
- /* @__PURE__ */ n("div", { className: "pkt-messagebox__title", children: s }),
807
- /* @__PURE__ */ n("div", { className: "pkt-messagebox__text", children: i })
916
+ const d = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
917
+ return /* @__PURE__ */ p("div", { ...c, className: d, children: [
918
+ /* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: s }),
919
+ /* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: o })
808
920
  ] });
809
- }, _r = G(
810
- ({ id: i, name: c, label: s, value: l, ...p }, f) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
811
- /* @__PURE__ */ n("input", { type: "radio", className: "pkt-form-check-input", id: i, name: c, value: l, ref: f, ...p }),
812
- /* @__PURE__ */ n("label", { className: "pkt-form-label", htmlFor: i, children: s })
921
+ }, br = z(
922
+ ({ id: o, name: l, label: s, value: c, ...d }, n) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
923
+ /* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: o, name: l, value: c, ref: n, ...d }),
924
+ /* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: o, children: s })
813
925
  ] })
814
926
  );
815
- _r.displayName = "PktRadio";
816
- const wr = ({ label: i, children: c }) => /* @__PURE__ */ y(Se, { children: [
817
- /* @__PURE__ */ n("p", { children: i }),
818
- /* @__PURE__ */ n("div", { className: "pkt-form-group", children: c })
927
+ br.displayName = "PktRadio";
928
+ const Or = ({ label: o, children: l }) => /* @__PURE__ */ p(Se, { children: [
929
+ /* @__PURE__ */ t("p", { children: o }),
930
+ /* @__PURE__ */ t("div", { className: "pkt-form-group", children: l })
819
931
  ] });
820
- var re = {}, kr = {
821
- get exports() {
822
- return re;
823
- },
824
- set exports(i) {
825
- re = i;
826
- }
827
- };
932
+ var Oe = { exports: {} };
828
933
  /*!
829
934
  Copyright (c) 2018 Jed Watson.
830
935
  Licensed under the MIT License (MIT), see
831
936
  http://jedwatson.github.io/classnames
832
937
  */
833
- (function(i) {
938
+ (function(o) {
834
939
  (function() {
835
- var c = {}.hasOwnProperty;
940
+ var l = {}.hasOwnProperty;
836
941
  function s() {
837
- for (var l = [], p = 0; p < arguments.length; p++) {
838
- var f = arguments[p];
839
- if (f) {
840
- var _ = typeof f;
942
+ for (var c = [], d = 0; d < arguments.length; d++) {
943
+ var n = arguments[d];
944
+ if (n) {
945
+ var _ = typeof n;
841
946
  if (_ === "string" || _ === "number")
842
- l.push(f);
843
- else if (Array.isArray(f)) {
844
- if (f.length) {
845
- var k = s.apply(null, f);
846
- k && l.push(k);
947
+ c.push(n);
948
+ else if (Array.isArray(n)) {
949
+ if (n.length) {
950
+ var g = s.apply(null, n);
951
+ g && c.push(g);
847
952
  }
848
953
  } else if (_ === "object") {
849
- if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
850
- l.push(f.toString());
954
+ if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
955
+ c.push(n.toString());
851
956
  continue;
852
957
  }
853
- for (var m in f)
854
- c.call(f, m) && f[m] && l.push(m);
958
+ for (var v in n)
959
+ l.call(n, v) && n[v] && c.push(v);
855
960
  }
856
961
  }
857
962
  }
858
- return l.join(" ");
963
+ return c.join(" ");
859
964
  }
860
- i.exports ? (s.default = s, i.exports = s) : window.classNames = s;
965
+ o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
861
966
  })();
862
- })(kr);
863
- const gr = re, yr = ({ isResponsive: i, children: c }) => i ? /* @__PURE__ */ n("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ n(Se, { children: c }), Or = ({
864
- isResponsive: i,
865
- modifiers: { info: c = !1, success: s = !1, strong: l = !1, shadow: p = !1 } = {},
866
- children: f
867
- }) => /* @__PURE__ */ n(yr, { isResponsive: i, children: /* @__PURE__ */ n(
967
+ })(Oe);
968
+ var gr = Oe.exports;
969
+ const Nr = /* @__PURE__ */ mr(gr), yr = ({ isResponsive: o, children: l }) => o ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ t(Se, { children: l }), Cr = ({
970
+ isResponsive: o,
971
+ modifiers: { info: l = !1, success: s = !1, strong: c = !1, shadow: d = !1 } = {},
972
+ children: n
973
+ }) => /* @__PURE__ */ t(yr, { isResponsive: o, children: /* @__PURE__ */ t(
868
974
  "table",
869
975
  {
870
- className: gr("pkt-table", {
871
- "pkt-table--info": c,
976
+ className: Nr("pkt-table", {
977
+ "pkt-table--info": l,
872
978
  "pkt-table--success": s,
873
- "pkt-table--strong": l,
874
- "pkt-table--shadow": p
979
+ "pkt-table--strong": c,
980
+ "pkt-table--shadow": d
875
981
  }),
876
- children: f
982
+ children: n
877
983
  }
878
- ) }), 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 = G(
879
- ({ id: i, label: c, ...s }, l) => /* @__PURE__ */ y("div", { className: "pkt-form-group", children: [
880
- /* @__PURE__ */ n("label", { htmlFor: i, className: "pkt-form-label", children: c }),
881
- /* @__PURE__ */ n("textarea", { className: "pkt-form-textarea", id: i, ref: l, ...s })
984
+ ) }), Fr = ({ children: o }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: o }), $r = ({ children: o }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: o }), Er = z(
985
+ ({ id: o, label: l, ...s }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
986
+ /* @__PURE__ */ t("label", { htmlFor: o, className: "pkt-form-label", children: l }),
987
+ /* @__PURE__ */ t("textarea", { className: "pkt-form-textarea", id: o, ref: c, ...s })
882
988
  ] })
883
989
  );
884
990
  Er.displayName = "PktTextarea";
885
991
  export {
886
992
  xr as PktAlert,
887
- hr as PktButton,
888
- Nr as PktHeader,
889
- br as PktInput,
890
- Pr as PktLinkCard,
891
- Tr as PktMessagebox,
892
- _r as PktRadio,
893
- wr as PktRadioGroup,
894
- Or as PktTable,
895
- Sr as PktTableData,
896
- Cr as PktTableHeader,
993
+ vr as PktButton,
994
+ wr as PktFooter,
995
+ Tr as PktFooterSimple,
996
+ Pr as PktHeader,
997
+ kr as PktInput,
998
+ jr as PktLinkCard,
999
+ Sr as PktMessagebox,
1000
+ br as PktRadio,
1001
+ Or as PktRadioGroup,
1002
+ Cr as PktTable,
1003
+ Fr as PktTableData,
1004
+ $r as PktTableHeader,
897
1005
  Er as PktTextarea
898
1006
  };