@oslokommune/punkt-react 0.20.21 → 0.22.2

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.
@@ -0,0 +1,806 @@
1
+ import re, { forwardRef as Se } from "react";
2
+ var Y = {}, dr = {
3
+ get exports() {
4
+ return Y;
5
+ },
6
+ set exports(n) {
7
+ Y = n;
8
+ }
9
+ }, I = {};
10
+ /**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */
19
+ var Pe;
20
+ function pr() {
21
+ if (Pe)
22
+ return I;
23
+ Pe = 1;
24
+ var n = re, c = Symbol.for("react.element"), p = Symbol.for("react.fragment"), u = Object.prototype.hasOwnProperty, v = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
25
+ function _(y, m, O) {
26
+ var E, x = {}, S = null, L = null;
27
+ O !== void 0 && (S = "" + O), m.key !== void 0 && (S = "" + m.key), m.ref !== void 0 && (L = m.ref);
28
+ for (E in m)
29
+ u.call(m, E) && !d.hasOwnProperty(E) && (x[E] = m[E]);
30
+ if (y && y.defaultProps)
31
+ for (E in m = y.defaultProps, m)
32
+ x[E] === void 0 && (x[E] = m[E]);
33
+ return { $$typeof: c, type: y, key: S, ref: L, props: x, _owner: v.current };
34
+ }
35
+ return I.Fragment = p, I.jsx = _, I.jsxs = _, I;
36
+ }
37
+ var W = {};
38
+ /**
39
+ * @license React
40
+ * react-jsx-runtime.development.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */
47
+ var Oe;
48
+ function vr() {
49
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
50
+ var n = re, c = Symbol.for("react.element"), p = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), y = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), te = Symbol.iterator, Ne = "@@iterator";
51
+ function je(e) {
52
+ if (e === null || typeof e != "object")
53
+ return null;
54
+ var r = te && e[te] || e[Ne];
55
+ return typeof r == "function" ? r : null;
56
+ }
57
+ var N = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
58
+ function g(e) {
59
+ {
60
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
61
+ t[a - 1] = arguments[a];
62
+ Fe("error", e, t);
63
+ }
64
+ }
65
+ function Fe(e, r, t) {
66
+ {
67
+ var a = N.ReactDebugCurrentFrame, l = a.getStackAddendum();
68
+ l !== "" && (r += "%s", t = t.concat([l]));
69
+ var f = t.map(function(i) {
70
+ return String(i);
71
+ });
72
+ f.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, f);
73
+ }
74
+ }
75
+ var De = !1, Ae = !1, $e = !1, Ie = !1, We = !1, ae;
76
+ ae = Symbol.for("react.module.reference");
77
+ function Ye(e) {
78
+ return !!(typeof e == "string" || typeof e == "function" || e === u || e === d || We || e === v || e === O || e === E || Ie || e === L || De || Ae || $e || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === x || e.$$typeof === _ || e.$$typeof === y || e.$$typeof === m || // This needs to include all possible module reference object
79
+ // types supported by any Flight configuration anywhere since
80
+ // we don't know which Flight build this will end up being used
81
+ // with.
82
+ e.$$typeof === ae || e.getModuleId !== void 0));
83
+ }
84
+ function Le(e, r, t) {
85
+ var a = e.displayName;
86
+ if (a)
87
+ return a;
88
+ var l = r.displayName || r.name || "";
89
+ return l !== "" ? t + "(" + l + ")" : t;
90
+ }
91
+ function ne(e) {
92
+ return e.displayName || "Context";
93
+ }
94
+ function w(e) {
95
+ if (e == null)
96
+ return null;
97
+ if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
98
+ return e.displayName || e.name || null;
99
+ if (typeof e == "string")
100
+ return e;
101
+ switch (e) {
102
+ case u:
103
+ return "Fragment";
104
+ case p:
105
+ return "Portal";
106
+ case d:
107
+ return "Profiler";
108
+ case v:
109
+ return "StrictMode";
110
+ case O:
111
+ return "Suspense";
112
+ case E:
113
+ return "SuspenseList";
114
+ }
115
+ if (typeof e == "object")
116
+ switch (e.$$typeof) {
117
+ case y:
118
+ var r = e;
119
+ return ne(r) + ".Consumer";
120
+ case _:
121
+ var t = e;
122
+ return ne(t._context) + ".Provider";
123
+ case m:
124
+ return Le(e, e.render, "ForwardRef");
125
+ case x:
126
+ var a = e.displayName || null;
127
+ return a !== null ? a : w(e.type) || "Memo";
128
+ case S: {
129
+ var l = e, f = l._payload, i = l._init;
130
+ try {
131
+ return w(i(f));
132
+ } catch {
133
+ return null;
134
+ }
135
+ }
136
+ }
137
+ return null;
138
+ }
139
+ var C = Object.assign, A = 0, oe, ie, se, le, ue, ce, fe;
140
+ function de() {
141
+ }
142
+ de.__reactDisabledLog = !0;
143
+ function Ve() {
144
+ {
145
+ if (A === 0) {
146
+ oe = console.log, ie = console.info, se = console.warn, le = console.error, ue = console.group, ce = console.groupCollapsed, fe = console.groupEnd;
147
+ var e = {
148
+ configurable: !0,
149
+ enumerable: !0,
150
+ value: de,
151
+ writable: !0
152
+ };
153
+ Object.defineProperties(console, {
154
+ info: e,
155
+ log: e,
156
+ warn: e,
157
+ error: e,
158
+ group: e,
159
+ groupCollapsed: e,
160
+ groupEnd: e
161
+ });
162
+ }
163
+ A++;
164
+ }
165
+ }
166
+ function Me() {
167
+ {
168
+ if (A--, A === 0) {
169
+ var e = {
170
+ configurable: !0,
171
+ enumerable: !0,
172
+ writable: !0
173
+ };
174
+ Object.defineProperties(console, {
175
+ log: C({}, e, {
176
+ value: oe
177
+ }),
178
+ info: C({}, e, {
179
+ value: ie
180
+ }),
181
+ warn: C({}, e, {
182
+ value: se
183
+ }),
184
+ error: C({}, e, {
185
+ value: le
186
+ }),
187
+ group: C({}, e, {
188
+ value: ue
189
+ }),
190
+ groupCollapsed: C({}, e, {
191
+ value: ce
192
+ }),
193
+ groupEnd: C({}, e, {
194
+ value: fe
195
+ })
196
+ });
197
+ }
198
+ A < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
199
+ }
200
+ }
201
+ var G = N.ReactCurrentDispatcher, J;
202
+ function V(e, r, t) {
203
+ {
204
+ if (J === void 0)
205
+ try {
206
+ throw Error();
207
+ } catch (l) {
208
+ var a = l.stack.trim().match(/\n( *(at )?)/);
209
+ J = a && a[1] || "";
210
+ }
211
+ return `
212
+ ` + J + e;
213
+ }
214
+ }
215
+ var z = !1, M;
216
+ {
217
+ var Ue = typeof WeakMap == "function" ? WeakMap : Map;
218
+ M = new Ue();
219
+ }
220
+ function pe(e, r) {
221
+ if (!e || z)
222
+ return "";
223
+ {
224
+ var t = M.get(e);
225
+ if (t !== void 0)
226
+ return t;
227
+ }
228
+ var a;
229
+ z = !0;
230
+ var l = Error.prepareStackTrace;
231
+ Error.prepareStackTrace = void 0;
232
+ var f;
233
+ f = G.current, G.current = null, Ve();
234
+ try {
235
+ if (r) {
236
+ var i = function() {
237
+ throw Error();
238
+ };
239
+ if (Object.defineProperty(i.prototype, "props", {
240
+ set: function() {
241
+ throw Error();
242
+ }
243
+ }), typeof Reflect == "object" && Reflect.construct) {
244
+ try {
245
+ Reflect.construct(i, []);
246
+ } catch (P) {
247
+ a = P;
248
+ }
249
+ Reflect.construct(e, [], i);
250
+ } else {
251
+ try {
252
+ i.call();
253
+ } catch (P) {
254
+ a = P;
255
+ }
256
+ e.call(i.prototype);
257
+ }
258
+ } else {
259
+ try {
260
+ throw Error();
261
+ } catch (P) {
262
+ a = P;
263
+ }
264
+ e();
265
+ }
266
+ } catch (P) {
267
+ if (P && a && typeof P.stack == "string") {
268
+ for (var o = P.stack.split(`
269
+ `), k = a.stack.split(`
270
+ `), h = o.length - 1, b = k.length - 1; h >= 1 && b >= 0 && o[h] !== k[b]; )
271
+ b--;
272
+ for (; h >= 1 && b >= 0; h--, b--)
273
+ if (o[h] !== k[b]) {
274
+ if (h !== 1 || b !== 1)
275
+ do
276
+ if (h--, b--, b < 0 || o[h] !== k[b]) {
277
+ var R = `
278
+ ` + o[h].replace(" at new ", " at ");
279
+ return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, R), R;
280
+ }
281
+ while (h >= 1 && b >= 0);
282
+ break;
283
+ }
284
+ }
285
+ } finally {
286
+ z = !1, G.current = f, Me(), Error.prepareStackTrace = l;
287
+ }
288
+ var F = e ? e.displayName || e.name : "", we = F ? V(F) : "";
289
+ return typeof e == "function" && M.set(e, we), we;
290
+ }
291
+ function Be(e, r, t) {
292
+ return pe(e, !1);
293
+ }
294
+ function qe(e) {
295
+ var r = e.prototype;
296
+ return !!(r && r.isReactComponent);
297
+ }
298
+ function U(e, r, t) {
299
+ if (e == null)
300
+ return "";
301
+ if (typeof e == "function")
302
+ return pe(e, qe(e));
303
+ if (typeof e == "string")
304
+ return V(e);
305
+ switch (e) {
306
+ case O:
307
+ return V("Suspense");
308
+ case E:
309
+ return V("SuspenseList");
310
+ }
311
+ if (typeof e == "object")
312
+ switch (e.$$typeof) {
313
+ case m:
314
+ return Be(e.render);
315
+ case x:
316
+ return U(e.type, r, t);
317
+ case S: {
318
+ var a = e, l = a._payload, f = a._init;
319
+ try {
320
+ return U(f(l), r, t);
321
+ } catch {
322
+ }
323
+ }
324
+ }
325
+ return "";
326
+ }
327
+ var B = Object.prototype.hasOwnProperty, ve = {}, me = N.ReactDebugCurrentFrame;
328
+ function q(e) {
329
+ if (e) {
330
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
331
+ me.setExtraStackFrame(t);
332
+ } else
333
+ me.setExtraStackFrame(null);
334
+ }
335
+ function Ge(e, r, t, a, l) {
336
+ {
337
+ var f = Function.call.bind(B);
338
+ for (var i in e)
339
+ if (f(e, i)) {
340
+ var o = void 0;
341
+ try {
342
+ if (typeof e[i] != "function") {
343
+ var k = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
344
+ throw k.name = "Invariant Violation", k;
345
+ }
346
+ o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
347
+ } catch (h) {
348
+ o = h;
349
+ }
350
+ o && !(o instanceof Error) && (q(l), g("%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).", a || "React class", t, i, typeof o), q(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, q(l), g("Failed %s type: %s", t, o.message), q(null));
351
+ }
352
+ }
353
+ }
354
+ var Je = Array.isArray;
355
+ function H(e) {
356
+ return Je(e);
357
+ }
358
+ function ze(e) {
359
+ {
360
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
361
+ return t;
362
+ }
363
+ }
364
+ function He(e) {
365
+ try {
366
+ return he(e), !1;
367
+ } catch {
368
+ return !0;
369
+ }
370
+ }
371
+ function he(e) {
372
+ return "" + e;
373
+ }
374
+ function be(e) {
375
+ if (He(e))
376
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ze(e)), he(e);
377
+ }
378
+ var $ = N.ReactCurrentOwner, Ke = {
379
+ key: !0,
380
+ ref: !0,
381
+ __self: !0,
382
+ __source: !0
383
+ }, _e, ge, K;
384
+ K = {};
385
+ function Xe(e) {
386
+ if (B.call(e, "ref")) {
387
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
388
+ if (r && r.isReactWarning)
389
+ return !1;
390
+ }
391
+ return e.ref !== void 0;
392
+ }
393
+ function Ze(e) {
394
+ if (B.call(e, "key")) {
395
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
396
+ if (r && r.isReactWarning)
397
+ return !1;
398
+ }
399
+ return e.key !== void 0;
400
+ }
401
+ function Qe(e, r) {
402
+ if (typeof e.ref == "string" && $.current && r && $.current.stateNode !== r) {
403
+ var t = w($.current.type);
404
+ K[t] || (g('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', w($.current.type), e.ref), K[t] = !0);
405
+ }
406
+ }
407
+ function er(e, r) {
408
+ {
409
+ var t = function() {
410
+ _e || (_e = !0, g("%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));
411
+ };
412
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
413
+ get: t,
414
+ configurable: !0
415
+ });
416
+ }
417
+ }
418
+ function rr(e, r) {
419
+ {
420
+ var t = function() {
421
+ ge || (ge = !0, g("%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));
422
+ };
423
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
424
+ get: t,
425
+ configurable: !0
426
+ });
427
+ }
428
+ }
429
+ var tr = function(e, r, t, a, l, f, i) {
430
+ var o = {
431
+ // This tag allows us to uniquely identify this as a React Element
432
+ $$typeof: c,
433
+ // Built-in properties that belong on the element
434
+ type: e,
435
+ key: r,
436
+ ref: t,
437
+ props: i,
438
+ // Record the component responsible for creating this element.
439
+ _owner: f
440
+ };
441
+ return o._store = {}, Object.defineProperty(o._store, "validated", {
442
+ configurable: !1,
443
+ enumerable: !1,
444
+ writable: !0,
445
+ value: !1
446
+ }), Object.defineProperty(o, "_self", {
447
+ configurable: !1,
448
+ enumerable: !1,
449
+ writable: !1,
450
+ value: a
451
+ }), Object.defineProperty(o, "_source", {
452
+ configurable: !1,
453
+ enumerable: !1,
454
+ writable: !1,
455
+ value: l
456
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
457
+ };
458
+ function ar(e, r, t, a, l) {
459
+ {
460
+ var f, i = {}, o = null, k = null;
461
+ t !== void 0 && (be(t), o = "" + t), Ze(r) && (be(r.key), o = "" + r.key), Xe(r) && (k = r.ref, Qe(r, l));
462
+ for (f in r)
463
+ B.call(r, f) && !Ke.hasOwnProperty(f) && (i[f] = r[f]);
464
+ if (e && e.defaultProps) {
465
+ var h = e.defaultProps;
466
+ for (f in h)
467
+ i[f] === void 0 && (i[f] = h[f]);
468
+ }
469
+ if (o || k) {
470
+ var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
471
+ o && er(i, b), k && rr(i, b);
472
+ }
473
+ return tr(e, o, k, l, a, $.current, i);
474
+ }
475
+ }
476
+ var X = N.ReactCurrentOwner, ke = N.ReactDebugCurrentFrame;
477
+ function j(e) {
478
+ if (e) {
479
+ var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
480
+ ke.setExtraStackFrame(t);
481
+ } else
482
+ ke.setExtraStackFrame(null);
483
+ }
484
+ var Z;
485
+ Z = !1;
486
+ function Q(e) {
487
+ return typeof e == "object" && e !== null && e.$$typeof === c;
488
+ }
489
+ function ye() {
490
+ {
491
+ if (X.current) {
492
+ var e = w(X.current.type);
493
+ if (e)
494
+ return `
495
+
496
+ Check the render method of \`` + e + "`.";
497
+ }
498
+ return "";
499
+ }
500
+ }
501
+ function nr(e) {
502
+ {
503
+ if (e !== void 0) {
504
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
505
+ return `
506
+
507
+ Check your code at ` + r + ":" + t + ".";
508
+ }
509
+ return "";
510
+ }
511
+ }
512
+ var Ee = {};
513
+ function or(e) {
514
+ {
515
+ var r = ye();
516
+ if (!r) {
517
+ var t = typeof e == "string" ? e : e.displayName || e.name;
518
+ t && (r = `
519
+
520
+ Check the top-level render call using <` + t + ">.");
521
+ }
522
+ return r;
523
+ }
524
+ }
525
+ function Re(e, r) {
526
+ {
527
+ if (!e._store || e._store.validated || e.key != null)
528
+ return;
529
+ e._store.validated = !0;
530
+ var t = or(r);
531
+ if (Ee[t])
532
+ return;
533
+ Ee[t] = !0;
534
+ var a = "";
535
+ e && e._owner && e._owner !== X.current && (a = " It was passed a child from " + w(e._owner.type) + "."), j(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), j(null);
536
+ }
537
+ }
538
+ function xe(e, r) {
539
+ {
540
+ if (typeof e != "object")
541
+ return;
542
+ if (H(e))
543
+ for (var t = 0; t < e.length; t++) {
544
+ var a = e[t];
545
+ Q(a) && Re(a, r);
546
+ }
547
+ else if (Q(e))
548
+ e._store && (e._store.validated = !0);
549
+ else if (e) {
550
+ var l = je(e);
551
+ if (typeof l == "function" && l !== e.entries)
552
+ for (var f = l.call(e), i; !(i = f.next()).done; )
553
+ Q(i.value) && Re(i.value, r);
554
+ }
555
+ }
556
+ }
557
+ function ir(e) {
558
+ {
559
+ var r = e.type;
560
+ if (r == null || typeof r == "string")
561
+ return;
562
+ var t;
563
+ if (typeof r == "function")
564
+ t = r.propTypes;
565
+ else if (typeof r == "object" && (r.$$typeof === m || // Note: Memo only checks outer props here.
566
+ // Inner props are checked in the reconciler.
567
+ r.$$typeof === x))
568
+ t = r.propTypes;
569
+ else
570
+ return;
571
+ if (t) {
572
+ var a = w(r);
573
+ Ge(t, e.props, "prop", a, e);
574
+ } else if (r.PropTypes !== void 0 && !Z) {
575
+ Z = !0;
576
+ var l = w(r);
577
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
578
+ }
579
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
580
+ }
581
+ }
582
+ function sr(e) {
583
+ {
584
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
585
+ var a = r[t];
586
+ if (a !== "children" && a !== "key") {
587
+ j(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), j(null);
588
+ break;
589
+ }
590
+ }
591
+ e.ref !== null && (j(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
592
+ }
593
+ }
594
+ function Te(e, r, t, a, l, f) {
595
+ {
596
+ var i = Ye(e);
597
+ if (!i) {
598
+ var o = "";
599
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
600
+ var k = nr(l);
601
+ k ? o += k : o += ye();
602
+ var h;
603
+ e === null ? h = "null" : H(e) ? h = "array" : e !== void 0 && e.$$typeof === c ? (h = "<" + (w(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : h = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", h, o);
604
+ }
605
+ var b = ar(e, r, t, l, f);
606
+ if (b == null)
607
+ return b;
608
+ if (i) {
609
+ var R = r.children;
610
+ if (R !== void 0)
611
+ if (a)
612
+ if (H(R)) {
613
+ for (var F = 0; F < R.length; F++)
614
+ xe(R[F], e);
615
+ Object.freeze && Object.freeze(R);
616
+ } else
617
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
618
+ else
619
+ xe(R, e);
620
+ }
621
+ return e === u ? sr(b) : ir(b), b;
622
+ }
623
+ }
624
+ function lr(e, r, t) {
625
+ return Te(e, r, t, !0);
626
+ }
627
+ function ur(e, r, t) {
628
+ return Te(e, r, t, !1);
629
+ }
630
+ var cr = ur, fr = lr;
631
+ W.Fragment = u, W.jsx = cr, W.jsxs = fr;
632
+ }()), W;
633
+ }
634
+ (function(n) {
635
+ process.env.NODE_ENV === "production" ? n.exports = pr() : n.exports = vr();
636
+ })(dr);
637
+ const Ce = Y.Fragment, s = Y.jsx, T = Y.jsxs, D = ({
638
+ className: n,
639
+ name: c,
640
+ viewBox: p = "0 0 32 32",
641
+ ...u
642
+ }) => {
643
+ const v = [n, "balle"].filter(Boolean).join(" ");
644
+ return /* @__PURE__ */ s("svg", { ...u, className: v, viewBox: p, children: /* @__PURE__ */ s("use", { href: `#${c}` }) });
645
+ }, Er = ({
646
+ children: n,
647
+ className: c,
648
+ iconName: p = "user",
649
+ size: u = "medium",
650
+ skin: v = "primary",
651
+ type: d = "button",
652
+ variant: _ = "label-only",
653
+ ...y
654
+ }) => {
655
+ const m = [
656
+ c,
657
+ "pkt-btn",
658
+ u && `pkt-btn--${u}`,
659
+ v && `pkt-btn--${v}`,
660
+ _ && `pkt-btn--${_}`
661
+ ].filter(Boolean).join(" ");
662
+ return /* @__PURE__ */ T("button", { ...y, className: m, type: d, children: [
663
+ /* @__PURE__ */ s(D, { className: "pkt-btn__icon", name: p }),
664
+ /* @__PURE__ */ s("span", { className: "pkt-btn__text", children: n })
665
+ ] });
666
+ }, Rr = ({
667
+ children: n,
668
+ className: c,
669
+ logoLink: p = "https://www.oslo.kommune.no/",
670
+ isLoggedIn: u = !1,
671
+ representing: v = "",
672
+ canChangeRepresentation: d = !1,
673
+ showLogInButton: _ = !0,
674
+ onLogIn: y,
675
+ onLogOut: m,
676
+ onChangeRepresentation: O,
677
+ ...E
678
+ }) => {
679
+ const x = [c, "pkt-header"].filter(Boolean).join(" ");
680
+ return /* @__PURE__ */ T("header", { id: "pkt-header", className: x, "aria-label": "Topp", children: [
681
+ /* @__PURE__ */ s("div", { className: "pkt-header__logo", children: /* @__PURE__ */ s("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: p, children: /* @__PURE__ */ s(D, { name: "oslologo", className: "pkt-header__logo-svg", viewBox: "0 0 60 31", "aria-hidden": "true" }) }) }),
682
+ /* @__PURE__ */ T("div", { className: "pkt-header__actions", children: [
683
+ u && d && /* @__PURE__ */ T(
684
+ "button",
685
+ {
686
+ className: "pkt-btn pkt-btn--secondary pkt-btn--icon-right",
687
+ "aria-label": `Bytt bruker fra ${v}`,
688
+ onClick: O,
689
+ children: [
690
+ /* @__PURE__ */ s(D, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
691
+ /* @__PURE__ */ s("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
692
+ /* @__PURE__ */ s("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
693
+ /* @__PURE__ */ s("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: v })
694
+ ]
695
+ }
696
+ ),
697
+ u && !d && /* @__PURE__ */ T("div", { className: "pkt-header__action", children: [
698
+ /* @__PURE__ */ s("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ s("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline truncate-text", children: v }) }),
699
+ /* @__PURE__ */ s("span", { className: "pkt-header__action-icon pkt-show-phablet-up", children: /* @__PURE__ */ s(D, { name: "user" }) })
700
+ ] }),
701
+ _ && u && /* @__PURE__ */ T("button", { className: "pkt-btn pkt-btn--flat pkt-btn--icon-right", "aria-label": "Logg ut", onClick: m, children: [
702
+ /* @__PURE__ */ s(D, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
703
+ /* @__PURE__ */ s("span", { className: "pkt-btn__text", children: "Logg ut" })
704
+ ] }),
705
+ _ && !u && /* @__PURE__ */ T("button", { className: "pkt-btn pkt-btn--flat pkt-btn--icon-right", "aria-label": "Logg inn", onClick: y, children: [
706
+ /* @__PURE__ */ s(D, { className: "pkt-btn__icon", name: "user" }),
707
+ /* @__PURE__ */ s("span", { className: "pkt-btn__text", children: "Logg inn" })
708
+ ] })
709
+ ] })
710
+ ] });
711
+ }, mr = re.forwardRef(
712
+ ({ label: n, id: c, children: p, ...u }, v) => /* @__PURE__ */ T("div", { className: "pkt-form-group", children: [
713
+ /* @__PURE__ */ s("label", { htmlFor: c, className: "pkt-form-label", children: n }),
714
+ /* @__PURE__ */ s("input", { className: "pkt-form-input", id: c, ...u, ref: v }),
715
+ p
716
+ ] })
717
+ );
718
+ mr.displayName = "PktInput";
719
+ const hr = Se(
720
+ ({ id: n, label: c, ...p }, u) => /* @__PURE__ */ T("div", { className: "pkt-form-group", children: [
721
+ /* @__PURE__ */ s("label", { htmlFor: n, className: "pkt-form-label", children: c }),
722
+ /* @__PURE__ */ s("textarea", { className: "pkt-form-textarea", id: n, ref: u, ...p })
723
+ ] })
724
+ );
725
+ hr.displayName = "PktTextarea";
726
+ const br = Se(
727
+ ({ id: n, name: c, label: p, value: u, ...v }, d) => /* @__PURE__ */ T("div", { className: "pkt-form-group", children: [
728
+ /* @__PURE__ */ s("input", { type: "radio", className: "pkt-form-check-input", id: n, name: c, value: u, ref: d, ...v }),
729
+ /* @__PURE__ */ s("label", { className: "pkt-form-label", htmlFor: n, children: p })
730
+ ] })
731
+ );
732
+ br.displayName = "PktRadio";
733
+ const xr = ({ label: n, children: c }) => /* @__PURE__ */ T(Ce, { children: [
734
+ /* @__PURE__ */ s("p", { children: n }),
735
+ /* @__PURE__ */ s("div", { className: "pkt-form-group", children: c })
736
+ ] });
737
+ var ee = {}, _r = {
738
+ get exports() {
739
+ return ee;
740
+ },
741
+ set exports(n) {
742
+ ee = n;
743
+ }
744
+ };
745
+ /*!
746
+ Copyright (c) 2018 Jed Watson.
747
+ Licensed under the MIT License (MIT), see
748
+ http://jedwatson.github.io/classnames
749
+ */
750
+ (function(n) {
751
+ (function() {
752
+ var c = {}.hasOwnProperty;
753
+ function p() {
754
+ for (var u = [], v = 0; v < arguments.length; v++) {
755
+ var d = arguments[v];
756
+ if (d) {
757
+ var _ = typeof d;
758
+ if (_ === "string" || _ === "number")
759
+ u.push(d);
760
+ else if (Array.isArray(d)) {
761
+ if (d.length) {
762
+ var y = p.apply(null, d);
763
+ y && u.push(y);
764
+ }
765
+ } else if (_ === "object") {
766
+ if (d.toString !== Object.prototype.toString && !d.toString.toString().includes("[native code]")) {
767
+ u.push(d.toString());
768
+ continue;
769
+ }
770
+ for (var m in d)
771
+ c.call(d, m) && d[m] && u.push(m);
772
+ }
773
+ }
774
+ }
775
+ return u.join(" ");
776
+ }
777
+ n.exports ? (p.default = p, n.exports = p) : window.classNames = p;
778
+ })();
779
+ })(_r);
780
+ const gr = ee, kr = ({ isResponsive: n, children: c }) => n ? /* @__PURE__ */ s("div", { className: "pkt-table-container", children: c }) : /* @__PURE__ */ s(Ce, { children: c }), Tr = ({
781
+ isResponsive: n,
782
+ modifiers: { info: c = !1, success: p = !1, strong: u = !1, shadow: v = !1 } = {},
783
+ children: d
784
+ }) => /* @__PURE__ */ s(kr, { isResponsive: n, children: /* @__PURE__ */ s(
785
+ "table",
786
+ {
787
+ className: gr("pkt-table", {
788
+ "pkt-table--info": c,
789
+ "pkt-table--success": p,
790
+ "pkt-table--strong": u,
791
+ "pkt-table--shadow": v
792
+ }),
793
+ children: d
794
+ }
795
+ ) }), wr = ({ children: n }) => /* @__PURE__ */ s("td", { className: "pkt-table__th", children: n }), Pr = ({ children: n }) => /* @__PURE__ */ s("th", { className: "pkt-table__th", children: n });
796
+ export {
797
+ Er as PktButton,
798
+ Rr as PktHeader,
799
+ mr as PktInput,
800
+ br as PktRadio,
801
+ xr as PktRadioGroup,
802
+ Tr as PktTable,
803
+ wr as PktTableData,
804
+ Pr as PktTableHeader,
805
+ hr as PktTextarea
806
+ };