dibk-design 8.0.1 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,21 +1,62 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function Yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye={exports:{}},ve={exports:{}},$={};/** @license React v16.13.1
2
- * react-is.production.min.js
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function Hn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qe={exports:{}},Pe={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
3
4
  *
4
- * Copyright (c) Facebook, Inc. and its affiliates.
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
5
6
  *
6
7
  * This source code is licensed under the MIT license found in the
7
8
  * LICENSE file in the root directory of this source tree.
8
- */var vt;function Gt(){if(vt)return $;vt=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function C(c){if(typeof c=="object"&&c!==null){var F=c.$$typeof;switch(F){case r:switch(c=c.type,c){case m:case g:case a:case l:case s:case v:return c;default:switch(c=c&&c.$$typeof,c){case d:case u:case w:case b:case f:return c;default:return F}}case o:return F}}}function M(c){return C(c)===g}return $.AsyncMode=m,$.ConcurrentMode=g,$.ContextConsumer=d,$.ContextProvider=f,$.Element=r,$.ForwardRef=u,$.Fragment=a,$.Lazy=w,$.Memo=b,$.Portal=o,$.Profiler=l,$.StrictMode=s,$.Suspense=v,$.isAsyncMode=function(c){return M(c)||C(c)===m},$.isConcurrentMode=M,$.isContextConsumer=function(c){return C(c)===d},$.isContextProvider=function(c){return C(c)===f},$.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===r},$.isForwardRef=function(c){return C(c)===u},$.isFragment=function(c){return C(c)===a},$.isLazy=function(c){return C(c)===w},$.isMemo=function(c){return C(c)===b},$.isPortal=function(c){return C(c)===o},$.isProfiler=function(c){return C(c)===l},$.isStrictMode=function(c){return C(c)===s},$.isSuspense=function(c){return C(c)===v},$.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===a||c===g||c===l||c===s||c===v||c===y||typeof c=="object"&&c!==null&&(c.$$typeof===w||c.$$typeof===b||c.$$typeof===f||c.$$typeof===d||c.$$typeof===u||c.$$typeof===B||c.$$typeof===E||c.$$typeof===N||c.$$typeof===p)},$.typeOf=C,$}var P={};/** @license React v16.13.1
9
- * react-is.development.js
9
+ */var Ut;function qn(){if(Ut)return Pe;Ut=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(a,s,i){var f=null;if(i!==void 0&&(f=""+i),s.key!==void 0&&(f=""+s.key),"key"in s){i={};for(var h in s)h!=="key"&&(i[h]=s[h])}else i=s;return s=i.ref,{$$typeof:e,type:a,key:f,ref:s!==void 0?s:null,props:i}}return Pe.Fragment=t,Pe.jsx=r,Pe.jsxs=r,Pe}var Oe={},Ze={exports:{}},P={};/**
10
+ * @license React
11
+ * react.production.js
10
12
  *
11
- * Copyright (c) Facebook, Inc. and its affiliates.
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
12
14
  *
13
15
  * This source code is licensed under the MIT license found in the
14
16
  * LICENSE file in the root directory of this source tree.
15
- */var bt;function Ut(){return bt||(bt=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,l=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,g=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,v=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,B=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function C(h){return typeof h=="string"||typeof h=="function"||h===a||h===g||h===l||h===s||h===v||h===y||typeof h=="object"&&h!==null&&(h.$$typeof===w||h.$$typeof===b||h.$$typeof===f||h.$$typeof===d||h.$$typeof===u||h.$$typeof===B||h.$$typeof===E||h.$$typeof===N||h.$$typeof===p)}function M(h){if(typeof h=="object"&&h!==null){var j=h.$$typeof;switch(j){case r:var _e=h.type;switch(_e){case m:case g:case a:case l:case s:case v:return _e;default:var yt=_e&&_e.$$typeof;switch(yt){case d:case u:case w:case b:case f:return yt;default:return j}}case o:return j}}}var c=m,F=g,ce=d,Ie=f,Me=r,Se=u,fe=a,Oe=w,ze=b,te=o,$e=l,V=s,Z=v,ge=!1;function Pe(h){return ge||(ge=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),i(h)||M(h)===m}function i(h){return M(h)===g}function _(h){return M(h)===d}function I(h){return M(h)===f}function x(h){return typeof h=="object"&&h!==null&&h.$$typeof===r}function T(h){return M(h)===u}function S(h){return M(h)===a}function k(h){return M(h)===w}function L(h){return M(h)===b}function O(h){return M(h)===o}function q(h){return M(h)===l}function z(h){return M(h)===s}function D(h){return M(h)===v}P.AsyncMode=c,P.ConcurrentMode=F,P.ContextConsumer=ce,P.ContextProvider=Ie,P.Element=Me,P.ForwardRef=Se,P.Fragment=fe,P.Lazy=Oe,P.Memo=ze,P.Portal=te,P.Profiler=$e,P.StrictMode=V,P.Suspense=Z,P.isAsyncMode=Pe,P.isConcurrentMode=i,P.isContextConsumer=_,P.isContextProvider=I,P.isElement=x,P.isForwardRef=T,P.isFragment=S,P.isLazy=k,P.isMemo=L,P.isPortal=O,P.isProfiler=q,P.isStrictMode=z,P.isSuspense=D,P.isValidElementType=C,P.typeOf=M}()),P}var Et;function Rt(){return Et||(Et=1,process.env.NODE_ENV==="production"?ve.exports=Gt():ve.exports=Ut()),ve.exports}/*
16
- object-assign
17
- (c) Sindre Sorhus
18
- @license MIT
19
- */var qe,Ct;function Kt(){if(Ct)return qe;Ct=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function s(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var f={},d=0;d<10;d++)f["_"+String.fromCharCode(d)]=d;var m=Object.getOwnPropertyNames(f).map(function(u){return f[u]});if(m.join("")!=="0123456789")return!1;var g={};return"abcdefghijklmnopqrst".split("").forEach(function(u){g[u]=u}),Object.keys(Object.assign({},g)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return qe=s()?Object.assign:function(l,f){for(var d,m=a(l),g,u=1;u<arguments.length;u++){d=Object(arguments[u]);for(var v in d)r.call(d,v)&&(m[v]=d[v]);if(e){g=e(d);for(var y=0;y<g.length;y++)o.call(d,g[y])&&(m[g[y]]=d[g[y]])}}return m},qe}var Be,Tt;function We(){if(Tt)return Be;Tt=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Be=e,Be}var Ne,pt;function At(){return pt||(pt=1,Ne=Function.call.bind(Object.prototype.hasOwnProperty)),Ne}var Re,wt;function Zt(){if(wt)return Re;wt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=We(),o={},a=At();e=function(l){var f="Warning: "+l;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function s(l,f,d,m,g){if(process.env.NODE_ENV!=="production"){for(var u in l)if(a(l,u)){var v;try{if(typeof l[u]!="function"){var y=Error((m||"React class")+": "+d+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}v=l[u](f,u,m,d,null,r)}catch(w){v=w}if(v&&!(v instanceof Error)&&e((m||"React class")+": type specification of "+d+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof v+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),v instanceof Error&&!(v.message in o)){o[v.message]=!0;var b=g?g():"";e("Failed "+d+" type: "+v.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},Re=s,Re}var Ae,kt;function Jt(){if(kt)return Ae;kt=1;var e=Rt(),r=Kt(),o=We(),a=At(),s=Zt(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(d){var m="Warning: "+d;typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}});function f(){return null}return Ae=function(d,m){var g=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function v(i){var _=i&&(g&&i[g]||i[u]);if(typeof _=="function")return _}var y="<<anonymous>>",b={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:N(),arrayOf:C,element:M(),elementType:c(),instanceOf:F,node:Se(),objectOf:Ie,oneOf:ce,oneOfType:Me,shape:Oe,exact:ze};function w(i,_){return i===_?i!==0||1/i===1/_:i!==i&&_!==_}function p(i,_){this.message=i,this.data=_&&typeof _=="object"?_:{},this.stack=""}p.prototype=Error.prototype;function B(i){if(process.env.NODE_ENV!=="production")var _={},I=0;function x(S,k,L,O,q,z,D){if(O=O||y,z=z||L,D!==o){if(m){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var j=O+":"+L;!_[j]&&I<3&&(l("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),_[j]=!0,I++)}}return k[L]==null?S?k[L]===null?new p("The "+q+" `"+z+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new p("The "+q+" `"+z+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:i(k,L,O,q,z)}var T=x.bind(null,!1);return T.isRequired=x.bind(null,!0),T}function E(i){function _(I,x,T,S,k,L){var O=I[x],q=V(O);if(q!==i){var z=Z(O);return new p("Invalid "+S+" `"+k+"` of type "+("`"+z+"` supplied to `"+T+"`, expected ")+("`"+i+"`."),{expectedType:i})}return null}return B(_)}function N(){return B(f)}function C(i){function _(I,x,T,S,k){if(typeof i!="function")return new p("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var L=I[x];if(!Array.isArray(L)){var O=V(L);return new p("Invalid "+S+" `"+k+"` of type "+("`"+O+"` supplied to `"+T+"`, expected an array."))}for(var q=0;q<L.length;q++){var z=i(L,q,T,S,k+"["+q+"]",o);if(z instanceof Error)return z}return null}return B(_)}function M(){function i(_,I,x,T,S){var k=_[I];if(!d(k)){var L=V(k);return new p("Invalid "+T+" `"+S+"` of type "+("`"+L+"` supplied to `"+x+"`, expected a single ReactElement."))}return null}return B(i)}function c(){function i(_,I,x,T,S){var k=_[I];if(!e.isValidElementType(k)){var L=V(k);return new p("Invalid "+T+" `"+S+"` of type "+("`"+L+"` supplied to `"+x+"`, expected a single ReactElement type."))}return null}return B(i)}function F(i){function _(I,x,T,S,k){if(!(I[x]instanceof i)){var L=i.name||y,O=Pe(I[x]);return new p("Invalid "+S+" `"+k+"` of type "+("`"+O+"` supplied to `"+T+"`, expected ")+("instance of `"+L+"`."))}return null}return B(_)}function ce(i){if(!Array.isArray(i))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),f;function _(I,x,T,S,k){for(var L=I[x],O=0;O<i.length;O++)if(w(L,i[O]))return null;var q=JSON.stringify(i,function(D,h){var j=Z(h);return j==="symbol"?String(h):h});return new p("Invalid "+S+" `"+k+"` of value `"+String(L)+"` "+("supplied to `"+T+"`, expected one of "+q+"."))}return B(_)}function Ie(i){function _(I,x,T,S,k){if(typeof i!="function")return new p("Property `"+k+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var L=I[x],O=V(L);if(O!=="object")return new p("Invalid "+S+" `"+k+"` of type "+("`"+O+"` supplied to `"+T+"`, expected an object."));for(var q in L)if(a(L,q)){var z=i(L,q,T,S,k+"."+q,o);if(z instanceof Error)return z}return null}return B(_)}function Me(i){if(!Array.isArray(i))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var _=0;_<i.length;_++){var I=i[_];if(typeof I!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ge(I)+" at index "+_+"."),f}function x(T,S,k,L,O){for(var q=[],z=0;z<i.length;z++){var D=i[z],h=D(T,S,k,L,O,o);if(h==null)return null;h.data&&a(h.data,"expectedType")&&q.push(h.data.expectedType)}var j=q.length>0?", expected one of type ["+q.join(", ")+"]":"";return new p("Invalid "+L+" `"+O+"` supplied to "+("`"+k+"`"+j+"."))}return B(x)}function Se(){function i(_,I,x,T,S){return te(_[I])?null:new p("Invalid "+T+" `"+S+"` supplied to "+("`"+x+"`, expected a ReactNode."))}return B(i)}function fe(i,_,I,x,T){return new p((i||"React class")+": "+_+" type `"+I+"."+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function Oe(i){function _(I,x,T,S,k){var L=I[x],O=V(L);if(O!=="object")return new p("Invalid "+S+" `"+k+"` of type `"+O+"` "+("supplied to `"+T+"`, expected `object`."));for(var q in i){var z=i[q];if(typeof z!="function")return fe(T,S,k,q,Z(z));var D=z(L,q,T,S,k+"."+q,o);if(D)return D}return null}return B(_)}function ze(i){function _(I,x,T,S,k){var L=I[x],O=V(L);if(O!=="object")return new p("Invalid "+S+" `"+k+"` of type `"+O+"` "+("supplied to `"+T+"`, expected `object`."));var q=r({},I[x],i);for(var z in q){var D=i[z];if(a(i,z)&&typeof D!="function")return fe(T,S,k,z,Z(D));if(!D)return new p("Invalid "+S+" `"+k+"` key `"+z+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(I[x],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(i),null," "));var h=D(L,z,T,S,k+"."+z,o);if(h)return h}return null}return B(_)}function te(i){switch(typeof i){case"number":case"string":case"undefined":return!0;case"boolean":return!i;case"object":if(Array.isArray(i))return i.every(te);if(i===null||d(i))return!0;var _=v(i);if(_){var I=_.call(i),x;if(_!==i.entries){for(;!(x=I.next()).done;)if(!te(x.value))return!1}else for(;!(x=I.next()).done;){var T=x.value;if(T&&!te(T[1]))return!1}}else return!1;return!0;default:return!1}}function $e(i,_){return i==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function V(i){var _=typeof i;return Array.isArray(i)?"array":i instanceof RegExp?"object":$e(_,i)?"symbol":_}function Z(i){if(typeof i>"u"||i===null)return""+i;var _=V(i);if(_==="object"){if(i instanceof Date)return"date";if(i instanceof RegExp)return"regexp"}return _}function ge(i){var _=Z(i);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function Pe(i){return!i.constructor||!i.constructor.name?y:i.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Ae}var De,xt;function Qt(){if(xt)return De;xt=1;var e=We();function r(){}function o(){}return o.resetWarningCache=r,De=function(){function a(f,d,m,g,u,v){if(v!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}a.isRequired=a;function s(){return a}var l={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:o,resetWarningCache:r};return l.PropTypes=l,l},De}var Lt;function en(){if(Lt)return ye.exports;if(Lt=1,process.env.NODE_ENV!=="production"){var e=Rt(),r=!0;ye.exports=Jt()(e.isElement,r)}else ye.exports=Qt()();return ye.exports}var tn=en();const t=Yt(tn),R=e=>{var r;return((r=e==null?void 0:e.filter(o=>o))==null?void 0:r.join(" "))||""},Dt=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),nn=e=>{var r;return!!(e!=null&&e.colors)&&!!((r=Object.entries(e==null?void 0:e.colors))!=null&&r.length)&&Object.entries(e==null?void 0:e.colors).reduce((o,[a,s])=>(a!=null&&a.length&&(s!=null&&s.length)&&(o[`--color-${Dt(a)}`]=s),o),{})},rn=e=>{var r;return!!(e!=null&&e.sizes)&&!!((r=Object.entries(e==null?void 0:e.sizes))!=null&&r.length)&&Object.entries(e==null?void 0:e.sizes).reduce((o,[a,s])=>(a!=null&&a.length&&(s!=null&&s.length)&&(o[`--size-${Dt(a)}`]=s),o),{})},an=e=>({...nn(e),...rn(e)}),on=(e,r)=>{var a;if(typeof document>"u")return;const o=document.createElement("style");o.setAttribute("id",e),o.textContent=r,(a=document.getElementById(e))==null||a.remove(),document.head.appendChild(o)},ln=e=>Object.keys(e).reduce((r,o)=>`${r}${o}: ${e[o]};`,""),ie=e=>n.Children.map(e,r=>n.isValidElement(r)?r.type===n.Fragment?ie(r.props.children):n.cloneElement(r,{...r.props}):r),sn=e=>{if(typeof document>"u")return;const r=document.createElement("button");e.prepend(r),r.focus(),r.remove()},cn=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(r=>r),Ft=e=>{sn(e);const r=cn(e),o=r!=null&&r.length?r[0]:null,a=(r==null?void 0:r.length)>1?r[r.length-1]:o;o&&(o.onkeydown=s=>{s.keyCode===9&&s.shiftKey&&a.focus()}),a&&(a.onclick=()=>{o.focus()},a.onkeydown=s=>{s.keyCode===9&&!s.shiftKey&&(s.preventDefault(),o.focus())})},dn="_accordion_1o1ts_67",un="_panel_1o1ts_76",hn="_content_1o1ts_77",mn="_secondary_1o1ts_80",fn="_margin_1o1ts_88",gn="_panelText_1o1ts_122",_n="_panelChevron_1o1ts_128",yn="_expanded_1o1ts_155",vn="_initialized_1o1ts_171",bn="_hide_1o1ts_1",En="_show_1o1ts_1",H={accordion:dn,default:"_default_1o1ts_73",panel:un,content:hn,secondary:mn,margin:fn,panelText:gn,panelChevron:_n,expanded:yn,initialized:vn,hide:bn,show:En},Ye=e=>{const[r,o]=n.useState(e.expanded),[a,s]=n.useState(e.initialized),l=()=>{o(!r),s(!0),e.onToggleExpand&&e.onToggleExpand()};n.useEffect(()=>{o(e.expanded)},[e.expanded]);const f=()=>n.createElement("button",{...e.buttonProps,className:H.panel,onClick:l,"aria-expanded":r?"true":"false"},n.createElement("span",{className:H.panelText},e.title),n.createElement("span",{className:`${H.panelChevron} ${r?H.expanded:""}`})),d=R([H.accordion,e.color&&H[e.color],!e.noMargin&&H.margin]);return n.createElement("div",{className:d},f(),n.createElement("div",{className:`${H.content} ${a?H.initialized:""} ${r?H.expanded:""}`},e.children))};Ye.propTypes={title:t.string,titleSize:t.oneOf(["regular","large"]),content:t.string,color:t.oneOf(["default","secondary"]),expanded:t.bool,onToggleExpand:t.func,buttonProps:t.object};Ye.defaultProps={title:null,titleSize:"regular",href:null,content:"",color:"default",expanded:!1,noMargin:!1};const Cn="_button_w916g_161",Tn="_noMargin_w916g_189",pn="_regular_w916g_199",wn="_small_w916g_202",kn="_primary_w916g_213",xn="_noHover_w916g_217",Ln="_secondary_w916g_233",In="_disabled_w916g_252",Mn="_hasErrors_w916g_272",Sn="_rounded_w916g_278",On="_hasArrowLeft_w916g_282",zn="_pushprev_w916g_1",$n="_hasArrowRight_w916g_320",Pn="_pushnext_w916g_1",X={button:Cn,noMargin:Tn,regular:pn,small:wn,primary:kn,noHover:xn,secondary:Ln,disabled:In,hasErrors:Mn,rounded:Sn,hasArrowLeft:On,pushprev:zn,hasArrowRight:$n,pushnext:Pn},he=e=>{var m,g,u;const{linkComponent:r}=e,o=v=>{switch(v){case"left":return X.hasArrowLeft;case"right":return X.hasArrowRight;default:return""}};let a={...e,"aria-invalid":e.hasErrors||null,href:!e.disabled&&((m=e.href)!=null&&m.length)?e.href:null};delete a.noHover,delete a.hasErrors,delete a.rounded,delete a.inputType,delete a.color,delete a.content,delete a.arrow,delete a.noMargin,delete a.linkComponent;const s=(e==null?void 0:e.inputType)==="radio"?e.defaultChecked?"primary":"secondary":e.color,l=R([X.button,X[s],X[e.size],o(e.arrow),e.noHover||(e==null?void 0:e.inputType)==="radio"?X.noHover:null,e.rounded&&X.rounded,e.hasErrors&&X.hasErrors,e.disabled&&X.disabled,e.noMargin&&X.noMargin]),f=v=>ie(v).map((b,w)=>{var B;const p=r&&(b==null?void 0:b.type)===r&&((B=b==null?void 0:b.props)==null?void 0:B.to);return!a.disabled&&p?n.cloneElement(b,{className:l,key:`button-${w}`,to:b.props.to}):n.createElement("button",{...a,key:`button-${w}`,className:l},e.content||b.props.children)});return e.inputType==="button"?n.createElement("input",{...a,className:l,type:"button",value:e.content}):e.inputType==="radio"?n.createElement("label",{className:l},n.createElement("input",{...a,type:"radio"}),e.content):(g=e.href)!=null&&g.length&&!e.disabled?n.createElement("a",{...a,className:l},e.content||e.children):r&&((u=e==null?void 0:e.children)==null?void 0:u.type)===r?n.createElement(n.Fragment,null,f(n.Children.toArray(e.children))):n.createElement("button",{...a,className:l},e.content||e.children)};he.propTypes={content:t.string,color:t.oneOf(["primary","secondary"]),size:t.oneOf(["small","regular"]),arrow:t.oneOf(["none","left","right"]),disabled:t.bool,inputType:t.oneOf(["button","radio"]),name:t.string,defaultChecked:t.bool,required:t.bool,hasErrors:t.bool,"aria-describedby":t.string,noHover:t.bool,rounded:t.bool,href:t.string,onClick:t.func,noMargin:t.bool,linkComponent:t.elementType};he.defaultProps={color:"primary",size:"regular",disabled:!1,hasErrors:!1,noHover:!1,arrow:"none",noMargin:!1};const qn="_checkBoxIcon_1kc3w_1",Bn="_showBox_1kc3w_22",Nn="_hasErrors_1kc3w_27",Rn="_checked_1kc3w_37",An="_disabled_1kc3w_53",Dn="_checkmark_1kc3w_58",ne={checkBoxIcon:qn,showBox:Bn,hasErrors:Nn,checked:Rn,disabled:An,checkmark:Dn},de=e=>{let r={height:e.size,width:e.size,fontSize:e.size};const o={className:`${ne.checkBoxIcon} ${e.checked?ne.checked:""} ${e.disabled?ne.disabled:""} ${e.showBox?ne.showBox:""} ${e.hasErrors?ne.hasErrors:""}`,style:r};return n.createElement("span",{...o},n.createElement("span",{"aria-hidden":!0,className:ne.checkmark},e.checked?e.checkmarkCharacter:""))};de.propTypes={size:t.string,checked:t.bool,disabled:t.bool,showBox:t.bool,hasErrors:t.bool,checkmarkCharacter:t.string};de.defaultProps={size:"20px",checked:!1,disabled:!1,showBox:!0,hasErrors:!1,checkmarkCharacter:"✔"};const K="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",Fn="_checkBoxInput_f1w9m_1",Vn="_requiredSymbol_f1w9m_6",jn="_contentOnly_f1w9m_13",Hn="_disabled_f1w9m_13",Xn="_labelText_f1w9m_19",Wn="_hasErrors_f1w9m_27",re={checkBoxInput:Fn,requiredSymbol:Vn,contentOnly:jn,disabled:Hn,labelText:Xn,hasErrors:Wn},pe=e=>{const r={className:`${re.checkBoxInput} ${e.contentOnly?re.contentOnly:""} ${e.disabled?re.disabled:""} ${e.hasErrors?re.hasErrors:""}`,htmlFor:e.id},o={checked:e.checked,disabled:e.disabled,showBox:!e.contentOnly,hasErrors:e.contentOnly&&e.hasErrors,checkmarkCharacter:e.checkmarkCharacter},a={id:e.id,name:e.name||null,type:"checkbox",checked:e.checked,disabled:e.disabled,required:e.required||e.requiredGroup,onChange:e.onChange,tabIndex:e.tabIndex||null,"aria-controls":e["aria-controls"],"aria-invalid":e.hasErrors?"true":null,"aria-describedby":e["aria-describedby"]};return n.createElement("label",{...r},e.contentOnly?n.createElement(de,{...o}):n.createElement(n.Fragment,null,n.createElement(de,{...o}),n.createElement("input",{...a})),n.createElement("span",{className:re.labelText},e.children,e.required&&n.createElement("img",{src:K,alt:"",className:re.requiredSymbol})))};pe.propTypes={checked:t.bool,disabled:t.bool,required:t.bool,requiredGroup:t.bool,id:t.string.isRequired,name:t.string,onChange:t.func.isRequired,contentOnly:t.bool,hasErrors:t.bool,checkmarkCharacter:t.string,"aria-controls":t.string,"aria-describedby":t.string};pe.defaultProps={checked:!1,disabled:!1,required:!1,requiredGroup:!1,name:"",contentOnly:!1,hasErrors:!1,checkmarkCharacter:"✔"};const Yn="_checkBoxList_1sp8d_1",Gn="_requiredSymbol_1sp8d_16",It={checkBoxList:Yn,requiredSymbol:Gn},Un="_headerContainer_t2si7_1",Kn="_header_t2si7_1",Zn="_bigHeader_t2si7_16",be={headerContainer:Un,header:Kn,"size-1":"_size-1_t2si7_8",bigHeader:Zn,"size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},me=e=>{var f,d,m;const r=e.big?be.bigHeader:"",o=(f=e.htmlTag)!=null&&f.length?e.htmlTag:`h${e.size}`,a=be.header,s=be[`size-${e.size}`];let l=n.createElement(o,{className:R([a,s,r]),id:e.id||null,htmlFor:e.htmlFor||null,style:(d=e==null?void 0:e.label)!=null&&d.length?{"--label":`"${e.label}"`}:null},(m=e.content)!=null&&m.length?e.content:e.children);return n.createElement("div",{className:be.headerContainer}," ",l," ")};me.propTypes={id:t.string,content:t.string,size:t.oneOf([1,2,3,4,5]),big:t.bool,label:t.string,htmlTag:t.string,htmlFor:t.string};me.defaultProps={size:1};const Ge=({required:e,compact:r,legend:o,legendSize:a,children:s})=>{const l=f=>ie(f).map((m,g)=>{var v;return((v=m==null?void 0:m.props)==null?void 0:v.type)==="CheckBoxListItem"?n.cloneElement(m,{requiredGroup:e,compact:r,key:`checkboxListItem-${g}`}):m});return n.createElement("fieldset",{className:It.checkBoxList},o!=null&&o.length?n.createElement("legend",null,a?n.createElement(me,{size:a},o):o,e&&n.createElement("img",{src:K,alt:"",className:It.requiredSymbol})):null,l(n.Children.toArray(s)))};Ge.propTypes={legend:t.string,legendSize:t.oneOf([1,2,3,4,5]),required:t.bool,compact:t.bool};const Jn="_checkBoxListItem_jnb8z_1",Qn="_contentOnly_jnb8z_26",er="_compact_jnb8z_26",tr="_disabled_jnb8z_41",nr="_checked_jnb8z_44",ae={checkBoxListItem:Jn,contentOnly:Qn,compact:er,disabled:tr,checked:nr},we=e=>{const r=[ae.checkBoxListItem,e.checked?ae.checked:null,e.disabled?ae.disabled:null,e.compact?ae.compact:null,e.contentOnly?ae.contentOnly:null,e.hasErrors?ae.hasErrors:null],o=R(r),a={onChange:e.onChange,checked:e.checked,disabled:e.disabled,required:e.required,requiredGroup:e.requiredGroup,contentOnly:e.contentOnly,hasErrors:e.hasErrors,"aria-controls":e["aria-controls"],"aria-describedby":e["aria-describedby"],id:e.id,name:e.name,checkmarkCharacter:e.checkmarkCharacter};return n.createElement("div",{className:o},n.createElement(pe,{...a},e.children))};we.propTypes={checked:t.bool,disabled:t.bool,required:t.bool,requiredGroup:t.bool,id:t.string.isRequired,name:t.string,onChange:t.func.isRequired,contentOnly:t.bool,compact:t.bool,hasErrors:t.bool,checkmarkCharacter:t.string,"aria-controls":t.string,"aria-describedby":t.string};we.defaultProps={checked:!1,disabled:!1,required:!1,requiredGroup:!1,id:"",name:"",contentOnly:!1,hasErrors:!1,checkmarkCharacter:"✔",type:"CheckBoxListItem"};const rr="_container_f8z49_1",ar={container:rr},Ue=e=>{var o;const r={"--max-width":((o=e==null?void 0:e.maxWidth)==null?void 0:o.length)&&e.maxWidth};return n.createElement("div",{className:ar.container,style:r},e.children)};Ue.propTypes={maxWidth:t.string};const or="_contentBox_1ndvc_1",lr="_link_1ndvc_8",sr="_content_1ndvc_1",ir="_title_1ndvc_25",cr="_secondary_1ndvc_28",dr="_regular_1ndvc_36",ur="_large_1ndvc_45",J={contentBox:or,link:lr,default:"_default_1ndvc_21",content:sr,title:ir,secondary:cr,regular:dr,large:ur},Ke=e=>{var f;const r=()=>{let d=J.title+" "+J[e.titleSize];if(e.title)return n.createElement("h2",{className:d},e.title)};let o=" "+J[e.color],a=e.href?" "+J.link:"",s=J.contentBox+o+a;const l=(f=e.content)!=null&&f.length?e.content:e.children;return e.href?n.createElement("a",{href:e.href,className:s},r(),n.createElement("div",{className:J.content},l)):n.createElement("div",{className:s},r(),n.createElement("div",{className:J.content},l))};Ke.propTypes={title:t.string,titleSize:t.oneOf(["regular","large"]),content:t.string,children:t.any,color:t.oneOf(["default","secondary"])};Ke.defaultProps={title:null,titleSize:"regular",href:null,content:"",color:"default"};const hr="_descriptionDetails_1d1dj_1",mr="_compact_1d1dj_7",Mt={descriptionDetails:hr,compact:mr},Ze=({compact:e,titleWidth:r,children:o})=>n.createElement("dd",{className:R([Mt.descriptionDetails,e&&Mt.compact]),style:{"--title-width":r||null}},o);Ze.propTypes={compact:t.bool,titleWidth:t.string};Ze.defaultProps={compact:!1};const fr="_descriptionList_w11ua_1",gr="_compact_w11ua_13",St={descriptionList:fr,compact:gr},Je=({compact:e,titleWidth:r,children:o})=>{const a=l=>ie(l).map((d,m)=>n.cloneElement(d,{compact:e,titleWidth:r,key:`descriptionListItem-${m}`}));return(l=>n.createElement("dl",{className:R([St.descriptionList,!!e&&St.compact]),style:{"--title-width":r||null}},a(n.Children.toArray(l))))(o)};Je.propTypes={compact:t.bool,titleWidth:t.string};Je.defaultProps={compact:!1};const _r="_descriptionTerm_uuapd_1",yr="_compact_uuapd_8",Ot={descriptionTerm:_r,compact:yr},Qe=({compact:e,titleWidth:r,children:o})=>n.createElement("dt",{className:R([Ot.descriptionTerm,e&&Ot.compact]),style:{"--title-width":r||null}},o);Qe.propTypes={compact:t.bool,titleWidth:t.string};Qe.defaultProps={compact:!1};const vr="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",br="_dialog_1qsqp_19",Er="_dialogContainer_1qsqp_33",Cr="_dialogContent_1qsqp_38",Tr="_closeButton_1qsqp_45",pr="_isSidebar_1qsqp_60",wr="_modalInVertical_1qsqp_1",kr="_noPadding_1qsqp_74",xr="_left_1qsqp_113",Lr="_modalInHorizontalLeft_1qsqp_1",Ir="_right_1qsqp_120",Mr="_modalInHorizontalRight_1qsqp_1",Sr="_dialogOverlay_1qsqp_128",G={dialog:br,dialogContainer:Er,dialogContent:Cr,closeButton:Tr,isSidebar:pr,modalInVertical:wr,noPadding:kr,left:xr,modalInHorizontalLeft:Lr,right:Ir,modalInHorizontalRight:Mr,dialogOverlay:Sr},et=e=>{var f,d;const r=n.useRef(),o=n.useRef(),a=n.useCallback(m=>(m&&Ft(m),m),[]);n.useEffect(()=>{if(typeof document>"u")return;const m=u=>{u.keyCode===27&&e.onClickOutside&&e.onClickOutside()},g=u=>{o!=null&&o.current&&!o.current.contains(u.target)&&e.onClickOutside()};document.addEventListener("mousedown",g),document.addEventListener("keydown",m,!1)},[e,o]),n.useEffect(()=>{r.current.close(),e.hidden||(e.modal?r.current.showModal():r.current.show())},[r,e.hidden,e.modal]);const s=((f=e.attachTo)==null?void 0:f.length)&&R([G.isSidebar,G[e.attachTo]]),l={"--max-width":((d=e==null?void 0:e.maxWidth)==null?void 0:d.length)&&e.maxWidth};return n.createElement("dialog",{className:R([G.dialog,s]),ref:r},n.createElement("div",{ref:o,className:G.dialogContainer,style:l},n.createElement("div",{ref:a,className:R([G.dialogContent,e.noPadding&&G.noPadding])},e.closeButton?n.createElement("button",{"aria-label":"Lukk dialog",onClick:e.onClickOutside,className:R([G.closeButton,e.noPadding&&G.noPadding])},n.createElement("img",{src:vr,alt:""})):null,n.createElement("div",{"aria-live":"assertive",role:"dialog"},e.children))))};et.propTypes={maxWidth:t.string,noPadding:t.bool,closeButton:t.bool,onClickOutside:t.func.isRequired,modal:t.bool};et.defaultProps={maxWidth:"none",modal:!1};const Or="_errorMessage_i8u6b_7",zr="_errorSign_i8u6b_19",zt={errorMessage:Or,errorSign:zr},$r="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",ee=e=>{var o;const r=()=>{var a;return{id:(a=e.id)!=null&&a.length?e.id:null,className:zt.errorMessage}};return(o=e==null?void 0:e.content)!=null&&o.length?n.createElement("span",{"aria-live":"polite",...r()},n.createElement("img",{src:$r,alt:"",className:zt.errorSign}),e.content):null};ee.propTypes={id:t.string,content:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))])};ee.defaultProps={content:""};const Pr="_label_18de6_1",qr="_inline_18de6_11",Br="_normalCursor_18de6_14",Fe={label:Pr,inline:qr,normalCursor:Br},U=e=>{var l;let r={...e};const o=(l=e.htmlTag)!=null&&l.length?e.htmlTag:"label";delete r.inline,delete r.normalCursor,delete r.htmlTag;const a=`${Fe.label} ${e.inline?Fe.inline:""} ${e.normalCursor?Fe.normalCursor:""}`;return n.createElement(o,{...r,className:a,id:e.id||null},e.children)};U.propTypes={inline:t.bool,normalCursor:t.bool,htmlTag:t.string};U.defaultProps={inline:!1,normalCursor:!1,htmlTag:"label"};const Nr="_dragAndDropFileInput_l98z1_1",Rr="_requiredSymbol_l98z1_1",Ar="_dragAndDropContainer_l98z1_8",Dr="_highlighted_l98z1_26",Ee={dragAndDropFileInput:Nr,requiredSymbol:Rr,dragAndDropContainer:Ar,highlighted:Dr},tt=e=>{var v,y;const[r,o]=n.useState(!1),a=n.useRef(),s=n.useRef(),l=b=>{b.preventDefault(),b.stopPropagation()},f=(b,w)=>b||w,d=()=>{s.current.click()},m=()=>`${e.id}-errorMessage`,g={id:e.id,"aria-describedby":e.hasErrors&&((v=e.errorMessage)!=null&&v.length)?m():(y=e["aria-describedby"])!=null&&y.length?e["aria-describedby"]:null,"aria-invalid":e.hasErrors?"true":null,name:e.name,required:e.required};let u;return e.selectedFileName?u=e.buttonContentWhenSelectedFile?e.buttonContentWhenSelectedFile:e.buttonContent:u=e.buttonContent,n.useEffect(()=>{const b=p=>{e.onDragAndDropChange(p)},w=p=>{const B=p.dataTransfer.files;b(B)};if(a!=null&&a.current)return a.current.addEventListener("dragenter",l,!1),a.current.addEventListener("dragover",l,!1),a.current.addEventListener("dragleave",l,!1),a.current.addEventListener("drop",l,!1),a.current.addEventListener("dragenter",()=>{o(!0)},!1),a.current.addEventListener("dragover",()=>{o(!0)},!1),a.current.addEventListener("dragleave",()=>{o(!1)},!1),a.current.addEventListener("drop",()=>{o(!1)},!1),a.current.addEventListener("drop",w,!1),()=>{a.current.removeEventListener("dragenter",l,!1),a.current.removeEventListener("dragover",l,!1),a.current.removeEventListener("dragleave",l,!1),a.current.removeEventListener("drop",l,!1),a.current.removeEventListener("dragenter",()=>o(!0),!1),a.current.removeEventListener("dragover",()=>o(!0),!1),a.current.removeEventListener("dragleave",()=>o(!1),!1),a.current.removeEventListener("drop",()=>o(!1),!1),a.current.removeEventListener("drop",w,!1)}},[e]),n.createElement("div",{className:Ee.dragAndDropFileInput},n.createElement(U,{htmlFor:e.id},e.label,e.required&&n.createElement("img",{src:K,alt:"",className:Ee.requiredSymbol})),n.createElement("div",null,e.children),e.contentOnly?null:n.createElement("div",{ref:a,className:`${Ee.dragAndDropContainer} ${r?Ee.highlighted:""}`},e.selectedFileName?n.createElement("div",null,n.createElement("span",null,n.createElement("b",null,"Valgt fil:")," ",e.selectedFileName)):n.createElement("div",null,"Slipp fil her"),n.createElement("input",{...g,ref:s,type:"file",onChange:e.onSelectChange}),e.buttonContent?n.createElement(n.Fragment,null,n.createElement("div",null,e.selectedFileName?"":"eller klikk på knappen for å velge fil"),n.createElement(he,{size:"small",type:"button",color:e.buttonColor,onClick:()=>d(),content:u,hasErrors:e.hasErrors,"data-transaction-name":e["data-transaction-name"]})):null),e.contentOnly?n.createElement("span",null,f(e.selectedFileName,e.defaultContent)):"",n.createElement(ee,{id:m(),content:e.errorMessage}))};tt.propTypes={id:t.string.isRequired,name:t.string,onSelectChange:t.func.isRequired,onDragAndDropChange:t.func.isRequired,label:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),contentOnly:t.bool,buttonColor:t.string,buttonContent:t.string,buttonContentWhenSelectedFile:t.string,selectedFileName:t.string,defaultContent:t.string,hasErrors:t.bool,errorMessage:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),required:t.bool,"data-transaction-name":t.string};tt.defaultProps={label:"",contentOnly:!1,buttonColor:"primary",defaultContent:"",hasErrors:!1,errorMessage:"",required:!1};const Fr="_errorBoxContainer_88ulw_7",Vr="_messageIn_88ulw_1",jr="_warning_88ulw_14",Hr="_error_88ulw_7",Xr="_fullScreen_88ulw_22",Wr="_errorBox_88ulw_7",Yr="_infoSign_88ulw_38",oe={errorBoxContainer:Fr,messageIn:Vr,warning:jr,error:Hr,fullScreen:Xr,errorBox:Wr,infoSign:Yr},Vt="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",nt=e=>n.createElement("div",{className:R([oe.errorBoxContainer,oe[e.type],e.fullScreen&&oe.fullScreen])},n.createElement("div",{className:R([oe.errorBox,e.fullScreen&&oe.fullScreen])},n.createElement("img",{src:Vt,alt:"",className:oe.infoSign}),e.children));nt.propTypes={type:t.oneOf(["warning","error"]),fullScreen:t.bool};nt.defaultProps={children:"",type:"warning",fullScreen:!1};const Gr="_footer_19fad_1",Ur={footer:Gr},Kr=e=>n.createElement("footer",{className:Ur.footer},n.createElement(Ue,null,e.children)),Zr="_infoBox_1mh67_7",Jr="_infoSign_1mh67_15",$t={infoBox:Zr,infoSign:Jr},jt=e=>n.createElement("div",{className:$t.infoBox},n.createElement("img",{src:Vt,alt:"",className:$t.infoSign}),e.children);jt.defaultProps={children:""};const rt=e=>{let r="";const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=o.length;for(let s=0;s<e;s++)r+=o.charAt(Math.floor(Math.random()*a));return r},Qr="_inputField_17rmz_1",ea="_noMargin_17rmz_4",ta="_requiredSymbol_17rmz_10",na="_file_17rmz_17",ra="_input_17rmz_1",aa="_hasErrors_17rmz_50",oa="_fileInputContainer_17rmz_62",Q={inputField:Qr,noMargin:ea,requiredSymbol:ta,file:na,input:ra,hasErrors:aa,fileInputContainer:oa},at=e=>{var m;const r=g=>{if(!g)return null;const u=new Date(g),v=u.getFullYear(),y=u.getMonth()+1<10?`0${u.getMonth()+1}`:u.getMonth()+1;return`${u.getDate()<10?`0${u.getDate()}`:u.getDate()}.${y}.${v}`},o=(g,u)=>e.type==="date"?g?r(g):u:g||u,a=()=>`${e.id}-errorMessage`,s=(g,u,v)=>{var y,b;return{name:e.name,readOnly:e.readOnly,disabled:e.disabled,required:e.required,type:e.type,role:e.role,id:e.id,key:u||`${e.id}-${rt(6)}`,min:e.min||null,max:e.max||null,onChange:e.onChange,onBlur:e.onBlur,[g?"defaultValue":"value"]:g||e.value,placeholder:e.placeholder||null,className:e.hasErrors?Q.hasErrors:null,"aria-describedby":e.hasErrors&&((y=e.errorMessage)!=null&&y.length)?a():(b=e["aria-describedby"])!=null&&b.length?e["aria-describedby"]:null,"aria-invalid":e.hasErrors?"true":null,"aria-autocomplete":e["aria-autocomplete"]||null,style:v}},l=e.defaultValue?e.defaultValue:e.value||null,f=e.elementKey||null,d={...((m=e.width)==null?void 0:m.length)&&{maxWidth:e.width}};return n.createElement("div",{className:R([Q.inputField,Q[e.type],e.noMargin&&Q.noMargin])},n.createElement(U,{htmlFor:e.id},e.label,e.required&&n.createElement("img",{src:K,alt:"",className:Q.requiredSymbol}),e.type==="file"?n.createElement("div",{className:Q.fileInputContainer},n.createElement("span",{className:Q.input},e.selectedFileName),e.buttonContent?n.createElement(he,{color:e.buttonColor,onClick:()=>{if(typeof document<"u"){const g=document.getElementById(e.id);g==null||g.click()}},content:e.buttonContent,type:"button"}):null):null),e.contentOnly?n.createElement("span",null,o(e.value||e.defaultValue,e.defaultContent)):n.createElement("input",{...s(l,f,d)}),n.createElement(ee,{id:a(),content:e.errorMessage}))};at.propTypes={id:t.string.isRequired,onChange:t.func.isRequired,onBlur:t.func,name:t.string,type:t.string,disabled:t.bool,required:t.bool,width:t.string,value:t.any,defaultValue:t.any,elementKey:t.string,label:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),contentOnly:t.bool,buttonColor:t.oneOf(["primary","secondary"]),buttonContent:t.string,selectedFileName:t.string,dateFormat:t.string,placeholder:t.string,defaultContent:t.string,"aria-describedby":t.string,"aria-autocomplete":t.oneOf(["none","inline","list","both"]),hasErrors:t.bool,errorMessage:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),noMargin:t.bool};at.defaultProps={onChange:()=>!1,name:"",type:"text",disabled:!1,required:!1,label:"",contentOnly:!1,buttonColor:"primary",dateFormat:"d. MMMM, yyyy",placeholder:"",defaultContent:"",hasErrors:!1,errorMessage:"",noMargin:!1};const la="_lead_176gy_1",sa={lead:la},ot=({id:e,htmlTag:r,children:o})=>{const a=sa.lead;return n.createElement(r,{className:a,id:e||null},o)};ot.propTypes={id:t.string,htmlTag:t.string};ot.defaultProps={htmlTag:"p"};const ia="_list_16gsl_1",ca="_compact_16gsl_10",Pt={list:ia,compact:ca},lt=e=>{const r=a=>ie(a).map((l,f)=>n.cloneElement(l,{compact:e.compact,key:`listItem-${f}`}));return(a=>{let s=e.ordered?"ol":"ul";const l=e.ordered?"decimal":"disc";return n.createElement(s,{className:`${Pt.list} ${e.compact?Pt.compact:""}`,style:{["--listStyle"]:e.listStyle||l}},r(n.Children.toArray(a)))})(e.children)};lt.propTypes={listStyle:t.string,compact:t.bool,ordered:t.bool};lt.defaultProps={ordered:!1,compact:!1};const da="_listItem_33xs0_1",ua="_compact_33xs0_5",qt={listItem:da,compact:ua},st=({compact:e,children:r})=>n.createElement("li",{className:R([qt.listItem,e&&qt.compact])},r);st.propTypes={compact:t.bool};st.defaultProps={compact:!1};const ha="_loadingAnimation_hzd5u_1",ma="_fixed_hzd5u_17",Ve={loadingAnimation:ha,fixed:ma},it=e=>n.createElement("div",{className:e.fixed?Ve.loadingAnimation+" "+Ve.fixed:Ve.loadingAnimation},e.message);it.propTypes={fixed:t.bool,active:t.bool,message:t.string};it.defaultProps={fixed:!1,active:!0,message:""};const Te=e=>typeof e.listItem=="string"?n.createElement("li",null,n.createElement("span",null,e.listItem)):typeof e.listItem=="object"?n.createElement("li",null,n.createElement("a",{href:e.listItem.href},e.listItem.name)):null;Te.propTypes={listItem:t.oneOfType([t.string,t.object])};const fa=e=>(e==null?void 0:e.logo)||null,ga=e=>(e==null?void 0:e.logoPadding)||null,_a=e=>(e==null?void 0:e.appName)||null,ya="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",va="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",ba="_navigationBarContainer_n1cc0_1",Ea="_mainContentLink_n1cc0_1",Ca="_compact_n1cc0_30",Ta="_navigationBar_n1cc0_1",pa="_preventStacking_n1cc0_63",wa="_logoContainer_n1cc0_82",ka="_childElements_n1cc0_91",xa="_menuToggle_n1cc0_97",La="_hamburgerIcon_n1cc0_125",Ia="_active_n1cc0_161",Ma="_dropdownContainer_n1cc0_170",Sa="_dropdown_n1cc0_170",Oa="_primaryList_n1cc0_195",za="_secondaryList_n1cc0_196",$a="_line_n1cc0_392",A={navigationBarContainer:ba,mainContentLink:Ea,compact:Ca,navigationBar:Ta,preventStacking:pa,logoContainer:wa,childElements:ka,menuToggle:xa,hamburgerIcon:La,active:Ia,dropdownContainer:Ma,dropdown:Sa,primaryList:Oa,secondaryList:za,line:$a},ct=e=>{var g,u,v;const[r,o]=n.useState(!1),a=()=>{o(!r)},s=y=>({padding:ga(y)}),l=(y=e.primaryListItems,b=0)=>{let w=y.map((p,B)=>{let E=b+"-"+B;return p.listItems!==void 0?n.createElement("li",{key:E},n.createElement("span",null,p.name),l(p.listItems,b+1)):n.createElement(Te,{listItem:p,key:E,theme:e.theme})});return!!(w!=null&&w.length)&&n.createElement("ul",{className:A.primaryList},w)},f=()=>{let y=e.secondaryListItems.map((b,w)=>n.createElement(Te,{listItem:b,key:w,theme:e.theme}));return!!(y!=null&&y.length)&&n.createElement("ul",{className:A.secondaryList},y)},d=(y,b)=>{const w=fa(e.theme),p=_a(e.theme),B=()=>y&&b?"":w&&p?`${p} logo`:"DIBK logo",E=()=>{const C=B();return w?n.createElement("img",{alt:C,src:w,style:s(e.theme)}):n.createElement("img",{alt:C,src:e.compact?ya:va})},N={target:e.openLogoLinkInNewTab?"_blank":null,rel:e.openLogoLinkInNewTab?"noopener noreferrer":null};return y&&y.length?n.createElement("a",{...N,href:y,title:b},E()):E()},m=!!((g=e.primaryListItems)!=null&&g.length)||!!((u=e.secondaryListItems)!=null&&u.length);return n.createElement("div",{className:R([e.compact&&A.compact,A.navigationBarContainer])},((v=e.mainContentId)==null?void 0:v.length)&&n.createElement("a",{id:"main-content-link",href:`#${e.mainContentId}`,className:A.mainContentLink},n.createElement("span",{id:"main-content-link-text"},"Hopp til hovedinnhold")),n.createElement("div",{className:R([A.navigationBar,e.preventChildElementStacking&&A.preventStacking])},n.createElement("div",{className:A.logoContainer},d(e.logoLink,e.logoLinkTitle)),!!e.children&&n.createElement("div",{className:A.childElements},e.children),m&&n.createElement("button",{type:"button",className:`${A.menuToggle} ${r?A.active:""}`,onClick:()=>a(),"aria-expanded":r?"true":"false","aria-controls":"main-menu-dropdown"},!e.compact&&"Meny",n.createElement("span",{className:A.hamburgerIcon},n.createElement("span",{className:A.line}),n.createElement("span",{className:A.line}),n.createElement("span",{className:A.line})))),m&&n.createElement(n.Fragment,null,n.createElement("div",{className:R([A.dropdownContainer,r&&A.active])},n.createElement("div",{id:"main-menu-dropdown",className:A.dropdown},l(),f()))))};ct.propTypes={primaryListItems:t.array,secondaryListItems:t.array,logoLink:t.string,logoLinkTitle:t.string,openLogoLinkInNewTab:t.bool,theme:t.object,preventChildElementStacking:t.bool};ct.defaultProps={primaryListItems:[],secondaryListItems:[],logoLink:null,preventChildElementStacking:!1};const Pa="_paper_1lgl3_1",qa="_noMargin_1lgl3_6",Ba="_noPadding_1lgl3_9",je={paper:Pa,noMargin:qa,noPadding:Ba},dt=e=>n.createElement("div",{className:`${je.paper} ${e.noMargin?je.noMargin:""} ${e.noPadding?je.noPadding:""}`},e.children);dt.propTypes={noMargin:t.bool,noPadding:t.bool};dt.defaultProps={noMargin:!1,noPadding:!1};const Na="_progressBar_t5aid_1",Ra="_hasErrors_t5aid_23",Bt={progressBar:Na,hasErrors:Ra},ut=e=>n.createElement("div",{className:`${Bt.progressBar} ${e.hasErrors?Bt.hasErrors:""}`,role:"progressbar","aria-valuenow":e.progress||0,"aria-valuemin":"0","aria-valuemax":"100",style:{["--value"]:e.progress||0}});ut.propTypes={progress:t.number,hasErrors:t.bool};ut.defaultProps={progress:0,hasErrors:!1};const Aa="_radioButtonIcon_32fe0_1",Da="_hasErrors_32fe0_22",Fa="_checked_32fe0_32",Va="_disabled_32fe0_48",Ce={radioButtonIcon:Aa,hasErrors:Da,checked:Fa,disabled:Va},ke=e=>{let r={height:e.size,width:e.size};const o={className:`${Ce.radioButtonIcon} ${e.checked?Ce.checked:""} ${e.disabled?Ce.disabled:""} ${e.hasErrors?Ce.hasErrors:""}`,style:r};return n.createElement("span",{...o})};ke.propTypes={size:t.string,checked:t.bool,disabled:t.bool,hasErrors:t.bool};ke.defaultProps={size:"10px",checked:!1,disabled:!1,hasErrors:!1};const ja="_radioButtonInput_1i7cy_1",Ha="_requiredSymbol_1i7cy_6",Xa="_disabled_1i7cy_13",Wa="_labelText_1i7cy_19",Ya="_hasErrors_1i7cy_27",le={radioButtonInput:ja,requiredSymbol:Ha,disabled:Xa,labelText:Wa,hasErrors:Ya},xe=e=>{const r={className:`${le.radioButtonInput} ${e.checked?le.checked:""} ${e.disabled?le.disabled:""} ${e.hasErrors?le.hasErrors:""}`,htmlFor:e.id},o={checked:e.checked,disabled:e.disabled,hasErrors:!e.contentOnly&&e.hasErrors},a={id:e.id,name:e.name||null,type:"radio",value:e.inputValue,checked:e.checked,disabled:e.disabled,required:e.required||e.requiredGroup,onChange:e.onChange,tabIndex:e.tabIndex||null,"aria-controls":e["aria-controls"],"aria-invalid":e.hasErrors?"true":null,"aria-describedby":e["aria-describedby"]};return n.createElement("label",{...r},e.contentOnly?null:n.createElement(n.Fragment,null,n.createElement(ke,{...o}),n.createElement("input",{...a})),n.createElement("span",{className:le.labelText},e.children,e.required&&n.createElement("img",{src:K,alt:"",className:le.requiredSymbol})))};xe.propTypes={checked:t.bool,disabled:t.bool,required:t.bool,requiredGroup:t.bool,id:t.string.isRequired,name:t.string,onChange:t.func,contentOnly:t.bool,hasErrors:t.bool,inputValue:t.string.isRequired,"aria-controls":t.string,"aria-describedby":t.string};xe.defaultProps={name:"",checked:!1,disabled:!1,required:!1,requiredGroup:!1,contentOnly:!1,hasErrors:!1};const Ga="_radioButtonList_1cyu3_1",Ua="_requiredSymbol_1cyu3_16",Nt={radioButtonList:Ga,requiredSymbol:Ua},Ht=({required:e,compact:r,legend:o,legendSize:a,children:s})=>{const l=f=>ie(f).map((m,g)=>{var v;return((v=m==null?void 0:m.props)==null?void 0:v.type)==="RadioButtonListItem"?n.cloneElement(m,{requiredGroup:e,compact:r,key:`radioButtonListItem-${g}`}):m});return n.createElement("fieldset",{className:Nt.radioButtonList},o!=null&&o.length?n.createElement("legend",null,a?n.createElement(me,{size:a},o):o,e&&n.createElement("img",{src:K,alt:"",className:Nt.requiredSymbol})):null,l(n.Children.toArray(s)))};Ht.propTypes={legend:t.string,legendSize:t.oneOf([1,2,3,4,5]),required:t.bool,compact:t.bool};const Ka="_radioButtonListItem_1ggab_1",Za="_contentOnly_1ggab_26",Ja="_compact_1ggab_26",Qa="_disabled_1ggab_41",eo="_checked_1ggab_44",se={radioButtonListItem:Ka,contentOnly:Za,compact:Ja,disabled:Qa,checked:eo},ht=e=>{const r=[se.radioButtonListItem,e.checked?se.checked:null,e.disabled?se.disabled:null,e.compact?se.compact:null,e.contentOnly?se.contentOnly:null,e.hasErrors?se.hasErrors:null],o=R(r),a={onChange:e.onChange,inputValue:e.inputValue,checked:e.checked,disabled:e.disabled,required:e.required,requiredGroup:e.requiredGroup,contentOnly:e.contentOnly,hasErrors:e.hasErrors,"aria-controls":e["aria-controls"],"aria-describedby":e["aria-describedby"],id:e.id,name:e.name};return n.createElement("div",{className:o},n.createElement(xe,{...a},e.children))};ht.propTypes={inputValue:t.string.isRequired,checked:t.bool,disabled:t.bool,required:t.bool,requiredGroup:t.bool,name:t.string,id:t.string.isRequired,onChange:t.func,contentOnly:t.bool,compact:t.bool,hasErrors:t.bool,"aria-controls":t.string,"aria-describedby":t.string};ht.defaultProps={name:"",checked:!1,required:!1,requiredGroup:!1,disabled:!1,contentOnly:!1,hasErrors:!1,type:"RadioButtonListItem"};const to="_select_18o2z_1",no="_requiredSymbol_18o2z_1",ro="_selectContainer_18o2z_8",ao="_selectListArrow_18o2z_11",oo="_multipleSelectDropdown_18o2z_40",lo="_multipleSelectElement_18o2z_52",so="_multiple_18o2z_40",io="_hasErrors_18o2z_100",Y={select:to,requiredSymbol:no,selectContainer:ro,selectListArrow:ao,multipleSelectDropdown:oo,multipleSelectElement:lo,multiple:so,hasErrors:io},mt=e=>{var b,w,p,B;const[r,o]=n.useState(!1),a=n.useRef(),s=n.useCallback(E=>{E&&Ft(E)},[]),l=()=>{o(!1)};n.useEffect(()=>{if(typeof document>"u")return;const E=C=>{C.keyCode===27&&l()},N=C=>{a!=null&&a.current&&!a.current.contains(C.target)&&l()};document.addEventListener("mousedown",N),document.addEventListener("keydown",E,!1)},[e,s]);const f=(E,N)=>{const C=N&&N.length?N.find(M=>typeof M=="object"?M.value===E:M===E):null;return C&&C.key?C.key:C&&C.value?C.value:C},d=E=>typeof E=="object"?{key:E.key?E.key:"",value:E.value?E.value:""}:{key:E,value:E},m=(E,N)=>{const C=N.defaultValue||N.value;return C!=null&&C.length?C.map(M=>f(M,E)).join(", "):null},g=(E,N)=>E.map((C,M)=>{let c=d(C);const F=N.defaultValue||N.value,ce=F&&F.length&&F.includes(c.value);return n.createElement(we,{key:M,id:`${e.id}-${M}`,value:c.value,checked:ce,onChange:()=>N.onChange(c.value)},c.key)}),u=E=>E.map((N,C)=>{let M=d(N);return n.createElement("option",{value:M.value,key:C},M.key)}),v=(E,N)=>E?n.createElement("option",{value:N||"",disabled:!0},E):"",y=()=>`${e.id}-errorMessage`;if(e.contentOnly){const E=e.defaultValue?e.defaultValue:e.value||null;return n.createElement("div",{className:Y.select},n.createElement(U,{htmlFor:e.id},e.label),n.createElement("span",null,E?e.keyAsContent?f(E,e.options):E:e.defaultContent))}else{const E=!e.value&&e.defaultValue?e.defaultValue:!1,N={...((b=e.width)==null?void 0:b.length)&&{maxWidth:e.width}},C=R([e.hasErrors&&Y.hasErrors,e.multiple&&Y.multiple]),M={name:e.name,multiple:e.multiple,required:e.required,disabled:e.disabled,[E?"defaultValue":"value"]:E||e.value||"",onChange:e.onChange,id:e.id,role:e.role,key:`${e.id}-${rt(6)}`,className:C,"aria-describedby":e.hasErrors&&((w=e.errorMessage)!=null&&w.length)?y():(p=e["aria-describedby"])!=null&&p.length?e["aria-describedby"]:null,"aria-invalid":e.hasErrors?"true":null,style:N};return n.createElement("div",{className:Y.select},n.createElement(U,{htmlFor:e.id},e.label,e.required&&n.createElement("img",{src:K,alt:"",className:Y.requiredSymbol})),n.createElement("div",{className:Y.selectContainer,style:{...((B=e.width)==null?void 0:B.length)&&{maxWidth:e.width}}},n.createElement("span",{className:Y.selectListArrow}),e.multiple?n.createElement("div",{ref:a},n.createElement("div",{onClick:()=>{o(!r)},className:Y.multipleSelectElement},m(e.options,M)),r?n.createElement("div",{className:Y.multipleSelectDropdown},n.createElement(Ge,{compact:!0},g(e.options,M))):null):n.createElement("select",{...M},v(e.placeholder,e.placeholderValue),u(e.options))),n.createElement(ee,{id:y(),content:e.errorMessage}))}};mt.propTypes={id:t.string.isRequired,onChange:t.func.isRequired,name:t.string,required:t.bool,disabled:t.bool,multiple:t.bool,options:t.arrayOf(t.oneOfType([t.oneOfType([t.string,t.number]),t.shape({key:t.oneOfType([t.string,t.number]),value:t.oneOfType([t.string,t.number])})])),width:t.string,value:t.any,defaultValue:t.any,label:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),contentOnly:t.bool,keyAsContent:t.bool,placeholder:t.string,placeholderValue:t.string,defaultContent:t.string,"aria-describedby":t.string,hasErrors:t.bool,errorMessage:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))])};mt.defaultProps={onChange:()=>!1,name:"",required:!1,disabled:!1,options:[],label:"",contentOnly:!1,keyAsContent:!1,placeholder:null,placeholderValue:"",defaultContent:null,hasErrors:!1,errorMessage:""};const co="_table_miy9l_1",ue={table:co,"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"},uo=e=>{const r="left",o=["left","center","right"];return e!=null&&e.length&&o.includes(e)?ue[`captionAlign-${e}`]:ue[`captionAlign-${r}`]},ho=e=>{const r="top",o=["top","bottom"];return e!=null&&e.length&&o.includes(e)?ue[`captionSide-${e}`]:ue[`captionSide-${r}`]},Xt=e=>n.createElement("table",{className:R([ue.table,uo(e.captionAlign),ho(e.captionSide)])},e.children);Xt.propTypes={captionAlign:t.oneOf(["left","center","right"]),captionSide:t.oneOf(["top","bottom"])};const mo="_textarea_1596u_1",fo="_requiredSymbol_1596u_4",go="_hasErrors_1596u_55",He={textarea:mo,requiredSymbol:fo,hasErrors:go},ft=e=>{const r=(s,l)=>s||l,o=()=>`${e.id}-errorMessage`,a=()=>{var m,g,u,v,y,b;const s=!((m=e.value)!=null&&m.length)&&((g=e.defaultValue)!=null&&g.length)?e.defaultValue:!1,l=e.elementKey||null,f={...((u=e.width)==null?void 0:u.length)&&{maxWidth:e.width},...((v=e.resize)==null?void 0:v.length)&&{resize:e.resize}},d={name:e.name,readOnly:e.readOnly,disabled:e.disabled,required:e.required,type:e.type,id:e.id,key:l||`${e.id}-${rt(6)}`,onChange:e.onChange,onBlur:e.onBlur,[s?"defaultValue":"value"]:s||e.value,placeholder:e.placeholder,rows:e.rows,className:e.hasErrors?He.hasErrors:"","aria-describedby":e.hasErrors&&((y=e.errorMessage)!=null&&y.length)?o():(b=e["aria-describedby"])!=null&&b.length?e["aria-describedby"]:null,"aria-invalid":e.hasErrors?"true":null,style:f};return n.createElement("textarea",{...d})};return n.createElement("div",{className:He.textarea},n.createElement(U,{htmlFor:e.id},e.label,e.required&&n.createElement("img",{src:K,alt:"",className:He.requiredSymbol})),e.contentOnly?n.createElement("span",null,r(e.value||e.defaultValue,e.defaultContent)):a(),n.createElement(ee,{id:o(),content:e.errorMessage}))};ft.propTypes={id:t.string.isRequired,onChange:t.func.isRequired,onBlur:t.func,name:t.string,type:t.string,required:t.bool,width:t.string,resize:t.oneOf(["both","horizontal","vertical","none"]),value:t.string,defaultValue:t.string,elementKey:t.string,rows:t.string,label:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))]),contentOnly:t.bool,placeholder:t.string,defaultContent:t.string,"aria-describedby":t.string,hasErrors:t.bool,errorMessage:t.oneOfType([t.string,t.arrayOf(t.oneOfType([t.string,t.object]))])};ft.defaultProps={onChange:()=>!1,name:"",type:"text",required:!1,label:"",contentOnly:!1,resize:"both",placeholder:"",defaultContent:"",hasErrors:!1,errorMessage:""};const Wt=({theme:e,children:r})=>{const o=an(e),a=ln(o);return on("theme-provider",`:root {${a}}`),r};Wt.propTypes={theme:t.object};const _o="_toggleNavigationButton_1eb2w_1",yo={toggleNavigationButton:_o},gt=({id:e,htmlTag:r,showText:o,hideText:a,buttonProps:s,isOpen:l})=>{const f=yo.toggleNavigationButton;return n.createElement(r,{...s,className:f,id:e||null},l?a:o)};gt.propTypes={id:t.string,htmlTag:t.string,showText:t.string,hideText:t.string,buttonProps:t.object,isOpen:t.bool};gt.defaultProps={htmlTag:"button",isOpen:!1};const vo="_wizardTopnavItem_5ar16_1",bo="_wizardTopnavItemContent_5ar16_4",Eo="_vertical_5ar16_7",Co="_stepNumber_5ar16_24",To="_stepName_5ar16_36",po="_active_5ar16_46",wo="_finished_5ar16_46",ko="_hasErrors_5ar16_46",xo="_horizontal_5ar16_64",W={wizardTopnavItem:vo,wizardTopnavItemContent:bo,vertical:Eo,stepNumber:Co,stepName:To,active:po,finished:wo,hasErrors:ko,horizontal:xo},Lo="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",Le=e=>{const{step:r,index:o,activeStepId:a,direction:s,linkComponent:l}=e,f=y=>a===y.id?W.active:"",d=y=>y.finished?W.finished:"",m=y=>y.hasErrors?W.hasErrors:"",g=()=>{const y=a===r.id,w=s==="vertical"&&r.finished&&!y;return n.createElement(n.Fragment,null,n.createElement("span",{className:W.stepNumber},o+1),n.createElement("span",{className:W.stepName},r.name),w&&n.createElement("img",{src:Lo,alt:"",className:W.checkmarkSymbol}))},u=R([W.wizardTopnavItem,f(r),d(r),m(r),W[s]]),v=a===r.id?"step":null;return r.link&&Object.keys(r.link).length&&l?n.createElement("li",{className:u},n.createElement(l,{to:r.link,"aria-current":v,className:W.wizardTopnavItemContent},g())):n.createElement("li",{className:u},n.createElement("span",{"aria-current":v,className:W.wizardTopnavItemContent},g()))};Le.propTypes={step:t.object.isRequired,activeStepId:t.oneOfType([t.string,t.number]).isRequired,index:t.number.isRequired,direction:t.oneOf(["vertical","horizontal"]),linkComponent:t.elementType};Le.defaultProps={direction:"vertical"};const Io="_wizardTopnavContainer_qiy2o_1",Mo="_wizardTopnav_qiy2o_1",So="_vertical_qiy2o_6",Oo="_horizontal_qiy2o_11",Xe={wizardTopnavContainer:Io,wizardTopnav:Mo,vertical:So,horizontal:Oo},_t=e=>{var l,f;const r=(d,m)=>d&&Object.keys(d).length?Object.keys(d).map((u,v)=>{const y=d[u];return n.createElement(Le,{direction:e.direction,step:y,activeStepId:m,index:v,key:u})}):null,a=`I dette skjemaet er det totalt ${e.steps&&((l=Object.keys(e.steps))!=null&&l.length)?Object.keys(e.steps).length:0} steg som du skal gå igjennom`,s=(f=e["aria-label"])!=null&&f.length?e["aria-label"]:a;return n.createElement("nav",{"aria-label":s,className:R([Xe.wizardTopnavContainer,Xe[e.direction]])},n.createElement("ol",{className:Xe.wizardTopnav},r(e.steps,e.activeStepId)))};_t.propTypes={steps:t.shape({id:t.oneOfType([t.string,t.number]),name:t.string,finished:t.bool,hasErrors:t.bool,link:t.shape({to:t.object,reactLink:t.bool})}).isRequired,activeStepId:t.oneOfType([t.string,t.number]).isRequired,"aria-label":t.string,direction:t.oneOf(["vertical","horizontal"])};_t.defaultProps={direction:"vertical"};exports.Accordion=Ye;exports.Button=he;exports.CheckBoxIcon=de;exports.CheckBoxInput=pe;exports.CheckBoxList=Ge;exports.CheckBoxListItem=we;exports.Container=Ue;exports.ContentBox=Ke;exports.DescriptionDetails=Ze;exports.DescriptionList=Je;exports.DescriptionTerm=Qe;exports.Dialog=et;exports.DragAndDropFileInput=tt;exports.ErrorBox=nt;exports.ErrorMessage=ee;exports.Footer=Kr;exports.Header=me;exports.InfoBox=jt;exports.InputField=at;exports.Label=U;exports.Lead=ot;exports.List=lt;exports.ListItem=st;exports.LoadingAnimation=it;exports.NavigationBar=ct;exports.NavigationBarListItem=Te;exports.Paper=dt;exports.ProgressBar=ut;exports.RadioButtonIcon=ke;exports.RadioButtonInput=xe;exports.RadioButtonList=Ht;exports.RadioButtonListItem=ht;exports.Select=mt;exports.Table=Xt;exports.Textarea=ft;exports.ThemeProvider=Wt;exports.ToggleNavigationButton=gt;exports.WizardNavigation=_t;exports.WizardNavigationStep=Le;
17
+ */var Vt;function Un(){if(Vt)return P;Vt=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),w=Symbol.iterator;function g(o){return o===null||typeof o!="object"?null:(o=w&&o[w]||o["@@iterator"],typeof o=="function"?o:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function M(o,m,k){this.props=o,this.context=m,this.refs=b,this.updater=k||x}M.prototype.isReactComponent={},M.prototype.setState=function(o,m){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,m,"setState")},M.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function y(){}y.prototype=M.prototype;function S(o,m,k){this.props=o,this.context=m,this.refs=b,this.updater=k||x}var L=S.prototype=new y;L.constructor=S,v(L,M.prototype),L.isPureReactComponent=!0;var T=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},X=Object.prototype.hasOwnProperty;function G(o,m,k,R,N,V){return k=V.ref,{$$typeof:e,type:o,key:m,ref:k!==void 0?k:null,props:V}}function z(o,m){return G(o.type,m,void 0,void 0,void 0,o.props)}function Y(o){return typeof o=="object"&&o!==null&&o.$$typeof===e}function ee(o){var m={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(k){return m[k]})}var B=/\/+/g;function re(o,m){return typeof o=="object"&&o!==null&&o.key!=null?ee(""+o.key):m.toString(36)}function F(){}function $(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(F,F):(o.status="pending",o.then(function(m){o.status==="pending"&&(o.status="fulfilled",o.value=m)},function(m){o.status==="pending"&&(o.status="rejected",o.reason=m)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function Q(o,m,k,R,N){var V=typeof o;(V==="undefined"||V==="boolean")&&(o=null);var A=!1;if(o===null)A=!0;else switch(V){case"bigint":case"string":case"number":A=!0;break;case"object":switch(o.$$typeof){case e:case t:A=!0;break;case _:return A=o._init,Q(A(o._payload),m,k,R,N)}}if(A)return N=N(o),A=R===""?"."+re(o,0):R,T(N)?(k="",A!=null&&(k=A.replace(B,"$&/")+"/"),Q(N,m,k,"",function(se){return se})):N!=null&&(Y(N)&&(N=z(N,k+(N.key==null||o&&o.key===N.key?"":(""+N.key).replace(B,"$&/")+"/")+A)),m.push(N)),1;A=0;var oe=R===""?".":R+":";if(T(o))for(var O=0;O<o.length;O++)R=o[O],V=oe+re(R,O),A+=Q(R,m,k,V,N);else if(O=g(o),typeof O=="function")for(o=O.call(o),O=0;!(R=o.next()).done;)R=R.value,V=oe+re(R,O++),A+=Q(R,m,k,V,N);else if(V==="object"){if(typeof o.then=="function")return Q($(o),m,k,R,N);throw m=String(o),Error("Objects are not valid as a React child (found: "+(m==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":m)+"). If you meant to render a collection of children, use an array instead.")}return A}function W(o,m,k){if(o==null)return o;var R=[],N=0;return Q(o,R,"","",function(V){return m.call(k,V,N++)}),R}function Z(o){if(o._status===-1){var m=o._result;m=m(),m.then(function(k){(o._status===0||o._status===-1)&&(o._status=1,o._result=k)},function(k){(o._status===0||o._status===-1)&&(o._status=2,o._result=k)}),o._status===-1&&(o._status=0,o._result=m)}if(o._status===1)return o._result.default;throw o._result}var ie=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)};function Ee(){}return P.Children={map:W,forEach:function(o,m,k){W(o,function(){m.apply(this,arguments)},k)},count:function(o){var m=0;return W(o,function(){m++}),m},toArray:function(o){return W(o,function(m){return m})||[]},only:function(o){if(!Y(o))throw Error("React.Children.only expected to receive a single React element child.");return o}},P.Component=M,P.Fragment=r,P.Profiler=s,P.PureComponent=S,P.StrictMode=a,P.Suspense=l,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,P.__COMPILER_RUNTIME={__proto__:null,c:function(o){return j.H.useMemoCache(o)}},P.cache=function(o){return function(){return o.apply(null,arguments)}},P.cloneElement=function(o,m,k){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var R=v({},o.props),N=o.key,V=void 0;if(m!=null)for(A in m.ref!==void 0&&(V=void 0),m.key!==void 0&&(N=""+m.key),m)!X.call(m,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&m.ref===void 0||(R[A]=m[A]);var A=arguments.length-2;if(A===1)R.children=k;else if(1<A){for(var oe=Array(A),O=0;O<A;O++)oe[O]=arguments[O+2];R.children=oe}return G(o.type,N,void 0,void 0,V,R)},P.createContext=function(o){return o={$$typeof:f,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:i,_context:o},o},P.createElement=function(o,m,k){var R,N={},V=null;if(m!=null)for(R in m.key!==void 0&&(V=""+m.key),m)X.call(m,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&(N[R]=m[R]);var A=arguments.length-2;if(A===1)N.children=k;else if(1<A){for(var oe=Array(A),O=0;O<A;O++)oe[O]=arguments[O+2];N.children=oe}if(o&&o.defaultProps)for(R in A=o.defaultProps,A)N[R]===void 0&&(N[R]=A[R]);return G(o,V,void 0,void 0,null,N)},P.createRef=function(){return{current:null}},P.forwardRef=function(o){return{$$typeof:h,render:o}},P.isValidElement=Y,P.lazy=function(o){return{$$typeof:_,_payload:{_status:-1,_result:o},_init:Z}},P.memo=function(o,m){return{$$typeof:c,type:o,compare:m===void 0?null:m}},P.startTransition=function(o){var m=j.T,k={};j.T=k;try{var R=o(),N=j.S;N!==null&&N(k,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(Ee,ie)}catch(V){ie(V)}finally{j.T=m}},P.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},P.use=function(o){return j.H.use(o)},P.useActionState=function(o,m,k){return j.H.useActionState(o,m,k)},P.useCallback=function(o,m){return j.H.useCallback(o,m)},P.useContext=function(o){return j.H.useContext(o)},P.useDebugValue=function(){},P.useDeferredValue=function(o,m){return j.H.useDeferredValue(o,m)},P.useEffect=function(o,m,k){var R=j.H;if(typeof k=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return R.useEffect(o,m)},P.useId=function(){return j.H.useId()},P.useImperativeHandle=function(o,m,k){return j.H.useImperativeHandle(o,m,k)},P.useInsertionEffect=function(o,m){return j.H.useInsertionEffect(o,m)},P.useLayoutEffect=function(o,m){return j.H.useLayoutEffect(o,m)},P.useMemo=function(o,m){return j.H.useMemo(o,m)},P.useOptimistic=function(o,m){return j.H.useOptimistic(o,m)},P.useReducer=function(o,m,k){return j.H.useReducer(o,m,k)},P.useRef=function(o){return j.H.useRef(o)},P.useState=function(o){return j.H.useState(o)},P.useSyncExternalStore=function(o,m,k){return j.H.useSyncExternalStore(o,m,k)},P.useTransition=function(){return j.H.useTransition()},P.version="19.1.0",P}var Be={exports:{}};/**
18
+ * @license React
19
+ * react.development.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */Be.exports;var Yt;function Vn(){return Yt||(Yt=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){function r(n,u){Object.defineProperty(i.prototype,n,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",u[0],u[1])}})}function a(n){return n===null||typeof n!="object"?null:(n=Ve&&n[Ve]||n["@@iterator"],typeof n=="function"?n:null)}function s(n,u){n=(n=n.constructor)&&(n.displayName||n.name)||"ReactClass";var E=n+"."+u;$t[E]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",u,n),$t[E]=!0)}function i(n,u,E){this.props=n,this.context=u,this.refs=ct,this.updater=E||It}function f(){}function h(n,u,E){this.props=n,this.context=u,this.refs=ct,this.updater=E||It}function l(n){return""+n}function c(n){try{l(n);var u=!1}catch{u=!0}if(u){u=console;var E=u.error,C=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return E.call(u,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",C),l(n)}}function _(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===On?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case o:return"Fragment";case k:return"Profiler";case m:return"StrictMode";case A:return"Suspense";case oe:return"SuspenseList";case Ae:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case Ee:return"Portal";case N:return(n.displayName||"Context")+".Provider";case R:return(n._context.displayName||"Context")+".Consumer";case V:var u=n.render;return n=n.displayName,n||(n=u.displayName||u.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case O:return u=n.displayName||null,u!==null?u:_(n.type)||"Memo";case se:u=n._payload,n=n._init;try{return _(n(u))}catch{}}return null}function w(n){if(n===o)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===se)return"<...>";try{var u=_(n);return u?"<"+u+">":"<...>"}catch{return"<...>"}}function g(){var n=q.A;return n===null?null:n.getOwner()}function x(){return Error("react-stack-top-frame")}function v(n){if(We.call(n,"key")){var u=Object.getOwnPropertyDescriptor(n,"key").get;if(u&&u.isReactWarning)return!1}return n.key!==void 0}function b(n,u){function E(){Pt||(Pt=!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)",u))}E.isReactWarning=!0,Object.defineProperty(n,"key",{get:E,configurable:!0})}function M(){var n=_(this.type);return zt[n]||(zt[n]=!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.")),n=this.props.ref,n!==void 0?n:null}function y(n,u,E,C,I,U,D,K){return E=U.ref,n={$$typeof:ie,type:n,key:u,props:U,_owner:I},(E!==void 0?E:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:M}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function S(n,u){return u=y(n.type,u,void 0,void 0,n._owner,n.props,n._debugStack,n._debugTask),n._store&&(u._store.validated=n._store.validated),u}function L(n){return typeof n=="object"&&n!==null&&n.$$typeof===ie}function T(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(E){return u[E]})}function j(n,u){return typeof n=="object"&&n!==null&&n.key!=null?(c(n.key),T(""+n.key)):u.toString(36)}function X(){}function G(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(X,X):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function z(n,u,E,C,I){var U=typeof n;(U==="undefined"||U==="boolean")&&(n=null);var D=!1;if(n===null)D=!0;else switch(U){case"bigint":case"string":case"number":D=!0;break;case"object":switch(n.$$typeof){case ie:case Ee:D=!0;break;case se:return D=n._init,z(D(n._payload),u,E,C,I)}}if(D){D=n,I=I(D);var K=C===""?"."+j(D,0):C;return Nt(I)?(E="",K!=null&&(E=K.replace(Bt,"$&/")+"/"),z(I,u,E,"",function(ge){return ge})):I!=null&&(L(I)&&(I.key!=null&&(D&&D.key===I.key||c(I.key)),E=S(I,E+(I.key==null||D&&D.key===I.key?"":(""+I.key).replace(Bt,"$&/")+"/")+K),C!==""&&D!=null&&L(D)&&D.key==null&&D._store&&!D._store.validated&&(E._store.validated=2),I=E),u.push(I)),1}if(D=0,K=C===""?".":C+":",Nt(n))for(var H=0;H<n.length;H++)C=n[H],U=K+j(C,H),D+=z(C,u,E,U,I);else if(H=a(n),typeof H=="function")for(H===n.entries&&(Dt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dt=!0),n=H.call(n),H=0;!(C=n.next()).done;)C=C.value,U=K+j(C,H++),D+=z(C,u,E,U,I);else if(U==="object"){if(typeof n.then=="function")return z(G(n),u,E,C,I);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return D}function Y(n,u,E){if(n==null)return n;var C=[],I=0;return z(n,C,"","",function(U){return u.call(E,U,I++)}),C}function ee(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(E){(n._status===0||n._status===-1)&&(n._status=1,n._result=E)},function(E){(n._status===0||n._status===-1)&&(n._status=2,n._result=E)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return u=n._result,u===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
26
+
27
+ Your code should look like:
28
+ const MyComponent = lazy(() => import('./MyComponent'))
29
+
30
+ Did you accidentally put curly braces around the import?`,u),"default"in u||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
31
+
32
+ Your code should look like:
33
+ const MyComponent = lazy(() => import('./MyComponent'))`,u),u.default;throw n._result}function B(){var n=q.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
34
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
35
+ 2. You might be breaking the Rules of Hooks
36
+ 3. You might have more than one copy of React in the same app
37
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n}function re(){}function F(n){if(Xe===null)try{var u=("require"+Math.random()).slice(0,7);Xe=(e&&e[u]).call(e,"timers").setImmediate}catch{Xe=function(C){Ht===!1&&(Ht=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var I=new MessageChannel;I.port1.onmessage=C,I.port2.postMessage(void 0)}}return Xe(n)}function $(n){return 1<n.length&&typeof AggregateError=="function"?new AggregateError(n):n[0]}function Q(n,u){u!==Ge-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ge=u}function W(n,u,E){var C=q.actQueue;if(C!==null)if(C.length!==0)try{Z(C),F(function(){return W(n,u,E)});return}catch(I){q.thrownErrors.push(I)}else q.actQueue=null;0<q.thrownErrors.length?(C=$(q.thrownErrors),q.thrownErrors.length=0,E(C)):u(n)}function Z(n){if(!ut){ut=!0;var u=0;try{for(;u<n.length;u++){var E=n[u];do{q.didUsePromise=!1;var C=E(!1);if(C!==null){if(q.didUsePromise){n[u]=E,n.splice(0,u);return}E=C}else break}while(!0)}n.length=0}catch(I){n.splice(0,u+1),q.thrownErrors.push(I)}finally{ut=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ie=Symbol.for("react.transitional.element"),Ee=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),N=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),Ae=Symbol.for("react.activity"),Ve=Symbol.iterator,$t={},It={isMounted:function(){return!1},enqueueForceUpdate:function(n){s(n,"forceUpdate")},enqueueReplaceState:function(n){s(n,"replaceState")},enqueueSetState:function(n){s(n,"setState")}},Mt=Object.assign,ct={};Object.freeze(ct),i.prototype.isReactComponent={},i.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")},i.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};var ae={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ye;for(Ye in ae)ae.hasOwnProperty(Ye)&&r(Ye,ae[Ye]);f.prototype=i.prototype,ae=h.prototype=new f,ae.constructor=h,Mt(ae,i.prototype),ae.isPureReactComponent=!0;var Nt=Array.isArray,On=Symbol.for("react.client.reference"),q={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},We=Object.prototype.hasOwnProperty,At=console.createTask?console.createTask:function(){return null};ae={"react-stack-bottom-frame":function(n){return n()}};var Pt,Ot,zt={},zn=ae["react-stack-bottom-frame"].bind(ae,x)(),Dn=At(w(x)),Dt=!1,Bt=/\/+/g,Ft=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Ht=!1,Xe=null,Ge=0,Ke=!1,ut=!1,qt=typeof queueMicrotask=="function"?function(n){queueMicrotask(function(){return queueMicrotask(n)})}:F;ae=Object.freeze({__proto__:null,c:function(n){return B().useMemoCache(n)}}),t.Children={map:Y,forEach:function(n,u,E){Y(n,function(){u.apply(this,arguments)},E)},count:function(n){var u=0;return Y(n,function(){u++}),u},toArray:function(n){return Y(n,function(u){return u})||[]},only:function(n){if(!L(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},t.Component=i,t.Fragment=o,t.Profiler=k,t.PureComponent=h,t.StrictMode=m,t.Suspense=A,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,t.__COMPILER_RUNTIME=ae,t.act=function(n){var u=q.actQueue,E=Ge;Ge++;var C=q.actQueue=u!==null?u:[],I=!1;try{var U=n()}catch(H){q.thrownErrors.push(H)}if(0<q.thrownErrors.length)throw Q(u,E),n=$(q.thrownErrors),q.thrownErrors.length=0,n;if(U!==null&&typeof U=="object"&&typeof U.then=="function"){var D=U;return qt(function(){I||Ke||(Ke=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(H,ge){I=!0,D.then(function(Ce){if(Q(u,E),E===0){try{Z(C),F(function(){return W(Ce,H,ge)})}catch(Fn){q.thrownErrors.push(Fn)}if(0<q.thrownErrors.length){var Bn=$(q.thrownErrors);q.thrownErrors.length=0,ge(Bn)}}else H(Ce)},function(Ce){Q(u,E),0<q.thrownErrors.length&&(Ce=$(q.thrownErrors),q.thrownErrors.length=0),ge(Ce)})}}}var K=U;if(Q(u,E),E===0&&(Z(C),C.length!==0&&qt(function(){I||Ke||(Ke=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),q.actQueue=null),0<q.thrownErrors.length)throw n=$(q.thrownErrors),q.thrownErrors.length=0,n;return{then:function(H,ge){I=!0,E===0?(q.actQueue=C,F(function(){return W(K,H,ge)})):H(K)}}},t.cache=function(n){return function(){return n.apply(null,arguments)}},t.captureOwnerStack=function(){var n=q.getCurrentStack;return n===null?null:n()},t.cloneElement=function(n,u,E){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var C=Mt({},n.props),I=n.key,U=n._owner;if(u!=null){var D;e:{if(We.call(u,"ref")&&(D=Object.getOwnPropertyDescriptor(u,"ref").get)&&D.isReactWarning){D=!1;break e}D=u.ref!==void 0}D&&(U=g()),v(u)&&(c(u.key),I=""+u.key);for(K in u)!We.call(u,K)||K==="key"||K==="__self"||K==="__source"||K==="ref"&&u.ref===void 0||(C[K]=u[K])}var K=arguments.length-2;if(K===1)C.children=E;else if(1<K){D=Array(K);for(var H=0;H<K;H++)D[H]=arguments[H+2];C.children=D}for(C=y(n.type,I,void 0,void 0,U,C,n._debugStack,n._debugTask),I=2;I<arguments.length;I++)U=arguments[I],L(U)&&U._store&&(U._store.validated=1);return C},t.createContext=function(n){return n={$$typeof:N,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:R,_context:n},n._currentRenderer=null,n._currentRenderer2=null,n},t.createElement=function(n,u,E){for(var C=2;C<arguments.length;C++){var I=arguments[C];L(I)&&I._store&&(I._store.validated=1)}if(C={},I=null,u!=null)for(H in Ot||!("__self"in u)||"key"in u||(Ot=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),v(u)&&(c(u.key),I=""+u.key),u)We.call(u,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&(C[H]=u[H]);var U=arguments.length-2;if(U===1)C.children=E;else if(1<U){for(var D=Array(U),K=0;K<U;K++)D[K]=arguments[K+2];Object.freeze&&Object.freeze(D),C.children=D}if(n&&n.defaultProps)for(H in U=n.defaultProps,U)C[H]===void 0&&(C[H]=U[H]);I&&b(C,typeof n=="function"?n.displayName||n.name||"Unknown":n);var H=1e4>q.recentlyCreatedOwnerStacks++;return y(n,I,void 0,void 0,g(),C,H?Error("react-stack-top-frame"):zn,H?At(w(n)):Dn)},t.createRef=function(){var n={current:null};return Object.seal(n),n},t.forwardRef=function(n){n!=null&&n.$$typeof===O?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof n!="function"?console.error("forwardRef requires a render function but was given %s.",n===null?"null":typeof n):n.length!==0&&n.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",n.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),n!=null&&n.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var u={$$typeof:V,render:n},E;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(C){E=C,n.name||n.displayName||(Object.defineProperty(n,"name",{value:C}),n.displayName=C)}}),u},t.isValidElement=L,t.lazy=function(n){return{$$typeof:se,_payload:{_status:-1,_result:n},_init:ee}},t.memo=function(n,u){n==null&&console.error("memo: The first argument must be a component. Instead received: %s",n===null?"null":typeof n),u={$$typeof:O,type:n,compare:u===void 0?null:u};var E;return Object.defineProperty(u,"displayName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(C){E=C,n.name||n.displayName||(Object.defineProperty(n,"name",{value:C}),n.displayName=C)}}),u},t.startTransition=function(n){var u=q.T,E={};q.T=E,E._updatedFibers=new Set;try{var C=n(),I=q.S;I!==null&&I(E,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(re,Ft)}catch(U){Ft(U)}finally{u===null&&E._updatedFibers&&(n=E._updatedFibers.size,E._updatedFibers.clear(),10<n&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),q.T=u}},t.unstable_useCacheRefresh=function(){return B().useCacheRefresh()},t.use=function(n){return B().use(n)},t.useActionState=function(n,u,E){return B().useActionState(n,u,E)},t.useCallback=function(n,u){return B().useCallback(n,u)},t.useContext=function(n){var u=B();return n.$$typeof===R&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),u.useContext(n)},t.useDebugValue=function(n,u){return B().useDebugValue(n,u)},t.useDeferredValue=function(n,u){return B().useDeferredValue(n,u)},t.useEffect=function(n,u,E){n==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var C=B();if(typeof E=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return C.useEffect(n,u)},t.useId=function(){return B().useId()},t.useImperativeHandle=function(n,u,E){return B().useImperativeHandle(n,u,E)},t.useInsertionEffect=function(n,u){return n==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useInsertionEffect(n,u)},t.useLayoutEffect=function(n,u){return n==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),B().useLayoutEffect(n,u)},t.useMemo=function(n,u){return B().useMemo(n,u)},t.useOptimistic=function(n,u){return B().useOptimistic(n,u)},t.useReducer=function(n,u,E){return B().useReducer(n,u,E)},t.useRef=function(n){return B().useRef(n)},t.useState=function(n){return B().useState(n)},t.useSyncExternalStore=function(n,u,E){return B().useSyncExternalStore(n,u,E)},t.useTransition=function(){return B().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(Be,Be.exports)),Be.exports}var Wt;function dn(){return Wt||(Wt=1,process.env.NODE_ENV==="production"?Ze.exports=Un():Ze.exports=Vn()),Ze.exports}/**
38
+ * @license React
39
+ * react-jsx-runtime.development.js
40
+ *
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var Xt;function Yn(){return Xt||(Xt=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ee?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case y:return"Profiler";case M:return"StrictMode";case j:return"Suspense";case X:return"SuspenseList";case Y:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case v:return"Portal";case L:return(o.displayName||"Context")+".Provider";case S:return(o._context.displayName||"Context")+".Consumer";case T:var m=o.render;return o=o.displayName,o||(o=m.displayName||m.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case G:return m=o.displayName||null,m!==null?m:e(o.type)||"Memo";case z:m=o._payload,o=o._init;try{return e(o(m))}catch{}}return null}function t(o){return""+o}function r(o){try{t(o);var m=!1}catch{m=!0}if(m){m=console;var k=m.error,R=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return k.call(m,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",R),t(o)}}function a(o){if(o===b)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===z)return"<...>";try{var m=e(o);return m?"<"+m+">":"<...>"}catch{return"<...>"}}function s(){var o=B.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function f(o){if(re.call(o,"key")){var m=Object.getOwnPropertyDescriptor(o,"key").get;if(m&&m.isReactWarning)return!1}return o.key!==void 0}function h(o,m){function k(){Q||(Q=!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)",m))}k.isReactWarning=!0,Object.defineProperty(o,"key",{get:k,configurable:!0})}function l(){var o=e(this.type);return W[o]||(W[o]=!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.")),o=this.props.ref,o!==void 0?o:null}function c(o,m,k,R,N,V,A,oe){return k=V.ref,o={$$typeof:x,type:o,key:m,props:V,_owner:N},(k!==void 0?k:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:l}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function _(o,m,k,R,N,V,A,oe){var O=m.children;if(O!==void 0)if(R)if(F(O)){for(R=0;R<O.length;R++)w(O[R]);Object.freeze&&Object.freeze(O)}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 w(O);if(re.call(m,"key")){O=e(o);var se=Object.keys(m).filter(function(Ve){return Ve!=="key"});R=0<se.length?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}",Ee[O+R]||(se=0<se.length?"{"+se.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
46
+ let props = %s;
47
+ <%s {...props} />
48
+ React keys must be passed directly to JSX without using spread:
49
+ let props = %s;
50
+ <%s key={someKey} {...props} />`,R,O,se,O),Ee[O+R]=!0)}if(O=null,k!==void 0&&(r(k),O=""+k),f(m)&&(r(m.key),O=""+m.key),"key"in m){k={};for(var Ae in m)Ae!=="key"&&(k[Ae]=m[Ae])}else k=m;return O&&h(k,typeof o=="function"?o.displayName||o.name||"Unknown":o),c(o,O,V,N,s(),k,A,oe)}function w(o){typeof o=="object"&&o!==null&&o.$$typeof===x&&o._store&&(o._store.validated=1)}var g=dn(),x=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),L=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.client.reference"),B=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=Object.prototype.hasOwnProperty,F=Array.isArray,$=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(o){return o()}};var Q,W={},Z=g["react-stack-bottom-frame"].bind(g,i)(),ie=$(a(i)),Ee={};Oe.Fragment=b,Oe.jsx=function(o,m,k,R,N){var V=1e4>B.recentlyCreatedOwnerStacks++;return _(o,m,k,!1,R,N,V?Error("react-stack-top-frame"):Z,V?$(a(o)):ie)},Oe.jsxs=function(o,m,k,R,N){var V=1e4>B.recentlyCreatedOwnerStacks++;return _(o,m,k,!0,R,N,V?Error("react-stack-top-frame"):Z,V?$(a(o)):ie)}}()),Oe}var Gt;function Wn(){return Gt||(Gt=1,process.env.NODE_ENV==="production"?Qe.exports=qn():Qe.exports=Yn()),Qe.exports}var d=Wn(),p=dn();const fe=Hn(p),J=e=>(e==null?void 0:e.filter(Boolean).join(" "))||"",fn=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Xn=e=>!(e!=null&&e.colors)||!Object.entries(e.colors).length?{}:Object.entries(e.colors).reduce((t,[r,a])=>(r&&a&&(t[`--color-${fn(r)}`]=a),t),{}),Gn=e=>!(e!=null&&e.sizes)||!Object.entries(e.sizes).length?{}:Object.entries(e.sizes).reduce((t,[r,a])=>(r&&a&&(t[`--size-${fn(r)}`]=a),t),{}),Kn=e=>({...Xn(e),...Gn(e)}),Qn=(e,t)=>{if(typeof document>"u")return;const r=document.createElement("style");r.setAttribute("id",e),r.textContent=t;const a=document.getElementById(e);a&&a.remove(),document.head.appendChild(r)},Zn=e=>Object.entries(e).map(([t,r])=>`${t}: ${r};`).join(""),Me=e=>{const t=[];return p.Children.forEach(e,r=>{if(p.isValidElement(r)){const a=r;if(a.type===p.Fragment){const s=Me(a.props.children);t.push(...s)}else t.push(p.cloneElement(a,{...a.props}))}else t.push(r)}),t},Jn=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()},er=e=>Array.from(e.querySelectorAll('button, [href], input, [tabindex="0"]')).filter(r=>!!r),hn=e=>{Jn(e);const t=er(e),r=t[0],a=t[t.length-1]||r;r&&(r.onkeydown=s=>{s.key==="Tab"&&s.shiftKey&&(s.preventDefault(),a.focus())}),a&&(a.onclick=()=>{r==null||r.focus()},a.onkeydown=s=>{s.key==="Tab"&&!s.shiftKey&&(s.preventDefault(),r==null||r.focus())})},tr="_accordion_1o1ts_67",nr="_panel_1o1ts_76",rr="_content_1o1ts_77",or="_secondary_1o1ts_80",sr="_margin_1o1ts_88",ar="_panelText_1o1ts_122",ir="_panelChevron_1o1ts_128",lr="_expanded_1o1ts_155",cr="_initialized_1o1ts_171",ur="_hide_1o1ts_1",dr="_show_1o1ts_1",le={accordion:tr,default:"_default_1o1ts_73",panel:nr,content:rr,secondary:or,margin:sr,panelText:ar,panelChevron:ir,expanded:lr,initialized:cr,hide:ur,show:dr},fr=({title:e,color:t="default",expanded:r=!1,onToggleExpand:a,buttonProps:s,noMargin:i=!1,initialized:f,children:h,...l})=>{const[c,_]=p.useState(r),[w,g]=p.useState(f),x=()=>{_(!c),g(!0),a&&a()};p.useEffect(()=>{_(r)},[r]);const v=()=>d.jsxs("button",{...s,className:le.panel,onClick:x,"aria-expanded":c?"true":"false",children:[d.jsx("span",{className:le.panelText,children:e}),d.jsx("span",{className:`${le.panelChevron} ${c?le.expanded:""}`})]}),b=J([le.accordion,t&&le[t],!i&&le.margin]);return d.jsxs("div",{className:b,...l,children:[d.jsx(v,{}),d.jsx("div",{className:`${le.content} ${w?le.initialized:""} ${c?le.expanded:""}`,children:h})]})};var ze={},Kt;function hr(){if(Kt)return ze;Kt=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.parse=f,ze.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[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]*$/,s=Object.prototype.toString,i=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function f(g,x){const v=new i,b=g.length;if(b<2)return v;const M=(x==null?void 0:x.decode)||_;let y=0;do{const S=g.indexOf("=",y);if(S===-1)break;const L=g.indexOf(";",y),T=L===-1?b:L;if(S>T){y=g.lastIndexOf(";",S-1)+1;continue}const j=h(g,y,S),X=l(g,S,j),G=g.slice(j,X);if(v[G]===void 0){let z=h(g,S+1,T),Y=l(g,T,z);const ee=M(g.slice(z,Y));v[G]=ee}y=T+1}while(y<b);return v}function h(g,x,v){do{const b=g.charCodeAt(x);if(b!==32&&b!==9)return x}while(++x<v);return v}function l(g,x,v){for(;x>v;){const b=g.charCodeAt(--x);if(b!==32&&b!==9)return x+1}return v}function c(g,x,v){const b=(v==null?void 0:v.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const M=b(x);if(!t.test(M))throw new TypeError(`argument val is invalid: ${x}`);let y=g+"="+M;if(!v)return y;if(v.maxAge!==void 0){if(!Number.isInteger(v.maxAge))throw new TypeError(`option maxAge is invalid: ${v.maxAge}`);y+="; Max-Age="+v.maxAge}if(v.domain){if(!r.test(v.domain))throw new TypeError(`option domain is invalid: ${v.domain}`);y+="; Domain="+v.domain}if(v.path){if(!a.test(v.path))throw new TypeError(`option path is invalid: ${v.path}`);y+="; Path="+v.path}if(v.expires){if(!w(v.expires)||!Number.isFinite(v.expires.valueOf()))throw new TypeError(`option expires is invalid: ${v.expires}`);y+="; Expires="+v.expires.toUTCString()}if(v.httpOnly&&(y+="; HttpOnly"),v.secure&&(y+="; Secure"),v.partitioned&&(y+="; Partitioned"),v.priority)switch(typeof v.priority=="string"?v.priority.toLowerCase():void 0){case"low":y+="; Priority=Low";break;case"medium":y+="; Priority=Medium";break;case"high":y+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${v.priority}`)}if(v.sameSite)switch(typeof v.sameSite=="string"?v.sameSite.toLowerCase():v.sameSite){case!0:case"strict":y+="; SameSite=Strict";break;case"lax":y+="; SameSite=Lax";break;case"none":y+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${v.sameSite}`)}return y}function _(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function w(g){return s.call(g)==="[object Date]"}return ze}hr();/**
51
+ * react-router v7.6.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */function ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pe(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function vt({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Et(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function pn(e,t,r="/"){return pr(e,t,r,!1)}function pr(e,t,r,a){let s=typeof t=="string"?Et(t):t,i=ye(s.pathname||"/",r);if(i==null)return null;let f=mn(e);mr(f);let h=null;for(let l=0;h==null&&l<f.length;++l){let c=Rr(i);h=Cr(f[l],c,a)}return h}function mn(e,t=[],r=[],a=""){let s=(i,f,h)=>{let l={relativePath:h===void 0?i.path||"":h,caseSensitive:i.caseSensitive===!0,childrenIndex:f,route:i};l.relativePath.startsWith("/")&&(ne(l.relativePath.startsWith(a),`Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(a.length));let c=he([a,l.relativePath]),_=r.concat(l);i.children&&i.children.length>0&&(ne(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),mn(i.children,t,_,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:br(c,i.index),routesMeta:_})};return e.forEach((i,f)=>{var h;if(i.path===""||!((h=i.path)!=null&&h.includes("?")))s(i,f);else for(let l of _n(i.path))s(i,f,l)}),t}function _n(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(a.length===0)return s?[i,""]:[i];let f=_n(a.join("/")),h=[];return h.push(...f.map(l=>l===""?i:[i,l].join("/"))),s&&h.push(...f),h.map(l=>e.startsWith("/")&&l===""?"/":l)}function mr(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:xr(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var _r=/^:[\w-]+$/,gr=3,vr=2,yr=1,wr=10,Er=-2,Qt=e=>e==="*";function br(e,t){let r=e.split("/"),a=r.length;return r.some(Qt)&&(a+=Er),t&&(a+=vr),r.filter(s=>!Qt(s)).reduce((s,i)=>s+(_r.test(i)?gr:i===""?yr:wr),a)}function xr(e,t){return e.length===t.length&&e.slice(0,-1).every((a,s)=>a===t[s])?e[e.length-1]-t[t.length-1]:0}function Cr(e,t,r=!1){let{routesMeta:a}=e,s={},i="/",f=[];for(let h=0;h<a.length;++h){let l=a[h],c=h===a.length-1,_=i==="/"?t:t.slice(i.length)||"/",w=st({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},_),g=l.route;if(!w&&c&&r&&!a[a.length-1].route.index&&(w=st({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},_)),!w)return null;Object.assign(s,w.params),f.push({params:s,pathname:he([i,w.pathname]),pathnameBase:Tr(he([i,w.pathnameBase])),route:g}),w.pathnameBase!=="/"&&(i=he([i,w.pathnameBase]))}return f}function st(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=kr(e.path,e.caseSensitive,e.end),s=t.match(r);if(!s)return null;let i=s[0],f=i.replace(/(.)\/+$/,"$1"),h=s.slice(1);return{params:a.reduce((c,{paramName:_,isOptional:w},g)=>{if(_==="*"){let v=h[g]||"";f=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=h[g];return w&&!x?c[_]=void 0:c[_]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:f,pattern:e}}function kr(e,t=!1,r=!0){pe(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,l)=>(a.push({paramName:h,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),a]}function Rr(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return pe(!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 ye(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function Sr(e,t="/"){let{pathname:r,search:a="",hash:s=""}=typeof e=="string"?Et(e):e;return{pathname:r?r.startsWith("/")?r:Lr(r,t):t,search:$r(a),hash:Ir(s)}}function Lr(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function dt(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jr(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function gn(e){let t=jr(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function vn(e,t,r,a=!1){let s;typeof e=="string"?s=Et(e):(s={...e},ne(!s.pathname||!s.pathname.includes("?"),dt("?","pathname","search",s)),ne(!s.pathname||!s.pathname.includes("#"),dt("#","pathname","hash",s)),ne(!s.search||!s.search.includes("#"),dt("#","search","hash",s)));let i=e===""||s.pathname==="",f=i?"/":s.pathname,h;if(f==null)h=r;else{let w=t.length-1;if(!a&&f.startsWith("..")){let g=f.split("/");for(;g[0]==="..";)g.shift(),w-=1;s.pathname=g.join("/")}h=w>=0?t[w]:"/"}let l=Sr(s,h),c=f&&f!=="/"&&f.endsWith("/"),_=(i||f===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||_)&&(l.pathname+="/"),l}var he=e=>e.join("/").replace(/\/\/+/g,"/"),Tr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$r=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ir=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Mr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yn=["POST","PUT","PATCH","DELETE"];new Set(yn);var Nr=["GET",...yn];new Set(Nr);var Ne=p.createContext(null);Ne.displayName="DataRouter";var at=p.createContext(null);at.displayName="DataRouterState";var wn=p.createContext({isTransitioning:!1});wn.displayName="ViewTransition";var Ar=p.createContext(new Map);Ar.displayName="Fetchers";var Pr=p.createContext(null);Pr.displayName="Await";var me=p.createContext(null);me.displayName="Navigation";var bt=p.createContext(null);bt.displayName="Location";var _e=p.createContext({outlet:null,matches:[],isDataRoute:!1});_e.displayName="Route";var xt=p.createContext(null);xt.displayName="RouteError";function Or(e,{relative:t}={}){ne(it(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=p.useContext(me),{hash:s,pathname:i,search:f}=qe(e,{relative:t}),h=i;return r!=="/"&&(h=i==="/"?r:he([r,i])),a.createHref({pathname:h,search:f,hash:s})}function it(){return p.useContext(bt)!=null}function xe(){return ne(it(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(bt).location}var En="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bn(e){p.useContext(me).static||p.useLayoutEffect(e)}function zr(){let{isDataRoute:e}=p.useContext(_e);return e?Qr():Dr()}function Dr(){ne(it(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Ne),{basename:t,navigator:r}=p.useContext(me),{matches:a}=p.useContext(_e),{pathname:s}=xe(),i=JSON.stringify(gn(a)),f=p.useRef(!1);return bn(()=>{f.current=!0}),p.useCallback((l,c={})=>{if(pe(f.current,En),!f.current)return;if(typeof l=="number"){r.go(l);return}let _=vn(l,JSON.parse(i),s,c.relative==="path");e==null&&t!=="/"&&(_.pathname=_.pathname==="/"?t:he([t,_.pathname])),(c.replace?r.replace:r.push)(_,c.state,c)},[t,r,i,s,e])}p.createContext(null);function qe(e,{relative:t}={}){let{matches:r}=p.useContext(_e),{pathname:a}=xe(),s=JSON.stringify(gn(r));return p.useMemo(()=>vn(e,JSON.parse(s),a,t==="path"),[e,s,a,t])}function Br(e,t,r,a){ne(it(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=p.useContext(me),{matches:i}=p.useContext(_e),f=i[i.length-1],h=f?f.params:{},l=f?f.pathname:"/",c=f?f.pathnameBase:"/",_=f&&f.route;{let y=_&&_.path||"";xn(l,!_||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) 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.
60
+
61
+ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let w=xe(),g;g=w;let x=g.pathname||"/",v=x;if(c!=="/"){let y=c.replace(/^\//,"").split("/");v="/"+x.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=pn(e,{pathname:v});return pe(_||b!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),pe(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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.`),Vr(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},h,y.params),pathname:he([c,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:he([c,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r,a)}function Fr(){let e=Kr(),t=Mr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=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:i},"ErrorBoundary")," or"," ",p.createElement("code",{style:i},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:s},r):null,f)}var Hr=p.createElement(Fr,null),qr=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(_e.Provider,{value:this.props.routeContext},p.createElement(xt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ur({routeContext:e,match:t,children:r}){let a=p.useContext(Ne);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(_e.Provider,{value:e},r)}function Vr(e,t=[],r=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,i=r==null?void 0:r.errors;if(i!=null){let l=s.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);ne(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,l+1))}let f=!1,h=-1;if(r)for(let l=0;l<s.length;l++){let c=s[l];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(h=l),c.route.id){let{loaderData:_,errors:w}=r,g=c.route.loader&&!_.hasOwnProperty(c.route.id)&&(!w||w[c.route.id]===void 0);if(c.route.lazy||g){f=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((l,c,_)=>{let w,g=!1,x=null,v=null;r&&(w=i&&c.route.id?i[c.route.id]:void 0,x=c.route.errorElement||Hr,f&&(h<0&&_===0?(xn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):h===_&&(g=!0,v=c.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,_+1)),M=()=>{let y;return w?y=x:g?y=v:c.route.Component?y=p.createElement(c.route.Component,null):c.route.element?y=c.route.element:y=l,p.createElement(Ur,{match:c,routeContext:{outlet:l,matches:b,isDataRoute:r!=null},children:y})};return r&&(c.route.ErrorBoundary||c.route.errorElement||_===0)?p.createElement(qr,{location:r.location,revalidation:r.revalidation,component:x,error:w,children:M(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):M()},null)}function Ct(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yr(e){let t=p.useContext(Ne);return ne(t,Ct(e)),t}function Wr(e){let t=p.useContext(at);return ne(t,Ct(e)),t}function Xr(e){let t=p.useContext(_e);return ne(t,Ct(e)),t}function kt(e){let t=Xr(e),r=t.matches[t.matches.length-1];return ne(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Gr(){return kt("useRouteId")}function Kr(){var a;let e=p.useContext(xt),t=Wr("useRouteError"),r=kt("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function Qr(){let{router:e}=Yr("useNavigate"),t=kt("useNavigate"),r=p.useRef(!1);return bn(()=>{r.current=!0}),p.useCallback(async(s,i={})=>{pe(r.current,En),r.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...i}))},[e,t])}var Zt={};function xn(e,t,r){!t&&!Zt[e]&&(Zt[e]=!0,pe(!1,r))}p.memo(Zr);function Zr({routes:e,future:t,state:r}){return Br(e,void 0,r,t)}var rt="get",ot="application/x-www-form-urlencoded";function lt(e){return e!=null&&typeof e.tagName=="string"}function Jr(e){return lt(e)&&e.tagName.toLowerCase()==="button"}function eo(e){return lt(e)&&e.tagName.toLowerCase()==="form"}function to(e){return lt(e)&&e.tagName.toLowerCase()==="input"}function no(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ro(e,t){return e.button===0&&(!t||t==="_self")&&!no(e)}var Je=null;function oo(){if(Je===null)try{new FormData(document.createElement("form"),0),Je=!1}catch{Je=!0}return Je}var so=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ft(e){return e!=null&&!so.has(e)?(pe(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ot}"`),null):e}function ao(e,t){let r,a,s,i,f;if(eo(e)){let h=e.getAttribute("action");a=h?ye(h,t):null,r=e.getAttribute("method")||rt,s=ft(e.getAttribute("enctype"))||ot,i=new FormData(e)}else if(Jr(e)||to(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||h.getAttribute("action");if(a=l?ye(l,t):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||rt,s=ft(e.getAttribute("formenctype"))||ft(h.getAttribute("enctype"))||ot,i=new FormData(h,e),!oo()){let{name:c,type:_,value:w}=e;if(_==="image"){let g=c?`${c}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else c&&i.append(c,w)}}else{if(lt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=rt,a=null,s=ot,f=e}return i&&s==="text/plain"&&(f=i,i=void 0),{action:a,method:r.toLowerCase(),encType:s,formData:i,body:f}}function Rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function io(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function lo(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 co(e,t,r){let a=await Promise.all(e.map(async s=>{let i=t.routes[s.route.id];if(i){let f=await io(i,r);return f.links?f.links():[]}return[]}));return po(a.flat(1).filter(lo).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Jt(e,t,r,a,s,i){let f=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,h=(l,c)=>{var _;return r[c].pathname!==l.pathname||((_=r[c].route.path)==null?void 0:_.endsWith("*"))&&r[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>f(l,c)||h(l,c)):i==="data"?t.filter((l,c)=>{var w;let _=a.routes[l.route.id];if(!_||!_.hasLoader)return!1;if(f(l,c)||h(l,c))return!0;if(l.route.shouldRevalidate){let g=l.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((w=r[0])==null?void 0:w.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function uo(e,t,{includeHydrateFallback:r}={}){return fo(e.map(a=>{let s=t.routes[a.route.id];if(!s)return[];let i=[s.module];return s.clientActionModule&&(i=i.concat(s.clientActionModule)),s.clientLoaderModule&&(i=i.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(i=i.concat(s.hydrateFallbackModule)),s.imports&&(i=i.concat(s.imports)),i}).flat(1))}function fo(e){return[...new Set(e)]}function ho(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function po(e,t){let r=new Set;return new Set(t),e.reduce((a,s)=>{let i=JSON.stringify(ho(s));return r.has(i)||(r.add(i),a.push({key:i,link:s})),a},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mo=new Set([100,101,204,205]);function _o(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&ye(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Cn(){let e=p.useContext(Ne);return Rt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function go(){let e=p.useContext(at);return Rt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var St=p.createContext(void 0);St.displayName="FrameworkContext";function kn(){let e=p.useContext(St);return Rt(e,"You must render this element inside a <HydratedRouter> element"),e}function vo(e,t){let r=p.useContext(St),[a,s]=p.useState(!1),[i,f]=p.useState(!1),{onFocus:h,onBlur:l,onMouseEnter:c,onMouseLeave:_,onTouchStart:w}=t,g=p.useRef(null);p.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let b=y=>{y.forEach(S=>{f(S.isIntersecting)})},M=new IntersectionObserver(b,{threshold:.5});return g.current&&M.observe(g.current),()=>{M.disconnect()}}},[e]),p.useEffect(()=>{if(a){let b=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(b)}}},[a]);let x=()=>{s(!0)},v=()=>{s(!1),f(!1)};return r?e!=="intent"?[i,g,{}]:[i,g,{onFocus:De(h,x),onBlur:De(l,v),onMouseEnter:De(c,x),onMouseLeave:De(_,v),onTouchStart:De(w,x)}]:[!1,g,{}]}function De(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function yo({page:e,...t}){let{router:r}=Cn(),a=p.useMemo(()=>pn(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?p.createElement(Eo,{page:e,matches:a,...t}):null}function wo(e){let{manifest:t,routeModules:r}=kn(),[a,s]=p.useState([]);return p.useEffect(()=>{let i=!1;return co(e,t,r).then(f=>{i||s(f)}),()=>{i=!0}},[e,t,r]),a}function Eo({page:e,matches:t,...r}){let a=xe(),{manifest:s,routeModules:i}=kn(),{basename:f}=Cn(),{loaderData:h,matches:l}=go(),c=p.useMemo(()=>Jt(e,t,l,s,a,"data"),[e,t,l,s,a]),_=p.useMemo(()=>Jt(e,t,l,s,a,"assets"),[e,t,l,s,a]),w=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let v=new Set,b=!1;if(t.forEach(y=>{var L;let S=s.routes[y.route.id];!S||!S.hasLoader||(!c.some(T=>T.route.id===y.route.id)&&y.route.id in h&&((L=i[y.route.id])!=null&&L.shouldRevalidate)||S.hasClientLoader?b=!0:v.add(y.route.id))}),v.size===0)return[];let M=_o(e,f);return b&&v.size>0&&M.searchParams.set("_routes",t.filter(y=>v.has(y.route.id)).map(y=>y.route.id).join(",")),[M.pathname+M.search]},[f,h,a,s,c,t,e,i]),g=p.useMemo(()=>uo(_,s),[_,s]),x=wo(_);return p.createElement(p.Fragment,null,w.map(v=>p.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...r})),g.map(v=>p.createElement("link",{key:v,rel:"modulepreload",href:v,...r})),x.map(({key:v,link:b})=>p.createElement("link",{key:v,...b})))}function bo(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Rn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rn&&(window.__reactRouterVersion="7.6.1")}catch{}var Sn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=p.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:s,reloadDocument:i,replace:f,state:h,target:l,to:c,preventScrollReset:_,viewTransition:w,...g},x){let{basename:v}=p.useContext(me),b=typeof c=="string"&&Sn.test(c),M,y=!1;if(typeof c=="string"&&b&&(M=c,Rn))try{let Y=new URL(window.location.href),ee=c.startsWith("//")?new URL(Y.protocol+c):new URL(c),B=ye(ee.pathname,v);ee.origin===Y.origin&&B!=null?c=B+ee.search+ee.hash:y=!0}catch{pe(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=Or(c,{relative:s}),[L,T,j]=vo(a,g),X=Ro(c,{replace:f,state:h,target:l,preventScrollReset:_,relative:s,viewTransition:w});function G(Y){t&&t(Y),Y.defaultPrevented||X(Y)}let z=p.createElement("a",{...g,...j,href:M||S,onClick:y||i?t:G,ref:bo(x,T),target:l,"data-discover":!b&&r==="render"?"true":void 0});return L&&!b?p.createElement(p.Fragment,null,z,p.createElement(yo,{page:S})):z});Fe.displayName="Link";var xo=p.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:s=!1,style:i,to:f,viewTransition:h,children:l,...c},_){let w=qe(f,{relative:c.relative}),g=xe(),x=p.useContext(at),{navigator:v,basename:b}=p.useContext(me),M=x!=null&&$o(w)&&h===!0,y=v.encodeLocation?v.encodeLocation(w).pathname:w.pathname,S=g.pathname,L=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;r||(S=S.toLowerCase(),L=L?L.toLowerCase():null,y=y.toLowerCase()),L&&b&&(L=ye(L,b)||L);const T=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let j=S===y||!s&&S.startsWith(y)&&S.charAt(T)==="/",X=L!=null&&(L===y||!s&&L.startsWith(y)&&L.charAt(y.length)==="/"),G={isActive:j,isPending:X,isTransitioning:M},z=j?t:void 0,Y;typeof a=="function"?Y=a(G):Y=[a,j?"active":null,X?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let ee=typeof i=="function"?i(G):i;return p.createElement(Fe,{...c,"aria-current":z,className:Y,ref:_,style:ee,to:f,viewTransition:h},typeof l=="function"?l(G):l)});xo.displayName="NavLink";var Co=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:s,state:i,method:f=rt,action:h,onSubmit:l,relative:c,preventScrollReset:_,viewTransition:w,...g},x)=>{let v=jo(),b=To(h,{relative:c}),M=f.toLowerCase()==="get"?"get":"post",y=typeof h=="string"&&Sn.test(h),S=L=>{if(l&&l(L),L.defaultPrevented)return;L.preventDefault();let T=L.nativeEvent.submitter,j=(T==null?void 0:T.getAttribute("formmethod"))||f;v(T||L.currentTarget,{fetcherKey:t,method:j,navigate:r,replace:s,state:i,relative:c,preventScrollReset:_,viewTransition:w})};return p.createElement("form",{ref:x,method:M,action:b,onSubmit:a?l:S,...g,"data-discover":!y&&e==="render"?"true":void 0})});Co.displayName="Form";function ko(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ln(e){let t=p.useContext(Ne);return ne(t,ko(e)),t}function Ro(e,{target:t,replace:r,state:a,preventScrollReset:s,relative:i,viewTransition:f}={}){let h=zr(),l=xe(),c=qe(e,{relative:i});return p.useCallback(_=>{if(ro(_,t)){_.preventDefault();let w=r!==void 0?r:vt(l)===vt(c);h(e,{replace:w,state:a,preventScrollReset:s,relative:i,viewTransition:f})}},[l,h,c,r,a,t,e,s,i,f])}var So=0,Lo=()=>`__${String(++So)}__`;function jo(){let{router:e}=Ln("useSubmit"),{basename:t}=p.useContext(me),r=Gr();return p.useCallback(async(a,s={})=>{let{action:i,method:f,encType:h,formData:l,body:c}=ao(a,t);if(s.navigate===!1){let _=s.fetcherKey||Lo();await e.fetch(_,r,s.action||i,{preventScrollReset:s.preventScrollReset,formData:l,body:c,formMethod:s.method||f,formEncType:s.encType||h,flushSync:s.flushSync})}else await e.navigate(s.action||i,{preventScrollReset:s.preventScrollReset,formData:l,body:c,formMethod:s.method||f,formEncType:s.encType||h,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,r])}function To(e,{relative:t}={}){let{basename:r}=p.useContext(me),a=p.useContext(_e);ne(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),i={...qe(e||".",{relative:t})},f=xe();if(e==null){i.search=f.search;let h=new URLSearchParams(i.search),l=h.getAll("index");if(l.some(_=>_==="")){h.delete("index"),l.filter(w=>w).forEach(w=>h.append("index",w));let _=h.toString();i.search=_?`?${_}`:""}}return(!e||e===".")&&s.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:he([r,i.pathname])),vt(i)}function $o(e,t={}){let r=p.useContext(wn);ne(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Ln("useViewTransitionState"),s=qe(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=ye(r.currentLocation.pathname,a)||r.currentLocation.pathname,f=ye(r.nextLocation.pathname,a)||r.nextLocation.pathname;return st(s.pathname,f)!=null||st(s.pathname,i)!=null}[...mo];const Io="_button_w916g_161",Mo="_noMargin_w916g_189",No="_regular_w916g_199",Ao="_small_w916g_202",Po="_primary_w916g_213",Oo="_noHover_w916g_217",zo="_secondary_w916g_233",Do="_disabled_w916g_252",Bo="_hasErrors_w916g_272",Fo="_rounded_w916g_278",Ho="_hasArrowLeft_w916g_282",qo="_pushprev_w916g_1",Uo="_hasArrowRight_w916g_320",Vo="_pushnext_w916g_1",ce={button:Io,noMargin:Mo,regular:No,small:Ao,primary:Po,noHover:Oo,secondary:zo,disabled:Do,hasErrors:Bo,rounded:Fo,hasArrowLeft:Ho,pushprev:qo,hasArrowRight:Uo,pushnext:Vo},Lt=({content:e,color:t="primary",size:r="regular",arrow:a="none",disabled:s=!1,inputType:i,defaultChecked:f,hasErrors:h=!1,noHover:l=!1,rounded:c=!1,noMargin:_=!1,href:w,children:g,...x})=>{const v=T=>{switch(T){case"left":return ce.hasArrowLeft;case"right":return ce.hasArrowRight;default:return""}},b=i==="radio"?f?"primary":"secondary":t,M=J([ce.button,ce[b],ce[r],v(a),l||i==="radio"?ce.noHover:null,c&&ce.rounded,h&&ce.hasErrors,s&&ce.disabled,_&&ce.noMargin]),y={"aria-invalid":h||void 0,href:!s&&(w!=null&&w.length)?w:void 0,className:M,...x},S=T=>fe.Children.toArray(Me(T)).map((X,G)=>{if(!fe.isValidElement(X))return null;const z=X,Y=z.type===Fe&&typeof z.props=="object"&&z.props!==null&&"to"in z.props;return!s&&Y?p.cloneElement(z,{className:M,key:`button-${G}`,to:z.props.to}):p.createElement("button",{...y,key:`button-${G}`},e||z.props&&z.props.children)});if(i==="button")return d.jsx("button",{type:"button",...y,children:e||g});if(i==="radio"){const T={...y};return delete T.href,d.jsxs("label",{className:M,children:[d.jsx("input",{...T,type:"radio"}),e]})}if(w!=null&&w.length&&!s){const T={...y};return"type"in T&&delete T.type,d.jsx("a",{...T,children:e||g})}return fe.isValidElement(g)&&g.type===Fe?d.jsx(p.Fragment,{children:S(p.Children.toArray(g))}):d.jsx("button",{...y,children:e||g})},Yo="_checkBoxIcon_1kc3w_1",Wo="_showBox_1kc3w_22",Xo="_hasErrors_1kc3w_27",Go="_checked_1kc3w_37",Ko="_disabled_1kc3w_53",Qo="_checkmark_1kc3w_58",ke={checkBoxIcon:Yo,showBox:Wo,hasErrors:Xo,checked:Go,disabled:Ko,checkmark:Qo},yt=({size:e="20px",checked:t=!1,disabled:r=!1,showBox:a=!0,hasErrors:s=!1,checkmarkCharacter:i="✔"})=>{const f={height:e,width:e,fontSize:e},h=[ke.checkBoxIcon,t&&ke.checked,r&&ke.disabled,a&&ke.showBox,s&&ke.hasErrors].filter(Boolean).join(" ");return d.jsx("span",{className:h,style:f,children:d.jsx("span",{"aria-hidden":!0,className:ke.checkmark,children:t?i:""})})},we="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",Zo="_checkBoxInput_f1w9m_1",Jo="_requiredSymbol_f1w9m_6",es="_contentOnly_f1w9m_13",ts="_disabled_f1w9m_13",ns="_labelText_f1w9m_19",rs="_hasErrors_f1w9m_27",Re={checkBoxInput:Zo,requiredSymbol:Jo,contentOnly:es,disabled:ts,labelText:ns,hasErrors:rs},jn=({checked:e=!1,disabled:t=!1,required:r=!1,requiredGroup:a=!1,id:s,name:i="",onChange:f,contentOnly:h=!1,hasErrors:l=!1,checkmarkCharacter:c="✔",tabIndex:_=0,children:w,"aria-controls":g,"aria-describedby":x})=>{const v=[Re.checkBoxInput,h&&Re.contentOnly,t&&Re.disabled,l&&Re.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,showBox:!h,hasErrors:h&&l,checkmarkCharacter:c},M={id:s,name:i,type:"checkbox",checked:e,disabled:t,required:r||a,onChange:f,tabIndex:_,"aria-controls":g,"aria-invalid":l?"true":void 0,"aria-describedby":x};return d.jsxs("label",{htmlFor:s,className:v,children:[h?d.jsx(yt,{...b}):d.jsxs(d.Fragment,{children:[d.jsx(yt,{...b}),d.jsx("input",{...M})]}),d.jsxs("span",{className:Re.labelText,children:[w,r&&d.jsx("img",{src:we,alt:"",className:Re.requiredSymbol})]})]})},os="_checkBoxList_1sp8d_1",ss="_requiredSymbol_1sp8d_16",en={checkBoxList:os,requiredSymbol:ss},as="_headerContainer_t2si7_1",is="_header_t2si7_1",ls="_bigHeader_t2si7_16",et={headerContainer:as,header:is,"size-1":"_size-1_t2si7_8",bigHeader:ls,"size-2":"_size-2_t2si7_28","size-3":"_size-3_t2si7_36","size-4":"_size-4_t2si7_44","size-5":"_size-5_t2si7_52"},jt=({id:e,content:t,size:r=1,big:a,label:s,htmlTag:i,htmlFor:f,children:h})=>{const l=i||`h${r}`,c=J([et.header,et[`size-${r}`],a&&et.bigHeader]),_=s!=null&&s.length&&typeof s=="string"?{"--label":`"${s}"`}:void 0,w=fe.createElement(l,{className:c,id:e||void 0,htmlFor:f||void 0,style:_},t!=null&&t.length?t:h);return d.jsx("div",{className:et.headerContainer,children:w})},Tn=({legend:e,legendSize:t,required:r=!1,compact:a=!1,children:s})=>{const i=f=>Me(f).map((l,c)=>{var _;return p.isValidElement(l)&&((_=l.type)==null?void 0:_.displayName)==="RadioButtonListItem"?p.cloneElement(l,{requiredGroup:r,compact:a,key:`checkboxListItem-${c}`}):l});return d.jsxs("fieldset",{className:en.checkBoxList,children:[!!(e!=null&&e.length)&&d.jsxs("legend",{children:[t?d.jsx(jt,{size:t,children:e}):e,r&&d.jsx("img",{src:we,alt:"",className:en.requiredSymbol})]}),i(p.Children.toArray(s))]})},cs="_checkBoxListItem_jnb8z_1",us="_contentOnly_jnb8z_26",ds="_compact_jnb8z_26",fs="_disabled_jnb8z_41",hs="_checked_jnb8z_44",Se={checkBoxListItem:cs,contentOnly:us,compact:ds,disabled:fs,checked:hs},$n=({checked:e=!1,disabled:t=!1,required:r=!1,requiredGroup:a=!1,id:s,name:i="",onChange:f,contentOnly:h=!1,compact:l=!1,hasErrors:c=!1,checkmarkCharacter:_="✔","aria-controls":w,"aria-describedby":g,children:x})=>{const v=J([Se.checkBoxListItem,e&&Se.checked,t&&Se.disabled,l&&Se.compact,h&&Se.contentOnly,c&&Se.hasErrors]),b={onChange:f??(()=>{}),checked:e,disabled:t,required:r,requiredGroup:a,contentOnly:h,hasErrors:c,"aria-controls":w,"aria-describedby":g,id:s,name:i,checkmarkCharacter:_};return d.jsx("div",{className:v,children:d.jsx(jn,{...b,children:x})})},ps="_container_f8z49_1",ms={container:ps},In=({maxWidth:e,children:t})=>{const r={"--max-width":e!=null&&e.length?e:void 0};return d.jsx("div",{className:ms.container,style:r,children:t})},_s="_contentBox_1ndvc_1",gs="_link_1ndvc_8",vs="_content_1ndvc_1",ys="_title_1ndvc_25",ws="_secondary_1ndvc_28",Es="_regular_1ndvc_36",bs="_large_1ndvc_45",Le={contentBox:_s,link:gs,default:"_default_1ndvc_21",content:vs,title:ys,secondary:ws,regular:Es,large:bs},xs=({title:e=null,titleSize:t="regular",content:r="",children:a,color:s="default",href:i=null})=>{const f=()=>{if(!e)return null;const g=`${Le.title} ${Le[t]}`;return d.jsx("h2",{className:g,children:e})},h=Le[s]||"",l=i?Le.link:"",c=`${Le.contentBox} ${h} ${l}`.trim(),_=r!=null&&r.length?r:a,w=d.jsxs(d.Fragment,{children:[f(),d.jsx("div",{className:Le.content,children:_})]});return i?d.jsx("a",{href:i,className:c,children:w}):d.jsx("div",{className:c,children:w})},Cs="_descriptionDetails_1d1dj_1",ks="_compact_1d1dj_7",tn={descriptionDetails:Cs,compact:ks},Rs=({compact:e=!1,titleWidth:t,children:r})=>d.jsx("dd",{className:J([tn.descriptionDetails,e&&tn.compact]),style:{"--title-width":t||void 0},children:r}),Ss="_descriptionList_w11ua_1",Ls="_compact_w11ua_13",nn={descriptionList:Ss,compact:Ls},js=({compact:e=!1,titleWidth:t,children:r})=>{const a=s=>Me(s).map((f,h)=>p.isValidElement(f)?p.cloneElement(f,{compact:e,titleWidth:t,key:`descriptionListItem-${h}`}):f);return fe.createElement("dl",{className:J([nn.descriptionList,e&&nn.compact]),style:{"--title-width":t||void 0}},a(p.Children.toArray(r)))},Ts="_descriptionTerm_uuapd_1",$s="_compact_uuapd_8",rn={descriptionTerm:Ts,compact:$s},Is=({compact:e=!1,titleWidth:t,children:r})=>d.jsx("dt",{className:J([rn.descriptionTerm,e&&rn.compact]),style:{"--title-width":t||void 0},children:r}),Ms="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",Ns="_dialog_1qsqp_19",As="_dialogContainer_1qsqp_33",Ps="_dialogContent_1qsqp_38",Os="_closeButton_1qsqp_45",zs="_isSidebar_1qsqp_60",Ds="_modalInVertical_1qsqp_1",Bs="_noPadding_1qsqp_74",Fs="_left_1qsqp_113",Hs="_modalInHorizontalLeft_1qsqp_1",qs="_right_1qsqp_120",Us="_modalInHorizontalRight_1qsqp_1",Vs="_dialogOverlay_1qsqp_128",ve={dialog:Ns,dialogContainer:As,dialogContent:Ps,closeButton:Os,isSidebar:zs,modalInVertical:Ds,noPadding:Bs,left:Fs,modalInHorizontalLeft:Hs,right:qs,modalInHorizontalRight:Us,dialogOverlay:Vs},Ys=({maxWidth:e="none",noPadding:t,closeButton:r,onClickOutside:a,modal:s=!1,attachTo:i,hidden:f=!1,children:h})=>{const l=p.useRef(null),c=p.useRef(null),_=p.useCallback(x=>{x&&hn(x)},[]);p.useEffect(()=>{const x=b=>{b.key==="Escape"&&a&&a()},v=b=>{c.current&&!c.current.contains(b.target)&&a()};return document.addEventListener("mousedown",v),document.addEventListener("keydown",x,!1),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",x,!1)}},[a]),p.useEffect(()=>{l.current&&(l.current.close(),f||(s?l.current.showModal():l.current.show()))},[f,s]);const w=i&&J([ve.isSidebar,ve[i]]),g={"--max-width":e};return d.jsx("dialog",{className:J([ve.dialog,w]),ref:l,children:d.jsx("div",{ref:c,className:ve.dialogContainer,style:g,children:d.jsxs("div",{ref:_,className:J([ve.dialogContent,t&&ve.noPadding]),children:[r&&d.jsx("button",{"aria-label":"Lukk dialog",onClick:a,className:J([ve.closeButton,t&&ve.noPadding]),children:d.jsx("img",{src:Ms,alt:""})}),d.jsx("div",{"aria-live":"assertive",role:"dialog",children:h})]})})})},Ws="_label_18de6_1",Xs="_inline_18de6_11",Gs="_normalCursor_18de6_14",ht={label:Ws,inline:Xs,normalCursor:Gs},Ie=({inline:e=!1,normalCursor:t=!1,htmlTag:r="label",children:a,id:s,...i})=>{const f=[ht.label,e&&ht.inline,t&&ht.normalCursor].filter(Boolean).join(" "),h={...i,className:f,id:s||void 0};return fe.createElement(r,h,a)},Ks="_dragAndDropFileInput_l98z1_1",Qs="_requiredSymbol_l98z1_1",Zs="_dragAndDropContainer_l98z1_8",Js="_highlighted_l98z1_26",tt={dragAndDropFileInput:Ks,requiredSymbol:Qs,dragAndDropContainer:Zs,highlighted:Js},ea="_errorMessage_i8u6b_7",ta="_errorSign_i8u6b_19",on={errorMessage:ea,errorSign:ta},na="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",Ue=({id:e,content:t=""})=>{const r=()=>({id:e!=null&&e.length?e:void 0,className:on.errorMessage});return(typeof t=="string"?t.trim().length>0:!!t)?d.jsxs("span",{"aria-live":"polite",...r(),children:[d.jsx("img",{src:na,alt:"",className:on.errorSign}),t]}):null},ra=({id:e,name:t,onSelectChange:r,onDragAndDropChange:a,label:s="",contentOnly:i=!1,buttonColor:f="primary",buttonContent:h,buttonContentWhenSelectedFile:l,selectedFileName:c,defaultContent:_="",hasErrors:w=!1,errorMessage:g="",required:x=!1,children:v,"data-transaction-name":b})=>{const[M,y]=p.useState(!1),S=p.useRef(null),L=p.useRef(null),T=F=>{F.preventDefault(),F.stopPropagation()},j=(F,$)=>F||$,X=()=>{var F;(F=L.current)==null||F.click()},G=()=>`${e}-errorMessage`,z={id:e,"aria-describedby":w&&(g!=null&&g.toString().length)?G():void 0,"aria-invalid":w?"true":void 0,name:t,required:x},Y=c&&l||h,ee=p.useCallback(()=>y(!0),[]),B=p.useCallback(()=>y(!1),[]),re=p.useCallback(F=>{var $;T(F),($=F.dataTransfer)!=null&&$.files&&a(F.dataTransfer.files),y(!1)},[a]);return p.useEffect(()=>{const F=S.current;if(F)return["dragenter","dragover"].forEach($=>F.addEventListener($,ee)),["dragleave","drop"].forEach($=>F.addEventListener($,B)),["dragenter","dragover","dragleave","drop"].forEach($=>F.addEventListener($,T)),F.addEventListener("drop",re),()=>{["dragenter","dragover","dragleave","drop"].forEach($=>{F.removeEventListener($,T),F.removeEventListener($,ee),F.removeEventListener($,B)}),F.removeEventListener("drop",re)}},[a]),d.jsxs("div",{className:tt.dragAndDropFileInput,children:[d.jsxs(Ie,{htmlFor:e,children:[s,x&&d.jsx("img",{src:we,alt:"",className:tt.requiredSymbol})]}),d.jsx("div",{children:v}),!i&&d.jsxs("div",{ref:S,className:`${tt.dragAndDropContainer} ${M?tt.highlighted:""}`,children:[c?d.jsx("div",{children:d.jsxs("span",{children:[d.jsx("b",{children:"Valgt fil:"})," ",c]})}):d.jsx("div",{children:"Slipp fil her"}),d.jsx("input",{...z,ref:L,type:"file",onChange:r}),h&&d.jsxs(d.Fragment,{children:[d.jsx("div",{children:c?"":"eller klikk på knappen for å velge fil"}),d.jsx(Lt,{size:"small",inputType:"button",color:f,onClick:X,content:Y,hasErrors:w,"data-transaction-name":b})]})]}),i&&d.jsx("span",{children:j(c,_)}),d.jsx(Ue,{id:G(),content:g})]})},oa="_errorBoxContainer_88ulw_7",sa="_messageIn_88ulw_1",aa="_warning_88ulw_14",ia="_error_88ulw_7",la="_fullScreen_88ulw_22",ca="_errorBox_88ulw_7",ua="_infoSign_88ulw_38",je={errorBoxContainer:oa,messageIn:sa,warning:aa,error:ia,fullScreen:la,errorBox:ca,infoSign:ua},Mn="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",da=({type:e="warning",fullScreen:t=!1,children:r=""})=>d.jsx("div",{className:J([je.errorBoxContainer,je[e],t&&je.fullScreen]),children:d.jsxs("div",{className:J([je.errorBox,t&&je.fullScreen]),children:[d.jsx("img",{src:Mn,alt:"",className:je.infoSign}),r]})}),fa="_footer_19fad_1",ha={footer:fa},pa=({children:e})=>d.jsx("footer",{className:ha.footer,children:d.jsx(In,{children:e})}),ma="_infoBox_1mh67_7",_a="_infoSign_1mh67_15",sn={infoBox:ma,infoSign:_a},ga=({children:e=""})=>d.jsxs("div",{className:sn.infoBox,children:[d.jsx("img",{src:Mn,alt:"",className:sn.infoSign}),e]}),va="_inputField_17rmz_1",ya="_noMargin_17rmz_4",wa="_requiredSymbol_17rmz_10",Ea="_file_17rmz_17",ba="_input_17rmz_1",xa="_hasErrors_17rmz_50",Ca="_fileInputContainer_17rmz_62",be={inputField:va,noMargin:ya,requiredSymbol:wa,file:Ea,input:ba,hasErrors:xa,fileInputContainer:Ca},Tt=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*a));return t},ka=({id:e,onChange:t,onBlur:r,name:a="",type:s="text",disabled:i=!1,required:f=!1,readOnly:h,width:l,value:c,defaultValue:_,elementKey:w,label:g="",contentOnly:x=!1,buttonColor:v="primary",buttonContent:b,selectedFileName:M,placeholder:y="",defaultContent:S="",min:L,max:T,role:j,"aria-describedby":X,"aria-autocomplete":G,hasErrors:z=!1,errorMessage:Y="",noMargin:ee=!1})=>{const B=W=>{const Z=new Date(W);return`${String(Z.getDate()).padStart(2,"0")}.${String(Z.getMonth()+1).padStart(2,"0")}.${Z.getFullYear()}`},re=(W,Z)=>s==="date"?W?B(W):Z:W||Z,F=()=>`${e}-errorMessage`,$=l?{maxWidth:l}:{},Q={name:a,readOnly:h,disabled:i,required:f,type:s,role:j,id:e,min:L,max:T,onChange:t,onBlur:r,...c!==void 0?{value:c}:_!==void 0?{defaultValue:_}:{},placeholder:y,className:z?be.hasErrors:void 0,"aria-describedby":z&&Y?F():X,"aria-invalid":z?"true":void 0,"aria-autocomplete":G||void 0,style:$};return d.jsxs("div",{className:J([be.inputField,be[s],ee&&be.noMargin]),children:[d.jsxs(Ie,{htmlFor:e,children:[g,f&&d.jsx("img",{src:we,alt:"",className:be.requiredSymbol}),s==="file"&&d.jsxs("div",{className:be.fileInputContainer,children:[d.jsx("span",{className:be.input,children:M}),b&&d.jsx(Lt,{color:v,inputType:"button",onClick:()=>{const W=document==null?void 0:document.getElementById(e);W==null||W.click()},content:b})]})]}),x?d.jsx("span",{children:re(c??_,S)}):d.jsx("input",{...Q},w||`${e}-${Tt(6)}`),d.jsx(Ue,{id:F(),content:Y})]})},Ra="_lead_176gy_1",Sa={lead:Ra},La=({id:e,htmlTag:t="p",children:r})=>fe.createElement(t,{className:Sa.lead,id:e||void 0},r),ja="_list_16gsl_1",Ta="_compact_16gsl_10",an={list:ja,compact:Ta},$a=({listStyle:e,compact:t=!1,ordered:r=!1,children:a})=>{const s=l=>Me(l).map((_,w)=>p.isValidElement(_)?p.cloneElement(_,{compact:t,key:`listItem-${w}`}):_),i=r?"ol":"ul",f=r?"decimal":"disc";return fe.createElement(i,{className:`${an.list} ${t?an.compact:""}`,style:{["--listStyle"]:e||f}},s(p.Children.toArray(a)))},Ia="_listItem_33xs0_1",Ma="_compact_33xs0_5",ln={listItem:Ia,compact:Ma},Na=({compact:e=!1,children:t})=>{const r=J([ln.listItem,e&&ln.compact]);return d.jsx("li",{className:r,children:t})},Aa="_loadingAnimation_hzd5u_1",Pa="_fixed_hzd5u_17",pt={loadingAnimation:Aa,fixed:Pa},Oa=({fixed:e=!1,message:t=""})=>{const r=e?`${pt.loadingAnimation} ${pt.fixed}`:pt.loadingAnimation;return d.jsx("div",{className:r,children:t})},wt=({listItem:e})=>typeof e=="string"?d.jsx("li",{children:d.jsx("span",{children:e})}):typeof e=="object"?d.jsx("li",{children:d.jsx("a",{href:e.href,children:e.name})}):null,za="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",Da="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",Ba="_navigationBarContainer_n1cc0_1",Fa="_mainContentLink_n1cc0_1",Ha="_compact_n1cc0_30",qa="_navigationBar_n1cc0_1",Ua="_preventStacking_n1cc0_63",Va="_logoContainer_n1cc0_82",Ya="_childElements_n1cc0_91",Wa="_menuToggle_n1cc0_97",Xa="_hamburgerIcon_n1cc0_125",Ga="_active_n1cc0_161",Ka="_dropdownContainer_n1cc0_170",Qa="_dropdown_n1cc0_170",Za="_primaryList_n1cc0_195",Ja="_secondaryList_n1cc0_196",ei="_line_n1cc0_392",te={navigationBarContainer:Ba,mainContentLink:Fa,compact:Ha,navigationBar:qa,preventStacking:Ua,logoContainer:Va,childElements:Ya,menuToggle:Wa,hamburgerIcon:Xa,active:Ga,dropdownContainer:Ka,dropdown:Qa,primaryList:Za,secondaryList:Ja,line:ei},ti=e=>(e==null?void 0:e.logo)??"",ni=e=>(e==null?void 0:e.logoPadding)??"",ri=e=>(e==null?void 0:e.appName)??"",oi=({primaryListItems:e=[],secondaryListItems:t=[],logoLink:r="",logoLinkTitle:a,openLogoLinkInNewTab:s,theme:i,compact:f,mainContentId:h,preventChildElementStacking:l=!1,children:c})=>{const[_,w]=p.useState(!1),g=()=>w(!_),x=S=>({padding:ni(S)}),v=(S=e,L=0)=>S.length?d.jsx("ul",{className:te.primaryList,children:S.map((T,j)=>{const X=`${L}-${j}`;return T.listItems?d.jsxs("li",{children:[d.jsx("span",{children:T.name}),v(T.listItems,L+1)]},X):d.jsx(wt,{listItem:T},X)})}):null,b=()=>t.length?d.jsx("ul",{className:te.secondaryList,children:t.map((S,L)=>d.jsx(wt,{listItem:S},L))}):null,M=(S,L)=>{const T=ti(i),j=ri(i),X=S&&L?"":T&&j?`${j} logo`:"DIBK logo",G=T?d.jsx("img",{alt:X,src:T,style:x(i)}):d.jsx("img",{alt:X,src:f?za:Da});return S!=null&&S.length?d.jsx("a",{href:S,title:L,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,children:G}):G},y=e.length>0||t.length>0;return d.jsxs("div",{className:J([f&&te.compact,te.navigationBarContainer]),children:[h&&d.jsx("a",{id:"main-content-link",href:`#${h}`,className:te.mainContentLink,children:d.jsx("span",{id:"main-content-link-text",children:"Hopp til hovedinnhold"})}),d.jsxs("div",{className:J([te.navigationBar,l&&te.preventStacking]),children:[d.jsx("div",{className:te.logoContainer,children:M(r,a)}),c&&d.jsx("div",{className:te.childElements,children:c}),y&&d.jsxs("button",{type:"button",className:`${te.menuToggle} ${_?te.active:""}`,onClick:g,"aria-expanded":_?"true":"false","aria-controls":"main-menu-dropdown",children:[!f&&"Meny",d.jsxs("span",{className:te.hamburgerIcon,children:[d.jsx("span",{className:te.line}),d.jsx("span",{className:te.line}),d.jsx("span",{className:te.line})]})]})]}),y&&d.jsx(p.Fragment,{children:d.jsx("div",{className:J([te.dropdownContainer,_&&te.active]),children:d.jsxs("div",{id:"main-menu-dropdown",className:te.dropdown,children:[v(),b()]})})})]})},si="_paper_1lgl3_1",ai="_noMargin_1lgl3_6",ii="_noPadding_1lgl3_9",mt={paper:si,noMargin:ai,noPadding:ii},li=({noMargin:e=!1,noPadding:t=!1,children:r})=>{const a=[mt.paper,e&&mt.noMargin,t&&mt.noPadding].filter(Boolean).join(" ");return d.jsx("div",{className:a,children:r})},ci="_progressBar_t5aid_1",ui="_hasErrors_t5aid_23",cn={progressBar:ci,hasErrors:ui},di=({progress:e=0,hasErrors:t=!1})=>d.jsx("div",{className:`${cn.progressBar} ${t?cn.hasErrors:""}`,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,style:{"--value":e}}),fi="_radioButtonIcon_32fe0_1",hi="_hasErrors_32fe0_22",pi="_checked_32fe0_32",mi="_disabled_32fe0_48",nt={radioButtonIcon:fi,hasErrors:hi,checked:pi,disabled:mi},Nn=({size:e="10px",checked:t=!1,disabled:r=!1,hasErrors:a=!1})=>{const s={height:e,width:e},i=[nt.radioButtonIcon,t&&nt.checked,r&&nt.disabled,a&&nt.hasErrors].filter(Boolean).join(" ");return d.jsx("span",{className:i,style:s})},_i="_radioButtonInput_1i7cy_1",gi="_requiredSymbol_1i7cy_6",vi="_disabled_1i7cy_13",yi="_labelText_1i7cy_19",wi="_hasErrors_1i7cy_27",Te={radioButtonInput:_i,requiredSymbol:gi,disabled:vi,labelText:yi,hasErrors:wi},An=({checked:e=!1,disabled:t=!1,required:r=!1,requiredGroup:a=!1,id:s,name:i="",onChange:f,contentOnly:h=!1,hasErrors:l=!1,inputValue:c,tabIndex:_,children:w,"aria-controls":g,"aria-describedby":x})=>{const v=[Te.radioButtonInput,e&&Te.checked,t&&Te.disabled,l&&Te.hasErrors].filter(Boolean).join(" "),b={checked:e,disabled:t,hasErrors:!h&&l},M={id:s,name:i,type:"radio",value:c,checked:e,disabled:t,required:r||a,onChange:f,tabIndex:_??void 0,"aria-controls":g,"aria-invalid":l?"true":void 0,"aria-describedby":x};return d.jsxs("label",{htmlFor:s,className:v,children:[!h&&d.jsxs(d.Fragment,{children:[d.jsx(Nn,{...b}),d.jsx("input",{...M})]}),d.jsxs("span",{className:Te.labelText,children:[w,r&&d.jsx("img",{src:we,alt:"",className:Te.requiredSymbol})]})]})},Ei="_radioButtonList_1cyu3_1",bi="_requiredSymbol_1cyu3_16",un={radioButtonList:Ei,requiredSymbol:bi},xi=({legend:e,legendSize:t,required:r=!1,compact:a=!1,children:s})=>{const i=f=>Me(f).map((l,c)=>{var _;return p.isValidElement(l)&&((_=l.type)==null?void 0:_.displayName)==="RadioButtonListItem"?p.cloneElement(l,{requiredGroup:r,compact:a,key:`radioButtonListItem-${c}`}):l});return d.jsxs("fieldset",{className:un.radioButtonList,children:[!!(e!=null&&e.length)&&d.jsxs("legend",{children:[t?d.jsx(jt,{size:t,children:e}):e,r&&d.jsx("img",{src:we,alt:"",className:un.requiredSymbol})]}),i(p.Children.toArray(s))]})},Ci="_radioButtonListItem_1ggab_1",ki="_contentOnly_1ggab_26",Ri="_compact_1ggab_26",Si="_disabled_1ggab_41",Li="_checked_1ggab_44",$e={radioButtonListItem:Ci,contentOnly:ki,compact:Ri,disabled:Si,checked:Li},ji=({inputValue:e,checked:t=!1,disabled:r=!1,required:a=!1,requiredGroup:s=!1,name:i="",id:f,onChange:h,contentOnly:l=!1,compact:c=!1,hasErrors:_=!1,"aria-controls":w,"aria-describedby":g,children:x})=>{const v=J([$e.radioButtonListItem,t&&$e.checked,r&&$e.disabled,c&&$e.compact,l&&$e.contentOnly,_&&$e.hasErrors]),b={onChange:h,inputValue:e,checked:t,disabled:r,required:a,requiredGroup:s,contentOnly:l,hasErrors:_,"aria-controls":w,"aria-describedby":g,id:f,name:i};return d.jsx("div",{className:v,children:d.jsx(An,{...b,children:x})})},Ti="_select_18o2z_1",$i="_requiredSymbol_18o2z_1",Ii="_selectContainer_18o2z_8",Mi="_selectListArrow_18o2z_11",Ni="_multipleSelectDropdown_18o2z_40",Ai="_multipleSelectElement_18o2z_52",Pi="_multiple_18o2z_40",Oi="_hasErrors_18o2z_100",de={select:Ti,requiredSymbol:$i,selectContainer:Ii,selectListArrow:Mi,multipleSelectDropdown:Ni,multipleSelectElement:Ai,multiple:Pi,hasErrors:Oi},zi=({id:e,onChange:t,name:r="",required:a=!1,disabled:s=!1,multiple:i=!1,options:f=[],width:h,value:l,defaultValue:c,label:_="",contentOnly:w=!1,keyAsContent:g=!1,placeholder:x="",placeholderValue:v="",defaultContent:b="",role:M,"aria-describedby":y,hasErrors:S=!1,errorMessage:L=""})=>{const[T,j]=p.useState(!1),X=p.useRef(null);p.useCallback($=>{$&&hn($)},[]);const G=()=>j(!1);p.useEffect(()=>{const $=W=>{W.key==="Escape"&&G()},Q=W=>{X.current&&!X.current.contains(W.target)&&G()};return document.addEventListener("mousedown",Q),document.addEventListener("keydown",$),()=>{document.removeEventListener("mousedown",Q),document.removeEventListener("keydown",$)}},[]);const z=($,Q)=>{const W=Q.find(Z=>typeof Z=="object"?Z.value===$:Z===$);return typeof W=="object"?W.key??W.value:W},Y=$=>typeof $=="object"?{key:$.key,value:$.value}:{key:$,value:$},ee=()=>{var $;return(($=c||l)==null?void 0:$.map(Q=>z(Q,f)).join(", "))||null},B=()=>f.map(($,Q)=>{const{key:W,value:Z}=Y($),ie=(c||l||[]).includes(Z);return d.jsx($n,{id:`${e}-${Q}`,value:Z,checked:ie,onChange:()=>t(Z),children:W},Q)}),re=()=>`${e}-errorMessage`;if(w){const $=c||l||null;return d.jsxs("div",{className:de.select,children:[d.jsx(Ie,{htmlFor:e,children:_}),d.jsx("span",{children:$?g?z($,f):$:b})]})}const F={name:r,multiple:i,required:a,disabled:s,onChange:t,id:e,role:M,className:J([S&&de.hasErrors,i&&de.multiple]),"aria-describedby":S&&L?re():y,"aria-invalid":S||void 0,style:h?{maxWidth:h}:void 0,...c&&!l?{defaultValue:c}:{value:l||""}};return d.jsxs("div",{className:de.select,children:[d.jsxs(Ie,{htmlFor:e,children:[_,a&&d.jsx("img",{src:we,alt:"",className:de.requiredSymbol})]}),d.jsxs("div",{className:de.selectContainer,style:h?{maxWidth:h}:void 0,children:[d.jsx("span",{className:de.selectListArrow}),i?d.jsxs("div",{ref:X,children:[d.jsx("div",{onClick:()=>j(!T),className:de.multipleSelectElement,children:ee()}),T&&d.jsx("div",{className:de.multipleSelectDropdown,children:d.jsx(Tn,{compact:!0,children:B()})})]}):d.jsxs("select",{...F,children:[x&&d.jsx("option",{value:v,disabled:!0,children:x}),f.map(($,Q)=>{const{key:W,value:Z}=Y($);return d.jsx("option",{value:Z,children:W},Q)})]},`${e}-${Tt(6)}`)]}),d.jsx(Ue,{id:re(),content:L})]})},Di="_table_miy9l_1",He={table:Di,"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"},Bi=e=>e&&["left","center","right"].includes(e)?He[`captionAlign-${e}`]:He["captionAlign-left"],Fi=e=>e&&["top","bottom"].includes(e)?He[`captionSide-${e}`]:He["captionSide-top"],Hi=({captionAlign:e,captionSide:t,children:r})=>{const a=J([He.table,Bi(e),Fi(t)]);return d.jsx("table",{className:a,children:r})},qi="_textarea_1596u_1",Ui="_requiredSymbol_1596u_4",Vi="_hasErrors_1596u_55",_t={textarea:qi,requiredSymbol:Ui,hasErrors:Vi},Yi=({id:e,onChange:t,onBlur:r,name:a="",required:s=!1,readOnly:i,disabled:f,width:h,resize:l="both",value:c,defaultValue:_,elementKey:w,rows:g,label:x="",contentOnly:v=!1,placeholder:b="",defaultContent:M="","aria-describedby":y,hasErrors:S=!1,errorMessage:L=""})=>{const T=()=>`${e}-errorMessage`,j=!(c!=null&&c.length)&&(_!=null&&_.length)?_:void 0,X=w||`${e}-${Tt(6)}`,G={...h&&{maxWidth:h},...l&&{resize:l}},z={name:a,readOnly:i,disabled:f,required:s,id:e,onChange:t,onBlur:r,value:j?void 0:c,defaultValue:j||void 0,placeholder:b,rows:g?parseInt(g,10):void 0,className:S?_t.hasErrors:"","aria-describedby":S&&L?T():y,"aria-invalid":S?"true":void 0,style:G};return d.jsxs("div",{className:_t.textarea,children:[d.jsxs(Ie,{htmlFor:e,children:[x,s&&d.jsx("img",{src:we,alt:"",className:_t.requiredSymbol})]}),v?d.jsx("span",{children:c||_||M}):d.jsx("textarea",{...z},X),d.jsx(Ue,{id:T(),content:L})]})},Wi=({theme:e,children:t})=>{const r=Kn(e),a=Zn(r);return Qn("theme-provider",`:root {${a}}`),t},Xi="_toggleNavigationButton_1eb2w_1",Gi={toggleNavigationButton:Xi},Ki=({id:e,htmlTag:t="button",showText:r,hideText:a,buttonProps:s={},isOpen:i=!1})=>fe.createElement(t,{...s,className:Gi.toggleNavigationButton,id:e||void 0},i?a:r),Qi="_wizardTopnavItem_5ar16_1",Zi="_wizardTopnavItemContent_5ar16_4",Ji="_vertical_5ar16_7",el="_stepNumber_5ar16_24",tl="_stepName_5ar16_36",nl="_active_5ar16_46",rl="_finished_5ar16_46",ol="_hasErrors_5ar16_46",sl="_horizontal_5ar16_64",ue={wizardTopnavItem:Qi,wizardTopnavItemContent:Zi,vertical:Ji,stepNumber:el,stepName:tl,active:nl,finished:rl,hasErrors:ol,horizontal:sl},al="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",Pn=({step:e,index:t,activeStepId:r,direction:a="vertical"})=>{const s=r===e.id,i=a==="vertical",f=J([ue.wizardTopnavItem,s&&ue.active,e.finished&&ue.finished,e.hasErrors&&ue.hasErrors,ue[a]]),h=s?"step":void 0,l=()=>d.jsxs(d.Fragment,{children:[d.jsx("span",{className:ue.stepNumber,children:t+1}),d.jsx("span",{className:ue.stepName,children:e.name}),i&&e.finished&&!s&&d.jsx("img",{src:al,alt:"",className:ue.checkmarkSymbol})]});return e.link&&Object.keys(e.link).length>0?d.jsx("li",{className:f,children:d.jsx(Fe,{to:e.link,"aria-current":h,className:ue.wizardTopnavItemContent,children:l()})}):d.jsx("li",{className:f,children:d.jsx("span",{"aria-current":h,className:ue.wizardTopnavItemContent,children:l()})})},il="_wizardTopnavContainer_qiy2o_1",ll="_wizardTopnav_qiy2o_1",cl="_vertical_qiy2o_6",ul="_horizontal_qiy2o_11",gt={wizardTopnavContainer:il,wizardTopnav:ll,vertical:cl,horizontal:ul},dl=({steps:e,activeStepId:t,direction:r="vertical","aria-label":a})=>{const s=Object.keys(e),f=`I dette skjemaet er det totalt ${s.length} steg som du skal gå igjennom`,h=a!=null&&a.length?a:f;return d.jsx("nav",{"aria-label":h,className:J([gt.wizardTopnavContainer,gt[r]]),children:d.jsx("ol",{className:gt.wizardTopnav,children:s.map((l,c)=>d.jsx(Pn,{step:e[l],activeStepId:t,direction:r,index:c},l))})})};exports.Accordion=fr;exports.Button=Lt;exports.CheckBoxIcon=yt;exports.CheckBoxInput=jn;exports.CheckBoxList=Tn;exports.CheckBoxListItem=$n;exports.Container=In;exports.ContentBox=xs;exports.DescriptionDetails=Rs;exports.DescriptionList=js;exports.DescriptionTerm=Is;exports.Dialog=Ys;exports.DragAndDropFileInput=ra;exports.ErrorBox=da;exports.ErrorMessage=Ue;exports.Footer=pa;exports.Header=jt;exports.InfoBox=ga;exports.InputField=ka;exports.Label=Ie;exports.Lead=La;exports.List=$a;exports.ListItem=Na;exports.LoadingAnimation=Oa;exports.NavigationBar=oi;exports.NavigationBarListItem=wt;exports.Paper=li;exports.ProgressBar=di;exports.RadioButtonIcon=Nn;exports.RadioButtonInput=An;exports.RadioButtonList=xi;exports.RadioButtonListItem=ji;exports.Select=zi;exports.Table=Hi;exports.Textarea=Yi;exports.ThemeProvider=Wi;exports.ToggleNavigationButton=Ki;exports.WizardNavigation=dl;exports.WizardNavigationStep=Pn;
21
62
  //# sourceMappingURL=index.cjs.js.map