@oslokommune/punkt-react 8.0.9 → 8.0.12

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [8.0.12](https://github.com/oslokommune/punkt/compare/8.0.11...8.0.12) (2023-10-03)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * InputWrapper: Vi må støtte HTML i hjelpetekster (#1195).
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [8.0.8](https://github.com/oslokommune/punkt/compare/8.0.7...8.0.8) (2023-10-02)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
@@ -69,14 +69,14 @@ function un() {
69
69
  S.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, S);
70
70
  }
71
71
  }
72
- var A = !1, V = !1, I = !1, J = !1, H = !1, M;
73
- M = Symbol.for("react.module.reference");
72
+ var A = !1, V = !1, I = !1, J = !1, H = !1, B;
73
+ B = Symbol.for("react.module.reference");
74
74
  function W(t) {
75
75
  return !!(typeof t == "string" || typeof t == "function" || t === o || t === i || H || t === a || t === d || t === h || J || t === C || A || V || I || typeof t == "object" && t !== null && (t.$$typeof === w || t.$$typeof === _ || t.$$typeof === s || t.$$typeof === c || t.$$typeof === f || // This needs to include all possible module reference object
76
76
  // types supported by any Flight configuration anywhere since
77
77
  // we don't know which Flight build this will end up being used
78
78
  // with.
79
- t.$$typeof === M || t.getModuleId !== void 0));
79
+ t.$$typeof === B || t.getModuleId !== void 0));
80
80
  }
81
81
  function G(t, u, p) {
82
82
  var k = t.displayName;
@@ -133,7 +133,7 @@ function un() {
133
133
  }
134
134
  return null;
135
135
  }
136
- var B = Object.assign, te = 0, Z, Q, oe, Xe, Ze, Qe, et;
136
+ var M = Object.assign, te = 0, Z, Q, oe, Xe, Ze, Qe, et;
137
137
  function tt() {
138
138
  }
139
139
  tt.__reactDisabledLog = !0;
@@ -169,25 +169,25 @@ function un() {
169
169
  writable: !0
170
170
  };
