@oslokommune/punkt-react 13.12.0 → 13.13.1

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.
@@ -35,9 +35,9 @@
35
35
  }
36
36
  import { jsx as h, jsxs as x, Fragment as Gt } from "react/jsx-runtime";
37
37
  import * as dn from "react";
38
- import lt, { createContext as Na, forwardRef as K, useContext as Aa, useState as oi, useEffect as as, useCallback as Ea, Fragment as cn, createRef as pn, createElement as un, Children as Es, isValidElement as mn, cloneElement as fn, useRef as gn } from "react";
38
+ import ct, { createContext as Na, forwardRef as G, useContext as Aa, useState as oi, useEffect as as, useCallback as Ea, Fragment as cn, createRef as pn, createElement as un, Children as Es, isValidElement as mn, cloneElement as fn, useRef as gn } from "react";
39
39
  import { Link as zs } from "react-router-dom";
40
- const Oa = Na({}), vn = () => Aa(Oa), bn = K(
40
+ const Oa = Na({}), vn = () => Aa(Oa), bn = G(
41
41
  ({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
42
42
  const l = [
43
43
  "pkt-accordion",
@@ -68,24 +68,24 @@ const yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
68
68
  n === void 0 ? (i[t] = e, e == null && t in HTMLElement.prototype && i.removeAttribute(t)) : e !== s && ((r, l, d) => {
69
69
  let p = Ws.get(r);
70
70
  p === void 0 && Ws.set(r, p = /* @__PURE__ */ new Map());
71
- let g = p.get(l);
72
- d !== void 0 ? g === void 0 ? (p.set(l, g = { handleEvent: d }), r.addEventListener(l, g)) : g.handleEvent = d : g !== void 0 && (p.delete(l), r.removeEventListener(l, g));
71
+ let f = p.get(l);
72
+ d !== void 0 ? f === void 0 ? (p.set(l, f = { handleEvent: d }), r.addEventListener(l, f)) : f.handleEvent = d : f !== void 0 && (p.delete(l), r.removeEventListener(l, f));
73
73
  })(i, n, e);
74
- }, Tt = ({ react: i, tagName: t, elementClass: e, events: s, displayName: a }) => {
74
+ }, Lt = ({ react: i, tagName: t, elementClass: e, events: s, displayName: a }) => {
75
75
  const n = new Set(Object.keys(s ?? {})), r = i.forwardRef(((l, d) => {
76
- const p = i.useRef(/* @__PURE__ */ new Map()), g = i.useRef(null), f = {}, k = {};
77
- for (const [b, y] of Object.entries(l)) yn.has(b) ? f[b === "className" ? "class" : b] = y : n.has(b) || b in e.prototype ? k[b] = y : f[b] = y;
76
+ const p = i.useRef(/* @__PURE__ */ new Map()), f = i.useRef(null), g = {}, k = {};
77
+ for (const [b, y] of Object.entries(l)) yn.has(b) ? g[b === "className" ? "class" : b] = y : n.has(b) || b in e.prototype ? k[b] = y : g[b] = y;
78
78
  return i.useLayoutEffect((() => {
79
- if (g.current === null) return;
79
+ if (f.current === null) return;
80
80
  const b = /* @__PURE__ */ new Map();
81
- for (const y in k) Ks(g.current, y, l[y], p.current.get(y), s), p.current.delete(y), b.set(y, l[y]);
82
- for (const [y, w] of p.current) Ks(g.current, y, void 0, w, s);
81
+ for (const y in k) Ks(f.current, y, l[y], p.current.get(y), s), p.current.delete(y), b.set(y, l[y]);
82
+ for (const [y, w] of p.current) Ks(f.current, y, void 0, w, s);
83
83
  p.current = b;
84
84
  })), i.useLayoutEffect((() => {
85
85
  var b;
86
- (b = g.current) == null || b.removeAttribute("defer-hydration");
87
- }), []), f.suppressHydrationWarning = !0, i.createElement(t, { ...f, ref: i.useCallback(((b) => {
88
- g.current = b, typeof d == "function" ? d(b) : d !== null && (d.current = b);
86
+ (b = f.current) == null || b.removeAttribute("defer-hydration");
87
+ }), []), g.suppressHydrationWarning = !0, i.createElement(t, { ...g, ref: i.useCallback(((b) => {
88
+ f.current = b, typeof d == "function" ? d(b) : d !== null && (d.current = b);
89
89
  }), [d]) });
90
90
  }));
91
91
  return r.displayName = a ?? e.name, r;
@@ -95,9 +95,9 @@ const yn = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
95
95
  * Copyright 2017 Google LLC
96
96
  * SPDX-License-Identifier: BSD-3-Clause
97
97
  */
98
- const Xi = globalThis, Ji = Xi.trustedTypes, Gs = Ji ? Ji.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Pa = "$lit$", ye = `lit$${Math.random().toFixed(9).slice(2)}$`, Ma = "?" + ye, kn = `<${Ma}>`, De = document, Ni = () => De.createComment(""), Ai = (i) => i === null || typeof i != "object" && typeof i != "function", Rs = Array.isArray, $n = (i) => Rs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", vs = `[
98
+ const Xi = globalThis, Ji = Xi.trustedTypes, Gs = Ji ? Ji.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Pa = "$lit$", be = `lit$${Math.random().toFixed(9).slice(2)}$`, Ma = "?" + be, kn = `<${Ma}>`, De = document, Ni = () => De.createComment(""), Ai = (i) => i === null || typeof i != "object" && typeof i != "function", Rs = Array.isArray, $n = (i) => Rs(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", vs = `[
99
99
  \f\r]`, fi = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ys = /-->/g, Zs = />/g, Ne = RegExp(`>|${vs}(?:([^\\s"'>=/]+)(${vs}*=${vs}*(?:[^
100
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xs = /'/g, Js = /"/g, Ia = /^(?:script|style|textarea|title)$/i, _n = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = _n(1), $t = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qs = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
100
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xs = /'/g, Js = /"/g, Ia = /^(?:script|style|textarea|title)$/i, _n = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), u = _n(1), _t = Symbol.for("lit-noChange"), $ = Symbol.for("lit-nothing"), Qs = /* @__PURE__ */ new WeakMap(), Pe = De.createTreeWalker(De, 129);
101
101
  function Da(i, t) {
102
102
  if (!Rs(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
103
103
  return Gs !== void 0 ? Gs.createHTML(t) : t;
@@ -107,10 +107,10 @@ const wn = (i, t) => {
107
107
  let a, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = fi;
108
108
  for (let l = 0; l < e; l++) {
109
109
  const d = i[l];
110
- let p, g, f = -1, k = 0;
111
- for (; k < d.length && (r.lastIndex = k, g = r.exec(d), g !== null); ) k = r.lastIndex, r === fi ? g[1] === "!--" ? r = Ys : g[1] !== void 0 ? r = Zs : g[2] !== void 0 ? (Ia.test(g[2]) && (a = RegExp("</" + g[2], "g")), r = Ne) : g[3] !== void 0 && (r = Ne) : r === Ne ? g[0] === ">" ? (r = a ?? fi, f = -1) : g[1] === void 0 ? f = -2 : (f = r.lastIndex - g[2].length, p = g[1], r = g[3] === void 0 ? Ne : g[3] === '"' ? Js : Xs) : r === Js || r === Xs ? r = Ne : r === Ys || r === Zs ? r = fi : (r = Ne, a = void 0);
110
+ let p, f, g = -1, k = 0;
111
+ for (; k < d.length && (r.lastIndex = k, f = r.exec(d), f !== null); ) k = r.lastIndex, r === fi ? f[1] === "!--" ? r = Ys : f[1] !== void 0 ? r = Zs : f[2] !== void 0 ? (Ia.test(f[2]) && (a = RegExp("</" + f[2], "g")), r = Ne) : f[3] !== void 0 && (r = Ne) : r === Ne ? f[0] === ">" ? (r = a ?? fi, g = -1) : f[1] === void 0 ? g = -2 : (g = r.lastIndex - f[2].length, p = f[1], r = f[3] === void 0 ? Ne : f[3] === '"' ? Js : Xs) : r === Js || r === Xs ? r = Ne : r === Ys || r === Zs ? r = fi : (r = Ne, a = void 0);
112
112
  const b = r === Ne && i[l + 1].startsWith("/>") ? " " : "";
113
- n += r === fi ? d + kn : f >= 0 ? (s.push(p), d.slice(0, f) + Pa + d.slice(f) + ye + b) : d + ye + (f === -2 ? l : b);
113
+ n += r === fi ? d + kn : g >= 0 ? (s.push(p), d.slice(0, g) + Pa + d.slice(g) + be + b) : d + be + (g === -2 ? l : b);
114
114
  }
115
115
  return [Da(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
116
116
  };
@@ -119,29 +119,29 @@ let Os = class Ra {
119
119
  let a;
120
120
  this.parts = [];
121
121
  let n = 0, r = 0;
122
- const l = t.length - 1, d = this.parts, [p, g] = wn(t, e);
122
+ const l = t.length - 1, d = this.parts, [p, f] = wn(t, e);
123
123
  if (this.el = Ra.createElement(p, s), Pe.currentNode = this.el.content, e === 2 || e === 3) {
124
- const f = this.el.content.firstChild;
125
- f.replaceWith(...f.childNodes);
124
+ const g = this.el.content.firstChild;
125
+ g.replaceWith(...g.childNodes);
126
126
  }
127
127
  for (; (a = Pe.nextNode()) !== null && d.length < l; ) {
128
128
  if (a.nodeType === 1) {
129
- if (a.hasAttributes()) for (const f of a.getAttributeNames()) if (f.endsWith(Pa)) {
130
- const k = g[r++], b = a.getAttribute(f).split(ye), y = /([.?@])?(.*)/.exec(k);
131
- d.push({ type: 1, index: n, name: y[2], strings: b, ctor: y[1] === "." ? Sn : y[1] === "?" ? Cn : y[1] === "@" ? Tn : rs }), a.removeAttribute(f);
132
- } else f.startsWith(ye) && (d.push({ type: 6, index: n }), a.removeAttribute(f));
129
+ if (a.hasAttributes()) for (const g of a.getAttributeNames()) if (g.endsWith(Pa)) {
130
+ const k = f[r++], b = a.getAttribute(g).split(be), y = /([.?@])?(.*)/.exec(k);
131
+ d.push({ type: 1, index: n, name: y[2], strings: b, ctor: y[1] === "." ? Sn : y[1] === "?" ? Cn : y[1] === "@" ? Tn : rs }), a.removeAttribute(g);
132
+ } else g.startsWith(be) && (d.push({ type: 6, index: n }), a.removeAttribute(g));
133
133
  if (Ia.test(a.tagName)) {
134
- const f = a.textContent.split(ye), k = f.length - 1;
134
+ const g = a.textContent.split(be), k = g.length - 1;
135
135
  if (k > 0) {
136
136
  a.textContent = Ji ? Ji.emptyScript : "";
137
- for (let b = 0; b < k; b++) a.append(f[b], Ni()), Pe.nextNode(), d.push({ type: 2, index: ++n });
138
- a.append(f[k], Ni());
137
+ for (let b = 0; b < k; b++) a.append(g[b], Ni()), Pe.nextNode(), d.push({ type: 2, index: ++n });
138
+ a.append(g[k], Ni());
139
139
  }
140
140
  }
141
141
  } else if (a.nodeType === 8) if (a.data === Ma) d.push({ type: 2, index: n });
142
142
  else {
143
- let f = -1;
144
- for (; (f = a.data.indexOf(ye, f + 1)) !== -1; ) d.push({ type: 7, index: n }), f += ye.length - 1;
143
+ let g = -1;
144
+ for (; (g = a.data.indexOf(be, g + 1)) !== -1; ) d.push({ type: 7, index: n }), g += be.length - 1;
145
145
  }
146
146
  n++;
147
147
  }
@@ -153,7 +153,7 @@ let Os = class Ra {
153
153
  };
154
154
  function Qe(i, t, e = i, s) {
155
155
  var a, n;
156
- if (t === $t) return t;
156
+ if (t === _t) return t;
157
157
  let r = s !== void 0 ? (a = e._$Co) == null ? void 0 : a[s] : e._$Cl;
158
158
  const l = Ai(t) ? void 0 : t._$litDirective$;
159
159
  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 = Qe(i, r._$AS(i, t.values), r, s)), t;
@@ -205,7 +205,7 @@ let xn = class {
205
205
  return this._$AB;
206
206
  }
207
207
  _$AI(t, e = this) {
208
- t = Qe(this, t, e), Ai(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== $t && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : $n(t) ? this.k(t) : this._(t);
208
+ t = Qe(this, t, e), Ai(t) ? t === $ || t == null || t === "" ? (this._$AH !== $ && this._$AR(), this._$AH = $) : t !== this._$AH && t !== _t && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : $n(t) ? this.k(t) : this._(t);
209
209
  }
210
210
  O(t) {
211
211
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -260,11 +260,11 @@ let xn = class {
260
260
  _$AI(t, e = this, s, a) {
261
261
  const n = this.strings;
262
262
  let r = !1;
263
- if (n === void 0) t = Qe(this, t, e, 0), r = !Ai(t) || t !== this._$AH && t !== $t, r && (this._$AH = t);
263
+ if (n === void 0) t = Qe(this, t, e, 0), r = !Ai(t) || t !== this._$AH && t !== _t, r && (this._$AH = t);
264
264
  else {
265
265
  const l = t;
266
266
  let d, p;
267
- for (t = n[0], d = 0; d < n.length - 1; d++) p = Qe(this, l[s + d], e, d), p === $t && (p = this._$AH[d]), r || (r = !Ai(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
267
+ for (t = n[0], d = 0; d < n.length - 1; d++) p = Qe(this, l[s + d], e, d), p === _t && (p = this._$AH[d]), r || (r = !Ai(p) || p !== this._$AH[d]), p === $ ? t = $ : t !== $ && (t += (p ?? "") + n[d + 1]), this._$AH[d] = p;
268
268
  }
269
269
  r && !a && this.j(t);
270
270
  }
@@ -290,7 +290,7 @@ let xn = class {
290
290
  super(t, e, s, a, n), this.type = 5;
291
291
  }
292
292
  _$AI(t, e = this) {
293
- if ((t = Qe(this, t, e, 0) ?? $) === $t) return;
293
+ if ((t = Qe(this, t, e, 0) ?? $) === _t) return;
294
294
  const s = this._$AH, a = t === $ && s !== $ || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== $ && (s === $ || a);
295
295
  a && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
296
296
  }
@@ -325,7 +325,7 @@ const En = (i, t, e) => {
325
325
  * Copyright 2017 Google LLC
326
326
  * SPDX-License-Identifier: BSD-3-Clause
327
327
  */
328
- const B = (i) => (t, e) => {
328
+ const V = (i) => (t, e) => {
329
329
  e !== void 0 ? e.addInitializer((() => {
330
330
  customElements.define(i, t);
331
331
  })) : customElements.define(i, t);
@@ -664,7 +664,7 @@ let Ze = class extends Ye {
664
664
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
665
665
  }
666
666
  render() {
667
- return $t;
667
+ return _t;
668
668
  }
669
669
  };
670
670
  var ra;
@@ -672,7 +672,7 @@ Ze._$litElement$ = !0, Ze.finalized = !0, (ra = Ei.litElementHydrateSupport) ==
672
672
  const oa = Ei.litElementPolyfillSupport;
673
673
  oa == null || oa({ LitElement: Ze });
674
674
  (Ei.litElementVersions ?? (Ei.litElementVersions = [])).push("4.2.1");
675
- const Hn = { hi: "Hei!" }, qn = { from: "Fra", to: "Til" }, zn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Wn = { 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" }, Kn = { 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." } }, vt = {
675
+ const Hn = { hi: "Hei!" }, qn = { from: "Fra", to: "Til" }, zn = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, Wn = { 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" }, Kn = { 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." } }, bt = {
676
676
  example: Hn,
677
677
  generic: qn,
678
678
  calendar: zn,
@@ -686,7 +686,7 @@ var Gn = Object.defineProperty, Va = (i, t, e, s) => {
686
686
  };
687
687
  let os = class extends Ze {
688
688
  constructor() {
689
- super(...arguments), this.strings = vt, this.role = null;
689
+ super(...arguments), this.strings = bt, this.role = null;
690
690
  }
691
691
  /**
692
692
  * Add support for Hot Module Reloading in dev mode
@@ -701,7 +701,7 @@ Va([
701
701
  Va([
702
702
  o({ type: String })
703
703
  ], os.prototype, "role");
704
- let G = class extends os {
704
+ let K = class extends os {
705
705
  /**
706
706
  * Make sure the component renders in light DOM instead of shadow DOM
707
707
  */
@@ -757,7 +757,7 @@ const O = Fe(class extends li {
757
757
  const r = !!t[n];
758
758
  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)));
759
759
  }
760
- return $t;
760
+ return _t;
761
761
  }
762
762
  });
763
763
  /**
@@ -877,8 +877,8 @@ const { I: Zn } = An, Fa = (i) => i.strings === void 0, la = () => document.crea
877
877
  if (r !== n || d) {
878
878
  let p = e._$AA;
879
879
  for (; p !== r; ) {
880
- const g = p.nextSibling;
881
- a.insertBefore(p, n), p = g;
880
+ const f = p.nextSibling;
881
+ a.insertBefore(p, n), p = f;
882
882
  }
883
883
  }
884
884
  }
@@ -996,7 +996,7 @@ let es = class extends li {
996
996
  }
997
997
  render(t) {
998
998
  if (t === $ || t == null) return this._t = void 0, this.it = t;
999
- if (t === $t) return t;
999
+ if (t === _t) return t;
1000
1000
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
1001
1001
  if (t === this.it) return this._t;
1002
1002
  this.it = t;
@@ -1020,7 +1020,7 @@ var ar = Object.defineProperty, nr = Object.getOwnPropertyDescriptor, Di = (i, t
1020
1020
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1021
1021
  return s && a && ar(t, e, a), a;
1022
1022
  };
1023
- const Ms = "https://punkt-cdn.oslo.kommune.no/13.12/icons/";
1023
+ const Ms = "https://punkt-cdn.oslo.kommune.no/13.13/icons/";
1024
1024
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ms);
1025
1025
  const rr = (i) => new Promise((t) => setTimeout(t, i)), Zi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', $s = {}, or = async (i, t) => {
1026
1026
  let e = 0;
@@ -1031,7 +1031,7 @@ const rr = (i) => new Promise((t) => setTimeout(t, i)), Zi = '<svg xmlns="http:/
1031
1031
  window.pktFetch(t + i + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + t + i + ".svg"), Zi)).then((a) => (a !== Zi && s && localStorage.setItem(t + i + ".svg", a), $s[t + i + ".svg"] = "fetched", a))
1032
1032
  )) : Promise.resolve(Zi);
1033
1033
  };
1034
- let Re = class extends G {
1034
+ let Re = class extends K {
1035
1035
  constructor() {
1036
1036
  super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ms, this.name = "", this.icon = ha(Zi), this._updatedProps = [];
1037
1037
  }
@@ -1066,7 +1066,7 @@ Di([
1066
1066
  o({ type: Array, noAccessor: !0 })
1067
1067
  ], Re.prototype, "_updatedProps", 2);
1068
1068
  Re = Di([
1069
- B("pkt-icon")
1069
+ V("pkt-icon")
1070
1070
  ], Re);
1071
1071
  /**
1072
1072
  * @license
@@ -1074,13 +1074,13 @@ Re = Di([
1074
1074
  * SPDX-License-Identifier: BSD-3-Clause
1075
1075
  */
1076
1076
  const S = (i) => i ?? $;
1077
- var lr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Nt = (i, t, e, s) => {
1077
+ var lr = Object.defineProperty, hr = Object.getOwnPropertyDescriptor, Tt = (i, t, e, s) => {
1078
1078
  for (var a = s > 1 ? void 0 : s ? hr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1079
1079
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1080
1080
  return s && a && lr(t, e, a), a;
1081
1081
  };
1082
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
1083
- let bt = class extends G {
1082
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.13/animations/";
1083
+ let yt = class extends K {
1084
1084
  constructor() {
1085
1085
  super(), this.defaultSlot = N(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", 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);
1086
1086
  }
@@ -1139,48 +1139,48 @@ let bt = class extends G {
1139
1139
  `;
1140
1140
  }
1141
1141
  };
1142
- Nt([
1142
+ Tt([
1143
1143
  o({ type: String })
1144
- ], bt.prototype, "iconName", 2);
1145
- Nt([
1144
+ ], yt.prototype, "iconName", 2);
1145
+ Tt([
1146
1146
  o({ type: String })
1147
- ], bt.prototype, "secondIconName", 2);
1148
- Nt([
1147
+ ], yt.prototype, "secondIconName", 2);
1148
+ Tt([
1149
1149
  o({ type: String })
1150
- ], bt.prototype, "mode", 2);
1151
- Nt([
1150
+ ], yt.prototype, "mode", 2);
1151
+ Tt([
1152
1152
  o({ type: String })
1153
- ], bt.prototype, "size", 2);
1154
- Nt([
1153
+ ], yt.prototype, "size", 2);
1154
+ Tt([
1155
1155
  o({ type: String })
1156
- ], bt.prototype, "color", 2);
1157
- Nt([
1156
+ ], yt.prototype, "color", 2);
1157
+ Tt([
1158
1158
  o({ type: String })
1159
- ], bt.prototype, "skin", 2);
1160
- Nt([
1159
+ ], yt.prototype, "skin", 2);
1160
+ Tt([
1161
1161
  o({ type: String })
1162
- ], bt.prototype, "variant", 2);
1163
- Nt([
1162
+ ], yt.prototype, "variant", 2);
1163
+ Tt([
1164
1164
  o({ type: String, reflect: !0 })
1165
- ], bt.prototype, "state", 2);
1166
- Nt([
1165
+ ], yt.prototype, "state", 2);
1166
+ Tt([
1167
1167
  o({ type: String, reflect: !0 })
1168
- ], bt.prototype, "type", 2);
1169
- Nt([
1168
+ ], yt.prototype, "type", 2);
1169
+ Tt([
1170
1170
  o({ type: String })
1171
- ], bt.prototype, "form", 2);
1172
- Nt([
1171
+ ], yt.prototype, "form", 2);
1172
+ Tt([
1173
1173
  o({ type: Boolean, reflect: !0 })
1174
- ], bt.prototype, "isLoading", 2);
1175
- Nt([
1174
+ ], yt.prototype, "isLoading", 2);
1175
+ Tt([
1176
1176
  o({ type: Boolean, reflect: !0 })
1177
- ], bt.prototype, "disabled", 2);
1178
- Nt([
1177
+ ], yt.prototype, "disabled", 2);
1178
+ Tt([
1179
1179
  o({ type: String })
1180
- ], bt.prototype, "loadingAnimationPath", 2);
1181
- bt = Nt([
1182
- B("pkt-button")
1183
- ], bt);
1180
+ ], yt.prototype, "loadingAnimationPath", 2);
1181
+ yt = Tt([
1182
+ V("pkt-button")
1183
+ ], yt);
1184
1184
  const dr = { skin: { default: "info" }, ariaLive: { default: "polite" }, compact: { default: !1 }, closeAlert: { default: !1 } }, Wi = {
1185
1185
  props: dr
1186
1186
  };
@@ -1189,7 +1189,7 @@ var cr = Object.defineProperty, pr = Object.getOwnPropertyDescriptor, ae = (i, t
1189
1189
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1190
1190
  return s && a && cr(t, e, a), a;
1191
1191
  };
1192
- let Yt = class extends G {
1192
+ let Yt = class extends K {
1193
1193
  constructor() {
1194
1194
  super(), this.defaultSlot = N(), this.compact = Wi.props.compact.default, this.title = "", this.skin = Wi.props.skin.default, this.ariaLive = Wi.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = Wi.props.closeAlert.default, this.date = null, this.role = "status", this._isClosed = !1, this.close = (t) => {
1195
1195
  this._isClosed = !0, this.dispatchEvent(
@@ -1284,7 +1284,7 @@ ae([
1284
1284
  R()
1285
1285
  ], Yt.prototype, "_isClosed", 2);
1286
1286
  Yt = ae([
1287
- B("pkt-alert")
1287
+ V("pkt-alert")
1288
1288
  ], Yt);
1289
1289
  var ur = Object.defineProperty, mr = Object.getOwnPropertyDescriptor, Ri = (i, t, e, s) => {
1290
1290
  for (var a = s > 1 ? void 0 : s ? mr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
@@ -1345,14 +1345,14 @@ Ri([
1345
1345
  o({ type: String, reflect: !0, attribute: "name" })
1346
1346
  ], ei.prototype, "name", 2);
1347
1347
  ei = Ri([
1348
- B("pkt-accordion")
1348
+ V("pkt-accordion")
1349
1349
  ], ei);
1350
1350
  var fr = Object.defineProperty, gr = Object.getOwnPropertyDescriptor, Ue = (i, t, e, s) => {
1351
1351
  for (var a = s > 1 ? void 0 : s ? gr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1352
1352
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1353
1353
  return s && a && fr(t, e, a), a;
1354
1354
  };
1355
- let $e = class extends G {
1355
+ let ke = class extends K {
1356
1356
  constructor() {
1357
1357
  super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = N(), this.defaultSlot = N(), this.slotController = new rt(this, this.defaultSlot);
1358
1358
  }
@@ -1394,31 +1394,31 @@ let $e = class extends G {
1394
1394
  };
1395
1395
  Ue([
1396
1396
  o({ type: Boolean })
1397
- ], $e.prototype, "defaultOpen", 2);
1397
+ ], ke.prototype, "defaultOpen", 2);
1398
1398
  Ue([
1399
1399
  o({ type: String })
1400
- ], $e.prototype, "title", 2);
1400
+ ], ke.prototype, "title", 2);
1401
1401
  Ue([
1402
1402
  o({ type: String, reflect: !0 })
1403
- ], $e.prototype, "skin", 2);
1403
+ ], ke.prototype, "skin", 2);
1404
1404
  Ue([
1405
1405
  o({ type: Boolean, reflect: !0 })
1406
- ], $e.prototype, "compact", 2);
1406
+ ], ke.prototype, "compact", 2);
1407
1407
  Ue([
1408
1408
  o({ type: Boolean, reflect: !0 })
1409
- ], $e.prototype, "isOpen", 2);
1409
+ ], ke.prototype, "isOpen", 2);
1410
1410
  Ue([
1411
1411
  o({ type: String, reflect: !0 })
1412
- ], $e.prototype, "name", 2);
1413
- $e = Ue([
1414
- B("pkt-accordion-item")
1415
- ], $e);
1412
+ ], ke.prototype, "name", 2);
1413
+ ke = Ue([
1414
+ V("pkt-accordion-item")
1415
+ ], ke);
1416
1416
  var vr = Object.defineProperty, br = Object.getOwnPropertyDescriptor, ls = (i, t, e, s) => {
1417
1417
  for (var a = s > 1 ? void 0 : s ? br(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1418
1418
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1419
1419
  return s && a && vr(t, e, a), a;
1420
1420
  };
1421
- let ii = class extends G {
1421
+ let ii = class extends K {
1422
1422
  constructor() {
1423
1423
  super(...arguments), this.href = "", this.text = "Forsiden", this.ariaLabel = "";
1424
1424
  }
@@ -1452,7 +1452,7 @@ ls([
1452
1452
  o({ type: String })
1453
1453
  ], ii.prototype, "ariaLabel", 2);
1454
1454
  ii = ls([
1455
- B("pkt-backlink")
1455
+ V("pkt-backlink")
1456
1456
  ], ii);
1457
1457
  const za = 6048e5, yr = 864e5, da = Symbol.for("constructDateFrom");
1458
1458
  function ie(i, t) {
@@ -1471,8 +1471,8 @@ function hs() {
1471
1471
  }
1472
1472
  function Oi(i, t) {
1473
1473
  var e, s, a, n;
1474
- const r = hs(), 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 = Bt(i, t == null ? void 0 : t.in), p = d.getDay(), g = (p < l ? 7 : 0) + p - l;
1475
- return d.setDate(d.getDate() - g), d.setHours(0, 0, 0, 0), d;
1474
+ const r = hs(), 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 = Bt(i, t == null ? void 0 : t.in), p = d.getDay(), f = (p < l ? 7 : 0) + p - l;
1475
+ return d.setDate(d.getDate() - f), d.setHours(0, 0, 0, 0), d;
1476
1476
  }
1477
1477
  function is(i, t) {
1478
1478
  return Oi(i, { ...t, weekStartsOn: 1 });
@@ -1827,17 +1827,17 @@ function yi(i) {
1827
1827
  const s = e.width, a = s && i.matchPatterns[s] || i.matchPatterns[i.defaultMatchWidth], n = t.match(a);
1828
1828
  if (!n)
1829
1829
  return null;
1830
- const r = n[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], d = Array.isArray(l) ? qr(l, (f) => f.test(r)) : (
1830
+ const r = n[0], l = s && i.parsePatterns[s] || i.parsePatterns[i.defaultParseWidth], d = Array.isArray(l) ? qr(l, (g) => g.test(r)) : (
1831
1831
  // [TODO] -- I challenge you to fix the type
1832
- Hr(l, (f) => f.test(r))
1832
+ Hr(l, (g) => g.test(r))
1833
1833
  );
1834
1834
  let p;
1835
1835
  p = i.valueCallback ? i.valueCallback(d) : d, p = e.valueCallback ? (
1836
1836
  // [TODO] -- I challenge you to fix the type
1837
1837
  e.valueCallback(p)
1838
1838
  ) : p;
1839
- const g = t.slice(r.length);
1840
- return { value: p, rest: g };
1839
+ const f = t.slice(r.length);
1840
+ return { value: p, rest: f };
1841
1841
  };
1842
1842
  }
1843
1843
  function Hr(i, t) {
@@ -1988,12 +1988,12 @@ function oo(i, t) {
1988
1988
  }
1989
1989
  function Ga(i, t) {
1990
1990
  var e, s, a, n;
1991
- const r = Bt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = hs(), 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, g = ie((t == null ? void 0 : t.in) || i, 0);
1992
- g.setFullYear(l + 1, 0, p), g.setHours(0, 0, 0, 0);
1993
- const f = Oi(g, t), k = ie((t == null ? void 0 : t.in) || i, 0);
1991
+ const r = Bt(i, t == null ? void 0 : t.in), l = r.getFullYear(), d = hs(), 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, f = ie((t == null ? void 0 : t.in) || i, 0);
1992
+ f.setFullYear(l + 1, 0, p), f.setHours(0, 0, 0, 0);
1993
+ const g = Oi(f, t), k = ie((t == null ? void 0 : t.in) || i, 0);
1994
1994
  k.setFullYear(l, 0, p), k.setHours(0, 0, 0, 0);
1995
1995
  const b = Oi(k, t);
1996
- return +r >= +f ? l + 1 : +r >= +b ? l : l - 1;
1996
+ return +r >= +g ? l + 1 : +r >= +b ? l : l - 1;
1997
1997
  }
1998
1998
  function lo(i, t) {
1999
1999
  var e, s, a, n;
@@ -2008,7 +2008,7 @@ function H(i, t) {
2008
2008
  const e = i < 0 ? "-" : "", s = Math.abs(i).toString().padStart(t, "0");
2009
2009
  return e + s;
2010
2010
  }
2011
- const ve = {
2011
+ const ge = {
2012
2012
  // Year
2013
2013
  y(i, t) {
2014
2014
  const e = i.getFullYear(), s = e > 0 ? e : 1 - e;
@@ -2094,7 +2094,7 @@ const ve = {
2094
2094
  const s = i.getFullYear(), a = s > 0 ? s : 1 - s;
2095
2095
  return e.ordinalNumber(a, { unit: "year" });
2096
2096
  }
2097
- return ve.y(i, t);
2097
+ return ge.y(i, t);
2098
2098
  },
2099
2099
  // Local week-numbering year
2100
2100
  Y: function(i, t, e, s) {
@@ -2197,7 +2197,7 @@ const ve = {
2197
2197
  switch (t) {
2198
2198
  case "M":
2199
2199
  case "MM":
2200
- return ve.M(i, t);
2200
+ return ge.M(i, t);
2201
2201
  // 1st, 2nd, ..., 12th
2202
2202
  case "Mo":
2203
2203
  return e.ordinalNumber(s + 1, { unit: "month" });
@@ -2262,7 +2262,7 @@ const ve = {
2262
2262
  },
2263
2263
  // Day of the month
2264
2264
  d: function(i, t, e) {
2265
- return t === "do" ? e.ordinalNumber(i.getDate(), { unit: "date" }) : ve.d(i, t);
2265
+ return t === "do" ? e.ordinalNumber(i.getDate(), { unit: "date" }) : ge.d(i, t);
2266
2266
  },
2267
2267
  // Day of year
2268
2268
  D: function(i, t, e) {
@@ -2508,11 +2508,11 @@ const ve = {
2508
2508
  let s = i.getHours() % 12;
2509
2509
  return s === 0 && (s = 12), e.ordinalNumber(s, { unit: "hour" });
2510
2510
  }
2511
- return ve.h(i, t);
2511
+ return ge.h(i, t);
2512
2512
  },
2513
2513
  // Hour [0-23]
2514
2514
  H: function(i, t, e) {
2515
- return t === "Ho" ? e.ordinalNumber(i.getHours(), { unit: "hour" }) : ve.H(i, t);
2515
+ return t === "Ho" ? e.ordinalNumber(i.getHours(), { unit: "hour" }) : ge.H(i, t);
2516
2516
  },
2517
2517
  // Hour [0-11]
2518
2518
  K: function(i, t, e) {
@@ -2526,15 +2526,15 @@ const ve = {
2526
2526
  },
2527
2527
  // Minute
2528
2528
  m: function(i, t, e) {
2529
- return t === "mo" ? e.ordinalNumber(i.getMinutes(), { unit: "minute" }) : ve.m(i, t);
2529
+ return t === "mo" ? e.ordinalNumber(i.getMinutes(), { unit: "minute" }) : ge.m(i, t);
2530
2530
  },
2531
2531
  // Second
2532
2532
  s: function(i, t, e) {
2533
- return t === "so" ? e.ordinalNumber(i.getSeconds(), { unit: "second" }) : ve.s(i, t);
2533
+ return t === "so" ? e.ordinalNumber(i.getSeconds(), { unit: "second" }) : ge.s(i, t);
2534
2534
  },
2535
2535
  // Fraction of second
2536
2536
  S: function(i, t) {
2537
- return ve.S(i, t);
2537
+ return ge.S(i, t);
2538
2538
  },
2539
2539
  // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
2540
2540
  X: function(i, t, e) {
@@ -2701,8 +2701,8 @@ function bo(i, t, e) {
2701
2701
  const yo = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ko = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, $o = /^'([^]*?)'?$/, _o = /''/g, wo = /[a-zA-Z]/;
2702
2702
  function xo(i, t, e) {
2703
2703
  var s, a, n, r;
2704
- const l = hs(), d = l.locale ?? no, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, g = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, f = Bt(i, void 0);
2705
- if (!xr(f))
2704
+ const l = hs(), d = l.locale ?? no, p = l.firstWeekContainsDate ?? ((a = (s = l.locale) == null ? void 0 : s.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, f = l.weekStartsOn ?? ((r = (n = l.locale) == null ? void 0 : n.options) == null ? void 0 : r.weekStartsOn) ?? 0, g = Bt(i, void 0);
2705
+ if (!xr(g))
2706
2706
  throw new RangeError("Invalid time value");
2707
2707
  let k = t.match(ko).map((y) => {
2708
2708
  const w = y[0];
@@ -2725,10 +2725,10 @@ function xo(i, t, e) {
2725
2725
  );
2726
2726
  return { isToken: !1, value: y };
2727
2727
  });
2728
- d.localize.preprocessor && (k = d.localize.preprocessor(f, k));
2728
+ d.localize.preprocessor && (k = d.localize.preprocessor(g, k));
2729
2729
  const b = {
2730
2730
  firstWeekContainsDate: p,
2731
- weekStartsOn: g,
2731
+ weekStartsOn: f,
2732
2732
  locale: d
2733
2733
  };
2734
2734
  return k.map((y) => {
@@ -2736,7 +2736,7 @@ function xo(i, t, e) {
2736
2736
  const w = y.value;
2737
2737
  (go(w) || fo(w)) && vo(w, t, String(i));
2738
2738
  const C = ua[w[0]];
2739
- return C(f, w, d.localize, b);
2739
+ return C(g, w, d.localize, b);
2740
2740
  }).join("");
2741
2741
  }
2742
2742
  function So(i) {
@@ -2830,13 +2830,13 @@ function Xa(i) {
2830
2830
  d && Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + d);
2831
2831
  const p = /* @__PURE__ */ new Date(+i);
2832
2832
  p.setUTCSeconds(0);
2833
- const g = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
2834
- (f || g) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + g));
2833
+ const f = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, g = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
2834
+ (g || f) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + g), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + g + f));
2835
2835
  const k = Me(i.timeZone, i), b = k > 0 ? Math.floor(k) : Math.ceil(k), y = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = y - d;
2836
2836
  if (w && C) {
2837
2837
  Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
2838
- const P = Me(i.timeZone, i), T = P > 0 ? Math.floor(P) : Math.ceil(P), j = b - T;
2839
- j && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + j), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + j));
2838
+ const P = Me(i.timeZone, i), T = P > 0 ? Math.floor(P) : Math.ceil(P), F = b - T;
2839
+ F && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + F), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + F));
2840
2840
  }
2841
2841
  }
2842
2842
  let Ds = class Si extends wi {
@@ -2900,7 +2900,7 @@ const Eo = (i = window.pktTz) => {
2900
2900
  const t = new Ds((/* @__PURE__ */ new Date()).toISOString(), i);
2901
2901
  return t.setHours(0, 0, 0, 0), isNaN(t.getTime()) ? /* @__PURE__ */ new Date() : new Date(t.getFullYear(), t.getMonth(), t.getDate());
2902
2902
  };
2903
- function _e(i) {
2903
+ function $e(i) {
2904
2904
  if (!i || i === "") return /* @__PURE__ */ new Date();
2905
2905
  if (/^\d{4}-\d{2}-\d{2}$/.test(i)) {
2906
2906
  const [t, e, s] = i.split("-").map(Number);
@@ -2916,18 +2916,18 @@ const nt = (i) => {
2916
2916
  if (!i || isNaN(i.getTime())) return "";
2917
2917
  const t = i.getFullYear(), e = String(i.getMonth() + 1).padStart(2, "0"), s = String(i.getDate()).padStart(2, "0");
2918
2918
  return `${t}-${e}-${s}`;
2919
- }, we = (i) => {
2919
+ }, _e = (i) => {
2920
2920
  if (!i)
2921
2921
  return null;
2922
- const t = _e(i);
2922
+ const t = $e(i);
2923
2923
  return isNaN(t.getTime()) ? null : t;
2924
2924
  }, ka = (i, t) => {
2925
2925
  const e = ce(i);
2926
2926
  return isNaN(e.getTime()) ? "" : xo(e, t);
2927
2927
  }, ce = (i = "", t) => {
2928
- const e = typeof i == "string" ? _e(i) : i;
2928
+ const e = typeof i == "string" ? $e(i) : i;
2929
2929
  return !e || isNaN(e.getTime()) ? /* @__PURE__ */ new Date() : e;
2930
- }, be = (i, t, e = 1) => {
2930
+ }, ve = (i, t, e = 1) => {
2931
2931
  if (typeof i != "number" || typeof t != "number" || typeof e != "number" || isNaN(i) || isNaN(t) || isNaN(e))
2932
2932
  return /* @__PURE__ */ new Date();
2933
2933
  const s = new Date(i, t, e);
@@ -2948,22 +2948,22 @@ const nt = (i) => {
2948
2948
  const e = i.getDay().toString();
2949
2949
  return t.includes(e);
2950
2950
  }, Ja = (i, t, e, s, a) => !(!i || isNaN(i.getTime()) || !Po(i, t, e) || s && Mo(i, s) || a && Io(i, a)), Do = (i, t, e, s, a) => i.filter((n) => {
2951
- const r = we(n);
2951
+ const r = _e(n);
2952
2952
  return r && Ja(r, t, e, s, a);
2953
2953
  }), Ro = (i) => i.slice().sort((t, e) => {
2954
- const s = we(t), a = we(e);
2954
+ const s = _e(t), a = _e(e);
2955
2955
  return !s || !a ? 0 : s.getTime() - a.getTime();
2956
2956
  }), Lo = (i, t) => {
2957
- const e = we(i), s = we(t);
2957
+ const e = _e(i), s = _e(t);
2958
2958
  return !e || !s ? !1 : e <= s;
2959
2959
  }, Qa = (i) => {
2960
2960
  if (Array.isArray(i)) return i;
2961
2961
  if (typeof i == "string") return i.split(",");
2962
- }, Bo = (i) => i ? _e(i) : null, Vo = (i) => {
2962
+ }, Bo = (i) => i ? $e(i) : null, Vo = (i) => {
2963
2963
  if (typeof i == "string")
2964
- return i.split(",").map((t) => _e(t));
2964
+ return i.split(",").map((t) => $e(t));
2965
2965
  if (Array.isArray(i))
2966
- return i.map((t) => _e(t));
2966
+ return i.map((t) => $e(t));
2967
2967
  }, hi = {
2968
2968
  csvToArray: Qa,
2969
2969
  stringToDate: Bo,
@@ -2976,7 +2976,7 @@ var Fo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, W = (i, t,
2976
2976
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
2977
2977
  return s && a && Fo(t, e, a), a;
2978
2978
  };
2979
- let q = class extends G {
2979
+ let q = class extends K {
2980
2980
  constructor() {
2981
2981
  super(...arguments), this.multiple = Ee.props.multiple.default, this.maxMultiple = Ee.props.maxMultiple.default, this.range = Ee.props.range.default, this.weeknumbers = Ee.props.weeknumbers.default, this.withcontrols = Ee.props.withcontrols.default, this.selected = [], this.earliest = Ee.props.earliest.default, this.latest = Ee.props.latest.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.dayStrings = this.strings.dates.daysShort, this.dayStringsLong = this.strings.dates.days, this.monthStrings = this.strings.dates.months, this.weekString = this.strings.dates.week, this.prevMonthString = this.strings.dates.prevMonth, this.nextMonthString = this.strings.dates.nextMonth, this._selected = [], this.year = 0, this.month = 0, this.week = 0, this.rangeHovered = null, this.inRange = {}, this.focusedDate = null, this.selectableDates = [], this.currentmonthtouched = !1, this.tabIndexSet = 0;
2982
2982
  }
@@ -2999,7 +2999,7 @@ let q = class extends G {
2999
2999
  this.addEventListener("keydown", this.handleKeydown);
3000
3000
  }
3001
3001
  convertSelected() {
3002
- 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) {
3002
+ 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) {
3003
3003
  const t = ws({
3004
3004
  start: this._selected[0],
3005
3005
  end: this._selected[1]
@@ -3017,7 +3017,7 @@ let q = class extends G {
3017
3017
  }
3018
3018
  setCurrentMonth() {
3019
3019
  if (this.currentmonth === null && !this.currentmonthtouched && (this.currentmonthtouched = !0), this.selected.length && this.selected[0] !== "") {
3020
- const t = _e(this.selected[this.selected.length - 1]);
3020
+ const t = $e(this.selected[this.selected.length - 1]);
3021
3021
  this.currentmonth = isNaN(t.getTime()) ? ki(/* @__PURE__ */ new Date()) : t;
3022
3022
  } else this.currentmonth === null && (this.currentmonth = ki(/* @__PURE__ */ new Date()));
3023
3023
  (!this.currentmonth || isNaN(this.currentmonth.getTime())) && (this.currentmonth = ki(/* @__PURE__ */ new Date())), this.year = this.currentmonth.getFullYear(), this.month = this.currentmonth.getMonth();
@@ -3043,19 +3043,19 @@ let q = class extends G {
3043
3043
  if (((s = t.target) == null ? void 0 : s.nodeName) === "INPUT" || ((a = t.target) == null ? void 0 : a.nodeName) === "SELECT" || ((n = t.target) == null ? void 0 : n.nodeName) === "BUTTON" && !((l = (r = t.target) == null ? void 0 : r.dataset) != null && l.date))
3044
3044
  return;
3045
3045
  t.preventDefault(), this.focusedDate || this.focusOnCurrentDate();
3046
- const d = this.focusedDate ? ce(this.focusedDate) : be(this.year, this.month, 1);
3046
+ const d = this.focusedDate ? ce(this.focusedDate) : ve(this.year, this.month, 1);
3047
3047
  let p = _s(d, e);
3048
3048
  if (p) {
3049
- let g = this.querySelector(`button[data-date="${nt(p)}"]`);
3050
- if (g instanceof HTMLButtonElement) {
3051
- if (g.dataset.disabled) {
3049
+ let f = this.querySelector(`button[data-date="${nt(p)}"]`);
3050
+ if (f instanceof HTMLButtonElement) {
3051
+ if (f.dataset.disabled) {
3052
3052
  p = _s(p, e);
3053
- let f = this.querySelector(`button[data-date="${nt(p)}"]`);
3054
- for (; f && f instanceof HTMLButtonElement && f.dataset.disabled; )
3055
- p = _s(p, e), f = this.querySelector(`button[data-date="${nt(p)}"]`);
3056
- g = f;
3053
+ let g = this.querySelector(`button[data-date="${nt(p)}"]`);
3054
+ for (; g && g instanceof HTMLButtonElement && g.dataset.disabled; )
3055
+ p = _s(p, e), g = this.querySelector(`button[data-date="${nt(p)}"]`);
3056
+ f = g;
3057
3057
  }
3058
- g instanceof HTMLButtonElement && !g.dataset.disabled && (this.focusedDate = nt(p), g.focus());
3058
+ f instanceof HTMLButtonElement && !f.dataset.disabled && (this.focusedDate = nt(p), f.focus());
3059
3059
  }
3060
3060
  }
3061
3061
  }
@@ -3177,9 +3177,9 @@ let q = class extends G {
3177
3177
  }
3178
3178
  renderDayView(t, e) {
3179
3179
  var s;
3180
- const a = be(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d = Oo(a), p = this.isExcluded(a) || !l && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, g = this.focusedDate ? this.focusedDate === n && !p ? "0" : "-1" : !p && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
3181
- g === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: n, isDisabled: p, tabindex: g });
3182
- const f = {
3180
+ const a = ve(this.year, this.month, t), n = nt(a), r = n === nt(e), l = this.selected.includes(n), d = Oo(a), p = this.isExcluded(a) || !l && this.multiple && this.maxMultiple > 0 && this.selected.length >= this.maxMultiple, f = this.focusedDate ? this.focusedDate === n && !p ? "0" : "-1" : !p && this.tabIndexSet === 0 || this.tabIndexSet === t ? "0" : "-1";
3181
+ f === "0" && (this.tabIndexSet = t), this.selectableDates.push({ currentDateISO: n, isDisabled: p, tabindex: f });
3182
+ const g = {
3183
3183
  "pkt-cal-today": r,
3184
3184
  "pkt-cal-selected": l,
3185
3185
  "pkt-cal-in-range": this.inRange[n],
@@ -3197,7 +3197,7 @@ let q = class extends G {
3197
3197
  "pkt-calendar__date--range-start": this.range && (this.selected.length === 2 || this.rangeHovered !== null) && n === this.selected[0],
3198
3198
  "pkt-calendar__date--range-end": this.range && this.selected.length === 2 && n === this.selected[1]
3199
3199
  };
3200
- return u`<td class=${O(f)}>
3200
+ return u`<td class=${O(g)}>
3201
3201
  <button
3202
3202
  type="button"
3203
3203
  aria-pressed=${l ? "true" : "false"}
@@ -3225,17 +3225,17 @@ let q = class extends G {
3225
3225
  </td>`;
3226
3226
  }
3227
3227
  renderCalendarBody() {
3228
- const t = Eo(), e = be(this.year, this.month, 1), s = be(this.year, this.month + 1, 0), a = (e.getDay() + 6) % 7, n = s.getDate(), r = Math.ceil((n + a) / 7), l = be(this.year, this.month, 0).getDate();
3228
+ const t = Eo(), e = ve(this.year, this.month, 1), s = ve(this.year, this.month + 1, 0), a = (e.getDay() + 6) % 7, n = s.getDate(), r = Math.ceil((n + a) / 7), l = ve(this.year, this.month, 0).getDate();
3229
3229
  let d = 1;
3230
- this.week = Ya(be(this.year, this.month, 1));
3230
+ this.week = Ya(ve(this.year, this.month, 1));
3231
3231
  const p = [];
3232
- for (let g = 0; g < r; g++) {
3233
- const f = [];
3234
- this.weeknumbers && f.push(u`<td class="pkt-cal-week">${this.week}</td>`), this.week++;
3232
+ for (let f = 0; f < r; f++) {
3233
+ const g = [];
3234
+ this.weeknumbers && g.push(u`<td class="pkt-cal-week">${this.week}</td>`), this.week++;
3235
3235
  for (let k = 1; k < 8; k++)
3236
- if (g === 0 && k < a + 1) {
3236
+ if (f === 0 && k < a + 1) {
3237
3237
  const b = l - (a - k);
3238
- f.push(
3238
+ g.push(
3239
3239
  u`<td class="pkt-cal-other">
3240
3240
  <div
3241
3241
  class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
@@ -3245,7 +3245,7 @@ let q = class extends G {
3245
3245
  </div>
3246
3246
  </td>`
3247
3247
  );
3248
- } else d > n ? (f.push(
3248
+ } else d > n ? (g.push(
3249
3249
  u`<td class="pkt-cal-other">
3250
3250
  <div
3251
3251
  class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
@@ -3254,10 +3254,10 @@ let q = class extends G {
3254
3254
  <span class="pkt-btn__text pkt-txt-14-light">${d - n}</span>
3255
3255
  </div>
3256
3256
  </td>`
3257
- ), d++) : (f.push(this.renderDayView(d, t)), d++);
3257
+ ), d++) : (g.push(this.renderDayView(d, t)), d++);
3258
3258
  p.push(
3259
3259
  u`<tr class="pkt-cal-week-row" role="row">
3260
- ${f}
3260
+ ${g}
3261
3261
  </tr>`
3262
3262
  );
3263
3263
  }
@@ -3276,7 +3276,7 @@ let q = class extends G {
3276
3276
  );
3277
3277
  }
3278
3278
  isPrevMonthAllowed() {
3279
- const t = be(this.year, this.month, 0);
3279
+ const t = ve(this.year, this.month, 0);
3280
3280
  return !(this.earliest && ce(this.earliest) > t);
3281
3281
  }
3282
3282
  prevMonth() {
@@ -3284,7 +3284,7 @@ let q = class extends G {
3284
3284
  this.changeMonth(e, t);
3285
3285
  }
3286
3286
  isNextMonthAllowed() {
3287
- const t = be(
3287
+ const t = ve(
3288
3288
  this.month === 11 ? this.year + 1 : this.year,
3289
3289
  this.month === 11 ? 0 : this.month + 1,
3290
3290
  1
@@ -3469,7 +3469,7 @@ W([
3469
3469
  R()
3470
3470
  ], q.prototype, "tabIndexSet", 2);
3471
3471
  q = W([
3472
- B("pkt-calendar")
3472
+ V("pkt-calendar")
3473
3473
  ], q);
3474
3474
  const Ho = { size: { default: "medium" }, skin: { default: "blue" }, closeTag: { default: !1 }, type: { default: "button" } }, Ki = {
3475
3475
  props: Ho
@@ -3479,7 +3479,7 @@ var qo = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, ne = (i, t
3479
3479
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3480
3480
  return s && a && qo(t, e, a), a;
3481
3481
  };
3482
- let qt = class extends G {
3482
+ let qt = class extends K {
3483
3483
  constructor() {
3484
3484
  super(), this.defaultSlot = N(), this.closeTag = Ki.props.closeTag.default, this.size = Ki.props.size.default, this.skin = Ki.props.skin.default, this.textStyle = null, this.iconName = void 0, this.type = Ki.props.type.default, this.ariaLabel = null, this._isClosed = !1, this._ariaDescription = null, this.close = (t) => {
3485
3485
  this._isClosed = !0, this.dispatchEvent(
@@ -3563,7 +3563,7 @@ ne([
3563
3563
  R()
3564
3564
  ], qt.prototype, "_ariaDescription", 2);
3565
3565
  qt = ne([
3566
- B("pkt-tag")
3566
+ V("pkt-tag")
3567
3567
  ], qt);
3568
3568
  var Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, Li = (i, t, e, s) => {
3569
3569
  for (var a = s > 1 ? void 0 : s ? Ko(t, e) : t, n = i.length - 1, r; n >= 0; n--)
@@ -3635,7 +3635,7 @@ Li([
3635
3635
  o({ type: String, reflect: !0 })
3636
3636
  ], Le.prototype, "align", 2);
3637
3637
  Le = Li([
3638
- B("pkt-heading")
3638
+ V("pkt-heading")
3639
3639
  ], Le);
3640
3640
  const Go = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Je = {
3641
3641
  props: Go
@@ -3645,7 +3645,7 @@ var Yo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, mt = (i, t
3645
3645
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3646
3646
  return s && a && Yo(t, e, a), a;
3647
3647
  };
3648
- let ht = class extends G {
3648
+ let lt = class extends K {
3649
3649
  //Constructor
3650
3650
  constructor() {
3651
3651
  super(), this.defaultSlot = N(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Je.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
@@ -3799,40 +3799,40 @@ let ht = class extends G {
3799
3799
  };
3800
3800
  mt([
3801
3801
  o({ type: String })
3802
- ], ht.prototype, "ariaLabel", 2);
3802
+ ], lt.prototype, "ariaLabel", 2);
3803
3803
  mt([
3804
3804
  o({ type: String })
3805
- ], ht.prototype, "metaLead", 2);
3805
+ ], lt.prototype, "metaLead", 2);
3806
3806
  mt([
3807
3807
  o({ type: Boolean })
3808
- ], ht.prototype, "borderOnHover", 2);
3808
+ ], lt.prototype, "borderOnHover", 2);
3809
3809
  mt([
3810
3810
  o({ type: String, reflect: !0 })
3811
- ], ht.prototype, "clickCardLink", 2);
3811
+ ], lt.prototype, "clickCardLink", 2);
3812
3812
  mt([
3813
3813
  o({ type: String })
3814
- ], ht.prototype, "metaTrail", 2);
3814
+ ], lt.prototype, "metaTrail", 2);
3815
3815
  mt([
3816
3816
  o({ type: String })
3817
- ], ht.prototype, "layout", 2);
3817
+ ], lt.prototype, "layout", 2);
3818
3818
  mt([
3819
3819
  o({ type: String })
3820
- ], ht.prototype, "heading", 2);
3820
+ ], lt.prototype, "heading", 2);
3821
3821
  mt([
3822
3822
  o({ type: Number })
3823
- ], ht.prototype, "headinglevel", 2);
3823
+ ], lt.prototype, "headinglevel", 2);
3824
3824
  mt([
3825
3825
  o({ type: Object })
3826
- ], ht.prototype, "image", 2);
3826
+ ], lt.prototype, "image", 2);
3827
3827
  mt([
3828
3828
  o({ type: String })
3829
- ], ht.prototype, "imageShape", 2);
3829
+ ], lt.prototype, "imageShape", 2);
3830
3830
  mt([
3831
3831
  o({ type: Boolean })
3832
- ], ht.prototype, "openLinkInNewTab", 2);
3832
+ ], lt.prototype, "openLinkInNewTab", 2);
3833
3833
  mt([
3834
3834
  o({ type: String })
3835
- ], ht.prototype, "padding", 2);
3835
+ ], lt.prototype, "padding", 2);
3836
3836
  mt([
3837
3837
  o({
3838
3838
  type: String,
@@ -3846,19 +3846,19 @@ mt([
3846
3846
  toAttribute: (i) => i
3847
3847
  }
3848
3848
  })
3849
- ], ht.prototype, "skin", 2);
3849
+ ], lt.prototype, "skin", 2);
3850
3850
  mt([
3851
3851
  o({ type: String })
3852
- ], ht.prototype, "subheading", 2);
3852
+ ], lt.prototype, "subheading", 2);
3853
3853
  mt([
3854
3854
  o({ type: String })
3855
- ], ht.prototype, "tagPosition", 2);
3855
+ ], lt.prototype, "tagPosition", 2);
3856
3856
  mt([
3857
3857
  o({ type: Array })
3858
- ], ht.prototype, "tags", 2);
3859
- ht = mt([
3860
- B("pkt-card")
3861
- ], ht);
3858
+ ], lt.prototype, "tags", 2);
3859
+ lt = mt([
3860
+ V("pkt-card")
3861
+ ], lt);
3862
3862
  /**
3863
3863
  * @license
3864
3864
  * Copyright 2017 Google LLC
@@ -3887,43 +3887,43 @@ const $a = (i, t, e) => {
3887
3887
  const a = Jn(i), { values: n, keys: r } = this.dt(t, e, s);
3888
3888
  if (!Array.isArray(a)) return this.ut = r, n;
3889
3889
  const l = this.ut ?? (this.ut = []), d = [];
3890
- let p, g, f = 0, k = a.length - 1, b = 0, y = n.length - 1;
3891
- for (; f <= k && b <= y; ) if (a[f] === null) f++;
3890
+ let p, f, g = 0, k = a.length - 1, b = 0, y = n.length - 1;
3891
+ for (; g <= k && b <= y; ) if (a[g] === null) g++;
3892
3892
  else if (a[k] === null) k--;
3893
- else if (l[f] === r[b]) d[b] = Ae(a[f], n[b]), f++, b++;
3893
+ else if (l[g] === r[b]) d[b] = Ae(a[g], n[b]), g++, b++;
3894
3894
  else if (l[k] === r[y]) d[y] = Ae(a[k], n[y]), k--, y--;
3895
- else if (l[f] === r[y]) d[y] = Ae(a[f], n[y]), vi(i, d[y + 1], a[f]), f++, y--;
3896
- else if (l[k] === r[b]) d[b] = Ae(a[k], n[b]), vi(i, a[f], a[k]), k--, b++;
3897
- else if (p === void 0 && (p = $a(r, b, y), g = $a(l, f, k)), p.has(l[f])) if (p.has(l[k])) {
3898
- const w = g.get(r[b]), C = w !== void 0 ? a[w] : null;
3895
+ else if (l[g] === r[y]) d[y] = Ae(a[g], n[y]), vi(i, d[y + 1], a[g]), g++, y--;
3896
+ else if (l[k] === r[b]) d[b] = Ae(a[k], n[b]), vi(i, a[g], a[k]), k--, b++;
3897
+ else if (p === void 0 && (p = $a(r, b, y), f = $a(l, g, k)), p.has(l[g])) if (p.has(l[k])) {
3898
+ const w = f.get(r[b]), C = w !== void 0 ? a[w] : null;
3899
3899
  if (C === null) {
3900
- const P = vi(i, a[f]);
3900
+ const P = vi(i, a[g]);
3901
3901
  Ae(P, n[b]), d[b] = P;
3902
- } else d[b] = Ae(C, n[b]), vi(i, a[f], C), a[w] = null;
3902
+ } else d[b] = Ae(C, n[b]), vi(i, a[g], C), a[w] = null;
3903
3903
  b++;
3904
3904
  } else ys(a[k]), k--;
3905
- else ys(a[f]), f++;
3905
+ else ys(a[g]), g++;
3906
3906
  for (; b <= y; ) {
3907
3907
  const w = vi(i, d[y + 1]);
3908
3908
  Ae(w, n[b]), d[b++] = w;
3909
3909
  }
3910
- for (; f <= k; ) {
3911
- const w = a[f++];
3910
+ for (; g <= k; ) {
3911
+ const w = a[g++];
3912
3912
  w !== null && ys(w);
3913
3913
  }
3914
- return this.ut = r, Ua(i, d), $t;
3914
+ return this.ut = r, Ua(i, d), _t;
3915
3915
  }
3916
- }), _a = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), ke = () => {
3916
+ }), _a = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), ye = () => {
3917
3917
  const i = _a(), t = _a();
3918
3918
  return i.slice(0, 8) + "-" + i.slice(8, 12) + "-4" + i.slice(13) + "-a" + t.slice(1, 4) + "-" + t.slice(4);
3919
- }, Xo = { 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 = {
3919
+ }, Xo = { 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 } }, It = {
3920
3920
  props: Xo
3921
3921
  };
3922
3922
  var Jo = {}, wa;
3923
3923
  function Qo() {
3924
3924
  return wa || (wa = 1, (function() {
3925
3925
  (function(i) {
3926
- 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(), g = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), C = {
3926
+ 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(), f = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), C = {
3927
3927
  ariaAtomic: "aria-atomic",
3928
3928
  ariaAutoComplete: "aria-autocomplete",
3929
3929
  ariaBusy: "aria-busy",
@@ -3976,16 +3976,16 @@ function Qo() {
3976
3976
  return _;
3977
3977
  },
3978
3978
  set(L) {
3979
- _ = L, m.isConnected ? st(m, I, L) : g.set(m, c);
3979
+ _ = L, m.isConnected ? st(m, I, L) : f.set(m, c);
3980
3980
  }
3981
3981
  });
3982
3982
  }
3983
3983
  };
3984
3984
  function T(m) {
3985
3985
  const c = a.get(m), { form: v } = c;
3986
- he(m, v, c), kt(m, c.labels);
3986
+ he(m, v, c), $t(m, c.labels);
3987
3987
  }
3988
- const j = (m, c = !1) => {
3988
+ const F = (m, c = !1) => {
3989
3989
  const v = document.createTreeWalker(m, NodeFilter.SHOW_ELEMENT, {
3990
3990
  acceptNode(L) {
3991
3991
  return a.has(L) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -3994,11 +3994,11 @@ function Qo() {
3994
3994
  let _ = v.nextNode();
3995
3995
  const I = !c || m.disabled;
3996
3996
  for (; _; )
3997
- _.formDisabledCallback && I && Ot(_, m.disabled), _ = v.nextNode();
3997
+ _.formDisabledCallback && I && Et(_, m.disabled), _ = v.nextNode();
3998
3998
  }, A = { attributes: !0, attributeFilter: ["disabled", "name"] }, z = de() ? new MutationObserver((m) => {
3999
3999
  for (const c of m) {
4000
4000
  const v = c.target;
4001
- if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Ot(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && j(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4001
+ if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && F(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4002
4002
  const _ = a.get(v), I = p.get(v);
4003
4003
  _.setFormValue(I);
4004
4004
  }
@@ -4007,36 +4007,36 @@ function Qo() {
4007
4007
  function Z(m) {
4008
4008
  m.forEach((c) => {
4009
4009
  const { addedNodes: v, removedNodes: _ } = c, I = Array.from(v), L = Array.from(_);
4010
- I.forEach((F) => {
4011
- var Mt;
4012
- if (a.has(F) && F.constructor.formAssociated && T(F), g.has(F)) {
4013
- const pt = g.get(F);
4014
- Object.keys(C).filter((It) => pt[It] !== null).forEach((It) => {
4015
- st(F, C[It], pt[It]);
4016
- }), g.delete(F);
4010
+ I.forEach((U) => {
4011
+ var Pt;
4012
+ if (a.has(U) && U.constructor.formAssociated && T(U), f.has(U)) {
4013
+ const pt = f.get(U);
4014
+ Object.keys(C).filter((Mt) => pt[Mt] !== null).forEach((Mt) => {
4015
+ st(U, C[Mt], pt[Mt]);
4016
+ }), f.delete(U);
4017
4017
  }
4018
- if (w.has(F)) {
4019
- const pt = w.get(F);
4020
- st(F, "internals-valid", pt.validity.valid.toString()), st(F, "internals-invalid", (!pt.validity.valid).toString()), st(F, "aria-invalid", (!pt.validity.valid).toString()), w.delete(F);
4018
+ if (w.has(U)) {
4019
+ const pt = w.get(U);
4020
+ st(U, "internals-valid", pt.validity.valid.toString()), st(U, "internals-invalid", (!pt.validity.valid).toString()), st(U, "aria-invalid", (!pt.validity.valid).toString()), w.delete(U);
4021
4021
  }
4022
- if (F.localName === "form") {
4023
- const pt = d.get(F), It = document.createTreeWalker(F, NodeFilter.SHOW_ELEMENT, {
4022
+ if (U.localName === "form") {
4023
+ const pt = d.get(U), Mt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4024
4024
  acceptNode(gs) {
4025
4025
  return a.has(gs) && gs.constructor.formAssociated && !(pt && pt.has(gs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4026
4026
  }
4027
4027
  });
4028
- let mi = It.nextNode();
4028
+ let mi = Mt.nextNode();
4029
4029
  for (; mi; )
4030
- T(mi), mi = It.nextNode();
4030
+ T(mi), mi = Mt.nextNode();
4031
4031
  }
4032
- F.localName === "fieldset" && ((Mt = z.observe) === null || Mt === void 0 || Mt.call(z, F, A), j(F, !0));
4033
- }), L.forEach((F) => {
4034
- const Mt = a.get(F);
4035
- Mt && s.get(Mt) && Pt(Mt), l.has(F) && l.get(F).disconnect();
4032
+ U.localName === "fieldset" && ((Pt = z.observe) === null || Pt === void 0 || Pt.call(z, U, A), F(U, !0));
4033
+ }), L.forEach((U) => {
4034
+ const Pt = a.get(U);
4035
+ Pt && s.get(Pt) && Ot(Pt), l.has(U) && l.get(U).disconnect();
4036
4036
  });
4037
4037
  });
4038
4038
  }
4039
- function At(m) {
4039
+ function Nt(m) {
4040
4040
  m.forEach((c) => {
4041
4041
  const { removedNodes: v } = c;
4042
4042
  v.forEach((_) => {
@@ -4045,9 +4045,9 @@ function Qo() {
4045
4045
  });
4046
4046
  });
4047
4047
  }
4048
- const Et = (m) => {
4048
+ const At = (m) => {
4049
4049
  var c, v;
4050
- const _ = new MutationObserver(At);
4050
+ const _ = new MutationObserver(Nt);
4051
4051
  !((c = window == null ? void 0 : window.ShadyDOM) === null || c === void 0) && c.inUse && m.mode && m.host && (m = m.host), (v = _.observe) === null || v === void 0 || v.call(_, m, { childList: !0 }), b.set(m, _);
4052
4052
  };
4053
4053
  de() && new MutationObserver(Z);
@@ -4056,9 +4056,9 @@ function Qo() {
4056
4056
  subtree: !0
4057
4057
  }, st = (m, c, v) => {
4058
4058
  m.getAttribute(c) !== v && m.setAttribute(c, v);
4059
- }, Ot = (m, c) => {
4059
+ }, Et = (m, c) => {
4060
4060
  m.toggleAttribute("internals-disabled", c), c ? st(m, "aria-disabled", "true") : m.removeAttribute("aria-disabled"), m.formDisabledCallback && m.formDisabledCallback.apply(m, [c]);
4061
- }, Pt = (m) => {
4061
+ }, Ot = (m) => {
4062
4062
  s.get(m).forEach((c) => {
4063
4063
  c.remove();
4064
4064
  }), s.set(m, []);
@@ -4068,7 +4068,7 @@ function Qo() {
4068
4068
  }, D = (m, c) => {
4069
4069
  var v;
4070
4070
  s.set(c, []), (v = z.observe) === null || v === void 0 || v.call(z, m, A);
4071
- }, kt = (m, c) => {
4071
+ }, $t = (m, c) => {
4072
4072
  if (c.length) {
4073
4073
  Array.from(c).forEach((_) => _.addEventListener("click", m.click.bind(m)));
4074
4074
  let v = c[0].id;
@@ -4123,7 +4123,7 @@ function Qo() {
4123
4123
  }, Te = (m) => {
4124
4124
  if (m.constructor.formAssociated) {
4125
4125
  const c = a.get(m), { labels: v, form: _ } = c;
4126
- kt(m, v), he(m, _, c);
4126
+ $t(m, v), he(m, _, c);
4127
4127
  }
4128
4128
  };
4129
4129
  function de() {
@@ -4180,10 +4180,10 @@ function Qo() {
4180
4180
  if (typeof c == "function" ? m !== c || !0 : !c.has(m)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4181
4181
  return c.set(m, v), v;
4182
4182
  }
4183
- var ge;
4183
+ var fe;
4184
4184
  class qi {
4185
4185
  constructor(c) {
4186
- ge.set(this, void 0), ms(this, ge, c);
4186
+ fe.set(this, void 0), ms(this, fe, c);
4187
4187
  for (let v = 0; v < c.length; v++) {
4188
4188
  let _ = c[v];
4189
4189
  this[v] = _, _.hasAttribute("name") && (this[_.getAttribute("name")] = _);
@@ -4191,10 +4191,10 @@ function Qo() {
4191
4191
  Object.freeze(this);
4192
4192
  }
4193
4193
  get length() {
4194
- return Hi(this, ge, "f").length;
4194
+ return Hi(this, fe, "f").length;
4195
4195
  }
4196
- [(ge = /* @__PURE__ */ new WeakMap(), Symbol.iterator)]() {
4197
- return Hi(this, ge, "f")[Symbol.iterator]();
4196
+ [(fe = /* @__PURE__ */ new WeakMap(), Symbol.iterator)]() {
4197
+ return Hi(this, fe, "f")[Symbol.iterator]();
4198
4198
  }
4199
4199
  item(c) {
4200
4200
  return this[c] == null ? null : this[c];
@@ -4209,20 +4209,20 @@ function Qo() {
4209
4209
  const c = HTMLFormElement.prototype.reportValidity;
4210
4210
  HTMLFormElement.prototype.reportValidity = _;
4211
4211
  function v(...L) {
4212
- let F = m.apply(this, L);
4213
- return Ce(this, F, "checkValidity");
4212
+ let U = m.apply(this, L);
4213
+ return Ce(this, U, "checkValidity");
4214
4214
  }
4215
4215
  function _(...L) {
4216
- let F = c.apply(this, L);
4217
- return Ce(this, F, "reportValidity");
4216
+ let U = c.apply(this, L);
4217
+ return Ce(this, U, "reportValidity");
4218
4218
  }
4219
4219
  const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4220
4220
  Object.defineProperty(HTMLFormElement.prototype, "elements", {
4221
4221
  get(...L) {
4222
- const F = I.call(this, ...L), Mt = Array.from(d.get(this) || []);
4223
- if (Mt.length === 0)
4224
- return F;
4225
- const pt = Array.from(F).concat(Mt).sort((It, mi) => It.compareDocumentPosition ? It.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4222
+ const U = I.call(this, ...L), Pt = Array.from(d.get(this) || []);
4223
+ if (Pt.length === 0)
4224
+ return U;
4225
+ const pt = Array.from(U).concat(Pt).sort((Mt, mi) => Mt.compareDocumentPosition ? Mt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4226
4226
  return new qi(pt);
4227
4227
  }
4228
4228
  });
@@ -4235,7 +4235,7 @@ function Qo() {
4235
4235
  if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
4236
4236
  throw new TypeError("Illegal constructor");
4237
4237
  const v = c.getRootNode(), _ = new ps();
4238
- this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), P(c, this), D(c, this), Object.seal(this), v instanceof DocumentFragment && Et(v);
4238
+ this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), P(c, this), D(c, this), Object.seal(this), v instanceof DocumentFragment && At(v);
4239
4239
  }
4240
4240
  checkValidity() {
4241
4241
  const c = t.get(this);
@@ -4275,7 +4275,7 @@ function Qo() {
4275
4275
  }
4276
4276
  setFormValue(c) {
4277
4277
  const v = t.get(this);
4278
- if (ot(v, "Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."), Pt(this), c != null && !(c instanceof FormData)) {
4278
+ 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)) {
4279
4279
  if (v.getAttribute("name")) {
4280
4280
  const _ = at(v, this);
4281
4281
  _.value = c;
@@ -4293,20 +4293,20 @@ function Qo() {
4293
4293
  if (ot(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4294
4294
  throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
4295
4295
  k.set(this, _);
4296
- const L = e.get(this), F = {};
4297
- for (const It in c)
4298
- F[It] = c[It];
4299
- Object.keys(F).length === 0 && Fi(L);
4300
- const Mt = Object.assign(Object.assign({}, L), F);
4301
- delete Mt.valid;
4302
- const { valid: pt } = us(L, Mt, this.form);
4296
+ const L = e.get(this), U = {};
4297
+ for (const Mt in c)
4298
+ U[Mt] = c[Mt];
4299
+ Object.keys(U).length === 0 && Fi(L);
4300
+ const Pt = Object.assign(Object.assign({}, L), U);
4301
+ delete Pt.valid;
4302
+ const { valid: pt } = us(L, Pt, this.form);
4303
4303
  if (!pt && !v)
4304
4304
  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.");
4305
4305
  n.set(this, pt ? "" : v), I.isConnected ? (I.toggleAttribute("internals-invalid", !pt), I.toggleAttribute("internals-valid", pt), st(I, "aria-invalid", `${!pt}`)) : w.set(I, this);
4306
4306
  }
4307
4307
  get shadowRoot() {
4308
4308
  const c = t.get(this);
4309
- return f.get(c) || null;
4309
+ return g.get(c) || null;
4310
4310
  }
4311
4311
  get validationMessage() {
4312
4312
  const c = t.get(this);
@@ -4360,7 +4360,7 @@ function Qo() {
4360
4360
  if (_.formAssociated) {
4361
4361
  const L = _.prototype.connectedCallback;
4362
4362
  _.prototype.connectedCallback = function() {
4363
- y.has(this) || (y.set(this, !0), this.hasAttribute("disabled") && Ot(this, !0)), L != null && L.apply(this), Te(this);
4363
+ y.has(this) || (y.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), L != null && L.apply(this), Te(this);
4364
4364
  };
4365
4365
  }
4366
4366
  c.call(this, v, _, I);
@@ -4377,7 +4377,7 @@ function Qo() {
4377
4377
  }), typeof Element < "u") {
4378
4378
  let c = function(..._) {
4379
4379
  const I = v.apply(this, _);
4380
- if (f.set(this, I), de()) {
4380
+ if (g.set(this, I), de()) {
4381
4381
  const L = new MutationObserver(Z);
4382
4382
  window.ShadyDOM ? L.observe(this, Q) : L.observe(I, Q), l.set(this, L);
4383
4383
  }
@@ -4394,31 +4394,31 @@ function Qo() {
4394
4394
  })()), Jo;
4395
4395
  }
4396
4396
  Qo();
4397
- var tl = Object.defineProperty, V = (i, t, e, s) => {
4397
+ var tl = Object.defineProperty, j = (i, t, e, s) => {
4398
4398
  for (var a = void 0, n = i.length - 1, r; n >= 0; n--)
4399
4399
  (r = i[n]) && (a = r(t, e, a) || a);
4400
4400
  return a && tl(t, e, a), a;
4401
4401
  };
4402
- let M = class extends G {
4402
+ let M = class extends K {
4403
4403
  constructor() {
4404
- 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 = ke(), 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 = vt.forms.labels.optional, this.requiredText = vt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4404
+ 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 = ye(), 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 = It.props.helptextDropdownButton.default, this.label = null, this.optionalText = bt.forms.labels.optional, this.requiredText = bt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4405
4405
  }
4406
4406
  static get formAssociated() {
4407
4407
  return !0;
4408
4408
  }
4409
4409
  manageValidity(t) {
4410
- var e, s, a, n, r, l, d, p, g, f, k;
4411
- t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, vt.forms.messages.required, t) : (e = t.validity) != null && e.typeMismatch || (s = t.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, vt.forms.messages.invalid, t) : (a = t.validity) != null && a.patternMismatch ? this.internals.setValidity(
4410
+ var e, s, a, n, r, l, d, p, f, g, k;
4411
+ t && (this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, bt.forms.messages.required, t) : (e = t.validity) != null && e.typeMismatch || (s = t.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, bt.forms.messages.invalid, t) : (a = t.validity) != null && a.patternMismatch ? this.internals.setValidity(
4412
4412
  { patternMismatch: !0 },
4413
- vt.forms.messages.invalidPattern,
4413
+ bt.forms.messages.invalidPattern,
4414
4414
  t
4415
- ) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, vt.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 }, vt.forms.messages.tooLong, t) : (l = t.validity) != null && l.rangeUnderflow ? this.internals.setValidity(
4415
+ ) : (n = t.validity) != null && n.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, bt.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 }, bt.forms.messages.tooLong, t) : (l = t.validity) != null && l.rangeUnderflow ? this.internals.setValidity(
4416
4416
  { rangeUnderflow: !0 },
4417
- this.min ? vt.forms.messages.rangeUnderflowMin.replace("{min}", (d = this.min) == null ? void 0 : d.toString()) : vt.forms.messages.rangeUnderflow,
4417
+ this.min ? bt.forms.messages.rangeUnderflowMin.replace("{min}", (d = this.min) == null ? void 0 : d.toString()) : bt.forms.messages.rangeUnderflow,
4418
4418
  t
4419
- ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, vt.forms.messages.invalid, t) : (g = t.validity) != null && g.rangeOverflow ? this.internals.setValidity(
4419
+ ) : (p = t.validity) != null && p.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, bt.forms.messages.invalid, t) : (f = t.validity) != null && f.rangeOverflow ? this.internals.setValidity(
4420
4420
  { rangeOverflow: !0 },
4421
- this.max ? vt.forms.messages.rangeOverflowMax.replace("{max}", (f = this.max) == null ? void 0 : f.toString()) : vt.forms.messages.rangeOverflow,
4421
+ this.max ? bt.forms.messages.rangeOverflowMax.replace("{max}", (g = this.max) == null ? void 0 : g.toString()) : bt.forms.messages.rangeOverflow,
4422
4422
  t
4423
4423
  ) : (k = t.validity) != null && k.customError ? this.internals.setValidity({ customError: !0 }, t.validationMessage, t) : this.internals.setValidity({}));
4424
4424
  }
@@ -4514,109 +4514,109 @@ let M = class extends G {
4514
4514
  this.inputRef && this.inputRef.value && (this.inputRef.value.setAttribute("form", ""), this.manageValidity(this.inputRef.value)), this.inputRefTo && this.inputRefTo.value && (this.inputRefTo.value.setAttribute("form", ""), this.manageValidity(this.inputRefTo.value));
4515
4515
  }
4516
4516
  };
4517
- V([
4517
+ j([
4518
4518
  o()
4519
4519
  ], M.prototype, "defaultValue");
4520
- V([
4520
+ j([
4521
4521
  o({ type: Boolean, reflect: !0 })
4522
4522
  ], M.prototype, "disabled");
4523
- V([
4523
+ j([
4524
4524
  o({ type: Boolean, reflect: !0 })
4525
4525
  ], M.prototype, "readonly");
4526
- V([
4526
+ j([
4527
4527
  o({ type: Boolean, reflect: !0 })
4528
4528
  ], M.prototype, "required");
4529
- V([
4529
+ j([
4530
4530
  o({ type: Number, reflect: !0 })
4531
4531
  ], M.prototype, "max");
4532
- V([
4532
+ j([
4533
4533
  o({ type: Number, reflect: !0 })
4534
4534
  ], M.prototype, "maxlength");
4535
- V([
4535
+ j([
4536
4536
  o({ type: Number, reflect: !0 })
4537
4537
  ], M.prototype, "min");
4538
- V([
4538
+ j([
4539
4539
  o({ type: Number, reflect: !0 })
4540
4540
  ], M.prototype, "minlength");
4541
- V([
4541
+ j([
4542
4542
  o({ type: Number, reflect: !0 })
4543
4543
  ], M.prototype, "step");
4544
- V([
4544
+ j([
4545
4545
  o({ type: String })
4546
4546
  ], M.prototype, "ariaDescribedBy");
4547
- V([
4547
+ j([
4548
4548
  o({ type: String })
4549
4549
  ], M.prototype, "ariaLabelledby");
4550
- V([
4550
+ j([
4551
4551
  o({ type: String, reflect: !0 })
4552
4552
  ], M.prototype, "name");
4553
- V([
4553
+ j([
4554
4554
  o({ type: String, reflect: !0 })
4555
4555
  ], M.prototype, "pattern");
4556
- V([
4556
+ j([
4557
4557
  o({ type: String, reflect: !0 })
4558
4558
  ], M.prototype, "placeholder");
4559
- V([
4559
+ j([
4560
4560
  o({ type: String, reflect: !0 })
4561
4561
  ], M.prototype, "id");
4562
- V([
4562
+ j([
4563
4563
  o({ type: Boolean })
4564
4564
  ], M.prototype, "counter");
4565
- V([
4565
+ j([
4566
4566
  o({ type: Boolean })
4567
4567
  ], M.prototype, "hasError");
4568
- V([
4568
+ j([
4569
4569
  o({ type: Boolean })
4570
4570
  ], M.prototype, "inline");
4571
- V([
4571
+ j([
4572
4572
  o({ type: Boolean })
4573
4573
  ], M.prototype, "hasFieldset");
4574
- V([
4574
+ j([
4575
4575
  o({ type: Boolean })
4576
4576
  ], M.prototype, "optionalTag");
4577
- V([
4577
+ j([
4578
4578
  o({ type: Boolean })
4579
4579
  ], M.prototype, "requiredTag");
4580
- V([
4580
+ j([
4581
4581
  o({ type: Boolean })
4582
4582
  ], M.prototype, "skipForwardTestid");
4583
- V([
4583
+ j([
4584
4584
  o({ type: Boolean, reflect: !1 })
4585
4585
  ], M.prototype, "useWrapper");
4586
- V([
4586
+ j([
4587
4587
  o({ type: Boolean, reflect: !0 })
4588
4588
  ], M.prototype, "fullwidth");
4589
- V([
4589
+ j([
4590
4590
  o({ type: Number })
4591
4591
  ], M.prototype, "counterMaxLength");
4592
- V([
4592
+ j([
4593
4593
  o({ type: String })
4594
4594
  ], M.prototype, "errorMessage");
4595
- V([
4595
+ j([
4596
4596
  o({ type: String })
4597
4597
  ], M.prototype, "helptext");
4598
- V([
4598
+ j([
4599
4599
  o({ type: String })
4600
4600
  ], M.prototype, "helptextDropdown");
4601
- V([
4601
+ j([
4602
4602
  o({ type: String, reflect: !1 })
4603
4603
  ], M.prototype, "helptextDropdownButton");
4604
- V([
4604
+ j([
4605
4605
  o({ type: String })
4606
4606
  ], M.prototype, "label");
4607
- V([
4607
+ j([
4608
4608
  o({ type: String, reflect: !1 })
4609
4609
  ], M.prototype, "optionalText");
4610
- V([
4610
+ j([
4611
4611
  o({ type: String, reflect: !1 })
4612
4612
  ], M.prototype, "requiredText");
4613
- V([
4613
+ j([
4614
4614
  o({ type: String, reflect: !1 })
4615
4615
  ], M.prototype, "tagText");
4616
- V([
4616
+ j([
4617
4617
  o({ type: String, attribute: "data-testid" })
4618
4618
  ], M.prototype, "dataTestid");
4619
- V([
4619
+ j([
4620
4620
  R()
4621
4621
  ], M.prototype, "touched");
4622
4622
  let tn = class {
@@ -4659,9 +4659,9 @@ var el = Object.defineProperty, il = Object.getOwnPropertyDescriptor, He = (i, t
4659
4659
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4660
4660
  return s && a && el(t, e, a), a;
4661
4661
  };
4662
- let pe = class extends G {
4662
+ let pe = class extends K {
4663
4663
  constructor() {
4664
- super(), this.defaultSlot = N(), this.forId = ke(), 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);
4664
+ super(), this.defaultSlot = N(), this.forId = ye(), this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = It.props.helptextDropdownButton.default, this.isHelpTextOpen = !1, this.filledSlots = /* @__PURE__ */ new Set(), this.slotController = new rt(this, this.defaultSlot);
4665
4665
  }
4666
4666
  updateSlots(t) {
4667
4667
  this.filledSlots = new Set(t);
@@ -4728,7 +4728,7 @@ He([
4728
4728
  R()
4729
4729
  ], pe.prototype, "filledSlots", 2);
4730
4730
  pe = He([
4731
- B("pkt-helptext")
4731
+ V("pkt-helptext")
4732
4732
  ], pe);
4733
4733
  var sl = Object.defineProperty, al = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
4734
4734
  for (var a = s > 1 ? void 0 : s ? al(t, e) : t, n = i.length - 1, r; n >= 0; n--)
@@ -4743,9 +4743,9 @@ const nl = {
4743
4743
  return i ? "true" : "false";
4744
4744
  }
4745
4745
  };
4746
- let Y = class extends G {
4746
+ let Y = class extends K {
4747
4747
  constructor() {
4748
- super(), this.defaultSlot = N(), this.helptextSlot = N(), this.forId = ke(), 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);
4748
+ super(), this.defaultSlot = N(), this.helptextSlot = N(), this.forId = ye(), this.label = "", this.helptext = null, this.helptextDropdown = null, this.helptextDropdownButton = null, this.counter = It.props.counter.default, this.counterCurrent = 0, this.counterMaxLength = 0, this.counterError = null, this.counterPosition = "bottom", this.optionalTag = It.props.optionalTag.default, this.optionalText = It.props.optionalText.default, this.requiredTag = It.props.requiredTag.default, this.requiredText = It.props.requiredText.default, this.tagText = null, this.hasError = It.props.hasError.default, this.errorMessage = "", this.disabled = It.props.disabled.default, this.inline = It.props.inline.default, this.ariaDescribedby = void 0, this.hasFieldset = It.props.hasFieldset.default, this.role = "group", this.useWrapper = It.props.useWrapper.default, this.slotController = new rt(this, this.defaultSlot, this.helptextSlot);
4749
4749
  }
4750
4750
  updated(t) {
4751
4751
  super.updated(t);
@@ -4786,9 +4786,9 @@ let Y = class extends G {
4786
4786
  .forId=${this.forId}
4787
4787
  .helptext=${this.helptext}
4788
4788
  .helptextDropdown=${this.helptextDropdown}
4789
- .helptextDropdownButton=${this.helptextDropdownButton || Dt.props.helptextDropdownButton.default}
4790
- @toggleHelpText=${(f) => {
4791
- this.toggleDropdown(f);
4789
+ .helptextDropdownButton=${this.helptextDropdownButton || It.props.helptextDropdownButton.default}
4790
+ @toggleHelpText=${(g) => {
4791
+ this.toggleDropdown(g);
4792
4792
  }}
4793
4793
  ${E(this.helptextSlot)}
4794
4794
  name="helptext"
@@ -4811,10 +4811,10 @@ let Y = class extends G {
4811
4811
  <div class="pkt-contents" ${E(this.defaultSlot)}></div>
4812
4812
  ${this.counterPosition === "bottom" ? l() : $}
4813
4813
  ${d()}
4814
- `, g = () => this.hasFieldset ? u`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
4814
+ `, f = () => this.hasFieldset ? u`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${s}">
4815
4815
  ${p()}
4816
4816
  </fieldset>` : u`<div class="pkt-inputwrapper__fieldset">${p()}</div>`;
4817
- return u`<div class=${O(t)}>${g()}</div> `;
4817
+ return u`<div class=${O(t)}>${f()}</div> `;
4818
4818
  }
4819
4819
  toggleDropdown(t) {
4820
4820
  this.dispatchEvent(
@@ -4904,16 +4904,16 @@ X([
4904
4904
  o({ type: Boolean, reflect: !0, converter: nl })
4905
4905
  ], Y.prototype, "useWrapper", 2);
4906
4906
  Y = X([
4907
- B("pkt-input-wrapper")
4907
+ V("pkt-input-wrapper")
4908
4908
  ], Y);
4909
- var rl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, gt = (i, t, e, s) => {
4909
+ var rl = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, vt = (i, t, e, s) => {
4910
4910
  for (var a = s > 1 ? void 0 : s ? ol(t, e) : t, n = i.length - 1, r; n >= 0; n--)
4911
4911
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4912
4912
  return s && a && rl(t, e, a), a;
4913
4913
  };
4914
- let ut = class extends G {
4914
+ let ut = class extends K {
4915
4915
  constructor() {
4916
- super(...arguments), this.id = ke(), 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 = [];
4916
+ super(...arguments), this.id = ye(), 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 = [];
4917
4917
  }
4918
4918
  // Lifecycle methods
4919
4919
  connectedCallback() {
@@ -5045,7 +5045,7 @@ let ut = class extends G {
5045
5045
  type="text"
5046
5046
  aria-label="Søk i listen"
5047
5047
  form=""
5048
- placeholder=${this.searchPlaceholder || vt.forms.search.placeholder}
5048
+ placeholder=${this.searchPlaceholder || bt.forms.search.placeholder}
5049
5049
  @input=${this.handleSearchInput}
5050
5050
  @keydown=${this.handleSearchKeydown}
5051
5051
  .value=${this.searchValue}
@@ -5209,53 +5209,53 @@ let ut = class extends G {
5209
5209
  ) : [];
5210
5210
  }
5211
5211
  };
5212
- gt([
5212
+ vt([
5213
5213
  o({ type: String })
5214
5214
  ], ut.prototype, "id", 2);
5215
- gt([
5215
+ vt([
5216
5216
  o({ type: String })
5217
5217
  ], ut.prototype, "label", 2);
5218
- gt([
5218
+ vt([
5219
5219
  o({ type: Array })
5220
5220
  ], ut.prototype, "options", 2);
5221
- gt([
5221
+ vt([
5222
5222
  o({ type: Boolean, reflect: !0 })
5223
5223
  ], ut.prototype, "isOpen", 2);
5224
- gt([
5224
+ vt([
5225
5225
  o({ type: Boolean })
5226
5226
  ], ut.prototype, "disabled", 2);
5227
- gt([
5227
+ vt([
5228
5228
  o({ type: Boolean })
5229
5229
  ], ut.prototype, "includeSearch", 2);
5230
- gt([
5230
+ vt([
5231
5231
  o({ type: Boolean })
5232
5232
  ], ut.prototype, "isMultiSelect", 2);
5233
- gt([
5233
+ vt([
5234
5234
  o({ type: Boolean })
5235
5235
  ], ut.prototype, "allowUserInput", 2);
5236
- gt([
5236
+ vt([
5237
5237
  o({ type: Boolean })
5238
5238
  ], ut.prototype, "maxIsReached", 2);
5239
- gt([
5239
+ vt([
5240
5240
  o({ type: String })
5241
5241
  ], ut.prototype, "customUserInput", 2);
5242
- gt([
5242
+ vt([
5243
5243
  o({ type: String })
5244
5244
  ], ut.prototype, "searchPlaceholder", 2);
5245
- gt([
5245
+ vt([
5246
5246
  o({ type: String })
5247
5247
  ], ut.prototype, "searchValue", 2);
5248
- gt([
5248
+ vt([
5249
5249
  o({ type: Number })
5250
5250
  ], ut.prototype, "maxLength", 2);
5251
- gt([
5251
+ vt([
5252
5252
  o({ type: String })
5253
5253
  ], ut.prototype, "userMessage", 2);
5254
- gt([
5254
+ vt([
5255
5255
  R()
5256
5256
  ], ut.prototype, "_filteredOptions", 2);
5257
- ut = gt([
5258
- B("pkt-listbox")
5257
+ ut = vt([
5258
+ V("pkt-listbox")
5259
5259
  ], ut);
5260
5260
  const ll = { displayValueAs: { default: "label" } }, hl = {
5261
5261
  props: ll
@@ -5636,12 +5636,12 @@ let J = class extends M {
5636
5636
  var e, s;
5637
5637
  if (this.disabled) return;
5638
5638
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5639
- 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, g = this.multiple, f = this.isMaxItemsReached();
5639
+ 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, f = this.multiple, g = this.isMaxItemsReached();
5640
5640
  let k = !1, b = !0, y = "", w = "";
5641
- l || (!r && this.allowUserInput && !d ? (this.addNewUserValue(t), y = "Ny verdi lagt til", k = !g) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), b = !1, k = !0, y = "Ingen treff i søket") : n ? (this.removeValue(a), k = !0) : d && p ? (this.removeAllSelected(), k = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(a), k = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : g && !f ? (this.setSelected(a), k = !0) : g && f ? (this._userInfoMessage = "Maks antall valg nådd", b = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", b = !1, k = !0, w = t), this._isOptionsOpen = k, k || window.setTimeout(() => {
5641
+ l || (!r && this.allowUserInput && !d ? (this.addNewUserValue(t), y = "Ny verdi lagt til", k = !f) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), b = !1, k = !0, y = "Ingen treff i søket") : n ? (this.removeValue(a), k = !0) : d && p ? (this.removeAllSelected(), k = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(a), k = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : f && !g ? (this.setSelected(a), k = !0) : f && g ? (this._userInfoMessage = "Maks antall valg nådd", b = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", b = !1, k = !0, w = t), this._isOptionsOpen = k, k || window.setTimeout(() => {
5642
5642
  var C;
5643
5643
  (C = this.focusRef.value) == null || C.focus();
5644
- }, 0), this._userInfoMessage = y, this._search = w || "", this.resetComboboxInput(b), g && this.isMaxItemsReached());
5644
+ }, 0), this._userInfoMessage = y, this._search = w || "", this.resetComboboxInput(b), f && this.isMaxItemsReached());
5645
5645
  }
5646
5646
  setSelected(t) {
5647
5647
  if (!this._value.includes(t)) {
@@ -5769,7 +5769,7 @@ it([
5769
5769
  R()
5770
5770
  ], J.prototype, "_editingSingleValue", 2);
5771
5771
  J = it([
5772
- B("pkt-combobox")
5772
+ V("pkt-combobox")
5773
5773
  ], J);
5774
5774
  const pl = {
5775
5775
  i18n: {
@@ -5842,7 +5842,7 @@ function fl() {
5842
5842
  s.href = "https://cdn.web.oslo.kommune.no/cb/cb-v1.1.0.css", s.type = "text/css", s.rel = "stylesheet", s.id = "oslo-consent-styles", document.head.appendChild(s);
5843
5843
  }), Ss);
5844
5844
  }
5845
- let zt = class extends G {
5845
+ let zt = class extends K {
5846
5846
  constructor() {
5847
5847
  super(), this.devMode = !1, this.hotjarId = null, this.googleAnalyticsId = null, this.cookieDomain = null, this.cookieSecure = null, this.cookieExpiryDays = null, this.triggerType = "button", this.triggerText = null, this.i18nLanguage = "nb";
5848
5848
  }
@@ -5936,9 +5936,9 @@ re([
5936
5936
  o({ type: String })
5937
5937
  ], zt.prototype, "i18nLanguage", 2);
5938
5938
  zt = re([
5939
- B("pkt-consent")
5939
+ V("pkt-consent")
5940
5940
  ], zt);
5941
- var gl = Object.defineProperty, vl = Object.getOwnPropertyDescriptor, yt = (i, t, e, s) => {
5941
+ var gl = Object.defineProperty, vl = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
5942
5942
  for (var a = s > 1 ? void 0 : s ? vl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
5943
5943
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5944
5944
  return s && a && gl(t, e, a), a;
@@ -6028,50 +6028,50 @@ let ft = class extends M {
6028
6028
  t.stopImmediatePropagation(), this.touched = !0, this.inputRef.value && (this.checked = this.inputRef.value.matches(":checked"), this.valueChecked(this.checked));
6029
6029
  }
6030
6030
  };
6031
- yt([
6031
+ kt([
6032
6032
  o({ type: String, reflect: !0 })
6033
6033
  ], ft.prototype, "value", 2);
6034
- yt([
6034
+ kt([
6035
6035
  o({ type: String })
6036
6036
  ], ft.prototype, "checkHelptext", 2);
6037
- yt([
6037
+ kt([
6038
6038
  o({ type: Boolean })
6039
6039
  ], ft.prototype, "defaultChecked", 2);
6040
- yt([
6040
+ kt([
6041
6041
  o({ type: Boolean })
6042
6042
  ], ft.prototype, "hasTile", 2);
6043
- yt([
6043
+ kt([
6044
6044
  o({ type: Boolean })
6045
6045
  ], ft.prototype, "isSwitch", 2);
6046
- yt([
6046
+ kt([
6047
6047
  o({ type: String })
6048
6048
  ], ft.prototype, "labelPosition", 2);
6049
- yt([
6049
+ kt([
6050
6050
  o({ type: Boolean })
6051
6051
  ], ft.prototype, "hideLabel", 2);
6052
- yt([
6052
+ kt([
6053
6053
  o({ type: Boolean, reflect: !0 })
6054
6054
  ], ft.prototype, "checked", 2);
6055
- yt([
6055
+ kt([
6056
6056
  o({ type: String, reflect: !0 })
6057
6057
  ], ft.prototype, "type", 2);
6058
- yt([
6058
+ kt([
6059
6059
  o({ type: String })
6060
6060
  ], ft.prototype, "tagText", 2);
6061
- yt([
6061
+ kt([
6062
6062
  o({ type: Boolean })
6063
6063
  ], ft.prototype, "optionalTag", 2);
6064
- yt([
6064
+ kt([
6065
6065
  o({ type: String })
6066
6066
  ], ft.prototype, "optionalText", 2);
6067
- yt([
6067
+ kt([
6068
6068
  o({ type: Boolean })
6069
6069
  ], ft.prototype, "requiredTag", 2);
6070
- yt([
6070
+ kt([
6071
6071
  o({ type: String })
6072
6072
  ], ft.prototype, "requiredText", 2);
6073
- ft = yt([
6074
- B("pkt-checkbox")
6073
+ ft = kt([
6074
+ V("pkt-checkbox")
6075
6075
  ], ft);
6076
6076
  const bl = (i) => new Promise((t) => setTimeout(t, i)), Be = {
6077
6077
  /**
@@ -6242,7 +6242,7 @@ const bl = (i) => new Promise((t) => setTimeout(t, i)), Be = {
6242
6242
  const r = i.target;
6243
6243
  if (r.value) {
6244
6244
  a(r);
6245
- const l = we(r.value);
6245
+ const l = _e(r.value);
6246
6246
  l && t[0] !== r.value && t[1] && (s(), (n = e == null ? void 0 : e.value) == null || n.handleDateSelect(l));
6247
6247
  } else t[0] && s();
6248
6248
  }
@@ -6267,9 +6267,9 @@ var kl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, Bi = (i, t
6267
6267
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6268
6268
  return s && a && kl(t, e, a), a;
6269
6269
  };
6270
- let si = class extends G {
6270
+ let si = class extends K {
6271
6271
  constructor() {
6272
- super(...arguments), this.dates = [], this.dateformat = "dd.MM.yyyy", this.className = "pkt-datepicker__tags", this.idBase = ke();
6272
+ super(...arguments), this.dates = [], this.dateformat = "dd.MM.yyyy", this.className = "pkt-datepicker__tags", this.idBase = ye();
6273
6273
  }
6274
6274
  render() {
6275
6275
  return this.classes = {
@@ -6311,7 +6311,7 @@ Bi([
6311
6311
  o({ type: String, attribute: "id-base" })
6312
6312
  ], si.prototype, "idBase", 2);
6313
6313
  si = Bi([
6314
- B("pkt-date-tags")
6314
+ V("pkt-date-tags")
6315
6315
  ], si);
6316
6316
  const _l = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }, withcontrols: { default: !1 }, multiple: { default: !1 }, range: { default: !1 } }, $i = {
6317
6317
  props: _l
@@ -6321,7 +6321,7 @@ var wl = Object.defineProperty, xl = Object.getOwnPropertyDescriptor, Vt = (i, t
6321
6321
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6322
6322
  return s && a && wl(t, e, a), a;
6323
6323
  };
6324
- let _t = class extends G {
6324
+ let wt = class extends K {
6325
6325
  constructor() {
6326
6326
  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 = N(), this.calendarRef = N(), this.handleDocumentClick = (t) => {
6327
6327
  if (!this.open) return;
@@ -6401,49 +6401,49 @@ let _t = class extends G {
6401
6401
  };
6402
6402
  Vt([
6403
6403
  o({ type: Boolean, reflect: !0 })
6404
- ], _t.prototype, "open", 2);
6404
+ ], wt.prototype, "open", 2);
6405
6405
  Vt([
6406
6406
  o({ type: Boolean })
6407
- ], _t.prototype, "multiple", 2);
6407
+ ], wt.prototype, "multiple", 2);
6408
6408
  Vt([
6409
6409
  o({ type: Boolean })
6410
- ], _t.prototype, "range", 2);
6410
+ ], wt.prototype, "range", 2);
6411
6411
  Vt([
6412
6412
  o({ type: Boolean })
6413
- ], _t.prototype, "weeknumbers", 2);
6413
+ ], wt.prototype, "weeknumbers", 2);
6414
6414
  Vt([
6415
6415
  o({ type: Boolean })
6416
- ], _t.prototype, "withcontrols", 2);
6416
+ ], wt.prototype, "withcontrols", 2);
6417
6417
  Vt([
6418
6418
  o({ type: Number })
6419
- ], _t.prototype, "maxMultiple", 2);
6419
+ ], wt.prototype, "maxMultiple", 2);
6420
6420
  Vt([
6421
6421
  o({ type: Array })
6422
- ], _t.prototype, "selected", 2);
6422
+ ], wt.prototype, "selected", 2);
6423
6423
  Vt([
6424
6424
  o({ type: String })
6425
- ], _t.prototype, "earliest", 2);
6425
+ ], wt.prototype, "earliest", 2);
6426
6426
  Vt([
6427
6427
  o({ type: String })
6428
- ], _t.prototype, "latest", 2);
6428
+ ], wt.prototype, "latest", 2);
6429
6429
  Vt([
6430
6430
  o({ type: Array })
6431
- ], _t.prototype, "excludedates", 2);
6431
+ ], wt.prototype, "excludedates", 2);
6432
6432
  Vt([
6433
6433
  o({ type: Array })
6434
- ], _t.prototype, "excludeweekdays", 2);
6434
+ ], wt.prototype, "excludeweekdays", 2);
6435
6435
  Vt([
6436
6436
  o({ type: String })
6437
- ], _t.prototype, "currentmonth", 2);
6438
- _t = Vt([
6439
- B("pkt-datepicker-popup")
6440
- ], _t);
6437
+ ], wt.prototype, "currentmonth", 2);
6438
+ wt = Vt([
6439
+ V("pkt-datepicker-popup")
6440
+ ], wt);
6441
6441
  var Sl = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, Wt = (i, t, e, s) => {
6442
6442
  for (var a = s > 1 ? void 0 : s ? Cl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6443
6443
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6444
6444
  return s && a && Sl(t, e, a), a;
6445
6445
  };
6446
- let Rt = class extends G {
6446
+ let Dt = class extends K {
6447
6447
  constructor() {
6448
6448
  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 = N(), this.btnRef = N();
6449
6449
  }
@@ -6582,46 +6582,46 @@ let Rt = class extends G {
6582
6582
  };
6583
6583
  Wt([
6584
6584
  o({ type: String })
6585
- ], Rt.prototype, "value", 2);
6585
+ ], Dt.prototype, "value", 2);
6586
6586
  Wt([
6587
6587
  o({ type: String })
6588
- ], Rt.prototype, "inputType", 2);
6588
+ ], Dt.prototype, "inputType", 2);
6589
6589
  Wt([
6590
6590
  o({ type: String })
6591
- ], Rt.prototype, "id", 2);
6591
+ ], Dt.prototype, "id", 2);
6592
6592
  Wt([
6593
6593
  o({ type: String })
6594
- ], Rt.prototype, "min", 2);
6594
+ ], Dt.prototype, "min", 2);
6595
6595
  Wt([
6596
6596
  o({ type: String })
6597
- ], Rt.prototype, "max", 2);
6597
+ ], Dt.prototype, "max", 2);
6598
6598
  Wt([
6599
6599
  o({ type: String })
6600
- ], Rt.prototype, "placeholder", 2);
6600
+ ], Dt.prototype, "placeholder", 2);
6601
6601
  Wt([
6602
6602
  o({ type: Boolean })
6603
- ], Rt.prototype, "readonly", 2);
6603
+ ], Dt.prototype, "readonly", 2);
6604
6604
  Wt([
6605
6605
  o({ type: Boolean })
6606
- ], Rt.prototype, "disabled", 2);
6606
+ ], Dt.prototype, "disabled", 2);
6607
6607
  Wt([
6608
6608
  o({ type: Object })
6609
- ], Rt.prototype, "inputClasses", 2);
6609
+ ], Dt.prototype, "inputClasses", 2);
6610
6610
  Wt([
6611
6611
  o({ type: Object })
6612
- ], Rt.prototype, "internals", 2);
6612
+ ], Dt.prototype, "internals", 2);
6613
6613
  Wt([
6614
6614
  o({ type: Object })
6615
- ], Rt.prototype, "strings", 2);
6616
- Rt = Wt([
6617
- B("pkt-datepicker-single")
6618
- ], Rt);
6615
+ ], Dt.prototype, "strings", 2);
6616
+ Dt = Wt([
6617
+ V("pkt-datepicker-single")
6618
+ ], Dt);
6619
6619
  var Tl = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, jt = (i, t, e, s) => {
6620
6620
  for (var a = s > 1 ? void 0 : s ? Nl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6621
6621
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6622
6622
  return s && a && Tl(t, e, a), a;
6623
6623
  };
6624
- let wt = class extends G {
6624
+ let xt = class extends K {
6625
6625
  constructor() {
6626
6626
  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 = N(), this.inputRefTo = N(), this.btnRef = N();
6627
6627
  }
@@ -6834,49 +6834,49 @@ let wt = class extends G {
6834
6834
  };
6835
6835
  jt([
6836
6836
  o({ type: Array })
6837
- ], wt.prototype, "value", 2);
6837
+ ], xt.prototype, "value", 2);
6838
6838
  jt([
6839
6839
  o({ type: String })
6840
- ], wt.prototype, "inputType", 2);
6840
+ ], xt.prototype, "inputType", 2);
6841
6841
  jt([
6842
6842
  o({ type: String })
6843
- ], wt.prototype, "id", 2);
6843
+ ], xt.prototype, "id", 2);
6844
6844
  jt([
6845
6845
  o({ type: String })
6846
- ], wt.prototype, "min", 2);
6846
+ ], xt.prototype, "min", 2);
6847
6847
  jt([
6848
6848
  o({ type: String })
6849
- ], wt.prototype, "max", 2);
6849
+ ], xt.prototype, "max", 2);
6850
6850
  jt([
6851
6851
  o({ type: String })
6852
- ], wt.prototype, "placeholder", 2);
6852
+ ], xt.prototype, "placeholder", 2);
6853
6853
  jt([
6854
6854
  o({ type: Boolean })
6855
- ], wt.prototype, "readonly", 2);
6855
+ ], xt.prototype, "readonly", 2);
6856
6856
  jt([
6857
6857
  o({ type: Boolean })
6858
- ], wt.prototype, "disabled", 2);
6858
+ ], xt.prototype, "disabled", 2);
6859
6859
  jt([
6860
6860
  o({ type: Boolean })
6861
- ], wt.prototype, "showRangeLabels", 2);
6861
+ ], xt.prototype, "showRangeLabels", 2);
6862
6862
  jt([
6863
6863
  o({ type: Object })
6864
- ], wt.prototype, "inputClasses", 2);
6864
+ ], xt.prototype, "inputClasses", 2);
6865
6865
  jt([
6866
6866
  o({ type: Object })
6867
- ], wt.prototype, "internals", 2);
6867
+ ], xt.prototype, "internals", 2);
6868
6868
  jt([
6869
6869
  o({ type: Object })
6870
- ], wt.prototype, "strings", 2);
6871
- wt = jt([
6872
- B("pkt-datepicker-range")
6873
- ], wt);
6870
+ ], xt.prototype, "strings", 2);
6871
+ xt = jt([
6872
+ V("pkt-datepicker-range")
6873
+ ], xt);
6874
6874
  var Al = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
6875
6875
  for (var a = s > 1 ? void 0 : s ? El(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6876
6876
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
6877
6877
  return s && a && Al(t, e, a), a;
6878
6878
  };
6879
- let xt = class extends G {
6879
+ let St = class extends K {
6880
6880
  constructor() {
6881
6881
  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 = N(), this.btnRef = N();
6882
6882
  }
@@ -7008,44 +7008,44 @@ let xt = class extends G {
7008
7008
  };
7009
7009
  Ft([
7010
7010
  o({ type: Array })
7011
- ], xt.prototype, "value", 2);
7011
+ ], St.prototype, "value", 2);
7012
7012
  Ft([
7013
7013
  o({ type: String })
7014
- ], xt.prototype, "inputType", 2);
7014
+ ], St.prototype, "inputType", 2);
7015
7015
  Ft([
7016
7016
  o({ type: String })
7017
- ], xt.prototype, "id", 2);
7017
+ ], St.prototype, "id", 2);
7018
7018
  Ft([
7019
7019
  o({ type: String })
7020
- ], xt.prototype, "min", 2);
7020
+ ], St.prototype, "min", 2);
7021
7021
  Ft([
7022
7022
  o({ type: String })
7023
- ], xt.prototype, "max", 2);
7023
+ ], St.prototype, "max", 2);
7024
7024
  Ft([
7025
7025
  o({ type: String })
7026
- ], xt.prototype, "placeholder", 2);
7026
+ ], St.prototype, "placeholder", 2);
7027
7027
  Ft([
7028
7028
  o({ type: Boolean })
7029
- ], xt.prototype, "readonly", 2);
7029
+ ], St.prototype, "readonly", 2);
7030
7030
  Ft([
7031
7031
  o({ type: Boolean })
7032
- ], xt.prototype, "disabled", 2);
7032
+ ], St.prototype, "disabled", 2);
7033
7033
  Ft([
7034
7034
  o({ type: Number })
7035
- ], xt.prototype, "maxlength", 2);
7035
+ ], St.prototype, "maxlength", 2);
7036
7036
  Ft([
7037
7037
  o({ type: Object })
7038
- ], xt.prototype, "inputClasses", 2);
7038
+ ], St.prototype, "inputClasses", 2);
7039
7039
  Ft([
7040
7040
  o({ type: Object })
7041
- ], xt.prototype, "internals", 2);
7041
+ ], St.prototype, "internals", 2);
7042
7042
  Ft([
7043
7043
  o({ type: Object })
7044
- ], xt.prototype, "strings", 2);
7045
- xt = Ft([
7046
- B("pkt-datepicker-multiple")
7047
- ], xt);
7048
- var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
7044
+ ], St.prototype, "strings", 2);
7045
+ St = Ft([
7046
+ V("pkt-datepicker-multiple")
7047
+ ], St);
7048
+ var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, ht = (i, t, e, s) => {
7049
7049
  for (var a = s > 1 ? void 0 : s ? Pl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7050
7050
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7051
7051
  return s && a && Ol(t, e, a), a;
@@ -7209,7 +7209,7 @@ let tt = class extends M {
7209
7209
  }}
7210
7210
  @handle-date-select=${(i) => {
7211
7211
  var t, e;
7212
- const s = we(i.detail);
7212
+ const s = _e(i.detail);
7213
7213
  s && this._value[1] !== nt(s) && ((e = (t = this.calRef) == null ? void 0 : t.value) == null || e.handleDateSelect(s));
7214
7214
  }}
7215
7215
  @input-changed=${() => {
@@ -7264,7 +7264,7 @@ let tt = class extends M {
7264
7264
  .latest=${this.max}
7265
7265
  .excludedates=${Array.isArray(this.excludedates) ? this.excludedates : this.excludedates.split(",")}
7266
7266
  .excludeweekdays=${this.excludeweekdays}
7267
- .currentmonth=${this.currentmonth ? _e(this.currentmonth) : null}
7267
+ .currentmonth=${this.currentmonth ? $e(this.currentmonth) : null}
7268
7268
  @date-selected=${(i) => {
7269
7269
  this.value = Cs.processDateSelection(i.detail, this.multiple, this.range), this._value = i.detail, Cs.updateInputValues(
7270
7270
  this.inputRef,
@@ -7323,7 +7323,7 @@ let tt = class extends M {
7323
7323
  id-base=${this.id}
7324
7324
  @date-tag-removed=${(i) => {
7325
7325
  var t;
7326
- const e = this.datepickerPopupRef.value, s = we(i.detail);
7326
+ const e = this.datepickerPopupRef.value, s = _e(i.detail);
7327
7327
  e && s && typeof e.handleDateSelect == "function" ? e.handleDateSelect(s) : (t = this.calRef.value) == null || t.handleDateSelect(s);
7328
7328
  }}
7329
7329
  ></pkt-date-tags>` : $}
@@ -7370,62 +7370,62 @@ let tt = class extends M {
7370
7370
  this._value = [], this.value = "";
7371
7371
  }
7372
7372
  };
7373
- dt([
7373
+ ht([
7374
7374
  o({ type: String, reflect: !0 })
7375
7375
  ], tt.prototype, "value", 1);
7376
- dt([
7376
+ ht([
7377
7377
  o({ type: Array })
7378
7378
  ], tt.prototype, "_value", 2);
7379
- dt([
7379
+ ht([
7380
7380
  o({ type: String, reflect: !0 })
7381
7381
  ], tt.prototype, "label", 2);
7382
- dt([
7382
+ ht([
7383
7383
  o({ type: String })
7384
7384
  ], tt.prototype, "dateformat", 2);
7385
- dt([
7385
+ ht([
7386
7386
  o({ type: Boolean, reflect: !0 })
7387
7387
  ], tt.prototype, "multiple", 2);
7388
- dt([
7388
+ ht([
7389
7389
  o({ type: Number, reflect: !0 })
7390
7390
  ], tt.prototype, "maxlength", 2);
7391
- dt([
7391
+ ht([
7392
7392
  o({ type: Boolean, reflect: !0 })
7393
7393
  ], tt.prototype, "range", 2);
7394
- dt([
7394
+ ht([
7395
7395
  o({ type: Boolean })
7396
7396
  ], tt.prototype, "showRangeLabels", 2);
7397
- dt([
7397
+ ht([
7398
7398
  o({ type: String, reflect: !0 })
7399
7399
  ], tt.prototype, "min", 2);
7400
- dt([
7400
+ ht([
7401
7401
  o({ type: String, reflect: !0 })
7402
7402
  ], tt.prototype, "max", 2);
7403
- dt([
7403
+ ht([
7404
7404
  o({ type: Boolean })
7405
7405
  ], tt.prototype, "weeknumbers", 2);
7406
- dt([
7406
+ ht([
7407
7407
  o({ type: Boolean, reflect: !0 })
7408
7408
  ], tt.prototype, "withcontrols", 2);
7409
- dt([
7409
+ ht([
7410
7410
  o({ converter: hi.csvToArray })
7411
7411
  ], tt.prototype, "excludedates", 2);
7412
- dt([
7412
+ ht([
7413
7413
  o({ converter: hi.csvToArray })
7414
7414
  ], tt.prototype, "excludeweekdays", 2);
7415
- dt([
7415
+ ht([
7416
7416
  o({ type: String })
7417
7417
  ], tt.prototype, "currentmonth", 2);
7418
- dt([
7418
+ ht([
7419
7419
  o({ type: Boolean, reflect: !0 })
7420
7420
  ], tt.prototype, "calendarOpen", 2);
7421
- dt([
7421
+ ht([
7422
7422
  o({ type: String })
7423
7423
  ], tt.prototype, "timezone", 2);
7424
- dt([
7424
+ ht([
7425
7425
  R()
7426
7426
  ], tt.prototype, "inputClasses", 2);
7427
- tt = dt([
7428
- B("pkt-datepicker")
7427
+ tt = ht([
7428
+ V("pkt-datepicker")
7429
7429
  ], tt);
7430
7430
  const Ml = { href: { default: "#" }, target: { default: "_self" } }, xa = {
7431
7431
  props: Ml
@@ -7435,7 +7435,7 @@ var Il = Object.defineProperty, Dl = Object.getOwnPropertyDescriptor, di = (i, t
7435
7435
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7436
7436
  return s && a && Il(t, e, a), a;
7437
7437
  };
7438
- let xe = class extends G {
7438
+ let we = class extends K {
7439
7439
  constructor() {
7440
7440
  super(), this.defaultSlot = N(), this.href = xa.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = xa.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7441
7441
  }
@@ -7457,28 +7457,28 @@ let xe = class extends G {
7457
7457
  };
7458
7458
  di([
7459
7459
  o({ type: String, reflect: !0 })
7460
- ], xe.prototype, "href", 2);
7460
+ ], we.prototype, "href", 2);
7461
7461
  di([
7462
7462
  o({ type: String, reflect: !0 })
7463
- ], xe.prototype, "iconName", 2);
7463
+ ], we.prototype, "iconName", 2);
7464
7464
  di([
7465
7465
  o({ type: String, reflect: !0 })
7466
- ], xe.prototype, "iconPosition", 2);
7466
+ ], we.prototype, "iconPosition", 2);
7467
7467
  di([
7468
7468
  o({ type: Boolean, reflect: !0 })
7469
- ], xe.prototype, "external", 2);
7469
+ ], we.prototype, "external", 2);
7470
7470
  di([
7471
7471
  o({ type: String, reflect: !0 })
7472
- ], xe.prototype, "target", 2);
7473
- xe = di([
7474
- B("pkt-link")
7475
- ], xe);
7472
+ ], we.prototype, "target", 2);
7473
+ we = di([
7474
+ V("pkt-link")
7475
+ ], we);
7476
7476
  var Rl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
7477
7477
  for (var a = s > 1 ? void 0 : s ? Ll(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7478
7478
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7479
7479
  return s && a && Rl(t, e, a), a;
7480
7480
  };
7481
- let ue = class extends G {
7481
+ let xe = class extends K {
7482
7482
  constructor() {
7483
7483
  super(), this.defaultSlot = N(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
7484
7484
  }
@@ -7501,32 +7501,32 @@ let ue = class extends G {
7501
7501
  };
7502
7502
  qe([
7503
7503
  o({ type: String, reflect: !0 })
7504
- ], ue.prototype, "title", 2);
7504
+ ], xe.prototype, "title", 2);
7505
7505
  qe([
7506
7506
  o({ type: String, reflect: !0 })
7507
- ], ue.prototype, "href", 2);
7507
+ ], xe.prototype, "href", 2);
7508
7508
  qe([
7509
7509
  o({ type: String, reflect: !0 })
7510
- ], ue.prototype, "iconName", 2);
7510
+ ], xe.prototype, "iconName", 2);
7511
7511
  qe([
7512
7512
  o({ type: Boolean, reflect: !0 })
7513
- ], ue.prototype, "external", 2);
7513
+ ], xe.prototype, "external", 2);
7514
7514
  qe([
7515
7515
  o({ type: Boolean, reflect: !0 })
7516
- ], ue.prototype, "openInNewTab", 2);
7516
+ ], xe.prototype, "openInNewTab", 2);
7517
7517
  qe([
7518
7518
  o({ type: String, reflect: !0 })
7519
- ], ue.prototype, "skin", 2);
7520
- ue = qe([
7521
- B("pkt-linkcard")
7522
- ], ue);
7523
- var Bl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, me = (i, t, e, s) => {
7519
+ ], xe.prototype, "skin", 2);
7520
+ xe = qe([
7521
+ V("pkt-linkcard")
7522
+ ], xe);
7523
+ var Bl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
7524
7524
  for (var a = s > 1 ? void 0 : s ? Vl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7525
7525
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7526
7526
  return s && a && Bl(t, e, a), a;
7527
7527
  };
7528
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
7529
- let Zt = class extends G {
7528
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.13/animations/";
7529
+ let Zt = class extends K {
7530
7530
  constructor() {
7531
7531
  super(), this.defaultSlot = N(), 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);
7532
7532
  }
@@ -7578,32 +7578,32 @@ let Zt = class extends G {
7578
7578
  }, this.delay));
7579
7579
  }
7580
7580
  };
7581
- me([
7581
+ ue([
7582
7582
  o({ type: Number })
7583
7583
  ], Zt.prototype, "delay", 2);
7584
- me([
7584
+ ue([
7585
7585
  o({ type: Boolean })
7586
7586
  ], Zt.prototype, "inline", 2);
7587
- me([
7587
+ ue([
7588
7588
  o({ type: Boolean })
7589
7589
  ], Zt.prototype, "isLoading", 2);
7590
- me([
7590
+ ue([
7591
7591
  o({ type: String })
7592
7592
  ], Zt.prototype, "message", 2);
7593
- me([
7593
+ ue([
7594
7594
  o({ type: String })
7595
7595
  ], Zt.prototype, "size", 2);
7596
- me([
7596
+ ue([
7597
7597
  o({ type: String })
7598
7598
  ], Zt.prototype, "variant", 2);
7599
- me([
7599
+ ue([
7600
7600
  o({ type: String })
7601
7601
  ], Zt.prototype, "loadingAnimationPath", 2);
7602
- me([
7602
+ ue([
7603
7603
  R()
7604
7604
  ], Zt.prototype, "_shouldDisplayLoader", 2);
7605
- Zt = me([
7606
- B("pkt-loader")
7605
+ Zt = ue([
7606
+ V("pkt-loader")
7607
7607
  ], Zt);
7608
7608
  const jl = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, Ts = {
7609
7609
  props: jl
@@ -7613,7 +7613,7 @@ var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, ci = (i, t
7613
7613
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7614
7614
  return s && a && Fl(t, e, a), a;
7615
7615
  };
7616
- let Ve = class extends G {
7616
+ let Ve = class extends K {
7617
7617
  constructor() {
7618
7618
  super(), this.defaultSlot = N(), this.closable = Ts.props.closable.default, this.compact = Ts.props.compact.default, this.title = "", this.skin = Ts.props.skin.default, this._isClosed = !1, this.close = (i) => {
7619
7619
  this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: i }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: i }, bubbles: !0 }));
@@ -7663,7 +7663,7 @@ ci([
7663
7663
  R()
7664
7664
  ], Ve.prototype, "_isClosed", 2);
7665
7665
  Ve = ci([
7666
- B("pkt-messagebox")
7666
+ V("pkt-messagebox")
7667
7667
  ], Ve);
7668
7668
  const Hl = { hideCloseButton: { default: !1 }, closeOnBackdropClick: { default: !1 }, size: { default: "medium" } }, Ns = {
7669
7669
  props: Hl
@@ -7673,7 +7673,7 @@ var ql = Object.defineProperty, zl = Object.getOwnPropertyDescriptor, Jt = (i, t
7673
7673
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7674
7674
  return s && a && ql(t, e, a), a;
7675
7675
  };
7676
- let Lt = class extends G {
7676
+ let Rt = class extends K {
7677
7677
  constructor() {
7678
7678
  super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = Ns.props.hideCloseButton.default, this.closeOnBackdropClick = Ns.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = Ns.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = N(), this.dialogRef = N(), this._isOpen = !1, this.close = (t, e = !1) => {
7679
7679
  var s;
@@ -7779,37 +7779,37 @@ let Lt = class extends G {
7779
7779
  };
7780
7780
  Jt([
7781
7781
  o({ type: String })
7782
- ], Lt.prototype, "headingText", 2);
7782
+ ], Rt.prototype, "headingText", 2);
7783
7783
  Jt([
7784
7784
  o({ type: Boolean })
7785
- ], Lt.prototype, "removePadding", 2);
7785
+ ], Rt.prototype, "removePadding", 2);
7786
7786
  Jt([
7787
7787
  o({ type: Boolean })
7788
- ], Lt.prototype, "hideCloseButton", 2);
7788
+ ], Rt.prototype, "hideCloseButton", 2);
7789
7789
  Jt([
7790
7790
  o({ type: Boolean })
7791
- ], Lt.prototype, "closeOnBackdropClick", 2);
7791
+ ], Rt.prototype, "closeOnBackdropClick", 2);
7792
7792
  Jt([
7793
7793
  o({ type: String })
7794
- ], Lt.prototype, "closeButtonSkin", 2);
7794
+ ], Rt.prototype, "closeButtonSkin", 2);
7795
7795
  Jt([
7796
7796
  o({ type: String })
7797
- ], Lt.prototype, "size", 2);
7797
+ ], Rt.prototype, "size", 2);
7798
7798
  Jt([
7799
7799
  o({ type: String })
7800
- ], Lt.prototype, "variant", 2);
7800
+ ], Rt.prototype, "variant", 2);
7801
7801
  Jt([
7802
7802
  o({ type: String })
7803
- ], Lt.prototype, "drawerPosition", 2);
7803
+ ], Rt.prototype, "drawerPosition", 2);
7804
7804
  Jt([
7805
7805
  o({ type: Boolean })
7806
- ], Lt.prototype, "transparentBackdrop", 2);
7806
+ ], Rt.prototype, "transparentBackdrop", 2);
7807
7807
  Jt([
7808
7808
  R()
7809
- ], Lt.prototype, "_isOpen", 2);
7810
- Lt = Jt([
7811
- B("pkt-modal")
7812
- ], Lt);
7809
+ ], Rt.prototype, "_isOpen", 2);
7810
+ Rt = Jt([
7811
+ V("pkt-modal")
7812
+ ], Rt);
7813
7813
  /**
7814
7814
  * @license
7815
7815
  * Copyright 2018 Google LLC
@@ -7838,23 +7838,23 @@ const en = "important", Wl = " !" + en, Kl = Fe(class extends li {
7838
7838
  s.includes("-") || n ? e.setProperty(s, n ? a.slice(0, -11) : a, n ? en : "") : e[s] = a;
7839
7839
  }
7840
7840
  }
7841
- return $t;
7841
+ return _t;
7842
7842
  }
7843
7843
  });
7844
- var Gl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7844
+ var Gl = Object.defineProperty, Yl = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
7845
7845
  for (var a = s > 1 ? void 0 : s ? Yl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7846
7846
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7847
7847
  return s && a && Gl(t, e, a), a;
7848
7848
  };
7849
- let et = class extends G {
7849
+ let et = class extends K {
7850
7850
  constructor() {
7851
- super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = ke(), this.role = "progressbar", this.skin = "dark-blue", this.statusPlacement = "following", this.statusType = "none", this.title = "", this.titlePosition = "left", this.valueCurrent = 0, this.valueMax = 100, this.valueMin = 0, this.labelWidth = 0, this.progressbarId = this.id, this.computedAriaLabelledby = null, this.computedAriaValueText = "", this.labelRef = N(), this.progressBarRef = N();
7851
+ super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = ye(), this.role = "progressbar", this.skin = "dark-blue", this.statusPlacement = "following", this.statusType = "none", this.title = "", this.titlePosition = "left", this.valueCurrent = 0, this.valueMax = 100, this.valueMin = 0, this.labelWidth = 0, this.progressbarId = this.id, this.computedAriaLabelledby = null, this.computedAriaValueText = "", this.labelRef = N(), this.progressBarRef = N();
7852
7852
  }
7853
7853
  firstUpdated(i) {
7854
7854
  super.firstUpdated(i), this.setComputedValues(), this.syncAttributes();
7855
7855
  }
7856
7856
  updated(i) {
7857
- 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 || ke(), 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();
7857
+ 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 || ye(), 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
7858
  }
7859
7859
  render() {
7860
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({
@@ -7894,7 +7894,7 @@ let et = class extends G {
7894
7894
  }
7895
7895
  // methods
7896
7896
  setComputedValues() {
7897
- this.progressbarId = this.id || ke(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`, this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || "";
7897
+ this.progressbarId = this.id || ye(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`, this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || "";
7898
7898
  }
7899
7899
  syncAttributes() {
7900
7900
  this._handleAttribute("aria-live", this.ariaLive), this._handleAttribute("aria-valuenow", this.valueCurrent), this._handleAttribute("aria-valuemin", this.valueMin), this._handleAttribute("aria-valuemax", this.valueMax), this._handleAttribute("aria-valuetext", this.computedAriaValueText), this._handleAttribute("aria-label", this.ariaLabel), this._handleAttribute("role", this.role), this._handleAttribute("aria-atomic", "true"), this._handleAttribute("id", this.progressbarId), this.ariaLabel || this._handleAttribute("aria-labelledby", this.computedAriaLabelledby);
@@ -7903,69 +7903,69 @@ let et = class extends G {
7903
7903
  t == null || t === "" ? this.removeAttribute(i) : this.setAttribute(i, String(t));
7904
7904
  }
7905
7905
  };
7906
- ct([
7906
+ dt([
7907
7907
  o({ type: String })
7908
7908
  ], et.prototype, "ariaLabel", 2);
7909
- ct([
7909
+ dt([
7910
7910
  o({ type: String, reflect: !0 })
7911
7911
  ], et.prototype, "ariaLabelledby", 2);
7912
- ct([
7912
+ dt([
7913
7913
  o({ type: String, reflect: !0 })
7914
7914
  ], et.prototype, "ariaValueText", 2);
7915
- ct([
7915
+ dt([
7916
7916
  o({ type: String })
7917
7917
  ], et.prototype, "ariaLive", 2);
7918
- ct([
7918
+ dt([
7919
7919
  o({ type: String, reflect: !0 })
7920
7920
  ], et.prototype, "id", 2);
7921
- ct([
7921
+ dt([
7922
7922
  o({ type: String })
7923
7923
  ], et.prototype, "role", 2);
7924
- ct([
7924
+ dt([
7925
7925
  o({ type: String })
7926
7926
  ], et.prototype, "skin", 2);
7927
- ct([
7927
+ dt([
7928
7928
  o({ type: String })
7929
7929
  ], et.prototype, "statusPlacement", 2);
7930
- ct([
7930
+ dt([
7931
7931
  o({ type: String })
7932
7932
  ], et.prototype, "statusType", 2);
7933
- ct([
7933
+ dt([
7934
7934
  o({ type: String, reflect: !0 })
7935
7935
  ], et.prototype, "title", 2);
7936
- ct([
7936
+ dt([
7937
7937
  o({ type: String })
7938
7938
  ], et.prototype, "titlePosition", 2);
7939
- ct([
7939
+ dt([
7940
7940
  o({ type: Number, reflect: !0 })
7941
7941
  ], et.prototype, "valueCurrent", 2);
7942
- ct([
7942
+ dt([
7943
7943
  o({ type: Number })
7944
7944
  ], et.prototype, "valueMax", 2);
7945
- ct([
7945
+ dt([
7946
7946
  o({ type: Number })
7947
7947
  ], et.prototype, "valueMin", 2);
7948
- ct([
7948
+ dt([
7949
7949
  R()
7950
7950
  ], et.prototype, "labelWidth", 2);
7951
- ct([
7951
+ dt([
7952
7952
  R()
7953
7953
  ], et.prototype, "progressbarId", 2);
7954
- ct([
7954
+ dt([
7955
7955
  R()
7956
7956
  ], et.prototype, "computedAriaLabelledby", 2);
7957
- ct([
7957
+ dt([
7958
7958
  R()
7959
7959
  ], et.prototype, "computedAriaValueText", 2);
7960
- et = ct([
7961
- B("pkt-progressbar")
7960
+ et = dt([
7961
+ V("pkt-progressbar")
7962
7962
  ], et);
7963
7963
  var Zl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, Ut = (i, t, e, s) => {
7964
7964
  for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7965
7965
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7966
7966
  return s && a && Zl(t, e, a), a;
7967
7967
  };
7968
- let St = class extends M {
7968
+ let Ct = class extends M {
7969
7969
  constructor() {
7970
7970
  super(...arguments), this.inputRef = N(), 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
7971
  }
@@ -8026,43 +8026,43 @@ let St = class extends M {
8026
8026
  };
8027
8027
  Ut([
8028
8028
  o({ type: String, reflect: !0 })
8029
- ], St.prototype, "value", 2);
8029
+ ], Ct.prototype, "value", 2);
8030
8030
  Ut([
8031
8031
  o({ type: String })
8032
- ], St.prototype, "checkHelptext", 2);
8032
+ ], Ct.prototype, "checkHelptext", 2);
8033
8033
  Ut([
8034
8034
  o({ type: Boolean })
8035
- ], St.prototype, "defaultChecked", 2);
8035
+ ], Ct.prototype, "defaultChecked", 2);
8036
8036
  Ut([
8037
8037
  o({ type: Boolean })
8038
- ], St.prototype, "hasTile", 2);
8038
+ ], Ct.prototype, "hasTile", 2);
8039
8039
  Ut([
8040
8040
  o({ type: Boolean, reflect: !0 })
8041
- ], St.prototype, "checked", 2);
8041
+ ], Ct.prototype, "checked", 2);
8042
8042
  Ut([
8043
8043
  o({ type: String, reflect: !0 })
8044
- ], St.prototype, "type", 2);
8044
+ ], Ct.prototype, "type", 2);
8045
8045
  Ut([
8046
8046
  o({ type: String })
8047
- ], St.prototype, "tagText", 2);
8047
+ ], Ct.prototype, "tagText", 2);
8048
8048
  Ut([
8049
8049
  o({ type: Boolean })
8050
- ], St.prototype, "optionalTag", 2);
8050
+ ], Ct.prototype, "optionalTag", 2);
8051
8051
  Ut([
8052
8052
  o({ type: String })
8053
- ], St.prototype, "optionalText", 2);
8053
+ ], Ct.prototype, "optionalText", 2);
8054
8054
  Ut([
8055
8055
  o({ type: Boolean })
8056
- ], St.prototype, "requiredTag", 2);
8056
+ ], Ct.prototype, "requiredTag", 2);
8057
8057
  Ut([
8058
8058
  o({ type: String })
8059
- ], St.prototype, "requiredText", 2);
8059
+ ], Ct.prototype, "requiredText", 2);
8060
8060
  Ut([
8061
8061
  R()
8062
- ], St.prototype, "_checked", 2);
8063
- St = Ut([
8064
- B("pkt-radiobutton")
8065
- ], St);
8062
+ ], Ct.prototype, "_checked", 2);
8063
+ Ct = Ut([
8064
+ V("pkt-radiobutton")
8065
+ ], Ct);
8066
8066
  /**
8067
8067
  * @license
8068
8068
  * Copyright 2021 Google LLC
@@ -8228,7 +8228,7 @@ var ih = Object.defineProperty, sh = Object.getOwnPropertyDescriptor, pi = (i, t
8228
8228
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8229
8229
  return s && a && ih(t, e, a), a;
8230
8230
  };
8231
- let je = class extends G {
8231
+ let je = class extends K {
8232
8232
  constructor() {
8233
8233
  super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = N(), this.context = {
8234
8234
  useArrowNav: this.useArrowNav,
@@ -8295,14 +8295,14 @@ pi([
8295
8295
  R()
8296
8296
  ], je.prototype, "context", 2);
8297
8297
  je = pi([
8298
- B("pkt-tabs")
8298
+ V("pkt-tabs")
8299
8299
  ], je);
8300
- var ah = Object.defineProperty, nh = Object.getOwnPropertyDescriptor, fe = (i, t, e, s) => {
8300
+ var ah = Object.defineProperty, nh = Object.getOwnPropertyDescriptor, me = (i, t, e, s) => {
8301
8301
  for (var a = s > 1 ? void 0 : s ? nh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8302
8302
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8303
8303
  return s && a && ah(t, e, a), a;
8304
8304
  };
8305
- let se = class extends G {
8305
+ let se = class extends K {
8306
8306
  constructor() {
8307
8307
  super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = N(), this.defaultSlot = N(), this.slotController = new rt(this, this.defaultSlot);
8308
8308
  }
@@ -8355,33 +8355,33 @@ let se = class extends G {
8355
8355
  `;
8356
8356
  }
8357
8357
  };
8358
- fe([
8358
+ me([
8359
8359
  o({ type: Boolean, reflect: !0 })
8360
8360
  ], se.prototype, "active", 2);
8361
- fe([
8361
+ me([
8362
8362
  o({ type: String, reflect: !0 })
8363
8363
  ], se.prototype, "href", 2);
8364
- fe([
8364
+ me([
8365
8365
  o({ type: String, reflect: !0 })
8366
8366
  ], se.prototype, "icon", 2);
8367
- fe([
8367
+ me([
8368
8368
  o({ type: String, reflect: !0 })
8369
8369
  ], se.prototype, "controls", 2);
8370
- fe([
8370
+ me([
8371
8371
  o({ type: String, reflect: !0 })
8372
8372
  ], se.prototype, "tag", 2);
8373
- fe([
8373
+ me([
8374
8374
  o({ type: String, reflect: !0, attribute: "tag-skin" })
8375
8375
  ], se.prototype, "tagSkin", 2);
8376
- fe([
8376
+ me([
8377
8377
  o({ type: Number, reflect: !0 })
8378
8378
  ], se.prototype, "index", 2);
8379
- fe([
8379
+ me([
8380
8380
  eh({ context: an, subscribe: !0 }),
8381
8381
  o({ attribute: !1 })
8382
8382
  ], se.prototype, "context", 2);
8383
- se = fe([
8384
- B("pkt-tab-item")
8383
+ se = me([
8384
+ V("pkt-tab-item")
8385
8385
  ], se);
8386
8386
  /**
8387
8387
  * @license
@@ -8397,13 +8397,13 @@ const rh = Fe(class extends li {
8397
8397
  return i;
8398
8398
  }
8399
8399
  update(i, [t]) {
8400
- if (t === $t || t === $) return t;
8400
+ if (t === _t || t === $) return t;
8401
8401
  const e = i.element, s = i.name;
8402
8402
  if (i.type === Kt.PROPERTY) {
8403
- if (t === e[s]) return $t;
8403
+ if (t === e[s]) return _t;
8404
8404
  } else if (i.type === Kt.BOOLEAN_ATTRIBUTE) {
8405
- if (!!t === e.hasAttribute(s)) return $t;
8406
- } else if (i.type === Kt.ATTRIBUTE && e.getAttribute(s) === t + "") return $t;
8405
+ if (!!t === e.hasAttribute(s)) return _t;
8406
+ } else if (i.type === Kt.ATTRIBUTE && e.getAttribute(s) === t + "") return _t;
8407
8407
  return Ua(i), t;
8408
8408
  }
8409
8409
  });
@@ -8498,7 +8498,7 @@ Vi([
8498
8498
  R()
8499
8499
  ], ai.prototype, "counterCurrent", 2);
8500
8500
  ai = Vi([
8501
- B("pkt-textarea")
8501
+ V("pkt-textarea")
8502
8502
  ], ai);
8503
8503
  var hh = Object.defineProperty, dh = Object.getOwnPropertyDescriptor, oe = (i, t, e, s) => {
8504
8504
  for (var a = s > 1 ? void 0 : s ? dh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
@@ -8636,7 +8636,7 @@ oe([
8636
8636
  R()
8637
8637
  ], Xt.prototype, "counterCurrent", 2);
8638
8638
  Xt = oe([
8639
- B("pkt-textinput")
8639
+ V("pkt-textinput")
8640
8640
  ], Xt);
8641
8641
  var ch = Object.defineProperty, ph = Object.getOwnPropertyDescriptor, ds = (i, t, e, s) => {
8642
8642
  for (var a = s > 1 ? void 0 : s ? ph(t, e) : t, n = i.length - 1, r; n >= 0; n--)
@@ -8798,14 +8798,14 @@ ds([
8798
8798
  R()
8799
8799
  ], Ii.prototype, "_options", 2);
8800
8800
  Ii = ds([
8801
- B("pkt-select")
8801
+ V("pkt-select")
8802
8802
  ], Ii);
8803
8803
  var uh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, ji = (i, t, e, s) => {
8804
8804
  for (var a = s > 1 ? void 0 : s ? mh(t, e) : t, n = i.length - 1, r; n >= 0; n--)
8805
8805
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8806
8806
  return s && a && uh(t, e, a), a;
8807
8807
  };
8808
- let ni = class extends G {
8808
+ let ni = class extends K {
8809
8809
  constructor() {
8810
8810
  super(), this.string = "", this.strings = [], this.darkmode = !1, this._list = [], this.defaultSlot = N(), this.namedSlot = N(), this.slotController = new rt(this, this.defaultSlot, this.namedSlot);
8811
8811
  }
@@ -8847,7 +8847,7 @@ let ni = class extends G {
8847
8847
 
8848
8848
  <h2 class="pkt-txt-22">Knapp som emitter en event</h2>
8849
8849
  <button type="button" @click=${() => this.handleGreeting()}>
8850
- Si ${vt.example.hi}
8850
+ Si ${bt.example.hi}
8851
8851
  </button>
8852
8852
  </div>
8853
8853
  `;
@@ -8889,15 +8889,15 @@ ji([
8889
8889
  o({ type: Array })
8890
8890
  ], ni.prototype, "_list", 2);
8891
8891
  ni = ji([
8892
- B("pkt-component")
8892
+ V("pkt-component")
8893
8893
  ], ni);
8894
- const U = Tt({
8894
+ const B = Lt({
8895
8895
  tagName: "pkt-icon",
8896
8896
  elementClass: Re,
8897
- react: lt,
8897
+ react: ct,
8898
8898
  displayName: "PktIcon",
8899
8899
  events: {}
8900
- }), fh = K(
8900
+ }), fh = G(
8901
8901
  ({
8902
8902
  defaultOpen: i = !1,
8903
8903
  id: t,
@@ -8909,20 +8909,20 @@ const U = Tt({
8909
8909
  name: l,
8910
8910
  className: d,
8911
8911
  onClick: p,
8912
- onToggle: g
8913
- }, f) => {
8912
+ onToggle: f
8913
+ }, g) => {
8914
8914
  const [k, b] = oi(i), { name: y } = vn(), w = l || y, C = n !== void 0 ? n : k;
8915
8915
  as(() => {
8916
8916
  n === void 0 && b(i);
8917
8917
  }, [i, n]);
8918
8918
  const P = (A) => {
8919
8919
  const Z = A.currentTarget.open;
8920
- n === void 0 && b(Z), g == null || g(A);
8920
+ n === void 0 && b(Z), f == null || f(A);
8921
8921
  }, T = (A) => {
8922
8922
  setTimeout(() => {
8923
8923
  p == null || p(A);
8924
8924
  }, 0);
8925
- }, j = [
8925
+ }, F = [
8926
8926
  "pkt-accordion-item",
8927
8927
  a && "pkt-accordion-item--compact",
8928
8928
  s && `pkt-accordion-item--${s}`,
@@ -8931,8 +8931,8 @@ const U = Tt({
8931
8931
  return /* @__PURE__ */ x(
8932
8932
  "details",
8933
8933
  {
8934
- ref: f,
8935
- className: j,
8934
+ ref: g,
8935
+ className: F,
8936
8936
  id: t,
8937
8937
  open: C,
8938
8938
  onClick: T,
@@ -8941,7 +8941,7 @@ const U = Tt({
8941
8941
  children: [
8942
8942
  /* @__PURE__ */ x("summary", { className: "pkt-accordion-item__title", id: `pkt-accordion-item-summary-${t}`, children: [
8943
8943
  e,
8944
- /* @__PURE__ */ h(U, { name: "chevron-thin-down", className: "pkt-accordion-item__icon", "aria-hidden": "true" })
8944
+ /* @__PURE__ */ h(B, { name: "chevron-thin-down", className: "pkt-accordion-item__icon", "aria-hidden": "true" })
8945
8945
  ] }),
8946
8946
  /* @__PURE__ */ h("div", { className: "pkt-accordion-item__content", id: `pkt-accordion-item__content-${t}`, role: "region", children: /* @__PURE__ */ h("div", { className: "pkt-accordion-item__content-inner", children: r }) })
8947
8947
  ]
@@ -8993,7 +8993,7 @@ function vh() {
8993
8993
  })(As)), As.exports;
8994
8994
  }
8995
8995
  var bh = vh();
8996
- const Ct = /* @__PURE__ */ gh(bh), nn = ({
8996
+ const gt = /* @__PURE__ */ gh(bh), nn = ({
8997
8997
  children: i,
8998
8998
  closeAlert: t,
8999
8999
  compact: e,
@@ -9005,21 +9005,21 @@ const Ct = /* @__PURE__ */ gh(bh), nn = ({
9005
9005
  skin: d = "info",
9006
9006
  ...p
9007
9007
  }) => {
9008
- const [g, f] = oi(!1), k = {
9008
+ const [f, g] = oi(!1), k = {
9009
9009
  "pkt-alert": !0,
9010
9010
  "pkt-alert--compact": e,
9011
9011
  [`pkt-alert--${d}`]: d,
9012
- "pkt-hide": g
9012
+ "pkt-hide": f
9013
9013
  }, b = {
9014
9014
  "pkt-alert__grid": !0,
9015
9015
  "pkt-alert__noTitle": !s,
9016
9016
  "pkt-alert__noDate": !a
9017
9017
  }, y = Ea(() => {
9018
- f(!0), p.onClose && p.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9019
- }, [p.onClose, f]);
9020
- return /* @__PURE__ */ h("div", { ...p, "aria-live": n || r, role: l, className: Ct(k), children: /* @__PURE__ */ x("div", { className: Ct(b), children: [
9018
+ g(!0), p.onClose && p.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9019
+ }, [p.onClose, g]);
9020
+ return /* @__PURE__ */ h("div", { ...p, "aria-live": n || r, role: l, className: gt(k), children: /* @__PURE__ */ x("div", { className: gt(b), children: [
9021
9021
  /* @__PURE__ */ h(
9022
- U,
9022
+ B,
9023
9023
  {
9024
9024
  className: "pkt-alert__icon",
9025
9025
  "aria-hidden": "true",
@@ -9049,14 +9049,14 @@ const Ct = /* @__PURE__ */ gh(bh), nn = ({
9049
9049
  ] }) });
9050
9050
  };
9051
9051
  nn.displayName = "PktAlert";
9052
- const yh = Tt({
9052
+ const yh = Lt({
9053
9053
  tagName: "pkt-backlink",
9054
9054
  elementClass: ii,
9055
- react: lt,
9055
+ react: ct,
9056
9056
  displayName: "PktBackLink"
9057
9057
  });
9058
9058
  yh.displayName = "PktBackLink";
9059
- const Kd = K(
9059
+ const Wd = G(
9060
9060
  ({ breadcrumbs: i, navigationType: t, className: e, ...s }, a) => {
9061
9061
  const n = i, r = n[n.length - 2], l = [e, "pkt-breadcrumbs"].filter(Boolean).join(" ");
9062
9062
  return /* @__PURE__ */ x("nav", { ref: a, "aria-label": "brødsmulemeny", className: l, children: [
@@ -9067,7 +9067,7 @@ const Kd = K(
9067
9067
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
9068
9068
  ...s,
9069
9069
  children: [
9070
- /* @__PURE__ */ h(U, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
9070
+ /* @__PURE__ */ h(B, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
9071
9071
  /* @__PURE__ */ h("span", { className: "pkt-breadcrumbs__text", children: d.text })
9072
9072
  ]
9073
9073
  }
@@ -9078,23 +9078,23 @@ const Kd = K(
9078
9078
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
9079
9079
  ...s,
9080
9080
  children: [
9081
- /* @__PURE__ */ h(U, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
9081
+ /* @__PURE__ */ h(B, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
9082
9082
  /* @__PURE__ */ h("span", { className: "pkt-breadcrumbs__text", children: d.text })
9083
9083
  ]
9084
9084
  }
9085
9085
  ) }, `breadcrumb-${p}`)) }),
9086
9086
  t === "router" ? /* @__PURE__ */ x(zs, { to: r.href, className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile", ...s, children: [
9087
- /* @__PURE__ */ h(U, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
9087
+ /* @__PURE__ */ h(B, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
9088
9088
  /* @__PURE__ */ h("span", { className: "pkt-breadcrumbs__text", children: r.text })
9089
9089
  ] }) : /* @__PURE__ */ x("a", { href: r.href, className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile", ...s, children: [
9090
- /* @__PURE__ */ h(U, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
9090
+ /* @__PURE__ */ h(B, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
9091
9091
  /* @__PURE__ */ h("span", { className: "pkt-breadcrumbs__text", children: r.text })
9092
9092
  ] })
9093
9093
  ] });
9094
9094
  }
9095
9095
  );
9096
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.12/animations/";
9097
- const ri = K(
9096
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.13/animations/";
9097
+ const ri = G(
9098
9098
  ({
9099
9099
  children: i,
9100
9100
  className: t,
@@ -9106,8 +9106,8 @@ const ri = K(
9106
9106
  variant: l = "label-only",
9107
9107
  state: d,
9108
9108
  color: p,
9109
- isLoading: g = void 0,
9110
- disabled: f = void 0,
9109
+ isLoading: f = void 0,
9110
+ disabled: g = void 0,
9111
9111
  loadingAnimationPath: k = window.pktAnimationPath,
9112
9112
  ...b
9113
9113
  }, y) => {
@@ -9119,40 +9119,40 @@ const ri = K(
9119
9119
  l && `pkt-btn--${l}`,
9120
9120
  p && `pkt-btn--${p}`,
9121
9121
  d && `pkt-btn--${d}`,
9122
- g && "pkt-btn--isLoading"
9122
+ f && "pkt-btn--isLoading"
9123
9123
  ].filter(Boolean).join(" ");
9124
9124
  return /* @__PURE__ */ x(
9125
9125
  "button",
9126
9126
  {
9127
9127
  ...b,
9128
- "aria-busy": g || void 0,
9129
- "aria-disabled": f || void 0,
9130
- disabled: f,
9128
+ "aria-busy": f || void 0,
9129
+ "aria-disabled": g || void 0,
9130
+ disabled: g,
9131
9131
  className: w,
9132
9132
  type: r,
9133
9133
  ref: y,
9134
9134
  children: [
9135
- g && /* @__PURE__ */ h(U, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: k }),
9136
- l !== "label-only" && /* @__PURE__ */ h(U, { className: "pkt-btn__icon", name: e }),
9135
+ f && /* @__PURE__ */ h(B, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: k }),
9136
+ l !== "label-only" && /* @__PURE__ */ h(B, { className: "pkt-btn__icon", name: e }),
9137
9137
  /* @__PURE__ */ h("span", { className: "pkt-btn__text", children: i }),
9138
- l === "icons-right-and-left" && /* @__PURE__ */ h(U, { className: "pkt-btn__icon", name: s })
9138
+ l === "icons-right-and-left" && /* @__PURE__ */ h(B, { className: "pkt-btn__icon", name: s })
9139
9139
  ]
9140
9140
  }
9141
9141
  );
9142
9142
  }
9143
9143
  );
9144
9144
  ri.displayName = "PktButton";
9145
- const kh = Tt({
9145
+ const kh = Lt({
9146
9146
  tagName: "pkt-card",
9147
- elementClass: ht,
9148
- react: lt,
9147
+ elementClass: lt,
9148
+ react: ct,
9149
9149
  displayName: "PktCard",
9150
9150
  events: {}
9151
- }), $h = K(
9151
+ }), $h = G(
9152
9152
  ({ children: i, ...t }, e) => /* @__PURE__ */ h(kh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9153
9153
  );
9154
9154
  $h.displayName = "PktCard";
9155
- const _h = K(
9155
+ const _h = G(
9156
9156
  ({
9157
9157
  id: i,
9158
9158
  hasTile: t = !1,
@@ -9164,8 +9164,8 @@ const _h = K(
9164
9164
  isSwitch: l = !1,
9165
9165
  hideLabel: d = !1,
9166
9166
  labelPosition: p = "right",
9167
- defaultChecked: g,
9168
- checked: f,
9167
+ defaultChecked: f,
9168
+ checked: g,
9169
9169
  optionalTag: k,
9170
9170
  optionalText: b = "Valgfritt",
9171
9171
  requiredTag: y,
@@ -9173,7 +9173,7 @@ const _h = K(
9173
9173
  tagText: C,
9174
9174
  ...P
9175
9175
  }, T) => {
9176
- const j = [r, "pkt-input-check"].filter(Boolean).join(" "), A = [
9176
+ const F = [r, "pkt-input-check"].filter(Boolean).join(" "), A = [
9177
9177
  "pkt-input-check__input-label",
9178
9178
  e ? "pkt-input-check__input-label--disabled" : "",
9179
9179
  `pkt-input-check__input-label--${p}`,
@@ -9182,16 +9182,16 @@ const _h = K(
9182
9182
  "pkt-input-check__input",
9183
9183
  t ? "pkt-input-check__input--tile" : "",
9184
9184
  e && t ? "pkt-input-check__input--tile-disabled" : ""
9185
- ].filter(Boolean).join(" "), Z = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), At = () => /* @__PURE__ */ x(Gt, { children: [
9185
+ ].filter(Boolean).join(" "), Z = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), Nt = () => /* @__PURE__ */ x(Gt, { children: [
9186
9186
  C && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--gray", children: C }),
9187
9187
  k && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--blue-light", children: b }),
9188
9188
  y && /* @__PURE__ */ h("span", { className: Z + " pkt-tag--beige", children: w })
9189
9189
  ] });
9190
- return /* @__PURE__ */ h("div", { className: j, children: /* @__PURE__ */ x("div", { className: z, children: [
9190
+ return /* @__PURE__ */ h("div", { className: F, children: /* @__PURE__ */ x("div", { className: z, children: [
9191
9191
  p === "left" && /* @__PURE__ */ x("label", { className: A, htmlFor: i, children: [
9192
9192
  s,
9193
9193
  " ",
9194
- At(),
9194
+ Nt(),
9195
9195
  a && /* @__PURE__ */ h("div", { className: "pkt-input-check__input-helptext", children: a })
9196
9196
  ] }),
9197
9197
  /* @__PURE__ */ h(
@@ -9203,24 +9203,24 @@ const _h = K(
9203
9203
  type: "checkbox",
9204
9204
  id: i,
9205
9205
  disabled: e,
9206
- ...f !== void 0 ? { checked: f } : { defaultChecked: g },
9206
+ ...g !== void 0 ? { checked: g } : { defaultChecked: f },
9207
9207
  ...P
9208
9208
  }
9209
9209
  ),
9210
9210
  p === "right" && /* @__PURE__ */ x("label", { className: A, htmlFor: i, children: [
9211
9211
  s,
9212
9212
  " ",
9213
- At(),
9213
+ Nt(),
9214
9214
  a && /* @__PURE__ */ h("div", { className: "pkt-input-check__input-helptext", children: a })
9215
9215
  ] })
9216
9216
  ] }) });
9217
9217
  }
9218
9218
  );
9219
9219
  _h.displayName = "PktCheckbox";
9220
- const wh = Tt({
9220
+ const wh = Lt({
9221
9221
  tagName: "pkt-combobox",
9222
9222
  elementClass: J,
9223
- react: lt,
9223
+ react: ct,
9224
9224
  displayName: "PktCombobox",
9225
9225
  events: {
9226
9226
  onClick: "click",
@@ -9231,25 +9231,25 @@ const wh = Tt({
9231
9231
  onValueChange: "value-change",
9232
9232
  onToggleHelpText: "toggleHelpText"
9233
9233
  }
9234
- }), xh = K(({ children: i, helptext: t, ...e }, s) => /* @__PURE__ */ x(wh, { ...e, ref: s, children: [
9234
+ }), xh = G(({ children: i, helptext: t, ...e }, s) => /* @__PURE__ */ x(wh, { ...e, ref: s, children: [
9235
9235
  t && /* @__PURE__ */ h("div", { slot: "helptext", className: "pkt-contents", children: t }),
9236
9236
  i
9237
9237
  ] }));
9238
9238
  xh.displayName = "PktCombobox";
9239
- const js = Tt({
9239
+ const js = Lt({
9240
9240
  tagName: "pkt-consent",
9241
9241
  elementClass: zt,
9242
- react: lt,
9242
+ react: ct,
9243
9243
  displayName: "PktConsent",
9244
9244
  events: {
9245
9245
  onToggleConsent: "toggle-consent"
9246
9246
  }
9247
9247
  });
9248
9248
  js.displayName = "PktConsent";
9249
- const Sh = Tt({
9249
+ const Sh = Lt({
9250
9250
  tagName: "pkt-datepicker",
9251
9251
  elementClass: tt,
9252
- react: lt,
9252
+ react: ct,
9253
9253
  displayName: "PktDatepicker",
9254
9254
  events: {
9255
9255
  onChange: "change",
@@ -9258,11 +9258,11 @@ const Sh = Tt({
9258
9258
  onValueChange: "value-change",
9259
9259
  onToggleHelpText: "toggleHelpText"
9260
9260
  }
9261
- }), Ch = K(
9261
+ }), Ch = G(
9262
9262
  ({ helptext: i, ...t }, e) => /* @__PURE__ */ h(Sh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", slot: "helptext", children: i }) })
9263
9263
  );
9264
9264
  Ch.displayName = "PktDatepicker";
9265
- const Gd = ({
9265
+ const Kd = ({
9266
9266
  columnOne: i,
9267
9267
  columnTwo: t,
9268
9268
  socialLinks: e,
@@ -9273,8 +9273,8 @@ const Gd = ({
9273
9273
  includeConsent: l = !1,
9274
9274
  hotjarId: d = null,
9275
9275
  googleAnalyticsId: p = null,
9276
- devMode: g = !1,
9277
- cookieDomain: f = null,
9276
+ devMode: f = !1,
9277
+ cookieDomain: g = null,
9278
9278
  cookieSecure: k = null,
9279
9279
  cookieExpiryDays: b = null,
9280
9280
  onToggleConsent: y = (w) => {
@@ -9289,7 +9289,7 @@ const Gd = ({
9289
9289
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: i.title }),
9290
9290
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9291
9291
  i.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: i.text }),
9292
- (C = i.links) == null ? void 0 : C.map((T, j) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9292
+ (C = i.links) == null ? void 0 : C.map((T, F) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9293
9293
  "a",
9294
9294
  {
9295
9295
  className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
@@ -9297,18 +9297,18 @@ const Gd = ({
9297
9297
  target: T.openInNewTab || a ? "_blank" : "_self",
9298
9298
  rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9299
9299
  children: [
9300
- /* @__PURE__ */ h(U, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9300
+ /* @__PURE__ */ h(B, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9301
9301
  T.text
9302
9302
  ]
9303
9303
  }
9304
- ) }, `links-${j}`))
9304
+ ) }, `links-${F}`))
9305
9305
  ] })
9306
9306
  ] }),
9307
9307
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
9308
9308
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
9309
9309
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9310
9310
  t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
9311
- (P = t.links) == null ? void 0 : P.map((T, j) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9311
+ (P = t.links) == null ? void 0 : P.map((T, F) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9312
9312
  "a",
9313
9313
  {
9314
9314
  className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
@@ -9316,11 +9316,11 @@ const Gd = ({
9316
9316
  target: T.openInNewTab || a ? "_blank" : "_self",
9317
9317
  rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9318
9318
  children: [
9319
- /* @__PURE__ */ h(U, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9319
+ /* @__PURE__ */ h(B, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9320
9320
  T.text
9321
9321
  ]
9322
9322
  }
9323
- ) }, `links-${j}`))
9323
+ ) }, `links-${F}`))
9324
9324
  ] })
9325
9325
  ] }),
9326
9326
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -9334,7 +9334,7 @@ const Gd = ({
9334
9334
  target: a ? "_blank" : "_self",
9335
9335
  rel: a ? "noopener noreferrer" : void 0,
9336
9336
  children: [
9337
- /* @__PURE__ */ h(U, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9337
+ /* @__PURE__ */ h(B, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9338
9338
  "Personvern og informasjonskapsler"
9339
9339
  ]
9340
9340
  }
@@ -9347,7 +9347,7 @@ const Gd = ({
9347
9347
  target: a ? "_blank" : "_self",
9348
9348
  rel: a ? "noopener noreferrer" : void 0,
9349
9349
  children: [
9350
- /* @__PURE__ */ h(U, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9350
+ /* @__PURE__ */ h(B, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9351
9351
  "Tilgjengelighet"
9352
9352
  ]
9353
9353
  }
@@ -9358,8 +9358,8 @@ const Gd = ({
9358
9358
  triggerType: "footerlink",
9359
9359
  hotjarId: d,
9360
9360
  googleAnalyticsId: p,
9361
- devMode: g,
9362
- cookieDomain: f,
9361
+ devMode: f,
9362
+ cookieDomain: g,
9363
9363
  cookieSecure: k,
9364
9364
  cookieExpiryDays: b,
9365
9365
  onToggleConsent: y
@@ -9369,7 +9369,7 @@ const Gd = ({
9369
9369
  ] })
9370
9370
  ] }),
9371
9371
  e && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
9372
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((T) => T.language).map((T, j) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9372
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((T) => T.language).map((T, F) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9373
9373
  "a",
9374
9374
  {
9375
9375
  href: T.href,
@@ -9378,8 +9378,8 @@ const Gd = ({
9378
9378
  rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9379
9379
  children: T.language
9380
9380
  }
9381
- ) }, `sociallinks-language-${j}`)) }),
9382
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((T) => T.iconName).map((T, j) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
9381
+ ) }, `sociallinks-language-${F}`)) }),
9382
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((T) => T.iconName).map((T, F) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
9383
9383
  "a",
9384
9384
  {
9385
9385
  href: T.href,
@@ -9387,12 +9387,12 @@ const Gd = ({
9387
9387
  className: "pkt-footer__social-icon-link",
9388
9388
  target: T.openInNewTab || a ? "_blank" : "_self",
9389
9389
  rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9390
- children: /* @__PURE__ */ h(U, { className: "pkt-footer__social-icon", name: T.iconName })
9390
+ children: /* @__PURE__ */ h(B, { className: "pkt-footer__social-icon", name: T.iconName })
9391
9391
  }
9392
- ) }, `sociallinks-${j}`)) })
9392
+ ) }, `sociallinks-${F}`)) })
9393
9393
  ] })
9394
9394
  ] }) });
9395
- }, Yd = ({
9395
+ }, Gd = ({
9396
9396
  links: i = [],
9397
9397
  openLinksInNewTab: t = !1,
9398
9398
  personvernOgInfoLink: e = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
@@ -9403,8 +9403,8 @@ const Gd = ({
9403
9403
  devMode: l = !1,
9404
9404
  cookieDomain: d = null,
9405
9405
  cookieSecure: p = null,
9406
- cookieExpiryDays: g = null,
9407
- onToggleConsent: f = (b) => {
9406
+ cookieExpiryDays: f = null,
9407
+ onToggleConsent: g = (b) => {
9408
9408
  console.log(b.detail);
9409
9409
  },
9410
9410
  className: k
@@ -9419,7 +9419,7 @@ const Gd = ({
9419
9419
  target: y.openInNewTab || t ? "_blank" : "_self",
9420
9420
  rel: y.openInNewTab || t ? "noopener noreferrer" : void 0,
9421
9421
  children: [
9422
- /* @__PURE__ */ h(U, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9422
+ /* @__PURE__ */ h(B, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9423
9423
  y.text
9424
9424
  ]
9425
9425
  }
@@ -9432,7 +9432,7 @@ const Gd = ({
9432
9432
  target: t ? "_blank" : "_self",
9433
9433
  rel: t ? "noopener noreferrer" : void 0,
9434
9434
  children: [
9435
- /* @__PURE__ */ h(U, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9435
+ /* @__PURE__ */ h(B, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9436
9436
  "Personvern og informasjonskapsler"
9437
9437
  ]
9438
9438
  }
@@ -9445,7 +9445,7 @@ const Gd = ({
9445
9445
  target: t ? "_blank" : "_self",
9446
9446
  rel: t ? "noopener noreferrer" : void 0,
9447
9447
  children: [
9448
- /* @__PURE__ */ h(U, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9448
+ /* @__PURE__ */ h(B, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
9449
9449
  "Tilgjengelighet"
9450
9450
  ]
9451
9451
  }
@@ -9459,12 +9459,12 @@ const Gd = ({
9459
9459
  devMode: l,
9460
9460
  cookieDomain: d,
9461
9461
  cookieSecure: p,
9462
- cookieExpiryDays: g,
9463
- onToggleConsent: f
9462
+ cookieExpiryDays: f,
9463
+ onToggleConsent: g
9464
9464
  }
9465
9465
  ) })
9466
9466
  ] }) }) });
9467
- }, Zd = K(
9467
+ }, Yd = G(
9468
9468
  ({
9469
9469
  className: i,
9470
9470
  logoLink: t = "https://www.oslo.kommune.no/",
@@ -9476,8 +9476,8 @@ const Gd = ({
9476
9476
  representing: l,
9477
9477
  userOptions: d,
9478
9478
  userMenuFooter: p,
9479
- canChangeRepresentation: g = !0,
9480
- showMenuButton: f = !1,
9479
+ canChangeRepresentation: f = !0,
9480
+ showMenuButton: g = !1,
9481
9481
  showLogOutButton: k = !1,
9482
9482
  openMenu: b,
9483
9483
  logOut: y,
@@ -9485,24 +9485,24 @@ const Gd = ({
9485
9485
  children: C,
9486
9486
  ...P
9487
9487
  }, T) => {
9488
- const j = lt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9488
+ const F = ct.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9489
9489
  year: "numeric",
9490
9490
  month: "long",
9491
9491
  day: "numeric"
9492
- }) : "", [n]), [A, z] = lt.useState(!1), [Z, At] = lt.useState(0), [Et, Q] = lt.useState(!1), st = lt.useRef(null);
9493
- lt.useEffect(() => (document && (document.addEventListener("mouseup", Pt), window.addEventListener("scroll", at)), () => {
9494
- document && (document.removeEventListener("mouseup", Pt), window.removeEventListener("scroll", at));
9492
+ }) : "", [n]), [A, z] = ct.useState(!1), [Z, Nt] = ct.useState(0), [At, Q] = ct.useState(!1), st = ct.useRef(null);
9493
+ ct.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9494
+ document && (document.removeEventListener("mouseup", Ot), window.removeEventListener("scroll", at));
9495
9495
  }));
9496
- const Ot = () => {
9497
- Q(!Et);
9498
- }, Pt = (D) => {
9496
+ const Et = () => {
9497
+ Q(!At);
9498
+ }, Ot = (D) => {
9499
9499
  st.current && !st.current.contains(D.target) && Q(!1);
9500
9500
  }, at = () => {
9501
9501
  if (a) {
9502
9502
  const D = window.pageYOffset || document.documentElement.scrollTop;
9503
9503
  if (D < 0 || Math.abs(D - Z) < 60)
9504
9504
  return;
9505
- z(D > Z), At(D);
9505
+ z(D > Z), Nt(D);
9506
9506
  }
9507
9507
  };
9508
9508
  return /* @__PURE__ */ x(
@@ -9512,7 +9512,7 @@ const Gd = ({
9512
9512
  id: "pkt-header",
9513
9513
  "data-testid": "pkt-header",
9514
9514
  "aria-label": "Topp",
9515
- className: Ct(i, "pkt-header", {
9515
+ className: gt(i, "pkt-header", {
9516
9516
  "pkt-header--fixed": s,
9517
9517
  "pkt-header--scroll-to-hide": a,
9518
9518
  "pkt-header--hidden": A
@@ -9521,12 +9521,12 @@ const Gd = ({
9521
9521
  children: [
9522
9522
  /* @__PURE__ */ x("div", { className: "pkt-header__logo", children: [
9523
9523
  typeof t == "string" ? /* @__PURE__ */ h("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: t, children: /* @__PURE__ */ h(
9524
- U,
9524
+ B,
9525
9525
  {
9526
9526
  name: "oslologo",
9527
9527
  className: "pkt-header__logo-svg",
9528
9528
  "aria-hidden": "true",
9529
- path: "https://punkt-cdn.oslo.kommune.no/13.12/logos/"
9529
+ path: "https://punkt-cdn.oslo.kommune.no/13.13/logos/"
9530
9530
  }
9531
9531
  ) }) : /* @__PURE__ */ h(
9532
9532
  "button",
@@ -9535,12 +9535,12 @@ const Gd = ({
9535
9535
  className: "pkt-link-button pkt-link pkt-header__logo-link",
9536
9536
  onClick: t,
9537
9537
  children: /* @__PURE__ */ h(
9538
- U,
9538
+ B,
9539
9539
  {
9540
9540
  name: "oslologo",
9541
9541
  className: "pkt-header__logo-svg",
9542
9542
  "aria-hidden": "true",
9543
- path: "https://punkt-cdn.oslo.kommune.no/13.12/logos/"
9543
+ path: "https://punkt-cdn.oslo.kommune.no/13.13/logos/"
9544
9544
  }
9545
9545
  )
9546
9546
  }
@@ -9548,7 +9548,7 @@ const Gd = ({
9548
9548
  /* @__PURE__ */ h("span", { className: "pkt-header__logo-service", translate: "no", children: e })
9549
9549
  ] }),
9550
9550
  /* @__PURE__ */ h("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ x("ul", { className: "pkt-header__actions-row", children: [
9551
- f && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
9551
+ g && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
9552
9552
  ri,
9553
9553
  {
9554
9554
  className: "pkt-header__menu-btn",
@@ -9563,7 +9563,7 @@ const Gd = ({
9563
9563
  "li",
9564
9564
  {
9565
9565
  "data-testid": "usermenu",
9566
- className: `pkt-header--has-dropdown ${Et && !A ? "pkt-header--open-dropdown" : ""}`,
9566
+ className: `pkt-header--has-dropdown ${At && !A ? "pkt-header--open-dropdown" : ""}`,
9567
9567
  ref: st,
9568
9568
  children: [
9569
9569
  /* @__PURE__ */ x(
@@ -9573,14 +9573,14 @@ const Gd = ({
9573
9573
  type: "button",
9574
9574
  role: "button",
9575
9575
  "aria-controls": "pktUserDropdown",
9576
- "aria-expanded": Et,
9577
- onClick: Ot,
9576
+ "aria-expanded": At,
9577
+ onClick: Et,
9578
9578
  children: [
9579
- /* @__PURE__ */ h(U, { name: "user", className: "pkt-btn__icon" }),
9579
+ /* @__PURE__ */ h(B, { name: "user", className: "pkt-btn__icon" }),
9580
9580
  /* @__PURE__ */ h("span", { className: "pkt-header__user-fullname", translate: "no", children: (l == null ? void 0 : l.name) || (n == null ? void 0 : n.name) }),
9581
9581
  /* @__PURE__ */ h("span", { className: "pkt-header__user-shortname", translate: "no", children: (l == null ? void 0 : l.shortname) || (n == null ? void 0 : n.shortname) }),
9582
- /* @__PURE__ */ h(U, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
9583
- /* @__PURE__ */ h(U, { name: "chevron-thin-up", className: "pkt-btn--open" })
9582
+ /* @__PURE__ */ h(B, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
9583
+ /* @__PURE__ */ h(B, { name: "chevron-thin-up", className: "pkt-btn--open" })
9584
9584
  ]
9585
9585
  }
9586
9586
  ),
@@ -9590,17 +9590,17 @@ const Gd = ({
9590
9590
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__name", translate: "no", children: n.name }),
9591
9591
  n.lastLoggedIn && /* @__PURE__ */ x("div", { className: "pkt-user-menu__last-logged-in", children: [
9592
9592
  "Sist pålogget: ",
9593
- /* @__PURE__ */ h("time", { children: j })
9593
+ /* @__PURE__ */ h("time", { children: F })
9594
9594
  ] })
9595
9595
  ] }),
9596
- r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
9597
- D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
9596
+ r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((D, $t) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
9597
+ D.iconName && /* @__PURE__ */ h(B, { name: D.iconName, className: "pkt-link__icon" }),
9598
9598
  D.title
9599
9599
  ] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: [
9600
- D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
9600
+ D.iconName && /* @__PURE__ */ h(B, { name: D.iconName, className: "pkt-link__icon" }),
9601
9601
  D.title
9602
- ] }) }, `userMenu-${kt}`)) }) }),
9603
- (l || g) && /* @__PURE__ */ x("li", { children: [
9602
+ ] }) }, `userMenu-${$t}`)) }) }),
9603
+ (l || f) && /* @__PURE__ */ x("li", { children: [
9604
9604
  l && /* @__PURE__ */ x(Gt, { children: [
9605
9605
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__label", children: "Representerer" }),
9606
9606
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__name", translate: "no", children: l.name }),
@@ -9609,25 +9609,25 @@ const Gd = ({
9609
9609
  l.orgNumber
9610
9610
  ] })
9611
9611
  ] }),
9612
- /* @__PURE__ */ h("ul", { className: "pkt-list mt-size-16", children: g && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: w, children: [
9613
- /* @__PURE__ */ h(U, { name: "cogwheel", className: "pkt-link__icon" }),
9612
+ /* @__PURE__ */ h("ul", { className: "pkt-list mt-size-16", children: f && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: w, children: [
9613
+ /* @__PURE__ */ h(B, { name: "cogwheel", className: "pkt-link__icon" }),
9614
9614
  "Endre organisasjon"
9615
9615
  ] }) }) })
9616
9616
  ] }),
9617
9617
  /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: (d || !k) && /* @__PURE__ */ x(Gt, { children: [
9618
- d == null ? void 0 : d.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
9619
- D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
9618
+ d == null ? void 0 : d.map((D, $t) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ x("a", { href: D.target, className: "pkt-link", children: [
9619
+ D.iconName && /* @__PURE__ */ h(B, { name: D.iconName, className: "pkt-link__icon" }),
9620
9620
  D.title
9621
9621
  ] }) : /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: [
9622
- D.iconName && /* @__PURE__ */ h(U, { name: D.iconName, className: "pkt-link__icon" }),
9622
+ D.iconName && /* @__PURE__ */ h(B, { name: D.iconName, className: "pkt-link__icon" }),
9623
9623
  D.title
9624
- ] }) }, `userOptions-${kt}`)),
9624
+ ] }) }, `userOptions-${$t}`)),
9625
9625
  !k && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ x("button", { className: "pkt-link-button pkt-link", onClick: y, children: [
9626
- /* @__PURE__ */ h(U, { name: "exit", className: "pkt-link__icon" }),
9626
+ /* @__PURE__ */ h(B, { name: "exit", className: "pkt-link__icon" }),
9627
9627
  "Logg ut"
9628
9628
  ] }) })
9629
9629
  ] }) }) }),
9630
- p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((D, kt) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ h("a", { href: D.target, className: "pkt-link", children: D.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: D.title }) }, `userMenuFooter-${kt}`)) }) })
9630
+ p && /* @__PURE__ */ h("li", { className: "footer", children: /* @__PURE__ */ h("ul", { className: "pkt-list-horizontal bordered", children: p.map((D, $t) => /* @__PURE__ */ h("li", { children: typeof D.target == "string" ? /* @__PURE__ */ h("a", { href: D.target, className: "pkt-link", children: D.title }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: D.target, children: D.title }) }, `userMenuFooter-${$t}`)) }) })
9631
9631
  ] })
9632
9632
  ]
9633
9633
  }
@@ -9650,26 +9650,26 @@ const Gd = ({
9650
9650
  }
9651
9651
  );
9652
9652
  }
9653
- ), Th = Tt({
9653
+ ), Th = Lt({
9654
9654
  tagName: "pkt-heading",
9655
9655
  elementClass: Le,
9656
- react: lt,
9656
+ react: ct,
9657
9657
  displayName: "PktHeading"
9658
- }), Nh = K(({ children: i, ...t }, e) => /* @__PURE__ */ h(Th, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
9658
+ }), Nh = G(({ children: i, ...t }, e) => /* @__PURE__ */ h(Th, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
9659
9659
  Nh.displayName = "PktHeading";
9660
- const Ah = Tt({
9660
+ const Ah = Lt({
9661
9661
  tagName: "pkt-helptext",
9662
9662
  elementClass: pe,
9663
- react: lt,
9663
+ react: ct,
9664
9664
  displayName: "PktHelptext",
9665
9665
  events: {
9666
9666
  onToggleHelpText: "toggleHelpText"
9667
9667
  }
9668
- }), Eh = K(
9668
+ }), Eh = G(
9669
9669
  ({ children: i, ...t }, e) => /* @__PURE__ */ h(Ah, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9670
9670
  );
9671
9671
  Eh.displayName = "PktHelptext";
9672
- const Oh = K(
9672
+ const Oh = G(
9673
9673
  ({ label: i, id: t, children: e, ...s }, a) => /* @__PURE__ */ x("div", { className: "pkt-form-group", children: [
9674
9674
  /* @__PURE__ */ h("label", { htmlFor: t, className: "pkt-form-label", children: i }),
9675
9675
  /* @__PURE__ */ h("input", { className: "pkt-form-input", id: t, ...s, ref: a }),
@@ -9677,7 +9677,7 @@ const Oh = K(
9677
9677
  ] })
9678
9678
  );
9679
9679
  Oh.displayName = "PktInput";
9680
- const cs = K(
9680
+ const cs = G(
9681
9681
  ({
9682
9682
  forId: i,
9683
9683
  label: t,
@@ -9689,8 +9689,8 @@ const cs = K(
9689
9689
  counterMaxLength: l,
9690
9690
  optionalTag: d = !1,
9691
9691
  optionalText: p = "Valgfritt",
9692
- requiredTag: g = !1,
9693
- requiredText: f = "Må fylles ut",
9692
+ requiredTag: f = !1,
9693
+ requiredText: g = "Må fylles ut",
9694
9694
  tagText: k = null,
9695
9695
  hasError: b = !1,
9696
9696
  errorMessage: y,
@@ -9698,32 +9698,32 @@ const cs = K(
9698
9698
  inline: C = !1,
9699
9699
  ariaDescribedby: P,
9700
9700
  useWrapper: T = !0,
9701
- children: j,
9701
+ children: F,
9702
9702
  className: A = "",
9703
9703
  hasFieldset: z = !1,
9704
9704
  role: Z = "group",
9705
- counterPosition: At = "bottom"
9706
- }, Et) => {
9707
- const [Q, st] = oi(!1), Ot = P || (e ? `${i}-helptext` : void 0), Pt = !!n, at = Pt && At === "top", D = Pt && At === "bottom", kt = () => st((ot) => !ot), Qt = [
9705
+ counterPosition: Nt = "bottom"
9706
+ }, At) => {
9707
+ const [Q, st] = oi(!1), Et = P || (e ? `${i}-helptext` : void 0), Ot = !!n, at = Ot && Nt === "top", D = Ot && Nt === "bottom", $t = () => st((ot) => !ot), Qt = [
9708
9708
  "pkt-inputwrapper",
9709
9709
  A,
9710
9710
  b ? "pkt-inputwrapper--error" : "",
9711
9711
  w ? "pkt-inputwrapper--disabled" : "",
9712
9712
  C ? "pkt-inputwrapper--inline" : ""
9713
- ].filter(Boolean).join(" "), le = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Pt ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
9713
+ ].filter(Boolean).join(" "), le = ["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: [
9714
9714
  r,
9715
9715
  l ? `/${l}` : ""
9716
9716
  ] }) : null, Se = () => /* @__PURE__ */ x(Gt, { children: [
9717
9717
  k && /* @__PURE__ */ h("span", { className: le + " pkt-tag--gray", children: k }),
9718
9718
  d && /* @__PURE__ */ h("span", { className: le + " pkt-tag--blue-light", children: p }),
9719
- g && /* @__PURE__ */ h("span", { className: le + " pkt-tag--beige", children: f })
9719
+ f && /* @__PURE__ */ h("span", { className: le + " pkt-tag--beige", children: g })
9720
9720
  ] }), ze = () => {
9721
9721
  const ot = /* @__PURE__ */ x(Gt, { children: [
9722
9722
  t,
9723
9723
  " ",
9724
9724
  Se()
9725
9725
  ] });
9726
- return T ? z ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Ot, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Ot, id: `${i}-label`, children: t });
9726
+ return T ? z ? /* @__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 });
9727
9727
  }, he = () => !e && !s ? null : /* @__PURE__ */ x(Gt, { children: [
9728
9728
  e && T && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9729
9729
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
@@ -9735,7 +9735,7 @@ const cs = K(
9735
9735
  variant: "icon-right",
9736
9736
  iconName: Q ? "chevron-thin-up" : "chevron-thin-down",
9737
9737
  className: "pkt-link pkt-link--icon-right",
9738
- onClick: kt,
9738
+ onClick: $t,
9739
9739
  children: /* @__PURE__ */ h(
9740
9740
  "span",
9741
9741
  {
@@ -9758,44 +9758,63 @@ const cs = K(
9758
9758
  ze(),
9759
9759
  he(),
9760
9760
  at && /* @__PURE__ */ h(te, {}),
9761
- j,
9761
+ F,
9762
9762
  D && /* @__PURE__ */ h(te, {}),
9763
9763
  b && y && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(nn, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: y }) })
9764
9764
  ] });
9765
- return /* @__PURE__ */ h("div", { className: Qt, ref: Et, role: Z, children: z ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Ot, children: Ht }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ht }) });
9765
+ return /* @__PURE__ */ h("div", { className: Qt, ref: At, role: Z, children: z ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ht }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ht }) });
9766
9766
  }
9767
9767
  );
9768
9768
  cs.displayName = "PktInputWrapper";
9769
- const Ph = Tt({
9769
+ const Ph = Lt({
9770
9770
  tagName: "pkt-link",
9771
- elementClass: xe,
9772
- react: lt,
9771
+ elementClass: we,
9772
+ react: ct,
9773
9773
  displayName: "PktLink"
9774
- }), Mh = K(
9774
+ }), Mh = G(
9775
9775
  ({ children: i, ...t }, e) => /* @__PURE__ */ h(Ph, { ...t, ref: e, children: /* @__PURE__ */ h("span", { className: "pkt-contents", children: i }) })
9776
9776
  );
9777
9777
  Mh.displayName = "PktLink";
9778
- const Ih = Tt({
9779
- tagName: "pkt-linkcard",
9780
- elementClass: ue,
9781
- react: lt,
9782
- displayName: "PktLinkCard",
9783
- events: {}
9784
- }), Dh = K(
9785
- ({ children: i, ...t }, e) => /* @__PURE__ */ h(Ih, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9786
- );
9787
- Dh.displayName = "PktLinkCard";
9788
- const Rh = Tt({
9778
+ const Ih = ({
9779
+ children: i,
9780
+ skin: t,
9781
+ title: e,
9782
+ href: s,
9783
+ iconName: a,
9784
+ openInNewTab: n,
9785
+ external: r,
9786
+ className: l,
9787
+ ...d
9788
+ }) => {
9789
+ const p = ["pkt-linkcard", t && `pkt-linkcard--${t}`].filter(Boolean).join(" "), f = ["pkt-linkcard__title", r && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
9790
+ return /* @__PURE__ */ x(
9791
+ "a",
9792
+ {
9793
+ ...d,
9794
+ href: s,
9795
+ className: gt(p, l),
9796
+ target: n ? "_blank" : "_self",
9797
+ rel: n ? "noopener noreferrer" : void 0,
9798
+ children: [
9799
+ a && /* @__PURE__ */ h(B, { className: "pkt-link__icon", name: a }),
9800
+ e && /* @__PURE__ */ h("div", { className: gt(f), children: e }),
9801
+ /* @__PURE__ */ h("div", { className: "pkt-linkcard__text", children: i })
9802
+ ]
9803
+ }
9804
+ );
9805
+ };
9806
+ Ih.displayName = "PktLinkCard";
9807
+ const Dh = Lt({
9789
9808
  tagName: "pkt-loader",
9790
9809
  elementClass: Zt,
9791
- react: lt,
9810
+ react: ct,
9792
9811
  displayName: "PktLoader",
9793
9812
  events: {}
9794
- }), Lh = K(
9795
- ({ children: i, ...t }, e) => /* @__PURE__ */ h(Rh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9813
+ }), Rh = G(
9814
+ ({ children: i, ...t }, e) => /* @__PURE__ */ h(Dh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9796
9815
  );
9797
- Lh.displayName = "PktLoader";
9798
- const Bh = ({
9816
+ Rh.displayName = "PktLoader";
9817
+ const Lh = ({
9799
9818
  children: i,
9800
9819
  className: t,
9801
9820
  skin: e,
@@ -9805,51 +9824,51 @@ const Bh = ({
9805
9824
  onClose: r,
9806
9825
  ...l
9807
9826
  }) => {
9808
- const [d, p] = oi(!1), g = {
9827
+ const [d, p] = oi(!1), f = {
9809
9828
  "pkt-messagebox": !0,
9810
9829
  "pkt-messagebox--compact": a,
9811
9830
  [`pkt-messagebox--${e}`]: e,
9812
9831
  "pkt-messagebox--closable": n,
9813
9832
  "pkt-hide": d
9814
- }, f = pn(), k = Ea(() => {
9833
+ }, g = pn(), k = Ea(() => {
9815
9834
  p(!0), r && r();
9816
9835
  }, [p, r]);
9817
- return /* @__PURE__ */ x("div", { ...l, className: Ct(g, t), ref: f, children: [
9836
+ return /* @__PURE__ */ x("div", { ...l, className: gt(f, t), ref: g, children: [
9818
9837
  n && /* @__PURE__ */ h("div", { className: '"pkt-messagebox__close"', children: /* @__PURE__ */ h(
9819
9838
  "button",
9820
9839
  {
9821
9840
  onClick: k,
9822
9841
  className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
9823
9842
  "aria-label": "Lukk",
9824
- children: /* @__PURE__ */ h(U, { name: "close", className: "pkt-link__icon" })
9843
+ children: /* @__PURE__ */ h(B, { name: "close", className: "pkt-link__icon" })
9825
9844
  }
9826
9845
  ) }),
9827
9846
  /* @__PURE__ */ h("div", { className: "pkt-messagebox__title", children: s }),
9828
9847
  /* @__PURE__ */ h("div", { className: "pkt-messagebox__text", children: i })
9829
9848
  ] });
9830
9849
  };
9831
- Bh.displayName = "PktMessagebox";
9832
- const Vh = Tt({
9850
+ Lh.displayName = "PktMessagebox";
9851
+ const Bh = Lt({
9833
9852
  tagName: "pkt-modal",
9834
- elementClass: Lt,
9835
- react: lt,
9853
+ elementClass: Rt,
9854
+ react: ct,
9836
9855
  displayName: "PktModal",
9837
9856
  events: {}
9838
- }), jh = K(
9839
- ({ children: i, ...t }, e) => /* @__PURE__ */ h(Vh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9857
+ }), Vh = G(
9858
+ ({ children: i, ...t }, e) => /* @__PURE__ */ h(Bh, { ...t, ref: e, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9840
9859
  );
9841
- jh.displayName = "PktModal";
9842
- const Fh = Tt({
9860
+ Vh.displayName = "PktModal";
9861
+ const jh = Lt({
9843
9862
  tagName: "pkt-progressbar",
9844
9863
  elementClass: et,
9845
- react: lt,
9864
+ react: ct,
9846
9865
  displayName: "PktProgressbar",
9847
9866
  events: {}
9848
- }), Uh = K(
9849
- ({ children: i, ...t }, e) => /* @__PURE__ */ h(Fh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9867
+ }), Fh = G(
9868
+ ({ children: i, ...t }, e) => /* @__PURE__ */ h(jh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
9850
9869
  );
9851
- Uh.displayName = "PktProgressbar";
9852
- const Hh = K(
9870
+ Fh.displayName = "PktProgressbar";
9871
+ const Uh = G(
9853
9872
  ({
9854
9873
  id: i,
9855
9874
  name: t,
@@ -9861,8 +9880,8 @@ const Hh = K(
9861
9880
  hasError: l = !1,
9862
9881
  defaultChecked: d,
9863
9882
  checked: p,
9864
- optionalTag: g,
9865
- optionalText: f,
9883
+ optionalTag: f,
9884
+ optionalText: g,
9866
9885
  requiredTag: k,
9867
9886
  requiredText: b,
9868
9887
  tagText: y,
@@ -9872,12 +9891,12 @@ const Hh = K(
9872
9891
  "pkt-input-check__input",
9873
9892
  a ? "pkt-input-check__input--tile" : "",
9874
9893
  n && a ? "pkt-input-check__input--tile-disabled" : ""
9875
- ].filter(Boolean).join(" "), j = [
9894
+ ].filter(Boolean).join(" "), F = [
9876
9895
  "pkt-input-check__input-checkbox",
9877
9896
  l ? "pkt-input-check__input-checkbox--error" : ""
9878
9897
  ].filter(Boolean).join(" "), A = ["pkt-input-check__input-label", n ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), z = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), Z = () => /* @__PURE__ */ x(Gt, { children: [
9879
9898
  y && /* @__PURE__ */ h("span", { className: z + " pkt-tag--gray", children: y }),
9880
- g && /* @__PURE__ */ h("span", { className: z + " pkt-tag--blue-light", children: f }),
9899
+ f && /* @__PURE__ */ h("span", { className: z + " pkt-tag--blue-light", children: g }),
9881
9900
  k && /* @__PURE__ */ h("span", { className: z + " pkt-tag--beige", children: b })
9882
9901
  ] });
9883
9902
  return /* @__PURE__ */ h("div", { className: P, children: /* @__PURE__ */ x("div", { className: T, children: [
@@ -9889,7 +9908,7 @@ const Hh = K(
9889
9908
  type: "radio",
9890
9909
  name: t,
9891
9910
  disabled: n,
9892
- className: j,
9911
+ className: F,
9893
9912
  ...p !== void 0 ? { checked: p } : { defaultChecked: d },
9894
9913
  ...w
9895
9914
  }
@@ -9903,8 +9922,8 @@ const Hh = K(
9903
9922
  ] }) });
9904
9923
  }
9905
9924
  );
9906
- Hh.displayName = "PktRadioButton";
9907
- const Xd = K(
9925
+ Uh.displayName = "PktRadioButton";
9926
+ const Zd = G(
9908
9927
  ({
9909
9928
  appearance: i = "local",
9910
9929
  disabled: t = !1,
@@ -9916,8 +9935,8 @@ const Xd = K(
9916
9935
  suggestions: l,
9917
9936
  value: d = "",
9918
9937
  action: p,
9919
- method: g,
9920
- onChange: f,
9938
+ method: f,
9939
+ onChange: g,
9921
9940
  onSearch: k,
9922
9941
  onSuggestionClick: b,
9923
9942
  ...y
@@ -9927,8 +9946,8 @@ const Xd = K(
9927
9946
  }, P = (A) => {
9928
9947
  d = A.target.value;
9929
9948
  }, T = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
9930
- let j;
9931
- return p ? j = (A) => /* @__PURE__ */ h("form", { role: "search", className: T, action: p, method: g, children: A }) : j = (A) => /* @__PURE__ */ h("div", { role: "search", className: T, children: A }), j(
9949
+ let F;
9950
+ return p ? F = (A) => /* @__PURE__ */ h("form", { role: "search", className: T, action: p, method: f, children: A }) : F = (A) => /* @__PURE__ */ h("div", { role: "search", className: T, children: A }), F(
9932
9951
  /* @__PURE__ */ x(Gt, { children: [
9933
9952
  a && /* @__PURE__ */ h("label", { htmlFor: a ? s : void 0, className: a ? "pkt-inputwrapper__label" : "", children: a }),
9934
9953
  /* @__PURE__ */ x("div", { className: i === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
@@ -9946,7 +9965,7 @@ const Xd = K(
9946
9965
  "aria-autocomplete": "list",
9947
9966
  ref: w,
9948
9967
  "aria-controls": `${s}-suggestions`,
9949
- onChange: f || P,
9968
+ onChange: g || P,
9950
9969
  onKeyUp: k && ((A) => {
9951
9970
  A.key === "Enter" && (A.preventDefault(), k(d));
9952
9971
  }),
@@ -9987,7 +10006,7 @@ const Xd = K(
9987
10006
  ] })
9988
10007
  );
9989
10008
  }
9990
- ), Jd = K(
10009
+ ), Xd = G(
9991
10010
  ({
9992
10011
  ariaDescribedby: i,
9993
10012
  ariaLabelledby: t,
@@ -9999,8 +10018,8 @@ const Xd = K(
9999
10018
  helptext: l,
10000
10019
  helptextDropdown: d,
10001
10020
  helptextDropdownButton: p,
10002
- id: g,
10003
- inline: f = !1,
10021
+ id: f,
10022
+ inline: g = !1,
10004
10023
  fullwidth: k = !1,
10005
10024
  label: b,
10006
10025
  name: y,
@@ -10008,7 +10027,7 @@ const Xd = K(
10008
10027
  optionalText: C,
10009
10028
  requiredTag: P = !1,
10010
10029
  requiredText: T,
10011
- tagText: j,
10030
+ tagText: F,
10012
10031
  ...A
10013
10032
  }, z) => {
10014
10033
  const Z = [s, "pkt-select"].join(" ");
@@ -10016,7 +10035,7 @@ const Xd = K(
10016
10035
  cs,
10017
10036
  {
10018
10037
  className: Z,
10019
- forId: `${g}-input`,
10038
+ forId: `${f}-input`,
10020
10039
  label: b,
10021
10040
  helptext: l,
10022
10041
  helptextDropdown: d,
@@ -10025,11 +10044,11 @@ const Xd = K(
10025
10044
  optionalText: C,
10026
10045
  requiredTag: P,
10027
10046
  requiredText: T,
10028
- tagText: j,
10047
+ tagText: F,
10029
10048
  hasError: r,
10030
10049
  errorMessage: n,
10031
10050
  disabled: a,
10032
- inline: f,
10051
+ inline: g,
10033
10052
  ariaDescribedby: i,
10034
10053
  children: /* @__PURE__ */ h(
10035
10054
  "select",
@@ -10037,11 +10056,11 @@ const Xd = K(
10037
10056
  ref: z,
10038
10057
  className: `pkt-input ${k ? "pkt-input--fullwidth" : ""}`,
10039
10058
  "aria-invalid": r,
10040
- "aria-errormessage": `${g}-error`,
10059
+ "aria-errormessage": `${f}-error`,
10041
10060
  "aria-labelledby": t || void 0,
10042
10061
  disabled: a,
10043
- id: `${g}-input`,
10044
- name: y || g,
10062
+ id: `${f}-input`,
10063
+ name: y || f,
10045
10064
  ...A,
10046
10065
  children: e
10047
10066
  }
@@ -10049,22 +10068,22 @@ const Xd = K(
10049
10068
  }
10050
10069
  );
10051
10070
  }
10052
- ), qh = /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: /* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "7", style: { fill: "var(--pkt-color-grays-grey-200, #CCC)" } }) }), zh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10071
+ ), Hh = /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: /* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "7", style: { fill: "var(--pkt-color-grays-grey-200, #CCC)" } }) }), qh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10053
10072
  /* @__PURE__ */ h("circle", { opacity: ".15", cx: "12", cy: "12", r: "12", fill: "#2A2859" }),
10054
10073
  /* @__PURE__ */ h("circle", { cx: "12", cy: "12", r: "6", fill: "#2A2859" })
10055
- ] }), Wh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10074
+ ] }), zh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10056
10075
  /* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
10057
10076
  /* @__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" })
10058
- ] }), Qd = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: Ct("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10077
+ ] }), Jd = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: gt("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10059
10078
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
10060
10079
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
10061
- /* @__PURE__ */ h("span", { className: Ct("pkt-step__indicator"), children: e === "current" ? zh : e === "completed" ? Wh : qh }),
10080
+ /* @__PURE__ */ h("span", { className: gt("pkt-step__indicator"), children: e === "current" ? qh : e === "completed" ? zh : Hh }),
10062
10081
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
10063
10082
  /* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
10064
10083
  /* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
10065
10084
  /* @__PURE__ */ h("div", { className: "pkt-step__content", children: i })
10066
10085
  ] })
10067
- ] }), tc = K(
10086
+ ] }), Qd = G(
10068
10087
  ({
10069
10088
  activeStep: i,
10070
10089
  className: t,
@@ -10074,19 +10093,19 @@ const Xd = K(
10074
10093
  orientation: n = "vertical",
10075
10094
  ...r
10076
10095
  }, l) => {
10077
- const d = Ct(
10096
+ const d = gt(
10078
10097
  t,
10079
10098
  "pkt-stepper",
10080
10099
  n === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
10081
- ), p = Es.map(e, (g, f) => mn(g) ? fn(g, {
10082
- className: Ct(g.props.className, {
10083
- "pkt-step--hideStep": s && f !== i,
10084
- "pkt-step--hideContent": a && f !== i
10100
+ ), p = Es.map(e, (f, g) => mn(f) ? fn(f, {
10101
+ className: gt(f.props.className, {
10102
+ "pkt-step--hideStep": s && g !== i,
10103
+ "pkt-step--hideContent": a && g !== i
10085
10104
  })
10086
- }) : g);
10105
+ }) : f);
10087
10106
  return /* @__PURE__ */ h("ol", { "data-testid": "pkt-stepper", className: d, ref: l, ...r, children: p });
10088
10107
  }
10089
- ), ec = ({
10108
+ ), tc = ({
10090
10109
  className: i,
10091
10110
  compact: t = !1,
10092
10111
  skin: e = "basic",
@@ -10097,7 +10116,7 @@ const Xd = K(
10097
10116
  "table",
10098
10117
  {
10099
10118
  "data-testid": "pkt-table",
10100
- className: Ct(i, "pkt-table", {
10119
+ className: gt(i, "pkt-table", {
10101
10120
  "pkt-table--responsive": s,
10102
10121
  "pkt-table--compact": t,
10103
10122
  "pkt-table--basic": e === "basic",
@@ -10107,17 +10126,17 @@ const Xd = K(
10107
10126
  ...n,
10108
10127
  children: a
10109
10128
  }
10110
- ), ic = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: Ct(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), sc = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10129
+ ), ec = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: gt(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ic = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10111
10130
  "td",
10112
10131
  {
10113
- className: Ct(t, "pkt-table__data-cell", {}),
10132
+ className: gt(t, "pkt-table__data-cell", {}),
10114
10133
  "data-label": e,
10115
10134
  role: "cell",
10116
10135
  "data-testid": "pkt-table__data-cell",
10117
10136
  ...s,
10118
10137
  children: i
10119
10138
  }
10120
- ), ac = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: Ct(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: Ct(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: Ct(i, "pkt-table__row", {}), role: "row", ...e, children: t }), Kh = Tt({
10139
+ ), sc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: gt(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), ac = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: gt(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: gt(i, "pkt-table__row", {}), role: "row", ...e, children: t }), Wh = Lt({
10121
10140
  tagName: "pkt-tag",
10122
10141
  elementClass: qt,
10123
10142
  react: dn,
@@ -10125,26 +10144,26 @@ const Xd = K(
10125
10144
  events: {
10126
10145
  onClose: "close"
10127
10146
  }
10128
- }), rn = K(
10129
- ({ children: i, ...t }, e) => /* @__PURE__ */ h(Kh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
10147
+ }), rn = G(
10148
+ ({ children: i, ...t }, e) => /* @__PURE__ */ h(Wh, { ref: e, ...t, children: /* @__PURE__ */ h("div", { className: "pkt-contents", children: i }) })
10130
10149
  );
10131
10150
  rn.displayName = "PktTag";
10132
- const on = K(
10151
+ const on = G(
10133
10152
  ({ children: i, active: t, href: e, onClick: s, icon: a, controls: n, tag: r, tagSkin: l, index: d = 0 }, p) => {
10134
- const { arrowNav: g, registerTabRef: f, handleKeyPress: k, selectTab: b } = Gh(), w = {
10135
- "aria-selected": g ? !!t : void 0,
10153
+ const { arrowNav: f, registerTabRef: g, handleKeyPress: k, selectTab: b } = Kh(), w = {
10154
+ "aria-selected": f ? !!t : void 0,
10136
10155
  "aria-controls": n,
10137
- role: g ? "tab" : void 0,
10156
+ role: f ? "tab" : void 0,
10138
10157
  onKeyUp: (P) => k(d, P),
10139
10158
  onClick: (P) => {
10140
10159
  b(d), s == null || s(P);
10141
10160
  },
10142
- tabIndex: t || !g ? void 0 : -1,
10161
+ tabIndex: t || !f ? void 0 : -1,
10143
10162
  ref: (P) => {
10144
- f(d, P), typeof p == "function" ? p(P) : p && (p.current = P);
10163
+ g(d, P), typeof p == "function" ? p(P) : p && (p.current = P);
10145
10164
  }
10146
10165
  }, C = /* @__PURE__ */ x(Gt, { children: [
10147
- a && /* @__PURE__ */ h(U, { name: a, className: "pkt-icon--small" }),
10166
+ a && /* @__PURE__ */ h(B, { name: a, className: "pkt-icon--small" }),
10148
10167
  i,
10149
10168
  r && /* @__PURE__ */ h(rn, { skin: l, size: "small", children: r })
10150
10169
  ] });
@@ -10152,23 +10171,23 @@ const on = K(
10152
10171
  }
10153
10172
  );
10154
10173
  on.displayName = "PktTabItem";
10155
- const ln = Na(null), Gh = () => {
10174
+ const ln = Na(null), Kh = () => {
10156
10175
  const i = Aa(ln);
10157
10176
  if (!i)
10158
10177
  throw new Error("TabItem must be used within a Tabs component");
10159
10178
  return i;
10160
- }, oc = K(
10179
+ }, rc = G(
10161
10180
  ({ arrowNav: i = !0, disableArrowNav: t = !1, tabs: e, onTabSelected: s, children: a }, n) => {
10162
10181
  const r = gn([]), l = i && !t, p = a && Es.count(a) > 0 ? Es.count(a) : (e == null ? void 0 : e.length) || 0;
10163
10182
  as(() => {
10164
10183
  r.current = r.current.slice(0, p);
10165
10184
  }, [p]);
10166
- const g = (y) => {
10185
+ const f = (y) => {
10167
10186
  const w = e == null ? void 0 : e[y];
10168
10187
  w != null && w.action && w.action(y), s && s(y);
10169
- }, f = (y, w) => {
10188
+ }, g = (y, w) => {
10170
10189
  var C, P;
10171
- l && (w.code === "ArrowLeft" && y !== 0 && ((C = r.current[y - 1]) == null || C.focus()), w.code === "ArrowRight" && y < p - 1 && ((P = r.current[y + 1]) == null || P.focus()), (w.code === "ArrowDown" || w.code === "Space") && g(y));
10190
+ l && (w.code === "ArrowLeft" && y !== 0 && ((C = r.current[y - 1]) == null || C.focus()), w.code === "ArrowRight" && y < p - 1 && ((P = r.current[y + 1]) == null || P.focus()), (w.code === "ArrowDown" || w.code === "Space") && f(y));
10172
10191
  }, k = (y, w) => {
10173
10192
  r.current[y] = w;
10174
10193
  }, b = e == null ? void 0 : e.map((y, w) => {
@@ -10178,7 +10197,7 @@ const ln = Na(null), Gh = () => {
10178
10197
  {
10179
10198
  active: y.active,
10180
10199
  href: y.href,
10181
- onClick: () => g(w),
10200
+ onClick: () => f(w),
10182
10201
  icon: y.icon,
10183
10202
  controls: y.controls,
10184
10203
  tag: (C = y.tag) == null ? void 0 : C.text,
@@ -10189,9 +10208,9 @@ const ln = Na(null), Gh = () => {
10189
10208
  w
10190
10209
  );
10191
10210
  });
10192
- return /* @__PURE__ */ h(ln.Provider, { value: { arrowNav: l, registerTabRef: k, handleKeyPress: f, selectTab: g }, children: /* @__PURE__ */ h("div", { className: "pkt-tabs", ref: n, children: /* @__PURE__ */ h("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: a || b }) }) });
10211
+ return /* @__PURE__ */ h(ln.Provider, { value: { arrowNav: l, registerTabRef: k, handleKeyPress: g, selectTab: f }, children: /* @__PURE__ */ h("div", { className: "pkt-tabs", ref: n, children: /* @__PURE__ */ h("div", { className: "pkt-tabs__list", role: l ? "tablist" : "navigation", children: a || b }) }) });
10193
10212
  }
10194
- ), lc = K(
10213
+ ), oc = G(
10195
10214
  ({
10196
10215
  id: i,
10197
10216
  ariaDescribedby: t,
@@ -10203,8 +10222,8 @@ const ln = Na(null), Gh = () => {
10203
10222
  errorMessage: l,
10204
10223
  hasError: d,
10205
10224
  helptext: p,
10206
- helptextDropdown: g,
10207
- helptextDropdownButton: f,
10225
+ helptextDropdown: f,
10226
+ helptextDropdownButton: g,
10208
10227
  inline: k,
10209
10228
  fullwidth: b = !1,
10210
10229
  label: y,
@@ -10212,24 +10231,24 @@ const ln = Na(null), Gh = () => {
10212
10231
  optionalTag: C = !1,
10213
10232
  optionalText: P,
10214
10233
  requiredTag: T = !1,
10215
- requiredText: j,
10234
+ requiredText: F,
10216
10235
  tagText: A = null,
10217
10236
  placeholder: z,
10218
10237
  rows: Z,
10219
- useWrapper: At = !0,
10220
- onChange: Et,
10238
+ useWrapper: Nt = !0,
10239
+ onChange: At,
10221
10240
  value: Q,
10222
10241
  autoComplete: st = "off",
10223
- minLength: Ot,
10224
- maxLength: Pt,
10242
+ minLength: Et,
10243
+ maxLength: Ot,
10225
10244
  readOnly: at = !1,
10226
10245
  skipForwardTestid: D = !1,
10227
- ...kt
10246
+ ...$t
10228
10247
  }, Qt) => {
10229
10248
  const le = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, Se = `${te}-label`, ze = e || Se, [he, Ht] = oi(0), ot = (Ce) => {
10230
10249
  var Te, de;
10231
- if (s && Ht(((de = (Te = Ce.currentTarget) == null ? void 0 : Te.value) == null ? void 0 : de.length) || 0), Et)
10232
- return Et(Ce);
10250
+ if (s && Ht(((de = (Te = Ce.currentTarget) == null ? void 0 : Te.value) == null ? void 0 : de.length) || 0), At)
10251
+ return At(Ce);
10233
10252
  };
10234
10253
  return as(() => {
10235
10254
  Q !== void 0 && Ht((Q == null ? void 0 : Q.length) || 0);
@@ -10243,16 +10262,16 @@ const ln = Na(null), Gh = () => {
10243
10262
  forId: te,
10244
10263
  hasError: d,
10245
10264
  helptext: p,
10246
- helptextDropdown: g,
10247
- helptextDropdownButton: f,
10265
+ helptextDropdown: f,
10266
+ helptextDropdownButton: g,
10248
10267
  inline: k,
10249
10268
  label: y,
10250
10269
  optionalTag: C,
10251
10270
  optionalText: P,
10252
10271
  requiredTag: T,
10253
- requiredText: j,
10272
+ requiredText: F,
10254
10273
  tagText: A,
10255
- useWrapper: At,
10274
+ useWrapper: Nt,
10256
10275
  counter: s,
10257
10276
  counterCurrent: he,
10258
10277
  counterMaxLength: a,
@@ -10269,19 +10288,19 @@ const ln = Na(null), Gh = () => {
10269
10288
  "aria-labelledby": ze,
10270
10289
  "aria-invalid": d,
10271
10290
  "aria-errormessage": `${i}-error`,
10272
- ...kt,
10291
+ ...$t,
10273
10292
  onChange: ot,
10274
10293
  value: Q,
10275
10294
  autoComplete: st,
10276
- minLength: Ot,
10277
- maxLength: Pt,
10295
+ minLength: Et,
10296
+ maxLength: Ot,
10278
10297
  "data-skip-forward-testid": D ? "true" : void 0
10279
10298
  }
10280
10299
  )
10281
10300
  }
10282
10301
  );
10283
10302
  }
10284
- ), hc = K(
10303
+ ), lc = G(
10285
10304
  ({
10286
10305
  id: i,
10287
10306
  ariaDescribedby: t,
@@ -10293,8 +10312,8 @@ const ln = Na(null), Gh = () => {
10293
10312
  disabled: l = !1,
10294
10313
  errorMessage: d,
10295
10314
  hasError: p = !1,
10296
- helptext: g,
10297
- helptextDropdown: f,
10315
+ helptext: f,
10316
+ helptextDropdown: g,
10298
10317
  helptextDropdownButton: k,
10299
10318
  iconNameRight: b,
10300
10319
  inline: y = !1,
@@ -10302,19 +10321,19 @@ const ln = Na(null), Gh = () => {
10302
10321
  label: C,
10303
10322
  name: P,
10304
10323
  optionalTag: T = !1,
10305
- optionalText: j,
10324
+ optionalText: F,
10306
10325
  requiredTag: A = !1,
10307
10326
  requiredText: z,
10308
10327
  tagText: Z = null,
10309
- placeholder: At,
10310
- prefix: Et,
10328
+ placeholder: Nt,
10329
+ prefix: At,
10311
10330
  suffix: Q,
10312
10331
  type: st = "text",
10313
- useWrapper: Ot = !0,
10314
- omitSearchIcon: Pt = !1,
10332
+ useWrapper: Et = !0,
10333
+ omitSearchIcon: Ot = !1,
10315
10334
  value: at,
10316
10335
  minLength: D,
10317
- maxLength: kt,
10336
+ maxLength: $t,
10318
10337
  min: Qt,
10319
10338
  max: le,
10320
10339
  step: te,
@@ -10326,9 +10345,9 @@ const ln = Na(null), Gh = () => {
10326
10345
  skipForwardTestid: Ce = !1,
10327
10346
  ...Te
10328
10347
  }, de) => {
10329
- const ps = [r, "pkt-textinput"].join(" "), Fi = st === "search" && !b && !Pt, us = st === "date" && at ? at.slice(0, 10) : at, [Ui, We] = oi((at == null ? void 0 : at.length) || 0), Ke = `${i}`, ui = `${Ke}-label`, Hi = e || ui, ms = (ge) => {
10348
+ const ps = [r, "pkt-textinput"].join(" "), Fi = st === "search" && !b && !Ot, us = st === "date" && at ? at.slice(0, 10) : at, [Ui, We] = oi((at == null ? void 0 : at.length) || 0), Ke = `${i}`, ui = `${Ke}-label`, Hi = e || ui, ms = (fe) => {
10330
10349
  var qi, zi;
10331
- a && We(((zi = (qi = ge.currentTarget) == null ? void 0 : qi.value) == null ? void 0 : zi.length) || 0), ot && ot(ge);
10350
+ a && We(((zi = (qi = fe.currentTarget) == null ? void 0 : qi.value) == null ? void 0 : zi.length) || 0), ot && ot(fe);
10332
10351
  };
10333
10352
  return as(() => {
10334
10353
  at !== void 0 && We((at == null ? void 0 : at.length) || 0);
@@ -10341,17 +10360,17 @@ const ln = Na(null), Gh = () => {
10341
10360
  errorMessage: d,
10342
10361
  forId: Ke,
10343
10362
  hasError: p,
10344
- helptext: g,
10345
- helptextDropdown: f,
10363
+ helptext: f,
10364
+ helptextDropdown: g,
10346
10365
  helptextDropdownButton: k,
10347
10366
  inline: y,
10348
10367
  label: C,
10349
10368
  optionalTag: T,
10350
- optionalText: j,
10369
+ optionalText: F,
10351
10370
  requiredTag: A,
10352
10371
  requiredText: z,
10353
10372
  tagText: Z,
10354
- useWrapper: Ot,
10373
+ useWrapper: Et,
10355
10374
  counter: a,
10356
10375
  counterCurrent: Ui,
10357
10376
  counterMaxLength: n,
@@ -10362,7 +10381,7 @@ const ln = Na(null), Gh = () => {
10362
10381
  "data-testid": Ht,
10363
10382
  "data-skip-forward-testid": Ce ? "true" : void 0,
10364
10383
  children: [
10365
- Et && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: Et }),
10384
+ At && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: At }),
10366
10385
  /* @__PURE__ */ h(
10367
10386
  "input",
10368
10387
  {
@@ -10373,7 +10392,7 @@ const ln = Na(null), Gh = () => {
10373
10392
  name: `${P || i}`,
10374
10393
  value: us,
10375
10394
  id: Ke,
10376
- placeholder: At,
10395
+ placeholder: Nt,
10377
10396
  autoComplete: s,
10378
10397
  disabled: l,
10379
10398
  "aria-invalid": p,
@@ -10384,18 +10403,18 @@ const ln = Na(null), Gh = () => {
10384
10403
  onChange: ms,
10385
10404
  step: te,
10386
10405
  minLength: D,
10387
- maxLength: kt,
10406
+ maxLength: $t,
10388
10407
  size: Se,
10389
10408
  required: he
10390
10409
  }
10391
10410
  ),
10392
10411
  Q && /* @__PURE__ */ x("p", { className: "pkt-input-suffix", children: [
10393
10412
  Q,
10394
- b && /* @__PURE__ */ h(U, { className: "pkt-input-suffix-icon", name: b }),
10395
- Fi && /* @__PURE__ */ h(U, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
10413
+ b && /* @__PURE__ */ h(B, { className: "pkt-input-suffix-icon", name: b }),
10414
+ Fi && /* @__PURE__ */ h(B, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
10396
10415
  ] }),
10397
- !Q && b && /* @__PURE__ */ h(U, { className: "pkt-input-icon", name: b }),
10398
- !Q && Fi && /* @__PURE__ */ h(U, { className: "pkt-input-icon", name: "magnifying-glass-big" })
10416
+ !Q && b && /* @__PURE__ */ h(B, { className: "pkt-input-icon", name: b }),
10417
+ !Q && Fi && /* @__PURE__ */ h(B, { className: "pkt-input-icon", name: "magnifying-glass-big" })
10399
10418
  ]
10400
10419
  }
10401
10420
  )
@@ -10408,41 +10427,41 @@ export {
10408
10427
  fh as PktAccordionItem,
10409
10428
  nn as PktAlert,
10410
10429
  yh as PktBackLink,
10411
- Kd as PktBreadcrumbs,
10430
+ Wd as PktBreadcrumbs,
10412
10431
  ri as PktButton,
10413
10432
  $h as PktCard,
10414
10433
  _h as PktCheckbox,
10415
10434
  xh as PktCombobox,
10416
10435
  js as PktConsent,
10417
10436
  Ch as PktDatepicker,
10418
- Gd as PktFooter,
10419
- Yd as PktFooterSimple,
10420
- Zd as PktHeader,
10437
+ Kd as PktFooter,
10438
+ Gd as PktFooterSimple,
10439
+ Yd as PktHeader,
10421
10440
  Nh as PktHeading,
10422
10441
  Eh as PktHelptext,
10423
- U as PktIcon,
10442
+ B as PktIcon,
10424
10443
  Oh as PktInput,
10425
10444
  cs as PktInputWrapper,
10426
10445
  Mh as PktLink,
10427
- Dh as PktLinkCard,
10428
- Lh as PktLoader,
10429
- Bh as PktMessagebox,
10430
- jh as PktModal,
10431
- Uh as PktProgressbar,
10432
- Hh as PktRadioButton,
10433
- Xd as PktSearchInput,
10434
- Jd as PktSelect,
10435
- Qd as PktStep,
10436
- tc as PktStepper,
10446
+ Ih as PktLinkCard,
10447
+ Rh as PktLoader,
10448
+ Lh as PktMessagebox,
10449
+ Vh as PktModal,
10450
+ Fh as PktProgressbar,
10451
+ Uh as PktRadioButton,
10452
+ Zd as PktSearchInput,
10453
+ Xd as PktSelect,
10454
+ Jd as PktStep,
10455
+ Qd as PktStepper,
10437
10456
  on as PktTabItem,
10438
- ec as PktTable,
10439
- ic as PktTableBody,
10440
- sc as PktTableDataCell,
10441
- ac as PktTableHeader,
10442
- nc as PktTableHeaderCell,
10443
- rc as PktTableRow,
10444
- oc as PktTabs,
10457
+ tc as PktTable,
10458
+ ec as PktTableBody,
10459
+ ic as PktTableDataCell,
10460
+ sc as PktTableHeader,
10461
+ ac as PktTableHeaderCell,
10462
+ nc as PktTableRow,
10463
+ rc as PktTabs,
10445
10464
  rn as PktTag,
10446
- lc as PktTextarea,
10447
- hc as PktTextinput
10465
+ oc as PktTextarea,
10466
+ lc as PktTextinput
10448
10467
  };