@oslokommune/punkt-react 4.0.0 → 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.
- package/CHANGELOG.md +19 -0
- package/dist/footer/Footer.d.ts +2 -0
- package/dist/footerSimple/FooterSimple.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/punkt-react.es.js +325 -308
- package/dist/punkt-react.umd.js +11 -11
- package/dist/table/Table.d.ts +1 -1
- package/dist/table/TableData.d.ts +1 -1
- package/dist/table/TableHeader.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/footer/Footer.test.tsx +4 -5
- package/src/components/footer/Footer.tsx +12 -1
- package/src/components/footerSimple/FooterSimple.test.tsx +4 -4
- package/src/components/footerSimple/FooterSimple.tsx +4 -0
- package/src/components/index.ts +1 -1
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import q, { forwardRef as z, useState as
|
|
2
|
-
function
|
|
3
|
-
return
|
|
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
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var re = { exports: {} }, W = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,23 +12,23 @@ var te = { exports: {} }, W = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
15
|
+
var Pe;
|
|
16
|
+
function hr() {
|
|
17
|
+
if (Pe)
|
|
18
18
|
return W;
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var N,
|
|
23
|
-
x !== void 0 && (
|
|
24
|
-
for (N in
|
|
25
|
-
c.call(
|
|
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
26
|
if (g && g.defaultProps)
|
|
27
|
-
for (N in
|
|
28
|
-
|
|
29
|
-
return { $$typeof: l, type: g, key:
|
|
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 };
|
|
30
30
|
}
|
|
31
|
-
return W.Fragment = s, W.jsx =
|
|
31
|
+
return W.Fragment = s, W.jsx = _, W.jsxs = _, W;
|
|
32
32
|
}
|
|
33
33
|
var Y = {};
|
|
34
34
|
/**
|
|
@@ -41,50 +41,50 @@ var Y = {};
|
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
43
|
var je;
|
|
44
|
-
function
|
|
44
|
+
function _r() {
|
|
45
45
|
return je || (je = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var
|
|
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
47
|
function Fe(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var r = ae && e[ae] || e[Ce];
|
|
51
|
+
return typeof r == "function" ? r : null;
|
|
52
52
|
}
|
|
53
|
-
var F =
|
|
53
|
+
var F = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function E(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
a[
|
|
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
58
|
$e("error", e, a);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function $e(e,
|
|
61
|
+
function $e(e, r, a) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
m !== "" && (
|
|
63
|
+
var i = F.ReactDebugCurrentFrame, m = i.getStackAddendum();
|
|
64
|
+
m !== "" && (r += "%s", a = a.concat([m]));
|
|
65
65
|
var h = a.map(function(f) {
|
|
66
66
|
return String(f);
|
|
67
67
|
});
|
|
68
|
-
h.unshift("Warning: " +
|
|
68
|
+
h.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, h);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var De = !1,
|
|
71
|
+
var De = !1, Ie = !1, Ae = !1, We = !1, Ye = !1, ne;
|
|
72
72
|
ne = Symbol.for("react.module.reference");
|
|
73
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 ||
|
|
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
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
78
|
e.$$typeof === ne || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function Me(e,
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var m =
|
|
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
85
|
return m !== "" ? a + "(" + m + ")" : a;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oe(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
90
|
function j(e) {
|
|
@@ -111,17 +111,17 @@ function vt() {
|
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
113
|
case g:
|
|
114
|
-
var
|
|
115
|
-
return
|
|
116
|
-
case v:
|
|
117
|
-
var a = e;
|
|
118
|
-
return ie(a._context) + ".Provider";
|
|
114
|
+
var r = e;
|
|
115
|
+
return oe(r) + ".Consumer";
|
|
119
116
|
case _:
|
|
117
|
+
var a = e;
|
|
118
|
+
return oe(a._context) + ".Provider";
|
|
119
|
+
case v:
|
|
120
120
|
return Me(e, e.render, "ForwardRef");
|
|
121
|
-
case
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
case
|
|
121
|
+
case T:
|
|
122
|
+
var i = e.displayName || null;
|
|
123
|
+
return i !== null ? i : j(e.type) || "Memo";
|
|
124
|
+
case P: {
|
|
125
125
|
var m = e, h = m._payload, f = m._init;
|
|
126
126
|
try {
|
|
127
127
|
return j(f(h));
|
|
@@ -132,14 +132,14 @@ function vt() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var O = Object.assign,
|
|
135
|
+
var O = Object.assign, I = 0, ie, le, se, ce, ue, fe, pe;
|
|
136
136
|
function de() {
|
|
137
137
|
}
|
|
138
138
|
de.__reactDisabledLog = !0;
|
|
139
139
|
function Le() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
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;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
@@ -156,12 +156,12 @@ function vt() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
I++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
function Ve() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (I--, I === 0) {
|
|
165
165
|
var e = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
@@ -169,7 +169,7 @@ function vt() {
|
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
171
|
log: O({}, e, {
|
|
172
|
-
value:
|
|
172
|
+
value: ie
|
|
173
173
|
}),
|
|
174
174
|
info: O({}, e, {
|
|
175
175
|
value: le
|
|
@@ -191,18 +191,18 @@ function vt() {
|
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
I < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var G = F.ReactCurrentDispatcher, J;
|
|
198
|
-
function B(e,
|
|
198
|
+
function B(e, r, a) {
|
|
199
199
|
{
|
|
200
200
|
if (J === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
203
|
} catch (m) {
|
|
204
|
-
var
|
|
205
|
-
J =
|
|
204
|
+
var i = m.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
J = i && i[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
208
|
` + J + e;
|
|
@@ -213,7 +213,7 @@ function vt() {
|
|
|
213
213
|
var Ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
214
|
M = new Ue();
|
|
215
215
|
}
|
|
216
|
-
function me(e,
|
|
216
|
+
function me(e, r) {
|
|
217
217
|
if (!e || H)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
@@ -221,14 +221,14 @@ function vt() {
|
|
|
221
221
|
if (a !== void 0)
|
|
222
222
|
return a;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var i;
|
|
225
225
|
H = !0;
|
|
226
226
|
var m = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var h;
|
|
229
229
|
h = G.current, G.current = null, Le();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
231
|
+
if (r) {
|
|
232
232
|
var f = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
@@ -240,14 +240,14 @@ function vt() {
|
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(f, []);
|
|
242
242
|
} catch (S) {
|
|
243
|
-
|
|
243
|
+
i = S;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(e, [], f);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
f.call();
|
|
249
249
|
} catch (S) {
|
|
250
|
-
|
|
250
|
+
i = S;
|
|
251
251
|
}
|
|
252
252
|
e.call(f.prototype);
|
|
253
253
|
}
|
|
@@ -255,14 +255,14 @@ function vt() {
|
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (S) {
|
|
258
|
-
|
|
258
|
+
i = S;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
262
|
} catch (S) {
|
|
263
|
-
if (S &&
|
|
263
|
+
if (S && i && typeof S.stack == "string") {
|
|
264
264
|
for (var u = S.stack.split(`
|
|
265
|
-
`), R =
|
|
265
|
+
`), R = i.stack.split(`
|
|
266
266
|
`), k = u.length - 1, b = R.length - 1; k >= 1 && b >= 0 && u[k] !== R[b]; )
|
|
267
267
|
b--;
|
|
268
268
|
for (; k >= 1 && b >= 0; k--, b--)
|
|
@@ -281,17 +281,17 @@ function vt() {
|
|
|
281
281
|
} finally {
|
|
282
282
|
H = !1, G.current = h, Ve(), Error.prepareStackTrace = m;
|
|
283
283
|
}
|
|
284
|
-
var D = e ? e.displayName || e.name : "",
|
|
285
|
-
return typeof e == "function" && M.set(e,
|
|
284
|
+
var D = e ? e.displayName || e.name : "", Te = D ? B(D) : "";
|
|
285
|
+
return typeof e == "function" && M.set(e, Te), Te;
|
|
286
286
|
}
|
|
287
|
-
function qe(e,
|
|
287
|
+
function qe(e, r, a) {
|
|
288
288
|
return me(e, !1);
|
|
289
289
|
}
|
|
290
290
|
function ze(e) {
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
291
|
+
var r = e.prototype;
|
|
292
|
+
return !!(r && r.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function L(e,
|
|
294
|
+
function L(e, r, a) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
@@ -306,29 +306,29 @@ function vt() {
|
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
309
|
+
case v:
|
|
310
310
|
return qe(e.render);
|
|
311
|
-
case
|
|
312
|
-
return L(e.type,
|
|
313
|
-
case
|
|
314
|
-
var
|
|
311
|
+
case T:
|
|
312
|
+
return L(e.type, r, a);
|
|
313
|
+
case P: {
|
|
314
|
+
var i = e, m = i._payload, h = i._init;
|
|
315
315
|
try {
|
|
316
|
-
return L(h(m),
|
|
316
|
+
return L(h(m), r, a);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var V = Object.prototype.hasOwnProperty, he = {},
|
|
323
|
+
var V = Object.prototype.hasOwnProperty, he = {}, _e = F.ReactDebugCurrentFrame;
|
|
324
324
|
function U(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var
|
|
327
|
-
|
|
326
|
+
var r = e._owner, a = L(e.type, e._source, r ? r.type : null);
|
|
327
|
+
_e.setExtraStackFrame(a);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
_e.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function Ge(e,
|
|
331
|
+
function Ge(e, r, a, i, m) {
|
|
332
332
|
{
|
|
333
333
|
var h = Function.call.bind(V);
|
|
334
334
|
for (var f in e)
|
|
@@ -336,14 +336,14 @@ function vt() {
|
|
|
336
336
|
var u = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof e[f] != "function") {
|
|
339
|
-
var R = Error((
|
|
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`.");
|
|
340
340
|
throw R.name = "Invariant Violation", R;
|
|
341
341
|
}
|
|
342
|
-
u = e[f](
|
|
342
|
+
u = e[f](r, f, i, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (k) {
|
|
344
344
|
u = k;
|
|
345
345
|
}
|
|
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).",
|
|
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));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -353,25 +353,25 @@ function vt() {
|
|
|
353
353
|
}
|
|
354
354
|
function He(e) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
356
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, a = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
357
|
return a;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function Ke(e) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return ve(e), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function ve(e) {
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
370
|
function ke(e) {
|
|
371
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)),
|
|
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);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var A = F.ReactCurrentOwner, Xe = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
@@ -380,30 +380,30 @@ function vt() {
|
|
|
380
380
|
X = {};
|
|
381
381
|
function Ze(e) {
|
|
382
382
|
if (V.call(e, "ref")) {
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
383
|
+
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
|
+
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function Qe(e) {
|
|
390
390
|
if (V.call(e, "key")) {
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
391
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
|
+
if (r && r.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
if (typeof e.ref == "string" &&
|
|
399
|
-
var a = j(
|
|
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(
|
|
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);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function rr(e, r) {
|
|
404
404
|
{
|
|
405
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)",
|
|
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));
|
|
407
407
|
};
|
|
408
408
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
409
|
get: a,
|
|
@@ -411,10 +411,10 @@ function vt() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function tr(e, r) {
|
|
415
415
|
{
|
|
416
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)",
|
|
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));
|
|
418
418
|
};
|
|
419
419
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
420
|
get: a,
|
|
@@ -422,13 +422,13 @@ function vt() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var ar = function(e, r, a, i, m, h, f) {
|
|
426
426
|
var u = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: l,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
|
-
key:
|
|
431
|
+
key: r,
|
|
432
432
|
ref: a,
|
|
433
433
|
props: f,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
@@ -443,7 +443,7 @@ function vt() {
|
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: i
|
|
447
447
|
}), Object.defineProperty(u, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
@@ -451,12 +451,12 @@ function vt() {
|
|
|
451
451
|
value: m
|
|
452
452
|
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function nr(e, r, a, i, m) {
|
|
455
455
|
{
|
|
456
456
|
var h, f = {}, u = null, R = null;
|
|
457
|
-
a !== void 0 && (ke(a), u = "" + a), Qe(
|
|
458
|
-
for (h in
|
|
459
|
-
V.call(
|
|
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]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
461
|
var k = e.defaultProps;
|
|
462
462
|
for (h in k)
|
|
@@ -464,15 +464,15 @@ function vt() {
|
|
|
464
464
|
}
|
|
465
465
|
if (u || R) {
|
|
466
466
|
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
-
u &&
|
|
467
|
+
u && rr(f, b), R && tr(f, b);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return ar(e, u, R, m, i, A.current, f);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Z = F.ReactCurrentOwner, Ne = F.ReactDebugCurrentFrame;
|
|
473
473
|
function $(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var
|
|
475
|
+
var r = e._owner, a = L(e.type, e._source, r ? r.type : null);
|
|
476
476
|
Ne.setExtraStackFrame(a);
|
|
477
477
|
} else
|
|
478
478
|
Ne.setExtraStackFrame(null);
|
|
@@ -494,51 +494,51 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function or(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var
|
|
500
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` +
|
|
503
|
+
Check your code at ` + r + ":" + a + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var Ee = {};
|
|
509
|
-
function
|
|
509
|
+
function ir(e) {
|
|
510
510
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
511
|
+
var r = ye();
|
|
512
|
+
if (!r) {
|
|
513
513
|
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
-
a && (
|
|
514
|
+
a && (r = `
|
|
515
515
|
|
|
516
516
|
Check the top-level render call using <` + a + ">.");
|
|
517
517
|
}
|
|
518
|
-
return
|
|
518
|
+
return r;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function Re(e,
|
|
521
|
+
function Re(e, r) {
|
|
522
522
|
{
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var a =
|
|
526
|
+
var a = ir(r);
|
|
527
527
|
if (Ee[a])
|
|
528
528
|
return;
|
|
529
529
|
Ee[a] = !0;
|
|
530
|
-
var
|
|
531
|
-
e && e._owner && e._owner !== Z.current && (
|
|
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);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function xe(e,
|
|
534
|
+
function xe(e, r) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (K(e))
|
|
539
539
|
for (var a = 0; a < e.length; a++) {
|
|
540
|
-
var
|
|
541
|
-
ee(
|
|
540
|
+
var i = e[a];
|
|
541
|
+
ee(i) && Re(i, r);
|
|
542
542
|
}
|
|
543
543
|
else if (ee(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
@@ -546,65 +546,65 @@ Check the top-level render call using <` + a + ">.");
|
|
|
546
546
|
var m = Fe(e);
|
|
547
547
|
if (typeof m == "function" && m !== e.entries)
|
|
548
548
|
for (var h = m.call(e), f; !(f = h.next()).done; )
|
|
549
|
-
ee(f.value) && Re(f.value,
|
|
549
|
+
ee(f.value) && Re(f.value, r);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function lr(e) {
|
|
554
554
|
{
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
555
|
+
var r = e.type;
|
|
556
|
+
if (r == null || typeof r == "string")
|
|
557
557
|
return;
|
|
558
558
|
var a;
|
|
559
|
-
if (typeof
|
|
560
|
-
a =
|
|
561
|
-
else if (typeof
|
|
559
|
+
if (typeof r == "function")
|
|
560
|
+
a = r.propTypes;
|
|
561
|
+
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
a =
|
|
563
|
+
r.$$typeof === T))
|
|
564
|
+
a = r.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
567
|
if (a) {
|
|
568
|
-
var
|
|
569
|
-
Ge(a, e.props, "prop",
|
|
570
|
-
} else if (
|
|
568
|
+
var i = j(r);
|
|
569
|
+
Ge(a, e.props, "prop", i, e);
|
|
570
|
+
} else if (r.PropTypes !== void 0 && !Q) {
|
|
571
571
|
Q = !0;
|
|
572
|
-
var m = j(
|
|
572
|
+
var m = j(r);
|
|
573
573
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof
|
|
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.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function sr(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
$(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
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);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
e.ref !== null && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function we(e,
|
|
590
|
+
function we(e, r, a, i, m, h) {
|
|
591
591
|
{
|
|
592
592
|
var f = Be(e);
|
|
593
593
|
if (!f) {
|
|
594
594
|
var u = "";
|
|
595
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 =
|
|
596
|
+
var R = or(m);
|
|
597
597
|
R ? u += R : u += ye();
|
|
598
598
|
var k;
|
|
599
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);
|
|
600
600
|
}
|
|
601
|
-
var b =
|
|
601
|
+
var b = nr(e, r, a, m, h);
|
|
602
602
|
if (b == null)
|
|
603
603
|
return b;
|
|
604
604
|
if (f) {
|
|
605
|
-
var w =
|
|
605
|
+
var w = r.children;
|
|
606
606
|
if (w !== void 0)
|
|
607
|
-
if (
|
|
607
|
+
if (i)
|
|
608
608
|
if (K(w)) {
|
|
609
609
|
for (var D = 0; D < w.length; D++)
|
|
610
610
|
xe(w[D], e);
|
|
@@ -614,75 +614,75 @@ Check the top-level render call using <` + a + ">.");
|
|
|
614
614
|
else
|
|
615
615
|
xe(w, e);
|
|
616
616
|
}
|
|
617
|
-
return e === c ?
|
|
617
|
+
return e === c ? sr(b) : lr(b), b;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return we(e,
|
|
620
|
+
function cr(e, r, a) {
|
|
621
|
+
return we(e, r, a, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return we(e,
|
|
623
|
+
function ur(e, r, a) {
|
|
624
|
+
return we(e, r, a, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
Y.Fragment = c, Y.jsx =
|
|
626
|
+
var fr = ur, pr = cr;
|
|
627
|
+
Y.Fragment = c, Y.jsx = fr, Y.jsxs = pr;
|
|
628
628
|
}()), Y;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
const Se =
|
|
633
|
-
className:
|
|
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
634
|
name: l,
|
|
635
635
|
viewBox: s = "0 0 32 32",
|
|
636
636
|
...c
|
|
637
637
|
}) => {
|
|
638
|
-
const d = [
|
|
639
|
-
return /* @__PURE__ */
|
|
640
|
-
},
|
|
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(
|
|
641
641
|
({
|
|
642
|
-
children:
|
|
642
|
+
children: o,
|
|
643
643
|
className: l,
|
|
644
644
|
skin: s = "info",
|
|
645
645
|
closeAlert: c = !1,
|
|
646
646
|
onClose: d,
|
|
647
647
|
title: n,
|
|
648
|
-
date:
|
|
648
|
+
date: _,
|
|
649
649
|
ariaLive: g = "polite",
|
|
650
|
-
...
|
|
650
|
+
...v
|
|
651
651
|
}, x) => {
|
|
652
|
-
const N = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [
|
|
653
|
-
|
|
652
|
+
const N = [l, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [T, P] = dr(!0), C = () => {
|
|
653
|
+
P(!1), d && d();
|
|
654
654
|
};
|
|
655
|
-
return
|
|
656
|
-
/* @__PURE__ */
|
|
657
|
-
c && /* @__PURE__ */
|
|
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(
|
|
658
658
|
"button",
|
|
659
659
|
{
|
|
660
660
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
661
661
|
tabIndex: 0,
|
|
662
662
|
"aria-label": "close",
|
|
663
663
|
onClick: C,
|
|
664
|
-
children: /* @__PURE__ */
|
|
664
|
+
children: /* @__PURE__ */ t(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
665
665
|
}
|
|
666
666
|
) }),
|
|
667
|
-
n && /* @__PURE__ */
|
|
668
|
-
/* @__PURE__ */
|
|
669
|
-
|
|
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: [
|
|
670
670
|
"Sist oppdatert: ",
|
|
671
|
-
|
|
671
|
+
_
|
|
672
672
|
] })
|
|
673
673
|
] }) : null;
|
|
674
674
|
}
|
|
675
|
-
),
|
|
675
|
+
), vr = z(
|
|
676
676
|
({
|
|
677
|
-
children:
|
|
677
|
+
children: o,
|
|
678
678
|
className: l,
|
|
679
679
|
iconName: s = "user",
|
|
680
680
|
secondIconName: c = "user",
|
|
681
681
|
size: d = "medium",
|
|
682
682
|
skin: n = "primary",
|
|
683
|
-
type:
|
|
683
|
+
type: _ = "button",
|
|
684
684
|
variant: g = "label-only",
|
|
685
|
-
...
|
|
685
|
+
...v
|
|
686
686
|
}, x) => {
|
|
687
687
|
const N = [
|
|
688
688
|
l,
|
|
@@ -691,128 +691,145 @@ const Se = re.Fragment, r = re.jsx, p = re.jsxs, y = ({
|
|
|
691
691
|
n && `pkt-btn--${n}`,
|
|
692
692
|
g && `pkt-btn--${g}`
|
|
693
693
|
].filter(Boolean).join(" ");
|
|
694
|
-
return /* @__PURE__ */ p("button", { ...
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
g === "icons-right-and-left" && /* @__PURE__ */
|
|
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 })
|
|
698
698
|
] });
|
|
699
699
|
}
|
|
700
700
|
);
|
|
701
|
-
|
|
702
|
-
const
|
|
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 }) => {
|
|
701
|
+
vr.displayName = "PktButton";
|
|
702
|
+
const wr = ({ columnOne: o, columnTwo: l, socialLinks: s }) => {
|
|
731
703
|
var c, d;
|
|
732
|
-
return /* @__PURE__ */
|
|
704
|
+
return /* @__PURE__ */ t("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
|
|
733
705
|
/* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
734
706
|
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
735
|
-
/* @__PURE__ */
|
|
707
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: o.title }),
|
|
736
708
|
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
737
|
-
|
|
738
|
-
(c =
|
|
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(
|
|
739
711
|
"a",
|
|
740
712
|
{
|
|
741
713
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
742
714
|
href: n.href,
|
|
715
|
+
target: n.openInNewTab ? "_blank" : "_self",
|
|
716
|
+
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
743
717
|
children: [
|
|
744
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
745
719
|
n.text
|
|
746
720
|
]
|
|
747
721
|
}
|
|
748
|
-
) }, `links-${
|
|
722
|
+
) }, `links-${_}`))
|
|
749
723
|
] })
|
|
750
724
|
] }),
|
|
751
725
|
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
752
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: l.title }),
|
|
753
727
|
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
754
|
-
l.text && /* @__PURE__ */
|
|
755
|
-
(d = l.links) == null ? void 0 : d.map((n,
|
|
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(
|
|
756
730
|
"a",
|
|
757
731
|
{
|
|
758
732
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
759
733
|
href: n.href,
|
|
734
|
+
target: n.openInNewTab ? "_blank" : "_self",
|
|
735
|
+
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
760
736
|
children: [
|
|
761
|
-
/* @__PURE__ */
|
|
737
|
+
/* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
762
738
|
n.text
|
|
763
739
|
]
|
|
764
740
|
}
|
|
765
|
-
) }, `links-${
|
|
741
|
+
) }, `links-${_}`))
|
|
766
742
|
] })
|
|
767
743
|
] }),
|
|
768
744
|
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
769
|
-
/* @__PURE__ */
|
|
745
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
770
746
|
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
771
|
-
/* @__PURE__ */
|
|
747
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
772
748
|
"a",
|
|
773
749
|
{
|
|
774
750
|
className: "pkt-footer__link",
|
|
775
751
|
href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
776
752
|
children: [
|
|
777
|
-
/* @__PURE__ */
|
|
753
|
+
/* @__PURE__ */ t(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
778
754
|
"Personvern og informasjonskapsler"
|
|
779
755
|
]
|
|
780
756
|
}
|
|
781
757
|
) }),
|
|
782
|
-
/* @__PURE__ */
|
|
783
|
-
/* @__PURE__ */
|
|
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" }),
|
|
784
760
|
"Tilgjengelighet"
|
|
785
761
|
] }) })
|
|
786
762
|
] })
|
|
787
763
|
] })
|
|
788
764
|
] }),
|
|
789
765
|
s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
|
|
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(
|
|
792
777
|
"a",
|
|
793
778
|
{
|
|
794
779
|
href: n.href,
|
|
795
780
|
"aria-label": `til ${n.iconName}`,
|
|
796
781
|
className: "pkt-footer__social-icon-link",
|
|
797
|
-
|
|
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}` }) })
|
|
798
785
|
}
|
|
799
|
-
) }, `sociallinks-${
|
|
786
|
+
) }, `sociallinks-${_}`)) })
|
|
800
787
|
] })
|
|
801
788
|
] }) });
|
|
802
|
-
},
|
|
803
|
-
|
|
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,
|
|
804
821
|
logoLink: l = "https://www.oslo.kommune.no/",
|
|
805
822
|
isLoggedIn: s = !1,
|
|
806
823
|
representing: c = "",
|
|
807
824
|
canChangeRepresentation: d = !1,
|
|
808
825
|
showLogInButton: n = !0,
|
|
809
|
-
onLogIn:
|
|
826
|
+
onLogIn: _,
|
|
810
827
|
onLogOut: g,
|
|
811
|
-
onChangeRepresentation:
|
|
828
|
+
onChangeRepresentation: v
|
|
812
829
|
}) => {
|
|
813
|
-
const x = [
|
|
830
|
+
const x = [o, "pkt-header"].filter(Boolean).join(" ");
|
|
814
831
|
return /* @__PURE__ */ p("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
|
|
815
|
-
/* @__PURE__ */
|
|
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(
|
|
816
833
|
y,
|
|
817
834
|
{
|
|
818
835
|
name: "oslologo",
|
|
@@ -827,18 +844,18 @@ const wt = ({
|
|
|
827
844
|
{
|
|
828
845
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
829
846
|
"aria-label": `Bytt bruker fra ${c}`,
|
|
830
|
-
onClick:
|
|
847
|
+
onClick: v,
|
|
831
848
|
children: [
|
|
832
|
-
/* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
-
/* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
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 })
|
|
836
853
|
]
|
|
837
854
|
}
|
|
838
855
|
),
|
|
839
856
|
s && !d && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
-
/* @__PURE__ */
|
|
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" }) })
|
|
842
859
|
] }),
|
|
843
860
|
n && s && /* @__PURE__ */ p(
|
|
844
861
|
"button",
|
|
@@ -847,8 +864,8 @@ const wt = ({
|
|
|
847
864
|
"aria-label": "Logg ut",
|
|
848
865
|
onClick: g,
|
|
849
866
|
children: [
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
-
/* @__PURE__ */
|
|
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" })
|
|
852
869
|
]
|
|
853
870
|
}
|
|
854
871
|
),
|
|
@@ -857,60 +874,60 @@ const wt = ({
|
|
|
857
874
|
{
|
|
858
875
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
859
876
|
"aria-label": "Logg inn",
|
|
860
|
-
onClick:
|
|
877
|
+
onClick: _,
|
|
861
878
|
children: [
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ t(y, { className: "pkt-btn__icon", name: "user" }),
|
|
880
|
+
/* @__PURE__ */ t("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
864
881
|
]
|
|
865
882
|
}
|
|
866
883
|
)
|
|
867
884
|
] })
|
|
868
885
|
] });
|
|
869
|
-
},
|
|
870
|
-
({ label:
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
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 }),
|
|
873
890
|
s
|
|
874
891
|
] })
|
|
875
892
|
);
|
|
876
|
-
|
|
877
|
-
const
|
|
878
|
-
children:
|
|
893
|
+
kr.displayName = "PktInput";
|
|
894
|
+
const jr = ({
|
|
895
|
+
children: o,
|
|
879
896
|
className: l,
|
|
880
897
|
iconName: s = "user",
|
|
881
898
|
skin: c = "",
|
|
882
899
|
href: d = "#",
|
|
883
900
|
title: n
|
|
884
901
|
}) => {
|
|
885
|
-
const
|
|
886
|
-
return /* @__PURE__ */ p("a", { href: d, className: `pkt-linkcard pkt-link ${
|
|
887
|
-
/* @__PURE__ */
|
|
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 }),
|
|
888
905
|
/* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
|
|
889
|
-
/* @__PURE__ */
|
|
890
|
-
/* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ t("div", { className: "pkt-linkcard__title", children: n }),
|
|
907
|
+
/* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: o })
|
|
891
908
|
] })
|
|
892
909
|
] });
|
|
893
|
-
},
|
|
894
|
-
children:
|
|
910
|
+
}, Sr = ({
|
|
911
|
+
children: o,
|
|
895
912
|
skin: l = "beige",
|
|
896
913
|
title: s,
|
|
897
914
|
...c
|
|
898
915
|
}) => {
|
|
899
916
|
const d = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
|
|
900
917
|
return /* @__PURE__ */ p("div", { ...c, className: d, children: [
|
|
901
|
-
/* @__PURE__ */
|
|
902
|
-
/* @__PURE__ */
|
|
918
|
+
/* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: s }),
|
|
919
|
+
/* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: o })
|
|
903
920
|
] });
|
|
904
|
-
},
|
|
905
|
-
({ id:
|
|
906
|
-
/* @__PURE__ */
|
|
907
|
-
/* @__PURE__ */
|
|
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 })
|
|
908
925
|
] })
|
|
909
926
|
);
|
|
910
|
-
|
|
911
|
-
const
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */
|
|
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 })
|
|
914
931
|
] });
|
|
915
932
|
var Oe = { exports: {} };
|
|
916
933
|
/*!
|
|
@@ -918,45 +935,45 @@ var Oe = { exports: {} };
|
|
|
918
935
|
Licensed under the MIT License (MIT), see
|
|
919
936
|
http://jedwatson.github.io/classnames
|
|
920
937
|
*/
|
|
921
|
-
(function(
|
|
938
|
+
(function(o) {
|
|
922
939
|
(function() {
|
|
923
940
|
var l = {}.hasOwnProperty;
|
|
924
941
|
function s() {
|
|
925
942
|
for (var c = [], d = 0; d < arguments.length; d++) {
|
|
926
943
|
var n = arguments[d];
|
|
927
944
|
if (n) {
|
|
928
|
-
var
|
|
929
|
-
if (
|
|
945
|
+
var _ = typeof n;
|
|
946
|
+
if (_ === "string" || _ === "number")
|
|
930
947
|
c.push(n);
|
|
931
948
|
else if (Array.isArray(n)) {
|
|
932
949
|
if (n.length) {
|
|
933
950
|
var g = s.apply(null, n);
|
|
934
951
|
g && c.push(g);
|
|
935
952
|
}
|
|
936
|
-
} else if (
|
|
953
|
+
} else if (_ === "object") {
|
|
937
954
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
938
955
|
c.push(n.toString());
|
|
939
956
|
continue;
|
|
940
957
|
}
|
|
941
|
-
for (var
|
|
942
|
-
l.call(n,
|
|
958
|
+
for (var v in n)
|
|
959
|
+
l.call(n, v) && n[v] && c.push(v);
|
|
943
960
|
}
|
|
944
961
|
}
|
|
945
962
|
}
|
|
946
963
|
return c.join(" ");
|
|
947
964
|
}
|
|
948
|
-
|
|
965
|
+
o.exports ? (s.default = s, o.exports = s) : window.classNames = s;
|
|
949
966
|
})();
|
|
950
967
|
})(Oe);
|
|
951
|
-
var
|
|
952
|
-
const
|
|
953
|
-
isResponsive:
|
|
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,
|
|
954
971
|
modifiers: { info: l = !1, success: s = !1, strong: c = !1, shadow: d = !1 } = {},
|
|
955
972
|
children: n
|
|
956
|
-
}) => /* @__PURE__ */
|
|
973
|
+
}) => /* @__PURE__ */ t(yr, { isResponsive: o, children: /* @__PURE__ */ t(
|
|
957
974
|
"table",
|
|
958
975
|
{
|
|
959
|
-
className:
|
|
976
|
+
className: Nr("pkt-table", {
|
|
960
977
|
"pkt-table--info": l,
|
|
961
978
|
"pkt-table--success": s,
|
|
962
979
|
"pkt-table--strong": c,
|
|
@@ -964,26 +981,26 @@ const Nt = /* @__PURE__ */ mt(gt), yt = ({ isResponsive: i, children: l }) => i
|
|
|
964
981
|
}),
|
|
965
982
|
children: n
|
|
966
983
|
}
|
|
967
|
-
) }),
|
|
968
|
-
({ id:
|
|
969
|
-
/* @__PURE__ */
|
|
970
|
-
/* @__PURE__ */
|
|
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 })
|
|
971
988
|
] })
|
|
972
989
|
);
|
|
973
|
-
|
|
990
|
+
Er.displayName = "PktTextarea";
|
|
974
991
|
export {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
$
|
|
988
|
-
|
|
992
|
+
xr as PktAlert,
|
|
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,
|
|
1005
|
+
Er as PktTextarea
|
|
989
1006
|
};
|