@oslokommune/punkt-react 16.0.2 → 16.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,8 +33,8 @@
33
33
  return [];
34
34
  };
35
35
  }
36
- var Ol = Object.defineProperty;
37
- var Ml = (n, e, t) => e in n ? Ol(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
36
+ var Dl = Object.defineProperty;
37
+ var Ml = (n, e, t) => e in n ? Dl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
38
38
  var wi = (n, e, t) => Ml(n, typeof e != "symbol" ? e + "" : e, t);
39
39
  import { jsx as u, jsxs as w, Fragment as Be } from "react/jsx-runtime";
40
40
  import yn, { createContext as Ki, forwardRef as Ce, useContext as hi, useState as ce, useEffect as be, useCallback as M, useId as go, useMemo as Te, useRef as pe, useImperativeHandle as Gi, Children as Ri, isValidElement as vo, useLayoutEffect as bo, Fragment as El, createRef as Al, createElement as Pl, cloneElement as Il } from "react";
@@ -99,7 +99,7 @@ const Fl = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
99
99
  */
100
100
  const Li = globalThis, aa = (n) => n, Bi = Li.trustedTypes, oa = Bi ? Bi.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ko = "$lit$", Tn = `lit$${Math.random().toFixed(9).slice(2)}$`, _o = "?" + Tn, Vl = `<${_o}>`, Yn = document, ei = () => Yn.createComment(""), ti = (n) => n === null || typeof n != "object" && typeof n != "function", Fr = Array.isArray, Ul = (n) => Fr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ur = `[
101
101
  \f\r]`, Ps = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, la = /-->/g, ca = />/g, Ln = RegExp(`>|${ur}(?:([^\\s"'>=/]+)(${ur}*=${ur}*(?:[^
102
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ua = /'/g, da = /"/g, $o = /^(?:script|style|textarea|title)$/i, jl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = jl(1), Ot = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), ha = /* @__PURE__ */ new WeakMap(), jn = Yn.createTreeWalker(Yn, 129);
102
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ua = /'/g, da = /"/g, $o = /^(?:script|style|textarea|title)$/i, jl = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), y = jl(1), Dt = Symbol.for("lit-noChange"), x = Symbol.for("lit-nothing"), ha = /* @__PURE__ */ new WeakMap(), jn = Yn.createTreeWalker(Yn, 129);
103
103
  function wo(n, e) {
104
104
  if (!Fr(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
105
105
  return oa !== void 0 ? oa.createHTML(e) : e;
@@ -116,7 +116,7 @@ const Hl = (n, e) => {
116
116
  }
117
117
  return [wo(n, r + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
118
118
  };
119
- let Dr = class xo {
119
+ let Or = class xo {
120
120
  constructor({ strings: e, _$litType$: t }, s) {
121
121
  let i;
122
122
  this.parts = [];
@@ -155,7 +155,7 @@ let Dr = class xo {
155
155
  };
156
156
  function vs(n, e, t = n, s) {
157
157
  var i, r;
158
- if (e === Ot) return e;
158
+ if (e === Dt) return e;
159
159
  let a = s !== void 0 ? (i = t._$Co) == null ? void 0 : i[s] : t._$Cl;
160
160
  const o = ti(e) ? void 0 : e._$litDirective$;
161
161
  return (a == null ? void 0 : a.constructor) !== o && ((r = a == null ? void 0 : a._$AO) == null || r.call(a, !1), o === void 0 ? a = void 0 : (a = new o(n), a._$AT(n, t, s)), s !== void 0 ? (t._$Co ?? (t._$Co = []))[s] = a : t._$Cl = a), a !== void 0 && (e = vs(n, a._$AS(n, e.values), a, s)), e;
@@ -207,7 +207,7 @@ let ql = class {
207
207
  return this._$AB;
208
208
  }
209
209
  _$AI(e, t = this) {
210
- e = vs(this, e, t), ti(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== Ot && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ul(e) ? this.k(e) : this._(e);
210
+ e = vs(this, e, t), ti(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== Dt && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Ul(e) ? this.k(e) : this._(e);
211
211
  }
212
212
  O(e) {
213
213
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -220,7 +220,7 @@ let ql = class {
220
220
  }
221
221
  $(e) {
222
222
  var t;
223
- const { values: s, _$litType$: i } = e, r = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Dr.createElement(wo(i.h, i.h[0]), this.options)), i);
223
+ const { values: s, _$litType$: i } = e, r = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = Or.createElement(wo(i.h, i.h[0]), this.options)), i);
224
224
  if (((t = this._$AH) == null ? void 0 : t._$AD) === r) this._$AH.p(s);
225
225
  else {
226
226
  const a = new ql(r, this), o = a.u(this.options);
@@ -229,7 +229,7 @@ let ql = class {
229
229
  }
230
230
  _$AC(e) {
231
231
  let t = ha.get(e.strings);
232
- return t === void 0 && ha.set(e.strings, t = new Dr(e)), t;
232
+ return t === void 0 && ha.set(e.strings, t = new Or(e)), t;
233
233
  }
234
234
  k(e) {
235
235
  Fr(this._$AH) || (this._$AH = [], this._$AR());
@@ -262,11 +262,11 @@ let ql = class {
262
262
  _$AI(e, t = this, s, i) {
263
263
  const r = this.strings;
264
264
  let a = !1;
265
- if (r === void 0) e = vs(this, e, t, 0), a = !ti(e) || e !== this._$AH && e !== Ot, a && (this._$AH = e);
265
+ if (r === void 0) e = vs(this, e, t, 0), a = !ti(e) || e !== this._$AH && e !== Dt, a && (this._$AH = e);
266
266
  else {
267
267
  const o = e;
268
268
  let l, h;
269
- for (e = r[0], l = 0; l < r.length - 1; l++) h = vs(this, o[s + l], t, l), h === Ot && (h = this._$AH[l]), a || (a = !ti(h) || h !== this._$AH[l]), h === x ? e = x : e !== x && (e += (h ?? "") + r[l + 1]), this._$AH[l] = h;
269
+ for (e = r[0], l = 0; l < r.length - 1; l++) h = vs(this, o[s + l], t, l), h === Dt && (h = this._$AH[l]), a || (a = !ti(h) || h !== this._$AH[l]), h === x ? e = x : e !== x && (e += (h ?? "") + r[l + 1]), this._$AH[l] = h;
270
270
  }
271
271
  a && !i && this.j(e);
272
272
  }
@@ -292,7 +292,7 @@ let ql = class {
292
292
  super(e, t, s, i, r), this.type = 5;
293
293
  }
294
294
  _$AI(e, t = this) {
295
- if ((e = vs(this, e, t, 0) ?? x) === Ot) return;
295
+ if ((e = vs(this, e, t, 0) ?? x) === Dt) return;
296
296
  const s = this._$AH, i = e === x && s !== x || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, r = e !== x && (s === x || i);
297
297
  i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
298
298
  }
@@ -312,7 +312,7 @@ let ql = class {
312
312
  }
313
313
  };
314
314
  const Gl = { I: Qi }, pa = Li.litHtmlPolyfillSupport;
315
- pa == null || pa(Dr, Qi), (Li.litHtmlVersions ?? (Li.litHtmlVersions = [])).push("3.3.2");
315
+ pa == null || pa(Or, Qi), (Li.litHtmlVersions ?? (Li.litHtmlVersions = [])).push("3.3.2");
316
316
  const Ql = (n, e, t) => {
317
317
  const s = (t == null ? void 0 : t.renderBefore) ?? e;
318
318
  let i = s._$litPart$;
@@ -356,7 +356,7 @@ let Xl = class {
356
356
  return this.cssText;
357
357
  }
358
358
  };
359
- const Zl = (n) => new Xl(typeof n == "string" ? n : n + "", void 0, Co), Jl = (n, e) => {
359
+ const Jl = (n) => new Xl(typeof n == "string" ? n : n + "", void 0, Co), Zl = (n, e) => {
360
360
  if (Vr) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
361
361
  else for (const t of e) {
362
362
  const s = document.createElement("style"), i = Mi.litNonce;
@@ -365,14 +365,14 @@ const Zl = (n) => new Xl(typeof n == "string" ? n : n + "", void 0, Co), Jl = (n
365
365
  }, ma = Vr ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
366
366
  let t = "";
367
367
  for (const s of e.cssRules) t += s.cssText;
368
- return Zl(t);
368
+ return Jl(t);
369
369
  })(n) : n;
370
370
  /**
371
371
  * @license
372
372
  * Copyright 2017 Google LLC
373
373
  * SPDX-License-Identifier: BSD-3-Clause
374
374
  */
375
- const { is: ec, defineProperty: tc, getOwnPropertyDescriptor: nc, getOwnPropertyNames: sc, getOwnPropertySymbols: ic, getPrototypeOf: rc } = Object, bs = globalThis, ga = bs.trustedTypes, ac = ga ? ga.emptyScript : "", va = bs.reactiveElementPolyfillSupport, Zs = (n, e) => n, Fi = { toAttribute(n, e) {
375
+ const { is: ec, defineProperty: tc, getOwnPropertyDescriptor: nc, getOwnPropertyNames: sc, getOwnPropertySymbols: ic, getPrototypeOf: rc } = Object, bs = globalThis, ga = bs.trustedTypes, ac = ga ? ga.emptyScript : "", va = bs.reactiveElementPolyfillSupport, Js = (n, e) => n, Fi = { toAttribute(n, e) {
376
376
  switch (e) {
377
377
  case Boolean:
378
378
  n = n ? ac : null;
@@ -430,13 +430,13 @@ let us = class extends HTMLElement {
430
430
  return this.elementProperties.get(e) ?? ba;
431
431
  }
432
432
  static _$Ei() {
433
- if (this.hasOwnProperty(Zs("elementProperties"))) return;
433
+ if (this.hasOwnProperty(Js("elementProperties"))) return;
434
434
  const e = rc(this);
435
435
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
436
436
  }
437
437
  static finalize() {
438
- if (this.hasOwnProperty(Zs("finalized"))) return;
439
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Zs("properties"))) {
438
+ if (this.hasOwnProperty(Js("finalized"))) return;
439
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Js("properties"))) {
440
440
  const t = this.properties, s = [...sc(t), ...ic(t)];
441
441
  for (const i of s) this.createProperty(i, t[i]);
442
442
  }
@@ -486,7 +486,7 @@ let us = class extends HTMLElement {
486
486
  }
487
487
  createRenderRoot() {
488
488
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
489
- return Jl(e, this.constructor.elementStyles), e;
489
+ return Zl(e, this.constructor.elementStyles), e;
490
490
  }
491
491
  connectedCallback() {
492
492
  var e;
@@ -605,7 +605,7 @@ let us = class extends HTMLElement {
605
605
  firstUpdated(e) {
606
606
  }
607
607
  };
608
- us.elementStyles = [], us.shadowRootOptions = { mode: "open" }, us[Zs("elementProperties")] = /* @__PURE__ */ new Map(), us[Zs("finalized")] = /* @__PURE__ */ new Map(), va == null || va({ ReactiveElement: us }), (bs.reactiveElementVersions ?? (bs.reactiveElementVersions = [])).push("2.1.2");
608
+ us.elementStyles = [], us.shadowRootOptions = { mode: "open" }, us[Js("elementProperties")] = /* @__PURE__ */ new Map(), us[Js("finalized")] = /* @__PURE__ */ new Map(), va == null || va({ ReactiveElement: us }), (bs.reactiveElementVersions ?? (bs.reactiveElementVersions = [])).push("2.1.2");
609
609
  /**
610
610
  * @license
611
611
  * Copyright 2017 Google LLC
@@ -666,7 +666,7 @@ let hs = class extends us {
666
666
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
667
667
  }
668
668
  render() {
669
- return Ot;
669
+ return Dt;
670
670
  }
671
671
  };
672
672
  var ya;
@@ -674,7 +674,7 @@ hs._$litElement$ = !0, hs.finalized = !0, (ya = ni.litElementHydrateSupport) ==
674
674
  const ka = ni.litElementPolyfillSupport;
675
675
  ka == null || ka({ LitElement: hs });
676
676
  (ni.litElementVersions ?? (ni.litElementVersions = [])).push("4.2.2");
677
- const cc = { hi: "Hei!" }, uc = { from: "Fra", to: "Til" }, dc = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, hc = { 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" }, pc = { 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." } }, Dt = {
677
+ const cc = { hi: "Hei!" }, uc = { from: "Fra", to: "Til" }, dc = { buttonAltText: "Åpne kalender", deleteDate: "Fjern dato" }, hc = { 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" }, pc = { 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." } }, Ot = {
678
678
  example: cc,
679
679
  generic: uc,
680
680
  calendar: dc,
@@ -686,9 +686,9 @@ var fc = Object.defineProperty, To = (n, e, t, s) => {
686
686
  (a = n[r]) && (i = a(e, t, i) || i);
687
687
  return i && fc(e, t, i), i;
688
688
  };
689
- let Zi = class extends hs {
689
+ let Ji = class extends hs {
690
690
  constructor() {
691
- super(...arguments), this.strings = Dt, this.role = null;
691
+ super(...arguments), this.strings = Ot, this.role = null;
692
692
  }
693
693
  /**
694
694
  * Add support for Hot Module Reloading in dev mode
@@ -699,11 +699,11 @@ let Zi = class extends hs {
699
699
  };
700
700
  To([
701
701
  c({ type: Object })
702
- ], Zi.prototype, "strings");
702
+ ], Ji.prototype, "strings");
703
703
  To([
704
704
  c({ type: String })
705
- ], Zi.prototype, "role");
706
- let Fe = class extends Zi {
705
+ ], Ji.prototype, "role");
706
+ let Fe = class extends Ji {
707
707
  /**
708
708
  * Make sure the component renders in light DOM instead of shadow DOM
709
709
  */
@@ -716,7 +716,7 @@ let Fe = class extends Zi {
716
716
  * Copyright 2017 Google LLC
717
717
  * SPDX-License-Identifier: BSD-3-Clause
718
718
  */
719
- const Gt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Jn = (n) => (...e) => ({ _$litDirective$: n, values: e });
719
+ const Gt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Zn = (n) => (...e) => ({ _$litDirective$: n, values: e });
720
720
  let xs = class {
721
721
  constructor(e) {
722
722
  }
@@ -738,7 +738,7 @@ let xs = class {
738
738
  * Copyright 2018 Google LLC
739
739
  * SPDX-License-Identifier: BSD-3-Clause
740
740
  */
741
- const z = Jn(class extends xs {
741
+ const z = Zn(class extends xs {
742
742
  constructor(n) {
743
743
  var e;
744
744
  if (super(n), n.type !== Gt.ATTRIBUTE || n.name !== "class" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -759,7 +759,7 @@ const z = Jn(class extends xs {
759
759
  const a = !!e[r];
760
760
  a === this.st.has(r) || (s = this.nt) != null && s.has(r) || (a ? (i.add(r), this.st.add(r)) : (i.remove(r), this.st.delete(r)));
761
761
  }
762
- return Ot;
762
+ return Dt;
763
763
  }
764
764
  });
765
765
  /**
@@ -866,7 +866,7 @@ let rt = class {
866
866
  * Copyright 2020 Google LLC
867
867
  * SPDX-License-Identifier: BSD-3-Clause
868
868
  */
869
- const { I: gc } = Gl, _a = (n) => n, Do = (n) => n.strings === void 0, $a = () => document.createComment(""), Rs = (n, e, t) => {
869
+ const { I: gc } = Gl, _a = (n) => n, Oo = (n) => n.strings === void 0, $a = () => document.createComment(""), Rs = (n, e, t) => {
870
870
  var s;
871
871
  const i = n._$AA.parentNode, r = e === void 0 ? n._$AB : e._$AA;
872
872
  if (t === void 0) {
@@ -887,7 +887,7 @@ const { I: gc } = Gl, _a = (n) => n, Do = (n) => n.strings === void 0, $a = () =
887
887
  }
888
888
  }
889
889
  return t;
890
- }, Bn = (n, e, t = n) => (n._$AI(e, t), n), vc = {}, Oo = (n, e = vc) => n._$AH = e, bc = (n) => n._$AH, hr = (n) => {
890
+ }, Bn = (n, e, t = n) => (n._$AI(e, t), n), vc = {}, Do = (n, e = vc) => n._$AH = e, bc = (n) => n._$AH, hr = (n) => {
891
891
  n._$AR(), n._$AA.remove();
892
892
  };
893
893
  /**
@@ -895,11 +895,11 @@ const { I: gc } = Gl, _a = (n) => n, Do = (n) => n.strings === void 0, $a = () =
895
895
  * Copyright 2017 Google LLC
896
896
  * SPDX-License-Identifier: BSD-3-Clause
897
897
  */
898
- const Js = (n, e) => {
898
+ const Zs = (n, e) => {
899
899
  var t;
900
900
  const s = n._$AN;
901
901
  if (s === void 0) return !1;
902
- for (const i of s) (t = i._$AO) == null || t.call(i, e, !1), Js(i, e);
902
+ for (const i of s) (t = i._$AO) == null || t.call(i, e, !1), Zs(i, e);
903
903
  return !0;
904
904
  }, Vi = (n) => {
905
905
  let e, t;
@@ -920,9 +920,9 @@ function yc(n) {
920
920
  }
921
921
  function kc(n, e = !1, t = 0) {
922
922
  const s = this._$AH, i = this._$AN;
923
- if (i !== void 0 && i.size !== 0) if (e) if (Array.isArray(s)) for (let r = t; r < s.length; r++) Js(s[r], !1), Vi(s[r]);
924
- else s != null && (Js(s, !1), Vi(s));
925
- else Js(this, n);
923
+ if (i !== void 0 && i.size !== 0) if (e) if (Array.isArray(s)) for (let r = t; r < s.length; r++) Zs(s[r], !1), Vi(s[r]);
924
+ else s != null && (Zs(s, !1), Vi(s));
925
+ else Zs(this, n);
926
926
  }
927
927
  const _c = (n) => {
928
928
  n.type == Gt.CHILD && (n._$AP ?? (n._$AP = kc), n._$AQ ?? (n._$AQ = yc));
@@ -936,10 +936,10 @@ let $c = class extends xs {
936
936
  }
937
937
  _$AO(e, t = !0) {
938
938
  var s, i;
939
- e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (Js(this, e), Vi(this));
939
+ e !== this.isConnected && (this.isConnected = e, e ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), t && (Zs(this, e), Vi(this));
940
940
  }
941
941
  setValue(e) {
942
- if (Do(this._$Ct)) this._$Ct._$AI(e, this);
942
+ if (Oo(this._$Ct)) this._$Ct._$AI(e, this);
943
943
  else {
944
944
  const t = [...this._$Ct._$AH];
945
945
  t[this._$Ci] = e, this._$Ct._$AI(t, this, 0);
@@ -955,10 +955,10 @@ let $c = class extends xs {
955
955
  * Copyright 2020 Google LLC
956
956
  * SPDX-License-Identifier: BSD-3-Clause
957
957
  */
958
- const Z = () => new wc();
958
+ const J = () => new wc();
959
959
  let wc = class {
960
960
  };
961
- const pr = /* @__PURE__ */ new WeakMap(), G = Jn(class extends $c {
961
+ const pr = /* @__PURE__ */ new WeakMap(), G = Zn(class extends $c {
962
962
  render(n) {
963
963
  return x;
964
964
  }
@@ -1000,7 +1000,7 @@ let Ui = class extends xs {
1000
1000
  }
1001
1001
  render(e) {
1002
1002
  if (e === x || e == null) return this._t = void 0, this.it = e;
1003
- if (e === Ot) return e;
1003
+ if (e === Dt) return e;
1004
1004
  if (typeof e != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
1005
1005
  if (e === this.it) return this._t;
1006
1006
  this.it = e;
@@ -1009,16 +1009,16 @@ let Ui = class extends xs {
1009
1009
  }
1010
1010
  };
1011
1011
  Ui.directiveName = "unsafeHTML", Ui.resultType = 1;
1012
- const Ei = Jn(Ui);
1012
+ const Ei = Zn(Ui);
1013
1013
  /**
1014
1014
  * @license
1015
1015
  * Copyright 2017 Google LLC
1016
1016
  * SPDX-License-Identifier: BSD-3-Clause
1017
1017
  */
1018
- let Or = class extends Ui {
1018
+ let Dr = class extends Ui {
1019
1019
  };
1020
- Or.directiveName = "unsafeSVG", Or.resultType = 2;
1021
- const fr = Jn(Or);
1020
+ Dr.directiveName = "unsafeSVG", Dr.resultType = 2;
1021
+ const fr = Zn(Dr);
1022
1022
  var xc = Object.defineProperty, Sc = Object.getOwnPropertyDescriptor, pi = (n, e, t, s) => {
1023
1023
  for (var i = s > 1 ? void 0 : s ? Sc(e, t) : e, r = n.length - 1, a; r >= 0; r--)
1024
1024
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
@@ -1036,7 +1036,7 @@ const si = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',
1036
1036
  } catch {
1037
1037
  return e > 0 ? (await new Promise((t) => setTimeout(t, Tc)), Ao(n, e - 1)) : (console.error("Failed to fetch icon: " + n), si);
1038
1038
  }
1039
- }, Dc = async (n, e) => {
1039
+ }, Oc = async (n, e) => {
1040
1040
  const t = e + n + ".svg";
1041
1041
  return wa && sessionStorage.getItem(t) ? sessionStorage.getItem(t) : t in Ls ? Ls[t] : typeof window < "u" && typeof window.pktFetch == "function" ? (Ls[t] = Ao(t).then((s) => (s !== si && wa && sessionStorage.setItem(t, s), delete Ls[t], s)), Ls[t]) : si;
1042
1042
  };
@@ -1058,7 +1058,7 @@ let Kn = class extends Fe {
1058
1058
  this.path || (this.path = typeof window < "u" ? window.pktIconPath : Mr);
1059
1059
  try {
1060
1060
  this.icon = fr(
1061
- await Dc(this.name || "", this.path)
1061
+ await Oc(this.name || "", this.path)
1062
1062
  );
1063
1063
  } catch {
1064
1064
  this.icon = fr(si);
@@ -1092,15 +1092,15 @@ Kn = pi([
1092
1092
  * SPDX-License-Identifier: BSD-3-Clause
1093
1093
  */
1094
1094
  const I = (n) => n ?? x;
1095
- var Oc = Object.defineProperty, Mc = Object.getOwnPropertyDescriptor, gt = (n, e, t, s) => {
1095
+ var Dc = Object.defineProperty, Mc = Object.getOwnPropertyDescriptor, gt = (n, e, t, s) => {
1096
1096
  for (var i = s > 1 ? void 0 : s ? Mc(e, t) : e, r = n.length - 1, a; r >= 0; r--)
1097
1097
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
1098
- return s && i && Oc(e, t, i), i;
1098
+ return s && i && Dc(e, t, i), i;
1099
1099
  };
1100
1100
  window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.0/animations/";
1101
1101
  let dt = class extends Fe {
1102
1102
  constructor() {
1103
- super(), this.defaultSlot = Z(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
1103
+ super(), this.defaultSlot = J(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
1104
1104
  }
1105
1105
  // Lifecycle
1106
1106
  connectedCallback() {
@@ -1231,7 +1231,7 @@ var Ac = Object.defineProperty, Pc = Object.getOwnPropertyDescriptor, un = (n, e
1231
1231
  };
1232
1232
  let Qt = class extends Fe {
1233
1233
  constructor() {
1234
- super(), this.defaultSlot = Z(), this.compact = xi.props.compact.default, this.title = "", this.skin = xi.props.skin.default, this.ariaLive = xi.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = xi.props.closeAlert.default, this.date = null, this.role = "status", this._isClosed = !1, this.close = (e) => {
1234
+ super(), this.defaultSlot = J(), this.compact = xi.props.compact.default, this.title = "", this.skin = xi.props.skin.default, this.ariaLive = xi.props.ariaLive.default, this["aria-live"] = null, this.closeAlert = xi.props.closeAlert.default, this.date = null, this.role = "status", this._isClosed = !1, this.close = (e) => {
1235
1235
  this._isClosed = !0, this.dispatchEvent(
1236
1236
  new CustomEvent("close", { detail: { origin: e }, bubbles: !0, composed: !0 })
1237
1237
  ), this.dispatchEvent(
@@ -1392,9 +1392,9 @@ var Lc = Object.defineProperty, Bc = Object.getOwnPropertyDescriptor, es = (n, e
1392
1392
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
1393
1393
  return s && i && Lc(e, t, i), i;
1394
1394
  };
1395
- let On = class extends Fe {
1395
+ let Dn = class extends Fe {
1396
1396
  constructor() {
1397
- super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = Z(), this.defaultSlot = Z(), this.slotController = new rt(this, this.defaultSlot);
1397
+ super(), this.defaultOpen = !1, this.title = "", this.skin = void 0, this.compact = !1, this.isOpen = !1, this.name = void 0, this.accordionItemRef = J(), this.defaultSlot = J(), this.slotController = new rt(this, this.defaultSlot);
1398
1398
  }
1399
1399
  firstUpdated(e) {
1400
1400
  this.defaultOpen && (this.isOpen = !0);
@@ -1434,26 +1434,26 @@ let On = class extends Fe {
1434
1434
  };
1435
1435
  es([
1436
1436
  c({ type: Boolean })
1437
- ], On.prototype, "defaultOpen", 2);
1437
+ ], Dn.prototype, "defaultOpen", 2);
1438
1438
  es([
1439
1439
  c({ type: String })
1440
- ], On.prototype, "title", 2);
1440
+ ], Dn.prototype, "title", 2);
1441
1441
  es([
1442
1442
  c({ type: String, reflect: !0 })
1443
- ], On.prototype, "skin", 2);
1443
+ ], Dn.prototype, "skin", 2);
1444
1444
  es([
1445
1445
  c({ type: Boolean, reflect: !0 })
1446
- ], On.prototype, "compact", 2);
1446
+ ], Dn.prototype, "compact", 2);
1447
1447
  es([
1448
1448
  c({ type: Boolean, reflect: !0 })
1449
- ], On.prototype, "isOpen", 2);
1449
+ ], Dn.prototype, "isOpen", 2);
1450
1450
  es([
1451
1451
  c({ type: String, reflect: !0 })
1452
- ], On.prototype, "name", 2);
1453
- On = es([
1452
+ ], Dn.prototype, "name", 2);
1453
+ Dn = es([
1454
1454
  ye("pkt-accordion-item")
1455
- ], On);
1456
- var Fc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, Ji = (n, e, t, s) => {
1455
+ ], Dn);
1456
+ var Fc = Object.defineProperty, Vc = Object.getOwnPropertyDescriptor, Zi = (n, e, t, s) => {
1457
1457
  for (var i = s > 1 ? void 0 : s ? Vc(e, t) : e, r = n.length - 1, a; r >= 0; r--)
1458
1458
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
1459
1459
  return s && i && Fc(e, t, i), i;
@@ -1482,16 +1482,16 @@ let ks = class extends Fe {
1482
1482
  </nav>`;
1483
1483
  }
1484
1484
  };
