@oslokommune/punkt-react 11.14.1 → 11.14.2
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 +129 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/stepper/Step.d.ts +21 -0
- package/dist/components/stepper/Stepper.d.ts +28 -0
- package/dist/components/stepper/Stepper.test.d.ts +1 -0
- package/dist/punkt-react.es.js +820 -783
- package/dist/punkt-react.umd.js +12 -12
- package/package.json +3 -3
- package/src/components/accordion/Accordion.test.tsx +1 -4
- package/src/components/index.ts +2 -0
- package/src/components/stepper/Step.tsx +59 -0
- package/src/components/stepper/Stepper.test.tsx +93 -0
- package/src/components/stepper/Stepper.tsx +67 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import K, { forwardRef as S, createContext as Rt, useState as X, useContext as Pt, useEffect as oe, useRef as $e, Fragment as $t } from "react";
|
|
2
2
|
import { Link as qe } from "react-router-dom";
|
|
3
3
|
function Tt(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -18,18 +18,18 @@ function St() {
|
|
|
18
18
|
if (Xe)
|
|
19
19
|
return le;
|
|
20
20
|
Xe = 1;
|
|
21
|
-
var r =
|
|
22
|
-
function d(
|
|
23
|
-
var k, h = {},
|
|
24
|
-
|
|
25
|
-
for (k in
|
|
26
|
-
|
|
27
|
-
if (
|
|
28
|
-
for (k in
|
|
29
|
-
h[k] === void 0 && (h[k] =
|
|
30
|
-
return { $$typeof: n, type:
|
|
21
|
+
var r = K, n = Symbol.for("react.element"), o = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, c = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function d(a, u, p) {
|
|
23
|
+
var k, h = {}, v = null, g = null;
|
|
24
|
+
p !== void 0 && (v = "" + p), u.key !== void 0 && (v = "" + u.key), u.ref !== void 0 && (g = u.ref);
|
|
25
|
+
for (k in u)
|
|
26
|
+
l.call(u, k) && !s.hasOwnProperty(k) && (h[k] = u[k]);
|
|
27
|
+
if (a && a.defaultProps)
|
|
28
|
+
for (k in u = a.defaultProps, u)
|
|
29
|
+
h[k] === void 0 && (h[k] = u[k]);
|
|
30
|
+
return { $$typeof: n, type: a, key: v, ref: g, props: h, _owner: c.current };
|
|
31
31
|
}
|
|
32
|
-
return le.Fragment =
|
|
32
|
+
return le.Fragment = o, le.jsx = d, le.jsxs = d, le;
|
|
33
33
|
}
|
|
34
34
|
var ie = {};
|
|
35
35
|
/**
|
|
@@ -44,45 +44,45 @@ var ie = {};
|
|
|
44
44
|
var Ze;
|
|
45
45
|
function It() {
|
|
46
46
|
return Ze || (Ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var r =
|
|
47
|
+
var r = K, n = Symbol.for("react.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), a = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), E = Symbol.iterator, I = "@@iterator";
|
|
48
48
|
function $(t) {
|
|
49
49
|
if (t === null || typeof t != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var
|
|
52
|
-
return typeof
|
|
51
|
+
var i = E && t[E] || t[I];
|
|
52
|
+
return typeof i == "function" ? i : null;
|
|
53
53
|
}
|
|
54
54
|
var C = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
55
|
function w(t) {
|
|
56
56
|
{
|
|
57
|
-
for (var
|
|
57
|
+
for (var i = arguments.length, f = new Array(i > 1 ? i - 1 : 0), _ = 1; _ < i; _++)
|
|
58
58
|
f[_ - 1] = arguments[_];
|
|
59
|
-
|
|
59
|
+
b("error", t, f);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function b(t, i, f) {
|
|
63
63
|
{
|
|
64
64
|
var _ = C.ReactDebugCurrentFrame, y = _.getStackAddendum();
|
|
65
|
-
y !== "" && (
|
|
65
|
+
y !== "" && (i += "%s", f = f.concat([y]));
|
|
66
66
|
var R = f.map(function(N) {
|
|
67
67
|
return String(N);
|
|
68
68
|
});
|
|
69
|
-
R.unshift("Warning: " +
|
|
69
|
+
R.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, R);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
72
|
+
var O = !1, Y = !1, B = !1, W = !1, G = !1, V;
|
|
73
|
+
V = Symbol.for("react.module.reference");
|
|
74
|
+
function J(t) {
|
|
75
|
+
return !!(typeof t == "string" || typeof t == "function" || t === l || t === s || G || t === c || t === p || t === k || W || t === g || O || Y || B || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === h || t.$$typeof === d || t.$$typeof === a || t.$$typeof === u || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
t.$$typeof ===
|
|
79
|
+
t.$$typeof === V || t.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function z(t, i, f) {
|
|
82
82
|
var _ = t.displayName;
|
|
83
83
|
if (_)
|
|
84
84
|
return _;
|
|
85
|
-
var y =
|
|
85
|
+
var y = i.displayName || i.name || "";
|
|
86
86
|
return y !== "" ? f + "(" + y + ")" : f;
|
|
87
87
|
}
|
|
88
88
|
function A(t) {
|
|
@@ -96,33 +96,33 @@ function It() {
|
|
|
96
96
|
if (typeof t == "string")
|
|
97
97
|
return t;
|
|
98
98
|
switch (t) {
|
|
99
|
-
case
|
|
99
|
+
case l:
|
|
100
100
|
return "Fragment";
|
|
101
|
-
case
|
|
101
|
+
case o:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case s:
|
|
104
104
|
return "Profiler";
|
|
105
|
-
case
|
|
105
|
+
case c:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case p:
|
|
108
108
|
return "Suspense";
|
|
109
109
|
case k:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof t == "object")
|
|
113
113
|
switch (t.$$typeof) {
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return A(
|
|
114
|
+
case a:
|
|
115
|
+
var i = t;
|
|
116
|
+
return A(i) + ".Consumer";
|
|
117
117
|
case d:
|
|
118
118
|
var f = t;
|
|
119
119
|
return A(f._context) + ".Provider";
|
|
120
|
-
case
|
|
121
|
-
return
|
|
120
|
+
case u:
|
|
121
|
+
return z(t, t.render, "ForwardRef");
|
|
122
122
|
case h:
|
|
123
123
|
var _ = t.displayName || null;
|
|
124
124
|
return _ !== null ? _ : P(t.type) || "Memo";
|
|
125
|
-
case
|
|
125
|
+
case v: {
|
|
126
126
|
var y = t, R = y._payload, N = y._init;
|
|
127
127
|
try {
|
|
128
128
|
return P(N(R));
|
|
@@ -196,7 +196,7 @@ function It() {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
var he = C.ReactCurrentDispatcher, _e;
|
|
199
|
-
function pe(t,
|
|
199
|
+
function pe(t, i, f) {
|
|
200
200
|
{
|
|
201
201
|
if (_e === void 0)
|
|
202
202
|
try {
|
|
@@ -209,13 +209,13 @@ function It() {
|
|
|
209
209
|
` + _e + t;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var xe = !1, ue;
|
|
213
213
|
{
|
|
214
214
|
var nt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
215
|
ue = new nt();
|
|
216
216
|
}
|
|
217
|
-
function De(t,
|
|
218
|
-
if (!t ||
|
|
217
|
+
function De(t, i) {
|
|
218
|
+
if (!t || xe)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
221
|
var f = ue.get(t);
|
|
@@ -223,13 +223,13 @@ function It() {
|
|
|
223
223
|
return f;
|
|
224
224
|
}
|
|
225
225
|
var _;
|
|
226
|
-
|
|
226
|
+
xe = !0;
|
|
227
227
|
var y = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
229
|
var R;
|
|
230
230
|
R = he.current, he.current = null, tt();
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
232
|
+
if (i) {
|
|
233
233
|
var N = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
@@ -240,107 +240,107 @@ function It() {
|
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(N, []);
|
|
243
|
-
} catch (
|
|
244
|
-
_ =
|
|
243
|
+
} catch (H) {
|
|
244
|
+
_ = H;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(t, [], N);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
N.call();
|
|
250
|
-
} catch (
|
|
251
|
-
_ =
|
|
250
|
+
} catch (H) {
|
|
251
|
+
_ = H;
|
|
252
252
|
}
|
|
253
253
|
t.call(N.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
_ =
|
|
258
|
+
} catch (H) {
|
|
259
|
+
_ = H;
|
|
260
260
|
}
|
|
261
261
|
t();
|
|
262
262
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var j =
|
|
266
|
-
`),
|
|
267
|
-
`), T = j.length - 1,
|
|
268
|
-
|
|
269
|
-
for (; T >= 1 &&
|
|
270
|
-
if (j[T] !==
|
|
271
|
-
if (T !== 1 ||
|
|
263
|
+
} catch (H) {
|
|
264
|
+
if (H && _ && typeof H.stack == "string") {
|
|
265
|
+
for (var j = H.stack.split(`
|
|
266
|
+
`), M = _.stack.split(`
|
|
267
|
+
`), T = j.length - 1, F = M.length - 1; T >= 1 && F >= 0 && j[T] !== M[F]; )
|
|
268
|
+
F--;
|
|
269
|
+
for (; T >= 1 && F >= 0; T--, F--)
|
|
270
|
+
if (j[T] !== M[F]) {
|
|
271
|
+
if (T !== 1 || F !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (T--,
|
|
274
|
-
var
|
|
273
|
+
if (T--, F--, F < 0 || j[T] !== M[F]) {
|
|
274
|
+
var q = `
|
|
275
275
|
` + j[T].replace(" at new ", " at ");
|
|
276
|
-
return t.displayName &&
|
|
276
|
+
return t.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", t.displayName)), typeof t == "function" && ue.set(t, q), q;
|
|
277
277
|
}
|
|
278
|
-
while (T >= 1 &&
|
|
278
|
+
while (T >= 1 && F >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
xe = !1, he.current = R, rt(), Error.prepareStackTrace = y;
|
|
284
284
|
}
|
|
285
285
|
var re = t ? t.displayName || t.name : "", ee = re ? pe(re) : "";
|
|
286
286
|
return typeof t == "function" && ue.set(t, ee), ee;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function st(t, i, f) {
|
|
289
289
|
return De(t, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
291
|
+
function at(t) {
|
|
292
|
+
var i = t.prototype;
|
|
293
|
+
return !!(i && i.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function de(t,
|
|
295
|
+
function de(t, i, f) {
|
|
296
296
|
if (t == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof t == "function")
|
|
299
|
-
return De(t,
|
|
299
|
+
return De(t, at(t));
|
|
300
300
|
if (typeof t == "string")
|
|
301
301
|
return pe(t);
|
|
302
302
|
switch (t) {
|
|
303
|
-
case
|
|
303
|
+
case p:
|
|
304
304
|
return pe("Suspense");
|
|
305
305
|
case k:
|
|
306
306
|
return pe("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof t == "object")
|
|
309
309
|
switch (t.$$typeof) {
|
|
310
|
-
case
|
|
311
|
-
return
|
|
310
|
+
case u:
|
|
311
|
+
return st(t.render);
|
|
312
312
|
case h:
|
|
313
|
-
return de(t.type,
|
|
314
|
-
case
|
|
313
|
+
return de(t.type, i, f);
|
|
314
|
+
case v: {
|
|
315
315
|
var _ = t, y = _._payload, R = _._init;
|
|
316
316
|
try {
|
|
317
|
-
return de(R(y),
|
|
317
|
+
return de(R(y), i, f);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
324
|
+
var se = Object.prototype.hasOwnProperty, Ae = {}, Le = C.ReactDebugCurrentFrame;
|
|
325
325
|
function fe(t) {
|
|
326
326
|
if (t) {
|
|
327
|
-
var
|
|
327
|
+
var i = t._owner, f = de(t.type, t._source, i ? i.type : null);
|
|
328
328
|
Le.setExtraStackFrame(f);
|
|
329
329
|
} else
|
|
330
330
|
Le.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function lt(t,
|
|
332
|
+
function lt(t, i, f, _, y) {
|
|
333
333
|
{
|
|
334
|
-
var R = Function.call.bind(
|
|
334
|
+
var R = Function.call.bind(se);
|
|
335
335
|
for (var N in t)
|
|
336
336
|
if (R(t, N)) {
|
|
337
337
|
var j = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof t[N] != "function") {
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
340
|
+
var M = Error((_ || "React class") + ": " + f + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw M.name = "Invariant Violation", M;
|
|
342
342
|
}
|
|
343
|
-
j = t[N](
|
|
343
|
+
j = t[N](i, N, _, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (T) {
|
|
345
345
|
j = T;
|
|
346
346
|
}
|
|
@@ -349,12 +349,12 @@ function It() {
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
var it = Array.isArray;
|
|
352
|
-
function
|
|
352
|
+
function ve(t) {
|
|
353
353
|
return it(t);
|
|
354
354
|
}
|
|
355
355
|
function ot(t) {
|
|
356
356
|
{
|
|
357
|
-
var
|
|
357
|
+
var i = typeof Symbol == "function" && Symbol.toStringTag, f = i && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
358
358
|
return f;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
@@ -372,39 +372,39 @@ function It() {
|
|
|
372
372
|
if (ct(t))
|
|
373
373
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ot(t)), Ue(t);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var ae = C.ReactCurrentOwner, pt = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
}, We, Ve,
|
|
381
|
-
|
|
380
|
+
}, We, Ve, be;
|
|
381
|
+
be = {};
|
|
382
382
|
function ut(t) {
|
|
383
|
-
if (
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
383
|
+
if (se.call(t, "ref")) {
|
|
384
|
+
var i = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
385
|
+
if (i && i.isReactWarning)
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return t.ref !== void 0;
|
|
389
389
|
}
|
|
390
390
|
function dt(t) {
|
|
391
|
-
if (
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
391
|
+
if (se.call(t, "key")) {
|
|
392
|
+
var i = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
393
|
+
if (i && i.isReactWarning)
|
|
394
394
|
return !1;
|
|
395
395
|
}
|
|
396
396
|
return t.key !== void 0;
|
|
397
397
|
}
|
|
398
|
-
function ft(t,
|
|
399
|
-
if (typeof t.ref == "string" &&
|
|
400
|
-
var f = P(
|
|
401
|
-
|
|
398
|
+
function ft(t, i) {
|
|
399
|
+
if (typeof t.ref == "string" && ae.current && i && ae.current.stateNode !== i) {
|
|
400
|
+
var f = P(ae.current.type);
|
|
401
|
+
be[f] || (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', P(ae.current.type), t.ref), be[f] = !0);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function kt(t,
|
|
404
|
+
function kt(t, i) {
|
|
405
405
|
{
|
|
406
406
|
var f = function() {
|
|
407
|
-
We || (We = !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)",
|
|
407
|
+
We || (We = !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)", i));
|
|
408
408
|
};
|
|
409
409
|
f.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
410
410
|
get: f,
|
|
@@ -412,10 +412,10 @@ function It() {
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
function mt(t,
|
|
415
|
+
function mt(t, i) {
|
|
416
416
|
{
|
|
417
417
|
var f = function() {
|
|
418
|
-
Ve || (Ve = !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)",
|
|
418
|
+
Ve || (Ve = !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)", i));
|
|
419
419
|
};
|
|
420
420
|
f.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
421
421
|
get: f,
|
|
@@ -423,13 +423,13 @@ function It() {
|
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
-
var ht = function(t,
|
|
426
|
+
var ht = function(t, i, f, _, y, R, N) {
|
|
427
427
|
var j = {
|
|
428
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
429
429
|
$$typeof: n,
|
|
430
430
|
// Built-in properties that belong on the element
|
|
431
431
|
type: t,
|
|
432
|
-
key:
|
|
432
|
+
key: i,
|
|
433
433
|
ref: f,
|
|
434
434
|
props: N,
|
|
435
435
|
// Record the component responsible for creating this element.
|
|
@@ -452,38 +452,38 @@ function It() {
|
|
|
452
452
|
value: y
|
|
453
453
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
|
454
454
|
};
|
|
455
|
-
function _t(t,
|
|
455
|
+
function _t(t, i, f, _, y) {
|
|
456
456
|
{
|
|
457
|
-
var R, N = {}, j = null,
|
|
458
|
-
f !== void 0 && (Be(f), j = "" + f), dt(
|
|
459
|
-
for (R in
|
|
460
|
-
|
|
457
|
+
var R, N = {}, j = null, M = null;
|
|
458
|
+
f !== void 0 && (Be(f), j = "" + f), dt(i) && (Be(i.key), j = "" + i.key), ut(i) && (M = i.ref, ft(i, y));
|
|
459
|
+
for (R in i)
|
|
460
|
+
se.call(i, R) && !pt.hasOwnProperty(R) && (N[R] = i[R]);
|
|
461
461
|
if (t && t.defaultProps) {
|
|
462
462
|
var T = t.defaultProps;
|
|
463
463
|
for (R in T)
|
|
464
464
|
N[R] === void 0 && (N[R] = T[R]);
|
|
465
465
|
}
|
|
466
|
-
if (j ||
|
|
467
|
-
var
|
|
468
|
-
j && kt(N,
|
|
466
|
+
if (j || M) {
|
|
467
|
+
var F = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
468
|
+
j && kt(N, F), M && mt(N, F);
|
|
469
469
|
}
|
|
470
|
-
return ht(t, j,
|
|
470
|
+
return ht(t, j, M, y, _, ae.current, N);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
var je = C.ReactCurrentOwner,
|
|
473
|
+
var je = C.ReactCurrentOwner, Me = C.ReactDebugCurrentFrame;
|
|
474
474
|
function te(t) {
|
|
475
475
|
if (t) {
|
|
476
|
-
var
|
|
477
|
-
|
|
476
|
+
var i = t._owner, f = de(t.type, t._source, i ? i.type : null);
|
|
477
|
+
Me.setExtraStackFrame(f);
|
|
478
478
|
} else
|
|
479
|
-
|
|
479
|
+
Me.setExtraStackFrame(null);
|
|
480
480
|
}
|
|
481
481
|
var ge;
|
|
482
482
|
ge = !1;
|
|
483
483
|
function Ne(t) {
|
|
484
484
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Ye() {
|
|
487
487
|
{
|
|
488
488
|
if (je.current) {
|
|
489
489
|
var t = P(je.current.type);
|
|
@@ -495,51 +495,51 @@ Check the render method of \`` + t + "`.";
|
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function xt(t) {
|
|
499
499
|
{
|
|
500
500
|
if (t !== void 0) {
|
|
501
|
-
var
|
|
501
|
+
var i = t.fileName.replace(/^.*[\\\/]/, ""), f = t.lineNumber;
|
|
502
502
|
return `
|
|
503
503
|
|
|
504
|
-
Check your code at ` +
|
|
504
|
+
Check your code at ` + i + ":" + f + ".";
|
|
505
505
|
}
|
|
506
506
|
return "";
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
509
|
+
var ze = {};
|
|
510
|
+
function vt(t) {
|
|
511
511
|
{
|
|
512
|
-
var
|
|
513
|
-
if (!
|
|
512
|
+
var i = Ye();
|
|
513
|
+
if (!i) {
|
|
514
514
|
var f = typeof t == "string" ? t : t.displayName || t.name;
|
|
515
|
-
f && (
|
|
515
|
+
f && (i = `
|
|
516
516
|
|
|
517
517
|
Check the top-level render call using <` + f + ">.");
|
|
518
518
|
}
|
|
519
|
-
return
|
|
519
|
+
return i;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
|
-
function He(t,
|
|
522
|
+
function He(t, i) {
|
|
523
523
|
{
|
|
524
524
|
if (!t._store || t._store.validated || t.key != null)
|
|
525
525
|
return;
|
|
526
526
|
t._store.validated = !0;
|
|
527
|
-
var f =
|
|
528
|
-
if (
|
|
527
|
+
var f = vt(i);
|
|
528
|
+
if (ze[f])
|
|
529
529
|
return;
|
|
530
|
-
|
|
530
|
+
ze[f] = !0;
|
|
531
531
|
var _ = "";
|
|
532
532
|
t && t._owner && t._owner !== je.current && (_ = " It was passed a child from " + P(t._owner.type) + "."), te(t), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, _), te(null);
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Ke(t, i) {
|
|
536
536
|
{
|
|
537
537
|
if (typeof t != "object")
|
|
538
538
|
return;
|
|
539
|
-
if (
|
|
539
|
+
if (ve(t))
|
|
540
540
|
for (var f = 0; f < t.length; f++) {
|
|
541
541
|
var _ = t[f];
|
|
542
|
-
Ne(_) && He(_,
|
|
542
|
+
Ne(_) && He(_, i);
|
|
543
543
|
}
|
|
544
544
|
else if (Ne(t))
|
|
545
545
|
t._store && (t._store.validated = !0);
|
|
@@ -547,39 +547,39 @@ Check the top-level render call using <` + f + ">.");
|
|
|
547
547
|
var y = $(t);
|
|
548
548
|
if (typeof y == "function" && y !== t.entries)
|
|
549
549
|
for (var R = y.call(t), N; !(N = R.next()).done; )
|
|
550
|
-
Ne(N.value) && He(N.value,
|
|
550
|
+
Ne(N.value) && He(N.value, i);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function bt(t) {
|
|
555
555
|
{
|
|
556
|
-
var
|
|
557
|
-
if (
|
|
556
|
+
var i = t.type;
|
|
557
|
+
if (i == null || typeof i == "string")
|
|
558
558
|
return;
|
|
559
559
|
var f;
|
|
560
|
-
if (typeof
|
|
561
|
-
f =
|
|
562
|
-
else if (typeof
|
|
560
|
+
if (typeof i == "function")
|
|
561
|
+
f = i.propTypes;
|
|
562
|
+
else if (typeof i == "object" && (i.$$typeof === u || // Note: Memo only checks outer props here.
|
|
563
563
|
// Inner props are checked in the reconciler.
|
|
564
|
-
|
|
565
|
-
f =
|
|
564
|
+
i.$$typeof === h))
|
|
565
|
+
f = i.propTypes;
|
|
566
566
|
else
|
|
567
567
|
return;
|
|
568
568
|
if (f) {
|
|
569
|
-
var _ = P(
|
|
569
|
+
var _ = P(i);
|
|
570
570
|
lt(f, t.props, "prop", _, t);
|
|
571
|
-
} else if (
|
|
571
|
+
} else if (i.PropTypes !== void 0 && !ge) {
|
|
572
572
|
ge = !0;
|
|
573
|
-
var y = P(
|
|
573
|
+
var y = P(i);
|
|
574
574
|
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
575
575
|
}
|
|
576
|
-
typeof
|
|
576
|
+
typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
function jt(t) {
|
|
580
580
|
{
|
|
581
|
-
for (var
|
|
582
|
-
var _ =
|
|
581
|
+
for (var i = Object.keys(t.props), f = 0; f < i.length; f++) {
|
|
582
|
+
var _ = i[f];
|
|
583
583
|
if (_ !== "children" && _ !== "key") {
|
|
584
584
|
te(t), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), te(null);
|
|
585
585
|
break;
|
|
@@ -588,96 +588,96 @@ Check the top-level render call using <` + f + ">.");
|
|
|
588
588
|
t.ref !== null && (te(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
591
|
+
var Ge = {};
|
|
592
|
+
function Je(t, i, f, _, y, R) {
|
|
593
593
|
{
|
|
594
|
-
var N =
|
|
594
|
+
var N = J(t);
|
|
595
595
|
if (!N) {
|
|
596
596
|
var j = "";
|
|
597
597
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (j += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
598
|
-
var
|
|
599
|
-
|
|
598
|
+
var M = xt(y);
|
|
599
|
+
M ? j += M : j += Ye();
|
|
600
600
|
var T;
|
|
601
|
-
t === null ? T = "null" :
|
|
601
|
+
t === null ? T = "null" : ve(t) ? T = "array" : t !== void 0 && t.$$typeof === n ? (T = "<" + (P(t.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : T = typeof t, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, j);
|
|
602
602
|
}
|
|
603
|
-
var
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
603
|
+
var F = _t(t, i, f, y, R);
|
|
604
|
+
if (F == null)
|
|
605
|
+
return F;
|
|
606
606
|
if (N) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var q = i.children;
|
|
608
|
+
if (q !== void 0)
|
|
609
609
|
if (_)
|
|
610
|
-
if (
|
|
611
|
-
for (var re = 0; re <
|
|
612
|
-
|
|
613
|
-
Object.freeze && Object.freeze(
|
|
610
|
+
if (ve(q)) {
|
|
611
|
+
for (var re = 0; re < q.length; re++)
|
|
612
|
+
Ke(q[re], t);
|
|
613
|
+
Object.freeze && Object.freeze(q);
|
|
614
614
|
} else
|
|
615
615
|
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.");
|
|
616
616
|
else
|
|
617
|
-
|
|
617
|
+
Ke(q, t);
|
|
618
618
|
}
|
|
619
|
-
if (
|
|
620
|
-
var ee = P(t),
|
|
619
|
+
if (se.call(i, "key")) {
|
|
620
|
+
var ee = P(t), H = Object.keys(i).filter(function(Et) {
|
|
621
621
|
return Et !== "key";
|
|
622
|
-
}), ye =
|
|
623
|
-
if (!
|
|
624
|
-
var Ct =
|
|
622
|
+
}), ye = H.length > 0 ? "{key: someKey, " + H.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
623
|
+
if (!Ge[ee + ye]) {
|
|
624
|
+
var Ct = H.length > 0 ? "{" + H.join(": ..., ") + ": ...}" : "{}";
|
|
625
625
|
w(`A props object containing a "key" prop is being spread into JSX:
|
|
626
626
|
let props = %s;
|
|
627
627
|
<%s {...props} />
|
|
628
628
|
React keys must be passed directly to JSX without using spread:
|
|
629
629
|
let props = %s;
|
|
630
|
-
<%s key={someKey} {...props} />`, ye, ee, Ct, ee),
|
|
630
|
+
<%s key={someKey} {...props} />`, ye, ee, Ct, ee), Ge[ee + ye] = !0;
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
return t ===
|
|
633
|
+
return t === l ? jt(F) : bt(F), F;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
|
-
function gt(t,
|
|
637
|
-
return
|
|
636
|
+
function gt(t, i, f) {
|
|
637
|
+
return Je(t, i, f, !0);
|
|
638
638
|
}
|
|
639
|
-
function Nt(t,
|
|
640
|
-
return
|
|
639
|
+
function Nt(t, i, f) {
|
|
640
|
+
return Je(t, i, f, !1);
|
|
641
641
|
}
|
|
642
642
|
var yt = Nt, wt = gt;
|
|
643
|
-
ie.Fragment =
|
|
643
|
+
ie.Fragment = l, ie.jsx = yt, ie.jsxs = wt;
|
|
644
644
|
}()), ie;
|
|
645
645
|
}
|
|
646
646
|
process.env.NODE_ENV === "production" ? Re.exports = St() : Re.exports = It();
|
|
647
647
|
var e = Re.exports;
|
|
648
|
-
const
|
|
649
|
-
({ compact: r = !1, skin: n = "borderless", className:
|
|
650
|
-
const
|
|
651
|
-
|
|
648
|
+
const tr = S(
|
|
649
|
+
({ compact: r = !1, skin: n = "borderless", className: o, children: l }, c) => {
|
|
650
|
+
const s = [
|
|
651
|
+
o,
|
|
652
652
|
"pkt-accordion",
|
|
653
653
|
r && "pkt-accordion--compact",
|
|
654
654
|
n && `pkt-accordion--${n}`
|
|
655
655
|
].filter(Boolean).join(" ");
|
|
656
|
-
return /* @__PURE__ */ e.jsx("div", { "data-testid": "pkt-accordion", className:
|
|
656
|
+
return /* @__PURE__ */ e.jsx("div", { "data-testid": "pkt-accordion", className: s, ref: c, children: l });
|
|
657
657
|
}
|
|
658
658
|
), we = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', Ot = "https://punkt-cdn.oslo.kommune.no/11.14/icons/";
|
|
659
659
|
function Ft(r) {
|
|
660
660
|
return new Promise((n) => setTimeout(n, r));
|
|
661
661
|
}
|
|
662
662
|
const Ce = {}, Dt = async (r, n) => {
|
|
663
|
-
let
|
|
664
|
-
for (; Ce[n + r + ".svg"] === "fetching" && (
|
|
663
|
+
let o = 0;
|
|
664
|
+
for (; Ce[n + r + ".svg"] === "fetching" && (o++, !(o > 50)); )
|
|
665
665
|
await Ft(50);
|
|
666
666
|
return localStorage.getItem(n + r + ".svg") ? Promise.resolve(localStorage.getItem(n + r + ".svg")) : typeof window.fetch == "function" ? (Ce[n + r + ".svg"] = "fetching", Promise.resolve(
|
|
667
|
-
fetch(n + r + ".svg").then((
|
|
667
|
+
fetch(n + r + ".svg").then((l) => l.ok ? l.text() : (console.error("Missing icon: " + n + r + ".svg"), we)).then((l) => (l !== we && localStorage.setItem(n + r + ".svg", l), Ce[n + r + ".svg"] = "fetched", l))
|
|
668
668
|
)) : Promise.resolve(we);
|
|
669
669
|
}, At = {
|
|
670
670
|
fetchIcon: async (r, n) => Dt(r, n || Ot)
|
|
671
|
-
}, Lt = Rt(At),
|
|
672
|
-
const [
|
|
671
|
+
}, Lt = Rt(At), x = ({ name: r, path: n, className: o = "", ...l }) => {
|
|
672
|
+
const [c, s] = X(null), d = Pt(Lt);
|
|
673
673
|
return oe(() => {
|
|
674
|
-
r ? d.fetchIcon(r, n).then(
|
|
675
|
-
}, [r, n]),
|
|
674
|
+
r ? d.fetchIcon(r, n).then(s) : s(null);
|
|
675
|
+
}, [r, n]), c ? /* @__PURE__ */ e.jsx(
|
|
676
676
|
"span",
|
|
677
677
|
{
|
|
678
|
-
className: `pkt-icon ${
|
|
679
|
-
dangerouslySetInnerHTML: { __html:
|
|
680
|
-
...
|
|
678
|
+
className: `pkt-icon ${o}`,
|
|
679
|
+
dangerouslySetInnerHTML: { __html: c },
|
|
680
|
+
...l
|
|
681
681
|
}
|
|
682
682
|
) : null;
|
|
683
683
|
};
|
|
@@ -690,83 +690,83 @@ var et = { exports: {} };
|
|
|
690
690
|
(function(r) {
|
|
691
691
|
(function() {
|
|
692
692
|
var n = {}.hasOwnProperty;
|
|
693
|
-
function
|
|
694
|
-
for (var
|
|
695
|
-
var
|
|
696
|
-
|
|
693
|
+
function o() {
|
|
694
|
+
for (var s = "", d = 0; d < arguments.length; d++) {
|
|
695
|
+
var a = arguments[d];
|
|
696
|
+
a && (s = c(s, l(a)));
|
|
697
697
|
}
|
|
698
|
-
return
|
|
698
|
+
return s;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
if (typeof
|
|
702
|
-
return
|
|
703
|
-
if (typeof
|
|
700
|
+
function l(s) {
|
|
701
|
+
if (typeof s == "string" || typeof s == "number")
|
|
702
|
+
return s;
|
|
703
|
+
if (typeof s != "object")
|
|
704
704
|
return "";
|
|
705
|
-
if (Array.isArray(
|
|
706
|
-
return
|
|
707
|
-
if (
|
|
708
|
-
return
|
|
705
|
+
if (Array.isArray(s))
|
|
706
|
+
return o.apply(null, s);
|
|
707
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
|
|
708
|
+
return s.toString();
|
|
709
709
|
var d = "";
|
|
710
|
-
for (var
|
|
711
|
-
n.call(
|
|
710
|
+
for (var a in s)
|
|
711
|
+
n.call(s, a) && s[a] && (d = c(d, a));
|
|
712
712
|
return d;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
return d ?
|
|
714
|
+
function c(s, d) {
|
|
715
|
+
return d ? s ? s + " " + d : s + d : s;
|
|
716
716
|
}
|
|
717
|
-
r.exports ? (
|
|
717
|
+
r.exports ? (o.default = o, r.exports = o) : window.classNames = o;
|
|
718
718
|
})();
|
|
719
719
|
})(et);
|
|
720
720
|
var Ut = et.exports;
|
|
721
|
-
const
|
|
722
|
-
({ title: r, className: n, children:
|
|
723
|
-
const [
|
|
724
|
-
g.preventDefault(),
|
|
725
|
-
},
|
|
721
|
+
const U = /* @__PURE__ */ Tt(Ut), rr = S(
|
|
722
|
+
({ title: r, className: n, children: o, toggleProps: l, defaultOpen: c = !1, id: s }, d) => {
|
|
723
|
+
const [a, u] = X(c), p = l ? l.isOpen : a, k = (g) => g ?? void 0, h = (g, E) => {
|
|
724
|
+
g.preventDefault(), l !== void 0 && l.onToggleClick(g, E), u(!p);
|
|
725
|
+
}, v = U(n, "pkt-accordion-item");
|
|
726
726
|
return /* @__PURE__ */ e.jsxs(
|
|
727
727
|
"details",
|
|
728
728
|
{
|
|
729
|
-
className:
|
|
729
|
+
className: v,
|
|
730
730
|
ref: d,
|
|
731
|
-
id:
|
|
732
|
-
open: k(
|
|
731
|
+
id: s,
|
|
732
|
+
open: k(l ? l.isOpen : a),
|
|
733
733
|
children: [
|
|
734
734
|
/* @__PURE__ */ e.jsxs(
|
|
735
735
|
"summary",
|
|
736
736
|
{
|
|
737
737
|
className: "pkt-accordion-item__title",
|
|
738
|
-
id: `pkt-accordion-item-summary-${
|
|
739
|
-
onClick: (g) => h(g,
|
|
738
|
+
id: `pkt-accordion-item-summary-${s}`,
|
|
739
|
+
onClick: (g) => h(g, s),
|
|
740
740
|
children: [
|
|
741
741
|
r,
|
|
742
|
-
/* @__PURE__ */ e.jsx(
|
|
742
|
+
/* @__PURE__ */ e.jsx(x, { name: "chevron-thin-down", className: "pkt-accordion-item__icon", "aria-hidden": "true" })
|
|
743
743
|
]
|
|
744
744
|
}
|
|
745
745
|
),
|
|
746
|
-
/* @__PURE__ */ e.jsx("div", { id: `pkt-accordion-item-content-${
|
|
746
|
+
/* @__PURE__ */ e.jsx("div", { id: `pkt-accordion-item-content-${s}`, role: "region", className: "pkt-accordion-item__content", children: o })
|
|
747
747
|
]
|
|
748
748
|
}
|
|
749
749
|
);
|
|
750
750
|
}
|
|
751
|
-
), Bt =
|
|
751
|
+
), Bt = S(
|
|
752
752
|
({
|
|
753
753
|
children: r,
|
|
754
754
|
className: n,
|
|
755
|
-
skin:
|
|
756
|
-
closeAlert:
|
|
757
|
-
onClose:
|
|
758
|
-
title:
|
|
755
|
+
skin: o = "info",
|
|
756
|
+
closeAlert: l = !1,
|
|
757
|
+
onClose: c,
|
|
758
|
+
title: s,
|
|
759
759
|
date: d,
|
|
760
|
-
ariaLive:
|
|
761
|
-
compact:
|
|
762
|
-
...
|
|
760
|
+
ariaLive: a = "polite",
|
|
761
|
+
compact: u = !1,
|
|
762
|
+
...p
|
|
763
763
|
}, k) => {
|
|
764
|
-
const h = [n, "pkt-alert",
|
|
765
|
-
g(!1),
|
|
764
|
+
const h = [n, "pkt-alert", o && `pkt-alert--${o}`, u && "pkt-alert--compact"].filter(Boolean).join(" "), [v, g] = X(!0), E = () => {
|
|
765
|
+
g(!1), c && c();
|
|
766
766
|
};
|
|
767
|
-
return
|
|
768
|
-
/* @__PURE__ */ e.jsx(
|
|
769
|
-
|
|
767
|
+
return v ? /* @__PURE__ */ e.jsxs("div", { ...p, className: h, "aria-live": a, ref: k, children: [
|
|
768
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-alert__icon", name: o === "info" ? "alert-information" : `alert-${o}` }),
|
|
769
|
+
l && /* @__PURE__ */ e.jsx("div", { className: "pkt-alert__close", children: /* @__PURE__ */ e.jsx(
|
|
770
770
|
"button",
|
|
771
771
|
{
|
|
772
772
|
type: "button",
|
|
@@ -774,10 +774,10 @@ const J = /* @__PURE__ */ Tt(Ut), Qt = F(
|
|
|
774
774
|
tabIndex: 0,
|
|
775
775
|
"aria-label": "close",
|
|
776
776
|
onClick: E,
|
|
777
|
-
children: /* @__PURE__ */ e.jsx(
|
|
777
|
+
children: /* @__PURE__ */ e.jsx(x, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
778
778
|
}
|
|
779
779
|
) }),
|
|
780
|
-
|
|
780
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "pkt-alert__title", children: s }),
|
|
781
781
|
/* @__PURE__ */ e.jsx("div", { className: "pkt-alert__text", children: r }),
|
|
782
782
|
d && /* @__PURE__ */ e.jsxs("div", { className: "pkt-alert__date", children: [
|
|
783
783
|
"Sist oppdatert: ",
|
|
@@ -785,77 +785,77 @@ const J = /* @__PURE__ */ Tt(Ut), Qt = F(
|
|
|
785
785
|
] })
|
|
786
786
|
] }) : null;
|
|
787
787
|
}
|
|
788
|
-
),
|
|
789
|
-
({ href: r, text: n, onClick:
|
|
788
|
+
), nr = S(
|
|
789
|
+
({ href: r, text: n, onClick: o, className: l, ...c }, s) => {
|
|
790
790
|
const d = [
|
|
791
|
-
|
|
791
|
+
l,
|
|
792
792
|
"pkt-back-link"
|
|
793
|
-
].filter(Boolean).join(" "),
|
|
794
|
-
|
|
793
|
+
].filter(Boolean).join(" "), a = (u) => {
|
|
794
|
+
o && o(u);
|
|
795
795
|
};
|
|
796
|
-
return /* @__PURE__ */ e.jsx("nav", { ref:
|
|
797
|
-
/* @__PURE__ */ e.jsx(
|
|
796
|
+
return /* @__PURE__ */ e.jsx("nav", { ref: s, className: d, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ e.jsxs("a", { href: r || "/", className: "pkt-link pkt-link--icon-left", onClick: a, ...c, children: [
|
|
797
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
|
|
798
798
|
/* @__PURE__ */ e.jsx("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
|
|
799
799
|
] }) });
|
|
800
800
|
}
|
|
801
|
-
),
|
|
802
|
-
({ breadcrumbs: r, navigationType: n, className:
|
|
803
|
-
const
|
|
804
|
-
|
|
801
|
+
), sr = S(
|
|
802
|
+
({ breadcrumbs: r, navigationType: n, className: o, ...l }, c) => {
|
|
803
|
+
const s = r.slice(0, 4), d = s[s.length - 2], a = [
|
|
804
|
+
o,
|
|
805
805
|
"pkt-breadcrumbs"
|
|
806
806
|
].filter(Boolean).join(" ");
|
|
807
|
-
return /* @__PURE__ */ e.jsxs("nav", { ref:
|
|
808
|
-
/* @__PURE__ */ e.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children:
|
|
807
|
+
return /* @__PURE__ */ e.jsxs("nav", { ref: c, "aria-label": "brødsmulemeny", className: a, children: [
|
|
808
|
+
/* @__PURE__ */ e.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((u, p) => /* @__PURE__ */ e.jsx(
|
|
809
809
|
"li",
|
|
810
810
|
{
|
|
811
811
|
className: "pkt-breadcrumbs__item",
|
|
812
|
-
children:
|
|
812
|
+
children: p === s.length - 1 ? /* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__text", children: u.text }) }) : n === "router" ? /* @__PURE__ */ e.jsxs(
|
|
813
813
|
qe,
|
|
814
814
|
{
|
|
815
|
-
to:
|
|
815
|
+
to: u.href,
|
|
816
816
|
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
817
|
-
...
|
|
817
|
+
...l,
|
|
818
818
|
children: [
|
|
819
819
|
/* @__PURE__ */ e.jsx(
|
|
820
|
-
|
|
820
|
+
x,
|
|
821
821
|
{
|
|
822
822
|
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
823
823
|
name: "chevron-thin-right"
|
|
824
824
|
}
|
|
825
825
|
),
|
|
826
|
-
/* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__text", children:
|
|
826
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__text", children: u.text })
|
|
827
827
|
]
|
|
828
828
|
}
|
|
829
829
|
) : /* @__PURE__ */ e.jsxs(
|
|
830
830
|
"a",
|
|
831
831
|
{
|
|
832
|
-
href:
|
|
832
|
+
href: u.href,
|
|
833
833
|
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
834
|
-
...
|
|
834
|
+
...l,
|
|
835
835
|
children: [
|
|
836
836
|
/* @__PURE__ */ e.jsx(
|
|
837
|
-
|
|
837
|
+
x,
|
|
838
838
|
{
|
|
839
839
|
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
840
840
|
name: "chevron-thin-right"
|
|
841
841
|
}
|
|
842
842
|
),
|
|
843
|
-
/* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__text", children:
|
|
843
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-breadcrumbs__text", children: u.text })
|
|
844
844
|
]
|
|
845
845
|
}
|
|
846
846
|
)
|
|
847
847
|
},
|
|
848
|
-
`breadcrumb-${
|
|
848
|
+
`breadcrumb-${p}`
|
|
849
849
|
)) }),
|
|
850
850
|
n === "router" ? /* @__PURE__ */ e.jsxs(
|
|
851
851
|
qe,
|
|
852
852
|
{
|
|
853
853
|
to: d.href,
|
|
854
854
|
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
855
|
-
...
|
|
855
|
+
...l,
|
|
856
856
|
children: [
|
|
857
857
|
/* @__PURE__ */ e.jsx(
|
|
858
|
-
|
|
858
|
+
x,
|
|
859
859
|
{
|
|
860
860
|
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
861
861
|
name: "chevron-thin-left"
|
|
@@ -869,10 +869,10 @@ const J = /* @__PURE__ */ Tt(Ut), Qt = F(
|
|
|
869
869
|
{
|
|
870
870
|
href: d.href,
|
|
871
871
|
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
872
|
-
...
|
|
872
|
+
...l,
|
|
873
873
|
children: [
|
|
874
874
|
/* @__PURE__ */ e.jsx(
|
|
875
|
-
|
|
875
|
+
x,
|
|
876
876
|
{
|
|
877
877
|
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
878
878
|
name: "chevron-thin-left"
|
|
@@ -884,72 +884,72 @@ const J = /* @__PURE__ */ Tt(Ut), Qt = F(
|
|
|
884
884
|
)
|
|
885
885
|
] });
|
|
886
886
|
}
|
|
887
|
-
), ce =
|
|
887
|
+
), ce = S(
|
|
888
888
|
({
|
|
889
889
|
children: r,
|
|
890
890
|
className: n,
|
|
891
|
-
iconName:
|
|
892
|
-
secondIconName:
|
|
893
|
-
size:
|
|
894
|
-
skin:
|
|
891
|
+
iconName: o = "user",
|
|
892
|
+
secondIconName: l = "user",
|
|
893
|
+
size: c = "medium",
|
|
894
|
+
skin: s = "primary",
|
|
895
895
|
type: d = "button",
|
|
896
|
-
variant:
|
|
897
|
-
color:
|
|
898
|
-
isLoading:
|
|
896
|
+
variant: a = "label-only",
|
|
897
|
+
color: u,
|
|
898
|
+
isLoading: p = !1,
|
|
899
899
|
...k
|
|
900
900
|
}, h) => {
|
|
901
|
-
const
|
|
901
|
+
const v = [
|
|
902
902
|
n,
|
|
903
903
|
"pkt-btn",
|
|
904
|
-
|
|
905
|
-
a && `pkt-btn--${a}`,
|
|
904
|
+
c && `pkt-btn--${c}`,
|
|
906
905
|
s && `pkt-btn--${s}`,
|
|
907
|
-
|
|
908
|
-
u &&
|
|
906
|
+
a && `pkt-btn--${a}`,
|
|
907
|
+
u && `pkt-btn--${u}`,
|
|
908
|
+
p && "pkt-btn--active"
|
|
909
909
|
].filter(Boolean).join(" ");
|
|
910
|
-
return /* @__PURE__ */ e.jsxs("button", { ...k, className:
|
|
911
|
-
|
|
912
|
-
|
|
910
|
+
return /* @__PURE__ */ e.jsxs("button", { ...k, className: v, type: d, ref: h, children: [
|
|
911
|
+
p && /* @__PURE__ */ e.jsx(
|
|
912
|
+
x,
|
|
913
913
|
{
|
|
914
914
|
className: "pkt-btn__icon pkt-btn__spinner",
|
|
915
915
|
name: "spinner-blue",
|
|
916
916
|
path: "https://punkt-cdn.oslo.kommune.no/11.14/animations/"
|
|
917
917
|
}
|
|
918
918
|
),
|
|
919
|
-
|
|
919
|
+
a !== "label-only" && /* @__PURE__ */ e.jsx(x, { className: "pkt-btn__icon", name: o }),
|
|
920
920
|
/* @__PURE__ */ e.jsx("span", { className: "pkt-btn__text", children: r }),
|
|
921
|
-
|
|
921
|
+
a === "icons-right-and-left" && /* @__PURE__ */ e.jsx(x, { className: "pkt-btn__icon", name: l })
|
|
922
922
|
] });
|
|
923
923
|
}
|
|
924
924
|
);
|
|
925
925
|
ce.displayName = "PktButton";
|
|
926
|
-
const Wt =
|
|
926
|
+
const Wt = S(
|
|
927
927
|
({
|
|
928
928
|
id: r,
|
|
929
929
|
hasTile: n = !1,
|
|
930
|
-
disabled:
|
|
931
|
-
label:
|
|
932
|
-
labelPosition:
|
|
933
|
-
hideLabel:
|
|
930
|
+
disabled: o = !1,
|
|
931
|
+
label: l,
|
|
932
|
+
labelPosition: c = "right",
|
|
933
|
+
hideLabel: s = !1,
|
|
934
934
|
checkHelptext: d,
|
|
935
|
-
hasError:
|
|
936
|
-
isSwitch:
|
|
937
|
-
className:
|
|
935
|
+
hasError: a = !1,
|
|
936
|
+
isSwitch: u = !1,
|
|
937
|
+
className: p,
|
|
938
938
|
...k
|
|
939
939
|
}, h) => {
|
|
940
|
-
const
|
|
941
|
-
return /* @__PURE__ */ e.jsx("div", { className:
|
|
940
|
+
const v = [p, "pkt-input-check"].filter(Boolean).join(" ");
|
|
941
|
+
return /* @__PURE__ */ e.jsx("div", { className: v, children: /* @__PURE__ */ e.jsxs(
|
|
942
942
|
"div",
|
|
943
943
|
{
|
|
944
|
-
className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${
|
|
944
|
+
className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${o && n ? "pkt-input-check__input--tile-disabled" : ""}`,
|
|
945
945
|
children: [
|
|
946
|
-
|
|
946
|
+
l && c === "left" && /* @__PURE__ */ e.jsxs(
|
|
947
947
|
"label",
|
|
948
948
|
{
|
|
949
|
-
className: `pkt-input-check__input-label ${
|
|
949
|
+
className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
|
|
950
950
|
htmlFor: r,
|
|
951
951
|
children: [
|
|
952
|
-
|
|
952
|
+
l,
|
|
953
953
|
d && /* @__PURE__ */ e.jsx("div", { className: "pkt-input-check__input-helptext", children: d })
|
|
954
954
|
]
|
|
955
955
|
}
|
|
@@ -958,21 +958,21 @@ const Wt = F(
|
|
|
958
958
|
"input",
|
|
959
959
|
{
|
|
960
960
|
ref: h,
|
|
961
|
-
className: `pkt-input-check__input-checkbox ${
|
|
961
|
+
className: `pkt-input-check__input-checkbox ${a ? "pkt-input-check__input-checkbox--error" : ""}`,
|
|
962
962
|
type: "checkbox",
|
|
963
|
-
role:
|
|
963
|
+
role: u ? "switch" : "checkbox",
|
|
964
964
|
id: r,
|
|
965
|
-
disabled:
|
|
965
|
+
disabled: o,
|
|
966
966
|
...k
|
|
967
967
|
}
|
|
968
968
|
),
|
|
969
|
-
|
|
969
|
+
l && c === "right" && /* @__PURE__ */ e.jsxs(
|
|
970
970
|
"label",
|
|
971
971
|
{
|
|
972
|
-
className: `pkt-input-check__input-label ${
|
|
972
|
+
className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
|
|
973
973
|
htmlFor: r,
|
|
974
974
|
children: [
|
|
975
|
-
|
|
975
|
+
l,
|
|
976
976
|
d && /* @__PURE__ */ e.jsx("div", { className: "pkt-input-check__input-helptext", children: d })
|
|
977
977
|
]
|
|
978
978
|
}
|
|
@@ -983,32 +983,32 @@ const Wt = F(
|
|
|
983
983
|
}
|
|
984
984
|
);
|
|
985
985
|
Wt.displayName = "PktCheckbox";
|
|
986
|
-
const
|
|
986
|
+
const ar = ({
|
|
987
987
|
columnOne: r,
|
|
988
988
|
columnTwo: n,
|
|
989
|
-
socialLinks:
|
|
990
|
-
className:
|
|
991
|
-
personvernOgInfoLink:
|
|
992
|
-
tilgjengelighetLink:
|
|
989
|
+
socialLinks: o,
|
|
990
|
+
className: l,
|
|
991
|
+
personvernOgInfoLink: c = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
992
|
+
tilgjengelighetLink: s = "https://www.oslo.kommune.no/tilgjengelighet/"
|
|
993
993
|
}) => {
|
|
994
|
-
var
|
|
995
|
-
const d = [
|
|
994
|
+
var a, u;
|
|
995
|
+
const d = [l, "pkt-footer"].filter(Boolean).join(" ");
|
|
996
996
|
return /* @__PURE__ */ e.jsx("footer", { className: d, "data-mode": "dark", children: /* @__PURE__ */ e.jsxs("div", { className: "pkt-footer__container", children: [
|
|
997
997
|
/* @__PURE__ */ e.jsxs("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
998
998
|
/* @__PURE__ */ e.jsxs("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
999
999
|
/* @__PURE__ */ e.jsx("h2", { className: "pkt-footer__title", children: r.title }),
|
|
1000
1000
|
/* @__PURE__ */ e.jsxs("ul", { className: "pkt-footer__list", children: [
|
|
1001
1001
|
r.text && /* @__PURE__ */ e.jsx("li", { className: "pkt-footer__text", children: r.text }),
|
|
1002
|
-
(
|
|
1002
|
+
(a = r.links) == null ? void 0 : a.map((p, k) => /* @__PURE__ */ e.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ e.jsxs(
|
|
1003
1003
|
"a",
|
|
1004
1004
|
{
|
|
1005
|
-
className: `pkt-footer__link ${
|
|
1006
|
-
href:
|
|
1007
|
-
target:
|
|
1008
|
-
rel:
|
|
1005
|
+
className: `pkt-footer__link ${p.external ? "pkt-link--external" : ""}`,
|
|
1006
|
+
href: p.href,
|
|
1007
|
+
target: p.openInNewTab ? "_blank" : "_self",
|
|
1008
|
+
rel: p.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1009
1009
|
children: [
|
|
1010
|
-
/* @__PURE__ */ e.jsx(
|
|
1011
|
-
|
|
1010
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1011
|
+
p.text
|
|
1012
1012
|
]
|
|
1013
1013
|
}
|
|
1014
1014
|
) }, `links-${k}`))
|
|
@@ -1018,16 +1018,16 @@ const rr = ({
|
|
|
1018
1018
|
/* @__PURE__ */ e.jsx("h2", { className: "pkt-footer__title", children: n.title }),
|
|
1019
1019
|
/* @__PURE__ */ e.jsxs("ul", { className: "pkt-footer__list", children: [
|
|
1020
1020
|
n.text && /* @__PURE__ */ e.jsx("li", { className: "pkt-footer__text", children: n.text }),
|
|
1021
|
-
(
|
|
1021
|
+
(u = n.links) == null ? void 0 : u.map((p, k) => /* @__PURE__ */ e.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ e.jsxs(
|
|
1022
1022
|
"a",
|
|
1023
1023
|
{
|
|
1024
|
-
className: `pkt-footer__link ${
|
|
1025
|
-
href:
|
|
1026
|
-
target:
|
|
1027
|
-
rel:
|
|
1024
|
+
className: `pkt-footer__link ${p.external ? "pkt-link--external" : ""}`,
|
|
1025
|
+
href: p.href,
|
|
1026
|
+
target: p.openInNewTab ? "_blank" : "_self",
|
|
1027
|
+
rel: p.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1028
1028
|
children: [
|
|
1029
|
-
/* @__PURE__ */ e.jsx(
|
|
1030
|
-
|
|
1029
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1030
|
+
p.text
|
|
1031
1031
|
]
|
|
1032
1032
|
}
|
|
1033
1033
|
) }, `links-${k}`))
|
|
@@ -1040,126 +1040,126 @@ const rr = ({
|
|
|
1040
1040
|
"a",
|
|
1041
1041
|
{
|
|
1042
1042
|
className: "pkt-footer__link",
|
|
1043
|
-
href:
|
|
1043
|
+
href: c,
|
|
1044
1044
|
children: [
|
|
1045
|
-
/* @__PURE__ */ e.jsx(
|
|
1045
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1046
1046
|
"Personvern og informasjonskapsler"
|
|
1047
1047
|
]
|
|
1048
1048
|
}
|
|
1049
1049
|
) }),
|
|
1050
|
-
/* @__PURE__ */ e.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ e.jsxs("a", { className: "pkt-footer__link", href:
|
|
1051
|
-
/* @__PURE__ */ e.jsx(
|
|
1050
|
+
/* @__PURE__ */ e.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ e.jsxs("a", { className: "pkt-footer__link", href: s, children: [
|
|
1051
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1052
1052
|
"Tilgjengelighet"
|
|
1053
1053
|
] }) })
|
|
1054
1054
|
] })
|
|
1055
1055
|
] })
|
|
1056
1056
|
] }),
|
|
1057
|
-
|
|
1058
|
-
/* @__PURE__ */ e.jsx("div", { className: "pkt-footer__social-languages", children:
|
|
1057
|
+
o && /* @__PURE__ */ e.jsxs("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
1058
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-footer__social-languages", children: o.filter((p) => p.language).map((p, k) => /* @__PURE__ */ e.jsx(
|
|
1059
1059
|
"div",
|
|
1060
1060
|
{
|
|
1061
1061
|
className: "pkt-footer__social-language",
|
|
1062
1062
|
children: /* @__PURE__ */ e.jsx(
|
|
1063
1063
|
"a",
|
|
1064
1064
|
{
|
|
1065
|
-
href:
|
|
1066
|
-
"aria-label": `til ${
|
|
1067
|
-
target:
|
|
1068
|
-
rel:
|
|
1069
|
-
children:
|
|
1065
|
+
href: p.href,
|
|
1066
|
+
"aria-label": `til ${p.language} versjon av nettsiden`,
|
|
1067
|
+
target: p.openInNewTab ? "_blank" : "_self",
|
|
1068
|
+
rel: p.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1069
|
+
children: p.language
|
|
1070
1070
|
}
|
|
1071
1071
|
)
|
|
1072
1072
|
},
|
|
1073
1073
|
`sociallinks-language-${k}`
|
|
1074
1074
|
)) }),
|
|
1075
|
-
/* @__PURE__ */ e.jsx("div", { className: "pkt-footer__social-icons", children:
|
|
1075
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-footer__social-icons", children: o.filter((p) => p.iconName).map((p, k) => /* @__PURE__ */ e.jsx(K.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
1076
1076
|
"a",
|
|
1077
1077
|
{
|
|
1078
|
-
href:
|
|
1079
|
-
"aria-label": `til ${
|
|
1078
|
+
href: p.href,
|
|
1079
|
+
"aria-label": `til ${p.iconName}`,
|
|
1080
1080
|
className: "pkt-footer__social-icon-link",
|
|
1081
|
-
target:
|
|
1082
|
-
rel:
|
|
1083
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1081
|
+
target: p.openInNewTab ? "_blank" : "_self",
|
|
1082
|
+
rel: p.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1083
|
+
children: /* @__PURE__ */ e.jsx(x, { className: "pkt-footer__social-icon", name: p.iconName })
|
|
1084
1084
|
}
|
|
1085
1085
|
) }, `sociallinks-${k}`)) })
|
|
1086
1086
|
] })
|
|
1087
1087
|
] }) });
|
|
1088
|
-
},
|
|
1088
|
+
}, lr = ({
|
|
1089
1089
|
links: r = [],
|
|
1090
1090
|
personvernOgInfoLink: n = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
1091
|
-
tilgjengelighetLink:
|
|
1092
|
-
className:
|
|
1091
|
+
tilgjengelighetLink: o = "https://www.oslo.kommune.no/tilgjengelighet/",
|
|
1092
|
+
className: l
|
|
1093
1093
|
}) => {
|
|
1094
|
-
const
|
|
1095
|
-
return /* @__PURE__ */ e.jsx("footer", { className:
|
|
1096
|
-
r.map((
|
|
1094
|
+
const c = [l, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
1095
|
+
return /* @__PURE__ */ e.jsx("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ e.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ e.jsxs("ul", { className: "pkt-footer-simple__list", children: [
|
|
1096
|
+
r.map((s, d) => /* @__PURE__ */ e.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ e.jsxs(
|
|
1097
1097
|
"a",
|
|
1098
1098
|
{
|
|
1099
|
-
className: `pkt-footer-simple__link ${
|
|
1100
|
-
href:
|
|
1101
|
-
target:
|
|
1102
|
-
rel:
|
|
1099
|
+
className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
|
|
1100
|
+
href: s.href,
|
|
1101
|
+
target: s.openInNewTab ? "_blank" : "_self",
|
|
1102
|
+
rel: s.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1103
1103
|
children: [
|
|
1104
1104
|
/* @__PURE__ */ e.jsx(
|
|
1105
|
-
|
|
1105
|
+
x,
|
|
1106
1106
|
{
|
|
1107
1107
|
className: "pkt-footer-simple__link-icon",
|
|
1108
1108
|
name: "chevron-right"
|
|
1109
1109
|
}
|
|
1110
1110
|
),
|
|
1111
|
-
|
|
1111
|
+
s.text
|
|
1112
1112
|
]
|
|
1113
1113
|
}
|
|
1114
1114
|
) }, d)),
|
|
1115
1115
|
/* @__PURE__ */ e.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ e.jsxs("a", { className: "pkt-footer-simple__link", href: n, children: [
|
|
1116
|
-
/* @__PURE__ */ e.jsx(
|
|
1116
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
1117
1117
|
"Personvern og informasjonskapsler"
|
|
1118
1118
|
] }) }),
|
|
1119
|
-
/* @__PURE__ */ e.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ e.jsxs("a", { className: "pkt-footer-simple__link", href:
|
|
1120
|
-
/* @__PURE__ */ e.jsx(
|
|
1119
|
+
/* @__PURE__ */ e.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ e.jsxs("a", { className: "pkt-footer-simple__link", href: o, children: [
|
|
1120
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
1121
1121
|
"Tilgjengelighet"
|
|
1122
1122
|
] }) })
|
|
1123
1123
|
] }) }) });
|
|
1124
|
-
},
|
|
1124
|
+
}, ir = S(
|
|
1125
1125
|
({
|
|
1126
1126
|
className: r,
|
|
1127
1127
|
logoLink: n = "https://www.oslo.kommune.no/",
|
|
1128
|
-
serviceName:
|
|
1129
|
-
fixed:
|
|
1130
|
-
scrollToHide:
|
|
1131
|
-
user:
|
|
1128
|
+
serviceName: o,
|
|
1129
|
+
fixed: l = !0,
|
|
1130
|
+
scrollToHide: c = !0,
|
|
1131
|
+
user: s,
|
|
1132
1132
|
userMenu: d,
|
|
1133
|
-
representing:
|
|
1134
|
-
userOptions:
|
|
1135
|
-
userMenuFooter:
|
|
1133
|
+
representing: a,
|
|
1134
|
+
userOptions: u,
|
|
1135
|
+
userMenuFooter: p,
|
|
1136
1136
|
canChangeRepresentation: k = !0,
|
|
1137
1137
|
showMenuButton: h = !1,
|
|
1138
|
-
showLogOutButton:
|
|
1138
|
+
showLogOutButton: v = !1,
|
|
1139
1139
|
openMenu: g,
|
|
1140
1140
|
logOut: E,
|
|
1141
|
-
changeRepresentation:
|
|
1141
|
+
changeRepresentation: I,
|
|
1142
1142
|
children: $,
|
|
1143
1143
|
...C
|
|
1144
1144
|
}, w) => {
|
|
1145
|
-
const
|
|
1145
|
+
const b = K.useMemo(() => typeof (s == null ? void 0 : s.lastLoggedIn) == "string" ? s.lastLoggedIn : s != null && s.lastLoggedIn ? new Date(s.lastLoggedIn).toLocaleString("nb-NO", {
|
|
1146
1146
|
year: "numeric",
|
|
1147
1147
|
month: "long",
|
|
1148
1148
|
day: "numeric"
|
|
1149
|
-
}) : "", [
|
|
1150
|
-
|
|
1149
|
+
}) : "", [s]), [O, Y] = K.useState(!1), [B, W] = K.useState(0), [G, V] = K.useState(!1), J = K.useRef(null);
|
|
1150
|
+
K.useEffect(() => (document.addEventListener("mouseup", A), window.addEventListener("scroll", P), () => {
|
|
1151
1151
|
document.removeEventListener("mouseup", A), window.removeEventListener("scroll", P);
|
|
1152
1152
|
}));
|
|
1153
|
-
const
|
|
1154
|
-
|
|
1153
|
+
const z = () => {
|
|
1154
|
+
V(!G);
|
|
1155
1155
|
}, A = (m) => {
|
|
1156
|
-
|
|
1156
|
+
J.current && !J.current.contains(m.target) && V(!1);
|
|
1157
1157
|
}, P = () => {
|
|
1158
|
-
if (
|
|
1158
|
+
if (c) {
|
|
1159
1159
|
const m = window.pageYOffset || document.documentElement.scrollTop;
|
|
1160
|
-
if (m < 0 || Math.abs(m -
|
|
1160
|
+
if (m < 0 || Math.abs(m - B) < 60)
|
|
1161
1161
|
return;
|
|
1162
|
-
Y(m >
|
|
1162
|
+
Y(m > B), W(m);
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -1169,16 +1169,16 @@ const rr = ({
|
|
|
1169
1169
|
id: "pkt-header",
|
|
1170
1170
|
"data-testid": "pkt-header",
|
|
1171
1171
|
"aria-label": "Topp",
|
|
1172
|
-
className:
|
|
1173
|
-
"pkt-header--fixed":
|
|
1174
|
-
"pkt-header--scroll-to-hide":
|
|
1175
|
-
"pkt-header--hidden":
|
|
1172
|
+
className: U(r, "pkt-header", {
|
|
1173
|
+
"pkt-header--fixed": l,
|
|
1174
|
+
"pkt-header--scroll-to-hide": c,
|
|
1175
|
+
"pkt-header--hidden": O
|
|
1176
1176
|
}),
|
|
1177
1177
|
ref: w,
|
|
1178
1178
|
children: [
|
|
1179
1179
|
/* @__PURE__ */ e.jsxs("div", { className: "pkt-header__logo", children: [
|
|
1180
1180
|
typeof n == "string" ? /* @__PURE__ */ e.jsx("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: n, children: /* @__PURE__ */ e.jsx(
|
|
1181
|
-
|
|
1181
|
+
x,
|
|
1182
1182
|
{
|
|
1183
1183
|
name: "oslologo",
|
|
1184
1184
|
className: "pkt-header__logo-svg",
|
|
@@ -1192,7 +1192,7 @@ const rr = ({
|
|
|
1192
1192
|
className: "pkt-link-button pkt-link pkt-header__logo-link",
|
|
1193
1193
|
onClick: n,
|
|
1194
1194
|
children: /* @__PURE__ */ e.jsx(
|
|
1195
|
-
|
|
1195
|
+
x,
|
|
1196
1196
|
{
|
|
1197
1197
|
name: "oslologo",
|
|
1198
1198
|
className: "pkt-header__logo-svg",
|
|
@@ -1202,7 +1202,7 @@ const rr = ({
|
|
|
1202
1202
|
)
|
|
1203
1203
|
}
|
|
1204
1204
|
),
|
|
1205
|
-
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__logo-service", children:
|
|
1205
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__logo-service", children: o })
|
|
1206
1206
|
] }),
|
|
1207
1207
|
/* @__PURE__ */ e.jsx("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ e.jsxs("ul", { className: "pkt-header__actions-row", children: [
|
|
1208
1208
|
h && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
|
@@ -1216,12 +1216,12 @@ const rr = ({
|
|
|
1216
1216
|
children: "Meny"
|
|
1217
1217
|
}
|
|
1218
1218
|
) }),
|
|
1219
|
-
(
|
|
1219
|
+
(s || a) && /* @__PURE__ */ e.jsxs(
|
|
1220
1220
|
"li",
|
|
1221
1221
|
{
|
|
1222
1222
|
"data-testid": "usermenu",
|
|
1223
|
-
className: `pkt-header--has-dropdown ${
|
|
1224
|
-
ref:
|
|
1223
|
+
className: `pkt-header--has-dropdown ${G && !O ? "pkt-header--open-dropdown" : ""}`,
|
|
1224
|
+
ref: J,
|
|
1225
1225
|
children: [
|
|
1226
1226
|
/* @__PURE__ */ e.jsxs(
|
|
1227
1227
|
"button",
|
|
@@ -1230,67 +1230,67 @@ const rr = ({
|
|
|
1230
1230
|
type: "button",
|
|
1231
1231
|
role: "button",
|
|
1232
1232
|
"aria-controls": "pktUserDropdown",
|
|
1233
|
-
"aria-expanded":
|
|
1234
|
-
onClick:
|
|
1233
|
+
"aria-expanded": G,
|
|
1234
|
+
onClick: z,
|
|
1235
1235
|
children: [
|
|
1236
|
-
/* @__PURE__ */ e.jsx(
|
|
1237
|
-
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__user-fullname", children: (
|
|
1238
|
-
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__user-shortname", children: (
|
|
1239
|
-
/* @__PURE__ */ e.jsx(
|
|
1240
|
-
/* @__PURE__ */ e.jsx(
|
|
1236
|
+
/* @__PURE__ */ e.jsx(x, { name: "user", className: "pkt-btn__icon" }),
|
|
1237
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__user-fullname", children: (a == null ? void 0 : a.name) || (s == null ? void 0 : s.name) }),
|
|
1238
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-header__user-shortname", children: (a == null ? void 0 : a.shortname) || (s == null ? void 0 : s.shortname) }),
|
|
1239
|
+
/* @__PURE__ */ e.jsx(x, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
|
|
1240
|
+
/* @__PURE__ */ e.jsx(x, { name: "chevron-thin-up", className: "pkt-btn--open" })
|
|
1241
1241
|
]
|
|
1242
1242
|
}
|
|
1243
1243
|
),
|
|
1244
1244
|
/* @__PURE__ */ e.jsxs("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
|
|
1245
|
-
|
|
1245
|
+
s && /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1246
1246
|
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
|
|
1247
|
-
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__name", children:
|
|
1248
|
-
|
|
1247
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__name", children: s.name }),
|
|
1248
|
+
s.lastLoggedIn && /* @__PURE__ */ e.jsxs("div", { className: "pkt-user-menu__last-logged-in", children: [
|
|
1249
1249
|
"Sist pålogget: ",
|
|
1250
|
-
/* @__PURE__ */ e.jsx("time", { children:
|
|
1250
|
+
/* @__PURE__ */ e.jsx("time", { children: b })
|
|
1251
1251
|
] })
|
|
1252
1252
|
] }),
|
|
1253
1253
|
d && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { className: "pkt-list", children: d.map((m, D) => /* @__PURE__ */ e.jsx("li", { children: typeof m.target == "string" ? /* @__PURE__ */ e.jsxs("a", { href: m.target, className: "pkt-link", children: [
|
|
1254
|
-
m.iconName && /* @__PURE__ */ e.jsx(
|
|
1254
|
+
m.iconName && /* @__PURE__ */ e.jsx(x, { name: m.iconName, className: "pkt-link__icon" }),
|
|
1255
1255
|
m.title
|
|
1256
1256
|
] }) : /* @__PURE__ */ e.jsxs("button", { className: "pkt-link-button pkt-link", onClick: m.target, children: [
|
|
1257
|
-
m.iconName && /* @__PURE__ */ e.jsx(
|
|
1257
|
+
m.iconName && /* @__PURE__ */ e.jsx(x, { name: m.iconName, className: "pkt-link__icon" }),
|
|
1258
1258
|
m.title
|
|
1259
1259
|
] }) }, `userMenu-${D}`)) }) }),
|
|
1260
|
-
(
|
|
1261
|
-
|
|
1260
|
+
(a || k) && /* @__PURE__ */ e.jsxs("li", { children: [
|
|
1261
|
+
a && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1262
1262
|
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
1263
|
-
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__name", children:
|
|
1264
|
-
|
|
1263
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-user-menu__name", children: a.name }),
|
|
1264
|
+
a.orgNumber && /* @__PURE__ */ e.jsxs("div", { className: "pkt-user-menu__org-number", children: [
|
|
1265
1265
|
"Org.nr. ",
|
|
1266
|
-
|
|
1266
|
+
a.orgNumber
|
|
1267
1267
|
] })
|
|
1268
1268
|
] }),
|
|
1269
|
-
/* @__PURE__ */ e.jsx("ul", { className: "pkt-list mt-size-16", children: k && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs("button", { className: "pkt-link-button pkt-link", onClick:
|
|
1270
|
-
/* @__PURE__ */ e.jsx(
|
|
1269
|
+
/* @__PURE__ */ e.jsx("ul", { className: "pkt-list mt-size-16", children: k && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs("button", { className: "pkt-link-button pkt-link", onClick: I, children: [
|
|
1270
|
+
/* @__PURE__ */ e.jsx(x, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
1271
1271
|
"Endre organisasjon"
|
|
1272
1272
|
] }) }) })
|
|
1273
1273
|
] }),
|
|
1274
|
-
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { className: "pkt-list", children: (
|
|
1275
|
-
|
|
1276
|
-
m.iconName && /* @__PURE__ */ e.jsx(
|
|
1274
|
+
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx("ul", { className: "pkt-list", children: (u || !v) && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1275
|
+
u == null ? void 0 : u.map((m, D) => /* @__PURE__ */ e.jsx("li", { children: typeof m.target == "string" ? /* @__PURE__ */ e.jsxs("a", { href: m.target, className: "pkt-link", children: [
|
|
1276
|
+
m.iconName && /* @__PURE__ */ e.jsx(x, { name: m.iconName, className: "pkt-link__icon" }),
|
|
1277
1277
|
m.title
|
|
1278
1278
|
] }) : /* @__PURE__ */ e.jsxs("button", { className: "pkt-link-button pkt-link", onClick: m.target, children: [
|
|
1279
|
-
m.iconName && /* @__PURE__ */ e.jsx(
|
|
1279
|
+
m.iconName && /* @__PURE__ */ e.jsx(x, { name: m.iconName, className: "pkt-link__icon" }),
|
|
1280
1280
|
m.title
|
|
1281
1281
|
] }) }, `userOptions-${D}`)),
|
|
1282
|
-
!
|
|
1283
|
-
/* @__PURE__ */ e.jsx(
|
|
1282
|
+
!v && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsxs("button", { className: "pkt-link-button pkt-link", onClick: E, children: [
|
|
1283
|
+
/* @__PURE__ */ e.jsx(x, { name: "exit", className: "pkt-link__icon" }),
|
|
1284
1284
|
"Logg ut"
|
|
1285
1285
|
] }) })
|
|
1286
1286
|
] }) }) }),
|
|
1287
|
-
|
|
1287
|
+
p && /* @__PURE__ */ e.jsx("li", { className: "footer", children: /* @__PURE__ */ e.jsx("ul", { className: "pkt-list-horizontal bordered", children: p.map((m, D) => /* @__PURE__ */ e.jsx("li", { children: typeof m.target == "string" ? /* @__PURE__ */ e.jsx("a", { href: m.target, className: "pkt-link", children: m.title }) : /* @__PURE__ */ e.jsx("button", { className: "pkt-link-button pkt-link", onClick: m.target, children: m.title }) }, `userMenuFooter-${D}`)) }) })
|
|
1288
1288
|
] })
|
|
1289
1289
|
]
|
|
1290
1290
|
}
|
|
1291
1291
|
),
|
|
1292
1292
|
$ && /* @__PURE__ */ e.jsx("li", { children: $ }),
|
|
1293
|
-
|
|
1293
|
+
v && /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
|
1294
1294
|
ce,
|
|
1295
1295
|
{
|
|
1296
1296
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
@@ -1307,66 +1307,66 @@ const rr = ({
|
|
|
1307
1307
|
}
|
|
1308
1308
|
);
|
|
1309
1309
|
}
|
|
1310
|
-
), Vt =
|
|
1311
|
-
({ label: r, id: n, children:
|
|
1310
|
+
), Vt = K.forwardRef(
|
|
1311
|
+
({ label: r, id: n, children: o, ...l }, c) => /* @__PURE__ */ e.jsxs("div", { className: "pkt-form-group", children: [
|
|
1312
1312
|
/* @__PURE__ */ e.jsx("label", { htmlFor: n, className: "pkt-form-label", children: r }),
|
|
1313
|
-
/* @__PURE__ */ e.jsx("input", { className: "pkt-form-input", id: n, ...
|
|
1314
|
-
|
|
1313
|
+
/* @__PURE__ */ e.jsx("input", { className: "pkt-form-input", id: n, ...l, ref: c }),
|
|
1314
|
+
o
|
|
1315
1315
|
] })
|
|
1316
1316
|
);
|
|
1317
1317
|
Vt.displayName = "PktInput";
|
|
1318
|
-
const me =
|
|
1318
|
+
const me = S(
|
|
1319
1319
|
({
|
|
1320
1320
|
forId: r,
|
|
1321
1321
|
label: n,
|
|
1322
|
-
helptext:
|
|
1323
|
-
helptextDropdown:
|
|
1324
|
-
helptextDropdownButton:
|
|
1325
|
-
optionalTag:
|
|
1322
|
+
helptext: o,
|
|
1323
|
+
helptextDropdown: l,
|
|
1324
|
+
helptextDropdownButton: c,
|
|
1325
|
+
optionalTag: s = !1,
|
|
1326
1326
|
optionalText: d = "Valgfritt",
|
|
1327
|
-
requiredTag:
|
|
1328
|
-
requiredText:
|
|
1329
|
-
hasError:
|
|
1327
|
+
requiredTag: a = !1,
|
|
1328
|
+
requiredText: u = "Må fylles ut",
|
|
1329
|
+
hasError: p,
|
|
1330
1330
|
errorMessage: k,
|
|
1331
1331
|
disabled: h,
|
|
1332
|
-
inline:
|
|
1332
|
+
inline: v,
|
|
1333
1333
|
ariaDescribedby: g,
|
|
1334
1334
|
useWrapper: E = !0,
|
|
1335
|
-
children:
|
|
1335
|
+
children: I,
|
|
1336
1336
|
className: $,
|
|
1337
1337
|
hasFieldset: C = !1
|
|
1338
1338
|
}, w) => {
|
|
1339
|
-
const [
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
return /* @__PURE__ */ e.jsxs("div", { className: ["pkt-inputwrapper", $,
|
|
1339
|
+
const [b, O] = X(!1), Y = () => {
|
|
1340
|
+
O(!b);
|
|
1341
|
+
}, B = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : a ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = s ? d : a ? u : "", G = h ? "pkt-inputwrapper--disabled" : "", V = v ? "pkt-inputwrapper--inline" : "", J = p ? "pkt-inputwrapper--error" : "", z = !!l && l !== "", A = c || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', P = C ? "fieldset" : z ? "div" : "label", m = C ? "legend" : z ? "h2" : "span", D = g || (o ? `${r}-helptext` : void 0);
|
|
1342
|
+
return /* @__PURE__ */ e.jsxs("div", { className: ["pkt-inputwrapper", $, G, V, J].join(" "), ref: w, children: [
|
|
1343
1343
|
E ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(
|
|
1344
1344
|
P,
|
|
1345
1345
|
{
|
|
1346
1346
|
htmlFor: C ? void 0 : r,
|
|
1347
|
-
"aria-describedby":
|
|
1347
|
+
"aria-describedby": z ? void 0 : g,
|
|
1348
1348
|
className: `pkt-inputwrapper__label${C ? " pkt-inputwrapper__fieldset" : ""}`,
|
|
1349
1349
|
children: [
|
|
1350
1350
|
/* @__PURE__ */ e.jsxs(m, { id: `${r}-label`, className: `${C ? " pkt-inputwrapper__legend" : ""}`, children: [
|
|
1351
1351
|
n,
|
|
1352
|
-
|
|
1352
|
+
W !== "" && /* @__PURE__ */ e.jsx("span", { className: B(), children: W })
|
|
1353
1353
|
] }),
|
|
1354
|
-
|
|
1354
|
+
o && /* @__PURE__ */ e.jsx(
|
|
1355
1355
|
"div",
|
|
1356
1356
|
{
|
|
1357
1357
|
className: "pkt-inputwrapper__helptext",
|
|
1358
1358
|
id: `${r}-helptext`,
|
|
1359
|
-
dangerouslySetInnerHTML: { __html:
|
|
1359
|
+
dangerouslySetInnerHTML: { __html: o }
|
|
1360
1360
|
}
|
|
1361
1361
|
),
|
|
1362
|
-
|
|
1362
|
+
z && l !== "" && /* @__PURE__ */ e.jsxs("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
1363
1363
|
/* @__PURE__ */ e.jsx(
|
|
1364
1364
|
ce,
|
|
1365
1365
|
{
|
|
1366
1366
|
skin: "tertiary",
|
|
1367
1367
|
size: "small",
|
|
1368
1368
|
variant: "icon-right",
|
|
1369
|
-
iconName:
|
|
1369
|
+
iconName: b ? "chevron-thin-up" : "chevron-thin-down",
|
|
1370
1370
|
className: "pkt-link pkt-link--icon-right",
|
|
1371
1371
|
onClick: Y,
|
|
1372
1372
|
children: /* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: { __html: A } })
|
|
@@ -1375,50 +1375,50 @@ const me = F(
|
|
|
1375
1375
|
/* @__PURE__ */ e.jsx(
|
|
1376
1376
|
"div",
|
|
1377
1377
|
{
|
|
1378
|
-
className: `pkt-inputwrapper__helptext ${
|
|
1379
|
-
children: /* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: { __html:
|
|
1378
|
+
className: `pkt-inputwrapper__helptext ${b ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
|
|
1379
|
+
children: /* @__PURE__ */ e.jsx("span", { dangerouslySetInnerHTML: { __html: l } })
|
|
1380
1380
|
}
|
|
1381
1381
|
),
|
|
1382
1382
|
!C && /* @__PURE__ */ e.jsx("label", { htmlFor: r, className: "pkt-sr-only", "aria-describedby": D, children: n })
|
|
1383
1383
|
] }),
|
|
1384
|
-
/* @__PURE__ */ e.jsx(e.Fragment, { children:
|
|
1384
|
+
/* @__PURE__ */ e.jsx(e.Fragment, { children: I })
|
|
1385
1385
|
]
|
|
1386
1386
|
}
|
|
1387
1387
|
) }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1388
1388
|
!C && /* @__PURE__ */ e.jsx("label", { htmlFor: r, className: "pkt-sr-only", "aria-describedby": D, id: `${r}-label`, children: n }),
|
|
1389
|
-
|
|
1389
|
+
I
|
|
1390
1390
|
] }),
|
|
1391
|
-
|
|
1391
|
+
p && k && /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(Bt, { skin: "error", "aria-live": "assertive", id: `${r}-error`, compact: !0, children: k }) })
|
|
1392
1392
|
] });
|
|
1393
1393
|
}
|
|
1394
1394
|
);
|
|
1395
1395
|
me.displayName = "PktInputWrapper";
|
|
1396
|
-
const
|
|
1396
|
+
const Mt = S(
|
|
1397
1397
|
({
|
|
1398
1398
|
children: r,
|
|
1399
1399
|
className: n,
|
|
1400
|
-
iconName:
|
|
1401
|
-
openInNewTab:
|
|
1402
|
-
skin:
|
|
1403
|
-
href:
|
|
1400
|
+
iconName: o = "user",
|
|
1401
|
+
openInNewTab: l = !1,
|
|
1402
|
+
skin: c = "normal",
|
|
1403
|
+
href: s = "#",
|
|
1404
1404
|
external: d = !1,
|
|
1405
|
-
title:
|
|
1406
|
-
...
|
|
1407
|
-
},
|
|
1408
|
-
const k = [n, "pkt-linkcard",
|
|
1405
|
+
title: a,
|
|
1406
|
+
...u
|
|
1407
|
+
}, p) => {
|
|
1408
|
+
const k = [n, "pkt-linkcard", c && `pkt-linkcard--${c}`].filter(Boolean).join(" ");
|
|
1409
1409
|
return /* @__PURE__ */ e.jsxs(
|
|
1410
1410
|
"a",
|
|
1411
1411
|
{
|
|
1412
|
-
...
|
|
1413
|
-
href:
|
|
1412
|
+
...u,
|
|
1413
|
+
href: s,
|
|
1414
1414
|
className: `pkt-linkcard pkt-link ${k}`,
|
|
1415
|
-
target:
|
|
1416
|
-
rel:
|
|
1417
|
-
ref:
|
|
1415
|
+
target: l ? "_blank" : "_self",
|
|
1416
|
+
rel: l ? "noopener noreferrer" : void 0,
|
|
1417
|
+
ref: p,
|
|
1418
1418
|
children: [
|
|
1419
|
-
/* @__PURE__ */ e.jsx(
|
|
1419
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-link__icon", name: o }),
|
|
1420
1420
|
/* @__PURE__ */ e.jsxs("div", { className: "pkt-linkcard__content", children: [
|
|
1421
|
-
/* @__PURE__ */ e.jsx("div", { className: `pkt-linkcard__title ${d ? "pkt-link pkt-link--external" : ""}`, children:
|
|
1421
|
+
/* @__PURE__ */ e.jsx("div", { className: `pkt-linkcard__title ${d ? "pkt-link pkt-link--external" : ""}`, children: a }),
|
|
1422
1422
|
/* @__PURE__ */ e.jsx("div", { className: "pkt-linkcard__text", children: r })
|
|
1423
1423
|
] })
|
|
1424
1424
|
]
|
|
@@ -1426,22 +1426,22 @@ const Yt = F(
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
);
|
|
1429
|
-
|
|
1430
|
-
const
|
|
1429
|
+
Mt.displayName = "PktLinkCard";
|
|
1430
|
+
const or = S(
|
|
1431
1431
|
({
|
|
1432
1432
|
className: r,
|
|
1433
1433
|
message: n,
|
|
1434
|
-
size:
|
|
1435
|
-
inline:
|
|
1436
|
-
isLoading:
|
|
1437
|
-
variant:
|
|
1434
|
+
size: o = "medium",
|
|
1435
|
+
inline: l = !1,
|
|
1436
|
+
isLoading: c = !0,
|
|
1437
|
+
variant: s = "rainbow",
|
|
1438
1438
|
delay: d = 0,
|
|
1439
|
-
children:
|
|
1440
|
-
...
|
|
1441
|
-
},
|
|
1442
|
-
const k = `pkt-loader pkt-loader--${
|
|
1439
|
+
children: a,
|
|
1440
|
+
...u
|
|
1441
|
+
}, p) => {
|
|
1442
|
+
const k = `pkt-loader pkt-loader--${o}`, [h, v] = X(!(d > 0));
|
|
1443
1443
|
d > 0 && setTimeout(() => {
|
|
1444
|
-
|
|
1444
|
+
v(!0);
|
|
1445
1445
|
}, d);
|
|
1446
1446
|
const g = (E) => E === "shapes" ? "loader" : E === "blue" ? "spinner-blue" : "spinner";
|
|
1447
1447
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -1449,44 +1449,44 @@ const sr = F(
|
|
|
1449
1449
|
{
|
|
1450
1450
|
role: "status",
|
|
1451
1451
|
"aria-live": "polite",
|
|
1452
|
-
"aria-busy":
|
|
1453
|
-
className: `pkt-loader--${
|
|
1454
|
-
children:
|
|
1452
|
+
"aria-busy": c,
|
|
1453
|
+
className: `pkt-loader--${l ? "inline" : "box"} ${r || ""}`,
|
|
1454
|
+
children: c ? /* @__PURE__ */ e.jsx(e.Fragment, { children: h ? /* @__PURE__ */ e.jsxs("div", { className: k, "data-testid": "pkt-loader", ref: p, ...u, children: [
|
|
1455
1455
|
/* @__PURE__ */ e.jsx(
|
|
1456
|
-
|
|
1456
|
+
x,
|
|
1457
1457
|
{
|
|
1458
|
-
name: g(
|
|
1458
|
+
name: g(s),
|
|
1459
1459
|
"aria-label": "loading",
|
|
1460
1460
|
path: "https://punkt-cdn.oslo.kommune.no/11.14/animations/",
|
|
1461
|
-
className: `pkt-loader__svg pkt-loader__${
|
|
1461
|
+
className: `pkt-loader__svg pkt-loader__${s}`
|
|
1462
1462
|
}
|
|
1463
1463
|
),
|
|
1464
1464
|
n && /* @__PURE__ */ e.jsx("p", { children: n })
|
|
1465
|
-
] }) : null }) :
|
|
1465
|
+
] }) : null }) : a
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
1468
|
}
|
|
1469
|
-
),
|
|
1469
|
+
), cr = S(
|
|
1470
1470
|
({
|
|
1471
1471
|
children: r,
|
|
1472
1472
|
className: n,
|
|
1473
|
-
compact:
|
|
1474
|
-
closable:
|
|
1475
|
-
skin:
|
|
1476
|
-
title:
|
|
1473
|
+
compact: o = !1,
|
|
1474
|
+
closable: l = !1,
|
|
1475
|
+
skin: c = "beige",
|
|
1476
|
+
title: s,
|
|
1477
1477
|
onClose: d,
|
|
1478
|
-
...
|
|
1479
|
-
},
|
|
1480
|
-
const [
|
|
1478
|
+
...a
|
|
1479
|
+
}, u) => {
|
|
1480
|
+
const [p, k] = X(!0), h = () => {
|
|
1481
1481
|
k(!1), d && d();
|
|
1482
|
-
},
|
|
1482
|
+
}, v = [
|
|
1483
1483
|
n,
|
|
1484
1484
|
"pkt-messagebox",
|
|
1485
|
-
|
|
1486
|
-
|
|
1485
|
+
c && `pkt-messagebox--${c}`,
|
|
1486
|
+
o && "pkt-messagebox--compact"
|
|
1487
1487
|
].filter(Boolean).join(" ");
|
|
1488
|
-
return
|
|
1489
|
-
|
|
1488
|
+
return p ? /* @__PURE__ */ e.jsxs("div", { ...a, className: v, ref: u, children: [
|
|
1489
|
+
l && /* @__PURE__ */ e.jsx("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ e.jsx(
|
|
1490
1490
|
"button",
|
|
1491
1491
|
{
|
|
1492
1492
|
type: "button",
|
|
@@ -1494,10 +1494,10 @@ const sr = F(
|
|
|
1494
1494
|
tabIndex: 0,
|
|
1495
1495
|
"aria-label": "close",
|
|
1496
1496
|
onClick: h,
|
|
1497
|
-
children: /* @__PURE__ */ e.jsx(
|
|
1497
|
+
children: /* @__PURE__ */ e.jsx(x, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
1498
1498
|
}
|
|
1499
1499
|
) }),
|
|
1500
|
-
|
|
1500
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "pkt-messagebox__title", children: s }),
|
|
1501
1501
|
/* @__PURE__ */ e.jsx("div", { className: "pkt-messagebox__text", children: r })
|
|
1502
1502
|
] }) : null;
|
|
1503
1503
|
}
|
|
@@ -1505,157 +1505,157 @@ const sr = F(
|
|
|
1505
1505
|
var L = [];
|
|
1506
1506
|
for (var Ee = 0; Ee < 256; ++Ee)
|
|
1507
1507
|
L.push((Ee + 256).toString(16).slice(1));
|
|
1508
|
-
function
|
|
1508
|
+
function Yt(r, n = 0) {
|
|
1509
1509
|
return (L[r[n + 0]] + L[r[n + 1]] + L[r[n + 2]] + L[r[n + 3]] + "-" + L[r[n + 4]] + L[r[n + 5]] + "-" + L[r[n + 6]] + L[r[n + 7]] + "-" + L[r[n + 8]] + L[r[n + 9]] + "-" + L[r[n + 10]] + L[r[n + 11]] + L[r[n + 12]] + L[r[n + 13]] + L[r[n + 14]] + L[r[n + 15]]).toLowerCase();
|
|
1510
1510
|
}
|
|
1511
|
-
var ke,
|
|
1511
|
+
var ke, zt = new Uint8Array(16);
|
|
1512
1512
|
function Ht() {
|
|
1513
1513
|
if (!ke && (ke = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ke))
|
|
1514
1514
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1515
|
-
return ke(
|
|
1515
|
+
return ke(zt);
|
|
1516
1516
|
}
|
|
1517
|
-
var
|
|
1517
|
+
var Kt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
1518
1518
|
const Qe = {
|
|
1519
|
-
randomUUID:
|
|
1519
|
+
randomUUID: Kt
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1521
|
+
function Gt(r, n, o) {
|
|
1522
1522
|
if (Qe.randomUUID && !n && !r)
|
|
1523
1523
|
return Qe.randomUUID();
|
|
1524
1524
|
r = r || {};
|
|
1525
|
-
var
|
|
1526
|
-
if (
|
|
1527
|
-
|
|
1528
|
-
for (var
|
|
1529
|
-
n[
|
|
1525
|
+
var l = r.random || (r.rng || Ht)();
|
|
1526
|
+
if (l[6] = l[6] & 15 | 64, l[8] = l[8] & 63 | 128, n) {
|
|
1527
|
+
o = o || 0;
|
|
1528
|
+
for (var c = 0; c < 16; ++c)
|
|
1529
|
+
n[o + c] = l[c];
|
|
1530
1530
|
return n;
|
|
1531
1531
|
}
|
|
1532
|
-
return
|
|
1532
|
+
return Yt(l);
|
|
1533
1533
|
}
|
|
1534
|
-
const
|
|
1534
|
+
const pr = S(
|
|
1535
1535
|
({
|
|
1536
1536
|
valueCurrent: r,
|
|
1537
1537
|
valueMin: n = 0,
|
|
1538
|
-
valueMax:
|
|
1539
|
-
skin:
|
|
1540
|
-
title:
|
|
1541
|
-
titlePosition:
|
|
1538
|
+
valueMax: o = 100,
|
|
1539
|
+
skin: l = "dark-blue",
|
|
1540
|
+
title: c,
|
|
1541
|
+
titlePosition: s = "left",
|
|
1542
1542
|
statusType: d = "none",
|
|
1543
|
-
statusPlacement:
|
|
1544
|
-
id:
|
|
1545
|
-
ariaLabel:
|
|
1543
|
+
statusPlacement: a = "following",
|
|
1544
|
+
id: u,
|
|
1545
|
+
ariaLabel: p,
|
|
1546
1546
|
ariaLabelledby: k,
|
|
1547
1547
|
role: h = "progressbar",
|
|
1548
|
-
className:
|
|
1548
|
+
className: v,
|
|
1549
1549
|
ariaValueText: g,
|
|
1550
1550
|
...E
|
|
1551
|
-
},
|
|
1552
|
-
const $ = $e(null), [C, w] = X(0), [
|
|
1551
|
+
}, I) => {
|
|
1552
|
+
const $ = $e(null), [C, w] = X(0), [b, O] = X(u);
|
|
1553
1553
|
oe(() => {
|
|
1554
|
-
|
|
1555
|
-
}, [
|
|
1554
|
+
u || O(Gt());
|
|
1555
|
+
}, [u]), oe(() => {
|
|
1556
1556
|
if ($.current) {
|
|
1557
1557
|
const m = $.current;
|
|
1558
1558
|
w(m.getBoundingClientRect().width);
|
|
1559
1559
|
}
|
|
1560
1560
|
});
|
|
1561
|
-
const Y =
|
|
1562
|
-
"pkt-progressbar__title-center":
|
|
1563
|
-
}), A =
|
|
1564
|
-
"pkt-progressbar__status--center":
|
|
1565
|
-
}), P =
|
|
1566
|
-
"pkt-progressbar__status-placement--following":
|
|
1567
|
-
"pkt-progressbar__status-placement--center":
|
|
1568
|
-
"pkt-progressbar__status-placement--left":
|
|
1561
|
+
const Y = o - n, B = r / Y * 100, W = o !== 100 || n !== 0 ? Math.round(B) : r, G = `${r} av ${o}`, V = d !== "none", J = U("pkt-progressbar__bar", { [`pkt-progressbar__bar--${l}`]: l }), z = U("pkt-progressbar__title", {
|
|
1562
|
+
"pkt-progressbar__title-center": s === "center"
|
|
1563
|
+
}), A = U("pkt-progressbar__status", {
|
|
1564
|
+
"pkt-progressbar__status--center": a === "center"
|
|
1565
|
+
}), P = U({
|
|
1566
|
+
"pkt-progressbar__status-placement--following": a === "following",
|
|
1567
|
+
"pkt-progressbar__status-placement--center": a === "center",
|
|
1568
|
+
"pkt-progressbar__status-placement--left": a === "left"
|
|
1569
1569
|
});
|
|
1570
1570
|
return /* @__PURE__ */ e.jsxs(
|
|
1571
1571
|
"div",
|
|
1572
1572
|
{
|
|
1573
1573
|
...E,
|
|
1574
|
-
ref:
|
|
1575
|
-
className:
|
|
1576
|
-
id:
|
|
1574
|
+
ref: I,
|
|
1575
|
+
className: U("pkt-progressbar__container", v),
|
|
1576
|
+
id: b,
|
|
1577
1577
|
style: {
|
|
1578
1578
|
"--pkt-progress-label-width": `${C}px`,
|
|
1579
|
-
"--pkt-progress-width": `${
|
|
1579
|
+
"--pkt-progress-width": `${W}%`
|
|
1580
1580
|
},
|
|
1581
1581
|
children: [
|
|
1582
|
-
|
|
1582
|
+
c && /* @__PURE__ */ e.jsx("p", { id: `${b}-title`, className: z, children: c }),
|
|
1583
1583
|
/* @__PURE__ */ e.jsx(
|
|
1584
1584
|
"div",
|
|
1585
1585
|
{
|
|
1586
1586
|
role: h,
|
|
1587
1587
|
className: "pkt-progressbar__bar-wrapper",
|
|
1588
1588
|
"aria-valuemin": n,
|
|
1589
|
-
"aria-valuemax":
|
|
1589
|
+
"aria-valuemax": o,
|
|
1590
1590
|
"aria-valuenow": r,
|
|
1591
|
-
"aria-labelledby": k ||
|
|
1592
|
-
"aria-label":
|
|
1591
|
+
"aria-labelledby": k || c && `${b}-title`,
|
|
1592
|
+
"aria-label": p,
|
|
1593
1593
|
"aria-valuetext": g,
|
|
1594
|
-
children: /* @__PURE__ */ e.jsx("div", { className:
|
|
1594
|
+
children: /* @__PURE__ */ e.jsx("div", { className: J })
|
|
1595
1595
|
}
|
|
1596
1596
|
),
|
|
1597
|
-
|
|
1597
|
+
V && /* @__PURE__ */ e.jsx("div", { className: A, children: /* @__PURE__ */ e.jsx("span", { className: P, ref: $, children: d === "percentage" ? `${W}%` : G }) })
|
|
1598
1598
|
]
|
|
1599
1599
|
}
|
|
1600
1600
|
);
|
|
1601
1601
|
}
|
|
1602
|
-
),
|
|
1602
|
+
), Jt = S(
|
|
1603
1603
|
({
|
|
1604
1604
|
id: r,
|
|
1605
1605
|
name: n,
|
|
1606
|
-
label:
|
|
1607
|
-
className:
|
|
1608
|
-
hasTile:
|
|
1609
|
-
disabled:
|
|
1606
|
+
label: o,
|
|
1607
|
+
className: l,
|
|
1608
|
+
hasTile: c = !1,
|
|
1609
|
+
disabled: s = !1,
|
|
1610
1610
|
checkHelptext: d,
|
|
1611
|
-
hasError:
|
|
1612
|
-
...
|
|
1613
|
-
},
|
|
1611
|
+
hasError: a = !1,
|
|
1612
|
+
...u
|
|
1613
|
+
}, p) => {
|
|
1614
1614
|
const k = [
|
|
1615
|
-
|
|
1615
|
+
l,
|
|
1616
1616
|
"pkt-input-check"
|
|
1617
1617
|
].filter(Boolean).join(" ");
|
|
1618
|
-
return /* @__PURE__ */ e.jsx("div", { className: k, children: /* @__PURE__ */ e.jsxs("div", { className: `pkt-input-check__input ${
|
|
1618
|
+
return /* @__PURE__ */ e.jsx("div", { className: k, children: /* @__PURE__ */ e.jsxs("div", { className: `pkt-input-check__input ${c ? "pkt-input-check__input--tile" : ""} ${s && c ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
|
|
1619
1619
|
/* @__PURE__ */ e.jsx(
|
|
1620
1620
|
"input",
|
|
1621
1621
|
{
|
|
1622
|
-
ref:
|
|
1623
|
-
className: `pkt-input-check__input-checkbox ${
|
|
1622
|
+
ref: p,
|
|
1623
|
+
className: `pkt-input-check__input-checkbox ${a ? "pkt-input-check__input-checkbox--error" : ""}`,
|
|
1624
1624
|
type: "radio",
|
|
1625
1625
|
id: r,
|
|
1626
|
-
disabled:
|
|
1626
|
+
disabled: s,
|
|
1627
1627
|
name: n,
|
|
1628
|
-
...
|
|
1628
|
+
...u
|
|
1629
1629
|
}
|
|
1630
1630
|
),
|
|
1631
1631
|
/* @__PURE__ */ e.jsxs("label", { className: "pkt-input-check__input-label", htmlFor: r, children: [
|
|
1632
|
-
|
|
1632
|
+
o,
|
|
1633
1633
|
d && /* @__PURE__ */ e.jsx("div", { className: "pkt-input-check__input-helptext", children: d })
|
|
1634
1634
|
] })
|
|
1635
1635
|
] }) });
|
|
1636
1636
|
}
|
|
1637
1637
|
);
|
|
1638
|
-
|
|
1639
|
-
const
|
|
1638
|
+
Jt.displayName = "PktRadioButton";
|
|
1639
|
+
const ur = S(
|
|
1640
1640
|
({
|
|
1641
1641
|
action: r,
|
|
1642
1642
|
appearance: n = "local",
|
|
1643
|
-
disabled:
|
|
1644
|
-
fullwidth:
|
|
1645
|
-
id:
|
|
1646
|
-
label:
|
|
1643
|
+
disabled: o = !1,
|
|
1644
|
+
fullwidth: l = !1,
|
|
1645
|
+
id: c,
|
|
1646
|
+
label: s,
|
|
1647
1647
|
method: d = "get",
|
|
1648
|
-
name:
|
|
1649
|
-
placeholder:
|
|
1650
|
-
suggestions:
|
|
1648
|
+
name: a,
|
|
1649
|
+
placeholder: u = "Søk…",
|
|
1650
|
+
suggestions: p,
|
|
1651
1651
|
value: k = "",
|
|
1652
1652
|
onSearch: h,
|
|
1653
|
-
onSuggestionClick:
|
|
1653
|
+
onSuggestionClick: v,
|
|
1654
1654
|
...g
|
|
1655
1655
|
}, E) => {
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1658
|
-
}, $ = `pkt-searchinput pkt-searchinput--${n} ${
|
|
1656
|
+
const I = (b, O) => {
|
|
1657
|
+
b ? b() : v && v(O);
|
|
1658
|
+
}, $ = `pkt-searchinput pkt-searchinput--${n} ${l ? "pkt-searchinput--fullwidth" : ""}`, C = r ? "form" : "div", w = s ? "label" : "div";
|
|
1659
1659
|
return /* @__PURE__ */ e.jsxs(
|
|
1660
1660
|
C,
|
|
1661
1661
|
{
|
|
@@ -1667,23 +1667,23 @@ const or = F(
|
|
|
1667
1667
|
ref: E,
|
|
1668
1668
|
...g,
|
|
1669
1669
|
children: [
|
|
1670
|
-
/* @__PURE__ */ e.jsxs(w, { htmlFor:
|
|
1671
|
-
|
|
1670
|
+
/* @__PURE__ */ e.jsxs(w, { htmlFor: s ? c : void 0, className: s ? "pkt-inputwrapper__label" : "", children: [
|
|
1671
|
+
s && /* @__PURE__ */ e.jsx(e.Fragment, { children: s }),
|
|
1672
1672
|
/* @__PURE__ */ e.jsxs("div", { className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
|
|
1673
1673
|
/* @__PURE__ */ e.jsx(
|
|
1674
1674
|
"input",
|
|
1675
1675
|
{
|
|
1676
|
-
className: `pkt-input ${
|
|
1676
|
+
className: `pkt-input ${l ? "pkt-input--fullwidth" : ""}`,
|
|
1677
1677
|
type: "search",
|
|
1678
|
-
name:
|
|
1679
|
-
id:
|
|
1680
|
-
placeholder:
|
|
1678
|
+
name: a || c,
|
|
1679
|
+
id: c,
|
|
1680
|
+
placeholder: u,
|
|
1681
1681
|
defaultValue: k,
|
|
1682
|
-
disabled:
|
|
1683
|
-
onInput: h && ((
|
|
1682
|
+
disabled: o,
|
|
1683
|
+
onInput: h && ((b) => h(b.currentTarget.value)),
|
|
1684
1684
|
autoComplete: "off",
|
|
1685
1685
|
"aria-autocomplete": "list",
|
|
1686
|
-
"aria-controls": `${
|
|
1686
|
+
"aria-controls": `${c}-suggestions`
|
|
1687
1687
|
}
|
|
1688
1688
|
),
|
|
1689
1689
|
/* @__PURE__ */ e.jsx(
|
|
@@ -1695,372 +1695,407 @@ const or = F(
|
|
|
1695
1695
|
skin: n === "local" ? "tertiary" : "primary",
|
|
1696
1696
|
color: n === "global" ? "yellow" : void 0,
|
|
1697
1697
|
type: "submit",
|
|
1698
|
-
disabled:
|
|
1698
|
+
disabled: o,
|
|
1699
1699
|
onClick: h && (() => h(k)),
|
|
1700
|
-
onKeyUp: h && ((
|
|
1701
|
-
children:
|
|
1700
|
+
onKeyUp: h && ((b) => b.key === "Enter" && h(k)),
|
|
1701
|
+
children: s || u
|
|
1702
1702
|
}
|
|
1703
1703
|
)
|
|
1704
1704
|
] })
|
|
1705
1705
|
] }),
|
|
1706
|
-
|
|
1707
|
-
|
|
1706
|
+
p && /* @__PURE__ */ e.jsx("ul", { id: `${c}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: p.map((b, O) => /* @__PURE__ */ e.jsx("li", { children: K.createElement(
|
|
1707
|
+
b.href ? "a" : b.onClick ? "button" : "div",
|
|
1708
1708
|
{
|
|
1709
|
-
href:
|
|
1710
|
-
className: `pkt-searchinput__suggestion ${
|
|
1711
|
-
type:
|
|
1712
|
-
onClick: () =>
|
|
1713
|
-
onKeyUp: () =>
|
|
1709
|
+
href: b.href,
|
|
1710
|
+
className: `pkt-searchinput__suggestion ${b.onClick ? "pkt-link-button" : ""} ${b.href || b.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
|
|
1711
|
+
type: b.onClick ? "button" : void 0,
|
|
1712
|
+
onClick: () => I(b.onClick, O),
|
|
1713
|
+
onKeyUp: () => I(b.onClick, O)
|
|
1714
1714
|
},
|
|
1715
1715
|
/* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1716
|
-
|
|
1717
|
-
|
|
1716
|
+
b.title && /* @__PURE__ */ e.jsx("h3", { className: "pkt-searchinput__suggestion-title", children: b.title }),
|
|
1717
|
+
b.text && /* @__PURE__ */ e.jsx("p", { className: "pkt-searchinput__suggestion-text", children: b.text })
|
|
1718
1718
|
] })
|
|
1719
|
-
) }, `search-suggestion-${
|
|
1719
|
+
) }, `search-suggestion-${O}`)) })
|
|
1720
1720
|
]
|
|
1721
1721
|
}
|
|
1722
1722
|
);
|
|
1723
1723
|
}
|
|
1724
|
-
),
|
|
1724
|
+
), dr = S(
|
|
1725
1725
|
({
|
|
1726
1726
|
ariaDescribedby: r,
|
|
1727
1727
|
ariaLabelledby: n,
|
|
1728
|
-
children:
|
|
1729
|
-
className:
|
|
1730
|
-
disabled:
|
|
1731
|
-
errorMessage:
|
|
1728
|
+
children: o,
|
|
1729
|
+
className: l,
|
|
1730
|
+
disabled: c = !1,
|
|
1731
|
+
errorMessage: s,
|
|
1732
1732
|
hasError: d,
|
|
1733
|
-
helptext:
|
|
1734
|
-
helptextDropdown:
|
|
1735
|
-
helptextDropdownButton:
|
|
1733
|
+
helptext: a,
|
|
1734
|
+
helptextDropdown: u,
|
|
1735
|
+
helptextDropdownButton: p,
|
|
1736
1736
|
id: k,
|
|
1737
1737
|
inline: h = !1,
|
|
1738
|
-
fullwidth:
|
|
1738
|
+
fullwidth: v = !1,
|
|
1739
1739
|
label: g,
|
|
1740
1740
|
name: E,
|
|
1741
|
-
optionalTag:
|
|
1741
|
+
optionalTag: I = !1,
|
|
1742
1742
|
optionalText: $,
|
|
1743
1743
|
requiredTag: C = !1,
|
|
1744
1744
|
requiredText: w,
|
|
1745
|
-
...
|
|
1746
|
-
},
|
|
1747
|
-
const Y = [
|
|
1745
|
+
...b
|
|
1746
|
+
}, O) => {
|
|
1747
|
+
const Y = [l, "pkt-select"].join(" ");
|
|
1748
1748
|
return /* @__PURE__ */ e.jsx(
|
|
1749
1749
|
me,
|
|
1750
1750
|
{
|
|
1751
1751
|
className: Y,
|
|
1752
1752
|
forId: k,
|
|
1753
1753
|
label: g,
|
|
1754
|
-
helptext:
|
|
1755
|
-
helptextDropdown:
|
|
1756
|
-
helptextDropdownButton:
|
|
1757
|
-
optionalTag:
|
|
1754
|
+
helptext: a,
|
|
1755
|
+
helptextDropdown: u,
|
|
1756
|
+
helptextDropdownButton: p,
|
|
1757
|
+
optionalTag: I,
|
|
1758
1758
|
optionalText: $,
|
|
1759
1759
|
requiredTag: C,
|
|
1760
1760
|
requiredText: w,
|
|
1761
1761
|
hasError: d,
|
|
1762
|
-
errorMessage:
|
|
1763
|
-
disabled:
|
|
1762
|
+
errorMessage: s,
|
|
1763
|
+
disabled: c,
|
|
1764
1764
|
inline: h,
|
|
1765
1765
|
ariaDescribedby: r,
|
|
1766
1766
|
children: /* @__PURE__ */ e.jsx(
|
|
1767
1767
|
"select",
|
|
1768
1768
|
{
|
|
1769
|
-
ref:
|
|
1770
|
-
className: `pkt-input ${
|
|
1769
|
+
ref: O,
|
|
1770
|
+
className: `pkt-input ${v ? "pkt-input--fullwidth" : ""}`,
|
|
1771
1771
|
"aria-invalid": d,
|
|
1772
1772
|
"aria-errormessage": `${k}-error`,
|
|
1773
1773
|
"aria-labelledby": n || `${k}-label`,
|
|
1774
|
-
disabled:
|
|
1774
|
+
disabled: c,
|
|
1775
1775
|
id: k,
|
|
1776
1776
|
name: E || k,
|
|
1777
|
-
...
|
|
1778
|
-
children:
|
|
1777
|
+
...b,
|
|
1778
|
+
children: o
|
|
1779
1779
|
}
|
|
1780
1780
|
)
|
|
1781
1781
|
}
|
|
1782
1782
|
);
|
|
1783
1783
|
}
|
|
1784
|
-
),
|
|
1784
|
+
), fr = S(
|
|
1785
|
+
({
|
|
1786
|
+
activeStep: r,
|
|
1787
|
+
className: n,
|
|
1788
|
+
children: o,
|
|
1789
|
+
hideNonActiveStepsContent: l = !0,
|
|
1790
|
+
orientation: c = "vertical",
|
|
1791
|
+
...s
|
|
1792
|
+
}, d) => {
|
|
1793
|
+
const a = U(
|
|
1794
|
+
n,
|
|
1795
|
+
"pkt-stepper",
|
|
1796
|
+
c === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
|
|
1797
|
+
), u = K.Children.map(o, (p, k) => K.isValidElement(p) ? K.cloneElement(p, {
|
|
1798
|
+
className: U(p.props.className, {
|
|
1799
|
+
"pkt-step--hidden": l && k !== r
|
|
1800
|
+
})
|
|
1801
|
+
}) : p);
|
|
1802
|
+
return /* @__PURE__ */ e.jsx("ol", { "data-testid": "pkt-stepper", className: a, ref: d, ...s, children: u });
|
|
1803
|
+
}
|
|
1804
|
+
), qt = /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: /* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "7", style: { fill: "var(--pkt-color-grays-grey-200, #CCC)" } }) }), Xt = /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
1805
|
+
/* @__PURE__ */ e.jsx("circle", { opacity: ".15", cx: "12", cy: "12", r: "12", fill: "#2A2859" }),
|
|
1806
|
+
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "6", fill: "#2A2859" })
|
|
1807
|
+
] }), Zt = /* @__PURE__ */ e.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
|
|
1808
|
+
/* @__PURE__ */ e.jsx("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
|
|
1809
|
+
/* @__PURE__ */ e.jsx("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
|
|
1810
|
+
] }), kr = ({ children: r, className: n, status: o = "incomplete", title: l }) => /* @__PURE__ */ e.jsxs("li", { className: U("pkt-step", n, `pkt-step--${o}`), "data-testid": "pkt-step", children: [
|
|
1811
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-step__line pkt-step__line--1" }),
|
|
1812
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-step__line pkt-step__line--2" }),
|
|
1813
|
+
/* @__PURE__ */ e.jsx("span", { className: U("pkt-step__indicator"), children: o === "current" ? Xt : o === "completed" ? Zt : qt }),
|
|
1814
|
+
/* @__PURE__ */ e.jsx("span", { className: "pkt-step__line pkt-step__line--3", role: "separator" }),
|
|
1815
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pkt-step__wrapper", children: [
|
|
1816
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-step__title", children: l }),
|
|
1817
|
+
/* @__PURE__ */ e.jsx("div", { className: "pkt-step__content", children: r })
|
|
1818
|
+
] })
|
|
1819
|
+
] }), mr = ({
|
|
1785
1820
|
className: r,
|
|
1786
1821
|
compact: n = !1,
|
|
1787
|
-
skin:
|
|
1788
|
-
responsiveView:
|
|
1789
|
-
children:
|
|
1822
|
+
skin: o = "basic",
|
|
1823
|
+
responsiveView: l = !0,
|
|
1824
|
+
children: c
|
|
1790
1825
|
}) => /* @__PURE__ */ e.jsx(
|
|
1791
1826
|
"table",
|
|
1792
1827
|
{
|
|
1793
1828
|
"data-testid": "pkt-table",
|
|
1794
|
-
className:
|
|
1795
|
-
"pkt-table--responsive":
|
|
1829
|
+
className: U(r, "pkt-table", {
|
|
1830
|
+
"pkt-table--responsive": l,
|
|
1796
1831
|
"pkt-table--compact": n,
|
|
1797
|
-
"pkt-table--basic":
|
|
1798
|
-
"pkt-table--zebra-blue":
|
|
1832
|
+
"pkt-table--basic": o === "basic",
|
|
1833
|
+
"pkt-table--zebra-blue": o === "zebra-blue"
|
|
1799
1834
|
}),
|
|
1800
1835
|
role: "table",
|
|
1801
|
-
children:
|
|
1836
|
+
children: c
|
|
1802
1837
|
}
|
|
1803
|
-
),
|
|
1838
|
+
), hr = ({ children: r, className: n, dataLabel: o }) => /* @__PURE__ */ e.jsx(
|
|
1804
1839
|
"td",
|
|
1805
1840
|
{
|
|
1806
|
-
className:
|
|
1807
|
-
"data-label":
|
|
1841
|
+
className: U(n, "pkt-table__data-cell", {}),
|
|
1842
|
+
"data-label": o,
|
|
1808
1843
|
role: "cell",
|
|
1809
1844
|
"data-testid": "pkt-table__data-cell",
|
|
1810
1845
|
children: r
|
|
1811
1846
|
}
|
|
1812
|
-
),
|
|
1847
|
+
), _r = ({ className: r, children: n }) => /* @__PURE__ */ e.jsx("th", { className: U(r, "pkt-table__header-cell", {}), role: "columnheader", children: n }), xr = ({ className: r, children: n }) => /* @__PURE__ */ e.jsx("thead", { className: U(r, "pkt-table__header", {}), role: "rowgroup", children: n }), vr = ({ className: r, children: n }) => /* @__PURE__ */ e.jsx("tr", { className: U(r, "pkt-table__row", {}), role: "row", children: n }), br = ({ children: r, className: n }) => /* @__PURE__ */ e.jsx("tbody", { className: U(n, "pkt-table__body", {}), role: "rowgroup", children: r }), Pe = S(({
|
|
1813
1848
|
children: r,
|
|
1814
1849
|
className: n,
|
|
1815
|
-
skin:
|
|
1816
|
-
textStyle:
|
|
1817
|
-
size:
|
|
1818
|
-
closeTag:
|
|
1850
|
+
skin: o = "blue",
|
|
1851
|
+
textStyle: l = "normal-text",
|
|
1852
|
+
size: c = "medium",
|
|
1853
|
+
closeTag: s = !1,
|
|
1819
1854
|
iconName: d = "",
|
|
1820
|
-
type:
|
|
1821
|
-
ariaLabel:
|
|
1822
|
-
onClick:
|
|
1855
|
+
type: a = "button",
|
|
1856
|
+
ariaLabel: u = "close",
|
|
1857
|
+
onClick: p = () => {
|
|
1823
1858
|
}
|
|
1824
1859
|
}, k) => {
|
|
1825
|
-
const [h,
|
|
1826
|
-
|
|
1860
|
+
const [h, v] = X(!1), g = (C) => {
|
|
1861
|
+
v(!0), p(C);
|
|
1827
1862
|
}, E = [
|
|
1828
1863
|
"pkt-tag",
|
|
1829
|
-
o && `pkt-tag--${o}`,
|
|
1830
1864
|
c && `pkt-tag--${c}`,
|
|
1831
|
-
|
|
1865
|
+
o && `pkt-tag--${o}`,
|
|
1866
|
+
l && `pkt-tag--${l}`,
|
|
1832
1867
|
n
|
|
1833
|
-
].filter(Boolean).join(" "),
|
|
1868
|
+
].filter(Boolean).join(" "), I = [
|
|
1834
1869
|
"pkt-tag",
|
|
1835
1870
|
"pkt-btn",
|
|
1836
1871
|
"pkt-btn--tertiary",
|
|
1837
|
-
o && `pkt-tag--${o}`,
|
|
1838
1872
|
c && `pkt-tag--${c}`,
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1873
|
+
o && `pkt-tag--${o}`,
|
|
1874
|
+
l && `pkt-tag--${l}`,
|
|
1875
|
+
d && s ? "pkt-btn--icons-right-and-left" : null,
|
|
1876
|
+
s && !d ? "pkt-btn--icon-right" : null,
|
|
1842
1877
|
n
|
|
1843
1878
|
].filter(Boolean).join(" "), $ = !h;
|
|
1844
|
-
return
|
|
1879
|
+
return s && d ? /* @__PURE__ */ e.jsx(e.Fragment, { children: $ && /* @__PURE__ */ e.jsxs(
|
|
1845
1880
|
"button",
|
|
1846
1881
|
{
|
|
1847
|
-
className:
|
|
1848
|
-
type:
|
|
1849
|
-
"aria-label":
|
|
1882
|
+
className: I,
|
|
1883
|
+
type: a,
|
|
1884
|
+
"aria-label": u,
|
|
1850
1885
|
onClick: g,
|
|
1851
1886
|
ref: k,
|
|
1852
1887
|
children: [
|
|
1853
|
-
/* @__PURE__ */ e.jsx(
|
|
1888
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-tag__icon", name: d }),
|
|
1854
1889
|
r,
|
|
1855
|
-
/* @__PURE__ */ e.jsx(
|
|
1890
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-tag__close-btn", name: "close" })
|
|
1856
1891
|
]
|
|
1857
1892
|
}
|
|
1858
|
-
) }) :
|
|
1893
|
+
) }) : s ? /* @__PURE__ */ e.jsx(e.Fragment, { children: $ && /* @__PURE__ */ e.jsxs(
|
|
1859
1894
|
"button",
|
|
1860
1895
|
{
|
|
1861
|
-
className:
|
|
1862
|
-
type:
|
|
1863
|
-
"aria-label":
|
|
1896
|
+
className: I,
|
|
1897
|
+
type: a,
|
|
1898
|
+
"aria-label": u,
|
|
1864
1899
|
onClick: g,
|
|
1865
1900
|
ref: k,
|
|
1866
1901
|
children: [
|
|
1867
|
-
/* @__PURE__ */ e.jsx(
|
|
1902
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1868
1903
|
r
|
|
1869
1904
|
]
|
|
1870
1905
|
}
|
|
1871
1906
|
) }) : d ? /* @__PURE__ */ e.jsxs("span", { className: E, children: [
|
|
1872
|
-
/* @__PURE__ */ e.jsx(
|
|
1907
|
+
/* @__PURE__ */ e.jsx(x, { className: "pkt-tag__icon", name: d }),
|
|
1873
1908
|
r
|
|
1874
1909
|
] }) : /* @__PURE__ */ e.jsx("span", { className: E, children: r });
|
|
1875
1910
|
});
|
|
1876
1911
|
Pe.displayName = "PktTag";
|
|
1877
|
-
const
|
|
1878
|
-
({ arrowNav: r = !0, tabs: n, onTabSelected:
|
|
1879
|
-
const
|
|
1912
|
+
const jr = S(
|
|
1913
|
+
({ arrowNav: r = !0, tabs: n, onTabSelected: o }, l) => {
|
|
1914
|
+
const c = $e([]);
|
|
1880
1915
|
oe(() => {
|
|
1881
|
-
|
|
1916
|
+
c.current = c.current.slice(0, n.length);
|
|
1882
1917
|
}, [n]);
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1885
|
-
}, d = (
|
|
1886
|
-
var
|
|
1887
|
-
r && (
|
|
1918
|
+
const s = (a, u) => {
|
|
1919
|
+
u.action && u.action(a), o && o(a);
|
|
1920
|
+
}, d = (a, u) => {
|
|
1921
|
+
var p, k;
|
|
1922
|
+
r && (u.code === "ArrowLeft" && a !== 0 && ((p = c.current[a - 1]) == null || p.focus()), u.code === "ArrowRight" && a < n.length - 1 && ((k = c.current[a + 1]) == null || k.focus()), (u.code === "ArrowDown" || u.code === "Space") && s(a, n[a]));
|
|
1888
1923
|
};
|
|
1889
|
-
return /* @__PURE__ */ e.jsx("div", { className: "pkt-tabs", ref:
|
|
1924
|
+
return /* @__PURE__ */ e.jsx("div", { className: "pkt-tabs", ref: l, children: /* @__PURE__ */ e.jsx("div", { className: "pkt-tabs__list", role: r ? "tablist" : "navigation", children: n.map((a, u) => /* @__PURE__ */ e.jsx($t, { children: a.href ? /* @__PURE__ */ e.jsxs(
|
|
1890
1925
|
"a",
|
|
1891
1926
|
{
|
|
1892
|
-
"aria-selected": !!
|
|
1927
|
+
"aria-selected": !!a.active,
|
|
1893
1928
|
role: r ? "tab" : void 0,
|
|
1894
|
-
href:
|
|
1895
|
-
"aria-controls":
|
|
1896
|
-
className: `pkt-tabs__link ${
|
|
1897
|
-
onKeyUp: (
|
|
1898
|
-
onClick: () =>
|
|
1899
|
-
tabIndex:
|
|
1900
|
-
ref: (
|
|
1901
|
-
|
|
1929
|
+
href: a.href,
|
|
1930
|
+
"aria-controls": a.controls,
|
|
1931
|
+
className: `pkt-tabs__link ${a.active ? "active" : ""}`,
|
|
1932
|
+
onKeyUp: (p) => d(u, p),
|
|
1933
|
+
onClick: () => s(u, a),
|
|
1934
|
+
tabIndex: a.active || !r ? void 0 : -1,
|
|
1935
|
+
ref: (p) => {
|
|
1936
|
+
c.current[u] = p;
|
|
1902
1937
|
},
|
|
1903
1938
|
children: [
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1939
|
+
a.icon && /* @__PURE__ */ e.jsx(x, { name: a.icon, className: "pkt-icon--small" }),
|
|
1940
|
+
a.text,
|
|
1941
|
+
a.tag && /* @__PURE__ */ e.jsx(Pe, { skin: a.tag.skin, size: "small", children: a.tag.text })
|
|
1907
1942
|
]
|
|
1908
1943
|
}
|
|
1909
1944
|
) : /* @__PURE__ */ e.jsxs(
|
|
1910
1945
|
"button",
|
|
1911
1946
|
{
|
|
1912
|
-
"aria-selected": !!
|
|
1947
|
+
"aria-selected": !!a.active,
|
|
1913
1948
|
role: r ? "tab" : void 0,
|
|
1914
1949
|
type: "button",
|
|
1915
|
-
"aria-controls":
|
|
1916
|
-
className: `pkt-tabs__button pkt-link-button ${
|
|
1917
|
-
onKeyUp: (
|
|
1918
|
-
onClick: () =>
|
|
1919
|
-
tabIndex:
|
|
1920
|
-
ref: (
|
|
1921
|
-
|
|
1950
|
+
"aria-controls": a.controls,
|
|
1951
|
+
className: `pkt-tabs__button pkt-link-button ${a.active ? "active" : ""}`,
|
|
1952
|
+
onKeyUp: (p) => d(u, p),
|
|
1953
|
+
onClick: () => s(u, a),
|
|
1954
|
+
tabIndex: a.active || !r ? void 0 : -1,
|
|
1955
|
+
ref: (p) => {
|
|
1956
|
+
c.current[u] = p;
|
|
1922
1957
|
},
|
|
1923
1958
|
children: [
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1959
|
+
a.icon && /* @__PURE__ */ e.jsx(x, { name: a.icon, className: "pkt-icon--small" }),
|
|
1960
|
+
a.text,
|
|
1961
|
+
a.tag && /* @__PURE__ */ e.jsx(Pe, { skin: a.tag.skin, size: "small", children: a.tag.text })
|
|
1927
1962
|
]
|
|
1928
1963
|
},
|
|
1929
|
-
"b-" +
|
|
1930
|
-
) },
|
|
1964
|
+
"b-" + u
|
|
1965
|
+
) }, u)) }) });
|
|
1931
1966
|
}
|
|
1932
|
-
),
|
|
1967
|
+
), gr = S(
|
|
1933
1968
|
({
|
|
1934
1969
|
id: r,
|
|
1935
1970
|
ariaDescribedby: n,
|
|
1936
|
-
ariaLabelledby:
|
|
1937
|
-
counter:
|
|
1938
|
-
counterMaxLength:
|
|
1939
|
-
className:
|
|
1971
|
+
ariaLabelledby: o,
|
|
1972
|
+
counter: l,
|
|
1973
|
+
counterMaxLength: c,
|
|
1974
|
+
className: s,
|
|
1940
1975
|
disabled: d,
|
|
1941
|
-
errorMessage:
|
|
1942
|
-
hasError:
|
|
1943
|
-
helptext:
|
|
1976
|
+
errorMessage: a,
|
|
1977
|
+
hasError: u,
|
|
1978
|
+
helptext: p,
|
|
1944
1979
|
helptextDropdown: k,
|
|
1945
1980
|
helptextDropdownButton: h,
|
|
1946
|
-
inline:
|
|
1981
|
+
inline: v,
|
|
1947
1982
|
fullwidth: g = !1,
|
|
1948
1983
|
label: E,
|
|
1949
|
-
name:
|
|
1984
|
+
name: I,
|
|
1950
1985
|
optionalTag: $ = !1,
|
|
1951
1986
|
optionalText: C,
|
|
1952
1987
|
requiredTag: w = !1,
|
|
1953
|
-
requiredText:
|
|
1954
|
-
placeholder:
|
|
1988
|
+
requiredText: b,
|
|
1989
|
+
placeholder: O,
|
|
1955
1990
|
rows: Y,
|
|
1956
|
-
useWrapper:
|
|
1957
|
-
onChange:
|
|
1958
|
-
...
|
|
1959
|
-
},
|
|
1960
|
-
const
|
|
1991
|
+
useWrapper: B = !0,
|
|
1992
|
+
onChange: W,
|
|
1993
|
+
...G
|
|
1994
|
+
}, V) => {
|
|
1995
|
+
const J = [s, "pkt-textinput", "pkt-textarea"].join(" "), z = o || `${r}-label`, A = $e(null), [P, m] = X(0), D = (Z) => {
|
|
1961
1996
|
var Q, ne;
|
|
1962
|
-
if (
|
|
1963
|
-
return
|
|
1997
|
+
if (l && m(((ne = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : ne.length) || 0), W)
|
|
1998
|
+
return W(Z);
|
|
1964
1999
|
};
|
|
1965
2000
|
return oe(() => {
|
|
1966
2001
|
var Z, Q;
|
|
1967
|
-
typeof
|
|
1968
|
-
}, [
|
|
2002
|
+
typeof V == "function" && V(A.current), l && m(((Q = (Z = A == null ? void 0 : A.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
|
|
2003
|
+
}, [V]), /* @__PURE__ */ e.jsxs(
|
|
1969
2004
|
me,
|
|
1970
2005
|
{
|
|
1971
2006
|
ariaDescribedby: n,
|
|
1972
|
-
className:
|
|
2007
|
+
className: J,
|
|
1973
2008
|
disabled: d,
|
|
1974
|
-
errorMessage:
|
|
2009
|
+
errorMessage: a,
|
|
1975
2010
|
forId: r,
|
|
1976
|
-
hasError:
|
|
1977
|
-
helptext:
|
|
2011
|
+
hasError: u,
|
|
2012
|
+
helptext: p,
|
|
1978
2013
|
helptextDropdown: k,
|
|
1979
2014
|
helptextDropdownButton: h,
|
|
1980
|
-
inline:
|
|
2015
|
+
inline: v,
|
|
1981
2016
|
label: E,
|
|
1982
2017
|
optionalTag: $,
|
|
1983
2018
|
optionalText: C,
|
|
1984
2019
|
requiredTag: w,
|
|
1985
|
-
requiredText:
|
|
1986
|
-
useWrapper:
|
|
2020
|
+
requiredText: b,
|
|
2021
|
+
useWrapper: B,
|
|
1987
2022
|
children: [
|
|
1988
2023
|
/* @__PURE__ */ e.jsx(
|
|
1989
2024
|
"textarea",
|
|
1990
2025
|
{
|
|
1991
2026
|
ref: A,
|
|
1992
|
-
className: `pkt-input ${g ? "pkt-input--fullwidth" : ""} ${
|
|
1993
|
-
name:
|
|
2027
|
+
className: `pkt-input ${g ? "pkt-input--fullwidth" : ""} ${c && P > c ? "pkt-input--counter-error" : ""}`,
|
|
2028
|
+
name: I || r,
|
|
1994
2029
|
id: r,
|
|
1995
|
-
placeholder:
|
|
2030
|
+
placeholder: O,
|
|
1996
2031
|
disabled: d,
|
|
1997
2032
|
rows: Y,
|
|
1998
|
-
"aria-labelledby":
|
|
1999
|
-
"aria-invalid":
|
|
2033
|
+
"aria-labelledby": z,
|
|
2034
|
+
"aria-invalid": u,
|
|
2000
2035
|
"aria-errormessage": `${r}-error`,
|
|
2001
|
-
...
|
|
2036
|
+
...G,
|
|
2002
2037
|
onChange: D
|
|
2003
2038
|
}
|
|
2004
2039
|
),
|
|
2005
|
-
|
|
2040
|
+
l && /* @__PURE__ */ e.jsxs("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
|
|
2006
2041
|
P || 0,
|
|
2007
|
-
|
|
2042
|
+
c && `/${c}`
|
|
2008
2043
|
] })
|
|
2009
2044
|
]
|
|
2010
2045
|
}
|
|
2011
2046
|
);
|
|
2012
2047
|
}
|
|
2013
|
-
),
|
|
2048
|
+
), Nr = S(
|
|
2014
2049
|
({
|
|
2015
2050
|
id: r,
|
|
2016
2051
|
ariaDescribedby: n,
|
|
2017
|
-
ariaLabelledby:
|
|
2018
|
-
autocomplete:
|
|
2019
|
-
className:
|
|
2020
|
-
disabled:
|
|
2052
|
+
ariaLabelledby: o,
|
|
2053
|
+
autocomplete: l = "off",
|
|
2054
|
+
className: c,
|
|
2055
|
+
disabled: s = !1,
|
|
2021
2056
|
errorMessage: d,
|
|
2022
|
-
hasError:
|
|
2023
|
-
helptext:
|
|
2024
|
-
helptextDropdown:
|
|
2057
|
+
hasError: a = !1,
|
|
2058
|
+
helptext: u,
|
|
2059
|
+
helptextDropdown: p,
|
|
2025
2060
|
helptextDropdownButton: k,
|
|
2026
2061
|
iconNameRight: h,
|
|
2027
|
-
inline:
|
|
2062
|
+
inline: v = !1,
|
|
2028
2063
|
fullwidth: g = !1,
|
|
2029
2064
|
label: E,
|
|
2030
|
-
name:
|
|
2065
|
+
name: I,
|
|
2031
2066
|
optionalTag: $ = !1,
|
|
2032
2067
|
optionalText: C,
|
|
2033
2068
|
requiredTag: w = !1,
|
|
2034
|
-
requiredText:
|
|
2035
|
-
placeholder:
|
|
2069
|
+
requiredText: b,
|
|
2070
|
+
placeholder: O,
|
|
2036
2071
|
prefix: Y,
|
|
2037
|
-
suffix:
|
|
2038
|
-
type:
|
|
2039
|
-
useWrapper:
|
|
2040
|
-
omitSearchIcon:
|
|
2041
|
-
value:
|
|
2042
|
-
...
|
|
2072
|
+
suffix: B,
|
|
2073
|
+
type: W = "text",
|
|
2074
|
+
useWrapper: G = !0,
|
|
2075
|
+
omitSearchIcon: V = !1,
|
|
2076
|
+
value: J,
|
|
2077
|
+
...z
|
|
2043
2078
|
}, A) => {
|
|
2044
|
-
const P = [
|
|
2079
|
+
const P = [c, "pkt-textinput"].join(" "), m = o || `${r}-label`, D = W === "search" && !h && !V;
|
|
2045
2080
|
return /* @__PURE__ */ e.jsx(
|
|
2046
2081
|
me,
|
|
2047
2082
|
{
|
|
2048
2083
|
ariaDescribedby: n,
|
|
2049
2084
|
className: P,
|
|
2050
|
-
disabled:
|
|
2085
|
+
disabled: s,
|
|
2051
2086
|
errorMessage: d,
|
|
2052
2087
|
forId: r,
|
|
2053
|
-
hasError:
|
|
2054
|
-
helptext:
|
|
2055
|
-
helptextDropdown:
|
|
2088
|
+
hasError: a,
|
|
2089
|
+
helptext: u,
|
|
2090
|
+
helptextDropdown: p,
|
|
2056
2091
|
helptextDropdownButton: k,
|
|
2057
|
-
inline:
|
|
2092
|
+
inline: v,
|
|
2058
2093
|
label: E,
|
|
2059
2094
|
optionalTag: $,
|
|
2060
2095
|
optionalText: C,
|
|
2061
2096
|
requiredTag: w,
|
|
2062
|
-
requiredText:
|
|
2063
|
-
useWrapper:
|
|
2097
|
+
requiredText: b,
|
|
2098
|
+
useWrapper: G,
|
|
2064
2099
|
children: /* @__PURE__ */ e.jsxs("div", { className: "pkt-input__container", children: [
|
|
2065
2100
|
Y && /* @__PURE__ */ e.jsx("div", { className: "pkt-input-prefix", children: Y }),
|
|
2066
2101
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2068,61 +2103,63 @@ const hr = F(
|
|
|
2068
2103
|
{
|
|
2069
2104
|
ref: A,
|
|
2070
2105
|
className: `pkt-input ${g ? "pkt-input--fullwidth" : ""}`,
|
|
2071
|
-
type:
|
|
2072
|
-
name:
|
|
2106
|
+
type: W,
|
|
2107
|
+
name: I || r,
|
|
2073
2108
|
id: r,
|
|
2074
|
-
placeholder:
|
|
2075
|
-
autoComplete:
|
|
2076
|
-
value:
|
|
2077
|
-
disabled:
|
|
2078
|
-
"aria-invalid":
|
|
2109
|
+
placeholder: O,
|
|
2110
|
+
autoComplete: l,
|
|
2111
|
+
value: J,
|
|
2112
|
+
disabled: s,
|
|
2113
|
+
"aria-invalid": a,
|
|
2079
2114
|
"aria-errormessage": `${r}-error`,
|
|
2080
2115
|
"aria-labelledby": m,
|
|
2081
|
-
...
|
|
2116
|
+
...z
|
|
2082
2117
|
}
|
|
2083
2118
|
),
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
h && /* @__PURE__ */ e.jsx(
|
|
2087
|
-
D && /* @__PURE__ */ e.jsx(
|
|
2119
|
+
B && /* @__PURE__ */ e.jsxs("p", { className: "pkt-input-suffix", children: [
|
|
2120
|
+
B,
|
|
2121
|
+
h && /* @__PURE__ */ e.jsx(x, { className: "pkt-input-suffix-icon", name: h }),
|
|
2122
|
+
D && /* @__PURE__ */ e.jsx(x, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
|
|
2088
2123
|
] }),
|
|
2089
|
-
!
|
|
2090
|
-
!
|
|
2124
|
+
!B && h && /* @__PURE__ */ e.jsx(x, { className: "pkt-input-icon", name: h }),
|
|
2125
|
+
!B && D && /* @__PURE__ */ e.jsx(x, { className: "pkt-input-icon", name: "magnifying-glass-big" })
|
|
2091
2126
|
] })
|
|
2092
2127
|
}
|
|
2093
2128
|
);
|
|
2094
2129
|
}
|
|
2095
2130
|
);
|
|
2096
2131
|
export {
|
|
2097
|
-
|
|
2098
|
-
|
|
2132
|
+
tr as PktAccordion,
|
|
2133
|
+
rr as PktAccordionItem,
|
|
2099
2134
|
Bt as PktAlert,
|
|
2100
|
-
|
|
2101
|
-
|
|
2135
|
+
nr as PktBackLink,
|
|
2136
|
+
sr as PktBreadcrumbs,
|
|
2102
2137
|
ce as PktButton,
|
|
2103
2138
|
Wt as PktCheckbox,
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2139
|
+
ar as PktFooter,
|
|
2140
|
+
lr as PktFooterSimple,
|
|
2141
|
+
ir as PktHeader,
|
|
2142
|
+
x as PktIcon,
|
|
2108
2143
|
Lt as PktIconContext,
|
|
2109
2144
|
Vt as PktInput,
|
|
2110
2145
|
me as PktInputWrapper,
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2146
|
+
Mt as PktLinkCard,
|
|
2147
|
+
or as PktLoader,
|
|
2148
|
+
cr as PktMessagebox,
|
|
2149
|
+
pr as PktProgressbar,
|
|
2150
|
+
Jt as PktRadioButton,
|
|
2151
|
+
ur as PktSearchInput,
|
|
2152
|
+
dr as PktSelect,
|
|
2153
|
+
kr as PktStep,
|
|
2154
|
+
fr as PktStepper,
|
|
2155
|
+
mr as PktTable,
|
|
2156
|
+
br as PktTableBody,
|
|
2157
|
+
hr as PktTableDataCell,
|
|
2158
|
+
xr as PktTableHeader,
|
|
2159
|
+
_r as PktTableHeaderCell,
|
|
2160
|
+
vr as PktTableRow,
|
|
2161
|
+
jr as PktTabs,
|
|
2125
2162
|
Pe as PktTag,
|
|
2126
|
-
|
|
2127
|
-
|
|
2163
|
+
gr as PktTextarea,
|
|
2164
|
+
Nr as PktTextinput
|
|
2128
2165
|
};
|