@oslokommune/punkt-react 16.6.1 → 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"
@@ -8835,35 +8836,34 @@ let Te = class extends _t {
8835
8836
  <header class=${e} ${Ce(this.headerRef)}>
8836
8837
  <div class=${t}>${this.renderLogo()} ${this.renderServiceName()}</div>
8837
8838
 
8838
- <div class="pkt-header-service__content">
8839
- ${this.renderSlotContainer()} ${this.renderSearch()}
8840
- ${this.isTablet && this.showLogoutInHeader ? k`
8841
- <pkt-button
8842
- skin="secondary"
8843
- size=${this.isMobile ? "small" : "medium"}
8844
- variant="icon-only"
8845
- iconName="exit"
8846
- @click=${this.handleLogout}
8847
- >
8848
- Logg ut
8849
- </pkt-button>
8850
- ` : S}
8851
- </div>
8852
-
8853
- <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>
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}
8867
8867
  </header>
8868
8868
  `;
8869
8869
  }
@@ -9024,7 +9024,7 @@ let Ye = class extends _t {
9024
9024
  .userMenu=${this.effectiveUserMenu}
9025
9025
  .representing=${this.representing}
9026
9026
  >
9027
- <div class="pkt-contents">${Ze(this)}</div>
9027
+ ${this.hasSlotContent() ? k`<div class="pkt-contents">${Ze(this)}</div>` : S}
9028
9028
  </pkt-header-service>
9029
9029
  `;
9030
9030
  }
@@ -9110,7 +9110,7 @@ var mp = Object.defineProperty, gp = Object.getOwnPropertyDescriptor, ns = (n, e
9110
9110
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
9111
9111
  return s && i && mp(e, t, i), i;
9112
9112
  };