1485
- Ji([
1485
+ Zi([
1486
1486
  c({ type: String })
1487
1487
  ], ks.prototype, "href", 2);
1488
- Ji([
1488
+ Zi([
1489
1489
  c({ type: String })
1490
1490
  ], ks.prototype, "text", 2);
1491
- Ji([
1491
+ Zi([
1492
1492
  c({ type: String })
1493
1493
  ], ks.prototype, "ariaLabel", 2);
1494
- ks = Ji([
1494
+ ks = Zi([
1495
1495
  ye("pkt-backlink")
1496
1496
  ], ks);
1497
1497
  const Po = 6048e5, Uc = 864e5, xa = Symbol.for("constructDateFrom");
@@ -1665,12 +1665,12 @@ const Xc = {
1665
1665
  long: "MMMM do, y",
1666
1666
  medium: "MMM d, y",
1667
1667
  short: "MM/dd/yyyy"
1668
- }, Zc = {
1668
+ }, Jc = {
1669
1669
  full: "h:mm:ss a zzzz",
1670
1670
  long: "h:mm:ss a z",
1671
1671
  medium: "h:mm:ss a",
1672
1672
  short: "h:mm a"
1673
- }, Jc = {
1673
+ }, Zc = {
1674
1674
  full: "{{date}} 'at' {{time}}",
1675
1675
  long: "{{date}} 'at' {{time}}",
1676
1676
  medium: "{{date}}, {{time}}",
@@ -1681,11 +1681,11 @@ const Xc = {
1681
1681
  defaultWidth: "full"
1682
1682
  }),
1683
1683
  time: mr({
1684
- formats: Zc,
1684
+ formats: Jc,
1685
1685
  defaultWidth: "full"
1686
1686
  }),
1687
1687
  dateTime: mr({
1688
- formats: Jc,
1688
+ formats: Zc,
1689
1689
  defaultWidth: "full"
1690
1690
  })
1691
1691
  }, tu = {
@@ -2022,7 +2022,7 @@ function Nu(n, e) {
2022
2022
  const t = Lt(n, void 0);
2023
2023
  return Hc(t, Kc(t)) + 1;
2024
2024
  }
2025
- function Du(n, e) {
2025
+ function Ou(n, e) {
2026
2026
  const t = Lt(n, void 0), s = +ji(t) - +qc(t);
2027
2027
  return Math.round(s / Po) + 1;
2028
2028
  }
@@ -2035,16 +2035,16 @@ function Bo(n, e) {
2035
2035
  const b = ii(p, e);
2036
2036
  return +a >= +g ? o + 1 : +a >= +b ? o : o - 1;
2037
2037
  }
2038
- function Ou(n, e) {
2038
+ function Du(n, e) {
2039
2039
  var t, s, i, r;
2040
2040
  const a = er(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (t = e == null ? void 0 : e.locale) == null ? void 0 : t.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((r = (i = a.locale) == null ? void 0 : i.options) == null ? void 0 : r.firstWeekContainsDate) ?? 1, l = Bo(n, e), h = on((e == null ? void 0 : e.in) || n, 0);
2041
2041
  return h.setFullYear(l, 0, o), h.setHours(0, 0, 0, 0), ii(h, e);
2042
2042
  }
2043
2043
  function Fo(n, e) {
2044
- const t = Lt(n, e == null ? void 0 : e.in), s = +ii(t, e) - +Ou(t, e);
2044
+ const t = Lt(n, e == null ? void 0 : e.in), s = +ii(t, e) - +Du(t, e);
2045
2045
  return Math.round(s / Po) + 1;
2046
2046
  }
2047
- function Oe(n, e) {
2047
+ function De(n, e) {
2048
2048
  const t = n < 0 ? "-" : "", s = Math.abs(n).toString().padStart(e, "0");
2049
2049
  return t + s;
2050
2050
  }
@@ -2052,16 +2052,16 @@ const Sn = {
2052
2052
  // Year
2053
2053
  y(n, e) {
2054
2054
  const t = n.getFullYear(), s = t > 0 ? t : 1 - t;
2055
- return Oe(e === "yy" ? s % 100 : s, e.length);
2055
+ return De(e === "yy" ? s % 100 : s, e.length);
2056
2056
  },
2057
2057
  // Month
2058
2058
  M(n, e) {
2059
2059
  const t = n.getMonth();
2060
- return e === "M" ? String(t + 1) : Oe(t + 1, 2);
2060
+ return e === "M" ? String(t + 1) : De(t + 1, 2);
2061
2061
  },
2062
2062
  // Day of the month
2063
2063
  d(n, e) {
2064
- return Oe(n.getDate(), e.length);
2064
+ return De(n.getDate(), e.length);
2065
2065
  },
2066
2066
  // AM or PM
2067
2067
  a(n, e) {
@@ -2081,26 +2081,26 @@ const Sn = {
2081
2081
  },
2082
2082
  // Hour [1-12]
2083
2083
  h(n, e) {
2084
- return Oe(n.getHours() % 12 || 12, e.length);
2084
+ return De(n.getHours() % 12 || 12, e.length);
2085
2085
  },
2086
2086
  // Hour [0-23]
2087
2087
  H(n, e) {
2088
- return Oe(n.getHours(), e.length);
2088
+ return De(n.getHours(), e.length);
2089
2089
  },
2090
2090
  // Minute
2091
2091
  m(n, e) {
2092
- return Oe(n.getMinutes(), e.length);
2092
+ return De(n.getMinutes(), e.length);
2093
2093
  },
2094
2094
  // Second
2095
2095
  s(n, e) {
2096
- return Oe(n.getSeconds(), e.length);
2096
+ return De(n.getSeconds(), e.length);
2097
2097
  },
2098
2098
  // Fraction of second
2099
2099
  S(n, e) {
2100
2100
  const t = e.length, s = n.getMilliseconds(), i = Math.trunc(
2101
2101
  s * Math.pow(10, t - 3)
2102
2102
  );
2103
- return Oe(i, e.length);
2103
+ return De(i, e.length);
2104
2104
  }
2105
2105
  }, ls = {
2106
2106
  midnight: "midnight",
@@ -2141,14 +2141,14 @@ const Sn = {
2141
2141
  const i = Bo(n, s), r = i > 0 ? i : 1 - i;
2142
2142
  if (e === "YY") {
2143
2143
  const a = r % 100;
2144
- return Oe(a, 2);
2144
+ return De(a, 2);
2145
2145
  }
2146
- return e === "Yo" ? t.ordinalNumber(r, { unit: "year" }) : Oe(r, e.length);
2146
+ return e === "Yo" ? t.ordinalNumber(r, { unit: "year" }) : De(r, e.length);
2147
2147
  },
2148
2148
  // ISO week-numbering year
2149
2149
  R: function(n, e) {
2150
2150
  const t = Io(n);
2151
- return Oe(t, e.length);
2151
+ return De(t, e.length);
2152
2152
  },
2153
2153
  // Extended year. This is a single number designating the year of this calendar system.
2154
2154
  // The main difference between `y` and `u` localizers are B.C. years:
@@ -2161,7 +2161,7 @@ const Sn = {
2161
2161
  // while `uu` pads single digit years to 2 characters and returns other years unchanged.
2162
2162
  u: function(n, e) {
2163
2163
  const t = n.getFullYear();
2164
- return Oe(t, e.length);
2164
+ return De(t, e.length);
2165
2165
  },
2166
2166
  // Quarter
2167
2167
  Q: function(n, e, t) {
@@ -2172,7 +2172,7 @@ const Sn = {
2172
2172
  return String(s);
2173
2173
  // 01, 02, 03, 04
2174
2174
  case "QQ":
2175
- return Oe(s, 2);
2175
+ return De(s, 2);
2176
2176
  // 1st, 2nd, 3rd, 4th
2177
2177
  case "Qo":
2178
2178
  return t.ordinalNumber(s, { unit: "quarter" });
@@ -2206,7 +2206,7 @@ const Sn = {
2206
2206
  return String(s);
2207
2207
  // 01, 02, 03, 04
2208
2208
  case "qq":
2209
- return Oe(s, 2);
2209
+ return De(s, 2);
2210
2210
  // 1st, 2nd, 3rd, 4th
2211
2211
  case "qo":
2212
2212
  return t.ordinalNumber(s, { unit: "quarter" });
@@ -2268,7 +2268,7 @@ const Sn = {
2268
2268
  return String(s + 1);
2269
2269
  // 01, 02, ..., 12
2270
2270
  case "LL":
2271
- return Oe(s + 1, 2);
2271
+ return De(s + 1, 2);
2272
2272
  // 1st, 2nd, ..., 12th
2273
2273
  case "Lo":
2274
2274
  return t.ordinalNumber(s + 1, { unit: "month" });
@@ -2293,12 +2293,12 @@ const Sn = {
2293
2293
  // Local week of year
2294
2294
  w: function(n, e, t, s) {
2295
2295
  const i = Fo(n, s);
2296
- return e === "wo" ? t.ordinalNumber(i, { unit: "week" }) : Oe(i, e.length);
2296
+ return e === "wo" ? t.ordinalNumber(i, { unit: "week" }) : De(i, e.length);
2297
2297
  },
2298
2298
  // ISO week of year
2299
2299
  I: function(n, e, t) {
2300
- const s = Du(n);
2301
- return e === "Io" ? t.ordinalNumber(s, { unit: "week" }) : Oe(s, e.length);
2300
+ const s = Ou(n);
2301
+ return e === "Io" ? t.ordinalNumber(s, { unit: "week" }) : De(s, e.length);
2302
2302
  },
2303
2303
  // Day of the month
2304
2304
  d: function(n, e, t) {
@@ -2307,7 +2307,7 @@ const Sn = {
2307
2307
  // Day of year
2308
2308
  D: function(n, e, t) {
2309
2309
  const s = Nu(n);
2310
- return e === "Do" ? t.ordinalNumber(s, { unit: "dayOfYear" }) : Oe(s, e.length);
2310
+ return e === "Do" ? t.ordinalNumber(s, { unit: "dayOfYear" }) : De(s, e.length);
2311
2311
  },
2312
2312
  // Day of week
2313
2313
  E: function(n, e, t) {
@@ -2351,7 +2351,7 @@ const Sn = {
2351
2351
  return String(r);
2352
2352
  // Padded numerical value
2353
2353
  case "ee":
2354
- return Oe(r, 2);
2354
+ return De(r, 2);
2355
2355
  // 1st, 2nd, ..., 7th
2356
2356
  case "eo":
2357
2357
  return t.ordinalNumber(r, { unit: "day" });
@@ -2390,7 +2390,7 @@ const Sn = {
2390
2390
  return String(r);
2391
2391
  // Padded numerical value
2392
2392
  case "cc":
2393
- return Oe(r, e.length);
2393
+ return De(r, e.length);
2394
2394
  // 1st, 2nd, ..., 7th
2395
2395
  case "co":
2396
2396
  return t.ordinalNumber(r, { unit: "day" });
@@ -2429,7 +2429,7 @@ const Sn = {
2429
2429
  return String(i);
2430
2430
  // 02
2431
2431
  case "ii":
2432
- return Oe(i, e.length);
2432
+ return De(i, e.length);
2433
2433
  // 2nd
2434
2434
  case "io":
2435
2435
  return t.ordinalNumber(i, { unit: "day" });
@@ -2557,12 +2557,12 @@ const Sn = {
2557
2557
  // Hour [0-11]
2558
2558
  K: function(n, e, t) {
2559
2559
  const s = n.getHours() % 12;
2560
- return e === "Ko" ? t.ordinalNumber(s, { unit: "hour" }) : Oe(s, e.length);
2560
+ return e === "Ko" ? t.ordinalNumber(s, { unit: "hour" }) : De(s, e.length);
2561
2561
  },
2562
2562
  // Hour [1-24]
2563
2563
  k: function(n, e, t) {
2564
2564
  let s = n.getHours();
2565
- return s === 0 && (s = 24), e === "ko" ? t.ordinalNumber(s, { unit: "hour" }) : Oe(s, e.length);
2565
+ return s === 0 && (s = 24), e === "ko" ? t.ordinalNumber(s, { unit: "hour" }) : De(s, e.length);
2566
2566
  },
2567
2567
  // Minute
2568
2568
  m: function(n, e, t) {
@@ -2584,7 +2584,7 @@ const Sn = {
2584
2584
  switch (e) {
2585
2585
  // Hours and optional minutes
2586
2586
  case "X":
2587
- return Oa(s);
2587
+ return Da(s);
2588
2588
  // Hours, minutes and optional seconds without `:` delimiter
2589
2589
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2590
2590
  // so this token always has the same output as `XX`
@@ -2607,7 +2607,7 @@ const Sn = {
2607
2607
  switch (e) {
2608
2608
  // Hours and optional minutes
2609
2609
  case "x":
2610
- return Oa(s);
2610
+ return Da(s);
2611
2611
  // Hours, minutes and optional seconds without `:` delimiter
2612
2612
  // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
2613
2613
  // so this token always has the same output as `xx`
@@ -2632,7 +2632,7 @@ const Sn = {
2632
2632
  case "O":
2633
2633
  case "OO":
2634
2634
  case "OOO":
2635
- return "GMT" + Da(s, ":");
2635
+ return "GMT" + Oa(s, ":");
2636
2636
  // Long
2637
2637
  case "OOOO":
2638
2638
  default:
@@ -2647,7 +2647,7 @@ const Sn = {
2647
2647
  case "z":
2648
2648
  case "zz":
2649
2649
  case "zzz":
2650
- return "GMT" + Da(s, ":");
2650
+ return "GMT" + Oa(s, ":");
2651
2651
  // Long
2652
2652
  case "zzzz":
2653
2653
  default:
@@ -2657,22 +2657,22 @@ const Sn = {
2657
2657
  // Seconds timestamp
2658
2658
  t: function(n, e, t) {
2659
2659
  const s = Math.trunc(+n / 1e3);
2660
- return Oe(s, e.length);
2660
+ return De(s, e.length);
2661
2661
  },
2662
2662
  // Milliseconds timestamp
2663
2663
  T: function(n, e, t) {
2664
- return Oe(+n, e.length);
2664
+ return De(+n, e.length);
2665
2665
  }
2666
2666
  };
2667
- function Da(n, e = "") {
2667
+ function Oa(n, e = "") {
2668
2668
  const t = n > 0 ? "-" : "+", s = Math.abs(n), i = Math.trunc(s / 60), r = s % 60;
2669
- return r === 0 ? t + String(i) : t + String(i) + e + Oe(r, 2);
2669
+ return r === 0 ? t + String(i) : t + String(i) + e + De(r, 2);
2670
2670
  }
2671
- function Oa(n, e) {
2672
- return n % 60 === 0 ? (n > 0 ? "-" : "+") + Oe(Math.abs(n) / 60, 2) : Vn(n, e);
2671
+ function Da(n, e) {
2672
+ return n % 60 === 0 ? (n > 0 ? "-" : "+") + De(Math.abs(n) / 60, 2) : Vn(n, e);
2673
2673
  }
2674
2674
  function Vn(n, e = "") {
2675
- const t = n > 0 ? "-" : "+", s = Math.abs(n), i = Oe(Math.trunc(s / 60), 2), r = Oe(s % 60, 2);
2675
+ const t = n > 0 ? "-" : "+", s = Math.abs(n), i = De(Math.trunc(s / 60), 2), r = De(s % 60, 2);
2676
2676
  return t + i + e + r;
2677
2677
  }
2678
2678
  const Ma = (n, e) => {
@@ -2747,8 +2747,8 @@ function Wu(n, e, t) {
2747
2747
  let p = e.match(Uu).map((v) => {
2748
2748
  const $ = v[0];
2749
2749
  if ($ === "p" || $ === "P") {
2750
- const D = Eu[$];
2751
- return D(v, l.formatLong);
2750
+ const O = Eu[$];
2751
+ return O(v, l.formatLong);
2752
2752
  }
2753
2753
  return v;
2754
2754
  }).join("").match(Vu).map((v) => {
@@ -2775,8 +2775,8 @@ function Wu(n, e, t) {
2775
2775
  if (!v.isToken) return v.value;
2776
2776
  const $ = v.value;
2777
2777
  (Lu($) || Ru($)) && Bu($, e, String(n));
2778
- const D = Na[$[0]];
2779
- return D(g, $, l.localize, b);
2778
+ const O = Na[$[0]];
2779
+ return O(g, $, l.localize, b);
2780
2780
  }).join("");
2781
2781
  }
2782
2782
  function zu(n) {
@@ -2872,9 +2872,9 @@ function Uo(n) {
2872
2872
  h.setUTCSeconds(0);
2873
2873
  const f = i > 0 ? h.getSeconds() : (h.getSeconds() - 60) % 60, g = Math.round(-(Hn(n.timeZone, n) * 60)) % 60;
2874
2874
  (g || f) && (n.internal.setUTCSeconds(n.internal.getUTCSeconds() + g), Date.prototype.setUTCSeconds.call(n, Date.prototype.getUTCSeconds.call(n) + g + f));
2875
- const p = Hn(n.timeZone, n), b = p > 0 ? Math.floor(p) : Math.ceil(p), v = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - b, $ = b !== t, D = v - l;
2876
- if ($ && D) {
2877
- Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + D);
2875
+ const p = Hn(n.timeZone, n), b = p > 0 ? Math.floor(p) : Math.ceil(p), v = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - b, $ = b !== t, O = v - l;
2876
+ if ($ && O) {
2877
+ Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + O);
2878
2878
  const S = Hn(n.timeZone, n), T = S > 0 ? Math.floor(S) : Math.ceil(S), L = b - T;
2879
2879
  L && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + L), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + L));
2880
2880
  }
@@ -2977,11 +2977,11 @@ const ut = (n) => {
2977
2977
  return typeof n == "number" ? e = new Ar(n, window.pktTz) : e = new Ar(n, window.pktTz), e.setHours(12, 0, 0, 0), e;
2978
2978
  };
2979
2979
  let gr = null, Ra;
2980
- const Zu = (n) => {
2980
+ const Ju = (n) => {
2981
2981
  if (!n || isNaN(n.getTime())) return "";
2982
2982
  const e = typeof window < "u" ? window.pktTz : void 0;
2983
2983
  return (!gr || Ra !== e) && (gr = new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: e }), Ra = e), gr.format(n);
2984
- }, Ju = (n, e, t) => {
2984
+ }, Zu = (n, e, t) => {
2985
2985
  if (!n || isNaN(n.getTime())) return !1;
2986
2986
  const s = e ? jt(e) : null, i = t ? jt(t) : null;
2987
2987
  return !(s && n < s || i && n > i);
@@ -2993,7 +2993,7 @@ const Zu = (n) => {
2993
2993
  if (!n || isNaN(n.getTime()) || !Array.isArray(e)) return !1;
2994
2994
  const t = n.getDay().toString();
2995
2995
  return e.includes(t);
2996
- }, jo = (n, e, t, s, i) => !(!n || isNaN(n.getTime()) || !Ju(n, e, t) || s && ed(n, s) || i && td(n, i)), nd = (n, e, t, s, i) => n.filter((r) => {
2996
+ }, jo = (n, e, t, s, i) => !(!n || isNaN(n.getTime()) || !Zu(n, e, t) || s && ed(n, s) || i && td(n, i)), nd = (n, e, t, s, i) => n.filter((r) => {
2997
2997
  const a = Mn(r);
2998
2998
  return a && jo(a, e, t, s, i);
2999
2999
  }), Ho = (n) => n.slice().sort((e, t) => {
@@ -3002,7 +3002,18 @@ const Zu = (n) => {
3002
3002
  }), sd = (n, e) => {
3003
3003
  const t = Mn(n), s = Mn(e);
3004
3004
  return !t || !s ? !1 : t <= s;
3005
- }, Qs = (n) => n ? Array.isArray(n) ? n.filter(Boolean) : String(n).split(",").map((e) => e.trim()).filter(Boolean) : [], id = (n) => n.join(","), rd = (n) => Qs(n), ad = (n) => n ? vn(n) : null, od = (n) => {
3005
+ }, Qs = (n) => {
3006
+ if (!n) return [];
3007
+ if (Array.isArray(n)) return n.filter(Boolean);
3008
+ if (typeof n == "string" && n.trimStart().startsWith("["))
3009
+ try {
3010
+ const e = JSON.parse(n);
3011
+ if (Array.isArray(e))
3012
+ return e.filter(Boolean);
3013
+ } catch {
3014
+ }
3015
+ return String(n).split(",").map((e) => e.trim()).filter(Boolean);
3016
+ }, id = (n) => n.join(","), rd = (n) => Qs(n), ad = (n) => n ? vn(n) : null, od = (n) => {
3006
3017
  if (typeof n == "string")
3007
3018
  return n.split(",").map((e) => vn(e));
3008
3019
  if (Array.isArray(n))
@@ -3307,7 +3318,7 @@ let Pe = class extends Fe {
3307
3318
  isToday: r,
3308
3319
  isSelected: a,
3309
3320
  isDisabled: o,
3310
- ariaLabel: Zu(s),
3321
+ ariaLabel: Ju(s),
3311
3322
  tabindex: l
3312
3323
  };
3313
3324
  }
@@ -3602,14 +3613,14 @@ Pe = Ve([
3602
3613
  const xd = { size: { default: "medium" }, skin: { default: "blue" }, closeTag: { default: !1 }, type: { default: "button" } }, Si = {
3603
3614
  props: xd
3604
3615
  };
3605
- var Sd = Object.defineProperty, Cd = Object.getOwnPropertyDescriptor, Jt = (n, e, t, s) => {
3616
+ var Sd = Object.defineProperty, Cd = Object.getOwnPropertyDescriptor, Zt = (n, e, t, s) => {
3606
3617
  for (var i = s > 1 ? void 0 : s ? Cd(e, t) : e, r = n.length - 1, a; r >= 0; r--)
3607
3618
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
3608
3619
  return s && i && Sd(e, t, i), i;
3609
3620
  };
3610
3621
  let Ht = class extends Fe {
3611
3622
  constructor() {
3612
- super(), this.defaultSlot = Z(), this.closeTag = Si.props.closeTag.default, this.size = Si.props.size.default, this.skin = Si.props.skin.default, this.textStyle = null, this.iconName = void 0, this.type = Si.props.type.default, this.ariaLabel = null, this.buttonTabindex = void 0, this._isClosed = !1, this._ariaDescription = null, this.close = (e) => {
3623
+ super(), this.defaultSlot = J(), this.closeTag = Si.props.closeTag.default, this.size = Si.props.size.default, this.skin = Si.props.skin.default, this.textStyle = null, this.iconName = void 0, this.type = Si.props.type.default, this.ariaLabel = null, this.buttonTabindex = void 0, this._isClosed = !1, this._ariaDescription = null, this.close = (e) => {
3613
3624
  this._isClosed = !0, this.dispatchEvent(
3614
3625
  new CustomEvent("close", { detail: { origin: e }, bubbles: !1, composed: !0 })
3615
3626
  ), this.dispatchEvent(
@@ -3672,37 +3683,37 @@ let Ht = class extends Fe {
3672
3683
  `;
3673
3684
  }
3674
3685
  };
3675
- Jt([
3686
+ Zt([
3676
3687
  c({ type: Boolean, reflect: !0 })
3677
3688
  ], Ht.prototype, "closeTag", 2);
3678
- Jt([
3689
+ Zt([
3679
3690
  c({ type: String, reflect: !0 })
3680
3691
  ], Ht.prototype, "size", 2);
3681
- Jt([
3692
+ Zt([
3682
3693
  c({ type: String, reflect: !0 })
3683
3694
  ], Ht.prototype, "skin", 2);
3684
- Jt([
3695
+ Zt([
3685
3696
  c({ type: String, reflect: !0 })
3686
3697
  ], Ht.prototype, "textStyle", 2);
3687
- Jt([
3698
+ Zt([
3688
3699
  c({ type: String, reflect: !0 })
3689
3700
  ], Ht.prototype, "iconName", 2);
3690
- Jt([
3701
+ Zt([
3691
3702
  c({ type: String })
3692
3703
  ], Ht.prototype, "type", 2);
3693
- Jt([
3704
+ Zt([
3694
3705
  c({ type: String })
3695
3706
  ], Ht.prototype, "ariaLabel", 2);
3696
- Jt([
3707
+ Zt([
3697
3708
  c({ type: Number, attribute: "button-tabindex" })
3698
3709
  ], Ht.prototype, "buttonTabindex", 2);
3699
- Jt([
3710
+ Zt([
3700
3711
  he()
3701
3712
  ], Ht.prototype, "_isClosed", 2);
3702
- Jt([
3713
+ Zt([
3703
3714
  he()
3704
3715
  ], Ht.prototype, "_ariaDescription", 2);
3705
- Ht = Jt([
3716
+ Ht = Zt([
3706
3717
  ye("pkt-tag")
3707
3718
  ], Ht);
3708
3719
  var Td = Object.defineProperty, Nd = Object.getOwnPropertyDescriptor, Cs = (n, e, t, s) => {
@@ -3710,7 +3721,7 @@ var Td = Object.defineProperty, Nd = Object.getOwnPropertyDescriptor, Cs = (n, e
3710
3721
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
3711
3722
  return s && i && Td(e, t, i), i;
3712
3723
  };
3713
- let En = class extends Zi {
3724
+ let En = class extends Ji {
3714
3725
  constructor() {
3715
3726
  super(...arguments), this.size = void 0, this.level = 2, this.weight = void 0, this.visuallyHidden = !1, this.align = void 0;
3716
3727
  }
@@ -3802,18 +3813,18 @@ Cs([
3802
3813
  En = Cs([
3803
3814
  ye("pkt-heading")
3804
3815
  ], En);
3805
- const Dd = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, fs = {
3806
- props: Dd
3816
+ const Od = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, fs = {
3817
+ props: Od
3807
3818
  };
3808
- var Od = Object.defineProperty, Md = Object.getOwnPropertyDescriptor, kt = (n, e, t, s) => {
3819
+ var Dd = Object.defineProperty, Md = Object.getOwnPropertyDescriptor, kt = (n, e, t, s) => {
3809
3820
  for (var i = s > 1 ? void 0 : s ? Md(e, t) : e, r = n.length - 1, a; r >= 0; r--)
3810
3821
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
3811
- return s && i && Od(e, t, i), i;
3822
+ return s && i && Dd(e, t, i), i;
3812
3823
  };
3813
3824
  let ht = class extends Fe {
3814
3825
  //Constructor
3815
3826
  constructor() {
3816
- super(), this.defaultSlot = Z(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = fs.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
3827
+ super(), this.defaultSlot = J(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = fs.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
3817
3828
  src: "",
3818
3829
  alt: ""
3819
3830
  }, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = fs.props.padding.default, this.skin = fs.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new rt(this, this.defaultSlot);
@@ -4035,7 +4046,7 @@ const Ba = (n, e, t) => {
4035
4046
  const s = /* @__PURE__ */ new Map();
4036
4047
  for (let i = e; i <= t; i++) s.set(n[i], i);
4037
4048
  return s;
4038
- }, qr = Jn(class extends xs {
4049
+ }, qr = Zn(class extends xs {
4039
4050
  constructor(n) {
4040
4051
  if (super(n), n.type !== Gt.CHILD) throw Error("repeat() can only be used in text expressions");
4041
4052
  }
@@ -4062,11 +4073,11 @@ const Ba = (n, e, t) => {
4062
4073
  else if (o[g] === a[v]) l[v] = Bn(i[g], r[v]), Rs(n, l[v + 1], i[g]), g++, v--;
4063
4074
  else if (o[p] === a[b]) l[b] = Bn(i[p], r[b]), Rs(n, i[g], i[p]), p--, b++;
4064
4075
  else if (h === void 0 && (h = Ba(a, b, v), f = Ba(o, g, p)), h.has(o[g])) if (h.has(o[p])) {
4065
- const $ = f.get(a[b]), D = $ !== void 0 ? i[$] : null;
4066
- if (D === null) {
4076
+ const $ = f.get(a[b]), O = $ !== void 0 ? i[$] : null;
4077
+ if (O === null) {
4067
4078
  const S = Rs(n, i[g]);
4068
4079
  Bn(S, r[b]), l[b] = S;
4069
- } else l[b] = Bn(D, r[b]), Rs(n, i[g], D), i[$] = null;
4080
+ } else l[b] = Bn(O, r[b]), Rs(n, i[g], O), i[$] = null;
4070
4081
  b++;
4071
4082
  } else hr(i[p]), p--;
4072
4083
  else hr(i[g]), g++;
@@ -4078,9 +4089,9 @@ const Ba = (n, e, t) => {
4078
4089
  const $ = i[g++];
4079
4090
  $ !== null && hr($);
4080
4091
  }
4081
- return this.ut = a, Oo(n, l), Ot;
4092
+ return this.ut = a, Do(n, l), Dt;
4082
4093
  }
4083
- }), Fa = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Ed = (n) => new Promise((e) => setTimeout(e, n)), Dn = () => {
4094
+ }), Fa = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).toString(16)).slice(-16), Ed = (n) => new Promise((e) => setTimeout(e, n)), On = () => {
4084
4095
  const n = Fa(), e = Fa();
4085
4096
  return n.slice(0, 8) + "-" + n.slice(8, 12) + "-4" + n.slice(13) + "-a" + e.slice(1, 4) + "-" + e.slice(4);
4086
4097
  }, rn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label === e)) || null, Va = (n, e) => {
@@ -4181,7 +4192,7 @@ var jd = Object.defineProperty, Hd = Object.getOwnPropertyDescriptor, xt = (n, e
4181
4192
  };
4182
4193
  let bt = class extends Fe {
4183
4194
  constructor() {
4184
- super(...arguments), this.id = Dn(), 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.typeahead = Ld(), this._filteredOptions = [];
4195
+ super(...arguments), this.id = On(), 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.typeahead = Ld(), this._filteredOptions = [];
4185
4196
  }
4186
4197
  // Lifecycle methods
4187
4198
  connectedCallback() {
@@ -4233,6 +4244,9 @@ let bt = class extends Fe {
4233
4244
  role="presentation"
4234
4245
  tabindex="-1"
4235
4246
  value=${e.value}
4247
+ @change=${(s) => {
4248
+ s.stopPropagation();
4249
+ }}
4236
4250
  .checked=${e.selected}
4237
4251
  aria-labelledby=${this.id + "-option-label-" + t}
4238
4252
  ?disabled=${this.disabled || e.disabled || this.maxIsReached && !e.selected}
@@ -4241,7 +4255,11 @@ let bt = class extends Fe {
4241
4255
  }
4242
4256
  renderEmptyMessage() {
4243
4257
  return this.options.length > 0 || this._filteredOptions.length > 0 || this.userMessage ? x : y`<div class="pkt-listbox__banner pkt-listbox__banner--empty">
4244
- <pkt-icon class="pkt-listbox__banner-icon" name="exclamation-mark-circle" size="large"></pkt-icon>
4258
+ <pkt-icon
4259
+ class="pkt-listbox__banner-icon"
4260
+ name="exclamation-mark-circle"
4261
+ size="large"
4262
+ ></pkt-icon>
4245
4263
  Tom liste
4246
4264
  </div>`;
4247
4265
  }
@@ -4330,7 +4348,7 @@ let bt = class extends Fe {
4330
4348
  type="text"
4331
4349
  aria-label="Søk i listen"
4332
4350
  form=""
4333
- placeholder=${this.searchPlaceholder || Dt.forms.search.placeholder}
4351
+ placeholder=${this.searchPlaceholder || Ot.forms.search.placeholder}
4334
4352
  @input=${this.handleSearchInput}
4335
4353
  @keydown=${this.handleSearchKeydown}
4336
4354
  .value=${this.searchValue}
@@ -4513,7 +4531,7 @@ var Wd = {}, ja;
4513
4531
  function zd() {
4514
4532
  return ja || (ja = 1, (function() {
4515
4533
  (function(n) {
4516
- const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), D = {
4534
+ const e = /* @__PURE__ */ new WeakMap(), t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), g = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), O = {
4517
4535
  ariaAtomic: "aria-atomic",
4518
4536
  ariaAutoComplete: "aria-autocomplete",
4519
4537
  ariaBusy: "aria-busy",
@@ -4557,10 +4575,10 @@ function zd() {
4557
4575
  ariaValueText: "aria-valuetext",
4558
4576
  role: "role"
4559
4577
  }, S = (m, d) => {
4560
- for (let k in D) {
4578
+ for (let k in O) {
4561
4579
  d[k] = null;
4562
4580
  let C = null;
4563
- const j = D[k];
4581
+ const j = O[k];
4564
4582
  Object.defineProperty(d, k, {
4565
4583
  get() {
4566
4584
  return C;
@@ -4585,7 +4603,7 @@ function zd() {
4585
4603
  const j = !d || m.disabled;
4586
4604
  for (; C; )
4587
4605
  C.formDisabledCallback && j && H(C, m.disabled), C = k.nextNode();
4588
- }, O = { attributes: !0, attributeFilter: ["disabled", "name"] }, W = te() ? new MutationObserver((m) => {
4606
+ }, D = { attributes: !0, attributeFilter: ["disabled", "name"] }, W = te() ? new MutationObserver((m) => {
4589
4607
  for (const d of m) {
4590
4608
  const k = d.target;
4591
4609
  if (d.attributeName === "disabled" && (k.constructor.formAssociated ? H(k, k.hasAttribute("disabled")) : k.localName === "fieldset" && L(k)), d.attributeName === "name" && k.constructor.formAssociated) {
@@ -4594,15 +4612,15 @@ function zd() {
4594
4612
  }
4595
4613
  }
4596
4614
  }) : {};
4597
- function J(m) {
4615
+ function Z(m) {
4598
4616
  m.forEach((d) => {
4599
4617
  const { addedNodes: k, removedNodes: C } = d, j = Array.from(k), q = Array.from(C);
4600
4618
  j.forEach((de) => {
4601
4619
  var ot;
4602
4620
  if (i.has(de) && de.constructor.formAssociated && T(de), f.has(de)) {
4603
4621
  const tt = f.get(de);
4604
- Object.keys(D).filter((He) => tt[He] !== null).forEach((He) => {
4605
- N(de, D[He], tt[He]);
4622
+ Object.keys(O).filter((He) => tt[He] !== null).forEach((He) => {
4623
+ N(de, O[He], tt[He]);
4606
4624
  }), f.delete(de);
4607
4625
  }
4608
4626
  if ($.has(de)) {
@@ -4619,7 +4637,7 @@ function zd() {
4619
4637
  for (; zt; )
4620
4638
  T(zt), zt = He.nextNode();
4621
4639
  }
4622
- de.localName === "fieldset" && ((ot = W.observe) === null || ot === void 0 || ot.call(W, de, O), L(de, !0));
4640
+ de.localName === "fieldset" && ((ot = W.observe) === null || ot === void 0 || ot.call(W, de, D), L(de, !0));
4623
4641
  }), q.forEach((de) => {
4624
4642
  const ot = i.get(de);
4625
4643
  ot && s.get(ot) && B(ot), o.has(de) && o.get(de).disconnect();
@@ -4640,7 +4658,7 @@ function zd() {
4640
4658
  const C = new MutationObserver(oe);
4641
4659
  !((d = window == null ? void 0 : window.ShadyDOM) === null || d === void 0) && d.inUse && m.mode && m.host && (m = m.host), (k = C.observe) === null || k === void 0 || k.call(C, m, { childList: !0 }), b.set(m, C);
4642
4660
  };
4643
- te() && new MutationObserver(J);
4661
+ te() && new MutationObserver(Z);
4644
4662
  const Y = {
4645
4663
  childList: !0,
4646
4664
  subtree: !0
@@ -4657,7 +4675,7 @@ function zd() {
4657
4675
  return k.type = "hidden", k.name = m.getAttribute("name"), m.after(k), s.get(d).push(k), k;
4658
4676
  }, le = (m, d) => {
4659
4677
  var k;
4660
- s.set(d, []), (k = W.observe) === null || k === void 0 || k.call(W, m, O);
4678
+ s.set(d, []), (k = W.observe) === null || k === void 0 || k.call(W, m, D);
4661
4679
  }, ae = (m, d) => {
4662
4680
  if (d.length) {
4663
4681
  Array.from(d).forEach((C) => C.addEventListener("click", m.click.bind(m)));
@@ -4724,7 +4742,7 @@ function zd() {
4724
4742
  this.badInput = !1, this.customError = !1, this.patternMismatch = !1, this.rangeOverflow = !1, this.rangeUnderflow = !1, this.stepMismatch = !1, this.tooLong = !1, this.tooShort = !1, this.typeMismatch = !1, this.valid = !0, this.valueMissing = !1, Object.seal(this);
4725
4743
  }
4726
4744
  }
4727
- const Ie = (m) => (m.badInput = !1, m.customError = !1, m.patternMismatch = !1, m.rangeOverflow = !1, m.rangeUnderflow = !1, m.stepMismatch = !1, m.tooLong = !1, m.tooShort = !1, m.typeMismatch = !1, m.valid = !0, m.valueMissing = !1, m), xe = (m, d, k) => (m.valid = De(d), Object.keys(d).forEach((C) => m[C] = d[C]), k && me(k), m), De = (m) => {
4745
+ const Ie = (m) => (m.badInput = !1, m.customError = !1, m.patternMismatch = !1, m.rangeOverflow = !1, m.rangeUnderflow = !1, m.stepMismatch = !1, m.tooLong = !1, m.tooShort = !1, m.typeMismatch = !1, m.valid = !0, m.valueMissing = !1, m), xe = (m, d, k) => (m.valid = Oe(d), Object.keys(d).forEach((C) => m[C] = d[C]), k && me(k), m), Oe = (m) => {
4728
4746
  let d = !0;
4729
4747
  for (let k in m)
4730
4748
  k !== "valid" && m[k] !== !1 && (d = !1);
@@ -4942,7 +4960,7 @@ function zd() {
4942
4960
  return k.states = new Le(this), k;
4943
4961
  }));
4944
4962
  }
4945
- function Ze(m = !0) {
4963
+ function Je(m = !0) {
4946
4964
  if (!ve) {
4947
4965
  if (ve = !0, typeof window < "u" && (window.ElementInternals = V), typeof CustomElementRegistry < "u") {
4948
4966
  const d = CustomElementRegistry.prototype.define;
@@ -4968,7 +4986,7 @@ function zd() {
4968
4986
  let d = function(...C) {
4969
4987
  const j = k.apply(this, C);
4970
4988
  if (g.set(this, j), te()) {
4971
- const q = new MutationObserver(J);
4989
+ const q = new MutationObserver(Z);
4972
4990
  window.ShadyDOM ? q.observe(this, Y) : q.observe(j, Y), o.set(this, q);
4973
4991
  }
4974
4992
  return j;
@@ -4976,10 +4994,10 @@ function zd() {
4976
4994
  const k = Element.prototype.attachShadow;
4977
4995
  Element.prototype.attachShadow = d;
4978
4996
  }
4979
- te() && typeof document < "u" && new MutationObserver(J).observe(document.documentElement, Y), typeof HTMLFormElement < "u" && U(), (m || typeof window < "u" && !window.CustomStateSet) && et();
4997
+ te() && typeof document < "u" && new MutationObserver(Z).observe(document.documentElement, Y), typeof HTMLFormElement < "u" && U(), (m || typeof window < "u" && !window.CustomStateSet) && et();
4980
4998
  }
4981
4999
  }
4982
- return customElements.polyfillWrapFlushCallback || (ne() ? typeof window < "u" && !window.CustomStateSet && et(HTMLElement.prototype.attachInternals) : Ze(!1)), n.forceCustomStateSetPolyfill = et, n.forceElementInternalsPolyfill = Ze, Object.defineProperty(n, "__esModule", { value: !0 }), n;
5000
+ return customElements.polyfillWrapFlushCallback || (ne() ? typeof window < "u" && !window.CustomStateSet && et(HTMLElement.prototype.attachInternals) : Je(!1)), n.forceCustomStateSetPolyfill = et, n.forceElementInternalsPolyfill = Je, Object.defineProperty(n, "__esModule", { value: !0 }), n;
4983
5001
  })({});
4984
5002
  })()), Wd;
4985
5003
  }
@@ -4992,7 +5010,7 @@ var Yd = Object.defineProperty, fe = (n, e, t, s) => {
4992
5010
  const Ha = "on", br = "--checked", Ci = ",";
4993
5011
  let re = class extends Fe {
4994
5012
  constructor() {
4995
- 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 = Dn(), 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 = Dt.forms.labels.optional, this.requiredText = Dt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
5013
+ 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 = On(), 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 = Ot.forms.labels.optional, this.requiredText = Ot.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4996
5014
  }
4997
5015
  static get formAssociated() {
4998
5016
  return !0;
@@ -5010,17 +5028,17 @@ let re = class extends Fe {
5010
5028
  console.warn("manageValidity called without valid input element");
5011
5029
  return;
5012
5030
  }
5013
- this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, Dt.forms.messages.required, e) : (t = e.validity) != null && t.typeMismatch || (s = e.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, Dt.forms.messages.invalid, e) : (i = e.validity) != null && i.patternMismatch ? this.internals.setValidity(
5031
+ this.required && !this.value ? this.internals.setValidity({ valueMissing: !0 }, Ot.forms.messages.required, e) : (t = e.validity) != null && t.typeMismatch || (s = e.validity) != null && s.badInput ? this.internals.setValidity({ typeMismatch: !0 }, Ot.forms.messages.invalid, e) : (i = e.validity) != null && i.patternMismatch ? this.internals.setValidity(
5014
5032
  { patternMismatch: !0 },
5015
- Dt.forms.messages.invalidPattern,
5033
+ Ot.forms.messages.invalidPattern,
5016
5034
  e
5017
- ) : (r = e.validity) != null && r.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, Dt.forms.messages.tooShort, e) : (a = e.validity) != null && a.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, Dt.forms.messages.tooLong, e) : (o = e.validity) != null && o.rangeUnderflow ? this.internals.setValidity(
5035
+ ) : (r = e.validity) != null && r.tooShort || this.minlength && this.minlength > 0 && this.value.length < this.minlength ? this.internals.setValidity({ tooShort: !0 }, Ot.forms.messages.tooShort, e) : (a = e.validity) != null && a.tooLong || this.maxlength && this.maxlength > 0 && this.value.length > this.maxlength ? this.internals.setValidity({ tooLong: !0 }, Ot.forms.messages.tooLong, e) : (o = e.validity) != null && o.rangeUnderflow ? this.internals.setValidity(
5018
5036
  { rangeUnderflow: !0 },
5019
- this.min ? Dt.forms.messages.rangeUnderflowMin.replace("{min}", (l = this.min) == null ? void 0 : l.toString()) : Dt.forms.messages.rangeUnderflow,
5037
+ this.min ? Ot.forms.messages.rangeUnderflowMin.replace("{min}", (l = this.min) == null ? void 0 : l.toString()) : Ot.forms.messages.rangeUnderflow,
5020
5038
  e
5021
- ) : (h = e.validity) != null && h.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, Dt.forms.messages.invalid, e) : (f = e.validity) != null && f.rangeOverflow ? this.internals.setValidity(
5039
+ ) : (h = e.validity) != null && h.stepMismatch ? this.internals.setValidity({ stepMismatch: !0 }, Ot.forms.messages.invalid, e) : (f = e.validity) != null && f.rangeOverflow ? this.internals.setValidity(
5022
5040
  { rangeOverflow: !0 },
5023
- this.max ? Dt.forms.messages.rangeOverflowMax.replace("{max}", (g = this.max) == null ? void 0 : g.toString()) : Dt.forms.messages.rangeOverflow,
5041
+ this.max ? Ot.forms.messages.rangeOverflowMax.replace("{max}", (g = this.max) == null ? void 0 : g.toString()) : Ot.forms.messages.rangeOverflow,
5024
5042
  e
5025
5043
  ) : (p = e.validity) != null && p.customError ? this.internals.setValidity({ customError: !0 }, e.validationMessage, e) : this.internals.setValidity({});
5026
5044
  }
@@ -5380,7 +5398,7 @@ var Kd = Object.defineProperty, Gd = Object.getOwnPropertyDescriptor, ts = (n, e
5380
5398
  };
5381
5399
  let bn = class extends Fe {
5382
5400
  constructor() {
5383
- super(), this.defaultSlot = Z(), this.forId = Dn(), 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);
5401
+ super(), this.defaultSlot = J(), this.forId = On(), 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);
5384
5402
  }
5385
5403
  updateSlots(e) {
5386
5404
  this.filledSlots = new Set(e);
@@ -5456,7 +5474,7 @@ var Qd = Object.defineProperty, Xd = Object.getOwnPropertyDescriptor, Ge = (n, e
5456
5474
  };
5457
5475
  let Ye = class extends Fe {
5458
5476
  constructor() {
5459
- super(), this.defaultSlot = Z(), this.helptextSlot = Z(), this.forId = Dn(), 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);
5477
+ super(), this.defaultSlot = J(), this.helptextSlot = J(), this.forId = On(), 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);
5460
5478
  }
5461
5479
  updated(e) {
5462
5480
  super.updated(e);
@@ -5617,7 +5635,7 @@ Ge([
5617
5635
  Ye = Ge([
5618
5636
  ye("pkt-input-wrapper")
5619
5637
  ], Ye);
5620
- const Zd = (n, e, t) => {
5638
+ const Jd = (n, e, t) => {
5621
5639
  switch (n) {
5622
5640
  case ",":
5623
5641
  return t ? "addValue" : null;
@@ -5631,7 +5649,7 @@ const Zd = (n, e, t) => {
5631
5649
  default:
5632
5650
  return null;
5633
5651
  }
5634
- }, Jd = (n, e, t, s, i) => {
5652
+ }, Zd = (n, e, t, s, i) => {
5635
5653
  if (!n) return { action: "none", value: null };
5636
5654
  const r = rn(t, n);
5637
5655
  return !e.includes(n) && !r ? s ? { action: "addUserValue", value: n } : i ? { action: "none", value: null } : { action: "removeValue", value: e[0] } : r && !e.includes(r.value) ? { action: "selectOption", value: r.value } : { action: "none", value: null };
@@ -5721,7 +5739,7 @@ var sh = Object.defineProperty, ct = (n, e, t, s) => {
5721
5739
  };
5722
5740
  let at = class extends re {
5723
5741
  constructor() {
5724
- super(), this.helptextSlot = Z(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = nh.props.displayValueAs.default, this.tagPlacement = null, this.isOpen = !1, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._internalValueSync = !1, this._optionsFromSlot = !1, this._lastSlotGeneration = 0, this._suppressNextOpen = !1, this.inputRef = Z(), this.triggerRef = Z(), this.listboxRef = Z(), this.optionsController = new Yo(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5742
+ super(), this.helptextSlot = J(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = nh.props.displayValueAs.default, this.tagPlacement = null, this.isOpen = !1, this._options = [], this._value = [], this._isOptionsOpen = !1, this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._internalValueSync = !1, this._optionsFromSlot = !1, this._lastSlotGeneration = 0, this._suppressNextOpen = !1, this.inputRef = J(), this.triggerRef = J(), this.listboxRef = J(), this.optionsController = new Yo(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5725
5743
  }
5726
5744
  get _hasTextInput() {
5727
5745
  return this.typeahead || this.allowUserInput;
@@ -5845,7 +5863,7 @@ class ih extends at {
5845
5863
  var t, s;
5846
5864
  if (this.disabled) return;
5847
5865
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5848
- const i = ((t = rn(this.options, e)) == null ? void 0 : t.value) || null, r = this._value.includes(e || i || ""), a = !!i, o = ((s = this._options.find((D) => D.value === e)) == null ? void 0 : s.disabled) || !1, l = !(e != null && e.trim()), h = !this.multiple, f = this.multiple, g = Ai(this._value.length, this.maxlength);
5866
+ const i = ((t = rn(this.options, e)) == null ? void 0 : t.value) || null, r = this._value.includes(e || i || ""), a = !!i, o = ((s = this._options.find((O) => O.value === e)) == null ? void 0 : s.disabled) || !1, l = !(e != null && e.trim()), h = !this.multiple, f = this.multiple, g = Ai(this._value.length, this.maxlength);
5849
5867
  let p = !1, b = !0, v = "", $ = "";
5850
5868
  o || (!a && this.allowUserInput && !l ? (this.addNewUserValue(e), v = "Ny verdi lagt til", p = f) : !a && !this.allowUserInput ? (h && this._value[0] && this.removeValue(this._value[0]), b = !1, p = !0, v = "Ingen treff i søket") : r ? (this.removeValue(i), p = !0, h && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : l && h ? (this.removeAllSelected(), p = !0) : h ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(i), p = !1) : f && !g ? (this.setSelected(i), p = !0) : f && g ? (v = "Maks antall valg nådd", b = !1, $ = e) : (h && this.removeAllSelected(), v = "Ingen gyldig verdi valgt", b = !1, p = !0, $ = e), this._isOptionsOpen = p, p || (h && this._hasTextInput && (this._suppressNextOpen = !0), window.setTimeout(() => {
5851
5869
  this.focusTrigger();
@@ -5956,7 +5974,7 @@ class rh extends ih {
5956
5974
  const e = this.inputRef.value.value;
5957
5975
  if (this.multiple) {
5958
5976
  if (e !== "") {
5959
- const { action: t, value: s } = Jd(
5977
+ const { action: t, value: s } = Zd(
5960
5978
  e,
5961
5979
  this._value,
5962
5980
  this.options,
@@ -6049,7 +6067,7 @@ class rh extends ih {
6049
6067
  return;
6050
6068
  }
6051
6069
  }
6052
- const r = Zd(e.key, e.shiftKey, this.multiple);
6070
+ const r = Jd(e.key, e.shiftKey, this.multiple);
6053
6071
  if (r && !(e.key === "Tab" && !this._isOptionsOpen)) {
6054
6072
  if (r === "focusListbox" && e.key === "Tab" && !((s = this.listboxRef.value) != null && s.querySelector(
6055
6073
  '[role="option"]:not([data-disabled]), [data-type="new-option"]'
@@ -6593,7 +6611,7 @@ var dh = Object.defineProperty, hh = Object.getOwnPropertyDescriptor, St = (n, e
6593
6611
  };
6594
6612
  let yt = class extends re {
6595
6613
  constructor() {
6596
- super(...arguments), this.inputRef = Z(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.isSwitch = !1, this.labelPosition = "right", this.hideLabel = !1, this.checked = null, this.indeterminate = !1, this.type = "checkbox", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut";
6614
+ super(...arguments), this.inputRef = J(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.isSwitch = !1, this.labelPosition = "right", this.hideLabel = !1, this.checked = null, this.indeterminate = !1, this.type = "checkbox", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut";
6597
6615
  }
6598
6616
  connectedCallback() {
6599
6617
  super.connectedCallback();
@@ -6737,7 +6755,7 @@ var fh = Object.defineProperty, mh = Object.getOwnPropertyDescriptor, mi = (n, e
6737
6755
  };
6738
6756
  let _s = class extends Fe {
6739
6757
  constructor() {
6740
- super(...arguments), this.dates = [], this.dateformat = "dd.MM.yyyy", this.className = "pkt-datepicker__tags", this.idBase = Dn();
6758
+ super(...arguments), this.dates = [], this.dateformat = "dd.MM.yyyy", this.className = "pkt-datepicker__tags", this.idBase = On();
6741
6759
  }
6742
6760
  render() {
6743
6761
  return this.classes = {
@@ -6876,14 +6894,14 @@ const gh = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
6876
6894
  handleInputKeydown: Ch,
6877
6895
  handleButtonKeydown: Th
6878
6896
  };
6879
- var Dh = Object.defineProperty, Oh = Object.getOwnPropertyDescriptor, Ct = (n, e, t, s) => {
6880
- for (var i = s > 1 ? void 0 : s ? Oh(e, t) : e, r = n.length - 1, a; r >= 0; r--)
6897
+ var Oh = Object.defineProperty, Dh = Object.getOwnPropertyDescriptor, Ct = (n, e, t, s) => {
6898
+ for (var i = s > 1 ? void 0 : s ? Dh(e, t) : e, r = n.length - 1, a; r >= 0; r--)
6881
6899
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
6882
- return s && i && Dh(e, t, i), i;
6900
+ return s && i && Oh(e, t, i), i;
6883
6901
  };
6884
6902
  let wt = class extends Fe {
6885
6903
  constructor() {
6886
- 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.today = null, this._hasBeenOpened = !1, this.popupRef = Z(), this.calendarRef = Z(), this.handleDocumentClick = (e) => {
6904
+ 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.today = null, this._hasBeenOpened = !1, this.popupRef = J(), this.calendarRef = J(), this.handleDocumentClick = (e) => {
6887
6905
  if (!this.open) return;
6888
6906
  const t = e.composedPath(), s = this.parentElement, i = this.popupRef.value;
6889
6907
  !t.includes(this) && !t.includes(i) && !(s && t.includes(s)) && (this.hide(), this.dispatchEvent(new CustomEvent("close", { bubbles: !0, composed: !0 })));
@@ -7023,7 +7041,7 @@ var Mh = Object.defineProperty, _n = (n, e, t, s) => {
7023
7041
  };
7024
7042
  let Wt = class extends Fe {
7025
7043
  constructor() {
7026
- super(...arguments), this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.inputRef = Z(), this.btnRef = Z();
7044
+ super(...arguments), this.inputType = "date", this.id = "", this.readonly = !1, this.disabled = !1, this.inputClasses = {}, this.inputRef = J(), this.btnRef = J();
7027
7045
  }
7028
7046
  // Shared getters
7029
7047
  get inputElement() {
@@ -7224,7 +7242,7 @@ var Ph = Object.defineProperty, Ih = Object.getOwnPropertyDescriptor, gi = (n, e
7224
7242
  };
7225
7243
  let $s = class extends Wt {
7226
7244
  constructor() {
7227
- super(...arguments), this.value = [], this.label = "", this.showRangeLabels = !1, this.strings = ph, this.inputRefTo = Z();
7245
+ super(...arguments), this.value = [], this.label = "", this.showRangeLabels = !1, this.strings = ph, this.inputRefTo = J();
7228
7246
  }
7229
7247
  get inputElementTo() {
7230
7248
  return this.inputRefTo.value;
@@ -7464,7 +7482,7 @@ let lt = class extends re {
7464
7482
  * Housekeeping / lifecycle methods
7465
7483
  */
7466
7484
  constructor() {
7467
- super(), this._valueProperty = "", this._valueProcessing = !1, this.datepickerPopupRef = Z(), this._value = [], this.label = "Datovelger", this.dateformat = js.props.dateformat.default, this.multiple = js.props.multiple.default, this.maxlength = null, this.range = js.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = js.props.weeknumbers.default, this.withcontrols = js.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.today = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = Z(), this.popupRef = Z(), this.helptextSlot = Z(), this.singleInputRef = Z(), this.rangeInputRef = Z(), this.multipleInputRef = Z(), this.addToSelected = (e) => {
7485
+ super(), this._valueProperty = "", this._valueProcessing = !1, this.datepickerPopupRef = J(), this._value = [], this.label = "Datovelger", this.dateformat = js.props.dateformat.default, this.multiple = js.props.multiple.default, this.maxlength = null, this.range = js.props.range.default, this.showRangeLabels = !1, this.min = null, this.max = null, this.weeknumbers = js.props.weeknumbers.default, this.withcontrols = js.props.withcontrols.default, this.excludedates = [], this.excludeweekdays = [], this.currentmonth = null, this.today = null, this.calendarOpen = !1, this.timezone = "Europe/Oslo", this.inputClasses = {}, this.calRef = J(), this.popupRef = J(), this.helptextSlot = J(), this.singleInputRef = J(), this.rangeInputRef = J(), this.multipleInputRef = J(), this.addToSelected = (e) => {
7468
7486
  const t = this.datepickerPopupRef.value;
7469
7487
  return t && typeof t.addToSelected == "function" ? t.addToSelected(e, this.min, this.max) : qi.addToSelected(e, this.calRef, this.min, this.max);
7470
7488
  }, this.slotController = new rt(this, this.helptextSlot);
@@ -7872,7 +7890,7 @@ var Uh = Object.defineProperty, jh = Object.getOwnPropertyDescriptor, Ts = (n, e
7872
7890
  };
7873
7891
  let Qn = class extends Fe {
7874
7892
  constructor() {
7875
- super(), this.defaultSlot = Z(), this.href = Ya.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Ya.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7893
+ super(), this.defaultSlot = J(), this.href = Ya.props.href.default, this.iconName = void 0, this.iconPosition = void 0, this.external = !1, this.target = Ya.props.target.default, this.slotController = new rt(this, this.defaultSlot);
7876
7894
  }
7877
7895
  render() {
7878
7896
  const e = {
@@ -7915,7 +7933,7 @@ var Hh = Object.defineProperty, qh = Object.getOwnPropertyDescriptor, hn = (n, e
7915
7933
  };
7916
7934
  let Xt = class extends re {
7917
7935
  constructor() {
7918
- super(), this.inputRef = Z(), this.helptextSlot = Z(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
7936
+ super(), this.inputRef = J(), this.helptextSlot = J(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
7919
7937
  }
7920
7938
  attributeChangedCallback(e, t, s) {
7921
7939
  e === "value" && this.value !== t && (this.counterCurrent = s ? s.length : 0, this.valueChanged(s, t)), super.attributeChangedCallback(e, t, s);
@@ -8231,10 +8249,10 @@ var Qh = Object.defineProperty, Xh = Object.getOwnPropertyDescriptor, Ne = (n, e
8231
8249
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
8232
8250
  return s && i && Qh(e, t, i), i;
8233
8251
  };
8234
- const Zh = "https://punkt-cdn.oslo.kommune.no/16.0/logos/";
8252
+ const Jh = "https://punkt-cdn.oslo.kommune.no/16.0/logos/";
8235
8253
  let Se = class extends Fe {
8236
8254
  constructor() {
8237
- super(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.isMobile = !1, this.isTablet = !1, this.openMenu = "none", this.isHidden = !1, this.componentWidth = typeof window < "u" ? window.innerWidth : 0, this.hasSlotContent = !1, this.alignSlotRight = !1, this.alignSearchRight = !1, this.defaultSlot = Z(), this.headerRef = Z(), this.userContainerRef = Z(), this.slotContainerRef = Z(), this.searchContainerRef = Z(), this.slotContentRef = Z(), this.searchMenuRef = Z(), this.lastScrollPosition = 0, this.savedScrollY = 0, this.lastFocusedElement = null, this.shouldRestoreFocus = !1, this.handleScroll = () => {
8255
+ super(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.isMobile = !1, this.isTablet = !1, this.openMenu = "none", this.isHidden = !1, this.componentWidth = typeof window < "u" ? window.innerWidth : 0, this.hasSlotContent = !1, this.alignSlotRight = !1, this.alignSearchRight = !1, this.defaultSlot = J(), this.headerRef = J(), this.userContainerRef = J(), this.slotContainerRef = J(), this.searchContainerRef = J(), this.slotContentRef = J(), this.searchMenuRef = J(), this.lastScrollPosition = 0, this.savedScrollY = 0, this.lastFocusedElement = null, this.shouldRestoreFocus = !1, this.handleScroll = () => {
8238
8256
  if (!this.shouldHideOnScroll) return;
8239
8257
  const e = window.pageYOffset || document.documentElement.scrollTop;
8240
8258
  e < 0 || Math.abs(e - this.lastScrollPosition) < 60 || (this.isHidden = e > this.lastScrollPosition, this.lastScrollPosition = e);
@@ -8396,7 +8414,7 @@ let Se = class extends Fe {
8396
8414
  renderLogo() {
8397
8415
  if (this.hideLogo) return x;
8398
8416
  const e = y`
8399
- <pkt-icon name="oslologo" aria-hidden="true" path=${Zh}></pkt-icon>
8417
+ <pkt-icon name="oslologo" aria-hidden="true" path=${Jh}></pkt-icon>
8400
8418
  `;
8401
8419
  return this.logoLink && typeof this.logoLink == "string" ? y`
8402
8420
  <span class="pkt-header-service__logo">
@@ -8761,14 +8779,14 @@ Ne([
8761
8779
  Se = Ne([
8762
8780
  ye("pkt-header-service")
8763
8781
  ], Se);
8764
- var Jh = Object.defineProperty, ep = Object.getOwnPropertyDescriptor, Qe = (n, e, t, s) => {
8782
+ var Zh = Object.defineProperty, ep = Object.getOwnPropertyDescriptor, Qe = (n, e, t, s) => {
8765
8783
  for (var i = s > 1 ? void 0 : s ? ep(e, t) : e, r = n.length - 1, a; r >= 0; r--)
8766
8784
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
8767
- return s && i && Jh(e, t, i), i;
8785
+ return s && i && Zh(e, t, i), i;
8768
8786
  };
8769
8787
  let Ke = class extends Fe {
8770
8788
  constructor() {
8771
- super(), this.defaultSlot = Z(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.slotController = new rt(this, this.defaultSlot);
8789
+ super(), this.defaultSlot = J(), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.slotController = new rt(this, this.defaultSlot);
8772
8790
  }
8773
8791
  firstUpdated(e) {
8774
8792
  super.firstUpdated(e), this.emitDeprecationWarnings();
@@ -8896,7 +8914,7 @@ var tp = Object.defineProperty, np = Object.getOwnPropertyDescriptor, ss = (n, e
8896
8914
  };
8897
8915
  let Pn = class extends Fe {
8898
8916
  constructor() {
8899
- super(), this.defaultSlot = Z(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
8917
+ super(), this.defaultSlot = J(), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal", this.slotController = new rt(this, this.defaultSlot);
8900
8918
  }
8901
8919
  render() {
8902
8920
  const e = ["pkt-linkcard", this.skin && `pkt-linkcard--${this.skin}`].filter(Boolean).join(" "), t = ["pkt-linkcard__title", this.external && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
@@ -8942,9 +8960,9 @@ var sp = Object.defineProperty, ip = Object.getOwnPropertyDescriptor, $n = (n, e
8942
8960
  return s && i && sp(e, t, i), i;
8943
8961
  };
8944
8962
  window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.0/animations/";
8945
- let Zt = class extends Fe {
8963
+ let Jt = class extends Fe {
8946
8964
  constructor() {
8947
- super(), this.defaultSlot = Z(), 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);
8965
+ super(), this.defaultSlot = J(), 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);
8948
8966
  }
8949
8967
  connectedCallback() {
8950
8968
  super.connectedCallback(), this._shouldDisplayLoader = this.delay === 0, this.delay > 0 && this.setupLoader();
@@ -8996,31 +9014,31 @@ let Zt = class extends Fe {
8996
9014
  };
8997
9015
  $n([
8998
9016
  c({ type: Number })
8999
- ], Zt.prototype, "delay", 2);
9017
+ ], Jt.prototype, "delay", 2);
9000
9018
  $n([
9001
9019
  c({ type: Boolean })
9002
- ], Zt.prototype, "inline", 2);
9020
+ ], Jt.prototype, "inline", 2);
9003
9021
  $n([
9004
9022
  c({ type: Boolean })
9005
- ], Zt.prototype, "isLoading", 2);
9023
+ ], Jt.prototype, "isLoading", 2);
9006
9024
  $n([
9007
9025
  c({ type: String })
9008
- ], Zt.prototype, "message", 2);
9026
+ ], Jt.prototype, "message", 2);
9009
9027
  $n([
9010
9028
  c({ type: String })
9011
- ], Zt.prototype, "size", 2);
9029
+ ], Jt.prototype, "size", 2);
9012
9030
  $n([
9013
9031
  c({ type: String })
9014
- ], Zt.prototype, "variant", 2);
9032
+ ], Jt.prototype, "variant", 2);
9015
9033
  $n([
9016
9034
  c({ type: String })
9017
- ], Zt.prototype, "loadingAnimationPath", 2);
9035
+ ], Jt.prototype, "loadingAnimationPath", 2);
9018
9036
  $n([
9019
9037
  he()
9020
- ], Zt.prototype, "_shouldDisplayLoader", 2);
9021
- Zt = $n([
9038
+ ], Jt.prototype, "_shouldDisplayLoader", 2);
9039
+ Jt = $n([
9022
9040
  ye("pkt-loader")
9023
- ], Zt);
9041
+ ], Jt);
9024
9042
  const rp = { skin: { default: "beige" }, compact: { default: !1 }, closable: { default: !1 } }, $r = {
9025
9043
  props: rp
9026
9044
  };
@@ -9031,7 +9049,7 @@ var ap = Object.defineProperty, op = Object.getOwnPropertyDescriptor, Ns = (n, e
9031
9049
  };
9032
9050
  let Xn = class extends Fe {
9033
9051
  constructor() {
9034
- super(), this.defaultSlot = Z(), this.closable = $r.props.closable.default, this.compact = $r.props.compact.default, this.title = "", this.skin = $r.props.skin.default, this._isClosed = !1, this.close = (n) => {
9052
+ super(), this.defaultSlot = J(), this.closable = $r.props.closable.default, this.compact = $r.props.compact.default, this.title = "", this.skin = $r.props.skin.default, this._isClosed = !1, this.close = (n) => {
9035
9053
  this._isClosed = !0, this.dispatchEvent(new CustomEvent("close", { detail: { origin: n }, bubbles: !0 })), this.dispatchEvent(new CustomEvent("on-close", { detail: { origin: n }, bubbles: !0 }));
9036
9054
  }, this.slotController = new rt(this, this.defaultSlot), this._isClosed = !1;
9037
9055
  }
@@ -9091,7 +9109,7 @@ var cp = Object.defineProperty, up = Object.getOwnPropertyDescriptor, en = (n, e
9091
9109
  };
9092
9110
  let Rt = class extends Fe {
9093
9111
  constructor() {
9094
- super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = wr.props.hideCloseButton.default, this.closeOnBackdropClick = wr.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = wr.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = Z(), this.dialogRef = Z(), this._isOpen = !1, this.close = (n, e = !1) => {
9112
+ super(), this.headingText = "", this.removePadding = !1, this.hideCloseButton = wr.props.hideCloseButton.default, this.closeOnBackdropClick = wr.props.closeOnBackdropClick.default, this.closeButtonSkin = "blue", this.size = wr.props.size.default, this.variant = "dialog", this.drawerPosition = "right", this.transparentBackdrop = !1, this.defaultSlot = J(), this.dialogRef = J(), this._isOpen = !1, this.close = (n, e = !1) => {
9095
9113
  var t;
9096
9114
  if (!this._isOpen) return;
9097
9115
  this._isOpen = !1, document.body.classList.remove("pkt-modal--open");
@@ -9231,7 +9249,7 @@ Rt = en([
9231
9249
  * Copyright 2018 Google LLC
9232
9250
  * SPDX-License-Identifier: BSD-3-Clause
9233
9251
  */
9234
- const Go = "important", dp = " !" + Go, hp = Jn(class extends xs {
9252
+ const Go = "important", dp = " !" + Go, hp = Zn(class extends xs {
9235
9253
  constructor(n) {
9236
9254
  var e;
9237
9255
  if (super(n), n.type !== Gt.ATTRIBUTE || n.name !== "style" || ((e = n.strings) == null ? void 0 : e.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
@@ -9254,7 +9272,7 @@ const Go = "important", dp = " !" + Go, hp = Jn(class extends xs {
9254
9272
  s.includes("-") || r ? t.setProperty(s, r ? i.slice(0, -11) : i, r ? Go : "") : t[s] = i;
9255
9273
  }
9256
9274
  }
9257
- return Ot;
9275
+ return Dt;
9258
9276
  }
9259
9277
  });
9260
9278
  var pp = Object.defineProperty, fp = Object.getOwnPropertyDescriptor, ft = (n, e, t, s) => {
@@ -9264,13 +9282,13 @@ var pp = Object.defineProperty, fp = Object.getOwnPropertyDescriptor, ft = (n, e
9264
9282
  };
9265
9283
  let it = class extends Fe {
9266
9284
  constructor() {
9267
- super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = Dn(), 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 = Z(), this.progressBarRef = Z();
9285
+ super(), this.ariaLabel = null, this.ariaLabelledby = null, this.ariaValueText = null, this.ariaLive = "polite", this.id = On(), 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 = J(), this.progressBarRef = J();
9268
9286
  }
9269
9287
  firstUpdated(e) {
9270
9288
  super.firstUpdated(e), this.setComputedValues(), this.syncAttributes();
9271
9289
  }
9272
9290
  updated(e) {
9273
- super.updated(e), e.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), e.has("id") && this.id && (this.progressBarId = this.id), (e.has("statusType") || e.has("id") || e.has("ariaLabelledby")) && (this.progressbarId = this.id || Dn(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (e.has("ariaValueText") || e.has("valueCurrent") || e.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
9291
+ super.updated(e), e.has("valueCurrent") && this.labelRef.value && (this.labelWidth = this.labelRef.value.getBoundingClientRect().width || 0), e.has("id") && this.id && (this.progressBarId = this.id), (e.has("statusType") || e.has("id") || e.has("ariaLabelledby")) && (this.progressbarId = this.id || On(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`), (e.has("ariaValueText") || e.has("valueCurrent") || e.has("valueMax")) && (this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || ""), this.syncAttributes();
9274
9292
  }
9275
9293
  render() {
9276
9294
  const e = this.statusType !== "none", t = this.valueMax - this.valueMin, s = this.valueCurrent / t * 100, i = this.statusType === "fraction" ? Math.round(s) : Math.round((this.valueCurrent - this.valueMin) / (this.valueMax - this.valueMin) * 100), r = `${this.valueCurrent} av ${t}`, a = z({
@@ -9310,7 +9328,7 @@ let it = class extends Fe {
9310
9328
  }
9311
9329
  // methods
9312
9330
  setComputedValues() {
9313
- this.progressbarId = this.id || Dn(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`, this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || "";
9331
+ this.progressbarId = this.id || On(), this.computedAriaLabelledby = this.ariaLabelledby || `${this.progressbarId}-title`, this.computedAriaValueText = this.statusType === "fraction" && !this.ariaValueText ? `${this.valueCurrent} av ${this.valueMax - this.valueMin}` : this.ariaValueText || "";
9314
9332
  }
9315
9333
  syncAttributes() {
9316
9334
  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);
@@ -9383,7 +9401,7 @@ var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor, Bt = (n, e
9383
9401
  };
9384
9402
  let Mt = class extends re {
9385
9403
  constructor() {
9386
- super(...arguments), this.inputRef = Z(), 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;
9404
+ super(...arguments), this.inputRef = J(), 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;
9387
9405
  }
9388
9406
  connectedCallback() {
9389
9407
  super.connectedCallback();
@@ -9639,14 +9657,14 @@ function kp({ context: n, subscribe: e }) {
9639
9657
  };
9640
9658
  }
9641
9659
  const Xo = Symbol("pkt-tabs-context");
9642
- var _p = Object.defineProperty, $p = Object.getOwnPropertyDescriptor, Ds = (n, e, t, s) => {
9660
+ var _p = Object.defineProperty, $p = Object.getOwnPropertyDescriptor, Os = (n, e, t, s) => {
9643
9661
  for (var i = s > 1 ? void 0 : s ? $p(e, t) : e, r = n.length - 1, a; r >= 0; r--)
9644
9662
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
9645
9663
  return s && i && _p(e, t, i), i;
9646
9664
  };
9647
- let Zn = class extends Fe {
9665
+ let Jn = class extends Fe {
9648
9666
  constructor() {
9649
- super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = Z(), this.context = {
9667
+ super(), this.arrowNav = !0, this.disableArrowNav = !1, this.tabRefs = [], this.tabCount = 0, this.defaultSlot = J(), this.context = {
9650
9668
  useArrowNav: this.useArrowNav,
9651
9669
  registerTab: this.registerTab.bind(this),
9652
9670
  handleClick: this.handleClick.bind(this),
@@ -9694,25 +9712,25 @@ let Zn = class extends Fe {
9694
9712
  `;
9695
9713
  }
9696
9714
  };
9697
- Ds([
9715
+ Os([
9698
9716
  c({ type: Boolean, reflect: !0, attribute: "arrow-nav" })
9699
- ], Zn.prototype, "arrowNav", 2);
9700
- Ds([
9717
+ ], Jn.prototype, "arrowNav", 2);
9718
+ Os([
9701
9719
  c({ type: Boolean, reflect: !0, attribute: "disable-arrow-nav" })
9702
- ], Zn.prototype, "disableArrowNav", 2);
9703
- Ds([
9720
+ ], Jn.prototype, "disableArrowNav", 2);
9721
+ Os([
9704
9722
  he()
9705
- ], Zn.prototype, "tabRefs", 2);
9706
- Ds([
9723
+ ], Jn.prototype, "tabRefs", 2);
9724
+ Os([
9707
9725
  he()
9708
- ], Zn.prototype, "tabCount", 2);
9709
- Ds([
9726
+ ], Jn.prototype, "tabCount", 2);
9727
+ Os([
9710
9728
  yp({ context: Xo }),
9711
9729
  he()
9712
- ], Zn.prototype, "context", 2);
9713
- Zn = Ds([
9730
+ ], Jn.prototype, "context", 2);
9731
+ Jn = Os([
9714
9732
  ye("pkt-tabs")
9715
- ], Zn);
9733
+ ], Jn);
9716
9734
  var wp = Object.defineProperty, xp = Object.getOwnPropertyDescriptor, wn = (n, e, t, s) => {
9717
9735
  for (var i = s > 1 ? void 0 : s ? xp(e, t) : e, r = n.length - 1, a; r >= 0; r--)
9718
9736
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
@@ -9720,7 +9738,7 @@ var wp = Object.defineProperty, xp = Object.getOwnPropertyDescriptor, wn = (n, e
9720
9738
  };
9721
9739
  let ln = class extends Fe {
9722
9740
  constructor() {
9723
- super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = Z(), this.defaultSlot = Z(), this.slotController = new rt(this, this.defaultSlot);
9741
+ super(), this.active = !1, this.href = "", this.icon = "", this.controls = "", this.tag = "", this.tagSkin = "blue", this.index = 0, this.elementRef = J(), this.defaultSlot = J(), this.slotController = new rt(this, this.defaultSlot);
9724
9742
  }
9725
9743
  connectedCallback() {
9726
9744
  super.connectedCallback(), this.updateComplete.then(() => {
@@ -9804,23 +9822,23 @@ ln = wn([
9804
9822
  * Copyright 2020 Google LLC
9805
9823
  * SPDX-License-Identifier: BSD-3-Clause
9806
9824
  */
9807
- const Sp = Jn(class extends xs {
9825
+ const Sp = Zn(class extends xs {
9808
9826
  constructor(n) {
9809
9827
  if (super(n), n.type !== Gt.PROPERTY && n.type !== Gt.ATTRIBUTE && n.type !== Gt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
9810
- if (!Do(n)) throw Error("`live` bindings can only contain a single expression");
9828
+ if (!Oo(n)) throw Error("`live` bindings can only contain a single expression");
9811
9829
  }
9812
9830
  render(n) {
9813
9831
  return n;
9814
9832
  }
9815
9833
  update(n, [e]) {
9816
- if (e === Ot || e === x) return e;
9834
+ if (e === Dt || e === x) return e;
9817
9835
  const t = n.element, s = n.name;
9818
9836
  if (n.type === Gt.PROPERTY) {
9819
- if (e === t[s]) return Ot;
9837
+ if (e === t[s]) return Dt;
9820
9838
  } else if (n.type === Gt.BOOLEAN_ATTRIBUTE) {
9821
- if (!!e === t.hasAttribute(s)) return Ot;
9822
- } else if (n.type === Gt.ATTRIBUTE && t.getAttribute(s) === e + "") return Ot;
9823
- return Oo(n), e;
9839
+ if (!!e === t.hasAttribute(s)) return Dt;
9840
+ } else if (n.type === Gt.ATTRIBUTE && t.getAttribute(s) === e + "") return Dt;
9841
+ return Do(n), e;
9824
9842
  }
9825
9843
  });
9826
9844
  var Cp = Object.defineProperty, Tp = Object.getOwnPropertyDescriptor, vi = (n, e, t, s) => {
@@ -9830,7 +9848,7 @@ var Cp = Object.defineProperty, Tp = Object.getOwnPropertyDescriptor, vi = (n, e
9830
9848
  };
9831
9849
  let ws = class extends re {
9832
9850
  constructor() {
9833
- super(), this.inputRef = Z(), this.helptextSlot = Z(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
9851
+ super(), this.inputRef = J(), this.helptextSlot = J(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
9834
9852
  }
9835
9853
  attributeChangedCallback(n, e, t) {
9836
9854
  n === "value" && this.value !== e && (this.counterCurrent = t ? t.length : 0, this.valueChanged(t, e)), super.attributeChangedCallback(n, e, t);
@@ -9916,7 +9934,7 @@ vi([
9916
9934
  ws = vi([
9917
9935
  ye("pkt-textarea")
9918
9936
  ], ws);
9919
- var Np = Object.defineProperty, Zo = (n, e, t, s) => {
9937
+ var Np = Object.defineProperty, Jo = (n, e, t, s) => {
9920
9938
  for (var i = void 0, r = n.length - 1, a; r >= 0; r--)
9921
9939
  (a = n[r]) && (i = a(e, t, i) || i);
9922
9940
  return i && Np(e, t, i), i;
@@ -9992,20 +10010,20 @@ class Yr extends re {
9992
10010
  super.willUpdate(e), this.parseOptions();
9993
10011
  }
9994
10012
  }
9995
- Zo([
10013
+ Jo([
9996
10014
  c({ type: Array, attribute: "options" })
9997
10015
  ], Yr.prototype, "_optionsProp");
9998
- Zo([
10016
+ Jo([
9999
10017
  he()
10000
10018
  ], Yr.prototype, "_options");
10001
- var Dp = Object.defineProperty, Op = Object.getOwnPropertyDescriptor, Jo = (n, e, t, s) => {
10002
- for (var i = s > 1 ? void 0 : s ? Op(e, t) : e, r = n.length - 1, a; r >= 0; r--)
10019
+ var Op = Object.defineProperty, Dp = Object.getOwnPropertyDescriptor, Zo = (n, e, t, s) => {
10020
+ for (var i = s > 1 ? void 0 : s ? Dp(e, t) : e, r = n.length - 1, a; r >= 0; r--)
10003
10021
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
10004
- return s && i && Dp(e, t, i), i;
10022
+ return s && i && Op(e, t, i), i;
10005
10023
  };
10006
10024
  let Pr = class extends Yr {
10007
10025
  constructor() {
10008
- super(), this.inputRef = Z(), this.helptextSlot = Z(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new Yo(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
10026
+ super(), this.inputRef = J(), this.helptextSlot = J(), this.value = "", this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new Yo(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
10009
10027
  }
10010
10028
  connectedCallback() {
10011
10029
  super.connectedCallback(), this.parseOptions(), this._options.forEach((n) => {
@@ -10127,10 +10145,10 @@ let Pr = class extends Yr {
10127
10145
  return n == null || isNaN(n) ? null : n;
10128
10146
  }
10129
10147
  };
10130
- Jo([
10148
+ Zo([
10131
10149
  c({ type: String })
10132
10150
  ], Pr.prototype, "value", 2);
10133
- Pr = Jo([
10151
+ Pr = Zo([
10134
10152
  ye("pkt-select")
10135
10153
  ], Pr);
10136
10154
  const ee = kn({
@@ -10153,16 +10171,16 @@ const ee = kn({
10153
10171
  onClick: h,
10154
10172
  onToggle: f
10155
10173
  }, g) => {
10156
- const [p, b] = ce(n), { name: v } = Ll(), $ = o || v, D = r !== void 0 ? r : p;
10174
+ const [p, b] = ce(n), { name: v } = Ll(), $ = o || v, O = r !== void 0 ? r : p;
10157
10175
  be(() => {
10158
10176
  r === void 0 && b(n);
10159
10177
  }, [n, r]);
10160
- const S = (O) => {
10161
- const J = O.currentTarget.open;
10162
- r === void 0 && b(J), f == null || f(O);
10163
- }, T = (O) => {
10178
+ const S = (D) => {
10179
+ const Z = D.currentTarget.open;
10180
+ r === void 0 && b(Z), f == null || f(D);
10181
+ }, T = (D) => {
10164
10182
  setTimeout(() => {
10165
- h == null || h(O);
10183
+ h == null || h(D);
10166
10184
  }, 0);
10167
10185
  }, L = [
10168
10186
  "pkt-accordion-item",
@@ -10176,7 +10194,7 @@ const ee = kn({
10176
10194
  ref: g,
10177
10195
  className: L,
10178
10196
  id: e,
10179
- open: D,
10197
+ open: O,
10180
10198
  onClick: T,
10181
10199
  name: $,
10182
10200
  onToggle: S,
@@ -10344,7 +10362,7 @@ const $t = Ce(
10344
10362
  color: b,
10345
10363
  isLoading: v = void 0,
10346
10364
  disabled: $ = void 0,
10347
- loadingAnimationPath: D = window.pktAnimationPath,
10365
+ loadingAnimationPath: O = window.pktAnimationPath,
10348
10366
  ...S
10349
10367
  }, T) => {
10350
10368
  const L = [
@@ -10370,7 +10388,7 @@ const $t = Ce(
10370
10388
  type: f,
10371
10389
  ref: T,
10372
10390
  children: [
10373
- v && /* @__PURE__ */ u(ee, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: D }),
10391
+ v && /* @__PURE__ */ u(ee, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: O }),
10374
10392
  g !== "label-only" && /* @__PURE__ */ u(ee, { className: "pkt-btn__icon", name: t, ...i && { path: i } }),
10375
10393
  /* @__PURE__ */ u("span", { className: "pkt-btn__text", children: n }),
10376
10394
  g === "icons-right-and-left" && /* @__PURE__ */ u(
@@ -10394,7 +10412,7 @@ function cn(n, e) {
10394
10412
  function At(n, e) {
10395
10413
  return cn(e || n, n);
10396
10414
  }
10397
- function Za(n, e, t) {
10415
+ function Ja(n, e, t) {
10398
10416
  const s = At(n, t == null ? void 0 : t.in);
10399
10417
  return isNaN(e) ? cn(n, NaN) : (e && s.setDate(s.getDate() + e), s);
10400
10418
  }
@@ -10418,7 +10436,7 @@ function tl(n, e) {
10418
10436
  const o = Yi(a);
10419
10437
  return t.getTime() >= r.getTime() ? s + 1 : t.getTime() >= o.getTime() ? s : s - 1;
10420
10438
  }
10421
- function Ja(n) {
10439
+ function Za(n) {
10422
10440
  const e = At(n), t = new Date(
10423
10441
  Date.UTC(
10424
10442
  e.getFullYear(),
@@ -10448,7 +10466,7 @@ function Fp(n, e, t) {
10448
10466
  t == null ? void 0 : t.in,
10449
10467
  n,
10450
10468
  e
10451
- ), r = Ir(s), a = Ir(i), o = +r - Ja(r), l = +a - Ja(a);
10469
+ ), r = Ir(s), a = Ir(i), o = +r - Za(r), l = +a - Za(a);
10452
10470
  return Math.round((o - l) / Lp);
10453
10471
  }
10454
10472
  function Vp(n, e) {
@@ -10585,14 +10603,14 @@ const Kp = {
10585
10603
  formats: Qp,
10586
10604
  defaultWidth: "full"
10587
10605
  })
10588
- }, Zp = {
10606
+ }, Jp = {
10589
10607
  lastWeek: "'last' eeee 'at' p",
10590
10608
  yesterday: "'yesterday at' p",
10591
10609
  today: "'today at' p",
10592
10610
  tomorrow: "'tomorrow at' p",
10593
10611
  nextWeek: "eeee 'at' p",
10594
10612
  other: "P"
10595
- }, Jp = (n, e, t, s) => Zp[n];
10613
+ }, Zp = (n, e, t, s) => Jp[n];
10596
10614
  function Hs(n) {
10597
10615
  return (e, t) => {
10598
10616
  const s = t != null && t.context ? String(t.context) : "standalone";
@@ -10907,7 +10925,7 @@ const hf = /^(\d+)(th|st|nd|rd)?/i, pf = /\d+/i, ff = {
10907
10925
  code: "en-US",
10908
10926
  formatDistance: Yp,
10909
10927
  formatLong: Xp,
10910
- formatRelative: Jp,
10928
+ formatRelative: Zp,
10911
10929
  localize: lf,
10912
10930
  match: xf,
10913
10931
  options: {
@@ -11596,7 +11614,7 @@ const so = (n, e) => {
11596
11614
  default:
11597
11615
  return e.time({ width: "full" });
11598
11616
  }
11599
- }, Df = (n, e) => {
11617
+ }, Of = (n, e) => {
11600
11618
  const t = n.match(/(P+)(p+)?/) || [], s = t[1], i = t[2];
11601
11619
  if (!i)
11602
11620
  return so(n, e);
@@ -11617,9 +11635,9 @@ const so = (n, e) => {
11617
11635
  break;
11618
11636
  }
11619
11637
  return r.replace("{{date}}", so(s, e)).replace("{{time}}", al(i, e));
11620
- }, Of = {
11638
+ }, Df = {
11621
11639
  p: al,
11622
- P: Df
11640
+ P: Of
11623
11641
  }, Mf = /^D+$/, Ef = /^Y+$/, Af = ["D", "DD", "YY", "YYYY"];
11624
11642
  function Pf(n) {
11625
11643
  return Mf.test(n);
@@ -11644,8 +11662,8 @@ function Hf(n, e, t) {
11644
11662
  let l = e.match(Ff).map((v) => {
11645
11663
  const $ = v[0];
11646
11664
  if ($ === "p" || $ === "P") {
11647
- const D = Of[$];
11648
- return D(v, i.formatLong);
11665
+ const O = Df[$];
11666
+ return O(v, i.formatLong);
11649
11667
  }
11650
11668
  return v;
11651
11669
  }).join("").match(Bf).map((v) => {
@@ -11672,8 +11690,8 @@ function Hf(n, e, t) {
11672
11690
  if (!v.isToken) return v.value;
11673
11691
  const $ = v.value;
11674
11692
  (If($) || Pf($)) && Rf($, e, String(n));
11675
- const D = eo[$[0]];
11676
- return D(o, $, i.localize, h);
11693
+ const O = eo[$[0]];
11694
+ return O(o, $, i.localize, h);
11677
11695
  }).join("");
11678
11696
  }
11679
11697
  function qf(n) {
@@ -11769,11 +11787,11 @@ function ol(n) {
11769
11787
  h.setUTCSeconds(0);
11770
11788
  const f = i > 0 ? h.getSeconds() : (h.getSeconds() - 60) % 60, g = Math.round(-(qn(n.timeZone, n) * 60)) % 60;
11771
11789
  (g || f) && (n.internal.setUTCSeconds(n.internal.getUTCSeconds() + g), Date.prototype.setUTCSeconds.call(n, Date.prototype.getUTCSeconds.call(n) + g + f));
11772
- const p = qn(n.timeZone, n), b = p > 0 ? Math.floor(p) : Math.ceil(p), $ = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - b, D = b !== t, S = $ - l;
11773
- if (D && S) {
11790
+ const p = qn(n.timeZone, n), b = p > 0 ? Math.floor(p) : Math.ceil(p), $ = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - b, O = b !== t, S = $ - l;
11791
+ if (O && S) {
11774
11792
  Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + S);
11775
- const T = qn(n.timeZone, n), L = T > 0 ? Math.floor(T) : Math.ceil(T), O = b - L;
11776
- O && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + O), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + O));
11793
+ const T = qn(n.timeZone, n), L = T > 0 ? Math.floor(T) : Math.ceil(T), D = b - L;
11794
+ D && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + D), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + D));
11777
11795
  }
11778
11796
  }
11779
11797
  class Nn extends an {
@@ -11878,11 +11896,11 @@ const Xf = (n) => {
11878
11896
  if (!n || isNaN(n.getTime())) return "";
11879
11897
  const e = typeof window < "u" ? window.pktTz : void 0;
11880
11898
  return (!Tr || ao !== e) && (Tr = new Intl.DateTimeFormat("no", { dateStyle: "full", timeZone: e }), ao = e), Tr.format(n);
11881
- }, Zf = (n, e, t) => {
11899
+ }, Jf = (n, e, t) => {
11882
11900
  if (!n || isNaN(n.getTime())) return !1;
11883
11901
  const s = e ? gn(e) : null, i = t ? gn(t) : null;
11884
11902
  return !(s && n < s || i && n > i);
11885
- }, Jf = (n, e) => {
11903
+ }, Zf = (n, e) => {
11886
11904
  if (!n || isNaN(n.getTime()) || !Array.isArray(e)) return !1;
11887
11905
  const t = vt(n);
11888
11906
  return e.includes(t);
@@ -11890,7 +11908,7 @@ const Xf = (n) => {
11890
11908
  if (!n || isNaN(n.getTime()) || !Array.isArray(e)) return !1;
11891
11909
  const t = n.getDay().toString();
11892
11910
  return e.includes(t);
11893
- }, ll = (n, e, t, s, i) => !(!n || isNaN(n.getTime()) || !Zf(n, e, t) || s && Jf(n, s) || i && em(n, i)), tm = (n, e, t, s, i) => n.filter((r) => {
11911
+ }, ll = (n, e, t, s, i) => !(!n || isNaN(n.getTime()) || !Jf(n, e, t) || s && Zf(n, s) || i && em(n, i)), tm = (n, e, t, s, i) => n.filter((r) => {
11894
11912
  const a = ui(r);
11895
11913
  return a && ll(a, e, t, s, i);
11896
11914
  }), nm = (n) => n.slice().sort((e, t) => {
@@ -12017,11 +12035,11 @@ function pm(n) {
12017
12035
  return e === "INPUT" || e === "SELECT" || e === "BUTTON" && !((t = n.dataset) != null && t.date);
12018
12036
  }
12019
12037
  function fm(n, e, t) {
12020
- let s = Za(n, e);
12038
+ let s = Ja(n, e);
12021
12039
  if (!s) return null;
12022
12040
  let i = t(`button[data-date="${vt(s)}"]`);
12023
12041
  for (; i instanceof HTMLButtonElement && i.dataset.disabled; )
12024
- if (s = Za(s, e), i = t(`button[data-date="${vt(s)}"]`), !i) return null;
12042
+ if (s = Ja(s, e), i = t(`button[data-date="${vt(s)}"]`), !i) return null;
12025
12043
  return s;
12026
12044
  }
12027
12045
  function mm(n) {
@@ -12067,14 +12085,14 @@ function vm(n) {
12067
12085
  strings: b,
12068
12086
  onDateSelected: v,
12069
12087
  onClose: $,
12070
- id: D,
12088
+ id: O,
12071
12089
  className: S
12072
- } = n, T = go(), L = D ?? T, O = Te(() => ({ ...gm, ...b }), [b]), W = Te(
12090
+ } = n, T = go(), L = O ?? T, D = Te(() => ({ ...gm, ...b }), [b]), W = Te(
12073
12091
  () => p ? sn(p) : Gf(),
12074
12092
  [p]
12075
- ), J = Te(() => o ? o.map((m) => typeof m == "string" ? sn(m) : m) : [], [o]), oe = e !== void 0, [we, Y] = ce([]), N = oe ? e : we, H = Te(() => ul(N), [N]), [B, Q] = ce(0), [le, ae] = ce(0), [me, ue] = ce({}), [ke, se] = ce(null), [ie, We] = ce(null), K = pe(null), P = pe([]), Ee = pe(0), Ae = pe(!1), te = pe(!1), Ue = Te(
12076
- () => ({ earliest: r, latest: a, excludedates: J, excludeweekdays: l }),
12077
- [r, a, J, l]
12093
+ ), Z = Te(() => o ? o.map((m) => typeof m == "string" ? sn(m) : m) : [], [o]), oe = e !== void 0, [we, Y] = ce([]), N = oe ? e : we, H = Te(() => ul(N), [N]), [B, Q] = ce(0), [le, ae] = ce(0), [me, ue] = ce({}), [ke, se] = ce(null), [ie, We] = ce(null), K = pe(null), P = pe([]), Ee = pe(0), Ae = pe(!1), te = pe(!1), Ue = Te(
12094
+ () => ({ earliest: r, latest: a, excludedates: Z, excludeweekdays: l }),
12095
+ [r, a, Z, l]
12078
12096
  );
12079
12097
  be(() => {
12080
12098
  let m = null;
@@ -12108,15 +12126,15 @@ function vm(n) {
12108
12126
  [oe, v]
12109
12127
  ), xe = M(() => {
12110
12128
  $ == null || $();
12111
- }, [$]), De = M((m, d) => {
12129
+ }, [$]), Oe = M((m, d) => {
12112
12130
  Q(typeof m == "string" ? parseInt(m) : m), ae(typeof d == "string" ? parseInt(d) : d), Ee.current = 0, We(null), P.current = [], Ae.current = !0;
12113
12131
  }, []), Re = M(() => {
12114
12132
  const m = le === 0 ? 11 : le - 1, d = le === 0 ? B - 1 : B;
12115
- De(d, m);
12116
- }, [B, le, De]), ze = M(() => {
12133
+ Oe(d, m);
12134
+ }, [B, le, Oe]), ze = M(() => {
12117
12135
  const m = le === 11 ? 0 : le + 1, d = le === 11 ? B + 1 : B;
12118
- De(d, m);
12119
- }, [B, le, De]), Le = M((m) => cl(m, Ue), [Ue]), _e = M(
12136
+ Oe(d, m);
12137
+ }, [B, le, Oe]), Le = M((m) => cl(m, Ue), [Ue]), _e = M(
12120
12138
  (m, d) => im(m, d, Ue, {
12121
12139
  multiple: t,
12122
12140
  maxMultiple: s,
@@ -12125,20 +12143,20 @@ function vm(n) {
12125
12143
  [Ue, t, s, N.length]
12126
12144
  ), A = M(() => typeof N == "string" ? N.split(",") : N, [N]), je = M(
12127
12145
  (m) => {
12128
- if (!i || H.length !== 1 || !dl(m, H, J, l) || H[0] >= m) {
12146
+ if (!i || H.length !== 1 || !dl(m, H, Z, l) || H[0] >= m) {
12129
12147
  se(null);
12130
12148
  return;
12131
12149
  }
12132
12150
  se(m), ue(oo(H[0], m));
12133
12151
  },
12134
- [i, H, J, l]
12152
+ [i, H, Z, l]
12135
12153
  ), Xe = M(
12136
12154
  (m) => {
12137
12155
  if (!m) return;
12138
12156
  let d;
12139
12157
  if (i)
12140
12158
  d = om(m, A(), {
12141
- excludedates: J,
12159
+ excludedates: Z,
12142
12160
  excludeweekdays: l
12143
12161
  }), oe || Y(d), d.length === 2 ? (v == null || v(d), xe()) : (d.length === 1 && ue({}), v == null || v(d));
12144
12162
  else if (t)
@@ -12154,7 +12172,7 @@ function vm(n) {
12154
12172
  s,
12155
12173
  A,
12156
12174
  N,
12157
- J,
12175
+ Z,
12158
12176
  l,
12159
12177
  oe,
12160
12178
  Ie,
@@ -12218,7 +12236,7 @@ function vm(n) {
12218
12236
  d !== null && ge(m.nativeEvent, d);
12219
12237
  },
12220
12238
  [xe, ge]
12221
- ), Ze = M(
12239
+ ), Je = M(
12222
12240
  (m) => {
12223
12241
  K.current && !K.current.contains(m.relatedTarget) && !m.target.classList.contains("pkt-hide") && xe();
12224
12242
  },
@@ -12226,7 +12244,7 @@ function vm(n) {
12226
12244
  );
12227
12245
  return {
12228
12246
  componentId: L,
12229
- strings: O,
12247
+ strings: D,
12230
12248
  todayDate: W,
12231
12249
  year: B,
12232
12250
  month: le,
@@ -12241,7 +12259,7 @@ function vm(n) {
12241
12259
  withcontrols: f,
12242
12260
  earliest: r,
12243
12261
  latest: a,
12244
- excludedates: J,
12262
+ excludedates: Z,
12245
12263
  excludeweekdays: l,
12246
12264
  className: S,
12247
12265
  dateConstraints: Ue,
@@ -12250,7 +12268,7 @@ function vm(n) {
12250
12268
  tabIndexSetRef: Ee,
12251
12269
  prevMonth: Re,
12252
12270
  nextMonth: ze,
12253
- changeMonth: De,
12271
+ changeMonth: Oe,
12254
12272
  handleDateSelect: Xe,
12255
12273
  addToSelected: U,
12256
12274
  removeFromSelected: V,
@@ -12260,7 +12278,7 @@ function vm(n) {
12260
12278
  isDayDisabled: _e,
12261
12279
  focusOnCurrentDate: ve,
12262
12280
  handleKeydown: et,
12263
- handleFocusOut: Ze,
12281
+ handleFocusOut: Je,
12264
12282
  close: xe,
12265
12283
  setFocusedDate: We
12266
12284
  };
@@ -12278,7 +12296,7 @@ const bm = ({
12278
12296
  changeMonth: h
12279
12297
  }) => {
12280
12298
  const f = (p) => {
12281
- const b = p === "prev", v = b ? rm(t, s, i) : am(t, s, r), $ = b ? e.prevMonth : e.nextMonth, D = b ? "chevron-thin-left" : "chevron-thin-right", S = b ? "pkt-calendar__prev-month" : "pkt-calendar__next-month", T = b ? o : l;
12299
+ const b = p === "prev", v = b ? rm(t, s, i) : am(t, s, r), $ = b ? e.prevMonth : e.nextMonth, O = b ? "chevron-thin-left" : "chevron-thin-right", S = b ? "pkt-calendar__prev-month" : "pkt-calendar__next-month", T = b ? o : l;
12282
12300
  return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ w(
12283
12301
  "button",
12284
12302
  {
@@ -12297,7 +12315,7 @@ const bm = ({
12297
12315
  "aria-disabled": !v || void 0,
12298
12316
  tabIndex: v ? 0 : -1,
12299
12317
  children: [
12300
- /* @__PURE__ */ u(ee, { className: "pkt-btn__icon", name: D }),
12318
+ /* @__PURE__ */ u(ee, { className: "pkt-btn__icon", name: O }),
12301
12319
  /* @__PURE__ */ u("span", { className: "pkt-btn__text", children: $ })
12302
12320
  ]
12303
12321
  }
@@ -12399,7 +12417,7 @@ const $m = ({ state: n }) => {
12399
12417
  handleDateSelect: b,
12400
12418
  handleRangeHover: v,
12401
12419
  isExcluded: $,
12402
- isDayDisabled: D,
12420
+ isDayDisabled: O,
12403
12421
  setFocusedDate: S,
12404
12422
  todayDate: T
12405
12423
  } = n, L = {
@@ -12408,8 +12426,8 @@ const $m = ({ state: n }) => {
12408
12426
  activeSelected: i,
12409
12427
  focusedDate: r,
12410
12428
  tabIndexSetRef: p,
12411
- isDayDisabled: D
12412
- }, O = {
12429
+ isDayDisabled: O
12430
+ }, D = {
12413
12431
  range: l,
12414
12432
  activeSelected: i,
12415
12433
  rangeHovered: o,
@@ -12425,10 +12443,10 @@ const $m = ({ state: n }) => {
12425
12443
  /* @__PURE__ */ u("th", { children: /* @__PURE__ */ u("div", { className: "pkt-calendar__day-name", "aria-label": e.days[N], children: e.daysShort[N] }) }, `day-${N}`)
12426
12444
  );
12427
12445
  return /* @__PURE__ */ u("tr", { className: "pkt-cal-week-row", children: Y });
12428
- }, J = (Y, N) => {
12446
+ }, Z = (Y, N) => {
12429
12447
  const H = ym(Y, N, L), { currentDate: B, currentDateISO: Q, isSelected: le, isDisabled: ae, ariaLabel: me, tabindex: ue } = H;
12430
12448
  g.current.push({ currentDateISO: Q, isDisabled: ae, tabindex: ue });
12431
- const ke = km(H, O), se = _m(H, O);
12449
+ const ke = km(H, D), se = _m(H, D);
12432
12450
  return /* @__PURE__ */ u("td", { className: ke, children: /* @__PURE__ */ u(
12433
12451
  "button",
12434
12452
  {
@@ -12466,7 +12484,7 @@ const $m = ({ state: n }) => {
12466
12484
  for (let me = 0; me < di; me++) {
12467
12485
  const ue = um(le, me, H, N);
12468
12486
  if (ue === "current-month")
12469
- ae.push(J(H, Y)), H++;
12487
+ ae.push(Z(H, Y)), H++;
12470
12488
  else {
12471
12489
  const ke = dm(ue, me, H, N);
12472
12490
  ae.push(oe(ke, `${ue}-${le}-${me}`)), ue === "next-month" && H++;
@@ -12560,17 +12578,17 @@ const Sm = Ce(
12560
12578
  optionalTag: b,
12561
12579
  optionalText: v = "Valgfritt",
12562
12580
  requiredTag: $,
12563
- requiredText: D = "Må fylles ut",
12581
+ requiredText: O = "Må fylles ut",
12564
12582
  tagText: S,
12565
12583
  ...T
12566
12584
  }, L) => {
12567
- const O = pe(null);
12585
+ const D = pe(null);
12568
12586
  be(() => {
12569
- O.current && p !== void 0 && (O.current.indeterminate = p);
12587
+ D.current && p !== void 0 && (D.current.indeterminate = p);
12570
12588
  }, [p]), be(() => {
12571
- typeof L == "function" ? L(O.current) : L && (L.current = O.current);
12589
+ typeof L == "function" ? L(D.current) : L && (L.current = D.current);
12572
12590
  }, [L]);
12573
- const W = [a, "pkt-input-check"].filter(Boolean).join(" "), J = [
12591
+ const W = [a, "pkt-input-check"].filter(Boolean).join(" "), Z = [
12574
12592
  "pkt-input-check__input-label",
12575
12593
  t ? "pkt-input-check__input-label--disabled" : "",
12576
12594
  `pkt-input-check__input-label--${h}`,
@@ -12582,10 +12600,10 @@ const Sm = Ce(
12582
12600
  ].filter(Boolean).join(" "), we = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), Y = () => /* @__PURE__ */ w(Be, { children: [
12583
12601
  S && /* @__PURE__ */ u("span", { className: we + " pkt-tag--gray", children: S }),
12584
12602
  b && /* @__PURE__ */ u("span", { className: we + " pkt-tag--blue-light", children: v }),
12585
- $ && /* @__PURE__ */ u("span", { className: we + " pkt-tag--beige", children: D })
12603
+ $ && /* @__PURE__ */ u("span", { className: we + " pkt-tag--beige", children: O })
12586
12604
  ] });
12587
12605
  return /* @__PURE__ */ u("div", { className: W, children: /* @__PURE__ */ w("div", { className: oe, children: [
12588
- h === "left" && /* @__PURE__ */ w("label", { className: J, htmlFor: n, children: [
12606
+ h === "left" && /* @__PURE__ */ w("label", { className: Z, htmlFor: n, children: [
12589
12607
  s,
12590
12608
  " ",
12591
12609
  Y(),
@@ -12595,7 +12613,7 @@ const Sm = Ce(
12595
12613
  "input",
12596
12614
  {
12597
12615
  role: o ? "switch" : "checkbox",
12598
- ref: O,
12616
+ ref: D,
12599
12617
  className: `pkt-input-check__input-checkbox ${r ? "pkt-input-check__input-checkbox--error" : ""}`,
12600
12618
  type: "checkbox",
12601
12619
  id: n,
@@ -12604,7 +12622,7 @@ const Sm = Ce(
12604
12622
  ...T
12605
12623
  }
12606
12624
  ),
12607
- h === "right" && /* @__PURE__ */ w("label", { className: J, htmlFor: n, children: [
12625
+ h === "right" && /* @__PURE__ */ w("label", { className: Z, htmlFor: n, children: [
12608
12626
  s,
12609
12627
  " ",
12610
12628
  Y(),
@@ -12632,21 +12650,21 @@ const is = Ce(
12632
12650
  hasError: b = !1,
12633
12651
  errorMessage: v,
12634
12652
  disabled: $ = !1,
12635
- inline: D = !1,
12653
+ inline: O = !1,
12636
12654
  ariaDescribedby: S,
12637
12655
  useWrapper: T = !0,
12638
12656
  children: L,
12639
- className: O = "",
12657
+ className: D = "",
12640
12658
  hasFieldset: W = !1,
12641
- role: J = "group",
12659
+ role: Z = "group",
12642
12660
  counterPosition: oe = "bottom"
12643
12661
  }, we) => {
12644
12662
  const [Y, N] = ce(!1), H = S || (t ? `${n}-helptext` : void 0), B = !!r, Q = B && oe === "top", le = B && oe === "bottom", ae = () => N((P) => !P), me = [
12645
12663
  "pkt-inputwrapper",
12646
- O,
12664
+ D,
12647
12665
  b ? "pkt-inputwrapper--error" : "",
12648
12666
  $ ? "pkt-inputwrapper--disabled" : "",
12649
- D ? "pkt-inputwrapper--inline" : ""
12667
+ O ? "pkt-inputwrapper--inline" : ""
12650
12668
  ].filter(Boolean).join(" "), ue = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), ke = () => B ? /* @__PURE__ */ w("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
12651
12669
  a,
12652
12670
  o ? `/${o}` : ""
@@ -12699,7 +12717,7 @@ const is = Ce(
12699
12717
  le && /* @__PURE__ */ u(ke, {}),
12700
12718
  b && v && /* @__PURE__ */ u("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ u(Kr, { skin: "error", "aria-live": "assertive", role: "alert", id: `${n}-error`, compact: !0, children: v }) })
12701
12719
  ] });
12702
- return /* @__PURE__ */ u("div", { className: me, ref: we, role: J, children: W ? /* @__PURE__ */ u("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": H, children: K }) : /* @__PURE__ */ u("div", { className: "pkt-inputwrapper__fieldset", children: K }) });
12720
+ return /* @__PURE__ */ u("div", { className: me, ref: we, role: Z, children: W ? /* @__PURE__ */ u("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": H, children: K }) : /* @__PURE__ */ u("div", { className: "pkt-inputwrapper__fieldset", children: K }) });
12703
12721
  }
12704
12722
  );
12705
12723
  is.displayName = "PktInputWrapper";
@@ -12749,7 +12767,7 @@ const fn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
12749
12767
  }
12750
12768
  );
12751
12769
  return (a.length === 0 || !o) && s ? { addValueText: n, userInfoMessage: "" } : a.length === 0 && !s ? { addValueText: null, userInfoMessage: "Ingen treff i søket" } : r ? { addValueText: null, userInfoMessage: "Verdien er allerede valgt" } : { addValueText: null, userInfoMessage: "" };
12752
- }, Dm = (n, e, t) => {
12770
+ }, Om = (n, e, t) => {
12753
12771
  switch (n) {
12754
12772
  case ",":
12755
12773
  return t ? "addValue" : null;
@@ -12763,7 +12781,7 @@ const fn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
12763
12781
  default:
12764
12782
  return null;
12765
12783
  }
12766
- }, Om = (n, e, t, s, i) => {
12784
+ }, Dm = (n, e, t, s, i) => {
12767
12785
  if (!n) return { action: "none", value: null };
12768
12786
  const r = fn(t, n);
12769
12787
  return !e.includes(n) && !r ? s ? { action: "addUserValue", value: n } : i ? { action: "none", value: null } : { action: "removeValue", value: e[0] } : r && !e.includes(r.value) ? { action: "selectOption", value: r.value } : { action: "none", value: null };
@@ -12786,7 +12804,7 @@ const fn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
12786
12804
  }, Em = (n) => {
12787
12805
  const e = fl(n);
12788
12806
  e[0] && zn(e[0]);
12789
- }, Di = (n, e) => {
12807
+ }, Oi = (n, e) => {
12790
12808
  if (e.disabled) return;
12791
12809
  const t = fl(n);
12792
12810
  if (e.allowUserInput && e.customUserInput) {
@@ -12826,14 +12844,14 @@ const fn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
12826
12844
  }, p) => {
12827
12845
  const [b, v] = ce(!1), $ = M(() => {
12828
12846
  v(!0), l && l();
12829
- }, [l]), D = pe(null), [S, T] = ce("");
12847
+ }, [l]), O = pe(null), [S, T] = ce("");
12830
12848
  be(() => {
12831
- var J, oe;
12832
- T(((oe = (J = D.current) == null ? void 0 : J.textContent) == null ? void 0 : oe.trim()) ?? "");
12849
+ var Z, oe;
12850
+ T(((oe = (Z = O.current) == null ? void 0 : Z.textContent) == null ? void 0 : oe.trim()) ?? "");
12833
12851
  }, [n]);
12834
12852
  const L = Te(() => {
12835
12853
  if (i && !o) return S && `Klikk for å fjerne ${S}` || f;
12836
- }, [i, o, S, f]), O = {
12854
+ }, [i, o, S, f]), D = {
12837
12855
  "pkt-tag": !0,
12838
12856
  [`pkt-tag--${s}`]: !!s,
12839
12857
  [`pkt-tag--${e}`]: !!e,
@@ -12860,13 +12878,13 @@ const fn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
12860
12878
  ref: p,
12861
12879
  children: [
12862
12880
  a && /* @__PURE__ */ u(ee, { className: "pkt-tag__icon", name: a }),
12863
- /* @__PURE__ */ u("span", { ref: D, children: n }),
12881
+ /* @__PURE__ */ u("span", { ref: O, children: n }),
12864
12882
  /* @__PURE__ */ u(ee, { className: "pkt-tag__close-btn", name: "close" })
12865
12883
  ]
12866
12884
  }
12867
- ) : /* @__PURE__ */ w("span", { ...g, className: $e(O, r), ref: p, children: [
12885
+ ) : /* @__PURE__ */ w("span", { ...g, className: $e(D, r), ref: p, children: [
12868
12886
  a && /* @__PURE__ */ u(ee, { className: "pkt-tag__icon", name: a, "aria-hidden": "true" }),
12869
- /* @__PURE__ */ u("span", { ref: D, children: n })
12887
+ /* @__PURE__ */ u("span", { ref: O, children: n })
12870
12888
  ] });
12871
12889
  }
12872
12890
  );
@@ -12878,8 +12896,8 @@ const ml = ({ state: n, outside: e = !1 }) => {
12878
12896
  !e && l >= 0 && l < t.length && ((p = h.current[l]) == null || p.focus());
12879
12897
  }, [e, l, t.length]), t.length === 0) return null;
12880
12898
  const f = (p, b) => {
12881
- const v = fn(s, p), $ = v == null ? void 0 : v.tagSkinColor, D = v ? pl(v, r) : p;
12882
- return i ? /* @__PURE__ */ u("li", { role: "listitem", children: /* @__PURE__ */ u(gs, { skin: $ || "blue-dark", children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: D }) }) }, p) : e ? /* @__PURE__ */ u("li", { role: "listitem", children: /* @__PURE__ */ u(gs, { skin: $ || "blue-dark", closeTag: !0, onClose: () => a(p), children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: D }) }) }, p) : /* @__PURE__ */ u(
12899
+ const v = fn(s, p), $ = v == null ? void 0 : v.tagSkinColor, O = v ? pl(v, r) : p;
12900
+ return i ? /* @__PURE__ */ u("li", { role: "listitem", children: /* @__PURE__ */ u(gs, { skin: $ || "blue-dark", children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: O }) }) }, p) : e ? /* @__PURE__ */ u("li", { role: "listitem", children: /* @__PURE__ */ u(gs, { skin: $ || "blue-dark", closeTag: !0, onClose: () => a(p), children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: O }) }) }, p) : /* @__PURE__ */ u(
12883
12901
  "li",
12884
12902
  {
12885
12903
  role: "listitem",
@@ -12896,7 +12914,7 @@ const ml = ({ state: n, outside: e = !1 }) => {
12896
12914
  tabIndex: l === b ? 0 : -1,
12897
12915
  onClose: () => a(p),
12898
12916
  onKeyDown: (S) => o(S, b),
12899
- children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: D })
12917
+ children: /* @__PURE__ */ u("span", { className: "pkt-combobox__value", children: O })
12900
12918
  }
12901
12919
  )
12902
12920
  },
@@ -12928,13 +12946,13 @@ const ml = ({ state: n, outside: e = !1 }) => {
12928
12946
  fullwidth: b,
12929
12947
  hasError: v,
12930
12948
  label: $,
12931
- inputFocus: D,
12949
+ inputFocus: O,
12932
12950
  inputRef: S,
12933
12951
  triggerRef: T,
12934
12952
  handleInputChange: L,
12935
- handleInputKeydown: O,
12953
+ handleInputKeydown: D,
12936
12954
  handleInputFocus: W,
12937
- handleInputBlur: J,
12955
+ handleInputBlur: Z,
12938
12956
  handleInputClick: oe,
12939
12957
  handlePlaceholderClick: we,
12940
12958
  handleSelectOnlyKeydown: Y,
@@ -12945,7 +12963,7 @@ const ml = ({ state: n, outside: e = !1 }) => {
12945
12963
  a && "pkt-combobox__input--open",
12946
12964
  v && "pkt-combobox__input--error",
12947
12965
  p && "pkt-combobox__input--disabled"
12948
- ].filter(Boolean).join(" "), B = ["pkt-combobox__arrow-icon", a && "pkt-combobox__arrow-icon--open"].filter(Boolean).join(" "), Q = l || h, le = !Q && g && (!i.length || o && f === "outside") && !D, ae = f !== "outside", me = i[0] && fn(r, i[0]) ? `${s}-${Cm(r, i[0])}` : void 0, ue = o && i.length > 0 ? `${i.length} valgt` : void 0, ke = Q ? {
12966
+ ].filter(Boolean).join(" "), B = ["pkt-combobox__arrow-icon", a && "pkt-combobox__arrow-icon--open"].filter(Boolean).join(" "), Q = l || h, le = !Q && g && (!i.length || o && f === "outside") && !O, ae = f !== "outside", me = i[0] && fn(r, i[0]) ? `${s}-${Cm(r, i[0])}` : void 0, ue = o && i.length > 0 ? `${i.length} valgt` : void 0, ke = Q ? {
12949
12967
  tabIndex: -1
12950
12968
  } : {
12951
12969
  id: `${e}-combobox`,
@@ -12969,9 +12987,9 @@ const ml = ({ state: n, outside: e = !1 }) => {
12969
12987
  id: t,
12970
12988
  name: `${N || e}-input`,
12971
12989
  onChange: L,
12972
- onKeyDown: O,
12990
+ onKeyDown: D,
12973
12991
  onFocus: W,
12974
- onBlur: J,
12992
+ onBlur: Z,
12975
12993
  placeholder: !i.length || o && f === "outside" ? g : void 0,
12976
12994
  autoComplete: "off",
12977
12995
  role: "combobox",
@@ -13013,19 +13031,19 @@ const ml = ({ state: n, outside: e = !1 }) => {
13013
13031
  userInfoMessage: b,
13014
13032
  searchPlaceholder: v,
13015
13033
  searchValue: $,
13016
- handleOptionClick: D,
13034
+ handleOptionClick: O,
13017
13035
  handleOptionKeydown: S,
13018
13036
  handleSearchInput: T,
13019
13037
  handleSearchKeydown: L,
13020
- handleNewOptionClick: O,
13038
+ handleNewOptionClick: D,
13021
13039
  handleNewOptionKeydown: W,
13022
- listboxRef: J
13040
+ listboxRef: Z
13023
13041
  } = n, oe = r.filter((B) => B.selected).length, we = a && oe > 0 && h != null && h > 0, Y = g && p && !l, N = !!b, H = ["pkt-listbox", s && "pkt-listbox__open", "pkt-txt-16-light"].filter(Boolean).join(" ");
13024
13042
  return /* @__PURE__ */ w(Be, { children: [
13025
13043
  /* @__PURE__ */ w(
13026
13044
  "div",
13027
13045
  {
13028
- ref: J,
13046
+ ref: Z,
13029
13047
  id: e,
13030
13048
  className: H,
13031
13049
  role: r.length > 0 ? "listbox" : void 0,
@@ -13071,7 +13089,7 @@ const ml = ({ state: n, outside: e = !1 }) => {
13071
13089
  "data-value": p,
13072
13090
  "data-selected": "false",
13073
13091
  tabIndex: 0,
13074
- onClick: () => O(p),
13092
+ onClick: () => D(p),
13075
13093
  onKeyDown: W,
13076
13094
  children: [
13077
13095
  /* @__PURE__ */ u(ee, { className: "pkt-listbox__banner-icon", name: "plus-sign" }),
@@ -13096,7 +13114,7 @@ const ml = ({ state: n, outside: e = !1 }) => {
13096
13114
  "li",
13097
13115
  {
13098
13116
  className: le,
13099
- onClick: () => D(B.value),
13117
+ onClick: () => O(B.value),
13100
13118
  onKeyDown: (me) => S(me, B.value),
13101
13119
  "aria-selected": B.selected ? "true" : "false",
13102
13120
  tabIndex: ae ? -1 : 0,
@@ -13161,13 +13179,13 @@ function Lm(n, e) {
13161
13179
  displayValueAs: b = "label",
13162
13180
  tagPlacement: v,
13163
13181
  searchPlaceholder: $,
13164
- placeholder: D,
13182
+ placeholder: O,
13165
13183
  disabled: S = !1,
13166
13184
  required: T = !1,
13167
13185
  fullwidth: L = !1,
13168
- hasError: O = !1,
13186
+ hasError: D = !1,
13169
13187
  errorMessage: W,
13170
- helptext: J,
13188
+ helptext: Z,
13171
13189
  helptextDropdown: oe,
13172
13190
  helptextDropdownButton: we,
13173
13191
  optionalTag: Y = !1,
@@ -13197,17 +13215,17 @@ function Lm(n, e) {
13197
13215
  });
13198
13216
  }
13199
13217
  }), _;
13200
- }, [se]), De = Te(() => o && o.length > 0 ? o.map((_) => ({ ..._, fulltext: Pi(_) })) : a && a.length > 0 ? a.map((_) => ({ ..._, fulltext: Pi(_) })) : xe.length > 0 ? xe.map((_) => ({ ..._, fulltext: Pi(_) })) : [], [o, a, xe]), Re = i !== void 0, [ze, Le] = ce(() => Nr(i ?? r, l)), _e = pe(ze);
13218
+ }, [se]), Oe = Te(() => o && o.length > 0 ? o.map((_) => ({ ..._, fulltext: Pi(_) })) : a && a.length > 0 ? a.map((_) => ({ ..._, fulltext: Pi(_) })) : xe.length > 0 ? xe.map((_) => ({ ..._, fulltext: Pi(_) })) : [], [o, a, xe]), Re = i !== void 0, [ze, Le] = ce(() => Nr(i ?? r, l)), _e = pe(ze);
13201
13219
  be(() => {
13202
13220
  Re && Le(Nr(i, l));
13203
13221
  }, [i, Re, l]);
13204
13222
  const A = Re ? Nr(i, l) : ze, [je, Xe] = ce([]), U = Te(() => {
13205
13223
  const _ = [
13206
- ...je.filter((E) => !De.some((X) => X.value === E.value)),
13207
- ...De
13224
+ ...je.filter((E) => !Oe.some((X) => X.value === E.value)),
13225
+ ...Oe
13208
13226
  ];
13209
13227
  return Rm(_, A);
13210
- }, [De, je, A]), [V, ne] = ce(!1), [ve, ge] = ce(""), [et, Ze] = ce(""), [m, d] = ce(""), [k, C] = ce(null), [j, q] = ce(!1), [de, ot] = ce(!1), [tt, He] = ce(-1), zt = pe(!1), Yt = Ti(A.length, h ?? null), _t = l && h != null, Os = Te(() => ve ? f ? co(U, ve).filtered : Tm(U, ve) : U, [U, ve, f]), mt = Te(
13228
+ }, [Oe, je, A]), [V, ne] = ce(!1), [ve, ge] = ce(""), [et, Je] = ce(""), [m, d] = ce(""), [k, C] = ce(null), [j, q] = ce(!1), [de, ot] = ce(!1), [tt, He] = ce(-1), zt = pe(!1), Yt = Ti(A.length, h ?? null), _t = l && h != null, Ds = Te(() => ve ? f ? co(U, ve).filtered : Tm(U, ve) : U, [U, ve, f]), mt = Te(
13211
13229
  () => {
13212
13230
  var _;
13213
13231
  return (_ = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : _.set;
@@ -13276,7 +13294,7 @@ function Lm(n, e) {
13276
13294
  ), Es = M(
13277
13295
  (_ = !0, E) => {
13278
13296
  if (C(null), _ && P.current && P.current.type !== "hidden") {
13279
- ge(""), Ze("");
13297
+ ge(""), Je("");
13280
13298
  const X = E !== void 0 ? E : A[0];
13281
13299
  !l && X ? P.current.value = Ni(X, U, b) : P.current.value = "", l || (ot(!1), d(""));
13282
13300
  }
@@ -13287,7 +13305,7 @@ function Lm(n, e) {
13287
13305
  var na, sa;
13288
13306
  if (S) return;
13289
13307
  d(""), C(null);
13290
- const E = ((na = fn(U, _)) == null ? void 0 : na.value) || null, X = A.includes(_ || E || ""), qe = !!E, Nt = ((sa = U.find((Dl) => Dl.value === _)) == null ? void 0 : sa.disabled) || !1, Rn = !(_ != null && _.trim()), Pt = !l, Ut = l, _i = Ti(A.length, h ?? null);
13308
+ const E = ((na = fn(U, _)) == null ? void 0 : na.value) || null, X = A.includes(_ || E || ""), qe = !!E, Nt = ((sa = U.find((Ol) => Ol.value === _)) == null ? void 0 : sa.disabled) || !1, Rn = !(_ != null && _.trim()), Pt = !l, Ut = l, _i = Ti(A.length, h ?? null);
13291
13309
  let pn = !1, $i = !0, As = "", cr = "", os;
13292
13310
  Nt || (!qe && p && !Rn ? (In(_), As = "Ny verdi lagt til", pn = Ut, Pt && (os = _ || "")) : !qe && !p ? (Pt && A[0] && nt(A[0]), $i = !1, pn = !0, As = "Ingen treff i søket") : X ? (nt(E), pn = !0, os = "", Pt && K && P.current && P.current.type !== "hidden" && (P.current.value = "")) : Rn && Pt ? (Ms(), pn = !0, os = "") : Pt ? (A[0] && nt(A[0]), xn(E), pn = !1, os = E || "") : Ut && !_i ? (xn(E), pn = !0) : Ut && _i ? (As = "Maks antall valg nådd", $i = !1, cr = _ || "") : (Pt && Ms(), As = "Ingen gyldig verdi valgt", $i = !1, pn = !0, cr = _ || "", os = ""), ne(pn), d(As), ge(cr), Es($i, os), pn || (Pt && K && (zt.current = !0), window.setTimeout(() => {
13293
13311
  Ie();
@@ -13313,7 +13331,7 @@ function Lm(n, e) {
13313
13331
  let E = A[0];
13314
13332
  if (l) {
13315
13333
  if (_ !== "") {
13316
- const { action: X, value: qe } = Om(_, A, U, p, l);
13334
+ const { action: X, value: qe } = Dm(_, A, U, p, l);
13317
13335
  switch (X) {
13318
13336
  case "addUserValue":
13319
13337
  In(qe);
@@ -13350,7 +13368,7 @@ function Lm(n, e) {
13350
13368
  var X;
13351
13369
  if (S) return;
13352
13370
  const E = _.target.value;
13353
- if (Ze(E), ge(E), rs(E), f && E) {
13371
+ if (Je(E), ge(E), rs(E), f && E) {
13354
13372
  const { suggestion: qe } = co(U, E);
13355
13373
  qe != null && qe.label && P.current && !((X = _.nativeEvent.inputType) != null && X.includes("deleteContent")) && (P.current.value = qe.label, window.setTimeout(
13356
13374
  () => {
@@ -13378,7 +13396,7 @@ function Lm(n, e) {
13378
13396
  _.preventDefault(), He(A.length - 1);
13379
13397
  return;
13380
13398
  }
13381
- const E = Dm(_.key, _.shiftKey, l);
13399
+ const E = Om(_.key, _.shiftKey, l);
13382
13400
  if (E && !(_.key === "Tab" && !V)) {
13383
13401
  if (E === "focusListbox" && _.key === "Tab" && !((Rn = te.current) == null ? void 0 : Rn.querySelector(
13384
13402
  '[role="option"]:not([data-disabled]), [data-type="new-option"]'
@@ -13397,7 +13415,7 @@ function Lm(n, e) {
13397
13415
  break;
13398
13416
  }
13399
13417
  case "focusListbox":
13400
- te.current && (V || ne(!0), Di(te.current, {
13418
+ te.current && (V || ne(!0), Oi(te.current, {
13401
13419
  disabled: S,
13402
13420
  allowUserInput: p,
13403
13421
  customUserInput: k,
@@ -13452,7 +13470,7 @@ function Lm(n, e) {
13452
13470
  else {
13453
13471
  _.stopPropagation(), _.preventDefault();
13454
13472
  const X = !V;
13455
- ne(X), X && te.current && Di(te.current, {
13473
+ ne(X), X && te.current && Oi(te.current, {
13456
13474
  disabled: S,
13457
13475
  allowUserInput: p,
13458
13476
  customUserInput: k,
@@ -13475,7 +13493,7 @@ function Lm(n, e) {
13475
13493
  case "ArrowDown":
13476
13494
  case "ArrowUp":
13477
13495
  _.preventDefault(), V ? ne(!1) : (ne(!0), te.current && window.setTimeout(() => {
13478
- te.current && Di(te.current, {
13496
+ te.current && Oi(te.current, {
13479
13497
  disabled: S,
13480
13498
  allowUserInput: p && !Yt,
13481
13499
  customUserInput: k,
@@ -13489,7 +13507,7 @@ function Lm(n, e) {
13489
13507
  case "Home":
13490
13508
  case "End":
13491
13509
  _.preventDefault(), V || ne(!0), te.current && window.setTimeout(() => {
13492
- te.current && Di(te.current, {
13510
+ te.current && Oi(te.current, {
13493
13511
  disabled: S,
13494
13512
  allowUserInput: p && !Yt,
13495
13513
  customUserInput: k,
@@ -13516,7 +13534,7 @@ function Lm(n, e) {
13516
13534
  Vt(_);
13517
13535
  },
13518
13536
  [Vt]
13519
- ), Je = M(
13537
+ ), Ze = M(
13520
13538
  (_, E) => {
13521
13539
  switch (_.key) {
13522
13540
  case "Enter":
@@ -13635,7 +13653,7 @@ function Lm(n, e) {
13635
13653
  if (!_) return;
13636
13654
  const E = () => {
13637
13655
  window.setTimeout(() => {
13638
- if (Le(_e.current), Xe([]), Ze(""), ge(""), C(null), d(""), Ee.current) {
13656
+ if (Le(_e.current), Xe([]), Je(""), ge(""), C(null), d(""), Ee.current) {
13639
13657
  const qe = l ? _e.current.join(",") : _e.current[0] || "";
13640
13658
  Ee.current.value = qe;
13641
13659
  }
@@ -13674,7 +13692,7 @@ function Lm(n, e) {
13674
13692
  searchValue: ve,
13675
13693
  // Options
13676
13694
  options: U,
13677
- filteredOptions: Os,
13695
+ filteredOptions: Ds,
13678
13696
  // UI state
13679
13697
  isOpen: V,
13680
13698
  userInfoMessage: m,
@@ -13693,13 +13711,13 @@ function Lm(n, e) {
13693
13711
  displayValueAs: b,
13694
13712
  tagPlacement: v,
13695
13713
  searchPlaceholder: $,
13696
- placeholder: D,
13714
+ placeholder: O,
13697
13715
  disabled: S,
13698
13716
  required: T,
13699
13717
  fullwidth: L,
13700
- hasError: O,
13718
+ hasError: D,
13701
13719
  errorMessage: W,
13702
- helptext: J,
13720
+ helptext: Z,
13703
13721
  helptextDropdown: oe,
13704
13722
  helptextDropdownButton: we,
13705
13723
  optionalTag: Y,
@@ -13728,7 +13746,7 @@ function Lm(n, e) {
13728
13746
  handlePlaceholderClick: lr,
13729
13747
  handleSelectOnlyKeydown: R,
13730
13748
  handleOptionClick: F,
13731
- handleOptionKeydown: Je,
13749
+ handleOptionKeydown: Ze,
13732
13750
  handleTagRemove: st,
13733
13751
  handleTagKeydown: as,
13734
13752
  handleSearchInput: ki,
@@ -13828,7 +13846,7 @@ const gl = () => {
13828
13846
  const s = ((o = e.parentElement) == null ? void 0 : o.getBoundingClientRect()) || e.getBoundingClientRect(), i = t ? s.height + 30 : s.height, r = n.getBoundingClientRect().height;
13829
13847
  let a = t ? "calc(100% - 30px)" : "100%";
13830
13848
  s && s.top + r > window.innerHeight && s.top - r > 0 && (a = `calc(100% - ${i}px - ${r}px)`), n.style.top = a;
13831
- }, Oi = (n, e, t, s, i, r) => {
13849
+ }, Di = (n, e, t, s, i, r) => {
13832
13850
  const { key: a } = n;
13833
13851
  a === "," && (n.preventDefault(), r ? r(n) : i && i()), (a === "Space" || a === " ") && (n.preventDefault(), e(n)), a === "Enter" && (n.preventDefault(), t ? t() : s ? s() : i && i());
13834
13852
  }, zm = ({
@@ -13848,13 +13866,13 @@ const gl = () => {
13848
13866
  inputRef: b,
13849
13867
  hasCounter: v = !1,
13850
13868
  onDateSelected: $,
13851
- onClose: D
13869
+ onClose: O
13852
13870
  }) => {
13853
13871
  const S = pe(null), T = pe(!1);
13854
13872
  n && (T.current = !0), be(() => {
13855
13873
  n && Wm(S.current, (b == null ? void 0 : b.current) ?? null, v);
13856
13874
  }, [n, b, v]);
13857
- const L = ["pkt-calendar-popup", n ? "show" : "hide"].join(" "), O = n || T.current;
13875
+ const L = ["pkt-calendar-popup", n ? "show" : "hide"].join(" "), D = n || T.current;
13858
13876
  return /* @__PURE__ */ u(
13859
13877
  "div",
13860
13878
  {
@@ -13862,7 +13880,7 @@ const gl = () => {
13862
13880
  className: L,
13863
13881
  hidden: !n,
13864
13882
  "aria-hidden": !n,
13865
- children: O && /* @__PURE__ */ u(
13883
+ children: D && /* @__PURE__ */ u(
13866
13884
  hl,
13867
13885
  {
13868
13886
  multiple: e,
@@ -13878,7 +13896,7 @@ const gl = () => {
13878
13896
  currentmonth: g,
13879
13897
  today: p,
13880
13898
  onDateSelected: $,
13881
- onClose: D
13899
+ onClose: O
13882
13900
  }
13883
13901
  )
13884
13902
  }
@@ -13907,7 +13925,7 @@ const gl = () => {
13907
13925
  );
13908
13926
  }) });
13909
13927
  }, Km = ({ state: n }) => {
13910
- var Ie, xe, De, Re;
13928
+ var Ie, xe, Oe, Re;
13911
13929
  const {
13912
13930
  id: e,
13913
13931
  inputId: t,
@@ -13924,13 +13942,13 @@ const gl = () => {
13924
13942
  placeholder: b,
13925
13943
  hasError: v,
13926
13944
  helptext: $,
13927
- minStr: D,
13945
+ minStr: O,
13928
13946
  maxStr: S,
13929
13947
  inputType: T,
13930
13948
  isIOSDevice: L,
13931
- strings: O,
13949
+ strings: D,
13932
13950
  inputClasses: W,
13933
- buttonClasses: J,
13951
+ buttonClasses: Z,
13934
13952
  rangeLabelClasses: oe,
13935
13953
  datepickerInputsClasses: we,
13936
13954
  isInputDisabled: Y,
@@ -13958,20 +13976,20 @@ const gl = () => {
13958
13976
  "button",
13959
13977
  {
13960
13978
  ref: B,
13961
- className: J,
13979
+ className: Z,
13962
13980
  type: "button",
13963
13981
  onClick: Q,
13964
13982
  disabled: l,
13965
- "aria-label": ((ze = O.calendar) == null ? void 0 : ze.buttonAltText) ?? "Åpne kalender",
13983
+ "aria-label": ((ze = D.calendar) == null ? void 0 : ze.buttonAltText) ?? "Åpne kalender",
13966
13984
  children: [
13967
13985
  /* @__PURE__ */ u(ee, { name: "calendar" }),
13968
- /* @__PURE__ */ u("span", { className: "pkt-btn__text", children: ((Le = O.calendar) == null ? void 0 : Le.buttonAltText) ?? "Åpne kalender" })
13986
+ /* @__PURE__ */ u("span", { className: "pkt-btn__text", children: ((Le = D.calendar) == null ? void 0 : Le.buttonAltText) ?? "Åpne kalender" })
13969
13987
  ]
13970
13988
  }
13971
13989
  );
13972
13990
  };
13973
13991
  return r ? /* @__PURE__ */ w(Be, { children: [
13974
- /* @__PURE__ */ u(Ym, { dates: s, dateformat: i, idBase: e, strings: O, onDateRemoved: ie }),
13992
+ /* @__PURE__ */ u(Ym, { dates: s, dateformat: i, idBase: e, strings: D, onDateRemoved: ie }),
13975
13993
  /* @__PURE__ */ u("div", { className: "pkt-datepicker__inputs", children: /* @__PURE__ */ w("div", { className: "pkt-input__container", children: [
13976
13994
  /* @__PURE__ */ u(
13977
13995
  "input",
@@ -13997,7 +14015,7 @@ const gl = () => {
13997
14015
  Ue()
13998
14016
  ] }) })
13999
14017
  ] }) : a ? /* @__PURE__ */ u("div", { className: we, children: /* @__PURE__ */ w("div", { className: "pkt-input__container", children: [
14000
- o && /* @__PURE__ */ u("div", { className: "pkt-input-prefix", children: ((Ie = O.generic) == null ? void 0 : Ie.from) ?? "Fra" }),
14018
+ o && /* @__PURE__ */ u("div", { className: "pkt-input-prefix", children: ((Ie = D.generic) == null ? void 0 : Ie.from) ?? "Fra" }),
14001
14019
  /* @__PURE__ */ u(
14002
14020
  "input",
14003
14021
  {
@@ -14008,13 +14026,13 @@ const gl = () => {
14008
14026
  id: t,
14009
14027
  name: p ? `${p}-from` : `${e}-from`,
14010
14028
  value: s[0] ?? "",
14011
- min: D,
14029
+ min: O,
14012
14030
  max: S,
14013
14031
  placeholder: b,
14014
14032
  readOnly: h || L && !h,
14015
14033
  disabled: l,
14016
14034
  required: f,
14017
- "aria-label": `${g} ${((xe = O.generic) == null ? void 0 : xe.from) ?? "Fra"}`,
14035
+ "aria-label": `${g} ${((xe = D.generic) == null ? void 0 : xe.from) ?? "Fra"}`,
14018
14036
  "aria-describedby": $ ? `${e}-helptext` : void 0,
14019
14037
  "aria-invalid": v,
14020
14038
  "aria-errormessage": v ? `${e}-error` : void 0,
@@ -14025,7 +14043,7 @@ const gl = () => {
14025
14043
  onChange: me
14026
14044
  }
14027
14045
  ),
14028
- /* @__PURE__ */ u("div", { className: oe, id: `${e}-to-label`, children: ((De = O.generic) == null ? void 0 : De.to) ?? "Til" }),
14046
+ /* @__PURE__ */ u("div", { className: oe, id: `${e}-to-label`, children: ((Oe = D.generic) == null ? void 0 : Oe.to) ?? "Til" }),
14029
14047
  !o && /* @__PURE__ */ u("div", { className: "pkt-input-separator", children: "–" }),
14030
14048
  /* @__PURE__ */ u(
14031
14049
  "input",
@@ -14036,11 +14054,11 @@ const gl = () => {
14036
14054
  id: `${e}-to`,
14037
14055
  name: p ? `${p}-to` : `${e}-to`,
14038
14056
  value: s[1] ?? "",
14039
- min: D,
14057
+ min: O,
14040
14058
  max: S,
14041
14059
  readOnly: h || L && !h,
14042
14060
  disabled: l,
14043
- "aria-label": `${g} ${((Re = O.generic) == null ? void 0 : Re.to) ?? "Til"}`,
14061
+ "aria-label": `${g} ${((Re = D.generic) == null ? void 0 : Re.to) ?? "Til"}`,
14044
14062
  "aria-invalid": v,
14045
14063
  onClick: te,
14046
14064
  onKeyDown: P,
@@ -14061,7 +14079,7 @@ const gl = () => {
14061
14079
  id: t,
14062
14080
  name: p ?? e,
14063
14081
  value: s[0] ?? "",
14064
- min: D,
14082
+ min: O,
14065
14083
  max: S,
14066
14084
  placeholder: b,
14067
14085
  readOnly: h || L && !h,
@@ -14084,7 +14102,18 @@ const gl = () => {
14084
14102
  }, Qm = {
14085
14103
  calendar: { buttonAltText: "Åpne kalender" },
14086
14104
  generic: { from: "Fra", to: "Til" }
14087
- }, ho = (n) => n ? Array.isArray(n) ? n.filter(Boolean) : String(n).split(",").map((e) => e.trim()).filter(Boolean) : [];
14105
+ }, ho = (n) => {
14106
+ if (!n) return [];
14107
+ if (Array.isArray(n)) return n.filter(Boolean);
14108
+ if (typeof n == "string" && n.trimStart().startsWith("["))
14109
+ try {
14110
+ const e = JSON.parse(n);
14111
+ if (Array.isArray(e))
14112
+ return e.filter(Boolean);
14113
+ } catch {
14114
+ }
14115
+ return String(n).split(",").map((e) => e.trim()).filter(Boolean);
14116
+ };
14088
14117
  function Xm(n, e) {
14089
14118
  const {
14090
14119
  id: t,
@@ -14101,13 +14130,13 @@ function Xm(n, e) {
14101
14130
  excludedates: b,
14102
14131
  excludeweekdays: v,
14103
14132
  currentmonth: $,
14104
- today: D,
14133
+ today: O,
14105
14134
  calendarOpen: S,
14106
14135
  timezone: T,
14107
14136
  fullwidth: L = !1,
14108
- hasFieldset: O = !1,
14137
+ hasFieldset: D = !1,
14109
14138
  inline: W = !1,
14110
- helptext: J,
14139
+ helptext: Z,
14111
14140
  helptextDropdown: oe,
14112
14141
  helptextDropdownButton: we,
14113
14142
  hasError: Y = !1,
@@ -14130,15 +14159,15 @@ function Xm(n, e) {
14130
14159
  onValueChange: te,
14131
14160
  className: Ue,
14132
14161
  ...Ie
14133
- } = n, xe = M((R) => R === void 0 ? [] : ho(R), []), De = i !== void 0, Re = typeof r == "number" ? void 0 : r, [ze, Le] = ce(() => xe(i ?? Re)), _e = De ? xe(i) : ze, A = pe(ze);
14162
+ } = n, xe = M((R) => R === void 0 ? [] : ho(R), []), Oe = i !== void 0, Re = typeof r == "number" ? void 0 : r, [ze, Le] = ce(() => xe(i ?? Re)), _e = Oe ? xe(i) : ze, A = pe(ze);
14134
14163
  be(() => {
14135
- De && Le(xe(i));
14136
- }, [i, De, xe]);
14164
+ Oe && Le(xe(i));
14165
+ }, [i, Oe, xe]);
14137
14166
  const [je, Xe] = ce(S ?? !1);
14138
14167
  be(() => {
14139
14168
  S !== void 0 && Xe(S);
14140
14169
  }, [S]);
14141
- const U = pe(null), V = pe(null), ne = pe(null), ve = pe(null), ge = pe(null), et = Te(() => Fm(), []), Ze = Te(() => gl(), []), m = Te(
14170
+ const U = pe(null), V = pe(null), ne = pe(null), ve = pe(null), ge = pe(null), et = Te(() => Fm(), []), Je = Te(() => gl(), []), m = Te(
14142
14171
  () => ue ?? (h ? Qm : Gm),
14143
14172
  [ue, h]
14144
14173
  ), d = typeof K == "string" ? K : K !== void 0 ? String(K) : void 0, k = typeof P == "string" ? P : P !== void 0 ? String(P) : void 0, C = Te(() => {
@@ -14164,10 +14193,10 @@ function Xm(n, e) {
14164
14193
  }, [T]);
14165
14194
  const _t = M(
14166
14195
  (R, F = !0) => {
14167
- De || Le(R), F && (te == null || te(R));
14196
+ Oe || Le(R), F && (te == null || te(R));
14168
14197
  },
14169
- [De, te]
14170
- ), Os = Te(
14198
+ [Oe, te]
14199
+ ), Ds = Te(
14171
14200
  () => {
14172
14201
  var R;
14173
14202
  return (R = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : R.set;
@@ -14176,9 +14205,9 @@ function Xm(n, e) {
14176
14205
  ), mt = M(
14177
14206
  (R) => {
14178
14207
  const F = ne.current;
14179
- !F || !Os || (Os.call(F, R.join(",")), F.dispatchEvent(new Event("input", { bubbles: !0 })));
14208
+ !F || !Ds || (Ds.call(F, R.join(",")), F.dispatchEvent(new Event("input", { bubbles: !0 })));
14180
14209
  },
14181
- [Os]
14210
+ [Ds]
14182
14211
  ), Ft = M(() => {
14183
14212
  ke || Xe((R) => !R);
14184
14213
  }, [ke]), Kt = M(() => {
@@ -14186,25 +14215,25 @@ function Xm(n, e) {
14186
14215
  }, []);
14187
14216
  be(() => {
14188
14217
  if (!je) return;
14189
- const R = (Je) => {
14218
+ const R = (Ze) => {
14190
14219
  var as;
14191
- const st = Je.target;
14220
+ const st = Ze.target;
14192
14221
  ge.current && !ge.current.contains(st) && !((as = st.closest) != null && as.call(st, ".pkt-calendar-popup")) && Kt();
14193
- }, F = (Je) => {
14222
+ }, F = (Ze) => {
14194
14223
  var st;
14195
- Je.key === "Escape" && (Kt(), (st = U.current) == null || st.focus());
14224
+ Ze.key === "Escape" && (Kt(), (st = U.current) == null || st.focus());
14196
14225
  };
14197
14226
  return document.addEventListener("click", R, !0), document.addEventListener("keydown", F), () => {
14198
14227
  document.removeEventListener("click", R, !0), document.removeEventListener("keydown", F);
14199
14228
  };
14200
14229
  }, [je, Kt]);
14201
14230
  const tn = M(() => {
14202
- Ze && !je && Xe(!0);
14203
- }, [Ze, je]), xn = M(
14231
+ Je && !je && Xe(!0);
14232
+ }, [Je, je]), xn = M(
14204
14233
  (R) => {
14205
14234
  var st;
14206
- const F = qm(R, o, h), Je = ho(F);
14207
- _t(Je), mt(Je), !o && !h && (Kt(), (st = U.current) == null || st.focus());
14235
+ const F = qm(R, o, h), Ze = ho(F);
14236
+ _t(Ze), mt(Ze), !o && !h && (Kt(), (st = U.current) == null || st.focus());
14208
14237
  },
14209
14238
  [o, h, _t, mt, Kt]
14210
14239
  ), nt = M(() => {
@@ -14212,19 +14241,19 @@ function Xm(n, e) {
14212
14241
  Kt(), (R = U.current) == null || R.focus();
14213
14242
  }, [Kt]), Ms = M(
14214
14243
  (R) => {
14215
- const F = R.target.value, Je = F ? [F] : [];
14216
- _t(Je), mt(Je);
14244
+ const F = R.target.value, Ze = F ? [F] : [];
14245
+ _t(Ze), mt(Ze);
14217
14246
  },
14218
14247
  [_t, mt]
14219
14248
  ), In = M(
14220
14249
  (R) => {
14221
- const F = R.target.value, Je = _e[1] ?? "", st = [F, Je].filter(Boolean);
14250
+ const F = R.target.value, Ze = _e[1] ?? "", st = [F, Ze].filter(Boolean);
14222
14251
  _t(st), mt(st);
14223
14252
  },
14224
14253
  [_e, _t, mt]
14225
14254
  ), Es = M(
14226
14255
  (R) => {
14227
- const F = _e[0] ?? "", Je = R.target.value, st = [F, Je].filter(Boolean);
14256
+ const F = _e[0] ?? "", Ze = R.target.value, st = [F, Ze].filter(Boolean);
14228
14257
  _t(st), mt(st);
14229
14258
  },
14230
14259
  [_e, _t, mt]
@@ -14232,8 +14261,8 @@ function Xm(n, e) {
14232
14261
  _e.length === 2 && !Vm(_e) && (_t([_e[0]]), mt([_e[0]]));
14233
14262
  }, [_e, _t, mt]), Tt = M(
14234
14263
  (R) => {
14235
- const F = gn(R), Je = d ? gn(d) : null, st = k ? gn(k) : null;
14236
- if (F && !isNaN(F.getTime()) && (!Je || F >= Je) && (!st || F <= st)) {
14264
+ const F = gn(R), Ze = d ? gn(d) : null, st = k ? gn(k) : null;
14265
+ if (F && !isNaN(F.getTime()) && (!Ze || F >= Ze) && (!st || F <= st)) {
14237
14266
  const as = tm([..._e, R], d, k, b, v), ki = [...new Set(as)];
14238
14267
  _t(ki), mt(ki);
14239
14268
  }
@@ -14253,7 +14282,7 @@ function Xm(n, e) {
14253
14282
  [Tt]
14254
14283
  ), ir = M(
14255
14284
  (R) => {
14256
- const F = _e.filter((Je) => Je !== R);
14285
+ const F = _e.filter((Ze) => Ze !== R);
14257
14286
  _t(F), mt(F);
14258
14287
  },
14259
14288
  [_e, _t, mt]
@@ -14262,7 +14291,7 @@ function Xm(n, e) {
14262
14291
  F ? F.requestSubmit() : R == null || R.blur();
14263
14292
  }, []), rr = M(
14264
14293
  (R) => {
14265
- Oi(
14294
+ Di(
14266
14295
  R.nativeEvent,
14267
14296
  () => Ft(),
14268
14297
  () => nn(U.current),
@@ -14276,7 +14305,7 @@ function Xm(n, e) {
14276
14305
  [Ft, nn]
14277
14306
  ), ar = M(
14278
14307
  (R) => {
14279
- Oi(
14308
+ Di(
14280
14309
  R.nativeEvent,
14281
14310
  () => Ft(),
14282
14311
  () => nn(U.current),
@@ -14293,7 +14322,7 @@ function Xm(n, e) {
14293
14322
  [Ft, nn]
14294
14323
  ), or = M(
14295
14324
  (R) => {
14296
- Oi(
14325
+ Di(
14297
14326
  R.nativeEvent,
14298
14327
  () => Ft(),
14299
14328
  () => nn(V.current),
@@ -14307,7 +14336,7 @@ function Xm(n, e) {
14307
14336
  [Ft, nn]
14308
14337
  ), lr = M(
14309
14338
  (R) => {
14310
- Oi(
14339
+ Di(
14311
14340
  R.nativeEvent,
14312
14341
  () => Ft(),
14313
14342
  () => nn(U.current),
@@ -14322,8 +14351,8 @@ function Xm(n, e) {
14322
14351
  [Ft, nn, yi]
14323
14352
  );
14324
14353
  return be(() => {
14325
- var Je;
14326
- const R = (Je = ge.current) == null ? void 0 : Je.closest("form");
14354
+ var Ze;
14355
+ const R = (Ze = ge.current) == null ? void 0 : Ze.closest("form");
14327
14356
  if (!R) return;
14328
14357
  const F = () => {
14329
14358
  window.setTimeout(() => {
@@ -14373,9 +14402,9 @@ function Xm(n, e) {
14373
14402
  name: We,
14374
14403
  placeholder: Ee,
14375
14404
  fullwidth: L,
14376
- hasFieldset: O,
14405
+ hasFieldset: D,
14377
14406
  inline: W,
14378
- helptext: J,
14407
+ helptext: Z,
14379
14408
  helptextDropdown: oe,
14380
14409
  helptextDropdownButton: we,
14381
14410
  hasError: Y,
@@ -14390,9 +14419,9 @@ function Xm(n, e) {
14390
14419
  minStr: d,
14391
14420
  maxStr: k,
14392
14421
  effectiveCurrentMonth: ot,
14393
- today: D,
14422
+ today: O,
14394
14423
  inputType: et,
14395
- isIOSDevice: Ze,
14424
+ isIOSDevice: Je,
14396
14425
  strings: m,
14397
14426
  inputClasses: C,
14398
14427
  buttonClasses: j,
@@ -14424,7 +14453,7 @@ function Xm(n, e) {
14424
14453
  restProps: Ie
14425
14454
  };
14426
14455
  }
14427
- const Zm = Ce((n, e) => {
14456
+ const Jm = Ce((n, e) => {
14428
14457
  const t = Xm(n, e), s = ["pkt-datepicker", t.className].filter(Boolean).join(" ");
14429
14458
  return /* @__PURE__ */ w("div", { className: s, children: [
14430
14459
  /* @__PURE__ */ u(
@@ -14489,8 +14518,8 @@ const Zm = Ce((n, e) => {
14489
14518
  )
14490
14519
  ] });
14491
14520
  });
14492
- Zm.displayName = "PktDatepicker";
14493
- const Jm = {
14521
+ Jm.displayName = "PktDatepicker";
14522
+ const Zm = {
14494
14523
  dropFilesHere: "Slipp filene her ...",
14495
14524
  selectOrDragFiles: "Dra filer hit for å laste dem opp eller ",
14496
14525
  chooseFiles: "velg filer"
@@ -14520,7 +14549,7 @@ class ig {
14520
14549
  };
14521
14550
  }
14522
14551
  }
14523
- const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag = Ce(
14552
+ const Jr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag = Ce(
14524
14553
  ({
14525
14554
  id: n,
14526
14555
  multiple: e,
@@ -14540,7 +14569,7 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14540
14569
  [b]
14541
14570
  );
14542
14571
  Gi(g, () => p.current);
14543
- const [$, D] = ce(!1), S = Te(() => o ? e ? tg : ng : e ? Jm : eg, [e, o]), T = M(
14572
+ const [$, O] = ce(!1), S = Te(() => o ? e ? tg : ng : e ? Zm : eg, [e, o]), T = M(
14544
14573
  (N) => {
14545
14574
  if (p.current)
14546
14575
  try {
@@ -14559,7 +14588,7 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14559
14588
  s(H), p.current && (p.current.value = "");
14560
14589
  },
14561
14590
  [s]
14562
- ), O = (N) => {
14591
+ ), D = (N) => {
14563
14592
  const H = N.target.files;
14564
14593
  if (H.length === 0) {
14565
14594
  e && T(t);
@@ -14568,14 +14597,14 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14568
14597
  L(Array.from(H));
14569
14598
  }, W = (N) => {
14570
14599
  L(N);
14571
- }, J = (N) => {
14572
- if (N.preventDefault(), D(!1), l) return;
14600
+ }, Z = (N) => {
14601
+ if (N.preventDefault(), O(!1), l) return;
14573
14602
  const H = N.dataTransfer.files, B = Array.from(H);
14574
14603
  W(B);
14575
14604
  }, oe = (N) => {
14576
- N.preventDefault(), !l && D(!0);
14605
+ N.preventDefault(), !l && O(!0);
14577
14606
  }, we = () => {
14578
- D(!1);
14607
+ O(!1);
14579
14608
  }, Y = M(
14580
14609
  (N) => {
14581
14610
  var B;
@@ -14586,7 +14615,7 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14586
14615
  return /* @__PURE__ */ w(
14587
14616
  "div",
14588
14617
  {
14589
- onDrop: J,
14618
+ onDrop: Z,
14590
14619
  onDragOver: oe,
14591
14620
  onDragLeave: we,
14592
14621
  onClick: Y,
@@ -14603,7 +14632,7 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14603
14632
  type: "file",
14604
14633
  ref: p,
14605
14634
  multiple: e,
14606
- onChange: O,
14635
+ onChange: D,
14607
14636
  accept: b,
14608
14637
  disabled: l,
14609
14638
  name: r === "form" && i || void 0,
@@ -14661,13 +14690,13 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14661
14690
  fullwidth: b = !1,
14662
14691
  label: v,
14663
14692
  name: $,
14664
- optionalTag: D = !1,
14693
+ optionalTag: O = !1,
14665
14694
  optionalText: S,
14666
14695
  requiredTag: T = !1,
14667
14696
  requiredText: L,
14668
- tagText: O = null,
14697
+ tagText: D = null,
14669
14698
  placeholder: W,
14670
- rows: J,
14699
+ rows: Z,
14671
14700
  useWrapper: oe = !0,
14672
14701
  onChange: we,
14673
14702
  value: Y,
@@ -14698,11 +14727,11 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14698
14727
  helptextDropdownButton: g,
14699
14728
  inline: p,
14700
14729
  label: v,
14701
- optionalTag: D,
14730
+ optionalTag: O,
14702
14731
  optionalText: S,
14703
14732
  requiredTag: T,
14704
14733
  requiredText: L,
14705
- tagText: O,
14734
+ tagText: D,
14706
14735
  useWrapper: oe,
14707
14736
  counter: s,
14708
14737
  counterCurrent: We,
@@ -14716,7 +14745,7 @@ const Zr = Ki({}), rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", ag
14716
14745
  id: ke,
14717
14746
  placeholder: W,
14718
14747
  disabled: a,
14719
- rows: J,
14748
+ rows: Z,
14720
14749
  "aria-labelledby": ie,
14721
14750
  "aria-invalid": l,
14722
14751
  "aria-errormessage": `${n}-error`,
@@ -14808,7 +14837,7 @@ const lg = Symbol("comment"), cg = (n) => {
14808
14837
  )
14809
14838
  ] })
14810
14839
  ] }, i)) }) : null, hg = (n) => {
14811
- const e = hi(Zr);
14840
+ const e = hi(Jr);
14812
14841
  return /* @__PURE__ */ u(
14813
14842
  "input",
14814
14843
  {
@@ -14887,7 +14916,7 @@ const lg = Symbol("comment"), cg = (n) => {
14887
14916
  /* @__PURE__ */ u($t, { skin: "tertiary", size: "small", onClick: n.onCancel, children: "Avbryt" })
14888
14917
  ] });
14889
14918
  }, bg = (n) => {
14890
- const e = hi(Zr);
14919
+ const e = hi(Jr);
14891
14920
  return /* @__PURE__ */ u("input", { type: "hidden", name: `${e.name}-targetFilename`, value: n.targetFilename });
14892
14921
  }, yg = (n) => {
14893
14922
  const e = n("targetFilename");
@@ -15088,7 +15117,7 @@ const fo = 2, xg = (n) => {
15088
15117
  default:
15089
15118
  return t;
15090
15119
  }
15091
- }, sr = (n) => n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${Math.round(n / 1024)} KB` : n < 1024 * 1024 * 1024 ? `${Math.round(n / (1024 * 1024))} MB` : `${Math.round(n / (1024 * 1024 * 1024))} GB`, Jr = (n) => /* @__PURE__ */ u(
15120
+ }, sr = (n) => n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${Math.round(n / 1024)} KB` : n < 1024 * 1024 * 1024 ? `${Math.round(n / (1024 * 1024))} MB` : `${Math.round(n / (1024 * 1024 * 1024))} GB`, Zr = (n) => /* @__PURE__ */ u(
15092
15121
  "button",
15093
15122
  {
15094
15123
  onClick: n.onClick,
@@ -15122,7 +15151,7 @@ const fo = 2, xg = (n) => {
15122
15151
  }
15123
15152
  ),
15124
15153
  /* @__PURE__ */ u("p", { className: "pkt-fileupload__queue-display__item__title", "aria-label": "Filnavn", children: /* @__PURE__ */ u(bi, { children: e.attributes.targetFilename }) }),
15125
- /* @__PURE__ */ u(Jr, { onClick: n }),
15154
+ /* @__PURE__ */ u(Zr, { onClick: n }),
15126
15155
  t ? /* @__PURE__ */ w(Be, { children: [
15127
15156
  /* @__PURE__ */ u(
15128
15157
  ta,
@@ -15138,7 +15167,7 @@ const fo = 2, xg = (n) => {
15138
15167
  /* @__PURE__ */ u("span", { className: "pkt-fileupload__queue-display__item__percentage", "aria-hidden": "true", children: `${Math.round(e.progress * 100)}%` })
15139
15168
  ] }) : /* @__PURE__ */ u(Tg, {})
15140
15169
  ] });
15141
- }, Dg = ({
15170
+ }, Og = ({
15142
15171
  transferItem: n,
15143
15172
  onRemove: e
15144
15173
  }) => {
@@ -15153,7 +15182,7 @@ const fo = 2, xg = (n) => {
15153
15182
  }
15154
15183
  ),
15155
15184
  /* @__PURE__ */ u("p", { className: "pkt-fileupload__queue-display__item__title", children: /* @__PURE__ */ u(bi, { children: n.attributes.targetFilename }) }),
15156
- /* @__PURE__ */ u(Jr, { onClick: e, label: "Fjern", ariaLabel: "Fjern fil som feilet under opplasting" }),
15185
+ /* @__PURE__ */ u(Zr, { onClick: e, label: "Fjern", ariaLabel: "Fjern fil som feilet under opplasting" }),
15157
15186
  /* @__PURE__ */ u(
15158
15187
  ta,
15159
15188
  {
@@ -15167,7 +15196,7 @@ const fo = 2, xg = (n) => {
15167
15196
  /* @__PURE__ */ u("span", { className: "pkt-fileupload__queue-display__item__filesize", children: sr(n.file.size) }),
15168
15197
  n.errorMessage && /* @__PURE__ */ u("span", { className: "pkt-fileupload__queue-display__item__error-message", children: n.errorMessage })
15169
15198
  ] });
15170
- }, Og = ({
15199
+ }, Dg = ({
15171
15200
  transferItem: n,
15172
15201
  onRemove: e
15173
15202
  }) => /* @__PURE__ */ w(Be, { children: [
@@ -15180,9 +15209,9 @@ const fo = 2, xg = (n) => {
15180
15209
  }
15181
15210
  ),
15182
15211
  /* @__PURE__ */ u("p", { className: "pkt-fileupload__queue-display__item__title", children: /* @__PURE__ */ u(bi, { children: n.attributes.targetFilename }) }),
15183
- /* @__PURE__ */ u(Jr, { onClick: e, label: "Fjern", ariaLabel: "Fjern fil som feilet under opplasting" }),
15212
+ /* @__PURE__ */ u(Zr, { onClick: e, label: "Fjern", ariaLabel: "Fjern fil som feilet under opplasting" }),
15184
15213
  n.errorMessage && /* @__PURE__ */ u("span", { className: "pkt-fileupload__queue-display__item__error-message", children: n.errorMessage })
15185
- ] }), Mg = ({ transferItem: n, onRemove: e }) => n.showProgress ? /* @__PURE__ */ u(Dg, { transferItem: n, onRemove: e }) : /* @__PURE__ */ u(Og, { transferItem: n, onRemove: e }), Eg = ({
15214
+ ] }), Mg = ({ transferItem: n, onRemove: e }) => n.showProgress ? /* @__PURE__ */ u(Og, { transferItem: n, onRemove: e }) : /* @__PURE__ */ u(Dg, { transferItem: n, onRemove: e }), Eg = ({
15186
15215
  operation: n,
15187
15216
  onActivate: e,
15188
15217
  transferItem: t
@@ -15528,13 +15557,13 @@ const Pg = (n) => {
15528
15557
  formatErrorMessage: v,
15529
15558
  maxFileSize: $,
15530
15559
  // default to 5 MB
15531
- sizeErrorMessage: D,
15560
+ sizeErrorMessage: O,
15532
15561
  onFileValidation: S,
15533
15562
  errorMessage: T,
15534
15563
  hasError: L = !1,
15535
- disabled: O = !1,
15564
+ disabled: D = !1,
15536
15565
  label: W,
15537
- helptext: J,
15566
+ helptext: Z,
15538
15567
  optionalTag: oe,
15539
15568
  requiredTag: we,
15540
15569
  enableImagePreview: Y = !1,
@@ -15545,8 +15574,8 @@ const Pg = (n) => {
15545
15574
  var ne;
15546
15575
  if (b && b.length > 0) {
15547
15576
  const ve = ((ne = V.name.split(".").pop()) == null ? void 0 : ne.toLowerCase()) || "", ge = V.type.toLowerCase();
15548
- if (!b.some((Ze) => {
15549
- const m = Ze.toLowerCase().replace(/^\./, "");
15577
+ if (!b.some((Je) => {
15578
+ const m = Je.toLowerCase().replace(/^\./, "");
15550
15579
  if (m.includes("/")) {
15551
15580
  if (m.endsWith("/*")) {
15552
15581
  const d = m.replace("/*", "");
@@ -15556,17 +15585,17 @@ const Pg = (n) => {
15556
15585
  }
15557
15586
  return ve === m;
15558
15587
  })) {
15559
- const Ze = b.join(", "), m = `Ugyldig filtype. Tillatte formater: ${Ze}`;
15560
- return (v == null ? void 0 : v.replace("{formats}", Ze)) || m;
15588
+ const Je = b.join(", "), m = `Ugyldig filtype. Tillatte formater: ${Je}`;
15589
+ return (v == null ? void 0 : v.replace("{formats}", Je)) || m;
15561
15590
  }
15562
15591
  }
15563
15592
  if (ue && V.size > ue) {
15564
15593
  const ve = sr(ue), ge = `Filen er for stor. Maks størrelse er ${ve}.`;
15565
- return (D == null ? void 0 : D.replace("{maxSize}", ve)) || ge;
15594
+ return (O == null ? void 0 : O.replace("{maxSize}", ve)) || ge;
15566
15595
  }
15567
15596
  return S ? S(V) : null;
15568
15597
  },
15569
- [b, v, ue, D, S]
15598
+ [b, v, ue, O, S]
15570
15599
  );
15571
15600
  n !== void 0 && e !== void 0 && console.warn(
15572
15601
  "PktFileupload: Både value og defaultValue er angitt. Komponenten kan være enten 'controlled' eller 'uncontrolled', ikke begge deler. Bruk kun én av dem. Se https://react.dev/reference/react-dom/components/input#controlling-an-input-with-a-state-variable"
@@ -15601,7 +15630,7 @@ const Pg = (n) => {
15601
15630
  l && l(ve);
15602
15631
  },
15603
15632
  [l, ie]
15604
- ), De = M(
15633
+ ), Oe = M(
15605
15634
  (V) => {
15606
15635
  var ve;
15607
15636
  const ne = ie.filter((ge) => ge.fileId !== V);
@@ -15632,7 +15661,7 @@ const Pg = (n) => {
15632
15661
  return { totalCount: V, uploadedCount: 0, failedCount: 0 };
15633
15662
  let ne = 0, ve = 0;
15634
15663
  for (const ge of ie) {
15635
- const et = B.find((Ze) => Ze.fileId === ge.fileId);
15664
+ const et = B.find((Je) => Je.fileId === ge.fileId);
15636
15665
  (et == null ? void 0 : et.progress) === "done" && ne++, (et == null ? void 0 : et.progress) === "error" && ve++;
15637
15666
  }
15638
15667
  return { totalCount: V, uploadedCount: ne, failedCount: ve };
@@ -15642,11 +15671,11 @@ const Pg = (n) => {
15642
15671
  className: $e("pkt-fileupload", {
15643
15672
  "pkt-fileupload--full-width": p,
15644
15673
  "pkt-fileupload--error": ae,
15645
- "pkt-fileupload--disabled": O
15674
+ "pkt-fileupload--disabled": D
15646
15675
  }),
15647
- "aria-disabled": O,
15648
- ...O ? { inert: "" } : {},
15649
- children: /* @__PURE__ */ w(Zr.Provider, { value: { name: N.name || "", multiple: !!s, id: t }, children: [
15676
+ "aria-disabled": D,
15677
+ ...D ? { inert: "" } : {},
15678
+ children: /* @__PURE__ */ w(Jr.Provider, { value: { name: N.name || "", multiple: !!s, id: t }, children: [
15650
15679
  /* @__PURE__ */ u("div", { id: Le.uploaded, className: "pkt-sr-only", "aria-live": "polite", "aria-atomic": "true", children: _e > 0 && A > 0 && `${A} av ${_e} ${Xe} lastet opp` }),
15651
15680
  /* @__PURE__ */ u("div", { id: Le.errors, className: "pkt-sr-only", "aria-live": "assertive", "aria-atomic": "true", children: _e > 0 && je > 0 && `Feil ved opplasting: ${je} av ${_e} ${Xe} feilet` }),
15652
15681
  /* @__PURE__ */ u(
@@ -15661,7 +15690,7 @@ const Pg = (n) => {
15661
15690
  ref: H,
15662
15691
  accept: K ? ".jpeg, .jpg, .png, .gif, .webp, .heic" : Ae,
15663
15692
  isThumbnailView: K,
15664
- disabled: O,
15693
+ disabled: D,
15665
15694
  srAnnouncementIds: Le
15666
15695
  }
15667
15696
  ),
@@ -15670,13 +15699,13 @@ const Pg = (n) => {
15670
15699
  jg,
15671
15700
  {
15672
15701
  files: ie,
15673
- cancelTransfer: De,
15702
+ cancelTransfer: Oe,
15674
15703
  truncateTail: o,
15675
15704
  transfers: B,
15676
15705
  uploadStrategy: i,
15677
15706
  ItemRenderer: We,
15678
15707
  enableImagePreview: K && Y,
15679
- queueItemOperations: ze.map((V) => V(Re)).concat(mg(De))
15708
+ queueItemOperations: ze.map((V) => V(Re)).concat(mg(Oe))
15680
15709
  }
15681
15710
  )
15682
15711
  ] })
@@ -15687,8 +15716,8 @@ const Pg = (n) => {
15687
15716
  {
15688
15717
  forId: t,
15689
15718
  label: W,
15690
- helptext: J,
15691
- disabled: O,
15719
+ helptext: Z,
15720
+ disabled: D,
15692
15721
  hasError: ae,
15693
15722
  optionalTag: oe,
15694
15723
  requiredTag: we,
@@ -15718,7 +15747,7 @@ const vb = ({
15718
15747
  console.log($.detail);
15719
15748
  }
15720
15749
  }) => {
15721
- var D, S;
15750
+ var O, S;
15722
15751
  const $ = [s, "pkt-footer"].filter(Boolean).join(" ");
15723
15752
  return /* @__PURE__ */ u("footer", { className: $, "data-mode": "dark", children: /* @__PURE__ */ w("div", { className: "pkt-footer__container", children: [
15724
15753
  /* @__PURE__ */ w("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -15726,7 +15755,7 @@ const vb = ({
15726
15755
  /* @__PURE__ */ u("h2", { className: "pkt-footer__title", children: n.title }),
15727
15756
  /* @__PURE__ */ w("ul", { className: "pkt-footer__list", children: [
15728
15757
  n.text && /* @__PURE__ */ u("li", { className: "pkt-footer__text", children: n.text }),
15729
- (D = n.links) == null ? void 0 : D.map((T, L) => /* @__PURE__ */ u("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ w(
15758
+ (O = n.links) == null ? void 0 : O.map((T, L) => /* @__PURE__ */ u("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ w(
15730
15759
  "a",
15731
15760
  {
15732
15761
  className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
@@ -16051,13 +16080,13 @@ const Br = Ce(
16051
16080
  iconNameRight: b,
16052
16081
  inline: v = !1,
16053
16082
  fullwidth: $ = !1,
16054
- label: D,
16083
+ label: O,
16055
16084
  name: S,
16056
16085
  optionalTag: T = !1,
16057
16086
  optionalText: L,
16058
- requiredTag: O = !1,
16087
+ requiredTag: D = !1,
16059
16088
  requiredText: W,
16060
- tagText: J = null,
16089
+ tagText: Z = null,
16061
16090
  placeholder: oe,
16062
16091
  prefix: we,
16063
16092
  suffix: Y,
@@ -16078,7 +16107,7 @@ const Br = Ce(
16078
16107
  skipForwardTestid: Ee = !1,
16079
16108
  ...Ae
16080
16109
  }, te) => {
16081
- const Ue = [a, "pkt-textinput"].join(" "), Ie = N === "search" && !b && !B, xe = N === "date" && Q ? Q.slice(0, 10) : Q, [De, Re] = ce((Q == null ? void 0 : Q.length) || 0), ze = `${n}`, Le = `${ze}-label`, _e = t || Le, A = (je) => {
16110
+ const Ue = [a, "pkt-textinput"].join(" "), Ie = N === "search" && !b && !B, xe = N === "date" && Q ? Q.slice(0, 10) : Q, [Oe, Re] = ce((Q == null ? void 0 : Q.length) || 0), ze = `${n}`, Le = `${ze}-label`, _e = t || Le, A = (je) => {
16082
16111
  var Xe, U;
16083
16112
  i && Re(((U = (Xe = je.currentTarget) == null ? void 0 : Xe.value) == null ? void 0 : U.length) || 0), P && P(je);
16084
16113
  };
@@ -16097,15 +16126,15 @@ const Br = Ce(
16097
16126
  helptextDropdown: g,
16098
16127
  helptextDropdownButton: p,
16099
16128
  inline: v,
16100
- label: D,
16129
+ label: O,
16101
16130
  optionalTag: T,
16102
16131
  optionalText: L,
16103
- requiredTag: O,
16132
+ requiredTag: D,
16104
16133
  requiredText: W,
16105
- tagText: J,
16134
+ tagText: Z,
16106
16135
  useWrapper: H,
16107
16136
  counter: i,
16108
- counterCurrent: De,
16137
+ counterCurrent: Oe,
16109
16138
  counterMaxLength: r,
16110
16139
  children: /* @__PURE__ */ w(
16111
16140
  "div",
@@ -16120,7 +16149,7 @@ const Br = Ce(
16120
16149
  {
16121
16150
  ...Ae,
16122
16151
  ref: te,
16123
- className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${r && De > r ? "pkt-input--counter-error" : ""}`,
16152
+ className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${r && Oe > r ? "pkt-input--counter-error" : ""}`,
16124
16153
  type: N,
16125
16154
  name: `${S || n}`,
16126
16155
  value: xe,
@@ -16175,13 +16204,13 @@ const wl = Ce(
16175
16204
  searchPlaceholder: b = "Søk",
16176
16205
  representing: v,
16177
16206
  serviceLink: $,
16178
- serviceClick: D,
16207
+ serviceClick: O,
16179
16208
  serviceName: S,
16180
16209
  user: T,
16181
16210
  userMenu: L,
16182
- userMenuFooter: O,
16211
+ userMenuFooter: D,
16183
16212
  userOptions: W,
16184
- canChangeRepresentation: J = !1,
16213
+ canChangeRepresentation: Z = !1,
16185
16214
  changeRepresentation: oe,
16186
16215
  hideLogo: we = !1,
16187
16216
  logoLink: Y,
@@ -16193,10 +16222,10 @@ const wl = Ce(
16193
16222
  }, ae) => {
16194
16223
  const me = H === "fixed", ue = B === "hide";
16195
16224
  be(() => {
16196
- O && console.warn(
16225
+ D && console.warn(
16197
16226
  'PktHeaderService: The "userMenuFooter" prop is deprecated and will be removed in a future version. Please use "userMenu" instead.'
16198
16227
  );
16199
- }, [O]), be(() => {
16228
+ }, [D]), be(() => {
16200
16229
  W && console.warn('PktHeaderService: The "userOptions" prop is no longer available. Please use "userMenu" instead.');
16201
16230
  }, [W]), be(() => {
16202
16231
  T != null && T.shortname && console.warn(
@@ -16216,7 +16245,7 @@ const wl = Ce(
16216
16245
  be(() => {
16217
16246
  l !== void 0 && ie(l);
16218
16247
  }, [l]);
16219
- const [We, K] = ce(!1), [P, Ee] = ce(0), [Ae, te] = ce(!1), [Ue, Ie] = ce(!1), xe = pe(null), De = pe(null), Re = pe(null), ze = pe(null), Le = pe(null), _e = pe(null), A = pe(null), je = pe(!1), Xe = qg(xe), U = Xe < n, V = Xe < e, ne = M(
16248
+ const [We, K] = ce(!1), [P, Ee] = ce(0), [Ae, te] = ce(!1), [Ue, Ie] = ce(!1), xe = pe(null), Oe = pe(null), Re = pe(null), ze = pe(null), Le = pe(null), _e = pe(null), A = pe(null), je = pe(!1), Xe = qg(xe), U = Xe < n, V = Xe < e, ne = M(
16220
16249
  (d) => {
16221
16250
  xe.current = d, typeof ae == "function" ? ae(d) : ae && (ae.current = d);
16222
16251
  },
@@ -16228,7 +16257,7 @@ const wl = Ce(
16228
16257
  let j;
16229
16258
  switch (k) {
16230
16259
  case "user":
16231
- j = De;
16260
+ j = Oe;
16232
16261
  break;
16233
16262
  case "slot":
16234
16263
  j = Re;
@@ -16276,7 +16305,7 @@ const wl = Ce(
16276
16305
  d === "slot" ? te(de) : Ie(de);
16277
16306
  },
16278
16307
  [V, U]
16279
- ), Ze = M(
16308
+ ), Je = M(
16280
16309
  (d) => {
16281
16310
  se !== "none" ? ie("none") : (A.current = document.activeElement, ie(d));
16282
16311
  },
@@ -16341,7 +16370,7 @@ const wl = Ce(
16341
16370
  path: "https://punkt-cdn.oslo.kommune.no/16.0/logos/"
16342
16371
  }
16343
16372
  ) }),
16344
- S && /* @__PURE__ */ u("span", { className: "pkt-header-service__service-name", children: $ ? /* @__PURE__ */ u(ea, { href: $, className: "pkt-header-service__service-link ", children: S }) : D ? /* @__PURE__ */ u("button", { className: "pkt-link-button pkt-link pkt-header-service__service-link", onClick: D, children: S }) : /* @__PURE__ */ u("span", { className: "pkt-header-service__service-link", children: S }) })
16373
+ S && /* @__PURE__ */ u("span", { className: "pkt-header-service__service-name", children: $ ? /* @__PURE__ */ u(ea, { href: $, className: "pkt-header-service__service-link ", children: S }) : O ? /* @__PURE__ */ u("button", { className: "pkt-link-button pkt-link pkt-header-service__service-link", onClick: O, children: S }) : /* @__PURE__ */ u("span", { className: "pkt-header-service__service-link", children: S }) })
16345
16374
  ]
16346
16375
  }
16347
16376
  ),
@@ -16361,7 +16390,7 @@ const wl = Ce(
16361
16390
  iconName: "menu",
16362
16391
  size: U ? "small" : "medium",
16363
16392
  state: se === "slot" ? "active" : "normal",
16364
- onClick: () => Ze("slot"),
16393
+ onClick: () => Je("slot"),
16365
16394
  "aria-expanded": se === "slot",
16366
16395
  "aria-controls": "mobile-slot-menu",
16367
16396
  "aria-label": "Åpne meny",
@@ -16396,7 +16425,7 @@ const wl = Ce(
16396
16425
  variant: "icon-only",
16397
16426
  iconName: "magnifying-glass-big",
16398
16427
  size: U ? "small" : "medium",
16399
- onClick: () => Ze("search"),
16428
+ onClick: () => Je("search"),
16400
16429
  state: se === "search" ? "active" : "normal",
16401
16430
  "aria-expanded": se === "search",
16402
16431
  "aria-controls": "mobile-search-menu",
@@ -16469,7 +16498,7 @@ const wl = Ce(
16469
16498
  {
16470
16499
  className: "pkt-header-service__user-container",
16471
16500
  onBlur: (d) => ve(d, "user"),
16472
- ref: De,
16501
+ ref: Oe,
16473
16502
  children: [
16474
16503
  /* @__PURE__ */ w(
16475
16504
  $t,
@@ -16484,7 +16513,7 @@ const wl = Ce(
16484
16513
  variant: "icons-right-and-left",
16485
16514
  iconName: "user",
16486
16515
  secondIconName: se === "user" ? "chevron-thin-up" : "chevron-thin-down",
16487
- onClick: () => Ze("user"),
16516
+ onClick: () => Je("user"),
16488
16517
  children: [
16489
16518
  /* @__PURE__ */ u("span", { className: "pkt-sr-only", children: "Brukermeny: " }),
16490
16519
  (v == null ? void 0 : v.name) || T.name
@@ -16505,7 +16534,7 @@ const wl = Ce(
16505
16534
  formattedLastLoggedIn: ke,
16506
16535
  representing: v,
16507
16536
  userMenu: L,
16508
- canChangeRepresentation: J,
16537
+ canChangeRepresentation: Z,
16509
16538
  changeRepresentation: oe,
16510
16539
  logoutOnClick: a === "userMenu" || a === "both" ? o : void 0
16511
16540
  }
@@ -16555,18 +16584,18 @@ const Xg = kn({
16555
16584
  events: {
16556
16585
  onToggleHelpText: "toggleHelpText"
16557
16586
  }
16558
- }), Zg = Ce(
16587
+ }), Jg = Ce(
16559
16588
  ({ children: n, ...e }, t) => /* @__PURE__ */ u(Xg, { ...e, ref: t, children: /* @__PURE__ */ u("div", { className: "pkt-contents", children: n }) })
16560
16589
  );
16561
- Zg.displayName = "PktHelptext";
16562
- const Jg = Ce(
16590
+ Jg.displayName = "PktHelptext";
16591
+ const Zg = Ce(
16563
16592
  ({ label: n, id: e, children: t, ...s }, i) => /* @__PURE__ */ w("div", { className: "pkt-form-group", children: [
16564
16593
  /* @__PURE__ */ u("label", { htmlFor: e, className: "pkt-form-label", children: n }),
16565
16594
  /* @__PURE__ */ u("input", { className: "pkt-form-input", id: e, ...s, ref: i }),
16566
16595
  t
16567
16596
  ] })
16568
16597
  );
16569
- Jg.displayName = "PktInput";
16598
+ Zg.displayName = "PktInput";
16570
16599
  const ev = ({
16571
16600
  children: n,
16572
16601
  skin: e,
@@ -16598,7 +16627,7 @@ const ev = ({
16598
16627
  ev.displayName = "PktLinkCard";
16599
16628
  const tv = kn({
16600
16629
  tagName: "pkt-loader",
16601
- elementClass: Zt,
16630
+ elementClass: Jt,
16602
16631
  react: yn,
16603
16632
  displayName: "PktLoader",
16604
16633
  events: {}
@@ -16668,7 +16697,7 @@ const rv = Ce(
16668
16697
  requiredText: b,
16669
16698
  tagText: v,
16670
16699
  ...$
16671
- }, D) => {
16700
+ }, O) => {
16672
16701
  const S = [s, "pkt-input-check"].filter(Boolean).join(" "), T = [
16673
16702
  "pkt-input-check__input",
16674
16703
  i ? "pkt-input-check__input--tile" : "",
@@ -16676,7 +16705,7 @@ const rv = Ce(
16676
16705
  ].filter(Boolean).join(" "), L = [
16677
16706
  "pkt-input-check__input-checkbox",
16678
16707
  o ? "pkt-input-check__input-checkbox--error" : ""
16679
- ].filter(Boolean).join(" "), O = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), W = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ w(Be, { children: [
16708
+ ].filter(Boolean).join(" "), D = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), W = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), Z = () => /* @__PURE__ */ w(Be, { children: [
16680
16709
  v && /* @__PURE__ */ u("span", { className: W + " pkt-tag--gray", children: v }),
16681
16710
  f && /* @__PURE__ */ u("span", { className: W + " pkt-tag--blue-light", children: g }),
16682
16711
  p && /* @__PURE__ */ u("span", { className: W + " pkt-tag--beige", children: b })
@@ -16685,7 +16714,7 @@ const rv = Ce(
16685
16714
  /* @__PURE__ */ u(
16686
16715
  "input",
16687
16716
  {
16688
- ref: D,
16717
+ ref: O,
16689
16718
  id: n,
16690
16719
  type: "radio",
16691
16720
  name: e,
@@ -16695,10 +16724,10 @@ const rv = Ce(
16695
16724
  ...$
16696
16725
  }
16697
16726
  ),
16698
- /* @__PURE__ */ w("label", { className: O, htmlFor: n, children: [
16727
+ /* @__PURE__ */ w("label", { className: D, htmlFor: n, children: [
16699
16728
  t,
16700
16729
  " ",
16701
- J(),
16730
+ Z(),
16702
16731
  a && /* @__PURE__ */ u("div", { className: "pkt-input-check__input-helptext", children: a })
16703
16732
  ] })
16704
16733
  ] }) });
@@ -16723,13 +16752,13 @@ const av = Ce(
16723
16752
  onSuggestionClick: b,
16724
16753
  ...v
16725
16754
  }, $) => {
16726
- const D = (O, W) => {
16727
- O ? O() : b && b(W);
16728
- }, S = (O) => {
16729
- l = O.target.value;
16755
+ const O = (D, W) => {
16756
+ D ? D() : b && b(W);
16757
+ }, S = (D) => {
16758
+ l = D.target.value;
16730
16759
  }, T = `pkt-searchinput pkt-searchinput--${n} ${t ? "pkt-searchinput--fullwidth" : ""}`;
16731
16760
  let L;
16732
- return h ? L = (O) => /* @__PURE__ */ u("form", { role: "search", className: T, action: h, method: f, children: O }) : L = (O) => /* @__PURE__ */ u("div", { role: "search", className: T, children: O }), L(
16761
+ return h ? L = (D) => /* @__PURE__ */ u("form", { role: "search", className: T, action: h, method: f, children: D }) : L = (D) => /* @__PURE__ */ u("div", { role: "search", className: T, children: D }), L(
16733
16762
  /* @__PURE__ */ w(Be, { children: [
16734
16763
  i && /* @__PURE__ */ u("label", { htmlFor: i ? s : void 0, className: i ? "pkt-inputwrapper__label" : "", children: i }),
16735
16764
  /* @__PURE__ */ w("div", { className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
@@ -16748,8 +16777,8 @@ const av = Ce(
16748
16777
  ref: $,
16749
16778
  "aria-controls": `${s}-suggestions`,
16750
16779
  onChange: g || S,
16751
- onKeyUp: p && ((O) => {
16752
- O.key === "Enter" && (O.preventDefault(), p(l));
16780
+ onKeyUp: p && ((D) => {
16781
+ D.key === "Enter" && (D.preventDefault(), p(l));
16753
16782
  }),
16754
16783
  ...v
16755
16784
  }
@@ -16764,25 +16793,25 @@ const av = Ce(
16764
16793
  color: n === "global" ? "yellow" : void 0,
16765
16794
  type: "submit",
16766
16795
  disabled: e,
16767
- onClick: p && ((O) => {
16768
- O.preventDefault(), p(l);
16796
+ onClick: p && ((D) => {
16797
+ D.preventDefault(), p(l);
16769
16798
  }),
16770
16799
  children: i || a
16771
16800
  }
16772
16801
  )
16773
16802
  ] }),
16774
- o && /* @__PURE__ */ u("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: o.map((O, W) => /* @__PURE__ */ u("li", { children: Pl(
16775
- O.href ? "a" : O.onClick ? "button" : "div",
16803
+ o && /* @__PURE__ */ u("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: o.map((D, W) => /* @__PURE__ */ u("li", { children: Pl(
16804
+ D.href ? "a" : D.onClick ? "button" : "div",
16776
16805
  {
16777
- href: O.href,
16778
- className: `pkt-searchinput__suggestion ${O.onClick ? "pkt-link-button" : ""} ${O.href || O.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
16779
- type: O.onClick ? "button" : void 0,
16780
- onClick: () => D(O.onClick, W),
16781
- onKeyUp: (J) => J.key === "Enter" && D(O.onClick, W)
16806
+ href: D.href,
16807
+ className: `pkt-searchinput__suggestion ${D.onClick ? "pkt-link-button" : ""} ${D.href || D.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
16808
+ type: D.onClick ? "button" : void 0,
16809
+ onClick: () => O(D.onClick, W),
16810
+ onKeyUp: (Z) => Z.key === "Enter" && O(D.onClick, W)
16782
16811
  },
16783
16812
  /* @__PURE__ */ w(Be, { children: [
16784
- O.title && /* @__PURE__ */ u("h3", { className: "pkt-searchinput__suggestion-title", children: O.title }),
16785
- O.text && /* @__PURE__ */ u("p", { className: "pkt-searchinput__suggestion-text", children: O.text })
16813
+ D.title && /* @__PURE__ */ u("h3", { className: "pkt-searchinput__suggestion-title", children: D.title }),
16814
+ D.text && /* @__PURE__ */ u("p", { className: "pkt-searchinput__suggestion-text", children: D.text })
16786
16815
  ] })
16787
16816
  ) }, `search-suggestion-${W}`)) })
16788
16817
  ] })
@@ -16808,24 +16837,24 @@ const ov = Ce(
16808
16837
  label: b,
16809
16838
  name: v,
16810
16839
  optionalTag: $ = !1,
16811
- optionalText: D,
16840
+ optionalText: O,
16812
16841
  requiredTag: S = !1,
16813
16842
  requiredText: T,
16814
16843
  tagText: L,
16815
- ...O
16844
+ ...D
16816
16845
  }, W) => {
16817
- const J = [s, "pkt-select"].join(" ");
16846
+ const Z = [s, "pkt-select"].join(" ");
16818
16847
  return /* @__PURE__ */ u(
16819
16848
  is,
16820
16849
  {
16821
- className: J,
16850
+ className: Z,
16822
16851
  forId: `${f}-input`,
16823
16852
  label: b,
16824
16853
  helptext: o,
16825
16854
  helptextDropdown: l,
16826
16855
  helptextDropdownButton: h,
16827
16856
  optionalTag: $,
16828
- optionalText: D,
16857
+ optionalText: O,
16829
16858
  requiredTag: S,
16830
16859
  requiredText: T,
16831
16860
  tagText: L,
@@ -16845,7 +16874,7 @@ const ov = Ce(
16845
16874
  disabled: i,
16846
16875
  id: `${f}-input`,
16847
16876
  name: v || f,
16848
- ...O,
16877
+ ...D,
16849
16878
  children: t
16850
16879
  }
16851
16880
  )
@@ -16938,12 +16967,12 @@ const kb = ({
16938
16967
  ref: (S) => {
16939
16968
  g(l, S), typeof h == "function" ? h(S) : h && (h.current = S);
16940
16969
  }
16941
- }, D = /* @__PURE__ */ w(Be, { children: [
16970
+ }, O = /* @__PURE__ */ w(Be, { children: [
16942
16971
  i && /* @__PURE__ */ u(ee, { name: i, className: "pkt-icon--small" }),
16943
16972
  n,
16944
16973
  a && /* @__PURE__ */ u(gs, { skin: o, size: "small", children: a })
16945
16974
  ] });
16946
- return t ? /* @__PURE__ */ u("a", { ...$, href: t, className: `pkt-tabs__link ${e ? "active" : ""}`, children: D }) : /* @__PURE__ */ u("button", { ...$, type: "button", className: `pkt-tabs__button pkt-link-button ${e ? "active" : ""}`, children: D });
16975
+ return t ? /* @__PURE__ */ u("a", { ...$, href: t, className: `pkt-tabs__link ${e ? "active" : ""}`, children: O }) : /* @__PURE__ */ u("button", { ...$, type: "button", className: `pkt-tabs__button pkt-link-button ${e ? "active" : ""}`, children: O });
16947
16976
  }
16948
16977
  );
16949
16978
  xl.displayName = "PktTabItem";
@@ -16962,12 +16991,12 @@ const Sl = Ki(null), hv = () => {
16962
16991
  const $ = t == null ? void 0 : t[v];
16963
16992
  $ != null && $.action && $.action(v), s && s(v);
16964
16993
  }, g = (v, $) => {
16965
- var D, S;
16966
- o && ($.code === "ArrowLeft" && v !== 0 && ((D = a.current[v - 1]) == null || D.focus()), $.code === "ArrowRight" && v < h - 1 && ((S = a.current[v + 1]) == null || S.focus()), ($.code === "ArrowDown" || $.code === "Space") && f(v));
16994
+ var O, S;
16995
+ o && ($.code === "ArrowLeft" && v !== 0 && ((O = a.current[v - 1]) == null || O.focus()), $.code === "ArrowRight" && v < h - 1 && ((S = a.current[v + 1]) == null || S.focus()), ($.code === "ArrowDown" || $.code === "Space") && f(v));
16967
16996
  }, p = (v, $) => {
16968
16997
  a.current[v] = $;
16969
16998
  }, b = t == null ? void 0 : t.map((v, $) => {
16970
- var D, S;
16999
+ var O, S;
16971
17000
  return /* @__PURE__ */ u(
16972
17001
  xl,
16973
17002
  {
@@ -16976,7 +17005,7 @@ const Sl = Ki(null), hv = () => {
16976
17005
  onClick: () => f($),
16977
17006
  icon: v.icon,
16978
17007
  controls: v.controls,
16979
- tag: (D = v.tag) == null ? void 0 : D.text,
17008
+ tag: (O = v.tag) == null ? void 0 : O.text,
16980
17009
  tagSkin: (S = v.tag) == null ? void 0 : S.skin,
16981
17010
  index: $,
16982
17011
  children: v.text
@@ -17002,16 +17031,16 @@ export {
17002
17031
  Sm as PktCheckbox,
17003
17032
  Bm as PktCombobox,
17004
17033
  Xr as PktConsent,
17005
- Zm as PktDatepicker,
17034
+ Jm as PktDatepicker,
17006
17035
  Hg as PktFileUpload,
17007
17036
  vb as PktFooter,
17008
17037
  bb as PktFooterSimple,
17009
17038
  Kg as PktHeader,
17010
17039
  wl as PktHeaderService,
17011
17040
  Qg as PktHeading,
17012
- Zg as PktHelptext,
17041
+ Jg as PktHelptext,
17013
17042
  ee as PktIcon,
17014
- Jg as PktInput,
17043
+ Zg as PktInput,
17015
17044
  is as PktInputWrapper,
17016
17045
  ea as PktLink,
17017
17046
  ev as PktLinkCard,