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