@oslokommune/punkt-react 11.2.2 → 11.4.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.
@@ -19,18 +19,18 @@ function mn() {
19
19
  if (vt)
20
20
  return ce;
21
21
  vt = 1;
22
- var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function c(s, p, u) {
22
+ var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, r = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
23
+ function s(c, p, u) {
24
24
  var d, k = {}, _ = null, P = null;
25
25
  u !== void 0 && (_ = "" + u), p.key !== void 0 && (_ = "" + p.key), p.ref !== void 0 && (P = p.ref);
26
26
  for (d in p)
27
- i.call(p, d) && !o.hasOwnProperty(d) && (k[d] = p[d]);
28
- if (s && s.defaultProps)
29
- for (d in p = s.defaultProps, p)
27
+ l.call(p, d) && !o.hasOwnProperty(d) && (k[d] = p[d]);
28
+ if (c && c.defaultProps)
29
+ for (d in p = c.defaultProps, p)
30
30
  k[d] === void 0 && (k[d] = p[d]);
31
- return { $$typeof: n, type: s, key: _, ref: P, props: k, _owner: r.current };
31
+ return { $$typeof: n, type: c, key: _, ref: P, props: k, _owner: r.current };
32
32
  }
33
- return ce.Fragment = a, ce.jsx = c, ce.jsxs = c, ce;
33
+ return ce.Fragment = a, ce.jsx = s, ce.jsxs = s, ce;
34
34
  }
35
35
  var ue = {};
36
36
  /**
@@ -45,7 +45,7 @@ var ue = {};
45
45
  var _t;
46
46
  function hn() {
47
47
  return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
48
- var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), s = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), R = Symbol.iterator, T = "@@iterator";
48
+ var e = H, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), R = Symbol.iterator, T = "@@iterator";
49
49
  function j(t) {
50
50
  if (t === null || typeof t != "object")
51
51
  return null;
@@ -73,7 +73,7 @@ function hn() {
73
73
  var O = !1, U = !1, A = !1, V = !1, K = !1, W;
74
74
  W = Symbol.for("react.module.reference");
75
75
  function G(t) {
76
- return !!(typeof t == "string" || typeof t == "function" || t === i || t === o || K || t === r || t === u || t === d || V || t === P || O || U || A || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === k || t.$$typeof === c || t.$$typeof === s || t.$$typeof === p || // This needs to include all possible module reference object
76
+ return !!(typeof t == "string" || typeof t == "function" || t === l || t === o || K || t === r || t === u || t === d || V || t === P || O || U || A || typeof t == "object" && t !== null && (t.$$typeof === _ || t.$$typeof === k || t.$$typeof === s || t.$$typeof === c || t.$$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.
@@ -97,7 +97,7 @@ function hn() {
97
97
  if (typeof t == "string")
98
98
  return t;
99
99
  switch (t) {
100
- case i:
100
+ case l:
101
101
  return "Fragment";
102
102
  case a:
103
103
  return "Portal";
@@ -112,10 +112,10 @@ function hn() {
112
112
  }
113
113
  if (typeof t == "object")
114
114
  switch (t.$$typeof) {
115
- case s:
115
+ case c:
116
116
  var f = t;
117
117
  return g(f) + ".Consumer";
118
- case c:
118
+ case s:
119
119
  var m = t;
120
120
  return g(m._context) + ".Provider";
121
121
  case p:
@@ -616,7 +616,7 @@ Check the top-level render call using <` + m + ">.");
616
616
  else
617
617
  mt(q, t);
618
618
  }
619
- return t === i ? an(F) : rn(F), F;
619
+ return t === l ? an(F) : rn(F), F;
620
620
  }
621
621
  }
622
622
  function ln(t, f, m) {
@@ -626,23 +626,23 @@ Check the top-level render call using <` + m + ">.");
626
626
  return ht(t, f, m, !1);
627
627
  }
628
628
  var sn = on, cn = ln;
629
- ue.Fragment = i, ue.jsx = sn, ue.jsxs = cn;
629
+ ue.Fragment = l, ue.jsx = sn, ue.jsxs = cn;
630
630
  }()), ue;
631
631
  }
632
632
  process.env.NODE_ENV === "production" ? Ve.exports = mn() : Ve.exports = hn();
633
633
  var Je = Ve.exports;
634
- const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', vn = "https://punkt-cdn.oslo.kommune.no/11.2/icons/", _n = (e, n) => (!Fe[e] && typeof window.fetch == "function" && (Fe[e] = window.fetch(n + e + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + n + e + ".svg"), kn)).then((a) => a)), Promise.resolve(Fe[e])), bn = {
634
+ const X = Je.Fragment, i = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', vn = "https://punkt-cdn.oslo.kommune.no/11.4/icons/", _n = (e, n) => (!Fe[e] && typeof window.fetch == "function" && (Fe[e] = window.fetch(n + e + ".svg").then((a) => a.ok ? a.text() : (console.error("Missing icon: " + n + e + ".svg"), kn)).then((a) => a)), Promise.resolve(Fe[e])), bn = {
635
635
  fetchIcon: async (e, n) => _n(e, n || vn)
636
- }, gn = un(bn), E = ({ name: e, path: n, className: a = "", ...i }) => {
637
- const [r, o] = de(null), c = pn(gn);
636
+ }, gn = un(bn), E = ({ name: e, path: n, className: a = "", ...l }) => {
637
+ const [r, o] = de(null), s = pn(gn);
638
638
  return Ke(() => {
639
- e ? c.fetchIcon(e, n).then(o) : o(null);
640
- }, [e, n]), r ? /* @__PURE__ */ l(
639
+ e ? s.fetchIcon(e, n).then(o) : o(null);
640
+ }, [e, n]), r ? /* @__PURE__ */ i(
641
641
  "span",
642
642
  {
643
643
  className: `pkt-icon ${a}`,
644
644
  dangerouslySetInnerHTML: { __html: r },
645
- ...i
645
+ ...l
646
646
  }
647
647
  ) : null;
