@oslokommune/punkt-react 13.19.1 → 13.20.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 je, useEffect as Qe, 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 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";
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,9 +94,9 @@ 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}>`, Pe = document, Ai = () => Pe.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, Ce = 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), xt = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), ia = /* @__PURE__ */ new WeakMap(), Ee = Pe.createTreeWalker(Pe, 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}>`, 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);
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;
@@ -107,8 +107,8 @@ const Sn = (i, t) => {
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 = Ce) : m[3] !== void 0 && (r = Ce) : r === Ce ? 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 ? Ce : m[3] === '"' ? ea : ta) : r === ea || r === ta ? r = Ce : r === Xs || r === Qs ? r = fi : (r = Ce, a = void 0);
111
- const b = r === Ce && i[l + 1].startsWith("/>") ? " " : "";
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
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);
113
113
  }
114
114
  return [La(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
@@ -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), Ee.currentNode = this.el.content, e === 2 || e === 3) {
122
+ if (this.el = Ba.createElement(p, s), Oe.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 = Ee.nextNode()) !== null && d.length < l; ) {
126
+ for (; (a = Oe.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,7 +133,7 @@ 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()), Ee.nextNode(), d.push({ type: 2, index: ++n });
136
+ for (let b = 0; b < y; b++) a.append(f[b], Ai()), Oe.nextNode(), d.push({ type: 2, index: ++n });
137
137
  a.append(f[y], Ai());
138
138
  }
139
139
  }
@@ -146,13 +146,13 @@ let Ms = class Ba {
146
146
  }
147
147
  }
148
148
  static createElement(t, e) {
149
- const s = Pe.createElement("template");
149
+ const s = Ie.createElement("template");
150
150
  return s.innerHTML = t, s;
151
151
  }
152
152
  };
153
153
  function ti(i, t, e = i, s) {
154
154
  var a, n;
155
- if (t === xt) return t;
155
+ if (t === St) return t;
156
156
  let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
157
157
  const l = Ei(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;
@@ -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) ?? Pe).importNode(e, !0);
172
- Ee.currentNode = a;
173
- let n = Ee.nextNode(), r = 0, l = 0, d = s[0];
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];
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 = Ee.nextNode(), r++);
179
+ r !== (d == null ? void 0 : d.index) && (n = Oe.nextNode(), r++);
180
180
  }
181
- return Ee.currentNode = Pe, a;
181
+ return Oe.currentNode = Ie, 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 !== xt && 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), 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);
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(Pe.createTextNode(t)), this._$AH = t;
216
+ this._$AH !== $ && Ei(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Ie.createTextNode(t)), this._$AH = t;
217
217
  }
