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