@oslokommune/punkt-react 11.13.1 → 11.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as g from "react";
2
- import X, { createContext as fn, useState as le, useContext as dn, useEffect as ze, forwardRef as V, useRef as yt, Fragment as mn } from "react";
2
+ import X, { createContext as fn, useState as te, useContext as dn, useEffect as ze, forwardRef as V, useRef as yt, Fragment as mn } from "react";
3
3
  import "react-dom";
4
4
  function hn(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -19,16 +19,16 @@ function kn() {
19
19
  if (_t)
20
20
  return pe;
21
21
  _t = 1;
22
- var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
23
23
  function c(o, p, u) {
24
24
  var d, h = {}, k = null, C = null;
25
25
  u !== void 0 && (k = "" + u), p.key !== void 0 && (k = "" + p.key), p.ref !== void 0 && (C = p.ref);
26
26
  for (d in p)
27
- i.call(p, d) && !l.hasOwnProperty(d) && (h[d] = p[d]);
27
+ i.call(p, d) && !s.hasOwnProperty(d) && (h[d] = p[d]);
28
28
  if (o && o.defaultProps)
29
29
  for (d in p = o.defaultProps, p)
30
30
  h[d] === void 0 && (h[d] = p[d]);
31
- return { $$typeof: r, type: o, key: k, ref: C, props: h, _owner: s.current };
31
+ return { $$typeof: r, type: o, key: k, ref: C, props: h, _owner: l.current };
32
32
  }
33
33
  return pe.Fragment = a, pe.jsx = c, pe.jsxs = c, pe;
34
34
  }
@@ -45,7 +45,7 @@ var fe = {};
45
45
  var bt;
46
46
  function vn() {
47
47
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
48
+ var e = X, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), j = Symbol.iterator, S = "@@iterator";
49
49
  function O(n) {
50
50
  if (n === null || typeof n != "object")
51
51
  return null;
@@ -73,7 +73,7 @@ function vn() {
73
73
  var y = !1, A = !1, U = !1, W = !1, B = !1, M;
74
74
  M = Symbol.for("react.module.reference");
75
75
  function Y(n) {
76
- return !!(typeof n == "string" || typeof n == "function" || n === i || n === l || B || n === s || n === u || n === d || W || n === C || y || A || U || typeof n == "object" && n !== null && (n.$$typeof === k || n.$$typeof === h || n.$$typeof === c || n.$$typeof === o || n.$$typeof === p || // This needs to include all possible module reference object
76
+ return !!(typeof n == "string" || typeof n == "function" || n === i || n === s || B || n === l || n === u || n === d || W || n === C || y || A || U || typeof n == "object" && n !== null && (n.$$typeof === k || n.$$typeof === h || n.$$typeof === c || n.$$typeof === o || n.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
@@ -101,9 +101,9 @@ function vn() {
101
101
  return "Fragment";
102
102
  case a:
103
103
  return "Portal";
104
- case l:
105
- return "Profiler";
106
104
  case s:
105
+ return "Profiler";
106
+ case l:
107
107
  return "StrictMode";
108
108
  case u:
109
109
  return "Suspense";
@@ -283,7 +283,7 @@ function vn() {
283
283
  } finally {
284
284
  Te = !1, Pe.current = T, Ut(), Error.prepareStackTrace = P;
285
285
  }
286
- var re = n ? n.displayName || n.name : "", ee = re ? ve(re) : "";
286
+ var ae = n ? n.displayName || n.name : "", ee = ae ? ve(ae) : "";
287
287
  return typeof n == "function" && _e.set(n, ee), ee;
288
288
  }
289
289
  function Wt(n, f, m) {
@@ -472,7 +472,7 @@ function vn() {
472
472
  }
473
473
  }
474
474
  var De = R.ReactCurrentOwner, pt = R.ReactDebugCurrentFrame;
475
- function ne(n) {
475
+ function re(n) {
476
476
  if (n) {
477
477
  var f = n._owner, m = be(n.type, n._source, f ? f.type : null);
478
478
  pt.setExtraStackFrame(m);
@@ -530,7 +530,7 @@ Check the top-level render call using <` + m + ">.");
530
530
  return;
531
531
  dt[m] = !0;
532
532
  var x = "";
533
- n && n._owner && n._owner !== De.current && (x = " It was passed a child from " + I(n._owner.type) + "."), ne(n), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), ne(null);
533
+ n && n._owner && n._owner !== De.current && (x = " It was passed a child from " + I(n._owner.type) + "."), re(n), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, x), re(null);
534
534
  }
535
535
  }
536
536
  function ht(n, f) {
@@ -582,11 +582,11 @@ Check the top-level render call using <` + m + ">.");
582
582
  for (var f = Object.keys(n.props), m = 0; m < f.length; m++) {
583
583
  var x = f[m];
584
584
  if (x !== "children" && x !== "key") {
585
- ne(n), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ne(null);
585
+ re(n), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), re(null);
586
586
  break;
587
587
  }
588
588
  }
589
- n.ref !== null && (ne(n), _("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
589
+ n.ref !== null && (re(n), _("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
590
590
  }
591
591
  }
592
592
  var kt = {};
@@ -609,8 +609,8 @@ Check the top-level render call using <` + m + ">.");
609
609
  if (q !== void 0)
610
610
  if (x)
611
611
  if (Oe(q)) {
612
- for (var re = 0; re < q.length; re++)
613
- ht(q[re], n);
612
+ for (var ae = 0; ae < q.length; ae++)
613
+ ht(q[ae], n);
614
614
  Object.freeze && Object.freeze(q);
615
615
  } else
616
616
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -660,14 +660,14 @@ const Ue = {}, xn = async (e, r) => {
660
660
  }, gn = {
661
661
  fetchIcon: async (e, r) => xn(e, r || _n)
662
662
  }, Nn = fn(gn), N = ({ name: e, path: r, className: a = "", ...i }) => {
663
- const [s, l] = le(null), c = dn(Nn);
663
+ const [l, s] = te(null), c = dn(Nn);
664
664
  return ze(() => {
665
- e ? c.fetchIcon(e, r).then(l) : l(null);
666
- }, [e, r]), s ? /* @__PURE__ */ t.jsx(
665
+ e ? c.fetchIcon(e, r).then(s) : s(null);
666
+ }, [e, r]), l ? /* @__PURE__ */ t.jsx(
667
667
  "span",
668
668
  {
669
669
  className: `pkt-icon ${a}`,
670
- dangerouslySetInnerHTML: { __html: s },
670
+ dangerouslySetInnerHTML: { __html: l },
671
671
  ...i
672
672
  }
673
673
  ) : null;
@@ -677,15 +677,15 @@ const Ue = {}, xn = async (e, r) => {
677
677
  className: r,
678
678
  skin: a = "info",
679
679
  closeAlert: i = !1,
680
- onClose: s,
681
- title: l,
680
+ onClose: l,
681
+ title: s,
682
682
  date: c,
683
683
  ariaLive: o = "polite",
684
684
  compact: p = !1,
685
685
  ...u
686
686
  }, d) => {
687
- const h = [r, "pkt-alert", a && `pkt-alert--${a}`, p && "pkt-alert--compact"].filter(Boolean).join(" "), [k, C] = le(!0), j = () => {
688
- C(!1), s && s();
687
+ const h = [r, "pkt-alert", a && `pkt-alert--${a}`, p && "pkt-alert--compact"].filter(Boolean).join(" "), [k, C] = te(!0), j = () => {
688
+ C(!1), l && l();
689
689
  };
690
690
  return k ? /* @__PURE__ */ t.jsxs("div", { ...u, className: h, "aria-live": o, ref: d, children: [
691
691
  /* @__PURE__ */ t.jsx(N, { className: "pkt-alert__icon", name: a === "info" ? "alert-information" : `alert-${a}` }),
@@ -700,7 +700,7 @@ const Ue = {}, xn = async (e, r) => {
700
700
  children: /* @__PURE__ */ t.jsx(N, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
701
701
  }
702
702
  ) }),
703
- l && /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__title", children: l }),
703
+ s && /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__title", children: s }),
704
704
  /* @__PURE__ */ t.jsx("div", { className: "pkt-alert__text", children: e }),
705
705
  c && /* @__PURE__ */ t.jsxs("div", { className: "pkt-alert__date", children: [
706
706
  "Sist oppdatert: ",
@@ -709,14 +709,14 @@ const Ue = {}, xn = async (e, r) => {
709
709
  ] }) : null;
710
710
  }
711
711
  ), _r = V(
712
- ({ href: e, text: r, onClick: a, className: i, ...s }, l) => {
712
+ ({ href: e, text: r, onClick: a, className: i, ...l }, s) => {
713
713
  const c = [
714
714
  i,
715
715
  "pkt-back-link"
716
716
  ].filter(Boolean).join(" "), o = (p) => {
717
717
  a && a(p);
718
718
  };
719
- return /* @__PURE__ */ t.jsx("nav", { ref: l, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ t.jsxs("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: o, ...s, children: [
719
+ return /* @__PURE__ */ t.jsx("nav", { ref: s, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ t.jsxs("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: o, ...l, children: [
720
720
  /* @__PURE__ */ t.jsx(N, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
721
721
  /* @__PURE__ */ t.jsx("span", { className: "pkt-back-link__text", children: r || "Forsiden" })
722
722
  ] }) });
@@ -787,10 +787,10 @@ function Nt(e, r) {
787
787
  caseSensitive: !1,
788
788
  end: !0
789
789
  });
790
- let [a, i] = yn(e.path, e.caseSensitive, e.end), s = r.match(a);
791
- if (!s)
790
+ let [a, i] = yn(e.path, e.caseSensitive, e.end), l = r.match(a);
791
+ if (!l)
792
792
  return null;
793
- let l = s[0], c = l.replace(/(.)\/+$/, "$1"), o = s.slice(1);
793
+ let s = l[0], c = s.replace(/(.)\/+$/, "$1"), o = l.slice(1);
794
794
  return {
795
795
  params: i.reduce((u, d, h) => {
796
796
  let {
@@ -799,27 +799,27 @@ function Nt(e, r) {
799
799
  } = d;
800
800
  if (k === "*") {
801
801
  let S = o[h] || "";
802
- c = l.slice(0, l.length - S.length).replace(/(.)\/+$/, "$1");
802
+ c = s.slice(0, s.length - S.length).replace(/(.)\/+$/, "$1");
803
803
  }
804
804
  const j = o[h];
805
805
  return C && !j ? u[k] = void 0 : u[k] = (j || "").replace(/%2F/g, "/"), u;
806
806
  }, {}),
807
- pathname: l,
807
+ pathname: s,
808
808
  pathnameBase: c,
809
809
  pattern: e
810
810
  };
811
811
  }
812
812
  function yn(e, r, a) {
813
813
  r === void 0 && (r = !1), a === void 0 && (a = !0), me(e === "*" || !e.endsWith("*") || e.endsWith("/*"), 'Route path "' + e + '" will be treated as if it were ' + ('"' + e.replace(/\*$/, "/*") + '" because the `*` character must ') + "always follow a `/` in the pattern. To get rid of this warning, " + ('please change the route path to "' + e.replace(/\*$/, "/*") + '".'));
814
- let i = [], s = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (c, o, p) => (i.push({
814
+ let i = [], l = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (c, o, p) => (i.push({
815
815
  paramName: o,
816
816
  isOptional: p != null
817
817
  }), p ? "/?([^\\/]+)?" : "/([^\\/]+)"));
818
818
  return e.endsWith("*") ? (i.push({
819
819
  paramName: "*"
820
- }), s += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? s += "\\/*$" : e !== "" && e !== "/" && (s += "(?:(?=\\/|$))"), [new RegExp(s, r ? void 0 : "i"), i];
820
+ }), l += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? l += "\\/*$" : e !== "" && e !== "/" && (l += "(?:(?=\\/|$))"), [new RegExp(l, r ? void 0 : "i"), i];
821
821
  }
822
- function ae(e, r) {
822
+ function se(e, r) {
823
823
  if (r === "/")
824
824
  return e;
825
825
  if (!e.toLowerCase().startsWith(r.toLowerCase()))
@@ -832,18 +832,18 @@ function wn(e, r) {
832
832
  let {
833
833
  pathname: a,
834
834
  search: i = "",
835
- hash: s = ""
835
+ hash: l = ""
836
836
  } = typeof e == "string" ? wt(e) : e;
837
837
  return {
838
838
  pathname: a ? a.startsWith("/") ? a : En(a, r) : r,
839
839
  search: Rn(i),
840
- hash: Pn(s)
840
+ hash: Pn(l)
841
841
  };
842
842
  }
843
843
  function En(e, r) {
844
844
  let a = r.replace(/\/+$/, "").split("/");
845
- return e.split("/").forEach((s) => {
846
- s === ".." ? a.length > 1 && a.pop() : s !== "." && a.push(s);
845
+ return e.split("/").forEach((l) => {
846
+ l === ".." ? a.length > 1 && a.pop() : l !== "." && a.push(l);
847
847
  }), a.length > 1 ? a.join("/") : "/";
848
848
  }
849
849
  function Ve(e, r, a, i) {
@@ -854,13 +854,13 @@ function Cn(e) {
854
854
  }
855
855
  function Et(e, r) {
856
856
  let a = Cn(e);
857
- return r ? a.map((i, s) => s === e.length - 1 ? i.pathname : i.pathnameBase) : a.map((i) => i.pathnameBase);
857
+ return r ? a.map((i, l) => l === e.length - 1 ? i.pathname : i.pathnameBase) : a.map((i) => i.pathnameBase);
858
858
  }
859
859
  function Ct(e, r, a, i) {
860
860
  i === void 0 && (i = !1);
861
- let s;
862
- typeof e == "string" ? s = wt(e) : (s = Me({}, e), D(!s.pathname || !s.pathname.includes("?"), Ve("?", "pathname", "search", s)), D(!s.pathname || !s.pathname.includes("#"), Ve("#", "pathname", "hash", s)), D(!s.search || !s.search.includes("#"), Ve("#", "search", "hash", s)));
863
- let l = e === "" || s.pathname === "", c = l ? "/" : s.pathname, o;
861
+ let l;
862
+ typeof e == "string" ? l = wt(e) : (l = Me({}, e), D(!l.pathname || !l.pathname.includes("?"), Ve("?", "pathname", "search", l)), D(!l.pathname || !l.pathname.includes("#"), Ve("#", "pathname", "hash", l)), D(!l.search || !l.search.includes("#"), Ve("#", "search", "hash", l)));
863
+ let s = e === "" || l.pathname === "", c = s ? "/" : l.pathname, o;
864
864
  if (c == null)
865
865
  o = a;
866
866
  else {
@@ -869,11 +869,11 @@ function Ct(e, r, a, i) {
869
869
  let k = c.split("/");
870
870
  for (; k[0] === ".."; )
871
871
  k.shift(), h -= 1;
872
- s.pathname = k.join("/");
872
+ l.pathname = k.join("/");
873
873
  }
874
874
  o = h >= 0 ? r[h] : "/";
875
875
  }
876
- let p = wn(s, o), u = c && c !== "/" && c.endsWith("/"), d = (l || c === ".") && a.endsWith("/");
876
+ let p = wn(l, o), u = c && c !== "/" && c.endsWith("/"), d = (s || c === ".") && a.endsWith("/");
877
877
  return !p.pathname.endsWith("/") && (u || d) && (p.pathname += "/"), p;
878
878
  }
879
879
  const Ge = (e) => e.join("/").replace(/\/\/+/g, "/"), Rn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Pn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Rt = ["post", "put", "patch", "delete"];
@@ -930,18 +930,18 @@ function $n(e, r) {
930
930
  ) : D(!1));
931
931
  let {
932
932
  basename: i,
933
- navigator: s
933
+ navigator: l
934
934
  } = g.useContext(H), {
935
- hash: l,
935
+ hash: s,
936
936
  pathname: c,
937
937
  search: o
938
938
  } = ke(e, {
939
939
  relative: a
940
940
  }), p = c;
941
- return i !== "/" && (p = c === "/" ? i : Ge([i, c])), s.createHref({
941
+ return i !== "/" && (p = c === "/" ? i : Ge([i, c])), l.createHref({
942
942
  pathname: p,
943
943
  search: o,
944
- hash: l
944
+ hash: s
945
945
  });
946
946
  }
947
947
  function Xe() {
@@ -977,10 +977,10 @@ function In() {
977
977
  future: a,
978
978
  navigator: i
979
979
  } = g.useContext(H), {
980
- matches: s
980
+ matches: l
981
981
  } = g.useContext(ie), {
982
- pathname: l
983
- } = he(), c = JSON.stringify(Et(s, a.v7_relativeSplatPath)), o = g.useRef(!1);
982
+ pathname: s
983
+ } = he(), c = JSON.stringify(Et(l, a.v7_relativeSplatPath)), o = g.useRef(!1);
984
984
  return Tt(() => {
985
985
  o.current = !0;
986
986
  }), g.useCallback(function(u, d) {
@@ -990,9 +990,9 @@ function In() {
990
990
  i.go(u);
991
991
  return;
992
992
  }
993
- let h = Ct(u, JSON.parse(c), l, d.relative === "path");
993
+ let h = Ct(u, JSON.parse(c), s, d.relative === "path");
994
994
  e == null && r !== "/" && (h.pathname = h.pathname === "/" ? r : Ge([r, h.pathname])), (d.replace ? i.replace : i.push)(h, d.state, d);
995
- }, [r, i, c, l, e]);
995
+ }, [r, i, c, s, e]);
996
996
  }
997
997
  function ke(e, r) {
998
998
  let {
@@ -1000,11 +1000,11 @@ function ke(e, r) {
1000
1000
  } = r === void 0 ? {} : r, {
1001
1001
  future: i
1002
1002
  } = g.useContext(H), {
1003
- matches: s
1003
+ matches: l
1004
1004
  } = g.useContext(ie), {
1005
- pathname: l
1006
- } = he(), c = JSON.stringify(Et(s, i.v7_relativeSplatPath));
1007
- return g.useMemo(() => Ct(e, JSON.parse(c), l, a === "path"), [e, c, l, a]);
1005
+ pathname: s
1006
+ } = he(), c = JSON.stringify(Et(l, i.v7_relativeSplatPath));
1007
+ return g.useMemo(() => Ct(e, JSON.parse(c), s, a === "path"), [e, c, s, a]);
1008
1008
  }
1009
1009
  var Ot = /* @__PURE__ */ function(e) {
1010
1010
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
@@ -1035,10 +1035,10 @@ function Un() {
1035
1035
  } = Fn(Ot.UseNavigateStable), r = Dt(He.UseNavigateStable), a = g.useRef(!1);
1036
1036
  return Tt(() => {
1037
1037
  a.current = !0;
1038
- }), g.useCallback(function(s, l) {
1039
- l === void 0 && (l = {}), process.env.NODE_ENV !== "production" && me(a.current, St), a.current && (typeof s == "number" ? e.navigate(s) : e.navigate(s, Ke({
1038
+ }), g.useCallback(function(l, s) {
1039
+ s === void 0 && (s = {}), process.env.NODE_ENV !== "production" && me(a.current, St), a.current && (typeof l == "number" ? e.navigate(l) : e.navigate(l, Ke({
1040
1040
  fromRouteId: r
1041
- }, l)));
1041
+ }, s)));
1042
1042
  }, [e, r]);
1043
1043
  }
1044
1044
  new Promise(() => {
@@ -1053,22 +1053,22 @@ new Promise(() => {
1053
1053
  *
1054
1054
  * @license MIT
1055
1055
  */
1056
- function se() {
1057
- return se = Object.assign ? Object.assign.bind() : function(e) {
1056
+ function le() {
1057
+ return le = Object.assign ? Object.assign.bind() : function(e) {
1058
1058
  for (var r = 1; r < arguments.length; r++) {
1059
1059
  var a = arguments[r];
1060
1060
  for (var i in a)
1061
1061
  Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
1062
1062
  }
1063
1063
  return e;
1064
- }, se.apply(this, arguments);
1064
+ }, le.apply(this, arguments);
1065
1065
  }
1066
1066
  function Ze(e, r) {
1067
1067
  if (e == null)
1068
1068
  return {};
1069
- var a = {}, i = Object.keys(e), s, l;
1070
- for (l = 0; l < i.length; l++)
1071
- s = i[l], !(r.indexOf(s) >= 0) && (a[s] = e[s]);
1069
+ var a = {}, i = Object.keys(e), l, s;
1070
+ for (s = 0; s < i.length; s++)
1071
+ l = i[s], !(r.indexOf(l) >= 0) && (a[l] = e[l]);
1072
1072
  return a;
1073
1073
  }
1074
1074
  const Ne = "get", je = "application/x-www-form-urlencoded";
@@ -1111,16 +1111,16 @@ function We(e) {
1111
1111
  return e != null && !Jn.has(e) ? (process.env.NODE_ENV !== "production" && me(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + je + '"')), null) : e;
1112
1112
  }
1113
1113
  function zn(e, r) {
1114
- let a, i, s, l, c;
1114
+ let a, i, l, s, c;
1115
1115
  if (Wn(e)) {
1116
1116
  let o = e.getAttribute("action");
1117
- i = o ? ae(o, r) : null, a = e.getAttribute("method") || Ne, s = We(e.getAttribute("enctype")) || je, l = new FormData(e);
1117
+ i = o ? se(o, r) : null, a = e.getAttribute("method") || Ne, l = We(e.getAttribute("enctype")) || je, s = new FormData(e);
1118
1118
  } else if (Vn(e) || Bn(e) && (e.type === "submit" || e.type === "image")) {
1119
1119
  let o = e.form;
1120
1120
  if (o == null)
1121
1121
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1122
1122
  let p = e.getAttribute("formaction") || o.getAttribute("action");
1123
- if (i = p ? ae(p, r) : null, a = e.getAttribute("formmethod") || o.getAttribute("method") || Ne, s = We(e.getAttribute("formenctype")) || We(o.getAttribute("enctype")) || je, l = new FormData(o, e), !Kn()) {
1123
+ if (i = p ? se(p, r) : null, a = e.getAttribute("formmethod") || o.getAttribute("method") || Ne, l = We(e.getAttribute("formenctype")) || We(o.getAttribute("enctype")) || je, s = new FormData(o, e), !Kn()) {
1124
1124
  let {
1125
1125
  name: u,
1126
1126
  type: d,
@@ -1128,20 +1128,20 @@ function zn(e, r) {
1128
1128
  } = e;
1129
1129
  if (d === "image") {
1130
1130
  let k = u ? u + "." : "";
1131
- l.append(k + "x", "0"), l.append(k + "y", "0");
1131
+ s.append(k + "x", "0"), s.append(k + "y", "0");
1132
1132
  } else
1133
- u && l.append(u, h);
1133
+ u && s.append(u, h);
1134
1134
  }
1135
1135
  } else {
1136
1136
  if (Ce(e))
1137
1137
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1138
- a = Ne, i = null, s = je, c = e;
1138
+ a = Ne, i = null, l = je, c = e;
1139
1139
  }
1140
- return l && s === "text/plain" && (c = l, l = void 0), {
1140
+ return s && l === "text/plain" && (c = s, s = void 0), {
1141
1141
  action: i,
1142
1142
  method: a.toLowerCase(),
1143
- encType: s,
1144
- formData: l,
1143
+ encType: l,
1144
+ formData: s,
1145
1145
  body: c
1146
1146
  };
1147
1147
  }
@@ -1160,8 +1160,8 @@ process.env.NODE_ENV;
1160
1160
  const Qn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", er = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ye = /* @__PURE__ */ g.forwardRef(function(r, a) {
1161
1161
  let {
1162
1162
  onClick: i,
1163
- relative: s,
1164
- reloadDocument: l,
1163
+ relative: l,
1164
+ reloadDocument: s,
1165
1165
  replace: c,
1166
1166
  state: o,
1167
1167
  target: p,
@@ -1173,19 +1173,19 @@ const Qn = typeof window < "u" && typeof window.document < "u" && typeof window.
1173
1173
  } = g.useContext(H), j, S = !1;
1174
1174
  if (typeof u == "string" && er.test(u) && (j = u, Qn))
1175
1175
  try {
1176
- let v = new URL(window.location.href), y = u.startsWith("//") ? new URL(v.protocol + u) : new URL(u), A = ae(y.pathname, C);
1176
+ let v = new URL(window.location.href), y = u.startsWith("//") ? new URL(v.protocol + u) : new URL(u), A = se(y.pathname, C);
1177
1177
  y.origin === v.origin && A != null ? u = A + y.search + y.hash : S = !0;
1178
1178
  } catch {
1179
1179
  process.env.NODE_ENV !== "production" && me(!1, '<Link to="' + u + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
1180
1180
  }
1181
1181
  let O = $n(u, {
1182
- relative: s
1182
+ relative: l
1183
1183
  }), R = ar(u, {
1184
1184
  replace: c,
1185
1185
  state: o,
1186
1186
  target: p,
1187
1187
  preventScrollReset: d,
1188
- relative: s,
1188
+ relative: l,
1189
1189
  unstable_viewTransition: h
1190
1190
  });
1191
1191
  function _(v) {
@@ -1193,9 +1193,9 @@ const Qn = typeof window < "u" && typeof window.document < "u" && typeof window.
1193
1193
  }
1194
1194
  return (
1195
1195
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1196
- /* @__PURE__ */ g.createElement("a", se({}, k, {
1196
+ /* @__PURE__ */ g.createElement("a", le({}, k, {
1197
1197
  href: j || O,
1198
- onClick: S || l ? i : _,
1198
+ onClick: S || s ? i : _,
1199
1199
  ref: a,
1200
1200
  target: p
1201
1201
  }))
@@ -1205,8 +1205,8 @@ process.env.NODE_ENV !== "production" && (ye.displayName = "Link");
1205
1205
  const tr = /* @__PURE__ */ g.forwardRef(function(r, a) {
1206
1206
  let {
1207
1207
  "aria-current": i = "page",
1208
- caseSensitive: s = !1,
1209
- className: l = "",
1208
+ caseSensitive: l = !1,
1209
+ className: s = "",
1210
1210
  end: c = !1,
1211
1211
  style: o,
1212
1212
  to: p,
@@ -1220,16 +1220,16 @@ const tr = /* @__PURE__ */ g.forwardRef(function(r, a) {
1220
1220
  } = g.useContext(H), R = j != null && // Conditional usage is OK here because the usage of a data router is static
1221
1221
  // eslint-disable-next-line react-hooks/rules-of-hooks
1222
1222
  ur(k) && u === !0, _ = S.encodeLocation ? S.encodeLocation(k).pathname : k.pathname, v = C.pathname, y = j && j.navigation && j.navigation.location ? j.navigation.location.pathname : null;
1223
- s || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && O && (y = ae(y, O) || y);
1223
+ l || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && O && (y = se(y, O) || y);
1224
1224
  const A = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length;
1225
1225
  let U = v === _ || !c && v.startsWith(_) && v.charAt(A) === "/", W = y != null && (y === _ || !c && y.startsWith(_) && y.charAt(_.length) === "/"), B = {
1226
1226
  isActive: U,
1227
1227
  isPending: W,
1228
1228
  isTransitioning: R
1229
1229
  }, M = U ? i : void 0, Y;
1230
- typeof l == "function" ? Y = l(B) : Y = [l, U ? "active" : null, W ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
1230
+ typeof s == "function" ? Y = s(B) : Y = [s, U ? "active" : null, W ? "pending" : null, R ? "transitioning" : null].filter(Boolean).join(" ");
1231
1231
  let z = typeof o == "function" ? o(B) : o;
1232
- return /* @__PURE__ */ g.createElement(ye, se({}, h, {
1232
+ return /* @__PURE__ */ g.createElement(ye, le({}, h, {
1233
1233
  "aria-current": M,
1234
1234
  className: Y,
1235
1235
  ref: a,
@@ -1243,8 +1243,8 @@ const nr = /* @__PURE__ */ g.forwardRef((e, r) => {
1243
1243
  let {
1244
1244
  fetcherKey: a,
1245
1245
  navigate: i,
1246
- reloadDocument: s,
1247
- replace: l,
1246
+ reloadDocument: l,
1247
+ replace: s,
1248
1248
  state: c,
1249
1249
  method: o = Ne,
1250
1250
  action: p,
@@ -1263,18 +1263,18 @@ const nr = /* @__PURE__ */ g.forwardRef((e, r) => {
1263
1263
  fetcherKey: a,
1264
1264
  method: y,
1265
1265
  navigate: i,
1266
- replace: l,
1266
+ replace: s,
1267
1267
  state: c,
1268
1268
  relative: d,
1269
1269
  preventScrollReset: h,
1270
1270
  unstable_viewTransition: k
1271
1271
  });
1272
1272
  };
1273
- return /* @__PURE__ */ g.createElement("form", se({
1273
+ return /* @__PURE__ */ g.createElement("form", le({
1274
1274
  ref: r,
1275
1275
  method: O,
1276
1276
  action: S,
1277
- onSubmit: s ? u : R
1277
+ onSubmit: l ? u : R
1278
1278
  }, C));
1279
1279
  });
1280
1280
  process.env.NODE_ENV !== "production" && (nr.displayName = "Form");
@@ -1298,8 +1298,8 @@ function ar(e, r) {
1298
1298
  let {
1299
1299
  target: a,
1300
1300
  replace: i,
1301
- state: s,
1302
- preventScrollReset: l,
1301
+ state: l,
1302
+ preventScrollReset: s,
1303
1303
  relative: c,
1304
1304
  unstable_viewTransition: o
1305
1305
  } = r === void 0 ? {} : r, p = Dn(), u = he(), d = ke(e, {
@@ -1311,13 +1311,13 @@ function ar(e, r) {
1311
1311
  let k = i !== void 0 ? i : Ye(u) === Ye(d);
1312
1312
  p(e, {
1313
1313
  replace: k,
1314
- state: s,
1315
- preventScrollReset: l,
1314
+ state: l,
1315
+ preventScrollReset: s,
1316
1316
  relative: c,
1317
1317
  unstable_viewTransition: o
1318
1318
  });
1319
1319
  }
1320
- }, [u, p, d, i, s, a, e, l, c, o]);
1320
+ }, [u, p, d, i, l, a, e, s, c, o]);
1321
1321
  }
1322
1322
  function sr() {
1323
1323
  if (typeof document > "u")
@@ -1330,37 +1330,37 @@ function or() {
1330
1330
  } = Ft(we.UseSubmit), {
1331
1331
  basename: r
1332
1332
  } = g.useContext(H), a = An();
1333
- return g.useCallback(function(i, s) {
1334
- s === void 0 && (s = {}), sr();
1333
+ return g.useCallback(function(i, l) {
1334
+ l === void 0 && (l = {}), sr();
1335
1335
  let {
1336
- action: l,
1336
+ action: s,
1337
1337
  method: c,
1338
1338
  encType: o,
1339
1339
  formData: p,
1340
1340
  body: u
1341
1341
  } = zn(i, r);
1342
- if (s.navigate === !1) {
1343
- let d = s.fetcherKey || ir();
1344
- e.fetch(d, a, s.action || l, {
1345
- preventScrollReset: s.preventScrollReset,
1342
+ if (l.navigate === !1) {
1343
+ let d = l.fetcherKey || ir();
1344
+ e.fetch(d, a, l.action || s, {
1345
+ preventScrollReset: l.preventScrollReset,
1346
1346
  formData: p,
1347
1347
  body: u,
1348
- formMethod: s.method || c,
1349
- formEncType: s.encType || o,
1350
- unstable_flushSync: s.unstable_flushSync
1348
+ formMethod: l.method || c,
1349
+ formEncType: l.encType || o,
1350
+ unstable_flushSync: l.unstable_flushSync
1351
1351
  });
1352
1352
  } else
1353
- e.navigate(s.action || l, {
1354
- preventScrollReset: s.preventScrollReset,
1353
+ e.navigate(l.action || s, {
1354
+ preventScrollReset: l.preventScrollReset,
1355
1355
  formData: p,
1356
1356
  body: u,
1357
- formMethod: s.method || c,
1358
- formEncType: s.encType || o,
1359
- replace: s.replace,
1360
- state: s.state,
1357
+ formMethod: l.method || c,
1358
+ formEncType: l.encType || o,
1359
+ replace: l.replace,
1360
+ state: l.state,
1361
1361
  fromRouteId: a,
1362
- unstable_flushSync: s.unstable_flushSync,
1363
- unstable_viewTransition: s.unstable_viewTransition
1362
+ unstable_flushSync: l.unstable_flushSync,
1363
+ unstable_viewTransition: l.unstable_viewTransition
1364
1364
  });
1365
1365
  }, [e, r, a]);
1366
1366
  }
@@ -1369,9 +1369,9 @@ function cr(e, r) {
1369
1369
  relative: a
1370
1370
  } = r === void 0 ? {} : r, {
1371
1371
  basename: i
1372
- } = g.useContext(H), s = g.useContext(ie);
1373
- s || (process.env.NODE_ENV !== "production" ? D(!1, "useFormAction must be used inside a RouteContext") : D(!1));
1374
- let [l] = s.matches.slice(-1), c = se({}, ke(e || ".", {
1372
+ } = g.useContext(H), l = g.useContext(ie);
1373
+ l || (process.env.NODE_ENV !== "production" ? D(!1, "useFormAction must be used inside a RouteContext") : D(!1));
1374
+ let [s] = l.matches.slice(-1), c = le({}, ke(e || ".", {
1375
1375
  relative: a
1376
1376
  })), o = he();
1377
1377
  if (e == null) {
@@ -1379,7 +1379,7 @@ function cr(e, r) {
1379
1379
  let p = new URLSearchParams(c.search);
1380
1380
  p.has("index") && p.get("index") === "" && (p.delete("index"), c.search = p.toString() ? "?" + p.toString() : "");
1381
1381
  }
1382
- return (!e || e === ".") && l.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (c.pathname = c.pathname === "/" ? i : Ge([i, c.pathname])), Ye(c);
1382
+ return (!e || e === ".") && s.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (c.pathname = c.pathname === "/" ? i : Ge([i, c.pathname])), Ye(c);
1383
1383
  }
1384
1384
  function ur(e, r) {
1385
1385
  r === void 0 && (r = {});
@@ -1387,26 +1387,26 @@ function ur(e, r) {
1387
1387
  a == null && (process.env.NODE_ENV !== "production" ? D(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : D(!1));
1388
1388
  let {
1389
1389
  basename: i
1390
- } = Ft(we.useViewTransitionState), s = ke(e, {
1390
+ } = Ft(we.useViewTransitionState), l = ke(e, {
1391
1391
  relative: r.relative
1392
1392
  });
1393
1393
  if (!a.isTransitioning)
1394
1394
  return !1;
1395
- let l = ae(a.currentLocation.pathname, i) || a.currentLocation.pathname, c = ae(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1396
- return Nt(s.pathname, c) != null || Nt(s.pathname, l) != null;
1395
+ let s = se(a.currentLocation.pathname, i) || a.currentLocation.pathname, c = se(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1396
+ return Nt(l.pathname, c) != null || Nt(l.pathname, s) != null;
1397
1397
  }
1398
1398
  const br = V(
1399
- ({ breadcrumbs: e, navigationType: r, className: a, ...i }, s) => {
1400
- const l = e.slice(0, 4), c = l[l.length - 2], o = [
1399
+ ({ breadcrumbs: e, navigationType: r, className: a, ...i }, l) => {
1400
+ const s = e.slice(0, 4), c = s[s.length - 2], o = [
1401
1401
  a,
1402
1402
  "pkt-breadcrumbs"
1403
1403
  ].filter(Boolean).join(" ");
1404
- return /* @__PURE__ */ t.jsxs("nav", { ref: s, "aria-label": "brødsmulemeny", className: o, children: [
1405
- /* @__PURE__ */ t.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: l.map((p, u) => /* @__PURE__ */ t.jsx(
1404
+ return /* @__PURE__ */ t.jsxs("nav", { ref: l, "aria-label": "brødsmulemeny", className: o, children: [
1405
+ /* @__PURE__ */ t.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: s.map((p, u) => /* @__PURE__ */ t.jsx(
1406
1406
  "li",
1407
1407
  {
1408
1408
  className: "pkt-breadcrumbs__item",
1409
- children: u === l.length - 1 ? /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : r === "router" ? /* @__PURE__ */ t.jsxs(
1409
+ children: u === s.length - 1 ? /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ t.jsx("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : r === "router" ? /* @__PURE__ */ t.jsxs(
1410
1410
  ye,
1411
1411
  {
1412
1412
  to: p.href,
@@ -1487,8 +1487,8 @@ const br = V(
1487
1487
  className: r,
1488
1488
  iconName: a = "user",
1489
1489
  secondIconName: i = "user",
1490
- size: s = "medium",
1491
- skin: l = "primary",
1490
+ size: l = "medium",
1491
+ skin: s = "primary",
1492
1492
  type: c = "button",
1493
1493
  variant: o = "label-only",
1494
1494
  color: p,
@@ -1498,8 +1498,8 @@ const br = V(
1498
1498
  const k = [
1499
1499
  r,
1500
1500
  "pkt-btn",
1501
- s && `pkt-btn--${s}`,
1502
1501
  l && `pkt-btn--${l}`,
1502
+ s && `pkt-btn--${s}`,
1503
1503
  o && `pkt-btn--${o}`,
1504
1504
  p && `pkt-btn--${p}`,
1505
1505
  u && "pkt-btn--active"
@@ -1526,8 +1526,8 @@ const pr = V(
1526
1526
  hasTile: r = !1,
1527
1527
  disabled: a = !1,
1528
1528
  label: i,
1529
- labelPosition: s = "right",
1530
- hideLabel: l = !1,
1529
+ labelPosition: l = "right",
1530
+ hideLabel: s = !1,
1531
1531
  checkHelptext: c,
1532
1532
  hasError: o = !1,
1533
1533
  isSwitch: p = !1,
@@ -1540,10 +1540,10 @@ const pr = V(
1540
1540
  {
1541
1541
  className: `pkt-input-check__input ${r ? "pkt-input-check__input--tile" : ""} ${a && r ? "pkt-input-check__input--tile-disabled" : ""}`,
1542
1542
  children: [
1543
- i && s === "left" && /* @__PURE__ */ t.jsxs(
1543
+ i && l === "left" && /* @__PURE__ */ t.jsxs(
1544
1544
  "label",
1545
1545
  {
1546
- className: `pkt-input-check__input-label ${l ? "pkt-sr-only" : ""}`,
1546
+ className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1547
1547
  htmlFor: e,
1548
1548
  children: [
1549
1549
  i,
@@ -1563,10 +1563,10 @@ const pr = V(
1563
1563
  ...d
1564
1564
  }
1565
1565
  ),
1566
- i && s === "right" && /* @__PURE__ */ t.jsxs(
1566
+ i && l === "right" && /* @__PURE__ */ t.jsxs(
1567
1567
  "label",
1568
1568
  {
1569
- className: `pkt-input-check__input-label ${l ? "pkt-sr-only" : ""}`,
1569
+ className: `pkt-input-check__input-label ${s ? "pkt-sr-only" : ""}`,
1570
1570
  htmlFor: e,
1571
1571
  children: [
1572
1572
  i,
@@ -1585,8 +1585,8 @@ const xr = ({
1585
1585
  columnTwo: r,
1586
1586
  socialLinks: a,
1587
1587
  className: i,
1588
- personvernOgInfoLink: s = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1589
- tilgjengelighetLink: l = "https://www.oslo.kommune.no/tilgjengelighet/"
1588
+ personvernOgInfoLink: l = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1589
+ tilgjengelighetLink: s = "https://www.oslo.kommune.no/tilgjengelighet/"
1590
1590
  }) => {
1591
1591
  var o, p;
1592
1592
  const c = [i, "pkt-footer"].filter(Boolean).join(" ");
@@ -1637,14 +1637,14 @@ const xr = ({
1637
1637
  "a",
1638
1638
  {
1639
1639
  className: "pkt-footer__link",
1640
- href: s,
1640
+ href: l,
1641
1641
  children: [
1642
1642
  /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1643
1643
  "Personvern og informasjonskapsler"
1644
1644
  ]
1645
1645
  }
1646
1646
  ) }),
1647
- /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs("a", { className: "pkt-footer__link", href: l, children: [
1647
+ /* @__PURE__ */ t.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ t.jsxs("a", { className: "pkt-footer__link", href: s, children: [
1648
1648
  /* @__PURE__ */ t.jsx(N, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1649
1649
  "Tilgjengelighet"
1650
1650
  ] }) })
@@ -1688,15 +1688,15 @@ const xr = ({
1688
1688
  tilgjengelighetLink: a = "https://www.oslo.kommune.no/tilgjengelighet/",
1689
1689
  className: i
1690
1690
  }) => {
1691
- const s = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1692
- return /* @__PURE__ */ t.jsx("footer", { className: s, "data-mode": "dark", children: /* @__PURE__ */ t.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer-simple__list", children: [
1693
- e.map((l, c) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs(
1691
+ const l = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1692
+ return /* @__PURE__ */ t.jsx("footer", { className: l, "data-mode": "dark", children: /* @__PURE__ */ t.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ t.jsxs("ul", { className: "pkt-footer-simple__list", children: [
1693
+ e.map((s, c) => /* @__PURE__ */ t.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ t.jsxs(
1694
1694
  "a",
1695
1695
  {
1696
- className: `pkt-footer-simple__link ${l.external ? " pkt-link--external" : ""}`,
1697
- href: l.href,
1698
- target: l.openInNewTab ? "_blank" : "_self",
1699
- rel: l.openInNewTab ? "noopener noreferrer" : void 0,
1696
+ className: `pkt-footer-simple__link ${s.external ? " pkt-link--external" : ""}`,
1697
+ href: s.href,
1698
+ target: s.openInNewTab ? "_blank" : "_self",
1699
+ rel: s.openInNewTab ? "noopener noreferrer" : void 0,
1700
1700
  children: [
1701
1701
  /* @__PURE__ */ t.jsx(
1702
1702
  N,
@@ -1705,7 +1705,7 @@ const xr = ({
1705
1705
  name: "chevron-right"
1706
1706
  }
1707
1707
  ),
1708
- l.text
1708
+ s.text
1709
1709
  ]
1710
1710
  }
1711
1711
  ) }, c)),
@@ -1729,41 +1729,41 @@ var Lt = { exports: {} };
1729
1729
  (function() {
1730
1730
  var r = {}.hasOwnProperty;
1731
1731
  function a() {
1732
- for (var l = "", c = 0; c < arguments.length; c++) {
1732
+ for (var s = "", c = 0; c < arguments.length; c++) {
1733
1733
  var o = arguments[c];
1734
- o && (l = s(l, i(o)));
1734
+ o && (s = l(s, i(o)));
1735
1735
  }
1736
- return l;
1736
+ return s;
1737
1737
  }
1738
- function i(l) {
1739
- if (typeof l == "string" || typeof l == "number")
1740
- return l;
1741
- if (typeof l != "object")
1738
+ function i(s) {
1739
+ if (typeof s == "string" || typeof s == "number")
1740
+ return s;
1741
+ if (typeof s != "object")
1742
1742
  return "";
1743
- if (Array.isArray(l))
1744
- return a.apply(null, l);
1745
- if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]"))
1746
- return l.toString();
1743
+ if (Array.isArray(s))
1744
+ return a.apply(null, s);
1745
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
1746
+ return s.toString();
1747
1747
  var c = "";
1748
- for (var o in l)
1749
- r.call(l, o) && l[o] && (c = s(c, o));
1748
+ for (var o in s)
1749
+ r.call(s, o) && s[o] && (c = l(c, o));
1750
1750
  return c;
1751
1751
  }
1752
- function s(l, c) {
1753
- return c ? l ? l + " " + c : l + c : l;
1752
+ function l(s, c) {
1753
+ return c ? s ? s + " " + c : s + c : s;
1754
1754
  }
1755
1755
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
1756
1756
  })();
1757
1757
  })(Lt);
1758
1758
  var fr = Lt.exports;
1759
- const te = /* @__PURE__ */ hn(fr), Nr = V(
1759
+ const ne = /* @__PURE__ */ hn(fr), Nr = V(
1760
1760
  ({
1761
1761
  className: e,
1762
1762
  logoLink: r = "https://www.oslo.kommune.no/",
1763
1763
  serviceName: a,
1764
1764
  fixed: i = !0,
1765
- scrollToHide: s = !0,
1766
- user: l,
1765
+ scrollToHide: l = !0,
1766
+ user: s,
1767
1767
  userMenu: c,
1768
1768
  representing: o,
1769
1769
  userOptions: p,
@@ -1777,11 +1777,11 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1777
1777
  children: O,
1778
1778
  ...R
1779
1779
  }, _) => {
1780
- const v = X.useMemo(() => typeof (l == null ? void 0 : l.lastLoggedIn) == "string" ? l.lastLoggedIn : l != null && l.lastLoggedIn ? new Date(l.lastLoggedIn).toLocaleString("nb-NO", {
1780
+ const v = X.useMemo(() => typeof (s == null ? void 0 : s.lastLoggedIn) == "string" ? s.lastLoggedIn : s != null && s.lastLoggedIn ? new Date(s.lastLoggedIn).toLocaleString("nb-NO", {
1781
1781
  year: "numeric",
1782
1782
  month: "long",
1783
1783
  day: "numeric"
1784
- }) : "", [l]), [y, A] = X.useState(!1), [U, W] = X.useState(0), [B, M] = X.useState(!1), Y = X.useRef(null);
1784
+ }) : "", [s]), [y, A] = X.useState(!1), [U, W] = X.useState(0), [B, M] = X.useState(!1), Y = X.useRef(null);
1785
1785
  X.useEffect(() => (document.addEventListener("mouseup", K), window.addEventListener("scroll", I), () => {
1786
1786
  document.removeEventListener("mouseup", K), window.removeEventListener("scroll", I);
1787
1787
  }));
@@ -1790,7 +1790,7 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1790
1790
  }, K = (b) => {
1791
1791
  Y.current && !Y.current.contains(b.target) && M(!1);
1792
1792
  }, I = () => {
1793
- if (s) {
1793
+ if (l) {
1794
1794
  const b = window.pageYOffset || document.documentElement.scrollTop;
1795
1795
  if (b < 0 || Math.abs(b - U) < 60)
1796
1796
  return;
@@ -1804,9 +1804,9 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1804
1804
  id: "pkt-header",
1805
1805
  "data-testid": "pkt-header",
1806
1806
  "aria-label": "Topp",
1807
- className: te(e, "pkt-header", {
1807
+ className: ne(e, "pkt-header", {
1808
1808
  "pkt-header--fixed": i,
1809
- "pkt-header--scroll-to-hide": s,
1809
+ "pkt-header--scroll-to-hide": l,
1810
1810
  "pkt-header--hidden": y
1811
1811
  }),
1812
1812
  ref: _,
@@ -1851,7 +1851,7 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1851
1851
  children: "Meny"
1852
1852
  }
1853
1853
  ) }),
1854
- (l || o) && /* @__PURE__ */ t.jsxs(
1854
+ (s || o) && /* @__PURE__ */ t.jsxs(
1855
1855
  "li",
1856
1856
  {
1857
1857
  "data-testid": "usermenu",
@@ -1869,18 +1869,18 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1869
1869
  onClick: z,
1870
1870
  children: [
1871
1871
  /* @__PURE__ */ t.jsx(N, { name: "user", className: "pkt-btn__icon" }),
1872
- /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-fullname", children: (o == null ? void 0 : o.name) || (l == null ? void 0 : l.name) }),
1873
- /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (l == null ? void 0 : l.shortname) }),
1872
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-fullname", children: (o == null ? void 0 : o.name) || (s == null ? void 0 : s.name) }),
1873
+ /* @__PURE__ */ t.jsx("span", { className: "pkt-header__user-shortname", children: (o == null ? void 0 : o.shortname) || (s == null ? void 0 : s.shortname) }),
1874
1874
  /* @__PURE__ */ t.jsx(N, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1875
1875
  /* @__PURE__ */ t.jsx(N, { name: "chevron-thin-up", className: "pkt-btn--open" })
1876
1876
  ]
1877
1877
  }
1878
1878
  ),
1879
1879
  /* @__PURE__ */ t.jsxs("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1880
- l && /* @__PURE__ */ t.jsxs("li", { children: [
1880
+ s && /* @__PURE__ */ t.jsxs("li", { children: [
1881
1881
  /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1882
- /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__name", children: l.name }),
1883
- l.lastLoggedIn && /* @__PURE__ */ t.jsxs("div", { className: "pkt-user-menu__last-logged-in", children: [
1882
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-user-menu__name", children: s.name }),
1883
+ s.lastLoggedIn && /* @__PURE__ */ t.jsxs("div", { className: "pkt-user-menu__last-logged-in", children: [
1884
1884
  "Sist pålogget: ",
1885
1885
  /* @__PURE__ */ t.jsx("time", { children: v })
1886
1886
  ] })
@@ -1943,9 +1943,9 @@ const te = /* @__PURE__ */ hn(fr), Nr = V(
1943
1943
  );
1944
1944
  }
1945
1945
  ), dr = X.forwardRef(
1946
- ({ label: e, id: r, children: a, ...i }, s) => /* @__PURE__ */ t.jsxs("div", { className: "pkt-form-group", children: [
1946
+ ({ label: e, id: r, children: a, ...i }, l) => /* @__PURE__ */ t.jsxs("div", { className: "pkt-form-group", children: [
1947
1947
  /* @__PURE__ */ t.jsx("label", { htmlFor: r, className: "pkt-form-label", children: e }),
1948
- /* @__PURE__ */ t.jsx("input", { className: "pkt-form-input", id: r, ...i, ref: s }),
1948
+ /* @__PURE__ */ t.jsx("input", { className: "pkt-form-input", id: r, ...i, ref: l }),
1949
1949
  a
1950
1950
  ] })
1951
1951
  );
@@ -1956,8 +1956,8 @@ const Re = V(
1956
1956
  label: r,
1957
1957
  helptext: a,
1958
1958
  helptextDropdown: i,
1959
- helptextDropdownButton: s,
1960
- optionalTag: l = !1,
1959
+ helptextDropdownButton: l,
1960
+ optionalTag: s = !1,
1961
1961
  optionalText: c = "Valgfritt",
1962
1962
  requiredTag: o = !1,
1963
1963
  requiredText: p = "Må fylles ut",
@@ -1971,9 +1971,9 @@ const Re = V(
1971
1971
  className: O,
1972
1972
  hasFieldset: R = !1
1973
1973
  }, _) => {
1974
- const [v, y] = le(!1), A = () => {
1974
+ const [v, y] = te(!1), A = () => {
1975
1975
  y(!v);
1976
- }, U = () => l ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = l ? c : o ? p : "", B = h ? "pkt-inputwrapper--disabled" : "", M = k ? "pkt-inputwrapper--inline" : "", Y = u ? "pkt-inputwrapper--error" : "", z = !!i && i !== "", K = s || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', I = R ? "fieldset" : z ? "div" : "label", b = R ? "legend" : z ? "h2" : "span", L = C || (a ? `${e}-helptext` : void 0);
1976
+ }, U = () => s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", W = s ? c : o ? p : "", B = h ? "pkt-inputwrapper--disabled" : "", M = k ? "pkt-inputwrapper--inline" : "", Y = u ? "pkt-inputwrapper--error" : "", z = !!i && i !== "", K = l || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', I = R ? "fieldset" : z ? "div" : "label", b = R ? "legend" : z ? "h2" : "span", L = C || (a ? `${e}-helptext` : void 0);
1977
1977
  return /* @__PURE__ */ t.jsxs("div", { className: ["pkt-inputwrapper", O, B, M, Y].join(" "), ref: _, children: [
1978
1978
  j ? /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs(
1979
1979
  I,
@@ -2034,18 +2034,18 @@ const mr = V(
2034
2034
  className: r,
2035
2035
  iconName: a = "user",
2036
2036
  openInNewTab: i = !1,
2037
- skin: s = "normal",
2038
- href: l = "#",
2037
+ skin: l = "normal",
2038
+ href: s = "#",
2039
2039
  external: c = !1,
2040
2040
  title: o,
2041
2041
  ...p
2042
2042
  }, u) => {
2043
- const d = [r, "pkt-linkcard", s && `pkt-linkcard--${s}`].filter(Boolean).join(" ");
2043
+ const d = [r, "pkt-linkcard", l && `pkt-linkcard--${l}`].filter(Boolean).join(" ");
2044
2044
  return /* @__PURE__ */ t.jsxs(
2045
2045
  "a",
2046
2046
  {
2047
2047
  ...p,
2048
- href: l,
2048
+ href: s,
2049
2049
  className: `pkt-linkcard pkt-link ${d}`,
2050
2050
  target: i ? "_blank" : "_self",
2051
2051
  rel: i ? "noopener noreferrer" : void 0,
@@ -2068,13 +2068,13 @@ const jr = V(
2068
2068
  message: r,
2069
2069
  size: a = "medium",
2070
2070
  inline: i = !1,
2071
- isLoading: s = !0,
2072
- variant: l = "rainbow",
2071
+ isLoading: l = !0,
2072
+ variant: s = "rainbow",
2073
2073
  delay: c = 0,
2074
2074
  children: o,
2075
2075
  ...p
2076
2076
  }, u) => {
2077
- const d = `pkt-loader pkt-loader--${a}`, [h, k] = le(!(c > 0));
2077
+ const d = `pkt-loader pkt-loader--${a}`, [h, k] = te(!(c > 0));
2078
2078
  c > 0 && setTimeout(() => {
2079
2079
  k(!0);
2080
2080
  }, c);
@@ -2084,16 +2084,16 @@ const jr = V(
2084
2084
  {
2085
2085
  role: "status",
2086
2086
  "aria-live": "polite",
2087
- "aria-busy": s,
2087
+ "aria-busy": l,
2088
2088
  className: `pkt-loader--${i ? "inline" : "box"} ${e || ""}`,
2089
- children: s ? /* @__PURE__ */ t.jsx(t.Fragment, { children: h ? /* @__PURE__ */ t.jsxs("div", { className: d, "data-testid": "pkt-loader", ref: u, ...p, children: [
2089
+ children: l ? /* @__PURE__ */ t.jsx(t.Fragment, { children: h ? /* @__PURE__ */ t.jsxs("div", { className: d, "data-testid": "pkt-loader", ref: u, ...p, children: [
2090
2090
  /* @__PURE__ */ t.jsx(
2091
2091
  N,
2092
2092
  {
2093
- name: C(l),
2093
+ name: C(s),
2094
2094
  "aria-label": "loading",
2095
2095
  path: "https://punkt-cdn.oslo.kommune.no/11.13/animations/",
2096
- className: `pkt-loader__svg pkt-loader__${l}`
2096
+ className: `pkt-loader__svg pkt-loader__${s}`
2097
2097
  }
2098
2098
  ),
2099
2099
  r && /* @__PURE__ */ t.jsx("p", { children: r })
@@ -2101,32 +2101,49 @@ const jr = V(
2101
2101
  }
2102
2102
  );
2103
2103
  }
2104
- ), yr = ({
2105
- children: e,
2106
- className: r,
2107
- compact: a = !1,
2108
- skin: i = "beige",
2109
- title: s,
2110
- ...l
2111
- }) => {
2112
- const c = [
2113
- r,
2114
- "pkt-messagebox",
2115
- i && `pkt-messagebox--${i}`,
2116
- a && "pkt-messagebox--compact"
2117
- ].filter(Boolean).join(" ");
2118
- return /* @__PURE__ */ t.jsxs("div", { ...l, className: c, children: [
2119
- s && /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__title", children: s }),
2120
- /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__text", children: e })
2121
- ] });
2122
- }, hr = V(
2104
+ ), yr = V(
2105
+ ({
2106
+ children: e,
2107
+ className: r,
2108
+ compact: a = !1,
2109
+ closable: i = !1,
2110
+ skin: l = "beige",
2111
+ title: s,
2112
+ onClose: c,
2113
+ ...o
2114
+ }, p) => {
2115
+ const [u, d] = te(!0), h = () => {
2116
+ d(!1), c && c();
2117
+ }, k = [
2118
+ r,
2119
+ "pkt-messagebox",
2120
+ l && `pkt-messagebox--${l}`,
2121
+ a && "pkt-messagebox--compact"
2122
+ ].filter(Boolean).join(" ");
2123
+ return u ? /* @__PURE__ */ t.jsxs("div", { ...o, className: k, ref: p, children: [
2124
+ i && /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__close", children: /* @__PURE__ */ t.jsx(
2125
+ "button",
2126
+ {
2127
+ type: "button",
2128
+ className: "pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",
2129
+ tabIndex: 0,
2130
+ "aria-label": "close",
2131
+ onClick: h,
2132
+ children: /* @__PURE__ */ t.jsx(N, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
2133
+ }
2134
+ ) }),
2135
+ s && /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__title", children: s }),
2136
+ /* @__PURE__ */ t.jsx("div", { className: "pkt-messagebox__text", children: e })
2137
+ ] }) : null;
2138
+ }
2139
+ ), hr = V(
2123
2140
  ({
2124
2141
  id: e,
2125
2142
  name: r,
2126
2143
  label: a,
2127
2144
  className: i,
2128
- hasTile: s = !1,
2129
- disabled: l = !1,
2145
+ hasTile: l = !1,
2146
+ disabled: s = !1,
2130
2147
  checkHelptext: c,
2131
2148
  hasError: o = !1,
2132
2149
  ...p
@@ -2135,7 +2152,7 @@ const jr = V(
2135
2152
  i,
2136
2153
  "pkt-input-check"
2137
2154
  ].filter(Boolean).join(" ");
2138
- return /* @__PURE__ */ t.jsx("div", { className: d, children: /* @__PURE__ */ t.jsxs("div", { className: `pkt-input-check__input ${s ? "pkt-input-check__input--tile" : ""} ${l && s ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2155
+ return /* @__PURE__ */ t.jsx("div", { className: d, children: /* @__PURE__ */ t.jsxs("div", { className: `pkt-input-check__input ${l ? "pkt-input-check__input--tile" : ""} ${s && l ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2139
2156
  /* @__PURE__ */ t.jsx(
2140
2157
  "input",
2141
2158
  {
@@ -2143,7 +2160,7 @@ const jr = V(
2143
2160
  className: `pkt-input-check__input-checkbox ${o ? "pkt-input-check__input-checkbox--error" : ""}`,
2144
2161
  type: "radio",
2145
2162
  id: e,
2146
- disabled: l,
2163
+ disabled: s,
2147
2164
  name: r,
2148
2165
  ...p
2149
2166
  }
@@ -2162,8 +2179,8 @@ const wr = V(
2162
2179
  appearance: r = "local",
2163
2180
  disabled: a = !1,
2164
2181
  fullwidth: i = !1,
2165
- id: s,
2166
- label: l,
2182
+ id: l,
2183
+ label: s,
2167
2184
  method: c = "get",
2168
2185
  name: o,
2169
2186
  placeholder: p = "Søk…",
@@ -2175,7 +2192,7 @@ const wr = V(
2175
2192
  }, j) => {
2176
2193
  const S = (v, y) => {
2177
2194
  v ? v() : k && k(y);
2178
- }, O = `pkt-searchinput pkt-searchinput--${r} ${i ? "pkt-searchinput--fullwidth" : ""}`, R = e ? "form" : "div", _ = l ? "label" : "div";
2195
+ }, O = `pkt-searchinput pkt-searchinput--${r} ${i ? "pkt-searchinput--fullwidth" : ""}`, R = e ? "form" : "div", _ = s ? "label" : "div";
2179
2196
  return /* @__PURE__ */ t.jsxs(
2180
2197
  R,
2181
2198
  {
@@ -2187,23 +2204,23 @@ const wr = V(
2187
2204
  ref: j,
2188
2205
  ...C,
2189
2206
  children: [
2190
- /* @__PURE__ */ t.jsxs(_, { htmlFor: l ? s : void 0, className: l ? "pkt-inputwrapper__label" : "", children: [
2191
- l && /* @__PURE__ */ t.jsx(t.Fragment, { children: l }),
2207
+ /* @__PURE__ */ t.jsxs(_, { htmlFor: s ? l : void 0, className: s ? "pkt-inputwrapper__label" : "", children: [
2208
+ s && /* @__PURE__ */ t.jsx(t.Fragment, { children: s }),
2192
2209
  /* @__PURE__ */ t.jsxs("div", { className: r === "local" ? "pkt-input__container" : "pkt-searchinput__field", children: [
2193
2210
  /* @__PURE__ */ t.jsx(
2194
2211
  "input",
2195
2212
  {
2196
2213
  className: `pkt-input ${i ? "pkt-input--fullwidth" : ""}`,
2197
2214
  type: "search",
2198
- name: o || s,
2199
- id: s,
2215
+ name: o || l,
2216
+ id: l,
2200
2217
  placeholder: p,
2201
2218
  defaultValue: d,
2202
2219
  disabled: a,
2203
2220
  onInput: h && ((v) => h(v.currentTarget.value)),
2204
2221
  autoComplete: "off",
2205
2222
  "aria-autocomplete": "list",
2206
- "aria-controls": `${s}-suggestions`
2223
+ "aria-controls": `${l}-suggestions`
2207
2224
  }
2208
2225
  ),
2209
2226
  /* @__PURE__ */ t.jsx(
@@ -2218,12 +2235,12 @@ const wr = V(
2218
2235
  disabled: a,
2219
2236
  onClick: h && (() => h(d)),
2220
2237
  onKeyUp: h && ((v) => v.key === "Enter" && h(d)),
2221
- children: l || p
2238
+ children: s || p
2222
2239
  }
2223
2240
  )
2224
2241
  ] })
2225
2242
  ] }),
2226
- u && /* @__PURE__ */ t.jsx("ul", { id: `${s}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: u.map((v, y) => /* @__PURE__ */ t.jsx("li", { children: X.createElement(
2243
+ u && /* @__PURE__ */ t.jsx("ul", { id: `${l}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: u.map((v, y) => /* @__PURE__ */ t.jsx("li", { children: X.createElement(
2227
2244
  v.href ? "a" : v.onClick ? "button" : "div",
2228
2245
  {
2229
2246
  href: v.href,
@@ -2247,8 +2264,8 @@ const wr = V(
2247
2264
  ariaLabelledby: r,
2248
2265
  children: a,
2249
2266
  className: i,
2250
- disabled: s = !1,
2251
- errorMessage: l,
2267
+ disabled: l = !1,
2268
+ errorMessage: s,
2252
2269
  hasError: c,
2253
2270
  helptext: o,
2254
2271
  helptextDropdown: p,
@@ -2279,8 +2296,8 @@ const wr = V(
2279
2296
  requiredTag: R,
2280
2297
  requiredText: _,
2281
2298
  hasError: c,
2282
- errorMessage: l,
2283
- disabled: s,
2299
+ errorMessage: s,
2300
+ disabled: l,
2284
2301
  inline: h,
2285
2302
  ariaDescribedby: e,
2286
2303
  children: /* @__PURE__ */ t.jsx(
@@ -2291,7 +2308,7 @@ const wr = V(
2291
2308
  "aria-invalid": c,
2292
2309
  "aria-errormessage": `${d}-error`,
2293
2310
  "aria-labelledby": r || `${d}-label`,
2294
- disabled: s,
2311
+ disabled: l,
2295
2312
  id: d,
2296
2313
  name: j || d,
2297
2314
  ...v,
@@ -2306,47 +2323,47 @@ const wr = V(
2306
2323
  compact: r = !1,
2307
2324
  skin: a = "basic",
2308
2325
  responsiveView: i = !0,
2309
- children: s
2326
+ children: l
2310
2327
  }) => /* @__PURE__ */ t.jsx(
2311
2328
  "table",
2312
2329
  {
2313
2330
  "data-testid": "pkt-table",
2314
- className: te(e, "pkt-table", {
2331
+ className: ne(e, "pkt-table", {
2315
2332
  "pkt-table--responsive": i,
2316
2333
  "pkt-table--compact": r,
2317
2334
  "pkt-table--basic": a === "basic",
2318
2335
  "pkt-table--zebra-blue": a === "zebra-blue"
2319
2336
  }),
2320
2337
  role: "table",
2321
- children: s
2338
+ children: l
2322
2339
  }
2323
2340
  ), Rr = ({ children: e, className: r, dataLabel: a }) => /* @__PURE__ */ t.jsx(
2324
2341
  "td",
2325
2342
  {
2326
- className: te(r, "pkt-table__data-cell", {}),
2343
+ className: ne(r, "pkt-table__data-cell", {}),
2327
2344
  "data-label": a,
2328
2345
  role: "cell",
2329
2346
  "data-testid": "pkt-table__data-cell",
2330
2347
  children: e
2331
2348
  }
2332
- ), Pr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("th", { className: te(e, "pkt-table__header-cell", {}), role: "columnheader", children: r }), Sr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("thead", { className: te(e, "pkt-table__header", {}), role: "rowgroup", children: r }), Tr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("tr", { className: te(e, "pkt-table__row", {}), role: "row", children: r }), Or = ({ children: e, className: r }) => /* @__PURE__ */ t.jsx("tbody", { className: te(r, "pkt-table__body", {}), role: "rowgroup", children: e }), Je = V(({
2349
+ ), Pr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("th", { className: ne(e, "pkt-table__header-cell", {}), role: "columnheader", children: r }), Sr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("thead", { className: ne(e, "pkt-table__header", {}), role: "rowgroup", children: r }), Tr = ({ className: e, children: r }) => /* @__PURE__ */ t.jsx("tr", { className: ne(e, "pkt-table__row", {}), role: "row", children: r }), Or = ({ children: e, className: r }) => /* @__PURE__ */ t.jsx("tbody", { className: ne(r, "pkt-table__body", {}), role: "rowgroup", children: e }), Je = V(({
2333
2350
  children: e,
2334
2351
  className: r,
2335
2352
  skin: a = "blue",
2336
2353
  textStyle: i = "normal-text",
2337
- size: s = "medium",
2338
- closeTag: l = !1,
2354
+ size: l = "medium",
2355
+ closeTag: s = !1,
2339
2356
  iconName: c = "",
2340
2357
  type: o = "button",
2341
2358
  ariaLabel: p = "close",
2342
2359
  onClick: u = () => {
2343
2360
  }
2344
2361
  }, d) => {
2345
- const [h, k] = le(!1), C = (R) => {
2362
+ const [h, k] = te(!1), C = (R) => {
2346
2363
  k(!0), u(R);
2347
2364
  }, j = [
2348
2365
  "pkt-tag",
2349
- s && `pkt-tag--${s}`,
2366
+ l && `pkt-tag--${l}`,
2350
2367
  a && `pkt-tag--${a}`,
2351
2368
  i && `pkt-tag--${i}`,
2352
2369
  r
@@ -2354,14 +2371,14 @@ const wr = V(
2354
2371
  "pkt-tag",
2355
2372
  "pkt-btn",
2356
2373
  "pkt-btn--tertiary",
2357
- s && `pkt-tag--${s}`,
2374
+ l && `pkt-tag--${l}`,
2358
2375
  a && `pkt-tag--${a}`,
2359
2376
  i && `pkt-tag--${i}`,
2360
- c && l ? "pkt-btn--icons-right-and-left" : null,
2361
- l && !c ? "pkt-btn--icon-right" : null,
2377
+ c && s ? "pkt-btn--icons-right-and-left" : null,
2378
+ s && !c ? "pkt-btn--icon-right" : null,
2362
2379
  r
2363
2380
  ].filter(Boolean).join(" "), O = !h;
2364
- return l && c ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2381
+ return s && c ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2365
2382
  "button",
2366
2383
  {
2367
2384
  className: S,
@@ -2375,7 +2392,7 @@ const wr = V(
2375
2392
  /* @__PURE__ */ t.jsx(N, { className: "pkt-tag__close-btn", name: "close" })
2376
2393
  ]
2377
2394
  }
2378
- ) }) : l ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2395
+ ) }) : s ? /* @__PURE__ */ t.jsx(t.Fragment, { children: O && /* @__PURE__ */ t.jsxs(
2379
2396
  "button",
2380
2397
  {
2381
2398
  className: S,
@@ -2396,15 +2413,15 @@ const wr = V(
2396
2413
  Je.displayName = "PktTag";
2397
2414
  const $r = V(
2398
2415
  ({ arrowNav: e = !0, tabs: r, onTabSelected: a }, i) => {
2399
- const s = yt([]);
2416
+ const l = yt([]);
2400
2417
  ze(() => {
2401
- s.current = s.current.slice(0, r.length);
2418
+ l.current = l.current.slice(0, r.length);
2402
2419
  }, [r]);
2403
- const l = (o, p) => {
2420
+ const s = (o, p) => {
2404
2421
  p.action && p.action(o), a && a(o);
2405
2422
  }, c = (o, p) => {
2406
2423
  var u, d;
2407
- e && (p.code === "ArrowLeft" && o !== 0 && ((u = s.current[o - 1]) == null || u.focus()), p.code === "ArrowRight" && o < r.length - 1 && ((d = s.current[o + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && l(o, r[o]));
2424
+ e && (p.code === "ArrowLeft" && o !== 0 && ((u = l.current[o - 1]) == null || u.focus()), p.code === "ArrowRight" && o < r.length - 1 && ((d = l.current[o + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && s(o, r[o]));
2408
2425
  };
2409
2426
  return /* @__PURE__ */ t.jsx("div", { className: "pkt-tabs", ref: i, children: /* @__PURE__ */ t.jsx("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: r.map((o, p) => /* @__PURE__ */ t.jsx(mn, { children: o.href ? /* @__PURE__ */ t.jsxs(
2410
2427
  "a",
@@ -2415,10 +2432,10 @@ const $r = V(
2415
2432
  "aria-controls": o.controls,
2416
2433
  className: `pkt-tabs__link ${o.active ? "active" : ""}`,
2417
2434
  onKeyUp: (u) => c(p, u),
2418
- onClick: () => l(p, o),
2435
+ onClick: () => s(p, o),
2419
2436
  tabIndex: o.active || !e ? void 0 : -1,
2420
2437
  ref: (u) => {
2421
- s.current[p] = u;
2438
+ l.current[p] = u;
2422
2439
  },
2423
2440
  children: [
2424
2441
  o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
@@ -2435,10 +2452,10 @@ const $r = V(
2435
2452
  "aria-controls": o.controls,
2436
2453
  className: `pkt-tabs__button pkt-link-button ${o.active ? "active" : ""}`,
2437
2454
  onKeyUp: (u) => c(p, u),
2438
- onClick: () => l(p, o),
2455
+ onClick: () => s(p, o),
2439
2456
  tabIndex: o.active || !e ? void 0 : -1,
2440
2457
  ref: (u) => {
2441
- s.current[p] = u;
2458
+ l.current[p] = u;
2442
2459
  },
2443
2460
  children: [
2444
2461
  o.icon && /* @__PURE__ */ t.jsx(N, { name: o.icon, className: "pkt-icon--small" }),
@@ -2455,8 +2472,8 @@ const $r = V(
2455
2472
  ariaDescribedby: r,
2456
2473
  ariaLabelledby: a,
2457
2474
  counter: i,
2458
- counterMaxLength: s,
2459
- className: l,
2475
+ counterMaxLength: l,
2476
+ className: s,
2460
2477
  disabled: c,
2461
2478
  errorMessage: o,
2462
2479
  hasError: p,
@@ -2477,7 +2494,7 @@ const $r = V(
2477
2494
  onChange: W,
2478
2495
  ...B
2479
2496
  }, M) => {
2480
- const Y = [l, "pkt-textinput", "pkt-textarea"].join(" "), z = a || `${e}-label`, K = yt(null), [I, b] = le(0), L = (Z) => {
2497
+ const Y = [s, "pkt-textinput", "pkt-textarea"].join(" "), z = a || `${e}-label`, K = yt(null), [I, b] = te(0), L = (Z) => {
2481
2498
  var Q, oe;
2482
2499
  if (i && b(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), W)
2483
2500
  return W(Z);
@@ -2509,7 +2526,7 @@ const $r = V(
2509
2526
  "textarea",
2510
2527
  {
2511
2528
  ref: K,
2512
- className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${s && I > s ? "pkt-input--counter-error" : ""}`,
2529
+ className: `pkt-input ${C ? "pkt-input--fullwidth" : ""} ${l && I > l ? "pkt-input--counter-error" : ""}`,
2513
2530
  name: S || e,
2514
2531
  id: e,
2515
2532
  placeholder: y,
@@ -2524,7 +2541,7 @@ const $r = V(
2524
2541
  ),
2525
2542
  i && /* @__PURE__ */ t.jsxs("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2526
2543
  I || 0,
2527
- s && `/${s}`
2544
+ l && `/${l}`
2528
2545
  ] })
2529
2546
  ]
2530
2547
  }
@@ -2536,8 +2553,8 @@ const $r = V(
2536
2553
  ariaDescribedby: r,
2537
2554
  ariaLabelledby: a,
2538
2555
  autocomplete: i = "off",
2539
- className: s,
2540
- disabled: l = !1,
2556
+ className: l,
2557
+ disabled: s = !1,
2541
2558
  errorMessage: c,
2542
2559
  hasError: o = !1,
2543
2560
  helptext: p,
@@ -2561,13 +2578,13 @@ const $r = V(
2561
2578
  value: Y,
2562
2579
  ...z
2563
2580
  }, K) => {
2564
- const I = [s, "pkt-textinput"].join(" "), b = a || `${e}-label`, L = W === "search" && !h && !M;
2581
+ const I = [l, "pkt-textinput"].join(" "), b = a || `${e}-label`, L = W === "search" && !h && !M;
2565
2582
  return /* @__PURE__ */ t.jsx(
2566
2583
  Re,
2567
2584
  {
2568
2585
  ariaDescribedby: r,
2569
2586
  className: I,
2570
- disabled: l,
2587
+ disabled: s,
2571
2588
  errorMessage: c,
2572
2589
  forId: e,
2573
2590
  hasError: o,
@@ -2594,7 +2611,7 @@ const $r = V(
2594
2611
  placeholder: y,
2595
2612
  autoComplete: i,
2596
2613
  value: Y,
2597
- disabled: l,
2614
+ disabled: s,
2598
2615
  "aria-invalid": o,
2599
2616
  "aria-errormessage": `${e}-error`,
2600
2617
  "aria-labelledby": b,