@oslokommune/punkt-react 11.2.2 → 11.3.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.
@@ -20,17 +20,17 @@ function mn() {
20
20
  return ce;
21
21
  vt = 1;
22
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) {
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
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)
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"), i = 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 === 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 === 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.
@@ -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:
@@ -631,12 +631,12 @@ Check the top-level render call using <` + m + ">.");
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, 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.3/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
636
  }, gn = un(bn), E = ({ name: e, path: n, className: a = "", ...i }) => {
637
- const [r, o] = de(null), c = pn(gn);
637
+ const [r, o] = de(null), s = pn(gn);
638
638
  return Ke(() => {
639
- e ? c.fetchIcon(e, n).then(o) : o(null);
639
+ e ? s.fetchIcon(e, n).then(o) : o(null);
640
640
  }, [e, n]), r ? /* @__PURE__ */ l(
641
641
  "span",
642
642
  {
@@ -653,20 +653,20 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
653
653
  closeAlert: i = !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: [
669
+ return _ ? /* @__PURE__ */ h("div", { ...u, className: k, "aria-live": c, ref: d, children: [
670
670
  /* @__PURE__ */ l(
671
671
  E,
672
672
  {
@@ -687,19 +687,19 @@ const X = Je.Fragment, l = Je.jsx, h = Je.jsxs, Fe = {}, kn = '<svg xmlns="http:
687
687
  ) }),
688
688
  o && /* @__PURE__ */ l("div", { className: "pkt-alert__title", children: o }),
689
689
  /* @__PURE__ */ l("div", { className: "pkt-alert__text", children: e }),
690
- c && /* @__PURE__ */ h("div", { className: "pkt-alert__date", children: [
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
697
  ({ href: e, text: n, onClick: a, className: i, ...r }, o) => {
698
- const c = [
698
+ const s = [
699
699
  i,
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__ */ l("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
705
  /* @__PURE__ */ l(E, { className: "pkt-back-link__icon pkt-icon pkt-link__icon", name: "chevron-thin-left", "aria-hidden": "true" }),
@@ -775,7 +775,7 @@ function Nt(e, n) {
775
775
  let [a, i] = 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
780
  params: i.reduce((u, d, k) => {
781
781
  let {
@@ -783,21 +783,21 @@ function Nt(e, n) {
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 i = [], r = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:(\w+)(\?)?/g, (s, c, p) => (i.push({
800
+ paramName: c,
801
801
  isOptional: p != null
802
802
  }), p ? "/?([^\\/]+)?" : "/([^\\/]+)"));
803
803
  return e.endsWith("*") ? (i.push({
@@ -852,29 +852,29 @@ function Ct(e, n, a, i) {
852
852
  i === void 0 && (i = !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;
855
+ let o = e === "" || r.pathname === "", s = o ? "/" : r.pathname, c;
856
+ if (s == null)
857
+ c = a;
858
858
  else if (i) {
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"];
@@ -934,14 +934,14 @@ function $n(e, n) {
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 i !== "/" && (p = s === "/" ? i : ze([i, s])), r.createHref({
943
943
  pathname: p,
944
- search: s,
944
+ search: c,
945
945
  hash: o
946
946
  });
947
947
  }
@@ -981,19 +981,19 @@ function Dn() {
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
991
  i.go(u);
992
992
  return;
993
993
  }
994
- let k = Ct(u, JSON.parse(c), o, d.relative === "path");
994
+ let k = Ct(u, JSON.parse(s), o, d.relative === "path");
995
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]);
996
+ }, [n, i, s, o, e]);
997
997
  }
998
998
  function he(e, n) {
999
999
  let {
@@ -1004,8 +1004,8 @@ function he(e, n) {
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, i.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;
@@ -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, i, 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
+ i = 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 (i = 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, i = null, r = we, s = e;
1140
1140
  }
1141
- return o && r === "text/plain" && (c = o, o = void 0), {
1141
+ return o && r === "text/plain" && (s = o, o = void 0), {
1142
1142
  action: i,
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({
@@ -1158,8 +1158,8 @@ const Xn = typeof window < "u" && typeof window.document < "u" && typeof window.
1158
1158
  onClick: i,
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,8 +1177,8 @@ 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,
@@ -1203,8 +1203,8 @@ const Qn = /* @__PURE__ */ N.forwardRef(function(n, a) {
1203
1203
  "aria-current": i = "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
1224
  }, K = U ? i : 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,
@@ -1240,8 +1240,8 @@ const er = /* @__PURE__ */ N.forwardRef((e, n) => {
1240
1240
  navigate: i,
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
1260
  navigate: i,
1261
1261
  replace: o,
1262
- state: c,
1262
+ state: s,
1263
1263
  relative: d,
1264
1264
  preventScrollReset: k,
1265
1265
  unstable_viewTransition: _
@@ -1295,10 +1295,10 @@ function nr(e, n) {
1295
1295
  replace: i,
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)) {
@@ -1308,11 +1308,11 @@ function nr(e, n) {
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, i, r, a, e, o, s, c]);
1316
1316
  }
1317
1317
  function rr() {
1318
1318
  if (typeof document > "u")
@@ -1329,8 +1329,8 @@ function ir() {
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
1336
  } = Jn(i, n);
@@ -1340,8 +1340,8 @@ function ir() {
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,
@@ -1366,15 +1366,15 @@ function or(e, n) {
1366
1366
  basename: i
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"), i !== "/" && (s.pathname = s.pathname === "/" ? i : ze([i, s.pathname])), Be(s);
1378
1378
  }
1379
1379
  function sr(e, n) {
1380
1380
  n === void 0 && (n = {});
@@ -1387,16 +1387,16 @@ function sr(e, n) {
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, i) || a.currentLocation.pathname, s = pe(a.nextLocation.pathname, i) || a.nextLocation.pathname;
1391
+ return Nt(r.pathname, s) != null || Nt(r.pathname, o) != null;
1392
1392
  }
1393
1393
  const _r = M(
1394
1394
  ({ breadcrumbs: e, navigationType: n, className: a, ...i }, r) => {
1395
- const o = e.slice(0, 4), c = o[o.length - 2], s = [
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: [
1399
+ return /* @__PURE__ */ h("nav", { ref: r, "aria-label": "brødsmulemeny", className: c, children: [
1400
1400
  /* @__PURE__ */ l("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: o.map((p, u) => /* @__PURE__ */ l(
1401
1401
  "li",
1402
1402
  {
@@ -1442,7 +1442,7 @@ 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
1447
  ...i,
1448
1448
  children: [
@@ -1453,13 +1453,13 @@ const _r = M(
1453
1453
  name: "chevron-thin-left"
1454
1454
  }
1455
1455
  ),
1456
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: c.text })
1456
+ /* @__PURE__ */ l("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
1464
  ...i,
1465
1465
  children: [
@@ -1470,7 +1470,7 @@ const _r = M(
1470
1470
  name: "chevron-thin-left"
1471
1471
  }
1472
1472
  ),
1473
- /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: c.text })
1473
+ /* @__PURE__ */ l("span", { className: "pkt-breadcrumbs__text", children: s.text })
1474
1474
  ]
1475
1475
  }
1476
1476
  )
@@ -1484,8 +1484,8 @@ const _r = M(
1484
1484
  secondIconName: i = "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 }),
1500
+ return /* @__PURE__ */ h("button", { ...u, className: k, type: s, ref: d, children: [
1501
+ c !== "label-only" && /* @__PURE__ */ l(E, { className: "pkt-btn__icon", name: a }),
1502
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 })
1503
+ c === "icons-right-and-left" && /* @__PURE__ */ l(E, { className: "pkt-btn__icon", name: i })
1504
1504
  ] });
1505
1505
  }
1506
1506
  );
@@ -1513,11 +1513,11 @@ const cr = M(
1513
1513
  label: i,
1514
1514
  checkHelptext: r,
1515
1515
  hasError: o = !1,
1516
- className: c,
1517
- ...s
1516
+ className: s,
1517
+ ...c
1518
1518
  }, p) => {
1519
1519
  const u = [
1520
- c,
1520
+ s,
1521
1521
  "pkt-input-check"
1522
1522
  ].filter(Boolean).join(" ");
1523
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: [
@@ -1529,7 +1529,7 @@ const cr = M(
1529
1529
  type: "checkbox",
1530
1530
  id: e,
1531
1531
  disabled: a,
1532
- ...s
1532
+ ...c
1533
1533
  }
1534
1534
  ),
1535
1535
  /* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
@@ -1548,15 +1548,15 @@ const br = ({
1548
1548
  personvernOgInfoLink: r = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
1549
1549
  tilgjengelighetLink: o = "https://www.oslo.kommune.no/tilgjengelighet/"
1550
1550
  }) => {
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: [
1551
+ var c, p;
1552
+ const s = [i, "pkt-footer"].filter(Boolean).join(" ");
1553
+ return /* @__PURE__ */ l("footer", { className: s, "data-mode": "dark", children: /* @__PURE__ */ h("div", { className: "pkt-footer__container", children: [
1554
1554
  /* @__PURE__ */ h("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
1555
1555
  /* @__PURE__ */ h("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
1556
1556
  /* @__PURE__ */ l("h2", { className: "pkt-footer__title", children: e.title }),
1557
1557
  /* @__PURE__ */ h("ul", { className: "pkt-footer__list", children: [
1558
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(
1559
+ (c = e.links) == null ? void 0 : c.map((u, d) => /* @__PURE__ */ l("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ h(
1560
1560
  "a",
1561
1561
  {
1562
1562
  className: `pkt-footer__link ${u.external ? "pkt-link--external" : ""}`,
@@ -1650,7 +1650,7 @@ const br = ({
1650
1650
  }) => {
1651
1651
  const r = [i, "pkt-footer-simple"].filter(Boolean).join(" ");
1652
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(
1653
+ e.map((o, s) => /* @__PURE__ */ l("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h(
1654
1654
  "a",
1655
1655
  {
1656
1656
  className: `pkt-footer-simple__link ${o.external ? " pkt-link--external" : ""}`,
@@ -1668,7 +1668,7 @@ const br = ({
1668
1668
  o.text
1669
1669
  ]
1670
1670
  }
1671
- ) }, c)),
1671
+ ) }, s)),
1672
1672
  /* @__PURE__ */ l("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ h("a", { className: "pkt-footer-simple__link", href: n, children: [
1673
1673
  /* @__PURE__ */ l(E, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
1674
1674
  "Personvern og informasjonskapsler"
@@ -1692,15 +1692,15 @@ var It = { exports: {} };
1692
1692
  for (var i = [], r = 0; r < arguments.length; r++) {
1693
1693
  var o = arguments[r];
1694
1694
  if (o) {
1695
- var c = typeof o;
1696
- if (c === "string" || c === "number")
1695
+ var s = typeof o;
1696
+ if (s === "string" || s === "number")
1697
1697
  i.push(o);
1698
1698
  else if (Array.isArray(o)) {
1699
1699
  if (o.length) {
1700
- var s = a.apply(null, o);
1701
- s && i.push(s);
1700
+ var c = a.apply(null, o);
1701
+ c && i.push(c);
1702
1702
  }
1703
- } else if (c === "object") {
1703
+ } else if (s === "object") {
1704
1704
  if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
1705
1705
  i.push(o.toString());
1706
1706
  continue;
@@ -1724,8 +1724,8 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1724
1724
  scrollToHide: i = !0,
1725
1725
  user: r,
1726
1726
  userMenu: o,
1727
- representing: c,
1728
- userOptions: s,
1727
+ representing: s,
1728
+ userOptions: c,
1729
1729
  userMenuFooter: p,
1730
1730
  canChangeRepresentation: u = !0,
1731
1731
  showMenuButton: d = !1,
@@ -1776,7 +1776,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1776
1776
  name: "oslologo",
1777
1777
  className: "pkt-header__logo-svg",
1778
1778
  "aria-hidden": "true",
1779
- path: "https://punkt-cdn.oslo.kommune.no/11.2/logos/"
1779
+ path: "https://punkt-cdn.oslo.kommune.no/11.3/logos/"
1780
1780
  }
1781
1781
  ) }) : /* @__PURE__ */ l(
1782
1782
  "button",
@@ -1790,7 +1790,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1790
1790
  name: "oslologo",
1791
1791
  className: "pkt-header__logo-svg",
1792
1792
  "aria-hidden": "true",
1793
- path: "https://punkt-cdn.oslo.kommune.no/11.2/logos/"
1793
+ path: "https://punkt-cdn.oslo.kommune.no/11.3/logos/"
1794
1794
  }
1795
1795
  )
1796
1796
  }
@@ -1809,7 +1809,7 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1809
1809
  children: "Meny"
1810
1810
  }
1811
1811
  ) }),
1812
- (r || c) && /* @__PURE__ */ h(
1812
+ (r || s) && /* @__PURE__ */ h(
1813
1813
  "li",
1814
1814
  {
1815
1815
  "data-testid": "usermenu",
@@ -1827,8 +1827,8 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1827
1827
  onClick: W,
1828
1828
  children: [
1829
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) }),
1830
+ /* @__PURE__ */ l("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (r == null ? void 0 : r.name) }),
1831
+ /* @__PURE__ */ l("span", { className: "pkt-header__user-shortname", children: (s == null ? void 0 : s.shortname) || (r == null ? void 0 : r.shortname) }),
1832
1832
  /* @__PURE__ */ l(E, { name: "chevron-thin-down", className: "pkt-btn--closed" }),
1833
1833
  /* @__PURE__ */ l(E, { name: "chevron-thin-up", className: "pkt-btn--open" })
1834
1834
  ]
@@ -1850,13 +1850,13 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1850
1850
  g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1851
1851
  g.title
1852
1852
  ] }) }, `userMenu-${D}`)) }) }),
1853
- (c || u) && /* @__PURE__ */ h("li", { children: [
1854
- c && /* @__PURE__ */ h(X, { children: [
1853
+ (s || u) && /* @__PURE__ */ h("li", { children: [
1854
+ s && /* @__PURE__ */ h(X, { children: [
1855
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: [
1856
+ /* @__PURE__ */ l("div", { className: "pkt-user-menu__name", children: s.name }),
1857
+ s.orgNumber && /* @__PURE__ */ h("div", { className: "pkt-user-menu__org-number", children: [
1858
1858
  "Org.nr. ",
1859
- c.orgNumber
1859
+ s.orgNumber
1860
1860
  ] })
1861
1861
  ] }),
1862
1862
  /* @__PURE__ */ l("ul", { className: "pkt-list mt-size-16", children: u && /* @__PURE__ */ l("li", { children: /* @__PURE__ */ h(
@@ -1871,8 +1871,8 @@ const Ft = /* @__PURE__ */ dn(ur), Nr = M(
1871
1871
  }
1872
1872
  ) }) })
1873
1873
  ] }),
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: [
1874
+ /* @__PURE__ */ l("li", { children: /* @__PURE__ */ l("ul", { className: "pkt-list", children: (c || !k) && /* @__PURE__ */ h(X, { children: [
1875
+ c == null ? void 0 : c.map((g, D) => /* @__PURE__ */ l("li", { children: typeof g.target == "string" ? /* @__PURE__ */ h("a", { href: g.target, className: "pkt-link", children: [
1876
1876
  g.iconName && /* @__PURE__ */ l(E, { name: g.iconName, className: "pkt-link__icon" }),
1877
1877
  g.title
1878
1878
  ] }) : /* @__PURE__ */ h("button", { className: "pkt-link-button pkt-link", onClick: g.target, children: [
@@ -1922,8 +1922,8 @@ const Pe = M(
1922
1922
  helptextDropdown: i,
1923
1923
  helptextDropdownButton: r,
1924
1924
  optionalTag: o = !1,
1925
- optionalText: c = "Valgfritt",
1926
- requiredTag: s = !1,
1925
+ optionalText: s = "Valgfritt",
1926
+ requiredTag: c = !1,
1927
1927
  requiredText: p = "Må fylles ut",
1928
1928
  hasError: u,
1929
1929
  errorMessage: d,
@@ -1937,7 +1937,7 @@ const Pe = M(
1937
1937
  }, w) => {
1938
1938
  const [v, O] = de(!1), U = () => {
1939
1939
  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);
1940
+ }, 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 = !!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);
1941
1941
  return /* @__PURE__ */ h(
1942
1942
  "div",
1943
1943
  {
@@ -2010,7 +2010,7 @@ const Pe = M(
2010
2010
  ),
2011
2011
  T
2012
2012
  ] }),
2013
- u && d && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Nn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, slim: !0, children: d }) })
2013
+ u && d && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(Nn, { skin: "error", "aria-live": "assertive", id: `${e}-error`, compact: !0, children: d }) })
2014
2014
  ]
2015
2015
  }
2016
2016
  );
@@ -2025,8 +2025,8 @@ const fr = M(
2025
2025
  openInNewTab: i = !1,
2026
2026
  skin: r = "normal",
2027
2027
  href: o = "#",
2028
- external: c = !1,
2029
- title: s,
2028
+ external: s = !1,
2029
+ title: c,
2030
2030
  ...p
2031
2031
  }, u) => {
2032
2032
  const d = [n, "pkt-linkcard", r && `pkt-linkcard--${r}`].filter(Boolean).join(" ");
@@ -2042,7 +2042,7 @@ const fr = M(
2042
2042
  children: [
2043
2043
  /* @__PURE__ */ l(E, { className: "pkt-link__icon", name: a }),
2044
2044
  /* @__PURE__ */ h("div", { className: "pkt-linkcard__content", children: [
2045
- /* @__PURE__ */ l("div", { className: `pkt-linkcard__title ${c ? "pkt-link pkt-link--external" : ""}`, children: s }),
2045
+ /* @__PURE__ */ l("div", { className: `pkt-linkcard__title ${s ? "pkt-link pkt-link--external" : ""}`, children: c }),
2046
2046
  /* @__PURE__ */ l("div", { className: "pkt-linkcard__text", children: e })
2047
2047
  ] })
2048
2048
  ]
@@ -2053,14 +2053,20 @@ const fr = M(
2053
2053
  fr.displayName = "PktLinkCard";
2054
2054
  const yr = ({
2055
2055
  children: e,
2056
- skin: n = "beige",
2057
- title: a,
2058
- className: i,
2059
- ...r
2056
+ className: n,
2057
+ compact: a = !1,
2058
+ skin: i = "beige",
2059
+ title: r,
2060
+ ...o
2060
2061
  }) => {
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 }),
2062
+ const s = [
2063
+ n,
2064
+ "pkt-messagebox",
2065
+ i && `pkt-messagebox--${i}`,
2066
+ a && "pkt-messagebox--compact"
2067
+ ].filter(Boolean).join(" ");
2068
+ return /* @__PURE__ */ h("div", { ...o, className: s, children: [
2069
+ r && /* @__PURE__ */ l("div", { className: "pkt-messagebox__title", children: r }),
2064
2070
  /* @__PURE__ */ l("div", { className: "pkt-messagebox__text", children: e })
2065
2071
  ] });
2066
2072
  }, dr = M(
@@ -2071,8 +2077,8 @@ const yr = ({
2071
2077
  className: i,
2072
2078
  hasTile: r = !1,
2073
2079
  disabled: o = !1,
2074
- checkHelptext: c,
2075
- hasError: s = !1,
2080
+ checkHelptext: s,
2081
+ hasError: c = !1,
2076
2082
  ...p
2077
2083
  }, u) => {
2078
2084
  const d = [
@@ -2084,7 +2090,7 @@ const yr = ({
2084
2090
  "input",
2085
2091
  {
2086
2092
  ref: u,
2087
- className: `pkt-input-check__input-checkbox ${s ? "pkt-input-check__input-checkbox--error" : ""}`,
2093
+ className: `pkt-input-check__input-checkbox ${c ? "pkt-input-check__input-checkbox--error" : ""}`,
2088
2094
  type: "radio",
2089
2095
  id: e,
2090
2096
  disabled: o,
@@ -2094,7 +2100,7 @@ const yr = ({
2094
2100
  ),
2095
2101
  /* @__PURE__ */ h("label", { className: "pkt-input-check__input-label", htmlFor: e, children: [
2096
2102
  a,
2097
- c && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: c })
2103
+ s && /* @__PURE__ */ l("div", { className: "pkt-input-check__input-helptext", children: s })
2098
2104
  ] })
2099
2105
  ] }) });
2100
2106
  }
@@ -2108,8 +2114,8 @@ const wr = M(
2108
2114
  fullwidth: i = !1,
2109
2115
  id: r,
2110
2116
  label: o,
2111
- method: c = "get",
2112
- name: s,
2117
+ method: s = "get",
2118
+ name: c,
2113
2119
  placeholder: p = "Søk…",
2114
2120
  suggestions: u,
2115
2121
  value: d = "",
@@ -2126,7 +2132,7 @@ const wr = M(
2126
2132
  className: j,
2127
2133
  onSubmit: k && (() => k(d)),
2128
2134
  action: e || void 0,
2129
- method: e ? c : void 0,
2135
+ method: e ? s : void 0,
2130
2136
  role: "search",
2131
2137
  ref: R,
2132
2138
  ...P,
@@ -2148,7 +2154,7 @@ const wr = M(
2148
2154
  {
2149
2155
  className: `pkt-input ${i ? "pkt-input--fullwidth" : ""}`,
2150
2156
  type: "search",
2151
- name: s || r,
2157
+ name: c || r,
2152
2158
  id: r,
2153
2159
  placeholder: p,
2154
2160
  value: d,
@@ -2214,8 +2220,8 @@ const wr = M(
2214
2220
  className: i,
2215
2221
  disabled: r = !1,
2216
2222
  errorMessage: o,
2217
- hasError: c,
2218
- helptext: s,
2223
+ hasError: s,
2224
+ helptext: c,
2219
2225
  helptextDropdown: p,
2220
2226
  helptextDropdownButton: u,
2221
2227
  id: d,
@@ -2236,14 +2242,14 @@ const wr = M(
2236
2242
  className: U,
2237
2243
  forId: d,
2238
2244
  label: P,
2239
- helptext: s,
2245
+ helptext: c,
2240
2246
  helptextDropdown: p,
2241
2247
  helptextDropdownButton: u,
2242
2248
  optionalTag: T,
2243
2249
  optionalText: j,
2244
2250
  requiredTag: y,
2245
2251
  requiredText: w,
2246
- hasError: c,
2252
+ hasError: s,
2247
2253
  errorMessage: o,
2248
2254
  disabled: r,
2249
2255
  inline: k,
@@ -2253,7 +2259,7 @@ const wr = M(
2253
2259
  {
2254
2260
  ref: O,
2255
2261
  className: `pkt-input ${_ ? "pkt-input--fullwidth" : ""}`,
2256
- "aria-invalid": c,
2262
+ "aria-invalid": s,
2257
2263
  "aria-errormessage": `${d}-error`,
2258
2264
  "aria-labelledby": n || `${d}-label`,
2259
2265
  disabled: r,
@@ -2288,8 +2294,8 @@ const wr = M(
2288
2294
  textStyle: i = "normal-text",
2289
2295
  size: r = "medium",
2290
2296
  closeTag: o = !1,
2291
- iconName: c = "",
2292
- type: s = "button",
2297
+ iconName: s = "",
2298
+ type: c = "button",
2293
2299
  ariaLabel: p = "close",
2294
2300
  onClick: u = () => {
2295
2301
  }
@@ -2309,20 +2315,20 @@ const wr = M(
2309
2315
  r && `pkt-tag--${r}`,
2310
2316
  a && `pkt-tag--${a}`,
2311
2317
  i && `pkt-tag--${i}`,
2312
- c && o ? "pkt-btn--icons-right-and-left" : null,
2313
- o && !c ? "pkt-btn--icon-right" : null,
2318
+ s && o ? "pkt-btn--icons-right-and-left" : null,
2319
+ o && !s ? "pkt-btn--icon-right" : null,
2314
2320
  n
2315
2321
  ].filter(Boolean).join(" "), j = !k;
2316
- return o && c ? /* @__PURE__ */ l(X, { children: j && /* @__PURE__ */ h(
2322
+ return o && s ? /* @__PURE__ */ l(X, { children: j && /* @__PURE__ */ h(
2317
2323
  "button",
2318
2324
  {
2319
2325
  className: T,
2320
- type: s,
2326
+ type: c,
2321
2327
  "aria-label": p,
2322
2328
  onClick: P,
2323
2329
  ref: d,
2324
2330
  children: [
2325
- /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: c }),
2331
+ /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: s }),
2326
2332
  e,
2327
2333
  /* @__PURE__ */ l(E, { className: "pkt-tag__close-btn", name: "close" })
2328
2334
  ]
@@ -2331,7 +2337,7 @@ const wr = M(
2331
2337
  "button",
2332
2338
  {
2333
2339
  className: T,
2334
- type: s,
2340
+ type: c,
2335
2341
  "aria-label": p,
2336
2342
  onClick: P,
2337
2343
  ref: d,
@@ -2340,8 +2346,8 @@ const wr = M(
2340
2346
  e
2341
2347
  ]
2342
2348
  }
2343
- ) }) : c ? /* @__PURE__ */ h("span", { className: R, children: [
2344
- /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: c }),
2349
+ ) }) : s ? /* @__PURE__ */ h("span", { className: R, children: [
2350
+ /* @__PURE__ */ l(E, { className: "pkt-tag__icon", name: s }),
2345
2351
  e
2346
2352
  ] }) : /* @__PURE__ */ l("span", { className: R, children: e });
2347
2353
  });
@@ -2352,50 +2358,50 @@ const Pr = M(
2352
2358
  Ke(() => {
2353
2359
  r.current = r.current.slice(0, n.length);
2354
2360
  }, [n]);
2355
- const o = (s, p) => {
2356
- p.action && p.action(s), a && a(s);
2357
- }, c = (s, p) => {
2361
+ const o = (c, p) => {
2362
+ p.action && p.action(c), a && a(c);
2363
+ }, s = (c, p) => {
2358
2364
  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]));
2365
+ 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
2366
  };
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(
2367
+ return /* @__PURE__ */ l("div", { className: "pkt-tabs", ref: i, children: /* @__PURE__ */ l("div", { className: "pkt-tabs__list", role: e ? "tablist" : "navigation", children: n.map((c, p) => /* @__PURE__ */ l(fn, { children: c.href ? /* @__PURE__ */ h(
2362
2368
  "a",
2363
2369
  {
2364
- "aria-selected": !!s.active,
2370
+ "aria-selected": !!c.active,
2365
2371
  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,
2372
+ href: c.href,
2373
+ "aria-controls": c.controls,
2374
+ className: `pkt-tabs__link ${c.active ? "active" : ""}`,
2375
+ onKeyUp: (u) => s(p, u),
2376
+ onClick: () => o(p, c),
2377
+ tabIndex: c.active || !e ? void 0 : -1,
2372
2378
  ref: (u) => {
2373
2379
  r.current[p] = u;
2374
2380
  },
2375
2381
  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 })
2382
+ c.icon && /* @__PURE__ */ l(E, { name: c.icon, className: "pkt-icon--small" }),
2383
+ c.text,
2384
+ c.tag && /* @__PURE__ */ l(Ye, { skin: c.tag.skin, size: "small", children: c.tag.text })
2379
2385
  ]
2380
2386
  }
2381
2387
  ) : /* @__PURE__ */ h(
2382
2388
  "button",
2383
2389
  {
2384
- "aria-selected": !!s.active,
2390
+ "aria-selected": !!c.active,
2385
2391
  role: e ? "tab" : void 0,
2386
2392
  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,
2393
+ "aria-controls": c.controls,
2394
+ className: `pkt-tabs__button pkt-link-button ${c.active ? "active" : ""}`,
2395
+ onKeyUp: (u) => s(p, u),
2396
+ onClick: () => o(p, c),
2397
+ tabIndex: c.active || !e ? void 0 : -1,
2392
2398
  ref: (u) => {
2393
2399
  r.current[p] = u;
2394
2400
  },
2395
2401
  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 })
2402
+ c.icon && /* @__PURE__ */ l(E, { name: c.icon, className: "pkt-icon--small" }),
2403
+ c.text,
2404
+ c.tag && /* @__PURE__ */ l(Ye, { skin: c.tag.skin, size: "small", children: c.tag.text })
2399
2405
  ]
2400
2406
  },
2401
2407
  "b-" + p
@@ -2409,8 +2415,8 @@ const Pr = M(
2409
2415
  counter: i,
2410
2416
  counterMaxLength: r,
2411
2417
  className: o,
2412
- disabled: c,
2413
- errorMessage: s,
2418
+ disabled: s,
2419
+ errorMessage: c,
2414
2420
  hasError: p,
2415
2421
  helptext: u,
2416
2422
  helptextDropdown: d,
@@ -2442,8 +2448,8 @@ const Pr = M(
2442
2448
  {
2443
2449
  ariaDescribedby: n,
2444
2450
  className: G,
2445
- disabled: c,
2446
- errorMessage: s,
2451
+ disabled: s,
2452
+ errorMessage: c,
2447
2453
  forId: e,
2448
2454
  hasError: p,
2449
2455
  helptext: u,
@@ -2465,7 +2471,7 @@ const Pr = M(
2465
2471
  name: T || e,
2466
2472
  id: e,
2467
2473
  placeholder: O,
2468
- disabled: c,
2474
+ disabled: s,
2469
2475
  rows: U,
2470
2476
  "aria-labelledby": J,
2471
2477
  "aria-invalid": p,
@@ -2490,8 +2496,8 @@ const Pr = M(
2490
2496
  autocomplete: i = "off",
2491
2497
  className: r,
2492
2498
  disabled: o = !1,
2493
- errorMessage: c,
2494
- hasError: s = !1,
2499
+ errorMessage: s,
2500
+ hasError: c = !1,
2495
2501
  helptext: p,
2496
2502
  helptextDropdown: u,
2497
2503
  helptextDropdownButton: d,
@@ -2520,9 +2526,9 @@ const Pr = M(
2520
2526
  ariaDescribedby: n,
2521
2527
  className: D,
2522
2528
  disabled: o,
2523
- errorMessage: c,
2529
+ errorMessage: s,
2524
2530
  forId: e,
2525
- hasError: s,
2531
+ hasError: c,
2526
2532
  helptext: p,
2527
2533
  helptextDropdown: u,
2528
2534
  helptextDropdownButton: d,
@@ -2547,7 +2553,7 @@ const Pr = M(
2547
2553
  autoComplete: i,
2548
2554
  value: G,
2549
2555
  disabled: o,
2550
- "aria-invalid": s,
2556
+ "aria-invalid": c,
2551
2557
  "aria-errormessage": `${e}-error`,
2552
2558
  "aria-labelledby": Y,
2553
2559
  ...J