@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.
@@ -1,8 +1,8 @@
1
- import H, { useState as Oe, useEffect as _r, forwardRef as M } from "react";
2
- function vr(o) {
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 te = { exports: {} }, W = {};
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 je;
16
- function kr() {
17
- if (je)
18
- return W;
19
- je = 1;
20
- var o = H, l = Symbol.for("react.element"), i = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, f = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function _(k, h, w) {
22
- var y, P = {}, T = null, O = null;
23
- w !== void 0 && (T = "" + w), h.key !== void 0 && (T = "" + h.key), h.ref !== void 0 && (O = h.ref);
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) && (P[y] = h[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
- P[y] === void 0 && (P[y] = h[y]);
29
- return { $$typeof: l, type: k, key: T, ref: O, props: P, _owner: f.current };
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 W.Fragment = i, W.jsx = _, W.jsxs = _, W;
31
+ return M.Fragment = l, M.jsx = m, M.jsxs = m, M;
32
32
  }
33
- var Y = {};
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 Se;
44
- function br() {
45
- return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
46
- var o = H, l = Symbol.for("react.element"), i = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), k = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), ne = Symbol.iterator, De = "@@iterator";
47
- function Ie(e) {
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 r = ne && e[ne] || e[De];
51
- return typeof r == "function" ? r : null;
50
+ var t = A && e[A] || e[L];
51
+ return typeof t == "function" ? t : null;
52
52
  }
53
- var F = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function E(e) {
53
+ var $ = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ function R(e) {
55
55
  {
56
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
57
- t[s - 1] = arguments[s];
58
- Ae("error", e, t);
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, r, t) {
61
+ function Ae(e, t, a) {
62
62
  {
63
- var s = F.ReactDebugCurrentFrame, m = s.getStackAddendum();
64
- m !== "" && (r += "%s", t = t.concat([m]));
65
- var v = t.map(function(p) {
66
- return String(p);
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: " + r), Function.prototype.apply.call(console[e], console, v);
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, Le = !1, Be = !1, oe;
72
- oe = Symbol.for("react.module.reference");
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 || Be || e === f || e === w || e === y || Le || e === O || We || Ye || Me || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === P || e.$$typeof === _ || e.$$typeof === k || e.$$typeof === h || // This needs to include all possible module reference object
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 === oe || e.getModuleId !== void 0));
78
+ e.$$typeof === ce || e.getModuleId !== void 0));
79
79
  }
80
- function Ue(e, r, t) {
81
- var s = e.displayName;
82
- if (s)
83
- return s;
84
- var m = r.displayName || r.name || "";
85
- return m !== "" ? t + "(" + m + ")" : t;
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 le(e) {
87
+ function ue(e) {
88
88
  return e.displayName || "Context";
89
89
  }
90
- function j(e) {
90
+ function C(e) {
91
91
  if (e == null)
92
92
  return null;
93
- if (typeof e.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
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 i:
100
+ case l:
101
101
  return "Portal";
102
102
  case n:
103
103
  return "Profiler";
104
- case f:
104
+ case u:
105
105
  return "StrictMode";
106
- case w:
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 le(t._context) + ".Provider";
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 P:
122
- var s = e.displayName || null;
123
- return s !== null ? s : j(e.type) || "Memo";
124
- case T: {
125
- var m = e, v = m._payload, p = m._init;
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 j(p(v));
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 C = Object.assign, I = 0, ie, se, ce, ue, fe, pe, de;
136
- function me() {
135
+ var O = Object.assign, W = 0, fe, pe, de, me, he, _e, ve;
136
+ function ke() {
137
137
  }
138
- me.__reactDisabledLog = !0;
138
+ ke.__reactDisabledLog = !0;
139
139
  function qe() {
140
140
  {
141
- if (I === 0) {
142
- ie = console.log, se = console.info, ce = console.warn, ue = console.error, fe = console.group, pe = console.groupCollapsed, de = console.groupEnd;
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: me,
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
- I++;
159
+ W++;
160
160
  }
161
161
  }
162
162
  function He() {
163
163
  {
164
- if (I--, I === 0) {
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: C({}, e, {
172
- value: ie
171
+ log: O({}, e, {
172
+ value: fe
173
173
  }),
174
- info: C({}, e, {
175
- value: se
174
+ info: O({}, e, {
175
+ value: pe
176
176
  }),
177
- warn: C({}, e, {
178
- value: ce
177
+ warn: O({}, e, {
178
+ value: de
179
179
  }),
180
- error: C({}, e, {
181
- value: ue
180
+ error: O({}, e, {
181
+ value: me
182
182
  }),
183
- group: C({}, e, {
184
- value: fe
183
+ group: O({}, e, {
184
+ value: he
185
185
  }),
186
- groupCollapsed: C({}, e, {
187
- value: pe
186
+ groupCollapsed: O({}, e, {
187
+ value: _e
188
188
  }),
189
- groupEnd: C({}, e, {
190
- value: de
189
+ groupEnd: O({}, e, {
190
+ value: ve
191
191
  })
192
192
  });
193
193
  }
194
- I < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
+ W < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
195
  }
196
196
  }
197
- var z = F.ReactCurrentDispatcher, G;
198
- function L(e, r, t) {
197
+ var X = $.ReactCurrentDispatcher, Z;
198
+ function V(e, t, a) {
199
199
  {
200
- if (G === void 0)
200
+ if (Z === void 0)
201
201
  try {
202
202
  throw Error();
203
- } catch (m) {
204
- var s = m.stack.trim().match(/\n( *(at )?)/);
205
- G = s && s[1] || "";
203
+ } catch (_) {
204
+ var i = _.stack.trim().match(/\n( *(at )?)/);
205
+ Z = i && i[1] || "";
206
206
  }
207
207
  return `
208
- ` + G + e;
208
+ ` + Z + e;
209
209
  }
210
210
  }
211
- var J = !1, B;
211
+ var Q = !1, U;
212
212
  {
213
- var ze = typeof WeakMap == "function" ? WeakMap : Map;
214
- B = new ze();
213
+ var Ge = typeof WeakMap == "function" ? WeakMap : Map;
214
+ U = new Ge();
215
215
  }
216
- function he(e, r) {
217
- if (!e || J)
216
+ function be(e, t) {
217
+ if (!e || Q)
218
218
  return "";
219
219
  {
220
- var t = B.get(e);
221
- if (t !== void 0)
222
- return t;
220
+ var a = U.get(e);
221
+ if (a !== void 0)
222
+ return a;
223
223
  }
224
- var s;
225
- J = !0;
226
- var m = Error.prepareStackTrace;
224
+ var i;
225
+ Q = !0;
226
+ var _ = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var v;
229
- v = z.current, z.current = null, qe();
229
+ v = X.current, X.current = null, qe();
230
230
  try {
231
- if (r) {
232
- var p = function() {
231
+ if (t) {
232
+ var d = function() {
233
233
  throw Error();
234
234
  };
235
- if (Object.defineProperty(p.prototype, "props", {
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(p, []);
241
+ Reflect.construct(d, []);
242
242
  } catch (S) {
243
- s = S;
243
+ i = S;
244
244
  }
245
- Reflect.construct(e, [], p);
245
+ Reflect.construct(e, [], d);
246
246
  } else {
247
247
  try {
248
- p.call();
248
+ d.call();
249
249
  } catch (S) {
250
- s = S;
250
+ i = S;
251
251
  }
252
- e.call(p.prototype);
252
+ e.call(d.prototype);
253
253
  }
254
254
  } else {
255
255
  try {
256
256
  throw Error();
257
257
  } catch (S) {
258
- s = S;
258
+ i = S;
259
259
  }
260
260
  e();
261
261
  }
262
262
  } catch (S) {
263
- if (S && s && typeof S.stack == "string") {
264
- for (var u = S.stack.split(`
265
- `), R = s.stack.split(`
266
- `), b = u.length - 1, g = R.length - 1; b >= 1 && g >= 0 && u[b] !== R[g]; )
267
- g--;
268
- for (; b >= 1 && g >= 0; b--, g--)
269
- if (u[b] !== R[g]) {
270
- if (b !== 1 || g !== 1)
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 (b--, g--, g < 0 || u[b] !== R[g]) {
273
- var x = `
274
- ` + u[b].replace(" at new ", " at ");
275
- return e.displayName && x.includes("<anonymous>") && (x = x.replace("<anonymous>", e.displayName)), typeof e == "function" && B.set(e, x), x;
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 (b >= 1 && g >= 0);
277
+ while (g >= 1 && N >= 0);
278
278
  break;
279
279
  }
280
280
  }
281
281
  } finally {
282
- J = !1, z.current = v, He(), Error.prepareStackTrace = m;
282
+ Q = !1, X.current = v, He(), Error.prepareStackTrace = _;
283
283
  }
284
- var D = e ? e.displayName || e.name : "", Te = D ? L(D) : "";
285
- return typeof e == "function" && B.set(e, Te), Te;
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 Ge(e, r, t) {
288
- return he(e, !1);
287
+ function Je(e, t, a) {
288
+ return be(e, !1);
289
289
  }
290
- function Je(e) {
291
- var r = e.prototype;
292
- return !!(r && r.isReactComponent);
290
+ function ze(e) {
291
+ var t = e.prototype;
292
+ return !!(t && t.isReactComponent);
293
293
  }
294
- function V(e, r, t) {
294
+ function q(e, t, a) {
295
295
  if (e == null)
296
296
  return "";
297
297
  if (typeof e == "function")
298
- return he(e, Je(e));
298
+ return be(e, ze(e));
299
299
  if (typeof e == "string")
300
- return L(e);
300
+ return V(e);
301
301
  switch (e) {
302
- case w:
303
- return L("Suspense");
302
+ case E:
303
+ return V("Suspense");
304
304
  case y:
305
- return L("SuspenseList");
305
+ return V("SuspenseList");
306
306
  }
307
307
  if (typeof e == "object")
308
308
  switch (e.$$typeof) {
309
309
  case h:
310
- return Ge(e.render);
311
- case P:
312
- return V(e.type, r, t);
313
- case T: {
314
- var s = e, m = s._payload, v = s._init;
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 V(v(m), r, t);
316
+ return q(v(_), t, a);
317
317
  } catch {
318
318
  }
319
319
  }
320
320
  }
321
321
  return "";
322
322
  }
323
- var U = Object.prototype.hasOwnProperty, _e = {}, ve = F.ReactDebugCurrentFrame;
324
- function q(e) {
323
+ var H = Object.prototype.hasOwnProperty, ge = {}, Ne = $.ReactDebugCurrentFrame;
324
+ function G(e) {
325
325
  if (e) {
326
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
327
- ve.setExtraStackFrame(t);
326
+ var t = e._owner, a = q(e.type, e._source, t ? t.type : null);
327
+ Ne.setExtraStackFrame(a);
328
328
  } else
329
- ve.setExtraStackFrame(null);
329
+ Ne.setExtraStackFrame(null);
330
330
  }
331
- function Ke(e, r, t, s, m) {
331
+ function Ke(e, t, a, i, _) {
332
332
  {
333
- var v = Function.call.bind(U);
334
- for (var p in e)
335
- if (v(e, p)) {
336
- var u = void 0;
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[p] != "function") {
339
- var R = Error((s || "React class") + ": " + t + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw R.name = "Invariant Violation", R;
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
- u = e[p](r, p, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (b) {
344
- u = b;
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
- u && !(u instanceof Error) && (q(m), E("%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).", s || "React class", t, p, typeof u), q(null)), u instanceof Error && !(u.message in _e) && (_e[u.message] = !0, q(m), E("Failed %s type: %s", t, u.message), q(null));
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 K(e) {
351
+ function ee(e) {
352
352
  return Xe(e);
353
353
  }
354
354
  function Ze(e) {
355
355
  {
356
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
357
- return t;
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 ke(e), !1;
362
+ return ye(e), !1;
363
363
  } catch {
364
364
  return !0;
365
365
  }
366
366
  }
367
- function ke(e) {
367
+ function ye(e) {
368
368
  return "" + e;
369
369
  }
370
- function be(e) {
370
+ function Ee(e) {
371
371
  if (Qe(e))
372
- return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ze(e)), ke(e);
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 A = F.ReactCurrentOwner, er = {
374
+ var Y = $.ReactCurrentOwner, et = {
375
375
  key: !0,
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, ge, Ne, X;
380
- X = {};
381
- function rr(e) {
382
- if (U.call(e, "ref")) {
383
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
384
- if (r && r.isReactWarning)
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 tr(e) {
390
- if (U.call(e, "key")) {
391
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
392
- if (r && r.isReactWarning)
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 ar(e, r) {
398
- if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
399
- var t = j(A.current.type);
400
- X[t] || (E('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', j(A.current.type), e.ref), X[t] = !0);
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 nr(e, r) {
403
+ function nt(e, t) {
404
404
  {
405
- var t = function() {
406
- ge || (ge = !0, E("%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));
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
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
409
- get: t,
408
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
409
+ get: a,
410
410
  configurable: !0
411
411
  });
412
412
  }
413
413
  }
414
- function or(e, r) {
414
+ function ot(e, t) {
415
415
  {
416
- var t = function() {
417
- Ne || (Ne = !0, E("%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));
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
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
- get: t,
419
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
420
+ get: a,
421
421
  configurable: !0
422
422
  });
423
423
  }
424
424
  }
425
- var lr = function(e, r, t, s, m, v, p) {
426
- var u = {
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: l,
428
+ $$typeof: s,
429
429
  // Built-in properties that belong on the element
430
430
  type: e,
431
- key: r,
432
- ref: t,
433
- props: p,
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 u._store = {}, Object.defineProperty(u._store, "validated", {
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(u, "_self", {
442
+ }), Object.defineProperty(f, "_self", {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: s
447
- }), Object.defineProperty(u, "_source", {
446
+ value: i
447
+ }), Object.defineProperty(f, "_source", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !1,
451
- value: m
452
- }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
451
+ value: _
452
+ }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
453
453
  };
454
- function ir(e, r, t, s, m) {
454
+ function st(e, t, a, i, _) {
455
455
  {
456
- var v, p = {}, u = null, R = null;
457
- t !== void 0 && (be(t), u = "" + t), tr(r) && (be(r.key), u = "" + r.key), rr(r) && (R = r.ref, ar(r, m));
458
- for (v in r)
459
- U.call(r, v) && !er.hasOwnProperty(v) && (p[v] = r[v]);
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 b = e.defaultProps;
462
- for (v in b)
463
- p[v] === void 0 && (p[v] = b[v]);
461
+ var g = e.defaultProps;
462
+ for (v in g)
463
+ d[v] === void 0 && (d[v] = g[v]);
464
464
  }
465
- if (u || R) {
466
- var g = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
467
- u && nr(p, g), R && or(p, g);
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 lr(e, u, R, m, s, A.current, p);
469
+ return lt(e, f, w, _, i, Y.current, d);
470
470
  }
471
471
  }
472
- var Z = F.ReactCurrentOwner, ye = F.ReactDebugCurrentFrame;
473
- function $(e) {
472
+ var re = $.ReactCurrentOwner, xe = $.ReactDebugCurrentFrame;
473
+ function F(e) {
474
474
  if (e) {
475
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
476
- ye.setExtraStackFrame(t);
475
+ var t = e._owner, a = q(e.type, e._source, t ? t.type : null);
476
+ xe.setExtraStackFrame(a);
477
477
  } else
478
- ye.setExtraStackFrame(null);
478
+ xe.setExtraStackFrame(null);
479
479
  }
480
- var Q;
481
- Q = !1;
482
- function ee(e) {
483
- return typeof e == "object" && e !== null && e.$$typeof === l;
480
+ var ae;
481
+ ae = !1;
482
+ function ne(e) {
483
+ return typeof e == "object" && e !== null && e.$$typeof === s;
484
484
  }
485
- function Ee() {
485
+ function Pe() {
486
486
  {
487
- if (Z.current) {
488
- var e = j(Z.current.type);
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 sr(e) {
497
+ function it(e) {
498
498
  {
499
499
  if (e !== void 0) {
500
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
500
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), a = e.lineNumber;
501
501
  return `
502
502
 
503
- Check your code at ` + r + ":" + t + ".";
503
+ Check your code at ` + t + ":" + a + ".";
504
504
  }
505
505
  return "";
506
506
  }
507
507
  }
508
- var Re = {};
509
- function cr(e) {
508
+ var Te = {};
509
+ function ct(e) {
510
510
  {
511
- var r = Ee();
512
- if (!r) {
513
- var t = typeof e == "string" ? e : e.displayName || e.name;
514
- t && (r = `
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 <` + t + ">.");
516
+ Check the top-level render call using <` + a + ">.");
517
517
  }
518
- return r;
518
+ return t;
519
519
  }
520
520
  }
521
- function we(e, r) {
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 t = cr(r);
527
- if (Re[t])
526
+ var a = ct(t);
527
+ if (Te[a])
528
528
  return;
529
- Re[t] = !0;
530
- var s = "";
531
- e && e._owner && e._owner !== Z.current && (s = " It was passed a child from " + j(e._owner.type) + "."), $(e), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), $(null);
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 xe(e, r) {
534
+ function Ce(e, t) {
535
535
  {
536
536
  if (typeof e != "object")
537
537
  return;
538
- if (K(e))
539
- for (var t = 0; t < e.length; t++) {
540
- var s = e[t];
541
- ee(s) && we(s, r);
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 (ee(e))
543
+ else if (ne(e))
544
544
  e._store && (e._store.validated = !0);
545
545
  else if (e) {
546
- var m = Ie(e);
547
- if (typeof m == "function" && m !== e.entries)
548
- for (var v = m.call(e), p; !(p = v.next()).done; )
549
- ee(p.value) && we(p.value, r);
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 ur(e) {
553
+ function ut(e) {
554
554
  {
555
- var r = e.type;
556
- if (r == null || typeof r == "string")
555
+ var t = e.type;
556
+ if (t == null || typeof t == "string")
557
557
  return;
558
- var t;
559
- if (typeof r == "function")
560
- t = r.propTypes;
561
- else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
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
- r.$$typeof === P))
564
- t = r.propTypes;
563
+ t.$$typeof === x))
564
+ a = t.propTypes;
565
565
  else
566
566
  return;
567
- if (t) {
568
- var s = j(r);
569
- Ke(t, e.props, "prop", s, e);
570
- } else if (r.PropTypes !== void 0 && !Q) {
571
- Q = !0;
572
- var m = j(r);
573
- E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
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 r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
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 fr(e) {
578
+ function ft(e) {
579
579
  {
580
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
581
- var s = r[t];
582
- if (s !== "children" && s !== "key") {
583
- $(e), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), $(null);
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 && ($(e), E("Invalid attribute `ref` supplied to `React.Fragment`."), $(null));
587
+ e.ref !== null && (F(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), F(null));
588
588
  }
589
589
  }
590
- function Pe(e, r, t, s, m, v) {
590
+ function Se(e, t, a, i, _, v) {
591
591
  {
592
- var p = Ve(e);
593
- if (!p) {
594
- var u = "";
595
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " 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 R = sr(m);
597
- R ? u += R : u += Ee();
598
- var b;
599
- e === null ? b = "null" : K(e) ? b = "array" : e !== void 0 && e.$$typeof === l ? (b = "<" + (j(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : b = typeof e, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", b, u);
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 g = ir(e, r, t, m, v);
602
- if (g == null)
603
- return g;
604
- if (p) {
605
- var x = r.children;
606
- if (x !== void 0)
607
- if (s)
608
- if (K(x)) {
609
- for (var D = 0; D < x.length; D++)
610
- xe(x[D], e);
611
- Object.freeze && Object.freeze(x);
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
- E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
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
- xe(x, e);
615
+ Ce(T, e);
616
616
  }
617
- return e === c ? fr(g) : ur(g), g;
617
+ return e === c ? ft(N) : ut(N), N;
618
618
  }
619
619
  }
620
- function pr(e, r, t) {
621
- return Pe(e, r, t, !0);
620
+ function pt(e, t, a) {
621
+ return Se(e, t, a, !0);
622
622
  }
623
- function dr(e, r, t) {
624
- return Pe(e, r, t, !1);
623
+ function dt(e, t, a) {
624
+ return Se(e, t, a, !1);
625
625
  }
626
- var mr = dr, hr = pr;
627
- Y.Fragment = c, Y.jsx = mr, Y.jsxs = hr;
628
- }()), Y;
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" ? te.exports = kr() : te.exports = br();
631
- var ae = te.exports;
632
- const Fe = ae.Fragment, a = ae.jsx, d = ae.jsxs, re = {}, Ce = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';
633
- function gr(o, l) {
634
- return !re[o] && typeof fetch == "function" ? fetch(l + o + ".svg").then((i) => i.ok ? i.text() : (console.error("Missing icon: " + l + o + ".svg"), Ce)).then((i) => (i !== Ce && (re[o] = i), i)) : Promise.resolve(re[o]);
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 N = ({ name: o, path: l, className: i = "", ...c }) => {
637
- const f = "https://punkt-cdn.oslo.kommune.no/5.0/icons/", [n, _] = Oe(null);
638
- return _r(() => {
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
- gr(o, l || f).then((h) => _(h));
642
- }, [o, l, f]), n ? /* @__PURE__ */ a(
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 ${i}`,
645
+ className: `pkt-icon ${l}`,
646
646
  dangerouslySetInnerHTML: { __html: n },
647
647
  ...c
648
648
  }
649
649
  ) : null;
650
- }, Sr = M(
650
+ }, St = I(
651
651
  ({
652
652
  children: o,
653
- className: l,
654
- skin: i = "info",
653
+ className: s,
654
+ skin: l = "info",
655
655
  closeAlert: c = !1,
656
- onClose: f,
656
+ onClose: u,
657
657
  title: n,
658
- date: _,
658
+ date: m,
659
659
  ariaLive: k = "polite",
660
660
  ...h
661
- }, w) => {
662
- const y = [l, "pkt-alert", i && `pkt-alert--${i}`].filter(Boolean).join(" "), [P, T] = Oe(!0), O = () => {
663
- T(!1), f && f();
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 P ? /* @__PURE__ */ d("div", { ...h, className: y, "aria-live": k, ref: w, children: [
666
- /* @__PURE__ */ a(
667
- N,
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: i === "info" ? "alert-information" : `alert-${i}`
670
+ name: l === "info" ? "alert-information" : `alert-${l}`
671
671
  }
672
672
  ),
673
- c && /* @__PURE__ */ a("div", { className: "pkt-alert__close", children: /* @__PURE__ */ a(
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: O,
681
- children: /* @__PURE__ */ a(N, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
680
+ onClick: j,
681
+ children: /* @__PURE__ */ r(b, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
682
682
  }
683
683
  ) }),
684
- n && /* @__PURE__ */ a("div", { className: "pkt-alert__title", children: n }),
685
- /* @__PURE__ */ a("div", { className: "pkt-alert__text", children: o }),
686
- _ && /* @__PURE__ */ d("div", { className: "pkt-alert__date", children: [
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
- ), Nr = M(
692
+ ), Nt = I(
693
693
  ({
694
694
  children: o,
695
- className: l,
696
- iconName: i = "user",
695
+ className: s,
696
+ iconName: l = "user",
697
697
  secondIconName: c = "user",
698
- size: f = "medium",
698
+ size: u = "medium",
699
699
  skin: n = "primary",
700
- type: _ = "button",
700
+ type: m = "button",
701
701
  variant: k = "label-only",
702
702
  ...h
703
- }, w) => {
703
+ }, E) => {
704
704
  const y = [
705
- l,
705
+ s,
706
706
  "pkt-btn",
707
- f && `pkt-btn--${f}`,
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__ */ d("button", { ...h, className: y, type: _, ref: w, children: [
712
- k !== "label-only" && /* @__PURE__ */ a(N, { className: "pkt-btn__icon", name: i }),
713
- /* @__PURE__ */ a("span", { className: "pkt-btn__text", children: o }),
714
- k === "icons-right-and-left" && /* @__PURE__ */ a(N, { className: "pkt-btn__icon", name: c })
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
- Nr.displayName = "PktButton";
719
- const Cr = ({ columnOne: o, columnTwo: l, socialLinks: i }) => {
720
- var c, f;
721
- return /* @__PURE__ */ a("footer", { className: "pkt-footer", "data-mode": "dark", children: /* @__PURE__ */ d("div", { className: "pkt-footer__container", children: [
722
- /* @__PURE__ */ d("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
723
- /* @__PURE__ */ d("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
724
- /* @__PURE__ */ a("h2", { className: "pkt-footer__title", children: o.title }),
725
- /* @__PURE__ */ d("ul", { className: "pkt-footer__list", children: [
726
- o.text && /* @__PURE__ */ a("li", { className: "pkt-footer__text", children: o.text }),
727
- (c = o.links) == null ? void 0 : c.map((n, _) => /* @__PURE__ */ a("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ d(
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__ */ a(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
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__ */ d("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
743
- /* @__PURE__ */ a("h2", { className: "pkt-footer__title", children: l.title }),
744
- /* @__PURE__ */ d("ul", { className: "pkt-footer__list", children: [
745
- l.text && /* @__PURE__ */ a("li", { className: "pkt-footer__text", children: l.text }),
746
- (f = l.links) == null ? void 0 : f.map((n, _) => /* @__PURE__ */ a("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ d(
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__ */ a(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
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__ */ d("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
762
- /* @__PURE__ */ a("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
763
- /* @__PURE__ */ d("ul", { className: "pkt-footer__list", children: [
764
- /* @__PURE__ */ a("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ d(
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__ */ a(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
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__ */ a("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ d("a", { className: "pkt-footer__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
776
- /* @__PURE__ */ a(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
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
- i && /* @__PURE__ */ d("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
783
- /* @__PURE__ */ a("div", { className: "pkt-footer__social-languages", children: i.filter((n) => n.language).map((n, _) => /* @__PURE__ */ a(
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__ */ a(
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__ */ a("div", { className: "pkt-footer__social-icons", children: i.filter((n) => n.iconName).map((n, _) => /* @__PURE__ */ a(H.Fragment, { children: /* @__PURE__ */ a(
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__ */ a(N, { className: "pkt-footer__social-icon", name: n.iconName })
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
- }, Or = ({
813
+ }, $t = ({
814
814
  links: o = []
815
- }) => /* @__PURE__ */ a("footer", { className: "pkt-footer-simple", "data-mode": "dark", children: /* @__PURE__ */ a("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ d("ul", { className: "pkt-footer-simple__list", children: [
816
- o.map((l, i) => /* @__PURE__ */ a("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ d(
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 ${l.external ? " pkt-link--external" : ""}`,
820
- href: l.href,
821
- target: l.openInNewTab ? "_blank" : "_self",
822
- rel: l.openInNewTab ? "noopener noreferrer" : void 0,
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__ */ a(
825
- N,
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
- l.text
831
+ s.text
832
832
  ]
833
833
  }
834
- ) }, i)),
835
- /* @__PURE__ */ a("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ d("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", children: [
836
- /* @__PURE__ */ a(N, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
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__ */ a("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ d("a", { className: "pkt-footer-simple__link", href: "https://www.oslo.kommune.no/tilgjengelighet/", children: [
840
- /* @__PURE__ */ a(N, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
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
- ] }) }) }), Fr = ({
843
+ ] }) }) }), Ft = ({
844
844
  className: o,
845
- logoLink: l = "https://www.oslo.kommune.no/",
846
- isLoggedIn: i = !1,
845
+ logoLink: s = "https://www.oslo.kommune.no/",
846
+ isLoggedIn: l = !1,
847
847
  representing: c = "",
848
- canChangeRepresentation: f = !1,
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 w = [o, "pkt-header"].filter(Boolean).join(" ");
855
- return /* @__PURE__ */ d("header", { id: "pkt-header", className: w, "aria-label": "Topp", children: [
856
- /* @__PURE__ */ a("div", { className: "pkt-header__logo", children: /* @__PURE__ */ a("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: l, children: /* @__PURE__ */ a(N, { name: "oslologo", className: "pkt-header__logo-svg", "aria-hidden": "true", path: "https://punkt-cdn.oslo.kommune.no/5.0/logos/" }) }) }),
857
- /* @__PURE__ */ d("div", { className: "pkt-header__actions", children: [
858
- i && f && /* @__PURE__ */ d(
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__ */ a(N, { name: "user", className: "pkt-btn__icon pkt-show-tablet-up" }),
866
- /* @__PURE__ */ a("span", { className: "pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15", children: "Endre" }),
867
- /* @__PURE__ */ a("span", { className: "pkt-btn__text pkt-hide-tablet-up", children: "Endre" }),
868
- /* @__PURE__ */ a("span", { className: "pkt-btn__text--representing pkt-hide pkt-show-tablet-up", children: c })
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
- i && !f && /* @__PURE__ */ d("div", { className: "pkt-header__action", children: [
873
- /* @__PURE__ */ a("span", { className: "pkt-header__action-text", children: /* @__PURE__ */ a("span", { className: "pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text", children: c }) }),
874
- /* @__PURE__ */ a(N, { className: "pkt-header__action-icon pkt-show-phablet-up", name: "user" })
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 && i && /* @__PURE__ */ d(
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__ */ a(N, { className: "pkt-btn__icon pkt-show-tablet-up", name: "exit" }),
884
- /* @__PURE__ */ a("span", { className: "pkt-btn__text", children: "Logg ut" })
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 && !i && /* @__PURE__ */ d(
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__ */ a(N, { className: "pkt-btn__icon", name: "user" }),
896
- /* @__PURE__ */ a("span", { className: "pkt-btn__text", children: "Logg inn" })
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
- }, yr = H.forwardRef(
903
- ({ label: o, id: l, children: i, ...c }, f) => /* @__PURE__ */ d("div", { className: "pkt-form-group", children: [
904
- /* @__PURE__ */ a("label", { htmlFor: l, className: "pkt-form-label", children: o }),
905
- /* @__PURE__ */ a("input", { className: "pkt-form-input", id: l, ...c, ref: f }),
906
- i
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
- yr.displayName = "PktInput";
910
- const Er = M(
909
+ yt.displayName = "PktInput";
910
+ const Et = I(
911
911
  ({
912
912
  children: o,
913
- className: l,
914
- iconName: i = "user",
913
+ className: s,
914
+ iconName: l = "user",
915
915
  openInNewTab: c = !1,
916
- skin: f = "normal",
916
+ skin: u = "normal",
917
917
  href: n = "#",
918
- external: _ = !1,
918
+ external: m = !1,
919
919
  title: k
920
920
  }, h) => {
921
- const w = [l, "pkt-linkcard", f && `pkt-linkcard--${f}`].filter(Boolean).join(" ");
922
- return /* @__PURE__ */ d(
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 ${w}`,
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__ */ a(N, { className: "pkt-link__icon", name: i }),
932
- /* @__PURE__ */ d("div", { className: "pkt-linkcard__content", children: [
933
- /* @__PURE__ */ a("div", { className: `pkt-linkcard__title ${_ ? "pkt-link pkt-link--external" : ""}`, children: k }),
934
- /* @__PURE__ */ a("div", { className: "pkt-linkcard__text", children: o })
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
- Er.displayName = "PktLinkCard";
942
- const $r = ({
941
+ Et.displayName = "PktLinkCard";
942
+ const Dt = ({
943
943
  children: o,
944
- skin: l = "beige",
945
- title: i,
944
+ skin: s = "beige",
945
+ title: l,
946
946
  ...c
947
947
  }) => {
948
- const f = ["pkt-messagebox", l && `pkt-messagebox--${l}`].filter(Boolean).join(" ");
949
- return /* @__PURE__ */ d("div", { ...c, className: f, children: [
950
- /* @__PURE__ */ a("div", { className: "pkt-messagebox__title", children: i }),
951
- /* @__PURE__ */ a("div", { className: "pkt-messagebox__text", children: o })
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
- }, Rr = M(
954
- ({ id: o, name: l, label: i, value: c, ...f }, n) => /* @__PURE__ */ d("div", { className: "pkt-form-group", children: [
955
- /* @__PURE__ */ a("input", { type: "radio", className: "pkt-form-check-input", id: o, name: l, value: c, ref: n, ...f }),
956
- /* @__PURE__ */ a("label", { className: "pkt-form-label", htmlFor: o, children: i })
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
- Rr.displayName = "PktRadio";
960
- const Dr = ({ label: o, children: l }) => /* @__PURE__ */ d(Fe, { children: [
961
- /* @__PURE__ */ a("p", { children: o }),
962
- /* @__PURE__ */ a("div", { className: "pkt-form-group", children: l })
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 $e = { exports: {} };
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 l = {}.hasOwnProperty;
973
- function i() {
974
- for (var c = [], f = 0; f < arguments.length; f++) {
975
- var n = arguments[f];
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 _ = typeof n;
978
- if (_ === "string" || _ === "number")
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 = i.apply(null, n);
982
+ var k = l.apply(null, n);
983
983
  k && c.push(k);
984
984
  }
985
- } else if (_ === "object") {
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
- l.call(n, h) && n[h] && c.push(h);
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 ? (i.default = i, o.exports = i) : window.classNames = i;
997
+ o.exports ? (l.default = l, o.exports = l) : window.classNames = l;
998
998
  })();
999
- })($e);
1000
- var wr = $e.exports;
1001
- const xr = /* @__PURE__ */ vr(wr), Pr = ({ isResponsive: o, children: l }) => o ? /* @__PURE__ */ a("div", { className: "pkt-table-container", children: l }) : /* @__PURE__ */ a(Fe, { children: l }), Ir = ({
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: l = !1, success: i = !1, strong: c = !1, shadow: f = !1 } = {},
1003
+ modifiers: { info: s = !1, success: l = !1, strong: c = !1, shadow: u = !1 } = {},
1004
1004
  children: n
1005
- }) => /* @__PURE__ */ a(Pr, { isResponsive: o, children: /* @__PURE__ */ a(
1005
+ }) => /* @__PURE__ */ r(Pt, { isResponsive: o, children: /* @__PURE__ */ r(
1006
1006
  "table",
1007
1007
  {
1008
- className: xr("pkt-table", {
1009
- "pkt-table--info": l,
1010
- "pkt-table--success": i,
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": f
1012
+ "pkt-table--shadow": u
1013
1013
  }),
1014
1014
  children: n
1015
1015
  }
1016
- ) }), Ar = ({ children: o }) => /* @__PURE__ */ a("td", { className: "pkt-table__th", children: o }), Wr = ({ children: o }) => /* @__PURE__ */ a("th", { className: "pkt-table__th", children: o }), Tr = M(
1017
- ({ id: o, label: l, ...i }, c) => /* @__PURE__ */ d("div", { className: "pkt-form-group", children: [
1018
- /* @__PURE__ */ a("label", { htmlFor: o, className: "pkt-form-label", children: l }),
1019
- /* @__PURE__ */ a("textarea", { className: "pkt-form-textarea", id: o, ref: c, ...i })
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
- Tr.displayName = "PktTextarea";
1084
+ jt.displayName = "PktTextarea";
1023
1085
  export {
1024
- Sr as PktAlert,
1025
- Nr as PktButton,
1026
- Cr as PktFooter,
1027
- Or as PktFooterSimple,
1028
- Fr as PktHeader,
1029
- N as PktIcon,
1030
- yr as PktInput,
1031
- Er as PktLinkCard,
1032
- $r as PktMessagebox,
1033
- Rr as PktRadio,
1034
- Dr as PktRadioGroup,
1035
- Ir as PktTable,
1036
- Ar as PktTableData,
1037
- Wr as PktTableHeader,
1038
- Tr as PktTextarea
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
  };