@oslokommune/punkt-react 9.0.1 → 9.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(T,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(T=typeof globalThis<"u"?globalThis:T||self,N(T["punkt-react"]={},T.React))})(this,function(T,N){"use strict";function Ut(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const g=Ut(N);function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}},oe={};/**
1
+ (function(T,N){typeof exports=="object"&&typeof module<"u"?N(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],N):(T=typeof globalThis<"u"?globalThis:T||self,N(T["punkt-react"]={},T.React))})(this,function(T,N){"use strict";function Ut(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const b=Ut(N);function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}},oe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ge;function Wt(){if(Ge)return oe;Ge=1;var e=N,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(c,f,d){var h,v={},w=null,C=null;d!==void 0&&(w=""+d),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(C=f.ref);for(h in f)o.call(f,h)&&!s.hasOwnProperty(h)&&(v[h]=f[h]);if(c&&c.defaultProps)for(h in f=c.defaultProps,f)v[h]===void 0&&(v[h]=f[h]);return{$$typeof:n,type:c,key:w,ref:C,props:v,_owner:a.current}}return oe.Fragment=r,oe.jsx=i,oe.jsxs=i,oe}var ie={};/**
9
+ */var Ge;function Wt(){if(Ge)return oe;Ge=1;var e=N,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(p,f,c){var h,v={},w=null,C=null;c!==void 0&&(w=""+c),f.key!==void 0&&(w=""+f.key),f.ref!==void 0&&(C=f.ref);for(h in f)o.call(f,h)&&!i.hasOwnProperty(h)&&(v[h]=f[h]);if(p&&p.defaultProps)for(h in f=p.defaultProps,f)v[h]===void 0&&(v[h]=f[h]);return{$$typeof:n,type:p,key:w,ref:C,props:v,_owner:a.current}}return oe.Fragment=r,oe.jsx=s,oe.jsxs=s,oe}var ie={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -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=N,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),O=Symbol.iterator,S="@@iterator";function D(t){if(t===null||typeof t!="object")return null;var u=O&&t[O]||t[S];return typeof u=="function"?u:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){{for(var u=arguments.length,p=new Array(u>1?u-1:0),k=1;k<u;k++)p[k-1]=arguments[k];$("error",t,p)}}function $(t,u,p){{var k=P.ReactDebugCurrentFrame,R=k.getStackAddendum();R!==""&&(u+="%s",p=p.concat([R]));var j=p.map(function(x){return String(x)});j.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,j)}}var U=!1,B=!1,W=!1,Y=!1,q=!1,J;J=Symbol.for("react.module.reference");function K(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===s||q||t===a||t===d||t===h||Y||t===C||U||B||W||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===v||t.$$typeof===i||t.$$typeof===c||t.$$typeof===f||t.$$typeof===J||t.getModuleId!==void 0))}function M(t,u,p){var k=t.displayName;if(k)return k;var R=u.displayName||u.name||"";return R!==""?p+"("+R+")":p}function _(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 o:return"Fragment";case r:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var u=t;return _(u)+".Consumer";case i:var p=t;return _(p._context)+".Provider";case f:return M(t,t.render,"ForwardRef");case v:var k=t.displayName||null;return k!==null?k:L(t.type)||"Memo";case w:{var R=t,j=R._payload,x=R._init;try{return L(x(j))}catch{return null}}}return null}var H=Object.assign,G=0,ee,te,fe,gt,Nt,yt,Et;function wt(){}wt.__reactDisabledLog=!0;function Wn(){{if(G===0){ee=console.log,te=console.info,fe=console.warn,gt=console.error,Nt=console.group,yt=console.groupCollapsed,Et=console.groupEnd;var t={configurable:!0,enumerable:!0,value:wt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}G++}}function Vn(){{if(G--,G===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},t,{value:ee}),info:H({},t,{value:te}),warn:H({},t,{value:fe}),error:H({},t,{value:gt}),group:H({},t,{value:Nt}),groupCollapsed:H({},t,{value:yt}),groupEnd:H({},t,{value:Et})})}G<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=P.ReactCurrentDispatcher,Me;function ye(t,u,p){{if(Me===void 0)try{throw Error()}catch(R){var k=R.stack.trim().match(/\n( *(at )?)/);Me=k&&k[1]||""}return`
18
- `+Me+t}}var Ye=!1,Ee;{var Mn=typeof WeakMap=="function"?WeakMap:Map;Ee=new Mn}function xt(t,u){if(!t||Ye)return"";{var p=Ee.get(t);if(p!==void 0)return p}var k;Ye=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Ve.current,Ve.current=null,Wn();try{if(u){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(X){k=X}Reflect.construct(t,[],x)}else{try{x.call()}catch(X){k=X}t.call(x.prototype)}}else{try{throw Error()}catch(X){k=X}t()}}catch(X){if(X&&k&&typeof X.stack=="string"){for(var E=X.stack.split(`
17
+ */var Xe;function Vt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var e=N,n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),O=Symbol.iterator,S="@@iterator";function D(t){if(t===null||typeof t!="object")return null;var u=O&&t[O]||t[S];return typeof u=="function"?u:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(t){{for(var u=arguments.length,d=new Array(u>1?u-1:0),k=1;k<u;k++)d[k-1]=arguments[k];$("error",t,d)}}function $(t,u,d){{var k=P.ReactDebugCurrentFrame,R=k.getStackAddendum();R!==""&&(u+="%s",d=d.concat([R]));var j=d.map(function(x){return String(x)});j.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,j)}}var U=!1,B=!1,W=!1,Y=!1,q=!1,J;J=Symbol.for("react.module.reference");function K(t){return!!(typeof t=="string"||typeof t=="function"||t===o||t===i||q||t===a||t===c||t===h||Y||t===C||U||B||W||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===v||t.$$typeof===s||t.$$typeof===p||t.$$typeof===f||t.$$typeof===J||t.getModuleId!==void 0))}function M(t,u,d){var k=t.displayName;if(k)return k;var R=u.displayName||u.name||"";return R!==""?d+"("+R+")":d}function _(t){return t.displayName||"Context"}function L(t){if(t==null)return null;if(typeof t.tag=="number"&&g("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 o:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case c:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case p:var u=t;return _(u)+".Consumer";case s:var d=t;return _(d._context)+".Provider";case f:return M(t,t.render,"ForwardRef");case v:var k=t.displayName||null;return k!==null?k:L(t.type)||"Memo";case w:{var R=t,j=R._payload,x=R._init;try{return L(x(j))}catch{return null}}}return null}var H=Object.assign,G=0,ee,te,fe,gt,Nt,yt,Et;function wt(){}wt.__reactDisabledLog=!0;function Wn(){{if(G===0){ee=console.log,te=console.info,fe=console.warn,gt=console.error,Nt=console.group,yt=console.groupCollapsed,Et=console.groupEnd;var t={configurable:!0,enumerable:!0,value:wt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}G++}}function Vn(){{if(G--,G===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},t,{value:ee}),info:H({},t,{value:te}),warn:H({},t,{value:fe}),error:H({},t,{value:gt}),group:H({},t,{value:Nt}),groupCollapsed:H({},t,{value:yt}),groupEnd:H({},t,{value:Et})})}G<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ve=P.ReactCurrentDispatcher,Me;function ye(t,u,d){{if(Me===void 0)try{throw Error()}catch(R){var k=R.stack.trim().match(/\n( *(at )?)/);Me=k&&k[1]||""}return`
18
+ `+Me+t}}var Ye=!1,Ee;{var Mn=typeof WeakMap=="function"?WeakMap:Map;Ee=new Mn}function xt(t,u){if(!t||Ye)return"";{var d=Ee.get(t);if(d!==void 0)return d}var k;Ye=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Ve.current,Ve.current=null,Wn();try{if(u){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(X){k=X}Reflect.construct(t,[],x)}else{try{x.call()}catch(X){k=X}t.call(x.prototype)}}else{try{throw Error()}catch(X){k=X}t()}}catch(X){if(X&&k&&typeof X.stack=="string"){for(var E=X.stack.split(`
19
19
  `),V=k.stack.split(`
20
20
  `),I=E.length-1,F=V.length-1;I>=1&&F>=0&&E[I]!==V[F];)F--;for(;I>=1&&F>=0;I--,F--)if(E[I]!==V[F]){if(I!==1||F!==1)do if(I--,F--,F<0||E[I]!==V[F]){var z=`
21
- `+E[I].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ee.set(t,z),z}while(I>=1&&F>=0);break}}}finally{Ye=!1,Ve.current=j,Vn(),Error.prepareStackTrace=R}var le=t?t.displayName||t.name:"",At=le?ye(le):"";return typeof t=="function"&&Ee.set(t,At),At}function Yn(t,u,p){return xt(t,!1)}function Jn(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function we(t,u,p){if(t==null)return"";if(typeof t=="function")return xt(t,Jn(t));if(typeof t=="string")return ye(t);switch(t){case d:return ye("Suspense");case h:return ye("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Yn(t.render);case v:return we(t.type,u,p);case w:{var k=t,R=k._payload,j=k._init;try{return we(j(R),u,p)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Ct={},Pt=P.ReactDebugCurrentFrame;function Ce(t){if(t){var u=t._owner,p=we(t.type,t._source,u?u.type:null);Pt.setExtraStackFrame(p)}else Pt.setExtraStackFrame(null)}function Hn(t,u,p,k,R){{var j=Function.call.bind(xe);for(var x in t)if(j(t,x)){var E=void 0;try{if(typeof t[x]!="function"){var V=Error((k||"React class")+": "+p+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}E=t[x](u,x,k,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){E=I}E&&!(E instanceof Error)&&(Ce(R),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",p,x,typeof E),Ce(null)),E instanceof Error&&!(E.message in Ct)&&(Ct[E.message]=!0,Ce(R),b("Failed %s type: %s",p,E.message),Ce(null))}}}var zn=Array.isArray;function Je(t){return zn(t)}function qn(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,p=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return p}}function Kn(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function St(t){if(Kn(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qn(t)),Rt(t)}var pe=P.ReactCurrentOwner,Gn={key:!0,ref:!0,__self:!0,__source:!0},Ot,Tt,He;He={};function Xn(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 Zn(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 Qn(t,u){if(typeof t.ref=="string"&&pe.current&&u&&pe.current.stateNode!==u){var p=L(pe.current.type);He[p]||(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(pe.current.type),t.ref),He[p]=!0)}}function er(t,u){{var p=function(){Ot||(Ot=!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))};p.isReactWarning=!0,Object.defineProperty(t,"key",{get:p,configurable:!0})}}function tr(t,u){{var p=function(){Tt||(Tt=!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))};p.isReactWarning=!0,Object.defineProperty(t,"ref",{get:p,configurable:!0})}}var nr=function(t,u,p,k,R,j,x){var E={$$typeof:n,type:t,key:u,ref:p,props:x,_owner:j};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function rr(t,u,p,k,R){{var j,x={},E=null,V=null;p!==void 0&&(St(p),E=""+p),Zn(u)&&(St(u.key),E=""+u.key),Xn(u)&&(V=u.ref,Qn(u,R));for(j in u)xe.call(u,j)&&!Gn.hasOwnProperty(j)&&(x[j]=u[j]);if(t&&t.defaultProps){var I=t.defaultProps;for(j in I)x[j]===void 0&&(x[j]=I[j])}if(E||V){var F=typeof t=="function"?t.displayName||t.name||"Unknown":t;E&&er(x,F),V&&tr(x,F)}return nr(t,E,V,R,k,pe.current,x)}}var ze=P.ReactCurrentOwner,jt=P.ReactDebugCurrentFrame;function ae(t){if(t){var u=t._owner,p=we(t.type,t._source,u?u.type:null);jt.setExtraStackFrame(p)}else jt.setExtraStackFrame(null)}var qe;qe=!1;function Ke(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function Dt(){{if(ze.current){var t=L(ze.current.type);if(t)return`
21
+ `+E[I].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ee.set(t,z),z}while(I>=1&&F>=0);break}}}finally{Ye=!1,Ve.current=j,Vn(),Error.prepareStackTrace=R}var le=t?t.displayName||t.name:"",At=le?ye(le):"";return typeof t=="function"&&Ee.set(t,At),At}function Yn(t,u,d){return xt(t,!1)}function Jn(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function we(t,u,d){if(t==null)return"";if(typeof t=="function")return xt(t,Jn(t));if(typeof t=="string")return ye(t);switch(t){case c:return ye("Suspense");case h:return ye("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Yn(t.render);case v:return we(t.type,u,d);case w:{var k=t,R=k._payload,j=k._init;try{return we(j(R),u,d)}catch{}}}return""}var xe=Object.prototype.hasOwnProperty,Ct={},Pt=P.ReactDebugCurrentFrame;function Ce(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);Pt.setExtraStackFrame(d)}else Pt.setExtraStackFrame(null)}function Hn(t,u,d,k,R){{var j=Function.call.bind(xe);for(var x in t)if(j(t,x)){var E=void 0;try{if(typeof t[x]!="function"){var V=Error((k||"React class")+": "+d+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw V.name="Invariant Violation",V}E=t[x](u,x,k,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){E=I}E&&!(E instanceof Error)&&(Ce(R),g("%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,x,typeof E),Ce(null)),E instanceof Error&&!(E.message in Ct)&&(Ct[E.message]=!0,Ce(R),g("Failed %s type: %s",d,E.message),Ce(null))}}}var zn=Array.isArray;function Je(t){return zn(t)}function qn(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,d=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return d}}function Kn(t){try{return Rt(t),!1}catch{return!0}}function Rt(t){return""+t}function St(t){if(Kn(t))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qn(t)),Rt(t)}var pe=P.ReactCurrentOwner,Gn={key:!0,ref:!0,__self:!0,__source:!0},Ot,Tt,He;He={};function Xn(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 Zn(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 Qn(t,u){if(typeof t.ref=="string"&&pe.current&&u&&pe.current.stateNode!==u){var d=L(pe.current.type);He[d]||(g('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(pe.current.type),t.ref),He[d]=!0)}}function er(t,u){{var d=function(){Ot||(Ot=!0,g("%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 tr(t,u){{var d=function(){Tt||(Tt=!0,g("%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 nr=function(t,u,d,k,R,j,x){var E={$$typeof:n,type:t,key:u,ref:d,props:x,_owner:j};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function rr(t,u,d,k,R){{var j,x={},E=null,V=null;d!==void 0&&(St(d),E=""+d),Zn(u)&&(St(u.key),E=""+u.key),Xn(u)&&(V=u.ref,Qn(u,R));for(j in u)xe.call(u,j)&&!Gn.hasOwnProperty(j)&&(x[j]=u[j]);if(t&&t.defaultProps){var I=t.defaultProps;for(j in I)x[j]===void 0&&(x[j]=I[j])}if(E||V){var F=typeof t=="function"?t.displayName||t.name||"Unknown":t;E&&er(x,F),V&&tr(x,F)}return nr(t,E,V,R,k,pe.current,x)}}var ze=P.ReactCurrentOwner,jt=P.ReactDebugCurrentFrame;function ae(t){if(t){var u=t._owner,d=we(t.type,t._source,u?u.type:null);jt.setExtraStackFrame(d)}else jt.setExtraStackFrame(null)}var qe;qe=!1;function Ke(t){return typeof t=="object"&&t!==null&&t.$$typeof===n}function Dt(){{if(ze.current){var t=L(ze.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function ar(t){{if(t!==void 0){var u=t.fileName.replace(/^.*[\\\/]/,""),p=t.lineNumber;return`
23
+ Check the render method of \``+t+"`."}return""}}function ar(t){{if(t!==void 0){var u=t.fileName.replace(/^.*[\\\/]/,""),d=t.lineNumber;return`
24
24
 
25
- Check your code at `+u+":"+p+"."}return""}}var $t={};function lr(t){{var u=Dt();if(!u){var p=typeof t=="string"?t:t.displayName||t.name;p&&(u=`
25
+ Check your code at `+u+":"+d+"."}return""}}var $t={};function lr(t){{var u=Dt();if(!u){var d=typeof t=="string"?t:t.displayName||t.name;d&&(u=`
26
26
 
27
- Check the top-level render call using <`+p+">.")}return u}}function Lt(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var p=lr(u);if($t[p])return;$t[p]=!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.',p,k),ae(null)}}function It(t,u){{if(typeof t!="object")return;if(Je(t))for(var p=0;p<t.length;p++){var k=t[p];Ke(k)&&Lt(k,u)}else if(Ke(t))t._store&&(t._store.validated=!0);else if(t){var R=D(t);if(typeof R=="function"&&R!==t.entries)for(var j=R.call(t),x;!(x=j.next()).done;)Ke(x.value)&&Lt(x.value,u)}}}function or(t){{var u=t.type;if(u==null||typeof u=="string")return;var p;if(typeof u=="function")p=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===f||u.$$typeof===v))p=u.propTypes;else return;if(p){var k=L(u);Hn(p,t.props,"prop",k,t)}else if(u.PropTypes!==void 0&&!qe){qe=!0;var R=L(u);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"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 ir(t){{for(var u=Object.keys(t.props),p=0;p<u.length;p++){var k=u[p];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,p,k,R,j){{var x=K(t);if(!x){var E="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(E+=" 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=ar(R);V?E+=V:E+=Dt();var I;t===null?I="null":Je(t)?I="array":t!==void 0&&t.$$typeof===n?(I="<"+(L(t.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):I=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",I,E)}var F=rr(t,u,p,R,j);if(F==null)return F;if(x){var z=u.children;if(z!==void 0)if(k)if(Je(z)){for(var le=0;le<z.length;le++)It(z[le],t);Object.freeze&&Object.freeze(z)}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 It(z,t)}return t===o?ir(F):or(F),F}}function sr(t,u,p){return Ft(t,u,p,!0)}function cr(t,u,p){return Ft(t,u,p,!1)}var ur=cr,fr=sr;ie.Fragment=o,ie.jsx=ur,ie.jsxs=fr}()),ie}process.env.NODE_ENV==="production"?Pe.exports=Wt():Pe.exports=Vt();var Re=Pe.exports;const Z=Re.Fragment,l=Re.jsx,m=Re.jsxs,Se={},Mt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Yt(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 y=({name:e,path:n,className:r="",...o})=>{const a="https://punkt-cdn.oslo.kommune.no/9.0/icons/",[s,i]=N.useState(null);return N.useEffect(()=>{if(!e)return;Yt(e,n||a).then(f=>i(f))},[e,n,a]),s?l("span",{className:`pkt-icon ${r}`,dangerouslySetInnerHTML:{__html:s},...o}):null},Ze=N.forwardRef(({children:e,className:n,skin:r="info",closeAlert:o=!1,onClose:a,title:s,date:i,ariaLive:c="polite",slim:f=!1,...d},h)=>{const v=[n,"pkt-alert",r&&`pkt-alert--${r}`,f&&"pkt-alert--slim"].filter(Boolean).join(" "),[w,C]=N.useState(!0),O=()=>{C(!1),a&&a()};return w?m("div",{...d,className:v,"aria-live":c,ref:h,children:[l(y,{className:"pkt-alert__icon",name:r==="info"?"alert-information":`alert-${r}`}),o&&l("div",{className:"pkt-alert__close",children:l("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:O,children:l(y,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),s&&l("div",{className:"pkt-alert__title",children:s}),l("div",{className:"pkt-alert__text",children:e}),i&&m("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",i]})]}):null}),Jt=N.forwardRef(({href:e,text:n,onClick:r,className:o,...a},s)=>{const i=[o,"pkt-back-link"].filter(Boolean).join(" ");return l("nav",{ref:s,className:i,"aria-label":"Gå tilbake et steg",children:m("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:()=>{r&&r()},...a,children:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),l("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=lr(u);if($t[d])return;$t[d]=!0;var k="";t&&t._owner&&t._owner!==ze.current&&(k=" It was passed a child from "+L(t._owner.type)+"."),ae(t),g('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 It(t,u){{if(typeof t!="object")return;if(Je(t))for(var d=0;d<t.length;d++){var k=t[d];Ke(k)&&Lt(k,u)}else if(Ke(t))t._store&&(t._store.validated=!0);else if(t){var R=D(t);if(typeof R=="function"&&R!==t.entries)for(var j=R.call(t),x;!(x=j.next()).done;)Ke(x.value)&&Lt(x.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===v))d=u.propTypes;else return;if(d){var k=L(u);Hn(d,t.props,"prop",k,t)}else if(u.PropTypes!==void 0&&!qe){qe=!0;var R=L(u);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(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),g("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),g("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}function Ft(t,u,d,k,R,j){{var x=K(t);if(!x){var E="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(E+=" 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=ar(R);V?E+=V:E+=Dt();var I;t===null?I="null":Je(t)?I="array":t!==void 0&&t.$$typeof===n?(I="<"+(L(t.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):I=typeof t,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,E)}var F=rr(t,u,d,R,j);if(F==null)return F;if(x){var z=u.children;if(z!==void 0)if(k)if(Je(z)){for(var le=0;le<z.length;le++)It(z[le],t);Object.freeze&&Object.freeze(z)}else g("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 It(z,t)}return t===o?ir(F):or(F),F}}function sr(t,u,d){return Ft(t,u,d,!0)}function cr(t,u,d){return Ft(t,u,d,!1)}var ur=cr,fr=sr;ie.Fragment=o,ie.jsx=ur,ie.jsxs=fr}()),ie}process.env.NODE_ENV==="production"?Pe.exports=Wt():Pe.exports=Vt();var Re=Pe.exports;const Z=Re.Fragment,l=Re.jsx,m=Re.jsxs,Se={},Mt='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Yt(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 y=({name:e,path:n,className:r="",...o})=>{const a="https://punkt-cdn.oslo.kommune.no/9.2/icons/",[i,s]=N.useState(null);return N.useEffect(()=>{if(!e)return;Yt(e,n||a).then(f=>s(f))},[e,n,a]),i?l("span",{className:`pkt-icon ${r}`,dangerouslySetInnerHTML:{__html:i},...o}):null},Ze=N.forwardRef(({children:e,className:n,skin:r="info",closeAlert:o=!1,onClose:a,title:i,date:s,ariaLive:p="polite",slim:f=!1,...c},h)=>{const v=[n,"pkt-alert",r&&`pkt-alert--${r}`,f&&"pkt-alert--slim"].filter(Boolean).join(" "),[w,C]=N.useState(!0),O=()=>{C(!1),a&&a()};return w?m("div",{...c,className:v,"aria-live":p,ref:h,children:[l(y,{className:"pkt-alert__icon",name:r==="info"?"alert-information":`alert-${r}`}),o&&l("div",{className:"pkt-alert__close",children:l("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:O,children:l(y,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),i&&l("div",{className:"pkt-alert__title",children:i}),l("div",{className:"pkt-alert__text",children:e}),s&&m("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",s]})]}):null}),Jt=N.forwardRef(({href:e,text:n,onClick:r,className:o,...a},i)=>{const s=[o,"pkt-back-link"].filter(Boolean).join(" ");return l("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:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),l("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 <`+p+">.")}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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Oe.apply(this,arguments)}var Qe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qe||(Qe={}));function A(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:o=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),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 o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),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,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function Ht(e,n){n===void 0&&(n="/");let{pathname:r,search:o="",hash:a=""}=typeof e=="string"?et(e):e;return{pathname:r?r.startsWith("/")?r:zt(r,n):n,search:qt(o),hash:Kt(a)}}function zt(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,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. 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,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=et(e):(a=Oe({},e),A(!a.pathname||!a.pathname.includes("?"),De("?","pathname","search",a)),A(!a.pathname||!a.pathname.includes("#"),De("#","pathname","hash",a)),A(!a.search||!a.search.includes("#"),De("#","search","hash",a)));let s=e===""||a.pathname==="",i=s?"/":a.pathname,c;if(o||i==null)c=r;else{let v=n.length-1;if(i.startsWith("..")){let w=i.split("/");for(;w[0]==="..";)w.shift(),v-=1;a.pathname=w.join("/")}c=v>=0?n[v]:"/"}let f=Ht(a,c),d=i&&i!=="/"&&i.endsWith("/"),h=(s||i===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(d||h)&&(f.pathname+="/"),f}const $e=e=>e.join("/").replace(/\/\/+/g,"/"),qt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,at=["post","put","patch","delete"];new Set(at);const Gt=["get",...at];new Set(Gt);/**
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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Oe.apply(this,arguments)}var Qe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qe||(Qe={}));function A(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:o=""}=e;return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),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 o=e.indexOf("?");o>=0&&(n.search=e.substr(o),e=e.substr(0,o)),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,o=e.charAt(r);return o&&o!=="/"?null:e.slice(r)||"/"}function Ht(e,n){n===void 0&&(n="/");let{pathname:r,search:o="",hash:a=""}=typeof e=="string"?et(e):e;return{pathname:r?r.startsWith("/")?r:zt(r,n):n,search:qt(o),hash:Kt(a)}}function zt(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,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+n+"` field ["+JSON.stringify(o)+"]. 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,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=et(e):(a=Oe({},e),A(!a.pathname||!a.pathname.includes("?"),De("?","pathname","search",a)),A(!a.pathname||!a.pathname.includes("#"),De("#","pathname","hash",a)),A(!a.search||!a.search.includes("#"),De("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,p;if(o||s==null)p=r;else{let v=n.length-1;if(s.startsWith("..")){let w=s.split("/");for(;w[0]==="..";)w.shift(),v-=1;a.pathname=w.join("/")}p=v>=0?n[v]:"/"}let f=Ht(a,p),c=s&&s!=="/"&&s.endsWith("/"),h=(i||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(c||h)&&(f.pathname+="/"),f}const $e=e=>e.join("/").replace(/\/\/+/g,"/"),qt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,at=["post","put","patch","delete"];new Set(at);const Gt=["get",...at];new Set(Gt);/**
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 <`+p+">.")}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 Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Le.apply(this,arguments)}const me=g.createContext(null);process.env.NODE_ENV!=="production"&&(me.displayName="DataRouter");const lt=g.createContext(null);process.env.NODE_ENV!=="production"&&(lt.displayName="DataRouterState");const Xt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Xt.displayName="Await");const Q=g.createContext(null);process.env.NODE_ENV!=="production"&&(Q.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 Zt=g.createContext(null);process.env.NODE_ENV!=="production"&&(Zt.displayName="RouteError");function Qt(e,n){let{relative:r}=n===void 0?{}:n;Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useHref() may be used only in the context of a <Router> component."):A(!1));let{basename:o,navigator:a}=g.useContext(Q),{hash:s,pathname:i,search:c}=he(e,{relative:r}),f=i;return o!=="/"&&(f=i==="/"?o:$e([o,i])),a.createHref({pathname:f,search:c,hash:s})}function Fe(){return g.useContext(Ie)!=null}function se(){return Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useLocation() may be used only in the context of a <Router> component."):A(!1)),g.useContext(Ie).location}const ot="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function it(e){g.useContext(Q).static||g.useLayoutEffect(e)}function en(){let{isDataRoute:e}=g.useContext(re);return e?ln():tn()}function tn(){Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useNavigate() may be used only in the context of a <Router> component."):A(!1));let e=g.useContext(me),{basename:n,navigator:r}=g.useContext(Q),{matches:o}=g.useContext(re),{pathname:a}=se(),s=JSON.stringify(nt(o).map(f=>f.pathnameBase)),i=g.useRef(!1);return it(()=>{i.current=!0}),g.useCallback(function(f,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&de(i.current,ot),!i.current)return;if(typeof f=="number"){r.go(f);return}let h=rt(f,JSON.parse(s),a,d.relative==="path");e==null&&n!=="/"&&(h.pathname=h.pathname==="/"?n:$e([n,h.pathname])),(d.replace?r.replace:r.push)(h,d.state,d)},[n,r,s,a,e])}function he(e,n){let{relative:r}=n===void 0?{}:n,{matches:o}=g.useContext(re),{pathname:a}=se(),s=JSON.stringify(nt(o).map(i=>i.pathnameBase));return g.useMemo(()=>rt(e,JSON.parse(s),a,r==="path"),[e,s,a,r])}var Ae;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Ae||(Ae={}));var ke;(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"})(ke||(ke={}));function st(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function nn(e){let n=g.useContext(me);return n||(process.env.NODE_ENV!=="production"?A(!1,st(e)):A(!1)),n}function rn(e){let n=g.useContext(re);return n||(process.env.NODE_ENV!=="production"?A(!1,st(e)):A(!1)),n}function ct(e){let n=rn(e),r=n.matches[n.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?A(!1,e+' can only be used on routes that contain a unique "id"'):A(!1)),r.route.id}function an(){return ct(ke.UseRouteId)}function ln(){let{router:e}=nn(Ae.UseNavigateStable),n=ct(ke.UseNavigateStable),r=g.useRef(!1);return it(()=>{r.current=!0}),g.useCallback(function(a,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&de(r.current,ot),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Le({fromRouteId:n},s)))},[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 Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Le.apply(this,arguments)}const me=b.createContext(null);process.env.NODE_ENV!=="production"&&(me.displayName="DataRouter");const lt=b.createContext(null);process.env.NODE_ENV!=="production"&&(lt.displayName="DataRouterState");const Xt=b.createContext(null);process.env.NODE_ENV!=="production"&&(Xt.displayName="Await");const Q=b.createContext(null);process.env.NODE_ENV!=="production"&&(Q.displayName="Navigation");const Ie=b.createContext(null);process.env.NODE_ENV!=="production"&&(Ie.displayName="Location");const re=b.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(re.displayName="Route");const Zt=b.createContext(null);process.env.NODE_ENV!=="production"&&(Zt.displayName="RouteError");function Qt(e,n){let{relative:r}=n===void 0?{}:n;Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useHref() may be used only in the context of a <Router> component."):A(!1));let{basename:o,navigator:a}=b.useContext(Q),{hash:i,pathname:s,search:p}=he(e,{relative:r}),f=s;return o!=="/"&&(f=s==="/"?o:$e([o,s])),a.createHref({pathname:f,search:p,hash:i})}function Fe(){return b.useContext(Ie)!=null}function se(){return Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useLocation() may be used only in the context of a <Router> component."):A(!1)),b.useContext(Ie).location}const ot="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function it(e){b.useContext(Q).static||b.useLayoutEffect(e)}function en(){let{isDataRoute:e}=b.useContext(re);return e?ln():tn()}function tn(){Fe()||(process.env.NODE_ENV!=="production"?A(!1,"useNavigate() may be used only in the context of a <Router> component."):A(!1));let e=b.useContext(me),{basename:n,navigator:r}=b.useContext(Q),{matches:o}=b.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(o).map(f=>f.pathnameBase)),s=b.useRef(!1);return it(()=>{s.current=!0}),b.useCallback(function(f,c){if(c===void 0&&(c={}),process.env.NODE_ENV!=="production"&&de(s.current,ot),!s.current)return;if(typeof f=="number"){r.go(f);return}let h=rt(f,JSON.parse(i),a,c.relative==="path");e==null&&n!=="/"&&(h.pathname=h.pathname==="/"?n:$e([n,h.pathname])),(c.replace?r.replace:r.push)(h,c.state,c)},[n,r,i,a,e])}function he(e,n){let{relative:r}=n===void 0?{}:n,{matches:o}=b.useContext(re),{pathname:a}=se(),i=JSON.stringify(nt(o).map(s=>s.pathnameBase));return b.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 ke;(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"})(ke||(ke={}));function st(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function nn(e){let n=b.useContext(me);return n||(process.env.NODE_ENV!=="production"?A(!1,st(e)):A(!1)),n}function rn(e){let n=b.useContext(re);return n||(process.env.NODE_ENV!=="production"?A(!1,st(e)):A(!1)),n}function ct(e){let n=rn(e),r=n.matches[n.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?A(!1,e+' can only be used on routes that contain a unique "id"'):A(!1)),r.route.id}function an(){return ct(ke.UseRouteId)}function ln(){let{router:e}=nn(Ae.UseNavigateStable),n=ct(ke.UseNavigateStable),r=b.useRef(!1);return it(()=>{r.current=!0}),b.useCallback(function(a,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&de(r.current,ot),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Le({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 <`+p+">.")}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 ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ne.apply(this,arguments)}function Ue(e,n){if(e==null)return{};var r={},o=Object.keys(e),a,s;for(s=0;s<o.length;s++)a=o[s],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}const ve="get",_e="application/x-www-form-urlencoded";function be(e){return e!=null&&typeof e.tagName=="string"}function on(e){return be(e)&&e.tagName.toLowerCase()==="button"}function sn(e){return be(e)&&e.tagName.toLowerCase()==="form"}function cn(e){return be(e)&&e.tagName.toLowerCase()==="input"}function un(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fn(e,n){return e.button===0&&(!n||n==="_self")&&!un(e)}let ge=null;function pn(){if(ge===null)try{new FormData(document.createElement("form"),0),ge=!1}catch{ge=!0}return ge}const dn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Be(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 "'+_e+'"')),null):e}function mn(e,n){let r,o,a,s,i;if(sn(e)){let c=e.getAttribute("action");o=c?je(c,n):null,r=e.getAttribute("method")||ve,a=Be(e.getAttribute("enctype"))||_e,s=new FormData(e)}else if(on(e)||cn(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(o=f?je(f,n):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||ve,a=Be(e.getAttribute("formenctype"))||Be(c.getAttribute("enctype"))||_e,s=new FormData(c,e),!pn()){let{name:d,type:h,value:v}=e;if(h==="image"){let w=d?d+".":"";s.append(w+"x","0"),s.append(w+"y","0")}else d&&s.append(d,v)}}else{if(be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ve,o=null,a=_e,i=e}return s&&a==="text/plain"&&(i=s,s=void 0),{action:o,method:r.toLowerCase(),encType:a,formData:s,body:i}}const hn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],kn=["aria-current","caseSensitive","className","end","style","to","children"],vn=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const _n=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=g.forwardRef(function(n,r){let{onClick:o,relative:a,reloadDocument:s,replace:i,state:c,target:f,to:d,preventScrollReset:h}=n,v=Ue(n,hn),{basename:w}=g.useContext(Q),C,O=!1;if(typeof d=="string"&&bn.test(d)&&(C=d,_n))try{let b=new URL(window.location.href),$=d.startsWith("//")?new URL(b.protocol+d):new URL(d),U=je($.pathname,w);$.origin===b.origin&&U!=null?d=U+$.search+$.hash:O=!0}catch{process.env.NODE_ENV!=="production"&&de(!1,'<Link to="'+d+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let S=Qt(d,{relative:a}),D=wn(d,{replace:i,state:c,target:f,preventScrollReset:h,relative:a});function P(b){o&&o(b),b.defaultPrevented||D(b)}return g.createElement("a",ne({},v,{href:C||S,onClick:O||s?o:P,ref:r,target:f}))});process.env.NODE_ENV!=="production"&&(Ne.displayName="Link");const gn=g.forwardRef(function(n,r){let{"aria-current":o="page",caseSensitive:a=!1,className:s="",end:i=!1,style:c,to:f,children:d}=n,h=Ue(n,kn),v=he(f,{relative:h.relative}),w=se(),C=g.useContext(lt),{navigator:O}=g.useContext(Q),S=O.encodeLocation?O.encodeLocation(v).pathname:v.pathname,D=w.pathname,P=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;a||(D=D.toLowerCase(),P=P?P.toLowerCase():null,S=S.toLowerCase());let b=D===S||!i&&D.startsWith(S)&&D.charAt(S.length)==="/",$=P!=null&&(P===S||!i&&P.startsWith(S)&&P.charAt(S.length)==="/"),U=b?o:void 0,B;typeof s=="function"?B=s({isActive:b,isPending:$}):B=[s,b?"active":null,$?"pending":null].filter(Boolean).join(" ");let W=typeof c=="function"?c({isActive:b,isPending:$}):c;return g.createElement(Ne,ne({},h,{"aria-current":U,className:B,ref:r,style:W,to:f}),typeof d=="function"?d({isActive:b,isPending:$}):d)});process.env.NODE_ENV!=="production"&&(gn.displayName="NavLink");const Nn=g.forwardRef((e,n)=>{let r=Cn();return g.createElement(ft,ne({},e,{submit:r,ref:n}))});process.env.NODE_ENV!=="production"&&(Nn.displayName="Form");const ft=g.forwardRef((e,n)=>{let{reloadDocument:r,replace:o,method:a=ve,action:s,onSubmit:i,submit:c,relative:f,preventScrollReset:d}=e,h=Ue(e,vn),v=a.toLowerCase()==="get"?"get":"post",w=Pn(s,{relative:f}),C=O=>{if(i&&i(O),O.defaultPrevented)return;O.preventDefault();let S=O.nativeEvent.submitter,D=(S==null?void 0:S.getAttribute("formmethod"))||a;c(S||O.currentTarget,{method:D,replace:o,relative:f,preventScrollReset:d})};return g.createElement("form",ne({ref:n,method:v,action:w,onSubmit:r?i:C},h))});process.env.NODE_ENV!=="production"&&(ft.displayName="FormImpl"),process.env.NODE_ENV;var We;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(We||(We={}));var pt;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pt||(pt={}));function yn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function En(e){let n=g.useContext(me);return n||(process.env.NODE_ENV!=="production"?A(!1,yn(e)):A(!1)),n}function wn(e,n){let{target:r,replace:o,state:a,preventScrollReset:s,relative:i}=n===void 0?{}:n,c=en(),f=se(),d=he(e,{relative:i});return g.useCallback(h=>{if(fn(h,r)){h.preventDefault();let v=o!==void 0?o:Te(f)===Te(d);c(e,{replace:v,state:a,preventScrollReset:s,relative:i})}},[f,c,d,o,a,r,e,s,i])}function xn(){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 Cn(){let{router:e}=En(We.UseSubmit),{basename:n}=g.useContext(Q),r=an();return g.useCallback(function(o,a){a===void 0&&(a={}),xn();let{action:s,method:i,encType:c,formData:f,body:d}=mn(o,n);e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:f,body:d,formMethod:a.method||i,formEncType:a.encType||c,replace:a.replace,fromRouteId:r})},[e,n,r])}function Pn(e,n){let{relative:r}=n===void 0?{}:n,{basename:o}=g.useContext(Q),a=g.useContext(re);a||(process.env.NODE_ENV!=="production"?A(!1,"useFormAction must be used inside a RouteContext"):A(!1));let[s]=a.matches.slice(-1),i=ne({},he(e||".",{relative:r})),c=se();if(e==null&&(i.search=c.search,i.hash=c.hash,s.route.index)){let f=new URLSearchParams(i.search);f.delete("index"),i.search=f.toString()?"?"+f.toString():""}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(i.pathname=i.pathname==="/"?o:$e([o,i.pathname])),Te(i)}const Rn=N.forwardRef(({breadcrumbs:e,navigationType:n,className:r,...o},a)=>{const s=e.slice(0,4),i=s[s.length-2],c=[r,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m("nav",{ref:a,"aria-label":"brødsmulemeny",className:c,children:[l("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:s.map((f,d)=>l("li",{className:"pkt-breadcrumbs__item",children:d===s.length-1?l("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:l("span",{className:"pkt-breadcrumbs__text",children:f.text})}):n==="router"?m(Ne,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...o,children:[l(y,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l("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",...o,children:[l(y,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${d}`))}),n==="router"?m(Ne,{to:i.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...o,children:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l("span",{className:"pkt-breadcrumbs__text",children:i.text})]}):m("a",{href:i.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...o,children:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l("span",{className:"pkt-breadcrumbs__text",children:i.text})]})]})}),ce=N.forwardRef(({children:e,className:n,iconName:r="user",secondIconName:o="user",size:a="medium",skin:s="primary",type:i="button",variant:c="label-only",color:f,...d},h)=>{const v=[n,"pkt-btn",a&&`pkt-btn--${a}`,s&&`pkt-btn--${s}`,c&&`pkt-btn--${c}`,f&&`pkt-btn--${f}`].filter(Boolean).join(" ");return m("button",{...d,className:v,type:i,ref:h,children:[c!=="label-only"&&l(y,{className:"pkt-btn__icon",name:r}),l("span",{className:"pkt-btn__text",children:e}),c==="icons-right-and-left"&&l(y,{className:"pkt-btn__icon",name:o})]})});ce.displayName="PktButton";const dt=N.forwardRef(({id:e,hasTile:n=!1,disabled:r=!1,label:o,checkHelptext:a,hasError:s=!1,className:i,...c},f)=>{const d=[i,"pkt-input-check"].filter(Boolean).join(" ");return l("div",{className:d,children:m("div",{className:`pkt-input-check__input ${n?"pkt-input-check__input--tile":""}`,children:[l("input",{ref:f,className:`pkt-input-check__input-checkbox ${s?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",id:e,disabled:r,...c}),m("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[o,a&&l("div",{className:"pkt-input-check__input-helptext",children:a})]})]})})});dt.displayName="PktCheckbox";const Sn=({columnOne:e,columnTwo:n,socialLinks:r,className:o})=>{var s,i;const a=[o,"pkt-footer"].filter(Boolean).join(" ");return l("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:[l("h2",{className:"pkt-footer__title",children:e.title}),m("ul",{className:"pkt-footer__list",children:[e.text&&l("li",{className:"pkt-footer__text",children:e.text}),(s=e.links)==null?void 0:s.map((c,f)=>l("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:[l(y,{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:[l("h2",{className:"pkt-footer__title",children:n.title}),m("ul",{className:"pkt-footer__list",children:[n.text&&l("li",{className:"pkt-footer__text",children:n.text}),(i=n.links)==null?void 0:i.map((c,f)=>l("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:[l(y,{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:[l("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m("ul",{className:"pkt-footer__list",children:[l("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),r&&m("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[l("div",{className:"pkt-footer__social-languages",children:r.filter(c=>c.language).map((c,f)=>l("div",{className:"pkt-footer__social-language",children:l("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}`))}),l("div",{className:"pkt-footer__social-icons",children:r.filter(c=>c.iconName).map((c,f)=>l(N.Fragment,{children:l("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:l(y,{className:"pkt-footer__social-icon",name:c.iconName})})},`sociallinks-${f}`))})]})]})})},On=({links:e=[],className:n})=>{const r=[n,"pkt-footer-simple"].filter(Boolean).join(" ");return l("footer",{className:r,"data-mode":"dark",children:l("div",{className:"pkt-footer-simple__container",children:m("ul",{className:"pkt-footer-simple__list",children:[e.map((o,a)=>l("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:`pkt-footer-simple__link ${o.external?" pkt-link--external":""}`,href:o.href,target:o.openInNewTab?"_blank":"_self",rel:o.openInNewTab?"noopener noreferrer":void 0,children:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),o.text]})},a)),l("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:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var mt={exports:{}};/*!
54
+ */function ne(){return ne=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ne.apply(this,arguments)}function Ue(e,n){if(e==null)return{};var r={},o=Object.keys(e),a,i;for(i=0;i<o.length;i++)a=o[i],!(n.indexOf(a)>=0)&&(r[a]=e[a]);return r}const ve="get",_e="application/x-www-form-urlencoded";function be(e){return e!=null&&typeof e.tagName=="string"}function on(e){return be(e)&&e.tagName.toLowerCase()==="button"}function sn(e){return be(e)&&e.tagName.toLowerCase()==="form"}function cn(e){return be(e)&&e.tagName.toLowerCase()==="input"}function un(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fn(e,n){return e.button===0&&(!n||n==="_self")&&!un(e)}let ge=null;function pn(){if(ge===null)try{new FormData(document.createElement("form"),0),ge=!1}catch{ge=!0}return ge}const dn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Be(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 "'+_e+'"')),null):e}function mn(e,n){let r,o,a,i,s;if(sn(e)){let p=e.getAttribute("action");o=p?je(p,n):null,r=e.getAttribute("method")||ve,a=Be(e.getAttribute("enctype"))||_e,i=new FormData(e)}else if(on(e)||cn(e)&&(e.type==="submit"||e.type==="image")){let p=e.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||p.getAttribute("action");if(o=f?je(f,n):null,r=e.getAttribute("formmethod")||p.getAttribute("method")||ve,a=Be(e.getAttribute("formenctype"))||Be(p.getAttribute("enctype"))||_e,i=new FormData(p,e),!pn()){let{name:c,type:h,value:v}=e;if(h==="image"){let w=c?c+".":"";i.append(w+"x","0"),i.append(w+"y","0")}else c&&i.append(c,v)}}else{if(be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ve,o=null,a=_e,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:o,method:r.toLowerCase(),encType:a,formData:i,body:s}}const hn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],kn=["aria-current","caseSensitive","className","end","style","to","children"],vn=["reloadDocument","replace","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const _n=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=b.forwardRef(function(n,r){let{onClick:o,relative:a,reloadDocument:i,replace:s,state:p,target:f,to:c,preventScrollReset:h}=n,v=Ue(n,hn),{basename:w}=b.useContext(Q),C,O=!1;if(typeof c=="string"&&bn.test(c)&&(C=c,_n))try{let g=new URL(window.location.href),$=c.startsWith("//")?new URL(g.protocol+c):new URL(c),U=je($.pathname,w);$.origin===g.origin&&U!=null?c=U+$.search+$.hash:O=!0}catch{process.env.NODE_ENV!=="production"&&de(!1,'<Link to="'+c+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let S=Qt(c,{relative:a}),D=wn(c,{replace:s,state:p,target:f,preventScrollReset:h,relative:a});function P(g){o&&o(g),g.defaultPrevented||D(g)}return b.createElement("a",ne({},v,{href:C||S,onClick:O||i?o:P,ref:r,target:f}))});process.env.NODE_ENV!=="production"&&(Ne.displayName="Link");const gn=b.forwardRef(function(n,r){let{"aria-current":o="page",caseSensitive:a=!1,className:i="",end:s=!1,style:p,to:f,children:c}=n,h=Ue(n,kn),v=he(f,{relative:h.relative}),w=se(),C=b.useContext(lt),{navigator:O}=b.useContext(Q),S=O.encodeLocation?O.encodeLocation(v).pathname:v.pathname,D=w.pathname,P=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;a||(D=D.toLowerCase(),P=P?P.toLowerCase():null,S=S.toLowerCase());let g=D===S||!s&&D.startsWith(S)&&D.charAt(S.length)==="/",$=P!=null&&(P===S||!s&&P.startsWith(S)&&P.charAt(S.length)==="/"),U=g?o:void 0,B;typeof i=="function"?B=i({isActive:g,isPending:$}):B=[i,g?"active":null,$?"pending":null].filter(Boolean).join(" ");let W=typeof p=="function"?p({isActive:g,isPending:$}):p;return b.createElement(Ne,ne({},h,{"aria-current":U,className:B,ref:r,style:W,to:f}),typeof c=="function"?c({isActive:g,isPending:$}):c)});process.env.NODE_ENV!=="production"&&(gn.displayName="NavLink");const Nn=b.forwardRef((e,n)=>{let r=Cn();return b.createElement(ft,ne({},e,{submit:r,ref:n}))});process.env.NODE_ENV!=="production"&&(Nn.displayName="Form");const ft=b.forwardRef((e,n)=>{let{reloadDocument:r,replace:o,method:a=ve,action:i,onSubmit:s,submit:p,relative:f,preventScrollReset:c}=e,h=Ue(e,vn),v=a.toLowerCase()==="get"?"get":"post",w=Pn(i,{relative:f}),C=O=>{if(s&&s(O),O.defaultPrevented)return;O.preventDefault();let S=O.nativeEvent.submitter,D=(S==null?void 0:S.getAttribute("formmethod"))||a;p(S||O.currentTarget,{method:D,replace:o,relative:f,preventScrollReset:c})};return b.createElement("form",ne({ref:n,method:v,action:w,onSubmit:r?s:C},h))});process.env.NODE_ENV!=="production"&&(ft.displayName="FormImpl"),process.env.NODE_ENV;var We;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(We||(We={}));var pt;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(pt||(pt={}));function yn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function En(e){let n=b.useContext(me);return n||(process.env.NODE_ENV!=="production"?A(!1,yn(e)):A(!1)),n}function wn(e,n){let{target:r,replace:o,state:a,preventScrollReset:i,relative:s}=n===void 0?{}:n,p=en(),f=se(),c=he(e,{relative:s});return b.useCallback(h=>{if(fn(h,r)){h.preventDefault();let v=o!==void 0?o:Te(f)===Te(c);p(e,{replace:v,state:a,preventScrollReset:i,relative:s})}},[f,p,c,o,a,r,e,i,s])}function xn(){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 Cn(){let{router:e}=En(We.UseSubmit),{basename:n}=b.useContext(Q),r=an();return b.useCallback(function(o,a){a===void 0&&(a={}),xn();let{action:i,method:s,encType:p,formData:f,body:c}=mn(o,n);e.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:f,body:c,formMethod:a.method||s,formEncType:a.encType||p,replace:a.replace,fromRouteId:r})},[e,n,r])}function Pn(e,n){let{relative:r}=n===void 0?{}:n,{basename:o}=b.useContext(Q),a=b.useContext(re);a||(process.env.NODE_ENV!=="production"?A(!1,"useFormAction must be used inside a RouteContext"):A(!1));let[i]=a.matches.slice(-1),s=ne({},he(e||".",{relative:r})),p=se();if(e==null&&(s.search=p.search,s.hash=p.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"),o!=="/"&&(s.pathname=s.pathname==="/"?o:$e([o,s.pathname])),Te(s)}const Rn=N.forwardRef(({breadcrumbs:e,navigationType:n,className:r,...o},a)=>{const i=e.slice(0,4),s=i[i.length-2],p=[r,"pkt-breadcrumbs"].filter(Boolean).join(" ");return m("nav",{ref:a,"aria-label":"brødsmulemeny",className:p,children:[l("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:i.map((f,c)=>l("li",{className:"pkt-breadcrumbs__item",children:c===i.length-1?l("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:l("span",{className:"pkt-breadcrumbs__text",children:f.text})}):n==="router"?m(Ne,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...o,children:[l(y,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l("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",...o,children:[l(y,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),l("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${c}`))}),n==="router"?m(Ne,{to:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...o,children:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l("span",{className:"pkt-breadcrumbs__text",children:s.text})]}):m("a",{href:s.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...o,children:[l(y,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),l("span",{className:"pkt-breadcrumbs__text",children:s.text})]})]})}),ce=N.forwardRef(({children:e,className:n,iconName:r="user",secondIconName:o="user",size:a="medium",skin:i="primary",type:s="button",variant:p="label-only",color:f,...c},h)=>{const v=[n,"pkt-btn",a&&`pkt-btn--${a}`,i&&`pkt-btn--${i}`,p&&`pkt-btn--${p}`,f&&`pkt-btn--${f}`].filter(Boolean).join(" ");return m("button",{...c,className:v,type:s,ref:h,children:[p!=="label-only"&&l(y,{className:"pkt-btn__icon",name:r}),l("span",{className:"pkt-btn__text",children:e}),p==="icons-right-and-left"&&l(y,{className:"pkt-btn__icon",name:o})]})});ce.displayName="PktButton";const dt=N.forwardRef(({id:e,hasTile:n=!1,disabled:r=!1,label:o,checkHelptext:a,hasError:i=!1,className:s,...p},f)=>{const c=[s,"pkt-input-check"].filter(Boolean).join(" ");return l("div",{className:c,children:m("div",{className:`pkt-input-check__input ${n?"pkt-input-check__input--tile":""}`,children:[l("input",{ref:f,className:`pkt-input-check__input-checkbox ${i?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",id:e,disabled:r,...p}),m("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[o,a&&l("div",{className:"pkt-input-check__input-helptext",children:a})]})]})})});dt.displayName="PktCheckbox";const Sn=({columnOne:e,columnTwo:n,socialLinks:r,className:o,personvernOgInfoLink:a="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:i="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var p,f;const s=[o,"pkt-footer"].filter(Boolean).join(" ");return l("footer",{className:s,"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:[l("h2",{className:"pkt-footer__title",children:e.title}),m("ul",{className:"pkt-footer__list",children:[e.text&&l("li",{className:"pkt-footer__text",children:e.text}),(p=e.links)==null?void 0:p.map((c,h)=>l("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:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${h}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l("h2",{className:"pkt-footer__title",children:n.title}),m("ul",{className:"pkt-footer__list",children:[n.text&&l("li",{className:"pkt-footer__text",children:n.text}),(f=n.links)==null?void 0:f.map((c,h)=>l("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:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),c.text]})},`links-${h}`))]})]}),m("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[l("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),m("ul",{className:"pkt-footer__list",children:[l("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:a,children:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l("li",{className:"pkt-footer__list-item",children:m("a",{className:"pkt-footer__link",href:i,children:[l(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),r&&m("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[l("div",{className:"pkt-footer__social-languages",children:r.filter(c=>c.language).map((c,h)=>l("div",{className:"pkt-footer__social-language",children:l("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-${h}`))}),l("div",{className:"pkt-footer__social-icons",children:r.filter(c=>c.iconName).map((c,h)=>l(N.Fragment,{children:l("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:l(y,{className:"pkt-footer__social-icon",name:c.iconName})})},`sociallinks-${h}`))})]})]})})},On=({links:e=[],personvernOgInfoLink:n="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:r="https://www.oslo.kommune.no/tilgjengelighet/",className:o})=>{const a=[o,"pkt-footer-simple"].filter(Boolean).join(" ");return l("footer",{className:a,"data-mode":"dark",children:l("div",{className:"pkt-footer-simple__container",children:m("ul",{className:"pkt-footer-simple__list",children:[e.map((i,s)=>l("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:`pkt-footer-simple__link ${i.external?" pkt-link--external":""}`,href:i.href,target:i.openInNewTab?"_blank":"_self",rel:i.openInNewTab?"noopener noreferrer":void 0,children:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),i.text]})},s)),l("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:n,children:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),l("li",{className:"pkt-footer-simple__list-item",children:m("a",{className:"pkt-footer-simple__link",href:r,children:[l(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var mt={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 o=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var i=typeof s;if(i==="string"||i==="number")o.push(s);else if(Array.isArray(s)){if(s.length){var c=r.apply(null,s);c&&o.push(c)}}else if(i==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){o.push(s.toString());continue}for(var f in s)n.call(s,f)&&s[f]&&o.push(f)}}}return o.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(mt);var Tn=mt.exports;const ht=Bt(Tn),jn=N.forwardRef(({logoLink:e="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:o=!0,user:a,userMenu:s,representing:i,userOptions:c,userMenuFooter:f,canChangeRepresentation:d=!0,showMenuButton:h=!1,showLogOutButton:v=!1,openMenu:w,logOut:C,changeRepresentation:O,...S},D)=>{const P=N.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,$]=N.useState(!1),[U,B]=N.useState(0),[W,Y]=N.useState(!1),q=N.useRef(null);N.useEffect(()=>(document.addEventListener("mouseup",K),window.addEventListener("scroll",M),()=>{document.removeEventListener("mouseup",K),window.removeEventListener("scroll",M)}));const J=()=>{Y(!W)},K=_=>{q.current&&!q.current.contains(_.target)&&Y(!1)},M=()=>{if(o){const _=window.pageYOffset||document.documentElement.scrollTop;if(_<0||Math.abs(_-U)<60)return;$(_>U),B(_)}};return m("header",{...S,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ht("pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":o,"pkt-header--hidden":b}),ref:D,children:[m("div",{className:"pkt-header__logo",children:[typeof e=="string"?l("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:e,children:l(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/9.0/logos/"})}):l("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:e,children:l(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/9.0/logos/"})}),l("span",{className:"pkt-header__logo-service",children:n})]}),l("nav",{className:"pkt-header__actions",children:m("ul",{className:"pkt-header__actions-row",children:[h&&l("li",{children:l(ce,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:w,children:"Meny"})}),(a||i)&&m("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${W&&!b?"pkt-header--open-dropdown":""}`,ref:q,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":W,onClick:J,children:[l(y,{name:"user",className:"pkt-btn__icon"}),l("span",{className:"pkt-header__user-fullname",children:(i==null?void 0:i.name)||(a==null?void 0:a.name)}),l("span",{className:"pkt-header__user-shortname",children:(i==null?void 0:i.shortname)||(a==null?void 0:a.shortname)}),l(y,{name:"chevron-thin-down",className:"pkt-btn--closed"}),l(y,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[a&&m("li",{children:[l("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),l("div",{className:"pkt-user-menu__name",children:a.name}),a.lastLoggedIn&&m("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",l("time",{children:P})]})]}),s&&l("li",{children:l("ul",{className:"pkt-list",children:s.map((_,L)=>l("li",{children:typeof _.target=="string"?m("a",{href:_.target,className:"pkt-link",children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]})},`userMenu-${L}`))})}),(i||d)&&m("li",{children:[i&&m(Z,{children:[l("div",{className:"pkt-user-menu__label",children:"Representerer"}),l("div",{className:"pkt-user-menu__name",children:i.name}),i.orgNumber&&m("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",i.orgNumber]})]}),l("ul",{className:"pkt-list mt-size-16",children:d&&l("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:O,children:[l(y,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),l("li",{children:l("ul",{className:"pkt-list",children:(c||!v)&&m(Z,{children:[c==null?void 0:c.map((_,L)=>l("li",{children:typeof _.target=="string"?m("a",{href:_.target,className:"pkt-link",children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]})},`userOptions-${L}`)),!v&&l("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:C,children:[l(y,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),f&&l("li",{className:"footer",children:l("ul",{className:"pkt-list-horizontal bordered",children:f.map((_,L)=>l("li",{children:typeof _.target=="string"?l("a",{href:_.target,className:"pkt-link",children:_.title}):l("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:_.title})},`userMenuFooter-${L}`))})})]})]}),v&&l("li",{children:l(ce,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:C,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),kt=N.forwardRef(({label:e,id:n,children:r,...o},a)=>m("div",{className:"pkt-form-group",children:[l("label",{htmlFor:n,className:"pkt-form-label",children:e}),l("input",{className:"pkt-form-input",id:n,...o,ref:a}),r]}));kt.displayName="PktInput";const ue=N.forwardRef(({forId:e,label:n,helptext:r,helptextDropdown:o,helptextDropdownButton:a,optional:s,optionalText:i="Valgfritt",required:c,requiredText:f="Må fylles ut",hasError:d,errorMessage:h,disabled:v,inline:w,ariaDescribedby:C,useWrapper:O=!0,children:S,className:D,hasFieldset:P=!1},b)=>{const[$,U]=N.useState(!1),B=()=>{U(!$)},W=()=>s?"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":"",Y=s?i:c?f:"",q=v?"pkt-inputwrapper--disabled":"",J=w?"pkt-inputwrapper--inline":"",K=d?"pkt-inputwrapper--error":"",M=!!o&&o!=="",_=a||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',L=P?"fieldset":M?"div":"label",H=P?"legend":M?"h2":"span",G=C||(r?`${e}-helptext`:void 0);return m("div",{className:["pkt-inputwrapper",D,q,J,K].join(" "),ref:b,children:[O?l(Z,{children:m(L,{htmlFor:e,"aria-describedby":M?"":C,className:`pkt-inputwrapper__label${P?" pkt-inputwrapper__fieldset":""}`,children:[m(H,{id:`${e}-label`,className:`${P?" pkt-inputwrapper__legend":""}`,children:[n,Y!==""&&l("span",{className:W(),children:Y})]}),r&&l("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,dangerouslySetInnerHTML:{__html:r}}),M&&o!==""&&m("div",{children:[l(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:B,children:l("span",{dangerouslySetInnerHTML:{__html:_}})}),l("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:l("span",{dangerouslySetInnerHTML:{__html:o}})}),l("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":G,children:n})]}),l(Z,{children:S})]})}):m(Z,{children:[l("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":G,id:`${e}-label`,children:n}),S]}),d&&h&&l("div",{children:l(Ze,{skin:"error","aria-live":"assertive",id:`${e}-error`,slim:!0,children:h})})]})});ue.displayName="PktInputWrapper";const vt=N.forwardRef(({children:e,className:n,iconName:r="user",openInNewTab:o=!1,skin:a="normal",href:s="#",external:i=!1,title:c},f)=>{const d=[n,"pkt-linkcard",a&&`pkt-linkcard--${a}`].filter(Boolean).join(" ");return m("a",{href:s,className:`pkt-linkcard pkt-link ${d}`,target:o?"_blank":"_self",rel:o?"noopener noreferrer":void 0,ref:f,children:[l(y,{className:"pkt-link__icon",name:r}),m("div",{className:"pkt-linkcard__content",children:[l("div",{className:`pkt-linkcard__title ${i?"pkt-link pkt-link--external":""}`,children:c}),l("div",{className:"pkt-linkcard__text",children:e})]})]})});vt.displayName="PktLinkCard";const Dn=({children:e,skin:n="beige",title:r,className:o,...a})=>{const s=["pkt-messagebox",n&&`pkt-messagebox--${n}`,o].filter(Boolean).join(" ");return m("div",{...a,className:s,children:[l("div",{className:"pkt-messagebox__title",children:r}),l("div",{className:"pkt-messagebox__text",children:e})]})},_t=N.forwardRef(({id:e,name:n,label:r,className:o,hasTile:a=!1,disabled:s=!1,checkHelptext:i,hasError:c=!1,...f},d)=>{const h=[o,"pkt-input-check"].filter(Boolean).join(" ");return l("div",{className:h,children:m("div",{className:`pkt-input-check__input ${a?"pkt-input-check__input--tile":""}`,children:[l("input",{ref:d,className:`pkt-input-check__input-checkbox ${c?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:s,name:n,...f}),m("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[r,i&&l("div",{className:"pkt-input-check__input-helptext",children:i})]})]})})});_t.displayName="PktRadioButton";const $n=N.forwardRef(({ariaDescribedby:e,ariaLabelledby:n,children:r,className:o,disabled:a=!1,errorMessage:s,hasError:i,helptext:c,helptextDropdown:f,helptextDropdownButton:d,id:h,inline:v=!1,fullwidth:w=!1,label:C,name:O,optional:S=!1,optionalText:D,required:P=!1,requiredText:b,...$},U)=>{const B=[o,"pkt-select"].join(" ");return l(ue,{className:B,forId:h,label:C,helptext:c,helptextDropdown:f,helptextDropdownButton:d,optional:S,optionalText:D,required:P,requiredText:b,hasError:i,errorMessage:s,disabled:a,inline:v,ariaDescribedby:e,children:l("select",{ref:U,className:`pkt-input ${w?"pkt-input--fullwidth":""}`,"aria-invalid":i,"aria-errormessage":`${h}-error`,"aria-labelledby":n||`${h}-label`,"aria-required":P,disabled:a,id:h,name:O||h,...$,children:r})})}),Ln=({isResponsive:e,children:n})=>e?l("div",{className:"pkt-table-container",children:n}):l(Z,{children:n}),In=({isResponsive:e,modifiers:{info:n=!1,success:r=!1,strong:o=!1,shadow:a=!1}={},children:s})=>l(Ln,{isResponsive:e,children:l("table",{className:ht("pkt-table",{"pkt-table--info":n,"pkt-table--success":r,"pkt-table--strong":o,"pkt-table--shadow":a}),children:s})}),Fn=({children:e})=>l("td",{className:"pkt-table__th",children:e}),An=({children:e})=>l("th",{className:"pkt-table__th",children:e}),bt=N.forwardRef(({children:e,className:n,skin:r="blue",textStyle:o="normal-text",size:a="medium",closeTag:s=!1,iconName:i="",type:c="button",ariaLabel:f="close",onClick:d=()=>{}},h)=>{const[v,w]=N.useState(!1),C=P=>{w(!0),d(P)},O=["pkt-tag",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,o&&`pkt-tag--${o}`,n].filter(Boolean).join(" "),S=["pkt-tag","pkt-btn","pkt-btn--tertiary",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,o&&`pkt-tag--${o}`,i&&s?"pkt-btn--icons-right-and-left":null,s&&!i?"pkt-btn--icon-right":null,n].filter(Boolean).join(" "),D=!v;return s&&i?l(Z,{children:D&&m("button",{className:S,type:c,"aria-label":f,onClick:C,ref:h,children:[l(y,{className:"pkt-tag__icon",name:i}),e,l(y,{className:"pkt-tag__close-btn",name:"close"})]})}):s?l(Z,{children:D&&m("button",{className:S,type:c,"aria-label":f,onClick:C,ref:h,children:[l(y,{className:"pkt-tag__close-btn",name:"close"}),e]})}):i?m("span",{className:O,children:[l(y,{className:"pkt-tag__icon",name:i}),e]}):l("span",{className:O,children:e})});bt.displayName="PktTag";const Un=N.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,counter:o,counterMaxLength:a,className:s,disabled:i,errorMessage:c,hasError:f,helptext:d,helptextDropdown:h,helptextDropdownButton:v,inline:w,fullwidth:C=!1,label:O,name:S,optional:D=!1,optionalText:P,required:b=!1,requiredText:$,placeholder:U,rows:B,useWrapper:W,onChange:Y,...q},J)=>{const K=[s,"pkt-textinput","pkt-textarea"].join(" "),M=r||`${e}-label`,_=N.useRef(null),[L,H]=N.useState(0),G=ee=>{var te,fe;if(o&&H(((fe=(te=ee.currentTarget)==null?void 0:te.value)==null?void 0:fe.length)||0),Y)return Y(ee)};return N.useEffect(()=>{var ee,te;typeof J=="function"&&J(_.current),o&&H(((te=(ee=_==null?void 0:_.current)==null?void 0:ee.value)==null?void 0:te.length)||0)},[J]),m(ue,{ariaDescribedby:n,className:K,disabled:i,errorMessage:c,forId:e,hasError:f,helptext:d,helptextDropdown:h,helptextDropdownButton:v,inline:w,label:O,optional:D,optionalText:P,required:b,requiredText:$,useWrapper:W,children:[l("textarea",{ref:_,className:`pkt-input ${C?"pkt-input--fullwidth":""} ${a&&L>a?"pkt-input--counter-error":""}`,name:S||e,id:e,placeholder:U,disabled:i,rows:B,"aria-labelledby":M,"aria-invalid":f,"aria-errormessage":`${e}-error`,"aria-required":b,...q,onChange:G}),o&&m("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,a&&`/${a}`]})]})}),Bn=N.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,autocomplete:o="off",className:a,disabled:s=!1,errorMessage:i,hasError:c=!1,helptext:f,helptextDropdown:d,helptextDropdownButton:h,iconNameRight:v,inline:w=!1,fullwidth:C=!1,label:O,name:S,optional:D=!1,optionalText:P,required:b=!1,requiredText:$,placeholder:U,prefix:B,suffix:W,type:Y="text",useWrapper:q=!0,value:J,...K},M)=>{const _=[a,"pkt-textinput"].join(" "),L=r||`${e}-label`;return l(ue,{ariaDescribedby:n,className:_,disabled:s,errorMessage:i,forId:e,hasError:c,helptext:f,helptextDropdown:d,helptextDropdownButton:h,inline:w,label:O,optional:D,optionalText:P,required:b,requiredText:$,useWrapper:q,children:m("div",{className:"pkt-input__container",children:[B&&l("div",{className:"pkt-input-prefix",children:B}),l("input",{ref:M,className:`pkt-input ${C?"pkt-input--fullwidth":""}`,type:Y,name:S||e,id:e,placeholder:U,autoComplete:o,value:J,disabled:s,"aria-required":b,"aria-invalid":c,"aria-errormessage":`${e}-error`,"aria-labelledby":L,...K}),W&&m("p",{className:"pkt-input-suffix",children:[W,v&&l(y,{className:"pkt-input-suffix-icon",name:v})]}),!W&&v&&l(y,{className:"pkt-input-icon",name:v})]})})});T.PktAlert=Ze,T.PktBackLink=Jt,T.PktBreadcrumbs=Rn,T.PktButton=ce,T.PktCheckbox=dt,T.PktFooter=Sn,T.PktFooterSimple=On,T.PktHeader=jn,T.PktIcon=y,T.PktInput=kt,T.PktInputWrapper=ue,T.PktLinkCard=vt,T.PktMessagebox=Dn,T.PktRadioButton=_t,T.PktSelect=$n,T.PktTable=In,T.PktTableData=Fn,T.PktTableHeader=An,T.PktTag=bt,T.PktTextarea=Un,T.PktTextinput=Bn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
58
+ */(function(e){(function(){var n={}.hasOwnProperty;function r(){for(var o=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")o.push(i);else if(Array.isArray(i)){if(i.length){var p=r.apply(null,i);p&&o.push(p)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){o.push(i.toString());continue}for(var f in i)n.call(i,f)&&i[f]&&o.push(f)}}}return o.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(mt);var Tn=mt.exports;const ht=Bt(Tn),jn=N.forwardRef(({logoLink:e="https://www.oslo.kommune.no/",serviceName:n,fixed:r=!0,scrollToHide:o=!0,user:a,userMenu:i,representing:s,userOptions:p,userMenuFooter:f,canChangeRepresentation:c=!0,showMenuButton:h=!1,showLogOutButton:v=!1,openMenu:w,logOut:C,changeRepresentation:O,...S},D)=>{const P=N.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]),[g,$]=N.useState(!1),[U,B]=N.useState(0),[W,Y]=N.useState(!1),q=N.useRef(null);N.useEffect(()=>(document.addEventListener("mouseup",K),window.addEventListener("scroll",M),()=>{document.removeEventListener("mouseup",K),window.removeEventListener("scroll",M)}));const J=()=>{Y(!W)},K=_=>{q.current&&!q.current.contains(_.target)&&Y(!1)},M=()=>{if(o){const _=window.pageYOffset||document.documentElement.scrollTop;if(_<0||Math.abs(_-U)<60)return;$(_>U),B(_)}};return m("header",{...S,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ht("pkt-header",{"pkt-header--fixed":r,"pkt-header--scroll-to-hide":o,"pkt-header--hidden":g}),ref:D,children:[m("div",{className:"pkt-header__logo",children:[typeof e=="string"?l("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:e,children:l(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/9.2/logos/"})}):l("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:e,children:l(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/9.2/logos/"})}),l("span",{className:"pkt-header__logo-service",children:n})]}),l("nav",{className:"pkt-header__actions",children:m("ul",{className:"pkt-header__actions-row",children:[h&&l("li",{children:l(ce,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:w,children:"Meny"})}),(a||s)&&m("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${W&&!g?"pkt-header--open-dropdown":""}`,ref:q,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":W,onClick:J,children:[l(y,{name:"user",className:"pkt-btn__icon"}),l("span",{className:"pkt-header__user-fullname",children:(s==null?void 0:s.name)||(a==null?void 0:a.name)}),l("span",{className:"pkt-header__user-shortname",children:(s==null?void 0:s.shortname)||(a==null?void 0:a.shortname)}),l(y,{name:"chevron-thin-down",className:"pkt-btn--closed"}),l(y,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),m("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[a&&m("li",{children:[l("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),l("div",{className:"pkt-user-menu__name",children:a.name}),a.lastLoggedIn&&m("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",l("time",{children:P})]})]}),i&&l("li",{children:l("ul",{className:"pkt-list",children:i.map((_,L)=>l("li",{children:typeof _.target=="string"?m("a",{href:_.target,className:"pkt-link",children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]})},`userMenu-${L}`))})}),(s||c)&&m("li",{children:[s&&m(Z,{children:[l("div",{className:"pkt-user-menu__label",children:"Representerer"}),l("div",{className:"pkt-user-menu__name",children:s.name}),s.orgNumber&&m("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",s.orgNumber]})]}),l("ul",{className:"pkt-list mt-size-16",children:c&&l("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:O,children:[l(y,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),l("li",{children:l("ul",{className:"pkt-list",children:(p||!v)&&m(Z,{children:[p==null?void 0:p.map((_,L)=>l("li",{children:typeof _.target=="string"?m("a",{href:_.target,className:"pkt-link",children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]}):m("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:[_.iconName&&l(y,{name:_.iconName,className:"pkt-link__icon"}),_.title]})},`userOptions-${L}`)),!v&&l("li",{children:m("button",{className:"pkt-link-button pkt-link",onClick:C,children:[l(y,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),f&&l("li",{className:"footer",children:l("ul",{className:"pkt-list-horizontal bordered",children:f.map((_,L)=>l("li",{children:typeof _.target=="string"?l("a",{href:_.target,className:"pkt-link",children:_.title}):l("button",{className:"pkt-link-button pkt-link",onClick:_.target,children:_.title})},`userMenuFooter-${L}`))})})]})]}),v&&l("li",{children:l(ce,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:C,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),kt=N.forwardRef(({label:e,id:n,children:r,...o},a)=>m("div",{className:"pkt-form-group",children:[l("label",{htmlFor:n,className:"pkt-form-label",children:e}),l("input",{className:"pkt-form-input",id:n,...o,ref:a}),r]}));kt.displayName="PktInput";const ue=N.forwardRef(({forId:e,label:n,helptext:r,helptextDropdown:o,helptextDropdownButton:a,optionalTag:i=!1,optionalText:s="Valgfritt",requiredTag:p=!1,requiredText:f="Må fylles ut",hasError:c,errorMessage:h,disabled:v,inline:w,ariaDescribedby:C,useWrapper:O=!0,children:S,className:D,hasFieldset:P=!1},g)=>{const[$,U]=N.useState(!1),B=()=>{U(!$)},W=()=>i?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":p?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",Y=i?s:p?f:"",q=v?"pkt-inputwrapper--disabled":"",J=w?"pkt-inputwrapper--inline":"",K=c?"pkt-inputwrapper--error":"",M=!!o&&o!=="",_=a||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',L=P?"fieldset":M?"div":"label",H=P?"legend":M?"h2":"span",G=C||(r?`${e}-helptext`:void 0);return m("div",{className:["pkt-inputwrapper",D,q,J,K].join(" "),ref:g,children:[O?l(Z,{children:m(L,{htmlFor:e,"aria-describedby":M?"":C,className:`pkt-inputwrapper__label${P?" pkt-inputwrapper__fieldset":""}`,children:[m(H,{id:`${e}-label`,className:`${P?" pkt-inputwrapper__legend":""}`,children:[n,Y!==""&&l("span",{className:W(),children:Y})]}),r&&l("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,dangerouslySetInnerHTML:{__html:r}}),M&&o!==""&&m("div",{children:[l(ce,{skin:"tertiary",size:"small",variant:"icon-right",iconName:$?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:B,children:l("span",{dangerouslySetInnerHTML:{__html:_}})}),l("div",{className:`pkt-inputwrapper__helptext ${$?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:l("span",{dangerouslySetInnerHTML:{__html:o}})}),l("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":G,children:n})]}),l(Z,{children:S})]})}):m(Z,{children:[l("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":G,id:`${e}-label`,children:n}),S]}),c&&h&&l("div",{children:l(Ze,{skin:"error","aria-live":"assertive",id:`${e}-error`,slim:!0,children:h})})]})});ue.displayName="PktInputWrapper";const vt=N.forwardRef(({children:e,className:n,iconName:r="user",openInNewTab:o=!1,skin:a="normal",href:i="#",external:s=!1,title:p},f)=>{const c=[n,"pkt-linkcard",a&&`pkt-linkcard--${a}`].filter(Boolean).join(" ");return m("a",{href:i,className:`pkt-linkcard pkt-link ${c}`,target:o?"_blank":"_self",rel:o?"noopener noreferrer":void 0,ref:f,children:[l(y,{className:"pkt-link__icon",name:r}),m("div",{className:"pkt-linkcard__content",children:[l("div",{className:`pkt-linkcard__title ${s?"pkt-link pkt-link--external":""}`,children:p}),l("div",{className:"pkt-linkcard__text",children:e})]})]})});vt.displayName="PktLinkCard";const Dn=({children:e,skin:n="beige",title:r,className:o,...a})=>{const i=["pkt-messagebox",n&&`pkt-messagebox--${n}`,o].filter(Boolean).join(" ");return m("div",{...a,className:i,children:[l("div",{className:"pkt-messagebox__title",children:r}),l("div",{className:"pkt-messagebox__text",children:e})]})},_t=N.forwardRef(({id:e,name:n,label:r,className:o,hasTile:a=!1,disabled:i=!1,checkHelptext:s,hasError:p=!1,...f},c)=>{const h=[o,"pkt-input-check"].filter(Boolean).join(" ");return l("div",{className:h,children:m("div",{className:`pkt-input-check__input ${a?"pkt-input-check__input--tile":""}`,children:[l("input",{ref:c,className:`pkt-input-check__input-checkbox ${p?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:i,name:n,...f}),m("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[r,s&&l("div",{className:"pkt-input-check__input-helptext",children:s})]})]})})});_t.displayName="PktRadioButton";const $n=N.forwardRef(({ariaDescribedby:e,ariaLabelledby:n,children:r,className:o,disabled:a=!1,errorMessage:i,hasError:s,helptext:p,helptextDropdown:f,helptextDropdownButton:c,id:h,inline:v=!1,fullwidth:w=!1,label:C,name:O,optionalTag:S=!1,optionalText:D,requiredTag:P=!1,requiredText:g,...$},U)=>{const B=[o,"pkt-select"].join(" ");return l(ue,{className:B,forId:h,label:C,helptext:p,helptextDropdown:f,helptextDropdownButton:c,optionalTag:S,optionalText:D,requiredTag:P,requiredText:g,hasError:s,errorMessage:i,disabled:a,inline:v,ariaDescribedby:e,children:l("select",{ref:U,className:`pkt-input ${w?"pkt-input--fullwidth":""}`,"aria-invalid":s,"aria-errormessage":`${h}-error`,"aria-labelledby":n||`${h}-label`,disabled:a,id:h,name:O||h,...$,children:r})})}),Ln=({isResponsive:e,children:n})=>e?l("div",{className:"pkt-table-container",children:n}):l(Z,{children:n}),In=({isResponsive:e,modifiers:{info:n=!1,success:r=!1,strong:o=!1,shadow:a=!1}={},children:i})=>l(Ln,{isResponsive:e,children:l("table",{className:ht("pkt-table",{"pkt-table--info":n,"pkt-table--success":r,"pkt-table--strong":o,"pkt-table--shadow":a}),children:i})}),Fn=({children:e})=>l("td",{className:"pkt-table__th",children:e}),An=({children:e})=>l("th",{className:"pkt-table__th",children:e}),bt=N.forwardRef(({children:e,className:n,skin:r="blue",textStyle:o="normal-text",size:a="medium",closeTag:i=!1,iconName:s="",type:p="button",ariaLabel:f="close",onClick:c=()=>{}},h)=>{const[v,w]=N.useState(!1),C=P=>{w(!0),c(P)},O=["pkt-tag",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,o&&`pkt-tag--${o}`,n].filter(Boolean).join(" "),S=["pkt-tag","pkt-btn","pkt-btn--tertiary",a&&`pkt-tag--${a}`,r&&`pkt-tag--${r}`,o&&`pkt-tag--${o}`,s&&i?"pkt-btn--icons-right-and-left":null,i&&!s?"pkt-btn--icon-right":null,n].filter(Boolean).join(" "),D=!v;return i&&s?l(Z,{children:D&&m("button",{className:S,type:p,"aria-label":f,onClick:C,ref:h,children:[l(y,{className:"pkt-tag__icon",name:s}),e,l(y,{className:"pkt-tag__close-btn",name:"close"})]})}):i?l(Z,{children:D&&m("button",{className:S,type:p,"aria-label":f,onClick:C,ref:h,children:[l(y,{className:"pkt-tag__close-btn",name:"close"}),e]})}):s?m("span",{className:O,children:[l(y,{className:"pkt-tag__icon",name:s}),e]}):l("span",{className:O,children:e})});bt.displayName="PktTag";const Un=N.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,counter:o,counterMaxLength:a,className:i,disabled:s,errorMessage:p,hasError:f,helptext:c,helptextDropdown:h,helptextDropdownButton:v,inline:w,fullwidth:C=!1,label:O,name:S,optionalTag:D=!1,optionalText:P,requiredTag:g=!1,requiredText:$,placeholder:U,rows:B,useWrapper:W=!0,onChange:Y,...q},J)=>{const K=[i,"pkt-textinput","pkt-textarea"].join(" "),M=r||`${e}-label`,_=N.useRef(null),[L,H]=N.useState(0),G=ee=>{var te,fe;if(o&&H(((fe=(te=ee.currentTarget)==null?void 0:te.value)==null?void 0:fe.length)||0),Y)return Y(ee)};return N.useEffect(()=>{var ee,te;typeof J=="function"&&J(_.current),o&&H(((te=(ee=_==null?void 0:_.current)==null?void 0:ee.value)==null?void 0:te.length)||0)},[J]),m(ue,{ariaDescribedby:n,className:K,disabled:s,errorMessage:p,forId:e,hasError:f,helptext:c,helptextDropdown:h,helptextDropdownButton:v,inline:w,label:O,optionalTag:D,optionalText:P,requiredTag:g,requiredText:$,useWrapper:W,children:[l("textarea",{ref:_,className:`pkt-input ${C?"pkt-input--fullwidth":""} ${a&&L>a?"pkt-input--counter-error":""}`,name:S||e,id:e,placeholder:U,disabled:s,rows:B,"aria-labelledby":M,"aria-invalid":f,"aria-errormessage":`${e}-error`,...q,onChange:G}),o&&m("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,a&&`/${a}`]})]})}),Bn=N.forwardRef(({id:e,ariaDescribedby:n,ariaLabelledby:r,autocomplete:o="off",className:a,disabled:i=!1,errorMessage:s,hasError:p=!1,helptext:f,helptextDropdown:c,helptextDropdownButton:h,iconNameRight:v,inline:w=!1,fullwidth:C=!1,label:O,name:S,optionalTag:D=!1,optionalText:P,requiredTag:g=!1,requiredText:$,placeholder:U,prefix:B,suffix:W,type:Y="text",useWrapper:q=!0,value:J,...K},M)=>{const _=[a,"pkt-textinput"].join(" "),L=r||`${e}-label`;return l(ue,{ariaDescribedby:n,className:_,disabled:i,errorMessage:s,forId:e,hasError:p,helptext:f,helptextDropdown:c,helptextDropdownButton:h,inline:w,label:O,optionalTag:D,optionalText:P,requiredTag:g,requiredText:$,useWrapper:q,children:m("div",{className:"pkt-input__container",children:[B&&l("div",{className:"pkt-input-prefix",children:B}),l("input",{ref:M,className:`pkt-input ${C?"pkt-input--fullwidth":""}`,type:Y,name:S||e,id:e,placeholder:U,autoComplete:o,value:J,disabled:i,"aria-invalid":p,"aria-errormessage":`${e}-error`,"aria-labelledby":L,...K}),W&&m("p",{className:"pkt-input-suffix",children:[W,v&&l(y,{className:"pkt-input-suffix-icon",name:v})]}),!W&&v&&l(y,{className:"pkt-input-icon",name:v})]})})});T.PktAlert=Ze,T.PktBackLink=Jt,T.PktBreadcrumbs=Rn,T.PktButton=ce,T.PktCheckbox=dt,T.PktFooter=Sn,T.PktFooterSimple=On,T.PktHeader=jn,T.PktIcon=y,T.PktInput=kt,T.PktInputWrapper=ue,T.PktLinkCard=vt,T.PktMessagebox=Dn,T.PktRadioButton=_t,T.PktSelect=$n,T.PktTable=In,T.PktTableData=Fn,T.PktTableHeader=An,T.PktTag=bt,T.PktTextarea=Un,T.PktTextinput=Bn,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})});
@@ -14,9 +14,9 @@ export interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement>
14
14
  fullwidth?: boolean;
15
15
  label: string;
16
16
  name?: string;
17
- optional?: boolean;
17
+ optionalTag?: boolean;
18
18
  optionalText?: string;
19
- required?: boolean;
19
+ requiredTag?: boolean;
20
20
  requiredText?: string;
21
21
  }
22
22
  export declare const PktSelect: React.ForwardRefExoticComponent<IPktSelectProps & React.RefAttributes<HTMLSelectElement>>;
@@ -15,9 +15,9 @@ export interface IPktTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaEl
15
15
  fullwidth?: boolean;
16
16
  label: string;
17
17
  name?: string;
18
- optional?: boolean;
18
+ optionalTag?: boolean;
19
19
  optionalText?: string;
20
- required?: boolean;
20
+ requiredTag?: boolean;
21
21
  requiredText?: string;
22
22
  placeholder?: string;
23
23
  rows?: number;
@@ -15,9 +15,9 @@ export interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
15
15
  fullwidth?: boolean;
16
16
  label: string;
17
17
  name?: string;
18
- optional?: boolean;
18
+ optionalTag?: boolean;
19
19
  optionalText?: string;
20
- required?: boolean;
20
+ requiredTag?: boolean;
21
21
  requiredText?: string;
22
22
  placeholder?: string;
23
23
  prefix?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "9.0.1",
3
+ "version": "9.2.0",
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",
@@ -91,5 +91,5 @@
91
91
  "url": "https://github.com/oslokommune/punkt/issues"
92
92
  },
93
93
  "license": "MIT",
94
- "gitHead": "61a657575597fc0fc897514ef8d952763f3dba25"
94
+ "gitHead": "db9dc54268989486a5524c0aa193cf81733ae881"
95
95
  }
@@ -3,7 +3,6 @@ import '@testing-library/jest-dom/extend-expect';
3
3
 
4
4
  import { render, screen } from '@testing-library/react'
5
5
  import { axe, toHaveNoViolations } from 'jest-axe'
6
- import * as React from 'react'
7
6
 
8
7
  import { PktFooter } from './Footer'
9
8
 
@@ -26,9 +26,12 @@ export interface IPktFooter extends React.HTMLAttributes<HTMLDivElement> {
26
26
  columnOne: Column
27
27
  columnTwo: Column
28
28
  socialLinks?: SocialLink[]
29
+ personvernOgInfoLink?: string
30
+ tilgjengelighetLink?: string
29
31
  }
30
32
 
31
- export const PktFooter: React.FC<IPktFooter> = ({ columnOne, columnTwo, socialLinks, className, }) => {
33
+ export const PktFooter: React.FC<IPktFooter> = ({ columnOne, columnTwo, socialLinks, className, personvernOgInfoLink = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/", tilgjengelighetLink = "https://www.oslo.kommune.no/tilgjengelighet/"
34
+ }) => {
32
35
  const classNames = [className, 'pkt-footer'].filter(Boolean).join(' ')
33
36
  return (
34
37
  <footer className={classNames} data-mode="dark">
@@ -78,14 +81,14 @@ export const PktFooter: React.FC<IPktFooter> = ({ columnOne, columnTwo, socialLi
78
81
  <li className="pkt-footer__list-item">
79
82
  <a
80
83
  className="pkt-footer__link"
81
- href="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/"
84
+ href={personvernOgInfoLink}
82
85
  >
83
86
  <PktIcon className="pkt-footer__link-icon" name="chevron-right" />
84
87
  Personvern og informasjonskapsler
85
88
  </a>
86
89
  </li>
87
90
  <li className="pkt-footer__list-item">
88
- <a className="pkt-footer__link" href="https://www.oslo.kommune.no/tilgjengelighet/">
91
+ <a className="pkt-footer__link" href={tilgjengelighetLink}>
89
92
  <PktIcon className="pkt-footer__link-icon" name="chevron-right" />
90
93
  Tilgjengelighet
91
94
  </a>
@@ -3,7 +3,6 @@ import '@testing-library/jest-dom/extend-expect';
3
3
 
4
4
  import { render } from '@testing-library/react'
5
5
  import { axe, toHaveNoViolations } from 'jest-axe'
6
- import * as React from 'react'
7
6
 
8
7
  import { PktFooterSimple } from './FooterSimple'
9
8
 
@@ -10,10 +10,15 @@ export interface IPktFooterSimple extends React.HTMLAttributes<HTMLDivElement> {
10
10
  external?: boolean;
11
11
  openInNewTab?: boolean;
12
12
  }>;
13
+ personvernOgInfoLink?: string
14
+ tilgjengelighetLink?: string
13
15
  }
14
16
 
15
17
  export const PktFooterSimple: React.FC<IPktFooterSimple> = ({
16
- links = [], className
18
+ links = [],
19
+ personvernOgInfoLink = "https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",
20
+ tilgjengelighetLink = "https://www.oslo.kommune.no/tilgjengelighet/",
21
+ className
17
22
  }) => {
18
23
  const classNames = [className, 'pkt-footer-simple'].filter(Boolean).join(' ')
19
24
  return (
@@ -37,13 +42,13 @@ export const PktFooterSimple: React.FC<IPktFooterSimple> = ({
37
42
  </li>
38
43
  ))}
39
44
  <li className="pkt-footer-simple__list-item">
40
- <a className="pkt-footer-simple__link" href="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/">
45
+ <a className="pkt-footer-simple__link" href={personvernOgInfoLink}>
41
46
  <PktIcon className="pkt-footer-simple__link-icon" name="chevron-right"></PktIcon>
42
47
  Personvern og informasjonskapsler
43
48
  </a>
44
49
  </li>
45
50
  <li className="pkt-footer-simple__list-item">
46
- <a className="pkt-footer-simple__link" href="https://www.oslo.kommune.no/tilgjengelighet/">
51
+ <a className="pkt-footer-simple__link" href={tilgjengelighetLink}>
47
52
  <PktIcon className="pkt-footer-simple__link-icon" name="chevron-right"></PktIcon>
48
53
  Tilgjengelighet
49
54
  </a>
@@ -9,9 +9,9 @@ export interface IPktInputWrapper extends RefAttributes<HTMLElement> {
9
9
  helptext?: string
10
10
  helptextDropdown?: string
11
11
  helptextDropdownButton?: string
12
- optional?: boolean
12
+ optionalTag?: boolean
13
13
  optionalText?: string
14
- required?: boolean
14
+ requiredTag?: boolean
15
15
  requiredText?: string
16
16
  hasError?: boolean
17
17
  errorMessage?: string
@@ -32,9 +32,9 @@ export const PktInputWrapper = forwardRef(
32
32
  helptext,
33
33
  helptextDropdown,
34
34
  helptextDropdownButton,
35
- optional,
35
+ optionalTag = false,
36
36
  optionalText = 'Valgfritt',
37
- required,
37
+ requiredTag = false,
38
38
  requiredText = 'Må fylles ut',
39
39
  hasError,
40
40
  errorMessage,
@@ -55,16 +55,16 @@ export const PktInputWrapper = forwardRef(
55
55
  }
56
56
 
57
57
  const tagClass = () => {
58
- if (optional) {
58
+ if (optionalTag) {
59
59
  return 'pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light'
60
- } else if (required) {
60
+ } else if (requiredTag) {
61
61
  return 'pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige'
62
62
  } else {
63
63
  return ''
64
64
  }
65
65
  }
66
66
 
67
- const tagText = optional ? optionalText : required ? requiredText : ''
67
+ const tagText = optionalTag ? optionalText : requiredTag ? requiredText : ''
68
68
 
69
69
  const disabledClass = disabled ? 'pkt-inputwrapper--disabled' : ''
70
70
  const inlineClass = inline ? 'pkt-inputwrapper--inline' : ''
@@ -81,8 +81,8 @@ export const PktInputWrapper = forwardRef(
81
81
  const describedBy = ariaDescribedby
82
82
  ? ariaDescribedby
83
83
  : helptext
84
- ? `${forId}-helptext`
85
- : undefined
84
+ ? `${forId}-helptext`
85
+ : undefined
86
86
 
87
87
  return (
88
88
  <div
@@ -96,9 +96,13 @@ export const PktInputWrapper = forwardRef(
96
96
  <LabelComponent
97
97
  htmlFor={forId}
98
98
  aria-describedby={hasDropDown ? '' : ariaDescribedby}
99
- className={`pkt-inputwrapper__label${hasFieldset ? ' pkt-inputwrapper__fieldset' : ''}`}
99
+ className={`pkt-inputwrapper__label${
100
+ hasFieldset ? ' pkt-inputwrapper__fieldset' : ''
101
+ }`}
100
102
  >
101
- <LabelTextComponent id={`${forId}-label`} className={`${hasFieldset ? ' pkt-inputwrapper__legend' : ''}`}
103
+ <LabelTextComponent
104
+ id={`${forId}-label`}
105
+ className={`${hasFieldset ? ' pkt-inputwrapper__legend' : ''}`}
102
106
  >
103
107
  {label}
104
108
  {tagText !== '' && <span className={tagClass()}>{tagText}</span>}
@@ -123,10 +127,11 @@ export const PktInputWrapper = forwardRef(
123
127
  <span dangerouslySetInnerHTML={{ __html: dropdownButton }} />
124
128
  </PktButton>
125
129
  <div
126
- className={`pkt-inputwrapper__helptext ${isHelpTextOpen
130
+ className={`pkt-inputwrapper__helptext ${
131
+ isHelpTextOpen
127
132
  ? 'pkt-inputwrapper__helptext-expandable-open'
128
133
  : 'pkt-inputwrapper__helptext-expandable-closed'
129
- }`}
134
+ }`}
130
135
  >
131
136
  <span dangerouslySetInnerHTML={{ __html: helptextDropdown }} />
132
137
  </div>
@@ -138,7 +143,6 @@ export const PktInputWrapper = forwardRef(
138
143
  <>{children}</>
139
144
  </LabelComponent>
140
145
  </>
141
-
142
146
  ) : (
143
147
  <>
144
148
  <label