@oslokommune/punkt-react 11.12.4 → 11.13.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(R,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],g):(R=typeof globalThis<"u"?globalThis:R||self,g(R["punkt-react"]={},R.React))})(this,function(R,g){"use strict";function Wt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const N=Wt(g);function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}},ie={};/**
1
+ (function(C,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],g):(C=typeof globalThis<"u"?globalThis:C||self,g(C["punkt-react"]={},C.React))})(this,function(C,g){"use strict";function Bt(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const N=Bt(g);function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Se={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 He;function Mt(){if(He)return ie;He=1;var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(o,f,u){var d,h={},k=null,P=null;u!==void 0&&(k=""+u),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(P=f.ref);for(d in f)l.call(f,d)&&!s.hasOwnProperty(d)&&(h[d]=f[d]);if(o&&o.defaultProps)for(d in f=o.defaultProps,f)h[d]===void 0&&(h[d]=f[d]);return{$$typeof:r,type:o,key:k,ref:P,props:h,_owner:i.current}}return ie.Fragment=a,ie.jsx=c,ie.jsxs=c,ie}var oe={};/**
9
+ */var Xe;function Mt(){if(Xe)return oe;Xe=1;var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(o,f,u){var d,h={},k=null,S=null;u!==void 0&&(k=""+u),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(S=f.ref);for(d in f)s.call(f,d)&&!i.hasOwnProperty(d)&&(h[d]=f[d]);if(o&&o.defaultProps)for(d in f=o.defaultProps,f)h[d]===void 0&&(h[d]=f[d]);return{$$typeof:r,type:o,key:k,ref:S,props:h,_owner:l.current}}return oe.Fragment=a,oe.jsx=c,oe.jsxs=c,oe}var ce={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,22 +14,22 @@
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 Yt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),o=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),y=Symbol.iterator,O="@@iterator";function D(n){if(n===null||typeof n!="object")return null;var p=y&&n[y]||n[O];return typeof p=="function"?p:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(n){{for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];v("error",n,m)}}function v(n,p,m){{var x=S.ReactDebugCurrentFrame,T=x.getStackAddendum();T!==""&&(p+="%s",m=m.concat([T]));var $=m.map(function(C){return String(C)});$.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,$)}}var w=!1,V=!1,W=!1,B=!1,M=!1,Y;Y=Symbol.for("react.module.reference");function K(n){return!!(typeof n=="string"||typeof n=="function"||n===l||n===s||M||n===i||n===u||n===d||B||n===P||w||V||W||typeof n=="object"&&n!==null&&(n.$$typeof===k||n.$$typeof===h||n.$$typeof===c||n.$$typeof===o||n.$$typeof===f||n.$$typeof===Y||n.getModuleId!==void 0))}function q(n,p,m){var x=n.displayName;if(x)return x;var T=p.displayName||p.name||"";return T!==""?m+"("+T+")":m}function J(n){return n.displayName||"Context"}function L(n){if(n==null)return null;if(typeof n.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case l:return"Fragment";case a:return"Portal";case s:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case o:var p=n;return J(p)+".Consumer";case c:var m=n;return J(m._context)+".Provider";case f:return q(n,n.render,"ForwardRef");case h:var x=n.displayName||null;return x!==null?x:L(n.type)||"Memo";case k:{var T=n,$=T._payload,C=T._init;try{return L(C($))}catch{return null}}}return null}var b=Object.assign,U=0,Z,Q,de,Nt,jt,yt,wt;function Et(){}Et.__reactDisabledLog=!0;function er(){{if(U===0){Z=console.log,Q=console.info,de=console.warn,Nt=console.error,jt=console.group,yt=console.groupCollapsed,wt=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}U++}}function tr(){{if(U--,U===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:b({},n,{value:Z}),info:b({},n,{value:Q}),warn:b({},n,{value:de}),error:b({},n,{value:Nt}),group:b({},n,{value:jt}),groupCollapsed:b({},n,{value:yt}),groupEnd:b({},n,{value:wt})})}U<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var We=S.ReactCurrentDispatcher,Be;function ye(n,p,m){{if(Be===void 0)try{throw Error()}catch(T){var x=T.stack.trim().match(/\n( *(at )?)/);Be=x&&x[1]||""}return`
18
- `+Be+n}}var Me=!1,we;{var nr=typeof WeakMap=="function"?WeakMap:Map;we=new nr}function Ct(n,p){if(!n||Me)return"";{var m=we.get(n);if(m!==void 0)return m}var x;Me=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $;$=We.current,We.current=null,er();try{if(p){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(G){x=G}Reflect.construct(n,[],C)}else{try{C.call()}catch(G){x=G}n.call(C.prototype)}}else{try{throw Error()}catch(G){x=G}n()}}catch(G){if(G&&x&&typeof G.stack=="string"){for(var E=G.stack.split(`
17
+ */var Ze;function Yt(){return Ze||(Ze=1,process.env.NODE_ENV!=="production"&&function(){var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),o=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),y=Symbol.iterator,O="@@iterator";function D(n){if(n===null||typeof n!="object")return null;var p=y&&n[y]||n[O];return typeof p=="function"?p:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(n){{for(var p=arguments.length,m=new Array(p>1?p-1:0),x=1;x<p;x++)m[x-1]=arguments[x];v("error",n,m)}}function v(n,p,m){{var x=R.ReactDebugCurrentFrame,T=x.getStackAddendum();T!==""&&(p+="%s",m=m.concat([T]));var $=m.map(function(P){return String(P)});$.unshift("Warning: "+p),Function.prototype.apply.call(console[n],console,$)}}var w=!1,V=!1,B=!1,W=!1,M=!1,Y;Y=Symbol.for("react.module.reference");function K(n){return!!(typeof n=="string"||typeof n=="function"||n===s||n===i||M||n===l||n===u||n===d||W||n===S||w||V||B||typeof n=="object"&&n!==null&&(n.$$typeof===k||n.$$typeof===h||n.$$typeof===c||n.$$typeof===o||n.$$typeof===f||n.$$typeof===Y||n.getModuleId!==void 0))}function q(n,p,m){var x=n.displayName;if(x)return x;var T=p.displayName||p.name||"";return T!==""?m+"("+T+")":m}function J(n){return n.displayName||"Context"}function L(n){if(n==null)return null;if(typeof n.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case s:return"Fragment";case a:return"Portal";case i:return"Profiler";case l:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case o:var p=n;return J(p)+".Consumer";case c:var m=n;return J(m._context)+".Provider";case f:return q(n,n.render,"ForwardRef");case h:var x=n.displayName||null;return x!==null?x:L(n.type)||"Memo";case k:{var T=n,$=T._payload,P=T._init;try{return L(P($))}catch{return null}}}return null}var b=Object.assign,U=0,Z,Q,me,Nt,jt,yt,wt;function Et(){}Et.__reactDisabledLog=!0;function nr(){{if(U===0){Z=console.log,Q=console.info,me=console.warn,Nt=console.error,jt=console.group,yt=console.groupCollapsed,wt=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Et,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}U++}}function rr(){{if(U--,U===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:b({},n,{value:Z}),info:b({},n,{value:Q}),warn:b({},n,{value:me}),error:b({},n,{value:Nt}),group:b({},n,{value:jt}),groupCollapsed:b({},n,{value:yt}),groupEnd:b({},n,{value:wt})})}U<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var We=R.ReactCurrentDispatcher,Me;function we(n,p,m){{if(Me===void 0)try{throw Error()}catch(T){var x=T.stack.trim().match(/\n( *(at )?)/);Me=x&&x[1]||""}return`
18
+ `+Me+n}}var Ye=!1,Ee;{var ar=typeof WeakMap=="function"?WeakMap:Map;Ee=new ar}function Ct(n,p){if(!n||Ye)return"";{var m=Ee.get(n);if(m!==void 0)return m}var x;Ye=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var $;$=We.current,We.current=null,nr();try{if(p){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(G){x=G}Reflect.construct(n,[],P)}else{try{P.call()}catch(G){x=G}n.call(P.prototype)}}else{try{throw Error()}catch(G){x=G}n()}}catch(G){if(G&&x&&typeof G.stack=="string"){for(var E=G.stack.split(`
19
19
  `),z=x.stack.split(`
20
20
  `),F=E.length-1,A=z.length-1;F>=1&&A>=0&&E[F]!==z[A];)A--;for(;F>=1&&A>=0;F--,A--)if(E[F]!==z[A]){if(F!==1||A!==1)do if(F--,A--,A<0||E[F]!==z[A]){var H=`
21
- `+E[F].replace(" at new "," at ");return n.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",n.displayName)),typeof n=="function"&&we.set(n,H),H}while(F>=1&&A>=0);break}}}finally{Me=!1,We.current=$,tr(),Error.prepareStackTrace=T}var le=n?n.displayName||n.name:"",ee=le?ye(le):"";return typeof n=="function"&&we.set(n,ee),ee}function rr(n,p,m){return Ct(n,!1)}function ar(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function Ee(n,p,m){if(n==null)return"";if(typeof n=="function")return Ct(n,ar(n));if(typeof n=="string")return ye(n);switch(n){case u:return ye("Suspense");case d:return ye("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case f:return rr(n.render);case h:return Ee(n.type,p,m);case k:{var x=n,T=x._payload,$=x._init;try{return Ee($(T),p,m)}catch{}}}return""}var me=Object.prototype.hasOwnProperty,Pt={},St=S.ReactDebugCurrentFrame;function Ce(n){if(n){var p=n._owner,m=Ee(n.type,n._source,p?p.type:null);St.setExtraStackFrame(m)}else St.setExtraStackFrame(null)}function sr(n,p,m,x,T){{var $=Function.call.bind(me);for(var C in n)if($(n,C)){var E=void 0;try{if(typeof n[C]!="function"){var z=Error((x||"React class")+": "+m+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}E=n[C](p,C,x,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){E=F}E&&!(E instanceof Error)&&(Ce(T),_("%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).",x||"React class",m,C,typeof E),Ce(null)),E instanceof Error&&!(E.message in Pt)&&(Pt[E.message]=!0,Ce(T),_("Failed %s type: %s",m,E.message),Ce(null))}}}var lr=Array.isArray;function Ye(n){return lr(n)}function ir(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,m=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return m}}function or(n){try{return Rt(n),!1}catch{return!0}}function Rt(n){return""+n}function Tt(n){if(or(n))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(n)),Rt(n)}var he=S.ReactCurrentOwner,cr={key:!0,ref:!0,__self:!0,__source:!0},Ot,$t,Ke;Ke={};function ur(n){if(me.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function fr(n){if(me.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function pr(n,p){if(typeof n.ref=="string"&&he.current&&p&&he.current.stateNode!==p){var m=L(he.current.type);Ke[m]||(_('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(he.current.type),n.ref),Ke[m]=!0)}}function dr(n,p){{var m=function(){Ot||(Ot=!0,_("%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)",p))};m.isReactWarning=!0,Object.defineProperty(n,"key",{get:m,configurable:!0})}}function mr(n,p){{var m=function(){$t||($t=!0,_("%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)",p))};m.isReactWarning=!0,Object.defineProperty(n,"ref",{get:m,configurable:!0})}}var hr=function(n,p,m,x,T,$,C){var E={$$typeof:r,type:n,key:p,ref:m,props:C,_owner:$};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:x}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function kr(n,p,m,x,T){{var $,C={},E=null,z=null;m!==void 0&&(Tt(m),E=""+m),fr(p)&&(Tt(p.key),E=""+p.key),ur(p)&&(z=p.ref,pr(p,T));for($ in p)me.call(p,$)&&!cr.hasOwnProperty($)&&(C[$]=p[$]);if(n&&n.defaultProps){var F=n.defaultProps;for($ in F)C[$]===void 0&&(C[$]=F[$])}if(E||z){var A=typeof n=="function"?n.displayName||n.name||"Unknown":n;E&&dr(C,A),z&&mr(C,A)}return hr(n,E,z,T,x,he.current,C)}}var Je=S.ReactCurrentOwner,Dt=S.ReactDebugCurrentFrame;function se(n){if(n){var p=n._owner,m=Ee(n.type,n._source,p?p.type:null);Dt.setExtraStackFrame(m)}else Dt.setExtraStackFrame(null)}var ze;ze=!1;function qe(n){return typeof n=="object"&&n!==null&&n.$$typeof===r}function It(){{if(Je.current){var n=L(Je.current.type);if(n)return`
21
+ `+E[F].replace(" at new "," at ");return n.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ee.set(n,H),H}while(F>=1&&A>=0);break}}}finally{Ye=!1,We.current=$,rr(),Error.prepareStackTrace=T}var ie=n?n.displayName||n.name:"",te=ie?we(ie):"";return typeof n=="function"&&Ee.set(n,te),te}function sr(n,p,m){return Ct(n,!1)}function lr(n){var p=n.prototype;return!!(p&&p.isReactComponent)}function Ce(n,p,m){if(n==null)return"";if(typeof n=="function")return Ct(n,lr(n));if(typeof n=="string")return we(n);switch(n){case u:return we("Suspense");case d:return we("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case f:return sr(n.render);case h:return Ce(n.type,p,m);case k:{var x=n,T=x._payload,$=x._init;try{return Ce($(T),p,m)}catch{}}}return""}var he=Object.prototype.hasOwnProperty,Pt={},St=R.ReactDebugCurrentFrame;function Pe(n){if(n){var p=n._owner,m=Ce(n.type,n._source,p?p.type:null);St.setExtraStackFrame(m)}else St.setExtraStackFrame(null)}function ir(n,p,m,x,T){{var $=Function.call.bind(he);for(var P in n)if($(n,P)){var E=void 0;try{if(typeof n[P]!="function"){var z=Error((x||"React class")+": "+m+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}E=n[P](p,P,x,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){E=F}E&&!(E instanceof Error)&&(Pe(T),_("%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).",x||"React class",m,P,typeof E),Pe(null)),E instanceof Error&&!(E.message in Pt)&&(Pt[E.message]=!0,Pe(T),_("Failed %s type: %s",m,E.message),Pe(null))}}}var or=Array.isArray;function Ke(n){return or(n)}function cr(n){{var p=typeof Symbol=="function"&&Symbol.toStringTag,m=p&&n[Symbol.toStringTag]||n.constructor.name||"Object";return m}}function ur(n){try{return Rt(n),!1}catch{return!0}}function Rt(n){return""+n}function Tt(n){if(ur(n))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",cr(n)),Rt(n)}var ke=R.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},Ot,$t,Je;Je={};function pr(n){if(he.call(n,"ref")){var p=Object.getOwnPropertyDescriptor(n,"ref").get;if(p&&p.isReactWarning)return!1}return n.ref!==void 0}function dr(n){if(he.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function mr(n,p){if(typeof n.ref=="string"&&ke.current&&p&&ke.current.stateNode!==p){var m=L(ke.current.type);Je[m]||(_('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(ke.current.type),n.ref),Je[m]=!0)}}function hr(n,p){{var m=function(){Ot||(Ot=!0,_("%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)",p))};m.isReactWarning=!0,Object.defineProperty(n,"key",{get:m,configurable:!0})}}function kr(n,p){{var m=function(){$t||($t=!0,_("%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)",p))};m.isReactWarning=!0,Object.defineProperty(n,"ref",{get:m,configurable:!0})}}var vr=function(n,p,m,x,T,$,P){var E={$$typeof:r,type:n,key:p,ref:m,props:P,_owner:$};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:x}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function _r(n,p,m,x,T){{var $,P={},E=null,z=null;m!==void 0&&(Tt(m),E=""+m),dr(p)&&(Tt(p.key),E=""+p.key),pr(p)&&(z=p.ref,mr(p,T));for($ in p)he.call(p,$)&&!fr.hasOwnProperty($)&&(P[$]=p[$]);if(n&&n.defaultProps){var F=n.defaultProps;for($ in F)P[$]===void 0&&(P[$]=F[$])}if(E||z){var A=typeof n=="function"?n.displayName||n.name||"Unknown":n;E&&hr(P,A),z&&kr(P,A)}return vr(n,E,z,T,x,ke.current,P)}}var ze=R.ReactCurrentOwner,Dt=R.ReactDebugCurrentFrame;function le(n){if(n){var p=n._owner,m=Ce(n.type,n._source,p?p.type:null);Dt.setExtraStackFrame(m)}else Dt.setExtraStackFrame(null)}var qe;qe=!1;function Ge(n){return typeof n=="object"&&n!==null&&n.$$typeof===r}function It(){{if(ze.current){var n=L(ze.current.type);if(n)return`
22
22
 
23
- Check the render method of \``+n+"`."}return""}}function vr(n){{if(n!==void 0){var p=n.fileName.replace(/^.*[\\\/]/,""),m=n.lineNumber;return`
23
+ Check the render method of \``+n+"`."}return""}}function br(n){{if(n!==void 0){var p=n.fileName.replace(/^.*[\\\/]/,""),m=n.lineNumber;return`
24
24
 
25
- Check your code at `+p+":"+m+"."}return""}}var Ft={};function _r(n){{var p=It();if(!p){var m=typeof n=="string"?n:n.displayName||n.name;m&&(p=`
25
+ Check your code at `+p+":"+m+"."}return""}}var Ft={};function gr(n){{var p=It();if(!p){var m=typeof n=="string"?n:n.displayName||n.name;m&&(p=`
26
26
 
27
- Check the top-level render call using <`+m+">.")}return p}}function Lt(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var m=_r(p);if(Ft[m])return;Ft[m]=!0;var x="";n&&n._owner&&n._owner!==Je.current&&(x=" It was passed a child from "+L(n._owner.type)+"."),se(n),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,x),se(null)}}function At(n,p){{if(typeof n!="object")return;if(Ye(n))for(var m=0;m<n.length;m++){var x=n[m];qe(x)&&Lt(x,p)}else if(qe(n))n._store&&(n._store.validated=!0);else if(n){var T=D(n);if(typeof T=="function"&&T!==n.entries)for(var $=T.call(n),C;!(C=$.next()).done;)qe(C.value)&&Lt(C.value,p)}}}function br(n){{var p=n.type;if(p==null||typeof p=="string")return;var m;if(typeof p=="function")m=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===f||p.$$typeof===h))m=p.propTypes;else return;if(m){var x=L(p);sr(m,n.props,"prop",x,n)}else if(p.PropTypes!==void 0&&!ze){ze=!0;var T=L(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gr(n){{for(var p=Object.keys(n.props),m=0;m<p.length;m++){var x=p[m];if(x!=="children"&&x!=="key"){se(n),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),se(null);break}}n.ref!==null&&(se(n),_("Invalid attribute `ref` supplied to `React.Fragment`."),se(null))}}var Ut={};function Vt(n,p,m,x,T,$){{var C=K(n);if(!C){var E="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).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 z=vr(T);z?E+=z:E+=It();var F;n===null?F="null":Ye(n)?F="array":n!==void 0&&n.$$typeof===r?(F="<"+(L(n.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):F=typeof n,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,E)}var A=kr(n,p,m,T,$);if(A==null)return A;if(C){var H=p.children;if(H!==void 0)if(x)if(Ye(H)){for(var le=0;le<H.length;le++)At(H[le],n);Object.freeze&&Object.freeze(H)}else _("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 At(H,n)}if(me.call(p,"key")){var ee=L(n),G=Object.keys(p).filter(function(Er){return Er!=="key"}),Ge=G.length>0?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}";if(!Ut[ee+Ge]){var wr=G.length>0?"{"+G.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+m+">.")}return p}}function Lt(n,p){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var m=gr(p);if(Ft[m])return;Ft[m]=!0;var x="";n&&n._owner&&n._owner!==ze.current&&(x=" It was passed a child from "+L(n._owner.type)+"."),le(n),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,x),le(null)}}function At(n,p){{if(typeof n!="object")return;if(Ke(n))for(var m=0;m<n.length;m++){var x=n[m];Ge(x)&&Lt(x,p)}else if(Ge(n))n._store&&(n._store.validated=!0);else if(n){var T=D(n);if(typeof T=="function"&&T!==n.entries)for(var $=T.call(n),P;!(P=$.next()).done;)Ge(P.value)&&Lt(P.value,p)}}}function xr(n){{var p=n.type;if(p==null||typeof p=="string")return;var m;if(typeof p=="function")m=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===f||p.$$typeof===h))m=p.propTypes;else return;if(m){var x=L(p);ir(m,n.props,"prop",x,n)}else if(p.PropTypes!==void 0&&!qe){qe=!0;var T=L(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nr(n){{for(var p=Object.keys(n.props),m=0;m<p.length;m++){var x=p[m];if(x!=="children"&&x!=="key"){le(n),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),le(null);break}}n.ref!==null&&(le(n),_("Invalid attribute `ref` supplied to `React.Fragment`."),le(null))}}var Ut={};function Vt(n,p,m,x,T,$){{var P=K(n);if(!P){var E="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).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 z=br(T);z?E+=z:E+=It();var F;n===null?F="null":Ke(n)?F="array":n!==void 0&&n.$$typeof===r?(F="<"+(L(n.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):F=typeof n,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,E)}var A=_r(n,p,m,T,$);if(A==null)return A;if(P){var H=p.children;if(H!==void 0)if(x)if(Ke(H)){for(var ie=0;ie<H.length;ie++)At(H[ie],n);Object.freeze&&Object.freeze(H)}else _("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 At(H,n)}if(he.call(p,"key")){var te=L(n),G=Object.keys(p).filter(function(Pr){return Pr!=="key"}),He=G.length>0?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}";if(!Ut[te+He]){var Cr=G.length>0?"{"+G.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,Ge,ee,wr,ee),Ut[ee+Ge]=!0}}return n===l?gr(A):br(A),A}}function xr(n,p,m){return Vt(n,p,m,!0)}function Nr(n,p,m){return Vt(n,p,m,!1)}var jr=Nr,yr=xr;oe.Fragment=l,oe.jsx=jr,oe.jsxs=yr}()),oe}process.env.NODE_ENV==="production"?Pe.exports=Mt():Pe.exports=Yt();var t=Pe.exports;const Se='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',Kt="https://punkt-cdn.oslo.kommune.no/11.12/icons/";function Jt(e){return new Promise(r=>setTimeout(r,e))}const Re={},zt=async(e,r)=>{let a=0;for(;Re[r+e+".svg"]==="fetching"&&(a++,!(a>50));)await Jt(50);return localStorage.getItem(r+e+".svg")?Promise.resolve(localStorage.getItem(r+e+".svg")):typeof window.fetch=="function"?(Re[r+e+".svg"]="fetching",Promise.resolve(fetch(r+e+".svg").then(l=>l.ok?l.text():(console.error("Missing icon: "+r+e+".svg"),Se)).then(l=>(l!==Se&&localStorage.setItem(r+e+".svg",l),Re[r+e+".svg"]="fetched",l)))):Promise.resolve(Se)},qt={fetchIcon:async(e,r)=>zt(e,r||Kt)},Ze=g.createContext(qt),j=({name:e,path:r,className:a="",...l})=>{const[i,s]=g.useState(null),c=g.useContext(Ze);return g.useEffect(()=>{e?c.fetchIcon(e,r).then(s):s(null)},[e,r]),i?t.jsx("span",{className:`pkt-icon ${a}`,dangerouslySetInnerHTML:{__html:i},...l}):null},Qe=g.forwardRef(({children:e,className:r,skin:a="info",closeAlert:l=!1,onClose:i,title:s,date:c,ariaLive:o="polite",compact:f=!1,...u},d)=>{const h=[r,"pkt-alert",a&&`pkt-alert--${a}`,f&&"pkt-alert--compact"].filter(Boolean).join(" "),[k,P]=g.useState(!0),y=()=>{P(!1),i&&i()};return k?t.jsxs("div",{...u,className:h,"aria-live":o,ref:d,children:[t.jsx(j,{className:"pkt-alert__icon",name:a==="info"?"alert-information":`alert-${a}`}),l&&t.jsx("div",{className:"pkt-alert__close",children:t.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:y,children:t.jsx(j,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),s&&t.jsx("div",{className:"pkt-alert__title",children:s}),t.jsx("div",{className:"pkt-alert__text",children:e}),c&&t.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",c]})]}):null}),Gt=g.forwardRef(({href:e,text:r,onClick:a,className:l,...i},s)=>{const c=[l,"pkt-back-link"].filter(Boolean).join(" "),o=f=>{a&&a(f)};return t.jsx("nav",{ref:s,className:c,"aria-label":"Gå tilbake et steg",children:t.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:o,...i,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),t.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});/**
32
+ <%s key={someKey} {...props} />`,He,te,Cr,te),Ut[te+He]=!0}}return n===s?Nr(A):xr(A),A}}function jr(n,p,m){return Vt(n,p,m,!0)}function yr(n,p,m){return Vt(n,p,m,!1)}var wr=yr,Er=jr;ce.Fragment=s,ce.jsx=wr,ce.jsxs=Er}()),ce}process.env.NODE_ENV==="production"?Se.exports=Mt():Se.exports=Yt();var t=Se.exports;const Re='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',Kt="https://punkt-cdn.oslo.kommune.no/11.13/icons/";function Jt(e){return new Promise(r=>setTimeout(r,e))}const Te={},zt=async(e,r)=>{let a=0;for(;Te[r+e+".svg"]==="fetching"&&(a++,!(a>50));)await Jt(50);return localStorage.getItem(r+e+".svg")?Promise.resolve(localStorage.getItem(r+e+".svg")):typeof window.fetch=="function"?(Te[r+e+".svg"]="fetching",Promise.resolve(fetch(r+e+".svg").then(s=>s.ok?s.text():(console.error("Missing icon: "+r+e+".svg"),Re)).then(s=>(s!==Re&&localStorage.setItem(r+e+".svg",s),Te[r+e+".svg"]="fetched",s)))):Promise.resolve(Re)},qt={fetchIcon:async(e,r)=>zt(e,r||Kt)},Qe=g.createContext(qt),j=({name:e,path:r,className:a="",...s})=>{const[l,i]=g.useState(null),c=g.useContext(Qe);return g.useEffect(()=>{e?c.fetchIcon(e,r).then(i):i(null)},[e,r]),l?t.jsx("span",{className:`pkt-icon ${a}`,dangerouslySetInnerHTML:{__html:l},...s}):null},et=g.forwardRef(({children:e,className:r,skin:a="info",closeAlert:s=!1,onClose:l,title:i,date:c,ariaLive:o="polite",compact:f=!1,...u},d)=>{const h=[r,"pkt-alert",a&&`pkt-alert--${a}`,f&&"pkt-alert--compact"].filter(Boolean).join(" "),[k,S]=g.useState(!0),y=()=>{S(!1),l&&l()};return k?t.jsxs("div",{...u,className:h,"aria-live":o,ref:d,children:[t.jsx(j,{className:"pkt-alert__icon",name:a==="info"?"alert-information":`alert-${a}`}),s&&t.jsx("div",{className:"pkt-alert__close",children:t.jsx("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:y,children:t.jsx(j,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),i&&t.jsx("div",{className:"pkt-alert__title",children:i}),t.jsx("div",{className:"pkt-alert__text",children:e}),c&&t.jsxs("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",c]})]}):null}),Gt=g.forwardRef(({href:e,text:r,onClick:a,className:s,...l},i)=>{const c=[s,"pkt-back-link"].filter(Boolean).join(" "),o=f=>{a&&a(f)};return t.jsx("nav",{ref:i,className:c,"aria-label":"Gå tilbake et steg",children:t.jsxs("a",{href:e||"/",className:"pkt-link pkt-link--icon-left",onClick:o,...l,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left","aria-hidden":"true"}),t.jsx("span",{className:"pkt-back-link__text",children:r||"Forsiden"})]})})});/**
33
33
  * @remix-run/router v1.16.0
34
34
  *
35
35
  * Copyright (c) Remix Software Inc.
@@ -38,7 +38,7 @@ React keys must be passed directly to JSX without using spread:
38
38
  * LICENSE.md file in the root directory of this source tree.
39
39
  *
40
40
  * @license MIT
41
- */function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Te.apply(this,arguments)}var et;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(et||(et={}));function I(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function ce(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Oe(e){let{pathname:r="/",search:a="",hash:l=""}=e;return a&&a!=="?"&&(r+=a.charAt(0)==="?"?a:"?"+a),l&&l!=="#"&&(r+=l.charAt(0)==="#"?l:"#"+l),r}function tt(e){let r={};if(e){let a=e.indexOf("#");a>=0&&(r.hash=e.substr(a),e=e.substr(0,a));let l=e.indexOf("?");l>=0&&(r.search=e.substr(l),e=e.substr(0,l)),e&&(r.pathname=e)}return r}var nt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(nt||(nt={}));function rt(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,l]=Ht(e.path,e.caseSensitive,e.end),i=r.match(a);if(!i)return null;let s=i[0],c=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:l.reduce((u,d,h)=>{let{paramName:k,isOptional:P}=d;if(k==="*"){let O=o[h]||"";c=s.slice(0,s.length-O.length).replace(/(.)\/+$/,"$1")}const y=o[h];return P&&!y?u[k]=void 0:u[k]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:c,pattern:e}}function Ht(e,r,a){r===void 0&&(r=!1),a===void 0&&(a=!0),ce(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let l=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,o,f)=>(l.push({paramName:o,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(l.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,r?void 0:"i"),l]}function te(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,l=e.charAt(a);return l&&l!=="/"?null:e.slice(a)||"/"}function Xt(e,r){r===void 0&&(r="/");let{pathname:a,search:l="",hash:i=""}=typeof e=="string"?tt(e):e;return{pathname:a?a.startsWith("/")?a:Zt(a,r):r,search:en(l),hash:tn(i)}}function Zt(e,r){let a=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?a.length>1&&a.pop():i!=="."&&a.push(i)}),a.length>1?a.join("/"):"/"}function $e(e,r,a,l){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(l)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Qt(e){return e.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function at(e,r){let a=Qt(e);return r?a.map((l,i)=>i===e.length-1?l.pathname:l.pathnameBase):a.map(l=>l.pathnameBase)}function st(e,r,a,l){l===void 0&&(l=!1);let i;typeof e=="string"?i=tt(e):(i=Te({},e),I(!i.pathname||!i.pathname.includes("?"),$e("?","pathname","search",i)),I(!i.pathname||!i.pathname.includes("#"),$e("#","pathname","hash",i)),I(!i.search||!i.search.includes("#"),$e("#","search","hash",i)));let s=e===""||i.pathname==="",c=s?"/":i.pathname,o;if(c==null)o=a;else{let h=r.length-1;if(!l&&c.startsWith("..")){let k=c.split("/");for(;k[0]==="..";)k.shift(),h-=1;i.pathname=k.join("/")}o=h>=0?r[h]:"/"}let f=Xt(i,o),u=c&&c!=="/"&&c.endsWith("/"),d=(s||c===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(u||d)&&(f.pathname+="/"),f}const De=e=>e.join("/").replace(/\/\/+/g,"/"),en=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lt=["post","put","patch","delete"];new Set(lt);const nn=["get",...lt];new Set(nn);/**
41
+ */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Oe.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));function I(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function ue(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function $e(e){let{pathname:r="/",search:a="",hash:s=""}=e;return a&&a!=="?"&&(r+=a.charAt(0)==="?"?a:"?"+a),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function nt(e){let r={};if(e){let a=e.indexOf("#");a>=0&&(r.hash=e.substr(a),e=e.substr(0,a));let s=e.indexOf("?");s>=0&&(r.search=e.substr(s),e=e.substr(0,s)),e&&(r.pathname=e)}return r}var rt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rt||(rt={}));function at(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=Ht(e.path,e.caseSensitive,e.end),l=r.match(a);if(!l)return null;let i=l[0],c=i.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:s.reduce((u,d,h)=>{let{paramName:k,isOptional:S}=d;if(k==="*"){let O=o[h]||"";c=i.slice(0,i.length-O.length).replace(/(.)\/+$/,"$1")}const y=o[h];return S&&!y?u[k]=void 0:u[k]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:c,pattern:e}}function Ht(e,r,a){r===void 0&&(r=!1),a===void 0&&(a=!0),ue(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let s=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,o,f)=>(s.push({paramName:o,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,r?void 0:"i"),s]}function ne(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let a=r.endsWith("/")?r.length-1:r.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function Xt(e,r){r===void 0&&(r="/");let{pathname:a,search:s="",hash:l=""}=typeof e=="string"?nt(e):e;return{pathname:a?a.startsWith("/")?a:Zt(a,r):r,search:en(s),hash:tn(l)}}function Zt(e,r){let a=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function De(e,r,a,s){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+r+"` field ["+JSON.stringify(s)+"]. Please separate it out to the ")+("`to."+a+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Qt(e){return e.filter((r,a)=>a===0||r.route.path&&r.route.path.length>0)}function st(e,r){let a=Qt(e);return r?a.map((s,l)=>l===e.length-1?s.pathname:s.pathnameBase):a.map(s=>s.pathnameBase)}function lt(e,r,a,s){s===void 0&&(s=!1);let l;typeof e=="string"?l=nt(e):(l=Oe({},e),I(!l.pathname||!l.pathname.includes("?"),De("?","pathname","search",l)),I(!l.pathname||!l.pathname.includes("#"),De("#","pathname","hash",l)),I(!l.search||!l.search.includes("#"),De("#","search","hash",l)));let i=e===""||l.pathname==="",c=i?"/":l.pathname,o;if(c==null)o=a;else{let h=r.length-1;if(!s&&c.startsWith("..")){let k=c.split("/");for(;k[0]==="..";)k.shift(),h-=1;l.pathname=k.join("/")}o=h>=0?r[h]:"/"}let f=Xt(l,o),u=c&&c!=="/"&&c.endsWith("/"),d=(i||c===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(u||d)&&(f.pathname+="/"),f}const Ie=e=>e.join("/").replace(/\/\/+/g,"/"),en=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tn=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,it=["post","put","patch","delete"];new Set(it);const nn=["get",...it];new Set(nn);/**
42
42
  * React Router v6.23.0
43
43
  *
44
44
  * Copyright (c) Remix Software Inc.
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  * LICENSE.md file in the root directory of this source tree.
48
48
  *
49
49
  * @license MIT
50
- */function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},Ie.apply(this,arguments)}const ke=N.createContext(null);process.env.NODE_ENV!=="production"&&(ke.displayName="DataRouter");const it=N.createContext(null);process.env.NODE_ENV!=="production"&&(it.displayName="DataRouterState");const rn=N.createContext(null);process.env.NODE_ENV!=="production"&&(rn.displayName="Await");const X=N.createContext(null);process.env.NODE_ENV!=="production"&&(X.displayName="Navigation");const Fe=N.createContext(null);process.env.NODE_ENV!=="production"&&(Fe.displayName="Location");const ne=N.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(ne.displayName="Route");const an=N.createContext(null);process.env.NODE_ENV!=="production"&&(an.displayName="RouteError");function sn(e,r){let{relative:a}=r===void 0?{}:r;Le()||(process.env.NODE_ENV!=="production"?I(!1,"useHref() may be used only in the context of a <Router> component."):I(!1));let{basename:l,navigator:i}=N.useContext(X),{hash:s,pathname:c,search:o}=fe(e,{relative:a}),f=c;return l!=="/"&&(f=c==="/"?l:De([l,c])),i.createHref({pathname:f,search:o,hash:s})}function Le(){return N.useContext(Fe)!=null}function ue(){return Le()||(process.env.NODE_ENV!=="production"?I(!1,"useLocation() may be used only in the context of a <Router> component."):I(!1)),N.useContext(Fe).location}const ot="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ct(e){N.useContext(X).static||N.useLayoutEffect(e)}function ln(){let{isDataRoute:e}=N.useContext(ne);return e?pn():on()}function on(){Le()||(process.env.NODE_ENV!=="production"?I(!1,"useNavigate() may be used only in the context of a <Router> component."):I(!1));let e=N.useContext(ke),{basename:r,future:a,navigator:l}=N.useContext(X),{matches:i}=N.useContext(ne),{pathname:s}=ue(),c=JSON.stringify(at(i,a.v7_relativeSplatPath)),o=N.useRef(!1);return ct(()=>{o.current=!0}),N.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&ce(o.current,ot),!o.current)return;if(typeof u=="number"){l.go(u);return}let h=st(u,JSON.parse(c),s,d.relative==="path");e==null&&r!=="/"&&(h.pathname=h.pathname==="/"?r:De([r,h.pathname])),(d.replace?l.replace:l.push)(h,d.state,d)},[r,l,c,s,e])}function fe(e,r){let{relative:a}=r===void 0?{}:r,{future:l}=N.useContext(X),{matches:i}=N.useContext(ne),{pathname:s}=ue(),c=JSON.stringify(at(i,l.v7_relativeSplatPath));return N.useMemo(()=>st(e,JSON.parse(c),s,a==="path"),[e,c,s,a])}var ut=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ut||{}),Ae=function(e){return 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",e}(Ae||{});function ft(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function cn(e){let r=N.useContext(ke);return r||(process.env.NODE_ENV!=="production"?I(!1,ft(e)):I(!1)),r}function un(e){let r=N.useContext(ne);return r||(process.env.NODE_ENV!=="production"?I(!1,ft(e)):I(!1)),r}function pt(e){let r=un(e),a=r.matches[r.matches.length-1];return a.route.id||(process.env.NODE_ENV!=="production"?I(!1,e+' can only be used on routes that contain a unique "id"'):I(!1)),a.route.id}function fn(){return pt(Ae.UseRouteId)}function pn(){let{router:e}=cn(ut.UseNavigateStable),r=pt(Ae.UseNavigateStable),a=N.useRef(!1);return ct(()=>{a.current=!0}),N.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&ce(a.current,ot),a.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ie({fromRouteId:r},s)))},[e,r])}new Promise(()=>{});/**
50
+ */function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Fe.apply(this,arguments)}const ve=N.createContext(null);process.env.NODE_ENV!=="production"&&(ve.displayName="DataRouter");const ot=N.createContext(null);process.env.NODE_ENV!=="production"&&(ot.displayName="DataRouterState");const rn=N.createContext(null);process.env.NODE_ENV!=="production"&&(rn.displayName="Await");const X=N.createContext(null);process.env.NODE_ENV!=="production"&&(X.displayName="Navigation");const Le=N.createContext(null);process.env.NODE_ENV!=="production"&&(Le.displayName="Location");const re=N.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(re.displayName="Route");const an=N.createContext(null);process.env.NODE_ENV!=="production"&&(an.displayName="RouteError");function sn(e,r){let{relative:a}=r===void 0?{}:r;Ae()||(process.env.NODE_ENV!=="production"?I(!1,"useHref() may be used only in the context of a <Router> component."):I(!1));let{basename:s,navigator:l}=N.useContext(X),{hash:i,pathname:c,search:o}=pe(e,{relative:a}),f=c;return s!=="/"&&(f=c==="/"?s:Ie([s,c])),l.createHref({pathname:f,search:o,hash:i})}function Ae(){return N.useContext(Le)!=null}function fe(){return Ae()||(process.env.NODE_ENV!=="production"?I(!1,"useLocation() may be used only in the context of a <Router> component."):I(!1)),N.useContext(Le).location}const ct="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ut(e){N.useContext(X).static||N.useLayoutEffect(e)}function ln(){let{isDataRoute:e}=N.useContext(re);return e?pn():on()}function on(){Ae()||(process.env.NODE_ENV!=="production"?I(!1,"useNavigate() may be used only in the context of a <Router> component."):I(!1));let e=N.useContext(ve),{basename:r,future:a,navigator:s}=N.useContext(X),{matches:l}=N.useContext(re),{pathname:i}=fe(),c=JSON.stringify(st(l,a.v7_relativeSplatPath)),o=N.useRef(!1);return ut(()=>{o.current=!0}),N.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&ue(o.current,ct),!o.current)return;if(typeof u=="number"){s.go(u);return}let h=lt(u,JSON.parse(c),i,d.relative==="path");e==null&&r!=="/"&&(h.pathname=h.pathname==="/"?r:Ie([r,h.pathname])),(d.replace?s.replace:s.push)(h,d.state,d)},[r,s,c,i,e])}function pe(e,r){let{relative:a}=r===void 0?{}:r,{future:s}=N.useContext(X),{matches:l}=N.useContext(re),{pathname:i}=fe(),c=JSON.stringify(st(l,s.v7_relativeSplatPath));return N.useMemo(()=>lt(e,JSON.parse(c),i,a==="path"),[e,c,i,a])}var ft=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ft||{}),Ue=function(e){return 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",e}(Ue||{});function pt(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function cn(e){let r=N.useContext(ve);return r||(process.env.NODE_ENV!=="production"?I(!1,pt(e)):I(!1)),r}function un(e){let r=N.useContext(re);return r||(process.env.NODE_ENV!=="production"?I(!1,pt(e)):I(!1)),r}function dt(e){let r=un(e),a=r.matches[r.matches.length-1];return a.route.id||(process.env.NODE_ENV!=="production"?I(!1,e+' can only be used on routes that contain a unique "id"'):I(!1)),a.route.id}function fn(){return dt(Ue.UseRouteId)}function pn(){let{router:e}=cn(ft.UseNavigateStable),r=dt(Ue.UseNavigateStable),a=N.useRef(!1);return ut(()=>{a.current=!0}),N.useCallback(function(l,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&ue(a.current,ct),a.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,Fe({fromRouteId:r},i)))},[e,r])}new Promise(()=>{});/**
51
51
  * React Router DOM v6.23.0
52
52
  *
53
53
  * Copyright (c) Remix Software Inc.
@@ -56,8 +56,8 @@ React keys must be passed directly to JSX without using spread:
56
56
  * LICENSE.md file in the root directory of this source tree.
57
57
  *
58
58
  * @license MIT
59
- */function re(){return re=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},re.apply(this,arguments)}function Ue(e,r){if(e==null)return{};var a={},l=Object.keys(e),i,s;for(s=0;s<l.length;s++)i=l[s],!(r.indexOf(i)>=0)&&(a[i]=e[i]);return a}const ve="get",_e="application/x-www-form-urlencoded";function be(e){return e!=null&&typeof e.tagName=="string"}function dn(e){return be(e)&&e.tagName.toLowerCase()==="button"}function mn(e){return be(e)&&e.tagName.toLowerCase()==="form"}function hn(e){return be(e)&&e.tagName.toLowerCase()==="input"}function kn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vn(e,r){return e.button===0&&(!r||r==="_self")&&!kn(e)}let ge=null;function _n(){if(ge===null)try{new FormData(document.createElement("form"),0),ge=!1}catch{ge=!0}return ge}const bn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ve(e){return e!=null&&!bn.has(e)?(process.env.NODE_ENV!=="production"&&ce(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+_e+'"')),null):e}function gn(e,r){let a,l,i,s,c;if(mn(e)){let o=e.getAttribute("action");l=o?te(o,r):null,a=e.getAttribute("method")||ve,i=Ve(e.getAttribute("enctype"))||_e,s=new FormData(e)}else if(dn(e)||hn(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||o.getAttribute("action");if(l=f?te(f,r):null,a=e.getAttribute("formmethod")||o.getAttribute("method")||ve,i=Ve(e.getAttribute("formenctype"))||Ve(o.getAttribute("enctype"))||_e,s=new FormData(o,e),!_n()){let{name:u,type:d,value:h}=e;if(d==="image"){let k=u?u+".":"";s.append(k+"x","0"),s.append(k+"y","0")}else u&&s.append(u,h)}}else{if(be(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=ve,l=null,i=_e,c=e}return s&&i==="text/plain"&&(c=s,s=void 0),{action:l,method:a.toLowerCase(),encType:i,formData:s,body:c}}const xn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Nn=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],jn=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],yn="6";try{window.__reactRouterVersion=yn}catch{}const dt=N.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(dt.displayName="ViewTransition");const wn=N.createContext(new Map);process.env.NODE_ENV!=="production"&&(wn.displayName="Fetchers"),process.env.NODE_ENV;const En=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xe=N.forwardRef(function(r,a){let{onClick:l,relative:i,reloadDocument:s,replace:c,state:o,target:f,to:u,preventScrollReset:d,unstable_viewTransition:h}=r,k=Ue(r,xn),{basename:P}=N.useContext(X),y,O=!1;if(typeof u=="string"&&Cn.test(u)&&(y=u,En))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),V=te(w.pathname,P);w.origin===v.origin&&V!=null?u=V+w.search+w.hash:O=!0}catch{process.env.NODE_ENV!=="production"&&ce(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let D=sn(u,{relative:i}),S=Tn(u,{replace:c,state:o,target:f,preventScrollReset:d,relative:i,unstable_viewTransition:h});function _(v){l&&l(v),v.defaultPrevented||S(v)}return N.createElement("a",re({},k,{href:y||D,onClick:O||s?l:_,ref:a,target:f}))});process.env.NODE_ENV!=="production"&&(xe.displayName="Link");const Pn=N.forwardRef(function(r,a){let{"aria-current":l="page",caseSensitive:i=!1,className:s="",end:c=!1,style:o,to:f,unstable_viewTransition:u,children:d}=r,h=Ue(r,Nn),k=fe(f,{relative:h.relative}),P=ue(),y=N.useContext(it),{navigator:O,basename:D}=N.useContext(X),S=y!=null&&Ln(k)&&u===!0,_=O.encodeLocation?O.encodeLocation(k).pathname:k.pathname,v=P.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;i||(v=v.toLowerCase(),w=w?w.toLowerCase():null,_=_.toLowerCase()),w&&D&&(w=te(w,D)||w);const V=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let W=v===_||!c&&v.startsWith(_)&&v.charAt(V)==="/",B=w!=null&&(w===_||!c&&w.startsWith(_)&&w.charAt(_.length)==="/"),M={isActive:W,isPending:B,isTransitioning:S},Y=W?l:void 0,K;typeof s=="function"?K=s(M):K=[s,W?"active":null,B?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let q=typeof o=="function"?o(M):o;return N.createElement(xe,re({},h,{"aria-current":Y,className:K,ref:a,style:q,to:f,unstable_viewTransition:u}),typeof d=="function"?d(M):d)});process.env.NODE_ENV!=="production"&&(Pn.displayName="NavLink");const Sn=N.forwardRef((e,r)=>{let{fetcherKey:a,navigate:l,reloadDocument:i,replace:s,state:c,method:o=ve,action:f,onSubmit:u,relative:d,preventScrollReset:h,unstable_viewTransition:k}=e,P=Ue(e,jn),y=In(),O=Fn(f,{relative:d}),D=o.toLowerCase()==="get"?"get":"post",S=_=>{if(u&&u(_),_.defaultPrevented)return;_.preventDefault();let v=_.nativeEvent.submitter,w=(v==null?void 0:v.getAttribute("formmethod"))||o;y(v||_.currentTarget,{fetcherKey:a,method:w,navigate:l,replace:s,state:c,relative:d,preventScrollReset:h,unstable_viewTransition:k})};return N.createElement("form",re({ref:r,method:D,action:O,onSubmit:i?u:S},P))});process.env.NODE_ENV!=="production"&&(Sn.displayName="Form"),process.env.NODE_ENV;var Ne;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ne||(Ne={}));var mt;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mt||(mt={}));function Rn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function ht(e){let r=N.useContext(ke);return r||(process.env.NODE_ENV!=="production"?I(!1,Rn(e)):I(!1)),r}function Tn(e,r){let{target:a,replace:l,state:i,preventScrollReset:s,relative:c,unstable_viewTransition:o}=r===void 0?{}:r,f=ln(),u=ue(),d=fe(e,{relative:c});return N.useCallback(h=>{if(vn(h,a)){h.preventDefault();let k=l!==void 0?l:Oe(u)===Oe(d);f(e,{replace:k,state:i,preventScrollReset:s,relative:c,unstable_viewTransition:o})}},[u,f,d,l,i,a,e,s,c,o])}function On(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let $n=0,Dn=()=>"__"+String(++$n)+"__";function In(){let{router:e}=ht(Ne.UseSubmit),{basename:r}=N.useContext(X),a=fn();return N.useCallback(function(l,i){i===void 0&&(i={}),On();let{action:s,method:c,encType:o,formData:f,body:u}=gn(l,r);if(i.navigate===!1){let d=i.fetcherKey||Dn();e.fetch(d,a,i.action||s,{preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||c,formEncType:i.encType||o,unstable_flushSync:i.unstable_flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||c,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:a,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[e,r,a])}function Fn(e,r){let{relative:a}=r===void 0?{}:r,{basename:l}=N.useContext(X),i=N.useContext(ne);i||(process.env.NODE_ENV!=="production"?I(!1,"useFormAction must be used inside a RouteContext"):I(!1));let[s]=i.matches.slice(-1),c=re({},fe(e||".",{relative:a})),o=ue();if(e==null){c.search=o.search;let f=new URLSearchParams(c.search);f.has("index")&&f.get("index")===""&&(f.delete("index"),c.search=f.toString()?"?"+f.toString():"")}return(!e||e===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(c.pathname=c.pathname==="/"?l:De([l,c.pathname])),Oe(c)}function Ln(e,r){r===void 0&&(r={});let a=N.useContext(dt);a==null&&(process.env.NODE_ENV!=="production"?I(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):I(!1));let{basename:l}=ht(Ne.useViewTransitionState),i=fe(e,{relative:r.relative});if(!a.isTransitioning)return!1;let s=te(a.currentLocation.pathname,l)||a.currentLocation.pathname,c=te(a.nextLocation.pathname,l)||a.nextLocation.pathname;return rt(i.pathname,c)!=null||rt(i.pathname,s)!=null}const An=g.forwardRef(({breadcrumbs:e,navigationType:r,className:a,...l},i)=>{const s=e.slice(0,4),c=s[s.length-2],o=[a,"pkt-breadcrumbs"].filter(Boolean).join(" ");return t.jsxs("nav",{ref:i,"aria-label":"brødsmulemeny",className:o,children:[t.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:s.map((f,u)=>t.jsx("li",{className:"pkt-breadcrumbs__item",children:u===s.length-1?t.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})}):r==="router"?t.jsxs(xe,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[t.jsx(j,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})]}):t.jsxs("a",{href:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[t.jsx(j,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${u}`))}),r==="router"?t.jsxs(xe,{to:c.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:c.text})]}):t.jsxs("a",{href:c.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:c.text})]})]})}),ae=g.forwardRef(({children:e,className:r,iconName:a="user",secondIconName:l="user",size:i="medium",skin:s="primary",type:c="button",variant:o="label-only",color:f,isLoading:u=!1,...d},h)=>{const k=[r,"pkt-btn",i&&`pkt-btn--${i}`,s&&`pkt-btn--${s}`,o&&`pkt-btn--${o}`,f&&`pkt-btn--${f}`,u&&"pkt-btn--active"].filter(Boolean).join(" ");return t.jsxs("button",{...d,className:k,type:c,ref:h,children:[u&&t.jsx(j,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/11.12/animations/"}),o!=="label-only"&&t.jsx(j,{className:"pkt-btn__icon",name:a}),t.jsx("span",{className:"pkt-btn__text",children:e}),o==="icons-right-and-left"&&t.jsx(j,{className:"pkt-btn__icon",name:l})]})});ae.displayName="PktButton";const kt=g.forwardRef(({id:e,hasTile:r=!1,disabled:a=!1,label:l,labelPosition:i="right",hideLabel:s=!1,checkHelptext:c,hasError:o=!1,isSwitch:f=!1,className:u,...d},h)=>{const k=[u,"pkt-input-check"].filter(Boolean).join(" ");return t.jsx("div",{className:k,children:t.jsxs("div",{className:`pkt-input-check__input ${r?"pkt-input-check__input--tile":""} ${a&&r?"pkt-input-check__input--tile-disabled":""}`,children:[l&&i==="left"&&t.jsxs("label",{className:`pkt-input-check__input-label ${s?"pkt-sr-only":""}`,htmlFor:e,children:[l,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]}),t.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${o?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:f?"switch":"checkbox",id:e,disabled:a,...d}),l&&i==="right"&&t.jsxs("label",{className:`pkt-input-check__input-label ${s?"pkt-sr-only":""}`,htmlFor:e,children:[l,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]})]})})});kt.displayName="PktCheckbox";const Un=({columnOne:e,columnTwo:r,socialLinks:a,className:l,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:s="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var o,f;const c=[l,"pkt-footer"].filter(Boolean).join(" ");return t.jsx("footer",{className:c,"data-mode":"dark",children:t.jsxs("div",{className:"pkt-footer__container",children:[t.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:e.title}),t.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&t.jsx("li",{className:"pkt-footer__text",children:e.text}),(o=e.links)==null?void 0:o.map((u,d)=>t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:`pkt-footer__link ${u.external?"pkt-link--external":""}`,href:u.href,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),u.text]})},`links-${d}`))]})]}),t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:r.title}),t.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&t.jsx("li",{className:"pkt-footer__text",children:r.text}),(f=r.links)==null?void 0:f.map((u,d)=>t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:`pkt-footer__link ${u.external?"pkt-link--external":""}`,href:u.href,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),u.text]})},`links-${d}`))]})]}),t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),t.jsxs("ul",{className:"pkt-footer__list",children:[t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:"pkt-footer__link",href:i,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:"pkt-footer__link",href:s,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),a&&t.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[t.jsx("div",{className:"pkt-footer__social-languages",children:a.filter(u=>u.language).map((u,d)=>t.jsx("div",{className:"pkt-footer__social-language",children:t.jsx("a",{href:u.href,"aria-label":`til ${u.language} versjon av nettsiden`,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:u.language})},`sociallinks-language-${d}`))}),t.jsx("div",{className:"pkt-footer__social-icons",children:a.filter(u=>u.iconName).map((u,d)=>t.jsx(g.Fragment,{children:t.jsx("a",{href:u.href,"aria-label":`til ${u.iconName}`,className:"pkt-footer__social-icon-link",target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:t.jsx(j,{className:"pkt-footer__social-icon",name:u.iconName})})},`sociallinks-${d}`))})]})]})})},Vn=({links:e=[],personvernOgInfoLink:r="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:a="https://www.oslo.kommune.no/tilgjengelighet/",className:l})=>{const i=[l,"pkt-footer-simple"].filter(Boolean).join(" ");return t.jsx("footer",{className:i,"data-mode":"dark",children:t.jsx("div",{className:"pkt-footer-simple__container",children:t.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((s,c)=>t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("a",{className:`pkt-footer-simple__link ${s.external?" pkt-link--external":""}`,href:s.href,target:s.openInNewTab?"_blank":"_self",rel:s.openInNewTab?"noopener noreferrer":void 0,children:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),s.text]})},c)),t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("a",{className:"pkt-footer-simple__link",href:r,children:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("a",{className:"pkt-footer-simple__link",href:a,children:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var vt={exports:{}};/*!
59
+ */function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},ae.apply(this,arguments)}function Ve(e,r){if(e==null)return{};var a={},s=Object.keys(e),l,i;for(i=0;i<s.length;i++)l=s[i],!(r.indexOf(l)>=0)&&(a[l]=e[l]);return a}const _e="get",be="application/x-www-form-urlencoded";function ge(e){return e!=null&&typeof e.tagName=="string"}function dn(e){return ge(e)&&e.tagName.toLowerCase()==="button"}function mn(e){return ge(e)&&e.tagName.toLowerCase()==="form"}function hn(e){return ge(e)&&e.tagName.toLowerCase()==="input"}function kn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function vn(e,r){return e.button===0&&(!r||r==="_self")&&!kn(e)}let xe=null;function _n(){if(xe===null)try{new FormData(document.createElement("form"),0),xe=!1}catch{xe=!0}return xe}const bn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Be(e){return e!=null&&!bn.has(e)?(process.env.NODE_ENV!=="production"&&ue(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+be+'"')),null):e}function gn(e,r){let a,s,l,i,c;if(mn(e)){let o=e.getAttribute("action");s=o?ne(o,r):null,a=e.getAttribute("method")||_e,l=Be(e.getAttribute("enctype"))||be,i=new FormData(e)}else if(dn(e)||hn(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||o.getAttribute("action");if(s=f?ne(f,r):null,a=e.getAttribute("formmethod")||o.getAttribute("method")||_e,l=Be(e.getAttribute("formenctype"))||Be(o.getAttribute("enctype"))||be,i=new FormData(o,e),!_n()){let{name:u,type:d,value:h}=e;if(d==="image"){let k=u?u+".":"";i.append(k+"x","0"),i.append(k+"y","0")}else u&&i.append(u,h)}}else{if(ge(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=_e,s=null,l=be,c=e}return i&&l==="text/plain"&&(c=i,i=void 0),{action:s,method:a.toLowerCase(),encType:l,formData:i,body:c}}const xn=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Nn=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],jn=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],yn="6";try{window.__reactRouterVersion=yn}catch{}const mt=N.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(mt.displayName="ViewTransition");const wn=N.createContext(new Map);process.env.NODE_ENV!=="production"&&(wn.displayName="Fetchers"),process.env.NODE_ENV;const En=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ne=N.forwardRef(function(r,a){let{onClick:s,relative:l,reloadDocument:i,replace:c,state:o,target:f,to:u,preventScrollReset:d,unstable_viewTransition:h}=r,k=Ve(r,xn),{basename:S}=N.useContext(X),y,O=!1;if(typeof u=="string"&&Cn.test(u)&&(y=u,En))try{let v=new URL(window.location.href),w=u.startsWith("//")?new URL(v.protocol+u):new URL(u),V=ne(w.pathname,S);w.origin===v.origin&&V!=null?u=V+w.search+w.hash:O=!0}catch{process.env.NODE_ENV!=="production"&&ue(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let D=sn(u,{relative:l}),R=Tn(u,{replace:c,state:o,target:f,preventScrollReset:d,relative:l,unstable_viewTransition:h});function _(v){s&&s(v),v.defaultPrevented||R(v)}return N.createElement("a",ae({},k,{href:y||D,onClick:O||i?s:_,ref:a,target:f}))});process.env.NODE_ENV!=="production"&&(Ne.displayName="Link");const Pn=N.forwardRef(function(r,a){let{"aria-current":s="page",caseSensitive:l=!1,className:i="",end:c=!1,style:o,to:f,unstable_viewTransition:u,children:d}=r,h=Ve(r,Nn),k=pe(f,{relative:h.relative}),S=fe(),y=N.useContext(ot),{navigator:O,basename:D}=N.useContext(X),R=y!=null&&Ln(k)&&u===!0,_=O.encodeLocation?O.encodeLocation(k).pathname:k.pathname,v=S.pathname,w=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;l||(v=v.toLowerCase(),w=w?w.toLowerCase():null,_=_.toLowerCase()),w&&D&&(w=ne(w,D)||w);const V=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let B=v===_||!c&&v.startsWith(_)&&v.charAt(V)==="/",W=w!=null&&(w===_||!c&&w.startsWith(_)&&w.charAt(_.length)==="/"),M={isActive:B,isPending:W,isTransitioning:R},Y=B?s:void 0,K;typeof i=="function"?K=i(M):K=[i,B?"active":null,W?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let q=typeof o=="function"?o(M):o;return N.createElement(Ne,ae({},h,{"aria-current":Y,className:K,ref:a,style:q,to:f,unstable_viewTransition:u}),typeof d=="function"?d(M):d)});process.env.NODE_ENV!=="production"&&(Pn.displayName="NavLink");const Sn=N.forwardRef((e,r)=>{let{fetcherKey:a,navigate:s,reloadDocument:l,replace:i,state:c,method:o=_e,action:f,onSubmit:u,relative:d,preventScrollReset:h,unstable_viewTransition:k}=e,S=Ve(e,jn),y=In(),O=Fn(f,{relative:d}),D=o.toLowerCase()==="get"?"get":"post",R=_=>{if(u&&u(_),_.defaultPrevented)return;_.preventDefault();let v=_.nativeEvent.submitter,w=(v==null?void 0:v.getAttribute("formmethod"))||o;y(v||_.currentTarget,{fetcherKey:a,method:w,navigate:s,replace:i,state:c,relative:d,preventScrollReset:h,unstable_viewTransition:k})};return N.createElement("form",ae({ref:r,method:D,action:O,onSubmit:l?u:R},S))});process.env.NODE_ENV!=="production"&&(Sn.displayName="Form"),process.env.NODE_ENV;var je;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(je||(je={}));var ht;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ht||(ht={}));function Rn(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function kt(e){let r=N.useContext(ve);return r||(process.env.NODE_ENV!=="production"?I(!1,Rn(e)):I(!1)),r}function Tn(e,r){let{target:a,replace:s,state:l,preventScrollReset:i,relative:c,unstable_viewTransition:o}=r===void 0?{}:r,f=ln(),u=fe(),d=pe(e,{relative:c});return N.useCallback(h=>{if(vn(h,a)){h.preventDefault();let k=s!==void 0?s:$e(u)===$e(d);f(e,{replace:k,state:l,preventScrollReset:i,relative:c,unstable_viewTransition:o})}},[u,f,d,s,l,a,e,i,c,o])}function On(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let $n=0,Dn=()=>"__"+String(++$n)+"__";function In(){let{router:e}=kt(je.UseSubmit),{basename:r}=N.useContext(X),a=fn();return N.useCallback(function(s,l){l===void 0&&(l={}),On();let{action:i,method:c,encType:o,formData:f,body:u}=gn(s,r);if(l.navigate===!1){let d=l.fetcherKey||Dn();e.fetch(d,a,l.action||i,{preventScrollReset:l.preventScrollReset,formData:f,body:u,formMethod:l.method||c,formEncType:l.encType||o,unstable_flushSync:l.unstable_flushSync})}else e.navigate(l.action||i,{preventScrollReset:l.preventScrollReset,formData:f,body:u,formMethod:l.method||c,formEncType:l.encType||o,replace:l.replace,state:l.state,fromRouteId:a,unstable_flushSync:l.unstable_flushSync,unstable_viewTransition:l.unstable_viewTransition})},[e,r,a])}function Fn(e,r){let{relative:a}=r===void 0?{}:r,{basename:s}=N.useContext(X),l=N.useContext(re);l||(process.env.NODE_ENV!=="production"?I(!1,"useFormAction must be used inside a RouteContext"):I(!1));let[i]=l.matches.slice(-1),c=ae({},pe(e||".",{relative:a})),o=fe();if(e==null){c.search=o.search;let f=new URLSearchParams(c.search);f.has("index")&&f.get("index")===""&&(f.delete("index"),c.search=f.toString()?"?"+f.toString():"")}return(!e||e===".")&&i.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(c.pathname=c.pathname==="/"?s:Ie([s,c.pathname])),$e(c)}function Ln(e,r){r===void 0&&(r={});let a=N.useContext(mt);a==null&&(process.env.NODE_ENV!=="production"?I(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):I(!1));let{basename:s}=kt(je.useViewTransitionState),l=pe(e,{relative:r.relative});if(!a.isTransitioning)return!1;let i=ne(a.currentLocation.pathname,s)||a.currentLocation.pathname,c=ne(a.nextLocation.pathname,s)||a.nextLocation.pathname;return at(l.pathname,c)!=null||at(l.pathname,i)!=null}const An=g.forwardRef(({breadcrumbs:e,navigationType:r,className:a,...s},l)=>{const i=e.slice(0,4),c=i[i.length-2],o=[a,"pkt-breadcrumbs"].filter(Boolean).join(" ");return t.jsxs("nav",{ref:l,"aria-label":"brødsmulemeny",className:o,children:[t.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:i.map((f,u)=>t.jsx("li",{className:"pkt-breadcrumbs__item",children:u===i.length-1?t.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})}):r==="router"?t.jsxs(Ne,{to:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...s,children:[t.jsx(j,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})]}):t.jsxs("a",{href:f.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...s,children:[t.jsx(j,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:f.text})]})},`breadcrumb-${u}`))}),r==="router"?t.jsxs(Ne,{to:c.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...s,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:c.text})]}):t.jsxs("a",{href:c.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...s,children:[t.jsx(j,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),t.jsx("span",{className:"pkt-breadcrumbs__text",children:c.text})]})]})}),se=g.forwardRef(({children:e,className:r,iconName:a="user",secondIconName:s="user",size:l="medium",skin:i="primary",type:c="button",variant:o="label-only",color:f,isLoading:u=!1,...d},h)=>{const k=[r,"pkt-btn",l&&`pkt-btn--${l}`,i&&`pkt-btn--${i}`,o&&`pkt-btn--${o}`,f&&`pkt-btn--${f}`,u&&"pkt-btn--active"].filter(Boolean).join(" ");return t.jsxs("button",{...d,className:k,type:c,ref:h,children:[u&&t.jsx(j,{className:"pkt-btn__icon pkt-btn__spinner",name:"spinner-blue",path:"https://punkt-cdn.oslo.kommune.no/11.13/animations/"}),o!=="label-only"&&t.jsx(j,{className:"pkt-btn__icon",name:a}),t.jsx("span",{className:"pkt-btn__text",children:e}),o==="icons-right-and-left"&&t.jsx(j,{className:"pkt-btn__icon",name:s})]})});se.displayName="PktButton";const vt=g.forwardRef(({id:e,hasTile:r=!1,disabled:a=!1,label:s,labelPosition:l="right",hideLabel:i=!1,checkHelptext:c,hasError:o=!1,isSwitch:f=!1,className:u,...d},h)=>{const k=[u,"pkt-input-check"].filter(Boolean).join(" ");return t.jsx("div",{className:k,children:t.jsxs("div",{className:`pkt-input-check__input ${r?"pkt-input-check__input--tile":""} ${a&&r?"pkt-input-check__input--tile-disabled":""}`,children:[s&&l==="left"&&t.jsxs("label",{className:`pkt-input-check__input-label ${i?"pkt-sr-only":""}`,htmlFor:e,children:[s,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]}),t.jsx("input",{ref:h,className:`pkt-input-check__input-checkbox ${o?"pkt-input-check__input-checkbox--error":""}`,type:"checkbox",role:f?"switch":"checkbox",id:e,disabled:a,...d}),s&&l==="right"&&t.jsxs("label",{className:`pkt-input-check__input-label ${i?"pkt-sr-only":""}`,htmlFor:e,children:[s,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]})]})})});vt.displayName="PktCheckbox";const Un=({columnOne:e,columnTwo:r,socialLinks:a,className:s,personvernOgInfoLink:l="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:i="https://www.oslo.kommune.no/tilgjengelighet/"})=>{var o,f;const c=[s,"pkt-footer"].filter(Boolean).join(" ");return t.jsx("footer",{className:c,"data-mode":"dark",children:t.jsxs("div",{className:"pkt-footer__container",children:[t.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:e.title}),t.jsxs("ul",{className:"pkt-footer__list",children:[e.text&&t.jsx("li",{className:"pkt-footer__text",children:e.text}),(o=e.links)==null?void 0:o.map((u,d)=>t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:`pkt-footer__link ${u.external?"pkt-link--external":""}`,href:u.href,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),u.text]})},`links-${d}`))]})]}),t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:r.title}),t.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&t.jsx("li",{className:"pkt-footer__text",children:r.text}),(f=r.links)==null?void 0:f.map((u,d)=>t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:`pkt-footer__link ${u.external?"pkt-link--external":""}`,href:u.href,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),u.text]})},`links-${d}`))]})]}),t.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[t.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),t.jsxs("ul",{className:"pkt-footer__list",children:[t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:"pkt-footer__link",href:l,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),t.jsx("li",{className:"pkt-footer__list-item",children:t.jsxs("a",{className:"pkt-footer__link",href:i,children:[t.jsx(j,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),a&&t.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[t.jsx("div",{className:"pkt-footer__social-languages",children:a.filter(u=>u.language).map((u,d)=>t.jsx("div",{className:"pkt-footer__social-language",children:t.jsx("a",{href:u.href,"aria-label":`til ${u.language} versjon av nettsiden`,target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:u.language})},`sociallinks-language-${d}`))}),t.jsx("div",{className:"pkt-footer__social-icons",children:a.filter(u=>u.iconName).map((u,d)=>t.jsx(g.Fragment,{children:t.jsx("a",{href:u.href,"aria-label":`til ${u.iconName}`,className:"pkt-footer__social-icon-link",target:u.openInNewTab?"_blank":"_self",rel:u.openInNewTab?"noopener noreferrer":void 0,children:t.jsx(j,{className:"pkt-footer__social-icon",name:u.iconName})})},`sociallinks-${d}`))})]})]})})},Vn=({links:e=[],personvernOgInfoLink:r="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:a="https://www.oslo.kommune.no/tilgjengelighet/",className:s})=>{const l=[s,"pkt-footer-simple"].filter(Boolean).join(" ");return t.jsx("footer",{className:l,"data-mode":"dark",children:t.jsx("div",{className:"pkt-footer-simple__container",children:t.jsxs("ul",{className:"pkt-footer-simple__list",children:[e.map((i,c)=>t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("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:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),i.text]})},c)),t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("a",{className:"pkt-footer-simple__link",href:r,children:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),t.jsx("li",{className:"pkt-footer-simple__list-item",children:t.jsxs("a",{className:"pkt-footer-simple__link",href:a,children:[t.jsx(j,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})})};var _t={exports:{}};/*!
60
60
  Copyright (c) 2018 Jed Watson.
61
61
  Licensed under the MIT License (MIT), see
62
62
  http://jedwatson.github.io/classnames
63
- */(function(e){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var o=arguments[c];o&&(s=i(s,l(o)))}return s}function l(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var o in s)r.call(s,o)&&s[o]&&(c=i(c,o));return c}function i(s,c){return c?s?s+" "+c:s+c:s}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(vt);var Wn=vt.exports;const _t=Bt(Wn),Bn=g.forwardRef(({className:e,logoLink:r="https://www.oslo.kommune.no/",serviceName:a,fixed:l=!0,scrollToHide:i=!0,user:s,userMenu:c,representing:o,userOptions:f,userMenuFooter:u,canChangeRepresentation:d=!0,showMenuButton:h=!1,showLogOutButton:k=!1,openMenu:P,logOut:y,changeRepresentation:O,children:D,...S},_)=>{const v=g.useMemo(()=>typeof(s==null?void 0:s.lastLoggedIn)=="string"?s.lastLoggedIn:s!=null&&s.lastLoggedIn?new Date(s.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[s]),[w,V]=g.useState(!1),[W,B]=g.useState(0),[M,Y]=g.useState(!1),K=g.useRef(null);g.useEffect(()=>(document.addEventListener("mouseup",J),window.addEventListener("scroll",L),()=>{document.removeEventListener("mouseup",J),window.removeEventListener("scroll",L)}));const q=()=>{Y(!M)},J=b=>{K.current&&!K.current.contains(b.target)&&Y(!1)},L=()=>{if(i){const b=window.pageYOffset||document.documentElement.scrollTop;if(b<0||Math.abs(b-W)<60)return;V(b>W),B(b)}};return t.jsxs("header",{...S,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:_t(e,"pkt-header",{"pkt-header--fixed":l,"pkt-header--scroll-to-hide":i,"pkt-header--hidden":w}),ref:_,children:[t.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?t.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:t.jsx(j,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/11.12/logos/"})}):t.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:t.jsx(j,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/11.12/logos/"})}),t.jsx("span",{className:"pkt-header__logo-service",children:a})]}),t.jsx("nav",{className:"pkt-header__actions",children:t.jsxs("ul",{className:"pkt-header__actions-row",children:[h&&t.jsx("li",{children:t.jsx(ae,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:P,children:"Meny"})}),(s||o)&&t.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${M&&!w?"pkt-header--open-dropdown":""}`,ref:K,children:[t.jsxs("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":M,onClick:q,children:[t.jsx(j,{name:"user",className:"pkt-btn__icon"}),t.jsx("span",{className:"pkt-header__user-fullname",children:(o==null?void 0:o.name)||(s==null?void 0:s.name)}),t.jsx("span",{className:"pkt-header__user-shortname",children:(o==null?void 0:o.shortname)||(s==null?void 0:s.shortname)}),t.jsx(j,{name:"chevron-thin-down",className:"pkt-btn--closed"}),t.jsx(j,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),t.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[s&&t.jsxs("li",{children:[t.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),t.jsx("div",{className:"pkt-user-menu__name",children:s.name}),s.lastLoggedIn&&t.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",t.jsx("time",{children:v})]})]}),c&&t.jsx("li",{children:t.jsx("ul",{className:"pkt-list",children:c.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsxs("a",{href:b.target,className:"pkt-link",children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]}):t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]})},`userMenu-${U}`))})}),(o||d)&&t.jsxs("li",{children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),t.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.orgNumber&&t.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",o.orgNumber]})]}),t.jsx("ul",{className:"pkt-list mt-size-16",children:d&&t.jsx("li",{children:t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:O,children:[t.jsx(j,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),t.jsx("li",{children:t.jsx("ul",{className:"pkt-list",children:(f||!k)&&t.jsxs(t.Fragment,{children:[f==null?void 0:f.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsxs("a",{href:b.target,className:"pkt-link",children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]}):t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]})},`userOptions-${U}`)),!k&&t.jsx("li",{children:t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:y,children:[t.jsx(j,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),u&&t.jsx("li",{className:"footer",children:t.jsx("ul",{className:"pkt-list-horizontal bordered",children:u.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsx("a",{href:b.target,className:"pkt-link",children:b.title}):t.jsx("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:b.title})},`userMenuFooter-${U}`))})})]})]}),D&&t.jsx("li",{children:D}),k&&t.jsx("li",{children:t.jsx(ae,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:y,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),bt=g.forwardRef(({label:e,id:r,children:a,...l},i)=>t.jsxs("div",{className:"pkt-form-group",children:[t.jsx("label",{htmlFor:r,className:"pkt-form-label",children:e}),t.jsx("input",{className:"pkt-form-input",id:r,...l,ref:i}),a]}));bt.displayName="PktInput";const pe=g.forwardRef(({forId:e,label:r,helptext:a,helptextDropdown:l,helptextDropdownButton:i,optionalTag:s=!1,optionalText:c="Valgfritt",requiredTag:o=!1,requiredText:f="Må fylles ut",hasError:u,errorMessage:d,disabled:h,inline:k,ariaDescribedby:P,useWrapper:y=!0,children:O,className:D,hasFieldset:S=!1},_)=>{const[v,w]=g.useState(!1),V=()=>{w(!v)},W=()=>s?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":o?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",B=s?c:o?f:"",M=h?"pkt-inputwrapper--disabled":"",Y=k?"pkt-inputwrapper--inline":"",K=u?"pkt-inputwrapper--error":"",q=!!l&&l!=="",J=i||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',L=S?"fieldset":q?"div":"label",b=S?"legend":q?"h2":"span",U=P||(a?`${e}-helptext`:void 0);return t.jsxs("div",{className:["pkt-inputwrapper",D,M,Y,K].join(" "),ref:_,children:[y?t.jsx(t.Fragment,{children:t.jsxs(L,{htmlFor:S?void 0:e,"aria-describedby":q?void 0:P,className:`pkt-inputwrapper__label${S?" pkt-inputwrapper__fieldset":""}`,children:[t.jsxs(b,{id:`${e}-label`,className:`${S?" pkt-inputwrapper__legend":""}`,children:[r,B!==""&&t.jsx("span",{className:W(),children:B})]}),a&&t.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,dangerouslySetInnerHTML:{__html:a}}),q&&l!==""&&t.jsxs("div",{children:[t.jsx(ae,{skin:"tertiary",size:"small",variant:"icon-right",iconName:v?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:V,children:t.jsx("span",{dangerouslySetInnerHTML:{__html:J}})}),t.jsx("div",{className:`pkt-inputwrapper__helptext ${v?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:t.jsx("span",{dangerouslySetInnerHTML:{__html:l}})}),!S&&t.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":U,children:r})]}),t.jsx(t.Fragment,{children:O})]})}):t.jsxs(t.Fragment,{children:[!S&&t.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":U,id:`${e}-label`,children:r}),O]}),u&&d&&t.jsx("div",{children:t.jsx(Qe,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:d})})]})});pe.displayName="PktInputWrapper";const gt=g.forwardRef(({children:e,className:r,iconName:a="user",openInNewTab:l=!1,skin:i="normal",href:s="#",external:c=!1,title:o,...f},u)=>{const d=[r,"pkt-linkcard",i&&`pkt-linkcard--${i}`].filter(Boolean).join(" ");return t.jsxs("a",{...f,href:s,className:`pkt-linkcard pkt-link ${d}`,target:l?"_blank":"_self",rel:l?"noopener noreferrer":void 0,ref:u,children:[t.jsx(j,{className:"pkt-link__icon",name:a}),t.jsxs("div",{className:"pkt-linkcard__content",children:[t.jsx("div",{className:`pkt-linkcard__title ${c?"pkt-link pkt-link--external":""}`,children:o}),t.jsx("div",{className:"pkt-linkcard__text",children:e})]})]})});gt.displayName="PktLinkCard";const Mn=g.forwardRef(({className:e,message:r,size:a="medium",inline:l=!1,isLoading:i=!0,variant:s="rainbow",delay:c=0,children:o,...f},u)=>{const d=`pkt-loader pkt-loader--${a}`,[h,k]=g.useState(!(c>0));c>0&&setTimeout(()=>{k(!0)},c);const P=y=>y==="shapes"?"loader":y==="blue"?"spinner-blue":"spinner";return t.jsx("div",{role:"status","aria-live":"polite","aria-busy":i,className:`pkt-loader--${l?"inline":"box"} ${e||""}`,children:i?t.jsx(t.Fragment,{children:h?t.jsxs("div",{className:d,"data-testid":"pkt-loader",ref:u,...f,children:[t.jsx(j,{name:P(s),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/11.12/animations/",className:`pkt-loader__svg pkt-loader__${s}`}),r&&t.jsx("p",{children:r})]}):null}):o})}),Yn=({children:e,className:r,compact:a=!1,skin:l="beige",title:i,...s})=>{const c=[r,"pkt-messagebox",l&&`pkt-messagebox--${l}`,a&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return t.jsxs("div",{...s,className:c,children:[i&&t.jsx("div",{className:"pkt-messagebox__title",children:i}),t.jsx("div",{className:"pkt-messagebox__text",children:e})]})},xt=g.forwardRef(({id:e,name:r,label:a,className:l,hasTile:i=!1,disabled:s=!1,checkHelptext:c,hasError:o=!1,...f},u)=>{const d=[l,"pkt-input-check"].filter(Boolean).join(" ");return t.jsx("div",{className:d,children:t.jsxs("div",{className:`pkt-input-check__input ${i?"pkt-input-check__input--tile":""} ${s&&i?"pkt-input-check__input--tile-disabled":""}`,children:[t.jsx("input",{ref:u,className:`pkt-input-check__input-checkbox ${o?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:s,name:r,...f}),t.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[a,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]})]})})});xt.displayName="PktRadioButton";const Kn=g.forwardRef(({action:e,appearance:r="local",disabled:a=!1,fullwidth:l=!1,id:i,label:s,method:c="get",name:o,placeholder:f="Søk…",suggestions:u,value:d="",onSearch:h,onSuggestionClick:k,...P},y)=>{const O=(v,w)=>{v?v():k&&k(w)},D=`pkt-searchinput pkt-searchinput--${r} ${l?"pkt-searchinput--fullwidth":""}`,S=e?"form":"div",_=s?"label":"div";return t.jsxs(S,{className:D,onSubmit:h&&(()=>h(d)),action:e||void 0,method:e?c:void 0,role:"search",ref:y,...P,children:[t.jsxs(_,{htmlFor:s?i:void 0,className:s?"pkt-inputwrapper__label":"",children:[s&&t.jsx(t.Fragment,{children:s}),t.jsxs("div",{className:r==="local"?"pkt-input__container":"pkt-searchinput__field",children:[t.jsx("input",{className:`pkt-input ${l?"pkt-input--fullwidth":""}`,type:"search",name:o||i,id:i,placeholder:f,defaultValue:d,disabled:a,onInput:h&&(v=>h(v.currentTarget.value)),autoComplete:"off","aria-autocomplete":"list","aria-controls":`${i}-suggestions`}),t.jsx(ae,{className:`pkt-searchinput__button ${r==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:r==="local"?"tertiary":"primary",color:r==="global"?"yellow":void 0,type:"submit",disabled:a,onClick:h&&(()=>h(d)),onKeyUp:h&&(v=>v.key==="Enter"&&h(d)),children:s||f})]})]}),u&&t.jsx("ul",{id:`${i}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:u.map((v,w)=>t.jsx("li",{children:g.createElement(v.href?"a":v.onClick?"button":"div",{href:v.href,className:`pkt-searchinput__suggestion ${v.onClick?"pkt-link-button":""} ${v.href||v.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:v.onClick?"button":void 0,onClick:()=>O(v.onClick,w),onKeyUp:()=>O(v.onClick,w)},t.jsxs(t.Fragment,{children:[v.title&&t.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:v.title}),v.text&&t.jsx("p",{className:"pkt-searchinput__suggestion-text",children:v.text})]}))},`search-suggestion-${w}`))})]})}),Jn=g.forwardRef(({ariaDescribedby:e,ariaLabelledby:r,children:a,className:l,disabled:i=!1,errorMessage:s,hasError:c,helptext:o,helptextDropdown:f,helptextDropdownButton:u,id:d,inline:h=!1,fullwidth:k=!1,label:P,name:y,optionalTag:O=!1,optionalText:D,requiredTag:S=!1,requiredText:_,...v},w)=>{const V=[l,"pkt-select"].join(" ");return t.jsx(pe,{className:V,forId:d,label:P,helptext:o,helptextDropdown:f,helptextDropdownButton:u,optionalTag:O,optionalText:D,requiredTag:S,requiredText:_,hasError:c,errorMessage:s,disabled:i,inline:h,ariaDescribedby:e,children:t.jsx("select",{ref:w,className:`pkt-input ${k?"pkt-input--fullwidth":""}`,"aria-invalid":c,"aria-errormessage":`${d}-error`,"aria-labelledby":r||`${d}-label`,disabled:i,id:d,name:y||d,...v,children:a})})}),zn=({isResponsive:e,children:r})=>e?t.jsx("div",{className:"pkt-table-container",children:r}):t.jsx(t.Fragment,{children:r}),qn=({isResponsive:e,modifiers:{info:r=!1,success:a=!1,strong:l=!1,shadow:i=!1}={},children:s})=>t.jsx(zn,{isResponsive:e,children:t.jsx("table",{className:_t("pkt-table",{"pkt-table--info":r,"pkt-table--success":a,"pkt-table--strong":l,"pkt-table--shadow":i}),children:s})}),Gn=({children:e})=>t.jsx("td",{className:"pkt-table__th",children:e}),Hn=({children:e})=>t.jsx("th",{className:"pkt-table__th",children:e}),je=g.forwardRef(({children:e,className:r,skin:a="blue",textStyle:l="normal-text",size:i="medium",closeTag:s=!1,iconName:c="",type:o="button",ariaLabel:f="close",onClick:u=()=>{}},d)=>{const[h,k]=g.useState(!1),P=S=>{k(!0),u(S)},y=["pkt-tag",i&&`pkt-tag--${i}`,a&&`pkt-tag--${a}`,l&&`pkt-tag--${l}`,r].filter(Boolean).join(" "),O=["pkt-tag","pkt-btn","pkt-btn--tertiary",i&&`pkt-tag--${i}`,a&&`pkt-tag--${a}`,l&&`pkt-tag--${l}`,c&&s?"pkt-btn--icons-right-and-left":null,s&&!c?"pkt-btn--icon-right":null,r].filter(Boolean).join(" "),D=!h;return s&&c?t.jsx(t.Fragment,{children:D&&t.jsxs("button",{className:O,type:o,"aria-label":f,onClick:P,ref:d,children:[t.jsx(j,{className:"pkt-tag__icon",name:c}),e,t.jsx(j,{className:"pkt-tag__close-btn",name:"close"})]})}):s?t.jsx(t.Fragment,{children:D&&t.jsxs("button",{className:O,type:o,"aria-label":f,onClick:P,ref:d,children:[t.jsx(j,{className:"pkt-tag__close-btn",name:"close"}),e]})}):c?t.jsxs("span",{className:y,children:[t.jsx(j,{className:"pkt-tag__icon",name:c}),e]}):t.jsx("span",{className:y,children:e})});je.displayName="PktTag";const Xn=g.forwardRef(({arrowNav:e=!0,tabs:r,onTabSelected:a},l)=>{const i=g.useRef([]);g.useEffect(()=>{i.current=i.current.slice(0,r.length)},[r]);const s=(o,f)=>{f.action&&f.action(o),a&&a(o)},c=(o,f)=>{var u,d;e&&(f.code==="ArrowLeft"&&o!==0&&((u=i.current[o-1])==null||u.focus()),f.code==="ArrowRight"&&o<r.length-1&&((d=i.current[o+1])==null||d.focus()),(f.code==="ArrowDown"||f.code==="Space")&&s(o,r[o]))};return t.jsx("div",{className:"pkt-tabs",ref:l,children:t.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:r.map((o,f)=>t.jsx(g.Fragment,{children:o.href?t.jsxs("a",{"aria-selected":!!o.active,role:e?"tab":void 0,href:o.href,"aria-controls":o.controls,className:`pkt-tabs__link ${o.active?"active":""}`,onKeyUp:u=>c(f,u),onClick:()=>s(f,o),tabIndex:o.active||!e?void 0:-1,ref:u=>{i.current[f]=u},children:[o.icon&&t.jsx(j,{name:o.icon,className:"pkt-icon--small"}),o.text,o.tag&&t.jsx(je,{skin:o.tag.skin,size:"small",children:o.tag.text})]}):t.jsxs("button",{"aria-selected":!!o.active,role:e?"tab":void 0,type:"button","aria-controls":o.controls,className:`pkt-tabs__button pkt-link-button ${o.active?"active":""}`,onKeyUp:u=>c(f,u),onClick:()=>s(f,o),tabIndex:o.active||!e?void 0:-1,ref:u=>{i.current[f]=u},children:[o.icon&&t.jsx(j,{name:o.icon,className:"pkt-icon--small"}),o.text,o.tag&&t.jsx(je,{skin:o.tag.skin,size:"small",children:o.tag.text})]},"b-"+f)},f))})})}),Zn=g.forwardRef(({id:e,ariaDescribedby:r,ariaLabelledby:a,counter:l,counterMaxLength:i,className:s,disabled:c,errorMessage:o,hasError:f,helptext:u,helptextDropdown:d,helptextDropdownButton:h,inline:k,fullwidth:P=!1,label:y,name:O,optionalTag:D=!1,optionalText:S,requiredTag:_=!1,requiredText:v,placeholder:w,rows:V,useWrapper:W=!0,onChange:B,...M},Y)=>{const K=[s,"pkt-textinput","pkt-textarea"].join(" "),q=a||`${e}-label`,J=g.useRef(null),[L,b]=g.useState(0),U=Z=>{var Q,de;if(l&&b(((de=(Q=Z.currentTarget)==null?void 0:Q.value)==null?void 0:de.length)||0),B)return B(Z)};return g.useEffect(()=>{var Z,Q;typeof Y=="function"&&Y(J.current),l&&b(((Q=(Z=J==null?void 0:J.current)==null?void 0:Z.value)==null?void 0:Q.length)||0)},[Y]),t.jsxs(pe,{ariaDescribedby:r,className:K,disabled:c,errorMessage:o,forId:e,hasError:f,helptext:u,helptextDropdown:d,helptextDropdownButton:h,inline:k,label:y,optionalTag:D,optionalText:S,requiredTag:_,requiredText:v,useWrapper:W,children:[t.jsx("textarea",{ref:J,className:`pkt-input ${P?"pkt-input--fullwidth":""} ${i&&L>i?"pkt-input--counter-error":""}`,name:O||e,id:e,placeholder:w,disabled:c,rows:V,"aria-labelledby":q,"aria-invalid":f,"aria-errormessage":`${e}-error`,...M,onChange:U}),l&&t.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,i&&`/${i}`]})]})}),Qn=g.forwardRef(({id:e,ariaDescribedby:r,ariaLabelledby:a,autocomplete:l="off",className:i,disabled:s=!1,errorMessage:c,hasError:o=!1,helptext:f,helptextDropdown:u,helptextDropdownButton:d,iconNameRight:h,inline:k=!1,fullwidth:P=!1,label:y,name:O,optionalTag:D=!1,optionalText:S,requiredTag:_=!1,requiredText:v,placeholder:w,prefix:V,suffix:W,type:B="text",useWrapper:M=!0,omitSearchIcon:Y=!1,value:K,...q},J)=>{const L=[i,"pkt-textinput"].join(" "),b=a||`${e}-label`,U=B==="search"&&!h&&!Y;return t.jsx(pe,{ariaDescribedby:r,className:L,disabled:s,errorMessage:c,forId:e,hasError:o,helptext:f,helptextDropdown:u,helptextDropdownButton:d,inline:k,label:y,optionalTag:D,optionalText:S,requiredTag:_,requiredText:v,useWrapper:M,children:t.jsxs("div",{className:"pkt-input__container",children:[V&&t.jsx("div",{className:"pkt-input-prefix",children:V}),t.jsx("input",{ref:J,className:`pkt-input ${P?"pkt-input--fullwidth":""}`,type:B,name:O||e,id:e,placeholder:w,autoComplete:l,value:K,disabled:s,"aria-invalid":o,"aria-errormessage":`${e}-error`,"aria-labelledby":b,...q}),W&&t.jsxs("p",{className:"pkt-input-suffix",children:[W,h&&t.jsx(j,{className:"pkt-input-suffix-icon",name:h}),U&&t.jsx(j,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!W&&h&&t.jsx(j,{className:"pkt-input-icon",name:h}),!W&&U&&t.jsx(j,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})});R.PktAlert=Qe,R.PktBackLink=Gt,R.PktBreadcrumbs=An,R.PktButton=ae,R.PktCheckbox=kt,R.PktFooter=Un,R.PktFooterSimple=Vn,R.PktHeader=Bn,R.PktIcon=j,R.PktIconContext=Ze,R.PktInput=bt,R.PktInputWrapper=pe,R.PktLinkCard=gt,R.PktLoader=Mn,R.PktMessagebox=Yn,R.PktRadioButton=xt,R.PktSearchInput=Kn,R.PktSelect=Jn,R.PktTable=qn,R.PktTableData=Gn,R.PktTableHeader=Hn,R.PktTabs=Xn,R.PktTag=je,R.PktTextarea=Zn,R.PktTextinput=Qn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
63
+ */(function(e){(function(){var r={}.hasOwnProperty;function a(){for(var i="",c=0;c<arguments.length;c++){var o=arguments[c];o&&(i=l(i,s(o)))}return i}function s(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var c="";for(var o in i)r.call(i,o)&&i[o]&&(c=l(c,o));return c}function l(i,c){return c?i?i+" "+c:i+c:i}e.exports?(a.default=a,e.exports=a):window.classNames=a})()})(_t);var Bn=_t.exports;const ee=Wt(Bn),Wn=g.forwardRef(({className:e,logoLink:r="https://www.oslo.kommune.no/",serviceName:a,fixed:s=!0,scrollToHide:l=!0,user:i,userMenu:c,representing:o,userOptions:f,userMenuFooter:u,canChangeRepresentation:d=!0,showMenuButton:h=!1,showLogOutButton:k=!1,openMenu:S,logOut:y,changeRepresentation:O,children:D,...R},_)=>{const v=g.useMemo(()=>typeof(i==null?void 0:i.lastLoggedIn)=="string"?i.lastLoggedIn:i!=null&&i.lastLoggedIn?new Date(i.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[i]),[w,V]=g.useState(!1),[B,W]=g.useState(0),[M,Y]=g.useState(!1),K=g.useRef(null);g.useEffect(()=>(document.addEventListener("mouseup",J),window.addEventListener("scroll",L),()=>{document.removeEventListener("mouseup",J),window.removeEventListener("scroll",L)}));const q=()=>{Y(!M)},J=b=>{K.current&&!K.current.contains(b.target)&&Y(!1)},L=()=>{if(l){const b=window.pageYOffset||document.documentElement.scrollTop;if(b<0||Math.abs(b-B)<60)return;V(b>B),W(b)}};return t.jsxs("header",{...R,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ee(e,"pkt-header",{"pkt-header--fixed":s,"pkt-header--scroll-to-hide":l,"pkt-header--hidden":w}),ref:_,children:[t.jsxs("div",{className:"pkt-header__logo",children:[typeof r=="string"?t.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:r,children:t.jsx(j,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/11.13/logos/"})}):t.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:r,children:t.jsx(j,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/11.13/logos/"})}),t.jsx("span",{className:"pkt-header__logo-service",children:a})]}),t.jsx("nav",{className:"pkt-header__actions",children:t.jsxs("ul",{className:"pkt-header__actions-row",children:[h&&t.jsx("li",{children:t.jsx(se,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:S,children:"Meny"})}),(i||o)&&t.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${M&&!w?"pkt-header--open-dropdown":""}`,ref:K,children:[t.jsxs("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":M,onClick:q,children:[t.jsx(j,{name:"user",className:"pkt-btn__icon"}),t.jsx("span",{className:"pkt-header__user-fullname",children:(o==null?void 0:o.name)||(i==null?void 0:i.name)}),t.jsx("span",{className:"pkt-header__user-shortname",children:(o==null?void 0:o.shortname)||(i==null?void 0:i.shortname)}),t.jsx(j,{name:"chevron-thin-down",className:"pkt-btn--closed"}),t.jsx(j,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),t.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[i&&t.jsxs("li",{children:[t.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),t.jsx("div",{className:"pkt-user-menu__name",children:i.name}),i.lastLoggedIn&&t.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",t.jsx("time",{children:v})]})]}),c&&t.jsx("li",{children:t.jsx("ul",{className:"pkt-list",children:c.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsxs("a",{href:b.target,className:"pkt-link",children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]}):t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]})},`userMenu-${U}`))})}),(o||d)&&t.jsxs("li",{children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),t.jsx("div",{className:"pkt-user-menu__name",children:o.name}),o.orgNumber&&t.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",o.orgNumber]})]}),t.jsx("ul",{className:"pkt-list mt-size-16",children:d&&t.jsx("li",{children:t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:O,children:[t.jsx(j,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),t.jsx("li",{children:t.jsx("ul",{className:"pkt-list",children:(f||!k)&&t.jsxs(t.Fragment,{children:[f==null?void 0:f.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsxs("a",{href:b.target,className:"pkt-link",children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]}):t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:[b.iconName&&t.jsx(j,{name:b.iconName,className:"pkt-link__icon"}),b.title]})},`userOptions-${U}`)),!k&&t.jsx("li",{children:t.jsxs("button",{className:"pkt-link-button pkt-link",onClick:y,children:[t.jsx(j,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),u&&t.jsx("li",{className:"footer",children:t.jsx("ul",{className:"pkt-list-horizontal bordered",children:u.map((b,U)=>t.jsx("li",{children:typeof b.target=="string"?t.jsx("a",{href:b.target,className:"pkt-link",children:b.title}):t.jsx("button",{className:"pkt-link-button pkt-link",onClick:b.target,children:b.title})},`userMenuFooter-${U}`))})})]})]}),D&&t.jsx("li",{children:D}),k&&t.jsx("li",{children:t.jsx(se,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:y,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),bt=g.forwardRef(({label:e,id:r,children:a,...s},l)=>t.jsxs("div",{className:"pkt-form-group",children:[t.jsx("label",{htmlFor:r,className:"pkt-form-label",children:e}),t.jsx("input",{className:"pkt-form-input",id:r,...s,ref:l}),a]}));bt.displayName="PktInput";const de=g.forwardRef(({forId:e,label:r,helptext:a,helptextDropdown:s,helptextDropdownButton:l,optionalTag:i=!1,optionalText:c="Valgfritt",requiredTag:o=!1,requiredText:f="Må fylles ut",hasError:u,errorMessage:d,disabled:h,inline:k,ariaDescribedby:S,useWrapper:y=!0,children:O,className:D,hasFieldset:R=!1},_)=>{const[v,w]=g.useState(!1),V=()=>{w(!v)},B=()=>i?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--blue-light":o?"pkt-tag pkt-tag--small pkt-tag--thin-text pkt-tag--beige":"",W=i?c:o?f:"",M=h?"pkt-inputwrapper--disabled":"",Y=k?"pkt-inputwrapper--inline":"",K=u?"pkt-inputwrapper--error":"",q=!!s&&s!=="",J=l||'Les mer <span class="pkt-sr-only">om inputfeltet</span>',L=R?"fieldset":q?"div":"label",b=R?"legend":q?"h2":"span",U=S||(a?`${e}-helptext`:void 0);return t.jsxs("div",{className:["pkt-inputwrapper",D,M,Y,K].join(" "),ref:_,children:[y?t.jsx(t.Fragment,{children:t.jsxs(L,{htmlFor:R?void 0:e,"aria-describedby":q?void 0:S,className:`pkt-inputwrapper__label${R?" pkt-inputwrapper__fieldset":""}`,children:[t.jsxs(b,{id:`${e}-label`,className:`${R?" pkt-inputwrapper__legend":""}`,children:[r,W!==""&&t.jsx("span",{className:B(),children:W})]}),a&&t.jsx("div",{className:"pkt-inputwrapper__helptext",id:`${e}-helptext`,dangerouslySetInnerHTML:{__html:a}}),q&&s!==""&&t.jsxs("div",{children:[t.jsx(se,{skin:"tertiary",size:"small",variant:"icon-right",iconName:v?"chevron-thin-up":"chevron-thin-down",className:"pkt-inputwrapper__helptext-expandable pkt-link pkt-link--icon-right",onClick:V,children:t.jsx("span",{dangerouslySetInnerHTML:{__html:J}})}),t.jsx("div",{className:`pkt-inputwrapper__helptext ${v?"pkt-inputwrapper__helptext-expandable-open":"pkt-inputwrapper__helptext-expandable-closed"}`,children:t.jsx("span",{dangerouslySetInnerHTML:{__html:s}})}),!R&&t.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":U,children:r})]}),t.jsx(t.Fragment,{children:O})]})}):t.jsxs(t.Fragment,{children:[!R&&t.jsx("label",{htmlFor:e,className:"pkt-sr-only","aria-describedby":U,id:`${e}-label`,children:r}),O]}),u&&d&&t.jsx("div",{children:t.jsx(et,{skin:"error","aria-live":"assertive",id:`${e}-error`,compact:!0,children:d})})]})});de.displayName="PktInputWrapper";const gt=g.forwardRef(({children:e,className:r,iconName:a="user",openInNewTab:s=!1,skin:l="normal",href:i="#",external:c=!1,title:o,...f},u)=>{const d=[r,"pkt-linkcard",l&&`pkt-linkcard--${l}`].filter(Boolean).join(" ");return t.jsxs("a",{...f,href:i,className:`pkt-linkcard pkt-link ${d}`,target:s?"_blank":"_self",rel:s?"noopener noreferrer":void 0,ref:u,children:[t.jsx(j,{className:"pkt-link__icon",name:a}),t.jsxs("div",{className:"pkt-linkcard__content",children:[t.jsx("div",{className:`pkt-linkcard__title ${c?"pkt-link pkt-link--external":""}`,children:o}),t.jsx("div",{className:"pkt-linkcard__text",children:e})]})]})});gt.displayName="PktLinkCard";const Mn=g.forwardRef(({className:e,message:r,size:a="medium",inline:s=!1,isLoading:l=!0,variant:i="rainbow",delay:c=0,children:o,...f},u)=>{const d=`pkt-loader pkt-loader--${a}`,[h,k]=g.useState(!(c>0));c>0&&setTimeout(()=>{k(!0)},c);const S=y=>y==="shapes"?"loader":y==="blue"?"spinner-blue":"spinner";return t.jsx("div",{role:"status","aria-live":"polite","aria-busy":l,className:`pkt-loader--${s?"inline":"box"} ${e||""}`,children:l?t.jsx(t.Fragment,{children:h?t.jsxs("div",{className:d,"data-testid":"pkt-loader",ref:u,...f,children:[t.jsx(j,{name:S(i),"aria-label":"loading",path:"https://punkt-cdn.oslo.kommune.no/11.13/animations/",className:`pkt-loader__svg pkt-loader__${i}`}),r&&t.jsx("p",{children:r})]}):null}):o})}),Yn=({children:e,className:r,compact:a=!1,skin:s="beige",title:l,...i})=>{const c=[r,"pkt-messagebox",s&&`pkt-messagebox--${s}`,a&&"pkt-messagebox--compact"].filter(Boolean).join(" ");return t.jsxs("div",{...i,className:c,children:[l&&t.jsx("div",{className:"pkt-messagebox__title",children:l}),t.jsx("div",{className:"pkt-messagebox__text",children:e})]})},xt=g.forwardRef(({id:e,name:r,label:a,className:s,hasTile:l=!1,disabled:i=!1,checkHelptext:c,hasError:o=!1,...f},u)=>{const d=[s,"pkt-input-check"].filter(Boolean).join(" ");return t.jsx("div",{className:d,children:t.jsxs("div",{className:`pkt-input-check__input ${l?"pkt-input-check__input--tile":""} ${i&&l?"pkt-input-check__input--tile-disabled":""}`,children:[t.jsx("input",{ref:u,className:`pkt-input-check__input-checkbox ${o?"pkt-input-check__input-checkbox--error":""}`,type:"radio",id:e,disabled:i,name:r,...f}),t.jsxs("label",{className:"pkt-input-check__input-label",htmlFor:e,children:[a,c&&t.jsx("div",{className:"pkt-input-check__input-helptext",children:c})]})]})})});xt.displayName="PktRadioButton";const Kn=g.forwardRef(({action:e,appearance:r="local",disabled:a=!1,fullwidth:s=!1,id:l,label:i,method:c="get",name:o,placeholder:f="Søk…",suggestions:u,value:d="",onSearch:h,onSuggestionClick:k,...S},y)=>{const O=(v,w)=>{v?v():k&&k(w)},D=`pkt-searchinput pkt-searchinput--${r} ${s?"pkt-searchinput--fullwidth":""}`,R=e?"form":"div",_=i?"label":"div";return t.jsxs(R,{className:D,onSubmit:h&&(()=>h(d)),action:e||void 0,method:e?c:void 0,role:"search",ref:y,...S,children:[t.jsxs(_,{htmlFor:i?l:void 0,className:i?"pkt-inputwrapper__label":"",children:[i&&t.jsx(t.Fragment,{children:i}),t.jsxs("div",{className:r==="local"?"pkt-input__container":"pkt-searchinput__field",children:[t.jsx("input",{className:`pkt-input ${s?"pkt-input--fullwidth":""}`,type:"search",name:o||l,id:l,placeholder:f,defaultValue:d,disabled:a,onInput:h&&(v=>h(v.currentTarget.value)),autoComplete:"off","aria-autocomplete":"list","aria-controls":`${l}-suggestions`}),t.jsx(se,{className:`pkt-searchinput__button ${r==="local"?"pkt-input-icon":""}`,variant:"icon-only",iconName:"magnifying-glass-big",skin:r==="local"?"tertiary":"primary",color:r==="global"?"yellow":void 0,type:"submit",disabled:a,onClick:h&&(()=>h(d)),onKeyUp:h&&(v=>v.key==="Enter"&&h(d)),children:i||f})]})]}),u&&t.jsx("ul",{id:`${l}-suggestions`,className:"pkt-searchinput__suggestions","aria-live":"assertive",children:u.map((v,w)=>t.jsx("li",{children:g.createElement(v.href?"a":v.onClick?"button":"div",{href:v.href,className:`pkt-searchinput__suggestion ${v.onClick?"pkt-link-button":""} ${v.href||v.onClick?"pkt-searchinput__suggestion--has-hover":""}`,type:v.onClick?"button":void 0,onClick:()=>O(v.onClick,w),onKeyUp:()=>O(v.onClick,w)},t.jsxs(t.Fragment,{children:[v.title&&t.jsx("h3",{className:"pkt-searchinput__suggestion-title",children:v.title}),v.text&&t.jsx("p",{className:"pkt-searchinput__suggestion-text",children:v.text})]}))},`search-suggestion-${w}`))})]})}),Jn=g.forwardRef(({ariaDescribedby:e,ariaLabelledby:r,children:a,className:s,disabled:l=!1,errorMessage:i,hasError:c,helptext:o,helptextDropdown:f,helptextDropdownButton:u,id:d,inline:h=!1,fullwidth:k=!1,label:S,name:y,optionalTag:O=!1,optionalText:D,requiredTag:R=!1,requiredText:_,...v},w)=>{const V=[s,"pkt-select"].join(" ");return t.jsx(de,{className:V,forId:d,label:S,helptext:o,helptextDropdown:f,helptextDropdownButton:u,optionalTag:O,optionalText:D,requiredTag:R,requiredText:_,hasError:c,errorMessage:i,disabled:l,inline:h,ariaDescribedby:e,children:t.jsx("select",{ref:w,className:`pkt-input ${k?"pkt-input--fullwidth":""}`,"aria-invalid":c,"aria-errormessage":`${d}-error`,"aria-labelledby":r||`${d}-label`,disabled:l,id:d,name:y||d,...v,children:a})})}),zn=({className:e,compact:r=!1,skin:a="basic",responsiveView:s=!0,children:l})=>t.jsx("table",{"data-testid":"pkt-table",className:ee(e,"pkt-table",{"pkt-table--responsive":s,"pkt-table--compact":r,"pkt-table--basic":a==="basic","pkt-table--zebra-blue":a==="zebra-blue"}),role:"table",children:l}),qn=({children:e,className:r,dataLabel:a})=>t.jsx("td",{className:ee(r,"pkt-table__data-cell",{}),"data-label":a,role:"cell","data-testid":"pkt-table__data-cell",children:e}),Gn=({className:e,children:r})=>t.jsx("th",{className:ee(e,"pkt-table__header-cell",{}),role:"columnheader",children:r}),Hn=({className:e,children:r})=>t.jsx("thead",{className:ee(e,"pkt-table__header",{}),role:"rowgroup",children:r}),Xn=({className:e,children:r})=>t.jsx("tr",{className:ee(e,"pkt-table__row",{}),role:"row",children:r}),Zn=({children:e,className:r})=>t.jsx("tbody",{className:ee(r,"pkt-table__body",{}),role:"rowgroup",children:e}),ye=g.forwardRef(({children:e,className:r,skin:a="blue",textStyle:s="normal-text",size:l="medium",closeTag:i=!1,iconName:c="",type:o="button",ariaLabel:f="close",onClick:u=()=>{}},d)=>{const[h,k]=g.useState(!1),S=R=>{k(!0),u(R)},y=["pkt-tag",l&&`pkt-tag--${l}`,a&&`pkt-tag--${a}`,s&&`pkt-tag--${s}`,r].filter(Boolean).join(" "),O=["pkt-tag","pkt-btn","pkt-btn--tertiary",l&&`pkt-tag--${l}`,a&&`pkt-tag--${a}`,s&&`pkt-tag--${s}`,c&&i?"pkt-btn--icons-right-and-left":null,i&&!c?"pkt-btn--icon-right":null,r].filter(Boolean).join(" "),D=!h;return i&&c?t.jsx(t.Fragment,{children:D&&t.jsxs("button",{className:O,type:o,"aria-label":f,onClick:S,ref:d,children:[t.jsx(j,{className:"pkt-tag__icon",name:c}),e,t.jsx(j,{className:"pkt-tag__close-btn",name:"close"})]})}):i?t.jsx(t.Fragment,{children:D&&t.jsxs("button",{className:O,type:o,"aria-label":f,onClick:S,ref:d,children:[t.jsx(j,{className:"pkt-tag__close-btn",name:"close"}),e]})}):c?t.jsxs("span",{className:y,children:[t.jsx(j,{className:"pkt-tag__icon",name:c}),e]}):t.jsx("span",{className:y,children:e})});ye.displayName="PktTag";const Qn=g.forwardRef(({arrowNav:e=!0,tabs:r,onTabSelected:a},s)=>{const l=g.useRef([]);g.useEffect(()=>{l.current=l.current.slice(0,r.length)},[r]);const i=(o,f)=>{f.action&&f.action(o),a&&a(o)},c=(o,f)=>{var u,d;e&&(f.code==="ArrowLeft"&&o!==0&&((u=l.current[o-1])==null||u.focus()),f.code==="ArrowRight"&&o<r.length-1&&((d=l.current[o+1])==null||d.focus()),(f.code==="ArrowDown"||f.code==="Space")&&i(o,r[o]))};return t.jsx("div",{className:"pkt-tabs",ref:s,children:t.jsx("div",{className:"pkt-tabs__list",role:e?"tablist":"navigation",children:r.map((o,f)=>t.jsx(g.Fragment,{children:o.href?t.jsxs("a",{"aria-selected":!!o.active,role:e?"tab":void 0,href:o.href,"aria-controls":o.controls,className:`pkt-tabs__link ${o.active?"active":""}`,onKeyUp:u=>c(f,u),onClick:()=>i(f,o),tabIndex:o.active||!e?void 0:-1,ref:u=>{l.current[f]=u},children:[o.icon&&t.jsx(j,{name:o.icon,className:"pkt-icon--small"}),o.text,o.tag&&t.jsx(ye,{skin:o.tag.skin,size:"small",children:o.tag.text})]}):t.jsxs("button",{"aria-selected":!!o.active,role:e?"tab":void 0,type:"button","aria-controls":o.controls,className:`pkt-tabs__button pkt-link-button ${o.active?"active":""}`,onKeyUp:u=>c(f,u),onClick:()=>i(f,o),tabIndex:o.active||!e?void 0:-1,ref:u=>{l.current[f]=u},children:[o.icon&&t.jsx(j,{name:o.icon,className:"pkt-icon--small"}),o.text,o.tag&&t.jsx(ye,{skin:o.tag.skin,size:"small",children:o.tag.text})]},"b-"+f)},f))})})}),er=g.forwardRef(({id:e,ariaDescribedby:r,ariaLabelledby:a,counter:s,counterMaxLength:l,className:i,disabled:c,errorMessage:o,hasError:f,helptext:u,helptextDropdown:d,helptextDropdownButton:h,inline:k,fullwidth:S=!1,label:y,name:O,optionalTag:D=!1,optionalText:R,requiredTag:_=!1,requiredText:v,placeholder:w,rows:V,useWrapper:B=!0,onChange:W,...M},Y)=>{const K=[i,"pkt-textinput","pkt-textarea"].join(" "),q=a||`${e}-label`,J=g.useRef(null),[L,b]=g.useState(0),U=Z=>{var Q,me;if(s&&b(((me=(Q=Z.currentTarget)==null?void 0:Q.value)==null?void 0:me.length)||0),W)return W(Z)};return g.useEffect(()=>{var Z,Q;typeof Y=="function"&&Y(J.current),s&&b(((Q=(Z=J==null?void 0:J.current)==null?void 0:Z.value)==null?void 0:Q.length)||0)},[Y]),t.jsxs(de,{ariaDescribedby:r,className:K,disabled:c,errorMessage:o,forId:e,hasError:f,helptext:u,helptextDropdown:d,helptextDropdownButton:h,inline:k,label:y,optionalTag:D,optionalText:R,requiredTag:_,requiredText:v,useWrapper:B,children:[t.jsx("textarea",{ref:J,className:`pkt-input ${S?"pkt-input--fullwidth":""} ${l&&L>l?"pkt-input--counter-error":""}`,name:O||e,id:e,placeholder:w,disabled:c,rows:V,"aria-labelledby":q,"aria-invalid":f,"aria-errormessage":`${e}-error`,...M,onChange:U}),s&&t.jsxs("div",{className:"pkt-input__counter","aria-live":"polite","aria-atomic":!0,children:[L||0,l&&`/${l}`]})]})}),tr=g.forwardRef(({id:e,ariaDescribedby:r,ariaLabelledby:a,autocomplete:s="off",className:l,disabled:i=!1,errorMessage:c,hasError:o=!1,helptext:f,helptextDropdown:u,helptextDropdownButton:d,iconNameRight:h,inline:k=!1,fullwidth:S=!1,label:y,name:O,optionalTag:D=!1,optionalText:R,requiredTag:_=!1,requiredText:v,placeholder:w,prefix:V,suffix:B,type:W="text",useWrapper:M=!0,omitSearchIcon:Y=!1,value:K,...q},J)=>{const L=[l,"pkt-textinput"].join(" "),b=a||`${e}-label`,U=W==="search"&&!h&&!Y;return t.jsx(de,{ariaDescribedby:r,className:L,disabled:i,errorMessage:c,forId:e,hasError:o,helptext:f,helptextDropdown:u,helptextDropdownButton:d,inline:k,label:y,optionalTag:D,optionalText:R,requiredTag:_,requiredText:v,useWrapper:M,children:t.jsxs("div",{className:"pkt-input__container",children:[V&&t.jsx("div",{className:"pkt-input-prefix",children:V}),t.jsx("input",{ref:J,className:`pkt-input ${S?"pkt-input--fullwidth":""}`,type:W,name:O||e,id:e,placeholder:w,autoComplete:s,value:K,disabled:i,"aria-invalid":o,"aria-errormessage":`${e}-error`,"aria-labelledby":b,...q}),B&&t.jsxs("p",{className:"pkt-input-suffix",children:[B,h&&t.jsx(j,{className:"pkt-input-suffix-icon",name:h}),U&&t.jsx(j,{className:"pkt-input-suffix-icon",name:"magnifying-glass-big"})]}),!B&&h&&t.jsx(j,{className:"pkt-input-icon",name:h}),!B&&U&&t.jsx(j,{className:"pkt-input-icon",name:"magnifying-glass-big"})]})})});C.PktAlert=et,C.PktBackLink=Gt,C.PktBreadcrumbs=An,C.PktButton=se,C.PktCheckbox=vt,C.PktFooter=Un,C.PktFooterSimple=Vn,C.PktHeader=Wn,C.PktIcon=j,C.PktIconContext=Qe,C.PktInput=bt,C.PktInputWrapper=de,C.PktLinkCard=gt,C.PktLoader=Mn,C.PktMessagebox=Yn,C.PktRadioButton=xt,C.PktSearchInput=Kn,C.PktSelect=Jn,C.PktTable=zn,C.PktTableBody=Zn,C.PktTableDataCell=qn,C.PktTableHeader=Hn,C.PktTableHeaderCell=Gn,C.PktTableRow=Xn,C.PktTabs=Qn,C.PktTag=ye,C.PktTextarea=er,C.PktTextinput=tr,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "11.12.4",
3
+ "version": "11.13.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",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@oslokommune/punkt-assets": "^11.9.4",
36
- "@oslokommune/punkt-css": "^11.12.3",
36
+ "@oslokommune/punkt-css": "^11.13.0",
37
37
  "@testing-library/jest-dom": "^6.4.5",
38
38
  "@testing-library/react": "^15.0.7",
39
39
  "@testing-library/user-event": "^14.5.2",
@@ -91,5 +91,5 @@
91
91
  "url": "https://github.com/oslokommune/punkt/issues"
92
92
  },
93
93
  "license": "MIT",
94
- "gitHead": "c9919a28b7f1feb10f6247961d1ca1a5ce790ee2"
94
+ "gitHead": "50259618f1329f0e1c61286f14a37f8c352f8a97"
95
95
  }
@@ -17,8 +17,11 @@ export { PktRadioButton } from './radio/RadioButton'
17
17
  export { PktSearchInput } from './searchinput/SearchInput'
18
18
  export { PktSelect } from './select/Select'
19
19
  export { PktTable } from './table/Table'
20
- export { PktTableData } from './table/TableData'
20
+ export { PktTableDataCell } from './table/TableDataCell'
21
+ export { PktTableHeaderCell } from './table/TableHeaderCell'
21
22
  export { PktTableHeader } from './table/TableHeader'
23
+ export { PktTableRow } from './table/TableRow'
24
+ export { PktTableBody } from './table/TableBody'
22
25
  export { PktTabs } from './tabs/Tabs'
23
26
  export { PktTag } from './tag/Tag'
24
27
  export { PktTextarea } from './textarea/Textarea'