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