@oslokommune/punkt-react 16.6.0 → 16.6.2

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.
@@ -36,7 +36,7 @@
36
36
  var jl = Object.defineProperty;
37
37
  var Hl = (n, e, t) => e in n ? jl(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
38
38
  var wi = (n, e, t) => Hl(n, typeof e != "symbol" ? e + "" : e, t);
39
- import { jsx as c, jsxs as x, Fragment as Ae } from "react/jsx-runtime";
39
+ import { jsx as c, jsxs as x, Fragment as Pe } from "react/jsx-runtime";
40
40
  import ui, { createContext as Ki, forwardRef as $e, useContext as di, useState as le, useEffect as fe, useCallback as M, useId as wo, useMemo as xe, useRef as de, useImperativeHandle as Gi, Children as Ri, isValidElement as xo, useLayoutEffect as So, Fragment as ql, createRef as Wl, createElement as zl, cloneElement as Yl } from "react";
41
41
  import { Link as Kl } from "react-router-dom";
42
42
  const Co = Ki({}), Gl = () => di(Co), Xl = $e(
@@ -337,10 +337,10 @@ const ve = (n) => (e, t) => {
337
337
  * Copyright 2019 Google LLC
338
338
  * SPDX-License-Identifier: BSD-3-Clause
339
339
  */
340
- const Mi = globalThis, qr = Mi.ShadowRoot && (Mi.ShadyCSS === void 0 || Mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Po = Symbol(), va = /* @__PURE__ */ new WeakMap();
340
+ const Mi = globalThis, qr = Mi.ShadowRoot && (Mi.ShadyCSS === void 0 || Mi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ao = Symbol(), va = /* @__PURE__ */ new WeakMap();
341
341
  let cc = class {
342
342
  constructor(e, t, s) {
343
- if (this._$cssResult$ = !0, s !== Po) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
343
+ if (this._$cssResult$ = !0, s !== Ao) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
344
344
  this.cssText = e, this.t = t;
345
345
  }
346
346
  get styleSheet() {
@@ -356,7 +356,7 @@ let cc = class {
356
356
  return this.cssText;
357
357
  }
358
358
  };
359
- const uc = (n) => new cc(typeof n == "string" ? n : n + "", void 0, Po), dc = (n, e) => {
359
+ const uc = (n) => new cc(typeof n == "string" ? n : n + "", void 0, Ao), dc = (n, e) => {
360
360
  if (qr) 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;
@@ -681,7 +681,7 @@ const _c = { hi: "Hei!" }, $c = { from: "Fra", to: "Til" }, wc = { buttonAltText
681
681
  dates: xc,
682
682
  forms: Sc
683
683
  };
684
- var Cc = Object.defineProperty, Ao = (n, e, t, s) => {
684
+ var Cc = Object.defineProperty, Po = (n, e, t, s) => {
685
685
  for (var i = void 0, r = n.length - 1, a; r >= 0; r--)
686
686
  (a = n[r]) && (i = a(e, t, i) || i);
687
687
  return i && Cc(e, t, i), i;
@@ -697,10 +697,10 @@ let Ji = class extends ds {
697
697
  this.requestUpdate();
698
698
  }
699
699
  };
700
- Ao([
700
+ Po([
701
701
  u({ type: Object })
702
702
  ], Ji.prototype, "strings");
703
- Ao([
703
+ Po([
704
704
  u({ type: String })
705
705
  ], Ji.prototype, "role");
706
706
  let zt = class extends Ji {
@@ -716,7 +716,7 @@ let zt = class extends Ji {
716
716
  * Copyright 2017 Google LLC
717
717
  * SPDX-License-Identifier: BSD-3-Clause
718
718
  */
719
- const jt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, An = (n) => (...e) => ({ _$litDirective$: n, values: e });
719
+ const jt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4 }, Pn = (n) => (...e) => ({ _$litDirective$: n, values: e });
720
720
  let ys = class {
721
721
  constructor(e) {
722
722
  }
@@ -738,7 +738,7 @@ let ys = class {
738
738
  * Copyright 2018 Google LLC
739
739
  * SPDX-License-Identifier: BSD-3-Clause
740
740
  */
741
- const G = An(class extends ys {
741
+ const G = Pn(class extends ys {
742
742
  constructor(n) {
743
743
  var e;
744
744
  if (super(n), n.type !== jt.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.");
@@ -872,7 +872,7 @@ function Vo(n) {
872
872
  const Ta = /* @__PURE__ */ new WeakMap();
873
873
  function Or(n) {
874
874
  let e = Ta.get(n);
875
- return e || (e = new Pc(n), Ta.set(n, e)), e;
875
+ return e || (e = new Ac(n), Ta.set(n, e)), e;
876
876
  }
877
877
  const Mr = Symbol("default");
878
878
  function Er(n) {
@@ -1029,7 +1029,7 @@ const Uo = class jo {
1029
1029
  }
1030
1030
  };
1031
1031
  Uo.PLACEHOLDER_PREFIX = "pkt-slot";
1032
- let Pc = Uo, Ac = class extends Bo {
1032
+ let Ac = Uo, Pc = class extends Bo {
1033
1033
  constructor(e) {
1034
1034
  if (super(e), this.manager = null, this.lastGeneration = -1, e.type !== jt.CHILD)
1035
1035
  throw new Error("slotContent() can only be used in child expressions");
@@ -1072,7 +1072,7 @@ let Pc = Uo, Ac = class extends Bo {
1072
1072
  return e === this.lastGeneration ? ft : (this.lastGeneration = e, this.manager.getNodes(this.slotName));
1073
1073
  }
1074
1074
  };
1075
- const Ze = An(Ac);
1075
+ const Ze = Pn(Pc);
1076
1076
  let _t = class extends zt {
1077
1077
  /**
1078
1078
  * Pre-collect children before Lit's first render clears them.
@@ -1114,24 +1114,24 @@ let Ui = class extends ys {
1114
1114
  }
1115
1115
  };
1116
1116
  Ui.directiveName = "unsafeHTML", Ui.resultType = 1;
1117
- const Ei = An(Ui);
1117
+ const Ei = Pn(Ui);
1118
1118
  /**
1119
1119
  * @license
1120
1120
  * Copyright 2017 Google LLC
1121
1121
  * SPDX-License-Identifier: BSD-3-Clause
1122
1122
  */
1123
- let Pr = class extends Ui {
1123
+ let Ar = class extends Ui {
1124
1124
  };
1125
- Pr.directiveName = "unsafeSVG", Pr.resultType = 2;
1126
- const pr = An(Pr);
1125
+ Ar.directiveName = "unsafeSVG", Ar.resultType = 2;
1126
+ const pr = Pn(Ar);
1127
1127
  var Ic = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, pi = (n, e, t, s) => {
1128
1128
  for (var i = s > 1 ? void 0 : s ? Rc(e, t) : e, r = n.length - 1, a; r >= 0; r--)
1129
1129
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
1130
1130
  return s && i && Ic(e, t, i), i;
1131
1131
  };
1132
- const Ar = "https://punkt-cdn.oslo.kommune.no/16.6/icons/";
1133
- typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ar);
1134
- const ei = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', Ps = {}, Lc = 2, Bc = 1500, Da = typeof Storage < "u" && typeof sessionStorage < "u", Fc = (n) => window.pktFetch(n).then((e) => {
1132
+ const Pr = "https://punkt-cdn.oslo.kommune.no/16.6/icons/";
1133
+ typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Pr);
1134
+ const ei = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', As = {}, Lc = 2, Bc = 1500, Da = typeof Storage < "u" && typeof sessionStorage < "u", Fc = (n) => window.pktFetch(n).then((e) => {
1135
1135
  if (!e.ok)
1136
1136
  throw new Error("Missing icon: " + n);
1137
1137
  return e.text();
@@ -1143,11 +1143,11 @@ const ei = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',
1143
1143
  }
1144
1144
  }, Vc = async (n, e) => {
1145
1145
  const t = e + n + ".svg";
1146
- return Da && sessionStorage.getItem(t) ? sessionStorage.getItem(t) : t in Ps ? Ps[t] : typeof window < "u" && typeof window.pktFetch == "function" ? (Ps[t] = qo(t).then((s) => (s !== ei && Da && sessionStorage.setItem(t, s), delete Ps[t], s)), Ps[t]) : ei;
1146
+ return Da && sessionStorage.getItem(t) ? sessionStorage.getItem(t) : t in As ? As[t] : typeof window < "u" && typeof window.pktFetch == "function" ? (As[t] = qo(t).then((s) => (s !== ei && Da && sessionStorage.setItem(t, s), delete As[t], s)), As[t]) : ei;
1147
1147
  };
1148
1148
  let Gn = class extends zt {
1149
1149
  constructor() {
1150
- super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Ar, this.name = "", this.icon = pr(ei), this._updatedProps = [];
1150
+ super(...arguments), this.path = typeof window < "u" ? window.pktIconPath : Pr, this.name = "", this.icon = pr(ei), this._updatedProps = [];
1151
1151
  }
1152
1152
  connectedCallback() {
1153
1153
  super.connectedCallback(), this.classList.add("pkt-icon");
@@ -1160,7 +1160,7 @@ let Gn = class extends zt {
1160
1160
  }
1161
1161
  async getIcon(e = "") {
1162
1162
  if (this._updatedProps.length > 0) {
1163
- this.path || (this.path = typeof window < "u" ? window.pktIconPath : Ar);
1163
+ this.path || (this.path = typeof window < "u" ? window.pktIconPath : Pr);
1164
1164
  try {
1165
1165
  this.icon = pr(
1166
1166
  await Vc(this.name || "", this.path)
@@ -1439,7 +1439,7 @@ Jt = dn([
1439
1439
  const Se = () => new zc();
1440
1440
  let zc = class {
1441
1441
  };
1442
- const fr = /* @__PURE__ */ new WeakMap(), Ce = An(class extends Bo {
1442
+ const fr = /* @__PURE__ */ new WeakMap(), Ce = Pn(class extends Bo {
1443
1443
  render(n) {
1444
1444
  return S;
1445
1445
  }
@@ -1760,7 +1760,7 @@ function Ko(n, ...e) {
1760
1760
  );
1761
1761
  return e.map(t);
1762
1762
  }
1763
- function Pa(n, e) {
1763
+ function Aa(n, e) {
1764
1764
  const t = Lt(n, void 0);
1765
1765
  return t.setHours(0, 0, 0, 0), t;
1766
1766
  }
@@ -1769,7 +1769,7 @@ function su(n, e, t) {
1769
1769
  void 0,
1770
1770
  n,
1771
1771
  e
1772
- ), r = Pa(s), a = Pa(i), o = +r - Ea(r), l = +a - Ea(a);
1772
+ ), r = Aa(s), a = Aa(i), o = +r - Ea(r), l = +a - Ea(a);
1773
1773
  return Math.round((o - l) / tu);
1774
1774
  }
1775
1775
  function iu(n, e) {
@@ -1910,7 +1910,7 @@ const du = {
1910
1910
  nextWeek: "eeee 'at' p",
1911
1911
  other: "P"
1912
1912
  }, gu = (n, e, t, s) => mu[n];
1913
- function As(n) {
1913
+ function Ps(n) {
1914
1914
  return (e, t) => {
1915
1915
  const s = t != null && t.context ? String(t.context) : "standalone";
1916
1916
  let i;
@@ -2052,24 +2052,24 @@ const bu = {
2052
2052
  return t + "th";
2053
2053
  }, xu = {
2054
2054
  ordinalNumber: wu,
2055
- era: As({
2055
+ era: Ps({
2056
2056
  values: bu,
2057
2057
  defaultWidth: "wide"
2058
2058
  }),
2059
- quarter: As({
2059
+ quarter: Ps({
2060
2060
  values: vu,
2061
2061
  defaultWidth: "wide",
2062
2062
  argumentCallback: (n) => n - 1
2063
2063
  }),
2064
- month: As({
2064
+ month: Ps({
2065
2065
  values: ku,
2066
2066
  defaultWidth: "wide"
2067
2067
  }),
2068
- day: As({
2068
+ day: Ps({
2069
2069
  values: yu,
2070
2070
  defaultWidth: "wide"
2071
2071
  }),
2072
- dayPeriod: As({
2072
+ dayPeriod: Ps({
2073
2073
  values: _u,
2074
2074
  defaultWidth: "wide",
2075
2075
  formattingValues: $u,
@@ -2126,9 +2126,9 @@ const Nu = /^(\d+)(th|st|nd|rd)?/i, Du = /\d+/i, Ou = {
2126
2126
  narrow: /^[1234]/i,
2127
2127
  abbreviated: /^q[1234]/i,
2128
2128
  wide: /^[1234](th|st|nd|rd)? quarter/i
2129
- }, Pu = {
2130
- any: [/1/i, /2/i, /3/i, /4/i]
2131
2129
  }, Au = {
2130
+ any: [/1/i, /2/i, /3/i, /4/i]
2131
+ }, Pu = {
2132
2132
  narrow: /^[jfmasond]/i,
2133
2133
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
2134
2134
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
@@ -2198,12 +2198,12 @@ const Nu = /^(\d+)(th|st|nd|rd)?/i, Du = /\d+/i, Ou = {
2198
2198
  quarter: Is({
2199
2199
  matchPatterns: Eu,
2200
2200
  defaultMatchWidth: "wide",
2201
- parsePatterns: Pu,
2201
+ parsePatterns: Au,
2202
2202
  defaultParseWidth: "any",
2203
2203
  valueCallback: (n) => n + 1
2204
2204
  }),
2205
2205
  month: Is({
2206
- matchPatterns: Au,
2206
+ matchPatterns: Pu,
2207
2207
  defaultMatchWidth: "wide",
2208
2208
  parsePatterns: Iu,
2209
2209
  defaultParseWidth: "any"
@@ -2323,7 +2323,7 @@ const wn = {
2323
2323
  afternoon: "afternoon",
2324
2324
  evening: "evening",
2325
2325
  night: "night"
2326
- }, Aa = {
2326
+ }, Pa = {
2327
2327
  // Era
2328
2328
  G: function(n, e, t) {
2329
2329
  const s = n.getFullYear() > 0 ? 1 : 0;
@@ -2971,7 +2971,7 @@ function rd(n, e, t) {
2971
2971
  const $ = b[0];
2972
2972
  if ($ === "'")
2973
2973
  return { isToken: !1, value: ad(b) };
2974
- if (Aa[$])
2974
+ if (Pa[$])
2975
2975
  return { isToken: !0, value: b };
2976
2976
  if ($.match(id))
2977
2977
  throw new RangeError(
@@ -2989,7 +2989,7 @@ function rd(n, e, t) {
2989
2989
  if (!b.isToken) return b.value;
2990
2990
  const $ = b.value;
2991
2991
  (Qu($) || Xu($)) && Ju($, e, String(n));
2992
- const N = Aa[$[0]];
2992
+ const N = Pa[$[0]];
2993
2993
  return N(f, $, l.localize, v);
2994
2994
  }).join("");
2995
2995
  }
@@ -3089,8 +3089,8 @@ function Zo(n) {
3089
3089
  const p = Hn(n.timeZone, n), v = p > 0 ? Math.floor(p) : Math.ceil(p), b = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - v, $ = v !== t, N = b - l;
3090
3090
  if ($ && N) {
3091
3091
  Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + N);
3092
- const w = Hn(n.timeZone, n), C = w > 0 ? Math.floor(w) : Math.ceil(w), A = v - C;
3093
- A && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + A), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + A));
3092
+ const w = Hn(n.timeZone, n), C = w > 0 ? Math.floor(w) : Math.ceil(w), P = v - C;
3093
+ P && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + P), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + P));
3094
3094
  }
3095
3095
  }
3096
3096
  let Lr = class Ws extends Hs {
@@ -3350,12 +3350,12 @@ const Ed = {
3350
3350
  ArrowUp: -si,
3351
3351
  ArrowDown: si
3352
3352
  };
3353
- function Pd(n) {
3353
+ function Ad(n) {
3354
3354
  var e;
3355
3355
  const t = n.nodeName;
3356
3356
  return t === "INPUT" || t === "SELECT" || t === "BUTTON" && !((e = n.dataset) != null && e.date);
3357
3357
  }
3358
- function Ad(n, e, t) {
3358
+ function Pd(n, e, t) {
3359
3359
  let s = Ma(n, e);
3360
3360
  if (!s) return null;
3361
3361
  let i = t(`button[data-date="${ct(s)}"]`);
@@ -3412,12 +3412,12 @@ let Ie = class extends zt {
3412
3412
  }
3413
3413
  handleArrowKey(e, t) {
3414
3414
  const s = e.target;
3415
- if (Pd(s)) return;
3415
+ if (Ad(s)) return;
3416
3416
  if (e.preventDefault(), !this.focusedDate) {
3417
3417
  this.focusOnCurrentDate();
3418
3418
  return;
3419
3419
  }
3420
- const i = this.focusedDate ? Ht(this.focusedDate) : Wn(this.year, this.month, 1), r = Ad(i, t, this.querySelector.bind(this));
3420
+ const i = this.focusedDate ? Ht(this.focusedDate) : Wn(this.year, this.month, 1), r = Pd(i, t, this.querySelector.bind(this));
3421
3421
  if (r) {
3422
3422
  const a = this.querySelector(`button[data-date="${ct(r)}"]`);
3423
3423
  a instanceof HTMLButtonElement && !a.dataset.disabled && (this.focusedDate = ct(r), a.focus());
@@ -4257,7 +4257,7 @@ const qa = (n, e, t) => {
4257
4257
  const s = /* @__PURE__ */ new Map();
4258
4258
  for (let i = e; i <= t; i++) s.set(n[i], i);
4259
4259
  return s;
4260
- }, Kr = An(class extends ys {
4260
+ }, Kr = Pn(class extends ys {
4261
4261
  constructor(n) {
4262
4262
  if (super(n), n.type !== jt.CHILD) throw Error("repeat() can only be used in text expressions");
4263
4263
  }
@@ -4313,7 +4313,7 @@ const qa = (n, e, t) => {
4313
4313
  if (!e) return [...n];
4314
4314
  const t = e.toLowerCase();
4315
4315
  return n.filter((s) => (s.fulltext || s.value + (s.label || "") + (s.prefix || "")).toLowerCase().includes(t));
4316
- }, il = (n) => n.value + (n.label || "") + (n.prefix || ""), Pi = (n, e) => e !== null && n >= e, Kd = (n, e) => {
4316
+ }, il = (n) => n.value + (n.label || "") + (n.prefix || ""), Ai = (n, e) => e !== null && n >= e, Kd = (n, e) => {
4317
4317
  if (!e) return { filtered: [...n], suggestion: null };
4318
4318
  const t = e.toLowerCase(), s = n.filter((r) => {
4319
4319
  var a;
@@ -4804,7 +4804,7 @@ function ah() {
4804
4804
  const h = i.get(g), { form: y } = h;
4805
4805
  qe(g, y, h), ee(g, h.labels);
4806
4806
  }
4807
- const A = (g, h = !1) => {
4807
+ const P = (g, h = !1) => {
4808
4808
  const y = document.createTreeWalker(g, NodeFilter.SHOW_ELEMENT, {
4809
4809
  acceptNode(K) {
4810
4810
  return i.has(K) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -4817,7 +4817,7 @@ function ah() {
4817
4817
  }, O = { attributes: !0, attributeFilter: ["disabled", "name"] }, j = te() ? new MutationObserver((g) => {
4818
4818
  for (const h of g) {
4819
4819
  const y = h.target;
4820
- if (h.attributeName === "disabled" && (y.constructor.formAssociated ? W(y, y.hasAttribute("disabled")) : y.localName === "fieldset" && A(y)), h.attributeName === "name" && y.constructor.formAssociated) {
4820
+ if (h.attributeName === "disabled" && (y.constructor.formAssociated ? W(y, y.hasAttribute("disabled")) : y.localName === "fieldset" && P(y)), h.attributeName === "name" && y.constructor.formAssociated) {
4821
4821
  const T = i.get(y), Y = d.get(y);
4822
4822
  T.setFormValue(Y);
4823
4823
  }
@@ -4848,7 +4848,7 @@ function ah() {
4848
4848
  for (; Gt; )
4849
4849
  C(Gt), Gt = je.nextNode();
4850
4850
  }
4851
- ue.localName === "fieldset" && ((rt = j.observe) === null || rt === void 0 || rt.call(j, ue, O), A(ue, !0));
4851
+ ue.localName === "fieldset" && ((rt = j.observe) === null || rt === void 0 || rt.call(j, ue, O), P(ue, !0));
4852
4852
  }), K.forEach((ue) => {
4853
4853
  const rt = i.get(ue);
4854
4854
  rt && s.get(rt) && L(rt), o.has(ue) && o.get(ue).disconnect();
@@ -4860,7 +4860,7 @@ function ah() {
4860
4860
  const { removedNodes: y } = h;
4861
4861
  y.forEach((T) => {
4862
4862
  const Y = v.get(h.target);
4863
- i.has(T) && Pe(T), Y.disconnect();
4863
+ i.has(T) && Ae(T), Y.disconnect();
4864
4864
  });
4865
4865
  });
4866
4866
  }
@@ -4939,7 +4939,7 @@ function ah() {
4939
4939
  return T && T.size && T.forEach((Y) => {
4940
4940
  i.get(Y)[y]() || (h = !1);
4941
4941
  }), h;
4942
- }, Pe = (g) => {
4942
+ }, Ae = (g) => {
4943
4943
  if (g.constructor.formAssociated) {
4944
4944
  const h = i.get(g), { labels: y, form: T } = h;
4945
4945
  ee(g, y), qe(g, T, h);
@@ -4995,14 +4995,14 @@ function ah() {
4995
4995
  if (typeof h == "function" ? g !== h || !T : !h.has(g)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4996
4996
  return y === "m" ? T : y === "a" ? T.call(g) : T ? T.value : h.get(g);
4997
4997
  }
4998
- function P(g, h, y, T, Y) {
4998
+ function A(g, h, y, T, Y) {
4999
4999
  if (typeof h == "function" ? g !== h || !0 : !h.has(g)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
5000
5000
  return h.set(g, y), y;
5001
5001
  }
5002
5002
  var Ue;
5003
5003
  class Xe {
5004
5004
  constructor(h) {
5005
- Ue.set(this, void 0), P(this, Ue, h);
5005
+ Ue.set(this, void 0), A(this, Ue, h);
5006
5006
  for (let y = 0; y < h.length; y++) {
5007
5007
  let T = h[y];
5008
5008
  this[y] = T, T.hasAttribute("name") && (this[T.getAttribute("name")] = T);
@@ -5179,7 +5179,7 @@ function ah() {
5179
5179
  if (T.formAssociated) {
5180
5180
  const K = T.prototype.connectedCallback;
5181
5181
  T.prototype.connectedCallback = function() {
5182
- b.has(this) || (b.set(this, !0), this.hasAttribute("disabled") && W(this, !0)), K != null && K.apply(this), Pe(this);
5182
+ b.has(this) || (b.set(this, !0), this.hasAttribute("disabled") && W(this, !0)), K != null && K.apply(this), Ae(this);
5183
5183
  };
5184
5184
  }
5185
5185
  h.call(this, y, T, Y);
@@ -5969,7 +5969,7 @@ let it = class extends ae {
5969
5969
  * Updates the _maxIsReached state flag.
5970
5970
  */
5971
5971
  updateMaxReached() {
5972
- this._maxIsReached = Pi(this._value.length, this.maxlength);
5972
+ this._maxIsReached = Ai(this._value.length, this.maxlength);
5973
5973
  }
5974
5974
  /**
5975
5975
  * Syncs the public value property from internal _value state and dispatches
@@ -6066,7 +6066,7 @@ class vh extends it {
6066
6066
  var t, s;
6067
6067
  if (this.disabled) return;
6068
6068
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
6069
- const i = ((t = an(this.options, e)) == null ? void 0 : t.value) || null, r = this._value.includes(e || i || ""), a = !!i, o = ((s = this._options.find((N) => N.value === e)) == null ? void 0 : s.disabled) || !1, l = !(e != null && e.trim()), d = !this.multiple, m = this.multiple, f = Pi(this._value.length, this.maxlength);
6069
+ const i = ((t = an(this.options, e)) == null ? void 0 : t.value) || null, r = this._value.includes(e || i || ""), a = !!i, o = ((s = this._options.find((N) => N.value === e)) == null ? void 0 : s.disabled) || !1, l = !(e != null && e.trim()), d = !this.multiple, m = this.multiple, f = Ai(this._value.length, this.maxlength);
6070
6070
  let p = !1, v = !0, b = "", $ = "";
6071
6071
  o || (!a && this.allowUserInput && !l ? (this.addNewUserValue(e), b = "Ny verdi lagt til", p = m) : !a && !this.allowUserInput ? (d && this._value[0] && this.removeValue(this._value[0]), v = !1, p = !0, b = "Ingen treff i søket") : r ? (this.removeValue(i), p = !0, d && this._hasTextInput && this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "")) : l && d ? (this.removeAllSelected(), p = !0) : d ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(i), p = !1) : m && !f ? (this.setSelected(i), p = !0) : m && f ? (b = "Maks antall valg nådd", v = !1, $ = e) : (d && this.removeAllSelected(), b = "Ingen gyldig verdi valgt", v = !1, p = !0, $ = e), this._isOptionsOpen = p, p || (d && this._hasTextInput && (this._suppressNextOpen = !0), window.setTimeout(() => {
6072
6072
  this.focusTrigger();
@@ -6074,7 +6074,7 @@ class vh extends it {
6074
6074
  }
6075
6075
  setSelected(e) {
6076
6076
  if (!this._value.includes(e)) {
6077
- if (this.multiple && Pi(this._value.length, this.maxlength)) {
6077
+ if (this.multiple && Ai(this._value.length, this.maxlength)) {
6078
6078
  this._userInfoMessage = "Maks antall valg nådd";
6079
6079
  return;
6080
6080
  }
@@ -6116,7 +6116,7 @@ class vh extends it {
6116
6116
  if (!this.multiple)
6117
6117
  this._value[0] && this.removeSelected(this._value[0]), this._value = [e];
6118
6118
  else if (!an(this.options, e)) {
6119
- if (Pi(this._value.length, this.maxlength)) return;
6119
+ if (Ai(this._value.length, this.maxlength)) return;
6120
6120
  this._value = [...this._value, e];
6121
6121
  }
6122
6122
  const t = { value: e, label: e, userAdded: !0, selected: !0 };
@@ -7007,7 +7007,7 @@ const Oh = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
7007
7007
  }, Xn = () => {
7008
7008
  const n = navigator.userAgent;
7009
7009
  return !!(/iP(hone|od|ad)/.test(n) || /Macintosh/.test(n) && "ontouchend" in document);
7010
- }, Mh = () => Xn() ? "text" : "date", Eh = (n) => !n || n.length !== 2 ? !0 : bd(n[0], n[1]), Ph = (n) => tl(n), Ah = (n, e, t, s, i) => gd(n, e, t, s, i), Ih = (n, e, t, s, i, r) => ({
7010
+ }, Mh = () => Xn() ? "text" : "date", Eh = (n) => !n || n.length !== 2 ? !0 : bd(n[0], n[1]), Ah = (n) => tl(n), Ph = (n, e, t, s, i) => gd(n, e, t, s, i), Ih = (n, e, t, s, i, r) => ({
7011
7011
  "pkt-input": !0,
7012
7012
  "pkt-datepicker__input": !0,
7013
7013
  "pkt-input--fullwidth": n,
@@ -7038,8 +7038,8 @@ const Oh = { dateformat: { default: "dd.MM.yyyy" }, weeknumbers: { default: !1 }
7038
7038
  (t === "Enter" || t === " " || t === "Space") && (n.preventDefault(), e(n));
7039
7039
  }, Ja = {
7040
7040
  validateRangeOrder: Eh,
7041
- sortDates: Ph,
7042
- filterSelectableDates: Ah
7041
+ sortDates: Ah,
7042
+ filterSelectableDates: Ph
7043
7043
  }, jh = {
7044
7044
  getInputType: Mh
7045
7045
  }, ri = {
@@ -8663,6 +8663,7 @@ let Te = class extends _t {
8663
8663
  ` : S;
8664
8664
  }
8665
8665
  renderSlotContainer() {
8666
+ if (!this.hasSlotContent()) return S;
8666
8667
  const e = G({
8667
8668
  "pkt-header-service__slot-container": !0,
8668
8669
  "is-open": this.openMenu === "slot"
@@ -8697,7 +8698,9 @@ let Te = class extends _t {
8697
8698
  role=${this.isTablet ? "menu" : S}
8698
8699
  aria-label=${this.isTablet ? "Meny" : S}
8699
8700
  ${Ce(this.slotContentRef)}
8700
- >${Ze(this)}</div>
8701
+ >
8702
+ ${Ze(this)}
8703
+ </div>
8701
8704
  </div>
8702
8705
  `;
8703
8706
  }
@@ -8795,7 +8798,7 @@ let Te = class extends _t {
8795
8798
  @click=${() => this.handleMenuToggle("user")}
8796
8799
  >
8797
8800
  <span class="pkt-sr-only">Brukermeny: </span>
8798
- ${((e = this.representing) == null ? void 0 : e.name) || this.user.name}
8801
+ <span>${((e = this.representing) == null ? void 0 : e.name) || this.user.name}</span>
8799
8802
  </pkt-button>
8800
8803
  ${this.openMenu === "user" && this.user ? k`
8801
8804
  <div class=${t}>
@@ -8833,35 +8836,34 @@ let Te = class extends _t {
8833
8836
  <header class=${e} ${Ce(this.headerRef)}>
8834
8837
  <div class=${t}>${this.renderLogo()} ${this.renderServiceName()}</div>
8835
8838
 
8836
- <div class="pkt-header-service__content">
8837
- ${this.renderSlotContainer()} ${this.renderSearch()}
8838
- ${this.isTablet && this.showLogoutInHeader ? k`
8839
- <pkt-button
8840
- skin="secondary"
8841
- size=${this.isMobile ? "small" : "medium"}
8842
- variant="icon-only"
8843
- iconName="exit"
8844
- @click=${this.handleLogout}
8845
- >
8846
- Logg ut
8847
- </pkt-button>
8848
- ` : S}
8849
- </div>
8850
-
8851
- <div class="pkt-header-service__user">
8852
- ${this.renderUserButton()}
8853
- ${!this.isTablet && this.showLogoutInHeader ? k`
8854
- <pkt-button
8855
- skin="tertiary"
8856
- size="medium"
8857
- variant="icon-right"
8858
- iconName="exit"
8859
- @click=${this.handleLogout}
8860
- >
8861
- Logg ut
8862
- </pkt-button>
8863
- ` : S}
8864
- </div>
8839
+ ${this.hasSlotContent() || this.showSearch || this.showLogoutInHeader ? k`<div class="pkt-header-service__content">
8840
+ ${this.renderSlotContainer()} ${this.renderSearch()}
8841
+ ${this.isTablet && this.showLogoutInHeader ? k`
8842
+ <pkt-button
8843
+ skin="secondary"
8844
+ size=${this.isMobile ? "small" : "medium"}
8845
+ variant="icon-only"
8846
+ iconName="exit"
8847
+ @click=${this.handleLogout}
8848
+ >
8849
+ Logg ut
8850
+ </pkt-button>
8851
+ ` : S}
8852
+ </div>` : S}
8853
+ ${this.user || !this.isTablet && this.showLogoutInHeader ? k`<div class="pkt-header-service__user">
8854
+ ${this.renderUserButton()}
8855
+ ${!this.isTablet && this.showLogoutInHeader ? k`
8856
+ <pkt-button
8857
+ skin="tertiary"
8858
+ size="medium"
8859
+ variant="icon-right"
8860
+ iconName="exit"
8861
+ @click=${this.handleLogout}
8862
+ >
8863
+ Logg ut
8864
+ </pkt-button>
8865
+ ` : S}
8866
+ </div>` : S}
8865
8867
  </header>
8866
8868
  `;
8867
8869
  }
@@ -9022,7 +9024,7 @@ let Ye = class extends _t {
9022
9024
  .userMenu=${this.effectiveUserMenu}
9023
9025
  .representing=${this.representing}
9024
9026
  >
9025
- <div class="pkt-contents">${Ze(this)}</div>
9027
+ ${this.hasSlotContent() ? k`<div class="pkt-contents">${Ze(this)}</div>` : S}
9026
9028
  </pkt-header-service>
9027
9029
  `;
9028
9030
  }
@@ -9108,7 +9110,7 @@ var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor, ns = (n, e
9108
9110
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
9109
9111
  return s && i && mp(e, t, i), i;
9110
9112
  };
9111
- let Pn = class extends _t {
9113
+ let An = class extends _t {
9112
9114
  constructor() {
9113
9115
  super(...arguments), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal";
9114
9116
  }
@@ -9131,25 +9133,25 @@ let Pn = class extends _t {
9131
9133
  };
9132
9134
  ns([
9133
9135
  u({ type: String, reflect: !0 })
9134
- ], Pn.prototype, "title", 2);
9136
+ ], An.prototype, "title", 2);
9135
9137
  ns([
9136
9138
  u({ type: String, reflect: !0 })
9137
- ], Pn.prototype, "href", 2);
9139
+ ], An.prototype, "href", 2);
9138
9140
  ns([
9139
9141
  u({ type: String, reflect: !0 })
9140
- ], Pn.prototype, "iconName", 2);
9142
+ ], An.prototype, "iconName", 2);
9141
9143
  ns([
9142
9144
  u({ type: Boolean, reflect: !0 })
9143
- ], Pn.prototype, "external", 2);
9145
+ ], An.prototype, "external", 2);
9144
9146
  ns([
9145
9147
  u({ type: Boolean, reflect: !0 })
9146
- ], Pn.prototype, "openInNewTab", 2);
9148
+ ], An.prototype, "openInNewTab", 2);
9147
9149
  ns([
9148
9150
  u({ type: String, reflect: !0 })
9149
- ], Pn.prototype, "skin", 2);
9150
- Pn = ns([
9151
+ ], An.prototype, "skin", 2);
9152
+ An = ns([
9151
9153
  ve("pkt-linkcard")
9152
- ], Pn);
9154
+ ], An);
9153
9155
  var bp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, yn = (n, e, t, s) => {
9154
9156
  for (var i = s > 1 ? void 0 : s ? vp(e, t) : e, r = n.length - 1, a; r >= 0; r--)
9155
9157
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
@@ -9445,7 +9447,7 @@ Rt = Kt([
9445
9447
  * Copyright 2018 Google LLC
9446
9448
  * SPDX-License-Identifier: BSD-3-Clause
9447
9449
  */
9448
- const ol = "important", Sp = " !" + ol, Cp = An(class extends ys {
9450
+ const ol = "important", Sp = " !" + ol, Cp = Pn(class extends ys {
9449
9451
  constructor(n) {
9450
9452
  var e;
9451
9453
  if (super(n), n.type !== jt.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.");
@@ -9801,7 +9803,7 @@ let Ep = class extends Event {
9801
9803
  * Copyright 2017 Google LLC
9802
9804
  * SPDX-License-Identifier: BSD-3-Clause
9803
9805
  */
9804
- function Pp({ context: n }) {
9806
+ function Ap({ context: n }) {
9805
9807
  return (e, t) => {
9806
9808
  const s = /* @__PURE__ */ new WeakMap();
9807
9809
  if (typeof t == "object") return { get() {
@@ -9839,7 +9841,7 @@ function Pp({ context: n }) {
9839
9841
  * Copyright 2022 Google LLC
9840
9842
  * SPDX-License-Identifier: BSD-3-Clause
9841
9843
  */
9842
- function Ap({ context: n, subscribe: e }) {
9844
+ function Pp({ context: n, subscribe: e }) {
9843
9845
  return (t, s) => {
9844
9846
  typeof s == "object" ? s.addInitializer((function() {
9845
9847
  new eo(this, { context: n, callback: (i) => {
@@ -9921,7 +9923,7 @@ Cs([
9921
9923
  me()
9922
9924
  ], Zn.prototype, "tabCount", 2);
9923
9925
  Cs([
9924
- Pp({ context: cl }),
9926
+ Ap({ context: cl }),
9925
9927
  me()
9926
9928
  ], Zn.prototype, "context", 2);
9927
9929
  Zn = Cs([
@@ -10007,7 +10009,7 @@ _n([
10007
10009
  u({ type: Number, reflect: !0 })
10008
10010
  ], cn.prototype, "index", 2);
10009
10011
  _n([
10010
- Ap({ context: cl, subscribe: !0 }),
10012
+ Pp({ context: cl, subscribe: !0 }),
10011
10013
  u({ attribute: !1 })
10012
10014
  ], cn.prototype, "context", 2);
10013
10015
  cn = _n([
@@ -10018,7 +10020,7 @@ cn = _n([
10018
10020
  * Copyright 2020 Google LLC
10019
10021
  * SPDX-License-Identifier: BSD-3-Clause
10020
10022
  */
10021
- const Fp = An(class extends ys {
10023
+ const Fp = Pn(class extends ys {
10022
10024
  constructor(n) {
10023
10025
  if (super(n), n.type !== jt.PROPERTY && n.type !== jt.ATTRIBUTE && n.type !== jt.BOOLEAN_ATTRIBUTE) throw Error("The `live` directive is not allowed on child or event bindings");
10024
10026
  if (!Io(n)) throw Error("`live` bindings can only contain a single expression");
@@ -10378,7 +10380,7 @@ const Z = hi({
10378
10380
  setTimeout(() => {
10379
10381
  d == null || d(O);
10380
10382
  }, 0);
10381
- }, A = [
10383
+ }, P = [
10382
10384
  "pkt-accordion-item",
10383
10385
  i && "pkt-accordion-item--compact",
10384
10386
  s && `pkt-accordion-item--${s}`,
@@ -10388,7 +10390,7 @@ const Z = hi({
10388
10390
  "details",
10389
10391
  {
10390
10392
  ref: f,
10391
- className: A,
10393
+ className: P,
10392
10394
  id: e,
10393
10395
  open: N,
10394
10396
  onClick: C,
@@ -10510,7 +10512,7 @@ const Gp = $e(
10510
10512
  ({ href: n = "/", text: e = "Forsiden", ariaLabel: t, renderLink: s, ...i }, r) => /* @__PURE__ */ c("nav", { className: "pkt-back-link", "aria-label": t || "Gå tilbake til forrige side", ref: r, children: (s || (({ href: l, className: d, children: m, props: f }) => /* @__PURE__ */ c("a", { href: l, className: d, ...f, children: m })))({
10511
10513
  href: n,
10512
10514
  className: "pkt-link pkt-link--icon-left",
10513
- children: /* @__PURE__ */ x(Ae, { children: [
10515
+ children: /* @__PURE__ */ x(Pe, { children: [
10514
10516
  /* @__PURE__ */ c(Z, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
10515
10517
  /* @__PURE__ */ c("span", { className: "pkt-back-link__text", children: e })
10516
10518
  ] }),
@@ -10525,7 +10527,7 @@ const Xp = $e(
10525
10527
  /* @__PURE__ */ c("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: a.map((m, f) => /* @__PURE__ */ c("li", { className: "pkt-breadcrumbs__item", children: f === a.length - 1 ? /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: m.text }) }) : d({
10526
10528
  href: m.href,
10527
10529
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
10528
- children: /* @__PURE__ */ x(Ae, { children: [
10530
+ children: /* @__PURE__ */ x(Pe, { children: [
10529
10531
  /* @__PURE__ */ c(Z, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
10530
10532
  /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: m.text })
10531
10533
  ] }),
@@ -10534,7 +10536,7 @@ const Xp = $e(
10534
10536
  d({
10535
10537
  href: o.href,
10536
10538
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
10537
- children: /* @__PURE__ */ x(Ae, { children: [
10539
+ children: /* @__PURE__ */ x(Pe, { children: [
10538
10540
  /* @__PURE__ */ c(Z, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
10539
10541
  /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: o.text })
10540
10542
  ] }),
@@ -10566,7 +10568,7 @@ const bt = $e(
10566
10568
  loadingAnimationPath: N = window.pktAnimationPath,
10567
10569
  ...w
10568
10570
  }, C) => {
10569
- const A = [
10571
+ const P = [
10570
10572
  e,
10571
10573
  "pkt-btn",
10572
10574
  a && `pkt-btn--${a}`,
@@ -10585,7 +10587,7 @@ const bt = $e(
10585
10587
  "aria-busy": b || void 0,
10586
10588
  "aria-disabled": $ || void 0,
10587
10589
  disabled: $,
10588
- className: A,
10590
+ className: P,
10589
10591
  type: m,
10590
10592
  ref: C,
10591
10593
  children: [
@@ -10610,11 +10612,11 @@ const hl = 6048e5, Qp = 864e5, so = Symbol.for("constructDateFrom");
10610
10612
  function un(n, e) {
10611
10613
  return typeof n == "function" ? n(e) : n && typeof n == "object" && so in n ? n[so](e) : n instanceof Date ? new n.constructor(e) : new Date(e);
10612
10614
  }
10613
- function Pt(n, e) {
10615
+ function At(n, e) {
10614
10616
  return un(e || n, n);
10615
10617
  }
10616
10618
  function io(n, e, t) {
10617
- const s = Pt(n, t == null ? void 0 : t.in);
10619
+ const s = At(n, t == null ? void 0 : t.in);
10618
10620
  return isNaN(e) ? un(n, NaN) : (e && s.setDate(s.getDate() + e), s);
10619
10621
  }
10620
10622
  let Jp = {};
@@ -10623,14 +10625,14 @@ function nr() {
10623
10625
  }
10624
10626
  function oi(n, e) {
10625
10627
  var o, l, d, m;
10626
- const t = nr(), s = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((m = (d = t.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = Pt(n, e == null ? void 0 : e.in), r = i.getDay(), a = (r < s ? 7 : 0) + r - s;
10628
+ const t = nr(), s = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : l.weekStartsOn) ?? t.weekStartsOn ?? ((m = (d = t.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? 0, i = At(n, e == null ? void 0 : e.in), r = i.getDay(), a = (r < s ? 7 : 0) + r - s;
10627
10629
  return i.setDate(i.getDate() - a), i.setHours(0, 0, 0, 0), i;
10628
10630
  }
10629
10631
  function Yi(n, e) {
10630
10632
  return oi(n, { ...e, weekStartsOn: 1 });
10631
10633
  }
10632
10634
  function pl(n, e) {
10633
- const t = Pt(n, e == null ? void 0 : e.in), s = t.getFullYear(), i = un(t, 0);
10635
+ const t = At(n, e == null ? void 0 : e.in), s = t.getFullYear(), i = un(t, 0);
10634
10636
  i.setFullYear(s + 1, 0, 4), i.setHours(0, 0, 0, 0);
10635
10637
  const r = Yi(i), a = un(t, 0);
10636
10638
  a.setFullYear(s, 0, 4), a.setHours(0, 0, 0, 0);
@@ -10638,7 +10640,7 @@ function pl(n, e) {
10638
10640
  return t.getTime() >= r.getTime() ? s + 1 : t.getTime() >= o.getTime() ? s : s - 1;
10639
10641
  }
10640
10642
  function ro(n) {
10641
- const e = Pt(n), t = new Date(
10643
+ const e = At(n), t = new Date(
10642
10644
  Date.UTC(
10643
10645
  e.getFullYear(),
10644
10646
  e.getMonth(),
@@ -10659,7 +10661,7 @@ function fl(n, ...e) {
10659
10661
  return e.map(t);
10660
10662
  }
10661
10663
  function Fr(n, e) {
10662
- const t = Pt(n, e == null ? void 0 : e.in);
10664
+ const t = At(n, e == null ? void 0 : e.in);
10663
10665
  return t.setHours(0, 0, 0, 0), t;
10664
10666
  }
10665
10667
  function Zp(n, e, t) {
@@ -10678,10 +10680,10 @@ function tf(n) {
10678
10680
  return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
10679
10681
  }
10680
10682
  function nf(n) {
10681
- return !(!tf(n) && typeof n != "number" || isNaN(+Pt(n)));
10683
+ return !(!tf(n) && typeof n != "number" || isNaN(+At(n)));
10682
10684
  }
10683
10685
  function sf(n, e) {
10684
- const t = Pt(n, e == null ? void 0 : e.in);
10686
+ const t = At(n, e == null ? void 0 : e.in);
10685
10687
  return t.setHours(23, 59, 59, 999), t;
10686
10688
  }
10687
10689
  function rf(n, e) {
@@ -10700,7 +10702,7 @@ function ml(n, e) {
10700
10702
  return i ? l.reverse() : l;
10701
10703
  }
10702
10704
  function af(n, e) {
10703
- const t = Pt(n, e == null ? void 0 : e.in);
10705
+ const t = At(n, e == null ? void 0 : e.in);
10704
10706
  return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
10705
10707
  }
10706
10708
  const of = {
@@ -11034,7 +11036,7 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11034
11036
  narrow: /^[jfmasond]/i,
11035
11037
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
11036
11038
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
11037
- }, Pf = {
11039
+ }, Af = {
11038
11040
  narrow: [
11039
11041
  /^j/i,
11040
11042
  /^f/i,
@@ -11063,7 +11065,7 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11063
11065
  /^n/i,
11064
11066
  /^d/i
11065
11067
  ]
11066
- }, Af = {
11068
+ }, Pf = {
11067
11069
  narrow: /^[smtwf]/i,
11068
11070
  short: /^(su|mo|tu|we|th|fr|sa)/i,
11069
11071
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -11107,11 +11109,11 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11107
11109
  month: Vs({
11108
11110
  matchPatterns: Ef,
11109
11111
  defaultMatchWidth: "wide",
11110
- parsePatterns: Pf,
11112
+ parsePatterns: Af,
11111
11113
  defaultParseWidth: "any"
11112
11114
  }),
11113
11115
  day: Vs({
11114
- matchPatterns: Af,
11116
+ matchPatterns: Pf,
11115
11117
  defaultMatchWidth: "wide",
11116
11118
  parsePatterns: If,
11117
11119
  defaultParseWidth: "any"
@@ -11135,16 +11137,16 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11135
11137
  }
11136
11138
  };
11137
11139
  function Vf(n, e) {
11138
- const t = Pt(n, e == null ? void 0 : e.in);
11140
+ const t = At(n, e == null ? void 0 : e.in);
11139
11141
  return Zp(t, af(t)) + 1;
11140
11142
  }
11141
11143
  function Uf(n, e) {
11142
- const t = Pt(n, e == null ? void 0 : e.in), s = +Yi(t) - +ef(t);
11144
+ const t = At(n, e == null ? void 0 : e.in), s = +Yi(t) - +ef(t);
11143
11145
  return Math.round(s / hl) + 1;
11144
11146
  }
11145
11147
  function gl(n, e) {
11146
11148
  var m, f, p, v;
11147
- const t = Pt(n, e == null ? void 0 : e.in), s = t.getFullYear(), i = nr(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((v = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, a = un((e == null ? void 0 : e.in) || n, 0);
11149
+ const t = At(n, e == null ? void 0 : e.in), s = t.getFullYear(), i = nr(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((f = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((v = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, a = un((e == null ? void 0 : e.in) || n, 0);
11148
11150
  a.setFullYear(s + 1, 0, r), a.setHours(0, 0, 0, 0);
11149
11151
  const o = oi(a, e), l = un((e == null ? void 0 : e.in) || n, 0);
11150
11152
  l.setFullYear(s, 0, r), l.setHours(0, 0, 0, 0);
@@ -11157,7 +11159,7 @@ function jf(n, e) {
11157
11159
  return r.setFullYear(i, 0, s), r.setHours(0, 0, 0, 0), oi(r, e);
11158
11160
  }
11159
11161
  function bl(n, e) {
11160
- const t = Pt(n, e == null ? void 0 : e.in), s = +oi(t, e) - +jf(t, e);
11162
+ const t = At(n, e == null ? void 0 : e.in), s = +oi(t, e) - +jf(t, e);
11161
11163
  return Math.round(s / hl) + 1;
11162
11164
  }
11163
11165
  function Oe(n, e) {
@@ -11857,7 +11859,7 @@ function Qf(n, e, t) {
11857
11859
  const Jf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, em = /^'([^]*?)'?$/, tm = /''/g, nm = /[a-zA-Z]/;
11858
11860
  function sm(n, e, t) {
11859
11861
  var m, f, p, v;
11860
- const s = nr(), i = s.locale ?? Ff, r = s.firstWeekContainsDate ?? ((f = (m = s.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = s.weekStartsOn ?? ((v = (p = s.locale) == null ? void 0 : p.options) == null ? void 0 : v.weekStartsOn) ?? 0, o = Pt(n, t == null ? void 0 : t.in);
11862
+ const s = nr(), i = s.locale ?? Ff, r = s.firstWeekContainsDate ?? ((f = (m = s.locale) == null ? void 0 : m.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = s.weekStartsOn ?? ((v = (p = s.locale) == null ? void 0 : p.options) == null ? void 0 : v.weekStartsOn) ?? 0, o = At(n, t == null ? void 0 : t.in);
11861
11863
  if (!nf(o))
11862
11864
  throw new RangeError("Invalid time value");
11863
11865
  let l = e.match(Zf).map((b) => {
@@ -11900,7 +11902,7 @@ function im(n) {
11900
11902
  return e ? e[1].replace(tm, "'") : n;
11901
11903
  }
11902
11904
  function rm(n, e) {
11903
- const t = Pt(n, e == null ? void 0 : e.in).getDay();
11905
+ const t = At(n, e == null ? void 0 : e.in).getDay();
11904
11906
  return t === 0 ? 7 : t;
11905
11907
  }
11906
11908
  function am(n, e, t = "long") {
@@ -11991,7 +11993,7 @@ function kl(n) {
11991
11993
  const p = qn(n.timeZone, n), v = p > 0 ? Math.floor(p) : Math.ceil(p), $ = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset() - v, N = v !== t, w = $ - l;
11992
11994
  if (N && w) {
11993
11995
  Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + w);
11994
- const C = qn(n.timeZone, n), A = C > 0 ? Math.floor(C) : Math.ceil(C), O = v - A;
11996
+ const C = qn(n.timeZone, n), P = C > 0 ? Math.floor(C) : Math.ceil(C), O = v - P;
11995
11997
  O && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + O), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + O));
11996
11998
  }
11997
11999
  }
@@ -12288,10 +12290,10 @@ function Mm(n) {
12288
12290
  onClose: $,
12289
12291
  id: N,
12290
12292
  className: w
12291
- } = n, C = wo(), A = N ?? C, O = xe(() => ({ ...Om, ...v }), [v]), j = xe(
12293
+ } = n, C = wo(), P = N ?? C, O = xe(() => ({ ...Om, ...v }), [v]), j = xe(
12292
12294
  () => p ? rn(p) : cm(),
12293
12295
  [p]
12294
- ), V = xe(() => o ? o.map((g) => typeof g == "string" ? rn(g) : g) : [], [o]), z = e !== void 0, [he, H] = le([]), D = z ? e : he, W = xe(() => $l(D), [D]), [L, X] = le(0), [oe, ee] = le(0), [pe, ce] = le({}), [ye, se] = le(null), [ie, qe] = le(null), Q = de(null), I = de([]), Ee = de(0), Pe = de(!1), te = de(!1), Ve = xe(
12296
+ ), V = xe(() => o ? o.map((g) => typeof g == "string" ? rn(g) : g) : [], [o]), z = e !== void 0, [he, H] = le([]), D = z ? e : he, W = xe(() => $l(D), [D]), [L, X] = le(0), [oe, ee] = le(0), [pe, ce] = le({}), [ye, se] = le(null), [ie, qe] = le(null), Q = de(null), I = de([]), Ee = de(0), Ae = de(!1), te = de(!1), Ve = xe(
12295
12297
  () => ({ earliest: r, latest: a, excludedates: V, excludeweekdays: l }),
12296
12298
  [r, a, V, l]
12297
12299
  );
@@ -12313,7 +12315,7 @@ function Mm(n) {
12313
12315
  }
12314
12316
  X(g.getFullYear()), ee(g.getMonth()), te.current = !0;
12315
12317
  }, []), fe(() => {
12316
- if (te.current && !Pe.current && D.length > 0 && D[0] !== "") {
12318
+ if (te.current && !Ae.current && D.length > 0 && D[0] !== "") {
12317
12319
  const g = rn(D[D.length - 1]);
12318
12320
  isNaN(g.getTime()) || (X(g.getFullYear()), ee(g.getMonth()));
12319
12321
  }
@@ -12328,7 +12330,7 @@ function Mm(n) {
12328
12330
  ), we = M(() => {
12329
12331
  $ == null || $();
12330
12332
  }, [$]), Ne = M((g, h) => {
12331
- X(typeof g == "string" ? parseInt(g) : g), ee(typeof h == "string" ? parseInt(h) : h), Ee.current = 0, qe(null), I.current = [], Pe.current = !0;
12333
+ X(typeof g == "string" ? parseInt(g) : g), ee(typeof h == "string" ? parseInt(h) : h), Ee.current = 0, qe(null), I.current = [], Ae.current = !0;
12332
12334
  }, []), Le = M(() => {
12333
12335
  const g = oe === 0 ? 11 : oe - 1, h = oe === 0 ? L - 1 : L;
12334
12336
  Ne(h, g);
@@ -12342,7 +12344,7 @@ function Mm(n) {
12342
12344
  selectedCount: D.length
12343
12345
  }),
12344
12346
  [Ve, t, s, D.length]
12345
- ), P = M(() => typeof D == "string" ? D.split(",") : D, [D]), Ue = M(
12347
+ ), A = M(() => typeof D == "string" ? D.split(",") : D, [D]), Ue = M(
12346
12348
  (g) => {
12347
12349
  if (!i || W.length !== 1 || !wl(g, W, V, l) || W[0] >= g) {
12348
12350
  se(null);
@@ -12356,12 +12358,12 @@ function Mm(n) {
12356
12358
  if (!g) return;
12357
12359
  let h;
12358
12360
  if (i)
12359
- h = _m(g, P(), {
12361
+ h = _m(g, A(), {
12360
12362
  excludedates: V,
12361
12363
  excludeweekdays: l
12362
12364
  }), z || H(h), h.length === 2 ? (b == null || b(h), we()) : (h.length === 1 && ce({}), b == null || b(h));
12363
12365
  else if (t)
12364
- h = mo(g, P(), s), Re(h);
12366
+ h = mo(g, A(), s), Re(h);
12365
12367
  else {
12366
12368
  const y = vt(g);
12367
12369
  D.includes(y) ? h = [] : h = [y], Re(h), we();
@@ -12371,7 +12373,7 @@ function Mm(n) {
12371
12373
  i,
12372
12374
  t,
12373
12375
  s,
12374
- P,
12376
+ A,
12375
12377
  D,
12376
12378
  V,
12377
12379
  l,
@@ -12382,22 +12384,22 @@ function Mm(n) {
12382
12384
  ]
12383
12385
  ), q = M(
12384
12386
  (g) => {
12385
- const h = Zr(g, P());
12387
+ const h = Zr(g, A());
12386
12388
  z || H(h), i && h.length === 2 && (b == null || b(h), we());
12387
12389
  },
12388
- [P, z, i, b, we]
12390
+ [A, z, i, b, we]
12389
12391
  ), U = M(
12390
12392
  (g) => {
12391
- const h = ea(g, P());
12393
+ const h = ea(g, A());
12392
12394
  z || H(h);
12393
12395
  },
12394
- [P, z]
12396
+ [A, z]
12395
12397
  ), ne = M(
12396
12398
  (g) => {
12397
- const h = mo(g, P(), s);
12399
+ const h = mo(g, A(), s);
12398
12400
  z || H(h);
12399
12401
  },
12400
- [P, s, z]
12402
+ [A, s, z]
12401
12403
  ), ke = M(() => {
12402
12404
  var T, Y;
12403
12405
  const g = vt(Us(j)), h = (T = Q.current) == null ? void 0 : T.querySelector(`button[data-date="${g}"]`);
@@ -12444,7 +12446,7 @@ function Mm(n) {
12444
12446
  [we]
12445
12447
  );
12446
12448
  return {
12447
- componentId: A,
12449
+ componentId: P,
12448
12450
  strings: O,
12449
12451
  todayDate: j,
12450
12452
  year: L,
@@ -12504,8 +12506,8 @@ const Em = ({
12504
12506
  type: "button",
12505
12507
  "aria-label": $,
12506
12508
  onClick: () => b && C(),
12507
- onKeyDown: (A) => {
12508
- (A.key === "Enter" || A.key === " ") && (A.preventDefault(), b && C());
12509
+ onKeyDown: (P) => {
12510
+ (P.key === "Enter" || P.key === " ") && (P.preventDefault(), b && C());
12509
12511
  },
12510
12512
  className: [
12511
12513
  "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
@@ -12563,7 +12565,7 @@ const Em = ({
12563
12565
  m("next")
12564
12566
  ] });
12565
12567
  };
12566
- function Pm(n, e, t) {
12568
+ function Am(n, e, t) {
12567
12569
  const s = ps(t.year, t.month, n), i = vt(s), r = i === vt(e), a = t.activeSelected.includes(i), o = t.isDayDisabled(s, a);
12568
12570
  let l;
12569
12571
  return t.focusedDate ? l = t.focusedDate === i && !o ? "0" : "-1" : !o && t.tabIndexSetRef.current === 0 ? (t.tabIndexSetRef.current = n, l = "0") : l = t.tabIndexSetRef.current === n ? "0" : "-1", {
@@ -12576,7 +12578,7 @@ function Pm(n, e, t) {
12576
12578
  tabindex: l
12577
12579
  };
12578
12580
  }
12579
- function Am(n, e) {
12581
+ function Pm(n, e) {
12580
12582
  const { currentDateISO: t, isToday: s, isSelected: i } = n, r = e.range && (e.activeSelected.length === 2 || e.rangeHovered !== null) && t === e.activeSelected[0], a = e.range && e.activeSelected.length === 2 && t === e.activeSelected[1];
12581
12583
  return re({
12582
12584
  "pkt-cal-today": s,
@@ -12621,7 +12623,7 @@ const Rm = ({ state: n }) => {
12621
12623
  isDayDisabled: N,
12622
12624
  setFocusedDate: w,
12623
12625
  todayDate: C
12624
- } = n, A = {
12626
+ } = n, P = {
12625
12627
  year: t,
12626
12628
  month: s,
12627
12629
  activeSelected: i,
@@ -12645,9 +12647,9 @@ const Rm = ({ state: n }) => {
12645
12647
  );
12646
12648
  return /* @__PURE__ */ c("tr", { className: "pkt-cal-week-row", children: H });
12647
12649
  }, V = (H, D) => {
12648
- const W = Pm(H, D, A), { currentDate: L, currentDateISO: X, isSelected: oe, isDisabled: ee, ariaLabel: pe, tabindex: ce } = W;
12650
+ const W = Am(H, D, P), { currentDate: L, currentDateISO: X, isSelected: oe, isDisabled: ee, ariaLabel: pe, tabindex: ce } = W;
12649
12651
  f.current.push({ currentDateISO: X, isDisabled: ee, tabindex: ce });
12650
- const ye = Am(W, O), se = Im(W, O);
12652
+ const ye = Pm(W, O), se = Im(W, O);
12651
12653
  return /* @__PURE__ */ c("td", { className: ye, children: /* @__PURE__ */ c(
12652
12654
  "button",
12653
12655
  {
@@ -12773,7 +12775,7 @@ const zn = $e(
12773
12775
  var V, z;
12774
12776
  C(((z = (V = N.current) == null ? void 0 : V.textContent) == null ? void 0 : z.trim()) ?? "");
12775
12777
  }, [n]);
12776
- const A = xe(() => {
12778
+ const P = xe(() => {
12777
12779
  if (i && !o) return w && `Klikk for å fjerne ${w}` || m;
12778
12780
  }, [i, o, w, m]), O = {
12779
12781
  "pkt-tag": !0,
@@ -12798,7 +12800,7 @@ const zn = $e(
12798
12800
  type: d,
12799
12801
  onClick: $,
12800
12802
  "aria-label": o,
12801
- "aria-description": A,
12803
+ "aria-description": P,
12802
12804
  ref: p,
12803
12805
  children: [
12804
12806
  a && /* @__PURE__ */ c(Z, { className: "pkt-tag__icon", name: a }),
@@ -12834,7 +12836,7 @@ const Lm = $e(
12834
12836
  tagPosition: N = "top",
12835
12837
  tags: w = [],
12836
12838
  ...C
12837
- }, A) => {
12839
+ }, P) => {
12838
12840
  const O = re({
12839
12841
  "pkt-card": !0,
12840
12842
  [`pkt-card--${b}`]: b,
@@ -12877,7 +12879,7 @@ const Lm = $e(
12877
12879
  s && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-lead", children: s }),
12878
12880
  r && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-trail", children: r })
12879
12881
  ] });
12880
- return /* @__PURE__ */ c("div", { ref: A, className: re("pkt-card-root", e), style: { display: "block", width: "100%" }, children: /* @__PURE__ */ x("article", { ...C, className: O, "aria-label": f ? j : V, children: [
12882
+ return /* @__PURE__ */ c("div", { ref: P, className: re("pkt-card-root", e), style: { display: "block", width: "100%" }, children: /* @__PURE__ */ x("article", { ...C, className: O, "aria-label": f ? j : V, children: [
12881
12883
  he(),
12882
12884
  /* @__PURE__ */ x("div", { className: "pkt-card__wrapper", children: [
12883
12885
  N === "top" && H(),
@@ -12911,13 +12913,13 @@ const Bm = $e(
12911
12913
  requiredText: N = "Må fylles ut",
12912
12914
  tagText: w,
12913
12915
  ...C
12914
- }, A) => {
12916
+ }, P) => {
12915
12917
  const O = de(null);
12916
12918
  fe(() => {
12917
12919
  O.current && p !== void 0 && (O.current.indeterminate = p);
12918
12920
  }, [p]), fe(() => {
12919
- typeof A == "function" ? A(O.current) : A && (A.current = O.current);
12920
- }, [A]);
12921
+ typeof P == "function" ? P(O.current) : P && (P.current = O.current);
12922
+ }, [P]);
12921
12923
  const j = [a, "pkt-input-check"].filter(Boolean).join(" "), V = [
12922
12924
  "pkt-input-check__input-label",
12923
12925
  t ? "pkt-input-check__input-label--disabled" : "",
@@ -12927,7 +12929,7 @@ const Bm = $e(
12927
12929
  "pkt-input-check__input",
12928
12930
  e ? "pkt-input-check__input--tile" : "",
12929
12931
  t && e ? "pkt-input-check__input--tile-disabled" : ""
12930
- ].filter(Boolean).join(" "), he = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), H = () => /* @__PURE__ */ x(Ae, { children: [
12932
+ ].filter(Boolean).join(" "), he = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), H = () => /* @__PURE__ */ x(Pe, { children: [
12931
12933
  w && /* @__PURE__ */ c("span", { className: he + " pkt-tag--gray", children: w }),
12932
12934
  v && /* @__PURE__ */ c("span", { className: he + " pkt-tag--blue-light", children: b }),
12933
12935
  $ && /* @__PURE__ */ c("span", { className: he + " pkt-tag--beige", children: N })
@@ -12983,7 +12985,7 @@ const ss = $e(
12983
12985
  inline: N = !1,
12984
12986
  ariaDescribedby: w,
12985
12987
  useWrapper: C = !0,
12986
- children: A,
12988
+ children: P,
12987
12989
  className: O = "",
12988
12990
  hasFieldset: j = !1,
12989
12991
  role: V = "group",
@@ -12998,18 +13000,18 @@ const ss = $e(
12998
13000
  ].filter(Boolean).join(" "), ce = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), ye = () => L ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
12999
13001
  a,
13000
13002
  o ? `/${o}` : ""
13001
- ] }) : null, se = () => /* @__PURE__ */ x(Ae, { children: [
13003
+ ] }) : null, se = () => /* @__PURE__ */ x(Pe, { children: [
13002
13004
  p && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--gray", children: p }),
13003
13005
  l && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--blue-light", children: d }),
13004
13006
  m && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--beige", children: f })
13005
13007
  ] }), ie = () => {
13006
- const I = /* @__PURE__ */ x(Ae, { children: [
13008
+ const I = /* @__PURE__ */ x(Pe, { children: [
13007
13009
  e,
13008
13010
  " ",
13009
13011
  se()
13010
13012
  ] });
13011
13013
  return C ? j ? /* @__PURE__ */ c("legend", { className: "pkt-inputwrapper__legend", id: `${n}-label`, children: I }) : /* @__PURE__ */ c("label", { className: "pkt-inputwrapper__label", htmlFor: n, "aria-describedby": W, id: `${n}-label`, children: I }) : /* @__PURE__ */ c("label", { htmlFor: n, className: "pkt-sr-only", "aria-describedby": W, id: `${n}-label`, children: e });
13012
- }, qe = () => !t && !s ? null : /* @__PURE__ */ x(Ae, { children: [
13014
+ }, qe = () => !t && !s ? null : /* @__PURE__ */ x(Pe, { children: [
13013
13015
  t && C && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__helptext", id: `${n}-helptext`, children: t }),
13014
13016
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
13015
13017
  /* @__PURE__ */ c(
@@ -13039,11 +13041,11 @@ const ss = $e(
13039
13041
  }
13040
13042
  )
13041
13043
  ] })
13042
- ] }), Q = /* @__PURE__ */ x(Ae, { children: [
13044
+ ] }), Q = /* @__PURE__ */ x(Pe, { children: [
13043
13045
  ie(),
13044
13046
  qe(),
13045
13047
  X && /* @__PURE__ */ c(ye, {}),
13046
- A,
13048
+ P,
13047
13049
  oe && /* @__PURE__ */ c(ye, {}),
13048
13050
  v && b && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ c(Jr, { skin: "error", "aria-live": "assertive", role: "alert", id: `${n}-error`, compact: !0, children: b }) })
13049
13051
  ] });
@@ -13059,7 +13061,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13059
13061
  if (!e) return [...n];
13060
13062
  const t = e.toLowerCase();
13061
13063
  return n.filter((s) => (s.fulltext || s.value + (s.label || "") + (s.prefix || "")).toLowerCase().includes(t));
13062
- }, Ai = (n) => n.value + (n.label || "") + (n.prefix || ""), Ti = (n, e) => e !== null && n >= e, Sl = (n, e) => {
13064
+ }, Pi = (n) => n.value + (n.label || "") + (n.prefix || ""), Ti = (n, e) => e !== null && n >= e, Sl = (n, e) => {
13063
13065
  if (!n) return "";
13064
13066
  switch (e) {
13065
13067
  case "prefixAndValue":
@@ -13217,7 +13219,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13217
13219
  inputFocus: N,
13218
13220
  inputRef: w,
13219
13221
  triggerRef: C,
13220
- handleInputChange: A,
13222
+ handleInputChange: P,
13221
13223
  handleInputKeydown: O,
13222
13224
  handleInputFocus: j,
13223
13225
  handleInputBlur: V,
@@ -13254,7 +13256,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13254
13256
  type: "text",
13255
13257
  id: t,
13256
13258
  name: `${D || e}-input`,
13257
- onChange: A,
13259
+ onChange: P,
13258
13260
  onKeyDown: O,
13259
13261
  onFocus: j,
13260
13262
  onBlur: V,
@@ -13302,12 +13304,12 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13302
13304
  handleOptionClick: N,
13303
13305
  handleOptionKeydown: w,
13304
13306
  handleSearchInput: C,
13305
- handleSearchKeydown: A,
13307
+ handleSearchKeydown: P,
13306
13308
  handleNewOptionClick: O,
13307
13309
  handleNewOptionKeydown: j,
13308
13310
  listboxRef: V
13309
13311
  } = n, z = r.filter((L) => L.selected).length, he = a && z > 0 && d != null && d > 0, H = f && p && !l, D = !!v, W = ["pkt-listbox", s && "pkt-listbox__open", "pkt-txt-16-light"].filter(Boolean).join(" ");
13310
- return /* @__PURE__ */ x(Ae, { children: [
13312
+ return /* @__PURE__ */ x(Pe, { children: [
13311
13313
  /* @__PURE__ */ x(
13312
13314
  "div",
13313
13315
  {
@@ -13330,7 +13332,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13330
13332
  form: "",
13331
13333
  placeholder: b || "Søk...",
13332
13334
  onChange: C,
13333
- onKeyDown: A,
13335
+ onKeyDown: P,
13334
13336
  value: $,
13335
13337
  "data-type": "searchbox",
13336
13338
  disabled: o,
@@ -13427,7 +13429,7 @@ function Gm(n, e) {
13427
13429
  return n.map((t) => ({
13428
13430
  ...t,
13429
13431
  label: t.label || t.value,
13430
- fulltext: Ai(t),
13432
+ fulltext: Pi(t),
13431
13433
  selected: e.includes(t.value)
13432
13434
  }));
13433
13435
  }
@@ -13450,7 +13452,7 @@ function Xm(n, e) {
13450
13452
  placeholder: N,
13451
13453
  disabled: w = !1,
13452
13454
  required: C = !1,
13453
- fullwidth: A = !1,
13455
+ fullwidth: P = !1,
13454
13456
  hasError: O = !1,
13455
13457
  errorMessage: j,
13456
13458
  helptext: V,
@@ -13467,9 +13469,9 @@ function Xm(n, e) {
13467
13469
  onChange: ce,
13468
13470
  onValueChange: ye,
13469
13471
  children: se
13470
- } = n, ie = `${t}-input`, qe = `${t}-listbox`, Q = m || p, I = de(null), Ee = de(null), Pe = de(null), te = de(null), Ve = de(null), Re = M(() => {
13472
+ } = n, ie = `${t}-input`, qe = `${t}-listbox`, Q = m || p, I = de(null), Ee = de(null), Ae = de(null), te = de(null), Ve = de(null), Re = M(() => {
13471
13473
  var _, E;
13472
- Q ? (_ = I.current) == null || _.focus() : (E = Pe.current) == null || E.focus();
13474
+ Q ? (_ = I.current) == null || _.focus() : (E = Ae.current) == null || E.focus();
13473
13475
  }, [Q]), we = xe(() => {
13474
13476
  const _ = [];
13475
13477
  return Ri.forEach(se, (E) => {
@@ -13483,17 +13485,17 @@ function Xm(n, e) {
13483
13485
  });
13484
13486
  }
13485
13487
  }), _;
13486
- }, [se]), Ne = xe(() => o && o.length > 0 ? o.map((_) => ({ ..._, fulltext: Ai(_) })) : a && a.length > 0 ? a.map((_) => ({ ..._, fulltext: Ai(_) })) : we.length > 0 ? we.map((_) => ({ ..._, fulltext: Ai(_) })) : [], [o, a, we]), Le = i !== void 0, [We, Be] = le(() => Nr(i ?? r, l)), _e = de(We);
13488
+ }, [se]), Ne = xe(() => o && o.length > 0 ? o.map((_) => ({ ..._, fulltext: Pi(_) })) : a && a.length > 0 ? a.map((_) => ({ ..._, fulltext: Pi(_) })) : we.length > 0 ? we.map((_) => ({ ..._, fulltext: Pi(_) })) : [], [o, a, we]), Le = i !== void 0, [We, Be] = le(() => Nr(i ?? r, l)), _e = de(We);
13487
13489
  fe(() => {
13488
13490
  Le && Be(Nr(i, l));
13489
13491
  }, [i, Le, l]);
13490
- const P = Le ? Nr(i, l) : We, [Ue, Xe] = le([]), q = xe(() => {
13492
+ const A = Le ? Nr(i, l) : We, [Ue, Xe] = le([]), q = xe(() => {
13491
13493
  const _ = [
13492
13494
  ...Ue.filter((E) => !Ne.some((J) => J.value === E.value)),
13493
13495
  ...Ne
13494
13496
  ];
13495
- return Gm(_, P);
13496
- }, [Ne, Ue, P]), [U, ne] = le(!1), [ke, be] = le(""), [et, Qe] = le(""), [g, h] = le(""), [y, T] = le(null), [Y, K] = le(!1), [ue, rt] = le(!1), [tt, je] = le(-1), Gt = de(!1), Xt = Ti(P.length, d ?? null), wt = l && d != null, Ts = xe(() => ke ? m ? go(q, ke).filtered : Vm(q, ke) : q, [q, ke, m]), pt = xe(
13497
+ return Gm(_, A);
13498
+ }, [Ne, Ue, A]), [U, ne] = le(!1), [ke, be] = le(""), [et, Qe] = le(""), [g, h] = le(""), [y, T] = le(null), [Y, K] = le(!1), [ue, rt] = le(!1), [tt, je] = le(-1), Gt = de(!1), Xt = Ti(A.length, d ?? null), wt = l && d != null, Ts = xe(() => ke ? m ? go(q, ke).filtered : Vm(q, ke) : q, [q, ke, m]), pt = xe(
13497
13499
  () => {
13498
13500
  var _;
13499
13501
  return (_ = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : _.set;
@@ -13507,14 +13509,14 @@ function Xm(n, e) {
13507
13509
  pt.call(E, J), E.dispatchEvent(new Event("input", { bubbles: !0 }));
13508
13510
  },
13509
13511
  [pt, l]
13510
- ), Qt = l ? P.join(",") : P[0] || "";
13512
+ ), Qt = l ? A.join(",") : A[0] || "";
13511
13513
  fe(() => {
13512
13514
  Ee.current && (Ee.current.value = Qt);
13513
13515
  }, [Qt]), fe(() => {
13514
13516
  if (U || l || !I.current) return;
13515
- const _ = P[0] ? Ni(P[0], q, v) : "";
13517
+ const _ = A[0] ? Ni(A[0], q, v) : "";
13516
13518
  I.current.value !== _ && (I.current.value = _);
13517
- }, [P, q, v, l, U]);
13519
+ }, [A, q, v, l, U]);
13518
13520
  const nn = M(
13519
13521
  (_, E = !0) => {
13520
13522
  Le || Be(_), E && (ye == null || ye(_), Ft(_));
@@ -13522,22 +13524,22 @@ function Xm(n, e) {
13522
13524
  [Le, ye, Ft]
13523
13525
  ), $n = M(
13524
13526
  (_) => {
13525
- if (!_ || P.includes(_)) return;
13526
- if (l && Ti(P.length, d ?? null)) {
13527
+ if (!_ || A.includes(_)) return;
13528
+ if (l && Ti(A.length, d ?? null)) {
13527
13529
  h("Maks antall valg nådd");
13528
13530
  return;
13529
13531
  }
13530
- const E = l ? [...P, _] : [_];
13532
+ const E = l ? [...A, _] : [_];
13531
13533
  nn(E);
13532
13534
  },
13533
- [P, l, d, nn]
13535
+ [A, l, d, nn]
13534
13536
  ), nt = M(
13535
13537
  (_) => {
13536
13538
  if (!_) return;
13537
- const E = P.filter((He) => He !== _), J = mn(q, _);
13539
+ const E = A.filter((He) => He !== _), J = mn(q, _);
13538
13540
  J != null && J.userAdded && Xe((He) => He.filter((Dt) => Dt.value !== _)), nn(E);
13539
13541
  },
13540
- [P, q, nn]
13542
+ [A, q, nn]
13541
13543
  ), Ns = M(() => {
13542
13544
  Xe([]), nn([]);
13543
13545
  }, [nn]), In = M(
@@ -13547,8 +13549,8 @@ function Xm(n, e) {
13547
13549
  if (!l)
13548
13550
  E = [_];
13549
13551
  else {
13550
- if (mn(q, _) || Ti(P.length, d ?? null)) return;
13551
- E = [...P, _];
13552
+ if (mn(q, _) || Ti(A.length, d ?? null)) return;
13553
+ E = [...A, _];
13552
13554
  }
13553
13555
  const J = {
13554
13556
  value: _,
@@ -13558,31 +13560,31 @@ function Xm(n, e) {
13558
13560
  };
13559
13561
  Xe((He) => [J, ...He.filter((Dt) => Dt.value !== _)]), nn(E);
13560
13562
  },
13561
- [l, q, P, d, nn]
13563
+ [l, q, A, d, nn]
13562
13564
  ), Ds = M(
13563
13565
  (_ = !0, E) => {
13564
13566
  if (T(null), _ && I.current && I.current.type !== "hidden") {
13565
13567
  be(""), Qe("");
13566
- const J = E !== void 0 ? E : P[0];
13568
+ const J = E !== void 0 ? E : A[0];
13567
13569
  !l && J ? I.current.value = Ni(J, q, v) : I.current.value = "", l || (rt(!1), h(""));
13568
13570
  }
13569
13571
  },
13570
- [l, P, q, v]
13572
+ [l, A, q, v]
13571
13573
  ), Vt = M(
13572
13574
  (_) => {
13573
13575
  var aa, oa;
13574
13576
  if (w) return;
13575
13577
  h(""), T(null);
13576
- const E = ((aa = mn(q, _)) == null ? void 0 : aa.value) || null, J = P.includes(_ || E || ""), He = !!E, Dt = ((oa = q.find((Ul) => Ul.value === _)) == null ? void 0 : oa.disabled) || !1, Rn = !(_ != null && _.trim()), At = !l, Ut = l, _i = Ti(P.length, d ?? null);
13578
+ const E = ((aa = mn(q, _)) == null ? void 0 : aa.value) || null, J = A.includes(_ || E || ""), He = !!E, Dt = ((oa = q.find((Ul) => Ul.value === _)) == null ? void 0 : oa.disabled) || !1, Rn = !(_ != null && _.trim()), Pt = !l, Ut = l, _i = Ti(A.length, d ?? null);
13577
13579
  let fn = !1, $i = !0, Os = "", cr = "", as;
13578
- Dt || (!He && p && !Rn ? (In(_), Os = "Ny verdi lagt til", fn = Ut, At && (as = _ || "")) : !He && !p ? (At && P[0] && nt(P[0]), $i = !1, fn = !0, Os = "Ingen treff i søket") : J ? (nt(E), fn = !0, as = "", At && Q && I.current && I.current.type !== "hidden" && (I.current.value = "")) : Rn && At ? (Ns(), fn = !0, as = "") : At ? (P[0] && nt(P[0]), $n(E), fn = !1, as = E || "") : Ut && !_i ? ($n(E), fn = !0) : Ut && _i ? (Os = "Maks antall valg nådd", $i = !1, cr = _ || "") : (At && Ns(), Os = "Ingen gyldig verdi valgt", $i = !1, fn = !0, cr = _ || "", as = ""), ne(fn), h(Os), be(cr), Ds($i, as), fn || (At && Q && (Gt.current = !0), window.setTimeout(() => {
13580
+ Dt || (!He && p && !Rn ? (In(_), Os = "Ny verdi lagt til", fn = Ut, Pt && (as = _ || "")) : !He && !p ? (Pt && A[0] && nt(A[0]), $i = !1, fn = !0, Os = "Ingen treff i søket") : J ? (nt(E), fn = !0, as = "", Pt && Q && I.current && I.current.type !== "hidden" && (I.current.value = "")) : Rn && Pt ? (Ns(), fn = !0, as = "") : Pt ? (A[0] && nt(A[0]), $n(E), fn = !1, as = E || "") : Ut && !_i ? ($n(E), fn = !0) : Ut && _i ? (Os = "Maks antall valg nådd", $i = !1, cr = _ || "") : (Pt && Ns(), Os = "Ingen gyldig verdi valgt", $i = !1, fn = !0, cr = _ || "", as = ""), ne(fn), h(Os), be(cr), Ds($i, as), fn || (Pt && Q && (Gt.current = !0), window.setTimeout(() => {
13579
13581
  Re();
13580
13582
  }, 0)));
13581
13583
  },
13582
13584
  [
13583
13585
  w,
13584
13586
  q,
13585
- P,
13587
+ A,
13586
13588
  l,
13587
13589
  d,
13588
13590
  p,
@@ -13596,10 +13598,10 @@ function Xm(n, e) {
13596
13598
  ), Nt = M(() => {
13597
13599
  if (K(!1), T(null), h(""), be(""), I.current && I.current.type !== "hidden") {
13598
13600
  const _ = I.current.value;
13599
- let E = P[0];
13601
+ let E = A[0];
13600
13602
  if (l) {
13601
13603
  if (_ !== "") {
13602
- const { action: J, value: He } = Hm(_, P, q, p, l);
13604
+ const { action: J, value: He } = Hm(_, A, q, p, l);
13603
13605
  switch (J) {
13604
13606
  case "addUserValue":
13605
13607
  In(He);
@@ -13613,24 +13615,24 @@ function Xm(n, e) {
13613
13615
  }
13614
13616
  }
13615
13617
  } else if (!_)
13616
- P[0] && nt(P[0]), E = void 0;
13618
+ A[0] && nt(A[0]), E = void 0;
13617
13619
  else {
13618
13620
  const J = mn(q, _);
13619
- J && J.value !== P[0] ? (P[0] && nt(P[0]), $n(J.value), E = J.value) : !J && p && (P[0] && nt(P[0]), In(_), E = _);
13621
+ J && J.value !== A[0] ? (A[0] && nt(A[0]), $n(J.value), E = J.value) : !J && p && (A[0] && nt(A[0]), In(_), E = _);
13620
13622
  }
13621
13623
  !l && E ? I.current.value = Ni(E, q, v) : I.current.value = "";
13622
13624
  }
13623
13625
  ne(!1), rt(!1);
13624
- }, [P, q, p, l, v, In, $n, nt]), is = M(
13626
+ }, [A, q, p, l, v, In, $n, nt]), is = M(
13625
13627
  (_) => {
13626
13628
  if (!_.trim().toLowerCase()) {
13627
- T(null), h(""), !l && P[0] && nt(P[0]);
13629
+ T(null), h(""), !l && A[0] && nt(A[0]);
13628
13630
  return;
13629
13631
  }
13630
- const J = Um(_, P, q, p);
13632
+ const J = Um(_, A, q, p);
13631
13633
  T(J.addValueText), h(J.userInfoMessage);
13632
13634
  },
13633
- [P, q, p, l, nt]
13635
+ [A, q, p, l, nt]
13634
13636
  ), ki = M(
13635
13637
  (_) => {
13636
13638
  var J;
@@ -13650,18 +13652,18 @@ function Xm(n, e) {
13650
13652
  [w, m, q, is]
13651
13653
  ), ir = M(
13652
13654
  (_) => {
13653
- var J, He, Dt, Rn, At;
13655
+ var J, He, Dt, Rn, Pt;
13654
13656
  if (_.key === "Backspace") {
13655
13657
  const Ut = !((J = I.current) != null && J.value);
13656
- if (!ke && Ut && l && P.length > 0) {
13658
+ if (!ke && Ut && l && A.length > 0) {
13657
13659
  _.preventDefault();
13658
- const _i = P[P.length - 1];
13660
+ const _i = A[A.length - 1];
13659
13661
  nt(_i);
13660
13662
  }
13661
13663
  return;
13662
13664
  }
13663
- if (_.key === "ArrowLeft" && l && P.length > 0 && (((He = I.current) == null ? void 0 : He.selectionStart) ?? 0) === 0 && !((Dt = I.current) != null && Dt.value)) {
13664
- _.preventDefault(), je(P.length - 1);
13665
+ if (_.key === "ArrowLeft" && l && A.length > 0 && (((He = I.current) == null ? void 0 : He.selectionStart) ?? 0) === 0 && !((Dt = I.current) != null && Dt.value)) {
13666
+ _.preventDefault(), je(A.length - 1);
13665
13667
  return;
13666
13668
  }
13667
13669
  const E = jm(_.key, _.shiftKey, l);
@@ -13674,8 +13676,8 @@ function Xm(n, e) {
13674
13676
  }
13675
13677
  switch (_.preventDefault(), E) {
13676
13678
  case "addValue": {
13677
- const Ut = ((At = I.current) == null ? void 0 : At.value.trim()) || "";
13678
- if (be(Ut), Ut && P.includes(Ut)) {
13679
+ const Ut = ((Pt = I.current) == null ? void 0 : Pt.value.trim()) || "";
13680
+ if (be(Ut), Ut && A.includes(Ut)) {
13679
13681
  Ds(!0), h("Verdien er allerede valgt");
13680
13682
  break;
13681
13683
  }
@@ -13698,7 +13700,7 @@ function Xm(n, e) {
13698
13700
  },
13699
13701
  [
13700
13702
  ke,
13701
- P,
13703
+ A,
13702
13704
  l,
13703
13705
  w,
13704
13706
  p,
@@ -13715,9 +13717,9 @@ function Xm(n, e) {
13715
13717
  Gt.current = !1, K(!0);
13716
13718
  return;
13717
13719
  }
13718
- !l && P[0] && I.current && I.current.type !== "hidden" && (rt(!0), I.current.value = Ni(P[0], q, v)), K(!0), be(""), ne(!0);
13720
+ !l && A[0] && I.current && I.current.type !== "hidden" && (rt(!0), I.current.value = Ni(A[0], q, v)), K(!0), be(""), ne(!0);
13719
13721
  }
13720
- }, [w, l, P, q, v]), rr = M(() => {
13722
+ }, [w, l, A, q, v]), rr = M(() => {
13721
13723
  K(!1), rt(!1);
13722
13724
  }, []), ar = M(
13723
13725
  (_) => {
@@ -13784,19 +13786,19 @@ function Xm(n, e) {
13784
13786
  }, 0);
13785
13787
  break;
13786
13788
  case "ArrowLeft":
13787
- l && P.length > 0 && (_.preventDefault(), je(P.length - 1));
13789
+ l && A.length > 0 && (_.preventDefault(), je(A.length - 1));
13788
13790
  break;
13789
13791
  case "Backspace":
13790
13792
  case "Delete":
13791
- if (l && P.length > 0) {
13793
+ if (l && A.length > 0) {
13792
13794
  _.preventDefault();
13793
- const E = P[P.length - 1];
13795
+ const E = A[A.length - 1];
13794
13796
  nt(E);
13795
13797
  }
13796
13798
  break;
13797
13799
  }
13798
13800
  },
13799
- [w, U, p, Xt, y, f, l, P, nt]
13801
+ [w, U, p, Xt, y, f, l, A, nt]
13800
13802
  ), F = M(
13801
13803
  (_) => {
13802
13804
  Vt(_);
@@ -13837,25 +13839,25 @@ function Xm(n, e) {
13837
13839
  _.preventDefault(), E > 0 && je(E - 1);
13838
13840
  break;
13839
13841
  case "ArrowRight":
13840
- _.preventDefault(), E < P.length - 1 ? je(E + 1) : (je(-1), Q && I.current ? I.current.focus() : (J = Pe.current) == null || J.focus());
13842
+ _.preventDefault(), E < A.length - 1 ? je(E + 1) : (je(-1), Q && I.current ? I.current.focus() : (J = Ae.current) == null || J.focus());
13841
13843
  break;
13842
13844
  case "Backspace":
13843
13845
  case "Delete":
13844
13846
  _.preventDefault();
13845
13847
  {
13846
- const Rn = P[E], At = E >= P.length - 1 ? E - 1 : E;
13847
- nt(Rn), At >= 0 ? je(At) : (je(-1), Q && I.current ? I.current.focus() : (He = Pe.current) == null || He.focus());
13848
+ const Rn = A[E], Pt = E >= A.length - 1 ? E - 1 : E;
13849
+ nt(Rn), Pt >= 0 ? je(Pt) : (je(-1), Q && I.current ? I.current.focus() : (He = Ae.current) == null || He.focus());
13848
13850
  }
13849
13851
  break;
13850
13852
  case "Tab":
13851
13853
  je(-1);
13852
13854
  break;
13853
13855
  case "Escape":
13854
- _.preventDefault(), je(-1), Q && I.current ? I.current.focus() : (Dt = Pe.current) == null || Dt.focus();
13856
+ _.preventDefault(), je(-1), Q && I.current ? I.current.focus() : (Dt = Ae.current) == null || Dt.focus();
13855
13857
  break;
13856
13858
  }
13857
13859
  },
13858
- [P, Q, nt]
13860
+ [A, Q, nt]
13859
13861
  ), yi = M(
13860
13862
  (_) => {
13861
13863
  be(_.target.value), is(_.target.value);
@@ -13941,11 +13943,11 @@ function Xm(n, e) {
13941
13943
  },
13942
13944
  focus() {
13943
13945
  var _, E;
13944
- Q ? (_ = I.current) == null || _.focus() : (E = Pe.current) == null || E.focus();
13946
+ Q ? (_ = I.current) == null || _.focus() : (E = Ae.current) == null || E.focus();
13945
13947
  },
13946
13948
  blur() {
13947
13949
  var _, E;
13948
- Q ? (_ = I.current) == null || _.blur() : (E = Pe.current) == null || E.blur();
13950
+ Q ? (_ = I.current) == null || _.blur() : (E = Ae.current) == null || E.blur();
13949
13951
  }
13950
13952
  }),
13951
13953
  [Le]
@@ -13955,7 +13957,7 @@ function Xm(n, e) {
13955
13957
  inputId: ie,
13956
13958
  listboxId: qe,
13957
13959
  // Values
13958
- values: P,
13960
+ values: A,
13959
13961
  inputValue: et,
13960
13962
  searchValue: ke,
13961
13963
  // Options
@@ -13982,7 +13984,7 @@ function Xm(n, e) {
13982
13984
  placeholder: N,
13983
13985
  disabled: w,
13984
13986
  required: C,
13985
- fullwidth: A,
13987
+ fullwidth: P,
13986
13988
  hasError: O,
13987
13989
  errorMessage: j,
13988
13990
  helptext: V,
@@ -14001,7 +14003,7 @@ function Xm(n, e) {
14001
14003
  // Refs
14002
14004
  inputRef: I,
14003
14005
  changeInputRef: Ee,
14004
- triggerRef: Pe,
14006
+ triggerRef: Ae,
14005
14007
  listboxRef: te,
14006
14008
  wrapperRef: Ve,
14007
14009
  // Handlers
@@ -14140,12 +14142,12 @@ const Nl = () => {
14140
14142
  n && (C.current = !0), fe(() => {
14141
14143
  n && ig(w.current, (v == null ? void 0 : v.current) ?? null, b);
14142
14144
  }, [n, v, b]);
14143
- const A = ["pkt-calendar-popup", n ? "show" : "hide"].join(" "), O = n || C.current;
14145
+ const P = ["pkt-calendar-popup", n ? "show" : "hide"].join(" "), O = n || C.current;
14144
14146
  return /* @__PURE__ */ c(
14145
14147
  "div",
14146
14148
  {
14147
14149
  ref: w,
14148
- className: A,
14150
+ className: P,
14149
14151
  hidden: !n,
14150
14152
  "aria-hidden": !n,
14151
14153
  children: O && /* @__PURE__ */ c(
@@ -14213,7 +14215,7 @@ const Nl = () => {
14213
14215
  minStr: N,
14214
14216
  maxStr: w,
14215
14217
  inputType: C,
14216
- isIOSDevice: A,
14218
+ isIOSDevice: P,
14217
14219
  strings: O,
14218
14220
  inputClasses: j,
14219
14221
  buttonClasses: V,
@@ -14235,7 +14237,7 @@ const Nl = () => {
14235
14237
  handleRangeFromKeydown: Q,
14236
14238
  handleRangeToKeydown: I,
14237
14239
  handleMultipleKeydown: Ee,
14238
- restProps: Pe
14240
+ restProps: Ae
14239
14241
  } = n, te = (We) => {
14240
14242
  We.preventDefault(), X();
14241
14243
  }, Ve = () => {
@@ -14256,20 +14258,20 @@ const Nl = () => {
14256
14258
  }
14257
14259
  );
14258
14260
  };
14259
- return r ? /* @__PURE__ */ x(Ae, { children: [
14261
+ return r ? /* @__PURE__ */ x(Pe, { children: [
14260
14262
  /* @__PURE__ */ c(ag, { dates: s, dateformat: i, idBase: e, strings: O, onDateRemoved: ie }),
14261
14263
  /* @__PURE__ */ c("div", { className: "pkt-datepicker__inputs", children: /* @__PURE__ */ x("div", { className: "pkt-input__container", children: [
14262
14264
  /* @__PURE__ */ c(
14263
14265
  "input",
14264
14266
  {
14265
- ...Pe,
14267
+ ...Ae,
14266
14268
  ref: D,
14267
14269
  className: j,
14268
14270
  type: C,
14269
14271
  id: t,
14270
14272
  name: p ?? e,
14271
14273
  placeholder: v,
14272
- readOnly: d || A && !d,
14274
+ readOnly: d || P && !d,
14273
14275
  disabled: H,
14274
14276
  "aria-describedby": $ ? `${e}-helptext` : void 0,
14275
14277
  "aria-invalid": b,
@@ -14287,7 +14289,7 @@ const Nl = () => {
14287
14289
  /* @__PURE__ */ c(
14288
14290
  "input",
14289
14291
  {
14290
- ...Pe,
14292
+ ...Ae,
14291
14293
  ref: D,
14292
14294
  className: j,
14293
14295
  type: C,
@@ -14297,7 +14299,7 @@ const Nl = () => {
14297
14299
  min: N,
14298
14300
  max: w,
14299
14301
  placeholder: v,
14300
- readOnly: d || A && !d,
14302
+ readOnly: d || P && !d,
14301
14303
  disabled: l,
14302
14304
  required: m,
14303
14305
  "aria-label": `${f} ${((we = O.generic) == null ? void 0 : we.from) ?? "Fra"}`,
@@ -14324,7 +14326,7 @@ const Nl = () => {
14324
14326
  value: s[1] ?? "",
14325
14327
  min: N,
14326
14328
  max: w,
14327
- readOnly: d || A && !d,
14329
+ readOnly: d || P && !d,
14328
14330
  disabled: l,
14329
14331
  "aria-label": `${f} ${((Le = O.generic) == null ? void 0 : Le.to) ?? "Til"}`,
14330
14332
  "aria-invalid": b,
@@ -14340,7 +14342,7 @@ const Nl = () => {
14340
14342
  /* @__PURE__ */ c(
14341
14343
  "input",
14342
14344
  {
14343
- ...Pe,
14345
+ ...Ae,
14344
14346
  ref: D,
14345
14347
  className: j,
14346
14348
  type: C,
@@ -14350,7 +14352,7 @@ const Nl = () => {
14350
14352
  min: N,
14351
14353
  max: w,
14352
14354
  placeholder: v,
14353
- readOnly: d || A && !d,
14355
+ readOnly: d || P && !d,
14354
14356
  disabled: l,
14355
14357
  required: m,
14356
14358
  "aria-describedby": $ ? `${e}-helptext` : void 0,
@@ -14401,7 +14403,7 @@ function ug(n, e) {
14401
14403
  today: N,
14402
14404
  calendarOpen: w,
14403
14405
  timezone: C,
14404
- fullwidth: A = !1,
14406
+ fullwidth: P = !1,
14405
14407
  hasFieldset: O = !1,
14406
14408
  inline: j = !1,
14407
14409
  helptext: V,
@@ -14423,11 +14425,11 @@ function ug(n, e) {
14423
14425
  min: Q,
14424
14426
  max: I,
14425
14427
  placeholder: Ee,
14426
- onChange: Pe,
14428
+ onChange: Ae,
14427
14429
  onValueChange: te,
14428
14430
  className: Ve,
14429
14431
  ...Re
14430
- } = n, we = M((B) => B === void 0 ? [] : vo(B), []), Ne = i !== void 0, Le = typeof r == "number" ? void 0 : r, [We, Be] = le(() => we(i ?? Le)), _e = Ne ? we(i) : We, P = de(We);
14432
+ } = n, we = M((B) => B === void 0 ? [] : vo(B), []), Ne = i !== void 0, Le = typeof r == "number" ? void 0 : r, [We, Be] = le(() => we(i ?? Le)), _e = Ne ? we(i) : We, A = de(We);
14431
14433
  fe(() => {
14432
14434
  Ne && Be(we(i));
14433
14435
  }, [i, Ne, we]);
@@ -14439,9 +14441,9 @@ function ug(n, e) {
14439
14441
  () => ce ?? (d ? cg : lg),
14440
14442
  [ce, d]
14441
14443
  ), h = typeof Q == "string" ? Q : Q !== void 0 ? String(Q) : void 0, y = typeof I == "string" ? I : I !== void 0 ? String(I) : void 0, T = xe(() => {
14442
- const B = eg(A, m, o, d, se, et);
14444
+ const B = eg(P, m, o, d, se, et);
14443
14445
  return Object.entries(B).filter(([, F]) => F).map(([F]) => F).join(" ");
14444
- }, [A, m, o, d, se, et]), Y = xe(() => {
14446
+ }, [P, m, o, d, se, et]), Y = xe(() => {
14445
14447
  const B = tg();
14446
14448
  return Object.entries(B).filter(([, F]) => F).map(([F]) => F).join(" ");
14447
14449
  }, []), K = xe(() => {
@@ -14624,7 +14626,7 @@ function ug(n, e) {
14624
14626
  if (!B) return;
14625
14627
  const F = () => {
14626
14628
  window.setTimeout(() => {
14627
- Be(P.current), Xe(!1), ne.current && (ne.current.value = P.current.join(","));
14629
+ Be(A.current), Xe(!1), ne.current && (ne.current.value = A.current.join(","));
14628
14630
  }, 0);
14629
14631
  };
14630
14632
  return B.addEventListener("reset", F), () => B.removeEventListener("reset", F);
@@ -14669,7 +14671,7 @@ function ug(n, e) {
14669
14671
  required: ie,
14670
14672
  name: qe,
14671
14673
  placeholder: Ee,
14672
- fullwidth: A,
14674
+ fullwidth: P,
14673
14675
  hasFieldset: O,
14674
14676
  inline: j,
14675
14677
  helptext: V,
@@ -14702,7 +14704,7 @@ function ug(n, e) {
14702
14704
  changeInputRef: ne,
14703
14705
  btnRef: ke,
14704
14706
  wrapperRef: be,
14705
- onChange: Pe,
14707
+ onChange: Ae,
14706
14708
  toggleCalendar: Ft,
14707
14709
  hideCalendar: Qt,
14708
14710
  handleDateSelected: $n,
@@ -14850,7 +14852,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14850
14852
  fe(() => {
14851
14853
  C(t);
14852
14854
  }, [p, t]);
14853
- const A = M(
14855
+ const P = M(
14854
14856
  (D) => {
14855
14857
  const W = D.map((L) => new bg(L));
14856
14858
  s(W), p.current && (p.current.value = "");
@@ -14862,9 +14864,9 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14862
14864
  e && C(t);
14863
14865
  return;
14864
14866
  }
14865
- A(Array.from(W));
14867
+ P(Array.from(W));
14866
14868
  }, j = (D) => {
14867
- A(D);
14869
+ P(D);
14868
14870
  }, V = (D) => {
14869
14871
  if (D.preventDefault(), N(!1), l) return;
14870
14872
  const W = D.dataTransfer.files, L = Array.from(W);
@@ -14907,10 +14909,10 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14907
14909
  "aria-label": e ? "Velg filer" : "Velg fil"
14908
14910
  }
14909
14911
  ),
14910
- r === "custom" && /* @__PURE__ */ c(Ae, { children: t == null ? void 0 : t.map((D) => /* @__PURE__ */ c("input", { type: "hidden", name: i, value: D.fileId }, D.fileId)) }),
14912
+ r === "custom" && /* @__PURE__ */ c(Pe, { children: t == null ? void 0 : t.map((D) => /* @__PURE__ */ c("input", { type: "hidden", name: i, value: D.fileId }, D.fileId)) }),
14911
14913
  /* @__PURE__ */ x("div", { className: "pkt-fileupload__drop-zone__placeholder", children: [
14912
14914
  /* @__PURE__ */ c(Z, { name: "attachment", className: "pkt-fileupload__drop-zone__placeholder__icon", "aria-hidden": "true" }),
14913
- /* @__PURE__ */ c("p", { className: "pkt-fileupload__drop-zone__placeholder__title", children: $ ? `${w.dropFilesHere} ...` : /* @__PURE__ */ x(Ae, { children: [
14915
+ /* @__PURE__ */ c("p", { className: "pkt-fileupload__drop-zone__placeholder__title", children: $ ? `${w.dropFilesHere} ...` : /* @__PURE__ */ x(Pe, { children: [
14914
14916
  w.selectOrDragFiles,
14915
14917
  " ",
14916
14918
  /* @__PURE__ */ c(
@@ -14961,7 +14963,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14961
14963
  optionalTag: N = !1,
14962
14964
  optionalText: w,
14963
14965
  requiredTag: C = !1,
14964
- requiredText: A,
14966
+ requiredText: P,
14965
14967
  tagText: O = null,
14966
14968
  placeholder: j,
14967
14969
  rows: V,
@@ -14976,8 +14978,8 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14976
14978
  ...ee
14977
14979
  }, pe) => {
14978
14980
  const ce = [r, "pkt-textinput", "pkt-textarea"].join(" "), ye = `${n}-input`, se = `${ye}-label`, ie = t || se, [qe, Q] = le(0), I = (Ee) => {
14979
- var Pe, te;
14980
- s && Q(((te = (Pe = Ee.currentTarget) == null ? void 0 : Pe.value) == null ? void 0 : te.length) || 0), he && he(Ee);
14981
+ var Ae, te;
14982
+ s && Q(((te = (Ae = Ee.currentTarget) == null ? void 0 : Ae.value) == null ? void 0 : te.length) || 0), he && he(Ee);
14981
14983
  };
14982
14984
  return fe(() => {
14983
14985
  H !== void 0 && Q((H == null ? void 0 : H.length) || 0);
@@ -14998,7 +15000,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14998
15000
  optionalTag: N,
14999
15001
  optionalText: w,
15000
15002
  requiredTag: C,
15001
- requiredText: A,
15003
+ requiredText: P,
15002
15004
  tagText: O,
15003
15005
  useWrapper: z,
15004
15006
  counter: s,
@@ -15055,7 +15057,7 @@ const _g = Symbol("comment"), $g = (n) => {
15055
15057
  return (l = i.current) == null ? void 0 : l.focus({ preventScroll: !0 });
15056
15058
  }, 0);
15057
15059
  return () => clearTimeout(o);
15058
- }, [n.fileId]), /* @__PURE__ */ x(Ae, { children: [
15060
+ }, [n.fileId]), /* @__PURE__ */ x(Pe, { children: [
15059
15061
  /* @__PURE__ */ c(
15060
15062
  Dl,
15061
15063
  {
@@ -15164,7 +15166,7 @@ const _g = Symbol("comment"), $g = (n) => {
15164
15166
  var i;
15165
15167
  n.onSave(((i = e.current) == null ? void 0 : i.value) ?? "");
15166
15168
  };
15167
- return /* @__PURE__ */ x(Ae, { children: [
15169
+ return /* @__PURE__ */ x(Pe, { children: [
15168
15170
  /* @__PURE__ */ c("label", { htmlFor: t, className: "pkt-sr-only", children: "Endre filnavn" }),
15169
15171
  /* @__PURE__ */ c(
15170
15172
  "input",
@@ -15210,7 +15212,7 @@ const _g = Symbol("comment"), $g = (n) => {
15210
15212
  ),
15211
15213
  symbol: Dg
15212
15214
  };
15213
- }, Pg = (n, e) => {
15215
+ }, Ag = (n, e) => {
15214
15216
  const t = M(
15215
15217
  (r, a, o) => {
15216
15218
  const l = n.find((m) => m.fileId === r), d = l.attributes || {};
@@ -15233,7 +15235,7 @@ const _g = Symbol("comment"), $g = (n) => {
15233
15235
  }),
15234
15236
  [s, t]
15235
15237
  ) };
15236
- }, Ag = (n) => {
15238
+ }, Pg = (n) => {
15237
15239
  const [e, t] = le(!1), [s, i] = le(0), r = de(null), a = M(
15238
15240
  (d) => {
15239
15241
  var f;
@@ -15305,7 +15307,7 @@ const _g = Symbol("comment"), $g = (n) => {
15305
15307
  r && V.target === N.current && w();
15306
15308
  },
15307
15309
  [r, N, w]
15308
- ), A = M(() => {
15310
+ ), P = M(() => {
15309
15311
  p == null || p();
15310
15312
  }, [p]), O = l === "blue", j = re(
15311
15313
  {
@@ -15329,7 +15331,7 @@ const _g = Symbol("comment"), $g = (n) => {
15329
15331
  "aria-labelledby": s ? "pkt-modal__headingText" : void 0,
15330
15332
  "aria-describedby": "pkt-modal__content",
15331
15333
  onClick: C,
15332
- onClose: A,
15334
+ onClose: P,
15333
15335
  children: /* @__PURE__ */ x("div", { className: "pkt-modal__wrapper", children: [
15334
15336
  (s || !i) && /* @__PURE__ */ x("div", { className: "pkt-modal__header", children: [
15335
15337
  /* @__PURE__ */ c("div", { className: "pkt-modal__header-background" }),
@@ -15493,7 +15495,7 @@ const yo = 2, Rg = (n) => {
15493
15495
  transferItem: e
15494
15496
  }) => {
15495
15497
  const t = e.showProgress ?? e.progress !== 0;
15496
- return /* @__PURE__ */ x(Ae, { children: [
15498
+ return /* @__PURE__ */ x(Pe, { children: [
15497
15499
  /* @__PURE__ */ c(
15498
15500
  Z,
15499
15501
  {
@@ -15504,7 +15506,7 @@ const yo = 2, Rg = (n) => {
15504
15506
  ),
15505
15507
  /* @__PURE__ */ c("p", { className: "pkt-fileupload__queue-display__item__title", "aria-label": "Filnavn", children: /* @__PURE__ */ c(vi, { children: e.attributes.targetFilename }) }),
15506
15508
  /* @__PURE__ */ c(sa, { onClick: n }),
15507
- t ? /* @__PURE__ */ x(Ae, { children: [
15509
+ t ? /* @__PURE__ */ x(Pe, { children: [
15508
15510
  /* @__PURE__ */ c(
15509
15511
  ra,
15510
15512
  {
@@ -15524,7 +15526,7 @@ const yo = 2, Rg = (n) => {
15524
15526
  onRemove: e
15525
15527
  }) => {
15526
15528
  const t = (n.lastProgress ?? 1) * 100;
15527
- return /* @__PURE__ */ x(Ae, { children: [
15529
+ return /* @__PURE__ */ x(Pe, { children: [
15528
15530
  /* @__PURE__ */ c(
15529
15531
  Z,
15530
15532
  {
@@ -15551,7 +15553,7 @@ const yo = 2, Rg = (n) => {
15551
15553
  }, jg = ({
15552
15554
  transferItem: n,
15553
15555
  onRemove: e
15554
- }) => /* @__PURE__ */ x(Ae, { children: [
15556
+ }) => /* @__PURE__ */ x(Pe, { children: [
15555
15557
  /* @__PURE__ */ c(
15556
15558
  Z,
15557
15559
  {
@@ -15583,7 +15585,7 @@ const yo = 2, Rg = (n) => {
15583
15585
  ) : null;
15584
15586
  }, El = ({
15585
15587
  transferItem: n
15586
- }) => /* @__PURE__ */ x(Ae, { children: [
15588
+ }) => /* @__PURE__ */ x(Pe, { children: [
15587
15589
  /* @__PURE__ */ c(
15588
15590
  Z,
15589
15591
  {
@@ -15646,7 +15648,7 @@ const yo = 2, Rg = (n) => {
15646
15648
  ]
15647
15649
  }
15648
15650
  );
15649
- }, Pl = $e(
15651
+ }, Al = $e(
15650
15652
  ({ isOpen: n, images: e, currentIndex: t, onClose: s, onNavigate: i }, r) => {
15651
15653
  const [a, o] = le(null), [l, d] = le(!1), m = e[t], f = e.length > 1;
15652
15654
  return fe(() => {
@@ -15722,7 +15724,7 @@ const yo = 2, Rg = (n) => {
15722
15724
  ) : null;
15723
15725
  }
15724
15726
  );
15725
- Pl.displayName = "ImagePreviewModal";
15727
+ Al.displayName = "ImagePreviewModal";
15726
15728
  const zg = (n) => {
15727
15729
  var e;
15728
15730
  return (e = n.file.type) != null && e.startsWith("image/") ? !0 : /\.(jpe?g|png|gif|webp|heic|heif|bmp|svg)$/i.test(n.file.name || "");
@@ -15744,7 +15746,7 @@ const zg = (n) => {
15744
15746
  activatedOperation: e,
15745
15747
  onActivate: t,
15746
15748
  transferItem: s
15747
- }) => /* @__PURE__ */ c(Ae, { children: n.filter((i) => i.renderContent).map((i) => /* @__PURE__ */ c("div", { className: "pkt-fileupload__queue-display__item__operation-content", children: i.renderContent(
15749
+ }) => /* @__PURE__ */ c(Pe, { children: n.filter((i) => i.renderContent).map((i) => /* @__PURE__ */ c("div", { className: "pkt-fileupload__queue-display__item__operation-content", children: i.renderContent(
15748
15750
  s,
15749
15751
  () => t(s.fileId, i),
15750
15752
  (e == null ? void 0 : e.symbol) === i.symbol
@@ -15758,8 +15760,8 @@ const zg = (n) => {
15758
15760
  onPreviewClick: a
15759
15761
  }) => {
15760
15762
  const o = () => r(n.fileId), d = (e == null ? void 0 : e.renderInlineUI) || (e == null ? void 0 : e.renderExtendedUI) ? [] : t;
15761
- return /* @__PURE__ */ x(Ae, { children: [
15762
- e != null && e.renderInlineUI ? /* @__PURE__ */ x(Ae, { children: [
15763
+ return /* @__PURE__ */ x(Pe, { children: [
15764
+ e != null && e.renderInlineUI ? /* @__PURE__ */ x(Pe, { children: [
15763
15765
  /* @__PURE__ */ c(Z, { name: "document-text", className: "pkt-fileupload__queue-display__item__icon" }),
15764
15766
  /* @__PURE__ */ c("div", { className: "pkt-fileupload__queue-display__item__inline-ui", children: e.renderInlineUI(n, o) })
15765
15767
  ] }) : /* @__PURE__ */ c(s, { transferItem: n, queueItemOperations: t, onPreviewClick: a }),
@@ -15846,8 +15848,8 @@ const zg = (n) => {
15846
15848
  enableImagePreview: a = !1,
15847
15849
  uploadStrategy: o = "form"
15848
15850
  }) => {
15849
- const l = Jg(n, t, o), d = Zg(l, a), m = Ig(s), f = Ag(d);
15850
- return /* @__PURE__ */ x(Ae, { children: [
15851
+ const l = Jg(n, t, o), d = Zg(l, a), m = Ig(s), f = Pg(d);
15852
+ return /* @__PURE__ */ x(Pe, { children: [
15851
15853
  /* @__PURE__ */ c("ul", { className: "pkt-fileupload__queue-display", children: /* @__PURE__ */ c(Ml.Provider, { value: { tail: r }, children: l.map((p) => /* @__PURE__ */ x(
15852
15854
  "li",
15853
15855
  {
@@ -15876,7 +15878,7 @@ const zg = (n) => {
15876
15878
  p.fileId
15877
15879
  )) }) }),
15878
15880
  a && d.length > 0 && /* @__PURE__ */ c(
15879
- Pl,
15881
+ Al,
15880
15882
  {
15881
15883
  ref: f.modalRef,
15882
15884
  isOpen: f.isOpen,
@@ -15912,7 +15914,7 @@ const zg = (n) => {
15912
15914
  sizeErrorMessage: N,
15913
15915
  onFileValidation: w,
15914
15916
  errorMessage: C,
15915
- hasError: A = !1,
15917
+ hasError: P = !1,
15916
15918
  disabled: O = !1,
15917
15919
  label: j,
15918
15920
  helptext: V,
@@ -15921,7 +15923,7 @@ const zg = (n) => {
15921
15923
  enableImagePreview: H = !1,
15922
15924
  ...D
15923
15925
  }, W) => {
15924
- const L = "transfers" in D ? D.transfers : void 0, [X, oe] = le(null), ee = A || !!X, pe = C || X, ce = $ ? Bg($) : void 0, ye = M(
15926
+ const L = "transfers" in D ? D.transfers : void 0, [X, oe] = le(null), ee = P || !!X, pe = C || X, ce = $ ? Bg($) : void 0, ye = M(
15925
15927
  (U) => {
15926
15928
  var ne;
15927
15929
  if (v && v.length > 0) {
@@ -15960,7 +15962,7 @@ const zg = (n) => {
15960
15962
  const ne = U.toLowerCase();
15961
15963
  return ne.includes("/") || ne.startsWith(".") ? ne : `.${ne}`;
15962
15964
  }).join(", ");
15963
- }, [v]), Pe = I || Ee, te = a && !Q, Ve = r && !Q, Re = M(
15965
+ }, [v]), Ae = I || Ee, te = a && !Q, Ve = r && !Q, Re = M(
15964
15966
  (U) => {
15965
15967
  for (const ke of U) {
15966
15968
  const be = ye(ke.file);
@@ -15989,7 +15991,7 @@ const zg = (n) => {
15989
15991
  l && l(ne), "onTransferCancelled" in D && D.onTransferCancelled && ((ke = D.onTransferCancelled) == null || ke.call(D, U));
15990
15992
  },
15991
15993
  [l, ie, D]
15992
- ), { fileAttributes: Le } = Pg(ie, we), We = xe(
15994
+ ), { fileAttributes: Le } = Ag(ie, we), We = xe(
15993
15995
  () => [
15994
15996
  {
15995
15997
  op: Eg,
@@ -16007,7 +16009,7 @@ const zg = (n) => {
16007
16009
  errors: `${t}-errors`
16008
16010
  }),
16009
16011
  [t]
16010
- ), { totalCount: _e, uploadedCount: P, failedCount: Ue } = xe(() => {
16012
+ ), { totalCount: _e, uploadedCount: A, failedCount: Ue } = xe(() => {
16011
16013
  const U = ie.length;
16012
16014
  if (!L)
16013
16015
  return { totalCount: U, uploadedCount: 0, failedCount: 0 };
@@ -16028,7 +16030,7 @@ const zg = (n) => {
16028
16030
  "aria-disabled": O,
16029
16031
  ...O ? { inert: "" } : {},
16030
16032
  children: /* @__PURE__ */ x(na.Provider, { value: { name: D.name || "", multiple: !!s, id: t }, children: [
16031
- /* @__PURE__ */ c("div", { id: Be.uploaded, className: "pkt-sr-only", "aria-live": "polite", "aria-atomic": "true", children: _e > 0 && P > 0 && `${P} av ${_e} ${Xe} lastet opp` }),
16033
+ /* @__PURE__ */ c("div", { id: Be.uploaded, className: "pkt-sr-only", "aria-live": "polite", "aria-atomic": "true", children: _e > 0 && A > 0 && `${A} av ${_e} ${Xe} lastet opp` }),
16032
16034
  /* @__PURE__ */ c("div", { id: Be.errors, className: "pkt-sr-only", "aria-live": "assertive", "aria-atomic": "true", children: _e > 0 && Ue > 0 && `Feil ved opplasting: ${Ue} av ${_e} ${Xe} feilet` }),
16033
16035
  /* @__PURE__ */ c(
16034
16036
  kg,
@@ -16040,7 +16042,7 @@ const zg = (n) => {
16040
16042
  multiple: s,
16041
16043
  uploadStrategy: i,
16042
16044
  ref: W,
16043
- accept: Q ? ".jpeg, .jpg, .png, .gif, .webp, .heic" : Pe,
16045
+ accept: Q ? ".jpeg, .jpg, .png, .gif, .webp, .heic" : Ae,
16044
16046
  isThumbnailView: Q,
16045
16047
  disabled: O,
16046
16048
  srAnnouncementIds: Be
@@ -16107,7 +16109,7 @@ const Mv = ({
16107
16109
  /* @__PURE__ */ c("h2", { className: "pkt-footer__title", children: n.title }),
16108
16110
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
16109
16111
  n.text && /* @__PURE__ */ c("li", { className: "pkt-footer__text", children: n.text }),
16110
- (N = n.links) == null ? void 0 : N.map((C, A) => /* @__PURE__ */ c("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
16112
+ (N = n.links) == null ? void 0 : N.map((C, P) => /* @__PURE__ */ c("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
16111
16113
  "a",
16112
16114
  {
16113
16115
  className: `pkt-footer__link ${C.external ? "pkt-link--external" : ""}`,
@@ -16119,14 +16121,14 @@ const Mv = ({
16119
16121
  C.text
16120
16122
  ]
16121
16123
  }
16122
- ) }, `links-${A}`))
16124
+ ) }, `links-${P}`))
16123
16125
  ] })
16124
16126
  ] }),
16125
16127
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
16126
16128
  /* @__PURE__ */ c("h2", { className: "pkt-footer__title", children: e.title }),
16127
16129
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
16128
16130
  e.text && /* @__PURE__ */ c("li", { className: "pkt-footer__text", children: e.text }),
16129
- (w = e.links) == null ? void 0 : w.map((C, A) => /* @__PURE__ */ c("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
16131
+ (w = e.links) == null ? void 0 : w.map((C, P) => /* @__PURE__ */ c("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
16130
16132
  "a",
16131
16133
  {
16132
16134
  className: `pkt-footer__link ${C.external ? "pkt-link--external" : ""}`,
@@ -16138,7 +16140,7 @@ const Mv = ({
16138
16140
  C.text
16139
16141
  ]
16140
16142
  }
16141
- ) }, `links-${A}`))
16143
+ ) }, `links-${P}`))
16142
16144
  ] })
16143
16145
  ] }),
16144
16146
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -16187,7 +16189,7 @@ const Mv = ({
16187
16189
  ] })
16188
16190
  ] }),
16189
16191
  t && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
16190
- /* @__PURE__ */ c("div", { className: "pkt-footer__social-languages", children: t.filter((C) => C.language).map((C, A) => /* @__PURE__ */ c("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ c(
16192
+ /* @__PURE__ */ c("div", { className: "pkt-footer__social-languages", children: t.filter((C) => C.language).map((C, P) => /* @__PURE__ */ c("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ c(
16191
16193
  "a",
16192
16194
  {
16193
16195
  href: C.href,
@@ -16196,8 +16198,8 @@ const Mv = ({
16196
16198
  rel: C.openInNewTab || i ? "noopener noreferrer" : void 0,
16197
16199
  children: C.language
16198
16200
  }
16199
- ) }, `sociallinks-language-${A}`)) }),
16200
- /* @__PURE__ */ c("div", { className: "pkt-footer__social-icons", children: t.filter((C) => C.iconName).map((C, A) => /* @__PURE__ */ c(ql, { children: /* @__PURE__ */ c(
16201
+ ) }, `sociallinks-language-${P}`)) }),
16202
+ /* @__PURE__ */ c("div", { className: "pkt-footer__social-icons", children: t.filter((C) => C.iconName).map((C, P) => /* @__PURE__ */ c(ql, { children: /* @__PURE__ */ c(
16201
16203
  "a",
16202
16204
  {
16203
16205
  href: C.href,
@@ -16207,7 +16209,7 @@ const Mv = ({
16207
16209
  rel: C.openInNewTab || i ? "noopener noreferrer" : void 0,
16208
16210
  children: /* @__PURE__ */ c(Z, { className: "pkt-footer__social-icon", name: C.iconName })
16209
16211
  }
16210
- ) }, `sociallinks-${A}`)) })
16212
+ ) }, `sociallinks-${P}`)) })
16211
16213
  ] })
16212
16214
  ] }) });
16213
16215
  }, Ev = ({
@@ -16368,7 +16370,7 @@ const ib = (n) => typeof n.target == "string" ? { title: n.title, iconName: n.ic
16368
16370
  n.title
16369
16371
  ]
16370
16372
  }
16371
- ), rb = ({ links: n }) => /* @__PURE__ */ c("ul", { className: "pkt-user-menu__sublist", children: n.map((e, t) => /* @__PURE__ */ c("li", { className: "pkt-user-menu__subitem", children: /* @__PURE__ */ c(Ii, { item: e }) }, t)) }), Al = $e(
16373
+ ), rb = ({ links: n }) => /* @__PURE__ */ c("ul", { className: "pkt-user-menu__sublist", children: n.map((e, t) => /* @__PURE__ */ c("li", { className: "pkt-user-menu__subitem", children: /* @__PURE__ */ c(Ii, { item: e }) }, t)) }), Pl = $e(
16372
16374
  ({
16373
16375
  user: n,
16374
16376
  formattedLastLoggedIn: e,
@@ -16413,7 +16415,7 @@ const ib = (n) => typeof n.target == "string" ? { title: n.title, iconName: n.ic
16413
16415
  ] }) });
16414
16416
  }
16415
16417
  );
16416
- Al.displayName = "PktHeaderUserMenu";
16418
+ Pl.displayName = "PktHeaderUserMenu";
16417
16419
  const jr = $e(
16418
16420
  ({
16419
16421
  id: n,
@@ -16435,7 +16437,7 @@ const jr = $e(
16435
16437
  label: N,
16436
16438
  name: w,
16437
16439
  optionalTag: C = !1,
16438
- optionalText: A,
16440
+ optionalText: P,
16439
16441
  requiredTag: O = !1,
16440
16442
  requiredText: j,
16441
16443
  tagText: V = null,
@@ -16457,9 +16459,9 @@ const jr = $e(
16457
16459
  dataTestid: Q,
16458
16460
  onChange: I,
16459
16461
  skipForwardTestid: Ee = !1,
16460
- ...Pe
16462
+ ...Ae
16461
16463
  }, te) => {
16462
- const Ve = [a, "pkt-textinput"].join(" "), Re = D === "search" && !v && !L, we = D === "date" && X ? X.slice(0, 10) : X, [Ne, Le] = le((X == null ? void 0 : X.length) || 0), We = `${n}`, Be = `${We}-label`, _e = t || Be, P = (Ue) => {
16464
+ const Ve = [a, "pkt-textinput"].join(" "), Re = D === "search" && !v && !L, we = D === "date" && X ? X.slice(0, 10) : X, [Ne, Le] = le((X == null ? void 0 : X.length) || 0), We = `${n}`, Be = `${We}-label`, _e = t || Be, A = (Ue) => {
16463
16465
  var Xe, q;
16464
16466
  i && Le(((q = (Xe = Ue.currentTarget) == null ? void 0 : Xe.value) == null ? void 0 : q.length) || 0), I && I(Ue);
16465
16467
  };
@@ -16480,7 +16482,7 @@ const jr = $e(
16480
16482
  inline: b,
16481
16483
  label: N,
16482
16484
  optionalTag: C,
16483
- optionalText: A,
16485
+ optionalText: P,
16484
16486
  requiredTag: O,
16485
16487
  requiredText: j,
16486
16488
  tagText: V,
@@ -16499,7 +16501,7 @@ const jr = $e(
16499
16501
  /* @__PURE__ */ c(
16500
16502
  "input",
16501
16503
  {
16502
- ...Pe,
16504
+ ...Ae,
16503
16505
  ref: te,
16504
16506
  className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${r && Ne > r ? "pkt-input--counter-error" : ""}`,
16505
16507
  type: D,
@@ -16514,7 +16516,7 @@ const jr = $e(
16514
16516
  "aria-labelledby": _e,
16515
16517
  min: pe,
16516
16518
  max: ce,
16517
- onChange: P,
16519
+ onChange: A,
16518
16520
  step: ye,
16519
16521
  minLength: oe,
16520
16522
  maxLength: ee,
@@ -16559,7 +16561,7 @@ const Il = $e(
16559
16561
  serviceClick: N,
16560
16562
  serviceName: w,
16561
16563
  user: C,
16562
- userMenu: A,
16564
+ userMenu: P,
16563
16565
  userMenuFooter: O,
16564
16566
  userOptions: j,
16565
16567
  canChangeRepresentation: V = !1,
@@ -16597,7 +16599,7 @@ const Il = $e(
16597
16599
  fe(() => {
16598
16600
  l !== void 0 && ie(l);
16599
16601
  }, [l]);
16600
- const [qe, Q] = le(!1), [I, Ee] = le(0), [Pe, te] = le(!1), [Ve, Re] = le(!1), we = de(null), Ne = de(null), Le = de(null), We = de(null), Be = de(null), _e = de(null), P = de(null), Ue = de(!1), Xe = nb(we), q = Xe < n, U = Xe < e, ne = M(
16602
+ const [qe, Q] = le(!1), [I, Ee] = le(0), [Ae, te] = le(!1), [Ve, Re] = le(!1), we = de(null), Ne = de(null), Le = de(null), We = de(null), Be = de(null), _e = de(null), A = de(null), Ue = de(!1), Xe = nb(we), q = Xe < n, U = Xe < e, ne = M(
16601
16603
  (h) => {
16602
16604
  we.current = h, typeof ee == "function" ? ee(h) : ee && (ee.current = h);
16603
16605
  },
@@ -16623,7 +16625,7 @@ const Il = $e(
16623
16625
  const K = Y.current;
16624
16626
  K && (!T || !K.contains(T)) && ie("none");
16625
16627
  }, []), be = M(() => {
16626
- Ue.current && P.current && document.contains(P.current) && P.current.focus(), P.current = null, Ue.current = !1;
16628
+ Ue.current && A.current && document.contains(A.current) && A.current.focus(), A.current = null, Ue.current = !1;
16627
16629
  }, []);
16628
16630
  fe(() => {
16629
16631
  const h = (T) => {
@@ -16659,7 +16661,7 @@ const Il = $e(
16659
16661
  [U, q]
16660
16662
  ), Qe = M(
16661
16663
  (h) => {
16662
- se !== "none" ? ie("none") : (P.current = document.activeElement, ie(h));
16664
+ se !== "none" ? ie("none") : (A.current = document.activeElement, ie(h));
16663
16665
  },
16664
16666
  [se]
16665
16667
  );
@@ -16726,7 +16728,7 @@ const Il = $e(
16726
16728
  ]
16727
16729
  }
16728
16730
  ),
16729
- /* @__PURE__ */ x("div", { className: "pkt-header-service__content", children: [
16731
+ t || d || U && o && (a === "header" || a === "both") ? /* @__PURE__ */ x("div", { className: "pkt-header-service__content", children: [
16730
16732
  /* @__PURE__ */ x(
16731
16733
  "div",
16732
16734
  {
@@ -16752,7 +16754,7 @@ const Il = $e(
16752
16754
  /* @__PURE__ */ c(
16753
16755
  "div",
16754
16756
  {
16755
- className: re("pkt-header-service__slot-content", Pe && "align-right"),
16757
+ className: re("pkt-header-service__slot-content", Ae && "align-right"),
16756
16758
  id: "mobile-slot-menu",
16757
16759
  role: U ? "menu" : void 0,
16758
16760
  "aria-label": U ? "Meny" : void 0,
@@ -16763,7 +16765,7 @@ const Il = $e(
16763
16765
  ]
16764
16766
  }
16765
16767
  ),
16766
- d && /* @__PURE__ */ c(Ae, { children: U ? /* @__PURE__ */ x(
16768
+ d && /* @__PURE__ */ c(Pe, { children: U ? /* @__PURE__ */ x(
16767
16769
  "div",
16768
16770
  {
16769
16771
  className: re("pkt-header-service__search-container", se === "search" && "is-open"),
@@ -16843,8 +16845,8 @@ const Il = $e(
16843
16845
  children: "Logg ut"
16844
16846
  }
16845
16847
  )
16846
- ] }),
16847
- /* @__PURE__ */ x("div", { className: "pkt-header-service__user", children: [
16848
+ ] }) : null,
16849
+ (C || !q && o && (a === "header" || a === "both")) && /* @__PURE__ */ x("div", { className: "pkt-header-service__user", children: [
16848
16850
  C && /* @__PURE__ */ x(
16849
16851
  "div",
16850
16852
  {
@@ -16880,12 +16882,12 @@ const Il = $e(
16880
16882
  "is-open"
16881
16883
  ),
16882
16884
  children: /* @__PURE__ */ c(
16883
- Al,
16885
+ Pl,
16884
16886
  {
16885
16887
  user: C,
16886
16888
  formattedLastLoggedIn: ye,
16887
16889
  representing: b,
16888
- userMenu: A,
16890
+ userMenu: P,
16889
16891
  canChangeRepresentation: V,
16890
16892
  changeRepresentation: z,
16891
16893
  logoutOnClick: a === "userMenu" || a === "both" ? o : void 0
@@ -17043,9 +17045,9 @@ const $o = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).to
17043
17045
  className: b,
17044
17046
  ...$
17045
17047
  }, N) => {
17046
- const w = xe(() => gb(), []), C = i || w, A = de(null), [O, j] = le(0);
17048
+ const w = xe(() => gb(), []), C = i || w, P = de(null), [O, j] = le(0);
17047
17049
  fe(() => {
17048
- A.current && j(A.current.getBoundingClientRect().width || 0);
17050
+ P.current && j(P.current.getBoundingClientRect().width || 0);
17049
17051
  }, [f]);
17050
17052
  const V = p - v, z = Math.round(l === "fraction" ? f / V * 100 : (f - v) / V * 100), he = `${f} av ${V}`, H = l === "fraction" && !s ? `${f} av ${p - v}` : s || void 0, D = n ? void 0 : e || `${C}-title`;
17051
17053
  return /* @__PURE__ */ c(
@@ -17093,7 +17095,7 @@ const $o = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).to
17093
17095
  children: /* @__PURE__ */ c(
17094
17096
  "span",
17095
17097
  {
17096
- ref: A,
17098
+ ref: P,
17097
17099
  className: re({
17098
17100
  "pkt-progressbar__status-placement--following": o === "following",
17099
17101
  "pkt-progressbar__status-placement--center": o === "center",
@@ -17135,10 +17137,10 @@ const bb = $e(
17135
17137
  "pkt-input-check__input",
17136
17138
  i ? "pkt-input-check__input--tile" : "",
17137
17139
  r && i ? "pkt-input-check__input--tile-disabled" : ""
17138
- ].filter(Boolean).join(" "), A = [
17140
+ ].filter(Boolean).join(" "), P = [
17139
17141
  "pkt-input-check__input-checkbox",
17140
17142
  o ? "pkt-input-check__input-checkbox--error" : ""
17141
- ].filter(Boolean).join(" "), O = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), j = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), V = () => /* @__PURE__ */ x(Ae, { children: [
17143
+ ].filter(Boolean).join(" "), O = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), j = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), V = () => /* @__PURE__ */ x(Pe, { children: [
17142
17144
  b && /* @__PURE__ */ c("span", { className: j + " pkt-tag--gray", children: b }),
17143
17145
  m && /* @__PURE__ */ c("span", { className: j + " pkt-tag--blue-light", children: f }),
17144
17146
  p && /* @__PURE__ */ c("span", { className: j + " pkt-tag--beige", children: v })
@@ -17152,7 +17154,7 @@ const bb = $e(
17152
17154
  type: "radio",
17153
17155
  name: e,
17154
17156
  disabled: r,
17155
- className: A,
17157
+ className: P,
17156
17158
  ...d !== void 0 ? { checked: d } : { defaultChecked: l },
17157
17159
  ...$
17158
17160
  }
@@ -17190,9 +17192,9 @@ const vb = $e(
17190
17192
  }, w = (O) => {
17191
17193
  l = O.target.value;
17192
17194
  }, C = `pkt-searchinput pkt-searchinput--${n} ${t ? "pkt-searchinput--fullwidth" : ""}`;
17193
- let A;
17194
- return d ? A = (O) => /* @__PURE__ */ c("form", { role: "search", className: C, action: d, method: m, children: O }) : A = (O) => /* @__PURE__ */ c("div", { role: "search", className: C, children: O }), A(
17195
- /* @__PURE__ */ x(Ae, { children: [
17195
+ let P;
17196
+ return d ? P = (O) => /* @__PURE__ */ c("form", { role: "search", className: C, action: d, method: m, children: O }) : P = (O) => /* @__PURE__ */ c("div", { role: "search", className: C, children: O }), P(
17197
+ /* @__PURE__ */ x(Pe, { children: [
17196
17198
  i && /* @__PURE__ */ c("label", { htmlFor: i ? s : void 0, className: i ? "pkt-inputwrapper__label" : "", children: i }),
17197
17199
  /* @__PURE__ */ x("div", { className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
17198
17200
  /* @__PURE__ */ c(
@@ -17242,7 +17244,7 @@ const vb = $e(
17242
17244
  onClick: () => N(O.onClick, j),
17243
17245
  onKeyUp: (V) => V.key === "Enter" && N(O.onClick, j)
17244
17246
  },
17245
- /* @__PURE__ */ x(Ae, { children: [
17247
+ /* @__PURE__ */ x(Pe, { children: [
17246
17248
  O.title && /* @__PURE__ */ c("h3", { className: "pkt-searchinput__suggestion-title", children: O.title }),
17247
17249
  O.text && /* @__PURE__ */ c("p", { className: "pkt-searchinput__suggestion-text", children: O.text })
17248
17250
  ] })
@@ -17273,7 +17275,7 @@ const kb = $e(
17273
17275
  optionalText: N,
17274
17276
  requiredTag: w = !1,
17275
17277
  requiredText: C,
17276
- tagText: A,
17278
+ tagText: P,
17277
17279
  ...O
17278
17280
  }, j) => {
17279
17281
  const V = [s, "pkt-select"].join(" ");
@@ -17290,7 +17292,7 @@ const kb = $e(
17290
17292
  optionalText: N,
17291
17293
  requiredTag: w,
17292
17294
  requiredText: C,
17293
- tagText: A,
17295
+ tagText: P,
17294
17296
  hasError: a,
17295
17297
  errorMessage: r,
17296
17298
  disabled: i,
@@ -17322,7 +17324,7 @@ const yb = /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width
17322
17324
  ] }), $b = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
17323
17325
  /* @__PURE__ */ c("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
17324
17326
  /* @__PURE__ */ c("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
17325
- ] }), Pv = ({ children: n, className: e, status: t = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: re("pkt-step", e, `pkt-step--${t}`), "data-testid": "pkt-step", children: [
17327
+ ] }), Av = ({ children: n, className: e, status: t = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: re("pkt-step", e, `pkt-step--${t}`), "data-testid": "pkt-step", children: [
17326
17328
  /* @__PURE__ */ c("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
17327
17329
  /* @__PURE__ */ c("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
17328
17330
  /* @__PURE__ */ c("span", { className: re("pkt-step__indicator"), children: t === "current" ? _b : t === "completed" ? $b : yb }),
@@ -17355,7 +17357,7 @@ const yb = /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width
17355
17357
  }
17356
17358
  );
17357
17359
  wb.displayName = "PktStepper";
17358
- const Av = ({
17360
+ const Pv = ({
17359
17361
  className: n,
17360
17362
  compact: e = !1,
17361
17363
  skin: t = "basic",
@@ -17400,7 +17402,7 @@ const Av = ({
17400
17402
  ref: (w) => {
17401
17403
  f(l, w), typeof d == "function" ? d(w) : d && (d.current = w);
17402
17404
  }
17403
- }, N = /* @__PURE__ */ x(Ae, { children: [
17405
+ }, N = /* @__PURE__ */ x(Pe, { children: [
17404
17406
  i && /* @__PURE__ */ c(Z, { name: i, className: "pkt-icon--small" }),
17405
17407
  n,
17406
17408
  a && /* @__PURE__ */ c(zn, { skin: o, size: "small", children: a })
@@ -17484,10 +17486,10 @@ export {
17484
17486
  bb as PktRadioButton,
17485
17487
  vb as PktSearchInput,
17486
17488
  kb as PktSelect,
17487
- Pv as PktStep,
17489
+ Av as PktStep,
17488
17490
  wb as PktStepper,
17489
17491
  Rl as PktTabItem,
17490
- Av as PktTable,
17492
+ Pv as PktTable,
17491
17493
  Iv as PktTableBody,
17492
17494
  Rv as PktTableDataCell,
17493
17495
  Lv as PktTableHeader,