@oslokommune/punkt-react 5.2.3 → 6.0.1
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 +38 -0
- package/dist/header/Header.d.ts +36 -10
- package/dist/punkt-react.es.js +815 -707
- package/dist/punkt-react.umd.js +11 -11
- package/package.json +4 -4
- package/src/components/header/Header.test.tsx +101 -0
- package/src/components/header/Header.tsx +313 -78
- package/src/components/header/__snapshots__/Header.test.tsx.snap +161 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import D, { useState as ue, useEffect as vt, forwardRef as B } from "react";
|
|
2
|
+
function gt(n) {
|
|
3
3
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var xe = { exports: {} }, te = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,25 +12,25 @@ 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 Ue;
|
|
16
16
|
function bt() {
|
|
17
|
-
if (
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
var n =
|
|
21
|
-
function
|
|
22
|
-
var N,
|
|
23
|
-
|
|
24
|
-
for (N in
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (N in
|
|
28
|
-
|
|
29
|
-
return { $$typeof:
|
|
17
|
+
if (Ue)
|
|
18
|
+
return te;
|
|
19
|
+
Ue = 1;
|
|
20
|
+
var n = D, c = Symbol.for("react.element"), i = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, l = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function m(o, p, y) {
|
|
22
|
+
var N, E = {}, T = null, j = null;
|
|
23
|
+
y !== void 0 && (T = "" + y), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (j = p.ref);
|
|
24
|
+
for (N in p)
|
|
25
|
+
u.call(p, N) && !f.hasOwnProperty(N) && (E[N] = p[N]);
|
|
26
|
+
if (o && o.defaultProps)
|
|
27
|
+
for (N in p = o.defaultProps, p)
|
|
28
|
+
E[N] === void 0 && (E[N] = p[N]);
|
|
29
|
+
return { $$typeof: c, type: o, key: T, ref: j, props: E, _owner: l.current };
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return te.Fragment = i, te.jsx = m, te.jsxs = m, te;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var re = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.development.js
|
|
@@ -40,54 +40,54 @@ 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
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
var n =
|
|
43
|
+
var Ve;
|
|
44
|
+
function Nt() {
|
|
45
|
+
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var n = D, c = Symbol.for("react.element"), i = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), I = Symbol.iterator, O = "@@iterator";
|
|
47
47
|
function F(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var r = I && e[I] || e[O];
|
|
51
|
+
return typeof r == "function" ? r : null;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var C = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function x(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
a[
|
|
58
|
-
|
|
56
|
+
for (var r = arguments.length, a = new Array(r > 1 ? r - 1 : 0), d = 1; d < r; d++)
|
|
57
|
+
a[d - 1] = arguments[d];
|
|
58
|
+
Q("error", e, a);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Q(e, r, a) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var
|
|
63
|
+
var d = C.ReactDebugCurrentFrame, v = d.getStackAddendum();
|
|
64
|
+
v !== "" && (r += "%s", a = a.concat([v]));
|
|
65
|
+
var b = a.map(function(_) {
|
|
66
66
|
return String(_);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
b.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, b);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
71
|
+
var M = !1, J = !1, H = !1, W = !1, A = !1, Y;
|
|
72
72
|
Y = Symbol.for("react.module.reference");
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
73
|
+
function q(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === u || e === f || A || e === l || e === y || e === N || W || e === j || M || J || H || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === E || e.$$typeof === m || e.$$typeof === o || e.$$typeof === p || // 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
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
function z(e, r, a) {
|
|
81
|
+
var d = e.displayName;
|
|
82
|
+
if (d)
|
|
83
|
+
return d;
|
|
84
|
+
var v = r.displayName || r.name || "";
|
|
85
|
+
return v !== "" ? a + "(" + v + ")" : a;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function h(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function P(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
93
|
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -95,36 +95,36 @@ function gt() {
|
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
97
97
|
switch (e) {
|
|
98
|
-
case
|
|
98
|
+
case u:
|
|
99
99
|
return "Fragment";
|
|
100
|
-
case
|
|
100
|
+
case i:
|
|
101
101
|
return "Portal";
|
|
102
|
-
case
|
|
102
|
+
case f:
|
|
103
103
|
return "Profiler";
|
|
104
|
-
case
|
|
104
|
+
case l:
|
|
105
105
|
return "StrictMode";
|
|
106
|
-
case
|
|
106
|
+
case y:
|
|
107
107
|
return "Suspense";
|
|
108
108
|
case N:
|
|
109
109
|
return "SuspenseList";
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
116
|
-
case
|
|
113
|
+
case o:
|
|
114
|
+
var r = e;
|
|
115
|
+
return h(r) + ".Consumer";
|
|
116
|
+
case m:
|
|
117
117
|
var a = e;
|
|
118
|
-
return
|
|
119
|
-
case
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
case
|
|
125
|
-
var
|
|
118
|
+
return h(a._context) + ".Provider";
|
|
119
|
+
case p:
|
|
120
|
+
return z(e, e.render, "ForwardRef");
|
|
121
|
+
case E:
|
|
122
|
+
var d = e.displayName || null;
|
|
123
|
+
return d !== null ? d : P(e.type) || "Memo";
|
|
124
|
+
case T: {
|
|
125
|
+
var v = e, b = v._payload, _ = v._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return P(_(b));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,18 +132,18 @@ function gt() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var U = Object.assign, K = 0, fe, ae, G, pe, de, we, Re;
|
|
136
|
+
function Pe() {
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
138
|
+
Pe.__reactDisabledLog = !0;
|
|
139
|
+
function Je() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
141
|
+
if (K === 0) {
|
|
142
|
+
fe = console.log, ae = console.info, G = console.warn, pe = console.error, de = console.group, we = console.groupCollapsed, Re = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: Pe,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -156,79 +156,79 @@ function gt() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
K++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function qe() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (K--, K === 0) {
|
|
165
165
|
var e = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
172
|
-
value:
|
|
173
|
-
}),
|
|
174
|
-
info: D({}, e, {
|
|
175
|
-
value: Z
|
|
171
|
+
log: U({}, e, {
|
|
172
|
+
value: fe
|
|
176
173
|
}),
|
|
177
|
-
|
|
178
|
-
value:
|
|
174
|
+
info: U({}, e, {
|
|
175
|
+
value: ae
|
|
179
176
|
}),
|
|
180
|
-
|
|
181
|
-
value:
|
|
177
|
+
warn: U({}, e, {
|
|
178
|
+
value: G
|
|
182
179
|
}),
|
|
183
|
-
|
|
180
|
+
error: U({}, e, {
|
|
184
181
|
value: pe
|
|
185
182
|
}),
|
|
186
|
-
|
|
187
|
-
value:
|
|
183
|
+
group: U({}, e, {
|
|
184
|
+
value: de
|
|
188
185
|
}),
|
|
189
|
-
|
|
186
|
+
groupCollapsed: U({}, e, {
|
|
190
187
|
value: we
|
|
188
|
+
}),
|
|
189
|
+
groupEnd: U({}, e, {
|
|
190
|
+
value: Re
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
K < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
197
|
+
var me = C.ReactCurrentDispatcher, he;
|
|
198
|
+
function ne(e, r, a) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (he === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
|
|
203
|
+
} catch (v) {
|
|
204
|
+
var d = v.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
he = d && d[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + he + e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var ke = !1, le;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
213
|
+
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
le = new ze();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!e ||
|
|
216
|
+
function Te(e, r) {
|
|
217
|
+
if (!e || ke)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var a =
|
|
220
|
+
var a = le.get(e);
|
|
221
221
|
if (a !== void 0)
|
|
222
222
|
return a;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
var
|
|
224
|
+
var d;
|
|
225
|
+
ke = !0;
|
|
226
|
+
var v = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
228
|
+
var b;
|
|
229
|
+
b = me.current, me.current = null, Je();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
231
|
+
if (r) {
|
|
232
232
|
var _ = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
@@ -239,171 +239,171 @@ function gt() {
|
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(_, []);
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
242
|
+
} catch (L) {
|
|
243
|
+
d = L;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(e, [], _);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
_.call();
|
|
249
|
-
} catch (
|
|
250
|
-
|
|
249
|
+
} catch (L) {
|
|
250
|
+
d = L;
|
|
251
251
|
}
|
|
252
252
|
e.call(_.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
|
|
257
|
+
} catch (L) {
|
|
258
|
+
d = L;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var
|
|
265
|
-
`),
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
262
|
+
} catch (L) {
|
|
263
|
+
if (L && d && typeof L.stack == "string") {
|
|
264
|
+
for (var k = L.stack.split(`
|
|
265
|
+
`), S = d.stack.split(`
|
|
266
|
+
`), w = k.length - 1, R = S.length - 1; w >= 1 && R >= 0 && k[w] !== S[R]; )
|
|
267
|
+
R--;
|
|
268
|
+
for (; w >= 1 && R >= 0; w--, R--)
|
|
269
|
+
if (k[w] !== S[R]) {
|
|
270
|
+
if (w !== 1 || R !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` +
|
|
275
|
-
return e.displayName &&
|
|
272
|
+
if (w--, R--, R < 0 || k[w] !== S[R]) {
|
|
273
|
+
var $ = `
|
|
274
|
+
` + k[w].replace(" at new ", " at ");
|
|
275
|
+
return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, $), $;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (w >= 1 && R >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
ke = !1, me.current = b, qe(), Error.prepareStackTrace = v;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof e == "function" &&
|
|
284
|
+
var Z = e ? e.displayName || e.name : "", Ye = Z ? ne(Z) : "";
|
|
285
|
+
return typeof e == "function" && le.set(e, Ye), Ye;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function Ke(e, r, a) {
|
|
288
|
+
return Te(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
290
|
+
function Xe(e) {
|
|
291
|
+
var r = e.prototype;
|
|
292
|
+
return !!(r && r.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function oe(e, r, a) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return
|
|
298
|
+
return Te(e, Xe(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
|
-
return
|
|
300
|
+
return ne(e);
|
|
301
301
|
switch (e) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
302
|
+
case y:
|
|
303
|
+
return ne("Suspense");
|
|
304
304
|
case N:
|
|
305
|
-
return
|
|
305
|
+
return ne("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
var
|
|
309
|
+
case p:
|
|
310
|
+
return Ke(e.render);
|
|
311
|
+
case E:
|
|
312
|
+
return oe(e.type, r, a);
|
|
313
|
+
case T: {
|
|
314
|
+
var d = e, v = d._payload, b = d._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return oe(b(v), r, a);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var se = Object.prototype.hasOwnProperty, Ce = {}, je = C.ReactDebugCurrentFrame;
|
|
324
|
+
function ie(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var
|
|
327
|
-
|
|
326
|
+
var r = e._owner, a = oe(e.type, e._source, r ? r.type : null);
|
|
327
|
+
je.setExtraStackFrame(a);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
je.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function Ze(e, r, a, d, v) {
|
|
332
332
|
{
|
|
333
|
-
var
|
|
333
|
+
var b = Function.call.bind(se);
|
|
334
334
|
for (var _ in e)
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
335
|
+
if (b(e, _)) {
|
|
336
|
+
var k = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof e[_] != "function") {
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
339
|
+
var S = Error((d || "React class") + ": " + a + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
|
+
throw S.name = "Invariant Violation", S;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
342
|
+
k = e[_](r, _, d, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (w) {
|
|
344
|
+
k = w;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
k && !(k instanceof Error) && (ie(v), 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).", d || "React class", a, _, typeof k), ie(null)), k instanceof Error && !(k.message in Ce) && (Ce[k.message] = !0, ie(v), x("Failed %s type: %s", a, k.message), ie(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
352
|
-
return
|
|
350
|
+
var Qe = Array.isArray;
|
|
351
|
+
function _e(e) {
|
|
352
|
+
return Qe(e);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function et(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
|
-
function
|
|
360
|
+
function tt(e) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return Se(e), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Se(e) {
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
370
|
function Oe(e) {
|
|
371
|
-
if (
|
|
372
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
if (tt(e))
|
|
372
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", et(e)), Se(e);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var ee = C.ReactCurrentOwner, rt = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
379
|
+
}, $e, Ie, ve;
|
|
380
|
+
ve = {};
|
|
381
|
+
function at(e) {
|
|
382
|
+
if (se.call(e, "ref")) {
|
|
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
|
-
function
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
389
|
+
function nt(e) {
|
|
390
|
+
if (se.call(e, "key")) {
|
|
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 =
|
|
400
|
-
|
|
397
|
+
function lt(e, r) {
|
|
398
|
+
if (typeof e.ref == "string" && ee.current && r && ee.current.stateNode !== r) {
|
|
399
|
+
var a = P(ee.current.type);
|
|
400
|
+
ve[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', P(ee.current.type), e.ref), ve[a] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function ot(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var a = function() {
|
|
406
|
-
|
|
406
|
+
$e || ($e = !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)", r));
|
|
407
407
|
};
|
|
408
408
|
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
409
|
get: a,
|
|
@@ -411,10 +411,10 @@ function gt() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function st(e,
|
|
414
|
+
function st(e, r) {
|
|
415
415
|
{
|
|
416
416
|
var a = function() {
|
|
417
|
-
|
|
417
|
+
Ie || (Ie = !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)", r));
|
|
418
418
|
};
|
|
419
419
|
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
420
|
get: a,
|
|
@@ -422,70 +422,70 @@ function gt() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
426
|
-
var
|
|
425
|
+
var it = function(e, r, a, d, v, b, _) {
|
|
426
|
+
var k = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
428
|
+
$$typeof: c,
|
|
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: _,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
435
|
+
_owner: b
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(k, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.defineProperty(
|
|
446
|
+
value: d
|
|
447
|
+
}), Object.defineProperty(k, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
451
|
+
value: v
|
|
452
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function ct(e, r, a, d, v) {
|
|
455
455
|
{
|
|
456
|
-
var
|
|
457
|
-
a !== void 0 && (Oe(a),
|
|
458
|
-
for (
|
|
459
|
-
|
|
456
|
+
var b, _ = {}, k = null, S = null;
|
|
457
|
+
a !== void 0 && (Oe(a), k = "" + a), nt(r) && (Oe(r.key), k = "" + r.key), at(r) && (S = r.ref, lt(r, v));
|
|
458
|
+
for (b in r)
|
|
459
|
+
se.call(r, b) && !rt.hasOwnProperty(b) && (_[b] = r[b]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (
|
|
463
|
-
_[
|
|
461
|
+
var w = e.defaultProps;
|
|
462
|
+
for (b in w)
|
|
463
|
+
_[b] === void 0 && (_[b] = w[b]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
if (k || S) {
|
|
466
|
+
var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
k && ot(_, R), S && st(_, R);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return it(e, k, S, v, d, ee.current, _);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var ge = C.ReactCurrentOwner, Fe = C.ReactDebugCurrentFrame;
|
|
473
|
+
function X(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var
|
|
475
|
+
var r = e._owner, a = oe(e.type, e._source, r ? r.type : null);
|
|
476
476
|
Fe.setExtraStackFrame(a);
|
|
477
477
|
} else
|
|
478
478
|
Fe.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
480
|
var be;
|
|
481
481
|
be = !1;
|
|
482
|
-
function
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
482
|
+
function Ne(e) {
|
|
483
|
+
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function De() {
|
|
486
486
|
{
|
|
487
|
-
if (
|
|
488
|
-
var e =
|
|
487
|
+
if (ge.current) {
|
|
488
|
+
var e = P(ge.current.type);
|
|
489
489
|
if (e)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -494,767 +494,875 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function ut(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
|
-
var
|
|
509
|
-
function
|
|
508
|
+
var Ae = {};
|
|
509
|
+
function ft(e) {
|
|
510
510
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
511
|
+
var r = De();
|
|
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
|
|
521
|
+
function Le(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 =
|
|
527
|
-
if (
|
|
526
|
+
var a = ft(r);
|
|
527
|
+
if (Ae[a])
|
|
528
528
|
return;
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
e && e._owner && e._owner !==
|
|
529
|
+
Ae[a] = !0;
|
|
530
|
+
var d = "";
|
|
531
|
+
e && e._owner && e._owner !== ge.current && (d = " It was passed a child from " + P(e._owner.type) + "."), X(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, d), X(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Me(e, r) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
538
|
+
if (_e(e))
|
|
539
539
|
for (var a = 0; a < e.length; a++) {
|
|
540
|
-
var
|
|
541
|
-
|
|
540
|
+
var d = e[a];
|
|
541
|
+
Ne(d) && Le(d, r);
|
|
542
542
|
}
|
|
543
|
-
else if (
|
|
543
|
+
else if (Ne(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var
|
|
549
|
-
|
|
546
|
+
var v = F(e);
|
|
547
|
+
if (typeof v == "function" && v !== e.entries)
|
|
548
|
+
for (var b = v.call(e), _; !(_ = b.next()).done; )
|
|
549
|
+
Ne(_.value) && Le(_.value, r);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function pt(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 === p || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
a =
|
|
563
|
+
r.$$typeof === E))
|
|
564
|
+
a = r.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
567
|
if (a) {
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
} else if (
|
|
568
|
+
var d = P(r);
|
|
569
|
+
Ze(a, e.props, "prop", d, e);
|
|
570
|
+
} else if (r.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 v = P(r);
|
|
573
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", v || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof
|
|
575
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function dt(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
580
|
+
for (var r = Object.keys(e.props), a = 0; a < r.length; a++) {
|
|
581
|
+
var d = r[a];
|
|
582
|
+
if (d !== "children" && d !== "key") {
|
|
583
|
+
X(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", d), X(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (X(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function We(e, r, a, d, v, b) {
|
|
591
591
|
{
|
|
592
|
-
var _ =
|
|
592
|
+
var _ = q(e);
|
|
593
593
|
if (!_) {
|
|
594
|
-
var
|
|
595
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
e === null ?
|
|
594
|
+
var k = "";
|
|
595
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
+
var S = ut(v);
|
|
597
|
+
S ? k += S : k += De();
|
|
598
|
+
var w;
|
|
599
|
+
e === null ? w = "null" : _e(e) ? w = "array" : e !== void 0 && e.$$typeof === c ? (w = "<" + (P(e.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : w = 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", w, k);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
601
|
+
var R = ct(e, r, a, v, b);
|
|
602
|
+
if (R == null)
|
|
603
|
+
return R;
|
|
604
604
|
if (_) {
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
605
|
+
var $ = r.children;
|
|
606
|
+
if ($ !== void 0)
|
|
607
|
+
if (d)
|
|
608
|
+
if (_e($)) {
|
|
609
|
+
for (var Z = 0; Z < $.length; Z++)
|
|
610
|
+
Me($[Z], e);
|
|
611
|
+
Object.freeze && Object.freeze($);
|
|
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
|
+
Me($, e);
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === u ? dt(R) : pt(R), R;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function mt(e, r, a) {
|
|
621
|
+
return We(e, r, a, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function ht(e, r, a) {
|
|
624
|
+
return We(e, r, a, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var kt = ht, _t = mt;
|
|
627
|
+
re.Fragment = u, re.jsx = kt, re.jsxs = _t;
|
|
628
|
+
}()), re;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
const V =
|
|
633
|
-
function
|
|
634
|
-
return !
|
|
630
|
+
process.env.NODE_ENV === "production" ? xe.exports = bt() : xe.exports = Nt();
|
|
631
|
+
var Ee = xe.exports;
|
|
632
|
+
const V = Ee.Fragment, t = Ee.jsx, s = Ee.jsxs, ye = {}, yt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
633
|
+
function xt(n, c) {
|
|
634
|
+
return !ye[n] && typeof window.fetch == "function" && (ye[n] = window.fetch(c + n + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + c + n + ".svg"), yt)).then((i) => i)), Promise.resolve(ye[n]);
|
|
635
635
|
}
|
|
636
|
-
const
|
|
637
|
-
const
|
|
638
|
-
return
|
|
636
|
+
const g = ({ name: n, path: c, className: i = "", ...u }) => {
|
|
637
|
+
const l = "https://punkt-cdn.oslo.kommune.no/6.0/icons/", [f, m] = ue(null);
|
|
638
|
+
return vt(() => {
|
|
639
639
|
if (!n)
|
|
640
640
|
return;
|
|
641
|
-
|
|
642
|
-
}, [n,
|
|
641
|
+
xt(n, c || l).then((p) => m(p));
|
|
642
|
+
}, [n, c, l]), f ? /* @__PURE__ */ t(
|
|
643
643
|
"span",
|
|
644
644
|
{
|
|
645
|
-
className: `pkt-icon ${
|
|
646
|
-
dangerouslySetInnerHTML: { __html:
|
|
647
|
-
...
|
|
645
|
+
className: `pkt-icon ${i}`,
|
|
646
|
+
dangerouslySetInnerHTML: { __html: f },
|
|
647
|
+
...u
|
|
648
648
|
}
|
|
649
649
|
) : null;
|
|
650
|
-
},
|
|
650
|
+
}, Be = B(
|
|
651
651
|
({
|
|
652
652
|
children: n,
|
|
653
|
-
className:
|
|
654
|
-
skin:
|
|
655
|
-
closeAlert:
|
|
656
|
-
onClose:
|
|
657
|
-
title:
|
|
658
|
-
date:
|
|
659
|
-
ariaLive:
|
|
660
|
-
...
|
|
661
|
-
},
|
|
662
|
-
const N = [
|
|
663
|
-
|
|
653
|
+
className: c,
|
|
654
|
+
skin: i = "info",
|
|
655
|
+
closeAlert: u = !1,
|
|
656
|
+
onClose: l,
|
|
657
|
+
title: f,
|
|
658
|
+
date: m,
|
|
659
|
+
ariaLive: o = "polite",
|
|
660
|
+
...p
|
|
661
|
+
}, y) => {
|
|
662
|
+
const N = [c, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [E, T] = ue(!0), j = () => {
|
|
663
|
+
T(!1), l && l();
|
|
664
664
|
};
|
|
665
|
-
return
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
|
|
665
|
+
return E ? /* @__PURE__ */ s("div", { ...p, className: N, "aria-live": o, ref: y, children: [
|
|
666
|
+
/* @__PURE__ */ t(
|
|
667
|
+
g,
|
|
668
668
|
{
|
|
669
669
|
className: "pkt-alert__icon",
|
|
670
|
-
name:
|
|
670
|
+
name: i === "info" ? "alert-information" : `alert-${i}`
|
|
671
671
|
}
|
|
672
672
|
),
|
|
673
|
-
|
|
673
|
+
u && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
|
|
674
674
|
"button",
|
|
675
675
|
{
|
|
676
676
|
type: "button",
|
|
677
677
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
678
678
|
tabIndex: 0,
|
|
679
679
|
"aria-label": "close",
|
|
680
|
-
onClick:
|
|
681
|
-
children: /* @__PURE__ */
|
|
680
|
+
onClick: j,
|
|
681
|
+
children: /* @__PURE__ */ t(g, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
682
682
|
}
|
|
683
683
|
) }),
|
|
684
|
-
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
|
|
684
|
+
f && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: f }),
|
|
685
|
+
/* @__PURE__ */ t("div", { className: "pkt-alert__text", children: n }),
|
|
686
|
+
m && /* @__PURE__ */ s("div", { className: "pkt-alert__date", children: [
|
|
687
687
|
"Sist oppdatert: ",
|
|
688
|
-
|
|
688
|
+
m
|
|
689
689
|
] })
|
|
690
690
|
] }) : null;
|
|
691
691
|
}
|
|
692
|
-
),
|
|
692
|
+
), ce = B(
|
|
693
693
|
({
|
|
694
694
|
children: n,
|
|
695
|
-
className:
|
|
696
|
-
iconName:
|
|
697
|
-
secondIconName:
|
|
698
|
-
size:
|
|
699
|
-
skin:
|
|
700
|
-
type:
|
|
701
|
-
variant:
|
|
702
|
-
...
|
|
703
|
-
},
|
|
695
|
+
className: c,
|
|
696
|
+
iconName: i = "user",
|
|
697
|
+
secondIconName: u = "user",
|
|
698
|
+
size: l = "medium",
|
|
699
|
+
skin: f = "primary",
|
|
700
|
+
type: m = "button",
|
|
701
|
+
variant: o = "label-only",
|
|
702
|
+
...p
|
|
703
|
+
}, y) => {
|
|
704
704
|
const N = [
|
|
705
|
-
|
|
705
|
+
c,
|
|
706
706
|
"pkt-btn",
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
707
|
+
l && `pkt-btn--${l}`,
|
|
708
|
+
f && `pkt-btn--${f}`,
|
|
709
|
+
o && `pkt-btn--${o}`
|
|
710
710
|
].filter(Boolean).join(" ");
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
|
|
711
|
+
return /* @__PURE__ */ s("button", { ...p, className: N, type: m, ref: y, children: [
|
|
712
|
+
o !== "label-only" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: i }),
|
|
713
|
+
/* @__PURE__ */ t("span", { className: "pkt-btn__text", children: n }),
|
|
714
|
+
o === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: u })
|
|
715
715
|
] });
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
var
|
|
721
|
-
const
|
|
722
|
-
return /* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */
|
|
727
|
-
n.text && /* @__PURE__ */
|
|
728
|
-
(
|
|
718
|
+
ce.displayName = "PktButton";
|
|
719
|
+
const Ot = ({ columnOne: n, columnTwo: c, socialLinks: i, className: u }) => {
|
|
720
|
+
var f, m;
|
|
721
|
+
const l = [u, "pkt-footer"].filter(Boolean).join(" ");
|
|
722
|
+
return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ s("div", { className: "pkt-footer__container", children: [
|
|
723
|
+
/* @__PURE__ */ s("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
724
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
725
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: n.title }),
|
|
726
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
727
|
+
n.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: n.text }),
|
|
728
|
+
(f = n.links) == null ? void 0 : f.map((o, p) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
729
729
|
"a",
|
|
730
730
|
{
|
|
731
|
-
className: `pkt-footer__link ${
|
|
732
|
-
href:
|
|
733
|
-
target:
|
|
734
|
-
rel:
|
|
731
|
+
className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
|
|
732
|
+
href: o.href,
|
|
733
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
734
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
735
735
|
children: [
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
|
|
736
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
737
|
+
o.text
|
|
738
738
|
]
|
|
739
739
|
}
|
|
740
|
-
) }, `links-${
|
|
740
|
+
) }, `links-${p}`))
|
|
741
741
|
] })
|
|
742
742
|
] }),
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
|
|
747
|
-
(
|
|
743
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
744
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: c.title }),
|
|
745
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
746
|
+
c.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: c.text }),
|
|
747
|
+
(m = c.links) == null ? void 0 : m.map((o, p) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
748
748
|
"a",
|
|
749
749
|
{
|
|
750
|
-
className: `pkt-footer__link ${
|
|
751
|
-
href:
|
|
752
|
-
target:
|
|
753
|
-
rel:
|
|
750
|
+
className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
|
|
751
|
+
href: o.href,
|
|
752
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
753
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
754
754
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
|
|
755
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
756
|
+
o.text
|
|
757
757
|
]
|
|
758
758
|
}
|
|
759
|
-
) }, `links-${
|
|
759
|
+
) }, `links-${p}`))
|
|
760
760
|
] })
|
|
761
761
|
] }),
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
763
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
764
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
765
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
766
766
|
"a",
|
|
767
767
|
{
|
|
768
768
|
className: "pkt-footer__link",
|
|
769
769
|
href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
770
770
|
children: [
|
|
771
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
772
772
|
"Personvern og informasjonskapsler"
|
|
773
773
|
]
|
|
774
774
|
}
|
|
775
775
|
) }),
|
|
776
|
-
/* @__PURE__ */
|
|
777
|
-
/* @__PURE__ */
|
|
776
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
777
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
778
778
|
"Tilgjengelighet"
|
|
779
779
|
] }) })
|
|
780
780
|
] })
|
|
781
781
|
] })
|
|
782
782
|
] }),
|
|
783
|
-
|
|
784
|
-
/* @__PURE__ */
|
|
783
|
+
i && /* @__PURE__ */ s("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
784
|
+
/* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: i.filter((o) => o.language).map((o, p) => /* @__PURE__ */ t(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
className: "pkt-footer__social-language",
|
|
788
|
-
children: /* @__PURE__ */
|
|
788
|
+
children: /* @__PURE__ */ t(
|
|
789
789
|
"a",
|
|
790
790
|
{
|
|
791
|
-
href:
|
|
792
|
-
"aria-label": `til ${
|
|
793
|
-
target:
|
|
794
|
-
rel:
|
|
795
|
-
children:
|
|
791
|
+
href: o.href,
|
|
792
|
+
"aria-label": `til ${o.language} versjon av nettsiden`,
|
|
793
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
794
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
795
|
+
children: o.language
|
|
796
796
|
}
|
|
797
797
|
)
|
|
798
798
|
},
|
|
799
|
-
`sociallinks-language-${
|
|
799
|
+
`sociallinks-language-${p}`
|
|
800
800
|
)) }),
|
|
801
|
-
/* @__PURE__ */
|
|
801
|
+
/* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: i.filter((o) => o.iconName).map((o, p) => /* @__PURE__ */ t(D.Fragment, { children: /* @__PURE__ */ t(
|
|
802
802
|
"a",
|
|
803
803
|
{
|
|
804
|
-
href:
|
|
805
|
-
"aria-label": `til ${
|
|
804
|
+
href: o.href,
|
|
805
|
+
"aria-label": `til ${o.iconName}`,
|
|
806
806
|
className: "pkt-footer__social-icon-link",
|
|
807
|
-
target:
|
|
808
|
-
rel:
|
|
809
|
-
children: /* @__PURE__ */
|
|
807
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
808
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
809
|
+
children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name: o.iconName })
|
|
810
810
|
}
|
|
811
|
-
) }, `sociallinks-${
|
|
811
|
+
) }, `sociallinks-${p}`)) })
|
|
812
812
|
] })
|
|
813
813
|
] }) });
|
|
814
814
|
}, $t = ({
|
|
815
815
|
links: n = [],
|
|
816
|
-
className:
|
|
816
|
+
className: c
|
|
817
817
|
}) => {
|
|
818
|
-
const
|
|
819
|
-
return /* @__PURE__ */
|
|
820
|
-
n.map((
|
|
818
|
+
const i = [c, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
819
|
+
return /* @__PURE__ */ t("footer", { className: i, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ s("ul", { className: "pkt-footer-simple__list", children: [
|
|
820
|
+
n.map((u, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s(
|
|
821
821
|
"a",
|
|
822
822
|
{
|
|
823
|
-
className: `pkt-footer-simple__link ${
|
|
824
|
-
href:
|
|
825
|
-
target:
|
|
826
|
-
rel:
|
|
823
|
+
className: `pkt-footer-simple__link ${u.external ? " pkt-link--external" : ""}`,
|
|
824
|
+
href: u.href,
|
|
825
|
+
target: u.openInNewTab ? "_blank" : "_self",
|
|
826
|
+
rel: u.openInNewTab ? "noopener noreferrer" : void 0,
|
|
827
827
|
children: [
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
|
|
828
|
+
/* @__PURE__ */ t(
|
|
829
|
+
g,
|
|
830
830
|
{
|
|
831
831
|
className: "pkt-footer-simple__link-icon",
|
|
832
832
|
name: "chevron-right"
|
|
833
833
|
}
|
|
834
834
|
),
|
|
835
|
-
|
|
835
|
+
u.text
|
|
836
836
|
]
|
|
837
837
|
}
|
|
838
|
-
) },
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
838
|
+
) }, l)),
|
|
839
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
840
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
841
841
|
"Personvern og informasjonskapsler"
|
|
842
842
|
] }) }),
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */
|
|
843
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
844
|
+
/* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
845
845
|
"Tilgjengelighet"
|
|
846
846
|
] }) })
|
|
847
847
|
] }) }) });
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
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 }) }),
|
|
879
|
-
/* @__PURE__ */ r(b, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
|
|
880
|
-
] }),
|
|
881
|
-
c && s && /* @__PURE__ */ p(
|
|
882
|
-
"button",
|
|
883
|
-
{
|
|
884
|
-
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
885
|
-
"aria-label": "Logg ut",
|
|
886
|
-
onClick: l,
|
|
887
|
-
children: [
|
|
888
|
-
/* @__PURE__ */ r(b, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
889
|
-
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
890
|
-
]
|
|
891
|
-
}
|
|
892
|
-
),
|
|
893
|
-
c && !s && /* @__PURE__ */ p(
|
|
894
|
-
"button",
|
|
895
|
-
{
|
|
896
|
-
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
897
|
-
"aria-label": "Logg inn",
|
|
898
|
-
onClick: k,
|
|
899
|
-
children: [
|
|
900
|
-
/* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: "user" }),
|
|
901
|
-
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
902
|
-
]
|
|
848
|
+
};
|
|
849
|
+
var He = { exports: {} };
|
|
850
|
+
/*!
|
|
851
|
+
Copyright (c) 2018 Jed Watson.
|
|
852
|
+
Licensed under the MIT License (MIT), see
|
|
853
|
+
http://jedwatson.github.io/classnames
|
|
854
|
+
*/
|
|
855
|
+
(function(n) {
|
|
856
|
+
(function() {
|
|
857
|
+
var c = {}.hasOwnProperty;
|
|
858
|
+
function i() {
|
|
859
|
+
for (var u = [], l = 0; l < arguments.length; l++) {
|
|
860
|
+
var f = arguments[l];
|
|
861
|
+
if (f) {
|
|
862
|
+
var m = typeof f;
|
|
863
|
+
if (m === "string" || m === "number")
|
|
864
|
+
u.push(f);
|
|
865
|
+
else if (Array.isArray(f)) {
|
|
866
|
+
if (f.length) {
|
|
867
|
+
var o = i.apply(null, f);
|
|
868
|
+
o && u.push(o);
|
|
869
|
+
}
|
|
870
|
+
} else if (m === "object") {
|
|
871
|
+
if (f.toString !== Object.prototype.toString && !f.toString.toString().includes("[native code]")) {
|
|
872
|
+
u.push(f.toString());
|
|
873
|
+
continue;
|
|
874
|
+
}
|
|
875
|
+
for (var p in f)
|
|
876
|
+
c.call(f, p) && f[p] && u.push(p);
|
|
877
|
+
}
|
|
903
878
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
879
|
+
}
|
|
880
|
+
return u.join(" ");
|
|
881
|
+
}
|
|
882
|
+
n.exports ? (i.default = i, n.exports = i) : window.classNames = i;
|
|
883
|
+
})();
|
|
884
|
+
})(He);
|
|
885
|
+
var Et = He.exports;
|
|
886
|
+
const Ge = /* @__PURE__ */ gt(Et), It = B(
|
|
887
|
+
({
|
|
888
|
+
logoLink: n = "https://www.oslo.kommune.no/",
|
|
889
|
+
serviceName: c,
|
|
890
|
+
fixed: i = !0,
|
|
891
|
+
scrollToHide: u = !0,
|
|
892
|
+
user: l,
|
|
893
|
+
userMenu: f,
|
|
894
|
+
representing: m,
|
|
895
|
+
userOptions: o,
|
|
896
|
+
userMenuFooter: p,
|
|
897
|
+
canChangeRepresentation: y = !0,
|
|
898
|
+
showMenuButton: N = !1,
|
|
899
|
+
showLogOutButton: E = !1,
|
|
900
|
+
openMenu: T,
|
|
901
|
+
logOut: j,
|
|
902
|
+
changeRepresentation: I,
|
|
903
|
+
...O
|
|
904
|
+
}, F) => {
|
|
905
|
+
const C = D.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
|
|
906
|
+
year: "numeric",
|
|
907
|
+
month: "long",
|
|
908
|
+
day: "numeric"
|
|
909
|
+
}) : "", [l]), [x, Q] = D.useState(!1), [M, J] = D.useState(0), [H, W] = D.useState(!1), A = D.useRef(null);
|
|
910
|
+
D.useEffect(() => (document.addEventListener("mouseup", q), window.addEventListener("scroll", z), () => {
|
|
911
|
+
document.removeEventListener("mouseup", q), window.removeEventListener("scroll", z);
|
|
912
|
+
}));
|
|
913
|
+
const Y = () => {
|
|
914
|
+
W(!H);
|
|
915
|
+
}, q = (h) => {
|
|
916
|
+
A.current && !A.current.contains(h.target) && W(!1);
|
|
917
|
+
}, z = () => {
|
|
918
|
+
if (u) {
|
|
919
|
+
const h = window.pageYOffset || document.documentElement.scrollTop;
|
|
920
|
+
if (h < 0 || Math.abs(h - M) < 60)
|
|
921
|
+
return;
|
|
922
|
+
Q(h > M), J(h);
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
return /* @__PURE__ */ s(
|
|
926
|
+
"header",
|
|
927
|
+
{
|
|
928
|
+
...O,
|
|
929
|
+
id: "pkt-header",
|
|
930
|
+
"data-testid": "pkt-header",
|
|
931
|
+
"aria-label": "Topp",
|
|
932
|
+
className: Ge("pkt-header", {
|
|
933
|
+
"pkt-header--fixed": i,
|
|
934
|
+
"pkt-header--scroll-to-hide": u,
|
|
935
|
+
"pkt-header--hidden": x
|
|
936
|
+
}),
|
|
937
|
+
ref: F,
|
|
938
|
+
children: [
|
|
939
|
+
/* @__PURE__ */ s("div", { className: "pkt-header__logo", children: [
|
|
940
|
+
/* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: n, children: /* @__PURE__ */ t(
|
|
941
|
+
g,
|
|
942
|
+
{
|
|
943
|
+
name: "oslologo",
|
|
944
|
+
className: "pkt-header__logo-svg",
|
|
945
|
+
"aria-hidden": "true",
|
|
946
|
+
path: "https://punkt-cdn.oslo.kommune.no/6.0/logos/"
|
|
947
|
+
}
|
|
948
|
+
) }),
|
|
949
|
+
/* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: c })
|
|
950
|
+
] }),
|
|
951
|
+
/* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ s("ul", { className: "pkt-header__actions-row", children: [
|
|
952
|
+
N && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
953
|
+
ce,
|
|
954
|
+
{
|
|
955
|
+
className: "pkt-header__menu-btn",
|
|
956
|
+
skin: "secondary",
|
|
957
|
+
variant: "icon-right",
|
|
958
|
+
iconName: "menu",
|
|
959
|
+
onClick: T,
|
|
960
|
+
children: "Meny"
|
|
961
|
+
}
|
|
962
|
+
) }),
|
|
963
|
+
(l || m) && /* @__PURE__ */ s(
|
|
964
|
+
"li",
|
|
965
|
+
{
|
|
966
|
+
"data-testid": "usermenu",
|
|
967
|
+
className: `pkt-header--has-dropdown ${H && !x ? "pkt-header--open-dropdown" : ""}`,
|
|
968
|
+
ref: A,
|
|
969
|
+
children: [
|
|
970
|
+
/* @__PURE__ */ s(
|
|
971
|
+
"button",
|
|
972
|
+
{
|
|
973
|
+
className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
|
|
974
|
+
type: "button",
|
|
975
|
+
role: "button",
|
|
976
|
+
"aria-controls": "pktUserDropdown",
|
|
977
|
+
"aria-expanded": H,
|
|
978
|
+
onClick: Y,
|
|
979
|
+
children: [
|
|
980
|
+
/* @__PURE__ */ t(g, { name: "user", className: "pkt-btn__icon" }),
|
|
981
|
+
/* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (m == null ? void 0 : m.name) || (l == null ? void 0 : l.name) }),
|
|
982
|
+
/* @__PURE__ */ t("span", { className: "pkt-header__user-shortname", children: (m == null ? void 0 : m.shortname) || (l == null ? void 0 : l.shortname) }),
|
|
983
|
+
/* @__PURE__ */ t(g, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
|
|
984
|
+
/* @__PURE__ */ t(g, { name: "chevron-thin-up", className: "pkt-btn--open" })
|
|
985
|
+
]
|
|
986
|
+
}
|
|
987
|
+
),
|
|
988
|
+
/* @__PURE__ */ s("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
|
|
989
|
+
l && /* @__PURE__ */ s("li", { children: [
|
|
990
|
+
/* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
|
|
991
|
+
/* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: l.name }),
|
|
992
|
+
l.lastLoggedIn && /* @__PURE__ */ s("div", { className: "pkt-user-menu__last-logged-in", children: [
|
|
993
|
+
"Sist pålogget: ",
|
|
994
|
+
/* @__PURE__ */ t("time", { children: C })
|
|
995
|
+
] })
|
|
996
|
+
] }),
|
|
997
|
+
f && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: f.map((h, P) => /* @__PURE__ */ t("li", { children: typeof h.target == "string" ? /* @__PURE__ */ s("a", { href: h.target, className: "pkt-link", children: [
|
|
998
|
+
h.iconName && /* @__PURE__ */ t(g, { name: h.iconName, className: "pkt-link__icon" }),
|
|
999
|
+
h.title
|
|
1000
|
+
] }) : /* @__PURE__ */ s("button", { className: "pkt-link", onClick: h.target, children: [
|
|
1001
|
+
h.iconName && /* @__PURE__ */ t(g, { name: h.iconName, className: "pkt-link__icon" }),
|
|
1002
|
+
h.title
|
|
1003
|
+
] }) }, `userMenu-${P}`)) }) }),
|
|
1004
|
+
(m || y) && /* @__PURE__ */ s("li", { children: [
|
|
1005
|
+
m && /* @__PURE__ */ s(V, { children: [
|
|
1006
|
+
/* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
1007
|
+
/* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: m.name }),
|
|
1008
|
+
m.orgNumber && /* @__PURE__ */ s("div", { className: "pkt-user-menu__org-number", children: [
|
|
1009
|
+
"Org.nr. ",
|
|
1010
|
+
m.orgNumber
|
|
1011
|
+
] })
|
|
1012
|
+
] }),
|
|
1013
|
+
/* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: y && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s("button", { className: "pkt-link", onClick: I, children: [
|
|
1014
|
+
/* @__PURE__ */ t(g, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
1015
|
+
"Endre organisasjon"
|
|
1016
|
+
] }) }) })
|
|
1017
|
+
] }),
|
|
1018
|
+
/* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (o || !E) && /* @__PURE__ */ s(V, { children: [
|
|
1019
|
+
o == null ? void 0 : o.map((h, P) => /* @__PURE__ */ t("li", { children: typeof h.target == "string" ? /* @__PURE__ */ s("a", { href: h.target, className: "pkt-link", children: [
|
|
1020
|
+
h.iconName && /* @__PURE__ */ t(g, { name: h.iconName, className: "pkt-link__icon" }),
|
|
1021
|
+
h.title
|
|
1022
|
+
] }) : /* @__PURE__ */ s("button", { className: "pkt-link", onClick: h.target, children: [
|
|
1023
|
+
h.iconName && /* @__PURE__ */ t(g, { name: h.iconName, className: "pkt-link__icon" }),
|
|
1024
|
+
h.title
|
|
1025
|
+
] }) }, `userOptions-${P}`)),
|
|
1026
|
+
!E && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s("button", { className: "pkt-link", onClick: j, children: [
|
|
1027
|
+
/* @__PURE__ */ t(g, { name: "exit", className: "pkt-link__icon" }),
|
|
1028
|
+
"Logg ut"
|
|
1029
|
+
] }) })
|
|
1030
|
+
] }) }) }),
|
|
1031
|
+
p && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: p.map((h, P) => /* @__PURE__ */ t("li", { children: typeof h.target == "string" ? /* @__PURE__ */ t("a", { href: h.target, className: "pkt-link", children: h.title }) : /* @__PURE__ */ t("button", { className: "pkt-link", onClick: h.target, children: h.title }) }, `userMenuFooter-${P}`)) }) })
|
|
1032
|
+
] })
|
|
1033
|
+
]
|
|
1034
|
+
}
|
|
1035
|
+
),
|
|
1036
|
+
E && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
1037
|
+
ce,
|
|
1038
|
+
{
|
|
1039
|
+
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
1040
|
+
iconName: "exit",
|
|
1041
|
+
role: "button",
|
|
1042
|
+
onClick: j,
|
|
1043
|
+
skin: "secondary",
|
|
1044
|
+
variant: "icon-right",
|
|
1045
|
+
children: "Logg ut"
|
|
1046
|
+
}
|
|
1047
|
+
) })
|
|
1048
|
+
] }) })
|
|
1049
|
+
]
|
|
1050
|
+
}
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
), wt = D.forwardRef(
|
|
1054
|
+
({ label: n, id: c, children: i, ...u }, l) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
|
|
1055
|
+
/* @__PURE__ */ t("label", { htmlFor: c, className: "pkt-form-label", children: n }),
|
|
1056
|
+
/* @__PURE__ */ t("input", { className: "pkt-form-input", id: c, ...u, ref: l }),
|
|
1057
|
+
i
|
|
912
1058
|
] })
|
|
913
1059
|
);
|
|
914
|
-
|
|
915
|
-
const
|
|
1060
|
+
wt.displayName = "PktInput";
|
|
1061
|
+
const Rt = B(
|
|
916
1062
|
({
|
|
917
1063
|
children: n,
|
|
918
|
-
className:
|
|
919
|
-
iconName:
|
|
920
|
-
openInNewTab:
|
|
921
|
-
skin:
|
|
922
|
-
href:
|
|
923
|
-
external:
|
|
924
|
-
title:
|
|
925
|
-
},
|
|
926
|
-
const
|
|
927
|
-
return /* @__PURE__ */
|
|
1064
|
+
className: c,
|
|
1065
|
+
iconName: i = "user",
|
|
1066
|
+
openInNewTab: u = !1,
|
|
1067
|
+
skin: l = "normal",
|
|
1068
|
+
href: f = "#",
|
|
1069
|
+
external: m = !1,
|
|
1070
|
+
title: o
|
|
1071
|
+
}, p) => {
|
|
1072
|
+
const y = [c, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
|
|
1073
|
+
return /* @__PURE__ */ s(
|
|
928
1074
|
"a",
|
|
929
1075
|
{
|
|
930
|
-
href:
|
|
931
|
-
className: `pkt-linkcard pkt-link ${
|
|
932
|
-
target:
|
|
933
|
-
rel:
|
|
934
|
-
ref:
|
|
1076
|
+
href: f,
|
|
1077
|
+
className: `pkt-linkcard pkt-link ${y}`,
|
|
1078
|
+
target: u ? "_blank" : "_self",
|
|
1079
|
+
rel: u ? "noopener noreferrer" : void 0,
|
|
1080
|
+
ref: p,
|
|
935
1081
|
children: [
|
|
936
|
-
/* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
/* @__PURE__ */
|
|
1082
|
+
/* @__PURE__ */ t(g, { className: "pkt-link__icon", name: i }),
|
|
1083
|
+
/* @__PURE__ */ s("div", { className: "pkt-linkcard__content", children: [
|
|
1084
|
+
/* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${m ? "pkt-link pkt-link--external" : ""}`, children: o }),
|
|
1085
|
+
/* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: n })
|
|
940
1086
|
] })
|
|
941
1087
|
]
|
|
942
1088
|
}
|
|
943
1089
|
);
|
|
944
1090
|
}
|
|
945
1091
|
);
|
|
946
|
-
|
|
947
|
-
const
|
|
1092
|
+
Rt.displayName = "PktLinkCard";
|
|
1093
|
+
const Ft = ({
|
|
948
1094
|
children: n,
|
|
949
|
-
skin:
|
|
950
|
-
title:
|
|
951
|
-
...
|
|
1095
|
+
skin: c = "beige",
|
|
1096
|
+
title: i,
|
|
1097
|
+
...u
|
|
952
1098
|
}) => {
|
|
953
|
-
const
|
|
954
|
-
return /* @__PURE__ */
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
1099
|
+
const l = ["pkt-messagebox", c && `pkt-messagebox--${c}`].filter(Boolean).join(" ");
|
|
1100
|
+
return /* @__PURE__ */ s("div", { ...u, className: l, children: [
|
|
1101
|
+
/* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: i }),
|
|
1102
|
+
/* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: n })
|
|
957
1103
|
] });
|
|
958
|
-
},
|
|
959
|
-
({ id: n, name:
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
-
/* @__PURE__ */
|
|
1104
|
+
}, Pt = B(
|
|
1105
|
+
({ id: n, name: c, label: i, value: u, ...l }, f) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
|
|
1106
|
+
/* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: n, name: c, value: u, ref: f, ...l }),
|
|
1107
|
+
/* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: n, children: i })
|
|
962
1108
|
] })
|
|
963
1109
|
);
|
|
964
|
-
|
|
965
|
-
const Dt = ({ label: n, children:
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
968
|
-
] })
|
|
969
|
-
var He = { exports: {} };
|
|
970
|
-
/*!
|
|
971
|
-
Copyright (c) 2018 Jed Watson.
|
|
972
|
-
Licensed under the MIT License (MIT), see
|
|
973
|
-
http://jedwatson.github.io/classnames
|
|
974
|
-
*/
|
|
975
|
-
(function(n) {
|
|
976
|
-
(function() {
|
|
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);
|
|
989
|
-
}
|
|
990
|
-
} else if (k === "object") {
|
|
991
|
-
if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
|
|
992
|
-
i.push(c.toString());
|
|
993
|
-
continue;
|
|
994
|
-
}
|
|
995
|
-
for (var u in c)
|
|
996
|
-
o.call(c, u) && c[u] && i.push(u);
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
}
|
|
1000
|
-
return i.join(" ");
|
|
1001
|
-
}
|
|
1002
|
-
n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
|
|
1003
|
-
})();
|
|
1004
|
-
})(He);
|
|
1005
|
-
var Rt = He.exports;
|
|
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 = ({
|
|
1110
|
+
Pt.displayName = "PktRadio";
|
|
1111
|
+
const Dt = ({ label: n, children: c }) => /* @__PURE__ */ s(V, { children: [
|
|
1112
|
+
/* @__PURE__ */ t("p", { children: n }),
|
|
1113
|
+
/* @__PURE__ */ t("div", { className: "pkt-form-group", children: c })
|
|
1114
|
+
] }), Tt = ({ isResponsive: n, children: c }) => n ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ t(V, { children: c }), At = ({
|
|
1007
1115
|
isResponsive: n,
|
|
1008
|
-
modifiers: { info:
|
|
1009
|
-
children:
|
|
1010
|
-
}) => /* @__PURE__ */
|
|
1116
|
+
modifiers: { info: c = !1, success: i = !1, strong: u = !1, shadow: l = !1 } = {},
|
|
1117
|
+
children: f
|
|
1118
|
+
}) => /* @__PURE__ */ t(Tt, { isResponsive: n, children: /* @__PURE__ */ t(
|
|
1011
1119
|
"table",
|
|
1012
1120
|
{
|
|
1013
|
-
className:
|
|
1014
|
-
"pkt-table--info":
|
|
1015
|
-
"pkt-table--success":
|
|
1016
|
-
"pkt-table--strong":
|
|
1017
|
-
"pkt-table--shadow":
|
|
1121
|
+
className: Ge("pkt-table", {
|
|
1122
|
+
"pkt-table--info": c,
|
|
1123
|
+
"pkt-table--success": i,
|
|
1124
|
+
"pkt-table--strong": u,
|
|
1125
|
+
"pkt-table--shadow": l
|
|
1018
1126
|
}),
|
|
1019
|
-
children:
|
|
1127
|
+
children: f
|
|
1020
1128
|
}
|
|
1021
|
-
) }),
|
|
1129
|
+
) }), Lt = ({ children: n }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: n }), Mt = ({ children: n }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: n }), Ct = B(({
|
|
1022
1130
|
children: n,
|
|
1023
|
-
className:
|
|
1024
|
-
skin:
|
|
1025
|
-
textStyle:
|
|
1026
|
-
size:
|
|
1027
|
-
closeTag:
|
|
1028
|
-
iconName:
|
|
1029
|
-
type:
|
|
1030
|
-
ariaLabel:
|
|
1031
|
-
onClick:
|
|
1131
|
+
className: c,
|
|
1132
|
+
skin: i = "blue",
|
|
1133
|
+
textStyle: u = "normal-text",
|
|
1134
|
+
size: l = "medium",
|
|
1135
|
+
closeTag: f = !1,
|
|
1136
|
+
iconName: m = "",
|
|
1137
|
+
type: o = "button",
|
|
1138
|
+
ariaLabel: p = "close",
|
|
1139
|
+
onClick: y = () => {
|
|
1032
1140
|
}
|
|
1033
1141
|
}, N) => {
|
|
1034
|
-
const [
|
|
1035
|
-
|
|
1036
|
-
},
|
|
1142
|
+
const [E, T] = ue(!1), j = (C) => {
|
|
1143
|
+
T(!0), y(C);
|
|
1144
|
+
}, I = [
|
|
1037
1145
|
"pkt-tag",
|
|
1038
|
-
|
|
1039
|
-
s && `pkt-tag--${s}`,
|
|
1146
|
+
l && `pkt-tag--${l}`,
|
|
1040
1147
|
i && `pkt-tag--${i}`,
|
|
1041
|
-
|
|
1042
|
-
|
|
1148
|
+
u && `pkt-tag--${u}`,
|
|
1149
|
+
c
|
|
1150
|
+
].filter(Boolean).join(" "), O = [
|
|
1043
1151
|
"pkt-tag",
|
|
1044
1152
|
"pkt-btn",
|
|
1045
1153
|
"pkt-btn--tertiary",
|
|
1046
|
-
|
|
1047
|
-
s && `pkt-tag--${s}`,
|
|
1154
|
+
l && `pkt-tag--${l}`,
|
|
1048
1155
|
i && `pkt-tag--${i}`,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1156
|
+
u && `pkt-tag--${u}`,
|
|
1157
|
+
m && f ? "pkt-btn--icons-right-and-left" : null,
|
|
1158
|
+
f && !m ? "pkt-btn--icon-right" : null,
|
|
1159
|
+
c
|
|
1160
|
+
].filter(Boolean).join(" "), F = !E;
|
|
1161
|
+
return f && m ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
|
|
1054
1162
|
"button",
|
|
1055
1163
|
{
|
|
1056
|
-
className:
|
|
1057
|
-
type:
|
|
1058
|
-
"aria-label":
|
|
1059
|
-
onClick:
|
|
1164
|
+
className: O,
|
|
1165
|
+
type: o,
|
|
1166
|
+
"aria-label": p,
|
|
1167
|
+
onClick: j,
|
|
1060
1168
|
ref: N,
|
|
1061
1169
|
children: [
|
|
1062
|
-
/* @__PURE__ */
|
|
1170
|
+
/* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
|
|
1063
1171
|
n,
|
|
1064
|
-
/* @__PURE__ */
|
|
1172
|
+
/* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" })
|
|
1065
1173
|
]
|
|
1066
1174
|
}
|
|
1067
|
-
) }) :
|
|
1175
|
+
) }) : f ? /* @__PURE__ */ t(V, { children: F && /* @__PURE__ */ s(
|
|
1068
1176
|
"button",
|
|
1069
1177
|
{
|
|
1070
|
-
className:
|
|
1071
|
-
type:
|
|
1072
|
-
"aria-label":
|
|
1073
|
-
onClick:
|
|
1178
|
+
className: O,
|
|
1179
|
+
type: o,
|
|
1180
|
+
"aria-label": p,
|
|
1181
|
+
onClick: j,
|
|
1074
1182
|
ref: N,
|
|
1075
1183
|
children: [
|
|
1076
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1077
1185
|
n
|
|
1078
1186
|
]
|
|
1079
1187
|
}
|
|
1080
|
-
) }) :
|
|
1081
|
-
/* @__PURE__ */
|
|
1188
|
+
) }) : m ? /* @__PURE__ */ s("span", { className: I, children: [
|
|
1189
|
+
/* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: m }),
|
|
1082
1190
|
n
|
|
1083
|
-
] }) : /* @__PURE__ */
|
|
1191
|
+
] }) : /* @__PURE__ */ t("span", { className: I, children: n });
|
|
1084
1192
|
});
|
|
1085
1193
|
Ct.displayName = "PktTag";
|
|
1086
|
-
const jt =
|
|
1087
|
-
({ id: n, label:
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1194
|
+
const jt = B(
|
|
1195
|
+
({ id: n, label: c, ...i }, u) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
|
|
1196
|
+
/* @__PURE__ */ t("label", { htmlFor: n, className: "pkt-form-label", children: c }),
|
|
1197
|
+
/* @__PURE__ */ t("textarea", { className: "pkt-form-textarea", id: n, ref: u, ...i })
|
|
1090
1198
|
] })
|
|
1091
1199
|
);
|
|
1092
1200
|
jt.displayName = "PktTextarea";
|
|
1093
|
-
const
|
|
1201
|
+
const Wt = B(
|
|
1094
1202
|
({
|
|
1095
1203
|
id: n,
|
|
1096
|
-
label:
|
|
1097
|
-
name:
|
|
1098
|
-
srOnlyLabel:
|
|
1099
|
-
helptext:
|
|
1100
|
-
helptextDropdown:
|
|
1101
|
-
helptextDropdownButton:
|
|
1102
|
-
optional:
|
|
1103
|
-
required:
|
|
1104
|
-
hasError:
|
|
1204
|
+
label: c,
|
|
1205
|
+
name: i,
|
|
1206
|
+
srOnlyLabel: u = !1,
|
|
1207
|
+
helptext: l,
|
|
1208
|
+
helptextDropdown: f,
|
|
1209
|
+
helptextDropdownButton: m,
|
|
1210
|
+
optional: o = !1,
|
|
1211
|
+
required: p = !1,
|
|
1212
|
+
hasError: y = !1,
|
|
1105
1213
|
errorMessage: N,
|
|
1106
|
-
placeholder:
|
|
1107
|
-
type:
|
|
1108
|
-
autocomplete:
|
|
1109
|
-
value:
|
|
1110
|
-
suffix:
|
|
1214
|
+
placeholder: E,
|
|
1215
|
+
type: T = "text",
|
|
1216
|
+
autocomplete: j = "off",
|
|
1217
|
+
value: I,
|
|
1218
|
+
suffix: O,
|
|
1111
1219
|
prefix: F,
|
|
1112
|
-
iconNameRight:
|
|
1220
|
+
iconNameRight: C,
|
|
1113
1221
|
disabled: x = !1,
|
|
1114
|
-
inline:
|
|
1115
|
-
ariaLabelledby:
|
|
1116
|
-
ariaDescribedby:
|
|
1117
|
-
className:
|
|
1118
|
-
...
|
|
1119
|
-
},
|
|
1120
|
-
const [Y,
|
|
1121
|
-
|
|
1122
|
-
},
|
|
1222
|
+
inline: Q = !1,
|
|
1223
|
+
ariaLabelledby: M,
|
|
1224
|
+
ariaDescribedby: J,
|
|
1225
|
+
className: H,
|
|
1226
|
+
...W
|
|
1227
|
+
}, A) => {
|
|
1228
|
+
const [Y, q] = ue(!1), z = () => {
|
|
1229
|
+
q(!Y);
|
|
1230
|
+
}, h = () => o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : p ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", P = o ? "Valgfritt" : p ? "Må fylles ut" : "", ae = [H, "pkt-textinput", x ? "pkt-textinput--disabled" : "", Q ? "pkt-textinput--inline" : "", y ? "pkt-textinput--error" : ""].join(
|
|
1123
1231
|
" "
|
|
1124
|
-
),
|
|
1125
|
-
return /* @__PURE__ */
|
|
1126
|
-
/* @__PURE__ */
|
|
1127
|
-
|
|
1232
|
+
), G = !!f && f !== "";
|
|
1233
|
+
return /* @__PURE__ */ s("div", { className: ae, children: [
|
|
1234
|
+
/* @__PURE__ */ s(
|
|
1235
|
+
G ? "div" : "label",
|
|
1128
1236
|
{
|
|
1129
1237
|
htmlFor: n,
|
|
1130
|
-
className: `pkt-textinput__label ${
|
|
1131
|
-
"aria-describedby":
|
|
1238
|
+
className: `pkt-textinput__label ${u ? "pkt-sr-only" : ""}`,
|
|
1239
|
+
"aria-describedby": G ? "" : J,
|
|
1132
1240
|
children: [
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
|
|
1135
|
-
|
|
1241
|
+
/* @__PURE__ */ s(G ? "h2" : "span", { children: [
|
|
1242
|
+
c,
|
|
1243
|
+
P !== "" && /* @__PURE__ */ t("span", { className: h(), children: P })
|
|
1136
1244
|
] }),
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
/* @__PURE__ */
|
|
1140
|
-
|
|
1245
|
+
l && /* @__PURE__ */ t("div", { className: "pkt-textinput__helptext", children: l }),
|
|
1246
|
+
G && /* @__PURE__ */ s(V, { children: [
|
|
1247
|
+
/* @__PURE__ */ t(
|
|
1248
|
+
ce,
|
|
1141
1249
|
{
|
|
1142
1250
|
skin: "tertiary",
|
|
1143
1251
|
size: "small",
|
|
1144
1252
|
variant: "icon-right",
|
|
1145
1253
|
iconName: Y ? "chevron-thin-up" : "chevron-thin-down",
|
|
1146
1254
|
className: "pkt-textinput__helptext-expandable pkt-link pkt-link--icon-right",
|
|
1147
|
-
onClick:
|
|
1148
|
-
children:
|
|
1255
|
+
onClick: z,
|
|
1256
|
+
children: m || /* @__PURE__ */ s(V, { children: [
|
|
1149
1257
|
"Les mer ",
|
|
1150
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ t("span", { className: "pkt-sr-only", children: "om inputfeltet" })
|
|
1151
1259
|
] })
|
|
1152
1260
|
}
|
|
1153
1261
|
),
|
|
1154
|
-
/* @__PURE__ */
|
|
1262
|
+
/* @__PURE__ */ t(
|
|
1155
1263
|
"div",
|
|
1156
1264
|
{
|
|
1157
1265
|
className: `pkt-textinput__helptext ${Y ? "pkt-textinput__helptext-expandable-open" : "pkt-textinput__helptext-expandable-closed"}`,
|
|
1158
|
-
children: /* @__PURE__ */
|
|
1266
|
+
children: /* @__PURE__ */ t(Be, { children: f })
|
|
1159
1267
|
}
|
|
1160
1268
|
),
|
|
1161
|
-
/* @__PURE__ */
|
|
1269
|
+
/* @__PURE__ */ t(
|
|
1162
1270
|
"label",
|
|
1163
1271
|
{
|
|
1164
1272
|
htmlFor: n,
|
|
1165
1273
|
className: "pkt-textinput__label pkt-sr-only",
|
|
1166
|
-
"aria-describedby":
|
|
1167
|
-
children:
|
|
1274
|
+
"aria-describedby": J,
|
|
1275
|
+
children: c
|
|
1168
1276
|
}
|
|
1169
1277
|
)
|
|
1170
1278
|
] }),
|
|
1171
|
-
F && /* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1279
|
+
F && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
|
|
1280
|
+
/* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: F }),
|
|
1281
|
+
/* @__PURE__ */ t(
|
|
1174
1282
|
"input",
|
|
1175
1283
|
{
|
|
1176
|
-
ref:
|
|
1284
|
+
ref: A,
|
|
1177
1285
|
className: "pkt-textinput__input",
|
|
1178
|
-
type:
|
|
1179
|
-
name:
|
|
1286
|
+
type: T,
|
|
1287
|
+
name: i || n,
|
|
1180
1288
|
id: n,
|
|
1181
|
-
placeholder:
|
|
1182
|
-
autoComplete:
|
|
1183
|
-
value:
|
|
1289
|
+
placeholder: E,
|
|
1290
|
+
autoComplete: j,
|
|
1291
|
+
value: I,
|
|
1184
1292
|
disabled: x,
|
|
1185
|
-
"aria-required":
|
|
1186
|
-
"aria-invalid":
|
|
1187
|
-
"aria-labelledby":
|
|
1188
|
-
...
|
|
1293
|
+
"aria-required": p,
|
|
1294
|
+
"aria-invalid": y,
|
|
1295
|
+
"aria-labelledby": M,
|
|
1296
|
+
...W
|
|
1189
1297
|
}
|
|
1190
1298
|
)
|
|
1191
1299
|
] }),
|
|
1192
|
-
!F && (
|
|
1193
|
-
/* @__PURE__ */
|
|
1300
|
+
!F && (O || C) && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
|
|
1301
|
+
/* @__PURE__ */ t(
|
|
1194
1302
|
"input",
|
|
1195
1303
|
{
|
|
1196
|
-
ref:
|
|
1304
|
+
ref: A,
|
|
1197
1305
|
className: "pkt-textinput__input",
|
|
1198
|
-
type:
|
|
1199
|
-
name:
|
|
1306
|
+
type: T,
|
|
1307
|
+
name: i || n,
|
|
1200
1308
|
id: n,
|
|
1201
|
-
placeholder:
|
|
1202
|
-
autoComplete:
|
|
1203
|
-
value:
|
|
1309
|
+
placeholder: E,
|
|
1310
|
+
autoComplete: j,
|
|
1311
|
+
value: I,
|
|
1204
1312
|
disabled: x,
|
|
1205
|
-
"aria-required":
|
|
1206
|
-
"aria-invalid":
|
|
1207
|
-
"aria-labelledby":
|
|
1208
|
-
...
|
|
1313
|
+
"aria-required": p,
|
|
1314
|
+
"aria-invalid": y,
|
|
1315
|
+
"aria-labelledby": M,
|
|
1316
|
+
...W
|
|
1209
1317
|
}
|
|
1210
1318
|
),
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1319
|
+
O && /* @__PURE__ */ s("p", { className: "pkt-textinput__input-suffix", children: [
|
|
1320
|
+
O,
|
|
1321
|
+
C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: C })
|
|
1214
1322
|
] }),
|
|
1215
|
-
!
|
|
1323
|
+
!O && C && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: C })
|
|
1216
1324
|
] }),
|
|
1217
|
-
!F && !
|
|
1325
|
+
!F && !O && !C && !f && /* @__PURE__ */ t(
|
|
1218
1326
|
"input",
|
|
1219
1327
|
{
|
|
1220
|
-
ref:
|
|
1328
|
+
ref: A,
|
|
1221
1329
|
className: "pkt-textinput__input",
|
|
1222
|
-
type:
|
|
1223
|
-
name:
|
|
1330
|
+
type: T,
|
|
1331
|
+
name: i || n,
|
|
1224
1332
|
id: n,
|
|
1225
|
-
placeholder:
|
|
1226
|
-
autoComplete:
|
|
1227
|
-
value:
|
|
1333
|
+
placeholder: E,
|
|
1334
|
+
autoComplete: j,
|
|
1335
|
+
value: I,
|
|
1228
1336
|
disabled: x,
|
|
1229
|
-
"aria-required":
|
|
1230
|
-
"aria-invalid":
|
|
1231
|
-
"aria-labelledby":
|
|
1232
|
-
...
|
|
1337
|
+
"aria-required": p,
|
|
1338
|
+
"aria-invalid": y,
|
|
1339
|
+
"aria-labelledby": M,
|
|
1340
|
+
...W
|
|
1233
1341
|
}
|
|
1234
1342
|
)
|
|
1235
1343
|
]
|
|
1236
1344
|
}
|
|
1237
1345
|
),
|
|
1238
|
-
|
|
1346
|
+
y && /* @__PURE__ */ t(Be, { skin: "error", "aria-live": "assertive", children: N })
|
|
1239
1347
|
] });
|
|
1240
1348
|
}
|
|
1241
1349
|
);
|
|
1242
1350
|
export {
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1351
|
+
Be as PktAlert,
|
|
1352
|
+
ce as PktButton,
|
|
1353
|
+
Ot as PktFooter,
|
|
1246
1354
|
$t as PktFooterSimple,
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1355
|
+
It as PktHeader,
|
|
1356
|
+
g as PktIcon,
|
|
1357
|
+
wt as PktInput,
|
|
1358
|
+
Rt as PktLinkCard,
|
|
1359
|
+
Ft as PktMessagebox,
|
|
1360
|
+
Pt as PktRadio,
|
|
1253
1361
|
Dt as PktRadioGroup,
|
|
1254
1362
|
At as PktTable,
|
|
1255
|
-
|
|
1256
|
-
|
|
1363
|
+
Lt as PktTableData,
|
|
1364
|
+
Mt as PktTableHeader,
|
|
1257
1365
|
Ct as PktTag,
|
|
1258
1366
|
jt as PktTextarea,
|
|
1259
|
-
|
|
1367
|
+
Wt as PktTextinput
|
|
1260
1368
|
};
|