@oslokommune/punkt-react 13.19.2 → 13.20.0

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.
@@ -34,7 +34,7 @@
34
34
  };
35
35
  }
36
36
  import { jsx as h, jsxs as x, Fragment as Wt } from "react/jsx-runtime";
37
- import mt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as De, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
37
+ import gt, { createContext as Oa, forwardRef as Z, useContext as Ma, useState as ke, useEffect as De, useCallback as Ls, useRef as Bs, Fragment as un, createRef as mn, createElement as fn, Children as Os, isValidElement as gn, cloneElement as vn, useMemo as bn } from "react";
38
38
  import { Link as Gs } from "react-router-dom";
39
39
  const Pa = Oa({}), kn = () => Ma(Pa), yn = Z(
40
40
  ({ compact: i = !1, skin: t = "borderless", ariaLabelledBy: e, children: s, name: a, className: n }, r) => {
@@ -1019,7 +1019,7 @@ var rr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, Ri = (i, t
1019
1019
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1020
1020
  return s && a && rr(t, e, a), a;
1021
1021
  };
1022
- const Ds = "https://punkt-cdn.oslo.kommune.no/13.19/icons/";
1022
+ const Ds = "https://punkt-cdn.oslo.kommune.no/13.20/icons/";
1023
1023
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || Ds);
1024
1024
  const lr = (i) => new Promise((t) => setTimeout(t, i)), Xi = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', _s = {}, hr = async (i, t) => {
1025
1025
  let e = 0;
@@ -1072,14 +1072,14 @@ Re = Ri([
1072
1072
  * Copyright 2018 Google LLC
1073
1073
  * SPDX-License-Identifier: BSD-3-Clause
1074
1074
  */
1075
- const C = (i) => i ?? $;
1076
- var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
1075
+ const S = (i) => i ?? $;
1076
+ var dr = Object.defineProperty, cr = Object.getOwnPropertyDescriptor, ut = (i, t, e, s) => {
1077
1077
  for (var a = s > 1 ? void 0 : s ? cr(t, e) : t, n = i.length - 1, r; n >= 0; n--)
1078
1078
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
1079
1079
  return s && a && dr(t, e, a), a;
1080
1080
  };
1081
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
1082
- let ft = class extends K {
1081
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
1082
+ let lt = class extends K {
1083
1083
  constructor() {
1084
1084
  super(), this.defaultSlot = A(), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath, this.slotController = new rt(this, this.defaultSlot);
1085
1085
  }
@@ -1124,70 +1124,84 @@ let ft = class extends K {
1124
1124
  class=${M(e)}
1125
1125
  type=${this.type}
1126
1126
  ?disabled=${!!this.disabled}
1127
- aria-busy=${C(this.isLoading ? "true" : void 0)}
1128
- aria-disabled=${C(this.disabled || this.isLoading ? "true" : void 0)}
1129
- form=${C(t)}
1127
+ aria-busy=${S(this.isLoading ? "true" : void 0)}
1128
+ aria-disabled=${S(this.disabled || this.isLoading ? "true" : void 0)}
1129
+ form=${S(t)}
1130
1130
  >
1131
1131
  ${this.isLoading ? u`<pkt-icon
1132
1132
  class="pkt-btn__icon pkt-btn__spinner"
1133
1133
  name="spinner-blue"
1134
- path=${C(this.loadingAnimationPath)}
1134
+ path=${S(this.loadingAnimationPath)}
1135
+ ></pkt-icon>` : $}
1136
+ ${this.variant !== "label-only" ? u`<pkt-icon
1137
+ class="pkt-btn__icon pkt-icon"
1138
+ name=${this.iconName}
1139
+ path=${S(this.iconPath)}
1135
1140
  ></pkt-icon>` : $}
1136
- ${this.variant !== "label-only" ? u`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : $}
1137
1141
  <span class="pkt-btn__text" ${E(this.defaultSlot)}></span>
1138
- ${this.variant === "icons-right-and-left" ? u`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : $}
1142
+ ${this.variant === "icons-right-and-left" ? u`<pkt-icon
1143
+ class="pkt-btn__icon"
1144
+ name=${this.secondIconName}
1145
+ path=${S(this.secondIconPath)}
1146
+ ></pkt-icon>` : $}
1139
1147
  </button>
1140
1148
  `;
1141
1149
  }
1142
1150
  };
1143
- kt([
1151
+ ut([
1144
1152
  o({ type: String })
1145
- ], ft.prototype, "iconName", 2);
1146
- kt([
1153
+ ], lt.prototype, "iconName", 2);
1154
+ ut([
1147
1155
  o({ type: String })
1148
- ], ft.prototype, "secondIconName", 2);
1149
- kt([
1156
+ ], lt.prototype, "secondIconName", 2);
1157
+ ut([
1150
1158
  o({ type: String })
1151
- ], ft.prototype, "mode", 2);
1152
- kt([
1159
+ ], lt.prototype, "iconPath", 2);
1160
+ ut([
1153
1161
  o({ type: String })
1154
- ], ft.prototype, "size", 2);
1155
- kt([
1162
+ ], lt.prototype, "secondIconPath", 2);
1163
+ ut([
1164
+ o({ type: String })
1165
+ ], lt.prototype, "mode", 2);
1166
+ ut([
1167
+ o({ type: String })
1168
+ ], lt.prototype, "size", 2);
1169
+ ut([
1156
1170
  o({ type: Boolean, attribute: "full-width" })
1157
- ], ft.prototype, "fullWidth", 2);
1158
- kt([
1171
+ ], lt.prototype, "fullWidth", 2);
1172
+ ut([
1159
1173
  o({ type: Boolean, attribute: "full-width-on-mobile" })
1160
- ], ft.prototype, "fullWidthOnMobile", 2);
1161
- kt([
1174
+ ], lt.prototype, "fullWidthOnMobile", 2);
1175
+ ut([
1162
1176
  o({ type: String })
1163
- ], ft.prototype, "color", 2);
1164
- kt([
1177
+ ], lt.prototype, "color", 2);
1178
+ ut([
1165
1179
  o({ type: String })
1166
- ], ft.prototype, "skin", 2);
1167
- kt([
1180
+ ], lt.prototype, "skin", 2);
1181
+ ut([
1168
1182
  o({ type: String })
1169
- ], ft.prototype, "variant", 2);
1170
- kt([
1183
+ ], lt.prototype, "variant", 2);
1184
+ ut([
1171
1185
  o({ type: String, reflect: !0 })
1172
- ], ft.prototype, "state", 2);
1173
- kt([
1186
+ ], lt.prototype, "state", 2);
1187
+ ut([
1174
1188
  o({ type: String, reflect: !0 })
1175
- ], ft.prototype, "type", 2);
1176
- kt([
1189
+ ], lt.prototype, "type", 2);
1190
+ ut([
1177
1191
  o({ type: String })
1178
- ], ft.prototype, "form", 2);
1179
- kt([
1192
+ ], lt.prototype, "form", 2);
1193
+ ut([
1180
1194
  o({ type: Boolean, reflect: !0 })
1181
- ], ft.prototype, "isLoading", 2);
1182
- kt([
1195
+ ], lt.prototype, "isLoading", 2);
1196
+ ut([
1183
1197
  o({ type: Boolean, reflect: !0 })
1184
- ], ft.prototype, "disabled", 2);
1185
- kt([
1198
+ ], lt.prototype, "disabled", 2);
1199
+ ut([
1186
1200
  o({ type: String })
1187
- ], ft.prototype, "loadingAnimationPath", 2);
1188
- ft = kt([
1201
+ ], lt.prototype, "loadingAnimationPath", 2);
1202
+ lt = ut([
1189
1203
  j("pkt-button")
1190
- ], ft);
1204
+ ], lt);
1191
1205
  const pr = { skin: { default: "info" }, ariaLive: { default: "polite" }, compact: { default: !1 }, closeAlert: { default: !1 } }, Ki = {
1192
1206
  props: pr
1193
1207
  };
@@ -1378,7 +1392,7 @@ let ye = class extends K {
1378
1392
  id=${this.id}
1379
1393
  ?open=${this.isOpen}
1380
1394
  ${E(this.accordionItemRef)}
1381
- name=${C(this.name)}
1395
+ name=${S(this.name)}
1382
1396
  >
1383
1397
  <summary class="pkt-accordion-item__title" id=${`pkt-accordion-item-summary-${this.id}`}>
1384
1398
  ${this.title}
@@ -1438,7 +1452,7 @@ let si = class extends K {
1438
1452
  class="pkt-back-link"
1439
1453
  aria-label=${this.ariaLabel || "Gå tilbake til forrige side"}
1440
1454
  >
1441
- <a href=${C(this.href || "/")} class="pkt-link pkt-link--icon-left"
1455
+ <a href=${S(this.href || "/")} class="pkt-link pkt-link--icon-left"
1442
1456
  ><pkt-icon
1443
1457
  class="pkt-back-link__icon pkt-icon pkt-link__icon"
1444
1458
  name="chevron-thin-left"
@@ -2714,8 +2728,8 @@ function Co(i, t, e) {
2714
2728
  let y = t.match(_o).map((k) => {
2715
2729
  const w = k[0];
2716
2730
  if (w === "p" || w === "P") {
2717
- const S = uo[w];
2718
- return S(k, d.formatLong);
2731
+ const C = uo[w];
2732
+ return C(k, d.formatLong);
2719
2733
  }
2720
2734
  return k;
2721
2735
  }).join("").match($o).map((k) => {
@@ -2742,8 +2756,8 @@ function Co(i, t, e) {
2742
2756
  if (!k.isToken) return k.value;
2743
2757
  const w = k.value;
2744
2758
  (bo(w) || vo(w)) && ko(w, t, String(i));
2745
- const S = ga[w[0]];
2746
- return S(f, w, d.localize, b);
2759
+ const C = ga[w[0]];
2760
+ return C(f, w, d.localize, b);
2747
2761
  }).join("");
2748
2762
  }
2749
2763
  function To(i) {
@@ -2839,11 +2853,11 @@ function Qa(i) {
2839
2853
  p.setUTCSeconds(0);
2840
2854
  const m = a > 0 ? p.getSeconds() : (p.getSeconds() - 60) % 60, f = Math.round(-(Me(i.timeZone, i) * 60)) % 60;
2841
2855
  (f || m) && (i.internal.setUTCSeconds(i.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(i, Date.prototype.getUTCSeconds.call(i) + f + m));
2842
- const y = Me(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, S = k - d;
2843
- if (w && S) {
2844
- Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + S);
2845
- const O = Me(i.timeZone, i), N = O > 0 ? Math.floor(O) : Math.ceil(O), I = b - N;
2846
- I && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + I), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + I));
2856
+ const y = Me(i.timeZone, i), b = y > 0 ? Math.floor(y) : Math.ceil(y), k = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset() - b, w = b !== e, C = k - d;
2857
+ if (w && C) {
2858
+ Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + C);
2859
+ const O = Me(i.timeZone, i), T = O > 0 ? Math.floor(O) : Math.ceil(O), P = b - T;
2860
+ P && (i.internal.setUTCMinutes(i.internal.getUTCMinutes() + P), Date.prototype.setUTCMinutes.call(i, Date.prototype.getUTCMinutes.call(i) + P));
2847
2861
  }
2848
2862
  }
2849
2863
  let Rs = class Si extends wi {
@@ -3524,8 +3538,8 @@ let Gt = class extends K {
3524
3538
  class=${M(e)}
3525
3539
  type=${this.type}
3526
3540
  @click=${this.close}
3527
- aria-label=${C(this.ariaLabel || void 0)}
3528
- aria-description=${C(this._ariaDescription || void 0)}
3541
+ aria-label=${S(this.ariaLabel || void 0)}
3542
+ aria-description=${S(this._ariaDescription || void 0)}
3529
3543
  >
3530
3544
  ${this.iconName && u`<pkt-icon
3531
3545
  class="pkt-tag__icon"
@@ -3652,12 +3666,12 @@ Le = Bi([
3652
3666
  const Zo = { layout: { default: "vertical" }, skin: { type: ["outlined", "outlined-beige", "gray", "blue", "beige", "green"], default: "outlined" }, padding: { default: "default" } }, Qe = {
3653
3667
  props: Zo
3654
3668
  };
3655
- var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, bt = (i, t, e, s) => {
3669
+ var Jo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, kt = (i, t, e, s) => {
3656
3670
  for (var a = s > 1 ? void 0 : s ? Xo(t, e) : t, n = i.length - 1, r; n >= 0; n--)
3657
3671
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
3658
3672
  return s && a && Jo(t, e, a), a;
3659
3673
  };
3660
- let lt = class extends K {
3674
+ let ht = class extends K {
3661
3675
  //Constructor
3662
3676
  constructor() {
3663
3677
  super(), this.defaultSlot = A(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = Qe.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
@@ -3683,7 +3697,7 @@ let lt = class extends K {
3683
3697
  return u`
3684
3698
  <article
3685
3699
  class=${M(s)}
3686
- aria-label=${C(this.clickCardLink ? a : n)}
3700
+ aria-label=${S(this.clickCardLink ? a : n)}
3687
3701
  >
3688
3702
  ${this.renderImage()}
3689
3703
  <div class="pkt-card__wrapper">
@@ -3782,8 +3796,8 @@ let lt = class extends K {
3782
3796
  role="listitem"
3783
3797
  textStyle="normal-text"
3784
3798
  size="medium"
3785
- skin=${C(e.skin)}
3786
- iconName=${C(e.iconName)}
3799
+ skin=${S(e.skin)}
3800
+ iconName=${S(e.iconName)}
3787
3801
  >
3788
3802
  <span>${e.text}</span>
3789
3803
  </pkt-tag>
@@ -3809,43 +3823,43 @@ let lt = class extends K {
3809
3823
  `;
3810
3824
  }
3811
3825
  };
3812
- bt([
3826
+ kt([
3813
3827
  o({ type: String })
3814
- ], lt.prototype, "ariaLabel", 2);
3815
- bt([
3828
+ ], ht.prototype, "ariaLabel", 2);
3829
+ kt([
3816
3830
  o({ type: String })
3817
- ], lt.prototype, "metaLead", 2);
3818
- bt([
3831
+ ], ht.prototype, "metaLead", 2);
3832
+ kt([
3819
3833
  o({ type: Boolean })
3820
- ], lt.prototype, "borderOnHover", 2);
3821
- bt([
3834
+ ], ht.prototype, "borderOnHover", 2);
3835
+ kt([
3822
3836
  o({ type: String, reflect: !0 })
3823
- ], lt.prototype, "clickCardLink", 2);
3824
- bt([
3837
+ ], ht.prototype, "clickCardLink", 2);
3838
+ kt([
3825
3839
  o({ type: String })
3826
- ], lt.prototype, "metaTrail", 2);
3827
- bt([
3840
+ ], ht.prototype, "metaTrail", 2);
3841
+ kt([
3828
3842
  o({ type: String })
3829
- ], lt.prototype, "layout", 2);
3830
- bt([
3843
+ ], ht.prototype, "layout", 2);
3844
+ kt([
3831
3845
  o({ type: String })
3832
- ], lt.prototype, "heading", 2);
3833
- bt([
3846
+ ], ht.prototype, "heading", 2);
3847
+ kt([
3834
3848
  o({ type: Number })
3835
- ], lt.prototype, "headinglevel", 2);
3836
- bt([
3849
+ ], ht.prototype, "headinglevel", 2);
3850
+ kt([
3837
3851
  o({ type: Object })
3838
- ], lt.prototype, "image", 2);
3839
- bt([
3852
+ ], ht.prototype, "image", 2);
3853
+ kt([
3840
3854
  o({ type: String })
3841
- ], lt.prototype, "imageShape", 2);
3842
- bt([
3855
+ ], ht.prototype, "imageShape", 2);
3856
+ kt([
3843
3857
  o({ type: Boolean })
3844
- ], lt.prototype, "openLinkInNewTab", 2);
3845
- bt([
3858
+ ], ht.prototype, "openLinkInNewTab", 2);
3859
+ kt([
3846
3860
  o({ type: String })
3847
- ], lt.prototype, "padding", 2);
3848
- bt([
3861
+ ], ht.prototype, "padding", 2);
3862
+ kt([
3849
3863
  o({
3850
3864
  type: String,
3851
3865
  converter: {
@@ -3858,19 +3872,19 @@ bt([
3858
3872
  toAttribute: (i) => i
3859
3873
  }
3860
3874
  })
3861
- ], lt.prototype, "skin", 2);
3862
- bt([
3875
+ ], ht.prototype, "skin", 2);
3876
+ kt([
3863
3877
  o({ type: String })
3864
- ], lt.prototype, "subheading", 2);
3865
- bt([
3878
+ ], ht.prototype, "subheading", 2);
3879
+ kt([
3866
3880
  o({ type: String })
3867
- ], lt.prototype, "tagPosition", 2);
3868
- bt([
3881
+ ], ht.prototype, "tagPosition", 2);
3882
+ kt([
3869
3883
  o({ type: Array })
3870
- ], lt.prototype, "tags", 2);
3871
- lt = bt([
3884
+ ], ht.prototype, "tags", 2);
3885
+ ht = kt([
3872
3886
  j("pkt-card")
3873
- ], lt);
3887
+ ], ht);
3874
3888
  /**
3875
3889
  * @license
3876
3890
  * Copyright 2017 Google LLC
@@ -3907,11 +3921,11 @@ const xa = (i, t, e) => {
3907
3921
  else if (l[f] === r[k]) d[k] = Ne(a[f], n[k]), vi(i, d[k + 1], a[f]), f++, k--;
3908
3922
  else if (l[y] === r[b]) d[b] = Ne(a[y], n[b]), vi(i, a[f], a[y]), y--, b++;
3909
3923
  else if (p === void 0 && (p = xa(r, b, k), m = xa(l, f, y)), p.has(l[f])) if (p.has(l[y])) {
3910
- const w = m.get(r[b]), S = w !== void 0 ? a[w] : null;
3911
- if (S === null) {
3924
+ const w = m.get(r[b]), C = w !== void 0 ? a[w] : null;
3925
+ if (C === null) {
3912
3926
  const O = vi(i, a[f]);
3913
3927
  Ne(O, n[b]), d[b] = O;
3914
- } else d[b] = Ne(S, n[b]), vi(i, a[f], S), a[w] = null;
3928
+ } else d[b] = Ne(C, n[b]), vi(i, a[f], C), a[w] = null;
3915
3929
  b++;
3916
3930
  } else ys(a[y]), y--;
3917
3931
  else ys(a[f]), f++;
@@ -3935,7 +3949,7 @@ var el = {}, Ca;
3935
3949
  function il() {
3936
3950
  return Ca || (Ca = 1, (function() {
3937
3951
  (function(i) {
3938
- const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), S = {
3952
+ const t = /* @__PURE__ */ new WeakMap(), e = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), d = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), y = /* @__PURE__ */ new WeakMap(), b = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakMap(), w = /* @__PURE__ */ new WeakMap(), C = {
3939
3953
  ariaAtomic: "aria-atomic",
3940
3954
  ariaAutoComplete: "aria-autocomplete",
3941
3955
  ariaBusy: "aria-busy",
@@ -3979,69 +3993,69 @@ function il() {
3979
3993
  ariaValueText: "aria-valuetext",
3980
3994
  role: "role"
3981
3995
  }, O = (g, c) => {
3982
- for (let v in S) {
3996
+ for (let v in C) {
3983
3997
  c[v] = null;
3984
3998
  let _ = null;
3985
- const D = S[v];
3999
+ const I = C[v];
3986
4000
  Object.defineProperty(c, v, {
3987
4001
  get() {
3988
4002
  return _;
3989
4003
  },
3990
4004
  set(V) {
3991
- _ = V, g.isConnected ? st(g, D, V) : m.set(g, c);
4005
+ _ = V, g.isConnected ? st(g, I, V) : m.set(g, c);
3992
4006
  }
3993
4007
  });
3994
4008
  }
3995
4009
  };
3996
- function N(g) {
4010
+ function T(g) {
3997
4011
  const c = a.get(g), { form: v } = c;
3998
4012
  le(g, v, c), xt(g, c.labels);
3999
4013
  }
4000
- const I = (g, c = !1) => {
4014
+ const P = (g, c = !1) => {
4001
4015
  const v = document.createTreeWalker(g, NodeFilter.SHOW_ELEMENT, {
4002
4016
  acceptNode(V) {
4003
4017
  return a.has(V) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4004
4018
  }
4005
4019
  });
4006
4020
  let _ = v.nextNode();
4007
- const D = !c || g.disabled;
4021
+ const I = !c || g.disabled;
4008
4022
  for (; _; )
4009
- _.formDisabledCallback && D && Et(_, g.disabled), _ = v.nextNode();
4010
- }, T = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4023
+ _.formDisabledCallback && I && Et(_, g.disabled), _ = v.nextNode();
4024
+ }, N = { attributes: !0, attributeFilter: ["disabled", "name"] }, H = he() ? new MutationObserver((g) => {
4011
4025
  for (const c of g) {
4012
4026
  const v = c.target;
4013
- if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && I(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4014
- const _ = a.get(v), D = p.get(v);
4015
- _.setFormValue(D);
4027
+ if (c.attributeName === "disabled" && (v.constructor.formAssociated ? Et(v, v.hasAttribute("disabled")) : v.localName === "fieldset" && P(v)), c.attributeName === "name" && v.constructor.formAssociated) {
4028
+ const _ = a.get(v), I = p.get(v);
4029
+ _.setFormValue(I);
4016
4030
  }
4017
4031
  }
4018
4032
  }) : {};
4019
4033
  function G(g) {
4020
4034
  g.forEach((c) => {
4021
- const { addedNodes: v, removedNodes: _ } = c, D = Array.from(v), V = Array.from(_);
4022
- D.forEach((U) => {
4035
+ const { addedNodes: v, removedNodes: _ } = c, I = Array.from(v), V = Array.from(_);
4036
+ I.forEach((U) => {
4023
4037
  var Mt;
4024
- if (a.has(U) && U.constructor.formAssociated && N(U), m.has(U)) {
4025
- const ut = m.get(U);
4026
- Object.keys(S).filter((Pt) => ut[Pt] !== null).forEach((Pt) => {
4027
- st(U, S[Pt], ut[Pt]);
4038
+ if (a.has(U) && U.constructor.formAssociated && T(U), m.has(U)) {
4039
+ const ft = m.get(U);
4040
+ Object.keys(C).filter((Pt) => ft[Pt] !== null).forEach((Pt) => {
4041
+ st(U, C[Pt], ft[Pt]);
4028
4042
  }), m.delete(U);
4029
4043
  }
4030
4044
  if (w.has(U)) {
4031
- const ut = w.get(U);
4032
- st(U, "internals-valid", ut.validity.valid.toString()), st(U, "internals-invalid", (!ut.validity.valid).toString()), st(U, "aria-invalid", (!ut.validity.valid).toString()), w.delete(U);
4045
+ const ft = w.get(U);
4046
+ st(U, "internals-valid", ft.validity.valid.toString()), st(U, "internals-invalid", (!ft.validity.valid).toString()), st(U, "aria-invalid", (!ft.validity.valid).toString()), w.delete(U);
4033
4047
  }
4034
4048
  if (U.localName === "form") {
4035
- const ut = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4049
+ const ft = d.get(U), Pt = document.createTreeWalker(U, NodeFilter.SHOW_ELEMENT, {
4036
4050
  acceptNode(vs) {
4037
- return a.has(vs) && vs.constructor.formAssociated && !(ut && ut.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4051
+ return a.has(vs) && vs.constructor.formAssociated && !(ft && ft.has(vs)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4038
4052
  }
4039
4053
  });
4040
4054
  let mi = Pt.nextNode();
4041
4055
  for (; mi; )
4042
- N(mi), mi = Pt.nextNode();
4056
+ T(mi), mi = Pt.nextNode();
4043
4057
  }
4044
- U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, T), I(U, !0));
4058
+ U.localName === "fieldset" && ((Mt = H.observe) === null || Mt === void 0 || Mt.call(H, U, N), P(U, !0));
4045
4059
  }), V.forEach((U) => {
4046
4060
  const Mt = a.get(U);
4047
4061
  Mt && s.get(Mt) && Ot(Mt), l.has(U) && l.get(U).disconnect();
@@ -4052,12 +4066,12 @@ function il() {
4052
4066
  g.forEach((c) => {
4053
4067
  const { removedNodes: v } = c;
4054
4068
  v.forEach((_) => {
4055
- const D = b.get(c.target);
4056
- a.has(_) && Ce(_), D.disconnect();
4069
+ const I = b.get(c.target);
4070
+ a.has(_) && Ce(_), I.disconnect();
4057
4071
  });
4058
4072
  });
4059
4073
  }
4060
- const pt = (g) => {
4074
+ const mt = (g) => {
4061
4075
  var c, v;
4062
4076
  const _ = new MutationObserver(_t);
4063
4077
  !((c = window == null ? void 0 : window.ShadyDOM) === null || c === void 0) && c.inUse && g.mode && g.host && (g = g.host), (v = _.observe) === null || v === void 0 || v.call(_, g, { childList: !0 }), b.set(g, _);
@@ -4079,7 +4093,7 @@ function il() {
4079
4093
  return v.type = "hidden", v.name = g.getAttribute("name"), g.after(v), s.get(c).push(v), v;
4080
4094
  }, R = (g, c) => {
4081
4095
  var v;
4082
- s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, T);
4096
+ s.set(c, []), (v = H.observe) === null || v === void 0 || v.call(H, g, N);
4083
4097
  }, xt = (g, c) => {
4084
4098
  if (c.length) {
4085
4099
  Array.from(c).forEach((_) => _.addEventListener("click", g.click.bind(g)));
@@ -4087,8 +4101,8 @@ function il() {
4087
4101
  c[0].id || (v = `${c[0].htmlFor}_Label`, c[0].id = v), st(g, "aria-labelledby", v);
4088
4102
  }
4089
4103
  }, Qt = (g) => {
4090
- const c = Array.from(g.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), v = d.get(g) || [], _ = Array.from(v).filter((V) => V.isConnected).map((V) => a.get(V).validity.valid), D = [...c, ..._].includes(!1);
4091
- g.toggleAttribute("internals-invalid", D), g.toggleAttribute("internals-valid", !D);
4104
+ const c = Array.from(g.elements).filter((V) => !V.tagName.includes("-") && V.validity).map((V) => V.validity.valid), v = d.get(g) || [], _ = Array.from(v).filter((V) => V.isConnected).map((V) => a.get(V).validity.valid), I = [...c, ..._].includes(!1);
4105
+ g.toggleAttribute("internals-invalid", I), g.toggleAttribute("internals-valid", !I);
4092
4106
  }, oe = (g) => {
4093
4107
  Qt(Ut(g.target));
4094
4108
  }, te = (g) => {
@@ -4100,7 +4114,7 @@ function il() {
4100
4114
  const _ = d.get(g);
4101
4115
  if (g.noValidate)
4102
4116
  return;
4103
- _.size && Array.from(_).reverse().map((D) => a.get(D).reportValidity()).includes(!1) && v.preventDefault();
4117
+ _.size && Array.from(_).reverse().map((I) => a.get(I).reportValidity()).includes(!1) && v.preventDefault();
4104
4118
  }
4105
4119
  });
4106
4120
  }, We = (g) => {
@@ -4114,8 +4128,8 @@ function il() {
4114
4128
  if (_)
4115
4129
  _.add(g);
4116
4130
  else {
4117
- const D = /* @__PURE__ */ new Set();
4118
- D.add(g), d.set(c, D), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4131
+ const I = /* @__PURE__ */ new Set();
4132
+ I.add(g), d.set(c, I), xe(c), c.addEventListener("reset", We), c.addEventListener("input", oe), c.addEventListener("change", te);
4119
4133
  }
4120
4134
  r.set(c, { ref: g, internals: v }), g.constructor.formAssociated && g.formAssociatedCallback && setTimeout(() => {
4121
4135
  g.formAssociatedCallback.apply(g, [c]);
@@ -4129,8 +4143,8 @@ function il() {
4129
4143
  throw new v(c);
4130
4144
  }, Se = (g, c, v) => {
4131
4145
  const _ = d.get(g);
4132
- return _ && _.size && _.forEach((D) => {
4133
- a.get(D)[v]() || (c = !1);
4146
+ return _ && _.size && _.forEach((I) => {
4147
+ a.get(I)[v]() || (c = !1);
4134
4148
  }), c;
4135
4149
  }, Ce = (g) => {
4136
4150
  if (g.constructor.formAssociated) {
@@ -4167,9 +4181,9 @@ function il() {
4167
4181
  add(c) {
4168
4182
  if (!/^--/.test(c) || typeof c != "string")
4169
4183
  throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${c} must start with '--'.`);
4170
- const v = super.add(c), _ = Ke.get(this), D = `state${c}`;
4171
- return _.isConnected ? Ge(_, D) : setTimeout(() => {
4172
- Ge(_, D);
4184
+ const v = super.add(c), _ = Ke.get(this), I = `state${c}`;
4185
+ return _.isConnected ? Ge(_, I) : setTimeout(() => {
4186
+ Ge(_, I);
4173
4187
  }), v;
4174
4188
  }
4175
4189
  clear() {
@@ -4188,7 +4202,7 @@ function il() {
4188
4202
  if (typeof c == "function" ? g !== c || !_ : !c.has(g)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4189
4203
  return v === "m" ? _ : v === "a" ? _.call(g) : _ ? _.value : c.get(g);
4190
4204
  }
4191
- function fs(g, c, v, _, D) {
4205
+ function fs(g, c, v, _, I) {
4192
4206
  if (typeof c == "function" ? g !== c || !0 : !c.has(g)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4193
4207
  return c.set(g, v), v;
4194
4208
  }
@@ -4228,14 +4242,14 @@ function il() {
4228
4242
  let U = c.apply(this, V);
4229
4243
  return Se(this, U, "reportValidity");
4230
4244
  }
4231
- const { get: D } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4245
+ const { get: I } = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements");
4232
4246
  Object.defineProperty(HTMLFormElement.prototype, "elements", {
4233
4247
  get(...V) {
4234
- const U = D.call(this, ...V), Mt = Array.from(d.get(this) || []);
4248
+ const U = I.call(this, ...V), Mt = Array.from(d.get(this) || []);
4235
4249
  if (Mt.length === 0)
4236
4250
  return U;
4237
- const ut = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4238
- return new zi(ut);
4251
+ const ft = Array.from(U).concat(Mt).sort((Pt, mi) => Pt.compareDocumentPosition ? Pt.compareDocumentPosition(mi) & 2 ? 1 : -1 : 0);
4252
+ return new zi(ft);
4239
4253
  }
4240
4254
  });
4241
4255
  }
@@ -4247,7 +4261,7 @@ function il() {
4247
4261
  if (!c || !c.tagName || c.tagName.indexOf("-") === -1)
4248
4262
  throw new TypeError("Illegal constructor");
4249
4263
  const v = c.getRootNode(), _ = new us();
4250
- this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && pt(v);
4264
+ this.states = new ui(c), t.set(this, c), e.set(this, _), a.set(c, this), O(c, this), R(c, this), Object.seal(this), v instanceof DocumentFragment && mt(v);
4251
4265
  }
4252
4266
  checkValidity() {
4253
4267
  const c = t.get(this);
@@ -4292,17 +4306,17 @@ function il() {
4292
4306
  const _ = at(v, this);
4293
4307
  _.value = c;
4294
4308
  }
4295
- } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, D]) => {
4296
- if (typeof D == "string") {
4309
+ } else c != null && c instanceof FormData && Array.from(c).reverse().forEach(([_, I]) => {
4310
+ if (typeof I == "string") {
4297
4311
  const V = at(v, this);
4298
- V.name = _, V.value = D;
4312
+ V.name = _, V.value = I;
4299
4313
  }
4300
4314
  });
4301
4315
  p.set(v, c);
4302
4316
  }
4303
4317
  setValidity(c, v, _) {
4304
- const D = t.get(this);
4305
- if (ot(D, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4318
+ const I = t.get(this);
4319
+ if (ot(I, "Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."), !c)
4306
4320
  throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");
4307
4321
  y.set(this, _);
4308
4322
  const V = e.get(this), U = {};
@@ -4311,10 +4325,10 @@ function il() {
4311
4325
  Object.keys(U).length === 0 && Ui(V);
4312
4326
  const Mt = Object.assign(Object.assign({}, V), U);
4313
4327
  delete Mt.valid;
4314
- const { valid: ut } = ms(V, Mt, this.form);
4315
- if (!ut && !v)
4328
+ const { valid: ft } = ms(V, Mt, this.form);
4329
+ if (!ft && !v)
4316
4330
  throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
4317
- n.set(this, ut ? "" : v), D.isConnected ? (D.toggleAttribute("internals-invalid", !ut), D.toggleAttribute("internals-valid", ut), st(D, "aria-invalid", `${!ut}`)) : w.set(D, this);
4331
+ n.set(this, ft ? "" : v), I.isConnected ? (I.toggleAttribute("internals-invalid", !ft), I.toggleAttribute("internals-valid", ft), st(I, "aria-invalid", `${!ft}`)) : w.set(I, this);
4318
4332
  }
4319
4333
  get shadowRoot() {
4320
4334
  const c = t.get(this);
@@ -4368,14 +4382,14 @@ function il() {
4368
4382
  if (!zs) {
4369
4383
  if (zs = !0, typeof window < "u" && (window.ElementInternals = qs), typeof CustomElementRegistry < "u") {
4370
4384
  const c = CustomElementRegistry.prototype.define;
4371
- CustomElementRegistry.prototype.define = function(v, _, D) {
4385
+ CustomElementRegistry.prototype.define = function(v, _, I) {
4372
4386
  if (_.formAssociated) {
4373
4387
  const V = _.prototype.connectedCallback;
4374
4388
  _.prototype.connectedCallback = function() {
4375
4389
  k.has(this) || (k.set(this, !0), this.hasAttribute("disabled") && Et(this, !0)), V != null && V.apply(this), Ce(this);
4376
4390
  };
4377
4391
  }
4378
- c.call(this, v, _, D);
4392
+ c.call(this, v, _, I);
4379
4393
  };
4380
4394
  }
4381
4395
  if (typeof HTMLElement < "u" && (HTMLElement.prototype.attachInternals = function() {
@@ -4388,12 +4402,12 @@ function il() {
4388
4402
  return new qs(this);
4389
4403
  }), typeof Element < "u") {
4390
4404
  let c = function(..._) {
4391
- const D = v.apply(this, _);
4392
- if (f.set(this, D), he()) {
4405
+ const I = v.apply(this, _);
4406
+ if (f.set(this, I), he()) {
4393
4407
  const V = new MutationObserver(G);
4394
- window.ShadyDOM ? V.observe(this, J) : V.observe(D, J), l.set(this, V);
4408
+ window.ShadyDOM ? V.observe(this, J) : V.observe(I, J), l.set(this, V);
4395
4409
  }
4396
- return D;
4410
+ return I;
4397
4411
  };
4398
4412
  const v = Element.prototype.attachShadow;
4399
4413
  Element.prototype.attachShadow = c;
@@ -4419,7 +4433,7 @@ const al = {
4419
4433
  return i ? "true" : "false";
4420
4434
  }
4421
4435
  };
4422
- let P = class extends K {
4436
+ let D = class extends K {
4423
4437
  constructor() {
4424
4438
  super(), this.defaultValue = null, this.disabled = !1, this.readonly = !1, this.required = !1, this.max = null, this.maxlength = null, this.min = null, this.minlength = null, this.step = null, this.ariaDescribedBy = null, this.ariaLabelledby = null, this.name = "", this.pattern = null, this.placeholder = null, this.id = be(), this.counter = !1, this.hasError = !1, this.inline = !1, this.hasFieldset = !1, this.optionalTag = !1, this.requiredTag = !1, this.skipForwardTestid = !1, this.useWrapper = !0, this.fullwidth = !1, this.counterMaxLength = 0, this.errorMessage = "", this.helptext = "", this.helptextDropdown = "", this.helptextDropdownButton = Dt.props.helptextDropdownButton.default, this.label = null, this.optionalText = wt.forms.labels.optional, this.requiredText = wt.forms.labels.required, this.tagText = null, this.dataTestid = "", this.touched = !1, this.internals = this.attachInternals();
4425
4439
  }
@@ -4536,109 +4550,109 @@ let P = class extends K {
4536
4550
  };
4537
4551
  F([
4538
4552
  o()
4539
- ], P.prototype, "defaultValue");
4553
+ ], D.prototype, "defaultValue");
4540
4554
  F([
4541
4555
  o({ type: Boolean, reflect: !0 })
4542
- ], P.prototype, "disabled");
4556
+ ], D.prototype, "disabled");
4543
4557
  F([
4544
4558
  o({ type: Boolean, reflect: !0 })
4545
- ], P.prototype, "readonly");
4559
+ ], D.prototype, "readonly");
4546
4560
  F([
4547
4561
  o({ type: Boolean, reflect: !0 })
4548
- ], P.prototype, "required");
4562
+ ], D.prototype, "required");
4549
4563
  F([
4550
4564
  o({ type: Number, reflect: !0 })
4551
- ], P.prototype, "max");
4565
+ ], D.prototype, "max");
4552
4566
  F([
4553
4567
  o({ type: Number, reflect: !0 })
4554
- ], P.prototype, "maxlength");
4568
+ ], D.prototype, "maxlength");
4555
4569
  F([
4556
4570
  o({ type: Number, reflect: !0 })
4557
- ], P.prototype, "min");
4571
+ ], D.prototype, "min");
4558
4572
  F([
4559
4573
  o({ type: Number, reflect: !0 })
4560
- ], P.prototype, "minlength");
4574
+ ], D.prototype, "minlength");
4561
4575
  F([
4562
4576
  o({ type: Number, reflect: !0 })
4563
- ], P.prototype, "step");
4577
+ ], D.prototype, "step");
4564
4578
  F([
4565
4579
  o({ type: String })
4566
- ], P.prototype, "ariaDescribedBy");
4580
+ ], D.prototype, "ariaDescribedBy");
4567
4581
  F([
4568
4582
  o({ type: String })
4569
- ], P.prototype, "ariaLabelledby");
4583
+ ], D.prototype, "ariaLabelledby");
4570
4584
  F([
4571
4585
  o({ type: String, reflect: !0 })
4572
- ], P.prototype, "name");
4586
+ ], D.prototype, "name");
4573
4587
  F([
4574
4588
  o({ type: String, reflect: !0 })
4575
- ], P.prototype, "pattern");
4589
+ ], D.prototype, "pattern");
4576
4590
  F([
4577
4591
  o({ type: String, reflect: !0 })
4578
- ], P.prototype, "placeholder");
4592
+ ], D.prototype, "placeholder");
4579
4593
  F([
4580
4594
  o({ type: String, reflect: !0 })
4581
- ], P.prototype, "id");
4595
+ ], D.prototype, "id");
4582
4596
  F([
4583
4597
  o({ type: Boolean })
4584
- ], P.prototype, "counter");
4598
+ ], D.prototype, "counter");
4585
4599
  F([
4586
4600
  o({ type: Boolean })
4587
- ], P.prototype, "hasError");
4601
+ ], D.prototype, "hasError");
4588
4602
  F([
4589
4603
  o({ type: Boolean })
4590
- ], P.prototype, "inline");
4604
+ ], D.prototype, "inline");
4591
4605
  F([
4592
4606
  o({ type: Boolean })
4593
- ], P.prototype, "hasFieldset");
4607
+ ], D.prototype, "hasFieldset");
4594
4608
  F([
4595
4609
  o({ type: Boolean })
4596
- ], P.prototype, "optionalTag");
4610
+ ], D.prototype, "optionalTag");
4597
4611
  F([
4598
4612
  o({ type: Boolean })
4599
- ], P.prototype, "requiredTag");
4613
+ ], D.prototype, "requiredTag");
4600
4614
  F([
4601
4615
  o({ type: Boolean })
4602
- ], P.prototype, "skipForwardTestid");
4616
+ ], D.prototype, "skipForwardTestid");
4603
4617
  F([
4604
4618
  o({ type: Boolean, reflect: !0, converter: al })
4605
- ], P.prototype, "useWrapper");
4619
+ ], D.prototype, "useWrapper");
4606
4620
  F([
4607
4621
  o({ type: Boolean, reflect: !0 })
4608
- ], P.prototype, "fullwidth");
4622
+ ], D.prototype, "fullwidth");
4609
4623
  F([
4610
4624
  o({ type: Number })
4611
- ], P.prototype, "counterMaxLength");
4625
+ ], D.prototype, "counterMaxLength");
4612
4626
  F([
4613
4627
  o({ type: String })
4614
- ], P.prototype, "errorMessage");
4628
+ ], D.prototype, "errorMessage");
4615
4629
  F([
4616
4630
  o({ type: String })
4617
- ], P.prototype, "helptext");
4631
+ ], D.prototype, "helptext");
4618
4632
  F([
4619
4633
  o({ type: String })
4620
- ], P.prototype, "helptextDropdown");
4634
+ ], D.prototype, "helptextDropdown");
4621
4635
  F([
4622
4636
  o({ type: String, reflect: !1 })
4623
- ], P.prototype, "helptextDropdownButton");
4637
+ ], D.prototype, "helptextDropdownButton");
4624
4638
  F([
4625
4639
  o({ type: String })
4626
- ], P.prototype, "label");
4640
+ ], D.prototype, "label");
4627
4641
  F([
4628
4642
  o({ type: String, reflect: !1 })
4629
- ], P.prototype, "optionalText");
4643
+ ], D.prototype, "optionalText");
4630
4644
  F([
4631
4645
  o({ type: String, reflect: !1 })
4632
- ], P.prototype, "requiredText");
4646
+ ], D.prototype, "requiredText");
4633
4647
  F([
4634
4648
  o({ type: String, reflect: !1 })
4635
- ], P.prototype, "tagText");
4649
+ ], D.prototype, "tagText");
4636
4650
  F([
4637
4651
  o({ type: String, attribute: "data-testid" })
4638
- ], P.prototype, "dataTestid");
4652
+ ], D.prototype, "dataTestid");
4639
4653
  F([
4640
4654
  B()
4641
- ], P.prototype, "touched");
4655
+ ], D.prototype, "touched");
4642
4656
  let an = class {
4643
4657
  constructor(t) {
4644
4658
  this.nodes = [], this.options = [], this.host = t, this.host.addController(this), this.nodes = [], this.options = [], this.observer = new MutationObserver((e) => this.handleMutations(e));
@@ -4802,7 +4816,7 @@ let Y = class extends K {
4802
4816
  ${this.label}
4803
4817
  </label>`, r = () => u`
4804
4818
  <pkt-helptext
4805
- class="${C(this.useWrapper ? void 0 : "pkt-hide")}"
4819
+ class="${S(this.useWrapper ? void 0 : "pkt-hide")}"
4806
4820
  .forId=${this.forId}
4807
4821
  .helptext=${this.helptext}
4808
4822
  .helptextDropdown=${this.helptextDropdown}
@@ -4931,7 +4945,7 @@ var dl = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, yt = (i, t
4931
4945
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
4932
4946
  return s && a && dl(t, e, a), a;
4933
4947
  };
4934
- let gt = class extends K {
4948
+ let vt = class extends K {
4935
4949
  constructor() {
4936
4950
  super(...arguments), this.id = be(), this.label = null, this.options = [], this.isOpen = !1, this.disabled = !1, this.includeSearch = !1, this.isMultiSelect = !1, this.allowUserInput = !1, this.maxIsReached = !1, this.customUserInput = null, this.searchPlaceholder = null, this.searchValue = null, this.maxLength = 0, this.userMessage = null, this._selectedOptions = 0, this._filteredOptions = [];
4937
4951
  }
@@ -4955,7 +4969,7 @@ let gt = class extends K {
4955
4969
  "pkt-txt-16-light": !0
4956
4970
  })}
4957
4971
  role="listbox"
4958
- aria-label=${C(this.label)}
4972
+ aria-label=${S(this.label)}
4959
4973
  >
4960
4974
  <div class="pkt-listbox__banners">
4961
4975
  ${this.renderMaximumReachedBanner()} ${this.renderUserMessage()}
@@ -5231,52 +5245,52 @@ let gt = class extends K {
5231
5245
  };
5232
5246
  yt([
5233
5247
  o({ type: String })
5234
- ], gt.prototype, "id", 2);
5248
+ ], vt.prototype, "id", 2);
5235
5249
  yt([
5236
5250
  o({ type: String })
5237
- ], gt.prototype, "label", 2);
5251
+ ], vt.prototype, "label", 2);
5238
5252
  yt([
5239
5253
  o({ type: Array })
5240
- ], gt.prototype, "options", 2);
5254
+ ], vt.prototype, "options", 2);
5241
5255
  yt([
5242
5256
  o({ type: Boolean, reflect: !0 })
5243
- ], gt.prototype, "isOpen", 2);
5257
+ ], vt.prototype, "isOpen", 2);
5244
5258
  yt([
5245
5259
  o({ type: Boolean })
5246
- ], gt.prototype, "disabled", 2);
5260
+ ], vt.prototype, "disabled", 2);
5247
5261
  yt([
5248
5262
  o({ type: Boolean })
5249
- ], gt.prototype, "includeSearch", 2);
5263
+ ], vt.prototype, "includeSearch", 2);
5250
5264
  yt([
5251
5265
  o({ type: Boolean })
5252
- ], gt.prototype, "isMultiSelect", 2);
5266
+ ], vt.prototype, "isMultiSelect", 2);
5253
5267
  yt([
5254
5268
  o({ type: Boolean })
5255
- ], gt.prototype, "allowUserInput", 2);
5269
+ ], vt.prototype, "allowUserInput", 2);
5256
5270
  yt([
5257
5271
  o({ type: Boolean })
5258
- ], gt.prototype, "maxIsReached", 2);
5272
+ ], vt.prototype, "maxIsReached", 2);
5259
5273
  yt([
5260
5274
  o({ type: String })
5261
- ], gt.prototype, "customUserInput", 2);
5275
+ ], vt.prototype, "customUserInput", 2);
5262
5276
  yt([
5263
5277
  o({ type: String })
5264
- ], gt.prototype, "searchPlaceholder", 2);
5278
+ ], vt.prototype, "searchPlaceholder", 2);
5265
5279
  yt([
5266
5280
  o({ type: String })
5267
- ], gt.prototype, "searchValue", 2);
5281
+ ], vt.prototype, "searchValue", 2);
5268
5282
  yt([
5269
5283
  o({ type: Number })
5270
- ], gt.prototype, "maxLength", 2);
5284
+ ], vt.prototype, "maxLength", 2);
5271
5285
  yt([
5272
5286
  o({ type: String })
5273
- ], gt.prototype, "userMessage", 2);
5287
+ ], vt.prototype, "userMessage", 2);
5274
5288
  yt([
5275
5289
  B()
5276
- ], gt.prototype, "_filteredOptions", 2);
5277
- gt = yt([
5290
+ ], vt.prototype, "_filteredOptions", 2);
5291
+ vt = yt([
5278
5292
  j("pkt-listbox")
5279
- ], gt);
5293
+ ], vt);
5280
5294
  const pl = { displayValueAs: { default: "label" } }, ul = {
5281
5295
  props: pl
5282
5296
  };
@@ -5285,7 +5299,7 @@ var ml = Object.defineProperty, fl = Object.getOwnPropertyDescriptor, it = (i, t
5285
5299
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5286
5300
  return s && a && ml(t, e, a), a;
5287
5301
  };
5288
- let Q = class extends P {
5302
+ let Q = class extends D {
5289
5303
  constructor() {
5290
5304
  super(), this.helptextSlot = A(), this.value = "", this.options = [], this.defaultOptions = [], this.allowUserInput = !1, this.typeahead = !1, this.includeSearch = !1, this.searchPlaceholder = "", this.multiple = !1, this.maxlength = null, this.displayValueAs = ul.props.displayValueAs.default, this.tagPlacement = null, this._options = [], this._isOptionsOpen = !1, this._value = [], this._userInfoMessage = "", this._addValueText = null, this._maxIsReached = !1, this._search = "", this._inputFocus = !1, this._editingSingleValue = !1, this.inputRef = A(), this.arrowRef = A(), this.listboxRef = A(), this.focusRef = A(), this.optionTagRef = A(), this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
5291
5305
  }
@@ -5347,8 +5361,8 @@ let Q = class extends P {
5347
5361
  <pkt-input-wrapper
5348
5362
  .label=${this.label}
5349
5363
  .helptext=${this.helptext}
5350
- .helptextDropdown=${C(this.helptextDropdown)}
5351
- .helptextDropdownButton=${C(this.helptextDropdownButton)}
5364
+ .helptextDropdown=${S(this.helptextDropdown)}
5365
+ .helptextDropdownButton=${S(this.helptextDropdownButton)}
5352
5366
  ?fullwidth=${this.fullwidth}
5353
5367
  ?hasError=${this.hasError}
5354
5368
  ?inline=${this.inline}
@@ -5422,7 +5436,7 @@ let Q = class extends P {
5422
5436
  ?isMultiSelect=${this.multiple}
5423
5437
  ?allowUserInput=${this.allowUserInput && !this._maxIsReached}
5424
5438
  ?maxIsReached=${this._maxIsReached}
5425
- .customUserInput=${C(this._addValueText)}
5439
+ .customUserInput=${S(this._addValueText)}
5426
5440
  .userMessage=${this._userInfoMessage}
5427
5441
  @search=${this.handleSearch}
5428
5442
  @option-toggle=${this.handleOptionToggled}
@@ -5453,11 +5467,11 @@ let Q = class extends P {
5453
5467
  @blur=${this.handleBlur}
5454
5468
  autocomplete="off"
5455
5469
  role="combobox"
5456
- aria-label=${C(this.label)}
5470
+ aria-label=${S(this.label)}
5457
5471
  aria-autocomplete=${this.typeahead ? "both" : "list"}
5458
5472
  aria-controls="${this.id}-listbox"
5459
- aria-multiselectable=${C(this.multiple ? "true" : void 0)}
5460
- aria-activedescendant=${C(
5473
+ aria-multiselectable=${S(this.multiple ? "true" : void 0)}
5474
+ aria-activedescendant=${S(
5461
5475
  this._value[0] && this.findValueInOptions(this._value[0]) ? `${this.id}-listbox-${this.findIndexInOptions(this._value[0])}` : void 0
5462
5476
  )}
5463
5477
  ${E(this.inputRef)}
@@ -5660,11 +5674,11 @@ let Q = class extends P {
5660
5674
  var e, s;
5661
5675
  if (this.disabled) return;
5662
5676
  this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
5663
- const a = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, n = this._value.includes(t || a || ""), r = !!a, l = ((s = this._options.find((S) => S.value === t)) == null ? void 0 : s.disabled) || !1, d = !(t != null && t.trim()), p = !this.multiple, m = this.multiple, f = this.isMaxItemsReached();
5677
+ const a = ((e = this.findValueInOptions(t)) == null ? void 0 : e.value) || null, n = this._value.includes(t || a || ""), r = !!a, l = ((s = this._options.find((C) => C.value === t)) == null ? void 0 : s.disabled) || !1, d = !(t != null && t.trim()), p = !this.multiple, m = this.multiple, f = this.isMaxItemsReached();
5664
5678
  let y = !1, b = !0, k = "", w = "";
5665
5679
  l || (!r && this.allowUserInput && !d ? (this.addNewUserValue(t), k = "Ny verdi lagt til", y = !m) : !r && !this.allowUserInput ? (p && this._value[0] && this.removeValue(this._value[0]), b = !1, y = !0, k = "Ingen treff i søket") : n ? (this.removeValue(a), y = !0) : d && p ? (this.removeAllSelected(), y = !0) : p ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(a), y = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : m && !f ? (this.setSelected(a), y = !0) : m && f ? (this._userInfoMessage = "Maks antall valg nådd", b = !1, w = t) : (p && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", b = !1, y = !0, w = t), this._isOptionsOpen = y, y || window.setTimeout(() => {
5666
- var S;
5667
- (S = this.focusRef.value) == null || S.focus();
5680
+ var C;
5681
+ (C = this.focusRef.value) == null || C.focus();
5668
5682
  }, 0), this._userInfoMessage = k, this._search = w || "", this.resetComboboxInput(b), m && this.isMaxItemsReached());
5669
5683
  }
5670
5684
  setSelected(t) {
@@ -5967,7 +5981,7 @@ var yl = Object.defineProperty, $l = Object.getOwnPropertyDescriptor, $t = (i, t
5967
5981
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
5968
5982
  return s && a && yl(t, e, a), a;
5969
5983
  };
5970
- let vt = class extends P {
5984
+ let bt = class extends D {
5971
5985
  constructor() {
5972
5986
  super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.isSwitch = !1, this.labelPosition = "right", this.hideLabel = !1, this.checked = null, this.indeterminate = !1, this.type = "checkbox", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut";
5973
5987
  }
@@ -6054,52 +6068,52 @@ let vt = class extends P {
6054
6068
  };
6055
6069
  $t([
6056
6070
  o({ type: String, reflect: !0 })
6057
- ], vt.prototype, "value", 2);
6071
+ ], bt.prototype, "value", 2);
6058
6072
  $t([
6059
6073
  o({ type: String })
6060
- ], vt.prototype, "checkHelptext", 2);
6074
+ ], bt.prototype, "checkHelptext", 2);
6061
6075
  $t([
6062
6076
  o({ type: Boolean })
6063
- ], vt.prototype, "defaultChecked", 2);
6077
+ ], bt.prototype, "defaultChecked", 2);
6064
6078
  $t([
6065
6079
  o({ type: Boolean })
6066
- ], vt.prototype, "hasTile", 2);
6080
+ ], bt.prototype, "hasTile", 2);
6067
6081
  $t([
6068
6082
  o({ type: Boolean })
6069
- ], vt.prototype, "isSwitch", 2);
6083
+ ], bt.prototype, "isSwitch", 2);
6070
6084
  $t([
6071
6085
  o({ type: String })
6072
- ], vt.prototype, "labelPosition", 2);
6086
+ ], bt.prototype, "labelPosition", 2);
6073
6087
  $t([
6074
6088
  o({ type: Boolean })
6075
- ], vt.prototype, "hideLabel", 2);
6089
+ ], bt.prototype, "hideLabel", 2);
6076
6090
  $t([
6077
6091
  o({ type: Boolean, reflect: !0 })
6078
- ], vt.prototype, "checked", 2);
6092
+ ], bt.prototype, "checked", 2);
6079
6093
  $t([
6080
6094
  o({ type: Boolean, reflect: !0 })
6081
- ], vt.prototype, "indeterminate", 2);
6095
+ ], bt.prototype, "indeterminate", 2);
6082
6096
  $t([
6083
6097
  o({ type: String, reflect: !0 })
6084
- ], vt.prototype, "type", 2);
6098
+ ], bt.prototype, "type", 2);
6085
6099
  $t([
6086
6100
  o({ type: String })
6087
- ], vt.prototype, "tagText", 2);
6101
+ ], bt.prototype, "tagText", 2);
6088
6102
  $t([
6089
6103
  o({ type: Boolean })
6090
- ], vt.prototype, "optionalTag", 2);
6104
+ ], bt.prototype, "optionalTag", 2);
6091
6105
  $t([
6092
6106
  o({ type: String })
6093
- ], vt.prototype, "optionalText", 2);
6107
+ ], bt.prototype, "optionalText", 2);
6094
6108
  $t([
6095
6109
  o({ type: Boolean })
6096
- ], vt.prototype, "requiredTag", 2);
6110
+ ], bt.prototype, "requiredTag", 2);
6097
6111
  $t([
6098
6112
  o({ type: String })
6099
- ], vt.prototype, "requiredText", 2);
6100
- vt = $t([
6113
+ ], bt.prototype, "requiredText", 2);
6114
+ bt = $t([
6101
6115
  j("pkt-checkbox")
6102
- ], vt);
6116
+ ], bt);
6103
6117
  var _l = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Vi = (i, t, e, s) => {
6104
6118
  for (var a = s > 1 ? void 0 : s ? wl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
6105
6119
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
@@ -6522,9 +6536,9 @@ let It = class extends K {
6522
6536
  .type=${this.inputType}
6523
6537
  id="${this.id}-input"
6524
6538
  .value=${this.value}
6525
- min=${C(this.min)}
6526
- max=${C(this.max)}
6527
- placeholder=${C(this.placeholder)}
6539
+ min=${S(this.min)}
6540
+ max=${S(this.max)}
6541
+ placeholder=${S(this.placeholder)}
6528
6542
  ?readonly=${this.isInputReadonly}
6529
6543
  aria-describedby="${this.id}-helptext"
6530
6544
  @click=${(t) => {
@@ -6705,9 +6719,9 @@ let Tt = class extends K {
6705
6719
  .type=${this.inputType}
6706
6720
  id="${this.id}-input"
6707
6721
  .value=${this.value[0] ?? ""}
6708
- min=${C(this.min)}
6709
- max=${C(this.max)}
6710
- placeholder=${C(this.placeholder)}
6722
+ min=${S(this.min)}
6723
+ max=${S(this.max)}
6724
+ placeholder=${S(this.placeholder)}
6711
6725
  ?readonly=${this.isInputReadonly}
6712
6726
  ?disabled=${this.disabled}
6713
6727
  @click=${(e) => {
@@ -6769,9 +6783,9 @@ let Tt = class extends K {
6769
6783
  id="${this.id}-to"
6770
6784
  aria-labelledby="${this.id}-to-label"
6771
6785
  .value=${this.value[1] ?? ""}
6772
- min=${C(this.min)}
6773
- max=${C(this.max)}
6774
- placeholder=${C(this.placeholder)}
6786
+ min=${S(this.min)}
6787
+ max=${S(this.max)}
6788
+ placeholder=${S(this.placeholder)}
6775
6789
  ?readonly=${this.isInputReadonly}
6776
6790
  ?disabled=${this.disabled}
6777
6791
  @click=${(e) => {
@@ -6957,9 +6971,9 @@ let Nt = class extends K {
6957
6971
  class=${M(this.inputClasses)}
6958
6972
  .type=${this.inputType}
6959
6973
  id="${this.id}-input"
6960
- min=${C(this.min)}
6961
- max=${C(this.max)}
6962
- placeholder=${C(this.placeholder)}
6974
+ min=${S(this.min)}
6975
+ max=${S(this.max)}
6976
+ placeholder=${S(this.placeholder)}
6963
6977
  ?readonly=${this.isInputReadonly}
6964
6978
  ?disabled=${this.isInputDisabled}
6965
6979
  @click=${(t) => {
@@ -7047,12 +7061,12 @@ jt([
7047
7061
  Nt = jt([
7048
7062
  j("pkt-datepicker-multiple")
7049
7063
  ], Nt);
7050
- var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, dt = (i, t, e, s) => {
7064
+ var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7051
7065
  for (var a = s > 1 ? void 0 : s ? Il(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7052
7066
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7053
7067
  return s && a && Dl(t, e, a), a;
7054
7068
  };
7055
- let tt = class extends P {
7069
+ let tt = class extends D {
7056
7070
  /**
7057
7071
  * Housekeeping / lifecycle methods
7058
7072
  */
@@ -7378,61 +7392,61 @@ let tt = class extends P {
7378
7392
  );
7379
7393
  }
7380
7394
  };
7381
- dt([
7395
+ ct([
7382
7396
  o({ type: String, reflect: !0 })
7383
7397
  ], tt.prototype, "value", 1);
7384
- dt([
7398
+ ct([
7385
7399
  o({ type: Array })
7386
7400
  ], tt.prototype, "_value", 2);
7387
- dt([
7401
+ ct([
7388
7402
  o({ type: String, reflect: !0 })
7389
7403
  ], tt.prototype, "label", 2);
7390
- dt([
7404
+ ct([
7391
7405
  o({ type: String })
7392
7406
  ], tt.prototype, "dateformat", 2);
7393
- dt([
7407
+ ct([
7394
7408
  o({ type: Boolean, reflect: !0 })
7395
7409
  ], tt.prototype, "multiple", 2);
7396
- dt([
7410
+ ct([
7397
7411
  o({ type: Number, reflect: !0 })
7398
7412
  ], tt.prototype, "maxlength", 2);
7399
- dt([
7413
+ ct([
7400
7414
  o({ type: Boolean, reflect: !0 })
7401
7415
  ], tt.prototype, "range", 2);
7402
- dt([
7416
+ ct([
7403
7417
  o({ type: Boolean })
7404
7418
  ], tt.prototype, "showRangeLabels", 2);
7405
- dt([
7419
+ ct([
7406
7420
  o({ type: String, reflect: !0 })
7407
7421
  ], tt.prototype, "min", 2);
7408
- dt([
7422
+ ct([
7409
7423
  o({ type: String, reflect: !0 })
7410
7424
  ], tt.prototype, "max", 2);
7411
- dt([
7425
+ ct([
7412
7426
  o({ type: Boolean })
7413
7427
  ], tt.prototype, "weeknumbers", 2);
7414
- dt([
7428
+ ct([
7415
7429
  o({ type: Boolean, reflect: !0 })
7416
7430
  ], tt.prototype, "withcontrols", 2);
7417
- dt([
7431
+ ct([
7418
7432
  o({ converter: hi.csvToArray })
7419
7433
  ], tt.prototype, "excludedates", 2);
7420
- dt([
7434
+ ct([
7421
7435
  o({ converter: hi.csvToArray })
7422
7436
  ], tt.prototype, "excludeweekdays", 2);
7423
- dt([
7437
+ ct([
7424
7438
  o({ type: String })
7425
7439
  ], tt.prototype, "currentmonth", 2);
7426
- dt([
7440
+ ct([
7427
7441
  o({ type: Boolean, reflect: !0 })
7428
7442
  ], tt.prototype, "calendarOpen", 2);
7429
- dt([
7443
+ ct([
7430
7444
  o({ type: String })
7431
7445
  ], tt.prototype, "timezone", 2);
7432
- dt([
7446
+ ct([
7433
7447
  B()
7434
7448
  ], tt.prototype, "inputClasses", 2);
7435
- tt = dt([
7449
+ tt = ct([
7436
7450
  j("pkt-datepicker")
7437
7451
  ], tt);
7438
7452
  const Rl = { href: { default: "#" }, target: { default: "_self" } }, Ta = {
@@ -7497,7 +7511,7 @@ let we = class extends K {
7497
7511
  href=${this.href}
7498
7512
  class=${t}
7499
7513
  target=${this.openInNewTab ? "_blank" : "_self"}
7500
- rel=${C(this.openInNewTab ? "noopener noreferrer" : void 0)}
7514
+ rel=${S(this.openInNewTab ? "noopener noreferrer" : void 0)}
7501
7515
  >
7502
7516
  ${this.iconName && u`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
7503
7517
  ${this.title && u`<div class=${e}>${this.title}</div>`}
@@ -7533,7 +7547,7 @@ var Fl = Object.defineProperty, Ul = Object.getOwnPropertyDescriptor, pe = (i, t
7533
7547
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7534
7548
  return s && a && Fl(t, e, a), a;
7535
7549
  };
7536
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
7550
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
7537
7551
  let Yt = class extends K {
7538
7552
  constructor() {
7539
7553
  super(), this.defaultSlot = A(), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1, this.slotController = new rt(this, this.defaultSlot);
@@ -7849,7 +7863,7 @@ const nn = "important", Yl = " !" + nn, Zl = Ue(class extends li {
7849
7863
  return St;
7850
7864
  }
7851
7865
  });
7852
- var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, ct = (i, t, e, s) => {
7866
+ var Jl = Object.defineProperty, Xl = Object.getOwnPropertyDescriptor, pt = (i, t, e, s) => {
7853
7867
  for (var a = s > 1 ? void 0 : s ? Xl(t, e) : t, n = i.length - 1, r; n >= 0; n--)
7854
7868
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7855
7869
  return s && a && Jl(t, e, a), a;
@@ -7911,61 +7925,61 @@ let et = class extends K {
7911
7925
  t == null || t === "" ? this.removeAttribute(i) : this.setAttribute(i, String(t));
7912
7926
  }
7913
7927
  };
7914
- ct([
7928
+ pt([
7915
7929
  o({ type: String })
7916
7930
  ], et.prototype, "ariaLabel", 2);
7917
- ct([
7931
+ pt([
7918
7932
  o({ type: String, reflect: !0 })
7919
7933
  ], et.prototype, "ariaLabelledby", 2);
7920
- ct([
7934
+ pt([
7921
7935
  o({ type: String, reflect: !0 })
7922
7936
  ], et.prototype, "ariaValueText", 2);
7923
- ct([
7937
+ pt([
7924
7938
  o({ type: String })
7925
7939
  ], et.prototype, "ariaLive", 2);
7926
- ct([
7940
+ pt([
7927
7941
  o({ type: String, reflect: !0 })
7928
7942
  ], et.prototype, "id", 2);
7929
- ct([
7943
+ pt([
7930
7944
  o({ type: String })
7931
7945
  ], et.prototype, "role", 2);
7932
- ct([
7946
+ pt([
7933
7947
  o({ type: String })
7934
7948
  ], et.prototype, "skin", 2);
7935
- ct([
7949
+ pt([
7936
7950
  o({ type: String })
7937
7951
  ], et.prototype, "statusPlacement", 2);
7938
- ct([
7952
+ pt([
7939
7953
  o({ type: String })
7940
7954
  ], et.prototype, "statusType", 2);
7941
- ct([
7955
+ pt([
7942
7956
  o({ type: String, reflect: !0 })
7943
7957
  ], et.prototype, "title", 2);
7944
- ct([
7958
+ pt([
7945
7959
  o({ type: String })
7946
7960
  ], et.prototype, "titlePosition", 2);
7947
- ct([
7961
+ pt([
7948
7962
  o({ type: Number, reflect: !0 })
7949
7963
  ], et.prototype, "valueCurrent", 2);
7950
- ct([
7964
+ pt([
7951
7965
  o({ type: Number })
7952
7966
  ], et.prototype, "valueMax", 2);
7953
- ct([
7967
+ pt([
7954
7968
  o({ type: Number })
7955
7969
  ], et.prototype, "valueMin", 2);
7956
- ct([
7970
+ pt([
7957
7971
  B()
7958
7972
  ], et.prototype, "labelWidth", 2);
7959
- ct([
7973
+ pt([
7960
7974
  B()
7961
7975
  ], et.prototype, "progressbarId", 2);
7962
- ct([
7976
+ pt([
7963
7977
  B()
7964
7978
  ], et.prototype, "computedAriaLabelledby", 2);
7965
- ct([
7979
+ pt([
7966
7980
  B()
7967
7981
  ], et.prototype, "computedAriaValueText", 2);
7968
- et = ct([
7982
+ et = pt([
7969
7983
  j("pkt-progressbar")
7970
7984
  ], et);
7971
7985
  var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t, e, s) => {
@@ -7973,7 +7987,7 @@ var Ql = Object.defineProperty, th = Object.getOwnPropertyDescriptor, Ft = (i, t
7973
7987
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
7974
7988
  return s && a && Ql(t, e, a), a;
7975
7989
  };
7976
- let At = class extends P {
7990
+ let At = class extends D {
7977
7991
  constructor() {
7978
7992
  super(...arguments), this.inputRef = A(), this.value = "", this.checkHelptext = null, this.defaultChecked = !1, this.hasTile = !1, this.checked = null, this.type = "radio", this.tagText = null, this.optionalTag = !1, this.optionalText = "Valgfritt", this.requiredTag = !1, this.requiredText = "Må fylles ut", this._checked = !1;
7979
7993
  }
@@ -8337,10 +8351,10 @@ let ie = class extends K {
8337
8351
  ${E(this.elementRef)}
8338
8352
  href=${this.href}
8339
8353
  class="pkt-tabs__link ${e}"
8340
- role=${C(s)}
8341
- aria-selected=${C(a)}
8342
- aria-controls=${C(this.controls || void 0)}
8343
- tabindex=${C(n)}
8354
+ role=${S(s)}
8355
+ aria-selected=${S(a)}
8356
+ aria-controls=${S(this.controls || void 0)}
8357
+ tabindex=${S(n)}
8344
8358
  @click=${this.handleClick}
8345
8359
  @keyup=${this.handleKeyUp}
8346
8360
  >
@@ -8351,10 +8365,10 @@ let ie = class extends K {
8351
8365
  ${E(this.elementRef)}
8352
8366
  type="button"
8353
8367
  class="pkt-tabs__button pkt-link-button ${e}"
8354
- role=${C(s)}
8355
- aria-selected=${C(a)}
8356
- aria-controls=${C(this.controls || void 0)}
8357
- tabindex=${C(n)}
8368
+ role=${S(s)}
8369
+ aria-selected=${S(a)}
8370
+ aria-controls=${S(this.controls || void 0)}
8371
+ tabindex=${S(n)}
8358
8372
  @click=${this.handleClick}
8359
8373
  @keyup=${this.handleKeyUp}
8360
8374
  >
@@ -8420,7 +8434,7 @@ var dh = Object.defineProperty, ch = Object.getOwnPropertyDescriptor, ji = (i, t
8420
8434
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8421
8435
  return s && a && dh(t, e, a), a;
8422
8436
  };
8423
- let ni = class extends P {
8437
+ let ni = class extends D {
8424
8438
  constructor() {
8425
8439
  super(), this.inputRef = A(), this.helptextSlot = A(), this.value = "", this.autocomplete = "off", this.rows = null, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
8426
8440
  }
@@ -8466,10 +8480,10 @@ let ni = class extends P {
8466
8480
  class=${t}
8467
8481
  id=${this.id + "-input"}
8468
8482
  name=${(this.name || this.id) + "-input"}
8469
- placeholder=${C(this.placeholder)}
8483
+ placeholder=${S(this.placeholder)}
8470
8484
  .value=${hh(this.value)}
8471
- minlength=${C(this.minlength)}
8472
- maxlength=${C(this.maxlength)}
8485
+ minlength=${S(this.minlength)}
8486
+ maxlength=${S(this.maxlength)}
8473
8487
  ?readonly=${this.readonly}
8474
8488
  autocomplete=${this.autocomplete}
8475
8489
  aria-labelledby=${e}
@@ -8513,7 +8527,7 @@ var ph = Object.defineProperty, uh = Object.getOwnPropertyDescriptor, re = (i, t
8513
8527
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8514
8528
  return s && a && ph(t, e, a), a;
8515
8529
  };
8516
- let Zt = class extends P {
8530
+ let Zt = class extends D {
8517
8531
  constructor() {
8518
8532
  super(), this.inputRef = A(), this.helptextSlot = A(), this.value = "", this.type = "text", this.size = null, this.autocomplete = null, this.iconNameRight = null, this.prefix = null, this.suffix = null, this.omitSearchIcon = !1, this.counterCurrent = 0, this.slotController = new rt(this, this.helptextSlot);
8519
8533
  }
@@ -8564,14 +8578,14 @@ let Zt = class extends P {
8564
8578
  type=${this.type}
8565
8579
  name=${(this.name || this.id) + "-input"}
8566
8580
  id=${this.id + "-input"}
8567
- placeholder=${C(this.placeholder)}
8581
+ placeholder=${S(this.placeholder)}
8568
8582
  aria-labelledby=${s}
8569
8583
  autocomplete=${this.autocomplete || "off"}
8570
- minlength=${C(this.minlength || void 0)}
8571
- maxlength=${C(this.maxlength || void 0)}
8572
- min=${C(this.min || void 0)}
8573
- max=${C(this.max || void 0)}
8574
- step=${C(this.step || void 0)}
8584
+ minlength=${S(this.minlength || void 0)}
8585
+ maxlength=${S(this.maxlength || void 0)}
8586
+ min=${S(this.min || void 0)}
8587
+ max=${S(this.max || void 0)}
8588
+ step=${S(this.step || void 0)}
8575
8589
  ?readonly=${this.readonly}
8576
8590
  size=${this.size || $}
8577
8591
  .value=${this.value}
@@ -8651,7 +8665,7 @@ var mh = Object.defineProperty, fh = Object.getOwnPropertyDescriptor, cs = (i, t
8651
8665
  (r = i[n]) && (a = (s ? r(t, e, a) : r(a)) || a);
8652
8666
  return s && a && mh(t, e, a), a;
8653
8667
  };
8654
- let Ii = class extends P {
8668
+ let Ii = class extends D {
8655
8669
  constructor() {
8656
8670
  super(), this.inputRef = A(), this.helptextSlot = A(), this._optionsProp = [], this.value = "", this._options = [], this.selectedIndex = -1, this.selectedOptions = void 0, this.optionsController = new an(this), this.slotController = new rt(this, this.helptextSlot), this.slotController.skipOptions = !0;
8657
8671
  }
@@ -8742,23 +8756,23 @@ let Ii = class extends P {
8742
8756
  ?optionalTag=${this.optionalTag}
8743
8757
  ?requiredTag=${this.requiredTag}
8744
8758
  useWrapper=${this.useWrapper}
8745
- ariaDescribedBy=${C(this.ariaDescribedBy)}
8759
+ ariaDescribedBy=${S(this.ariaDescribedBy)}
8746
8760
  class="pkt-select"
8747
- errorMessage=${C(this.errorMessage)}
8761
+ errorMessage=${S(this.errorMessage)}
8748
8762
  forId=${this.id + "-input"}
8749
- helptext=${C(this.helptext)}
8750
- helptextDropdown=${C(this.helptextDropdown)}
8751
- helptextDropdownButton=${C(this.helptextDropdownButton)}
8752
- label=${C(this.label)}
8753
- optionalText=${C(this.optionalText)}
8754
- requiredText=${C(this.requiredText)}
8755
- tagText=${C(this.tagText)}
8763
+ helptext=${S(this.helptext)}
8764
+ helptextDropdown=${S(this.helptextDropdown)}
8765
+ helptextDropdownButton=${S(this.helptextDropdownButton)}
8766
+ label=${S(this.label)}
8767
+ optionalText=${S(this.optionalText)}
8768
+ requiredText=${S(this.requiredText)}
8769
+ tagText=${S(this.tagText)}
8756
8770
  >
8757
8771
  <select
8758
8772
  class=${i}
8759
8773
  aria-invalid=${this.hasError}
8760
8774
  aria-errormessage=${`${this.id}-error`}
8761
- aria-labelledby=${C(this.ariaLabelledby)}
8775
+ aria-labelledby=${S(this.ariaLabelledby)}
8762
8776
  ?disabled=${this.disabled}
8763
8777
  id=${this.id + "-input"}
8764
8778
  name=${(this.name || this.id) + "-input"}
@@ -8902,7 +8916,7 @@ ri = Fi([
8902
8916
  const L = Jt({
8903
8917
  tagName: "pkt-icon",
8904
8918
  elementClass: Re,
8905
- react: mt,
8919
+ react: gt,
8906
8920
  displayName: "PktIcon",
8907
8921
  events: {}
8908
8922
  }), bh = Z(
@@ -8919,18 +8933,18 @@ const L = Jt({
8919
8933
  onClick: p,
8920
8934
  onToggle: m
8921
8935
  }, f) => {
8922
- const [y, b] = ke(i), { name: k } = kn(), w = l || k, S = n !== void 0 ? n : y;
8936
+ const [y, b] = ke(i), { name: k } = kn(), w = l || k, C = n !== void 0 ? n : y;
8923
8937
  De(() => {
8924
8938
  n === void 0 && b(i);
8925
8939
  }, [i, n]);
8926
- const O = (T) => {
8927
- const G = T.currentTarget.open;
8928
- n === void 0 && b(G), m == null || m(T);
8929
- }, N = (T) => {
8940
+ const O = (N) => {
8941
+ const G = N.currentTarget.open;
8942
+ n === void 0 && b(G), m == null || m(N);
8943
+ }, T = (N) => {
8930
8944
  setTimeout(() => {
8931
- p == null || p(T);
8945
+ p == null || p(N);
8932
8946
  }, 0);
8933
- }, I = [
8947
+ }, P = [
8934
8948
  "pkt-accordion-item",
8935
8949
  a && "pkt-accordion-item--compact",
8936
8950
  s && `pkt-accordion-item--${s}`,
@@ -8940,10 +8954,10 @@ const L = Jt({
8940
8954
  "details",
8941
8955
  {
8942
8956
  ref: f,
8943
- className: I,
8957
+ className: P,
8944
8958
  id: t,
8945
- open: S,
8946
- onClick: N,
8959
+ open: C,
8960
+ onClick: T,
8947
8961
  name: w,
8948
8962
  onToggle: O,
8949
8963
  children: [
@@ -9001,7 +9015,7 @@ function yh() {
9001
9015
  })(Es)), Es.exports;
9002
9016
  }
9003
9017
  var $h = yh();
9004
- const ht = /* @__PURE__ */ kh($h), ln = ({
9018
+ const dt = /* @__PURE__ */ kh($h), ln = ({
9005
9019
  children: i,
9006
9020
  closeAlert: t,
9007
9021
  compact: e,
@@ -9026,7 +9040,7 @@ const ht = /* @__PURE__ */ kh($h), ln = ({
9026
9040
  }, w = Ls(() => {
9027
9041
  y(!0), m.onClose && m.onClose(new CustomEvent("close", { detail: { origin: event }, bubbles: !0, composed: !0 }));
9028
9042
  }, [m.onClose, y]);
9029
- return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: ht(b, p), children: /* @__PURE__ */ x("div", { className: ht(k), children: [
9043
+ return /* @__PURE__ */ h("div", { ...m, "aria-live": n || r, role: l, className: dt(b, p), children: /* @__PURE__ */ x("div", { className: dt(k), children: [
9030
9044
  /* @__PURE__ */ h(
9031
9045
  L,
9032
9046
  {
@@ -9061,7 +9075,7 @@ ln.displayName = "PktAlert";
9061
9075
  const _h = Jt({
9062
9076
  tagName: "pkt-backlink",
9063
9077
  elementClass: si,
9064
- react: mt,
9078
+ react: gt,
9065
9079
  displayName: "PktBackLink"
9066
9080
  });
9067
9081
  _h.displayName = "PktBackLink";
@@ -9102,53 +9116,62 @@ const Gd = Z(
9102
9116
  ] });
9103
9117
  }
9104
9118
  );
9105
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.19/animations/";
9119
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/13.20/animations/";
9106
9120
  const oi = Z(
9107
9121
  ({
9108
9122
  children: i,
9109
9123
  className: t,
9110
9124
  iconName: e = "user",
9111
9125
  secondIconName: s = "user",
9112
- size: a = "medium",
9113
- fullWidth: n = !1,
9114
- fullWidthOnMobile: r = !1,
9115
- skin: l = "primary",
9116
- type: d = "button",
9117
- variant: p = "label-only",
9118
- state: m,
9119
- color: f,
9120
- isLoading: y = void 0,
9121
- disabled: b = void 0,
9122
- loadingAnimationPath: k = window.pktAnimationPath,
9123
- ...w
9124
- }, S) => {
9125
- const O = [
9126
+ iconPath: a,
9127
+ secondIconPath: n,
9128
+ size: r = "medium",
9129
+ fullWidth: l = !1,
9130
+ fullWidthOnMobile: d = !1,
9131
+ skin: p = "primary",
9132
+ type: m = "button",
9133
+ variant: f = "label-only",
9134
+ state: y,
9135
+ color: b,
9136
+ isLoading: k = void 0,
9137
+ disabled: w = void 0,
9138
+ loadingAnimationPath: C = window.pktAnimationPath,
9139
+ ...O
9140
+ }, T) => {
9141
+ const P = [
9126
9142
  t,
9127
9143
  "pkt-btn",
9128
- a && `pkt-btn--${a}`,
9129
- n && "pkt-btn--full",
9130
- r && "pkt-btn--full-small",
9131
- l && `pkt-btn--${l}`,
9144
+ r && `pkt-btn--${r}`,
9145
+ l && "pkt-btn--full",
9146
+ d && "pkt-btn--full-small",
9132
9147
  p && `pkt-btn--${p}`,
9133
9148
  f && `pkt-btn--${f}`,
9134
- m && `pkt-btn--${m}`,
9135
- y && "pkt-btn--isLoading"
9149
+ b && `pkt-btn--${b}`,
9150
+ y && `pkt-btn--${y}`,
9151
+ k && "pkt-btn--isLoading"
9136
9152
  ].filter(Boolean).join(" ");
9137
9153
  return /* @__PURE__ */ x(
9138
9154
  "button",
9139
9155
  {
9140
- ...w,
9141
- "aria-busy": y || void 0,
9142
- "aria-disabled": b || void 0,
9143
- disabled: b,
9144
- className: O,
9145
- type: d,
9146
- ref: S,
9156
+ ...O,
9157
+ "aria-busy": k || void 0,
9158
+ "aria-disabled": w || void 0,
9159
+ disabled: w,
9160
+ className: P,
9161
+ type: m,
9162
+ ref: T,
9147
9163
  children: [
9148
- y && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: k }),
9149
- p !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e }),
9164
+ k && /* @__PURE__ */ h(L, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: C }),
9165
+ f !== "label-only" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: e, ...a && { path: a } }),
9150
9166
  /* @__PURE__ */ h("span", { className: "pkt-btn__text", children: i }),
9151
- p === "icons-right-and-left" && /* @__PURE__ */ h(L, { className: "pkt-btn__icon", name: s })
9167
+ f === "icons-right-and-left" && /* @__PURE__ */ h(
9168
+ L,
9169
+ {
9170
+ className: "pkt-btn__icon",
9171
+ name: s,
9172
+ ...n && { path: n }
9173
+ }
9174
+ )
9152
9175
  ]
9153
9176
  }
9154
9177
  );
@@ -9157,8 +9180,8 @@ const oi = Z(
9157
9180
  oi.displayName = "PktButton";
9158
9181
  const wh = Jt({
9159
9182
  tagName: "pkt-card",
9160
- elementClass: lt,
9161
- react: mt,
9183
+ elementClass: ht,
9184
+ react: gt,
9162
9185
  displayName: "PktCard",
9163
9186
  events: {}
9164
9187
  }), xh = Z(
@@ -9183,16 +9206,16 @@ const Sh = Z(
9183
9206
  optionalTag: b,
9184
9207
  optionalText: k = "Valgfritt",
9185
9208
  requiredTag: w,
9186
- requiredText: S = "Må fylles ut",
9209
+ requiredText: C = "Må fylles ut",
9187
9210
  tagText: O,
9188
- ...N
9189
- }, I) => {
9190
- const T = Bs(null);
9211
+ ...T
9212
+ }, P) => {
9213
+ const N = Bs(null);
9191
9214
  De(() => {
9192
- T.current && y !== void 0 && (T.current.indeterminate = y);
9215
+ N.current && y !== void 0 && (N.current.indeterminate = y);
9193
9216
  }, [y]), De(() => {
9194
- typeof I == "function" ? I(T.current) : I && (I.current = T.current);
9195
- }, [I]);
9217
+ typeof P == "function" ? P(N.current) : P && (P.current = N.current);
9218
+ }, [P]);
9196
9219
  const H = [r, "pkt-input-check"].filter(Boolean).join(" "), G = [
9197
9220
  "pkt-input-check__input-label",
9198
9221
  e ? "pkt-input-check__input-label--disabled" : "",
@@ -9202,10 +9225,10 @@ const Sh = Z(
9202
9225
  "pkt-input-check__input",
9203
9226
  t ? "pkt-input-check__input--tile" : "",
9204
9227
  e && t ? "pkt-input-check__input--tile-disabled" : ""
9205
- ].filter(Boolean).join(" "), pt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9206
- O && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--gray", children: O }),
9207
- b && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--blue-light", children: k }),
9208
- w && /* @__PURE__ */ h("span", { className: pt + " pkt-tag--beige", children: S })
9228
+ ].filter(Boolean).join(" "), mt = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), J = () => /* @__PURE__ */ x(Wt, { children: [
9229
+ O && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--gray", children: O }),
9230
+ b && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--blue-light", children: k }),
9231
+ w && /* @__PURE__ */ h("span", { className: mt + " pkt-tag--beige", children: C })
9209
9232
  ] });
9210
9233
  return /* @__PURE__ */ h("div", { className: H, children: /* @__PURE__ */ x("div", { className: _t, children: [
9211
9234
  p === "left" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
@@ -9218,13 +9241,13 @@ const Sh = Z(
9218
9241
  "input",
9219
9242
  {
9220
9243
  role: l ? "switch" : "checkbox",
9221
- ref: T,
9244
+ ref: N,
9222
9245
  className: `pkt-input-check__input-checkbox ${n ? "pkt-input-check__input-checkbox--error" : ""}`,
9223
9246
  type: "checkbox",
9224
9247
  id: i,
9225
9248
  disabled: e,
9226
9249
  ...f !== void 0 ? { checked: f } : { defaultChecked: m },
9227
- ...N
9250
+ ...T
9228
9251
  }
9229
9252
  ),
9230
9253
  p === "right" && /* @__PURE__ */ x("label", { className: G, htmlFor: i, children: [
@@ -9240,7 +9263,7 @@ Sh.displayName = "PktCheckbox";
9240
9263
  const Ch = Jt({
9241
9264
  tagName: "pkt-combobox",
9242
9265
  elementClass: Q,
9243
- react: mt,
9266
+ react: gt,
9244
9267
  displayName: "PktCombobox",
9245
9268
  events: {
9246
9269
  onClick: "click",
@@ -9259,7 +9282,7 @@ Th.displayName = "PktCombobox";
9259
9282
  const Hs = Jt({
9260
9283
  tagName: "pkt-consent",
9261
9284
  elementClass: Ht,
9262
- react: mt,
9285
+ react: gt,
9263
9286
  displayName: "PktConsent",
9264
9287
  events: {
9265
9288
  onToggleConsent: "toggle-consent"
@@ -9269,7 +9292,7 @@ Hs.displayName = "PktConsent";
9269
9292
  const Nh = Jt({
9270
9293
  tagName: "pkt-datepicker",
9271
9294
  elementClass: tt,
9272
- react: mt,
9295
+ react: gt,
9273
9296
  displayName: "PktDatepicker",
9274
9297
  events: {
9275
9298
  onChange: "change",
@@ -9301,7 +9324,7 @@ const Yd = ({
9301
9324
  console.log(w.detail);
9302
9325
  }
9303
9326
  }) => {
9304
- var S, O;
9327
+ var C, O;
9305
9328
  const w = [s, "pkt-footer"].filter(Boolean).join(" ");
9306
9329
  return /* @__PURE__ */ h("footer", { className: w, "data-mode": "dark", children: /* @__PURE__ */ x("div", { className: "pkt-footer__container", children: [
9307
9330
  /* @__PURE__ */ x("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
@@ -9309,38 +9332,38 @@ const Yd = ({
9309
9332
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: i.title }),
9310
9333
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9311
9334
  i.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: i.text }),
9312
- (S = i.links) == null ? void 0 : S.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9335
+ (C = i.links) == null ? void 0 : C.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9313
9336
  "a",
9314
9337
  {
9315
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9316
- href: N.href,
9317
- target: N.openInNewTab || a ? "_blank" : "_self",
9318
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9338
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9339
+ href: T.href,
9340
+ target: T.openInNewTab || a ? "_blank" : "_self",
9341
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9319
9342
  children: [
9320
9343
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9321
- N.text
9344
+ T.text
9322
9345
  ]
9323
9346
  }
9324
- ) }, `links-${I}`))
9347
+ ) }, `links-${P}`))
9325
9348
  ] })
9326
9349
  ] }),
9327
9350
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
9328
9351
  /* @__PURE__ */ h("h2", { className: "pkt-footer__title", children: t.title }),
9329
9352
  /* @__PURE__ */ x("ul", { className: "pkt-footer__list", children: [
9330
9353
  t.text && /* @__PURE__ */ h("li", { className: "pkt-footer__text", children: t.text }),
9331
- (O = t.links) == null ? void 0 : O.map((N, I) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9354
+ (O = t.links) == null ? void 0 : O.map((T, P) => /* @__PURE__ */ h("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ x(
9332
9355
  "a",
9333
9356
  {
9334
- className: `pkt-footer__link ${N.external ? "pkt-link--external" : ""}`,
9335
- href: N.href,
9336
- target: N.openInNewTab || a ? "_blank" : "_self",
9337
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9357
+ className: `pkt-footer__link ${T.external ? "pkt-link--external" : ""}`,
9358
+ href: T.href,
9359
+ target: T.openInNewTab || a ? "_blank" : "_self",
9360
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9338
9361
  children: [
9339
9362
  /* @__PURE__ */ h(L, { className: "pkt-footer__link-icon", name: "chevron-right" }),
9340
- N.text
9363
+ T.text
9341
9364
  ]
9342
9365
  }
9343
- ) }, `links-${I}`))
9366
+ ) }, `links-${P}`))
9344
9367
  ] })
9345
9368
  ] }),
9346
9369
  /* @__PURE__ */ x("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
@@ -9389,27 +9412,27 @@ const Yd = ({
9389
9412
  ] })
9390
9413
  ] }),
9391
9414
  e && /* @__PURE__ */ x("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
9392
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((N) => N.language).map((N, I) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9415
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-languages", children: e.filter((T) => T.language).map((T, P) => /* @__PURE__ */ h("div", { className: "pkt-footer__social-language", children: /* @__PURE__ */ h(
9393
9416
  "a",
9394
9417
  {
9395
- href: N.href,
9396
- "aria-label": `til ${N.language} versjon av nettsiden`,
9397
- target: N.openInNewTab || a ? "_blank" : "_self",
9398
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9399
- children: N.language
9418
+ href: T.href,
9419
+ "aria-label": `til ${T.language} versjon av nettsiden`,
9420
+ target: T.openInNewTab || a ? "_blank" : "_self",
9421
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9422
+ children: T.language
9400
9423
  }
9401
- ) }, `sociallinks-language-${I}`)) }),
9402
- /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((N) => N.iconName).map((N, I) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9424
+ ) }, `sociallinks-language-${P}`)) }),
9425
+ /* @__PURE__ */ h("div", { className: "pkt-footer__social-icons", children: e.filter((T) => T.iconName).map((T, P) => /* @__PURE__ */ h(un, { children: /* @__PURE__ */ h(
9403
9426
  "a",
9404
9427
  {
9405
- href: N.href,
9406
- "aria-label": `til ${N.iconName}`,
9428
+ href: T.href,
9429
+ "aria-label": `til ${T.iconName}`,
9407
9430
  className: "pkt-footer__social-icon-link",
9408
- target: N.openInNewTab || a ? "_blank" : "_self",
9409
- rel: N.openInNewTab || a ? "noopener noreferrer" : void 0,
9410
- children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: N.iconName })
9431
+ target: T.openInNewTab || a ? "_blank" : "_self",
9432
+ rel: T.openInNewTab || a ? "noopener noreferrer" : void 0,
9433
+ children: /* @__PURE__ */ h(L, { className: "pkt-footer__social-icon", name: T.iconName })
9411
9434
  }
9412
- ) }, `sociallinks-${I}`)) })
9435
+ ) }, `sociallinks-${P}`)) })
9413
9436
  ] })
9414
9437
  ] }) });
9415
9438
  }, Zd = ({
@@ -9502,19 +9525,19 @@ const Yd = ({
9502
9525
  openMenu: b,
9503
9526
  logOut: k,
9504
9527
  changeRepresentation: w,
9505
- children: S,
9528
+ children: C,
9506
9529
  ...O
9507
- }, N) => {
9508
- const I = mt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9530
+ }, T) => {
9531
+ const P = gt.useMemo(() => typeof (n == null ? void 0 : n.lastLoggedIn) == "string" ? n.lastLoggedIn : n != null && n.lastLoggedIn ? new Date(n.lastLoggedIn).toLocaleString("nb-NO", {
9509
9532
  year: "numeric",
9510
9533
  month: "long",
9511
9534
  day: "numeric"
9512
- }) : "", [n]), [T, H] = mt.useState(!1), [G, _t] = mt.useState(0), [pt, J] = mt.useState(!1), st = mt.useRef(null);
9513
- mt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9535
+ }) : "", [n]), [N, H] = gt.useState(!1), [G, _t] = gt.useState(0), [mt, J] = gt.useState(!1), st = gt.useRef(null);
9536
+ gt.useEffect(() => (document && (document.addEventListener("mouseup", Ot), window.addEventListener("scroll", at)), () => {
9514
9537
  document && (document.removeEventListener("mouseup", Ot), window.removeEventListener("scroll", at));
9515
9538
  }));
9516
9539
  const Et = () => {
9517
- J(!pt);
9540
+ J(!mt);
9518
9541
  }, Ot = (R) => {
9519
9542
  st.current && !st.current.contains(R.target) && J(!1);
9520
9543
  }, at = () => {
@@ -9532,12 +9555,12 @@ const Yd = ({
9532
9555
  id: "pkt-header",
9533
9556
  "data-testid": "pkt-header",
9534
9557
  "aria-label": "Topp",
9535
- className: ht(i, "pkt-header", {
9558
+ className: dt(i, "pkt-header", {
9536
9559
  "pkt-header--fixed": s,
9537
9560
  "pkt-header--scroll-to-hide": a,
9538
- "pkt-header--hidden": T
9561
+ "pkt-header--hidden": N
9539
9562
  }),
9540
- ref: N,
9563
+ ref: T,
9541
9564
  children: [
9542
9565
  /* @__PURE__ */ x("div", { className: "pkt-header__logo", children: [
9543
9566
  typeof t == "string" ? /* @__PURE__ */ h("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: t, children: /* @__PURE__ */ h(
@@ -9546,7 +9569,7 @@ const Yd = ({
9546
9569
  name: "oslologo",
9547
9570
  className: "pkt-header__logo-svg",
9548
9571
  "aria-hidden": "true",
9549
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9572
+ path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9550
9573
  }
9551
9574
  ) }) : /* @__PURE__ */ h(
9552
9575
  "button",
@@ -9560,7 +9583,7 @@ const Yd = ({
9560
9583
  name: "oslologo",
9561
9584
  className: "pkt-header__logo-svg",
9562
9585
  "aria-hidden": "true",
9563
- path: "https://punkt-cdn.oslo.kommune.no/13.19/logos/"
9586
+ path: "https://punkt-cdn.oslo.kommune.no/13.20/logos/"
9564
9587
  }
9565
9588
  )
9566
9589
  }
@@ -9583,7 +9606,7 @@ const Yd = ({
9583
9606
  "li",
9584
9607
  {
9585
9608
  "data-testid": "usermenu",
9586
- className: `pkt-header--has-dropdown ${pt && !T ? "pkt-header--open-dropdown" : ""}`,
9609
+ className: `pkt-header--has-dropdown ${mt && !N ? "pkt-header--open-dropdown" : ""}`,
9587
9610
  ref: st,
9588
9611
  children: [
9589
9612
  /* @__PURE__ */ x(
@@ -9593,7 +9616,7 @@ const Yd = ({
9593
9616
  type: "button",
9594
9617
  role: "button",
9595
9618
  "aria-controls": "pktUserDropdown",
9596
- "aria-expanded": pt,
9619
+ "aria-expanded": mt,
9597
9620
  onClick: Et,
9598
9621
  children: [
9599
9622
  /* @__PURE__ */ h(L, { name: "user", className: "pkt-btn__icon" }),
@@ -9610,7 +9633,7 @@ const Yd = ({
9610
9633
  /* @__PURE__ */ h("div", { className: "pkt-user-menu__name", translate: "no", children: n.name }),
9611
9634
  n.lastLoggedIn && /* @__PURE__ */ x("div", { className: "pkt-user-menu__last-logged-in", children: [
9612
9635
  "Sist pålogget: ",
9613
- /* @__PURE__ */ h("time", { children: I })
9636
+ /* @__PURE__ */ h("time", { children: P })
9614
9637
  ] })
9615
9638
  ] }),
9616
9639
  r && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h("ul", { className: "pkt-list", children: r.map((R, xt) => /* @__PURE__ */ h("li", { children: typeof R.target == "string" ? /* @__PURE__ */ x("a", { href: R.target, className: "pkt-link", children: [
@@ -9652,7 +9675,7 @@ const Yd = ({
9652
9675
  ]
9653
9676
  }
9654
9677
  ),
9655
- S && /* @__PURE__ */ h("li", { children: S }),
9678
+ C && /* @__PURE__ */ h("li", { children: C }),
9656
9679
  y && /* @__PURE__ */ h("li", { children: /* @__PURE__ */ h(
9657
9680
  oi,
9658
9681
  {
@@ -9673,14 +9696,14 @@ const Yd = ({
9673
9696
  ), Eh = Jt({
9674
9697
  tagName: "pkt-heading",
9675
9698
  elementClass: Le,
9676
- react: mt,
9699
+ react: gt,
9677
9700
  displayName: "PktHeading"
9678
9701
  }), Oh = Z(({ children: i, ...t }, e) => /* @__PURE__ */ h(Eh, { "data-testid": "pkt-heading", ...t, ref: e, children: i }));
9679
9702
  Oh.displayName = "PktHeading";
9680
9703
  const Mh = Jt({
9681
9704
  tagName: "pkt-helptext",
9682
9705
  elementClass: ce,
9683
- react: mt,
9706
+ react: gt,
9684
9707
  displayName: "PktHelptext",
9685
9708
  events: {
9686
9709
  onToggleHelpText: "toggleHelpText"
@@ -9715,21 +9738,21 @@ const ps = Z(
9715
9738
  hasError: b = !1,
9716
9739
  errorMessage: k,
9717
9740
  disabled: w = !1,
9718
- inline: S = !1,
9741
+ inline: C = !1,
9719
9742
  ariaDescribedby: O,
9720
- useWrapper: N = !0,
9721
- children: I,
9722
- className: T = "",
9743
+ useWrapper: T = !0,
9744
+ children: P,
9745
+ className: N = "",
9723
9746
  hasFieldset: H = !1,
9724
9747
  role: G = "group",
9725
9748
  counterPosition: _t = "bottom"
9726
- }, pt) => {
9749
+ }, mt) => {
9727
9750
  const [J, st] = ke(!1), Et = O || (e ? `${i}-helptext` : void 0), Ot = !!n, at = Ot && _t === "top", R = Ot && _t === "bottom", xt = () => st((ot) => !ot), Qt = [
9728
9751
  "pkt-inputwrapper",
9729
- T,
9752
+ N,
9730
9753
  b ? "pkt-inputwrapper--error" : "",
9731
9754
  w ? "pkt-inputwrapper--disabled" : "",
9732
- S ? "pkt-inputwrapper--inline" : ""
9755
+ C ? "pkt-inputwrapper--inline" : ""
9733
9756
  ].filter(Boolean).join(" "), oe = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), te = () => Ot ? /* @__PURE__ */ x("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": "true", children: [
9734
9757
  r,
9735
9758
  l ? `/${l}` : ""
@@ -9743,9 +9766,9 @@ const ps = Z(
9743
9766
  " ",
9744
9767
  xe()
9745
9768
  ] });
9746
- return N ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Et, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Et, id: `${i}-label`, children: t });
9769
+ return T ? H ? /* @__PURE__ */ h("legend", { className: "pkt-inputwrapper__legend", id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { className: "pkt-inputwrapper__label", htmlFor: i, "aria-describedby": Et, id: `${i}-label`, children: ot }) : /* @__PURE__ */ h("label", { htmlFor: i, className: "pkt-sr-only", "aria-describedby": Et, id: `${i}-label`, children: t });
9747
9770
  }, le = () => !e && !s ? null : /* @__PURE__ */ x(Wt, { children: [
9748
- e && N && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9771
+ e && T && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__helptext", id: `${i}-helptext`, children: e }),
9749
9772
  s && /* @__PURE__ */ x("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
9750
9773
  /* @__PURE__ */ h(
9751
9774
  oi,
@@ -9778,11 +9801,11 @@ const ps = Z(
9778
9801
  We(),
9779
9802
  le(),
9780
9803
  at && /* @__PURE__ */ h(te, {}),
9781
- I,
9804
+ P,
9782
9805
  R && /* @__PURE__ */ h(te, {}),
9783
9806
  b && k && /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ h(ln, { skin: "error", "aria-live": "assertive", role: "alert", id: `${i}-error`, compact: !0, children: k }) })
9784
9807
  ] });
9785
- return /* @__PURE__ */ h("div", { className: Qt, ref: pt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
9808
+ return /* @__PURE__ */ h("div", { className: Qt, ref: mt, role: G, children: H ? /* @__PURE__ */ h("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": Et, children: Ut }) : /* @__PURE__ */ h("div", { className: "pkt-inputwrapper__fieldset", children: Ut }) });
9786
9809
  }
9787
9810
  );
9788
9811
  ps.displayName = "PktInputWrapper";
@@ -9799,7 +9822,7 @@ const Ih = ({
9799
9822
  "a",
9800
9823
  {
9801
9824
  ...l,
9802
- className: ht({
9825
+ className: dt({
9803
9826
  "pkt-link": !0,
9804
9827
  "pkt-link--icon-left": !!t && s === "left" || !!(t && !s),
9805
9828
  "pkt-link--icon-right": !!t && s === "right",
@@ -9832,12 +9855,12 @@ const Rh = ({
9832
9855
  {
9833
9856
  ...d,
9834
9857
  href: s,
9835
- className: ht(p, l),
9858
+ className: dt(p, l),
9836
9859
  target: n ? "_blank" : "_self",
9837
9860
  rel: n ? "noopener noreferrer" : void 0,
9838
9861
  children: [
9839
9862
  a && /* @__PURE__ */ h(L, { className: "pkt-link__icon", name: a }),
9840
- e && /* @__PURE__ */ h("div", { className: ht(m), children: e }),
9863
+ e && /* @__PURE__ */ h("div", { className: dt(m), children: e }),
9841
9864
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__text", children: i })
9842
9865
  ]
9843
9866
  }
@@ -9847,7 +9870,7 @@ Rh.displayName = "PktLinkCard";
9847
9870
  const Lh = Jt({
9848
9871
  tagName: "pkt-loader",
9849
9872
  elementClass: Yt,
9850
- react: mt,
9873
+ react: gt,
9851
9874
  displayName: "PktLoader",
9852
9875
  events: {}
9853
9876
  }), Bh = Z(
@@ -9873,7 +9896,7 @@ const Vh = ({
9873
9896
  }, f = mn(), y = Ls(() => {
9874
9897
  p(!0), r && r();
9875
9898
  }, [p, r]);
9876
- return /* @__PURE__ */ x("div", { ...l, className: ht(m, t), ref: f, children: [
9899
+ return /* @__PURE__ */ x("div", { ...l, className: dt(m, t), ref: f, children: [
9877
9900
  n && /* @__PURE__ */ h("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ h(
9878
9901
  "button",
9879
9902
  {
@@ -9891,7 +9914,7 @@ Vh.displayName = "PktMessagebox";
9891
9914
  const jh = Jt({
9892
9915
  tagName: "pkt-modal",
9893
9916
  elementClass: Rt,
9894
- react: mt,
9917
+ react: gt,
9895
9918
  displayName: "PktModal",
9896
9919
  events: {}
9897
9920
  }), Fh = Z(
@@ -9901,7 +9924,7 @@ Fh.displayName = "PktModal";
9901
9924
  const Uh = Jt({
9902
9925
  tagName: "pkt-progressbar",
9903
9926
  elementClass: et,
9904
- react: mt,
9927
+ react: gt,
9905
9928
  displayName: "PktProgressbar",
9906
9929
  events: {}
9907
9930
  }), Hh = Z(
@@ -9926,34 +9949,34 @@ const qh = Z(
9926
9949
  requiredText: b,
9927
9950
  tagText: k,
9928
9951
  ...w
9929
- }, S) => {
9930
- const O = [s, "pkt-input-check"].filter(Boolean).join(" "), N = [
9952
+ }, C) => {
9953
+ const O = [s, "pkt-input-check"].filter(Boolean).join(" "), T = [
9931
9954
  "pkt-input-check__input",
9932
9955
  a ? "pkt-input-check__input--tile" : "",
9933
9956
  n && a ? "pkt-input-check__input--tile-disabled" : ""
9934
- ].filter(Boolean).join(" "), I = [
9957
+ ].filter(Boolean).join(" "), P = [
9935
9958
  "pkt-input-check__input-checkbox",
9936
9959
  l ? "pkt-input-check__input-checkbox--error" : ""
9937
- ].filter(Boolean).join(" "), T = ["pkt-input-check__input-label", n ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), H = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), G = () => /* @__PURE__ */ x(Wt, { children: [
9960
+ ].filter(Boolean).join(" "), N = ["pkt-input-check__input-label", n ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" "), H = ["pkt-tag", "pkt-tag--small", "pkt-tag--thin-text"].join(" "), G = () => /* @__PURE__ */ x(Wt, { children: [
9938
9961
  k && /* @__PURE__ */ h("span", { className: H + " pkt-tag--gray", children: k }),
9939
9962
  m && /* @__PURE__ */ h("span", { className: H + " pkt-tag--blue-light", children: f }),
9940
9963
  y && /* @__PURE__ */ h("span", { className: H + " pkt-tag--beige", children: b })
9941
9964
  ] });
9942
- return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: N, children: [
9965
+ return /* @__PURE__ */ h("div", { className: O, children: /* @__PURE__ */ x("div", { className: T, children: [
9943
9966
  /* @__PURE__ */ h(
9944
9967
  "input",
9945
9968
  {
9946
- ref: S,
9969
+ ref: C,
9947
9970
  id: i,
9948
9971
  type: "radio",
9949
9972
  name: t,
9950
9973
  disabled: n,
9951
- className: I,
9974
+ className: P,
9952
9975
  ...p !== void 0 ? { checked: p } : { defaultChecked: d },
9953
9976
  ...w
9954
9977
  }
9955
9978
  ),
9956
- /* @__PURE__ */ x("label", { className: T, htmlFor: i, children: [
9979
+ /* @__PURE__ */ x("label", { className: N, htmlFor: i, children: [
9957
9980
  e,
9958
9981
  " ",
9959
9982
  G(),
@@ -9981,13 +10004,13 @@ const Xd = Z(
9981
10004
  onSuggestionClick: b,
9982
10005
  ...k
9983
10006
  }, w) => {
9984
- const S = (T, H) => {
9985
- T ? T() : b && b(H);
9986
- }, O = (T) => {
9987
- d = T.target.value;
9988
- }, N = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
9989
- let I;
9990
- return p ? I = (T) => /* @__PURE__ */ h("form", { role: "search", className: N, action: p, method: m, children: T }) : I = (T) => /* @__PURE__ */ h("div", { role: "search", className: N, children: T }), I(
10007
+ const C = (N, H) => {
10008
+ N ? N() : b && b(H);
10009
+ }, O = (N) => {
10010
+ d = N.target.value;
10011
+ }, T = `pkt-searchinput pkt-searchinput--${i} ${e ? "pkt-searchinput--fullwidth" : ""}`;
10012
+ let P;
10013
+ return p ? P = (N) => /* @__PURE__ */ h("form", { role: "search", className: T, action: p, method: m, children: N }) : P = (N) => /* @__PURE__ */ h("div", { role: "search", className: T, children: N }), P(
9991
10014
  /* @__PURE__ */ x(Wt, { children: [
9992
10015
  a && /* @__PURE__ */ h("label", { htmlFor: a ? s : void 0, className: a ? "pkt-inputwrapper__label" : "", children: a }),
9993
10016
  /* @__PURE__ */ x("div", { className: i === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
@@ -10006,8 +10029,8 @@ const Xd = Z(
10006
10029
  ref: w,
10007
10030
  "aria-controls": `${s}-suggestions`,
10008
10031
  onChange: f || O,
10009
- onKeyUp: y && ((T) => {
10010
- T.key === "Enter" && (T.preventDefault(), y(d));
10032
+ onKeyUp: y && ((N) => {
10033
+ N.key === "Enter" && (N.preventDefault(), y(d));
10011
10034
  }),
10012
10035
  ...k
10013
10036
  }
@@ -10022,25 +10045,25 @@ const Xd = Z(
10022
10045
  color: i === "global" ? "yellow" : void 0,
10023
10046
  type: "submit",
10024
10047
  disabled: t,
10025
- onClick: y && ((T) => {
10026
- T.preventDefault(), y(d);
10048
+ onClick: y && ((N) => {
10049
+ N.preventDefault(), y(d);
10027
10050
  }),
10028
10051
  children: a || r
10029
10052
  }
10030
10053
  )
10031
10054
  ] }),
10032
- l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((T, H) => /* @__PURE__ */ h("li", { children: fn(
10033
- T.href ? "a" : T.onClick ? "button" : "div",
10055
+ l && /* @__PURE__ */ h("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: l.map((N, H) => /* @__PURE__ */ h("li", { children: fn(
10056
+ N.href ? "a" : N.onClick ? "button" : "div",
10034
10057
  {
10035
- href: T.href,
10036
- className: `pkt-searchinput__suggestion ${T.onClick ? "pkt-link-button" : ""} ${T.href || T.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10037
- type: T.onClick ? "button" : void 0,
10038
- onClick: () => S(T.onClick, H),
10039
- onKeyUp: (G) => G.key === "Enter" && S(T.onClick, H)
10058
+ href: N.href,
10059
+ className: `pkt-searchinput__suggestion ${N.onClick ? "pkt-link-button" : ""} ${N.href || N.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
10060
+ type: N.onClick ? "button" : void 0,
10061
+ onClick: () => C(N.onClick, H),
10062
+ onKeyUp: (G) => G.key === "Enter" && C(N.onClick, H)
10040
10063
  },
10041
10064
  /* @__PURE__ */ x(Wt, { children: [
10042
- T.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: T.title }),
10043
- T.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: T.text })
10065
+ N.title && /* @__PURE__ */ h("h3", { className: "pkt-searchinput__suggestion-title", children: N.title }),
10066
+ N.text && /* @__PURE__ */ h("p", { className: "pkt-searchinput__suggestion-text", children: N.text })
10044
10067
  ] })
10045
10068
  ) }, `search-suggestion-${H}`)) })
10046
10069
  ] })
@@ -10064,11 +10087,11 @@ const Xd = Z(
10064
10087
  label: b,
10065
10088
  name: k,
10066
10089
  optionalTag: w = !1,
10067
- optionalText: S,
10090
+ optionalText: C,
10068
10091
  requiredTag: O = !1,
10069
- requiredText: N,
10070
- tagText: I,
10071
- ...T
10092
+ requiredText: T,
10093
+ tagText: P,
10094
+ ...N
10072
10095
  }, H) => {
10073
10096
  const G = [s, "pkt-select"].join(" ");
10074
10097
  return /* @__PURE__ */ h(
@@ -10081,10 +10104,10 @@ const Xd = Z(
10081
10104
  helptextDropdown: d,
10082
10105
  helptextDropdownButton: p,
10083
10106
  optionalTag: w,
10084
- optionalText: S,
10107
+ optionalText: C,
10085
10108
  requiredTag: O,
10086
- requiredText: N,
10087
- tagText: I,
10109
+ requiredText: T,
10110
+ tagText: P,
10088
10111
  hasError: r,
10089
10112
  errorMessage: n,
10090
10113
  disabled: a,
@@ -10101,7 +10124,7 @@ const Xd = Z(
10101
10124
  disabled: a,
10102
10125
  id: `${m}-input`,
10103
10126
  name: k || m,
10104
- ...T,
10127
+ ...N,
10105
10128
  children: e
10106
10129
  }
10107
10130
  )
@@ -10114,10 +10137,10 @@ const Xd = Z(
10114
10137
  ] }), Kh = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", children: [
10115
10138
  /* @__PURE__ */ h("path", { fill: "#2A2859", d: "M3 3h18v18H3z" }),
10116
10139
  /* @__PURE__ */ h("path", { d: "m10.34 16-1.11-1.14L7 12.58l1.11-1.15 2.23 2.28L15.88 8 17 9.15l-5.55 5.71L10.34 16Z", fill: "#F1FDFF" })
10117
- ] }), tc = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: ht("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10140
+ ] }), tc = ({ children: i, className: t, status: e = "incomplete", title: s }) => /* @__PURE__ */ x("li", { className: dt("pkt-step", t, `pkt-step--${e}`), "data-testid": "pkt-step", children: [
10118
10141
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--1", "aria-hidden": !0 }),
10119
10142
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--2", "aria-hidden": !0 }),
10120
- /* @__PURE__ */ h("span", { className: ht("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10143
+ /* @__PURE__ */ h("span", { className: dt("pkt-step__indicator"), children: e === "current" ? Wh : e === "completed" ? Kh : zh }),
10121
10144
  /* @__PURE__ */ h("span", { className: "pkt-step__line pkt-step__line--3", "aria-hidden": !0 }),
10122
10145
  /* @__PURE__ */ x("div", { className: "pkt-step__wrapper", children: [
10123
10146
  /* @__PURE__ */ h("div", { className: "pkt-step__title", children: s }),
@@ -10133,12 +10156,12 @@ const Xd = Z(
10133
10156
  orientation: n = "vertical",
10134
10157
  ...r
10135
10158
  }, l) => {
10136
- const d = ht(
10159
+ const d = dt(
10137
10160
  t,
10138
10161
  "pkt-stepper",
10139
10162
  n === "horizontal" ? "pkt-stepper--horizontal" : "pkt-stepper--vertical"
10140
10163
  ), p = Os.map(e, (m, f) => gn(m) ? vn(m, {
10141
- className: ht(m.props.className, {
10164
+ className: dt(m.props.className, {
10142
10165
  "pkt-step--hideStep": s && f !== i,
10143
10166
  "pkt-step--hideContent": a && f !== i
10144
10167
  })
@@ -10156,7 +10179,7 @@ const Xd = Z(
10156
10179
  "table",
10157
10180
  {
10158
10181
  "data-testid": "pkt-table",
10159
- className: ht(i, "pkt-table", {
10182
+ className: dt(i, "pkt-table", {
10160
10183
  "pkt-table--responsive": s,
10161
10184
  "pkt-table--compact": t,
10162
10185
  "pkt-table--basic": e === "basic",
@@ -10166,17 +10189,17 @@ const Xd = Z(
10166
10189
  ...n,
10167
10190
  children: a
10168
10191
  }
10169
- ), sc = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: ht(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ac = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10192
+ ), sc = ({ id: i, children: t, className: e, ...s }) => /* @__PURE__ */ h("tbody", { id: i, className: dt(e, "pkt-table__body", {}), ...s, role: "rowgroup", children: t }), ac = ({ children: i, className: t, dataLabel: e, ...s }) => /* @__PURE__ */ h(
10170
10193
  "td",
10171
10194
  {
10172
- className: ht(t, "pkt-table__data-cell", {}),
10195
+ className: dt(t, "pkt-table__data-cell", {}),
10173
10196
  "data-label": e,
10174
10197
  role: "cell",
10175
10198
  "data-testid": "pkt-table__data-cell",
10176
10199
  ...s,
10177
10200
  children: i
10178
10201
  }
10179
- ), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: ht(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: ht(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), oc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: ht(i, "pkt-table__row", {}), role: "row", ...e, children: t }), hn = Z(
10202
+ ), nc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("thead", { className: dt(i, "pkt-table__header", {}), role: "rowgroup", ...e, children: t }), rc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("th", { className: dt(i, "pkt-table__header-cell", {}), role: "columnheader", ...e, children: t }), oc = ({ className: i, children: t, ...e }) => /* @__PURE__ */ h("tr", { className: dt(i, "pkt-table__row", {}), role: "row", ...e, children: t }), hn = Z(
10180
10203
  ({
10181
10204
  children: i,
10182
10205
  skin: t,
@@ -10193,14 +10216,14 @@ const Xd = Z(
10193
10216
  }, y) => {
10194
10217
  const [b, k] = ke(!1), w = Ls(() => {
10195
10218
  k(!0), d && d();
10196
- }, [k]), S = Bs(null), [O, N] = ke("");
10219
+ }, [k]), C = Bs(null), [O, T] = ke("");
10197
10220
  De(() => {
10198
10221
  var G, _t;
10199
- N(((_t = (G = S.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10222
+ T(((_t = (G = C.current) == null ? void 0 : G.textContent) == null ? void 0 : _t.trim()) ?? "");
10200
10223
  }, [i]);
10201
- const I = bn(() => {
10224
+ const P = bn(() => {
10202
10225
  if (a && !l) return O && `Klikk for å fjerne ${O}` || m;
10203
- }, [a, l, O, m]), T = {
10226
+ }, [a, l, O, m]), N = {
10204
10227
  "pkt-tag": !0,
10205
10228
  [`pkt-tag--${s}`]: !!s,
10206
10229
  [`pkt-tag--${t}`]: !!t,
@@ -10219,21 +10242,21 @@ const Xd = Z(
10219
10242
  "button",
10220
10243
  {
10221
10244
  ...f,
10222
- className: ht(H, n),
10245
+ className: dt(H, n),
10223
10246
  type: p,
10224
10247
  onClick: w,
10225
10248
  "aria-label": l,
10226
- "aria-description": I,
10249
+ "aria-description": P,
10227
10250
  ref: y,
10228
10251
  children: [
10229
10252
  r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r }),
10230
- /* @__PURE__ */ h("span", { ref: S, children: i }),
10253
+ /* @__PURE__ */ h("span", { ref: C, children: i }),
10231
10254
  /* @__PURE__ */ h(L, { className: "pkt-tag__close-btn", name: "close" })
10232
10255
  ]
10233
10256
  }
10234
- ) : /* @__PURE__ */ x("span", { ...f, className: ht(T, n), ref: y, children: [
10257
+ ) : /* @__PURE__ */ x("span", { ...f, className: dt(N, n), ref: y, children: [
10235
10258
  r && /* @__PURE__ */ h(L, { className: "pkt-tag__icon", name: r, "aria-hidden": "true" }),
10236
- /* @__PURE__ */ h("span", { ref: S, children: i })
10259
+ /* @__PURE__ */ h("span", { ref: C, children: i })
10237
10260
  ] });
10238
10261
  }
10239
10262
  );
@@ -10252,12 +10275,12 @@ const dn = Z(
10252
10275
  ref: (O) => {
10253
10276
  f(d, O), typeof p == "function" ? p(O) : p && (p.current = O);
10254
10277
  }
10255
- }, S = /* @__PURE__ */ x(Wt, { children: [
10278
+ }, C = /* @__PURE__ */ x(Wt, { children: [
10256
10279
  a && /* @__PURE__ */ h(L, { name: a, className: "pkt-icon--small" }),
10257
10280
  i,
10258
10281
  r && /* @__PURE__ */ h(hn, { skin: l, size: "small", children: r })
10259
10282
  ] });
10260
- return e ? /* @__PURE__ */ h("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: S }) : /* @__PURE__ */ h("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: S });
10283
+ return e ? /* @__PURE__ */ h("a", { ...w, href: e, className: `pkt-tabs__link ${t ? "active" : ""}`, children: C }) : /* @__PURE__ */ h("button", { ...w, type: "button", className: `pkt-tabs__button pkt-link-button ${t ? "active" : ""}`, children: C });
10261
10284
  }
10262
10285
  );
10263
10286
  dn.displayName = "PktTabItem";
@@ -10276,12 +10299,12 @@ const cn = Oa(null), Gh = () => {
10276
10299
  const w = e == null ? void 0 : e[k];
10277
10300
  w != null && w.action && w.action(k), s && s(k);
10278
10301
  }, f = (k, w) => {
10279
- var S, O;
10280
- l && (w.code === "ArrowLeft" && k !== 0 && ((S = r.current[k - 1]) == null || S.focus()), w.code === "ArrowRight" && k < p - 1 && ((O = r.current[k + 1]) == null || O.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
10302
+ var C, O;
10303
+ l && (w.code === "ArrowLeft" && k !== 0 && ((C = r.current[k - 1]) == null || C.focus()), w.code === "ArrowRight" && k < p - 1 && ((O = r.current[k + 1]) == null || O.focus()), (w.code === "ArrowDown" || w.code === "Space") && m(k));
10281
10304
  }, y = (k, w) => {
10282
10305
  r.current[k] = w;
10283
10306
  }, b = e == null ? void 0 : e.map((k, w) => {
10284
- var S, O;
10307
+ var C, O;
10285
10308
  return /* @__PURE__ */ h(
10286
10309
  dn,
10287
10310
  {
@@ -10290,7 +10313,7 @@ const cn = Oa(null), Gh = () => {
10290
10313
  onClick: () => m(w),
10291
10314
  icon: k.icon,
10292
10315
  controls: k.controls,
10293
- tag: (S = k.tag) == null ? void 0 : S.text,
10316
+ tag: (C = k.tag) == null ? void 0 : C.text,
10294
10317
  tagSkin: (O = k.tag) == null ? void 0 : O.skin,
10295
10318
  index: w,
10296
10319
  children: k.text
@@ -10318,15 +10341,15 @@ const cn = Oa(null), Gh = () => {
10318
10341
  fullwidth: b = !1,
10319
10342
  label: k,
10320
10343
  name: w,
10321
- optionalTag: S = !1,
10344
+ optionalTag: C = !1,
10322
10345
  optionalText: O,
10323
- requiredTag: N = !1,
10324
- requiredText: I,
10325
- tagText: T = null,
10346
+ requiredTag: T = !1,
10347
+ requiredText: P,
10348
+ tagText: N = null,
10326
10349
  placeholder: H,
10327
10350
  rows: G,
10328
10351
  useWrapper: _t = !0,
10329
- onChange: pt,
10352
+ onChange: mt,
10330
10353
  value: J,
10331
10354
  autoComplete: st = "off",
10332
10355
  minLength: Et,
@@ -10337,8 +10360,8 @@ const cn = Oa(null), Gh = () => {
10337
10360
  }, Qt) => {
10338
10361
  const oe = [n, "pkt-textinput", "pkt-textarea"].join(" "), te = `${i}-input`, xe = `${te}-label`, We = e || xe, [le, Ut] = ke(0), ot = (Se) => {
10339
10362
  var Ce, he;
10340
- if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), pt)
10341
- return pt(Se);
10363
+ if (s && Ut(((he = (Ce = Se.currentTarget) == null ? void 0 : Ce.value) == null ? void 0 : he.length) || 0), mt)
10364
+ return mt(Se);
10342
10365
  };
10343
10366
  return De(() => {
10344
10367
  J !== void 0 && Ut((J == null ? void 0 : J.length) || 0);
@@ -10356,11 +10379,11 @@ const cn = Oa(null), Gh = () => {
10356
10379
  helptextDropdownButton: f,
10357
10380
  inline: y,
10358
10381
  label: k,
10359
- optionalTag: S,
10382
+ optionalTag: C,
10360
10383
  optionalText: O,
10361
- requiredTag: N,
10362
- requiredText: I,
10363
- tagText: T,
10384
+ requiredTag: T,
10385
+ requiredText: P,
10386
+ tagText: N,
10364
10387
  useWrapper: _t,
10365
10388
  counter: s,
10366
10389
  counterCurrent: le,
@@ -10408,15 +10431,15 @@ const cn = Oa(null), Gh = () => {
10408
10431
  iconNameRight: b,
10409
10432
  inline: k = !1,
10410
10433
  fullwidth: w = !1,
10411
- label: S,
10434
+ label: C,
10412
10435
  name: O,
10413
- optionalTag: N = !1,
10414
- optionalText: I,
10415
- requiredTag: T = !1,
10436
+ optionalTag: T = !1,
10437
+ optionalText: P,
10438
+ requiredTag: N = !1,
10416
10439
  requiredText: H,
10417
10440
  tagText: G = null,
10418
10441
  placeholder: _t,
10419
- prefix: pt,
10442
+ prefix: mt,
10420
10443
  suffix: J,
10421
10444
  type: st = "text",
10422
10445
  useWrapper: Et = !0,
@@ -10454,10 +10477,10 @@ const cn = Oa(null), Gh = () => {
10454
10477
  helptextDropdown: f,
10455
10478
  helptextDropdownButton: y,
10456
10479
  inline: k,
10457
- label: S,
10458
- optionalTag: N,
10459
- optionalText: I,
10460
- requiredTag: T,
10480
+ label: C,
10481
+ optionalTag: T,
10482
+ optionalText: P,
10483
+ requiredTag: N,
10461
10484
  requiredText: H,
10462
10485
  tagText: G,
10463
10486
  useWrapper: Et,
@@ -10471,7 +10494,7 @@ const cn = Oa(null), Gh = () => {
10471
10494
  "data-testid": Ut,
10472
10495
  "data-skip-forward-testid": Se ? "true" : void 0,
10473
10496
  children: [
10474
- pt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: pt }),
10497
+ mt && /* @__PURE__ */ h("div", { className: "pkt-input-prefix", children: mt }),
10475
10498
  /* @__PURE__ */ h(
10476
10499
  "input",
10477
10500
  {