@oslokommune/punkt-react 5.0.10 → 5.1.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 +18 -0
- package/dist/index.d.ts +1 -0
- package/dist/punkt-react.es.js +562 -499
- package/dist/punkt-react.umd.js +11 -11
- package/dist/tag/Tag.d.ts +9 -0
- package/package.json +3 -3
- package/src/components/index.ts +2 -0
- package/src/components/tag/Tag.test.tsx +79 -0
- package/src/components/tag/Tag.tsx +107 -0
- package/src/components/tag/__snapshots__/Tag.test.tsx.snap +23 -0
package/dist/punkt-react.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import z, { useState as se, useEffect as _t, forwardRef as I } from "react";
|
|
2
|
+
function vt(o) {
|
|
3
3
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
4
4
|
}
|
|
5
|
-
var
|
|
5
|
+
var le = { exports: {} }, M = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,25 +12,25 @@ var te = { exports: {} }, W = {};
|
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
if (
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
var o =
|
|
21
|
-
function
|
|
22
|
-
var y,
|
|
23
|
-
|
|
15
|
+
var $e;
|
|
16
|
+
function kt() {
|
|
17
|
+
if ($e)
|
|
18
|
+
return M;
|
|
19
|
+
$e = 1;
|
|
20
|
+
var o = z, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, u = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
21
|
+
function m(k, h, E) {
|
|
22
|
+
var y, x = {}, P = null, j = null;
|
|
23
|
+
E !== void 0 && (P = "" + E), h.key !== void 0 && (P = "" + h.key), h.ref !== void 0 && (j = h.ref);
|
|
24
24
|
for (y in h)
|
|
25
|
-
c.call(h, y) && !n.hasOwnProperty(y) && (
|
|
25
|
+
c.call(h, y) && !n.hasOwnProperty(y) && (x[y] = h[y]);
|
|
26
26
|
if (k && k.defaultProps)
|
|
27
27
|
for (y in h = k.defaultProps, h)
|
|
28
|
-
|
|
29
|
-
return { $$typeof:
|
|
28
|
+
x[y] === void 0 && (x[y] = h[y]);
|
|
29
|
+
return { $$typeof: s, type: k, key: P, ref: j, props: x, _owner: u.current };
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return M.Fragment = l, M.jsx = m, M.jsxs = m, M;
|
|
32
32
|
}
|
|
33
|
-
var
|
|
33
|
+
var B = {};
|
|
34
34
|
/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-jsx-runtime.development.js
|
|
@@ -40,70 +40,70 @@ var Y = {};
|
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
function
|
|
45
|
-
return
|
|
46
|
-
var o =
|
|
47
|
-
function
|
|
43
|
+
var Fe;
|
|
44
|
+
function bt() {
|
|
45
|
+
return Fe || (Fe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
46
|
+
var o = z, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), k = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), A = Symbol.iterator, L = "@@iterator";
|
|
47
|
+
function K(e) {
|
|
48
48
|
if (e === null || typeof e != "object")
|
|
49
49
|
return null;
|
|
50
|
-
var
|
|
51
|
-
return typeof
|
|
50
|
+
var t = A && e[A] || e[L];
|
|
51
|
+
return typeof t == "function" ? t : null;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var $ = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
54
|
+
function R(e) {
|
|
55
55
|
{
|
|
56
|
-
for (var
|
|
57
|
-
|
|
58
|
-
Ae("error", e,
|
|
56
|
+
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
57
|
+
a[i - 1] = arguments[i];
|
|
58
|
+
Ae("error", e, a);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function Ae(e,
|
|
61
|
+
function Ae(e, t, a) {
|
|
62
62
|
{
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
var v =
|
|
66
|
-
return String(
|
|
63
|
+
var i = $.ReactDebugCurrentFrame, _ = i.getStackAddendum();
|
|
64
|
+
_ !== "" && (t += "%s", a = a.concat([_]));
|
|
65
|
+
var v = a.map(function(d) {
|
|
66
|
+
return String(d);
|
|
67
67
|
});
|
|
68
|
-
v.unshift("Warning: " +
|
|
68
|
+
v.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, v);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
var We = !1, Ye = !1, Me = !1,
|
|
72
|
-
|
|
71
|
+
var We = !1, Ye = !1, Me = !1, Be = !1, Le = !1, ce;
|
|
72
|
+
ce = Symbol.for("react.module.reference");
|
|
73
73
|
function Ve(e) {
|
|
74
|
-
return !!(typeof e == "string" || typeof e == "function" || e === c || e === n ||
|
|
74
|
+
return !!(typeof e == "string" || typeof e == "function" || e === c || e === n || Le || e === u || e === E || e === y || Be || e === j || We || Ye || Me || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === x || e.$$typeof === m || e.$$typeof === k || e.$$typeof === h || // 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 === ce || e.getModuleId !== void 0));
|
|
79
79
|
}
|
|
80
|
-
function Ue(e,
|
|
81
|
-
var
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
var
|
|
85
|
-
return
|
|
80
|
+
function Ue(e, t, a) {
|
|
81
|
+
var i = e.displayName;
|
|
82
|
+
if (i)
|
|
83
|
+
return i;
|
|
84
|
+
var _ = t.displayName || t.name || "";
|
|
85
|
+
return _ !== "" ? a + "(" + _ + ")" : a;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function ue(e) {
|
|
88
88
|
return e.displayName || "Context";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function C(e) {
|
|
91
91
|
if (e == null)
|
|
92
92
|
return null;
|
|
93
|
-
if (typeof e.tag == "number" &&
|
|
93
|
+
if (typeof e.tag == "number" && R("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
98
|
case c:
|
|
99
99
|
return "Fragment";
|
|
100
|
-
case
|
|
100
|
+
case l:
|
|
101
101
|
return "Portal";
|
|
102
102
|
case n:
|
|
103
103
|
return "Profiler";
|
|
104
|
-
case
|
|
104
|
+
case u:
|
|
105
105
|
return "StrictMode";
|
|
106
|
-
case
|
|
106
|
+
case E:
|
|
107
107
|
return "Suspense";
|
|
108
108
|
case y:
|
|
109
109
|
return "SuspenseList";
|
|
@@ -111,20 +111,20 @@ function br() {
|
|
|
111
111
|
if (typeof e == "object")
|
|
112
112
|
switch (e.$$typeof) {
|
|
113
113
|
case k:
|
|
114
|
-
var r = e;
|
|
115
|
-
return le(r) + ".Consumer";
|
|
116
|
-
case _:
|
|
117
114
|
var t = e;
|
|
118
|
-
return
|
|
115
|
+
return ue(t) + ".Consumer";
|
|
116
|
+
case m:
|
|
117
|
+
var a = e;
|
|
118
|
+
return ue(a._context) + ".Provider";
|
|
119
119
|
case h:
|
|
120
120
|
return Ue(e, e.render, "ForwardRef");
|
|
121
|
-
case
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
case
|
|
125
|
-
var
|
|
121
|
+
case x:
|
|
122
|
+
var i = e.displayName || null;
|
|
123
|
+
return i !== null ? i : C(e.type) || "Memo";
|
|
124
|
+
case P: {
|
|
125
|
+
var _ = e, v = _._payload, d = _._init;
|
|
126
126
|
try {
|
|
127
|
-
return
|
|
127
|
+
return C(d(v));
|
|
128
128
|
} catch {
|
|
129
129
|
return null;
|
|
130
130
|
}
|
|
@@ -132,18 +132,18 @@ function br() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var O = Object.assign, W = 0, fe, pe, de, me, he, _e, ve;
|
|
136
|
+
function ke() {
|
|
137
137
|
}
|
|
138
|
-
|
|
138
|
+
ke.__reactDisabledLog = !0;
|
|
139
139
|
function qe() {
|
|
140
140
|
{
|
|
141
|
-
if (
|
|
142
|
-
|
|
141
|
+
if (W === 0) {
|
|
142
|
+
fe = console.log, pe = console.info, de = console.warn, me = console.error, he = console.group, _e = console.groupCollapsed, ve = console.groupEnd;
|
|
143
143
|
var e = {
|
|
144
144
|
configurable: !0,
|
|
145
145
|
enumerable: !0,
|
|
146
|
-
value:
|
|
146
|
+
value: ke,
|
|
147
147
|
writable: !0
|
|
148
148
|
};
|
|
149
149
|
Object.defineProperties(console, {
|
|
@@ -156,336 +156,336 @@ function br() {
|
|
|
156
156
|
groupEnd: e
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
W++;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
function He() {
|
|
163
163
|
{
|
|
164
|
-
if (
|
|
164
|
+
if (W--, W === 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: O({}, e, {
|
|
172
|
+
value: fe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
175
|
-
value:
|
|
174
|
+
info: O({}, e, {
|
|
175
|
+
value: pe
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
178
|
-
value:
|
|
177
|
+
warn: O({}, e, {
|
|
178
|
+
value: de
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
181
|
-
value:
|
|
180
|
+
error: O({}, e, {
|
|
181
|
+
value: me
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
184
|
-
value:
|
|
183
|
+
group: O({}, e, {
|
|
184
|
+
value: he
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
187
|
-
value:
|
|
186
|
+
groupCollapsed: O({}, e, {
|
|
187
|
+
value: _e
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
190
|
-
value:
|
|
189
|
+
groupEnd: O({}, e, {
|
|
190
|
+
value: ve
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
var
|
|
198
|
-
function
|
|
197
|
+
var X = $.ReactCurrentDispatcher, Z;
|
|
198
|
+
function V(e, t, a) {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (Z === void 0)
|
|
201
201
|
try {
|
|
202
202
|
throw Error();
|
|
203
|
-
} catch (
|
|
204
|
-
var
|
|
205
|
-
|
|
203
|
+
} catch (_) {
|
|
204
|
+
var i = _.stack.trim().match(/\n( *(at )?)/);
|
|
205
|
+
Z = i && i[1] || "";
|
|
206
206
|
}
|
|
207
207
|
return `
|
|
208
|
-
` +
|
|
208
|
+
` + Z + e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
var
|
|
211
|
+
var Q = !1, U;
|
|
212
212
|
{
|
|
213
|
-
var
|
|
214
|
-
|
|
213
|
+
var Ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
214
|
+
U = new Ge();
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
if (!e ||
|
|
216
|
+
function be(e, t) {
|
|
217
|
+
if (!e || Q)
|
|
218
218
|
return "";
|
|
219
219
|
{
|
|
220
|
-
var
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
220
|
+
var a = U.get(e);
|
|
221
|
+
if (a !== void 0)
|
|
222
|
+
return a;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
|
|
226
|
-
var
|
|
224
|
+
var i;
|
|
225
|
+
Q = !0;
|
|
226
|
+
var _ = Error.prepareStackTrace;
|
|
227
227
|
Error.prepareStackTrace = void 0;
|
|
228
228
|
var v;
|
|
229
|
-
v =
|
|
229
|
+
v = X.current, X.current = null, qe();
|
|
230
230
|
try {
|
|
231
|
-
if (
|
|
232
|
-
var
|
|
231
|
+
if (t) {
|
|
232
|
+
var d = function() {
|
|
233
233
|
throw Error();
|
|
234
234
|
};
|
|
235
|
-
if (Object.defineProperty(
|
|
235
|
+
if (Object.defineProperty(d.prototype, "props", {
|
|
236
236
|
set: function() {
|
|
237
237
|
throw Error();
|
|
238
238
|
}
|
|
239
239
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
240
240
|
try {
|
|
241
|
-
Reflect.construct(
|
|
241
|
+
Reflect.construct(d, []);
|
|
242
242
|
} catch (S) {
|
|
243
|
-
|
|
243
|
+
i = S;
|
|
244
244
|
}
|
|
245
|
-
Reflect.construct(e, [],
|
|
245
|
+
Reflect.construct(e, [], d);
|
|
246
246
|
} else {
|
|
247
247
|
try {
|
|
248
|
-
|
|
248
|
+
d.call();
|
|
249
249
|
} catch (S) {
|
|
250
|
-
|
|
250
|
+
i = S;
|
|
251
251
|
}
|
|
252
|
-
e.call(
|
|
252
|
+
e.call(d.prototype);
|
|
253
253
|
}
|
|
254
254
|
} else {
|
|
255
255
|
try {
|
|
256
256
|
throw Error();
|
|
257
257
|
} catch (S) {
|
|
258
|
-
|
|
258
|
+
i = S;
|
|
259
259
|
}
|
|
260
260
|
e();
|
|
261
261
|
}
|
|
262
262
|
} catch (S) {
|
|
263
|
-
if (S &&
|
|
264
|
-
for (var
|
|
265
|
-
`),
|
|
266
|
-
`),
|
|
267
|
-
|
|
268
|
-
for (;
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
263
|
+
if (S && i && typeof S.stack == "string") {
|
|
264
|
+
for (var f = S.stack.split(`
|
|
265
|
+
`), w = i.stack.split(`
|
|
266
|
+
`), g = f.length - 1, N = w.length - 1; g >= 1 && N >= 0 && f[g] !== w[N]; )
|
|
267
|
+
N--;
|
|
268
|
+
for (; g >= 1 && N >= 0; g--, N--)
|
|
269
|
+
if (f[g] !== w[N]) {
|
|
270
|
+
if (g !== 1 || N !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (
|
|
273
|
-
var
|
|
274
|
-
` +
|
|
275
|
-
return e.displayName &&
|
|
272
|
+
if (g--, N--, N < 0 || f[g] !== w[N]) {
|
|
273
|
+
var T = `
|
|
274
|
+
` + f[g].replace(" at new ", " at ");
|
|
275
|
+
return e.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, T), T;
|
|
276
276
|
}
|
|
277
|
-
while (
|
|
277
|
+
while (g >= 1 && N >= 0);
|
|
278
278
|
break;
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
} finally {
|
|
282
|
-
|
|
282
|
+
Q = !1, X.current = v, He(), Error.prepareStackTrace = _;
|
|
283
283
|
}
|
|
284
|
-
var D = e ? e.displayName || e.name : "",
|
|
285
|
-
return typeof e == "function" &&
|
|
284
|
+
var D = e ? e.displayName || e.name : "", Oe = D ? V(D) : "";
|
|
285
|
+
return typeof e == "function" && U.set(e, Oe), Oe;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function Je(e, t, a) {
|
|
288
|
+
return be(e, !1);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
291
|
-
var
|
|
292
|
-
return !!(
|
|
290
|
+
function ze(e) {
|
|
291
|
+
var t = e.prototype;
|
|
292
|
+
return !!(t && t.isReactComponent);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function q(e, t, a) {
|
|
295
295
|
if (e == null)
|
|
296
296
|
return "";
|
|
297
297
|
if (typeof e == "function")
|
|
298
|
-
return
|
|
298
|
+
return be(e, ze(e));
|
|
299
299
|
if (typeof e == "string")
|
|
300
|
-
return
|
|
300
|
+
return V(e);
|
|
301
301
|
switch (e) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
302
|
+
case E:
|
|
303
|
+
return V("Suspense");
|
|
304
304
|
case y:
|
|
305
|
-
return
|
|
305
|
+
return V("SuspenseList");
|
|
306
306
|
}
|
|
307
307
|
if (typeof e == "object")
|
|
308
308
|
switch (e.$$typeof) {
|
|
309
309
|
case h:
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
return
|
|
313
|
-
case
|
|
314
|
-
var
|
|
310
|
+
return Je(e.render);
|
|
311
|
+
case x:
|
|
312
|
+
return q(e.type, t, a);
|
|
313
|
+
case P: {
|
|
314
|
+
var i = e, _ = i._payload, v = i._init;
|
|
315
315
|
try {
|
|
316
|
-
return
|
|
316
|
+
return q(v(_), t, a);
|
|
317
317
|
} catch {
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
return "";
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var H = Object.prototype.hasOwnProperty, ge = {}, Ne = $.ReactDebugCurrentFrame;
|
|
324
|
+
function G(e) {
|
|
325
325
|
if (e) {
|
|
326
|
-
var
|
|
327
|
-
|
|
326
|
+
var t = e._owner, a = q(e.type, e._source, t ? t.type : null);
|
|
327
|
+
Ne.setExtraStackFrame(a);
|
|
328
328
|
} else
|
|
329
|
-
|
|
329
|
+
Ne.setExtraStackFrame(null);
|
|
330
330
|
}
|
|
331
|
-
function Ke(e,
|
|
331
|
+
function Ke(e, t, a, i, _) {
|
|
332
332
|
{
|
|
333
|
-
var v = Function.call.bind(
|
|
334
|
-
for (var
|
|
335
|
-
if (v(e,
|
|
336
|
-
var
|
|
333
|
+
var v = Function.call.bind(H);
|
|
334
|
+
for (var d in e)
|
|
335
|
+
if (v(e, d)) {
|
|
336
|
+
var f = void 0;
|
|
337
337
|
try {
|
|
338
|
-
if (typeof e[
|
|
339
|
-
var
|
|
340
|
-
throw
|
|
338
|
+
if (typeof e[d] != "function") {
|
|
339
|
+
var w = Error((i || "React class") + ": " + a + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
|
+
throw w.name = "Invariant Violation", w;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
} catch (
|
|
344
|
-
|
|
342
|
+
f = e[d](t, d, i, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
|
+
} catch (g) {
|
|
344
|
+
f = g;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
f && !(f instanceof Error) && (G(_), R("%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).", i || "React class", a, d, typeof f), G(null)), f instanceof Error && !(f.message in ge) && (ge[f.message] = !0, G(_), R("Failed %s type: %s", a, f.message), G(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
var Xe = Array.isArray;
|
|
351
|
-
function
|
|
351
|
+
function ee(e) {
|
|
352
352
|
return Xe(e);
|
|
353
353
|
}
|
|
354
354
|
function Ze(e) {
|
|
355
355
|
{
|
|
356
|
-
var
|
|
357
|
-
return
|
|
356
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
357
|
+
return a;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
function Qe(e) {
|
|
361
361
|
try {
|
|
362
|
-
return
|
|
362
|
+
return ye(e), !1;
|
|
363
363
|
} catch {
|
|
364
364
|
return !0;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function ye(e) {
|
|
368
368
|
return "" + e;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ee(e) {
|
|
371
371
|
if (Qe(e))
|
|
372
|
-
return
|
|
372
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), ye(e);
|
|
373
373
|
}
|
|
374
|
-
var
|
|
374
|
+
var Y = $.ReactCurrentOwner, et = {
|
|
375
375
|
key: !0,
|
|
376
376
|
ref: !0,
|
|
377
377
|
__self: !0,
|
|
378
378
|
__source: !0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
379
|
+
}, Re, we, te;
|
|
380
|
+
te = {};
|
|
381
|
+
function tt(e) {
|
|
382
|
+
if (H.call(e, "ref")) {
|
|
383
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
|
+
if (t && t.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
389
|
+
function rt(e) {
|
|
390
|
+
if (H.call(e, "key")) {
|
|
391
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
|
+
if (t && t.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
|
|
400
|
-
|
|
397
|
+
function at(e, t) {
|
|
398
|
+
if (typeof e.ref == "string" && Y.current && t && Y.current.stateNode !== t) {
|
|
399
|
+
var a = C(Y.current.type);
|
|
400
|
+
te[a] || (R('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', C(Y.current.type), e.ref), te[a] = !0);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function nt(e, t) {
|
|
404
404
|
{
|
|
405
|
-
var
|
|
406
|
-
|
|
405
|
+
var a = function() {
|
|
406
|
+
Re || (Re = !0, R("%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)", t));
|
|
407
407
|
};
|
|
408
|
-
|
|
409
|
-
get:
|
|
408
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
409
|
+
get: a,
|
|
410
410
|
configurable: !0
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ot(e, t) {
|
|
415
415
|
{
|
|
416
|
-
var
|
|
417
|
-
|
|
416
|
+
var a = function() {
|
|
417
|
+
we || (we = !0, R("%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)", t));
|
|
418
418
|
};
|
|
419
|
-
|
|
420
|
-
get:
|
|
419
|
+
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
420
|
+
get: a,
|
|
421
421
|
configurable: !0
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
426
|
-
var
|
|
425
|
+
var lt = function(e, t, a, i, _, v, d) {
|
|
426
|
+
var f = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
|
-
$$typeof:
|
|
428
|
+
$$typeof: s,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
430
430
|
type: e,
|
|
431
|
-
key:
|
|
432
|
-
ref:
|
|
433
|
-
props:
|
|
431
|
+
key: t,
|
|
432
|
+
ref: a,
|
|
433
|
+
props: d,
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: v
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return f._store = {}, Object.defineProperty(f._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(f, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
|
-
value:
|
|
447
|
-
}), Object.defineProperty(
|
|
446
|
+
value: i
|
|
447
|
+
}), Object.defineProperty(f, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
|
-
value:
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
451
|
+
value: _
|
|
452
|
+
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function st(e, t, a, i, _) {
|
|
455
455
|
{
|
|
456
|
-
var v,
|
|
457
|
-
|
|
458
|
-
for (v in
|
|
459
|
-
|
|
456
|
+
var v, d = {}, f = null, w = null;
|
|
457
|
+
a !== void 0 && (Ee(a), f = "" + a), rt(t) && (Ee(t.key), f = "" + t.key), tt(t) && (w = t.ref, at(t, _));
|
|
458
|
+
for (v in t)
|
|
459
|
+
H.call(t, v) && !et.hasOwnProperty(v) && (d[v] = t[v]);
|
|
460
460
|
if (e && e.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (v in
|
|
463
|
-
|
|
461
|
+
var g = e.defaultProps;
|
|
462
|
+
for (v in g)
|
|
463
|
+
d[v] === void 0 && (d[v] = g[v]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
466
|
-
var
|
|
467
|
-
|
|
465
|
+
if (f || w) {
|
|
466
|
+
var N = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
467
|
+
f && nt(d, N), w && ot(d, N);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return lt(e, f, w, _, i, Y.current, d);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
var
|
|
473
|
-
function
|
|
472
|
+
var re = $.ReactCurrentOwner, xe = $.ReactDebugCurrentFrame;
|
|
473
|
+
function F(e) {
|
|
474
474
|
if (e) {
|
|
475
|
-
var
|
|
476
|
-
|
|
475
|
+
var t = e._owner, a = q(e.type, e._source, t ? t.type : null);
|
|
476
|
+
xe.setExtraStackFrame(a);
|
|
477
477
|
} else
|
|
478
|
-
|
|
478
|
+
xe.setExtraStackFrame(null);
|
|
479
479
|
}
|
|
480
|
-
var
|
|
481
|
-
|
|
482
|
-
function
|
|
483
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
480
|
+
var ae;
|
|
481
|
+
ae = !1;
|
|
482
|
+
function ne(e) {
|
|
483
|
+
return typeof e == "object" && e !== null && e.$$typeof === s;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Pe() {
|
|
486
486
|
{
|
|
487
|
-
if (
|
|
488
|
-
var e =
|
|
487
|
+
if (re.current) {
|
|
488
|
+
var e = C(re.current.type);
|
|
489
489
|
if (e)
|
|
490
490
|
return `
|
|
491
491
|
|
|
@@ -494,237 +494,237 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
return "";
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function it(e) {
|
|
498
498
|
{
|
|
499
499
|
if (e !== void 0) {
|
|
500
|
-
var
|
|
500
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
|
|
501
501
|
return `
|
|
502
502
|
|
|
503
|
-
Check your code at ` +
|
|
503
|
+
Check your code at ` + t + ":" + a + ".";
|
|
504
504
|
}
|
|
505
505
|
return "";
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
508
|
+
var Te = {};
|
|
509
|
+
function ct(e) {
|
|
510
510
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
513
|
-
var
|
|
514
|
-
|
|
511
|
+
var t = Pe();
|
|
512
|
+
if (!t) {
|
|
513
|
+
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
+
a && (t = `
|
|
515
515
|
|
|
516
|
-
Check the top-level render call using <` +
|
|
516
|
+
Check the top-level render call using <` + a + ">.");
|
|
517
517
|
}
|
|
518
|
-
return
|
|
518
|
+
return t;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function je(e, t) {
|
|
522
522
|
{
|
|
523
523
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
524
|
return;
|
|
525
525
|
e._store.validated = !0;
|
|
526
|
-
var
|
|
527
|
-
if (
|
|
526
|
+
var a = ct(t);
|
|
527
|
+
if (Te[a])
|
|
528
528
|
return;
|
|
529
|
-
|
|
530
|
-
var
|
|
531
|
-
e && e._owner && e._owner !==
|
|
529
|
+
Te[a] = !0;
|
|
530
|
+
var i = "";
|
|
531
|
+
e && e._owner && e._owner !== re.current && (i = " It was passed a child from " + C(e._owner.type) + "."), F(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, i), F(null);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Ce(e, t) {
|
|
535
535
|
{
|
|
536
536
|
if (typeof e != "object")
|
|
537
537
|
return;
|
|
538
|
-
if (
|
|
539
|
-
for (var
|
|
540
|
-
var
|
|
541
|
-
|
|
538
|
+
if (ee(e))
|
|
539
|
+
for (var a = 0; a < e.length; a++) {
|
|
540
|
+
var i = e[a];
|
|
541
|
+
ne(i) && je(i, t);
|
|
542
542
|
}
|
|
543
|
-
else if (
|
|
543
|
+
else if (ne(e))
|
|
544
544
|
e._store && (e._store.validated = !0);
|
|
545
545
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var v =
|
|
549
|
-
|
|
546
|
+
var _ = K(e);
|
|
547
|
+
if (typeof _ == "function" && _ !== e.entries)
|
|
548
|
+
for (var v = _.call(e), d; !(d = v.next()).done; )
|
|
549
|
+
ne(d.value) && je(d.value, t);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ut(e) {
|
|
554
554
|
{
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
555
|
+
var t = e.type;
|
|
556
|
+
if (t == null || typeof t == "string")
|
|
557
557
|
return;
|
|
558
|
-
var
|
|
559
|
-
if (typeof
|
|
560
|
-
|
|
561
|
-
else if (typeof
|
|
558
|
+
var a;
|
|
559
|
+
if (typeof t == "function")
|
|
560
|
+
a = t.propTypes;
|
|
561
|
+
else if (typeof t == "object" && (t.$$typeof === h || // Note: Memo only checks outer props here.
|
|
562
562
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
t.$$typeof === x))
|
|
564
|
+
a = t.propTypes;
|
|
565
565
|
else
|
|
566
566
|
return;
|
|
567
|
-
if (
|
|
568
|
-
var
|
|
569
|
-
Ke(
|
|
570
|
-
} else if (
|
|
571
|
-
|
|
572
|
-
var
|
|
573
|
-
|
|
567
|
+
if (a) {
|
|
568
|
+
var i = C(t);
|
|
569
|
+
Ke(a, e.props, "prop", i, e);
|
|
570
|
+
} else if (t.PropTypes !== void 0 && !ae) {
|
|
571
|
+
ae = !0;
|
|
572
|
+
var _ = C(t);
|
|
573
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _ || "Unknown");
|
|
574
574
|
}
|
|
575
|
-
typeof
|
|
575
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function ft(e) {
|
|
579
579
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var
|
|
582
|
-
if (
|
|
583
|
-
|
|
580
|
+
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
581
|
+
var i = t[a];
|
|
582
|
+
if (i !== "children" && i !== "key") {
|
|
583
|
+
F(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), F(null);
|
|
584
584
|
break;
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
e.ref !== null && (
|
|
587
|
+
e.ref !== null && (F(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function Se(e, t, a, i, _, v) {
|
|
591
591
|
{
|
|
592
|
-
var
|
|
593
|
-
if (!
|
|
594
|
-
var
|
|
595
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
596
|
-
var
|
|
597
|
-
|
|
598
|
-
var
|
|
599
|
-
e === null ?
|
|
592
|
+
var d = Ve(e);
|
|
593
|
+
if (!d) {
|
|
594
|
+
var f = "";
|
|
595
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (f += " 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 w = it(_);
|
|
597
|
+
w ? f += w : f += Pe();
|
|
598
|
+
var g;
|
|
599
|
+
e === null ? g = "null" : ee(e) ? g = "array" : e !== void 0 && e.$$typeof === s ? (g = "<" + (C(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : g = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", g, f);
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (
|
|
605
|
-
var
|
|
606
|
-
if (
|
|
607
|
-
if (
|
|
608
|
-
if (
|
|
609
|
-
for (var D = 0; D <
|
|
610
|
-
|
|
611
|
-
Object.freeze && Object.freeze(
|
|
601
|
+
var N = st(e, t, a, _, v);
|
|
602
|
+
if (N == null)
|
|
603
|
+
return N;
|
|
604
|
+
if (d) {
|
|
605
|
+
var T = t.children;
|
|
606
|
+
if (T !== void 0)
|
|
607
|
+
if (i)
|
|
608
|
+
if (ee(T)) {
|
|
609
|
+
for (var D = 0; D < T.length; D++)
|
|
610
|
+
Ce(T[D], e);
|
|
611
|
+
Object.freeze && Object.freeze(T);
|
|
612
612
|
} else
|
|
613
|
-
|
|
613
|
+
R("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
|
+
Ce(T, e);
|
|
616
616
|
}
|
|
617
|
-
return e === c ?
|
|
617
|
+
return e === c ? ft(N) : ut(N), N;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
620
|
+
function pt(e, t, a) {
|
|
621
|
+
return Se(e, t, a, !0);
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
623
|
+
function dt(e, t, a) {
|
|
624
|
+
return Se(e, t, a, !1);
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
626
|
+
var mt = dt, ht = pt;
|
|
627
|
+
B.Fragment = c, B.jsx = mt, B.jsxs = ht;
|
|
628
|
+
}()), B;
|
|
629
629
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
632
|
-
const
|
|
633
|
-
function
|
|
634
|
-
return !
|
|
630
|
+
process.env.NODE_ENV === "production" ? le.exports = kt() : le.exports = bt();
|
|
631
|
+
var ie = le.exports;
|
|
632
|
+
const J = ie.Fragment, r = ie.jsx, p = ie.jsxs, oe = {}, De = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
|
|
633
|
+
function gt(o, s) {
|
|
634
|
+
return !oe[o] && typeof fetch == "function" ? fetch(s + o + ".svg").then((l) => l.ok ? l.text() : (console.error("Missing icon: " + s + o + ".svg"), De)).then((l) => (l !== De && (oe[o] = l), l)) : Promise.resolve(oe[o]);
|
|
635
635
|
}
|
|
636
|
-
const
|
|
637
|
-
const
|
|
638
|
-
return
|
|
636
|
+
const b = ({ name: o, path: s, className: l = "", ...c }) => {
|
|
637
|
+
const u = "https://punkt-cdn.oslo.kommune.no/5.1/icons/", [n, m] = se(null);
|
|
638
|
+
return _t(() => {
|
|
639
639
|
if (!o)
|
|
640
640
|
return;
|
|
641
|
-
|
|
642
|
-
}, [o,
|
|
641
|
+
gt(o, s || u).then((h) => m(h));
|
|
642
|
+
}, [o, s, u]), n ? /* @__PURE__ */ r(
|
|
643
643
|
"span",
|
|
644
644
|
{
|
|
645
|
-
className: `pkt-icon ${
|
|
645
|
+
className: `pkt-icon ${l}`,
|
|
646
646
|
dangerouslySetInnerHTML: { __html: n },
|
|
647
647
|
...c
|
|
648
648
|
}
|
|
649
649
|
) : null;
|
|
650
|
-
},
|
|
650
|
+
}, St = I(
|
|
651
651
|
({
|
|
652
652
|
children: o,
|
|
653
|
-
className:
|
|
654
|
-
skin:
|
|
653
|
+
className: s,
|
|
654
|
+
skin: l = "info",
|
|
655
655
|
closeAlert: c = !1,
|
|
656
|
-
onClose:
|
|
656
|
+
onClose: u,
|
|
657
657
|
title: n,
|
|
658
|
-
date:
|
|
658
|
+
date: m,
|
|
659
659
|
ariaLive: k = "polite",
|
|
660
660
|
...h
|
|
661
|
-
},
|
|
662
|
-
const y = [
|
|
663
|
-
|
|
661
|
+
}, E) => {
|
|
662
|
+
const y = [s, "pkt-alert", l && `pkt-alert--${l}`].filter(Boolean).join(" "), [x, P] = se(!0), j = () => {
|
|
663
|
+
P(!1), u && u();
|
|
664
664
|
};
|
|
665
|
-
return
|
|
666
|
-
/* @__PURE__ */
|
|
667
|
-
|
|
665
|
+
return x ? /* @__PURE__ */ p("div", { ...h, className: y, "aria-live": k, ref: E, children: [
|
|
666
|
+
/* @__PURE__ */ r(
|
|
667
|
+
b,
|
|
668
668
|
{
|
|
669
669
|
className: "pkt-alert__icon",
|
|
670
|
-
name:
|
|
670
|
+
name: l === "info" ? "alert-information" : `alert-${l}`
|
|
671
671
|
}
|
|
672
672
|
),
|
|
673
|
-
c && /* @__PURE__ */
|
|
673
|
+
c && /* @__PURE__ */ r("div", { className: "pkt-alert__close", children: /* @__PURE__ */ r(
|
|
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:
|
|
681
|
-
children: /* @__PURE__ */
|
|
680
|
+
onClick: j,
|
|
681
|
+
children: /* @__PURE__ */ r(b, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
|
|
682
682
|
}
|
|
683
683
|
) }),
|
|
684
|
-
n && /* @__PURE__ */
|
|
685
|
-
/* @__PURE__ */
|
|
686
|
-
|
|
684
|
+
n && /* @__PURE__ */ r("div", { className: "pkt-alert__title", children: n }),
|
|
685
|
+
/* @__PURE__ */ r("div", { className: "pkt-alert__text", children: o }),
|
|
686
|
+
m && /* @__PURE__ */ p("div", { className: "pkt-alert__date", children: [
|
|
687
687
|
"Sist oppdatert: ",
|
|
688
|
-
|
|
688
|
+
m
|
|
689
689
|
] })
|
|
690
690
|
] }) : null;
|
|
691
691
|
}
|
|
692
|
-
),
|
|
692
|
+
), Nt = I(
|
|
693
693
|
({
|
|
694
694
|
children: o,
|
|
695
|
-
className:
|
|
696
|
-
iconName:
|
|
695
|
+
className: s,
|
|
696
|
+
iconName: l = "user",
|
|
697
697
|
secondIconName: c = "user",
|
|
698
|
-
size:
|
|
698
|
+
size: u = "medium",
|
|
699
699
|
skin: n = "primary",
|
|
700
|
-
type:
|
|
700
|
+
type: m = "button",
|
|
701
701
|
variant: k = "label-only",
|
|
702
702
|
...h
|
|
703
|
-
},
|
|
703
|
+
}, E) => {
|
|
704
704
|
const y = [
|
|
705
|
-
|
|
705
|
+
s,
|
|
706
706
|
"pkt-btn",
|
|
707
|
-
|
|
707
|
+
u && `pkt-btn--${u}`,
|
|
708
708
|
n && `pkt-btn--${n}`,
|
|
709
709
|
k && `pkt-btn--${k}`
|
|
710
710
|
].filter(Boolean).join(" ");
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
k !== "label-only" && /* @__PURE__ */
|
|
713
|
-
/* @__PURE__ */
|
|
714
|
-
k === "icons-right-and-left" && /* @__PURE__ */
|
|
711
|
+
return /* @__PURE__ */ p("button", { ...h, className: y, type: m, ref: E, children: [
|
|
712
|
+
k !== "label-only" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: l }),
|
|
713
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: o }),
|
|
714
|
+
k === "icons-right-and-left" && /* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: c })
|
|
715
715
|
] });
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
|
-
|
|
719
|
-
const
|
|
720
|
-
var c,
|
|
721
|
-
return /* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */
|
|
723
|
-
/* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
/* @__PURE__ */
|
|
726
|
-
o.text && /* @__PURE__ */
|
|
727
|
-
(c = o.links) == null ? void 0 : c.map((n,
|
|
718
|
+
Nt.displayName = "PktButton";
|
|
719
|
+
const Ot = ({ columnOne: o, columnTwo: s, socialLinks: l }) => {
|
|
720
|
+
var c, u;
|
|
721
|
+
return /* @__PURE__ */ r("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ p("div", { className: "pkt-footer__container", children: [
|
|
722
|
+
/* @__PURE__ */ p("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
723
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
724
|
+
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: o.title }),
|
|
725
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
726
|
+
o.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: o.text }),
|
|
727
|
+
(c = o.links) == null ? void 0 : c.map((n, m) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
728
728
|
"a",
|
|
729
729
|
{
|
|
730
730
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
@@ -732,18 +732,18 @@ const Cr = ({ columnOne: o, columnTwo: l, socialLinks: i }) => {
|
|
|
732
732
|
target: n.openInNewTab ? "_blank" : "_self",
|
|
733
733
|
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
734
734
|
children: [
|
|
735
|
-
/* @__PURE__ */
|
|
735
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
736
736
|
n.text
|
|
737
737
|
]
|
|
738
738
|
}
|
|
739
|
-
) }, `links-${
|
|
739
|
+
) }, `links-${m}`))
|
|
740
740
|
] })
|
|
741
741
|
] }),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
|
|
746
|
-
(
|
|
742
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
743
|
+
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: s.title }),
|
|
744
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
745
|
+
s.text && /* @__PURE__ */ r("li", { className: "pkt-footer__text", children: s.text }),
|
|
746
|
+
(u = s.links) == null ? void 0 : u.map((n, m) => /* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
747
747
|
"a",
|
|
748
748
|
{
|
|
749
749
|
className: `pkt-footer__link ${n.external ? "pkt-link--external" : ""}`,
|
|
@@ -751,40 +751,40 @@ const Cr = ({ columnOne: o, columnTwo: l, socialLinks: i }) => {
|
|
|
751
751
|
target: n.openInNewTab ? "_blank" : "_self",
|
|
752
752
|
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
753
753
|
children: [
|
|
754
|
-
/* @__PURE__ */
|
|
754
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
755
755
|
n.text
|
|
756
756
|
]
|
|
757
757
|
}
|
|
758
|
-
) }, `links-${
|
|
758
|
+
) }, `links-${m}`))
|
|
759
759
|
] })
|
|
760
760
|
] }),
|
|
761
|
-
/* @__PURE__ */
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
-
/* @__PURE__ */
|
|
761
|
+
/* @__PURE__ */ p("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
762
|
+
/* @__PURE__ */ r("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
|
|
763
|
+
/* @__PURE__ */ p("ul", { className: "pkt-footer__list", children: [
|
|
764
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p(
|
|
765
765
|
"a",
|
|
766
766
|
{
|
|
767
767
|
className: "pkt-footer__link",
|
|
768
768
|
href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
|
|
769
769
|
children: [
|
|
770
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
771
771
|
"Personvern og informasjonskapsler"
|
|
772
772
|
]
|
|
773
773
|
}
|
|
774
774
|
) }),
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
776
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer__link-icon", name: "chevron-right" }),
|
|
777
777
|
"Tilgjengelighet"
|
|
778
778
|
] }) })
|
|
779
779
|
] })
|
|
780
780
|
] })
|
|
781
781
|
] }),
|
|
782
|
-
|
|
783
|
-
/* @__PURE__ */
|
|
782
|
+
l && /* @__PURE__ */ p("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
|
|
783
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-languages", children: l.filter((n) => n.language).map((n, m) => /* @__PURE__ */ r(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
786
|
className: "pkt-footer__social-language",
|
|
787
|
-
children: /* @__PURE__ */
|
|
787
|
+
children: /* @__PURE__ */ r(
|
|
788
788
|
"a",
|
|
789
789
|
{
|
|
790
790
|
href: n.href,
|
|
@@ -795,9 +795,9 @@ const Cr = ({ columnOne: o, columnTwo: l, socialLinks: i }) => {
|
|
|
795
795
|
}
|
|
796
796
|
)
|
|
797
797
|
},
|
|
798
|
-
`sociallinks-language-${
|
|
798
|
+
`sociallinks-language-${m}`
|
|
799
799
|
)) }),
|
|
800
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ r("div", { className: "pkt-footer__social-icons", children: l.filter((n) => n.iconName).map((n, m) => /* @__PURE__ */ r(z.Fragment, { children: /* @__PURE__ */ r(
|
|
801
801
|
"a",
|
|
802
802
|
{
|
|
803
803
|
href: n.href,
|
|
@@ -805,163 +805,163 @@ const Cr = ({ columnOne: o, columnTwo: l, socialLinks: i }) => {
|
|
|
805
805
|
className: "pkt-footer__social-icon-link",
|
|
806
806
|
target: n.openInNewTab ? "_blank" : "_self",
|
|
807
807
|
rel: n.openInNewTab ? "noopener noreferrer" : void 0,
|
|
808
|
-
children: /* @__PURE__ */
|
|
808
|
+
children: /* @__PURE__ */ r(b, { className: "pkt-footer__social-icon", name: n.iconName })
|
|
809
809
|
}
|
|
810
|
-
) }, `sociallinks-${
|
|
810
|
+
) }, `sociallinks-${m}`)) })
|
|
811
811
|
] })
|
|
812
812
|
] }) });
|
|
813
|
-
},
|
|
813
|
+
}, $t = ({
|
|
814
814
|
links: o = []
|
|
815
|
-
}) => /* @__PURE__ */
|
|
816
|
-
o.map((
|
|
815
|
+
}) => /* @__PURE__ */ r("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ r("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ p("ul", { className: "pkt-footer-simple__list", children: [
|
|
816
|
+
o.map((s, l) => /* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p(
|
|
817
817
|
"a",
|
|
818
818
|
{
|
|
819
|
-
className: `pkt-footer-simple__link ${
|
|
820
|
-
href:
|
|
821
|
-
target:
|
|
822
|
-
rel:
|
|
819
|
+
className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
|
|
820
|
+
href: s.href,
|
|
821
|
+
target: s.openInNewTab ? "_blank" : "_self",
|
|
822
|
+
rel: s.openInNewTab ? "noopener noreferrer" : void 0,
|
|
823
823
|
children: [
|
|
824
|
-
/* @__PURE__ */
|
|
825
|
-
|
|
824
|
+
/* @__PURE__ */ r(
|
|
825
|
+
b,
|
|
826
826
|
{
|
|
827
827
|
className: "pkt-footer-simple__link-icon",
|
|
828
828
|
name: "chevron-right"
|
|
829
829
|
}
|
|
830
830
|
),
|
|
831
|
-
|
|
831
|
+
s.text
|
|
832
832
|
]
|
|
833
833
|
}
|
|
834
|
-
) },
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
834
|
+
) }, l)),
|
|
835
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
|
|
836
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
837
837
|
"Personvern og informasjonskapsler"
|
|
838
838
|
] }) }),
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ r("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ p("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
|
|
840
|
+
/* @__PURE__ */ r(b, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
841
841
|
"Tilgjengelighet"
|
|
842
842
|
] }) })
|
|
843
|
-
] }) }) }),
|
|
843
|
+
] }) }) }), Ft = ({
|
|
844
844
|
className: o,
|
|
845
|
-
logoLink:
|
|
846
|
-
isLoggedIn:
|
|
845
|
+
logoLink: s = "https://www.oslo.kommune.no/",
|
|
846
|
+
isLoggedIn: l = !1,
|
|
847
847
|
representing: c = "",
|
|
848
|
-
canChangeRepresentation:
|
|
848
|
+
canChangeRepresentation: u = !1,
|
|
849
849
|
showLogInButton: n = !0,
|
|
850
|
-
onLogIn:
|
|
850
|
+
onLogIn: m,
|
|
851
851
|
onLogOut: k,
|
|
852
852
|
onChangeRepresentation: h
|
|
853
853
|
}) => {
|
|
854
|
-
const
|
|
855
|
-
return /* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
|
|
854
|
+
const E = [o, "pkt-header"].filter(Boolean).join(" ");
|
|
855
|
+
return /* @__PURE__ */ p("header", { id: "pkt-header", className: E, "aria-label": "Topp", children: [
|
|
856
|
+
/* @__PURE__ */ r("div", { className: "pkt-header__logo", children: /* @__PURE__ */ r("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: s, children: /* @__PURE__ */ r(b, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.1/logos/" }) }) }),
|
|
857
|
+
/* @__PURE__ */ p("div", { className: "pkt-header__actions", children: [
|
|
858
|
+
l && u && /* @__PURE__ */ p(
|
|
859
859
|
"button",
|
|
860
860
|
{
|
|
861
861
|
className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
|
|
862
862
|
"aria-label": `Bytt bruker fra ${c}`,
|
|
863
863
|
onClick: h,
|
|
864
864
|
children: [
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ r(b, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
|
|
866
|
+
/* @__PURE__ */ r("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
|
|
867
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
|
|
868
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: c })
|
|
869
869
|
]
|
|
870
870
|
}
|
|
871
871
|
),
|
|
872
|
-
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
872
|
+
l && !u && /* @__PURE__ */ p("div", { className: "pkt-header__action", children: [
|
|
873
|
+
/* @__PURE__ */ r("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ r("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: c }) }),
|
|
874
|
+
/* @__PURE__ */ r(b, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
|
|
875
875
|
] }),
|
|
876
|
-
n &&
|
|
876
|
+
n && l && /* @__PURE__ */ p(
|
|
877
877
|
"button",
|
|
878
878
|
{
|
|
879
879
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
880
880
|
"aria-label": "Logg ut",
|
|
881
881
|
onClick: k,
|
|
882
882
|
children: [
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
883
|
+
/* @__PURE__ */ r(b, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
|
|
884
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg ut" })
|
|
885
885
|
]
|
|
886
886
|
}
|
|
887
887
|
),
|
|
888
|
-
n && !
|
|
888
|
+
n && !l && /* @__PURE__ */ p(
|
|
889
889
|
"button",
|
|
890
890
|
{
|
|
891
891
|
className: "pkt-btn pkt-btn--tertiary pkt-btn--icon-right",
|
|
892
892
|
"aria-label": "Logg inn",
|
|
893
|
-
onClick:
|
|
893
|
+
onClick: m,
|
|
894
894
|
children: [
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
895
|
+
/* @__PURE__ */ r(b, { className: "pkt-btn__icon", name: "user" }),
|
|
896
|
+
/* @__PURE__ */ r("span", { className: "pkt-btn__text", children: "Logg inn" })
|
|
897
897
|
]
|
|
898
898
|
}
|
|
899
899
|
)
|
|
900
900
|
] })
|
|
901
901
|
] });
|
|
902
|
-
},
|
|
903
|
-
({ label: o, id:
|
|
904
|
-
/* @__PURE__ */
|
|
905
|
-
/* @__PURE__ */
|
|
906
|
-
|
|
902
|
+
}, yt = z.forwardRef(
|
|
903
|
+
({ label: o, id: s, children: l, ...c }, u) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
904
|
+
/* @__PURE__ */ r("label", { htmlFor: s, className: "pkt-form-label", children: o }),
|
|
905
|
+
/* @__PURE__ */ r("input", { className: "pkt-form-input", id: s, ...c, ref: u }),
|
|
906
|
+
l
|
|
907
907
|
] })
|
|
908
908
|
);
|
|
909
|
-
|
|
910
|
-
const
|
|
909
|
+
yt.displayName = "PktInput";
|
|
910
|
+
const Et = I(
|
|
911
911
|
({
|
|
912
912
|
children: o,
|
|
913
|
-
className:
|
|
914
|
-
iconName:
|
|
913
|
+
className: s,
|
|
914
|
+
iconName: l = "user",
|
|
915
915
|
openInNewTab: c = !1,
|
|
916
|
-
skin:
|
|
916
|
+
skin: u = "normal",
|
|
917
917
|
href: n = "#",
|
|
918
|
-
external:
|
|
918
|
+
external: m = !1,
|
|
919
919
|
title: k
|
|
920
920
|
}, h) => {
|
|
921
|
-
const
|
|
922
|
-
return /* @__PURE__ */
|
|
921
|
+
const E = [s, "pkt-linkcard", u && `pkt-linkcard--${u}`].filter(Boolean).join(" ");
|
|
922
|
+
return /* @__PURE__ */ p(
|
|
923
923
|
"a",
|
|
924
924
|
{
|
|
925
925
|
href: n,
|
|
926
|
-
className: `pkt-linkcard pkt-link ${
|
|
926
|
+
className: `pkt-linkcard pkt-link ${E}`,
|
|
927
927
|
target: c ? "_blank" : "_self",
|
|
928
928
|
rel: c ? "noopener noreferrer" : void 0,
|
|
929
929
|
ref: h,
|
|
930
930
|
children: [
|
|
931
|
-
/* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
/* @__PURE__ */
|
|
934
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ r(b, { className: "pkt-link__icon", name: l }),
|
|
932
|
+
/* @__PURE__ */ p("div", { className: "pkt-linkcard__content", children: [
|
|
933
|
+
/* @__PURE__ */ r("div", { className: `pkt-linkcard__title ${m ? "pkt-link pkt-link--external" : ""}`, children: k }),
|
|
934
|
+
/* @__PURE__ */ r("div", { className: "pkt-linkcard__text", children: o })
|
|
935
935
|
] })
|
|
936
936
|
]
|
|
937
937
|
}
|
|
938
938
|
);
|
|
939
939
|
}
|
|
940
940
|
);
|
|
941
|
-
|
|
942
|
-
const
|
|
941
|
+
Et.displayName = "PktLinkCard";
|
|
942
|
+
const Dt = ({
|
|
943
943
|
children: o,
|
|
944
|
-
skin:
|
|
945
|
-
title:
|
|
944
|
+
skin: s = "beige",
|
|
945
|
+
title: l,
|
|
946
946
|
...c
|
|
947
947
|
}) => {
|
|
948
|
-
const
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
951
|
-
/* @__PURE__ */
|
|
948
|
+
const u = ["pkt-messagebox", s && `pkt-messagebox--${s}`].filter(Boolean).join(" ");
|
|
949
|
+
return /* @__PURE__ */ p("div", { ...c, className: u, children: [
|
|
950
|
+
/* @__PURE__ */ r("div", { className: "pkt-messagebox__title", children: l }),
|
|
951
|
+
/* @__PURE__ */ r("div", { className: "pkt-messagebox__text", children: o })
|
|
952
952
|
] });
|
|
953
|
-
},
|
|
954
|
-
({ id: o, name:
|
|
955
|
-
/* @__PURE__ */
|
|
956
|
-
/* @__PURE__ */
|
|
953
|
+
}, Rt = I(
|
|
954
|
+
({ id: o, name: s, label: l, value: c, ...u }, n) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
955
|
+
/* @__PURE__ */ r("input", { type: "radio", className: "pkt-form-check-input", id: o, name: s, value: c, ref: n, ...u }),
|
|
956
|
+
/* @__PURE__ */ r("label", { className: "pkt-form-label", htmlFor: o, children: l })
|
|
957
957
|
] })
|
|
958
958
|
);
|
|
959
|
-
|
|
960
|
-
const
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
-
/* @__PURE__ */
|
|
959
|
+
Rt.displayName = "PktRadio";
|
|
960
|
+
const It = ({ label: o, children: s }) => /* @__PURE__ */ p(J, { children: [
|
|
961
|
+
/* @__PURE__ */ r("p", { children: o }),
|
|
962
|
+
/* @__PURE__ */ r("div", { className: "pkt-form-group", children: s })
|
|
963
963
|
] });
|
|
964
|
-
var
|
|
964
|
+
var Ie = { exports: {} };
|
|
965
965
|
/*!
|
|
966
966
|
Copyright (c) 2018 Jed Watson.
|
|
967
967
|
Licensed under the MIT License (MIT), see
|
|
@@ -969,71 +969,134 @@ var $e = { exports: {} };
|
|
|
969
969
|
*/
|
|
970
970
|
(function(o) {
|
|
971
971
|
(function() {
|
|
972
|
-
var
|
|
973
|
-
function
|
|
974
|
-
for (var c = [],
|
|
975
|
-
var n = arguments[
|
|
972
|
+
var s = {}.hasOwnProperty;
|
|
973
|
+
function l() {
|
|
974
|
+
for (var c = [], u = 0; u < arguments.length; u++) {
|
|
975
|
+
var n = arguments[u];
|
|
976
976
|
if (n) {
|
|
977
|
-
var
|
|
978
|
-
if (
|
|
977
|
+
var m = typeof n;
|
|
978
|
+
if (m === "string" || m === "number")
|
|
979
979
|
c.push(n);
|
|
980
980
|
else if (Array.isArray(n)) {
|
|
981
981
|
if (n.length) {
|
|
982
|
-
var k =
|
|
982
|
+
var k = l.apply(null, n);
|
|
983
983
|
k && c.push(k);
|
|
984
984
|
}
|
|
985
|
-
} else if (
|
|
985
|
+
} else if (m === "object") {
|
|
986
986
|
if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]")) {
|
|
987
987
|
c.push(n.toString());
|
|
988
988
|
continue;
|
|
989
989
|
}
|
|
990
990
|
for (var h in n)
|
|
991
|
-
|
|
991
|
+
s.call(n, h) && n[h] && c.push(h);
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
995
|
return c.join(" ");
|
|
996
996
|
}
|
|
997
|
-
o.exports ? (
|
|
997
|
+
o.exports ? (l.default = l, o.exports = l) : window.classNames = l;
|
|
998
998
|
})();
|
|
999
|
-
})(
|
|
1000
|
-
var
|
|
1001
|
-
const
|
|
999
|
+
})(Ie);
|
|
1000
|
+
var wt = Ie.exports;
|
|
1001
|
+
const xt = /* @__PURE__ */ vt(wt), Pt = ({ isResponsive: o, children: s }) => o ? /* @__PURE__ */ r("div", { className: "pkt-table-container", children: s }) : /* @__PURE__ */ r(J, { children: s }), At = ({
|
|
1002
1002
|
isResponsive: o,
|
|
1003
|
-
modifiers: { info:
|
|
1003
|
+
modifiers: { info: s = !1, success: l = !1, strong: c = !1, shadow: u = !1 } = {},
|
|
1004
1004
|
children: n
|
|
1005
|
-
}) => /* @__PURE__ */
|
|
1005
|
+
}) => /* @__PURE__ */ r(Pt, { isResponsive: o, children: /* @__PURE__ */ r(
|
|
1006
1006
|
"table",
|
|
1007
1007
|
{
|
|
1008
|
-
className:
|
|
1009
|
-
"pkt-table--info":
|
|
1010
|
-
"pkt-table--success":
|
|
1008
|
+
className: xt("pkt-table", {
|
|
1009
|
+
"pkt-table--info": s,
|
|
1010
|
+
"pkt-table--success": l,
|
|
1011
1011
|
"pkt-table--strong": c,
|
|
1012
|
-
"pkt-table--shadow":
|
|
1012
|
+
"pkt-table--shadow": u
|
|
1013
1013
|
}),
|
|
1014
1014
|
children: n
|
|
1015
1015
|
}
|
|
1016
|
-
) }),
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1016
|
+
) }), Wt = ({ children: o }) => /* @__PURE__ */ r("td", { className: "pkt-table__th", children: o }), Yt = ({ children: o }) => /* @__PURE__ */ r("th", { className: "pkt-table__th", children: o }), Tt = I(({
|
|
1017
|
+
children: o,
|
|
1018
|
+
className: s,
|
|
1019
|
+
skin: l = "blue",
|
|
1020
|
+
size: c = "medium",
|
|
1021
|
+
closeTag: u = !1,
|
|
1022
|
+
iconName: n = "",
|
|
1023
|
+
type: m = "button",
|
|
1024
|
+
ariaLabel: k = "close",
|
|
1025
|
+
onClick: h = () => {
|
|
1026
|
+
}
|
|
1027
|
+
}, E) => {
|
|
1028
|
+
const [y, x] = se(!1), P = (K) => {
|
|
1029
|
+
x(!0), h(K);
|
|
1030
|
+
}, j = [
|
|
1031
|
+
"pkt-tag",
|
|
1032
|
+
c && `pkt-tag--${c}`,
|
|
1033
|
+
l && `pkt-tag--${l}`,
|
|
1034
|
+
s
|
|
1035
|
+
].filter(Boolean).join(" "), A = [
|
|
1036
|
+
"pkt-tag",
|
|
1037
|
+
"pkt-btn",
|
|
1038
|
+
"pkt-btn--tertiary",
|
|
1039
|
+
c && `pkt-tag--${c}`,
|
|
1040
|
+
l && `pkt-tag--${l}`,
|
|
1041
|
+
n && u ? "pkt-btn--icons-right-and-left" : null,
|
|
1042
|
+
u && !n ? "pkt-btn--icon-right" : null,
|
|
1043
|
+
s
|
|
1044
|
+
].filter(Boolean).join(" "), L = !y;
|
|
1045
|
+
return u && n ? /* @__PURE__ */ r(J, { children: L && /* @__PURE__ */ p(
|
|
1046
|
+
"button",
|
|
1047
|
+
{
|
|
1048
|
+
className: A,
|
|
1049
|
+
type: m,
|
|
1050
|
+
"aria-label": k,
|
|
1051
|
+
onClick: P,
|
|
1052
|
+
ref: E,
|
|
1053
|
+
children: [
|
|
1054
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: n }),
|
|
1055
|
+
o,
|
|
1056
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" })
|
|
1057
|
+
]
|
|
1058
|
+
}
|
|
1059
|
+
) }) : u ? /* @__PURE__ */ r(J, { children: L && /* @__PURE__ */ p(
|
|
1060
|
+
"button",
|
|
1061
|
+
{
|
|
1062
|
+
className: A,
|
|
1063
|
+
type: m,
|
|
1064
|
+
"aria-label": k,
|
|
1065
|
+
onClick: P,
|
|
1066
|
+
ref: E,
|
|
1067
|
+
children: [
|
|
1068
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__close-btn", name: "close" }),
|
|
1069
|
+
o
|
|
1070
|
+
]
|
|
1071
|
+
}
|
|
1072
|
+
) }) : n ? /* @__PURE__ */ p("span", { className: j, children: [
|
|
1073
|
+
/* @__PURE__ */ r(b, { className: "pkt-tag__icon", name: n }),
|
|
1074
|
+
o
|
|
1075
|
+
] }) : /* @__PURE__ */ r("span", { className: j, children: o });
|
|
1076
|
+
});
|
|
1077
|
+
Tt.displayName = "PktTag";
|
|
1078
|
+
const jt = I(
|
|
1079
|
+
({ id: o, label: s, ...l }, c) => /* @__PURE__ */ p("div", { className: "pkt-form-group", children: [
|
|
1080
|
+
/* @__PURE__ */ r("label", { htmlFor: o, className: "pkt-form-label", children: s }),
|
|
1081
|
+
/* @__PURE__ */ r("textarea", { className: "pkt-form-textarea", id: o, ref: c, ...l })
|
|
1020
1082
|
] })
|
|
1021
1083
|
);
|
|
1022
|
-
|
|
1084
|
+
jt.displayName = "PktTextarea";
|
|
1023
1085
|
export {
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1086
|
+
St as PktAlert,
|
|
1087
|
+
Nt as PktButton,
|
|
1088
|
+
Ot as PktFooter,
|
|
1089
|
+
$t as PktFooterSimple,
|
|
1090
|
+
Ft as PktHeader,
|
|
1091
|
+
b as PktIcon,
|
|
1092
|
+
yt as PktInput,
|
|
1093
|
+
Et as PktLinkCard,
|
|
1094
|
+
Dt as PktMessagebox,
|
|
1095
|
+
Rt as PktRadio,
|
|
1096
|
+
It as PktRadioGroup,
|
|
1097
|
+
At as PktTable,
|
|
1098
|
+
Wt as PktTableData,
|
|
1099
|
+
Yt as PktTableHeader,
|
|
1100
|
+
Tt as PktTag,
|
|
1101
|
+
jt as PktTextarea
|
|
1039
1102
|
};
|