@oslokommune/punkt-react 13.20.0 → 13.21.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.
@@ -34,7 +34,7 @@
34
34
  };
35
35
  }
36
36
  import { jsx as h, jsxs as x, Fragment as Wt } from "react/jsx-runtime";
37
- import gt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as De, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
37
+ import gt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as Ie, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
38
38
  import { Link as Gs } from "react-router-dom";
39
39
  const Pa = Oa({}), kn = () => Ma(Pa), yn = Z(
40
40
  ({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
@@ -94,22 +94,22 @@ const $n = /* @__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 Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`, Ie = document, Ai = () => Ie.createComment(""), Ei = (i) => i === null || typeof i != "object" && typeof i != "function", Vs = Array.isArray, wn = (i) => Vs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", bs = `[
98
- \f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g, Te = RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
99
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1), St = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Oe = Ie.createTreeWalker(Ie, 129);
97
+ const Qi = globalThis, ts = Qi.trustedTypes, Js = ts ? ts.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Da = "$lit$", ve = `lit$${Math.random().toFixed(9).slice(2)}$`, Ia = "?" + ve, _n = `<${Ia}>`, Re = document, Ei = () => Re.createComment(""), Oi = (i) => i === null || typeof i != "object" && typeof i != "function", Vs = Array.isArray, wn = (i) => Vs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", bs = `[
98
+ \f\r]`, gi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xs = /-->/g, Qs = />/g, Ne = RegExp(`>|${bs}(?:([^\\s"'>=/]+)(${bs}*=${bs}*(?:[^
99
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ta = /'/g, ea = /"/g, Ra = /^(?:script|style|textarea|title)$/i, xn = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = xn(1), St = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Me = Re.createTreeWalker(Re, 129);
100
100
  function La(i, t) {
101
101
  if (!Vs(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
102
102
  return Js !== void 0 ? Js.createHTML(t) : t;
103
103
  }
104
104
  const Sn = (i, t) => {
105
105
  const e = i.length - 1, s = [];
106
- let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = fi;
106
+ let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = gi;
107
107
  for (let l = 0; l < e; l++) {
108
108
  const d = i[l];
109
109
  let p, m, f = -1, y = 0;
110
- for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r === fi ? m[1] === "!--" ? r = Xs : m[1] !== void 0 ? r = Qs : m[2] !== void 0 ? (Ra.test(m[2]) && (a = RegExp("</" + m[2], "g")), r = Te) : m[3] !== void 0 && (r = Te) : r === Te ? m[0] === ">" ? (r = a ?? fi, f = -1) : m[1] === void 0 ? f = -2 : (f = r.lastIndex - m[2].length, p = m[1], r = m[3] === void 0 ? Te : m[3] === '"' ? ea : ta) : r === ea || r === ta ? r = Te : r === Xs || r === Qs ? r = fi : (r = Te, a = void 0);
111
- const b = r === Te && i[l + 1].startsWith("/>") ? " " : "";
112
- n += r === fi ? d + _n : f >= 0 ? (s.push(p), d.slice(0, f) + Da + d.slice(f) + ve + b) : d + ve + (f === -2 ? l : b);
110
+ for (; y < d.length && (r.lastIndex = y, m = r.exec(d), m !== null); ) y = r.lastIndex, r === gi ? m[1] === "!--" ? r = Xs : m[1] !== void 0 ? r = Qs : m[2] !== void 0 ? (Ra.test(m[2]) && (a = RegExp("</" + m[2], "g")), r = Ne) : m[3] !== void 0 && (r = Ne) : r === Ne ? m[0] === ">" ? (r = a ?? gi, f = -1) : m[1] === void 0 ? f = -2 : (f = r.lastIndex - m[2].length, p = m[1], r = m[3] === void 0 ? Ne : m[3] === '"' ? ea : ta) : r === ea || r === ta ? r = Ne : r === Xs || r === Qs ? r = gi : (r = Ne, a = void 0);
111
+ const b = r === Ne && i[l + 1].startsWith("/>") ? " " : "";
112
+ n += r === gi ? d + _n : f >= 0 ? (s.push(p), d.slice(0, f) + Da + d.slice(f) + ve + b) : d + ve + (f === -2 ? l : b);
113
113
  }
114
114
  return [La(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
115
115
  };
@@ -119,11 +119,11 @@ let Ms = class Ba {
119
119
  this.parts = [];
120
120
  let n = 0, r = 0;
121
121
  const l = t.length - 1, d = this.parts, [p, m] = Sn(t, e);
122
- if (this.el = Ba.createElement(p, s), Oe.currentNode = this.el.content, e === 2 || e === 3) {
122
+ if (this.el = Ba.createElement(p, s), Me.currentNode = this.el.content, e === 2 || e === 3) {
123
123
  const f = this.el.content.firstChild;
124
124
  f.replaceWith(...f.childNodes);
125
125
  }
126
- for (; (a = Oe.nextNode()) !== null && d.length < l; ) {
126
+ for (; (a = Me.nextNode()) !== null && d.length < l; ) {
127
127
  if (a.nodeType === 1) {
128
128
  if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(Da)) {
129
129
  const y = m[r++], b = a.getAttribute(f).split(ve), k = /([.?@])?(.*)/.exec(y);
@@ -133,8 +133,8 @@ let Ms = class Ba {
133
133
  const f = a.textContent.split(ve), y = f.length - 1;
134
134
  if (y > 0) {
135
135
  a.textContent = ts ? ts.emptyScript : "";
136
- for (let b = 0; b < y; b++) a.append(f[b], Ai()), Oe.nextNode(), d.push({ type: 2, index: ++n });
137
- a.append(f[y], Ai());
136
+ for (let b = 0; b < y; b++) a.append(f[b], Ei()), Me.nextNode(), d.push({ type: 2, index: ++n });
137
+ a.append(f[y], Ei());
138
138
  }
139
139
  }
140
140
  } else if (a.nodeType === 8) if (a.data === Ia) d.push({ type: 2, index: n });
@@ -146,7 +146,7 @@ let Ms = class Ba {
146
146
  }
147
147
  }
148
148
  static createElement(t, e) {
149
- const s = Ie.createElement("template");
149
+ const s = Re.createElement("template");
150
150
  return s.innerHTML = t, s;
151
151
  }
152
152
  };
@@ -154,7 +154,7 @@ function ti(i, t, e = i, s) {
154
154
  var a, n;
155
155
  if (t === St) return t;
156
156
  let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
157
- const l = Ei(t) ? void 0 : t._$litDirective$;
157
+ const l = Oi(t) ? void 0 : t._$litDirective$;
158
158
  return (r == null ? void 0 : r.constructor) !== l && ((n = r == null ? void 0 : r._$AO) == null || n.call(r, !1), l === void 0 ? r = void 0 : (r = new l(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = ti(i, r._$AS(i, t.values), r, s)), t;
159
159
  }
160
160
  let Cn = class {
@@ -168,17 +168,17 @@ let Cn = class {
168
168
  return this._$AM._$AU;
169
169
  }
170
170
  u(t) {
171
- const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? Ie).importNode(e, !0);
172
- Oe.currentNode = a;
173
- let n = Oe.nextNode(), r = 0, l = 0, d = s[0];
171
+ const { el: { content: e }, parts: s } = this._$AD, a = ((t == null ? void 0 : t.creationScope) ?? Re).importNode(e, !0);
172
+ Me.currentNode = a;
173
+ let n = Me.nextNode(), r = 0, l = 0, d = s[0];
174
174
  for (; d !== void 0; ) {
175
175
  if (r === d.index) {
176
176
  let p;
177
177
  d.type === 2 ? p = new rs(n, n.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(n, d.name, d.strings, this, t) : d.type === 6 && (p = new En(n, this, t)), this._$AV.push(p), d = s[++l];
178
178
  }
179
- r !== (d == null ? void 0 : d.index) && (n = Oe.nextNode(), r++);
179
+ r !== (d == null ? void 0 : d.index) && (n = Me.nextNode(), r++);
180
180
  }
181
- return Oe.currentNode = Ie, a;
181
+ return Me.currentNode = Re, a;
182
182
  }
183
183
  p(t) {
184
184
  let e = 0;
@@ -204,7 +204,7 @@ let Cn = class {
204
204
  return this._$AB;
205
205
  }
206
206
  _$AI(t, e = this) {
207
- t = ti(this, t, e), Ei(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== St && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wn(t) ? this.k(t) : this._(t);
207
+ t = ti(this, t, e), Oi(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== St && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : wn(t) ? this.k(t) : this._(t);
208
208
  }
209
209
  O(t) {
210
210
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -213,7 +213,7 @@ let Cn = class {
213
213
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
214
214
  }
215
215
  _(t) {
216
- this._$AH !== $ && Ei(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Ie.createTextNode(t)), this._$AH = t;
216
+ this._$AH !== $ && Oi(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Re.createTextNode(t)), this._$AH = t;
217
217
  }
218
218
  $(t) {
219
219
  var e;
@@ -232,7 +232,7 @@ let Cn = class {
232
232
  Vs(this._$AH) || (this._$AH = [], this._$AR());
233
233
  const e = this._$AH;
234
234
  let s, a = 0;
235
- for (const n of t) a === e.length ? e.push(s = new Va(this.O(Ai()), this.O(Ai()), this, this.options)) : s = e[a], s._$AI(n), a++;
235
+ for (const n of t) a === e.length ? e.push(s = new Va(this.O(Ei()), this.O(Ei()), this, this.options)) : s = e[a], s._$AI(n), a++;
236
236
  a < e.length && (this._$AR(s && s._$AB.nextSibling, a), e.length = a);
237
237
  }
238
238
  _$AR(t = this._$AA.nextSibling, e) {
@@ -259,11 +259,11 @@ let Cn = class {
259
259
  _$AI(t, e = this, s, a) {
260
260
  const n = this.strings;
261
261
  let r = !1;
262
- if (n === void 0) t = ti(this, t, e, 0), r = !Ei(t) || t !== this._$AH && t !== St, r && (this._$AH = t);
262
+ if (n === void 0) t = ti(this, t, e, 0), r = !Oi(t) || t !== this._$AH && t !== St, r && (this._$AH = t);
263
263
  else {
264
264
  const l = t;
265
265
  let d, p;
266
- for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p === St && (p = this._$AH[d]), r || (r = !Ei(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
266
+ for (t = n[0], d = 0; d < n.length - 1; d++) p = ti(this, l[s + d], e, d), p === St && (p = this._$AH[d]), r || (r = !Oi(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
267
267
  }
268
268
  r && !a && this.j(t);
269
269
  }
@@ -315,7 +315,7 @@ const Mn = (i, t, e) => {
315
315
  let a = s._$litPart$;
316
316
  if (a === void 0) {
317
317
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
318
- s._$litPart$ = a = new rs(t.insertBefore(Ai(), n), n, void 0, e ?? {});
318
+ s._$litPart$ = a = new rs(t.insertBefore(Ei(), n), n, void 0, e ?? {});
319
319
  }
320
320
  return a._$AI(i), a;
321
321
  };
@@ -369,7 +369,7 @@ const Dn = (i) => new Pn(typeof i == "string" ? i : i + "", void 0, ja), In = (i
369
369
  * Copyright 2017 Google LLC
370
370
  * SPDX-License-Identifier: BSD-3-Clause
371
371
  */
372
- const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnPropertyNames: Vn, getOwnPropertySymbols: jn, getPrototypeOf: Fn } = Object, ei = globalThis, ra = ei.trustedTypes, Un = ra ? ra.emptyScript : "", oa = ei.reactiveElementPolyfillSupport, Ti = (i, t) => i, es = { toAttribute(i, t) {
372
+ const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnPropertyNames: Vn, getOwnPropertySymbols: jn, getPrototypeOf: Fn } = Object, ei = globalThis, ra = ei.trustedTypes, Un = ra ? ra.emptyScript : "", oa = ei.reactiveElementPolyfillSupport, Ni = (i, t) => i, es = { toAttribute(i, t) {
373
373
  switch (t) {
374
374
  case Boolean:
375
375
  i = i ? Un : null;
@@ -427,13 +427,13 @@ let Ze = class extends HTMLElement {
427
427
  return this.elementProperties.get(t) ?? la;
428
428
  }
429
429
  static _$Ei() {
430
- if (this.hasOwnProperty(Ti("elementProperties"))) return;
430
+ if (this.hasOwnProperty(Ni("elementProperties"))) return;
431
431
  const t = Fn(this);
432
432
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
433
433
  }
434
434
  static finalize() {
435
- if (this.hasOwnProperty(Ti("finalized"))) return;
436
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ti("properties"))) {
435
+ if (this.hasOwnProperty(Ni("finalized"))) return;
436
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ni("properties"))) {
437
437
  const e = this.properties, s = [...Vn(e), ...jn(e)];
438
438
  for (const a of s) this.createProperty(a, e[a]);
439
439
  }
@@ -602,7 +602,7 @@ let Ze = class extends HTMLElement {
602
602
  firstUpdated(t) {
603
603
  }
604
604
  };
605
- Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[Ti("elementProperties")] = /* @__PURE__ */ new Map(), Ze[Ti("finalized")] = /* @__PURE__ */ new Map(), oa == null || oa({ ReactiveElement: Ze }), (ei.reactiveElementVersions ?? (ei.reactiveElementVersions = [])).push("2.1.1");
605
+ Ze.elementStyles = [], Ze.shadowRootOptions = { mode: "open" }, Ze[Ni("elementProperties")] = /* @__PURE__ */ new Map(), Ze[Ni("finalized")] = /* @__PURE__ */ new Map(), oa == null || oa({ ReactiveElement: Ze }), (ei.reactiveElementVersions ?? (ei.reactiveElementVersions = [])).push("2.1.1");
606
606
  /**
607
607
  * @license
608
608
  * Copyright 2017 Google LLC
@@ -640,7 +640,7 @@ function o(i) {
640
640
  * Copyright 2017 Google LLC
641
641
  * SPDX-License-Identifier: BSD-3-Clause
642
642
  */
643
- const Oi = globalThis;
643
+ const Mi = globalThis;
644
644
  let Je = class extends Ze {
645
645
  constructor() {
646
646
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -667,10 +667,10 @@ let Je = class extends Ze {
667
667
  }
668
668
  };
669
669
  var ha;
670
- Je._$litElement$ = !0, Je.finalized = !0, (ha = Oi.litElementHydrateSupport) == null || ha.call(Oi, { LitElement: Je });
671
- const da = Oi.litElementPolyfillSupport;
670
+ Je._$litElement$ = !0, Je.finalized = !0, (ha = Mi.litElementHydrateSupport) == null || ha.call(Mi, { LitElement: Je });
671
+ const da = Mi.litElementPolyfillSupport;
672
672
  da == null || da({ LitElement: Je });
673
- (Oi.litElementVersions ?? (Oi.litElementVersions = [])).push("4.2.1");
673
+ (Mi.litElementVersions ?? (Mi.litElementVersions = [])).push("4.2.1");
674
674
  const zn = { hi: "Hei!" }, Wn = { from: "Fra", to: "Til" }, Kn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Gn = { 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" }, Yn = { 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." } }, wt = {
675
675
  example: zn,
676
676
  generic: Wn,
@@ -770,7 +770,7 @@ function B(i) {
770
770
  function Ua(i, t) {
771
771
  return t.some((e) => e.value === i);
772
772
  }
773
- function gi(i) {
773
+ function vi(i) {
774
774
  return i.classList && (i.classList.contains("_dialog_overlay") || i.classList.contains("backdrop")) ? !0 : typeof i.hasAttribute == "function" && i.hasAttribute("data-skip");
775
775
  }
776
776
  function Xe(i) {
@@ -799,7 +799,7 @@ let rt = class {
799
799
  // ********* UPDATE NODES *********
800
800
  updateNodes() {
801
801
  this.nodes = [], Array.from(this.host.childNodes).forEach((t) => {
802
- gi(t) || Xe(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
802
+ vi(t) || Xe(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
803
803
  });
804
804
  }
805
805
  // ********* UPDATE SLOTS *********
@@ -815,13 +815,13 @@ let rt = class {
815
815
  if (n.nodeType === Node.COMMENT_NODE) return !1;
816
816
  if (n.nodeType === Node.TEXT_NODE) return !!((r = n.textContent) != null && r.trim());
817
817
  if (n.nodeType === Node.ELEMENT_NODE) {
818
- if (gi(n)) return !1;
818
+ if (vi(n)) return !1;
819
819
  if ((l = n.textContent) != null && l.trim()) return !0;
820
820
  }
821
821
  return !1;
822
822
  }) && t.add(s);
823
823
  const a = this.nodes.flatMap(
824
- (n) => ks(n) || n.getAttribute && n.getAttribute("slot") == s && !gi(n) ? n : []
824
+ (n) => ks(n) || n.getAttribute && n.getAttribute("slot") == s && !vi(n) ? n : []
825
825
  ).filter(
826
826
  (n) => e.value && !e.value.contains(n) && !n.contains(e.value)
827
827
  );
@@ -839,9 +839,9 @@ let rt = class {
839
839
  let e = !1;
840
840
  t.forEach((s) => {
841
841
  s.type === "childList" && (s.addedNodes.forEach((a) => {
842
- gi(a) || Xe(a) && this.skipOptions || (Jn(a, this.slots) || ks(a)) && (this.nodes.push(a), e = !0);
842
+ vi(a) || Xe(a) && this.skipOptions || (Jn(a, this.slots) || ks(a)) && (this.nodes.push(a), e = !0);
843
843
  }), s.removedNodes.forEach((a) => {
844
- gi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
844
+ vi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
845
845
  }));
846
846
  }), e && this.updateSlots();
847
847
  }
@@ -861,7 +861,7 @@ let rt = class {
861
861
  * Copyright 2020 Google LLC
862
862
  * SPDX-License-Identifier: BSD-3-Clause
863
863
  */
864
- const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.createComment(""), vi = (i, t, e) => {
864
+ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.createComment(""), bi = (i, t, e) => {
865
865
  var s;
866
866
  const a = i._$AA.parentNode, n = t === void 0 ? i._$AB : t._$AA;
867
867
  if (e === void 0) {
@@ -882,7 +882,7 @@ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.crea
882
882
  }
883
883
  }
884
884
  return e;
885
- }, Ne = (i, t, e = i) => (i._$AI(t, e), i), Qn = {}, qa = (i, t = Qn) => i._$AH = t, tr = (i) => i._$AH, ys = (i) => {
885
+ }, Ae = (i, t, e = i) => (i._$AI(t, e), i), Qn = {}, qa = (i, t = Qn) => i._$AH = t, tr = (i) => i._$AH, ys = (i) => {
886
886
  i._$AR(), i._$AA.remove();
887
887
  };
888
888
  /**
@@ -890,11 +890,11 @@ const { I: Xn } = On, Ha = (i) => i.strings === void 0, ca = () => document.crea
890
890
  * Copyright 2017 Google LLC
891
891
  * SPDX-License-Identifier: BSD-3-Clause
892
892
  */
893
- const Ni = (i, t) => {
893
+ const Ai = (i, t) => {
894
894
  var e;
895
895
  const s = i._$AN;
896
896
  if (s === void 0) return !1;
897
- for (const a of s) (e = a._$AO) == null || e.call(a, t, !1), Ni(a, t);
897
+ for (const a of s) (e = a._$AO) == null || e.call(a, t, !1), Ai(a, t);
898
898
  return !0;
899
899
  }, is = (i) => {
900
900
  let t, e;
@@ -915,9 +915,9 @@ function er(i) {
915
915
  }
916
916
  function ir(i, t = !1, e = 0) {
917
917
  const s = this._$AH, a = this._$AN;
918
- if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++) Ni(s[n], !1), is(s[n]);
919
- else s != null && (Ni(s, !1), is(s));
920
- else Ni(this, i);
918
+ if (a !== void 0 && a.size !== 0) if (t) if (Array.isArray(s)) for (let n = e; n < s.length; n++) Ai(s[n], !1), is(s[n]);
919
+ else s != null && (Ai(s, !1), is(s));
920
+ else Ai(this, i);
921
921
  }
922
922
  const sr = (i) => {
923
923
  i.type == zt.CHILD && (i._$AP ?? (i._$AP = ir), i._$AQ ?? (i._$AQ = er));
@@ -931,7 +931,7 @@ let ar = class extends li {
931
931
  }
932
932
  _$AO(t, e = !0) {
933
933
  var s, a;
934
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (Ni(this, t), is(this));
934
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (a = this.disconnected) == null || a.call(this)), e && (Ai(this, t), is(this));
935
935
  }
936
936
  setValue(t) {
937
937
  if (Ha(this._$Ct)) this._$Ct._$AI(t, this);
@@ -1014,12 +1014,12 @@ let Ps = class extends ss {
1014
1014
  };
1015
1015
  Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
1016
1016
  const pa = Ue(Ps);
1017
- var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Ri = (i, t, e, s) => {
1017
+ var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
1018
1018
  for (var a = s > 1 ? void 0 : s ? or(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1019
1019
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1020
1020
  return s && a && rr(t, e, a), a;
1021
1021
  };
1022
- const Ds = "https://punkt-cdn.oslo.kommune.no/13.20/icons/";
1022
+ const Ds = "https://punkt-cdn.oslo.kommune.no/13.21/icons/";
1023
1023
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ds);
1024
1024
  const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', _s = {}, hr = async (i, t) => {
1025
1025
  let e = 0;
@@ -1030,7 +1030,7 @@ const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http:/
1030
1030
  window.pktFetch(t + i + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + t + i + ".svg"), Xi)).then((a) => (a !== Xi && s && localStorage.setItem(t + i + ".svg", a), _s[t + i + ".svg"] = "fetched", a))
1031
1031
  )) : Promise.resolve(Xi);
1032
1032
  };
1033
- let Re = class extends K {
1033
+ let Le = class extends K {
1034
1034
  constructor() {
1035
1035
  super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ds, this.name = "", this.icon = pa(Xi), this._updatedProps = [];
1036
1036
  }
@@ -1052,21 +1052,21 @@ let Re = class extends K {
1052
1052
  return u`${this.name && this.icon}`;
1053
1053
  }
1054
1054
  };
1055
- Ri([
1055
+ Li([
1056
1056
  o({ type: String, reflect: !1 })
1057
- ], Re.prototype, "path", 2);
1058
- Ri([
1057
+ ], Le.prototype, "path", 2);
1058
+ Li([
1059
1059
  o({ type: String, reflect: !0 })
1060
- ], Re.prototype, "name", 2);
1061
- Ri([
1060
+ ], Le.prototype, "name", 2);
1061
+ Li([
1062
1062
  o({ type: SVGElement })
1063
- ], Re.prototype, "icon", 2);
1064
- Ri([
1063
+ ], Le.prototype, "icon", 2);
1064
+ Li([
1065
1065
  o({ type: Array, noAccessor: !0 })
1066
- ], Re.prototype, "_updatedProps", 2);
1067
- Re = Ri([
1066
+ ], Le.prototype, "_updatedProps", 2);
1067
+ Le = Li([
1068
1068
  j("pkt-icon")
1069
- ], Re);
1069
+ ], Le);
1070
1070
  /**
1071
1071
  * @license
1072
1072
  * Copyright 2018 Google LLC
@@ -1078,7 +1078,7 @@ var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ut = (i, t
1078
1078
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1079
1079
  return s && a && dr(t, e, a), a;
1080
1080
  };
1081
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
1081
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
1082
1082
  let lt = class extends K {
1083
1083
  constructor() {
1084
1084
  super(), this.defaultSlot = A(), 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);
@@ -1307,7 +1307,7 @@ se([
1307
1307
  Kt = se([
1308
1308
  j("pkt-alert")
1309
1309
  ], Kt);
1310
- var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
1310
+ var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Bi = (i, t, e, s) => {
1311
1311
  for (var a = s > 1 ? void 0 : s ? gr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1312
1312
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1313
1313
  return s && a && fr(t, e, a), a;
@@ -1353,19 +1353,19 @@ let ii = class extends Je {
1353
1353
  `;
1354
1354
  }
1355
1355
  };
1356
- Li([
1356
+ Bi([
1357
1357
  o({ type: String, reflect: !0, attribute: "aria-labelledby" })
1358
1358
  ], ii.prototype, "ariaLabelledBy", 2);
1359
- Li([
1359
+ Bi([
1360
1360
  o({ type: Boolean, reflect: !0, attribute: "compact" })
1361
1361
  ], ii.prototype, "compact", 2);
1362
- Li([
1362
+ Bi([
1363
1363
  o({ type: String, reflect: !0, attribute: "skin" })
1364
1364
  ], ii.prototype, "skin", 2);
1365
- Li([
1365
+ Bi([
1366
1366
  o({ type: String, reflect: !0, attribute: "name" })
1367
1367
  ], ii.prototype, "name", 2);
1368
- ii = Li([
1368
+ ii = Bi([
1369
1369
  j("pkt-accordion")
1370
1370
  ], ii);
1371
1371
  var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
@@ -1490,13 +1490,13 @@ let _r = {};
1490
1490
  function ds() {
1491
1491
  return _r;
1492
1492
  }
1493
- function Mi(i, t) {
1493
+ function Pi(i, t) {
1494
1494
  var e, s, a, n;
1495
1495
  const r = ds(), 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 ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.weekStartsOn) ?? 0, d = Lt(i, t == null ? void 0 : t.in), p = d.getDay(), m = (p < l ? 7 : 0) + p - l;
1496
1496
  return d.setDate(d.getDate() - m), d.setHours(0, 0, 0, 0), d;
1497
1497
  }
1498
1498
  function as(i, t) {
1499
- return Mi(i, { ...t, weekStartsOn: 1 });
1499
+ return Pi(i, { ...t, weekStartsOn: 1 });
1500
1500
  }
1501
1501
  function Ga(i, t) {
1502
1502
  const e = Lt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
@@ -1677,7 +1677,7 @@ const Or = {
1677
1677
  nextWeek: "eeee 'at' p",
1678
1678
  other: "P"
1679
1679
  }, Rr = (i, t, e, s) => Ir[i];
1680
- function bi(i) {
1680
+ function ki(i) {
1681
1681
  return (t, e) => {
1682
1682
  const s = e != null && e.context ? String(e.context) : "standalone";
1683
1683
  let a;
@@ -1819,31 +1819,31 @@ const Lr = {
1819
1819
  return e + "th";
1820
1820
  }, qr = {
1821
1821
  ordinalNumber: Hr,
1822
- era: bi({
1822
+ era: ki({
1823
1823
  values: Lr,
1824
1824
  defaultWidth: "wide"
1825
1825
  }),
1826
- quarter: bi({
1826
+ quarter: ki({
1827
1827
  values: Br,
1828
1828
  defaultWidth: "wide",
1829
1829
  argumentCallback: (i) => i - 1
1830
1830
  }),
1831
- month: bi({
1831
+ month: ki({
1832
1832
  values: Vr,
1833
1833
  defaultWidth: "wide"
1834
1834
  }),
1835
- day: bi({
1835
+ day: ki({
1836
1836
  values: jr,
1837
1837
  defaultWidth: "wide"
1838
1838
  }),
1839
- dayPeriod: bi({
1839
+ dayPeriod: ki({
1840
1840
  values: Fr,
1841
1841
  defaultWidth: "wide",
1842
1842
  formattingValues: Ur,
1843
1843
  defaultFormattingWidth: "wide"
1844
1844
  })
1845
1845
  };
1846
- function ki(i) {
1846
+ function yi(i) {
1847
1847
  return (t, e = {}) => {
1848
1848
  const s = e.width, a = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], n = t.match(a);
1849
1849
  if (!n)
@@ -1956,32 +1956,32 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Yr = /\d+/i, Zr = {
1956
1956
  parsePattern: Yr,
1957
1957
  valueCallback: (i) => parseInt(i, 10)
1958
1958
  }),
1959
- era: ki({
1959
+ era: yi({
1960
1960
  matchPatterns: Zr,
1961
1961
  defaultMatchWidth: "wide",
1962
1962
  parsePatterns: Jr,
1963
1963
  defaultParseWidth: "any"
1964
1964
  }),
1965
- quarter: ki({
1965
+ quarter: yi({
1966
1966
  matchPatterns: Xr,
1967
1967
  defaultMatchWidth: "wide",
1968
1968
  parsePatterns: Qr,
1969
1969
  defaultParseWidth: "any",
1970
1970
  valueCallback: (i) => i + 1
1971
1971
  }),
1972
- month: ki({
1972
+ month: yi({
1973
1973
  matchPatterns: to,
1974
1974
  defaultMatchWidth: "wide",
1975
1975
  parsePatterns: eo,
1976
1976
  defaultParseWidth: "any"
1977
1977
  }),
1978
- day: ki({
1978
+ day: yi({
1979
1979
  matchPatterns: io,
1980
1980
  defaultMatchWidth: "wide",
1981
1981
  parsePatterns: so,
1982
1982
  defaultParseWidth: "any"
1983
1983
  }),
1984
- dayPeriod: ki({
1984
+ dayPeriod: yi({
1985
1985
  matchPatterns: ao,
1986
1986
  defaultMatchWidth: "any",
1987
1987
  parsePatterns: no,
@@ -2011,18 +2011,18 @@ function Za(i, t) {
2011
2011
  var e, s, a, n;
2012
2012
  const r = Lt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = ds(), 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) ?? d.firstWeekContainsDate ?? ((n = (a = d.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, m = ee((t == null ? void 0 : t.in) || i, 0);
2013
2013
  m.setFullYear(l + 1, 0, p), m.setHours(0, 0, 0, 0);
2014
- const f = Mi(m, t), y = ee((t == null ? void 0 : t.in) || i, 0);
2014
+ const f = Pi(m, t), y = ee((t == null ? void 0 : t.in) || i, 0);
2015
2015
  y.setFullYear(l, 0, p), y.setHours(0, 0, 0, 0);
2016
- const b = Mi(y, t);
2016
+ const b = Pi(y, t);
2017
2017
  return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
2018
2018
  }
2019
2019
  function co(i, t) {
2020
2020
  var e, s, a, n;
2021
2021
  const r = ds(), 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 ?? ((n = (a = r.locale) == null ? void 0 : a.options) == null ? void 0 : n.firstWeekContainsDate) ?? 1, d = Za(i, t), p = ee((t == null ? void 0 : t.in) || i, 0);
2022
- return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Mi(p, t);
2022
+ return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Pi(p, t);
2023
2023
  }
2024
2024
  function Ja(i, t) {
2025
- const e = Lt(i, t == null ? void 0 : t.in), s = +Mi(e, t) - +co(e, t);
2025
+ const e = Lt(i, t == null ? void 0 : t.in), s = +Pi(e, t) - +co(e, t);
2026
2026
  return Math.round(s / Ka) + 1;
2027
2027
  }
2028
2028
  function q(i, t) {
@@ -2571,7 +2571,7 @@ const fe = {
2571
2571
  // so this token always has the same output as `XX`
2572
2572
  case "XXXX":
2573
2573
  case "XX":
2574
- return Ee(s);
2574
+ return Oe(s);
2575
2575
  // Hours, minutes and optional seconds with `:` delimiter
2576
2576
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2577
2577
  // so this token always has the same output as `XXX`
@@ -2579,7 +2579,7 @@ const fe = {
2579
2579
  case "XXX":
2580
2580
  // Hours and minutes with `:` delimiter
2581
2581
  default:
2582
- return Ee(s, ":");
2582
+ return Oe(s, ":");
2583
2583
  }
2584
2584
  },
2585
2585
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2594,7 +2594,7 @@ const fe = {
2594
2594
  // so this token always has the same output as `xx`
2595
2595
  case "xxxx":
2596
2596
  case "xx":
2597
- return Ee(s);
2597
+ return Oe(s);
2598
2598
  // Hours, minutes and optional seconds with `:` delimiter
2599
2599
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2600
2600
  // so this token always has the same output as `xxx`
@@ -2602,7 +2602,7 @@ const fe = {
2602
2602
  case "xxx":
2603
2603
  // Hours and minutes with `:` delimiter
2604
2604
  default:
2605
- return Ee(s, ":");
2605
+ return Oe(s, ":");
2606
2606
  }
2607
2607
  },
2608
2608
  // Timezone (GMT)
@@ -2617,7 +2617,7 @@ const fe = {
2617
2617
  // Long
2618
2618
  case "OOOO":
2619
2619
  default:
2620
- return "GMT" + Ee(s, ":");
2620
+ return "GMT" + Oe(s, ":");
2621
2621
  }
2622
2622
  },
2623
2623
  // Timezone (specific non-location)
@@ -2632,7 +2632,7 @@ const fe = {
2632
2632
  // Long
2633
2633
  case "zzzz":
2634
2634
  default:
2635
- return "GMT" + Ee(s, ":");
2635
+ return "GMT" + Oe(s, ":");
2636
2636
  }
2637
2637
  },
2638
2638
  // Seconds timestamp
@@ -2650,9 +2650,9 @@ function va(i, t = "") {
2650
2650
  return n === 0 ? e + String(a) : e + String(a) + t + q(n, 2);
2651
2651
  }
2652
2652
  function ba(i, t) {
2653
- return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) : Ee(i, t);
2653
+ return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) : Oe(i, t);
2654
2654
  }
2655
- function Ee(i, t = "") {
2655
+ function Oe(i, t = "") {
2656
2656
  const e = i > 0 ? "-" : "+", s = Math.abs(i), a = q(Math.trunc(s / 60), 2), n = q(s % 60, 2);
2657
2657
  return e + a + t + n;
2658
2658
  }
@@ -2776,16 +2776,16 @@ function Ao(i, t, e = "long") {
2776
2776
  timeZoneName: e
2777
2777
  }).format(t).split(/\s/g).slice(2).join(" ");
2778
2778
  }
2779
- const ya = {}, _i = {};
2780
- function Me(i, t) {
2779
+ const ya = {}, wi = {};
2780
+ function Pe(i, t) {
2781
2781
  try {
2782
2782
  const e = (ya[i] || (ya[i] = new Intl.DateTimeFormat("en-US", {
2783
2783
  timeZone: i,
2784
2784
  timeZoneName: "longOffset"
2785
2785
  }).format))(t).split("GMT")[1];
2786
- return e in _i ? _i[e] : $a(e, e.split(":"));
2786
+ return e in wi ? wi[e] : $a(e, e.split(":"));
2787
2787
  } catch {
2788
- if (i in _i) return _i[i];
2788
+ if (i in wi) return wi[i];
2789
2789
  const e = i == null ? void 0 : i.match(Eo);
2790
2790
  return e ? $a(i, e.slice(1)) : NaN;
2791
2791
  }
@@ -2793,23 +2793,23 @@ function Me(i, t) {
2793
2793
  const Eo = /([+-]\d\d):?(\d\d)?/;
2794
2794
  function $a(i, t) {
2795
2795
  const e = +(t[0] || 0), s = +(t[1] || 0), a = +(t[2] || 0) / 60;
2796
- return _i[i] = e * 60 + s > 0 ? e * 60 + s + a : e * 60 - s - a;
2796
+ return wi[i] = e * 60 + s > 0 ? e * 60 + s + a : e * 60 - s - a;
2797
2797
  }
2798
- let wi = class xi extends Date {
2798
+ let xi = class Si extends Date {
2799
2799
  //#region static
2800
2800
  constructor(...t) {
2801
- super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Me(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)), Qa(this), Is(this)) : this.setTime(Date.now());
2801
+ super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(Pe(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)), Qa(this), Is(this)) : this.setTime(Date.now());
2802
2802
  }
2803
2803
  static tz(t, ...e) {
2804
- return e.length ? new xi(...e, t) : new xi(Date.now(), t);
2804
+ return e.length ? new Si(...e, t) : new Si(Date.now(), t);
2805
2805
  }
2806
2806
  //#endregion
2807
2807
  //#region time zone
2808
2808
  withTimeZone(t) {
2809
- return new xi(+this, t);
2809
+ return new Si(+this, t);
2810
2810
  }
2811
2811
  getTimezoneOffset() {
2812
- const t = -Me(this.timeZone, this);
2812
+ const t = -Pe(this.timeZone, this);
2813
2813
  return t > 0 ? Math.floor(t) : Math.ceil(t);
2814
2814
  }
2815
2815
  //#endregion
@@ -2820,7 +2820,7 @@ let wi = class xi extends Date {
2820
2820
  //#endregion
2821
2821
  //#region date-fns integration
2822
2822
  [Symbol.for("constructDateFrom")](t) {
2823
- return new xi(+new Date(t), this.timeZone);
2823
+ return new Si(+new Date(t), this.timeZone);
2824
2824
  }
2825
2825
  //#endregion
2826
2826
  };
@@ -2828,22 +2828,22 @@ const _a = /^(get|set)(?!UTC)/;
2828
2828
  Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
2829
2829
  if (!_a.test(i)) return;
2830
2830
  const t = i.replace(_a, "$1UTC");
2831
- wi.prototype[t] && (i.startsWith("get") ? wi.prototype[i] = function() {
2831
+ xi.prototype[t] && (i.startsWith("get") ? xi.prototype[i] = function() {
2832
2832
  return this.internal[t]();
2833
- } : (wi.prototype[i] = function() {
2833
+ } : (xi.prototype[i] = function() {
2834
2834
  return Date.prototype[t].apply(this.internal, arguments), Oo(this), +this;
2835
- }, wi.prototype[t] = function() {
2835
+ }, xi.prototype[t] = function() {
2836
2836
  return Date.prototype[t].apply(this, arguments), Is(this), +this;
2837
2837
  }));
2838
2838
  });
2839
2839
  function Is(i) {
2840
- i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Me(i.timeZone, i) * 60));
2840
+ i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Pe(i.timeZone, i) * 60));
2841
2841
  }
2842
2842
  function Oo(i) {
2843
2843
  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()), Qa(i);
2844
2844
  }
2845
2845
  function Qa(i) {
2846
- const t = Me(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
2846
+ const t = Pe(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
2847
2847
  s.setUTCHours(s.getUTCHours() - 1);
2848
2848
  const a = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), n = -(/* @__PURE__ */ new Date(+s)).getTimezoneOffset(), r = a - n, l = Date.prototype.getHours.apply(i) !== i.internal.getUTCHours();
2849
2849
  r && l && i.internal.setUTCMinutes(i.internal.getUTCMinutes() + r);
@@ -2851,19 +2851,19 @@ function Qa(i) {
2851
2851
  d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
2852
2852
  const p = /* @__PURE__ */ new Date(+i);
2853
2853
  p.setUTCSeconds(0);
2854
- const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
2854
+ const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Pe(i.timeZone, i) * 60)) % 60;
2855
2855
  (f || m) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + m));
2856
- const y = Me(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = k - d;
2856
+ const y = Pe(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = k - d;
2857
2857
  if (w && C) {
2858
2858
  Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
2859
- const O = Me(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
2859
+ const O = Pe(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
2860
2860
  P && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + P), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + P));
2861
2861
  }
2862
2862
  }
2863
- let Rs = class Si extends wi {
2863
+ let Rs = class Ci extends xi {
2864
2864
  //#region static
2865
2865
  static tz(t, ...e) {
2866
- return e.length ? new Si(...e, t) : new Si(Date.now(), t);
2866
+ return e.length ? new Ci(...e, t) : new Ci(Date.now(), t);
2867
2867
  }
2868
2868
  //#endregion
2869
2869
  //#region representation
@@ -2908,11 +2908,11 @@ let Rs = class Si extends wi {
2908
2908
  }
2909
2909
  //#endregion
2910
2910
  withTimeZone(t) {
2911
- return new Si(+this, t);
2911
+ return new Ci(+this, t);
2912
2912
  }
2913
2913
  //#region date-fns integration
2914
2914
  [Symbol.for("constructDateFrom")](t) {
2915
- return new Si(+new Date(t), this.timeZone);
2915
+ return new Ci(+new Date(t), this.timeZone);
2916
2916
  }
2917
2917
  //#endregion
2918
2918
  };
@@ -2953,7 +2953,7 @@ const nt = (i) => {
2953
2953
  return /* @__PURE__ */ new Date();
2954
2954
  const s = new Date(i, t, e);
2955
2955
  return isNaN(s.getTime()) ? /* @__PURE__ */ new Date() : s;
2956
- }, yi = (i) => {
2956
+ }, $i = (i) => {
2957
2957
  let t;
2958
2958
  return typeof i == "number" ? t = new Rs(i, window.pktTz) : t = new Rs(i, window.pktTz), t.setHours(12, 0, 0, 0), t;
2959
2959
  }, Po = (i) => !i || isNaN(i.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(i), Do = (i, t, e) => {
@@ -2977,7 +2977,7 @@ const nt = (i) => {
2977
2977
  }), Bo = (i, t) => {
2978
2978
  const e = _e(i), s = _e(t);
2979
2979
  return !e || !s ? !1 : e <= s;
2980
- }, Ci = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ci(i), jo = (i) => i ? $e(i) : null, Fo = (i) => {
2980
+ }, Ti = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ti(i), jo = (i) => i ? $e(i) : null, Fo = (i) => {
2981
2981
  if (typeof i == "string")
2982
2982
  return i.split(",").map((t) => $e(t));
2983
2983
  if (Array.isArray(i))
@@ -2986,7 +2986,7 @@ const nt = (i) => {
2986
2986
  csvToArray: sn,
2987
2987
  stringToDate: jo,
2988
2988
  stringsToDate: Fo
2989
- }, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ae = {
2989
+ }, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ee = {
2990
2990
  props: Uo
2991
2991
  };
2992
2992
  var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t, e, s) => {
@@ -2996,7 +2996,7 @@ var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t,
2996
2996
  };
2997
2997
  let z = class extends K {
2998
2998
  constructor() {
2999
- super(...arguments), this.multiple = Ae.props.multiple.default, this.maxMultiple = Ae.props.maxMultiple.default, this.range = Ae.props.range.default, this.weeknumbers = Ae.props.weeknumbers.default, this.withcontrols = Ae.props.withcontrols.default, this.selected = [], this.earliest = Ae.props.earliest.default, this.latest = Ae.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.dayStringsLong = this.strings.dates.days, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
2999
+ super(...arguments), this.multiple = Ee.props.multiple.default, this.maxMultiple = Ee.props.maxMultiple.default, this.range = Ee.props.range.default, this.weeknumbers = Ee.props.weeknumbers.default, this.withcontrols = Ee.props.withcontrols.default, this.selected = [], this.earliest = Ee.props.earliest.default, this.latest = Ee.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.dayStringsLong = this.strings.dates.days, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
3000
3000
  }
3001
3001
  /**
3002
3002
  * Runs on mount, used to set up various values and whatever you need to run
@@ -3036,9 +3036,9 @@ let z = class extends K {
3036
3036
  setCurrentMonth() {
3037
3037
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
3038
3038
  const t = $e(this.selected[this.selected.length - 1]);
3039
- this.currentmonth = isNaN(t.getTime()) ? yi(/* @__PURE__ */ new Date()) : t;
3040
- } else this.currentmonth === null && (this.currentmonth = yi(/* @__PURE__ */ new Date()));
3041
- (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = yi(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
3039
+ this.currentmonth = isNaN(t.getTime()) ? $i(/* @__PURE__ */ new Date()) : t;
3040
+ } else this.currentmonth === null && (this.currentmonth = $i(/* @__PURE__ */ new Date()));
3041
+ (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = $i(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
3042
3042
  }
3043
3043
  handleKeydown(t) {
3044
3044
  switch (t.key) {
@@ -3314,7 +3314,7 @@ let z = class extends K {
3314
3314
  this.changeMonth(e, t);
3315
3315
  }
3316
3316
  changeMonth(t, e) {
3317
- this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = yi(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
3317
+ this.year = typeof t == "string" ? parseInt(t) : t, this.month = typeof e == "string" ? parseInt(e) : e, this.currentmonth = $i(new Date(this.year, this.month, 1)), this.tabIndexSet = 0, this.focusedDate = null, this.selectableDates = [];
3318
3318
  }
3319
3319
  isRangeAllowed(t) {
3320
3320
  let e = !0;
@@ -3379,7 +3379,7 @@ let z = class extends K {
3379
3379
  ), Promise.resolve();
3380
3380
  }
3381
3381
  focusOnCurrentDate() {
3382
- const t = nt(yi(/* @__PURE__ */ new Date())), e = this.querySelector(`button[data-date="${t}"]`);
3382
+ const t = nt($i(/* @__PURE__ */ new Date())), e = this.querySelector(`button[data-date="${t}"]`);
3383
3383
  if (e instanceof HTMLButtonElement)
3384
3384
  this.focusedDate = t, e.focus();
3385
3385
  else {
@@ -3591,23 +3591,23 @@ ae([
3591
3591
  Gt = ae([
3592
3592
  j("pkt-tag")
3593
3593
  ], Gt);
3594
- var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Bi = (i, t, e, s) => {
3594
+ var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, di = (i, t, e, s) => {
3595
3595
  for (var a = s > 1 ? void 0 : s ? Yo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
3596
3596
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3597
3597
  return s && a && Go(t, e, a), a;
3598
3598
  };
3599
- let Le = class extends ls {
3599
+ let we = class extends ls {
3600
3600
  constructor() {
3601
- super(...arguments), this.size = void 0, this.level = 2, this.visuallyHidden = !1, this.align = void 0;
3601
+ super(...arguments), this.size = void 0, this.level = 2, this.weight = void 0, this.visuallyHidden = !1, this.align = void 0;
3602
3602
  }
3603
3603
  connectedCallback() {
3604
3604
  super.connectedCallback(), this.setAttribute("role", "heading"), this.setAttribute("aria-level", String(this.level)), this.updateHostClasses();
3605
3605
  }
3606
3606
  attributeChangedCallback(t, e, s) {
3607
- super.attributeChangedCallback(t, e, s), t === "level" && s && this.setLevel(Number(s)), t === "visuallyHidden" && (this.visuallyHidden = s !== null && s !== "false"), (t === "size" || t === "visuallyHidden" || t === "align") && this.updateHostClasses();
3607
+ super.attributeChangedCallback(t, e, s), t === "level" && s && this.setLevel(Number(s)), t === "visuallyHidden" && (this.visuallyHidden = s !== null && s !== "false"), (t === "size" || t === "visuallyHidden" || t === "align" || t === "weight") && this.updateHostClasses();
3608
3608
  }
3609
3609
  updated(t) {
3610
- super.updated(t), t.has("level") && (this.setLevel(this.level), this.hasAttribute("size") || (this.size = this.defaultSizeForLevel)), !this.hasAttribute("size") && (t.has("level") || this.size === void 0) && (this.size = this.defaultSizeForLevel), (t.has("size") || t.has("visuallyHidden") || t.has("align")) && this.updateHostClasses();
3610
+ super.updated(t), t.has("level") && (this.setLevel(this.level), this.hasAttribute("size") || (this.size = this.defaultSizeForLevel), this.hasAttribute("weight") || (this.weight = this.defaultWeightForLevel)), !this.hasAttribute("size") && (t.has("level") || this.size === void 0) && (this.size = this.defaultSizeForLevel), (t.has("size") || t.has("visuallyHidden") || t.has("align") || t.has("weight")) && this.updateHostClasses();
3611
3611
  }
3612
3612
  setLevel(t) {
3613
3613
  t >= 1 && t <= 6 ? (this.level = t, this.setAttribute("aria-level", String(t))) : console.warn(`Invalid heading level: ${t}. Must be between 1 and 6.`);
@@ -3630,6 +3630,24 @@ let Le = class extends ls {
3630
3630
  return "medium";
3631
3631
  }
3632
3632
  }
3633
+ get defaultWeightForLevel() {
3634
+ switch (this.level) {
3635
+ case 1:
3636
+ return "regular";
3637
+ case 2:
3638
+ return "regular";
3639
+ case 3:
3640
+ return "medium";
3641
+ case 4:
3642
+ return "medium";
3643
+ case 5:
3644
+ return "medium";
3645
+ case 6:
3646
+ return "medium";
3647
+ default:
3648
+ return "medium";
3649
+ }
3650
+ }
3633
3651
  updateHostClasses() {
3634
3652
  this.classList.remove(
3635
3653
  "pkt-heading",
@@ -3641,28 +3659,35 @@ let Le = class extends ls {
3641
3659
  "pkt-sr-only",
3642
3660
  "pkt-heading--start",
3643
3661
  "pkt-heading--center",
3644
- "pkt-heading--end"
3645
- ), this.classList.add("pkt-heading"), this.size && this.classList.add(`pkt-heading--${this.size}`), this.visuallyHidden && this.classList.add("pkt-sr-only"), this.align && this.classList.add(`pkt-heading--${this.align}`);
3662
+ "pkt-heading--end",
3663
+ "pkt-heading--light",
3664
+ "pkt-heading--regular",
3665
+ "pkt-heading--medium",
3666
+ "pkt-heading--bold"
3667
+ ), this.classList.add("pkt-heading"), this.size && this.classList.add(`pkt-heading--${this.size}`), this.weight && this.classList.add(`pkt-heading--fw-${this.weight}`), this.visuallyHidden && this.classList.add("pkt-sr-only"), this.align && this.classList.add(`pkt-heading--${this.align}`);
3646
3668
  }
3647
3669
  render() {
3648
3670
  return u`<slot></slot>`;
3649
3671
  }
3650
3672
  };
3651
- Bi([
3673
+ di([
3652
3674
  o({ type: String, reflect: !0 })
3653
- ], Le.prototype, "size", 2);
3654
- Bi([
3675
+ ], we.prototype, "size", 2);
3676
+ di([
3655
3677
  o({ type: Number, reflect: !0 })
3656
- ], Le.prototype, "level", 2);
3657
- Bi([
3678
+ ], we.prototype, "level", 2);
3679
+ di([
3680
+ o({ type: String, reflect: !0 })
3681
+ ], we.prototype, "weight", 2);
3682
+ di([
3658
3683
  o({ type: Boolean, reflect: !0 })
3659
- ], Le.prototype, "visuallyHidden", 2);
3660
- Bi([
3684
+ ], we.prototype, "visuallyHidden", 2);
3685
+ di([
3661
3686
  o({ type: String, reflect: !0 })
3662
- ], Le.prototype, "align", 2);
3663
- Le = Bi([
3687
+ ], we.prototype, "align", 2);
3688
+ we = di([
3664
3689
  j("pkt-heading")
3665
- ], Le);
3690
+ ], we);
3666
3691
  const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
3667
3692
  props: Zo
3668
3693
  };
@@ -3916,22 +3941,22 @@ const xa = (i, t, e) => {
3916
3941
  let p, m, f = 0, y = a.length - 1, b = 0, k = n.length - 1;
3917
3942
  for (; f <= y && b <= k; ) if (a[f] === null) f++;
3918
3943
  else if (a[y] === null) y--;
3919
- else if (l[f] === r[b]) d[b] = Ne(a[f], n[b]), f++, b++;
3920
- else if (l[y] === r[k]) d[k] = Ne(a[y], n[k]), y--, k--;
3921
- else if (l[f] === r[k]) d[k] = Ne(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
3922
- else if (l[y] === r[b]) d[b] = Ne(a[y], n[b]), vi(i, a[f], a[y]), y--, b++;
3944
+ else if (l[f] === r[b]) d[b] = Ae(a[f], n[b]), f++, b++;
3945
+ else if (l[y] === r[k]) d[k] = Ae(a[y], n[k]), y--, k--;
3946
+ else if (l[f] === r[k]) d[k] = Ae(a[f], n[k]), bi(i, d[k + 1], a[f]), f++, k--;
3947
+ else if (l[y] === r[b]) d[b] = Ae(a[y], n[b]), bi(i, a[f], a[y]), y--, b++;
3923
3948
  else if (p === void 0 && (p = xa(r, b, k), m = xa(l, f, y)), p.has(l[f])) if (p.has(l[y])) {
3924
3949
  const w = m.get(r[b]), C = w !== void 0 ? a[w] : null;
3925
3950
  if (C === null) {
3926
- const O = vi(i, a[f]);
3927
- Ne(O, n[b]), d[b] = O;
3928
- } else d[b] = Ne(C, n[b]), vi(i, a[f], C), a[w] = null;
3951
+ const O = bi(i, a[f]);
3952
+ Ae(O, n[b]), d[b] = O;
3953
+ } else d[b] = Ae(C, n[b]), bi(i, a[f], C), a[w] = null;
3929
3954
  b++;
3930
3955
  } else ys(a[y]), y--;
3931
3956
  else ys(a[f]), f++;
3932
3957
  for (; b <= k; ) {
3933
- const w = vi(i, d[k + 1]);
3934
- Ne(w, n[b]), d[b++] = w;
3958
+ const w = bi(i, d[k + 1]);
3959
+ Ae(w, n[b]), d[b++] = w;
3935
3960
  }
3936
3961
  for (; f <= y; ) {
3937
3962
  const w = a[f++];
@@ -4051,9 +4076,9 @@ function il() {
4051
4076
  return a.has(vs) && vs.constructor.formAssociated && !(ft && ft.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4052
4077
  }
4053
4078
  });
4054
- let mi = Pt.nextNode();
4055
- for (; mi; )
4056
- T(mi), mi = Pt.nextNode();
4079
+ let fi = Pt.nextNode();
4080
+ for (; fi; )
4081
+ T(fi), fi = Pt.nextNode();
4057
4082
  }
4058
4083
  U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, N), P(U, !0));
4059
4084
  }), V.forEach((U) => {
@@ -4067,7 +4092,7 @@ function il() {
4067
4092
  const { removedNodes: v } = c;
4068
4093
  v.forEach((_) => {
4069
4094
  const I = b.get(c.target);
4070
- a.has(_) && Ce(_), I.disconnect();
4095
+ a.has(_) && Te(_), I.disconnect();
4071
4096
  });
4072
4097
  });
4073
4098
  }
@@ -4107,7 +4132,7 @@ function il() {
4107
4132
  Qt(Ut(g.target));
4108
4133
  }, te = (g) => {
4109
4134
  Qt(Ut(g.target));
4110
- }, xe = (g) => {
4135
+ }, Se = (g) => {
4111
4136
  const c = ["button[type=submit]", "input[type=submit]", "button:not([type])"].map((v) => `${v}:not([disabled])`).map((v) => `${v}:not([form])${g.id ? `,${v}[form='${g.id}']` : ""}`).join(",");
4112
4137
  g.addEventListener("click", (v) => {
4113
4138
  if (v.target.closest(c)) {
@@ -4129,7 +4154,7 @@ function il() {
4129
4154
  _.add(g);
4130
4155
  else {
4131
4156
  const I = /* @__PURE__ */ new Set();
4132
- I.add(g), d.set(c, I), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4157
+ I.add(g), d.set(c, I), Se(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4133
4158
  }
4134
4159
  r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
4135
4160
  g.formAssociatedCallback.apply(g, [c]);
@@ -4141,12 +4166,12 @@ function il() {
4141
4166
  }, ot = (g, c, v = DOMException) => {
4142
4167
  if (!g.constructor.formAssociated)
4143
4168
  throw new v(c);
4144
- }, Se = (g, c, v) => {
4169
+ }, Ce = (g, c, v) => {
4145
4170
  const _ = d.get(g);
4146
4171
  return _ && _.size && _.forEach((I) => {
4147
4172
  a.get(I)[v]() || (c = !1);
4148
4173
  }), c;
4149
- }, Ce = (g) => {
4174
+ }, Te = (g) => {
4150
4175
  if (g.constructor.formAssociated) {
4151
4176
  const c = a.get(g), { labels: v, form: _ } = c;
4152
4177
  xt(g, v), le(g, _, c);
@@ -4169,7 +4194,7 @@ function il() {
4169
4194
  function Ge(g, c) {
4170
4195
  g.toggleAttribute(c, !0), g.part && g.part.add(c);
4171
4196
  }
4172
- class ui extends Set {
4197
+ class mi extends Set {
4173
4198
  static get isPolyfilled() {
4174
4199
  return !0;
4175
4200
  }
@@ -4236,11 +4261,11 @@ function il() {
4236
4261
  HTMLFormElement.prototype.reportValidity = _;
4237
4262
  function v(...V) {
4238
4263
  let U = g.apply(this, V);
4239
- return Se(this, U, "checkValidity");
4264
+ return Ce(this, U, "checkValidity");
4240
4265
  }
4241
4266
  function _(...V) {
4242
4267
  let U = c.apply(this, V);
4243
- return Se(this, U, "reportValidity");
4268
+ return Ce(this, U, "reportValidity");
4244
4269
  }
4245
4270
  const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4246
4271
  Object.defineProperty(HTMLFormElement.prototype, "elements", {
@@ -4248,7 +4273,7 @@ function il() {
4248
4273
  const U = I.call(this, ...V), Mt = Array.from(d.get(this) || []);
4249
4274
  if (Mt.length === 0)
4250
4275
  return U;
4251
- const ft = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4276
+ const ft = Array.from(U).concat(Mt).sort((Pt, fi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(fi) & 2 ? 1 : -1 : 0);
4252
4277
  return new zi(ft);
4253
4278
  }
4254
4279
  });
@@ -4261,7 +4286,7 @@ function il() {
4261
4286
  if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
4262
4287
  throw new TypeError("Illegal constructor");
4263
4288
  const v = c.getRootNode(), _ = new us();
4264
- this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && mt(v);
4289
+ this.states = new mi(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && mt(v);
4265
4290
  }
4266
4291
  checkValidity() {
4267
4292
  const c = t.get(this);
@@ -4373,9 +4398,9 @@ function il() {
4373
4398
  }
4374
4399
  let zs = !1, Ws = !1;
4375
4400
  function gs(g) {
4376
- Ws || (Ws = !0, window.CustomStateSet = ui, g && (HTMLElement.prototype.attachInternals = function(...c) {
4401
+ Ws || (Ws = !0, window.CustomStateSet = mi, g && (HTMLElement.prototype.attachInternals = function(...c) {
4377
4402
  const v = g.call(this, c);
4378
- return v.states = new ui(this), v;
4403
+ return v.states = new mi(this), v;
4379
4404
  }));
4380
4405
  }
4381
4406
  function Ks(g = !0) {
@@ -4386,7 +4411,7 @@ function il() {
4386
4411
  if (_.formAssociated) {
4387
4412
  const V = _.prototype.connectedCallback;
4388
4413
  _.prototype.connectedCallback = function() {
4389
- k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Ce(this);
4414
+ k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Te(this);
4390
4415
  };
4391
4416
  }
4392
4417
  c.call(this, v, _, I);
@@ -6165,7 +6190,7 @@ Vi([
6165
6190
  ai = Vi([
6166
6191
  j("pkt-date-tags")
6167
6192
  ], ai);
6168
- const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
6193
+ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, _i = {
6169
6194
  props: xl
6170
6195
  }, Be = () => {
6171
6196
  const i = navigator.userAgent;
@@ -6203,7 +6228,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6203
6228
  getInputType() {
6204
6229
  return Be() ? "text" : "date";
6205
6230
  }
6206
- }, Pi = {
6231
+ }, Di = {
6207
6232
  /**
6208
6233
  * Submits the form that contains the given element
6209
6234
  */
@@ -6255,7 +6280,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6255
6280
  let l = e ? "calc(100% - 30px)" : "100%";
6256
6281
  a && a.top + r > window.innerHeight && a.top - r > 0 && (l = `calc(100% - ${n}px - ${r}px)`), i.value.style.top = l;
6257
6282
  }
6258
- }, Di = {
6283
+ }, Ii = {
6259
6284
  /**
6260
6285
  * Generates input classes for datepicker
6261
6286
  */
@@ -6316,7 +6341,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6316
6341
  l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
6317
6342
  } else t[0] && s();
6318
6343
  }
6319
- }, Pe = {
6344
+ }, De = {
6320
6345
  /**
6321
6346
  * Handles common keyboard interactions for datepicker inputs
6322
6347
  */
@@ -6548,10 +6573,10 @@ let It = class extends K {
6548
6573
  t.preventDefault(), this.dispatchToggleCalendar(t);
6549
6574
  }}
6550
6575
  ?disabled=${this.disabled}
6551
- @keydown=${(t) => Pe.handleInputKeydown(
6576
+ @keydown=${(t) => De.handleInputKeydown(
6552
6577
  t,
6553
6578
  (e) => this.dispatchToggleCalendar(e),
6554
- () => Pi.submitFormOrFallback(this.internals, () => {
6579
+ () => Di.submitFormOrFallback(this.internals, () => {
6555
6580
  var e;
6556
6581
  return (e = this.inputRef.value) == null ? void 0 : e.blur();
6557
6582
  }),
@@ -6582,10 +6607,10 @@ let It = class extends K {
6582
6607
  ${E(this.inputRef)}
6583
6608
  />
6584
6609
  <button
6585
- class="${M(Di.getButtonClasses())}"
6610
+ class="${M(Ii.getButtonClasses())}"
6586
6611
  type="button"
6587
6612
  @click=${(t) => this.dispatchToggleCalendar(t)}
6588
- @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6613
+ @keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6589
6614
  ?disabled=${this.disabled}
6590
6615
  ${E(this.btnRef)}
6591
6616
  >
@@ -6710,7 +6735,7 @@ let Tt = class extends K {
6710
6735
  return this;
6711
6736
  }
6712
6737
  render() {
6713
- const t = Di.getRangeLabelClasses(this.showRangeLabels);
6738
+ const t = Ii.getRangeLabelClasses(this.showRangeLabels);
6714
6739
  return u`
6715
6740
  <div class="pkt-input__container">
6716
6741
  ${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
@@ -6730,10 +6755,10 @@ let Tt = class extends K {
6730
6755
  @touchend=${(e) => {
6731
6756
  e.preventDefault(), this.dispatchToggleCalendar(e);
6732
6757
  }}
6733
- @keydown=${(e) => Pe.handleInputKeydown(
6758
+ @keydown=${(e) => De.handleInputKeydown(
6734
6759
  e,
6735
6760
  (s) => this.dispatchToggleCalendar(s),
6736
- () => Pi.submitFormOrFallback(
6761
+ () => Di.submitFormOrFallback(
6737
6762
  this.internals,
6738
6763
  () => {
6739
6764
  var s;
@@ -6794,10 +6819,10 @@ let Tt = class extends K {
6794
6819
  @touchend=${(e) => {
6795
6820
  e.preventDefault(), this.dispatchToggleCalendar(e);
6796
6821
  }}
6797
- @keydown=${(e) => Pe.handleInputKeydown(
6822
+ @keydown=${(e) => De.handleInputKeydown(
6798
6823
  e,
6799
6824
  (s) => this.dispatchToggleCalendar(s),
6800
- () => Pi.submitFormOrFallback(this.internals, () => {
6825
+ () => Di.submitFormOrFallback(this.internals, () => {
6801
6826
  var s;
6802
6827
  return (s = this.inputRefTo.value) == null ? void 0 : s.blur();
6803
6828
  }),
@@ -6834,10 +6859,10 @@ let Tt = class extends K {
6834
6859
  ${E(this.inputRefTo)}
6835
6860
  />
6836
6861
  <button
6837
- class="${M(Di.getButtonClasses())}"
6862
+ class="${M(Ii.getButtonClasses())}"
6838
6863
  type="button"
6839
6864
  @click=${(e) => this.dispatchToggleCalendar(e)}
6840
- @keydown=${(e) => Pe.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6865
+ @keydown=${(e) => De.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6841
6866
  ?disabled=${this.disabled}
6842
6867
  ${E(this.btnRef)}
6843
6868
  >
@@ -6991,10 +7016,10 @@ let Nt = class extends K {
6991
7016
  @focus=${() => {
6992
7017
  this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6993
7018
  }}
6994
- @keydown=${(t) => Pe.handleInputKeydown(
7019
+ @keydown=${(t) => De.handleInputKeydown(
6995
7020
  t,
6996
7021
  (e) => this.dispatchToggleCalendar(e),
6997
- () => Pi.submitFormOrFallback(this.internals, () => {
7022
+ () => Di.submitFormOrFallback(this.internals, () => {
6998
7023
  var e;
6999
7024
  return (e = this.inputRef.value) == null ? void 0 : e.blur();
7000
7025
  }),
@@ -7008,10 +7033,10 @@ let Nt = class extends K {
7008
7033
  ${E(this.inputRef)}
7009
7034
  />
7010
7035
  <button
7011
- class="${M(Di.getButtonClasses())}"
7036
+ class="${M(Ii.getButtonClasses())}"
7012
7037
  type="button"
7013
7038
  @click=${(t) => this.dispatchToggleCalendar(t)}
7014
- @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
7039
+ @keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
7015
7040
  ?disabled=${this.disabled}
7016
7041
  ${E(this.btnRef)}
7017
7042
  >
@@ -7071,7 +7096,7 @@ let tt = class extends D {
7071
7096
  * Housekeeping / lifecycle methods
7072
7097
  */
7073
7098
  constructor() {
7074
- super(), this._valueProperty = "", this.datepickerPopupRef = A(), this._value = [], this.label = "Datovelger", this.dateformat = $i.props.dateformat.default, this.multiple = $i.props.multiple.default, this.maxlength = null, this.range = $i.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = $i.props.weeknumbers.default, this.withcontrols = $i.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = A(), this.popupRef = A(), this.helptextSlot = A(), this.singleInputRef = A(), this.rangeInputRef = A(), this.multipleInputRef = A(), this.addToSelected = (i) => {
7099
+ super(), this._valueProperty = "", this.datepickerPopupRef = A(), this._value = [], this.label = "Datovelger", this.dateformat = _i.props.dateformat.default, this.multiple = _i.props.multiple.default, this.maxlength = null, this.range = _i.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = _i.props.weeknumbers.default, this.withcontrols = _i.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = A(), this.popupRef = A(), this.helptextSlot = A(), this.singleInputRef = A(), this.rangeInputRef = A(), this.multipleInputRef = A(), this.addToSelected = (i) => {
7075
7100
  const t = this.datepickerPopupRef.value;
7076
7101
  return t && typeof t.addToSelected == "function" ? t.addToSelected(i, this.min, this.max) : ns.addToSelected(i, this.calRef, this.min, this.max);
7077
7102
  }, this.slotController = new rt(this, this.helptextSlot);
@@ -7100,7 +7125,7 @@ let tt = class extends D {
7100
7125
  }
7101
7126
  valueChanged(i, t) {
7102
7127
  if (i === t) return;
7103
- const e = Ci(i), s = this.multiple && e.length > 1 ? Yi.filterSelectableDates(
7128
+ const e = Ti(i), s = this.multiple && e.length > 1 ? Yi.filterSelectableDates(
7104
7129
  e,
7105
7130
  this.min,
7106
7131
  this.max,
@@ -7116,14 +7141,14 @@ let tt = class extends D {
7116
7141
  this._valueProperty !== a && (this._valueProperty = a), super.valueChanged(a, t);
7117
7142
  }
7118
7143
  attributeChangedCallback(i, t, e) {
7119
- i === "value" && this.value !== t && this.valueChanged(e, t), i === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = Ci(e || "")), i === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = Ci(e || "")), super.attributeChangedCallback(i, t, e);
7144
+ i === "value" && this.value !== t && this.valueChanged(e, t), i === "excludedates" && typeof this.excludedates == "string" && (this.excludedates = Ti(e || "")), i === "excludeweekdays" && typeof this.excludeweekdays == "string" && (this.excludeweekdays = Ti(e || "")), super.attributeChangedCallback(i, t, e);
7120
7145
  }
7121
7146
  updated(i) {
7122
7147
  if (i.has("value")) {
7123
7148
  const t = Array.isArray(this.value) ? this.value.join(",") : this.value, e = i.get("value"), s = Array.isArray(e) ? e.join(",") : e;
7124
7149
  this.valueChanged(t, s);
7125
7150
  }
7126
- (i.has("multiple") || i.has("range")) && (this.name = Yi.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name), i.has("multiple") && (this.multiple && !Array.isArray(this._value) ? this._value = Ci(this.value) : !this.multiple && Array.isArray(this._value) && (this._value = this._value.filter(Boolean)), !this.multiple && !this.range && Array.isArray(this._value) && (this._value = [this._value[0] ?? ""])), super.updated(i);
7151
+ (i.has("multiple") || i.has("range")) && (this.name = Yi.normalizeNameForMultiple(this.name, this.multiple, this.range) || this.name), i.has("multiple") && (this.multiple && !Array.isArray(this._value) ? this._value = Ti(this.value) : !this.multiple && Array.isArray(this._value) && (this._value = this._value.filter(Boolean)), !this.multiple && !this.range && Array.isArray(this._value) && (this._value = [this._value[0] ?? ""])), super.updated(i);
7127
7152
  }
7128
7153
  /**
7129
7154
  * Element references
@@ -7221,7 +7246,7 @@ let tt = class extends D {
7221
7246
  }}
7222
7247
  @manage-validity=${(i) => this.manageValidity(i.detail)}
7223
7248
  @validate-date-input=${(i) => {
7224
- Pi.validateDateInput(i.detail, this.internals, this.min, this.max, this.strings);
7249
+ Di.validateDateInput(i.detail, this.internals, this.min, this.max, this.strings);
7225
7250
  }}
7226
7251
  @handle-date-select=${(i) => {
7227
7252
  var t, e;
@@ -7299,7 +7324,7 @@ let tt = class extends D {
7299
7324
  `;
7300
7325
  }
7301
7326
  render() {
7302
- return this.inputClasses = Di.getInputClasses(
7327
+ return this.inputClasses = Ii.getInputClasses(
7303
7328
  this.fullwidth,
7304
7329
  this.showRangeLabels,
7305
7330
  this.multiple,
@@ -7452,7 +7477,7 @@ tt = ct([
7452
7477
  const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
7453
7478
  props: Rl
7454
7479
  };
7455
- var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, di = (i, t, e, s) => {
7480
+ var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, ci = (i, t, e, s) => {
7456
7481
  for (var a = s > 1 ? void 0 : s ? Bl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7457
7482
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7458
7483
  return s && a && Ll(t, e, a), a;
@@ -7477,22 +7502,22 @@ let Ve = class extends K {
7477
7502
  >`;
7478
7503
  }
7479
7504
  };
7480
- di([
7505
+ ci([
7481
7506
  o({ type: String, reflect: !0 })
7482
7507
  ], Ve.prototype, "href", 2);
7483
- di([
7508
+ ci([
7484
7509
  o({ type: String, reflect: !0 })
7485
7510
  ], Ve.prototype, "iconName", 2);
7486
- di([
7511
+ ci([
7487
7512
  o({ type: String, reflect: !0 })
7488
7513
  ], Ve.prototype, "iconPosition", 2);
7489
- di([
7514
+ ci([
7490
7515
  o({ type: Boolean, reflect: !0 })
7491
7516
  ], Ve.prototype, "external", 2);
7492
- di([
7517
+ ci([
7493
7518
  o({ type: String, reflect: !0 })
7494
7519
  ], Ve.prototype, "target", 2);
7495
- Ve = di([
7520
+ Ve = ci([
7496
7521
  j("pkt-link")
7497
7522
  ], Ve);
7498
7523
  var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
@@ -7500,7 +7525,7 @@ var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t
7500
7525
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7501
7526
  return s && a && Vl(t, e, a), a;
7502
7527
  };
7503
- let we = class extends K {
7528
+ let xe = class extends K {
7504
7529
  constructor() {
7505
7530
  super(), this.defaultSlot = A(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
7506
7531
  }
@@ -7523,31 +7548,31 @@ let we = class extends K {
7523
7548
  };
7524
7549
  ze([
7525
7550
  o({ type: String, reflect: !0 })
7526
- ], we.prototype, "title", 2);
7551
+ ], xe.prototype, "title", 2);
7527
7552
  ze([
7528
7553
  o({ type: String, reflect: !0 })
7529
- ], we.prototype, "href", 2);
7554
+ ], xe.prototype, "href", 2);
7530
7555
  ze([
7531
7556
  o({ type: String, reflect: !0 })
7532
- ], we.prototype, "iconName", 2);
7557
+ ], xe.prototype, "iconName", 2);
7533
7558
  ze([
7534
7559
  o({ type: Boolean, reflect: !0 })
7535
- ], we.prototype, "external", 2);
7560
+ ], xe.prototype, "external", 2);
7536
7561
  ze([
7537
7562
  o({ type: Boolean, reflect: !0 })
7538
- ], we.prototype, "openInNewTab", 2);
7563
+ ], xe.prototype, "openInNewTab", 2);
7539
7564
  ze([
7540
7565
  o({ type: String, reflect: !0 })
7541
- ], we.prototype, "skin", 2);
7542
- we = ze([
7566
+ ], xe.prototype, "skin", 2);
7567
+ xe = ze([
7543
7568
  j("pkt-linkcard")
7544
- ], we);
7569
+ ], xe);
7545
7570
  var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
7546
7571
  for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7547
7572
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7548
7573
  return s && a && Fl(t, e, a), a;
7549
7574
  };
7550
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
7575
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
7551
7576
  let Yt = class extends K {
7552
7577
  constructor() {
7553
7578
  super(), this.defaultSlot = A(), 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);
@@ -7630,7 +7655,7 @@ Yt = pe([
7630
7655
  const Hl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ns = {
7631
7656
  props: Hl
7632
7657
  };
7633
- var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, ci = (i, t, e, s) => {
7658
+ var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, pi = (i, t, e, s) => {
7634
7659
  for (var a = s > 1 ? void 0 : s ? zl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7635
7660
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7636
7661
  return s && a && ql(t, e, a), a;
@@ -7669,22 +7694,22 @@ let je = class extends K {
7669
7694
  </div>`;
7670
7695
  }
7671
7696
  };
7672
- ci([
7697
+ pi([
7673
7698
  o({ type: Boolean, reflect: !0 })
7674
7699
  ], je.prototype, "closable", 2);
7675
- ci([
7700
+ pi([
7676
7701
  o({ type: Boolean, reflect: !0 })
7677
7702
  ], je.prototype, "compact", 2);
7678
- ci([
7703
+ pi([
7679
7704
  o({ type: String, reflect: !0 })
7680
7705
  ], je.prototype, "title", 2);
7681
- ci([
7706
+ pi([
7682
7707
  o({ type: String, reflect: !0 })
7683
7708
  ], je.prototype, "skin", 2);
7684
- ci([
7709
+ pi([
7685
7710
  B()
7686
7711
  ], je.prototype, "_isClosed", 2);
7687
- je = ci([
7712
+ je = pi([
7688
7713
  j("pkt-messagebox")
7689
7714
  ], je);
7690
7715
  const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
@@ -8245,7 +8270,7 @@ function ah({ context: i, subscribe: t }) {
8245
8270
  };
8246
8271
  }
8247
8272
  const on = Symbol("pkt-tabs-context");
8248
- var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, pi = (i, t, e, s) => {
8273
+ var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, ui = (i, t, e, s) => {
8249
8274
  for (var a = s > 1 ? void 0 : s ? rh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8250
8275
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8251
8276
  return s && a && nh(t, e, a), a;
@@ -8300,23 +8325,23 @@ let Fe = class extends K {
8300
8325
  `;
8301
8326
  }
8302
8327
  };
8303
- pi([
8328
+ ui([
8304
8329
  o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
8305
8330
  ], Fe.prototype, "arrowNav", 2);
8306
- pi([
8331
+ ui([
8307
8332
  o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
8308
8333
  ], Fe.prototype, "disableArrowNav", 2);
8309
- pi([
8334
+ ui([
8310
8335
  B()
8311
8336
  ], Fe.prototype, "tabRefs", 2);
8312
- pi([
8337
+ ui([
8313
8338
  B()
8314
8339
  ], Fe.prototype, "tabCount", 2);
8315
- pi([
8340
+ ui([
8316
8341
  sh({ context: on }),
8317
8342
  B()
8318
8343
  ], Fe.prototype, "context", 2);
8319
- Fe = pi([
8344
+ Fe = ui([
8320
8345
  j("pkt-tabs")
8321
8346
  ], Fe);
8322
8347
  var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
@@ -8665,7 +8690,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t
8665
8690
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8666
8691
  return s && a && mh(t, e, a), a;
8667
8692
  };
8668
- let Ii = class extends D {
8693
+ let Ri = class extends D {
8669
8694
  constructor() {
8670
8695
  super(), this.inputRef = A(), this.helptextSlot = A(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
8671
8696
  }
@@ -8812,16 +8837,16 @@ let Ii = class extends D {
8812
8837
  };
8813
8838
  cs([
8814
8839
  o({ type: Array, attribute: "options" })
8815
- ], Ii.prototype, "_optionsProp", 2);
8840
+ ], Ri.prototype, "_optionsProp", 2);
8816
8841
  cs([
8817
8842
  o({ type: String })
8818
- ], Ii.prototype, "value", 2);
8843
+ ], Ri.prototype, "value", 2);
8819
8844
  cs([
8820
8845
  B()
8821
- ], Ii.prototype, "_options", 2);
8822
- Ii = cs([
8846
+ ], Ri.prototype, "_options", 2);
8847
+ Ri = cs([
8823
8848
  j("pkt-select")
8824
- ], Ii);
8849
+ ], Ri);
8825
8850
  var gh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, Fi = (i, t, e, s) => {
8826
8851
  for (var a = s > 1 ? void 0 : s ? vh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8827
8852
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -8915,7 +8940,7 @@ ri = Fi([
8915
8940
  ], ri);
8916
8941
  const L = Jt({
8917
8942
  tagName: "pkt-icon",
8918
- elementClass: Re,
8943
+ elementClass: Le,
8919
8944
  react: gt,
8920
8945
  displayName: "PktIcon",
8921
8946
  events: {}
@@ -8934,7 +8959,7 @@ const L = Jt({
8934
8959
  onToggle: m
8935
8960
  }, f) => {
8936
8961
  const [y, b] = ke(i), { name: k } = kn(), w = l || k, C = n !== void 0 ? n : y;
8937
- De(() => {
8962
+ Ie(() => {
8938
8963
  n === void 0 && b(i);
8939
8964
  }, [i, n]);
8940
8965
  const O = (N) => {
@@ -9116,7 +9141,7 @@ const Gd = Z(
9116
9141
  ] });
9117
9142
  }
9118
9143
  );
9119
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
9144
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
9120
9145
  const oi = Z(
9121
9146
  ({
9122
9147
  children: i,
@@ -9211,9 +9236,9 @@ const Sh = Z(
9211
9236
  ...T
9212
9237
  }, P) => {
9213
9238
  const N = Bs(null);
9214
- De(() => {
9239
+ Ie(() => {
9215
9240
  N.current && y !== void 0 && (N.current.indeterminate = y);
9216
- }, [y]), De(() => {
9241
+ }, [y]), Ie(() => {
9217
9242
  typeof P == "function" ? P(N.current) : P && (P.current = N.current);
9218
9243
  }, [P]);
9219
9244
  const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
@@ -9569,7 +9594,7 @@ const Yd = ({
9569
9594
  name: "oslologo",
9570
9595
  className: "pkt-header__logo-svg",
9571
9596
  "aria-hidden": "true",
9572
- path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9597
+ path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9573
9598
  }
9574
9599
  ) }) : /* @__PURE__ */ h(
9575
9600
  "button",
@@ -9583,7 +9608,7 @@ const Yd = ({
9583
9608
  name: "oslologo",
9584
9609
  className: "pkt-header__logo-svg",
9585
9610
  "aria-hidden": "true",
9586
- path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9611
+ path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9587
9612
  }
9588
9613
  )
9589
9614
  }
@@ -9695,7 +9720,7 @@ const Yd = ({
9695
9720
  }
9696
9721
  ), Eh = Jt({
9697
9722
  tagName: "pkt-heading",
9698
- elementClass: Le,
9723
+ elementClass: we,
9699
9724
  react: gt,
9700
9725
  displayName: "PktHeading"
9701
9726
  }), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
@@ -9756,7 +9781,7 @@ const ps = Z(
9756
9781
  ].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Ot ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
9757
9782
  r,
9758
9783
  l ? `/${l}` : ""
9759
- ] }) : null, xe = () => /* @__PURE__ */ x(Wt, { children: [
9784
+ ] }) : null, Se = () => /* @__PURE__ */ x(Wt, { children: [
9760
9785
  y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
9761
9786
  d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
9762
9787
  m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
@@ -9764,7 +9789,7 @@ const ps = Z(
9764
9789
  const ot = /* @__PURE__ */ x(Wt, { children: [
9765
9790
  t,
9766
9791
  " ",
9767
- xe()
9792
+ Se()
9768
9793
  ] });
9769
9794
  return T ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Et, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Et, id: `${i}-label`, children: t });
9770
9795
  }, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
@@ -10217,7 +10242,7 @@ const Xd = Z(
10217
10242
  const [b, k] = ke(!1), w = Ls(() => {
10218
10243
  k(!0), d && d();
10219
10244
  }, [k]), C = Bs(null), [O, T] = ke("");
10220
- De(() => {
10245
+ Ie(() => {
10221
10246
  var G, _t;
10222
10247
  T(((_t = (G = C.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10223
10248
  }, [i]);
@@ -10292,7 +10317,7 @@ const cn = Oa(null), Gh = () => {
10292
10317
  }, lc = Z(
10293
10318
  ({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
10294
10319
  const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
10295
- De(() => {
10320
+ Ie(() => {
10296
10321
  r.current = r.current.slice(0, p);
10297
10322
  }, [p]);
10298
10323
  const m = (k) => {
@@ -10358,12 +10383,12 @@ const cn = Oa(null), Gh = () => {
10358
10383
  skipForwardTestid: R = !1,
10359
10384
  ...xt
10360
10385
  }, Qt) => {
10361
- const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, xe = `${te}-label`, We = e || xe, [le, Ut] = ke(0), ot = (Se) => {
10362
- var Ce, he;
10363
- if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), mt)
10364
- return mt(Se);
10386
+ const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, Se = `${te}-label`, We = e || Se, [le, Ut] = ke(0), ot = (Ce) => {
10387
+ var Te, he;
10388
+ if (s && Ut(((he = (Te = Ce.currentTarget) == null ? void 0 : Te.value) == null ? void 0 : he.length) || 0), mt)
10389
+ return mt(Ce);
10365
10390
  };
10366
- return De(() => {
10391
+ return Ie(() => {
10367
10392
  J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
10368
10393
  }, [J]), /* @__PURE__ */ h(
10369
10394
  ps,
@@ -10450,19 +10475,19 @@ const cn = Oa(null), Gh = () => {
10450
10475
  min: Qt,
10451
10476
  max: oe,
10452
10477
  step: te,
10453
- size: xe,
10478
+ size: Se,
10454
10479
  readonly: We,
10455
10480
  required: le,
10456
10481
  dataTestid: Ut,
10457
10482
  onChange: ot,
10458
- skipForwardTestid: Se = !1,
10459
- ...Ce
10483
+ skipForwardTestid: Ce = !1,
10484
+ ...Te
10460
10485
  }, he) => {
10461
- const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`, ui = `${Ge}-label`, qi = e || ui, fs = (me) => {
10486
+ const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`, mi = `${Ge}-label`, qi = e || mi, fs = (me) => {
10462
10487
  var zi, Wi;
10463
10488
  a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
10464
10489
  };
10465
- return De(() => {
10490
+ return Ie(() => {
10466
10491
  at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
10467
10492
  }, [at]), /* @__PURE__ */ h(
10468
10493
  ps,
@@ -10492,13 +10517,13 @@ const cn = Oa(null), Gh = () => {
10492
10517
  {
10493
10518
  className: "pkt-input__container",
10494
10519
  "data-testid": Ut,
10495
- "data-skip-forward-testid": Se ? "true" : void 0,
10520
+ "data-skip-forward-testid": Ce ? "true" : void 0,
10496
10521
  children: [
10497
10522
  mt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: mt }),
10498
10523
  /* @__PURE__ */ h(
10499
10524
  "input",
10500
10525
  {
10501
- ...Ce,
10526
+ ...Te,
10502
10527
  ref: he,
10503
10528
  className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
10504
10529
  type: st,
@@ -10517,7 +10542,7 @@ const cn = Oa(null), Gh = () => {
10517
10542
  step: te,
10518
10543
  minLength: R,
10519
10544
  maxLength: xt,
10520
- size: xe,
10545
+ size: Se,
10521
10546
  required: le
10522
10547
  }
10523
10548
  ),