dibk-design 9.3.6 → 10.0.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.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(j,x){typeof exports=="object"&&typeof module<"u"?x(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],x):(j=typeof globalThis<"u"?globalThis:j||self,x(j.DibkDesign={},j.React))})(this,function(j,x){"use strict";function Gt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const _=Gt(x);var Le={exports:{}},we={};/**
1
+ (function(b,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-router-dom","react-dom"],c):(b=typeof globalThis<"u"?globalThis:b||self,c(b.DibkDesign={},b.React,b.reactRouterDom,b.ReactDOM))})(this,function(b,c,$e,pt){"use strict";var we={exports:{}},xe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.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 it;function Kt(){if(it)return we;it=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,r,s){var c=null;if(s!==void 0&&(c=""+s),r.key!==void 0&&(c=""+r.key),"key"in r){s={};for(var d in r)d!=="key"&&(s[d]=r[d])}else s=r;return r=s.ref,{$$typeof:e,type:a,key:c,ref:r!==void 0?r:null,props:s}}return we.Fragment=t,we.jsx=n,we.jsxs=n,we}var Ce={};/**
9
+ */var He;function gt(){if(He)return xe;He=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(o,r,a){var h=null;if(a!==void 0&&(h=""+a),r.key!==void 0&&(h=""+r.key),"key"in r){a={};for(var i in r)i!=="key"&&(a[i]=r[i])}else a=r;return r=a.ref,{$$typeof:e,type:o,key:h,ref:r!==void 0?r:null,props:a}}return xe.Fragment=n,xe.jsx=s,xe.jsxs=s,xe}var ye={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,10 @@
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 lt;function Zt(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(g==null)return null;if(typeof g=="function")return g.$$typeof===P?null:g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case v:return"Fragment";case p:return"Profiler";case b:return"StrictMode";case L:return"Suspense";case $:return"SuspenseList";case k:return"Activity"}if(typeof g=="object")switch(typeof g.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),g.$$typeof){case f:return"Portal";case C:return(g.displayName||"Context")+".Provider";case w:return(g._context.displayName||"Context")+".Consumer";case I:var S=g.render;return g=g.displayName,g||(g=S.displayName||S.name||"",g=g!==""?"ForwardRef("+g+")":"ForwardRef"),g;case T:return S=g.displayName||null,S!==null?S:e(g.type)||"Memo";case M:S=g._payload,g=g._init;try{return e(g(S))}catch{}}return null}function t(g){return""+g}function n(g){try{t(g);var S=!1}catch{S=!0}if(S){S=console;var A=S.error,q=typeof Symbol=="function"&&Symbol.toStringTag&&g[Symbol.toStringTag]||g.constructor.name||"Object";return A.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",q),t(g)}}function a(g){if(g===v)return"<>";if(typeof g=="object"&&g!==null&&g.$$typeof===M)return"<...>";try{var S=e(g);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function r(){var g=X.A;return g===null?null:g.getOwner()}function s(){return Error("react-stack-top-frame")}function c(g){if(J.call(g,"key")){var S=Object.getOwnPropertyDescriptor(g,"key").get;if(S&&S.isReactWarning)return!1}return g.key!==void 0}function d(g,S){function A(){E||(E=!0,console.error("%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://react.dev/link/special-props)",S))}A.isReactWarning=!0,Object.defineProperty(g,"key",{get:A,configurable:!0})}function i(){var g=e(this.type);return N[g]||(N[g]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),g=this.props.ref,g!==void 0?g:null}function l(g,S,A,q,ie,Z,at,st){return A=Z.ref,g={$$typeof:y,type:g,key:S,props:Z,_owner:ie},(A!==void 0?A:null)!==null?Object.defineProperty(g,"ref",{enumerable:!1,get:i}):Object.defineProperty(g,"ref",{enumerable:!1,value:null}),g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(g,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(g,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.defineProperty(g,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:st}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g}function u(g,S,A,q,ie,Z,at,st){var H=S.children;if(H!==void 0)if(q)if(z(H)){for(q=0;q<H.length;q++)m(H[q]);Object.freeze&&Object.freeze(H)}else console.error("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 m(H);if(J.call(S,"key")){H=e(g);var be=Object.keys(S).filter(function(ma){return ma!=="key"});q=0<be.length?"{key: someKey, "+be.join(": ..., ")+": ...}":"{key: someKey}",xe[H+q]||(be=0<be.length?"{"+be.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Oe;function ft(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){function e(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===D?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case x:return"Fragment";case T:return"Profiler";case N:return"StrictMode";case A:return"Suspense";case S:return"SuspenseList";case E:return"Activity"}if(typeof l=="object")switch(typeof l.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),l.$$typeof){case k:return"Portal";case M:return(l.displayName||"Context")+".Provider";case w:return(l._context.displayName||"Context")+".Consumer";case H:var p=l.render;return l=l.displayName,l||(l=p.displayName||p.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case q:return p=l.displayName||null,p!==null?p:e(l.type)||"Memo";case O:p=l._payload,l=l._init;try{return e(l(p))}catch{}}return null}function n(l){return""+l}function s(l){try{n(l);var p=!1}catch{p=!0}if(p){p=console;var C=p.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&l[Symbol.toStringTag]||l.constructor.name||"Object";return C.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),n(l)}}function o(l){if(l===x)return"<>";if(typeof l=="object"&&l!==null&&l.$$typeof===O)return"<...>";try{var p=e(l);return p?"<"+p+">":"<...>"}catch{return"<...>"}}function r(){var l=J.A;return l===null?null:l.getOwner()}function a(){return Error("react-stack-top-frame")}function h(l){if(Z.call(l,"key")){var p=Object.getOwnPropertyDescriptor(l,"key").get;if(p&&p.isReactWarning)return!1}return l.key!==void 0}function i(l,p){function C(){U||(U=!0,console.error("%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://react.dev/link/special-props)",p))}C.isReactWarning=!0,Object.defineProperty(l,"key",{get:C,configurable:!0})}function u(){var l=e(this.type);return g[l]||(g[l]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),l=this.props.ref,l!==void 0?l:null}function d(l,p,C,_,j,I,K,te){return C=I.ref,l={$$typeof:y,type:l,key:p,props:I,_owner:j},(C!==void 0?C:null)!==null?Object.defineProperty(l,"ref",{enumerable:!1,get:u}):Object.defineProperty(l,"ref",{enumerable:!1,value:null}),l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(l,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(l,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.defineProperty(l,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}function m(l,p,C,_,j,I,K,te){var z=p.children;if(z!==void 0)if(_)if(L(z)){for(_=0;_<z.length;_++)f(z[_]);Object.freeze&&Object.freeze(z)}else console.error("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 f(z);if(Z.call(p,"key")){z=e(l);var Y=Object.keys(p).filter(function(ue){return ue!=="key"});_=0<Y.length?"{key: someKey, "+Y.join(": ..., ")+": ...}":"{key: someKey}",G[z+_]||(Y=0<Y.length?"{"+Y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,q,H,be,H),xe[H+q]=!0)}if(H=null,A!==void 0&&(n(A),H=""+A),c(S)&&(n(S.key),H=""+S.key),"key"in S){A={};for(var ot in S)ot!=="key"&&(A[ot]=S[ot])}else A=S;return H&&d(A,typeof g=="function"?g.displayName||g.name||"Unknown":g),l(g,H,Z,ie,r(),A,at,st)}function m(g){typeof g=="object"&&g!==null&&g.$$typeof===y&&g._store&&(g._store.validated=1)}var h=x,y=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),P=Symbol.for("react.client.reference"),X=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,z=Array.isArray,R=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(g){return g()}};var E,N={},B=h["react-stack-bottom-frame"].bind(h,s)(),W=R(a(s)),xe={};Ce.Fragment=v,Ce.jsx=function(g,S,A,q,ie){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(g,S,A,!1,q,ie,Z?Error("react-stack-top-frame"):B,Z?R(a(g)):W)},Ce.jsxs=function(g,S,A,q,ie){var Z=1e4>X.recentlyCreatedOwnerStacks++;return u(g,S,A,!0,q,ie,Z?Error("react-stack-top-frame"):B,Z?R(a(g)):W)}}()),Ce}var ct;function Qt(){return ct||(ct=1,process.env.NODE_ENV==="production"?Le.exports=Kt():Le.exports=Zt()),Le.exports}var o=Qt();const D=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),en=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[n,a])=>(n&&a&&(t[`--color-${dt(n)}`]=a),t),{}),tn=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[n,a])=>(n&&a&&(t[`--size-${dt(n)}`]=a),t),{}),nn=e=>({...en(e),...tn(e)}),rn=(e,t)=>{if(typeof document>"u")return;const n=document.createElement("style");n.setAttribute("id",e),n.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(n)},an=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),de=e=>{const t=[];return x.Children.forEach(e,n=>{if(x.isValidElement(n)){const a=n;if(a.type===x.Fragment){const r=de(a.props.children);t.push(...r)}else t.push(x.cloneElement(a,{...a.props}))}else t.push(n)}),t},sn=e=>{if(typeof document>"u")return;const t=document.createElement("button");t.style.position="absolute",t.style.opacity="0",e.prepend(t),t.focus(),t.remove()},on=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),ut=e=>{sn(e);const t=on(e),n=t[0],a=t[t.length-1]||n;n&&(n.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),a.focus())}),a&&(a.onclick=()=>{n==null||n.focus()},a.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),n==null||n.focus())})},G={accordion:"_accordion_kwqaf_67",default:"_default_kwqaf_73",panel:"_panel_kwqaf_76",content:"_content_kwqaf_77",secondary:"_secondary_kwqaf_80",info:"_info_kwqaf_88",contrast:"_contrast_kwqaf_96",margin:"_margin_kwqaf_104",panelText:"_panelText_kwqaf_138",panelChevron:"_panelChevron_kwqaf_144",expanded:"_expanded_kwqaf_171",initialized:"_initialized_kwqaf_187",hide:"_hide_kwqaf_1",show:"_show_kwqaf_1"},ln=({title:e,buttonProps:t,expanded:n,handleToggleExpand:a})=>o.jsxs("button",{...t,className:G.panel,onClick:a,"aria-expanded":n?"true":"false",children:[o.jsx("span",{className:G.panelText,children:e}),o.jsx("span",{className:`${G.panelChevron} ${n?G.expanded:""}`})]}),cn=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:s=!1,initialized:c,children:d,...i})=>{const[l,u]=x.useState(n),[m,h]=x.useState(c),y=()=>{u(!l),h(!0),a&&a()};x.useEffect(()=>{u(n)},[n]);const f=D([G.accordion,t&&G[t],!s&&G.margin,i.className]);return o.jsxs("div",{className:f,...i,children:[o.jsx(ln,{title:e??"",buttonProps:r??{},expanded:l??!1,handleToggleExpand:y}),o.jsx("div",{className:`${G.content} ${m?G.initialized:""} ${l?G.expanded:""}`,children:d})]})};var Ee={},ht;function dn(){if(ht)return Ee;ht=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.parse=c,Ee.serialize=l;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,s=(()=>{const h=function(){};return h.prototype=Object.create(null),h})();function c(h,y){const f=new s,v=h.length;if(v<2)return f;const b=(y==null?void 0:y.decode)||u;let p=0;do{const w=h.indexOf("=",p);if(w===-1)break;const C=h.indexOf(";",p),I=C===-1?v:C;if(w>I){p=h.lastIndexOf(";",w-1)+1;continue}const L=d(h,p,w),$=i(h,w,L),T=h.slice(L,$);if(f[T]===void 0){let M=d(h,w+1,I),k=i(h,I,M);const P=b(h.slice(M,k));f[T]=P}p=I+1}while(p<v);return f}function d(h,y,f){do{const v=h.charCodeAt(y);if(v!==32&&v!==9)return y}while(++y<f);return f}function i(h,y,f){for(;y>f;){const v=h.charCodeAt(--y);if(v!==32&&v!==9)return y+1}return f}function l(h,y,f){const v=(f==null?void 0:f.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const b=v(y);if(!t.test(b))throw new TypeError(`argument val is invalid: ${y}`);let p=h+"="+b;if(!f)return p;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);p+="; Max-Age="+f.maxAge}if(f.domain){if(!n.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);p+="; Domain="+f.domain}if(f.path){if(!a.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);p+="; Path="+f.path}if(f.expires){if(!m(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);p+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(p+="; HttpOnly"),f.secure&&(p+="; Secure"),f.partitioned&&(p+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":p+="; Priority=Low";break;case"medium":p+="; Priority=Medium";break;case"high":p+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"none":p+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return p}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function m(h){return r.call(h)==="[object Date]"}return Ee}dn();/**
23
- * react-router v7.6.2
24
- *
25
- * Copyright (c) Remix Software Inc.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE.md file in the root directory of this source tree.
29
- *
30
- * @license MIT
31
- */function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Q(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Re({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Fe(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function ft(e,t,n="/"){return un(e,t,n,!1)}function un(e,t,n,a){let r=typeof t=="string"?Fe(t):t,s=ae(r.pathname||"/",n);if(s==null)return null;let c=mt(e);hn(c);let d=null;for(let i=0;d==null&&i<c.length;++i){let l=Cn(s);d=bn(c[i],l,a)}return d}function mt(e,t=[],n=[],a=""){let r=(s,c,d)=>{let i={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};i.relativePath.startsWith("/")&&(O(i.relativePath.startsWith(a),`Absolute route path "${i.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),i.relativePath=i.relativePath.slice(a.length));let l=ee([a,i.relativePath]),u=n.concat(i);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),mt(s.children,t,u,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:yn(l,s.index),routesMeta:u})};return e.forEach((s,c)=>{var d;if(s.path===""||!((d=s.path)!=null&&d.includes("?")))r(s,c);else for(let i of pt(s.path))r(s,c,i)}),t}function pt(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),s=n.replace(/\?$/,"");if(a.length===0)return r?[s,""]:[s];let c=pt(a.join("/")),d=[];return d.push(...c.map(i=>i===""?s:[s,i].join("/"))),r&&d.push(...c),d.map(i=>e.startsWith("/")&&i===""?"/":i)}function hn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var fn=/^:[\w-]+$/,mn=3,pn=2,_n=1,gn=10,vn=-2,_t=e=>e==="*";function yn(e,t){let n=e.split("/"),a=n.length;return n.some(_t)&&(a+=vn),t&&(a+=pn),n.filter(r=>!_t(r)).reduce((r,s)=>r+(fn.test(s)?mn:s===""?_n:gn),a)}function xn(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function bn(e,t,n=!1){let{routesMeta:a}=e,r={},s="/",c=[];for(let d=0;d<a.length;++d){let i=a[d],l=d===a.length-1,u=s==="/"?t:t.slice(s.length)||"/",m=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u),h=i.route;if(!m&&l&&n&&!a[a.length-1].route.index&&(m=$e({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!m)return null;Object.assign(r,m.params),c.push({params:r,pathname:ee([s,m.pathname]),pathnameBase:Sn(ee([s,m.pathnameBase])),route:h}),m.pathnameBase!=="/"&&(s=ee([s,m.pathnameBase]))}return c}function $e(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=wn(e.path,e.caseSensitive,e.end),r=t.match(n);if(!r)return null;let s=r[0],c=s.replace(/(.)\/+$/,"$1"),d=r.slice(1);return{params:a.reduce((l,{paramName:u,isOptional:m},h)=>{if(u==="*"){let f=d[h]||"";c=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const y=d[h];return m&&!y?l[u]=void 0:l[u]=(y||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:c,pattern:e}}function wn(e,t=!1,n=!0){Q(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 a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,i)=>(a.push({paramName:d,isOptional:i!=null}),i?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function Cn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Q(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ae(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function En(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Fe(e):e;return{pathname:n?n.startsWith("/")?n:kn(n,t):t,search:Ln(a),hash:$n(r)}}function kn(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Oe(e,t,n,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jn(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gt(e){let t=jn(e);return t.map((n,a)=>a===t.length-1?n.pathname:n.pathnameBase)}function vt(e,t,n,a=!1){let r;typeof e=="string"?r=Fe(e):(r={...e},O(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),O(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),O(!r.search||!r.search.includes("#"),Oe("#","search","hash",r)));let s=e===""||r.pathname==="",c=s?"/":r.pathname,d;if(c==null)d=n;else{let m=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),m-=1;r.pathname=h.join("/")}d=m>=0?t[m]:"/"}let i=En(r,d),l=c&&c!=="/"&&c.endsWith("/"),u=(s||c===".")&&n.endsWith("/");return!i.pathname.endsWith("/")&&(l||u)&&(i.pathname+="/"),i}var ee=e=>e.join("/").replace(/\/\/+/g,"/"),Sn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ln=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$n=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function In(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yt=["POST","PUT","PATCH","DELETE"];new Set(yt);var Nn=["GET",...yt];new Set(Nn);var ue=_.createContext(null);ue.displayName="DataRouter";var Ie=_.createContext(null);Ie.displayName="DataRouterState";var xt=_.createContext({isTransitioning:!1});xt.displayName="ViewTransition";var Mn=_.createContext(new Map);Mn.displayName="Fetchers";var Tn=_.createContext(null);Tn.displayName="Await";var te=_.createContext(null);te.displayName="Navigation";var Ve=_.createContext(null);Ve.displayName="Location";var ne=_.createContext({outlet:null,matches:[],isDataRoute:!1});ne.displayName="Route";var qe=_.createContext(null);qe.displayName="RouteError";function zn(e,{relative:t}={}){O(Ne(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=_.useContext(te),{hash:r,pathname:s,search:c}=ke(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:ee([n,s])),a.createHref({pathname:d,search:c,hash:r})}function Ne(){return _.useContext(Ve)!=null}function le(){return O(Ne(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Ve).location}var bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wt(e){_.useContext(te).static||_.useLayoutEffect(e)}function Bn(){let{isDataRoute:e}=_.useContext(ne);return e?Yn():Dn()}function Dn(){O(Ne(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(ue),{basename:t,navigator:n}=_.useContext(te),{matches:a}=_.useContext(ne),{pathname:r}=le(),s=JSON.stringify(gt(a)),c=_.useRef(!1);return wt(()=>{c.current=!0}),_.useCallback((i,l={})=>{if(Q(c.current,bt),!c.current)return;if(typeof i=="number"){n.go(i);return}let u=vt(i,JSON.parse(s),r,l.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:ee([t,u.pathname])),(l.replace?n.replace:n.push)(u,l.state,l)},[t,n,s,r,e])}_.createContext(null);function ke(e,{relative:t}={}){let{matches:n}=_.useContext(ne),{pathname:a}=le(),r=JSON.stringify(gt(n));return _.useMemo(()=>vt(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function Pn(e,t,n,a){O(Ne(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=_.useContext(te),{matches:s}=_.useContext(ne),c=s[s.length-1],d=c?c.params:{},i=c?c.pathname:"/",l=c?c.pathnameBase:"/",u=c&&c.route;{let p=u&&u.path||"";Et(i,!u||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${i}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
32
-
33
- Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=le(),h;h=m;let y=h.pathname||"/",f=y;if(l!=="/"){let p=l.replace(/^\//,"").split("/");f="/"+y.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=ft(e,{pathname:f});return Q(u||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Q(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Vn(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},d,p.params),pathname:ee([l,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:ee([l,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),s,n,a)}function An(){let e=Un(),t=In(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:a},s={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:r},n):null,c)}var Rn=_.createElement(An,null),Fn=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(ne.Provider,{value:this.props.routeContext},_.createElement(qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function On({routeContext:e,match:t,children:n}){let a=_.useContext(ue);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(ne.Provider,{value:e},n)}function Vn(e,t=[],n=null,a=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let r=e,s=n==null?void 0:n.errors;if(s!=null){let i=r.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id])!==void 0);O(i>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),r=r.slice(0,Math.min(r.length,i+1))}let c=!1,d=-1;if(n)for(let i=0;i<r.length;i++){let l=r[i];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(d=i),l.route.id){let{loaderData:u,errors:m}=n,h=l.route.loader&&!u.hasOwnProperty(l.route.id)&&(!m||m[l.route.id]===void 0);if(l.route.lazy||h){c=!0,d>=0?r=r.slice(0,d+1):r=[r[0]];break}}}return r.reduceRight((i,l,u)=>{let m,h=!1,y=null,f=null;n&&(m=s&&l.route.id?s[l.route.id]:void 0,y=l.route.errorElement||Rn,c&&(d<0&&u===0?(Et("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):d===u&&(h=!0,f=l.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,u+1)),b=()=>{let p;return m?p=y:h?p=f:l.route.Component?p=_.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=i,_.createElement(On,{match:l,routeContext:{outlet:i,matches:v,isDataRoute:n!=null},children:p})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?_.createElement(Fn,{location:n.location,revalidation:n.revalidation,component:y,error:m,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}function He(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qn(e){let t=_.useContext(ue);return O(t,He(e)),t}function Hn(e){let t=_.useContext(Ie);return O(t,He(e)),t}function Xn(e){let t=_.useContext(ne);return O(t,He(e)),t}function Xe(e){let t=Xn(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Wn(){return Xe("useRouteId")}function Un(){var a;let e=_.useContext(qe),t=Hn("useRouteError"),n=Xe("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Yn(){let{router:e}=qn("useNavigate"),t=Xe("useNavigate"),n=_.useRef(!1);return wt(()=>{n.current=!0}),_.useCallback(async(r,s={})=>{Q(n.current,bt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...s}))},[e,t])}var Ct={};function Et(e,t,n){!t&&!Ct[e]&&(Ct[e]=!0,Q(!1,n))}_.memo(Jn);function Jn({routes:e,future:t,state:n}){return Pn(e,void 0,n,t)}var Me="get",Te="application/x-www-form-urlencoded";function ze(e){return e!=null&&typeof e.tagName=="string"}function Gn(e){return ze(e)&&e.tagName.toLowerCase()==="button"}function Kn(e){return ze(e)&&e.tagName.toLowerCase()==="form"}function Zn(e){return ze(e)&&e.tagName.toLowerCase()==="input"}function Qn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function er(e,t){return e.button===0&&(!t||t==="_self")&&!Qn(e)}var Be=null;function tr(){if(Be===null)try{new FormData(document.createElement("form"),0),Be=!1}catch{Be=!0}return Be}var nr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!nr.has(e)?(Q(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Te}"`),null):e}function rr(e,t){let n,a,r,s,c;if(Kn(e)){let d=e.getAttribute("action");a=d?ae(d,t):null,n=e.getAttribute("method")||Me,r=We(e.getAttribute("enctype"))||Te,s=new FormData(e)}else if(Gn(e)||Zn(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let i=e.getAttribute("formaction")||d.getAttribute("action");if(a=i?ae(i,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Me,r=We(e.getAttribute("formenctype"))||We(d.getAttribute("enctype"))||Te,s=new FormData(d,e),!tr()){let{name:l,type:u,value:m}=e;if(u==="image"){let h=l?`${l}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else l&&s.append(l,m)}}else{if(ze(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Me,a=null,r=Te,c=e}return s&&r==="text/plain"&&(c=s,s=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:s,body:c}}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function ar(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function or(e,t,n){let a=await Promise.all(e.map(async r=>{let s=t.routes[r.route.id];if(s){let c=await ar(s,n);return c.links?c.links():[]}return[]}));return dr(a.flat(1).filter(sr).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function kt(e,t,n,a,r,s){let c=(i,l)=>n[l]?i.route.id!==n[l].route.id:!0,d=(i,l)=>{var u;return n[l].pathname!==i.pathname||((u=n[l].route.path)==null?void 0:u.endsWith("*"))&&n[l].params["*"]!==i.params["*"]};return s==="assets"?t.filter((i,l)=>c(i,l)||d(i,l)):s==="data"?t.filter((i,l)=>{var m;let u=a.routes[i.route.id];if(!u||!u.hasLoader)return!1;if(c(i,l)||d(i,l))return!0;if(i.route.shouldRevalidate){let h=i.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:i.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function ir(e,t,{includeHydrateFallback:n}={}){return lr(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let s=[r.module];return r.clientActionModule&&(s=s.concat(r.clientActionModule)),r.clientLoaderModule&&(s=s.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(s=s.concat(r.hydrateFallbackModule)),r.imports&&(s=s.concat(r.imports)),s}).flat(1))}function lr(e){return[...new Set(e)]}function cr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function dr(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let s=JSON.stringify(cr(r));return n.has(s)||(n.add(s),a.push({key:s,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ur=new Set([100,101,204,205]);function hr(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ae(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function jt(){let e=_.useContext(ue);return Ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function fr(){let e=_.useContext(Ie);return Ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ye=_.createContext(void 0);Ye.displayName="FrameworkContext";function St(){let e=_.useContext(Ye);return Ue(e,"You must render this element inside a <HydratedRouter> element"),e}function mr(e,t){let n=_.useContext(Ye),[a,r]=_.useState(!1),[s,c]=_.useState(!1),{onFocus:d,onBlur:i,onMouseEnter:l,onMouseLeave:u,onTouchStart:m}=t,h=_.useRef(null);_.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let v=p=>{p.forEach(w=>{c(w.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),_.useEffect(()=>{if(a){let v=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(v)}}},[a]);let y=()=>{r(!0)},f=()=>{r(!1),c(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:je(d,y),onBlur:je(i,f),onMouseEnter:je(l,y),onMouseLeave:je(u,f),onTouchStart:je(m,y)}]:[!1,h,{}]}function je(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pr({page:e,...t}){let{router:n}=jt(),a=_.useMemo(()=>ft(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?_.createElement(gr,{page:e,matches:a,...t}):null}function _r(e){let{manifest:t,routeModules:n}=St(),[a,r]=_.useState([]);return _.useEffect(()=>{let s=!1;return or(e,t,n).then(c=>{s||r(c)}),()=>{s=!0}},[e,t,n]),a}function gr({page:e,matches:t,...n}){let a=le(),{manifest:r,routeModules:s}=St(),{basename:c}=jt(),{loaderData:d,matches:i}=fr(),l=_.useMemo(()=>kt(e,t,i,r,a,"data"),[e,t,i,r,a]),u=_.useMemo(()=>kt(e,t,i,r,a,"assets"),[e,t,i,r,a]),m=_.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let f=new Set,v=!1;if(t.forEach(p=>{var C;let w=r.routes[p.route.id];!w||!w.hasLoader||(!l.some(I=>I.route.id===p.route.id)&&p.route.id in d&&((C=s[p.route.id])!=null&&C.shouldRevalidate)||w.hasClientLoader?v=!0:f.add(p.route.id))}),f.size===0)return[];let b=hr(e,c);return v&&f.size>0&&b.searchParams.set("_routes",t.filter(p=>f.has(p.route.id)).map(p=>p.route.id).join(",")),[b.pathname+b.search]},[c,d,a,r,l,t,e,s]),h=_.useMemo(()=>ir(u,r),[u,r]),y=_r(u);return _.createElement(_.Fragment,null,m.map(f=>_.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...n})),h.map(f=>_.createElement("link",{key:f,rel:"modulepreload",href:f,...n})),y.map(({key:f,link:v})=>_.createElement("link",{key:f,...v})))}function vr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Lt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lt&&(window.__reactRouterVersion="7.6.2")}catch{}var $t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=_.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:s,replace:c,state:d,target:i,to:l,preventScrollReset:u,viewTransition:m,...h},y){let{basename:f}=_.useContext(te),v=typeof l=="string"&&$t.test(l),b,p=!1;if(typeof l=="string"&&v&&(b=l,Lt))try{let k=new URL(window.location.href),P=l.startsWith("//")?new URL(k.protocol+l):new URL(l),X=ae(P.pathname,f);P.origin===k.origin&&X!=null?l=X+P.search+P.hash:p=!0}catch{Q(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=zn(l,{relative:r}),[C,I,L]=mr(a,h),$=wr(l,{replace:c,state:d,target:i,preventScrollReset:u,relative:r,viewTransition:m});function T(k){t&&t(k),k.defaultPrevented||$(k)}let M=_.createElement("a",{...h,...L,href:b||w,onClick:p||s?t:T,ref:vr(y,I),target:i,"data-discover":!v&&n==="render"?"true":void 0});return C&&!v?_.createElement(_.Fragment,null,M,_.createElement(pr,{page:w})):M});Se.displayName="Link";var yr=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:s,to:c,viewTransition:d,children:i,...l},u){let m=ke(c,{relative:l.relative}),h=le(),y=_.useContext(Ie),{navigator:f,basename:v}=_.useContext(te),b=y!=null&&Sr(m)&&d===!0,p=f.encodeLocation?f.encodeLocation(m).pathname:m.pathname,w=h.pathname,C=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(w=w.toLowerCase(),C=C?C.toLowerCase():null,p=p.toLowerCase()),C&&v&&(C=ae(C,v)||C);const I=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let L=w===p||!r&&w.startsWith(p)&&w.charAt(I)==="/",$=C!=null&&(C===p||!r&&C.startsWith(p)&&C.charAt(p.length)==="/"),T={isActive:L,isPending:$,isTransitioning:b},M=L?t:void 0,k;typeof a=="function"?k=a(T):k=[a,L?"active":null,$?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let P=typeof s=="function"?s(T):s;return _.createElement(Se,{...l,"aria-current":M,className:k,ref:u,style:P,to:c,viewTransition:d},typeof i=="function"?i(T):i)});yr.displayName="NavLink";var xr=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:s,method:c=Me,action:d,onSubmit:i,relative:l,preventScrollReset:u,viewTransition:m,...h},y)=>{let f=kr(),v=jr(d,{relative:l}),b=c.toLowerCase()==="get"?"get":"post",p=typeof d=="string"&&$t.test(d),w=C=>{if(i&&i(C),C.defaultPrevented)return;C.preventDefault();let I=C.nativeEvent.submitter,L=(I==null?void 0:I.getAttribute("formmethod"))||c;f(I||C.currentTarget,{fetcherKey:t,method:L,navigate:n,replace:r,state:s,relative:l,preventScrollReset:u,viewTransition:m})};return _.createElement("form",{ref:y,method:b,action:v,onSubmit:a?i:w,...h,"data-discover":!p&&e==="render"?"true":void 0})});xr.displayName="Form";function br(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=_.useContext(ue);return O(t,br(e)),t}function wr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:s,viewTransition:c}={}){let d=Bn(),i=le(),l=ke(e,{relative:s});return _.useCallback(u=>{if(er(u,t)){u.preventDefault();let m=n!==void 0?n:Re(i)===Re(l);d(e,{replace:m,state:a,preventScrollReset:r,relative:s,viewTransition:c})}},[i,d,l,n,a,t,e,r,s,c])}var Cr=0,Er=()=>`__${String(++Cr)}__`;function kr(){let{router:e}=It("useSubmit"),{basename:t}=_.useContext(te),n=Wn();return _.useCallback(async(a,r={})=>{let{action:s,method:c,encType:d,formData:i,body:l}=rr(a,t);if(r.navigate===!1){let u=r.fetcherKey||Er();await e.fetch(u,n,r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,flushSync:r.flushSync})}else await e.navigate(r.action||s,{preventScrollReset:r.preventScrollReset,formData:i,body:l,formMethod:r.method||c,formEncType:r.encType||d,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[e,t,n])}function jr(e,{relative:t}={}){let{basename:n}=_.useContext(te),a=_.useContext(ne);O(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),s={...ke(e||".",{relative:t})},c=le();if(e==null){s.search=c.search;let d=new URLSearchParams(s.search),i=d.getAll("index");if(i.some(u=>u==="")){d.delete("index"),i.filter(m=>m).forEach(m=>d.append("index",m));let u=d.toString();s.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ee([n,s.pathname])),Re(s)}function Sr(e,t={}){let n=_.useContext(xt);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=It("useViewTransitionState"),r=ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=ae(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=ae(n.nextLocation.pathname,a)||n.nextLocation.pathname;return $e(r.pathname,c)!=null||$e(r.pathname,s)!=null}[...ur];const V={button:"_button_1jbpj_161",noMargin:"_noMargin_1jbpj_189",regular:"_regular_1jbpj_199",small:"_small_1jbpj_202",primary:"_primary_1jbpj_213",noHover:"_noHover_1jbpj_217",secondary:"_secondary_1jbpj_233",disabled:"_disabled_1jbpj_252",hasErrors:"_hasErrors_1jbpj_272",rounded:"_rounded_1jbpj_278",hasArrowLeft:"_hasArrowLeft_1jbpj_282",pushprev:"_pushprev_1jbpj_1",hasArrowRight:"_hasArrowRight_1jbpj_320",pushnext:"_pushnext_1jbpj_1",hasIcon:"_hasIcon_1jbpj_358",buttonContent:"_buttonContent_1jbpj_362"},Je=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:s,defaultChecked:c,hasErrors:d=!1,noHover:i=!1,rounded:l=!1,noMargin:u=!1,href:m,children:h,iconLeft:y,iconRight:f,...v})=>{const b=$=>{switch($){case"left":return V.hasArrowLeft;case"right":return V.hasArrowRight;default:return""}},p=s==="radio"?c?"primary":"secondary":t,w=D([V.button,V[p],V[n],b(a),i||s==="radio"?V.noHover:null,l&&V.rounded,d&&V.hasErrors,r?V.disabled:null,u?V.noMargin:null,y||f?V.hasIcon:null]),C={"aria-invalid":d||void 0,href:!r&&(m!=null&&m.length)?m:void 0,className:w,...v},I=$=>x.Children.toArray(de($)).map(M=>{if(!x.isValidElement(M))return null;const k=M,P=k.type===Se&&typeof k.props=="object"&&k.props!==null&&"to"in k.props;return!r&&P?x.cloneElement(k,{className:w,key:`button-${k.key}`,to:k.props.to},y,o.jsx("span",{className:V.buttonContent,children:k.props.children}),f):x.createElement("button",{...C,key:`button-${k.key}`},y,o.jsx("span",{className:V.buttonContent,children:e||(k.props?k.props.children:null)}),f)});if(s==="button")return o.jsxs("button",{type:"button",...C,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]});if(s==="radio"){const $={...C};return delete $.href,o.jsxs("label",{className:w,children:[o.jsx("input",{...$,type:"radio"}),y,o.jsx("span",{className:V.buttonContent,children:e}),f]})}if(m!=null&&m.length&&!r){const $={...C};return"type"in $&&delete $.type,o.jsxs("a",{...$,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]})}return x.isValidElement(h)&&h.type===Se?o.jsx(x.Fragment,{children:I(x.Children.toArray(h))}):o.jsxs("button",{...C,children:[y,o.jsx("span",{className:V.buttonContent,children:e||h}),f]})},he={checkBoxIcon:"_checkBoxIcon_1kc3w_1",showBox:"_showBox_1kc3w_22",hasErrors:"_hasErrors_1kc3w_27",checked:"_checked_1kc3w_37",disabled:"_disabled_1kc3w_53",checkmark:"_checkmark_1kc3w_58"},Ge=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:s="✔"})=>{const c={height:e,width:e,fontSize:e},d=[he.checkBoxIcon,t&&he.checked,n&&he.disabled,a&&he.showBox,r&&he.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:d,style:c,children:o.jsx("span",{"aria-hidden":!0,className:he.checkmark,children:t?s:""})})},re="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",fe={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Nt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,checkmarkCharacter:l="✔",tabIndex:u=0,children:m,"aria-controls":h,"aria-describedby":y,value:f})=>{const v=[fe.checkBoxInput,d&&fe.contentOnly,t&&fe.disabled,i&&fe.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,showBox:!d,hasErrors:d&&i,checkmarkCharacter:l},p={id:r,name:s,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y,value:f};return o.jsxs("label",{htmlFor:r,className:v,children:[d?o.jsx(Ge,{...b}):o.jsxs(o.Fragment,{children:[o.jsx(Ge,{...b}),o.jsx("input",{...p})]}),o.jsxs("span",{className:fe.labelText,children:[m,n&&o.jsx("img",{src:re,alt:"",className:fe.requiredSymbol})]})]})},Mt={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},De={headerContainer:"_headerContainer_t2si7_1",header:"_header_t2si7_1","size-1":"_size-1_t2si7_8",bigHeader:"_bigHeader_t2si7_16","size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},Ke=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:s,htmlFor:c,children:d})=>{const i=s||`h${n}`,l=D([De.header,De[`size-${n}`],a&&De.bigHeader]),u=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,m=x.createElement(i,{className:l,id:e||void 0,htmlFor:c||void 0,style:u},t!=null&&t.length?t:d);return o.jsx("div",{className:De.headerContainer,children:m})},Tt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>de(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`checkboxListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:Mt.checkBoxList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(Ke,{size:t,children:e}):e,n&&o.jsx("img",{src:re,alt:"",className:Mt.requiredSymbol})]}),s(x.Children.toArray(r))]})},me={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},zt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,compact:i=!1,hasErrors:l=!1,checkmarkCharacter:u="✔","aria-controls":m,"aria-describedby":h,children:y,value:f})=>{const v=D([me.checkBoxListItem,e&&me.checked,t&&me.disabled,i&&me.compact,d&&me.contentOnly,l&&me.hasErrors]),b={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:d,hasErrors:l,"aria-controls":m,"aria-describedby":h,id:r,name:s,checkmarkCharacter:u,value:f};return o.jsx("div",{className:v,children:o.jsx(Nt,{...b,children:y})})},Lr={container:"_container_f8z49_1"},Bt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return o.jsx("div",{className:Lr.container,style:n,children:t})},pe={contentBox:"_contentBox_1ndvc_1",link:"_link_1ndvc_8",default:"_default_1ndvc_21",content:"_content_1ndvc_1",title:"_title_1ndvc_25",secondary:"_secondary_1ndvc_28",regular:"_regular_1ndvc_36",large:"_large_1ndvc_45"},$r=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:s=null})=>{const c=()=>{if(!e)return null;const h=`${pe.title} ${pe[t]}`;return o.jsx("h2",{className:h,children:e})},d=pe[r]||"",i=s?pe.link:"",l=`${pe.contentBox} ${d} ${i}`.trim(),u=n!=null&&n.length?n:a,m=o.jsxs(o.Fragment,{children:[c(),o.jsx("div",{className:pe.content,children:u})]});return s?o.jsx("a",{href:s,className:l,children:m}):o.jsx("div",{className:l,children:m})},Dt={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},Ir=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dd",{className:D([Dt.descriptionDetails,e&&Dt.compact]),style:{"--title-width":t||void 0},children:n}),Pt={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Nr=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>de(r).map(c=>x.isValidElement(c)?x.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${c.key}`}):c);return x.createElement("dl",{className:D([Pt.descriptionList,e&&Pt.compact]),style:{"--title-width":t||void 0}},a(x.Children.toArray(n)))},At={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},Mr=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dt",{className:D([At.descriptionTerm,e&&At.compact]),style:{"--title-width":t||void 0},children:n}),Tr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",se={dialog:"_dialog_psz2f_19",dialogContainer:"_dialogContainer_psz2f_36",dialogContent:"_dialogContent_psz2f_41",closeButton:"_closeButton_psz2f_48",isSidebar:"_isSidebar_psz2f_63",modalInVertical:"_modalInVertical_psz2f_1",noPadding:"_noPadding_psz2f_77",left:"_left_psz2f_116",modalInHorizontalLeft:"_modalInHorizontalLeft_psz2f_1",right:"_right_psz2f_123",modalInHorizontalRight:"_modalInHorizontalRight_psz2f_1",dialogOverlay:"_dialogOverlay_psz2f_131"},zr=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!0,attachTo:s,hidden:c=!1,children:d})=>{const i=x.useRef(null),l=x.useRef(null),u=x.useCallback(y=>{y&&ut(y)},[]);x.useEffect(()=>{const y=v=>{v.key==="Escape"&&a&&a()},f=v=>{l.current&&!l.current.contains(v.target)&&a()};return document.addEventListener("mousedown",f),document.addEventListener("keydown",y,!1),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",y,!1)}},[a]),x.useEffect(()=>{i.current&&(i.current.close(),c||(r?i.current.showModal():i.current.show()))},[c,r]);const m=s&&D([se.isSidebar,se[s]]),h={"--max-width":e};return o.jsx("dialog",{className:D([se.dialog,m]),ref:i,children:o.jsx("div",{ref:l,className:se.dialogContainer,style:h,children:o.jsxs("div",{ref:u,className:D([se.dialogContent,t&&se.noPadding]),children:[n&&o.jsx("button",{type:"button","aria-label":"Lukk dialog",onClick:a,className:D([se.closeButton,t&&se.noPadding]),children:o.jsx("img",{src:Tr,alt:""})}),o.jsx("div",{"aria-live":"assertive",role:"dialog",children:d})]})})})},Pe={dragAndDropFileInput:"_dragAndDropFileInput_pfifv_1",requiredSymbol:"_requiredSymbol_pfifv_1",dragAndDropContainer:"_dragAndDropContainer_pfifv_8",highlighted:"_highlighted_pfifv_25"},Br="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20role='presentation'%3e%3cg%20clip-path='url(%23clip0_1089_7422)'%3e%3cmask%20id='mask0_1089_7422'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%20style='fill:%20white;'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7422)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%2010C0%204.4775%204.4775%200%2010%200C15.5225%200%2020%204.4775%2020%2010C20%2015.5225%2015.5225%2020%2010%2020C4.4775%2020%200%2015.5225%200%2010ZM11%2014.0766C11%2014.8122%2010.5188%2015.3333%209.83335%2015.3333C9.13335%2015.3333%208.66669%2014.8122%208.66669%2014.0766C8.66669%2013.341%209.13335%2012.8046%209.83335%2012.8046C10.5188%2012.8046%2011%2013.341%2011%2014.0766ZM10.65%2011.9463H8.98752L8.75419%204.66663H10.8834L10.65%2011.9463Z'%20style='fill:%20rgb(219,%200,%200);'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1089_7422'%3e%3crect%20width='20'%20height='20'%20fill='white'%3e%3c/rect%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Rt={errorMessage:"_errorMessage_i8u6b_7",errorSign:"_errorSign_i8u6b_19"},_e=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:Rt.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?o.jsxs("span",{"aria-live":"polite",...n(),children:[o.jsx("img",{src:Br,alt:"",className:Rt.errorSign}),t]}):null},Ze={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},ce=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...s})=>{const c=[Ze.label,e&&Ze.inline,t&&Ze.normalCursor].filter(Boolean).join(" "),d={...s,className:c,id:r||void 0};return x.createElement(n,d,a)},Dr=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:s=!1,buttonColor:c="primary",buttonContent:d,buttonContentWhenSelectedFile:i,selectedFileName:l,defaultContent:u="",hasErrors:m=!1,errorMessage:h="",required:y=!1,children:f,"data-transaction-name":v})=>{const[b,p]=x.useState(!1),w=x.useRef(null),C=x.useRef(null),I=z=>{z.preventDefault(),z.stopPropagation()},L=(z,R)=>z||R,$=()=>{var z;(z=C.current)==null||z.click()},T=()=>`${e}-errorMessage`,M={id:e,"aria-describedby":m&&(h!=null&&h.toString().length)?T():void 0,"aria-invalid":m?"true":void 0,name:t,required:y},k=l&&i||d,P=x.useCallback(()=>p(!0),[]),X=x.useCallback(()=>p(!1),[]),J=x.useCallback(z=>{var R;I(z),(R=z.dataTransfer)!=null&&R.files&&a(z.dataTransfer.files),p(!1)},[a]);return x.useEffect(()=>{const z=w.current;if(z)return["dragenter","dragover"].forEach(R=>{z.addEventListener(R,P)}),["dragleave","drop"].forEach(R=>{z.addEventListener(R,X)}),["dragenter","dragover","dragleave","drop"].forEach(R=>{z.addEventListener(R,I)}),z.addEventListener("drop",J),()=>{["dragenter","dragover","dragleave","drop"].forEach(R=>{z.removeEventListener(R,I),z.removeEventListener(R,P),z.removeEventListener(R,X)}),z.removeEventListener("drop",J)}},[a]),o.jsxs("div",{className:Pe.dragAndDropFileInput,children:[o.jsxs(ce,{htmlFor:e,children:[r,y&&o.jsx("img",{src:re,alt:"",className:Pe.requiredSymbol})]}),o.jsx("div",{children:f}),!s&&o.jsxs("div",{ref:w,className:`${Pe.dragAndDropContainer} ${b?Pe.highlighted:""}`,children:[l?o.jsx("div",{children:o.jsxs("span",{children:[o.jsx("b",{children:"Valgt fil:"})," ",l]})}):o.jsx("div",{children:"Slipp fil her"}),o.jsx("input",{...M,ref:C,type:"file",onChange:n}),d&&o.jsxs(o.Fragment,{children:[o.jsx("div",{children:l?"":"eller klikk på knappen for å velge fil"}),o.jsx(Je,{size:"small",inputType:"button",color:c,onClick:$,content:k,hasErrors:m,"data-transaction-name":v})]})]}),s&&o.jsx("span",{children:L(l,u)}),o.jsx(_e,{id:T(),content:h})]})},Ft="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2020%2020'%20role='presentation'%3e%3cpath%20d='M10%200C4.4775%200%200%204.4775%200%2010C0%2015.5225%204.4775%2020%2010%2020C15.5225%2020%2020%2015.5225%2020%2010C20%204.4775%2015.5225%200%2010%200ZM8.30583%2013.3417C8.77583%2011.8508%209.66583%2010.065%209.82333%209.61333C10.0508%208.9575%209.6475%208.66667%208.37333%209.7875L8.09%209.25417C9.54333%207.67333%2012.5358%207.31583%2011.5175%209.765C10.8817%2011.2942%2010.4267%2012.3267%2010.1667%2013.1233C9.7875%2014.2842%2010.745%2013.8133%2011.6825%2012.9475C11.81%2013.1558%2011.8517%2013.2233%2011.9792%2013.4633C9.8975%2015.445%207.58667%2015.62%208.30583%2013.3417ZM12.2575%206.53417C11.8142%206.91167%2011.1575%206.90333%2010.79%206.51583C10.4225%206.12833%2010.4842%205.50917%2010.9267%205.13167C11.37%204.75417%2012.0267%204.76333%2012.3942%205.15C12.76%205.53833%2012.7%206.1575%2012.2575%206.53417Z'%20style='fill:%20rgb(0,%2048,%2069);'%3e%3c/path%3e%3c/svg%3e",ge={errorBoxContainer:"_errorBoxContainer_88ulw_7",messageIn:"_messageIn_88ulw_1",warning:"_warning_88ulw_14",error:"_error_88ulw_7",fullScreen:"_fullScreen_88ulw_22",errorBox:"_errorBox_88ulw_7",infoSign:"_infoSign_88ulw_38"},Pr=({type:e="warning",fullScreen:t=!1,children:n=""})=>o.jsx("div",{className:D([ge.errorBoxContainer,ge[e],t&&ge.fullScreen]),children:o.jsxs("div",{className:D([ge.errorBox,t&&ge.fullScreen]),children:[o.jsx("img",{src:Ft,alt:"",className:ge.infoSign}),n]})}),Ar={footer:"_footer_19fad_1"},Rr=({children:e})=>o.jsx("footer",{className:Ar.footer,children:o.jsx(Bt,{children:e})}),Ot={infoBox:"_infoBox_1mh67_7",infoSign:"_infoSign_1mh67_15"},Fr=({children:e=""})=>o.jsxs("div",{className:Ot.infoBox,children:[o.jsx("img",{src:Ft,alt:"",className:Ot.infoSign}),e]}),U={inputField:"_inputField_9tnyr_1",noMargin:"_noMargin_9tnyr_4",requiredSymbol:"_requiredSymbol_9tnyr_10",file:"_file_9tnyr_17",input:"_input_9tnyr_1",hasErrors:"_hasErrors_9tnyr_50",fileInputContainer:"_fileInputContainer_9tnyr_62"},Or=e=>{const t=typeof e=="string"?new Date(e):e;if(Number.isNaN(t.getTime()))return String(e??"");const n=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0"),r=t.getFullYear();return`${n}.${a}.${r}`},Vt=e=>{if(e==null||e==="")return;const t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return;const n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return`${n}-${a}-${r}`},Vr=e=>!e||["text","search","url","email","tel","password","number"].includes(e),qr=({id:e,onChange:t=()=>{},onBlur:n,name:a="",type:r="text",disabled:s=!1,required:c=!1,readOnly:d,width:i,value:l,defaultValue:u,elementKey:m,label:h="",contentOnly:y=!1,buttonColor:f="primary",buttonContent:v,selectedFileName:b,placeholder:p="",defaultContent:w="",min:C,max:I,role:L,"aria-describedby":$,"aria-autocomplete":T,hasErrors:M=!1,errorMessage:k="",noMargin:P=!1})=>{const X=x.useRef(null),J=()=>`${e}-errorMessage`,z=i?{maxWidth:i}:{},R=(()=>{if(r==="file")return{};if(r==="date"){const B=l!==void 0?Vt(l):void 0,W=l===void 0&&u!==void 0?Vt(u):void 0;return l!==void 0?{value:B??""}:u!==void 0?{defaultValue:W}:{}}const N=B=>B instanceof Date?String(B.getTime()):B;return l!==void 0?{value:N(l)}:u!==void 0?{defaultValue:N(u)}:{}})(),E={name:a,readOnly:d,disabled:s,required:c,type:r,role:L,id:e,min:C,max:I,onChange:t,onBlur:n,placeholder:r==="file"?void 0:p,className:M?U.hasErrors:void 0,"aria-describedby":M&&k?J():$,"aria-invalid":M||void 0,"aria-autocomplete":Vr(r)?T:void 0,style:z,...R};if(y){const N=l??u??"",B=r==="date"?N?Or(N):w:String(N??"")||w;return o.jsxs("div",{className:D([U.inputField,U[r],P&&U.noMargin]),children:[o.jsxs(ce,{htmlFor:e,children:[h,c&&o.jsx("img",{src:re,alt:"",className:U.requiredSymbol})]}),o.jsx("span",{children:B}),M&&k?o.jsx(_e,{id:J(),content:k}):null]})}return o.jsxs("div",{className:D([U.inputField,U[r],P&&U.noMargin]),children:[o.jsxs(ce,{htmlFor:e,children:[h,c&&o.jsx("img",{src:re,alt:"",className:U.requiredSymbol}),r==="file"&&o.jsxs("div",{className:U.fileInputContainer,children:[o.jsx("span",{className:U.input,children:b}),v&&o.jsx(Je,{color:f,inputType:"button",onClick:()=>{var N;return(N=X.current)==null?void 0:N.click()},content:v})]})]}),o.jsx("input",{...E,ref:X},m||e),M&&k?o.jsx(_e,{id:J(),content:k}):null]})},Hr={lead:"_lead_176gy_1"},Xr=({id:e,htmlTag:t="p",children:n})=>x.createElement(t,{className:Hr.lead,id:e||void 0},n),qt={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},Wr=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=i=>de(i).map(u=>x.isValidElement(u)?x.cloneElement(u,{compact:t,key:`listItem-${u.key}`}):u),s=n?"ol":"ul",c=n?"decimal":"disc";return x.createElement(s,{className:`${qt.list} ${t?qt.compact:""}`,style:{["--listStyle"]:e||c}},r(x.Children.toArray(a)))},Ht={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Ur=({compact:e=!1,children:t})=>{const n=D([Ht.listItem,e&&Ht.compact]);return o.jsx("li",{className:n,children:t})},Qe={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Yr=({fixed:e=!1,message:t=""})=>{const n=e?`${Qe.loadingAnimation} ${Qe.fixed}`:Qe.loadingAnimation;return o.jsx("div",{className:n,children:t})},Jr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Gr="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Kr=e=>(e==null?void 0:e.logo)??"",Zr=e=>(e==null?void 0:e.logoPadding)??"",Qr=e=>(e==null?void 0:e.appName)??"",F={navigationBarContainer:"_navigationBarContainer_n1cc0_1",mainContentLink:"_mainContentLink_n1cc0_1",compact:"_compact_n1cc0_30",navigationBar:"_navigationBar_n1cc0_1",preventStacking:"_preventStacking_n1cc0_63",logoContainer:"_logoContainer_n1cc0_82",childElements:"_childElements_n1cc0_91",menuToggle:"_menuToggle_n1cc0_97",hamburgerIcon:"_hamburgerIcon_n1cc0_125",active:"_active_n1cc0_161",dropdownContainer:"_dropdownContainer_n1cc0_170",dropdown:"_dropdown_n1cc0_170",primaryList:"_primaryList_n1cc0_195",secondaryList:"_secondaryList_n1cc0_196",line:"_line_n1cc0_392"},et=({listItem:e})=>typeof e=="string"?o.jsx("li",{children:o.jsx("span",{children:e})}):typeof e=="object"?o.jsx("li",{children:o.jsx("a",{href:e.href,children:e.name})}):null,ea=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:s,compact:c,mainContentId:d,preventChildElementStacking:i=!1,children:l})=>{const[u,m]=x.useState(!1),h=()=>m(!u),y=L=>({padding:Zr(L)}),f=(L=e,$=0)=>L.length?o.jsx("ul",{className:F.primaryList,children:L.map((T,M)=>{const k=`${$}-${M}`;return T.listItems?o.jsxs("li",{children:[o.jsx("span",{children:T.name}),f(T.listItems,$+1)]},k):o.jsx(et,{listItem:T},k)})}):null,v=()=>t.length?o.jsx("ul",{className:F.secondaryList,children:t.map(L=>o.jsx(et,{listItem:L},L.name))}):null,b=(L,$)=>{const T=Kr(s),M=Qr(s),k=L&&$?"":T&&M?`${M} logo`:"DIBK logo",P=T?o.jsx("img",{alt:k,src:T,style:y(s)}):o.jsx("img",{alt:k,src:c?Gr:Jr});return L!=null&&L.length?o.jsx("a",{href:L,title:$,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:P}):P},p=e.length>0||t.length>0,w=x.useId(),C=x.useId(),I=x.useId();return o.jsxs("div",{className:D([c&&F.compact,F.navigationBarContainer]),children:[d&&o.jsx("a",{id:w,href:`#${d}`,className:F.mainContentLink,children:o.jsx("span",{id:C,children:"Hopp til hovedinnhold"})}),o.jsxs("div",{className:D([F.navigationBar,i&&F.preventStacking]),children:[o.jsx("div",{className:F.logoContainer,children:b(n,a)}),l&&o.jsx("div",{className:F.childElements,children:l}),p&&o.jsxs("button",{type:"button",className:`${F.menuToggle} ${u?F.active:""}`,onClick:h,"aria-expanded":u?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",o.jsxs("span",{className:F.hamburgerIcon,children:[o.jsx("span",{className:F.line}),o.jsx("span",{className:F.line}),o.jsx("span",{className:F.line})]})]})]}),p&&o.jsx("div",{className:D([F.dropdownContainer,u&&F.active]),children:o.jsxs("div",{id:I,className:F.dropdown,children:[f(),v()]})})]})},tt={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},ta=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[tt.paper,e&&tt.noMargin,t&&tt.noPadding].filter(Boolean).join(" ");return o.jsx("div",{className:a,children:n})},Xt={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},na=({progress:e=0,hasErrors:t=!1})=>o.jsx("div",{className:`${Xt.progressBar} ${t?Xt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Ae={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},Wt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},s=[Ae.radioButtonIcon,t&&Ae.checked,n&&Ae.disabled,a&&Ae.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:s,style:r})},ve={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},Ut=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:s="",onChange:c,contentOnly:d=!1,hasErrors:i=!1,inputValue:l,tabIndex:u,children:m,"aria-controls":h,"aria-describedby":y})=>{const f=[ve.radioButtonInput,e&&ve.checked,t&&ve.disabled,i&&ve.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,hasErrors:!d&&i},b={id:r,name:s,type:"radio",value:l,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u??void 0,"aria-controls":h,"aria-invalid":i?"true":void 0,"aria-describedby":y};return o.jsxs("label",{htmlFor:r,className:f,children:[!d&&o.jsxs(o.Fragment,{children:[o.jsx(Wt,{...v}),o.jsx("input",{...b})]}),o.jsxs("span",{className:ve.labelText,children:[m,n&&o.jsx("img",{src:re,alt:"",className:ve.requiredSymbol})]})]})},Yt={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},ra=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>de(c).map(i=>{var l;return x.isValidElement(i)&&((l=i.type)==null?void 0:l.displayName)==="RadioButtonListItem"?x.cloneElement(i,{requiredGroup:n,compact:a,key:`radioButtonListItem-${i.key}`}):i});return o.jsxs("fieldset",{className:Yt.radioButtonList,children:[!!(e!=null&&e.length)&&o.jsxs("legend",{children:[t?o.jsx(Ke,{size:t,children:e}):e,n&&o.jsx("img",{src:re,alt:"",className:Yt.requiredSymbol})]}),s(x.Children.toArray(r))]})},ye={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},aa=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:s="",id:c,onChange:d,contentOnly:i=!1,compact:l=!1,hasErrors:u=!1,"aria-controls":m,"aria-describedby":h,children:y})=>{const f=D([ye.radioButtonListItem,t&&ye.checked,n&&ye.disabled,l&&ye.compact,i&&ye.contentOnly,u&&ye.hasErrors]),v={onChange:d,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:i,hasErrors:u,"aria-controls":m,"aria-describedby":h,id:c,name:s};return o.jsx("div",{className:f,children:o.jsx(Ut,{...v,children:y})})},oe={select:"_select_11vnt_1",requiredSymbol:"_requiredSymbol_11vnt_1",selectContainer:"_selectContainer_11vnt_8",selectListArrow:"_selectListArrow_11vnt_11",multipleSelectDropdown:"_multipleSelectDropdown_11vnt_40",multipleSelectElement:"_multipleSelectElement_11vnt_50",hasErrors:"_hasErrors_11vnt_98"},sa=e=>{const{id:t,name:n="",required:a=!1,disabled:r=!1,options:s=[],width:c,label:d="",contentOnly:i=!1,keyAsContent:l=!1,placeholder:u="",placeholderValue:m="",defaultContent:h="",role:y,"aria-describedby":f,hasErrors:v=!1,errorMessage:b=""}=e,[p,w]=x.useState(!1),C=x.useRef(null),I=x.useCallback(E=>{E&&ut(E)},[]),L=()=>w(!1);x.useEffect(()=>{const E=B=>{B.key==="Escape"&&L()},N=B=>{C.current&&!C.current.contains(B.target)&&L()};return document.addEventListener("mousedown",N),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",E)}},[]);const $=E=>typeof E=="object"?{key:E.key,value:E.value}:{key:E,value:E},T=E=>{const N=s.map($).find(B=>B.value===E||B.key===E);return N?N.key??N.value:E},M=E=>Array.isArray(E)?E:E==null?[]:[E],k=()=>e.value!==void 0?M(e.value):e.defaultValue!==void 0?M(e.defaultValue):[],P=()=>{const E=k();return E.length===0?u||h||"":E.map(T).join(", ")},X=E=>{const N=k(),W=N.includes(E)?N.filter(xe=>xe!==E):[...N,E];e.multiple&&e.onChange(W)},J=()=>{const E=k();return s.map(N=>{const{key:B,value:W}=$(N),xe=E.includes(W),g=`${t}-${String(W)}`;return o.jsx(zt,{id:g,value:W,checked:xe,onChange:()=>X(W),children:B},String(W))})},z=()=>`${t}-errorMessage`;if(i){const E=k(),N=E.length===0?h:l?E.map(T).join(", "):E.join(", ");return o.jsxs("div",{className:oe.select,children:[o.jsx(ce,{htmlFor:t,children:d}),o.jsx("span",{children:N})]})}const R=E=>{const N=s.map($).find(B=>String(B.value)===E);return N?N.value:E};return o.jsxs("div",{className:oe.select,children:[o.jsxs(ce,{htmlFor:t,children:[d,a&&o.jsx("img",{src:re,alt:"",className:oe.requiredSymbol})]}),o.jsxs("div",{className:oe.selectContainer,style:c?{maxWidth:c}:void 0,children:[o.jsx("span",{className:oe.selectListArrow}),e.multiple?o.jsxs("div",{ref:C,children:[o.jsx("button",{type:"button",id:t,"aria-haspopup":"listbox","aria-expanded":p,onClick:()=>w(E=>!E),className:oe.multipleSelectElement,disabled:r,children:P()}),p&&o.jsx("div",{ref:I,className:oe.multipleSelectDropdown,role:"listbox","aria-multiselectable":"true","aria-labelledby":t,children:o.jsx(Tt,{compact:!0,children:J()})})]}):o.jsxs("select",{name:n,required:a,disabled:r,onChange:E=>e.onChange(R(E.target.value)),id:t,role:y,className:D([v&&oe.hasErrors]),"aria-describedby":v&&b?z():f,"aria-invalid":v||void 0,style:c?{maxWidth:c}:void 0,...e.value!==void 0?{value:e.value}:e.defaultValue!==void 0?{defaultValue:e.defaultValue}:{},children:[u&&o.jsx("option",{value:m,disabled:!0,children:u}),s.map(E=>{const{key:N,value:B}=$(E);return o.jsx("option",{value:String(B),children:N},String(B))})]})]}),o.jsx(_e,{id:z(),content:b})]})},Y={table:"_table_19a1d_1",thButton:"_thButton_19a1d_30",sortable:"_sortable_19a1d_41",label:"_label_19a1d_51",sortIndicators:"_sortIndicators_19a1d_55",sortArrow:"_sortArrow_19a1d_62",activeArrow:"_activeArrow_19a1d_65",evenRow:"_evenRow_19a1d_69",oddRow:"_oddRow_19a1d_72"},oa=({columns:e,data:t,caption:n,getRowId:a})=>{const[r,s]=x.useState(null);x.useEffect(()=>{const u=e.find(m=>m.sortable);s(u?{headerKey:u.key,direction:"asc"}:null)},[e]);const c=x.useMemo(()=>{const u=new Map;for(const m of e)u.set(m.key,m);return u},[e]),d=x.useMemo(()=>{if(!r)return t;const u=c.get(r.headerKey);if(!u)return t;const m=u.sortAccessor??u.accessor;if(!m)return t;const h=[...t];return h.sort((y,f)=>{const v=m(y),b=m(f);if(v==null||b==null)return 0;if(typeof v=="number"&&typeof b=="number")return r.direction==="asc"?v-b:b-v;if(v instanceof Date&&b instanceof Date)return r.direction==="asc"?v.getTime()-b.getTime():b.getTime()-v.getTime();const p=String(v),w=String(b);return r.direction==="asc"?p.localeCompare(w,void 0,{numeric:!0}):w.localeCompare(p,void 0,{numeric:!0})}),h},[t,r,c]),i=u=>{s(m=>!m||m.headerKey!==u?{headerKey:u,direction:"asc"}:{headerKey:u,direction:m.direction==="asc"?"desc":"asc"})},l=(u,m)=>{if(m)return(r==null?void 0:r.headerKey)!==u?"none":r.direction==="asc"?"ascending":"descending"};return o.jsxs("table",{className:Y.table,children:[n&&o.jsx("caption",{children:n}),o.jsx("thead",{children:o.jsx("tr",{children:e.map(({key:u,label:m,sortable:h,ariaLabel:y})=>{const f=(r==null?void 0:r.headerKey)===u,v=f&&r.direction==="asc",b=f&&r.direction==="desc";return o.jsx("th",{"aria-sort":l(u,h),children:o.jsxs("button",{type:"button",className:`${Y.thButton} ${h?Y.sortable:""}`,onClick:h?()=>i(u):void 0,disabled:!h,"aria-label":h?`${y??m}: sort ${f&&v?"descending":"ascending"}`:void 0,children:[o.jsx("span",{className:Y.label,children:m}),h&&o.jsxs("span",{className:Y.sortIndicators,"aria-hidden":"true",children:[o.jsx("span",{className:`${Y.sortArrow} ${v?Y.activeArrow:""}`,children:"▲"}),o.jsx("span",{className:`${Y.sortArrow} ${b?Y.activeArrow:""}`,children:"▼"})]})]})},u)})})}),o.jsx("tbody",{children:d.map((u,m)=>o.jsx("tr",{className:m%2===0?Y.evenRow:Y.oddRow,children:e.map(h=>{var y;return o.jsx("td",{children:h.render?h.render(u):String(((y=h.accessor)==null?void 0:y.call(h,u))??"")},h.key)})},a==null?void 0:a(u,m)))})]})},ia=e=>{let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*a));return t},nt={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},la=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:s,disabled:c,width:d,resize:i="both",value:l,defaultValue:u,elementKey:m,rows:h,label:y="",contentOnly:f=!1,placeholder:v="",defaultContent:b="","aria-describedby":p,hasErrors:w=!1,errorMessage:C=""})=>{const I=()=>`${e}-errorMessage`,L=!(l!=null&&l.length)&&(u!=null&&u.length)?u:void 0,$=m||`${e}-${ia(6)}`,T={...d&&{maxWidth:d},...i&&{resize:i}},M={name:a,readOnly:s,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:L?void 0:l,defaultValue:L||void 0,placeholder:v,rows:h?parseInt(h,10):void 0,className:w?nt.hasErrors:"","aria-describedby":w&&C?I():p,"aria-invalid":w?"true":void 0,style:T};return o.jsxs("div",{className:nt.textarea,children:[o.jsxs(ce,{htmlFor:e,children:[y,r&&o.jsx("img",{src:re,alt:"",className:nt.requiredSymbol})]}),f?o.jsx("span",{children:l||u||b}):o.jsx("textarea",{...M},$),o.jsx(_e,{id:I(),content:C})]})},ca=({theme:e,children:t})=>{const n=nn(e),a=an(n);return rn("theme-provider",`:root {${a}}`),t},da={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},ua=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:s=!1})=>x.createElement(t,{...r,className:da.toggleNavigationButton,id:e||void 0},s?a:n),K={wizardTopnavItem:"_wizardTopnavItem_5ar16_1",wizardTopnavItemContent:"_wizardTopnavItemContent_5ar16_4",vertical:"_vertical_5ar16_7",stepNumber:"_stepNumber_5ar16_24",stepName:"_stepName_5ar16_36",active:"_active_5ar16_46",finished:"_finished_5ar16_46",hasErrors:"_hasErrors_5ar16_46",horizontal:"_horizontal_5ar16_64"},ha="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Jt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,s=a==="vertical",c=D([K.wizardTopnavItem,r&&K.active,e.finished&&K.finished,e.hasErrors&&K.hasErrors,K[a]]),d=r?"step":void 0,i=()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:K.stepNumber,children:t+1}),o.jsx("span",{className:K.stepName,children:e.name}),s&&e.finished&&!r&&o.jsx("img",{src:ha,alt:"",className:K.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?o.jsx("li",{className:c,children:o.jsx(Se,{to:e.link,"aria-current":d,className:K.wizardTopnavItemContent,children:i()})}):o.jsx("li",{className:c,children:o.jsx("span",{"aria-current":d,className:K.wizardTopnavItemContent,children:i()})})},rt={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},fa=({steps:e,activeStepId:t,direction:n="vertical","aria-label":a})=>{const r=Object.keys(e),c=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,d=a!=null&&a.length?a:c;return o.jsx("nav",{"aria-label":d,className:D([rt.wizardTopnavContainer,rt[n]]),children:o.jsx("ol",{className:rt.wizardTopnav,children:r.map((i,l)=>o.jsx(Jt,{step:e[i],activeStepId:t,direction:n,index:l},i))})})};j.Accordion=cn,j.Button=Je,j.CheckBoxIcon=Ge,j.CheckBoxInput=Nt,j.CheckBoxList=Tt,j.CheckBoxListItem=zt,j.Container=Bt,j.ContentBox=$r,j.DescriptionDetails=Ir,j.DescriptionList=Nr,j.DescriptionTerm=Mr,j.Dialog=zr,j.DragAndDropFileInput=Dr,j.ErrorBox=Pr,j.ErrorMessage=_e,j.Footer=Rr,j.Header=Ke,j.InfoBox=Fr,j.InputField=qr,j.Label=ce,j.Lead=Xr,j.List=Wr,j.ListItem=Ur,j.LoadingAnimation=Yr,j.NavigationBar=ea,j.NavigationBarListItem=et,j.Paper=ta,j.ProgressBar=na,j.RadioButtonIcon=Wt,j.RadioButtonInput=Ut,j.RadioButtonList=ra,j.RadioButtonListItem=aa,j.Select=sa,j.Table=oa,j.Textarea=la,j.ThemeProvider=ca,j.ToggleNavigationButton=ua,j.WizardNavigation=fa,j.WizardNavigationStep=Jt,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
22
+ <%s key={someKey} {...props} />`,_,z,Y,z),G[z+_]=!0)}if(z=null,C!==void 0&&(s(C),z=""+C),h(p)&&(s(p.key),z=""+p.key),"key"in p){C={};for(var de in p)de!=="key"&&(C[de]=p[de])}else C=p;return z&&i(C,typeof l=="function"?l.displayName||l.name||"Unknown":l),d(l,z,I,j,r(),C,K,te)}function f(l){typeof l=="object"&&l!==null&&l.$$typeof===y&&l._store&&(l._store.validated=1)}var v=c,y=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),M=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.for("react.client.reference"),J=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=Object.prototype.hasOwnProperty,L=Array.isArray,P=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(l){return l()}};var U,g={},$=v["react-stack-bottom-frame"].bind(v,a)(),X=P(o(a)),G={};ye.Fragment=x,ye.jsx=function(l,p,C,_,j){var I=1e4>J.recentlyCreatedOwnerStacks++;return m(l,p,C,!1,_,j,I?Error("react-stack-top-frame"):$,I?P(o(l)):X)},ye.jsxs=function(l,p,C,_,j){var I=1e4>J.recentlyCreatedOwnerStacks++;return m(l,p,C,!0,_,j,I?Error("react-stack-top-frame"):$,I?P(o(l)):X)}}()),ye}var Xe;function vt(){return Xe||(Xe=1,process.env.NODE_ENV==="production"?we.exports=gt():we.exports=ft()),we.exports}var t=vt();const B=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",Re=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),bt=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((n,[s,o])=>(s&&o&&(n[`--color-${Re(s)}`]=o),n),{}),xt=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((n,[s,o])=>(s&&o&&(n[`--size-${Re(s)}`]=o),n),{}),yt=e=>({...bt(e),...xt(e)}),jt=(e,n)=>{if(typeof document>"u")return;const s=document.createElement("style");s.setAttribute("id",e),s.textContent=n;const o=document.getElementById(e);o&&o.remove(),document.head.appendChild(s)},wt=e=>Object.entries(e).map(([n,s])=>`${n}: ${s};`).join(""),he=e=>{const n=[];return c.Children.forEach(e,s=>{if(c.isValidElement(s)){const o=s;if(o.type===c.Fragment){const r=he(o.props.children);n.push(...r)}else n.push(c.cloneElement(o,{...o.props}))}else n.push(s)}),n},Ct=e=>{if(typeof document>"u")return;const n=document.createElement("button");n.style.position="absolute",n.style.opacity="0",e.prepend(n),n.focus(),n.remove()},kt=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(s=>!!s),Ye=e=>{Ct(e);const n=kt(e),s=n[0],o=n[n.length-1]||s;s&&(s.onkeydown=r=>{r.key==="Tab"&&r.shiftKey&&(r.preventDefault(),o.focus())}),o&&(o.onclick=()=>{s==null||s.focus()},o.onkeydown=r=>{r.key==="Tab"&&!r.shiftKey&&(r.preventDefault(),s==null||s.focus())})},ne={accordion:"_accordion_kwqaf_67",default:"_default_kwqaf_73",panel:"_panel_kwqaf_76",content:"_content_kwqaf_77",secondary:"_secondary_kwqaf_80",info:"_info_kwqaf_88",contrast:"_contrast_kwqaf_96",margin:"_margin_kwqaf_104",panelText:"_panelText_kwqaf_138",panelChevron:"_panelChevron_kwqaf_144",expanded:"_expanded_kwqaf_171",initialized:"_initialized_kwqaf_187",hide:"_hide_kwqaf_1",show:"_show_kwqaf_1"},Lt=({title:e,buttonProps:n,expanded:s,handleToggleExpand:o})=>t.jsxs("button",{...n,className:ne.panel,onClick:o,"aria-expanded":s?"true":"false",children:[t.jsx("span",{className:ne.panelText,children:e}),t.jsx("span",{className:`${ne.panelChevron} ${s?ne.expanded:""}`})]}),$t=({title:e,color:n="default",expanded:s=!1,onToggleExpand:o,buttonProps:r,noMargin:a=!1,initialized:h,children:i,...u})=>{const[d,m]=c.useState(s),[f,v]=c.useState(h),y=()=>{m(!d),v(!0),o&&o()};c.useEffect(()=>{m(s)},[s]);const k=B([ne.accordion,n&&ne[n],!a&&ne.margin,u.className]);return t.jsxs("div",{className:k,...u,children:[t.jsx(Lt,{title:e??"",buttonProps:r??{},expanded:d??!1,handleToggleExpand:y}),t.jsx("div",{className:`${ne.content} ${f?ne.initialized:""} ${d?ne.expanded:""}`,children:i})]})},W={button:"_button_g3s9z_161",noMargin:"_noMargin_g3s9z_189",regular:"_regular_g3s9z_199",small:"_small_g3s9z_202",primary:"_primary_g3s9z_213",noHover:"_noHover_g3s9z_217",secondary:"_secondary_g3s9z_233",ghost:"_ghost_g3s9z_252",disabled:"_disabled_g3s9z_271",hasErrors:"_hasErrors_g3s9z_291",rounded:"_rounded_g3s9z_297",hasArrowLeft:"_hasArrowLeft_g3s9z_301",pushprev:"_pushprev_g3s9z_1",hasArrowRight:"_hasArrowRight_g3s9z_339",pushnext:"_pushnext_g3s9z_1",hasIcon:"_hasIcon_g3s9z_377",buttonContent:"_buttonContent_g3s9z_381"},Ie=({content:e,color:n="primary",size:s="regular",arrow:o="none",disabled:r=!1,inputType:a,defaultChecked:h,hasErrors:i=!1,noHover:u=!1,rounded:d=!1,noMargin:m=!1,href:f,children:v,iconLeft:y,iconRight:k,...x})=>{const N=S=>{switch(S){case"left":return W.hasArrowLeft;case"right":return W.hasArrowRight;default:return""}},T=a==="radio"?h?"primary":"secondary":n,w=B([W.button,W[T],W[s],N(o),u||a==="radio"?W.noHover:null,d&&W.rounded,i&&W.hasErrors,r?W.disabled:null,m?W.noMargin:null,y||k?W.hasIcon:null]),M={"aria-invalid":i||void 0,href:!r&&(f!=null&&f.length)?f:void 0,className:w,...x},H=S=>c.Children.toArray(he(S)).map(O=>{if(!c.isValidElement(O))return null;const E=O,D=E.type===$e.Link&&typeof E.props=="object"&&E.props!==null&&"to"in E.props;return!r&&D?c.cloneElement(E,{className:w,key:`button-${E.key}`,to:E.props.to},y,t.jsx("span",{className:W.buttonContent,children:E.props.children}),k):c.createElement("button",{...M,key:`button-${E.key}`},y,t.jsx("span",{className:W.buttonContent,children:e||(E.props?E.props.children:null)}),k)});if(a==="button")return t.jsxs("button",{type:"button",...M,children:[y,t.jsx("span",{className:W.buttonContent,children:e||v}),k]});if(a==="radio"){const S={...M};return delete S.href,t.jsxs("label",{className:w,children:[t.jsx("input",{...S,type:"radio"}),y,t.jsx("span",{className:W.buttonContent,children:e}),k]})}if(f!=null&&f.length&&!r){const S={...M};return"type"in S&&delete S.type,t.jsxs("a",{...S,children:[y,t.jsx("span",{className:W.buttonContent,children:e||v}),k]})}return c.isValidElement(v)&&v.type===$e.Link?t.jsx(c.Fragment,{children:H(c.Children.toArray(v))}):t.jsxs("button",{...M,children:[y,t.jsx("span",{className:W.buttonContent,children:e||v}),k]})},_e={checkBoxIcon:"_checkBoxIcon_1kc3w_1",showBox:"_showBox_1kc3w_22",hasErrors:"_hasErrors_1kc3w_27",checked:"_checked_1kc3w_37",disabled:"_disabled_1kc3w_53",checkmark:"_checkmark_1kc3w_58"},Ee=({size:e="20px",checked:n=!1,disabled:s=!1,showBox:o=!0,hasErrors:r=!1,checkmarkCharacter:a="✔"})=>{const h={height:e,width:e,fontSize:e},i=[_e.checkBoxIcon,n&&_e.checked,s&&_e.disabled,o&&_e.showBox,r&&_e.hasErrors].filter(Boolean).join(" ");return t.jsx("span",{className:i,style:h,children:t.jsx("span",{"aria-hidden":!0,className:_e.checkmark,children:n?a:""})})},ae="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.275'%20height='30.469'%20focusable='false'%3e%3cpath%20fill='%239d2024'%20d='m0%2014.355%202.246-6.933c5.176%201.823%208.936%203.402%2011.28%204.736-.62-5.892-.945-9.944-.977-12.158h7.08c-.098%203.223-.472%207.26-1.123%2012.11%203.353-1.693%207.194-3.256%2011.523-4.688l2.246%206.933c-4.134%201.368-8.186%202.28-12.158%202.735%201.986%201.725%204.785%204.801%208.399%209.228l-5.86%204.15c-1.888-2.57-4.118-6.07-6.69-10.497-2.408%204.59-4.524%208.089-6.347%2010.498l-5.762-4.15c3.776-4.656%206.478-7.732%208.106-9.23-4.2-.813-8.187-1.724-11.963-2.734'/%3e%3c/svg%3e",me={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Ne=({checked:e=!1,disabled:n=!1,required:s=!1,requiredGroup:o=!1,id:r,name:a="",onChange:h,contentOnly:i=!1,hasErrors:u=!1,checkmarkCharacter:d="✔",tabIndex:m=0,children:f,"aria-controls":v,"aria-describedby":y,value:k})=>{const x=[me.checkBoxInput,i&&me.contentOnly,n&&me.disabled,u&&me.hasErrors].filter(Boolean).join(" "),N={checked:e,disabled:n,showBox:!i,hasErrors:i&&u,checkmarkCharacter:d},T={id:r,name:a,type:"checkbox",checked:e,disabled:n,required:s||o,onChange:h,tabIndex:m,"aria-controls":v,"aria-invalid":u?"true":void 0,"aria-describedby":y,value:k};return t.jsxs("label",{htmlFor:r,className:x,children:[i?t.jsx(Ee,{...N}):t.jsxs(t.Fragment,{children:[t.jsx(Ee,{...N}),t.jsx("input",{...T})]}),t.jsxs("span",{className:me.labelText,children:[f,s&&t.jsx("img",{src:ae,alt:"",className:me.requiredSymbol})]})]})},We={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},Ce={headerContainer:"_headerContainer_t5psg_1",header:"_header_t5psg_1","size-1":"_size-1_t5psg_8",bigHeader:"_bigHeader_t5psg_16","size-2":"_size-2_t5psg_28","size-3":"_size-3_t5psg_36","size-4":"_size-4_t5psg_44","size-5":"_size-5_t5psg_52"},Me=({id:e,content:n,size:s=1,big:o,label:r,htmlTag:a,htmlFor:h,children:i})=>{const u=a||`h${s}`,d=B([Ce.header,Ce[`size-${s}`],o&&Ce.bigHeader]),m=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,f=c.createElement(u,{className:d,id:e||void 0,htmlFor:h||void 0,style:m},n!=null&&n.length?n:i);return t.jsx("div",{className:Ce.headerContainer,children:f})},Ze=({legend:e,legendSize:n,required:s=!1,compact:o=!1,children:r})=>{const a=h=>he(h).map(u=>{var d;return c.isValidElement(u)&&((d=u.type)==null?void 0:d.displayName)==="RadioButtonListItem"?c.cloneElement(u,{requiredGroup:s,compact:o,key:`checkboxListItem-${u.key}`}):u});return t.jsxs("fieldset",{className:We.checkBoxList,children:[!!(e!=null&&e.length)&&t.jsxs("legend",{children:[n?t.jsx(Me,{size:n,children:e}):e,s&&t.jsx("img",{src:ae,alt:"",className:We.requiredSymbol})]}),a(c.Children.toArray(r))]})},pe={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},Ge=({checked:e=!1,disabled:n=!1,required:s=!1,requiredGroup:o=!1,id:r,name:a="",onChange:h,contentOnly:i=!1,compact:u=!1,hasErrors:d=!1,checkmarkCharacter:m="✔","aria-controls":f,"aria-describedby":v,children:y,value:k})=>{const x=B([pe.checkBoxListItem,e&&pe.checked,n&&pe.disabled,u&&pe.compact,i&&pe.contentOnly,d&&pe.hasErrors]),N={onChange:h??(()=>{}),checked:e,disabled:n,required:s,requiredGroup:o,contentOnly:i,hasErrors:d,"aria-controls":f,"aria-describedby":v,id:r,name:a,checkmarkCharacter:m,value:k};return t.jsx("div",{className:x,children:t.jsx(Ne,{...N,children:y})})},It={container:"_container_f8z49_1"},Ue=({maxWidth:e,children:n})=>{const s={"--max-width":e!=null&&e.length?e:void 0};return t.jsx("div",{className:It.container,style:s,children:n})},ge={contentBox:"_contentBox_1ndvc_1",link:"_link_1ndvc_8",default:"_default_1ndvc_21",content:"_content_1ndvc_1",title:"_title_1ndvc_25",secondary:"_secondary_1ndvc_28",regular:"_regular_1ndvc_36",large:"_large_1ndvc_45"},Et=({title:e=null,titleSize:n="regular",content:s="",children:o,color:r="default",href:a=null})=>{const h=()=>{if(!e)return null;const v=`${ge.title} ${ge[n]}`;return t.jsx("h2",{className:v,children:e})},i=ge[r]||"",u=a?ge.link:"",d=`${ge.contentBox} ${i} ${u}`.trim(),m=s!=null&&s.length?s:o,f=t.jsxs(t.Fragment,{children:[h(),t.jsx("div",{className:ge.content,children:m})]});return a?t.jsx("a",{href:a,className:d,children:f}):t.jsx("div",{className:d,children:f})},Je={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},Nt=({compact:e=!1,titleWidth:n,children:s})=>t.jsx("dd",{className:B([Je.descriptionDetails,e&&Je.compact]),style:{"--title-width":n||void 0},children:s}),Ke={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Mt=({compact:e=!1,titleWidth:n,children:s})=>{const o=r=>he(r).map(h=>c.isValidElement(h)?c.cloneElement(h,{compact:e,titleWidth:n,key:`descriptionListItem-${h.key}`}):h);return c.createElement("dl",{className:B([Ke.descriptionList,e&&Ke.compact]),style:{"--title-width":n||void 0}},o(c.Children.toArray(s)))},Qe={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},St=({compact:e=!1,titleWidth:n,children:s})=>t.jsx("dt",{className:B([Qe.descriptionTerm,e&&Qe.compact]),style:{"--title-width":n||void 0},children:s}),zt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25'%20height='25'%3e%3cpath%20fill='%23072938'%20stroke='%23072938'%20stroke-linecap='round'%20stroke-width='3.23'%20d='m3.97%203.57%2017.44%2018.2m-17.44.01L21.41%203.57'/%3e%3c/svg%3e",le={dialog:"_dialog_pl6ui_19",backdrop:"_backdrop_pl6ui_34",dialogContainer:"_dialogContainer_pl6ui_42",modalInVertical:"_modalInVertical_pl6ui_1",dialogContent:"_dialogContent_pl6ui_52",noPadding:"_noPadding_pl6ui_57",closeButton:"_closeButton_pl6ui_65",isSidebar:"_isSidebar_pl6ui_94",left:"_left_pl6ui_117",modalInHorizontalLeft:"_modalInHorizontalLeft_pl6ui_1",right:"_right_pl6ui_123",modalInHorizontalRight:"_modalInHorizontalRight_pl6ui_1"},Bt=({maxWidth:e="none",noPadding:n,closeButton:s,onClickOutside:o,modal:r=!0,attachTo:a,hidden:h=!1,children:i})=>{const[u,d]=c.useState(null),m=c.useRef(null),f=c.useCallback(x=>{x&&Ye(x)},[]);c.useEffect(()=>{if(h)return;const x=N=>{N.key==="Escape"&&o&&o()};return document.addEventListener("keydown",x,!1),()=>{document.removeEventListener("keydown",x,!1)}},[h,o]),c.useEffect(()=>{if(typeof window>"u")return;const N=(()=>{const w="dibk-design-dialog-root";let M=document.getElementById(w);return M||(M=document.createElement("div"),M.setAttribute("id",w),document.body.appendChild(M)),M})(),T=document.createElement("div");return N.appendChild(T),d(T),()=>{d(null),N.contains(T)&&N.removeChild(T)}},[]),c.useEffect(()=>{if(h||!r)return;const x=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=x}},[h,r]);const v=a&&B([le.isSidebar,le[a]]),y={"--max-width":e};if(h||!u)return null;const k=r?{role:"dialog","aria-modal":"true"}:{role:"dialog"};return pt.createPortal(t.jsxs("div",{className:B([le.dialog,v]),onClick:o,...k,children:[r&&t.jsx("div",{className:le.backdrop,"aria-hidden":"true"}),t.jsx("div",{ref:m,className:le.dialogContainer,style:y,onClick:x=>x.stopPropagation(),children:t.jsxs("div",{ref:f,className:B([le.dialogContent,n&&le.noPadding]),children:[s&&t.jsx("button",{type:"button","aria-label":"Lukk dialog",onClick:o,className:B([le.closeButton,n&&le.noPadding]),children:t.jsx("img",{src:zt,alt:""})}),t.jsx("div",{"aria-live":"assertive",children:i})]})})]}),u)},ke={dragAndDropFileInput:"_dragAndDropFileInput_pfifv_1",requiredSymbol:"_requiredSymbol_pfifv_1",dragAndDropContainer:"_dragAndDropContainer_pfifv_8",highlighted:"_highlighted_pfifv_25"},et="data:image/svg+xml,%3csvg%20width='24'%20height='28'%20viewBox='0%200%2024%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cellipse%20cx='12.0008'%20cy='20.0008'%20rx='1.2'%20ry='1.2'%20fill='black'/%3e%3cpath%20d='M12.0008%209.19922C12.6635%209.19922%2013.2007%2010.0348%2013.2008%2011.0656C13.2008%2011.2742%2013.1767%2011.4744%2013.1362%2011.6617L12.6008%2016.6656C12.6008%2017.181%2012.3322%2017.5992%2012.0008%2017.5992C11.6694%2017.5992%2011.4008%2017.181%2011.4008%2016.6656L10.8646%2011.6617C10.8241%2011.4745%2010.8008%2011.2741%2010.8008%2011.0656C10.8009%2010.0348%2011.3381%209.19922%2012.0008%209.19922Z'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.833%205.08415C11.3507%204.16987%2012.6456%204.16987%2013.1633%205.08415L22.4834%2021.5413C23.0007%2022.4554%2022.3534%2023.5982%2021.3182%2023.5984H2.67934C1.64389%2023.5984%200.996537%2022.4556%201.51416%2021.5413L10.833%205.08415ZM12.2898%206.28415C12.1603%206.05562%2011.8373%206.0557%2011.7078%206.28415L2.96965%2021.7127C2.84068%2021.9412%203.0027%2022.2268%203.26127%2022.227H20.735C20.9938%2022.227%2021.1559%2021.9413%2021.0266%2021.7127L12.2898%206.28415Z'%20fill='black'/%3e%3c/svg%3e",tt={errorMessage:"_errorMessage_15d1p_1",errorSign:"_errorSign_15d1p_10"},fe=({id:e,content:n=""})=>{const s=()=>({id:e!=null&&e.length?e:void 0,className:tt.errorMessage});return(typeof n=="string"?n.trim().length>0:!!n)?t.jsxs("span",{"aria-live":"polite",...s(),children:[t.jsx("img",{src:et,alt:"",className:tt.errorSign}),n]}):null},Se={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},ie=({inline:e=!1,normalCursor:n=!1,htmlTag:s="label",children:o,id:r,...a})=>{const h=[Se.label,e&&Se.inline,n&&Se.normalCursor].filter(Boolean).join(" "),i={...a,className:h,id:r||void 0};return c.createElement(s,i,o)},Tt=({id:e,name:n,onSelectChange:s,onDragAndDropChange:o,label:r="",contentOnly:a=!1,buttonColor:h="primary",buttonContent:i,buttonContentWhenSelectedFile:u,selectedFileName:d,defaultContent:m="",hasErrors:f=!1,errorMessage:v="",required:y=!1,children:k,"data-transaction-name":x})=>{const[N,T]=c.useState(!1),w=c.useRef(null),M=c.useRef(null),H=L=>{L.preventDefault(),L.stopPropagation()},A=(L,P)=>L||P,S=()=>{var L;(L=M.current)==null||L.click()},q=()=>`${e}-errorMessage`,O={id:e,"aria-describedby":f&&(v!=null&&v.toString().length)?q():void 0,"aria-invalid":f?"true":void 0,name:n,required:y},E=d&&u||i,D=c.useCallback(()=>T(!0),[]),J=c.useCallback(()=>T(!1),[]),Z=c.useCallback(L=>{var P;H(L),(P=L.dataTransfer)!=null&&P.files&&o(L.dataTransfer.files),T(!1)},[o]);return c.useEffect(()=>{const L=w.current;if(L)return["dragenter","dragover"].forEach(P=>{L.addEventListener(P,D)}),["dragleave","drop"].forEach(P=>{L.addEventListener(P,J)}),["dragenter","dragover","dragleave","drop"].forEach(P=>{L.addEventListener(P,H)}),L.addEventListener("drop",Z),()=>{["dragenter","dragover","dragleave","drop"].forEach(P=>{L.removeEventListener(P,H),L.removeEventListener(P,D),L.removeEventListener(P,J)}),L.removeEventListener("drop",Z)}},[o]),t.jsxs("div",{className:ke.dragAndDropFileInput,children:[t.jsxs(ie,{htmlFor:e,children:[r,y&&t.jsx("img",{src:ae,alt:"",className:ke.requiredSymbol})]}),t.jsx("div",{children:k}),!a&&t.jsxs("div",{ref:w,className:`${ke.dragAndDropContainer} ${N?ke.highlighted:""}`,children:[d?t.jsx("div",{children:t.jsxs("span",{children:[t.jsx("b",{children:"Valgt fil:"})," ",d]})}):t.jsx("div",{children:"Slipp fil her"}),t.jsx("input",{...O,ref:M,type:"file",onChange:s}),i&&t.jsxs(t.Fragment,{children:[t.jsx("div",{children:d?"":"eller klikk på knappen for å velge fil"}),t.jsx(Ie,{size:"small",inputType:"button",color:h,onClick:S,content:E,hasErrors:f,"data-transaction-name":x})]})]}),a&&t.jsx("span",{children:A(d,m)}),t.jsx(fe,{id:q(),content:v})]})},se={box:"_box_10r67_7",messageIn:"_messageIn_10r67_1",fullScreen:"_fullScreen_10r67_16",info:"_info_10r67_19",warning:"_warning_10r67_23",error:"_error_10r67_27",tip:"_tip_10r67_31",inner:"_inner_10r67_36",hasIcon:"_hasIcon_10r67_52",icon:"_icon_10r67_61",iconImage:"_iconImage_10r67_69",content:"_content_10r67_75",title:"_title_10r67_81",body:"_body_10r67_93"},nt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9984%202.39844C17.3004%202.39844%2021.5984%206.6965%2021.5984%2011.9984C21.5984%2017.3004%2017.3004%2021.5984%2011.9984%2021.5984C6.6965%2021.5984%202.39844%2017.3004%202.39844%2011.9984C2.39844%206.6965%206.6965%202.39844%2011.9984%202.39844ZM11.9984%203.59844C7.35925%203.59844%203.59844%207.35925%203.59844%2011.9984C3.59844%2016.6376%207.35925%2020.3984%2011.9984%2020.3984C16.6376%2020.3984%2020.3984%2016.6376%2020.3984%2011.9984C20.3984%207.35925%2016.6376%203.59844%2011.9984%203.59844Z'%20fill='black'/%3e%3cellipse%20cx='12.0203'%20cy='8.37578'%20rx='1.2'%20ry='1.2'%20fill='black'/%3e%3cpath%20d='M13.1563%2011.1562V17.5934H13.1586C13.3618%2017.5934%2013.5266%2017.7583%2013.5266%2017.9613C13.5264%2018.1642%2013.3617%2018.3281%2013.1586%2018.3281L13.1563%2018.327L11.0984%2018.3281V18.3258H10.7551C10.7469%2018.3263%2010.7388%2018.3281%2010.7305%2018.3281C10.5274%2018.3281%2010.3627%2018.1642%2010.3625%2017.9613C10.3625%2017.7591%2010.526%2017.5946%2010.7281%2017.5934H10.9133C10.9133%2017.5934%2010.9906%2017.5875%2011.0609%2017.4938C11.1313%2017.4%2011.0984%2017.2172%2011.0984%2017.2172V12.9C11.0984%2012.9%2011.1266%2012.6293%2011.0047%2012.4781C10.8828%2012.327%2010.7094%2012.327%2010.7094%2012.327H10.3203C9.9969%2012.327%209.73469%2012.0652%209.73438%2011.7422C9.73438%2011.4189%209.99671%2011.1562%2010.3203%2011.1562H13.1563Z'%20fill='black'/%3e%3c/svg%3e",Dt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11.9984%202.39844C17.3004%202.39844%2021.5984%206.6965%2021.5984%2011.9984C21.5984%2017.3004%2017.3004%2021.5984%2011.9984%2021.5984C6.6965%2021.5984%202.39844%2017.3004%202.39844%2011.9984C2.39844%206.6965%206.6965%202.39844%2011.9984%202.39844ZM11.9984%203.59844C7.35925%203.59844%203.59844%207.35925%203.59844%2011.9984C3.59844%2016.6376%207.35925%2020.3984%2011.9984%2020.3984C16.6376%2020.3984%2020.3984%2016.6376%2020.3984%2011.9984C20.3984%207.35925%2016.6376%203.59844%2011.9984%203.59844Z'%20fill='black'/%3e%3ccircle%20cx='12.0008'%20cy='17.45'%20r='1.2'%20fill='black'/%3e%3cpath%20d='M12.0008%205.07422C12.9741%205.07422%2013.7631%206.05478%2013.7633%207.26445C13.7633%207.50925%2013.728%207.74425%2013.6684%207.96406L12.882%2013.8363C12.882%2014.4413%2012.4875%2014.932%2012.0008%2014.932C11.5141%2014.932%2011.1195%2014.4413%2011.1195%2013.8363L10.332%207.96406C10.2725%207.74433%2010.2383%207.50914%2010.2383%207.26445C10.2385%206.05478%2011.0275%205.07422%2012.0008%205.07422Z'%20fill='black'/%3e%3c/svg%3e",st=({title:e,children:n="",variant:s="info",fullScreen:o=!1,hideIcon:r=!1,icon:a,className:h})=>{const i={info:nt,warning:Dt,error:et,tip:nt},u=a??t.jsx("img",{src:i[s],alt:"",className:se.iconImage}),d=!r&&u;return t.jsx("div",{className:B([se.box,se[s],o&&se.fullScreen,d?se.hasIcon:null,h]),children:t.jsxs("div",{className:se.inner,children:[d?t.jsx("div",{className:se.icon,children:u}):null,t.jsxs("div",{className:se.content,children:[e?t.jsx("div",{className:se.title,children:e}):null,n?t.jsx("div",{className:se.body,children:n}):null]})]})})},At=({type:e="warning",children:n="",...s})=>t.jsx(st,{variant:e,children:n,...s}),Pt={footer:"_footer_19fad_1"},Ft=({children:e})=>t.jsx("footer",{className:Pt.footer,children:t.jsx(Ue,{children:e})}),Q={inputField:"_inputField_unu3b_1",noMargin:"_noMargin_unu3b_4",requiredSymbol:"_requiredSymbol_unu3b_10",file:"_file_unu3b_17",input:"_input_unu3b_1",hasErrors:"_hasErrors_unu3b_57",fileInputContainer:"_fileInputContainer_unu3b_74",visuallyHidden:"_visuallyHidden_unu3b_87"},qt=e=>{const n=typeof e=="string"?new Date(e):e;if(Number.isNaN(n.getTime()))return String(e??"");const s=String(n.getDate()).padStart(2,"0"),o=String(n.getMonth()+1).padStart(2,"0"),r=n.getFullYear();return`${s}.${o}.${r}`},rt=e=>{if(e==null||e==="")return;const n=e instanceof Date?e:new Date(e);if(Number.isNaN(n.getTime()))return;const s=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return`${s}-${o}-${r}`},Vt=e=>!e||["text","search","url","email","tel","password","number"].includes(e),Ht=({id:e,onChange:n=()=>{},onBlur:s,onFocus:o,name:r="",type:a="text",disabled:h=!1,required:i=!1,readOnly:u,width:d,value:m,defaultValue:f,elementKey:v,label:y="",contentOnly:k=!1,buttonColor:x="primary",buttonContent:N,selectedFileName:T,placeholder:w="",defaultContent:M="",min:H,max:A,role:S,"aria-describedby":q,"aria-autocomplete":O,hasErrors:E=!1,errorMessage:D="",noMargin:J=!1})=>{const Z=c.useRef(null),L=()=>`${e}-errorMessage`,P=d?{maxWidth:d}:{},U=a==="date"&&!h&&!u,g=()=>{var C;if(!U||!Z.current)return;document.activeElement!==Z.current&&Z.current.focus();const p=Z.current;(C=p.showPicker)==null||C.call(p)},$=p=>{g(),o==null||o(p)},X=(()=>{if(a==="file")return{};if(a==="date"){const C=m!==void 0?rt(m):void 0,_=m===void 0&&f!==void 0?rt(f):void 0;return m!==void 0?{value:C??""}:f!==void 0?{defaultValue:_}:{}}const p=C=>C instanceof Date?String(C.getTime()):C;return m!==void 0?{value:p(m)}:f!==void 0?{defaultValue:p(f)}:{}})(),G=B([E&&Q.hasErrors,a==="file"&&Q.visuallyHidden]),l={name:r,readOnly:u,disabled:h,required:i,type:a,role:S,id:e,min:H,max:A,onChange:n,onBlur:s,onFocus:$,placeholder:a==="file"?void 0:w,className:G||void 0,"aria-describedby":E&&D?L():q,"aria-invalid":E||void 0,"aria-autocomplete":Vt(a)?O:void 0,style:P,...X};if(k){const p=m??f??"",C=a==="date"?p?qt(p):M:String(p??"")||M;return t.jsxs("div",{className:B([Q.inputField,Q[a],J&&Q.noMargin]),children:[t.jsxs(ie,{htmlFor:e,children:[y,i&&t.jsx("img",{src:ae,alt:"",className:Q.requiredSymbol})]}),t.jsx("span",{children:C}),E&&D?t.jsx(fe,{id:L(),content:D}):null]})}return t.jsxs("div",{className:B([Q.inputField,Q[a],J&&Q.noMargin]),children:[t.jsxs(ie,{htmlFor:e,children:[y,i&&t.jsx("img",{src:ae,alt:"",className:Q.requiredSymbol}),a==="file"&&t.jsxs("div",{className:Q.fileInputContainer,children:[t.jsx("span",{className:Q.input,children:T}),N&&t.jsx(Ie,{color:x,inputType:"button",onClick:()=>{var p;return(p=Z.current)==null?void 0:p.click()},content:N})]})]}),t.jsx("input",{...l,ref:Z},v||e),E&&D?t.jsx(fe,{id:L(),content:D}):null]})},Ot={lead:"_lead_176gy_1"},Xt=({id:e,htmlTag:n="p",children:s})=>c.createElement(n,{className:Ot.lead,id:e||void 0},s),ot={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},Rt=({listStyle:e,compact:n=!1,ordered:s=!1,children:o})=>{const r=u=>he(u).map(m=>c.isValidElement(m)?c.cloneElement(m,{compact:n,key:`listItem-${m.key}`}):m),a=s?"ol":"ul",h=s?"decimal":"disc";return c.createElement(a,{className:`${ot.list} ${n?ot.compact:""}`,style:{["--listStyle"]:e||h}},r(c.Children.toArray(o)))},at={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Yt=({compact:e=!1,children:n})=>{const s=B([at.listItem,e&&at.compact]);return t.jsx("li",{className:s,children:n})},ze={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Wt=({fixed:e=!1,message:n=""})=>{const s=e?`${ze.loadingAnimation} ${ze.fixed}`:ze.loadingAnimation;return t.jsx("div",{className:s,children:n})},lt={LoadingAnimation2:"_LoadingAnimation2_onmfe_1",dot:"_dot_onmfe_10"},Zt=({ariaLabel:e="Laster inn"})=>{const n=[0,.15,.3];return t.jsx("div",{role:"img","aria-label":e,className:lt.LoadingAnimation2,children:n.map(s=>t.jsx("span",{className:lt.dot,style:{animationDelay:`${s}s`}},s))})},Gt="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20340.2%20412.5'%20style='enable-background:new%200%200%20340.2%20412.5;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23003045;}%20.st1{fill:%2389BAD6;}%20.st2{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3crect%20x='0'%20y='253.2'%20class='st0'%20width='340.2'%20height='105.8'/%3e%3crect%20x='0'%20class='st1'%20width='340.2'%20height='249.4'/%3e%3cg%3e%3cpolygon%20class='st2'%20points='138.5,189.9%20157,202%20157,118.8%20201.7,147.8%20201.7,106.6%20138.5,65.5%20'/%3e%3cpolygon%20class='st2'%20points='63.3,197.7%2063.3,153.5%20106.3,125.5%20106.3,30.2%2030.2,79.7%2030.2,219.2%20'/%3e%3cpolygon%20class='st2'%20points='208.9,101.9%20208.9,181.7%20238,200.5%20238,40.1%20175.9,80.4%20'/%3e%3cpolygon%20class='st2'%20points='113.4,30.2%20113.4,165.2%20131.4,153.5%20131.4,60.9%20131.4,41.9%20'/%3e%3cpolygon%20class='st2'%20points='259.5,110.2%20245.1,119.6%20245.1,195.9%20259.5,186.5%20309.9,219.2%20309.9,142.6%20'/%3e%3c/g%3e%3cpolygon%20class='st0'%20points='0,362.8%2075.6,412%2075.6,362.8%20'/%3e%3cg%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,277.5h6.2c7.3,0,11.6,2.9,11.6,11s-5.3,11-11.6,11h-6.2V277.5z%20M36.5,295.7c5.6,0,7.3-2.2,7.3-7.2%20c0-5-1.7-7.5-7.3-7.5h-2v14.6H36.5z'/%3e%3cpath%20class='st2'%20d='M51.9,277.5h4.3v21.9h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M65.5,291.2h-0.2v8.2H61v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L65.5,291.2z%20M67.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.6-3.5-4.3-3.5h-1.9v7.4H67.2z'/%3e%3cpath%20class='st2'%20d='M80,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6H94v3.6H80V277.5z'/%3e%3cpath%20class='st2'%20d='M97.8,277.5h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V277.5z'/%3e%3cpath%20class='st2'%20d='M122.8,281.1h-6.3v-3.6h16.8v3.6H127v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M134.7,288.4c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C139.1,299.9,134.7,296,134.7,288.4z%20M151.9,288.6c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C149.4,296.3,151.9,293.5,151.9,288.6z'/%3e%3cpath%20class='st2'%20d='M164.4,291.2h-0.2v8.2h-4.3v-21.9h6.2c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L164.4,291.2z%20M166.2,288.2c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H166.2z'/%3e%3cpath%20class='st2'%20d='M184.5,279.7l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L184.5,279.7z%20M183.6,291.7h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L183.6,291.7z'/%3e%3cpath%20class='st2'%20d='M201.7,281.1h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V281.1z'/%3e%3cpath%20class='st2'%20d='M215.3,277.5h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V277.5z'/%3e%3cpath%20class='st2'%20d='M237.7,281.1h-6.3v-3.6h16.8v3.6H242v18.3h-4.3V281.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st2'%20d='M30.2,312.9H44v3.6h-9.5v5.5h6.2v3.3h-6.2v9.6h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M45.6,323.9c0-7.6,5.4-11.5,10.8-11.5c6.4,0,10.8,3.9,10.8,11.5c0,7.6-5.4,11.5-10.8,11.5%20C50,335.3,45.6,331.4,45.6,323.9z%20M62.8,324c0-5.2-2.5-8-6.5-8c-3.9,0-6.5,2.8-6.5,7.7c0,5.2,2.5,8.1,6.5,8.1%20C60.3,331.7,62.8,328.9,62.8,324z'/%3e%3cpath%20class='st2'%20d='M75.3,326.7h-0.2v8.2h-4.3v-21.9H77c5.1,0,8.6,1.8,8.6,6.5c0,3.7-2.3,6.2-5.8,7l7.5,8.5h-5.1L75.3,326.7z%20M77,323.7c2.7,0,4.3-1.3,4.3-3.8c0-2.5-1.5-3.5-4.3-3.5h-1.9v7.4H77z'/%3e%3cpath%20class='st2'%20d='M97.6,312.9h6.5c6,0,8.5,2,8.5,5.5c0,3-1.7,4.5-4.1,5.1v0.1c2.6,0.5,4.5,1.7,4.5,5.1c0,3.5-2.5,6.2-8.6,6.2%20h-6.7V312.9z%20M104.3,321.9c3.2,0,4.1-1.1,4.1-2.9c0-1.8-1.2-2.6-4.1-2.6h-2.4v5.5H104.3z%20M104.4,331.3c3.2,0,4.3-1.1,4.3-3%20c0-1.9-1.1-3-4.3-3h-2.6v6H104.4z'/%3e%3cpath%20class='st2'%20d='M121.2,325.8l-7.2-12.9h4.7l4.8,9.2l4.9-9.2h4.2l-7.2,12.9v9h-4.3V325.8z'/%3e%3cpath%20class='st2'%20d='M133,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C137.3,335.3,133,331.5,133,323.9z'/%3e%3cpath%20class='st2'%20d='M153.8,323.9c0-7.6,4.8-11.5,10.7-11.5c3.6,0,5.7,1.1,6.9,2.1v4.8c-1.2-1.9-3.2-3.3-6.4-3.3%20c-4.4,0-6.9,2.7-6.9,7.7c0,5,2.4,8.3,6.3,8.3c1,0,2-0.1,2.7-0.4v-6.8h4.3v8.8c-1.5,1-3.9,1.8-7.2,1.8%20C158,335.3,153.8,331.5,153.8,323.9z'/%3e%3cpath%20class='st2'%20d='M175.7,312.9h4.3v9.8l8.7-9.8h4.4l-7.9,8.7l8.4,13.2h-4.8l-6.2-10.2l-2.6,2.8v7.4h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M193.8,312.9h4.4l5.2,15.4h0.1l5.3-15.4h4.1l-7.9,21.9h-3.5L193.8,312.9z'/%3e%3cpath%20class='st2'%20d='M219.3,315.1l-0.8-2.2h4.4l8.6,21.9h-4.5l-1.7-4.5h-8.1l-1.7,4.5h-4.1L219.3,315.1z%20M218.4,327.1h5.8l-2.3-6%20l-0.6-1.9l-0.6,1.9L218.4,327.1z'/%3e%3cpath%20class='st2'%20d='M234.1,312.9h4.3v18.3h8.2v3.7h-12.4V312.9z'/%3e%3cpath%20class='st2'%20d='M249.7,312.9h4.3v21.9h-4.3V312.9z'/%3e%3cpath%20class='st2'%20d='M263.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3cpath%20class='st2'%20d='M277,312.9h14v3.6h-9.7v5.3h6.5v3.4h-6.5v6h9.7v3.6h-14V312.9z'/%3e%3cpath%20class='st2'%20d='M299.4,316.5h-6.3v-3.6h16.8v3.6h-6.3v18.3h-4.3V316.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Ut="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2019.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='14%20337%20406%20110'%20style='enable-background:new%2014%20337%20406%20110;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;}%20.st1{fill:%23003045;}%20.st2{fill:%2389BAD6;}%20.st3{fill:%23FFFFFF;}%20.st4{display:inline;fill:%23FFFFFF;}%20.st5{display:inline;fill:%23D7D4D1;}%20%3c/style%3e%3cg%20id='skisse__x28_forstørret_x29_'%20class='st0'%3e%3c/g%3e%3cg%20id='logo'%3e%3crect%20id='XMLID_5_'%20x='14'%20y='337'%20class='st1'%20width='640'%20height='110'/%3e%3cg%20id='XMLID_82_'%3e%3crect%20id='XMLID_80_'%20x='14'%20y='337'%20class='st2'%20width='150'%20height='110'/%3e%3cg%20id='XMLID_74_'%3e%3cpolygon%20id='XMLID_79_'%20class='st3'%20points='75.1,420.7%2083.2,426.1%2083.2,389.4%20103,402.2%20103,384%2075.1,365.9%20'/%3e%3cpolygon%20id='XMLID_78_'%20class='st3'%20points='41.9,424.2%2041.9,404.7%2060.9,392.4%2060.9,350.3%2027.3,372.1%2027.3,433.7%20'/%3e%3cpolygon%20id='XMLID_77_'%20class='st3'%20points='106.1,381.9%20106.1,417.1%20118.9,425.4%20118.9,354.7%2091.6,372.5%20'/%3e%3cpolygon%20id='XMLID_76_'%20class='st3'%20points='64,350.3%2064,409.8%2071.9,404.7%2071.9,363.9%2071.9,355.5%20'/%3e%3cpolygon%20id='XMLID_75_'%20class='st3'%20points='128.4,385.6%20122.1,389.7%20122.1,423.4%20128.4,419.3%20150.7,433.7%20150.7,399.9%20'/%3e%3c/g%3e%3c/g%3e%3cg%20id='XMLID_6_'%3e%3crect%20id='XMLID_81_'%20x='164.5'%20y='367.5'%20class='st1'%20width='255.5'%20height='79.5'/%3e%3cg%20id='XMLID_7_'%3e%3cg%20id='XMLID_44_'%3e%3cpath%20id='XMLID_71_'%20class='st3'%20d='M187.3,385.6h4.7c5.5,0,8.7,2.2,8.7,8.2s-4,8.2-8.7,8.2h-4.7V385.6z%20M191.9,399.4%20c4.2,0,5.5-1.6,5.5-5.4c0-3.7-1.3-5.6-5.5-5.6h-1.5v11H191.9z'/%3e%3cpath%20id='XMLID_69_'%20class='st3'%20d='M203.5,385.6h3.2v16.5h-3.2V385.6z'/%3e%3cpath%20id='XMLID_66_'%20class='st3'%20d='M213.7,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L213.7,396z%20M215,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_64_'%20class='st3'%20d='M224.6,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_62_'%20class='st3'%20d='M238,385.6h3.2v7.4l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5H238V385.6z'/%3e%3cpath%20id='XMLID_60_'%20class='st3'%20d='M256.8,388.4H252v-2.7h12.6v2.7H260v13.7h-3.2V388.4z'/%3e%3cpath%20id='XMLID_57_'%20class='st3'%20d='M265.7,393.9c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C269,402.5,265.7,399.6,265.7,393.9z%20M278.7,394c0-3.9-1.9-6-4.8-6s-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C276.7,399.8,278.7,397.7,278.7,394z'/%3e%3cpath%20id='XMLID_54_'%20class='st3'%20d='M288,396h-0.2v6.1h-3.2v-16.5h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L288,396z%20M289.3,393.7c2,0,3.2-1,3.2-2.9c0-1.9-1.2-2.7-3.2-2.7h-1.5v5.5h1.5V393.7z'/%3e%3cpath%20id='XMLID_51_'%20class='st3'%20d='M303.1,387.3l-0.6-1.7h3.3l6.5,16.5H309l-1.3-3.4h-6.1l-1.3,3.4h-3.1L303.1,387.3z%20M302.5,396.4h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L302.5,396.4z'/%3e%3cpath%20id='XMLID_49_'%20class='st3'%20d='M316,388.4h-4.7v-2.7h12.6v2.7h-4.7v13.7H316V388.4z'/%3e%3cpath%20id='XMLID_47_'%20class='st3'%20d='M326.2,385.6h10.5v2.7h-7.3v4h4.9v2.5h-4.9v4.5h7.3v2.7h-10.5V385.6z'/%3e%3cpath%20id='XMLID_45_'%20class='st3'%20d='M343.1,388.4h-4.7v-2.7H351v2.7h-4.7v13.7h-3.2L343.1,388.4L343.1,388.4z'/%3e%3c/g%3e%3cg%20id='XMLID_8_'%3e%3cpath%20id='XMLID_42_'%20class='st3'%20d='M187.3,412.3h10.3v2.7h-7.1v4.1h4.7v2.4h-4.7v7.2h-3.2V412.3z'/%3e%3cpath%20id='XMLID_39_'%20class='st3'%20d='M198.8,420.5c0-5.7,4-8.6,8.1-8.6c4.8,0,8.1,3,8.1,8.6c0,5.7-4,8.6-8.1,8.6%20C202.1,429.1,198.8,426.2,198.8,420.5z%20M211.7,420.6c0-3.9-1.9-6-4.8-6c-2.9,0-4.8,2.1-4.8,5.8c0,3.9,1.9,6.1,4.8,6.1%20C209.8,426.4,211.7,424.3,211.7,420.6z'/%3e%3cpath%20id='XMLID_36_'%20class='st3'%20d='M221.1,422.6h-0.2v6.1h-3.2v-16.4h4.7c3.8,0,6.4,1.4,6.4,4.9c0,2.8-1.7,4.6-4.4,5.2l5.6,6.3%20h-3.8L221.1,422.6z%20M222.4,420.3c2,0,3.2-1,3.2-2.9s-1.2-2.7-3.2-2.7h-1.5v5.5L222.4,420.3L222.4,420.3z'/%3e%3cpath%20id='XMLID_32_'%20class='st3'%20d='M237.8,412.3h4.9c4.5,0,6.4,1.5,6.4,4.1c0,2.3-1.3,3.4-3.1,3.8l0,0c2,0.3,3.3,1.3,3.3,3.9%20s-1.8,4.7-6.5,4.7h-5L237.8,412.3L237.8,412.3z%20M242.8,419c2.4,0,3.1-0.8,3.1-2.2c0-1.4-0.9-2-3.1-2H241v4.2H242.8z%20M243,426.1%20c2.4,0,3.2-0.8,3.2-2.3c0-1.4-0.8-2.3-3.2-2.3h-2v4.5h2V426.1z'/%3e%3cpath%20id='XMLID_30_'%20class='st3'%20d='M255.5,422l-5.4-9.7h3.5l3.6,6.9l3.7-6.9h3.2l-5.4,9.7v6.8h-3.2L255.5,422L255.5,422z'/%3e%3cpath%20id='XMLID_28_'%20class='st3'%20d='M264.5,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C267.7,429.1,264.5,426.3,264.5,420.5z'/%3e%3cpath%20id='XMLID_26_'%20class='st3'%20d='M280,420.5c0-5.7,3.6-8.6,8-8.6c2.7,0,4.3,0.8,5.2,1.6v3.6c-0.9-1.4-2.4-2.4-4.8-2.4%20c-3.3,0-5.2,2-5.2,5.7s1.8,6.2,4.7,6.2c0.8,0,1.5-0.1,2.1-0.3v-5.1h3.2v6.6c-1.1,0.7-2.9,1.4-5.4,1.4%20C283.2,429.1,280,426.3,280,420.5z'/%3e%3cpath%20id='XMLID_24_'%20class='st3'%20d='M296.5,412.3h3.2v7.3l6.5-7.3h3.3l-5.9,6.6l6.3,9.9h-3.6l-4.7-7.7l-1.9,2.1v5.5h-3.2%20L296.5,412.3L296.5,412.3z'/%3e%3cpath%20id='XMLID_22_'%20class='st3'%20d='M310.1,412.3h3.3l3.9,11.5h0.1l4-11.5h3.1l-5.9,16.5H316L310.1,412.3z'/%3e%3cpath%20id='XMLID_19_'%20class='st3'%20d='M329.2,413.9l-0.6-1.7h3.3l6.5,16.5h-3.3l-1.3-3.4h-6.1l-1.3,3.4h-3.1L329.2,413.9z%20M328.6,423h4.4l-1.7-4.5l-0.5-1.4l-0.5,1.4L328.6,423z'/%3e%3cpath%20id='XMLID_17_'%20class='st3'%20d='M340.4,412.3h3.2V426h6.1v2.8h-9.3L340.4,412.3L340.4,412.3z'/%3e%3cpath%20id='XMLID_15_'%20class='st3'%20d='M352.1,412.3h3.2v16.5h-3.2V412.3z'/%3e%3cpath%20id='XMLID_13_'%20class='st3'%20d='M362.3,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L362.3,415L362.3,415z'/%3e%3cpath%20id='XMLID_11_'%20class='st3'%20d='M372.6,412.3h10.5v2.7h-7.3v3.9h4.9v2.5h-4.9v4.6h7.3v2.7h-10.5V412.3z'/%3e%3cpath%20id='XMLID_9_'%20class='st3'%20d='M389.4,415h-4.7v-2.7h12.6v2.7h-4.7v13.7h-3.2L389.4,415L389.4,415z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='hamburgermeny'%20class='st0'%3e%3crect%20id='XMLID_94_'%20x='578'%20y='386'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_95_'%20x='578'%20y='423'%20class='st4'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_96_'%20x='578'%20y='405'%20class='st4'%20width='60'%20height='6'/%3e%3c/g%3e%3cg%20id='hamburgermeny__hover'%20class='st0'%3e%3crect%20id='XMLID_97_'%20x='578'%20y='386'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_93_'%20x='578'%20y='423'%20class='st5'%20width='60'%20height='6'/%3e%3crect%20id='XMLID_91_'%20x='578'%20y='405'%20class='st5'%20width='60'%20height='6'/%3e%3c/g%3e%3c/svg%3e",Jt=e=>(e==null?void 0:e.logo)??"",Kt=e=>(e==null?void 0:e.logoPadding)??"",Qt=e=>(e==null?void 0:e.appName)??"",R={navigationBarContainer:"_navigationBarContainer_n1cc0_1",mainContentLink:"_mainContentLink_n1cc0_1",compact:"_compact_n1cc0_30",navigationBar:"_navigationBar_n1cc0_1",preventStacking:"_preventStacking_n1cc0_63",logoContainer:"_logoContainer_n1cc0_82",childElements:"_childElements_n1cc0_91",menuToggle:"_menuToggle_n1cc0_97",hamburgerIcon:"_hamburgerIcon_n1cc0_125",active:"_active_n1cc0_161",dropdownContainer:"_dropdownContainer_n1cc0_170",dropdown:"_dropdown_n1cc0_170",primaryList:"_primaryList_n1cc0_195",secondaryList:"_secondaryList_n1cc0_196",line:"_line_n1cc0_392"},Be=({listItem:e})=>typeof e=="string"?t.jsx("li",{children:t.jsx("span",{children:e})}):typeof e=="object"?t.jsx("li",{children:t.jsx("a",{href:e.href,children:e.name})}):null,en=({primaryListItems:e=[],secondaryListItems:n=[],logoLink:s="",logoLinkTitle:o,openLogoLinkInNewTab:r,theme:a,compact:h,mainContentId:i,preventChildElementStacking:u=!1,children:d})=>{const[m,f]=c.useState(!1),v=()=>f(!m),y=A=>({padding:Kt(A)}),k=(A=e,S=0)=>A.length?t.jsx("ul",{className:R.primaryList,children:A.map((q,O)=>{const E=`${S}-${O}`;return q.listItems?t.jsxs("li",{children:[t.jsx("span",{children:q.name}),k(q.listItems,S+1)]},E):t.jsx(Be,{listItem:q},E)})}):null,x=()=>n.length?t.jsx("ul",{className:R.secondaryList,children:n.map(A=>t.jsx(Be,{listItem:A},A.name))}):null,N=(A,S)=>{const q=Jt(a),O=Qt(a),E=A&&S?"":q&&O?`${O} logo`:"DIBK logo",D=q?t.jsx("img",{alt:E,src:q,style:y(a)}):t.jsx("img",{alt:E,src:h?Ut:Gt});return A!=null&&A.length?t.jsx("a",{href:A,title:S,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:D}):D},T=e.length>0||n.length>0,w=c.useId(),M=c.useId(),H=c.useId();return t.jsxs("div",{className:B([h&&R.compact,R.navigationBarContainer]),children:[i&&t.jsx("a",{id:w,href:`#${i}`,className:R.mainContentLink,children:t.jsx("span",{id:M,children:"Hopp til hovedinnhold"})}),t.jsxs("div",{className:B([R.navigationBar,u&&R.preventStacking]),children:[t.jsx("div",{className:R.logoContainer,children:N(s,o)}),d&&t.jsx("div",{className:R.childElements,children:d}),T&&t.jsxs("button",{type:"button",className:`${R.menuToggle} ${m?R.active:""}`,onClick:v,"aria-expanded":m?"true":"false","aria-controls":"main-menu-dropdown",children:[!h&&"Meny",t.jsxs("span",{className:R.hamburgerIcon,children:[t.jsx("span",{className:R.line}),t.jsx("span",{className:R.line}),t.jsx("span",{className:R.line})]})]})]}),T&&t.jsx("div",{className:B([R.dropdownContainer,m&&R.active]),children:t.jsxs("div",{id:H,className:R.dropdown,children:[k(),x()]})})]})},Te={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},tn=({noMargin:e=!1,noPadding:n=!1,children:s})=>{const o=[Te.paper,e&&Te.noMargin,n&&Te.noPadding].filter(Boolean).join(" ");return t.jsx("div",{className:o,children:s})},ct={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},nn=({progress:e=0,hasErrors:n=!1})=>t.jsx("div",{className:`${ct.progressBar} ${n?ct.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Le={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},it=({size:e="10px",checked:n=!1,disabled:s=!1,hasErrors:o=!1})=>{const r={height:e,width:e},a=[Le.radioButtonIcon,n&&Le.checked,s&&Le.disabled,o&&Le.hasErrors].filter(Boolean).join(" ");return t.jsx("span",{className:a,style:r})},ve={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},De=({checked:e=!1,disabled:n=!1,required:s=!1,requiredGroup:o=!1,id:r,name:a="",onChange:h,contentOnly:i=!1,hasErrors:u=!1,inputValue:d,tabIndex:m,children:f,"aria-controls":v,"aria-describedby":y})=>{const k=[ve.radioButtonInput,e&&ve.checked,n&&ve.disabled,u&&ve.hasErrors].filter(Boolean).join(" "),x={checked:e,disabled:n,hasErrors:!i&&u},N={id:r,name:a,type:"radio",value:d,checked:e,disabled:n,required:s||o,onChange:h,tabIndex:m??void 0,"aria-controls":v,"aria-invalid":u?"true":void 0,"aria-describedby":y};return t.jsxs("label",{htmlFor:r,className:k,children:[!i&&t.jsxs(t.Fragment,{children:[t.jsx(it,{...x}),t.jsx("input",{...N})]}),t.jsxs("span",{className:ve.labelText,children:[f,s&&t.jsx("img",{src:ae,alt:"",className:ve.requiredSymbol})]})]})},dt={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},sn=({legend:e,legendSize:n,required:s=!1,compact:o=!1,children:r})=>{const a=h=>he(h).map(u=>{var d;return c.isValidElement(u)&&((d=u.type)==null?void 0:d.displayName)==="RadioButtonListItem"?c.cloneElement(u,{requiredGroup:s,compact:o,key:`radioButtonListItem-${u.key}`}):u});return t.jsxs("fieldset",{className:dt.radioButtonList,children:[!!(e!=null&&e.length)&&t.jsxs("legend",{children:[n?t.jsx(Me,{size:n,children:e}):e,s&&t.jsx("img",{src:ae,alt:"",className:dt.requiredSymbol})]}),a(c.Children.toArray(r))]})},be={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},rn=({inputValue:e,checked:n=!1,disabled:s=!1,required:o=!1,requiredGroup:r=!1,name:a="",id:h,onChange:i,contentOnly:u=!1,compact:d=!1,hasErrors:m=!1,"aria-controls":f,"aria-describedby":v,children:y})=>{const k=B([be.radioButtonListItem,n&&be.checked,s&&be.disabled,d&&be.compact,u&&be.contentOnly,m&&be.hasErrors]),x={onChange:i,inputValue:e,checked:n,disabled:s,required:o,requiredGroup:r,contentOnly:u,hasErrors:m,"aria-controls":f,"aria-describedby":v,id:h,name:a};return t.jsx("div",{className:k,children:t.jsx(De,{...x,children:y})})},ee={select:"_select_vw2qd_1",requiredSymbol:"_requiredSymbol_vw2qd_1",selectContainer:"_selectContainer_vw2qd_8",small:"_small_vw2qd_11",selectListArrow:"_selectListArrow_vw2qd_11",multipleSelectDropdown:"_multipleSelectDropdown_vw2qd_50",multipleSelectElement:"_multipleSelectElement_vw2qd_60",hasErrors:"_hasErrors_vw2qd_115"},ut=e=>{const{id:n,name:s="",required:o=!1,disabled:r=!1,options:a=[],width:h,label:i="",contentOnly:u=!1,keyAsContent:d=!1,placeholder:m="",placeholderValue:f="",defaultContent:v="",role:y,"aria-describedby":k,hasErrors:x=!1,errorMessage:N="",size:T="medium"}=e,[w,M]=c.useState(!1),H=c.useRef(null),A=c.useCallback(g=>{g&&Ye(g)},[]),S=()=>M(!1);c.useEffect(()=>{const g=X=>{X.key==="Escape"&&S()},$=X=>{H.current&&!H.current.contains(X.target)&&S()};return document.addEventListener("mousedown",$),document.addEventListener("keydown",g),()=>{document.removeEventListener("mousedown",$),document.removeEventListener("keydown",g)}},[]);const q=g=>typeof g=="object"?{key:g.key,value:g.value}:{key:g,value:g},O=g=>{const $=a.map(q).find(X=>X.value===g||X.key===g);return $?$.key??$.value:g},E=g=>Array.isArray(g)?g:g==null?[]:[g],D=()=>e.value!==void 0?E(e.value):e.defaultValue!==void 0?E(e.defaultValue):[],J=()=>{const g=D();return g.length===0?m||v||"":g.map(O).join(", ")},Z=g=>{const $=D(),G=$.includes(g)?$.filter(l=>l!==g):[...$,g];e.multiple&&e.onChange(G)},L=()=>{const g=D();return a.map($=>{const{key:X,value:G}=q($),l=g.includes(G),p=`${n}-${String(G)}`;return t.jsx(Ge,{id:p,value:G,checked:l,onChange:()=>Z(G),children:X},String(G))})},P=()=>`${n}-errorMessage`;if(u){const g=D(),$=g.length===0?v:d?g.map(O).join(", "):g.join(", ");return t.jsxs("div",{className:ee.select,children:[t.jsx(ie,{htmlFor:n,children:i}),t.jsx("span",{children:$})]})}const U=g=>{const $=a.map(q).find(X=>String(X.value)===g);return $?$.value:g};return t.jsxs("div",{className:ee.select,children:[t.jsxs(ie,{htmlFor:n,children:[i,o&&t.jsx("img",{src:ae,alt:"",className:ee.requiredSymbol})]}),t.jsxs("div",{className:B([ee.selectContainer,T==="small"&&ee.small]),style:h?{maxWidth:h}:void 0,children:[t.jsx("span",{className:ee.selectListArrow}),e.multiple?t.jsxs("div",{ref:H,children:[t.jsx("button",{type:"button",id:n,"aria-haspopup":"listbox","aria-expanded":w,onClick:()=>M(g=>!g),className:B([ee.multipleSelectElement,T==="small"&&ee.small]),disabled:r,children:J()}),w&&t.jsx("div",{ref:A,className:ee.multipleSelectDropdown,role:"listbox","aria-multiselectable":"true","aria-labelledby":n,children:t.jsx(Ze,{compact:!0,children:L()})})]}):t.jsxs("select",{name:s,required:o,disabled:r,onChange:g=>e.onChange(U(g.target.value)),id:n,role:y,className:B([x&&ee.hasErrors,T==="small"&&ee.small]),"aria-describedby":x&&N?P():k,"aria-invalid":x||void 0,style:h?{maxWidth:h}:void 0,...e.value!==void 0?{value:e.value}:e.defaultValue!==void 0?{defaultValue:e.defaultValue}:{},children:[m&&t.jsx("option",{value:f,disabled:!0,children:m}),a.map(g=>{const{key:$,value:X}=q(g);return t.jsx("option",{value:String(X),children:$},String(X))})]})]}),t.jsx(fe,{id:P(),content:N})]})},re={wizardTopnavItem:"_wizardTopnavItem_5ar16_1",wizardTopnavItemContent:"_wizardTopnavItemContent_5ar16_4",vertical:"_vertical_5ar16_7",stepNumber:"_stepNumber_5ar16_24",stepName:"_stepName_5ar16_36",active:"_active_5ar16_46",finished:"_finished_5ar16_46",hasErrors:"_hasErrors_5ar16_46",horizontal:"_horizontal_5ar16_64"},on="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20aria-label='Ferdig'%20style='fill:%20rgb(23,%20121,%2018);'%3e%3cmask%20id='mask0_1089_7430'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='20'%20height='20'%20style='mask-type:%20alpha;'%3e%3crect%20width='20'%20height='20'%3e%3c/rect%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1089_7430)'%3e%3cpath%20d='M5.71427%208.57149L3.80951%2010.4762L8.57141%2015.2382L17.1428%206.66672L15.2381%204.76196L8.57141%2011.4286L5.71427%208.57149Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",ht=({step:e,index:n,activeStepId:s,direction:o="vertical"})=>{const r=s===e.id,a=o==="vertical",h=B([re.wizardTopnavItem,r&&re.active,e.finished&&re.finished,e.hasErrors&&re.hasErrors,re[o]]),i=r?"step":void 0,u=()=>t.jsxs(t.Fragment,{children:[t.jsx("span",{className:re.stepNumber,children:n+1}),t.jsx("span",{className:re.stepName,children:e.name}),a&&e.finished&&!r&&t.jsx("img",{src:on,alt:"",className:re.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?t.jsx("li",{className:h,children:t.jsx($e.Link,{to:e.link,"aria-current":i,className:re.wizardTopnavItemContent,children:u()})}):t.jsx("li",{className:h,children:t.jsx("span",{"aria-current":i,className:re.wizardTopnavItemContent,children:u()})})},F={table:"_table_173le_1",thButton:"_thButton_173le_30",sortable:"_sortable_173le_41",label:"_label_173le_51",sortIndicators:"_sortIndicators_173le_55",sortArrow:"_sortArrow_173le_62",activeArrow:"_activeArrow_173le_65",evenRow:"_evenRow_173le_69",oddRow:"_oddRow_173le_72",selectionHeader:"_selectionHeader_173le_83",selectionCell:"_selectionCell_173le_89",selectionControl:"_selectionControl_173le_95",rowClickable:"_rowClickable_173le_102",srOnly:"_srOnly_173le_109",pagination:"_pagination_173le_120",paginationControls:"_paginationControls_173le_127",pageSizeSelector:"_pageSizeSelector_173le_135",pageButton:"_pageButton_173le_139",pageInfo:"_pageInfo_173le_157"},an=({columns:e,data:n,caption:s,getRowId:o,selectionType:r,selectionLabel:a="Velg rad",selectedRowId:h,onSelect:i,selectedRowIds:u,onSelectMany:d,onRowClick:m,pageSize:f,page:v,defaultPage:y=1,onPageChange:k,pageSizeOptions:x,defaultPageSize:N,onPageSizeChange:T})=>{const[w,M]=c.useState(null),H=c.useId(),[A,S]=c.useState(y),[q,O]=c.useState(()=>{if(f===void 0){if(N&&N>0)return N;if(x!=null&&x.length)return x[0]}});c.useEffect(()=>{const _=e.find(j=>j.sortable);M(_?{headerKey:_.key,direction:"asc"}:null)},[e]);const E=c.useMemo(()=>{const _=new Map;for(const j of e)_.set(j.key,j);return _},[e]),D=c.useMemo(()=>{if(!w)return n;const _=E.get(w.headerKey);if(!_)return n;const j=_.sortAccessor??_.accessor;if(!j)return n;const I=[...n];return I.sort((K,te)=>{const z=j(K),Y=j(te);if(z==null||Y==null)return 0;if(typeof z=="number"&&typeof Y=="number")return w.direction==="asc"?z-Y:Y-z;if(z instanceof Date&&Y instanceof Date)return w.direction==="asc"?z.getTime()-Y.getTime():Y.getTime()-z.getTime();const de=String(z),ue=String(Y);return w.direction==="asc"?de.localeCompare(ue,void 0,{numeric:!0}):ue.localeCompare(de,void 0,{numeric:!0})}),I},[n,w,E]),J=_=>{M(j=>!j||j.headerKey!==_?{headerKey:_,direction:"asc"}:{headerKey:_,direction:j.direction==="asc"?"desc":"asc"})},Z=(_,j)=>{if(j)return(w==null?void 0:w.headerKey)!==_?"none":w.direction==="asc"?"ascending":"descending"},L=(_,j)=>{const I=o==null?void 0:o(_,j);if(I==null||I===""){const K=n.indexOf(_);return K===-1?j:K}return I},P=c.useMemo(()=>r!=="multiple"?new Set:new Set(u??[]),[u,r]),U=c.useMemo(()=>{const _=f??q;return!_||_<=0?D.length||n.length||1:_},[f,q,D.length,n.length]),g=c.useMemo(()=>Math.max(1,Math.ceil(D.length/U)),[D.length,U]),$=c.useMemo(()=>{const _=v??A;return!Number.isFinite(_)||_<1?1:_>g?g:_},[v,A,g]);c.useEffect(()=>{v===void 0&&$>g&&S(g)},[$,g,v]);const X=c.useMemo(()=>{if(U>=D.length)return D;const _=($-1)*U;return D.slice(_,_+U)},[D,$,U]),G=_=>{const j=Math.min(Math.max(_,1),g);v!==void 0?k==null||k(j):S(j)},l=_=>{const j=_>0?Math.floor(_):1;f!==void 0?T==null||T(j):(O(j),S(1))},p=g>1,C=!!(x!=null&&x.length);return t.jsxs(t.Fragment,{children:[t.jsxs("table",{className:F.table,children:[s&&t.jsx("caption",{children:s}),t.jsx("thead",{children:t.jsxs("tr",{children:[r&&t.jsx("th",{className:F.selectionHeader,"aria-label":a,children:t.jsx("span",{className:F.srOnly,children:a})}),e.map(({key:_,label:j,sortable:I,ariaLabel:K})=>{const te=(w==null?void 0:w.headerKey)===_,z=te&&w.direction==="asc",Y=te&&w.direction==="desc";return t.jsx("th",{"aria-sort":Z(_,I),scope:"col",children:I?t.jsxs("button",{type:"button",className:`${F.thButton} ${F.sortable}`,onClick:()=>J(_),"aria-label":`${K??j}: sort ${te&&z?"descending":"ascending"}`,children:[t.jsx("span",{className:F.label,children:j}),t.jsxs("span",{className:F.sortIndicators,"aria-hidden":"true",children:[t.jsx("span",{className:`${F.sortArrow} ${z?F.activeArrow:""}`,children:"▲"}),t.jsx("span",{className:`${F.sortArrow} ${Y?F.activeArrow:""}`,children:"▼"})]})]}):t.jsx("span",{className:F.thButton,children:t.jsx("span",{className:F.label,children:j})})},_)})]})}),t.jsx("tbody",{children:X.map((_,j)=>{const I=L(_,j),K=`${H}-${I}`,te=r==="single"&&h===I,z=r==="multiple"&&P.has(I),ue=!!m||r==="single"&&!!i||r==="multiple"&&!!d,gn=()=>{if(r==="single")i==null||i(_);else if(r==="multiple"&&d){const V=new Set(P);V.has(I)?V.delete(I):V.add(I);const ce=n.filter((Fe,qe)=>{const Ve=L(Fe,qe);return V.has(Ve)});d(ce)}m==null||m(_)};return t.jsxs("tr",{className:B([j%2===0?F.evenRow:F.oddRow,ue&&F.rowClickable]),onClick:ue?gn:void 0,children:[r==="single"&&t.jsx("td",{className:F.selectionCell,children:t.jsx("button",{type:"button",className:F.selectionControl,onClick:V=>V.stopPropagation(),children:t.jsx(De,{id:K,name:H,inputValue:String(I),checked:te,onChange:V=>{V==null||V.stopPropagation(),i==null||i(_)},"aria-label":a})})}),r==="multiple"&&t.jsx("td",{className:F.selectionCell,children:t.jsx("button",{type:"button",className:F.selectionControl,onClick:V=>V.stopPropagation(),children:t.jsx(Ne,{id:K,value:String(I),checked:z,onChange:V=>{if(V==null||V.stopPropagation(),!d)return;const ce=new Set(P);ce.has(I)?ce.delete(I):ce.add(I);const Fe=n.filter((qe,Ve)=>{const fn=L(qe,Ve);return ce.has(fn)});d(Fe)},"aria-label":a})})}),e.map(V=>{var ce;return t.jsx("td",{children:V.render?V.render(_):String(((ce=V.accessor)==null?void 0:ce.call(V,_))??"")},V.key)})]},I)})})]}),(p||C)&&t.jsxs("div",{className:F.paginationControls,children:[C&&t.jsx("div",{className:F.pageSizeSelector,children:t.jsx(ut,{id:`${H}-page-size`,label:"Rader per side",options:x,value:U,onChange:_=>l(Number(_)),width:"120px",size:"small"})}),p&&t.jsxs("div",{className:F.pagination,children:[t.jsx("button",{type:"button",className:F.pageButton,onClick:()=>G($-1),disabled:$<=1,"aria-label":"Forrige side",children:"Forrige"}),t.jsxs("span",{className:F.pageInfo,children:["Side ",$," av ",g]}),t.jsx("button",{type:"button",className:F.pageButton,onClick:()=>G($+1),disabled:$>=g,"aria-label":"Neste side",children:"Neste"})]})]})]})},oe={tabs:"_tabs_r5vii_1",tabList:"_tabList_r5vii_5",tab:"_tab_r5vii_1",active:"_active_r5vii_41",disabled:"_disabled_r5vii_47",tabLabel:"_tabLabel_r5vii_55",tabAmount:"_tabAmount_r5vii_59",tabPanels:"_tabPanels_r5vii_66",tabPanel:"_tabPanel_r5vii_66",hidden:"_hidden_r5vii_74"},je=({children:e,defaultIndex:n=0,onChange:s,className:o})=>{const[r,a]=c.useState(n),h=c.useId(),i=c.useMemo(()=>h.replace(/:/g,""),[h]),u=d=>{a(d),s==null||s(d)};return t.jsx("div",{className:B([oe.tabs,o]),children:c.Children.map(e,d=>c.isValidElement(d)?d.type===_t?c.cloneElement(d,{activeIndex:r,setActiveIndex:u,baseId:i}):d.type===mt?c.cloneElement(d,{activeIndex:r,baseId:i}):d:null)})},_t=({children:e,activeIndex:n=0,setActiveIndex:s,baseId:o})=>{const r=c.useMemo(()=>c.Children.toArray(e).filter(i=>c.isValidElement(i)),[e]),a=r.length,h=(i,u)=>{if(!s||a===0)return;let d=u;switch(i.key){case"ArrowRight":i.preventDefault(),d=(u+1)%a;break;case"ArrowLeft":i.preventDefault(),d=(u-1+a)%a;break;case"Home":i.preventDefault(),d=0;break;case"End":i.preventDefault(),d=a-1;break;default:return}s(d)};return t.jsx("div",{className:oe.tabList,role:"tablist",children:r.map((i,u)=>{if(!c.isValidElement(i))return null;const d=`${o}-tab-${u}`,m=`${o}-panel-${u}`,f=u===n;return c.cloneElement(i,{tabId:d,panelId:m,isActive:f,onSelect:()=>s==null?void 0:s(u),onKeyDown:v=>h(v,u)})})})},ln=({children:e,amount:n,isActive:s,onSelect:o,onClick:r,onKeyDown:a,tabId:h,panelId:i,className:u,...d})=>{const m=B([oe.tab,s&&oe.active,d.disabled&&oe.disabled,u]),f=y=>{r==null||r(y),!y.defaultPrevented&&(o==null||o())},v=y=>{a==null||a(y)};return t.jsxs("button",{...d,id:h,role:"tab",type:"button","aria-selected":s,"aria-controls":i,className:m,onClick:f,onKeyDown:v,children:[t.jsx("span",{className:oe.tabLabel,children:e}),n&&t.jsx("span",{className:oe.tabAmount,children:n})]})},mt=({children:e,activeIndex:n=0,baseId:s})=>t.jsx("div",{className:oe.tabPanels,children:c.Children.map(e,(o,r)=>{if(!c.isValidElement(o))return null;const a=`${s}-tab-${r}`,h=`${s}-panel-${r}`;return c.cloneElement(o,{isActive:r===n,tabId:a,panelId:h})})}),cn=({children:e,isActive:n,tabId:s,panelId:o})=>t.jsx("div",{role:"tabpanel",id:o,"aria-labelledby":s,className:B([oe.tabPanel,!n&&oe.hidden]),hidden:!n,children:e});je.List=_t,je.Tab=ln,je.Panels=mt,je.Panel=cn;const dn=e=>{let n="";const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=s.length;for(let r=0;r<e;r++)n+=s.charAt(Math.floor(Math.random()*o));return n},Ae={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},un=({id:e,onChange:n,onBlur:s,name:o="",required:r=!1,readOnly:a,disabled:h,width:i,resize:u="both",value:d,defaultValue:m,elementKey:f,rows:v,label:y="",contentOnly:k=!1,placeholder:x="",defaultContent:N="","aria-describedby":T,hasErrors:w=!1,errorMessage:M=""})=>{const H=()=>`${e}-errorMessage`,A=!(d!=null&&d.length)&&(m!=null&&m.length)?m:void 0,S=f||`${e}-${dn(6)}`,q={...i&&{maxWidth:i},...u&&{resize:u}},O={name:o,readOnly:a,disabled:h,required:r,id:e,onChange:n,onBlur:s,value:A?void 0:d,defaultValue:A||void 0,placeholder:x,rows:v?parseInt(v,10):void 0,className:w?Ae.hasErrors:"","aria-describedby":w&&M?H():T,"aria-invalid":w?"true":void 0,style:q};return t.jsxs("div",{className:Ae.textarea,children:[t.jsxs(ie,{htmlFor:e,children:[y,r&&t.jsx("img",{src:ae,alt:"",className:Ae.requiredSymbol})]}),k?t.jsx("span",{children:d||m||N}):t.jsx("textarea",{...O},S),t.jsx(fe,{id:H(),content:M})]})},hn=({theme:e,children:n})=>{const s=yt(e),o=wt(s);return jt("theme-provider",`:root {${o}}`),n},_n={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},mn=({id:e,htmlTag:n="button",showText:s,hideText:o,buttonProps:r={},isOpen:a=!1})=>c.createElement(n,{...r,className:_n.toggleNavigationButton,id:e||void 0},a?o:s),Pe={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},pn=({steps:e,activeStepId:n,direction:s="vertical","aria-label":o})=>{const r=Object.keys(e),h=`I dette skjemaet er det totalt ${r.length} steg som du skal gå igjennom`,i=o!=null&&o.length?o:h;return t.jsx("nav",{"aria-label":i,className:B([Pe.wizardTopnavContainer,Pe[s]]),children:t.jsx("ol",{className:Pe.wizardTopnav,children:r.map((u,d)=>t.jsx(ht,{step:e[u],activeStepId:n,direction:s,index:d},u))})})};b.Accordion=$t,b.Button=Ie,b.CheckBoxIcon=Ee,b.CheckBoxInput=Ne,b.CheckBoxList=Ze,b.CheckBoxListItem=Ge,b.Container=Ue,b.ContentBox=Et,b.DescriptionDetails=Nt,b.DescriptionList=Mt,b.DescriptionTerm=St,b.Dialog=Bt,b.DragAndDropFileInput=Tt,b.ErrorBox=At,b.ErrorMessage=fe,b.Footer=Ft,b.Header=Me,b.InfoBox=st,b.InputField=Ht,b.Label=ie,b.Lead=Xt,b.List=Rt,b.ListItem=Yt,b.LoadingAnimation=Wt,b.LoadingAnimation2=Zt,b.NavigationBar=en,b.NavigationBarListItem=Be,b.Paper=tn,b.ProgressBar=nn,b.RadioButtonIcon=it,b.RadioButtonInput=De,b.RadioButtonList=sn,b.RadioButtonListItem=rn,b.Select=ut,b.Table=an,b.Tabs=je,b.Textarea=un,b.ThemeProvider=hn,b.ToggleNavigationButton=mn,b.WizardNavigation=pn,b.WizardNavigationStep=ht,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
34
23
  //# sourceMappingURL=index.umd.js.map