@oslokommune/punkt-react 16.7.1 → 16.7.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.
@@ -4824,7 +4824,7 @@ function vh() {
4824
4824
  }
4825
4825
  }
4826
4826
  }) : {};
4827
- function q(b) {
4827
+ function U(b) {
4828
4828
  b.forEach((h) => {
4829
4829
  const { addedNodes: _, removedNodes: T } = h, Y = Array.from(_), K = Array.from(T);
4830
4830
  Y.forEach((we) => {
@@ -4870,7 +4870,7 @@ function vh() {
4870
4870
  const T = new MutationObserver(X);
4871
4871
  !((h = window == null ? void 0 : window.ShadyDOM) === null || h === void 0) && h.inUse && b.mode && b.host && (b = b.host), (_ = T.observe) === null || _ === void 0 || _.call(T, b, { childList: !0 }), v.set(b, T);
4872
4872
  };
4873
- oe() && new MutationObserver(q);
4873
+ oe() && new MutationObserver(U);
4874
4874
  const z = {
4875
4875
  childList: !0,
4876
4876
  subtree: !0
@@ -5047,7 +5047,7 @@ function vh() {
5047
5047
  }
5048
5048
  });
5049
5049
  }
5050
- class U {
5050
+ class q {
5051
5051
  static get isPolyfilled() {
5052
5052
  return !0;
5053
5053
  }
@@ -5174,7 +5174,7 @@ function vh() {
5174
5174
  }
5175
5175
  function qe(b = !0) {
5176
5176
  if (!ke) {
5177
- if (ke = !0, typeof window < "u" && (window.ElementInternals = U), typeof CustomElementRegistry < "u") {
5177
+ if (ke = !0, typeof window < "u" && (window.ElementInternals = q), typeof CustomElementRegistry < "u") {
5178
5178
  const h = CustomElementRegistry.prototype.define;
5179
5179
  CustomElementRegistry.prototype.define = function(_, T, Y) {
5180
5180
  if (T.formAssociated) {
@@ -5193,12 +5193,12 @@ function vh() {
5193
5193
  } else return {};
5194
5194
  if (i.has(this))
5195
5195
  throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");
5196
- return new U(this);
5196
+ return new q(this);
5197
5197
  }), typeof Element < "u") {
5198
5198
  let h = function(...T) {
5199
5199
  const Y = _.apply(this, T);
5200
5200
  if (m.set(this, Y), oe()) {
5201
- const K = new MutationObserver(q);
5201
+ const K = new MutationObserver(U);
5202
5202
  window.ShadyDOM ? K.observe(this, z) : K.observe(Y, z), o.set(this, K);
5203
5203
  }
5204
5204
  return Y;
@@ -5206,7 +5206,7 @@ function vh() {
5206
5206
  const _ = Element.prototype.attachShadow;
5207
5207
  Element.prototype.attachShadow = h;
5208
5208
  }
5209
- oe() && typeof document < "u" && new MutationObserver(q).observe(document.documentElement, z), typeof HTMLFormElement < "u" && j(), (b || typeof window < "u" && !window.CustomStateSet) && ze();
5209
+ oe() && typeof document < "u" && new MutationObserver(U).observe(document.documentElement, z), typeof HTMLFormElement < "u" && j(), (b || typeof window < "u" && !window.CustomStateSet) && ze();
5210
5210
  }
5211
5211
  }
5212
5212
  return customElements.polyfillWrapFlushCallback || (te() ? typeof window < "u" && !window.CustomStateSet && ze(HTMLElement.prototype.attachInternals) : qe(!1)), n.forceCustomStateSetPolyfill = ze, n.forceElementInternalsPolyfill = qe, Object.defineProperty(n, "__esModule", { value: !0 }), n;
@@ -10921,8 +10921,8 @@ const ie = Ti({
10921
10921
  r === void 0 && v(n);
10922
10922
  }, [n, r]);
10923
10923
  const S = (A) => {
10924
- const q = A.currentTarget.open;
10925
- q !== N && (r === void 0 && v(q), f == null || f(A));
10924
+ const U = A.currentTarget.open;
10925
+ U !== N && (r === void 0 && v(U), f == null || f(A));
10926
10926
  }, C = (A) => {
10927
10927
  setTimeout(() => {
10928
10928
  d == null || d(A);
@@ -12840,9 +12840,9 @@ function Gf(n) {
12840
12840
  } = n, C = Lo(), B = N ?? C, A = Me(() => ({ ...Yf, ...v }), [v]), W = Me(
12841
12841
  () => p ? fn(p) : Tf(),
12842
12842
  [p]
12843
- ), q = Me(() => o ? o.map((b) => typeof b == "string" ? fn(b) : b) : [], [o]), X = e !== void 0, [xe, z] = de([]), M = X ? e : xe, G = Me(() => Pl(M), [M]), [V, ee] = de(0), [ce, se] = de(0), [ve, $e] = de({}), [ge, ue] = de(null), [pe, et] = de(null), J = ne(null), I = ne([]), Ve = ne(0), Ue = ne(!1), oe = ne(!1), Xe = Me(
12844
- () => ({ earliest: r, latest: a, excludedates: q, excludeweekdays: l }),
12845
- [r, a, q, l]
12843
+ ), U = Me(() => o ? o.map((b) => typeof b == "string" ? fn(b) : b) : [], [o]), X = e !== void 0, [xe, z] = de([]), M = X ? e : xe, G = Me(() => Pl(M), [M]), [V, ee] = de(0), [ce, se] = de(0), [ve, $e] = de({}), [ge, ue] = de(null), [pe, et] = de(null), J = ne(null), I = ne([]), Ve = ne(0), Ue = ne(!1), oe = ne(!1), Xe = Me(
12844
+ () => ({ earliest: r, latest: a, excludedates: U, excludeweekdays: l }),
12845
+ [r, a, U, l]
12846
12846
  );
12847
12847
  me(() => {
12848
12848
  let b = null;
@@ -12893,20 +12893,20 @@ function Gf(n) {
12893
12893
  [Xe, t, s, M.length]
12894
12894
  ), R = O(() => typeof M == "string" ? M.split(",") : M, [M]), We = O(
12895
12895
  (b) => {
12896
- if (!i || G.length !== 1 || !Rl(b, G, q, l) || G[0] >= b) {
12896
+ if (!i || G.length !== 1 || !Rl(b, G, U, l) || G[0] >= b) {
12897
12897
  ue(null);
12898
12898
  return;
12899
12899
  }
12900
12900
  ue(b), $e(Co(G[0], b));
12901
12901
  },
12902
- [i, G, q, l]
12902
+ [i, G, U, l]
12903
12903
  ), Fe = O(
12904
12904
  (b) => {
12905
12905
  if (!b) return;
12906
12906
  let h;
12907
12907
  if (i)
12908
12908
  h = Ff(b, R(), {
12909
- excludedates: q,
12909
+ excludedates: U,
12910
12910
  excludeweekdays: l
12911
12911
  }), X || z(h), h.length === 2 ? (g == null || g(h), _e()) : (h.length === 1 && $e({}), g == null || g(h));
12912
12912
  else if (t)
@@ -12922,7 +12922,7 @@ function Gf(n) {
12922
12922
  s,
12923
12923
  R,
12924
12924
  M,
12925
- q,
12925
+ U,
12926
12926
  l,
12927
12927
  X,
12928
12928
  Te,
@@ -12935,7 +12935,7 @@ function Gf(n) {
12935
12935
  X || z(h), i && h.length === 2 && (g == null || g(h), _e());
12936
12936
  },
12937
12937
  [R, X, i, g, _e]
12938
- ), U = O(
12938
+ ), q = O(
12939
12939
  (b) => {
12940
12940
  const h = da(b, R());
12941
12941
  X || z(h);
@@ -13009,7 +13009,7 @@ function Gf(n) {
13009
13009
  withcontrols: f,
13010
13010
  earliest: r,
13011
13011
  latest: a,
13012
- excludedates: q,
13012
+ excludedates: U,
13013
13013
  excludeweekdays: l,
13014
13014
  className: S,
13015
13015
  dateConstraints: Xe,
@@ -13021,7 +13021,7 @@ function Gf(n) {
13021
13021
  changeMonth: le,
13022
13022
  handleDateSelect: Fe,
13023
13023
  addToSelected: j,
13024
- removeFromSelected: U,
13024
+ removeFromSelected: q,
13025
13025
  toggleSelectedDate: te,
13026
13026
  handleRangeHover: We,
13027
13027
  isExcluded: Be,
@@ -13193,7 +13193,7 @@ const eg = ({ state: n }) => {
13193
13193
  /* @__PURE__ */ c("th", { children: /* @__PURE__ */ c("div", { className: "pkt-calendar__day-name", "aria-label": e.days[M], children: e.daysShort[M] }) }, `day-${M}`)
13194
13194
  );
13195
13195
  return /* @__PURE__ */ c("tr", { className: "pkt-cal-week-row", children: z });
13196
- }, q = (z, M) => {
13196
+ }, U = (z, M) => {
13197
13197
  const G = Qf(z, M, B), { currentDate: V, currentDateISO: ee, isSelected: ce, isDisabled: se, ariaLabel: ve, tabindex: $e } = G;
13198
13198
  m.current.push({ currentDateISO: ee, isDisabled: se, tabindex: $e });
13199
13199
  const ge = Jf(G, A), ue = Zf(G, A);
@@ -13234,7 +13234,7 @@ const eg = ({ state: n }) => {
13234
13234
  for (let ve = 0; ve < wi; ve++) {
13235
13235
  const $e = Uf(ce, ve, G, M);
13236
13236
  if ($e === "current-month")
13237
- se.push(q(G, z)), G++;
13237
+ se.push(U(G, z)), G++;
13238
13238
  else {
13239
13239
  const ge = qf($e, ve, G, M);
13240
13240
  se.push(X(ge, `${$e}-${ce}-${ve}`)), $e === "next-month" && G++;
@@ -13319,8 +13319,8 @@ const os = Le(
13319
13319
  g(!0), l && l();
13320
13320
  }, [l]), N = ne(null), [S, C] = de("");
13321
13321
  me(() => {
13322
- var q, X;
13323
- C(((X = (q = N.current) == null ? void 0 : q.textContent) == null ? void 0 : X.trim()) ?? "");
13322
+ var U, X;
13323
+ C(((X = (U = N.current) == null ? void 0 : U.textContent) == null ? void 0 : X.trim()) ?? "");
13324
13324
  }, [n]);
13325
13325
  const B = Me(() => {
13326
13326
  if (i && !o) return S && `Klikk for å fjerne ${S}` || f;
@@ -13390,7 +13390,7 @@ const tg = Le(
13390
13390
  [`pkt-card--${a}`]: a,
13391
13391
  [`pkt-card--padding-${p}`]: p,
13392
13392
  "pkt-card--border-on-hover": i
13393
- }), W = (t == null ? void 0 : t.trim()) || (o ? `${o} lenkekort` : "lenkekort"), q = (t == null ? void 0 : t.trim()) || o || "kort", X = `h${l}`, xe = () => d != null && d.src ? /* @__PURE__ */ c("div", { className: be("pkt-card__image", `pkt-card__image-${f}`), children: /* @__PURE__ */ c("img", { src: d.src, alt: d.alt || "" }) }) : null, z = () => S.length === 0 ? null : /* @__PURE__ */ c(
13393
+ }), W = (t == null ? void 0 : t.trim()) || (o ? `${o} lenkekort` : "lenkekort"), U = (t == null ? void 0 : t.trim()) || o || "kort", X = `h${l}`, xe = () => d != null && d.src ? /* @__PURE__ */ c("div", { className: be("pkt-card__image", `pkt-card__image-${f}`), children: /* @__PURE__ */ c("img", { src: d.src, alt: d.alt || "" }) }) : null, z = () => S.length === 0 ? null : /* @__PURE__ */ c(
13394
13394
  "div",
13395
13395
  {
13396
13396
  className: be("pkt-card__tags", `pkt-card__tags-${N}`),
@@ -13426,7 +13426,7 @@ const tg = Le(
13426
13426
  s && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-lead", children: s }),
13427
13427
  r && /* @__PURE__ */ c("span", { className: "pkt-card__metadata-trail", children: r })
13428
13428
  ] });
13429
- return /* @__PURE__ */ c("div", { ref: B, className: be("pkt-card-root", e), style: { display: "block", width: "100%" }, children: /* @__PURE__ */ x("article", { ...C, className: A, "aria-label": m ? W : q, children: [
13429
+ return /* @__PURE__ */ c("div", { ref: B, className: be("pkt-card-root", e), style: { display: "block", width: "100%" }, children: /* @__PURE__ */ x("article", { ...C, className: A, "aria-label": m ? W : U, children: [
13430
13430
  xe(),
13431
13431
  /* @__PURE__ */ x("div", { className: "pkt-card__wrapper", children: [
13432
13432
  N === "top" && z(),
@@ -13467,7 +13467,7 @@ const ng = Le(
13467
13467
  }, [p]), me(() => {
13468
13468
  typeof B == "function" ? B(A.current) : B && (B.current = A.current);
13469
13469
  }, [B]);
13470
- const W = [a, "pkt-input-check"].filter(Boolean).join(" "), q = [
13470
+ const W = [a, "pkt-input-check"].filter(Boolean).join(" "), U = [
13471
13471
  "pkt-input-check__input-label",
13472
13472
  t ? "pkt-input-check__input-label--disabled" : "",
13473
13473
  `pkt-input-check__input-label--${d}`,
@@ -13482,7 +13482,7 @@ const ng = Le(
13482
13482
  $ && /* @__PURE__ */ c("span", { className: xe + " pkt-tag--beige", children: N })
13483
13483
  ] });
13484
13484
  return /* @__PURE__ */ c("div", { className: W, children: /* @__PURE__ */ x("div", { className: X, children: [
13485
- d === "left" && /* @__PURE__ */ x("label", { className: q, htmlFor: n, children: [
13485
+ d === "left" && /* @__PURE__ */ x("label", { className: U, htmlFor: n, children: [
13486
13486
  s,
13487
13487
  " ",
13488
13488
  z(),
@@ -13501,7 +13501,7 @@ const ng = Le(
13501
13501
  ...C
13502
13502
  }
13503
13503
  ),
13504
- d === "right" && /* @__PURE__ */ x("label", { className: q, htmlFor: n, children: [
13504
+ d === "right" && /* @__PURE__ */ x("label", { className: U, htmlFor: n, children: [
13505
13505
  s,
13506
13506
  " ",
13507
13507
  z(),
@@ -13535,7 +13535,7 @@ const Kn = Le(
13535
13535
  children: B,
13536
13536
  className: A = "",
13537
13537
  hasFieldset: W = !1,
13538
- role: q = "group",
13538
+ role: U = "group",
13539
13539
  counterPosition: X = "bottom"
13540
13540
  }, xe) => {
13541
13541
  const [z, M] = de(!1), G = S || (t ? `${n}-helptext` : void 0), V = !!r, ee = V && X === "top", ce = V && X === "bottom", se = () => M((I) => !I), ve = [
@@ -13596,7 +13596,7 @@ const Kn = Le(
13596
13596
  ce && /* @__PURE__ */ c(ge, {}),
13597
13597
  v && g && /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ c(ca, { skin: "error", "aria-live": "assertive", role: "alert", id: `${n}-error`, compact: !0, children: g }) })
13598
13598
  ] });
13599
- return /* @__PURE__ */ c("div", { className: ve, ref: xe, role: q, children: W ? /* @__PURE__ */ c("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": G, children: J }) : /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__fieldset", children: J }) });
13599
+ return /* @__PURE__ */ c("div", { className: ve, ref: xe, role: U, children: W ? /* @__PURE__ */ c("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": G, children: J }) : /* @__PURE__ */ c("div", { className: "pkt-inputwrapper__fieldset", children: J }) });
13600
13600
  }
13601
13601
  );
13602
13602
  Kn.displayName = "PktInputWrapper";
@@ -13769,7 +13769,7 @@ const Cn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13769
13769
  handleInputChange: B,
13770
13770
  handleInputKeydown: A,
13771
13771
  handleInputFocus: W,
13772
- handleInputBlur: q,
13772
+ handleInputBlur: U,
13773
13773
  handleInputClick: X,
13774
13774
  handlePlaceholderClick: xe,
13775
13775
  handleSelectOnlyKeydown: z,
@@ -13806,7 +13806,7 @@ const Cn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13806
13806
  onChange: B,
13807
13807
  onKeyDown: A,
13808
13808
  onFocus: W,
13809
- onBlur: q,
13809
+ onBlur: U,
13810
13810
  placeholder: !i.length || o && f === "outside" ? m : void 0,
13811
13811
  autoComplete: "off",
13812
13812
  role: "combobox",
@@ -13854,13 +13854,13 @@ const Cn = (n, e) => e && (n.find((t) => t.value === e) || n.find((t) => t.label
13854
13854
  handleSearchKeydown: B,
13855
13855
  handleNewOptionClick: A,
13856
13856
  handleNewOptionKeydown: W,
13857
- listboxRef: q
13857
+ listboxRef: U
13858
13858
  } = n, X = r.filter((V) => V.selected).length, xe = a && X > 0 && d != null && d > 0, z = m && p && !l, M = !!v, G = ["pkt-listbox", s && "pkt-listbox__open", "pkt-txt-16-light"].filter(Boolean).join(" ");
13859
13859
  return /* @__PURE__ */ x(Je, { children: [
13860
13860
  /* @__PURE__ */ x(
13861
13861
  "div",
13862
13862
  {
13863
- ref: q,
13863
+ ref: U,
13864
13864
  id: e,
13865
13865
  className: G,
13866
13866
  role: r.length > 0 ? "listbox" : void 0,
@@ -14002,7 +14002,7 @@ function mg(n, e) {
14002
14002
  fullwidth: B = !1,
14003
14003
  hasError: A = !1,
14004
14004
  errorMessage: W,
14005
- helptext: q,
14005
+ helptext: U,
14006
14006
  helptextDropdown: X,
14007
14007
  helptextDropdownButton: xe,
14008
14008
  optionalTag: z = !1,
@@ -14042,7 +14042,7 @@ function mg(n, e) {
14042
14042
  ...le
14043
14043
  ];
14044
14044
  return pg(y, R);
14045
- }, [le, We, R]), [U, te] = de(!1), [ke, Z] = de(""), [ze, qe] = de(""), [b, h] = de(""), [_, T] = de(null), [Y, K] = de(!1), [we, ht] = de(!1), [ct, Qe] = de(-1), zt = ne(!1), Kt = Vi(R.length, d ?? null), Pe = l && d != null, Vt = Me(() => ke ? f ? No(j, ke).filtered : ig(j, ke) : j, [j, ke, f]), tt = Me(
14045
+ }, [le, We, R]), [q, te] = de(!1), [ke, Z] = de(""), [ze, qe] = de(""), [b, h] = de(""), [_, T] = de(null), [Y, K] = de(!1), [we, ht] = de(!1), [ct, Qe] = de(-1), zt = ne(!1), Kt = Vi(R.length, d ?? null), Pe = l && d != null, Vt = Me(() => ke ? f ? No(j, ke).filtered : ig(j, ke) : j, [j, ke, f]), tt = Me(
14046
14046
  () => {
14047
14047
  var y;
14048
14048
  return (y = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : y.set;
@@ -14060,10 +14060,10 @@ function mg(n, e) {
14060
14060
  me(() => {
14061
14061
  Ve.current && (Ve.current.value = mt);
14062
14062
  }, [mt]), me(() => {
14063
- if (U || l || !I.current) return;
14063
+ if (q || l || !I.current) return;
14064
14064
  const y = R[0] ? Hi(R[0], j, v) : "";
14065
14065
  I.current.value !== y && (I.current.value = y);
14066
- }, [R, j, v, l, U]);
14066
+ }, [R, j, v, l, q]);
14067
14067
  const It = O(
14068
14068
  (y, L = !0) => {
14069
14069
  he || Be(y), L && (ge == null || ge(y), yt(y));
@@ -14214,7 +14214,7 @@ function mg(n, e) {
14214
14214
  return;
14215
14215
  }
14216
14216
  const L = ag(y.key, y.shiftKey, l);
14217
- if (L && !(y.key === "Tab" && !U)) {
14217
+ if (L && !(y.key === "Tab" && !q)) {
14218
14218
  if (L === "focusListbox" && y.key === "Tab" && !((Xn = oe.current) == null ? void 0 : Xn.querySelector(
14219
14219
  '[role="option"]:not([data-disabled]), [data-type="new-option"]'
14220
14220
  ))) {
@@ -14232,7 +14232,7 @@ function mg(n, e) {
14232
14232
  break;
14233
14233
  }
14234
14234
  case "focusListbox":
14235
- oe.current && (U || te(!0), Ui(oe.current, {
14235
+ oe.current && (q || te(!0), Ui(oe.current, {
14236
14236
  disabled: S,
14237
14237
  allowUserInput: p,
14238
14238
  customUserInput: _,
@@ -14253,7 +14253,7 @@ function mg(n, e) {
14253
14253
  p,
14254
14254
  _,
14255
14255
  m,
14256
- U,
14256
+ q,
14257
14257
  ut,
14258
14258
  Ht,
14259
14259
  Te
@@ -14270,11 +14270,11 @@ function mg(n, e) {
14270
14270
  K(!1), ht(!1);
14271
14271
  }, []), E = O(
14272
14272
  (y) => {
14273
- if (S || !U) return;
14273
+ if (S || !q) return;
14274
14274
  const L = y.relatedTarget, ae = Xe.current;
14275
14275
  ae && L && ae.contains(L) || Pt();
14276
14276
  },
14277
- [S, U, Pt]
14277
+ [S, q, Pt]
14278
14278
  ), H = O(
14279
14279
  (y) => {
14280
14280
  var L;
@@ -14286,7 +14286,7 @@ function mg(n, e) {
14286
14286
  (L = I.current) == null || L.focus();
14287
14287
  else {
14288
14288
  y.stopPropagation(), y.preventDefault();
14289
- const ae = !U;
14289
+ const ae = !q;
14290
14290
  te(ae), ae && oe.current && Ui(oe.current, {
14291
14291
  disabled: S,
14292
14292
  allowUserInput: p,
@@ -14295,7 +14295,7 @@ function mg(n, e) {
14295
14295
  });
14296
14296
  }
14297
14297
  },
14298
- [S, J, U, p, _, m]
14298
+ [S, J, q, p, _, m]
14299
14299
  ), re = O(
14300
14300
  (y) => {
14301
14301
  S || (y.stopPropagation(), J && I.current ? (I.current.focus(), K(!0)) : te((L) => !L));
@@ -14309,7 +14309,7 @@ function mg(n, e) {
14309
14309
  case " ":
14310
14310
  case "ArrowDown":
14311
14311
  case "ArrowUp":
14312
- y.preventDefault(), U ? te(!1) : (te(!0), oe.current && window.setTimeout(() => {
14312
+ y.preventDefault(), q ? te(!1) : (te(!0), oe.current && window.setTimeout(() => {
14313
14313
  oe.current && Ui(oe.current, {
14314
14314
  disabled: S,
14315
14315
  allowUserInput: p && !Kt,
@@ -14319,11 +14319,11 @@ function mg(n, e) {
14319
14319
  }, 0));
14320
14320
  break;
14321
14321
  case "Escape":
14322
- U && (y.preventDefault(), te(!1));
14322
+ q && (y.preventDefault(), te(!1));
14323
14323
  break;
14324
14324
  case "Home":
14325
14325
  case "End":
14326
- y.preventDefault(), U || te(!0), oe.current && window.setTimeout(() => {
14326
+ y.preventDefault(), q || te(!0), oe.current && window.setTimeout(() => {
14327
14327
  oe.current && Ui(oe.current, {
14328
14328
  disabled: S,
14329
14329
  allowUserInput: p && !Kt,
@@ -14345,7 +14345,7 @@ function mg(n, e) {
14345
14345
  break;
14346
14346
  }
14347
14347
  },
14348
- [S, U, p, Kt, _, m, l, R, ut]
14348
+ [S, q, p, Kt, _, m, l, R, ut]
14349
14349
  ), P = O(
14350
14350
  (y) => {
14351
14351
  Ht(y);
@@ -14456,7 +14456,7 @@ function mg(n, e) {
14456
14456
  [Ht, m, Te]
14457
14457
  );
14458
14458
  return me(() => {
14459
- if (!U) return;
14459
+ if (!q) return;
14460
14460
  const y = (L) => {
14461
14461
  const ae = L.target;
14462
14462
  Xe.current && !Xe.current.contains(ae) && Pt();
@@ -14464,7 +14464,7 @@ function mg(n, e) {
14464
14464
  return document.addEventListener("click", y, !0), () => {
14465
14465
  document.removeEventListener("click", y, !0);
14466
14466
  };
14467
- }, [U, Pt]), me(() => {
14467
+ }, [q, Pt]), me(() => {
14468
14468
  var ae;
14469
14469
  const y = (ae = Xe.current) == null ? void 0 : ae.closest("form");
14470
14470
  if (!y) return;
@@ -14511,7 +14511,7 @@ function mg(n, e) {
14511
14511
  options: j,
14512
14512
  filteredOptions: Vt,
14513
14513
  // UI state
14514
- isOpen: U,
14514
+ isOpen: q,
14515
14515
  userInfoMessage: b,
14516
14516
  addValueText: _,
14517
14517
  maxIsReached: Kt,
@@ -14534,7 +14534,7 @@ function mg(n, e) {
14534
14534
  fullwidth: B,
14535
14535
  hasError: A,
14536
14536
  errorMessage: W,
14537
- helptext: q,
14537
+ helptext: U,
14538
14538
  helptextDropdown: X,
14539
14539
  helptextDropdownButton: xe,
14540
14540
  optionalTag: z,
@@ -14765,7 +14765,7 @@ const Hl = () => {
14765
14765
  isIOSDevice: B,
14766
14766
  strings: A,
14767
14767
  inputClasses: W,
14768
- buttonClasses: q,
14768
+ buttonClasses: U,
14769
14769
  rangeLabelClasses: X,
14770
14770
  datepickerInputsClasses: xe,
14771
14771
  isInputDisabled: z,
@@ -14793,7 +14793,7 @@ const Hl = () => {
14793
14793
  "button",
14794
14794
  {
14795
14795
  ref: V,
14796
- className: q,
14796
+ className: U,
14797
14797
  type: "button",
14798
14798
  onClick: ee,
14799
14799
  disabled: l,
@@ -14953,7 +14953,7 @@ function Ng(n, e) {
14953
14953
  fullwidth: B = !1,
14954
14954
  hasFieldset: A = !1,
14955
14955
  inline: W = !1,
14956
- helptext: q,
14956
+ helptext: U,
14957
14957
  helptextDropdown: X,
14958
14958
  helptextDropdownButton: xe,
14959
14959
  hasError: z = !1,
@@ -14984,7 +14984,7 @@ function Ng(n, e) {
14984
14984
  me(() => {
14985
14985
  S !== void 0 && Fe(S);
14986
14986
  }, [S]);
14987
- const j = ne(null), U = ne(null), te = ne(null), ke = ne(null), Z = ne(null), ze = Me(() => gg(), []), qe = Me(() => Hl(), []), b = Me(
14987
+ const j = ne(null), q = ne(null), te = ne(null), ke = ne(null), Z = ne(null), ze = Me(() => gg(), []), qe = Me(() => Hl(), []), b = Me(
14988
14988
  () => $e ?? (d ? Tg : Cg),
14989
14989
  [$e, d]
14990
14990
  ), h = typeof J == "string" ? J : J !== void 0 ? String(J) : void 0, _ = typeof I == "string" ? I : I !== void 0 ? String(I) : void 0, T = Me(() => {
@@ -15128,7 +15128,7 @@ function Ng(n, e) {
15128
15128
  () => Zt(j.current),
15129
15129
  () => {
15130
15130
  var P;
15131
- return (P = U.current) == null ? void 0 : P.focus();
15131
+ return (P = q.current) == null ? void 0 : P.focus();
15132
15132
  },
15133
15133
  () => {
15134
15134
  var P;
@@ -15142,11 +15142,11 @@ function Ng(n, e) {
15142
15142
  qi(
15143
15143
  D.nativeEvent,
15144
15144
  () => yt(),
15145
- () => Zt(U.current),
15145
+ () => Zt(q.current),
15146
15146
  void 0,
15147
15147
  () => {
15148
15148
  var P;
15149
- return (P = U.current) == null ? void 0 : P.blur();
15149
+ return (P = q.current) == null ? void 0 : P.blur();
15150
15150
  }
15151
15151
  );
15152
15152
  },
@@ -15221,7 +15221,7 @@ function Ng(n, e) {
15221
15221
  fullwidth: B,
15222
15222
  hasFieldset: A,
15223
15223
  inline: W,
15224
- helptext: q,
15224
+ helptext: U,
15225
15225
  helptextDropdown: X,
15226
15226
  helptextDropdownButton: xe,
15227
15227
  hasError: z,
@@ -15247,7 +15247,7 @@ function Ng(n, e) {
15247
15247
  isInputDisabled: ct,
15248
15248
  hasCounter: Qe,
15249
15249
  inputRef: j,
15250
- inputRefTo: U,
15250
+ inputRefTo: q,
15251
15251
  changeInputRef: te,
15252
15252
  btnRef: ke,
15253
15253
  wrapperRef: Z,
@@ -15414,7 +15414,7 @@ const pa = or({}), Rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Lg
15414
15414
  B(Array.from(G));
15415
15415
  }, W = (M) => {
15416
15416
  B(M);
15417
- }, q = (M) => {
15417
+ }, U = (M) => {
15418
15418
  if (M.preventDefault(), N(!1), l) return;
15419
15419
  const G = M.dataTransfer.files, V = Array.from(G);
15420
15420
  W(V);
@@ -15432,7 +15432,7 @@ const pa = or({}), Rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Lg
15432
15432
  return /* @__PURE__ */ x(
15433
15433
  "div",
15434
15434
  {
15435
- onDrop: q,
15435
+ onDrop: U,
15436
15436
  onDragOver: X,
15437
15437
  onDragLeave: xe,
15438
15438
  onClick: z,
@@ -15513,7 +15513,7 @@ const pa = or({}), Rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Lg
15513
15513
  requiredText: B,
15514
15514
  tagText: A = null,
15515
15515
  placeholder: W,
15516
- rows: q,
15516
+ rows: U,
15517
15517
  useWrapper: X = !0,
15518
15518
  onChange: xe,
15519
15519
  value: z,
@@ -15562,7 +15562,7 @@ const pa = or({}), Rg = ".PDF, .JPEG, .JPG, .PNG, .HEIC, .DOC, .DOCX, .ODT", Lg
15562
15562
  id: ge,
15563
15563
  placeholder: W,
15564
15564
  disabled: a,
15565
- rows: q,
15565
+ rows: U,
15566
15566
  "aria-labelledby": pe,
15567
15567
  "aria-invalid": l,
15568
15568
  "aria-errormessage": `${n}-error`,
@@ -15835,23 +15835,23 @@ const Fg = Symbol("comment"), Vg = (n) => {
15835
15835
  ...v
15836
15836
  }, g) => {
15837
15837
  const $ = ne(null), N = g || $, S = O(() => {
15838
- var q, X;
15839
- (q = N.current) != null && q.open && ((X = N.current) == null || X.close(), p == null || p());
15838
+ var U, X;
15839
+ (U = N.current) != null && U.open && ((X = N.current) == null || X.close(), p == null || p());
15840
15840
  }, [N, p]);
15841
15841
  me(() => {
15842
- const q = N.current;
15843
- if (!q) return;
15842
+ const U = N.current;
15843
+ if (!U) return;
15844
15844
  const X = new MutationObserver(() => {
15845
- q.open ? document.body.classList.add("pkt-modal--open") : document.body.classList.remove("pkt-modal--open");
15845
+ U.open ? document.body.classList.add("pkt-modal--open") : document.body.classList.remove("pkt-modal--open");
15846
15846
  });
15847
- return X.observe(q, { attributes: !0, attributeFilter: ["open"] }), () => X.disconnect();
15847
+ return X.observe(U, { attributes: !0, attributeFilter: ["open"] }), () => X.disconnect();
15848
15848
  }, [N]), me(() => {
15849
- var q, X, xe, z;
15850
- t ? (q = N.current) != null && q.open || (X = N.current) == null || X.showModal() : (xe = N.current) != null && xe.open && ((z = N.current) == null || z.close());
15849
+ var U, X, xe, z;
15850
+ t ? (U = N.current) != null && U.open || (X = N.current) == null || X.showModal() : (xe = N.current) != null && xe.open && ((z = N.current) == null || z.close());
15851
15851
  }, [t, N]);
15852
15852
  const C = O(
15853
- (q) => {
15854
- r && q.target === N.current && S();
15853
+ (U) => {
15854
+ r && U.target === N.current && S();
15855
15855
  },
15856
15856
  [r, N, S]
15857
15857
  ), B = O(() => {
@@ -16464,17 +16464,17 @@ const ub = (n) => {
16464
16464
  hasError: B = !1,
16465
16465
  disabled: A = !1,
16466
16466
  label: W,
16467
- helptext: q,
16467
+ helptext: U,
16468
16468
  optionalTag: X,
16469
16469
  requiredTag: xe,
16470
16470
  enableImagePreview: z = !1,
16471
16471
  ...M
16472
16472
  }, G) => {
16473
16473
  const V = "transfers" in M ? M.transfers : void 0, [ee, ce] = de(null), se = B || !!ee, ve = C || ee, $e = $ ? nb($) : void 0, ge = O(
16474
- (U) => {
16474
+ (q) => {
16475
16475
  var te;
16476
16476
  if (v && v.length > 0) {
16477
- const ke = ((te = U.name.split(".").pop()) == null ? void 0 : te.toLowerCase()) || "", Z = U.type.toLowerCase();
16477
+ const ke = ((te = q.name.split(".").pop()) == null ? void 0 : te.toLowerCase()) || "", Z = q.type.toLowerCase();
16478
16478
  if (!v.some((qe) => {
16479
16479
  const b = qe.toLowerCase().replace(/^\./, "");
16480
16480
  if (b.includes("/")) {
@@ -16490,11 +16490,11 @@ const ub = (n) => {
16490
16490
  return (g == null ? void 0 : g.replace("{formats}", qe)) || b;
16491
16491
  }
16492
16492
  }
16493
- if ($e && U.size > $e) {
16493
+ if ($e && q.size > $e) {
16494
16494
  const ke = fr($e), Z = `Filen er for stor. Maks størrelse er ${ke}.`;
16495
16495
  return (N == null ? void 0 : N.replace("{maxSize}", ke)) || Z;
16496
16496
  }
16497
- return S ? S(U) : null;
16497
+ return S ? S(q) : null;
16498
16498
  },
16499
16499
  [v, g, $e, N, S]
16500
16500
  );
@@ -16505,13 +16505,13 @@ const ub = (n) => {
16505
16505
  );
16506
16506
  const pe = n !== void 0 ? n : e || [], et = typeof m == "string" ? Ao[m] : m, J = m === "thumbnail", I = typeof M.accept == "string" ? M.accept.trim() : void 0, Ve = Me(() => {
16507
16507
  if (!(!v || v.length === 0))
16508
- return v.map((U) => U.trim()).filter(Boolean).map((U) => {
16509
- const te = U.toLowerCase();
16508
+ return v.map((q) => q.trim()).filter(Boolean).map((q) => {
16509
+ const te = q.toLowerCase();
16510
16510
  return te.includes("/") || te.startsWith(".") ? te : `.${te}`;
16511
16511
  }).join(", ");
16512
16512
  }, [v]), Ue = I || Ve, oe = a && !J, Xe = r && !J, Te = O(
16513
- (U) => {
16514
- for (const ke of U) {
16513
+ (q) => {
16514
+ for (const ke of q) {
16515
16515
  const Z = ge(ke.file);
16516
16516
  if (Z) {
16517
16517
  ce(Z);
@@ -16519,23 +16519,23 @@ const ub = (n) => {
16519
16519
  }
16520
16520
  }
16521
16521
  ce(null);
16522
- const te = s ? [...pe, ...U] : [U[0]];
16523
- l && l(te), i === "custom" && d && U.forEach((ke) => {
16522
+ const te = s ? [...pe, ...q] : [q[0]];
16523
+ l && l(te), i === "custom" && d && q.forEach((ke) => {
16524
16524
  d == null || d(ke);
16525
16525
  });
16526
16526
  },
16527
16527
  [l, pe, s, i, d, ge]
16528
16528
  ), _e = O(
16529
- (U, te) => {
16530
- const ke = pe.map((Z) => Z.fileId === U ? { ...Z, ...te } : Z);
16529
+ (q, te) => {
16530
+ const ke = pe.map((Z) => Z.fileId === q ? { ...Z, ...te } : Z);
16531
16531
  l && l(ke);
16532
16532
  },
16533
16533
  [l, pe]
16534
16534
  ), le = O(
16535
- (U) => {
16535
+ (q) => {
16536
16536
  var ke;
16537
- const te = pe.filter((Z) => Z.fileId !== U);
16538
- l && l(te), "onTransferCancelled" in M && M.onTransferCancelled && ((ke = M.onTransferCancelled) == null || ke.call(M, U));
16537
+ const te = pe.filter((Z) => Z.fileId !== q);
16538
+ l && l(te), "onTransferCancelled" in M && M.onTransferCancelled && ((ke = M.onTransferCancelled) == null || ke.call(M, q));
16539
16539
  },
16540
16540
  [l, pe, M]
16541
16541
  ), { fileAttributes: he } = Qg(pe, _e), Ie = Me(
@@ -16545,10 +16545,10 @@ const ub = (n) => {
16545
16545
  enabled: oe
16546
16546
  },
16547
16547
  {
16548
- op: (U) => jg(U),
16548
+ op: (q) => jg(q),
16549
16549
  enabled: Xe
16550
16550
  }
16551
- ].filter(({ enabled: U }) => U).map(({ op: U }) => U).concat(...f),
16551
+ ].filter(({ enabled: q }) => q).map(({ op: q }) => q).concat(...f),
16552
16552
  [oe, Xe]
16553
16553
  ), Be = Me(
16554
16554
  () => ({
@@ -16557,15 +16557,15 @@ const ub = (n) => {
16557
16557
  }),
16558
16558
  [t]
16559
16559
  ), { totalCount: Oe, uploadedCount: R, failedCount: We } = Me(() => {
16560
- const U = pe.length;
16560
+ const q = pe.length;
16561
16561
  if (!V)
16562
- return { totalCount: U, uploadedCount: 0, failedCount: 0 };
16562
+ return { totalCount: q, uploadedCount: 0, failedCount: 0 };
16563
16563
  let te = 0, ke = 0;
16564
16564
  for (const Z of pe) {
16565
16565
  const ze = V.find((qe) => qe.fileId === Z.fileId);
16566
16566
  (ze == null ? void 0 : ze.progress) === "done" && te++, (ze == null ? void 0 : ze.progress) === "error" && ke++;
16567
16567
  }
16568
- return { totalCount: U, uploadedCount: te, failedCount: ke };
16568
+ return { totalCount: q, uploadedCount: te, failedCount: ke };
16569
16569
  }, [pe, V]), Fe = Oe === 1 ? "fil" : "filer", j = /* @__PURE__ */ c(
16570
16570
  "div",
16571
16571
  {
@@ -16606,7 +16606,7 @@ const ub = (n) => {
16606
16606
  uploadStrategy: i,
16607
16607
  ItemRenderer: et,
16608
16608
  enableImagePreview: J && z,
16609
- queueItemOperations: Ie.map((U) => U(he)).concat(zg(le))
16609
+ queueItemOperations: Ie.map((q) => q(he)).concat(zg(le))
16610
16610
  }
16611
16611
  )
16612
16612
  ] })
@@ -16617,7 +16617,7 @@ const ub = (n) => {
16617
16617
  {
16618
16618
  forId: t,
16619
16619
  label: W,
16620
- helptext: q,
16620
+ helptext: U,
16621
16621
  disabled: A,
16622
16622
  hasError: se,
16623
16623
  optionalTag: X,
@@ -16987,7 +16987,7 @@ const Jr = Le(
16987
16987
  optionalText: B,
16988
16988
  requiredTag: A = !1,
16989
16989
  requiredText: W,
16990
- tagText: q = null,
16990
+ tagText: U = null,
16991
16991
  placeholder: X,
16992
16992
  prefix: xe,
16993
16993
  suffix: z,
@@ -17032,7 +17032,7 @@ const Jr = Le(
17032
17032
  optionalText: B,
17033
17033
  requiredTag: A,
17034
17034
  requiredText: W,
17035
- tagText: q,
17035
+ tagText: U,
17036
17036
  useWrapper: G,
17037
17037
  counter: i,
17038
17038
  counterCurrent: le,
@@ -17111,7 +17111,7 @@ const Yl = Le(
17111
17111
  userMenu: B,
17112
17112
  userMenuFooter: A,
17113
17113
  userOptions: W,
17114
- canChangeRepresentation: q = !1,
17114
+ canChangeRepresentation: U = !1,
17115
17115
  changeRepresentation: X,
17116
17116
  hideLogo: xe = !1,
17117
17117
  logoLink: z,
@@ -17146,7 +17146,7 @@ const Yl = Le(
17146
17146
  me(() => {
17147
17147
  l !== void 0 && pe(l);
17148
17148
  }, [l]);
17149
- const [et, J] = de(!1), [I, Ve] = de(0), [Ue, oe] = de(!1), [Xe, Te] = de(!1), _e = ne(null), le = ne(null), he = ne(null), Ie = ne(null), Be = ne(null), Oe = ne(null), R = ne(null), We = ne(!1), Fe = yb(_e), j = Fe < n, U = Fe < e, te = O(
17149
+ const [et, J] = de(!1), [I, Ve] = de(0), [Ue, oe] = de(!1), [Xe, Te] = de(!1), _e = ne(null), le = ne(null), he = ne(null), Ie = ne(null), Be = ne(null), Oe = ne(null), R = ne(null), We = ne(!1), Fe = yb(_e), j = Fe < n, q = Fe < e, te = O(
17150
17150
  (h) => {
17151
17151
  _e.current = h, typeof se == "function" ? se(h) : se && (se.current = h);
17152
17152
  },
@@ -17201,11 +17201,11 @@ const Yl = Le(
17201
17201
  const ze = O(
17202
17202
  (h) => {
17203
17203
  const _ = h === "slot" ? he : Ie, T = h === "slot" ? Be : Oe;
17204
- if (!_.current || !T.current || !U || j) return;
17204
+ if (!_.current || !T.current || !q || j) return;
17205
17205
  const Y = _.current.getBoundingClientRect(), K = T.current.offsetWidth, we = Y.left + K > window.innerWidth;
17206
17206
  h === "slot" ? oe(we) : Te(we);
17207
17207
  },
17208
- [U, j]
17208
+ [q, j]
17209
17209
  ), qe = O(
17210
17210
  (h) => {
17211
17211
  ue !== "none" ? pe("none") : (R.current = document.activeElement, pe(h));
@@ -17224,7 +17224,7 @@ const Yl = Le(
17224
17224
  "pkt-header-service",
17225
17225
  i && "pkt-header-service--compact",
17226
17226
  j && "pkt-header-service--mobile",
17227
- U && "pkt-header-service--tablet",
17227
+ q && "pkt-header-service--tablet",
17228
17228
  ve && "pkt-header-service--fixed",
17229
17229
  $e && "pkt-header-service--scroll-to-hide",
17230
17230
  et && "pkt-header-service--hidden",
@@ -17275,7 +17275,7 @@ const Yl = Le(
17275
17275
  ]
17276
17276
  }
17277
17277
  ),
17278
- t || d || U && o && (a === "header" || a === "both") ? /* @__PURE__ */ x("div", { className: "pkt-header-service__content", children: [
17278
+ t || d || q && o && (a === "header" || a === "both") ? /* @__PURE__ */ x("div", { className: "pkt-header-service__content", children: [
17279
17279
  /* @__PURE__ */ x(
17280
17280
  "div",
17281
17281
  {
@@ -17283,7 +17283,7 @@ const Yl = Le(
17283
17283
  onBlur: (h) => ke(h, "slot"),
17284
17284
  ref: he,
17285
17285
  children: [
17286
- U && t && /* @__PURE__ */ c(
17286
+ q && t && /* @__PURE__ */ c(
17287
17287
  Nt,
17288
17288
  {
17289
17289
  skin: "secondary",
@@ -17303,8 +17303,8 @@ const Yl = Le(
17303
17303
  {
17304
17304
  className: be("pkt-header-service__slot-content", Ue && "align-right"),
17305
17305
  id: "mobile-slot-menu",
17306
- role: U ? "menu" : void 0,
17307
- "aria-label": U ? "Meny" : void 0,
17306
+ role: q ? "menu" : void 0,
17307
+ "aria-label": q ? "Meny" : void 0,
17308
17308
  ref: Be,
17309
17309
  children: /* @__PURE__ */ c("div", { className: "pkt-contents", children: t })
17310
17310
  }
@@ -17312,7 +17312,7 @@ const Yl = Le(
17312
17312
  ]
17313
17313
  }
17314
17314
  ),
17315
- d && /* @__PURE__ */ c(Je, { children: U ? /* @__PURE__ */ x(
17315
+ d && /* @__PURE__ */ c(Je, { children: q ? /* @__PURE__ */ x(
17316
17316
  "div",
17317
17317
  {
17318
17318
  className: be("pkt-header-service__search-container", ue === "search" && "is-open"),
@@ -17381,7 +17381,7 @@ const Yl = Le(
17381
17381
  }
17382
17382
  }
17383
17383
  ) }),
17384
- U && o && (a === "header" || a === "both") && /* @__PURE__ */ c(
17384
+ j && o && (a === "header" || a === "both") && /* @__PURE__ */ c(
17385
17385
  Nt,
17386
17386
  {
17387
17387
  skin: "secondary",
@@ -17435,7 +17435,7 @@ const Yl = Le(
17435
17435
  formattedLastLoggedIn: ge,
17436
17436
  representing: g,
17437
17437
  userMenu: B,
17438
- canChangeRepresentation: q,
17438
+ canChangeRepresentation: U,
17439
17439
  changeRepresentation: X,
17440
17440
  logoutOnClick: a === "userMenu" || a === "both" ? o : void 0
17441
17441
  }
@@ -17460,7 +17460,7 @@ const Yl = Le(
17460
17460
  i && "pkt-header-service-spacer--compact",
17461
17461
  C && "pkt-header-service-spacer--has-user",
17462
17462
  j && "pkt-header-service-spacer--mobile",
17463
- U && "pkt-header-service-spacer--tablet"
17463
+ q && "pkt-header-service-spacer--tablet"
17464
17464
  )
17465
17465
  }
17466
17466
  )
@@ -17596,7 +17596,7 @@ const Io = () => ("00000000000000000" + (Math.random() * 18446744073709552e3).to
17596
17596
  me(() => {
17597
17597
  B.current && W(B.current.getBoundingClientRect().width || 0);
17598
17598
  }, [m]);
17599
- const q = p - v, X = Math.round(l === "fraction" ? m / q * 100 : (m - v) / q * 100), xe = `${m} av ${q}`, z = l === "fraction" && !s ? `${m} av ${p - v}` : s || void 0, M = n ? void 0 : e || `${C}-title`;
17599
+ const U = p - v, X = Math.round(l === "fraction" ? m / U * 100 : (m - v) / U * 100), xe = `${m} av ${U}`, z = l === "fraction" && !s ? `${m} av ${p - v}` : s || void 0, M = n ? void 0 : e || `${C}-title`;
17600
17600
  return /* @__PURE__ */ c(
17601
17601
  "div",
17602
17602
  {
@@ -17687,7 +17687,7 @@ const Pb = Le(
17687
17687
  ].filter(Boolean).join(" "), B = [
17688
17688
  "pkt-input-check__input-checkbox",
17689
17689
  o ? "pkt-input-check__input-checkbox--error" : ""
17690
- ].filter(Boolean).join(" "), A = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), W = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), q = () => /* @__PURE__ */ x(Je, { children: [
17690
+ ].filter(Boolean).join(" "), A = ["pkt-input-check__input-label", r ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), W = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), U = () => /* @__PURE__ */ x(Je, { children: [
17691
17691
  g && /* @__PURE__ */ c("span", { className: W + " pkt-tag--gray", children: g }),
17692
17692
  f && /* @__PURE__ */ c("span", { className: W + " pkt-tag--blue-light", children: m }),
17693
17693
  p && /* @__PURE__ */ c("span", { className: W + " pkt-tag--beige", children: v })
@@ -17709,7 +17709,7 @@ const Pb = Le(
17709
17709
  /* @__PURE__ */ x("label", { className: A, htmlFor: n, children: [
17710
17710
  t,
17711
17711
  " ",
17712
- q(),
17712
+ U(),
17713
17713
  a && /* @__PURE__ */ c("div", { className: "pkt-input-check__input-helptext", children: a })
17714
17714
  ] })
17715
17715
  ] }) });
@@ -17789,7 +17789,7 @@ const Rb = Le(
17789
17789
  className: `pkt-searchinput__suggestion ${A.onClick ? "pkt-link-button" : ""} ${A.href || A.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
17790
17790
  type: A.onClick ? "button" : void 0,
17791
17791
  onClick: () => N(A.onClick, W),
17792
- onKeyUp: (q) => q.key === "Enter" && N(A.onClick, W)
17792
+ onKeyUp: (U) => U.key === "Enter" && N(A.onClick, W)
17793
17793
  },
17794
17794
  /* @__PURE__ */ x(Je, { children: [
17795
17795
  A.title && /* @__PURE__ */ c("h3", { className: "pkt-searchinput__suggestion-title", children: A.title }),
@@ -17825,11 +17825,11 @@ const Lb = Le(
17825
17825
  tagText: B,
17826
17826
  ...A
17827
17827
  }, W) => {
17828
- const q = [s, "pkt-select"].join(" ");
17828
+ const U = [s, "pkt-select"].join(" ");
17829
17829
  return /* @__PURE__ */ c(
17830
17830
  Kn,
17831
17831
  {
17832
- className: q,
17832
+ className: U,
17833
17833
  forId: `${f}-input`,
17834
17834
  label: v,
17835
17835
  helptext: o,
@@ -18082,7 +18082,7 @@ function Gb(n, e) {
18082
18082
  errorMessage: B,
18083
18083
  optionalTag: A = !1,
18084
18084
  optionalText: W,
18085
- requiredTag: q = !1,
18085
+ requiredTag: U = !1,
18086
18086
  requiredText: X,
18087
18087
  tagText: xe,
18088
18088
  inline: z = !1,
@@ -18108,7 +18108,7 @@ function Gb(n, e) {
18108
18108
  `PktTimepicker: step="${l}" er ikke en gyldig verdi. Step må være et multiplum av 60 (hele minutter) eller nøyaktig 3600 (hel time).`
18109
18109
  );
18110
18110
  }, [l]);
18111
- const Fe = ne(null), j = ne(null), U = ne(null), te = ne(null), ke = ne(null), Z = ne(null), ze = ne(0), qe = ne(-1), b = ne(0), h = ne(-1), [_, T] = de(!1), Y = Me(
18111
+ const Fe = ne(null), j = ne(null), q = ne(null), te = ne(null), ke = ne(null), Z = ne(null), ze = ne(0), qe = ne(-1), b = ne(0), h = ne(-1), [_, T] = de(!1), Y = Me(
18112
18112
  () => {
18113
18113
  var E;
18114
18114
  return (E = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")) == null ? void 0 : E.set;
@@ -18205,7 +18205,7 @@ function Gb(n, e) {
18205
18205
  const D = Te.current;
18206
18206
  D !== "" && Pe(`${D}:${re}`), requestAnimationFrame(() => {
18207
18207
  var P;
18208
- return (P = U.current) == null ? void 0 : P.focus();
18208
+ return (P = q.current) == null ? void 0 : P.focus();
18209
18209
  });
18210
18210
  }
18211
18211
  },
@@ -18405,7 +18405,7 @@ function Gb(n, e) {
18405
18405
  E.preventDefault(), H.click();
18406
18406
  break;
18407
18407
  case "Escape":
18408
- E.preventDefault(), mt(), (Se = U.current) == null || Se.focus();
18408
+ E.preventDefault(), mt(), (Se = q.current) == null || Se.focus();
18409
18409
  break;
18410
18410
  }
18411
18411
  },
@@ -18493,7 +18493,7 @@ function Gb(n, e) {
18493
18493
  errorMessage: B,
18494
18494
  optionalTag: A,
18495
18495
  optionalText: W,
18496
- requiredTag: q,
18496
+ requiredTag: U,
18497
18497
  requiredText: X,
18498
18498
  tagText: xe,
18499
18499
  inline: z,
@@ -18516,7 +18516,7 @@ function Gb(n, e) {
18516
18516
  minuteOptions: ht,
18517
18517
  hoursInputRef: Fe,
18518
18518
  minutesInputRef: j,
18519
- buttonRef: U,
18519
+ buttonRef: q,
18520
18520
  popupRef: te,
18521
18521
  changeInputRef: Z,
18522
18522
  handleHoursKeydown: Yn,