218
218
  $(t) {
219
219
  var 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 !== xt, r && (this._$AH = t);
262
+ if (n === void 0) t = ti(this, t, e, 0), r = !Ei(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 === xt && (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 = !Ei(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
  }
@@ -289,7 +289,7 @@ let Cn = class {
289
289
  super(t, e, s, a, n), this.type = 5;
290
290
  }
291
291
  _$AI(t, e = this) {
292
- if ((t = ti(this, t, e, 0) ?? $) === xt) return;
292
+ if ((t = ti(this, t, e, 0) ?? $) === St) return;
293
293
  const s = this._$AH, a = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || a);
294
294
  a && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
295
295
  }
@@ -399,7 +399,7 @@ const { is: Rn, defineProperty: Ln, getOwnPropertyDescriptor: Bn, getOwnProperty
399
399
  return e;
400
400
  } }, Fs = (i, t) => !Rn(i, t), la = { attribute: !0, type: String, converter: es, reflect: !1, useDefault: !1, hasChanged: Fs };
401
401
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ei.litPropertyMetadata ?? (ei.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
402
- let Ye = class extends HTMLElement {
402
+ let Ze = class extends HTMLElement {
403
403
  static addInitializer(t) {
404
404
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
405
405
  }
@@ -602,7 +602,7 @@ let Ye = class extends HTMLElement {
602
602
  firstUpdated(t) {
603
603
  }
604
604
  };
605
- Ye.elementStyles = [], Ye.shadowRootOptions = { mode: "open" }, Ye[Ti("elementProperties")] = /* @__PURE__ */ new Map(), Ye[Ti("finalized")] = /* @__PURE__ */ new Map(), oa == null || oa({ ReactiveElement: Ye }), (ei.reactiveElementVersions ?? (ei.reactiveElementVersions = [])).push("2.1.1");
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");
606
606
  /**
607
607
  * @license
608
608
  * Copyright 2017 Google LLC
@@ -641,7 +641,7 @@ function o(i) {
641
641
  * SPDX-License-Identifier: BSD-3-Clause
642
642
  */
643
643
  const Oi = globalThis;
644
- let Ze = class extends Ye {
644
+ let Je = class extends Ze {
645
645
  constructor() {
646
646
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
647
647
  }
@@ -663,15 +663,15 @@ let Ze = class extends Ye {
663
663
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
664
664
  }
665
665
  render() {
666
- return xt;
666
+ return St;
667
667
  }
668
668
  };
669
669
  var ha;
670
- Ze._$litElement$ = !0, Ze.finalized = !0, (ha = Oi.litElementHydrateSupport) == null || ha.call(Oi, { LitElement: Ze });
670
+ Je._$litElement$ = !0, Je.finalized = !0, (ha = Oi.litElementHydrateSupport) == null || ha.call(Oi, { LitElement: Je });
671
671
  const da = Oi.litElementPolyfillSupport;
672
- da == null || da({ LitElement: Ze });
672
+ da == null || da({ LitElement: Je });
673
673
  (Oi.litElementVersions ?? (Oi.litElementVersions = [])).push("4.2.1");
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." } }, _t = {
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,
677
677
  calendar: Kn,
@@ -683,9 +683,9 @@ var Zn = Object.defineProperty, Fa = (i, t, e, s) => {
683
683
  (r = i[n]) && (a = r(t, e, a) || a);
684
684
  return a && Zn(t, e, a), a;
685
685
  };
686
- let ls = class extends Ze {
686
+ let ls = class extends Je {
687
687
  constructor() {
688
- super(...arguments), this.strings = _t, this.role = null;
688
+ super(...arguments), this.strings = wt, this.role = null;
689
689
  }
690
690
  /**
691
691
  * Add support for Hot Module Reloading in dev mode
@@ -713,7 +713,7 @@ let K = class extends ls {
713
713
  * Copyright 2017 Google LLC
714
714
  * SPDX-License-Identifier: BSD-3-Clause
715
715
  */
716
- const zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Fe = (i) => (...t) => ({ _$litDirective$: i, values: t });
716
+ const zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Ue = (i) => (...t) => ({ _$litDirective$: i, values: t });
717
717
  let li = class {
718
718
  constructor(t) {
719
719
  }
@@ -735,7 +735,7 @@ let li = class {
735
735
  * Copyright 2018 Google LLC
736
736
  * SPDX-License-Identifier: BSD-3-Clause
737
737
  */
738
- const O = Fe(class extends li {
738
+ const M = Ue(class extends li {
739
739
  constructor(i) {
740
740
  var t;
741
741
  if (super(i), i.type !== zt.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -756,7 +756,7 @@ const O = Fe(class extends li {
756
756
  const r = !!t[n];
757
757
  r === this.st.has(n) || (s = this.nt) != null && s.has(n) || (r ? (a.add(n), this.st.add(n)) : (a.remove(n), this.st.delete(n)));
758
758
  }
759
- return xt;
759
+ return St;
760
760
  }
761
761
  });
762
762
  /**
@@ -773,7 +773,7 @@ function Ua(i, t) {
773
773
  function gi(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
- function Je(i) {
776
+ function Xe(i) {
777
777
  return i.nodeName === "OPTION" || i.nodeName === "DATA";
778
778
  }
779
779
  function Jn(i, t) {
@@ -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) || Je(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
802
+ gi(t) || Xe(t) && this.skipOptions || (!Ua(t, this.slots) || ks(t)) && this.nodes.push(t);
803
803
  });
804
804
  }
805
805
  // ********* UPDATE SLOTS *********
@@ -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) || Je(a) && this.skipOptions || (Jn(a, this.slots) || ks(a)) && (this.nodes.push(a), e = !0);
842
+ gi(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) || Je(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
844
+ gi(a) || Xe(a) && this.skipOptions || (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
845
845
  }));
846
846
  }), e && this.updateSlots();
847
847
  }
@@ -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
- }, Te = (i, t, e = i) => (i._$AI(t, e), i), Qn = {}, qa = (i, t = Qn) => i._$AH = t, tr = (i) => i._$AH, ys = (i) => {
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) => {
886
886
  i._$AR(), i._$AA.remove();
887
887
  };
888
888
  /**
@@ -953,7 +953,7 @@ let ar = class extends li {
953
953
  const A = () => new nr();
954
954
  let nr = class {
955
955
  };
956
- const $s = /* @__PURE__ */ new WeakMap(), E = Fe(class extends ar {
956
+ const $s = /* @__PURE__ */ new WeakMap(), E = Ue(class extends ar {
957
957
  render(i) {
958
958
  return $;
959
959
  }
@@ -995,7 +995,7 @@ let ss = class extends li {
995
995
  }
996
996
  render(t) {
997
997
  if (t === $ || t == null) return this._t = void 0, this.it = t;
998
- if (t === xt) return t;
998
+ if (t === St) return t;
999
999
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
1000
1000
  if (t === this.it) return this._t;
1001
1001
  this.it = t;
@@ -1004,7 +1004,7 @@ let ss = class extends li {
1004
1004
  }
1005
1005
  };
1006
1006
  ss.directiveName = "unsafeHTML", ss.resultType = 1;
1007
- const Ji = Fe(ss);
1007
+ const Ji = Ue(ss);
1008
1008
  /**
1009
1009
  * @license
1010
1010
  * Copyright 2017 Google LLC
@@ -1013,13 +1013,13 @@ const Ji = Fe(ss);
1013
1013
  let Ps = class extends ss {
1014
1014
  };
1015
1015
  Ps.directiveName = "unsafeSVG", Ps.resultType = 2;
1016
- const pa = Fe(Ps);
1016
+ const pa = Ue(Ps);
1017
1017
  var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Ri = (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.20/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 De = class extends K {
1033
+ let Re = 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
  }
@@ -1054,32 +1054,32 @@ let De = class extends K {
1054
1054
  };
1055
1055
  Ri([
1056
1056
  o({ type: String, reflect: !1 })
1057
- ], De.prototype, "path", 2);
1057
+ ], Re.prototype, "path", 2);
1058
1058
  Ri([
1059
1059
  o({ type: String, reflect: !0 })
1060
- ], De.prototype, "name", 2);
1060
+ ], Re.prototype, "name", 2);
1061
1061
  Ri([
1062
1062
  o({ type: SVGElement })
1063
- ], De.prototype, "icon", 2);
1063
+ ], Re.prototype, "icon", 2);
1064
1064
  Ri([
1065
1065
  o({ type: Array, noAccessor: !0 })
1066
- ], De.prototype, "_updatedProps", 2);
1067
- De = Ri([
1066
+ ], Re.prototype, "_updatedProps", 2);
1067
+ Re = Ri([
1068
1068
  j("pkt-icon")
1069
- ], De);
1069
+ ], Re);
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.20/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
  }
@@ -1121,73 +1121,87 @@ let ft = class extends K {
1121
1121
  };
1122
1122
  return u`
1123
1123
  <button
1124
- class=${O(e)}
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
  };
@@ -1229,8 +1243,8 @@ let Kt = class extends K {
1229
1243
  "pkt-alert__noDate": !this.date
1230
1244
  };
1231
1245
  return u`
1232
- <div class=${O(t)} aria-live=${this["aria-live"]}>
1233
- <div class=${O(e)}>
1246
+ <div class=${M(t)} aria-live=${this["aria-live"]}>
1247
+ <div class=${M(e)}>
1234
1248
  <pkt-icon
1235
1249
  class="pkt-alert__icon"
1236
1250
  aria-hidden="true"
@@ -1298,7 +1312,7 @@ var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Li = (i, t
1298
1312
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1299
1313
  return s && a && fr(t, e, a), a;
1300
1314
  };
1301
- let ii = class extends Ze {
1315
+ let ii = class extends Je {
1302
1316
  constructor() {
1303
1317
  super(...arguments), this.ariaLabelledBy = "", this.compact = !1, this.skin = "borderless", this.name = "";
1304
1318
  }
@@ -1330,7 +1344,7 @@ let ii = class extends Ze {
1330
1344
  return u`
1331
1345
  <div
1332
1346
  part="container"
1333
- class=${O(t)}
1347
+ class=${M(t)}
1334
1348
  data-testid="pkt-accordion"
1335
1349
  aria-labelledby=${this.ariaLabelledBy}
1336
1350
  >
@@ -1354,12 +1368,12 @@ Li([
1354
1368
  ii = Li([
1355
1369
  j("pkt-accordion")
1356
1370
  ], ii);
1357
- var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, Ue = (i, t, e, s) => {
1371
+ var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
1358
1372
  for (var a = s > 1 ? void 0 : s ? br(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1359
1373
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1360
1374
  return s && a && vr(t, e, a), a;
1361
1375
  };
1362
- let ke = class extends K {
1376
+ let ye = class extends K {
1363
1377
  constructor() {
1364
1378
  super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = A(), this.defaultSlot = A(), this.slotController = new rt(this, this.defaultSlot);
1365
1379
  }
@@ -1374,11 +1388,11 @@ let ke = class extends K {
1374
1388
  };
1375
1389
  return u`
1376
1390
  <details
1377
- class=${O(t)}
1391
+ class=${M(t)}
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}
@@ -1399,27 +1413,27 @@ let ke = class extends K {
1399
1413
  `;
1400
1414
  }
1401
1415
  };
1402
- Ue([
1416
+ He([
1403
1417
  o({ type: Boolean })
1404
- ], ke.prototype, "defaultOpen", 2);
1405
- Ue([
1418
+ ], ye.prototype, "defaultOpen", 2);
1419
+ He([
1406
1420
  o({ type: String })
1407
- ], ke.prototype, "title", 2);
1408
- Ue([
1421
+ ], ye.prototype, "title", 2);
1422
+ He([
1409
1423
  o({ type: String, reflect: !0 })
1410
- ], ke.prototype, "skin", 2);
1411
- Ue([
1424
+ ], ye.prototype, "skin", 2);
1425
+ He([
1412
1426
  o({ type: Boolean, reflect: !0 })
1413
- ], ke.prototype, "compact", 2);
1414
- Ue([
1427
+ ], ye.prototype, "compact", 2);
1428
+ He([
1415
1429
  o({ type: Boolean, reflect: !0 })
1416
- ], ke.prototype, "isOpen", 2);
1417
- Ue([
1430
+ ], ye.prototype, "isOpen", 2);
1431
+ He([
1418
1432
  o({ type: String, reflect: !0 })
1419
- ], ke.prototype, "name", 2);
1420
- ke = Ue([
1433
+ ], ye.prototype, "name", 2);
1434
+ ye = He([
1421
1435
  j("pkt-accordion-item")
1422
- ], ke);
1436
+ ], ye);
1423
1437
  var kr = Object.defineProperty, yr = Object.getOwnPropertyDescriptor, hs = (i, t, e, s) => {
1424
1438
  for (var a = s > 1 ? void 0 : s ? yr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1425
1439
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -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"
@@ -1465,11 +1479,11 @@ const Ka = 6048e5, $r = 864e5, ua = Symbol.for("constructDateFrom");
1465
1479
  function ee(i, t) {
1466
1480
  return typeof i == "function" ? i(t) : i && typeof i == "object" && ua in i ? i[ua](t) : i instanceof Date ? new i.constructor(t) : new Date(t);
1467
1481
  }
1468
- function Rt(i, t) {
1482
+ function Lt(i, t) {
1469
1483
  return ee(t || i, i);
1470
1484
  }
1471
1485
  function ws(i, t, e) {
1472
- const s = Rt(i, void 0);
1486
+ const s = Lt(i, void 0);
1473
1487
  return isNaN(t) ? ee(i, NaN) : (t && s.setDate(s.getDate() + t), s);
1474
1488
  }
1475
1489
  let _r = {};
@@ -1478,14 +1492,14 @@ function ds() {
1478
1492
  }
1479
1493
  function Mi(i, t) {
1480
1494
  var e, s, a, n;
1481
- 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 = Rt(i, t == null ? void 0 : t.in), p = d.getDay(), m = (p < l ? 7 : 0) + p - l;
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
1499
  return Mi(i, { ...t, weekStartsOn: 1 });
1486
1500
  }
1487
1501
  function Ga(i, t) {
1488
- const e = Rt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
1502
+ const e = Lt(i, void 0), s = e.getFullYear(), a = ee(e, 0);
1489
1503
  a.setFullYear(s + 1, 0, 4), a.setHours(0, 0, 0, 0);
1490
1504
  const n = as(a), r = ee(e, 0);
1491
1505
  r.setFullYear(s, 0, 4), r.setHours(0, 0, 0, 0);
@@ -1493,7 +1507,7 @@ function Ga(i, t) {
1493
1507
  return e.getTime() >= n.getTime() ? s + 1 : e.getTime() >= l.getTime() ? s : s - 1;
1494
1508
  }
1495
1509
  function ma(i) {
1496
- const t = Rt(i), e = new Date(
1510
+ const t = Lt(i), e = new Date(
1497
1511
  Date.UTC(
1498
1512
  t.getFullYear(),
1499
1513
  t.getMonth(),
@@ -1514,7 +1528,7 @@ function Ya(i, ...t) {
1514
1528
  return t.map(e);
1515
1529
  }
1516
1530
  function fa(i, t) {
1517
- const e = Rt(i, void 0);
1531
+ const e = Lt(i, void 0);
1518
1532
  return e.setHours(0, 0, 0, 0), e;
1519
1533
  }
1520
1534
  function wr(i, t, e) {
@@ -1533,7 +1547,7 @@ function Sr(i) {
1533
1547
  return i instanceof Date || typeof i == "object" && Object.prototype.toString.call(i) === "[object Date]";
1534
1548
  }
1535
1549
  function Cr(i) {
1536
- return !(!Sr(i) && typeof i != "number" || isNaN(+Rt(i)));
1550
+ return !(!Sr(i) && typeof i != "number" || isNaN(+Lt(i)));
1537
1551
  }
1538
1552
  function Tr(i, t) {
1539
1553
  const [e, s] = Ya(i, t.start, t.end);
@@ -1551,7 +1565,7 @@ function xs(i, t) {
1551
1565
  return a ? d.reverse() : d;
1552
1566
  }
1553
1567
  function Nr(i, t) {
1554
- const e = Rt(i, void 0);
1568
+ const e = Lt(i, void 0);
1555
1569
  return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
1556
1570
  }
1557
1571
  const Ar = {
@@ -1986,16 +2000,16 @@ const Gr = /^(\d+)(th|st|nd|rd)?/i, Yr = /\d+/i, Zr = {
1986
2000
  }
1987
2001
  };
1988
2002
  function lo(i, t) {
1989
- const e = Rt(i, void 0);
2003
+ const e = Lt(i, void 0);
1990
2004
  return wr(e, Nr(e)) + 1;
1991
2005
  }
1992
2006
  function ho(i, t) {
1993
- const e = Rt(i, void 0), s = +as(e) - +xr(e);
2007
+ const e = Lt(i, void 0), s = +as(e) - +xr(e);
1994
2008
  return Math.round(s / Ka) + 1;
1995
2009
  }
1996
2010
  function Za(i, t) {
1997
2011
  var e, s, a, n;
1998
- const r = Rt(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);
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
2014
  const f = Mi(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);
@@ -2008,7 +2022,7 @@ function co(i, t) {
2008
2022
  return p.setFullYear(d, 0, l), p.setHours(0, 0, 0, 0), Mi(p, t);
2009
2023
  }
2010
2024
  function Ja(i, t) {
2011
- const e = Rt(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 = +Mi(e, t) - +co(e, t);
2012
2026
  return Math.round(s / Ka) + 1;
2013
2027
  }
2014
2028
  function q(i, t) {
@@ -2069,7 +2083,7 @@ const fe = {
2069
2083
  );
2070
2084
  return q(a, t.length);
2071
2085
  }
2072
- }, Ge = {
2086
+ }, Ye = {
2073
2087
  midnight: "midnight",
2074
2088
  noon: "noon",
2075
2089
  morning: "morning",
@@ -2459,7 +2473,7 @@ const fe = {
2459
2473
  b: function(i, t, e) {
2460
2474
  const s = i.getHours();
2461
2475
  let a;
2462
- switch (s === 12 ? a = Ge.noon : s === 0 ? a = Ge.midnight : a = s / 12 >= 1 ? "pm" : "am", t) {
2476
+ switch (s === 12 ? a = Ye.noon : s === 0 ? a = Ye.midnight : a = s / 12 >= 1 ? "pm" : "am", t) {
2463
2477
  case "b":
2464
2478
  case "bb":
2465
2479
  return e.dayPeriod(a, {
@@ -2488,7 +2502,7 @@ const fe = {
2488
2502
  B: function(i, t, e) {
2489
2503
  const s = i.getHours();
2490
2504
  let a;
2491
- switch (s >= 17 ? a = Ge.evening : s >= 12 ? a = Ge.afternoon : s >= 4 ? a = Ge.morning : a = Ge.night, t) {
2505
+ switch (s >= 17 ? a = Ye.evening : s >= 12 ? a = Ye.afternoon : s >= 4 ? a = Ye.morning : a = Ye.night, t) {
2492
2506
  case "B":
2493
2507
  case "BB":
2494
2508
  case "BBB":
@@ -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 Ae(s);
2574
+ return Ee(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 Ae(s, ":");
2582
+ return Ee(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 Ae(s);
2597
+ return Ee(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 Ae(s, ":");
2605
+ return Ee(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" + Ae(s, ":");
2620
+ return "GMT" + Ee(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" + Ae(s, ":");
2635
+ return "GMT" + Ee(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) : Ae(i, t);
2653
+ return i % 60 === 0 ? (i > 0 ? "-" : "+") + q(Math.abs(i) / 60, 2) : Ee(i, t);
2640
2654
  }
2641
- function Ae(i, t = "") {
2655
+ function Ee(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
  }
@@ -2708,14 +2722,14 @@ function yo(i, t, e) {
2708
2722
  const $o = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, _o = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, wo = /^'([^]*?)'?$/, xo = /''/g, So = /[a-zA-Z]/;
2709
2723
  function Co(i, t, e) {
2710
2724
  var s, a, n, r;
2711
- const l = ds(), d = l.locale ?? oo, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, m = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f = Rt(i, void 0);
2725
+ const l = ds(), d = l.locale ?? oo, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, m = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f = Lt(i, void 0);
2712
2726
  if (!Cr(f))
2713
2727
  throw new RangeError("Invalid time value");
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) {
@@ -2751,7 +2765,7 @@ function To(i) {
2751
2765
  return t ? t[1].replace(xo, "'") : i;
2752
2766
  }
2753
2767
  function No(i, t) {
2754
- const e = Rt(i, void 0).getDay();
2768
+ const e = Lt(i, void 0).getDay();
2755
2769
  return e === 0 ? 7 : e;
2756
2770
  }
2757
2771
  function Ao(i, t, e = "long") {
@@ -2763,7 +2777,7 @@ function Ao(i, t, e = "long") {
2763
2777
  }).format(t).split(/\s/g).slice(2).join(" ");
2764
2778
  }
2765
2779
  const ya = {}, _i = {};
2766
- function Oe(i, t) {
2780
+ function Me(i, t) {
2767
2781
  try {
2768
2782
  const e = (ya[i] || (ya[i] = new Intl.DateTimeFormat("en-US", {
2769
2783
  timeZone: i,
@@ -2784,7 +2798,7 @@ function $a(i, t) {
2784
2798
  let wi = class xi 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(Oe(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(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());
2788
2802
  }
2789
2803
  static tz(t, ...e) {
2790
2804
  return e.length ? new xi(...e, t) : new xi(Date.now(), t);
@@ -2795,7 +2809,7 @@ let wi = class xi extends Date {
2795
2809
  return new xi(+this, t);
2796
2810
  }
2797
2811
  getTimezoneOffset() {
2798
- const t = -Oe(this.timeZone, this);
2812
+ const t = -Me(this.timeZone, this);
2799
2813
  return t > 0 ? Math.floor(t) : Math.ceil(t);
2800
2814
  }
2801
2815
  //#endregion
@@ -2823,13 +2837,13 @@ Object.getOwnPropertyNames(Date.prototype).forEach((i) => {
2823
2837
  }));
2824
2838
  });
2825
2839
  function Is(i) {
2826
- i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Oe(i.timeZone, i) * 60));
2840
+ i.internal.setTime(+i), i.internal.setUTCSeconds(i.internal.getUTCSeconds() - Math.round(-Me(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 = Oe(i.timeZone, i), e = t > 0 ? Math.floor(t) : Math.ceil(t), s = /* @__PURE__ */ new Date(+i);
2846
+ const t = Me(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,13 +2851,13 @@ 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(-(Oe(i.timeZone, i) * 60)) % 60;
2854
+ const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(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 = Oe(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 M = Oe(i.timeZone, i), N = M > 0 ? Math.floor(M) : Math.ceil(M), 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 = Me(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = k - d;
2857
+ if (w && C) {
2858
+ Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
2859
+ const O = Me(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
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
2863
  let Rs = class Si extends wi {
@@ -2907,7 +2921,7 @@ const Mo = (i = window.pktTz) => {
2907
2921
  const t = new Rs((/* @__PURE__ */ new Date()).toISOString(), i);
2908
2922
  return t.setHours(0, 0, 0, 0), isNaN(t.getTime()) ? /* @__PURE__ */ new Date() : new Date(t.getFullYear(), t.getMonth(), t.getDate());
2909
2923
  };
2910
- function ye(i) {
2924
+ function $e(i) {
2911
2925
  if (!i || i === "") return /* @__PURE__ */ new Date();
2912
2926
  if (/^\d{4}-\d{2}-\d{2}$/.test(i)) {
2913
2927
  const [t, e, s] = i.split("-").map(Number);
@@ -2923,16 +2937,16 @@ const nt = (i) => {
2923
2937
  if (!i || isNaN(i.getTime())) return "";
2924
2938
  const t = i.getFullYear(), e = String(i.getMonth() + 1).padStart(2, "0"), s = String(i.getDate()).padStart(2, "0");
2925
2939
  return `${t}-${e}-${s}`;
2926
- }, $e = (i) => {
2940
+ }, _e = (i) => {
2927
2941
  if (!i)
2928
2942
  return null;
2929
- const t = ye(i);
2943
+ const t = $e(i);
2930
2944
  return isNaN(t.getTime()) ? null : t;
2931
2945
  }, wa = (i, t) => {
2932
2946
  const e = de(i);
2933
2947
  return isNaN(e.getTime()) ? "" : Co(e, t);
2934
2948
  }, de = (i = "", t) => {
2935
- const e = typeof i == "string" ? ye(i) : i;
2949
+ const e = typeof i == "string" ? $e(i) : i;
2936
2950
  return !e || isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
2937
2951
  }, ge = (i, t, e = 1) => {
2938
2952
  if (typeof i != "number" || typeof t != "number" || typeof e != "number" || isNaN(i) || isNaN(t) || isNaN(e))
@@ -2955,24 +2969,24 @@ const nt = (i) => {
2955
2969
  const e = i.getDay().toString();
2956
2970
  return t.includes(e);
2957
2971
  }, tn = (i, t, e, s, a) => !(!i || isNaN(i.getTime()) || !Do(i, t, e) || s && Io(i, s) || a && Ro(i, a)), Lo = (i, t, e, s, a) => i.filter((n) => {
2958
- const r = $e(n);
2972
+ const r = _e(n);
2959
2973
  return r && tn(r, t, e, s, a);
2960
2974
  }), en = (i) => i.slice().sort((t, e) => {
2961
- const s = $e(t), a = $e(e);
2975
+ const s = _e(t), a = _e(e);
2962
2976
  return !s || !a ? 0 : s.getTime() - a.getTime();
2963
2977
  }), Bo = (i, t) => {
2964
- const e = $e(i), s = $e(t);
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 ? ye(i) : null, Fo = (i) => {
2980
+ }, Ci = (i) => i ? Array.isArray(i) ? i.filter(Boolean) : String(i).split(",").map((t) => t.trim()).filter(Boolean) : [], Vo = (i) => i.join(","), sn = (i) => Ci(i), jo = (i) => i ? $e(i) : null, Fo = (i) => {
2967
2981
  if (typeof i == "string")
2968
- return i.split(",").map((t) => ye(t));
2982
+ return i.split(",").map((t) => $e(t));
2969
2983
  if (Array.isArray(i))
2970
- return i.map((t) => ye(t));
2984
+ return i.map((t) => $e(t));
2971
2985
  }, hi = {
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 } }, Ne = {
2989
+ }, Uo = { earliest: { default: null }, latest: { default: null }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, maxMultiple: { default: 4 }, range: { default: !1 } }, Ae = {
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 = Ne.props.multiple.default, this.maxMultiple = Ne.props.maxMultiple.default, this.range = Ne.props.range.default, this.weeknumbers = Ne.props.weeknumbers.default, this.withcontrols = Ne.props.withcontrols.default, this.selected = [], this.earliest = Ne.props.earliest.default, this.latest = Ne.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 = 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;
2986
3000
  }
2987
3001
  /**
2988
3002
  * Runs on mount, used to set up various values and whatever you need to run
@@ -3003,7 +3017,7 @@ let z = class extends K {
3003
3017
  this.addEventListener("keydown", this.handleKeydown);
3004
3018
  }
3005
3019
  convertSelected() {
3006
- if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => ye(t)), this.range && this.selected.length === 2) {
3020
+ if (typeof this.selected == "string" && (this.selected = this.selected.split(",")), this.selected.length === 1 && this.selected[0] === "" && (this.selected = []), this._selected = this.selected.map((t) => $e(t)), this.range && this.selected.length === 2) {
3007
3021
  const t = xs({
3008
3022
  start: this._selected[0],
3009
3023
  end: this._selected[1]
@@ -3021,7 +3035,7 @@ let z = class extends K {
3021
3035
  }
3022
3036
  setCurrentMonth() {
3023
3037
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
3024
- const t = ye(this.selected[this.selected.length - 1]);
3038
+ const t = $e(this.selected[this.selected.length - 1]);
3025
3039
  this.currentmonth = isNaN(t.getTime()) ? yi(/* @__PURE__ */ new Date()) : t;
3026
3040
  } else this.currentmonth === null && (this.currentmonth = yi(/* @__PURE__ */ new Date()));
3027
3041
  (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = yi(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
@@ -3201,12 +3215,12 @@ let z = class extends K {
3201
3215
  "pkt-calendar__date--range-start": this.range && (this.selected.length === 2 || this.rangeHovered !== null) && n === this.selected[0],
3202
3216
  "pkt-calendar__date--range-end": this.range && this.selected.length === 2 && n === this.selected[1]
3203
3217
  };
3204
- return u`<td class=${O(f)}>
3218
+ return u`<td class=${M(f)}>
3205
3219
  <button
3206
3220
  type="button"
3207
3221
  aria-pressed=${l ? "true" : "false"}
3208
3222
  ?disabled=${p}
3209
- class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${O(
3223
+ class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only ${M(
3210
3224
  y
3211
3225
  )}"
3212
3226
  @mouseover=${() => this.range && !this.isExcluded(a) && this.handleRangeHover(a)}
@@ -3521,19 +3535,27 @@ let Gt = class extends K {
3521
3535
  };
3522
3536
  return this.closeTag ? u`
3523
3537
  <button
3524
- class=${O(e)}
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
- ${this.iconName && u`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
3544
+ ${this.iconName && u`<pkt-icon
3545
+ class="pkt-tag__icon"
3546
+ name=${this.iconName}
3547
+ aria-hidden="true"
3548
+ ></pkt-icon>`}
3531
3549
  <span ${E(this.defaultSlot)}></span>
3532
3550
  <pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
3533
3551
  </button>
3534
3552
  ` : u`
3535
- <span class=${O(t)}>
3536
- ${this.iconName && u`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
3553
+ <span class=${M(t)}>
3554
+ ${this.iconName && u`<pkt-icon
3555
+ class="pkt-tag__icon"
3556
+ name=${this.iconName}
3557
+ aria-hidden="true"
3558
+ ></pkt-icon>`}
3537
3559
  <span ${E(this.defaultSlot)}></span>
3538
3560
  </span>
3539
3561
  `;
@@ -3574,7 +3596,7 @@ var Go = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Bi = (i, t
3574
3596
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3575
3597
  return s && a && Go(t, e, a), a;
3576
3598
  };
3577
- let Ie = class extends ls {
3599
+ let Le = class extends ls {
3578
3600
  constructor() {
3579
3601
  super(...arguments), this.size = void 0, this.level = 2, this.visuallyHidden = !1, this.align = void 0;
3580
3602
  }
@@ -3628,34 +3650,34 @@ let Ie = class extends ls {
3628
3650
  };
3629
3651
  Bi([
3630
3652
  o({ type: String, reflect: !0 })
3631
- ], Ie.prototype, "size", 2);
3653
+ ], Le.prototype, "size", 2);
3632
3654
  Bi([
3633
3655
  o({ type: Number, reflect: !0 })
3634
- ], Ie.prototype, "level", 2);
3656
+ ], Le.prototype, "level", 2);
3635
3657
  Bi([
3636
3658
  o({ type: Boolean, reflect: !0 })
3637
- ], Ie.prototype, "visuallyHidden", 2);
3659
+ ], Le.prototype, "visuallyHidden", 2);
3638
3660
  Bi([
3639
3661
  o({ type: String, reflect: !0 })
3640
- ], Ie.prototype, "align", 2);
3641
- Ie = Bi([
3662
+ ], Le.prototype, "align", 2);
3663
+ Le = Bi([
3642
3664
  j("pkt-heading")
3643
- ], Ie);
3644
- const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Xe = {
3665
+ ], Le);
3666
+ const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
3645
3667
  props: Zo
3646
3668
  };
3647
- var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, bt = (i, t, e, s) => {
3669
+ var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
3648
3670
  for (var a = s > 1 ? void 0 : s ? Xo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
3649
3671
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3650
3672
  return s && a && Jo(t, e, a), a;
3651
3673
  };
3652
- let lt = class extends K {
3674
+ let ht = class extends K {
3653
3675
  //Constructor
3654
3676
  constructor() {
3655
- super(), this.defaultSlot = A(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Xe.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
3677
+ 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 = {
3656
3678
  src: "",
3657
3679
  alt: ""
3658
- }, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = Xe.props.padding.default, this.skin = Xe.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new rt(this, this.defaultSlot);
3680
+ }, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = Qe.props.padding.default, this.skin = Qe.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new rt(this, this.defaultSlot);
3659
3681
  }
3660
3682
  connectedCallback() {
3661
3683
  super.connectedCallback();
@@ -3674,8 +3696,8 @@ let lt = class extends K {
3674
3696
  }, a = ((t = this.ariaLabel) == null ? void 0 : t.trim()) || (this.heading ? `${this.heading} lenkekort` : "lenkekort"), n = ((e = this.ariaLabel) == null ? void 0 : e.trim()) || (this.heading ? this.heading : "kort");
3675
3697
  return u`
3676
3698
  <article
3677
- class=${O(s)}
3678
- aria-label=${C(this.clickCardLink ? a : n)}
3699
+ class=${M(s)}
3700
+ aria-label=${S(this.clickCardLink ? a : n)}
3679
3701
  >
3680
3702
  ${this.renderImage()}
3681
3703
  <div class="pkt-card__wrapper">
@@ -3696,7 +3718,7 @@ let lt = class extends K {
3696
3718
  };
3697
3719
  return u`
3698
3720
  ${this.image.src && u`
3699
- <div class=${O(t)}>
3721
+ <div class=${M(t)}>
3700
3722
  <img src=${this.image.src} alt=${this.image.alt || ""} />
3701
3723
  </div>
3702
3724
  `}
@@ -3764,7 +3786,7 @@ let lt = class extends K {
3764
3786
  return u`
3765
3787
  ${this.tags.length > 0 ? u`
3766
3788
  <div
3767
- class=${O(t)}
3789
+ class=${M(t)}
3768
3790
  role="list"
3769
3791
  aria-label=${this.tags.length > 1 ? "merkelapper" : "merkelapp"}
3770
3792
  >
@@ -3774,8 +3796,8 @@ let lt = class extends K {
3774
3796
  role="listitem"
3775
3797
  textStyle="normal-text"
3776
3798
  size="medium"
3777
- skin=${C(e.skin)}
3778
- iconName=${C(e.iconName)}
3799
+ skin=${S(e.skin)}
3800
+ iconName=${S(e.iconName)}
3779
3801
  >
3780
3802
  <span>${e.text}</span>
3781
3803
  </pkt-tag>
@@ -3801,68 +3823,68 @@ let lt = class extends K {
3801
3823
  `;
3802
3824
  }
3803
3825
  };
3804
- bt([
3826
+ kt([
3805
3827
  o({ type: String })
3806
- ], lt.prototype, "ariaLabel", 2);
3807
- bt([
3828
+ ], ht.prototype, "ariaLabel", 2);
3829
+ kt([
3808
3830
  o({ type: String })
3809
- ], lt.prototype, "metaLead", 2);
3810
- bt([
3831
+ ], ht.prototype, "metaLead", 2);
3832
+ kt([
3811
3833
  o({ type: Boolean })
3812
- ], lt.prototype, "borderOnHover", 2);
3813
- bt([
3834
+ ], ht.prototype, "borderOnHover", 2);
3835
+ kt([
3814
3836
  o({ type: String, reflect: !0 })
3815
- ], lt.prototype, "clickCardLink", 2);
3816
- bt([
3837
+ ], ht.prototype, "clickCardLink", 2);
3838
+ kt([
3817
3839
  o({ type: String })
3818
- ], lt.prototype, "metaTrail", 2);
3819
- bt([
3840
+ ], ht.prototype, "metaTrail", 2);
3841
+ kt([
3820
3842
  o({ type: String })
3821
- ], lt.prototype, "layout", 2);
3822
- bt([
3843
+ ], ht.prototype, "layout", 2);
3844
+ kt([
3823
3845
  o({ type: String })
3824
- ], lt.prototype, "heading", 2);
3825
- bt([
3846
+ ], ht.prototype, "heading", 2);
3847
+ kt([
3826
3848
  o({ type: Number })
3827
- ], lt.prototype, "headinglevel", 2);
3828
- bt([
3849
+ ], ht.prototype, "headinglevel", 2);
3850
+ kt([
3829
3851
  o({ type: Object })
3830
- ], lt.prototype, "image", 2);
3831
- bt([
3852
+ ], ht.prototype, "image", 2);
3853
+ kt([
3832
3854
  o({ type: String })
3833
- ], lt.prototype, "imageShape", 2);
3834
- bt([
3855
+ ], ht.prototype, "imageShape", 2);
3856
+ kt([
3835
3857
  o({ type: Boolean })
3836
- ], lt.prototype, "openLinkInNewTab", 2);
3837
- bt([
3858
+ ], ht.prototype, "openLinkInNewTab", 2);
3859
+ kt([
3838
3860
  o({ type: String })
3839
- ], lt.prototype, "padding", 2);
3840
- bt([
3861
+ ], ht.prototype, "padding", 2);
3862
+ kt([
3841
3863
  o({
3842
3864
  type: String,
3843
3865
  converter: {
3844
3866
  fromAttribute: (i) => {
3845
- const t = Xe.props.skin.type;
3867
+ const t = Qe.props.skin.type;
3846
3868
  return i && t.includes(i) ? i : (i && !t.includes(i) && console.warn(
3847
- `Invalid skin value "${i}". Using default skin "${Xe.props.skin.default}".`
3848
- ), Xe.props.skin.default);
3869
+ `Invalid skin value "${i}". Using default skin "${Qe.props.skin.default}".`
3870
+ ), Qe.props.skin.default);
3849
3871
  },
3850
3872
  toAttribute: (i) => i
3851
3873
  }
3852
3874
  })
3853
- ], lt.prototype, "skin", 2);
3854
- bt([
3875
+ ], ht.prototype, "skin", 2);
3876
+ kt([
3855
3877
  o({ type: String })
3856
- ], lt.prototype, "subheading", 2);
3857
- bt([
3878
+ ], ht.prototype, "subheading", 2);
3879
+ kt([
3858
3880
  o({ type: String })
3859
- ], lt.prototype, "tagPosition", 2);
3860
- bt([
3881
+ ], ht.prototype, "tagPosition", 2);
3882
+ kt([
3861
3883
  o({ type: Array })
3862
- ], lt.prototype, "tags", 2);
3863
- lt = bt([
3884
+ ], ht.prototype, "tags", 2);
3885
+ ht = kt([
3864
3886
  j("pkt-card")
3865
- ], lt);
3887
+ ], ht);
3866
3888
  /**
3867
3889
  * @license
3868
3890
  * Copyright 2017 Google LLC
@@ -3872,7 +3894,7 @@ const xa = (i, t, e) => {
3872
3894
  const s = /* @__PURE__ */ new Map();
3873
3895
  for (let a = t; a <= e; a++) s.set(i[a], a);
3874
3896
  return s;
3875
- }, Us = Fe(class extends li {
3897
+ }, Us = Ue(class extends li {
3876
3898
  constructor(i) {
3877
3899
  if (super(i), i.type !== zt.CHILD) throw Error("repeat() can only be used in text expressions");
3878
3900
  }
@@ -3894,40 +3916,40 @@ const xa = (i, t, e) => {
3894
3916
  let p, m, f = 0, y = a.length - 1, b = 0, k = n.length - 1;
3895
3917
  for (; f <= y && b <= k; ) if (a[f] === null) f++;
3896
3918
  else if (a[y] === null) y--;
3897
- else if (l[f] === r[b]) d[b] = Te(a[f], n[b]), f++, b++;
3898
- else if (l[y] === r[k]) d[k] = Te(a[y], n[k]), y--, k--;
3899
- else if (l[f] === r[k]) d[k] = Te(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
3900
- else if (l[y] === r[b]) d[b] = Te(a[y], n[b]), vi(i, a[f], a[y]), y--, b++;
3919
+ else if (l[f] === r[b]) d[b] = Ne(a[f], n[b]), f++, b++;
3920
+ else if (l[y] === r[k]) d[k] = Ne(a[y], n[k]), y--, k--;
3921
+ else if (l[f] === r[k]) d[k] = Ne(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
3922
+ else if (l[y] === r[b]) d[b] = Ne(a[y], n[b]), vi(i, a[f], a[y]), y--, b++;
3901
3923
  else if (p === void 0 && (p = xa(r, b, k), m = xa(l, f, y)), p.has(l[f])) if (p.has(l[y])) {
3902
- const w = m.get(r[b]), S = w !== void 0 ? a[w] : null;
3903
- if (S === null) {
3904
- const M = vi(i, a[f]);
3905
- Te(M, n[b]), d[b] = M;
3906
- } else d[b] = Te(S, n[b]), vi(i, a[f], S), a[w] = null;
3924
+ const w = m.get(r[b]), C = w !== void 0 ? a[w] : null;
3925
+ if (C === null) {
3926
+ const O = vi(i, a[f]);
3927
+ Ne(O, n[b]), d[b] = O;
3928
+ } else d[b] = Ne(C, n[b]), vi(i, a[f], C), a[w] = null;
3907
3929
  b++;
3908
3930
  } else ys(a[y]), y--;
3909
3931
  else ys(a[f]), f++;
3910
3932
  for (; b <= k; ) {
3911
3933
  const w = vi(i, d[k + 1]);
3912
- Te(w, n[b]), d[b++] = w;
3934
+ Ne(w, n[b]), d[b++] = w;
3913
3935
  }
3914
3936
  for (; f <= y; ) {
3915
3937
  const w = a[f++];
3916
3938
  w !== null && ys(w);
3917
3939
  }
3918
- return this.ut = r, qa(i, d), xt;
3940
+ return this.ut = r, qa(i, d), St;
3919
3941
  }
3920
3942
  }), Sa = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Qo = (i) => new Promise((t) => setTimeout(t, i)), be = () => {
3921
3943
  const i = Sa(), t = Sa();
3922
3944
  return i.slice(0, 8) + "-" + i.slice(8, 12) + "-4" + i.slice(13) + "-a" + t.slice(1, 4) + "-" + t.slice(4);
3923
- }, tl = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } }, Pt = {
3945
+ }, tl = { helptextDropdownButton: { default: "Les mer <span class='pkt-sr-only'>om feltet</span>" }, counter: { default: !1 }, optionalTag: { default: !1 }, optionalText: { default: "Valgfritt" }, requiredTag: { default: !1 }, requiredText: { default: "Må fylles ut" }, hasError: { default: !1 }, disabled: { default: !1 }, inline: { default: !1 }, hasFieldset: { default: !1 }, useWrapper: { default: !0 } }, Dt = {
3924
3946
  props: tl
3925
3947
  };
3926
3948
  var el = {}, Ca;
3927
3949
  function il() {
3928
3950
  return Ca || (Ca = 1, (function() {
3929
3951
  (function(i) {
3930
- 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 = {
3952
+ 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 = {
3931
3953
  ariaAtomic: "aria-atomic",
3932
3954
  ariaAutoComplete: "aria-autocomplete",
3933
3955
  ariaBusy: "aria-busy",
@@ -3970,88 +3992,88 @@ function il() {
3970
3992
  ariaValueNow: "aria-valuenow",
3971
3993
  ariaValueText: "aria-valuetext",
3972
3994
  role: "role"
3973
- }, M = (g, c) => {
3974
- for (let v in S) {
3995
+ }, O = (g, c) => {
3996
+ for (let v in C) {
3975
3997
  c[v] = null;
3976
3998
  let _ = null;
3977
- const D = S[v];
3999
+ const I = C[v];
3978
4000
  Object.defineProperty(c, v, {
3979
4001
  get() {
3980
4002
  return _;
3981
4003
  },
3982
4004
  set(V) {
3983
- _ = V, g.isConnected ? st(g, D, V) : m.set(g, c);
4005
+ _ = V, g.isConnected ? st(g, I, V) : m.set(g, c);
3984
4006
  }
3985
4007
  });
3986
4008
  }
3987
4009
  };
3988
- function N(g) {
4010
+ function T(g) {
3989
4011
  const c = a.get(g), { form: v } = c;
3990
- le(g, v, c), wt(g, c.labels);
4012
+ le(g, v, c), xt(g, c.labels);
3991
4013
  }
3992
- const I = (g, c = !1) => {
4014
+ const P = (g, c = !1) => {
3993
4015
  const v = document.createTreeWalker(g, NodeFilter.SHOW_ELEMENT, {
3994
4016
  acceptNode(V) {
3995
4017
  return a.has(V) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
3996
4018
  }
3997
4019
  });
3998
4020
  let _ = v.nextNode();
3999
- const D = !c || g.disabled;
4021
+ const I = !c || g.disabled;
4000
4022
  for (; _; )
4001
- _.formDisabledCallback && D && At(_, g.disabled), _ = v.nextNode();
4002
- }, T = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4023
+ _.formDisabledCallback && I && Et(_, g.disabled), _ = v.nextNode();
4024
+ }, N = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4003
4025
  for (const c of g) {
4004
4026
  const v = c.target;
4005
- if (c.attributeName === "disabled" && (v.constructor.formAssociated ? At(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && I(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4006
- const _ = a.get(v), D = p.get(v);
4007
- _.setFormValue(D);
4027
+ if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && P(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4028
+ const _ = a.get(v), I = p.get(v);
4029
+ _.setFormValue(I);
4008
4030
  }
4009
4031
  }
4010
4032
  }) : {};
4011
4033
  function G(g) {
4012
4034
  g.forEach((c) => {
4013
- const { addedNodes: v, removedNodes: _ } = c, D = Array.from(v), V = Array.from(_);
4014
- D.forEach((U) => {
4015
- var Ot;
4016
- if (a.has(U) && U.constructor.formAssociated && N(U), m.has(U)) {
4017
- const ut = m.get(U);
4018
- Object.keys(S).filter((Mt) => ut[Mt] !== null).forEach((Mt) => {
4019
- st(U, S[Mt], ut[Mt]);
4035
+ const { addedNodes: v, removedNodes: _ } = c, I = Array.from(v), V = Array.from(_);
4036
+ I.forEach((U) => {
4037
+ var Mt;
4038
+ if (a.has(U) && U.constructor.formAssociated && T(U), m.has(U)) {
4039
+ const ft = m.get(U);
4040
+ Object.keys(C).filter((Pt) => ft[Pt] !== null).forEach((Pt) => {
4041
+ st(U, C[Pt], ft[Pt]);
4020
4042
  }), m.delete(U);
4021
4043
  }
4022
4044
  if (w.has(U)) {
4023
- const ut = w.get(U);
4024
- 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);
4045
+ const ft = w.get(U);
4046
+ 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);
4025
4047
  }
4026
4048
  if (U.localName === "form") {
4027
- const ut = d.get(U), Mt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4049
+ const ft = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4028
4050
  acceptNode(vs) {
4029
- return a.has(vs) && vs.constructor.formAssociated && !(ut && ut.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4051
+ return a.has(vs) && vs.constructor.formAssociated && !(ft && ft.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4030
4052
  }
4031
4053
  });
4032
- let mi = Mt.nextNode();
4054
+ let mi = Pt.nextNode();
4033
4055
  for (; mi; )
4034
- N(mi), mi = Mt.nextNode();
4056
+ T(mi), mi = Pt.nextNode();
4035
4057
  }
4036
- U.localName === "fieldset" && ((Ot = H.observe) === null || Ot === void 0 || Ot.call(H, U, T), I(U, !0));
4058
+ U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, N), P(U, !0));
4037
4059
  }), V.forEach((U) => {
4038
- const Ot = a.get(U);
4039
- Ot && s.get(Ot) && Et(Ot), l.has(U) && l.get(U).disconnect();
4060
+ const Mt = a.get(U);
4061
+ Mt && s.get(Mt) && Ot(Mt), l.has(U) && l.get(U).disconnect();
4040
4062
  });
4041
4063
  });
4042
4064
  }
4043
- function Ft(g) {
4065
+ function _t(g) {
4044
4066
  g.forEach((c) => {
4045
4067
  const { removedNodes: v } = c;
4046
4068
  v.forEach((_) => {
4047
- const D = b.get(c.target);
4048
- a.has(_) && Se(_), D.disconnect();
4069
+ const I = b.get(c.target);
4070
+ a.has(_) && Ce(_), I.disconnect();
4049
4071
  });
4050
4072
  });
4051
4073
  }
4052
- const pt = (g) => {
4074
+ const mt = (g) => {
4053
4075
  var c, v;
4054
- const _ = new MutationObserver(Ft);
4076
+ const _ = new MutationObserver(_t);
4055
4077
  !((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, _);
4056
4078
  };
4057
4079
  he() && new MutationObserver(G);
@@ -4060,9 +4082,9 @@ function il() {
4060
4082
  subtree: !0
4061
4083
  }, st = (g, c, v) => {
4062
4084
  g.getAttribute(c) !== v && g.setAttribute(c, v);
4063
- }, At = (g, c) => {
4085
+ }, Et = (g, c) => {
4064
4086
  g.toggleAttribute("internals-disabled", c), c ? st(g, "aria-disabled", "true") : g.removeAttribute("aria-disabled"), g.formDisabledCallback && g.formDisabledCallback.apply(g, [c]);
4065
- }, Et = (g) => {
4087
+ }, Ot = (g) => {
4066
4088
  s.get(g).forEach((c) => {
4067
4089
  c.remove();
4068
4090
  }), s.set(g, []);
@@ -4071,31 +4093,31 @@ function il() {
4071
4093
  return v.type = "hidden", v.name = g.getAttribute("name"), g.after(v), s.get(c).push(v), v;
4072
4094
  }, R = (g, c) => {
4073
4095
  var v;
4074
- s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, T);
4075
- }, wt = (g, c) => {
4096
+ s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, N);
4097
+ }, xt = (g, c) => {
4076
4098
  if (c.length) {
4077
4099
  Array.from(c).forEach((_) => _.addEventListener("click", g.click.bind(g)));
4078
4100
  let v = c[0].id;
4079
4101
  c[0].id || (v = `${c[0].htmlFor}_Label`, c[0].id = v), st(g, "aria-labelledby", v);
4080
4102
  }
4081
4103
  }, Qt = (g) => {
4082
- 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);
4083
- g.toggleAttribute("internals-invalid", D), g.toggleAttribute("internals-valid", !D);
4104
+ 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);
4105
+ g.toggleAttribute("internals-invalid", I), g.toggleAttribute("internals-valid", !I);
4084
4106
  }, oe = (g) => {
4085
4107
  Qt(Ut(g.target));
4086
4108
  }, te = (g) => {
4087
4109
  Qt(Ut(g.target));
4088
- }, we = (g) => {
4110
+ }, xe = (g) => {
4089
4111
  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(",");
4090
4112
  g.addEventListener("click", (v) => {
4091
4113
  if (v.target.closest(c)) {
4092
4114
  const _ = d.get(g);
4093
4115
  if (g.noValidate)
4094
4116
  return;
4095
- _.size && Array.from(_).reverse().map((D) => a.get(D).reportValidity()).includes(!1) && v.preventDefault();
4117
+ _.size && Array.from(_).reverse().map((I) => a.get(I).reportValidity()).includes(!1) && v.preventDefault();
4096
4118
  }
4097
4119
  });
4098
- }, ze = (g) => {
4120
+ }, We = (g) => {
4099
4121
  const c = d.get(g.target);
4100
4122
  c && c.size && c.forEach((v) => {
4101
4123
  v.constructor.formAssociated && v.formResetCallback && v.formResetCallback.apply(v);
@@ -4106,8 +4128,8 @@ function il() {
4106
4128
  if (_)
4107
4129
  _.add(g);
4108
4130
  else {
4109
- const D = /* @__PURE__ */ new Set();
4110
- D.add(g), d.set(c, D), we(c), c.addEventListener("reset", ze), c.addEventListener("input", oe), c.addEventListener("change", te);
4131
+ const I = /* @__PURE__ */ new Set();
4132
+ I.add(g), d.set(c, I), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4111
4133
  }
4112
4134
  r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
4113
4135
  g.formAssociatedCallback.apply(g, [c]);
@@ -4119,15 +4141,15 @@ function il() {
4119
4141
  }, ot = (g, c, v = DOMException) => {
4120
4142
  if (!g.constructor.formAssociated)
4121
4143
  throw new v(c);
4122
- }, xe = (g, c, v) => {
4144
+ }, Se = (g, c, v) => {
4123
4145
  const _ = d.get(g);
4124
- return _ && _.size && _.forEach((D) => {
4125
- a.get(D)[v]() || (c = !1);
4146
+ return _ && _.size && _.forEach((I) => {
4147
+ a.get(I)[v]() || (c = !1);
4126
4148
  }), c;
4127
- }, Se = (g) => {
4149
+ }, Ce = (g) => {
4128
4150
  if (g.constructor.formAssociated) {
4129
4151
  const c = a.get(g), { labels: v, form: _ } = c;
4130
- wt(g, v), le(g, _, c);
4152
+ xt(g, v), le(g, _, c);
4131
4153
  }
4132
4154
  };
4133
4155
  function he() {
@@ -4143,8 +4165,8 @@ function il() {
4143
4165
  for (let v in g)
4144
4166
  v !== "valid" && g[v] !== !1 && (c = !1);
4145
4167
  return c;
4146
- }, We = /* @__PURE__ */ new WeakMap();
4147
- function Ke(g, c) {
4168
+ }, Ke = /* @__PURE__ */ new WeakMap();
4169
+ function Ge(g, c) {
4148
4170
  g.toggleAttribute(c, !0), g.part && g.part.add(c);
4149
4171
  }
4150
4172
  class ui extends Set {
@@ -4154,14 +4176,14 @@ function il() {
4154
4176
  constructor(c) {
4155
4177
  if (super(), !c || !c.tagName || c.tagName.indexOf("-") === -1)
4156
4178
  throw new TypeError("Illegal constructor");
4157
- We.set(this, c);
4179
+ Ke.set(this, c);
4158
4180
  }
4159
4181
  add(c) {
4160
4182
  if (!/^--/.test(c) || typeof c != "string")
4161
4183
  throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);
4162
- const v = super.add(c), _ = We.get(this), D = `state${c}`;
4163
- return _.isConnected ? Ke(_, D) : setTimeout(() => {
4164
- Ke(_, D);
4184
+ const v = super.add(c), _ = Ke.get(this), I = `state${c}`;
4185
+ return _.isConnected ? Ge(_, I) : setTimeout(() => {
4186
+ Ge(_, I);
4165
4187
  }), v;
4166
4188
  }
4167
4189
  clear() {
@@ -4170,7 +4192,7 @@ function il() {
4170
4192
  super.clear();
4171
4193
  }
4172
4194
  delete(c) {
4173
- const v = super.delete(c), _ = We.get(this);
4195
+ const v = super.delete(c), _ = Ke.get(this);
4174
4196
  return _.isConnected ? (_.toggleAttribute(`state${c}`, !1), _.part && _.part.remove(`state${c}`)) : setTimeout(() => {
4175
4197
  _.toggleAttribute(`state${c}`, !1), _.part && _.part.remove(`state${c}`);
4176
4198
  }), v;
@@ -4180,7 +4202,7 @@ function il() {
4180
4202
  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");
4181
4203
  return v === "m" ? _ : v === "a" ? _.call(g) : _ ? _.value : c.get(g);
4182
4204
  }
4183
- function fs(g, c, v, _, D) {
4205
+ function fs(g, c, v, _, I) {
4184
4206
  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");
4185
4207
  return c.set(g, v), v;
4186
4208
  }
@@ -4214,20 +4236,20 @@ function il() {
4214
4236
  HTMLFormElement.prototype.reportValidity = _;
4215
4237
  function v(...V) {
4216
4238
  let U = g.apply(this, V);
4217
- return xe(this, U, "checkValidity");
4239
+ return Se(this, U, "checkValidity");
4218
4240
  }
4219
4241
  function _(...V) {
4220
4242
  let U = c.apply(this, V);
4221
- return xe(this, U, "reportValidity");
4243
+ return Se(this, U, "reportValidity");
4222
4244
  }
4223
- const { get: D } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4245
+ const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4224
4246
  Object.defineProperty(HTMLFormElement.prototype, "elements", {
4225
4247
  get(...V) {
4226
- const U = D.call(this, ...V), Ot = Array.from(d.get(this) || []);
4227
- if (Ot.length === 0)
4248
+ const U = I.call(this, ...V), Mt = Array.from(d.get(this) || []);
4249
+ if (Mt.length === 0)
4228
4250
  return U;
4229
- const ut = Array.from(U).concat(Ot).sort((Mt, mi) => Mt.compareDocumentPosition ? Mt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4230
- return new zi(ut);
4251
+ const ft = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4252
+ return new zi(ft);
4231
4253
  }
4232
4254
  });
4233
4255
  }
@@ -4239,7 +4261,7 @@ function il() {
4239
4261
  if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
4240
4262
  throw new TypeError("Illegal constructor");
4241
4263
  const v = c.getRootNode(), _ = new us();
4242
- this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), M(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && pt(v);
4264
+ this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && mt(v);
4243
4265
  }
4244
4266
  checkValidity() {
4245
4267
  const c = t.get(this);
@@ -4279,34 +4301,34 @@ function il() {
4279
4301
  }
4280
4302
  setFormValue(c) {
4281
4303
  const v = t.get(this);
4282
- if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), Et(this), c != null && !(c instanceof FormData)) {
4304
+ if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), Ot(this), c != null && !(c instanceof FormData)) {
4283
4305
  if (v.getAttribute("name")) {
4284
4306
  const _ = at(v, this);
4285
4307
  _.value = c;
4286
4308
  }
4287
- } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, D]) => {
4288
- if (typeof D == "string") {
4309
+ } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, I]) => {
4310
+ if (typeof I == "string") {
4289
4311
  const V = at(v, this);
4290
- V.name = _, V.value = D;
4312
+ V.name = _, V.value = I;
4291
4313
  }
4292
4314
  });
4293
4315
  p.set(v, c);
4294
4316
  }
4295
4317
  setValidity(c, v, _) {
4296
- const D = t.get(this);
4297
- if (ot(D, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4318
+ const I = t.get(this);
4319
+ if (ot(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4298
4320
  throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
4299
4321
  y.set(this, _);
4300
4322
  const V = e.get(this), U = {};
4301
- for (const Mt in c)
4302
- U[Mt] = c[Mt];
4323
+ for (const Pt in c)
4324
+ U[Pt] = c[Pt];
4303
4325
  Object.keys(U).length === 0 && Ui(V);
4304
- const Ot = Object.assign(Object.assign({}, V), U);
4305
- delete Ot.valid;
4306
- const { valid: ut } = ms(V, Ot, this.form);
4307
- if (!ut && !v)
4326
+ const Mt = Object.assign(Object.assign({}, V), U);
4327
+ delete Mt.valid;
4328
+ const { valid: ft } = ms(V, Mt, this.form);
4329
+ if (!ft && !v)
4308
4330
  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.");
4309
- 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);
4331
+ 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);
4310
4332
  }
4311
4333
  get shadowRoot() {
4312
4334
  const c = t.get(this);
@@ -4360,14 +4382,14 @@ function il() {
4360
4382
  if (!zs) {
4361
4383
  if (zs = !0, typeof window < "u" && (window.ElementInternals = qs), typeof CustomElementRegistry < "u") {
4362
4384
  const c = CustomElementRegistry.prototype.define;
4363
- CustomElementRegistry.prototype.define = function(v, _, D) {
4385
+ CustomElementRegistry.prototype.define = function(v, _, I) {
4364
4386
  if (_.formAssociated) {
4365
4387
  const V = _.prototype.connectedCallback;
4366
4388
  _.prototype.connectedCallback = function() {
4367
- k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && At(this, !0)), V != null && V.apply(this), Se(this);
4389
+ k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Ce(this);
4368
4390
  };
4369
4391
  }
4370
- c.call(this, v, _, D);
4392
+ c.call(this, v, _, I);
4371
4393
  };
4372
4394
  }
4373
4395
  if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
@@ -4380,12 +4402,12 @@ function il() {
4380
4402
  return new qs(this);
4381
4403
  }), typeof Element < "u") {
4382
4404
  let c = function(..._) {
4383
- const D = v.apply(this, _);
4384
- if (f.set(this, D), he()) {
4405
+ const I = v.apply(this, _);
4406
+ if (f.set(this, I), he()) {
4385
4407
  const V = new MutationObserver(G);
4386
- window.ShadyDOM ? V.observe(this, J) : V.observe(D, J), l.set(this, V);
4408
+ window.ShadyDOM ? V.observe(this, J) : V.observe(I, J), l.set(this, V);
4387
4409
  }
4388
- return D;
4410
+ return I;
4389
4411
  };
4390
4412
  const v = Element.prototype.attachShadow;
4391
4413
  Element.prototype.attachShadow = c;
@@ -4411,26 +4433,26 @@ const al = {
4411
4433
  return i ? "true" : "false";
4412
4434
  }
4413
4435
  };
4414
- let P = class extends K {
4436
+ let D = class extends K {
4415
4437
  constructor() {
4416
- 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 = Pt.props.helptextDropdownButton.default, this.label = null, this.optionalText = _t.forms.labels.optional, this.requiredText = _t.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4438
+ 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();
4417
4439
  }
4418
4440
  static get formAssociated() {
4419
4441
  return !0;
4420
4442
  }
4421
4443
  manageValidity(t) {
4422
4444
  var e, s, a, n, r, l, d, p, m, f, y;
4423
- t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, _t.forms.messages.required, t) : (e = t.validity) != null && e.typeMismatch || (s = t.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, _t.forms.messages.invalid, t) : (a = t.validity) != null && a.patternMismatch ? this.internals.setValidity(
4445
+ t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, wt.forms.messages.required, t) : (e = t.validity) != null && e.typeMismatch || (s = t.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, wt.forms.messages.invalid, t) : (a = t.validity) != null && a.patternMismatch ? this.internals.setValidity(
4424
4446
  { patternMismatch: !0 },
4425
- _t.forms.messages.invalidPattern,
4447
+ wt.forms.messages.invalidPattern,
4426
4448
  t
4427
- ) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, _t.forms.messages.tooShort, t) : (r = t.validity) != null && r.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, _t.forms.messages.tooLong, t) : (l = t.validity) != null && l.rangeUnderflow ? this.internals.setValidity(
4449
+ ) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, wt.forms.messages.tooShort, t) : (r = t.validity) != null && r.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, wt.forms.messages.tooLong, t) : (l = t.validity) != null && l.rangeUnderflow ? this.internals.setValidity(
4428
4450
  { rangeUnderflow: !0 },
4429
- this.min ? _t.forms.messages.rangeUnderflowMin.replace("{min}", (d = this.min) == null ? void 0 : d.toString()) : _t.forms.messages.rangeUnderflow,
4451
+ this.min ? wt.forms.messages.rangeUnderflowMin.replace("{min}", (d = this.min) == null ? void 0 : d.toString()) : wt.forms.messages.rangeUnderflow,
4430
4452
  t
4431
- ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, _t.forms.messages.invalid, t) : (m = t.validity) != null && m.rangeOverflow ? this.internals.setValidity(
4453
+ ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, wt.forms.messages.invalid, t) : (m = t.validity) != null && m.rangeOverflow ? this.internals.setValidity(
4432
4454
  { rangeOverflow: !0 },
4433
- this.max ? _t.forms.messages.rangeOverflowMax.replace("{max}", (f = this.max) == null ? void 0 : f.toString()) : _t.forms.messages.rangeOverflow,
4455
+ this.max ? wt.forms.messages.rangeOverflowMax.replace("{max}", (f = this.max) == null ? void 0 : f.toString()) : wt.forms.messages.rangeOverflow,
4434
4456
  t
4435
4457
  ) : (y = t.validity) != null && y.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({}));
4436
4458
  }
@@ -4528,109 +4550,109 @@ let P = class extends K {
4528
4550
  };
4529
4551
  F([
4530
4552
  o()
4531
- ], P.prototype, "defaultValue");
4553
+ ], D.prototype, "defaultValue");
4532
4554
  F([
4533
4555
  o({ type: Boolean, reflect: !0 })
4534
- ], P.prototype, "disabled");
4556
+ ], D.prototype, "disabled");
4535
4557
  F([
4536
4558
  o({ type: Boolean, reflect: !0 })
4537
- ], P.prototype, "readonly");
4559
+ ], D.prototype, "readonly");
4538
4560
  F([
4539
4561
  o({ type: Boolean, reflect: !0 })
4540
- ], P.prototype, "required");
4562
+ ], D.prototype, "required");
4541
4563
  F([
4542
4564
  o({ type: Number, reflect: !0 })
4543
- ], P.prototype, "max");
4565
+ ], D.prototype, "max");
4544
4566
  F([
4545
4567
  o({ type: Number, reflect: !0 })
4546
- ], P.prototype, "maxlength");
4568
+ ], D.prototype, "maxlength");
4547
4569
  F([
4548
4570
  o({ type: Number, reflect: !0 })
4549
- ], P.prototype, "min");
4571
+ ], D.prototype, "min");
4550
4572
  F([
4551
4573
  o({ type: Number, reflect: !0 })
4552
- ], P.prototype, "minlength");
4574
+ ], D.prototype, "minlength");
4553
4575
  F([
4554
4576
  o({ type: Number, reflect: !0 })
4555
- ], P.prototype, "step");
4577
+ ], D.prototype, "step");
4556
4578
  F([
4557
4579
  o({ type: String })
4558
- ], P.prototype, "ariaDescribedBy");
4580
+ ], D.prototype, "ariaDescribedBy");
4559
4581
  F([
4560
4582
  o({ type: String })
4561
- ], P.prototype, "ariaLabelledby");
4583
+ ], D.prototype, "ariaLabelledby");
4562
4584
  F([
4563
4585
  o({ type: String, reflect: !0 })
4564
- ], P.prototype, "name");
4586
+ ], D.prototype, "name");
4565
4587
  F([
4566
4588
  o({ type: String, reflect: !0 })
4567
- ], P.prototype, "pattern");
4589
+ ], D.prototype, "pattern");
4568
4590
  F([
4569
4591
  o({ type: String, reflect: !0 })
4570
- ], P.prototype, "placeholder");
4592
+ ], D.prototype, "placeholder");
4571
4593
  F([
4572
4594
  o({ type: String, reflect: !0 })
4573
- ], P.prototype, "id");
4595
+ ], D.prototype, "id");
4574
4596
  F([
4575
4597
  o({ type: Boolean })
4576
- ], P.prototype, "counter");
4598
+ ], D.prototype, "counter");
4577
4599
  F([
4578
4600
  o({ type: Boolean })
4579
- ], P.prototype, "hasError");
4601
+ ], D.prototype, "hasError");
4580
4602
  F([
4581
4603
  o({ type: Boolean })
4582
- ], P.prototype, "inline");
4604
+ ], D.prototype, "inline");
4583
4605
  F([
4584
4606
  o({ type: Boolean })
4585
- ], P.prototype, "hasFieldset");
4607
+ ], D.prototype, "hasFieldset");
4586
4608
  F([
4587
4609
  o({ type: Boolean })
4588
- ], P.prototype, "optionalTag");
4610
+ ], D.prototype, "optionalTag");
4589
4611
  F([
4590
4612
  o({ type: Boolean })
4591
- ], P.prototype, "requiredTag");
4613
+ ], D.prototype, "requiredTag");
4592
4614
  F([
4593
4615
  o({ type: Boolean })
4594
- ], P.prototype, "skipForwardTestid");
4616
+ ], D.prototype, "skipForwardTestid");
4595
4617
  F([
4596
4618
  o({ type: Boolean, reflect: !0, converter: al })
4597
- ], P.prototype, "useWrapper");
4619
+ ], D.prototype, "useWrapper");
4598
4620
  F([
4599
4621
  o({ type: Boolean, reflect: !0 })
4600
- ], P.prototype, "fullwidth");
4622
+ ], D.prototype, "fullwidth");
4601
4623
  F([
4602
4624
  o({ type: Number })
4603
- ], P.prototype, "counterMaxLength");
4625
+ ], D.prototype, "counterMaxLength");
4604
4626
  F([
4605
4627
  o({ type: String })
4606
- ], P.prototype, "errorMessage");
4628
+ ], D.prototype, "errorMessage");
4607
4629
  F([
4608
4630
  o({ type: String })
4609
- ], P.prototype, "helptext");
4631
+ ], D.prototype, "helptext");
4610
4632
  F([
4611
4633
  o({ type: String })
4612
- ], P.prototype, "helptextDropdown");
4634
+ ], D.prototype, "helptextDropdown");
4613
4635
  F([
4614
4636
  o({ type: String, reflect: !1 })
4615
- ], P.prototype, "helptextDropdownButton");
4637
+ ], D.prototype, "helptextDropdownButton");
4616
4638
  F([
4617
4639
  o({ type: String })
4618
- ], P.prototype, "label");
4640
+ ], D.prototype, "label");
4619
4641
  F([
4620
4642
  o({ type: String, reflect: !1 })
4621
- ], P.prototype, "optionalText");
4643
+ ], D.prototype, "optionalText");
4622
4644
  F([
4623
4645
  o({ type: String, reflect: !1 })
4624
- ], P.prototype, "requiredText");
4646
+ ], D.prototype, "requiredText");
4625
4647
  F([
4626
4648
  o({ type: String, reflect: !1 })
4627
- ], P.prototype, "tagText");
4649
+ ], D.prototype, "tagText");
4628
4650
  F([
4629
4651
  o({ type: String, attribute: "data-testid" })
4630
- ], P.prototype, "dataTestid");
4652
+ ], D.prototype, "dataTestid");
4631
4653
  F([
4632
4654
  B()
4633
- ], P.prototype, "touched");
4655
+ ], D.prototype, "touched");
4634
4656
  let an = class {
4635
4657
  constructor(t) {
4636
4658
  this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
@@ -4659,21 +4681,21 @@ let an = class {
4659
4681
  let e = !1;
4660
4682
  t.forEach((s) => {
4661
4683
  s.type === "childList" && (s.addedNodes.forEach((a) => {
4662
- Je(a) && (this.addNode(a), e = !0);
4684
+ Xe(a) && (this.addNode(a), e = !0);
4663
4685
  }), s.removedNodes.forEach((a) => {
4664
- Je(a) && (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
4665
- })), s.type === "attributes" && Je(s.target) && (this.addNode(s.target), e = !0);
4686
+ Xe(a) && (this.nodes = this.nodes.filter((n) => n !== a), e = !0);
4687
+ })), s.type === "attributes" && Xe(s.target) && (this.addNode(s.target), e = !0);
4666
4688
  }), e && this.createOptions();
4667
4689
  }
4668
4690
  };
4669
- var nl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, He = (i, t, e, s) => {
4691
+ var nl = Object.defineProperty, rl = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
4670
4692
  for (var a = s > 1 ? void 0 : s ? rl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
4671
4693
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4672
4694
  return s && a && nl(t, e, a), a;
4673
4695
  };
4674
4696
  let ce = class extends K {
4675
4697
  constructor() {
4676
- super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Pt.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
4698
+ super(), this.defaultSlot = A(), this.forId = be(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
4677
4699
  }
4678
4700
  updateSlots(t) {
4679
4701
  this.filledSlots = new Set(t);
@@ -4687,7 +4709,7 @@ let ce = class extends K {
4687
4709
  detail: { isOpen: a }
4688
4710
  })
4689
4711
  );
4690
- }, e = O({
4712
+ }, e = M({
4691
4713
  "pkt-inputwrapper__helptext-container": !0,
4692
4714
  "pkt-inputwrapper__has-helptext": this.helptext || this.helptextDropdown || this.filledSlots.size > 0
4693
4715
  }), s = () => this.helptextDropdown ? u`<div class="pkt-inputwrapper__helptext-expandable">
@@ -4703,7 +4725,7 @@ let ce = class extends K {
4703
4725
  <span class="pkt-btn__text">${Ji(this.helptextDropdownButton)}</span>
4704
4726
  </button>
4705
4727
  <div
4706
- class="${O({
4728
+ class="${M({
4707
4729
  "pkt-inputwrapper__helptext": !0,
4708
4730
  "pkt-inputwrapper__helptext-expandable-open": this.isHelpTextOpen,
4709
4731
  "pkt-inputwrapper__helptext-expandable-closed": !this.isHelpTextOpen
@@ -4721,25 +4743,25 @@ let ce = class extends K {
4721
4743
  </div>`}`;
4722
4744
  }
4723
4745
  };
4724
- He([
4746
+ qe([
4725
4747
  o({ type: String, reflect: !0 })
4726
4748
  ], ce.prototype, "forId", 2);
4727
- He([
4749
+ qe([
4728
4750
  o({ type: String })
4729
4751
  ], ce.prototype, "helptext", 2);
4730
- He([
4752
+ qe([
4731
4753
  o({ type: String })
4732
4754
  ], ce.prototype, "helptextDropdown", 2);
4733
- He([
4755
+ qe([
4734
4756
  o({ type: String })
4735
4757
  ], ce.prototype, "helptextDropdownButton", 2);
4736
- He([
4758
+ qe([
4737
4759
  B()
4738
4760
  ], ce.prototype, "isHelpTextOpen", 2);
4739
- He([
4761
+ qe([
4740
4762
  B()
4741
4763
  ], ce.prototype, "filledSlots", 2);
4742
- ce = He([
4764
+ ce = qe([
4743
4765
  j("pkt-helptext")
4744
4766
  ], ce);
4745
4767
  var ol = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
@@ -4757,7 +4779,7 @@ const hl = {
4757
4779
  };
4758
4780
  let Y = class extends K {
4759
4781
  constructor() {
4760
- super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = Pt.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = Pt.props.optionalTag.default, this.optionalText = Pt.props.optionalText.default, this.requiredTag = Pt.props.requiredTag.default, this.requiredText = Pt.props.requiredText.default, this.tagText = null, this.hasError = Pt.props.hasError.default, this.errorMessage = "", this.disabled = Pt.props.disabled.default, this.inline = Pt.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = Pt.props.hasFieldset.default, this.role = "group", this.useWrapper = Pt.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
4782
+ super(), this.defaultSlot = A(), this.helptextSlot = A(), this.forId = be(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = Dt.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = Dt.props.optionalTag.default, this.optionalText = Dt.props.optionalText.default, this.requiredTag = Dt.props.requiredTag.default, this.requiredText = Dt.props.requiredText.default, this.tagText = null, this.hasError = Dt.props.hasError.default, this.errorMessage = "", this.disabled = Dt.props.disabled.default, this.inline = Dt.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = Dt.props.hasFieldset.default, this.role = "group", this.useWrapper = Dt.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
4761
4783
  }
4762
4784
  updated(t) {
4763
4785
  super.updated(t);
@@ -4794,11 +4816,11 @@ let Y = class extends K {
4794
4816
  ${this.label}
4795
4817
  </label>`, r = () => u`
4796
4818
  <pkt-helptext
4797
- class="${C(this.useWrapper ? void 0 : "pkt-hide")}"
4819
+ class="${S(this.useWrapper ? void 0 : "pkt-hide")}"
4798
4820
  .forId=${this.forId}
4799
4821
  .helptext=${this.helptext}
4800
4822
  .helptextDropdown=${this.helptextDropdown}
4801
- .helptextDropdownButton=${this.helptextDropdownButton || Pt.props.helptextDropdownButton.default}
4823
+ .helptextDropdownButton=${this.helptextDropdownButton || Dt.props.helptextDropdownButton.default}
4802
4824
  @toggleHelpText=${(f) => {
4803
4825
  this.toggleDropdown(f);
4804
4826
  }}
@@ -4826,7 +4848,7 @@ let Y = class extends K {
4826
4848
  `, m = () => this.hasFieldset ? u`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
4827
4849
  ${p()}
4828
4850
  </fieldset>` : u`<div class="pkt-inputwrapper__fieldset">${p()}</div>`;
4829
- return u`<div class=${O(t)}>${m()}</div> `;
4851
+ return u`<div class=${M(t)}>${m()}</div> `;
4830
4852
  }
4831
4853
  toggleDropdown(t) {
4832
4854
  this.dispatchEvent(
@@ -4923,7 +4945,7 @@ var dl = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, yt = (i, t
4923
4945
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4924
4946
  return s && a && dl(t, e, a), a;
4925
4947
  };
4926
- let gt = class extends K {
4948
+ let vt = class extends K {
4927
4949
  constructor() {
4928
4950
  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 = [];
4929
4951
  }
@@ -4941,13 +4963,13 @@ let gt = class extends K {
4941
4963
  render() {
4942
4964
  return u`
4943
4965
  <div
4944
- class=${O({
4966
+ class=${M({
4945
4967
  "pkt-listbox": !0,
4946
4968
  "pkt-listbox__open": this.isOpen,
4947
4969
  "pkt-txt-16-light": !0
4948
4970
  })}
4949
4971
  role="listbox"
4950
- aria-label=${C(this.label)}
4972
+ aria-label=${S(this.label)}
4951
4973
  >
4952
4974
  <div class="pkt-listbox__banners">
4953
4975
  ${this.renderMaximumReachedBanner()} ${this.renderUserMessage()}
@@ -4985,7 +5007,7 @@ let gt = class extends K {
4985
5007
  }}
4986
5008
  aria-selected=${t.selected ? "true" : "false"}
4987
5009
  @keydown=${this.handleOptionKeydown}
4988
- class=${O({
5010
+ class=${M({
4989
5011
  "pkt-listbox__option": !0,
4990
5012
  "pkt-listbox__option--selected": !!(!this.isMultiSelect && t.selected),
4991
5013
  "pkt-listbox__option--checkBox": this.isMultiSelect
@@ -5057,7 +5079,7 @@ let gt = class extends K {
5057
5079
  type="text"
5058
5080
  aria-label="Søk i listen"
5059
5081
  form=""
5060
- placeholder=${this.searchPlaceholder || _t.forms.search.placeholder}
5082
+ placeholder=${this.searchPlaceholder || wt.forms.search.placeholder}
5061
5083
  @input=${this.handleSearchInput}
5062
5084
  @keydown=${this.handleSearchKeydown}
5063
5085
  .value=${this.searchValue}
@@ -5223,52 +5245,52 @@ let gt = class extends K {
5223
5245
  };
5224
5246
  yt([
5225
5247
  o({ type: String })
5226
- ], gt.prototype, "id", 2);
5248
+ ], vt.prototype, "id", 2);
5227
5249
  yt([
5228
5250
  o({ type: String })
5229
- ], gt.prototype, "label", 2);
5251
+ ], vt.prototype, "label", 2);
5230
5252
  yt([
5231
5253
  o({ type: Array })
5232
- ], gt.prototype, "options", 2);
5254
+ ], vt.prototype, "options", 2);
5233
5255
  yt([
5234
5256
  o({ type: Boolean, reflect: !0 })
5235
- ], gt.prototype, "isOpen", 2);
5257
+ ], vt.prototype, "isOpen", 2);
5236
5258
  yt([
5237
5259
  o({ type: Boolean })
5238
- ], gt.prototype, "disabled", 2);
5260
+ ], vt.prototype, "disabled", 2);
5239
5261
  yt([
5240
5262
  o({ type: Boolean })
5241
- ], gt.prototype, "includeSearch", 2);
5263
+ ], vt.prototype, "includeSearch", 2);
5242
5264
  yt([
5243
5265
  o({ type: Boolean })
5244
- ], gt.prototype, "isMultiSelect", 2);
5266
+ ], vt.prototype, "isMultiSelect", 2);
5245
5267
  yt([
5246
5268
  o({ type: Boolean })
5247
- ], gt.prototype, "allowUserInput", 2);
5269
+ ], vt.prototype, "allowUserInput", 2);
5248
5270
  yt([
5249
5271
  o({ type: Boolean })
5250
- ], gt.prototype, "maxIsReached", 2);
5272
+ ], vt.prototype, "maxIsReached", 2);
5251
5273
  yt([
5252
5274
  o({ type: String })
5253
- ], gt.prototype, "customUserInput", 2);
5275
+ ], vt.prototype, "customUserInput", 2);
5254
5276
  yt([
5255
5277
  o({ type: String })
5256
- ], gt.prototype, "searchPlaceholder", 2);
5278
+ ], vt.prototype, "searchPlaceholder", 2);
5257
5279
  yt([
5258
5280
  o({ type: String })
5259
- ], gt.prototype, "searchValue", 2);
5281
+ ], vt.prototype, "searchValue", 2);
5260
5282
  yt([
5261
5283
  o({ type: Number })
5262
- ], gt.prototype, "maxLength", 2);
5284
+ ], vt.prototype, "maxLength", 2);
5263
5285
  yt([
5264
5286
  o({ type: String })
5265
- ], gt.prototype, "userMessage", 2);
5287
+ ], vt.prototype, "userMessage", 2);
5266
5288
  yt([
5267
5289
  B()
5268
- ], gt.prototype, "_filteredOptions", 2);
5269
- gt = yt([
5290
+ ], vt.prototype, "_filteredOptions", 2);
5291
+ vt = yt([
5270
5292
  j("pkt-listbox")
5271
- ], gt);
5293
+ ], vt);
5272
5294
  const pl = { displayValueAs: { default: "label" } }, ul = {
5273
5295
  props: pl
5274
5296
  };
@@ -5277,7 +5299,7 @@ var ml = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, it = (i, t
5277
5299
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5278
5300
  return s && a && ml(t, e, a), a;
5279
5301
  };
5280
- let Q = class extends P {
5302
+ let Q = class extends D {
5281
5303
  constructor() {
5282
5304
  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;
5283
5305
  }
@@ -5339,8 +5361,8 @@ let Q = class extends P {
5339
5361
  <pkt-input-wrapper
5340
5362
  .label=${this.label}
5341
5363
  .helptext=${this.helptext}
5342
- .helptextDropdown=${C(this.helptextDropdown)}
5343
- .helptextDropdownButton=${C(this.helptextDropdownButton)}
5364
+ .helptextDropdown=${S(this.helptextDropdown)}
5365
+ .helptextDropdownButton=${S(this.helptextDropdownButton)}
5344
5366
  ?fullwidth=${this.fullwidth}
5345
5367
  ?hasError=${this.hasError}
5346
5368
  ?inline=${this.inline}
@@ -5359,7 +5381,7 @@ let Q = class extends P {
5359
5381
  <div class="pkt-contents" ${E(this.helptextSlot)} name="helptext" slot="helptext"></div>
5360
5382
  <div class="pkt-combobox" @focusout=${this.handleFocusOut}>
5361
5383
  <div
5362
- class=${O({
5384
+ class=${M({
5363
5385
  "pkt-combobox__input": !0,
5364
5386
  "pkt-combobox__input--fullwidth": this.fullwidth,
5365
5387
  "pkt-combobox__input--open": this._isOptionsOpen,
@@ -5389,7 +5411,7 @@ let Q = class extends P {
5389
5411
  tabindex="${this.disabled ? "-1" : "0"}"
5390
5412
  >
5391
5413
  <pkt-icon
5392
- class=${O({
5414
+ class=${M({
5393
5415
  "pkt-combobox__arrow-icon": !0,
5394
5416
  "pkt-combobox__arrow-icon--open": this._isOptionsOpen
5395
5417
  })}
@@ -5414,7 +5436,7 @@ let Q = class extends P {
5414
5436
  ?isMultiSelect=${this.multiple}
5415
5437
  ?allowUserInput=${this.allowUserInput && !this._maxIsReached}
5416
5438
  ?maxIsReached=${this._maxIsReached}
5417
- .customUserInput=${C(this._addValueText)}
5439
+ .customUserInput=${S(this._addValueText)}
5418
5440
  .userMessage=${this._userInfoMessage}
5419
5441
  @search=${this.handleSearch}
5420
5442
  @option-toggle=${this.handleOptionToggled}
@@ -5445,11 +5467,11 @@ let Q = class extends P {
5445
5467
  @blur=${this.handleBlur}
5446
5468
  autocomplete="off"
5447
5469
  role="combobox"
5448
- aria-label=${C(this.label)}
5470
+ aria-label=${S(this.label)}
5449
5471
  aria-autocomplete=${this.typeahead ? "both" : "list"}
5450
5472
  aria-controls="${this.id}-listbox"
5451
- aria-multiselectable=${C(this.multiple ? "true" : void 0)}
5452
- aria-activedescendant=${C(
5473
+ aria-multiselectable=${S(this.multiple ? "true" : void 0)}
5474
+ aria-activedescendant=${S(
5453
5475
  this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
5454
5476
  )}
5455
5477
  ${E(this.inputRef)}
@@ -5652,11 +5674,11 @@ let Q = class extends P {
5652
5674
  var e, s;
5653
5675
  if (this.disabled) return;
5654
5676
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5655
- 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();
5677
+ 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();
5656
5678
  let y = !1, b = !0, k = "", w = "";
5657
5679
  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(() => {
5658
- var S;
5659
- (S = this.focusRef.value) == null || S.focus();
5680
+ var C;
5681
+ (C = this.focusRef.value) == null || C.focus();
5660
5682
  }, 0), this._userInfoMessage = k, this._search = w || "", this.resetComboboxInput(b), m && this.isMaxItemsReached());
5661
5683
  }
5662
5684
  setSelected(t) {
@@ -5959,7 +5981,7 @@ var yl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, $t = (i, t
5959
5981
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5960
5982
  return s && a && yl(t, e, a), a;
5961
5983
  };
5962
- let vt = class extends P {
5984
+ let bt = class extends D {
5963
5985
  constructor() {
5964
5986
  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";
5965
5987
  }
@@ -5976,14 +5998,14 @@ let vt = class extends P {
5976
5998
  t.has("defaultChecked") && !this.checked && (this.checked = this.defaultChecked), t.has("checked") && this.inputRef.value && (this.inputRef.value.checked = this.checked === "" || this.checked === "true" || this.checked === !0), t.has("indeterminate") && this.inputRef.value && (this.inputRef.value.indeterminate = this.indeterminate === "" || this.indeterminate === "true" || this.indeterminate === !0), super.updated(t);
5977
5999
  }
5978
6000
  render() {
5979
- const t = O({
6001
+ const t = M({
5980
6002
  "pkt-input-check__input": !0,
5981
6003
  "pkt-input-check__input--tile": this.hasTile,
5982
6004
  "pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
5983
- }), e = O({
6005
+ }), e = M({
5984
6006
  "pkt-input-check__input-checkbox": !0,
5985
6007
  "pkt-input-check__input-checkbox--error": this.hasError
5986
- }), s = O({
6008
+ }), s = M({
5987
6009
  "pkt-input-check__input-label": !0,
5988
6010
  "pkt-input-check__input-label--disabled": this.disabled,
5989
6011
  "pkt-input-check__input-label--left": this.labelPosition === "left",
@@ -6046,52 +6068,52 @@ let vt = class extends P {
6046
6068
  };
6047
6069
  $t([
6048
6070
  o({ type: String, reflect: !0 })
6049
- ], vt.prototype, "value", 2);
6071
+ ], bt.prototype, "value", 2);
6050
6072
  $t([
6051
6073
  o({ type: String })
6052
- ], vt.prototype, "checkHelptext", 2);
6074
+ ], bt.prototype, "checkHelptext", 2);
6053
6075
  $t([
6054
6076
  o({ type: Boolean })
6055
- ], vt.prototype, "defaultChecked", 2);
6077
+ ], bt.prototype, "defaultChecked", 2);
6056
6078
  $t([
6057
6079
  o({ type: Boolean })
6058
- ], vt.prototype, "hasTile", 2);
6080
+ ], bt.prototype, "hasTile", 2);
6059
6081
  $t([
6060
6082
  o({ type: Boolean })
6061
- ], vt.prototype, "isSwitch", 2);
6083
+ ], bt.prototype, "isSwitch", 2);
6062
6084
  $t([
6063
6085
  o({ type: String })
6064
- ], vt.prototype, "labelPosition", 2);
6086
+ ], bt.prototype, "labelPosition", 2);
6065
6087
  $t([
6066
6088
  o({ type: Boolean })
6067
- ], vt.prototype, "hideLabel", 2);
6089
+ ], bt.prototype, "hideLabel", 2);
6068
6090
  $t([
6069
6091
  o({ type: Boolean, reflect: !0 })
6070
- ], vt.prototype, "checked", 2);
6092
+ ], bt.prototype, "checked", 2);
6071
6093
  $t([
6072
6094
  o({ type: Boolean, reflect: !0 })
6073
- ], vt.prototype, "indeterminate", 2);
6095
+ ], bt.prototype, "indeterminate", 2);
6074
6096
  $t([
6075
6097
  o({ type: String, reflect: !0 })
6076
- ], vt.prototype, "type", 2);
6098
+ ], bt.prototype, "type", 2);
6077
6099
  $t([
6078
6100
  o({ type: String })
6079
- ], vt.prototype, "tagText", 2);
6101
+ ], bt.prototype, "tagText", 2);
6080
6102
  $t([
6081
6103
  o({ type: Boolean })
6082
- ], vt.prototype, "optionalTag", 2);
6104
+ ], bt.prototype, "optionalTag", 2);
6083
6105
  $t([
6084
6106
  o({ type: String })
6085
- ], vt.prototype, "optionalText", 2);
6107
+ ], bt.prototype, "optionalText", 2);
6086
6108
  $t([
6087
6109
  o({ type: Boolean })
6088
- ], vt.prototype, "requiredTag", 2);
6110
+ ], bt.prototype, "requiredTag", 2);
6089
6111
  $t([
6090
6112
  o({ type: String })
6091
- ], vt.prototype, "requiredText", 2);
6092
- vt = $t([
6113
+ ], bt.prototype, "requiredText", 2);
6114
+ bt = $t([
6093
6115
  j("pkt-checkbox")
6094
- ], vt);
6116
+ ], bt);
6095
6117
  var _l = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
6096
6118
  for (var a = s > 1 ? void 0 : s ? wl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6097
6119
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -6106,7 +6128,7 @@ let ai = class extends K {
6106
6128
  "pkt-date-tags": !0,
6107
6129
  [this.className]: !0
6108
6130
  }, u`
6109
- <div class=${O(this.classes)} aria-live="polite">
6131
+ <div class=${M(this.classes)} aria-live="polite">
6110
6132
  ${Array.isArray(this.dates) && this.dates[0] ? Us(
6111
6133
  en((this.dates ?? []).filter(Boolean)),
6112
6134
  (t) => t,
@@ -6145,7 +6167,7 @@ ai = Vi([
6145
6167
  ], ai);
6146
6168
  const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
6147
6169
  props: xl
6148
- }, Re = () => {
6170
+ }, Be = () => {
6149
6171
  const i = navigator.userAgent;
6150
6172
  return !!(/iP(hone|od|ad)/.test(i) || /Macintosh/.test(i) && "ontouchend" in document);
6151
6173
  }, Yi = {
@@ -6179,7 +6201,7 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6179
6201
  * Mobile Safari does not play well with type="date" amd custom datepickers
6180
6202
  */
6181
6203
  getInputType() {
6182
- return Re() ? "text" : "date";
6204
+ return Be() ? "text" : "date";
6183
6205
  }
6184
6206
  }, Pi = {
6185
6207
  /**
@@ -6290,11 +6312,11 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6290
6312
  const r = i.target;
6291
6313
  if (r.value) {
6292
6314
  a(r);
6293
- const l = $e(r.value);
6315
+ const l = _e(r.value);
6294
6316
  l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
6295
6317
  } else t[0] && s();
6296
6318
  }
6297
- }, Me = {
6319
+ }, Pe = {
6298
6320
  /**
6299
6321
  * Handles common keyboard interactions for datepicker inputs
6300
6322
  */
@@ -6310,12 +6332,12 @@ const xl = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6310
6332
  (e === "Enter" || e === " " || e === "Space") && (i.preventDefault(), t(i));
6311
6333
  }
6312
6334
  };
6313
- var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Lt = (i, t, e, s) => {
6335
+ var Cl = Object.defineProperty, Tl = Object.getOwnPropertyDescriptor, Bt = (i, t, e, s) => {
6314
6336
  for (var a = s > 1 ? void 0 : s ? Tl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6315
6337
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6316
6338
  return s && a && Cl(t, e, a), a;
6317
6339
  };
6318
- let St = class extends K {
6340
+ let Ct = class extends K {
6319
6341
  constructor() {
6320
6342
  super(...arguments), this.open = !1, this.multiple = !1, this.range = !1, this.weeknumbers = !1, this.withcontrols = !1, this.maxMultiple = null, this.selected = [], this.earliest = null, this.latest = null, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.popupRef = A(), this.calendarRef = A(), this.handleDocumentClick = (t) => {
6321
6343
  if (!this.open) return;
@@ -6361,7 +6383,7 @@ let St = class extends K {
6361
6383
  const t = { "pkt-calendar-popup": !0, show: this.open, hide: !this.open };
6362
6384
  return u`
6363
6385
  <div
6364
- class="${O(t)}"
6386
+ class="${M(t)}"
6365
6387
  ${E(this.popupRef)}
6366
6388
  id="date-popup"
6367
6389
  ?hidden=${!this.open}
@@ -6393,51 +6415,51 @@ let St = class extends K {
6393
6415
  `;
6394
6416
  }
6395
6417
  };
6396
- Lt([
6418
+ Bt([
6397
6419
  o({ type: Boolean, reflect: !0 })
6398
- ], St.prototype, "open", 2);
6399
- Lt([
6420
+ ], Ct.prototype, "open", 2);
6421
+ Bt([
6400
6422
  o({ type: Boolean })
6401
- ], St.prototype, "multiple", 2);
6402
- Lt([
6423
+ ], Ct.prototype, "multiple", 2);
6424
+ Bt([
6403
6425
  o({ type: Boolean })
6404
- ], St.prototype, "range", 2);
6405
- Lt([
6426
+ ], Ct.prototype, "range", 2);
6427
+ Bt([
6406
6428
  o({ type: Boolean })
6407
- ], St.prototype, "weeknumbers", 2);
6408
- Lt([
6429
+ ], Ct.prototype, "weeknumbers", 2);
6430
+ Bt([
6409
6431
  o({ type: Boolean })
6410
- ], St.prototype, "withcontrols", 2);
6411
- Lt([
6432
+ ], Ct.prototype, "withcontrols", 2);
6433
+ Bt([
6412
6434
  o({ type: Number })
6413
- ], St.prototype, "maxMultiple", 2);
6414
- Lt([
6435
+ ], Ct.prototype, "maxMultiple", 2);
6436
+ Bt([
6415
6437
  o({ type: Array })
6416
- ], St.prototype, "selected", 2);
6417
- Lt([
6438
+ ], Ct.prototype, "selected", 2);
6439
+ Bt([
6418
6440
  o({ type: String })
6419
- ], St.prototype, "earliest", 2);
6420
- Lt([
6441
+ ], Ct.prototype, "earliest", 2);
6442
+ Bt([
6421
6443
  o({ type: String })
6422
- ], St.prototype, "latest", 2);
6423
- Lt([
6444
+ ], Ct.prototype, "latest", 2);
6445
+ Bt([
6424
6446
  o({ type: Array })
6425
- ], St.prototype, "excludedates", 2);
6426
- Lt([
6447
+ ], Ct.prototype, "excludedates", 2);
6448
+ Bt([
6427
6449
  o({ type: Array })
6428
- ], St.prototype, "excludeweekdays", 2);
6429
- Lt([
6450
+ ], Ct.prototype, "excludeweekdays", 2);
6451
+ Bt([
6430
6452
  o({ type: String })
6431
- ], St.prototype, "currentmonth", 2);
6432
- St = Lt([
6453
+ ], Ct.prototype, "currentmonth", 2);
6454
+ Ct = Bt([
6433
6455
  j("pkt-datepicker-popup")
6434
- ], St);
6456
+ ], Ct);
6435
6457
  var Nl = Object.defineProperty, Al = Object.getOwnPropertyDescriptor, qt = (i, t, e, s) => {
6436
6458
  for (var a = s > 1 ? void 0 : s ? Al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6437
6459
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6438
6460
  return s && a && Nl(t, e, a), a;
6439
6461
  };
6440
- let Dt = class extends K {
6462
+ let It = class extends K {
6441
6463
  constructor() {
6442
6464
  super(...arguments), this.value = "", this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = A(), this.btnRef = A();
6443
6465
  }
@@ -6510,13 +6532,13 @@ let Dt = class extends K {
6510
6532
  return u`
6511
6533
  <div class="pkt-input__container">
6512
6534
  <input
6513
- class="${O(this.inputClasses)}"
6535
+ class="${M(this.inputClasses)}"
6514
6536
  .type=${this.inputType}
6515
6537
  id="${this.id}-input"
6516
6538
  .value=${this.value}
6517
- min=${C(this.min)}
6518
- max=${C(this.max)}
6519
- placeholder=${C(this.placeholder)}
6539
+ min=${S(this.min)}
6540
+ max=${S(this.max)}
6541
+ placeholder=${S(this.placeholder)}
6520
6542
  ?readonly=${this.isInputReadonly}
6521
6543
  aria-describedby="${this.id}-helptext"
6522
6544
  @click=${(t) => {
@@ -6526,7 +6548,7 @@ let Dt = class extends K {
6526
6548
  t.preventDefault(), this.dispatchToggleCalendar(t);
6527
6549
  }}
6528
6550
  ?disabled=${this.disabled}
6529
- @keydown=${(t) => Me.handleInputKeydown(
6551
+ @keydown=${(t) => Pe.handleInputKeydown(
6530
6552
  t,
6531
6553
  (e) => this.dispatchToggleCalendar(e),
6532
6554
  () => Pi.submitFormOrFallback(this.internals, () => {
@@ -6543,7 +6565,7 @@ let Dt = class extends K {
6543
6565
  this.dispatchInput(t), t.stopImmediatePropagation();
6544
6566
  }}
6545
6567
  @focus=${() => {
6546
- this.dispatchFocus(), Re() && this.dispatchToggleCalendar(new Event("focus"));
6568
+ this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6547
6569
  }}
6548
6570
  @blur=${(t) => {
6549
6571
  this.dispatchBlur(t), this.dispatchManageValidity(t.target), this.dispatchEvent(
@@ -6560,10 +6582,10 @@ let Dt = class extends K {
6560
6582
  ${E(this.inputRef)}
6561
6583
  />
6562
6584
  <button
6563
- class="${O(Di.getButtonClasses())}"
6585
+ class="${M(Di.getButtonClasses())}"
6564
6586
  type="button"
6565
6587
  @click=${(t) => this.dispatchToggleCalendar(t)}
6566
- @keydown=${(t) => Me.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6588
+ @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6567
6589
  ?disabled=${this.disabled}
6568
6590
  ${E(this.btnRef)}
6569
6591
  >
@@ -6576,46 +6598,46 @@ let Dt = class extends K {
6576
6598
  };
6577
6599
  qt([
6578
6600
  o({ type: String })
6579
- ], Dt.prototype, "value", 2);
6601
+ ], It.prototype, "value", 2);
6580
6602
  qt([
6581
6603
  o({ type: String })
6582
- ], Dt.prototype, "inputType", 2);
6604
+ ], It.prototype, "inputType", 2);
6583
6605
  qt([
6584
6606
  o({ type: String })
6585
- ], Dt.prototype, "id", 2);
6607
+ ], It.prototype, "id", 2);
6586
6608
  qt([
6587
6609
  o({ type: String })
6588
- ], Dt.prototype, "min", 2);
6610
+ ], It.prototype, "min", 2);
6589
6611
  qt([
6590
6612
  o({ type: String })
6591
- ], Dt.prototype, "max", 2);
6613
+ ], It.prototype, "max", 2);
6592
6614
  qt([
6593
6615
  o({ type: String })
6594
- ], Dt.prototype, "placeholder", 2);
6616
+ ], It.prototype, "placeholder", 2);
6595
6617
  qt([
6596
6618
  o({ type: Boolean })
6597
- ], Dt.prototype, "readonly", 2);
6619
+ ], It.prototype, "readonly", 2);
6598
6620
  qt([
6599
6621
  o({ type: Boolean })
6600
- ], Dt.prototype, "disabled", 2);
6622
+ ], It.prototype, "disabled", 2);
6601
6623
  qt([
6602
6624
  o({ type: Object })
6603
- ], Dt.prototype, "inputClasses", 2);
6625
+ ], It.prototype, "inputClasses", 2);
6604
6626
  qt([
6605
6627
  o({ type: Object })
6606
- ], Dt.prototype, "internals", 2);
6628
+ ], It.prototype, "internals", 2);
6607
6629
  qt([
6608
6630
  o({ type: Object })
6609
- ], Dt.prototype, "strings", 2);
6610
- Dt = qt([
6631
+ ], It.prototype, "strings", 2);
6632
+ It = qt([
6611
6633
  j("pkt-datepicker-single")
6612
- ], Dt);
6613
- var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, Bt = (i, t, e, s) => {
6634
+ ], It);
6635
+ var El = Object.defineProperty, Ol = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
6614
6636
  for (var a = s > 1 ? void 0 : s ? Ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6615
6637
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6616
6638
  return s && a && El(t, e, a), a;
6617
6639
  };
6618
- let Ct = class extends K {
6640
+ let Tt = class extends K {
6619
6641
  constructor() {
6620
6642
  super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.showRangeLabels = !1, this.inputClasses = {}, this.strings = { generic: { from: "Fra", to: "Til" } }, this.inputRef = A(), this.inputRefTo = A(), this.btnRef = A();
6621
6643
  }
@@ -6693,13 +6715,13 @@ let Ct = class extends K {
6693
6715
  <div class="pkt-input__container">
6694
6716
  ${this.showRangeLabels ? u` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : $}
6695
6717
  <input
6696
- class=${O(this.inputClasses)}
6718
+ class=${M(this.inputClasses)}
6697
6719
  .type=${this.inputType}
6698
6720
  id="${this.id}-input"
6699
6721
  .value=${this.value[0] ?? ""}
6700
- min=${C(this.min)}
6701
- max=${C(this.max)}
6702
- placeholder=${C(this.placeholder)}
6722
+ min=${S(this.min)}
6723
+ max=${S(this.max)}
6724
+ placeholder=${S(this.placeholder)}
6703
6725
  ?readonly=${this.isInputReadonly}
6704
6726
  ?disabled=${this.disabled}
6705
6727
  @click=${(e) => {
@@ -6708,7 +6730,7 @@ let Ct = class extends K {
6708
6730
  @touchend=${(e) => {
6709
6731
  e.preventDefault(), this.dispatchToggleCalendar(e);
6710
6732
  }}
6711
- @keydown=${(e) => Me.handleInputKeydown(
6733
+ @keydown=${(e) => Pe.handleInputKeydown(
6712
6734
  e,
6713
6735
  (s) => this.dispatchToggleCalendar(s),
6714
6736
  () => Pi.submitFormOrFallback(
@@ -6731,7 +6753,7 @@ let Ct = class extends K {
6731
6753
  this.dispatchInput(e), e.stopImmediatePropagation();
6732
6754
  }}
6733
6755
  @focus=${() => {
6734
- this.dispatchFocus(), Re() && this.dispatchToggleCalendar(new Event("focus"));
6756
+ this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6735
6757
  }}
6736
6758
  @blur=${(e) => {
6737
6759
  this.dispatchEvent(
@@ -6751,19 +6773,19 @@ let Ct = class extends K {
6751
6773
  }}
6752
6774
  ${E(this.inputRef)}
6753
6775
  />
6754
- <div class="${O(t)}" id="${this.id}-to-label">
6776
+ <div class="${M(t)}" id="${this.id}-to-label">
6755
6777
  ${this.strings.generic.to}
6756
6778
  </div>
6757
6779
  ${this.showRangeLabels ? $ : u` <div class="pkt-input-separator">–</div> `}
6758
6780
  <input
6759
- class=${O(this.inputClasses)}
6781
+ class=${M(this.inputClasses)}
6760
6782
  .type=${this.inputType}
6761
6783
  id="${this.id}-to"
6762
6784
  aria-labelledby="${this.id}-to-label"
6763
6785
  .value=${this.value[1] ?? ""}
6764
- min=${C(this.min)}
6765
- max=${C(this.max)}
6766
- placeholder=${C(this.placeholder)}
6786
+ min=${S(this.min)}
6787
+ max=${S(this.max)}
6788
+ placeholder=${S(this.placeholder)}
6767
6789
  ?readonly=${this.isInputReadonly}
6768
6790
  ?disabled=${this.disabled}
6769
6791
  @click=${(e) => {
@@ -6772,7 +6794,7 @@ let Ct = class extends K {
6772
6794
  @touchend=${(e) => {
6773
6795
  e.preventDefault(), this.dispatchToggleCalendar(e);
6774
6796
  }}
6775
- @keydown=${(e) => Me.handleInputKeydown(
6797
+ @keydown=${(e) => Pe.handleInputKeydown(
6776
6798
  e,
6777
6799
  (s) => this.dispatchToggleCalendar(s),
6778
6800
  () => Pi.submitFormOrFallback(this.internals, () => {
@@ -6789,7 +6811,7 @@ let Ct = class extends K {
6789
6811
  this.dispatchInput(e), e.stopImmediatePropagation();
6790
6812
  }}
6791
6813
  @focus=${() => {
6792
- this.dispatchFocus(), Re() && this.dispatchToggleCalendar(new Event("focus"));
6814
+ this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6793
6815
  }}
6794
6816
  @blur=${(e) => {
6795
6817
  this.dispatchBlur(e), e.target.value && (this.dispatchManageValidity(e.target), this.dispatchEvent(
@@ -6812,10 +6834,10 @@ let Ct = class extends K {
6812
6834
  ${E(this.inputRefTo)}
6813
6835
  />
6814
6836
  <button
6815
- class="${O(Di.getButtonClasses())}"
6837
+ class="${M(Di.getButtonClasses())}"
6816
6838
  type="button"
6817
6839
  @click=${(e) => this.dispatchToggleCalendar(e)}
6818
- @keydown=${(e) => Me.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6840
+ @keydown=${(e) => Pe.handleButtonKeydown(e, (s) => this.dispatchToggleCalendar(s))}
6819
6841
  ?disabled=${this.disabled}
6820
6842
  ${E(this.btnRef)}
6821
6843
  >
@@ -6826,51 +6848,51 @@ let Ct = class extends K {
6826
6848
  `;
6827
6849
  }
6828
6850
  };
6829
- Bt([
6851
+ Vt([
6830
6852
  o({ type: Array })
6831
- ], Ct.prototype, "value", 2);
6832
- Bt([
6853
+ ], Tt.prototype, "value", 2);
6854
+ Vt([
6833
6855
  o({ type: String })
6834
- ], Ct.prototype, "inputType", 2);
6835
- Bt([
6856
+ ], Tt.prototype, "inputType", 2);
6857
+ Vt([
6836
6858
  o({ type: String })
6837
- ], Ct.prototype, "id", 2);
6838
- Bt([
6859
+ ], Tt.prototype, "id", 2);
6860
+ Vt([
6839
6861
  o({ type: String })
6840
- ], Ct.prototype, "min", 2);
6841
- Bt([
6862
+ ], Tt.prototype, "min", 2);
6863
+ Vt([
6842
6864
  o({ type: String })
6843
- ], Ct.prototype, "max", 2);
6844
- Bt([
6865
+ ], Tt.prototype, "max", 2);
6866
+ Vt([
6845
6867
  o({ type: String })
6846
- ], Ct.prototype, "placeholder", 2);
6847
- Bt([
6868
+ ], Tt.prototype, "placeholder", 2);
6869
+ Vt([
6848
6870
  o({ type: Boolean })
6849
- ], Ct.prototype, "readonly", 2);
6850
- Bt([
6871
+ ], Tt.prototype, "readonly", 2);
6872
+ Vt([
6851
6873
  o({ type: Boolean })
6852
- ], Ct.prototype, "disabled", 2);
6853
- Bt([
6874
+ ], Tt.prototype, "disabled", 2);
6875
+ Vt([
6854
6876
  o({ type: Boolean })
6855
- ], Ct.prototype, "showRangeLabels", 2);
6856
- Bt([
6877
+ ], Tt.prototype, "showRangeLabels", 2);
6878
+ Vt([
6857
6879
  o({ type: Object })
6858
- ], Ct.prototype, "inputClasses", 2);
6859
- Bt([
6880
+ ], Tt.prototype, "inputClasses", 2);
6881
+ Vt([
6860
6882
  o({ type: Object })
6861
- ], Ct.prototype, "internals", 2);
6862
- Bt([
6883
+ ], Tt.prototype, "internals", 2);
6884
+ Vt([
6863
6885
  o({ type: Object })
6864
- ], Ct.prototype, "strings", 2);
6865
- Ct = Bt([
6886
+ ], Tt.prototype, "strings", 2);
6887
+ Tt = Vt([
6866
6888
  j("pkt-datepicker-range")
6867
- ], Ct);
6868
- var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Vt = (i, t, e, s) => {
6889
+ ], Tt);
6890
+ var Ml = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
6869
6891
  for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6870
6892
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6871
6893
  return s && a && Ml(t, e, a), a;
6872
6894
  };
6873
- let Tt = class extends K {
6895
+ let Nt = class extends K {
6874
6896
  constructor() {
6875
6897
  super(...arguments), this.value = [], this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.strings = { calendar: { buttonAltText: "Åpne kalender" } }, this.inputRef = A(), this.btnRef = A();
6876
6898
  }
@@ -6946,12 +6968,12 @@ let Tt = class extends K {
6946
6968
  return u`
6947
6969
  <div class="pkt-input__container">
6948
6970
  <input
6949
- class=${O(this.inputClasses)}
6971
+ class=${M(this.inputClasses)}
6950
6972
  .type=${this.inputType}
6951
6973
  id="${this.id}-input"
6952
- min=${C(this.min)}
6953
- max=${C(this.max)}
6954
- placeholder=${C(this.placeholder)}
6974
+ min=${S(this.min)}
6975
+ max=${S(this.max)}
6976
+ placeholder=${S(this.placeholder)}
6955
6977
  ?readonly=${this.isInputReadonly}
6956
6978
  ?disabled=${this.isInputDisabled}
6957
6979
  @click=${(t) => {
@@ -6967,9 +6989,9 @@ let Tt = class extends K {
6967
6989
  this.dispatchInput(t), t.stopImmediatePropagation();
6968
6990
  }}
6969
6991
  @focus=${() => {
6970
- this.dispatchFocus(), Re() && this.dispatchToggleCalendar(new Event("focus"));
6992
+ this.dispatchFocus(), Be() && this.dispatchToggleCalendar(new Event("focus"));
6971
6993
  }}
6972
- @keydown=${(t) => Me.handleInputKeydown(
6994
+ @keydown=${(t) => Pe.handleInputKeydown(
6973
6995
  t,
6974
6996
  (e) => this.dispatchToggleCalendar(e),
6975
6997
  () => Pi.submitFormOrFallback(this.internals, () => {
@@ -6986,10 +7008,10 @@ let Tt = class extends K {
6986
7008
  ${E(this.inputRef)}
6987
7009
  />
6988
7010
  <button
6989
- class="${O(Di.getButtonClasses())}"
7011
+ class="${M(Di.getButtonClasses())}"
6990
7012
  type="button"
6991
7013
  @click=${(t) => this.dispatchToggleCalendar(t)}
6992
- @keydown=${(t) => Me.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
7014
+ @keydown=${(t) => Pe.handleButtonKeydown(t, (e) => this.dispatchToggleCalendar(e))}
6993
7015
  ?disabled=${this.disabled}
6994
7016
  ${E(this.btnRef)}
6995
7017
  >
@@ -7000,51 +7022,51 @@ let Tt = class extends K {
7000
7022
  `;
7001
7023
  }
7002
7024
  };
7003
- Vt([
7025
+ jt([
7004
7026
  o({ type: Array })
7005
- ], Tt.prototype, "value", 2);
7006
- Vt([
7027
+ ], Nt.prototype, "value", 2);
7028
+ jt([
7007
7029
  o({ type: String })
7008
- ], Tt.prototype, "inputType", 2);
7009
- Vt([
7030
+ ], Nt.prototype, "inputType", 2);
7031
+ jt([
7010
7032
  o({ type: String })
7011
- ], Tt.prototype, "id", 2);
7012
- Vt([
7033
+ ], Nt.prototype, "id", 2);
7034
+ jt([
7013
7035
  o({ type: String })
7014
- ], Tt.prototype, "min", 2);
7015
- Vt([
7036
+ ], Nt.prototype, "min", 2);
7037
+ jt([
7016
7038
  o({ type: String })
7017
- ], Tt.prototype, "max", 2);
7018
- Vt([
7039
+ ], Nt.prototype, "max", 2);
7040
+ jt([
7019
7041
  o({ type: String })
7020
- ], Tt.prototype, "placeholder", 2);
7021
- Vt([
7042
+ ], Nt.prototype, "placeholder", 2);
7043
+ jt([
7022
7044
  o({ type: Boolean })
7023
- ], Tt.prototype, "readonly", 2);
7024
- Vt([
7045
+ ], Nt.prototype, "readonly", 2);
7046
+ jt([
7025
7047
  o({ type: Boolean })
7026
- ], Tt.prototype, "disabled", 2);
7027
- Vt([
7048
+ ], Nt.prototype, "disabled", 2);
7049
+ jt([
7028
7050
  o({ type: Number })
7029
- ], Tt.prototype, "maxlength", 2);
7030
- Vt([
7051
+ ], Nt.prototype, "maxlength", 2);
7052
+ jt([
7031
7053
  o({ type: Object })
7032
- ], Tt.prototype, "inputClasses", 2);
7033
- Vt([
7054
+ ], Nt.prototype, "inputClasses", 2);
7055
+ jt([
7034
7056
  o({ type: Object })
7035
- ], Tt.prototype, "internals", 2);
7036
- Vt([
7057
+ ], Nt.prototype, "internals", 2);
7058
+ jt([
7037
7059
  o({ type: Object })
7038
- ], Tt.prototype, "strings", 2);
7039
- Tt = Vt([
7060
+ ], Nt.prototype, "strings", 2);
7061
+ Nt = jt([
7040
7062
  j("pkt-datepicker-multiple")
7041
- ], Tt);
7042
- var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
7063
+ ], Nt);
7064
+ var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7043
7065
  for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7044
7066
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7045
7067
  return s && a && Dl(t, e, a), a;
7046
7068
  };
7047
- let tt = class extends P {
7069
+ let tt = class extends D {
7048
7070
  /**
7049
7071
  * Housekeeping / lifecycle methods
7050
7072
  */
@@ -7203,7 +7225,7 @@ let tt = class extends P {
7203
7225
  }}
7204
7226
  @handle-date-select=${(i) => {
7205
7227
  var t, e;
7206
- const s = $e(i.detail);
7228
+ const s = _e(i.detail);
7207
7229
  s && this._value[1] !== nt(s) && ((e = (t = this.calRef) == null ? void 0 : t.value) == null || e.handleDateSelect(s));
7208
7230
  }}
7209
7231
  @input-changed=${() => {
@@ -7258,7 +7280,7 @@ let tt = class extends P {
7258
7280
  .latest=${this.max}
7259
7281
  .excludedates=${Array.isArray(this.excludedates) ? this.excludedates : this.excludedates.split(",")}
7260
7282
  .excludeweekdays=${this.excludeweekdays}
7261
- .currentmonth=${this.currentmonth ? ye(this.currentmonth) : null}
7283
+ .currentmonth=${this.currentmonth ? $e(this.currentmonth) : null}
7262
7284
  @date-selected=${(i) => {
7263
7285
  this.value = Ts.processDateSelection(i.detail, this.multiple, this.range), this._value = i.detail, Ts.updateInputValues(
7264
7286
  this.inputRef,
@@ -7317,7 +7339,7 @@ let tt = class extends P {
7317
7339
  id-base=${this.id}
7318
7340
  @date-tag-removed=${(i) => {
7319
7341
  var t;
7320
- const e = this.datepickerPopupRef.value, s = $e(i.detail);
7342
+ const e = this.datepickerPopupRef.value, s = _e(i.detail);
7321
7343
  e && s && typeof e.handleDateSelect == "function" ? e.handleDateSelect(s) : (t = this.calRef.value) == null || t.handleDateSelect(s);
7322
7344
  }}
7323
7345
  ></pkt-date-tags>` : $}
@@ -7341,10 +7363,10 @@ let tt = class extends P {
7341
7363
  var i;
7342
7364
  const t = this.datepickerPopupRef.value;
7343
7365
  if (this.calendarOpen = !0, t && typeof t.show == "function") {
7344
- t.show(), Re() && t.focusOnCurrentDate();
7366
+ t.show(), Be() && t.focusOnCurrentDate();
7345
7367
  return;
7346
7368
  }
7347
- await Qo(20), this.handleCalendarPosition(), Re() && ((i = this.calRef.value) == null || i.focusOnCurrentDate());
7369
+ await Qo(20), this.handleCalendarPosition(), Be() && ((i = this.calRef.value) == null || i.focusOnCurrentDate());
7348
7370
  }
7349
7371
  hideCalendar() {
7350
7372
  const i = this.datepickerPopupRef.value;
@@ -7370,61 +7392,61 @@ let tt = class extends P {
7370
7392
  );
7371
7393
  }
7372
7394
  };
7373
- dt([
7395
+ ct([
7374
7396
  o({ type: String, reflect: !0 })
7375
7397
  ], tt.prototype, "value", 1);
7376
- dt([
7398
+ ct([
7377
7399
  o({ type: Array })
7378
7400
  ], tt.prototype, "_value", 2);
7379
- dt([
7401
+ ct([
7380
7402
  o({ type: String, reflect: !0 })
7381
7403
  ], tt.prototype, "label", 2);
7382
- dt([
7404
+ ct([
7383
7405
  o({ type: String })
7384
7406
  ], tt.prototype, "dateformat", 2);
7385
- dt([
7407
+ ct([
7386
7408
  o({ type: Boolean, reflect: !0 })
7387
7409
  ], tt.prototype, "multiple", 2);
7388
- dt([
7410
+ ct([
7389
7411
  o({ type: Number, reflect: !0 })
7390
7412
  ], tt.prototype, "maxlength", 2);
7391
- dt([
7413
+ ct([
7392
7414
  o({ type: Boolean, reflect: !0 })
7393
7415
  ], tt.prototype, "range", 2);
7394
- dt([
7416
+ ct([
7395
7417
  o({ type: Boolean })
7396
7418
  ], tt.prototype, "showRangeLabels", 2);
7397
- dt([
7419
+ ct([
7398
7420
  o({ type: String, reflect: !0 })
7399
7421
  ], tt.prototype, "min", 2);
7400
- dt([
7422
+ ct([
7401
7423
  o({ type: String, reflect: !0 })
7402
7424
  ], tt.prototype, "max", 2);
7403
- dt([
7425
+ ct([
7404
7426
  o({ type: Boolean })
7405
7427
  ], tt.prototype, "weeknumbers", 2);
7406
- dt([
7428
+ ct([
7407
7429
  o({ type: Boolean, reflect: !0 })
7408
7430
  ], tt.prototype, "withcontrols", 2);
7409
- dt([
7431
+ ct([
7410
7432
  o({ converter: hi.csvToArray })
7411
7433
  ], tt.prototype, "excludedates", 2);
7412
- dt([
7434
+ ct([
7413
7435
  o({ converter: hi.csvToArray })
7414
7436
  ], tt.prototype, "excludeweekdays", 2);
7415
- dt([
7437
+ ct([
7416
7438
  o({ type: String })
7417
7439
  ], tt.prototype, "currentmonth", 2);
7418
- dt([
7440
+ ct([
7419
7441
  o({ type: Boolean, reflect: !0 })
7420
7442
  ], tt.prototype, "calendarOpen", 2);
7421
- dt([
7443
+ ct([
7422
7444
  o({ type: String })
7423
7445
  ], tt.prototype, "timezone", 2);
7424
- dt([
7446
+ ct([
7425
7447
  B()
7426
7448
  ], tt.prototype, "inputClasses", 2);
7427
- tt = dt([
7449
+ tt = ct([
7428
7450
  j("pkt-datepicker")
7429
7451
  ], tt);
7430
7452
  const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
@@ -7435,7 +7457,7 @@ var Ll = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, di = (i, t
7435
7457
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7436
7458
  return s && a && Ll(t, e, a), a;
7437
7459
  };
7438
- let Le = class extends K {
7460
+ let Ve = class extends K {
7439
7461
  constructor() {
7440
7462
  super(), this.defaultSlot = A(), this.href = Ta.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Ta.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7441
7463
  }
@@ -7447,7 +7469,7 @@ let Le = class extends K {
7447
7469
  "pkt-link--external": this.external
7448
7470
  };
7449
7471
  return u`<a
7450
- class=${O(t)}
7472
+ class=${M(t)}
7451
7473
  href=${this.href}
7452
7474
  .target=${this.target}
7453
7475
  .rel=${this.external ? "noopener noreferrer" : $}
@@ -7457,28 +7479,28 @@ let Le = class extends K {
7457
7479
  };
7458
7480
  di([
7459
7481
  o({ type: String, reflect: !0 })
7460
- ], Le.prototype, "href", 2);
7482
+ ], Ve.prototype, "href", 2);
7461
7483
  di([
7462
7484
  o({ type: String, reflect: !0 })
7463
- ], Le.prototype, "iconName", 2);
7485
+ ], Ve.prototype, "iconName", 2);
7464
7486
  di([
7465
7487
  o({ type: String, reflect: !0 })
7466
- ], Le.prototype, "iconPosition", 2);
7488
+ ], Ve.prototype, "iconPosition", 2);
7467
7489
  di([
7468
7490
  o({ type: Boolean, reflect: !0 })
7469
- ], Le.prototype, "external", 2);
7491
+ ], Ve.prototype, "external", 2);
7470
7492
  di([
7471
7493
  o({ type: String, reflect: !0 })
7472
- ], Le.prototype, "target", 2);
7473
- Le = di([
7494
+ ], Ve.prototype, "target", 2);
7495
+ Ve = di([
7474
7496
  j("pkt-link")
7475
- ], Le);
7476
- var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
7497
+ ], Ve);
7498
+ var Vl = Object.defineProperty, jl = Object.getOwnPropertyDescriptor, ze = (i, t, e, s) => {
7477
7499
  for (var a = s > 1 ? void 0 : s ? jl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7478
7500
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7479
7501
  return s && a && Vl(t, e, a), a;
7480
7502
  };
7481
- let _e = class extends K {
7503
+ let we = class extends K {
7482
7504
  constructor() {
7483
7505
  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);
7484
7506
  }
@@ -7489,7 +7511,7 @@ let _e = class extends K {
7489
7511
  href=${this.href}
7490
7512
  class=${t}
7491
7513
  target=${this.openInNewTab ? "_blank" : "_self"}
7492
- rel=${C(this.openInNewTab ? "noopener noreferrer" : void 0)}
7514
+ rel=${S(this.openInNewTab ? "noopener noreferrer" : void 0)}
7493
7515
  >
7494
7516
  ${this.iconName && u`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
7495
7517
  ${this.title && u`<div class=${e}>${this.title}</div>`}
@@ -7499,33 +7521,33 @@ let _e = class extends K {
7499
7521
  `;
7500
7522
  }
7501
7523
  };
7502
- qe([
7524
+ ze([
7503
7525
  o({ type: String, reflect: !0 })
7504
- ], _e.prototype, "title", 2);
7505
- qe([
7526
+ ], we.prototype, "title", 2);
7527
+ ze([
7506
7528
  o({ type: String, reflect: !0 })
7507
- ], _e.prototype, "href", 2);
7508
- qe([
7529
+ ], we.prototype, "href", 2);
7530
+ ze([
7509
7531
  o({ type: String, reflect: !0 })
7510
- ], _e.prototype, "iconName", 2);
7511
- qe([
7532
+ ], we.prototype, "iconName", 2);
7533
+ ze([
7512
7534
  o({ type: Boolean, reflect: !0 })
7513
- ], _e.prototype, "external", 2);
7514
- qe([
7535
+ ], we.prototype, "external", 2);
7536
+ ze([
7515
7537
  o({ type: Boolean, reflect: !0 })
7516
- ], _e.prototype, "openInNewTab", 2);
7517
- qe([
7538
+ ], we.prototype, "openInNewTab", 2);
7539
+ ze([
7518
7540
  o({ type: String, reflect: !0 })
7519
- ], _e.prototype, "skin", 2);
7520
- _e = qe([
7541
+ ], we.prototype, "skin", 2);
7542
+ we = ze([
7521
7543
  j("pkt-linkcard")
7522
- ], _e);
7544
+ ], we);
7523
7545
  var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t, e, s) => {
7524
7546
  for (var a = s > 1 ? void 0 : s ? Ul(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7525
7547
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7526
7548
  return s && a && Fl(t, e, a), a;
7527
7549
  };
7528
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
7550
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
7529
7551
  let Yt = class extends K {
7530
7552
  constructor() {
7531
7553
  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);
@@ -7537,11 +7559,11 @@ let Yt = class extends K {
7537
7559
  t.has("delay") && this.setupLoader();
7538
7560
  }
7539
7561
  render() {
7540
- const t = O({
7562
+ const t = M({
7541
7563
  "pkt-loader": !0,
7542
7564
  [`pkt-loader--${this.inline ? "inline" : "box"}`]: !0,
7543
7565
  [`pkt-loader--${this.size}`]: !0
7544
- }), e = O({
7566
+ }), e = M({
7545
7567
  "pkt-contents": !0,
7546
7568
  "pkt-hide": this.isLoading
7547
7569
  });
@@ -7613,7 +7635,7 @@ var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, ci = (i, t
7613
7635
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7614
7636
  return s && a && ql(t, e, a), a;
7615
7637
  };
7616
- let Be = class extends K {
7638
+ let je = class extends K {
7617
7639
  constructor() {
7618
7640
  super(), this.defaultSlot = A(), this.closable = Ns.props.closable.default, this.compact = Ns.props.compact.default, this.title = "", this.skin = Ns.props.skin.default, this._isClosed = !1, this.close = (i) => {
7619
7641
  this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: i }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: i }, bubbles: !0 }));
@@ -7632,7 +7654,7 @@ let Be = class extends K {
7632
7654
  "pkt-messagebox--closable": this.closable,
7633
7655
  "pkt-hide": this._isClosed
7634
7656
  };
7635
- return u`<div class=${O(i)}>
7657
+ return u`<div class=${M(i)}>
7636
7658
  ${this.closable ? u`<div class="pkt-messagebox__close">
7637
7659
  <button
7638
7660
  @click=${this.close}
@@ -7649,22 +7671,22 @@ let Be = class extends K {
7649
7671
  };
7650
7672
  ci([
7651
7673
  o({ type: Boolean, reflect: !0 })
7652
- ], Be.prototype, "closable", 2);
7674
+ ], je.prototype, "closable", 2);
7653
7675
  ci([
7654
7676
  o({ type: Boolean, reflect: !0 })
7655
- ], Be.prototype, "compact", 2);
7677
+ ], je.prototype, "compact", 2);
7656
7678
  ci([
7657
7679
  o({ type: String, reflect: !0 })
7658
- ], Be.prototype, "title", 2);
7680
+ ], je.prototype, "title", 2);
7659
7681
  ci([
7660
7682
  o({ type: String, reflect: !0 })
7661
- ], Be.prototype, "skin", 2);
7683
+ ], je.prototype, "skin", 2);
7662
7684
  ci([
7663
7685
  B()
7664
- ], Be.prototype, "_isClosed", 2);
7665
- Be = ci([
7686
+ ], je.prototype, "_isClosed", 2);
7687
+ je = ci([
7666
7688
  j("pkt-messagebox")
7667
- ], Be);
7689
+ ], je);
7668
7690
  const Wl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, As = {
7669
7691
  props: Wl
7670
7692
  };
@@ -7673,7 +7695,7 @@ var Kl = Object.defineProperty, Gl = Object.getOwnPropertyDescriptor, Xt = (i, t
7673
7695
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7674
7696
  return s && a && Kl(t, e, a), a;
7675
7697
  };
7676
- let It = class extends K {
7698
+ let Rt = class extends K {
7677
7699
  constructor() {
7678
7700
  super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = As.props.hideCloseButton.default, this.closeOnBackdropClick = As.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = As.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = A(), this.dialogRef = A(), this._isOpen = !1, this.close = (t, e = !1) => {
7679
7701
  var s;
@@ -7740,7 +7762,7 @@ let It = class extends K {
7740
7762
  };
7741
7763
  return u`
7742
7764
  <dialog
7743
- class=${O(t)}
7765
+ class=${M(t)}
7744
7766
  ${E(this.dialogRef)}
7745
7767
  aria-labelledby="pkt-modal__headingText"
7746
7768
  aria-describedby="pkt-modal__content"
@@ -7749,10 +7771,10 @@ let It = class extends K {
7749
7771
  <div class="pkt-modal__wrapper">
7750
7772
  ${this.headingText || !this.hideCloseButton ? u`<div class="pkt-modal__header">
7751
7773
  <div class="pkt-modal__header-background"></div>
7752
- ${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${O(e)}>
7774
+ ${this.headingText ? u`<h1 id="pkt-modal__headingText" class=${M(e)}>
7753
7775
  ${this.headingText}
7754
7776
  </h1>` : u`<div class="pkt-modal__headingText"></div>`}
7755
- ${this.hideCloseButton ? u`<div class="pkt-modal__noCloseButton"></div>` : u`<div class="${O(n)}">
7777
+ ${this.hideCloseButton ? u`<div class="pkt-modal__noCloseButton"></div>` : u`<div class="${M(n)}">
7756
7778
  <pkt-button
7757
7779
  @click=${(r) => this.close(r)}
7758
7780
  aria-label="close"
@@ -7768,7 +7790,7 @@ let It = class extends K {
7768
7790
  <div class="pkt-modal__container">
7769
7791
  <div
7770
7792
  id="pkt-modal__content"
7771
- class=${O(s)}
7793
+ class=${M(s)}
7772
7794
  ${E(this.defaultSlot)}
7773
7795
  ></div>
7774
7796
  </div>
@@ -7779,43 +7801,43 @@ let It = class extends K {
7779
7801
  };
7780
7802
  Xt([
7781
7803
  o({ type: String })
7782
- ], It.prototype, "headingText", 2);
7804
+ ], Rt.prototype, "headingText", 2);
7783
7805
  Xt([
7784
7806
  o({ type: Boolean })
7785
- ], It.prototype, "removePadding", 2);
7807
+ ], Rt.prototype, "removePadding", 2);
7786
7808
  Xt([
7787
7809
  o({ type: Boolean })
7788
- ], It.prototype, "hideCloseButton", 2);
7810
+ ], Rt.prototype, "hideCloseButton", 2);
7789
7811
  Xt([
7790
7812
  o({ type: Boolean })
7791
- ], It.prototype, "closeOnBackdropClick", 2);
7813
+ ], Rt.prototype, "closeOnBackdropClick", 2);
7792
7814
  Xt([
7793
7815
  o({ type: String })
7794
- ], It.prototype, "closeButtonSkin", 2);
7816
+ ], Rt.prototype, "closeButtonSkin", 2);
7795
7817
  Xt([
7796
7818
  o({ type: String })
7797
- ], It.prototype, "size", 2);
7819
+ ], Rt.prototype, "size", 2);
7798
7820
  Xt([
7799
7821
  o({ type: String })
7800
- ], It.prototype, "variant", 2);
7822
+ ], Rt.prototype, "variant", 2);
7801
7823
  Xt([
7802
7824
  o({ type: String })
7803
- ], It.prototype, "drawerPosition", 2);
7825
+ ], Rt.prototype, "drawerPosition", 2);
7804
7826
  Xt([
7805
7827
  o({ type: Boolean })
7806
- ], It.prototype, "transparentBackdrop", 2);
7828
+ ], Rt.prototype, "transparentBackdrop", 2);
7807
7829
  Xt([
7808
7830
  B()
7809
- ], It.prototype, "_isOpen", 2);
7810
- It = Xt([
7831
+ ], Rt.prototype, "_isOpen", 2);
7832
+ Rt = Xt([
7811
7833
  j("pkt-modal")
7812
- ], It);
7834
+ ], Rt);
7813
7835
  /**
7814
7836
  * @license
7815
7837
  * Copyright 2018 Google LLC
7816
7838
  * SPDX-License-Identifier: BSD-3-Clause
7817
7839
  */
7818
- const nn = "important", Yl = " !" + nn, Zl = Fe(class extends li {
7840
+ const nn = "important", Yl = " !" + nn, Zl = Ue(class extends li {
7819
7841
  constructor(i) {
7820
7842
  var t;
7821
7843
  if (super(i), i.type !== zt.ATTRIBUTE || i.name !== "style" || ((t = i.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
@@ -7838,10 +7860,10 @@ const nn = "important", Yl = " !" + nn, Zl = Fe(class extends li {
7838
7860
  s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? nn : "") : e[s] = a;
7839
7861
  }
7840
7862
  }
7841
- return xt;
7863
+ return St;
7842
7864
  }
7843
7865
  });
7844
- var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7866
+ var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, pt = (i, t, e, s) => {
7845
7867
  for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7846
7868
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7847
7869
  return s && a && Jl(t, e, a), a;
@@ -7857,16 +7879,16 @@ let et = class extends K {
7857
7879
  super.updated(i), i.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), i.has("id") && this.id && (this.progressBarId = this.id), (i.has("statusType") || i.has("id") || i.has("ariaLabelledby")) && (this.progressbarId = this.id || be(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (i.has("ariaValueText") || i.has("valueCurrent") || i.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
7858
7880
  }
7859
7881
  render() {
7860
- const i = this.statusType !== "none", t = this.valueMax - this.valueMin, e = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(e) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), a = `${this.valueCurrent} av ${t}`, n = O({
7882
+ const i = this.statusType !== "none", t = this.valueMax - this.valueMin, e = this.valueCurrent / t * 100, s = this.statusType === "fraction" ? Math.round(e) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), a = `${this.valueCurrent} av ${t}`, n = M({
7861
7883
  "pkt-progressbar__bar": !0,
7862
7884
  [`pkt-progressbar__bar--${this.skin}`]: !!this.skin
7863
- }), r = O({
7885
+ }), r = M({
7864
7886
  "pkt-progressbar__title": !0,
7865
7887
  "pkt-progressbar__title-center": this.titlePosition === "center"
7866
- }), l = O({
7888
+ }), l = M({
7867
7889
  "pkt-progressbar__status": !0,
7868
7890
  "pkt-progressbar__status--center": this.statusPlacement === "center"
7869
- }), d = O({
7891
+ }), d = M({
7870
7892
  "pkt-progressbar__status-placement--following": this.statusPlacement === "following",
7871
7893
  "pkt-progressbar__status-placement--center": this.statusPlacement === "center",
7872
7894
  "pkt-progressbar__status-placement--left": this.statusPlacement === "left"
@@ -7903,69 +7925,69 @@ let et = class extends K {
7903
7925
  t == null || t === "" ? this.removeAttribute(i) : this.setAttribute(i, String(t));
7904
7926
  }
7905
7927
  };
7906
- ct([
7928
+ pt([
7907
7929
  o({ type: String })
7908
7930
  ], et.prototype, "ariaLabel", 2);
7909
- ct([
7931
+ pt([
7910
7932
  o({ type: String, reflect: !0 })
7911
7933
  ], et.prototype, "ariaLabelledby", 2);
7912
- ct([
7934
+ pt([
7913
7935
  o({ type: String, reflect: !0 })
7914
7936
  ], et.prototype, "ariaValueText", 2);
7915
- ct([
7937
+ pt([
7916
7938
  o({ type: String })
7917
7939
  ], et.prototype, "ariaLive", 2);
7918
- ct([
7940
+ pt([
7919
7941
  o({ type: String, reflect: !0 })
7920
7942
  ], et.prototype, "id", 2);
7921
- ct([
7943
+ pt([
7922
7944
  o({ type: String })
7923
7945
  ], et.prototype, "role", 2);
7924
- ct([
7946
+ pt([
7925
7947
  o({ type: String })
7926
7948
  ], et.prototype, "skin", 2);
7927
- ct([
7949
+ pt([
7928
7950
  o({ type: String })
7929
7951
  ], et.prototype, "statusPlacement", 2);
7930
- ct([
7952
+ pt([
7931
7953
  o({ type: String })
7932
7954
  ], et.prototype, "statusType", 2);
7933
- ct([
7955
+ pt([
7934
7956
  o({ type: String, reflect: !0 })
7935
7957
  ], et.prototype, "title", 2);
7936
- ct([
7958
+ pt([
7937
7959
  o({ type: String })
7938
7960
  ], et.prototype, "titlePosition", 2);
7939
- ct([
7961
+ pt([
7940
7962
  o({ type: Number, reflect: !0 })
7941
7963
  ], et.prototype, "valueCurrent", 2);
7942
- ct([
7964
+ pt([
7943
7965
  o({ type: Number })
7944
7966
  ], et.prototype, "valueMax", 2);
7945
- ct([
7967
+ pt([
7946
7968
  o({ type: Number })
7947
7969
  ], et.prototype, "valueMin", 2);
7948
- ct([
7970
+ pt([
7949
7971
  B()
7950
7972
  ], et.prototype, "labelWidth", 2);
7951
- ct([
7973
+ pt([
7952
7974
  B()
7953
7975
  ], et.prototype, "progressbarId", 2);
7954
- ct([
7976
+ pt([
7955
7977
  B()
7956
7978
  ], et.prototype, "computedAriaLabelledby", 2);
7957
- ct([
7979
+ pt([
7958
7980
  B()
7959
7981
  ], et.prototype, "computedAriaValueText", 2);
7960
- et = ct([
7982
+ et = pt([
7961
7983
  j("pkt-progressbar")
7962
7984
  ], et);
7963
- var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
7985
+ var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
7964
7986
  for (var a = s > 1 ? void 0 : s ? th(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7965
7987
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7966
7988
  return s && a && Ql(t, e, a), a;
7967
7989
  };
7968
- let Nt = class extends P {
7990
+ let At = class extends D {
7969
7991
  constructor() {
7970
7992
  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;
7971
7993
  }
@@ -7976,14 +7998,14 @@ let Nt = class extends P {
7976
7998
  i === "defaultChecked" && (this._checked = this.defaultChecked), i === "checked" && (this._checked = this.checked === "" || this.checked === "true" || this.checked === !0), super.attributeChangedCallback(i, t, e);
7977
7999
  }
7978
8000
  render() {
7979
- const i = O({
8001
+ const i = M({
7980
8002
  "pkt-input-check__input": !0,
7981
8003
  "pkt-input-check__input--tile": this.hasTile,
7982
8004
  "pkt-input-check__input--tile-disabled": this.disabled && this.hasTile
7983
- }), t = O({
8005
+ }), t = M({
7984
8006
  "pkt-input-check__input-checkbox": !0,
7985
8007
  "pkt-input-check__input-checkbox--error": this.hasError
7986
- }), e = O({
8008
+ }), e = M({
7987
8009
  "pkt-input-check__input-label": !0,
7988
8010
  "pkt-input-check__input-label--disabled": this.disabled,
7989
8011
  "pkt-sr-only": this.hideLabel
@@ -8024,45 +8046,45 @@ let Nt = class extends P {
8024
8046
  i && i.preventDefault(), i && i.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this._checked = this.inputRef.value.matches(":checked"), this.valueChecked(this._checked));
8025
8047
  }
8026
8048
  };
8027
- jt([
8049
+ Ft([
8028
8050
  o({ type: String, reflect: !0 })
8029
- ], Nt.prototype, "value", 2);
8030
- jt([
8051
+ ], At.prototype, "value", 2);
8052
+ Ft([
8031
8053
  o({ type: String })
8032
- ], Nt.prototype, "checkHelptext", 2);
8033
- jt([
8054
+ ], At.prototype, "checkHelptext", 2);
8055
+ Ft([
8034
8056
  o({ type: Boolean })
8035
- ], Nt.prototype, "defaultChecked", 2);
8036
- jt([
8057
+ ], At.prototype, "defaultChecked", 2);
8058
+ Ft([
8037
8059
  o({ type: Boolean })
8038
- ], Nt.prototype, "hasTile", 2);
8039
- jt([
8060
+ ], At.prototype, "hasTile", 2);
8061
+ Ft([
8040
8062
  o({ type: Boolean, reflect: !0 })
8041
- ], Nt.prototype, "checked", 2);
8042
- jt([
8063
+ ], At.prototype, "checked", 2);
8064
+ Ft([
8043
8065
  o({ type: String, reflect: !0 })
8044
- ], Nt.prototype, "type", 2);
8045
- jt([
8066
+ ], At.prototype, "type", 2);
8067
+ Ft([
8046
8068
  o({ type: String })
8047
- ], Nt.prototype, "tagText", 2);
8048
- jt([
8069
+ ], At.prototype, "tagText", 2);
8070
+ Ft([
8049
8071
  o({ type: Boolean })
8050
- ], Nt.prototype, "optionalTag", 2);
8051
- jt([
8072
+ ], At.prototype, "optionalTag", 2);
8073
+ Ft([
8052
8074
  o({ type: String })
8053
- ], Nt.prototype, "optionalText", 2);
8054
- jt([
8075
+ ], At.prototype, "optionalText", 2);
8076
+ Ft([
8055
8077
  o({ type: Boolean })
8056
- ], Nt.prototype, "requiredTag", 2);
8057
- jt([
8078
+ ], At.prototype, "requiredTag", 2);
8079
+ Ft([
8058
8080
  o({ type: String })
8059
- ], Nt.prototype, "requiredText", 2);
8060
- jt([
8081
+ ], At.prototype, "requiredText", 2);
8082
+ Ft([
8061
8083
  B()
8062
- ], Nt.prototype, "_checked", 2);
8063
- Nt = jt([
8084
+ ], At.prototype, "_checked", 2);
8085
+ At = Ft([
8064
8086
  j("pkt-radiobutton")
8065
- ], Nt);
8087
+ ], At);
8066
8088
  /**
8067
8089
  * @license
8068
8090
  * Copyright 2021 Google LLC
@@ -8228,7 +8250,7 @@ var nh = Object.defineProperty, rh = Object.getOwnPropertyDescriptor, pi = (i, t
8228
8250
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8229
8251
  return s && a && nh(t, e, a), a;
8230
8252
  };
8231
- let Ve = class extends K {
8253
+ let Fe = class extends K {
8232
8254
  constructor() {
8233
8255
  super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = A(), this.context = {
8234
8256
  useArrowNav: this.useArrowNav,
@@ -8280,23 +8302,23 @@ let Ve = class extends K {
8280
8302
  };
8281
8303
  pi([
8282
8304
  o({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
8283
- ], Ve.prototype, "arrowNav", 2);
8305
+ ], Fe.prototype, "arrowNav", 2);
8284
8306
  pi([
8285
8307
  o({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
8286
- ], Ve.prototype, "disableArrowNav", 2);
8308
+ ], Fe.prototype, "disableArrowNav", 2);
8287
8309
  pi([
8288
8310
  B()
8289
- ], Ve.prototype, "tabRefs", 2);
8311
+ ], Fe.prototype, "tabRefs", 2);
8290
8312
  pi([
8291
8313
  B()
8292
- ], Ve.prototype, "tabCount", 2);
8314
+ ], Fe.prototype, "tabCount", 2);
8293
8315
  pi([
8294
8316
  sh({ context: on }),
8295
8317
  B()
8296
- ], Ve.prototype, "context", 2);
8297
- Ve = pi([
8318
+ ], Fe.prototype, "context", 2);
8319
+ Fe = pi([
8298
8320
  j("pkt-tabs")
8299
- ], Ve);
8321
+ ], Fe);
8300
8322
  var oh = Object.defineProperty, lh = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
8301
8323
  for (var a = s > 1 ? void 0 : s ? lh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8302
8324
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -8329,10 +8351,10 @@ let ie = class extends K {
8329
8351
  ${E(this.elementRef)}
8330
8352
  href=${this.href}
8331
8353
  class="pkt-tabs__link ${e}"
8332
- role=${C(s)}
8333
- aria-selected=${C(a)}
8334
- aria-controls=${C(this.controls || void 0)}
8335
- tabindex=${C(n)}
8354
+ role=${S(s)}
8355
+ aria-selected=${S(a)}
8356
+ aria-controls=${S(this.controls || void 0)}
8357
+ tabindex=${S(n)}
8336
8358
  @click=${this.handleClick}
8337
8359
  @keyup=${this.handleKeyUp}
8338
8360
  >
@@ -8343,10 +8365,10 @@ let ie = class extends K {
8343
8365
  ${E(this.elementRef)}
8344
8366
  type="button"
8345
8367
  class="pkt-tabs__button pkt-link-button ${e}"
8346
- role=${C(s)}
8347
- aria-selected=${C(a)}
8348
- aria-controls=${C(this.controls || void 0)}
8349
- tabindex=${C(n)}
8368
+ role=${S(s)}
8369
+ aria-selected=${S(a)}
8370
+ aria-controls=${S(this.controls || void 0)}
8371
+ tabindex=${S(n)}
8350
8372
  @click=${this.handleClick}
8351
8373
  @keyup=${this.handleKeyUp}
8352
8374
  >
@@ -8388,7 +8410,7 @@ ie = ue([
8388
8410
  * Copyright 2020 Google LLC
8389
8411
  * SPDX-License-Identifier: BSD-3-Clause
8390
8412
  */
8391
- const hh = Fe(class extends li {
8413
+ const hh = Ue(class extends li {
8392
8414
  constructor(i) {
8393
8415
  if (super(i), i.type !== zt.PROPERTY && i.type !== zt.ATTRIBUTE && i.type !== zt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
8394
8416
  if (!Ha(i)) throw Error("`live` bindings can only contain a single expression");
@@ -8397,13 +8419,13 @@ const hh = Fe(class extends li {
8397
8419
  return i;
8398
8420
  }
8399
8421
  update(i, [t]) {
8400
- if (t === xt || t === $) return t;
8422
+ if (t === St || t === $) return t;
8401
8423
  const e = i.element, s = i.name;
8402
8424
  if (i.type === zt.PROPERTY) {
8403
- if (t === e[s]) return xt;
8425
+ if (t === e[s]) return St;
8404
8426
  } else if (i.type === zt.BOOLEAN_ATTRIBUTE) {
8405
- if (!!t === e.hasAttribute(s)) return xt;
8406
- } else if (i.type === zt.ATTRIBUTE && e.getAttribute(s) === t + "") return xt;
8427
+ if (!!t === e.hasAttribute(s)) return St;
8428
+ } else if (i.type === zt.ATTRIBUTE && e.getAttribute(s) === t + "") return St;
8407
8429
  return qa(i), t;
8408
8430
  }
8409
8431
  });
@@ -8412,7 +8434,7 @@ var dh = Object.defineProperty, ch = Object.getOwnPropertyDescriptor, ji = (i, t
8412
8434
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8413
8435
  return s && a && dh(t, e, a), a;
8414
8436
  };
8415
- let ni = class extends P {
8437
+ let ni = class extends D {
8416
8438
  constructor() {
8417
8439
  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);
8418
8440
  }
@@ -8424,7 +8446,7 @@ let ni = class extends P {
8424
8446
  super.updated(t), t.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, t.get("value"))), t.has("id") && !this.name && this.id && (this.name = this.id);
8425
8447
  }
8426
8448
  render() {
8427
- const t = O({
8449
+ const t = M({
8428
8450
  "pkt-input": !0,
8429
8451
  "pkt-input--fullwidth": this.fullwidth,
8430
8452
  "pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
@@ -8458,10 +8480,10 @@ let ni = class extends P {
8458
8480
  class=${t}
8459
8481
  id=${this.id + "-input"}
8460
8482
  name=${(this.name || this.id) + "-input"}
8461
- placeholder=${C(this.placeholder)}
8483
+ placeholder=${S(this.placeholder)}
8462
8484
  .value=${hh(this.value)}
8463
- minlength=${C(this.minlength)}
8464
- maxlength=${C(this.maxlength)}
8485
+ minlength=${S(this.minlength)}
8486
+ maxlength=${S(this.maxlength)}
8465
8487
  ?readonly=${this.readonly}
8466
8488
  autocomplete=${this.autocomplete}
8467
8489
  aria-labelledby=${e}
@@ -8505,7 +8527,7 @@ var ph = Object.defineProperty, uh = Object.getOwnPropertyDescriptor, re = (i, t
8505
8527
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8506
8528
  return s && a && ph(t, e, a), a;
8507
8529
  };
8508
- let Zt = class extends P {
8530
+ let Zt = class extends D {
8509
8531
  constructor() {
8510
8532
  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);
8511
8533
  }
@@ -8517,7 +8539,7 @@ let Zt = class extends P {
8517
8539
  super.updated(t), t.has("value") && (this.counterCurrent = ((e = this.value) == null ? void 0 : e.length) || 0, this.valueChanged(this.value, t.get("value"))), t.has("id") && !this.name && this.id && (this.name = this.id);
8518
8540
  }
8519
8541
  render() {
8520
- const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e = O({
8542
+ const t = this.type === "search" && !this.iconNameRight && !this.omitSearchIcon, e = M({
8521
8543
  "pkt-input": !0,
8522
8544
  "pkt-input--fullwidth": this.fullwidth,
8523
8545
  "pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
@@ -8556,14 +8578,14 @@ let Zt = class extends P {
8556
8578
  type=${this.type}
8557
8579
  name=${(this.name || this.id) + "-input"}
8558
8580
  id=${this.id + "-input"}
8559
- placeholder=${C(this.placeholder)}
8581
+ placeholder=${S(this.placeholder)}
8560
8582
  aria-labelledby=${s}
8561
8583
  autocomplete=${this.autocomplete || "off"}
8562
- minlength=${C(this.minlength || void 0)}
8563
- maxlength=${C(this.maxlength || void 0)}
8564
- min=${C(this.min || void 0)}
8565
- max=${C(this.max || void 0)}
8566
- step=${C(this.step || void 0)}
8584
+ minlength=${S(this.minlength || void 0)}
8585
+ maxlength=${S(this.maxlength || void 0)}
8586
+ min=${S(this.min || void 0)}
8587
+ max=${S(this.max || void 0)}
8588
+ step=${S(this.step || void 0)}
8567
8589
  ?readonly=${this.readonly}
8568
8590
  size=${this.size || $}
8569
8591
  .value=${this.value}
@@ -8643,7 +8665,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t
8643
8665
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8644
8666
  return s && a && mh(t, e, a), a;
8645
8667
  };
8646
- let Ii = class extends P {
8668
+ let Ii = class extends D {
8647
8669
  constructor() {
8648
8670
  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;
8649
8671
  }
@@ -8734,23 +8756,23 @@ let Ii = class extends P {
8734
8756
  ?optionalTag=${this.optionalTag}
8735
8757
  ?requiredTag=${this.requiredTag}
8736
8758
  useWrapper=${this.useWrapper}
8737
- ariaDescribedBy=${C(this.ariaDescribedBy)}
8759
+ ariaDescribedBy=${S(this.ariaDescribedBy)}
8738
8760
  class="pkt-select"
8739
- errorMessage=${C(this.errorMessage)}
8761
+ errorMessage=${S(this.errorMessage)}
8740
8762
  forId=${this.id + "-input"}
8741
- helptext=${C(this.helptext)}
8742
- helptextDropdown=${C(this.helptextDropdown)}
8743
- helptextDropdownButton=${C(this.helptextDropdownButton)}
8744
- label=${C(this.label)}
8745
- optionalText=${C(this.optionalText)}
8746
- requiredText=${C(this.requiredText)}
8747
- tagText=${C(this.tagText)}
8763
+ helptext=${S(this.helptext)}
8764
+ helptextDropdown=${S(this.helptextDropdown)}
8765
+ helptextDropdownButton=${S(this.helptextDropdownButton)}
8766
+ label=${S(this.label)}
8767
+ optionalText=${S(this.optionalText)}
8768
+ requiredText=${S(this.requiredText)}
8769
+ tagText=${S(this.tagText)}
8748
8770
  >
8749
8771
  <select
8750
8772
  class=${i}
8751
8773
  aria-invalid=${this.hasError}
8752
8774
  aria-errormessage=${`${this.id}-error`}
8753
- aria-labelledby=${C(this.ariaLabelledby)}
8775
+ aria-labelledby=${S(this.ariaLabelledby)}
8754
8776
  ?disabled=${this.disabled}
8755
8777
  id=${this.id + "-input"}
8756
8778
  name=${(this.name || this.id) + "-input"}
@@ -8827,7 +8849,7 @@ let ri = class extends K {
8827
8849
  "pkt-darkmode": this.darkmode
8828
8850
  };
8829
8851
  return u`
8830
- <div class="${O(i)}">
8852
+ <div class="${M(i)}">
8831
8853
  <h1 class="pkt-txt-28">${this.string}</h1>
8832
8854
 
8833
8855
  <h2 class="pkt-txt-22">Innhold fra attributter og funksjoner</h2>
@@ -8847,7 +8869,7 @@ let ri = class extends K {
8847
8869
 
8848
8870
  <h2 class="pkt-txt-22">Knapp som emitter en event</h2>
8849
8871
  <button type="button" @click=${() => this.handleGreeting()}>
8850
- Si ${_t.example.hi}
8872
+ Si ${wt.example.hi}
8851
8873
  </button>
8852
8874
  </div>
8853
8875
  `;
@@ -8893,8 +8915,8 @@ ri = Fi([
8893
8915
  ], ri);
8894
8916
  const L = Jt({
8895
8917
  tagName: "pkt-icon",
8896
- elementClass: De,
8897
- react: mt,
8918
+ elementClass: Re,
8919
+ react: gt,
8898
8920
  displayName: "PktIcon",
8899
8921
  events: {}
8900
8922
  }), bh = Z(
@@ -8911,18 +8933,18 @@ const L = Jt({
8911
8933
  onClick: p,
8912
8934
  onToggle: m
8913
8935
  }, f) => {
8914
- const [y, b] = je(i), { name: k } = kn(), w = l || k, S = n !== void 0 ? n : y;
8915
- Qe(() => {
8936
+ const [y, b] = ke(i), { name: k } = kn(), w = l || k, C = n !== void 0 ? n : y;
8937
+ De(() => {
8916
8938
  n === void 0 && b(i);
8917
8939
  }, [i, n]);
8918
- const M = (T) => {
8919
- const G = T.currentTarget.open;
8920
- n === void 0 && b(G), m == null || m(T);
8921
- }, N = (T) => {
8940
+ const O = (N) => {
8941
+ const G = N.currentTarget.open;
8942
+ n === void 0 && b(G), m == null || m(N);
8943
+ }, T = (N) => {
8922
8944
  setTimeout(() => {
8923
- p == null || p(T);
8945
+ p == null || p(N);
8924
8946
  }, 0);
8925
- }, I = [
8947
+ }, P = [
8926
8948
  "pkt-accordion-item",
8927
8949
  a && "pkt-accordion-item--compact",
8928
8950
  s && `pkt-accordion-item--${s}`,
@@ -8932,12 +8954,12 @@ const L = Jt({
8932
8954
  "details",
8933
8955
  {
8934
8956
  ref: f,
8935
- className: I,
8957
+ className: P,
8936
8958
  id: t,
8937
- open: S,
8938
- onClick: N,
8959
+ open: C,
8960
+ onClick: T,
8939
8961
  name: w,
8940
- onToggle: M,
8962
+ onToggle: O,
8941
8963
  children: [
8942
8964
  /* @__PURE__ */ x("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
8943
8965
  e,
@@ -8993,7 +9015,7 @@ function yh() {
8993
9015
  })(Es)), Es.exports;
8994
9016
  }
8995
9017
  var $h = yh();
8996
- const ht = /* @__PURE__ */ kh($h), ln = ({
9018
+ const dt = /* @__PURE__ */ kh($h), ln = ({
8997
9019
  children: i,
8998
9020
  closeAlert: t,
8999
9021
  compact: e,
@@ -9006,7 +9028,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
9006
9028
  className: p,
9007
9029
  ...m
9008
9030
  }) => {
9009
- const [f, y] = je(!1), b = {
9031
+ const [f, y] = ke(!1), b = {
9010
9032
  "pkt-alert": !0,
9011
9033
  "pkt-alert--compact": e,
9012
9034
  [`pkt-alert--${d}`]: d,
@@ -9018,7 +9040,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
9018
9040
  }, w = Ls(() => {
9019
9041
  y(!0), m.onClose && m.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9020
9042
  }, [m.onClose, y]);
9021
- return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: ht(b, p), children: /* @__PURE__ */ x("div", { className: ht(k), children: [
9043
+ return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: dt(b, p), children: /* @__PURE__ */ x("div", { className: dt(k), children: [
9022
9044
  /* @__PURE__ */ h(
9023
9045
  L,
9024
9046
  {
@@ -9053,7 +9075,7 @@ ln.displayName = "PktAlert";
9053
9075
  const _h = Jt({
9054
9076
  tagName: "pkt-backlink",
9055
9077
  elementClass: si,
9056
- react: mt,
9078
+ react: gt,
9057
9079
  displayName: "PktBackLink"
9058
9080
  });
9059
9081
  _h.displayName = "PktBackLink";
@@ -9094,53 +9116,62 @@ const Gd = Z(
9094
9116
  ] });
9095
9117
  }
9096
9118
  );
9097
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
9119
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
9098
9120
  const oi = Z(
9099
9121
  ({
9100
9122
  children: i,
9101
9123
  className: t,
9102
9124
  iconName: e = "user",
9103
9125
  secondIconName: s = "user",
9104
- size: a = "medium",
9105
- fullWidth: n = !1,
9106
- fullWidthOnMobile: r = !1,
9107
- skin: l = "primary",
9108
- type: d = "button",
9109
- variant: p = "label-only",
9110
- state: m,
9111
- color: f,
9112
- isLoading: y = void 0,
9113
- disabled: b = void 0,
9114
- loadingAnimationPath: k = window.pktAnimationPath,
9115
- ...w
9116
- }, S) => {
9117
- const M = [
9126
+ iconPath: a,
9127
+ secondIconPath: n,
9128
+ size: r = "medium",
9129
+ fullWidth: l = !1,
9130
+ fullWidthOnMobile: d = !1,
9131
+ skin: p = "primary",
9132
+ type: m = "button",
9133
+ variant: f = "label-only",
9134
+ state: y,
9135
+ color: b,
9136
+ isLoading: k = void 0,
9137
+ disabled: w = void 0,
9138
+ loadingAnimationPath: C = window.pktAnimationPath,
9139
+ ...O
9140
+ }, T) => {
9141
+ const P = [
9118
9142
  t,
9119
9143
  "pkt-btn",
9120
- a && `pkt-btn--${a}`,
9121
- n && "pkt-btn--full",
9122
- r && "pkt-btn--full-small",
9123
- l && `pkt-btn--${l}`,
9144
+ r && `pkt-btn--${r}`,
9145
+ l && "pkt-btn--full",
9146
+ d && "pkt-btn--full-small",
9124
9147
  p && `pkt-btn--${p}`,
9125
9148
  f && `pkt-btn--${f}`,
9126
- m && `pkt-btn--${m}`,
9127
- y && "pkt-btn--isLoading"
9149
+ b && `pkt-btn--${b}`,
9150
+ y && `pkt-btn--${y}`,
9151
+ k && "pkt-btn--isLoading"
9128
9152
  ].filter(Boolean).join(" ");
9129
9153
  return /* @__PURE__ */ x(
9130
9154
  "button",
9131
9155
  {
9132
- ...w,
9133
- "aria-busy": y || void 0,
9134
- "aria-disabled": b || void 0,
9135
- disabled: b,
9136
- className: M,
9137
- type: d,
9138
- ref: S,
9156
+ ...O,
9157
+ "aria-busy": k || void 0,
9158
+ "aria-disabled": w || void 0,
9159
+ disabled: w,
9160
+ className: P,
9161
+ type: m,
9162
+ ref: T,
9139
9163
  children: [
9140
- y && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: k }),
9141
- p !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e }),
9164
+ k && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: C }),
9165
+ f !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e, ...a && { path: a } }),
9142
9166
  /* @__PURE__ */ h("span", { className: "pkt-btn__text", children: i }),
9143
- p === "icons-right-and-left" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: s })
9167
+ f === "icons-right-and-left" && /* @__PURE__ */ h(
9168
+ L,
9169
+ {
9170
+ className: "pkt-btn__icon",
9171
+ name: s,
9172
+ ...n && { path: n }
9173
+ }
9174
+ )
9144
9175
  ]
9145
9176
  }
9146
9177
  );
@@ -9149,8 +9180,8 @@ const oi = Z(
9149
9180
  oi.displayName = "PktButton";
9150
9181
  const wh = Jt({
9151
9182
  tagName: "pkt-card",
9152
- elementClass: lt,
9153
- react: mt,
9183
+ elementClass: ht,
9184
+ react: gt,
9154
9185
  displayName: "PktCard",
9155
9186
  events: {}
9156
9187
  }), xh = Z(
@@ -9175,31 +9206,31 @@ const Sh = Z(
9175
9206
  optionalTag: b,
9176
9207
  optionalText: k = "Valgfritt",
9177
9208
  requiredTag: w,
9178
- requiredText: S = "Må fylles ut",
9179
- tagText: M,
9180
- ...N
9181
- }, I) => {
9182
- const T = Bs(null);
9183
- Qe(() => {
9184
- T.current && y !== void 0 && (T.current.indeterminate = y);
9185
- }, [y]), Qe(() => {
9186
- typeof I == "function" ? I(T.current) : I && (I.current = T.current);
9187
- }, [I]);
9209
+ requiredText: C = "Må fylles ut",
9210
+ tagText: O,
9211
+ ...T
9212
+ }, P) => {
9213
+ const N = Bs(null);
9214
+ De(() => {
9215
+ N.current && y !== void 0 && (N.current.indeterminate = y);
9216
+ }, [y]), De(() => {
9217
+ typeof P == "function" ? P(N.current) : P && (P.current = N.current);
9218
+ }, [P]);
9188
9219
  const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
9189
9220
  "pkt-input-check__input-label",
9190
9221
  e ? "pkt-input-check__input-label--disabled" : "",
9191
9222
  `pkt-input-check__input-label--${p}`,
9192
9223
  d ? "pkt-sr-only" : ""
9193
- ].filter(Boolean).join(" "), Ft = [
9224
+ ].filter(Boolean).join(" "), _t = [
9194
9225
  "pkt-input-check__input",
9195
9226
  t ? "pkt-input-check__input--tile" : "",
9196
9227
  e && t ? "pkt-input-check__input--tile-disabled" : ""
9197
- ].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9198
- M && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: M }),
9199
- b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
9200
- w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
9228
+ ].filter(Boolean).join(" "), mt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9229
+ O && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--gray", children: O }),
9230
+ b && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--blue-light", children: k }),
9231
+ w && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--beige", children: C })
9201
9232
  ] });
9202
- return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className: Ft, children: [
9233
+ return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className: _t, children: [
9203
9234
  p === "left" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
9204
9235
  s,
9205
9236
  " ",
@@ -9210,13 +9241,13 @@ const Sh = Z(
9210
9241
  "input",
9211
9242
  {
9212
9243
  role: l ? "switch" : "checkbox",
9213
- ref: T,
9244
+ ref: N,
9214
9245
  className: `pkt-input-check__input-checkbox ${n ? "pkt-input-check__input-checkbox--error" : ""}`,
9215
9246
  type: "checkbox",
9216
9247
  id: i,
9217
9248
  disabled: e,
9218
9249
  ...f !== void 0 ? { checked: f } : { defaultChecked: m },
9219
- ...N
9250
+ ...T
9220
9251
  }
9221
9252
  ),
9222
9253
  p === "right" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
@@ -9232,7 +9263,7 @@ Sh.displayName = "PktCheckbox";
9232
9263
  const Ch = Jt({
9233
9264
  tagName: "pkt-combobox",
9234
9265
  elementClass: Q,
9235
- react: mt,
9266
+ react: gt,
9236
9267
  displayName: "PktCombobox",
9237
9268
  events: {
9238
9269
  onClick: "click",
@@ -9251,7 +9282,7 @@ Th.displayName = "PktCombobox";
9251
9282
  const Hs = Jt({
9252
9283
  tagName: "pkt-consent",
9253
9284
  elementClass: Ht,
9254
- react: mt,
9285
+ react: gt,
9255
9286
  displayName: "PktConsent",
9256
9287
  events: {
9257
9288
  onToggleConsent: "toggle-consent"
@@ -9261,7 +9292,7 @@ Hs.displayName = "PktConsent";
9261
9292
  const Nh = Jt({
9262
9293
  tagName: "pkt-datepicker",
9263
9294
  elementClass: tt,
9264
- react: mt,
9295
+ react: gt,
9265
9296
  displayName: "PktDatepicker",
9266
9297
  events: {
9267
9298
  onChange: "change",
@@ -9293,7 +9324,7 @@ const Yd = ({
9293
9324
  console.log(w.detail);
9294
9325
  }
9295
9326
  }) => {
9296
- var S, M;
9327
+ var C, O;
9297
9328
  const w = [s, "pkt-footer"].filter(Boolean).join(" ");
9298
9329
  return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
9299
9330
  /* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -9301,38 +9332,38 @@ const Yd = ({
9301
9332
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: i.title }),
9302
9333
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9303
9334
  i.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: i.text }),
9304
- (S = i.links) == null ? void 0 : S.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9335
+ (C = i.links) == null ? void 0 : C.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9305
9336
  "a",
9306
9337
  {
9307
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9308
- href: N.href,
9309
- target: N.openInNewTab || a ? "_blank" : "_self",
9310
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9338
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9339
+ href: T.href,
9340
+ target: T.openInNewTab || a ? "_blank" : "_self",
9341
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9311
9342
  children: [
9312
9343
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9313
- N.text
9344
+ T.text
9314
9345
  ]
9315
9346
  }
9316
- ) }, `links-${I}`))
9347
+ ) }, `links-${P}`))
9317
9348
  ] })
9318
9349
  ] }),
9319
9350
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
9320
9351
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
9321
9352
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9322
9353
  t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
9323
- (M = t.links) == null ? void 0 : M.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9354
+ (O = t.links) == null ? void 0 : O.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9324
9355
  "a",
9325
9356
  {
9326
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9327
- href: N.href,
9328
- target: N.openInNewTab || a ? "_blank" : "_self",
9329
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9357
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9358
+ href: T.href,
9359
+ target: T.openInNewTab || a ? "_blank" : "_self",
9360
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9330
9361
  children: [
9331
9362
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9332
- N.text
9363
+ T.text
9333
9364
  ]
9334
9365
  }
9335
- ) }, `links-${I}`))
9366
+ ) }, `links-${P}`))
9336
9367
  ] })
9337
9368
  ] }),
9338
9369
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -9381,27 +9412,27 @@ const Yd = ({
9381
9412
  ] })
9382
9413
  ] }),
9383
9414
  e && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
9384
- /* @__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(
9415
+ /* @__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(
9385
9416
  "a",
9386
9417
  {
9387
- href: N.href,
9388
- "aria-label": `til ${N.language} versjon av nettsiden`,
9389
- target: N.openInNewTab || a ? "_blank" : "_self",
9390
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9391
- children: N.language
9418
+ href: T.href,
9419
+ "aria-label": `til ${T.language} versjon av nettsiden`,
9420
+ target: T.openInNewTab || a ? "_blank" : "_self",
9421
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9422
+ children: T.language
9392
9423
  }
9393
- ) }, `sociallinks-language-${I}`)) }),
9394
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((N) => N.iconName).map((N, I) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9424
+ ) }, `sociallinks-language-${P}`)) }),
9425
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((T) => T.iconName).map((T, P) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9395
9426
  "a",
9396
9427
  {
9397
- href: N.href,
9398
- "aria-label": `til ${N.iconName}`,
9428
+ href: T.href,
9429
+ "aria-label": `til ${T.iconName}`,
9399
9430
  className: "pkt-footer__social-icon-link",
9400
- target: N.openInNewTab || a ? "_blank" : "_self",
9401
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9402
- children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: N.iconName })
9431
+ target: T.openInNewTab || a ? "_blank" : "_self",
9432
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9433
+ children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: T.iconName })
9403
9434
  }
9404
- ) }, `sociallinks-${I}`)) })
9435
+ ) }, `sociallinks-${P}`)) })
9405
9436
  ] })
9406
9437
  ] }) });
9407
9438
  }, Zd = ({
@@ -9494,42 +9525,42 @@ const Yd = ({
9494
9525
  openMenu: b,
9495
9526
  logOut: k,
9496
9527
  changeRepresentation: w,
9497
- children: S,
9498
- ...M
9499
- }, N) => {
9500
- 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", {
9528
+ children: C,
9529
+ ...O
9530
+ }, T) => {
9531
+ 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", {
9501
9532
  year: "numeric",
9502
9533
  month: "long",
9503
9534
  day: "numeric"
9504
- }) : "", [n]), [T, H] = mt.useState(!1), [G, Ft] = mt.useState(0), [pt, J] = mt.useState(!1), st = mt.useRef(null);
9505
- mt.useEffect(() => (document && (document.addEventListener("mouseup", Et), window.addEventListener("scroll", at)), () => {
9506
- document && (document.removeEventListener("mouseup", Et), window.removeEventListener("scroll", at));
9535
+ }) : "", [n]), [N, H] = gt.useState(!1), [G, _t] = gt.useState(0), [mt, J] = gt.useState(!1), st = gt.useRef(null);
9536
+ gt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9537
+ document && (document.removeEventListener("mouseup", Ot), window.removeEventListener("scroll", at));
9507
9538
  }));
9508
- const At = () => {
9509
- J(!pt);
9510
- }, Et = (R) => {
9539
+ const Et = () => {
9540
+ J(!mt);
9541
+ }, Ot = (R) => {
9511
9542
  st.current && !st.current.contains(R.target) && J(!1);
9512
9543
  }, at = () => {
9513
9544
  if (a) {
9514
9545
  const R = window.pageYOffset || document.documentElement.scrollTop;
9515
9546
  if (R < 0 || Math.abs(R - G) < 60)
9516
9547
  return;
9517
- H(R > G), Ft(R);
9548
+ H(R > G), _t(R);
9518
9549
  }
9519
9550
  };
9520
9551
  return /* @__PURE__ */ x(
9521
9552
  "header",
9522
9553
  {
9523
- ...M,
9554
+ ...O,
9524
9555
  id: "pkt-header",
9525
9556
  "data-testid": "pkt-header",
9526
9557
  "aria-label": "Topp",
9527
- className: ht(i, "pkt-header", {
9558
+ className: dt(i, "pkt-header", {
9528
9559
  "pkt-header--fixed": s,
9529
9560
  "pkt-header--scroll-to-hide": a,
9530
- "pkt-header--hidden": T
9561
+ "pkt-header--hidden": N
9531
9562
  }),
9532
- ref: N,
9563
+ ref: T,
9533
9564
  children: [
9534
9565
  /* @__PURE__ */ x("div", { className: "pkt-header__logo", children: [
9535
9566
  typeof t == "string" ? /* @__PURE__ */ h("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: t, children: /* @__PURE__ */ h(
@@ -9538,7 +9569,7 @@ const Yd = ({
9538
9569
  name: "oslologo",
9539
9570
  className: "pkt-header__logo-svg",
9540
9571
  "aria-hidden": "true",
9541
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9572
+ path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9542
9573
  }
9543
9574
  ) }) : /* @__PURE__ */ h(
9544
9575
  "button",
@@ -9552,7 +9583,7 @@ const Yd = ({
9552
9583
  name: "oslologo",
9553
9584
  className: "pkt-header__logo-svg",
9554
9585
  "aria-hidden": "true",
9555
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9586
+ path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9556
9587
  }
9557
9588
  )
9558
9589
  }
@@ -9575,7 +9606,7 @@ const Yd = ({
9575
9606
  "li",
9576
9607
  {
9577
9608
  "data-testid": "usermenu",
9578
- className: `pkt-header--has-dropdown ${pt && !T ? "pkt-header--open-dropdown" : ""}`,
9609
+ className: `pkt-header--has-dropdown ${mt && !N ? "pkt-header--open-dropdown" : ""}`,
9579
9610
  ref: st,
9580
9611
  children: [
9581
9612
  /* @__PURE__ */ x(
@@ -9585,8 +9616,8 @@ const Yd = ({
9585
9616
  type: "button",
9586
9617
  role: "button",
9587
9618
  "aria-controls": "pktUserDropdown",
9588
- "aria-expanded": pt,
9589
- onClick: At,
9619
+ "aria-expanded": mt,
9620
+ onClick: Et,
9590
9621
  children: [
9591
9622
  /* @__PURE__ */ h(L, { name: "user", className: "pkt-btn__icon" }),
9592
9623
  /* @__PURE__ */ h("span", { className: "pkt-header__user-fullname", translate: "no", children: (l == null ? void 0 : l.name) || (n == null ? void 0 : n.name) }),
@@ -9602,16 +9633,16 @@ const Yd = ({
9602
9633
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__name", translate: "no", children: n.name }),
9603
9634
  n.lastLoggedIn && /* @__PURE__ */ x("div", { className: "pkt-user-menu__last-logged-in", children: [
9604
9635
  "Sist pålogget: ",
9605
- /* @__PURE__ */ h("time", { children: I })
9636
+ /* @__PURE__ */ h("time", { children: P })
9606
9637
  ] })
9607
9638
  ] }),
9608
- r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((R, wt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
9639
+ 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: [
9609
9640
  R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
9610
9641
  R.title
9611
9642
  ] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
9612
9643
  R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
9613
9644
  R.title
9614
- ] }) }, `userMenu-${wt}`)) }) }),
9645
+ ] }) }, `userMenu-${xt}`)) }) }),
9615
9646
  (l || m) && /* @__PURE__ */ x("li", { children: [
9616
9647
  l && /* @__PURE__ */ x(Wt, { children: [
9617
9648
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__label", children: "Representerer" }),
@@ -9627,24 +9658,24 @@ const Yd = ({
9627
9658
  ] }) }) })
9628
9659
  ] }),
9629
9660
  /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: (d || !y) && /* @__PURE__ */ x(Wt, { children: [
9630
- d == null ? void 0 : d.map((R, wt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
9661
+ d == null ? void 0 : d.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
9631
9662
  R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
9632
9663
  R.title
9633
9664
  ] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: [
9634
9665
  R.iconName && /* @__PURE__ */ h(L, { name: R.iconName, className: "pkt-link__icon" }),
9635
9666
  R.title
9636
- ] }) }, `userOptions-${wt}`)),
9667
+ ] }) }, `userOptions-${xt}`)),
9637
9668
  !y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: k, children: [
9638
9669
  /* @__PURE__ */ h(L, { name: "exit", className: "pkt-link__icon" }),
9639
9670
  "Logg ut"
9640
9671
  ] }) })
9641
9672
  ] }) }) }),
9642
- p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((R, wt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ h("a", { href: R.target, className: "pkt-link", children: R.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: R.title }) }, `userMenuFooter-${wt}`)) }) })
9673
+ p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ h("a", { href: R.target, className: "pkt-link", children: R.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: R.target, children: R.title }) }, `userMenuFooter-${xt}`)) }) })
9643
9674
  ] })
9644
9675
  ]
9645
9676
  }
9646
9677
  ),
9647
- S && /* @__PURE__ */ h("li", { children: S }),
9678
+ C && /* @__PURE__ */ h("li", { children: C }),
9648
9679
  y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
9649
9680
  oi,
9650
9681
  {
@@ -9664,15 +9695,15 @@ const Yd = ({
9664
9695
  }
9665
9696
  ), Eh = Jt({
9666
9697
  tagName: "pkt-heading",
9667
- elementClass: Ie,
9668
- react: mt,
9698
+ elementClass: Le,
9699
+ react: gt,
9669
9700
  displayName: "PktHeading"
9670
9701
  }), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
9671
9702
  Oh.displayName = "PktHeading";
9672
9703
  const Mh = Jt({
9673
9704
  tagName: "pkt-helptext",
9674
9705
  elementClass: ce,
9675
- react: mt,
9706
+ react: gt,
9676
9707
  displayName: "PktHelptext",
9677
9708
  events: {
9678
9709
  onToggleHelpText: "toggleHelpText"
@@ -9707,37 +9738,37 @@ const ps = Z(
9707
9738
  hasError: b = !1,
9708
9739
  errorMessage: k,
9709
9740
  disabled: w = !1,
9710
- inline: S = !1,
9711
- ariaDescribedby: M,
9712
- useWrapper: N = !0,
9713
- children: I,
9714
- className: T = "",
9741
+ inline: C = !1,
9742
+ ariaDescribedby: O,
9743
+ useWrapper: T = !0,
9744
+ children: P,
9745
+ className: N = "",
9715
9746
  hasFieldset: H = !1,
9716
9747
  role: G = "group",
9717
- counterPosition: Ft = "bottom"
9718
- }, pt) => {
9719
- const [J, st] = je(!1), At = M || (e ? `${i}-helptext` : void 0), Et = !!n, at = Et && Ft === "top", R = Et && Ft === "bottom", wt = () => st((ot) => !ot), Qt = [
9748
+ counterPosition: _t = "bottom"
9749
+ }, mt) => {
9750
+ 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 = [
9720
9751
  "pkt-inputwrapper",
9721
- T,
9752
+ N,
9722
9753
  b ? "pkt-inputwrapper--error" : "",
9723
9754
  w ? "pkt-inputwrapper--disabled" : "",
9724
- S ? "pkt-inputwrapper--inline" : ""
9725
- ].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Et ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
9755
+ C ? "pkt-inputwrapper--inline" : ""
9756
+ ].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: [
9726
9757
  r,
9727
9758
  l ? `/${l}` : ""
9728
- ] }) : null, we = () => /* @__PURE__ */ x(Wt, { children: [
9759
+ ] }) : null, xe = () => /* @__PURE__ */ x(Wt, { children: [
9729
9760
  y && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--gray", children: y }),
9730
9761
  d && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--blue-light", children: p }),
9731
9762
  m && /* @__PURE__ */ h("span", { className: oe + " pkt-tag--beige", children: f })
9732
- ] }), ze = () => {
9763
+ ] }), We = () => {
9733
9764
  const ot = /* @__PURE__ */ x(Wt, { children: [
9734
9765
  t,
9735
9766
  " ",
9736
- we()
9767
+ xe()
9737
9768
  ] });
9738
- 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": At, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": At, id: `${i}-label`, children: t });
9769
+ 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 });
9739
9770
  }, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
9740
- e && N && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9771
+ e && T && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9741
9772
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
9742
9773
  /* @__PURE__ */ h(
9743
9774
  oi,
@@ -9747,7 +9778,7 @@ const ps = Z(
9747
9778
  variant: "icon-right",
9748
9779
  iconName: J ? "chevron-thin-up" : "chevron-thin-down",
9749
9780
  className: "pkt-link pkt-link--icon-right",
9750
- onClick: wt,
9781
+ onClick: xt,
9751
9782
  children: /* @__PURE__ */ h(
9752
9783
  "span",
9753
9784
  {
@@ -9767,14 +9798,14 @@ const ps = Z(
9767
9798
  )
9768
9799
  ] })
9769
9800
  ] }), Ut = /* @__PURE__ */ x(Wt, { children: [
9770
- ze(),
9801
+ We(),
9771
9802
  le(),
9772
9803
  at && /* @__PURE__ */ h(te, {}),
9773
- I,
9804
+ P,
9774
9805
  R && /* @__PURE__ */ h(te, {}),
9775
9806
  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 }) })
9776
9807
  ] });
9777
- return /* @__PURE__ */ h("div", { className: Qt, ref: pt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": At, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
9808
+ 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 }) });
9778
9809
  }
9779
9810
  );
9780
9811
  ps.displayName = "PktInputWrapper";
@@ -9791,7 +9822,7 @@ const Ih = ({
9791
9822
  "a",
9792
9823
  {
9793
9824
  ...l,
9794
- className: ht({
9825
+ className: dt({
9795
9826
  "pkt-link": !0,
9796
9827
  "pkt-link--icon-left": !!t && s === "left" || !!(t && !s),
9797
9828
  "pkt-link--icon-right": !!t && s === "right",
@@ -9824,12 +9855,12 @@ const Rh = ({
9824
9855
  {
9825
9856
  ...d,
9826
9857
  href: s,
9827
- className: ht(p, l),
9858
+ className: dt(p, l),
9828
9859
  target: n ? "_blank" : "_self",
9829
9860
  rel: n ? "noopener noreferrer" : void 0,
9830
9861
  children: [
9831
9862
  a && /* @__PURE__ */ h(L, { className: "pkt-link__icon", name: a }),
9832
- e && /* @__PURE__ */ h("div", { className: ht(m), children: e }),
9863
+ e && /* @__PURE__ */ h("div", { className: dt(m), children: e }),
9833
9864
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__text", children: i })
9834
9865
  ]
9835
9866
  }
@@ -9839,7 +9870,7 @@ Rh.displayName = "PktLinkCard";
9839
9870
  const Lh = Jt({
9840
9871
  tagName: "pkt-loader",
9841
9872
  elementClass: Yt,
9842
- react: mt,
9873
+ react: gt,
9843
9874
  displayName: "PktLoader",
9844
9875
  events: {}
9845
9876
  }), Bh = Z(
@@ -9856,7 +9887,7 @@ const Vh = ({
9856
9887
  onClose: r,
9857
9888
  ...l
9858
9889
  }) => {
9859
- const [d, p] = je(!1), m = {
9890
+ const [d, p] = ke(!1), m = {
9860
9891
  "pkt-messagebox": !0,
9861
9892
  "pkt-messagebox--compact": a,
9862
9893
  [`pkt-messagebox--${e}`]: e,
@@ -9865,7 +9896,7 @@ const Vh = ({
9865
9896
  }, f = mn(), y = Ls(() => {
9866
9897
  p(!0), r && r();
9867
9898
  }, [p, r]);
9868
- return /* @__PURE__ */ x("div", { ...l, className: ht(m, t), ref: f, children: [
9899
+ return /* @__PURE__ */ x("div", { ...l, className: dt(m, t), ref: f, children: [
9869
9900
  n && /* @__PURE__ */ h("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ h(
9870
9901
  "button",
9871
9902
  {
@@ -9882,8 +9913,8 @@ const Vh = ({
9882
9913
  Vh.displayName = "PktMessagebox";
9883
9914
  const jh = Jt({
9884
9915
  tagName: "pkt-modal",
9885
- elementClass: It,
9886
- react: mt,
9916
+ elementClass: Rt,
9917
+ react: gt,
9887
9918
  displayName: "PktModal",
9888
9919
  events: {}
9889
9920
  }), Fh = Z(
@@ -9893,7 +9924,7 @@ Fh.displayName = "PktModal";
9893
9924
  const Uh = Jt({
9894
9925
  tagName: "pkt-progressbar",
9895
9926
  elementClass: et,
9896
- react: mt,
9927
+ react: gt,
9897
9928
  displayName: "PktProgressbar",
9898
9929
  events: {}
9899
9930
  }), Hh = Z(
@@ -9918,34 +9949,34 @@ const qh = Z(
9918
9949
  requiredText: b,
9919
9950
  tagText: k,
9920
9951
  ...w
9921
- }, S) => {
9922
- const M = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
9952
+ }, C) => {
9953
+ const O = [s, "pkt-input-check"].filter(Boolean).join(" "), T = [
9923
9954
  "pkt-input-check__input",
9924
9955
  a ? "pkt-input-check__input--tile" : "",
9925
9956
  n && a ? "pkt-input-check__input--tile-disabled" : ""
9926
- ].filter(Boolean).join(" "), I = [
9957
+ ].filter(Boolean).join(" "), P = [
9927
9958
  "pkt-input-check__input-checkbox",
9928
9959
  l ? "pkt-input-check__input-checkbox--error" : ""
9929
- ].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: [
9960
+ ].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: [
9930
9961
  k && /* @__PURE__ */ h("span", { className: H + " pkt-tag--gray", children: k }),
9931
9962
  m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
9932
9963
  y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
9933
9964
  ] });
9934
- return /* @__PURE__ */ h("div", { className: M, children: /* @__PURE__ */ x("div", { className: N, children: [
9965
+ return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: T, children: [
9935
9966
  /* @__PURE__ */ h(
9936
9967
  "input",
9937
9968
  {
9938
- ref: S,
9969
+ ref: C,
9939
9970
  id: i,
9940
9971
  type: "radio",
9941
9972
  name: t,
9942
9973
  disabled: n,
9943
- className: I,
9974
+ className: P,
9944
9975
  ...p !== void 0 ? { checked: p } : { defaultChecked: d },
9945
9976
  ...w
9946
9977
  }
9947
9978
  ),
9948
- /* @__PURE__ */ x("label", { className: T, htmlFor: i, children: [
9979
+ /* @__PURE__ */ x("label", { className: N, htmlFor: i, children: [
9949
9980
  e,
9950
9981
  " ",
9951
9982
  G(),
@@ -9973,13 +10004,13 @@ const Xd = Z(
9973
10004
  onSuggestionClick: b,
9974
10005
  ...k
9975
10006
  }, w) => {
9976
- const S = (T, H) => {
9977
- T ? T() : b && b(H);
9978
- }, M = (T) => {
9979
- d = T.target.value;
9980
- }, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
9981
- let I;
9982
- 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(
10007
+ const C = (N, H) => {
10008
+ N ? N() : b && b(H);
10009
+ }, O = (N) => {
10010
+ d = N.target.value;
10011
+ }, T = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
10012
+ let P;
10013
+ 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(
9983
10014
  /* @__PURE__ */ x(Wt, { children: [
9984
10015
  a && /* @__PURE__ */ h("label", { htmlFor: a ? s : void 0, className: a ? "pkt-inputwrapper__label" : "", children: a }),
9985
10016
  /* @__PURE__ */ x("div", { className: i === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
@@ -9997,9 +10028,9 @@ const Xd = Z(
9997
10028
  "aria-autocomplete": "list",
9998
10029
  ref: w,
9999
10030
  "aria-controls": `${s}-suggestions`,
10000
- onChange: f || M,
10001
- onKeyUp: y && ((T) => {
10002
- T.key === "Enter" && (T.preventDefault(), y(d));
10031
+ onChange: f || O,
10032
+ onKeyUp: y && ((N) => {
10033
+ N.key === "Enter" && (N.preventDefault(), y(d));
10003
10034
  }),
10004
10035
  ...k
10005
10036
  }
@@ -10014,25 +10045,25 @@ const Xd = Z(
10014
10045
  color: i === "global" ? "yellow" : void 0,
10015
10046
  type: "submit",
10016
10047
  disabled: t,
10017
- onClick: y && ((T) => {
10018
- T.preventDefault(), y(d);
10048
+ onClick: y && ((N) => {
10049
+ N.preventDefault(), y(d);
10019
10050
  }),
10020
10051
  children: a || r
10021
10052
  }
10022
10053
  )
10023
10054
  ] }),
10024
- l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((T, H) => /* @__PURE__ */ h("li", { children: fn(
10025
- T.href ? "a" : T.onClick ? "button" : "div",
10055
+ l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((N, H) => /* @__PURE__ */ h("li", { children: fn(
10056
+ N.href ? "a" : N.onClick ? "button" : "div",
10026
10057
  {
10027
- href: T.href,
10028
- className: `pkt-searchinput__suggestion ${T.onClick ? "pkt-link-button" : ""} ${T.href || T.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10029
- type: T.onClick ? "button" : void 0,
10030
- onClick: () => S(T.onClick, H),
10031
- onKeyUp: (G) => G.key === "Enter" && S(T.onClick, H)
10058
+ href: N.href,
10059
+ className: `pkt-searchinput__suggestion ${N.onClick ? "pkt-link-button" : ""} ${N.href || N.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10060
+ type: N.onClick ? "button" : void 0,
10061
+ onClick: () => C(N.onClick, H),
10062
+ onKeyUp: (G) => G.key === "Enter" && C(N.onClick, H)
10032
10063
  },
10033
10064
  /* @__PURE__ */ x(Wt, { children: [
10034
- T.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: T.title }),
10035
- T.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: T.text })
10065
+ N.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: N.title }),
10066
+ N.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: N.text })
10036
10067
  ] })
10037
10068
  ) }, `search-suggestion-${H}`)) })
10038
10069
  ] })
@@ -10056,11 +10087,11 @@ const Xd = Z(
10056
10087
  label: b,
10057
10088
  name: k,
10058
10089
  optionalTag: w = !1,
10059
- optionalText: S,
10060
- requiredTag: M = !1,
10061
- requiredText: N,
10062
- tagText: I,
10063
- ...T
10090
+ optionalText: C,
10091
+ requiredTag: O = !1,
10092
+ requiredText: T,
10093
+ tagText: P,
10094
+ ...N
10064
10095
  }, H) => {
10065
10096
  const G = [s, "pkt-select"].join(" ");
10066
10097
  return /* @__PURE__ */ h(
@@ -10073,10 +10104,10 @@ const Xd = Z(
10073
10104
  helptextDropdown: d,
10074
10105
  helptextDropdownButton: p,
10075
10106
  optionalTag: w,
10076
- optionalText: S,
10077
- requiredTag: M,
10078
- requiredText: N,
10079
- tagText: I,
10107
+ optionalText: C,
10108
+ requiredTag: O,
10109
+ requiredText: T,
10110
+ tagText: P,
10080
10111
  hasError: r,
10081
10112
  errorMessage: n,
10082
10113
  disabled: a,
@@ -10093,7 +10124,7 @@ const Xd = Z(
10093
10124
  disabled: a,
10094
10125
  id: `${m}-input`,
10095
10126
  name: k || m,
10096
- ...T,
10127
+ ...N,
10097
10128
  children: e
10098
10129
  }
10099
10130
  )
@@ -10106,10 +10137,10 @@ const Xd = Z(
10106
10137
  ] }), Kh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10107
10138
  /* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
10108
10139
  /* @__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" })
10109
- ] }), 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: [
10140
+ ] }), 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: [
10110
10141
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
10111
10142
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
10112
- /* @__PURE__ */ h("span", { className: ht("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10143
+ /* @__PURE__ */ h("span", { className: dt("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10113
10144
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
10114
10145
  /* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
10115
10146
  /* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
@@ -10125,12 +10156,12 @@ const Xd = Z(
10125
10156
  orientation: n = "vertical",
10126
10157
  ...r
10127
10158
  }, l) => {
10128
- const d = ht(
10159
+ const d = dt(
10129
10160
  t,
10130
10161
  "pkt-stepper",
10131
10162
  n === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
10132
10163
  ), p = Os.map(e, (m, f) => gn(m) ? vn(m, {
10133
- className: ht(m.props.className, {
10164
+ className: dt(m.props.className, {
10134
10165
  "pkt-step--hideStep": s && f !== i,
10135
10166
  "pkt-step--hideContent": a && f !== i
10136
10167
  })
@@ -10148,7 +10179,7 @@ const Xd = Z(
10148
10179
  "table",
10149
10180
  {
10150
10181
  "data-testid": "pkt-table",
10151
- className: ht(i, "pkt-table", {
10182
+ className: dt(i, "pkt-table", {
10152
10183
  "pkt-table--responsive": s,
10153
10184
  "pkt-table--compact": t,
10154
10185
  "pkt-table--basic": e === "basic",
@@ -10158,17 +10189,17 @@ const Xd = Z(
10158
10189
  ...n,
10159
10190
  children: a
10160
10191
  }
10161
- ), 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(
10192
+ ), 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(
10162
10193
  "td",
10163
10194
  {
10164
- className: ht(t, "pkt-table__data-cell", {}),
10195
+ className: dt(t, "pkt-table__data-cell", {}),
10165
10196
  "data-label": e,
10166
10197
  role: "cell",
10167
10198
  "data-testid": "pkt-table__data-cell",
10168
10199
  ...s,
10169
10200
  children: i
10170
10201
  }
10171
- ), 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(
10202
+ ), 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(
10172
10203
  ({
10173
10204
  children: i,
10174
10205
  skin: t,
@@ -10183,20 +10214,21 @@ const Xd = Z(
10183
10214
  "aria-description": m,
10184
10215
  ...f
10185
10216
  }, y) => {
10186
- const [b, k] = je(!1), w = Ls(() => {
10217
+ const [b, k] = ke(!1), w = Ls(() => {
10187
10218
  k(!0), d && d();
10188
- }, [k]), S = Bs(null), M = bn(() => {
10189
- var T, H;
10190
- if (a && !l) {
10191
- const G = (H = (T = S.current) == null ? void 0 : T.textContent) == null ? void 0 : H.trim();
10192
- return G && `Klikk for å fjerne ${G}` || m;
10193
- }
10194
- }, [a, l]), N = {
10219
+ }, [k]), C = Bs(null), [O, T] = ke("");
10220
+ De(() => {
10221
+ var G, _t;
10222
+ T(((_t = (G = C.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10223
+ }, [i]);
10224
+ const P = bn(() => {
10225
+ if (a && !l) return O && `Klikk for å fjerne ${O}` || m;
10226
+ }, [a, l, O, m]), N = {
10195
10227
  "pkt-tag": !0,
10196
10228
  [`pkt-tag--${s}`]: !!s,
10197
10229
  [`pkt-tag--${t}`]: !!t,
10198
10230
  [`pkt-tag--${e}`]: !!e
10199
- }, I = {
10231
+ }, H = {
10200
10232
  "pkt-tag": !0,
10201
10233
  "pkt-btn": !0,
10202
10234
  "pkt-btn--tertiary": !0,
@@ -10210,21 +10242,21 @@ const Xd = Z(
10210
10242
  "button",
10211
10243
  {
10212
10244
  ...f,
10213
- className: ht(I, n),
10245
+ className: dt(H, n),
10214
10246
  type: p,
10215
10247
  onClick: w,
10216
10248
  "aria-label": l,
10217
- "aria-description": M,
10249
+ "aria-description": P,
10218
10250
  ref: y,
10219
10251
  children: [
10220
10252
  r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
10221
- /* @__PURE__ */ h("span", { ref: S, children: i }),
10253
+ /* @__PURE__ */ h("span", { ref: C, children: i }),
10222
10254
  /* @__PURE__ */ h(L, { className: "pkt-tag__close-btn", name: "close" })
10223
10255
  ]
10224
10256
  }
10225
- ) : /* @__PURE__ */ x("span", { ...f, className: ht(N, n), ref: y, children: [
10226
- r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
10227
- /* @__PURE__ */ h("span", { ref: S, children: i })
10257
+ ) : /* @__PURE__ */ x("span", { ...f, className: dt(N, n), ref: y, children: [
10258
+ r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
10259
+ /* @__PURE__ */ h("span", { ref: C, children: i })
10228
10260
  ] });
10229
10261
  }
10230
10262
  );
@@ -10235,20 +10267,20 @@ const dn = Z(
10235
10267
  "aria-selected": m ? !!t : void 0,
10236
10268
  "aria-controls": n,
10237
10269
  role: m ? "tab" : void 0,
10238
- onKeyUp: (M) => y(d, M),
10239
- onClick: (M) => {
10240
- b(d), s == null || s(M);
10270
+ onKeyUp: (O) => y(d, O),
10271
+ onClick: (O) => {
10272
+ b(d), s == null || s(O);
10241
10273
  },
10242
10274
  tabIndex: t || !m ? void 0 : -1,
10243
- ref: (M) => {
10244
- f(d, M), typeof p == "function" ? p(M) : p && (p.current = M);
10275
+ ref: (O) => {
10276
+ f(d, O), typeof p == "function" ? p(O) : p && (p.current = O);
10245
10277
  }
10246
- }, S = /* @__PURE__ */ x(Wt, { children: [
10278
+ }, C = /* @__PURE__ */ x(Wt, { children: [
10247
10279
  a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
10248
10280
  i,
10249
10281
  r && /* @__PURE__ */ h(hn, { skin: l, size: "small", children: r })
10250
10282
  ] });
10251
- 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 });
10283
+ 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 });
10252
10284
  }
10253
10285
  );
10254
10286
  dn.displayName = "PktTabItem";
@@ -10260,19 +10292,19 @@ const cn = Oa(null), Gh = () => {
10260
10292
  }, lc = Z(
10261
10293
  ({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
10262
10294
  const r = Bs([]), l = i && !t, p = a && Os.count(a) > 0 ? Os.count(a) : (e == null ? void 0 : e.length) || 0;
10263
- Qe(() => {
10295
+ De(() => {
10264
10296
  r.current = r.current.slice(0, p);
10265
10297
  }, [p]);
10266
10298
  const m = (k) => {
10267
10299
  const w = e == null ? void 0 : e[k];
10268
10300
  w != null && w.action && w.action(k), s && s(k);
10269
10301
  }, f = (k, w) => {
10270
- var S, M;
10271
- l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((M = r.current[k + 1]) == null || M.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
10302
+ var C, O;
10303
+ 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));
10272
10304
  }, y = (k, w) => {
10273
10305
  r.current[k] = w;
10274
10306
  }, b = e == null ? void 0 : e.map((k, w) => {
10275
- var S, M;
10307
+ var C, O;
10276
10308
  return /* @__PURE__ */ h(
10277
10309
  dn,
10278
10310
  {
@@ -10281,8 +10313,8 @@ const cn = Oa(null), Gh = () => {
10281
10313
  onClick: () => m(w),
10282
10314
  icon: k.icon,
10283
10315
  controls: k.controls,
10284
- tag: (S = k.tag) == null ? void 0 : S.text,
10285
- tagSkin: (M = k.tag) == null ? void 0 : M.skin,
10316
+ tag: (C = k.tag) == null ? void 0 : C.text,
10317
+ tagSkin: (O = k.tag) == null ? void 0 : O.skin,
10286
10318
  index: w,
10287
10319
  children: k.text
10288
10320
  },
@@ -10309,29 +10341,29 @@ const cn = Oa(null), Gh = () => {
10309
10341
  fullwidth: b = !1,
10310
10342
  label: k,
10311
10343
  name: w,
10312
- optionalTag: S = !1,
10313
- optionalText: M,
10314
- requiredTag: N = !1,
10315
- requiredText: I,
10316
- tagText: T = null,
10344
+ optionalTag: C = !1,
10345
+ optionalText: O,
10346
+ requiredTag: T = !1,
10347
+ requiredText: P,
10348
+ tagText: N = null,
10317
10349
  placeholder: H,
10318
10350
  rows: G,
10319
- useWrapper: Ft = !0,
10320
- onChange: pt,
10351
+ useWrapper: _t = !0,
10352
+ onChange: mt,
10321
10353
  value: J,
10322
10354
  autoComplete: st = "off",
10323
- minLength: At,
10324
- maxLength: Et,
10355
+ minLength: Et,
10356
+ maxLength: Ot,
10325
10357
  readOnly: at = !1,
10326
10358
  skipForwardTestid: R = !1,
10327
- ...wt
10359
+ ...xt
10328
10360
  }, Qt) => {
10329
- const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, we = `${te}-label`, ze = e || we, [le, Ut] = je(0), ot = (xe) => {
10330
- var Se, he;
10331
- if (s && Ut(((he = (Se = xe.currentTarget) == null ? void 0 : Se.value) == null ? void 0 : he.length) || 0), pt)
10332
- return pt(xe);
10361
+ const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, xe = `${te}-label`, We = e || xe, [le, Ut] = ke(0), ot = (Se) => {
10362
+ var Ce, he;
10363
+ if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), mt)
10364
+ return mt(Se);
10333
10365
  };
10334
- return Qe(() => {
10366
+ return De(() => {
10335
10367
  J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
10336
10368
  }, [J]), /* @__PURE__ */ h(
10337
10369
  ps,
@@ -10347,12 +10379,12 @@ const cn = Oa(null), Gh = () => {
10347
10379
  helptextDropdownButton: f,
10348
10380
  inline: y,
10349
10381
  label: k,
10350
- optionalTag: S,
10351
- optionalText: M,
10352
- requiredTag: N,
10353
- requiredText: I,
10354
- tagText: T,
10355
- useWrapper: Ft,
10382
+ optionalTag: C,
10383
+ optionalText: O,
10384
+ requiredTag: T,
10385
+ requiredText: P,
10386
+ tagText: N,
10387
+ useWrapper: _t,
10356
10388
  counter: s,
10357
10389
  counterCurrent: le,
10358
10390
  counterMaxLength: a,
@@ -10366,15 +10398,15 @@ const cn = Oa(null), Gh = () => {
10366
10398
  placeholder: H,
10367
10399
  disabled: r,
10368
10400
  rows: G,
10369
- "aria-labelledby": ze,
10401
+ "aria-labelledby": We,
10370
10402
  "aria-invalid": d,
10371
10403
  "aria-errormessage": `${i}-error`,
10372
- ...wt,
10404
+ ...xt,
10373
10405
  onChange: ot,
10374
10406
  value: J,
10375
10407
  autoComplete: st,
10376
- minLength: At,
10377
- maxLength: Et,
10408
+ minLength: Et,
10409
+ maxLength: Ot,
10378
10410
  "data-skip-forward-testid": R ? "true" : void 0
10379
10411
  }
10380
10412
  )
@@ -10399,39 +10431,39 @@ const cn = Oa(null), Gh = () => {
10399
10431
  iconNameRight: b,
10400
10432
  inline: k = !1,
10401
10433
  fullwidth: w = !1,
10402
- label: S,
10403
- name: M,
10404
- optionalTag: N = !1,
10405
- optionalText: I,
10406
- requiredTag: T = !1,
10434
+ label: C,
10435
+ name: O,
10436
+ optionalTag: T = !1,
10437
+ optionalText: P,
10438
+ requiredTag: N = !1,
10407
10439
  requiredText: H,
10408
10440
  tagText: G = null,
10409
- placeholder: Ft,
10410
- prefix: pt,
10441
+ placeholder: _t,
10442
+ prefix: mt,
10411
10443
  suffix: J,
10412
10444
  type: st = "text",
10413
- useWrapper: At = !0,
10414
- omitSearchIcon: Et = !1,
10445
+ useWrapper: Et = !0,
10446
+ omitSearchIcon: Ot = !1,
10415
10447
  value: at,
10416
10448
  minLength: R,
10417
- maxLength: wt,
10449
+ maxLength: xt,
10418
10450
  min: Qt,
10419
10451
  max: oe,
10420
10452
  step: te,
10421
- size: we,
10422
- readonly: ze,
10453
+ size: xe,
10454
+ readonly: We,
10423
10455
  required: le,
10424
10456
  dataTestid: Ut,
10425
10457
  onChange: ot,
10426
- skipForwardTestid: xe = !1,
10427
- ...Se
10458
+ skipForwardTestid: Se = !1,
10459
+ ...Ce
10428
10460
  }, he) => {
10429
- const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Et, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, We] = je((at == null ? void 0 : at.length) || 0), Ke = `${i}`, ui = `${Ke}-label`, qi = e || ui, fs = (me) => {
10461
+ const us = [r, "pkt-textinput"].join(" "), Ui = st === "search" && !b && !Ot, ms = st === "date" && at ? at.slice(0, 10) : at, [Hi, Ke] = ke((at == null ? void 0 : at.length) || 0), Ge = `${i}`, ui = `${Ge}-label`, qi = e || ui, fs = (me) => {
10430
10462
  var zi, Wi;
10431
- a && We(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
10463
+ a && Ke(((Wi = (zi = me.currentTarget) == null ? void 0 : zi.value) == null ? void 0 : Wi.length) || 0), ot && ot(me);
10432
10464
  };
10433
- return Qe(() => {
10434
- at !== void 0 && We((at == null ? void 0 : at.length) || 0);
10465
+ return De(() => {
10466
+ at !== void 0 && Ke((at == null ? void 0 : at.length) || 0);
10435
10467
  }, [at]), /* @__PURE__ */ h(
10436
10468
  ps,
10437
10469
  {
@@ -10439,19 +10471,19 @@ const cn = Oa(null), Gh = () => {
10439
10471
  className: us,
10440
10472
  disabled: l,
10441
10473
  errorMessage: d,
10442
- forId: Ke,
10474
+ forId: Ge,
10443
10475
  hasError: p,
10444
10476
  helptext: m,
10445
10477
  helptextDropdown: f,
10446
10478
  helptextDropdownButton: y,
10447
10479
  inline: k,
10448
- label: S,
10449
- optionalTag: N,
10450
- optionalText: I,
10451
- requiredTag: T,
10480
+ label: C,
10481
+ optionalTag: T,
10482
+ optionalText: P,
10483
+ requiredTag: N,
10452
10484
  requiredText: H,
10453
10485
  tagText: G,
10454
- useWrapper: At,
10486
+ useWrapper: Et,
10455
10487
  counter: a,
10456
10488
  counterCurrent: Hi,
10457
10489
  counterMaxLength: n,
@@ -10460,20 +10492,20 @@ const cn = Oa(null), Gh = () => {
10460
10492
  {
10461
10493
  className: "pkt-input__container",
10462
10494
  "data-testid": Ut,
10463
- "data-skip-forward-testid": xe ? "true" : void 0,
10495
+ "data-skip-forward-testid": Se ? "true" : void 0,
10464
10496
  children: [
10465
- pt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: pt }),
10497
+ mt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: mt }),
10466
10498
  /* @__PURE__ */ h(
10467
10499
  "input",
10468
10500
  {
10469
- ...Se,
10501
+ ...Ce,
10470
10502
  ref: he,
10471
10503
  className: `pkt-input ${w ? "pkt-input--fullwidth" : ""} ${n && Hi > n ? "pkt-input--counter-error" : ""}`,
10472
10504
  type: st,
10473
- name: `${M || i}`,
10505
+ name: `${O || i}`,
10474
10506
  value: ms,
10475
- id: Ke,
10476
- placeholder: Ft,
10507
+ id: Ge,
10508
+ placeholder: _t,
10477
10509
  autoComplete: s,
10478
10510
  disabled: l,
10479
10511
  "aria-invalid": p,
@@ -10484,8 +10516,8 @@ const cn = Oa(null), Gh = () => {
10484
10516
  onChange: fs,
10485
10517
  step: te,
10486
10518
  minLength: R,
10487
- maxLength: wt,
10488
- size: we,
10519
+ maxLength: xt,
10520
+ size: xe,
10489
10521
  required: le
10490
10522
  }
10491
10523
  ),