dibk-design 9.0.2 → 9.1.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/README.md +37 -7
- package/dist/dibk-design.css +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.es.js +1393 -1369
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +10 -11
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(C,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(C=typeof globalThis<"u"?globalThis:C||self,b(C.DibkDesign={},C.React2))})(this,function(C,b){"use strict";function Jt(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 f=Jt(b);var $e={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
|
|
9
|
+
*/var it;function Gt(){if(it)return xe;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 xe.Fragment=t,xe.jsx=n,xe.jsxs=n,xe}var be={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
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
|
|
17
|
+
*/var lt;function Kt(){return lt||(lt=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===M?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case y:return"Fragment";case p:return"Profiler";case E:return"StrictMode";case I:return"Suspense";case $:return"SuspenseList";case N:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case m:return"Portal";case w:return(_.displayName||"Context")+".Provider";case x:return(_._context.displayName||"Context")+".Consumer";case j:var L=_.render;return _=_.displayName,_||(_=L.displayName||L.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case P:return L=_.displayName||null,L!==null?L:e(_.type)||"Memo";case T:L=_._payload,_=_._init;try{return e(_(L))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var L=!1}catch{L=!0}if(L){L=console;var R=L.error,H=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return R.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",H),t(_)}}function a(_){if(_===y)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===T)return"<...>";try{var L=e(_);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function r(){var _=X.A;return _===null?null:_.getOwner()}function s(){return Error("react-stack-top-frame")}function c(_){if(te.call(_,"key")){var L=Object.getOwnPropertyDescriptor(_,"key").get;if(L&&L.isReactWarning)return!1}return _.key!==void 0}function d(_,L){function R(){ve||(ve=!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)",L))}R.isReactWarning=!0,Object.defineProperty(_,"key",{get:R,configurable:!0})}function i(){var _=e(this.type);return k[_]||(k[_]=!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.")),_=this.props.ref,_!==void 0?_:null}function l(_,L,R,H,se,J,at,st){return R=J.ref,_={$$typeof:v,type:_,key:L,props:J,_owner:se},(R!==void 0?R:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:i}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:at}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:st}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function u(_,L,R,H,se,J,at,st){var V=L.children;if(V!==void 0)if(H)if(S(V)){for(H=0;H<V.length;H++)g(V[H]);Object.freeze&&Object.freeze(V)}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 g(V);if(te.call(L,"key")){V=e(_);var ye=Object.keys(L).filter(function(ha){return ha!=="key"});H=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",W[V+H]||(ye=0<ye.length?"{"+ye.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} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,H,V,ye,V),W[V+H]=!0)}if(V=null,R!==void 0&&(n(R),V=""+R),c(L)&&(n(L.key),V=""+L.key),"key"in L){R={};for(var ot in L)ot!=="key"&&(R[ot]=L[ot])}else R=L;return V&&d(R,typeof _=="function"?_.displayName||_.name||"Unknown":_),l(_,V,J,se,r(),R,at,st)}function g(_){typeof _=="object"&&_!==null&&_.$$typeof===v&&_._store&&(_._store.validated=1)}var h=b,v=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),X=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.prototype.hasOwnProperty,S=Array.isArray,D=console.createTask?console.createTask:function(){return null};h={"react-stack-bottom-frame":function(_){return _()}};var ve,k={},z=h["react-stack-bottom-frame"].bind(h,s)(),q=D(a(s)),W={};be.Fragment=y,be.jsx=function(_,L,R,H,se){var J=1e4>X.recentlyCreatedOwnerStacks++;return u(_,L,R,!1,H,se,J?Error("react-stack-top-frame"):z,J?D(a(_)):q)},be.jsxs=function(_,L,R,H,se){var J=1e4>X.recentlyCreatedOwnerStacks++;return u(_,L,R,!0,H,se,J?Error("react-stack-top-frame"):z,J?D(a(_)):q)}}()),be}var ct;function Zt(){return ct||(ct=1,process.env.NODE_ENV==="production"?$e.exports=Gt():$e.exports=Kt()),$e.exports}var o=Zt();const B=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Qt=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),{}),en=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),{}),tn=e=>({...Qt(e),...en(e)}),nn=(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)},rn=e=>Object.entries(e).map(([t,n])=>`${t}: ${n};`).join(""),le=e=>{const t=[];return b.Children.forEach(e,n=>{if(b.isValidElement(n)){const a=n;if(a.type===b.Fragment){const r=le(a.props.children);t.push(...r)}else t.push(b.cloneElement(a,{...a.props}))}else t.push(n)}),t},an=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()},sn=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(n=>!!n),ut=e=>{an(e);const t=sn(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())})},U={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"},on=({title:e,color:t="default",expanded:n=!1,onToggleExpand:a,buttonProps:r,noMargin:s=!1,initialized:c,children:d,...i})=>{const[l,u]=b.useState(n),[g,h]=b.useState(c),v=()=>{u(!l),h(!0),a&&a()};b.useEffect(()=>{u(n)},[n]);const m=()=>o.jsxs("button",{...r,className:U.panel,onClick:v,"aria-expanded":l?"true":"false",children:[o.jsx("span",{className:U.panelText,children:e}),o.jsx("span",{className:`${U.panelChevron} ${l?U.expanded:""}`})]}),y=B([U.accordion,t&&U[t],!s&&U.margin,i.className]);return o.jsxs("div",{className:y,...i,children:[o.jsx(m,{}),o.jsx("div",{className:`${U.content} ${g?U.initialized:""} ${l?U.expanded:""}`,children:d})]})};var we={},ht;function ln(){if(ht)return we;ht=1,Object.defineProperty(we,"__esModule",{value:!0}),we.parse=c,we.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,v){const m=new s,y=h.length;if(y<2)return m;const E=(v==null?void 0:v.decode)||u;let p=0;do{const x=h.indexOf("=",p);if(x===-1)break;const w=h.indexOf(";",p),j=w===-1?y:w;if(x>j){p=h.lastIndexOf(";",x-1)+1;continue}const I=d(h,p,x),$=i(h,x,I),P=h.slice(I,$);if(m[P]===void 0){let T=d(h,x+1,j),N=i(h,j,T);const M=E(h.slice(T,N));m[P]=M}p=j+1}while(p<y);return m}function d(h,v,m){do{const y=h.charCodeAt(v);if(y!==32&&y!==9)return v}while(++v<m);return m}function i(h,v,m){for(;v>m;){const y=h.charCodeAt(--v);if(y!==32&&y!==9)return v+1}return m}function l(h,v,m){const y=(m==null?void 0:m.encode)||encodeURIComponent;if(!e.test(h))throw new TypeError(`argument name is invalid: ${h}`);const E=y(v);if(!t.test(E))throw new TypeError(`argument val is invalid: ${v}`);let p=h+"="+E;if(!m)return p;if(m.maxAge!==void 0){if(!Number.isInteger(m.maxAge))throw new TypeError(`option maxAge is invalid: ${m.maxAge}`);p+="; Max-Age="+m.maxAge}if(m.domain){if(!n.test(m.domain))throw new TypeError(`option domain is invalid: ${m.domain}`);p+="; Domain="+m.domain}if(m.path){if(!a.test(m.path))throw new TypeError(`option path is invalid: ${m.path}`);p+="; Path="+m.path}if(m.expires){if(!g(m.expires)||!Number.isFinite(m.expires.valueOf()))throw new TypeError(`option expires is invalid: ${m.expires}`);p+="; Expires="+m.expires.toUTCString()}if(m.httpOnly&&(p+="; HttpOnly"),m.secure&&(p+="; Secure"),m.partitioned&&(p+="; Partitioned"),m.priority)switch(typeof m.priority=="string"?m.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: ${m.priority}`)}if(m.sameSite)switch(typeof m.sameSite=="string"?m.sameSite.toLowerCase():m.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: ${m.sameSite}`)}return p}function u(h){if(h.indexOf("%")===-1)return h;try{return decodeURIComponent(h)}catch{return h}}function g(h){return r.call(h)==="[object Date]"}return we}ln();/**
|
|
23
23
|
* react-router v7.6.2
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Remix Software Inc.
|
|
@@ -28,7 +28,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
28
28
|
* LICENSE.md file in the root directory of this source tree.
|
|
29
29
|
*
|
|
30
30
|
* @license MIT
|
|
31
|
-
*/function
|
|
31
|
+
*/function F(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function G(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ae({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 mt(e,t,n="/"){return cn(e,t,n,!1)}function cn(e,t,n,a){let r=typeof t=="string"?Fe(t):t,s=ne(r.pathname||"/",n);if(s==null)return null;let c=ft(e);dn(c);let d=null;for(let i=0;d==null&&i<c.length;++i){let l=bn(s);d=yn(c[i],l,a)}return d}function ft(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("/")&&(F(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=K([a,i.relativePath]),u=n.concat(i);s.children&&s.children.length>0&&(F(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ft(s.children,t,u,l)),!(s.path==null&&!s.index)&&t.push({path:l,score:gn(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 dn(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:vn(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}var un=/^:[\w-]+$/,hn=3,mn=2,fn=1,pn=10,_n=-2,_t=e=>e==="*";function gn(e,t){let n=e.split("/"),a=n.length;return n.some(_t)&&(a+=_n),t&&(a+=mn),n.filter(r=>!_t(r)).reduce((r,s)=>r+(un.test(s)?hn:s===""?fn:pn),a)}function vn(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 yn(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)||"/",g=Se({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},u),h=i.route;if(!g&&l&&n&&!a[a.length-1].route.index&&(g=Se({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},u)),!g)return null;Object.assign(r,g.params),c.push({params:r,pathname:K([s,g.pathname]),pathnameBase:kn(K([s,g.pathnameBase])),route:h}),g.pathnameBase!=="/"&&(s=K([s,g.pathnameBase]))}return c}function Se(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,a]=xn(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:g},h)=>{if(u==="*"){let m=d[h]||"";c=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const v=d[h];return g&&!v?l[u]=void 0:l[u]=(v||"").replace(/%2F/g,"/"),l},{}),pathname:s,pathnameBase:c,pattern:e}}function xn(e,t=!1,n=!0){G(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 bn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return G(!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 ne(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 wn(e,t="/"){let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?Fe(e):e;return{pathname:n?n.startsWith("/")?n:Cn(n,t):t,search:jn(a),hash:Ln(r)}}function Cn(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 En(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gt(e){let t=En(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},F(!r.pathname||!r.pathname.includes("?"),Oe("?","pathname","search",r)),F(!r.pathname||!r.pathname.includes("#"),Oe("#","pathname","hash",r)),F(!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 g=t.length-1;if(!a&&c.startsWith("..")){let h=c.split("/");for(;h[0]==="..";)h.shift(),g-=1;r.pathname=h.join("/")}d=g>=0?t[g]:"/"}let i=wn(r,d),l=c&&c!=="/"&&c.endsWith("/"),u=(s||c===".")&&n.endsWith("/");return!i.pathname.endsWith("/")&&(l||u)&&(i.pathname+="/"),i}var K=e=>e.join("/").replace(/\/\/+/g,"/"),kn=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),jn=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ln=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $n(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 Sn=["GET",...yt];new Set(Sn);var ce=f.createContext(null);ce.displayName="DataRouter";var Ie=f.createContext(null);Ie.displayName="DataRouterState";var xt=f.createContext({isTransitioning:!1});xt.displayName="ViewTransition";var In=f.createContext(new Map);In.displayName="Fetchers";var Mn=f.createContext(null);Mn.displayName="Await";var Z=f.createContext(null);Z.displayName="Navigation";var qe=f.createContext(null);qe.displayName="Location";var Q=f.createContext({outlet:null,matches:[],isDataRoute:!1});Q.displayName="Route";var He=f.createContext(null);He.displayName="RouteError";function Nn(e,{relative:t}={}){F(Me(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:a}=f.useContext(Z),{hash:r,pathname:s,search:c}=Ce(e,{relative:t}),d=s;return n!=="/"&&(d=s==="/"?n:K([n,s])),a.createHref({pathname:d,search:c,hash:r})}function Me(){return f.useContext(qe)!=null}function oe(){return F(Me(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(qe).location}var bt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wt(e){f.useContext(Z).static||f.useLayoutEffect(e)}function zn(){let{isDataRoute:e}=f.useContext(Q);return e?Wn():Tn()}function Tn(){F(Me(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(ce),{basename:t,navigator:n}=f.useContext(Z),{matches:a}=f.useContext(Q),{pathname:r}=oe(),s=JSON.stringify(gt(a)),c=f.useRef(!1);return wt(()=>{c.current=!0}),f.useCallback((i,l={})=>{if(G(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:K([t,u.pathname])),(l.replace?n.replace:n.push)(u,l.state,l)},[t,n,s,r,e])}f.createContext(null);function Ce(e,{relative:t}={}){let{matches:n}=f.useContext(Q),{pathname:a}=oe(),r=JSON.stringify(gt(n));return f.useMemo(()=>vt(e,JSON.parse(r),a,t==="path"),[e,r,a,t])}function Bn(e,t,n,a){F(Me(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=f.useContext(Z),{matches:s}=f.useContext(Q),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
32
|
|
|
33
|
-
Please change the parent <Route path="${f}"> to <Route path="${f==="/"?"*":`${f}/*`}">.`)}let _=oe(),h;h=_;let y=h.pathname||"/",m=y;if(l!=="/"){let f=l.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(f.length).join("/")}let v=mt(e,{pathname:m});return G(u||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),G(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.`),On(v&&v.map(f=>Object.assign({},f,{params:Object.assign({},d,f.params),pathname:K([l,r.encodeLocation?r.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?l:K([l,r.encodeLocation?r.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),o,n,a)}function Rn(){let e=Wn(),t=jn(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},o={padding:"2px 4px",backgroundColor:a},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:o},"ErrorBoundary")," or"," ",p.createElement("code",{style:o},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:r},n):null,c)}var Dn=p.createElement(Rn,null),An=class extends p.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?p.createElement(Q.Provider,{value:this.props.routeContext},p.createElement(qe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Fn({routeContext:e,match:t,children:n}){let a=p.useContext(le);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(Q.Provider,{value:e},n)}function On(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,o=n==null?void 0:n.errors;if(o!=null){let s=r.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id])!==void 0);A(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),r=r.slice(0,Math.min(r.length,s+1))}let c=!1,d=-1;if(n)for(let s=0;s<r.length;s++){let l=r[s];if((l.route.HydrateFallback||l.route.hydrateFallbackElement)&&(d=s),l.route.id){let{loaderData:u,errors:_}=n,h=l.route.loader&&!u.hasOwnProperty(l.route.id)&&(!_||_[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((s,l,u)=>{let _,h=!1,y=null,m=null;n&&(_=o&&l.route.id?o[l.route.id]:void 0,y=l.route.errorElement||Dn,c&&(d<0&&u===0?(Ct("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):d===u&&(h=!0,m=l.route.hydrateFallbackElement||null)));let v=t.concat(r.slice(0,u+1)),L=()=>{let f;return _?f=y:h?f=m:l.route.Component?f=p.createElement(l.route.Component,null):l.route.element?f=l.route.element:f=s,p.createElement(Fn,{match:l,routeContext:{outlet:s,matches:v,isDataRoute:n!=null},children:f})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?p.createElement(An,{location:n.location,revalidation:n.revalidation,component:y,error:_,children:L(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):L()},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=p.useContext(le);return A(t,He(e)),t}function Hn(e){let t=p.useContext(Se);return A(t,He(e)),t}function Vn(e){let t=p.useContext(Q);return A(t,He(e)),t}function Ve(e){let t=Vn(e),n=t.matches[t.matches.length-1];return A(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xn(){return Ve("useRouteId")}function Wn(){var a;let e=p.useContext(qe),t=Hn("useRouteError"),n=Ve("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Un(){let{router:e}=qn("useNavigate"),t=Ve("useNavigate"),n=p.useRef(!1);return wt(()=>{n.current=!0}),p.useCallback(async(r,o={})=>{G(n.current,bt),n.current&&(typeof r=="number"?e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}var Et={};function Ct(e,t,n){!t&&!Et[e]&&(Et[e]=!0,G(!1,n))}p.memo(Yn);function Yn({routes:e,future:t,state:n}){return Pn(e,void 0,n,t)}var Ie="get",Me="application/x-www-form-urlencoded";function Ne(e){return e!=null&&typeof e.tagName=="string"}function Jn(e){return Ne(e)&&e.tagName.toLowerCase()==="button"}function Gn(e){return Ne(e)&&e.tagName.toLowerCase()==="form"}function Kn(e){return Ne(e)&&e.tagName.toLowerCase()==="input"}function Zn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Qn(e,t){return e.button===0&&(!t||t==="_self")&&!Zn(e)}var ze=null;function er(){if(ze===null)try{new FormData(document.createElement("form"),0),ze=!1}catch{ze=!0}return ze}var tr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xe(e){return e!=null&&!tr.has(e)?(G(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Me}"`),null):e}function nr(e,t){let n,a,r,o,c;if(Gn(e)){let d=e.getAttribute("action");a=d?te(d,t):null,n=e.getAttribute("method")||Ie,r=Xe(e.getAttribute("enctype"))||Me,o=new FormData(e)}else if(Jn(e)||Kn(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 s=e.getAttribute("formaction")||d.getAttribute("action");if(a=s?te(s,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Ie,r=Xe(e.getAttribute("formenctype"))||Xe(d.getAttribute("enctype"))||Me,o=new FormData(d,e),!er()){let{name:l,type:u,value:_}=e;if(u==="image"){let h=l?`${l}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else l&&o.append(l,_)}}else{if(Ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ie,a=null,r=Me,c=e}return o&&r==="text/plain"&&(c=o,o=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:o,body:c}}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function rr(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 ar(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 o=t.routes[r.route.id];if(o){let c=await rr(o,n);return c.links?c.links():[]}return[]}));return cr(a.flat(1).filter(ar).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,o){let c=(s,l)=>n[l]?s.route.id!==n[l].route.id:!0,d=(s,l)=>{var u;return n[l].pathname!==s.pathname||((u=n[l].route.path)==null?void 0:u.endsWith("*"))&&n[l].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,l)=>c(s,l)||d(s,l)):o==="data"?t.filter((s,l)=>{var _;let u=a.routes[s.route.id];if(!u||!u.hasLoader)return!1;if(c(s,l)||d(s,l))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((_=n[0])==null?void 0:_.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function sr(e,t,{includeHydrateFallback:n}={}){return ir(e.map(a=>{let r=t.routes[a.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1))}function ir(e){return[...new Set(e)]}function lr(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function cr(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let o=JSON.stringify(lr(r));return n.has(o)||(n.add(o),a.push({key:o,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dr=new Set([100,101,204,205]);function ur(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&&te(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Lt(){let e=p.useContext(le);return We(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hr(){let e=p.useContext(Se);return We(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ue=p.createContext(void 0);Ue.displayName="FrameworkContext";function $t(){let e=p.useContext(Ue);return We(e,"You must render this element inside a <HydratedRouter> element"),e}function mr(e,t){let n=p.useContext(Ue),[a,r]=p.useState(!1),[o,c]=p.useState(!1),{onFocus:d,onBlur:s,onMouseEnter:l,onMouseLeave:u,onTouchStart:_}=t,h=p.useRef(null);p.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let v=f=>{f.forEach(b=>{c(b.isIntersecting)})},L=new IntersectionObserver(v,{threshold:.5});return h.current&&L.observe(h.current),()=>{L.disconnect()}}},[e]),p.useEffect(()=>{if(a){let v=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(v)}}},[a]);let y=()=>{r(!0)},m=()=>{r(!1),c(!1)};return n?e!=="intent"?[o,h,{}]:[o,h,{onFocus:we(d,y),onBlur:we(s,m),onMouseEnter:we(l,y),onMouseLeave:we(u,m),onTouchStart:we(_,y)}]:[!1,h,{}]}function we(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function fr({page:e,...t}){let{router:n}=Lt(),a=p.useMemo(()=>mt(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?p.createElement(_r,{page:e,matches:a,...t}):null}function pr(e){let{manifest:t,routeModules:n}=$t(),[a,r]=p.useState([]);return p.useEffect(()=>{let o=!1;return or(e,t,n).then(c=>{o||r(c)}),()=>{o=!0}},[e,t,n]),a}function _r({page:e,matches:t,...n}){let a=oe(),{manifest:r,routeModules:o}=$t(),{basename:c}=Lt(),{loaderData:d,matches:s}=hr(),l=p.useMemo(()=>kt(e,t,s,r,a,"data"),[e,t,s,r,a]),u=p.useMemo(()=>kt(e,t,s,r,a,"assets"),[e,t,s,r,a]),_=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let m=new Set,v=!1;if(t.forEach(f=>{var E;let b=r.routes[f.route.id];!b||!b.hasLoader||(!l.some(w=>w.route.id===f.route.id)&&f.route.id in d&&((E=o[f.route.id])!=null&&E.shouldRevalidate)||b.hasClientLoader?v=!0:m.add(f.route.id))}),m.size===0)return[];let L=ur(e,c);return v&&m.size>0&&L.searchParams.set("_routes",t.filter(f=>m.has(f.route.id)).map(f=>f.route.id).join(",")),[L.pathname+L.search]},[c,d,a,r,l,t,e,o]),h=p.useMemo(()=>sr(u,r),[u,r]),y=pr(u);return p.createElement(p.Fragment,null,_.map(m=>p.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),h.map(m=>p.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),y.map(({key:m,link:v})=>p.createElement("link",{key:m,...v})))}function gr(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{St&&(window.__reactRouterVersion="7.6.2")}catch{}var jt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ee=p.forwardRef(function({onClick:t,discover:n="render",prefetch:a="none",relative:r,reloadDocument:o,replace:c,state:d,target:s,to:l,preventScrollReset:u,viewTransition:_,...h},y){let{basename:m}=p.useContext(Z),v=typeof l=="string"&&jt.test(l),L,f=!1;if(typeof l=="string"&&v&&(L=l,St))try{let z=new URL(window.location.href),F=l.startsWith("//")?new URL(z.protocol+l):new URL(l),V=te(F.pathname,m);F.origin===z.origin&&V!=null?l=V+F.search+F.hash:f=!0}catch{G(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=zn(l,{relative:r}),[E,w,I]=mr(a,h),M=br(l,{replace:c,state:d,target:s,preventScrollReset:u,relative:r,viewTransition:_});function N(z){t&&t(z),z.defaultPrevented||M(z)}let S=p.createElement("a",{...h,...I,href:L||b,onClick:f||o?t:N,ref:gr(y,w),target:s,"data-discover":!v&&n==="render"?"true":void 0});return E&&!v?p.createElement(p.Fragment,null,S,p.createElement(fr,{page:b})):S});Ee.displayName="Link";var vr=p.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:a="",end:r=!1,style:o,to:c,viewTransition:d,children:s,...l},u){let _=be(c,{relative:l.relative}),h=oe(),y=p.useContext(Se),{navigator:m,basename:v}=p.useContext(Z),L=y!=null&&Lr(_)&&d===!0,f=m.encodeLocation?m.encodeLocation(_).pathname:_.pathname,b=h.pathname,E=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;n||(b=b.toLowerCase(),E=E?E.toLowerCase():null,f=f.toLowerCase()),E&&v&&(E=te(E,v)||E);const w=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let I=b===f||!r&&b.startsWith(f)&&b.charAt(w)==="/",M=E!=null&&(E===f||!r&&E.startsWith(f)&&E.charAt(f.length)==="/"),N={isActive:I,isPending:M,isTransitioning:L},S=I?t:void 0,z;typeof a=="function"?z=a(N):z=[a,I?"active":null,M?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let F=typeof o=="function"?o(N):o;return p.createElement(Ee,{...l,"aria-current":S,className:z,ref:u,style:F,to:c,viewTransition:d},typeof s=="function"?s(N):s)});vr.displayName="NavLink";var yr=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:o,method:c=Ie,action:d,onSubmit:s,relative:l,preventScrollReset:u,viewTransition:_,...h},y)=>{let m=Cr(),v=kr(d,{relative:l}),L=c.toLowerCase()==="get"?"get":"post",f=typeof d=="string"&&jt.test(d),b=E=>{if(s&&s(E),E.defaultPrevented)return;E.preventDefault();let w=E.nativeEvent.submitter,I=(w==null?void 0:w.getAttribute("formmethod"))||c;m(w||E.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:r,state:o,relative:l,preventScrollReset:u,viewTransition:_})};return p.createElement("form",{ref:y,method:L,action:v,onSubmit:a?s:b,...h,"data-discover":!f&&e==="render"?"true":void 0})});yr.displayName="Form";function xr(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=p.useContext(le);return A(t,xr(e)),t}function br(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:o,viewTransition:c}={}){let d=Tn(),s=oe(),l=be(e,{relative:o});return p.useCallback(u=>{if(Qn(u,t)){u.preventDefault();let _=n!==void 0?n:De(s)===De(l);d(e,{replace:_,state:a,preventScrollReset:r,relative:o,viewTransition:c})}},[s,d,l,n,a,t,e,r,o,c])}var wr=0,Er=()=>`__${String(++wr)}__`;function Cr(){let{router:e}=It("useSubmit"),{basename:t}=p.useContext(Z),n=Xn();return p.useCallback(async(a,r={})=>{let{action:o,method:c,encType:d,formData:s,body:l}=nr(a,t);if(r.navigate===!1){let u=r.fetcherKey||Er();await e.fetch(u,n,r.action||o,{preventScrollReset:r.preventScrollReset,formData:s,body:l,formMethod:r.method||c,formEncType:r.encType||d,flushSync:r.flushSync})}else await e.navigate(r.action||o,{preventScrollReset:r.preventScrollReset,formData:s,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 kr(e,{relative:t}={}){let{basename:n}=p.useContext(Z),a=p.useContext(Q);A(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),o={...be(e||".",{relative:t})},c=oe();if(e==null){o.search=c.search;let d=new URLSearchParams(o.search),s=d.getAll("index");if(s.some(u=>u==="")){d.delete("index"),s.filter(_=>_).forEach(_=>d.append("index",_));let u=d.toString();o.search=u?`?${u}`:""}}return(!e||e===".")&&r.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:K([n,o.pathname])),De(o)}function Lr(e,t={}){let n=p.useContext(xt);A(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=be(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=te(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=te(n.nextLocation.pathname,a)||n.nextLocation.pathname;return $e(r.pathname,c)!=null||$e(r.pathname,o)!=null}[...dr];const W={button:"_button_w916g_161",noMargin:"_noMargin_w916g_189",regular:"_regular_w916g_199",small:"_small_w916g_202",primary:"_primary_w916g_213",noHover:"_noHover_w916g_217",secondary:"_secondary_w916g_233",disabled:"_disabled_w916g_252",hasErrors:"_hasErrors_w916g_272",rounded:"_rounded_w916g_278",hasArrowLeft:"_hasArrowLeft_w916g_282",pushprev:"_pushprev_w916g_1",hasArrowRight:"_hasArrowRight_w916g_320",pushnext:"_pushnext_w916g_1"},Ye=({content:e,color:t="primary",size:n="regular",arrow:a="none",disabled:r=!1,inputType:o,defaultChecked:c,hasErrors:d=!1,noHover:s=!1,rounded:l=!1,noMargin:u=!1,href:_,children:h,...y})=>{const m=w=>{switch(w){case"left":return W.hasArrowLeft;case"right":return W.hasArrowRight;default:return""}},v=o==="radio"?c?"primary":"secondary":t,L=B([W.button,W[v],W[n],m(a),s||o==="radio"?W.noHover:null,l&&W.rounded,d&&W.hasErrors,r&&W.disabled,u&&W.noMargin]),f={"aria-invalid":d||void 0,href:!r&&(_!=null&&_.length)?_:void 0,className:L,...y},b=w=>x.Children.toArray(ie(w)).map((M,N)=>{if(!x.isValidElement(M))return null;const S=M,z=S.type===Ee&&typeof S.props=="object"&&S.props!==null&&"to"in S.props;return!r&&z?x.cloneElement(S,{className:L,key:`button-${N}`,to:S.props.to}):x.createElement("button",{...f,key:`button-${N}`},e||S.props&&S.props.children)});if(o==="button")return i.jsx("button",{type:"button",...f,children:e||h});if(o==="radio"){const w={...f};return delete w.href,i.jsxs("label",{className:L,children:[i.jsx("input",{...w,type:"radio"}),e]})}if(_!=null&&_.length&&!r){const w={...f};return"type"in w&&delete w.type,i.jsx("a",{...w,children:e||h})}return x.isValidElement(h)&&h.type===Ee?i.jsx(x.Fragment,{children:b(x.Children.toArray(h))}):i.jsx("button",{...f,children:e||h})},ce={checkBoxIcon:"_checkBoxIcon_1kc3w_1",showBox:"_showBox_1kc3w_22",hasErrors:"_hasErrors_1kc3w_27",checked:"_checked_1kc3w_37",disabled:"_disabled_1kc3w_53",checkmark:"_checkmark_1kc3w_58"},Je=({size:e="20px",checked:t=!1,disabled:n=!1,showBox:a=!0,hasErrors:r=!1,checkmarkCharacter:o="✔"})=>{const c={height:e,width:e,fontSize:e},d=[ce.checkBoxIcon,t&&ce.checked,n&&ce.disabled,a&&ce.showBox,r&&ce.hasErrors].filter(Boolean).join(" ");return i.jsx("span",{className:d,style:c,children:i.jsx("span",{"aria-hidden":!0,className:ce.checkmark,children:t?o:""})})},ne="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",de={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Mt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,hasErrors:s=!1,checkmarkCharacter:l="✔",tabIndex:u=0,children:_,"aria-controls":h,"aria-describedby":y})=>{const m=[de.checkBoxInput,d&&de.contentOnly,t&&de.disabled,s&&de.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,showBox:!d,hasErrors:d&&s,checkmarkCharacter:l},L={id:r,name:o,type:"checkbox",checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u,"aria-controls":h,"aria-invalid":s?"true":void 0,"aria-describedby":y};return i.jsxs("label",{htmlFor:r,className:m,children:[d?i.jsx(Je,{...v}):i.jsxs(i.Fragment,{children:[i.jsx(Je,{...v}),i.jsx("input",{...L})]}),i.jsxs("span",{className:de.labelText,children:[_,n&&i.jsx("img",{src:ne,alt:"",className:de.requiredSymbol})]})]})},Nt={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},Te={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"},Ge=({id:e,content:t,size:n=1,big:a,label:r,htmlTag:o,htmlFor:c,children:d})=>{const s=o||`h${n}`,l=B([Te.header,Te[`size-${n}`],a&&Te.bigHeader]),u=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,_=x.createElement(s,{className:l,id:e||void 0,htmlFor:c||void 0,style:u},t!=null&&t.length?t:d);return i.jsx("div",{className:Te.headerContainer,children:_})},zt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const o=c=>ie(c).map((s,l)=>{var u;return x.isValidElement(s)&&((u=s.type)==null?void 0:u.displayName)==="RadioButtonListItem"?x.cloneElement(s,{requiredGroup:n,compact:a,key:`checkboxListItem-${l}`}):s});return i.jsxs("fieldset",{className:Nt.checkBoxList,children:[!!(e!=null&&e.length)&&i.jsxs("legend",{children:[t?i.jsx(Ge,{size:t,children:e}):e,n&&i.jsx("img",{src:ne,alt:"",className:Nt.requiredSymbol})]}),o(x.Children.toArray(r))]})},ue={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},Tt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,compact:s=!1,hasErrors:l=!1,checkmarkCharacter:u="✔","aria-controls":_,"aria-describedby":h,children:y})=>{const m=B([ue.checkBoxListItem,e&&ue.checked,t&&ue.disabled,s&&ue.compact,d&&ue.contentOnly,l&&ue.hasErrors]),v={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:d,hasErrors:l,"aria-controls":_,"aria-describedby":h,id:r,name:o,checkmarkCharacter:u};return i.jsx("div",{className:m,children:i.jsx(Mt,{...v,children:y})})},$r={container:"_container_f8z49_1"},Bt=({maxWidth:e,children:t})=>{const n={"--max-width":e!=null&&e.length?e:void 0};return i.jsx("div",{className:$r.container,style:n,children:t})},he={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"},Sr=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:o=null})=>{const c=()=>{if(!e)return null;const h=`${he.title} ${he[t]}`;return i.jsx("h2",{className:h,children:e})},d=he[r]||"",s=o?he.link:"",l=`${he.contentBox} ${d} ${s}`.trim(),u=n!=null&&n.length?n:a,_=i.jsxs(i.Fragment,{children:[c(),i.jsx("div",{className:he.content,children:u})]});return o?i.jsx("a",{href:o,className:l,children:_}):i.jsx("div",{className:l,children:_})},Pt={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},jr=({compact:e=!1,titleWidth:t,children:n})=>i.jsx("dd",{className:B([Pt.descriptionDetails,e&&Pt.compact]),style:{"--title-width":t||void 0},children:n}),Rt={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Ir=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>ie(r).map((c,d)=>x.isValidElement(c)?x.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${d}`}):c);return x.createElement("dl",{className:B([Rt.descriptionList,e&&Rt.compact]),style:{"--title-width":t||void 0}},a(x.Children.toArray(n)))},Dt={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},Mr=({compact:e=!1,titleWidth:t,children:n})=>i.jsx("dt",{className:B([Dt.descriptionTerm,e&&Dt.compact]),style:{"--title-width":t||void 0},children:n}),Nr="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",re={dialog:"_dialog_1qsqp_19",dialogContainer:"_dialogContainer_1qsqp_33",dialogContent:"_dialogContent_1qsqp_38",closeButton:"_closeButton_1qsqp_45",isSidebar:"_isSidebar_1qsqp_60",modalInVertical:"_modalInVertical_1qsqp_1",noPadding:"_noPadding_1qsqp_74",left:"_left_1qsqp_113",modalInHorizontalLeft:"_modalInHorizontalLeft_1qsqp_1",right:"_right_1qsqp_120",modalInHorizontalRight:"_modalInHorizontalRight_1qsqp_1",dialogOverlay:"_dialogOverlay_1qsqp_128"},zr=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!1,attachTo:o,hidden:c=!1,children:d})=>{const s=x.useRef(null),l=x.useRef(null),u=x.useCallback(y=>{y&&ut(y)},[]);x.useEffect(()=>{const y=v=>{v.key==="Escape"&&a&&a()},m=v=>{l.current&&!l.current.contains(v.target)&&a()};return document.addEventListener("mousedown",m),document.addEventListener("keydown",y,!1),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",y,!1)}},[a]),x.useEffect(()=>{s.current&&(s.current.close(),c||(r?s.current.showModal():s.current.show()))},[c,r]);const _=o&&B([re.isSidebar,re[o]]),h={"--max-width":e};return i.jsx("dialog",{className:B([re.dialog,_]),ref:s,children:i.jsx("div",{ref:l,className:re.dialogContainer,style:h,children:i.jsxs("div",{ref:u,className:B([re.dialogContent,t&&re.noPadding]),children:[n&&i.jsx("button",{"aria-label":"Lukk dialog",onClick:a,className:B([re.closeButton,t&&re.noPadding]),children:i.jsx("img",{src:Nr,alt:""})}),i.jsx("div",{"aria-live":"assertive",role:"dialog",children:d})]})})})},Ke={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},me=({inline:e=!1,normalCursor:t=!1,htmlTag:n="label",children:a,id:r,...o})=>{const c=[Ke.label,e&&Ke.inline,t&&Ke.normalCursor].filter(Boolean).join(" "),d={...o,className:c,id:r||void 0};return x.createElement(n,d,a)},Be={dragAndDropFileInput:"_dragAndDropFileInput_l98z1_1",requiredSymbol:"_requiredSymbol_l98z1_1",dragAndDropContainer:"_dragAndDropContainer_l98z1_8",highlighted:"_highlighted_l98z1_26"},At={errorMessage:"_errorMessage_i8u6b_7",errorSign:"_errorSign_i8u6b_19"},Tr="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",Ce=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:At.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?i.jsxs("span",{"aria-live":"polite",...n(),children:[i.jsx("img",{src:Tr,alt:"",className:At.errorSign}),t]}):null},Br=({id:e,name:t,onSelectChange:n,onDragAndDropChange:a,label:r="",contentOnly:o=!1,buttonColor:c="primary",buttonContent:d,buttonContentWhenSelectedFile:s,selectedFileName:l,defaultContent:u="",hasErrors:_=!1,errorMessage:h="",required:y=!1,children:m,"data-transaction-name":v})=>{const[L,f]=x.useState(!1),b=x.useRef(null),E=x.useRef(null),w=j=>{j.preventDefault(),j.stopPropagation()},I=(j,C)=>j||C,M=()=>{var j;(j=E.current)==null||j.click()},N=()=>`${e}-errorMessage`,S={id:e,"aria-describedby":_&&(h!=null&&h.toString().length)?N():void 0,"aria-invalid":_?"true":void 0,name:t,required:y},z=l&&s||d,F=x.useCallback(()=>f(!0),[]),V=x.useCallback(()=>f(!1),[]),Y=x.useCallback(j=>{var C;w(j),(C=j.dataTransfer)!=null&&C.files&&a(j.dataTransfer.files),f(!1)},[a]);return x.useEffect(()=>{const j=b.current;if(j)return["dragenter","dragover"].forEach(C=>j.addEventListener(C,F)),["dragleave","drop"].forEach(C=>j.addEventListener(C,V)),["dragenter","dragover","dragleave","drop"].forEach(C=>j.addEventListener(C,w)),j.addEventListener("drop",Y),()=>{["dragenter","dragover","dragleave","drop"].forEach(C=>{j.removeEventListener(C,w),j.removeEventListener(C,F),j.removeEventListener(C,V)}),j.removeEventListener("drop",Y)}},[a]),i.jsxs("div",{className:Be.dragAndDropFileInput,children:[i.jsxs(me,{htmlFor:e,children:[r,y&&i.jsx("img",{src:ne,alt:"",className:Be.requiredSymbol})]}),i.jsx("div",{children:m}),!o&&i.jsxs("div",{ref:b,className:`${Be.dragAndDropContainer} ${L?Be.highlighted:""}`,children:[l?i.jsx("div",{children:i.jsxs("span",{children:[i.jsx("b",{children:"Valgt fil:"})," ",l]})}):i.jsx("div",{children:"Slipp fil her"}),i.jsx("input",{...S,ref:E,type:"file",onChange:n}),d&&i.jsxs(i.Fragment,{children:[i.jsx("div",{children:l?"":"eller klikk på knappen for å velge fil"}),i.jsx(Ye,{size:"small",inputType:"button",color:c,onClick:M,content:z,hasErrors:_,"data-transaction-name":v})]})]}),o&&i.jsx("span",{children:I(l,u)}),i.jsx(Ce,{id:N(),content:h})]})},fe={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"},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",Pr=({type:e="warning",fullScreen:t=!1,children:n=""})=>i.jsx("div",{className:B([fe.errorBoxContainer,fe[e],t&&fe.fullScreen]),children:i.jsxs("div",{className:B([fe.errorBox,t&&fe.fullScreen]),children:[i.jsx("img",{src:Ft,alt:"",className:fe.infoSign}),n]})}),Rr={footer:"_footer_19fad_1"},Dr=({children:e})=>i.jsx("footer",{className:Rr.footer,children:i.jsx(Bt,{children:e})}),Ot={infoBox:"_infoBox_1mh67_7",infoSign:"_infoSign_1mh67_15"},Ar=({children:e=""})=>i.jsxs("div",{className:Ot.infoBox,children:[i.jsx("img",{src:Ft,alt:"",className:Ot.infoSign}),e]}),se={inputField:"_inputField_17rmz_1",noMargin:"_noMargin_17rmz_4",requiredSymbol:"_requiredSymbol_17rmz_10",file:"_file_17rmz_17",input:"_input_17rmz_1",hasErrors:"_hasErrors_17rmz_50",fileInputContainer:"_fileInputContainer_17rmz_62"},Ze=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},Fr=({id:e,onChange:t,onBlur:n,name:a="",type:r="text",disabled:o=!1,required:c=!1,readOnly:d,width:s,value:l,defaultValue:u,elementKey:_,label:h="",contentOnly:y=!1,buttonColor:m="primary",buttonContent:v,selectedFileName:L,placeholder:f="",defaultContent:b="",min:E,max:w,role:I,"aria-describedby":M,"aria-autocomplete":N,hasErrors:S=!1,errorMessage:z="",noMargin:F=!1})=>{const V=T=>{const R=new Date(T);return`${String(R.getDate()).padStart(2,"0")}.${String(R.getMonth()+1).padStart(2,"0")}.${R.getFullYear()}`},Y=(T,R)=>r==="date"?T?V(T):R:T||R,j=()=>`${e}-errorMessage`,C=s?{maxWidth:s}:{},O={name:a,readOnly:d,disabled:o,required:c,type:r,role:I,id:e,min:E,max:w,onChange:t,onBlur:n,...l!==void 0?{value:l}:u!==void 0?{defaultValue:u}:{},placeholder:f,className:S?se.hasErrors:void 0,"aria-describedby":S&&z?j():M,"aria-invalid":S?"true":void 0,"aria-autocomplete":N||void 0,style:C};return i.jsxs("div",{className:B([se.inputField,se[r],F&&se.noMargin]),children:[i.jsxs(me,{htmlFor:e,children:[h,c&&i.jsx("img",{src:ne,alt:"",className:se.requiredSymbol}),r==="file"&&i.jsxs("div",{className:se.fileInputContainer,children:[i.jsx("span",{className:se.input,children:L}),v&&i.jsx(Ye,{color:m,inputType:"button",onClick:()=>{const T=document==null?void 0:document.getElementById(e);T==null||T.click()},content:v})]})]}),y?i.jsx("span",{children:Y(l??u,b)}):i.jsx("input",{...O},_||`${e}-${Ze(6)}`),i.jsx(Ce,{id:j(),content:z})]})},Or={lead:"_lead_176gy_1"},qr=({id:e,htmlTag:t="p",children:n})=>x.createElement(t,{className:Or.lead,id:e||void 0},n),qt={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},Hr=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=s=>ie(s).map((u,_)=>x.isValidElement(u)?x.cloneElement(u,{compact:t,key:`listItem-${_}`}):u),o=n?"ol":"ul",c=n?"decimal":"disc";return x.createElement(o,{className:`${qt.list} ${t?qt.compact:""}`,style:{["--listStyle"]:e||c}},r(x.Children.toArray(a)))},Ht={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Vr=({compact:e=!1,children:t})=>{const n=B([Ht.listItem,e&&Ht.compact]);return i.jsx("li",{className:n,children:t})},Qe={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Xr=({fixed:e=!1,message:t=""})=>{const n=e?`${Qe.loadingAnimation} ${Qe.fixed}`:Qe.loadingAnimation;return i.jsx("div",{className:n,children:t})},et=({listItem:e})=>typeof e=="string"?i.jsx("li",{children:i.jsx("span",{children:e})}):typeof e=="object"?i.jsx("li",{children:i.jsx("a",{href:e.href,children:e.name})}):null,Wr="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",Ur="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",D={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"},Yr=e=>(e==null?void 0:e.logo)??"",Jr=e=>(e==null?void 0:e.logoPadding)??"",Gr=e=>(e==null?void 0:e.appName)??"",Kr=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:o,compact:c,mainContentId:d,preventChildElementStacking:s=!1,children:l})=>{const[u,_]=x.useState(!1),h=()=>_(!u),y=b=>({padding:Jr(b)}),m=(b=e,E=0)=>b.length?i.jsx("ul",{className:D.primaryList,children:b.map((w,I)=>{const M=`${E}-${I}`;return w.listItems?i.jsxs("li",{children:[i.jsx("span",{children:w.name}),m(w.listItems,E+1)]},M):i.jsx(et,{listItem:w},M)})}):null,v=()=>t.length?i.jsx("ul",{className:D.secondaryList,children:t.map((b,E)=>i.jsx(et,{listItem:b},E))}):null,L=(b,E)=>{const w=Yr(o),I=Gr(o),M=b&&E?"":w&&I?`${I} logo`:"DIBK logo",N=w?i.jsx("img",{alt:M,src:w,style:y(o)}):i.jsx("img",{alt:M,src:c?Wr:Ur});return b!=null&&b.length?i.jsx("a",{href:b,title:E,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:N}):N},f=e.length>0||t.length>0;return i.jsxs("div",{className:B([c&&D.compact,D.navigationBarContainer]),children:[d&&i.jsx("a",{id:"main-content-link",href:`#${d}`,className:D.mainContentLink,children:i.jsx("span",{id:"main-content-link-text",children:"Hopp til hovedinnhold"})}),i.jsxs("div",{className:B([D.navigationBar,s&&D.preventStacking]),children:[i.jsx("div",{className:D.logoContainer,children:L(n,a)}),l&&i.jsx("div",{className:D.childElements,children:l}),f&&i.jsxs("button",{type:"button",className:`${D.menuToggle} ${u?D.active:""}`,onClick:h,"aria-expanded":u?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",i.jsxs("span",{className:D.hamburgerIcon,children:[i.jsx("span",{className:D.line}),i.jsx("span",{className:D.line}),i.jsx("span",{className:D.line})]})]})]}),f&&i.jsx(x.Fragment,{children:i.jsx("div",{className:B([D.dropdownContainer,u&&D.active]),children:i.jsxs("div",{id:"main-menu-dropdown",className:D.dropdown,children:[m(),v()]})})})]})},tt={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},Zr=({noMargin:e=!1,noPadding:t=!1,children:n})=>{const a=[tt.paper,e&&tt.noMargin,t&&tt.noPadding].filter(Boolean).join(" ");return i.jsx("div",{className:a,children:n})},Vt={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},Qr=({progress:e=0,hasErrors:t=!1})=>i.jsx("div",{className:`${Vt.progressBar} ${t?Vt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Pe={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},Xt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},o=[Pe.radioButtonIcon,t&&Pe.checked,n&&Pe.disabled,a&&Pe.hasErrors].filter(Boolean).join(" ");return i.jsx("span",{className:o,style:r})},pe={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},Wt=({checked:e=!1,disabled:t=!1,required:n=!1,requiredGroup:a=!1,id:r,name:o="",onChange:c,contentOnly:d=!1,hasErrors:s=!1,inputValue:l,tabIndex:u,children:_,"aria-controls":h,"aria-describedby":y})=>{const m=[pe.radioButtonInput,e&&pe.checked,t&&pe.disabled,s&&pe.hasErrors].filter(Boolean).join(" "),v={checked:e,disabled:t,hasErrors:!d&&s},L={id:r,name:o,type:"radio",value:l,checked:e,disabled:t,required:n||a,onChange:c,tabIndex:u??void 0,"aria-controls":h,"aria-invalid":s?"true":void 0,"aria-describedby":y};return i.jsxs("label",{htmlFor:r,className:m,children:[!d&&i.jsxs(i.Fragment,{children:[i.jsx(Xt,{...v}),i.jsx("input",{...L})]}),i.jsxs("span",{className:pe.labelText,children:[_,n&&i.jsx("img",{src:ne,alt:"",className:pe.requiredSymbol})]})]})},Ut={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},ea=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const o=c=>ie(c).map((s,l)=>{var u;return x.isValidElement(s)&&((u=s.type)==null?void 0:u.displayName)==="RadioButtonListItem"?x.cloneElement(s,{requiredGroup:n,compact:a,key:`radioButtonListItem-${l}`}):s});return i.jsxs("fieldset",{className:Ut.radioButtonList,children:[!!(e!=null&&e.length)&&i.jsxs("legend",{children:[t?i.jsx(Ge,{size:t,children:e}):e,n&&i.jsx("img",{src:ne,alt:"",className:Ut.requiredSymbol})]}),o(x.Children.toArray(r))]})},_e={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},ta=({inputValue:e,checked:t=!1,disabled:n=!1,required:a=!1,requiredGroup:r=!1,name:o="",id:c,onChange:d,contentOnly:s=!1,compact:l=!1,hasErrors:u=!1,"aria-controls":_,"aria-describedby":h,children:y})=>{const m=B([_e.radioButtonListItem,t&&_e.checked,n&&_e.disabled,l&&_e.compact,s&&_e.contentOnly,u&&_e.hasErrors]),v={onChange:d,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:s,hasErrors:u,"aria-controls":_,"aria-describedby":h,id:c,name:o};return i.jsx("div",{className:m,children:i.jsx(Wt,{...v,children:y})})},ee={select:"_select_18o2z_1",requiredSymbol:"_requiredSymbol_18o2z_1",selectContainer:"_selectContainer_18o2z_8",selectListArrow:"_selectListArrow_18o2z_11",multipleSelectDropdown:"_multipleSelectDropdown_18o2z_40",multipleSelectElement:"_multipleSelectElement_18o2z_52",multiple:"_multiple_18o2z_40",hasErrors:"_hasErrors_18o2z_100"},na=({id:e,onChange:t,name:n="",required:a=!1,disabled:r=!1,multiple:o=!1,options:c=[],width:d,value:s,defaultValue:l,label:u="",contentOnly:_=!1,keyAsContent:h=!1,placeholder:y="",placeholderValue:m="",defaultContent:v="",role:L,"aria-describedby":f,hasErrors:b=!1,errorMessage:E=""})=>{const[w,I]=x.useState(!1),M=x.useRef(null);x.useCallback(C=>{C&&ut(C)},[]);const N=()=>I(!1);x.useEffect(()=>{const C=T=>{T.key==="Escape"&&N()},O=T=>{M.current&&!M.current.contains(T.target)&&N()};return document.addEventListener("mousedown",O),document.addEventListener("keydown",C),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",C)}},[]);const S=(C,O)=>{const T=O.find(R=>typeof R=="object"?R.value===C:R===C);return typeof T=="object"?T.key??T.value:T},z=C=>typeof C=="object"?{key:C.key,value:C.value}:{key:C,value:C},F=()=>{var C;return((C=l||s)==null?void 0:C.map(O=>S(O,c)).join(", "))||null},V=()=>c.map((C,O)=>{const{key:T,value:R}=z(C),Re=(l||s||[]).includes(R);return i.jsx(Tt,{id:`${e}-${O}`,value:R,checked:Re,onChange:()=>t(R),children:T},O)}),Y=()=>`${e}-errorMessage`;if(_){const C=l||s||null;return i.jsxs("div",{className:ee.select,children:[i.jsx(me,{htmlFor:e,children:u}),i.jsx("span",{children:C?h?S(C,c):C:v})]})}const j={name:n,multiple:o,required:a,disabled:r,onChange:t,id:e,role:L,className:B([b&&ee.hasErrors,o&&ee.multiple]),"aria-describedby":b&&E?Y():f,"aria-invalid":b||void 0,style:d?{maxWidth:d}:void 0,...l&&!s?{defaultValue:l}:{value:s||""}};return i.jsxs("div",{className:ee.select,children:[i.jsxs(me,{htmlFor:e,children:[u,a&&i.jsx("img",{src:ne,alt:"",className:ee.requiredSymbol})]}),i.jsxs("div",{className:ee.selectContainer,style:d?{maxWidth:d}:void 0,children:[i.jsx("span",{className:ee.selectListArrow}),o?i.jsxs("div",{ref:M,children:[i.jsx("div",{onClick:()=>I(!w),className:ee.multipleSelectElement,children:F()}),w&&i.jsx("div",{className:ee.multipleSelectDropdown,children:i.jsx(zt,{compact:!0,children:V()})})]}):i.jsxs("select",{...j,children:[y&&i.jsx("option",{value:m,disabled:!0,children:y}),c.map((C,O)=>{const{key:T,value:R}=z(C);return i.jsx("option",{value:R,children:T},O)})]},`${e}-${Ze(6)}`)]}),i.jsx(Ce,{id:Y(),content:E})]})},ke={table:"_table_miy9l_1","captionSide-top":"_captionSide-top_miy9l_14","captionSide-bottom":"_captionSide-bottom_miy9l_18","captionAlign-left":"_captionAlign-left_miy9l_22","captionAlign-center":"_captionAlign-center_miy9l_25","captionAlign-right":"_captionAlign-right_miy9l_28"},ra=e=>e&&["left","center","right"].includes(e)?ke[`captionAlign-${e}`]:ke["captionAlign-left"],aa=e=>e&&["top","bottom"].includes(e)?ke[`captionSide-${e}`]:ke["captionSide-top"],oa=({captionAlign:e,captionSide:t,children:n})=>{const a=B([ke.table,ra(e),aa(t)]);return i.jsx("table",{className:a,children:n})},nt={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},sa=({id:e,onChange:t,onBlur:n,name:a="",required:r=!1,readOnly:o,disabled:c,width:d,resize:s="both",value:l,defaultValue:u,elementKey:_,rows:h,label:y="",contentOnly:m=!1,placeholder:v="",defaultContent:L="","aria-describedby":f,hasErrors:b=!1,errorMessage:E=""})=>{const w=()=>`${e}-errorMessage`,I=!(l!=null&&l.length)&&(u!=null&&u.length)?u:void 0,M=_||`${e}-${Ze(6)}`,N={...d&&{maxWidth:d},...s&&{resize:s}},S={name:a,readOnly:o,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:I?void 0:l,defaultValue:I||void 0,placeholder:v,rows:h?parseInt(h,10):void 0,className:b?nt.hasErrors:"","aria-describedby":b&&E?w():f,"aria-invalid":b?"true":void 0,style:N};return i.jsxs("div",{className:nt.textarea,children:[i.jsxs(me,{htmlFor:e,children:[y,r&&i.jsx("img",{src:ne,alt:"",className:nt.requiredSymbol})]}),m?i.jsx("span",{children:l||u||L}):i.jsx("textarea",{...S},M),i.jsx(Ce,{id:w(),content:E})]})},ia=({theme:e,children:t})=>{const n=nn(e),a=an(n);return rn("theme-provider",`:root {${a}}`),t},la={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},ca=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:o=!1})=>x.createElement(t,{...r,className:la.toggleNavigationButton,id:e||void 0},o?a:n),U={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"},da="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",Yt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,o=a==="vertical",c=B([U.wizardTopnavItem,r&&U.active,e.finished&&U.finished,e.hasErrors&&U.hasErrors,U[a]]),d=r?"step":void 0,s=()=>i.jsxs(i.Fragment,{children:[i.jsx("span",{className:U.stepNumber,children:t+1}),i.jsx("span",{className:U.stepName,children:e.name}),o&&e.finished&&!r&&i.jsx("img",{src:da,alt:"",className:U.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?i.jsx("li",{className:c,children:i.jsx(Ee,{to:e.link,"aria-current":d,className:U.wizardTopnavItemContent,children:s()})}):i.jsx("li",{className:c,children:i.jsx("span",{"aria-current":d,className:U.wizardTopnavItemContent,children:s()})})},rt={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},ua=({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 i.jsx("nav",{"aria-label":d,className:B([rt.wizardTopnavContainer,rt[n]]),children:i.jsx("ol",{className:rt.wizardTopnav,children:r.map((s,l)=>i.jsx(Yt,{step:e[s],activeStepId:t,direction:n,index:l},s))})})};k.Accordion=ln,k.Button=Ye,k.CheckBoxIcon=Je,k.CheckBoxInput=Mt,k.CheckBoxList=zt,k.CheckBoxListItem=Tt,k.Container=Bt,k.ContentBox=Sr,k.DescriptionDetails=jr,k.DescriptionList=Ir,k.DescriptionTerm=Mr,k.Dialog=zr,k.DragAndDropFileInput=Br,k.ErrorBox=Pr,k.ErrorMessage=Ce,k.Footer=Dr,k.Header=Ge,k.InfoBox=Ar,k.InputField=Fr,k.Label=me,k.Lead=qr,k.List=Hr,k.ListItem=Vr,k.LoadingAnimation=Xr,k.NavigationBar=Kr,k.NavigationBarListItem=et,k.Paper=Zr,k.ProgressBar=Qr,k.RadioButtonIcon=Xt,k.RadioButtonInput=Wt,k.RadioButtonList=ea,k.RadioButtonListItem=ta,k.Select=na,k.Table=oa,k.Textarea=sa,k.ThemeProvider=ia,k.ToggleNavigationButton=ca,k.WizardNavigation=ua,k.WizardNavigationStep=Yt,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
|
|
33
|
+
Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let g=oe(),h;h=g;let v=h.pathname||"/",m=v;if(l!=="/"){let p=l.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(p.length).join("/")}let y=mt(e,{pathname:m});return G(u||y!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),G(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.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.`),Fn(y&&y.map(p=>Object.assign({},p,{params:Object.assign({},d,p.params),pathname:K([l,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:K([l,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),s,n,a)}function Pn(){let e=Xn(),t=$n(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=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:s},"ErrorBoundary")," or"," ",f.createElement("code",{style:s},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:r},n):null,c)}var Dn=f.createElement(Pn,null),Rn=class extends f.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?f.createElement(Q.Provider,{value:this.props.routeContext},f.createElement(He.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function An({routeContext:e,match:t,children:n}){let a=f.useContext(ce);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(Q.Provider,{value:e},n)}function Fn(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);F(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:g}=n,h=l.route.loader&&!u.hasOwnProperty(l.route.id)&&(!g||g[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 g,h=!1,v=null,m=null;n&&(g=s&&l.route.id?s[l.route.id]:void 0,v=l.route.errorElement||Dn,c&&(d<0&&u===0?(Et("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,m=null):d===u&&(h=!0,m=l.route.hydrateFallbackElement||null)));let y=t.concat(r.slice(0,u+1)),E=()=>{let p;return g?p=v:h?p=m:l.route.Component?p=f.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=i,f.createElement(An,{match:l,routeContext:{outlet:i,matches:y,isDataRoute:n!=null},children:p})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?f.createElement(Rn,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:E(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):E()},null)}function Ve(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function On(e){let t=f.useContext(ce);return F(t,Ve(e)),t}function qn(e){let t=f.useContext(Ie);return F(t,Ve(e)),t}function Hn(e){let t=f.useContext(Q);return F(t,Ve(e)),t}function Xe(e){let t=Hn(e),n=t.matches[t.matches.length-1];return F(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Vn(){return Xe("useRouteId")}function Xn(){var a;let e=f.useContext(He),t=qn("useRouteError"),n=Xe("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[n]}function Wn(){let{router:e}=On("useNavigate"),t=Xe("useNavigate"),n=f.useRef(!1);return wt(()=>{n.current=!0}),f.useCallback(async(r,s={})=>{G(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,G(!1,n))}f.memo(Un);function Un({routes:e,future:t,state:n}){return Bn(e,void 0,n,t)}var Ne="get",ze="application/x-www-form-urlencoded";function Te(e){return e!=null&&typeof e.tagName=="string"}function Yn(e){return Te(e)&&e.tagName.toLowerCase()==="button"}function Jn(e){return Te(e)&&e.tagName.toLowerCase()==="form"}function Gn(e){return Te(e)&&e.tagName.toLowerCase()==="input"}function Kn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zn(e,t){return e.button===0&&(!t||t==="_self")&&!Kn(e)}var Be=null;function Qn(){if(Be===null)try{new FormData(document.createElement("form"),0),Be=!1}catch{Be=!0}return Be}var er=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return e!=null&&!er.has(e)?(G(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ze}"`),null):e}function tr(e,t){let n,a,r,s,c;if(Jn(e)){let d=e.getAttribute("action");a=d?ne(d,t):null,n=e.getAttribute("method")||Ne,r=We(e.getAttribute("enctype"))||ze,s=new FormData(e)}else if(Yn(e)||Gn(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?ne(i,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||Ne,r=We(e.getAttribute("formenctype"))||We(d.getAttribute("enctype"))||ze,s=new FormData(d,e),!Qn()){let{name:l,type:u,value:g}=e;if(u==="image"){let h=l?`${l}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else l&&s.append(l,g)}}else{if(Te(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ne,a=null,r=ze,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 nr(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 rr(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 ar(e,t,n){let a=await Promise.all(e.map(async r=>{let s=t.routes[r.route.id];if(s){let c=await nr(s,n);return c.links?c.links():[]}return[]}));return lr(a.flat(1).filter(rr).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 g;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:((g=n[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:i.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function sr(e,t,{includeHydrateFallback:n}={}){return or(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 or(e){return[...new Set(e)]}function ir(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}function lr(e,t){let n=new Set;return new Set(t),e.reduce((a,r)=>{let s=JSON.stringify(ir(r));return n.has(s)||(n.add(s),a.push({key:s,link:r})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cr=new Set([100,101,204,205]);function dr(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&&ne(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function jt(){let e=f.useContext(ce);return Ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ur(){let e=f.useContext(Ie);return Ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ye=f.createContext(void 0);Ye.displayName="FrameworkContext";function Lt(){let e=f.useContext(Ye);return Ue(e,"You must render this element inside a <HydratedRouter> element"),e}function hr(e,t){let n=f.useContext(Ye),[a,r]=f.useState(!1),[s,c]=f.useState(!1),{onFocus:d,onBlur:i,onMouseEnter:l,onMouseLeave:u,onTouchStart:g}=t,h=f.useRef(null);f.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let y=p=>{p.forEach(x=>{c(x.isIntersecting)})},E=new IntersectionObserver(y,{threshold:.5});return h.current&&E.observe(h.current),()=>{E.disconnect()}}},[e]),f.useEffect(()=>{if(a){let y=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(y)}}},[a]);let v=()=>{r(!0)},m=()=>{r(!1),c(!1)};return n?e!=="intent"?[s,h,{}]:[s,h,{onFocus:Ee(d,v),onBlur:Ee(i,m),onMouseEnter:Ee(l,v),onMouseLeave:Ee(u,m),onTouchStart:Ee(g,v)}]:[!1,h,{}]}function Ee(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function mr({page:e,...t}){let{router:n}=jt(),a=f.useMemo(()=>mt(n.routes,e,n.basename),[n.routes,e,n.basename]);return a?f.createElement(pr,{page:e,matches:a,...t}):null}function fr(e){let{manifest:t,routeModules:n}=Lt(),[a,r]=f.useState([]);return f.useEffect(()=>{let s=!1;return ar(e,t,n).then(c=>{s||r(c)}),()=>{s=!0}},[e,t,n]),a}function pr({page:e,matches:t,...n}){let a=oe(),{manifest:r,routeModules:s}=Lt(),{basename:c}=jt(),{loaderData:d,matches:i}=ur(),l=f.useMemo(()=>kt(e,t,i,r,a,"data"),[e,t,i,r,a]),u=f.useMemo(()=>kt(e,t,i,r,a,"assets"),[e,t,i,r,a]),g=f.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let m=new Set,y=!1;if(t.forEach(p=>{var w;let x=r.routes[p.route.id];!x||!x.hasLoader||(!l.some(j=>j.route.id===p.route.id)&&p.route.id in d&&((w=s[p.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?y=!0:m.add(p.route.id))}),m.size===0)return[];let E=dr(e,c);return y&&m.size>0&&E.searchParams.set("_routes",t.filter(p=>m.has(p.route.id)).map(p=>p.route.id).join(",")),[E.pathname+E.search]},[c,d,a,r,l,t,e,s]),h=f.useMemo(()=>sr(u,r),[u,r]),v=fr(u);return f.createElement(f.Fragment,null,g.map(m=>f.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),h.map(m=>f.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),v.map(({key:m,link:y})=>f.createElement("link",{key:m,...y})))}function _r(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var $t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$t&&(window.__reactRouterVersion="7.6.2")}catch{}var St=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=f.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:g,...h},v){let{basename:m}=f.useContext(Z),y=typeof l=="string"&&St.test(l),E,p=!1;if(typeof l=="string"&&y&&(E=l,$t))try{let N=new URL(window.location.href),M=l.startsWith("//")?new URL(N.protocol+l):new URL(l),X=ne(M.pathname,m);M.origin===N.origin&&X!=null?l=X+M.search+M.hash:p=!0}catch{G(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=Nn(l,{relative:r}),[w,j,I]=hr(a,h),$=xr(l,{replace:c,state:d,target:i,preventScrollReset:u,relative:r,viewTransition:g});function P(N){t&&t(N),N.defaultPrevented||$(N)}let T=f.createElement("a",{...h,...I,href:E||x,onClick:p||s?t:P,ref:_r(v,j),target:i,"data-discover":!y&&n==="render"?"true":void 0});return w&&!y?f.createElement(f.Fragment,null,T,f.createElement(mr,{page:x})):T});ke.displayName="Link";var gr=f.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 g=Ce(c,{relative:l.relative}),h=oe(),v=f.useContext(Ie),{navigator:m,basename:y}=f.useContext(Z),E=v!=null&&kr(g)&&d===!0,p=m.encodeLocation?m.encodeLocation(g).pathname:g.pathname,x=h.pathname,w=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,p=p.toLowerCase()),w&&y&&(w=ne(w,y)||w);const j=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let I=x===p||!r&&x.startsWith(p)&&x.charAt(j)==="/",$=w!=null&&(w===p||!r&&w.startsWith(p)&&w.charAt(p.length)==="/"),P={isActive:I,isPending:$,isTransitioning:E},T=I?t:void 0,N;typeof a=="function"?N=a(P):N=[a,I?"active":null,$?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let M=typeof s=="function"?s(P):s;return f.createElement(ke,{...l,"aria-current":T,className:N,ref:u,style:M,to:c,viewTransition:d},typeof i=="function"?i(P):i)});gr.displayName="NavLink";var vr=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:a,replace:r,state:s,method:c=Ne,action:d,onSubmit:i,relative:l,preventScrollReset:u,viewTransition:g,...h},v)=>{let m=Cr(),y=Er(d,{relative:l}),E=c.toLowerCase()==="get"?"get":"post",p=typeof d=="string"&&St.test(d),x=w=>{if(i&&i(w),w.defaultPrevented)return;w.preventDefault();let j=w.nativeEvent.submitter,I=(j==null?void 0:j.getAttribute("formmethod"))||c;m(j||w.currentTarget,{fetcherKey:t,method:I,navigate:n,replace:r,state:s,relative:l,preventScrollReset:u,viewTransition:g})};return f.createElement("form",{ref:v,method:E,action:y,onSubmit:a?i:x,...h,"data-discover":!p&&e==="render"?"true":void 0})});vr.displayName="Form";function yr(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=f.useContext(ce);return F(t,yr(e)),t}function xr(e,{target:t,replace:n,state:a,preventScrollReset:r,relative:s,viewTransition:c}={}){let d=zn(),i=oe(),l=Ce(e,{relative:s});return f.useCallback(u=>{if(Zn(u,t)){u.preventDefault();let g=n!==void 0?n:Ae(i)===Ae(l);d(e,{replace:g,state:a,preventScrollReset:r,relative:s,viewTransition:c})}},[i,d,l,n,a,t,e,r,s,c])}var br=0,wr=()=>`__${String(++br)}__`;function Cr(){let{router:e}=It("useSubmit"),{basename:t}=f.useContext(Z),n=Vn();return f.useCallback(async(a,r={})=>{let{action:s,method:c,encType:d,formData:i,body:l}=tr(a,t);if(r.navigate===!1){let u=r.fetcherKey||wr();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 Er(e,{relative:t}={}){let{basename:n}=f.useContext(Z),a=f.useContext(Q);F(a,"useFormAction must be used inside a RouteContext");let[r]=a.matches.slice(-1),s={...Ce(e||".",{relative:t})},c=oe();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(g=>g).forEach(g=>d.append("index",g));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:K([n,s.pathname])),Ae(s)}function kr(e,t={}){let n=f.useContext(xt);F(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=Ce(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=ne(n.currentLocation.pathname,a)||n.currentLocation.pathname,c=ne(n.nextLocation.pathname,a)||n.nextLocation.pathname;return Se(r.pathname,c)!=null||Se(r.pathname,s)!=null}[...cr];const O={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:g,children:h,iconLeft:v,iconRight:m,...y})=>{const E=$=>{switch($){case"left":return O.hasArrowLeft;case"right":return O.hasArrowRight;default:return""}},p=s==="radio"?c?"primary":"secondary":t,x=B([O.button,O[p],O[n],E(a),i||s==="radio"?O.noHover:null,l&&O.rounded,d&&O.hasErrors,r?O.disabled:null,u?O.noMargin:null,v||m?O.hasIcon:null]),w={"aria-invalid":d||void 0,href:!r&&(g!=null&&g.length)?g:void 0,className:x,...y},j=$=>b.Children.toArray(le($)).map((T,N)=>{if(!b.isValidElement(T))return null;const M=T,X=M.type===ke&&typeof M.props=="object"&&M.props!==null&&"to"in M.props;return!r&&X?b.cloneElement(M,{className:x,key:`button-${N}`,to:M.props.to},v,o.jsx("span",{className:O.buttonContent,children:M.props.children}),m):b.createElement("button",{...w,key:`button-${N}`},v,o.jsx("span",{className:O.buttonContent,children:e||M.props&&M.props.children}),m)});if(s==="button")return o.jsxs("button",{type:"button",...w,children:[v,o.jsx("span",{className:O.buttonContent,children:e||h}),m]});if(s==="radio"){const $={...w};return delete $.href,o.jsxs("label",{className:x,children:[o.jsx("input",{...$,type:"radio"}),v,o.jsx("span",{className:O.buttonContent,children:e}),m]})}if(g!=null&&g.length&&!r){const $={...w};return"type"in $&&delete $.type,o.jsxs("a",{...$,children:[v,o.jsx("span",{className:O.buttonContent,children:e||h}),m]})}return b.isValidElement(h)&&h.type===ke?o.jsx(b.Fragment,{children:j(b.Children.toArray(h))}):o.jsxs("button",{...w,children:[v,o.jsx("span",{className:O.buttonContent,children:e||h}),m]})},de={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=[de.checkBoxIcon,t&&de.checked,n&&de.disabled,a&&de.showBox,r&&de.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:d,style:c,children:o.jsx("span",{"aria-hidden":!0,className:de.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",ue={checkBoxInput:"_checkBoxInput_f1w9m_1",requiredSymbol:"_requiredSymbol_f1w9m_6",contentOnly:"_contentOnly_f1w9m_13",disabled:"_disabled_f1w9m_13",labelText:"_labelText_f1w9m_19",hasErrors:"_hasErrors_f1w9m_27"},Mt=({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:g,"aria-controls":h,"aria-describedby":v,value:m})=>{const y=[ue.checkBoxInput,d&&ue.contentOnly,t&&ue.disabled,i&&ue.hasErrors].filter(Boolean).join(" "),E={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":v,value:m};return o.jsxs("label",{htmlFor:r,className:y,children:[d?o.jsx(Ge,{...E}):o.jsxs(o.Fragment,{children:[o.jsx(Ge,{...E}),o.jsx("input",{...p})]}),o.jsxs("span",{className:ue.labelText,children:[g,n&&o.jsx("img",{src:re,alt:"",className:ue.requiredSymbol})]})]})},Nt={checkBoxList:"_checkBoxList_1sp8d_1",requiredSymbol:"_requiredSymbol_1sp8d_16"},Pe={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=B([Pe.header,Pe[`size-${n}`],a&&Pe.bigHeader]),u=r!=null&&r.length&&typeof r=="string"?{"--label":`"${r}"`}:void 0,g=b.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:Pe.headerContainer,children:g})},zt=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>le(c).map((i,l)=>{var u;return b.isValidElement(i)&&((u=i.type)==null?void 0:u.displayName)==="RadioButtonListItem"?b.cloneElement(i,{requiredGroup:n,compact:a,key:`checkboxListItem-${l}`}):i});return o.jsxs("fieldset",{className:Nt.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:Nt.requiredSymbol})]}),s(b.Children.toArray(r))]})},he={checkBoxListItem:"_checkBoxListItem_jnb8z_1",contentOnly:"_contentOnly_jnb8z_26",compact:"_compact_jnb8z_26",disabled:"_disabled_jnb8z_41",checked:"_checked_jnb8z_44"},Tt=({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":g,"aria-describedby":h,children:v,value:m})=>{const y=B([he.checkBoxListItem,e&&he.checked,t&&he.disabled,i&&he.compact,d&&he.contentOnly,l&&he.hasErrors]),E={onChange:c??(()=>{}),checked:e,disabled:t,required:n,requiredGroup:a,contentOnly:d,hasErrors:l,"aria-controls":g,"aria-describedby":h,id:r,name:s,checkmarkCharacter:u,value:m};return o.jsx("div",{className:y,children:o.jsx(Mt,{...E,children:v})})},jr={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:jr.container,style:n,children:t})},me={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"},Lr=({title:e=null,titleSize:t="regular",content:n="",children:a,color:r="default",href:s=null})=>{const c=()=>{if(!e)return null;const h=`${me.title} ${me[t]}`;return o.jsx("h2",{className:h,children:e})},d=me[r]||"",i=s?me.link:"",l=`${me.contentBox} ${d} ${i}`.trim(),u=n!=null&&n.length?n:a,g=o.jsxs(o.Fragment,{children:[c(),o.jsx("div",{className:me.content,children:u})]});return s?o.jsx("a",{href:s,className:l,children:g}):o.jsx("div",{className:l,children:g})},Pt={descriptionDetails:"_descriptionDetails_1d1dj_1",compact:"_compact_1d1dj_7"},$r=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dd",{className:B([Pt.descriptionDetails,e&&Pt.compact]),style:{"--title-width":t||void 0},children:n}),Dt={descriptionList:"_descriptionList_w11ua_1",compact:"_compact_w11ua_13"},Sr=({compact:e=!1,titleWidth:t,children:n})=>{const a=r=>le(r).map((c,d)=>b.isValidElement(c)?b.cloneElement(c,{compact:e,titleWidth:t,key:`descriptionListItem-${d}`}):c);return b.createElement("dl",{className:B([Dt.descriptionList,e&&Dt.compact]),style:{"--title-width":t||void 0}},a(b.Children.toArray(n)))},Rt={descriptionTerm:"_descriptionTerm_uuapd_1",compact:"_compact_uuapd_8"},Ir=({compact:e=!1,titleWidth:t,children:n})=>o.jsx("dt",{className:B([Rt.descriptionTerm,e&&Rt.compact]),style:{"--title-width":t||void 0},children:n}),Mr="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",ae={dialog:"_dialog_1qsqp_19",dialogContainer:"_dialogContainer_1qsqp_33",dialogContent:"_dialogContent_1qsqp_38",closeButton:"_closeButton_1qsqp_45",isSidebar:"_isSidebar_1qsqp_60",modalInVertical:"_modalInVertical_1qsqp_1",noPadding:"_noPadding_1qsqp_74",left:"_left_1qsqp_113",modalInHorizontalLeft:"_modalInHorizontalLeft_1qsqp_1",right:"_right_1qsqp_120",modalInHorizontalRight:"_modalInHorizontalRight_1qsqp_1",dialogOverlay:"_dialogOverlay_1qsqp_128"},Nr=({maxWidth:e="none",noPadding:t,closeButton:n,onClickOutside:a,modal:r=!1,attachTo:s,hidden:c=!1,children:d})=>{const i=b.useRef(null),l=b.useRef(null),u=b.useCallback(v=>{v&&ut(v)},[]);b.useEffect(()=>{const v=y=>{y.key==="Escape"&&a&&a()},m=y=>{l.current&&!l.current.contains(y.target)&&a()};return document.addEventListener("mousedown",m),document.addEventListener("keydown",v,!1),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",v,!1)}},[a]),b.useEffect(()=>{i.current&&(i.current.close(),c||(r?i.current.showModal():i.current.show()))},[c,r]);const g=s&&B([ae.isSidebar,ae[s]]),h={"--max-width":e};return o.jsx("dialog",{className:B([ae.dialog,g]),ref:i,children:o.jsx("div",{ref:l,className:ae.dialogContainer,style:h,children:o.jsxs("div",{ref:u,className:B([ae.dialogContent,t&&ae.noPadding]),children:[n&&o.jsx("button",{"aria-label":"Lukk dialog",onClick:a,className:B([ae.closeButton,t&&ae.noPadding]),children:o.jsx("img",{src:Mr,alt:""})}),o.jsx("div",{"aria-live":"assertive",role:"dialog",children:d})]})})})},Ze={label:"_label_18de6_1",inline:"_inline_18de6_11",normalCursor:"_normalCursor_18de6_14"},fe=({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 b.createElement(n,d,a)},De={dragAndDropFileInput:"_dragAndDropFileInput_l98z1_1",requiredSymbol:"_requiredSymbol_l98z1_1",dragAndDropContainer:"_dragAndDropContainer_l98z1_8",highlighted:"_highlighted_l98z1_26"},At={errorMessage:"_errorMessage_i8u6b_7",errorSign:"_errorSign_i8u6b_19"},zr="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",je=({id:e,content:t=""})=>{const n=()=>({id:e!=null&&e.length?e:void 0,className:At.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?o.jsxs("span",{"aria-live":"polite",...n(),children:[o.jsx("img",{src:zr,alt:"",className:At.errorSign}),t]}):null},Tr=({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:g=!1,errorMessage:h="",required:v=!1,children:m,"data-transaction-name":y})=>{const[E,p]=b.useState(!1),x=b.useRef(null),w=b.useRef(null),j=S=>{S.preventDefault(),S.stopPropagation()},I=(S,D)=>S||D,$=()=>{var S;(S=w.current)==null||S.click()},P=()=>`${e}-errorMessage`,T={id:e,"aria-describedby":g&&(h!=null&&h.toString().length)?P():void 0,"aria-invalid":g?"true":void 0,name:t,required:v},N=l&&i||d,M=b.useCallback(()=>p(!0),[]),X=b.useCallback(()=>p(!1),[]),te=b.useCallback(S=>{var D;j(S),(D=S.dataTransfer)!=null&&D.files&&a(S.dataTransfer.files),p(!1)},[a]);return b.useEffect(()=>{const S=x.current;if(S)return["dragenter","dragover"].forEach(D=>S.addEventListener(D,M)),["dragleave","drop"].forEach(D=>S.addEventListener(D,X)),["dragenter","dragover","dragleave","drop"].forEach(D=>S.addEventListener(D,j)),S.addEventListener("drop",te),()=>{["dragenter","dragover","dragleave","drop"].forEach(D=>{S.removeEventListener(D,j),S.removeEventListener(D,M),S.removeEventListener(D,X)}),S.removeEventListener("drop",te)}},[a]),o.jsxs("div",{className:De.dragAndDropFileInput,children:[o.jsxs(fe,{htmlFor:e,children:[r,v&&o.jsx("img",{src:re,alt:"",className:De.requiredSymbol})]}),o.jsx("div",{children:m}),!s&&o.jsxs("div",{ref:x,className:`${De.dragAndDropContainer} ${E?De.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",{...T,ref:w,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:N,hasErrors:g,"data-transaction-name":y})]})]}),s&&o.jsx("span",{children:I(l,u)}),o.jsx(je,{id:P(),content:h})]})},pe={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"},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",Br=({type:e="warning",fullScreen:t=!1,children:n=""})=>o.jsx("div",{className:B([pe.errorBoxContainer,pe[e],t&&pe.fullScreen]),children:o.jsxs("div",{className:B([pe.errorBox,t&&pe.fullScreen]),children:[o.jsx("img",{src:Ft,alt:"",className:pe.infoSign}),n]})}),Pr={footer:"_footer_19fad_1"},Dr=({children:e})=>o.jsx("footer",{className:Pr.footer,children:o.jsx(Bt,{children:e})}),Ot={infoBox:"_infoBox_1mh67_7",infoSign:"_infoSign_1mh67_15"},Rr=({children:e=""})=>o.jsxs("div",{className:Ot.infoBox,children:[o.jsx("img",{src:Ft,alt:"",className:Ot.infoSign}),e]}),ie={inputField:"_inputField_17rmz_1",noMargin:"_noMargin_17rmz_4",requiredSymbol:"_requiredSymbol_17rmz_10",file:"_file_17rmz_17",input:"_input_17rmz_1",hasErrors:"_hasErrors_17rmz_50",fileInputContainer:"_fileInputContainer_17rmz_62"},Ar=({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:g,label:h="",contentOnly:v=!1,buttonColor:m="primary",buttonContent:y,selectedFileName:E,placeholder:p="",defaultContent:x="",min:w,max:j,role:I,"aria-describedby":$,"aria-autocomplete":P,hasErrors:T=!1,errorMessage:N="",noMargin:M=!1})=>{const X=k=>{const z=new Date(k);return`${String(z.getDate()).padStart(2,"0")}.${String(z.getMonth()+1).padStart(2,"0")}.${z.getFullYear()}`},te=(k,z)=>r==="date"?k?X(k):z:k||z,S=()=>`${e}-errorMessage`,D=i?{maxWidth:i}:{},ve={name:a,readOnly:d,disabled:s,required:c,type:r,role:I,id:e,min:w,max:j,onChange:t,onBlur:n,...l!==void 0?{value:l}:u!==void 0?{defaultValue:u}:{},placeholder:p,className:T?ie.hasErrors:void 0,"aria-describedby":T&&N?S():$,"aria-invalid":T?"true":void 0,"aria-autocomplete":P||void 0,style:D};return o.jsxs("div",{className:B([ie.inputField,ie[r],M&&ie.noMargin]),children:[o.jsxs(fe,{htmlFor:e,children:[h,c&&o.jsx("img",{src:re,alt:"",className:ie.requiredSymbol}),r==="file"&&o.jsxs("div",{className:ie.fileInputContainer,children:[o.jsx("span",{className:ie.input,children:E}),y&&o.jsx(Je,{color:m,inputType:"button",onClick:()=>{const k=document==null?void 0:document.getElementById(e);k==null||k.click()},content:y})]})]}),v?o.jsx("span",{children:te(l??u,x)}):o.jsx("input",{...ve},g||e),o.jsx(je,{id:S(),content:N})]})},Fr={lead:"_lead_176gy_1"},Or=({id:e,htmlTag:t="p",children:n})=>b.createElement(t,{className:Fr.lead,id:e||void 0},n),qt={list:"_list_16gsl_1",compact:"_compact_16gsl_10"},qr=({listStyle:e,compact:t=!1,ordered:n=!1,children:a})=>{const r=i=>le(i).map((u,g)=>b.isValidElement(u)?b.cloneElement(u,{compact:t,key:`listItem-${g}`}):u),s=n?"ol":"ul",c=n?"decimal":"disc";return b.createElement(s,{className:`${qt.list} ${t?qt.compact:""}`,style:{["--listStyle"]:e||c}},r(b.Children.toArray(a)))},Ht={listItem:"_listItem_33xs0_1",compact:"_compact_33xs0_5"},Hr=({compact:e=!1,children:t})=>{const n=B([Ht.listItem,e&&Ht.compact]);return o.jsx("li",{className:n,children:t})},Qe={loadingAnimation:"_loadingAnimation_hzd5u_1",fixed:"_fixed_hzd5u_17"},Vr=({fixed:e=!1,message:t=""})=>{const n=e?`${Qe.loadingAnimation} ${Qe.fixed}`:Qe.loadingAnimation;return o.jsx("div",{className:n,children:t})},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,Xr="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",Wr="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",A={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"},Ur=e=>(e==null?void 0:e.logo)??"",Yr=e=>(e==null?void 0:e.logoPadding)??"",Jr=e=>(e==null?void 0:e.appName)??"",Gr=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:n="",logoLinkTitle:a,openLogoLinkInNewTab:r,theme:s,compact:c,mainContentId:d,preventChildElementStacking:i=!1,children:l})=>{const[u,g]=b.useState(!1),h=()=>g(!u),v=x=>({padding:Yr(x)}),m=(x=e,w=0)=>x.length?o.jsx("ul",{className:A.primaryList,children:x.map((j,I)=>{const $=`${w}-${I}`;return j.listItems?o.jsxs("li",{children:[o.jsx("span",{children:j.name}),m(j.listItems,w+1)]},$):o.jsx(et,{listItem:j},$)})}):null,y=()=>t.length?o.jsx("ul",{className:A.secondaryList,children:t.map((x,w)=>o.jsx(et,{listItem:x},w))}):null,E=(x,w)=>{const j=Ur(s),I=Jr(s),$=x&&w?"":j&&I?`${I} logo`:"DIBK logo",P=j?o.jsx("img",{alt:$,src:j,style:v(s)}):o.jsx("img",{alt:$,src:c?Xr:Wr});return x!=null&&x.length?o.jsx("a",{href:x,title:w,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,children:P}):P},p=e.length>0||t.length>0;return o.jsxs("div",{className:B([c&&A.compact,A.navigationBarContainer]),children:[d&&o.jsx("a",{id:"main-content-link",href:`#${d}`,className:A.mainContentLink,children:o.jsx("span",{id:"main-content-link-text",children:"Hopp til hovedinnhold"})}),o.jsxs("div",{className:B([A.navigationBar,i&&A.preventStacking]),children:[o.jsx("div",{className:A.logoContainer,children:E(n,a)}),l&&o.jsx("div",{className:A.childElements,children:l}),p&&o.jsxs("button",{type:"button",className:`${A.menuToggle} ${u?A.active:""}`,onClick:h,"aria-expanded":u?"true":"false","aria-controls":"main-menu-dropdown",children:[!c&&"Meny",o.jsxs("span",{className:A.hamburgerIcon,children:[o.jsx("span",{className:A.line}),o.jsx("span",{className:A.line}),o.jsx("span",{className:A.line})]})]})]}),p&&o.jsx(b.Fragment,{children:o.jsx("div",{className:B([A.dropdownContainer,u&&A.active]),children:o.jsxs("div",{id:"main-menu-dropdown",className:A.dropdown,children:[m(),y()]})})})]})},tt={paper:"_paper_1lgl3_1",noMargin:"_noMargin_1lgl3_6",noPadding:"_noPadding_1lgl3_9"},Kr=({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})},Vt={progressBar:"_progressBar_t5aid_1",hasErrors:"_hasErrors_t5aid_23"},Zr=({progress:e=0,hasErrors:t=!1})=>o.jsx("div",{className:`${Vt.progressBar} ${t?Vt.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),Re={radioButtonIcon:"_radioButtonIcon_32fe0_1",hasErrors:"_hasErrors_32fe0_22",checked:"_checked_32fe0_32",disabled:"_disabled_32fe0_48"},Xt=({size:e="10px",checked:t=!1,disabled:n=!1,hasErrors:a=!1})=>{const r={height:e,width:e},s=[Re.radioButtonIcon,t&&Re.checked,n&&Re.disabled,a&&Re.hasErrors].filter(Boolean).join(" ");return o.jsx("span",{className:s,style:r})},_e={radioButtonInput:"_radioButtonInput_1i7cy_1",requiredSymbol:"_requiredSymbol_1i7cy_6",disabled:"_disabled_1i7cy_13",labelText:"_labelText_1i7cy_19",hasErrors:"_hasErrors_1i7cy_27"},Wt=({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:g,"aria-controls":h,"aria-describedby":v})=>{const m=[_e.radioButtonInput,e&&_e.checked,t&&_e.disabled,i&&_e.hasErrors].filter(Boolean).join(" "),y={checked:e,disabled:t,hasErrors:!d&&i},E={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":v};return o.jsxs("label",{htmlFor:r,className:m,children:[!d&&o.jsxs(o.Fragment,{children:[o.jsx(Xt,{...y}),o.jsx("input",{...E})]}),o.jsxs("span",{className:_e.labelText,children:[g,n&&o.jsx("img",{src:re,alt:"",className:_e.requiredSymbol})]})]})},Ut={radioButtonList:"_radioButtonList_1cyu3_1",requiredSymbol:"_requiredSymbol_1cyu3_16"},Qr=({legend:e,legendSize:t,required:n=!1,compact:a=!1,children:r})=>{const s=c=>le(c).map((i,l)=>{var u;return b.isValidElement(i)&&((u=i.type)==null?void 0:u.displayName)==="RadioButtonListItem"?b.cloneElement(i,{requiredGroup:n,compact:a,key:`radioButtonListItem-${l}`}):i});return o.jsxs("fieldset",{className:Ut.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:Ut.requiredSymbol})]}),s(b.Children.toArray(r))]})},ge={radioButtonListItem:"_radioButtonListItem_1ggab_1",contentOnly:"_contentOnly_1ggab_26",compact:"_compact_1ggab_26",disabled:"_disabled_1ggab_41",checked:"_checked_1ggab_44"},ea=({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":g,"aria-describedby":h,children:v})=>{const m=B([ge.radioButtonListItem,t&&ge.checked,n&&ge.disabled,l&&ge.compact,i&&ge.contentOnly,u&&ge.hasErrors]),y={onChange:d,inputValue:e,checked:t,disabled:n,required:a,requiredGroup:r,contentOnly:i,hasErrors:u,"aria-controls":g,"aria-describedby":h,id:c,name:s};return o.jsx("div",{className:m,children:o.jsx(Wt,{...y,children:v})})},ee={select:"_select_18o2z_1",requiredSymbol:"_requiredSymbol_18o2z_1",selectContainer:"_selectContainer_18o2z_8",selectListArrow:"_selectListArrow_18o2z_11",multipleSelectDropdown:"_multipleSelectDropdown_18o2z_40",multipleSelectElement:"_multipleSelectElement_18o2z_52",multiple:"_multiple_18o2z_40",hasErrors:"_hasErrors_18o2z_100"},ta=({id:e,onChange:t,name:n="",required:a=!1,disabled:r=!1,multiple:s=!1,options:c=[],width:d,value:i,defaultValue:l,label:u="",contentOnly:g=!1,keyAsContent:h=!1,placeholder:v="",placeholderValue:m="",defaultContent:y="",role:E,"aria-describedby":p,hasErrors:x=!1,errorMessage:w=""})=>{const[j,I]=b.useState(!1),$=b.useRef(null),P=b.useCallback(k=>{k&&ut(k)},[]),T=()=>I(!1);b.useEffect(()=>{const k=q=>{q.key==="Escape"&&T()},z=q=>{$.current&&!$.current.contains(q.target)&&T()};return document.addEventListener("mousedown",z),document.addEventListener("keydown",k),()=>{document.removeEventListener("mousedown",z),document.removeEventListener("keydown",k)}},[]);const N=(k,z)=>{const q=z.find(W=>typeof W=="object"?W.value===k:W===k);return typeof q=="object"?q.key??q.value:q},M=k=>typeof k=="object"?{key:k.key,value:k.value}:{key:k,value:k},X=()=>{var k;return((k=l||i)==null?void 0:k.map(z=>N(z,c)).join(", "))||null},te=k=>{const z=i??l??[],q=z.includes(k)?z.filter(W=>W!==k):[...z,k];t(q)},S=()=>c.map((k,z)=>{const{key:q,value:W}=M(k),_=(l||i||[]).includes(W);return o.jsx(Tt,{id:`${e}-${z}`,value:W,checked:_,onChange:()=>te(W),children:q},z)}),D=()=>`${e}-errorMessage`;if(g){const k=l||i||null;return o.jsxs("div",{className:ee.select,children:[o.jsx(fe,{htmlFor:e,children:u}),o.jsx("span",{children:k?h?N(k,c):k:y})]})}const ve={name:n,multiple:s,required:a,disabled:r,onChange:k=>t(k.target.value),id:e,role:E,className:B([x&&ee.hasErrors,s&&ee.multiple]),"aria-describedby":x&&w?D():p,"aria-invalid":x||void 0,style:d?{maxWidth:d}:void 0,...l!==void 0&&i===void 0?{defaultValue:l}:{value:i||""}};return o.jsxs("div",{className:ee.select,children:[o.jsxs(fe,{htmlFor:e,children:[u,a&&o.jsx("img",{src:re,alt:"",className:ee.requiredSymbol})]}),o.jsxs("div",{className:ee.selectContainer,style:d?{maxWidth:d}:void 0,children:[o.jsx("span",{className:ee.selectListArrow}),s?o.jsxs("div",{ref:$,children:[o.jsx("div",{onClick:()=>I(!j),className:ee.multipleSelectElement,children:X()}),j&&o.jsx("div",{ref:P,className:ee.multipleSelectDropdown,children:o.jsx(zt,{compact:!0,children:S()})})]}):o.jsxs("select",{...ve,children:[v&&o.jsx("option",{value:m,disabled:!0,children:v}),c.map(k=>{const{key:z,value:q}=M(k);return o.jsx("option",{value:q,children:z},z)})]})]}),o.jsx(je,{id:D(),content:w})]})},Le={table:"_table_miy9l_1","captionSide-top":"_captionSide-top_miy9l_14","captionSide-bottom":"_captionSide-bottom_miy9l_18","captionAlign-left":"_captionAlign-left_miy9l_22","captionAlign-center":"_captionAlign-center_miy9l_25","captionAlign-right":"_captionAlign-right_miy9l_28"},na=e=>e&&["left","center","right"].includes(e)?Le[`captionAlign-${e}`]:Le["captionAlign-left"],ra=e=>e&&["top","bottom"].includes(e)?Le[`captionSide-${e}`]:Le["captionSide-top"],aa=({captionAlign:e,captionSide:t,children:n})=>{const a=B([Le.table,na(e),ra(t)]);return o.jsx("table",{className:a,children:n})},nt={textarea:"_textarea_1596u_1",requiredSymbol:"_requiredSymbol_1596u_4",hasErrors:"_hasErrors_1596u_55"},sa=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},oa=({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:g,rows:h,label:v="",contentOnly:m=!1,placeholder:y="",defaultContent:E="","aria-describedby":p,hasErrors:x=!1,errorMessage:w=""})=>{const j=()=>`${e}-errorMessage`,I=!(l!=null&&l.length)&&(u!=null&&u.length)?u:void 0,$=g||`${e}-${sa(6)}`,P={...d&&{maxWidth:d},...i&&{resize:i}},T={name:a,readOnly:s,disabled:c,required:r,id:e,onChange:t,onBlur:n,value:I?void 0:l,defaultValue:I||void 0,placeholder:y,rows:h?parseInt(h,10):void 0,className:x?nt.hasErrors:"","aria-describedby":x&&w?j():p,"aria-invalid":x?"true":void 0,style:P};return o.jsxs("div",{className:nt.textarea,children:[o.jsxs(fe,{htmlFor:e,children:[v,r&&o.jsx("img",{src:re,alt:"",className:nt.requiredSymbol})]}),m?o.jsx("span",{children:l||u||E}):o.jsx("textarea",{...T},$),o.jsx(je,{id:j(),content:w})]})},ia=({theme:e,children:t})=>{const n=tn(e),a=rn(n);return nn("theme-provider",`:root {${a}}`),t},la={toggleNavigationButton:"_toggleNavigationButton_1eb2w_1"},ca=({id:e,htmlTag:t="button",showText:n,hideText:a,buttonProps:r={},isOpen:s=!1})=>b.createElement(t,{...r,className:la.toggleNavigationButton,id:e||void 0},s?a:n),Y={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"},da="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",Yt=({step:e,index:t,activeStepId:n,direction:a="vertical"})=>{const r=n===e.id,s=a==="vertical",c=B([Y.wizardTopnavItem,r&&Y.active,e.finished&&Y.finished,e.hasErrors&&Y.hasErrors,Y[a]]),d=r?"step":void 0,i=()=>o.jsxs(o.Fragment,{children:[o.jsx("span",{className:Y.stepNumber,children:t+1}),o.jsx("span",{className:Y.stepName,children:e.name}),s&&e.finished&&!r&&o.jsx("img",{src:da,alt:"",className:Y.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?o.jsx("li",{className:c,children:o.jsx(ke,{to:e.link,"aria-current":d,className:Y.wizardTopnavItemContent,children:i()})}):o.jsx("li",{className:c,children:o.jsx("span",{"aria-current":d,className:Y.wizardTopnavItemContent,children:i()})})},rt={wizardTopnavContainer:"_wizardTopnavContainer_qiy2o_1",wizardTopnav:"_wizardTopnav_qiy2o_1",vertical:"_vertical_qiy2o_6",horizontal:"_horizontal_qiy2o_11"},ua=({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:B([rt.wizardTopnavContainer,rt[n]]),children:o.jsx("ol",{className:rt.wizardTopnav,children:r.map((i,l)=>o.jsx(Yt,{step:e[i],activeStepId:t,direction:n,index:l},i))})})};C.Accordion=on,C.Button=Je,C.CheckBoxIcon=Ge,C.CheckBoxInput=Mt,C.CheckBoxList=zt,C.CheckBoxListItem=Tt,C.Container=Bt,C.ContentBox=Lr,C.DescriptionDetails=$r,C.DescriptionList=Sr,C.DescriptionTerm=Ir,C.Dialog=Nr,C.DragAndDropFileInput=Tr,C.ErrorBox=Br,C.ErrorMessage=je,C.Footer=Dr,C.Header=Ke,C.InfoBox=Rr,C.InputField=Ar,C.Label=fe,C.Lead=Or,C.List=qr,C.ListItem=Hr,C.LoadingAnimation=Vr,C.NavigationBar=Gr,C.NavigationBarListItem=et,C.Paper=Kr,C.ProgressBar=Zr,C.RadioButtonIcon=Xt,C.RadioButtonInput=Wt,C.RadioButtonList=Qr,C.RadioButtonListItem=ea,C.Select=ta,C.Table=aa,C.Textarea=oa,C.ThemeProvider=ia,C.ToggleNavigationButton=ca,C.WizardNavigation=ua,C.WizardNavigationStep=Yt,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
34
34
|
//# sourceMappingURL=index.umd.js.map
|