9113
- let Pn = class extends _t {
9113
+ let An = class extends _t {
9114
9114
  constructor() {
9115
9115
  super(...arguments), this.title = "", this.href = "#", this.iconName = "", this.external = !1, this.openInNewTab = !1, this.skin = "normal";
9116
9116
  }
@@ -9133,25 +9133,25 @@ let Pn = class extends _t {
9133
9133
  };
9134
9134
  ns([
9135
9135
  u({ type: String, reflect: !0 })
9136
- ], Pn.prototype, "title", 2);
9136
+ ], An.prototype, "title", 2);
9137
9137
  ns([
9138
9138
  u({ type: String, reflect: !0 })
9139
- ], Pn.prototype, "href", 2);
9139
+ ], An.prototype, "href", 2);
9140
9140
  ns([
9141
9141
  u({ type: String, reflect: !0 })
9142
- ], Pn.prototype, "iconName", 2);
9142
+ ], An.prototype, "iconName", 2);
9143
9143
  ns([
9144
9144
  u({ type: Boolean, reflect: !0 })
9145
- ], Pn.prototype, "external", 2);
9145
+ ], An.prototype, "external", 2);
9146
9146
  ns([
9147
9147
  u({ type: Boolean, reflect: !0 })
9148
- ], Pn.prototype, "openInNewTab", 2);
9148
+ ], An.prototype, "openInNewTab", 2);
9149
9149
  ns([
9150
9150
  u({ type: String, reflect: !0 })
9151
- ], Pn.prototype, "skin", 2);
9152
- Pn = ns([
9151
+ ], An.prototype, "skin", 2);
9152
+ An = ns([
9153
9153
  ve("pkt-linkcard")
9154
- ], Pn);
9154
+ ], An);
9155
9155
  var bp = Object.defineProperty, vp = Object.getOwnPropertyDescriptor, yn = (n, e, t, s) => {
9156
9156
  for (var i = s > 1 ? void 0 : s ? vp(e, t) : e, r = n.length - 1, a; r >= 0; r--)
9157
9157
  (a = n[r]) && (i = (s ? a(e, t, i) : a(i)) || i);
@@ -9447,7 +9447,7 @@ Rt = Kt([
9447
9447
  * Copyright 2018 Google LLC
9448
9448
  * SPDX-License-Identifier: BSD-3-Clause
9449
9449
  */
9450
- const ol = "important", Sp = " !" + ol, Cp = An(class extends ys {
9450
+ const ol = "important", Sp = " !" + ol, Cp = Pn(class extends ys {
9451
9451
  constructor(n) {
9452
9452
  var e;
9453
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.");
@@ -9803,7 +9803,7 @@ let Ep = class extends Event {
9803
9803
  * Copyright 2017 Google LLC
9804
9804
  * SPDX-License-Identifier: BSD-3-Clause
9805
9805
  */
9806
- function Pp({ context: n }) {
9806
+ function Ap({ context: n }) {
9807
9807
  return (e, t) => {
9808
9808
  const s = /* @__PURE__ */ new WeakMap();
9809
9809
  if (typeof t == "object") return { get() {
@@ -9841,7 +9841,7 @@ function Pp({ context: n }) {
9841
9841
  * Copyright 2022 Google LLC
9842
9842
  * SPDX-License-Identifier: BSD-3-Clause
9843
9843
  */
9844
- function Ap({ context: n, subscribe: e }) {
9844
+ function Pp({ context: n, subscribe: e }) {
9845
9845
  return (t, s) => {
9846
9846
  typeof s == "object" ? s.addInitializer((function() {
9847
9847
  new eo(this, { context: n, callback: (i) => {
@@ -9923,7 +9923,7 @@ Cs([
9923
9923
  me()
9924
9924
  ], Zn.prototype, "tabCount", 2);
9925
9925
  Cs([
9926
- Pp({ context: cl }),
9926
+ Ap({ context: cl }),
9927
9927
  me()
9928
9928
  ], Zn.prototype, "context", 2);
9929
9929
  Zn = Cs([
@@ -10009,7 +10009,7 @@ _n([
10009
10009
  u({ type: Number, reflect: !0 })
10010
10010
  ], cn.prototype, "index", 2);
10011
10011
  _n([
10012
- Ap({ context: cl, subscribe: !0 }),
10012
+ Pp({ context: cl, subscribe: !0 }),
10013
10013
  u({ attribute: !1 })
10014
10014
  ], cn.prototype, "context", 2);
10015
10015
  cn = _n([
@@ -10020,7 +10020,7 @@ cn = _n([
10020
10020
  * Copyright 2020 Google LLC
10021
10021
  * SPDX-License-Identifier: BSD-3-Clause
10022
10022
  */
10023
- const Fp = An(class extends ys {
10023
+ const Fp = Pn(class extends ys {
10024
10024
  constructor(n) {
10025
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");
10026
10026
  if (!Io(n)) throw Error("`live` bindings can only contain a single expression");
@@ -10380,7 +10380,7 @@ const Z = hi({
10380
10380
  setTimeout(() => {
10381
10381
  d == null || d(O);
10382
10382
  }, 0);
10383
- }, A = [
10383
+ }, P = [
10384
10384
  "pkt-accordion-item",
10385
10385
  i && "pkt-accordion-item--compact",
10386
10386
  s && `pkt-accordion-item--${s}`,
@@ -10390,7 +10390,7 @@ const Z = hi({
10390
10390
  "details",
10391
10391
  {
10392
10392
  ref: f,
10393
- className: A,
10393
+ className: P,
10394
10394
  id: e,
10395
10395
  open: N,
10396
10396
  onClick: C,
@@ -10512,7 +10512,7 @@ const Gp = $e(
10512
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 })))({
10513
10513
  href: n,
10514
10514
  className: "pkt-link pkt-link--icon-left",
10515
- children: /* @__PURE__ */ x(Ae, { children: [
10515
+ children: /* @__PURE__ */ x(Pe, { children: [
10516
10516
  /* @__PURE__ */ c(Z, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
10517
10517
  /* @__PURE__ */ c("span", { className: "pkt-back-link__text", children: e })
10518
10518
  ] }),
@@ -10527,7 +10527,7 @@ const Xp = $e(
10527
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({
10528
10528
  href: m.href,
10529
10529
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
10530
- children: /* @__PURE__ */ x(Ae, { children: [
10530
+ children: /* @__PURE__ */ x(Pe, { children: [
10531
10531
  /* @__PURE__ */ c(Z, { className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon", name: "chevron-thin-right" }),
10532
10532
  /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: m.text })
10533
10533
  ] }),
@@ -10536,7 +10536,7 @@ const Xp = $e(
10536
10536
  d({
10537
10537
  href: o.href,
10538
10538
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
10539
- children: /* @__PURE__ */ x(Ae, { children: [
10539
+ children: /* @__PURE__ */ x(Pe, { children: [
10540
10540
  /* @__PURE__ */ c(Z, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left" }),
10541
10541
  /* @__PURE__ */ c("span", { className: "pkt-breadcrumbs__text", children: o.text })
10542
10542
  ] }),
@@ -10568,7 +10568,7 @@ const bt = $e(
10568
10568
  loadingAnimationPath: N = window.pktAnimationPath,
10569
10569
  ...w
10570
10570
  }, C) => {
10571
- const A = [
10571
+ const P = [
10572
10572
  e,
10573
10573
  "pkt-btn",
10574
10574
  a && `pkt-btn--${a}`,
@@ -10587,7 +10587,7 @@ const bt = $e(
10587
10587
  "aria-busy": b || void 0,
10588
10588
  "aria-disabled": $ || void 0,
10589
10589
  disabled: $,
10590
- className: A,
10590
+ className: P,
10591
10591
  type: m,
10592
10592
  ref: C,
10593
10593
  children: [
@@ -10612,11 +10612,11 @@ const hl = 6048e5, Qp = 864e5, so = Symbol.for("constructDateFrom");
10612
10612
  function un(n, e) {
10613
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);
10614
10614
  }
10615
- function Pt(n, e) {
10615
+ function At(n, e) {
10616
10616
  return un(e || n, n);
10617
10617
  }
10618
10618
  function io(n, e, t) {
10619
- const s = Pt(n, t == null ? void 0 : t.in);
10619
+ const s = At(n, t == null ? void 0 : t.in);
10620
10620
  return isNaN(e) ? un(n, NaN) : (e && s.setDate(s.getDate() + e), s);
10621
10621
  }
10622
10622
  let Jp = {};
@@ -10625,14 +10625,14 @@ function nr() {
10625
10625
  }
10626
10626
  function oi(n, e) {
10627
10627
  var o, l, d, m;
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 = 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;
10629
10629
  return i.setDate(i.getDate() - a), i.setHours(0, 0, 0, 0), i;
10630
10630
  }
10631
10631
  function Yi(n, e) {
10632
10632
  return oi(n, { ...e, weekStartsOn: 1 });
10633
10633
  }
10634
10634
  function pl(n, e) {
10635
- 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);
10636
10636
  i.setFullYear(s + 1, 0, 4), i.setHours(0, 0, 0, 0);
10637
10637
  const r = Yi(i), a = un(t, 0);
10638
10638
  a.setFullYear(s, 0, 4), a.setHours(0, 0, 0, 0);
@@ -10640,7 +10640,7 @@ function pl(n, e) {
10640
10640
  return t.getTime() >= r.getTime() ? s + 1 : t.getTime() >= o.getTime() ? s : s - 1;
10641
10641
  }
10642
10642
  function ro(n) {
10643
- const e = Pt(n), t = new Date(
10643
+ const e = At(n), t = new Date(
10644
10644
  Date.UTC(
10645
10645
  e.getFullYear(),
10646
10646
  e.getMonth(),
@@ -10661,7 +10661,7 @@ function fl(n, ...e) {
10661
10661
  return e.map(t);
10662
10662
  }
10663
10663
  function Fr(n, e) {
10664
- const t = Pt(n, e == null ? void 0 : e.in);
10664
+ const t = At(n, e == null ? void 0 : e.in);
10665
10665
  return t.setHours(0, 0, 0, 0), t;
10666
10666
  }
10667
10667
  function Zp(n, e, t) {
@@ -10680,10 +10680,10 @@ function tf(n) {
10680
10680
  return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
10681
10681
  }
10682
10682
  function nf(n) {
10683
- return !(!tf(n) && typeof n != "number" || isNaN(+Pt(n)));
10683
+ return !(!tf(n) && typeof n != "number" || isNaN(+At(n)));
10684
10684
  }
10685
10685
  function sf(n, e) {
10686
- const t = Pt(n, e == null ? void 0 : e.in);
10686
+ const t = At(n, e == null ? void 0 : e.in);
10687
10687
  return t.setHours(23, 59, 59, 999), t;
10688
10688
  }
10689
10689
  function rf(n, e) {
@@ -10702,7 +10702,7 @@ function ml(n, e) {
10702
10702
  return i ? l.reverse() : l;
10703
10703
  }
10704
10704
  function af(n, e) {
10705
- const t = Pt(n, e == null ? void 0 : e.in);
10705
+ const t = At(n, e == null ? void 0 : e.in);
10706
10706
  return t.setFullYear(t.getFullYear(), 0, 1), t.setHours(0, 0, 0, 0), t;
10707
10707
  }
10708
10708
  const of = {
@@ -11036,7 +11036,7 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11036
11036
  narrow: /^[jfmasond]/i,
11037
11037
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
11038
11038
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
11039
- }, Pf = {
11039
+ }, Af = {
11040
11040
  narrow: [
11041
11041
  /^j/i,
11042
11042
  /^f/i,
@@ -11065,7 +11065,7 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11065
11065
  /^n/i,
11066
11066
  /^d/i
11067
11067
  ]
11068
- }, Af = {
11068
+ }, Pf = {
11069
11069
  narrow: /^[smtwf]/i,
11070
11070
  short: /^(su|mo|tu|we|th|fr|sa)/i,
11071
11071
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -11109,11 +11109,11 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11109
11109
  month: Vs({
11110
11110
  matchPatterns: Ef,
11111
11111
  defaultMatchWidth: "wide",
11112
- parsePatterns: Pf,
11112
+ parsePatterns: Af,
11113
11113
  defaultParseWidth: "any"
11114
11114
  }),
11115
11115
  day: Vs({
11116
- matchPatterns: Af,
11116
+ matchPatterns: Pf,
11117
11117
  defaultMatchWidth: "wide",
11118
11118
  parsePatterns: If,
11119
11119
  defaultParseWidth: "any"
@@ -11137,16 +11137,16 @@ const Cf = /^(\d+)(th|st|nd|rd)?/i, Tf = /\d+/i, Nf = {
11137
11137
  }
11138
11138
  };
11139
11139
  function Vf(n, e) {
11140
- const t = Pt(n, e == null ? void 0 : e.in);
11140
+ const t = At(n, e == null ? void 0 : e.in);
11141
11141
  return Zp(t, af(t)) + 1;
11142
11142
  }
11143
11143
  function Uf(n, e) {
11144
- 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);
11145
11145
  return Math.round(s / hl) + 1;
11146
11146
  }
11147
11147
  function gl(n, e) {
11148
11148
  var m, f, p, v;
11149
- 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);
11150
11150
  a.setFullYear(s + 1, 0, r), a.setHours(0, 0, 0, 0);
11151
11151
  const o = oi(a, e), l = un((e == null ? void 0 : e.in) || n, 0);
11152
11152
  l.setFullYear(s, 0, r), l.setHours(0, 0, 0, 0);
@@ -11159,7 +11159,7 @@ function jf(n, e) {
11159
11159
  return r.setFullYear(i, 0, s), r.setHours(0, 0, 0, 0), oi(r, e);
11160
11160
  }
11161
11161
  function bl(n, e) {
11162
- 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);
11163
11163
  return Math.round(s / hl) + 1;
11164
11164
  }
11165
11165
  function Oe(n, e) {
@@ -11859,7 +11859,7 @@ function Qf(n, e, t) {
11859
11859
  const Jf = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Zf = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, em = /^'([^]*?)'?$/, tm = /''/g, nm = /[a-zA-Z]/;
11860
11860
  function sm(n, e, t) {
11861
11861
  var m, f, p, v;
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 = 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);
11863
11863
  if (!nf(o))
11864
11864
  throw new RangeError("Invalid time value");
11865
11865
  let l = e.match(Zf).map((b) => {
@@ -11902,7 +11902,7 @@ function im(n) {
11902
11902
  return e ? e[1].replace(tm, "'") : n;
11903
11903
  }
11904
11904
  function rm(n, e) {
11905
- const t = Pt(n, e == null ? void 0 : e.in).getDay();
11905
+ const t = At(n, e == null ? void 0 : e.in).getDay();
11906
11906
  return t === 0 ? 7 : t;
11907
11907
  }
11908
11908
  function am(n, e, t = "long") {
@@ -11993,7 +11993,7 @@ function kl(n) {
11993
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;
11994
11994
  if (N && w) {
11995
11995
  Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + w);
11996
- 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;
11997
11997
  O && (n.internal.setUTCMinutes(n.internal.getUTCMinutes() + O), Date.prototype.setUTCMinutes.call(n, Date.prototype.getUTCMinutes.call(n) + O));
11998
11998
  }
11999
11999
  }
@@ -12290,10 +12290,10 @@ function Mm(n) {
12290
12290
  onClose: $,
12291
12291
  id: N,
12292
12292
  className: w
12293
- } = 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(
12294
12294
  () => p ? rn(p) : cm(),
12295
12295
  [p]
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), 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(
12297
12297
  () => ({ earliest: r, latest: a, excludedates: V, excludeweekdays: l }),
12298
12298
  [r, a, V, l]
12299
12299
  );
@@ -12315,7 +12315,7 @@ function Mm(n) {
12315
12315
  }
12316
12316
  X(g.getFullYear()), ee(g.getMonth()), te.current = !0;
12317
12317
  }, []), fe(() => {
12318
- if (te.current && !Pe.current && D.length > 0 && D[0] !== "") {
12318
+ if (te.current && !Ae.current && D.length > 0 && D[0] !== "") {
12319
12319
  const g = rn(D[D.length - 1]);
12320
12320
  isNaN(g.getTime()) || (X(g.getFullYear()), ee(g.getMonth()));
12321
12321
  }
@@ -12330,7 +12330,7 @@ function Mm(n) {
12330
12330
  ), we = M(() => {
12331
12331
  $ == null || $();
12332
12332
  }, [$]), Ne = M((g, h) => {
12333
- 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;
12334
12334
  }, []), Le = M(() => {
12335
12335
  const g = oe === 0 ? 11 : oe - 1, h = oe === 0 ? L - 1 : L;
12336
12336
  Ne(h, g);
@@ -12344,7 +12344,7 @@ function Mm(n) {
12344
12344
  selectedCount: D.length
12345
12345
  }),
12346
12346
  [Ve, t, s, D.length]
12347
- ), P = M(() => typeof D == "string" ? D.split(",") : D, [D]), Ue = M(
12347
+ ), A = M(() => typeof D == "string" ? D.split(",") : D, [D]), Ue = M(
12348
12348
  (g) => {
12349
12349
  if (!i || W.length !== 1 || !wl(g, W, V, l) || W[0] >= g) {
12350
12350
  se(null);
@@ -12358,12 +12358,12 @@ function Mm(n) {
12358
12358
  if (!g) return;
12359
12359
  let h;
12360
12360
  if (i)
12361
- h = _m(g, P(), {
12361
+ h = _m(g, A(), {
12362
12362
  excludedates: V,
12363
12363
  excludeweekdays: l
12364
12364
  }), z || H(h), h.length === 2 ? (b == null || b(h), we()) : (h.length === 1 && ce({}), b == null || b(h));
12365
12365
  else if (t)
12366
- h = mo(g, P(), s), Re(h);
12366
+ h = mo(g, A(), s), Re(h);
12367
12367
  else {
12368
12368
  const y = vt(g);
12369
12369
  D.includes(y) ? h = [] : h = [y], Re(h), we();
@@ -12373,7 +12373,7 @@ function Mm(n) {
12373
12373
  i,
12374
12374
  t,
12375
12375
  s,
12376
- P,
12376
+ A,
12377
12377
  D,
12378
12378
  V,
12379
12379
  l,
@@ -12384,22 +12384,22 @@ function Mm(n) {
12384
12384
  ]
12385
12385
  ), q = M(
12386
12386
  (g) => {
12387
- const h = Zr(g, P());
12387
+ const h = Zr(g, A());
12388
12388
  z || H(h), i && h.length === 2 && (b == null || b(h), we());
12389
12389
  },
12390
- [P, z, i, b, we]
12390
+ [A, z, i, b, we]
12391
12391
  ), U = M(
12392
12392
  (g) => {
12393
- const h = ea(g, P());
12393
+ const h = ea(g, A());
12394
12394
  z || H(h);
12395
12395
  },
12396
- [P, z]
12396
+ [A, z]
12397
12397
  ), ne = M(
12398
12398
  (g) => {
12399
- const h = mo(g, P(), s);
12399
+ const h = mo(g, A(), s);
12400
12400
  z || H(h);
12401
12401
  },
12402
- [P, s, z]
12402
+ [A, s, z]
12403
12403
  ), ke = M(() => {
12404
12404
  var T, Y;
12405
12405
  const g = vt(Us(j)), h = (T = Q.current) == null ? void 0 : T.querySelector(`button[data-date="${g}"]`);
@@ -12446,7 +12446,7 @@ function Mm(n) {
12446
12446
  [we]
12447
12447
  );
12448
12448
  return {
12449
- componentId: A,
12449
+ componentId: P,
12450
12450
  strings: O,
12451
12451
  todayDate: j,
12452
12452
  year: L,
@@ -12506,8 +12506,8 @@ const Em = ({
12506
12506
  type: "button",
12507
12507
  "aria-label": $,
12508
12508
  onClick: () => b && C(),
12509
- onKeyDown: (A) => {
12510
- (A.key === "Enter" || A.key === " ") && (A.preventDefault(), b && C());
12509
+ onKeyDown: (P) => {
12510
+ (P.key === "Enter" || P.key === " ") && (P.preventDefault(), b && C());
12511
12511
  },
12512
12512
  className: [
12513
12513
  "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
@@ -12565,7 +12565,7 @@ const Em = ({
12565
12565
  m("next")
12566
12566
  ] });
12567
12567
  };
12568
- function Pm(n, e, t) {
12568
+ function Am(n, e, t) {
12569
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);
12570
12570
  let l;
12571
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", {
@@ -12578,7 +12578,7 @@ function Pm(n, e, t) {
12578
12578
  tabindex: l
12579
12579
  };
12580
12580
  }
12581
- function Am(n, e) {
12581
+ function Pm(n, e) {
12582
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];
12583
12583
  return re({
12584
12584
  "pkt-cal-today": s,
@@ -12623,7 +12623,7 @@ const Rm = ({ state: n }) => {
12623
12623
  isDayDisabled: N,
12624
12624
  setFocusedDate: w,
12625
12625
  todayDate: C
12626
- } = n, A = {
12626
+ } = n, P = {
12627
12627
  year: t,
12628
12628
  month: s,
12629
12629
  activeSelected: i,
@@ -12647,9 +12647,9 @@ const Rm = ({ state: n }) => {
12647
12647
  );
12648
12648
  return /* @__PURE__ */ c("tr", { className: "pkt-cal-week-row", children: H });
12649
12649
  }, V = (H, D) => {
12650
- 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;
12651
12651
  f.current.push({ currentDateISO: X, isDisabled: ee, tabindex: ce });
12652
- const ye = Am(W, O), se = Im(W, O);
12652
+ const ye = Pm(W, O), se = Im(W, O);
12653
12653
  return /* @__PURE__ */ c("td", { className: ye, children: /* @__PURE__ */ c(
12654
12654
  "button",
12655
12655
  {
@@ -12775,7 +12775,7 @@ const zn = $e(
12775
12775
  var V, z;
12776
12776
  C(((z = (V = N.current) == null ? void 0 : V.textContent) == null ? void 0 : z.trim()) ?? "");
12777
12777
  }, [n]);
12778
- const A = xe(() => {
12778
+ const P = xe(() => {
12779
12779
  if (i && !o) return w && `Klikk for å fjerne ${w}` || m;
12780
12780
  }, [i, o, w, m]), O = {
12781
12781
  "pkt-tag": !0,
@@ -12800,7 +12800,7 @@ const zn = $e(
12800
12800
  type: d,
12801
12801
  onClick: $,
12802
12802
  "aria-label": o,
12803
- "aria-description": A,
12803
+ "aria-description": P,
12804
12804
  ref: p,
12805
12805
  children: [
12806
12806
  a && /* @__PURE__ */ c(Z, { className: "pkt-tag__icon", name: a }),
@@ -12836,7 +12836,7 @@ const Lm = $e(
12836
12836
  tagPosition: N = "top",
12837
12837
  tags: w = [],
12838
12838
  ...C
12839
- }, A) => {
12839
+ }, P) => {
12840
12840
  const O = re({
12841
12841
  "pkt-card": !0,
12842
12842
  [`pkt-card--${b}`]: b,
@@ -12879,7 +12879,7 @@ const Lm = $e(
12879
12879
  s && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-lead", children: s }),
12880
12880
  r && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-trail", children: r })
12881
12881
  ] });
12882
- 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: [
12883
12883
  he(),
12884
12884
  /* @__PURE__ */ x("div", { className: "pkt-card__wrapper", children: [
12885
12885
  N === "top" && H(),
@@ -12913,13 +12913,13 @@ const Bm = $e(
12913
12913
  requiredText: N = "Må fylles ut",
12914
12914
  tagText: w,
12915
12915
  ...C
12916
- }, A) => {
12916
+ }, P) => {
12917
12917
  const O = de(null);
12918
12918
  fe(() => {
12919
12919
  O.current && p !== void 0 && (O.current.indeterminate = p);
12920
12920
  }, [p]), fe(() => {
12921
- typeof A == "function" ? A(O.current) : A && (A.current = O.current);
12922
- }, [A]);
12921
+ typeof P == "function" ? P(O.current) : P && (P.current = O.current);
12922
+ }, [P]);
12923
12923
  const j = [a, "pkt-input-check"].filter(Boolean).join(" "), V = [
12924
12924
  "pkt-input-check__input-label",
12925
12925
  t ? "pkt-input-check__input-label--disabled" : "",
@@ -12929,7 +12929,7 @@ const Bm = $e(
12929
12929
  "pkt-input-check__input",
12930
12930
  e ? "pkt-input-check__input--tile" : "",
12931
12931
  t && e ? "pkt-input-check__input--tile-disabled" : ""
12932
- ].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: [
12933
12933
  w && /* @__PURE__ */ c("span", { className: he + " pkt-tag--gray", children: w }),
12934
12934
  v && /* @__PURE__ */ c("span", { className: he + " pkt-tag--blue-light", children: b }),
12935
12935
  $ && /* @__PURE__ */ c("span", { className: he + " pkt-tag--beige", children: N })
@@ -12985,7 +12985,7 @@ const ss = $e(
12985
12985
  inline: N = !1,
12986
12986
  ariaDescribedby: w,
12987
12987
  useWrapper: C = !0,
12988
- children: A,
12988
+ children: P,
12989
12989
  className: O = "",
12990
12990
  hasFieldset: j = !1,
12991
12991
  role: V = "group",
@@ -13000,18 +13000,18 @@ const ss = $e(
13000
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: [
13001
13001
  a,
13002
13002
  o ? `/${o}` : ""
13003
- ] }) : null, se = () => /* @__PURE__ */ x(Ae, { children: [
13003
+ ] }) : null, se = () => /* @__PURE__ */ x(Pe, { children: [
13004
13004
  p && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--gray", children: p }),
13005
13005
  l && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--blue-light", children: d }),
13006
13006
  m && /* @__PURE__ */ c("span", { className: ce + " pkt-tag--beige", children: f })
13007
13007
  ] }), ie = () => {
13008
- const I = /* @__PURE__ */ x(Ae, { children: [
13008
+ const I = /* @__PURE__ */ x(Pe, { children: [
13009
13009
  e,
13010
13010
  " ",
13011
13011
  se()
13012
13012
  ] });
13013
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 });
13014
- }, qe = () => !t && !s ? null : /* @__PURE__ */ x(Ae, { children: [
13014
+ }, qe = () => !t && !s ? null : /* @__PURE__ */ x(Pe, { children: [
13015
13015
  t && C && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__helptext", id: `${n}-helptext`, children: t }),
13016
13016
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
13017
13017
  /* @__PURE__ */ c(
@@ -13041,11 +13041,11 @@ const ss = $e(
13041
13041
  }
13042
13042
  )
13043
13043
  ] })
13044
- ] }), Q = /* @__PURE__ */ x(Ae, { children: [
13044
+ ] }), Q = /* @__PURE__ */ x(Pe, { children: [
13045
13045
  ie(),
13046
13046
  qe(),
13047
13047
  X && /* @__PURE__ */ c(ye, {}),
13048
- A,
13048
+ P,
13049
13049
  oe && /* @__PURE__ */ c(ye, {}),
13050
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 }) })
13051
13051
  ] });
@@ -13061,7 +13061,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13061
13061
  if (!e) return [...n];
13062
13062
  const t = e.toLowerCase();
13063
13063
  return n.filter((s) => (s.fulltext || s.value + (s.label || "") + (s.prefix || "")).toLowerCase().includes(t));
13064
- }, 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) => {
13065
13065
  if (!n) return "";
13066
13066
  switch (e) {
13067
13067
  case "prefixAndValue":
@@ -13219,7 +13219,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13219
13219
  inputFocus: N,
13220
13220
  inputRef: w,
13221
13221
  triggerRef: C,
13222
- handleInputChange: A,
13222
+ handleInputChange: P,
13223
13223
  handleInputKeydown: O,
13224
13224
  handleInputFocus: j,
13225
13225
  handleInputBlur: V,
@@ -13256,7 +13256,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13256
13256
  type: "text",
13257
13257
  id: t,
13258
13258
  name: `${D || e}-input`,
13259
- onChange: A,
13259
+ onChange: P,
13260
13260
  onKeyDown: O,
13261
13261
  onFocus: j,
13262
13262
  onBlur: V,
@@ -13304,12 +13304,12 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13304
13304
  handleOptionClick: N,
13305
13305
  handleOptionKeydown: w,
13306
13306
  handleSearchInput: C,
13307
- handleSearchKeydown: A,
13307
+ handleSearchKeydown: P,
13308
13308
  handleNewOptionClick: O,
13309
13309
  handleNewOptionKeydown: j,
13310
13310
  listboxRef: V
13311
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(" ");
13312
- return /* @__PURE__ */ x(Ae, { children: [
13312
+ return /* @__PURE__ */ x(Pe, { children: [
13313
13313
  /* @__PURE__ */ x(
13314
13314
  "div",
13315
13315
  {
@@ -13332,7 +13332,7 @@ const mn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13332
13332
  form: "",
13333
13333
  placeholder: b || "Søk...",
13334
13334
  onChange: C,
13335
- onKeyDown: A,
13335
+ onKeyDown: P,
13336
13336
  value: $,
13337
13337
  "data-type": "searchbox",
13338
13338
  disabled: o,
@@ -13429,7 +13429,7 @@ function Gm(n, e) {
13429
13429
  return n.map((t) => ({
13430
13430
  ...t,
13431
13431
  label: t.label || t.value,
13432
- fulltext: Ai(t),
13432
+ fulltext: Pi(t),
13433
13433
  selected: e.includes(t.value)
13434
13434
  }));
13435
13435
  }
@@ -13452,7 +13452,7 @@ function Xm(n, e) {
13452
13452
  placeholder: N,
13453
13453
  disabled: w = !1,
13454
13454
  required: C = !1,
13455
- fullwidth: A = !1,
13455
+ fullwidth: P = !1,
13456
13456
  hasError: O = !1,
13457
13457
  errorMessage: j,
13458
13458
  helptext: V,
@@ -13469,9 +13469,9 @@ function Xm(n, e) {
13469
13469
  onChange: ce,
13470
13470
  onValueChange: ye,
13471
13471
  children: se
13472
- } = 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(() => {
13473
13473
  var _, E;
13474
- Q ? (_ = I.current) == null || _.focus() : (E = Pe.current) == null || E.focus();
13474
+ Q ? (_ = I.current) == null || _.focus() : (E = Ae.current) == null || E.focus();
13475
13475
  }, [Q]), we = xe(() => {
13476
13476
  const _ = [];
13477
13477
  return Ri.forEach(se, (E) => {
@@ -13485,17 +13485,17 @@ function Xm(n, e) {
13485
13485
  });
13486
13486
  }
13487
13487
  }), _;
13488
- }, [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);
13489
13489
  fe(() => {
13490
13490
  Le && Be(Nr(i, l));
13491
13491
  }, [i, Le, l]);
13492
- 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(() => {
13493
13493
  const _ = [
13494
13494
  ...Ue.filter((E) => !Ne.some((J) => J.value === E.value)),
13495
13495
  ...Ne
13496
13496
  ];
13497
- return Gm(_, P);
13498
- }, [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(
13499
13499
  () => {
13500
13500
  var _;
13501
13501
  return (_ = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : _.set;
@@ -13509,14 +13509,14 @@ function Xm(n, e) {
13509
13509
  pt.call(E, J), E.dispatchEvent(new Event("input", { bubbles: !0 }));
13510
13510
  },
13511
13511
  [pt, l]
13512
- ), Qt = l ? P.join(",") : P[0] || "";
13512
+ ), Qt = l ? A.join(",") : A[0] || "";
13513
13513
  fe(() => {
13514
13514
  Ee.current && (Ee.current.value = Qt);
13515
13515
  }, [Qt]), fe(() => {
13516
13516
  if (U || l || !I.current) return;
13517
- const _ = P[0] ? Ni(P[0], q, v) : "";
13517
+ const _ = A[0] ? Ni(A[0], q, v) : "";
13518
13518
  I.current.value !== _ && (I.current.value = _);
13519
- }, [P, q, v, l, U]);
13519
+ }, [A, q, v, l, U]);
13520
13520
  const nn = M(
13521
13521
  (_, E = !0) => {
13522
13522
  Le || Be(_), E && (ye == null || ye(_), Ft(_));
@@ -13524,22 +13524,22 @@ function Xm(n, e) {
13524
13524
  [Le, ye, Ft]
13525
13525
  ), $n = M(
13526
13526
  (_) => {
13527
- if (!_ || P.includes(_)) return;
13528
- if (l && Ti(P.length, d ?? null)) {
13527
+ if (!_ || A.includes(_)) return;
13528
+ if (l && Ti(A.length, d ?? null)) {
13529
13529
  h("Maks antall valg nådd");
13530
13530
  return;
13531
13531
  }
13532
- const E = l ? [...P, _] : [_];
13532
+ const E = l ? [...A, _] : [_];
13533
13533
  nn(E);
13534
13534
  },
13535
- [P, l, d, nn]
13535
+ [A, l, d, nn]
13536
13536
  ), nt = M(
13537
13537
  (_) => {
13538
13538
  if (!_) return;
13539
- const E = P.filter((He) => He !== _), J = mn(q, _);
13539
+ const E = A.filter((He) => He !== _), J = mn(q, _);
13540
13540
  J != null && J.userAdded && Xe((He) => He.filter((Dt) => Dt.value !== _)), nn(E);
13541
13541
  },
13542
- [P, q, nn]
13542
+ [A, q, nn]
13543
13543
  ), Ns = M(() => {
13544
13544
  Xe([]), nn([]);
13545
13545
  }, [nn]), In = M(
@@ -13549,8 +13549,8 @@ function Xm(n, e) {
13549
13549
  if (!l)
13550
13550
  E = [_];
13551
13551
  else {
13552
- if (mn(q, _) || Ti(P.length, d ?? null)) return;
13553
- E = [...P, _];
13552
+ if (mn(q, _) || Ti(A.length, d ?? null)) return;
13553
+ E = [...A, _];
13554
13554
  }
13555
13555
  const J = {
13556
13556
  value: _,
@@ -13560,31 +13560,31 @@ function Xm(n, e) {
13560
13560
  };
13561
13561
  Xe((He) => [J, ...He.filter((Dt) => Dt.value !== _)]), nn(E);
13562
13562
  },
13563
- [l, q, P, d, nn]
13563
+ [l, q, A, d, nn]
13564
13564
  ), Ds = M(
13565
13565
  (_ = !0, E) => {
13566
13566
  if (T(null), _ && I.current && I.current.type !== "hidden") {
13567
13567
  be(""), Qe("");
13568
- const J = E !== void 0 ? E : P[0];
13568
+ const J = E !== void 0 ? E : A[0];
13569
13569
  !l && J ? I.current.value = Ni(J, q, v) : I.current.value = "", l || (rt(!1), h(""));
13570
13570
  }
13571
13571
  },
13572
- [l, P, q, v]
13572
+ [l, A, q, v]
13573
13573
  ), Vt = M(
13574
13574
  (_) => {
13575
13575
  var aa, oa;
13576
13576
  if (w) return;
13577
13577
  h(""), T(null);
13578
- 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);
13579
13579
  let fn = !1, $i = !0, Os = "", cr = "", as;
13580
- 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(() => {
13581
13581
  Re();
13582
13582
  }, 0)));
13583
13583
  },
13584
13584
  [
13585
13585
  w,
13586
13586
  q,
13587
- P,
13587
+ A,
13588
13588
  l,
13589
13589
  d,
13590
13590
  p,
@@ -13598,10 +13598,10 @@ function Xm(n, e) {
13598
13598
  ), Nt = M(() => {
13599
13599
  if (K(!1), T(null), h(""), be(""), I.current && I.current.type !== "hidden") {
13600
13600
  const _ = I.current.value;
13601
- let E = P[0];
13601
+ let E = A[0];
13602
13602
  if (l) {
13603
13603
  if (_ !== "") {
13604
- const { action: J, value: He } = Hm(_, P, q, p, l);
13604
+ const { action: J, value: He } = Hm(_, A, q, p, l);
13605
13605
  switch (J) {
13606
13606
  case "addUserValue":
13607
13607
  In(He);
@@ -13615,24 +13615,24 @@ function Xm(n, e) {
13615
13615
  }
13616
13616
  }
13617
13617
  } else if (!_)
13618
- P[0] && nt(P[0]), E = void 0;
13618
+ A[0] && nt(A[0]), E = void 0;
13619
13619
  else {
13620
13620
  const J = mn(q, _);
13621
- 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 = _);
13622
13622
  }
13623
13623
  !l && E ? I.current.value = Ni(E, q, v) : I.current.value = "";
13624
13624
  }
13625
13625
  ne(!1), rt(!1);
13626
- }, [P, q, p, l, v, In, $n, nt]), is = M(
13626
+ }, [A, q, p, l, v, In, $n, nt]), is = M(
13627
13627
  (_) => {
13628
13628
  if (!_.trim().toLowerCase()) {
13629
- T(null), h(""), !l && P[0] && nt(P[0]);
13629
+ T(null), h(""), !l && A[0] && nt(A[0]);
13630
13630
  return;
13631
13631
  }
13632
- const J = Um(_, P, q, p);
13632
+ const J = Um(_, A, q, p);
13633
13633
  T(J.addValueText), h(J.userInfoMessage);
13634
13634
  },
13635
- [P, q, p, l, nt]
13635
+ [A, q, p, l, nt]
13636
13636
  ), ki = M(
13637
13637
  (_) => {
13638
13638
  var J;
@@ -13652,18 +13652,18 @@ function Xm(n, e) {
13652
13652
  [w, m, q, is]
13653
13653
  ), ir = M(
13654
13654
  (_) => {
13655
- var J, He, Dt, Rn, At;
13655
+ var J, He, Dt, Rn, Pt;
13656
13656
  if (_.key === "Backspace") {
13657
13657
  const Ut = !((J = I.current) != null && J.value);
13658
- if (!ke && Ut && l && P.length > 0) {
13658
+ if (!ke && Ut && l && A.length > 0) {
13659
13659
  _.preventDefault();
13660
- const _i = P[P.length - 1];
13660
+ const _i = A[A.length - 1];
13661
13661
  nt(_i);
13662
13662
  }
13663
13663
  return;
13664
13664
  }
13665
- if (_.key === "ArrowLeft" && l && P.length > 0 && (((He = I.current) == null ? void 0 : He.selectionStart) ?? 0) === 0 && !((Dt = I.current) != null && Dt.value)) {
13666
- _.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);
13667
13667
  return;
13668
13668
  }
13669
13669
  const E = jm(_.key, _.shiftKey, l);
@@ -13676,8 +13676,8 @@ function Xm(n, e) {
13676
13676
  }
13677
13677
  switch (_.preventDefault(), E) {
13678
13678
  case "addValue": {
13679
- const Ut = ((At = I.current) == null ? void 0 : At.value.trim()) || "";
13680
- 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)) {
13681
13681
  Ds(!0), h("Verdien er allerede valgt");
13682
13682
  break;
13683
13683
  }
@@ -13700,7 +13700,7 @@ function Xm(n, e) {
13700
13700
  },
13701
13701
  [
13702
13702
  ke,
13703
- P,
13703
+ A,
13704
13704
  l,
13705
13705
  w,
13706
13706
  p,
@@ -13717,9 +13717,9 @@ function Xm(n, e) {
13717
13717
  Gt.current = !1, K(!0);
13718
13718
  return;
13719
13719
  }
13720
- !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);
13721
13721
  }
13722
- }, [w, l, P, q, v]), rr = M(() => {
13722
+ }, [w, l, A, q, v]), rr = M(() => {
13723
13723
  K(!1), rt(!1);
13724
13724
  }, []), ar = M(
13725
13725
  (_) => {
@@ -13786,19 +13786,19 @@ function Xm(n, e) {
13786
13786
  }, 0);
13787
13787
  break;
13788
13788
  case "ArrowLeft":
13789
- l && P.length > 0 && (_.preventDefault(), je(P.length - 1));
13789
+ l && A.length > 0 && (_.preventDefault(), je(A.length - 1));
13790
13790
  break;
13791
13791
  case "Backspace":
13792
13792
  case "Delete":
13793
- if (l && P.length > 0) {
13793
+ if (l && A.length > 0) {
13794
13794
  _.preventDefault();
13795
- const E = P[P.length - 1];
13795
+ const E = A[A.length - 1];
13796
13796
  nt(E);
13797
13797
  }
13798
13798
  break;
13799
13799
  }
13800
13800
  },
13801
- [w, U, p, Xt, y, f, l, P, nt]
13801
+ [w, U, p, Xt, y, f, l, A, nt]
13802
13802
  ), F = M(
13803
13803
  (_) => {
13804
13804
  Vt(_);
@@ -13839,25 +13839,25 @@ function Xm(n, e) {
13839
13839
  _.preventDefault(), E > 0 && je(E - 1);
13840
13840
  break;
13841
13841
  case "ArrowRight":
13842
- _.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());
13843
13843
  break;
13844
13844
  case "Backspace":
13845
13845
  case "Delete":
13846
13846
  _.preventDefault();
13847
13847
  {
13848
- const Rn = P[E], At = E >= P.length - 1 ? E - 1 : E;
13849
- 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());
13850
13850
  }
13851
13851
  break;
13852
13852
  case "Tab":
13853
13853
  je(-1);
13854
13854
  break;
13855
13855
  case "Escape":
13856
- _.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();
13857
13857
  break;
13858
13858
  }
13859
13859
  },
13860
- [P, Q, nt]
13860
+ [A, Q, nt]
13861
13861
  ), yi = M(
13862
13862
  (_) => {
13863
13863
  be(_.target.value), is(_.target.value);
@@ -13943,11 +13943,11 @@ function Xm(n, e) {
13943
13943
  },
13944
13944
  focus() {
13945
13945
  var _, E;
13946
- Q ? (_ = I.current) == null || _.focus() : (E = Pe.current) == null || E.focus();
13946
+ Q ? (_ = I.current) == null || _.focus() : (E = Ae.current) == null || E.focus();
13947
13947
  },
13948
13948
  blur() {
13949
13949
  var _, E;
13950
- Q ? (_ = I.current) == null || _.blur() : (E = Pe.current) == null || E.blur();
13950
+ Q ? (_ = I.current) == null || _.blur() : (E = Ae.current) == null || E.blur();
13951
13951
  }
13952
13952
  }),
13953
13953
  [Le]
@@ -13957,7 +13957,7 @@ function Xm(n, e) {
13957
13957
  inputId: ie,
13958
13958
  listboxId: qe,
13959
13959
  // Values
13960
- values: P,
13960
+ values: A,
13961
13961
  inputValue: et,
13962
13962
  searchValue: ke,
13963
13963
  // Options
@@ -13984,7 +13984,7 @@ function Xm(n, e) {
13984
13984
  placeholder: N,
13985
13985
  disabled: w,
13986
13986
  required: C,
13987
- fullwidth: A,
13987
+ fullwidth: P,
13988
13988
  hasError: O,
13989
13989
  errorMessage: j,
13990
13990
  helptext: V,
@@ -14003,7 +14003,7 @@ function Xm(n, e) {
14003
14003
  // Refs
14004
14004
  inputRef: I,
14005
14005
  changeInputRef: Ee,
14006
- triggerRef: Pe,
14006
+ triggerRef: Ae,
14007
14007
  listboxRef: te,
14008
14008
  wrapperRef: Ve,
14009
14009
  // Handlers
@@ -14142,12 +14142,12 @@ const Nl = () => {
14142
14142
  n && (C.current = !0), fe(() => {
14143
14143
  n && ig(w.current, (v == null ? void 0 : v.current) ?? null, b);
14144
14144
  }, [n, v, b]);
14145
- 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;
14146
14146
  return /* @__PURE__ */ c(
14147
14147
  "div",
14148
14148
  {
14149
14149
  ref: w,
14150
- className: A,
14150
+ className: P,
14151
14151
  hidden: !n,
14152
14152
  "aria-hidden": !n,
14153
14153
  children: O && /* @__PURE__ */ c(
@@ -14215,7 +14215,7 @@ const Nl = () => {
14215
14215
  minStr: N,
14216
14216
  maxStr: w,
14217
14217
  inputType: C,
14218
- isIOSDevice: A,
14218
+ isIOSDevice: P,
14219
14219
  strings: O,
14220
14220
  inputClasses: j,
14221
14221
  buttonClasses: V,
@@ -14237,7 +14237,7 @@ const Nl = () => {
14237
14237
  handleRangeFromKeydown: Q,
14238
14238
  handleRangeToKeydown: I,
14239
14239
  handleMultipleKeydown: Ee,
14240
- restProps: Pe
14240
+ restProps: Ae
14241
14241
  } = n, te = (We) => {
14242
14242
  We.preventDefault(), X();
14243
14243
  }, Ve = () => {
@@ -14258,20 +14258,20 @@ const Nl = () => {
14258
14258
  }
14259
14259
  );
14260
14260
  };
14261
- return r ? /* @__PURE__ */ x(Ae, { children: [
14261
+ return r ? /* @__PURE__ */ x(Pe, { children: [
14262
14262
  /* @__PURE__ */ c(ag, { dates: s, dateformat: i, idBase: e, strings: O, onDateRemoved: ie }),
14263
14263
  /* @__PURE__ */ c("div", { className: "pkt-datepicker__inputs", children: /* @__PURE__ */ x("div", { className: "pkt-input__container", children: [
14264
14264
  /* @__PURE__ */ c(
14265
14265
  "input",
14266
14266
  {
14267
- ...Pe,
14267
+ ...Ae,
14268
14268
  ref: D,
14269
14269
  className: j,
14270
14270
  type: C,
14271
14271
  id: t,
14272
14272
  name: p ?? e,
14273
14273
  placeholder: v,
14274
- readOnly: d || A && !d,
14274
+ readOnly: d || P && !d,
14275
14275
  disabled: H,
14276
14276
  "aria-describedby": $ ? `${e}-helptext` : void 0,
14277
14277
  "aria-invalid": b,
@@ -14289,7 +14289,7 @@ const Nl = () => {
14289
14289
  /* @__PURE__ */ c(
14290
14290
  "input",
14291
14291
  {
14292
- ...Pe,
14292
+ ...Ae,
14293
14293
  ref: D,
14294
14294
  className: j,
14295
14295
  type: C,
@@ -14299,7 +14299,7 @@ const Nl = () => {
14299
14299
  min: N,
14300
14300
  max: w,
14301
14301
  placeholder: v,
14302
- readOnly: d || A && !d,
14302
+ readOnly: d || P && !d,
14303
14303
  disabled: l,
14304
14304
  required: m,
14305
14305
  "aria-label": `${f} ${((we = O.generic) == null ? void 0 : we.from) ?? "Fra"}`,
@@ -14326,7 +14326,7 @@ const Nl = () => {
14326
14326
  value: s[1] ?? "",
14327
14327
  min: N,
14328
14328
  max: w,
14329
- readOnly: d || A && !d,
14329
+ readOnly: d || P && !d,
14330
14330
  disabled: l,
14331
14331
  "aria-label": `${f} ${((Le = O.generic) == null ? void 0 : Le.to) ?? "Til"}`,
14332
14332
  "aria-invalid": b,
@@ -14342,7 +14342,7 @@ const Nl = () => {
14342
14342
  /* @__PURE__ */ c(
14343
14343
  "input",
14344
14344
  {
14345
- ...Pe,
14345
+ ...Ae,
14346
14346
  ref: D,
14347
14347
  className: j,
14348
14348
  type: C,
@@ -14352,7 +14352,7 @@ const Nl = () => {
14352
14352
  min: N,
14353
14353
  max: w,
14354
14354
  placeholder: v,
14355
- readOnly: d || A && !d,
14355
+ readOnly: d || P && !d,
14356
14356
  disabled: l,
14357
14357
  required: m,
14358
14358
  "aria-describedby": $ ? `${e}-helptext` : void 0,
@@ -14403,7 +14403,7 @@ function ug(n, e) {
14403
14403
  today: N,
14404
14404
  calendarOpen: w,
14405
14405
  timezone: C,
14406
- fullwidth: A = !1,
14406
+ fullwidth: P = !1,
14407
14407
  hasFieldset: O = !1,
14408
14408
  inline: j = !1,
14409
14409
  helptext: V,
@@ -14425,11 +14425,11 @@ function ug(n, e) {
14425
14425
  min: Q,
14426
14426
  max: I,
14427
14427
  placeholder: Ee,
14428
- onChange: Pe,
14428
+ onChange: Ae,
14429
14429
  onValueChange: te,
14430
14430
  className: Ve,
14431
14431
  ...Re
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, 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);
14433
14433
  fe(() => {
14434
14434
  Ne && Be(we(i));
14435
14435
  }, [i, Ne, we]);
@@ -14441,9 +14441,9 @@ function ug(n, e) {
14441
14441
  () => ce ?? (d ? cg : lg),
14442
14442
  [ce, d]
14443
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(() => {
14444
- const B = eg(A, m, o, d, se, et);
14444
+ const B = eg(P, m, o, d, se, et);
14445
14445
  return Object.entries(B).filter(([, F]) => F).map(([F]) => F).join(" ");
14446
- }, [A, m, o, d, se, et]), Y = xe(() => {
14446
+ }, [P, m, o, d, se, et]), Y = xe(() => {
14447
14447
  const B = tg();
14448
14448
  return Object.entries(B).filter(([, F]) => F).map(([F]) => F).join(" ");
14449
14449
  }, []), K = xe(() => {
@@ -14626,7 +14626,7 @@ function ug(n, e) {
14626
14626
  if (!B) return;
14627
14627
  const F = () => {
14628
14628
  window.setTimeout(() => {
14629
- 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(","));
14630
14630
  }, 0);
14631
14631
  };
14632
14632
  return B.addEventListener("reset", F), () => B.removeEventListener("reset", F);
@@ -14671,7 +14671,7 @@ function ug(n, e) {
14671
14671
  required: ie,
14672
14672
  name: qe,
14673
14673
  placeholder: Ee,
14674
- fullwidth: A,
14674
+ fullwidth: P,
14675
14675
  hasFieldset: O,
14676
14676
  inline: j,
14677
14677
  helptext: V,
@@ -14704,7 +14704,7 @@ function ug(n, e) {
14704
14704
  changeInputRef: ne,
14705
14705
  btnRef: ke,
14706
14706
  wrapperRef: be,
14707
- onChange: Pe,
14707
+ onChange: Ae,
14708
14708
  toggleCalendar: Ft,
14709
14709
  hideCalendar: Qt,
14710
14710
  handleDateSelected: $n,
@@ -14852,7 +14852,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14852
14852
  fe(() => {
14853
14853
  C(t);
14854
14854
  }, [p, t]);
14855
- const A = M(
14855
+ const P = M(
14856
14856
  (D) => {
14857
14857
  const W = D.map((L) => new bg(L));
14858
14858
  s(W), p.current && (p.current.value = "");
@@ -14864,9 +14864,9 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14864
14864
  e && C(t);
14865
14865
  return;
14866
14866
  }
14867
- A(Array.from(W));
14867
+ P(Array.from(W));
14868
14868
  }, j = (D) => {
14869
- A(D);
14869
+ P(D);
14870
14870
  }, V = (D) => {
14871
14871
  if (D.preventDefault(), N(!1), l) return;
14872
14872
  const W = D.dataTransfer.files, L = Array.from(W);
@@ -14909,10 +14909,10 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14909
14909
  "aria-label": e ? "Velg filer" : "Velg fil"
14910
14910
  }
14911
14911
  ),
14912
- 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)) }),
14913
14913
  /* @__PURE__ */ x("div", { className: "pkt-fileupload__drop-zone__placeholder", children: [
14914
14914
  /* @__PURE__ */ c(Z, { name: "attachment", className: "pkt-fileupload__drop-zone__placeholder__icon", "aria-hidden": "true" }),
14915
- /* @__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: [
14916
14916
  w.selectOrDragFiles,
14917
14917
  " ",
14918
14918
  /* @__PURE__ */ c(
@@ -14963,7 +14963,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14963
14963
  optionalTag: N = !1,
14964
14964
  optionalText: w,
14965
14965
  requiredTag: C = !1,
14966
- requiredText: A,
14966
+ requiredText: P,
14967
14967
  tagText: O = null,
14968
14968
  placeholder: j,
14969
14969
  rows: V,
@@ -14978,8 +14978,8 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
14978
14978
  ...ee
14979
14979
  }, pe) => {
14980
14980
  const ce = [r, "pkt-textinput", "pkt-textarea"].join(" "), ye = `${n}-input`, se = `${ye}-label`, ie = t || se, [qe, Q] = le(0), I = (Ee) => {
14981
- var Pe, te;
14982
- 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);
14983
14983
  };
14984
14984
  return fe(() => {
14985
14985
  H !== void 0 && Q((H == null ? void 0 : H.length) || 0);
@@ -15000,7 +15000,7 @@ const na = Ki({}), vg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", kg
15000
15000
  optionalTag: N,
15001
15001
  optionalText: w,
15002
15002
  requiredTag: C,
15003
- requiredText: A,
15003
+ requiredText: P,
15004
15004
  tagText: O,
15005
15005
  useWrapper: z,
15006
15006
  counter: s,
@@ -15057,7 +15057,7 @@ const _g = Symbol("comment"), $g = (n) => {
15057
15057
  return (l = i.current) == null ? void 0 : l.focus({ preventScroll: !0 });
15058
15058
  }, 0);
15059
15059
  return () => clearTimeout(o);
15060
- }, [n.fileId]), /* @__PURE__ */ x(Ae, { children: [
15060
+ }, [n.fileId]), /* @__PURE__ */ x(Pe, { children: [
15061
15061
  /* @__PURE__ */ c(
15062
15062
  Dl,
15063
15063
  {
@@ -15166,7 +15166,7 @@ const _g = Symbol("comment"), $g = (n) => {
15166
15166
  var i;
15167
15167
  n.onSave(((i = e.current) == null ? void 0 : i.value) ?? "");
15168
15168
  };
15169
- return /* @__PURE__ */ x(Ae, { children: [
15169
+ return /* @__PURE__ */ x(Pe, { children: [
15170
15170
  /* @__PURE__ */ c("label", { htmlFor: t, className: "pkt-sr-only", children: "Endre filnavn" }),
15171
15171
  /* @__PURE__ */ c(
15172
15172
  "input",
@@ -15212,7 +15212,7 @@ const _g = Symbol("comment"), $g = (n) => {
15212
15212
  ),
15213
15213
  symbol: Dg
15214
15214
  };
15215
- }, Pg = (n, e) => {
15215
+ }, Ag = (n, e) => {
15216
15216
  const t = M(
15217
15217
  (r, a, o) => {
15218
15218
  const l = n.find((m) => m.fileId === r), d = l.attributes || {};
@@ -15235,7 +15235,7 @@ const _g = Symbol("comment"), $g = (n) => {
15235
15235
  }),
15236
15236
  [s, t]
15237
15237
  ) };
15238
- }, Ag = (n) => {
15238
+ }, Pg = (n) => {
15239
15239
  const [e, t] = le(!1), [s, i] = le(0), r = de(null), a = M(
15240
15240
  (d) => {
15241
15241
  var f;
@@ -15307,7 +15307,7 @@ const _g = Symbol("comment"), $g = (n) => {
15307
15307
  r && V.target === N.current && w();
15308
15308
  },
15309
15309
  [r, N, w]
15310
- ), A = M(() => {
15310
+ ), P = M(() => {
15311
15311
  p == null || p();
15312
15312
  }, [p]), O = l === "blue", j = re(
15313
15313
  {
@@ -15331,7 +15331,7 @@ const _g = Symbol("comment"), $g = (n) => {
15331
15331
  "aria-labelledby": s ? "pkt-modal__headingText" : void 0,
15332
15332
  "aria-describedby": "pkt-modal__content",
15333
15333
  onClick: C,
15334
- onClose: A,
15334
+ onClose: P,
15335
15335
  children: /* @__PURE__ */ x("div", { className: "pkt-modal__wrapper", children: [
15336
15336
  (s || !i) && /* @__PURE__ */ x("div", { className: "pkt-modal__header", children: [
15337
15337
  /* @__PURE__ */ c("div", { className: "pkt-modal__header-background" }),
@@ -15495,7 +15495,7 @@ const yo = 2, Rg = (n) => {
15495
15495
  transferItem: e
15496
15496
  }) => {
15497
15497
  const t = e.showProgress ?? e.progress !== 0;
15498
- return /* @__PURE__ */ x(Ae, { children: [
15498
+ return /* @__PURE__ */ x(Pe, { children: [
15499
15499
  /* @__PURE__ */ c(
15500
15500
  Z,
15501
15501
  {
@@ -15506,7 +15506,7 @@ const yo = 2, Rg = (n) => {
15506
15506
  ),
15507
15507
  /* @__PURE__ */ c("p", { className: "pkt-fileupload__queue-display__item__title", "aria-label": "Filnavn", children: /* @__PURE__ */ c(vi, { children: e.attributes.targetFilename }) }),
15508
15508
  /* @__PURE__ */ c(sa, { onClick: n }),
15509
- t ? /* @__PURE__ */ x(Ae, { children: [
15509
+ t ? /* @__PURE__ */ x(Pe, { children: [
15510
15510
  /* @__PURE__ */ c(
15511
15511
  ra,
15512
15512
  {
@@ -15526,7 +15526,7 @@ const yo = 2, Rg = (n) => {
15526
15526
  onRemove: e
15527
15527
  }) => {
15528
15528
  const t = (n.lastProgress ?? 1) * 100;
15529
- return /* @__PURE__ */ x(Ae, { children: [
15529
+ return /* @__PURE__ */ x(Pe, { children: [
15530
15530
  /* @__PURE__ */ c(
15531
15531
  Z,
15532
15532
  {
@@ -15553,7 +15553,7 @@ const yo = 2, Rg = (n) => {
15553
15553
  }, jg = ({
15554
15554
  transferItem: n,
15555
15555
  onRemove: e
15556
- }) => /* @__PURE__ */ x(Ae, { children: [
15556
+ }) => /* @__PURE__ */ x(Pe, { children: [
15557
15557
  /* @__PURE__ */ c(
15558
15558
  Z,
15559
15559
  {
@@ -15585,7 +15585,7 @@ const yo = 2, Rg = (n) => {
15585
15585
  ) : null;
15586
15586
  }, El = ({
15587
15587
  transferItem: n
15588
- }) => /* @__PURE__ */ x(Ae, { children: [
15588
+ }) => /* @__PURE__ */ x(Pe, { children: [
15589
15589
  /* @__PURE__ */ c(
15590
15590
  Z,
15591
15591
  {
@@ -15648,7 +15648,7 @@ const yo = 2, Rg = (n) => {
15648
15648
  ]
15649
15649
  }
15650
15650
  );
15651
- }, Pl = $e(
15651
+ }, Al = $e(
15652
15652
  ({ isOpen: n, images: e, currentIndex: t, onClose: s, onNavigate: i }, r) => {
15653
15653
  const [a, o] = le(null), [l, d] = le(!1), m = e[t], f = e.length > 1;
15654
15654
  return fe(() => {
@@ -15724,7 +15724,7 @@ const yo = 2, Rg = (n) => {
15724
15724
  ) : null;
15725
15725
  }
15726
15726
  );
15727
- Pl.displayName = "ImagePreviewModal";
15727
+ Al.displayName = "ImagePreviewModal";
15728
15728
  const zg = (n) => {
15729
15729
  var e;
15730
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 || "");
@@ -15746,7 +15746,7 @@ const zg = (n) => {
15746
15746
  activatedOperation: e,
15747
15747
  onActivate: t,
15748
15748
  transferItem: s
15749
- }) => /* @__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(
15750
15750
  s,
15751
15751
  () => t(s.fileId, i),
15752
15752
  (e == null ? void 0 : e.symbol) === i.symbol
@@ -15760,8 +15760,8 @@ const zg = (n) => {
15760
15760
  onPreviewClick: a
15761
15761
  }) => {
15762
15762
  const o = () => r(n.fileId), d = (e == null ? void 0 : e.renderInlineUI) || (e == null ? void 0 : e.renderExtendedUI) ? [] : t;
15763
- return /* @__PURE__ */ x(Ae, { children: [
15764
- e != null && e.renderInlineUI ? /* @__PURE__ */ x(Ae, { children: [
15763
+ return /* @__PURE__ */ x(Pe, { children: [
15764
+ e != null && e.renderInlineUI ? /* @__PURE__ */ x(Pe, { children: [
15765
15765
  /* @__PURE__ */ c(Z, { name: "document-text", className: "pkt-fileupload__queue-display__item__icon" }),
15766
15766
  /* @__PURE__ */ c("div", { className: "pkt-fileupload__queue-display__item__inline-ui", children: e.renderInlineUI(n, o) })
15767
15767
  ] }) : /* @__PURE__ */ c(s, { transferItem: n, queueItemOperations: t, onPreviewClick: a }),
@@ -15848,8 +15848,8 @@ const zg = (n) => {
15848
15848
  enableImagePreview: a = !1,
15849
15849
  uploadStrategy: o = "form"
15850
15850
  }) => {
15851
- const l = Jg(n, t, o), d = Zg(l, a), m = Ig(s), f = Ag(d);
15852
- 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: [
15853
15853
  /* @__PURE__ */ c("ul", { className: "pkt-fileupload__queue-display", children: /* @__PURE__ */ c(Ml.Provider, { value: { tail: r }, children: l.map((p) => /* @__PURE__ */ x(
15854
15854
  "li",
15855
15855
  {
@@ -15878,7 +15878,7 @@ const zg = (n) => {
15878
15878
  p.fileId
15879
15879
  )) }) }),
15880
15880
  a && d.length > 0 && /* @__PURE__ */ c(
15881
- Pl,
15881
+ Al,
15882
15882
  {
15883
15883
  ref: f.modalRef,
15884
15884
  isOpen: f.isOpen,
@@ -15914,7 +15914,7 @@ const zg = (n) => {
15914
15914
  sizeErrorMessage: N,
15915
15915
  onFileValidation: w,
15916
15916
  errorMessage: C,
15917
- hasError: A = !1,
15917
+ hasError: P = !1,
15918
15918
  disabled: O = !1,
15919
15919
  label: j,
15920
15920
  helptext: V,
@@ -15923,7 +15923,7 @@ const zg = (n) => {
15923
15923
  enableImagePreview: H = !1,
15924
15924
  ...D
15925
15925
  }, W) => {
15926
- 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(
15927
15927
  (U) => {
15928
15928
  var ne;
15929
15929
  if (v && v.length > 0) {
@@ -15962,7 +15962,7 @@ const zg = (n) => {
15962
15962
  const ne = U.toLowerCase();
15963
15963
  return ne.includes("/") || ne.startsWith(".") ? ne : `.${ne}`;
15964
15964
  }).join(", ");
15965
- }, [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(
15966
15966
  (U) => {
15967
15967
  for (const ke of U) {
15968
15968
  const be = ye(ke.file);
@@ -15991,7 +15991,7 @@ const zg = (n) => {
15991
15991
  l && l(ne), "onTransferCancelled" in D && D.onTransferCancelled && ((ke = D.onTransferCancelled) == null || ke.call(D, U));
15992
15992
  },
15993
15993
  [l, ie, D]
15994
- ), { fileAttributes: Le } = Pg(ie, we), We = xe(
15994
+ ), { fileAttributes: Le } = Ag(ie, we), We = xe(
15995
15995
  () => [
15996
15996
  {
15997
15997
  op: Eg,
@@ -16009,7 +16009,7 @@ const zg = (n) => {
16009
16009
  errors: `${t}-errors`
16010
16010
  }),
16011
16011
  [t]
16012
- ), { totalCount: _e, uploadedCount: P, failedCount: Ue } = xe(() => {
16012
+ ), { totalCount: _e, uploadedCount: A, failedCount: Ue } = xe(() => {
16013
16013
  const U = ie.length;
16014
16014
  if (!L)
16015
16015
  return { totalCount: U, uploadedCount: 0, failedCount: 0 };
@@ -16030,7 +16030,7 @@ const zg = (n) => {
16030
16030
  "aria-disabled": O,
16031
16031
  ...O ? { inert: "" } : {},
16032
16032
  children: /* @__PURE__ */ x(na.Provider, { value: { name: D.name || "", multiple: !!s, id: t }, children: [
16033
- /* @__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` }),
16034
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` }),
16035
16035
  /* @__PURE__ */ c(
16036
16036
  kg,
@@ -16042,7 +16042,7 @@ const zg = (n) => {
16042
16042
  multiple: s,
16043
16043
  uploadStrategy: i,
16044
16044
  ref: W,
16045
- accept: Q ? ".jpeg, .jpg, .png, .gif, .webp, .heic" : Pe,
16045
+ accept: Q ? ".jpeg, .jpg, .png, .gif, .webp, .heic" : Ae,
16046
16046
  isThumbnailView: Q,
16047
16047
  disabled: O,
16048
16048
  srAnnouncementIds: Be
@@ -16109,7 +16109,7 @@ const Mv = ({
16109
16109
  /* @__PURE__ */ c("h2", { className: "pkt-footer__title", children: n.title }),
16110
16110
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
16111
16111
  n.text && /* @__PURE__ */ c("li", { className: "pkt-footer__text", children: n.text }),
16112
- (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(
16113
16113
  "a",
16114
16114
  {
16115
16115
  className: `pkt-footer__link ${C.external ? "pkt-link--external" : ""}`,
@@ -16121,14 +16121,14 @@ const Mv = ({
16121
16121
  C.text
16122
16122
  ]
16123
16123
  }
16124
- ) }, `links-${A}`))
16124
+ ) }, `links-${P}`))
16125
16125
  ] })
16126
16126
  ] }),
16127
16127
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
16128
16128
  /* @__PURE__ */ c("h2", { className: "pkt-footer__title", children: e.title }),
16129
16129
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
16130
16130
  e.text && /* @__PURE__ */ c("li", { className: "pkt-footer__text", children: e.text }),
16131
- (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(
16132
16132
  "a",
16133
16133
  {
16134
16134
  className: `pkt-footer__link ${C.external ? "pkt-link--external" : ""}`,
@@ -16140,7 +16140,7 @@ const Mv = ({
16140
16140
  C.text
16141
16141
  ]
16142
16142
  }
16143
- ) }, `links-${A}`))
16143
+ ) }, `links-${P}`))
16144
16144
  ] })
16145
16145
  ] }),
16146
16146
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -16189,7 +16189,7 @@ const Mv = ({
16189
16189
  ] })
16190
16190
  ] }),
16191
16191
  t && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
16192
- /* @__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(
16193
16193
  "a",
16194
16194
  {
16195
16195
  href: C.href,
@@ -16198,8 +16198,8 @@ const Mv = ({
16198
16198
  rel: C.openInNewTab || i ? "noopener noreferrer" : void 0,
16199
16199
  children: C.language
16200
16200
  }
16201
- ) }, `sociallinks-language-${A}`)) }),
16202
- /* @__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(
16203
16203
  "a",
16204
16204
  {
16205
16205
  href: C.href,
@@ -16209,7 +16209,7 @@ const Mv = ({
16209
16209
  rel: C.openInNewTab || i ? "noopener noreferrer" : void 0,
16210
16210
  children: /* @__PURE__ */ c(Z, { className: "pkt-footer__social-icon", name: C.iconName })
16211
16211
  }
16212
- ) }, `sociallinks-${A}`)) })
16212
+ ) }, `sociallinks-${P}`)) })
16213
16213
  ] })
16214
16214
  ] }) });
16215
16215
  }, Ev = ({
@@ -16370,7 +16370,7 @@ const ib = (n) => typeof n.target == "string" ? { title: n.title, iconName: n.ic
16370
16370
  n.title
16371
16371
  ]
16372
16372
  }
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)) }), 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(
16374
16374
  ({
16375
16375
  user: n,
16376
16376
  formattedLastLoggedIn: e,
@@ -16415,7 +16415,7 @@ const ib = (n) => typeof n.target == "string" ? { title: n.title, iconName: n.ic
16415
16415
  ] }) });
16416
16416
  }
16417
16417
  );
16418
- Al.displayName = "PktHeaderUserMenu";
16418
+ Pl.displayName = "PktHeaderUserMenu";
16419
16419
  const jr = $e(
16420
16420
  ({
16421
16421
  id: n,
@@ -16437,7 +16437,7 @@ const jr = $e(
16437
16437
  label: N,
16438
16438
  name: w,
16439
16439
  optionalTag: C = !1,
16440
- optionalText: A,
16440
+ optionalText: P,
16441
16441
  requiredTag: O = !1,
16442
16442
  requiredText: j,
16443
16443
  tagText: V = null,
@@ -16459,9 +16459,9 @@ const jr = $e(
16459
16459
  dataTestid: Q,
16460
16460
  onChange: I,
16461
16461
  skipForwardTestid: Ee = !1,
16462
- ...Pe
16462
+ ...Ae
16463
16463
  }, te) => {
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, 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) => {
16465
16465
  var Xe, q;
16466
16466
  i && Le(((q = (Xe = Ue.currentTarget) == null ? void 0 : Xe.value) == null ? void 0 : q.length) || 0), I && I(Ue);
16467
16467
  };
@@ -16482,7 +16482,7 @@ const jr = $e(
16482
16482
  inline: b,
16483
16483
  label: N,
16484
16484
  optionalTag: C,
16485
- optionalText: A,
16485
+ optionalText: P,
16486
16486
  requiredTag: O,
16487
16487
  requiredText: j,
16488
16488
  tagText: V,
@@ -16501,7 +16501,7 @@ const jr = $e(
16501
16501
  /* @__PURE__ */ c(
16502
16502
  "input",
16503
16503
  {
16504
- ...Pe,
16504
+ ...Ae,
16505
16505
  ref: te,
16506
16506
  className: `pkt-input ${$ ? "pkt-input--fullwidth" : ""} ${r && Ne > r ? "pkt-input--counter-error" : ""}`,
16507
16507
  type: D,
@@ -16516,7 +16516,7 @@ const jr = $e(
16516
16516
  "aria-labelledby": _e,
16517
16517
  min: pe,
16518
16518
  max: ce,
16519
- onChange: P,
16519
+ onChange: A,
16520
16520
  step: ye,
16521
16521
  minLength: oe,
16522
16522
  maxLength: ee,
@@ -16561,7 +16561,7 @@ const Il = $e(
16561
16561
  serviceClick: N,
16562
16562
  serviceName: w,
16563
16563
  user: C,
16564
- userMenu: A,
16564
+ userMenu: P,
16565
16565
  userMenuFooter: O,
16566
16566
  userOptions: j,
16567
16567
  canChangeRepresentation: V = !1,
@@ -16599,7 +16599,7 @@ const Il = $e(
16599
16599
  fe(() => {
16600
16600
  l !== void 0 && ie(l);
16601
16601
  }, [l]);
16602
- 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(
16603
16603
  (h) => {
16604
16604
  we.current = h, typeof ee == "function" ? ee(h) : ee && (ee.current = h);
16605
16605
  },
@@ -16625,7 +16625,7 @@ const Il = $e(
16625
16625
  const K = Y.current;
16626
16626
  K && (!T || !K.contains(T)) && ie("none");
16627
16627
  }, []), be = M(() => {
16628
- 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;
16629
16629
  }, []);
16630
16630
  fe(() => {
16631
16631
  const h = (T) => {
@@ -16661,7 +16661,7 @@ const Il = $e(
16661
16661
  [U, q]
16662
16662
  ), Qe = M(
16663
16663
  (h) => {
16664
- se !== "none" ? ie("none") : (P.current = document.activeElement, ie(h));
16664
+ se !== "none" ? ie("none") : (A.current = document.activeElement, ie(h));
16665
16665
  },
16666
16666
  [se]
16667
16667
  );
@@ -16728,7 +16728,7 @@ const Il = $e(
16728
16728
  ]
16729
16729
  }
16730
16730
  ),
16731
- /* @__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: [
16732
16732
  /* @__PURE__ */ x(
16733
16733
  "div",
16734
16734
  {
@@ -16754,7 +16754,7 @@ const Il = $e(
16754
16754
  /* @__PURE__ */ c(
16755
16755
  "div",
16756
16756
  {
16757
- className: re("pkt-header-service__slot-content", Pe && "align-right"),
16757
+ className: re("pkt-header-service__slot-content", Ae && "align-right"),
16758
16758
  id: "mobile-slot-menu",
16759
16759
  role: U ? "menu" : void 0,
16760
16760
  "aria-label": U ? "Meny" : void 0,
@@ -16765,7 +16765,7 @@ const Il = $e(
16765
16765
  ]
16766
16766
  }
16767
16767
  ),
16768
- d && /* @__PURE__ */ c(Ae, { children: U ? /* @__PURE__ */ x(
16768
+ d && /* @__PURE__ */ c(Pe, { children: U ? /* @__PURE__ */ x(
16769
16769
  "div",
16770
16770
  {
16771
16771
  className: re("pkt-header-service__search-container", se === "search" && "is-open"),
@@ -16845,8 +16845,8 @@ const Il = $e(
16845
16845
  children: "Logg ut"
16846
16846
  }
16847
16847
  )
16848
- ] }),
16849
- /* @__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: [
16850
16850
  C && /* @__PURE__ */ x(
16851
16851
  "div",
16852
16852
  {
@@ -16882,12 +16882,12 @@ const Il = $e(
16882
16882
  "is-open"
16883
16883
  ),
16884
16884
  children: /* @__PURE__ */ c(
16885
- Al,
16885
+ Pl,
16886
16886
  {
16887
16887
  user: C,
16888
16888
  formattedLastLoggedIn: ye,
16889
16889
  representing: b,
16890
- userMenu: A,
16890
+ userMenu: P,
16891
16891
  canChangeRepresentation: V,
16892
16892
  changeRepresentation: z,
16893
16893
  logoutOnClick: a === "userMenu" || a === "both" ? o : void 0
@@ -17045,9 +17045,9 @@ const $o = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).to
17045
17045
  className: b,
17046
17046
  ...$
17047
17047
  }, N) => {
17048
- 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);
17049
17049
  fe(() => {
17050
- A.current && j(A.current.getBoundingClientRect().width || 0);
17050
+ P.current && j(P.current.getBoundingClientRect().width || 0);
17051
17051
  }, [f]);
17052
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`;
17053
17053
  return /* @__PURE__ */ c(
@@ -17095,7 +17095,7 @@ const $o = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).to
17095
17095
  children: /* @__PURE__ */ c(
17096
17096
  "span",
17097
17097
  {
17098
- ref: A,
17098
+ ref: P,
17099
17099
  className: re({
17100
17100
  "pkt-progressbar__status-placement--following": o === "following",
17101
17101
  "pkt-progressbar__status-placement--center": o === "center",
@@ -17137,10 +17137,10 @@ const bb = $e(
17137
17137
  "pkt-input-check__input",
17138
17138
  i ? "pkt-input-check__input--tile" : "",
17139
17139
  r && i ? "pkt-input-check__input--tile-disabled" : ""
17140
- ].filter(Boolean).join(" "), A = [
17140
+ ].filter(Boolean).join(" "), P = [
17141
17141
  "pkt-input-check__input-checkbox",
17142
17142
  o ? "pkt-input-check__input-checkbox--error" : ""
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(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: [
17144
17144
  b && /* @__PURE__ */ c("span", { className: j + " pkt-tag--gray", children: b }),
17145
17145
  m && /* @__PURE__ */ c("span", { className: j + " pkt-tag--blue-light", children: f }),
17146
17146
  p && /* @__PURE__ */ c("span", { className: j + " pkt-tag--beige", children: v })
@@ -17154,7 +17154,7 @@ const bb = $e(
17154
17154
  type: "radio",
17155
17155
  name: e,
17156
17156
  disabled: r,
17157
- className: A,
17157
+ className: P,
17158
17158
  ...d !== void 0 ? { checked: d } : { defaultChecked: l },
17159
17159
  ...$
17160
17160
  }
@@ -17192,9 +17192,9 @@ const vb = $e(
17192
17192
  }, w = (O) => {
17193
17193
  l = O.target.value;
17194
17194
  }, C = `pkt-searchinput pkt-searchinput--${n} ${t ? "pkt-searchinput--fullwidth" : ""}`;
17195
- let A;
17196
- 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(
17197
- /* @__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: [
17198
17198
  i && /* @__PURE__ */ c("label", { htmlFor: i ? s : void 0, className: i ? "pkt-inputwrapper__label" : "", children: i }),
17199
17199
  /* @__PURE__ */ x("div", { className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
17200
17200
  /* @__PURE__ */ c(
@@ -17244,7 +17244,7 @@ const vb = $e(
17244
17244
  onClick: () => N(O.onClick, j),
17245
17245
  onKeyUp: (V) => V.key === "Enter" && N(O.onClick, j)
17246
17246
  },
17247
- /* @__PURE__ */ x(Ae, { children: [
17247
+ /* @__PURE__ */ x(Pe, { children: [
17248
17248
  O.title && /* @__PURE__ */ c("h3", { className: "pkt-searchinput__suggestion-title", children: O.title }),
17249
17249
  O.text && /* @__PURE__ */ c("p", { className: "pkt-searchinput__suggestion-text", children: O.text })
17250
17250
  ] })
@@ -17275,7 +17275,7 @@ const kb = $e(
17275
17275
  optionalText: N,
17276
17276
  requiredTag: w = !1,
17277
17277
  requiredText: C,
17278
- tagText: A,
17278
+ tagText: P,
17279
17279
  ...O
17280
17280
  }, j) => {
17281
17281
  const V = [s, "pkt-select"].join(" ");
@@ -17292,7 +17292,7 @@ const kb = $e(
17292
17292
  optionalText: N,
17293
17293
  requiredTag: w,
17294
17294
  requiredText: C,
17295
- tagText: A,
17295
+ tagText: P,
17296
17296
  hasError: a,
17297
17297
  errorMessage: r,
17298
17298
  disabled: i,
@@ -17324,7 +17324,7 @@ const yb = /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width
17324
17324
  ] }), $b = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
17325
17325
  /* @__PURE__ */ c("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
17326
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" })
17327
- ] }), 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: [
17328
17328
  /* @__PURE__ */ c("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
17329
17329
  /* @__PURE__ */ c("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
17330
17330
  /* @__PURE__ */ c("span", { className: re("pkt-step__indicator"), children: t === "current" ? _b : t === "completed" ? $b : yb }),
@@ -17357,7 +17357,7 @@ const yb = /* @__PURE__ */ c("svg", { xmlns: "http://www.w3.org/2000/svg", width
17357
17357
  }
17358
17358
  );
17359
17359
  wb.displayName = "PktStepper";
17360
- const Av = ({
17360
+ const Pv = ({
17361
17361
  className: n,
17362
17362
  compact: e = !1,
17363
17363
  skin: t = "basic",
@@ -17402,7 +17402,7 @@ const Av = ({
17402
17402
  ref: (w) => {
17403
17403
  f(l, w), typeof d == "function" ? d(w) : d && (d.current = w);
17404
17404
  }
17405
- }, N = /* @__PURE__ */ x(Ae, { children: [
17405
+ }, N = /* @__PURE__ */ x(Pe, { children: [
17406
17406
  i && /* @__PURE__ */ c(Z, { name: i, className: "pkt-icon--small" }),
17407
17407
  n,
17408
17408
  a && /* @__PURE__ */ c(zn, { skin: o, size: "small", children: a })
@@ -17486,10 +17486,10 @@ export {
17486
17486
  bb as PktRadioButton,
17487
17487
  vb as PktSearchInput,
17488
17488
  kb as PktSelect,
17489
- Pv as PktStep,
17489
+ Av as PktStep,
17490
17490
  wb as PktStepper,
17491
17491
  Rl as PktTabItem,
17492
- Av as PktTable,
17492
+ Pv as PktTable,
17493
17493
  Iv as PktTableBody,
17494
17494
  Rv as PktTableDataCell,
17495
17495
  Lv as PktTableHeader,