@oslokommune/punkt-react 11.7.1 → 11.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/components/icon/DefaultIconFetcher.d.ts +2 -2
- package/dist/punkt-react.es.js +760 -749
- package/dist/punkt-react.umd.js +12 -12
- package/package.json +3 -3
- package/src/components/icon/DefaultIconFetcher.tsx +44 -27
- package/src/components/icon/Icon.test.tsx +34 -16
- package/src/components/icon/Icon.tsx +8 -6
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as N from "react";
|
|
2
|
-
import H, { createContext as
|
|
2
|
+
import H, { createContext as pn, useState as le, useContext as fn, useEffect as Je, forwardRef as B, useRef as Et, Fragment as dn } from "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
function
|
|
4
|
+
function mn(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
7
|
+
var We = { exports: {} }, ue = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,23 +14,23 @@ var Ve = { exports: {} }, ue = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
17
|
+
var _t;
|
|
18
|
+
function hn() {
|
|
19
|
+
if (_t)
|
|
20
20
|
return ue;
|
|
21
|
-
|
|
22
|
-
var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"),
|
|
23
|
-
function
|
|
21
|
+
_t = 1;
|
|
22
|
+
var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
23
|
+
function o(c, p, u) {
|
|
24
24
|
var d, k = {}, v = null, R = null;
|
|
25
25
|
u !== void 0 && (v = "" + u), p.key !== void 0 && (v = "" + p.key), p.ref !== void 0 && (R = p.ref);
|
|
26
26
|
for (d in p)
|
|
27
|
-
|
|
27
|
+
l.call(p, d) && !s.hasOwnProperty(d) && (k[d] = p[d]);
|
|
28
28
|
if (c && c.defaultProps)
|
|
29
29
|
for (d in p = c.defaultProps, p)
|
|
30
30
|
k[d] === void 0 && (k[d] = p[d]);
|
|
31
31
|
return { $$typeof: n, type: c, key: v, ref: R, props: k, _owner: r.current };
|
|
32
32
|
}
|
|
33
|
-
return ue.Fragment = a, ue.jsx =
|
|
33
|
+
return ue.Fragment = a, ue.jsx = o, ue.jsxs = o, ue;
|
|
34
34
|
}
|
|
35
35
|
var pe = {};
|
|
36
36
|
/**
|
|
@@ -42,10 +42,10 @@ var pe = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
return
|
|
48
|
-
var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.portal"),
|
|
45
|
+
var bt;
|
|
46
|
+
function kn() {
|
|
47
|
+
return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
48
|
+
var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), x = Symbol.iterator, T = "@@iterator";
|
|
49
49
|
function j(t) {
|
|
50
50
|
if (t === null || typeof t != "object")
|
|
51
51
|
return null;
|
|
@@ -62,10 +62,10 @@ function hn() {
|
|
|
62
62
|
}
|
|
63
63
|
function _(t, f, m) {
|
|
64
64
|
{
|
|
65
|
-
var b = y.ReactDebugCurrentFrame,
|
|
66
|
-
|
|
67
|
-
var $ = m.map(function(
|
|
68
|
-
return String(
|
|
65
|
+
var b = y.ReactDebugCurrentFrame, P = b.getStackAddendum();
|
|
66
|
+
P !== "" && (f += "%s", m = m.concat([P]));
|
|
67
|
+
var $ = m.map(function(S) {
|
|
68
|
+
return String(S);
|
|
69
69
|
});
|
|
70
70
|
$.unshift("Warning: " + f), Function.prototype.apply.call(console[t], console, $);
|
|
71
71
|
}
|
|
@@ -73,7 +73,7 @@ function hn() {
|
|
|
73
73
|
var O = !1, U = !1, A = !1, V = !1, K = !1, W;
|
|
74
74
|
W = Symbol.for("react.module.reference");
|
|
75
75
|
function G(t) {
|
|
76
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
76
|
+
return !!(typeof t == "string" || typeof t == "function" || t === l || t === s || K || t === r || t === u || t === d || V || t === R || O || U || A || typeof t == "object" && t !== null && (t.$$typeof === v || t.$$typeof === k || t.$$typeof === o || t.$$typeof === c || t.$$typeof === p || // This needs to include all possible module reference object
|
|
77
77
|
// types supported by any Flight configuration anywhere since
|
|
78
78
|
// we don't know which Flight build this will end up being used
|
|
79
79
|
// with.
|
|
@@ -83,8 +83,8 @@ function hn() {
|
|
|
83
83
|
var b = t.displayName;
|
|
84
84
|
if (b)
|
|
85
85
|
return b;
|
|
86
|
-
var
|
|
87
|
-
return
|
|
86
|
+
var P = f.displayName || f.name || "";
|
|
87
|
+
return P !== "" ? m + "(" + P + ")" : m;
|
|
88
88
|
}
|
|
89
89
|
function g(t) {
|
|
90
90
|
return t.displayName || "Context";
|
|
@@ -97,11 +97,11 @@ function hn() {
|
|
|
97
97
|
if (typeof t == "string")
|
|
98
98
|
return t;
|
|
99
99
|
switch (t) {
|
|
100
|
-
case
|
|
100
|
+
case l:
|
|
101
101
|
return "Fragment";
|
|
102
102
|
case a:
|
|
103
103
|
return "Portal";
|
|
104
|
-
case
|
|
104
|
+
case s:
|
|
105
105
|
return "Profiler";
|
|
106
106
|
case r:
|
|
107
107
|
return "StrictMode";
|
|
@@ -115,7 +115,7 @@ function hn() {
|
|
|
115
115
|
case c:
|
|
116
116
|
var f = t;
|
|
117
117
|
return g(f) + ".Consumer";
|
|
118
|
-
case
|
|
118
|
+
case o:
|
|
119
119
|
var m = t;
|
|
120
120
|
return g(m._context) + ".Provider";
|
|
121
121
|
case p:
|
|
@@ -124,9 +124,9 @@ function hn() {
|
|
|
124
124
|
var b = t.displayName || null;
|
|
125
125
|
return b !== null ? b : D(t.type) || "Memo";
|
|
126
126
|
case v: {
|
|
127
|
-
var
|
|
127
|
+
var P = t, $ = P._payload, S = P._init;
|
|
128
128
|
try {
|
|
129
|
-
return D(
|
|
129
|
+
return D(S($));
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
@@ -134,18 +134,18 @@ function hn() {
|
|
|
134
134
|
}
|
|
135
135
|
return null;
|
|
136
136
|
}
|
|
137
|
-
var Y = Object.assign, z = 0, ee, te,
|
|
138
|
-
function
|
|
137
|
+
var Y = Object.assign, z = 0, ee, te, oe, Qe, et, tt, nt;
|
|
138
|
+
function rt() {
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
function
|
|
140
|
+
rt.__reactDisabledLog = !0;
|
|
141
|
+
function At() {
|
|
142
142
|
{
|
|
143
143
|
if (z === 0) {
|
|
144
|
-
ee = console.log, te = console.info,
|
|
144
|
+
ee = console.log, te = console.info, oe = console.warn, Qe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
|
|
145
145
|
var t = {
|
|
146
146
|
configurable: !0,
|
|
147
147
|
enumerable: !0,
|
|
148
|
-
value:
|
|
148
|
+
value: rt,
|
|
149
149
|
writable: !0
|
|
150
150
|
};
|
|
151
151
|
Object.defineProperties(console, {
|
|
@@ -161,7 +161,7 @@ function hn() {
|
|
|
161
161
|
z++;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Vt() {
|
|
165
165
|
{
|
|
166
166
|
if (z--, z === 0) {
|
|
167
167
|
var t = {
|
|
@@ -177,33 +177,33 @@ function hn() {
|
|
|
177
177
|
value: te
|
|
178
178
|
}),
|
|
179
179
|
warn: Y({}, t, {
|
|
180
|
-
value:
|
|
180
|
+
value: oe
|
|
181
181
|
}),
|
|
182
182
|
error: Y({}, t, {
|
|
183
|
-
value:
|
|
183
|
+
value: Qe
|
|
184
184
|
}),
|
|
185
185
|
group: Y({}, t, {
|
|
186
|
-
value:
|
|
186
|
+
value: et
|
|
187
187
|
}),
|
|
188
188
|
groupCollapsed: Y({}, t, {
|
|
189
|
-
value:
|
|
189
|
+
value: tt
|
|
190
190
|
}),
|
|
191
191
|
groupEnd: Y({}, t, {
|
|
192
|
-
value:
|
|
192
|
+
value: nt
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
z < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var Pe = y.ReactCurrentDispatcher, Te;
|
|
200
200
|
function ke(t, f, m) {
|
|
201
201
|
{
|
|
202
202
|
if (Te === void 0)
|
|
203
203
|
try {
|
|
204
204
|
throw Error();
|
|
205
|
-
} catch (
|
|
206
|
-
var b =
|
|
205
|
+
} catch (P) {
|
|
206
|
+
var b = P.stack.trim().match(/\n( *(at )?)/);
|
|
207
207
|
Te = b && b[1] || "";
|
|
208
208
|
}
|
|
209
209
|
return `
|
|
@@ -212,10 +212,10 @@ function hn() {
|
|
|
212
212
|
}
|
|
213
213
|
var Oe = !1, ve;
|
|
214
214
|
{
|
|
215
|
-
var
|
|
216
|
-
ve = new
|
|
215
|
+
var Wt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
216
|
+
ve = new Wt();
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function at(t, f) {
|
|
219
219
|
if (!t || Oe)
|
|
220
220
|
return "";
|
|
221
221
|
{
|
|
@@ -225,33 +225,33 @@ function hn() {
|
|
|
225
225
|
}
|
|
226
226
|
var b;
|
|
227
227
|
Oe = !0;
|
|
228
|
-
var
|
|
228
|
+
var P = Error.prepareStackTrace;
|
|
229
229
|
Error.prepareStackTrace = void 0;
|
|
230
230
|
var $;
|
|
231
|
-
$ =
|
|
231
|
+
$ = Pe.current, Pe.current = null, At();
|
|
232
232
|
try {
|
|
233
233
|
if (f) {
|
|
234
|
-
var
|
|
234
|
+
var S = function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
};
|
|
237
|
-
if (Object.defineProperty(
|
|
237
|
+
if (Object.defineProperty(S.prototype, "props", {
|
|
238
238
|
set: function() {
|
|
239
239
|
throw Error();
|
|
240
240
|
}
|
|
241
241
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
242
242
|
try {
|
|
243
|
-
Reflect.construct(
|
|
243
|
+
Reflect.construct(S, []);
|
|
244
244
|
} catch (Z) {
|
|
245
245
|
b = Z;
|
|
246
246
|
}
|
|
247
|
-
Reflect.construct(t, [],
|
|
247
|
+
Reflect.construct(t, [], S);
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
|
-
|
|
250
|
+
S.call();
|
|
251
251
|
} catch (Z) {
|
|
252
252
|
b = Z;
|
|
253
253
|
}
|
|
254
|
-
t.call(
|
|
254
|
+
t.call(S.prototype);
|
|
255
255
|
}
|
|
256
256
|
} else {
|
|
257
257
|
try {
|
|
@@ -265,31 +265,31 @@ function hn() {
|
|
|
265
265
|
if (Z && b && typeof Z.stack == "string") {
|
|
266
266
|
for (var C = Z.stack.split(`
|
|
267
267
|
`), M = b.stack.split(`
|
|
268
|
-
`),
|
|
268
|
+
`), I = C.length - 1, F = M.length - 1; I >= 1 && F >= 0 && C[I] !== M[F]; )
|
|
269
269
|
F--;
|
|
270
|
-
for (;
|
|
271
|
-
if (C[
|
|
272
|
-
if (
|
|
270
|
+
for (; I >= 1 && F >= 0; I--, F--)
|
|
271
|
+
if (C[I] !== M[F]) {
|
|
272
|
+
if (I !== 1 || F !== 1)
|
|
273
273
|
do
|
|
274
|
-
if (
|
|
274
|
+
if (I--, F--, F < 0 || C[I] !== M[F]) {
|
|
275
275
|
var q = `
|
|
276
|
-
` + C[
|
|
276
|
+
` + C[I].replace(" at new ", " at ");
|
|
277
277
|
return t.displayName && q.includes("<anonymous>") && (q = q.replace("<anonymous>", t.displayName)), typeof t == "function" && ve.set(t, q), q;
|
|
278
278
|
}
|
|
279
|
-
while (
|
|
279
|
+
while (I >= 1 && F >= 0);
|
|
280
280
|
break;
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} finally {
|
|
284
|
-
Oe = !1,
|
|
284
|
+
Oe = !1, Pe.current = $, Vt(), Error.prepareStackTrace = P;
|
|
285
285
|
}
|
|
286
|
-
var re = t ? t.displayName || t.name : "",
|
|
287
|
-
return typeof t == "function" && ve.set(t,
|
|
286
|
+
var re = t ? t.displayName || t.name : "", vt = re ? ke(re) : "";
|
|
287
|
+
return typeof t == "function" && ve.set(t, vt), vt;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function Bt(t, f, m) {
|
|
290
|
+
return at(t, !1);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Mt(t) {
|
|
293
293
|
var f = t.prototype;
|
|
294
294
|
return !!(f && f.isReactComponent);
|
|
295
295
|
}
|
|
@@ -297,7 +297,7 @@ function hn() {
|
|
|
297
297
|
if (t == null)
|
|
298
298
|
return "";
|
|
299
299
|
if (typeof t == "function")
|
|
300
|
-
return
|
|
300
|
+
return at(t, Mt(t));
|
|
301
301
|
if (typeof t == "string")
|
|
302
302
|
return ke(t);
|
|
303
303
|
switch (t) {
|
|
@@ -309,78 +309,78 @@ function hn() {
|
|
|
309
309
|
if (typeof t == "object")
|
|
310
310
|
switch (t.$$typeof) {
|
|
311
311
|
case p:
|
|
312
|
-
return
|
|
312
|
+
return Bt(t.render);
|
|
313
313
|
case k:
|
|
314
314
|
return _e(t.type, f, m);
|
|
315
315
|
case v: {
|
|
316
|
-
var b = t,
|
|
316
|
+
var b = t, P = b._payload, $ = b._init;
|
|
317
317
|
try {
|
|
318
|
-
return _e($(
|
|
318
|
+
return _e($(P), f, m);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
return "";
|
|
324
324
|
}
|
|
325
|
-
var be = Object.prototype.hasOwnProperty,
|
|
325
|
+
var be = Object.prototype.hasOwnProperty, lt = {}, it = y.ReactDebugCurrentFrame;
|
|
326
326
|
function ge(t) {
|
|
327
327
|
if (t) {
|
|
328
328
|
var f = t._owner, m = _e(t.type, t._source, f ? f.type : null);
|
|
329
|
-
|
|
329
|
+
it.setExtraStackFrame(m);
|
|
330
330
|
} else
|
|
331
|
-
|
|
331
|
+
it.setExtraStackFrame(null);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function Yt(t, f, m, b, P) {
|
|
334
334
|
{
|
|
335
335
|
var $ = Function.call.bind(be);
|
|
336
|
-
for (var
|
|
337
|
-
if ($(t,
|
|
336
|
+
for (var S in t)
|
|
337
|
+
if ($(t, S)) {
|
|
338
338
|
var C = void 0;
|
|
339
339
|
try {
|
|
340
|
-
if (typeof t[
|
|
341
|
-
var M = Error((b || "React class") + ": " + m + " type `" +
|
|
340
|
+
if (typeof t[S] != "function") {
|
|
341
|
+
var M = Error((b || "React class") + ": " + m + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
342
342
|
throw M.name = "Invariant Violation", M;
|
|
343
343
|
}
|
|
344
|
-
C = t[
|
|
345
|
-
} catch (
|
|
346
|
-
C =
|
|
344
|
+
C = t[S](f, S, b, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
345
|
+
} catch (I) {
|
|
346
|
+
C = I;
|
|
347
347
|
}
|
|
348
|
-
C && !(C instanceof Error) && (ge(
|
|
348
|
+
C && !(C instanceof Error) && (ge(P), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", b || "React class", m, S, typeof C), ge(null)), C instanceof Error && !(C.message in lt) && (lt[C.message] = !0, ge(P), w("Failed %s type: %s", m, C.message), ge(null));
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var Kt = Array.isArray;
|
|
353
353
|
function $e(t) {
|
|
354
|
-
return
|
|
354
|
+
return Kt(t);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function Jt(t) {
|
|
357
357
|
{
|
|
358
358
|
var f = typeof Symbol == "function" && Symbol.toStringTag, m = f && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
359
359
|
return m;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function zt(t) {
|
|
363
363
|
try {
|
|
364
|
-
return
|
|
364
|
+
return st(t), !1;
|
|
365
365
|
} catch {
|
|
366
366
|
return !0;
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function st(t) {
|
|
370
370
|
return "" + t;
|
|
371
371
|
}
|
|
372
372
|
function ot(t) {
|
|
373
|
-
if (
|
|
374
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
373
|
+
if (zt(t))
|
|
374
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Jt(t)), st(t);
|
|
375
375
|
}
|
|
376
|
-
var ce = y.ReactCurrentOwner,
|
|
376
|
+
var ce = y.ReactCurrentOwner, Gt = {
|
|
377
377
|
key: !0,
|
|
378
378
|
ref: !0,
|
|
379
379
|
__self: !0,
|
|
380
380
|
__source: !0
|
|
381
|
-
},
|
|
381
|
+
}, ct, ut, je;
|
|
382
382
|
je = {};
|
|
383
|
-
function
|
|
383
|
+
function qt(t) {
|
|
384
384
|
if (be.call(t, "ref")) {
|
|
385
385
|
var f = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
386
386
|
if (f && f.isReactWarning)
|
|
@@ -388,7 +388,7 @@ function hn() {
|
|
|
388
388
|
}
|
|
389
389
|
return t.ref !== void 0;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Ht(t) {
|
|
392
392
|
if (be.call(t, "key")) {
|
|
393
393
|
var f = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
394
394
|
if (f && f.isReactWarning)
|
|
@@ -396,16 +396,16 @@ function hn() {
|
|
|
396
396
|
}
|
|
397
397
|
return t.key !== void 0;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Xt(t, f) {
|
|
400
400
|
if (typeof t.ref == "string" && ce.current && f && ce.current.stateNode !== f) {
|
|
401
401
|
var m = D(ce.current.type);
|
|
402
402
|
je[m] || (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', D(ce.current.type), t.ref), je[m] = !0);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Zt(t, f) {
|
|
406
406
|
{
|
|
407
407
|
var m = function() {
|
|
408
|
-
|
|
408
|
+
ct || (ct = !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)", f));
|
|
409
409
|
};
|
|
410
410
|
m.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
411
411
|
get: m,
|
|
@@ -413,10 +413,10 @@ function hn() {
|
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Qt(t, f) {
|
|
417
417
|
{
|
|
418
418
|
var m = function() {
|
|
419
|
-
|
|
419
|
+
ut || (ut = !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)", f));
|
|
420
420
|
};
|
|
421
421
|
m.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
422
422
|
get: m,
|
|
@@ -424,7 +424,7 @@ function hn() {
|
|
|
424
424
|
});
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
var
|
|
427
|
+
var en = function(t, f, m, b, P, $, S) {
|
|
428
428
|
var C = {
|
|
429
429
|
// This tag allows us to uniquely identify this as a React Element
|
|
430
430
|
$$typeof: n,
|
|
@@ -432,7 +432,7 @@ function hn() {
|
|
|
432
432
|
type: t,
|
|
433
433
|
key: f,
|
|
434
434
|
ref: m,
|
|
435
|
-
props:
|
|
435
|
+
props: S,
|
|
436
436
|
// Record the component responsible for creating this element.
|
|
437
437
|
_owner: $
|
|
438
438
|
};
|
|
@@ -450,41 +450,41 @@ function hn() {
|
|
|
450
450
|
configurable: !1,
|
|
451
451
|
enumerable: !1,
|
|
452
452
|
writable: !1,
|
|
453
|
-
value:
|
|
453
|
+
value: P
|
|
454
454
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function tn(t, f, m, b, P) {
|
|
457
457
|
{
|
|
458
|
-
var $,
|
|
459
|
-
m !== void 0 && (ot(m), C = "" + m),
|
|
458
|
+
var $, S = {}, C = null, M = null;
|
|
459
|
+
m !== void 0 && (ot(m), C = "" + m), Ht(f) && (ot(f.key), C = "" + f.key), qt(f) && (M = f.ref, Xt(f, P));
|
|
460
460
|
for ($ in f)
|
|
461
|
-
be.call(f, $) && !
|
|
461
|
+
be.call(f, $) && !Gt.hasOwnProperty($) && (S[$] = f[$]);
|
|
462
462
|
if (t && t.defaultProps) {
|
|
463
|
-
var
|
|
464
|
-
for ($ in
|
|
465
|
-
|
|
463
|
+
var I = t.defaultProps;
|
|
464
|
+
for ($ in I)
|
|
465
|
+
S[$] === void 0 && (S[$] = I[$]);
|
|
466
466
|
}
|
|
467
467
|
if (C || M) {
|
|
468
468
|
var F = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
469
|
-
C &&
|
|
469
|
+
C && Zt(S, F), M && Qt(S, F);
|
|
470
470
|
}
|
|
471
|
-
return
|
|
471
|
+
return en(t, C, M, P, b, ce.current, S);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
var De = y.ReactCurrentOwner,
|
|
474
|
+
var De = y.ReactCurrentOwner, pt = y.ReactDebugCurrentFrame;
|
|
475
475
|
function ne(t) {
|
|
476
476
|
if (t) {
|
|
477
477
|
var f = t._owner, m = _e(t.type, t._source, f ? f.type : null);
|
|
478
|
-
|
|
478
|
+
pt.setExtraStackFrame(m);
|
|
479
479
|
} else
|
|
480
|
-
|
|
480
|
+
pt.setExtraStackFrame(null);
|
|
481
481
|
}
|
|
482
|
-
var
|
|
483
|
-
|
|
484
|
-
function
|
|
482
|
+
var Ie;
|
|
483
|
+
Ie = !1;
|
|
484
|
+
function Le(t) {
|
|
485
485
|
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function ft() {
|
|
488
488
|
{
|
|
489
489
|
if (De.current) {
|
|
490
490
|
var t = D(De.current.type);
|
|
@@ -496,7 +496,7 @@ Check the render method of \`` + t + "`.";
|
|
|
496
496
|
return "";
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function nn(t) {
|
|
500
500
|
{
|
|
501
501
|
if (t !== void 0) {
|
|
502
502
|
var f = t.fileName.replace(/^.*[\\\/]/, ""), m = t.lineNumber;
|
|
@@ -507,10 +507,10 @@ Check your code at ` + f + ":" + m + ".";
|
|
|
507
507
|
return "";
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
510
|
+
var dt = {};
|
|
511
|
+
function rn(t) {
|
|
512
512
|
{
|
|
513
|
-
var f =
|
|
513
|
+
var f = ft();
|
|
514
514
|
if (!f) {
|
|
515
515
|
var m = typeof t == "string" ? t : t.displayName || t.name;
|
|
516
516
|
m && (f = `
|
|
@@ -520,39 +520,39 @@ Check the top-level render call using <` + m + ">.");
|
|
|
520
520
|
return f;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function mt(t, f) {
|
|
524
524
|
{
|
|
525
525
|
if (!t._store || t._store.validated || t.key != null)
|
|
526
526
|
return;
|
|
527
527
|
t._store.validated = !0;
|
|
528
|
-
var m =
|
|
529
|
-
if (
|
|
528
|
+
var m = rn(f);
|
|
529
|
+
if (dt[m])
|
|
530
530
|
return;
|
|
531
|
-
|
|
531
|
+
dt[m] = !0;
|
|
532
532
|
var b = "";
|
|
533
533
|
t && t._owner && t._owner !== De.current && (b = " It was passed a child from " + D(t._owner.type) + "."), ne(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.', m, b), ne(null);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function ht(t, f) {
|
|
537
537
|
{
|
|
538
538
|
if (typeof t != "object")
|
|
539
539
|
return;
|
|
540
540
|
if ($e(t))
|
|
541
541
|
for (var m = 0; m < t.length; m++) {
|
|
542
542
|
var b = t[m];
|
|
543
|
-
|
|
543
|
+
Le(b) && mt(b, f);
|
|
544
544
|
}
|
|
545
|
-
else if (
|
|
545
|
+
else if (Le(t))
|
|
546
546
|
t._store && (t._store.validated = !0);
|
|
547
547
|
else if (t) {
|
|
548
|
-
var
|
|
549
|
-
if (typeof
|
|
550
|
-
for (var $ =
|
|
551
|
-
|
|
548
|
+
var P = j(t);
|
|
549
|
+
if (typeof P == "function" && P !== t.entries)
|
|
550
|
+
for (var $ = P.call(t), S; !(S = $.next()).done; )
|
|
551
|
+
Le(S.value) && mt(S.value, f);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function an(t) {
|
|
556
556
|
{
|
|
557
557
|
var f = t.type;
|
|
558
558
|
if (f == null || typeof f == "string")
|
|
@@ -568,16 +568,16 @@ Check the top-level render call using <` + m + ">.");
|
|
|
568
568
|
return;
|
|
569
569
|
if (m) {
|
|
570
570
|
var b = D(f);
|
|
571
|
-
|
|
572
|
-
} else if (f.PropTypes !== void 0 && !
|
|
573
|
-
|
|
574
|
-
var
|
|
575
|
-
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
571
|
+
Yt(m, t.props, "prop", b, t);
|
|
572
|
+
} else if (f.PropTypes !== void 0 && !Ie) {
|
|
573
|
+
Ie = !0;
|
|
574
|
+
var P = D(f);
|
|
575
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
576
576
|
}
|
|
577
577
|
typeof f.getDefaultProps == "function" && !f.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function ln(t) {
|
|
581
581
|
{
|
|
582
582
|
for (var f = Object.keys(t.props), m = 0; m < f.length; m++) {
|
|
583
583
|
var b = f[m];
|
|
@@ -589,71 +589,82 @@ Check the top-level render call using <` + m + ">.");
|
|
|
589
589
|
t.ref !== null && (ne(t), w("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function kt(t, f, m, b, P, $) {
|
|
593
593
|
{
|
|
594
|
-
var
|
|
595
|
-
if (!
|
|
594
|
+
var S = G(t);
|
|
595
|
+
if (!S) {
|
|
596
596
|
var C = "";
|
|
597
597
|
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (C += " 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 M =
|
|
599
|
-
M ? C += M : C +=
|
|
600
|
-
var
|
|
601
|
-
t === null ?
|
|
598
|
+
var M = nn(P);
|
|
599
|
+
M ? C += M : C += ft();
|
|
600
|
+
var I;
|
|
601
|
+
t === null ? I = "null" : $e(t) ? I = "array" : t !== void 0 && t.$$typeof === n ? (I = "<" + (D(t.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : I = 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", I, C);
|
|
602
602
|
}
|
|
603
|
-
var F =
|
|
603
|
+
var F = tn(t, f, m, P, $);
|
|
604
604
|
if (F == null)
|
|
605
605
|
return F;
|
|
606
|
-
if (
|
|
606
|
+
if (S) {
|
|
607
607
|
var q = f.children;
|
|
608
608
|
if (q !== void 0)
|
|
609
609
|
if (b)
|
|
610
610
|
if ($e(q)) {
|
|
611
611
|
for (var re = 0; re < q.length; re++)
|
|
612
|
-
|
|
612
|
+
ht(q[re], t);
|
|
613
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
|
+
ht(q, t);
|
|
618
618
|
}
|
|
619
|
-
return t ===
|
|
619
|
+
return t === l ? ln(F) : an(F), F;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return
|
|
622
|
+
function sn(t, f, m) {
|
|
623
|
+
return kt(t, f, m, !0);
|
|
624
624
|
}
|
|
625
625
|
function on(t, f, m) {
|
|
626
|
-
return
|
|
626
|
+
return kt(t, f, m, !1);
|
|
627
627
|
}
|
|
628
|
-
var
|
|
629
|
-
pe.Fragment =
|
|
628
|
+
var cn = on, un = sn;
|
|
629
|
+
pe.Fragment = l, pe.jsx = cn, pe.jsxs = un;
|
|
630
630
|
}()), pe;
|
|
631
631
|
}
|
|
632
|
-
process.env.NODE_ENV === "production" ?
|
|
633
|
-
var
|
|
634
|
-
const X =
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
632
|
+
process.env.NODE_ENV === "production" ? We.exports = hn() : We.exports = kn();
|
|
633
|
+
var ze = We.exports;
|
|
634
|
+
const X = ze.Fragment, i = ze.jsx, h = ze.jsxs, Fe = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', vn = "https://punkt-cdn.oslo.kommune.no/11.8/icons/";
|
|
635
|
+
function _n(e) {
|
|
636
|
+
return new Promise((n) => setTimeout(n, e));
|
|
637
|
+
}
|
|
638
|
+
const Ue = {}, bn = async (e, n) => {
|
|
639
|
+
let a = 0;
|
|
640
|
+
for (; Ue[n + e + ".svg"] === "fetching" && (a++, !(a > 50)); )
|
|
641
|
+
await _n(50);
|
|
642
|
+
return localStorage.getItem(n + e + ".svg") ? Promise.resolve(localStorage.getItem(n + e + ".svg")) : typeof window.fetch == "function" ? (Ue[n + e + ".svg"] = "fetching", Promise.resolve(
|
|
643
|
+
fetch(n + e + ".svg").then((l) => l.ok ? l.text() : (console.error("Missing icon: " + n + e + ".svg"), Fe)).then((l) => (l !== Fe && localStorage.setItem(n + e + ".svg", l), Ue[n + e + ".svg"] = "fetched", l))
|
|
644
|
+
)) : Promise.resolve(Fe);
|
|
645
|
+
}, gn = {
|
|
646
|
+
fetchIcon: async (e, n) => bn(e, n || vn)
|
|
647
|
+
}, Nn = pn(gn), E = ({ name: e, path: n, className: a = "", ...l }) => {
|
|
648
|
+
const [r, s] = le(null), o = fn(Nn);
|
|
649
|
+
return Je(() => {
|
|
650
|
+
e ? o.fetchIcon(e, n).then(s) : s(null);
|
|
651
|
+
}, [e, n]), r ? /* @__PURE__ */ i(
|
|
641
652
|
"span",
|
|
642
653
|
{
|
|
643
654
|
className: `pkt-icon ${a}`,
|
|
644
655
|
dangerouslySetInnerHTML: { __html: r },
|
|
645
|
-
...
|
|
656
|
+
...l
|
|
646
657
|
}
|
|
647
658
|
) : null;
|
|
648
|
-
},
|
|
659
|
+
}, yn = B(
|
|
649
660
|
({
|
|
650
661
|
children: e,
|
|
651
662
|
className: n,
|
|
652
663
|
skin: a = "info",
|
|
653
|
-
closeAlert:
|
|
664
|
+
closeAlert: l = !1,
|
|
654
665
|
onClose: r,
|
|
655
|
-
title:
|
|
656
|
-
date:
|
|
666
|
+
title: s,
|
|
667
|
+
date: o,
|
|
657
668
|
ariaLive: c = "polite",
|
|
658
669
|
compact: p = !1,
|
|
659
670
|
...u
|
|
@@ -667,14 +678,14 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
|
|
|
667
678
|
R(!1), r && r();
|
|
668
679
|
};
|
|
669
680
|
return v ? /* @__PURE__ */ h("div", { ...u, className: k, "aria-live": c, ref: d, children: [
|
|
670
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ i(
|
|
671
682
|
E,
|
|
672
683
|
{
|
|
673
684
|
className: "pkt-alert__icon",
|
|
674
685
|
name: a === "info" ? "alert-information" : `alert-${a}`
|
|
675
686
|
}
|
|
676
687
|
),
|
|
677
|
-
|
|
688
|
+
l && /* @__PURE__ */ i("div", { className: "pkt-alert__close", children: /* @__PURE__ */ i(
|
|
678
689
|
"button",
|
|
679
690
|
{
|
|
680
691
|
type: "button",
|
|
@@ -682,28 +693,28 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
|
|
|
682
693
|
tabIndex: 0,
|
|
683
694
|
"aria-label": "close",
|
|
684
695
|
onClick: x,
|
|
685
|
-
children: /* @__PURE__ */
|
|
696
|
+
children: /* @__PURE__ */ i(E, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
686
697
|
}
|
|
687
698
|
) }),
|
|
688
|
-
|
|
689
|
-
/* @__PURE__ */
|
|
690
|
-
|
|
699
|
+
s && /* @__PURE__ */ i("div", { className: "pkt-alert__title", children: s }),
|
|
700
|
+
/* @__PURE__ */ i("div", { className: "pkt-alert__text", children: e }),
|
|
701
|
+
o && /* @__PURE__ */ h("div", { className: "pkt-alert__date", children: [
|
|
691
702
|
"Sist oppdatert: ",
|
|
692
|
-
|
|
703
|
+
o
|
|
693
704
|
] })
|
|
694
705
|
] }) : null;
|
|
695
706
|
}
|
|
696
|
-
),
|
|
697
|
-
({ href: e, text: n, onClick: a, className:
|
|
698
|
-
const
|
|
699
|
-
|
|
707
|
+
), _r = B(
|
|
708
|
+
({ href: e, text: n, onClick: a, className: l, ...r }, s) => {
|
|
709
|
+
const o = [
|
|
710
|
+
l,
|
|
700
711
|
"pkt-back-link"
|
|
701
712
|
].filter(Boolean).join(" ");
|
|
702
|
-
return /* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ i("nav", { ref: s, className: o, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ h("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: (p) => {
|
|
703
714
|
a && a(p);
|
|
704
715
|
}, ...r, children: [
|
|
705
|
-
/* @__PURE__ */
|
|
706
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ i(E, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
|
|
717
|
+
/* @__PURE__ */ i("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
|
|
707
718
|
] }) });
|
|
708
719
|
}
|
|
709
720
|
);
|
|
@@ -717,21 +728,21 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
|
|
|
717
728
|
*
|
|
718
729
|
* @license MIT
|
|
719
730
|
*/
|
|
720
|
-
function
|
|
721
|
-
return
|
|
731
|
+
function Be() {
|
|
732
|
+
return Be = Object.assign ? Object.assign.bind() : function(e) {
|
|
722
733
|
for (var n = 1; n < arguments.length; n++) {
|
|
723
734
|
var a = arguments[n];
|
|
724
|
-
for (var
|
|
725
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
735
|
+
for (var l in a)
|
|
736
|
+
Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
|
|
726
737
|
}
|
|
727
738
|
return e;
|
|
728
|
-
},
|
|
739
|
+
}, Be.apply(this, arguments);
|
|
729
740
|
}
|
|
730
|
-
var
|
|
741
|
+
var gt;
|
|
731
742
|
(function(e) {
|
|
732
743
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
733
|
-
})(
|
|
734
|
-
function
|
|
744
|
+
})(gt || (gt = {}));
|
|
745
|
+
function L(e, n) {
|
|
735
746
|
if (e === !1 || e === null || typeof e > "u")
|
|
736
747
|
throw new Error(n);
|
|
737
748
|
}
|
|
@@ -744,67 +755,67 @@ function ie(e, n) {
|
|
|
744
755
|
}
|
|
745
756
|
}
|
|
746
757
|
}
|
|
747
|
-
function
|
|
758
|
+
function Me(e) {
|
|
748
759
|
let {
|
|
749
760
|
pathname: n = "/",
|
|
750
761
|
search: a = "",
|
|
751
|
-
hash:
|
|
762
|
+
hash: l = ""
|
|
752
763
|
} = e;
|
|
753
|
-
return a && a !== "?" && (n += a.charAt(0) === "?" ? a : "?" + a),
|
|
764
|
+
return a && a !== "?" && (n += a.charAt(0) === "?" ? a : "?" + a), l && l !== "#" && (n += l.charAt(0) === "#" ? l : "#" + l), n;
|
|
754
765
|
}
|
|
755
|
-
function
|
|
766
|
+
function xt(e) {
|
|
756
767
|
let n = {};
|
|
757
768
|
if (e) {
|
|
758
769
|
let a = e.indexOf("#");
|
|
759
770
|
a >= 0 && (n.hash = e.substr(a), e = e.substr(0, a));
|
|
760
|
-
let
|
|
761
|
-
|
|
771
|
+
let l = e.indexOf("?");
|
|
772
|
+
l >= 0 && (n.search = e.substr(l), e = e.substr(0, l)), e && (n.pathname = e);
|
|
762
773
|
}
|
|
763
774
|
return n;
|
|
764
775
|
}
|
|
765
|
-
var
|
|
776
|
+
var Nt;
|
|
766
777
|
(function(e) {
|
|
767
778
|
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
768
|
-
})(
|
|
769
|
-
function
|
|
779
|
+
})(Nt || (Nt = {}));
|
|
780
|
+
function yt(e, n) {
|
|
770
781
|
typeof e == "string" && (e = {
|
|
771
782
|
path: e,
|
|
772
783
|
caseSensitive: !1,
|
|
773
784
|
end: !0
|
|
774
785
|
});
|
|
775
|
-
let [a,
|
|
786
|
+
let [a, l] = wn(e.path, e.caseSensitive, e.end), r = n.match(a);
|
|
776
787
|
if (!r)
|
|
777
788
|
return null;
|
|
778
|
-
let
|
|
789
|
+
let s = r[0], o = s.replace(/(.)\/+$/, "$1"), c = r.slice(1);
|
|
779
790
|
return {
|
|
780
|
-
params:
|
|
791
|
+
params: l.reduce((u, d, k) => {
|
|
781
792
|
let {
|
|
782
793
|
paramName: v,
|
|
783
794
|
isOptional: R
|
|
784
795
|
} = d;
|
|
785
796
|
if (v === "*") {
|
|
786
797
|
let T = c[k] || "";
|
|
787
|
-
|
|
798
|
+
o = s.slice(0, s.length - T.length).replace(/(.)\/+$/, "$1");
|
|
788
799
|
}
|
|
789
800
|
const x = c[k];
|
|
790
|
-
return R && !x ? u[v] = void 0 : u[v] =
|
|
801
|
+
return R && !x ? u[v] = void 0 : u[v] = En(x || "", v), u;
|
|
791
802
|
}, {}),
|
|
792
|
-
pathname:
|
|
793
|
-
pathnameBase:
|
|
803
|
+
pathname: s,
|
|
804
|
+
pathnameBase: o,
|
|
794
805
|
pattern: e
|
|
795
806
|
};
|
|
796
807
|
}
|
|
797
|
-
function
|
|
808
|
+
function wn(e, n, a) {
|
|
798
809
|
n === void 0 && (n = !1), a === void 0 && (a = !0), ie(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
|
|
799
|
-
let
|
|
810
|
+
let l = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (o, c, p) => (l.push({
|
|
800
811
|
paramName: c,
|
|
801
812
|
isOptional: p != null
|
|
802
813
|
}), p ? "/?([^\\/]+)?" : "/([^\\/]+)"));
|
|
803
|
-
return e.endsWith("*") ? (
|
|
814
|
+
return e.endsWith("*") ? (l.push({
|
|
804
815
|
paramName: "*"
|
|
805
|
-
}), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"),
|
|
816
|
+
}), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), l];
|
|
806
817
|
}
|
|
807
|
-
function
|
|
818
|
+
function En(e, n) {
|
|
808
819
|
try {
|
|
809
820
|
return decodeURIComponent(e);
|
|
810
821
|
} catch (a) {
|
|
@@ -816,49 +827,49 @@ function fe(e, n) {
|
|
|
816
827
|
return e;
|
|
817
828
|
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
818
829
|
return null;
|
|
819
|
-
let a = n.endsWith("/") ? n.length - 1 : n.length,
|
|
820
|
-
return
|
|
830
|
+
let a = n.endsWith("/") ? n.length - 1 : n.length, l = e.charAt(a);
|
|
831
|
+
return l && l !== "/" ? null : e.slice(a) || "/";
|
|
821
832
|
}
|
|
822
|
-
function
|
|
833
|
+
function xn(e, n) {
|
|
823
834
|
n === void 0 && (n = "/");
|
|
824
835
|
let {
|
|
825
836
|
pathname: a,
|
|
826
|
-
search:
|
|
837
|
+
search: l = "",
|
|
827
838
|
hash: r = ""
|
|
828
|
-
} = typeof e == "string" ?
|
|
839
|
+
} = typeof e == "string" ? xt(e) : e;
|
|
829
840
|
return {
|
|
830
|
-
pathname: a ? a.startsWith("/") ? a :
|
|
831
|
-
search:
|
|
841
|
+
pathname: a ? a.startsWith("/") ? a : Cn(a, n) : n,
|
|
842
|
+
search: Sn(l),
|
|
832
843
|
hash: Pn(r)
|
|
833
844
|
};
|
|
834
845
|
}
|
|
835
|
-
function
|
|
846
|
+
function Cn(e, n) {
|
|
836
847
|
let a = n.replace(/\/+$/, "").split("/");
|
|
837
848
|
return e.split("/").forEach((r) => {
|
|
838
849
|
r === ".." ? a.length > 1 && a.pop() : r !== "." && a.push(r);
|
|
839
850
|
}), a.length > 1 ? a.join("/") : "/";
|
|
840
851
|
}
|
|
841
|
-
function
|
|
842
|
-
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(
|
|
852
|
+
function Ae(e, n, a, l) {
|
|
853
|
+
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(l) + "]. Please separate it out to the ") + ("`to." + a + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
843
854
|
}
|
|
844
|
-
function
|
|
855
|
+
function Rn(e) {
|
|
845
856
|
return e.filter((n, a) => a === 0 || n.route.path && n.route.path.length > 0);
|
|
846
857
|
}
|
|
847
|
-
function
|
|
848
|
-
let a =
|
|
849
|
-
return n ? a.map((
|
|
858
|
+
function Ct(e, n) {
|
|
859
|
+
let a = Rn(e);
|
|
860
|
+
return n ? a.map((l, r) => r === e.length - 1 ? l.pathname : l.pathnameBase) : a.map((l) => l.pathnameBase);
|
|
850
861
|
}
|
|
851
|
-
function
|
|
852
|
-
|
|
862
|
+
function Rt(e, n, a, l) {
|
|
863
|
+
l === void 0 && (l = !1);
|
|
853
864
|
let r;
|
|
854
|
-
typeof e == "string" ? r =
|
|
855
|
-
let
|
|
856
|
-
if (
|
|
865
|
+
typeof e == "string" ? r = xt(e) : (r = Be({}, e), L(!r.pathname || !r.pathname.includes("?"), Ae("?", "pathname", "search", r)), L(!r.pathname || !r.pathname.includes("#"), Ae("#", "pathname", "hash", r)), L(!r.search || !r.search.includes("#"), Ae("#", "search", "hash", r)));
|
|
866
|
+
let s = e === "" || r.pathname === "", o = s ? "/" : r.pathname, c;
|
|
867
|
+
if (o == null)
|
|
857
868
|
c = a;
|
|
858
|
-
else if (
|
|
869
|
+
else if (l) {
|
|
859
870
|
let k = n.length === 0 ? [] : n[n.length - 1].replace(/^\//, "").split("/");
|
|
860
|
-
if (
|
|
861
|
-
let v =
|
|
871
|
+
if (o.startsWith("..")) {
|
|
872
|
+
let v = o.split("/");
|
|
862
873
|
for (; v[0] === ".."; )
|
|
863
874
|
v.shift(), k.pop();
|
|
864
875
|
r.pathname = v.join("/");
|
|
@@ -866,21 +877,21 @@ function Ct(e, n, a, i) {
|
|
|
866
877
|
c = "/" + k.join("/");
|
|
867
878
|
} else {
|
|
868
879
|
let k = n.length - 1;
|
|
869
|
-
if (
|
|
870
|
-
let v =
|
|
880
|
+
if (o.startsWith("..")) {
|
|
881
|
+
let v = o.split("/");
|
|
871
882
|
for (; v[0] === ".."; )
|
|
872
883
|
v.shift(), k -= 1;
|
|
873
884
|
r.pathname = v.join("/");
|
|
874
885
|
}
|
|
875
886
|
c = k >= 0 ? n[k] : "/";
|
|
876
887
|
}
|
|
877
|
-
let p =
|
|
888
|
+
let p = xn(r, c), u = o && o !== "/" && o.endsWith("/"), d = (s || o === ".") && a.endsWith("/");
|
|
878
889
|
return !p.pathname.endsWith("/") && (u || d) && (p.pathname += "/"), p;
|
|
879
890
|
}
|
|
880
|
-
const
|
|
881
|
-
new Set(
|
|
882
|
-
const
|
|
883
|
-
new Set(
|
|
891
|
+
const Ge = (e) => e.join("/").replace(/\/\/+/g, "/"), Sn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Pn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, St = ["post", "put", "patch", "delete"];
|
|
892
|
+
new Set(St);
|
|
893
|
+
const Tn = ["get", ...St];
|
|
894
|
+
new Set(Tn);
|
|
884
895
|
/**
|
|
885
896
|
* React Router v6.21.0
|
|
886
897
|
*
|
|
@@ -891,155 +902,155 @@ new Set(Sn);
|
|
|
891
902
|
*
|
|
892
903
|
* @license MIT
|
|
893
904
|
*/
|
|
894
|
-
function
|
|
895
|
-
return
|
|
905
|
+
function Ye() {
|
|
906
|
+
return Ye = Object.assign ? Object.assign.bind() : function(e) {
|
|
896
907
|
for (var n = 1; n < arguments.length; n++) {
|
|
897
908
|
var a = arguments[n];
|
|
898
|
-
for (var
|
|
899
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
909
|
+
for (var l in a)
|
|
910
|
+
Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
|
|
900
911
|
}
|
|
901
912
|
return e;
|
|
902
|
-
},
|
|
913
|
+
}, Ye.apply(this, arguments);
|
|
903
914
|
}
|
|
904
915
|
const Ce = /* @__PURE__ */ N.createContext(null);
|
|
905
916
|
process.env.NODE_ENV !== "production" && (Ce.displayName = "DataRouter");
|
|
906
917
|
const Pt = /* @__PURE__ */ N.createContext(null);
|
|
907
918
|
process.env.NODE_ENV !== "production" && (Pt.displayName = "DataRouterState");
|
|
908
|
-
const
|
|
909
|
-
process.env.NODE_ENV !== "production" && (
|
|
919
|
+
const On = /* @__PURE__ */ N.createContext(null);
|
|
920
|
+
process.env.NODE_ENV !== "production" && (On.displayName = "Await");
|
|
910
921
|
const Q = /* @__PURE__ */ N.createContext(null);
|
|
911
922
|
process.env.NODE_ENV !== "production" && (Q.displayName = "Navigation");
|
|
912
|
-
const
|
|
913
|
-
process.env.NODE_ENV !== "production" && (
|
|
914
|
-
const
|
|
923
|
+
const qe = /* @__PURE__ */ N.createContext(null);
|
|
924
|
+
process.env.NODE_ENV !== "production" && (qe.displayName = "Location");
|
|
925
|
+
const se = /* @__PURE__ */ N.createContext({
|
|
915
926
|
outlet: null,
|
|
916
927
|
matches: [],
|
|
917
928
|
isDataRoute: !1
|
|
918
929
|
});
|
|
919
|
-
process.env.NODE_ENV !== "production" && (
|
|
920
|
-
const
|
|
921
|
-
process.env.NODE_ENV !== "production" && (
|
|
922
|
-
function
|
|
930
|
+
process.env.NODE_ENV !== "production" && (se.displayName = "Route");
|
|
931
|
+
const $n = /* @__PURE__ */ N.createContext(null);
|
|
932
|
+
process.env.NODE_ENV !== "production" && ($n.displayName = "RouteError");
|
|
933
|
+
function jn(e, n) {
|
|
923
934
|
let {
|
|
924
935
|
relative: a
|
|
925
936
|
} = n === void 0 ? {} : n;
|
|
926
|
-
|
|
937
|
+
He() || (process.env.NODE_ENV !== "production" ? L(
|
|
927
938
|
!1,
|
|
928
939
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
929
940
|
// router loaded. We can help them understand how to avoid that.
|
|
930
941
|
"useHref() may be used only in the context of a <Router> component."
|
|
931
|
-
) :
|
|
942
|
+
) : L(!1));
|
|
932
943
|
let {
|
|
933
|
-
basename:
|
|
944
|
+
basename: l,
|
|
934
945
|
navigator: r
|
|
935
946
|
} = N.useContext(Q), {
|
|
936
|
-
hash:
|
|
937
|
-
pathname:
|
|
947
|
+
hash: s,
|
|
948
|
+
pathname: o,
|
|
938
949
|
search: c
|
|
939
950
|
} = he(e, {
|
|
940
951
|
relative: a
|
|
941
|
-
}), p =
|
|
942
|
-
return
|
|
952
|
+
}), p = o;
|
|
953
|
+
return l !== "/" && (p = o === "/" ? l : Ge([l, o])), r.createHref({
|
|
943
954
|
pathname: p,
|
|
944
955
|
search: c,
|
|
945
|
-
hash:
|
|
956
|
+
hash: s
|
|
946
957
|
});
|
|
947
958
|
}
|
|
948
|
-
function
|
|
949
|
-
return N.useContext(
|
|
959
|
+
function He() {
|
|
960
|
+
return N.useContext(qe) != null;
|
|
950
961
|
}
|
|
951
962
|
function me() {
|
|
952
|
-
return
|
|
963
|
+
return He() || (process.env.NODE_ENV !== "production" ? L(
|
|
953
964
|
!1,
|
|
954
965
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
955
966
|
// router loaded. We can help them understand how to avoid that.
|
|
956
967
|
"useLocation() may be used only in the context of a <Router> component."
|
|
957
|
-
) :
|
|
968
|
+
) : L(!1)), N.useContext(qe).location;
|
|
958
969
|
}
|
|
959
|
-
const
|
|
960
|
-
function
|
|
970
|
+
const Tt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
971
|
+
function Ot(e) {
|
|
961
972
|
N.useContext(Q).static || N.useLayoutEffect(e);
|
|
962
973
|
}
|
|
963
|
-
function
|
|
974
|
+
function Dn() {
|
|
964
975
|
let {
|
|
965
976
|
isDataRoute: e
|
|
966
|
-
} = N.useContext(
|
|
967
|
-
return e ?
|
|
977
|
+
} = N.useContext(se);
|
|
978
|
+
return e ? An() : In();
|
|
968
979
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
980
|
+
function In() {
|
|
981
|
+
He() || (process.env.NODE_ENV !== "production" ? L(
|
|
971
982
|
!1,
|
|
972
983
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
973
984
|
// router loaded. We can help them understand how to avoid that.
|
|
974
985
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
975
|
-
) :
|
|
986
|
+
) : L(!1));
|
|
976
987
|
let e = N.useContext(Ce), {
|
|
977
988
|
basename: n,
|
|
978
989
|
future: a,
|
|
979
|
-
navigator:
|
|
990
|
+
navigator: l
|
|
980
991
|
} = N.useContext(Q), {
|
|
981
992
|
matches: r
|
|
982
|
-
} = N.useContext(
|
|
983
|
-
pathname:
|
|
984
|
-
} = me(),
|
|
985
|
-
return
|
|
993
|
+
} = N.useContext(se), {
|
|
994
|
+
pathname: s
|
|
995
|
+
} = me(), o = JSON.stringify(Ct(r, a.v7_relativeSplatPath)), c = N.useRef(!1);
|
|
996
|
+
return Ot(() => {
|
|
986
997
|
c.current = !0;
|
|
987
998
|
}), N.useCallback(function(u, d) {
|
|
988
|
-
if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ie(c.current,
|
|
999
|
+
if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ie(c.current, Tt), !c.current)
|
|
989
1000
|
return;
|
|
990
1001
|
if (typeof u == "number") {
|
|
991
|
-
|
|
1002
|
+
l.go(u);
|
|
992
1003
|
return;
|
|
993
1004
|
}
|
|
994
|
-
let k =
|
|
995
|
-
e == null && n !== "/" && (k.pathname = k.pathname === "/" ? n :
|
|
996
|
-
}, [n,
|
|
1005
|
+
let k = Rt(u, JSON.parse(o), s, d.relative === "path");
|
|
1006
|
+
e == null && n !== "/" && (k.pathname = k.pathname === "/" ? n : Ge([n, k.pathname])), (d.replace ? l.replace : l.push)(k, d.state, d);
|
|
1007
|
+
}, [n, l, o, s, e]);
|
|
997
1008
|
}
|
|
998
1009
|
function he(e, n) {
|
|
999
1010
|
let {
|
|
1000
1011
|
relative: a
|
|
1001
1012
|
} = n === void 0 ? {} : n, {
|
|
1002
|
-
future:
|
|
1013
|
+
future: l
|
|
1003
1014
|
} = N.useContext(Q), {
|
|
1004
1015
|
matches: r
|
|
1005
|
-
} = N.useContext(
|
|
1006
|
-
pathname:
|
|
1007
|
-
} = me(),
|
|
1008
|
-
return N.useMemo(() =>
|
|
1016
|
+
} = N.useContext(se), {
|
|
1017
|
+
pathname: s
|
|
1018
|
+
} = me(), o = JSON.stringify(Ct(r, l.v7_relativeSplatPath));
|
|
1019
|
+
return N.useMemo(() => Rt(e, JSON.parse(o), s, a === "path"), [e, o, s, a]);
|
|
1009
1020
|
}
|
|
1010
|
-
var
|
|
1021
|
+
var $t = /* @__PURE__ */ function(e) {
|
|
1011
1022
|
return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
|
|
1012
|
-
}(
|
|
1023
|
+
}($t || {}), Xe = /* @__PURE__ */ function(e) {
|
|
1013
1024
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
1014
|
-
}(
|
|
1015
|
-
function
|
|
1025
|
+
}(Xe || {});
|
|
1026
|
+
function jt(e) {
|
|
1016
1027
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1017
1028
|
}
|
|
1018
1029
|
function Ln(e) {
|
|
1019
1030
|
let n = N.useContext(Ce);
|
|
1020
|
-
return n || (process.env.NODE_ENV !== "production" ?
|
|
1031
|
+
return n || (process.env.NODE_ENV !== "production" ? L(!1, jt(e)) : L(!1)), n;
|
|
1021
1032
|
}
|
|
1022
|
-
function
|
|
1023
|
-
let n = N.useContext(
|
|
1024
|
-
return n || (process.env.NODE_ENV !== "production" ?
|
|
1033
|
+
function Fn(e) {
|
|
1034
|
+
let n = N.useContext(se);
|
|
1035
|
+
return n || (process.env.NODE_ENV !== "production" ? L(!1, jt(e)) : L(!1)), n;
|
|
1025
1036
|
}
|
|
1026
|
-
function
|
|
1027
|
-
let n =
|
|
1028
|
-
return a.route.id || (process.env.NODE_ENV !== "production" ?
|
|
1029
|
-
}
|
|
1030
|
-
function Fn() {
|
|
1031
|
-
return jt(He.UseRouteId);
|
|
1037
|
+
function Dt(e) {
|
|
1038
|
+
let n = Fn(e), a = n.matches[n.matches.length - 1];
|
|
1039
|
+
return a.route.id || (process.env.NODE_ENV !== "production" ? L(!1, e + ' can only be used on routes that contain a unique "id"') : L(!1)), a.route.id;
|
|
1032
1040
|
}
|
|
1033
1041
|
function Un() {
|
|
1042
|
+
return Dt(Xe.UseRouteId);
|
|
1043
|
+
}
|
|
1044
|
+
function An() {
|
|
1034
1045
|
let {
|
|
1035
1046
|
router: e
|
|
1036
|
-
} = Ln(
|
|
1037
|
-
return
|
|
1047
|
+
} = Ln($t.UseNavigateStable), n = Dt(Xe.UseNavigateStable), a = N.useRef(!1);
|
|
1048
|
+
return Ot(() => {
|
|
1038
1049
|
a.current = !0;
|
|
1039
|
-
}), N.useCallback(function(r,
|
|
1040
|
-
|
|
1050
|
+
}), N.useCallback(function(r, s) {
|
|
1051
|
+
s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && ie(a.current, Tt), a.current && (typeof r == "number" ? e.navigate(r) : e.navigate(r, Ye({
|
|
1041
1052
|
fromRouteId: n
|
|
1042
|
-
},
|
|
1053
|
+
}, s)));
|
|
1043
1054
|
}, [e, n]);
|
|
1044
1055
|
}
|
|
1045
1056
|
new Promise(() => {
|
|
@@ -1058,43 +1069,43 @@ function ae() {
|
|
|
1058
1069
|
return ae = Object.assign ? Object.assign.bind() : function(e) {
|
|
1059
1070
|
for (var n = 1; n < arguments.length; n++) {
|
|
1060
1071
|
var a = arguments[n];
|
|
1061
|
-
for (var
|
|
1062
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
1072
|
+
for (var l in a)
|
|
1073
|
+
Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
|
|
1063
1074
|
}
|
|
1064
1075
|
return e;
|
|
1065
1076
|
}, ae.apply(this, arguments);
|
|
1066
1077
|
}
|
|
1067
|
-
function
|
|
1078
|
+
function Ze(e, n) {
|
|
1068
1079
|
if (e == null)
|
|
1069
1080
|
return {};
|
|
1070
|
-
var a = {},
|
|
1071
|
-
for (
|
|
1072
|
-
r =
|
|
1081
|
+
var a = {}, l = Object.keys(e), r, s;
|
|
1082
|
+
for (s = 0; s < l.length; s++)
|
|
1083
|
+
r = l[s], !(n.indexOf(r) >= 0) && (a[r] = e[r]);
|
|
1073
1084
|
return a;
|
|
1074
1085
|
}
|
|
1075
1086
|
const ye = "get", we = "application/x-www-form-urlencoded";
|
|
1076
1087
|
function Re(e) {
|
|
1077
1088
|
return e != null && typeof e.tagName == "string";
|
|
1078
1089
|
}
|
|
1079
|
-
function
|
|
1090
|
+
function Vn(e) {
|
|
1080
1091
|
return Re(e) && e.tagName.toLowerCase() === "button";
|
|
1081
1092
|
}
|
|
1082
|
-
function
|
|
1093
|
+
function Wn(e) {
|
|
1083
1094
|
return Re(e) && e.tagName.toLowerCase() === "form";
|
|
1084
1095
|
}
|
|
1085
|
-
function
|
|
1096
|
+
function Bn(e) {
|
|
1086
1097
|
return Re(e) && e.tagName.toLowerCase() === "input";
|
|
1087
1098
|
}
|
|
1088
|
-
function
|
|
1099
|
+
function Mn(e) {
|
|
1089
1100
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1090
1101
|
}
|
|
1091
|
-
function
|
|
1102
|
+
function Yn(e, n) {
|
|
1092
1103
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1093
1104
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
1094
|
-
!
|
|
1105
|
+
!Mn(e);
|
|
1095
1106
|
}
|
|
1096
1107
|
let Ne = null;
|
|
1097
|
-
function
|
|
1108
|
+
function Kn() {
|
|
1098
1109
|
if (Ne === null)
|
|
1099
1110
|
try {
|
|
1100
1111
|
new FormData(
|
|
@@ -1107,21 +1118,21 @@ function Yn() {
|
|
|
1107
1118
|
}
|
|
1108
1119
|
return Ne;
|
|
1109
1120
|
}
|
|
1110
|
-
const
|
|
1111
|
-
function
|
|
1112
|
-
return e != null && !
|
|
1121
|
+
const Jn = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
1122
|
+
function Ve(e) {
|
|
1123
|
+
return e != null && !Jn.has(e) ? (process.env.NODE_ENV !== "production" && ie(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + we + '"')), null) : e;
|
|
1113
1124
|
}
|
|
1114
|
-
function
|
|
1115
|
-
let a,
|
|
1116
|
-
if (
|
|
1125
|
+
function zn(e, n) {
|
|
1126
|
+
let a, l, r, s, o;
|
|
1127
|
+
if (Wn(e)) {
|
|
1117
1128
|
let c = e.getAttribute("action");
|
|
1118
|
-
|
|
1119
|
-
} else if (
|
|
1129
|
+
l = c ? fe(c, n) : null, a = e.getAttribute("method") || ye, r = Ve(e.getAttribute("enctype")) || we, s = new FormData(e);
|
|
1130
|
+
} else if (Vn(e) || Bn(e) && (e.type === "submit" || e.type === "image")) {
|
|
1120
1131
|
let c = e.form;
|
|
1121
1132
|
if (c == null)
|
|
1122
1133
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
1123
1134
|
let p = e.getAttribute("formaction") || c.getAttribute("action");
|
|
1124
|
-
if (
|
|
1135
|
+
if (l = p ? fe(p, n) : null, a = e.getAttribute("formmethod") || c.getAttribute("method") || ye, r = Ve(e.getAttribute("formenctype")) || Ve(c.getAttribute("enctype")) || we, s = new FormData(c, e), !Kn()) {
|
|
1125
1136
|
let {
|
|
1126
1137
|
name: u,
|
|
1127
1138
|
type: d,
|
|
@@ -1129,55 +1140,55 @@ function Jn(e, n) {
|
|
|
1129
1140
|
} = e;
|
|
1130
1141
|
if (d === "image") {
|
|
1131
1142
|
let v = u ? u + "." : "";
|
|
1132
|
-
|
|
1143
|
+
s.append(v + "x", "0"), s.append(v + "y", "0");
|
|
1133
1144
|
} else
|
|
1134
|
-
u &&
|
|
1145
|
+
u && s.append(u, k);
|
|
1135
1146
|
}
|
|
1136
1147
|
} else {
|
|
1137
1148
|
if (Re(e))
|
|
1138
1149
|
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
1139
|
-
a = ye,
|
|
1150
|
+
a = ye, l = null, r = we, o = e;
|
|
1140
1151
|
}
|
|
1141
|
-
return
|
|
1142
|
-
action:
|
|
1152
|
+
return s && r === "text/plain" && (o = s, s = void 0), {
|
|
1153
|
+
action: l,
|
|
1143
1154
|
method: a.toLowerCase(),
|
|
1144
1155
|
encType: r,
|
|
1145
|
-
formData:
|
|
1146
|
-
body:
|
|
1156
|
+
formData: s,
|
|
1157
|
+
body: o
|
|
1147
1158
|
};
|
|
1148
1159
|
}
|
|
1149
|
-
const
|
|
1160
|
+
const Gn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], qn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], Hn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], It = /* @__PURE__ */ N.createContext({
|
|
1150
1161
|
isTransitioning: !1
|
|
1151
1162
|
});
|
|
1152
|
-
process.env.NODE_ENV !== "production" && (
|
|
1153
|
-
const
|
|
1154
|
-
process.env.NODE_ENV !== "production" && (
|
|
1163
|
+
process.env.NODE_ENV !== "production" && (It.displayName = "ViewTransition");
|
|
1164
|
+
const Xn = /* @__PURE__ */ N.createContext(/* @__PURE__ */ new Map());
|
|
1165
|
+
process.env.NODE_ENV !== "production" && (Xn.displayName = "Fetchers");
|
|
1155
1166
|
process.env.NODE_ENV;
|
|
1156
|
-
const
|
|
1167
|
+
const Zn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Qn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ee = /* @__PURE__ */ N.forwardRef(function(n, a) {
|
|
1157
1168
|
let {
|
|
1158
|
-
onClick:
|
|
1169
|
+
onClick: l,
|
|
1159
1170
|
relative: r,
|
|
1160
|
-
reloadDocument:
|
|
1161
|
-
replace:
|
|
1171
|
+
reloadDocument: s,
|
|
1172
|
+
replace: o,
|
|
1162
1173
|
state: c,
|
|
1163
1174
|
target: p,
|
|
1164
1175
|
to: u,
|
|
1165
1176
|
preventScrollReset: d,
|
|
1166
1177
|
unstable_viewTransition: k
|
|
1167
|
-
} = n, v =
|
|
1178
|
+
} = n, v = Ze(n, Gn), {
|
|
1168
1179
|
basename: R
|
|
1169
1180
|
} = N.useContext(Q), x, T = !1;
|
|
1170
|
-
if (typeof u == "string" &&
|
|
1181
|
+
if (typeof u == "string" && Qn.test(u) && (x = u, Zn))
|
|
1171
1182
|
try {
|
|
1172
1183
|
let _ = new URL(window.location.href), O = u.startsWith("//") ? new URL(_.protocol + u) : new URL(u), U = fe(O.pathname, R);
|
|
1173
1184
|
O.origin === _.origin && U != null ? u = U + O.search + O.hash : T = !0;
|
|
1174
1185
|
} catch {
|
|
1175
1186
|
process.env.NODE_ENV !== "production" && ie(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1176
1187
|
}
|
|
1177
|
-
let j =
|
|
1188
|
+
let j = jn(u, {
|
|
1178
1189
|
relative: r
|
|
1179
|
-
}), y =
|
|
1180
|
-
replace:
|
|
1190
|
+
}), y = rr(u, {
|
|
1191
|
+
replace: o,
|
|
1181
1192
|
state: c,
|
|
1182
1193
|
target: p,
|
|
1183
1194
|
preventScrollReset: d,
|
|
@@ -1185,44 +1196,44 @@ const Xn = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
1185
1196
|
unstable_viewTransition: k
|
|
1186
1197
|
});
|
|
1187
1198
|
function w(_) {
|
|
1188
|
-
|
|
1199
|
+
l && l(_), _.defaultPrevented || y(_);
|
|
1189
1200
|
}
|
|
1190
1201
|
return (
|
|
1191
1202
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1192
1203
|
/* @__PURE__ */ N.createElement("a", ae({}, v, {
|
|
1193
1204
|
href: x || j,
|
|
1194
|
-
onClick: T ||
|
|
1205
|
+
onClick: T || s ? l : w,
|
|
1195
1206
|
ref: a,
|
|
1196
1207
|
target: p
|
|
1197
1208
|
}))
|
|
1198
1209
|
);
|
|
1199
1210
|
});
|
|
1200
1211
|
process.env.NODE_ENV !== "production" && (Ee.displayName = "Link");
|
|
1201
|
-
const
|
|
1212
|
+
const er = /* @__PURE__ */ N.forwardRef(function(n, a) {
|
|
1202
1213
|
let {
|
|
1203
|
-
"aria-current":
|
|
1214
|
+
"aria-current": l = "page",
|
|
1204
1215
|
caseSensitive: r = !1,
|
|
1205
|
-
className:
|
|
1206
|
-
end:
|
|
1216
|
+
className: s = "",
|
|
1217
|
+
end: o = !1,
|
|
1207
1218
|
style: c,
|
|
1208
1219
|
to: p,
|
|
1209
1220
|
unstable_viewTransition: u,
|
|
1210
1221
|
children: d
|
|
1211
|
-
} = n, k =
|
|
1222
|
+
} = n, k = Ze(n, qn), v = he(p, {
|
|
1212
1223
|
relative: k.relative
|
|
1213
1224
|
}), R = me(), x = N.useContext(Pt), {
|
|
1214
1225
|
navigator: T
|
|
1215
1226
|
} = N.useContext(Q), j = x != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1216
1227
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1217
|
-
|
|
1228
|
+
cr(v) && u === !0, y = T.encodeLocation ? T.encodeLocation(v).pathname : v.pathname, w = R.pathname, _ = x && x.navigation && x.navigation.location ? x.navigation.location.pathname : null;
|
|
1218
1229
|
r || (w = w.toLowerCase(), _ = _ ? _.toLowerCase() : null, y = y.toLowerCase());
|
|
1219
1230
|
const O = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
|
|
1220
|
-
let U = w === y || !
|
|
1231
|
+
let U = w === y || !o && w.startsWith(y) && w.charAt(O) === "/", A = _ != null && (_ === y || !o && _.startsWith(y) && _.charAt(y.length) === "/"), V = {
|
|
1221
1232
|
isActive: U,
|
|
1222
1233
|
isPending: A,
|
|
1223
1234
|
isTransitioning: j
|
|
1224
|
-
}, K = U ?
|
|
1225
|
-
typeof
|
|
1235
|
+
}, K = U ? l : void 0, W;
|
|
1236
|
+
typeof s == "function" ? W = s(V) : W = [s, U ? "active" : null, A ? "pending" : null, j ? "transitioning" : null].filter(Boolean).join(" ");
|
|
1226
1237
|
let G = typeof c == "function" ? c(V) : c;
|
|
1227
1238
|
return /* @__PURE__ */ N.createElement(Ee, ae({}, k, {
|
|
1228
1239
|
"aria-current": K,
|
|
@@ -1233,21 +1244,21 @@ const Qn = /* @__PURE__ */ N.forwardRef(function(n, a) {
|
|
|
1233
1244
|
unstable_viewTransition: u
|
|
1234
1245
|
}), typeof d == "function" ? d(V) : d);
|
|
1235
1246
|
});
|
|
1236
|
-
process.env.NODE_ENV !== "production" && (
|
|
1237
|
-
const
|
|
1247
|
+
process.env.NODE_ENV !== "production" && (er.displayName = "NavLink");
|
|
1248
|
+
const tr = /* @__PURE__ */ N.forwardRef((e, n) => {
|
|
1238
1249
|
let {
|
|
1239
1250
|
fetcherKey: a,
|
|
1240
|
-
navigate:
|
|
1251
|
+
navigate: l,
|
|
1241
1252
|
reloadDocument: r,
|
|
1242
|
-
replace:
|
|
1243
|
-
state:
|
|
1253
|
+
replace: s,
|
|
1254
|
+
state: o,
|
|
1244
1255
|
method: c = ye,
|
|
1245
1256
|
action: p,
|
|
1246
1257
|
onSubmit: u,
|
|
1247
1258
|
relative: d,
|
|
1248
1259
|
preventScrollReset: k,
|
|
1249
1260
|
unstable_viewTransition: v
|
|
1250
|
-
} = e, R =
|
|
1261
|
+
} = e, R = Ze(e, Hn), x = sr(), T = or(p, {
|
|
1251
1262
|
relative: d
|
|
1252
1263
|
}), j = c.toLowerCase() === "get" ? "get" : "post", y = (w) => {
|
|
1253
1264
|
if (u && u(w), w.defaultPrevented)
|
|
@@ -1257,9 +1268,9 @@ const er = /* @__PURE__ */ N.forwardRef((e, n) => {
|
|
|
1257
1268
|
x(_ || w.currentTarget, {
|
|
1258
1269
|
fetcherKey: a,
|
|
1259
1270
|
method: O,
|
|
1260
|
-
navigate:
|
|
1261
|
-
replace:
|
|
1262
|
-
state:
|
|
1271
|
+
navigate: l,
|
|
1272
|
+
replace: s,
|
|
1273
|
+
state: o,
|
|
1263
1274
|
relative: d,
|
|
1264
1275
|
preventScrollReset: k,
|
|
1265
1276
|
unstable_viewTransition: v
|
|
@@ -1272,84 +1283,84 @@ const er = /* @__PURE__ */ N.forwardRef((e, n) => {
|
|
|
1272
1283
|
onSubmit: r ? u : y
|
|
1273
1284
|
}, R));
|
|
1274
1285
|
});
|
|
1275
|
-
process.env.NODE_ENV !== "production" && (
|
|
1286
|
+
process.env.NODE_ENV !== "production" && (tr.displayName = "Form");
|
|
1276
1287
|
process.env.NODE_ENV;
|
|
1277
1288
|
var xe;
|
|
1278
1289
|
(function(e) {
|
|
1279
1290
|
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
1280
1291
|
})(xe || (xe = {}));
|
|
1281
|
-
var
|
|
1292
|
+
var wt;
|
|
1282
1293
|
(function(e) {
|
|
1283
1294
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1284
|
-
})(
|
|
1285
|
-
function
|
|
1295
|
+
})(wt || (wt = {}));
|
|
1296
|
+
function nr(e) {
|
|
1286
1297
|
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1287
1298
|
}
|
|
1288
1299
|
function Lt(e) {
|
|
1289
1300
|
let n = N.useContext(Ce);
|
|
1290
|
-
return n || (process.env.NODE_ENV !== "production" ?
|
|
1301
|
+
return n || (process.env.NODE_ENV !== "production" ? L(!1, nr(e)) : L(!1)), n;
|
|
1291
1302
|
}
|
|
1292
|
-
function
|
|
1303
|
+
function rr(e, n) {
|
|
1293
1304
|
let {
|
|
1294
1305
|
target: a,
|
|
1295
|
-
replace:
|
|
1306
|
+
replace: l,
|
|
1296
1307
|
state: r,
|
|
1297
|
-
preventScrollReset:
|
|
1298
|
-
relative:
|
|
1308
|
+
preventScrollReset: s,
|
|
1309
|
+
relative: o,
|
|
1299
1310
|
unstable_viewTransition: c
|
|
1300
|
-
} = n === void 0 ? {} : n, p =
|
|
1301
|
-
relative:
|
|
1311
|
+
} = n === void 0 ? {} : n, p = Dn(), u = me(), d = he(e, {
|
|
1312
|
+
relative: o
|
|
1302
1313
|
});
|
|
1303
1314
|
return N.useCallback((k) => {
|
|
1304
|
-
if (
|
|
1315
|
+
if (Yn(k, a)) {
|
|
1305
1316
|
k.preventDefault();
|
|
1306
|
-
let v =
|
|
1317
|
+
let v = l !== void 0 ? l : Me(u) === Me(d);
|
|
1307
1318
|
p(e, {
|
|
1308
1319
|
replace: v,
|
|
1309
1320
|
state: r,
|
|
1310
|
-
preventScrollReset:
|
|
1311
|
-
relative:
|
|
1321
|
+
preventScrollReset: s,
|
|
1322
|
+
relative: o,
|
|
1312
1323
|
unstable_viewTransition: c
|
|
1313
1324
|
});
|
|
1314
1325
|
}
|
|
1315
|
-
}, [u, p, d,
|
|
1326
|
+
}, [u, p, d, l, r, a, e, s, o, c]);
|
|
1316
1327
|
}
|
|
1317
|
-
function
|
|
1328
|
+
function ar() {
|
|
1318
1329
|
if (typeof document > "u")
|
|
1319
1330
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1320
1331
|
}
|
|
1321
|
-
let
|
|
1322
|
-
function
|
|
1332
|
+
let lr = 0, ir = () => "__" + String(++lr) + "__";
|
|
1333
|
+
function sr() {
|
|
1323
1334
|
let {
|
|
1324
1335
|
router: e
|
|
1325
1336
|
} = Lt(xe.UseSubmit), {
|
|
1326
1337
|
basename: n
|
|
1327
|
-
} = N.useContext(Q), a =
|
|
1328
|
-
return N.useCallback(function(
|
|
1329
|
-
r === void 0 && (r = {}),
|
|
1338
|
+
} = N.useContext(Q), a = Un();
|
|
1339
|
+
return N.useCallback(function(l, r) {
|
|
1340
|
+
r === void 0 && (r = {}), ar();
|
|
1330
1341
|
let {
|
|
1331
|
-
action:
|
|
1332
|
-
method:
|
|
1342
|
+
action: s,
|
|
1343
|
+
method: o,
|
|
1333
1344
|
encType: c,
|
|
1334
1345
|
formData: p,
|
|
1335
1346
|
body: u
|
|
1336
|
-
} =
|
|
1347
|
+
} = zn(l, n);
|
|
1337
1348
|
if (r.navigate === !1) {
|
|
1338
|
-
let d = r.fetcherKey ||
|
|
1339
|
-
e.fetch(d, a, r.action ||
|
|
1349
|
+
let d = r.fetcherKey || ir();
|
|
1350
|
+
e.fetch(d, a, r.action || s, {
|
|
1340
1351
|
preventScrollReset: r.preventScrollReset,
|
|
1341
1352
|
formData: p,
|
|
1342
1353
|
body: u,
|
|
1343
|
-
formMethod: r.method ||
|
|
1354
|
+
formMethod: r.method || o,
|
|
1344
1355
|
formEncType: r.encType || c,
|
|
1345
1356
|
unstable_flushSync: r.unstable_flushSync
|
|
1346
1357
|
});
|
|
1347
1358
|
} else
|
|
1348
|
-
e.navigate(r.action ||
|
|
1359
|
+
e.navigate(r.action || s, {
|
|
1349
1360
|
preventScrollReset: r.preventScrollReset,
|
|
1350
1361
|
formData: p,
|
|
1351
1362
|
body: u,
|
|
1352
|
-
formMethod: r.method ||
|
|
1363
|
+
formMethod: r.method || o,
|
|
1353
1364
|
formEncType: r.encType || c,
|
|
1354
1365
|
replace: r.replace,
|
|
1355
1366
|
state: r.state,
|
|
@@ -1363,59 +1374,59 @@ function or(e, n) {
|
|
|
1363
1374
|
let {
|
|
1364
1375
|
relative: a
|
|
1365
1376
|
} = n === void 0 ? {} : n, {
|
|
1366
|
-
basename:
|
|
1367
|
-
} = N.useContext(Q), r = N.useContext(
|
|
1368
|
-
r || (process.env.NODE_ENV !== "production" ?
|
|
1369
|
-
let [
|
|
1377
|
+
basename: l
|
|
1378
|
+
} = N.useContext(Q), r = N.useContext(se);
|
|
1379
|
+
r || (process.env.NODE_ENV !== "production" ? L(!1, "useFormAction must be used inside a RouteContext") : L(!1));
|
|
1380
|
+
let [s] = r.matches.slice(-1), o = ae({}, he(e || ".", {
|
|
1370
1381
|
relative: a
|
|
1371
1382
|
})), c = me();
|
|
1372
1383
|
if (e == null) {
|
|
1373
|
-
|
|
1374
|
-
let p = new URLSearchParams(
|
|
1375
|
-
p.has("index") && p.get("index") === "" && (p.delete("index"),
|
|
1384
|
+
o.search = c.search;
|
|
1385
|
+
let p = new URLSearchParams(o.search);
|
|
1386
|
+
p.has("index") && p.get("index") === "" && (p.delete("index"), o.search = p.toString() ? "?" + p.toString() : "");
|
|
1376
1387
|
}
|
|
1377
|
-
return (!e || e === ".") &&
|
|
1388
|
+
return (!e || e === ".") && s.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (o.pathname = o.pathname === "/" ? l : Ge([l, o.pathname])), Me(o);
|
|
1378
1389
|
}
|
|
1379
|
-
function
|
|
1390
|
+
function cr(e, n) {
|
|
1380
1391
|
n === void 0 && (n = {});
|
|
1381
|
-
let a = N.useContext(
|
|
1382
|
-
a == null && (process.env.NODE_ENV !== "production" ?
|
|
1392
|
+
let a = N.useContext(It);
|
|
1393
|
+
a == null && (process.env.NODE_ENV !== "production" ? L(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : L(!1));
|
|
1383
1394
|
let {
|
|
1384
|
-
basename:
|
|
1395
|
+
basename: l
|
|
1385
1396
|
} = Lt(xe.useViewTransitionState), r = he(e, {
|
|
1386
1397
|
relative: n.relative
|
|
1387
1398
|
});
|
|
1388
1399
|
if (!a.isTransitioning)
|
|
1389
1400
|
return !1;
|
|
1390
|
-
let
|
|
1391
|
-
return
|
|
1401
|
+
let s = fe(a.currentLocation.pathname, l) || a.currentLocation.pathname, o = fe(a.nextLocation.pathname, l) || a.nextLocation.pathname;
|
|
1402
|
+
return yt(r.pathname, o) != null || yt(r.pathname, s) != null;
|
|
1392
1403
|
}
|
|
1393
|
-
const
|
|
1394
|
-
({ breadcrumbs: e, navigationType: n, className: a, ...
|
|
1395
|
-
const
|
|
1404
|
+
const br = B(
|
|
1405
|
+
({ breadcrumbs: e, navigationType: n, className: a, ...l }, r) => {
|
|
1406
|
+
const s = e.slice(0, 4), o = s[s.length - 2], c = [
|
|
1396
1407
|
a,
|
|
1397
1408
|
"pkt-breadcrumbs"
|
|
1398
1409
|
].filter(Boolean).join(" ");
|
|
1399
1410
|
return /* @__PURE__ */ h("nav", { ref: r, "aria-label": "brødsmulemeny", className: c, children: [
|
|
1400
|
-
/* @__PURE__ */
|
|
1411
|
+
/* @__PURE__ */ i("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((p, u) => /* @__PURE__ */ i(
|
|
1401
1412
|
"li",
|
|
1402
1413
|
{
|
|
1403
1414
|
className: "pkt-breadcrumbs__item",
|
|
1404
|
-
children: u ===
|
|
1415
|
+
children: u === s.length - 1 ? /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : n === "router" ? /* @__PURE__ */ h(
|
|
1405
1416
|
Ee,
|
|
1406
1417
|
{
|
|
1407
1418
|
to: p.href,
|
|
1408
1419
|
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
1409
|
-
...
|
|
1420
|
+
...l,
|
|
1410
1421
|
children: [
|
|
1411
|
-
/* @__PURE__ */
|
|
1422
|
+
/* @__PURE__ */ i(
|
|
1412
1423
|
E,
|
|
1413
1424
|
{
|
|
1414
1425
|
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
1415
1426
|
name: "chevron-thin-right"
|
|
1416
1427
|
}
|
|
1417
1428
|
),
|
|
1418
|
-
/* @__PURE__ */
|
|
1429
|
+
/* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
|
|
1419
1430
|
]
|
|
1420
1431
|
}
|
|
1421
1432
|
) : /* @__PURE__ */ h(
|
|
@@ -1423,16 +1434,16 @@ const _r = B(
|
|
|
1423
1434
|
{
|
|
1424
1435
|
href: p.href,
|
|
1425
1436
|
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
1426
|
-
...
|
|
1437
|
+
...l,
|
|
1427
1438
|
children: [
|
|
1428
|
-
/* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ i(
|
|
1429
1440
|
E,
|
|
1430
1441
|
{
|
|
1431
1442
|
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
1432
1443
|
name: "chevron-thin-right"
|
|
1433
1444
|
}
|
|
1434
1445
|
),
|
|
1435
|
-
/* @__PURE__ */
|
|
1446
|
+
/* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
|
|
1436
1447
|
]
|
|
1437
1448
|
}
|
|
1438
1449
|
)
|
|
@@ -1442,35 +1453,35 @@ const _r = B(
|
|
|
1442
1453
|
n === "router" ? /* @__PURE__ */ h(
|
|
1443
1454
|
Ee,
|
|
1444
1455
|
{
|
|
1445
|
-
to:
|
|
1456
|
+
to: o.href,
|
|
1446
1457
|
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
1447
|
-
...
|
|
1458
|
+
...l,
|
|
1448
1459
|
children: [
|
|
1449
|
-
/* @__PURE__ */
|
|
1460
|
+
/* @__PURE__ */ i(
|
|
1450
1461
|
E,
|
|
1451
1462
|
{
|
|
1452
1463
|
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
1453
1464
|
name: "chevron-thin-left"
|
|
1454
1465
|
}
|
|
1455
1466
|
),
|
|
1456
|
-
/* @__PURE__ */
|
|
1467
|
+
/* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: o.text })
|
|
1457
1468
|
]
|
|
1458
1469
|
}
|
|
1459
1470
|
) : /* @__PURE__ */ h(
|
|
1460
1471
|
"a",
|
|
1461
1472
|
{
|
|
1462
|
-
href:
|
|
1473
|
+
href: o.href,
|
|
1463
1474
|
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
1464
|
-
...
|
|
1475
|
+
...l,
|
|
1465
1476
|
children: [
|
|
1466
|
-
/* @__PURE__ */
|
|
1477
|
+
/* @__PURE__ */ i(
|
|
1467
1478
|
E,
|
|
1468
1479
|
{
|
|
1469
1480
|
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
1470
1481
|
name: "chevron-thin-left"
|
|
1471
1482
|
}
|
|
1472
1483
|
),
|
|
1473
|
-
/* @__PURE__ */
|
|
1484
|
+
/* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: o.text })
|
|
1474
1485
|
]
|
|
1475
1486
|
}
|
|
1476
1487
|
)
|
|
@@ -1481,10 +1492,10 @@ const _r = B(
|
|
|
1481
1492
|
children: e,
|
|
1482
1493
|
className: n,
|
|
1483
1494
|
iconName: a = "user",
|
|
1484
|
-
secondIconName:
|
|
1495
|
+
secondIconName: l = "user",
|
|
1485
1496
|
size: r = "medium",
|
|
1486
|
-
skin:
|
|
1487
|
-
type:
|
|
1497
|
+
skin: s = "primary",
|
|
1498
|
+
type: o = "button",
|
|
1488
1499
|
variant: c = "label-only",
|
|
1489
1500
|
color: p,
|
|
1490
1501
|
isLoading: u = !1,
|
|
@@ -1494,59 +1505,59 @@ const _r = B(
|
|
|
1494
1505
|
n,
|
|
1495
1506
|
"pkt-btn",
|
|
1496
1507
|
r && `pkt-btn--${r}`,
|
|
1497
|
-
|
|
1508
|
+
s && `pkt-btn--${s}`,
|
|
1498
1509
|
c && `pkt-btn--${c}`,
|
|
1499
1510
|
p && `pkt-btn--${p}`,
|
|
1500
1511
|
u && "pkt-btn--active"
|
|
1501
1512
|
].filter(Boolean).join(" ");
|
|
1502
|
-
return /* @__PURE__ */ h("button", { ...d, className: v, type:
|
|
1503
|
-
u && /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ h("button", { ...d, className: v, type: o, ref: k, children: [
|
|
1514
|
+
u && /* @__PURE__ */ i(
|
|
1504
1515
|
E,
|
|
1505
1516
|
{
|
|
1506
1517
|
className: "pkt-btn__icon",
|
|
1507
1518
|
name: "spinner-blue",
|
|
1508
|
-
path: "https://punkt-cdn.oslo.kommune.no/11.
|
|
1519
|
+
path: "https://punkt-cdn.oslo.kommune.no/11.8/animations/"
|
|
1509
1520
|
}
|
|
1510
1521
|
),
|
|
1511
|
-
c !== "label-only" && /* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
c === "icons-right-and-left" && /* @__PURE__ */
|
|
1522
|
+
c !== "label-only" && /* @__PURE__ */ i(E, { className: "pkt-btn__icon", name: a }),
|
|
1523
|
+
/* @__PURE__ */ i("span", { className: "pkt-btn__text", children: e }),
|
|
1524
|
+
c === "icons-right-and-left" && /* @__PURE__ */ i(E, { className: "pkt-btn__icon", name: l })
|
|
1514
1525
|
] });
|
|
1515
1526
|
}
|
|
1516
1527
|
);
|
|
1517
1528
|
de.displayName = "PktButton";
|
|
1518
|
-
const
|
|
1529
|
+
const ur = B(
|
|
1519
1530
|
({
|
|
1520
1531
|
id: e,
|
|
1521
1532
|
hasTile: n = !1,
|
|
1522
1533
|
disabled: a = !1,
|
|
1523
|
-
label:
|
|
1534
|
+
label: l,
|
|
1524
1535
|
labelPosition: r = "right",
|
|
1525
|
-
hideLabel:
|
|
1526
|
-
checkHelptext:
|
|
1536
|
+
hideLabel: s = !1,
|
|
1537
|
+
checkHelptext: o,
|
|
1527
1538
|
hasError: c = !1,
|
|
1528
1539
|
isSwitch: p = !1,
|
|
1529
1540
|
className: u,
|
|
1530
1541
|
...d
|
|
1531
1542
|
}, k) => {
|
|
1532
1543
|
const v = [u, "pkt-input-check"].filter(Boolean).join(" ");
|
|
1533
|
-
return /* @__PURE__ */
|
|
1544
|
+
return /* @__PURE__ */ i("div", { className: v, children: /* @__PURE__ */ h(
|
|
1534
1545
|
"div",
|
|
1535
1546
|
{
|
|
1536
1547
|
className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${a && n ? "pkt-input-check__input--tile-disabled" : ""}`,
|
|
1537
1548
|
children: [
|
|
1538
|
-
|
|
1549
|
+
l && r === "left" && /* @__PURE__ */ h(
|
|
1539
1550
|
"label",
|
|
1540
1551
|
{
|
|
1541
|
-
className: `pkt-input-check__input-label ${
|
|
1552
|
+
className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
|
|
1542
1553
|
htmlFor: e,
|
|
1543
1554
|
children: [
|
|
1544
|
-
|
|
1545
|
-
|
|
1555
|
+
l,
|
|
1556
|
+
o && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: o })
|
|
1546
1557
|
]
|
|
1547
1558
|
}
|
|
1548
1559
|
),
|
|
1549
|
-
/* @__PURE__ */
|
|
1560
|
+
/* @__PURE__ */ i(
|
|
1550
1561
|
"input",
|
|
1551
1562
|
{
|
|
1552
1563
|
ref: k,
|
|
@@ -1558,14 +1569,14 @@ const cr = B(
|
|
|
1558
1569
|
...d
|
|
1559
1570
|
}
|
|
1560
1571
|
),
|
|
1561
|
-
|
|
1572
|
+
l && r === "right" && /* @__PURE__ */ h(
|
|
1562
1573
|
"label",
|
|
1563
1574
|
{
|
|
1564
|
-
className: `pkt-input-check__input-label ${
|
|
1575
|
+
className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
|
|
1565
1576
|
htmlFor: e,
|
|
1566
1577
|
children: [
|
|
1567
|
-
|
|
1568
|
-
|
|
1578
|
+
l,
|
|
1579
|
+
o && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: o })
|
|
1569
1580
|
]
|
|
1570
1581
|
}
|
|
1571
1582
|
)
|
|
@@ -1574,24 +1585,24 @@ const cr = B(
|
|
|
1574
1585
|
) });
|
|
1575
1586
|
}
|
|
1576
1587
|
);
|
|
1577
|
-
|
|
1578
|
-
const
|
|
1588
|
+
ur.displayName = "PktCheckbox";
|
|
1589
|
+
const gr = ({
|
|
1579
1590
|
columnOne: e,
|
|
1580
1591
|
columnTwo: n,
|
|
1581
1592
|
socialLinks: a,
|
|
1582
|
-
className:
|
|
1593
|
+
className: l,
|
|
1583
1594
|
personvernOgInfoLink: r = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
1584
|
-
tilgjengelighetLink:
|
|
1595
|
+
tilgjengelighetLink: s = "https://www.oslo.kommune.no/tilgjengelighet/"
|
|
1585
1596
|
}) => {
|
|
1586
1597
|
var c, p;
|
|
1587
|
-
const
|
|
1588
|
-
return /* @__PURE__ */
|
|
1598
|
+
const o = [l, "pkt-footer"].filter(Boolean).join(" ");
|
|
1599
|
+
return /* @__PURE__ */ i("footer", { className: o, "data-mode": "dark", children: /* @__PURE__ */ h("div", { className: "pkt-footer__container", children: [
|
|
1589
1600
|
/* @__PURE__ */ h("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
1590
1601
|
/* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1591
|
-
/* @__PURE__ */
|
|
1602
|
+
/* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: e.title }),
|
|
1592
1603
|
/* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
|
|
1593
|
-
e.text && /* @__PURE__ */
|
|
1594
|
-
(c = e.links) == null ? void 0 : c.map((u, d) => /* @__PURE__ */
|
|
1604
|
+
e.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: e.text }),
|
|
1605
|
+
(c = e.links) == null ? void 0 : c.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
|
|
1595
1606
|
"a",
|
|
1596
1607
|
{
|
|
1597
1608
|
className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
|
|
@@ -1599,7 +1610,7 @@ const br = ({
|
|
|
1599
1610
|
target: u.openInNewTab ? "_blank" : "_self",
|
|
1600
1611
|
rel: u.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1601
1612
|
children: [
|
|
1602
|
-
/* @__PURE__ */
|
|
1613
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1603
1614
|
u.text
|
|
1604
1615
|
]
|
|
1605
1616
|
}
|
|
@@ -1607,10 +1618,10 @@ const br = ({
|
|
|
1607
1618
|
] })
|
|
1608
1619
|
] }),
|
|
1609
1620
|
/* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1610
|
-
/* @__PURE__ */
|
|
1621
|
+
/* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: n.title }),
|
|
1611
1622
|
/* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
|
|
1612
|
-
n.text && /* @__PURE__ */
|
|
1613
|
-
(p = n.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */
|
|
1623
|
+
n.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: n.text }),
|
|
1624
|
+
(p = n.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
|
|
1614
1625
|
"a",
|
|
1615
1626
|
{
|
|
1616
1627
|
className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
|
|
@@ -1618,7 +1629,7 @@ const br = ({
|
|
|
1618
1629
|
target: u.openInNewTab ? "_blank" : "_self",
|
|
1619
1630
|
rel: u.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1620
1631
|
children: [
|
|
1621
|
-
/* @__PURE__ */
|
|
1632
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1622
1633
|
u.text
|
|
1623
1634
|
]
|
|
1624
1635
|
}
|
|
@@ -1626,32 +1637,32 @@ const br = ({
|
|
|
1626
1637
|
] })
|
|
1627
1638
|
] }),
|
|
1628
1639
|
/* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1629
|
-
/* @__PURE__ */
|
|
1640
|
+
/* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
1630
1641
|
/* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
|
|
1631
|
-
/* @__PURE__ */
|
|
1642
|
+
/* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
|
|
1632
1643
|
"a",
|
|
1633
1644
|
{
|
|
1634
1645
|
className: "pkt-footer__link",
|
|
1635
1646
|
href: r,
|
|
1636
1647
|
children: [
|
|
1637
|
-
/* @__PURE__ */
|
|
1648
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1638
1649
|
"Personvern og informasjonskapsler"
|
|
1639
1650
|
]
|
|
1640
1651
|
}
|
|
1641
1652
|
) }),
|
|
1642
|
-
/* @__PURE__ */
|
|
1643
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer__link", href: s, children: [
|
|
1654
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1644
1655
|
"Tilgjengelighet"
|
|
1645
1656
|
] }) })
|
|
1646
1657
|
] })
|
|
1647
1658
|
] })
|
|
1648
1659
|
] }),
|
|
1649
1660
|
a && /* @__PURE__ */ h("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
1650
|
-
/* @__PURE__ */
|
|
1661
|
+
/* @__PURE__ */ i("div", { className: "pkt-footer__social-languages", children: a.filter((u) => u.language).map((u, d) => /* @__PURE__ */ i(
|
|
1651
1662
|
"div",
|
|
1652
1663
|
{
|
|
1653
1664
|
className: "pkt-footer__social-language",
|
|
1654
|
-
children: /* @__PURE__ */
|
|
1665
|
+
children: /* @__PURE__ */ i(
|
|
1655
1666
|
"a",
|
|
1656
1667
|
{
|
|
1657
1668
|
href: u.href,
|
|
@@ -1664,7 +1675,7 @@ const br = ({
|
|
|
1664
1675
|
},
|
|
1665
1676
|
`sociallinks-language-${d}`
|
|
1666
1677
|
)) }),
|
|
1667
|
-
/* @__PURE__ */
|
|
1678
|
+
/* @__PURE__ */ i("div", { className: "pkt-footer__social-icons", children: a.filter((u) => u.iconName).map((u, d) => /* @__PURE__ */ i(H.Fragment, { children: /* @__PURE__ */ i(
|
|
1668
1679
|
"a",
|
|
1669
1680
|
{
|
|
1670
1681
|
href: u.href,
|
|
@@ -1672,49 +1683,49 @@ const br = ({
|
|
|
1672
1683
|
className: "pkt-footer__social-icon-link",
|
|
1673
1684
|
target: u.openInNewTab ? "_blank" : "_self",
|
|
1674
1685
|
rel: u.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1675
|
-
children: /* @__PURE__ */
|
|
1686
|
+
children: /* @__PURE__ */ i(E, { className: "pkt-footer__social-icon", name: u.iconName })
|
|
1676
1687
|
}
|
|
1677
1688
|
) }, `sociallinks-${d}`)) })
|
|
1678
1689
|
] })
|
|
1679
1690
|
] }) });
|
|
1680
|
-
},
|
|
1691
|
+
}, Nr = ({
|
|
1681
1692
|
links: e = [],
|
|
1682
1693
|
personvernOgInfoLink: n = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
1683
1694
|
tilgjengelighetLink: a = "https://www.oslo.kommune.no/tilgjengelighet/",
|
|
1684
|
-
className:
|
|
1695
|
+
className: l
|
|
1685
1696
|
}) => {
|
|
1686
|
-
const r = [
|
|
1687
|
-
return /* @__PURE__ */
|
|
1688
|
-
e.map((
|
|
1697
|
+
const r = [l, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
1698
|
+
return /* @__PURE__ */ i("footer", { className: r, "data-mode": "dark", children: /* @__PURE__ */ i("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ h("ul", { className: "pkt-footer-simple__list", children: [
|
|
1699
|
+
e.map((s, o) => /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h(
|
|
1689
1700
|
"a",
|
|
1690
1701
|
{
|
|
1691
|
-
className: `pkt-footer-simple__link ${
|
|
1692
|
-
href:
|
|
1693
|
-
target:
|
|
1694
|
-
rel:
|
|
1702
|
+
className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
|
|
1703
|
+
href: s.href,
|
|
1704
|
+
target: s.openInNewTab ? "_blank" : "_self",
|
|
1705
|
+
rel: s.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1695
1706
|
children: [
|
|
1696
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ i(
|
|
1697
1708
|
E,
|
|
1698
1709
|
{
|
|
1699
1710
|
className: "pkt-footer-simple__link-icon",
|
|
1700
1711
|
name: "chevron-right"
|
|
1701
1712
|
}
|
|
1702
1713
|
),
|
|
1703
|
-
|
|
1714
|
+
s.text
|
|
1704
1715
|
]
|
|
1705
1716
|
}
|
|
1706
|
-
) },
|
|
1707
|
-
/* @__PURE__ */
|
|
1708
|
-
/* @__PURE__ */
|
|
1717
|
+
) }, o)),
|
|
1718
|
+
/* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: n, children: [
|
|
1719
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
1709
1720
|
"Personvern og informasjonskapsler"
|
|
1710
1721
|
] }) }),
|
|
1711
|
-
/* @__PURE__ */
|
|
1712
|
-
/* @__PURE__ */
|
|
1722
|
+
/* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: a, children: [
|
|
1723
|
+
/* @__PURE__ */ i(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
1713
1724
|
"Tilgjengelighet"
|
|
1714
1725
|
] }) })
|
|
1715
1726
|
] }) }) });
|
|
1716
1727
|
};
|
|
1717
|
-
var
|
|
1728
|
+
var Ft = { exports: {} };
|
|
1718
1729
|
/*!
|
|
1719
1730
|
Copyright (c) 2018 Jed Watson.
|
|
1720
1731
|
Licensed under the MIT License (MIT), see
|
|
@@ -1724,42 +1735,42 @@ var It = { exports: {} };
|
|
|
1724
1735
|
(function() {
|
|
1725
1736
|
var n = {}.hasOwnProperty;
|
|
1726
1737
|
function a() {
|
|
1727
|
-
for (var
|
|
1728
|
-
var
|
|
1729
|
-
if (
|
|
1730
|
-
var
|
|
1731
|
-
if (
|
|
1732
|
-
|
|
1733
|
-
else if (Array.isArray(
|
|
1734
|
-
if (
|
|
1735
|
-
var c = a.apply(null,
|
|
1736
|
-
c &&
|
|
1738
|
+
for (var l = [], r = 0; r < arguments.length; r++) {
|
|
1739
|
+
var s = arguments[r];
|
|
1740
|
+
if (s) {
|
|
1741
|
+
var o = typeof s;
|
|
1742
|
+
if (o === "string" || o === "number")
|
|
1743
|
+
l.push(s);
|
|
1744
|
+
else if (Array.isArray(s)) {
|
|
1745
|
+
if (s.length) {
|
|
1746
|
+
var c = a.apply(null, s);
|
|
1747
|
+
c && l.push(c);
|
|
1737
1748
|
}
|
|
1738
|
-
} else if (
|
|
1739
|
-
if (
|
|
1740
|
-
|
|
1749
|
+
} else if (o === "object") {
|
|
1750
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]")) {
|
|
1751
|
+
l.push(s.toString());
|
|
1741
1752
|
continue;
|
|
1742
1753
|
}
|
|
1743
|
-
for (var p in
|
|
1744
|
-
n.call(
|
|
1754
|
+
for (var p in s)
|
|
1755
|
+
n.call(s, p) && s[p] && l.push(p);
|
|
1745
1756
|
}
|
|
1746
1757
|
}
|
|
1747
1758
|
}
|
|
1748
|
-
return
|
|
1759
|
+
return l.join(" ");
|
|
1749
1760
|
}
|
|
1750
1761
|
e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
|
|
1751
1762
|
})();
|
|
1752
|
-
})(
|
|
1753
|
-
var
|
|
1754
|
-
const
|
|
1763
|
+
})(Ft);
|
|
1764
|
+
var pr = Ft.exports;
|
|
1765
|
+
const Ut = /* @__PURE__ */ mn(pr), yr = B(
|
|
1755
1766
|
({
|
|
1756
1767
|
logoLink: e = "https://www.oslo.kommune.no/",
|
|
1757
1768
|
serviceName: n,
|
|
1758
1769
|
fixed: a = !0,
|
|
1759
|
-
scrollToHide:
|
|
1770
|
+
scrollToHide: l = !0,
|
|
1760
1771
|
user: r,
|
|
1761
|
-
userMenu:
|
|
1762
|
-
representing:
|
|
1772
|
+
userMenu: s,
|
|
1773
|
+
representing: o,
|
|
1763
1774
|
userOptions: c,
|
|
1764
1775
|
userMenuFooter: p,
|
|
1765
1776
|
canChangeRepresentation: u = !0,
|
|
@@ -1783,7 +1794,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = B(
|
|
|
1783
1794
|
}, G = (g) => {
|
|
1784
1795
|
K.current && !K.current.contains(g.target) && V(!1);
|
|
1785
1796
|
}, J = () => {
|
|
1786
|
-
if (
|
|
1797
|
+
if (l) {
|
|
1787
1798
|
const g = window.pageYOffset || document.documentElement.scrollTop;
|
|
1788
1799
|
if (g < 0 || Math.abs(g - O) < 60)
|
|
1789
1800
|
return;
|
|
@@ -1797,43 +1808,43 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = B(
|
|
|
1797
1808
|
id: "pkt-header",
|
|
1798
1809
|
"data-testid": "pkt-header",
|
|
1799
1810
|
"aria-label": "Topp",
|
|
1800
|
-
className:
|
|
1811
|
+
className: Ut("pkt-header", {
|
|
1801
1812
|
"pkt-header--fixed": a,
|
|
1802
|
-
"pkt-header--scroll-to-hide":
|
|
1813
|
+
"pkt-header--scroll-to-hide": l,
|
|
1803
1814
|
"pkt-header--hidden": w
|
|
1804
1815
|
}),
|
|
1805
1816
|
ref: j,
|
|
1806
1817
|
children: [
|
|
1807
1818
|
/* @__PURE__ */ h("div", { className: "pkt-header__logo", children: [
|
|
1808
|
-
typeof e == "string" ? /* @__PURE__ */
|
|
1819
|
+
typeof e == "string" ? /* @__PURE__ */ i("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: e, children: /* @__PURE__ */ i(
|
|
1809
1820
|
E,
|
|
1810
1821
|
{
|
|
1811
1822
|
name: "oslologo",
|
|
1812
1823
|
className: "pkt-header__logo-svg",
|
|
1813
1824
|
"aria-hidden": "true",
|
|
1814
|
-
path: "https://punkt-cdn.oslo.kommune.no/11.
|
|
1825
|
+
path: "https://punkt-cdn.oslo.kommune.no/11.8/logos/"
|
|
1815
1826
|
}
|
|
1816
|
-
) }) : /* @__PURE__ */
|
|
1827
|
+
) }) : /* @__PURE__ */ i(
|
|
1817
1828
|
"button",
|
|
1818
1829
|
{
|
|
1819
1830
|
"aria-label": "Tilbake til forside",
|
|
1820
1831
|
className: "pkt-link-button pkt-link pkt-header__logo-link",
|
|
1821
1832
|
onClick: e,
|
|
1822
|
-
children: /* @__PURE__ */
|
|
1833
|
+
children: /* @__PURE__ */ i(
|
|
1823
1834
|
E,
|
|
1824
1835
|
{
|
|
1825
1836
|
name: "oslologo",
|
|
1826
1837
|
className: "pkt-header__logo-svg",
|
|
1827
1838
|
"aria-hidden": "true",
|
|
1828
|
-
path: "https://punkt-cdn.oslo.kommune.no/11.
|
|
1839
|
+
path: "https://punkt-cdn.oslo.kommune.no/11.8/logos/"
|
|
1829
1840
|
}
|
|
1830
1841
|
)
|
|
1831
1842
|
}
|
|
1832
1843
|
),
|
|
1833
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ i("span", { className: "pkt-header__logo-service", children: n })
|
|
1834
1845
|
] }),
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
d && /* @__PURE__ */
|
|
1846
|
+
/* @__PURE__ */ i("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ h("ul", { className: "pkt-header__actions-row", children: [
|
|
1847
|
+
d && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
1837
1848
|
de,
|
|
1838
1849
|
{
|
|
1839
1850
|
className: "pkt-header__menu-btn",
|
|
@@ -1844,7 +1855,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = B(
|
|
|
1844
1855
|
children: "Meny"
|
|
1845
1856
|
}
|
|
1846
1857
|
) }),
|
|
1847
|
-
(r ||
|
|
1858
|
+
(r || o) && /* @__PURE__ */ h(
|
|
1848
1859
|
"li",
|
|
1849
1860
|
{
|
|
1850
1861
|
"data-testid": "usermenu",
|
|
@@ -1861,70 +1872,70 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = B(
|
|
|
1861
1872
|
"aria-expanded": A,
|
|
1862
1873
|
onClick: W,
|
|
1863
1874
|
children: [
|
|
1864
|
-
/* @__PURE__ */
|
|
1865
|
-
/* @__PURE__ */
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
/* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1875
|
+
/* @__PURE__ */ i(E, { name: "user", className: "pkt-btn__icon" }),
|
|
1876
|
+
/* @__PURE__ */ i("span", { className: "pkt-header__user-fullname", children: (o == null ? void 0 : o.name) || (r == null ? void 0 : r.name) }),
|
|
1877
|
+
/* @__PURE__ */ i("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (r == null ? void 0 : r.shortname) }),
|
|
1878
|
+
/* @__PURE__ */ i(E, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
|
|
1879
|
+
/* @__PURE__ */ i(E, { name: "chevron-thin-up", className: "pkt-btn--open" })
|
|
1869
1880
|
]
|
|
1870
1881
|
}
|
|
1871
1882
|
),
|
|
1872
1883
|
/* @__PURE__ */ h("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
|
|
1873
1884
|
r && /* @__PURE__ */ h("li", { children: [
|
|
1874
|
-
/* @__PURE__ */
|
|
1875
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
|
|
1886
|
+
/* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: r.name }),
|
|
1876
1887
|
r.lastLoggedIn && /* @__PURE__ */ h("div", { className: "pkt-user-menu__last-logged-in", children: [
|
|
1877
1888
|
"Sist pålogget: ",
|
|
1878
|
-
/* @__PURE__ */
|
|
1889
|
+
/* @__PURE__ */ i("time", { children: y })
|
|
1879
1890
|
] })
|
|
1880
1891
|
] }),
|
|
1881
|
-
|
|
1882
|
-
g.iconName && /* @__PURE__ */
|
|
1892
|
+
s && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: s.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
|
|
1893
|
+
g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
|
|
1883
1894
|
g.title
|
|
1884
1895
|
] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: [
|
|
1885
|
-
g.iconName && /* @__PURE__ */
|
|
1896
|
+
g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
|
|
1886
1897
|
g.title
|
|
1887
1898
|
] }) }, `userMenu-${D}`)) }) }),
|
|
1888
|
-
(
|
|
1889
|
-
|
|
1890
|
-
/* @__PURE__ */
|
|
1891
|
-
/* @__PURE__ */
|
|
1892
|
-
|
|
1899
|
+
(o || u) && /* @__PURE__ */ h("li", { children: [
|
|
1900
|
+
o && /* @__PURE__ */ h(X, { children: [
|
|
1901
|
+
/* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
1902
|
+
/* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: o.name }),
|
|
1903
|
+
o.orgNumber && /* @__PURE__ */ h("div", { className: "pkt-user-menu__org-number", children: [
|
|
1893
1904
|
"Org.nr. ",
|
|
1894
|
-
|
|
1905
|
+
o.orgNumber
|
|
1895
1906
|
] })
|
|
1896
1907
|
] }),
|
|
1897
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ i("ul", { className: "pkt-list mt-size-16", children: u && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h(
|
|
1898
1909
|
"button",
|
|
1899
1910
|
{
|
|
1900
1911
|
className: "pkt-link-button pkt-link",
|
|
1901
1912
|
onClick: x,
|
|
1902
1913
|
children: [
|
|
1903
|
-
/* @__PURE__ */
|
|
1914
|
+
/* @__PURE__ */ i(E, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
1904
1915
|
"Endre organisasjon"
|
|
1905
1916
|
]
|
|
1906
1917
|
}
|
|
1907
1918
|
) }) })
|
|
1908
1919
|
] }),
|
|
1909
|
-
/* @__PURE__ */
|
|
1910
|
-
c == null ? void 0 : c.map((g, D) => /* @__PURE__ */
|
|
1911
|
-
g.iconName && /* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: (c || !k) && /* @__PURE__ */ h(X, { children: [
|
|
1921
|
+
c == null ? void 0 : c.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
|
|
1922
|
+
g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
|
|
1912
1923
|
g.title
|
|
1913
1924
|
] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: [
|
|
1914
|
-
g.iconName && /* @__PURE__ */
|
|
1925
|
+
g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
|
|
1915
1926
|
g.title
|
|
1916
1927
|
] }) }, `userOptions-${D}`)),
|
|
1917
|
-
!k && /* @__PURE__ */
|
|
1918
|
-
/* @__PURE__ */
|
|
1928
|
+
!k && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: R, children: [
|
|
1929
|
+
/* @__PURE__ */ i(E, { name: "exit", className: "pkt-link__icon" }),
|
|
1919
1930
|
"Logg ut"
|
|
1920
1931
|
] }) })
|
|
1921
1932
|
] }) }) }),
|
|
1922
|
-
p && /* @__PURE__ */
|
|
1933
|
+
p && /* @__PURE__ */ i("li", { className: "footer", children: /* @__PURE__ */ i("ul", { className: "pkt-list-horizontal bordered", children: p.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ i("a", { href: g.target, className: "pkt-link", children: g.title }) : /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: g.title }) }, `userMenuFooter-${D}`)) }) })
|
|
1923
1934
|
] })
|
|
1924
1935
|
]
|
|
1925
1936
|
}
|
|
1926
1937
|
),
|
|
1927
|
-
k && /* @__PURE__ */
|
|
1938
|
+
k && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
|
|
1928
1939
|
de,
|
|
1929
1940
|
{
|
|
1930
1941
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
@@ -1941,23 +1952,23 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = B(
|
|
|
1941
1952
|
}
|
|
1942
1953
|
);
|
|
1943
1954
|
}
|
|
1944
|
-
),
|
|
1945
|
-
({ label: e, id: n, children: a, ...
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
/* @__PURE__ */
|
|
1955
|
+
), fr = H.forwardRef(
|
|
1956
|
+
({ label: e, id: n, children: a, ...l }, r) => /* @__PURE__ */ h("div", { className: "pkt-form-group", children: [
|
|
1957
|
+
/* @__PURE__ */ i("label", { htmlFor: n, className: "pkt-form-label", children: e }),
|
|
1958
|
+
/* @__PURE__ */ i("input", { className: "pkt-form-input", id: n, ...l, ref: r }),
|
|
1948
1959
|
a
|
|
1949
1960
|
] })
|
|
1950
1961
|
);
|
|
1951
|
-
|
|
1952
|
-
const
|
|
1962
|
+
fr.displayName = "PktInput";
|
|
1963
|
+
const Se = B(
|
|
1953
1964
|
({
|
|
1954
1965
|
forId: e,
|
|
1955
1966
|
label: n,
|
|
1956
1967
|
helptext: a,
|
|
1957
|
-
helptextDropdown:
|
|
1968
|
+
helptextDropdown: l,
|
|
1958
1969
|
helptextDropdownButton: r,
|
|
1959
|
-
optionalTag:
|
|
1960
|
-
optionalText:
|
|
1970
|
+
optionalTag: s = !1,
|
|
1971
|
+
optionalText: o = "Valgfritt",
|
|
1961
1972
|
requiredTag: c = !1,
|
|
1962
1973
|
requiredText: p = "Må fylles ut",
|
|
1963
1974
|
hasError: u,
|
|
@@ -1972,7 +1983,7 @@ const Pe = B(
|
|
|
1972
1983
|
}, w) => {
|
|
1973
1984
|
const [_, O] = le(!1), U = () => {
|
|
1974
1985
|
O(!_);
|
|
1975
|
-
}, A = () =>
|
|
1986
|
+
}, A = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : c ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", V = s ? o : c ? p : "", K = k ? "pkt-inputwrapper--disabled" : "", W = v ? "pkt-inputwrapper--inline" : "", G = u ? "pkt-inputwrapper--error" : "", J = !!l && l !== "", g = r || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', D = y ? "fieldset" : J ? "div" : "label", Y = y ? "legend" : J ? "h2" : "span", z = R || (a ? `${e}-helptext` : void 0);
|
|
1976
1987
|
return /* @__PURE__ */ h(
|
|
1977
1988
|
"div",
|
|
1978
1989
|
{
|
|
@@ -1981,7 +1992,7 @@ const Pe = B(
|
|
|
1981
1992
|
),
|
|
1982
1993
|
ref: w,
|
|
1983
1994
|
children: [
|
|
1984
|
-
x ? /* @__PURE__ */
|
|
1995
|
+
x ? /* @__PURE__ */ i(X, { children: /* @__PURE__ */ h(
|
|
1985
1996
|
D,
|
|
1986
1997
|
{
|
|
1987
1998
|
htmlFor: y ? void 0 : e,
|
|
@@ -1995,11 +2006,11 @@ const Pe = B(
|
|
|
1995
2006
|
className: `${y ? " pkt-inputwrapper__legend" : ""}`,
|
|
1996
2007
|
children: [
|
|
1997
2008
|
n,
|
|
1998
|
-
V !== "" && /* @__PURE__ */
|
|
2009
|
+
V !== "" && /* @__PURE__ */ i("span", { className: A(), children: V })
|
|
1999
2010
|
]
|
|
2000
2011
|
}
|
|
2001
2012
|
),
|
|
2002
|
-
a && /* @__PURE__ */
|
|
2013
|
+
a && /* @__PURE__ */ i(
|
|
2003
2014
|
"div",
|
|
2004
2015
|
{
|
|
2005
2016
|
className: "pkt-inputwrapper__helptext",
|
|
@@ -2007,8 +2018,8 @@ const Pe = B(
|
|
|
2007
2018
|
dangerouslySetInnerHTML: { __html: a }
|
|
2008
2019
|
}
|
|
2009
2020
|
),
|
|
2010
|
-
J &&
|
|
2011
|
-
/* @__PURE__ */
|
|
2021
|
+
J && l !== "" && /* @__PURE__ */ h("div", { children: [
|
|
2022
|
+
/* @__PURE__ */ i(
|
|
2012
2023
|
de,
|
|
2013
2024
|
{
|
|
2014
2025
|
skin: "tertiary",
|
|
@@ -2017,23 +2028,23 @@ const Pe = B(
|
|
|
2017
2028
|
iconName: _ ? "chevron-thin-up" : "chevron-thin-down",
|
|
2018
2029
|
className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
|
|
2019
2030
|
onClick: U,
|
|
2020
|
-
children: /* @__PURE__ */
|
|
2031
|
+
children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: g } })
|
|
2021
2032
|
}
|
|
2022
2033
|
),
|
|
2023
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ i(
|
|
2024
2035
|
"div",
|
|
2025
2036
|
{
|
|
2026
2037
|
className: `pkt-inputwrapper__helptext ${_ ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
|
|
2027
|
-
children: /* @__PURE__ */
|
|
2038
|
+
children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: l } })
|
|
2028
2039
|
}
|
|
2029
2040
|
),
|
|
2030
|
-
!y && /* @__PURE__ */
|
|
2041
|
+
!y && /* @__PURE__ */ i("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": z, children: n })
|
|
2031
2042
|
] }),
|
|
2032
|
-
/* @__PURE__ */
|
|
2043
|
+
/* @__PURE__ */ i(X, { children: T })
|
|
2033
2044
|
]
|
|
2034
2045
|
}
|
|
2035
2046
|
) }) : /* @__PURE__ */ h(X, { children: [
|
|
2036
|
-
!y && /* @__PURE__ */
|
|
2047
|
+
!y && /* @__PURE__ */ i(
|
|
2037
2048
|
"label",
|
|
2038
2049
|
{
|
|
2039
2050
|
htmlFor: e,
|
|
@@ -2045,22 +2056,22 @@ const Pe = B(
|
|
|
2045
2056
|
),
|
|
2046
2057
|
T
|
|
2047
2058
|
] }),
|
|
2048
|
-
u && d && /* @__PURE__ */
|
|
2059
|
+
u && d && /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(yn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, compact: !0, children: d }) })
|
|
2049
2060
|
]
|
|
2050
2061
|
}
|
|
2051
2062
|
);
|
|
2052
2063
|
}
|
|
2053
2064
|
);
|
|
2054
|
-
|
|
2055
|
-
const
|
|
2065
|
+
Se.displayName = "PktInputWrapper";
|
|
2066
|
+
const dr = B(
|
|
2056
2067
|
({
|
|
2057
2068
|
children: e,
|
|
2058
2069
|
className: n,
|
|
2059
2070
|
iconName: a = "user",
|
|
2060
|
-
openInNewTab:
|
|
2071
|
+
openInNewTab: l = !1,
|
|
2061
2072
|
skin: r = "normal",
|
|
2062
|
-
href:
|
|
2063
|
-
external:
|
|
2073
|
+
href: s = "#",
|
|
2074
|
+
external: o = !1,
|
|
2064
2075
|
title: c,
|
|
2065
2076
|
...p
|
|
2066
2077
|
}, u) => {
|
|
@@ -2069,126 +2080,126 @@ const fr = B(
|
|
|
2069
2080
|
"a",
|
|
2070
2081
|
{
|
|
2071
2082
|
...p,
|
|
2072
|
-
href:
|
|
2083
|
+
href: s,
|
|
2073
2084
|
className: `pkt-linkcard pkt-link ${d}`,
|
|
2074
|
-
target:
|
|
2075
|
-
rel:
|
|
2085
|
+
target: l ? "_blank" : "_self",
|
|
2086
|
+
rel: l ? "noopener noreferrer" : void 0,
|
|
2076
2087
|
ref: u,
|
|
2077
2088
|
children: [
|
|
2078
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ i(E, { className: "pkt-link__icon", name: a }),
|
|
2079
2090
|
/* @__PURE__ */ h("div", { className: "pkt-linkcard__content", children: [
|
|
2080
|
-
/* @__PURE__ */
|
|
2081
|
-
/* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ i("div", { className: `pkt-linkcard__title ${o ? "pkt-link pkt-link--external" : ""}`, children: c }),
|
|
2092
|
+
/* @__PURE__ */ i("div", { className: "pkt-linkcard__text", children: e })
|
|
2082
2093
|
] })
|
|
2083
2094
|
]
|
|
2084
2095
|
}
|
|
2085
2096
|
);
|
|
2086
2097
|
}
|
|
2087
2098
|
);
|
|
2088
|
-
|
|
2089
|
-
const
|
|
2099
|
+
dr.displayName = "PktLinkCard";
|
|
2100
|
+
const wr = B(
|
|
2090
2101
|
({
|
|
2091
2102
|
className: e,
|
|
2092
2103
|
message: n,
|
|
2093
2104
|
size: a = "medium",
|
|
2094
|
-
inline:
|
|
2105
|
+
inline: l = !1,
|
|
2095
2106
|
isLoading: r = !0,
|
|
2096
|
-
variant:
|
|
2097
|
-
delay:
|
|
2107
|
+
variant: s = "rainbow",
|
|
2108
|
+
delay: o = 0,
|
|
2098
2109
|
children: c,
|
|
2099
2110
|
...p
|
|
2100
2111
|
}, u) => {
|
|
2101
|
-
const d = `pkt-loader pkt-loader--${a}`, [k, v] = le(!(
|
|
2102
|
-
|
|
2112
|
+
const d = `pkt-loader pkt-loader--${a}`, [k, v] = le(!(o > 0));
|
|
2113
|
+
o > 0 && setTimeout(() => {
|
|
2103
2114
|
v(!0);
|
|
2104
|
-
},
|
|
2115
|
+
}, o);
|
|
2105
2116
|
const R = (x) => x === "shapes" ? "loader" : x === "blue" ? "spinner-blue" : "spinner";
|
|
2106
|
-
return /* @__PURE__ */
|
|
2117
|
+
return /* @__PURE__ */ i(
|
|
2107
2118
|
"div",
|
|
2108
2119
|
{
|
|
2109
2120
|
role: "status",
|
|
2110
2121
|
"aria-live": "polite",
|
|
2111
2122
|
"aria-busy": r,
|
|
2112
|
-
className: `pkt-loader--${
|
|
2113
|
-
children: r ? /* @__PURE__ */
|
|
2114
|
-
/* @__PURE__ */
|
|
2123
|
+
className: `pkt-loader--${l ? "inline" : "box"} ${e}`,
|
|
2124
|
+
children: r ? /* @__PURE__ */ i(X, { children: k ? /* @__PURE__ */ h("div", { className: d, "data-testid": "pkt-loader", ref: u, ...p, children: [
|
|
2125
|
+
/* @__PURE__ */ i(
|
|
2115
2126
|
E,
|
|
2116
2127
|
{
|
|
2117
|
-
name: R(
|
|
2128
|
+
name: R(s),
|
|
2118
2129
|
"aria-label": "loading",
|
|
2119
|
-
path: "https://punkt-cdn.oslo.kommune.no/11.
|
|
2120
|
-
className: `pkt-loader__svg pkt-loader__${
|
|
2130
|
+
path: "https://punkt-cdn.oslo.kommune.no/11.8/animations/",
|
|
2131
|
+
className: `pkt-loader__svg pkt-loader__${s}`
|
|
2121
2132
|
}
|
|
2122
2133
|
),
|
|
2123
|
-
n && /* @__PURE__ */
|
|
2134
|
+
n && /* @__PURE__ */ i("p", { children: n })
|
|
2124
2135
|
] }) : null }) : c
|
|
2125
2136
|
}
|
|
2126
2137
|
);
|
|
2127
2138
|
}
|
|
2128
|
-
),
|
|
2139
|
+
), Er = ({
|
|
2129
2140
|
children: e,
|
|
2130
2141
|
className: n,
|
|
2131
2142
|
compact: a = !1,
|
|
2132
|
-
skin:
|
|
2143
|
+
skin: l = "beige",
|
|
2133
2144
|
title: r,
|
|
2134
|
-
...
|
|
2145
|
+
...s
|
|
2135
2146
|
}) => {
|
|
2136
|
-
const
|
|
2147
|
+
const o = [
|
|
2137
2148
|
n,
|
|
2138
2149
|
"pkt-messagebox",
|
|
2139
|
-
|
|
2150
|
+
l && `pkt-messagebox--${l}`,
|
|
2140
2151
|
a && "pkt-messagebox--compact"
|
|
2141
2152
|
].filter(Boolean).join(" ");
|
|
2142
|
-
return /* @__PURE__ */ h("div", { ...
|
|
2143
|
-
r && /* @__PURE__ */
|
|
2144
|
-
/* @__PURE__ */
|
|
2153
|
+
return /* @__PURE__ */ h("div", { ...s, className: o, children: [
|
|
2154
|
+
r && /* @__PURE__ */ i("div", { className: "pkt-messagebox__title", children: r }),
|
|
2155
|
+
/* @__PURE__ */ i("div", { className: "pkt-messagebox__text", children: e })
|
|
2145
2156
|
] });
|
|
2146
|
-
},
|
|
2157
|
+
}, mr = B(
|
|
2147
2158
|
({
|
|
2148
2159
|
id: e,
|
|
2149
2160
|
name: n,
|
|
2150
2161
|
label: a,
|
|
2151
|
-
className:
|
|
2162
|
+
className: l,
|
|
2152
2163
|
hasTile: r = !1,
|
|
2153
|
-
disabled:
|
|
2154
|
-
checkHelptext:
|
|
2164
|
+
disabled: s = !1,
|
|
2165
|
+
checkHelptext: o,
|
|
2155
2166
|
hasError: c = !1,
|
|
2156
2167
|
...p
|
|
2157
2168
|
}, u) => {
|
|
2158
2169
|
const d = [
|
|
2159
|
-
|
|
2170
|
+
l,
|
|
2160
2171
|
"pkt-input-check"
|
|
2161
2172
|
].filter(Boolean).join(" ");
|
|
2162
|
-
return /* @__PURE__ */
|
|
2163
|
-
/* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ i("div", { className: d, children: /* @__PURE__ */ h("div", { className: `pkt-input-check__input ${r ? "pkt-input-check__input--tile" : ""} ${s && r ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
|
|
2174
|
+
/* @__PURE__ */ i(
|
|
2164
2175
|
"input",
|
|
2165
2176
|
{
|
|
2166
2177
|
ref: u,
|
|
2167
2178
|
className: `pkt-input-check__input-checkbox ${c ? "pkt-input-check__input-checkbox--error" : ""}`,
|
|
2168
2179
|
type: "radio",
|
|
2169
2180
|
id: e,
|
|
2170
|
-
disabled:
|
|
2181
|
+
disabled: s,
|
|
2171
2182
|
name: n,
|
|
2172
2183
|
...p
|
|
2173
2184
|
}
|
|
2174
2185
|
),
|
|
2175
2186
|
/* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
|
|
2176
2187
|
a,
|
|
2177
|
-
|
|
2188
|
+
o && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: o })
|
|
2178
2189
|
] })
|
|
2179
2190
|
] }) });
|
|
2180
2191
|
}
|
|
2181
2192
|
);
|
|
2182
|
-
|
|
2183
|
-
const
|
|
2193
|
+
mr.displayName = "PktRadioButton";
|
|
2194
|
+
const xr = B(
|
|
2184
2195
|
({
|
|
2185
2196
|
action: e,
|
|
2186
2197
|
appearance: n = "local",
|
|
2187
2198
|
disabled: a = !1,
|
|
2188
|
-
fullwidth:
|
|
2199
|
+
fullwidth: l = !1,
|
|
2189
2200
|
id: r,
|
|
2190
|
-
label:
|
|
2191
|
-
method:
|
|
2201
|
+
label: s,
|
|
2202
|
+
method: o = "get",
|
|
2192
2203
|
name: c,
|
|
2193
2204
|
placeholder: p = "Søk…",
|
|
2194
2205
|
suggestions: u,
|
|
@@ -2199,34 +2210,34 @@ const Er = B(
|
|
|
2199
2210
|
}, x) => {
|
|
2200
2211
|
const T = (_, O) => {
|
|
2201
2212
|
_ ? _() : v && v(O);
|
|
2202
|
-
}, j = `pkt-searchinput pkt-searchinput--${n} ${
|
|
2213
|
+
}, j = `pkt-searchinput pkt-searchinput--${n} ${l ? "pkt-searchinput--fullwidth" : ""}`;
|
|
2203
2214
|
return /* @__PURE__ */ h(
|
|
2204
2215
|
e ? "form" : "div",
|
|
2205
2216
|
{
|
|
2206
2217
|
className: j,
|
|
2207
2218
|
onSubmit: k && (() => k(d)),
|
|
2208
2219
|
action: e || void 0,
|
|
2209
|
-
method: e ?
|
|
2220
|
+
method: e ? o : void 0,
|
|
2210
2221
|
role: "search",
|
|
2211
2222
|
ref: x,
|
|
2212
2223
|
...R,
|
|
2213
2224
|
children: [
|
|
2214
2225
|
/* @__PURE__ */ h(
|
|
2215
|
-
|
|
2226
|
+
s ? "label" : "div",
|
|
2216
2227
|
{
|
|
2217
|
-
htmlFor:
|
|
2218
|
-
className:
|
|
2228
|
+
htmlFor: s ? r : void 0,
|
|
2229
|
+
className: s ? "pkt-inputwrapper__label" : "",
|
|
2219
2230
|
children: [
|
|
2220
|
-
|
|
2231
|
+
s && /* @__PURE__ */ i(X, { children: s }),
|
|
2221
2232
|
/* @__PURE__ */ h(
|
|
2222
2233
|
"div",
|
|
2223
2234
|
{
|
|
2224
2235
|
className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field",
|
|
2225
2236
|
children: [
|
|
2226
|
-
/* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ i(
|
|
2227
2238
|
"input",
|
|
2228
2239
|
{
|
|
2229
|
-
className: `pkt-input ${
|
|
2240
|
+
className: `pkt-input ${l ? "pkt-input--fullwidth" : ""}`,
|
|
2230
2241
|
type: "search",
|
|
2231
2242
|
name: c || r,
|
|
2232
2243
|
id: r,
|
|
@@ -2239,7 +2250,7 @@ const Er = B(
|
|
|
2239
2250
|
"aria-controls": `${r}-suggestions`
|
|
2240
2251
|
}
|
|
2241
2252
|
),
|
|
2242
|
-
/* @__PURE__ */
|
|
2253
|
+
/* @__PURE__ */ i(
|
|
2243
2254
|
de,
|
|
2244
2255
|
{
|
|
2245
2256
|
className: `pkt-searchinput__button ${n === "local" ? "pkt-input-icon" : ""}`,
|
|
@@ -2251,7 +2262,7 @@ const Er = B(
|
|
|
2251
2262
|
disabled: a,
|
|
2252
2263
|
onClick: k && (() => k(d)),
|
|
2253
2264
|
onKeyUp: k && ((_) => _.key === "Enter" && k(d)),
|
|
2254
|
-
children:
|
|
2265
|
+
children: s || p
|
|
2255
2266
|
}
|
|
2256
2267
|
)
|
|
2257
2268
|
]
|
|
@@ -2260,13 +2271,13 @@ const Er = B(
|
|
|
2260
2271
|
]
|
|
2261
2272
|
}
|
|
2262
2273
|
),
|
|
2263
|
-
u && /* @__PURE__ */
|
|
2274
|
+
u && /* @__PURE__ */ i(
|
|
2264
2275
|
"ul",
|
|
2265
2276
|
{
|
|
2266
2277
|
id: `${r}-suggestions`,
|
|
2267
2278
|
className: "pkt-searchinput__suggestions",
|
|
2268
2279
|
"aria-live": "assertive",
|
|
2269
|
-
children: u.map((_, O) => /* @__PURE__ */
|
|
2280
|
+
children: u.map((_, O) => /* @__PURE__ */ i("li", { children: H.createElement(
|
|
2270
2281
|
_.href ? "a" : _.onClick ? "button" : "div",
|
|
2271
2282
|
{
|
|
2272
2283
|
href: _.href,
|
|
@@ -2276,8 +2287,8 @@ const Er = B(
|
|
|
2276
2287
|
onKeyUp: () => T(_.onClick, O)
|
|
2277
2288
|
},
|
|
2278
2289
|
/* @__PURE__ */ h(X, { children: [
|
|
2279
|
-
_.title && /* @__PURE__ */
|
|
2280
|
-
_.text && /* @__PURE__ */
|
|
2290
|
+
_.title && /* @__PURE__ */ i("h3", { className: "pkt-searchinput__suggestion-title", children: _.title }),
|
|
2291
|
+
_.text && /* @__PURE__ */ i("p", { className: "pkt-searchinput__suggestion-text", children: _.text })
|
|
2281
2292
|
] })
|
|
2282
2293
|
) }, `search-suggestion-${O}`))
|
|
2283
2294
|
}
|
|
@@ -2286,15 +2297,15 @@ const Er = B(
|
|
|
2286
2297
|
}
|
|
2287
2298
|
);
|
|
2288
2299
|
}
|
|
2289
|
-
),
|
|
2300
|
+
), Cr = B(
|
|
2290
2301
|
({
|
|
2291
2302
|
ariaDescribedby: e,
|
|
2292
2303
|
ariaLabelledby: n,
|
|
2293
2304
|
children: a,
|
|
2294
|
-
className:
|
|
2305
|
+
className: l,
|
|
2295
2306
|
disabled: r = !1,
|
|
2296
|
-
errorMessage:
|
|
2297
|
-
hasError:
|
|
2307
|
+
errorMessage: s,
|
|
2308
|
+
hasError: o,
|
|
2298
2309
|
helptext: c,
|
|
2299
2310
|
helptextDropdown: p,
|
|
2300
2311
|
helptextDropdownButton: u,
|
|
@@ -2309,9 +2320,9 @@ const Er = B(
|
|
|
2309
2320
|
requiredText: w,
|
|
2310
2321
|
..._
|
|
2311
2322
|
}, O) => {
|
|
2312
|
-
const U = [
|
|
2313
|
-
return /* @__PURE__ */
|
|
2314
|
-
|
|
2323
|
+
const U = [l, "pkt-select"].join(" ");
|
|
2324
|
+
return /* @__PURE__ */ i(
|
|
2325
|
+
Se,
|
|
2315
2326
|
{
|
|
2316
2327
|
className: U,
|
|
2317
2328
|
forId: d,
|
|
@@ -2323,17 +2334,17 @@ const Er = B(
|
|
|
2323
2334
|
optionalText: j,
|
|
2324
2335
|
requiredTag: y,
|
|
2325
2336
|
requiredText: w,
|
|
2326
|
-
hasError:
|
|
2327
|
-
errorMessage:
|
|
2337
|
+
hasError: o,
|
|
2338
|
+
errorMessage: s,
|
|
2328
2339
|
disabled: r,
|
|
2329
2340
|
inline: k,
|
|
2330
2341
|
ariaDescribedby: e,
|
|
2331
|
-
children: /* @__PURE__ */
|
|
2342
|
+
children: /* @__PURE__ */ i(
|
|
2332
2343
|
"select",
|
|
2333
2344
|
{
|
|
2334
2345
|
ref: O,
|
|
2335
2346
|
className: `pkt-input ${v ? "pkt-input--fullwidth" : ""}`,
|
|
2336
|
-
"aria-invalid":
|
|
2347
|
+
"aria-invalid": o,
|
|
2337
2348
|
"aria-errormessage": `${d}-error`,
|
|
2338
2349
|
"aria-labelledby": n || `${d}-label`,
|
|
2339
2350
|
disabled: r,
|
|
@@ -2346,29 +2357,29 @@ const Er = B(
|
|
|
2346
2357
|
}
|
|
2347
2358
|
);
|
|
2348
2359
|
}
|
|
2349
|
-
),
|
|
2360
|
+
), hr = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ i("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ i(X, { children: n }), Rr = ({
|
|
2350
2361
|
isResponsive: e,
|
|
2351
|
-
modifiers: { info: n = !1, success: a = !1, strong:
|
|
2352
|
-
children:
|
|
2353
|
-
}) => /* @__PURE__ */
|
|
2362
|
+
modifiers: { info: n = !1, success: a = !1, strong: l = !1, shadow: r = !1 } = {},
|
|
2363
|
+
children: s
|
|
2364
|
+
}) => /* @__PURE__ */ i(hr, { isResponsive: e, children: /* @__PURE__ */ i(
|
|
2354
2365
|
"table",
|
|
2355
2366
|
{
|
|
2356
|
-
className:
|
|
2367
|
+
className: Ut("pkt-table", {
|
|
2357
2368
|
"pkt-table--info": n,
|
|
2358
2369
|
"pkt-table--success": a,
|
|
2359
|
-
"pkt-table--strong":
|
|
2370
|
+
"pkt-table--strong": l,
|
|
2360
2371
|
"pkt-table--shadow": r
|
|
2361
2372
|
}),
|
|
2362
|
-
children:
|
|
2373
|
+
children: s
|
|
2363
2374
|
}
|
|
2364
|
-
) }),
|
|
2375
|
+
) }), Sr = ({ children: e }) => /* @__PURE__ */ i("td", { className: "pkt-table__th", children: e }), Pr = ({ children: e }) => /* @__PURE__ */ i("th", { className: "pkt-table__th", children: e }), Ke = B(({
|
|
2365
2376
|
children: e,
|
|
2366
2377
|
className: n,
|
|
2367
2378
|
skin: a = "blue",
|
|
2368
|
-
textStyle:
|
|
2379
|
+
textStyle: l = "normal-text",
|
|
2369
2380
|
size: r = "medium",
|
|
2370
|
-
closeTag:
|
|
2371
|
-
iconName:
|
|
2381
|
+
closeTag: s = !1,
|
|
2382
|
+
iconName: o = "",
|
|
2372
2383
|
type: c = "button",
|
|
2373
2384
|
ariaLabel: p = "close",
|
|
2374
2385
|
onClick: u = () => {
|
|
@@ -2380,7 +2391,7 @@ const Er = B(
|
|
|
2380
2391
|
"pkt-tag",
|
|
2381
2392
|
r && `pkt-tag--${r}`,
|
|
2382
2393
|
a && `pkt-tag--${a}`,
|
|
2383
|
-
|
|
2394
|
+
l && `pkt-tag--${l}`,
|
|
2384
2395
|
n
|
|
2385
2396
|
].filter(Boolean).join(" "), T = [
|
|
2386
2397
|
"pkt-tag",
|
|
@@ -2388,12 +2399,12 @@ const Er = B(
|
|
|
2388
2399
|
"pkt-btn--tertiary",
|
|
2389
2400
|
r && `pkt-tag--${r}`,
|
|
2390
2401
|
a && `pkt-tag--${a}`,
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2402
|
+
l && `pkt-tag--${l}`,
|
|
2403
|
+
o && s ? "pkt-btn--icons-right-and-left" : null,
|
|
2404
|
+
s && !o ? "pkt-btn--icon-right" : null,
|
|
2394
2405
|
n
|
|
2395
2406
|
].filter(Boolean).join(" "), j = !k;
|
|
2396
|
-
return
|
|
2407
|
+
return s && o ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
|
|
2397
2408
|
"button",
|
|
2398
2409
|
{
|
|
2399
2410
|
className: T,
|
|
@@ -2402,12 +2413,12 @@ const Er = B(
|
|
|
2402
2413
|
onClick: R,
|
|
2403
2414
|
ref: d,
|
|
2404
2415
|
children: [
|
|
2405
|
-
/* @__PURE__ */
|
|
2416
|
+
/* @__PURE__ */ i(E, { className: "pkt-tag__icon", name: o }),
|
|
2406
2417
|
e,
|
|
2407
|
-
/* @__PURE__ */
|
|
2418
|
+
/* @__PURE__ */ i(E, { className: "pkt-tag__close-btn", name: "close" })
|
|
2408
2419
|
]
|
|
2409
2420
|
}
|
|
2410
|
-
) }) :
|
|
2421
|
+
) }) : s ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
|
|
2411
2422
|
"button",
|
|
2412
2423
|
{
|
|
2413
2424
|
className: T,
|
|
@@ -2416,29 +2427,29 @@ const Er = B(
|
|
|
2416
2427
|
onClick: R,
|
|
2417
2428
|
ref: d,
|
|
2418
2429
|
children: [
|
|
2419
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ i(E, { className: "pkt-tag__close-btn", name: "close" }),
|
|
2420
2431
|
e
|
|
2421
2432
|
]
|
|
2422
2433
|
}
|
|
2423
|
-
) }) :
|
|
2424
|
-
/* @__PURE__ */
|
|
2434
|
+
) }) : o ? /* @__PURE__ */ h("span", { className: x, children: [
|
|
2435
|
+
/* @__PURE__ */ i(E, { className: "pkt-tag__icon", name: o }),
|
|
2425
2436
|
e
|
|
2426
|
-
] }) : /* @__PURE__ */
|
|
2437
|
+
] }) : /* @__PURE__ */ i("span", { className: x, children: e });
|
|
2427
2438
|
});
|
|
2428
|
-
|
|
2429
|
-
const
|
|
2430
|
-
({ arrowNav: e = !0, tabs: n, onTabSelected: a },
|
|
2431
|
-
const r =
|
|
2432
|
-
|
|
2439
|
+
Ke.displayName = "PktTag";
|
|
2440
|
+
const Tr = B(
|
|
2441
|
+
({ arrowNav: e = !0, tabs: n, onTabSelected: a }, l) => {
|
|
2442
|
+
const r = Et([]);
|
|
2443
|
+
Je(() => {
|
|
2433
2444
|
r.current = r.current.slice(0, n.length);
|
|
2434
2445
|
}, [n]);
|
|
2435
|
-
const
|
|
2446
|
+
const s = (c, p) => {
|
|
2436
2447
|
p.action && p.action(c), a && a(c);
|
|
2437
|
-
},
|
|
2448
|
+
}, o = (c, p) => {
|
|
2438
2449
|
var u, d;
|
|
2439
|
-
e && (p.code === "ArrowLeft" && c !== 0 && ((u = r.current[c - 1]) == null || u.focus()), p.code === "ArrowRight" && c < n.length - 1 && ((d = r.current[c + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") &&
|
|
2450
|
+
e && (p.code === "ArrowLeft" && c !== 0 && ((u = r.current[c - 1]) == null || u.focus()), p.code === "ArrowRight" && c < n.length - 1 && ((d = r.current[c + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && s(c, n[c]));
|
|
2440
2451
|
};
|
|
2441
|
-
return /* @__PURE__ */
|
|
2452
|
+
return /* @__PURE__ */ i("div", { className: "pkt-tabs", ref: l, children: /* @__PURE__ */ i("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: n.map((c, p) => /* @__PURE__ */ i(dn, { children: c.href ? /* @__PURE__ */ h(
|
|
2442
2453
|
"a",
|
|
2443
2454
|
{
|
|
2444
2455
|
"aria-selected": !!c.active,
|
|
@@ -2446,16 +2457,16 @@ const Sr = B(
|
|
|
2446
2457
|
href: c.href,
|
|
2447
2458
|
"aria-controls": c.controls,
|
|
2448
2459
|
className: `pkt-tabs__link ${c.active ? "active" : ""}`,
|
|
2449
|
-
onKeyUp: (u) =>
|
|
2450
|
-
onClick: () =>
|
|
2460
|
+
onKeyUp: (u) => o(p, u),
|
|
2461
|
+
onClick: () => s(p, c),
|
|
2451
2462
|
tabIndex: c.active || !e ? void 0 : -1,
|
|
2452
2463
|
ref: (u) => {
|
|
2453
2464
|
r.current[p] = u;
|
|
2454
2465
|
},
|
|
2455
2466
|
children: [
|
|
2456
|
-
c.icon && /* @__PURE__ */
|
|
2467
|
+
c.icon && /* @__PURE__ */ i(E, { name: c.icon, className: "pkt-icon--small" }),
|
|
2457
2468
|
c.text,
|
|
2458
|
-
c.tag && /* @__PURE__ */
|
|
2469
|
+
c.tag && /* @__PURE__ */ i(Ke, { skin: c.tag.skin, size: "small", children: c.tag.text })
|
|
2459
2470
|
]
|
|
2460
2471
|
}
|
|
2461
2472
|
) : /* @__PURE__ */ h(
|
|
@@ -2466,30 +2477,30 @@ const Sr = B(
|
|
|
2466
2477
|
type: "button",
|
|
2467
2478
|
"aria-controls": c.controls,
|
|
2468
2479
|
className: `pkt-tabs__button pkt-link-button ${c.active ? "active" : ""}`,
|
|
2469
|
-
onKeyUp: (u) =>
|
|
2470
|
-
onClick: () =>
|
|
2480
|
+
onKeyUp: (u) => o(p, u),
|
|
2481
|
+
onClick: () => s(p, c),
|
|
2471
2482
|
tabIndex: c.active || !e ? void 0 : -1,
|
|
2472
2483
|
ref: (u) => {
|
|
2473
2484
|
r.current[p] = u;
|
|
2474
2485
|
},
|
|
2475
2486
|
children: [
|
|
2476
|
-
c.icon && /* @__PURE__ */
|
|
2487
|
+
c.icon && /* @__PURE__ */ i(E, { name: c.icon, className: "pkt-icon--small" }),
|
|
2477
2488
|
c.text,
|
|
2478
|
-
c.tag && /* @__PURE__ */
|
|
2489
|
+
c.tag && /* @__PURE__ */ i(Ke, { skin: c.tag.skin, size: "small", children: c.tag.text })
|
|
2479
2490
|
]
|
|
2480
2491
|
},
|
|
2481
2492
|
"b-" + p
|
|
2482
2493
|
) }, p)) }) });
|
|
2483
2494
|
}
|
|
2484
|
-
),
|
|
2495
|
+
), Or = B(
|
|
2485
2496
|
({
|
|
2486
2497
|
id: e,
|
|
2487
2498
|
ariaDescribedby: n,
|
|
2488
2499
|
ariaLabelledby: a,
|
|
2489
|
-
counter:
|
|
2500
|
+
counter: l,
|
|
2490
2501
|
counterMaxLength: r,
|
|
2491
|
-
className:
|
|
2492
|
-
disabled:
|
|
2502
|
+
className: s,
|
|
2503
|
+
disabled: o,
|
|
2493
2504
|
errorMessage: c,
|
|
2494
2505
|
hasError: p,
|
|
2495
2506
|
helptext: u,
|
|
@@ -2509,20 +2520,20 @@ const Sr = B(
|
|
|
2509
2520
|
onChange: V,
|
|
2510
2521
|
...K
|
|
2511
2522
|
}, W) => {
|
|
2512
|
-
const G = [
|
|
2513
|
-
var te,
|
|
2514
|
-
if (
|
|
2523
|
+
const G = [s, "pkt-textinput", "pkt-textarea"].join(" "), J = a || `${e}-label`, g = Et(null), [D, Y] = le(0), z = (ee) => {
|
|
2524
|
+
var te, oe;
|
|
2525
|
+
if (l && Y(((oe = (te = ee.currentTarget) == null ? void 0 : te.value) == null ? void 0 : oe.length) || 0), V)
|
|
2515
2526
|
return V(ee);
|
|
2516
2527
|
};
|
|
2517
|
-
return
|
|
2528
|
+
return Je(() => {
|
|
2518
2529
|
var ee, te;
|
|
2519
|
-
typeof W == "function" && W(g.current),
|
|
2530
|
+
typeof W == "function" && W(g.current), l && Y(((te = (ee = g == null ? void 0 : g.current) == null ? void 0 : ee.value) == null ? void 0 : te.length) || 0);
|
|
2520
2531
|
}, [W]), /* @__PURE__ */ h(
|
|
2521
|
-
|
|
2532
|
+
Se,
|
|
2522
2533
|
{
|
|
2523
2534
|
ariaDescribedby: n,
|
|
2524
2535
|
className: G,
|
|
2525
|
-
disabled:
|
|
2536
|
+
disabled: o,
|
|
2526
2537
|
errorMessage: c,
|
|
2527
2538
|
forId: e,
|
|
2528
2539
|
hasError: p,
|
|
@@ -2537,7 +2548,7 @@ const Sr = B(
|
|
|
2537
2548
|
requiredText: _,
|
|
2538
2549
|
useWrapper: A,
|
|
2539
2550
|
children: [
|
|
2540
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ i(
|
|
2541
2552
|
"textarea",
|
|
2542
2553
|
{
|
|
2543
2554
|
ref: g,
|
|
@@ -2545,7 +2556,7 @@ const Sr = B(
|
|
|
2545
2556
|
name: T || e,
|
|
2546
2557
|
id: e,
|
|
2547
2558
|
placeholder: O,
|
|
2548
|
-
disabled:
|
|
2559
|
+
disabled: o,
|
|
2549
2560
|
rows: U,
|
|
2550
2561
|
"aria-labelledby": J,
|
|
2551
2562
|
"aria-invalid": p,
|
|
@@ -2554,7 +2565,7 @@ const Sr = B(
|
|
|
2554
2565
|
onChange: z
|
|
2555
2566
|
}
|
|
2556
2567
|
),
|
|
2557
|
-
|
|
2568
|
+
l && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
|
|
2558
2569
|
D || 0,
|
|
2559
2570
|
r && `/${r}`
|
|
2560
2571
|
] })
|
|
@@ -2562,15 +2573,15 @@ const Sr = B(
|
|
|
2562
2573
|
}
|
|
2563
2574
|
);
|
|
2564
2575
|
}
|
|
2565
|
-
),
|
|
2576
|
+
), $r = B(
|
|
2566
2577
|
({
|
|
2567
2578
|
id: e,
|
|
2568
2579
|
ariaDescribedby: n,
|
|
2569
2580
|
ariaLabelledby: a,
|
|
2570
|
-
autocomplete:
|
|
2581
|
+
autocomplete: l = "off",
|
|
2571
2582
|
className: r,
|
|
2572
|
-
disabled:
|
|
2573
|
-
errorMessage:
|
|
2583
|
+
disabled: s = !1,
|
|
2584
|
+
errorMessage: o,
|
|
2574
2585
|
hasError: c = !1,
|
|
2575
2586
|
helptext: p,
|
|
2576
2587
|
helptextDropdown: u,
|
|
@@ -2594,13 +2605,13 @@ const Sr = B(
|
|
|
2594
2605
|
...J
|
|
2595
2606
|
}, g) => {
|
|
2596
2607
|
const D = [r, "pkt-textinput"].join(" "), Y = a || `${e}-label`, z = V === "search" && !k && !W;
|
|
2597
|
-
return /* @__PURE__ */
|
|
2598
|
-
|
|
2608
|
+
return /* @__PURE__ */ i(
|
|
2609
|
+
Se,
|
|
2599
2610
|
{
|
|
2600
2611
|
ariaDescribedby: n,
|
|
2601
2612
|
className: D,
|
|
2602
|
-
disabled:
|
|
2603
|
-
errorMessage:
|
|
2613
|
+
disabled: s,
|
|
2614
|
+
errorMessage: o,
|
|
2604
2615
|
forId: e,
|
|
2605
2616
|
hasError: c,
|
|
2606
2617
|
helptext: p,
|
|
@@ -2614,8 +2625,8 @@ const Sr = B(
|
|
|
2614
2625
|
requiredText: _,
|
|
2615
2626
|
useWrapper: K,
|
|
2616
2627
|
children: /* @__PURE__ */ h("div", { className: "pkt-input__container", children: [
|
|
2617
|
-
U && /* @__PURE__ */
|
|
2618
|
-
/* @__PURE__ */
|
|
2628
|
+
U && /* @__PURE__ */ i("div", { className: "pkt-input-prefix", children: U }),
|
|
2629
|
+
/* @__PURE__ */ i(
|
|
2619
2630
|
"input",
|
|
2620
2631
|
{
|
|
2621
2632
|
ref: g,
|
|
@@ -2624,9 +2635,9 @@ const Sr = B(
|
|
|
2624
2635
|
name: T || e,
|
|
2625
2636
|
id: e,
|
|
2626
2637
|
placeholder: O,
|
|
2627
|
-
autoComplete:
|
|
2638
|
+
autoComplete: l,
|
|
2628
2639
|
value: G,
|
|
2629
|
-
disabled:
|
|
2640
|
+
disabled: s,
|
|
2630
2641
|
"aria-invalid": c,
|
|
2631
2642
|
"aria-errormessage": `${e}-error`,
|
|
2632
2643
|
"aria-labelledby": Y,
|
|
@@ -2635,40 +2646,40 @@ const Sr = B(
|
|
|
2635
2646
|
),
|
|
2636
2647
|
A && /* @__PURE__ */ h("p", { className: "pkt-input-suffix", children: [
|
|
2637
2648
|
A,
|
|
2638
|
-
k && /* @__PURE__ */
|
|
2639
|
-
z && /* @__PURE__ */
|
|
2649
|
+
k && /* @__PURE__ */ i(E, { className: "pkt-input-suffix-icon", name: k }),
|
|
2650
|
+
z && /* @__PURE__ */ i(E, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
|
|
2640
2651
|
] }),
|
|
2641
|
-
!A && k && /* @__PURE__ */
|
|
2642
|
-
!A && z && /* @__PURE__ */
|
|
2652
|
+
!A && k && /* @__PURE__ */ i(E, { className: "pkt-input-icon", name: k }),
|
|
2653
|
+
!A && z && /* @__PURE__ */ i(E, { className: "pkt-input-icon", name: "magnifying-glass-big" })
|
|
2643
2654
|
] })
|
|
2644
2655
|
}
|
|
2645
2656
|
);
|
|
2646
2657
|
}
|
|
2647
2658
|
);
|
|
2648
2659
|
export {
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2660
|
+
yn as PktAlert,
|
|
2661
|
+
_r as PktBackLink,
|
|
2662
|
+
br as PktBreadcrumbs,
|
|
2652
2663
|
de as PktButton,
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2664
|
+
ur as PktCheckbox,
|
|
2665
|
+
gr as PktFooter,
|
|
2666
|
+
Nr as PktFooterSimple,
|
|
2667
|
+
yr as PktHeader,
|
|
2657
2668
|
E as PktIcon,
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
+
Nn as PktIconContext,
|
|
2670
|
+
fr as PktInput,
|
|
2671
|
+
Se as PktInputWrapper,
|
|
2672
|
+
dr as PktLinkCard,
|
|
2673
|
+
wr as PktLoader,
|
|
2674
|
+
Er as PktMessagebox,
|
|
2675
|
+
mr as PktRadioButton,
|
|
2676
|
+
xr as PktSearchInput,
|
|
2677
|
+
Cr as PktSelect,
|
|
2678
|
+
Rr as PktTable,
|
|
2679
|
+
Sr as PktTableData,
|
|
2669
2680
|
Pr as PktTableHeader,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2681
|
+
Tr as PktTabs,
|
|
2682
|
+
Ke as PktTag,
|
|
2683
|
+
Or as PktTextarea,
|
|
2684
|
+
$r as PktTextinput
|
|
2674
2685
|
};
|