@oslokommune/punkt-react 7.1.7 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/punkt-react.es.js +1604 -924
- package/dist/punkt-react.umd.js +38 -11
- package/package.json +3 -3
- package/src/components/breadcrumbs/Breadcrumbs.test.tsx +63 -0
- package/src/components/breadcrumbs/Breadcrumbs.tsx +114 -0
- package/src/components/index.ts +1 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _ from "react";
|
|
2
|
+
import G, { useState as ie, useEffect as yt, forwardRef as H, useRef as ln } from "react";
|
|
3
|
+
function sn(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
5
|
}
|
|
5
|
-
var
|
|
6
|
+
var Fe = { exports: {} }, oe = {};
|
|
6
7
|
/**
|
|
7
8
|
* @license React
|
|
8
9
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,25 +13,25 @@ var ve = { exports: {} }, ee = {};
|
|
|
12
13
|
* This source code is licensed under the MIT license found in the
|
|
13
14
|
* LICENSE file in the root directory of this source tree.
|
|
14
15
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (
|
|
28
|
-
|
|
29
|
-
return { $$typeof:
|
|
16
|
+
var kt;
|
|
17
|
+
function cn() {
|
|
18
|
+
if (kt)
|
|
19
|
+
return oe;
|
|
20
|
+
kt = 1;
|
|
21
|
+
var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function s(c, f, d) {
|
|
23
|
+
var h, v = {}, x = null, C = null;
|
|
24
|
+
d !== void 0 && (x = "" + d), f.key !== void 0 && (x = "" + f.key), f.ref !== void 0 && (C = f.ref);
|
|
25
|
+
for (h in f)
|
|
26
|
+
l.call(f, h) && !i.hasOwnProperty(h) && (v[h] = f[h]);
|
|
27
|
+
if (c && c.defaultProps)
|
|
28
|
+
for (h in f = c.defaultProps, f)
|
|
29
|
+
v[h] === void 0 && (v[h] = f[h]);
|
|
30
|
+
return { $$typeof: n, type: c, key: x, ref: C, props: v, _owner: a.current };
|
|
30
31
|
}
|
|
31
|
-
return
|
|
32
|
+
return oe.Fragment = r, oe.jsx = s, oe.jsxs = s, oe;
|
|
32
33
|
}
|
|
33
|
-
var
|
|
34
|
+
var le = {};
|
|
34
35
|
/**
|
|
35
36
|
* @license React
|
|
36
37
|
* react-jsx-runtime.development.js
|
|
@@ -40,91 +41,91 @@ var te = {};
|
|
|
40
41
|
* This source code is licensed under the MIT license found in the
|
|
41
42
|
* LICENSE file in the root directory of this source tree.
|
|
42
43
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
44
|
+
var vt;
|
|
45
|
+
function un() {
|
|
46
|
+
return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
var e = G, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), O = Symbol.iterator, P = "@@iterator";
|
|
48
|
+
function T(t) {
|
|
49
|
+
if (t === null || typeof t != "object")
|
|
49
50
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
51
|
+
var u = O && t[O] || t[P];
|
|
52
|
+
return typeof u == "function" ? u : null;
|
|
52
53
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
54
|
+
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function g(t) {
|
|
55
56
|
{
|
|
56
|
-
for (var
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
for (var u = arguments.length, p = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
|
|
58
|
+
p[k - 1] = arguments[k];
|
|
59
|
+
j("error", t, p);
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function j(t, u, p) {
|
|
62
63
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
return String(
|
|
64
|
+
var k = R.ReactDebugCurrentFrame, w = k.getStackAddendum();
|
|
65
|
+
w !== "" && (u += "%s", p = p.concat([w]));
|
|
66
|
+
var S = p.map(function(E) {
|
|
67
|
+
return String(E);
|
|
67
68
|
});
|
|
68
|
-
|
|
69
|
+
S.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, S);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof
|
|
72
|
+
var $ = !1, M = !1, A = !1, z = !1, V = !1, W;
|
|
73
|
+
W = Symbol.for("react.module.reference");
|
|
74
|
+
function J(t) {
|
|
75
|
+
return !!(typeof t == "string" || typeof t == "function" || t === l || t === i || V || t === a || t === d || t === h || z || t === C || $ || M || A || typeof t == "object" && t !== null && (t.$$typeof === x || t.$$typeof === v || t.$$typeof === s || t.$$typeof === c || t.$$typeof === f || // This needs to include all possible module reference object
|
|
75
76
|
// types supported by any Flight configuration anywhere since
|
|
76
77
|
// we don't know which Flight build this will end up being used
|
|
77
78
|
// with.
|
|
78
|
-
|
|
79
|
+
t.$$typeof === W || t.getModuleId !== void 0));
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
81
|
+
function K(t, u, p) {
|
|
82
|
+
var k = t.displayName;
|
|
83
|
+
if (k)
|
|
84
|
+
return k;
|
|
85
|
+
var w = u.displayName || u.name || "";
|
|
86
|
+
return w !== "" ? p + "(" + w + ")" : p;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return
|
|
88
|
+
function b(t) {
|
|
89
|
+
return t.displayName || "Context";
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
-
if (
|
|
91
|
+
function D(t) {
|
|
92
|
+
if (t == null)
|
|
92
93
|
return null;
|
|
93
|
-
if (typeof
|
|
94
|
-
return
|
|
95
|
-
if (typeof
|
|
96
|
-
return
|
|
97
|
-
switch (
|
|
98
|
-
case
|
|
94
|
+
if (typeof t.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
95
|
+
return t.displayName || t.name || null;
|
|
96
|
+
if (typeof t == "string")
|
|
97
|
+
return t;
|
|
98
|
+
switch (t) {
|
|
99
|
+
case l:
|
|
99
100
|
return "Fragment";
|
|
100
|
-
case
|
|
101
|
+
case r:
|
|
101
102
|
return "Portal";
|
|
102
|
-
case
|
|
103
|
+
case i:
|
|
103
104
|
return "Profiler";
|
|
104
|
-
case
|
|
105
|
+
case a:
|
|
105
106
|
return "StrictMode";
|
|
106
|
-
case
|
|
107
|
+
case d:
|
|
107
108
|
return "Suspense";
|
|
108
|
-
case
|
|
109
|
+
case h:
|
|
109
110
|
return "SuspenseList";
|
|
110
111
|
}
|
|
111
|
-
if (typeof
|
|
112
|
-
switch (
|
|
113
|
-
case
|
|
114
|
-
var
|
|
115
|
-
return
|
|
112
|
+
if (typeof t == "object")
|
|
113
|
+
switch (t.$$typeof) {
|
|
114
|
+
case c:
|
|
115
|
+
var u = t;
|
|
116
|
+
return b(u) + ".Consumer";
|
|
117
|
+
case s:
|
|
118
|
+
var p = t;
|
|
119
|
+
return b(p._context) + ".Provider";
|
|
116
120
|
case f:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
var
|
|
123
|
-
return m !== null ? m : E(e.type) || "Memo";
|
|
124
|
-
case T: {
|
|
125
|
-
var v = e, y = v._payload, _ = v._init;
|
|
121
|
+
return K(t, t.render, "ForwardRef");
|
|
122
|
+
case v:
|
|
123
|
+
var k = t.displayName || null;
|
|
124
|
+
return k !== null ? k : D(t.type) || "Memo";
|
|
125
|
+
case x: {
|
|
126
|
+
var w = t, S = w._payload, E = w._init;
|
|
126
127
|
try {
|
|
127
|
-
return E(
|
|
128
|
+
return D(E(S));
|
|
128
129
|
} catch {
|
|
129
130
|
return null;
|
|
130
131
|
}
|
|
@@ -132,545 +133,545 @@ function yt() {
|
|
|
132
133
|
}
|
|
133
134
|
return null;
|
|
134
135
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
136
|
+
var B = Object.assign, Z = 0, Ge, Ke, qe, Xe, Ze, Qe, et;
|
|
137
|
+
function tt() {
|
|
137
138
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
139
|
+
tt.__reactDisabledLog = !0;
|
|
140
|
+
function Ft() {
|
|
140
141
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
143
|
-
var
|
|
142
|
+
if (Z === 0) {
|
|
143
|
+
Ge = console.log, Ke = console.info, qe = console.warn, Xe = console.error, Ze = console.group, Qe = console.groupCollapsed, et = console.groupEnd;
|
|
144
|
+
var t = {
|
|
144
145
|
configurable: !0,
|
|
145
146
|
enumerable: !0,
|
|
146
|
-
value:
|
|
147
|
+
value: tt,
|
|
147
148
|
writable: !0
|
|
148
149
|
};
|
|
149
150
|
Object.defineProperties(console, {
|
|
150
|
-
info:
|
|
151
|
-
log:
|
|
152
|
-
warn:
|
|
153
|
-
error:
|
|
154
|
-
group:
|
|
155
|
-
groupCollapsed:
|
|
156
|
-
groupEnd:
|
|
151
|
+
info: t,
|
|
152
|
+
log: t,
|
|
153
|
+
warn: t,
|
|
154
|
+
error: t,
|
|
155
|
+
group: t,
|
|
156
|
+
groupCollapsed: t,
|
|
157
|
+
groupEnd: t
|
|
157
158
|
});
|
|
158
159
|
}
|
|
159
|
-
|
|
160
|
+
Z++;
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
+
function It() {
|
|
163
164
|
{
|
|
164
|
-
if (
|
|
165
|
-
var
|
|
165
|
+
if (Z--, Z === 0) {
|
|
166
|
+
var t = {
|
|
166
167
|
configurable: !0,
|
|
167
168
|
enumerable: !0,
|
|
168
169
|
writable: !0
|
|
169
170
|
};
|
|
170
171
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
172
|
-
value:
|
|
172
|
+
log: B({}, t, {
|
|
173
|
+
value: Ge
|
|
173
174
|
}),
|
|
174
|
-
info:
|
|
175
|
-
value:
|
|
175
|
+
info: B({}, t, {
|
|
176
|
+
value: Ke
|
|
176
177
|
}),
|
|
177
|
-
warn:
|
|
178
|
-
value:
|
|
178
|
+
warn: B({}, t, {
|
|
179
|
+
value: qe
|
|
179
180
|
}),
|
|
180
|
-
error:
|
|
181
|
-
value:
|
|
181
|
+
error: B({}, t, {
|
|
182
|
+
value: Xe
|
|
182
183
|
}),
|
|
183
|
-
group:
|
|
184
|
-
value:
|
|
184
|
+
group: B({}, t, {
|
|
185
|
+
value: Ze
|
|
185
186
|
}),
|
|
186
|
-
groupCollapsed:
|
|
187
|
-
value:
|
|
187
|
+
groupCollapsed: B({}, t, {
|
|
188
|
+
value: Qe
|
|
188
189
|
}),
|
|
189
|
-
groupEnd:
|
|
190
|
-
value:
|
|
190
|
+
groupEnd: B({}, t, {
|
|
191
|
+
value: et
|
|
191
192
|
})
|
|
192
193
|
});
|
|
193
194
|
}
|
|
194
|
-
|
|
195
|
+
Z < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
198
|
+
var xe = R.ReactCurrentDispatcher, we;
|
|
199
|
+
function ce(t, u, p) {
|
|
199
200
|
{
|
|
200
|
-
if (
|
|
201
|
+
if (we === void 0)
|
|
201
202
|
try {
|
|
202
203
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
|
|
204
|
+
} catch (w) {
|
|
205
|
+
var k = w.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
we = k && k[1] || "";
|
|
206
207
|
}
|
|
207
208
|
return `
|
|
208
|
-
` +
|
|
209
|
+
` + we + t;
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
|
-
var
|
|
212
|
+
var Ce = !1, ue;
|
|
212
213
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
214
|
+
var $t = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
ue = new $t();
|
|
215
216
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!
|
|
217
|
+
function nt(t, u) {
|
|
218
|
+
if (!t || Ce)
|
|
218
219
|
return "";
|
|
219
220
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
221
|
+
var p = ue.get(t);
|
|
222
|
+
if (p !== void 0)
|
|
223
|
+
return p;
|
|
223
224
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
var
|
|
225
|
+
var k;
|
|
226
|
+
Ce = !0;
|
|
227
|
+
var w = Error.prepareStackTrace;
|
|
227
228
|
Error.prepareStackTrace = void 0;
|
|
228
|
-
var
|
|
229
|
-
|
|
229
|
+
var S;
|
|
230
|
+
S = xe.current, xe.current = null, Ft();
|
|
230
231
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
232
|
+
if (u) {
|
|
233
|
+
var E = function() {
|
|
233
234
|
throw Error();
|
|
234
235
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
236
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
236
237
|
set: function() {
|
|
237
238
|
throw Error();
|
|
238
239
|
}
|
|
239
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
241
|
try {
|
|
241
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(E, []);
|
|
242
243
|
} catch (q) {
|
|
243
|
-
|
|
244
|
+
k = q;
|
|
244
245
|
}
|
|
245
|
-
Reflect.construct(
|
|
246
|
+
Reflect.construct(t, [], E);
|
|
246
247
|
} else {
|
|
247
248
|
try {
|
|
248
|
-
|
|
249
|
+
E.call();
|
|
249
250
|
} catch (q) {
|
|
250
|
-
|
|
251
|
+
k = q;
|
|
251
252
|
}
|
|
252
|
-
|
|
253
|
+
t.call(E.prototype);
|
|
253
254
|
}
|
|
254
255
|
} else {
|
|
255
256
|
try {
|
|
256
257
|
throw Error();
|
|
257
258
|
} catch (q) {
|
|
258
|
-
|
|
259
|
+
k = q;
|
|
259
260
|
}
|
|
260
|
-
|
|
261
|
+
t();
|
|
261
262
|
}
|
|
262
263
|
} catch (q) {
|
|
263
|
-
if (q &&
|
|
264
|
-
for (var
|
|
265
|
-
`),
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
264
|
+
if (q && k && typeof q.stack == "string") {
|
|
265
|
+
for (var N = q.stack.split(`
|
|
266
|
+
`), U = k.stack.split(`
|
|
267
|
+
`), L = N.length - 1, F = U.length - 1; L >= 1 && F >= 0 && N[L] !== U[F]; )
|
|
268
|
+
F--;
|
|
269
|
+
for (; L >= 1 && F >= 0; L--, F--)
|
|
270
|
+
if (N[L] !== U[F]) {
|
|
271
|
+
if (L !== 1 || F !== 1)
|
|
271
272
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` +
|
|
275
|
-
return
|
|
273
|
+
if (L--, F--, F < 0 || N[L] !== U[F]) {
|
|
274
|
+
var Y = `
|
|
275
|
+
` + N[L].replace(" at new ", " at ");
|
|
276
|
+
return t.displayName && Y.includes("<anonymous>") && (Y = Y.replace("<anonymous>", t.displayName)), typeof t == "function" && ue.set(t, Y), Y;
|
|
276
277
|
}
|
|
277
|
-
while (
|
|
278
|
+
while (L >= 1 && F >= 0);
|
|
278
279
|
break;
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
} finally {
|
|
282
|
-
|
|
283
|
+
Ce = !1, xe.current = S, It(), Error.prepareStackTrace = w;
|
|
283
284
|
}
|
|
284
|
-
var
|
|
285
|
-
return typeof
|
|
285
|
+
var ne = t ? t.displayName || t.name : "", ht = ne ? ce(ne) : "";
|
|
286
|
+
return typeof t == "function" && ue.set(t, ht), ht;
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
288
|
+
function At(t, u, p) {
|
|
289
|
+
return nt(t, !1);
|
|
289
290
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
291
|
+
function Ut(t) {
|
|
292
|
+
var u = t.prototype;
|
|
293
|
+
return !!(u && u.isReactComponent);
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
-
if (
|
|
295
|
+
function fe(t, u, p) {
|
|
296
|
+
if (t == null)
|
|
296
297
|
return "";
|
|
297
|
-
if (typeof
|
|
298
|
-
return
|
|
299
|
-
if (typeof
|
|
300
|
-
return
|
|
301
|
-
switch (
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
298
|
+
if (typeof t == "function")
|
|
299
|
+
return nt(t, Ut(t));
|
|
300
|
+
if (typeof t == "string")
|
|
301
|
+
return ce(t);
|
|
302
|
+
switch (t) {
|
|
303
|
+
case d:
|
|
304
|
+
return ce("Suspense");
|
|
305
|
+
case h:
|
|
306
|
+
return ce("SuspenseList");
|
|
306
307
|
}
|
|
307
|
-
if (typeof
|
|
308
|
-
switch (
|
|
309
|
-
case
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
var
|
|
308
|
+
if (typeof t == "object")
|
|
309
|
+
switch (t.$$typeof) {
|
|
310
|
+
case f:
|
|
311
|
+
return At(t.render);
|
|
312
|
+
case v:
|
|
313
|
+
return fe(t.type, u, p);
|
|
314
|
+
case x: {
|
|
315
|
+
var k = t, w = k._payload, S = k._init;
|
|
315
316
|
try {
|
|
316
|
-
return
|
|
317
|
+
return fe(S(w), u, p);
|
|
317
318
|
} catch {
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
return "";
|
|
322
323
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
325
|
-
if (
|
|
326
|
-
var
|
|
327
|
-
|
|
324
|
+
var pe = Object.prototype.hasOwnProperty, rt = {}, at = R.ReactDebugCurrentFrame;
|
|
325
|
+
function de(t) {
|
|
326
|
+
if (t) {
|
|
327
|
+
var u = t._owner, p = fe(t.type, t._source, u ? u.type : null);
|
|
328
|
+
at.setExtraStackFrame(p);
|
|
328
329
|
} else
|
|
329
|
-
|
|
330
|
+
at.setExtraStackFrame(null);
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
+
function Vt(t, u, p, k, w) {
|
|
332
333
|
{
|
|
333
|
-
var
|
|
334
|
-
for (var
|
|
335
|
-
if (
|
|
336
|
-
var
|
|
334
|
+
var S = Function.call.bind(pe);
|
|
335
|
+
for (var E in t)
|
|
336
|
+
if (S(t, E)) {
|
|
337
|
+
var N = void 0;
|
|
337
338
|
try {
|
|
338
|
-
if (typeof
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
339
|
+
if (typeof t[E] != "function") {
|
|
340
|
+
var U = Error((k || "React class") + ": " + p + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw U.name = "Invariant Violation", U;
|
|
341
342
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
343
|
+
N = t[E](u, E, k, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
|
+
} catch (L) {
|
|
345
|
+
N = L;
|
|
345
346
|
}
|
|
346
|
-
|
|
347
|
+
N && !(N instanceof Error) && (de(w), g("%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).", k || "React class", p, E, typeof N), de(null)), N instanceof Error && !(N.message in rt) && (rt[N.message] = !0, de(w), g("Failed %s type: %s", p, N.message), de(null));
|
|
347
348
|
}
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
|
-
var
|
|
351
|
-
function
|
|
352
|
-
return
|
|
351
|
+
var Wt = Array.isArray;
|
|
352
|
+
function Re(t) {
|
|
353
|
+
return Wt(t);
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function Mt(t) {
|
|
355
356
|
{
|
|
356
|
-
var
|
|
357
|
-
return
|
|
357
|
+
var u = typeof Symbol == "function" && Symbol.toStringTag, p = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
358
|
+
return p;
|
|
358
359
|
}
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function Bt(t) {
|
|
361
362
|
try {
|
|
362
|
-
return
|
|
363
|
+
return ot(t), !1;
|
|
363
364
|
} catch {
|
|
364
365
|
return !0;
|
|
365
366
|
}
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
-
return "" +
|
|
368
|
+
function ot(t) {
|
|
369
|
+
return "" + t;
|
|
369
370
|
}
|
|
370
|
-
function
|
|
371
|
-
if (
|
|
372
|
-
return
|
|
371
|
+
function lt(t) {
|
|
372
|
+
if (Bt(t))
|
|
373
|
+
return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(t)), ot(t);
|
|
373
374
|
}
|
|
374
|
-
var
|
|
375
|
+
var ae = R.ReactCurrentOwner, Yt = {
|
|
375
376
|
key: !0,
|
|
376
377
|
ref: !0,
|
|
377
378
|
__self: !0,
|
|
378
379
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
380
|
+
}, it, st, Pe;
|
|
381
|
+
Pe = {};
|
|
382
|
+
function Jt(t) {
|
|
383
|
+
if (pe.call(t, "ref")) {
|
|
384
|
+
var u = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
385
|
+
if (u && u.isReactWarning)
|
|
385
386
|
return !1;
|
|
386
387
|
}
|
|
387
|
-
return
|
|
388
|
+
return t.ref !== void 0;
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
390
|
+
function Ht(t) {
|
|
391
|
+
if (pe.call(t, "key")) {
|
|
392
|
+
var u = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
393
|
+
if (u && u.isReactWarning)
|
|
393
394
|
return !1;
|
|
394
395
|
}
|
|
395
|
-
return
|
|
396
|
+
return t.key !== void 0;
|
|
396
397
|
}
|
|
397
|
-
function
|
|
398
|
-
if (typeof
|
|
399
|
-
var
|
|
400
|
-
|
|
398
|
+
function zt(t, u) {
|
|
399
|
+
if (typeof t.ref == "string" && ae.current && u && ae.current.stateNode !== u) {
|
|
400
|
+
var p = D(ae.current.type);
|
|
401
|
+
Pe[p] || (g('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(ae.current.type), t.ref), Pe[p] = !0);
|
|
401
402
|
}
|
|
402
403
|
}
|
|
403
|
-
function
|
|
404
|
+
function Gt(t, u) {
|
|
404
405
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
406
|
+
var p = function() {
|
|
407
|
+
it || (it = !0, g("%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)", u));
|
|
407
408
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
409
|
+
p.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
410
|
+
get: p,
|
|
410
411
|
configurable: !0
|
|
411
412
|
});
|
|
412
413
|
}
|
|
413
414
|
}
|
|
414
|
-
function
|
|
415
|
+
function Kt(t, u) {
|
|
415
416
|
{
|
|
416
|
-
var
|
|
417
|
-
|
|
417
|
+
var p = function() {
|
|
418
|
+
st || (st = !0, g("%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)", u));
|
|
418
419
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
420
|
+
p.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
421
|
+
get: p,
|
|
421
422
|
configurable: !0
|
|
422
423
|
});
|
|
423
424
|
}
|
|
424
425
|
}
|
|
425
|
-
var
|
|
426
|
-
var
|
|
426
|
+
var qt = function(t, u, p, k, w, S, E) {
|
|
427
|
+
var N = {
|
|
427
428
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
429
|
+
$$typeof: n,
|
|
429
430
|
// Built-in properties that belong on the element
|
|
430
|
-
type:
|
|
431
|
-
key:
|
|
432
|
-
ref:
|
|
433
|
-
props:
|
|
431
|
+
type: t,
|
|
432
|
+
key: u,
|
|
433
|
+
ref: p,
|
|
434
|
+
props: E,
|
|
434
435
|
// Record the component responsible for creating this element.
|
|
435
|
-
_owner:
|
|
436
|
+
_owner: S
|
|
436
437
|
};
|
|
437
|
-
return
|
|
438
|
+
return N._store = {}, Object.defineProperty(N._store, "validated", {
|
|
438
439
|
configurable: !1,
|
|
439
440
|
enumerable: !1,
|
|
440
441
|
writable: !0,
|
|
441
442
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
443
|
+
}), Object.defineProperty(N, "_self", {
|
|
443
444
|
configurable: !1,
|
|
444
445
|
enumerable: !1,
|
|
445
446
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.defineProperty(
|
|
447
|
+
value: k
|
|
448
|
+
}), Object.defineProperty(N, "_source", {
|
|
448
449
|
configurable: !1,
|
|
449
450
|
enumerable: !1,
|
|
450
451
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
452
|
+
value: w
|
|
453
|
+
}), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N;
|
|
453
454
|
};
|
|
454
|
-
function
|
|
455
|
+
function Xt(t, u, p, k, w) {
|
|
455
456
|
{
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
for (
|
|
459
|
-
|
|
460
|
-
if (
|
|
461
|
-
var
|
|
462
|
-
for (
|
|
463
|
-
|
|
457
|
+
var S, E = {}, N = null, U = null;
|
|
458
|
+
p !== void 0 && (lt(p), N = "" + p), Ht(u) && (lt(u.key), N = "" + u.key), Jt(u) && (U = u.ref, zt(u, w));
|
|
459
|
+
for (S in u)
|
|
460
|
+
pe.call(u, S) && !Yt.hasOwnProperty(S) && (E[S] = u[S]);
|
|
461
|
+
if (t && t.defaultProps) {
|
|
462
|
+
var L = t.defaultProps;
|
|
463
|
+
for (S in L)
|
|
464
|
+
E[S] === void 0 && (E[S] = L[S]);
|
|
464
465
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
466
|
+
if (N || U) {
|
|
467
|
+
var F = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
468
|
+
N && Gt(E, F), U && Kt(E, F);
|
|
468
469
|
}
|
|
469
|
-
return
|
|
470
|
+
return qt(t, N, U, w, k, ae.current, E);
|
|
470
471
|
}
|
|
471
472
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
474
|
-
if (
|
|
475
|
-
var
|
|
476
|
-
|
|
473
|
+
var Se = R.ReactCurrentOwner, ct = R.ReactDebugCurrentFrame;
|
|
474
|
+
function te(t) {
|
|
475
|
+
if (t) {
|
|
476
|
+
var u = t._owner, p = fe(t.type, t._source, u ? u.type : null);
|
|
477
|
+
ct.setExtraStackFrame(p);
|
|
477
478
|
} else
|
|
478
|
-
|
|
479
|
+
ct.setExtraStackFrame(null);
|
|
479
480
|
}
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
function
|
|
483
|
-
return typeof
|
|
481
|
+
var Oe;
|
|
482
|
+
Oe = !1;
|
|
483
|
+
function Te(t) {
|
|
484
|
+
return typeof t == "object" && t !== null && t.$$typeof === n;
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function ut() {
|
|
486
487
|
{
|
|
487
|
-
if (
|
|
488
|
-
var
|
|
489
|
-
if (
|
|
488
|
+
if (Se.current) {
|
|
489
|
+
var t = D(Se.current.type);
|
|
490
|
+
if (t)
|
|
490
491
|
return `
|
|
491
492
|
|
|
492
|
-
Check the render method of \`` +
|
|
493
|
+
Check the render method of \`` + t + "`.";
|
|
493
494
|
}
|
|
494
495
|
return "";
|
|
495
496
|
}
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Zt(t) {
|
|
498
499
|
{
|
|
499
|
-
if (
|
|
500
|
-
var
|
|
500
|
+
if (t !== void 0) {
|
|
501
|
+
var u = t.fileName.replace(/^.*[\\\/]/, ""), p = t.lineNumber;
|
|
501
502
|
return `
|
|
502
503
|
|
|
503
|
-
Check your code at ` +
|
|
504
|
+
Check your code at ` + u + ":" + p + ".";
|
|
504
505
|
}
|
|
505
506
|
return "";
|
|
506
507
|
}
|
|
507
508
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
509
|
+
var ft = {};
|
|
510
|
+
function Qt(t) {
|
|
510
511
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
513
|
-
var
|
|
514
|
-
|
|
512
|
+
var u = ut();
|
|
513
|
+
if (!u) {
|
|
514
|
+
var p = typeof t == "string" ? t : t.displayName || t.name;
|
|
515
|
+
p && (u = `
|
|
515
516
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
517
|
+
Check the top-level render call using <` + p + ">.");
|
|
517
518
|
}
|
|
518
|
-
return
|
|
519
|
+
return u;
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
|
-
function
|
|
522
|
+
function pt(t, u) {
|
|
522
523
|
{
|
|
523
|
-
if (!
|
|
524
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
524
525
|
return;
|
|
525
|
-
|
|
526
|
-
var
|
|
527
|
-
if (
|
|
526
|
+
t._store.validated = !0;
|
|
527
|
+
var p = Qt(u);
|
|
528
|
+
if (ft[p])
|
|
528
529
|
return;
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
|
|
530
|
+
ft[p] = !0;
|
|
531
|
+
var k = "";
|
|
532
|
+
t && t._owner && t._owner !== Se.current && (k = " It was passed a child from " + D(t._owner.type) + "."), te(t), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, k), te(null);
|
|
532
533
|
}
|
|
533
534
|
}
|
|
534
|
-
function
|
|
535
|
+
function dt(t, u) {
|
|
535
536
|
{
|
|
536
|
-
if (typeof
|
|
537
|
+
if (typeof t != "object")
|
|
537
538
|
return;
|
|
538
|
-
if (
|
|
539
|
-
for (var
|
|
540
|
-
var
|
|
541
|
-
|
|
539
|
+
if (Re(t))
|
|
540
|
+
for (var p = 0; p < t.length; p++) {
|
|
541
|
+
var k = t[p];
|
|
542
|
+
Te(k) && pt(k, u);
|
|
542
543
|
}
|
|
543
|
-
else if (
|
|
544
|
-
|
|
545
|
-
else if (
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var
|
|
549
|
-
|
|
544
|
+
else if (Te(t))
|
|
545
|
+
t._store && (t._store.validated = !0);
|
|
546
|
+
else if (t) {
|
|
547
|
+
var w = T(t);
|
|
548
|
+
if (typeof w == "function" && w !== t.entries)
|
|
549
|
+
for (var S = w.call(t), E; !(E = S.next()).done; )
|
|
550
|
+
Te(E.value) && pt(E.value, u);
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
553
|
}
|
|
553
|
-
function
|
|
554
|
+
function en(t) {
|
|
554
555
|
{
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
556
|
+
var u = t.type;
|
|
557
|
+
if (u == null || typeof u == "string")
|
|
557
558
|
return;
|
|
558
|
-
var
|
|
559
|
-
if (typeof
|
|
560
|
-
|
|
561
|
-
else if (typeof
|
|
559
|
+
var p;
|
|
560
|
+
if (typeof u == "function")
|
|
561
|
+
p = u.propTypes;
|
|
562
|
+
else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
|
|
562
563
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
|
|
564
|
+
u.$$typeof === v))
|
|
565
|
+
p = u.propTypes;
|
|
565
566
|
else
|
|
566
567
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
} else if (
|
|
571
|
-
|
|
572
|
-
var
|
|
573
|
-
|
|
568
|
+
if (p) {
|
|
569
|
+
var k = D(u);
|
|
570
|
+
Vt(p, t.props, "prop", k, t);
|
|
571
|
+
} else if (u.PropTypes !== void 0 && !Oe) {
|
|
572
|
+
Oe = !0;
|
|
573
|
+
var w = D(u);
|
|
574
|
+
g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", w || "Unknown");
|
|
574
575
|
}
|
|
575
|
-
typeof
|
|
576
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
577
|
}
|
|
577
578
|
}
|
|
578
|
-
function
|
|
579
|
+
function tn(t) {
|
|
579
580
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
581
|
+
for (var u = Object.keys(t.props), p = 0; p < u.length; p++) {
|
|
582
|
+
var k = u[p];
|
|
583
|
+
if (k !== "children" && k !== "key") {
|
|
584
|
+
te(t), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), te(null);
|
|
584
585
|
break;
|
|
585
586
|
}
|
|
586
587
|
}
|
|
587
|
-
|
|
588
|
+
t.ref !== null && (te(t), g("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
|
|
588
589
|
}
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
+
function mt(t, u, p, k, w, S) {
|
|
591
592
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
594
|
-
var
|
|
595
|
-
(
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
|
|
593
|
+
var E = J(t);
|
|
594
|
+
if (!E) {
|
|
595
|
+
var N = "";
|
|
596
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
597
|
+
var U = Zt(w);
|
|
598
|
+
U ? N += U : N += ut();
|
|
599
|
+
var L;
|
|
600
|
+
t === null ? L = "null" : Re(t) ? L = "array" : t !== void 0 && t.$$typeof === n ? (L = "<" + (D(t.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : L = typeof t, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", L, N);
|
|
600
601
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
609
|
-
for (var
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
602
|
+
var F = Xt(t, u, p, w, S);
|
|
603
|
+
if (F == null)
|
|
604
|
+
return F;
|
|
605
|
+
if (E) {
|
|
606
|
+
var Y = u.children;
|
|
607
|
+
if (Y !== void 0)
|
|
608
|
+
if (k)
|
|
609
|
+
if (Re(Y)) {
|
|
610
|
+
for (var ne = 0; ne < Y.length; ne++)
|
|
611
|
+
dt(Y[ne], t);
|
|
612
|
+
Object.freeze && Object.freeze(Y);
|
|
612
613
|
} else
|
|
613
|
-
|
|
614
|
+
g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
615
|
else
|
|
615
|
-
|
|
616
|
+
dt(Y, t);
|
|
616
617
|
}
|
|
617
|
-
return
|
|
618
|
+
return t === l ? tn(F) : en(F), F;
|
|
618
619
|
}
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
621
|
+
function nn(t, u, p) {
|
|
622
|
+
return mt(t, u, p, !0);
|
|
622
623
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
624
|
+
function rn(t, u, p) {
|
|
625
|
+
return mt(t, u, p, !1);
|
|
625
626
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
627
|
+
var an = rn, on = nn;
|
|
628
|
+
le.Fragment = l, le.jsx = an, le.jsxs = on;
|
|
629
|
+
}()), le;
|
|
629
630
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
const
|
|
633
|
-
function
|
|
634
|
-
return !
|
|
631
|
+
process.env.NODE_ENV === "production" ? Fe.exports = cn() : Fe.exports = un();
|
|
632
|
+
var Me = Fe.exports;
|
|
633
|
+
const X = Me.Fragment, o = Me.jsx, m = Me.jsxs, je = {}, fn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
634
|
+
function pn(e, n) {
|
|
635
|
+
return !je[e] && typeof window.fetch == "function" && (je[e] = window.fetch(n + e + ".svg").then((r) => r.ok ? r.text() : (console.error("Missing icon: " + n + e + ".svg"), fn)).then((r) => r)), Promise.resolve(je[e]);
|
|
635
636
|
}
|
|
636
|
-
const
|
|
637
|
-
const
|
|
638
|
-
return
|
|
639
|
-
if (!
|
|
637
|
+
const y = ({ name: e, path: n, className: r = "", ...l }) => {
|
|
638
|
+
const a = "https://punkt-cdn.oslo.kommune.no/7.2/icons/", [i, s] = ie(null);
|
|
639
|
+
return yt(() => {
|
|
640
|
+
if (!e)
|
|
640
641
|
return;
|
|
641
|
-
|
|
642
|
-
}, [
|
|
642
|
+
pn(e, n || a).then((f) => s(f));
|
|
643
|
+
}, [e, n, a]), i ? /* @__PURE__ */ o(
|
|
643
644
|
"span",
|
|
644
645
|
{
|
|
645
|
-
className: `pkt-icon ${
|
|
646
|
-
dangerouslySetInnerHTML: { __html:
|
|
647
|
-
...
|
|
646
|
+
className: `pkt-icon ${r}`,
|
|
647
|
+
dangerouslySetInnerHTML: { __html: i },
|
|
648
|
+
...l
|
|
648
649
|
}
|
|
649
650
|
) : null;
|
|
650
|
-
},
|
|
651
|
+
}, dn = H(
|
|
651
652
|
({
|
|
652
|
-
children:
|
|
653
|
-
className:
|
|
654
|
-
skin:
|
|
655
|
-
closeAlert:
|
|
656
|
-
onClose:
|
|
657
|
-
title:
|
|
658
|
-
date:
|
|
659
|
-
ariaLive:
|
|
660
|
-
...
|
|
661
|
-
},
|
|
662
|
-
const
|
|
663
|
-
|
|
653
|
+
children: e,
|
|
654
|
+
className: n,
|
|
655
|
+
skin: r = "info",
|
|
656
|
+
closeAlert: l = !1,
|
|
657
|
+
onClose: a,
|
|
658
|
+
title: i,
|
|
659
|
+
date: s,
|
|
660
|
+
ariaLive: c = "polite",
|
|
661
|
+
...f
|
|
662
|
+
}, d) => {
|
|
663
|
+
const h = [n, "pkt-alert", r && `pkt-alert--${r}`].filter(Boolean).join(" "), [v, x] = ie(!0), C = () => {
|
|
664
|
+
x(!1), a && a();
|
|
664
665
|
};
|
|
665
|
-
return
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
|
|
666
|
+
return v ? /* @__PURE__ */ m("div", { ...f, className: h, "aria-live": c, ref: d, children: [
|
|
667
|
+
/* @__PURE__ */ o(
|
|
668
|
+
y,
|
|
668
669
|
{
|
|
669
670
|
className: "pkt-alert__icon",
|
|
670
|
-
name:
|
|
671
|
+
name: r === "info" ? "alert-information" : `alert-${r}`
|
|
671
672
|
}
|
|
672
673
|
),
|
|
673
|
-
|
|
674
|
+
l && /* @__PURE__ */ o("div", { className: "pkt-alert__close", children: /* @__PURE__ */ o(
|
|
674
675
|
"button",
|
|
675
676
|
{
|
|
676
677
|
type: "button",
|
|
@@ -678,401 +679,1079 @@ const b = ({ name: n, path: u, className: i = "", ...s }) => {
|
|
|
678
679
|
tabIndex: 0,
|
|
679
680
|
"aria-label": "close",
|
|
680
681
|
onClick: C,
|
|
681
|
-
children: /* @__PURE__ */
|
|
682
|
+
children: /* @__PURE__ */ o(y, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
682
683
|
}
|
|
683
684
|
) }),
|
|
684
|
-
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
|
|
685
|
+
i && /* @__PURE__ */ o("div", { className: "pkt-alert__title", children: i }),
|
|
686
|
+
/* @__PURE__ */ o("div", { className: "pkt-alert__text", children: e }),
|
|
687
|
+
s && /* @__PURE__ */ m("div", { className: "pkt-alert__date", children: [
|
|
687
688
|
"Sist oppdatert: ",
|
|
688
|
-
|
|
689
|
+
s
|
|
689
690
|
] })
|
|
690
691
|
] }) : null;
|
|
691
692
|
}
|
|
692
|
-
),
|
|
693
|
-
({ href:
|
|
694
|
-
const
|
|
695
|
-
|
|
693
|
+
), nr = H(
|
|
694
|
+
({ href: e, text: n, onClick: r, className: l, ...a }, i) => {
|
|
695
|
+
const s = [
|
|
696
|
+
l,
|
|
696
697
|
"pkt-back-link"
|
|
697
698
|
].filter(Boolean).join(" ");
|
|
698
|
-
return /* @__PURE__ */
|
|
699
|
-
|
|
700
|
-
}, ...
|
|
701
|
-
/* @__PURE__ */
|
|
702
|
-
/* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ o("nav", { ref: i, className: s, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ m("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
|
|
700
|
+
r && r();
|
|
701
|
+
}, ...a, children: [
|
|
702
|
+
/* @__PURE__ */ o(y, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
|
|
703
|
+
/* @__PURE__ */ o("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
|
|
703
704
|
] }) });
|
|
704
705
|
}
|
|
705
|
-
)
|
|
706
|
+
);
|
|
707
|
+
/**
|
|
708
|
+
* @remix-run/router v1.7.1
|
|
709
|
+
*
|
|
710
|
+
* Copyright (c) Remix Software Inc.
|
|
711
|
+
*
|
|
712
|
+
* This source code is licensed under the MIT license found in the
|
|
713
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
714
|
+
*
|
|
715
|
+
* @license MIT
|
|
716
|
+
*/
|
|
717
|
+
function Ie() {
|
|
718
|
+
return Ie = Object.assign ? Object.assign.bind() : function(e) {
|
|
719
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
720
|
+
var r = arguments[n];
|
|
721
|
+
for (var l in r)
|
|
722
|
+
Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
|
|
723
|
+
}
|
|
724
|
+
return e;
|
|
725
|
+
}, Ie.apply(this, arguments);
|
|
726
|
+
}
|
|
727
|
+
var _t;
|
|
728
|
+
(function(e) {
|
|
729
|
+
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
730
|
+
})(_t || (_t = {}));
|
|
731
|
+
function I(e, n) {
|
|
732
|
+
if (e === !1 || e === null || typeof e > "u")
|
|
733
|
+
throw new Error(n);
|
|
734
|
+
}
|
|
735
|
+
function ge(e, n) {
|
|
736
|
+
if (!e) {
|
|
737
|
+
typeof console < "u" && console.warn(n);
|
|
738
|
+
try {
|
|
739
|
+
throw new Error(n);
|
|
740
|
+
} catch {
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
function $e(e) {
|
|
745
|
+
let {
|
|
746
|
+
pathname: n = "/",
|
|
747
|
+
search: r = "",
|
|
748
|
+
hash: l = ""
|
|
749
|
+
} = e;
|
|
750
|
+
return r && r !== "?" && (n += r.charAt(0) === "?" ? r : "?" + r), l && l !== "#" && (n += l.charAt(0) === "#" ? l : "#" + l), n;
|
|
751
|
+
}
|
|
752
|
+
function Et(e) {
|
|
753
|
+
let n = {};
|
|
754
|
+
if (e) {
|
|
755
|
+
let r = e.indexOf("#");
|
|
756
|
+
r >= 0 && (n.hash = e.substr(r), e = e.substr(0, r));
|
|
757
|
+
let l = e.indexOf("?");
|
|
758
|
+
l >= 0 && (n.search = e.substr(l), e = e.substr(0, l)), e && (n.pathname = e);
|
|
759
|
+
}
|
|
760
|
+
return n;
|
|
761
|
+
}
|
|
762
|
+
var bt;
|
|
763
|
+
(function(e) {
|
|
764
|
+
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
765
|
+
})(bt || (bt = {}));
|
|
766
|
+
function Ae(e, n) {
|
|
767
|
+
if (n === "/")
|
|
768
|
+
return e;
|
|
769
|
+
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
770
|
+
return null;
|
|
771
|
+
let r = n.endsWith("/") ? n.length - 1 : n.length, l = e.charAt(r);
|
|
772
|
+
return l && l !== "/" ? null : e.slice(r) || "/";
|
|
773
|
+
}
|
|
774
|
+
function mn(e, n) {
|
|
775
|
+
n === void 0 && (n = "/");
|
|
776
|
+
let {
|
|
777
|
+
pathname: r,
|
|
778
|
+
search: l = "",
|
|
779
|
+
hash: a = ""
|
|
780
|
+
} = typeof e == "string" ? Et(e) : e;
|
|
781
|
+
return {
|
|
782
|
+
pathname: r ? r.startsWith("/") ? r : hn(r, n) : n,
|
|
783
|
+
search: kn(l),
|
|
784
|
+
hash: vn(a)
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
function hn(e, n) {
|
|
788
|
+
let r = n.replace(/\/+$/, "").split("/");
|
|
789
|
+
return e.split("/").forEach((a) => {
|
|
790
|
+
a === ".." ? r.length > 1 && r.pop() : a !== "." && r.push(a);
|
|
791
|
+
}), r.length > 1 ? r.join("/") : "/";
|
|
792
|
+
}
|
|
793
|
+
function De(e, n, r, l) {
|
|
794
|
+
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(l) + "]. Please separate it out to the ") + ("`to." + r + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
795
|
+
}
|
|
796
|
+
function xt(e) {
|
|
797
|
+
return e.filter((n, r) => r === 0 || n.route.path && n.route.path.length > 0);
|
|
798
|
+
}
|
|
799
|
+
function wt(e, n, r, l) {
|
|
800
|
+
l === void 0 && (l = !1);
|
|
801
|
+
let a;
|
|
802
|
+
typeof e == "string" ? a = Et(e) : (a = Ie({}, e), I(!a.pathname || !a.pathname.includes("?"), De("?", "pathname", "search", a)), I(!a.pathname || !a.pathname.includes("#"), De("#", "pathname", "hash", a)), I(!a.search || !a.search.includes("#"), De("#", "search", "hash", a)));
|
|
803
|
+
let i = e === "" || a.pathname === "", s = i ? "/" : a.pathname, c;
|
|
804
|
+
if (l || s == null)
|
|
805
|
+
c = r;
|
|
806
|
+
else {
|
|
807
|
+
let v = n.length - 1;
|
|
808
|
+
if (s.startsWith("..")) {
|
|
809
|
+
let x = s.split("/");
|
|
810
|
+
for (; x[0] === ".."; )
|
|
811
|
+
x.shift(), v -= 1;
|
|
812
|
+
a.pathname = x.join("/");
|
|
813
|
+
}
|
|
814
|
+
c = v >= 0 ? n[v] : "/";
|
|
815
|
+
}
|
|
816
|
+
let f = mn(a, c), d = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && r.endsWith("/");
|
|
817
|
+
return !f.pathname.endsWith("/") && (d || h) && (f.pathname += "/"), f;
|
|
818
|
+
}
|
|
819
|
+
const Be = (e) => e.join("/").replace(/\/\/+/g, "/"), kn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, vn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ct = ["post", "put", "patch", "delete"];
|
|
820
|
+
new Set(Ct);
|
|
821
|
+
const _n = ["get", ...Ct];
|
|
822
|
+
new Set(_n);
|
|
823
|
+
/**
|
|
824
|
+
* React Router v6.14.1
|
|
825
|
+
*
|
|
826
|
+
* Copyright (c) Remix Software Inc.
|
|
827
|
+
*
|
|
828
|
+
* This source code is licensed under the MIT license found in the
|
|
829
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
830
|
+
*
|
|
831
|
+
* @license MIT
|
|
832
|
+
*/
|
|
833
|
+
function Ue() {
|
|
834
|
+
return Ue = Object.assign ? Object.assign.bind() : function(e) {
|
|
835
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
836
|
+
var r = arguments[n];
|
|
837
|
+
for (var l in r)
|
|
838
|
+
Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
|
|
839
|
+
}
|
|
840
|
+
return e;
|
|
841
|
+
}, Ue.apply(this, arguments);
|
|
842
|
+
}
|
|
843
|
+
const Ne = /* @__PURE__ */ _.createContext(null);
|
|
844
|
+
process.env.NODE_ENV !== "production" && (Ne.displayName = "DataRouter");
|
|
845
|
+
const Rt = /* @__PURE__ */ _.createContext(null);
|
|
846
|
+
process.env.NODE_ENV !== "production" && (Rt.displayName = "DataRouterState");
|
|
847
|
+
const bn = /* @__PURE__ */ _.createContext(null);
|
|
848
|
+
process.env.NODE_ENV !== "production" && (bn.displayName = "Await");
|
|
849
|
+
const Q = /* @__PURE__ */ _.createContext(null);
|
|
850
|
+
process.env.NODE_ENV !== "production" && (Q.displayName = "Navigation");
|
|
851
|
+
const Ye = /* @__PURE__ */ _.createContext(null);
|
|
852
|
+
process.env.NODE_ENV !== "production" && (Ye.displayName = "Location");
|
|
853
|
+
const re = /* @__PURE__ */ _.createContext({
|
|
854
|
+
outlet: null,
|
|
855
|
+
matches: [],
|
|
856
|
+
isDataRoute: !1
|
|
857
|
+
});
|
|
858
|
+
process.env.NODE_ENV !== "production" && (re.displayName = "Route");
|
|
859
|
+
const gn = /* @__PURE__ */ _.createContext(null);
|
|
860
|
+
process.env.NODE_ENV !== "production" && (gn.displayName = "RouteError");
|
|
861
|
+
function Nn(e, n) {
|
|
862
|
+
let {
|
|
863
|
+
relative: r
|
|
864
|
+
} = n === void 0 ? {} : n;
|
|
865
|
+
Je() || (process.env.NODE_ENV !== "production" ? I(
|
|
866
|
+
!1,
|
|
867
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
868
|
+
// router loaded. We can help them understand how to avoid that.
|
|
869
|
+
"useHref() may be used only in the context of a <Router> component."
|
|
870
|
+
) : I(!1));
|
|
871
|
+
let {
|
|
872
|
+
basename: l,
|
|
873
|
+
navigator: a
|
|
874
|
+
} = _.useContext(Q), {
|
|
875
|
+
hash: i,
|
|
876
|
+
pathname: s,
|
|
877
|
+
search: c
|
|
878
|
+
} = ye(e, {
|
|
879
|
+
relative: r
|
|
880
|
+
}), f = s;
|
|
881
|
+
return l !== "/" && (f = s === "/" ? l : Be([l, s])), a.createHref({
|
|
882
|
+
pathname: f,
|
|
883
|
+
search: c,
|
|
884
|
+
hash: i
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
function Je() {
|
|
888
|
+
return _.useContext(Ye) != null;
|
|
889
|
+
}
|
|
890
|
+
function se() {
|
|
891
|
+
return Je() || (process.env.NODE_ENV !== "production" ? I(
|
|
892
|
+
!1,
|
|
893
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
894
|
+
// router loaded. We can help them understand how to avoid that.
|
|
895
|
+
"useLocation() may be used only in the context of a <Router> component."
|
|
896
|
+
) : I(!1)), _.useContext(Ye).location;
|
|
897
|
+
}
|
|
898
|
+
const Pt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
899
|
+
function St(e) {
|
|
900
|
+
_.useContext(Q).static || _.useLayoutEffect(e);
|
|
901
|
+
}
|
|
902
|
+
function yn() {
|
|
903
|
+
let {
|
|
904
|
+
isDataRoute: e
|
|
905
|
+
} = _.useContext(re);
|
|
906
|
+
return e ? Rn() : En();
|
|
907
|
+
}
|
|
908
|
+
function En() {
|
|
909
|
+
Je() || (process.env.NODE_ENV !== "production" ? I(
|
|
910
|
+
!1,
|
|
911
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
912
|
+
// router loaded. We can help them understand how to avoid that.
|
|
913
|
+
"useNavigate() may be used only in the context of a <Router> component."
|
|
914
|
+
) : I(!1));
|
|
915
|
+
let e = _.useContext(Ne), {
|
|
916
|
+
basename: n,
|
|
917
|
+
navigator: r
|
|
918
|
+
} = _.useContext(Q), {
|
|
919
|
+
matches: l
|
|
920
|
+
} = _.useContext(re), {
|
|
921
|
+
pathname: a
|
|
922
|
+
} = se(), i = JSON.stringify(xt(l).map((f) => f.pathnameBase)), s = _.useRef(!1);
|
|
923
|
+
return St(() => {
|
|
924
|
+
s.current = !0;
|
|
925
|
+
}), _.useCallback(function(f, d) {
|
|
926
|
+
if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && ge(s.current, Pt), !s.current)
|
|
927
|
+
return;
|
|
928
|
+
if (typeof f == "number") {
|
|
929
|
+
r.go(f);
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
let h = wt(f, JSON.parse(i), a, d.relative === "path");
|
|
933
|
+
e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : Be([n, h.pathname])), (d.replace ? r.replace : r.push)(h, d.state, d);
|
|
934
|
+
}, [n, r, i, a, e]);
|
|
935
|
+
}
|
|
936
|
+
function ye(e, n) {
|
|
937
|
+
let {
|
|
938
|
+
relative: r
|
|
939
|
+
} = n === void 0 ? {} : n, {
|
|
940
|
+
matches: l
|
|
941
|
+
} = _.useContext(re), {
|
|
942
|
+
pathname: a
|
|
943
|
+
} = se(), i = JSON.stringify(xt(l).map((s) => s.pathnameBase));
|
|
944
|
+
return _.useMemo(() => wt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
|
|
945
|
+
}
|
|
946
|
+
var Ve;
|
|
947
|
+
(function(e) {
|
|
948
|
+
e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate";
|
|
949
|
+
})(Ve || (Ve = {}));
|
|
950
|
+
var ve;
|
|
951
|
+
(function(e) {
|
|
952
|
+
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";
|
|
953
|
+
})(ve || (ve = {}));
|
|
954
|
+
function Ot(e) {
|
|
955
|
+
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
956
|
+
}
|
|
957
|
+
function xn(e) {
|
|
958
|
+
let n = _.useContext(Ne);
|
|
959
|
+
return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
|
|
960
|
+
}
|
|
961
|
+
function wn(e) {
|
|
962
|
+
let n = _.useContext(re);
|
|
963
|
+
return n || (process.env.NODE_ENV !== "production" ? I(!1, Ot(e)) : I(!1)), n;
|
|
964
|
+
}
|
|
965
|
+
function Tt(e) {
|
|
966
|
+
let n = wn(e), r = n.matches[n.matches.length - 1];
|
|
967
|
+
return r.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), r.route.id;
|
|
968
|
+
}
|
|
969
|
+
function Cn() {
|
|
970
|
+
return Tt(ve.UseRouteId);
|
|
971
|
+
}
|
|
972
|
+
function Rn() {
|
|
973
|
+
let {
|
|
974
|
+
router: e
|
|
975
|
+
} = xn(Ve.UseNavigateStable), n = Tt(ve.UseNavigateStable), r = _.useRef(!1);
|
|
976
|
+
return St(() => {
|
|
977
|
+
r.current = !0;
|
|
978
|
+
}), _.useCallback(function(a, i) {
|
|
979
|
+
i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && ge(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Ue({
|
|
980
|
+
fromRouteId: n
|
|
981
|
+
}, i)));
|
|
982
|
+
}, [e, n]);
|
|
983
|
+
}
|
|
984
|
+
var gt;
|
|
985
|
+
(function(e) {
|
|
986
|
+
e[e.pending = 0] = "pending", e[e.success = 1] = "success", e[e.error = 2] = "error";
|
|
987
|
+
})(gt || (gt = {}));
|
|
988
|
+
new Promise(() => {
|
|
989
|
+
});
|
|
990
|
+
/**
|
|
991
|
+
* React Router DOM v6.14.1
|
|
992
|
+
*
|
|
993
|
+
* Copyright (c) Remix Software Inc.
|
|
994
|
+
*
|
|
995
|
+
* This source code is licensed under the MIT license found in the
|
|
996
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
997
|
+
*
|
|
998
|
+
* @license MIT
|
|
999
|
+
*/
|
|
1000
|
+
function ee() {
|
|
1001
|
+
return ee = Object.assign ? Object.assign.bind() : function(e) {
|
|
1002
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
1003
|
+
var r = arguments[n];
|
|
1004
|
+
for (var l in r)
|
|
1005
|
+
Object.prototype.hasOwnProperty.call(r, l) && (e[l] = r[l]);
|
|
1006
|
+
}
|
|
1007
|
+
return e;
|
|
1008
|
+
}, ee.apply(this, arguments);
|
|
1009
|
+
}
|
|
1010
|
+
function He(e, n) {
|
|
1011
|
+
if (e == null)
|
|
1012
|
+
return {};
|
|
1013
|
+
var r = {}, l = Object.keys(e), a, i;
|
|
1014
|
+
for (i = 0; i < l.length; i++)
|
|
1015
|
+
a = l[i], !(n.indexOf(a) >= 0) && (r[a] = e[a]);
|
|
1016
|
+
return r;
|
|
1017
|
+
}
|
|
1018
|
+
const he = "get", ke = "application/x-www-form-urlencoded";
|
|
1019
|
+
function Ee(e) {
|
|
1020
|
+
return e != null && typeof e.tagName == "string";
|
|
1021
|
+
}
|
|
1022
|
+
function Pn(e) {
|
|
1023
|
+
return Ee(e) && e.tagName.toLowerCase() === "button";
|
|
1024
|
+
}
|
|
1025
|
+
function Sn(e) {
|
|
1026
|
+
return Ee(e) && e.tagName.toLowerCase() === "form";
|
|
1027
|
+
}
|
|
1028
|
+
function On(e) {
|
|
1029
|
+
return Ee(e) && e.tagName.toLowerCase() === "input";
|
|
1030
|
+
}
|
|
1031
|
+
function Tn(e) {
|
|
1032
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1033
|
+
}
|
|
1034
|
+
function jn(e, n) {
|
|
1035
|
+
return e.button === 0 && // Ignore everything but left clicks
|
|
1036
|
+
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
1037
|
+
!Tn(e);
|
|
1038
|
+
}
|
|
1039
|
+
let me = null;
|
|
1040
|
+
function Dn() {
|
|
1041
|
+
if (me === null)
|
|
1042
|
+
try {
|
|
1043
|
+
new FormData(
|
|
1044
|
+
document.createElement("form"),
|
|
1045
|
+
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1046
|
+
0
|
|
1047
|
+
), me = !1;
|
|
1048
|
+
} catch {
|
|
1049
|
+
me = !0;
|
|
1050
|
+
}
|
|
1051
|
+
return me;
|
|
1052
|
+
}
|
|
1053
|
+
const Ln = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
1054
|
+
function Le(e) {
|
|
1055
|
+
return e != null && !Ln.has(e) ? (process.env.NODE_ENV !== "production" && ge(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + ke + '"')), null) : e;
|
|
1056
|
+
}
|
|
1057
|
+
function Fn(e, n) {
|
|
1058
|
+
let r, l, a, i, s;
|
|
1059
|
+
if (Sn(e)) {
|
|
1060
|
+
let c = e.getAttribute("action");
|
|
1061
|
+
l = c ? Ae(c, n) : null, r = e.getAttribute("method") || he, a = Le(e.getAttribute("enctype")) || ke, i = new FormData(e);
|
|
1062
|
+
} else if (Pn(e) || On(e) && (e.type === "submit" || e.type === "image")) {
|
|
1063
|
+
let c = e.form;
|
|
1064
|
+
if (c == null)
|
|
1065
|
+
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
1066
|
+
let f = e.getAttribute("formaction") || c.getAttribute("action");
|
|
1067
|
+
if (l = f ? Ae(f, n) : null, r = e.getAttribute("formmethod") || c.getAttribute("method") || he, a = Le(e.getAttribute("formenctype")) || Le(c.getAttribute("enctype")) || ke, i = new FormData(c, e), !Dn()) {
|
|
1068
|
+
let {
|
|
1069
|
+
name: d,
|
|
1070
|
+
type: h,
|
|
1071
|
+
value: v
|
|
1072
|
+
} = e;
|
|
1073
|
+
if (h === "image") {
|
|
1074
|
+
let x = d ? d + "." : "";
|
|
1075
|
+
i.append(x + "x", "0"), i.append(x + "y", "0");
|
|
1076
|
+
} else
|
|
1077
|
+
d && i.append(d, v);
|
|
1078
|
+
}
|
|
1079
|
+
} else {
|
|
1080
|
+
if (Ee(e))
|
|
1081
|
+
throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
|
|
1082
|
+
r = he, l = null, a = ke, s = e;
|
|
1083
|
+
}
|
|
1084
|
+
return i && a === "text/plain" && (s = i, i = void 0), {
|
|
1085
|
+
action: l,
|
|
1086
|
+
method: r.toLowerCase(),
|
|
1087
|
+
encType: a,
|
|
1088
|
+
formData: i,
|
|
1089
|
+
body: s
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
const In = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"], $n = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"], An = ["reloadDocument", "replace", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
|
|
1093
|
+
process.env.NODE_ENV;
|
|
1094
|
+
const Un = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Vn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, _e = /* @__PURE__ */ _.forwardRef(function(n, r) {
|
|
1095
|
+
let {
|
|
1096
|
+
onClick: l,
|
|
1097
|
+
relative: a,
|
|
1098
|
+
reloadDocument: i,
|
|
1099
|
+
replace: s,
|
|
1100
|
+
state: c,
|
|
1101
|
+
target: f,
|
|
1102
|
+
to: d,
|
|
1103
|
+
preventScrollReset: h
|
|
1104
|
+
} = n, v = He(n, In), {
|
|
1105
|
+
basename: x
|
|
1106
|
+
} = _.useContext(Q), C, O = !1;
|
|
1107
|
+
if (typeof d == "string" && Vn.test(d) && (C = d, Un))
|
|
1108
|
+
try {
|
|
1109
|
+
let g = new URL(window.location.href), j = d.startsWith("//") ? new URL(g.protocol + d) : new URL(d), $ = Ae(j.pathname, x);
|
|
1110
|
+
j.origin === g.origin && $ != null ? d = $ + j.search + j.hash : O = !0;
|
|
1111
|
+
} catch {
|
|
1112
|
+
process.env.NODE_ENV !== "production" && ge(!1, '<Link to="' + d + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
1113
|
+
}
|
|
1114
|
+
let P = Nn(d, {
|
|
1115
|
+
relative: a
|
|
1116
|
+
}), T = Jn(d, {
|
|
1117
|
+
replace: s,
|
|
1118
|
+
state: c,
|
|
1119
|
+
target: f,
|
|
1120
|
+
preventScrollReset: h,
|
|
1121
|
+
relative: a
|
|
1122
|
+
});
|
|
1123
|
+
function R(g) {
|
|
1124
|
+
l && l(g), g.defaultPrevented || T(g);
|
|
1125
|
+
}
|
|
1126
|
+
return (
|
|
1127
|
+
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1128
|
+
/* @__PURE__ */ _.createElement("a", ee({}, v, {
|
|
1129
|
+
href: C || P,
|
|
1130
|
+
onClick: O || i ? l : R,
|
|
1131
|
+
ref: r,
|
|
1132
|
+
target: f
|
|
1133
|
+
}))
|
|
1134
|
+
);
|
|
1135
|
+
});
|
|
1136
|
+
process.env.NODE_ENV !== "production" && (_e.displayName = "Link");
|
|
1137
|
+
const Wn = /* @__PURE__ */ _.forwardRef(function(n, r) {
|
|
1138
|
+
let {
|
|
1139
|
+
"aria-current": l = "page",
|
|
1140
|
+
caseSensitive: a = !1,
|
|
1141
|
+
className: i = "",
|
|
1142
|
+
end: s = !1,
|
|
1143
|
+
style: c,
|
|
1144
|
+
to: f,
|
|
1145
|
+
children: d
|
|
1146
|
+
} = n, h = He(n, $n), v = ye(f, {
|
|
1147
|
+
relative: h.relative
|
|
1148
|
+
}), x = se(), C = _.useContext(Rt), {
|
|
1149
|
+
navigator: O
|
|
1150
|
+
} = _.useContext(Q), P = O.encodeLocation ? O.encodeLocation(v).pathname : v.pathname, T = x.pathname, R = C && C.navigation && C.navigation.location ? C.navigation.location.pathname : null;
|
|
1151
|
+
a || (T = T.toLowerCase(), R = R ? R.toLowerCase() : null, P = P.toLowerCase());
|
|
1152
|
+
let g = T === P || !s && T.startsWith(P) && T.charAt(P.length) === "/", j = R != null && (R === P || !s && R.startsWith(P) && R.charAt(P.length) === "/"), $ = g ? l : void 0, M;
|
|
1153
|
+
typeof i == "function" ? M = i({
|
|
1154
|
+
isActive: g,
|
|
1155
|
+
isPending: j
|
|
1156
|
+
}) : M = [i, g ? "active" : null, j ? "pending" : null].filter(Boolean).join(" ");
|
|
1157
|
+
let A = typeof c == "function" ? c({
|
|
1158
|
+
isActive: g,
|
|
1159
|
+
isPending: j
|
|
1160
|
+
}) : c;
|
|
1161
|
+
return /* @__PURE__ */ _.createElement(_e, ee({}, h, {
|
|
1162
|
+
"aria-current": $,
|
|
1163
|
+
className: M,
|
|
1164
|
+
ref: r,
|
|
1165
|
+
style: A,
|
|
1166
|
+
to: f
|
|
1167
|
+
}), typeof d == "function" ? d({
|
|
1168
|
+
isActive: g,
|
|
1169
|
+
isPending: j
|
|
1170
|
+
}) : d);
|
|
1171
|
+
});
|
|
1172
|
+
process.env.NODE_ENV !== "production" && (Wn.displayName = "NavLink");
|
|
1173
|
+
const Mn = /* @__PURE__ */ _.forwardRef((e, n) => {
|
|
1174
|
+
let r = zn();
|
|
1175
|
+
return /* @__PURE__ */ _.createElement(jt, ee({}, e, {
|
|
1176
|
+
submit: r,
|
|
1177
|
+
ref: n
|
|
1178
|
+
}));
|
|
1179
|
+
});
|
|
1180
|
+
process.env.NODE_ENV !== "production" && (Mn.displayName = "Form");
|
|
1181
|
+
const jt = /* @__PURE__ */ _.forwardRef((e, n) => {
|
|
1182
|
+
let {
|
|
1183
|
+
reloadDocument: r,
|
|
1184
|
+
replace: l,
|
|
1185
|
+
method: a = he,
|
|
1186
|
+
action: i,
|
|
1187
|
+
onSubmit: s,
|
|
1188
|
+
submit: c,
|
|
1189
|
+
relative: f,
|
|
1190
|
+
preventScrollReset: d
|
|
1191
|
+
} = e, h = He(e, An), v = a.toLowerCase() === "get" ? "get" : "post", x = Gn(i, {
|
|
1192
|
+
relative: f
|
|
1193
|
+
}), C = (O) => {
|
|
1194
|
+
if (s && s(O), O.defaultPrevented)
|
|
1195
|
+
return;
|
|
1196
|
+
O.preventDefault();
|
|
1197
|
+
let P = O.nativeEvent.submitter, T = (P == null ? void 0 : P.getAttribute("formmethod")) || a;
|
|
1198
|
+
c(P || O.currentTarget, {
|
|
1199
|
+
method: T,
|
|
1200
|
+
replace: l,
|
|
1201
|
+
relative: f,
|
|
1202
|
+
preventScrollReset: d
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
return /* @__PURE__ */ _.createElement("form", ee({
|
|
1206
|
+
ref: n,
|
|
1207
|
+
method: v,
|
|
1208
|
+
action: x,
|
|
1209
|
+
onSubmit: r ? s : C
|
|
1210
|
+
}, h));
|
|
1211
|
+
});
|
|
1212
|
+
process.env.NODE_ENV !== "production" && (jt.displayName = "FormImpl");
|
|
1213
|
+
process.env.NODE_ENV;
|
|
1214
|
+
var We;
|
|
1215
|
+
(function(e) {
|
|
1216
|
+
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher";
|
|
1217
|
+
})(We || (We = {}));
|
|
1218
|
+
var Nt;
|
|
1219
|
+
(function(e) {
|
|
1220
|
+
e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
1221
|
+
})(Nt || (Nt = {}));
|
|
1222
|
+
function Bn(e) {
|
|
1223
|
+
return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
|
|
1224
|
+
}
|
|
1225
|
+
function Yn(e) {
|
|
1226
|
+
let n = _.useContext(Ne);
|
|
1227
|
+
return n || (process.env.NODE_ENV !== "production" ? I(!1, Bn(e)) : I(!1)), n;
|
|
1228
|
+
}
|
|
1229
|
+
function Jn(e, n) {
|
|
1230
|
+
let {
|
|
1231
|
+
target: r,
|
|
1232
|
+
replace: l,
|
|
1233
|
+
state: a,
|
|
1234
|
+
preventScrollReset: i,
|
|
1235
|
+
relative: s
|
|
1236
|
+
} = n === void 0 ? {} : n, c = yn(), f = se(), d = ye(e, {
|
|
1237
|
+
relative: s
|
|
1238
|
+
});
|
|
1239
|
+
return _.useCallback((h) => {
|
|
1240
|
+
if (jn(h, r)) {
|
|
1241
|
+
h.preventDefault();
|
|
1242
|
+
let v = l !== void 0 ? l : $e(f) === $e(d);
|
|
1243
|
+
c(e, {
|
|
1244
|
+
replace: v,
|
|
1245
|
+
state: a,
|
|
1246
|
+
preventScrollReset: i,
|
|
1247
|
+
relative: s
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
}, [f, c, d, l, a, r, e, i, s]);
|
|
1251
|
+
}
|
|
1252
|
+
function Hn() {
|
|
1253
|
+
if (typeof document > "u")
|
|
1254
|
+
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
1255
|
+
}
|
|
1256
|
+
function zn() {
|
|
1257
|
+
let {
|
|
1258
|
+
router: e
|
|
1259
|
+
} = Yn(We.UseSubmit), {
|
|
1260
|
+
basename: n
|
|
1261
|
+
} = _.useContext(Q), r = Cn();
|
|
1262
|
+
return _.useCallback(function(l, a) {
|
|
1263
|
+
a === void 0 && (a = {}), Hn();
|
|
1264
|
+
let {
|
|
1265
|
+
action: i,
|
|
1266
|
+
method: s,
|
|
1267
|
+
encType: c,
|
|
1268
|
+
formData: f,
|
|
1269
|
+
body: d
|
|
1270
|
+
} = Fn(l, n);
|
|
1271
|
+
e.navigate(a.action || i, {
|
|
1272
|
+
preventScrollReset: a.preventScrollReset,
|
|
1273
|
+
formData: f,
|
|
1274
|
+
body: d,
|
|
1275
|
+
formMethod: a.method || s,
|
|
1276
|
+
formEncType: a.encType || c,
|
|
1277
|
+
replace: a.replace,
|
|
1278
|
+
fromRouteId: r
|
|
1279
|
+
});
|
|
1280
|
+
}, [e, n, r]);
|
|
1281
|
+
}
|
|
1282
|
+
function Gn(e, n) {
|
|
1283
|
+
let {
|
|
1284
|
+
relative: r
|
|
1285
|
+
} = n === void 0 ? {} : n, {
|
|
1286
|
+
basename: l
|
|
1287
|
+
} = _.useContext(Q), a = _.useContext(re);
|
|
1288
|
+
a || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
|
|
1289
|
+
let [i] = a.matches.slice(-1), s = ee({}, ye(e || ".", {
|
|
1290
|
+
relative: r
|
|
1291
|
+
})), c = se();
|
|
1292
|
+
if (e == null && (s.search = c.search, s.hash = c.hash, i.route.index)) {
|
|
1293
|
+
let f = new URLSearchParams(s.search);
|
|
1294
|
+
f.delete("index"), s.search = f.toString() ? "?" + f.toString() : "";
|
|
1295
|
+
}
|
|
1296
|
+
return (!e || e === ".") && i.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (s.pathname = s.pathname === "/" ? l : Be([l, s.pathname])), $e(s);
|
|
1297
|
+
}
|
|
1298
|
+
const rr = H(
|
|
1299
|
+
({ breadcrumbs: e, navigationType: n, className: r, ...l }, a) => {
|
|
1300
|
+
const i = e.slice(0, 4), s = i[i.length - 2], c = [
|
|
1301
|
+
r,
|
|
1302
|
+
"pkt-breadcrumbs"
|
|
1303
|
+
].filter(Boolean).join(" ");
|
|
1304
|
+
return /* @__PURE__ */ m("nav", { ref: a, "aria-label": "brødsmulemeny", className: c, children: [
|
|
1305
|
+
/* @__PURE__ */ o("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: i.map((f, d) => /* @__PURE__ */ o(
|
|
1306
|
+
"li",
|
|
1307
|
+
{
|
|
1308
|
+
className: "pkt-breadcrumbs__item",
|
|
1309
|
+
children: d === i.length - 1 ? /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text }) }) : n === "router" ? /* @__PURE__ */ m(
|
|
1310
|
+
_e,
|
|
1311
|
+
{
|
|
1312
|
+
to: f.href,
|
|
1313
|
+
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
1314
|
+
...l,
|
|
1315
|
+
children: [
|
|
1316
|
+
/* @__PURE__ */ o(
|
|
1317
|
+
y,
|
|
1318
|
+
{
|
|
1319
|
+
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
1320
|
+
name: "chevron-thin-right"
|
|
1321
|
+
}
|
|
1322
|
+
),
|
|
1323
|
+
/* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text })
|
|
1324
|
+
]
|
|
1325
|
+
}
|
|
1326
|
+
) : /* @__PURE__ */ m(
|
|
1327
|
+
"a",
|
|
1328
|
+
{
|
|
1329
|
+
href: f.href,
|
|
1330
|
+
className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
|
|
1331
|
+
...l,
|
|
1332
|
+
children: [
|
|
1333
|
+
/* @__PURE__ */ o(
|
|
1334
|
+
y,
|
|
1335
|
+
{
|
|
1336
|
+
className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
|
|
1337
|
+
name: "chevron-thin-right"
|
|
1338
|
+
}
|
|
1339
|
+
),
|
|
1340
|
+
/* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: f.text })
|
|
1341
|
+
]
|
|
1342
|
+
}
|
|
1343
|
+
)
|
|
1344
|
+
},
|
|
1345
|
+
`breadcrumb-${d}`
|
|
1346
|
+
)) }),
|
|
1347
|
+
n === "router" ? /* @__PURE__ */ m(
|
|
1348
|
+
_e,
|
|
1349
|
+
{
|
|
1350
|
+
to: s.href,
|
|
1351
|
+
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
1352
|
+
...l,
|
|
1353
|
+
children: [
|
|
1354
|
+
/* @__PURE__ */ o(
|
|
1355
|
+
y,
|
|
1356
|
+
{
|
|
1357
|
+
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
1358
|
+
name: "chevron-thin-left"
|
|
1359
|
+
}
|
|
1360
|
+
),
|
|
1361
|
+
/* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: s.text })
|
|
1362
|
+
]
|
|
1363
|
+
}
|
|
1364
|
+
) : /* @__PURE__ */ m(
|
|
1365
|
+
"a",
|
|
1366
|
+
{
|
|
1367
|
+
href: s.href,
|
|
1368
|
+
className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
|
|
1369
|
+
...l,
|
|
1370
|
+
children: [
|
|
1371
|
+
/* @__PURE__ */ o(
|
|
1372
|
+
y,
|
|
1373
|
+
{
|
|
1374
|
+
className: "pkt-back-link__icon pkt-icon pkt-link__icon",
|
|
1375
|
+
name: "chevron-thin-left"
|
|
1376
|
+
}
|
|
1377
|
+
),
|
|
1378
|
+
/* @__PURE__ */ o("span", { className: "pkt-breadcrumbs__text", children: s.text })
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
)
|
|
1382
|
+
] });
|
|
1383
|
+
}
|
|
1384
|
+
), be = H(
|
|
706
1385
|
({
|
|
707
|
-
children:
|
|
708
|
-
className:
|
|
709
|
-
iconName:
|
|
710
|
-
secondIconName:
|
|
711
|
-
size:
|
|
712
|
-
skin:
|
|
713
|
-
type:
|
|
714
|
-
variant:
|
|
715
|
-
color:
|
|
716
|
-
...
|
|
717
|
-
},
|
|
718
|
-
const
|
|
719
|
-
|
|
1386
|
+
children: e,
|
|
1387
|
+
className: n,
|
|
1388
|
+
iconName: r = "user",
|
|
1389
|
+
secondIconName: l = "user",
|
|
1390
|
+
size: a = "medium",
|
|
1391
|
+
skin: i = "primary",
|
|
1392
|
+
type: s = "button",
|
|
1393
|
+
variant: c = "label-only",
|
|
1394
|
+
color: f,
|
|
1395
|
+
...d
|
|
1396
|
+
}, h) => {
|
|
1397
|
+
const v = [
|
|
1398
|
+
n,
|
|
720
1399
|
"pkt-btn",
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
1400
|
+
a && `pkt-btn--${a}`,
|
|
1401
|
+
i && `pkt-btn--${i}`,
|
|
1402
|
+
c && `pkt-btn--${c}`,
|
|
1403
|
+
f && `pkt-btn--${f}`
|
|
725
1404
|
].filter(Boolean).join(" ");
|
|
726
|
-
return /* @__PURE__ */
|
|
727
|
-
|
|
728
|
-
/* @__PURE__ */
|
|
729
|
-
|
|
1405
|
+
return /* @__PURE__ */ m("button", { ...d, className: v, type: s, ref: h, children: [
|
|
1406
|
+
c !== "label-only" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: r }),
|
|
1407
|
+
/* @__PURE__ */ o("span", { className: "pkt-btn__text", children: e }),
|
|
1408
|
+
c === "icons-right-and-left" && /* @__PURE__ */ o(y, { className: "pkt-btn__icon", name: l })
|
|
730
1409
|
] });
|
|
731
1410
|
}
|
|
732
1411
|
);
|
|
733
|
-
|
|
734
|
-
const
|
|
735
|
-
var
|
|
736
|
-
const
|
|
737
|
-
return /* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
|
|
743
|
-
(
|
|
1412
|
+
be.displayName = "PktButton";
|
|
1413
|
+
const ar = ({ columnOne: e, columnTwo: n, socialLinks: r, className: l }) => {
|
|
1414
|
+
var i, s;
|
|
1415
|
+
const a = [l, "pkt-footer"].filter(Boolean).join(" ");
|
|
1416
|
+
return /* @__PURE__ */ o("footer", { className: a, "data-mode": "dark", children: /* @__PURE__ */ m("div", { className: "pkt-footer__container", children: [
|
|
1417
|
+
/* @__PURE__ */ m("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
1418
|
+
/* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1419
|
+
/* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: e.title }),
|
|
1420
|
+
/* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
|
|
1421
|
+
e.text && /* @__PURE__ */ o("li", { className: "pkt-footer__text", children: e.text }),
|
|
1422
|
+
(i = e.links) == null ? void 0 : i.map((c, f) => /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
|
|
744
1423
|
"a",
|
|
745
1424
|
{
|
|
746
|
-
className: `pkt-footer__link ${
|
|
747
|
-
href:
|
|
748
|
-
target:
|
|
749
|
-
rel:
|
|
1425
|
+
className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
|
|
1426
|
+
href: c.href,
|
|
1427
|
+
target: c.openInNewTab ? "_blank" : "_self",
|
|
1428
|
+
rel: c.openInNewTab ? "noopener noreferrer" : void 0,
|
|
750
1429
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
|
|
1430
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1431
|
+
c.text
|
|
753
1432
|
]
|
|
754
1433
|
}
|
|
755
|
-
) }, `links-${
|
|
1434
|
+
) }, `links-${f}`))
|
|
756
1435
|
] })
|
|
757
1436
|
] }),
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
/* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
|
|
762
|
-
(
|
|
1437
|
+
/* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1438
|
+
/* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: n.title }),
|
|
1439
|
+
/* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
|
|
1440
|
+
n.text && /* @__PURE__ */ o("li", { className: "pkt-footer__text", children: n.text }),
|
|
1441
|
+
(s = n.links) == null ? void 0 : s.map((c, f) => /* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
|
|
763
1442
|
"a",
|
|
764
1443
|
{
|
|
765
|
-
className: `pkt-footer__link ${
|
|
766
|
-
href:
|
|
767
|
-
target:
|
|
768
|
-
rel:
|
|
1444
|
+
className: `pkt-footer__link ${c.external ? "pkt-link--external" : ""}`,
|
|
1445
|
+
href: c.href,
|
|
1446
|
+
target: c.openInNewTab ? "_blank" : "_self",
|
|
1447
|
+
rel: c.openInNewTab ? "noopener noreferrer" : void 0,
|
|
769
1448
|
children: [
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
|
|
1449
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
1450
|
+
c.text
|
|
772
1451
|
]
|
|
773
1452
|
}
|
|
774
|
-
) }, `links-${
|
|
1453
|
+
) }, `links-${f}`))
|
|
775
1454
|
] })
|
|
776
1455
|
] }),
|
|
777
|
-
/* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ m("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
1457
|
+
/* @__PURE__ */ o("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
1458
|
+
/* @__PURE__ */ m("ul", { className: "pkt-footer__list", children: [
|
|
1459
|
+
/* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m(
|
|
781
1460
|
"a",
|
|
782
1461
|
{
|
|
783
1462
|
className: "pkt-footer__link",
|
|
784
1463
|
href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
785
1464
|
children: [
|
|
786
|
-
/* @__PURE__ */
|
|
1465
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
787
1466
|
"Personvern og informasjonskapsler"
|
|
788
1467
|
]
|
|
789
1468
|
}
|
|
790
1469
|
) }),
|
|
791
|
-
/* @__PURE__ */
|
|
792
|
-
/* @__PURE__ */
|
|
1470
|
+
/* @__PURE__ */ o("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
1471
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
793
1472
|
"Tilgjengelighet"
|
|
794
1473
|
] }) })
|
|
795
1474
|
] })
|
|
796
1475
|
] })
|
|
797
1476
|
] }),
|
|
798
|
-
|
|
799
|
-
/* @__PURE__ */
|
|
1477
|
+
r && /* @__PURE__ */ m("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
1478
|
+
/* @__PURE__ */ o("div", { className: "pkt-footer__social-languages", children: r.filter((c) => c.language).map((c, f) => /* @__PURE__ */ o(
|
|
800
1479
|
"div",
|
|
801
1480
|
{
|
|
802
1481
|
className: "pkt-footer__social-language",
|
|
803
|
-
children: /* @__PURE__ */
|
|
1482
|
+
children: /* @__PURE__ */ o(
|
|
804
1483
|
"a",
|
|
805
1484
|
{
|
|
806
|
-
href:
|
|
807
|
-
"aria-label": `til ${
|
|
808
|
-
target:
|
|
809
|
-
rel:
|
|
810
|
-
children:
|
|
1485
|
+
href: c.href,
|
|
1486
|
+
"aria-label": `til ${c.language} versjon av nettsiden`,
|
|
1487
|
+
target: c.openInNewTab ? "_blank" : "_self",
|
|
1488
|
+
rel: c.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1489
|
+
children: c.language
|
|
811
1490
|
}
|
|
812
1491
|
)
|
|
813
1492
|
},
|
|
814
|
-
`sociallinks-language-${
|
|
1493
|
+
`sociallinks-language-${f}`
|
|
815
1494
|
)) }),
|
|
816
|
-
/* @__PURE__ */
|
|
1495
|
+
/* @__PURE__ */ o("div", { className: "pkt-footer__social-icons", children: r.filter((c) => c.iconName).map((c, f) => /* @__PURE__ */ o(G.Fragment, { children: /* @__PURE__ */ o(
|
|
817
1496
|
"a",
|
|
818
1497
|
{
|
|
819
|
-
href:
|
|
820
|
-
"aria-label": `til ${
|
|
1498
|
+
href: c.href,
|
|
1499
|
+
"aria-label": `til ${c.iconName}`,
|
|
821
1500
|
className: "pkt-footer__social-icon-link",
|
|
822
|
-
target:
|
|
823
|
-
rel:
|
|
824
|
-
children: /* @__PURE__ */
|
|
1501
|
+
target: c.openInNewTab ? "_blank" : "_self",
|
|
1502
|
+
rel: c.openInNewTab ? "noopener noreferrer" : void 0,
|
|
1503
|
+
children: /* @__PURE__ */ o(y, { className: "pkt-footer__social-icon", name: c.iconName })
|
|
825
1504
|
}
|
|
826
|
-
) }, `sociallinks-${
|
|
1505
|
+
) }, `sociallinks-${f}`)) })
|
|
827
1506
|
] })
|
|
828
1507
|
] }) });
|
|
829
|
-
},
|
|
830
|
-
links:
|
|
831
|
-
className:
|
|
1508
|
+
}, or = ({
|
|
1509
|
+
links: e = [],
|
|
1510
|
+
className: n
|
|
832
1511
|
}) => {
|
|
833
|
-
const
|
|
834
|
-
return /* @__PURE__ */
|
|
835
|
-
|
|
1512
|
+
const r = [n, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
1513
|
+
return /* @__PURE__ */ o("footer", { className: r, "data-mode": "dark", children: /* @__PURE__ */ o("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ m("ul", { className: "pkt-footer-simple__list", children: [
|
|
1514
|
+
e.map((l, a) => /* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m(
|
|
836
1515
|
"a",
|
|
837
1516
|
{
|
|
838
|
-
className: `pkt-footer-simple__link ${
|
|
839
|
-
href:
|
|
840
|
-
target:
|
|
841
|
-
rel:
|
|
1517
|
+
className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
|
|
1518
|
+
href: l.href,
|
|
1519
|
+
target: l.openInNewTab ? "_blank" : "_self",
|
|
1520
|
+
rel: l.openInNewTab ? "noopener noreferrer" : void 0,
|
|
842
1521
|
children: [
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
|
|
1522
|
+
/* @__PURE__ */ o(
|
|
1523
|
+
y,
|
|
845
1524
|
{
|
|
846
1525
|
className: "pkt-footer-simple__link-icon",
|
|
847
1526
|
name: "chevron-right"
|
|
848
1527
|
}
|
|
849
1528
|
),
|
|
850
|
-
|
|
1529
|
+
l.text
|
|
851
1530
|
]
|
|
852
1531
|
}
|
|
853
|
-
) },
|
|
854
|
-
/* @__PURE__ */
|
|
855
|
-
/* @__PURE__ */
|
|
1532
|
+
) }, a)),
|
|
1533
|
+
/* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
1534
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
856
1535
|
"Personvern og informasjonskapsler"
|
|
857
1536
|
] }) }),
|
|
858
|
-
/* @__PURE__ */
|
|
859
|
-
/* @__PURE__ */
|
|
1537
|
+
/* @__PURE__ */ o("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ m("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
1538
|
+
/* @__PURE__ */ o(y, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
860
1539
|
"Tilgjengelighet"
|
|
861
1540
|
] }) })
|
|
862
1541
|
] }) }) });
|
|
863
1542
|
};
|
|
864
|
-
var
|
|
1543
|
+
var Dt = { exports: {} };
|
|
865
1544
|
/*!
|
|
866
1545
|
Copyright (c) 2018 Jed Watson.
|
|
867
1546
|
Licensed under the MIT License (MIT), see
|
|
868
1547
|
http://jedwatson.github.io/classnames
|
|
869
1548
|
*/
|
|
870
|
-
(function(
|
|
1549
|
+
(function(e) {
|
|
871
1550
|
(function() {
|
|
872
|
-
var
|
|
873
|
-
function
|
|
874
|
-
for (var
|
|
875
|
-
var
|
|
876
|
-
if (
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
879
|
-
|
|
880
|
-
else if (Array.isArray(
|
|
881
|
-
if (
|
|
882
|
-
var
|
|
883
|
-
|
|
1551
|
+
var n = {}.hasOwnProperty;
|
|
1552
|
+
function r() {
|
|
1553
|
+
for (var l = [], a = 0; a < arguments.length; a++) {
|
|
1554
|
+
var i = arguments[a];
|
|
1555
|
+
if (i) {
|
|
1556
|
+
var s = typeof i;
|
|
1557
|
+
if (s === "string" || s === "number")
|
|
1558
|
+
l.push(i);
|
|
1559
|
+
else if (Array.isArray(i)) {
|
|
1560
|
+
if (i.length) {
|
|
1561
|
+
var c = r.apply(null, i);
|
|
1562
|
+
c && l.push(c);
|
|
884
1563
|
}
|
|
885
|
-
} else if (
|
|
886
|
-
if (
|
|
887
|
-
|
|
1564
|
+
} else if (s === "object") {
|
|
1565
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
|
|
1566
|
+
l.push(i.toString());
|
|
888
1567
|
continue;
|
|
889
1568
|
}
|
|
890
|
-
for (var
|
|
891
|
-
|
|
1569
|
+
for (var f in i)
|
|
1570
|
+
n.call(i, f) && i[f] && l.push(f);
|
|
892
1571
|
}
|
|
893
1572
|
}
|
|
894
1573
|
}
|
|
895
|
-
return
|
|
1574
|
+
return l.join(" ");
|
|
896
1575
|
}
|
|
897
|
-
|
|
1576
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
898
1577
|
})();
|
|
899
|
-
})(
|
|
900
|
-
var
|
|
901
|
-
const
|
|
1578
|
+
})(Dt);
|
|
1579
|
+
var Kn = Dt.exports;
|
|
1580
|
+
const Lt = /* @__PURE__ */ sn(Kn), lr = H(
|
|
902
1581
|
({
|
|
903
|
-
logoLink:
|
|
904
|
-
serviceName:
|
|
905
|
-
fixed:
|
|
906
|
-
scrollToHide:
|
|
907
|
-
user:
|
|
908
|
-
userMenu:
|
|
909
|
-
representing:
|
|
910
|
-
userOptions:
|
|
911
|
-
userMenuFooter:
|
|
912
|
-
canChangeRepresentation:
|
|
913
|
-
showMenuButton:
|
|
914
|
-
showLogOutButton:
|
|
915
|
-
openMenu:
|
|
1582
|
+
logoLink: e = "https://www.oslo.kommune.no/",
|
|
1583
|
+
serviceName: n,
|
|
1584
|
+
fixed: r = !0,
|
|
1585
|
+
scrollToHide: l = !0,
|
|
1586
|
+
user: a,
|
|
1587
|
+
userMenu: i,
|
|
1588
|
+
representing: s,
|
|
1589
|
+
userOptions: c,
|
|
1590
|
+
userMenuFooter: f,
|
|
1591
|
+
canChangeRepresentation: d = !0,
|
|
1592
|
+
showMenuButton: h = !1,
|
|
1593
|
+
showLogOutButton: v = !1,
|
|
1594
|
+
openMenu: x,
|
|
916
1595
|
logOut: C,
|
|
917
|
-
changeRepresentation:
|
|
918
|
-
...
|
|
919
|
-
},
|
|
920
|
-
const
|
|
1596
|
+
changeRepresentation: O,
|
|
1597
|
+
...P
|
|
1598
|
+
}, T) => {
|
|
1599
|
+
const R = G.useMemo(() => typeof (a == null ? void 0 : a.lastLoggedIn) == "string" ? a.lastLoggedIn : a != null && a.lastLoggedIn ? new Date(a.lastLoggedIn).toLocaleString("nb-NO", {
|
|
921
1600
|
year: "numeric",
|
|
922
1601
|
month: "long",
|
|
923
1602
|
day: "numeric"
|
|
924
|
-
}) : "", [
|
|
925
|
-
|
|
926
|
-
document.removeEventListener("mouseup",
|
|
1603
|
+
}) : "", [a]), [g, j] = G.useState(!1), [$, M] = G.useState(0), [A, z] = G.useState(!1), V = G.useRef(null);
|
|
1604
|
+
G.useEffect(() => (document.addEventListener("mouseup", J), window.addEventListener("scroll", K), () => {
|
|
1605
|
+
document.removeEventListener("mouseup", J), window.removeEventListener("scroll", K);
|
|
927
1606
|
}));
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
},
|
|
933
|
-
if (
|
|
934
|
-
const
|
|
935
|
-
if (
|
|
1607
|
+
const W = () => {
|
|
1608
|
+
z(!A);
|
|
1609
|
+
}, J = (b) => {
|
|
1610
|
+
V.current && !V.current.contains(b.target) && z(!1);
|
|
1611
|
+
}, K = () => {
|
|
1612
|
+
if (l) {
|
|
1613
|
+
const b = window.pageYOffset || document.documentElement.scrollTop;
|
|
1614
|
+
if (b < 0 || Math.abs(b - $) < 60)
|
|
936
1615
|
return;
|
|
937
|
-
|
|
1616
|
+
j(b > $), M(b);
|
|
938
1617
|
}
|
|
939
1618
|
};
|
|
940
|
-
return /* @__PURE__ */
|
|
1619
|
+
return /* @__PURE__ */ m(
|
|
941
1620
|
"header",
|
|
942
1621
|
{
|
|
943
|
-
...
|
|
1622
|
+
...P,
|
|
944
1623
|
id: "pkt-header",
|
|
945
1624
|
"data-testid": "pkt-header",
|
|
946
1625
|
"aria-label": "Topp",
|
|
947
|
-
className:
|
|
948
|
-
"pkt-header--fixed":
|
|
949
|
-
"pkt-header--scroll-to-hide":
|
|
950
|
-
"pkt-header--hidden":
|
|
1626
|
+
className: Lt("pkt-header", {
|
|
1627
|
+
"pkt-header--fixed": r,
|
|
1628
|
+
"pkt-header--scroll-to-hide": l,
|
|
1629
|
+
"pkt-header--hidden": g
|
|
951
1630
|
}),
|
|
952
|
-
ref:
|
|
1631
|
+
ref: T,
|
|
953
1632
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
typeof
|
|
956
|
-
|
|
1633
|
+
/* @__PURE__ */ m("div", { className: "pkt-header__logo", children: [
|
|
1634
|
+
typeof e == "string" ? /* @__PURE__ */ o("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: e, children: /* @__PURE__ */ o(
|
|
1635
|
+
y,
|
|
957
1636
|
{
|
|
958
1637
|
name: "oslologo",
|
|
959
1638
|
className: "pkt-header__logo-svg",
|
|
960
1639
|
"aria-hidden": "true",
|
|
961
|
-
path: "https://punkt-cdn.oslo.kommune.no/7.
|
|
1640
|
+
path: "https://punkt-cdn.oslo.kommune.no/7.2/logos/"
|
|
962
1641
|
}
|
|
963
|
-
) }) : /* @__PURE__ */
|
|
1642
|
+
) }) : /* @__PURE__ */ o(
|
|
964
1643
|
"button",
|
|
965
1644
|
{
|
|
966
1645
|
"aria-label": "Tilbake til forside",
|
|
967
1646
|
className: "pkt-link-button pkt-link pkt-header__logo-link",
|
|
968
|
-
onClick:
|
|
969
|
-
children: /* @__PURE__ */
|
|
970
|
-
|
|
1647
|
+
onClick: e,
|
|
1648
|
+
children: /* @__PURE__ */ o(
|
|
1649
|
+
y,
|
|
971
1650
|
{
|
|
972
1651
|
name: "oslologo",
|
|
973
1652
|
className: "pkt-header__logo-svg",
|
|
974
1653
|
"aria-hidden": "true",
|
|
975
|
-
path: "https://punkt-cdn.oslo.kommune.no/7.
|
|
1654
|
+
path: "https://punkt-cdn.oslo.kommune.no/7.2/logos/"
|
|
976
1655
|
}
|
|
977
1656
|
)
|
|
978
1657
|
}
|
|
979
1658
|
),
|
|
980
|
-
/* @__PURE__ */
|
|
1659
|
+
/* @__PURE__ */ o("span", { className: "pkt-header__logo-service", children: n })
|
|
981
1660
|
] }),
|
|
982
|
-
/* @__PURE__ */
|
|
983
|
-
|
|
984
|
-
|
|
1661
|
+
/* @__PURE__ */ o("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ m("ul", { className: "pkt-header__actions-row", children: [
|
|
1662
|
+
h && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
|
|
1663
|
+
be,
|
|
985
1664
|
{
|
|
986
1665
|
className: "pkt-header__menu-btn",
|
|
987
1666
|
skin: "secondary",
|
|
988
1667
|
variant: "icon-right",
|
|
989
1668
|
iconName: "menu",
|
|
990
|
-
onClick:
|
|
1669
|
+
onClick: x,
|
|
991
1670
|
children: "Meny"
|
|
992
1671
|
}
|
|
993
1672
|
) }),
|
|
994
|
-
(
|
|
1673
|
+
(a || s) && /* @__PURE__ */ m(
|
|
995
1674
|
"li",
|
|
996
1675
|
{
|
|
997
1676
|
"data-testid": "usermenu",
|
|
998
|
-
className: `pkt-header--has-dropdown ${
|
|
999
|
-
ref:
|
|
1677
|
+
className: `pkt-header--has-dropdown ${A && !g ? "pkt-header--open-dropdown" : ""}`,
|
|
1678
|
+
ref: V,
|
|
1000
1679
|
children: [
|
|
1001
|
-
/* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ m(
|
|
1002
1681
|
"button",
|
|
1003
1682
|
{
|
|
1004
1683
|
className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
|
|
1005
1684
|
type: "button",
|
|
1006
1685
|
role: "button",
|
|
1007
1686
|
"aria-controls": "pktUserDropdown",
|
|
1008
|
-
"aria-expanded":
|
|
1009
|
-
onClick:
|
|
1687
|
+
"aria-expanded": A,
|
|
1688
|
+
onClick: W,
|
|
1010
1689
|
children: [
|
|
1011
|
-
/* @__PURE__ */
|
|
1012
|
-
/* @__PURE__ */
|
|
1013
|
-
/* @__PURE__ */
|
|
1014
|
-
/* @__PURE__ */
|
|
1015
|
-
/* @__PURE__ */
|
|
1690
|
+
/* @__PURE__ */ o(y, { name: "user", className: "pkt-btn__icon" }),
|
|
1691
|
+
/* @__PURE__ */ o("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (a == null ? void 0 : a.name) }),
|
|
1692
|
+
/* @__PURE__ */ o("span", { className: "pkt-header__user-shortname", children: (s == null ? void 0 : s.shortname) || (a == null ? void 0 : a.shortname) }),
|
|
1693
|
+
/* @__PURE__ */ o(y, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
|
|
1694
|
+
/* @__PURE__ */ o(y, { name: "chevron-thin-up", className: "pkt-btn--open" })
|
|
1016
1695
|
]
|
|
1017
1696
|
}
|
|
1018
1697
|
),
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
|
|
1698
|
+
/* @__PURE__ */ m("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
|
|
1699
|
+
a && /* @__PURE__ */ m("li", { children: [
|
|
1700
|
+
/* @__PURE__ */ o("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
|
|
1701
|
+
/* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: a.name }),
|
|
1702
|
+
a.lastLoggedIn && /* @__PURE__ */ m("div", { className: "pkt-user-menu__last-logged-in", children: [
|
|
1024
1703
|
"Sist pålogget: ",
|
|
1025
|
-
/* @__PURE__ */
|
|
1704
|
+
/* @__PURE__ */ o("time", { children: R })
|
|
1026
1705
|
] })
|
|
1027
1706
|
] }),
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
] }) : /* @__PURE__ */
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
] }) }, `userMenu-${
|
|
1035
|
-
(
|
|
1036
|
-
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
|
|
1707
|
+
i && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: i.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ m("a", { href: b.target, className: "pkt-link", children: [
|
|
1708
|
+
b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
|
|
1709
|
+
b.title
|
|
1710
|
+
] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
|
|
1711
|
+
b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
|
|
1712
|
+
b.title
|
|
1713
|
+
] }) }, `userMenu-${D}`)) }) }),
|
|
1714
|
+
(s || d) && /* @__PURE__ */ m("li", { children: [
|
|
1715
|
+
s && /* @__PURE__ */ m(X, { children: [
|
|
1716
|
+
/* @__PURE__ */ o("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
1717
|
+
/* @__PURE__ */ o("div", { className: "pkt-user-menu__name", children: s.name }),
|
|
1718
|
+
s.orgNumber && /* @__PURE__ */ m("div", { className: "pkt-user-menu__org-number", children: [
|
|
1040
1719
|
"Org.nr. ",
|
|
1041
|
-
|
|
1720
|
+
s.orgNumber
|
|
1042
1721
|
] })
|
|
1043
1722
|
] }),
|
|
1044
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ o("ul", { className: "pkt-list mt-size-16", children: d && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m(
|
|
1045
1724
|
"button",
|
|
1046
1725
|
{
|
|
1047
1726
|
className: "pkt-link-button pkt-link",
|
|
1048
|
-
onClick:
|
|
1727
|
+
onClick: O,
|
|
1049
1728
|
children: [
|
|
1050
|
-
/* @__PURE__ */
|
|
1729
|
+
/* @__PURE__ */ o(y, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
1051
1730
|
"Endre organisasjon"
|
|
1052
1731
|
]
|
|
1053
1732
|
}
|
|
1054
1733
|
) }) })
|
|
1055
1734
|
] }),
|
|
1056
|
-
/* @__PURE__ */
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
] }) : /* @__PURE__ */
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
] }) }, `userOptions-${
|
|
1064
|
-
!
|
|
1065
|
-
/* @__PURE__ */
|
|
1735
|
+
/* @__PURE__ */ o("li", { children: /* @__PURE__ */ o("ul", { className: "pkt-list", children: (c || !v) && /* @__PURE__ */ m(X, { children: [
|
|
1736
|
+
c == null ? void 0 : c.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ m("a", { href: b.target, className: "pkt-link", children: [
|
|
1737
|
+
b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
|
|
1738
|
+
b.title
|
|
1739
|
+
] }) : /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: [
|
|
1740
|
+
b.iconName && /* @__PURE__ */ o(y, { name: b.iconName, className: "pkt-link__icon" }),
|
|
1741
|
+
b.title
|
|
1742
|
+
] }) }, `userOptions-${D}`)),
|
|
1743
|
+
!v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ m("button", { className: "pkt-link-button pkt-link", onClick: C, children: [
|
|
1744
|
+
/* @__PURE__ */ o(y, { name: "exit", className: "pkt-link__icon" }),
|
|
1066
1745
|
"Logg ut"
|
|
1067
1746
|
] }) })
|
|
1068
1747
|
] }) }) }),
|
|
1069
|
-
|
|
1748
|
+
f && /* @__PURE__ */ o("li", { className: "footer", children: /* @__PURE__ */ o("ul", { className: "pkt-list-horizontal bordered", children: f.map((b, D) => /* @__PURE__ */ o("li", { children: typeof b.target == "string" ? /* @__PURE__ */ o("a", { href: b.target, className: "pkt-link", children: b.title }) : /* @__PURE__ */ o("button", { className: "pkt-link-button pkt-link", onClick: b.target, children: b.title }) }, `userMenuFooter-${D}`)) }) })
|
|
1070
1749
|
] })
|
|
1071
1750
|
]
|
|
1072
1751
|
}
|
|
1073
1752
|
),
|
|
1074
|
-
|
|
1075
|
-
|
|
1753
|
+
v && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(
|
|
1754
|
+
be,
|
|
1076
1755
|
{
|
|
1077
1756
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
1078
1757
|
iconName: "exit",
|
|
@@ -1088,403 +1767,404 @@ const Je = /* @__PURE__ */ gt(Rt), Dt = H(
|
|
|
1088
1767
|
}
|
|
1089
1768
|
);
|
|
1090
1769
|
}
|
|
1091
|
-
),
|
|
1092
|
-
({ label:
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1095
|
-
|
|
1770
|
+
), qn = G.forwardRef(
|
|
1771
|
+
({ label: e, id: n, children: r, ...l }, a) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
|
|
1772
|
+
/* @__PURE__ */ o("label", { htmlFor: n, className: "pkt-form-label", children: e }),
|
|
1773
|
+
/* @__PURE__ */ o("input", { className: "pkt-form-input", id: n, ...l, ref: a }),
|
|
1774
|
+
r
|
|
1096
1775
|
] })
|
|
1097
1776
|
);
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1777
|
+
qn.displayName = "PktInput";
|
|
1778
|
+
const ze = H(
|
|
1100
1779
|
({
|
|
1101
|
-
forId:
|
|
1102
|
-
label:
|
|
1103
|
-
helptext:
|
|
1104
|
-
helptextDropdown:
|
|
1105
|
-
helptextDropdownButton:
|
|
1106
|
-
optional:
|
|
1107
|
-
required:
|
|
1108
|
-
hasError:
|
|
1109
|
-
errorMessage:
|
|
1110
|
-
disabled:
|
|
1111
|
-
inline:
|
|
1112
|
-
ariaDescribedby:
|
|
1113
|
-
useWrapper:
|
|
1780
|
+
forId: e,
|
|
1781
|
+
label: n,
|
|
1782
|
+
helptext: r,
|
|
1783
|
+
helptextDropdown: l,
|
|
1784
|
+
helptextDropdownButton: a,
|
|
1785
|
+
optional: i,
|
|
1786
|
+
required: s,
|
|
1787
|
+
hasError: c,
|
|
1788
|
+
errorMessage: f,
|
|
1789
|
+
disabled: d,
|
|
1790
|
+
inline: h,
|
|
1791
|
+
ariaDescribedby: v,
|
|
1792
|
+
useWrapper: x = !0,
|
|
1114
1793
|
children: C,
|
|
1115
|
-
className:
|
|
1116
|
-
},
|
|
1117
|
-
const [
|
|
1118
|
-
|
|
1119
|
-
},
|
|
1120
|
-
return /* @__PURE__ */
|
|
1794
|
+
className: O
|
|
1795
|
+
}, P) => {
|
|
1796
|
+
const [T, R] = ie(!1), g = () => {
|
|
1797
|
+
R(!T);
|
|
1798
|
+
}, j = () => i ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", $ = i ? "Valgfritt" : s ? "Må fylles ut" : "", M = d ? "pkt-inputwrapper--disabled" : "", A = h ? "pkt-inputwrapper--inline" : "", z = c ? "pkt-inputwrapper--error" : "", V = !!l && l !== "", W = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', J = V ? "div" : "label", K = V ? "h2" : "span", b = v || (r ? `${e}-helptext` : void 0);
|
|
1799
|
+
return /* @__PURE__ */ m(
|
|
1121
1800
|
"div",
|
|
1122
1801
|
{
|
|
1123
|
-
className: ["pkt-inputwrapper",
|
|
1802
|
+
className: ["pkt-inputwrapper", O, M, A, z].join(
|
|
1124
1803
|
" "
|
|
1125
1804
|
),
|
|
1126
|
-
ref:
|
|
1805
|
+
ref: P,
|
|
1127
1806
|
children: [
|
|
1128
|
-
|
|
1129
|
-
/* @__PURE__ */
|
|
1130
|
-
|
|
1807
|
+
x ? /* @__PURE__ */ m(X, { children: [
|
|
1808
|
+
/* @__PURE__ */ o(
|
|
1809
|
+
J,
|
|
1131
1810
|
{
|
|
1132
|
-
htmlFor:
|
|
1811
|
+
htmlFor: e,
|
|
1133
1812
|
className: "pkt-inputwrapper__label",
|
|
1134
|
-
"aria-describedby":
|
|
1135
|
-
children: /* @__PURE__ */
|
|
1136
|
-
|
|
1137
|
-
|
|
1813
|
+
"aria-describedby": V ? "" : v,
|
|
1814
|
+
children: /* @__PURE__ */ m(K, { id: `${e}-label`, children: [
|
|
1815
|
+
n,
|
|
1816
|
+
$ !== "" && /* @__PURE__ */ o("span", { className: j(), children: $ })
|
|
1138
1817
|
] })
|
|
1139
1818
|
}
|
|
1140
1819
|
),
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
|
|
1820
|
+
r && /* @__PURE__ */ o("div", { className: "pkt-inputwrapper__helptext", id: `${e}-helptext`, children: r }),
|
|
1821
|
+
V && l !== "" && /* @__PURE__ */ m("div", { children: [
|
|
1822
|
+
/* @__PURE__ */ o(
|
|
1823
|
+
be,
|
|
1145
1824
|
{
|
|
1146
1825
|
skin: "tertiary",
|
|
1147
1826
|
size: "small",
|
|
1148
1827
|
variant: "icon-right",
|
|
1149
|
-
iconName:
|
|
1828
|
+
iconName: T ? "chevron-thin-up" : "chevron-thin-down",
|
|
1150
1829
|
className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
|
|
1151
|
-
onClick:
|
|
1152
|
-
children: /* @__PURE__ */
|
|
1830
|
+
onClick: g,
|
|
1831
|
+
children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: W } })
|
|
1153
1832
|
}
|
|
1154
1833
|
),
|
|
1155
|
-
/* @__PURE__ */
|
|
1834
|
+
/* @__PURE__ */ o(
|
|
1156
1835
|
"div",
|
|
1157
1836
|
{
|
|
1158
|
-
className: `pkt-inputwrapper__helptext ${
|
|
1159
|
-
children: /* @__PURE__ */
|
|
1837
|
+
className: `pkt-inputwrapper__helptext ${T ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
|
|
1838
|
+
children: /* @__PURE__ */ o("span", { dangerouslySetInnerHTML: { __html: l } })
|
|
1160
1839
|
}
|
|
1161
1840
|
),
|
|
1162
|
-
/* @__PURE__ */
|
|
1841
|
+
/* @__PURE__ */ o("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": b, children: n })
|
|
1163
1842
|
] }),
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
] }) : /* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1843
|
+
/* @__PURE__ */ o(X, { children: C })
|
|
1844
|
+
] }) : /* @__PURE__ */ m(X, { children: [
|
|
1845
|
+
/* @__PURE__ */ o(
|
|
1167
1846
|
"label",
|
|
1168
1847
|
{
|
|
1169
|
-
htmlFor:
|
|
1848
|
+
htmlFor: e,
|
|
1170
1849
|
className: "pkt-sr-only",
|
|
1171
|
-
"aria-describedby":
|
|
1172
|
-
id: `${
|
|
1173
|
-
children:
|
|
1850
|
+
"aria-describedby": b,
|
|
1851
|
+
id: `${e}-label`,
|
|
1852
|
+
children: n
|
|
1174
1853
|
}
|
|
1175
1854
|
),
|
|
1176
1855
|
C
|
|
1177
1856
|
] }),
|
|
1178
|
-
|
|
1857
|
+
c && /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(dn, { skin: "error", "aria-live": "assertive", children: f }) })
|
|
1179
1858
|
]
|
|
1180
1859
|
}
|
|
1181
1860
|
);
|
|
1182
1861
|
}
|
|
1183
1862
|
);
|
|
1184
|
-
|
|
1185
|
-
const
|
|
1863
|
+
ze.displayName = "PktInputWrapper";
|
|
1864
|
+
const Xn = H(
|
|
1186
1865
|
({
|
|
1187
|
-
children:
|
|
1188
|
-
className:
|
|
1189
|
-
iconName:
|
|
1190
|
-
openInNewTab:
|
|
1191
|
-
skin:
|
|
1192
|
-
href:
|
|
1193
|
-
external:
|
|
1194
|
-
title:
|
|
1195
|
-
},
|
|
1196
|
-
const
|
|
1197
|
-
return /* @__PURE__ */
|
|
1866
|
+
children: e,
|
|
1867
|
+
className: n,
|
|
1868
|
+
iconName: r = "user",
|
|
1869
|
+
openInNewTab: l = !1,
|
|
1870
|
+
skin: a = "normal",
|
|
1871
|
+
href: i = "#",
|
|
1872
|
+
external: s = !1,
|
|
1873
|
+
title: c
|
|
1874
|
+
}, f) => {
|
|
1875
|
+
const d = [n, "pkt-linkcard", a && `pkt-linkcard--${a}`].filter(Boolean).join(" ");
|
|
1876
|
+
return /* @__PURE__ */ m(
|
|
1198
1877
|
"a",
|
|
1199
1878
|
{
|
|
1200
|
-
href:
|
|
1201
|
-
className: `pkt-linkcard pkt-link ${
|
|
1202
|
-
target:
|
|
1203
|
-
rel:
|
|
1204
|
-
ref:
|
|
1879
|
+
href: i,
|
|
1880
|
+
className: `pkt-linkcard pkt-link ${d}`,
|
|
1881
|
+
target: l ? "_blank" : "_self",
|
|
1882
|
+
rel: l ? "noopener noreferrer" : void 0,
|
|
1883
|
+
ref: f,
|
|
1205
1884
|
children: [
|
|
1206
|
-
/* @__PURE__ */
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */
|
|
1209
|
-
/* @__PURE__ */
|
|
1885
|
+
/* @__PURE__ */ o(y, { className: "pkt-link__icon", name: r }),
|
|
1886
|
+
/* @__PURE__ */ m("div", { className: "pkt-linkcard__content", children: [
|
|
1887
|
+
/* @__PURE__ */ o("div", { className: `pkt-linkcard__title ${s ? "pkt-link pkt-link--external" : ""}`, children: c }),
|
|
1888
|
+
/* @__PURE__ */ o("div", { className: "pkt-linkcard__text", children: e })
|
|
1210
1889
|
] })
|
|
1211
1890
|
]
|
|
1212
1891
|
}
|
|
1213
1892
|
);
|
|
1214
1893
|
}
|
|
1215
1894
|
);
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
children:
|
|
1219
|
-
skin:
|
|
1220
|
-
title:
|
|
1221
|
-
className:
|
|
1222
|
-
...
|
|
1895
|
+
Xn.displayName = "PktLinkCard";
|
|
1896
|
+
const ir = ({
|
|
1897
|
+
children: e,
|
|
1898
|
+
skin: n = "beige",
|
|
1899
|
+
title: r,
|
|
1900
|
+
className: l,
|
|
1901
|
+
...a
|
|
1223
1902
|
}) => {
|
|
1224
|
-
const
|
|
1225
|
-
return /* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
1227
|
-
/* @__PURE__ */
|
|
1903
|
+
const i = ["pkt-messagebox", n && `pkt-messagebox--${n}`, l].filter(Boolean).join(" ");
|
|
1904
|
+
return /* @__PURE__ */ m("div", { ...a, className: i, children: [
|
|
1905
|
+
/* @__PURE__ */ o("div", { className: "pkt-messagebox__title", children: r }),
|
|
1906
|
+
/* @__PURE__ */ o("div", { className: "pkt-messagebox__text", children: e })
|
|
1228
1907
|
] });
|
|
1229
|
-
},
|
|
1230
|
-
({ id:
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
/* @__PURE__ */
|
|
1908
|
+
}, Zn = H(
|
|
1909
|
+
({ id: e, name: n, label: r, value: l, ...a }, i) => /* @__PURE__ */ m("div", { className: "pkt-form-group", children: [
|
|
1910
|
+
/* @__PURE__ */ o("input", { type: "radio", className: "pkt-form-check-input", id: e, name: n, value: l, ref: i, ...a }),
|
|
1911
|
+
/* @__PURE__ */ o("label", { className: "pkt-form-label", htmlFor: e, children: r })
|
|
1233
1912
|
] })
|
|
1234
1913
|
);
|
|
1235
|
-
|
|
1236
|
-
const
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1239
|
-
] }),
|
|
1240
|
-
isResponsive:
|
|
1241
|
-
modifiers: { info:
|
|
1242
|
-
children:
|
|
1243
|
-
}) => /* @__PURE__ */
|
|
1914
|
+
Zn.displayName = "PktRadio";
|
|
1915
|
+
const sr = ({ label: e, children: n }) => /* @__PURE__ */ m(X, { children: [
|
|
1916
|
+
/* @__PURE__ */ o("p", { children: e }),
|
|
1917
|
+
/* @__PURE__ */ o("div", { className: "pkt-form-group", children: n })
|
|
1918
|
+
] }), Qn = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ o("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ o(X, { children: n }), cr = ({
|
|
1919
|
+
isResponsive: e,
|
|
1920
|
+
modifiers: { info: n = !1, success: r = !1, strong: l = !1, shadow: a = !1 } = {},
|
|
1921
|
+
children: i
|
|
1922
|
+
}) => /* @__PURE__ */ o(Qn, { isResponsive: e, children: /* @__PURE__ */ o(
|
|
1244
1923
|
"table",
|
|
1245
1924
|
{
|
|
1246
|
-
className:
|
|
1247
|
-
"pkt-table--info":
|
|
1248
|
-
"pkt-table--success":
|
|
1249
|
-
"pkt-table--strong":
|
|
1250
|
-
"pkt-table--shadow":
|
|
1925
|
+
className: Lt("pkt-table", {
|
|
1926
|
+
"pkt-table--info": n,
|
|
1927
|
+
"pkt-table--success": r,
|
|
1928
|
+
"pkt-table--strong": l,
|
|
1929
|
+
"pkt-table--shadow": a
|
|
1251
1930
|
}),
|
|
1252
|
-
children:
|
|
1931
|
+
children: i
|
|
1253
1932
|
}
|
|
1254
|
-
) }),
|
|
1255
|
-
children:
|
|
1256
|
-
className:
|
|
1257
|
-
skin:
|
|
1258
|
-
textStyle:
|
|
1259
|
-
size:
|
|
1260
|
-
closeTag:
|
|
1261
|
-
iconName:
|
|
1262
|
-
type:
|
|
1263
|
-
ariaLabel:
|
|
1264
|
-
onClick:
|
|
1933
|
+
) }), ur = ({ children: e }) => /* @__PURE__ */ o("td", { className: "pkt-table__th", children: e }), fr = ({ children: e }) => /* @__PURE__ */ o("th", { className: "pkt-table__th", children: e }), er = H(({
|
|
1934
|
+
children: e,
|
|
1935
|
+
className: n,
|
|
1936
|
+
skin: r = "blue",
|
|
1937
|
+
textStyle: l = "normal-text",
|
|
1938
|
+
size: a = "medium",
|
|
1939
|
+
closeTag: i = !1,
|
|
1940
|
+
iconName: s = "",
|
|
1941
|
+
type: c = "button",
|
|
1942
|
+
ariaLabel: f = "close",
|
|
1943
|
+
onClick: d = () => {
|
|
1265
1944
|
}
|
|
1266
|
-
},
|
|
1267
|
-
const [
|
|
1268
|
-
|
|
1269
|
-
},
|
|
1945
|
+
}, h) => {
|
|
1946
|
+
const [v, x] = ie(!1), C = (R) => {
|
|
1947
|
+
x(!0), d(R);
|
|
1948
|
+
}, O = [
|
|
1270
1949
|
"pkt-tag",
|
|
1950
|
+
a && `pkt-tag--${a}`,
|
|
1951
|
+
r && `pkt-tag--${r}`,
|
|
1271
1952
|
l && `pkt-tag--${l}`,
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
u
|
|
1275
|
-
].filter(Boolean).join(" "), L = [
|
|
1953
|
+
n
|
|
1954
|
+
].filter(Boolean).join(" "), P = [
|
|
1276
1955
|
"pkt-tag",
|
|
1277
1956
|
"pkt-btn",
|
|
1278
1957
|
"pkt-btn--tertiary",
|
|
1958
|
+
a && `pkt-tag--${a}`,
|
|
1959
|
+
r && `pkt-tag--${r}`,
|
|
1279
1960
|
l && `pkt-tag--${l}`,
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
].filter(Boolean).join(" "), O = !g;
|
|
1286
|
-
return p && f ? /* @__PURE__ */ t(z, { children: O && /* @__PURE__ */ c(
|
|
1961
|
+
s && i ? "pkt-btn--icons-right-and-left" : null,
|
|
1962
|
+
i && !s ? "pkt-btn--icon-right" : null,
|
|
1963
|
+
n
|
|
1964
|
+
].filter(Boolean).join(" "), T = !v;
|
|
1965
|
+
return i && s ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
|
|
1287
1966
|
"button",
|
|
1288
1967
|
{
|
|
1289
|
-
className:
|
|
1290
|
-
type:
|
|
1291
|
-
"aria-label":
|
|
1968
|
+
className: P,
|
|
1969
|
+
type: c,
|
|
1970
|
+
"aria-label": f,
|
|
1292
1971
|
onClick: C,
|
|
1293
|
-
ref:
|
|
1972
|
+
ref: h,
|
|
1294
1973
|
children: [
|
|
1295
|
-
/* @__PURE__ */
|
|
1296
|
-
|
|
1297
|
-
/* @__PURE__ */
|
|
1974
|
+
/* @__PURE__ */ o(y, { className: "pkt-tag__icon", name: s }),
|
|
1975
|
+
e,
|
|
1976
|
+
/* @__PURE__ */ o(y, { className: "pkt-tag__close-btn", name: "close" })
|
|
1298
1977
|
]
|
|
1299
1978
|
}
|
|
1300
|
-
) }) :
|
|
1979
|
+
) }) : i ? /* @__PURE__ */ o(X, { children: T && /* @__PURE__ */ m(
|
|
1301
1980
|
"button",
|
|
1302
1981
|
{
|
|
1303
|
-
className:
|
|
1304
|
-
type:
|
|
1305
|
-
"aria-label":
|
|
1982
|
+
className: P,
|
|
1983
|
+
type: c,
|
|
1984
|
+
"aria-label": f,
|
|
1306
1985
|
onClick: C,
|
|
1307
|
-
ref:
|
|
1986
|
+
ref: h,
|
|
1308
1987
|
children: [
|
|
1309
|
-
/* @__PURE__ */
|
|
1310
|
-
|
|
1988
|
+
/* @__PURE__ */ o(y, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1989
|
+
e
|
|
1311
1990
|
]
|
|
1312
1991
|
}
|
|
1313
|
-
) }) :
|
|
1314
|
-
/* @__PURE__ */
|
|
1315
|
-
|
|
1316
|
-
] }) : /* @__PURE__ */
|
|
1992
|
+
) }) : s ? /* @__PURE__ */ m("span", { className: O, children: [
|
|
1993
|
+
/* @__PURE__ */ o(y, { className: "pkt-tag__icon", name: s }),
|
|
1994
|
+
e
|
|
1995
|
+
] }) : /* @__PURE__ */ o("span", { className: O, children: e });
|
|
1317
1996
|
});
|
|
1318
|
-
|
|
1319
|
-
const
|
|
1997
|
+
er.displayName = "PktTag";
|
|
1998
|
+
const pr = H(
|
|
1320
1999
|
({
|
|
1321
|
-
id:
|
|
1322
|
-
ariaDescribedby:
|
|
1323
|
-
ariaLabelledby:
|
|
1324
|
-
counter:
|
|
1325
|
-
counterMaxLength:
|
|
1326
|
-
className:
|
|
1327
|
-
disabled:
|
|
1328
|
-
errorMessage:
|
|
1329
|
-
hasError:
|
|
1330
|
-
helptext:
|
|
1331
|
-
helptextDropdown:
|
|
1332
|
-
helptextDropdownButton:
|
|
1333
|
-
inline:
|
|
2000
|
+
id: e,
|
|
2001
|
+
ariaDescribedby: n,
|
|
2002
|
+
ariaLabelledby: r,
|
|
2003
|
+
counter: l,
|
|
2004
|
+
counterMaxLength: a,
|
|
2005
|
+
className: i,
|
|
2006
|
+
disabled: s,
|
|
2007
|
+
errorMessage: c,
|
|
2008
|
+
hasError: f,
|
|
2009
|
+
helptext: d,
|
|
2010
|
+
helptextDropdown: h,
|
|
2011
|
+
helptextDropdownButton: v,
|
|
2012
|
+
inline: x,
|
|
1334
2013
|
label: C,
|
|
1335
|
-
name:
|
|
1336
|
-
optional:
|
|
1337
|
-
placeholder:
|
|
1338
|
-
required:
|
|
1339
|
-
rows:
|
|
1340
|
-
useWrapper:
|
|
1341
|
-
onChange:
|
|
1342
|
-
...
|
|
1343
|
-
},
|
|
1344
|
-
const
|
|
1345
|
-
var
|
|
1346
|
-
if (
|
|
1347
|
-
return
|
|
2014
|
+
name: O,
|
|
2015
|
+
optional: P,
|
|
2016
|
+
placeholder: T,
|
|
2017
|
+
required: R,
|
|
2018
|
+
rows: g,
|
|
2019
|
+
useWrapper: j,
|
|
2020
|
+
onChange: $,
|
|
2021
|
+
...M
|
|
2022
|
+
}, A) => {
|
|
2023
|
+
const z = [i, "pkt-textinput", "pkt-textarea"].join(" "), V = r || `${e}-label`, W = ln(null), [J, K] = ie(0), b = (D) => {
|
|
2024
|
+
var B, Z;
|
|
2025
|
+
if (l && K(((Z = (B = D.currentTarget) == null ? void 0 : B.value) == null ? void 0 : Z.length) || 0), $)
|
|
2026
|
+
return $(D);
|
|
1348
2027
|
};
|
|
1349
|
-
return
|
|
1350
|
-
var
|
|
1351
|
-
typeof
|
|
1352
|
-
}, [
|
|
1353
|
-
|
|
2028
|
+
return yt(() => {
|
|
2029
|
+
var D, B;
|
|
2030
|
+
typeof A == "function" && A(W.current), l && K(((B = (D = W == null ? void 0 : W.current) == null ? void 0 : D.value) == null ? void 0 : B.length) || 0);
|
|
2031
|
+
}, [A]), /* @__PURE__ */ m(
|
|
2032
|
+
ze,
|
|
1354
2033
|
{
|
|
1355
|
-
ariaDescribedby:
|
|
1356
|
-
className:
|
|
1357
|
-
disabled:
|
|
1358
|
-
errorMessage:
|
|
1359
|
-
forId:
|
|
1360
|
-
hasError:
|
|
1361
|
-
helptext:
|
|
1362
|
-
helptextDropdown:
|
|
1363
|
-
helptextDropdownButton:
|
|
1364
|
-
inline:
|
|
2034
|
+
ariaDescribedby: n,
|
|
2035
|
+
className: z,
|
|
2036
|
+
disabled: s,
|
|
2037
|
+
errorMessage: c,
|
|
2038
|
+
forId: e,
|
|
2039
|
+
hasError: f,
|
|
2040
|
+
helptext: d,
|
|
2041
|
+
helptextDropdown: h,
|
|
2042
|
+
helptextDropdownButton: v,
|
|
2043
|
+
inline: x,
|
|
1365
2044
|
label: C,
|
|
1366
|
-
optional:
|
|
1367
|
-
required:
|
|
1368
|
-
useWrapper:
|
|
2045
|
+
optional: P,
|
|
2046
|
+
required: R,
|
|
2047
|
+
useWrapper: j,
|
|
1369
2048
|
children: [
|
|
1370
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ o(
|
|
1371
2050
|
"textarea",
|
|
1372
2051
|
{
|
|
1373
|
-
ref:
|
|
1374
|
-
className: `pkt-textinput__input ${
|
|
1375
|
-
name:
|
|
1376
|
-
id:
|
|
1377
|
-
placeholder:
|
|
1378
|
-
disabled:
|
|
1379
|
-
rows:
|
|
1380
|
-
"aria-labelledby":
|
|
1381
|
-
"aria-invalid":
|
|
1382
|
-
"aria-required":
|
|
1383
|
-
...
|
|
1384
|
-
onChange:
|
|
2052
|
+
ref: W,
|
|
2053
|
+
className: `pkt-textinput__input ${a && J > a ? "pkt-textinput__input--counter-error" : ""}`,
|
|
2054
|
+
name: O || e,
|
|
2055
|
+
id: e,
|
|
2056
|
+
placeholder: T,
|
|
2057
|
+
disabled: s,
|
|
2058
|
+
rows: g,
|
|
2059
|
+
"aria-labelledby": V,
|
|
2060
|
+
"aria-invalid": f,
|
|
2061
|
+
"aria-required": R,
|
|
2062
|
+
...M,
|
|
2063
|
+
onChange: b
|
|
1385
2064
|
}
|
|
1386
2065
|
),
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
2066
|
+
l && /* @__PURE__ */ m("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
|
|
2067
|
+
J || 0,
|
|
2068
|
+
a && `/${a}`
|
|
1390
2069
|
] })
|
|
1391
2070
|
]
|
|
1392
2071
|
}
|
|
1393
2072
|
);
|
|
1394
2073
|
}
|
|
1395
|
-
),
|
|
2074
|
+
), dr = H(
|
|
1396
2075
|
({
|
|
1397
|
-
id:
|
|
1398
|
-
ariaDescribedby:
|
|
1399
|
-
ariaLabelledby:
|
|
1400
|
-
autocomplete:
|
|
1401
|
-
className:
|
|
1402
|
-
disabled:
|
|
1403
|
-
errorMessage:
|
|
1404
|
-
hasError:
|
|
1405
|
-
helptext:
|
|
1406
|
-
helptextDropdown:
|
|
1407
|
-
helptextDropdownButton:
|
|
1408
|
-
iconNameRight:
|
|
1409
|
-
inline:
|
|
2076
|
+
id: e,
|
|
2077
|
+
ariaDescribedby: n,
|
|
2078
|
+
ariaLabelledby: r,
|
|
2079
|
+
autocomplete: l = "off",
|
|
2080
|
+
className: a,
|
|
2081
|
+
disabled: i = !1,
|
|
2082
|
+
errorMessage: s,
|
|
2083
|
+
hasError: c = !1,
|
|
2084
|
+
helptext: f,
|
|
2085
|
+
helptextDropdown: d,
|
|
2086
|
+
helptextDropdownButton: h,
|
|
2087
|
+
iconNameRight: v,
|
|
2088
|
+
inline: x = !1,
|
|
1410
2089
|
label: C,
|
|
1411
|
-
name:
|
|
1412
|
-
optional:
|
|
1413
|
-
placeholder:
|
|
1414
|
-
prefix:
|
|
1415
|
-
required:
|
|
1416
|
-
suffix:
|
|
1417
|
-
type:
|
|
1418
|
-
useWrapper:
|
|
1419
|
-
value:
|
|
1420
|
-
...
|
|
1421
|
-
},
|
|
1422
|
-
const
|
|
1423
|
-
return /* @__PURE__ */
|
|
1424
|
-
|
|
2090
|
+
name: O,
|
|
2091
|
+
optional: P = !1,
|
|
2092
|
+
placeholder: T,
|
|
2093
|
+
prefix: R,
|
|
2094
|
+
required: g = !1,
|
|
2095
|
+
suffix: j,
|
|
2096
|
+
type: $ = "text",
|
|
2097
|
+
useWrapper: M = !0,
|
|
2098
|
+
value: A,
|
|
2099
|
+
...z
|
|
2100
|
+
}, V) => {
|
|
2101
|
+
const W = [a, "pkt-textinput"].join(" "), J = r || `${e}-label`;
|
|
2102
|
+
return /* @__PURE__ */ o(
|
|
2103
|
+
ze,
|
|
1425
2104
|
{
|
|
1426
|
-
ariaDescribedby:
|
|
1427
|
-
className:
|
|
1428
|
-
disabled:
|
|
1429
|
-
errorMessage:
|
|
1430
|
-
forId:
|
|
1431
|
-
hasError:
|
|
1432
|
-
helptext:
|
|
1433
|
-
helptextDropdown:
|
|
1434
|
-
helptextDropdownButton:
|
|
1435
|
-
inline:
|
|
2105
|
+
ariaDescribedby: n,
|
|
2106
|
+
className: W,
|
|
2107
|
+
disabled: i,
|
|
2108
|
+
errorMessage: s,
|
|
2109
|
+
forId: e,
|
|
2110
|
+
hasError: c,
|
|
2111
|
+
helptext: f,
|
|
2112
|
+
helptextDropdown: d,
|
|
2113
|
+
helptextDropdownButton: h,
|
|
2114
|
+
inline: x,
|
|
1436
2115
|
label: C,
|
|
1437
|
-
optional:
|
|
1438
|
-
required:
|
|
1439
|
-
useWrapper:
|
|
1440
|
-
children: /* @__PURE__ */
|
|
1441
|
-
|
|
1442
|
-
/* @__PURE__ */
|
|
2116
|
+
optional: P,
|
|
2117
|
+
required: g,
|
|
2118
|
+
useWrapper: M,
|
|
2119
|
+
children: /* @__PURE__ */ m("div", { className: "pkt-textinput__container", children: [
|
|
2120
|
+
R && /* @__PURE__ */ o("div", { className: "pkt-textinput__input-prefix", children: R }),
|
|
2121
|
+
/* @__PURE__ */ o(
|
|
1443
2122
|
"input",
|
|
1444
2123
|
{
|
|
1445
|
-
ref:
|
|
2124
|
+
ref: V,
|
|
1446
2125
|
className: "pkt-textinput__input",
|
|
1447
|
-
type:
|
|
1448
|
-
name:
|
|
1449
|
-
id:
|
|
1450
|
-
placeholder:
|
|
1451
|
-
autoComplete:
|
|
1452
|
-
value:
|
|
1453
|
-
disabled:
|
|
1454
|
-
"aria-required":
|
|
1455
|
-
"aria-invalid":
|
|
1456
|
-
"aria-labelledby":
|
|
1457
|
-
...
|
|
2126
|
+
type: $,
|
|
2127
|
+
name: O || e,
|
|
2128
|
+
id: e,
|
|
2129
|
+
placeholder: T,
|
|
2130
|
+
autoComplete: l,
|
|
2131
|
+
value: A,
|
|
2132
|
+
disabled: i,
|
|
2133
|
+
"aria-required": g,
|
|
2134
|
+
"aria-invalid": c,
|
|
2135
|
+
"aria-labelledby": J,
|
|
2136
|
+
...z
|
|
1458
2137
|
}
|
|
1459
2138
|
),
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
2139
|
+
j && /* @__PURE__ */ m("p", { className: "pkt-textinput__input-suffix", children: [
|
|
2140
|
+
j,
|
|
2141
|
+
v && /* @__PURE__ */ o(y, { className: "pkt-textinput__input-suffix-icon", name: v })
|
|
1463
2142
|
] }),
|
|
1464
|
-
!
|
|
2143
|
+
!j && v && /* @__PURE__ */ o(y, { className: "pkt-textinput__input-icon", name: v })
|
|
1465
2144
|
] })
|
|
1466
2145
|
}
|
|
1467
2146
|
);
|
|
1468
2147
|
}
|
|
1469
2148
|
);
|
|
1470
2149
|
export {
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
2150
|
+
dn as PktAlert,
|
|
2151
|
+
nr as PktBackLink,
|
|
2152
|
+
rr as PktBreadcrumbs,
|
|
2153
|
+
be as PktButton,
|
|
2154
|
+
ar as PktFooter,
|
|
2155
|
+
or as PktFooterSimple,
|
|
2156
|
+
lr as PktHeader,
|
|
2157
|
+
y as PktIcon,
|
|
2158
|
+
qn as PktInput,
|
|
2159
|
+
ze as PktInputWrapper,
|
|
2160
|
+
Xn as PktLinkCard,
|
|
2161
|
+
ir as PktMessagebox,
|
|
2162
|
+
Zn as PktRadio,
|
|
2163
|
+
sr as PktRadioGroup,
|
|
2164
|
+
cr as PktTable,
|
|
2165
|
+
ur as PktTableData,
|
|
2166
|
+
fr as PktTableHeader,
|
|
2167
|
+
er as PktTag,
|
|
2168
|
+
pr as PktTextarea,
|
|
2169
|
+
dr as PktTextinput
|
|
1490
2170
|
};
|