@oslokommune/punkt-react 7.1.2 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +528 -521
- package/dist/punkt-react.umd.js +8 -8
- package/dist/textarea/Textarea.d.ts +2 -3
- package/package.json +2 -2
- package/src/components/textarea/Textarea.tsx +32 -11
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import V, { useState as re, useEffect as Ge, forwardRef as H, useRef as gt } from "react";
|
|
2
|
+
function Nt(a) {
|
|
3
|
+
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
4
4
|
}
|
|
5
5
|
var ve = { exports: {} }, ee = {};
|
|
6
6
|
/**
|
|
@@ -13,20 +13,20 @@ var ve = { exports: {} }, ee = {};
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
var Ue;
|
|
16
|
-
function
|
|
16
|
+
function yt() {
|
|
17
17
|
if (Ue)
|
|
18
18
|
return ee;
|
|
19
19
|
Ue = 1;
|
|
20
|
-
var
|
|
21
|
-
function f(
|
|
22
|
-
var N, v = {}, T = null,
|
|
23
|
-
x !== void 0 && (T = "" + x), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (
|
|
20
|
+
var a = V, p = Symbol.for("react.element"), c = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function f(o, d, x) {
|
|
22
|
+
var N, v = {}, T = null, j = null;
|
|
23
|
+
x !== void 0 && (T = "" + x), d.key !== void 0 && (T = "" + d.key), d.ref !== void 0 && (j = d.ref);
|
|
24
24
|
for (N in d)
|
|
25
|
-
|
|
26
|
-
if (
|
|
27
|
-
for (N in d =
|
|
25
|
+
i.call(d, N) && !u.hasOwnProperty(N) && (v[N] = d[N]);
|
|
26
|
+
if (o && o.defaultProps)
|
|
27
|
+
for (N in d = o.defaultProps, d)
|
|
28
28
|
v[N] === void 0 && (v[N] = d[N]);
|
|
29
|
-
return { $$typeof: p, type:
|
|
29
|
+
return { $$typeof: p, type: o, key: T, ref: j, props: v, _owner: l.current };
|
|
30
30
|
}
|
|
31
31
|
return ee.Fragment = c, ee.jsx = f, ee.jsxs = f, ee;
|
|
32
32
|
}
|
|
@@ -41,53 +41,53 @@ var te = {};
|
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
43
|
var Ve;
|
|
44
|
-
function
|
|
44
|
+
function wt() {
|
|
45
45
|
return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
-
var
|
|
46
|
+
var a = V, p = Symbol.for("react.element"), c = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), $ = Symbol.iterator, B = "@@iterator";
|
|
47
47
|
function S(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var r = $ && e[$] || e[
|
|
50
|
+
var r = $ && e[$] || e[B];
|
|
51
51
|
return typeof r == "function" ? r : null;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var P = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
54
|
function y(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var r = arguments.length,
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), m = 1; m < r; m++)
|
|
57
|
+
n[m - 1] = arguments[m];
|
|
58
|
+
L("error", e, n);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function L(e, r, n) {
|
|
62
62
|
{
|
|
63
|
-
var m =
|
|
64
|
-
b !== "" && (r += "%s",
|
|
65
|
-
var w =
|
|
63
|
+
var m = P.ReactDebugCurrentFrame, b = m.getStackAddendum();
|
|
64
|
+
b !== "" && (r += "%s", n = n.concat([b]));
|
|
65
|
+
var w = n.map(function(_) {
|
|
66
66
|
return String(_);
|
|
67
67
|
});
|
|
68
68
|
w.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, w);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
71
|
+
var D = !1, G = !1, I = !1, Y = !1, O = !1, A;
|
|
72
|
+
A = Symbol.for("react.module.reference");
|
|
73
|
+
function M(e) {
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === i || e === u || O || e === l || e === x || e === N || Y || e === j || D || G || I || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === v || e.$$typeof === f || e.$$typeof === o || e.$$typeof === d || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
77
77
|
// with.
|
|
78
|
-
e.$$typeof ===
|
|
78
|
+
e.$$typeof === A || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function J(e, r, n) {
|
|
81
81
|
var m = e.displayName;
|
|
82
82
|
if (m)
|
|
83
83
|
return m;
|
|
84
84
|
var b = r.displayName || r.name || "";
|
|
85
|
-
return b !== "" ?
|
|
85
|
+
return b !== "" ? n + "(" + b + ")" : n;
|
|
86
86
|
}
|
|
87
87
|
function k(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function E(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
93
|
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -95,7 +95,7 @@ function yt() {
|
|
|
95
95
|
if (typeof e == "string")
|
|
96
96
|
return e;
|
|
97
97
|
switch (e) {
|
|
98
|
-
case
|
|
98
|
+
case i:
|
|
99
99
|
return "Fragment";
|
|
100
100
|
case c:
|
|
101
101
|
return "Portal";
|
|
@@ -110,21 +110,21 @@ function yt() {
|
|
|
110
110
|
}
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
|
-
case
|
|
113
|
+
case o:
|
|
114
114
|
var r = e;
|
|
115
115
|
return k(r) + ".Consumer";
|
|
116
116
|
case f:
|
|
117
|
-
var
|
|
118
|
-
return k(
|
|
117
|
+
var n = e;
|
|
118
|
+
return k(n._context) + ".Provider";
|
|
119
119
|
case d:
|
|
120
|
-
return
|
|
120
|
+
return J(e, e.render, "ForwardRef");
|
|
121
121
|
case v:
|
|
122
122
|
var m = e.displayName || null;
|
|
123
|
-
return m !== null ? m :
|
|
123
|
+
return m !== null ? m : E(e.type) || "Memo";
|
|
124
124
|
case T: {
|
|
125
125
|
var b = e, w = b._payload, _ = b._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return E(_(w));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,18 +132,18 @@ function yt() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var W = Object.assign, K = 0, Ne, ye, we, xe, Ee, Re, Pe;
|
|
136
|
+
function Ce() {
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
138
|
+
Ce.__reactDisabledLog = !0;
|
|
139
|
+
function ze() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
141
|
+
if (K === 0) {
|
|
142
142
|
Ne = console.log, ye = console.info, we = console.warn, xe = console.error, Ee = console.group, Re = console.groupCollapsed, Pe = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: Ce,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -156,46 +156,46 @@ function yt() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
K++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ke() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (K--, K === 0) {
|
|
165
165
|
var e = {
|
|
166
166
|
configurable: !0,
|
|
167
167
|
enumerable: !0,
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: W({}, e, {
|
|
172
172
|
value: Ne
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: W({}, e, {
|
|
175
175
|
value: ye
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: W({}, e, {
|
|
178
178
|
value: we
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: W({}, e, {
|
|
181
181
|
value: xe
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: W({}, e, {
|
|
184
184
|
value: Ee
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: W({}, e, {
|
|
187
187
|
value: Re
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: W({}, e, {
|
|
190
190
|
value: Pe
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
K < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var ce =
|
|
198
|
-
function
|
|
197
|
+
var ce = P.ReactCurrentDispatcher, ue;
|
|
198
|
+
function ae(e, r, n) {
|
|
199
199
|
{
|
|
200
200
|
if (ue === void 0)
|
|
201
201
|
try {
|
|
@@ -210,23 +210,23 @@ function yt() {
|
|
|
210
210
|
}
|
|
211
211
|
var pe = !1, ne;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
ne = new
|
|
213
|
+
var Xe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
ne = new Xe();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Te(e, r) {
|
|
217
217
|
if (!e || pe)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var n = ne.get(e);
|
|
221
|
+
if (n !== void 0)
|
|
222
|
+
return n;
|
|
223
223
|
}
|
|
224
224
|
var m;
|
|
225
225
|
pe = !0;
|
|
226
226
|
var b = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var w;
|
|
229
|
-
w = ce.current, ce.current = null,
|
|
229
|
+
w = ce.current, ce.current = null, ze();
|
|
230
230
|
try {
|
|
231
231
|
if (r) {
|
|
232
232
|
var _ = function() {
|
|
@@ -239,125 +239,125 @@ function yt() {
|
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
241
|
Reflect.construct(_, []);
|
|
242
|
-
} catch (
|
|
243
|
-
m =
|
|
242
|
+
} catch (q) {
|
|
243
|
+
m = q;
|
|
244
244
|
}
|
|
245
245
|
Reflect.construct(e, [], _);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
248
|
_.call();
|
|
249
|
-
} catch (
|
|
250
|
-
m =
|
|
249
|
+
} catch (q) {
|
|
250
|
+
m = q;
|
|
251
251
|
}
|
|
252
252
|
e.call(_.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
|
-
} catch (
|
|
258
|
-
m =
|
|
257
|
+
} catch (q) {
|
|
258
|
+
m = q;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
|
-
} catch (
|
|
263
|
-
if (
|
|
264
|
-
for (var h =
|
|
262
|
+
} catch (q) {
|
|
263
|
+
if (q && m && typeof q.stack == "string") {
|
|
264
|
+
for (var h = q.stack.split(`
|
|
265
265
|
`), F = m.stack.split(`
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (h[
|
|
270
|
-
if (
|
|
266
|
+
`), R = h.length - 1, C = F.length - 1; R >= 1 && C >= 0 && h[R] !== F[C]; )
|
|
267
|
+
C--;
|
|
268
|
+
for (; R >= 1 && C >= 0; R--, C--)
|
|
269
|
+
if (h[R] !== F[C]) {
|
|
270
|
+
if (R !== 1 || C !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` + h[
|
|
275
|
-
return e.displayName &&
|
|
272
|
+
if (R--, C--, C < 0 || h[R] !== F[C]) {
|
|
273
|
+
var U = `
|
|
274
|
+
` + h[R].replace(" at new ", " at ");
|
|
275
|
+
return e.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", e.displayName)), typeof e == "function" && ne.set(e, U), U;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (R >= 1 && C >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
pe = !1, ce.current = w,
|
|
282
|
+
pe = !1, ce.current = w, Ke(), Error.prepareStackTrace = b;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
284
|
+
var Z = e ? e.displayName || e.name : "", Ye = Z ? ae(Z) : "";
|
|
285
285
|
return typeof e == "function" && ne.set(e, Ye), Ye;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function Ze(e, r, n) {
|
|
288
|
+
return Te(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Qe(e) {
|
|
291
291
|
var r = e.prototype;
|
|
292
292
|
return !!(r && r.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function le(e, r, n) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return
|
|
298
|
+
return Te(e, Qe(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
|
-
return
|
|
300
|
+
return ae(e);
|
|
301
301
|
switch (e) {
|
|
302
302
|
case x:
|
|
303
|
-
return
|
|
303
|
+
return ae("Suspense");
|
|
304
304
|
case N:
|
|
305
|
-
return
|
|
305
|
+
return ae("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
309
|
case d:
|
|
310
|
-
return
|
|
310
|
+
return Ze(e.render);
|
|
311
311
|
case v:
|
|
312
|
-
return
|
|
312
|
+
return le(e.type, r, n);
|
|
313
313
|
case T: {
|
|
314
314
|
var m = e, b = m._payload, w = m._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return le(w(b), r, n);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
323
|
+
var oe = Object.prototype.hasOwnProperty, je = {}, Se = P.ReactDebugCurrentFrame;
|
|
324
324
|
function ie(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var r = e._owner,
|
|
327
|
-
Se.setExtraStackFrame(
|
|
326
|
+
var r = e._owner, n = le(e.type, e._source, r ? r.type : null);
|
|
327
|
+
Se.setExtraStackFrame(n);
|
|
328
328
|
} else
|
|
329
329
|
Se.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function et(e, r, n, m, b) {
|
|
332
332
|
{
|
|
333
|
-
var w = Function.call.bind(
|
|
333
|
+
var w = Function.call.bind(oe);
|
|
334
334
|
for (var _ in e)
|
|
335
335
|
if (w(e, _)) {
|
|
336
336
|
var h = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof e[_] != "function") {
|
|
339
|
-
var F = Error((m || "React class") + ": " +
|
|
339
|
+
var F = Error((m || "React class") + ": " + n + " type `" + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[_] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw F.name = "Invariant Violation", F;
|
|
341
341
|
}
|
|
342
|
-
h = e[_](r, _, m,
|
|
343
|
-
} catch (
|
|
344
|
-
h =
|
|
342
|
+
h = e[_](r, _, m, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (R) {
|
|
344
|
+
h = R;
|
|
345
345
|
}
|
|
346
|
-
h && !(h instanceof Error) && (ie(b), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class",
|
|
346
|
+
h && !(h instanceof Error) && (ie(b), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", n, _, typeof h), ie(null)), h instanceof Error && !(h.message in je) && (je[h.message] = !0, ie(b), y("Failed %s type: %s", n, h.message), ie(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var tt = Array.isArray;
|
|
351
351
|
function fe(e) {
|
|
352
|
-
return
|
|
352
|
+
return tt(e);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function rt(e) {
|
|
355
355
|
{
|
|
356
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag,
|
|
357
|
-
return
|
|
356
|
+
var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return n;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function at(e) {
|
|
361
361
|
try {
|
|
362
362
|
return Oe(e), !1;
|
|
363
363
|
} catch {
|
|
@@ -368,26 +368,26 @@ function yt() {
|
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
370
|
function $e(e) {
|
|
371
|
-
if (
|
|
372
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
371
|
+
if (at(e))
|
|
372
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rt(e)), Oe(e);
|
|
373
373
|
}
|
|
374
|
-
var Q =
|
|
374
|
+
var Q = P.ReactCurrentOwner, nt = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
379
|
}, Ie, Fe, de;
|
|
380
380
|
de = {};
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
381
|
+
function lt(e) {
|
|
382
|
+
if (oe.call(e, "ref")) {
|
|
383
383
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (r && r.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
389
|
+
function ot(e) {
|
|
390
|
+
if (oe.call(e, "key")) {
|
|
391
391
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (r && r.isReactWarning)
|
|
393
393
|
return !1;
|
|
@@ -396,40 +396,40 @@ function yt() {
|
|
|
396
396
|
}
|
|
397
397
|
function it(e, r) {
|
|
398
398
|
if (typeof e.ref == "string" && Q.current && r && Q.current.stateNode !== r) {
|
|
399
|
-
var
|
|
400
|
-
de[
|
|
399
|
+
var n = E(Q.current.type);
|
|
400
|
+
de[n] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(Q.current.type), e.ref), de[n] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function st(e, r) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
405
|
+
var n = function() {
|
|
406
406
|
Ie || (Ie = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
|
+
get: n,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ct(e, r) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
416
|
+
var n = function() {
|
|
417
417
|
Fe || (Fe = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
|
+
get: n,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var ut = function(e, r, n, m, b, w, _) {
|
|
426
426
|
var h = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: p,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
431
|
key: r,
|
|
432
|
-
ref:
|
|
432
|
+
ref: n,
|
|
433
433
|
props: _,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: w
|
|
@@ -451,29 +451,29 @@ function yt() {
|
|
|
451
451
|
value: b
|
|
452
452
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function pt(e, r, n, m, b) {
|
|
455
455
|
{
|
|
456
456
|
var w, _ = {}, h = null, F = null;
|
|
457
|
-
|
|
457
|
+
n !== void 0 && ($e(n), h = "" + n), ot(r) && ($e(r.key), h = "" + r.key), lt(r) && (F = r.ref, it(r, b));
|
|
458
458
|
for (w in r)
|
|
459
|
-
|
|
459
|
+
oe.call(r, w) && !nt.hasOwnProperty(w) && (_[w] = r[w]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (w in
|
|
463
|
-
_[w] === void 0 && (_[w] =
|
|
461
|
+
var R = e.defaultProps;
|
|
462
|
+
for (w in R)
|
|
463
|
+
_[w] === void 0 && (_[w] = R[w]);
|
|
464
464
|
}
|
|
465
465
|
if (h || F) {
|
|
466
|
-
var
|
|
467
|
-
h &&
|
|
466
|
+
var C = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
h && st(_, C), F && ct(_, C);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return ut(e, h, F, b, m, Q.current, _);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var me =
|
|
473
|
-
function
|
|
472
|
+
var me = P.ReactCurrentOwner, De = P.ReactDebugCurrentFrame;
|
|
473
|
+
function X(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var r = e._owner,
|
|
476
|
-
De.setExtraStackFrame(
|
|
475
|
+
var r = e._owner, n = le(e.type, e._source, r ? r.type : null);
|
|
476
|
+
De.setExtraStackFrame(n);
|
|
477
477
|
} else
|
|
478
478
|
De.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
@@ -485,7 +485,7 @@ function yt() {
|
|
|
485
485
|
function Ae() {
|
|
486
486
|
{
|
|
487
487
|
if (me.current) {
|
|
488
|
-
var e =
|
|
488
|
+
var e = E(me.current.type);
|
|
489
489
|
if (e)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -494,26 +494,26 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function ft(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var r = e.fileName.replace(/^.*[\\\/]/, ""),
|
|
500
|
+
var r = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` + r + ":" +
|
|
503
|
+
Check your code at ` + r + ":" + n + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
var Le = {};
|
|
509
|
-
function
|
|
509
|
+
function dt(e) {
|
|
510
510
|
{
|
|
511
511
|
var r = Ae();
|
|
512
512
|
if (!r) {
|
|
513
|
-
var
|
|
514
|
-
|
|
513
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
+
n && (r = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + n + ">.");
|
|
517
517
|
}
|
|
518
518
|
return r;
|
|
519
519
|
}
|
|
@@ -523,12 +523,12 @@ Check the top-level render call using <` + a + ">.");
|
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (Le[
|
|
526
|
+
var n = dt(r);
|
|
527
|
+
if (Le[n])
|
|
528
528
|
return;
|
|
529
|
-
Le[
|
|
529
|
+
Le[n] = !0;
|
|
530
530
|
var m = "";
|
|
531
|
-
e && e._owner && e._owner !== me.current && (m = " It was passed a child from " +
|
|
531
|
+
e && e._owner && e._owner !== me.current && (m = " It was passed a child from " + E(e._owner.type) + "."), X(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, m), X(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function We(e, r) {
|
|
@@ -536,8 +536,8 @@ Check the top-level render call using <` + a + ">.");
|
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
538
|
if (fe(e))
|
|
539
|
-
for (var
|
|
540
|
-
var m = e[
|
|
539
|
+
for (var n = 0; n < e.length; n++) {
|
|
540
|
+
var m = e[n];
|
|
541
541
|
he(m) && Me(m, r);
|
|
542
542
|
}
|
|
543
543
|
else if (he(e))
|
|
@@ -550,119 +550,119 @@ Check the top-level render call using <` + a + ">.");
|
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function mt(e) {
|
|
554
554
|
{
|
|
555
555
|
var r = e.type;
|
|
556
556
|
if (r == null || typeof r == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
558
|
+
var n;
|
|
559
559
|
if (typeof r == "function")
|
|
560
|
-
|
|
560
|
+
n = r.propTypes;
|
|
561
561
|
else if (typeof r == "object" && (r.$$typeof === d || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
563
|
r.$$typeof === v))
|
|
564
|
-
|
|
564
|
+
n = r.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var m =
|
|
569
|
-
|
|
567
|
+
if (n) {
|
|
568
|
+
var m = E(r);
|
|
569
|
+
et(n, e.props, "prop", m, e);
|
|
570
570
|
} else if (r.PropTypes !== void 0 && !ke) {
|
|
571
571
|
ke = !0;
|
|
572
|
-
var b =
|
|
572
|
+
var b = E(r);
|
|
573
573
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", b || "Unknown");
|
|
574
574
|
}
|
|
575
575
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function kt(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var r = Object.keys(e.props),
|
|
581
|
-
var m = r[
|
|
580
|
+
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
581
|
+
var m = r[n];
|
|
582
582
|
if (m !== "children" && m !== "key") {
|
|
583
|
-
|
|
583
|
+
X(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), X(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (X(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function Be(e, r,
|
|
590
|
+
function Be(e, r, n, m, b, w) {
|
|
591
591
|
{
|
|
592
|
-
var _ =
|
|
592
|
+
var _ = M(e);
|
|
593
593
|
if (!_) {
|
|
594
594
|
var h = "";
|
|
595
595
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
|
-
var F =
|
|
596
|
+
var F = ft(b);
|
|
597
597
|
F ? h += F : h += Ae();
|
|
598
|
-
var
|
|
599
|
-
e === null ?
|
|
598
|
+
var R;
|
|
599
|
+
e === null ? R = "null" : fe(e) ? R = "array" : e !== void 0 && e.$$typeof === p ? (R = "<" + (E(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, h);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
601
|
+
var C = pt(e, r, n, b, w);
|
|
602
|
+
if (C == null)
|
|
603
|
+
return C;
|
|
604
604
|
if (_) {
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
605
|
+
var U = r.children;
|
|
606
|
+
if (U !== void 0)
|
|
607
607
|
if (m)
|
|
608
|
-
if (fe(
|
|
609
|
-
for (var
|
|
610
|
-
We(
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
608
|
+
if (fe(U)) {
|
|
609
|
+
for (var Z = 0; Z < U.length; Z++)
|
|
610
|
+
We(U[Z], e);
|
|
611
|
+
Object.freeze && Object.freeze(U);
|
|
612
612
|
} else
|
|
613
613
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
614
614
|
else
|
|
615
|
-
We(
|
|
615
|
+
We(U, e);
|
|
616
616
|
}
|
|
617
|
-
return e ===
|
|
617
|
+
return e === i ? kt(C) : mt(C), C;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return Be(e, r,
|
|
620
|
+
function ht(e, r, n) {
|
|
621
|
+
return Be(e, r, n, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return Be(e, r,
|
|
623
|
+
function _t(e, r, n) {
|
|
624
|
+
return Be(e, r, n, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
te.Fragment =
|
|
626
|
+
var vt = _t, bt = ht;
|
|
627
|
+
te.Fragment = i, te.jsx = vt, te.jsxs = bt;
|
|
628
628
|
}()), te;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ? ve.exports =
|
|
630
|
+
process.env.NODE_ENV === "production" ? ve.exports = yt() : ve.exports = wt();
|
|
631
631
|
var be = ve.exports;
|
|
632
|
-
const
|
|
633
|
-
function
|
|
634
|
-
return !_e[
|
|
632
|
+
const z = be.Fragment, t = be.jsx, s = be.jsxs, _e = {}, xt = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
633
|
+
function Et(a, p) {
|
|
634
|
+
return !_e[a] && typeof window.fetch == "function" && (_e[a] = window.fetch(p + a + ".svg").then((c) => c.ok ? c.text() : (console.error("Missing icon: " + p + a + ".svg"), xt)).then((c) => c)), Promise.resolve(_e[a]);
|
|
635
635
|
}
|
|
636
|
-
const g = ({ name:
|
|
637
|
-
const l = "https://punkt-cdn.oslo.kommune.no/7.1/icons/", [u, f] =
|
|
638
|
-
return
|
|
639
|
-
if (!
|
|
636
|
+
const g = ({ name: a, path: p, className: c = "", ...i }) => {
|
|
637
|
+
const l = "https://punkt-cdn.oslo.kommune.no/7.1/icons/", [u, f] = re(null);
|
|
638
|
+
return Ge(() => {
|
|
639
|
+
if (!a)
|
|
640
640
|
return;
|
|
641
|
-
|
|
642
|
-
}, [
|
|
641
|
+
Et(a, p || l).then((d) => f(d));
|
|
642
|
+
}, [a, p, l]), u ? /* @__PURE__ */ t(
|
|
643
643
|
"span",
|
|
644
644
|
{
|
|
645
645
|
className: `pkt-icon ${c}`,
|
|
646
646
|
dangerouslySetInnerHTML: { __html: u },
|
|
647
|
-
...
|
|
647
|
+
...i
|
|
648
648
|
}
|
|
649
649
|
) : null;
|
|
650
|
-
}, He =
|
|
650
|
+
}, He = H(
|
|
651
651
|
({
|
|
652
|
-
children:
|
|
652
|
+
children: a,
|
|
653
653
|
className: p,
|
|
654
654
|
skin: c = "info",
|
|
655
|
-
closeAlert:
|
|
655
|
+
closeAlert: i = !1,
|
|
656
656
|
onClose: l,
|
|
657
657
|
title: u,
|
|
658
658
|
date: f,
|
|
659
|
-
ariaLive:
|
|
659
|
+
ariaLive: o = "polite",
|
|
660
660
|
...d
|
|
661
661
|
}, x) => {
|
|
662
|
-
const N = [p, "pkt-alert", c && `pkt-alert--${c}`].filter(Boolean).join(" "), [v, T] =
|
|
662
|
+
const N = [p, "pkt-alert", c && `pkt-alert--${c}`].filter(Boolean).join(" "), [v, T] = re(!0), j = () => {
|
|
663
663
|
T(!1), l && l();
|
|
664
664
|
};
|
|
665
|
-
return v ? /* @__PURE__ */
|
|
665
|
+
return v ? /* @__PURE__ */ s("div", { ...d, className: N, "aria-live": o, ref: x, children: [
|
|
666
666
|
/* @__PURE__ */ t(
|
|
667
667
|
g,
|
|
668
668
|
{
|
|
@@ -670,48 +670,48 @@ const g = ({ name: n, path: p, className: c = "", ...s }) => {
|
|
|
670
670
|
name: c === "info" ? "alert-information" : `alert-${c}`
|
|
671
671
|
}
|
|
672
672
|
),
|
|
673
|
-
|
|
673
|
+
i && /* @__PURE__ */ t("div", { className: "pkt-alert__close", children: /* @__PURE__ */ t(
|
|
674
674
|
"button",
|
|
675
675
|
{
|
|
676
676
|
type: "button",
|
|
677
677
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
|
|
678
678
|
tabIndex: 0,
|
|
679
679
|
"aria-label": "close",
|
|
680
|
-
onClick:
|
|
680
|
+
onClick: j,
|
|
681
681
|
children: /* @__PURE__ */ t(g, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
682
682
|
}
|
|
683
683
|
) }),
|
|
684
684
|
u && /* @__PURE__ */ t("div", { className: "pkt-alert__title", children: u }),
|
|
685
|
-
/* @__PURE__ */ t("div", { className: "pkt-alert__text", children:
|
|
686
|
-
f && /* @__PURE__ */
|
|
685
|
+
/* @__PURE__ */ t("div", { className: "pkt-alert__text", children: a }),
|
|
686
|
+
f && /* @__PURE__ */ s("div", { className: "pkt-alert__date", children: [
|
|
687
687
|
"Sist oppdatert: ",
|
|
688
688
|
f
|
|
689
689
|
] })
|
|
690
690
|
] }) : null;
|
|
691
691
|
}
|
|
692
|
-
),
|
|
693
|
-
({ href:
|
|
692
|
+
), $t = H(
|
|
693
|
+
({ href: a, text: p, onClick: c, className: i, ...l }, u) => {
|
|
694
694
|
const f = [
|
|
695
|
-
|
|
695
|
+
i,
|
|
696
696
|
"pkt-back-link"
|
|
697
697
|
].filter(Boolean).join(" ");
|
|
698
|
-
return /* @__PURE__ */ t("nav", { ref: u, className: f, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */
|
|
698
|
+
return /* @__PURE__ */ t("nav", { ref: u, className: f, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ s("a", { href: a || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
|
|
699
699
|
c && c();
|
|
700
700
|
}, ...l, children: [
|
|
701
701
|
/* @__PURE__ */ t(g, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
|
|
702
702
|
/* @__PURE__ */ t("span", { className: "pkt-back-link__text", children: p || "Forsiden" })
|
|
703
703
|
] }) });
|
|
704
704
|
}
|
|
705
|
-
),
|
|
705
|
+
), se = H(
|
|
706
706
|
({
|
|
707
|
-
children:
|
|
707
|
+
children: a,
|
|
708
708
|
className: p,
|
|
709
709
|
iconName: c = "user",
|
|
710
|
-
secondIconName:
|
|
710
|
+
secondIconName: i = "user",
|
|
711
711
|
size: l = "medium",
|
|
712
712
|
skin: u = "primary",
|
|
713
713
|
type: f = "button",
|
|
714
|
-
variant:
|
|
714
|
+
variant: o = "label-only",
|
|
715
715
|
color: d,
|
|
716
716
|
...x
|
|
717
717
|
}, N) => {
|
|
@@ -720,64 +720,64 @@ const g = ({ name: n, path: p, className: c = "", ...s }) => {
|
|
|
720
720
|
"pkt-btn",
|
|
721
721
|
l && `pkt-btn--${l}`,
|
|
722
722
|
u && `pkt-btn--${u}`,
|
|
723
|
-
|
|
723
|
+
o && `pkt-btn--${o}`,
|
|
724
724
|
d && `pkt-btn--${d}`
|
|
725
725
|
].filter(Boolean).join(" ");
|
|
726
|
-
return /* @__PURE__ */
|
|
727
|
-
|
|
728
|
-
/* @__PURE__ */ t("span", { className: "pkt-btn__text", children:
|
|
729
|
-
|
|
726
|
+
return /* @__PURE__ */ s("button", { ...x, className: v, type: f, ref: N, children: [
|
|
727
|
+
o !== "label-only" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: c }),
|
|
728
|
+
/* @__PURE__ */ t("span", { className: "pkt-btn__text", children: a }),
|
|
729
|
+
o === "icons-right-and-left" && /* @__PURE__ */ t(g, { className: "pkt-btn__icon", name: i })
|
|
730
730
|
] });
|
|
731
731
|
}
|
|
732
732
|
);
|
|
733
|
-
|
|
734
|
-
const
|
|
733
|
+
se.displayName = "PktButton";
|
|
734
|
+
const It = ({ columnOne: a, columnTwo: p, socialLinks: c, className: i }) => {
|
|
735
735
|
var u, f;
|
|
736
|
-
const l = [
|
|
737
|
-
return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */
|
|
738
|
-
/* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
740
|
-
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children:
|
|
741
|
-
/* @__PURE__ */
|
|
742
|
-
|
|
743
|
-
(u =
|
|
736
|
+
const l = [i, "pkt-footer"].filter(Boolean).join(" ");
|
|
737
|
+
return /* @__PURE__ */ t("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ s("div", { className: "pkt-footer__container", children: [
|
|
738
|
+
/* @__PURE__ */ s("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
739
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
740
|
+
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: a.title }),
|
|
741
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
742
|
+
a.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: a.text }),
|
|
743
|
+
(u = a.links) == null ? void 0 : u.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
744
744
|
"a",
|
|
745
745
|
{
|
|
746
|
-
className: `pkt-footer__link ${
|
|
747
|
-
href:
|
|
748
|
-
target:
|
|
749
|
-
rel:
|
|
746
|
+
className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
|
|
747
|
+
href: o.href,
|
|
748
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
749
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
750
750
|
children: [
|
|
751
751
|
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
752
|
-
|
|
752
|
+
o.text
|
|
753
753
|
]
|
|
754
754
|
}
|
|
755
755
|
) }, `links-${d}`))
|
|
756
756
|
] })
|
|
757
757
|
] }),
|
|
758
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
759
759
|
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: p.title }),
|
|
760
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
761
761
|
p.text && /* @__PURE__ */ t("li", { className: "pkt-footer__text", children: p.text }),
|
|
762
|
-
(f = p.links) == null ? void 0 : f.map((
|
|
762
|
+
(f = p.links) == null ? void 0 : f.map((o, d) => /* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
763
763
|
"a",
|
|
764
764
|
{
|
|
765
|
-
className: `pkt-footer__link ${
|
|
766
|
-
href:
|
|
767
|
-
target:
|
|
768
|
-
rel:
|
|
765
|
+
className: `pkt-footer__link ${o.external ? "pkt-link--external" : ""}`,
|
|
766
|
+
href: o.href,
|
|
767
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
768
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
769
769
|
children: [
|
|
770
770
|
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
771
|
-
|
|
771
|
+
o.text
|
|
772
772
|
]
|
|
773
773
|
}
|
|
774
774
|
) }, `links-${d}`))
|
|
775
775
|
] })
|
|
776
776
|
] }),
|
|
777
|
-
/* @__PURE__ */
|
|
777
|
+
/* @__PURE__ */ s("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
778
778
|
/* @__PURE__ */ t("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ s("ul", { className: "pkt-footer__list", children: [
|
|
780
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s(
|
|
781
781
|
"a",
|
|
782
782
|
{
|
|
783
783
|
className: "pkt-footer__link",
|
|
@@ -788,57 +788,57 @@ const $t = ({ columnOne: n, columnTwo: p, socialLinks: c, className: s }) => {
|
|
|
788
788
|
]
|
|
789
789
|
}
|
|
790
790
|
) }),
|
|
791
|
-
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */
|
|
791
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
792
792
|
/* @__PURE__ */ t(g, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
793
793
|
"Tilgjengelighet"
|
|
794
794
|
] }) })
|
|
795
795
|
] })
|
|
796
796
|
] })
|
|
797
797
|
] }),
|
|
798
|
-
c && /* @__PURE__ */
|
|
799
|
-
/* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: c.filter((
|
|
798
|
+
c && /* @__PURE__ */ s("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
799
|
+
/* @__PURE__ */ t("div", { className: "pkt-footer__social-languages", children: c.filter((o) => o.language).map((o, d) => /* @__PURE__ */ t(
|
|
800
800
|
"div",
|
|
801
801
|
{
|
|
802
802
|
className: "pkt-footer__social-language",
|
|
803
803
|
children: /* @__PURE__ */ t(
|
|
804
804
|
"a",
|
|
805
805
|
{
|
|
806
|
-
href:
|
|
807
|
-
"aria-label": `til ${
|
|
808
|
-
target:
|
|
809
|
-
rel:
|
|
810
|
-
children:
|
|
806
|
+
href: o.href,
|
|
807
|
+
"aria-label": `til ${o.language} versjon av nettsiden`,
|
|
808
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
809
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
810
|
+
children: o.language
|
|
811
811
|
}
|
|
812
812
|
)
|
|
813
813
|
},
|
|
814
814
|
`sociallinks-language-${d}`
|
|
815
815
|
)) }),
|
|
816
|
-
/* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: c.filter((
|
|
816
|
+
/* @__PURE__ */ t("div", { className: "pkt-footer__social-icons", children: c.filter((o) => o.iconName).map((o, d) => /* @__PURE__ */ t(V.Fragment, { children: /* @__PURE__ */ t(
|
|
817
817
|
"a",
|
|
818
818
|
{
|
|
819
|
-
href:
|
|
820
|
-
"aria-label": `til ${
|
|
819
|
+
href: o.href,
|
|
820
|
+
"aria-label": `til ${o.iconName}`,
|
|
821
821
|
className: "pkt-footer__social-icon-link",
|
|
822
|
-
target:
|
|
823
|
-
rel:
|
|
824
|
-
children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name:
|
|
822
|
+
target: o.openInNewTab ? "_blank" : "_self",
|
|
823
|
+
rel: o.openInNewTab ? "noopener noreferrer" : void 0,
|
|
824
|
+
children: /* @__PURE__ */ t(g, { className: "pkt-footer__social-icon", name: o.iconName })
|
|
825
825
|
}
|
|
826
826
|
) }, `sociallinks-${d}`)) })
|
|
827
827
|
] })
|
|
828
828
|
] }) });
|
|
829
|
-
},
|
|
830
|
-
links:
|
|
829
|
+
}, Ft = ({
|
|
830
|
+
links: a = [],
|
|
831
831
|
className: p
|
|
832
832
|
}) => {
|
|
833
833
|
const c = [p, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
834
|
-
return /* @__PURE__ */ t("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */
|
|
835
|
-
|
|
834
|
+
return /* @__PURE__ */ t("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ t("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ s("ul", { className: "pkt-footer-simple__list", children: [
|
|
835
|
+
a.map((i, l) => /* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s(
|
|
836
836
|
"a",
|
|
837
837
|
{
|
|
838
|
-
className: `pkt-footer-simple__link ${
|
|
839
|
-
href:
|
|
840
|
-
target:
|
|
841
|
-
rel:
|
|
838
|
+
className: `pkt-footer-simple__link ${i.external ? " pkt-link--external" : ""}`,
|
|
839
|
+
href: i.href,
|
|
840
|
+
target: i.openInNewTab ? "_blank" : "_self",
|
|
841
|
+
rel: i.openInNewTab ? "noopener noreferrer" : void 0,
|
|
842
842
|
children: [
|
|
843
843
|
/* @__PURE__ */ t(
|
|
844
844
|
g,
|
|
@@ -847,112 +847,112 @@ const $t = ({ columnOne: n, columnTwo: p, socialLinks: c, className: s }) => {
|
|
|
847
847
|
name: "chevron-right"
|
|
848
848
|
}
|
|
849
849
|
),
|
|
850
|
-
|
|
850
|
+
i.text
|
|
851
851
|
]
|
|
852
852
|
}
|
|
853
853
|
) }, l)),
|
|
854
|
-
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */
|
|
854
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
855
855
|
/* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
856
856
|
"Personvern og informasjonskapsler"
|
|
857
857
|
] }) }),
|
|
858
|
-
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */
|
|
858
|
+
/* @__PURE__ */ t("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ s("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
859
859
|
/* @__PURE__ */ t(g, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
860
860
|
"Tilgjengelighet"
|
|
861
861
|
] }) })
|
|
862
862
|
] }) }) });
|
|
863
863
|
};
|
|
864
|
-
var
|
|
864
|
+
var Je = { exports: {} };
|
|
865
865
|
/*!
|
|
866
866
|
Copyright (c) 2018 Jed Watson.
|
|
867
867
|
Licensed under the MIT License (MIT), see
|
|
868
868
|
http://jedwatson.github.io/classnames
|
|
869
869
|
*/
|
|
870
|
-
(function(
|
|
870
|
+
(function(a) {
|
|
871
871
|
(function() {
|
|
872
872
|
var p = {}.hasOwnProperty;
|
|
873
873
|
function c() {
|
|
874
|
-
for (var
|
|
874
|
+
for (var i = [], l = 0; l < arguments.length; l++) {
|
|
875
875
|
var u = arguments[l];
|
|
876
876
|
if (u) {
|
|
877
877
|
var f = typeof u;
|
|
878
878
|
if (f === "string" || f === "number")
|
|
879
|
-
|
|
879
|
+
i.push(u);
|
|
880
880
|
else if (Array.isArray(u)) {
|
|
881
881
|
if (u.length) {
|
|
882
|
-
var
|
|
883
|
-
|
|
882
|
+
var o = c.apply(null, u);
|
|
883
|
+
o && i.push(o);
|
|
884
884
|
}
|
|
885
885
|
} else if (f === "object") {
|
|
886
886
|
if (u.toString !== Object.prototype.toString && !u.toString.toString().includes("[native code]")) {
|
|
887
|
-
|
|
887
|
+
i.push(u.toString());
|
|
888
888
|
continue;
|
|
889
889
|
}
|
|
890
890
|
for (var d in u)
|
|
891
|
-
p.call(u, d) && u[d] &&
|
|
891
|
+
p.call(u, d) && u[d] && i.push(d);
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
return
|
|
895
|
+
return i.join(" ");
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
a.exports ? (c.default = c, a.exports = c) : window.classNames = c;
|
|
898
898
|
})();
|
|
899
|
-
})(
|
|
900
|
-
var
|
|
901
|
-
const
|
|
899
|
+
})(Je);
|
|
900
|
+
var Rt = Je.exports;
|
|
901
|
+
const qe = /* @__PURE__ */ Nt(Rt), Dt = H(
|
|
902
902
|
({
|
|
903
|
-
logoLink:
|
|
903
|
+
logoLink: a = "https://www.oslo.kommune.no/",
|
|
904
904
|
serviceName: p,
|
|
905
905
|
fixed: c = !0,
|
|
906
|
-
scrollToHide:
|
|
906
|
+
scrollToHide: i = !0,
|
|
907
907
|
user: l,
|
|
908
908
|
userMenu: u,
|
|
909
909
|
representing: f,
|
|
910
|
-
userOptions:
|
|
910
|
+
userOptions: o,
|
|
911
911
|
userMenuFooter: d,
|
|
912
912
|
canChangeRepresentation: x = !0,
|
|
913
913
|
showMenuButton: N = !1,
|
|
914
914
|
showLogOutButton: v = !1,
|
|
915
915
|
openMenu: T,
|
|
916
|
-
logOut:
|
|
916
|
+
logOut: j,
|
|
917
917
|
changeRepresentation: $,
|
|
918
|
-
...
|
|
918
|
+
...B
|
|
919
919
|
}, S) => {
|
|
920
|
-
const
|
|
920
|
+
const P = V.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
|
|
921
921
|
year: "numeric",
|
|
922
922
|
month: "long",
|
|
923
923
|
day: "numeric"
|
|
924
|
-
}) : "", [l]), [y,
|
|
925
|
-
|
|
926
|
-
document.removeEventListener("mouseup",
|
|
924
|
+
}) : "", [l]), [y, L] = V.useState(!1), [D, G] = V.useState(0), [I, Y] = V.useState(!1), O = V.useRef(null);
|
|
925
|
+
V.useEffect(() => (document.addEventListener("mouseup", M), window.addEventListener("scroll", J), () => {
|
|
926
|
+
document.removeEventListener("mouseup", M), window.removeEventListener("scroll", J);
|
|
927
927
|
}));
|
|
928
|
-
const
|
|
929
|
-
|
|
930
|
-
},
|
|
931
|
-
O.current && !O.current.contains(k.target) &&
|
|
932
|
-
},
|
|
933
|
-
if (
|
|
928
|
+
const A = () => {
|
|
929
|
+
Y(!I);
|
|
930
|
+
}, M = (k) => {
|
|
931
|
+
O.current && !O.current.contains(k.target) && Y(!1);
|
|
932
|
+
}, J = () => {
|
|
933
|
+
if (i) {
|
|
934
934
|
const k = window.pageYOffset || document.documentElement.scrollTop;
|
|
935
|
-
if (k < 0 || Math.abs(k -
|
|
935
|
+
if (k < 0 || Math.abs(k - D) < 60)
|
|
936
936
|
return;
|
|
937
|
-
|
|
937
|
+
L(k > D), G(k);
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
|
-
return /* @__PURE__ */
|
|
940
|
+
return /* @__PURE__ */ s(
|
|
941
941
|
"header",
|
|
942
942
|
{
|
|
943
|
-
...
|
|
943
|
+
...B,
|
|
944
944
|
id: "pkt-header",
|
|
945
945
|
"data-testid": "pkt-header",
|
|
946
946
|
"aria-label": "Topp",
|
|
947
|
-
className:
|
|
947
|
+
className: qe("pkt-header", {
|
|
948
948
|
"pkt-header--fixed": c,
|
|
949
|
-
"pkt-header--scroll-to-hide":
|
|
949
|
+
"pkt-header--scroll-to-hide": i,
|
|
950
950
|
"pkt-header--hidden": y
|
|
951
951
|
}),
|
|
952
952
|
ref: S,
|
|
953
953
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
-
typeof
|
|
954
|
+
/* @__PURE__ */ s("div", { className: "pkt-header__logo", children: [
|
|
955
|
+
typeof a == "string" ? /* @__PURE__ */ t("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: a, children: /* @__PURE__ */ t(
|
|
956
956
|
g,
|
|
957
957
|
{
|
|
958
958
|
name: "oslologo",
|
|
@@ -965,7 +965,7 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
965
965
|
{
|
|
966
966
|
"aria-label": "Tilbake til forside",
|
|
967
967
|
className: "pkt-link-button pkt-link pkt-header__logo-link",
|
|
968
|
-
onClick:
|
|
968
|
+
onClick: a,
|
|
969
969
|
children: /* @__PURE__ */ t(
|
|
970
970
|
g,
|
|
971
971
|
{
|
|
@@ -979,9 +979,9 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
979
979
|
),
|
|
980
980
|
/* @__PURE__ */ t("span", { className: "pkt-header__logo-service", children: p })
|
|
981
981
|
] }),
|
|
982
|
-
/* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */
|
|
982
|
+
/* @__PURE__ */ t("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ s("ul", { className: "pkt-header__actions-row", children: [
|
|
983
983
|
N && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
984
|
-
|
|
984
|
+
se,
|
|
985
985
|
{
|
|
986
986
|
className: "pkt-header__menu-btn",
|
|
987
987
|
skin: "secondary",
|
|
@@ -991,22 +991,22 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
991
991
|
children: "Meny"
|
|
992
992
|
}
|
|
993
993
|
) }),
|
|
994
|
-
(l || f) && /* @__PURE__ */
|
|
994
|
+
(l || f) && /* @__PURE__ */ s(
|
|
995
995
|
"li",
|
|
996
996
|
{
|
|
997
997
|
"data-testid": "usermenu",
|
|
998
|
-
className: `pkt-header--has-dropdown ${
|
|
998
|
+
className: `pkt-header--has-dropdown ${I && !y ? "pkt-header--open-dropdown" : ""}`,
|
|
999
999
|
ref: O,
|
|
1000
1000
|
children: [
|
|
1001
|
-
/* @__PURE__ */
|
|
1001
|
+
/* @__PURE__ */ s(
|
|
1002
1002
|
"button",
|
|
1003
1003
|
{
|
|
1004
1004
|
className: "pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",
|
|
1005
1005
|
type: "button",
|
|
1006
1006
|
role: "button",
|
|
1007
1007
|
"aria-controls": "pktUserDropdown",
|
|
1008
|
-
"aria-expanded":
|
|
1009
|
-
onClick:
|
|
1008
|
+
"aria-expanded": I,
|
|
1009
|
+
onClick: A,
|
|
1010
1010
|
children: [
|
|
1011
1011
|
/* @__PURE__ */ t(g, { name: "user", className: "pkt-btn__icon" }),
|
|
1012
1012
|
/* @__PURE__ */ t("span", { className: "pkt-header__user-fullname", children: (f == null ? void 0 : f.name) || (l == null ? void 0 : l.name) }),
|
|
@@ -1016,32 +1016,32 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
1016
1016
|
]
|
|
1017
1017
|
}
|
|
1018
1018
|
),
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
l && /* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ s("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
|
|
1020
|
+
l && /* @__PURE__ */ s("li", { children: [
|
|
1021
1021
|
/* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
|
|
1022
1022
|
/* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: l.name }),
|
|
1023
|
-
l.lastLoggedIn && /* @__PURE__ */
|
|
1023
|
+
l.lastLoggedIn && /* @__PURE__ */ s("div", { className: "pkt-user-menu__last-logged-in", children: [
|
|
1024
1024
|
"Sist pålogget: ",
|
|
1025
|
-
/* @__PURE__ */ t("time", { children:
|
|
1025
|
+
/* @__PURE__ */ t("time", { children: P })
|
|
1026
1026
|
] })
|
|
1027
1027
|
] }),
|
|
1028
|
-
u && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: u.map((k,
|
|
1028
|
+
u && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: u.map((k, E) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ s("a", { href: k.target, className: "pkt-link", children: [
|
|
1029
1029
|
k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
|
|
1030
1030
|
k.title
|
|
1031
|
-
] }) : /* @__PURE__ */
|
|
1031
|
+
] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
|
|
1032
1032
|
k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
|
|
1033
1033
|
k.title
|
|
1034
|
-
] }) }, `userMenu-${
|
|
1035
|
-
(f || x) && /* @__PURE__ */
|
|
1036
|
-
f && /* @__PURE__ */
|
|
1034
|
+
] }) }, `userMenu-${E}`)) }) }),
|
|
1035
|
+
(f || x) && /* @__PURE__ */ s("li", { children: [
|
|
1036
|
+
f && /* @__PURE__ */ s(z, { children: [
|
|
1037
1037
|
/* @__PURE__ */ t("div", { className: "pkt-user-menu__label", children: "Representerer" }),
|
|
1038
1038
|
/* @__PURE__ */ t("div", { className: "pkt-user-menu__name", children: f.name }),
|
|
1039
|
-
f.orgNumber && /* @__PURE__ */
|
|
1039
|
+
f.orgNumber && /* @__PURE__ */ s("div", { className: "pkt-user-menu__org-number", children: [
|
|
1040
1040
|
"Org.nr. ",
|
|
1041
1041
|
f.orgNumber
|
|
1042
1042
|
] })
|
|
1043
1043
|
] }),
|
|
1044
|
-
/* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */
|
|
1044
|
+
/* @__PURE__ */ t("ul", { className: "pkt-list mt-size-16", children: x && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s(
|
|
1045
1045
|
"button",
|
|
1046
1046
|
{
|
|
1047
1047
|
className: "pkt-link-button pkt-link",
|
|
@@ -1053,31 +1053,31 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
1053
1053
|
}
|
|
1054
1054
|
) }) })
|
|
1055
1055
|
] }),
|
|
1056
|
-
/* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (
|
|
1057
|
-
|
|
1056
|
+
/* @__PURE__ */ t("li", { children: /* @__PURE__ */ t("ul", { className: "pkt-list", children: (o || !v) && /* @__PURE__ */ s(z, { children: [
|
|
1057
|
+
o == null ? void 0 : o.map((k, E) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ s("a", { href: k.target, className: "pkt-link", children: [
|
|
1058
1058
|
k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
|
|
1059
1059
|
k.title
|
|
1060
|
-
] }) : /* @__PURE__ */
|
|
1060
|
+
] }) : /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: [
|
|
1061
1061
|
k.iconName && /* @__PURE__ */ t(g, { name: k.iconName, className: "pkt-link__icon" }),
|
|
1062
1062
|
k.title
|
|
1063
|
-
] }) }, `userOptions-${
|
|
1064
|
-
!v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */
|
|
1063
|
+
] }) }, `userOptions-${E}`)),
|
|
1064
|
+
!v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ s("button", { className: "pkt-link-button pkt-link", onClick: j, children: [
|
|
1065
1065
|
/* @__PURE__ */ t(g, { name: "exit", className: "pkt-link__icon" }),
|
|
1066
1066
|
"Logg ut"
|
|
1067
1067
|
] }) })
|
|
1068
1068
|
] }) }) }),
|
|
1069
|
-
d && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: d.map((k,
|
|
1069
|
+
d && /* @__PURE__ */ t("li", { className: "footer", children: /* @__PURE__ */ t("ul", { className: "pkt-list-horizontal bordered", children: d.map((k, E) => /* @__PURE__ */ t("li", { children: typeof k.target == "string" ? /* @__PURE__ */ t("a", { href: k.target, className: "pkt-link", children: k.title }) : /* @__PURE__ */ t("button", { className: "pkt-link-button pkt-link", onClick: k.target, children: k.title }) }, `userMenuFooter-${E}`)) }) })
|
|
1070
1070
|
] })
|
|
1071
1071
|
]
|
|
1072
1072
|
}
|
|
1073
1073
|
),
|
|
1074
1074
|
v && /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
1075
|
-
|
|
1075
|
+
se,
|
|
1076
1076
|
{
|
|
1077
1077
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
1078
1078
|
iconName: "exit",
|
|
1079
1079
|
role: "button",
|
|
1080
|
-
onClick:
|
|
1080
|
+
onClick: j,
|
|
1081
1081
|
skin: "secondary",
|
|
1082
1082
|
variant: "icon-right",
|
|
1083
1083
|
children: "Logg ut"
|
|
@@ -1088,60 +1088,60 @@ const Je = /* @__PURE__ */ gt(Et), Ft = V(
|
|
|
1088
1088
|
}
|
|
1089
1089
|
);
|
|
1090
1090
|
}
|
|
1091
|
-
),
|
|
1092
|
-
({ label:
|
|
1093
|
-
/* @__PURE__ */ t("label", { htmlFor: p, className: "pkt-form-label", children:
|
|
1094
|
-
/* @__PURE__ */ t("input", { className: "pkt-form-input", id: p, ...
|
|
1091
|
+
), Pt = V.forwardRef(
|
|
1092
|
+
({ label: a, id: p, children: c, ...i }, l) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
|
|
1093
|
+
/* @__PURE__ */ t("label", { htmlFor: p, className: "pkt-form-label", children: a }),
|
|
1094
|
+
/* @__PURE__ */ t("input", { className: "pkt-form-input", id: p, ...i, ref: l }),
|
|
1095
1095
|
c
|
|
1096
1096
|
] })
|
|
1097
1097
|
);
|
|
1098
|
-
|
|
1099
|
-
const ge =
|
|
1098
|
+
Pt.displayName = "PktInput";
|
|
1099
|
+
const ge = H(
|
|
1100
1100
|
({
|
|
1101
|
-
forId:
|
|
1101
|
+
forId: a,
|
|
1102
1102
|
label: p,
|
|
1103
1103
|
helptext: c,
|
|
1104
|
-
helptextDropdown:
|
|
1104
|
+
helptextDropdown: i,
|
|
1105
1105
|
helptextDropdownButton: l,
|
|
1106
1106
|
optional: u,
|
|
1107
1107
|
required: f,
|
|
1108
|
-
hasError:
|
|
1108
|
+
hasError: o,
|
|
1109
1109
|
errorMessage: d,
|
|
1110
1110
|
disabled: x,
|
|
1111
1111
|
inline: N,
|
|
1112
1112
|
ariaDescribedby: v,
|
|
1113
1113
|
useWrapper: T = !0,
|
|
1114
|
-
children:
|
|
1114
|
+
children: j,
|
|
1115
1115
|
className: $
|
|
1116
|
-
},
|
|
1117
|
-
const [S,
|
|
1118
|
-
|
|
1119
|
-
},
|
|
1120
|
-
return /* @__PURE__ */
|
|
1116
|
+
}, B) => {
|
|
1117
|
+
const [S, P] = re(!1), y = () => {
|
|
1118
|
+
P(!S);
|
|
1119
|
+
}, L = () => u ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : f ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", D = u ? "Valgfritt" : f ? "Må fylles ut" : "", G = x ? "pkt-inputwrapper--disabled" : "", I = N ? "pkt-inputwrapper--inline" : "", Y = o ? "pkt-inputwrapper--error" : "", O = !!i && i !== "", A = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', M = O ? "div" : "label", J = O ? "h2" : "span", k = v || (c ? `${a}-helptext` : void 0);
|
|
1120
|
+
return /* @__PURE__ */ s(
|
|
1121
1121
|
"div",
|
|
1122
1122
|
{
|
|
1123
|
-
className: ["pkt-inputwrapper", $,
|
|
1123
|
+
className: ["pkt-inputwrapper", $, G, I, Y].join(
|
|
1124
1124
|
" "
|
|
1125
1125
|
),
|
|
1126
|
-
ref:
|
|
1126
|
+
ref: B,
|
|
1127
1127
|
children: [
|
|
1128
|
-
T ? /* @__PURE__ */
|
|
1128
|
+
T ? /* @__PURE__ */ s(z, { children: [
|
|
1129
1129
|
/* @__PURE__ */ t(
|
|
1130
|
-
|
|
1130
|
+
M,
|
|
1131
1131
|
{
|
|
1132
|
-
htmlFor:
|
|
1132
|
+
htmlFor: a,
|
|
1133
1133
|
className: "pkt-inputwrapper__label",
|
|
1134
1134
|
"aria-describedby": O ? "" : v,
|
|
1135
|
-
children: /* @__PURE__ */
|
|
1135
|
+
children: /* @__PURE__ */ s(J, { id: `${a}-label`, children: [
|
|
1136
1136
|
p,
|
|
1137
|
-
|
|
1137
|
+
D !== "" && /* @__PURE__ */ t("span", { className: L(), children: D })
|
|
1138
1138
|
] })
|
|
1139
1139
|
}
|
|
1140
1140
|
),
|
|
1141
|
-
c && /* @__PURE__ */ t("div", { className: "pkt-inputwrapper__helptext", id: `${
|
|
1142
|
-
O &&
|
|
1141
|
+
c && /* @__PURE__ */ t("div", { className: "pkt-inputwrapper__helptext", id: `${a}-helptext`, children: c }),
|
|
1142
|
+
O && i !== "" && /* @__PURE__ */ s("div", { children: [
|
|
1143
1143
|
/* @__PURE__ */ t(
|
|
1144
|
-
|
|
1144
|
+
se,
|
|
1145
1145
|
{
|
|
1146
1146
|
skin: "tertiary",
|
|
1147
1147
|
size: "small",
|
|
@@ -1149,350 +1149,357 @@ const ge = V(
|
|
|
1149
1149
|
iconName: S ? "chevron-thin-up" : "chevron-thin-down",
|
|
1150
1150
|
className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
|
|
1151
1151
|
onClick: y,
|
|
1152
|
-
children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html:
|
|
1152
|
+
children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: A } })
|
|
1153
1153
|
}
|
|
1154
1154
|
),
|
|
1155
1155
|
/* @__PURE__ */ t(
|
|
1156
1156
|
"div",
|
|
1157
1157
|
{
|
|
1158
1158
|
className: `pkt-inputwrapper__helptext ${S ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
|
|
1159
|
-
children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html:
|
|
1159
|
+
children: /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t("span", { dangerouslySetInnerHTML: { __html: i } }) })
|
|
1160
1160
|
}
|
|
1161
1161
|
),
|
|
1162
|
-
/* @__PURE__ */ t("label", { htmlFor:
|
|
1162
|
+
/* @__PURE__ */ t("label", { htmlFor: a, className: "pkt-sr-only", "aria-describedby": k, children: p })
|
|
1163
1163
|
] }),
|
|
1164
|
-
/* @__PURE__ */ t(
|
|
1165
|
-
] }) : /* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ t(z, { children: j })
|
|
1165
|
+
] }) : /* @__PURE__ */ s(z, { children: [
|
|
1166
1166
|
/* @__PURE__ */ t(
|
|
1167
1167
|
"label",
|
|
1168
1168
|
{
|
|
1169
|
-
htmlFor:
|
|
1169
|
+
htmlFor: a,
|
|
1170
1170
|
className: "pkt-sr-only",
|
|
1171
1171
|
"aria-describedby": k,
|
|
1172
|
-
id: `${
|
|
1172
|
+
id: `${a}-label`,
|
|
1173
1173
|
children: p
|
|
1174
1174
|
}
|
|
1175
1175
|
),
|
|
1176
|
-
|
|
1176
|
+
j
|
|
1177
1177
|
] }),
|
|
1178
|
-
|
|
1178
|
+
o && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(He, { skin: "error", "aria-live": "assertive", children: d }) })
|
|
1179
1179
|
]
|
|
1180
1180
|
}
|
|
1181
1181
|
);
|
|
1182
1182
|
}
|
|
1183
1183
|
);
|
|
1184
1184
|
ge.displayName = "PktInputWrapper";
|
|
1185
|
-
const
|
|
1185
|
+
const Ct = H(
|
|
1186
1186
|
({
|
|
1187
|
-
children:
|
|
1187
|
+
children: a,
|
|
1188
1188
|
className: p,
|
|
1189
1189
|
iconName: c = "user",
|
|
1190
|
-
openInNewTab:
|
|
1190
|
+
openInNewTab: i = !1,
|
|
1191
1191
|
skin: l = "normal",
|
|
1192
1192
|
href: u = "#",
|
|
1193
1193
|
external: f = !1,
|
|
1194
|
-
title:
|
|
1194
|
+
title: o
|
|
1195
1195
|
}, d) => {
|
|
1196
1196
|
const x = [p, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
|
|
1197
|
-
return /* @__PURE__ */
|
|
1197
|
+
return /* @__PURE__ */ s(
|
|
1198
1198
|
"a",
|
|
1199
1199
|
{
|
|
1200
1200
|
href: u,
|
|
1201
1201
|
className: `pkt-linkcard pkt-link ${x}`,
|
|
1202
|
-
target:
|
|
1203
|
-
rel:
|
|
1202
|
+
target: i ? "_blank" : "_self",
|
|
1203
|
+
rel: i ? "noopener noreferrer" : void 0,
|
|
1204
1204
|
ref: d,
|
|
1205
1205
|
children: [
|
|
1206
1206
|
/* @__PURE__ */ t(g, { className: "pkt-link__icon", name: c }),
|
|
1207
|
-
/* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${f ? "pkt-link pkt-link--external" : ""}`, children:
|
|
1209
|
-
/* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children:
|
|
1207
|
+
/* @__PURE__ */ s("div", { className: "pkt-linkcard__content", children: [
|
|
1208
|
+
/* @__PURE__ */ t("div", { className: `pkt-linkcard__title ${f ? "pkt-link pkt-link--external" : ""}`, children: o }),
|
|
1209
|
+
/* @__PURE__ */ t("div", { className: "pkt-linkcard__text", children: a })
|
|
1210
1210
|
] })
|
|
1211
1211
|
]
|
|
1212
1212
|
}
|
|
1213
1213
|
);
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
children:
|
|
1216
|
+
Ct.displayName = "PktLinkCard";
|
|
1217
|
+
const At = ({
|
|
1218
|
+
children: a,
|
|
1219
1219
|
skin: p = "beige",
|
|
1220
1220
|
title: c,
|
|
1221
|
-
className:
|
|
1221
|
+
className: i,
|
|
1222
1222
|
...l
|
|
1223
1223
|
}) => {
|
|
1224
|
-
const u = ["pkt-messagebox", p && `pkt-messagebox--${p}`,
|
|
1225
|
-
return /* @__PURE__ */
|
|
1224
|
+
const u = ["pkt-messagebox", p && `pkt-messagebox--${p}`, i].filter(Boolean).join(" ");
|
|
1225
|
+
return /* @__PURE__ */ s("div", { ...l, className: u, children: [
|
|
1226
1226
|
/* @__PURE__ */ t("div", { className: "pkt-messagebox__title", children: c }),
|
|
1227
|
-
/* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children:
|
|
1227
|
+
/* @__PURE__ */ t("div", { className: "pkt-messagebox__text", children: a })
|
|
1228
1228
|
] });
|
|
1229
|
-
}, Tt =
|
|
1230
|
-
({ id:
|
|
1231
|
-
/* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id:
|
|
1232
|
-
/* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor:
|
|
1229
|
+
}, Tt = H(
|
|
1230
|
+
({ id: a, name: p, label: c, value: i, ...l }, u) => /* @__PURE__ */ s("div", { className: "pkt-form-group", children: [
|
|
1231
|
+
/* @__PURE__ */ t("input", { type: "radio", className: "pkt-form-check-input", id: a, name: p, value: i, ref: u, ...l }),
|
|
1232
|
+
/* @__PURE__ */ t("label", { className: "pkt-form-label", htmlFor: a, children: c })
|
|
1233
1233
|
] })
|
|
1234
1234
|
);
|
|
1235
1235
|
Tt.displayName = "PktRadio";
|
|
1236
|
-
const
|
|
1237
|
-
/* @__PURE__ */ t("p", { children:
|
|
1236
|
+
const Lt = ({ label: a, children: p }) => /* @__PURE__ */ s(z, { children: [
|
|
1237
|
+
/* @__PURE__ */ t("p", { children: a }),
|
|
1238
1238
|
/* @__PURE__ */ t("div", { className: "pkt-form-group", children: p })
|
|
1239
|
-
] }),
|
|
1240
|
-
isResponsive:
|
|
1241
|
-
modifiers: { info: p = !1, success: c = !1, strong:
|
|
1239
|
+
] }), jt = ({ isResponsive: a, children: p }) => a ? /* @__PURE__ */ t("div", { className: "pkt-table-container", children: p }) : /* @__PURE__ */ t(z, { children: p }), Mt = ({
|
|
1240
|
+
isResponsive: a,
|
|
1241
|
+
modifiers: { info: p = !1, success: c = !1, strong: i = !1, shadow: l = !1 } = {},
|
|
1242
1242
|
children: u
|
|
1243
|
-
}) => /* @__PURE__ */ t(
|
|
1243
|
+
}) => /* @__PURE__ */ t(jt, { isResponsive: a, children: /* @__PURE__ */ t(
|
|
1244
1244
|
"table",
|
|
1245
1245
|
{
|
|
1246
|
-
className:
|
|
1246
|
+
className: qe("pkt-table", {
|
|
1247
1247
|
"pkt-table--info": p,
|
|
1248
1248
|
"pkt-table--success": c,
|
|
1249
|
-
"pkt-table--strong":
|
|
1249
|
+
"pkt-table--strong": i,
|
|
1250
1250
|
"pkt-table--shadow": l
|
|
1251
1251
|
}),
|
|
1252
1252
|
children: u
|
|
1253
1253
|
}
|
|
1254
|
-
) }),
|
|
1255
|
-
children:
|
|
1254
|
+
) }), Wt = ({ children: a }) => /* @__PURE__ */ t("td", { className: "pkt-table__th", children: a }), Bt = ({ children: a }) => /* @__PURE__ */ t("th", { className: "pkt-table__th", children: a }), St = H(({
|
|
1255
|
+
children: a,
|
|
1256
1256
|
className: p,
|
|
1257
1257
|
skin: c = "blue",
|
|
1258
|
-
textStyle:
|
|
1258
|
+
textStyle: i = "normal-text",
|
|
1259
1259
|
size: l = "medium",
|
|
1260
1260
|
closeTag: u = !1,
|
|
1261
1261
|
iconName: f = "",
|
|
1262
|
-
type:
|
|
1262
|
+
type: o = "button",
|
|
1263
1263
|
ariaLabel: d = "close",
|
|
1264
1264
|
onClick: x = () => {
|
|
1265
1265
|
}
|
|
1266
1266
|
}, N) => {
|
|
1267
|
-
const [v, T] =
|
|
1268
|
-
T(!0), x(
|
|
1267
|
+
const [v, T] = re(!1), j = (P) => {
|
|
1268
|
+
T(!0), x(P);
|
|
1269
1269
|
}, $ = [
|
|
1270
1270
|
"pkt-tag",
|
|
1271
1271
|
l && `pkt-tag--${l}`,
|
|
1272
1272
|
c && `pkt-tag--${c}`,
|
|
1273
|
-
|
|
1273
|
+
i && `pkt-tag--${i}`,
|
|
1274
1274
|
p
|
|
1275
|
-
].filter(Boolean).join(" "),
|
|
1275
|
+
].filter(Boolean).join(" "), B = [
|
|
1276
1276
|
"pkt-tag",
|
|
1277
1277
|
"pkt-btn",
|
|
1278
1278
|
"pkt-btn--tertiary",
|
|
1279
1279
|
l && `pkt-tag--${l}`,
|
|
1280
1280
|
c && `pkt-tag--${c}`,
|
|
1281
|
-
|
|
1281
|
+
i && `pkt-tag--${i}`,
|
|
1282
1282
|
f && u ? "pkt-btn--icons-right-and-left" : null,
|
|
1283
1283
|
u && !f ? "pkt-btn--icon-right" : null,
|
|
1284
1284
|
p
|
|
1285
1285
|
].filter(Boolean).join(" "), S = !v;
|
|
1286
|
-
return u && f ? /* @__PURE__ */ t(
|
|
1286
|
+
return u && f ? /* @__PURE__ */ t(z, { children: S && /* @__PURE__ */ s(
|
|
1287
1287
|
"button",
|
|
1288
1288
|
{
|
|
1289
|
-
className:
|
|
1290
|
-
type:
|
|
1289
|
+
className: B,
|
|
1290
|
+
type: o,
|
|
1291
1291
|
"aria-label": d,
|
|
1292
|
-
onClick:
|
|
1292
|
+
onClick: j,
|
|
1293
1293
|
ref: N,
|
|
1294
1294
|
children: [
|
|
1295
1295
|
/* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
|
|
1296
|
-
|
|
1296
|
+
a,
|
|
1297
1297
|
/* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" })
|
|
1298
1298
|
]
|
|
1299
1299
|
}
|
|
1300
|
-
) }) : u ? /* @__PURE__ */ t(
|
|
1300
|
+
) }) : u ? /* @__PURE__ */ t(z, { children: S && /* @__PURE__ */ s(
|
|
1301
1301
|
"button",
|
|
1302
1302
|
{
|
|
1303
|
-
className:
|
|
1304
|
-
type:
|
|
1303
|
+
className: B,
|
|
1304
|
+
type: o,
|
|
1305
1305
|
"aria-label": d,
|
|
1306
|
-
onClick:
|
|
1306
|
+
onClick: j,
|
|
1307
1307
|
ref: N,
|
|
1308
1308
|
children: [
|
|
1309
1309
|
/* @__PURE__ */ t(g, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1310
|
-
|
|
1310
|
+
a
|
|
1311
1311
|
]
|
|
1312
1312
|
}
|
|
1313
|
-
) }) : f ? /* @__PURE__ */
|
|
1313
|
+
) }) : f ? /* @__PURE__ */ s("span", { className: $, children: [
|
|
1314
1314
|
/* @__PURE__ */ t(g, { className: "pkt-tag__icon", name: f }),
|
|
1315
|
-
|
|
1316
|
-
] }) : /* @__PURE__ */ t("span", { className: $, children:
|
|
1315
|
+
a
|
|
1316
|
+
] }) : /* @__PURE__ */ t("span", { className: $, children: a });
|
|
1317
1317
|
});
|
|
1318
|
-
|
|
1319
|
-
const
|
|
1318
|
+
St.displayName = "PktTag";
|
|
1319
|
+
const Yt = H(
|
|
1320
1320
|
({
|
|
1321
|
-
id:
|
|
1321
|
+
id: a,
|
|
1322
1322
|
ariaDescribedby: p,
|
|
1323
1323
|
ariaLabelledby: c,
|
|
1324
|
-
counter:
|
|
1324
|
+
counter: i,
|
|
1325
1325
|
counterMaxLength: l,
|
|
1326
1326
|
className: u,
|
|
1327
1327
|
disabled: f,
|
|
1328
|
-
errorMessage:
|
|
1328
|
+
errorMessage: o,
|
|
1329
1329
|
hasError: d,
|
|
1330
1330
|
helptext: x,
|
|
1331
1331
|
helptextDropdown: N,
|
|
1332
1332
|
helptextDropdownButton: v,
|
|
1333
1333
|
inline: T,
|
|
1334
|
-
label:
|
|
1334
|
+
label: j,
|
|
1335
1335
|
name: $,
|
|
1336
|
-
optional:
|
|
1336
|
+
optional: B,
|
|
1337
1337
|
placeholder: S,
|
|
1338
|
-
required:
|
|
1338
|
+
required: P,
|
|
1339
1339
|
rows: y,
|
|
1340
|
-
useWrapper:
|
|
1341
|
-
|
|
1342
|
-
...
|
|
1343
|
-
},
|
|
1344
|
-
const
|
|
1345
|
-
|
|
1340
|
+
useWrapper: L,
|
|
1341
|
+
onChange: D,
|
|
1342
|
+
...G
|
|
1343
|
+
}, I) => {
|
|
1344
|
+
const Y = [u, "pkt-textinput", "pkt-textarea"].join(" "), O = c || `${a}-label`, A = gt(null), [M, J] = re(0), k = (E) => {
|
|
1345
|
+
var W, K;
|
|
1346
|
+
if (i && J(((K = (W = E.currentTarget) == null ? void 0 : W.value) == null ? void 0 : K.length) || 0), D)
|
|
1347
|
+
return D(E);
|
|
1348
|
+
};
|
|
1349
|
+
return Ge(() => {
|
|
1350
|
+
var E, W;
|
|
1351
|
+
typeof I == "function" && I(A.current), i && J(((W = (E = A == null ? void 0 : A.current) == null ? void 0 : E.value) == null ? void 0 : W.length) || 0);
|
|
1352
|
+
}, [I]), /* @__PURE__ */ s(
|
|
1346
1353
|
ge,
|
|
1347
1354
|
{
|
|
1348
1355
|
ariaDescribedby: p,
|
|
1349
|
-
className:
|
|
1356
|
+
className: Y,
|
|
1350
1357
|
disabled: f,
|
|
1351
|
-
errorMessage:
|
|
1352
|
-
forId:
|
|
1358
|
+
errorMessage: o,
|
|
1359
|
+
forId: a,
|
|
1353
1360
|
hasError: d,
|
|
1354
1361
|
helptext: x,
|
|
1355
1362
|
helptextDropdown: N,
|
|
1356
1363
|
helptextDropdownButton: v,
|
|
1357
1364
|
inline: T,
|
|
1358
|
-
label:
|
|
1359
|
-
optional:
|
|
1360
|
-
required:
|
|
1361
|
-
useWrapper:
|
|
1365
|
+
label: j,
|
|
1366
|
+
optional: B,
|
|
1367
|
+
required: P,
|
|
1368
|
+
useWrapper: L,
|
|
1362
1369
|
children: [
|
|
1363
1370
|
/* @__PURE__ */ t(
|
|
1364
1371
|
"textarea",
|
|
1365
1372
|
{
|
|
1366
1373
|
ref: A,
|
|
1367
|
-
className: `pkt-textinput__input ${l &&
|
|
1368
|
-
name: $ ||
|
|
1369
|
-
id:
|
|
1374
|
+
className: `pkt-textinput__input ${l && M > l ? "pkt-textinput__input--counter-error" : ""}`,
|
|
1375
|
+
name: $ || a,
|
|
1376
|
+
id: a,
|
|
1370
1377
|
placeholder: S,
|
|
1371
|
-
value: j,
|
|
1372
1378
|
disabled: f,
|
|
1373
1379
|
rows: y,
|
|
1374
1380
|
"aria-labelledby": O,
|
|
1375
1381
|
"aria-invalid": d,
|
|
1376
|
-
"aria-required":
|
|
1377
|
-
...
|
|
1382
|
+
"aria-required": P,
|
|
1383
|
+
...G,
|
|
1384
|
+
onChange: k
|
|
1378
1385
|
}
|
|
1379
1386
|
),
|
|
1380
|
-
|
|
1381
|
-
|
|
1387
|
+
i && /* @__PURE__ */ s("div", { className: "pkt-textinput__counter", "aria-live": "polite", "aria-atomic": !0, children: [
|
|
1388
|
+
M || 0,
|
|
1382
1389
|
l && `/${l}`
|
|
1383
1390
|
] })
|
|
1384
1391
|
]
|
|
1385
1392
|
}
|
|
1386
1393
|
);
|
|
1387
1394
|
}
|
|
1388
|
-
),
|
|
1395
|
+
), Ut = H(
|
|
1389
1396
|
({
|
|
1390
|
-
id:
|
|
1397
|
+
id: a,
|
|
1391
1398
|
ariaDescribedby: p,
|
|
1392
1399
|
ariaLabelledby: c,
|
|
1393
|
-
autocomplete:
|
|
1400
|
+
autocomplete: i = "off",
|
|
1394
1401
|
className: l,
|
|
1395
1402
|
disabled: u = !1,
|
|
1396
1403
|
errorMessage: f,
|
|
1397
|
-
hasError:
|
|
1404
|
+
hasError: o = !1,
|
|
1398
1405
|
helptext: d,
|
|
1399
1406
|
helptextDropdown: x,
|
|
1400
1407
|
helptextDropdownButton: N,
|
|
1401
1408
|
iconNameRight: v,
|
|
1402
1409
|
inline: T = !1,
|
|
1403
|
-
label:
|
|
1410
|
+
label: j,
|
|
1404
1411
|
name: $,
|
|
1405
|
-
optional:
|
|
1412
|
+
optional: B = !1,
|
|
1406
1413
|
placeholder: S,
|
|
1407
|
-
prefix:
|
|
1414
|
+
prefix: P,
|
|
1408
1415
|
required: y = !1,
|
|
1409
|
-
suffix:
|
|
1410
|
-
type:
|
|
1411
|
-
useWrapper:
|
|
1412
|
-
value:
|
|
1413
|
-
...
|
|
1416
|
+
suffix: L,
|
|
1417
|
+
type: D = "text",
|
|
1418
|
+
useWrapper: G = !0,
|
|
1419
|
+
value: I,
|
|
1420
|
+
...Y
|
|
1414
1421
|
}, O) => {
|
|
1415
|
-
const
|
|
1416
|
-
return /* @__PURE__ */
|
|
1422
|
+
const A = [l, "pkt-textinput"].join(" "), M = c || `${a}-label`;
|
|
1423
|
+
return /* @__PURE__ */ s(
|
|
1417
1424
|
ge,
|
|
1418
1425
|
{
|
|
1419
1426
|
ariaDescribedby: p,
|
|
1420
|
-
className:
|
|
1427
|
+
className: A,
|
|
1421
1428
|
disabled: u,
|
|
1422
1429
|
errorMessage: f,
|
|
1423
|
-
forId:
|
|
1424
|
-
hasError:
|
|
1430
|
+
forId: a,
|
|
1431
|
+
hasError: o,
|
|
1425
1432
|
helptext: d,
|
|
1426
1433
|
helptextDropdown: x,
|
|
1427
1434
|
helptextDropdownButton: N,
|
|
1428
1435
|
inline: T,
|
|
1429
|
-
label:
|
|
1430
|
-
optional:
|
|
1436
|
+
label: j,
|
|
1437
|
+
optional: B,
|
|
1431
1438
|
required: y,
|
|
1432
|
-
useWrapper:
|
|
1439
|
+
useWrapper: G,
|
|
1433
1440
|
children: [
|
|
1434
|
-
|
|
1435
|
-
/* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children:
|
|
1441
|
+
P && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-prefix-wrapper", children: [
|
|
1442
|
+
/* @__PURE__ */ t("div", { className: "pkt-textinput__input-prefix", children: P }),
|
|
1436
1443
|
/* @__PURE__ */ t(
|
|
1437
1444
|
"input",
|
|
1438
1445
|
{
|
|
1439
1446
|
ref: O,
|
|
1440
1447
|
className: "pkt-textinput__input",
|
|
1441
|
-
type:
|
|
1442
|
-
name: $ ||
|
|
1443
|
-
id:
|
|
1448
|
+
type: D,
|
|
1449
|
+
name: $ || a,
|
|
1450
|
+
id: a,
|
|
1444
1451
|
placeholder: S,
|
|
1445
|
-
autoComplete:
|
|
1446
|
-
value:
|
|
1452
|
+
autoComplete: i,
|
|
1453
|
+
value: I,
|
|
1447
1454
|
disabled: u,
|
|
1448
1455
|
"aria-required": y,
|
|
1449
|
-
"aria-invalid":
|
|
1450
|
-
"aria-labelledby":
|
|
1451
|
-
...
|
|
1456
|
+
"aria-invalid": o,
|
|
1457
|
+
"aria-labelledby": M,
|
|
1458
|
+
...Y
|
|
1452
1459
|
}
|
|
1453
1460
|
)
|
|
1454
1461
|
] }),
|
|
1455
|
-
!
|
|
1462
|
+
!P && (L || v) && /* @__PURE__ */ s("div", { className: "pkt-textinput__input-suffix-wrapper", children: [
|
|
1456
1463
|
/* @__PURE__ */ t(
|
|
1457
1464
|
"input",
|
|
1458
1465
|
{
|
|
1459
1466
|
ref: O,
|
|
1460
1467
|
className: "pkt-textinput__input",
|
|
1461
|
-
type:
|
|
1462
|
-
name: $ ||
|
|
1463
|
-
id:
|
|
1468
|
+
type: D,
|
|
1469
|
+
name: $ || a,
|
|
1470
|
+
id: a,
|
|
1464
1471
|
placeholder: S,
|
|
1465
|
-
autoComplete:
|
|
1466
|
-
value:
|
|
1472
|
+
autoComplete: i,
|
|
1473
|
+
value: I,
|
|
1467
1474
|
disabled: u,
|
|
1468
1475
|
"aria-required": y,
|
|
1469
|
-
"aria-invalid":
|
|
1470
|
-
"aria-labelledby":
|
|
1471
|
-
...
|
|
1476
|
+
"aria-invalid": o,
|
|
1477
|
+
"aria-labelledby": M,
|
|
1478
|
+
...Y
|
|
1472
1479
|
}
|
|
1473
1480
|
),
|
|
1474
|
-
|
|
1475
|
-
|
|
1481
|
+
L && /* @__PURE__ */ s("p", { className: "pkt-textinput__input-suffix", children: [
|
|
1482
|
+
L,
|
|
1476
1483
|
v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-suffix-icon", name: v })
|
|
1477
1484
|
] }),
|
|
1478
|
-
!
|
|
1485
|
+
!L && v && /* @__PURE__ */ t(g, { className: "pkt-textinput__input-icon", name: v })
|
|
1479
1486
|
] }),
|
|
1480
|
-
!
|
|
1487
|
+
!P && !L && !v && /* @__PURE__ */ t(
|
|
1481
1488
|
"input",
|
|
1482
1489
|
{
|
|
1483
1490
|
ref: O,
|
|
1484
1491
|
className: "pkt-textinput__input",
|
|
1485
|
-
type:
|
|
1486
|
-
name: $ ||
|
|
1487
|
-
id:
|
|
1492
|
+
type: D,
|
|
1493
|
+
name: $ || a,
|
|
1494
|
+
id: a,
|
|
1488
1495
|
placeholder: S,
|
|
1489
|
-
autoComplete:
|
|
1490
|
-
value:
|
|
1496
|
+
autoComplete: i,
|
|
1497
|
+
value: I,
|
|
1491
1498
|
disabled: u,
|
|
1492
1499
|
"aria-required": y,
|
|
1493
|
-
"aria-invalid":
|
|
1494
|
-
"aria-labelledby":
|
|
1495
|
-
...
|
|
1500
|
+
"aria-invalid": o,
|
|
1501
|
+
"aria-labelledby": M,
|
|
1502
|
+
...Y
|
|
1496
1503
|
}
|
|
1497
1504
|
)
|
|
1498
1505
|
]
|
|
@@ -1502,22 +1509,22 @@ const Bt = V(
|
|
|
1502
1509
|
);
|
|
1503
1510
|
export {
|
|
1504
1511
|
He as PktAlert,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1512
|
+
$t as PktBackLink,
|
|
1513
|
+
se as PktButton,
|
|
1514
|
+
It as PktFooter,
|
|
1515
|
+
Ft as PktFooterSimple,
|
|
1516
|
+
Dt as PktHeader,
|
|
1510
1517
|
g as PktIcon,
|
|
1511
|
-
|
|
1518
|
+
Pt as PktInput,
|
|
1512
1519
|
ge as PktInputWrapper,
|
|
1513
|
-
|
|
1514
|
-
|
|
1520
|
+
Ct as PktLinkCard,
|
|
1521
|
+
At as PktMessagebox,
|
|
1515
1522
|
Tt as PktRadio,
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
+
Lt as PktRadioGroup,
|
|
1524
|
+
Mt as PktTable,
|
|
1525
|
+
Wt as PktTableData,
|
|
1526
|
+
Bt as PktTableHeader,
|
|
1527
|
+
St as PktTag,
|
|
1528
|
+
Yt as PktTextarea,
|
|
1529
|
+
Ut as PktTextinput
|
|
1523
1530
|
};
|