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