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