@oslokommune/punkt-react 14.4.0 → 14.5.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.
@@ -33,10 +33,10 @@
33
33
  return [];
34
34
  };
35
35
  }
36
- import { jsx as c, jsxs as S, Fragment as de } from "react/jsx-runtime";
37
- import oe, { createContext as Jn, forwardRef as X, useContext as Qn, useState as Pt, useEffect as Nt, useCallback as Me, useRef as Xt, Fragment as Fa, useMemo as ta, createRef as ja, createElement as Va, Children as qs, isValidElement as Ha, cloneElement as Ua } from "react";
38
- import { Link as cn } from "react-router-dom";
39
- const ea = Jn({}), za = () => Qn(ea), qa = X(
36
+ import { jsx as c, jsxs as S, Fragment as Jt } from "react/jsx-runtime";
37
+ import le, { createContext as Xn, forwardRef as X, useContext as Jn, useState as Pt, useEffect as Nt, useCallback as Me, useRef as Xt, Fragment as Ba, useMemo as Qn, createRef as Fa, createElement as ja, Children as qs, isValidElement as Va, cloneElement as Ha } from "react";
38
+ import { Link as Ua } from "react-router-dom";
39
+ const ta = Xn({}), za = () => Jn(ta), qa = X(
40
40
  ({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: n, className: a }, r) => {
41
41
  const l = [
42
42
  "pkt-accordion",
@@ -44,7 +44,7 @@ const ea = Jn({}), za = () => Qn(ea), qa = X(
44
44
  t && `pkt-accordion--${t}`,
45
45
  a
46
46
  ].filter(Boolean).join(" ");
47
- return /* @__PURE__ */ c(ea.Provider, { value: { name: n }, children: /* @__PURE__ */ c(
47
+ return /* @__PURE__ */ c(ta.Provider, { value: { name: n }, children: /* @__PURE__ */ c(
48
48
  "div",
49
49
  {
50
50
  ref: r,
@@ -62,29 +62,29 @@ qa.displayName = "PktAccordion";
62
62
  * Copyright 2018 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- const Wa = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), un = /* @__PURE__ */ new WeakMap(), dn = (i, t, e, s, n) => {
65
+ const Wa = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), cn = /* @__PURE__ */ new WeakMap(), un = (i, t, e, s, n) => {
66
66
  const a = n == null ? void 0 : n[t];
67
67
  a === void 0 ? (i[t] = e, e == null && t in HTMLElement.prototype && i.removeAttribute(t)) : e !== s && ((r, l, u) => {
68
- let p = un.get(r);
69
- p === void 0 && un.set(r, p = /* @__PURE__ */ new Map());
70
- let v = p.get(l);
71
- u !== void 0 ? v === void 0 ? (p.set(l, v = { handleEvent: u }), r.addEventListener(l, v)) : v.handleEvent = u : v !== void 0 && (p.delete(l), r.removeEventListener(l, v));
68
+ let p = cn.get(r);
69
+ p === void 0 && cn.set(r, p = /* @__PURE__ */ new Map());
70
+ let g = p.get(l);
71
+ u !== void 0 ? g === void 0 ? (p.set(l, g = { handleEvent: u }), r.addEventListener(l, g)) : g.handleEvent = u : g !== void 0 && (p.delete(l), r.removeEventListener(l, g));
72
72
  })(i, a, e);
73
- }, le = ({ react: i, tagName: t, elementClass: e, events: s, displayName: n }) => {
73
+ }, he = ({ react: i, tagName: t, elementClass: e, events: s, displayName: n }) => {
74
74
  const a = new Set(Object.keys(s ?? {})), r = i.forwardRef(((l, u) => {
75
- const p = i.useRef(/* @__PURE__ */ new Map()), v = i.useRef(null), g = {}, y = {};
76
- for (const [$, k] of Object.entries(l)) Wa.has($) ? g[$ === "className" ? "class" : $] = k : a.has($) || $ in e.prototype ? y[$] = k : g[$] = k;
75
+ const p = i.useRef(/* @__PURE__ */ new Map()), g = i.useRef(null), v = {}, y = {};
76
+ for (const [$, k] of Object.entries(l)) Wa.has($) ? v[$ === "className" ? "class" : $] = k : a.has($) || $ in e.prototype ? y[$] = k : v[$] = k;
77
77
  return i.useLayoutEffect((() => {
78
- if (v.current === null) return;
78
+ if (g.current === null) return;
79
79
  const $ = /* @__PURE__ */ new Map();
80
- for (const k in y) dn(v.current, k, l[k], p.current.get(k), s), p.current.delete(k), $.set(k, l[k]);
81
- for (const [k, w] of p.current) dn(v.current, k, void 0, w, s);
80
+ for (const k in y) un(g.current, k, l[k], p.current.get(k), s), p.current.delete(k), $.set(k, l[k]);
81
+ for (const [k, w] of p.current) un(g.current, k, void 0, w, s);
82
82
  p.current = $;
83
83
  })), i.useLayoutEffect((() => {
84
84
  var $;
85
- ($ = v.current) == null || $.removeAttribute("defer-hydration");
86
- }), []), g.suppressHydrationWarning = !0, i.createElement(t, { ...g, ref: i.useCallback((($) => {
87
- v.current = $, typeof u == "function" ? u($) : u !== null && (u.current = $);
85
+ ($ = g.current) == null || $.removeAttribute("defer-hydration");
86
+ }), []), v.suppressHydrationWarning = !0, i.createElement(t, { ...v, ref: i.useCallback((($) => {
87
+ g.current = $, typeof u == "function" ? u($) : u !== null && (u.current = $);
88
88
  }), [u]) });
89
89
  }));
90
90
  return r.displayName = n ?? e.name, r;
@@ -94,53 +94,53 @@ const Wa = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
94
94
  * Copyright 2017 Google LLC
95
95
  * SPDX-License-Identifier: BSD-3-Clause
96
96
  */
97
- const ms = globalThis, fs = ms.trustedTypes, pn = fs ? fs.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ia = "$lit$", Ee = `lit$${Math.random().toFixed(9).slice(2)}$`, sa = "?" + Ee, Ka = `<${sa}>`, Ze = document, Yi = () => Ze.createComment(""), Gi = (i) => i === null || typeof i != "object" && typeof i != "function", Js = Array.isArray, Ya = (i) => Js(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ps = `[
98
- \f\r]`, Di = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, mn = /-->/g, fn = />/g, Ue = RegExp(`>|${Ps}(?:([^\\s"'>=/]+)(${Ps}*=${Ps}*(?:[^
99
- \f\r"'\`<>=]|("|')|))|$)`, "g"), gn = /'/g, vn = /"/g, na = /^(?:script|style|textarea|title)$/i, Ga = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), d = Ga(1), Dt = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), Ke = Ze.createTreeWalker(Ze, 129);
100
- function aa(i, t) {
97
+ const ms = globalThis, fs = ms.trustedTypes, dn = fs ? fs.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ea = "$lit$", Ee = `lit$${Math.random().toFixed(9).slice(2)}$`, ia = "?" + Ee, Ka = `<${ia}>`, Ze = document, Yi = () => Ze.createComment(""), Gi = (i) => i === null || typeof i != "object" && typeof i != "function", Js = Array.isArray, Ya = (i) => Js(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Ps = `[
98
+ \f\r]`, Di = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pn = /-->/g, mn = />/g, Ue = RegExp(`>|${Ps}(?:([^\\s"'>=/]+)(${Ps}*=${Ps}*(?:[^
99
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), fn = /'/g, gn = /"/g, sa = /^(?:script|style|textarea|title)$/i, Ga = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), d = Ga(1), Dt = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), vn = /* @__PURE__ */ new WeakMap(), Ke = Ze.createTreeWalker(Ze, 129);
100
+ function na(i, t) {
101
101
  if (!Js(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
102
- return pn !== void 0 ? pn.createHTML(t) : t;
102
+ return dn !== void 0 ? dn.createHTML(t) : t;
103
103
  }
104
104
  const Za = (i, t) => {
105
105
  const e = i.length - 1, s = [];
106
106
  let n, a = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = Di;
107
107
  for (let l = 0; l < e; l++) {
108
108
  const u = i[l];
109
- let p, v, g = -1, y = 0;
110
- for (; y < u.length && (r.lastIndex = y, v = r.exec(u), v !== null); ) y = r.lastIndex, r === Di ? v[1] === "!--" ? r = mn : v[1] !== void 0 ? r = fn : v[2] !== void 0 ? (na.test(v[2]) && (n = RegExp("</" + v[2], "g")), r = Ue) : v[3] !== void 0 && (r = Ue) : r === Ue ? v[0] === ">" ? (r = n ?? Di, g = -1) : v[1] === void 0 ? g = -2 : (g = r.lastIndex - v[2].length, p = v[1], r = v[3] === void 0 ? Ue : v[3] === '"' ? vn : gn) : r === vn || r === gn ? r = Ue : r === mn || r === fn ? r = Di : (r = Ue, n = void 0);
109
+ let p, g, v = -1, y = 0;
110
+ for (; y < u.length && (r.lastIndex = y, g = r.exec(u), g !== null); ) y = r.lastIndex, r === Di ? g[1] === "!--" ? r = pn : g[1] !== void 0 ? r = mn : g[2] !== void 0 ? (sa.test(g[2]) && (n = RegExp("</" + g[2], "g")), r = Ue) : g[3] !== void 0 && (r = Ue) : r === Ue ? g[0] === ">" ? (r = n ?? Di, v = -1) : g[1] === void 0 ? v = -2 : (v = r.lastIndex - g[2].length, p = g[1], r = g[3] === void 0 ? Ue : g[3] === '"' ? gn : fn) : r === gn || r === fn ? r = Ue : r === pn || r === mn ? r = Di : (r = Ue, n = void 0);
111
111
  const $ = r === Ue && i[l + 1].startsWith("/>") ? " " : "";
112
- a += r === Di ? u + Ka : g >= 0 ? (s.push(p), u.slice(0, g) + ia + u.slice(g) + Ee + $) : u + Ee + (g === -2 ? l : $);
112
+ a += r === Di ? u + Ka : v >= 0 ? (s.push(p), u.slice(0, v) + ea + u.slice(v) + Ee + $) : u + Ee + (v === -2 ? l : $);
113
113
  }
114
- return [aa(i, a + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
114
+ return [na(i, a + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
115
115
  };
116
- let Ws = class ra {
116
+ let Ws = class aa {
117
117
  constructor({ strings: t, _$litType$: e }, s) {
118
118
  let n;
119
119
  this.parts = [];
120
120
  let a = 0, r = 0;
121
- const l = t.length - 1, u = this.parts, [p, v] = Za(t, e);
122
- if (this.el = ra.createElement(p, s), Ke.currentNode = this.el.content, e === 2 || e === 3) {
123
- const g = this.el.content.firstChild;
124
- g.replaceWith(...g.childNodes);
121
+ const l = t.length - 1, u = this.parts, [p, g] = Za(t, e);
122
+ if (this.el = aa.createElement(p, s), Ke.currentNode = this.el.content, e === 2 || e === 3) {
123
+ const v = this.el.content.firstChild;
124
+ v.replaceWith(...v.childNodes);
125
125
  }
126
126
  for (; (n = Ke.nextNode()) !== null && u.length < l; ) {
127
127
  if (n.nodeType === 1) {
128
- if (n.hasAttributes()) for (const g of n.getAttributeNames()) if (g.endsWith(ia)) {
129
- const y = v[r++], $ = n.getAttribute(g).split(Ee), k = /([.?@])?(.*)/.exec(y);
130
- u.push({ type: 1, index: a, name: k[2], strings: $, ctor: k[1] === "." ? Ja : k[1] === "?" ? Qa : k[1] === "@" ? tr : xs }), n.removeAttribute(g);
131
- } else g.startsWith(Ee) && (u.push({ type: 6, index: a }), n.removeAttribute(g));
132
- if (na.test(n.tagName)) {
133
- const g = n.textContent.split(Ee), y = g.length - 1;
128
+ if (n.hasAttributes()) for (const v of n.getAttributeNames()) if (v.endsWith(ea)) {
129
+ const y = g[r++], $ = n.getAttribute(v).split(Ee), k = /([.?@])?(.*)/.exec(y);
130
+ u.push({ type: 1, index: a, name: k[2], strings: $, ctor: k[1] === "." ? Ja : k[1] === "?" ? Qa : k[1] === "@" ? tr : xs }), n.removeAttribute(v);
131
+ } else v.startsWith(Ee) && (u.push({ type: 6, index: a }), n.removeAttribute(v));
132
+ if (sa.test(n.tagName)) {
133
+ const v = n.textContent.split(Ee), y = v.length - 1;
134
134
  if (y > 0) {
135
135
  n.textContent = fs ? fs.emptyScript : "";
136
- for (let $ = 0; $ < y; $++) n.append(g[$], Yi()), Ke.nextNode(), u.push({ type: 2, index: ++a });
137
- n.append(g[y], Yi());
136
+ for (let $ = 0; $ < y; $++) n.append(v[$], Yi()), Ke.nextNode(), u.push({ type: 2, index: ++a });
137
+ n.append(v[y], Yi());
138
138
  }
139
139
  }
140
- } else if (n.nodeType === 8) if (n.data === sa) u.push({ type: 2, index: a });
140
+ } else if (n.nodeType === 8) if (n.data === ia) u.push({ type: 2, index: a });
141
141
  else {
142
- let g = -1;
143
- for (; (g = n.data.indexOf(Ee, g + 1)) !== -1; ) u.push({ type: 7, index: a }), g += Ee.length - 1;
142
+ let v = -1;
143
+ for (; (v = n.data.indexOf(Ee, v + 1)) !== -1; ) u.push({ type: 7, index: a }), v += Ee.length - 1;
144
144
  }
145
145
  a++;
146
146
  }
@@ -184,7 +184,7 @@ let Xa = class {
184
184
  let e = 0;
185
185
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
186
186
  }
187
- }, ws = class oa {
187
+ }, ws = class ra {
188
188
  get _$AU() {
189
189
  var t;
190
190
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -217,7 +217,7 @@ let Xa = class {
217
217
  }
218
218
  $(t) {
219
219
  var e;
220
- const { values: s, _$litType$: n } = t, a = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ws.createElement(aa(n.h, n.h[0]), this.options)), n);
220
+ const { values: s, _$litType$: n } = t, a = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = Ws.createElement(na(n.h, n.h[0]), this.options)), n);
221
221
  if (((e = this._$AH) == null ? void 0 : e._$AD) === a) this._$AH.p(s);
222
222
  else {
223
223
  const r = new Xa(a, this), l = r.u(this.options);
@@ -225,14 +225,14 @@ let Xa = class {
225
225
  }
226
226
  }
227
227
  _$AC(t) {
228
- let e = kn.get(t.strings);
229
- return e === void 0 && kn.set(t.strings, e = new Ws(t)), e;
228
+ let e = vn.get(t.strings);
229
+ return e === void 0 && vn.set(t.strings, e = new Ws(t)), e;
230
230
  }
231
231
  k(t) {
232
232
  Js(this._$AH) || (this._$AH = [], this._$AR());
233
233
  const e = this._$AH;
234
234
  let s, n = 0;
235
- for (const a of t) n === e.length ? e.push(s = new oa(this.O(Yi()), this.O(Yi()), this, this.options)) : s = e[n], s._$AI(a), n++;
235
+ for (const a of t) n === e.length ? e.push(s = new ra(this.O(Yi()), this.O(Yi()), this, this.options)) : s = e[n], s._$AI(a), n++;
236
236
  n < e.length && (this._$AR(s && s._$AB.nextSibling, n), e.length = n);
237
237
  }
238
238
  _$AR(t = this._$AA.nextSibling, e) {
@@ -310,8 +310,8 @@ let tr = class extends xs {
310
310
  ki(this, t);
311
311
  }
312
312
  };
313
- const ir = { I: ws }, bn = ms.litHtmlPolyfillSupport;
314
- bn == null || bn(Ws, ws), (ms.litHtmlVersions ?? (ms.litHtmlVersions = [])).push("3.3.1");
313
+ const ir = { I: ws }, kn = ms.litHtmlPolyfillSupport;
314
+ kn == null || kn(Ws, ws), (ms.litHtmlVersions ?? (ms.litHtmlVersions = [])).push("3.3.1");
315
315
  const sr = (i, t, e) => {
316
316
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
317
317
  let n = s._$litPart$;
@@ -336,10 +336,10 @@ const F = (i) => (t, e) => {
336
336
  * Copyright 2019 Google LLC
337
337
  * SPDX-License-Identifier: BSD-3-Clause
338
338
  */
339
- const cs = globalThis, Qs = cs.ShadowRoot && (cs.ShadyCSS === void 0 || cs.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, la = Symbol(), yn = /* @__PURE__ */ new WeakMap();
339
+ const cs = globalThis, Qs = cs.ShadowRoot && (cs.ShadyCSS === void 0 || cs.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, oa = Symbol(), bn = /* @__PURE__ */ new WeakMap();
340
340
  let nr = class {
341
341
  constructor(t, e, s) {
342
- if (this._$cssResult$ = !0, s !== la) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
342
+ if (this._$cssResult$ = !0, s !== oa) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
343
343
  this.cssText = t, this.t = e;
344
344
  }
345
345
  get styleSheet() {
@@ -347,7 +347,7 @@ let nr = class {
347
347
  const e = this.t;
348
348
  if (Qs && t === void 0) {
349
349
  const s = e !== void 0 && e.length === 1;
350
- s && (t = yn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && yn.set(e, t));
350
+ s && (t = bn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && bn.set(e, t));
351
351
  }
352
352
  return t;
353
353
  }
@@ -355,13 +355,13 @@ let nr = class {
355
355
  return this.cssText;
356
356
  }
357
357
  };
358
- const ar = (i) => new nr(typeof i == "string" ? i : i + "", void 0, la), rr = (i, t) => {
358
+ const ar = (i) => new nr(typeof i == "string" ? i : i + "", void 0, oa), rr = (i, t) => {
359
359
  if (Qs) i.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
360
360
  else for (const e of t) {
361
361
  const s = document.createElement("style"), n = cs.litNonce;
362
362
  n !== void 0 && s.setAttribute("nonce", n), s.textContent = e.cssText, i.appendChild(s);
363
363
  }
364
- }, $n = Qs ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
364
+ }, yn = Qs ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
365
365
  let e = "";
366
366
  for (const s of t.cssRules) e += s.cssText;
367
367
  return ar(e);
@@ -371,7 +371,7 @@ const ar = (i) => new nr(typeof i == "string" ? i : i + "", void 0, la), rr = (i
371
371
  * Copyright 2017 Google LLC
372
372
  * SPDX-License-Identifier: BSD-3-Clause
373
373
  */
374
- const { is: or, defineProperty: lr, getOwnPropertyDescriptor: hr, getOwnPropertyNames: cr, getOwnPropertySymbols: ur, getPrototypeOf: dr } = Object, bi = globalThis, _n = bi.trustedTypes, pr = _n ? _n.emptyScript : "", wn = bi.reactiveElementPolyfillSupport, Wi = (i, t) => i, gs = { toAttribute(i, t) {
374
+ const { is: or, defineProperty: lr, getOwnPropertyDescriptor: hr, getOwnPropertyNames: cr, getOwnPropertySymbols: ur, getPrototypeOf: dr } = Object, bi = globalThis, $n = bi.trustedTypes, pr = $n ? $n.emptyScript : "", _n = bi.reactiveElementPolyfillSupport, Wi = (i, t) => i, gs = { toAttribute(i, t) {
375
375
  switch (t) {
376
376
  case Boolean:
377
377
  i = i ? pr : null;
@@ -399,7 +399,7 @@ const { is: or, defineProperty: lr, getOwnPropertyDescriptor: hr, getOwnProperty
399
399
  }
400
400
  }
401
401
  return e;
402
- } }, tn = (i, t) => !or(i, t), xn = { attribute: !0, type: String, converter: gs, reflect: !1, useDefault: !1, hasChanged: tn };
402
+ } }, tn = (i, t) => !or(i, t), wn = { attribute: !0, type: String, converter: gs, reflect: !1, useDefault: !1, hasChanged: tn };
403
403
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), bi.litPropertyMetadata ?? (bi.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
404
404
  let pi = class extends HTMLElement {
405
405
  static addInitializer(t) {
@@ -408,7 +408,7 @@ let pi = class extends HTMLElement {
408
408
  static get observedAttributes() {
409
409
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
410
410
  }
411
- static createProperty(t, e = xn) {
411
+ static createProperty(t, e = wn) {
412
412
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
413
413
  const s = Symbol(), n = this.getPropertyDescriptor(t, s, e);
414
414
  n !== void 0 && lr(this.prototype, t, n);
@@ -426,7 +426,7 @@ let pi = class extends HTMLElement {
426
426
  }, configurable: !0, enumerable: !0 };
427
427
  }
428
428
  static getPropertyOptions(t) {
429
- return this.elementProperties.get(t) ?? xn;
429
+ return this.elementProperties.get(t) ?? wn;
430
430
  }
431
431
  static _$Ei() {
432
432
  if (this.hasOwnProperty(Wi("elementProperties"))) return;
@@ -455,8 +455,8 @@ let pi = class extends HTMLElement {
455
455
  const e = [];
456
456
  if (Array.isArray(t)) {
457
457
  const s = new Set(t.flat(1 / 0).reverse());
458
- for (const n of s) e.unshift($n(n));
459
- } else t !== void 0 && e.push($n(t));
458
+ for (const n of s) e.unshift(yn(n));
459
+ } else t !== void 0 && e.push(yn(t));
460
460
  return e;
461
461
  }
462
462
  static _$Eu(t, e) {
@@ -604,7 +604,7 @@ let pi = class extends HTMLElement {
604
604
  firstUpdated(t) {
605
605
  }
606
606
  };
607
- pi.elementStyles = [], pi.shadowRootOptions = { mode: "open" }, pi[Wi("elementProperties")] = /* @__PURE__ */ new Map(), pi[Wi("finalized")] = /* @__PURE__ */ new Map(), wn == null || wn({ ReactiveElement: pi }), (bi.reactiveElementVersions ?? (bi.reactiveElementVersions = [])).push("2.1.1");
607
+ pi.elementStyles = [], pi.shadowRootOptions = { mode: "open" }, pi[Wi("elementProperties")] = /* @__PURE__ */ new Map(), pi[Wi("finalized")] = /* @__PURE__ */ new Map(), _n == null || _n({ ReactiveElement: pi }), (bi.reactiveElementVersions ?? (bi.reactiveElementVersions = [])).push("2.1.1");
608
608
  /**
609
609
  * @license
610
610
  * Copyright 2017 Google LLC
@@ -668,10 +668,10 @@ let fi = class extends pi {
668
668
  return Dt;
669
669
  }
670
670
  };
671
- var Sn;
672
- fi._$litElement$ = !0, fi.finalized = !0, (Sn = Zi.litElementHydrateSupport) == null || Sn.call(Zi, { LitElement: fi });
673
- const Cn = Zi.litElementPolyfillSupport;
674
- Cn == null || Cn({ LitElement: fi });
671
+ var xn;
672
+ fi._$litElement$ = !0, fi.finalized = !0, (xn = Zi.litElementHydrateSupport) == null || xn.call(Zi, { LitElement: fi });
673
+ const Sn = Zi.litElementPolyfillSupport;
674
+ Sn == null || Sn({ LitElement: fi });
675
675
  (Zi.litElementVersions ?? (Zi.litElementVersions = [])).push("4.2.1");
676
676
  const gr = { hi: "Hei!" }, vr = { from: "Fra", to: "Til" }, kr = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, br = { month: "Måned", year: "År", days: ["Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag", "Søndag"], daysShort: ["Man", "Tir", "Ons", "Tor", "Fre", "Lør", "Søn"], months: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"], monthsShort: ["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Des"], week: "Uke", prevMonth: "Forrige måned", nextMonth: "Neste måned" }, yr = { search: { placeholder: "Søk…" }, labels: { optional: "Valgfritt", required: "Må fylles ut" }, messages: { required: "Dette feltet er påkrevd", invalid: "Ugyldig verdi", invalidPattern: "Ugyldig format", tooShort: "For kort", tooLong: "For lang", rangeUnderflow: "For lav verdi", rangeOverflow: "For høy verdi", rangeUnderflowMin: "Verdien må være større enn eller lik {min}.", rangeOverflowMax: "Verdien må være mindre enn eller lik {max}.", dateUnderflow: "For tidlig dato", dateOverflow: "For sen dato" }, helptext: { helptextDropdownButton: "Les mer" }, date: { multiple: "Her kan du velge flere datoer. Trykk komma eller enter når du har skrevet inn en dato." } }, Tt = {
677
677
  example: gr,
@@ -680,7 +680,7 @@ const gr = { hi: "Hei!" }, vr = { from: "Fra", to: "Til" }, kr = { buttonAltText
680
680
  dates: br,
681
681
  forms: yr
682
682
  };
683
- var $r = Object.defineProperty, ha = (i, t, e, s) => {
683
+ var $r = Object.defineProperty, la = (i, t, e, s) => {
684
684
  for (var n = void 0, a = i.length - 1, r; a >= 0; a--)
685
685
  (r = i[a]) && (n = r(t, e, n) || n);
686
686
  return n && $r(t, e, n), n;
@@ -696,10 +696,10 @@ let Ss = class extends fi {
696
696
  this.requestUpdate();
697
697
  }
698
698
  };
699
- ha([
699
+ la([
700
700
  o({ type: Object })
701
701
  ], Ss.prototype, "strings");
702
- ha([
702
+ la([
703
703
  o({ type: String })
704
704
  ], Ss.prototype, "role");
705
705
  let G = class extends Ss {
@@ -715,7 +715,7 @@ let G = class extends Ss {
715
715
  * Copyright 2017 Google LLC
716
716
  * SPDX-License-Identifier: BSD-3-Clause
717
717
  */
718
- const ie = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, ii = (i) => (...t) => ({ _$litDirective$: i, values: t });
718
+ const se = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, ii = (i) => (...t) => ({ _$litDirective$: i, values: t });
719
719
  let Si = class {
720
720
  constructor(t) {
721
721
  }
@@ -740,7 +740,7 @@ let Si = class {
740
740
  const N = ii(class extends Si {
741
741
  constructor(i) {
742
742
  var t;
743
- if (super(i), i.type !== ie.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
743
+ if (super(i), i.type !== se.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
744
744
  }
745
745
  render(i) {
746
746
  return " " + Object.keys(i).filter(((t) => i[t])).join(" ") + " ";
@@ -769,7 +769,7 @@ const N = ii(class extends Si {
769
769
  function R(i) {
770
770
  return o({ ...i, state: !0, attribute: !1 });
771
771
  }
772
- function ca(i, t) {
772
+ function ha(i, t) {
773
773
  return t.some((e) => e.value === i);
774
774
  }
775
775
  function Ri(i) {
@@ -779,7 +779,7 @@ function gi(i) {
779
779
  return i.nodeName === "OPTION" || i.nodeName === "DATA";
780
780
  }
781
781
  function _r(i, t) {
782
- return i.nodeType === Node.ELEMENT_NODE && !ca(i, t);
782
+ return i.nodeType === Node.ELEMENT_NODE && !ha(i, t);
783
783
  }
784
784
  function Ds(i) {
785
785
  var t;
@@ -801,7 +801,7 @@ let rt = class {
801
801
  // ********* UPDATE NODES *********
802
802
  updateNodes() {
803
803
  this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
804
- Ri(t) || gi(t) && this.skipOptions || (!ca(t, this.slots) || Ds(t)) && this.nodes.push(t);
804
+ Ri(t) || gi(t) && this.skipOptions || (!ha(t, this.slots) || Ds(t)) && this.nodes.push(t);
805
805
  });
806
806
  }
807
807
  // ********* UPDATE SLOTS *********
@@ -863,11 +863,11 @@ let rt = class {
863
863
  * Copyright 2020 Google LLC
864
864
  * SPDX-License-Identifier: BSD-3-Clause
865
865
  */
866
- const { I: wr } = ir, ua = (i) => i.strings === void 0, Tn = () => document.createComment(""), Ii = (i, t, e) => {
866
+ const { I: wr } = ir, ca = (i) => i.strings === void 0, Cn = () => document.createComment(""), Ii = (i, t, e) => {
867
867
  var s;
868
868
  const n = i._$AA.parentNode, a = t === void 0 ? i._$AB : t._$AA;
869
869
  if (e === void 0) {
870
- const r = n.insertBefore(Tn(), a), l = n.insertBefore(Tn(), a);
870
+ const r = n.insertBefore(Cn(), a), l = n.insertBefore(Cn(), a);
871
871
  e = new wr(r, l, i, i.options);
872
872
  } else {
873
873
  const r = e._$AB.nextSibling, l = e._$AM, u = l !== i;
@@ -878,13 +878,13 @@ const { I: wr } = ir, ua = (i) => i.strings === void 0, Tn = () => document.crea
878
878
  if (r !== a || u) {
879
879
  let p = e._$AA;
880
880
  for (; p !== r; ) {
881
- const v = p.nextSibling;
882
- n.insertBefore(p, a), p = v;
881
+ const g = p.nextSibling;
882
+ n.insertBefore(p, a), p = g;
883
883
  }
884
884
  }
885
885
  }
886
886
  return e;
887
- }, ze = (i, t, e = i) => (i._$AI(t, e), i), xr = {}, da = (i, t = xr) => i._$AH = t, Sr = (i) => i._$AH, Rs = (i) => {
887
+ }, ze = (i, t, e = i) => (i._$AI(t, e), i), xr = {}, ua = (i, t = xr) => i._$AH = t, Sr = (i) => i._$AH, Rs = (i) => {
888
888
  i._$AR(), i._$AA.remove();
889
889
  };
890
890
  /**
@@ -904,7 +904,7 @@ const Ki = (i, t) => {
904
904
  if ((t = i._$AM) === void 0) break;
905
905
  e = t._$AN, e.delete(i), i = t;
906
906
  } while ((e == null ? void 0 : e.size) === 0);
907
- }, pa = (i) => {
907
+ }, da = (i) => {
908
908
  for (let t; t = i._$AM; i = t) {
909
909
  let e = t._$AN;
910
910
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
@@ -913,7 +913,7 @@ const Ki = (i, t) => {
913
913
  }
914
914
  };
915
915
  function Cr(i) {
916
- this._$AN !== void 0 ? (vs(this), this._$AM = i, pa(this)) : this._$AM = i;
916
+ this._$AN !== void 0 ? (vs(this), this._$AM = i, da(this)) : this._$AM = i;
917
917
  }
918
918
  function Tr(i, t = !1, e = 0) {
919
919
  const s = this._$AH, n = this._$AN;
@@ -922,21 +922,21 @@ function Tr(i, t = !1, e = 0) {
922
922
  else Ki(this, i);
923
923
  }
924
924
  const Nr = (i) => {
925
- i.type == ie.CHILD && (i._$AP ?? (i._$AP = Tr), i._$AQ ?? (i._$AQ = Cr));
925
+ i.type == se.CHILD && (i._$AP ?? (i._$AP = Tr), i._$AQ ?? (i._$AQ = Cr));
926
926
  };
927
927
  let Ar = class extends Si {
928
928
  constructor() {
929
929
  super(...arguments), this._$AN = void 0;
930
930
  }
931
931
  _$AT(t, e, s) {
932
- super._$AT(t, e, s), pa(this), this.isConnected = t._$AU;
932
+ super._$AT(t, e, s), da(this), this.isConnected = t._$AU;
933
933
  }
934
934
  _$AO(t, e = !0) {
935
935
  var s, n;
936
936
  t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (n = this.disconnected) == null || n.call(this)), e && (Ki(this, t), vs(this));
937
937
  }
938
938
  setValue(t) {
939
- if (ua(this._$Ct)) this._$Ct._$AI(t, this);
939
+ if (ca(this._$Ct)) this._$Ct._$AI(t, this);
940
940
  else {
941
941
  const e = [...this._$Ct._$AH];
942
942
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -982,7 +982,7 @@ const Is = /* @__PURE__ */ new WeakMap(), M = ii(class extends Ar {
982
982
  this.rt(this.ct);
983
983
  }
984
984
  });
985
- function ma(i, t, e) {
985
+ function pa(i, t, e) {
986
986
  const s = i.getAttribute("class") || "", n = new Set(s.split(/\s+/).filter(Boolean));
987
987
  e ? n.add(t) : n.delete(t), i.setAttribute("class", Array.from(n).join(" "));
988
988
  }
@@ -993,7 +993,7 @@ function ma(i, t, e) {
993
993
  */
994
994
  let ks = class extends Si {
995
995
  constructor(t) {
996
- if (super(t), this.it = b, t.type !== ie.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
996
+ if (super(t), this.it = b, t.type !== se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
997
997
  }
998
998
  render(t) {
999
999
  if (t === b || t == null) return this._t = void 0, this.it = t;
@@ -1015,13 +1015,13 @@ const us = ii(ks);
1015
1015
  let Ks = class extends ks {
1016
1016
  };
1017
1017
  Ks.directiveName = "unsafeSVG", Ks.resultType = 2;
1018
- const Nn = ii(Ks);
1018
+ const Tn = ii(Ks);
1019
1019
  var Mr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, is = (i, t, e, s) => {
1020
1020
  for (var n = s > 1 ? void 0 : s ? Er(t, e) : t, a = i.length - 1, r; a >= 0; a--)
1021
1021
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
1022
1022
  return s && n && Mr(t, e, n), n;
1023
1023
  };
1024
- const Ys = "https://punkt-cdn.oslo.kommune.no/14.4/icons/";
1024
+ const Ys = "https://punkt-cdn.oslo.kommune.no/14.5/icons/";
1025
1025
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ys);
1026
1026
  const Pr = (i) => new Promise((t) => setTimeout(t, i)), ds = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', Ls = {}, Dr = async (i, t) => {
1027
1027
  let e = 0;
@@ -1034,7 +1034,7 @@ const Pr = (i) => new Promise((t) => setTimeout(t, i)), ds = '<svg xmlns="http:/
1034
1034
  };
1035
1035
  let Xe = class extends G {
1036
1036
  constructor() {
1037
- super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ys, this.name = "", this.icon = Nn(ds), this._updatedProps = [];
1037
+ super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ys, this.name = "", this.icon = Tn(ds), this._updatedProps = [];
1038
1038
  }
1039
1039
  connectedCallback() {
1040
1040
  super.connectedCallback(), this.classList.add("pkt-icon");
@@ -1046,7 +1046,7 @@ let Xe = class extends G {
1046
1046
  super.updated(t), (t.has("name") || t.has("path")) && this.getIcon(this.name);
1047
1047
  }
1048
1048
  async getIcon(t = "") {
1049
- this._updatedProps.length > 0 ? (this.path || (this.path = typeof window < "u" ? window.pktIconPath : Ys), this.icon = Nn(
1049
+ this._updatedProps.length > 0 ? (this.path || (this.path = typeof window < "u" ? window.pktIconPath : Ys), this.icon = Tn(
1050
1050
  await Dr(this.name || "", this.path).then((e) => e)
1051
1051
  ), this._updatedProps = []) : this._updatedProps.includes(t) || this._updatedProps.push(t);
1052
1052
  }
@@ -1080,7 +1080,7 @@ var Rr = Object.defineProperty, Ir = Object.getOwnPropertyDescriptor, vt = (i, t
1080
1080
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
1081
1081
  return s && n && Rr(t, e, n), n;
1082
1082
  };
1083
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.4/animations/";
1083
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.5/animations/";
1084
1084
  let dt = class extends G {
1085
1085
  constructor() {
1086
1086
  super(), this.defaultSlot = O(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
@@ -1212,7 +1212,7 @@ var Br = Object.defineProperty, Fr = Object.getOwnPropertyDescriptor, fe = (i, t
1212
1212
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
1213
1213
  return s && n && Br(t, e, n), n;
1214
1214
  };
1215
- let se = class extends G {
1215
+ let ne = class extends G {
1216
1216
  constructor() {
1217
1217
  super(), this.defaultSlot = O(), this.compact = os.props.compact.default, this.title = "", this.skin = os.props.skin.default, this.ariaLive = os.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = os.props.closeAlert.default, this.date = null, this.role = "status", this._isClosed = !1, this.close = (t) => {
1218
1218
  this._isClosed = !0, this.dispatchEvent(
@@ -1230,7 +1230,7 @@ let se = class extends G {
1230
1230
  t === "ariaLive" && (this["aria-live"] = s), super.attributeChangedCallback(t, e, s);
1231
1231
  }
1232
1232
  updated(t) {
1233
- super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive), t.has("_isClosed") && ma(this, "pkt-hide", this._isClosed);
1233
+ super.updated(t), t.has("ariaLive") && (this["aria-live"] = this.ariaLive), t.has("_isClosed") && pa(this, "pkt-hide", this._isClosed);
1234
1234
  }
1235
1235
  // Render
1236
1236
  render() {
@@ -1281,34 +1281,34 @@ let se = class extends G {
1281
1281
  };
1282
1282
  fe([
1283
1283
  o({ type: Boolean, reflect: !1 })
1284
- ], se.prototype, "compact", 2);
1284
+ ], ne.prototype, "compact", 2);
1285
1285
  fe([
1286
1286
  o({ type: String, reflect: !0 })
1287
- ], se.prototype, "title", 2);
1287
+ ], ne.prototype, "title", 2);
1288
1288
  fe([
1289
1289
  o({ type: String, reflect: !0 })
1290
- ], se.prototype, "skin", 2);
1290
+ ], ne.prototype, "skin", 2);
1291
1291
  fe([
1292
1292
  o({ type: String })
1293
- ], se.prototype, "ariaLive", 2);
1293
+ ], ne.prototype, "ariaLive", 2);
1294
1294
  fe([
1295
1295
  o({ type: String, reflect: !0 })
1296
- ], se.prototype, "aria-live", 2);
1296
+ ], ne.prototype, "aria-live", 2);
1297
1297
  fe([
1298
1298
  o({ type: Boolean, reflect: !0 })
1299
- ], se.prototype, "closeAlert", 2);
1299
+ ], ne.prototype, "closeAlert", 2);
1300
1300
  fe([
1301
1301
  o({ type: String, reflect: !0 })
1302
- ], se.prototype, "date", 2);
1302
+ ], ne.prototype, "date", 2);
1303
1303
  fe([
1304
1304
  o({ type: String, reflect: !0 })
1305
- ], se.prototype, "role", 2);
1305
+ ], ne.prototype, "role", 2);
1306
1306
  fe([
1307
1307
  R()
1308
- ], se.prototype, "_isClosed", 2);
1309
- se = fe([
1308
+ ], ne.prototype, "_isClosed", 2);
1309
+ ne = fe([
1310
1310
  F("pkt-alert")
1311
- ], se);
1311
+ ], ne);
1312
1312
  var jr = Object.defineProperty, Vr = Object.getOwnPropertyDescriptor, ss = (i, t, e, s) => {
1313
1313
  for (var n = s > 1 ? void 0 : s ? Vr(t, e) : t, a = i.length - 1, r; a >= 0; a--)
1314
1314
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
@@ -1477,14 +1477,14 @@ Cs([
1477
1477
  $i = Cs([
1478
1478
  F("pkt-backlink")
1479
1479
  ], $i);
1480
- const fa = 6048e5, Wr = 864e5, An = Symbol.for("constructDateFrom");
1480
+ const ma = 6048e5, Wr = 864e5, Nn = Symbol.for("constructDateFrom");
1481
1481
  function pe(i, t) {
1482
- return typeof i == "function" ? i(t) : i && typeof i == "object" && An in i ? i[An](t) : i instanceof Date ? new i.constructor(t) : new Date(t);
1482
+ return typeof i == "function" ? i(t) : i && typeof i == "object" && Nn in i ? i[Nn](t) : i instanceof Date ? new i.constructor(t) : new Date(t);
1483
1483
  }
1484
1484
  function zt(i, t) {
1485
1485
  return pe(t || i, i);
1486
1486
  }
1487
- function On(i, t, e) {
1487
+ function An(i, t, e) {
1488
1488
  const s = zt(i, void 0);
1489
1489
  return isNaN(t) ? pe(i, NaN) : (t && s.setDate(s.getDate() + t), s);
1490
1490
  }
@@ -1494,13 +1494,13 @@ function Ts() {
1494
1494
  }
1495
1495
  function Xi(i, t) {
1496
1496
  var e, s, n, a;
1497
- const r = Ts(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((a = (n = r.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? 0, u = zt(i, t == null ? void 0 : t.in), p = u.getDay(), v = (p < l ? 7 : 0) + p - l;
1498
- return u.setDate(u.getDate() - v), u.setHours(0, 0, 0, 0), u;
1497
+ const r = Ts(), l = (t == null ? void 0 : t.weekStartsOn) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.weekStartsOn) ?? r.weekStartsOn ?? ((a = (n = r.locale) == null ? void 0 : n.options) == null ? void 0 : a.weekStartsOn) ?? 0, u = zt(i, t == null ? void 0 : t.in), p = u.getDay(), g = (p < l ? 7 : 0) + p - l;
1498
+ return u.setDate(u.getDate() - g), u.setHours(0, 0, 0, 0), u;
1499
1499
  }
1500
1500
  function bs(i, t) {
1501
1501
  return Xi(i, { ...t, weekStartsOn: 1 });
1502
1502
  }
1503
- function ga(i, t) {
1503
+ function fa(i, t) {
1504
1504
  const e = zt(i, void 0), s = e.getFullYear(), n = pe(e, 0);
1505
1505
  n.setFullYear(s + 1, 0, 4), n.setHours(0, 0, 0, 0);
1506
1506
  const a = bs(n), r = pe(e, 0);
@@ -1508,7 +1508,7 @@ function ga(i, t) {
1508
1508
  const l = bs(r);
1509
1509
  return e.getTime() >= a.getTime() ? s + 1 : e.getTime() >= l.getTime() ? s : s - 1;
1510
1510
  }
1511
- function Mn(i) {
1511
+ function On(i) {
1512
1512
  const t = zt(i), e = new Date(
1513
1513
  Date.UTC(
1514
1514
  t.getFullYear(),
@@ -1522,27 +1522,27 @@ function Mn(i) {
1522
1522
  );
1523
1523
  return e.setUTCFullYear(t.getFullYear()), +i - +e;
1524
1524
  }
1525
- function va(i, ...t) {
1525
+ function ga(i, ...t) {
1526
1526
  const e = pe.bind(
1527
1527
  null,
1528
1528
  t.find((s) => typeof s == "object")
1529
1529
  );
1530
1530
  return t.map(e);
1531
1531
  }
1532
- function En(i, t) {
1532
+ function Mn(i, t) {
1533
1533
  const e = zt(i, void 0);
1534
1534
  return e.setHours(0, 0, 0, 0), e;
1535
1535
  }
1536
1536
  function Yr(i, t, e) {
1537
- const [s, n] = va(
1537
+ const [s, n] = ga(
1538
1538
  void 0,
1539
1539
  i,
1540
1540
  t
1541
- ), a = En(s), r = En(n), l = +a - Mn(a), u = +r - Mn(r);
1541
+ ), a = Mn(s), r = Mn(n), l = +a - On(a), u = +r - On(r);
1542
1542
  return Math.round((l - u) / Wr);
1543
1543
  }
1544
1544
  function Gr(i, t) {
1545
- const e = ga(i), s = pe(i, 0);
1545
+ const e = fa(i), s = pe(i, 0);
1546
1546
  return s.setFullYear(e, 0, 4), s.setHours(0, 0, 0, 0), bs(s);
1547
1547
  }
1548
1548
  function Zr(i) {
@@ -1552,10 +1552,10 @@ function Xr(i) {
1552
1552
  return !(!Zr(i) && typeof i != "number" || isNaN(+zt(i)));
1553
1553
  }
1554
1554
  function Jr(i, t) {
1555
- const [e, s] = va(i, t.start, t.end);
1555
+ const [e, s] = ga(i, t.start, t.end);
1556
1556
  return { start: e, end: s };
1557
1557
  }
1558
- function ka(i, t) {
1558
+ function va(i, t) {
1559
1559
  const { start: e, end: s } = Jr(void 0, i);
1560
1560
  let n = +e > +s;
1561
1561
  const a = n ? +e : +s, r = n ? s : e;
@@ -1850,17 +1850,17 @@ function Bi(i) {
1850
1850
  const s = e.width, n = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], a = t.match(n);
1851
1851
  if (!a)
1852
1852
  return null;
1853
- const r = a[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], u = Array.isArray(l) ? ko(l, (g) => g.test(r)) : (
1853
+ const r = a[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], u = Array.isArray(l) ? ko(l, (v) => v.test(r)) : (
1854
1854
  // [TODO] -- I challenge you to fix the type
1855
- vo(l, (g) => g.test(r))
1855
+ vo(l, (v) => v.test(r))
1856
1856
  );
1857
1857
  let p;
1858
1858
  p = i.valueCallback ? i.valueCallback(u) : u, p = e.valueCallback ? (
1859
1859
  // [TODO] -- I challenge you to fix the type
1860
1860
  e.valueCallback(p)
1861
1861
  ) : p;
1862
- const v = t.slice(r.length);
1863
- return { value: p, rest: v };
1862
+ const g = t.slice(r.length);
1863
+ return { value: p, rest: g };
1864
1864
  };
1865
1865
  }
1866
1866
  function vo(i, t) {
@@ -2007,25 +2007,25 @@ function Do(i, t) {
2007
2007
  }
2008
2008
  function Ro(i, t) {
2009
2009
  const e = zt(i, void 0), s = +bs(e) - +Gr(e);
2010
- return Math.round(s / fa) + 1;
2010
+ return Math.round(s / ma) + 1;
2011
2011
  }
2012
- function ba(i, t) {
2012
+ function ka(i, t) {
2013
2013
  var e, s, n, a;
2014
- const r = zt(i, t == null ? void 0 : t.in), l = r.getFullYear(), u = Ts(), p = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? u.firstWeekContainsDate ?? ((a = (n = u.locale) == null ? void 0 : n.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, v = pe((t == null ? void 0 : t.in) || i, 0);
2015
- v.setFullYear(l + 1, 0, p), v.setHours(0, 0, 0, 0);
2016
- const g = Xi(v, t), y = pe((t == null ? void 0 : t.in) || i, 0);
2014
+ const r = zt(i, t == null ? void 0 : t.in), l = r.getFullYear(), u = Ts(), p = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? u.firstWeekContainsDate ?? ((a = (n = u.locale) == null ? void 0 : n.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, g = pe((t == null ? void 0 : t.in) || i, 0);
2015
+ g.setFullYear(l + 1, 0, p), g.setHours(0, 0, 0, 0);
2016
+ const v = Xi(g, t), y = pe((t == null ? void 0 : t.in) || i, 0);
2017
2017
  y.setFullYear(l, 0, p), y.setHours(0, 0, 0, 0);
2018
2018
  const $ = Xi(y, t);
2019
- return +r >= +g ? l + 1 : +r >= +$ ? l : l - 1;
2019
+ return +r >= +v ? l + 1 : +r >= +$ ? l : l - 1;
2020
2020
  }
2021
2021
  function Io(i, t) {
2022
2022
  var e, s, n, a;
2023
- const r = Ts(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((a = (n = r.locale) == null ? void 0 : n.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, u = ba(i, t), p = pe((t == null ? void 0 : t.in) || i, 0);
2023
+ const r = Ts(), l = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((a = (n = r.locale) == null ? void 0 : n.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, u = ka(i, t), p = pe((t == null ? void 0 : t.in) || i, 0);
2024
2024
  return p.setFullYear(u, 0, l), p.setHours(0, 0, 0, 0), Xi(p, t);
2025
2025
  }
2026
- function ya(i, t) {
2026
+ function ba(i, t) {
2027
2027
  const e = zt(i, t == null ? void 0 : t.in), s = +Xi(e, t) - +Io(e, t);
2028
- return Math.round(s / fa) + 1;
2028
+ return Math.round(s / ma) + 1;
2029
2029
  }
2030
2030
  function W(i, t) {
2031
2031
  const e = i < 0 ? "-" : "", s = Math.abs(i).toString().padStart(t, "0");
@@ -2092,7 +2092,7 @@ const Oe = {
2092
2092
  afternoon: "afternoon",
2093
2093
  evening: "evening",
2094
2094
  night: "night"
2095
- }, Pn = {
2095
+ }, En = {
2096
2096
  // Era
2097
2097
  G: function(i, t, e) {
2098
2098
  const s = i.getFullYear() > 0 ? 1 : 0;
@@ -2121,7 +2121,7 @@ const Oe = {
2121
2121
  },
2122
2122
  // Local week-numbering year
2123
2123
  Y: function(i, t, e, s) {
2124
- const n = ba(i, s), a = n > 0 ? n : 1 - n;
2124
+ const n = ka(i, s), a = n > 0 ? n : 1 - n;
2125
2125
  if (t === "YY") {
2126
2126
  const r = a % 100;
2127
2127
  return W(r, 2);
@@ -2130,7 +2130,7 @@ const Oe = {
2130
2130
  },
2131
2131
  // ISO week-numbering year
2132
2132
  R: function(i, t) {
2133
- const e = ga(i);
2133
+ const e = fa(i);
2134
2134
  return W(e, t.length);
2135
2135
  },
2136
2136
  // Extended year. This is a single number designating the year of this calendar system.
@@ -2275,7 +2275,7 @@ const Oe = {
2275
2275
  },
2276
2276
  // Local week of year
2277
2277
  w: function(i, t, e, s) {
2278
- const n = ya(i, s);
2278
+ const n = ba(i, s);
2279
2279
  return t === "wo" ? e.ordinalNumber(n, { unit: "week" }) : W(n, t.length);
2280
2280
  },
2281
2281
  // ISO week of year
@@ -2567,7 +2567,7 @@ const Oe = {
2567
2567
  switch (t) {
2568
2568
  // Hours and optional minutes
2569
2569
  case "X":
2570
- return Rn(s);
2570
+ return Dn(s);
2571
2571
  // Hours, minutes and optional seconds without `:` delimiter
2572
2572
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2573
2573
  // so this token always has the same output as `XX`
@@ -2590,7 +2590,7 @@ const Oe = {
2590
2590
  switch (t) {
2591
2591
  // Hours and optional minutes
2592
2592
  case "x":
2593
- return Rn(s);
2593
+ return Dn(s);
2594
2594
  // Hours, minutes and optional seconds without `:` delimiter
2595
2595
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2596
2596
  // so this token always has the same output as `xx`
@@ -2615,7 +2615,7 @@ const Oe = {
2615
2615
  case "O":
2616
2616
  case "OO":
2617
2617
  case "OOO":
2618
- return "GMT" + Dn(s, ":");
2618
+ return "GMT" + Pn(s, ":");
2619
2619
  // Long
2620
2620
  case "OOOO":
2621
2621
  default:
@@ -2630,7 +2630,7 @@ const Oe = {
2630
2630
  case "z":
2631
2631
  case "zz":
2632
2632
  case "zzz":
2633
- return "GMT" + Dn(s, ":");
2633
+ return "GMT" + Pn(s, ":");
2634
2634
  // Long
2635
2635
  case "zzzz":
2636
2636
  default:
@@ -2647,18 +2647,18 @@ const Oe = {
2647
2647
  return W(+i, t.length);
2648
2648
  }
2649
2649
  };
2650
- function Dn(i, t = "") {
2650
+ function Pn(i, t = "") {
2651
2651
  const e = i > 0 ? "-" : "+", s = Math.abs(i), n = Math.trunc(s / 60), a = s % 60;
2652
2652
  return a === 0 ? e + String(n) : e + String(n) + t + W(a, 2);
2653
2653
  }
2654
- function Rn(i, t) {
2654
+ function Dn(i, t) {
2655
2655
  return i % 60 === 0 ? (i > 0 ? "-" : "+") + W(Math.abs(i) / 60, 2) : We(i, t);
2656
2656
  }
2657
2657
  function We(i, t = "") {
2658
2658
  const e = i > 0 ? "-" : "+", s = Math.abs(i), n = W(Math.trunc(s / 60), 2), a = W(s % 60, 2);
2659
2659
  return e + n + t + a;
2660
2660
  }
2661
- const In = (i, t) => {
2661
+ const Rn = (i, t) => {
2662
2662
  switch (i) {
2663
2663
  case "P":
2664
2664
  return t.date({ width: "short" });
@@ -2670,7 +2670,7 @@ const In = (i, t) => {
2670
2670
  default:
2671
2671
  return t.date({ width: "full" });
2672
2672
  }
2673
- }, $a = (i, t) => {
2673
+ }, ya = (i, t) => {
2674
2674
  switch (i) {
2675
2675
  case "p":
2676
2676
  return t.time({ width: "short" });
@@ -2685,7 +2685,7 @@ const In = (i, t) => {
2685
2685
  }, Lo = (i, t) => {
2686
2686
  const e = i.match(/(P+)(p+)?/) || [], s = e[1], n = e[2];
2687
2687
  if (!n)
2688
- return In(i, t);
2688
+ return Rn(i, t);
2689
2689
  let a;
2690
2690
  switch (s) {
2691
2691
  case "P":
@@ -2702,9 +2702,9 @@ const In = (i, t) => {
2702
2702
  a = t.dateTime({ width: "full" });
2703
2703
  break;
2704
2704
  }
2705
- return a.replace("{{date}}", In(s, t)).replace("{{time}}", $a(n, t));
2705
+ return a.replace("{{date}}", Rn(s, t)).replace("{{time}}", ya(n, t));
2706
2706
  }, Bo = {
2707
- p: $a,
2707
+ p: ya,
2708
2708
  P: Lo
2709
2709
  }, Fo = /^D+$/, jo = /^Y+$/, Vo = ["D", "DD", "YY", "YYYY"];
2710
2710
  function Ho(i) {
@@ -2724,8 +2724,8 @@ function qo(i, t, e) {
2724
2724
  const Wo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ko = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Yo = /^'([^]*?)'?$/, Go = /''/g, Zo = /[a-zA-Z]/;
2725
2725
  function Xo(i, t, e) {
2726
2726
  var s, n, a, r;
2727
- const l = Ts(), u = l.locale ?? Po, p = l.firstWeekContainsDate ?? ((n = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, v = l.weekStartsOn ?? ((r = (a = l.locale) == null ? void 0 : a.options) == null ? void 0 : r.weekStartsOn) ?? 0, g = zt(i, void 0);
2728
- if (!Xr(g))
2727
+ const l = Ts(), u = l.locale ?? Po, p = l.firstWeekContainsDate ?? ((n = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, g = l.weekStartsOn ?? ((r = (a = l.locale) == null ? void 0 : a.options) == null ? void 0 : r.weekStartsOn) ?? 0, v = zt(i, void 0);
2728
+ if (!Xr(v))
2729
2729
  throw new RangeError("Invalid time value");
2730
2730
  let y = t.match(Ko).map((k) => {
2731
2731
  const w = k[0];
@@ -2740,7 +2740,7 @@ function Xo(i, t, e) {
2740
2740
  const w = k[0];
2741
2741
  if (w === "'")
2742
2742
  return { isToken: !1, value: Jo(k) };
2743
- if (Pn[w])
2743
+ if (En[w])
2744
2744
  return { isToken: !0, value: k };
2745
2745
  if (w.match(Zo))
2746
2746
  throw new RangeError(
@@ -2748,18 +2748,18 @@ function Xo(i, t, e) {
2748
2748
  );
2749
2749
  return { isToken: !1, value: k };
2750
2750
  });
2751
- u.localize.preprocessor && (y = u.localize.preprocessor(g, y));
2751
+ u.localize.preprocessor && (y = u.localize.preprocessor(v, y));
2752
2752
  const $ = {
2753
2753
  firstWeekContainsDate: p,
2754
- weekStartsOn: v,
2754
+ weekStartsOn: g,
2755
2755
  locale: u
2756
2756
  };
2757
2757
  return y.map((k) => {
2758
2758
  if (!k.isToken) return k.value;
2759
2759
  const w = k.value;
2760
2760
  (Uo(w) || Ho(w)) && zo(w, t, String(i));
2761
- const T = Pn[w[0]];
2762
- return T(g, w, u.localize, $);
2761
+ const T = En[w[0]];
2762
+ return T(v, w, u.localize, $);
2763
2763
  }).join("");
2764
2764
  }
2765
2765
  function Jo(i) {
@@ -2778,29 +2778,29 @@ function tl(i, t, e = "long") {
2778
2778
  timeZoneName: e
2779
2779
  }).format(t).split(/\s/g).slice(2).join(" ");
2780
2780
  }
2781
- const Ln = {}, Vi = {};
2781
+ const In = {}, Vi = {};
2782
2782
  function Ye(i, t) {
2783
2783
  try {
2784
- const e = (Ln[i] || (Ln[i] = new Intl.DateTimeFormat("en-US", {
2784
+ const e = (In[i] || (In[i] = new Intl.DateTimeFormat("en-US", {
2785
2785
  timeZone: i,
2786
2786
  timeZoneName: "longOffset"
2787
2787
  }).format))(t).split("GMT")[1];
2788
- return e in Vi ? Vi[e] : Bn(e, e.split(":"));
2788
+ return e in Vi ? Vi[e] : Ln(e, e.split(":"));
2789
2789
  } catch {
2790
2790
  if (i in Vi) return Vi[i];
2791
2791
  const e = i == null ? void 0 : i.match(el);
2792
- return e ? Bn(i, e.slice(1)) : NaN;
2792
+ return e ? Ln(i, e.slice(1)) : NaN;
2793
2793
  }
2794
2794
  }
2795
2795
  const el = /([+-]\d\d):?(\d\d)?/;
2796
- function Bn(i, t) {
2796
+ function Ln(i, t) {
2797
2797
  const e = +(t[0] || 0), s = +(t[1] || 0), n = +(t[2] || 0) / 60;
2798
2798
  return Vi[i] = e * 60 + s > 0 ? e * 60 + s + n : e * 60 - s - n;
2799
2799
  }
2800
2800
  let Hi = class Ui extends Date {
2801
2801
  //#region static
2802
2802
  constructor(...t) {
2803
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Ye(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), _a(this), Gs(this)) : this.setTime(Date.now());
2803
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Ye(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), $a(this), Gs(this)) : this.setTime(Date.now());
2804
2804
  }
2805
2805
  static tz(t, ...e) {
2806
2806
  return e.length ? new Ui(...e, t) : new Ui(Date.now(), t);
@@ -2826,10 +2826,10 @@ let Hi = class Ui extends Date {
2826
2826
  }
2827
2827
  //#endregion
2828
2828
  };
2829
- const Fn = /^(get|set)(?!UTC)/;
2829
+ const Bn = /^(get|set)(?!UTC)/;
2830
2830
  Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
2831
- if (!Fn.test(i)) return;
2832
- const t = i.replace(Fn, "$1UTC");
2831
+ if (!Bn.test(i)) return;
2832
+ const t = i.replace(Bn, "$1UTC");
2833
2833
  Hi.prototype[t] && (i.startsWith("get") ? Hi.prototype[i] = function() {
2834
2834
  return this.internal[t]();
2835
2835
  } : (Hi.prototype[i] = function() {
@@ -2842,9 +2842,9 @@ function Gs(i) {
2842
2842
  i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Ye(i.timeZone, i) * 60));
2843
2843
  }
2844
2844
  function il(i) {
2845
- Date.prototype.setFullYear.call(i, i.internal.getUTCFullYear(), i.internal.getUTCMonth(), i.internal.getUTCDate()), Date.prototype.setHours.call(i, i.internal.getUTCHours(), i.internal.getUTCMinutes(), i.internal.getUTCSeconds(), i.internal.getUTCMilliseconds()), _a(i);
2845
+ Date.prototype.setFullYear.call(i, i.internal.getUTCFullYear(), i.internal.getUTCMonth(), i.internal.getUTCDate()), Date.prototype.setHours.call(i, i.internal.getUTCHours(), i.internal.getUTCMinutes(), i.internal.getUTCSeconds(), i.internal.getUTCMilliseconds()), $a(i);
2846
2846
  }
2847
- function _a(i) {
2847
+ function $a(i) {
2848
2848
  const t = Ye(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
2849
2849
  s.setUTCHours(s.getUTCHours() - 1);
2850
2850
  const n = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), a = -(/* @__PURE__ */ new Date(+s)).getTimezoneOffset(), r = n - a, l = Date.prototype.getHours.apply(i) !== i.internal.getUTCHours();
@@ -2853,8 +2853,8 @@ function _a(i) {
2853
2853
  u && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + u);
2854
2854
  const p = /* @__PURE__ */ new Date(+i);
2855
2855
  p.setUTCSeconds(0);
2856
- const v = n > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, g = Math.round(-(Ye(i.timeZone, i) * 60)) % 60;
2857
- (g || v) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + g), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + g + v));
2856
+ const g = n > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, v = Math.round(-(Ye(i.timeZone, i) * 60)) % 60;
2857
+ (v || g) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + v), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + v + g));
2858
2858
  const y = Ye(i.timeZone, i), $ = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - $, w = $ !== e, T = k - u;
2859
2859
  if (w && T) {
2860
2860
  Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + T);
@@ -2944,7 +2944,7 @@ const gt = (i) => {
2944
2944
  return null;
2945
2945
  const t = Re(i);
2946
2946
  return isNaN(t.getTime()) ? null : t;
2947
- }, jn = (i, t) => {
2947
+ }, Fn = (i, t) => {
2948
2948
  const e = xe(i);
2949
2949
  return isNaN(e.getTime()) ? "" : Xo(e, t);
2950
2950
  }, xe = (i = "", t) => {
@@ -2970,32 +2970,32 @@ const gt = (i) => {
2970
2970
  if (!i || isNaN(i.getTime()) || !Array.isArray(t)) return !1;
2971
2971
  const e = i.getDay().toString();
2972
2972
  return t.includes(e);
2973
- }, wa = (i, t, e, s, n) => !(!i || isNaN(i.getTime()) || !al(i, t, e) || s && rl(i, s) || n && ol(i, n)), ll = (i, t, e, s, n) => i.filter((a) => {
2973
+ }, _a = (i, t, e, s, n) => !(!i || isNaN(i.getTime()) || !al(i, t, e) || s && rl(i, s) || n && ol(i, n)), ll = (i, t, e, s, n) => i.filter((a) => {
2974
2974
  const r = Ie(a);
2975
- return r && wa(r, t, e, s, n);
2976
- }), xa = (i) => i.slice().sort((t, e) => {
2975
+ return r && _a(r, t, e, s, n);
2976
+ }), wa = (i) => i.slice().sort((t, e) => {
2977
2977
  const s = Ie(t), n = Ie(e);
2978
2978
  return !s || !n ? 0 : s.getTime() - n.getTime();
2979
2979
  }), hl = (i, t) => {
2980
2980
  const e = Ie(i), s = Ie(t);
2981
2981
  return !e || !s ? !1 : e <= s;
2982
- }, qi = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], cl = (i) => i.join(","), Sa = (i) => qi(i), ul = (i) => i ? Re(i) : null, dl = (i) => {
2982
+ }, qi = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], cl = (i) => i.join(","), xa = (i) => qi(i), ul = (i) => i ? Re(i) : null, dl = (i) => {
2983
2983
  if (typeof i == "string")
2984
2984
  return i.split(",").map((t) => Re(t));
2985
2985
  if (Array.isArray(i))
2986
2986
  return i.map((t) => Re(t));
2987
2987
  }, Ci = {
2988
- csvToArray: Sa,
2988
+ csvToArray: xa,
2989
2989
  stringToDate: ul,
2990
2990
  stringsToDate: dl
2991
2991
  }, pl = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, qe = {
2992
2992
  props: pl
2993
2993
  };
2994
- function Ca(i, t) {
2994
+ function Sa(i, t) {
2995
2995
  const e = t.excludedates.map(
2996
2996
  (s) => typeof s == "string" ? s : gt(s)
2997
2997
  );
2998
- return !wa(
2998
+ return !_a(
2999
2999
  i,
3000
3000
  t.earliest,
3001
3001
  t.latest,
@@ -3004,7 +3004,7 @@ function Ca(i, t) {
3004
3004
  );
3005
3005
  }
3006
3006
  function ml(i, t, e, s) {
3007
- return !!(Ca(i, e) || !t && s.multiple && s.maxMultiple > 0 && s.selectedCount >= s.maxMultiple);
3007
+ return !!(Sa(i, e) || !t && s.multiple && s.maxMultiple > 0 && s.selectedCount >= s.maxMultiple);
3008
3008
  }
3009
3009
  function fl(i, t, e) {
3010
3010
  const s = Ge(i, t, 0);
@@ -3020,7 +3020,7 @@ function gl(i, t, e) {
3020
3020
  }
3021
3021
  const Ji = 7, vl = 6;
3022
3022
  function kl(i, t) {
3023
- const e = Ge(i, t, 1), s = Ge(i, t + 1, 0), n = (e.getDay() + vl) % Ji, a = s.getDate(), r = Math.ceil((a + n) / Ji), l = Ge(i, t, 0).getDate(), u = ya(e);
3023
+ const e = Ge(i, t, 1), s = Ge(i, t + 1, 0), n = (e.getDay() + vl) % Ji, a = s.getDate(), r = Math.ceil((a + n) / Ji), l = Ge(i, t, 0).getDate(), u = ba(e);
3024
3024
  return {
3025
3025
  firstDayOfMonth: e,
3026
3026
  lastDayOfMonth: s,
@@ -3042,8 +3042,8 @@ function yl(i, t, e, s) {
3042
3042
  function mi(i) {
3043
3043
  return typeof i == "string" && (i = i.split(",")), i.length === 1 && i[0] === "" ? [] : i.map((t) => Re(t));
3044
3044
  }
3045
- function Vn(i, t) {
3046
- const e = ka({ start: i, end: t }), s = {};
3045
+ function jn(i, t) {
3046
+ const e = va({ start: i, end: t }), s = {};
3047
3047
  if (Array.isArray(e) && e.length)
3048
3048
  for (let n = 0; n < e.length; n++) {
3049
3049
  const a = e[n], r = a > i && a < t;
@@ -3051,9 +3051,9 @@ function Vn(i, t) {
3051
3051
  }
3052
3052
  return s;
3053
3053
  }
3054
- function Ta(i, t, e, s) {
3054
+ function Ca(i, t, e, s) {
3055
3055
  if (t.length !== 1) return !0;
3056
- const n = ka({
3056
+ const n = va({
3057
3057
  start: t[0],
3058
3058
  end: i
3059
3059
  });
@@ -3089,7 +3089,7 @@ function _l(i, t, e) {
3089
3089
  if (t.length > 1)
3090
3090
  return [s];
3091
3091
  if (t.length === 1) {
3092
- if (!Ta(i, n, e.excludedates, e.excludeweekdays))
3092
+ if (!Ca(i, n, e.excludedates, e.excludeweekdays))
3093
3093
  return [s];
3094
3094
  if (n[0] > i)
3095
3095
  return [s];
@@ -3108,11 +3108,11 @@ function xl(i) {
3108
3108
  return e === "INPUT" || e === "SELECT" || e === "BUTTON" && !((t = i.dataset) != null && t.date);
3109
3109
  }
3110
3110
  function Sl(i, t, e) {
3111
- let s = On(i, t);
3111
+ let s = An(i, t);
3112
3112
  if (!s) return null;
3113
3113
  let n = e(`button[data-date="${gt(s)}"]`);
3114
3114
  for (; n instanceof HTMLButtonElement && n.dataset.disabled; )
3115
- if (s = On(s, t), n = e(`button[data-date="${gt(s)}"]`), !n) return null;
3115
+ if (s = An(s, t), n = e(`button[data-date="${gt(s)}"]`), !n) return null;
3116
3116
  return s;
3117
3117
  }
3118
3118
  function Cl(i) {
@@ -3143,7 +3143,7 @@ let Y = class extends G {
3143
3143
  * Date and selection management
3144
3144
  */
3145
3145
  convertSelected() {
3146
- typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = mi(this.selected), this.range && this.selected.length === 2 && (this.inRange = Vn(this._selected[0], this._selected[1])), this.setCurrentMonth();
3146
+ typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = mi(this.selected), this.range && this.selected.length === 2 && (this.inRange = jn(this._selected[0], this._selected[1])), this.setCurrentMonth();
3147
3147
  }
3148
3148
  setCurrentMonth() {
3149
3149
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
@@ -3334,13 +3334,13 @@ let Y = class extends G {
3334
3334
  renderDayView(t, e) {
3335
3335
  const s = this.getDayViewData(t, e), { currentDate: n, currentDateISO: a, isSelected: r, isDisabled: l, ariaLabel: u, tabindex: p } = s;
3336
3336
  this.selectableDates.push({ currentDateISO: a, isDisabled: l, tabindex: p });
3337
- const v = this.getDayCellClasses(s), g = this.getDayButtonClasses(s);
3338
- return d`<td class=${N(v)}>
3337
+ const g = this.getDayCellClasses(s), v = this.getDayButtonClasses(s);
3338
+ return d`<td class=${N(g)}>
3339
3339
  <button
3340
3340
  type="button"
3341
3341
  aria-pressed=${r ? "true" : "false"}
3342
3342
  ?disabled=${l}
3343
- class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${N(g)}"
3343
+ class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${N(v)}"
3344
3344
  @mouseover=${() => this.range && !this.isExcluded(n) && this.handleRangeHover(n)}
3345
3345
  @focus=${() => this.handleDayFocus(n, a)}
3346
3346
  aria-label="${u}"
@@ -3396,7 +3396,7 @@ let Y = class extends G {
3396
3396
  * Date validation
3397
3397
  */
3398
3398
  isExcluded(t) {
3399
- return Ca(t, this.getDateConstraints());
3399
+ return Sa(t, this.getDateConstraints());
3400
3400
  }
3401
3401
  /**
3402
3402
  * Month navigation
@@ -3437,7 +3437,7 @@ let Y = class extends G {
3437
3437
  this.selected = $l(t, this.normalizeSelected(), this.maxMultiple), this._selected = mi(this.selected);
3438
3438
  }
3439
3439
  isRangeAllowed(t) {
3440
- return Ta(t, this._selected, this.excludedates, this.excludeweekdays);
3440
+ return Ca(t, this._selected, this.excludedates, this.excludeweekdays);
3441
3441
  }
3442
3442
  handleRangeSelect(t) {
3443
3443
  return this.selected = _l(t, this.normalizeSelected(), {
@@ -3450,7 +3450,7 @@ let Y = class extends G {
3450
3450
  this.rangeHovered = null;
3451
3451
  return;
3452
3452
  }
3453
- this.rangeHovered = t, this.inRange = Vn(this._selected[0], t);
3453
+ this.rangeHovered = t, this.inRange = jn(this._selected[0], t);
3454
3454
  }
3455
3455
  handleDateSelect(t) {
3456
3456
  return t && (this.range ? this.handleRangeSelect(t) : this.multiple ? this.toggleSelected(t) : (this.selected.includes(gt(t)) ? this.emptySelected() : (this.emptySelected(), this.addToSelected(t)), this.close()), this.dispatchEvent(
@@ -3583,7 +3583,7 @@ var Ol = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, ge = (i, t
3583
3583
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
3584
3584
  return s && n && Ol(t, e, n), n;
3585
3585
  };
3586
- let ne = class extends G {
3586
+ let ae = class extends G {
3587
3587
  constructor() {
3588
3588
  super(), this.defaultSlot = O(), this.closeTag = ls.props.closeTag.default, this.size = ls.props.size.default, this.skin = ls.props.skin.default, this.textStyle = null, this.iconName = void 0, this.type = ls.props.type.default, this.ariaLabel = null, this._isClosed = !1, this._ariaDescription = null, this.close = (t) => {
3589
3589
  this._isClosed = !0, this.dispatchEvent(
@@ -3649,34 +3649,34 @@ let ne = class extends G {
3649
3649
  };
3650
3650
  ge([
3651
3651
  o({ type: Boolean, reflect: !0 })
3652
- ], ne.prototype, "closeTag", 2);
3652
+ ], ae.prototype, "closeTag", 2);
3653
3653
  ge([
3654
3654
  o({ type: String, reflect: !0 })
3655
- ], ne.prototype, "size", 2);
3655
+ ], ae.prototype, "size", 2);
3656
3656
  ge([
3657
3657
  o({ type: String, reflect: !0 })
3658
- ], ne.prototype, "skin", 2);
3658
+ ], ae.prototype, "skin", 2);
3659
3659
  ge([
3660
3660
  o({ type: String, reflect: !0 })
3661
- ], ne.prototype, "textStyle", 2);
3661
+ ], ae.prototype, "textStyle", 2);
3662
3662
  ge([
3663
3663
  o({ type: String, reflect: !0 })
3664
- ], ne.prototype, "iconName", 2);
3664
+ ], ae.prototype, "iconName", 2);
3665
3665
  ge([
3666
3666
  o({ type: String })
3667
- ], ne.prototype, "type", 2);
3667
+ ], ae.prototype, "type", 2);
3668
3668
  ge([
3669
3669
  o({ type: String })
3670
- ], ne.prototype, "ariaLabel", 2);
3670
+ ], ae.prototype, "ariaLabel", 2);
3671
3671
  ge([
3672
3672
  R()
3673
- ], ne.prototype, "_isClosed", 2);
3673
+ ], ae.prototype, "_isClosed", 2);
3674
3674
  ge([
3675
3675
  R()
3676
- ], ne.prototype, "_ariaDescription", 2);
3677
- ne = ge([
3676
+ ], ae.prototype, "_ariaDescription", 2);
3677
+ ae = ge([
3678
3678
  F("pkt-tag")
3679
- ], ne);
3679
+ ], ae);
3680
3680
  var El = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Ti = (i, t, e, s) => {
3681
3681
  for (var n = s > 1 ? void 0 : s ? Pl(t, e) : t, a = i.length - 1, r; a >= 0; a--)
3682
3682
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
@@ -4003,13 +4003,13 @@ pt = _t([
4003
4003
  * Copyright 2017 Google LLC
4004
4004
  * SPDX-License-Identifier: BSD-3-Clause
4005
4005
  */
4006
- const Hn = (i, t, e) => {
4006
+ const Vn = (i, t, e) => {
4007
4007
  const s = /* @__PURE__ */ new Map();
4008
4008
  for (let n = t; n <= e; n++) s.set(i[n], n);
4009
4009
  return s;
4010
4010
  }, nn = ii(class extends Si {
4011
4011
  constructor(i) {
4012
- if (super(i), i.type !== ie.CHILD) throw Error("repeat() can only be used in text expressions");
4012
+ if (super(i), i.type !== se.CHILD) throw Error("repeat() can only be used in text expressions");
4013
4013
  }
4014
4014
  dt(i, t, e) {
4015
4015
  let s;
@@ -4026,34 +4026,34 @@ const Hn = (i, t, e) => {
4026
4026
  const n = Sr(i), { values: a, keys: r } = this.dt(t, e, s);
4027
4027
  if (!Array.isArray(n)) return this.ut = r, a;
4028
4028
  const l = this.ut ?? (this.ut = []), u = [];
4029
- let p, v, g = 0, y = n.length - 1, $ = 0, k = a.length - 1;
4030
- for (; g <= y && $ <= k; ) if (n[g] === null) g++;
4029
+ let p, g, v = 0, y = n.length - 1, $ = 0, k = a.length - 1;
4030
+ for (; v <= y && $ <= k; ) if (n[v] === null) v++;
4031
4031
  else if (n[y] === null) y--;
4032
- else if (l[g] === r[$]) u[$] = ze(n[g], a[$]), g++, $++;
4032
+ else if (l[v] === r[$]) u[$] = ze(n[v], a[$]), v++, $++;
4033
4033
  else if (l[y] === r[k]) u[k] = ze(n[y], a[k]), y--, k--;
4034
- else if (l[g] === r[k]) u[k] = ze(n[g], a[k]), Ii(i, u[k + 1], n[g]), g++, k--;
4035
- else if (l[y] === r[$]) u[$] = ze(n[y], a[$]), Ii(i, n[g], n[y]), y--, $++;
4036
- else if (p === void 0 && (p = Hn(r, $, k), v = Hn(l, g, y)), p.has(l[g])) if (p.has(l[y])) {
4037
- const w = v.get(r[$]), T = w !== void 0 ? n[w] : null;
4034
+ else if (l[v] === r[k]) u[k] = ze(n[v], a[k]), Ii(i, u[k + 1], n[v]), v++, k--;
4035
+ else if (l[y] === r[$]) u[$] = ze(n[y], a[$]), Ii(i, n[v], n[y]), y--, $++;
4036
+ else if (p === void 0 && (p = Vn(r, $, k), g = Vn(l, v, y)), p.has(l[v])) if (p.has(l[y])) {
4037
+ const w = g.get(r[$]), T = w !== void 0 ? n[w] : null;
4038
4038
  if (T === null) {
4039
- const E = Ii(i, n[g]);
4039
+ const E = Ii(i, n[v]);
4040
4040
  ze(E, a[$]), u[$] = E;
4041
- } else u[$] = ze(T, a[$]), Ii(i, n[g], T), n[w] = null;
4041
+ } else u[$] = ze(T, a[$]), Ii(i, n[v], T), n[w] = null;
4042
4042
  $++;
4043
4043
  } else Rs(n[y]), y--;
4044
- else Rs(n[g]), g++;
4044
+ else Rs(n[v]), v++;
4045
4045
  for (; $ <= k; ) {
4046
4046
  const w = Ii(i, u[k + 1]);
4047
4047
  ze(w, a[$]), u[$++] = w;
4048
4048
  }
4049
- for (; g <= y; ) {
4050
- const w = n[g++];
4049
+ for (; v <= y; ) {
4050
+ const w = n[v++];
4051
4051
  w !== null && Rs(w);
4052
4052
  }
4053
- return this.ut = r, da(i, u), Dt;
4053
+ return this.ut = r, ua(i, u), Dt;
4054
4054
  }
4055
- }), Un = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Ll = (i) => new Promise((t) => setTimeout(t, i)), Pe = () => {
4056
- const i = Un(), t = Un();
4055
+ }), Hn = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Ll = (i) => new Promise((t) => setTimeout(t, i)), Pe = () => {
4056
+ const i = Hn(), t = Hn();
4057
4057
  return i.slice(0, 8) + "-" + i.slice(8, 12) + "-4" + i.slice(13) + "-a" + t.slice(1, 4) + "-" + t.slice(4);
4058
4058
  }, Lt = {
4059
4059
  fromAttribute(i) {
@@ -4065,11 +4065,11 @@ const Hn = (i, t, e) => {
4065
4065
  }, Bl = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } }, Ht = {
4066
4066
  props: Bl
4067
4067
  };
4068
- var Fl = {}, zn;
4068
+ var Fl = {}, Un;
4069
4069
  function jl() {
4070
- return zn || (zn = 1, (function() {
4070
+ return Un || (Un = 1, (function() {
4071
4071
  (function(i) {
4072
- const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), T = {
4072
+ const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), T = {
4073
4073
  ariaAtomic: "aria-atomic",
4074
4074
  ariaAutoComplete: "aria-autocomplete",
4075
4075
  ariaBusy: "aria-busy",
@@ -4122,14 +4122,14 @@ function jl() {
4122
4122
  return _;
4123
4123
  },
4124
4124
  set(L) {
4125
- _ = L, f.isConnected ? ct(f, P, L) : v.set(f, h);
4125
+ _ = L, f.isConnected ? ct(f, P, L) : g.set(f, h);
4126
4126
  }
4127
4127
  });
4128
4128
  }
4129
4129
  };
4130
4130
  function x(f) {
4131
4131
  const h = n.get(f), { form: m } = h;
4132
- te(f, m, h), At(f, h.labels);
4132
+ ee(f, m, h), At(f, h.labels);
4133
4133
  }
4134
4134
  const I = (f, h = !1) => {
4135
4135
  const m = document.createTreeWalker(f, NodeFilter.SHOW_ELEMENT, {
@@ -4141,7 +4141,7 @@ function jl() {
4141
4141
  const P = !h || f.disabled;
4142
4142
  for (; _; )
4143
4143
  _.formDisabledCallback && P && Bt(_, f.disabled), _ = m.nextNode();
4144
- }, A = { attributes: !0, attributeFilter: ["disabled", "name"] }, U = ee() ? new MutationObserver((f) => {
4144
+ }, A = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = ie() ? new MutationObserver((f) => {
4145
4145
  for (const h of f) {
4146
4146
  const m = h.target;
4147
4147
  if (h.attributeName === "disabled" && (m.constructor.formAssociated ? Bt(m, m.hasAttribute("disabled")) : m.localName === "fieldset" && I(m)), h.attributeName === "name" && m.constructor.formAssociated) {
@@ -4155,11 +4155,11 @@ function jl() {
4155
4155
  const { addedNodes: m, removedNodes: _ } = h, P = Array.from(m), L = Array.from(_);
4156
4156
  P.forEach((j) => {
4157
4157
  var jt;
4158
- if (n.has(j) && j.constructor.formAssociated && x(j), v.has(j)) {
4159
- const bt = v.get(j);
4158
+ if (n.has(j) && j.constructor.formAssociated && x(j), g.has(j)) {
4159
+ const bt = g.get(j);
4160
4160
  Object.keys(T).filter((Vt) => bt[Vt] !== null).forEach((Vt) => {
4161
4161
  ct(j, T[Vt], bt[Vt]);
4162
- }), v.delete(j);
4162
+ }), g.delete(j);
4163
4163
  }
4164
4164
  if (w.has(j)) {
4165
4165
  const bt = w.get(j);
@@ -4175,7 +4175,7 @@ function jl() {
4175
4175
  for (; Pi; )
4176
4176
  x(Pi), Pi = Vt.nextNode();
4177
4177
  }
4178
- j.localName === "fieldset" && ((jt = U.observe) === null || jt === void 0 || jt.call(U, j, A), I(j, !0));
4178
+ j.localName === "fieldset" && ((jt = H.observe) === null || jt === void 0 || jt.call(H, j, A), I(j, !0));
4179
4179
  }), L.forEach((j) => {
4180
4180
  const jt = n.get(j);
4181
4181
  jt && s.get(jt) && Kt(jt), l.has(j) && l.get(j).disconnect();
@@ -4196,7 +4196,7 @@ function jl() {
4196
4196
  const _ = new MutationObserver(St);
4197
4197
  !((h = window == null ? void 0 : window.ShadyDOM) === null || h === void 0) && h.inUse && f.mode && f.host && (f = f.host), (m = _.observe) === null || m === void 0 || m.call(_, f, { childList: !0 }), $.set(f, _);
4198
4198
  };
4199
- ee() && new MutationObserver(J);
4199
+ ie() && new MutationObserver(J);
4200
4200
  const et = {
4201
4201
  childList: !0,
4202
4202
  subtree: !0
@@ -4213,7 +4213,7 @@ function jl() {
4213
4213
  return m.type = "hidden", m.name = f.getAttribute("name"), f.after(m), s.get(h).push(m), m;
4214
4214
  }, be = (f, h) => {
4215
4215
  var m;
4216
- s.set(h, []), (m = U.observe) === null || m === void 0 || m.call(U, f, A);
4216
+ s.set(h, []), (m = H.observe) === null || m === void 0 || m.call(H, f, A);
4217
4217
  }, At = (f, h) => {
4218
4218
  if (h.length) {
4219
4219
  Array.from(h).forEach((_) => _.addEventListener("click", f.click.bind(f)));
@@ -4242,7 +4242,7 @@ function jl() {
4242
4242
  h && h.size && h.forEach((m) => {
4243
4243
  m.constructor.formAssociated && m.formResetCallback && m.formResetCallback.apply(m);
4244
4244
  });
4245
- }, te = (f, h, m) => {
4245
+ }, ee = (f, h, m) => {
4246
4246
  if (h) {
4247
4247
  const _ = u.get(h);
4248
4248
  if (_)
@@ -4269,10 +4269,10 @@ function jl() {
4269
4269
  }, $e = (f) => {
4270
4270
  if (f.constructor.formAssociated) {
4271
4271
  const h = n.get(f), { labels: m, form: _ } = h;
4272
- At(f, m), te(f, _, h);
4272
+ At(f, m), ee(f, _, h);
4273
4273
  }
4274
4274
  };
4275
- function ee() {
4275
+ function ie() {
4276
4276
  return typeof MutationObserver < "u";
4277
4277
  }
4278
4278
  class Mi {
@@ -4285,8 +4285,8 @@ function jl() {
4285
4285
  for (let m in f)
4286
4286
  m !== "valid" && f[m] !== !1 && (h = !1);
4287
4287
  return h;
4288
- }, ce = /* @__PURE__ */ new WeakMap();
4289
- function ue(f, h) {
4288
+ }, ue = /* @__PURE__ */ new WeakMap();
4289
+ function de(f, h) {
4290
4290
  f.toggleAttribute(h, !0), f.part && f.part.add(h);
4291
4291
  }
4292
4292
  class Ae extends Set {
@@ -4296,14 +4296,14 @@ function jl() {
4296
4296
  constructor(h) {
4297
4297
  if (super(), !h || !h.tagName || h.tagName.indexOf("-") === -1)
4298
4298
  throw new TypeError("Illegal constructor");
4299
- ce.set(this, h);
4299
+ ue.set(this, h);
4300
4300
  }
4301
4301
  add(h) {
4302
4302
  if (!/^--/.test(h) || typeof h != "string")
4303
4303
  throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${h} must start with '--'.`);
4304
- const m = super.add(h), _ = ce.get(this), P = `state${h}`;
4305
- return _.isConnected ? ue(_, P) : setTimeout(() => {
4306
- ue(_, P);
4304
+ const m = super.add(h), _ = ue.get(this), P = `state${h}`;
4305
+ return _.isConnected ? de(_, P) : setTimeout(() => {
4306
+ de(_, P);
4307
4307
  }), m;
4308
4308
  }
4309
4309
  clear() {
@@ -4312,7 +4312,7 @@ function jl() {
4312
4312
  super.clear();
4313
4313
  }
4314
4314
  delete(h) {
4315
- const m = super.delete(h), _ = ce.get(this);
4315
+ const m = super.delete(h), _ = ue.get(this);
4316
4316
  return _.isConnected ? (_.toggleAttribute(`state${h}`, !1), _.part && _.part.remove(`state${h}`)) : setTimeout(() => {
4317
4317
  _.toggleAttribute(`state${h}`, !1), _.part && _.part.remove(`state${h}`);
4318
4318
  }), m;
@@ -4452,7 +4452,7 @@ function jl() {
4452
4452
  }
4453
4453
  get shadowRoot() {
4454
4454
  const h = t.get(this);
4455
- return g.get(h) || null;
4455
+ return v.get(h) || null;
4456
4456
  }
4457
4457
  get validationMessage() {
4458
4458
  const h = t.get(this);
@@ -4523,7 +4523,7 @@ function jl() {
4523
4523
  }), typeof Element < "u") {
4524
4524
  let h = function(..._) {
4525
4525
  const P = m.apply(this, _);
4526
- if (g.set(this, P), ee()) {
4526
+ if (v.set(this, P), ie()) {
4527
4527
  const L = new MutationObserver(J);
4528
4528
  window.ShadyDOM ? L.observe(this, et) : L.observe(P, et), l.set(this, L);
4529
4529
  }
@@ -4532,7 +4532,7 @@ function jl() {
4532
4532
  const m = Element.prototype.attachShadow;
4533
4533
  Element.prototype.attachShadow = h;
4534
4534
  }
4535
- ee() && typeof document < "u" && new MutationObserver(J).observe(document.documentElement, et), typeof HTMLFormElement < "u" && kt(), (f || typeof window < "u" && !window.CustomStateSet) && ci();
4535
+ ie() && typeof document < "u" && new MutationObserver(J).observe(document.documentElement, et), typeof HTMLFormElement < "u" && kt(), (f || typeof window < "u" && !window.CustomStateSet) && ci();
4536
4536
  }
4537
4537
  }
4538
4538
  return customElements.polyfillWrapFlushCallback || (Ms() ? typeof window < "u" && !window.CustomStateSet && ci(HTMLElement.prototype.attachInternals) : ui(!1)), i.forceCustomStateSetPolyfill = ci, i.forceElementInternalsPolyfill = ui, Object.defineProperty(i, "__esModule", { value: !0 }), i;
@@ -4545,7 +4545,7 @@ var Vl = Object.defineProperty, B = (i, t, e, s) => {
4545
4545
  (r = i[a]) && (n = r(t, e, n) || n);
4546
4546
  return n && Vl(t, e, n), n;
4547
4547
  };
4548
- const qn = "on", Fs = "--checked", hs = ",";
4548
+ const zn = "on", Fs = "--checked", hs = ",";
4549
4549
  let D = class extends G {
4550
4550
  constructor() {
4551
4551
  super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = Pe(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Ht.props.helptextDropdownButton.default, this.label = null, this.optionalText = Tt.forms.labels.optional, this.requiredText = Tt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
@@ -4561,7 +4561,7 @@ let D = class extends G {
4561
4561
  * @protected
4562
4562
  */
4563
4563
  manageValidity(t) {
4564
- var e, s, n, a, r, l, u, p, v, g, y;
4564
+ var e, s, n, a, r, l, u, p, g, v, y;
4565
4565
  if (!t) {
4566
4566
  console.warn("manageValidity called without valid input element");
4567
4567
  return;
@@ -4574,9 +4574,9 @@ let D = class extends G {
4574
4574
  { rangeUnderflow: !0 },
4575
4575
  this.min ? Tt.forms.messages.rangeUnderflowMin.replace("{min}", (u = this.min) == null ? void 0 : u.toString()) : Tt.forms.messages.rangeUnderflow,
4576
4576
  t
4577
- ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, Tt.forms.messages.invalid, t) : (v = t.validity) != null && v.rangeOverflow ? this.internals.setValidity(
4577
+ ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, Tt.forms.messages.invalid, t) : (g = t.validity) != null && g.rangeOverflow ? this.internals.setValidity(
4578
4578
  { rangeOverflow: !0 },
4579
- this.max ? Tt.forms.messages.rangeOverflowMax.replace("{max}", (g = this.max) == null ? void 0 : g.toString()) : Tt.forms.messages.rangeOverflow,
4579
+ this.max ? Tt.forms.messages.rangeOverflowMax.replace("{max}", (v = this.max) == null ? void 0 : v.toString()) : Tt.forms.messages.rangeOverflow,
4580
4580
  t
4581
4581
  ) : (y = t.validity) != null && y.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({});
4582
4582
  }
@@ -4626,7 +4626,7 @@ let D = class extends G {
4626
4626
  if (!this.touched) return;
4627
4627
  const e = this.internals.form || this.closest("form"), s = e ? new FormData(e) : null;
4628
4628
  if (this.type === "radio" && this.coordinateRadioGroup(), typeof t == "string" ? (this.checked = t === "true", this.internals.ariaChecked = String(t === "true")) : typeof t == "boolean" && (this.checked = t, this.internals.ariaChecked = String(t)), this.checked) {
4629
- const n = (typeof this.value == "string" ? this.value : "") || qn;
4629
+ const n = (typeof this.value == "string" ? this.value : "") || zn;
4630
4630
  this.internals.setFormValue(n), s && s.append(this.name, n), this.internals.states.add(Fs);
4631
4631
  } else
4632
4632
  this.internals.setFormValue(null), s && s.delete(this.name), this.internals.states.delete(Fs);
@@ -4758,7 +4758,7 @@ let D = class extends G {
4758
4758
  if (this.value && this.defaultValue !== null && (this.defaultValue = this.value), this.defaultValue !== null && !this.value && this.valueChanged(this.defaultValue, null), this.defaultChecked && (this.internals.ariaChecked = "true", this.checked = !0), this.required && (this.internals.ariaRequired = "true"), this.disabled && (this.internals.ariaDisabled = "true"), this.id && !this.name && (this.name = this.id), this.checked !== void 0) {
4759
4759
  const e = this.checked === "" || this.checked === "true" || this.checked === !0;
4760
4760
  this.internals.ariaChecked = String(e);
4761
- const s = e ? (typeof this.value == "string" ? this.value : "") || qn : null;
4761
+ const s = e ? (typeof this.value == "string" ? this.value : "") || zn : null;
4762
4762
  this.internals.setFormValue(s);
4763
4763
  } else
4764
4764
  this.setFormValue(this.value);
@@ -4897,7 +4897,7 @@ B([
4897
4897
  B([
4898
4898
  R()
4899
4899
  ], D.prototype, "touched");
4900
- let Na = class {
4900
+ let Ta = class {
4901
4901
  constructor(t) {
4902
4902
  this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
4903
4903
  }
@@ -5057,8 +5057,8 @@ let Q = class extends G {
5057
5057
  .helptext=${this.helptext}
5058
5058
  .helptextDropdown=${this.helptextDropdown}
5059
5059
  .helptextDropdownButton=${this.helptextDropdownButton || Ht.props.helptextDropdownButton.default}
5060
- @toggleHelpText=${(g) => {
5061
- this.toggleDropdown(g);
5060
+ @toggleHelpText=${(v) => {
5061
+ this.toggleDropdown(v);
5062
5062
  }}
5063
5063
  ${M(this.helptextSlot)}
5064
5064
  name="helptext"
@@ -5081,10 +5081,10 @@ let Q = class extends G {
5081
5081
  <div class="pkt-contents" ${M(this.defaultSlot)}></div>
5082
5082
  ${this.counterPosition === "bottom" ? l() : b}
5083
5083
  ${u()}
5084
- `, v = () => this.hasFieldset ? d`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
5084
+ `, g = () => this.hasFieldset ? d`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
5085
5085
  ${p()}
5086
5086
  </fieldset>` : d`<div class="pkt-inputwrapper__fieldset">${p()}</div>`;
5087
- return d`<div class=${N(t)}>${v()}</div> `;
5087
+ return d`<div class=${N(t)}>${g()}</div> `;
5088
5088
  }
5089
5089
  toggleDropdown(t) {
5090
5090
  this.dispatchEvent(
@@ -5537,7 +5537,7 @@ var Zl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ht = (i, t
5537
5537
  };
5538
5538
  let at = class extends D {
5539
5539
  constructor() {
5540
- super(), this.helptextSlot = O(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = Gl.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = O(), this.arrowRef = O(), this.listboxRef = O(), this.focusRef = O(), this.optionTagRef = O(), this.optionsController = new Na(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5540
+ super(), this.helptextSlot = O(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = Gl.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = O(), this.arrowRef = O(), this.listboxRef = O(), this.focusRef = O(), this.optionTagRef = O(), this.optionsController = new Ta(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5541
5541
  }
5542
5542
  // Lifecycle methods
5543
5543
  connectedCallback() {
@@ -5910,12 +5910,12 @@ let at = class extends D {
5910
5910
  var e, s;
5911
5911
  if (this.disabled) return;
5912
5912
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5913
- const n = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, a = this._value.includes(t || n || ""), r = !!n, l = ((s = this._options.find((T) => T.value === t)) == null ? void 0 : s.disabled) || !1, u = !(t != null && t.trim()), p = !this.multiple, v = this.multiple, g = this.isMaxItemsReached();
5913
+ const n = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, a = this._value.includes(t || n || ""), r = !!n, l = ((s = this._options.find((T) => T.value === t)) == null ? void 0 : s.disabled) || !1, u = !(t != null && t.trim()), p = !this.multiple, g = this.multiple, v = this.isMaxItemsReached();
5914
5914
  let y = !1, $ = !0, k = "", w = "";
5915
- l || (!r && this.allowUserInput && !u ? (this.addNewUserValue(t), k = "Ny verdi lagt til", y = !v) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), $ = !1, y = !0, k = "Ingen treff i søket") : a ? (this.removeValue(n), y = !0) : u && p ? (this.removeAllSelected(), y = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(n), y = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : v && !g ? (this.setSelected(n), y = !0) : v && g ? (this._userInfoMessage = "Maks antall valg nådd", $ = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", $ = !1, y = !0, w = t), this._isOptionsOpen = y, y || window.setTimeout(() => {
5915
+ l || (!r && this.allowUserInput && !u ? (this.addNewUserValue(t), k = "Ny verdi lagt til", y = !g) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), $ = !1, y = !0, k = "Ingen treff i søket") : a ? (this.removeValue(n), y = !0) : u && p ? (this.removeAllSelected(), y = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(n), y = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : g && !v ? (this.setSelected(n), y = !0) : g && v ? (this._userInfoMessage = "Maks antall valg nådd", $ = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", $ = !1, y = !0, w = t), this._isOptionsOpen = y, y || window.setTimeout(() => {
5916
5916
  var T;
5917
5917
  (T = this.focusRef.value) == null || T.focus();
5918
- }, 0), this._userInfoMessage = k, this._search = w || "", this.resetComboboxInput($), v && this.isMaxItemsReached());
5918
+ }, 0), this._userInfoMessage = k, this._search = w || "", this.resetComboboxInput($), g && this.isMaxItemsReached());
5919
5919
  }
5920
5920
  setSelected(t) {
5921
5921
  if (!this._value.includes(t)) {
@@ -6116,7 +6116,7 @@ function eh() {
6116
6116
  s.href = "https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.css", s.type = "text/css", s.rel = "stylesheet", s.id = "oslo-consent-styles", document.head.appendChild(s);
6117
6117
  }), js);
6118
6118
  }
6119
- let Jt = class extends G {
6119
+ let Qt = class extends G {
6120
6120
  constructor() {
6121
6121
  super(), this.devMode = !1, this.hotjarId = null, this.googleAnalyticsId = null, this.cookieDomain = null, this.cookieSecure = null, this.cookieExpiryDays = null, this.triggerType = "button", this.triggerText = null, this.i18nLanguage = "nb";
6122
6122
  }
@@ -6184,34 +6184,34 @@ let Jt = class extends G {
6184
6184
  };
6185
6185
  ve([
6186
6186
  o({ type: Boolean })
6187
- ], Jt.prototype, "devMode", 2);
6187
+ ], Qt.prototype, "devMode", 2);
6188
6188
  ve([
6189
6189
  o({ type: String })
6190
- ], Jt.prototype, "hotjarId", 2);
6190
+ ], Qt.prototype, "hotjarId", 2);
6191
6191
  ve([
6192
6192
  o({ type: String })
6193
- ], Jt.prototype, "googleAnalyticsId", 2);
6193
+ ], Qt.prototype, "googleAnalyticsId", 2);
6194
6194
  ve([
6195
6195
  o({ type: String })
6196
- ], Jt.prototype, "cookieDomain", 2);
6196
+ ], Qt.prototype, "cookieDomain", 2);
6197
6197
  ve([
6198
6198
  o({ type: String })
6199
- ], Jt.prototype, "cookieSecure", 2);
6199
+ ], Qt.prototype, "cookieSecure", 2);
6200
6200
  ve([
6201
6201
  o({ type: String })
6202
- ], Jt.prototype, "cookieExpiryDays", 2);
6202
+ ], Qt.prototype, "cookieExpiryDays", 2);
6203
6203
  ve([
6204
6204
  o({ type: String })
6205
- ], Jt.prototype, "triggerType", 2);
6205
+ ], Qt.prototype, "triggerType", 2);
6206
6206
  ve([
6207
6207
  o({ type: String })
6208
- ], Jt.prototype, "triggerText", 2);
6208
+ ], Qt.prototype, "triggerText", 2);
6209
6209
  ve([
6210
6210
  o({ type: String })
6211
- ], Jt.prototype, "i18nLanguage", 2);
6212
- Jt = ve([
6211
+ ], Qt.prototype, "i18nLanguage", 2);
6212
+ Qt = ve([
6213
6213
  F("pkt-consent")
6214
- ], Jt);
6214
+ ], Qt);
6215
6215
  var ih = Object.defineProperty, sh = Object.getOwnPropertyDescriptor, xt = (i, t, e, s) => {
6216
6216
  for (var n = s > 1 ? void 0 : s ? sh(t, e) : t, a = i.length - 1, r; a >= 0; a--)
6217
6217
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
@@ -6366,7 +6366,7 @@ let _i = class extends G {
6366
6366
  }, d`
6367
6367
  <div class=${N(this.classes)} aria-live="polite">
6368
6368
  ${Array.isArray(this.dates) && this.dates[0] ? nn(
6369
- xa((this.dates ?? []).filter(Boolean)),
6369
+ wa((this.dates ?? []).filter(Boolean)),
6370
6370
  (t) => t,
6371
6371
  (t) => {
6372
6372
  var e;
@@ -6376,9 +6376,9 @@ let _i = class extends G {
6376
6376
  @close=${() => {
6377
6377
  this.dispatchEvent(new CustomEvent("date-tag-removed", { detail: t }));
6378
6378
  }}
6379
- .ariaLabel=${`${(e = this.strings) == null ? void 0 : e.calendar.deleteDate} ${jn(t, this.dateformat)}`}
6379
+ .ariaLabel=${`${(e = this.strings) == null ? void 0 : e.calendar.deleteDate} ${Fn(t, this.dateformat)}`}
6380
6380
  >
6381
- <time datetime=${t}>${jn(t, this.dateformat)}</time>
6381
+ <time datetime=${t}>${Fn(t, this.dateformat)}</time>
6382
6382
  </pkt-tag>`;
6383
6383
  }
6384
6384
  ) : b}
@@ -6406,7 +6406,7 @@ const rh = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6406
6406
  }, Je = () => {
6407
6407
  const i = navigator.userAgent;
6408
6408
  return !!(/iP(hone|od|ad)/.test(i) || /Macintosh/.test(i) && "ontouchend" in document);
6409
- }, Wn = {
6409
+ }, qn = {
6410
6410
  /**
6411
6411
  * Validates that a range has valid order (start <= end)
6412
6412
  *
@@ -6432,7 +6432,7 @@ const rh = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6432
6432
  * // Returns ['2024-01-10', '2024-02-20', '2024-03-15']
6433
6433
  */
6434
6434
  sortDates(i) {
6435
- return xa(i);
6435
+ return wa(i);
6436
6436
  },
6437
6437
  /**
6438
6438
  * Filters dates to only include selectable ones based on constraints
@@ -6938,7 +6938,7 @@ var ch = Object.defineProperty, Ce = (i, t, e, s) => {
6938
6938
  (r = i[a]) && (n = r(t, e, n) || n);
6939
6939
  return n && ch(t, e, n), n;
6940
6940
  };
6941
- let Qt = class extends G {
6941
+ let te = class extends G {
6942
6942
  constructor() {
6943
6943
  super(...arguments), this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.inputRef = O(), this.btnRef = O();
6944
6944
  }
@@ -7024,32 +7024,32 @@ let Qt = class extends G {
7024
7024
  };
7025
7025
  Ce([
7026
7026
  o({ type: String })
7027
- ], Qt.prototype, "inputType");
7027
+ ], te.prototype, "inputType");
7028
7028
  Ce([
7029
7029
  o({ type: String })
7030
- ], Qt.prototype, "id");
7030
+ ], te.prototype, "id");
7031
7031
  Ce([
7032
7032
  o({ type: String })
7033
- ], Qt.prototype, "min");
7033
+ ], te.prototype, "min");
7034
7034
  Ce([
7035
7035
  o({ type: String })
7036
- ], Qt.prototype, "max");
7036
+ ], te.prototype, "max");
7037
7037
  Ce([
7038
7038
  o({ type: String })
7039
- ], Qt.prototype, "placeholder");
7039
+ ], te.prototype, "placeholder");
7040
7040
  Ce([
7041
7041
  o({ type: Boolean })
7042
- ], Qt.prototype, "readonly");
7042
+ ], te.prototype, "readonly");
7043
7043
  Ce([
7044
7044
  o({ type: Boolean })
7045
- ], Qt.prototype, "disabled");
7045
+ ], te.prototype, "disabled");
7046
7046
  Ce([
7047
7047
  o({ type: Object })
7048
- ], Qt.prototype, "inputClasses");
7048
+ ], te.prototype, "inputClasses");
7049
7049
  Ce([
7050
7050
  o({ type: Object })
7051
- ], Qt.prototype, "internals");
7052
- const Aa = {
7051
+ ], te.prototype, "internals");
7052
+ const Na = {
7053
7053
  calendar: { buttonAltText: "Åpne kalender" }
7054
7054
  }, uh = {
7055
7055
  calendar: { buttonAltText: "Åpne kalender" },
@@ -7060,9 +7060,9 @@ var dh = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, rn = (i, t
7060
7060
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
7061
7061
  return s && n && dh(t, e, n), n;
7062
7062
  };
7063
- let _s = class extends Qt {
7063
+ let _s = class extends te {
7064
7064
  constructor() {
7065
- super(...arguments), this.value = "", this.strings = Aa;
7065
+ super(...arguments), this.value = "", this.strings = Na;
7066
7066
  }
7067
7067
  dispatchManageValidity(t) {
7068
7068
  this.dispatchEvent(
@@ -7145,7 +7145,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, Ns = (i, t
7145
7145
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
7146
7146
  return s && n && mh(t, e, n), n;
7147
7147
  };
7148
- let ts = class extends Qt {
7148
+ let ts = class extends te {
7149
7149
  constructor() {
7150
7150
  super(...arguments), this.value = [], this.showRangeLabels = !1, this.strings = uh, this.inputRefTo = O();
7151
7151
  }
@@ -7297,9 +7297,9 @@ var gh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, As = (i, t
7297
7297
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
7298
7298
  return s && n && gh(t, e, n), n;
7299
7299
  };
7300
- let es = class extends Qt {
7300
+ let es = class extends te {
7301
7301
  constructor() {
7302
- super(...arguments), this.value = [], this.strings = Aa;
7302
+ super(...arguments), this.value = [], this.strings = Na;
7303
7303
  }
7304
7304
  get isInputDisabled() {
7305
7305
  return this.disabled || this.maxlength !== void 0 && this.maxlength !== null && this.value.length >= this.maxlength;
@@ -7412,14 +7412,14 @@ let ot = class extends D {
7412
7412
  }
7413
7413
  valueChanged(i, t) {
7414
7414
  if (i === t) return;
7415
- const e = qi(i), s = this.multiple && e.length > 1 ? Wn.filterSelectableDates(
7415
+ const e = qi(i), s = this.multiple && e.length > 1 ? qn.filterSelectableDates(
7416
7416
  e,
7417
7417
  this.min,
7418
7418
  this.max,
7419
7419
  this.excludedates,
7420
7420
  this.excludeweekdays
7421
7421
  ) : e;
7422
- if (this.range && !Wn.validateRangeOrder(s)) {
7422
+ if (this.range && !qn.validateRangeOrder(s)) {
7423
7423
  this._value = [], this._valueProperty = "", super.valueChanged("", t);
7424
7424
  return;
7425
7425
  }
@@ -7774,7 +7774,7 @@ mt([
7774
7774
  ot = mt([
7775
7775
  F("pkt-datepicker")
7776
7776
  ], ot);
7777
- const yh = { href: { default: "#" }, target: { default: "_self" } }, Kn = {
7777
+ const yh = { href: { default: "#" }, target: { default: "_self" } }, Wn = {
7778
7778
  props: yh
7779
7779
  };
7780
7780
  var $h = Object.defineProperty, _h = Object.getOwnPropertyDescriptor, Ni = (i, t, e, s) => {
@@ -7784,7 +7784,7 @@ var $h = Object.defineProperty, _h = Object.getOwnPropertyDescriptor, Ni = (i, t
7784
7784
  };
7785
7785
  let Qe = class extends G {
7786
7786
  constructor() {
7787
- super(), this.defaultSlot = O(), this.href = Kn.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Kn.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7787
+ super(), this.defaultSlot = O(), this.href = Wn.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Wn.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7788
7788
  }
7789
7789
  render() {
7790
7790
  const t = {
@@ -7825,7 +7825,7 @@ var wh = Object.defineProperty, xh = Object.getOwnPropertyDescriptor, ke = (i, t
7825
7825
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
7826
7826
  return s && n && wh(t, e, n), n;
7827
7827
  };
7828
- let ae = class extends D {
7828
+ let re = class extends D {
7829
7829
  constructor() {
7830
7830
  super(), this.inputRef = O(), this.helptextSlot = O(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
7831
7831
  }
@@ -7930,34 +7930,34 @@ let ae = class extends D {
7930
7930
  };
7931
7931
  ke([
7932
7932
  o({ type: String, reflect: !0 })
7933
- ], ae.prototype, "value", 2);
7933
+ ], re.prototype, "value", 2);
7934
7934
  ke([
7935
7935
  o({ type: String })
7936
- ], ae.prototype, "type", 2);
7936
+ ], re.prototype, "type", 2);
7937
7937
  ke([
7938
7938
  o({ type: Number })
7939
- ], ae.prototype, "size", 2);
7939
+ ], re.prototype, "size", 2);
7940
7940
  ke([
7941
7941
  o({ type: String })
7942
- ], ae.prototype, "autocomplete", 2);
7942
+ ], re.prototype, "autocomplete", 2);
7943
7943
  ke([
7944
7944
  o({ type: String })
7945
- ], ae.prototype, "iconNameRight", 2);
7945
+ ], re.prototype, "iconNameRight", 2);
7946
7946
  ke([
7947
7947
  o({ type: String })
7948
- ], ae.prototype, "prefix", 2);
7948
+ ], re.prototype, "prefix", 2);
7949
7949
  ke([
7950
7950
  o({ type: String })
7951
- ], ae.prototype, "suffix", 2);
7951
+ ], re.prototype, "suffix", 2);
7952
7952
  ke([
7953
7953
  o({ type: Boolean })
7954
- ], ae.prototype, "omitSearchIcon", 2);
7954
+ ], re.prototype, "omitSearchIcon", 2);
7955
7955
  ke([
7956
7956
  R()
7957
- ], ae.prototype, "counterCurrent", 2);
7958
- ae = ke([
7957
+ ], re.prototype, "counterCurrent", 2);
7958
+ re = ke([
7959
7959
  F("pkt-textinput")
7960
- ], ae);
7960
+ ], re);
7961
7961
  const Sh = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.iconName, href: i.target } : { title: i.title, iconName: i.iconName, onClick: i.target }, Ch = (i) => Sh(i), Th = (i) => {
7962
7962
  if (!i) return;
7963
7963
  const t = typeof i == "string" ? new Date(i) : i;
@@ -8143,8 +8143,8 @@ var Oh = Object.defineProperty, Mh = Object.getOwnPropertyDescriptor, q = (i, t,
8143
8143
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
8144
8144
  return s && n && Oh(t, e, n), n;
8145
8145
  };
8146
- const Eh = "https://punkt-cdn.oslo.kommune.no/14.4/logos/";
8147
- let z = class extends G {
8146
+ const Eh = "https://punkt-cdn.oslo.kommune.no/14.5/logos/";
8147
+ let U = class extends G {
8148
8148
  constructor() {
8149
8149
  super(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.isMobile = !1, this.isTablet = !1, this.openMenu = "none", this.isHidden = !1, this.componentWidth = typeof window < "u" ? window.innerWidth : 0, this.hasSlotContent = !1, this.alignSlotRight = !1, this.alignSearchRight = !1, this.defaultSlot = O(), this.headerRef = O(), this.userContainerRef = O(), this.slotContainerRef = O(), this.searchContainerRef = O(), this.slotContentRef = O(), this.searchMenuRef = O(), this.lastScrollPosition = 0, this.savedScrollY = 0, this.lastFocusedElement = null, this.shouldRestoreFocus = !1, this.handleScroll = () => {
8150
8150
  if (!this.shouldHideOnScroll) return;
@@ -8581,98 +8581,98 @@ let z = class extends G {
8581
8581
  };
8582
8582
  q([
8583
8583
  o({ type: String, attribute: "service-name" })
8584
- ], z.prototype, "serviceName", 2);
8584
+ ], U.prototype, "serviceName", 2);
8585
8585
  q([
8586
8586
  o({ type: String, attribute: "service-link" })
8587
- ], z.prototype, "serviceLink", 2);
8587
+ ], U.prototype, "serviceLink", 2);
8588
8588
  q([
8589
8589
  o({ type: String, attribute: "logo-link" })
8590
- ], z.prototype, "logoLink", 2);
8590
+ ], U.prototype, "logoLink", 2);
8591
8591
  q([
8592
8592
  o({ type: String, attribute: "search-placeholder" })
8593
- ], z.prototype, "searchPlaceholder", 2);
8593
+ ], U.prototype, "searchPlaceholder", 2);
8594
8594
  q([
8595
8595
  o({ type: String, attribute: "search-value" })
8596
- ], z.prototype, "searchValue", 2);
8596
+ ], U.prototype, "searchValue", 2);
8597
8597
  q([
8598
8598
  o({ type: Number, attribute: "mobile-breakpoint" })
8599
- ], z.prototype, "mobileBreakpoint", 2);
8599
+ ], U.prototype, "mobileBreakpoint", 2);
8600
8600
  q([
8601
8601
  o({ type: Number, attribute: "tablet-breakpoint" })
8602
- ], z.prototype, "tabletBreakpoint", 2);
8602
+ ], U.prototype, "tabletBreakpoint", 2);
8603
8603
  q([
8604
8604
  o({ type: String, attribute: "opened-menu" })
8605
- ], z.prototype, "openedMenu", 2);
8605
+ ], U.prototype, "openedMenu", 2);
8606
8606
  q([
8607
8607
  o({ type: String, attribute: "log-out-button-placement" })
8608
- ], z.prototype, "logOutButtonPlacement", 2);
8608
+ ], U.prototype, "logOutButtonPlacement", 2);
8609
8609
  q([
8610
8610
  o({ type: String })
8611
- ], z.prototype, "position", 2);
8611
+ ], U.prototype, "position", 2);
8612
8612
  q([
8613
8613
  o({ type: String, attribute: "scroll-behavior" })
8614
- ], z.prototype, "scrollBehavior", 2);
8614
+ ], U.prototype, "scrollBehavior", 2);
8615
8615
  q([
8616
8616
  o({ type: String, attribute: "slot-menu-variant" })
8617
- ], z.prototype, "slotMenuVariant", 2);
8617
+ ], U.prototype, "slotMenuVariant", 2);
8618
8618
  q([
8619
8619
  o({ type: String, attribute: "slot-menu-text" })
8620
- ], z.prototype, "slotMenuText", 2);
8620
+ ], U.prototype, "slotMenuText", 2);
8621
8621
  q([
8622
8622
  o({ type: Boolean, attribute: "hide-logo", converter: Lt })
8623
- ], z.prototype, "hideLogo", 2);
8623
+ ], U.prototype, "hideLogo", 2);
8624
8624
  q([
8625
8625
  o({ type: Boolean, converter: Lt })
8626
- ], z.prototype, "compact", 2);
8626
+ ], U.prototype, "compact", 2);
8627
8627
  q([
8628
8628
  o({ type: Boolean, attribute: "show-search", converter: Lt })
8629
- ], z.prototype, "showSearch", 2);
8629
+ ], U.prototype, "showSearch", 2);
8630
8630
  q([
8631
8631
  o({
8632
8632
  type: Boolean,
8633
8633
  attribute: "can-change-representation",
8634
8634
  converter: Lt
8635
8635
  })
8636
- ], z.prototype, "canChangeRepresentation", 2);
8636
+ ], U.prototype, "canChangeRepresentation", 2);
8637
8637
  q([
8638
8638
  o({ type: Boolean, attribute: "has-log-out", converter: Lt })
8639
- ], z.prototype, "hasLogOut", 2);
8639
+ ], U.prototype, "hasLogOut", 2);
8640
8640
  q([
8641
8641
  o({ type: Object })
8642
- ], z.prototype, "user", 2);
8642
+ ], U.prototype, "user", 2);
8643
8643
  q([
8644
8644
  o({ type: Array, attribute: "user-menu" })
8645
- ], z.prototype, "userMenu", 2);
8645
+ ], U.prototype, "userMenu", 2);
8646
8646
  q([
8647
8647
  o({ type: Object })
8648
- ], z.prototype, "representing", 2);
8648
+ ], U.prototype, "representing", 2);
8649
8649
  q([
8650
8650
  R()
8651
- ], z.prototype, "isMobile", 2);
8651
+ ], U.prototype, "isMobile", 2);
8652
8652
  q([
8653
8653
  R()
8654
- ], z.prototype, "isTablet", 2);
8654
+ ], U.prototype, "isTablet", 2);
8655
8655
  q([
8656
8656
  R()
8657
- ], z.prototype, "openMenu", 2);
8657
+ ], U.prototype, "openMenu", 2);
8658
8658
  q([
8659
8659
  R()
8660
- ], z.prototype, "isHidden", 2);
8660
+ ], U.prototype, "isHidden", 2);
8661
8661
  q([
8662
8662
  R()
8663
- ], z.prototype, "componentWidth", 2);
8663
+ ], U.prototype, "componentWidth", 2);
8664
8664
  q([
8665
8665
  R()
8666
- ], z.prototype, "hasSlotContent", 2);
8666
+ ], U.prototype, "hasSlotContent", 2);
8667
8667
  q([
8668
8668
  R()
8669
- ], z.prototype, "alignSlotRight", 2);
8669
+ ], U.prototype, "alignSlotRight", 2);
8670
8670
  q([
8671
8671
  R()
8672
- ], z.prototype, "alignSearchRight", 2);
8673
- z = q([
8672
+ ], U.prototype, "alignSearchRight", 2);
8673
+ U = q([
8674
8674
  F("pkt-header-service")
8675
- ], z);
8675
+ ], U);
8676
8676
  var Ph = Object.defineProperty, Dh = Object.getOwnPropertyDescriptor, st = (i, t, e, s) => {
8677
8677
  for (var n = s > 1 ? void 0 : s ? Dh(t, e) : t, a = i.length - 1, r; a >= 0; a--)
8678
8678
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
@@ -8853,8 +8853,8 @@ var Lh = Object.defineProperty, Bh = Object.getOwnPropertyDescriptor, Te = (i, t
8853
8853
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
8854
8854
  return s && n && Lh(t, e, n), n;
8855
8855
  };
8856
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.4/animations/";
8857
- let re = class extends G {
8856
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.5/animations/";
8857
+ let oe = class extends G {
8858
8858
  constructor() {
8859
8859
  super(), this.defaultSlot = O(), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1, this.slotController = new rt(this, this.defaultSlot);
8860
8860
  }
@@ -8908,31 +8908,31 @@ let re = class extends G {
8908
8908
  };
8909
8909
  Te([
8910
8910
  o({ type: Number })
8911
- ], re.prototype, "delay", 2);
8911
+ ], oe.prototype, "delay", 2);
8912
8912
  Te([
8913
8913
  o({ type: Boolean })
8914
- ], re.prototype, "inline", 2);
8914
+ ], oe.prototype, "inline", 2);
8915
8915
  Te([
8916
8916
  o({ type: Boolean })
8917
- ], re.prototype, "isLoading", 2);
8917
+ ], oe.prototype, "isLoading", 2);
8918
8918
  Te([
8919
8919
  o({ type: String })
8920
- ], re.prototype, "message", 2);
8920
+ ], oe.prototype, "message", 2);
8921
8921
  Te([
8922
8922
  o({ type: String })
8923
- ], re.prototype, "size", 2);
8923
+ ], oe.prototype, "size", 2);
8924
8924
  Te([
8925
8925
  o({ type: String })
8926
- ], re.prototype, "variant", 2);
8926
+ ], oe.prototype, "variant", 2);
8927
8927
  Te([
8928
8928
  o({ type: String })
8929
- ], re.prototype, "loadingAnimationPath", 2);
8929
+ ], oe.prototype, "loadingAnimationPath", 2);
8930
8930
  Te([
8931
8931
  R()
8932
- ], re.prototype, "_shouldDisplayLoader", 2);
8933
- re = Te([
8932
+ ], oe.prototype, "_shouldDisplayLoader", 2);
8933
+ oe = Te([
8934
8934
  F("pkt-loader")
8935
- ], re);
8935
+ ], oe);
8936
8936
  const Fh = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Hs = {
8937
8937
  props: Fh
8938
8938
  };
@@ -8949,7 +8949,7 @@ let ti = class extends G {
8949
8949
  }
8950
8950
  // Lifecycle
8951
8951
  updated(i) {
8952
- super.updated(i), i.has("_isClosed") && ma(this, "pkt-hide", this._isClosed);
8952
+ super.updated(i), i.has("_isClosed") && pa(this, "pkt-hide", this._isClosed);
8953
8953
  }
8954
8954
  // Render
8955
8955
  render() {
@@ -8996,7 +8996,7 @@ ti = Ai([
8996
8996
  const Hh = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, Us = {
8997
8997
  props: Hh
8998
8998
  };
8999
- var Uh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, he = (i, t, e, s) => {
8999
+ var Uh = Object.defineProperty, zh = Object.getOwnPropertyDescriptor, ce = (i, t, e, s) => {
9000
9000
  for (var n = s > 1 ? void 0 : s ? zh(t, e) : t, a = i.length - 1, r; a >= 0; a--)
9001
9001
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
9002
9002
  return s && n && Uh(t, e, n), n;
@@ -9105,37 +9105,37 @@ let Ut = class extends G {
9105
9105
  `;
9106
9106
  }
9107
9107
  };
9108
- he([
9108
+ ce([
9109
9109
  o({ type: String })
9110
9110
  ], Ut.prototype, "headingText", 2);
9111
- he([
9111
+ ce([
9112
9112
  o({ type: Boolean })
9113
9113
  ], Ut.prototype, "removePadding", 2);
9114
- he([
9114
+ ce([
9115
9115
  o({ type: Boolean })
9116
9116
  ], Ut.prototype, "hideCloseButton", 2);
9117
- he([
9117
+ ce([
9118
9118
  o({ type: Boolean })
9119
9119
  ], Ut.prototype, "closeOnBackdropClick", 2);
9120
- he([
9120
+ ce([
9121
9121
  o({ type: String })
9122
9122
  ], Ut.prototype, "closeButtonSkin", 2);
9123
- he([
9123
+ ce([
9124
9124
  o({ type: String })
9125
9125
  ], Ut.prototype, "size", 2);
9126
- he([
9126
+ ce([
9127
9127
  o({ type: String })
9128
9128
  ], Ut.prototype, "variant", 2);
9129
- he([
9129
+ ce([
9130
9130
  o({ type: String })
9131
9131
  ], Ut.prototype, "drawerPosition", 2);
9132
- he([
9132
+ ce([
9133
9133
  o({ type: Boolean })
9134
9134
  ], Ut.prototype, "transparentBackdrop", 2);
9135
- he([
9135
+ ce([
9136
9136
  R()
9137
9137
  ], Ut.prototype, "_isOpen", 2);
9138
- Ut = he([
9138
+ Ut = ce([
9139
9139
  F("pkt-modal")
9140
9140
  ], Ut);
9141
9141
  /**
@@ -9143,10 +9143,10 @@ Ut = he([
9143
9143
  * Copyright 2018 Google LLC
9144
9144
  * SPDX-License-Identifier: BSD-3-Clause
9145
9145
  */
9146
- const Oa = "important", qh = " !" + Oa, Wh = ii(class extends Si {
9146
+ const Aa = "important", qh = " !" + Aa, Wh = ii(class extends Si {
9147
9147
  constructor(i) {
9148
9148
  var t;
9149
- if (super(i), i.type !== ie.ATTRIBUTE || i.name !== "style" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
9149
+ if (super(i), i.type !== se.ATTRIBUTE || i.name !== "style" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
9150
9150
  }
9151
9151
  render(i) {
9152
9152
  return Object.keys(i).reduce(((t, e) => {
@@ -9163,7 +9163,7 @@ const Oa = "important", qh = " !" + Oa, Wh = ii(class extends Si {
9163
9163
  if (n != null) {
9164
9164
  this.ft.add(s);
9165
9165
  const a = typeof n == "string" && n.endsWith(qh);
9166
- s.includes("-") || a ? e.setProperty(s, a ? n.slice(0, -11) : n, a ? Oa : "") : e[s] = n;
9166
+ s.includes("-") || a ? e.setProperty(s, a ? n.slice(0, -11) : n, a ? Aa : "") : e[s] = n;
9167
9167
  }
9168
9168
  }
9169
9169
  return Dt;
@@ -9396,7 +9396,7 @@ It = Wt([
9396
9396
  * Copyright 2021 Google LLC
9397
9397
  * SPDX-License-Identifier: BSD-3-Clause
9398
9398
  */
9399
- let Ma = class extends Event {
9399
+ let Oa = class extends Event {
9400
9400
  constructor(t, e, s, n) {
9401
9401
  super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = n ?? !1;
9402
9402
  }
@@ -9411,7 +9411,7 @@ let Ma = class extends Event {
9411
9411
  * Copyright 2021 Google LLC
9412
9412
  * SPDX-License-Identifier: BSD-3-Clause
9413
9413
  */
9414
- let Yn = class {
9414
+ let Kn = class {
9415
9415
  constructor(i, t, e, s) {
9416
9416
  if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (n, a) => {
9417
9417
  this.unsubscribe && (this.unsubscribe !== a && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = n, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(n, a)), this.unsubscribe = a;
@@ -9428,7 +9428,7 @@ let Yn = class {
9428
9428
  this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
9429
9429
  }
9430
9430
  dispatchRequest() {
9431
- this.host.dispatchEvent(new Ma(this.context, this.host, this.t, this.subscribe));
9431
+ this.host.dispatchEvent(new Oa(this.context, this.host, this.t, this.subscribe));
9432
9432
  }
9433
9433
  };
9434
9434
  /**
@@ -9473,7 +9473,7 @@ let Jh = class extends Event {
9473
9473
  constructor(i, t) {
9474
9474
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = i, this.contextTarget = t;
9475
9475
  }
9476
- }, Gn = class extends Xh {
9476
+ }, Yn = class extends Xh {
9477
9477
  constructor(t, e, s) {
9478
9478
  var n, a;
9479
9479
  super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (r) => {
@@ -9483,7 +9483,7 @@ let Jh = class extends Event {
9483
9483
  }, this.onProviderRequest = (r) => {
9484
9484
  if (r.context !== this.context || (r.contextTarget ?? r.composedPath()[0]) === this.host) return;
9485
9485
  const l = /* @__PURE__ */ new Set();
9486
- for (const [u, { consumerHost: p }] of this.subscriptions) l.has(u) || (l.add(u), p.dispatchEvent(new Ma(this.context, p, u, !0)));
9486
+ for (const [u, { consumerHost: p }] of this.subscriptions) l.has(u) || (l.add(u), p.dispatchEvent(new Oa(this.context, p, u, !0)));
9487
9487
  r.stopPropagation();
9488
9488
  }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (a = (n = this.host).addController) == null || a.call(n, this);
9489
9489
  }
@@ -9507,11 +9507,11 @@ function Qh({ context: i }) {
9507
9507
  }, set(n) {
9508
9508
  return s.get(this).setValue(n), t.set.call(this, n);
9509
9509
  }, init(n) {
9510
- return s.set(this, new Gn(this, { context: i, initialValue: n })), n;
9510
+ return s.set(this, new Yn(this, { context: i, initialValue: n })), n;
9511
9511
  } };
9512
9512
  {
9513
9513
  t.constructor.addInitializer(((r) => {
9514
- s.set(r, new Gn(r, { context: i }));
9514
+ s.set(r, new Yn(r, { context: i }));
9515
9515
  }));
9516
9516
  const n = Object.getOwnPropertyDescriptor(t, e);
9517
9517
  let a;
@@ -9540,17 +9540,17 @@ function Qh({ context: i }) {
9540
9540
  function tc({ context: i, subscribe: t }) {
9541
9541
  return (e, s) => {
9542
9542
  typeof s == "object" ? s.addInitializer((function() {
9543
- new Yn(this, { context: i, callback: (n) => {
9543
+ new Kn(this, { context: i, callback: (n) => {
9544
9544
  e.set.call(this, n);
9545
9545
  }, subscribe: t });
9546
9546
  })) : e.constructor.addInitializer(((n) => {
9547
- new Yn(n, { context: i, callback: (a) => {
9547
+ new Kn(n, { context: i, callback: (a) => {
9548
9548
  n[s] = a;
9549
9549
  }, subscribe: t });
9550
9550
  }));
9551
9551
  };
9552
9552
  }
9553
- const Ea = Symbol("pkt-tabs-context");
9553
+ const Ma = Symbol("pkt-tabs-context");
9554
9554
  var ec = Object.defineProperty, ic = Object.getOwnPropertyDescriptor, Oi = (i, t, e, s) => {
9555
9555
  for (var n = s > 1 ? void 0 : s ? ic(t, e) : t, a = i.length - 1, r; a >= 0; a--)
9556
9556
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
@@ -9619,7 +9619,7 @@ Oi([
9619
9619
  R()
9620
9620
  ], ei.prototype, "tabCount", 2);
9621
9621
  Oi([
9622
- Qh({ context: Ea }),
9622
+ Qh({ context: Ma }),
9623
9623
  R()
9624
9624
  ], ei.prototype, "context", 2);
9625
9625
  ei = Oi([
@@ -9705,7 +9705,7 @@ Ne([
9705
9705
  o({ type: Number, reflect: !0 })
9706
9706
  ], me.prototype, "index", 2);
9707
9707
  Ne([
9708
- tc({ context: Ea, subscribe: !0 }),
9708
+ tc({ context: Ma, subscribe: !0 }),
9709
9709
  o({ attribute: !1 })
9710
9710
  ], me.prototype, "context", 2);
9711
9711
  me = Ne([
@@ -9718,8 +9718,8 @@ me = Ne([
9718
9718
  */
9719
9719
  const ac = ii(class extends Si {
9720
9720
  constructor(i) {
9721
- if (super(i), i.type !== ie.PROPERTY && i.type !== ie.ATTRIBUTE && i.type !== ie.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
9722
- if (!ua(i)) throw Error("`live` bindings can only contain a single expression");
9721
+ if (super(i), i.type !== se.PROPERTY && i.type !== se.ATTRIBUTE && i.type !== se.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
9722
+ if (!ca(i)) throw Error("`live` bindings can only contain a single expression");
9723
9723
  }
9724
9724
  render(i) {
9725
9725
  return i;
@@ -9727,12 +9727,12 @@ const ac = ii(class extends Si {
9727
9727
  update(i, [t]) {
9728
9728
  if (t === Dt || t === b) return t;
9729
9729
  const e = i.element, s = i.name;
9730
- if (i.type === ie.PROPERTY) {
9730
+ if (i.type === se.PROPERTY) {
9731
9731
  if (t === e[s]) return Dt;
9732
- } else if (i.type === ie.BOOLEAN_ATTRIBUTE) {
9732
+ } else if (i.type === se.BOOLEAN_ATTRIBUTE) {
9733
9733
  if (!!t === e.hasAttribute(s)) return Dt;
9734
- } else if (i.type === ie.ATTRIBUTE && e.getAttribute(s) === t + "") return Dt;
9735
- return da(i), t;
9734
+ } else if (i.type === se.ATTRIBUTE && e.getAttribute(s) === t + "") return Dt;
9735
+ return ua(i), t;
9736
9736
  }
9737
9737
  });
9738
9738
  var rc = Object.defineProperty, oc = Object.getOwnPropertyDescriptor, as = (i, t, e, s) => {
@@ -9828,7 +9828,7 @@ as([
9828
9828
  wi = as([
9829
9829
  F("pkt-textarea")
9830
9830
  ], wi);
9831
- var lc = Object.defineProperty, Pa = (i, t, e, s) => {
9831
+ var lc = Object.defineProperty, Ea = (i, t, e, s) => {
9832
9832
  for (var n = void 0, a = i.length - 1, r; a >= 0; a--)
9833
9833
  (r = i[a]) && (n = r(t, e, n) || n);
9834
9834
  return n && lc(t, e, n), n;
@@ -9904,20 +9904,20 @@ class on extends D {
9904
9904
  super.willUpdate(t), this.parseOptions();
9905
9905
  }
9906
9906
  }
9907
- Pa([
9907
+ Ea([
9908
9908
  o({ type: Array, attribute: "options" })
9909
9909
  ], on.prototype, "_optionsProp");
9910
- Pa([
9910
+ Ea([
9911
9911
  R()
9912
9912
  ], on.prototype, "_options");
9913
- var hc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, Da = (i, t, e, s) => {
9913
+ var hc = Object.defineProperty, cc = Object.getOwnPropertyDescriptor, Pa = (i, t, e, s) => {
9914
9914
  for (var n = s > 1 ? void 0 : s ? cc(t, e) : t, a = i.length - 1, r; a >= 0; a--)
9915
9915
  (r = i[a]) && (n = (s ? r(t, e, n) : r(n)) || n);
9916
9916
  return s && n && hc(t, e, n), n;
9917
9917
  };
9918
9918
  let Xs = class extends on {
9919
9919
  constructor() {
9920
- super(), this.inputRef = O(), this.helptextSlot = O(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new Na(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
9920
+ super(), this.inputRef = O(), this.helptextSlot = O(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new Ta(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
9921
9921
  }
9922
9922
  connectedCallback() {
9923
9923
  super.connectedCallback(), this.parseOptions(), this._options.forEach((i) => {
@@ -10039,10 +10039,10 @@ let Xs = class extends on {
10039
10039
  return i == null || isNaN(i) ? null : i;
10040
10040
  }
10041
10041
  };
10042
- Da([
10042
+ Pa([
10043
10043
  o({ type: String })
10044
10044
  ], Xs.prototype, "value", 2);
10045
- Xs = Da([
10045
+ Xs = Pa([
10046
10046
  F("pkt-select")
10047
10047
  ], Xs);
10048
10048
  var uc = Object.defineProperty, dc = Object.getOwnPropertyDescriptor, rs = (i, t, e, s) => {
@@ -10125,7 +10125,7 @@ rs([
10125
10125
  o({ type: String })
10126
10126
  ], xi.prototype, "string", 2);
10127
10127
  rs([
10128
- o({ converter: Sa })
10128
+ o({ converter: xa })
10129
10129
  ], xi.prototype, "strings", 2);
10130
10130
  rs([
10131
10131
  o({ type: Boolean })
@@ -10136,10 +10136,10 @@ rs([
10136
10136
  xi = rs([
10137
10137
  F("pkt-component")
10138
10138
  ], xi);
10139
- const H = le({
10139
+ const z = he({
10140
10140
  tagName: "pkt-icon",
10141
10141
  elementClass: Xe,
10142
- react: oe,
10142
+ react: le,
10143
10143
  displayName: "PktIcon",
10144
10144
  events: {}
10145
10145
  }), pc = X(
@@ -10154,15 +10154,15 @@ const H = le({
10154
10154
  name: l,
10155
10155
  className: u,
10156
10156
  onClick: p,
10157
- onToggle: v
10158
- }, g) => {
10157
+ onToggle: g
10158
+ }, v) => {
10159
10159
  const [y, $] = Pt(i), { name: k } = za(), w = l || k, T = a !== void 0 ? a : y;
10160
10160
  Nt(() => {
10161
10161
  a === void 0 && $(i);
10162
10162
  }, [i, a]);
10163
10163
  const E = (A) => {
10164
10164
  const J = A.currentTarget.open;
10165
- a === void 0 && $(J), v == null || v(A);
10165
+ a === void 0 && $(J), g == null || g(A);
10166
10166
  }, x = (A) => {
10167
10167
  setTimeout(() => {
10168
10168
  p == null || p(A);
@@ -10176,7 +10176,7 @@ const H = le({
10176
10176
  return /* @__PURE__ */ S(
10177
10177
  "details",
10178
10178
  {
10179
- ref: g,
10179
+ ref: v,
10180
10180
  className: I,
10181
10181
  id: t,
10182
10182
  open: T,
@@ -10186,7 +10186,7 @@ const H = le({
10186
10186
  children: [
10187
10187
  /* @__PURE__ */ S("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
10188
10188
  e,
10189
- /* @__PURE__ */ c(H, { name: "chevron-thin-down", className: "pkt-accordion-item__icon", "aria-hidden": "true" })
10189
+ /* @__PURE__ */ c(z, { name: "chevron-thin-down", className: "pkt-accordion-item__icon", "aria-hidden": "true" })
10190
10190
  ] }),
10191
10191
  /* @__PURE__ */ c("div", { className: "pkt-accordion-item__content", id: `pkt-accordion-item__content-${t}`, role: "region", children: /* @__PURE__ */ c("div", { className: "pkt-accordion-item__content-inner", children: r }) })
10192
10192
  ]
@@ -10204,9 +10204,9 @@ var zs = { exports: {} };
10204
10204
  Licensed under the MIT License (MIT), see
10205
10205
  http://jedwatson.github.io/classnames
10206
10206
  */
10207
- var Zn;
10207
+ var Gn;
10208
10208
  function fc() {
10209
- return Zn || (Zn = 1, (function(i) {
10209
+ return Gn || (Gn = 1, (function(i) {
10210
10210
  (function() {
10211
10211
  var t = {}.hasOwnProperty;
10212
10212
  function e() {
@@ -10238,7 +10238,7 @@ function fc() {
10238
10238
  })(zs)), zs.exports;
10239
10239
  }
10240
10240
  var gc = fc();
10241
- const K = /* @__PURE__ */ mc(gc), Ra = ({
10241
+ const K = /* @__PURE__ */ mc(gc), Da = ({
10242
10242
  children: i,
10243
10243
  closeAlert: t,
10244
10244
  compact: e,
@@ -10249,23 +10249,23 @@ const K = /* @__PURE__ */ mc(gc), Ra = ({
10249
10249
  role: l = "status",
10250
10250
  skin: u = "info",
10251
10251
  className: p,
10252
- ...v
10252
+ ...g
10253
10253
  }) => {
10254
- const [g, y] = Pt(!1), $ = {
10254
+ const [v, y] = Pt(!1), $ = {
10255
10255
  "pkt-alert": !0,
10256
10256
  "pkt-alert--compact": e,
10257
10257
  [`pkt-alert--${u}`]: u,
10258
- "pkt-hide": g
10258
+ "pkt-hide": v
10259
10259
  }, k = {
10260
10260
  "pkt-alert__grid": !0,
10261
10261
  "pkt-alert__noTitle": !s,
10262
10262
  "pkt-alert__noDate": !n
10263
10263
  }, w = Me(() => {
10264
- y(!0), v.onClose && v.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
10265
- }, [v.onClose, y]);
10266
- return /* @__PURE__ */ c("div", { ...v, "aria-live": a || r, role: l, className: K($, p), children: /* @__PURE__ */ S("div", { className: K(k), children: [
10264
+ y(!0), g.onClose && g.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
10265
+ }, [g.onClose, y]);
10266
+ return /* @__PURE__ */ c("div", { ...g, "aria-live": a || r, role: l, className: K($, p), children: /* @__PURE__ */ S("div", { className: K(k), children: [
10267
10267
  /* @__PURE__ */ c(
10268
- H,
10268
+ z,
10269
10269
  {
10270
10270
  className: "pkt-alert__icon",
10271
10271
  "aria-hidden": "true",
@@ -10294,52 +10294,40 @@ const K = /* @__PURE__ */ mc(gc), Ra = ({
10294
10294
  ] })
10295
10295
  ] }) });
10296
10296
  };
10297
- Ra.displayName = "PktAlert";
10298
- const vc = le({
10297
+ Da.displayName = "PktAlert";
10298
+ const vc = he({
10299
10299
  tagName: "pkt-backlink",
10300
10300
  elementClass: $i,
10301
- react: oe,
10301
+ react: le,
10302
10302
  displayName: "PktBackLink"
10303
10303
  });
10304
10304
  vc.displayName = "PktBackLink";
10305
10305
  const Xu = X(
10306
- ({ breadcrumbs: i, navigationType: t, className: e, ...s }, n) => {
10307
- const a = i, r = a[a.length - 2], l = [e, "pkt-breadcrumbs"].filter(Boolean).join(" ");
10308
- return /* @__PURE__ */ S("nav", { ref: n, "aria-label": "brødsmulemeny", className: l, children: [
10309
- /* @__PURE__ */ c("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: a.map((u, p) => /* @__PURE__ */ c("li", { className: "pkt-breadcrumbs__item", children: p === a.length - 1 ? /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: u.text }) }) : t === "router" ? /* @__PURE__ */ S(
10310
- cn,
10311
- {
10312
- to: u.href,
10313
- className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
10314
- ...s,
10315
- children: [
10316
- /* @__PURE__ */ c(H, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
10317
- /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: u.text })
10318
- ]
10319
- }
10320
- ) : /* @__PURE__ */ S(
10321
- "a",
10322
- {
10323
- href: u.href,
10324
- className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
10325
- ...s,
10326
- children: [
10327
- /* @__PURE__ */ c(H, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
10328
- /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: u.text })
10329
- ]
10330
- }
10331
- ) }, `breadcrumb-${p}`)) }),
10332
- t === "router" ? /* @__PURE__ */ S(cn, { to: r.href, className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile", ...s, children: [
10333
- /* @__PURE__ */ c(H, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
10334
- /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: r.text })
10335
- ] }) : /* @__PURE__ */ S("a", { href: r.href, className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile", ...s, children: [
10336
- /* @__PURE__ */ c(H, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
10337
- /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: r.text })
10338
- ] })
10306
+ ({ breadcrumbs: i, navigationType: t, renderLink: e, className: s, ...n }, a) => {
10307
+ const r = i, l = r[r.length - 2], u = [s, "pkt-breadcrumbs"].filter(Boolean).join(" "), p = e || (t === "router" ? ({ href: g, className: v, children: y, props: $ }) => /* @__PURE__ */ c(Ua, { to: g, className: v, ...$, children: y }) : ({ href: g, className: v, children: y, props: $ }) => /* @__PURE__ */ c("a", { href: g, className: v, ...$, children: y }));
10308
+ return /* @__PURE__ */ S("nav", { ref: a, "aria-label": "brødsmulemeny", className: u, children: [
10309
+ /* @__PURE__ */ c("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: r.map((g, v) => /* @__PURE__ */ c("li", { className: "pkt-breadcrumbs__item", children: v === r.length - 1 ? /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: g.text }) }) : p({
10310
+ href: g.href,
10311
+ className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
10312
+ children: /* @__PURE__ */ S(Jt, { children: [
10313
+ /* @__PURE__ */ c(z, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
10314
+ /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: g.text })
10315
+ ] }),
10316
+ props: n
10317
+ }) }, `breadcrumb-${v}`)) }),
10318
+ p({
10319
+ href: l.href,
10320
+ className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
10321
+ children: /* @__PURE__ */ S(Jt, { children: [
10322
+ /* @__PURE__ */ c(z, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
10323
+ /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: l.text })
10324
+ ] }),
10325
+ props: n
10326
+ })
10339
10327
  ] });
10340
10328
  }
10341
10329
  );
10342
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.4/animations/";
10330
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/14.5/animations/";
10343
10331
  const we = X(
10344
10332
  ({
10345
10333
  children: i,
@@ -10352,8 +10340,8 @@ const we = X(
10352
10340
  fullWidth: l = !1,
10353
10341
  fullWidthOnMobile: u = !1,
10354
10342
  skin: p = "primary",
10355
- type: v = "button",
10356
- variant: g = "label-only",
10343
+ type: g = "button",
10344
+ variant: v = "label-only",
10357
10345
  state: y,
10358
10346
  color: $,
10359
10347
  isLoading: k = void 0,
@@ -10368,7 +10356,7 @@ const we = X(
10368
10356
  l && "pkt-btn--full",
10369
10357
  u && "pkt-btn--full-small",
10370
10358
  p && `pkt-btn--${p}`,
10371
- g && `pkt-btn--${g}`,
10359
+ v && `pkt-btn--${v}`,
10372
10360
  $ && `pkt-btn--${$}`,
10373
10361
  y && `pkt-btn--${y}`,
10374
10362
  k && "pkt-btn--isLoading"
@@ -10381,14 +10369,14 @@ const we = X(
10381
10369
  "aria-disabled": w || void 0,
10382
10370
  disabled: w,
10383
10371
  className: I,
10384
- type: v,
10372
+ type: g,
10385
10373
  ref: x,
10386
10374
  children: [
10387
- k && /* @__PURE__ */ c(H, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: T }),
10388
- g !== "label-only" && /* @__PURE__ */ c(H, { className: "pkt-btn__icon", name: e, ...n && { path: n } }),
10375
+ k && /* @__PURE__ */ c(z, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: T }),
10376
+ v !== "label-only" && /* @__PURE__ */ c(z, { className: "pkt-btn__icon", name: e, ...n && { path: n } }),
10389
10377
  /* @__PURE__ */ c("span", { className: "pkt-btn__text", children: i }),
10390
- g === "icons-right-and-left" && /* @__PURE__ */ c(
10391
- H,
10378
+ v === "icons-right-and-left" && /* @__PURE__ */ c(
10379
+ z,
10392
10380
  {
10393
10381
  className: "pkt-btn__icon",
10394
10382
  name: s,
@@ -10401,10 +10389,10 @@ const we = X(
10401
10389
  }
10402
10390
  );
10403
10391
  we.displayName = "PktButton";
10404
- const kc = le({
10392
+ const kc = he({
10405
10393
  tagName: "pkt-card",
10406
10394
  elementClass: pt,
10407
- react: oe,
10395
+ react: le,
10408
10396
  displayName: "PktCard",
10409
10397
  events: {}
10410
10398
  }), bc = X(
@@ -10423,8 +10411,8 @@ const yc = X(
10423
10411
  isSwitch: l = !1,
10424
10412
  hideLabel: u = !1,
10425
10413
  labelPosition: p = "right",
10426
- defaultChecked: v,
10427
- checked: g,
10414
+ defaultChecked: g,
10415
+ checked: v,
10428
10416
  indeterminate: y,
10429
10417
  optionalTag: $,
10430
10418
  optionalText: k = "Valgfritt",
@@ -10439,7 +10427,7 @@ const yc = X(
10439
10427
  }, [y]), Nt(() => {
10440
10428
  typeof I == "function" ? I(A.current) : I && (I.current = A.current);
10441
10429
  }, [I]);
10442
- const U = [r, "pkt-input-check"].filter(Boolean).join(" "), J = [
10430
+ const H = [r, "pkt-input-check"].filter(Boolean).join(" "), J = [
10443
10431
  "pkt-input-check__input-label",
10444
10432
  e ? "pkt-input-check__input-label--disabled" : "",
10445
10433
  `pkt-input-check__input-label--${p}`,
@@ -10448,12 +10436,12 @@ const yc = X(
10448
10436
  "pkt-input-check__input",
10449
10437
  t ? "pkt-input-check__input--tile" : "",
10450
10438
  e && t ? "pkt-input-check__input--tile-disabled" : ""
10451
- ].filter(Boolean).join(" "), Ct = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), et = () => /* @__PURE__ */ S(de, { children: [
10439
+ ].filter(Boolean).join(" "), Ct = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), et = () => /* @__PURE__ */ S(Jt, { children: [
10452
10440
  E && /* @__PURE__ */ c("span", { className: Ct + " pkt-tag--gray", children: E }),
10453
10441
  $ && /* @__PURE__ */ c("span", { className: Ct + " pkt-tag--blue-light", children: k }),
10454
10442
  w && /* @__PURE__ */ c("span", { className: Ct + " pkt-tag--beige", children: T })
10455
10443
  ] });
10456
- return /* @__PURE__ */ c("div", { className: U, children: /* @__PURE__ */ S("div", { className: St, children: [
10444
+ return /* @__PURE__ */ c("div", { className: H, children: /* @__PURE__ */ S("div", { className: St, children: [
10457
10445
  p === "left" && /* @__PURE__ */ S("label", { className: J, htmlFor: i, children: [
10458
10446
  s,
10459
10447
  " ",
@@ -10469,7 +10457,7 @@ const yc = X(
10469
10457
  type: "checkbox",
10470
10458
  id: i,
10471
10459
  disabled: e,
10472
- ...g !== void 0 ? { checked: g } : { defaultChecked: v },
10460
+ ...v !== void 0 ? { checked: v } : { defaultChecked: g },
10473
10461
  ...x
10474
10462
  }
10475
10463
  ),
@@ -10483,10 +10471,10 @@ const yc = X(
10483
10471
  }
10484
10472
  );
10485
10473
  yc.displayName = "PktCheckbox";
10486
- const $c = le({
10474
+ const $c = he({
10487
10475
  tagName: "pkt-combobox",
10488
10476
  elementClass: at,
10489
- react: oe,
10477
+ react: le,
10490
10478
  displayName: "PktCombobox",
10491
10479
  events: {
10492
10480
  onClick: "click",
@@ -10502,20 +10490,20 @@ const $c = le({
10502
10490
  i
10503
10491
  ] }));
10504
10492
  _c.displayName = "PktCombobox";
10505
- const ln = le({
10493
+ const ln = he({
10506
10494
  tagName: "pkt-consent",
10507
- elementClass: Jt,
10508
- react: oe,
10495
+ elementClass: Qt,
10496
+ react: le,
10509
10497
  displayName: "PktConsent",
10510
10498
  events: {
10511
10499
  onToggleConsent: "toggle-consent"
10512
10500
  }
10513
10501
  });
10514
10502
  ln.displayName = "PktConsent";
10515
- const wc = le({
10503
+ const wc = he({
10516
10504
  tagName: "pkt-datepicker",
10517
10505
  elementClass: ot,
10518
- react: oe,
10506
+ react: le,
10519
10507
  displayName: "PktDatepicker",
10520
10508
  events: {
10521
10509
  onChange: "change",
@@ -10539,8 +10527,8 @@ const Ju = ({
10539
10527
  includeConsent: l = !1,
10540
10528
  hotjarId: u = null,
10541
10529
  googleAnalyticsId: p = null,
10542
- devMode: v = !1,
10543
- cookieDomain: g = null,
10530
+ devMode: g = !1,
10531
+ cookieDomain: v = null,
10544
10532
  cookieSecure: y = null,
10545
10533
  cookieExpiryDays: $ = null,
10546
10534
  onToggleConsent: k = (w) => {
@@ -10563,7 +10551,7 @@ const Ju = ({
10563
10551
  target: x.openInNewTab || n ? "_blank" : "_self",
10564
10552
  rel: x.openInNewTab || n ? "noopener noreferrer" : void 0,
10565
10553
  children: [
10566
- /* @__PURE__ */ c(H, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10554
+ /* @__PURE__ */ c(z, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10567
10555
  x.text
10568
10556
  ]
10569
10557
  }
@@ -10582,7 +10570,7 @@ const Ju = ({
10582
10570
  target: x.openInNewTab || n ? "_blank" : "_self",
10583
10571
  rel: x.openInNewTab || n ? "noopener noreferrer" : void 0,
10584
10572
  children: [
10585
- /* @__PURE__ */ c(H, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10573
+ /* @__PURE__ */ c(z, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10586
10574
  x.text
10587
10575
  ]
10588
10576
  }
@@ -10600,7 +10588,7 @@ const Ju = ({
10600
10588
  target: n ? "_blank" : "_self",
10601
10589
  rel: n ? "noopener noreferrer" : void 0,
10602
10590
  children: [
10603
- /* @__PURE__ */ c(H, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10591
+ /* @__PURE__ */ c(z, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10604
10592
  "Personvern og informasjonskapsler"
10605
10593
  ]
10606
10594
  }
@@ -10613,7 +10601,7 @@ const Ju = ({
10613
10601
  target: n ? "_blank" : "_self",
10614
10602
  rel: n ? "noopener noreferrer" : void 0,
10615
10603
  children: [
10616
- /* @__PURE__ */ c(H, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10604
+ /* @__PURE__ */ c(z, { className: "pkt-footer__link-icon", name: "chevron-right" }),
10617
10605
  "Tilgjengelighet"
10618
10606
  ]
10619
10607
  }
@@ -10624,8 +10612,8 @@ const Ju = ({
10624
10612
  triggerType: "footerlink",
10625
10613
  hotjarId: u,
10626
10614
  googleAnalyticsId: p,
10627
- devMode: v,
10628
- cookieDomain: g,
10615
+ devMode: g,
10616
+ cookieDomain: v,
10629
10617
  cookieSecure: y,
10630
10618
  cookieExpiryDays: $,
10631
10619
  onToggleConsent: k
@@ -10645,7 +10633,7 @@ const Ju = ({
10645
10633
  children: x.language
10646
10634
  }
10647
10635
  ) }, `sociallinks-language-${I}`)) }),
10648
- /* @__PURE__ */ c("div", { className: "pkt-footer__social-icons", children: e.filter((x) => x.iconName).map((x, I) => /* @__PURE__ */ c(Fa, { children: /* @__PURE__ */ c(
10636
+ /* @__PURE__ */ c("div", { className: "pkt-footer__social-icons", children: e.filter((x) => x.iconName).map((x, I) => /* @__PURE__ */ c(Ba, { children: /* @__PURE__ */ c(
10649
10637
  "a",
10650
10638
  {
10651
10639
  href: x.href,
@@ -10653,7 +10641,7 @@ const Ju = ({
10653
10641
  className: "pkt-footer__social-icon-link",
10654
10642
  target: x.openInNewTab || n ? "_blank" : "_self",
10655
10643
  rel: x.openInNewTab || n ? "noopener noreferrer" : void 0,
10656
- children: /* @__PURE__ */ c(H, { className: "pkt-footer__social-icon", name: x.iconName })
10644
+ children: /* @__PURE__ */ c(z, { className: "pkt-footer__social-icon", name: x.iconName })
10657
10645
  }
10658
10646
  ) }, `sociallinks-${I}`)) })
10659
10647
  ] })
@@ -10669,8 +10657,8 @@ const Ju = ({
10669
10657
  devMode: l = !1,
10670
10658
  cookieDomain: u = null,
10671
10659
  cookieSecure: p = null,
10672
- cookieExpiryDays: v = null,
10673
- onToggleConsent: g = ($) => {
10660
+ cookieExpiryDays: g = null,
10661
+ onToggleConsent: v = ($) => {
10674
10662
  console.log($.detail);
10675
10663
  },
10676
10664
  className: y
@@ -10685,7 +10673,7 @@ const Ju = ({
10685
10673
  target: k.openInNewTab || t ? "_blank" : "_self",
10686
10674
  rel: k.openInNewTab || t ? "noopener noreferrer" : void 0,
10687
10675
  children: [
10688
- /* @__PURE__ */ c(H, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10676
+ /* @__PURE__ */ c(z, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10689
10677
  k.text
10690
10678
  ]
10691
10679
  }
@@ -10698,7 +10686,7 @@ const Ju = ({
10698
10686
  target: t ? "_blank" : "_self",
10699
10687
  rel: t ? "noopener noreferrer" : void 0,
10700
10688
  children: [
10701
- /* @__PURE__ */ c(H, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10689
+ /* @__PURE__ */ c(z, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10702
10690
  "Personvern og informasjonskapsler"
10703
10691
  ]
10704
10692
  }
@@ -10711,7 +10699,7 @@ const Ju = ({
10711
10699
  target: t ? "_blank" : "_self",
10712
10700
  rel: t ? "noopener noreferrer" : void 0,
10713
10701
  children: [
10714
- /* @__PURE__ */ c(H, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10702
+ /* @__PURE__ */ c(z, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
10715
10703
  "Tilgjengelighet"
10716
10704
  ]
10717
10705
  }
@@ -10725,8 +10713,8 @@ const Ju = ({
10725
10713
  devMode: l,
10726
10714
  cookieDomain: u,
10727
10715
  cookieSecure: p,
10728
- cookieExpiryDays: v,
10729
- onToggleConsent: g
10716
+ cookieExpiryDays: g,
10717
+ onToggleConsent: v
10730
10718
  }
10731
10719
  ) })
10732
10720
  ] }) }) });
@@ -10753,7 +10741,7 @@ const Ju = ({
10753
10741
  target: a,
10754
10742
  rel: n ? "noopener noreferrer" : void 0,
10755
10743
  children: [
10756
- t && /* @__PURE__ */ c(H, { name: t, className: "pkt-link__icon" }),
10744
+ t && /* @__PURE__ */ c(z, { name: t, className: "pkt-link__icon" }),
10757
10745
  r
10758
10746
  ]
10759
10747
  }
@@ -10777,7 +10765,7 @@ const Sc = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
10777
10765
  "onClick" in i && typeof i.onClick == "function" ? i.onClick() : console.error("UserMenuButton item is missing onClick handler or onClick is not a function:", i);
10778
10766
  },
10779
10767
  children: [
10780
- i.iconName && /* @__PURE__ */ c(H, { name: i.iconName, className: "pkt-link__icon", "aria-hidden": "true" }),
10768
+ i.iconName && /* @__PURE__ */ c(z, { name: i.iconName, className: "pkt-link__icon", "aria-hidden": "true" }),
10781
10769
  i.title
10782
10770
  ]
10783
10771
  }
@@ -10837,8 +10825,8 @@ const Sc = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
10837
10825
  counterMaxLength: l,
10838
10826
  optionalTag: u = !1,
10839
10827
  optionalText: p = "Valgfritt",
10840
- requiredTag: v = !1,
10841
- requiredText: g = "Må fylles ut",
10828
+ requiredTag: g = !1,
10829
+ requiredText: v = "Må fylles ut",
10842
10830
  tagText: y = null,
10843
10831
  hasError: $ = !1,
10844
10832
  errorMessage: k,
@@ -10848,7 +10836,7 @@ const Sc = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
10848
10836
  useWrapper: x = !0,
10849
10837
  children: I,
10850
10838
  className: A = "",
10851
- hasFieldset: U = !1,
10839
+ hasFieldset: H = !1,
10852
10840
  role: J = "group",
10853
10841
  counterPosition: St = "bottom"
10854
10842
  }, Ct) => {
@@ -10861,18 +10849,18 @@ const Sc = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
10861
10849
  ].filter(Boolean).join(" "), Ft = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), Yt = () => Kt ? /* @__PURE__ */ S("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
10862
10850
  r,
10863
10851
  l ? `/${l}` : ""
10864
- ] }) : null, V = () => /* @__PURE__ */ S(de, { children: [
10852
+ ] }) : null, V = () => /* @__PURE__ */ S(Jt, { children: [
10865
10853
  y && /* @__PURE__ */ c("span", { className: Ft + " pkt-tag--gray", children: y }),
10866
10854
  u && /* @__PURE__ */ c("span", { className: Ft + " pkt-tag--blue-light", children: p }),
10867
- v && /* @__PURE__ */ c("span", { className: Ft + " pkt-tag--beige", children: g })
10855
+ g && /* @__PURE__ */ c("span", { className: Ft + " pkt-tag--beige", children: v })
10868
10856
  ] }), Mt = () => {
10869
- const nt = /* @__PURE__ */ S(de, { children: [
10857
+ const nt = /* @__PURE__ */ S(Jt, { children: [
10870
10858
  t,
10871
10859
  " ",
10872
10860
  V()
10873
10861
  ] });
10874
- return x ? U ? /* @__PURE__ */ c("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: nt }) : /* @__PURE__ */ c("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Bt, id: `${i}-label`, children: nt }) : /* @__PURE__ */ c("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Bt, id: `${i}-label`, children: t });
10875
- }, te = () => !e && !s ? null : /* @__PURE__ */ S(de, { children: [
10862
+ return x ? H ? /* @__PURE__ */ c("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: nt }) : /* @__PURE__ */ c("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Bt, id: `${i}-label`, children: nt }) : /* @__PURE__ */ c("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Bt, id: `${i}-label`, children: t });
10863
+ }, ee = () => !e && !s ? null : /* @__PURE__ */ S(Jt, { children: [
10876
10864
  e && x && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
10877
10865
  s && /* @__PURE__ */ S("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
10878
10866
  /* @__PURE__ */ c(
@@ -10902,19 +10890,19 @@ const Sc = (i) => typeof i.target == "string" ? { title: i.title, iconName: i.ic
10902
10890
  }
10903
10891
  )
10904
10892
  ] })
10905
- ] }), Et = /* @__PURE__ */ S(de, { children: [
10893
+ ] }), Et = /* @__PURE__ */ S(Jt, { children: [
10906
10894
  Mt(),
10907
- te(),
10895
+ ee(),
10908
10896
  ut && /* @__PURE__ */ c(Yt, {}),
10909
10897
  I,
10910
10898
  be && /* @__PURE__ */ c(Yt, {}),
10911
- $ && k && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ c(Ra, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: k }) })
10899
+ $ && k && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ c(Da, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: k }) })
10912
10900
  ] });
10913
- return /* @__PURE__ */ c("div", { className: Ot, ref: Ct, role: J, children: U ? /* @__PURE__ */ c("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Bt, children: Et }) : /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__fieldset", children: Et }) });
10901
+ return /* @__PURE__ */ c("div", { className: Ot, ref: Ct, role: J, children: H ? /* @__PURE__ */ c("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Bt, children: Et }) : /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__fieldset", children: Et }) });
10914
10902
  }
10915
10903
  );
10916
10904
  Os.displayName = "PktInputWrapper";
10917
- const Xn = X(
10905
+ const Zn = X(
10918
10906
  ({
10919
10907
  id: i,
10920
10908
  ariaDescribedby: t,
@@ -10926,8 +10914,8 @@ const Xn = X(
10926
10914
  disabled: l = !1,
10927
10915
  errorMessage: u,
10928
10916
  hasError: p = !1,
10929
- helptext: v,
10930
- helptextDropdown: g,
10917
+ helptext: g,
10918
+ helptextDropdown: v,
10931
10919
  helptextDropdownButton: y,
10932
10920
  iconNameRight: $,
10933
10921
  inline: k = !1,
@@ -10937,7 +10925,7 @@ const Xn = X(
10937
10925
  optionalTag: x = !1,
10938
10926
  optionalText: I,
10939
10927
  requiredTag: A = !1,
10940
- requiredText: U,
10928
+ requiredText: H,
10941
10929
  tagText: J = null,
10942
10930
  placeholder: St,
10943
10931
  prefix: Ct,
@@ -10953,18 +10941,18 @@ const Xn = X(
10953
10941
  step: Yt,
10954
10942
  size: V,
10955
10943
  readonly: Mt,
10956
- required: te,
10944
+ required: ee,
10957
10945
  dataTestid: Et,
10958
10946
  onChange: nt,
10959
10947
  skipForwardTestid: ye = !1,
10960
10948
  ...$e
10961
- }, ee) => {
10962
- const Mi = [r, "pkt-textinput"].join(" "), oi = ct === "search" && !$ && !Kt, li = ct === "date" && ut ? ut.slice(0, 10) : ut, [je, ce] = Pt((ut == null ? void 0 : ut.length) || 0), ue = `${i}`, Ae = `${ue}-label`, Ve = e || Ae, _e = (Gt) => {
10949
+ }, ie) => {
10950
+ const Mi = [r, "pkt-textinput"].join(" "), oi = ct === "search" && !$ && !Kt, li = ct === "date" && ut ? ut.slice(0, 10) : ut, [je, ue] = Pt((ut == null ? void 0 : ut.length) || 0), de = `${i}`, Ae = `${de}-label`, Ve = e || Ae, _e = (Gt) => {
10963
10951
  var He, kt;
10964
- n && ce(((kt = (He = Gt.currentTarget) == null ? void 0 : He.value) == null ? void 0 : kt.length) || 0), nt && nt(Gt);
10952
+ n && ue(((kt = (He = Gt.currentTarget) == null ? void 0 : He.value) == null ? void 0 : kt.length) || 0), nt && nt(Gt);
10965
10953
  };
10966
10954
  return Nt(() => {
10967
- ut !== void 0 && ce((ut == null ? void 0 : ut.length) || 0);
10955
+ ut !== void 0 && ue((ut == null ? void 0 : ut.length) || 0);
10968
10956
  }, [ut]), /* @__PURE__ */ c(
10969
10957
  Os,
10970
10958
  {
@@ -10972,17 +10960,17 @@ const Xn = X(
10972
10960
  className: Mi,
10973
10961
  disabled: l,
10974
10962
  errorMessage: u,
10975
- forId: ue,
10963
+ forId: de,
10976
10964
  hasError: p,
10977
- helptext: v,
10978
- helptextDropdown: g,
10965
+ helptext: g,
10966
+ helptextDropdown: v,
10979
10967
  helptextDropdownButton: y,
10980
10968
  inline: k,
10981
10969
  label: T,
10982
10970
  optionalTag: x,
10983
10971
  optionalText: I,
10984
10972
  requiredTag: A,
10985
- requiredText: U,
10973
+ requiredText: H,
10986
10974
  tagText: J,
10987
10975
  useWrapper: Bt,
10988
10976
  counter: n,
@@ -11000,12 +10988,12 @@ const Xn = X(
11000
10988
  "input",
11001
10989
  {
11002
10990
  ...$e,
11003
- ref: ee,
10991
+ ref: ie,
11004
10992
  className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${a && je > a ? "pkt-input--counter-error" : ""}`,
11005
10993
  type: ct,
11006
10994
  name: `${E || i}`,
11007
10995
  value: li,
11008
- id: ue,
10996
+ id: de,
11009
10997
  placeholder: St,
11010
10998
  autoComplete: s,
11011
10999
  disabled: l,
@@ -11019,16 +11007,16 @@ const Xn = X(
11019
11007
  minLength: be,
11020
11008
  maxLength: At,
11021
11009
  size: V,
11022
- required: te
11010
+ required: ee
11023
11011
  }
11024
11012
  ),
11025
11013
  et && /* @__PURE__ */ S("p", { className: "pkt-input-suffix", children: [
11026
11014
  et,
11027
- $ && /* @__PURE__ */ c(H, { className: "pkt-input-suffix-icon", name: $ }),
11028
- oi && /* @__PURE__ */ c(H, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
11015
+ $ && /* @__PURE__ */ c(z, { className: "pkt-input-suffix-icon", name: $ }),
11016
+ oi && /* @__PURE__ */ c(z, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
11029
11017
  ] }),
11030
- !et && $ && /* @__PURE__ */ c(H, { className: "pkt-input-icon", name: $ }),
11031
- !et && oi && /* @__PURE__ */ c(H, { className: "pkt-input-icon", name: "magnifying-glass-big" })
11018
+ !et && $ && /* @__PURE__ */ c(z, { className: "pkt-input-icon", name: $ }),
11019
+ !et && oi && /* @__PURE__ */ c(z, { className: "pkt-input-icon", name: "magnifying-glass-big" })
11032
11020
  ]
11033
11021
  }
11034
11022
  )
@@ -11082,8 +11070,8 @@ const Oc = X(
11082
11070
  logOut: l,
11083
11071
  openedMenu: u,
11084
11072
  showSearch: p = !1,
11085
- onSearch: v,
11086
- onSearchChange: g,
11073
+ onSearch: g,
11074
+ onSearchChange: v,
11087
11075
  searchValue: y,
11088
11076
  searchPlaceholder: $ = "Søk",
11089
11077
  representing: k,
@@ -11093,7 +11081,7 @@ const Oc = X(
11093
11081
  user: x,
11094
11082
  userMenu: I,
11095
11083
  userMenuFooter: A,
11096
- userOptions: U,
11084
+ userOptions: H,
11097
11085
  canChangeRepresentation: J = !1,
11098
11086
  changeRepresentation: St,
11099
11087
  hideLogo: Ct = !1,
@@ -11110,22 +11098,22 @@ const Oc = X(
11110
11098
  'PktHeaderService: The "userMenuFooter" prop is deprecated and will be removed in a future version. Please use "userMenu" instead.'
11111
11099
  );
11112
11100
  }, [A]), Nt(() => {
11113
- U && console.warn('PktHeaderService: The "userOptions" prop is no longer available. Please use "userMenu" instead.');
11114
- }, [U]), Nt(() => {
11101
+ H && console.warn('PktHeaderService: The "userOptions" prop is no longer available. Please use "userMenu" instead.');
11102
+ }, [H]), Nt(() => {
11115
11103
  x != null && x.shortname && console.warn(
11116
11104
  'PktHeaderService: The "shortname" property on the user object is deprecated and will be removed in a future version.'
11117
11105
  ), k != null && k.shortname && console.warn(
11118
11106
  'PktHeaderService: The "shortname" property on the representing object is deprecated and will be removed in a future version.'
11119
11107
  );
11120
11108
  }, [x == null ? void 0 : x.shortname, k == null ? void 0 : k.shortname]);
11121
- const Yt = ta(() => {
11109
+ const Yt = Qn(() => {
11122
11110
  if (x != null && x.lastLoggedIn)
11123
11111
  return typeof x.lastLoggedIn == "string" ? x.lastLoggedIn : new Date(x.lastLoggedIn).toLocaleString("nb-NO", {
11124
11112
  year: "numeric",
11125
11113
  month: "long",
11126
11114
  day: "numeric"
11127
11115
  });
11128
- }, [x == null ? void 0 : x.lastLoggedIn]), [V, Mt] = Pt(u || "none"), [te, Et] = Pt(!1), [nt, ye] = Pt(0), [$e, ee] = Pt(!1), [Mi, oi] = Pt(!1), li = Xt(null), je = Xt(null), ce = Xt(null), ue = Xt(null), Ae = Xt(null), Ve = Xt(null), _e = Xt(null), Gt = Xt(!1), He = Nc(li), kt = He < i, Zt = He < t, Ms = Me(
11116
+ }, [x == null ? void 0 : x.lastLoggedIn]), [V, Mt] = Pt(u || "none"), [ee, Et] = Pt(!1), [nt, ye] = Pt(0), [$e, ie] = Pt(!1), [Mi, oi] = Pt(!1), li = Xt(null), je = Xt(null), ue = Xt(null), de = Xt(null), Ae = Xt(null), Ve = Xt(null), _e = Xt(null), Gt = Xt(!1), He = Nc(li), kt = He < i, Zt = He < t, Ms = Me(
11129
11117
  (h) => {
11130
11118
  li.current = h, typeof At == "function" ? At(h) : At && (At.current = h);
11131
11119
  },
@@ -11140,10 +11128,10 @@ const Oc = X(
11140
11128
  P = je;
11141
11129
  break;
11142
11130
  case "slot":
11143
- P = ce;
11131
+ P = ue;
11144
11132
  break;
11145
11133
  case "search":
11146
- P = ue;
11134
+ P = de;
11147
11135
  break;
11148
11136
  default:
11149
11137
  return;
@@ -11179,10 +11167,10 @@ const Oc = X(
11179
11167
  }, [Ft, nt]);
11180
11168
  const ci = Me(
11181
11169
  (h) => {
11182
- const m = h === "slot" ? ce : ue, _ = h === "slot" ? Ae : Ve;
11170
+ const m = h === "slot" ? ue : de, _ = h === "slot" ? Ae : Ve;
11183
11171
  if (!m.current || !_.current || !Zt || kt) return;
11184
11172
  const P = m.current.getBoundingClientRect(), L = _.current.offsetWidth, j = P.left + L > window.innerWidth;
11185
- h === "slot" ? ee(j) : oi(j);
11173
+ h === "slot" ? ie(j) : oi(j);
11186
11174
  },
11187
11175
  [Zt, kt]
11188
11176
  ), ui = Me(
@@ -11206,7 +11194,7 @@ const Oc = X(
11206
11194
  Zt && "pkt-header-service--tablet",
11207
11195
  Ot && "pkt-header-service--fixed",
11208
11196
  Ft && "pkt-header-service--scroll-to-hide",
11209
- te && "pkt-header-service--hidden",
11197
+ ee && "pkt-header-service--hidden",
11210
11198
  s
11211
11199
  ),
11212
11200
  "data-mode": a,
@@ -11221,11 +11209,11 @@ const Oc = X(
11221
11209
  ),
11222
11210
  children: [
11223
11211
  !Ct && /* @__PURE__ */ c("span", { className: "pkt-header-service__logo", children: et ? /* @__PURE__ */ c("a", { href: et, "aria-label": "Tilbake til forside", children: /* @__PURE__ */ c(
11224
- H,
11212
+ z,
11225
11213
  {
11226
11214
  name: "oslologo",
11227
11215
  "aria-hidden": "true",
11228
- path: "https://punkt-cdn.oslo.kommune.no/14.4/logos/"
11216
+ path: "https://punkt-cdn.oslo.kommune.no/14.5/logos/"
11229
11217
  }
11230
11218
  ) }) : ct ? /* @__PURE__ */ c(
11231
11219
  "button",
@@ -11234,20 +11222,20 @@ const Oc = X(
11234
11222
  className: "pkt-link-button pkt-link pkt-header-service__logo-link",
11235
11223
  onClick: ct,
11236
11224
  children: /* @__PURE__ */ c(
11237
- H,
11225
+ z,
11238
11226
  {
11239
11227
  name: "oslologo",
11240
11228
  "aria-hidden": "true",
11241
- path: "https://punkt-cdn.oslo.kommune.no/14.4/logos/"
11229
+ path: "https://punkt-cdn.oslo.kommune.no/14.5/logos/"
11242
11230
  }
11243
11231
  )
11244
11232
  }
11245
11233
  ) : /* @__PURE__ */ c(
11246
- H,
11234
+ z,
11247
11235
  {
11248
11236
  name: "oslologo",
11249
11237
  "aria-hidden": "true",
11250
- path: "https://punkt-cdn.oslo.kommune.no/14.4/logos/"
11238
+ path: "https://punkt-cdn.oslo.kommune.no/14.5/logos/"
11251
11239
  }
11252
11240
  ) }),
11253
11241
  E && /* @__PURE__ */ c("span", { className: "pkt-header-service__service-name", children: w ? /* @__PURE__ */ c(hn, { href: w, className: "pkt-header-service__service-link ", children: E }) : T ? /* @__PURE__ */ c("button", { className: "pkt-link-button pkt-link pkt-header-service__service-link", onClick: T, children: E }) : /* @__PURE__ */ c("span", { className: "pkt-header-service__service-link", children: E }) })
@@ -11260,7 +11248,7 @@ const Oc = X(
11260
11248
  {
11261
11249
  className: K("pkt-header-service__slot-container", V === "slot" && "is-open"),
11262
11250
  onBlur: (h) => hi(h, "slot"),
11263
- ref: ce,
11251
+ ref: ue,
11264
11252
  children: [
11265
11253
  Zt && e && /* @__PURE__ */ c(
11266
11254
  we,
@@ -11291,12 +11279,12 @@ const Oc = X(
11291
11279
  ]
11292
11280
  }
11293
11281
  ),
11294
- p && /* @__PURE__ */ c(de, { children: Zt ? /* @__PURE__ */ S(
11282
+ p && /* @__PURE__ */ c(Jt, { children: Zt ? /* @__PURE__ */ S(
11295
11283
  "div",
11296
11284
  {
11297
11285
  className: K("pkt-header-service__search-container", V === "search" && "is-open"),
11298
11286
  onBlur: (h) => hi(h, "search"),
11299
- ref: ue,
11287
+ ref: de,
11300
11288
  children: [
11301
11289
  /* @__PURE__ */ c(
11302
11290
  we,
@@ -11323,7 +11311,7 @@ const Oc = X(
11323
11311
  ),
11324
11312
  ref: Ve,
11325
11313
  children: V === "search" && /* @__PURE__ */ c(
11326
- Xn,
11314
+ Zn,
11327
11315
  {
11328
11316
  id: "mobile-search-menu",
11329
11317
  className: "pkt-header-service__search-input",
@@ -11334,9 +11322,9 @@ const Oc = X(
11334
11322
  value: y,
11335
11323
  autoFocus: !0,
11336
11324
  fullwidth: !0,
11337
- onChange: (h) => g == null ? void 0 : g(h.target.value),
11325
+ onChange: (h) => v == null ? void 0 : v(h.target.value),
11338
11326
  onKeyDown: (h) => {
11339
- h.key === "Enter" && (v == null || v(h.target.value));
11327
+ h.key === "Enter" && (g == null || g(h.target.value));
11340
11328
  }
11341
11329
  }
11342
11330
  )
@@ -11345,7 +11333,7 @@ const Oc = X(
11345
11333
  ]
11346
11334
  }
11347
11335
  ) : /* @__PURE__ */ c(
11348
- Xn,
11336
+ Zn,
11349
11337
  {
11350
11338
  id: "header-service-search",
11351
11339
  className: "pkt-header-service__search-input",
@@ -11354,9 +11342,9 @@ const Oc = X(
11354
11342
  useWrapper: !1,
11355
11343
  placeholder: $,
11356
11344
  value: y,
11357
- onChange: (h) => g == null ? void 0 : g(h.target.value),
11345
+ onChange: (h) => v == null ? void 0 : v(h.target.value),
11358
11346
  onKeyDown: (h) => {
11359
- h.key === "Enter" && (v == null || v(h.target.value));
11347
+ h.key === "Enter" && (g == null || g(h.target.value));
11360
11348
  }
11361
11349
  }
11362
11350
  ) }),
@@ -11447,17 +11435,17 @@ const Oc = X(
11447
11435
  }
11448
11436
  ), Mc = X((i, t) => /* @__PURE__ */ c(Oc, { ...i, ref: t }));
11449
11437
  Mc.displayName = "PktHeader";
11450
- const Ec = le({
11438
+ const Ec = he({
11451
11439
  tagName: "pkt-heading",
11452
11440
  elementClass: Le,
11453
- react: oe,
11441
+ react: le,
11454
11442
  displayName: "PktHeading"
11455
11443
  }), Pc = X(({ children: i, ...t }, e) => /* @__PURE__ */ c(Ec, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
11456
11444
  Pc.displayName = "PktHeading";
11457
- const Dc = le({
11445
+ const Dc = he({
11458
11446
  tagName: "pkt-helptext",
11459
11447
  elementClass: Se,
11460
- react: oe,
11448
+ react: le,
11461
11449
  displayName: "PktHelptext",
11462
11450
  events: {
11463
11451
  onToggleHelpText: "toggleHelpText"
@@ -11485,7 +11473,7 @@ const Lc = ({
11485
11473
  className: l,
11486
11474
  ...u
11487
11475
  }) => {
11488
- const p = ["pkt-linkcard", t && `pkt-linkcard--${t}`].filter(Boolean).join(" "), v = ["pkt-linkcard__title", r && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
11476
+ const p = ["pkt-linkcard", t && `pkt-linkcard--${t}`].filter(Boolean).join(" "), g = ["pkt-linkcard__title", r && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
11489
11477
  return /* @__PURE__ */ S(
11490
11478
  "a",
11491
11479
  {
@@ -11495,18 +11483,18 @@ const Lc = ({
11495
11483
  target: a ? "_blank" : "_self",
11496
11484
  rel: a ? "noopener noreferrer" : void 0,
11497
11485
  children: [
11498
- n && /* @__PURE__ */ c(H, { className: "pkt-link__icon", name: n }),
11499
- e && /* @__PURE__ */ c("div", { className: K(v), children: e }),
11486
+ n && /* @__PURE__ */ c(z, { className: "pkt-link__icon", name: n }),
11487
+ e && /* @__PURE__ */ c("div", { className: K(g), children: e }),
11500
11488
  /* @__PURE__ */ c("div", { className: "pkt-linkcard__text", children: i })
11501
11489
  ]
11502
11490
  }
11503
11491
  );
11504
11492
  };
11505
11493
  Lc.displayName = "PktLinkCard";
11506
- const Bc = le({
11494
+ const Bc = he({
11507
11495
  tagName: "pkt-loader",
11508
- elementClass: re,
11509
- react: oe,
11496
+ elementClass: oe,
11497
+ react: le,
11510
11498
  displayName: "PktLoader",
11511
11499
  events: {}
11512
11500
  }), Fc = X(
@@ -11523,23 +11511,23 @@ const jc = ({
11523
11511
  onClose: r,
11524
11512
  ...l
11525
11513
  }) => {
11526
- const [u, p] = Pt(!1), v = {
11514
+ const [u, p] = Pt(!1), g = {
11527
11515
  "pkt-messagebox": !0,
11528
11516
  "pkt-messagebox--compact": n,
11529
11517
  [`pkt-messagebox--${e}`]: e,
11530
11518
  "pkt-messagebox--closable": a,
11531
11519
  "pkt-hide": u
11532
- }, g = ja(), y = Me(() => {
11520
+ }, v = Fa(), y = Me(() => {
11533
11521
  p(!0), r && r();
11534
11522
  }, [p, r]);
11535
- return /* @__PURE__ */ S("div", { ...l, className: K(v, t), ref: g, children: [
11523
+ return /* @__PURE__ */ S("div", { ...l, className: K(g, t), ref: v, children: [
11536
11524
  a && /* @__PURE__ */ c("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ c(
11537
11525
  "button",
11538
11526
  {
11539
11527
  onClick: y,
11540
11528
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
11541
11529
  "aria-label": "Lukk",
11542
- children: /* @__PURE__ */ c(H, { name: "close", className: "pkt-link__icon" })
11530
+ children: /* @__PURE__ */ c(z, { name: "close", className: "pkt-link__icon" })
11543
11531
  }
11544
11532
  ) }),
11545
11533
  s && /* @__PURE__ */ c("div", { className: "pkt-messagebox__title", children: s }),
@@ -11547,20 +11535,20 @@ const jc = ({
11547
11535
  ] });
11548
11536
  };
11549
11537
  jc.displayName = "PktMessagebox";
11550
- const Vc = le({
11538
+ const Vc = he({
11551
11539
  tagName: "pkt-modal",
11552
11540
  elementClass: Ut,
11553
- react: oe,
11541
+ react: le,
11554
11542
  displayName: "PktModal",
11555
11543
  events: {}
11556
11544
  }), Hc = X(
11557
11545
  ({ children: i, ...t }, e) => /* @__PURE__ */ c(Vc, { ...t, ref: e, children: /* @__PURE__ */ c("div", { className: "pkt-contents", children: i }) })
11558
11546
  );
11559
11547
  Hc.displayName = "PktModal";
11560
- const Uc = le({
11548
+ const Uc = he({
11561
11549
  tagName: "pkt-progressbar",
11562
11550
  elementClass: lt,
11563
- react: oe,
11551
+ react: le,
11564
11552
  displayName: "PktProgressbar",
11565
11553
  events: {}
11566
11554
  }), zc = X(
@@ -11579,8 +11567,8 @@ const qc = X(
11579
11567
  hasError: l = !1,
11580
11568
  defaultChecked: u,
11581
11569
  checked: p,
11582
- optionalTag: v,
11583
- optionalText: g,
11570
+ optionalTag: g,
11571
+ optionalText: v,
11584
11572
  requiredTag: y,
11585
11573
  requiredText: $,
11586
11574
  tagText: k,
@@ -11593,10 +11581,10 @@ const qc = X(
11593
11581
  ].filter(Boolean).join(" "), I = [
11594
11582
  "pkt-input-check__input-checkbox",
11595
11583
  l ? "pkt-input-check__input-checkbox--error" : ""
11596
- ].filter(Boolean).join(" "), A = ["pkt-input-check__input-label", a ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), U = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ S(de, { children: [
11597
- k && /* @__PURE__ */ c("span", { className: U + " pkt-tag--gray", children: k }),
11598
- v && /* @__PURE__ */ c("span", { className: U + " pkt-tag--blue-light", children: g }),
11599
- y && /* @__PURE__ */ c("span", { className: U + " pkt-tag--beige", children: $ })
11584
+ ].filter(Boolean).join(" "), A = ["pkt-input-check__input-label", a ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), H = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ S(Jt, { children: [
11585
+ k && /* @__PURE__ */ c("span", { className: H + " pkt-tag--gray", children: k }),
11586
+ g && /* @__PURE__ */ c("span", { className: H + " pkt-tag--blue-light", children: v }),
11587
+ y && /* @__PURE__ */ c("span", { className: H + " pkt-tag--beige", children: $ })
11600
11588
  ] });
11601
11589
  return /* @__PURE__ */ c("div", { className: E, children: /* @__PURE__ */ S("div", { className: x, children: [
11602
11590
  /* @__PURE__ */ c(
@@ -11634,20 +11622,20 @@ const td = X(
11634
11622
  suggestions: l,
11635
11623
  value: u = "",
11636
11624
  action: p,
11637
- method: v,
11638
- onChange: g,
11625
+ method: g,
11626
+ onChange: v,
11639
11627
  onSearch: y,
11640
11628
  onSuggestionClick: $,
11641
11629
  ...k
11642
11630
  }, w) => {
11643
- const T = (A, U) => {
11644
- A ? A() : $ && $(U);
11631
+ const T = (A, H) => {
11632
+ A ? A() : $ && $(H);
11645
11633
  }, E = (A) => {
11646
11634
  u = A.target.value;
11647
11635
  }, x = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
11648
11636
  let I;
11649
- return p ? I = (A) => /* @__PURE__ */ c("form", { role: "search", className: x, action: p, method: v, children: A }) : I = (A) => /* @__PURE__ */ c("div", { role: "search", className: x, children: A }), I(
11650
- /* @__PURE__ */ S(de, { children: [
11637
+ return p ? I = (A) => /* @__PURE__ */ c("form", { role: "search", className: x, action: p, method: g, children: A }) : I = (A) => /* @__PURE__ */ c("div", { role: "search", className: x, children: A }), I(
11638
+ /* @__PURE__ */ S(Jt, { children: [
11651
11639
  n && /* @__PURE__ */ c("label", { htmlFor: n ? s : void 0, className: n ? "pkt-inputwrapper__label" : "", children: n }),
11652
11640
  /* @__PURE__ */ S("div", { className: i === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
11653
11641
  /* @__PURE__ */ c(
@@ -11664,7 +11652,7 @@ const td = X(
11664
11652
  "aria-autocomplete": "list",
11665
11653
  ref: w,
11666
11654
  "aria-controls": `${s}-suggestions`,
11667
- onChange: g || E,
11655
+ onChange: v || E,
11668
11656
  onKeyUp: y && ((A) => {
11669
11657
  A.key === "Enter" && (A.preventDefault(), y(u));
11670
11658
  }),
@@ -11688,20 +11676,20 @@ const td = X(
11688
11676
  }
11689
11677
  )
11690
11678
  ] }),
11691
- l && /* @__PURE__ */ c("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((A, U) => /* @__PURE__ */ c("li", { children: Va(
11679
+ l && /* @__PURE__ */ c("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((A, H) => /* @__PURE__ */ c("li", { children: ja(
11692
11680
  A.href ? "a" : A.onClick ? "button" : "div",
11693
11681
  {
11694
11682
  href: A.href,
11695
11683
  className: `pkt-searchinput__suggestion ${A.onClick ? "pkt-link-button" : ""} ${A.href || A.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
11696
11684
  type: A.onClick ? "button" : void 0,
11697
- onClick: () => T(A.onClick, U),
11698
- onKeyUp: (J) => J.key === "Enter" && T(A.onClick, U)
11685
+ onClick: () => T(A.onClick, H),
11686
+ onKeyUp: (J) => J.key === "Enter" && T(A.onClick, H)
11699
11687
  },
11700
- /* @__PURE__ */ S(de, { children: [
11688
+ /* @__PURE__ */ S(Jt, { children: [
11701
11689
  A.title && /* @__PURE__ */ c("h3", { className: "pkt-searchinput__suggestion-title", children: A.title }),
11702
11690
  A.text && /* @__PURE__ */ c("p", { className: "pkt-searchinput__suggestion-text", children: A.text })
11703
11691
  ] })
11704
- ) }, `search-suggestion-${U}`)) })
11692
+ ) }, `search-suggestion-${H}`)) })
11705
11693
  ] })
11706
11694
  );
11707
11695
  }
@@ -11717,8 +11705,8 @@ const td = X(
11717
11705
  helptext: l,
11718
11706
  helptextDropdown: u,
11719
11707
  helptextDropdownButton: p,
11720
- id: v,
11721
- inline: g = !1,
11708
+ id: g,
11709
+ inline: v = !1,
11722
11710
  fullwidth: y = !1,
11723
11711
  label: $,
11724
11712
  name: k,
@@ -11728,13 +11716,13 @@ const td = X(
11728
11716
  requiredText: x,
11729
11717
  tagText: I,
11730
11718
  ...A
11731
- }, U) => {
11719
+ }, H) => {
11732
11720
  const J = [s, "pkt-select"].join(" ");
11733
11721
  return /* @__PURE__ */ c(
11734
11722
  Os,
11735
11723
  {
11736
11724
  className: J,
11737
- forId: `${v}-input`,
11725
+ forId: `${g}-input`,
11738
11726
  label: $,
11739
11727
  helptext: l,
11740
11728
  helptextDropdown: u,
@@ -11747,19 +11735,19 @@ const td = X(
11747
11735
  hasError: r,
11748
11736
  errorMessage: a,
11749
11737
  disabled: n,
11750
- inline: g,
11738
+ inline: v,
11751
11739
  ariaDescribedby: i,
11752
11740
  children: /* @__PURE__ */ c(
11753
11741
  "select",
11754
11742
  {
11755
- ref: U,
11743
+ ref: H,
11756
11744
  className: `pkt-input ${y ? "pkt-input--fullwidth" : ""}`,
11757
11745
  "aria-invalid": r,
11758
- "aria-errormessage": `${v}-error`,
11746
+ "aria-errormessage": `${g}-error`,
11759
11747
  "aria-labelledby": t || void 0,
11760
11748
  disabled: n,
11761
- id: `${v}-input`,
11762
- name: k || v,
11749
+ id: `${g}-input`,
11750
+ name: k || g,
11763
11751
  ...A,
11764
11752
  children: e
11765
11753
  }
@@ -11796,12 +11784,12 @@ const td = X(
11796
11784
  t,
11797
11785
  "pkt-stepper",
11798
11786
  a === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
11799
- ), p = qs.map(e, (v, g) => Ha(v) ? Ua(v, {
11800
- className: K(v.props.className, {
11801
- "pkt-step--hideStep": s && g !== i,
11802
- "pkt-step--hideContent": n && g !== i
11787
+ ), p = qs.map(e, (g, v) => Va(g) ? Ha(g, {
11788
+ className: K(g.props.className, {
11789
+ "pkt-step--hideStep": s && v !== i,
11790
+ "pkt-step--hideContent": n && v !== i
11803
11791
  })
11804
- }) : v);
11792
+ }) : g);
11805
11793
  return /* @__PURE__ */ c("ol", { "data-testid": "pkt-stepper", className: u, ref: l, ...r, children: p });
11806
11794
  }
11807
11795
  ), nd = ({
@@ -11835,7 +11823,7 @@ const td = X(
11835
11823
  ...s,
11836
11824
  children: i
11837
11825
  }
11838
- ), od = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("thead", { className: K(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), ld = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("th", { className: K(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), hd = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("tr", { className: K(i, "pkt-table__row", {}), role: "row", ...e, children: t }), Ia = X(
11826
+ ), od = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("thead", { className: K(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), ld = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("th", { className: K(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), hd = ({ className: i, children: t, ...e }) => /* @__PURE__ */ c("tr", { className: K(i, "pkt-table__row", {}), role: "row", ...e, children: t }), Ra = X(
11839
11827
  ({
11840
11828
  children: i,
11841
11829
  skin: t,
@@ -11847,8 +11835,8 @@ const td = X(
11847
11835
  ariaLabel: l,
11848
11836
  onClose: u,
11849
11837
  type: p,
11850
- "aria-description": v,
11851
- ...g
11838
+ "aria-description": g,
11839
+ ...v
11852
11840
  }, y) => {
11853
11841
  const [$, k] = Pt(!1), w = Me(() => {
11854
11842
  k(!0), u && u();
@@ -11857,14 +11845,14 @@ const td = X(
11857
11845
  var J, St;
11858
11846
  x(((St = (J = T.current) == null ? void 0 : J.textContent) == null ? void 0 : St.trim()) ?? "");
11859
11847
  }, [i]);
11860
- const I = ta(() => {
11861
- if (n && !l) return E && `Klikk for å fjerne ${E}` || v;
11862
- }, [n, l, E, v]), A = {
11848
+ const I = Qn(() => {
11849
+ if (n && !l) return E && `Klikk for å fjerne ${E}` || g;
11850
+ }, [n, l, E, g]), A = {
11863
11851
  "pkt-tag": !0,
11864
11852
  [`pkt-tag--${s}`]: !!s,
11865
11853
  [`pkt-tag--${t}`]: !!t,
11866
11854
  [`pkt-tag--${e}`]: !!e
11867
- }, U = {
11855
+ }, H = {
11868
11856
  "pkt-tag": !0,
11869
11857
  "pkt-btn": !0,
11870
11858
  "pkt-btn--tertiary": !0,
@@ -11877,51 +11865,51 @@ const td = X(
11877
11865
  return n ? /* @__PURE__ */ S(
11878
11866
  "button",
11879
11867
  {
11880
- ...g,
11881
- className: K(U, a),
11868
+ ...v,
11869
+ className: K(H, a),
11882
11870
  type: p,
11883
11871
  onClick: w,
11884
11872
  "aria-label": l,
11885
11873
  "aria-description": I,
11886
11874
  ref: y,
11887
11875
  children: [
11888
- r && /* @__PURE__ */ c(H, { className: "pkt-tag__icon", name: r }),
11876
+ r && /* @__PURE__ */ c(z, { className: "pkt-tag__icon", name: r }),
11889
11877
  /* @__PURE__ */ c("span", { ref: T, children: i }),
11890
- /* @__PURE__ */ c(H, { className: "pkt-tag__close-btn", name: "close" })
11878
+ /* @__PURE__ */ c(z, { className: "pkt-tag__close-btn", name: "close" })
11891
11879
  ]
11892
11880
  }
11893
- ) : /* @__PURE__ */ S("span", { ...g, className: K(A, a), ref: y, children: [
11894
- r && /* @__PURE__ */ c(H, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
11881
+ ) : /* @__PURE__ */ S("span", { ...v, className: K(A, a), ref: y, children: [
11882
+ r && /* @__PURE__ */ c(z, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
11895
11883
  /* @__PURE__ */ c("span", { ref: T, children: i })
11896
11884
  ] });
11897
11885
  }
11898
11886
  );
11899
- Ia.displayName = "PktTag";
11900
- const La = X(
11887
+ Ra.displayName = "PktTag";
11888
+ const Ia = X(
11901
11889
  ({ children: i, active: t, href: e, onClick: s, icon: n, controls: a, tag: r, tagSkin: l, index: u = 0 }, p) => {
11902
- const { arrowNav: v, registerTabRef: g, handleKeyPress: y, selectTab: $ } = Gc(), w = {
11903
- "aria-selected": v ? !!t : void 0,
11890
+ const { arrowNav: g, registerTabRef: v, handleKeyPress: y, selectTab: $ } = Gc(), w = {
11891
+ "aria-selected": g ? !!t : void 0,
11904
11892
  "aria-controls": a,
11905
- role: v ? "tab" : void 0,
11893
+ role: g ? "tab" : void 0,
11906
11894
  onKeyUp: (E) => y(u, E),
11907
11895
  onClick: (E) => {
11908
11896
  $(u), s == null || s(E);
11909
11897
  },
11910
- tabIndex: t || !v ? void 0 : -1,
11898
+ tabIndex: t || !g ? void 0 : -1,
11911
11899
  ref: (E) => {
11912
- g(u, E), typeof p == "function" ? p(E) : p && (p.current = E);
11900
+ v(u, E), typeof p == "function" ? p(E) : p && (p.current = E);
11913
11901
  }
11914
- }, T = /* @__PURE__ */ S(de, { children: [
11915
- n && /* @__PURE__ */ c(H, { name: n, className: "pkt-icon--small" }),
11902
+ }, T = /* @__PURE__ */ S(Jt, { children: [
11903
+ n && /* @__PURE__ */ c(z, { name: n, className: "pkt-icon--small" }),
11916
11904
  i,
11917
- r && /* @__PURE__ */ c(Ia, { skin: l, size: "small", children: r })
11905
+ r && /* @__PURE__ */ c(Ra, { skin: l, size: "small", children: r })
11918
11906
  ] });
11919
11907
  return e ? /* @__PURE__ */ c("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: T }) : /* @__PURE__ */ c("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: T });
11920
11908
  }
11921
11909
  );
11922
- La.displayName = "PktTabItem";
11923
- const Ba = Jn(null), Gc = () => {
11924
- const i = Qn(Ba);
11910
+ Ia.displayName = "PktTabItem";
11911
+ const La = Xn(null), Gc = () => {
11912
+ const i = Jn(La);
11925
11913
  if (!i)
11926
11914
  throw new Error("TabItem must be used within a Tabs component");
11927
11915
  return i;
@@ -11931,22 +11919,22 @@ const Ba = Jn(null), Gc = () => {
11931
11919
  Nt(() => {
11932
11920
  r.current = r.current.slice(0, p);
11933
11921
  }, [p]);
11934
- const v = (k) => {
11922
+ const g = (k) => {
11935
11923
  const w = e == null ? void 0 : e[k];
11936
11924
  w != null && w.action && w.action(k), s && s(k);
11937
- }, g = (k, w) => {
11925
+ }, v = (k, w) => {
11938
11926
  var T, E;
11939
- l && (w.code === "ArrowLeft" && k !== 0 && ((T = r.current[k - 1]) == null || T.focus()), w.code === "ArrowRight" && k < p - 1 && ((E = r.current[k + 1]) == null || E.focus()), (w.code === "ArrowDown" || w.code === "Space") && v(k));
11927
+ l && (w.code === "ArrowLeft" && k !== 0 && ((T = r.current[k - 1]) == null || T.focus()), w.code === "ArrowRight" && k < p - 1 && ((E = r.current[k + 1]) == null || E.focus()), (w.code === "ArrowDown" || w.code === "Space") && g(k));
11940
11928
  }, y = (k, w) => {
11941
11929
  r.current[k] = w;
11942
11930
  }, $ = e == null ? void 0 : e.map((k, w) => {
11943
11931
  var T, E;
11944
11932
  return /* @__PURE__ */ c(
11945
- La,
11933
+ Ia,
11946
11934
  {
11947
11935
  active: k.active,
11948
11936
  href: k.href,
11949
- onClick: () => v(w),
11937
+ onClick: () => g(w),
11950
11938
  icon: k.icon,
11951
11939
  controls: k.controls,
11952
11940
  tag: (T = k.tag) == null ? void 0 : T.text,
@@ -11957,7 +11945,7 @@ const Ba = Jn(null), Gc = () => {
11957
11945
  w
11958
11946
  );
11959
11947
  });
11960
- return /* @__PURE__ */ c(Ba.Provider, { value: { arrowNav: l, registerTabRef: y, handleKeyPress: g, selectTab: v }, children: /* @__PURE__ */ c("div", { className: "pkt-tabs", ref: a, children: /* @__PURE__ */ c("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: n || $ }) }) });
11948
+ return /* @__PURE__ */ c(La.Provider, { value: { arrowNav: l, registerTabRef: y, handleKeyPress: v, selectTab: g }, children: /* @__PURE__ */ c("div", { className: "pkt-tabs", ref: a, children: /* @__PURE__ */ c("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: n || $ }) }) });
11961
11949
  }
11962
11950
  ), ud = X(
11963
11951
  ({
@@ -11971,8 +11959,8 @@ const Ba = Jn(null), Gc = () => {
11971
11959
  errorMessage: l,
11972
11960
  hasError: u,
11973
11961
  helptext: p,
11974
- helptextDropdown: v,
11975
- helptextDropdownButton: g,
11962
+ helptextDropdown: g,
11963
+ helptextDropdownButton: v,
11976
11964
  inline: y,
11977
11965
  fullwidth: $ = !1,
11978
11966
  label: k,
@@ -11982,7 +11970,7 @@ const Ba = Jn(null), Gc = () => {
11982
11970
  requiredTag: x = !1,
11983
11971
  requiredText: I,
11984
11972
  tagText: A = null,
11985
- placeholder: U,
11973
+ placeholder: H,
11986
11974
  rows: J,
11987
11975
  useWrapper: St = !0,
11988
11976
  onChange: Ct,
@@ -11994,9 +11982,9 @@ const Ba = Jn(null), Gc = () => {
11994
11982
  skipForwardTestid: be = !1,
11995
11983
  ...At
11996
11984
  }, Ot) => {
11997
- const Ft = [a, "pkt-textinput", "pkt-textarea"].join(" "), Yt = `${i}-input`, V = `${Yt}-label`, Mt = e || V, [te, Et] = Pt(0), nt = (ye) => {
11998
- var $e, ee;
11999
- if (s && Et(((ee = ($e = ye.currentTarget) == null ? void 0 : $e.value) == null ? void 0 : ee.length) || 0), Ct)
11985
+ const Ft = [a, "pkt-textinput", "pkt-textarea"].join(" "), Yt = `${i}-input`, V = `${Yt}-label`, Mt = e || V, [ee, Et] = Pt(0), nt = (ye) => {
11986
+ var $e, ie;
11987
+ if (s && Et(((ie = ($e = ye.currentTarget) == null ? void 0 : $e.value) == null ? void 0 : ie.length) || 0), Ct)
12000
11988
  return Ct(ye);
12001
11989
  };
12002
11990
  return Nt(() => {
@@ -12011,8 +11999,8 @@ const Ba = Jn(null), Gc = () => {
12011
11999
  forId: Yt,
12012
12000
  hasError: u,
12013
12001
  helptext: p,
12014
- helptextDropdown: v,
12015
- helptextDropdownButton: g,
12002
+ helptextDropdown: g,
12003
+ helptextDropdownButton: v,
12016
12004
  inline: y,
12017
12005
  label: k,
12018
12006
  optionalTag: T,
@@ -12022,16 +12010,16 @@ const Ba = Jn(null), Gc = () => {
12022
12010
  tagText: A,
12023
12011
  useWrapper: St,
12024
12012
  counter: s,
12025
- counterCurrent: te,
12013
+ counterCurrent: ee,
12026
12014
  counterMaxLength: n,
12027
12015
  children: /* @__PURE__ */ c(
12028
12016
  "textarea",
12029
12017
  {
12030
12018
  ref: Ot,
12031
- className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${n && te > n ? "pkt-input--counter-error" : ""}`,
12019
+ className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${n && ee > n ? "pkt-input--counter-error" : ""}`,
12032
12020
  name: `${w || i}`,
12033
12021
  id: Yt,
12034
- placeholder: U,
12022
+ placeholder: H,
12035
12023
  disabled: r,
12036
12024
  rows: J,
12037
12025
  "aria-labelledby": Mt,
@@ -12053,7 +12041,7 @@ const Ba = Jn(null), Gc = () => {
12053
12041
  export {
12054
12042
  qa as PktAccordion,
12055
12043
  pc as PktAccordionItem,
12056
- Ra as PktAlert,
12044
+ Da as PktAlert,
12057
12045
  vc as PktBackLink,
12058
12046
  Xu as PktBreadcrumbs,
12059
12047
  we as PktButton,
@@ -12068,7 +12056,7 @@ export {
12068
12056
  Oc as PktHeaderService,
12069
12057
  Pc as PktHeading,
12070
12058
  Rc as PktHelptext,
12071
- H as PktIcon,
12059
+ z as PktIcon,
12072
12060
  Ic as PktInput,
12073
12061
  Os as PktInputWrapper,
12074
12062
  hn as PktLink,
@@ -12082,7 +12070,7 @@ export {
12082
12070
  ed as PktSelect,
12083
12071
  id as PktStep,
12084
12072
  sd as PktStepper,
12085
- La as PktTabItem,
12073
+ Ia as PktTabItem,
12086
12074
  nd as PktTable,
12087
12075
  ad as PktTableBody,
12088
12076
  rd as PktTableDataCell,
@@ -12090,7 +12078,7 @@ export {
12090
12078
  ld as PktTableHeaderCell,
12091
12079
  hd as PktTableRow,
12092
12080
  cd as PktTabs,
12093
- Ia as PktTag,
12081
+ Ra as PktTag,
12094
12082
  ud as PktTextarea,
12095
- Xn as PktTextinput
12083
+ Zn as PktTextinput
12096
12084
  };