@oslokommune/punkt-react 13.19.2 → 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 mt, { 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.19/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,34 +1052,34 @@ 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
1073
1073
  * SPDX-License-Identifier: BSD-3-Clause
1074
1074
  */
1075
- const C = (i) => i ?? $;
1076
- var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
1075
+ const S = (i) => i ?? $;
1076
+ var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ut = (i, t, e, s) => {
1077
1077
  for (var a = s > 1 ? void 0 : s ? cr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
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.19/animations/";
1082
- let ft = class extends K {
1081
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
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);
1085
1085
  }
@@ -1124,70 +1124,84 @@ let ft = class extends K {
1124
1124
  class=${M(e)}
1125
1125
  type=${this.type}
1126
1126
  ?disabled=${!!this.disabled}
1127
- aria-busy=${C(this.isLoading ? "true" : void 0)}
1128
- aria-disabled=${C(this.disabled || this.isLoading ? "true" : void 0)}
1129
- form=${C(t)}
1127
+ aria-busy=${S(this.isLoading ? "true" : void 0)}
1128
+ aria-disabled=${S(this.disabled || this.isLoading ? "true" : void 0)}
1129
+ form=${S(t)}
1130
1130
  >
1131
1131
  ${this.isLoading ? u`<pkt-icon
1132
1132
  class="pkt-btn__icon pkt-btn__spinner"
1133
1133
  name="spinner-blue"
1134
- path=${C(this.loadingAnimationPath)}
1134
+ path=${S(this.loadingAnimationPath)}
1135
+ ></pkt-icon>` : $}
1136
+ ${this.variant !== "label-only" ? u`<pkt-icon
1137
+ class="pkt-btn__icon pkt-icon"
1138
+ name=${this.iconName}
1139
+ path=${S(this.iconPath)}
1135
1140
  ></pkt-icon>` : $}
1136
- ${this.variant !== "label-only" ? u`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : $}
1137
1141
  <span class="pkt-btn__text" ${E(this.defaultSlot)}></span>
1138
- ${this.variant === "icons-right-and-left" ? u`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : $}
1142
+ ${this.variant === "icons-right-and-left" ? u`<pkt-icon
1143
+ class="pkt-btn__icon"
1144
+ name=${this.secondIconName}
1145
+ path=${S(this.secondIconPath)}
1146
+ ></pkt-icon>` : $}
1139
1147
  </button>
1140
1148
  `;
1141
1149
  }
1142
1150
  };
1143
- kt([
1151
+ ut([
1144
1152
  o({ type: String })
1145
- ], ft.prototype, "iconName", 2);
1146
- kt([
1153
+ ], lt.prototype, "iconName", 2);
1154
+ ut([
1147
1155
  o({ type: String })
1148
- ], ft.prototype, "secondIconName", 2);
1149
- kt([
1156
+ ], lt.prototype, "secondIconName", 2);
1157
+ ut([
1150
1158
  o({ type: String })
1151
- ], ft.prototype, "mode", 2);
1152
- kt([
1159
+ ], lt.prototype, "iconPath", 2);
1160
+ ut([
1153
1161
  o({ type: String })
1154
- ], ft.prototype, "size", 2);
1155
- kt([
1162
+ ], lt.prototype, "secondIconPath", 2);
1163
+ ut([
1164
+ o({ type: String })
1165
+ ], lt.prototype, "mode", 2);
1166
+ ut([
1167
+ o({ type: String })
1168
+ ], lt.prototype, "size", 2);
1169
+ ut([
1156
1170
  o({ type: Boolean, attribute: "full-width" })
1157
- ], ft.prototype, "fullWidth", 2);
1158
- kt([
1171
+ ], lt.prototype, "fullWidth", 2);
1172
+ ut([
1159
1173
  o({ type: Boolean, attribute: "full-width-on-mobile" })
1160
- ], ft.prototype, "fullWidthOnMobile", 2);
1161
- kt([
1174
+ ], lt.prototype, "fullWidthOnMobile", 2);
1175
+ ut([
1162
1176
  o({ type: String })
1163
- ], ft.prototype, "color", 2);
1164
- kt([
1177
+ ], lt.prototype, "color", 2);
1178
+ ut([
1165
1179
  o({ type: String })
1166
- ], ft.prototype, "skin", 2);
1167
- kt([
1180
+ ], lt.prototype, "skin", 2);
1181
+ ut([
1168
1182
  o({ type: String })
1169
- ], ft.prototype, "variant", 2);
1170
- kt([
1183
+ ], lt.prototype, "variant", 2);
1184
+ ut([
1171
1185
  o({ type: String, reflect: !0 })
1172
- ], ft.prototype, "state", 2);
1173
- kt([
1186
+ ], lt.prototype, "state", 2);
1187
+ ut([
1174
1188
  o({ type: String, reflect: !0 })
1175
- ], ft.prototype, "type", 2);
1176
- kt([
1189
+ ], lt.prototype, "type", 2);
1190
+ ut([
1177
1191
  o({ type: String })
1178
- ], ft.prototype, "form", 2);
1179
- kt([
1192
+ ], lt.prototype, "form", 2);
1193
+ ut([
1180
1194
  o({ type: Boolean, reflect: !0 })
1181
- ], ft.prototype, "isLoading", 2);
1182
- kt([
1195
+ ], lt.prototype, "isLoading", 2);
1196
+ ut([
1183
1197
  o({ type: Boolean, reflect: !0 })
1184
- ], ft.prototype, "disabled", 2);
1185
- kt([
1198
+ ], lt.prototype, "disabled", 2);
1199
+ ut([
1186
1200
  o({ type: String })
1187
- ], ft.prototype, "loadingAnimationPath", 2);
1188
- ft = kt([
1201
+ ], lt.prototype, "loadingAnimationPath", 2);
1202
+ lt = ut([
1189
1203
  j("pkt-button")
1190
- ], ft);
1204
+ ], lt);
1191
1205
  const pr = { skin: { default: "info" }, ariaLive: { default: "polite" }, compact: { default: !1 }, closeAlert: { default: !1 } }, Ki = {
1192
1206
  props: pr
1193
1207
  };
@@ -1293,7 +1307,7 @@ se([
1293
1307
  Kt = se([
1294
1308
  j("pkt-alert")
1295
1309
  ], Kt);
1296
- 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) => {
1297
1311
  for (var a = s > 1 ? void 0 : s ? gr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1298
1312
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1299
1313
  return s && a && fr(t, e, a), a;
@@ -1339,19 +1353,19 @@ let ii = class extends Je {
1339
1353
  `;
1340
1354
  }
1341
1355
  };
1342
- Li([
1356
+ Bi([
1343
1357
  o({ type: String, reflect: !0, attribute: "aria-labelledby" })
1344
1358
  ], ii.prototype, "ariaLabelledBy", 2);
1345
- Li([
1359
+ Bi([
1346
1360
  o({ type: Boolean, reflect: !0, attribute: "compact" })
1347
1361
  ], ii.prototype, "compact", 2);
1348
- Li([
1362
+ Bi([
1349
1363
  o({ type: String, reflect: !0, attribute: "skin" })
1350
1364
  ], ii.prototype, "skin", 2);
1351
- Li([
1365
+ Bi([
1352
1366
  o({ type: String, reflect: !0, attribute: "name" })
1353
1367
  ], ii.prototype, "name", 2);
1354
- ii = Li([
1368
+ ii = Bi([
1355
1369
  j("pkt-accordion")
1356
1370
  ], ii);
1357
1371
  var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
@@ -1378,7 +1392,7 @@ let ye = class extends K {
1378
1392
  id=${this.id}
1379
1393
  ?open=${this.isOpen}
1380
1394
  ${E(this.accordionItemRef)}
1381
- name=${C(this.name)}
1395
+ name=${S(this.name)}
1382
1396
  >
1383
1397
  <summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
1384
1398
  ${this.title}
@@ -1438,7 +1452,7 @@ let si = class extends K {
1438
1452
  class="pkt-back-link"
1439
1453
  aria-label=${this.ariaLabel || "Gå tilbake til forrige side"}
1440
1454
  >
1441
- <a href=${C(this.href || "/")} class="pkt-link pkt-link--icon-left"
1455
+ <a href=${S(this.href || "/")} class="pkt-link pkt-link--icon-left"
1442
1456
  ><pkt-icon
1443
1457
  class="pkt-back-link__icon pkt-icon pkt-link__icon"
1444
1458
  name="chevron-thin-left"
@@ -1476,13 +1490,13 @@ let _r = {};
1476
1490
  function ds() {
1477
1491
  return _r;
1478
1492
  }
1479
- function Mi(i, t) {
1493
+ function Pi(i, t) {
1480
1494
  var e, s, a, n;
1481
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;
1482
1496
  return d.setDate(d.getDate() - m), d.setHours(0, 0, 0, 0), d;
1483
1497
  }
1484
1498
  function as(i, t) {
1485
- return Mi(i, { ...t, weekStartsOn: 1 });
1499
+ return Pi(i, { ...t, weekStartsOn: 1 });
1486
1500
  }
1487
1501
  function Ga(i, t) {
1488
1502
  const e = Lt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
@@ -1663,7 +1677,7 @@ const Or = {
1663
1677
  nextWeek: "eeee 'at' p",
1664
1678
  other: "P"
1665
1679
  }, Rr = (i, t, e, s) => Ir[i];
1666
- function bi(i) {
1680
+ function ki(i) {
1667
1681
  return (t, e) => {
1668
1682
  const s = e != null && e.context ? String(e.context) : "standalone";
1669
1683
  let a;
@@ -1805,31 +1819,31 @@ const Lr = {
1805
1819
  return e + "th";
1806
1820
  }, qr = {
1807
1821
  ordinalNumber: Hr,
1808
- era: bi({
1822
+ era: ki({
1809
1823
  values: Lr,
1810
1824
  defaultWidth: "wide"
1811
1825
  }),
1812
- quarter: bi({
1826
+ quarter: ki({
1813
1827
  values: Br,
1814
1828
  defaultWidth: "wide",
1815
1829
  argumentCallback: (i) => i - 1
1816
1830
  }),
1817
- month: bi({
1831
+ month: ki({
1818
1832
  values: Vr,
1819
1833
  defaultWidth: "wide"
1820
1834
  }),
1821
- day: bi({
1835
+ day: ki({
1822
1836
  values: jr,
1823
1837
  defaultWidth: "wide"
1824
1838
  }),
1825
- dayPeriod: bi({
1839
+ dayPeriod: ki({
1826
1840
  values: Fr,
1827
1841
  defaultWidth: "wide",
1828
1842
  formattingValues: Ur,
1829
1843
  defaultFormattingWidth: "wide"
1830
1844
  })
1831
1845
  };
1832
- function ki(i) {
1846
+ function yi(i) {
1833
1847
  return (t, e = {}) => {
1834
1848
  const s = e.width, a = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], n = t.match(a);
1835
1849
  if (!n)
@@ -1942,32 +1956,32 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Yr = /\d+/i, Zr = {
1942
1956
  parsePattern: Yr,
1943
1957
  valueCallback: (i) => parseInt(i, 10)
1944
1958
  }),
1945
- era: ki({
1959
+ era: yi({
1946
1960
  matchPatterns: Zr,
1947
1961
  defaultMatchWidth: "wide",
1948
1962
  parsePatterns: Jr,
1949
1963
  defaultParseWidth: "any"
1950
1964
  }),
1951
- quarter: ki({
1965
+ quarter: yi({
1952
1966
  matchPatterns: Xr,
1953
1967
  defaultMatchWidth: "wide",
1954
1968
  parsePatterns: Qr,
1955
1969
  defaultParseWidth: "any",
1956
1970
  valueCallback: (i) => i + 1
1957
1971
  }),
1958
- month: ki({
1972
+ month: yi({
1959
1973
  matchPatterns: to,
1960
1974
  defaultMatchWidth: "wide",
1961
1975
  parsePatterns: eo,
1962
1976
  defaultParseWidth: "any"
1963
1977
  }),
1964
- day: ki({
1978
+ day: yi({
1965
1979
  matchPatterns: io,
1966
1980
  defaultMatchWidth: "wide",
1967
1981
  parsePatterns: so,
1968
1982
  defaultParseWidth: "any"
1969
1983
  }),
1970
- dayPeriod: ki({
1984
+ dayPeriod: yi({
1971
1985
  matchPatterns: ao,
1972
1986
  defaultMatchWidth: "any",
1973
1987
  parsePatterns: no,
@@ -1997,18 +2011,18 @@ function Za(i, t) {
1997
2011
  var e, s, a, n;
1998
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);
1999
2013
  m.setFullYear(l + 1, 0, p), m.setHours(0, 0, 0, 0);
2000
- 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);
2001
2015
  y.setFullYear(l, 0, p), y.setHours(0, 0, 0, 0);
2002
- const b = Mi(y, t);
2016
+ const b = Pi(y, t);
2003
2017
  return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
2004
2018
  }
2005
2019
  function co(i, t) {
2006
2020
  var e, s, a, n;
2007
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);
2008
- 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);
2009
2023
  }
2010
2024
  function Ja(i, t) {
2011
- 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);
2012
2026
  return Math.round(s / Ka) + 1;
2013
2027
  }
2014
2028
  function q(i, t) {
@@ -2557,7 +2571,7 @@ const fe = {
2557
2571
  // so this token always has the same output as `XX`
2558
2572
  case "XXXX":
2559
2573
  case "XX":
2560
- return Ee(s);
2574
+ return Oe(s);
2561
2575
  // Hours, minutes and optional seconds with `:` delimiter
2562
2576
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2563
2577
  // so this token always has the same output as `XXX`
@@ -2565,7 +2579,7 @@ const fe = {
2565
2579
  case "XXX":
2566
2580
  // Hours and minutes with `:` delimiter
2567
2581
  default:
2568
- return Ee(s, ":");
2582
+ return Oe(s, ":");
2569
2583
  }
2570
2584
  },
2571
2585
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -2580,7 +2594,7 @@ const fe = {
2580
2594
  // so this token always has the same output as `xx`
2581
2595
  case "xxxx":
2582
2596
  case "xx":
2583
- return Ee(s);
2597
+ return Oe(s);
2584
2598
  // Hours, minutes and optional seconds with `:` delimiter
2585
2599
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2586
2600
  // so this token always has the same output as `xxx`
@@ -2588,7 +2602,7 @@ const fe = {
2588
2602
  case "xxx":
2589
2603
  // Hours and minutes with `:` delimiter
2590
2604
  default:
2591
- return Ee(s, ":");
2605
+ return Oe(s, ":");
2592
2606
  }
2593
2607
  },
2594
2608
  // Timezone (GMT)
@@ -2603,7 +2617,7 @@ const fe = {
2603
2617
  // Long
2604
2618
  case "OOOO":
2605
2619
  default:
2606
- return "GMT" + Ee(s, ":");
2620
+ return "GMT" + Oe(s, ":");
2607
2621
  }
2608
2622
  },
2609
2623
  // Timezone (specific non-location)
@@ -2618,7 +2632,7 @@ const fe = {
2618
2632
  // Long
2619
2633
  case "zzzz":
2620
2634
  default:
2621
- return "GMT" + Ee(s, ":");
2635
+ return "GMT" + Oe(s, ":");
2622
2636
  }
2623
2637
  },
2624
2638
  // Seconds timestamp
@@ -2636,9 +2650,9 @@ function va(i, t = "") {
2636
2650
  return n === 0 ? e + String(a) : e + String(a) + t + q(n, 2);
2637
2651
  }
2638
2652
  function ba(i, t) {
2639
- 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);
2640
2654
  }
2641
- function Ee(i, t = "") {
2655
+ function Oe(i, t = "") {
2642
2656
  const e = i > 0 ? "-" : "+", s = Math.abs(i), a = q(Math.trunc(s / 60), 2), n = q(s % 60, 2);
2643
2657
  return e + a + t + n;
2644
2658
  }
@@ -2714,8 +2728,8 @@ function Co(i, t, e) {
2714
2728
  let y = t.match(_o).map((k) => {
2715
2729
  const w = k[0];
2716
2730
  if (w === "p" || w === "P") {
2717
- const S = uo[w];
2718
- return S(k, d.formatLong);
2731
+ const C = uo[w];
2732
+ return C(k, d.formatLong);
2719
2733
  }
2720
2734
  return k;
2721
2735
  }).join("").match($o).map((k) => {
@@ -2742,8 +2756,8 @@ function Co(i, t, e) {
2742
2756
  if (!k.isToken) return k.value;
2743
2757
  const w = k.value;
2744
2758
  (bo(w) || vo(w)) && ko(w, t, String(i));
2745
- const S = ga[w[0]];
2746
- return S(f, w, d.localize, b);
2759
+ const C = ga[w[0]];
2760
+ return C(f, w, d.localize, b);
2747
2761
  }).join("");
2748
2762
  }
2749
2763
  function To(i) {
@@ -2762,16 +2776,16 @@ function Ao(i, t, e = "long") {
2762
2776
  timeZoneName: e
2763
2777
  }).format(t).split(/\s/g).slice(2).join(" ");
2764
2778
  }
2765
- const ya = {}, _i = {};
2766
- function Me(i, t) {
2779
+ const ya = {}, wi = {};
2780
+ function Pe(i, t) {
2767
2781
  try {
2768
2782
  const e = (ya[i] || (ya[i] = new Intl.DateTimeFormat("en-US", {
2769
2783
  timeZone: i,
2770
2784
  timeZoneName: "longOffset"
2771
2785
  }).format))(t).split("GMT")[1];
2772
- return e in _i ? _i[e] : $a(e, e.split(":"));
2786
+ return e in wi ? wi[e] : $a(e, e.split(":"));
2773
2787
  } catch {
2774
- if (i in _i) return _i[i];
2788
+ if (i in wi) return wi[i];
2775
2789
  const e = i == null ? void 0 : i.match(Eo);
2776
2790
  return e ? $a(i, e.slice(1)) : NaN;
2777
2791
  }
@@ -2779,23 +2793,23 @@ function Me(i, t) {
2779
2793
  const Eo = /([+-]\d\d):?(\d\d)?/;
2780
2794
  function $a(i, t) {
2781
2795
  const e = +(t[0] || 0), s = +(t[1] || 0), a = +(t[2] || 0) / 60;
2782
- 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;
2783
2797
  }
2784
- let wi = class xi extends Date {
2798
+ let xi = class Si extends Date {
2785
2799
  //#region static
2786
2800
  constructor(...t) {
2787
- 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());
2788
2802
  }
2789
2803
  static tz(t, ...e) {
2790
- 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);
2791
2805
  }
2792
2806
  //#endregion
2793
2807
  //#region time zone
2794
2808
  withTimeZone(t) {
2795
- return new xi(+this, t);
2809
+ return new Si(+this, t);
2796
2810
  }
2797
2811
  getTimezoneOffset() {
2798
- const t = -Me(this.timeZone, this);
2812
+ const t = -Pe(this.timeZone, this);
2799
2813
  return t > 0 ? Math.floor(t) : Math.ceil(t);
2800
2814
  }
2801
2815
  //#endregion
@@ -2806,7 +2820,7 @@ let wi = class xi extends Date {
2806
2820
  //#endregion
2807
2821
  //#region date-fns integration
2808
2822
  [Symbol.for("constructDateFrom")](t) {
2809
- return new xi(+new Date(t), this.timeZone);
2823
+ return new Si(+new Date(t), this.timeZone);
2810
2824
  }
2811
2825
  //#endregion
2812
2826
  };
@@ -2814,22 +2828,22 @@ const _a = /^(get|set)(?!UTC)/;
2814
2828
  Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
2815
2829
  if (!_a.test(i)) return;
2816
2830
  const t = i.replace(_a, "$1UTC");
2817
- wi.prototype[t] && (i.startsWith("get") ? wi.prototype[i] = function() {
2831
+ xi.prototype[t] && (i.startsWith("get") ? xi.prototype[i] = function() {
2818
2832
  return this.internal[t]();
2819
- } : (wi.prototype[i] = function() {
2833
+ } : (xi.prototype[i] = function() {
2820
2834
  return Date.prototype[t].apply(this.internal, arguments), Oo(this), +this;
2821
- }, wi.prototype[t] = function() {
2835
+ }, xi.prototype[t] = function() {
2822
2836
  return Date.prototype[t].apply(this, arguments), Is(this), +this;
2823
2837
  }));
2824
2838
  });
2825
2839
  function Is(i) {
2826
- 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));
2827
2841
  }
2828
2842
  function Oo(i) {
2829
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);
2830
2844
  }
2831
2845
  function Qa(i) {
2832
- 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);
2833
2847
  s.setUTCHours(s.getUTCHours() - 1);
2834
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();
2835
2849
  r && l && i.internal.setUTCMinutes(i.internal.getUTCMinutes() + r);
@@ -2837,19 +2851,19 @@ function Qa(i) {
2837
2851
  d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
2838
2852
  const p = /* @__PURE__ */ new Date(+i);
2839
2853
  p.setUTCSeconds(0);
2840
- 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;
2841
2855
  (f || m) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + m));
2842
- 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, S = k - d;
2843
- if (w && S) {
2844
- Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + S);
2845
- const O = Me(i.timeZone, i), N = O > 0 ? Math.floor(O) : Math.ceil(O), I = b - N;
2846
- I && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + I), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + I));
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
+ if (w && C) {
2858
+ Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
2859
+ const O = Pe(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
2860
+ P && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + P), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + P));
2847
2861
  }
2848
2862
  }
2849
- let Rs = class Si extends wi {
2863
+ let Rs = class Ci extends xi {
2850
2864
  //#region static
2851
2865
  static tz(t, ...e) {
2852
- 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);
2853
2867
  }
2854
2868
  //#endregion
2855
2869
  //#region representation
@@ -2894,11 +2908,11 @@ let Rs = class Si extends wi {
2894
2908
  }
2895
2909
  //#endregion
2896
2910
  withTimeZone(t) {
2897
- return new Si(+this, t);
2911
+ return new Ci(+this, t);
2898
2912
  }
2899
2913
  //#region date-fns integration
2900
2914
  [Symbol.for("constructDateFrom")](t) {
2901
- return new Si(+new Date(t), this.timeZone);
2915
+ return new Ci(+new Date(t), this.timeZone);
2902
2916
  }
2903
2917
  //#endregion
2904
2918
  };
@@ -2939,7 +2953,7 @@ const nt = (i) => {
2939
2953
  return /* @__PURE__ */ new Date();
2940
2954
  const s = new Date(i, t, e);
2941
2955
  return isNaN(s.getTime()) ? /* @__PURE__ */ new Date() : s;
2942
- }, yi = (i) => {
2956
+ }, $i = (i) => {
2943
2957
  let t;
2944
2958
  return typeof i == "number" ? t = new Rs(i, window.pktTz) : t = new Rs(i, window.pktTz), t.setHours(12, 0, 0, 0), t;
2945
2959
  }, Po = (i) => !i || isNaN(i.getTime()) ? "" : new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: window.pktTz }).format(i), Do = (i, t, e) => {
@@ -2963,7 +2977,7 @@ const nt = (i) => {
2963
2977
  }), Bo = (i, t) => {
2964
2978
  const e = _e(i), s = _e(t);
2965
2979
  return !e || !s ? !1 : e <= s;
2966
- }, 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) => {
2967
2981
  if (typeof i == "string")
2968
2982
  return i.split(",").map((t) => $e(t));
2969
2983
  if (Array.isArray(i))
@@ -2972,7 +2986,7 @@ const nt = (i) => {
2972
2986
  csvToArray: sn,
2973
2987
  stringToDate: jo,
2974
2988
  stringsToDate: Fo
2975
- }, 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 = {
2976
2990
  props: Uo
2977
2991
  };
2978
2992
  var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t, e, s) => {
@@ -2982,7 +2996,7 @@ var Ho = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, W = (i, t,
2982
2996
  };
2983
2997
  let z = class extends K {
2984
2998
  constructor() {
2985
- 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;
2986
3000
  }
2987
3001
  /**
2988
3002
  * Runs on mount, used to set up various values and whatever you need to run
@@ -3022,9 +3036,9 @@ let z = class extends K {
3022
3036
  setCurrentMonth() {
3023
3037
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
3024
3038
  const t = $e(this.selected[this.selected.length - 1]);
3025
- this.currentmonth = isNaN(t.getTime()) ? yi(/* @__PURE__ */ new Date()) : t;
3026
- } else this.currentmonth === null && (this.currentmonth = yi(/* @__PURE__ */ new Date()));
3027
- (!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();
3028
3042
  }
3029
3043
  handleKeydown(t) {
3030
3044
  switch (t.key) {
@@ -3300,7 +3314,7 @@ let z = class extends K {
3300
3314
  this.changeMonth(e, t);
3301
3315
  }
3302
3316
  changeMonth(t, e) {
3303
- 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 = [];
3304
3318
  }
3305
3319
  isRangeAllowed(t) {
3306
3320
  let e = !0;
@@ -3365,7 +3379,7 @@ let z = class extends K {
3365
3379
  ), Promise.resolve();
3366
3380
  }
3367
3381
  focusOnCurrentDate() {
3368
- 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}"]`);
3369
3383
  if (e instanceof HTMLButtonElement)
3370
3384
  this.focusedDate = t, e.focus();
3371
3385
  else {
@@ -3524,8 +3538,8 @@ let Gt = class extends K {
3524
3538
  class=${M(e)}
3525
3539
  type=${this.type}
3526
3540
  @click=${this.close}
3527
- aria-label=${C(this.ariaLabel || void 0)}
3528
- aria-description=${C(this._ariaDescription || void 0)}
3541
+ aria-label=${S(this.ariaLabel || void 0)}
3542
+ aria-description=${S(this._ariaDescription || void 0)}
3529
3543
  >
3530
3544
  ${this.iconName && u`<pkt-icon
3531
3545
  class="pkt-tag__icon"
@@ -3577,23 +3591,23 @@ ae([
3577
3591
  Gt = ae([
3578
3592
  j("pkt-tag")
3579
3593
  ], Gt);
3580
- 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) => {
3581
3595
  for (var a = s > 1 ? void 0 : s ? Yo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
3582
3596
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3583
3597
  return s && a && Go(t, e, a), a;
3584
3598
  };
3585
- let Le = class extends ls {
3599
+ let we = class extends ls {
3586
3600
  constructor() {
3587
- 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;
3588
3602
  }
3589
3603
  connectedCallback() {
3590
3604
  super.connectedCallback(), this.setAttribute("role", "heading"), this.setAttribute("aria-level", String(this.level)), this.updateHostClasses();
3591
3605
  }
3592
3606
  attributeChangedCallback(t, e, s) {
3593
- 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();
3594
3608
  }
3595
3609
  updated(t) {
3596
- 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();
3597
3611
  }
3598
3612
  setLevel(t) {
3599
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.`);
@@ -3616,6 +3630,24 @@ let Le = class extends ls {
3616
3630
  return "medium";
3617
3631
  }
3618
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
+ }
3619
3651
  updateHostClasses() {
3620
3652
  this.classList.remove(
3621
3653
  "pkt-heading",
@@ -3627,37 +3659,44 @@ let Le = class extends ls {
3627
3659
  "pkt-sr-only",
3628
3660
  "pkt-heading--start",
3629
3661
  "pkt-heading--center",
3630
- "pkt-heading--end"
3631
- ), 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}`);
3632
3668
  }
3633
3669
  render() {
3634
3670
  return u`<slot></slot>`;
3635
3671
  }
3636
3672
  };
3637
- Bi([
3673
+ di([
3638
3674
  o({ type: String, reflect: !0 })
3639
- ], Le.prototype, "size", 2);
3640
- Bi([
3675
+ ], we.prototype, "size", 2);
3676
+ di([
3641
3677
  o({ type: Number, reflect: !0 })
3642
- ], Le.prototype, "level", 2);
3643
- Bi([
3678
+ ], we.prototype, "level", 2);
3679
+ di([
3680
+ o({ type: String, reflect: !0 })
3681
+ ], we.prototype, "weight", 2);
3682
+ di([
3644
3683
  o({ type: Boolean, reflect: !0 })
3645
- ], Le.prototype, "visuallyHidden", 2);
3646
- Bi([
3684
+ ], we.prototype, "visuallyHidden", 2);
3685
+ di([
3647
3686
  o({ type: String, reflect: !0 })
3648
- ], Le.prototype, "align", 2);
3649
- Le = Bi([
3687
+ ], we.prototype, "align", 2);
3688
+ we = di([
3650
3689
  j("pkt-heading")
3651
- ], Le);
3690
+ ], we);
3652
3691
  const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
3653
3692
  props: Zo
3654
3693
  };
3655
- var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, bt = (i, t, e, s) => {
3694
+ var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
3656
3695
  for (var a = s > 1 ? void 0 : s ? Xo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
3657
3696
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3658
3697
  return s && a && Jo(t, e, a), a;
3659
3698
  };
3660
- let lt = class extends K {
3699
+ let ht = class extends K {
3661
3700
  //Constructor
3662
3701
  constructor() {
3663
3702
  super(), this.defaultSlot = A(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Qe.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
@@ -3683,7 +3722,7 @@ let lt = class extends K {
3683
3722
  return u`
3684
3723
  <article
3685
3724
  class=${M(s)}
3686
- aria-label=${C(this.clickCardLink ? a : n)}
3725
+ aria-label=${S(this.clickCardLink ? a : n)}
3687
3726
  >
3688
3727
  ${this.renderImage()}
3689
3728
  <div class="pkt-card__wrapper">
@@ -3782,8 +3821,8 @@ let lt = class extends K {
3782
3821
  role="listitem"
3783
3822
  textStyle="normal-text"
3784
3823
  size="medium"
3785
- skin=${C(e.skin)}
3786
- iconName=${C(e.iconName)}
3824
+ skin=${S(e.skin)}
3825
+ iconName=${S(e.iconName)}
3787
3826
  >
3788
3827
  <span>${e.text}</span>
3789
3828
  </pkt-tag>
@@ -3809,43 +3848,43 @@ let lt = class extends K {
3809
3848
  `;
3810
3849
  }
3811
3850
  };
3812
- bt([
3851
+ kt([
3813
3852
  o({ type: String })
3814
- ], lt.prototype, "ariaLabel", 2);
3815
- bt([
3853
+ ], ht.prototype, "ariaLabel", 2);
3854
+ kt([
3816
3855
  o({ type: String })
3817
- ], lt.prototype, "metaLead", 2);
3818
- bt([
3856
+ ], ht.prototype, "metaLead", 2);
3857
+ kt([
3819
3858
  o({ type: Boolean })
3820
- ], lt.prototype, "borderOnHover", 2);
3821
- bt([
3859
+ ], ht.prototype, "borderOnHover", 2);
3860
+ kt([
3822
3861
  o({ type: String, reflect: !0 })
3823
- ], lt.prototype, "clickCardLink", 2);
3824
- bt([
3862
+ ], ht.prototype, "clickCardLink", 2);
3863
+ kt([
3825
3864
  o({ type: String })
3826
- ], lt.prototype, "metaTrail", 2);
3827
- bt([
3865
+ ], ht.prototype, "metaTrail", 2);
3866
+ kt([
3828
3867
  o({ type: String })
3829
- ], lt.prototype, "layout", 2);
3830
- bt([
3868
+ ], ht.prototype, "layout", 2);
3869
+ kt([
3831
3870
  o({ type: String })
3832
- ], lt.prototype, "heading", 2);
3833
- bt([
3871
+ ], ht.prototype, "heading", 2);
3872
+ kt([
3834
3873
  o({ type: Number })
3835
- ], lt.prototype, "headinglevel", 2);
3836
- bt([
3874
+ ], ht.prototype, "headinglevel", 2);
3875
+ kt([
3837
3876
  o({ type: Object })
3838
- ], lt.prototype, "image", 2);
3839
- bt([
3877
+ ], ht.prototype, "image", 2);
3878
+ kt([
3840
3879
  o({ type: String })
3841
- ], lt.prototype, "imageShape", 2);
3842
- bt([
3880
+ ], ht.prototype, "imageShape", 2);
3881
+ kt([
3843
3882
  o({ type: Boolean })
3844
- ], lt.prototype, "openLinkInNewTab", 2);
3845
- bt([
3883
+ ], ht.prototype, "openLinkInNewTab", 2);
3884
+ kt([
3846
3885
  o({ type: String })
3847
- ], lt.prototype, "padding", 2);
3848
- bt([
3886
+ ], ht.prototype, "padding", 2);
3887
+ kt([
3849
3888
  o({
3850
3889
  type: String,
3851
3890
  converter: {
@@ -3858,19 +3897,19 @@ bt([
3858
3897
  toAttribute: (i) => i
3859
3898
  }
3860
3899
  })
3861
- ], lt.prototype, "skin", 2);
3862
- bt([
3900
+ ], ht.prototype, "skin", 2);
3901
+ kt([
3863
3902
  o({ type: String })
3864
- ], lt.prototype, "subheading", 2);
3865
- bt([
3903
+ ], ht.prototype, "subheading", 2);
3904
+ kt([
3866
3905
  o({ type: String })
3867
- ], lt.prototype, "tagPosition", 2);
3868
- bt([
3906
+ ], ht.prototype, "tagPosition", 2);
3907
+ kt([
3869
3908
  o({ type: Array })
3870
- ], lt.prototype, "tags", 2);
3871
- lt = bt([
3909
+ ], ht.prototype, "tags", 2);
3910
+ ht = kt([
3872
3911
  j("pkt-card")
3873
- ], lt);
3912
+ ], ht);
3874
3913
  /**
3875
3914
  * @license
3876
3915
  * Copyright 2017 Google LLC
@@ -3902,22 +3941,22 @@ const xa = (i, t, e) => {
3902
3941
  let p, m, f = 0, y = a.length - 1, b = 0, k = n.length - 1;
3903
3942
  for (; f <= y && b <= k; ) if (a[f] === null) f++;
3904
3943
  else if (a[y] === null) y--;
3905
- else if (l[f] === r[b]) d[b] = Ne(a[f], n[b]), f++, b++;
3906
- else if (l[y] === r[k]) d[k] = Ne(a[y], n[k]), y--, k--;
3907
- else if (l[f] === r[k]) d[k] = Ne(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
3908
- 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++;
3909
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])) {
3910
- const w = m.get(r[b]), S = w !== void 0 ? a[w] : null;
3911
- if (S === null) {
3912
- const O = vi(i, a[f]);
3913
- Ne(O, n[b]), d[b] = O;
3914
- } else d[b] = Ne(S, n[b]), vi(i, a[f], S), a[w] = null;
3949
+ const w = m.get(r[b]), C = w !== void 0 ? a[w] : null;
3950
+ if (C === 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;
3915
3954
  b++;
3916
3955
  } else ys(a[y]), y--;
3917
3956
  else ys(a[f]), f++;
3918
3957
  for (; b <= k; ) {
3919
- const w = vi(i, d[k + 1]);
3920
- Ne(w, n[b]), d[b++] = w;
3958
+ const w = bi(i, d[k + 1]);
3959
+ Ae(w, n[b]), d[b++] = w;
3921
3960
  }
3922
3961
  for (; f <= y; ) {
3923
3962
  const w = a[f++];
@@ -3935,7 +3974,7 @@ var el = {}, Ca;
3935
3974
  function il() {
3936
3975
  return Ca || (Ca = 1, (function() {
3937
3976
  (function(i) {
3938
- const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), S = {
3977
+ const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), C = {
3939
3978
  ariaAtomic: "aria-atomic",
3940
3979
  ariaAutoComplete: "aria-autocomplete",
3941
3980
  ariaBusy: "aria-busy",
@@ -3979,69 +4018,69 @@ function il() {
3979
4018
  ariaValueText: "aria-valuetext",
3980
4019
  role: "role"
3981
4020
  }, O = (g, c) => {
3982
- for (let v in S) {
4021
+ for (let v in C) {
3983
4022
  c[v] = null;
3984
4023
  let _ = null;
3985
- const D = S[v];
4024
+ const I = C[v];
3986
4025
  Object.defineProperty(c, v, {
3987
4026
  get() {
3988
4027
  return _;
3989
4028
  },
3990
4029
  set(V) {
3991
- _ = V, g.isConnected ? st(g, D, V) : m.set(g, c);
4030
+ _ = V, g.isConnected ? st(g, I, V) : m.set(g, c);
3992
4031
  }
3993
4032
  });
3994
4033
  }
3995
4034
  };
3996
- function N(g) {
4035
+ function T(g) {
3997
4036
  const c = a.get(g), { form: v } = c;
3998
4037
  le(g, v, c), xt(g, c.labels);
3999
4038
  }
4000
- const I = (g, c = !1) => {
4039
+ const P = (g, c = !1) => {
4001
4040
  const v = document.createTreeWalker(g, NodeFilter.SHOW_ELEMENT, {
4002
4041
  acceptNode(V) {
4003
4042
  return a.has(V) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4004
4043
  }
4005
4044
  });
4006
4045
  let _ = v.nextNode();
4007
- const D = !c || g.disabled;
4046
+ const I = !c || g.disabled;
4008
4047
  for (; _; )
4009
- _.formDisabledCallback && D && Et(_, g.disabled), _ = v.nextNode();
4010
- }, T = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4048
+ _.formDisabledCallback && I && Et(_, g.disabled), _ = v.nextNode();
4049
+ }, N = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4011
4050
  for (const c of g) {
4012
4051
  const v = c.target;
4013
- if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && I(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4014
- const _ = a.get(v), D = p.get(v);
4015
- _.setFormValue(D);
4052
+ if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && P(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4053
+ const _ = a.get(v), I = p.get(v);
4054
+ _.setFormValue(I);
4016
4055
  }
4017
4056
  }
4018
4057
  }) : {};
4019
4058
  function G(g) {
4020
4059
  g.forEach((c) => {
4021
- const { addedNodes: v, removedNodes: _ } = c, D = Array.from(v), V = Array.from(_);
4022
- D.forEach((U) => {
4060
+ const { addedNodes: v, removedNodes: _ } = c, I = Array.from(v), V = Array.from(_);
4061
+ I.forEach((U) => {
4023
4062
  var Mt;
4024
- if (a.has(U) && U.constructor.formAssociated && N(U), m.has(U)) {
4025
- const ut = m.get(U);
4026
- Object.keys(S).filter((Pt) => ut[Pt] !== null).forEach((Pt) => {
4027
- st(U, S[Pt], ut[Pt]);
4063
+ if (a.has(U) && U.constructor.formAssociated && T(U), m.has(U)) {
4064
+ const ft = m.get(U);
4065
+ Object.keys(C).filter((Pt) => ft[Pt] !== null).forEach((Pt) => {
4066
+ st(U, C[Pt], ft[Pt]);
4028
4067
  }), m.delete(U);
4029
4068
  }
4030
4069
  if (w.has(U)) {
4031
- const ut = w.get(U);
4032
- st(U, "internals-valid", ut.validity.valid.toString()), st(U, "internals-invalid", (!ut.validity.valid).toString()), st(U, "aria-invalid", (!ut.validity.valid).toString()), w.delete(U);
4070
+ const ft = w.get(U);
4071
+ st(U, "internals-valid", ft.validity.valid.toString()), st(U, "internals-invalid", (!ft.validity.valid).toString()), st(U, "aria-invalid", (!ft.validity.valid).toString()), w.delete(U);
4033
4072
  }
4034
4073
  if (U.localName === "form") {
4035
- const ut = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4074
+ const ft = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4036
4075
  acceptNode(vs) {
4037
- return a.has(vs) && vs.constructor.formAssociated && !(ut && ut.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4076
+ return a.has(vs) && vs.constructor.formAssociated && !(ft && ft.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4038
4077
  }
4039
4078
  });
4040
- let mi = Pt.nextNode();
4041
- for (; mi; )
4042
- N(mi), mi = Pt.nextNode();
4079
+ let fi = Pt.nextNode();
4080
+ for (; fi; )
4081
+ T(fi), fi = Pt.nextNode();
4043
4082
  }
4044
- U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, T), I(U, !0));
4083
+ U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, N), P(U, !0));
4045
4084
  }), V.forEach((U) => {
4046
4085
  const Mt = a.get(U);
4047
4086
  Mt && s.get(Mt) && Ot(Mt), l.has(U) && l.get(U).disconnect();
@@ -4052,12 +4091,12 @@ function il() {
4052
4091
  g.forEach((c) => {
4053
4092
  const { removedNodes: v } = c;
4054
4093
  v.forEach((_) => {
4055
- const D = b.get(c.target);
4056
- a.has(_) && Ce(_), D.disconnect();
4094
+ const I = b.get(c.target);
4095
+ a.has(_) && Te(_), I.disconnect();
4057
4096
  });
4058
4097
  });
4059
4098
  }
4060
- const pt = (g) => {
4099
+ const mt = (g) => {
4061
4100
  var c, v;
4062
4101
  const _ = new MutationObserver(_t);
4063
4102
  !((c = window == null ? void 0 : window.ShadyDOM) === null || c === void 0) && c.inUse && g.mode && g.host && (g = g.host), (v = _.observe) === null || v === void 0 || v.call(_, g, { childList: !0 }), b.set(g, _);
@@ -4079,7 +4118,7 @@ function il() {
4079
4118
  return v.type = "hidden", v.name = g.getAttribute("name"), g.after(v), s.get(c).push(v), v;
4080
4119
  }, R = (g, c) => {
4081
4120
  var v;
4082
- s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, T);
4121
+ s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, N);
4083
4122
  }, xt = (g, c) => {
4084
4123
  if (c.length) {
4085
4124
  Array.from(c).forEach((_) => _.addEventListener("click", g.click.bind(g)));
@@ -4087,20 +4126,20 @@ function il() {
4087
4126
  c[0].id || (v = `${c[0].htmlFor}_Label`, c[0].id = v), st(g, "aria-labelledby", v);
4088
4127
  }
4089
4128
  }, Qt = (g) => {
4090
- const c = Array.from(g.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), v = d.get(g) || [], _ = Array.from(v).filter((V) => V.isConnected).map((V) => a.get(V).validity.valid), D = [...c, ..._].includes(!1);
4091
- g.toggleAttribute("internals-invalid", D), g.toggleAttribute("internals-valid", !D);
4129
+ const c = Array.from(g.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), v = d.get(g) || [], _ = Array.from(v).filter((V) => V.isConnected).map((V) => a.get(V).validity.valid), I = [...c, ..._].includes(!1);
4130
+ g.toggleAttribute("internals-invalid", I), g.toggleAttribute("internals-valid", !I);
4092
4131
  }, oe = (g) => {
4093
4132
  Qt(Ut(g.target));
4094
4133
  }, te = (g) => {
4095
4134
  Qt(Ut(g.target));
4096
- }, xe = (g) => {
4135
+ }, Se = (g) => {
4097
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(",");
4098
4137
  g.addEventListener("click", (v) => {
4099
4138
  if (v.target.closest(c)) {
4100
4139
  const _ = d.get(g);
4101
4140
  if (g.noValidate)
4102
4141
  return;
4103
- _.size && Array.from(_).reverse().map((D) => a.get(D).reportValidity()).includes(!1) && v.preventDefault();
4142
+ _.size && Array.from(_).reverse().map((I) => a.get(I).reportValidity()).includes(!1) && v.preventDefault();
4104
4143
  }
4105
4144
  });
4106
4145
  }, We = (g) => {
@@ -4114,8 +4153,8 @@ function il() {
4114
4153
  if (_)
4115
4154
  _.add(g);
4116
4155
  else {
4117
- const D = /* @__PURE__ */ new Set();
4118
- D.add(g), d.set(c, D), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4156
+ const I = /* @__PURE__ */ new Set();
4157
+ I.add(g), d.set(c, I), Se(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4119
4158
  }
4120
4159
  r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
4121
4160
  g.formAssociatedCallback.apply(g, [c]);
@@ -4127,12 +4166,12 @@ function il() {
4127
4166
  }, ot = (g, c, v = DOMException) => {
4128
4167
  if (!g.constructor.formAssociated)
4129
4168
  throw new v(c);
4130
- }, Se = (g, c, v) => {
4169
+ }, Ce = (g, c, v) => {
4131
4170
  const _ = d.get(g);
4132
- return _ && _.size && _.forEach((D) => {
4133
- a.get(D)[v]() || (c = !1);
4171
+ return _ && _.size && _.forEach((I) => {
4172
+ a.get(I)[v]() || (c = !1);
4134
4173
  }), c;
4135
- }, Ce = (g) => {
4174
+ }, Te = (g) => {
4136
4175
  if (g.constructor.formAssociated) {
4137
4176
  const c = a.get(g), { labels: v, form: _ } = c;
4138
4177
  xt(g, v), le(g, _, c);
@@ -4155,7 +4194,7 @@ function il() {
4155
4194
  function Ge(g, c) {
4156
4195
  g.toggleAttribute(c, !0), g.part && g.part.add(c);
4157
4196
  }
4158
- class ui extends Set {
4197
+ class mi extends Set {
4159
4198
  static get isPolyfilled() {
4160
4199
  return !0;
4161
4200
  }
@@ -4167,9 +4206,9 @@ function il() {
4167
4206
  add(c) {
4168
4207
  if (!/^--/.test(c) || typeof c != "string")
4169
4208
  throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);
4170
- const v = super.add(c), _ = Ke.get(this), D = `state${c}`;
4171
- return _.isConnected ? Ge(_, D) : setTimeout(() => {
4172
- Ge(_, D);
4209
+ const v = super.add(c), _ = Ke.get(this), I = `state${c}`;
4210
+ return _.isConnected ? Ge(_, I) : setTimeout(() => {
4211
+ Ge(_, I);
4173
4212
  }), v;
4174
4213
  }
4175
4214
  clear() {
@@ -4188,7 +4227,7 @@ function il() {
4188
4227
  if (typeof c == "function" ? g !== c || !_ : !c.has(g)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4189
4228
  return v === "m" ? _ : v === "a" ? _.call(g) : _ ? _.value : c.get(g);
4190
4229
  }
4191
- function fs(g, c, v, _, D) {
4230
+ function fs(g, c, v, _, I) {
4192
4231
  if (typeof c == "function" ? g !== c || !0 : !c.has(g)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4193
4232
  return c.set(g, v), v;
4194
4233
  }
@@ -4222,20 +4261,20 @@ function il() {
4222
4261
  HTMLFormElement.prototype.reportValidity = _;
4223
4262
  function v(...V) {
4224
4263
  let U = g.apply(this, V);
4225
- return Se(this, U, "checkValidity");
4264
+ return Ce(this, U, "checkValidity");
4226
4265
  }
4227
4266
  function _(...V) {
4228
4267
  let U = c.apply(this, V);
4229
- return Se(this, U, "reportValidity");
4268
+ return Ce(this, U, "reportValidity");
4230
4269
  }
4231
- const { get: D } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4270
+ const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4232
4271
  Object.defineProperty(HTMLFormElement.prototype, "elements", {
4233
4272
  get(...V) {
4234
- const U = D.call(this, ...V), Mt = Array.from(d.get(this) || []);
4273
+ const U = I.call(this, ...V), Mt = Array.from(d.get(this) || []);
4235
4274
  if (Mt.length === 0)
4236
4275
  return U;
4237
- const ut = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4238
- return new zi(ut);
4276
+ const ft = Array.from(U).concat(Mt).sort((Pt, fi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(fi) & 2 ? 1 : -1 : 0);
4277
+ return new zi(ft);
4239
4278
  }
4240
4279
  });
4241
4280
  }
@@ -4247,7 +4286,7 @@ function il() {
4247
4286
  if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
4248
4287
  throw new TypeError("Illegal constructor");
4249
4288
  const v = c.getRootNode(), _ = new us();
4250
- 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 && pt(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);
4251
4290
  }
4252
4291
  checkValidity() {
4253
4292
  const c = t.get(this);
@@ -4292,17 +4331,17 @@ function il() {
4292
4331
  const _ = at(v, this);
4293
4332
  _.value = c;
4294
4333
  }
4295
- } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, D]) => {
4296
- if (typeof D == "string") {
4334
+ } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, I]) => {
4335
+ if (typeof I == "string") {
4297
4336
  const V = at(v, this);
4298
- V.name = _, V.value = D;
4337
+ V.name = _, V.value = I;
4299
4338
  }
4300
4339
  });
4301
4340
  p.set(v, c);
4302
4341
  }
4303
4342
  setValidity(c, v, _) {
4304
- const D = t.get(this);
4305
- if (ot(D, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4343
+ const I = t.get(this);
4344
+ if (ot(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4306
4345
  throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
4307
4346
  y.set(this, _);
4308
4347
  const V = e.get(this), U = {};
@@ -4311,10 +4350,10 @@ function il() {
4311
4350
  Object.keys(U).length === 0 && Ui(V);
4312
4351
  const Mt = Object.assign(Object.assign({}, V), U);
4313
4352
  delete Mt.valid;
4314
- const { valid: ut } = ms(V, Mt, this.form);
4315
- if (!ut && !v)
4353
+ const { valid: ft } = ms(V, Mt, this.form);
4354
+ if (!ft && !v)
4316
4355
  throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
4317
- n.set(this, ut ? "" : v), D.isConnected ? (D.toggleAttribute("internals-invalid", !ut), D.toggleAttribute("internals-valid", ut), st(D, "aria-invalid", `${!ut}`)) : w.set(D, this);
4356
+ n.set(this, ft ? "" : v), I.isConnected ? (I.toggleAttribute("internals-invalid", !ft), I.toggleAttribute("internals-valid", ft), st(I, "aria-invalid", `${!ft}`)) : w.set(I, this);
4318
4357
  }
4319
4358
  get shadowRoot() {
4320
4359
  const c = t.get(this);
@@ -4359,23 +4398,23 @@ function il() {
4359
4398
  }
4360
4399
  let zs = !1, Ws = !1;
4361
4400
  function gs(g) {
4362
- 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) {
4363
4402
  const v = g.call(this, c);
4364
- return v.states = new ui(this), v;
4403
+ return v.states = new mi(this), v;
4365
4404
  }));
4366
4405
  }
4367
4406
  function Ks(g = !0) {
4368
4407
  if (!zs) {
4369
4408
  if (zs = !0, typeof window < "u" && (window.ElementInternals = qs), typeof CustomElementRegistry < "u") {
4370
4409
  const c = CustomElementRegistry.prototype.define;
4371
- CustomElementRegistry.prototype.define = function(v, _, D) {
4410
+ CustomElementRegistry.prototype.define = function(v, _, I) {
4372
4411
  if (_.formAssociated) {
4373
4412
  const V = _.prototype.connectedCallback;
4374
4413
  _.prototype.connectedCallback = function() {
4375
- 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);
4376
4415
  };
4377
4416
  }
4378
- c.call(this, v, _, D);
4417
+ c.call(this, v, _, I);
4379
4418
  };
4380
4419
  }
4381
4420
  if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
@@ -4388,12 +4427,12 @@ function il() {
4388
4427
  return new qs(this);
4389
4428
  }), typeof Element < "u") {
4390
4429
  let c = function(..._) {
4391
- const D = v.apply(this, _);
4392
- if (f.set(this, D), he()) {
4430
+ const I = v.apply(this, _);
4431
+ if (f.set(this, I), he()) {
4393
4432
  const V = new MutationObserver(G);
4394
- window.ShadyDOM ? V.observe(this, J) : V.observe(D, J), l.set(this, V);
4433
+ window.ShadyDOM ? V.observe(this, J) : V.observe(I, J), l.set(this, V);
4395
4434
  }
4396
- return D;
4435
+ return I;
4397
4436
  };
4398
4437
  const v = Element.prototype.attachShadow;
4399
4438
  Element.prototype.attachShadow = c;
@@ -4419,7 +4458,7 @@ const al = {
4419
4458
  return i ? "true" : "false";
4420
4459
  }
4421
4460
  };
4422
- let P = class extends K {
4461
+ let D = class extends K {
4423
4462
  constructor() {
4424
4463
  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 = be(), 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 = Dt.props.helptextDropdownButton.default, this.label = null, this.optionalText = wt.forms.labels.optional, this.requiredText = wt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4425
4464
  }
@@ -4536,109 +4575,109 @@ let P = class extends K {
4536
4575
  };
4537
4576
  F([
4538
4577
  o()
4539
- ], P.prototype, "defaultValue");
4578
+ ], D.prototype, "defaultValue");
4540
4579
  F([
4541
4580
  o({ type: Boolean, reflect: !0 })
4542
- ], P.prototype, "disabled");
4581
+ ], D.prototype, "disabled");
4543
4582
  F([
4544
4583
  o({ type: Boolean, reflect: !0 })
4545
- ], P.prototype, "readonly");
4584
+ ], D.prototype, "readonly");
4546
4585
  F([
4547
4586
  o({ type: Boolean, reflect: !0 })
4548
- ], P.prototype, "required");
4587
+ ], D.prototype, "required");
4549
4588
  F([
4550
4589
  o({ type: Number, reflect: !0 })
4551
- ], P.prototype, "max");
4590
+ ], D.prototype, "max");
4552
4591
  F([
4553
4592
  o({ type: Number, reflect: !0 })
4554
- ], P.prototype, "maxlength");
4593
+ ], D.prototype, "maxlength");
4555
4594
  F([
4556
4595
  o({ type: Number, reflect: !0 })
4557
- ], P.prototype, "min");
4596
+ ], D.prototype, "min");
4558
4597
  F([
4559
4598
  o({ type: Number, reflect: !0 })
4560
- ], P.prototype, "minlength");
4599
+ ], D.prototype, "minlength");
4561
4600
  F([
4562
4601
  o({ type: Number, reflect: !0 })
4563
- ], P.prototype, "step");
4602
+ ], D.prototype, "step");
4564
4603
  F([
4565
4604
  o({ type: String })
4566
- ], P.prototype, "ariaDescribedBy");
4605
+ ], D.prototype, "ariaDescribedBy");
4567
4606
  F([
4568
4607
  o({ type: String })
4569
- ], P.prototype, "ariaLabelledby");
4608
+ ], D.prototype, "ariaLabelledby");
4570
4609
  F([
4571
4610
  o({ type: String, reflect: !0 })
4572
- ], P.prototype, "name");
4611
+ ], D.prototype, "name");
4573
4612
  F([
4574
4613
  o({ type: String, reflect: !0 })
4575
- ], P.prototype, "pattern");
4614
+ ], D.prototype, "pattern");
4576
4615
  F([
4577
4616
  o({ type: String, reflect: !0 })
4578
- ], P.prototype, "placeholder");
4617
+ ], D.prototype, "placeholder");
4579
4618
  F([
4580
4619
  o({ type: String, reflect: !0 })
4581
- ], P.prototype, "id");
4620
+ ], D.prototype, "id");
4582
4621
  F([
4583
4622
  o({ type: Boolean })
4584
- ], P.prototype, "counter");
4623
+ ], D.prototype, "counter");
4585
4624
  F([
4586
4625
  o({ type: Boolean })
4587
- ], P.prototype, "hasError");
4626
+ ], D.prototype, "hasError");
4588
4627
  F([
4589
4628
  o({ type: Boolean })
4590
- ], P.prototype, "inline");
4629
+ ], D.prototype, "inline");
4591
4630
  F([
4592
4631
  o({ type: Boolean })
4593
- ], P.prototype, "hasFieldset");
4632
+ ], D.prototype, "hasFieldset");
4594
4633
  F([
4595
4634
  o({ type: Boolean })
4596
- ], P.prototype, "optionalTag");
4635
+ ], D.prototype, "optionalTag");
4597
4636
  F([
4598
4637
  o({ type: Boolean })
4599
- ], P.prototype, "requiredTag");
4638
+ ], D.prototype, "requiredTag");
4600
4639
  F([
4601
4640
  o({ type: Boolean })
4602
- ], P.prototype, "skipForwardTestid");
4641
+ ], D.prototype, "skipForwardTestid");
4603
4642
  F([
4604
4643
  o({ type: Boolean, reflect: !0, converter: al })
4605
- ], P.prototype, "useWrapper");
4644
+ ], D.prototype, "useWrapper");
4606
4645
  F([
4607
4646
  o({ type: Boolean, reflect: !0 })
4608
- ], P.prototype, "fullwidth");
4647
+ ], D.prototype, "fullwidth");
4609
4648
  F([
4610
4649
  o({ type: Number })
4611
- ], P.prototype, "counterMaxLength");
4650
+ ], D.prototype, "counterMaxLength");
4612
4651
  F([
4613
4652
  o({ type: String })
4614
- ], P.prototype, "errorMessage");
4653
+ ], D.prototype, "errorMessage");
4615
4654
  F([
4616
4655
  o({ type: String })
4617
- ], P.prototype, "helptext");
4656
+ ], D.prototype, "helptext");
4618
4657
  F([
4619
4658
  o({ type: String })
4620
- ], P.prototype, "helptextDropdown");
4659
+ ], D.prototype, "helptextDropdown");
4621
4660
  F([
4622
4661
  o({ type: String, reflect: !1 })
4623
- ], P.prototype, "helptextDropdownButton");
4662
+ ], D.prototype, "helptextDropdownButton");
4624
4663
  F([
4625
4664
  o({ type: String })
4626
- ], P.prototype, "label");
4665
+ ], D.prototype, "label");
4627
4666
  F([
4628
4667
  o({ type: String, reflect: !1 })
4629
- ], P.prototype, "optionalText");
4668
+ ], D.prototype, "optionalText");
4630
4669
  F([
4631
4670
  o({ type: String, reflect: !1 })
4632
- ], P.prototype, "requiredText");
4671
+ ], D.prototype, "requiredText");
4633
4672
  F([
4634
4673
  o({ type: String, reflect: !1 })
4635
- ], P.prototype, "tagText");
4674
+ ], D.prototype, "tagText");
4636
4675
  F([
4637
4676
  o({ type: String, attribute: "data-testid" })
4638
- ], P.prototype, "dataTestid");
4677
+ ], D.prototype, "dataTestid");
4639
4678
  F([
4640
4679
  B()
4641
- ], P.prototype, "touched");
4680
+ ], D.prototype, "touched");
4642
4681
  let an = class {
4643
4682
  constructor(t) {
4644
4683
  this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
@@ -4802,7 +4841,7 @@ let Y = class extends K {
4802
4841
  ${this.label}
4803
4842
  </label>`, r = () => u`
4804
4843
  <pkt-helptext
4805
- class="${C(this.useWrapper ? void 0 : "pkt-hide")}"
4844
+ class="${S(this.useWrapper ? void 0 : "pkt-hide")}"
4806
4845
  .forId=${this.forId}
4807
4846
  .helptext=${this.helptext}
4808
4847
  .helptextDropdown=${this.helptextDropdown}
@@ -4931,7 +4970,7 @@ var dl = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, yt = (i, t
4931
4970
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4932
4971
  return s && a && dl(t, e, a), a;
4933
4972
  };
4934
- let gt = class extends K {
4973
+ let vt = class extends K {
4935
4974
  constructor() {
4936
4975
  super(...arguments), this.id = be(), this.label = null, this.options = [], this.isOpen = !1, this.disabled = !1, this.includeSearch = !1, this.isMultiSelect = !1, this.allowUserInput = !1, this.maxIsReached = !1, this.customUserInput = null, this.searchPlaceholder = null, this.searchValue = null, this.maxLength = 0, this.userMessage = null, this._selectedOptions = 0, this._filteredOptions = [];
4937
4976
  }
@@ -4955,7 +4994,7 @@ let gt = class extends K {
4955
4994
  "pkt-txt-16-light": !0
4956
4995
  })}
4957
4996
  role="listbox"
4958
- aria-label=${C(this.label)}
4997
+ aria-label=${S(this.label)}
4959
4998
  >
4960
4999
  <div class="pkt-listbox__banners">
4961
5000
  ${this.renderMaximumReachedBanner()} ${this.renderUserMessage()}
@@ -5231,52 +5270,52 @@ let gt = class extends K {
5231
5270
  };
5232
5271
  yt([
5233
5272
  o({ type: String })
5234
- ], gt.prototype, "id", 2);
5273
+ ], vt.prototype, "id", 2);
5235
5274
  yt([
5236
5275
  o({ type: String })
5237
- ], gt.prototype, "label", 2);
5276
+ ], vt.prototype, "label", 2);
5238
5277
  yt([
5239
5278
  o({ type: Array })
5240
- ], gt.prototype, "options", 2);
5279
+ ], vt.prototype, "options", 2);
5241
5280
  yt([
5242
5281
  o({ type: Boolean, reflect: !0 })
5243
- ], gt.prototype, "isOpen", 2);
5282
+ ], vt.prototype, "isOpen", 2);
5244
5283
  yt([
5245
5284
  o({ type: Boolean })
5246
- ], gt.prototype, "disabled", 2);
5285
+ ], vt.prototype, "disabled", 2);
5247
5286
  yt([
5248
5287
  o({ type: Boolean })
5249
- ], gt.prototype, "includeSearch", 2);
5288
+ ], vt.prototype, "includeSearch", 2);
5250
5289
  yt([
5251
5290
  o({ type: Boolean })
5252
- ], gt.prototype, "isMultiSelect", 2);
5291
+ ], vt.prototype, "isMultiSelect", 2);
5253
5292
  yt([
5254
5293
  o({ type: Boolean })
5255
- ], gt.prototype, "allowUserInput", 2);
5294
+ ], vt.prototype, "allowUserInput", 2);
5256
5295
  yt([
5257
5296
  o({ type: Boolean })
5258
- ], gt.prototype, "maxIsReached", 2);
5297
+ ], vt.prototype, "maxIsReached", 2);
5259
5298
  yt([
5260
5299
  o({ type: String })
5261
- ], gt.prototype, "customUserInput", 2);
5300
+ ], vt.prototype, "customUserInput", 2);
5262
5301
  yt([
5263
5302
  o({ type: String })
5264
- ], gt.prototype, "searchPlaceholder", 2);
5303
+ ], vt.prototype, "searchPlaceholder", 2);
5265
5304
  yt([
5266
5305
  o({ type: String })
5267
- ], gt.prototype, "searchValue", 2);
5306
+ ], vt.prototype, "searchValue", 2);
5268
5307
  yt([
5269
5308
  o({ type: Number })
5270
- ], gt.prototype, "maxLength", 2);
5309
+ ], vt.prototype, "maxLength", 2);
5271
5310
  yt([
5272
5311
  o({ type: String })
5273
- ], gt.prototype, "userMessage", 2);
5312
+ ], vt.prototype, "userMessage", 2);
5274
5313
  yt([
5275
5314
  B()
5276
- ], gt.prototype, "_filteredOptions", 2);
5277
- gt = yt([
5315
+ ], vt.prototype, "_filteredOptions", 2);
5316
+ vt = yt([
5278
5317
  j("pkt-listbox")
5279
- ], gt);
5318
+ ], vt);
5280
5319
  const pl = { displayValueAs: { default: "label" } }, ul = {
5281
5320
  props: pl
5282
5321
  };
@@ -5285,7 +5324,7 @@ var ml = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, it = (i, t
5285
5324
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5286
5325
  return s && a && ml(t, e, a), a;
5287
5326
  };
5288
- let Q = class extends P {
5327
+ let Q = class extends D {
5289
5328
  constructor() {
5290
5329
  super(), this.helptextSlot = A(), 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 = ul.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._isOptionsOpen = !1, this._value = [], this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = A(), this.arrowRef = A(), this.listboxRef = A(), this.focusRef = A(), this.optionTagRef = A(), this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5291
5330
  }
@@ -5347,8 +5386,8 @@ let Q = class extends P {
5347
5386
  <pkt-input-wrapper
5348
5387
  .label=${this.label}
5349
5388
  .helptext=${this.helptext}
5350
- .helptextDropdown=${C(this.helptextDropdown)}
5351
- .helptextDropdownButton=${C(this.helptextDropdownButton)}
5389
+ .helptextDropdown=${S(this.helptextDropdown)}
5390
+ .helptextDropdownButton=${S(this.helptextDropdownButton)}
5352
5391
  ?fullwidth=${this.fullwidth}
5353
5392
  ?hasError=${this.hasError}
5354
5393
  ?inline=${this.inline}
@@ -5422,7 +5461,7 @@ let Q = class extends P {
5422
5461
  ?isMultiSelect=${this.multiple}
5423
5462
  ?allowUserInput=${this.allowUserInput && !this._maxIsReached}
5424
5463
  ?maxIsReached=${this._maxIsReached}
5425
- .customUserInput=${C(this._addValueText)}
5464
+ .customUserInput=${S(this._addValueText)}
5426
5465
  .userMessage=${this._userInfoMessage}
5427
5466
  @search=${this.handleSearch}
5428
5467
  @option-toggle=${this.handleOptionToggled}
@@ -5453,11 +5492,11 @@ let Q = class extends P {
5453
5492
  @blur=${this.handleBlur}
5454
5493
  autocomplete="off"
5455
5494
  role="combobox"
5456
- aria-label=${C(this.label)}
5495
+ aria-label=${S(this.label)}
5457
5496
  aria-autocomplete=${this.typeahead ? "both" : "list"}
5458
5497
  aria-controls="${this.id}-listbox"
5459
- aria-multiselectable=${C(this.multiple ? "true" : void 0)}
5460
- aria-activedescendant=${C(
5498
+ aria-multiselectable=${S(this.multiple ? "true" : void 0)}
5499
+ aria-activedescendant=${S(
5461
5500
  this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
5462
5501
  )}
5463
5502
  ${E(this.inputRef)}
@@ -5660,11 +5699,11 @@ let Q = class extends P {
5660
5699
  var e, s;
5661
5700
  if (this.disabled) return;
5662
5701
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5663
- const a = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, n = this._value.includes(t || a || ""), r = !!a, l = ((s = this._options.find((S) => S.value === t)) == null ? void 0 : s.disabled) || !1, d = !(t != null && t.trim()), p = !this.multiple, m = this.multiple, f = this.isMaxItemsReached();
5702
+ const a = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, n = this._value.includes(t || a || ""), r = !!a, l = ((s = this._options.find((C) => C.value === t)) == null ? void 0 : s.disabled) || !1, d = !(t != null && t.trim()), p = !this.multiple, m = this.multiple, f = this.isMaxItemsReached();
5664
5703
  let y = !1, b = !0, k = "", w = "";
5665
5704
  l || (!r && this.allowUserInput && !d ? (this.addNewUserValue(t), k = "Ny verdi lagt til", y = !m) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), b = !1, y = !0, k = "Ingen treff i søket") : n ? (this.removeValue(a), y = !0) : d && p ? (this.removeAllSelected(), y = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(a), y = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : m && !f ? (this.setSelected(a), y = !0) : m && f ? (this._userInfoMessage = "Maks antall valg nådd", b = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", b = !1, y = !0, w = t), this._isOptionsOpen = y, y || window.setTimeout(() => {
5666
- var S;
5667
- (S = this.focusRef.value) == null || S.focus();
5705
+ var C;
5706
+ (C = this.focusRef.value) == null || C.focus();
5668
5707
  }, 0), this._userInfoMessage = k, this._search = w || "", this.resetComboboxInput(b), m && this.isMaxItemsReached());
5669
5708
  }
5670
5709
  setSelected(t) {
@@ -5967,7 +6006,7 @@ var yl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, $t = (i, t
5967
6006
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5968
6007
  return s && a && yl(t, e, a), a;
5969
6008
  };
5970
- let vt = class extends P {
6009
+ let bt = class extends D {
5971
6010
  constructor() {
5972
6011
  super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.isSwitch = !1, this.labelPosition = "right", this.hideLabel = !1, this.checked = null, this.indeterminate = !1, this.type = "checkbox", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut";
5973
6012
  }
@@ -6054,52 +6093,52 @@ let vt = class extends P {
6054
6093
  };
6055
6094
  $t([
6056
6095
  o({ type: String, reflect: !0 })
6057
- ], vt.prototype, "value", 2);
6096
+ ], bt.prototype, "value", 2);
6058
6097
  $t([
6059
6098
  o({ type: String })
6060
- ], vt.prototype, "checkHelptext", 2);
6099
+ ], bt.prototype, "checkHelptext", 2);
6061
6100
  $t([
6062
6101
  o({ type: Boolean })
6063
- ], vt.prototype, "defaultChecked", 2);
6102
+ ], bt.prototype, "defaultChecked", 2);
6064
6103
  $t([
6065
6104
  o({ type: Boolean })
6066
- ], vt.prototype, "hasTile", 2);
6105
+ ], bt.prototype, "hasTile", 2);
6067
6106
  $t([
6068
6107
  o({ type: Boolean })
6069
- ], vt.prototype, "isSwitch", 2);
6108
+ ], bt.prototype, "isSwitch", 2);
6070
6109
  $t([
6071
6110
  o({ type: String })
6072
- ], vt.prototype, "labelPosition", 2);
6111
+ ], bt.prototype, "labelPosition", 2);
6073
6112
  $t([
6074
6113
  o({ type: Boolean })
6075
- ], vt.prototype, "hideLabel", 2);
6114
+ ], bt.prototype, "hideLabel", 2);
6076
6115
  $t([
6077
6116
  o({ type: Boolean, reflect: !0 })
6078
- ], vt.prototype, "checked", 2);
6117
+ ], bt.prototype, "checked", 2);
6079
6118
  $t([
6080
6119
  o({ type: Boolean, reflect: !0 })
6081
- ], vt.prototype, "indeterminate", 2);
6120
+ ], bt.prototype, "indeterminate", 2);
6082
6121
  $t([
6083
6122
  o({ type: String, reflect: !0 })
6084
- ], vt.prototype, "type", 2);
6123
+ ], bt.prototype, "type", 2);
6085
6124
  $t([
6086
6125
  o({ type: String })
6087
- ], vt.prototype, "tagText", 2);
6126
+ ], bt.prototype, "tagText", 2);
6088
6127
  $t([
6089
6128
  o({ type: Boolean })
6090
- ], vt.prototype, "optionalTag", 2);
6129
+ ], bt.prototype, "optionalTag", 2);
6091
6130
  $t([
6092
6131
  o({ type: String })
6093
- ], vt.prototype, "optionalText", 2);
6132
+ ], bt.prototype, "optionalText", 2);
6094
6133
  $t([
6095
6134
  o({ type: Boolean })
6096
- ], vt.prototype, "requiredTag", 2);
6135
+ ], bt.prototype, "requiredTag", 2);
6097
6136
  $t([
6098
6137
  o({ type: String })
6099
- ], vt.prototype, "requiredText", 2);
6100
- vt = $t([
6138
+ ], bt.prototype, "requiredText", 2);
6139
+ bt = $t([
6101
6140
  j("pkt-checkbox")
6102
- ], vt);
6141
+ ], bt);
6103
6142
  var _l = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
6104
6143
  for (var a = s > 1 ? void 0 : s ? wl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6105
6144
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -6151,7 +6190,7 @@ Vi([
6151
6190
  ai = Vi([
6152
6191
  j("pkt-date-tags")
6153
6192
  ], ai);
6154
- 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 = {
6155
6194
  props: xl
6156
6195
  }, Be = () => {
6157
6196
  const i = navigator.userAgent;
@@ -6189,7 +6228,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6189
6228
  getInputType() {
6190
6229
  return Be() ? "text" : "date";
6191
6230
  }
6192
- }, Pi = {
6231
+ }, Di = {
6193
6232
  /**
6194
6233
  * Submits the form that contains the given element
6195
6234
  */
@@ -6241,7 +6280,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6241
6280
  let l = e ? "calc(100% - 30px)" : "100%";
6242
6281
  a && a.top + r > window.innerHeight && a.top - r > 0 && (l = `calc(100% - ${n}px - ${r}px)`), i.value.style.top = l;
6243
6282
  }
6244
- }, Di = {
6283
+ }, Ii = {
6245
6284
  /**
6246
6285
  * Generates input classes for datepicker
6247
6286
  */
@@ -6302,7 +6341,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6302
6341
  l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
6303
6342
  } else t[0] && s();
6304
6343
  }
6305
- }, Pe = {
6344
+ }, De = {
6306
6345
  /**
6307
6346
  * Handles common keyboard interactions for datepicker inputs
6308
6347
  */
@@ -6522,9 +6561,9 @@ let It = class extends K {
6522
6561
  .type=${this.inputType}
6523
6562
  id="${this.id}-input"
6524
6563
  .value=${this.value}
6525
- min=${C(this.min)}
6526
- max=${C(this.max)}
6527
- placeholder=${C(this.placeholder)}
6564
+ min=${S(this.min)}
6565
+ max=${S(this.max)}
6566
+ placeholder=${S(this.placeholder)}
6528
6567
  ?readonly=${this.isInputReadonly}
6529
6568
  aria-describedby="${this.id}-helptext"
6530
6569
  @click=${(t) => {
@@ -6534,10 +6573,10 @@ let It = class extends K {
6534
6573
  t.preventDefault(), this.dispatchToggleCalendar(t);
6535
6574
  }}
6536
6575
  ?disabled=${this.disabled}
6537
- @keydown=${(t) => Pe.handleInputKeydown(
6576
+ @keydown=${(t) => De.handleInputKeydown(
6538
6577
  t,
6539
6578
  (e) => this.dispatchToggleCalendar(e),
6540
- () => Pi.submitFormOrFallback(this.internals, () => {
6579
+ () => Di.submitFormOrFallback(this.internals, () => {
6541
6580
  var e;
6542
6581
  return (e = this.inputRef.value) == null ? void 0 : e.blur();
6543
6582
  }),
@@ -6568,10 +6607,10 @@ let It = class extends K {
6568
6607
  ${E(this.inputRef)}
6569
6608
  />
6570
6609
  <button
6571
- class="${M(Di.getButtonClasses())}"
6610
+ class="${M(Ii.getButtonClasses())}"
6572
6611
  type="button"
6573
6612
  @click=${(t) => this.dispatchToggleCalendar(t)}
6574
- @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6613
+ @keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6575
6614
  ?disabled=${this.disabled}
6576
6615
  ${E(this.btnRef)}
6577
6616
  >
@@ -6696,7 +6735,7 @@ let Tt = class extends K {
6696
6735
  return this;
6697
6736
  }
6698
6737
  render() {
6699
- const t = Di.getRangeLabelClasses(this.showRangeLabels);
6738
+ const t = Ii.getRangeLabelClasses(this.showRangeLabels);
6700
6739
  return u`
6701
6740
  <div class="pkt-input__container">
6702
6741
  ${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
@@ -6705,9 +6744,9 @@ let Tt = class extends K {
6705
6744
  .type=${this.inputType}
6706
6745
  id="${this.id}-input"
6707
6746
  .value=${this.value[0] ?? ""}
6708
- min=${C(this.min)}
6709
- max=${C(this.max)}
6710
- placeholder=${C(this.placeholder)}
6747
+ min=${S(this.min)}
6748
+ max=${S(this.max)}
6749
+ placeholder=${S(this.placeholder)}
6711
6750
  ?readonly=${this.isInputReadonly}
6712
6751
  ?disabled=${this.disabled}
6713
6752
  @click=${(e) => {
@@ -6716,10 +6755,10 @@ let Tt = class extends K {
6716
6755
  @touchend=${(e) => {
6717
6756
  e.preventDefault(), this.dispatchToggleCalendar(e);
6718
6757
  }}
6719
- @keydown=${(e) => Pe.handleInputKeydown(
6758
+ @keydown=${(e) => De.handleInputKeydown(
6720
6759
  e,
6721
6760
  (s) => this.dispatchToggleCalendar(s),
6722
- () => Pi.submitFormOrFallback(
6761
+ () => Di.submitFormOrFallback(
6723
6762
  this.internals,
6724
6763
  () => {
6725
6764
  var s;
@@ -6769,9 +6808,9 @@ let Tt = class extends K {
6769
6808
  id="${this.id}-to"
6770
6809
  aria-labelledby="${this.id}-to-label"
6771
6810
  .value=${this.value[1] ?? ""}
6772
- min=${C(this.min)}
6773
- max=${C(this.max)}
6774
- placeholder=${C(this.placeholder)}
6811
+ min=${S(this.min)}
6812
+ max=${S(this.max)}
6813
+ placeholder=${S(this.placeholder)}
6775
6814
  ?readonly=${this.isInputReadonly}
6776
6815
  ?disabled=${this.disabled}
6777
6816
  @click=${(e) => {
@@ -6780,10 +6819,10 @@ let Tt = class extends K {
6780
6819
  @touchend=${(e) => {
6781
6820
  e.preventDefault(), this.dispatchToggleCalendar(e);
6782
6821
  }}
6783
- @keydown=${(e) => Pe.handleInputKeydown(
6822
+ @keydown=${(e) => De.handleInputKeydown(
6784
6823
  e,
6785
6824
  (s) => this.dispatchToggleCalendar(s),
6786
- () => Pi.submitFormOrFallback(this.internals, () => {
6825
+ () => Di.submitFormOrFallback(this.internals, () => {
6787
6826
  var s;
6788
6827
  return (s = this.inputRefTo.value) == null ? void 0 : s.blur();
6789
6828
  }),
@@ -6820,10 +6859,10 @@ let Tt = class extends K {
6820
6859
  ${E(this.inputRefTo)}
6821
6860
  />
6822
6861
  <button
6823
- class="${M(Di.getButtonClasses())}"
6862
+ class="${M(Ii.getButtonClasses())}"
6824
6863
  type="button"
6825
6864
  @click=${(e) => this.dispatchToggleCalendar(e)}
6826
- @keydown=${(e) => Pe.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6865
+ @keydown=${(e) => De.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6827
6866
  ?disabled=${this.disabled}
6828
6867
  ${E(this.btnRef)}
6829
6868
  >
@@ -6957,9 +6996,9 @@ let Nt = class extends K {
6957
6996
  class=${M(this.inputClasses)}
6958
6997
  .type=${this.inputType}
6959
6998
  id="${this.id}-input"
6960
- min=${C(this.min)}
6961
- max=${C(this.max)}
6962
- placeholder=${C(this.placeholder)}
6999
+ min=${S(this.min)}
7000
+ max=${S(this.max)}
7001
+ placeholder=${S(this.placeholder)}
6963
7002
  ?readonly=${this.isInputReadonly}
6964
7003
  ?disabled=${this.isInputDisabled}
6965
7004
  @click=${(t) => {
@@ -6977,10 +7016,10 @@ let Nt = class extends K {
6977
7016
  @focus=${() => {
6978
7017
  this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6979
7018
  }}
6980
- @keydown=${(t) => Pe.handleInputKeydown(
7019
+ @keydown=${(t) => De.handleInputKeydown(
6981
7020
  t,
6982
7021
  (e) => this.dispatchToggleCalendar(e),
6983
- () => Pi.submitFormOrFallback(this.internals, () => {
7022
+ () => Di.submitFormOrFallback(this.internals, () => {
6984
7023
  var e;
6985
7024
  return (e = this.inputRef.value) == null ? void 0 : e.blur();
6986
7025
  }),
@@ -6994,10 +7033,10 @@ let Nt = class extends K {
6994
7033
  ${E(this.inputRef)}
6995
7034
  />
6996
7035
  <button
6997
- class="${M(Di.getButtonClasses())}"
7036
+ class="${M(Ii.getButtonClasses())}"
6998
7037
  type="button"
6999
7038
  @click=${(t) => this.dispatchToggleCalendar(t)}
7000
- @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
7039
+ @keydown=${(t) => De.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
7001
7040
  ?disabled=${this.disabled}
7002
7041
  ${E(this.btnRef)}
7003
7042
  >
@@ -7047,17 +7086,17 @@ jt([
7047
7086
  Nt = jt([
7048
7087
  j("pkt-datepicker-multiple")
7049
7088
  ], Nt);
7050
- var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
7089
+ var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7051
7090
  for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7052
7091
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7053
7092
  return s && a && Dl(t, e, a), a;
7054
7093
  };
7055
- let tt = class extends P {
7094
+ let tt = class extends D {
7056
7095
  /**
7057
7096
  * Housekeeping / lifecycle methods
7058
7097
  */
7059
7098
  constructor() {
7060
- 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) => {
7061
7100
  const t = this.datepickerPopupRef.value;
7062
7101
  return t && typeof t.addToSelected == "function" ? t.addToSelected(i, this.min, this.max) : ns.addToSelected(i, this.calRef, this.min, this.max);
7063
7102
  }, this.slotController = new rt(this, this.helptextSlot);
@@ -7086,7 +7125,7 @@ let tt = class extends P {
7086
7125
  }
7087
7126
  valueChanged(i, t) {
7088
7127
  if (i === t) return;
7089
- 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(
7090
7129
  e,
7091
7130
  this.min,
7092
7131
  this.max,
@@ -7102,14 +7141,14 @@ let tt = class extends P {
7102
7141
  this._valueProperty !== a && (this._valueProperty = a), super.valueChanged(a, t);
7103
7142
  }
7104
7143
  attributeChangedCallback(i, t, e) {
7105
- 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);
7106
7145
  }
7107
7146
  updated(i) {
7108
7147
  if (i.has("value")) {
7109
7148
  const t = Array.isArray(this.value) ? this.value.join(",") : this.value, e = i.get("value"), s = Array.isArray(e) ? e.join(",") : e;
7110
7149
  this.valueChanged(t, s);
7111
7150
  }
7112
- (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);
7113
7152
  }
7114
7153
  /**
7115
7154
  * Element references
@@ -7207,7 +7246,7 @@ let tt = class extends P {
7207
7246
  }}
7208
7247
  @manage-validity=${(i) => this.manageValidity(i.detail)}
7209
7248
  @validate-date-input=${(i) => {
7210
- 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);
7211
7250
  }}
7212
7251
  @handle-date-select=${(i) => {
7213
7252
  var t, e;
@@ -7285,7 +7324,7 @@ let tt = class extends P {
7285
7324
  `;
7286
7325
  }
7287
7326
  render() {
7288
- return this.inputClasses = Di.getInputClasses(
7327
+ return this.inputClasses = Ii.getInputClasses(
7289
7328
  this.fullwidth,
7290
7329
  this.showRangeLabels,
7291
7330
  this.multiple,
@@ -7378,67 +7417,67 @@ let tt = class extends P {
7378
7417
  );
7379
7418
  }
7380
7419
  };
7381
- dt([
7420
+ ct([
7382
7421
  o({ type: String, reflect: !0 })
7383
7422
  ], tt.prototype, "value", 1);
7384
- dt([
7423
+ ct([
7385
7424
  o({ type: Array })
7386
7425
  ], tt.prototype, "_value", 2);
7387
- dt([
7426
+ ct([
7388
7427
  o({ type: String, reflect: !0 })
7389
7428
  ], tt.prototype, "label", 2);
7390
- dt([
7429
+ ct([
7391
7430
  o({ type: String })
7392
7431
  ], tt.prototype, "dateformat", 2);
7393
- dt([
7432
+ ct([
7394
7433
  o({ type: Boolean, reflect: !0 })
7395
7434
  ], tt.prototype, "multiple", 2);
7396
- dt([
7435
+ ct([
7397
7436
  o({ type: Number, reflect: !0 })
7398
7437
  ], tt.prototype, "maxlength", 2);
7399
- dt([
7438
+ ct([
7400
7439
  o({ type: Boolean, reflect: !0 })
7401
7440
  ], tt.prototype, "range", 2);
7402
- dt([
7441
+ ct([
7403
7442
  o({ type: Boolean })
7404
7443
  ], tt.prototype, "showRangeLabels", 2);
7405
- dt([
7444
+ ct([
7406
7445
  o({ type: String, reflect: !0 })
7407
7446
  ], tt.prototype, "min", 2);
7408
- dt([
7447
+ ct([
7409
7448
  o({ type: String, reflect: !0 })
7410
7449
  ], tt.prototype, "max", 2);
7411
- dt([
7450
+ ct([
7412
7451
  o({ type: Boolean })
7413
7452
  ], tt.prototype, "weeknumbers", 2);
7414
- dt([
7453
+ ct([
7415
7454
  o({ type: Boolean, reflect: !0 })
7416
7455
  ], tt.prototype, "withcontrols", 2);
7417
- dt([
7456
+ ct([
7418
7457
  o({ converter: hi.csvToArray })
7419
7458
  ], tt.prototype, "excludedates", 2);
7420
- dt([
7459
+ ct([
7421
7460
  o({ converter: hi.csvToArray })
7422
7461
  ], tt.prototype, "excludeweekdays", 2);
7423
- dt([
7462
+ ct([
7424
7463
  o({ type: String })
7425
7464
  ], tt.prototype, "currentmonth", 2);
7426
- dt([
7465
+ ct([
7427
7466
  o({ type: Boolean, reflect: !0 })
7428
7467
  ], tt.prototype, "calendarOpen", 2);
7429
- dt([
7468
+ ct([
7430
7469
  o({ type: String })
7431
7470
  ], tt.prototype, "timezone", 2);
7432
- dt([
7471
+ ct([
7433
7472
  B()
7434
7473
  ], tt.prototype, "inputClasses", 2);
7435
- tt = dt([
7474
+ tt = ct([
7436
7475
  j("pkt-datepicker")
7437
7476
  ], tt);
7438
7477
  const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
7439
7478
  props: Rl
7440
7479
  };
7441
- 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) => {
7442
7481
  for (var a = s > 1 ? void 0 : s ? Bl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7443
7482
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7444
7483
  return s && a && Ll(t, e, a), a;
@@ -7463,22 +7502,22 @@ let Ve = class extends K {
7463
7502
  >`;
7464
7503
  }
7465
7504
  };
7466
- di([
7505
+ ci([
7467
7506
  o({ type: String, reflect: !0 })
7468
7507
  ], Ve.prototype, "href", 2);
7469
- di([
7508
+ ci([
7470
7509
  o({ type: String, reflect: !0 })
7471
7510
  ], Ve.prototype, "iconName", 2);
7472
- di([
7511
+ ci([
7473
7512
  o({ type: String, reflect: !0 })
7474
7513
  ], Ve.prototype, "iconPosition", 2);
7475
- di([
7514
+ ci([
7476
7515
  o({ type: Boolean, reflect: !0 })
7477
7516
  ], Ve.prototype, "external", 2);
7478
- di([
7517
+ ci([
7479
7518
  o({ type: String, reflect: !0 })
7480
7519
  ], Ve.prototype, "target", 2);
7481
- Ve = di([
7520
+ Ve = ci([
7482
7521
  j("pkt-link")
7483
7522
  ], Ve);
7484
7523
  var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
@@ -7486,7 +7525,7 @@ var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t
7486
7525
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7487
7526
  return s && a && Vl(t, e, a), a;
7488
7527
  };
7489
- let we = class extends K {
7528
+ let xe = class extends K {
7490
7529
  constructor() {
7491
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);
7492
7531
  }
@@ -7497,7 +7536,7 @@ let we = class extends K {
7497
7536
  href=${this.href}
7498
7537
  class=${t}
7499
7538
  target=${this.openInNewTab ? "_blank" : "_self"}
7500
- rel=${C(this.openInNewTab ? "noopener noreferrer" : void 0)}
7539
+ rel=${S(this.openInNewTab ? "noopener noreferrer" : void 0)}
7501
7540
  >
7502
7541
  ${this.iconName && u`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
7503
7542
  ${this.title && u`<div class=${e}>${this.title}</div>`}
@@ -7509,31 +7548,31 @@ let we = class extends K {
7509
7548
  };
7510
7549
  ze([
7511
7550
  o({ type: String, reflect: !0 })
7512
- ], we.prototype, "title", 2);
7551
+ ], xe.prototype, "title", 2);
7513
7552
  ze([
7514
7553
  o({ type: String, reflect: !0 })
7515
- ], we.prototype, "href", 2);
7554
+ ], xe.prototype, "href", 2);
7516
7555
  ze([
7517
7556
  o({ type: String, reflect: !0 })
7518
- ], we.prototype, "iconName", 2);
7557
+ ], xe.prototype, "iconName", 2);
7519
7558
  ze([
7520
7559
  o({ type: Boolean, reflect: !0 })
7521
- ], we.prototype, "external", 2);
7560
+ ], xe.prototype, "external", 2);
7522
7561
  ze([
7523
7562
  o({ type: Boolean, reflect: !0 })
7524
- ], we.prototype, "openInNewTab", 2);
7563
+ ], xe.prototype, "openInNewTab", 2);
7525
7564
  ze([
7526
7565
  o({ type: String, reflect: !0 })
7527
- ], we.prototype, "skin", 2);
7528
- we = ze([
7566
+ ], xe.prototype, "skin", 2);
7567
+ xe = ze([
7529
7568
  j("pkt-linkcard")
7530
- ], we);
7569
+ ], xe);
7531
7570
  var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
7532
7571
  for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7533
7572
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7534
7573
  return s && a && Fl(t, e, a), a;
7535
7574
  };
7536
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
7575
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
7537
7576
  let Yt = class extends K {
7538
7577
  constructor() {
7539
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);
@@ -7616,7 +7655,7 @@ Yt = pe([
7616
7655
  const Hl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ns = {
7617
7656
  props: Hl
7618
7657
  };
7619
- 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) => {
7620
7659
  for (var a = s > 1 ? void 0 : s ? zl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7621
7660
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7622
7661
  return s && a && ql(t, e, a), a;
@@ -7655,22 +7694,22 @@ let je = class extends K {
7655
7694
  </div>`;
7656
7695
  }
7657
7696
  };
7658
- ci([
7697
+ pi([
7659
7698
  o({ type: Boolean, reflect: !0 })
7660
7699
  ], je.prototype, "closable", 2);
7661
- ci([
7700
+ pi([
7662
7701
  o({ type: Boolean, reflect: !0 })
7663
7702
  ], je.prototype, "compact", 2);
7664
- ci([
7703
+ pi([
7665
7704
  o({ type: String, reflect: !0 })
7666
7705
  ], je.prototype, "title", 2);
7667
- ci([
7706
+ pi([
7668
7707
  o({ type: String, reflect: !0 })
7669
7708
  ], je.prototype, "skin", 2);
7670
- ci([
7709
+ pi([
7671
7710
  B()
7672
7711
  ], je.prototype, "_isClosed", 2);
7673
- je = ci([
7712
+ je = pi([
7674
7713
  j("pkt-messagebox")
7675
7714
  ], je);
7676
7715
  const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
@@ -7849,7 +7888,7 @@ const nn = "important", Yl = " !" + nn, Zl = Ue(class extends li {
7849
7888
  return St;
7850
7889
  }
7851
7890
  });
7852
- var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7891
+ var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, pt = (i, t, e, s) => {
7853
7892
  for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7854
7893
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7855
7894
  return s && a && Jl(t, e, a), a;
@@ -7911,61 +7950,61 @@ let et = class extends K {
7911
7950
  t == null || t === "" ? this.removeAttribute(i) : this.setAttribute(i, String(t));
7912
7951
  }
7913
7952
  };
7914
- ct([
7953
+ pt([
7915
7954
  o({ type: String })
7916
7955
  ], et.prototype, "ariaLabel", 2);
7917
- ct([
7956
+ pt([
7918
7957
  o({ type: String, reflect: !0 })
7919
7958
  ], et.prototype, "ariaLabelledby", 2);
7920
- ct([
7959
+ pt([
7921
7960
  o({ type: String, reflect: !0 })
7922
7961
  ], et.prototype, "ariaValueText", 2);
7923
- ct([
7962
+ pt([
7924
7963
  o({ type: String })
7925
7964
  ], et.prototype, "ariaLive", 2);
7926
- ct([
7965
+ pt([
7927
7966
  o({ type: String, reflect: !0 })
7928
7967
  ], et.prototype, "id", 2);
7929
- ct([
7968
+ pt([
7930
7969
  o({ type: String })
7931
7970
  ], et.prototype, "role", 2);
7932
- ct([
7971
+ pt([
7933
7972
  o({ type: String })
7934
7973
  ], et.prototype, "skin", 2);
7935
- ct([
7974
+ pt([
7936
7975
  o({ type: String })
7937
7976
  ], et.prototype, "statusPlacement", 2);
7938
- ct([
7977
+ pt([
7939
7978
  o({ type: String })
7940
7979
  ], et.prototype, "statusType", 2);
7941
- ct([
7980
+ pt([
7942
7981
  o({ type: String, reflect: !0 })
7943
7982
  ], et.prototype, "title", 2);
7944
- ct([
7983
+ pt([
7945
7984
  o({ type: String })
7946
7985
  ], et.prototype, "titlePosition", 2);
7947
- ct([
7986
+ pt([
7948
7987
  o({ type: Number, reflect: !0 })
7949
7988
  ], et.prototype, "valueCurrent", 2);
7950
- ct([
7989
+ pt([
7951
7990
  o({ type: Number })
7952
7991
  ], et.prototype, "valueMax", 2);
7953
- ct([
7992
+ pt([
7954
7993
  o({ type: Number })
7955
7994
  ], et.prototype, "valueMin", 2);
7956
- ct([
7995
+ pt([
7957
7996
  B()
7958
7997
  ], et.prototype, "labelWidth", 2);
7959
- ct([
7998
+ pt([
7960
7999
  B()
7961
8000
  ], et.prototype, "progressbarId", 2);
7962
- ct([
8001
+ pt([
7963
8002
  B()
7964
8003
  ], et.prototype, "computedAriaLabelledby", 2);
7965
- ct([
8004
+ pt([
7966
8005
  B()
7967
8006
  ], et.prototype, "computedAriaValueText", 2);
7968
- et = ct([
8007
+ et = pt([
7969
8008
  j("pkt-progressbar")
7970
8009
  ], et);
7971
8010
  var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
@@ -7973,7 +8012,7 @@ var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t
7973
8012
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7974
8013
  return s && a && Ql(t, e, a), a;
7975
8014
  };
7976
- let At = class extends P {
8015
+ let At = class extends D {
7977
8016
  constructor() {
7978
8017
  super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.checked = null, this.type = "radio", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut", this._checked = !1;
7979
8018
  }
@@ -8231,7 +8270,7 @@ function ah({ context: i, subscribe: t }) {
8231
8270
  };
8232
8271
  }
8233
8272
  const on = Symbol("pkt-tabs-context");
8234
- 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) => {
8235
8274
  for (var a = s > 1 ? void 0 : s ? rh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8236
8275
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8237
8276
  return s && a && nh(t, e, a), a;
@@ -8286,23 +8325,23 @@ let Fe = class extends K {
8286
8325
  `;
8287
8326
  }
8288
8327
  };
8289
- pi([
8328
+ ui([
8290
8329
  o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
8291
8330
  ], Fe.prototype, "arrowNav", 2);
8292
- pi([
8331
+ ui([
8293
8332
  o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
8294
8333
  ], Fe.prototype, "disableArrowNav", 2);
8295
- pi([
8334
+ ui([
8296
8335
  B()
8297
8336
  ], Fe.prototype, "tabRefs", 2);
8298
- pi([
8337
+ ui([
8299
8338
  B()
8300
8339
  ], Fe.prototype, "tabCount", 2);
8301
- pi([
8340
+ ui([
8302
8341
  sh({ context: on }),
8303
8342
  B()
8304
8343
  ], Fe.prototype, "context", 2);
8305
- Fe = pi([
8344
+ Fe = ui([
8306
8345
  j("pkt-tabs")
8307
8346
  ], Fe);
8308
8347
  var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
@@ -8337,10 +8376,10 @@ let ie = class extends K {
8337
8376
  ${E(this.elementRef)}
8338
8377
  href=${this.href}
8339
8378
  class="pkt-tabs__link ${e}"
8340
- role=${C(s)}
8341
- aria-selected=${C(a)}
8342
- aria-controls=${C(this.controls || void 0)}
8343
- tabindex=${C(n)}
8379
+ role=${S(s)}
8380
+ aria-selected=${S(a)}
8381
+ aria-controls=${S(this.controls || void 0)}
8382
+ tabindex=${S(n)}
8344
8383
  @click=${this.handleClick}
8345
8384
  @keyup=${this.handleKeyUp}
8346
8385
  >
@@ -8351,10 +8390,10 @@ let ie = class extends K {
8351
8390
  ${E(this.elementRef)}
8352
8391
  type="button"
8353
8392
  class="pkt-tabs__button pkt-link-button ${e}"
8354
- role=${C(s)}
8355
- aria-selected=${C(a)}
8356
- aria-controls=${C(this.controls || void 0)}
8357
- tabindex=${C(n)}
8393
+ role=${S(s)}
8394
+ aria-selected=${S(a)}
8395
+ aria-controls=${S(this.controls || void 0)}
8396
+ tabindex=${S(n)}
8358
8397
  @click=${this.handleClick}
8359
8398
  @keyup=${this.handleKeyUp}
8360
8399
  >
@@ -8420,7 +8459,7 @@ var dh = Object.defineProperty, ch = Object.getOwnPropertyDescriptor, ji = (i, t
8420
8459
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8421
8460
  return s && a && dh(t, e, a), a;
8422
8461
  };
8423
- let ni = class extends P {
8462
+ let ni = class extends D {
8424
8463
  constructor() {
8425
8464
  super(), this.inputRef = A(), this.helptextSlot = A(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
8426
8465
  }
@@ -8466,10 +8505,10 @@ let ni = class extends P {
8466
8505
  class=${t}
8467
8506
  id=${this.id + "-input"}
8468
8507
  name=${(this.name || this.id) + "-input"}
8469
- placeholder=${C(this.placeholder)}
8508
+ placeholder=${S(this.placeholder)}
8470
8509
  .value=${hh(this.value)}
8471
- minlength=${C(this.minlength)}
8472
- maxlength=${C(this.maxlength)}
8510
+ minlength=${S(this.minlength)}
8511
+ maxlength=${S(this.maxlength)}
8473
8512
  ?readonly=${this.readonly}
8474
8513
  autocomplete=${this.autocomplete}
8475
8514
  aria-labelledby=${e}
@@ -8513,7 +8552,7 @@ var ph = Object.defineProperty, uh = Object.getOwnPropertyDescriptor, re = (i, t
8513
8552
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8514
8553
  return s && a && ph(t, e, a), a;
8515
8554
  };
8516
- let Zt = class extends P {
8555
+ let Zt = class extends D {
8517
8556
  constructor() {
8518
8557
  super(), this.inputRef = A(), this.helptextSlot = A(), 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);
8519
8558
  }
@@ -8564,14 +8603,14 @@ let Zt = class extends P {
8564
8603
  type=${this.type}
8565
8604
  name=${(this.name || this.id) + "-input"}
8566
8605
  id=${this.id + "-input"}
8567
- placeholder=${C(this.placeholder)}
8606
+ placeholder=${S(this.placeholder)}
8568
8607
  aria-labelledby=${s}
8569
8608
  autocomplete=${this.autocomplete || "off"}
8570
- minlength=${C(this.minlength || void 0)}
8571
- maxlength=${C(this.maxlength || void 0)}
8572
- min=${C(this.min || void 0)}
8573
- max=${C(this.max || void 0)}
8574
- step=${C(this.step || void 0)}
8609
+ minlength=${S(this.minlength || void 0)}
8610
+ maxlength=${S(this.maxlength || void 0)}
8611
+ min=${S(this.min || void 0)}
8612
+ max=${S(this.max || void 0)}
8613
+ step=${S(this.step || void 0)}
8575
8614
  ?readonly=${this.readonly}
8576
8615
  size=${this.size || $}
8577
8616
  .value=${this.value}
@@ -8651,7 +8690,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t
8651
8690
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8652
8691
  return s && a && mh(t, e, a), a;
8653
8692
  };
8654
- let Ii = class extends P {
8693
+ let Ri = class extends D {
8655
8694
  constructor() {
8656
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;
8657
8696
  }
@@ -8742,23 +8781,23 @@ let Ii = class extends P {
8742
8781
  ?optionalTag=${this.optionalTag}
8743
8782
  ?requiredTag=${this.requiredTag}
8744
8783
  useWrapper=${this.useWrapper}
8745
- ariaDescribedBy=${C(this.ariaDescribedBy)}
8784
+ ariaDescribedBy=${S(this.ariaDescribedBy)}
8746
8785
  class="pkt-select"
8747
- errorMessage=${C(this.errorMessage)}
8786
+ errorMessage=${S(this.errorMessage)}
8748
8787
  forId=${this.id + "-input"}
8749
- helptext=${C(this.helptext)}
8750
- helptextDropdown=${C(this.helptextDropdown)}
8751
- helptextDropdownButton=${C(this.helptextDropdownButton)}
8752
- label=${C(this.label)}
8753
- optionalText=${C(this.optionalText)}
8754
- requiredText=${C(this.requiredText)}
8755
- tagText=${C(this.tagText)}
8788
+ helptext=${S(this.helptext)}
8789
+ helptextDropdown=${S(this.helptextDropdown)}
8790
+ helptextDropdownButton=${S(this.helptextDropdownButton)}
8791
+ label=${S(this.label)}
8792
+ optionalText=${S(this.optionalText)}
8793
+ requiredText=${S(this.requiredText)}
8794
+ tagText=${S(this.tagText)}
8756
8795
  >
8757
8796
  <select
8758
8797
  class=${i}
8759
8798
  aria-invalid=${this.hasError}
8760
8799
  aria-errormessage=${`${this.id}-error`}
8761
- aria-labelledby=${C(this.ariaLabelledby)}
8800
+ aria-labelledby=${S(this.ariaLabelledby)}
8762
8801
  ?disabled=${this.disabled}
8763
8802
  id=${this.id + "-input"}
8764
8803
  name=${(this.name || this.id) + "-input"}
@@ -8798,16 +8837,16 @@ let Ii = class extends P {
8798
8837
  };
8799
8838
  cs([
8800
8839
  o({ type: Array, attribute: "options" })
8801
- ], Ii.prototype, "_optionsProp", 2);
8840
+ ], Ri.prototype, "_optionsProp", 2);
8802
8841
  cs([
8803
8842
  o({ type: String })
8804
- ], Ii.prototype, "value", 2);
8843
+ ], Ri.prototype, "value", 2);
8805
8844
  cs([
8806
8845
  B()
8807
- ], Ii.prototype, "_options", 2);
8808
- Ii = cs([
8846
+ ], Ri.prototype, "_options", 2);
8847
+ Ri = cs([
8809
8848
  j("pkt-select")
8810
- ], Ii);
8849
+ ], Ri);
8811
8850
  var gh = Object.defineProperty, vh = Object.getOwnPropertyDescriptor, Fi = (i, t, e, s) => {
8812
8851
  for (var a = s > 1 ? void 0 : s ? vh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8813
8852
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -8901,8 +8940,8 @@ ri = Fi([
8901
8940
  ], ri);
8902
8941
  const L = Jt({
8903
8942
  tagName: "pkt-icon",
8904
- elementClass: Re,
8905
- react: mt,
8943
+ elementClass: Le,
8944
+ react: gt,
8906
8945
  displayName: "PktIcon",
8907
8946
  events: {}
8908
8947
  }), bh = Z(
@@ -8919,18 +8958,18 @@ const L = Jt({
8919
8958
  onClick: p,
8920
8959
  onToggle: m
8921
8960
  }, f) => {
8922
- const [y, b] = ke(i), { name: k } = kn(), w = l || k, S = n !== void 0 ? n : y;
8923
- De(() => {
8961
+ const [y, b] = ke(i), { name: k } = kn(), w = l || k, C = n !== void 0 ? n : y;
8962
+ Ie(() => {
8924
8963
  n === void 0 && b(i);
8925
8964
  }, [i, n]);
8926
- const O = (T) => {
8927
- const G = T.currentTarget.open;
8928
- n === void 0 && b(G), m == null || m(T);
8929
- }, N = (T) => {
8965
+ const O = (N) => {
8966
+ const G = N.currentTarget.open;
8967
+ n === void 0 && b(G), m == null || m(N);
8968
+ }, T = (N) => {
8930
8969
  setTimeout(() => {
8931
- p == null || p(T);
8970
+ p == null || p(N);
8932
8971
  }, 0);
8933
- }, I = [
8972
+ }, P = [
8934
8973
  "pkt-accordion-item",
8935
8974
  a && "pkt-accordion-item--compact",
8936
8975
  s && `pkt-accordion-item--${s}`,
@@ -8940,10 +8979,10 @@ const L = Jt({
8940
8979
  "details",
8941
8980
  {
8942
8981
  ref: f,
8943
- className: I,
8982
+ className: P,
8944
8983
  id: t,
8945
- open: S,
8946
- onClick: N,
8984
+ open: C,
8985
+ onClick: T,
8947
8986
  name: w,
8948
8987
  onToggle: O,
8949
8988
  children: [
@@ -9001,7 +9040,7 @@ function yh() {
9001
9040
  })(Es)), Es.exports;
9002
9041
  }
9003
9042
  var $h = yh();
9004
- const ht = /* @__PURE__ */ kh($h), ln = ({
9043
+ const dt = /* @__PURE__ */ kh($h), ln = ({
9005
9044
  children: i,
9006
9045
  closeAlert: t,
9007
9046
  compact: e,
@@ -9026,7 +9065,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
9026
9065
  }, w = Ls(() => {
9027
9066
  y(!0), m.onClose && m.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9028
9067
  }, [m.onClose, y]);
9029
- return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: ht(b, p), children: /* @__PURE__ */ x("div", { className: ht(k), children: [
9068
+ return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: dt(b, p), children: /* @__PURE__ */ x("div", { className: dt(k), children: [
9030
9069
  /* @__PURE__ */ h(
9031
9070
  L,
9032
9071
  {
@@ -9061,7 +9100,7 @@ ln.displayName = "PktAlert";
9061
9100
  const _h = Jt({
9062
9101
  tagName: "pkt-backlink",
9063
9102
  elementClass: si,
9064
- react: mt,
9103
+ react: gt,
9065
9104
  displayName: "PktBackLink"
9066
9105
  });
9067
9106
  _h.displayName = "PktBackLink";
@@ -9102,53 +9141,62 @@ const Gd = Z(
9102
9141
  ] });
9103
9142
  }
9104
9143
  );
9105
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
9144
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.21/animations/";
9106
9145
  const oi = Z(
9107
9146
  ({
9108
9147
  children: i,
9109
9148
  className: t,
9110
9149
  iconName: e = "user",
9111
9150
  secondIconName: s = "user",
9112
- size: a = "medium",
9113
- fullWidth: n = !1,
9114
- fullWidthOnMobile: r = !1,
9115
- skin: l = "primary",
9116
- type: d = "button",
9117
- variant: p = "label-only",
9118
- state: m,
9119
- color: f,
9120
- isLoading: y = void 0,
9121
- disabled: b = void 0,
9122
- loadingAnimationPath: k = window.pktAnimationPath,
9123
- ...w
9124
- }, S) => {
9125
- const O = [
9151
+ iconPath: a,
9152
+ secondIconPath: n,
9153
+ size: r = "medium",
9154
+ fullWidth: l = !1,
9155
+ fullWidthOnMobile: d = !1,
9156
+ skin: p = "primary",
9157
+ type: m = "button",
9158
+ variant: f = "label-only",
9159
+ state: y,
9160
+ color: b,
9161
+ isLoading: k = void 0,
9162
+ disabled: w = void 0,
9163
+ loadingAnimationPath: C = window.pktAnimationPath,
9164
+ ...O
9165
+ }, T) => {
9166
+ const P = [
9126
9167
  t,
9127
9168
  "pkt-btn",
9128
- a && `pkt-btn--${a}`,
9129
- n && "pkt-btn--full",
9130
- r && "pkt-btn--full-small",
9131
- l && `pkt-btn--${l}`,
9169
+ r && `pkt-btn--${r}`,
9170
+ l && "pkt-btn--full",
9171
+ d && "pkt-btn--full-small",
9132
9172
  p && `pkt-btn--${p}`,
9133
9173
  f && `pkt-btn--${f}`,
9134
- m && `pkt-btn--${m}`,
9135
- y && "pkt-btn--isLoading"
9174
+ b && `pkt-btn--${b}`,
9175
+ y && `pkt-btn--${y}`,
9176
+ k && "pkt-btn--isLoading"
9136
9177
  ].filter(Boolean).join(" ");
9137
9178
  return /* @__PURE__ */ x(
9138
9179
  "button",
9139
9180
  {
9140
- ...w,
9141
- "aria-busy": y || void 0,
9142
- "aria-disabled": b || void 0,
9143
- disabled: b,
9144
- className: O,
9145
- type: d,
9146
- ref: S,
9181
+ ...O,
9182
+ "aria-busy": k || void 0,
9183
+ "aria-disabled": w || void 0,
9184
+ disabled: w,
9185
+ className: P,
9186
+ type: m,
9187
+ ref: T,
9147
9188
  children: [
9148
- y && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: k }),
9149
- p !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e }),
9189
+ k && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: C }),
9190
+ f !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e, ...a && { path: a } }),
9150
9191
  /* @__PURE__ */ h("span", { className: "pkt-btn__text", children: i }),
9151
- p === "icons-right-and-left" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: s })
9192
+ f === "icons-right-and-left" && /* @__PURE__ */ h(
9193
+ L,
9194
+ {
9195
+ className: "pkt-btn__icon",
9196
+ name: s,
9197
+ ...n && { path: n }
9198
+ }
9199
+ )
9152
9200
  ]
9153
9201
  }
9154
9202
  );
@@ -9157,8 +9205,8 @@ const oi = Z(
9157
9205
  oi.displayName = "PktButton";
9158
9206
  const wh = Jt({
9159
9207
  tagName: "pkt-card",
9160
- elementClass: lt,
9161
- react: mt,
9208
+ elementClass: ht,
9209
+ react: gt,
9162
9210
  displayName: "PktCard",
9163
9211
  events: {}
9164
9212
  }), xh = Z(
@@ -9183,16 +9231,16 @@ const Sh = Z(
9183
9231
  optionalTag: b,
9184
9232
  optionalText: k = "Valgfritt",
9185
9233
  requiredTag: w,
9186
- requiredText: S = "Må fylles ut",
9234
+ requiredText: C = "Må fylles ut",
9187
9235
  tagText: O,
9188
- ...N
9189
- }, I) => {
9190
- const T = Bs(null);
9191
- De(() => {
9192
- T.current && y !== void 0 && (T.current.indeterminate = y);
9193
- }, [y]), De(() => {
9194
- typeof I == "function" ? I(T.current) : I && (I.current = T.current);
9195
- }, [I]);
9236
+ ...T
9237
+ }, P) => {
9238
+ const N = Bs(null);
9239
+ Ie(() => {
9240
+ N.current && y !== void 0 && (N.current.indeterminate = y);
9241
+ }, [y]), Ie(() => {
9242
+ typeof P == "function" ? P(N.current) : P && (P.current = N.current);
9243
+ }, [P]);
9196
9244
  const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
9197
9245
  "pkt-input-check__input-label",
9198
9246
  e ? "pkt-input-check__input-label--disabled" : "",
@@ -9202,10 +9250,10 @@ const Sh = Z(
9202
9250
  "pkt-input-check__input",
9203
9251
  t ? "pkt-input-check__input--tile" : "",
9204
9252
  e && t ? "pkt-input-check__input--tile-disabled" : ""
9205
- ].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9206
- O && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: O }),
9207
- b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
9208
- w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
9253
+ ].filter(Boolean).join(" "), mt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9254
+ O && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--gray", children: O }),
9255
+ b && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--blue-light", children: k }),
9256
+ w && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--beige", children: C })
9209
9257
  ] });
9210
9258
  return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className: _t, children: [
9211
9259
  p === "left" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
@@ -9218,13 +9266,13 @@ const Sh = Z(
9218
9266
  "input",
9219
9267
  {
9220
9268
  role: l ? "switch" : "checkbox",
9221
- ref: T,
9269
+ ref: N,
9222
9270
  className: `pkt-input-check__input-checkbox ${n ? "pkt-input-check__input-checkbox--error" : ""}`,
9223
9271
  type: "checkbox",
9224
9272
  id: i,
9225
9273
  disabled: e,
9226
9274
  ...f !== void 0 ? { checked: f } : { defaultChecked: m },
9227
- ...N
9275
+ ...T
9228
9276
  }
9229
9277
  ),
9230
9278
  p === "right" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
@@ -9240,7 +9288,7 @@ Sh.displayName = "PktCheckbox";
9240
9288
  const Ch = Jt({
9241
9289
  tagName: "pkt-combobox",
9242
9290
  elementClass: Q,
9243
- react: mt,
9291
+ react: gt,
9244
9292
  displayName: "PktCombobox",
9245
9293
  events: {
9246
9294
  onClick: "click",
@@ -9259,7 +9307,7 @@ Th.displayName = "PktCombobox";
9259
9307
  const Hs = Jt({
9260
9308
  tagName: "pkt-consent",
9261
9309
  elementClass: Ht,
9262
- react: mt,
9310
+ react: gt,
9263
9311
  displayName: "PktConsent",
9264
9312
  events: {
9265
9313
  onToggleConsent: "toggle-consent"
@@ -9269,7 +9317,7 @@ Hs.displayName = "PktConsent";
9269
9317
  const Nh = Jt({
9270
9318
  tagName: "pkt-datepicker",
9271
9319
  elementClass: tt,
9272
- react: mt,
9320
+ react: gt,
9273
9321
  displayName: "PktDatepicker",
9274
9322
  events: {
9275
9323
  onChange: "change",
@@ -9301,7 +9349,7 @@ const Yd = ({
9301
9349
  console.log(w.detail);
9302
9350
  }
9303
9351
  }) => {
9304
- var S, O;
9352
+ var C, O;
9305
9353
  const w = [s, "pkt-footer"].filter(Boolean).join(" ");
9306
9354
  return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
9307
9355
  /* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -9309,38 +9357,38 @@ const Yd = ({
9309
9357
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: i.title }),
9310
9358
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9311
9359
  i.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: i.text }),
9312
- (S = i.links) == null ? void 0 : S.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9360
+ (C = i.links) == null ? void 0 : C.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9313
9361
  "a",
9314
9362
  {
9315
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9316
- href: N.href,
9317
- target: N.openInNewTab || a ? "_blank" : "_self",
9318
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9363
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9364
+ href: T.href,
9365
+ target: T.openInNewTab || a ? "_blank" : "_self",
9366
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9319
9367
  children: [
9320
9368
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9321
- N.text
9369
+ T.text
9322
9370
  ]
9323
9371
  }
9324
- ) }, `links-${I}`))
9372
+ ) }, `links-${P}`))
9325
9373
  ] })
9326
9374
  ] }),
9327
9375
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
9328
9376
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
9329
9377
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9330
9378
  t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
9331
- (O = t.links) == null ? void 0 : O.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9379
+ (O = t.links) == null ? void 0 : O.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9332
9380
  "a",
9333
9381
  {
9334
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9335
- href: N.href,
9336
- target: N.openInNewTab || a ? "_blank" : "_self",
9337
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9382
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9383
+ href: T.href,
9384
+ target: T.openInNewTab || a ? "_blank" : "_self",
9385
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9338
9386
  children: [
9339
9387
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9340
- N.text
9388
+ T.text
9341
9389
  ]
9342
9390
  }
9343
- ) }, `links-${I}`))
9391
+ ) }, `links-${P}`))
9344
9392
  ] })
9345
9393
  ] }),
9346
9394
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -9389,27 +9437,27 @@ const Yd = ({
9389
9437
  ] })
9390
9438
  ] }),
9391
9439
  e && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
9392
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((N) => N.language).map((N, I) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9440
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((T) => T.language).map((T, P) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9393
9441
  "a",
9394
9442
  {
9395
- href: N.href,
9396
- "aria-label": `til ${N.language} versjon av nettsiden`,
9397
- target: N.openInNewTab || a ? "_blank" : "_self",
9398
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9399
- children: N.language
9443
+ href: T.href,
9444
+ "aria-label": `til ${T.language} versjon av nettsiden`,
9445
+ target: T.openInNewTab || a ? "_blank" : "_self",
9446
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9447
+ children: T.language
9400
9448
  }
9401
- ) }, `sociallinks-language-${I}`)) }),
9402
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((N) => N.iconName).map((N, I) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9449
+ ) }, `sociallinks-language-${P}`)) }),
9450
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((T) => T.iconName).map((T, P) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9403
9451
  "a",
9404
9452
  {
9405
- href: N.href,
9406
- "aria-label": `til ${N.iconName}`,
9453
+ href: T.href,
9454
+ "aria-label": `til ${T.iconName}`,
9407
9455
  className: "pkt-footer__social-icon-link",
9408
- target: N.openInNewTab || a ? "_blank" : "_self",
9409
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9410
- children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: N.iconName })
9456
+ target: T.openInNewTab || a ? "_blank" : "_self",
9457
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9458
+ children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: T.iconName })
9411
9459
  }
9412
- ) }, `sociallinks-${I}`)) })
9460
+ ) }, `sociallinks-${P}`)) })
9413
9461
  ] })
9414
9462
  ] }) });
9415
9463
  }, Zd = ({
@@ -9502,19 +9550,19 @@ const Yd = ({
9502
9550
  openMenu: b,
9503
9551
  logOut: k,
9504
9552
  changeRepresentation: w,
9505
- children: S,
9553
+ children: C,
9506
9554
  ...O
9507
- }, N) => {
9508
- const I = mt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9555
+ }, T) => {
9556
+ const P = gt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9509
9557
  year: "numeric",
9510
9558
  month: "long",
9511
9559
  day: "numeric"
9512
- }) : "", [n]), [T, H] = mt.useState(!1), [G, _t] = mt.useState(0), [pt, J] = mt.useState(!1), st = mt.useRef(null);
9513
- mt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9560
+ }) : "", [n]), [N, H] = gt.useState(!1), [G, _t] = gt.useState(0), [mt, J] = gt.useState(!1), st = gt.useRef(null);
9561
+ gt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9514
9562
  document && (document.removeEventListener("mouseup", Ot), window.removeEventListener("scroll", at));
9515
9563
  }));
9516
9564
  const Et = () => {
9517
- J(!pt);
9565
+ J(!mt);
9518
9566
  }, Ot = (R) => {
9519
9567
  st.current && !st.current.contains(R.target) && J(!1);
9520
9568
  }, at = () => {
@@ -9532,12 +9580,12 @@ const Yd = ({
9532
9580
  id: "pkt-header",
9533
9581
  "data-testid": "pkt-header",
9534
9582
  "aria-label": "Topp",
9535
- className: ht(i, "pkt-header", {
9583
+ className: dt(i, "pkt-header", {
9536
9584
  "pkt-header--fixed": s,
9537
9585
  "pkt-header--scroll-to-hide": a,
9538
- "pkt-header--hidden": T
9586
+ "pkt-header--hidden": N
9539
9587
  }),
9540
- ref: N,
9588
+ ref: T,
9541
9589
  children: [
9542
9590
  /* @__PURE__ */ x("div", { className: "pkt-header__logo", children: [
9543
9591
  typeof t == "string" ? /* @__PURE__ */ h("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: t, children: /* @__PURE__ */ h(
@@ -9546,7 +9594,7 @@ const Yd = ({
9546
9594
  name: "oslologo",
9547
9595
  className: "pkt-header__logo-svg",
9548
9596
  "aria-hidden": "true",
9549
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9597
+ path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9550
9598
  }
9551
9599
  ) }) : /* @__PURE__ */ h(
9552
9600
  "button",
@@ -9560,7 +9608,7 @@ const Yd = ({
9560
9608
  name: "oslologo",
9561
9609
  className: "pkt-header__logo-svg",
9562
9610
  "aria-hidden": "true",
9563
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9611
+ path: "https://punkt-cdn.oslo.kommune.no/13.21/logos/"
9564
9612
  }
9565
9613
  )
9566
9614
  }
@@ -9583,7 +9631,7 @@ const Yd = ({
9583
9631
  "li",
9584
9632
  {
9585
9633
  "data-testid": "usermenu",
9586
- className: `pkt-header--has-dropdown ${pt && !T ? "pkt-header--open-dropdown" : ""}`,
9634
+ className: `pkt-header--has-dropdown ${mt && !N ? "pkt-header--open-dropdown" : ""}`,
9587
9635
  ref: st,
9588
9636
  children: [
9589
9637
  /* @__PURE__ */ x(
@@ -9593,7 +9641,7 @@ const Yd = ({
9593
9641
  type: "button",
9594
9642
  role: "button",
9595
9643
  "aria-controls": "pktUserDropdown",
9596
- "aria-expanded": pt,
9644
+ "aria-expanded": mt,
9597
9645
  onClick: Et,
9598
9646
  children: [
9599
9647
  /* @__PURE__ */ h(L, { name: "user", className: "pkt-btn__icon" }),
@@ -9610,7 +9658,7 @@ const Yd = ({
9610
9658
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__name", translate: "no", children: n.name }),
9611
9659
  n.lastLoggedIn && /* @__PURE__ */ x("div", { className: "pkt-user-menu__last-logged-in", children: [
9612
9660
  "Sist pålogget: ",
9613
- /* @__PURE__ */ h("time", { children: I })
9661
+ /* @__PURE__ */ h("time", { children: P })
9614
9662
  ] })
9615
9663
  ] }),
9616
9664
  r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
@@ -9652,7 +9700,7 @@ const Yd = ({
9652
9700
  ]
9653
9701
  }
9654
9702
  ),
9655
- S && /* @__PURE__ */ h("li", { children: S }),
9703
+ C && /* @__PURE__ */ h("li", { children: C }),
9656
9704
  y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
9657
9705
  oi,
9658
9706
  {
@@ -9672,15 +9720,15 @@ const Yd = ({
9672
9720
  }
9673
9721
  ), Eh = Jt({
9674
9722
  tagName: "pkt-heading",
9675
- elementClass: Le,
9676
- react: mt,
9723
+ elementClass: we,
9724
+ react: gt,
9677
9725
  displayName: "PktHeading"
9678
9726
  }), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
9679
9727
  Oh.displayName = "PktHeading";
9680
9728
  const Mh = Jt({
9681
9729
  tagName: "pkt-helptext",
9682
9730
  elementClass: ce,
9683
- react: mt,
9731
+ react: gt,
9684
9732
  displayName: "PktHelptext",
9685
9733
  events: {
9686
9734
  onToggleHelpText: "toggleHelpText"
@@ -9715,25 +9763,25 @@ const ps = Z(
9715
9763
  hasError: b = !1,
9716
9764
  errorMessage: k,
9717
9765
  disabled: w = !1,
9718
- inline: S = !1,
9766
+ inline: C = !1,
9719
9767
  ariaDescribedby: O,
9720
- useWrapper: N = !0,
9721
- children: I,
9722
- className: T = "",
9768
+ useWrapper: T = !0,
9769
+ children: P,
9770
+ className: N = "",
9723
9771
  hasFieldset: H = !1,
9724
9772
  role: G = "group",
9725
9773
  counterPosition: _t = "bottom"
9726
- }, pt) => {
9774
+ }, mt) => {
9727
9775
  const [J, st] = ke(!1), Et = O || (e ? `${i}-helptext` : void 0), Ot = !!n, at = Ot && _t === "top", R = Ot && _t === "bottom", xt = () => st((ot) => !ot), Qt = [
9728
9776
  "pkt-inputwrapper",
9729
- T,
9777
+ N,
9730
9778
  b ? "pkt-inputwrapper--error" : "",
9731
9779
  w ? "pkt-inputwrapper--disabled" : "",
9732
- S ? "pkt-inputwrapper--inline" : ""
9780
+ C ? "pkt-inputwrapper--inline" : ""
9733
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: [
9734
9782
  r,
9735
9783
  l ? `/${l}` : ""
9736
- ] }) : null, xe = () => /* @__PURE__ */ x(Wt, { children: [
9784
+ ] }) : null, Se = () => /* @__PURE__ */ x(Wt, { children: [
9737
9785
  y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
9738
9786
  d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
9739
9787
  m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
@@ -9741,11 +9789,11 @@ const ps = Z(
9741
9789
  const ot = /* @__PURE__ */ x(Wt, { children: [
9742
9790
  t,
9743
9791
  " ",
9744
- xe()
9792
+ Se()
9745
9793
  ] });
9746
- return N ? 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 });
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 });
9747
9795
  }, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
9748
- e && N && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9796
+ e && T && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9749
9797
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
9750
9798
  /* @__PURE__ */ h(
9751
9799
  oi,
@@ -9778,11 +9826,11 @@ const ps = Z(
9778
9826
  We(),
9779
9827
  le(),
9780
9828
  at && /* @__PURE__ */ h(te, {}),
9781
- I,
9829
+ P,
9782
9830
  R && /* @__PURE__ */ h(te, {}),
9783
9831
  b && k && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(ln, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: k }) })
9784
9832
  ] });
9785
- return /* @__PURE__ */ h("div", { className: Qt, ref: pt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
9833
+ return /* @__PURE__ */ h("div", { className: Qt, ref: mt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
9786
9834
  }
9787
9835
  );
9788
9836
  ps.displayName = "PktInputWrapper";
@@ -9799,7 +9847,7 @@ const Ih = ({
9799
9847
  "a",
9800
9848
  {
9801
9849
  ...l,
9802
- className: ht({
9850
+ className: dt({
9803
9851
  "pkt-link": !0,
9804
9852
  "pkt-link--icon-left": !!t && s === "left" || !!(t && !s),
9805
9853
  "pkt-link--icon-right": !!t && s === "right",
@@ -9832,12 +9880,12 @@ const Rh = ({
9832
9880
  {
9833
9881
  ...d,
9834
9882
  href: s,
9835
- className: ht(p, l),
9883
+ className: dt(p, l),
9836
9884
  target: n ? "_blank" : "_self",
9837
9885
  rel: n ? "noopener noreferrer" : void 0,
9838
9886
  children: [
9839
9887
  a && /* @__PURE__ */ h(L, { className: "pkt-link__icon", name: a }),
9840
- e && /* @__PURE__ */ h("div", { className: ht(m), children: e }),
9888
+ e && /* @__PURE__ */ h("div", { className: dt(m), children: e }),
9841
9889
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__text", children: i })
9842
9890
  ]
9843
9891
  }
@@ -9847,7 +9895,7 @@ Rh.displayName = "PktLinkCard";
9847
9895
  const Lh = Jt({
9848
9896
  tagName: "pkt-loader",
9849
9897
  elementClass: Yt,
9850
- react: mt,
9898
+ react: gt,
9851
9899
  displayName: "PktLoader",
9852
9900
  events: {}
9853
9901
  }), Bh = Z(
@@ -9873,7 +9921,7 @@ const Vh = ({
9873
9921
  }, f = mn(), y = Ls(() => {
9874
9922
  p(!0), r && r();
9875
9923
  }, [p, r]);
9876
- return /* @__PURE__ */ x("div", { ...l, className: ht(m, t), ref: f, children: [
9924
+ return /* @__PURE__ */ x("div", { ...l, className: dt(m, t), ref: f, children: [
9877
9925
  n && /* @__PURE__ */ h("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ h(
9878
9926
  "button",
9879
9927
  {
@@ -9891,7 +9939,7 @@ Vh.displayName = "PktMessagebox";
9891
9939
  const jh = Jt({
9892
9940
  tagName: "pkt-modal",
9893
9941
  elementClass: Rt,
9894
- react: mt,
9942
+ react: gt,
9895
9943
  displayName: "PktModal",
9896
9944
  events: {}
9897
9945
  }), Fh = Z(
@@ -9901,7 +9949,7 @@ Fh.displayName = "PktModal";
9901
9949
  const Uh = Jt({
9902
9950
  tagName: "pkt-progressbar",
9903
9951
  elementClass: et,
9904
- react: mt,
9952
+ react: gt,
9905
9953
  displayName: "PktProgressbar",
9906
9954
  events: {}
9907
9955
  }), Hh = Z(
@@ -9926,34 +9974,34 @@ const qh = Z(
9926
9974
  requiredText: b,
9927
9975
  tagText: k,
9928
9976
  ...w
9929
- }, S) => {
9930
- const O = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
9977
+ }, C) => {
9978
+ const O = [s, "pkt-input-check"].filter(Boolean).join(" "), T = [
9931
9979
  "pkt-input-check__input",
9932
9980
  a ? "pkt-input-check__input--tile" : "",
9933
9981
  n && a ? "pkt-input-check__input--tile-disabled" : ""
9934
- ].filter(Boolean).join(" "), I = [
9982
+ ].filter(Boolean).join(" "), P = [
9935
9983
  "pkt-input-check__input-checkbox",
9936
9984
  l ? "pkt-input-check__input-checkbox--error" : ""
9937
- ].filter(Boolean).join(" "), T = ["pkt-input-check__input-label", n ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), H = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), G = () => /* @__PURE__ */ x(Wt, { children: [
9985
+ ].filter(Boolean).join(" "), N = ["pkt-input-check__input-label", n ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), H = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), G = () => /* @__PURE__ */ x(Wt, { children: [
9938
9986
  k && /* @__PURE__ */ h("span", { className: H + " pkt-tag--gray", children: k }),
9939
9987
  m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
9940
9988
  y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
9941
9989
  ] });
9942
- return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: N, children: [
9990
+ return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: T, children: [
9943
9991
  /* @__PURE__ */ h(
9944
9992
  "input",
9945
9993
  {
9946
- ref: S,
9994
+ ref: C,
9947
9995
  id: i,
9948
9996
  type: "radio",
9949
9997
  name: t,
9950
9998
  disabled: n,
9951
- className: I,
9999
+ className: P,
9952
10000
  ...p !== void 0 ? { checked: p } : { defaultChecked: d },
9953
10001
  ...w
9954
10002
  }
9955
10003
  ),
9956
- /* @__PURE__ */ x("label", { className: T, htmlFor: i, children: [
10004
+ /* @__PURE__ */ x("label", { className: N, htmlFor: i, children: [
9957
10005
  e,
9958
10006
  " ",
9959
10007
  G(),
@@ -9981,13 +10029,13 @@ const Xd = Z(
9981
10029
  onSuggestionClick: b,
9982
10030
  ...k
9983
10031
  }, w) => {
9984
- const S = (T, H) => {
9985
- T ? T() : b && b(H);
9986
- }, O = (T) => {
9987
- d = T.target.value;
9988
- }, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
9989
- let I;
9990
- return p ? I = (T) => /* @__PURE__ */ h("form", { role: "search", className: N, action: p, method: m, children: T }) : I = (T) => /* @__PURE__ */ h("div", { role: "search", className: N, children: T }), I(
10032
+ const C = (N, H) => {
10033
+ N ? N() : b && b(H);
10034
+ }, O = (N) => {
10035
+ d = N.target.value;
10036
+ }, T = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
10037
+ let P;
10038
+ return p ? P = (N) => /* @__PURE__ */ h("form", { role: "search", className: T, action: p, method: m, children: N }) : P = (N) => /* @__PURE__ */ h("div", { role: "search", className: T, children: N }), P(
9991
10039
  /* @__PURE__ */ x(Wt, { children: [
9992
10040
  a && /* @__PURE__ */ h("label", { htmlFor: a ? s : void 0, className: a ? "pkt-inputwrapper__label" : "", children: a }),
9993
10041
  /* @__PURE__ */ x("div", { className: i === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
@@ -10006,8 +10054,8 @@ const Xd = Z(
10006
10054
  ref: w,
10007
10055
  "aria-controls": `${s}-suggestions`,
10008
10056
  onChange: f || O,
10009
- onKeyUp: y && ((T) => {
10010
- T.key === "Enter" && (T.preventDefault(), y(d));
10057
+ onKeyUp: y && ((N) => {
10058
+ N.key === "Enter" && (N.preventDefault(), y(d));
10011
10059
  }),
10012
10060
  ...k
10013
10061
  }
@@ -10022,25 +10070,25 @@ const Xd = Z(
10022
10070
  color: i === "global" ? "yellow" : void 0,
10023
10071
  type: "submit",
10024
10072
  disabled: t,
10025
- onClick: y && ((T) => {
10026
- T.preventDefault(), y(d);
10073
+ onClick: y && ((N) => {
10074
+ N.preventDefault(), y(d);
10027
10075
  }),
10028
10076
  children: a || r
10029
10077
  }
10030
10078
  )
10031
10079
  ] }),
10032
- l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((T, H) => /* @__PURE__ */ h("li", { children: fn(
10033
- T.href ? "a" : T.onClick ? "button" : "div",
10080
+ l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((N, H) => /* @__PURE__ */ h("li", { children: fn(
10081
+ N.href ? "a" : N.onClick ? "button" : "div",
10034
10082
  {
10035
- href: T.href,
10036
- className: `pkt-searchinput__suggestion ${T.onClick ? "pkt-link-button" : ""} ${T.href || T.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10037
- type: T.onClick ? "button" : void 0,
10038
- onClick: () => S(T.onClick, H),
10039
- onKeyUp: (G) => G.key === "Enter" && S(T.onClick, H)
10083
+ href: N.href,
10084
+ className: `pkt-searchinput__suggestion ${N.onClick ? "pkt-link-button" : ""} ${N.href || N.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10085
+ type: N.onClick ? "button" : void 0,
10086
+ onClick: () => C(N.onClick, H),
10087
+ onKeyUp: (G) => G.key === "Enter" && C(N.onClick, H)
10040
10088
  },
10041
10089
  /* @__PURE__ */ x(Wt, { children: [
10042
- T.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: T.title }),
10043
- T.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: T.text })
10090
+ N.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: N.title }),
10091
+ N.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: N.text })
10044
10092
  ] })
10045
10093
  ) }, `search-suggestion-${H}`)) })
10046
10094
  ] })
@@ -10064,11 +10112,11 @@ const Xd = Z(
10064
10112
  label: b,
10065
10113
  name: k,
10066
10114
  optionalTag: w = !1,
10067
- optionalText: S,
10115
+ optionalText: C,
10068
10116
  requiredTag: O = !1,
10069
- requiredText: N,
10070
- tagText: I,
10071
- ...T
10117
+ requiredText: T,
10118
+ tagText: P,
10119
+ ...N
10072
10120
  }, H) => {
10073
10121
  const G = [s, "pkt-select"].join(" ");
10074
10122
  return /* @__PURE__ */ h(
@@ -10081,10 +10129,10 @@ const Xd = Z(
10081
10129
  helptextDropdown: d,
10082
10130
  helptextDropdownButton: p,
10083
10131
  optionalTag: w,
10084
- optionalText: S,
10132
+ optionalText: C,
10085
10133
  requiredTag: O,
10086
- requiredText: N,
10087
- tagText: I,
10134
+ requiredText: T,
10135
+ tagText: P,
10088
10136
  hasError: r,
10089
10137
  errorMessage: n,
10090
10138
  disabled: a,
@@ -10101,7 +10149,7 @@ const Xd = Z(
10101
10149
  disabled: a,
10102
10150
  id: `${m}-input`,
10103
10151
  name: k || m,
10104
- ...T,
10152
+ ...N,
10105
10153
  children: e
10106
10154
  }
10107
10155
  )
@@ -10114,10 +10162,10 @@ const Xd = Z(
10114
10162
  ] }), Kh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10115
10163
  /* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
10116
10164
  /* @__PURE__ */ h("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
10117
- ] }), tc = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: ht("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10165
+ ] }), tc = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: dt("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10118
10166
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
10119
10167
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
10120
- /* @__PURE__ */ h("span", { className: ht("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10168
+ /* @__PURE__ */ h("span", { className: dt("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10121
10169
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
10122
10170
  /* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
10123
10171
  /* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
@@ -10133,12 +10181,12 @@ const Xd = Z(
10133
10181
  orientation: n = "vertical",
10134
10182
  ...r
10135
10183
  }, l) => {
10136
- const d = ht(
10184
+ const d = dt(
10137
10185
  t,
10138
10186
  "pkt-stepper",
10139
10187
  n === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
10140
10188
  ), p = Os.map(e, (m, f) => gn(m) ? vn(m, {
10141
- className: ht(m.props.className, {
10189
+ className: dt(m.props.className, {
10142
10190
  "pkt-step--hideStep": s && f !== i,
10143
10191
  "pkt-step--hideContent": a && f !== i
10144
10192
  })
@@ -10156,7 +10204,7 @@ const Xd = Z(
10156
10204
  "table",
10157
10205
  {
10158
10206
  "data-testid": "pkt-table",
10159
- className: ht(i, "pkt-table", {
10207
+ className: dt(i, "pkt-table", {
10160
10208
  "pkt-table--responsive": s,
10161
10209
  "pkt-table--compact": t,
10162
10210
  "pkt-table--basic": e === "basic",
@@ -10166,17 +10214,17 @@ const Xd = Z(
10166
10214
  ...n,
10167
10215
  children: a
10168
10216
  }
10169
- ), sc = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: ht(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ac = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10217
+ ), sc = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: dt(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ac = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10170
10218
  "td",
10171
10219
  {
10172
- className: ht(t, "pkt-table__data-cell", {}),
10220
+ className: dt(t, "pkt-table__data-cell", {}),
10173
10221
  "data-label": e,
10174
10222
  role: "cell",
10175
10223
  "data-testid": "pkt-table__data-cell",
10176
10224
  ...s,
10177
10225
  children: i
10178
10226
  }
10179
- ), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: ht(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: ht(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), oc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: ht(i, "pkt-table__row", {}), role: "row", ...e, children: t }), hn = Z(
10227
+ ), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: dt(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: dt(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), oc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: dt(i, "pkt-table__row", {}), role: "row", ...e, children: t }), hn = Z(
10180
10228
  ({
10181
10229
  children: i,
10182
10230
  skin: t,
@@ -10193,14 +10241,14 @@ const Xd = Z(
10193
10241
  }, y) => {
10194
10242
  const [b, k] = ke(!1), w = Ls(() => {
10195
10243
  k(!0), d && d();
10196
- }, [k]), S = Bs(null), [O, N] = ke("");
10197
- De(() => {
10244
+ }, [k]), C = Bs(null), [O, T] = ke("");
10245
+ Ie(() => {
10198
10246
  var G, _t;
10199
- N(((_t = (G = S.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10247
+ T(((_t = (G = C.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10200
10248
  }, [i]);
10201
- const I = bn(() => {
10249
+ const P = bn(() => {
10202
10250
  if (a && !l) return O && `Klikk for å fjerne ${O}` || m;
10203
- }, [a, l, O, m]), T = {
10251
+ }, [a, l, O, m]), N = {
10204
10252
  "pkt-tag": !0,
10205
10253
  [`pkt-tag--${s}`]: !!s,
10206
10254
  [`pkt-tag--${t}`]: !!t,
@@ -10219,21 +10267,21 @@ const Xd = Z(
10219
10267
  "button",
10220
10268
  {
10221
10269
  ...f,
10222
- className: ht(H, n),
10270
+ className: dt(H, n),
10223
10271
  type: p,
10224
10272
  onClick: w,
10225
10273
  "aria-label": l,
10226
- "aria-description": I,
10274
+ "aria-description": P,
10227
10275
  ref: y,
10228
10276
  children: [
10229
10277
  r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
10230
- /* @__PURE__ */ h("span", { ref: S, children: i }),
10278
+ /* @__PURE__ */ h("span", { ref: C, children: i }),
10231
10279
  /* @__PURE__ */ h(L, { className: "pkt-tag__close-btn", name: "close" })
10232
10280
  ]
10233
10281
  }
10234
- ) : /* @__PURE__ */ x("span", { ...f, className: ht(T, n), ref: y, children: [
10282
+ ) : /* @__PURE__ */ x("span", { ...f, className: dt(N, n), ref: y, children: [
10235
10283
  r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
10236
- /* @__PURE__ */ h("span", { ref: S, children: i })
10284
+ /* @__PURE__ */ h("span", { ref: C, children: i })
10237
10285
  ] });
10238
10286
  }
10239
10287
  );
@@ -10252,12 +10300,12 @@ const dn = Z(
10252
10300
  ref: (O) => {
10253
10301
  f(d, O), typeof p == "function" ? p(O) : p && (p.current = O);
10254
10302
  }
10255
- }, S = /* @__PURE__ */ x(Wt, { children: [
10303
+ }, C = /* @__PURE__ */ x(Wt, { children: [
10256
10304
  a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
10257
10305
  i,
10258
10306
  r && /* @__PURE__ */ h(hn, { skin: l, size: "small", children: r })
10259
10307
  ] });
10260
- return e ? /* @__PURE__ */ h("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: S }) : /* @__PURE__ */ h("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: S });
10308
+ return e ? /* @__PURE__ */ h("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: C }) : /* @__PURE__ */ h("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: C });
10261
10309
  }
10262
10310
  );
10263
10311
  dn.displayName = "PktTabItem";
@@ -10269,19 +10317,19 @@ const cn = Oa(null), Gh = () => {
10269
10317
  }, lc = Z(
10270
10318
  ({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
10271
10319
  const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
10272
- De(() => {
10320
+ Ie(() => {
10273
10321
  r.current = r.current.slice(0, p);
10274
10322
  }, [p]);
10275
10323
  const m = (k) => {
10276
10324
  const w = e == null ? void 0 : e[k];
10277
10325
  w != null && w.action && w.action(k), s && s(k);
10278
10326
  }, f = (k, w) => {
10279
- var S, O;
10280
- l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((O = r.current[k + 1]) == null || O.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
10327
+ var C, O;
10328
+ l && (w.code === "ArrowLeft" && k !== 0 && ((C = r.current[k - 1]) == null || C.focus()), w.code === "ArrowRight" && k < p - 1 && ((O = r.current[k + 1]) == null || O.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
10281
10329
  }, y = (k, w) => {
10282
10330
  r.current[k] = w;
10283
10331
  }, b = e == null ? void 0 : e.map((k, w) => {
10284
- var S, O;
10332
+ var C, O;
10285
10333
  return /* @__PURE__ */ h(
10286
10334
  dn,
10287
10335
  {
@@ -10290,7 +10338,7 @@ const cn = Oa(null), Gh = () => {
10290
10338
  onClick: () => m(w),
10291
10339
  icon: k.icon,
10292
10340
  controls: k.controls,
10293
- tag: (S = k.tag) == null ? void 0 : S.text,
10341
+ tag: (C = k.tag) == null ? void 0 : C.text,
10294
10342
  tagSkin: (O = k.tag) == null ? void 0 : O.skin,
10295
10343
  index: w,
10296
10344
  children: k.text
@@ -10318,15 +10366,15 @@ const cn = Oa(null), Gh = () => {
10318
10366
  fullwidth: b = !1,
10319
10367
  label: k,
10320
10368
  name: w,
10321
- optionalTag: S = !1,
10369
+ optionalTag: C = !1,
10322
10370
  optionalText: O,
10323
- requiredTag: N = !1,
10324
- requiredText: I,
10325
- tagText: T = null,
10371
+ requiredTag: T = !1,
10372
+ requiredText: P,
10373
+ tagText: N = null,
10326
10374
  placeholder: H,
10327
10375
  rows: G,
10328
10376
  useWrapper: _t = !0,
10329
- onChange: pt,
10377
+ onChange: mt,
10330
10378
  value: J,
10331
10379
  autoComplete: st = "off",
10332
10380
  minLength: Et,
@@ -10335,12 +10383,12 @@ const cn = Oa(null), Gh = () => {
10335
10383
  skipForwardTestid: R = !1,
10336
10384
  ...xt
10337
10385
  }, Qt) => {
10338
- const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, xe = `${te}-label`, We = e || xe, [le, Ut] = ke(0), ot = (Se) => {
10339
- var Ce, he;
10340
- if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), pt)
10341
- return pt(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);
10342
10390
  };
10343
- return De(() => {
10391
+ return Ie(() => {
10344
10392
  J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
10345
10393
  }, [J]), /* @__PURE__ */ h(
10346
10394
  ps,
@@ -10356,11 +10404,11 @@ const cn = Oa(null), Gh = () => {
10356
10404
  helptextDropdownButton: f,
10357
10405
  inline: y,
10358
10406
  label: k,
10359
- optionalTag: S,
10407
+ optionalTag: C,
10360
10408
  optionalText: O,
10361
- requiredTag: N,
10362
- requiredText: I,
10363
- tagText: T,
10409
+ requiredTag: T,
10410
+ requiredText: P,
10411
+ tagText: N,
10364
10412
  useWrapper: _t,
10365
10413
  counter: s,
10366
10414
  counterCurrent: le,
@@ -10408,15 +10456,15 @@ const cn = Oa(null), Gh = () => {
10408
10456
  iconNameRight: b,
10409
10457
  inline: k = !1,
10410
10458
  fullwidth: w = !1,
10411
- label: S,
10459
+ label: C,
10412
10460
  name: O,
10413
- optionalTag: N = !1,
10414
- optionalText: I,
10415
- requiredTag: T = !1,
10461
+ optionalTag: T = !1,
10462
+ optionalText: P,
10463
+ requiredTag: N = !1,
10416
10464
  requiredText: H,
10417
10465
  tagText: G = null,
10418
10466
  placeholder: _t,
10419
- prefix: pt,
10467
+ prefix: mt,
10420
10468
  suffix: J,
10421
10469
  type: st = "text",
10422
10470
  useWrapper: Et = !0,
@@ -10427,19 +10475,19 @@ const cn = Oa(null), Gh = () => {
10427
10475
  min: Qt,
10428
10476
  max: oe,
10429
10477
  step: te,
10430
- size: xe,
10478
+ size: Se,
10431
10479
  readonly: We,
10432
10480
  required: le,
10433
10481
  dataTestid: Ut,
10434
10482
  onChange: ot,
10435
- skipForwardTestid: Se = !1,
10436
- ...Ce
10483
+ skipForwardTestid: Ce = !1,
10484
+ ...Te
10437
10485
  }, he) => {
10438
- 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) => {
10439
10487
  var zi, Wi;
10440
10488
  a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
10441
10489
  };
10442
- return De(() => {
10490
+ return Ie(() => {
10443
10491
  at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
10444
10492
  }, [at]), /* @__PURE__ */ h(
10445
10493
  ps,
@@ -10454,10 +10502,10 @@ const cn = Oa(null), Gh = () => {
10454
10502
  helptextDropdown: f,
10455
10503
  helptextDropdownButton: y,
10456
10504
  inline: k,
10457
- label: S,
10458
- optionalTag: N,
10459
- optionalText: I,
10460
- requiredTag: T,
10505
+ label: C,
10506
+ optionalTag: T,
10507
+ optionalText: P,
10508
+ requiredTag: N,
10461
10509
  requiredText: H,
10462
10510
  tagText: G,
10463
10511
  useWrapper: Et,
@@ -10469,13 +10517,13 @@ const cn = Oa(null), Gh = () => {
10469
10517
  {
10470
10518
  className: "pkt-input__container",
10471
10519
  "data-testid": Ut,
10472
- "data-skip-forward-testid": Se ? "true" : void 0,
10520
+ "data-skip-forward-testid": Ce ? "true" : void 0,
10473
10521
  children: [
10474
- pt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: pt }),
10522
+ mt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: mt }),
10475
10523
  /* @__PURE__ */ h(
10476
10524
  "input",
10477
10525
  {
10478
- ...Ce,
10526
+ ...Te,
10479
10527
  ref: he,
10480
10528
  className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
10481
10529
  type: st,
@@ -10494,7 +10542,7 @@ const cn = Oa(null), Gh = () => {
10494
10542
  step: te,
10495
10543
  minLength: R,
10496
10544
  maxLength: xt,
10497
- size: xe,
10545
+ size: Se,
10498
10546
  required: le
10499
10547
  }
10500
10548
  ),