171
171
  Object.defineProperties(console, {
172
- log: B({}, t, {
172
+ log: M({}, t, {
173
173
  value: Z
174
174
  }),
175
- info: B({}, t, {
175
+ info: M({}, t, {
176
176
  value: Q
177
177
  }),
178
- warn: B({}, t, {
178
+ warn: M({}, t, {
179
179
  value: oe
180
180
  }),
181
- error: B({}, t, {
181
+ error: M({}, t, {
182
182
  value: Xe
183
183
  }),
184
- group: B({}, t, {
184
+ group: M({}, t, {
185
185
  value: Ze
186
186
  }),
187
- groupCollapsed: B({}, t, {
187
+ groupCollapsed: M({}, t, {
188
188
  value: Qe
189
189
  }),
190
- groupEnd: B({}, t, {
190
+ groupEnd: M({}, t, {
191
191
  value: et
192
192
  })
193
193
  });
@@ -352,13 +352,13 @@ function un() {
352
352
  function Oe(t) {
353
353
  return Wt(t);
354
354
  }
355
- function Bt(t) {
355
+ function Mt(t) {
356
356
  {
357
357
  var u = typeof Symbol == "function" && Symbol.toStringTag, p = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
358
358
  return p;
359
359
  }
360
360
  }
361
- function Mt(t) {
361
+ function Bt(t) {
362
362
  try {
363
363
  return lt(t), !1;
364
364
  } catch {
@@ -369,8 +369,8 @@ function un() {
369
369
  return "" + t;
370
370
  }
371
371
  function ot(t) {
372
- if (Mt(t))
373
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bt(t)), lt(t);
372
+ if (Bt(t))
373
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(t)), lt(t);
374
374
  }
375
375
  var ie = O.ReactCurrentOwner, Yt = {
376
376
  key: !0,
@@ -836,15 +836,15 @@ new Set(_n);
836
836
  *
837
837
  * @license MIT
838
838
  */
839
- function Be() {
840
- return Be = Object.assign ? Object.assign.bind() : function(e) {
839
+ function Me() {
840
+ return Me = Object.assign ? Object.assign.bind() : function(e) {
841
841
  for (var n = 1; n < arguments.length; n++) {
842
842
  var r = arguments[n];
843
843
  for (var o in r)
844
844
  Object.prototype.hasOwnProperty.call(r, o) && (e[o] = r[o]);
845
845
  }
846
846
  return e;
847
- }, Be.apply(this, arguments);
847
+ }, Me.apply(this, arguments);
848
848
  }
849
849
  const we = /* @__PURE__ */ g.createContext(null);
850
850
  process.env.NODE_ENV !== "production" && (we.displayName = "DataRouter");
@@ -949,10 +949,10 @@ function xe(e, n) {
949
949
  } = fe(), i = JSON.stringify(wt(o).map((s) => s.pathnameBase));
950
950
  return g.useMemo(() => xt(e, JSON.parse(i), a, r === "path"), [e, i, a, r]);
951
951
  }
952
- var Me;
952
+ var Be;
953
953
  (function(e) {
954
954
  e.UseBlocker = "useBlocker", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate";
955
- })(Me || (Me = {}));
955
+ })(Be || (Be = {}));
956
956
  var ge;
957
957
  (function(e) {
958
958
  e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId";
@@ -978,11 +978,11 @@ function Cn() {
978
978
  function Rn() {
979
979
  let {
980
980
  router: e
981
- } = wn(Me.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = g.useRef(!1);
981
+ } = wn(Be.UseNavigateStable), n = Tt(ge.UseNavigateStable), r = g.useRef(!1);
982
982
  return St(() => {
983
983
  r.current = !0;
984
984
  }), g.useCallback(function(a, i) {
985
- i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && Ee(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Be({
985
+ i === void 0 && (i = {}), process.env.NODE_ENV !== "production" && Ee(r.current, Pt), r.current && (typeof a == "number" ? e.navigate(a) : e.navigate(a, Me({
986
986
  fromRouteId: n
987
987
  }, i)));
988
988
  }, [e, n]);
@@ -1176,14 +1176,14 @@ const Wn = /* @__PURE__ */ g.forwardRef(function(n, r) {
1176
1176
  }) : d);
1177
1177
  });
1178
1178
  process.env.NODE_ENV !== "production" && (Wn.displayName = "NavLink");
1179
- const Bn = /* @__PURE__ */ g.forwardRef((e, n) => {
1179
+ const Mn = /* @__PURE__ */ g.forwardRef((e, n) => {
1180
1180
  let r = zn();
1181
1181
  return /* @__PURE__ */ g.createElement(jt, ne({}, e, {
1182
1182
  submit: r,
1183
1183
  ref: n
1184
1184
  }));
1185
1185
  });
1186
- process.env.NODE_ENV !== "production" && (Bn.displayName = "Form");
1186
+ process.env.NODE_ENV !== "production" && (Mn.displayName = "Form");
1187
1187
  const jt = /* @__PURE__ */ g.forwardRef((e, n) => {
1188
1188
  let {
1189
1189
  reloadDocument: r,
@@ -1225,12 +1225,12 @@ var Nt;
1225
1225
  (function(e) {
1226
1226
  e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
1227
1227
  })(Nt || (Nt = {}));
1228
- function Mn(e) {
1228
+ function Bn(e) {
1229
1229
  return e + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1230
1230
  }
1231
1231
  function Yn(e) {
1232
1232
  let n = g.useContext(we);
1233
- return n || (process.env.NODE_ENV !== "production" ? F(!1, Mn(e)) : F(!1)), n;
1233
+ return n || (process.env.NODE_ENV !== "production" ? F(!1, Bn(e)) : F(!1)), n;
1234
1234
  }
1235
1235
  function Jn(e, n) {
1236
1236
  let {
@@ -1610,7 +1610,7 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1610
1610
  K.useEffect(() => (document.addEventListener("mouseup", W), window.addEventListener("scroll", G), () => {
1611
1611
  document.removeEventListener("mouseup", W), window.removeEventListener("scroll", G);
1612
1612
  }));
1613
- const M = () => {
1613
+ const B = () => {
1614
1614
  J(!I);
1615
1615
  }, W = (v) => {
1616
1616
  H.current && !H.current.contains(v.target) && J(!1);
@@ -1691,7 +1691,7 @@ const Lt = /* @__PURE__ */ sn(Kn), or = z(
1691
1691
  role: "button",
1692
1692
  "aria-controls": "pktUserDropdown",
1693
1693
  "aria-expanded": I,
1694
- onClick: M,
1694
+ onClick: B,
1695
1695
  children: [
1696
1696
  /* @__PURE__ */ l(y, { name: "user", className: "pkt-btn__icon" }),
1697
1697
  /* @__PURE__ */ l("span", { className: "pkt-header__user-fullname", children: (s == null ? void 0 : s.name) || (a == null ? void 0 : a.name) }),
@@ -1803,11 +1803,11 @@ const qe = z(
1803
1803
  }, O) => {
1804
1804
  const [b, $] = ue(!1), A = () => {
1805
1805
  $(!b);
1806
- }, V = () => i ? "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" : "", I = i ? s : c ? f : "", J = _ ? "pkt-inputwrapper--disabled" : "", H = w ? "pkt-inputwrapper--inline" : "", M = d ? "pkt-inputwrapper--error" : "", W = !!o && o !== "", G = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', v = W ? "div" : "label", j = W ? "h2" : "span", B = C || (r ? `${e}-helptext` : void 0);
1806
+ }, V = () => i ? "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" : "", I = i ? s : c ? f : "", J = _ ? "pkt-inputwrapper--disabled" : "", H = w ? "pkt-inputwrapper--inline" : "", B = d ? "pkt-inputwrapper--error" : "", W = !!o && o !== "", G = a || 'Les mer <span class="pkt-sr-only">om inputfeltet</span>', v = W ? "div" : "label", j = W ? "h2" : "span", M = C || (r ? `${e}-helptext` : void 0);
1807
1807
  return /* @__PURE__ */ m(
1808
1808
  "div",
1809
1809
  {
1810
- className: ["pkt-inputwrapper", T, J, H, M].join(
1810
+ className: ["pkt-inputwrapper", T, J, H, B].join(
1811
1811
  " "
1812
1812
  ),
1813
1813
  ref: O,
@@ -1825,7 +1825,14 @@ const qe = z(
1825
1825
  ] })
1826
1826
  }
1827
1827
  ),
1828
- r && /* @__PURE__ */ l("div", { className: "pkt-inputwrapper__helptext", id: `${e}-helptext`, children: r }),
1828
+ r && /* @__PURE__ */ l(
1829
+ "div",
1830
+ {
1831
+ className: "pkt-inputwrapper__helptext",
1832
+ id: `${e}-helptext`,
1833
+ dangerouslySetInnerHTML: { __html: r }
1834
+ }
1835
+ ),
1829
1836
  W && o !== "" && /* @__PURE__ */ m("div", { children: [
1830
1837
  /* @__PURE__ */ l(
1831
1838
  ye,
@@ -1846,7 +1853,7 @@ const qe = z(
1846
1853
  children: /* @__PURE__ */ l("span", { dangerouslySetInnerHTML: { __html: o } })
1847
1854
  }
1848
1855
  ),
1849
- /* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": B, children: n })
1856
+ /* @__PURE__ */ l("label", { htmlFor: e, className: "pkt-sr-only", "aria-describedby": M, children: n })
1850
1857
  ] }),
1851
1858
  /* @__PURE__ */ l(X, { children: R })
1852
1859
  ] }) : /* @__PURE__ */ m(X, { children: [
@@ -1855,7 +1862,7 @@ const qe = z(
1855
1862
  {
1856
1863
  htmlFor: e,
1857
1864
  className: "pkt-sr-only",
1858
- "aria-describedby": B,
1865
+ "aria-describedby": M,
1859
1866
  id: `${e}-label`,
1860
1867
  children: n
1861
1868
  }
@@ -2030,16 +2037,16 @@ const pr = z(
2030
2037
  useWrapper: I,
2031
2038
  onChange: J,
2032
2039
  ...H
2033
- }, M) => {
2034
- const W = [i, "pkt-textinput", "pkt-textarea"].join(" "), G = r || `${e}-label`, v = on(null), [j, B] = ue(0), te = (Z) => {
2040
+ }, B) => {
2041
+ const W = [i, "pkt-textinput", "pkt-textarea"].join(" "), G = r || `${e}-label`, v = on(null), [j, M] = ue(0), te = (Z) => {
2035
2042
  var Q, oe;
2036
- if (o && B(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), J)
2043
+ if (o && M(((oe = (Q = Z.currentTarget) == null ? void 0 : Q.value) == null ? void 0 : oe.length) || 0), J)
2037
2044
  return J(Z);
2038
2045
  };
2039
2046
  return yt(() => {
2040
2047
  var Z, Q;
2041
- typeof M == "function" && M(v.current), o && B(((Q = (Z = v == null ? void 0 : v.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2042
- }, [M]), /* @__PURE__ */ m(
2048
+ typeof B == "function" && B(v.current), o && M(((Q = (Z = v == null ? void 0 : v.current) == null ? void 0 : Z.value) == null ? void 0 : Q.length) || 0);
2049
+ }, [B]), /* @__PURE__ */ m(
2043
2050
  qe,
2044
2051
  {
2045
2052
  ariaDescribedby: n,
@@ -2112,7 +2119,7 @@ const pr = z(
2112
2119
  suffix: I,
2113
2120
  type: J = "text",
2114
2121
  useWrapper: H = !0,
2115
- value: M,
2122
+ value: B,
2116
2123
  ...W
2117
2124
  }, G) => {
2118
2125
  const v = [a, "pkt-textinput"].join(" "), j = r || `${e}-label`;
@@ -2147,7 +2154,7 @@ const pr = z(
2147
2154
  id: e,
2148
2155
  placeholder: A,
2149
2156
  autoComplete: o,
2150
- value: M,
2157
+ value: B,
2151
2158
  disabled: i,
2152
2159
  "aria-required": b,
2153
2160
  "aria-invalid": c,
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Xe;function Vt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var e=E,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),S=Symbol.iterator,R="@@iterator";function D(t){if(t===null||typeof t!="object")return null;var u=S&&t[S]||t[R];return typeof u=="function"?u:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){{for(var u=arguments.length,d=new Array(u>1?u-1:0),k=1;k<u;k++)d[k-1]=arguments[k];A("error",t,d)}}function A(t,u,d){{var k=j.ReactDebugCurrentFrame,C=k.getStackAddendum();C!==""&&(u+="%s",d=d.concat([C]));var O=d.map(function(w){return String(w)});O.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,O)}}var W=!1,B=!1,U=!1,z=!1,G=!1,J;J=Symbol.for("react.module.reference");function M(t){return!!(typeof t=="string"||typeof t=="function"||t===l||t===i||G||t===a||t===p||t===h||z||t===P||W||B||U||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===_||t.$$typeof===s||t.$$typeof===c||t.$$typeof===f||t.$$typeof===J||t.getModuleId!==void 0))}function q(t,u,d){var k=t.displayName;if(k)return k;var C=u.displayName||u.name||"";return C!==""?d+"("+C+")":d}function v(t){return t.displayName||"Context"}function L(t){if(t==null)return null;if(typeof t.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case l:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var u=t;return v(u)+".Consumer";case s:var d=t;return v(d._context)+".Provider";case f:return q(t,t.render,"ForwardRef");case _:var k=t.displayName||null;return k!==null?k:L(t.type)||"Memo";case x:{var C=t,O=C._payload,w=C._init;try{return L(w(O))}catch{return null}}}return null}var Y=Object.assign,ne=0,Q,ee,ue,bt,gt,Nt,yt;function Et(){}Et.__reactDisabledLog=!0;function Wn(){{if(ne===0){Q=console.log,ee=console.info,ue=console.warn,bt=console.error,gt=console.group,Nt=console.groupCollapsed,yt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ne++}}function Vn(){{if(ne--,ne===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},t,{value:Q}),info:Y({},t,{value:ee}),warn:Y({},t,{value:ue}),error:Y({},t,{value:bt}),group:Y({},t,{value:gt}),groupCollapsed:Y({},t,{value:Nt}),groupEnd:Y({},t,{value:yt})})}ne<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Be=j.ReactCurrentDispatcher,Me;function ye(t,u,d){{if(Me===void 0)try{throw Error()}catch(C){var k=C.stack.trim().match(/\n( *(at )?)/);Me=k&&k[1]||""}return`
18
- `+Me+t}}var Ye=!1,Ee;{var Bn=typeof WeakMap=="function"?WeakMap:Map;Ee=new Bn}function wt(t,u){if(!t||Ye)return"";{var d=Ee.get(t);if(d!==void 0)return d}var k;Ye=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Be.current,Be.current=null,Wn();try{if(u){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(X){k=X}Reflect.construct(t,[],w)}else{try{w.call()}catch(X){k=X}t.call(w.prototype)}}else{try{throw Error()}catch(X){k=X}t()}}catch(X){if(X&&k&&typeof X.stack=="string"){for(var y=X.stack.split(`
17
+ */var Xe;function Vt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var e=E,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),S=Symbol.iterator,R="@@iterator";function D(t){if(t===null||typeof t!="object")return null;var u=S&&t[S]||t[R];return typeof u=="function"?u:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){{for(var u=arguments.length,d=new Array(u>1?u-1:0),k=1;k<u;k++)d[k-1]=arguments[k];A("error",t,d)}}function A(t,u,d){{var k=j.ReactDebugCurrentFrame,C=k.getStackAddendum();C!==""&&(u+="%s",d=d.concat([C]));var O=d.map(function(w){return String(w)});O.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,O)}}var W=!1,M=!1,U=!1,z=!1,G=!1,H;H=Symbol.for("react.module.reference");function B(t){return!!(typeof t=="string"||typeof t=="function"||t===l||t===i||G||t===a||t===p||t===h||z||t===P||W||M||U||typeof t=="object"&&t!==null&&(t.$$typeof===x||t.$$typeof===_||t.$$typeof===s||t.$$typeof===c||t.$$typeof===f||t.$$typeof===H||t.getModuleId!==void 0))}function q(t,u,d){var k=t.displayName;if(k)return k;var C=u.displayName||u.name||"";return C!==""?d+"("+C+")":d}function v(t){return t.displayName||"Context"}function L(t){if(t==null)return null;if(typeof t.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case l:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var u=t;return v(u)+".Consumer";case s:var d=t;return v(d._context)+".Provider";case f:return q(t,t.render,"ForwardRef");case _:var k=t.displayName||null;return k!==null?k:L(t.type)||"Memo";case x:{var C=t,O=C._payload,w=C._init;try{return L(w(O))}catch{return null}}}return null}var Y=Object.assign,ne=0,Q,ee,ue,bt,gt,Nt,yt;function Et(){}Et.__reactDisabledLog=!0;function Wn(){{if(ne===0){Q=console.log,ee=console.info,ue=console.warn,bt=console.error,gt=console.group,Nt=console.groupCollapsed,yt=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}ne++}}function Vn(){{if(ne--,ne===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},t,{value:Q}),info:Y({},t,{value:ee}),warn:Y({},t,{value:ue}),error:Y({},t,{value:bt}),group:Y({},t,{value:gt}),groupCollapsed:Y({},t,{value:Nt}),groupEnd:Y({},t,{value:yt})})}ne<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Me=j.ReactCurrentDispatcher,Be;function ye(t,u,d){{if(Be===void 0)try{throw Error()}catch(C){var k=C.stack.trim().match(/\n( *(at )?)/);Be=k&&k[1]||""}return`
18
+ `+Be+t}}var Ye=!1,Ee;{var Mn=typeof WeakMap=="function"?WeakMap:Map;Ee=new Mn}function wt(t,u){if(!t||Ye)return"";{var d=Ee.get(t);if(d!==void 0)return d}var k;Ye=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Me.current,Me.current=null,Wn();try{if(u){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(X){k=X}Reflect.construct(t,[],w)}else{try{w.call()}catch(X){k=X}t.call(w.prototype)}}else{try{throw Error()}catch(X){k=X}t()}}catch(X){if(X&&k&&typeof X.stack=="string"){for(var y=X.stack.split(`
19
19
  `),V=k.stack.split(`
20
- `),$=y.length-1,F=V.length-1;$>=1&&F>=0&&y[$]!==V[F];)F--;for(;$>=1&&F>=0;$--,F--)if(y[$]!==V[F]){if($!==1||F!==1)do if($--,F--,F<0||y[$]!==V[F]){var H=`
21
- `+y[$].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ee.set(t,H),H}while($>=1&&F>=0);break}}}finally{Ye=!1,Be.current=O,Vn(),Error.prepareStackTrace=C}var oe=t?t.displayName||t.name:"",It=oe?ye(oe):"";return typeof t=="function"&&Ee.set(t,It),It}function Mn(t,u,d){return wt(t,!1)}function Yn(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function we(t,u,d){if(t==null)return"";if(typeof t=="function")return wt(t,Yn(t));if(typeof t=="string")return ye(t);switch(t){case p:return ye("Suspense");case h:return ye("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Mn(t.render);case _:return we(t.type,u,d);case x:{var k=t,C=k._payload,O=k._init;try{return we(O(C),u,d)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,xt={},Ct=j.ReactDebugCurrentFrame;function Ce(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);Ct.setExtraStackFrame(d)}else Ct.setExtraStackFrame(null)}function Jn(t,u,d,k,C){{var O=Function.call.bind(xe);for(var w in t)if(O(t,w)){var y=void 0;try{if(typeof t[w]!="function"){var V=Error((k||"React class")+": "+d+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}y=t[w](u,w,k,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){y=$}y&&!(y instanceof Error)&&(Ce(C),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",d,w,typeof y),Ce(null)),y instanceof Error&&!(y.message in xt)&&(xt[y.message]=!0,Ce(C),b("Failed %s type: %s",d,y.message),Ce(null))}}}var Hn=Array.isArray;function Je(t){return Hn(t)}function zn(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,d=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function Gn(t){try{return Pt(t),!1}catch{return!0}}function Pt(t){return""+t}function Rt(t){if(Gn(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zn(t)),Pt(t)}var fe=j.ReactCurrentOwner,qn={key:!0,ref:!0,__self:!0,__source:!0},St,Ot,He;He={};function Kn(t){if(xe.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function Xn(t){if(xe.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function Zn(t,u){if(typeof t.ref=="string"&&fe.current&&u&&fe.current.stateNode!==u){var d=L(fe.current.type);He[d]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(fe.current.type),t.ref),He[d]=!0)}}function Qn(t,u){{var d=function(){St||(St=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}}function er(t,u){{var d=function(){Ot||(Ot=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};d.isReactWarning=!0,Object.defineProperty(t,"ref",{get:d,configurable:!0})}}var tr=function(t,u,d,k,C,O,w){var y={$$typeof:n,type:t,key:u,ref:d,props:w,_owner:O};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function nr(t,u,d,k,C){{var O,w={},y=null,V=null;d!==void 0&&(Rt(d),y=""+d),Xn(u)&&(Rt(u.key),y=""+u.key),Kn(u)&&(V=u.ref,Zn(u,C));for(O in u)xe.call(u,O)&&!qn.hasOwnProperty(O)&&(w[O]=u[O]);if(t&&t.defaultProps){var $=t.defaultProps;for(O in $)w[O]===void 0&&(w[O]=$[O])}if(y||V){var F=typeof t=="function"?t.displayName||t.name||"Unknown":t;y&&Qn(w,F),V&&er(w,F)}return tr(t,y,V,C,k,fe.current,w)}}var ze=j.ReactCurrentOwner,Tt=j.ReactDebugCurrentFrame;function ae(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);Tt.setExtraStackFrame(d)}else Tt.setExtraStackFrame(null)}var Ge;Ge=!1;function qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function jt(){{if(ze.current){var t=L(ze.current.type);if(t)return`
20
+ `),$=y.length-1,I=V.length-1;$>=1&&I>=0&&y[$]!==V[I];)I--;for(;$>=1&&I>=0;$--,I--)if(y[$]!==V[I]){if($!==1||I!==1)do if($--,I--,I<0||y[$]!==V[I]){var J=`
21
+ `+y[$].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ee.set(t,J),J}while($>=1&&I>=0);break}}}finally{Ye=!1,Me.current=O,Vn(),Error.prepareStackTrace=C}var oe=t?t.displayName||t.name:"",Ft=oe?ye(oe):"";return typeof t=="function"&&Ee.set(t,Ft),Ft}function Bn(t,u,d){return wt(t,!1)}function Yn(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function we(t,u,d){if(t==null)return"";if(typeof t=="function")return wt(t,Yn(t));if(typeof t=="string")return ye(t);switch(t){case p:return ye("Suspense");case h:return ye("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Bn(t.render);case _:return we(t.type,u,d);case x:{var k=t,C=k._payload,O=k._init;try{return we(O(C),u,d)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,xt={},Ct=j.ReactDebugCurrentFrame;function Ce(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);Ct.setExtraStackFrame(d)}else Ct.setExtraStackFrame(null)}function Hn(t,u,d,k,C){{var O=Function.call.bind(xe);for(var w in t)if(O(t,w)){var y=void 0;try{if(typeof t[w]!="function"){var V=Error((k||"React class")+": "+d+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}y=t[w](u,w,k,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){y=$}y&&!(y instanceof Error)&&(Ce(C),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",d,w,typeof y),Ce(null)),y instanceof Error&&!(y.message in xt)&&(xt[y.message]=!0,Ce(C),b("Failed %s type: %s",d,y.message),Ce(null))}}}var Jn=Array.isArray;function He(t){return Jn(t)}function zn(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,d=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function Gn(t){try{return Pt(t),!1}catch{return!0}}function Pt(t){return""+t}function Rt(t){if(Gn(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zn(t)),Pt(t)}var fe=j.ReactCurrentOwner,qn={key:!0,ref:!0,__self:!0,__source:!0},St,Ot,Je;Je={};function Kn(t){if(xe.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function Xn(t){if(xe.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function Zn(t,u){if(typeof t.ref=="string"&&fe.current&&u&&fe.current.stateNode!==u){var d=L(fe.current.type);Je[d]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L(fe.current.type),t.ref),Je[d]=!0)}}function Qn(t,u){{var d=function(){St||(St=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};d.isReactWarning=!0,Object.defineProperty(t,"key",{get:d,configurable:!0})}}function er(t,u){{var d=function(){Ot||(Ot=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",u))};d.isReactWarning=!0,Object.defineProperty(t,"ref",{get:d,configurable:!0})}}var tr=function(t,u,d,k,C,O,w){var y={$$typeof:n,type:t,key:u,ref:d,props:w,_owner:O};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function nr(t,u,d,k,C){{var O,w={},y=null,V=null;d!==void 0&&(Rt(d),y=""+d),Xn(u)&&(Rt(u.key),y=""+u.key),Kn(u)&&(V=u.ref,Zn(u,C));for(O in u)xe.call(u,O)&&!qn.hasOwnProperty(O)&&(w[O]=u[O]);if(t&&t.defaultProps){var $=t.defaultProps;for(O in $)w[O]===void 0&&(w[O]=$[O])}if(y||V){var I=typeof t=="function"?t.displayName||t.name||"Unknown":t;y&&Qn(w,I),V&&er(w,I)}return tr(t,y,V,C,k,fe.current,w)}}var ze=j.ReactCurrentOwner,Tt=j.ReactDebugCurrentFrame;function ae(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);Tt.setExtraStackFrame(d)}else Tt.setExtraStackFrame(null)}var Ge;Ge=!1;function qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function jt(){{if(ze.current){var t=L(ze.current.type);if(t)return`
22
22
 
23
23
  Check the render method of \``+t+"`."}return""}}function rr(t){{if(t!==void 0){var u=t.fileName.replace(/^.*[\\\/]/,""),d=t.lineNumber;return`
24
24
 
25
25
  Check your code at `+u+":"+d+"."}return""}}var Dt={};function ar(t){{var u=jt();if(!u){var d=typeof t=="string"?t:t.displayName||t.name;d&&(u=`
26
26
 
27
- Check the top-level render call using <`+d+">.")}return u}}function Lt(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var d=ar(u);if(Dt[d])return;Dt[d]=!0;var k="";t&&t._owner&&t._owner!==ze.current&&(k=" It was passed a child from "+L(t._owner.type)+"."),ae(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,k),ae(null)}}function $t(t,u){{if(typeof t!="object")return;if(Je(t))for(var d=0;d<t.length;d++){var k=t[d];qe(k)&&Lt(k,u)}else if(qe(t))t._store&&(t._store.validated=!0);else if(t){var C=D(t);if(typeof C=="function"&&C!==t.entries)for(var O=C.call(t),w;!(w=O.next()).done;)qe(w.value)&&Lt(w.value,u)}}}function or(t){{var u=t.type;if(u==null||typeof u=="string")return;var d;if(typeof u=="function")d=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===f||u.$$typeof===_))d=u.propTypes;else return;if(d){var k=L(u);Jn(d,t.props,"prop",k,t)}else if(u.PropTypes!==void 0&&!Ge){Ge=!0;var C=L(u);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(t){{for(var u=Object.keys(t.props),d=0;d<u.length;d++){var k=u[d];if(k!=="children"&&k!=="key"){ae(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),ae(null);break}}t.ref!==null&&(ae(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}function Ft(t,u,d,k,C,O){{var w=M(t);if(!w){var y="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var V=rr(C);V?y+=V:y+=jt();var $;t===null?$="null":Je(t)?$="array":t!==void 0&&t.$$typeof===n?($="<"+(L(t.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):$=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,y)}var F=nr(t,u,d,C,O);if(F==null)return F;if(w){var H=u.children;if(H!==void 0)if(k)if(Je(H)){for(var oe=0;oe<H.length;oe++)$t(H[oe],t);Object.freeze&&Object.freeze(H)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $t(H,t)}return t===l?lr(F):or(F),F}}function ir(t,u,d){return Ft(t,u,d,!0)}function sr(t,u,d){return Ft(t,u,d,!1)}var cr=sr,ur=ir;ie.Fragment=l,ie.jsx=cr,ie.jsxs=ur}()),ie}process.env.NODE_ENV==="production"?Pe.exports=Wt():Pe.exports=Vt();var Re=Pe.exports;const K=Re.Fragment,o=Re.jsx,m=Re.jsxs,Se={},Bt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Mt(e,n){return!Se[e]&&typeof window.fetch=="function"&&(Se[e]=window.fetch(n+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+n+e+".svg"),Bt)).then(r=>r)),Promise.resolve(Se[e])}const N=({name:e,path:n,className:r="",...l})=>{const a="https://punkt-cdn.oslo.kommune.no/8.0/icons/",[i,s]=E.useState(null);return E.useEffect(()=>{if(!e)return;Mt(e,n||a).then(f=>s(f))},[e,n,a]),i?o("span",{className:`pkt-icon ${r}`,dangerouslySetInnerHTML:{__html:i},...l}):null},Ze=E.forwardRef(({children:e,className:n,skin:r="info",closeAlert:l=!1,onClose:a,title:i,date:s,ariaLive:c="polite",slim:f=!1,...p},h)=>{const _=[n,"pkt-alert",r&&`pkt-alert--${r}`,f&&"pkt-alert--slim"].filter(Boolean).join(" "),[x,P]=E.useState(!0),S=()=>{P(!1),a&&a()};return x?m("div",{...p,className:_,"aria-live":c,ref:h,children:[o(N,{className:"pkt-alert__icon",name:r==="info"?"alert-information":`alert-${r}`}),l&&o("div",{className:"pkt-alert__close",children:o("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:S,children:o(N,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),i&&o("div",{className:"pkt-alert__title",children:i}),o("div",{className:"pkt-alert__text",children:e}),s&&m("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",s]})]}):null}),Yt=E.forwardRef(({href:e,text:n,onClick:r,className:l,...a},i)=>{const s=[l,"pkt-back-link"].filter(Boolean).join(" ");return o("nav",{ref:i,className:s,"aria-label":"Gå tilbake et steg",children:m("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:()=>{r&&r()},...a,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),o("span",{className:"pkt-back-link__text",children:n||"Forsiden"})]})})});/**
27
+ Check the top-level render call using <`+d+">.")}return u}}function Lt(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var d=ar(u);if(Dt[d])return;Dt[d]=!0;var k="";t&&t._owner&&t._owner!==ze.current&&(k=" It was passed a child from "+L(t._owner.type)+"."),ae(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,k),ae(null)}}function $t(t,u){{if(typeof t!="object")return;if(He(t))for(var d=0;d<t.length;d++){var k=t[d];qe(k)&&Lt(k,u)}else if(qe(t))t._store&&(t._store.validated=!0);else if(t){var C=D(t);if(typeof C=="function"&&C!==t.entries)for(var O=C.call(t),w;!(w=O.next()).done;)qe(w.value)&&Lt(w.value,u)}}}function or(t){{var u=t.type;if(u==null||typeof u=="string")return;var d;if(typeof u=="function")d=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===f||u.$$typeof===_))d=u.propTypes;else return;if(d){var k=L(u);Hn(d,t.props,"prop",k,t)}else if(u.PropTypes!==void 0&&!Ge){Ge=!0;var C=L(u);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(t){{for(var u=Object.keys(t.props),d=0;d<u.length;d++){var k=u[d];if(k!=="children"&&k!=="key"){ae(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),ae(null);break}}t.ref!==null&&(ae(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}function It(t,u,d,k,C,O){{var w=B(t);if(!w){var y="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var V=rr(C);V?y+=V:y+=jt();var $;t===null?$="null":He(t)?$="array":t!==void 0&&t.$$typeof===n?($="<"+(L(t.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):$=typeof t,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,y)}var I=nr(t,u,d,C,O);if(I==null)return I;if(w){var J=u.children;if(J!==void 0)if(k)if(He(J)){for(var oe=0;oe<J.length;oe++)$t(J[oe],t);Object.freeze&&Object.freeze(J)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $t(J,t)}return t===l?lr(I):or(I),I}}function ir(t,u,d){return It(t,u,d,!0)}function sr(t,u,d){return It(t,u,d,!1)}var cr=sr,ur=ir;ie.Fragment=l,ie.jsx=cr,ie.jsxs=ur}()),ie}process.env.NODE_ENV==="production"?Pe.exports=Wt():Pe.exports=Vt();var Re=Pe.exports;const K=Re.Fragment,o=Re.jsx,m=Re.jsxs,Se={},Mt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Bt(e,n){return!Se[e]&&typeof window.fetch=="function"&&(Se[e]=window.fetch(n+e+".svg").then(r=>r.ok?r.text():(console.error("Missing icon: "+n+e+".svg"),Mt)).then(r=>r)),Promise.resolve(Se[e])}const N=({name:e,path:n,className:r="",...l})=>{const a="https://punkt-cdn.oslo.kommune.no/8.0/icons/",[i,s]=E.useState(null);return E.useEffect(()=>{if(!e)return;Bt(e,n||a).then(f=>s(f))},[e,n,a]),i?o("span",{className:`pkt-icon ${r}`,dangerouslySetInnerHTML:{__html:i},...l}):null},Ze=E.forwardRef(({children:e,className:n,skin:r="info",closeAlert:l=!1,onClose:a,title:i,date:s,ariaLive:c="polite",slim:f=!1,...p},h)=>{const _=[n,"pkt-alert",r&&`pkt-alert--${r}`,f&&"pkt-alert--slim"].filter(Boolean).join(" "),[x,P]=E.useState(!0),S=()=>{P(!1),a&&a()};return x?m("div",{...p,className:_,"aria-live":c,ref:h,children:[o(N,{className:"pkt-alert__icon",name:r==="info"?"alert-information":`alert-${r}`}),l&&o("div",{className:"pkt-alert__close",children:o("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:S,children:o(N,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),i&&o("div",{className:"pkt-alert__title",children:i}),o("div",{className:"pkt-alert__text",children:e}),s&&m("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",s]})]}):null}),Yt=E.forwardRef(({href:e,text:n,onClick:r,className:l,...a},i)=>{const s=[l,"pkt-back-link"].filter(Boolean).join(" ");return o("nav",{ref:i,className:s,"aria-label":"Gå tilbake et steg",children:m("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:()=>{r&&r()},...a,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),o("span",{className:"pkt-back-link__text",children:n||"Forsiden"})]})})});/**
28
28
  * @remix-run/router v1.7.1
29
29
  *
30
30
  * Copyright (c) Remix Software Inc.
@@ -33,7 +33,7 @@ Check the top-level render call using <`+d+">.")}return u}}function Lt(t,u){{if(
33
33
  * LICENSE.md file in the root directory of this source tree.
34
34
  *
35
35
  * @license MIT
36
- */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Oe.apply(this,arguments)}var Qe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qe||(Qe={}));function I(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function de(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Te(e){let{pathname:n="/",search:r="",hash:l=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function et(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let l=e.indexOf("?");l>=0&&(n.search=e.substr(l),e=e.substr(0,l)),e&&(n.pathname=e)}return n}var tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tt||(tt={}));function je(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,l=e.charAt(r);return l&&l!=="/"?null:e.slice(r)||"/"}function Jt(e,n){n===void 0&&(n="/");let{pathname:r,search:l="",hash:a=""}=typeof e=="string"?et(e):e;return{pathname:r?r.startsWith("/")?r:Ht(r,n):n,search:zt(l),hash:Gt(a)}}function Ht(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function De(e,n,r,l){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(l)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nt(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function rt(e,n,r,l){l===void 0&&(l=!1);let a;typeof e=="string"?a=et(e):(a=Oe({},e),I(!a.pathname||!a.pathname.includes("?"),De("?","pathname","search",a)),I(!a.pathname||!a.pathname.includes("#"),De("#","pathname","hash",a)),I(!a.search||!a.search.includes("#"),De("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,c;if(l||s==null)c=r;else{let _=n.length-1;if(s.startsWith("..")){let x=s.split("/");for(;x[0]==="..";)x.shift(),_-=1;a.pathname=x.join("/")}c=_>=0?n[_]:"/"}let f=Jt(a,c),p=s&&s!=="/"&&s.endsWith("/"),h=(i||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}const Le=e=>e.join("/").replace(/\/\/+/g,"/"),zt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,at=["post","put","patch","delete"];new Set(at);const qt=["get",...at];new Set(qt);/**
36
+ */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},Oe.apply(this,arguments)}var Qe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qe||(Qe={}));function F(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function de(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Te(e){let{pathname:n="/",search:r="",hash:l=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function et(e){let n={};if(e){let r=e.indexOf("#");r>=0&&(n.hash=e.substr(r),e=e.substr(0,r));let l=e.indexOf("?");l>=0&&(n.search=e.substr(l),e=e.substr(0,l)),e&&(n.pathname=e)}return n}var tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tt||(tt={}));function je(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let r=n.endsWith("/")?n.length-1:n.length,l=e.charAt(r);return l&&l!=="/"?null:e.slice(r)||"/"}function Ht(e,n){n===void 0&&(n="/");let{pathname:r,search:l="",hash:a=""}=typeof e=="string"?et(e):e;return{pathname:r?r.startsWith("/")?r:Jt(r,n):n,search:zt(l),hash:Gt(a)}}function Jt(e,n){let r=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function De(e,n,r,l){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(l)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nt(e){return e.filter((n,r)=>r===0||n.route.path&&n.route.path.length>0)}function rt(e,n,r,l){l===void 0&&(l=!1);let a;typeof e=="string"?a=et(e):(a=Oe({},e),F(!a.pathname||!a.pathname.includes("?"),De("?","pathname","search",a)),F(!a.pathname||!a.pathname.includes("#"),De("#","pathname","hash",a)),F(!a.search||!a.search.includes("#"),De("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,c;if(l||s==null)c=r;else{let _=n.length-1;if(s.startsWith("..")){let x=s.split("/");for(;x[0]==="..";)x.shift(),_-=1;a.pathname=x.join("/")}c=_>=0?n[_]:"/"}let f=Ht(a,c),p=s&&s!=="/"&&s.endsWith("/"),h=(i||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(p||h)&&(f.pathname+="/"),f}const Le=e=>e.join("/").replace(/\/\/+/g,"/"),zt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,at=["post","put","patch","delete"];new Set(at);const qt=["get",...at];new Set(qt);/**
37
37
  * React Router v6.14.1
38
38
  *
39
39
  * Copyright (c) Remix Software Inc.
@@ -42,7 +42,7 @@ Check the top-level render call using <`+d+">.")}return u}}function Lt(t,u){{if(
42
42
  * LICENSE.md file in the root directory of this source tree.
43
43
  *
44
44
  * @license MIT
45
- */function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},$e.apply(this,arguments)}const pe=g.createContext(null);process.env.NODE_ENV!=="production"&&(pe.displayName="DataRouter");const ot=g.createContext(null);process.env.NODE_ENV!=="production"&&(ot.displayName="DataRouterState");const Kt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Kt.displayName="Await");const Z=g.createContext(null);process.env.NODE_ENV!=="production"&&(Z.displayName="Navigation");const Fe=g.createContext(null);process.env.NODE_ENV!=="production"&&(Fe.displayName="Location");const re=g.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(re.displayName="Route");const Xt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Xt.displayName="RouteError");function Zt(e,n){let{relative:r}=n===void 0?{}:n;Ie()||(process.env.NODE_ENV!=="production"?I(!1,"useHref() may be used only in the context of a <Router> component."):I(!1));let{basename:l,navigator:a}=g.useContext(Z),{hash:i,pathname:s,search:c}=me(e,{relative:r}),f=s;return l!=="/"&&(f=s==="/"?l:Le([l,s])),a.createHref({pathname:f,search:c,hash:i})}function Ie(){return g.useContext(Fe)!=null}function se(){return Ie()||(process.env.NODE_ENV!=="production"?I(!1,"useLocation() may be used only in the context of a <Router> component."):I(!1)),g.useContext(Fe).location}const lt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function it(e){g.useContext(Z).static||g.useLayoutEffect(e)}function Qt(){let{isDataRoute:e}=g.useContext(re);return e?an():en()}function en(){Ie()||(process.env.NODE_ENV!=="production"?I(!1,"useNavigate() may be used only in the context of a <Router> component."):I(!1));let e=g.useContext(pe),{basename:n,navigator:r}=g.useContext(Z),{matches:l}=g.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(l).map(f=>f.pathnameBase)),s=g.useRef(!1);return it(()=>{s.current=!0}),g.useCallback(function(f,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&de(s.current,lt),!s.current)return;if(typeof f=="number"){r.go(f);return}let h=rt(f,JSON.parse(i),a,p.relative==="path");e==null&&n!=="/"&&(h.pathname=h.pathname==="/"?n:Le([n,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[n,r,i,a,e])}function me(e,n){let{relative:r}=n===void 0?{}:n,{matches:l}=g.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(l).map(s=>s.pathnameBase));return g.useMemo(()=>rt(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}var Ae;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Ae||(Ae={}));var he;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(he||(he={}));function st(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function tn(e){let n=g.useContext(pe);return n||(process.env.NODE_ENV!=="production"?I(!1,st(e)):I(!1)),n}function nn(e){let n=g.useContext(re);return n||(process.env.NODE_ENV!=="production"?I(!1,st(e)):I(!1)),n}function ct(e){let n=nn(e),r=n.matches[n.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?I(!1,e+' can only be used on routes that contain a unique "id"'):I(!1)),r.route.id}function rn(){return ct(he.UseRouteId)}function an(){let{router:e}=tn(Ae.UseNavigateStable),n=ct(he.UseNavigateStable),r=g.useRef(!1);return it(()=>{r.current=!0}),g.useCallback(function(a,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&de(r.current,lt),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,$e({fromRouteId:n},i)))},[e,n])}var ut;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ut||(ut={})),new Promise(()=>{});/**
45
+ */function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},$e.apply(this,arguments)}const pe=g.createContext(null);process.env.NODE_ENV!=="production"&&(pe.displayName="DataRouter");const ot=g.createContext(null);process.env.NODE_ENV!=="production"&&(ot.displayName="DataRouterState");const Kt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Kt.displayName="Await");const Z=g.createContext(null);process.env.NODE_ENV!=="production"&&(Z.displayName="Navigation");const Ie=g.createContext(null);process.env.NODE_ENV!=="production"&&(Ie.displayName="Location");const re=g.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(re.displayName="Route");const Xt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Xt.displayName="RouteError");function Zt(e,n){let{relative:r}=n===void 0?{}:n;Fe()||(process.env.NODE_ENV!=="production"?F(!1,"useHref() may be used only in the context of a <Router> component."):F(!1));let{basename:l,navigator:a}=g.useContext(Z),{hash:i,pathname:s,search:c}=me(e,{relative:r}),f=s;return l!=="/"&&(f=s==="/"?l:Le([l,s])),a.createHref({pathname:f,search:c,hash:i})}function Fe(){return g.useContext(Ie)!=null}function se(){return Fe()||(process.env.NODE_ENV!=="production"?F(!1,"useLocation() may be used only in the context of a <Router> component."):F(!1)),g.useContext(Ie).location}const lt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function it(e){g.useContext(Z).static||g.useLayoutEffect(e)}function Qt(){let{isDataRoute:e}=g.useContext(re);return e?an():en()}function en(){Fe()||(process.env.NODE_ENV!=="production"?F(!1,"useNavigate() may be used only in the context of a <Router> component."):F(!1));let e=g.useContext(pe),{basename:n,navigator:r}=g.useContext(Z),{matches:l}=g.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(l).map(f=>f.pathnameBase)),s=g.useRef(!1);return it(()=>{s.current=!0}),g.useCallback(function(f,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&de(s.current,lt),!s.current)return;if(typeof f=="number"){r.go(f);return}let h=rt(f,JSON.parse(i),a,p.relative==="path");e==null&&n!=="/"&&(h.pathname=h.pathname==="/"?n:Le([n,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[n,r,i,a,e])}function me(e,n){let{relative:r}=n===void 0?{}:n,{matches:l}=g.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(l).map(s=>s.pathnameBase));return g.useMemo(()=>rt(e,JSON.parse(i),a,r==="path"),[e,i,a,r])}var Ae;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Ae||(Ae={}));var he;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(he||(he={}));function st(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function tn(e){let n=g.useContext(pe);return n||(process.env.NODE_ENV!=="production"?F(!1,st(e)):F(!1)),n}function nn(e){let n=g.useContext(re);return n||(process.env.NODE_ENV!=="production"?F(!1,st(e)):F(!1)),n}function ct(e){let n=nn(e),r=n.matches[n.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?F(!1,e+' can only be used on routes that contain a unique "id"'):F(!1)),r.route.id}function rn(){return ct(he.UseRouteId)}function an(){let{router:e}=tn(Ae.UseNavigateStable),n=ct(he.UseNavigateStable),r=g.useRef(!1);return it(()=>{r.current=!0}),g.useCallback(function(a,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&de(r.current,lt),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,$e({fromRouteId:n},i)))},[e,n])}var ut;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(ut||(ut={})),new Promise(()=>{});/**
46
46
  * React Router DOM v6.14.1
47
47
  *
48
48
  * Copyright (c) Remix Software Inc.
@@ -51,8 +51,8 @@ Check the top-level render call using <`+d+">.")}return u}}function Lt(t,u){{if(
51
51
  * LICENSE.md file in the root directory of this source tree.
52
52
  *
53
53
  * @license MIT
54
- */function te(){return te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},te.apply(this,arguments)}function Ue(e,n){if(e==null)return{};var r={},l=Object.keys(e),a,i;for(i=0;i<l.length;i++)a=l[i],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}const ke="get",ve="application/x-www-form-urlencoded";function _e(e){return e!=null&&typeof e.tagName=="string"}function on(e){return _e(e)&&e.tagName.toLowerCase()==="button"}function ln(e){return _e(e)&&e.tagName.toLowerCase()==="form"}function sn(e){return _e(e)&&e.tagName.toLowerCase()==="input"}function cn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function un(e,n){return e.button===0&&(!n||n==="_self")&&!cn(e)}let be=null;function fn(){if(be===null)try{new FormData(document.createElement("form"),0),be=!1}catch{be=!0}return be}const dn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!dn.has(e)?(process.env.NODE_ENV!=="production"&&de(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ve+'"')),null):e}function pn(e,n){let r,l,a,i,s;if(ln(e)){let c=e.getAttribute("action");l=c?je(c,n):null,r=e.getAttribute("method")||ke,a=We(e.getAttribute("enctype"))||ve,i=new FormData(e)}else if(on(e)||sn(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(l=f?je(f,n):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||ke,a=We(e.getAttribute("formenctype"))||We(c.getAttribute("enctype"))||ve,i=new FormData(c,e),!fn()){let{name:p,type:h,value:_}=e;if(h==="image"){let x=p?p+".":"";i.append(x+"x","0"),i.append(x+"y","0")}else p&&i.append(p,_)}}else{if(_e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ke,l=null,a=ve,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:l,method:r.toLowerCase(),encType:a,formData:i,body:s}}const mn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],hn=["aria-current","caseSensitive","className","end","style","to","children"],kn=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const vn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_n=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ge=g.forwardRef(function(n,r){let{onClick:l,relative:a,reloadDocument:i,replace:s,state:c,target:f,to:p,preventScrollReset:h}=n,_=Ue(n,mn),{basename:x}=g.useContext(Z),P,S=!1;if(typeof p=="string"&&_n.test(p)&&(P=p,vn))try{let b=new URL(window.location.href),A=p.startsWith("//")?new URL(b.protocol+p):new URL(p),W=je(A.pathname,x);A.origin===b.origin&&W!=null?p=W+A.search+A.hash:S=!0}catch{process.env.NODE_ENV!=="production"&&de(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let R=Zt(p,{relative:a}),D=En(p,{replace:s,state:c,target:f,preventScrollReset:h,relative:a});function j(b){l&&l(b),b.defaultPrevented||D(b)}return g.createElement("a",te({},_,{href:P||R,onClick:S||i?l:j,ref:r,target:f}))});process.env.NODE_ENV!=="production"&&(ge.displayName="Link");const bn=g.forwardRef(function(n,r){let{"aria-current":l="page",caseSensitive:a=!1,className:i="",end:s=!1,style:c,to:f,children:p}=n,h=Ue(n,hn),_=me(f,{relative:h.relative}),x=se(),P=g.useContext(ot),{navigator:S}=g.useContext(Z),R=S.encodeLocation?S.encodeLocation(_).pathname:_.pathname,D=x.pathname,j=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;a||(D=D.toLowerCase(),j=j?j.toLowerCase():null,R=R.toLowerCase());let b=D===R||!s&&D.startsWith(R)&&D.charAt(R.length)==="/",A=j!=null&&(j===R||!s&&j.startsWith(R)&&j.charAt(R.length)==="/"),W=b?l:void 0,B;typeof i=="function"?B=i({isActive:b,isPending:A}):B=[i,b?"active":null,A?"pending":null].filter(Boolean).join(" ");let U=typeof c=="function"?c({isActive:b,isPending:A}):c;return g.createElement(ge,te({},h,{"aria-current":W,className:B,ref:r,style:U,to:f}),typeof p=="function"?p({isActive:b,isPending:A}):p)});process.env.NODE_ENV!=="production"&&(bn.displayName="NavLink");const gn=g.forwardRef((e,n)=>{let r=xn();return g.createElement(ft,te({},e,{submit:r,ref:n}))});process.env.NODE_ENV!=="production"&&(gn.displayName="Form");const ft=g.forwardRef((e,n)=>{let{reloadDocument:r,replace:l,method:a=ke,action:i,onSubmit:s,submit:c,relative:f,preventScrollReset:p}=e,h=Ue(e,kn),_=a.toLowerCase()==="get"?"get":"post",x=Cn(i,{relative:f}),P=S=>{if(s&&s(S),S.defaultPrevented)return;S.preventDefault();let R=S.nativeEvent.submitter,D=(R==null?void 0:R.getAttribute("formmethod"))||a;c(R||S.currentTarget,{method:D,replace:l,relative:f,preventScrollReset:p})};return g.createElement("form",te({ref:n,method:_,action:x,onSubmit:r?s:P},h))});process.env.NODE_ENV!=="production"&&(ft.displayName="FormImpl"),process.env.NODE_ENV;var Ve;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ve||(Ve={}));var dt;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dt||(dt={}));function Nn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function yn(e){let n=g.useContext(pe);return n||(process.env.NODE_ENV!=="production"?I(!1,Nn(e)):I(!1)),n}function En(e,n){let{target:r,replace:l,state:a,preventScrollReset:i,relative:s}=n===void 0?{}:n,c=Qt(),f=se(),p=me(e,{relative:s});return g.useCallback(h=>{if(un(h,r)){h.preventDefault();let _=l!==void 0?l:Te(f)===Te(p);c(e,{replace:_,state:a,preventScrollReset:i,relative:s})}},[f,c,p,l,a,r,e,i,s])}function wn(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function xn(){let{router:e}=yn(Ve.UseSubmit),{basename:n}=g.useContext(Z),r=rn();return g.useCallback(function(l,a){a===void 0&&(a={}),wn();let{action:i,method:s,encType:c,formData:f,body:p}=pn(l,n);e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,fromRouteId:r})},[e,n,r])}function Cn(e,n){let{relative:r}=n===void 0?{}:n,{basename:l}=g.useContext(Z),a=g.useContext(re);a||(process.env.NODE_ENV!=="production"?I(!1,"useFormAction must be used inside a RouteContext"):I(!1));let[i]=a.matches.slice(-1),s=te({},me(e||".",{relative:r})),c=se();if(e==null&&(s.search=c.search,s.hash=c.hash,i.route.index)){let f=new URLSearchParams(s.search);f.delete("index"),s.search=f.toString()?"?"+f.toString():""}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(s.pathname=s.pathname==="/"?l:Le([l,s.pathname])),Te(s)}const Pn=E.forwardRef(({breadcrumbs:e,navigationType:n,className:r,...l},a)=>{const i=e.slice(0,4),s=i[i.length-2],c=[r,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m("nav",{ref:a,"aria-label":"brødsmulemeny",className:c,children:[o("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:i.map((f,p)=>o("li",{className:"pkt-breadcrumbs__item",children:p===i.length-1?o("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:o("span",{className:"pkt-breadcrumbs__text",children:f.text})}):n==="router"?m(ge,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[o(N,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),o("span",{className:"pkt-breadcrumbs__text",children:f.text})]}):m("a",{href:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[o(N,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),o("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${p}`))}),n==="router"?m(ge,{to:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),o("span",{className:"pkt-breadcrumbs__text",children:s.text})]}):m("a",{href:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),o("span",{className:"pkt-breadcrumbs__text",children:s.text})]})]})}),ce=E.forwardRef(({children:e,className:n,iconName:r="user",secondIconName:l="user",size:a="medium",skin:i="primary",type:s="button",variant:c="label-only",color:f,...p},h)=>{const _=[n,"pkt-btn",a&&`pkt-btn--${a}`,i&&`pkt-btn--${i}`,c&&`pkt-btn--${c}`,f&&`pkt-btn--${f}`].filter(Boolean).join(" ");return m("button",{...p,className:_,type:s,ref:h,children:[c!=="label-only"&&o(N,{className:"pkt-btn__icon",name:r}),o("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&o(N,{className:"pkt-btn__icon",name:l})]})});ce.displayName="PktButton";const Rn=({columnOne:e,columnTwo:n,socialLinks:r,className:l})=>{var i,s;const a=[l,"pkt-footer"].filter(Boolean).join(" ");return o("footer",{className:a,"data-mode":"dark",children:m("div",{className:"pkt-footer__container",children:[m("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:e.title}),m("ul",{className:"pkt-footer__list",children:[e.text&&o("li",{className:"pkt-footer__text",children:e.text}),(i=e.links)==null?void 0:i.map((c,f)=>o("li",{className:"pkt-footer__list-item",children:m("a",{className:`pkt-footer__link ${c.external?"pkt-link--external":""}`,href:c.href,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${f}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:n.title}),m("ul",{className:"pkt-footer__list",children:[n.text&&o("li",{className:"pkt-footer__text",children:n.text}),(s=n.links)==null?void 0:s.map((c,f)=>o("li",{className:"pkt-footer__list-item",children:m("a",{className:`pkt-footer__link ${c.external?"pkt-link--external":""}`,href:c.href,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${f}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m("ul",{className:"pkt-footer__list",children:[o("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),o("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),r&&m("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[o("div",{className:"pkt-footer__social-languages",children:r.filter(c=>c.language).map((c,f)=>o("div",{className:"pkt-footer__social-language",children:o("a",{href:c.href,"aria-label":`til ${c.language} versjon av nettsiden`,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:c.language})},`sociallinks-language-${f}`))}),o("div",{className:"pkt-footer__social-icons",children:r.filter(c=>c.iconName).map((c,f)=>o(E.Fragment,{children:o("a",{href:c.href,"aria-label":`til ${c.iconName}`,className:"pkt-footer__social-icon-link",target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:o(N,{className:"pkt-footer__social-icon",name:c.iconName})})},`sociallinks-${f}`))})]})]})})},Sn=({links:e=[],className:n})=>{const r=[n,"pkt-footer-simple"].filter(Boolean).join(" ");return o("footer",{className:r,"data-mode":"dark",children:o("div",{className:"pkt-footer-simple__container",children:m("ul",{className:"pkt-footer-simple__list",children:[e.map((l,a)=>o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},a)),o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var pt={exports:{}};/*!
54
+ */function te(){return te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},te.apply(this,arguments)}function Ue(e,n){if(e==null)return{};var r={},l=Object.keys(e),a,i;for(i=0;i<l.length;i++)a=l[i],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}const ke="get",ve="application/x-www-form-urlencoded";function _e(e){return e!=null&&typeof e.tagName=="string"}function on(e){return _e(e)&&e.tagName.toLowerCase()==="button"}function ln(e){return _e(e)&&e.tagName.toLowerCase()==="form"}function sn(e){return _e(e)&&e.tagName.toLowerCase()==="input"}function cn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function un(e,n){return e.button===0&&(!n||n==="_self")&&!cn(e)}let be=null;function fn(){if(be===null)try{new FormData(document.createElement("form"),0),be=!1}catch{be=!0}return be}const dn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!dn.has(e)?(process.env.NODE_ENV!=="production"&&de(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+ve+'"')),null):e}function pn(e,n){let r,l,a,i,s;if(ln(e)){let c=e.getAttribute("action");l=c?je(c,n):null,r=e.getAttribute("method")||ke,a=We(e.getAttribute("enctype"))||ve,i=new FormData(e)}else if(on(e)||sn(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(l=f?je(f,n):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||ke,a=We(e.getAttribute("formenctype"))||We(c.getAttribute("enctype"))||ve,i=new FormData(c,e),!fn()){let{name:p,type:h,value:_}=e;if(h==="image"){let x=p?p+".":"";i.append(x+"x","0"),i.append(x+"y","0")}else p&&i.append(p,_)}}else{if(_e(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ke,l=null,a=ve,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:l,method:r.toLowerCase(),encType:a,formData:i,body:s}}const mn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],hn=["aria-current","caseSensitive","className","end","style","to","children"],kn=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const vn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_n=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ge=g.forwardRef(function(n,r){let{onClick:l,relative:a,reloadDocument:i,replace:s,state:c,target:f,to:p,preventScrollReset:h}=n,_=Ue(n,mn),{basename:x}=g.useContext(Z),P,S=!1;if(typeof p=="string"&&_n.test(p)&&(P=p,vn))try{let b=new URL(window.location.href),A=p.startsWith("//")?new URL(b.protocol+p):new URL(p),W=je(A.pathname,x);A.origin===b.origin&&W!=null?p=W+A.search+A.hash:S=!0}catch{process.env.NODE_ENV!=="production"&&de(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let R=Zt(p,{relative:a}),D=En(p,{replace:s,state:c,target:f,preventScrollReset:h,relative:a});function j(b){l&&l(b),b.defaultPrevented||D(b)}return g.createElement("a",te({},_,{href:P||R,onClick:S||i?l:j,ref:r,target:f}))});process.env.NODE_ENV!=="production"&&(ge.displayName="Link");const bn=g.forwardRef(function(n,r){let{"aria-current":l="page",caseSensitive:a=!1,className:i="",end:s=!1,style:c,to:f,children:p}=n,h=Ue(n,hn),_=me(f,{relative:h.relative}),x=se(),P=g.useContext(ot),{navigator:S}=g.useContext(Z),R=S.encodeLocation?S.encodeLocation(_).pathname:_.pathname,D=x.pathname,j=P&&P.navigation&&P.navigation.location?P.navigation.location.pathname:null;a||(D=D.toLowerCase(),j=j?j.toLowerCase():null,R=R.toLowerCase());let b=D===R||!s&&D.startsWith(R)&&D.charAt(R.length)==="/",A=j!=null&&(j===R||!s&&j.startsWith(R)&&j.charAt(R.length)==="/"),W=b?l:void 0,M;typeof i=="function"?M=i({isActive:b,isPending:A}):M=[i,b?"active":null,A?"pending":null].filter(Boolean).join(" ");let U=typeof c=="function"?c({isActive:b,isPending:A}):c;return g.createElement(ge,te({},h,{"aria-current":W,className:M,ref:r,style:U,to:f}),typeof p=="function"?p({isActive:b,isPending:A}):p)});process.env.NODE_ENV!=="production"&&(bn.displayName="NavLink");const gn=g.forwardRef((e,n)=>{let r=xn();return g.createElement(ft,te({},e,{submit:r,ref:n}))});process.env.NODE_ENV!=="production"&&(gn.displayName="Form");const ft=g.forwardRef((e,n)=>{let{reloadDocument:r,replace:l,method:a=ke,action:i,onSubmit:s,submit:c,relative:f,preventScrollReset:p}=e,h=Ue(e,kn),_=a.toLowerCase()==="get"?"get":"post",x=Cn(i,{relative:f}),P=S=>{if(s&&s(S),S.defaultPrevented)return;S.preventDefault();let R=S.nativeEvent.submitter,D=(R==null?void 0:R.getAttribute("formmethod"))||a;c(R||S.currentTarget,{method:D,replace:l,relative:f,preventScrollReset:p})};return g.createElement("form",te({ref:n,method:_,action:x,onSubmit:r?s:P},h))});process.env.NODE_ENV!=="production"&&(ft.displayName="FormImpl"),process.env.NODE_ENV;var Ve;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ve||(Ve={}));var dt;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dt||(dt={}));function Nn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function yn(e){let n=g.useContext(pe);return n||(process.env.NODE_ENV!=="production"?F(!1,Nn(e)):F(!1)),n}function En(e,n){let{target:r,replace:l,state:a,preventScrollReset:i,relative:s}=n===void 0?{}:n,c=Qt(),f=se(),p=me(e,{relative:s});return g.useCallback(h=>{if(un(h,r)){h.preventDefault();let _=l!==void 0?l:Te(f)===Te(p);c(e,{replace:_,state:a,preventScrollReset:i,relative:s})}},[f,c,p,l,a,r,e,i,s])}function wn(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function xn(){let{router:e}=yn(Ve.UseSubmit),{basename:n}=g.useContext(Z),r=rn();return g.useCallback(function(l,a){a===void 0&&(a={}),wn();let{action:i,method:s,encType:c,formData:f,body:p}=pn(l,n);e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:f,body:p,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,fromRouteId:r})},[e,n,r])}function Cn(e,n){let{relative:r}=n===void 0?{}:n,{basename:l}=g.useContext(Z),a=g.useContext(re);a||(process.env.NODE_ENV!=="production"?F(!1,"useFormAction must be used inside a RouteContext"):F(!1));let[i]=a.matches.slice(-1),s=te({},me(e||".",{relative:r})),c=se();if(e==null&&(s.search=c.search,s.hash=c.hash,i.route.index)){let f=new URLSearchParams(s.search);f.delete("index"),s.search=f.toString()?"?"+f.toString():""}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(s.pathname=s.pathname==="/"?l:Le([l,s.pathname])),Te(s)}const Pn=E.forwardRef(({breadcrumbs:e,navigationType:n,className:r,...l},a)=>{const i=e.slice(0,4),s=i[i.length-2],c=[r,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m("nav",{ref:a,"aria-label":"brødsmulemeny",className:c,children:[o("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:i.map((f,p)=>o("li",{className:"pkt-breadcrumbs__item",children:p===i.length-1?o("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:o("span",{className:"pkt-breadcrumbs__text",children:f.text})}):n==="router"?m(ge,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[o(N,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),o("span",{className:"pkt-breadcrumbs__text",children:f.text})]}):m("a",{href:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[o(N,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),o("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${p}`))}),n==="router"?m(ge,{to:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),o("span",{className:"pkt-breadcrumbs__text",children:s.text})]}):m("a",{href:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[o(N,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),o("span",{className:"pkt-breadcrumbs__text",children:s.text})]})]})}),ce=E.forwardRef(({children:e,className:n,iconName:r="user",secondIconName:l="user",size:a="medium",skin:i="primary",type:s="button",variant:c="label-only",color:f,...p},h)=>{const _=[n,"pkt-btn",a&&`pkt-btn--${a}`,i&&`pkt-btn--${i}`,c&&`pkt-btn--${c}`,f&&`pkt-btn--${f}`].filter(Boolean).join(" ");return m("button",{...p,className:_,type:s,ref:h,children:[c!=="label-only"&&o(N,{className:"pkt-btn__icon",name:r}),o("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&o(N,{className:"pkt-btn__icon",name:l})]})});ce.displayName="PktButton";const Rn=({columnOne:e,columnTwo:n,socialLinks:r,className:l})=>{var i,s;const a=[l,"pkt-footer"].filter(Boolean).join(" ");return o("footer",{className:a,"data-mode":"dark",children:m("div",{className:"pkt-footer__container",children:[m("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:e.title}),m("ul",{className:"pkt-footer__list",children:[e.text&&o("li",{className:"pkt-footer__text",children:e.text}),(i=e.links)==null?void 0:i.map((c,f)=>o("li",{className:"pkt-footer__list-item",children:m("a",{className:`pkt-footer__link ${c.external?"pkt-link--external":""}`,href:c.href,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${f}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:n.title}),m("ul",{className:"pkt-footer__list",children:[n.text&&o("li",{className:"pkt-footer__text",children:n.text}),(s=n.links)==null?void 0:s.map((c,f)=>o("li",{className:"pkt-footer__list-item",children:m("a",{className:`pkt-footer__link ${c.external?"pkt-link--external":""}`,href:c.href,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${f}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[o("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m("ul",{className:"pkt-footer__list",children:[o("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),o("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[o(N,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),r&&m("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[o("div",{className:"pkt-footer__social-languages",children:r.filter(c=>c.language).map((c,f)=>o("div",{className:"pkt-footer__social-language",children:o("a",{href:c.href,"aria-label":`til ${c.language} versjon av nettsiden`,target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:c.language})},`sociallinks-language-${f}`))}),o("div",{className:"pkt-footer__social-icons",children:r.filter(c=>c.iconName).map((c,f)=>o(E.Fragment,{children:o("a",{href:c.href,"aria-label":`til ${c.iconName}`,className:"pkt-footer__social-icon-link",target:c.openInNewTab?"_blank":"_self",rel:c.openInNewTab?"noopener noreferrer":void 0,children:o(N,{className:"pkt-footer__social-icon",name:c.iconName})})},`sociallinks-${f}`))})]})]})})},Sn=({links:e=[],className:n})=>{const r=[n,"pkt-footer-simple"].filter(Boolean).join(" ");return o("footer",{className:r,"data-mode":"dark",children:o("div",{className:"pkt-footer-simple__container",children:m("ul",{className:"pkt-footer-simple__list",children:[e.map((l,a)=>o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},a)),o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),o("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[o(N,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var pt={exports:{}};/*!
55
55
  Copyright (c) 2018 Jed Watson.
56
56
  Licensed under the MIT License (MIT), see
57
57
  http://jedwatson.github.io/classnames
58
- */(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var l=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")l.push(i);else if(Array.isArray(i)){if(i.length){var c=r.apply(null,i);c&&l.push(c)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){l.push(i.toString());continue}for(var f in i)n.call(i,f)&&i[f]&&l.push(f)}}}return l.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(pt);var On=pt.exports;const mt=Ut(On),Tn=E.forwardRef(({logoLink:e="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:l=!0,user:a,userMenu:i,representing:s,userOptions:c,userMenuFooter:f,canChangeRepresentation:p=!0,showMenuButton:h=!1,showLogOutButton:_=!1,openMenu:x,logOut:P,changeRepresentation:S,...R},D)=>{const j=E.useMemo(()=>typeof(a==null?void 0:a.lastLoggedIn)=="string"?a.lastLoggedIn:a!=null&&a.lastLoggedIn?new Date(a.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[a]),[b,A]=E.useState(!1),[W,B]=E.useState(0),[U,z]=E.useState(!1),G=E.useRef(null);E.useEffect(()=>(document.addEventListener("mouseup",M),window.addEventListener("scroll",q),()=>{document.removeEventListener("mouseup",M),window.removeEventListener("scroll",q)}));const J=()=>{z(!U)},M=v=>{G.current&&!G.current.contains(v.target)&&z(!1)},q=()=>{if(l){const v=window.pageYOffset||document.documentElement.scrollTop;if(v<0||Math.abs(v-W)<60)return;A(v>W),B(v)}};return m("header",{...R,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:mt("pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":l,"pkt-header--hidden":b}),ref:D,children:[m("div",{className:"pkt-header__logo",children:[typeof e=="string"?o("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:e,children:o(N,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/8.0/logos/"})}):o("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:e,children:o(N,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/8.0/logos/"})}),o("span",{className:"pkt-header__logo-service",children:n})]}),o("nav",{className:"pkt-header__actions",children:m("ul",{className:"pkt-header__actions-row",children:[h&&o("li",{children:o(ce,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:x,children:"Meny"})}),(a||s)&&m("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${U&&!b?"pkt-header--open-dropdown":""}`,ref:G,children:[m("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":U,onClick:J,children:[o(N,{name:"user",className:"pkt-btn__icon"}),o("span",{className:"pkt-header__user-fullname",children:(s==null?void 0:s.name)||(a==null?void 0:a.name)}),o("span",{className:"pkt-header__user-shortname",children:(s==null?void 0:s.shortname)||(a==null?void 0:a.shortname)}),o(N,{name:"chevron-thin-down",className:"pkt-btn--closed"}),o(N,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[a&&m("li",{children:[o("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),o("div",{className:"pkt-user-menu__name",children:a.name}),a.lastLoggedIn&&m("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",o("time",{children:j})]})]}),i&&o("li",{children:o("ul",{className:"pkt-list",children:i.map((v,L)=>o("li",{children:typeof v.target=="string"?m("a",{href:v.target,className:"pkt-link",children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]})},`userMenu-${L}`))})}),(s||p)&&m("li",{children:[s&&m(K,{children:[o("div",{className:"pkt-user-menu__label",children:"Representerer"}),o("div",{className:"pkt-user-menu__name",children:s.name}),s.orgNumber&&m("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",s.orgNumber]})]}),o("ul",{className:"pkt-list mt-size-16",children:p&&o("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:S,children:[o(N,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),o("li",{children:o("ul",{className:"pkt-list",children:(c||!_)&&m(K,{children:[c==null?void 0:c.map((v,L)=>o("li",{children:typeof v.target=="string"?m("a",{href:v.target,className:"pkt-link",children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]})},`userOptions-${L}`)),!_&&o("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:P,children:[o(N,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),f&&o("li",{className:"footer",children:o("ul",{className:"pkt-list-horizontal bordered",children:f.map((v,L)=>o("li",{children:typeof v.target=="string"?o("a",{href:v.target,className:"pkt-link",children:v.title}):o("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:v.title})},`userMenuFooter-${L}`))})})]})]}),_&&o("li",{children:o(ce,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:P,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),ht=E.forwardRef(({label:e,id:n,children:r,...l},a)=>m("div",{className:"pkt-form-group",children:[o("label",{htmlFor:n,className:"pkt-form-label",children:e}),o("input",{className:"pkt-form-input",id:n,...l,ref:a}),r]}));ht.displayName="PktInput";const Ne=E.forwardRef(({forId:e,label:n,helptext:r,helptextDropdown:l,helptextDropdownButton:a,optional:i,optionalText:s="Valgfritt",required:c,requiredText:f="Må fylles ut",hasError:p,errorMessage:h,disabled:_,inline:x,ariaDescribedby:P,useWrapper:S=!0,children:R,className:D},j)=>{const[b,A]=E.useState(!1),W=()=>{A(!b)},B=()=>i?"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":"",U=i?s:c?f:"",z=_?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",J=p?"pkt-inputwrapper--error":"",M=!!l&&l!=="",q=a||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',v=M?"div":"label",L=M?"h2":"span",Y=P||(r?`${e}-helptext`:void 0);return m("div",{className:["pkt-inputwrapper",D,z,G,J].join(" "),ref:j,children:[S?m(K,{children:[o(v,{htmlFor:e,className:"pkt-inputwrapper__label","aria-describedby":M?"":P,children:m(L,{id:`${e}-label`,children:[n,U!==""&&o("span",{className:B(),children:U})]})}),r&&o("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,children:r}),M&&l!==""&&m("div",{children:[o(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:b?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:W,children:o("span",{dangerouslySetInnerHTML:{__html:q}})}),o("div",{className:`pkt-inputwrapper__helptext ${b?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:o("span",{dangerouslySetInnerHTML:{__html:l}})}),o("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":Y,children:n})]}),o(K,{children:R})]}):m(K,{children:[o("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":Y,id:`${e}-label`,children:n}),R]}),p&&h&&o("div",{children:o(Ze,{skin:"error","aria-live":"assertive",id:`${e}-error`,slim:!0,children:h})})]})});Ne.displayName="PktInputWrapper";const kt=E.forwardRef(({children:e,className:n,iconName:r="user",openInNewTab:l=!1,skin:a="normal",href:i="#",external:s=!1,title:c},f)=>{const p=[n,"pkt-linkcard",a&&`pkt-linkcard--${a}`].filter(Boolean).join(" ");return m("a",{href:i,className:`pkt-linkcard pkt-link ${p}`,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,ref:f,children:[o(N,{className:"pkt-link__icon",name:r}),m("div",{className:"pkt-linkcard__content",children:[o("div",{className:`pkt-linkcard__title ${s?"pkt-link pkt-link--external":""}`,children:c}),o("div",{className:"pkt-linkcard__text",children:e})]})]})});kt.displayName="PktLinkCard";const jn=({children:e,skin:n="beige",title:r,className:l,...a})=>{const i=["pkt-messagebox",n&&`pkt-messagebox--${n}`,l].filter(Boolean).join(" ");return m("div",{...a,className:i,children:[o("div",{className:"pkt-messagebox__title",children:r}),o("div",{className:"pkt-messagebox__text",children:e})]})},vt=E.forwardRef(({id:e,name:n,label:r,value:l,...a},i)=>m("div",{className:"pkt-form-group",children:[o("input",{type:"radio",className:"pkt-form-check-input",id:e,name:n,value:l,ref:i,...a}),o("label",{className:"pkt-form-label",htmlFor:e,children:r})]}));vt.displayName="PktRadio";const Dn=({label:e,children:n})=>m(K,{children:[o("p",{children:e}),o("div",{className:"pkt-form-group",children:n})]}),Ln=({isResponsive:e,children:n})=>e?o("div",{className:"pkt-table-container",children:n}):o(K,{children:n}),$n=({isResponsive:e,modifiers:{info:n=!1,success:r=!1,strong:l=!1,shadow:a=!1}={},children:i})=>o(Ln,{isResponsive:e,children:o("table",{className:mt("pkt-table",{"pkt-table--info":n,"pkt-table--success":r,"pkt-table--strong":l,"pkt-table--shadow":a}),children:i})}),Fn=({children:e})=>o("td",{className:"pkt-table__th",children:e}),In=({children:e})=>o("th",{className:"pkt-table__th",children:e}),_t=E.forwardRef(({children:e,className:n,skin:r="blue",textStyle:l="normal-text",size:a="medium",closeTag:i=!1,iconName:s="",type:c="button",ariaLabel:f="close",onClick:p=()=>{}},h)=>{const[_,x]=E.useState(!1),P=j=>{x(!0),p(j)},S=["pkt-tag",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,l&&`pkt-tag--${l}`,n].filter(Boolean).join(" "),R=["pkt-tag","pkt-btn","pkt-btn--tertiary",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,l&&`pkt-tag--${l}`,s&&i?"pkt-btn--icons-right-and-left":null,i&&!s?"pkt-btn--icon-right":null,n].filter(Boolean).join(" "),D=!_;return i&&s?o(K,{children:D&&m("button",{className:R,type:c,"aria-label":f,onClick:P,ref:h,children:[o(N,{className:"pkt-tag__icon",name:s}),e,o(N,{className:"pkt-tag__close-btn",name:"close"})]})}):i?o(K,{children:D&&m("button",{className:R,type:c,"aria-label":f,onClick:P,ref:h,children:[o(N,{className:"pkt-tag__close-btn",name:"close"}),e]})}):s?m("span",{className:S,children:[o(N,{className:"pkt-tag__icon",name:s}),e]}):o("span",{className:S,children:e})});_t.displayName="PktTag";const An=E.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,counter:l,counterMaxLength:a,className:i,disabled:s,errorMessage:c,hasError:f,helptext:p,helptextDropdown:h,helptextDropdownButton:_,inline:x,fullwidth:P=!1,label:S,name:R,optional:D=!1,optionalText:j,required:b=!1,requiredText:A,placeholder:W,rows:B,useWrapper:U,onChange:z,...G},J)=>{const M=[i,"pkt-textinput","pkt-textarea"].join(" "),q=r||`${e}-label`,v=E.useRef(null),[L,Y]=E.useState(0),ne=Q=>{var ee,ue;if(l&&Y(((ue=(ee=Q.currentTarget)==null?void 0:ee.value)==null?void 0:ue.length)||0),z)return z(Q)};return E.useEffect(()=>{var Q,ee;typeof J=="function"&&J(v.current),l&&Y(((ee=(Q=v==null?void 0:v.current)==null?void 0:Q.value)==null?void 0:ee.length)||0)},[J]),m(Ne,{ariaDescribedby:n,className:M,disabled:s,errorMessage:c,forId:e,hasError:f,helptext:p,helptextDropdown:h,helptextDropdownButton:_,inline:x,label:S,optional:D,optionalText:j,required:b,requiredText:A,useWrapper:U,children:[o("textarea",{ref:v,className:`pkt-input ${P?"pkt-input--fullwidth":""} ${a&&L>a?"pkt-input--counter-error":""}`,name:R||e,id:e,placeholder:W,disabled:s,rows:B,"aria-labelledby":q,"aria-invalid":f,"aria-errormessage":`${e}-error`,"aria-required":b,...G,onChange:ne}),l&&m("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,a&&`/${a}`]})]})}),Un=E.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,autocomplete:l="off",className:a,disabled:i=!1,errorMessage:s,hasError:c=!1,helptext:f,helptextDropdown:p,helptextDropdownButton:h,iconNameRight:_,inline:x=!1,fullwidth:P=!1,label:S,name:R,optional:D=!1,optionalText:j,required:b=!1,requiredText:A,placeholder:W,prefix:B,suffix:U,type:z="text",useWrapper:G=!0,value:J,...M},q)=>{const v=[a,"pkt-textinput"].join(" "),L=r||`${e}-label`;return o(Ne,{ariaDescribedby:n,className:v,disabled:i,errorMessage:s,forId:e,hasError:c,helptext:f,helptextDropdown:p,helptextDropdownButton:h,inline:x,label:S,optional:D,optionalText:j,required:b,requiredText:A,useWrapper:G,children:m("div",{className:"pkt-input__container",children:[B&&o("div",{className:"pkt-input-prefix",children:B}),o("input",{ref:q,className:`pkt-input ${P?"pkt-input--fullwidth":""}`,type:z,name:R||e,id:e,placeholder:W,autoComplete:l,value:J,disabled:i,"aria-required":b,"aria-invalid":c,"aria-errormessage":`${e}-error`,"aria-labelledby":L,...M}),U&&m("p",{className:"pkt-input-suffix",children:[U,_&&o(N,{className:"pkt-input-suffix-icon",name:_})]}),!U&&_&&o(N,{className:"pkt-input-icon",name:_})]})})});T.PktAlert=Ze,T.PktBackLink=Yt,T.PktBreadcrumbs=Pn,T.PktButton=ce,T.PktFooter=Rn,T.PktFooterSimple=Sn,T.PktHeader=Tn,T.PktIcon=N,T.PktInput=ht,T.PktInputWrapper=Ne,T.PktLinkCard=kt,T.PktMessagebox=jn,T.PktRadio=vt,T.PktRadioGroup=Dn,T.PktTable=$n,T.PktTableData=Fn,T.PktTableHeader=In,T.PktTag=_t,T.PktTextarea=An,T.PktTextinput=Un,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
58
+ */(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var l=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")l.push(i);else if(Array.isArray(i)){if(i.length){var c=r.apply(null,i);c&&l.push(c)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){l.push(i.toString());continue}for(var f in i)n.call(i,f)&&i[f]&&l.push(f)}}}return l.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(pt);var On=pt.exports;const mt=Ut(On),Tn=E.forwardRef(({logoLink:e="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:l=!0,user:a,userMenu:i,representing:s,userOptions:c,userMenuFooter:f,canChangeRepresentation:p=!0,showMenuButton:h=!1,showLogOutButton:_=!1,openMenu:x,logOut:P,changeRepresentation:S,...R},D)=>{const j=E.useMemo(()=>typeof(a==null?void 0:a.lastLoggedIn)=="string"?a.lastLoggedIn:a!=null&&a.lastLoggedIn?new Date(a.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[a]),[b,A]=E.useState(!1),[W,M]=E.useState(0),[U,z]=E.useState(!1),G=E.useRef(null);E.useEffect(()=>(document.addEventListener("mouseup",B),window.addEventListener("scroll",q),()=>{document.removeEventListener("mouseup",B),window.removeEventListener("scroll",q)}));const H=()=>{z(!U)},B=v=>{G.current&&!G.current.contains(v.target)&&z(!1)},q=()=>{if(l){const v=window.pageYOffset||document.documentElement.scrollTop;if(v<0||Math.abs(v-W)<60)return;A(v>W),M(v)}};return m("header",{...R,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:mt("pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":l,"pkt-header--hidden":b}),ref:D,children:[m("div",{className:"pkt-header__logo",children:[typeof e=="string"?o("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:e,children:o(N,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/8.0/logos/"})}):o("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:e,children:o(N,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/8.0/logos/"})}),o("span",{className:"pkt-header__logo-service",children:n})]}),o("nav",{className:"pkt-header__actions",children:m("ul",{className:"pkt-header__actions-row",children:[h&&o("li",{children:o(ce,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:x,children:"Meny"})}),(a||s)&&m("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${U&&!b?"pkt-header--open-dropdown":""}`,ref:G,children:[m("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":U,onClick:H,children:[o(N,{name:"user",className:"pkt-btn__icon"}),o("span",{className:"pkt-header__user-fullname",children:(s==null?void 0:s.name)||(a==null?void 0:a.name)}),o("span",{className:"pkt-header__user-shortname",children:(s==null?void 0:s.shortname)||(a==null?void 0:a.shortname)}),o(N,{name:"chevron-thin-down",className:"pkt-btn--closed"}),o(N,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[a&&m("li",{children:[o("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),o("div",{className:"pkt-user-menu__name",children:a.name}),a.lastLoggedIn&&m("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",o("time",{children:j})]})]}),i&&o("li",{children:o("ul",{className:"pkt-list",children:i.map((v,L)=>o("li",{children:typeof v.target=="string"?m("a",{href:v.target,className:"pkt-link",children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]})},`userMenu-${L}`))})}),(s||p)&&m("li",{children:[s&&m(K,{children:[o("div",{className:"pkt-user-menu__label",children:"Representerer"}),o("div",{className:"pkt-user-menu__name",children:s.name}),s.orgNumber&&m("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",s.orgNumber]})]}),o("ul",{className:"pkt-list mt-size-16",children:p&&o("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:S,children:[o(N,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),o("li",{children:o("ul",{className:"pkt-list",children:(c||!_)&&m(K,{children:[c==null?void 0:c.map((v,L)=>o("li",{children:typeof v.target=="string"?m("a",{href:v.target,className:"pkt-link",children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:[v.iconName&&o(N,{name:v.iconName,className:"pkt-link__icon"}),v.title]})},`userOptions-${L}`)),!_&&o("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:P,children:[o(N,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),f&&o("li",{className:"footer",children:o("ul",{className:"pkt-list-horizontal bordered",children:f.map((v,L)=>o("li",{children:typeof v.target=="string"?o("a",{href:v.target,className:"pkt-link",children:v.title}):o("button",{className:"pkt-link-button pkt-link",onClick:v.target,children:v.title})},`userMenuFooter-${L}`))})})]})]}),_&&o("li",{children:o(ce,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:P,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),ht=E.forwardRef(({label:e,id:n,children:r,...l},a)=>m("div",{className:"pkt-form-group",children:[o("label",{htmlFor:n,className:"pkt-form-label",children:e}),o("input",{className:"pkt-form-input",id:n,...l,ref:a}),r]}));ht.displayName="PktInput";const Ne=E.forwardRef(({forId:e,label:n,helptext:r,helptextDropdown:l,helptextDropdownButton:a,optional:i,optionalText:s="Valgfritt",required:c,requiredText:f="Må fylles ut",hasError:p,errorMessage:h,disabled:_,inline:x,ariaDescribedby:P,useWrapper:S=!0,children:R,className:D},j)=>{const[b,A]=E.useState(!1),W=()=>{A(!b)},M=()=>i?"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":"",U=i?s:c?f:"",z=_?"pkt-inputwrapper--disabled":"",G=x?"pkt-inputwrapper--inline":"",H=p?"pkt-inputwrapper--error":"",B=!!l&&l!=="",q=a||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',v=B?"div":"label",L=B?"h2":"span",Y=P||(r?`${e}-helptext`:void 0);return m("div",{className:["pkt-inputwrapper",D,z,G,H].join(" "),ref:j,children:[S?m(K,{children:[o(v,{htmlFor:e,className:"pkt-inputwrapper__label","aria-describedby":B?"":P,children:m(L,{id:`${e}-label`,children:[n,U!==""&&o("span",{className:M(),children:U})]})}),r&&o("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,dangerouslySetInnerHTML:{__html:r}}),B&&l!==""&&m("div",{children:[o(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:b?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:W,children:o("span",{dangerouslySetInnerHTML:{__html:q}})}),o("div",{className:`pkt-inputwrapper__helptext ${b?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:o("span",{dangerouslySetInnerHTML:{__html:l}})}),o("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":Y,children:n})]}),o(K,{children:R})]}):m(K,{children:[o("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":Y,id:`${e}-label`,children:n}),R]}),p&&h&&o("div",{children:o(Ze,{skin:"error","aria-live":"assertive",id:`${e}-error`,slim:!0,children:h})})]})});Ne.displayName="PktInputWrapper";const kt=E.forwardRef(({children:e,className:n,iconName:r="user",openInNewTab:l=!1,skin:a="normal",href:i="#",external:s=!1,title:c},f)=>{const p=[n,"pkt-linkcard",a&&`pkt-linkcard--${a}`].filter(Boolean).join(" ");return m("a",{href:i,className:`pkt-linkcard pkt-link ${p}`,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,ref:f,children:[o(N,{className:"pkt-link__icon",name:r}),m("div",{className:"pkt-linkcard__content",children:[o("div",{className:`pkt-linkcard__title ${s?"pkt-link pkt-link--external":""}`,children:c}),o("div",{className:"pkt-linkcard__text",children:e})]})]})});kt.displayName="PktLinkCard";const jn=({children:e,skin:n="beige",title:r,className:l,...a})=>{const i=["pkt-messagebox",n&&`pkt-messagebox--${n}`,l].filter(Boolean).join(" ");return m("div",{...a,className:i,children:[o("div",{className:"pkt-messagebox__title",children:r}),o("div",{className:"pkt-messagebox__text",children:e})]})},vt=E.forwardRef(({id:e,name:n,label:r,value:l,...a},i)=>m("div",{className:"pkt-form-group",children:[o("input",{type:"radio",className:"pkt-form-check-input",id:e,name:n,value:l,ref:i,...a}),o("label",{className:"pkt-form-label",htmlFor:e,children:r})]}));vt.displayName="PktRadio";const Dn=({label:e,children:n})=>m(K,{children:[o("p",{children:e}),o("div",{className:"pkt-form-group",children:n})]}),Ln=({isResponsive:e,children:n})=>e?o("div",{className:"pkt-table-container",children:n}):o(K,{children:n}),$n=({isResponsive:e,modifiers:{info:n=!1,success:r=!1,strong:l=!1,shadow:a=!1}={},children:i})=>o(Ln,{isResponsive:e,children:o("table",{className:mt("pkt-table",{"pkt-table--info":n,"pkt-table--success":r,"pkt-table--strong":l,"pkt-table--shadow":a}),children:i})}),In=({children:e})=>o("td",{className:"pkt-table__th",children:e}),Fn=({children:e})=>o("th",{className:"pkt-table__th",children:e}),_t=E.forwardRef(({children:e,className:n,skin:r="blue",textStyle:l="normal-text",size:a="medium",closeTag:i=!1,iconName:s="",type:c="button",ariaLabel:f="close",onClick:p=()=>{}},h)=>{const[_,x]=E.useState(!1),P=j=>{x(!0),p(j)},S=["pkt-tag",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,l&&`pkt-tag--${l}`,n].filter(Boolean).join(" "),R=["pkt-tag","pkt-btn","pkt-btn--tertiary",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,l&&`pkt-tag--${l}`,s&&i?"pkt-btn--icons-right-and-left":null,i&&!s?"pkt-btn--icon-right":null,n].filter(Boolean).join(" "),D=!_;return i&&s?o(K,{children:D&&m("button",{className:R,type:c,"aria-label":f,onClick:P,ref:h,children:[o(N,{className:"pkt-tag__icon",name:s}),e,o(N,{className:"pkt-tag__close-btn",name:"close"})]})}):i?o(K,{children:D&&m("button",{className:R,type:c,"aria-label":f,onClick:P,ref:h,children:[o(N,{className:"pkt-tag__close-btn",name:"close"}),e]})}):s?m("span",{className:S,children:[o(N,{className:"pkt-tag__icon",name:s}),e]}):o("span",{className:S,children:e})});_t.displayName="PktTag";const An=E.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,counter:l,counterMaxLength:a,className:i,disabled:s,errorMessage:c,hasError:f,helptext:p,helptextDropdown:h,helptextDropdownButton:_,inline:x,fullwidth:P=!1,label:S,name:R,optional:D=!1,optionalText:j,required:b=!1,requiredText:A,placeholder:W,rows:M,useWrapper:U,onChange:z,...G},H)=>{const B=[i,"pkt-textinput","pkt-textarea"].join(" "),q=r||`${e}-label`,v=E.useRef(null),[L,Y]=E.useState(0),ne=Q=>{var ee,ue;if(l&&Y(((ue=(ee=Q.currentTarget)==null?void 0:ee.value)==null?void 0:ue.length)||0),z)return z(Q)};return E.useEffect(()=>{var Q,ee;typeof H=="function"&&H(v.current),l&&Y(((ee=(Q=v==null?void 0:v.current)==null?void 0:Q.value)==null?void 0:ee.length)||0)},[H]),m(Ne,{ariaDescribedby:n,className:B,disabled:s,errorMessage:c,forId:e,hasError:f,helptext:p,helptextDropdown:h,helptextDropdownButton:_,inline:x,label:S,optional:D,optionalText:j,required:b,requiredText:A,useWrapper:U,children:[o("textarea",{ref:v,className:`pkt-input ${P?"pkt-input--fullwidth":""} ${a&&L>a?"pkt-input--counter-error":""}`,name:R||e,id:e,placeholder:W,disabled:s,rows:M,"aria-labelledby":q,"aria-invalid":f,"aria-errormessage":`${e}-error`,"aria-required":b,...G,onChange:ne}),l&&m("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,a&&`/${a}`]})]})}),Un=E.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,autocomplete:l="off",className:a,disabled:i=!1,errorMessage:s,hasError:c=!1,helptext:f,helptextDropdown:p,helptextDropdownButton:h,iconNameRight:_,inline:x=!1,fullwidth:P=!1,label:S,name:R,optional:D=!1,optionalText:j,required:b=!1,requiredText:A,placeholder:W,prefix:M,suffix:U,type:z="text",useWrapper:G=!0,value:H,...B},q)=>{const v=[a,"pkt-textinput"].join(" "),L=r||`${e}-label`;return o(Ne,{ariaDescribedby:n,className:v,disabled:i,errorMessage:s,forId:e,hasError:c,helptext:f,helptextDropdown:p,helptextDropdownButton:h,inline:x,label:S,optional:D,optionalText:j,required:b,requiredText:A,useWrapper:G,children:m("div",{className:"pkt-input__container",children:[M&&o("div",{className:"pkt-input-prefix",children:M}),o("input",{ref:q,className:`pkt-input ${P?"pkt-input--fullwidth":""}`,type:z,name:R||e,id:e,placeholder:W,autoComplete:l,value:H,disabled:i,"aria-required":b,"aria-invalid":c,"aria-errormessage":`${e}-error`,"aria-labelledby":L,...B}),U&&m("p",{className:"pkt-input-suffix",children:[U,_&&o(N,{className:"pkt-input-suffix-icon",name:_})]}),!U&&_&&o(N,{className:"pkt-input-icon",name:_})]})})});T.PktAlert=Ze,T.PktBackLink=Yt,T.PktBreadcrumbs=Pn,T.PktButton=ce,T.PktFooter=Rn,T.PktFooterSimple=Sn,T.PktHeader=Tn,T.PktIcon=N,T.PktInput=ht,T.PktInputWrapper=Ne,T.PktLinkCard=kt,T.PktMessagebox=jn,T.PktRadio=vt,T.PktRadioGroup=Dn,T.PktTable=$n,T.PktTableData=In,T.PktTableHeader=Fn,T.PktTag=_t,T.PktTextarea=An,T.PktTextinput=Un,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "8.0.9",
3
+ "version": "8.0.12",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@oslokommune/punkt-assets": "^8.0.0",
36
- "@oslokommune/punkt-css": "^8.0.9",
36
+ "@oslokommune/punkt-css": "^8.0.10",
37
37
  "@testing-library/jest-dom": "^5.16.5",
38
38
  "@testing-library/react": "^14.0.0",
39
39
  "@testing-library/user-event": "^14.4.3",
@@ -91,5 +91,5 @@
91
91
  "url": "https://github.com/oslokommune/punkt/issues"
92
92
  },
93
93
  "license": "MIT",
94
- "gitHead": "43e48b7612bc940467a81e4877ba0ad1d7854e61"
94
+ "gitHead": "7268ae04b393e9b4add5a01b3a8e8cc326fbc1db"
95
95
  }
@@ -102,9 +102,11 @@ export const PktInputWrapper = forwardRef(
102
102
  </LabelTextComponent>
103
103
  </LabelComponent>
104
104
  {helptext && (
105
- <div className="pkt-inputwrapper__helptext" id={`${forId}-helptext`}>
106
- {helptext}
107
- </div>
105
+ <div
106
+ className="pkt-inputwrapper__helptext"
107
+ id={`${forId}-helptext`}
108
+ dangerouslySetInnerHTML={{ __html: helptext }}
109
+ ></div>
108
110
  )}
109
111
  {hasDropDown && helptextDropdown !== '' && (
110
112
  <div>