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