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