@oslokommune/punkt-react 5.2.2 → 5.2.3
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 +18 -0
- package/CONTRIBUTING.md +0 -3
- package/dist/punkt-react.es.js +430 -425
- package/dist/punkt-react.umd.js +10 -10
- package/package.json +2 -2
- package/src/components/footer/Footer.tsx +3 -2
- package/src/components/footerSimple/FooterSimple.tsx +3 -2
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ne, { useState as le, useEffect as ht, forwardRef as W } from "react";
|
|
2
|
-
function vt(
|
|
3
|
-
return
|
|
2
|
+
function vt(n) {
|
|
3
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
4
|
}
|
|
5
5
|
var ye = { exports: {} }, J = {};
|
|
6
6
|
/**
|
|
@@ -12,23 +12,23 @@ var ye = { exports: {} }, J = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
15
|
+
var Be;
|
|
16
16
|
function bt() {
|
|
17
|
-
if (
|
|
17
|
+
if (Be)
|
|
18
18
|
return J;
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
19
|
+
Be = 1;
|
|
20
|
+
var n = ne, o = Symbol.for("react.element"), s = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, d = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function k(l, u, g) {
|
|
22
22
|
var N, w = {}, R = null, C = null;
|
|
23
|
-
g !== void 0 && (R = "" + g),
|
|
24
|
-
for (N in
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (N in
|
|
28
|
-
w[N] === void 0 && (w[N] =
|
|
29
|
-
return { $$typeof:
|
|
23
|
+
g !== void 0 && (R = "" + g), u.key !== void 0 && (R = "" + u.key), u.ref !== void 0 && (C = u.ref);
|
|
24
|
+
for (N in u)
|
|
25
|
+
i.call(u, N) && !c.hasOwnProperty(N) && (w[N] = u[N]);
|
|
26
|
+
if (l && l.defaultProps)
|
|
27
|
+
for (N in u = l.defaultProps, u)
|
|
28
|
+
w[N] === void 0 && (w[N] = u[N]);
|
|
29
|
+
return { $$typeof: o, type: l, key: R, ref: C, props: w, _owner: d.current };
|
|
30
30
|
}
|
|
31
|
-
return J.Fragment =
|
|
31
|
+
return J.Fragment = s, J.jsx = k, J.jsxs = k, J;
|
|
32
32
|
}
|
|
33
33
|
var z = {};
|
|
34
34
|
/**
|
|
@@ -40,49 +40,49 @@ var z = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
43
|
+
var Le;
|
|
44
44
|
function gt() {
|
|
45
|
-
return
|
|
46
|
-
var
|
|
45
|
+
return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var n = ne, o = Symbol.for("react.element"), s = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), l = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), $ = Symbol.iterator, S = "@@iterator";
|
|
47
47
|
function F(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
50
|
var t = $ && e[$] || e[S];
|
|
51
51
|
return typeof t == "function" ? t : null;
|
|
52
52
|
}
|
|
53
|
-
var P =
|
|
53
|
+
var P = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function x(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var t = arguments.length,
|
|
57
|
-
|
|
58
|
-
se("error", e,
|
|
56
|
+
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), f = 1; f < t; f++)
|
|
57
|
+
a[f - 1] = arguments[f];
|
|
58
|
+
se("error", e, a);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function se(e, t,
|
|
61
|
+
function se(e, t, a) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var v =
|
|
63
|
+
var f = P.ReactDebugCurrentFrame, h = f.getStackAddendum();
|
|
64
|
+
h !== "" && (t += "%s", a = a.concat([h]));
|
|
65
|
+
var v = a.map(function(_) {
|
|
66
66
|
return String(_);
|
|
67
67
|
});
|
|
68
68
|
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var U = !1, K = !1,
|
|
71
|
+
var U = !1, K = !1, oe = !1, H = !1, q = !1, Y;
|
|
72
72
|
Y = Symbol.for("react.module.reference");
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
function ie(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === c || q || e === d || e === g || e === N || H || e === C || U || K || oe || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === w || e.$$typeof === k || e.$$typeof === l || e.$$typeof === u || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
78
|
e.$$typeof === Y || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function ce(e, t,
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
function ce(e, t, a) {
|
|
81
|
+
var f = e.displayName;
|
|
82
|
+
if (f)
|
|
83
|
+
return f;
|
|
84
|
+
var h = t.displayName || t.name || "";
|
|
85
|
+
return h !== "" ? a + "(" + h + ")" : a;
|
|
86
86
|
}
|
|
87
87
|
function X(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
@@ -95,13 +95,13 @@ function gt() {
|
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
97
97
|
switch (e) {
|
|
98
|
-
case c:
|
|
99
|
-
return "Fragment";
|
|
100
98
|
case i:
|
|
99
|
+
return "Fragment";
|
|
100
|
+
case s:
|
|
101
101
|
return "Portal";
|
|
102
|
-
case
|
|
102
|
+
case c:
|
|
103
103
|
return "Profiler";
|
|
104
|
-
case
|
|
104
|
+
case d:
|
|
105
105
|
return "StrictMode";
|
|
106
106
|
case g:
|
|
107
107
|
return "Suspense";
|
|
@@ -110,19 +110,19 @@ function gt() {
|
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
113
|
+
case l:
|
|
114
114
|
var t = e;
|
|
115
115
|
return X(t) + ".Consumer";
|
|
116
|
-
case
|
|
117
|
-
var
|
|
118
|
-
return X(
|
|
119
|
-
case
|
|
116
|
+
case k:
|
|
117
|
+
var a = e;
|
|
118
|
+
return X(a._context) + ".Provider";
|
|
119
|
+
case u:
|
|
120
120
|
return ce(e, e.render, "ForwardRef");
|
|
121
121
|
case w:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var f = e.displayName || null;
|
|
123
|
+
return f !== null ? f : j(e.type) || "Memo";
|
|
124
124
|
case R: {
|
|
125
|
-
var
|
|
125
|
+
var h = e, v = h._payload, _ = h._init;
|
|
126
126
|
try {
|
|
127
127
|
return j(_(v));
|
|
128
128
|
} catch {
|
|
@@ -195,14 +195,14 @@ function gt() {
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
var de = P.ReactCurrentDispatcher, me;
|
|
198
|
-
function Q(e, t,
|
|
198
|
+
function Q(e, t, a) {
|
|
199
199
|
{
|
|
200
200
|
if (me === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
me =
|
|
203
|
+
} catch (h) {
|
|
204
|
+
var f = h.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
me = f && f[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
208
|
` + me + e;
|
|
@@ -217,13 +217,13 @@ function gt() {
|
|
|
217
217
|
if (!e || _e)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var a = ee.get(e);
|
|
221
|
+
if (a !== void 0)
|
|
222
|
+
return a;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
224
|
+
var f;
|
|
225
225
|
_e = !0;
|
|
226
|
-
var
|
|
226
|
+
var h = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var v;
|
|
229
229
|
v = de.current, de.current = null, qe();
|
|
@@ -240,14 +240,14 @@ function gt() {
|
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(_, []);
|
|
242
242
|
} catch (I) {
|
|
243
|
-
|
|
243
|
+
f = I;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(e, [], _);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
_.call();
|
|
249
249
|
} catch (I) {
|
|
250
|
-
|
|
250
|
+
f = I;
|
|
251
251
|
}
|
|
252
252
|
e.call(_.prototype);
|
|
253
253
|
}
|
|
@@ -255,14 +255,14 @@ function gt() {
|
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (I) {
|
|
258
|
-
|
|
258
|
+
f = I;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
262
|
} catch (I) {
|
|
263
|
-
if (I &&
|
|
263
|
+
if (I && f && typeof I.stack == "string") {
|
|
264
264
|
for (var m = I.stack.split(`
|
|
265
|
-
`), T =
|
|
265
|
+
`), T = f.stack.split(`
|
|
266
266
|
`), y = m.length - 1, E = T.length - 1; y >= 1 && E >= 0 && m[y] !== T[E]; )
|
|
267
267
|
E--;
|
|
268
268
|
for (; y >= 1 && E >= 0; y--, E--)
|
|
@@ -279,19 +279,19 @@ function gt() {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
_e = !1, de.current = v, Ge(), Error.prepareStackTrace =
|
|
282
|
+
_e = !1, de.current = v, Ge(), Error.prepareStackTrace = h;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var L = e ? e.displayName || e.name : "", Me = L ? Q(L) : "";
|
|
285
285
|
return typeof e == "function" && ee.set(e, Me), Me;
|
|
286
286
|
}
|
|
287
|
-
function ze(e, t,
|
|
287
|
+
function ze(e, t, a) {
|
|
288
288
|
return Pe(e, !1);
|
|
289
289
|
}
|
|
290
290
|
function Ke(e) {
|
|
291
291
|
var t = e.prototype;
|
|
292
292
|
return !!(t && t.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function te(e, t,
|
|
294
|
+
function te(e, t, a) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
@@ -306,14 +306,14 @@ function gt() {
|
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
309
|
+
case u:
|
|
310
310
|
return ze(e.render);
|
|
311
311
|
case w:
|
|
312
|
-
return te(e.type, t,
|
|
312
|
+
return te(e.type, t, a);
|
|
313
313
|
case R: {
|
|
314
|
-
var
|
|
314
|
+
var f = e, h = f._payload, v = f._init;
|
|
315
315
|
try {
|
|
316
|
-
return te(v(
|
|
316
|
+
return te(v(h), t, a);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
@@ -323,12 +323,12 @@ function gt() {
|
|
|
323
323
|
var re = Object.prototype.hasOwnProperty, Te = {}, Ce = P.ReactDebugCurrentFrame;
|
|
324
324
|
function ae(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var t = e._owner,
|
|
327
|
-
Ce.setExtraStackFrame(
|
|
326
|
+
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
327
|
+
Ce.setExtraStackFrame(a);
|
|
328
328
|
} else
|
|
329
329
|
Ce.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function Xe(e, t,
|
|
331
|
+
function Xe(e, t, a, f, h) {
|
|
332
332
|
{
|
|
333
333
|
var v = Function.call.bind(re);
|
|
334
334
|
for (var _ in e)
|
|
@@ -336,14 +336,14 @@ function gt() {
|
|
|
336
336
|
var m = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof e[_] != "function") {
|
|
339
|
-
var T = Error((
|
|
339
|
+
var T = Error((f || "React class") + ": " + a + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw T.name = "Invariant Violation", T;
|
|
341
341
|
}
|
|
342
|
-
m = e[_](t, _,
|
|
342
|
+
m = e[_](t, _, f, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (y) {
|
|
344
344
|
m = y;
|
|
345
345
|
}
|
|
346
|
-
m && !(m instanceof Error) && (ae(
|
|
346
|
+
m && !(m instanceof Error) && (ae(h), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", f || "React class", a, _, typeof m), ae(null)), m instanceof Error && !(m.message in Te) && (Te[m.message] = !0, ae(h), x("Failed %s type: %s", a, m.message), ae(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -353,8 +353,8 @@ function gt() {
|
|
|
353
353
|
}
|
|
354
354
|
function Qe(e) {
|
|
355
355
|
{
|
|
356
|
-
var t = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
356
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return a;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function et(e) {
|
|
@@ -396,40 +396,40 @@ function gt() {
|
|
|
396
396
|
}
|
|
397
397
|
function nt(e, t) {
|
|
398
398
|
if (typeof e.ref == "string" && G.current && t && G.current.stateNode !== t) {
|
|
399
|
-
var
|
|
400
|
-
he[
|
|
399
|
+
var a = j(G.current.type);
|
|
400
|
+
he[a] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(G.current.type), e.ref), he[a] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
function lt(e, t) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
405
|
+
var a = function() {
|
|
406
406
|
Se || (Se = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
|
+
get: a,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
function st(e, t) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
416
|
+
var a = function() {
|
|
417
417
|
$e || ($e = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
|
+
get: a,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var ot = function(e, t, a, f, h, v, _) {
|
|
426
426
|
var m = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
428
|
+
$$typeof: o,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
431
|
key: t,
|
|
432
|
-
ref:
|
|
432
|
+
ref: a,
|
|
433
433
|
props: _,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: v
|
|
@@ -443,18 +443,18 @@ function gt() {
|
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
446
|
+
value: f
|
|
447
447
|
}), Object.defineProperty(m, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
451
|
+
value: h
|
|
452
452
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function it(e, t, a, f, h) {
|
|
455
455
|
{
|
|
456
456
|
var v, _ = {}, m = null, T = null;
|
|
457
|
-
|
|
457
|
+
a !== void 0 && (Oe(a), m = "" + a), at(t) && (Oe(t.key), m = "" + t.key), rt(t) && (T = t.ref, nt(t, h));
|
|
458
458
|
for (v in t)
|
|
459
459
|
re.call(t, v) && !tt.hasOwnProperty(v) && (_[v] = t[v]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
@@ -466,21 +466,21 @@ function gt() {
|
|
|
466
466
|
var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
467
|
m && lt(_, E), T && st(_, E);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return ot(e, m, T, h, f, G.current, _);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var ve = P.ReactCurrentOwner, Fe = P.ReactDebugCurrentFrame;
|
|
473
|
-
function
|
|
473
|
+
function B(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var t = e._owner,
|
|
476
|
-
Fe.setExtraStackFrame(
|
|
475
|
+
var t = e._owner, a = te(e.type, e._source, t ? t.type : null);
|
|
476
|
+
Fe.setExtraStackFrame(a);
|
|
477
477
|
} else
|
|
478
478
|
Fe.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var be;
|
|
481
481
|
be = !1;
|
|
482
482
|
function ge(e) {
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
483
|
+
return typeof e == "object" && e !== null && e.$$typeof === o;
|
|
484
484
|
}
|
|
485
485
|
function Ie() {
|
|
486
486
|
{
|
|
@@ -497,10 +497,10 @@ Check the render method of \`` + e + "`.";
|
|
|
497
497
|
function ct(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var t = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
500
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` + t + ":" +
|
|
503
|
+
Check your code at ` + t + ":" + a + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
@@ -510,10 +510,10 @@ Check your code at ` + t + ":" + n + ".";
|
|
|
510
510
|
{
|
|
511
511
|
var t = Ie();
|
|
512
512
|
if (!t) {
|
|
513
|
-
var
|
|
514
|
-
|
|
513
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
+
a && (t = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + a + ">.");
|
|
517
517
|
}
|
|
518
518
|
return t;
|
|
519
519
|
}
|
|
@@ -523,12 +523,12 @@ Check the top-level render call using <` + n + ">.");
|
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (De[
|
|
526
|
+
var a = ut(t);
|
|
527
|
+
if (De[a])
|
|
528
528
|
return;
|
|
529
|
-
De[
|
|
530
|
-
var
|
|
531
|
-
e && e._owner && e._owner !== ve.current && (
|
|
529
|
+
De[a] = !0;
|
|
530
|
+
var f = "";
|
|
531
|
+
e && e._owner && e._owner !== ve.current && (f = " It was passed a child from " + j(e._owner.type) + "."), B(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, f), B(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function We(e, t) {
|
|
@@ -536,16 +536,16 @@ Check the top-level render call using <` + n + ">.");
|
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (ke(e))
|
|
539
|
-
for (var
|
|
540
|
-
var
|
|
541
|
-
ge(
|
|
539
|
+
for (var a = 0; a < e.length; a++) {
|
|
540
|
+
var f = e[a];
|
|
541
|
+
ge(f) && Ae(f, t);
|
|
542
542
|
}
|
|
543
543
|
else if (ge(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var v =
|
|
546
|
+
var h = F(e);
|
|
547
|
+
if (typeof h == "function" && h !== e.entries)
|
|
548
|
+
for (var v = h.call(e), _; !(_ = v.next()).done; )
|
|
549
549
|
ge(_.value) && Ae(_.value, t);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
@@ -555,122 +555,122 @@ Check the top-level render call using <` + n + ">.");
|
|
|
555
555
|
var t = e.type;
|
|
556
556
|
if (t == null || typeof t == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
558
|
+
var a;
|
|
559
559
|
if (typeof t == "function")
|
|
560
|
-
|
|
561
|
-
else if (typeof t == "object" && (t.$$typeof ===
|
|
560
|
+
a = t.propTypes;
|
|
561
|
+
else if (typeof t == "object" && (t.$$typeof === u || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
563
|
t.$$typeof === w))
|
|
564
|
-
|
|
564
|
+
a = t.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var
|
|
569
|
-
Xe(
|
|
567
|
+
if (a) {
|
|
568
|
+
var f = j(t);
|
|
569
|
+
Xe(a, e.props, "prop", f, e);
|
|
570
570
|
} else if (t.PropTypes !== void 0 && !be) {
|
|
571
571
|
be = !0;
|
|
572
|
-
var
|
|
573
|
-
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
572
|
+
var h = j(t);
|
|
573
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
574
574
|
}
|
|
575
575
|
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
578
|
function pt(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var t = Object.keys(e.props),
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
580
|
+
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
581
|
+
var f = t[a];
|
|
582
|
+
if (f !== "children" && f !== "key") {
|
|
583
|
+
B(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", f), B(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (B(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function Ye(e, t,
|
|
590
|
+
function Ye(e, t, a, f, h, v) {
|
|
591
591
|
{
|
|
592
|
-
var _ =
|
|
592
|
+
var _ = ie(e);
|
|
593
593
|
if (!_) {
|
|
594
594
|
var m = "";
|
|
595
595
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (m += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
-
var T = ct(
|
|
596
|
+
var T = ct(h);
|
|
597
597
|
T ? m += T : m += Ie();
|
|
598
598
|
var y;
|
|
599
|
-
e === null ? y = "null" : ke(e) ? y = "array" : e !== void 0 && e.$$typeof ===
|
|
599
|
+
e === null ? y = "null" : ke(e) ? y = "array" : e !== void 0 && e.$$typeof === o ? (y = "<" + (j(e.type) || "Unknown") + " />", m = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, m);
|
|
600
600
|
}
|
|
601
|
-
var E =
|
|
601
|
+
var E = it(e, t, a, h, v);
|
|
602
602
|
if (E == null)
|
|
603
603
|
return E;
|
|
604
604
|
if (_) {
|
|
605
605
|
var O = t.children;
|
|
606
606
|
if (O !== void 0)
|
|
607
|
-
if (
|
|
607
|
+
if (f)
|
|
608
608
|
if (ke(O)) {
|
|
609
|
-
for (var
|
|
610
|
-
We(O[
|
|
609
|
+
for (var L = 0; L < O.length; L++)
|
|
610
|
+
We(O[L], e);
|
|
611
611
|
Object.freeze && Object.freeze(O);
|
|
612
612
|
} else
|
|
613
613
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
615
|
We(O, e);
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === i ? pt(E) : ft(E), E;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function dt(e, t,
|
|
621
|
-
return Ye(e, t,
|
|
620
|
+
function dt(e, t, a) {
|
|
621
|
+
return Ye(e, t, a, !0);
|
|
622
622
|
}
|
|
623
|
-
function mt(e, t,
|
|
624
|
-
return Ye(e, t,
|
|
623
|
+
function mt(e, t, a) {
|
|
624
|
+
return Ye(e, t, a, !1);
|
|
625
625
|
}
|
|
626
626
|
var _t = mt, kt = dt;
|
|
627
|
-
z.Fragment =
|
|
627
|
+
z.Fragment = i, z.jsx = _t, z.jsxs = kt;
|
|
628
628
|
}()), z;
|
|
629
629
|
}
|
|
630
630
|
process.env.NODE_ENV === "production" ? ye.exports = bt() : ye.exports = gt();
|
|
631
631
|
var xe = ye.exports;
|
|
632
|
-
const V = xe.Fragment, r = xe.jsx,
|
|
633
|
-
function yt(
|
|
634
|
-
return !Ne[
|
|
632
|
+
const V = xe.Fragment, r = xe.jsx, p = xe.jsxs, Ne = {}, Nt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
633
|
+
function yt(n, o) {
|
|
634
|
+
return !Ne[n] && typeof window.fetch == "function" && (Ne[n] = window.fetch(o + n + ".svg").then((s) => s.ok ? s.text() : (console.error("Missing icon: " + o + n + ".svg"), Nt)).then((s) => s)), Promise.resolve(Ne[n]);
|
|
635
635
|
}
|
|
636
|
-
const b = ({ name:
|
|
637
|
-
const
|
|
636
|
+
const b = ({ name: n, path: o, className: s = "", ...i }) => {
|
|
637
|
+
const d = "https://punkt-cdn.oslo.kommune.no/5.2/icons/", [c, k] = le(null);
|
|
638
638
|
return ht(() => {
|
|
639
|
-
if (!
|
|
639
|
+
if (!n)
|
|
640
640
|
return;
|
|
641
|
-
yt(
|
|
642
|
-
}, [
|
|
641
|
+
yt(n, o || d).then((u) => k(u));
|
|
642
|
+
}, [n, o, d]), c ? /* @__PURE__ */ r(
|
|
643
643
|
"span",
|
|
644
644
|
{
|
|
645
|
-
className: `pkt-icon ${
|
|
646
|
-
dangerouslySetInnerHTML: { __html:
|
|
647
|
-
...
|
|
645
|
+
className: `pkt-icon ${s}`,
|
|
646
|
+
dangerouslySetInnerHTML: { __html: c },
|
|
647
|
+
...i
|
|
648
648
|
}
|
|
649
649
|
) : null;
|
|
650
650
|
}, Ve = W(
|
|
651
651
|
({
|
|
652
|
-
children:
|
|
653
|
-
className:
|
|
654
|
-
skin:
|
|
655
|
-
closeAlert:
|
|
656
|
-
onClose:
|
|
657
|
-
title:
|
|
658
|
-
date:
|
|
659
|
-
ariaLive:
|
|
660
|
-
...
|
|
652
|
+
children: n,
|
|
653
|
+
className: o,
|
|
654
|
+
skin: s = "info",
|
|
655
|
+
closeAlert: i = !1,
|
|
656
|
+
onClose: d,
|
|
657
|
+
title: c,
|
|
658
|
+
date: k,
|
|
659
|
+
ariaLive: l = "polite",
|
|
660
|
+
...u
|
|
661
661
|
}, g) => {
|
|
662
|
-
const N = [
|
|
663
|
-
R(!1),
|
|
662
|
+
const N = [o, "pkt-alert", s && `pkt-alert--${s}`].filter(Boolean).join(" "), [w, R] = le(!0), C = () => {
|
|
663
|
+
R(!1), d && d();
|
|
664
664
|
};
|
|
665
|
-
return w ? /* @__PURE__ */
|
|
665
|
+
return w ? /* @__PURE__ */ p("div", { ...u, className: N, "aria-live": l, ref: g, children: [
|
|
666
666
|
/* @__PURE__ */ r(
|
|
667
667
|
b,
|
|
668
668
|
{
|
|
669
669
|
className: "pkt-alert__icon",
|
|
670
|
-
name:
|
|
670
|
+
name: s === "info" ? "alert-information" : `alert-${s}`
|
|
671
671
|
}
|
|
672
672
|
),
|
|
673
|
-
|
|
673
|
+
i && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
|
|
674
674
|
"button",
|
|
675
675
|
{
|
|
676
676
|
type: "button",
|
|
@@ -681,87 +681,88 @@ const b = ({ name: l, path: s, className: i = "", ...c }) => {
|
|
|
681
681
|
children: /* @__PURE__ */ r(b, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
682
682
|
}
|
|
683
683
|
) }),
|
|
684
|
-
|
|
685
|
-
/* @__PURE__ */ r("div", { className: "pkt-alert__text", children:
|
|
686
|
-
|
|
684
|
+
c && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: c }),
|
|
685
|
+
/* @__PURE__ */ r("div", { className: "pkt-alert__text", children: n }),
|
|
686
|
+
k && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
|
|
687
687
|
"Sist oppdatert: ",
|
|
688
|
-
|
|
688
|
+
k
|
|
689
689
|
] })
|
|
690
690
|
] }) : null;
|
|
691
691
|
}
|
|
692
692
|
), Ue = W(
|
|
693
693
|
({
|
|
694
|
-
children:
|
|
695
|
-
className:
|
|
696
|
-
iconName:
|
|
697
|
-
secondIconName:
|
|
698
|
-
size:
|
|
699
|
-
skin:
|
|
700
|
-
type:
|
|
701
|
-
variant:
|
|
702
|
-
...
|
|
694
|
+
children: n,
|
|
695
|
+
className: o,
|
|
696
|
+
iconName: s = "user",
|
|
697
|
+
secondIconName: i = "user",
|
|
698
|
+
size: d = "medium",
|
|
699
|
+
skin: c = "primary",
|
|
700
|
+
type: k = "button",
|
|
701
|
+
variant: l = "label-only",
|
|
702
|
+
...u
|
|
703
703
|
}, g) => {
|
|
704
704
|
const N = [
|
|
705
|
-
|
|
705
|
+
o,
|
|
706
706
|
"pkt-btn",
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
d && `pkt-btn--${d}`,
|
|
708
|
+
c && `pkt-btn--${c}`,
|
|
709
|
+
l && `pkt-btn--${l}`
|
|
710
710
|
].filter(Boolean).join(" ");
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
|
|
713
|
-
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children:
|
|
714
|
-
|
|
711
|
+
return /* @__PURE__ */ p("button", { ...u, className: N, type: k, ref: g, children: [
|
|
712
|
+
l !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: s }),
|
|
713
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: n }),
|
|
714
|
+
l === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: i })
|
|
715
715
|
] });
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
718
|
Ue.displayName = "PktButton";
|
|
719
|
-
const St = ({ columnOne:
|
|
720
|
-
var c,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
|
|
727
|
-
|
|
719
|
+
const St = ({ columnOne: n, columnTwo: o, socialLinks: s, className: i }) => {
|
|
720
|
+
var c, k;
|
|
721
|
+
const d = [i, "pkt-footer"].filter(Boolean).join(" ");
|
|
722
|
+
return /* @__PURE__ */ r("footer", { className: d, "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
|
|
723
|
+
/* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
724
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
725
|
+
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: n.title }),
|
|
726
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
727
|
+
n.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: n.text }),
|
|
728
|
+
(c = n.links) == null ? void 0 : c.map((l, u) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
728
729
|
"a",
|
|
729
730
|
{
|
|
730
|
-
className: `pkt-footer__link ${
|
|
731
|
-
href:
|
|
732
|
-
target:
|
|
733
|
-
rel:
|
|
731
|
+
className: `pkt-footer__link ${l.external ? "pkt-link--external" : ""}`,
|
|
732
|
+
href: l.href,
|
|
733
|
+
target: l.openInNewTab ? "_blank" : "_self",
|
|
734
|
+
rel: l.openInNewTab ? "noopener noreferrer" : void 0,
|
|
734
735
|
children: [
|
|
735
736
|
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
736
|
-
|
|
737
|
+
l.text
|
|
737
738
|
]
|
|
738
739
|
}
|
|
739
|
-
) }, `links-${
|
|
740
|
+
) }, `links-${u}`))
|
|
740
741
|
] })
|
|
741
742
|
] }),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children:
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
|
|
746
|
-
(
|
|
743
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
744
|
+
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: o.title }),
|
|
745
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
746
|
+
o.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: o.text }),
|
|
747
|
+
(k = o.links) == null ? void 0 : k.map((l, u) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
747
748
|
"a",
|
|
748
749
|
{
|
|
749
|
-
className: `pkt-footer__link ${
|
|
750
|
-
href:
|
|
751
|
-
target:
|
|
752
|
-
rel:
|
|
750
|
+
className: `pkt-footer__link ${l.external ? "pkt-link--external" : ""}`,
|
|
751
|
+
href: l.href,
|
|
752
|
+
target: l.openInNewTab ? "_blank" : "_self",
|
|
753
|
+
rel: l.openInNewTab ? "noopener noreferrer" : void 0,
|
|
753
754
|
children: [
|
|
754
755
|
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
755
|
-
|
|
756
|
+
l.text
|
|
756
757
|
]
|
|
757
758
|
}
|
|
758
|
-
) }, `links-${
|
|
759
|
+
) }, `links-${u}`))
|
|
759
760
|
] })
|
|
760
761
|
] }),
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
762
763
|
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */
|
|
764
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
765
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
765
766
|
"a",
|
|
766
767
|
{
|
|
767
768
|
className: "pkt-footer__link",
|
|
@@ -772,125 +773,129 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
|
|
|
772
773
|
]
|
|
773
774
|
}
|
|
774
775
|
) }),
|
|
775
|
-
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
776
777
|
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
777
778
|
"Tilgjengelighet"
|
|
778
779
|
] }) })
|
|
779
780
|
] })
|
|
780
781
|
] })
|
|
781
782
|
] }),
|
|
782
|
-
|
|
783
|
-
/* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children:
|
|
783
|
+
s && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
784
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: s.filter((l) => l.language).map((l, u) => /* @__PURE__ */ r(
|
|
784
785
|
"div",
|
|
785
786
|
{
|
|
786
787
|
className: "pkt-footer__social-language",
|
|
787
788
|
children: /* @__PURE__ */ r(
|
|
788
789
|
"a",
|
|
789
790
|
{
|
|
790
|
-
href:
|
|
791
|
-
"aria-label": `til ${
|
|
792
|
-
target:
|
|
793
|
-
rel:
|
|
794
|
-
children:
|
|
791
|
+
href: l.href,
|
|
792
|
+
"aria-label": `til ${l.language} versjon av nettsiden`,
|
|
793
|
+
target: l.openInNewTab ? "_blank" : "_self",
|
|
794
|
+
rel: l.openInNewTab ? "noopener noreferrer" : void 0,
|
|
795
|
+
children: l.language
|
|
795
796
|
}
|
|
796
797
|
)
|
|
797
798
|
},
|
|
798
|
-
`sociallinks-language-${
|
|
799
|
+
`sociallinks-language-${u}`
|
|
799
800
|
)) }),
|
|
800
|
-
/* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children:
|
|
801
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: s.filter((l) => l.iconName).map((l, u) => /* @__PURE__ */ r(ne.Fragment, { children: /* @__PURE__ */ r(
|
|
801
802
|
"a",
|
|
802
803
|
{
|
|
803
|
-
href:
|
|
804
|
-
"aria-label": `til ${
|
|
804
|
+
href: l.href,
|
|
805
|
+
"aria-label": `til ${l.iconName}`,
|
|
805
806
|
className: "pkt-footer__social-icon-link",
|
|
806
|
-
target:
|
|
807
|
-
rel:
|
|
808
|
-
children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name:
|
|
807
|
+
target: l.openInNewTab ? "_blank" : "_self",
|
|
808
|
+
rel: l.openInNewTab ? "noopener noreferrer" : void 0,
|
|
809
|
+
children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name: l.iconName })
|
|
809
810
|
}
|
|
810
|
-
) }, `sociallinks-${
|
|
811
|
+
) }, `sociallinks-${u}`)) })
|
|
811
812
|
] })
|
|
812
813
|
] }) });
|
|
813
814
|
}, $t = ({
|
|
814
|
-
links:
|
|
815
|
-
|
|
816
|
-
l.map((s, i) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u(
|
|
817
|
-
"a",
|
|
818
|
-
{
|
|
819
|
-
className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
|
|
820
|
-
href: s.href,
|
|
821
|
-
target: s.openInNewTab ? "_blank" : "_self",
|
|
822
|
-
rel: s.openInNewTab ? "noopener noreferrer" : void 0,
|
|
823
|
-
children: [
|
|
824
|
-
/* @__PURE__ */ r(
|
|
825
|
-
b,
|
|
826
|
-
{
|
|
827
|
-
className: "pkt-footer-simple__link-icon",
|
|
828
|
-
name: "chevron-right"
|
|
829
|
-
}
|
|
830
|
-
),
|
|
831
|
-
s.text
|
|
832
|
-
]
|
|
833
|
-
}
|
|
834
|
-
) }, i)),
|
|
835
|
-
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
836
|
-
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
837
|
-
"Personvern og informasjonskapsler"
|
|
838
|
-
] }) }),
|
|
839
|
-
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ u("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
840
|
-
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
841
|
-
"Tilgjengelighet"
|
|
842
|
-
] }) })
|
|
843
|
-
] }) }) }), Ft = ({
|
|
844
|
-
className: l,
|
|
845
|
-
logoLink: s = "https://www.oslo.kommune.no/",
|
|
846
|
-
isLoggedIn: i = !1,
|
|
847
|
-
representing: c = "",
|
|
848
|
-
canChangeRepresentation: f = !1,
|
|
849
|
-
showLogInButton: a = !0,
|
|
850
|
-
onLogIn: p,
|
|
851
|
-
onLogOut: h,
|
|
852
|
-
onChangeRepresentation: d
|
|
815
|
+
links: n = [],
|
|
816
|
+
className: o
|
|
853
817
|
}) => {
|
|
854
|
-
const
|
|
855
|
-
return /* @__PURE__ */
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
818
|
+
const s = [o, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
819
|
+
return /* @__PURE__ */ r("footer", { className: s, "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
|
|
820
|
+
n.map((i, d) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
|
|
821
|
+
"a",
|
|
822
|
+
{
|
|
823
|
+
className: `pkt-footer-simple__link ${i.external ? " pkt-link--external" : ""}`,
|
|
824
|
+
href: i.href,
|
|
825
|
+
target: i.openInNewTab ? "_blank" : "_self",
|
|
826
|
+
rel: i.openInNewTab ? "noopener noreferrer" : void 0,
|
|
827
|
+
children: [
|
|
828
|
+
/* @__PURE__ */ r(
|
|
829
|
+
b,
|
|
830
|
+
{
|
|
831
|
+
className: "pkt-footer-simple__link-icon",
|
|
832
|
+
name: "chevron-right"
|
|
833
|
+
}
|
|
834
|
+
),
|
|
835
|
+
i.text
|
|
836
|
+
]
|
|
837
|
+
}
|
|
838
|
+
) }, d)),
|
|
839
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
840
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
841
|
+
"Personvern og informasjonskapsler"
|
|
842
|
+
] }) }),
|
|
843
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
844
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
845
|
+
"Tilgjengelighet"
|
|
846
|
+
] }) })
|
|
847
|
+
] }) }) });
|
|
848
|
+
}, Ft = ({
|
|
849
|
+
className: n,
|
|
850
|
+
logoLink: o = "https://www.oslo.kommune.no/",
|
|
851
|
+
isLoggedIn: s = !1,
|
|
852
|
+
representing: i = "",
|
|
853
|
+
canChangeRepresentation: d = !1,
|
|
854
|
+
showLogInButton: c = !0,
|
|
855
|
+
onLogIn: k,
|
|
856
|
+
onLogOut: l,
|
|
857
|
+
onChangeRepresentation: u
|
|
858
|
+
}) => {
|
|
859
|
+
const g = [n, "pkt-header"].filter(Boolean).join(" ");
|
|
860
|
+
return /* @__PURE__ */ p("header", { id: "pkt-header", className: g, "aria-label": "Topp", children: [
|
|
861
|
+
/* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: o, children: /* @__PURE__ */ r(b, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.2/logos/" }) }) }),
|
|
862
|
+
/* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
|
|
863
|
+
s && d && /* @__PURE__ */ p(
|
|
859
864
|
"button",
|
|
860
865
|
{
|
|
861
866
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
862
|
-
"aria-label": `Bytt bruker fra ${
|
|
863
|
-
onClick:
|
|
867
|
+
"aria-label": `Bytt bruker fra ${i}`,
|
|
868
|
+
onClick: u,
|
|
864
869
|
children: [
|
|
865
870
|
/* @__PURE__ */ r(b, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
|
|
866
871
|
/* @__PURE__ */ r("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
|
|
867
872
|
/* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
|
|
868
|
-
/* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children:
|
|
873
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: i })
|
|
869
874
|
]
|
|
870
875
|
}
|
|
871
876
|
),
|
|
872
|
-
|
|
873
|
-
/* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children:
|
|
877
|
+
s && !d && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
|
|
878
|
+
/* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: i }) }),
|
|
874
879
|
/* @__PURE__ */ r(b, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
|
|
875
880
|
] }),
|
|
876
|
-
|
|
881
|
+
c && s && /* @__PURE__ */ p(
|
|
877
882
|
"button",
|
|
878
883
|
{
|
|
879
884
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
880
885
|
"aria-label": "Logg ut",
|
|
881
|
-
onClick:
|
|
886
|
+
onClick: l,
|
|
882
887
|
children: [
|
|
883
888
|
/* @__PURE__ */ r(b, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
884
889
|
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
885
890
|
]
|
|
886
891
|
}
|
|
887
892
|
),
|
|
888
|
-
|
|
893
|
+
c && !s && /* @__PURE__ */ p(
|
|
889
894
|
"button",
|
|
890
895
|
{
|
|
891
896
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
892
897
|
"aria-label": "Logg inn",
|
|
893
|
-
onClick:
|
|
898
|
+
onClick: k,
|
|
894
899
|
children: [
|
|
895
900
|
/* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: "user" }),
|
|
896
901
|
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
@@ -900,38 +905,38 @@ const St = ({ columnOne: l, columnTwo: s, socialLinks: i }) => {
|
|
|
900
905
|
] })
|
|
901
906
|
] });
|
|
902
907
|
}, xt = ne.forwardRef(
|
|
903
|
-
({ label:
|
|
904
|
-
/* @__PURE__ */ r("label", { htmlFor:
|
|
905
|
-
/* @__PURE__ */ r("input", { className: "pkt-form-input", id:
|
|
906
|
-
|
|
908
|
+
({ label: n, id: o, children: s, ...i }, d) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
909
|
+
/* @__PURE__ */ r("label", { htmlFor: o, className: "pkt-form-label", children: n }),
|
|
910
|
+
/* @__PURE__ */ r("input", { className: "pkt-form-input", id: o, ...i, ref: d }),
|
|
911
|
+
s
|
|
907
912
|
] })
|
|
908
913
|
);
|
|
909
914
|
xt.displayName = "PktInput";
|
|
910
915
|
const Et = W(
|
|
911
916
|
({
|
|
912
|
-
children:
|
|
913
|
-
className:
|
|
914
|
-
iconName:
|
|
915
|
-
openInNewTab:
|
|
916
|
-
skin:
|
|
917
|
-
href:
|
|
918
|
-
external:
|
|
919
|
-
title:
|
|
920
|
-
},
|
|
921
|
-
const g = [
|
|
922
|
-
return /* @__PURE__ */
|
|
917
|
+
children: n,
|
|
918
|
+
className: o,
|
|
919
|
+
iconName: s = "user",
|
|
920
|
+
openInNewTab: i = !1,
|
|
921
|
+
skin: d = "normal",
|
|
922
|
+
href: c = "#",
|
|
923
|
+
external: k = !1,
|
|
924
|
+
title: l
|
|
925
|
+
}, u) => {
|
|
926
|
+
const g = [o, "pkt-linkcard", d && `pkt-linkcard--${d}`].filter(Boolean).join(" ");
|
|
927
|
+
return /* @__PURE__ */ p(
|
|
923
928
|
"a",
|
|
924
929
|
{
|
|
925
|
-
href:
|
|
930
|
+
href: c,
|
|
926
931
|
className: `pkt-linkcard pkt-link ${g}`,
|
|
927
|
-
target:
|
|
928
|
-
rel:
|
|
929
|
-
ref:
|
|
932
|
+
target: i ? "_blank" : "_self",
|
|
933
|
+
rel: i ? "noopener noreferrer" : void 0,
|
|
934
|
+
ref: u,
|
|
930
935
|
children: [
|
|
931
|
-
/* @__PURE__ */ r(b, { className: "pkt-link__icon", name:
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
/* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${
|
|
934
|
-
/* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children:
|
|
936
|
+
/* @__PURE__ */ r(b, { className: "pkt-link__icon", name: s }),
|
|
937
|
+
/* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
|
|
938
|
+
/* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${k ? "pkt-link pkt-link--external" : ""}`, children: l }),
|
|
939
|
+
/* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: n })
|
|
935
940
|
] })
|
|
936
941
|
]
|
|
937
942
|
}
|
|
@@ -940,26 +945,26 @@ const Et = W(
|
|
|
940
945
|
);
|
|
941
946
|
Et.displayName = "PktLinkCard";
|
|
942
947
|
const It = ({
|
|
943
|
-
children:
|
|
944
|
-
skin:
|
|
945
|
-
title:
|
|
946
|
-
...
|
|
948
|
+
children: n,
|
|
949
|
+
skin: o = "beige",
|
|
950
|
+
title: s,
|
|
951
|
+
...i
|
|
947
952
|
}) => {
|
|
948
|
-
const
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children:
|
|
951
|
-
/* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children:
|
|
953
|
+
const d = ["pkt-messagebox", o && `pkt-messagebox--${o}`].filter(Boolean).join(" ");
|
|
954
|
+
return /* @__PURE__ */ p("div", { ...i, className: d, children: [
|
|
955
|
+
/* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: s }),
|
|
956
|
+
/* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: n })
|
|
952
957
|
] });
|
|
953
958
|
}, wt = W(
|
|
954
|
-
({ id:
|
|
955
|
-
/* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id:
|
|
956
|
-
/* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor:
|
|
959
|
+
({ id: n, name: o, label: s, value: i, ...d }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
960
|
+
/* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: n, name: o, value: i, ref: c, ...d }),
|
|
961
|
+
/* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: n, children: s })
|
|
957
962
|
] })
|
|
958
963
|
);
|
|
959
964
|
wt.displayName = "PktRadio";
|
|
960
|
-
const Dt = ({ label:
|
|
961
|
-
/* @__PURE__ */ r("p", { children:
|
|
962
|
-
/* @__PURE__ */ r("div", { className: "pkt-form-group", children:
|
|
965
|
+
const Dt = ({ label: n, children: o }) => /* @__PURE__ */ p(V, { children: [
|
|
966
|
+
/* @__PURE__ */ r("p", { children: n }),
|
|
967
|
+
/* @__PURE__ */ r("div", { className: "pkt-form-group", children: o })
|
|
963
968
|
] });
|
|
964
969
|
var He = { exports: {} };
|
|
965
970
|
/*!
|
|
@@ -967,62 +972,62 @@ var He = { exports: {} };
|
|
|
967
972
|
Licensed under the MIT License (MIT), see
|
|
968
973
|
http://jedwatson.github.io/classnames
|
|
969
974
|
*/
|
|
970
|
-
(function(
|
|
975
|
+
(function(n) {
|
|
971
976
|
(function() {
|
|
972
|
-
var
|
|
973
|
-
function
|
|
974
|
-
for (var
|
|
975
|
-
var
|
|
976
|
-
if (
|
|
977
|
-
var
|
|
978
|
-
if (
|
|
979
|
-
|
|
980
|
-
else if (Array.isArray(
|
|
981
|
-
if (
|
|
982
|
-
var
|
|
983
|
-
|
|
977
|
+
var o = {}.hasOwnProperty;
|
|
978
|
+
function s() {
|
|
979
|
+
for (var i = [], d = 0; d < arguments.length; d++) {
|
|
980
|
+
var c = arguments[d];
|
|
981
|
+
if (c) {
|
|
982
|
+
var k = typeof c;
|
|
983
|
+
if (k === "string" || k === "number")
|
|
984
|
+
i.push(c);
|
|
985
|
+
else if (Array.isArray(c)) {
|
|
986
|
+
if (c.length) {
|
|
987
|
+
var l = s.apply(null, c);
|
|
988
|
+
l && i.push(l);
|
|
984
989
|
}
|
|
985
|
-
} else if (
|
|
986
|
-
if (
|
|
987
|
-
|
|
990
|
+
} else if (k === "object") {
|
|
991
|
+
if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
|
|
992
|
+
i.push(c.toString());
|
|
988
993
|
continue;
|
|
989
994
|
}
|
|
990
|
-
for (var
|
|
991
|
-
|
|
995
|
+
for (var u in c)
|
|
996
|
+
o.call(c, u) && c[u] && i.push(u);
|
|
992
997
|
}
|
|
993
998
|
}
|
|
994
999
|
}
|
|
995
|
-
return
|
|
1000
|
+
return i.join(" ");
|
|
996
1001
|
}
|
|
997
|
-
|
|
1002
|
+
n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
|
|
998
1003
|
})();
|
|
999
1004
|
})(He);
|
|
1000
1005
|
var Rt = He.exports;
|
|
1001
|
-
const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive:
|
|
1002
|
-
isResponsive:
|
|
1003
|
-
modifiers: { info:
|
|
1004
|
-
children:
|
|
1005
|
-
}) => /* @__PURE__ */ r(Tt, { isResponsive:
|
|
1006
|
+
const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: n, children: o }) => n ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: o }) : /* @__PURE__ */ r(V, { children: o }), At = ({
|
|
1007
|
+
isResponsive: n,
|
|
1008
|
+
modifiers: { info: o = !1, success: s = !1, strong: i = !1, shadow: d = !1 } = {},
|
|
1009
|
+
children: c
|
|
1010
|
+
}) => /* @__PURE__ */ r(Tt, { isResponsive: n, children: /* @__PURE__ */ r(
|
|
1006
1011
|
"table",
|
|
1007
1012
|
{
|
|
1008
1013
|
className: Pt("pkt-table", {
|
|
1009
|
-
"pkt-table--info":
|
|
1010
|
-
"pkt-table--success":
|
|
1011
|
-
"pkt-table--strong":
|
|
1012
|
-
"pkt-table--shadow":
|
|
1014
|
+
"pkt-table--info": o,
|
|
1015
|
+
"pkt-table--success": s,
|
|
1016
|
+
"pkt-table--strong": i,
|
|
1017
|
+
"pkt-table--shadow": d
|
|
1013
1018
|
}),
|
|
1014
|
-
children:
|
|
1019
|
+
children: c
|
|
1015
1020
|
}
|
|
1016
|
-
) }), Wt = ({ children:
|
|
1017
|
-
children:
|
|
1018
|
-
className:
|
|
1019
|
-
skin:
|
|
1020
|
-
textStyle:
|
|
1021
|
-
size:
|
|
1022
|
-
closeTag:
|
|
1023
|
-
iconName:
|
|
1024
|
-
type:
|
|
1025
|
-
ariaLabel:
|
|
1021
|
+
) }), Wt = ({ children: n }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: n }), Yt = ({ children: n }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: n }), Ct = W(({
|
|
1022
|
+
children: n,
|
|
1023
|
+
className: o,
|
|
1024
|
+
skin: s = "blue",
|
|
1025
|
+
textStyle: i = "normal-text",
|
|
1026
|
+
size: d = "medium",
|
|
1027
|
+
closeTag: c = !1,
|
|
1028
|
+
iconName: k = "",
|
|
1029
|
+
type: l = "button",
|
|
1030
|
+
ariaLabel: u = "close",
|
|
1026
1031
|
onClick: g = () => {
|
|
1027
1032
|
}
|
|
1028
1033
|
}, N) => {
|
|
@@ -1030,72 +1035,72 @@ const Pt = /* @__PURE__ */ vt(Rt), Tt = ({ isResponsive: l, children: s }) => l
|
|
|
1030
1035
|
R(!0), g(P);
|
|
1031
1036
|
}, $ = [
|
|
1032
1037
|
"pkt-tag",
|
|
1033
|
-
|
|
1038
|
+
d && `pkt-tag--${d}`,
|
|
1039
|
+
s && `pkt-tag--${s}`,
|
|
1034
1040
|
i && `pkt-tag--${i}`,
|
|
1035
|
-
|
|
1036
|
-
s
|
|
1041
|
+
o
|
|
1037
1042
|
].filter(Boolean).join(" "), S = [
|
|
1038
1043
|
"pkt-tag",
|
|
1039
1044
|
"pkt-btn",
|
|
1040
1045
|
"pkt-btn--tertiary",
|
|
1041
|
-
|
|
1046
|
+
d && `pkt-tag--${d}`,
|
|
1047
|
+
s && `pkt-tag--${s}`,
|
|
1042
1048
|
i && `pkt-tag--${i}`,
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
s
|
|
1049
|
+
k && c ? "pkt-btn--icons-right-and-left" : null,
|
|
1050
|
+
c && !k ? "pkt-btn--icon-right" : null,
|
|
1051
|
+
o
|
|
1047
1052
|
].filter(Boolean).join(" "), F = !w;
|
|
1048
|
-
return
|
|
1053
|
+
return c && k ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ p(
|
|
1049
1054
|
"button",
|
|
1050
1055
|
{
|
|
1051
1056
|
className: S,
|
|
1052
|
-
type:
|
|
1053
|
-
"aria-label":
|
|
1057
|
+
type: l,
|
|
1058
|
+
"aria-label": u,
|
|
1054
1059
|
onClick: C,
|
|
1055
1060
|
ref: N,
|
|
1056
1061
|
children: [
|
|
1057
|
-
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name:
|
|
1058
|
-
|
|
1062
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: k }),
|
|
1063
|
+
n,
|
|
1059
1064
|
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" })
|
|
1060
1065
|
]
|
|
1061
1066
|
}
|
|
1062
|
-
) }) :
|
|
1067
|
+
) }) : c ? /* @__PURE__ */ r(V, { children: F && /* @__PURE__ */ p(
|
|
1063
1068
|
"button",
|
|
1064
1069
|
{
|
|
1065
1070
|
className: S,
|
|
1066
|
-
type:
|
|
1067
|
-
"aria-label":
|
|
1071
|
+
type: l,
|
|
1072
|
+
"aria-label": u,
|
|
1068
1073
|
onClick: C,
|
|
1069
1074
|
ref: N,
|
|
1070
1075
|
children: [
|
|
1071
1076
|
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1072
|
-
|
|
1077
|
+
n
|
|
1073
1078
|
]
|
|
1074
1079
|
}
|
|
1075
|
-
) }) :
|
|
1076
|
-
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name:
|
|
1077
|
-
|
|
1078
|
-
] }) : /* @__PURE__ */ r("span", { className: $, children:
|
|
1080
|
+
) }) : k ? /* @__PURE__ */ p("span", { className: $, children: [
|
|
1081
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: k }),
|
|
1082
|
+
n
|
|
1083
|
+
] }) : /* @__PURE__ */ r("span", { className: $, children: n });
|
|
1079
1084
|
});
|
|
1080
1085
|
Ct.displayName = "PktTag";
|
|
1081
1086
|
const jt = W(
|
|
1082
|
-
({ id:
|
|
1083
|
-
/* @__PURE__ */ r("label", { htmlFor:
|
|
1084
|
-
/* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id:
|
|
1087
|
+
({ id: n, label: o, ...s }, i) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
1088
|
+
/* @__PURE__ */ r("label", { htmlFor: n, className: "pkt-form-label", children: o }),
|
|
1089
|
+
/* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: n, ref: i, ...s })
|
|
1085
1090
|
] })
|
|
1086
1091
|
);
|
|
1087
1092
|
jt.displayName = "PktTextarea";
|
|
1088
1093
|
const Mt = W(
|
|
1089
1094
|
({
|
|
1090
|
-
id:
|
|
1091
|
-
label:
|
|
1092
|
-
name:
|
|
1093
|
-
srOnlyLabel:
|
|
1094
|
-
helptext:
|
|
1095
|
-
helptextDropdown:
|
|
1096
|
-
helptextDropdownButton:
|
|
1097
|
-
optional:
|
|
1098
|
-
required:
|
|
1095
|
+
id: n,
|
|
1096
|
+
label: o,
|
|
1097
|
+
name: s,
|
|
1098
|
+
srOnlyLabel: i = !1,
|
|
1099
|
+
helptext: d,
|
|
1100
|
+
helptextDropdown: c,
|
|
1101
|
+
helptextDropdownButton: k,
|
|
1102
|
+
optional: l = !1,
|
|
1103
|
+
required: u = !1,
|
|
1099
1104
|
hasError: g = !1,
|
|
1100
1105
|
errorMessage: N,
|
|
1101
1106
|
placeholder: w,
|
|
@@ -1109,28 +1114,28 @@ const Mt = W(
|
|
|
1109
1114
|
inline: se = !1,
|
|
1110
1115
|
ariaLabelledby: U,
|
|
1111
1116
|
ariaDescribedby: K,
|
|
1112
|
-
className:
|
|
1117
|
+
className: oe,
|
|
1113
1118
|
...H
|
|
1114
1119
|
}, q) => {
|
|
1115
|
-
const [Y,
|
|
1116
|
-
|
|
1117
|
-
}, X = () =>
|
|
1120
|
+
const [Y, ie] = le(!1), ce = () => {
|
|
1121
|
+
ie(!Y);
|
|
1122
|
+
}, X = () => l ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : u ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", j = l ? "Valgfritt" : u ? "Må fylles ut" : "", Z = [oe, "pkt-textinput", x ? "pkt-textinput--disabled" : "", se ? "pkt-textinput--inline" : "", g ? "pkt-textinput--error" : ""].join(
|
|
1118
1123
|
" "
|
|
1119
|
-
), A = !!
|
|
1120
|
-
return /* @__PURE__ */
|
|
1121
|
-
/* @__PURE__ */
|
|
1124
|
+
), A = !!c && c !== "";
|
|
1125
|
+
return /* @__PURE__ */ p("div", { className: Z, children: [
|
|
1126
|
+
/* @__PURE__ */ p(
|
|
1122
1127
|
A ? "div" : "label",
|
|
1123
1128
|
{
|
|
1124
|
-
htmlFor:
|
|
1125
|
-
className: `pkt-textinput__label ${
|
|
1129
|
+
htmlFor: n,
|
|
1130
|
+
className: `pkt-textinput__label ${i ? "pkt-sr-only" : ""}`,
|
|
1126
1131
|
"aria-describedby": A ? "" : K,
|
|
1127
1132
|
children: [
|
|
1128
|
-
/* @__PURE__ */
|
|
1129
|
-
|
|
1133
|
+
/* @__PURE__ */ p(A ? "h2" : "span", { children: [
|
|
1134
|
+
o,
|
|
1130
1135
|
j !== "" && /* @__PURE__ */ r("span", { className: X(), children: j })
|
|
1131
1136
|
] }),
|
|
1132
|
-
|
|
1133
|
-
A && /* @__PURE__ */
|
|
1137
|
+
d && /* @__PURE__ */ r("div", { className: "pkt-textinput__helptext", children: d }),
|
|
1138
|
+
A && /* @__PURE__ */ p(V, { children: [
|
|
1134
1139
|
/* @__PURE__ */ r(
|
|
1135
1140
|
Ue,
|
|
1136
1141
|
{
|
|
@@ -1140,7 +1145,7 @@ const Mt = W(
|
|
|
1140
1145
|
iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
|
|
1141
1146
|
className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
|
|
1142
1147
|
onClick: ce,
|
|
1143
|
-
children:
|
|
1148
|
+
children: k || /* @__PURE__ */ p(V, { children: [
|
|
1144
1149
|
"Les mer ",
|
|
1145
1150
|
/* @__PURE__ */ r("span", { className: "pkt-sr-only", children: "om inputfeltet" })
|
|
1146
1151
|
] })
|
|
@@ -1150,20 +1155,20 @@ const Mt = W(
|
|
|
1150
1155
|
"div",
|
|
1151
1156
|
{
|
|
1152
1157
|
className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
|
|
1153
|
-
children: /* @__PURE__ */ r(Ve, { children:
|
|
1158
|
+
children: /* @__PURE__ */ r(Ve, { children: c })
|
|
1154
1159
|
}
|
|
1155
1160
|
),
|
|
1156
1161
|
/* @__PURE__ */ r(
|
|
1157
1162
|
"label",
|
|
1158
1163
|
{
|
|
1159
|
-
htmlFor:
|
|
1164
|
+
htmlFor: n,
|
|
1160
1165
|
className: "pkt-textinput__label pkt-sr-only",
|
|
1161
1166
|
"aria-describedby": K,
|
|
1162
|
-
children:
|
|
1167
|
+
children: o
|
|
1163
1168
|
}
|
|
1164
1169
|
)
|
|
1165
1170
|
] }),
|
|
1166
|
-
F && /* @__PURE__ */
|
|
1171
|
+
F && /* @__PURE__ */ p("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
|
|
1167
1172
|
/* @__PURE__ */ r("div", { className: "pkt-textinput__input-prefix", children: F }),
|
|
1168
1173
|
/* @__PURE__ */ r(
|
|
1169
1174
|
"input",
|
|
@@ -1171,57 +1176,57 @@ const Mt = W(
|
|
|
1171
1176
|
ref: q,
|
|
1172
1177
|
className: "pkt-textinput__input",
|
|
1173
1178
|
type: R,
|
|
1174
|
-
name:
|
|
1175
|
-
id:
|
|
1179
|
+
name: s || n,
|
|
1180
|
+
id: n,
|
|
1176
1181
|
placeholder: w,
|
|
1177
1182
|
autoComplete: C,
|
|
1178
1183
|
value: $,
|
|
1179
1184
|
disabled: x,
|
|
1180
|
-
"aria-required":
|
|
1185
|
+
"aria-required": u,
|
|
1181
1186
|
"aria-invalid": g,
|
|
1182
1187
|
"aria-labelledby": U,
|
|
1183
1188
|
...H
|
|
1184
1189
|
}
|
|
1185
1190
|
)
|
|
1186
1191
|
] }),
|
|
1187
|
-
!F && (S || P) && /* @__PURE__ */
|
|
1192
|
+
!F && (S || P) && /* @__PURE__ */ p("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
|
|
1188
1193
|
/* @__PURE__ */ r(
|
|
1189
1194
|
"input",
|
|
1190
1195
|
{
|
|
1191
1196
|
ref: q,
|
|
1192
1197
|
className: "pkt-textinput__input",
|
|
1193
1198
|
type: R,
|
|
1194
|
-
name:
|
|
1195
|
-
id:
|
|
1199
|
+
name: s || n,
|
|
1200
|
+
id: n,
|
|
1196
1201
|
placeholder: w,
|
|
1197
1202
|
autoComplete: C,
|
|
1198
1203
|
value: $,
|
|
1199
1204
|
disabled: x,
|
|
1200
|
-
"aria-required":
|
|
1205
|
+
"aria-required": u,
|
|
1201
1206
|
"aria-invalid": g,
|
|
1202
1207
|
"aria-labelledby": U,
|
|
1203
1208
|
...H
|
|
1204
1209
|
}
|
|
1205
1210
|
),
|
|
1206
|
-
S && /* @__PURE__ */
|
|
1211
|
+
S && /* @__PURE__ */ p("p", { className: "pkt-textinput__input-suffix", children: [
|
|
1207
1212
|
S,
|
|
1208
1213
|
P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-suffix-icon", name: P })
|
|
1209
1214
|
] }),
|
|
1210
1215
|
!S && P && /* @__PURE__ */ r(b, { className: "pkt-textinput__input-icon", name: P })
|
|
1211
1216
|
] }),
|
|
1212
|
-
!F && !S && !P && !
|
|
1217
|
+
!F && !S && !P && !c && /* @__PURE__ */ r(
|
|
1213
1218
|
"input",
|
|
1214
1219
|
{
|
|
1215
1220
|
ref: q,
|
|
1216
1221
|
className: "pkt-textinput__input",
|
|
1217
1222
|
type: R,
|
|
1218
|
-
name:
|
|
1219
|
-
id:
|
|
1223
|
+
name: s || n,
|
|
1224
|
+
id: n,
|
|
1220
1225
|
placeholder: w,
|
|
1221
1226
|
autoComplete: C,
|
|
1222
1227
|
value: $,
|
|
1223
1228
|
disabled: x,
|
|
1224
|
-
"aria-required":
|
|
1229
|
+
"aria-required": u,
|
|
1225
1230
|
"aria-invalid": g,
|
|
1226
1231
|
"aria-labelledby": U,
|
|
1227
1232
|
...H
|