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