648
648
  }, Nn = M(
@@ -650,31 +650,31 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
650
650
  children: e,
651
651
  className: n,
652
652
  skin: a = "info",
653
- closeAlert: i = !1,
653
+ closeAlert: l = !1,
654
654
  onClose: r,
655
655
  title: o,
656
- date: c,
657
- ariaLive: s = "polite",
658
- slim: p = !1,
656
+ date: s,
657
+ ariaLive: c = "polite",
658
+ compact: p = !1,
659
659
  ...u
660
660
  }, d) => {
661
661
  const k = [
662
662
  n,
663
663
  "pkt-alert",
664
664
  a && `pkt-alert--${a}`,
665
- p && "pkt-alert--slim"
665
+ p && "pkt-alert--compact"
666
666
  ].filter(Boolean).join(" "), [_, P] = de(!0), R = () => {
667
667
  P(!1), r && r();
668
668
  };
669
- return _ ? /* @__PURE__ */ h("div", { ...u, className: k, "aria-live": s, ref: d, children: [
670
- /* @__PURE__ */ l(
669
+ return _ ? /* @__PURE__ */ h("div", { ...u, className: k, "aria-live": c, ref: d, children: [
670
+ /* @__PURE__ */ i(
671
671
  E,
672
672
  {
673
673
  className: "pkt-alert__icon",
674
674
  name: a === "info" ? "alert-information" : `alert-${a}`
675
675
  }
676
676
  ),
677
- i && /* @__PURE__ */ l("div", { className: "pkt-alert__close", children: /* @__PURE__ */ l(
677
+ l && /* @__PURE__ */ i("div", { className: "pkt-alert__close", children: /* @__PURE__ */ i(
678
678
  "button",
679
679
  {
680
680
  type: "button",
@@ -682,28 +682,28 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
682
682
  tabIndex: 0,
683
683
  "aria-label": "close",
684
684
  onClick: R,
685
- children: /* @__PURE__ */ l(E, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
685
+ children: /* @__PURE__ */ i(E, { name: "close", className: "pkt-btn__icon", "aria-hidden": "true" })
686
686
  }
687
687
  ) }),
688
- o && /* @__PURE__ */ l("div", { className: "pkt-alert__title", children: o }),
689
- /* @__PURE__ */ l("div", { className: "pkt-alert__text", children: e }),
690
- c && /* @__PURE__ */ h("div", { className: "pkt-alert__date", children: [
688
+ o && /* @__PURE__ */ i("div", { className: "pkt-alert__title", children: o }),
689
+ /* @__PURE__ */ i("div", { className: "pkt-alert__text", children: e }),
690
+ s && /* @__PURE__ */ h("div", { className: "pkt-alert__date", children: [
691
691
  "Sist oppdatert: ",
692
- c
692
+ s
693
693
  ] })
694
694
  ] }) : null;
695
695
  }
696
696
  ), vr = M(
697
- ({ href: e, text: n, onClick: a, className: i, ...r }, o) => {
698
- const c = [
699
- i,
697
+ ({ href: e, text: n, onClick: a, className: l, ...r }, o) => {
698
+ const s = [
699
+ l,
700
700
  "pkt-back-link"
701
701
  ].filter(Boolean).join(" ");
702
- return /* @__PURE__ */ l("nav", { ref: o, className: c, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ h("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
702
+ return /* @__PURE__ */ i("nav", { ref: o, className: s, "aria-label": "Gå tilbake et steg", children: /* @__PURE__ */ h("a", { href: e || "/", className: "pkt-link pkt-link--icon-left", onClick: () => {
703
703
  a && a();
704
704
  }, ...r, children: [
705
- /* @__PURE__ */ l(E, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
706
- /* @__PURE__ */ l("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
705
+ /* @__PURE__ */ i(E, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
706
+ /* @__PURE__ */ i("span", { className: "pkt-back-link__text", children: n || "Forsiden" })
707
707
  ] }) });
708
708
  }
709
709
  );
@@ -721,8 +721,8 @@ function We() {
721
721
  return We = Object.assign ? Object.assign.bind() : function(e) {
722
722
  for (var n = 1; n < arguments.length; n++) {
723
723
  var a = arguments[n];
724
- for (var i in a)
725
- Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
724
+ for (var l in a)
725
+ Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
726
726
  }
727
727
  return e;
728
728
  }, We.apply(this, arguments);
@@ -748,17 +748,17 @@ function Be(e) {
748
748
  let {
749
749
  pathname: n = "/",
750
750
  search: a = "",
751
- hash: i = ""
751
+ hash: l = ""
752
752
  } = e;
753
- return a && a !== "?" && (n += a.charAt(0) === "?" ? a : "?" + a), i && i !== "#" && (n += i.charAt(0) === "#" ? i : "#" + i), n;
753
+ return a && a !== "?" && (n += a.charAt(0) === "?" ? a : "?" + a), l && l !== "#" && (n += l.charAt(0) === "#" ? l : "#" + l), n;
754
754
  }
755
755
  function Et(e) {
756
756
  let n = {};
757
757
  if (e) {
758
758
  let a = e.indexOf("#");
759
759
  a >= 0 && (n.hash = e.substr(a), e = e.substr(0, a));
760
- let i = e.indexOf("?");
761
- i >= 0 && (n.search = e.substr(i), e = e.substr(0, i)), e && (n.pathname = e);
760
+ let l = e.indexOf("?");
761
+ l >= 0 && (n.search = e.substr(l), e = e.substr(0, l)), e && (n.pathname = e);
762
762
  }
763
763
  return n;
764
764
  }
@@ -772,37 +772,37 @@ function Nt(e, n) {
772
772
  caseSensitive: !1,
773
773
  end: !0
774
774
  });
775
- let [a, i] = yn(e.path, e.caseSensitive, e.end), r = n.match(a);
775
+ let [a, l] = yn(e.path, e.caseSensitive, e.end), r = n.match(a);
776
776
  if (!r)
777
777
  return null;
778
- let o = r[0], c = o.replace(/(.)\/+$/, "$1"), s = r.slice(1);
778
+ let o = r[0], s = o.replace(/(.)\/+$/, "$1"), c = r.slice(1);
779
779
  return {
780
- params: i.reduce((u, d, k) => {
780
+ params: l.reduce((u, d, k) => {
781
781
  let {
782
782
  paramName: _,
783
783
  isOptional: P
784
784
  } = d;
785
785
  if (_ === "*") {
786
- let T = s[k] || "";
787
- c = o.slice(0, o.length - T.length).replace(/(.)\/+$/, "$1");
786
+ let T = c[k] || "";
787
+ s = o.slice(0, o.length - T.length).replace(/(.)\/+$/, "$1");
788
788
  }
789
- const R = s[k];
789
+ const R = c[k];
790
790
  return P && !R ? u[_] = void 0 : u[_] = wn(R || "", _), u;
791
791
  }, {}),
792
792
  pathname: o,
793
- pathnameBase: c,
793
+ pathnameBase: s,
794
794
  pattern: e
795
795
  };
796
796
  }
797
797
  function yn(e, n, a) {
798
798
  n === void 0 && (n = !1), a === void 0 && (a = !0), le(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(/\*$/, "/*") + '".'));
799
- let i = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (c, s, p) => (i.push({
800
- paramName: s,
799
+ let l = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (s, c, p) => (l.push({
800
+ paramName: c,
801
801
  isOptional: p != null
802
802
  }), p ? "/?([^\\/]+)?" : "/([^\\/]+)"));
803
- return e.endsWith("*") ? (i.push({
803
+ return e.endsWith("*") ? (l.push({
804
804
  paramName: "*"
805
- }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), i];
805
+ }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : a ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), l];
806
806
  }
807
807
  function wn(e, n) {
808
808
  try {
@@ -816,19 +816,19 @@ function pe(e, n) {
816
816
  return e;
817
817
  if (!e.toLowerCase().startsWith(n.toLowerCase()))
818
818
  return null;
819
- let a = n.endsWith("/") ? n.length - 1 : n.length, i = e.charAt(a);
820
- return i && i !== "/" ? null : e.slice(a) || "/";
819
+ let a = n.endsWith("/") ? n.length - 1 : n.length, l = e.charAt(a);
820
+ return l && l !== "/" ? null : e.slice(a) || "/";
821
821
  }
822
822
  function En(e, n) {
823
823
  n === void 0 && (n = "/");
824
824
  let {
825
825
  pathname: a,
826
- search: i = "",
826
+ search: l = "",
827
827
  hash: r = ""
828
828
  } = typeof e == "string" ? Et(e) : e;
829
829
  return {
830
830
  pathname: a ? a.startsWith("/") ? a : xn(a, n) : n,
831
- search: Rn(i),
831
+ search: Rn(l),
832
832
  hash: Pn(r)
833
833
  };
834
834
  }
@@ -838,43 +838,43 @@ function xn(e, n) {
838
838
  r === ".." ? a.length > 1 && a.pop() : r !== "." && a.push(r);
839
839
  }), a.length > 1 ? a.join("/") : "/";
840
840
  }
841
- function Ue(e, n, a, i) {
842
- return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(i) + "]. Please separate it out to the ") + ("`to." + a + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
841
+ function Ue(e, n, a, l) {
842
+ return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + n + "` field [" + JSON.stringify(l) + "]. Please separate it out to the ") + ("`to." + a + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
843
843
  }
844
844
  function Cn(e) {
845
845
  return e.filter((n, a) => a === 0 || n.route.path && n.route.path.length > 0);
846
846
  }
847
847
  function xt(e, n) {
848
848
  let a = Cn(e);
849
- return n ? a.map((i, r) => r === e.length - 1 ? i.pathname : i.pathnameBase) : a.map((i) => i.pathnameBase);
849
+ return n ? a.map((l, r) => r === e.length - 1 ? l.pathname : l.pathnameBase) : a.map((l) => l.pathnameBase);
850
850
  }
851
- function Ct(e, n, a, i) {
852
- i === void 0 && (i = !1);
851
+ function Ct(e, n, a, l) {
852
+ l === void 0 && (l = !1);
853
853
  let r;
854
854
  typeof e == "string" ? r = Et(e) : (r = We({}, e), I(!r.pathname || !r.pathname.includes("?"), Ue("?", "pathname", "search", r)), I(!r.pathname || !r.pathname.includes("#"), Ue("#", "pathname", "hash", r)), I(!r.search || !r.search.includes("#"), Ue("#", "search", "hash", r)));
855
- let o = e === "" || r.pathname === "", c = o ? "/" : r.pathname, s;
856
- if (c == null)
857
- s = a;
858
- else if (i) {
855
+ let o = e === "" || r.pathname === "", s = o ? "/" : r.pathname, c;
856
+ if (s == null)
857
+ c = a;
858
+ else if (l) {
859
859
  let k = n.length === 0 ? [] : n[n.length - 1].replace(/^\//, "").split("/");
860
- if (c.startsWith("..")) {
861
- let _ = c.split("/");
860
+ if (s.startsWith("..")) {
861
+ let _ = s.split("/");
862
862
  for (; _[0] === ".."; )
863
863
  _.shift(), k.pop();
864
864
  r.pathname = _.join("/");
865
865
  }
866
- s = "/" + k.join("/");
866
+ c = "/" + k.join("/");
867
867
  } else {
868
868
  let k = n.length - 1;
869
- if (c.startsWith("..")) {
870
- let _ = c.split("/");
869
+ if (s.startsWith("..")) {
870
+ let _ = s.split("/");
871
871
  for (; _[0] === ".."; )
872
872
  _.shift(), k -= 1;
873
873
  r.pathname = _.join("/");
874
874
  }
875
- s = k >= 0 ? n[k] : "/";
875
+ c = k >= 0 ? n[k] : "/";
876
876
  }
877
- let p = En(r, s), u = c && c !== "/" && c.endsWith("/"), d = (o || c === ".") && a.endsWith("/");
877
+ let p = En(r, c), u = s && s !== "/" && s.endsWith("/"), d = (o || s === ".") && a.endsWith("/");
878
878
  return !p.pathname.endsWith("/") && (u || d) && (p.pathname += "/"), p;
879
879
  }
880
880
  const ze = (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"];
@@ -895,8 +895,8 @@ function Me() {
895
895
  return Me = Object.assign ? Object.assign.bind() : function(e) {
896
896
  for (var n = 1; n < arguments.length; n++) {
897
897
  var a = arguments[n];
898
- for (var i in a)
899
- Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
898
+ for (var l in a)
899
+ Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
900
900
  }
901
901
  return e;
902
902
  }, Me.apply(this, arguments);
@@ -930,18 +930,18 @@ function $n(e, n) {
930
930
  "useHref() may be used only in the context of a <Router> component."
931
931
  ) : I(!1));
932
932
  let {
933
- basename: i,
933
+ basename: l,
934
934
  navigator: r
935
935
  } = N.useContext(Q), {
936
936
  hash: o,
937
- pathname: c,
938
- search: s
937
+ pathname: s,
938
+ search: c
939
939
  } = he(e, {
940
940
  relative: a
941
- }), p = c;
942
- return i !== "/" && (p = c === "/" ? i : ze([i, c])), r.createHref({
941
+ }), p = s;
942
+ return l !== "/" && (p = s === "/" ? l : ze([l, s])), r.createHref({
943
943
  pathname: p,
944
- search: s,
944
+ search: c,
945
945
  hash: o
946
946
  });
947
947
  }
@@ -976,36 +976,36 @@ function Dn() {
976
976
  let e = N.useContext(Ce), {
977
977
  basename: n,
978
978
  future: a,
979
- navigator: i
979
+ navigator: l
980
980
  } = N.useContext(Q), {
981
981
  matches: r
982
982
  } = N.useContext(ie), {
983
983
  pathname: o
984
- } = me(), c = JSON.stringify(xt(r, a.v7_relativeSplatPath)), s = N.useRef(!1);
984
+ } = me(), s = JSON.stringify(xt(r, a.v7_relativeSplatPath)), c = N.useRef(!1);
985
985
  return Tt(() => {
986
- s.current = !0;
986
+ c.current = !0;
987
987
  }), N.useCallback(function(u, d) {
988
- if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && le(s.current, St), !s.current)
988
+ if (d === void 0 && (d = {}), process.env.NODE_ENV !== "production" && le(c.current, St), !c.current)
989
989
  return;
990
990
  if (typeof u == "number") {
991
- i.go(u);
991
+ l.go(u);
992
992
  return;
993
993
  }
994
- let k = Ct(u, JSON.parse(c), o, d.relative === "path");
995
- e == null && n !== "/" && (k.pathname = k.pathname === "/" ? n : ze([n, k.pathname])), (d.replace ? i.replace : i.push)(k, d.state, d);
996
- }, [n, i, c, o, e]);
994
+ let k = Ct(u, JSON.parse(s), o, d.relative === "path");
995
+ e == null && n !== "/" && (k.pathname = k.pathname === "/" ? n : ze([n, k.pathname])), (d.replace ? l.replace : l.push)(k, d.state, d);
996
+ }, [n, l, s, o, e]);
997
997
  }
998
998
  function he(e, n) {
999
999
  let {
1000
1000
  relative: a
1001
1001
  } = n === void 0 ? {} : n, {
1002
- future: i
1002
+ future: l
1003
1003
  } = N.useContext(Q), {
1004
1004
  matches: r
1005
1005
  } = N.useContext(ie), {
1006
1006
  pathname: o
1007
- } = me(), c = JSON.stringify(xt(r, i.v7_relativeSplatPath));
1008
- return N.useMemo(() => Ct(e, JSON.parse(c), o, a === "path"), [e, c, o, a]);
1007
+ } = me(), s = JSON.stringify(xt(r, l.v7_relativeSplatPath));
1008
+ return N.useMemo(() => Ct(e, JSON.parse(s), o, a === "path"), [e, s, o, a]);
1009
1009
  }
1010
1010
  var Ot = /* @__PURE__ */ function(e) {
1011
1011
  return e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e;
@@ -1058,8 +1058,8 @@ function ae() {
1058
1058
  return ae = Object.assign ? Object.assign.bind() : function(e) {
1059
1059
  for (var n = 1; n < arguments.length; n++) {
1060
1060
  var a = arguments[n];
1061
- for (var i in a)
1062
- Object.prototype.hasOwnProperty.call(a, i) && (e[i] = a[i]);
1061
+ for (var l in a)
1062
+ Object.prototype.hasOwnProperty.call(a, l) && (e[l] = a[l]);
1063
1063
  }
1064
1064
  return e;
1065
1065
  }, ae.apply(this, arguments);
@@ -1067,9 +1067,9 @@ function ae() {
1067
1067
  function Xe(e, n) {
1068
1068
  if (e == null)
1069
1069
  return {};
1070
- var a = {}, i = Object.keys(e), r, o;
1071
- for (o = 0; o < i.length; o++)
1072
- r = i[o], !(n.indexOf(r) >= 0) && (a[r] = e[r]);
1070
+ var a = {}, l = Object.keys(e), r, o;
1071
+ for (o = 0; o < l.length; o++)
1072
+ r = l[o], !(n.indexOf(r) >= 0) && (a[r] = e[r]);
1073
1073
  return a;
1074
1074
  }
1075
1075
  const ye = "get", we = "application/x-www-form-urlencoded";
@@ -1112,16 +1112,16 @@ function Ae(e) {
1112
1112
  return e != null && !Kn.has(e) ? (process.env.NODE_ENV !== "production" && le(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + we + '"')), null) : e;
1113
1113
  }
1114
1114
  function Jn(e, n) {
1115
- let a, i, r, o, c;
1115
+ let a, l, r, o, s;
1116
1116
  if (Vn(e)) {
1117
- let s = e.getAttribute("action");
1118
- i = s ? pe(s, n) : null, a = e.getAttribute("method") || ye, r = Ae(e.getAttribute("enctype")) || we, o = new FormData(e);
1117
+ let c = e.getAttribute("action");
1118
+ l = c ? pe(c, n) : null, a = e.getAttribute("method") || ye, r = Ae(e.getAttribute("enctype")) || we, o = new FormData(e);
1119
1119
  } else if (An(e) || Wn(e) && (e.type === "submit" || e.type === "image")) {
1120
- let s = e.form;
1121
- if (s == null)
1120
+ let c = e.form;
1121
+ if (c == null)
1122
1122
  throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1123
- let p = e.getAttribute("formaction") || s.getAttribute("action");
1124
- if (i = p ? pe(p, n) : null, a = e.getAttribute("formmethod") || s.getAttribute("method") || ye, r = Ae(e.getAttribute("formenctype")) || Ae(s.getAttribute("enctype")) || we, o = new FormData(s, e), !Yn()) {
1123
+ let p = e.getAttribute("formaction") || c.getAttribute("action");
1124
+ if (l = p ? pe(p, n) : null, a = e.getAttribute("formmethod") || c.getAttribute("method") || ye, r = Ae(e.getAttribute("formenctype")) || Ae(c.getAttribute("enctype")) || we, o = new FormData(c, e), !Yn()) {
1125
1125
  let {
1126
1126
  name: u,
1127
1127
  type: d,
@@ -1136,14 +1136,14 @@ function Jn(e, n) {
1136
1136
  } else {
1137
1137
  if (Re(e))
1138
1138
  throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1139
- a = ye, i = null, r = we, c = e;
1139
+ a = ye, l = null, r = we, s = e;
1140
1140
  }
1141
- return o && r === "text/plain" && (c = o, o = void 0), {
1142
- action: i,
1141
+ return o && r === "text/plain" && (s = o, o = void 0), {
1142
+ action: l,
1143
1143
  method: a.toLowerCase(),
1144
1144
  encType: r,
1145
1145
  formData: o,
1146
- body: c
1146
+ body: s
1147
1147
  };
1148
1148
  }
1149
1149
  const zn = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "unstable_viewTransition"], Gn = ["aria-current", "caseSensitive", "className", "end", "style", "to", "unstable_viewTransition", "children"], qn = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "unstable_viewTransition"], Dt = /* @__PURE__ */ N.createContext({
@@ -1155,11 +1155,11 @@ process.env.NODE_ENV !== "production" && (Hn.displayName = "Fetchers");
1155
1155
  process.env.NODE_ENV;
1156
1156
  const Xn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Zn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ee = /* @__PURE__ */ N.forwardRef(function(n, a) {
1157
1157
  let {
1158
- onClick: i,
1158
+ onClick: l,
1159
1159
  relative: r,
1160
1160
  reloadDocument: o,
1161
- replace: c,
1162
- state: s,
1161
+ replace: s,
1162
+ state: c,
1163
1163
  target: p,
1164
1164
  to: u,
1165
1165
  preventScrollReset: d,
@@ -1177,21 +1177,21 @@ const Xn = typeof window < "u" && typeof window.document < "u" && typeof window.
1177
1177
  let j = $n(u, {
1178
1178
  relative: r
1179
1179
  }), y = nr(u, {
1180
- replace: c,
1181
- state: s,
1180
+ replace: s,
1181
+ state: c,
1182
1182
  target: p,
1183
1183
  preventScrollReset: d,
1184
1184
  relative: r,
1185
1185
  unstable_viewTransition: k
1186
1186
  });
1187
1187
  function w(v) {
1188
- i && i(v), v.defaultPrevented || y(v);
1188
+ l && l(v), v.defaultPrevented || y(v);
1189
1189
  }
1190
1190
  return (
1191
1191
  // eslint-disable-next-line jsx-a11y/anchor-has-content
1192
1192
  /* @__PURE__ */ N.createElement("a", ae({}, _, {
1193
1193
  href: R || j,
1194
- onClick: T || o ? i : w,
1194
+ onClick: T || o ? l : w,
1195
1195
  ref: a,
1196
1196
  target: p
1197
1197
  }))
@@ -1200,11 +1200,11 @@ const Xn = typeof window < "u" && typeof window.document < "u" && typeof window.
1200
1200
  process.env.NODE_ENV !== "production" && (Ee.displayName = "Link");
1201
1201
  const Qn = /* @__PURE__ */ N.forwardRef(function(n, a) {
1202
1202
  let {
1203
- "aria-current": i = "page",
1203
+ "aria-current": l = "page",
1204
1204
  caseSensitive: r = !1,
1205
1205
  className: o = "",
1206
- end: c = !1,
1207
- style: s,
1206
+ end: s = !1,
1207
+ style: c,
1208
1208
  to: p,
1209
1209
  unstable_viewTransition: u,
1210
1210
  children: d
@@ -1217,13 +1217,13 @@ const Qn = /* @__PURE__ */ N.forwardRef(function(n, a) {
1217
1217
  sr(_) && u === !0, y = T.encodeLocation ? T.encodeLocation(_).pathname : _.pathname, w = P.pathname, v = R && R.navigation && R.navigation.location ? R.navigation.location.pathname : null;
1218
1218
  r || (w = w.toLowerCase(), v = v ? v.toLowerCase() : null, y = y.toLowerCase());
1219
1219
  const O = y !== "/" && y.endsWith("/") ? y.length - 1 : y.length;
1220
- let U = w === y || !c && w.startsWith(y) && w.charAt(O) === "/", A = v != null && (v === y || !c && v.startsWith(y) && v.charAt(y.length) === "/"), V = {
1220
+ let U = w === y || !s && w.startsWith(y) && w.charAt(O) === "/", A = v != null && (v === y || !s && v.startsWith(y) && v.charAt(y.length) === "/"), V = {
1221
1221
  isActive: U,
1222
1222
  isPending: A,
1223
1223
  isTransitioning: j
1224
- }, K = U ? i : void 0, W;
1224
+ }, K = U ? l : void 0, W;
1225
1225
  typeof o == "function" ? W = o(V) : W = [o, U ? "active" : null, A ? "pending" : null, j ? "transitioning" : null].filter(Boolean).join(" ");
1226
- let G = typeof s == "function" ? s(V) : s;
1226
+ let G = typeof c == "function" ? c(V) : c;
1227
1227
  return /* @__PURE__ */ N.createElement(Ee, ae({}, k, {
1228
1228
  "aria-current": K,
1229
1229
  className: W,
@@ -1237,11 +1237,11 @@ process.env.NODE_ENV !== "production" && (Qn.displayName = "NavLink");
1237
1237
  const er = /* @__PURE__ */ N.forwardRef((e, n) => {
1238
1238
  let {
1239
1239
  fetcherKey: a,
1240
- navigate: i,
1240
+ navigate: l,
1241
1241
  reloadDocument: r,
1242
1242
  replace: o,
1243
- state: c,
1244
- method: s = ye,
1243
+ state: s,
1244
+ method: c = ye,
1245
1245
  action: p,
1246
1246
  onSubmit: u,
1247
1247
  relative: d,
@@ -1249,17 +1249,17 @@ const er = /* @__PURE__ */ N.forwardRef((e, n) => {
1249
1249
  unstable_viewTransition: _
1250
1250
  } = e, P = Xe(e, qn), R = ir(), T = or(p, {
1251
1251
  relative: d
1252
- }), j = s.toLowerCase() === "get" ? "get" : "post", y = (w) => {
1252
+ }), j = c.toLowerCase() === "get" ? "get" : "post", y = (w) => {
1253
1253
  if (u && u(w), w.defaultPrevented)
1254
1254
  return;
1255
1255
  w.preventDefault();
1256
- let v = w.nativeEvent.submitter, O = (v == null ? void 0 : v.getAttribute("formmethod")) || s;
1256
+ let v = w.nativeEvent.submitter, O = (v == null ? void 0 : v.getAttribute("formmethod")) || c;
1257
1257
  R(v || w.currentTarget, {
1258
1258
  fetcherKey: a,
1259
1259
  method: O,
1260
- navigate: i,
1260
+ navigate: l,
1261
1261
  replace: o,
1262
- state: c,
1262
+ state: s,
1263
1263
  relative: d,
1264
1264
  preventScrollReset: k,
1265
1265
  unstable_viewTransition: _
@@ -1292,27 +1292,27 @@ function Lt(e) {
1292
1292
  function nr(e, n) {
1293
1293
  let {
1294
1294
  target: a,
1295
- replace: i,
1295
+ replace: l,
1296
1296
  state: r,
1297
1297
  preventScrollReset: o,
1298
- relative: c,
1299
- unstable_viewTransition: s
1298
+ relative: s,
1299
+ unstable_viewTransition: c
1300
1300
  } = n === void 0 ? {} : n, p = jn(), u = me(), d = he(e, {
1301
- relative: c
1301
+ relative: s
1302
1302
  });
1303
1303
  return N.useCallback((k) => {
1304
1304
  if (Mn(k, a)) {
1305
1305
  k.preventDefault();
1306
- let _ = i !== void 0 ? i : Be(u) === Be(d);
1306
+ let _ = l !== void 0 ? l : Be(u) === Be(d);
1307
1307
  p(e, {
1308
1308
  replace: _,
1309
1309
  state: r,
1310
1310
  preventScrollReset: o,
1311
- relative: c,
1312
- unstable_viewTransition: s
1311
+ relative: s,
1312
+ unstable_viewTransition: c
1313
1313
  });
1314
1314
  }
1315
- }, [u, p, d, i, r, a, e, o, c, s]);
1315
+ }, [u, p, d, l, r, a, e, o, s, c]);
1316
1316
  }
1317
1317
  function rr() {
1318
1318
  if (typeof document > "u")
@@ -1325,23 +1325,23 @@ function ir() {
1325
1325
  } = Lt(xe.UseSubmit), {
1326
1326
  basename: n
1327
1327
  } = N.useContext(Q), a = Fn();
1328
- return N.useCallback(function(i, r) {
1328
+ return N.useCallback(function(l, r) {
1329
1329
  r === void 0 && (r = {}), rr();
1330
1330
  let {
1331
1331
  action: o,
1332
- method: c,
1333
- encType: s,
1332
+ method: s,
1333
+ encType: c,
1334
1334
  formData: p,
1335
1335
  body: u
1336
- } = Jn(i, n);
1336
+ } = Jn(l, n);
1337
1337
  if (r.navigate === !1) {
1338
1338
  let d = r.fetcherKey || lr();
1339
1339
  e.fetch(d, a, r.action || o, {
1340
1340
  preventScrollReset: r.preventScrollReset,
1341
1341
  formData: p,
1342
1342
  body: u,
1343
- formMethod: r.method || c,
1344
- formEncType: r.encType || s,
1343
+ formMethod: r.method || s,
1344
+ formEncType: r.encType || c,
1345
1345
  unstable_flushSync: r.unstable_flushSync
1346
1346
  });
1347
1347
  } else
@@ -1349,8 +1349,8 @@ function ir() {
1349
1349
  preventScrollReset: r.preventScrollReset,
1350
1350
  formData: p,
1351
1351
  body: u,
1352
- formMethod: r.method || c,
1353
- formEncType: r.encType || s,
1352
+ formMethod: r.method || s,
1353
+ formEncType: r.encType || c,
1354
1354
  replace: r.replace,
1355
1355
  state: r.state,
1356
1356
  fromRouteId: a,
@@ -1363,59 +1363,59 @@ function or(e, n) {
1363
1363
  let {
1364
1364
  relative: a
1365
1365
  } = n === void 0 ? {} : n, {
1366
- basename: i
1366
+ basename: l
1367
1367
  } = N.useContext(Q), r = N.useContext(ie);
1368
1368
  r || (process.env.NODE_ENV !== "production" ? I(!1, "useFormAction must be used inside a RouteContext") : I(!1));
1369
- let [o] = r.matches.slice(-1), c = ae({}, he(e || ".", {
1369
+ let [o] = r.matches.slice(-1), s = ae({}, he(e || ".", {
1370
1370
  relative: a
1371
- })), s = me();
1371
+ })), c = me();
1372
1372
  if (e == null) {
1373
- c.search = s.search;
1374
- let p = new URLSearchParams(c.search);
1375
- p.has("index") && p.get("index") === "" && (p.delete("index"), c.search = p.toString() ? "?" + p.toString() : "");
1373
+ s.search = c.search;
1374
+ let p = new URLSearchParams(s.search);
1375
+ p.has("index") && p.get("index") === "" && (p.delete("index"), s.search = p.toString() ? "?" + p.toString() : "");
1376
1376
  }
1377
- return (!e || e === ".") && o.route.index && (c.search = c.search ? c.search.replace(/^\?/, "?index&") : "?index"), i !== "/" && (c.pathname = c.pathname === "/" ? i : ze([i, c.pathname])), Be(c);
1377
+ return (!e || e === ".") && o.route.index && (s.search = s.search ? s.search.replace(/^\?/, "?index&") : "?index"), l !== "/" && (s.pathname = s.pathname === "/" ? l : ze([l, s.pathname])), Be(s);
1378
1378
  }
1379
1379
  function sr(e, n) {
1380
1380
  n === void 0 && (n = {});
1381
1381
  let a = N.useContext(Dt);
1382
1382
  a == null && (process.env.NODE_ENV !== "production" ? I(!1, "`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
1383
1383
  let {
1384
- basename: i
1384
+ basename: l
1385
1385
  } = Lt(xe.useViewTransitionState), r = he(e, {
1386
1386
  relative: n.relative
1387
1387
  });
1388
1388
  if (!a.isTransitioning)
1389
1389
  return !1;
1390
- let o = pe(a.currentLocation.pathname, i) || a.currentLocation.pathname, c = pe(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1391
- return Nt(r.pathname, c) != null || Nt(r.pathname, o) != null;
1390
+ let o = pe(a.currentLocation.pathname, l) || a.currentLocation.pathname, s = pe(a.nextLocation.pathname, l) || a.nextLocation.pathname;
1391
+ return Nt(r.pathname, s) != null || Nt(r.pathname, o) != null;
1392
1392
  }
1393
1393
  const _r = M(
1394
- ({ breadcrumbs: e, navigationType: n, className: a, ...i }, r) => {
1395
- const o = e.slice(0, 4), c = o[o.length - 2], s = [
1394
+ ({ breadcrumbs: e, navigationType: n, className: a, ...l }, r) => {
1395
+ const o = e.slice(0, 4), s = o[o.length - 2], c = [
1396
1396
  a,
1397
1397
  "pkt-breadcrumbs"
1398
1398
  ].filter(Boolean).join(" ");
1399
- return /* @__PURE__ */ h("nav", { ref: r, "aria-label": "brødsmulemeny", className: s, children: [
1400
- /* @__PURE__ */ l("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: o.map((p, u) => /* @__PURE__ */ l(
1399
+ return /* @__PURE__ */ h("nav", { ref: r, "aria-label": "brødsmulemeny", className: c, children: [
1400
+ /* @__PURE__ */ i("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: o.map((p, u) => /* @__PURE__ */ i(
1401
1401
  "li",
1402
1402
  {
1403
1403
  className: "pkt-breadcrumbs__item",
1404
- children: u === o.length - 1 ? /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : n === "router" ? /* @__PURE__ */ h(
1404
+ children: u === o.length - 1 ? /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text }) }) : n === "router" ? /* @__PURE__ */ h(
1405
1405
  Ee,
1406
1406
  {
1407
1407
  to: p.href,
1408
1408
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1409
- ...i,
1409
+ ...l,
1410
1410
  children: [
1411
- /* @__PURE__ */ l(
1411
+ /* @__PURE__ */ i(
1412
1412
  E,
1413
1413
  {
1414
1414
  className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1415
1415
  name: "chevron-thin-right"
1416
1416
  }
1417
1417
  ),
1418
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text })
1418
+ /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
1419
1419
  ]
1420
1420
  }
1421
1421
  ) : /* @__PURE__ */ h(
@@ -1423,16 +1423,16 @@ const _r = M(
1423
1423
  {
1424
1424
  href: p.href,
1425
1425
  className: "pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",
1426
- ...i,
1426
+ ...l,
1427
1427
  children: [
1428
- /* @__PURE__ */ l(
1428
+ /* @__PURE__ */ i(
1429
1429
  E,
1430
1430
  {
1431
1431
  className: "pkt-icon pkt-breadcrumbs__icon pkt-link__icon",
1432
1432
  name: "chevron-thin-right"
1433
1433
  }
1434
1434
  ),
1435
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: p.text })
1435
+ /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: p.text })
1436
1436
  ]
1437
1437
  }
1438
1438
  )
@@ -1442,35 +1442,35 @@ const _r = M(
1442
1442
  n === "router" ? /* @__PURE__ */ h(
1443
1443
  Ee,
1444
1444
  {
1445
- to: c.href,
1445
+ to: s.href,
1446
1446
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1447
- ...i,
1447
+ ...l,
1448
1448
  children: [
1449
- /* @__PURE__ */ l(
1449
+ /* @__PURE__ */ i(
1450
1450
  E,
1451
1451
  {
1452
1452
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1453
1453
  name: "chevron-thin-left"
1454
1454
  }
1455
1455
  ),
1456
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: c.text })
1456
+ /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: s.text })
1457
1457
  ]
1458
1458
  }
1459
1459
  ) : /* @__PURE__ */ h(
1460
1460
  "a",
1461
1461
  {
1462
- href: c.href,
1462
+ href: s.href,
1463
1463
  className: "pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",
1464
- ...i,
1464
+ ...l,
1465
1465
  children: [
1466
- /* @__PURE__ */ l(
1466
+ /* @__PURE__ */ i(
1467
1467
  E,
1468
1468
  {
1469
1469
  className: "pkt-back-link__icon pkt-icon pkt-link__icon",
1470
1470
  name: "chevron-thin-left"
1471
1471
  }
1472
1472
  ),
1473
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: c.text })
1473
+ /* @__PURE__ */ i("span", { className: "pkt-breadcrumbs__text", children: s.text })
1474
1474
  ]
1475
1475
  }
1476
1476
  )
@@ -1481,11 +1481,11 @@ const _r = M(
1481
1481
  children: e,
1482
1482
  className: n,
1483
1483
  iconName: a = "user",
1484
- secondIconName: i = "user",
1484
+ secondIconName: l = "user",
1485
1485
  size: r = "medium",
1486
1486
  skin: o = "primary",
1487
- type: c = "button",
1488
- variant: s = "label-only",
1487
+ type: s = "button",
1488
+ variant: c = "label-only",
1489
1489
  color: p,
1490
1490
  ...u
1491
1491
  }, d) => {
@@ -1494,13 +1494,13 @@ const _r = M(
1494
1494
  "pkt-btn",
1495
1495
  r && `pkt-btn--${r}`,
1496
1496
  o && `pkt-btn--${o}`,
1497
- s && `pkt-btn--${s}`,
1497
+ c && `pkt-btn--${c}`,
1498
1498
  p && `pkt-btn--${p}`
1499
1499
  ].filter(Boolean).join(" ");
1500
- return /* @__PURE__ */ h("button", { ...u, className: k, type: c, ref: d, children: [
1501
- s !== "label-only" && /* @__PURE__ */ l(E, { className: "pkt-btn__icon", name: a }),
1502
- /* @__PURE__ */ l("span", { className: "pkt-btn__text", children: e }),
1503
- s === "icons-right-and-left" && /* @__PURE__ */ l(E, { className: "pkt-btn__icon", name: i })
1500
+ return /* @__PURE__ */ h("button", { ...u, className: k, type: s, ref: d, children: [
1501
+ c !== "label-only" && /* @__PURE__ */ i(E, { className: "pkt-btn__icon", name: a }),
1502
+ /* @__PURE__ */ i("span", { className: "pkt-btn__text", children: e }),
1503
+ c === "icons-right-and-left" && /* @__PURE__ */ i(E, { className: "pkt-btn__icon", name: l })
1504
1504
  ] });
1505
1505
  }
1506
1506
  );
@@ -1510,33 +1510,58 @@ const cr = M(
1510
1510
  id: e,
1511
1511
  hasTile: n = !1,
1512
1512
  disabled: a = !1,
1513
- label: i,
1514
- checkHelptext: r,
1515
- hasError: o = !1,
1516
- className: c,
1517
- ...s
1518
- }, p) => {
1519
- const u = [
1520
- c,
1521
- "pkt-input-check"
1522
- ].filter(Boolean).join(" ");
1523
- return /* @__PURE__ */ l("div", { className: u, children: /* @__PURE__ */ h("div", { className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${a && n ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
1524
- /* @__PURE__ */ l(
1525
- "input",
1526
- {
1527
- ref: p,
1528
- className: `pkt-input-check__input-checkbox ${o ? "pkt-input-check__input-checkbox--error" : ""}`,
1529
- type: "checkbox",
1530
- id: e,
1531
- disabled: a,
1532
- ...s
1533
- }
1534
- ),
1535
- /* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
1536
- i,
1537
- r && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: r })
1538
- ] })
1539
- ] }) });
1513
+ label: l,
1514
+ labelPosition: r = "right",
1515
+ hideLabel: o = !1,
1516
+ checkHelptext: s,
1517
+ hasError: c = !1,
1518
+ isSwitch: p = !1,
1519
+ className: u,
1520
+ ...d
1521
+ }, k) => {
1522
+ const _ = [u, "pkt-input-check"].filter(Boolean).join(" ");
1523
+ return /* @__PURE__ */ i("div", { className: _, children: /* @__PURE__ */ h(
1524
+ "div",
1525
+ {
1526
+ className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""} ${a && n ? "pkt-input-check__input--tile-disabled" : ""}`,
1527
+ children: [
1528
+ l && r === "left" && /* @__PURE__ */ h(
1529
+ "label",
1530
+ {
1531
+ className: `pkt-input-check__input-label ${o ? "pkt-sr-only" : ""}`,
1532
+ htmlFor: e,
1533
+ children: [
1534
+ l,
1535
+ s && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: s })
1536
+ ]
1537
+ }
1538
+ ),
1539
+ /* @__PURE__ */ i(
1540
+ "input",
1541
+ {
1542
+ ref: k,
1543
+ className: `pkt-input-check__input-checkbox ${c ? "pkt-input-check__input-checkbox--error" : ""}`,
1544
+ type: "checkbox",
1545
+ role: p ? "switch" : "checkbox",
1546
+ id: e,
1547
+ disabled: a,
1548
+ ...d
1549
+ }
1550
+ ),
1551
+ l && r === "right" && /* @__PURE__ */ h(
1552
+ "label",
1553
+ {
1554
+ className: `pkt-input-check__input-label ${o ? "pkt-sr-only" : ""}`,
1555
+ htmlFor: e,
1556
+ children: [
1557
+ l,
1558
+ s && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: s })
1559
+ ]
1560
+ }
1561
+ )
1562
+ ]
1563
+ }
1564
+ ) });
1540
1565
  }
1541
1566
  );
1542
1567
  cr.displayName = "PktCheckbox";
@@ -1544,19 +1569,19 @@ const br = ({
1544
1569
  columnOne: e,
1545
1570
  columnTwo: n,
1546
1571
  socialLinks: a,
1547
- className: i,
1572
+ className: l,
1548
1573
  personvernOgInfoLink: r = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1549
1574
  tilgjengelighetLink: o = "https://www.oslo.kommune.no/tilgjengelighet/"
1550
1575
  }) => {
1551
- var s, p;
1552
- const c = [i, "pkt-footer"].filter(Boolean).join(" ");
1553
- return /* @__PURE__ */ l("footer", { className: c, "data-mode": "dark", children: /* @__PURE__ */ h("div", { className: "pkt-footer__container", children: [
1576
+ var c, p;
1577
+ const s = [l, "pkt-footer"].filter(Boolean).join(" ");
1578
+ return /* @__PURE__ */ i("footer", { className: s, "data-mode": "dark", children: /* @__PURE__ */ h("div", { className: "pkt-footer__container", children: [
1554
1579
  /* @__PURE__ */ h("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
1555
1580
  /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1556
- /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: e.title }),
1581
+ /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: e.title }),
1557
1582
  /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1558
- e.text && /* @__PURE__ */ l("li", { className: "pkt-footer__text", children: e.text }),
1559
- (s = e.links) == null ? void 0 : s.map((u, d) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1583
+ e.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: e.text }),
1584
+ (c = e.links) == null ? void 0 : c.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1560
1585
  "a",
1561
1586
  {
1562
1587
  className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
@@ -1564,7 +1589,7 @@ const br = ({
1564
1589
  target: u.openInNewTab ? "_blank" : "_self",
1565
1590
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1566
1591
  children: [
1567
- /* @__PURE__ */ l(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1592
+ /* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1568
1593
  u.text
1569
1594
  ]
1570
1595
  }
@@ -1572,10 +1597,10 @@ const br = ({
1572
1597
  ] })
1573
1598
  ] }),
1574
1599
  /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1575
- /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: n.title }),
1600
+ /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: n.title }),
1576
1601
  /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1577
- n.text && /* @__PURE__ */ l("li", { className: "pkt-footer__text", children: n.text }),
1578
- (p = n.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1602
+ n.text && /* @__PURE__ */ i("li", { className: "pkt-footer__text", children: n.text }),
1603
+ (p = n.links) == null ? void 0 : p.map((u, d) => /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1579
1604
  "a",
1580
1605
  {
1581
1606
  className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
@@ -1583,7 +1608,7 @@ const br = ({
1583
1608
  target: u.openInNewTab ? "_blank" : "_self",
1584
1609
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1585
1610
  children: [
1586
- /* @__PURE__ */ l(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1611
+ /* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1587
1612
  u.text
1588
1613
  ]
1589
1614
  }
@@ -1591,32 +1616,32 @@ const br = ({
1591
1616
  ] })
1592
1617
  ] }),
1593
1618
  /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1594
- /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
1619
+ /* @__PURE__ */ i("h2", { className: "pkt-footer__title", children: "Om nettstedet" }),
1595
1620
  /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1596
- /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1621
+ /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1597
1622
  "a",
1598
1623
  {
1599
1624
  className: "pkt-footer__link",
1600
1625
  href: r,
1601
1626
  children: [
1602
- /* @__PURE__ */ l(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1627
+ /* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1603
1628
  "Personvern og informasjonskapsler"
1604
1629
  ]
1605
1630
  }
1606
1631
  ) }),
1607
- /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer__link", href: o, children: [
1608
- /* @__PURE__ */ l(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1632
+ /* @__PURE__ */ i("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer__link", href: o, children: [
1633
+ /* @__PURE__ */ i(E, { className: "pkt-footer__link-icon", name: "chevron-right" }),
1609
1634
  "Tilgjengelighet"
1610
1635
  ] }) })
1611
1636
  ] })
1612
1637
  ] })
1613
1638
  ] }),
1614
1639
  a && /* @__PURE__ */ h("div", { className: "pkt-footer__social", "aria-label": "standard lenker", children: [
1615
- /* @__PURE__ */ l("div", { className: "pkt-footer__social-languages", children: a.filter((u) => u.language).map((u, d) => /* @__PURE__ */ l(
1640
+ /* @__PURE__ */ i("div", { className: "pkt-footer__social-languages", children: a.filter((u) => u.language).map((u, d) => /* @__PURE__ */ i(
1616
1641
  "div",
1617
1642
  {
1618
1643
  className: "pkt-footer__social-language",
1619
- children: /* @__PURE__ */ l(
1644
+ children: /* @__PURE__ */ i(
1620
1645
  "a",
1621
1646
  {
1622
1647
  href: u.href,
@@ -1629,7 +1654,7 @@ const br = ({
1629
1654
  },
1630
1655
  `sociallinks-language-${d}`
1631
1656
  )) }),
1632
- /* @__PURE__ */ l("div", { className: "pkt-footer__social-icons", children: a.filter((u) => u.iconName).map((u, d) => /* @__PURE__ */ l(H.Fragment, { children: /* @__PURE__ */ l(
1657
+ /* @__PURE__ */ i("div", { className: "pkt-footer__social-icons", children: a.filter((u) => u.iconName).map((u, d) => /* @__PURE__ */ i(H.Fragment, { children: /* @__PURE__ */ i(
1633
1658
  "a",
1634
1659
  {
1635
1660
  href: u.href,
@@ -1637,7 +1662,7 @@ const br = ({
1637
1662
  className: "pkt-footer__social-icon-link",
1638
1663
  target: u.openInNewTab ? "_blank" : "_self",
1639
1664
  rel: u.openInNewTab ? "noopener noreferrer" : void 0,
1640
- children: /* @__PURE__ */ l(E, { className: "pkt-footer__social-icon", name: u.iconName })
1665
+ children: /* @__PURE__ */ i(E, { className: "pkt-footer__social-icon", name: u.iconName })
1641
1666
  }
1642
1667
  ) }, `sociallinks-${d}`)) })
1643
1668
  ] })
@@ -1646,11 +1671,11 @@ const br = ({
1646
1671
  links: e = [],
1647
1672
  personvernOgInfoLink: n = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1648
1673
  tilgjengelighetLink: a = "https://www.oslo.kommune.no/tilgjengelighet/",
1649
- className: i
1674
+ className: l
1650
1675
  }) => {
1651
- const r = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1652
- return /* @__PURE__ */ l("footer", { className: r, "data-mode": "dark", children: /* @__PURE__ */ l("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ h("ul", { className: "pkt-footer-simple__list", children: [
1653
- e.map((o, c) => /* @__PURE__ */ l("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h(
1676
+ const r = [l, "pkt-footer-simple"].filter(Boolean).join(" ");
1677
+ return /* @__PURE__ */ i("footer", { className: r, "data-mode": "dark", children: /* @__PURE__ */ i("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ h("ul", { className: "pkt-footer-simple__list", children: [
1678
+ e.map((o, s) => /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h(
1654
1679
  "a",
1655
1680
  {
1656
1681
  className: `pkt-footer-simple__link ${o.external ? " pkt-link--external" : ""}`,
@@ -1658,7 +1683,7 @@ const br = ({
1658
1683
  target: o.openInNewTab ? "_blank" : "_self",
1659
1684
  rel: o.openInNewTab ? "noopener noreferrer" : void 0,
1660
1685
  children: [
1661
- /* @__PURE__ */ l(
1686
+ /* @__PURE__ */ i(
1662
1687
  E,
1663
1688
  {
1664
1689
  className: "pkt-footer-simple__link-icon",
@@ -1668,13 +1693,13 @@ const br = ({
1668
1693
  o.text
1669
1694
  ]
1670
1695
  }
1671
- ) }, c)),
1672
- /* @__PURE__ */ l("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: n, children: [
1673
- /* @__PURE__ */ l(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1696
+ ) }, s)),
1697
+ /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: n, children: [
1698
+ /* @__PURE__ */ i(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1674
1699
  "Personvern og informasjonskapsler"
1675
1700
  ] }) }),
1676
- /* @__PURE__ */ l("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: a, children: [
1677
- /* @__PURE__ */ l(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1701
+ /* @__PURE__ */ i("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: a, children: [
1702
+ /* @__PURE__ */ i(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1678
1703
  "Tilgjengelighet"
1679
1704
  ] }) })
1680
1705
  ] }) }) });
@@ -1689,28 +1714,28 @@ var It = { exports: {} };
1689
1714
  (function() {
1690
1715
  var n = {}.hasOwnProperty;
1691
1716
  function a() {
1692
- for (var i = [], r = 0; r < arguments.length; r++) {
1717
+ for (var l = [], r = 0; r < arguments.length; r++) {
1693
1718
  var o = arguments[r];
1694
1719
  if (o) {
1695
- var c = typeof o;
1696
- if (c === "string" || c === "number")
1697
- i.push(o);
1720
+ var s = typeof o;
1721
+ if (s === "string" || s === "number")
1722
+ l.push(o);
1698
1723
  else if (Array.isArray(o)) {
1699
1724
  if (o.length) {
1700
- var s = a.apply(null, o);
1701
- s && i.push(s);
1725
+ var c = a.apply(null, o);
1726
+ c && l.push(c);
1702
1727
  }
1703
- } else if (c === "object") {
1728
+ } else if (s === "object") {
1704
1729
  if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
1705
- i.push(o.toString());
1730
+ l.push(o.toString());
1706
1731
  continue;
1707
1732
  }
1708
1733
  for (var p in o)
1709
- n.call(o, p) && o[p] && i.push(p);
1734
+ n.call(o, p) && o[p] && l.push(p);
1710
1735
  }
1711
1736
  }
1712
1737
  }
1713
- return i.join(" ");
1738
+ return l.join(" ");
1714
1739
  }
1715
1740
  e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
1716
1741
  })();
@@ -1721,11 +1746,11 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1721
1746
  logoLink: e = "https://www.oslo.kommune.no/",
1722
1747
  serviceName: n,
1723
1748
  fixed: a = !0,
1724
- scrollToHide: i = !0,
1749
+ scrollToHide: l = !0,
1725
1750
  user: r,
1726
1751
  userMenu: o,
1727
- representing: c,
1728
- userOptions: s,
1752
+ representing: s,
1753
+ userOptions: c,
1729
1754
  userMenuFooter: p,
1730
1755
  canChangeRepresentation: u = !0,
1731
1756
  showMenuButton: d = !1,
@@ -1748,7 +1773,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1748
1773
  }, G = (g) => {
1749
1774
  K.current && !K.current.contains(g.target) && V(!1);
1750
1775
  }, J = () => {
1751
- if (i) {
1776
+ if (l) {
1752
1777
  const g = window.pageYOffset || document.documentElement.scrollTop;
1753
1778
  if (g < 0 || Math.abs(g - O) < 60)
1754
1779
  return;
@@ -1764,41 +1789,41 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1764
1789
  "aria-label": "Topp",
1765
1790
  className: Ft("pkt-header", {
1766
1791
  "pkt-header--fixed": a,
1767
- "pkt-header--scroll-to-hide": i,
1792
+ "pkt-header--scroll-to-hide": l,
1768
1793
  "pkt-header--hidden": w
1769
1794
  }),
1770
1795
  ref: j,
1771
1796
  children: [
1772
1797
  /* @__PURE__ */ h("div", { className: "pkt-header__logo", children: [
1773
- typeof e == "string" ? /* @__PURE__ */ l("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: e, children: /* @__PURE__ */ l(
1798
+ typeof e == "string" ? /* @__PURE__ */ i("a", { "aria-label": "Tilbake til forside", className: "pkt-header__logo-link", href: e, children: /* @__PURE__ */ i(
1774
1799
  E,
1775
1800
  {
1776
1801
  name: "oslologo",
1777
1802
  className: "pkt-header__logo-svg",
1778
1803
  "aria-hidden": "true",
1779
- path: "https://punkt-cdn.oslo.kommune.no/11.2/logos/"
1804
+ path: "https://punkt-cdn.oslo.kommune.no/11.4/logos/"
1780
1805
  }
1781
- ) }) : /* @__PURE__ */ l(
1806
+ ) }) : /* @__PURE__ */ i(
1782
1807
  "button",
1783
1808
  {
1784
1809
  "aria-label": "Tilbake til forside",
1785
1810
  className: "pkt-link-button pkt-link pkt-header__logo-link",
1786
1811
  onClick: e,
1787
- children: /* @__PURE__ */ l(
1812
+ children: /* @__PURE__ */ i(
1788
1813
  E,
1789
1814
  {
1790
1815
  name: "oslologo",
1791
1816
  className: "pkt-header__logo-svg",
1792
1817
  "aria-hidden": "true",
1793
- path: "https://punkt-cdn.oslo.kommune.no/11.2/logos/"
1818
+ path: "https://punkt-cdn.oslo.kommune.no/11.4/logos/"
1794
1819
  }
1795
1820
  )
1796
1821
  }
1797
1822
  ),
1798
- /* @__PURE__ */ l("span", { className: "pkt-header__logo-service", children: n })
1823
+ /* @__PURE__ */ i("span", { className: "pkt-header__logo-service", children: n })
1799
1824
  ] }),
1800
- /* @__PURE__ */ l("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ h("ul", { className: "pkt-header__actions-row", children: [
1801
- d && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
1825
+ /* @__PURE__ */ i("nav", { className: "pkt-header__actions", children: /* @__PURE__ */ h("ul", { className: "pkt-header__actions-row", children: [
1826
+ d && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1802
1827
  fe,
1803
1828
  {
1804
1829
  className: "pkt-header__menu-btn",
@@ -1809,7 +1834,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1809
1834
  children: "Meny"
1810
1835
  }
1811
1836
  ) }),
1812
- (r || c) && /* @__PURE__ */ h(
1837
+ (r || s) && /* @__PURE__ */ h(
1813
1838
  "li",
1814
1839
  {
1815
1840
  "data-testid": "usermenu",
@@ -1826,70 +1851,70 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1826
1851
  "aria-expanded": A,
1827
1852
  onClick: W,
1828
1853
  children: [
1829
- /* @__PURE__ */ l(E, { name: "user", className: "pkt-btn__icon" }),
1830
- /* @__PURE__ */ l("span", { className: "pkt-header__user-fullname", children: (c == null ? void 0 : c.name) || (r == null ? void 0 : r.name) }),
1831
- /* @__PURE__ */ l("span", { className: "pkt-header__user-shortname", children: (c == null ? void 0 : c.shortname) || (r == null ? void 0 : r.shortname) }),
1832
- /* @__PURE__ */ l(E, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1833
- /* @__PURE__ */ l(E, { name: "chevron-thin-up", className: "pkt-btn--open" })
1854
+ /* @__PURE__ */ i(E, { name: "user", className: "pkt-btn__icon" }),
1855
+ /* @__PURE__ */ i("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (r == null ? void 0 : r.name) }),
1856
+ /* @__PURE__ */ i("span", { className: "pkt-header__user-shortname", children: (s == null ? void 0 : s.shortname) || (r == null ? void 0 : r.shortname) }),
1857
+ /* @__PURE__ */ i(E, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1858
+ /* @__PURE__ */ i(E, { name: "chevron-thin-up", className: "pkt-btn--open" })
1834
1859
  ]
1835
1860
  }
1836
1861
  ),
1837
1862
  /* @__PURE__ */ h("ul", { id: "pktUserDropdown", className: "pkt-header__dropdown pkt-user-menu", children: [
1838
1863
  r && /* @__PURE__ */ h("li", { children: [
1839
- /* @__PURE__ */ l("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1840
- /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: r.name }),
1864
+ /* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Pålogget som" }),
1865
+ /* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: r.name }),
1841
1866
  r.lastLoggedIn && /* @__PURE__ */ h("div", { className: "pkt-user-menu__last-logged-in", children: [
1842
1867
  "Sist pålogget: ",
1843
- /* @__PURE__ */ l("time", { children: y })
1868
+ /* @__PURE__ */ i("time", { children: y })
1844
1869
  ] })
1845
1870
  ] }),
1846
- o && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: o.map((g, D) => /* @__PURE__ */ l("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
1847
- g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1871
+ o && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: o.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
1872
+ g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
1848
1873
  g.title
1849
1874
  ] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: [
1850
- g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1875
+ g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
1851
1876
  g.title
1852
1877
  ] }) }, `userMenu-${D}`)) }) }),
1853
- (c || u) && /* @__PURE__ */ h("li", { children: [
1854
- c && /* @__PURE__ */ h(X, { children: [
1855
- /* @__PURE__ */ l("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1856
- /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: c.name }),
1857
- c.orgNumber && /* @__PURE__ */ h("div", { className: "pkt-user-menu__org-number", children: [
1878
+ (s || u) && /* @__PURE__ */ h("li", { children: [
1879
+ s && /* @__PURE__ */ h(X, { children: [
1880
+ /* @__PURE__ */ i("div", { className: "pkt-user-menu__label", children: "Representerer" }),
1881
+ /* @__PURE__ */ i("div", { className: "pkt-user-menu__name", children: s.name }),
1882
+ s.orgNumber && /* @__PURE__ */ h("div", { className: "pkt-user-menu__org-number", children: [
1858
1883
  "Org.nr. ",
1859
- c.orgNumber
1884
+ s.orgNumber
1860
1885
  ] })
1861
1886
  ] }),
1862
- /* @__PURE__ */ l("ul", { className: "pkt-list mt-size-16", children: u && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ h(
1887
+ /* @__PURE__ */ i("ul", { className: "pkt-list mt-size-16", children: u && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h(
1863
1888
  "button",
1864
1889
  {
1865
1890
  className: "pkt-link-button pkt-link",
1866
1891
  onClick: R,
1867
1892
  children: [
1868
- /* @__PURE__ */ l(E, { name: "cogwheel", className: "pkt-link__icon" }),
1893
+ /* @__PURE__ */ i(E, { name: "cogwheel", className: "pkt-link__icon" }),
1869
1894
  "Endre organisasjon"
1870
1895
  ]
1871
1896
  }
1872
1897
  ) }) })
1873
1898
  ] }),
1874
- /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: (s || !k) && /* @__PURE__ */ h(X, { children: [
1875
- s == null ? void 0 : s.map((g, D) => /* @__PURE__ */ l("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
1876
- g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1899
+ /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i("ul", { className: "pkt-list", children: (c || !k) && /* @__PURE__ */ h(X, { children: [
1900
+ c == null ? void 0 : c.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
1901
+ g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
1877
1902
  g.title
1878
1903
  ] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: [
1879
- g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1904
+ g.iconName && /* @__PURE__ */ i(E, { name: g.iconName, className: "pkt-link__icon" }),
1880
1905
  g.title
1881
1906
  ] }) }, `userOptions-${D}`)),
1882
- !k && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: P, children: [
1883
- /* @__PURE__ */ l(E, { name: "exit", className: "pkt-link__icon" }),
1907
+ !k && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: P, children: [
1908
+ /* @__PURE__ */ i(E, { name: "exit", className: "pkt-link__icon" }),
1884
1909
  "Logg ut"
1885
1910
  ] }) })
1886
1911
  ] }) }) }),
1887
- p && /* @__PURE__ */ l("li", { className: "footer", children: /* @__PURE__ */ l("ul", { className: "pkt-list-horizontal bordered", children: p.map((g, D) => /* @__PURE__ */ l("li", { children: typeof g.target == "string" ? /* @__PURE__ */ l("a", { href: g.target, className: "pkt-link", children: g.title }) : /* @__PURE__ */ l("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: g.title }) }, `userMenuFooter-${D}`)) }) })
1912
+ p && /* @__PURE__ */ i("li", { className: "footer", children: /* @__PURE__ */ i("ul", { className: "pkt-list-horizontal bordered", children: p.map((g, D) => /* @__PURE__ */ i("li", { children: typeof g.target == "string" ? /* @__PURE__ */ i("a", { href: g.target, className: "pkt-link", children: g.title }) : /* @__PURE__ */ i("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: g.title }) }, `userMenuFooter-${D}`)) }) })
1888
1913
  ] })
1889
1914
  ]
1890
1915
  }
1891
1916
  ),
1892
- k && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l(
1917
+ k && /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(
1893
1918
  fe,
1894
1919
  {
1895
1920
  className: "pkt-header__user-btn pkt-header__user-btn-logout",
@@ -1907,9 +1932,9 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1907
1932
  );
1908
1933
  }
1909
1934
  ), pr = H.forwardRef(
1910
- ({ label: e, id: n, children: a, ...i }, r) => /* @__PURE__ */ h("div", { className: "pkt-form-group", children: [
1911
- /* @__PURE__ */ l("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1912
- /* @__PURE__ */ l("input", { className: "pkt-form-input", id: n, ...i, ref: r }),
1935
+ ({ label: e, id: n, children: a, ...l }, r) => /* @__PURE__ */ h("div", { className: "pkt-form-group", children: [
1936
+ /* @__PURE__ */ i("label", { htmlFor: n, className: "pkt-form-label", children: e }),
1937
+ /* @__PURE__ */ i("input", { className: "pkt-form-input", id: n, ...l, ref: r }),
1913
1938
  a
1914
1939
  ] })
1915
1940
  );
@@ -1919,11 +1944,11 @@ const Pe = M(
1919
1944
  forId: e,
1920
1945
  label: n,
1921
1946
  helptext: a,
1922
- helptextDropdown: i,
1947
+ helptextDropdown: l,
1923
1948
  helptextDropdownButton: r,
1924
1949
  optionalTag: o = !1,
1925
- optionalText: c = "Valgfritt",
1926
- requiredTag: s = !1,
1950
+ optionalText: s = "Valgfritt",
1951
+ requiredTag: c = !1,
1927
1952
  requiredText: p = "Må fylles ut",
1928
1953
  hasError: u,
1929
1954
  errorMessage: d,
@@ -1937,7 +1962,7 @@ const Pe = M(
1937
1962
  }, w) => {
1938
1963
  const [v, O] = de(!1), U = () => {
1939
1964
  O(!v);
1940
- }, A = () => o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : s ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", V = o ? c : s ? p : "", K = k ? "pkt-inputwrapper--disabled" : "", W = _ ? "pkt-inputwrapper--inline" : "", G = u ? "pkt-inputwrapper--error" : "", J = !!i && i !== "", g = r || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', D = y ? "fieldset" : J ? "div" : "label", Y = y ? "legend" : J ? "h2" : "span", z = P || (a ? `${e}-helptext` : void 0);
1965
+ }, A = () => o ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light" : c ? "pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige" : "", V = o ? s : c ? p : "", K = k ? "pkt-inputwrapper--disabled" : "", W = _ ? "pkt-inputwrapper--inline" : "", G = u ? "pkt-inputwrapper--error" : "", J = !!l && l !== "", g = r || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', D = y ? "fieldset" : J ? "div" : "label", Y = y ? "legend" : J ? "h2" : "span", z = P || (a ? `${e}-helptext` : void 0);
1941
1966
  return /* @__PURE__ */ h(
1942
1967
  "div",
1943
1968
  {
@@ -1946,7 +1971,7 @@ const Pe = M(
1946
1971
  ),
1947
1972
  ref: w,
1948
1973
  children: [
1949
- R ? /* @__PURE__ */ l(X, { children: /* @__PURE__ */ h(
1974
+ R ? /* @__PURE__ */ i(X, { children: /* @__PURE__ */ h(
1950
1975
  D,
1951
1976
  {
1952
1977
  htmlFor: y ? void 0 : e,
@@ -1960,11 +1985,11 @@ const Pe = M(
1960
1985
  className: `${y ? " pkt-inputwrapper__legend" : ""}`,
1961
1986
  children: [
1962
1987
  n,
1963
- V !== "" && /* @__PURE__ */ l("span", { className: A(), children: V })
1988
+ V !== "" && /* @__PURE__ */ i("span", { className: A(), children: V })
1964
1989
  ]
1965
1990
  }
1966
1991
  ),
1967
- a && /* @__PURE__ */ l(
1992
+ a && /* @__PURE__ */ i(
1968
1993
  "div",
1969
1994
  {
1970
1995
  className: "pkt-inputwrapper__helptext",
@@ -1972,8 +1997,8 @@ const Pe = M(
1972
1997
  dangerouslySetInnerHTML: { __html: a }
1973
1998
  }
1974
1999
  ),
1975
- J && i !== "" && /* @__PURE__ */ h("div", { children: [
1976
- /* @__PURE__ */ l(
2000
+ J && l !== "" && /* @__PURE__ */ h("div", { children: [
2001
+ /* @__PURE__ */ i(
1977
2002
  fe,
1978
2003
  {
1979
2004
  skin: "tertiary",
@@ -1982,23 +2007,23 @@ const Pe = M(
1982
2007
  iconName: v ? "chevron-thin-up" : "chevron-thin-down",
1983
2008
  className: "pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",
1984
2009
  onClick: U,
1985
- children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: g } })
2010
+ children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: g } })
1986
2011
  }
1987
2012
  ),
1988
- /* @__PURE__ */ l(
2013
+ /* @__PURE__ */ i(
1989
2014
  "div",
1990
2015
  {
1991
2016
  className: `pkt-inputwrapper__helptext ${v ? "pkt-inputwrapper__helptext-expandable-open" : "pkt-inputwrapper__helptext-expandable-closed"}`,
1992
- children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: i } })
2017
+ children: /* @__PURE__ */ i("span", { dangerouslySetInnerHTML: { __html: l } })
1993
2018
  }
1994
2019
  ),
1995
- !y && /* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": z, children: n })
2020
+ !y && /* @__PURE__ */ i("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": z, children: n })
1996
2021
  ] }),
1997
- /* @__PURE__ */ l(X, { children: T })
2022
+ /* @__PURE__ */ i(X, { children: T })
1998
2023
  ]
1999
2024
  }
2000
2025
  ) }) : /* @__PURE__ */ h(X, { children: [
2001
- !y && /* @__PURE__ */ l(
2026
+ !y && /* @__PURE__ */ i(
2002
2027
  "label",
2003
2028
  {
2004
2029
  htmlFor: e,
@@ -2010,7 +2035,7 @@ const Pe = M(
2010
2035
  ),
2011
2036
  T
2012
2037
  ] }),
2013
- u && d && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Nn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, slim: !0, children: d }) })
2038
+ u && d && /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(Nn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, compact: !0, children: d }) })
2014
2039
  ]
2015
2040
  }
2016
2041
  );
@@ -2022,11 +2047,11 @@ const fr = M(
2022
2047
  children: e,
2023
2048
  className: n,
2024
2049
  iconName: a = "user",
2025
- openInNewTab: i = !1,
2050
+ openInNewTab: l = !1,
2026
2051
  skin: r = "normal",
2027
2052
  href: o = "#",
2028
- external: c = !1,
2029
- title: s,
2053
+ external: s = !1,
2054
+ title: c,
2030
2055
  ...p
2031
2056
  }, u) => {
2032
2057
  const d = [n, "pkt-linkcard", r && `pkt-linkcard--${r}`].filter(Boolean).join(" ");
@@ -2036,14 +2061,14 @@ const fr = M(
2036
2061
  ...p,
2037
2062
  href: o,
2038
2063
  className: `pkt-linkcard pkt-link ${d}`,
2039
- target: i ? "_blank" : "_self",
2040
- rel: i ? "noopener noreferrer" : void 0,
2064
+ target: l ? "_blank" : "_self",
2065
+ rel: l ? "noopener noreferrer" : void 0,
2041
2066
  ref: u,
2042
2067
  children: [
2043
- /* @__PURE__ */ l(E, { className: "pkt-link__icon", name: a }),
2068
+ /* @__PURE__ */ i(E, { className: "pkt-link__icon", name: a }),
2044
2069
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__content", children: [
2045
- /* @__PURE__ */ l("div", { className: `pkt-linkcard__title ${c ? "pkt-link pkt-link--external" : ""}`, children: s }),
2046
- /* @__PURE__ */ l("div", { className: "pkt-linkcard__text", children: e })
2070
+ /* @__PURE__ */ i("div", { className: `pkt-linkcard__title ${s ? "pkt-link pkt-link--external" : ""}`, children: c }),
2071
+ /* @__PURE__ */ i("div", { className: "pkt-linkcard__text", children: e })
2047
2072
  ] })
2048
2073
  ]
2049
2074
  }
@@ -2053,38 +2078,44 @@ const fr = M(
2053
2078
  fr.displayName = "PktLinkCard";
2054
2079
  const yr = ({
2055
2080
  children: e,
2056
- skin: n = "beige",
2057
- title: a,
2058
- className: i,
2059
- ...r
2081
+ className: n,
2082
+ compact: a = !1,
2083
+ skin: l = "beige",
2084
+ title: r,
2085
+ ...o
2060
2086
  }) => {
2061
- const o = ["pkt-messagebox", n && `pkt-messagebox--${n}`, i].filter(Boolean).join(" ");
2062
- return /* @__PURE__ */ h("div", { ...r, className: o, children: [
2063
- a && /* @__PURE__ */ l("div", { className: "pkt-messagebox__title", children: a }),
2064
- /* @__PURE__ */ l("div", { className: "pkt-messagebox__text", children: e })
2087
+ const s = [
2088
+ n,
2089
+ "pkt-messagebox",
2090
+ l && `pkt-messagebox--${l}`,
2091
+ a && "pkt-messagebox--compact"
2092
+ ].filter(Boolean).join(" ");
2093
+ return /* @__PURE__ */ h("div", { ...o, className: s, children: [
2094
+ r && /* @__PURE__ */ i("div", { className: "pkt-messagebox__title", children: r }),
2095
+ /* @__PURE__ */ i("div", { className: "pkt-messagebox__text", children: e })
2065
2096
  ] });
2066
2097
  }, dr = M(
2067
2098
  ({
2068
2099
  id: e,
2069
2100
  name: n,
2070
2101
  label: a,
2071
- className: i,
2102
+ className: l,
2072
2103
  hasTile: r = !1,
2073
2104
  disabled: o = !1,
2074
- checkHelptext: c,
2075
- hasError: s = !1,
2105
+ checkHelptext: s,
2106
+ hasError: c = !1,
2076
2107
  ...p
2077
2108
  }, u) => {
2078
2109
  const d = [
2079
- i,
2110
+ l,
2080
2111
  "pkt-input-check"
2081
2112
  ].filter(Boolean).join(" ");
2082
- return /* @__PURE__ */ l("div", { className: d, children: /* @__PURE__ */ h("div", { className: `pkt-input-check__input ${r ? "pkt-input-check__input--tile" : ""} ${o && r ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2083
- /* @__PURE__ */ l(
2113
+ return /* @__PURE__ */ i("div", { className: d, children: /* @__PURE__ */ h("div", { className: `pkt-input-check__input ${r ? "pkt-input-check__input--tile" : ""} ${o && r ? "pkt-input-check__input--tile-disabled" : ""}`, children: [
2114
+ /* @__PURE__ */ i(
2084
2115
  "input",
2085
2116
  {
2086
2117
  ref: u,
2087
- className: `pkt-input-check__input-checkbox ${s ? "pkt-input-check__input-checkbox--error" : ""}`,
2118
+ className: `pkt-input-check__input-checkbox ${c ? "pkt-input-check__input-checkbox--error" : ""}`,
2088
2119
  type: "radio",
2089
2120
  id: e,
2090
2121
  disabled: o,
@@ -2094,7 +2125,7 @@ const yr = ({
2094
2125
  ),
2095
2126
  /* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
2096
2127
  a,
2097
- c && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: c })
2128
+ s && /* @__PURE__ */ i("div", { className: "pkt-input-check__input-helptext", children: s })
2098
2129
  ] })
2099
2130
  ] }) });
2100
2131
  }
@@ -2105,11 +2136,11 @@ const wr = M(
2105
2136
  action: e,
2106
2137
  appearance: n = "local",
2107
2138
  disabled: a = !1,
2108
- fullwidth: i = !1,
2139
+ fullwidth: l = !1,
2109
2140
  id: r,
2110
2141
  label: o,
2111
- method: c = "get",
2112
- name: s,
2142
+ method: s = "get",
2143
+ name: c,
2113
2144
  placeholder: p = "Søk…",
2114
2145
  suggestions: u,
2115
2146
  value: d = "",
@@ -2119,14 +2150,14 @@ const wr = M(
2119
2150
  }, R) => {
2120
2151
  const T = (v, O) => {
2121
2152
  v ? v() : _ && _(O);
2122
- }, j = `pkt-searchinput pkt-searchinput--${n} ${i ? "pkt-searchinput--fullwidth" : ""}`;
2153
+ }, j = `pkt-searchinput pkt-searchinput--${n} ${l ? "pkt-searchinput--fullwidth" : ""}`;
2123
2154
  return /* @__PURE__ */ h(
2124
2155
  e ? "form" : "div",
2125
2156
  {
2126
2157
  className: j,
2127
2158
  onSubmit: k && (() => k(d)),
2128
2159
  action: e || void 0,
2129
- method: e ? c : void 0,
2160
+ method: e ? s : void 0,
2130
2161
  role: "search",
2131
2162
  ref: R,
2132
2163
  ...P,
@@ -2137,18 +2168,18 @@ const wr = M(
2137
2168
  htmlFor: o ? r : void 0,
2138
2169
  className: o ? "pkt-inputwrapper__label" : "",
2139
2170
  children: [
2140
- o && /* @__PURE__ */ l(X, { children: o }),
2171
+ o && /* @__PURE__ */ i(X, { children: o }),
2141
2172
  /* @__PURE__ */ h(
2142
2173
  "div",
2143
2174
  {
2144
2175
  className: n === "local" ? "pkt-input__container" : "pkt-searchinput__field",
2145
2176
  children: [
2146
- /* @__PURE__ */ l(
2177
+ /* @__PURE__ */ i(
2147
2178
  "input",
2148
2179
  {
2149
- className: `pkt-input ${i ? "pkt-input--fullwidth" : ""}`,
2180
+ className: `pkt-input ${l ? "pkt-input--fullwidth" : ""}`,
2150
2181
  type: "search",
2151
- name: s || r,
2182
+ name: c || r,
2152
2183
  id: r,
2153
2184
  placeholder: p,
2154
2185
  value: d,
@@ -2159,7 +2190,7 @@ const wr = M(
2159
2190
  "aria-controls": `${r}-suggestions`
2160
2191
  }
2161
2192
  ),
2162
- /* @__PURE__ */ l(
2193
+ /* @__PURE__ */ i(
2163
2194
  fe,
2164
2195
  {
2165
2196
  className: `pkt-searchinput__button ${n === "local" ? "pkt-input-icon" : ""}`,
@@ -2180,13 +2211,13 @@ const wr = M(
2180
2211
  ]
2181
2212
  }
2182
2213
  ),
2183
- u && /* @__PURE__ */ l(
2214
+ u && /* @__PURE__ */ i(
2184
2215
  "ul",
2185
2216
  {
2186
2217
  id: `${r}-suggestions`,
2187
2218
  className: "pkt-searchinput__suggestions",
2188
2219
  "aria-live": "assertive",
2189
- children: u.map((v, O) => /* @__PURE__ */ l("li", { children: H.createElement(
2220
+ children: u.map((v, O) => /* @__PURE__ */ i("li", { children: H.createElement(
2190
2221
  v.href ? "a" : v.onClick ? "button" : "div",
2191
2222
  {
2192
2223
  href: v.href,
@@ -2196,8 +2227,8 @@ const wr = M(
2196
2227
  onKeyUp: () => T(v.onClick, O)
2197
2228
  },
2198
2229
  /* @__PURE__ */ h(X, { children: [
2199
- v.title && /* @__PURE__ */ l("h3", { className: "pkt-searchinput__suggestion-title", children: v.title }),
2200
- v.text && /* @__PURE__ */ l("p", { className: "pkt-searchinput__suggestion-text", children: v.text })
2230
+ v.title && /* @__PURE__ */ i("h3", { className: "pkt-searchinput__suggestion-title", children: v.title }),
2231
+ v.text && /* @__PURE__ */ i("p", { className: "pkt-searchinput__suggestion-text", children: v.text })
2201
2232
  ] })
2202
2233
  ) }, `search-suggestion-${O}`))
2203
2234
  }
@@ -2211,11 +2242,11 @@ const wr = M(
2211
2242
  ariaDescribedby: e,
2212
2243
  ariaLabelledby: n,
2213
2244
  children: a,
2214
- className: i,
2245
+ className: l,
2215
2246
  disabled: r = !1,
2216
2247
  errorMessage: o,
2217
- hasError: c,
2218
- helptext: s,
2248
+ hasError: s,
2249
+ helptext: c,
2219
2250
  helptextDropdown: p,
2220
2251
  helptextDropdownButton: u,
2221
2252
  id: d,
@@ -2229,31 +2260,31 @@ const wr = M(
2229
2260
  requiredText: w,
2230
2261
  ...v
2231
2262
  }, O) => {
2232
- const U = [i, "pkt-select"].join(" ");
2233
- return /* @__PURE__ */ l(
2263
+ const U = [l, "pkt-select"].join(" ");
2264
+ return /* @__PURE__ */ i(
2234
2265
  Pe,
2235
2266
  {
2236
2267
  className: U,
2237
2268
  forId: d,
2238
2269
  label: P,
2239
- helptext: s,
2270
+ helptext: c,
2240
2271
  helptextDropdown: p,
2241
2272
  helptextDropdownButton: u,
2242
2273
  optionalTag: T,
2243
2274
  optionalText: j,
2244
2275
  requiredTag: y,
2245
2276
  requiredText: w,
2246
- hasError: c,
2277
+ hasError: s,
2247
2278
  errorMessage: o,
2248
2279
  disabled: r,
2249
2280
  inline: k,
2250
2281
  ariaDescribedby: e,
2251
- children: /* @__PURE__ */ l(
2282
+ children: /* @__PURE__ */ i(
2252
2283
  "select",
2253
2284
  {
2254
2285
  ref: O,
2255
2286
  className: `pkt-input ${_ ? "pkt-input--fullwidth" : ""}`,
2256
- "aria-invalid": c,
2287
+ "aria-invalid": s,
2257
2288
  "aria-errormessage": `${d}-error`,
2258
2289
  "aria-labelledby": n || `${d}-label`,
2259
2290
  disabled: r,
@@ -2266,30 +2297,30 @@ const wr = M(
2266
2297
  }
2267
2298
  );
2268
2299
  }
2269
- ), mr = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ l("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ l(X, { children: n }), xr = ({
2300
+ ), mr = ({ isResponsive: e, children: n }) => e ? /* @__PURE__ */ i("div", { className: "pkt-table-container", children: n }) : /* @__PURE__ */ i(X, { children: n }), xr = ({
2270
2301
  isResponsive: e,
2271
- modifiers: { info: n = !1, success: a = !1, strong: i = !1, shadow: r = !1 } = {},
2302
+ modifiers: { info: n = !1, success: a = !1, strong: l = !1, shadow: r = !1 } = {},
2272
2303
  children: o
2273
- }) => /* @__PURE__ */ l(mr, { isResponsive: e, children: /* @__PURE__ */ l(
2304
+ }) => /* @__PURE__ */ i(mr, { isResponsive: e, children: /* @__PURE__ */ i(
2274
2305
  "table",
2275
2306
  {
2276
2307
  className: Ft("pkt-table", {
2277
2308
  "pkt-table--info": n,
2278
2309
  "pkt-table--success": a,
2279
- "pkt-table--strong": i,
2310
+ "pkt-table--strong": l,
2280
2311
  "pkt-table--shadow": r
2281
2312
  }),
2282
2313
  children: o
2283
2314
  }
2284
- ) }), Cr = ({ children: e }) => /* @__PURE__ */ l("td", { className: "pkt-table__th", children: e }), Rr = ({ children: e }) => /* @__PURE__ */ l("th", { className: "pkt-table__th", children: e }), Ye = M(({
2315
+ ) }), Cr = ({ children: e }) => /* @__PURE__ */ i("td", { className: "pkt-table__th", children: e }), Rr = ({ children: e }) => /* @__PURE__ */ i("th", { className: "pkt-table__th", children: e }), Ye = M(({
2285
2316
  children: e,
2286
2317
  className: n,
2287
2318
  skin: a = "blue",
2288
- textStyle: i = "normal-text",
2319
+ textStyle: l = "normal-text",
2289
2320
  size: r = "medium",
2290
2321
  closeTag: o = !1,
2291
- iconName: c = "",
2292
- type: s = "button",
2322
+ iconName: s = "",
2323
+ type: c = "button",
2293
2324
  ariaLabel: p = "close",
2294
2325
  onClick: u = () => {
2295
2326
  }
@@ -2300,7 +2331,7 @@ const wr = M(
2300
2331
  "pkt-tag",
2301
2332
  r && `pkt-tag--${r}`,
2302
2333
  a && `pkt-tag--${a}`,
2303
- i && `pkt-tag--${i}`,
2334
+ l && `pkt-tag--${l}`,
2304
2335
  n
2305
2336
  ].filter(Boolean).join(" "), T = [
2306
2337
  "pkt-tag",
@@ -2308,94 +2339,94 @@ const wr = M(
2308
2339
  "pkt-btn--tertiary",
2309
2340
  r && `pkt-tag--${r}`,
2310
2341
  a && `pkt-tag--${a}`,
2311
- i && `pkt-tag--${i}`,
2312
- c && o ? "pkt-btn--icons-right-and-left" : null,
2313
- o && !c ? "pkt-btn--icon-right" : null,
2342
+ l && `pkt-tag--${l}`,
2343
+ s && o ? "pkt-btn--icons-right-and-left" : null,
2344
+ o && !s ? "pkt-btn--icon-right" : null,
2314
2345
  n
2315
2346
  ].filter(Boolean).join(" "), j = !k;
2316
- return o && c ? /* @__PURE__ */ l(X, { children: j && /* @__PURE__ */ h(
2347
+ return o && s ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
2317
2348
  "button",
2318
2349
  {
2319
2350
  className: T,
2320
- type: s,
2351
+ type: c,
2321
2352
  "aria-label": p,
2322
2353
  onClick: P,
2323
2354
  ref: d,
2324
2355
  children: [
2325
- /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: c }),
2356
+ /* @__PURE__ */ i(E, { className: "pkt-tag__icon", name: s }),
2326
2357
  e,
2327
- /* @__PURE__ */ l(E, { className: "pkt-tag__close-btn", name: "close" })
2358
+ /* @__PURE__ */ i(E, { className: "pkt-tag__close-btn", name: "close" })
2328
2359
  ]
2329
2360
  }
2330
- ) }) : o ? /* @__PURE__ */ l(X, { children: j && /* @__PURE__ */ h(
2361
+ ) }) : o ? /* @__PURE__ */ i(X, { children: j && /* @__PURE__ */ h(
2331
2362
  "button",
2332
2363
  {
2333
2364
  className: T,
2334
- type: s,
2365
+ type: c,
2335
2366
  "aria-label": p,
2336
2367
  onClick: P,
2337
2368
  ref: d,
2338
2369
  children: [
2339
- /* @__PURE__ */ l(E, { className: "pkt-tag__close-btn", name: "close" }),
2370
+ /* @__PURE__ */ i(E, { className: "pkt-tag__close-btn", name: "close" }),
2340
2371
  e
2341
2372
  ]
2342
2373
  }
2343
- ) }) : c ? /* @__PURE__ */ h("span", { className: R, children: [
2344
- /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: c }),
2374
+ ) }) : s ? /* @__PURE__ */ h("span", { className: R, children: [
2375
+ /* @__PURE__ */ i(E, { className: "pkt-tag__icon", name: s }),
2345
2376
  e
2346
- ] }) : /* @__PURE__ */ l("span", { className: R, children: e });
2377
+ ] }) : /* @__PURE__ */ i("span", { className: R, children: e });
2347
2378
  });
2348
2379
  Ye.displayName = "PktTag";
2349
2380
  const Pr = M(
2350
- ({ arrowNav: e = !0, tabs: n, onTabSelected: a }, i) => {
2381
+ ({ arrowNav: e = !0, tabs: n, onTabSelected: a }, l) => {
2351
2382
  const r = wt([]);
2352
2383
  Ke(() => {
2353
2384
  r.current = r.current.slice(0, n.length);
2354
2385
  }, [n]);
2355
- const o = (s, p) => {
2356
- p.action && p.action(s), a && a(s);
2357
- }, c = (s, p) => {
2386
+ const o = (c, p) => {
2387
+ p.action && p.action(c), a && a(c);
2388
+ }, s = (c, p) => {
2358
2389
  var u, d;
2359
- e && (p.code === "ArrowLeft" && s !== 0 && ((u = r.current[s - 1]) == null || u.focus()), p.code === "ArrowRight" && s < n.length - 1 && ((d = r.current[s + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && o(s, n[s]));
2390
+ e && (p.code === "ArrowLeft" && c !== 0 && ((u = r.current[c - 1]) == null || u.focus()), p.code === "ArrowRight" && c < n.length - 1 && ((d = r.current[c + 1]) == null || d.focus()), (p.code === "ArrowDown" || p.code === "Space") && o(c, n[c]));
2360
2391
  };
2361
- return /* @__PURE__ */ l("div", { className: "pkt-tabs", ref: i, children: /* @__PURE__ */ l("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: n.map((s, p) => /* @__PURE__ */ l(fn, { children: s.href ? /* @__PURE__ */ h(
2392
+ return /* @__PURE__ */ i("div", { className: "pkt-tabs", ref: l, children: /* @__PURE__ */ i("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: n.map((c, p) => /* @__PURE__ */ i(fn, { children: c.href ? /* @__PURE__ */ h(
2362
2393
  "a",
2363
2394
  {
2364
- "aria-selected": !!s.active,
2395
+ "aria-selected": !!c.active,
2365
2396
  role: e ? "tab" : void 0,
2366
- href: s.href,
2367
- "aria-controls": s.controls,
2368
- className: `pkt-tabs__link ${s.active ? "active" : ""}`,
2369
- onKeyUp: (u) => c(p, u),
2370
- onClick: () => o(p, s),
2371
- tabIndex: s.active || !e ? void 0 : -1,
2397
+ href: c.href,
2398
+ "aria-controls": c.controls,
2399
+ className: `pkt-tabs__link ${c.active ? "active" : ""}`,
2400
+ onKeyUp: (u) => s(p, u),
2401
+ onClick: () => o(p, c),
2402
+ tabIndex: c.active || !e ? void 0 : -1,
2372
2403
  ref: (u) => {
2373
2404
  r.current[p] = u;
2374
2405
  },
2375
2406
  children: [
2376
- s.icon && /* @__PURE__ */ l(E, { name: s.icon, className: "pkt-icon--small" }),
2377
- s.text,
2378
- s.tag && /* @__PURE__ */ l(Ye, { skin: s.tag.skin, size: "small", children: s.tag.text })
2407
+ c.icon && /* @__PURE__ */ i(E, { name: c.icon, className: "pkt-icon--small" }),
2408
+ c.text,
2409
+ c.tag && /* @__PURE__ */ i(Ye, { skin: c.tag.skin, size: "small", children: c.tag.text })
2379
2410
  ]
2380
2411
  }
2381
2412
  ) : /* @__PURE__ */ h(
2382
2413
  "button",
2383
2414
  {
2384
- "aria-selected": !!s.active,
2415
+ "aria-selected": !!c.active,
2385
2416
  role: e ? "tab" : void 0,
2386
2417
  type: "button",
2387
- "aria-controls": s.controls,
2388
- className: `pkt-tabs__button pkt-link-button ${s.active ? "active" : ""}`,
2389
- onKeyUp: (u) => c(p, u),
2390
- onClick: () => o(p, s),
2391
- tabIndex: s.active || !e ? void 0 : -1,
2418
+ "aria-controls": c.controls,
2419
+ className: `pkt-tabs__button pkt-link-button ${c.active ? "active" : ""}`,
2420
+ onKeyUp: (u) => s(p, u),
2421
+ onClick: () => o(p, c),
2422
+ tabIndex: c.active || !e ? void 0 : -1,
2392
2423
  ref: (u) => {
2393
2424
  r.current[p] = u;
2394
2425
  },
2395
2426
  children: [
2396
- s.icon && /* @__PURE__ */ l(E, { name: s.icon, className: "pkt-icon--small" }),
2397
- s.text,
2398
- s.tag && /* @__PURE__ */ l(Ye, { skin: s.tag.skin, size: "small", children: s.tag.text })
2427
+ c.icon && /* @__PURE__ */ i(E, { name: c.icon, className: "pkt-icon--small" }),
2428
+ c.text,
2429
+ c.tag && /* @__PURE__ */ i(Ye, { skin: c.tag.skin, size: "small", children: c.tag.text })
2399
2430
  ]
2400
2431
  },
2401
2432
  "b-" + p
@@ -2406,11 +2437,11 @@ const Pr = M(
2406
2437
  id: e,
2407
2438
  ariaDescribedby: n,
2408
2439
  ariaLabelledby: a,
2409
- counter: i,
2440
+ counter: l,
2410
2441
  counterMaxLength: r,
2411
2442
  className: o,
2412
- disabled: c,
2413
- errorMessage: s,
2443
+ disabled: s,
2444
+ errorMessage: c,
2414
2445
  hasError: p,
2415
2446
  helptext: u,
2416
2447
  helptextDropdown: d,
@@ -2431,19 +2462,19 @@ const Pr = M(
2431
2462
  }, W) => {
2432
2463
  const G = [o, "pkt-textinput", "pkt-textarea"].join(" "), J = a || `${e}-label`, g = wt(null), [D, Y] = de(0), z = (ee) => {
2433
2464
  var te, oe;
2434
- if (i && Y(((oe = (te = ee.currentTarget) == null ? void 0 : te.value) == null ? void 0 : oe.length) || 0), V)
2465
+ if (l && Y(((oe = (te = ee.currentTarget) == null ? void 0 : te.value) == null ? void 0 : oe.length) || 0), V)
2435
2466
  return V(ee);
2436
2467
  };
2437
2468
  return Ke(() => {
2438
2469
  var ee, te;
2439
- typeof W == "function" && W(g.current), i && Y(((te = (ee = g == null ? void 0 : g.current) == null ? void 0 : ee.value) == null ? void 0 : te.length) || 0);
2470
+ typeof W == "function" && W(g.current), l && Y(((te = (ee = g == null ? void 0 : g.current) == null ? void 0 : ee.value) == null ? void 0 : te.length) || 0);
2440
2471
  }, [W]), /* @__PURE__ */ h(
2441
2472
  Pe,
2442
2473
  {
2443
2474
  ariaDescribedby: n,
2444
2475
  className: G,
2445
- disabled: c,
2446
- errorMessage: s,
2476
+ disabled: s,
2477
+ errorMessage: c,
2447
2478
  forId: e,
2448
2479
  hasError: p,
2449
2480
  helptext: u,
@@ -2457,7 +2488,7 @@ const Pr = M(
2457
2488
  requiredText: v,
2458
2489
  useWrapper: A,
2459
2490
  children: [
2460
- /* @__PURE__ */ l(
2491
+ /* @__PURE__ */ i(
2461
2492
  "textarea",
2462
2493
  {
2463
2494
  ref: g,
@@ -2465,7 +2496,7 @@ const Pr = M(
2465
2496
  name: T || e,
2466
2497
  id: e,
2467
2498
  placeholder: O,
2468
- disabled: c,
2499
+ disabled: s,
2469
2500
  rows: U,
2470
2501
  "aria-labelledby": J,
2471
2502
  "aria-invalid": p,
@@ -2474,7 +2505,7 @@ const Pr = M(
2474
2505
  onChange: z
2475
2506
  }
2476
2507
  ),
2477
- i && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2508
+ l && /* @__PURE__ */ h("div", { className: "pkt-input__counter", "aria-live": "polite", "aria-atomic": !0, children: [
2478
2509
  D || 0,
2479
2510
  r && `/${r}`
2480
2511
  ] })
@@ -2487,11 +2518,11 @@ const Pr = M(
2487
2518
  id: e,
2488
2519
  ariaDescribedby: n,
2489
2520
  ariaLabelledby: a,
2490
- autocomplete: i = "off",
2521
+ autocomplete: l = "off",
2491
2522
  className: r,
2492
2523
  disabled: o = !1,
2493
- errorMessage: c,
2494
- hasError: s = !1,
2524
+ errorMessage: s,
2525
+ hasError: c = !1,
2495
2526
  helptext: p,
2496
2527
  helptextDropdown: u,
2497
2528
  helptextDropdownButton: d,
@@ -2514,15 +2545,15 @@ const Pr = M(
2514
2545
  ...J
2515
2546
  }, g) => {
2516
2547
  const D = [r, "pkt-textinput"].join(" "), Y = a || `${e}-label`, z = V === "search" && !k && !W;
2517
- return /* @__PURE__ */ l(
2548
+ return /* @__PURE__ */ i(
2518
2549
  Pe,
2519
2550
  {
2520
2551
  ariaDescribedby: n,
2521
2552
  className: D,
2522
2553
  disabled: o,
2523
- errorMessage: c,
2554
+ errorMessage: s,
2524
2555
  forId: e,
2525
- hasError: s,
2556
+ hasError: c,
2526
2557
  helptext: p,
2527
2558
  helptextDropdown: u,
2528
2559
  helptextDropdownButton: d,
@@ -2534,8 +2565,8 @@ const Pr = M(
2534
2565
  requiredText: v,
2535
2566
  useWrapper: K,
2536
2567
  children: /* @__PURE__ */ h("div", { className: "pkt-input__container", children: [
2537
- U && /* @__PURE__ */ l("div", { className: "pkt-input-prefix", children: U }),
2538
- /* @__PURE__ */ l(
2568
+ U && /* @__PURE__ */ i("div", { className: "pkt-input-prefix", children: U }),
2569
+ /* @__PURE__ */ i(
2539
2570
  "input",
2540
2571
  {
2541
2572
  ref: g,
@@ -2544,10 +2575,10 @@ const Pr = M(
2544
2575
  name: T || e,
2545
2576
  id: e,
2546
2577
  placeholder: O,
2547
- autoComplete: i,
2578
+ autoComplete: l,
2548
2579
  value: G,
2549
2580
  disabled: o,
2550
- "aria-invalid": s,
2581
+ "aria-invalid": c,
2551
2582
  "aria-errormessage": `${e}-error`,
2552
2583
  "aria-labelledby": Y,
2553
2584
  ...J
@@ -2555,11 +2586,11 @@ const Pr = M(
2555
2586
  ),
2556
2587
  A && /* @__PURE__ */ h("p", { className: "pkt-input-suffix", children: [
2557
2588
  A,
2558
- k && /* @__PURE__ */ l(E, { className: "pkt-input-suffix-icon", name: k }),
2559
- z && /* @__PURE__ */ l(E, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
2589
+ k && /* @__PURE__ */ i(E, { className: "pkt-input-suffix-icon", name: k }),
2590
+ z && /* @__PURE__ */ i(E, { className: "pkt-input-suffix-icon", name: "magnifying-glass-big" })
2560
2591
  ] }),
2561
- !A && k && /* @__PURE__ */ l(E, { className: "pkt-input-icon", name: k }),
2562
- !A && z && /* @__PURE__ */ l(E, { className: "pkt-input-icon", name: "magnifying-glass-big" })
2592
+ !A && k && /* @__PURE__ */ i(E, { className: "pkt-input-icon", name: k }),
2593
+ !A && z && /* @__PURE__ */ i(E, { className: "pkt-input-icon", name: "magnifying-glass-big" })
2563
2594
  ] })
2564
2595
  }
2565
2596
  );