(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const g of h)if(g.type==="childList")for(const M of g.addedNodes)M.tagName==="LINK"&&M.rel==="modulepreload"&&o(M)}).observe(document,{childList:!0,subtree:!0});function c(h){const g={};return h.integrity&&(g.integrity=h.integrity),h.referrerPolicy&&(g.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?g.credentials="include":h.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function o(h){if(h.ep)return;h.ep=!0;const g=c(h);fetch(h.href,g)}})();var Yc={exports:{}},Hn={};var Nh;function Zg(){if(Nh)return Hn;Nh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,h,g){var M=null;if(g!==void 0&&(M=""+g),h.key!==void 0&&(M=""+h.key),"key"in h){g={};for(var H in h)H!=="key"&&(g[H]=h[H])}else g=h;return h=g.ref,{$$typeof:u,type:o,key:M,ref:h!==void 0?h:null,props:g}}return Hn.Fragment=s,Hn.jsx=c,Hn.jsxs=c,Hn}var Sh;function Kg(){return Sh||(Sh=1,Yc.exports=Zg()),Yc.exports}var l=Kg(),Jc={exports:{}},me={};var kh;function Wg(){if(kh)return me;kh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),M=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),T=Symbol.for("react.activity"),V=Symbol.iterator;function J(m){return m===null||typeof m!="object"?null:(m=V&&m[V]||m["@@iterator"],typeof m=="function"?m:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,he={};function ie(m,S,L){this.props=m,this.context=S,this.refs=he,this.updater=L||P}ie.prototype.isReactComponent={},ie.prototype.setState=function(m,S){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,S,"setState")},ie.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function ne(){}ne.prototype=ie.prototype;function Y(m,S,L){this.props=m,this.context=S,this.refs=he,this.updater=L||P}var K=Y.prototype=new ne;K.constructor=Y,X(K,ie.prototype),K.isPureReactComponent=!0;var ee=Array.isArray;function Z(){}var D={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function de(m,S,L){var G=L.ref;return{$$typeof:u,type:m,key:S,ref:G!==void 0?G:null,props:L}}function te(m,S){return de(m.type,S,m.props)}function oe(m){return typeof m=="object"&&m!==null&&m.$$typeof===u}function ue(m){var S={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(L){return S[L]})}var Ae=/\/+/g;function Ne(m,S){return typeof m=="object"&&m!==null&&m.key!=null?ue(""+m.key):S.toString(36)}function le(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(Z,Z):(m.status="pending",m.then(function(S){m.status==="pending"&&(m.status="fulfilled",m.value=S)},function(S){m.status==="pending"&&(m.status="rejected",m.reason=S)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function v(m,S,L,G,ce){var re=typeof m;(re==="undefined"||re==="boolean")&&(m=null);var _e=!1;if(m===null)_e=!0;else switch(re){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(m.$$typeof){case u:case s:_e=!0;break;case B:return _e=m._init,v(_e(m._payload),S,L,G,ce)}}if(_e)return ce=ce(m),_e=G===""?"."+Ne(m,0):G,ee(ce)?(L="",_e!=null&&(L=_e.replace(Ae,"$&/")+"/"),v(ce,S,L,"",function(Ql){return Ql})):ce!=null&&(oe(ce)&&(ce=te(ce,L+(ce.key==null||m&&m.key===ce.key?"":(""+ce.key).replace(Ae,"$&/")+"/")+_e)),S.push(ce)),1;_e=0;var it=G===""?".":G+":";if(ee(m))for(var Be=0;Be>>1,F=v[q];if(0>>1;qh(L,b))Gh(ce,L)?(v[q]=ce,v[G]=b,q=G):(v[q]=L,v[S]=b,q=S);else if(Gh(ce,b))v[q]=ce,v[G]=b,q=G;else break e}}return E}function h(v,E){var b=v.sortIndex-E.sortIndex;return b!==0?b:v.id-E.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;u.unstable_now=function(){return g.now()}}else{var M=Date,H=M.now();u.unstable_now=function(){return M.now()-H}}var R=[],j=[],B=1,T=null,V=3,J=!1,P=!1,X=!1,he=!1,ie=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function K(v){for(var E=c(j);E!==null;){if(E.callback===null)o(j);else if(E.startTime<=v)o(j),E.sortIndex=E.expirationTime,s(R,E);else break;E=c(j)}}function ee(v){if(X=!1,K(v),!P)if(c(R)!==null)P=!0,Z||(Z=!0,ue());else{var E=c(j);E!==null&&le(ee,E.startTime-v)}}var Z=!1,D=-1,$=5,de=-1;function te(){return he?!0:!(u.unstable_now()-de<$)}function oe(){if(he=!1,Z){var v=u.unstable_now();de=v;var E=!0;try{e:{P=!1,X&&(X=!1,ne(D),D=-1),J=!0;var b=V;try{t:{for(K(v),T=c(R);T!==null&&!(T.expirationTime>v&&te());){var q=T.callback;if(typeof q=="function"){T.callback=null,V=T.priorityLevel;var F=q(T.expirationTime<=v);if(v=u.unstable_now(),typeof F=="function"){T.callback=F,K(v),E=!0;break t}T===c(R)&&o(R),K(v)}else o(R);T=c(R)}if(T!==null)E=!0;else{var m=c(j);m!==null&&le(ee,m.startTime-v),E=!1}}break e}finally{T=null,V=b,J=!1}E=void 0}}finally{E?ue():Z=!1}}}var ue;if(typeof Y=="function")ue=function(){Y(oe)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,Ne=Ae.port2;Ae.port1.onmessage=oe,ue=function(){Ne.postMessage(null)}}else ue=function(){ie(oe,0)};function le(v,E){D=ie(function(){v(u.unstable_now())},E)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(v){v.callback=null},u.unstable_forceFrameRate=function(v){0>v||125q?(v.sortIndex=b,s(j,v),c(R)===null&&v===c(j)&&(X?(ne(D),D=-1):X=!0,le(ee,b-q))):(v.sortIndex=F,s(R,v),P||J||(P=!0,Z||(Z=!0,ue()))),v},u.unstable_shouldYield=te,u.unstable_wrapCallback=function(v){var E=V;return function(){var b=V;V=E;try{return v.apply(this,arguments)}finally{V=b}}}})(Zc)),Zc}var Ah;function $g(){return Ah||(Ah=1,Xc.exports=Fg()),Xc.exports}var Kc={exports:{}},nt={};var Th;function Ig(){if(Th)return nt;Th=1;var u=ho();function s(R){var j="https://react.dev/errors/"+R;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Kc.exports=Ig(),Kc.exports}var Dh;function ep(){if(Dh)return Bn;Dh=1;var u=$g(),s=ho(),c=Pg();function o(e){var t="https://react.dev/errors/"+e;if(1F||(e.current=q[F],q[F]=null,F--)}function L(e,t){F++,q[F]=e.current,e.current=t}var G=m(null),ce=m(null),re=m(null),_e=m(null);function it(e,t){switch(L(re,t),L(ce,e),L(G,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qf(t),e=Xf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}S(G),L(G,e)}function Be(){S(G),S(ce),S(re)}function Ql(e){e.memoizedState!==null&&L(_e,e);var t=G.current,a=Xf(t,e.type);t!==a&&(L(ce,e),L(G,a))}function Fn(e){ce.current===e&&(S(G),S(ce)),_e.current===e&&(S(_e),Ln._currentValue=b)}var ws,yo;function Oa(e){if(ws===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ws=t&&t[1]||"",yo=-1)":-1i||p[n]!==k[i]){var C=` `+p[n].replace(" at new "," at ");return e.displayName&&C.includes("")&&(C=C.replace("",e.displayName)),C}while(1<=n&&0<=i);break}}}finally{_s=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Oa(a):""}function km(e,t){switch(e.tag){case 26:case 27:case 5:return Oa(e.type);case 16:return Oa("Lazy");case 13:return e.child!==t&&t!==null?Oa("Suspense Fallback"):Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 15:return As(e.type,!1);case 11:return As(e.type.render,!1);case 1:return As(e.type,!0);case 31:return Oa("Activity");default:return""}}function jo(e){try{var t="",a=null;do t+=km(e,a),a=e,e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}var Ts=Object.prototype.hasOwnProperty,zs=u.unstable_scheduleCallback,Ds=u.unstable_cancelCallback,wm=u.unstable_shouldYield,_m=u.unstable_requestPaint,gt=u.unstable_now,Am=u.unstable_getCurrentPriorityLevel,No=u.unstable_ImmediatePriority,So=u.unstable_UserBlockingPriority,$n=u.unstable_NormalPriority,Tm=u.unstable_LowPriority,ko=u.unstable_IdlePriority,zm=u.log,Dm=u.unstable_setDisableYieldValue,Xl=null,pt=null;function ua(e){if(typeof zm=="function"&&Dm(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Xl,e)}catch{}}var vt=Math.clz32?Math.clz32:Cm,Mm=Math.log,Em=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(Mm(e)/Em|0)|0}var In=256,Pn=262144,ei=4194304;function Ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ti(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var f=n&134217727;return f!==0?(n=f&~r,n!==0?i=Ra(n):(d&=f,d!==0?i=Ra(d):a||(a=f&~e,a!==0&&(i=Ra(a))))):(f=n&~r,f!==0?i=Ra(f):d!==0?i=Ra(d):a||(a=n&~e,a!==0&&(i=Ra(a)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:i}function Zl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Um(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wo(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function Ms(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lm(e,t,a,n,i,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var f=e.entanglements,p=e.expirationTimes,k=e.hiddenUpdates;for(a=d&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var qm=/[\n"\\]/g;function At(e){return e.replace(qm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rs(e,t,a,n,i,r,d,f){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Vs(e,d,_t(t)):a!=null?Vs(e,d,_t(a)):n!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+_t(f):e.removeAttribute("name")}function Vo(e,t,a,n,i,r,d,f){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Os(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,f||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=f?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Os(e)}function Vs(e,t,a){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function cl(e,t,a,n){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(Kt)try{var Il={};Object.defineProperty(Il,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Il,Il),window.removeEventListener("test",Il,Il)}catch{Ys=!1}var fa=null,Js=null,si=null;function Qo(){if(si)return si;var e,t=Js,a=t.length,n,i="value"in fa?fa.value:fa.textContent,r=i.length;for(e=0;e=tn),$o=" ",Io=!1;function Po(e,t){switch(e){case"keyup":return g0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fl=!1;function v0(e,t){switch(e){case"compositionend":return eu(t);case"keypress":return t.which!==32?null:(Io=!0,$o);case"textInput":return e=t.data,e===$o&&Io?null:e;default:return null}}function x0(e,t){if(fl)return e==="compositionend"||!Ws&&Po(e,t)?(e=Qo(),si=Js=fa=null,fl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=cu(a)}}function uu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function du(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ni(e.document)}return t}function Is(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _0=Kt&&"documentMode"in document&&11>=document.documentMode,hl=null,Ps=null,sn=null,er=!1;function fu(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;er||hl==null||hl!==ni(n)||(n=hl,"selectionStart"in n&&Is(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),sn&&nn(sn,n)||(sn=n,n=Pi(Ps,"onSelect"),0>=d,i-=d,Bt=1<<32-vt(t)+i|a<pe?(ye=I,I=null):ye=I.sibling;var ke=w(y,I,N[pe],U);if(ke===null){I===null&&(I=ye);break}e&&I&&ke.alternate===null&&t(y,I),x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke,I=ye}if(pe===N.length)return a(y,I),je&&Ft(y,pe),ae;if(I===null){for(;pepe?(ye=I,I=null):ye=I.sibling;var Ua=w(y,I,ke.value,U);if(Ua===null){I===null&&(I=ye);break}e&&I&&Ua.alternate===null&&t(y,I),x=r(Ua,x,pe),Se===null?ae=Ua:Se.sibling=Ua,Se=Ua,I=ye}if(ke.done)return a(y,I),je&&Ft(y,pe),ae;if(I===null){for(;!ke.done;pe++,ke=N.next())ke=O(y,ke.value,U),ke!==null&&(x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke);return je&&Ft(y,pe),ae}for(I=n(I);!ke.done;pe++,ke=N.next())ke=A(I,y,pe,ke.value,U),ke!==null&&(e&&ke.alternate!==null&&I.delete(ke.key===null?pe:ke.key),x=r(ke,x,pe),Se===null?ae=ke:Se.sibling=ke,Se=ke);return e&&I.forEach(function(Xg){return t(y,Xg)}),je&&Ft(y,pe),ae}function Ee(y,x,N,U){if(typeof N=="object"&&N!==null&&N.type===X&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case J:e:{for(var ae=N.key;x!==null;){if(x.key===ae){if(ae=N.type,ae===X){if(x.tag===7){a(y,x.sibling),U=i(x,N.props.children),U.return=y,y=U;break e}}else if(x.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===$&&Ka(ae)===x.type){a(y,x.sibling),U=i(x,N.props),fn(U,N),U.return=y,y=U;break e}a(y,x);break}else t(y,x);x=x.sibling}N.type===X?(U=Ya(N.props.children,y.mode,U,N.key),U.return=y,y=U):(U=pi(N.type,N.key,N.props,null,y.mode,U),fn(U,N),U.return=y,y=U)}return d(y);case P:e:{for(ae=N.key;x!==null;){if(x.key===ae)if(x.tag===4&&x.stateNode.containerInfo===N.containerInfo&&x.stateNode.implementation===N.implementation){a(y,x.sibling),U=i(x,N.children||[]),U.return=y,y=U;break e}else{a(y,x);break}else t(y,x);x=x.sibling}U=rr(N,y.mode,U),U.return=y,y=U}return d(y);case $:return N=Ka(N),Ee(y,x,N,U)}if(le(N))return W(y,x,N,U);if(ue(N)){if(ae=ue(N),typeof ae!="function")throw Error(o(150));return N=ae.call(N),se(y,x,N,U)}if(typeof N.then=="function")return Ee(y,x,Si(N),U);if(N.$$typeof===Y)return Ee(y,x,bi(y,N),U);ki(y,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,x!==null&&x.tag===6?(a(y,x.sibling),U=i(x,N),U.return=y,y=U):(a(y,x),U=sr(N,y.mode,U),U.return=y,y=U),d(y)):a(y,x)}return function(y,x,N,U){try{dn=0;var ae=Ee(y,x,N,U);return kl=null,ae}catch(I){if(I===Sl||I===ji)throw I;var Se=bt(29,I,null,y.mode);return Se.lanes=U,Se.return=y,Se}}}var Fa=Lu(!0),Ou=Lu(!1),va=!1;function br(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ba(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(we&2)!==0){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,t=gi(e),bu(e,null,a),t}return mi(e,n,t,a),gi(e)}function hn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ao(e,a)}}function jr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var i=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?i=r=t:r=r.next=t}else i=r=t;a={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Nr=!1;function mn(){if(Nr){var e=Nl;if(e!==null)throw e}}function gn(e,t,a,n){Nr=!1;var i=e.updateQueue;va=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,f=i.shared.pending;if(f!==null){i.shared.pending=null;var p=f,k=p.next;p.next=null,d===null?r=k:d.next=k,d=p;var C=e.alternate;C!==null&&(C=C.updateQueue,f=C.lastBaseUpdate,f!==d&&(f===null?C.firstBaseUpdate=k:f.next=k,C.lastBaseUpdate=p))}if(r!==null){var O=i.baseState;d=0,C=k=p=null,f=r;do{var w=f.lane&-536870913,A=w!==f.lane;if(A?(be&w)===w:(n&w)===w){w!==0&&w===jl&&(Nr=!0),C!==null&&(C=C.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var W=e,se=f;w=t;var Ee=a;switch(se.tag){case 1:if(W=se.payload,typeof W=="function"){O=W.call(Ee,O,w);break e}O=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=se.payload,w=typeof W=="function"?W.call(Ee,O,w):W,w==null)break e;O=T({},O,w);break e;case 2:va=!0}}w=f.callback,w!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[w]:A.push(w))}else A={lane:w,tag:f.tag,payload:f.payload,callback:f.callback,next:null},C===null?(k=C=A,p=O):C=C.next=A,d|=w;if(f=f.next,f===null){if(f=i.shared.pending,f===null)break;A=f,f=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);C===null&&(p=O),i.baseState=p,i.firstBaseUpdate=k,i.lastBaseUpdate=C,r===null&&(i.shared.lanes=0),ka|=d,e.lanes=d,e.memoizedState=O}}function Ru(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Vu(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;er?r:8;var d=v.T,f={};v.T=f,qr(e,!1,t,a);try{var p=i(),k=v.S;if(k!==null&&k(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var C=L0(p,n);xn(e,t,C,kt(e))}else xn(e,t,n,kt(e))}catch(O){xn(e,t,{then:function(){},status:"rejected",reason:O},kt())}finally{E.p=r,d!==null&&f.types!==null&&(d.types=f.types),v.T=d}}function q0(){}function Hr(e,t,a,n){if(e.tag!==5)throw Error(o(476));var i=pd(e).queue;gd(e,i,t,b,a===null?q0:function(){return vd(e),a(n)})}function pd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:b},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ea,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vd(e){var t=pd(e);t.next===null&&(t=e.alternate.memoizedState),xn(e,t.next.queue,{},kt())}function Br(){return tt(Ln)}function xd(){return Ge().memoizedState}function bd(){return Ge().memoizedState}function G0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=kt();e=xa(a);var n=ba(t,e,a);n!==null&&(ht(n,t,a),hn(n,t,a)),t={cache:gr()},e.payload=t;return}t=t.return}}function Y0(e,t,a){var n=kt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)?jd(t,a):(a=nr(e,t,a,n),a!==null&&(ht(a,e,n),Nd(a,t,n)))}function yd(e,t,a){var n=kt();xn(e,t,a,n)}function xn(e,t,a,n){var i={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))jd(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,f=r(d,a);if(i.hasEagerState=!0,i.eagerState=f,xt(f,d))return mi(e,t,i,0),Ce===null&&hi(),!1}catch{}if(a=nr(e,t,i,n),a!==null)return ht(a,e,n),Nd(a,t,n),!0}return!1}function qr(e,t,a,n){if(n={lane:2,revertLane:bc(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(o(479))}else t=nr(e,a,n,2),t!==null&&ht(t,e,2)}function Ui(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function jd(e,t){_l=Ai=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Nd(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Ao(e,a)}}var bn={readContext:tt,use:Di,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};bn.useEffectEvent=Re;var Sd={readContext:tt,use:Di,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:sd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ei(4194308,4,ud.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){Ei(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var n=e();if($a){ua(!0);try{e()}finally{ua(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=st();if(a!==void 0){var i=a(t);if($a){ua(!0);try{a(t)}finally{ua(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=Y0.bind(null,ge,e),[n.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Ur(e);var t=e.queue,a=yd.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Rr,useDeferredValue:function(e,t){var a=st();return Vr(a,e,t)},useTransition:function(){var e=Ur(!1);return e=gd.bind(null,ge,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ge,i=st();if(je){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ce===null)throw Error(o(349));(be&127)!==0||Ju(n,t,a)}i.memoizedState=a;var r={value:a,getSnapshot:t};return i.queue=r,sd(Xu.bind(null,n,r,e),[e]),n.flags|=2048,Tl(9,{destroy:void 0},Qu.bind(null,n,r,a,t),null),a},useId:function(){var e=st(),t=Ce.identifierPrefix;if(je){var a=qt,n=Bt;a=(n&~(1<<32-vt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ti++,0<\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(i,{is:n.is}):d.createElement(i)}}r[Pe]=t,r[rt]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(lt(r,i,n),i){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&aa(t)}}return Le(t),tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&aa(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,bl(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,i=et,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Yf(e.nodeValue,a)),e||ga(t,!0)}else e=es(e).createTextNode(n),e[Pe]=t,t.stateNode=e}return Le(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=bl(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Pe]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else a=dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Le(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=bl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Pe]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),i=!1}else i=dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==i&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Hi(t,t.updateQueue),Le(t),null);case 4:return Be(),e===null&&Sc(t.stateNode.containerInfo),Le(t),null;case 10:return It(t.type),Le(t),null;case 19:if(S(qe),n=t.memoizedState,n===null)return Le(t),null;if(i=(t.flags&128)!==0,r=n.rendering,r===null)if(i)jn(n,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=_i(e),r!==null){for(t.flags|=128,jn(n,!1),e=r.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)yu(a,e),a=a.sibling;return L(qe,qe.current&1|2),je&&Ft(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&>()>Ji&&(t.flags|=128,i=!0,jn(n,!1),t.lanes=4194304)}else{if(!i)if(e=_i(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),jn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!je)return Le(t),null}else 2*gt()-n.renderingStartTime>Ji&&a!==536870912&&(t.flags|=128,i=!0,jn(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=gt(),e.sibling=null,a=qe.current,L(qe,i?a&1|2:a&1),je&&Ft(t,n.treeForkCount),e):(Le(t),null);case 22:case 23:return jt(t),kr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),a=t.updateQueue,a!==null&&Hi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&S(Za),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ye),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function K0(e,t){switch(or(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ye),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fn(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return S(qe),null;case 4:return Be(),null;case 10:return It(t.type),null;case 22:case 23:return jt(t),kr(),e!==null&&S(Za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ye),null;case 25:return null;default:return null}}function Zd(e,t){switch(or(t),t.tag){case 3:It(Ye),Be();break;case 26:case 27:case 5:Fn(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:S(qe);break;case 10:It(t.type);break;case 22:case 23:jt(t),kr(),e!==null&&S(Za);break;case 24:It(Ye)}}function Nn(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==i)}}catch(f){ze(t,t.return,f)}}function Na(e,t,a){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){var d=n.inst,f=d.destroy;if(f!==void 0){d.destroy=void 0,i=t;var p=a,k=f;try{k()}catch(C){ze(i,p,C)}}}n=n.next}while(n!==r)}}catch(C){ze(t,t.return,C)}}function Kd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Vu(t,a)}catch(n){ze(e,e.return,n)}}}function Wd(e,t,a){a.props=Ia(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){ze(e,t,n)}}function Sn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(i){ze(e,t,i)}}function Gt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(i){ze(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){ze(e,t,i)}else a.current=null}function Fd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(i){ze(e,e.return,i)}}function ac(e,t,a){try{var n=e.stateNode;pg(n,e.type,a,t),n[rt]=t}catch(i){ze(e,e.return,i)}}function $d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&za(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Zt));else if(n!==4&&(n===27&&za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,a),e=e.sibling;e!==null;)nc(e,t,a),e=e.sibling}function Bi(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Bi(e,t,a),e=e.sibling;e!==null;)Bi(e,t,a),e=e.sibling}function Id(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);lt(t,n,a),t[Pe]=e,t[rt]=a}catch(r){ze(e,e.return,r)}}var la=!1,Xe=!1,ic=!1,Pd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function W0(e,t){if(e=e.containerInfo,_c=rs,e=du(e),Is(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,f=-1,p=-1,k=0,C=0,O=e,w=null;t:for(;;){for(var A;O!==a||i!==0&&O.nodeType!==3||(f=d+i),O!==r||n!==0&&O.nodeType!==3||(p=d+n),O.nodeType===3&&(d+=O.nodeValue.length),(A=O.firstChild)!==null;)w=O,O=A;for(;;){if(O===e)break t;if(w===a&&++k===i&&(f=d),w===r&&++C===n&&(p=d),(A=O.nextSibling)!==null)break;O=w,w=O.parentNode}O=A}a=f===-1||p===-1?null:{start:f,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ac={focusedElem:e,selectionRange:a},rs=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),lt(r,n,a),r[Pe]=e,Fe(r),n=r;break e;case"link":var d=sh("link","href",i).get(n+(a.href||""));if(d){for(var f=0;fEe&&(d=Ee,Ee=se,se=d);var y=ou(f,se),x=ou(f,Ee);if(y&&x&&(A.rangeCount!==1||A.anchorNode!==y.node||A.anchorOffset!==y.offset||A.focusNode!==x.node||A.focusOffset!==x.offset)){var N=O.createRange();N.setStart(y.node,y.offset),A.removeAllRanges(),se>Ee?(A.addRange(N),A.extend(x.node,x.offset)):(N.setEnd(x.node,x.offset),A.addRange(N))}}}}for(O=[],A=f;A=A.parentNode;)A.nodeType===1&&O.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;fa?32:a,v.T=null,a=fc,fc=null;var r=_a,d=ca;if(Ke=0,Cl=_a=null,ca=0,(we&6)!==0)throw Error(o(331));var f=we;if(we|=4,df(r.current),cf(r,r.current,d,a),we=f,zn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Xl,r)}catch{}return!0}finally{E.p=i,v.T=n,zf(e,t)}}function Mf(e,t,a){t=zt(a,t),t=Qr(e.stateNode,t,2),e=ba(e,t,2),e!==null&&(Kl(e,2),Yt(e))}function ze(e,t,a){if(e.tag===3)Mf(e,e,a);else for(;t!==null;){if(t.tag===3){Mf(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(wa===null||!wa.has(n))){e=zt(a,e),a=Md(2),n=ba(t,a,2),n!==null&&(Ed(a,n,t,e),Kl(n,2),Yt(n));break}}t=t.return}}function pc(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new I0;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(a)||(cc=!0,i.add(a),e=lg.bind(null,e,t,a),t.then(e,e))}function lg(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ce===e&&(be&a)===a&&(Ve===4||Ve===3&&(be&62914560)===be&&300>gt()-Yi?(we&2)===0&&Ul(e,0):oc|=a,El===be&&(El=0)),Yt(e)}function Ef(e,t){t===0&&(t=wo()),e=Ga(e,t),e!==null&&(Kl(e,t),Yt(e))}function ng(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ef(e,a)}function ig(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),Ef(e,a)}function sg(e,t){return zs(e,t)}var Fi=null,Ol=null,vc=!1,$i=!1,xc=!1,Ta=0;function Yt(e){e!==Ol&&e.next===null&&(Ol===null?Fi=Ol=e:Ol=Ol.next=e),$i=!0,vc||(vc=!0,cg())}function zn(e,t){if(!xc&&$i){xc=!0;do for(var a=!1,n=Fi;n!==null;){if(e!==0){var i=n.pendingLanes;if(i===0)var r=0;else{var d=n.suspendedLanes,f=n.pingedLanes;r=(1<<31-vt(42|e)+1)-1,r&=i&~(d&~f),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,Of(n,r))}else r=be,r=ti(n,n===Ce?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||Zl(n,r)||(a=!0,Of(n,r));n=n.next}while(a);xc=!1}}function rg(){Cf()}function Cf(){$i=vc=!1;var e=0;Ta!==0&&xg()&&(e=Ta);for(var t=gt(),a=null,n=Fi;n!==null;){var i=n.next,r=Uf(n,t);r===0?(n.next=null,a===null?Fi=i:a.next=i,i===null&&(Ol=a)):(a=n,(e!==0||(r&3)!==0)&&($i=!0)),n=i}Ke!==0&&Ke!==5||zn(e),Ta!==0&&(Ta=0)}function Uf(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0f)break;var C=p.transferSize,O=p.initiatorType;C&&Jf(O)&&(p=p.responseEnd,d+=C*(p"u"?null:document;function ah(e,t,a){var n=Rl;if(n&&typeof t=="string"&&t){var i=At(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),th.has(i)||(th.add(i),e={rel:e,crossOrigin:a,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Ag(e){oa.D(e),ah("dns-prefetch",e,null)}function Tg(e,t){oa.C(e,t),ah("preconnect",e,t)}function zg(e,t,a){oa.L(e,t,a);var n=Rl;if(n&&e&&t){var i='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+At(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+At(a.imageSizes)+'"]')):i+='[href="'+At(e)+'"]';var r=i;switch(t){case"style":r=Vl(e);break;case"script":r=Hl(e)}Lt.has(r)||(e=T({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Lt.set(r,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(Cn(r))||t==="script"&&n.querySelector(Un(r))||(t=n.createElement("link"),lt(t,"link",e),Fe(t),n.head.appendChild(t)))}}function Dg(e,t){oa.m(e,t);var a=Rl;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+At(n)+'"][href="'+At(e)+'"]',r=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Hl(e)}if(!Lt.has(r)&&(e=T({rel:"modulepreload",href:e},t),Lt.set(r,e),a.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Un(r)))return}n=a.createElement("link"),lt(n,"link",e),Fe(n),a.head.appendChild(n)}}}function Mg(e,t,a){oa.S(e,t,a);var n=Rl;if(n&&e){var i=sl(n).hoistableStyles,r=Vl(e);t=t||"default";var d=i.get(r);if(!d){var f={loading:0,preload:null};if(d=n.querySelector(Cn(r)))f.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Lt.get(r))&&Uc(e,a);var p=d=n.createElement("link");Fe(p),lt(p,"link",e),p._p=new Promise(function(k,C){p.onload=k,p.onerror=C}),p.addEventListener("load",function(){f.loading|=1}),p.addEventListener("error",function(){f.loading|=2}),f.loading|=4,as(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:f},i.set(r,d)}}}function Eg(e,t){oa.X(e,t);var a=Rl;if(a&&e){var n=sl(a).hoistableScripts,i=Hl(e),r=n.get(i);r||(r=a.querySelector(Un(i)),r||(e=T({src:e,async:!0},t),(t=Lt.get(i))&&Lc(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function Cg(e,t){oa.M(e,t);var a=Rl;if(a&&e){var n=sl(a).hoistableScripts,i=Hl(e),r=n.get(i);r||(r=a.querySelector(Un(i)),r||(e=T({src:e,async:!0,type:"module"},t),(t=Lt.get(i))&&Lc(e,t),r=a.createElement("script"),Fe(r),lt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(i,r))}}function lh(e,t,a,n){var i=(i=re.current)?ts(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vl(a.href),a=sl(i).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vl(a.href);var r=sl(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Cn(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Lt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Lt.set(e,a),r||Ug(i,e,a,d.state))),t&&n===null)throw Error(o(528,""));return d}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hl(a),a=sl(i).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Vl(e){return'href="'+At(e)+'"'}function Cn(e){return'link[rel="stylesheet"]['+e+"]"}function nh(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Ug(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),lt(t,"link",a),Fe(t),e.head.appendChild(t))}function Hl(e){return'[src="'+At(e)+'"]'}function Un(e){return"script[async]"+e}function ih(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+At(a.href)+'"]');if(n)return t.instance=n,Fe(n),n;var i=T({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Fe(n),lt(n,"style",i),as(n,a.precedence,e),t.instance=n;case"stylesheet":i=Vl(a.href);var r=e.querySelector(Cn(i));if(r)return t.state.loading|=4,t.instance=r,Fe(r),r;n=nh(a),(i=Lt.get(i))&&Uc(n,i),r=(e.ownerDocument||e).createElement("link"),Fe(r);var d=r;return d._p=new Promise(function(f,p){d.onload=f,d.onerror=p}),lt(r,"link",n),t.state.loading|=4,as(r,a.precedence,e),t.instance=r;case"script":return r=Hl(a.src),(i=e.querySelector(Un(r)))?(t.instance=i,Fe(i),i):(n=a,(i=Lt.get(r))&&(n=T({},a),Lc(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),Fe(i),lt(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,as(n,a.precedence,e));return t.instance}function as(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,r=i,d=0;d title"):null)}function Lg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ch(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Og(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Vl(n.href),r=t.querySelector(Cn(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ns.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Fe(r);return}r=t.ownerDocument||t,n=nh(n),(i=Lt.get(i))&&Uc(n,i),r=r.createElement("link"),Fe(r);var d=r;d._p=new Promise(function(f,p){d.onload=f,d.onerror=p}),lt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ns.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Oc=0;function Rg(e,t){return e.stylesheets&&e.count===0&&ss(e,e.stylesheets),0Oc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(i)}}:null}function ns(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ss(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var is=null;function ss(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,is=new Map,t.forEach(Vg,e),is=null,ns.call(e))}function Vg(e,t){if(!(t.state.loading&4)){var a=is.get(e);if(a)var n=a.get(null);else{a=new Map,is.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Qc.exports=ep(),Qc.exports}var ap=tp();class lp{observers=new Set;next(s){this.observers.forEach(c=>c(s))}asObservable(){return{subscribe:s=>(this.observers.add(s),{unsubscribe:()=>this.observers.delete(s)})}}}class np extends lp{currentValue;constructor(s){super(),this.currentValue=s}next(s){this.currentValue=s,super.next(s)}get value(){return this.currentValue}asObservable(){return{subscribe:s=>(s(this.currentValue),super.asObservable().subscribe(s))}}}class ip{authId="id";authToken="token";authEmail="email";runOutDate="runOutDate";authTokenSubject=new np(null);constructor(){}async loadAuthTokenFromStorage(){const s=window.localStorage.getItem(this.authToken);this.authTokenSubject.next(s)}async setAuthData(s,c){if(await this.setPreference(this.authId,s.id),await this.setPreference(this.authToken,s.token),await this.setPreference(this.authEmail,s.email),c)await this.setPreference(this.runOutDate,"forever");else{const o=new Date,h=new Date(o);h.setDate(o.getDate()+1);const g=h.toISOString();await this.setPreference(this.runOutDate,g)}}async setPreference(s,c){window.localStorage.setItem(s,c)}async getCandidateId(){return window.localStorage.getItem(this.authId)}async getCandidateEmail(){return window.localStorage.getItem(this.authEmail)}async getAuthToken(){return window.localStorage.getItem(this.authToken)}getAuthTokenNoneAsync(){return this.authTokenSubject.value}async getRunOutDate(){return window.localStorage.getItem(this.runOutDate)}async clearCredentials(){window.localStorage.removeItem(this.authId),window.localStorage.removeItem(this.authToken),window.localStorage.removeItem(this.runOutDate)}async getAuth(){let s=await this.getCandidateId(),c=await this.getAuthToken(),o=await this.getCandidateEmail(),h=await this.getRunOutDate();return s&&c&&o&&h?{id:s,token:c,email:o,runOutDate:h}:null}getAuthTokenWithoutWindow(){const s=this.getAuthTokenNoneAsync();return s||""}getAuthWithoutWindow(){const s=this.getAuthTokenNoneAsync();return s?{id:"",token:s,email:"",runOutDate:"forever"}:null}}const Jl=new ip;const Ph=(...u)=>u.filter((s,c,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===c).join(" ").trim();const sp=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const rp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,c,o)=>o?o.toUpperCase():c.toLowerCase());const Eh=u=>{const s=rp(u);return s.charAt(0).toUpperCase()+s.slice(1)};var cp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const op=u=>{for(const s in u)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};const up=_.forwardRef(({color:u="currentColor",size:s=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:h="",children:g,iconNode:M,...H},R)=>_.createElement("svg",{ref:R,...cp,width:s,height:s,stroke:u,strokeWidth:o?Number(c)*24/Number(s):c,className:Ph("lucide",h),...!g&&!op(H)&&{"aria-hidden":"true"},...H},[...M.map(([j,B])=>_.createElement(j,B)),...Array.isArray(g)?g:[g]]));const Q=(u,s)=>{const c=_.forwardRef(({className:o,...h},g)=>_.createElement(up,{ref:g,iconNode:s,className:Ph(`lucide-${sp(Eh(u))}`,`lucide-${u}`,o),...h}));return c.displayName=Eh(u),c};const dp=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mo=Q("arrow-left",dp);const fp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],La=Q("arrow-right",fp);const hp=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],mp=Q("arrow-up-down",hp);const gp=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],em=Q("badge-check",gp);const pp=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],vp=Q("bolt",pp);const xp=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],bp=Q("bookmark",xp);const yp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],tm=Q("bot",yp);const jp=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],lo=Q("briefcase-business",jp);const Np=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],go=Q("briefcase",Np);const Sp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],kp=Q("calendar-days",Sp);const wp=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],_p=Q("calendar",wp);const Ap=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],am=Q("car",Ap);const Tp=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],zp=Q("check-check",Tp);const Dp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mp=Q("check",Dp);const Ep=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gn=Q("chevron-down",Ep);const Cp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],We=Q("circle-check",Cp);const Up=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Lp=Q("circle-pause",Up);const Op=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Rp=Q("circle-play",Op);const Vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],Hp=Q("circle-plus",Vp);const Bp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],qp=Q("circle-stop",Bp);const Gp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],Yp=Q("circle-user",Gp);const Jp=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Qp=Q("clipboard-list",Jp);const Xp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],no=Q("clock-3",Xp);const Zp=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],io=Q("code-xml",Zp);const Kp=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],so=Q("crown",Kp);const Wp=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Fp=Q("ellipsis",Wp);const $p=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],Ip=Q("file-plus-corner",$p);const Pp=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ro=Q("file-text",Pp);const ev=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],lm=Q("funnel",ev);const tv=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],nm=Q("gamepad-2",tv);const av=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],lv=Q("gift",av);const nv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],js=Q("globe",nv);const iv=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],im=Q("graduation-cap",iv);const sv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],sm=Q("grid-3x3",sv);const rv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cv=Q("info",rv);const ov=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],co=Q("laptop",ov);const uv=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],dv=Q("layout-grid",uv);const fv=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}]],rm=Q("layout-panel-top",fv);const hv=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],mv=Q("lightbulb",hv);const gv=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],pv=Q("link-2",gv);const vv=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],cm=Q("lock-keyhole",vv);const xv=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],bv=Q("log-out",xv);const yv=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Ns=Q("mail",yv);const jv=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Xn=Q("map-pin",jv);const Nv=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Sv=Q("menu",Nv);const kv=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],om=Q("message-circle",kv);const wv=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],_v=Q("mic",wv);const Av=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Tv=Q("monitor",Av);const zv=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Dv=Q("moon",zv);const Mv=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],Ev=Q("move-right",Mv);const Cv=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Uv=Q("paperclip",Cv);const Lv=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Ov=Q("pen-line",Lv);const Rv=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Vv=Q("phone",Rv);const Hv=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Bv=Q("play",Hv);const qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Gv=Q("plus",qv);const Yv=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],Jv=Q("presentation",Yv);const Qv=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],Xv=Q("radar",Qv);const Zv=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Kv=Q("radio",Zv);const Wv=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Fv=Q("rocket",Wv);const $v=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],oo=Q("route",$v);const Iv=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Pv=Q("save",Iv);const e1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],uo=Q("search",e1);const t1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],a1=Q("send",t1);const l1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],um=Q("settings",l1);const n1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],i1=Q("shield",n1);const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],r1=Q("smile",s1);const c1=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Kn=Q("sparkles",c1);const o1=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],dm=Q("square-pen",o1);const u1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],po=Q("star",u1);const d1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],f1=Q("sun",d1);const h1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Wn=Q("target",h1);const m1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Ch=Q("trending-up",m1);const g1=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],fm=Q("trophy",g1);const p1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],ql=Q("user-round",p1);const v1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Uh=Q("user",v1);const x1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],b1=Q("users",x1);const y1=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],j1=Q("wand-sparkles",y1);const N1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fo=Q("x",N1);function Gl({icon:u,label:s,...c}){return l.jsxs("label",{className:"auth-field",children:[l.jsx("span",{children:s}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:u}),l.jsx("input",{...c})]})]})}function S1({email:u,loading:s,onBackToLogin:c,onChangeEmail:o,onSubmit:h}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head",children:[l.jsx("button",{className:"link-btn back-link",type:"button",onClick:c,children:"Tilbage"}),l.jsx("h1",{children:"Glemt kodeord?"}),l.jsx("p",{children:"Indtast din e-mail, sa sender vi instruktioner til at nulstille din kode."})]}),l.jsxs("form",{className:"auth-form",onSubmit:h,children:[l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:g=>o(g.target.value),required:!0}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:s,children:s?"Sender...":"Send nulstillingslink"})]})]})}function k1({email:u,loading:s,onChangeEmail:c,onChangePassword:o,onChangeRememberMe:h,onForgotPassword:g,onRegister:M,onSubmit:H,password:R,rememberMe:j}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head auth-head-center",children:[l.jsx("h1",{children:"Velkommen tilbage"}),l.jsx("p",{children:"Indtast dine oplysninger for at logge ind pa din konto."})]}),l.jsxs("form",{className:"auth-form",onSubmit:H,children:[l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:B=>c(B.target.value),required:!0}),l.jsxs("label",{className:"auth-field",children:[l.jsxs("div",{className:"auth-field-row",children:[l.jsx("span",{children:"Adgangskode"}),l.jsx("button",{className:"link-btn",type:"button",onClick:g,children:"Glemt adgangskode?"})]}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:l.jsx(cm,{size:16,strokeWidth:1.8})}),l.jsx("input",{type:"password",placeholder:"••••••••",value:R,onChange:B=>o(B.target.value),required:!0})]})]}),l.jsxs("label",{className:"check-row",children:[l.jsx("input",{type:"checkbox",checked:j,onChange:B=>h(B.target.checked)}),l.jsx("span",{children:"Husk mig i 30 dage"})]}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:s,children:s?"Logger ind...":"Log ind"})]}),l.jsxs("p",{className:"auth-foot",children:["Har du ikke en konto?",l.jsx("button",{className:"link-btn",type:"button",onClick:M,children:"Opret bruger"})]})]})}function w1({email:u,firstName:s,lastName:c,loading:o,locationQuery:h,locationSuggestions:g,onBackToLogin:M,onChangeEmail:H,onChangeFirstName:R,onChangeLastName:j,onChangeLocationQuery:B,onChangePassword:T,onSelectLocation:V,onSubmit:J,password:P}){return l.jsxs("div",{className:"auth-view view-enter",children:[l.jsxs("div",{className:"auth-head auth-head-center",children:[l.jsx("h1",{children:"Opret konto"}),l.jsx("p",{children:"Start din karriere-rejse med os i dag."})]}),l.jsxs("form",{className:"auth-form",onSubmit:J,children:[l.jsx(Gl,{icon:l.jsx(Uh,{size:16,strokeWidth:1.8}),label:"Fornavn",type:"text",placeholder:"Lasse",value:s,onChange:X=>R(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(Uh,{size:16,strokeWidth:1.8}),label:"Efternavn",type:"text",placeholder:"Hansen",value:c,onChange:X=>j(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(Ns,{size:16,strokeWidth:1.8}),label:"E-mail",type:"email",placeholder:"navn@eksempel.dk",value:u,onChange:X=>H(X.target.value),required:!0}),l.jsx(Gl,{icon:l.jsx(cm,{size:16,strokeWidth:1.8}),label:"Adgangskode",type:"password",placeholder:"Skab en staerk kode",value:P,onChange:X=>T(X.target.value),required:!0,minLength:8}),l.jsxs("label",{className:"auth-field",children:[l.jsx("span",{children:"Lokation"}),l.jsxs("div",{className:"auth-input-wrap",children:[l.jsx("span",{className:"auth-input-icon","aria-hidden":!0,children:l.jsx(Xn,{size:16,strokeWidth:1.8})}),l.jsx("input",{type:"text",placeholder:"Soeg by eller adresse",value:h,onChange:X=>B(X.target.value),autoComplete:"off",required:!0})]}),g.length>0?l.jsx("div",{className:"location-suggestions",children:g.map(X=>l.jsx("button",{type:"button",className:"location-suggestion-item",onClick:()=>{V(X.placeId,X.description)},children:X.description},X.placeId))}):null]}),l.jsx("button",{className:"submit-btn",type:"submit",disabled:o,children:o?"Opretter...":"Opret bruger"})]}),l.jsxs("p",{className:"auth-foot",children:["Har du allerede en konto?",l.jsx("button",{className:"link-btn",type:"button",onClick:M,children:"Log ind"})]})]})}class tl{searchParams;constructor(s){this.searchParams=s?new URLSearchParams(s):new URLSearchParams}append(s,c){const o=new URLSearchParams(this.searchParams);return o.append(s,String(c)),new tl(o)}set(s,c){const o=new URLSearchParams(this.searchParams);return o.set(s,String(c)),new tl(o)}toString(){return this.searchParams.toString()}}function ms(u,s){if(!s)return u;const c=new URL(u);if(s instanceof tl){const o=s.toString();return o&&new URLSearchParams(o).forEach((g,M)=>c.searchParams.append(M,g)),c.toString()}return Object.entries(s).forEach(([o,h])=>{if(Array.isArray(h)){h.forEach(g=>c.searchParams.append(o,String(g)));return}c.searchParams.set(o,String(h))}),c.toString()}async function gs(u,s="json"){if(!u.ok){const c=await u.text();throw new Error(c||`HTTP ${u.status}`)}if(u.status!==204)return s==="blob"?await u.blob():await u.json()}function ps(u){const s=typeof window>"u"?null:window.localStorage.getItem("token");return{...s?{Authorization:`Bearer ${s}`}:{},...u??{}}}class _1{async get(s,c){const o=await fetch(ms(s,c?.params),{method:"GET",headers:ps(c?.headers)});return gs(o,c?.responseType)}async post(s,c,o){const h=await fetch(ms(s,o?.params),{method:"POST",headers:{"Content-Type":"application/json",...ps(o?.headers)},body:c===void 0?void 0:JSON.stringify(c)});return gs(h)}async put(s,c,o){const h=await fetch(ms(s,o?.params),{method:"PUT",headers:{"Content-Type":"application/json",...ps(o?.headers)},body:c===void 0?void 0:JSON.stringify(c)});return gs(h)}async delete(s,c){const o=await fetch(ms(s,c?.params),{method:"DELETE",headers:ps(c?.headers)});return gs(o)}}const He=new _1,z={backendApi:"https://api.arbejd.com/",backendApiV2:"https://api2.arbejd.com/api/"};class A1{http;constructor(s=He){this.http=s}login(s,c){let o=z.backendApi+"api/1.1.0/candidate/login",h={email:s,password:c};return this.http.post(o,h)}forgotPassword(s){let c=z.backendApi+"api/1.1.0/candidate/resetPassword/"+s.toLowerCase();return this.http.get(c)}}class al{constructor(s=He,c=Jl){this.http=s,this.localStorageService=c}closeAccount(s){let c=z.backendApi+"api/1.1.0/candidate/"+s.toLowerCase();return this.http.delete(c)}accountRetention(s){let c=z.backendApi+"api/1.1.0/candidate/"+s+"/account-retention/";return this.http.get(c)}getCandidatesQualifications(){let s=z.backendApi+"api/1.1.0/candidate/skill/";return this.http.get(s)}getCandidatesCertifications(){let s=z.backendApi+"api/1.1.0/candidate/certificate/";return this.http.get(s)}getCandidatesLanguages(){let s=z.backendApi+"api/1.1.0/candidate/language/";return this.http.get(s)}getCandidatesDriverLicenses(){let s=z.backendApi+"api/1.1.0/candidate/driversLicense/";return this.http.get(s)}changePassword(s,c){let o=z.backendApi+"api/1.1.0/candidate/resetPassword",h={key:s,password:c};return this.http.post(o,h)}getCandidatesEducations(){let s=z.backendApiV2+"1.0.0/client/candidate_education";return this.http.get(s)}updateExperience(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience/"+s.id,h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.put(o,h)}createAccountV2(s){let c=z.backendApiV2+"1.0.0/client/candidate";return this.http.post(c,s)}updateCandidate(s,c){let o=z.backendApiV2+"1.0.0/client/candidate/v2/"+s.id,h={...s};s.birthday&&(s.birthday=new Date(s.birthday)),s.birthday instanceof Date&&(h.birthday=s.birthday.toISOString());let g={language:c,candidate:h};return this.http.put(o,g)}getCandidate(){let s=z.backendApiV2+"1.0.0/client/candidate";return this.http.get(s)}getCvSuggestion(){let s=z.backendApiV2+"1.0.0/client/suggestion";return this.http.get(s)}saveExperience(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience",h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,esco_id:s.occupation.id,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.post(o,h)}removeExperience(s){let c=z.backendApiV2+"1.0.0/client/candidate_experience/"+s;return this.http.delete(c)}getCandidatesExperiences(){let s=z.backendApiV2+"1.0.0/client/candidate_experience";return this.http.get(s)}getJobAgentFilters(){let s=z.backendApiV2+"1.0.0/client/job_agent_filter";return this.http.get(s)}updateJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s.id,o=s;return this.http.put(c,o)}removeJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s;return this.http.delete(c)}updateCandidateJobSeeker(s){let c=z.backendApiV2+"1.0.0/client/candidate/update_job_seeker/"+s.id;return this.http.put(c,s)}updateCvUploadProfileText(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate/update_cv_upload_profile/"+s,g={description:c,language:o};return this.http.put(h,g)}saveExperienceV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_experience",h={comments:s.comments,company_name:s.companyName,is_current:s.isCurrent,esco_id:s.escoId,from_date:s.fromDate,to_date:s.toDate,language:c};return this.http.post(o,h)}updateProfileText(s){let c=z.backendApiV2+"1.0.0/client/candidate/update_profile_text";return this.http.put(c,s)}}function Wc(u,s){const c=u[s];return typeof c=="string"?c:null}class T1{authService;candidateService;constructor(s=new A1,c=new al){this.authService=s,this.candidateService=c}async login(s,c,o){const g=await this.authService.login(s,c)??{},M=Wc(g,"token");if(!M)return{ok:!1,message:"Login fejlede: token mangler i svaret fra serveren."};const H={id:Wc(g,"id")??"",token:M,email:Wc(g,"email")??s,runOutDate:"forever"};return await Jl.setAuthData(H,o),{ok:!0,message:"Du er nu logget ind."}}async forgotPassword(s){return await this.authService.forgotPassword(s),{ok:!0,message:"Anmodning om nulstilling af kodeord er sendt."}}async register(s){const c=Number.parseInt(s.zip,10);if(Number.isNaN(c))return{ok:!1,message:"Postnummer skal være et tal."};const o={email:s.email,password:s.password,zip:c,zipName:s.zipName,awsUrl:"",latitude:0,longitude:0,firstName:s.firstName,lastName:s.lastName,subscribe:s.subscribe};return await this.candidateService.createAccountV2(o),{ok:!0,message:"Kontoen er oprettet."}}}class hm{constructor(s=He){this.http=s}searchPlaces(s){const c=z.backendApiV2+"client/google_maps/1.0.0/get_places?query="+encodeURIComponent(s);return this.http.get(c)}getPlaceDetails(s){const c=z.backendApiV2+"client/google_maps/1.0.0/get_place_details?place_id="+encodeURIComponent(s);return this.http.get(c)}}function z1(u){const s=_.useMemo(()=>new T1,[]),c=_.useMemo(()=>new hm,[]),[o,h]=_.useState(""),[g,M]=_.useState(!1),[H,R]=_.useState(""),[j,B]=_.useState(""),[T,V]=_.useState(""),[J,P]=_.useState(""),[X,he]=_.useState(""),[ie,ne]=_.useState(""),[Y,K]=_.useState([]),[ee,Z]=_.useState(null),[D,$]=_.useState(""),[de,te]=_.useState(!1),[oe,ue]=_.useState(null),[Ae,Ne]=_.useState("login");function le(S){ue(null),Ne(S)}async function v(S){const L=S.trim();if(L.length<3){K([]);return}try{const ce=((await c.searchPlaces(L)).predictions??[]).filter(re=>typeof re.place_id=="string"&&typeof re.description=="string").map(re=>({description:re.description,placeId:re.place_id}));K(ce)}catch{K([])}}function E(S){const L=S.match(/\b(\d{4})\b/);if(!L)return null;const G=L[1],re=S.slice(S.indexOf(G)+G.length).trim().split(",")[0]?.trim()||"";return re?{cityName:re,zip:G}:null}async function b(S,L){let G=L;try{const re=await c.getPlaceDetails(S);typeof re.result?.formatted_address=="string"&&re.result.formatted_address.trim()&&(G=re.result.formatted_address.trim())}catch{}const ce=E(G)??E(L);if(ne(G),K([]),!ce){Z(null);return}Z({cityName:ce.cityName,description:G,zip:ce.zip})}async function q(S){S.preventDefault(),M(!0),ue(null);try{const L=await s.login(H.trim(),j,de);ue(L),L.ok&&u?.()}catch(L){const G=L instanceof Error?L.message:"Login mislykkedes.";ue({ok:!1,message:G})}finally{M(!1)}}async function F(S){S.preventDefault(),M(!0),ue(null);try{if(!ee){ue({ok:!1,message:"Vaelg en lokation fra listen (med postnummer)."});return}const L=await s.register({email:J.trim(),firstName:T.trim(),lastName:X.trim(),password:D,subscribe:!0,zip:ee.zip,zipName:ee.cityName});ue(L),L.ok&&Ne("login")}catch(L){const G=L instanceof Error?L.message:"Oprettelse mislykkedes.";ue({ok:!1,message:G})}finally{M(!1)}}async function m(S){S.preventDefault(),M(!0),ue(null);try{const L=await s.forgotPassword(o.trim());ue(L)}catch(L){const G=L instanceof Error?L.message:"Kunne ikke sende nulstillingslink.";ue({ok:!1,message:G})}finally{M(!1)}}return{forgotEmail:o,handleForgotSubmit:m,handleLoginSubmit:q,handleRegisterSubmit:F,loading:g,loginEmail:H,loginPassword:j,registerFirstName:T,registerEmail:J,registerLastName:X,registerLocationQuery:ie,registerLocationSuggestions:Y,registerPassword:D,rememberMe:de,result:oe,setForgotEmail:h,setLoginEmail:R,setLoginPassword:B,setRegisterEmail:P,setRegisterFirstName:V,setRegisterLastName:he,setRegisterLocationQuery:S=>{ne(S),Z(null),v(S)},setRegisterPassword:$,setRememberMe:te,selectRegisterLocation:b,switchView:le,view:Ae}}function D1({onAuthenticated:u}){const{forgotEmail:s,handleForgotSubmit:c,handleLoginSubmit:o,handleRegisterSubmit:h,loading:g,loginEmail:M,loginPassword:H,registerFirstName:R,registerEmail:j,registerLastName:B,registerLocationQuery:T,registerLocationSuggestions:V,registerPassword:J,rememberMe:P,result:X,setForgotEmail:he,setLoginEmail:ie,setLoginPassword:ne,setRegisterEmail:Y,setRegisterFirstName:K,setRegisterLastName:ee,setRegisterLocationQuery:Z,setRegisterPassword:D,setRememberMe:$,selectRegisterLocation:de,switchView:te,view:oe}=z1(u);return l.jsxs("main",{className:"auth-page",children:[l.jsx("div",{className:"orb orb-1"}),l.jsx("div",{className:"orb orb-2"}),l.jsx("div",{className:"orb orb-3"}),l.jsxs("div",{className:"auth-logo-wrap",children:[l.jsx("div",{className:"auth-logo-dot",children:"A"}),l.jsx("span",{className:"auth-logo-text",children:"ARBEJD"})]}),l.jsxs("section",{className:"auth-card",children:[oe==="login"?l.jsx(k1,{email:M,loading:g,onChangeEmail:ie,onChangePassword:ne,onChangeRememberMe:$,onForgotPassword:()=>te("forgot"),onRegister:()=>te("register"),onSubmit:o,password:H,rememberMe:P}):null,oe==="register"?l.jsx(w1,{email:j,firstName:R,lastName:B,loading:g,locationQuery:T,locationSuggestions:V,onBackToLogin:()=>te("login"),onChangeEmail:Y,onChangeFirstName:K,onChangeLastName:ee,onChangeLocationQuery:Z,onChangePassword:D,onSelectLocation:de,onSubmit:h,password:J}):null,oe==="forgot"?l.jsx(S1,{email:s,loading:g,onBackToLogin:()=>te("login"),onChangeEmail:he,onSubmit:c}):null,X?l.jsx("p",{className:X.ok?"status success":"status error",children:X.message}):null]},oe)]})}class mm{constructor(s=He){this.http=s}listEscoByParent(s){let c=z.backendApiV2+"1.0.0/client/esco";return s&&(c+="/"+s),this.http.get(c)}listAllEscos(){let s=z.backendApiV2+"1.0.0/client/esco";return this.http.get(s)}}class M1{constructor(s=He){this.http=s}addEscoToJobAgent(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter",o={esco_id:s};return this.http.post(c,o)}removeJobAgentFilter(s){let c=z.backendApiV2+"1.0.0/client/job_agent_filter/"+s;return this.http.delete(c)}}class Ss{constructor(s=He){this.http=s}getPaymentOverview(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/payment_overview";return this.http.get(s)}getSubscriptionProducts(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/get_products";return this.http.get(s)}deactivateAutoRenew(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/deactivate_auto_renew";return this.http.put(s,{})}activateAutoRenew(){let s=z.backendApiV2+"client/end_user_subscription/1.0.0/activate_auto_renew";return this.http.put(s,{})}redeemCode(s){let c=z.backendApiV2+"client/candidate_redeem_code/v1";return this.http.post(c,{code:s})}}class gm{constructor(s=new al,c=new Ss,o=new M1,h=new mm){this.candidateService=s,this.subscriptionService=c,this.jobAgentService=o,this.escoService=h}async loadInitialData(){const[s,c,o,h]=await Promise.allSettled([this.subscriptionService.getPaymentOverview(),this.candidateService.getJobAgentFilters(),this.candidateService.getCvSuggestion(),this.escoService.listAllEscos()]);return{paymentOverview:s.status==="fulfilled"?s.value:null,jobAgentFilters:c.status==="fulfilled"?c.value:[],cvSuggestions:o.status==="fulfilled"?this.withImprovements(o.value):[],escos:h.status==="fulfilled"?h.value:[]}}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async addEscoToFilter(s){await this.jobAgentService.addEscoToJobAgent(s)}async removeFilter(s){await this.jobAgentService.removeJobAgentFilter(s)}async setFilterVisibility(s,c){await this.candidateService.updateJobAgentFilter({...s,visible:c})}getEscoSuggestions(s,c,o){const h=s.trim().toLowerCase();if(!h)return[];const g=new Set(o.map(M=>M.escoId));return c.filter(M=>!g.has(M.id)).filter(M=>M.preferedLabelDa.toLowerCase().includes(h)).slice(0,10)}getSuggestionText(s){return s>=0&&s<50?"Et godt første skridt mod flere relevante job.":s>=50&&s<100?"Kan styrke dine chancer i ansøgningsbunken.":s>=100&&s<150?"Ofte efterspurgt og forbedrer dine jobmuligheder markant.":s>=150&&s<200?"Et klart plus som gør dig mere attraktiv for arbejdsgivere.":s>=200?"En afgørende faktor der åbner langt flere jobmuligheder.":"Forbedrer din profil til kommende jobmatch."}withImprovements(s){return s.map(c=>{const o=[],h=[{items:c.jobImprovementSuggestion.educations??[],type:"education"},{items:c.jobImprovementSuggestion.languages??[],type:"language"},{items:c.jobImprovementSuggestion.driversLicenses??[],type:"driversLicense"},{items:c.jobImprovementSuggestion.qualifications??[],type:"qualification"},{items:c.jobImprovementSuggestion.certificates??[],type:"certificate"}];for(const g of h)for(const M of g.items)o.push({...M,improvementType:g.type});return o.sort((g,M)=>M.jobChanceIncrease-g.jobChanceIncrease),{...c,improvements:o}})}}class E1{constructor(s=He){this.http=s}saveJobFilter(s){let c=z.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.post(c,s)}getJobFilter(){let s=z.backendApiV2+"1.0.0/client/candidate_search_filter";return this.http.get(s)}resetJobFilter(){let s=z.backendApiV2+"1.0.0/client/candidate_search_filter/reset_job_filter";return this.http.put(s,{})}}class vo{http;constructor(s=He){this.http=s}getSearchWords(){let s=z.backendApiV2+"1.0.0/client/candidate_search/list_search_words";return this.http.get(s)}getJobs(s,c,o){let h=z.backendApi+"api/1.1.0/jobs/all/"+c+"/"+o;return this.http.post(h,s)}getJobsV2(s,c,o,h){let g=z.backendApiV2+"1.0.0/client/candidate_search/v2/"+s+"/"+c+"/"+o,M=new tl;return h.length>0&&h.forEach(H=>{M=M.append("terms",H)}),this.http.get(g,{params:M})}getSavedJobs(s,c){let o=z.backendApi+"api/1.1.0/candidate/jobs/saved";return this.http.get(o)}getSavedJobsV2(s,c){let o=z.backendApiV2+"1.0.0/client/job/bookmarked_jobs/"+s+"/"+c;return this.http.get(o)}getAppliedJobs(s,c){let o=z.backendApi+"api/1.1.0/applications/candidate/";return this.http.get(o)}getAppliedJobsV2(s,c){let o=z.backendApiV2+"1.0.0/client/job/applied_jobs/"+s+"/"+c;return this.http.get(o)}payWithStripe(s,c){const o=z.backendApiV2+"1.0.0/client/payment/create-payment-intent",h={paymentMethodId:s,amount:c};return this.http.post(o,h)}bookmarkJob(s){let c=z.backendApi+"api/1.1.0/candidate/jobs/"+s+"/jobnet/updateSavedStatus",o={saved:!0};return this.http.post(c,o)}unbookmarkJob(s){let c=z.backendApi+"api/1.1.0/candidate/jobs/"+s+"/jobnet/updateSavedStatus",o={saved:!1};return this.http.post(c,o)}bookmarkJobV2(s,c,o){let h=z.backendApiV2+"1.0.0/client/job/bookmark/"+s,g={job_type:o,save:c};return this.http.post(h,g)}getJobNetJobDetail(s){let c=z.backendApiV2+"1.0.0/client/job/detail/star/"+s;return this.http.get(c)}getJobDetail(s){let c=z.backendApi+"api/1.1.0/jobs/"+s;return this.http.get(c)}getOccupationCategorizations(){let s=z.backendApiV2+"1.0.0/client/ds_tree";return this.http.get(s)}getJobSummary(s){let c=z.backendApi+"api/1.1.0/jobs/"+s+"/summary";return this.http.get(c)}applyJob(s){let c=z.backendApi+"api/1.1.0/applications/job/"+s,o={jobPostingId:s};return this.http.post(c,o)}undoApplyJob(s){let c=z.backendApi+"api/1.1.0/applications/"+s;return this.http.delete(c)}toggleApplyJobnetjob(s,c){let o=z.backendApiV2+"1.0.0/client/job/detail/star/apply/"+s,h={apply:c};return this.http.put(o,h)}}const Fc={escoIds:[],workTypePermanent:!1,workTypePartTime:!1,workDistance:50,partTimeHours:null,distanceCenterName:"",latitude:null,longitude:null};function Ze(u){return typeof u=="string"?u:""}function Jn(u){return typeof u=="object"&&u!==null?u:null}function $c(u,s){if(!u)return[];const c=u[s];return Array.isArray(c)?c:[]}function Ic(u){if(Array.isArray(u))return u;const s=Jn(u);if(!s)return[];const c=$c(s,"searchList");if(c.length>0)return c;const o=Jn(s.data),h=$c(o,"searchList");if(h.length>0)return h;const g=$c(s,"items");return g.length>0?g:[]}function Lh(u,s){if(!u)return null;const c=u[s];return typeof c=="number"?c:null}function C1(u){return u.trim()}function U1(u){if(!u)return[];const s=new Set,c=u.searchText?.trim();c&&c.length>0&&s.add(c);for(const o of u.desiredTitles??[]){const h=C1(o);h.length>0&&s.add(h)}return Array.from(s)}function L1(u,s){return{id:Ze(u.id),title:Ze(u.title),companyName:Ze(u.companyName),occupationName:Ze(u.occupationName),descriptionIntro:Ze(u.descriptionIntro),address:Ze(u.address),time:Ze(u.time),applicationDeadline:u.applicationDeadline instanceof Date?u.applicationDeadline.toISOString():Ze(String(u.applicationDeadline??"")),candidateDistance:typeof u.candidateDistance=="number"?u.candidateDistance:null,logoUrl:Ze(u.logoUrl),companyLogoImage:Ze(u.companyLogoImage),fromJobnet:!!u.fromJobnet,isSaved:!!u.saved,matchPercent:s}}function Oh(u){return{id:Ze(u.id),title:Ze(u.title),companyName:Ze(u.companyName),occupationName:Ze(u.occupationName),descriptionIntro:Ze(u.descriptionIntro),address:Ze(u.address),time:Ze(u.time),applicationDeadline:u.applicationDeadline instanceof Date?u.applicationDeadline.toISOString():Ze(String(u.applicationDeadline??"")),candidateDistance:typeof u.candidateDistance=="number"?u.candidateDistance:null,logoUrl:Ze(u.logoUrl),companyLogoImage:Ze(u.companyLogoImage),isActive:typeof u.isActive=="boolean"?u.isActive:void 0,fromJobnet:!!u.fromJobnet,isSaved:!0}}class ks{constructor(s=new vo,c=new E1,o=new hm,h=new al){this.jobService=s,this.filterService=c,this.placesService=o,this.candidateService=h}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async getOccupationOptions(){const s=await this.jobService.getOccupationCategorizations(),c=[];for(const o of s)for(const h of o.subAreas)for(const g of h.occupations)typeof g.id=="number"&&typeof g.name=="string"&&g.name.trim().length>0&&c.push({id:g.id,name:g.name});return c.sort((o,h)=>o.name.localeCompare(h.name,"da"))}async getJobSearchWords(){return(await this.jobService.getSearchWords()).filter(c=>typeof c=="string"&&c.trim().length>0)}async getSavedFilter(){try{const s=await this.filterService.getJobFilter(),c=s?.candidateSearchFilter;return c?{escoIds:s.escoIds??[],workTypePermanent:!!c.workTypePermanent,workTypePartTime:!!c.workTypePartTime,workDistance:c.workDistance??c.defaultDistance??50,partTimeHours:c.partTimeHours??null,distanceCenterName:c.distanceCenterName??c.defaultCenterName??"",latitude:c.latitude??null,longitude:c.longitude??null}:{...Fc}}catch{return{...Fc}}}async saveFilter(s){const c=s.workTypePartTime&&s.partTimeHours&&s.partTimeHours>0&&s.partTimeHours<=37?s.partTimeHours:null,o={escoIds:s.escoIds,candidateSearchFilter:{workTimeDay:!1,workTimeEvening:!1,workTimeNight:!1,workTimeWeekend:!1,workTypePermanent:s.workTypePermanent,workTypeFreelance:!1,workTypePartTime:s.workTypePartTime,workTypeSubstitute:!1,workTypeTemporary:!1,workDistance:s.workDistance,partTimeHours:c,distanceCenterName:s.distanceCenterName,latitude:s.latitude,longitude:s.longitude}};await this.filterService.saveJobFilter(o)}async resetFilter(){return await this.filterService.resetJobFilter(),{...Fc}}async searchPlaceSuggestions(s){const c=s.trim();return c.length<3?[]:((await this.placesService.searchPlaces(c)).predictions??[]).filter(h=>typeof h.place_id=="string"&&typeof h.description=="string").map(h=>({placeId:h.place_id,description:h.description}))}async getPlaceSelection(s){const o=(await this.placesService.getPlaceDetails(s)).result;return!o||typeof o.formatted_address!="string"?null:{description:o.formatted_address,latitude:typeof o.geometry?.location?.lat=="number"?o.geometry.location.lat:null,longitude:typeof o.geometry?.location?.lng=="number"?o.geometry.location.lng:null}}async getTabItems(s,c){if(s==="gemte"){const o=await this.jobService.getSavedJobsV2(0,100);return Ic(o).map(g=>Oh(g))}if(s==="sogte"){const o=await this.jobService.getAppliedJobsV2(0,100);return Ic(o).map(g=>Oh(g))}return this.getJobsFeedItems(c?[c]:void 0)}async applyFiltersAndGetJobs(s,c){await this.saveFilter(s);const o=U1(c);return this.getJobsFeedItems(o)}async toggleBookmark(s,c){const o=s.fromJobnet?"star":"arbejd.com";await this.jobService.bookmarkJobV2(s.id,c,o)}async getJobsFeedItems(s){let o=10,h=0;const g=12,M=120,H=new Set,R=[];let j=[];const B=(s??[]).map(T=>T.trim()).filter(T=>T.length>0);if(B.length>0)j=B;else try{j=(await this.jobService.getSearchWords()).filter(V=>typeof V=="string"&&V.trim().length>0)}catch{j=[]}for(let T=0;T{o(!1)},[u]),_.useEffect(()=>{if(!c)return;function g(H){H.key==="Escape"&&o(!1)}const M=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",g),()=>{document.body.style.overflow=M,window.removeEventListener("keydown",g)}},[c]);function h(g){s?.(g),o(!1)}return l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:"dash-mobile-menu-btn","aria-label":c?"Luk menu":"Aabn menu","aria-expanded":c,onClick:()=>o(g=>!g),children:c?l.jsx(fo,{size:18,strokeWidth:1.9}):l.jsx(Sv,{size:18,strokeWidth:1.9})}),l.jsx("button",{type:"button",className:`dash-mobile-overlay ${c?"open":""}`,"aria-label":"Luk menu",onClick:()=>o(!1)}),l.jsxs("aside",{className:`dash-sidebar ${c?"open":""}`,children:[l.jsxs("div",{className:"dash-logo-row",children:[l.jsx("div",{className:"dash-logo-dot",children:"A"}),l.jsx("span",{className:"dash-logo-text",children:"ARBEJD"})]}),l.jsxs("nav",{className:"dash-nav",children:[O1.map(g=>{const M=g.icon,H=g.key===u;return l.jsxs("button",{type:"button",className:H?"dash-nav-item active":"dash-nav-item",onClick:()=>h(g.key),children:[l.jsx("span",{className:g.accent?"dash-nav-icon accent":"dash-nav-icon",children:l.jsx(M,{size:19,strokeWidth:1.7})}),l.jsx("span",{className:"dash-nav-label",children:g.label}),g.badge?l.jsx("span",{className:"dash-nav-badge",children:g.badge}):null]},g.key)}),l.jsx("div",{className:"dash-nav-divider"}),R1.map(g=>{const M=g.icon,H=g.key===u;return l.jsxs("button",{type:"button",className:H?"dash-nav-item active":"dash-nav-item",onClick:()=>h(g.key),children:[l.jsx("span",{className:g.accent?"dash-nav-icon accent":"dash-nav-icon",children:l.jsx(M,{size:19,strokeWidth:1.7})}),l.jsx("span",{className:"dash-nav-label",children:g.label}),g.dot?l.jsx("span",{className:"dash-nav-dot"}):null]},g.key)})]}),l.jsxs("div",{className:"dash-sidebar-pro",children:[l.jsx("div",{className:"dash-sidebar-pro-glow"}),l.jsx(Kn,{size:19,strokeWidth:1.8}),l.jsx("h4",{children:"Pro-medlemskab"}),l.jsx("p",{children:"Faa ubegrænsede simuleringer"})]})]})]})}function Qt({actions:u,imageUrl:s,name:c,onLogout:o,onToggleTheme:h,theme:g="light"}){return l.jsxs("header",{className:"dash-topbar",children:[l.jsx("a",{href:"/home",className:"dash-home-btn",children:"HomePage"}),h?l.jsxs("button",{type:"button",className:"dash-theme-btn",onClick:h,children:[g==="dark"?l.jsx(f1,{size:15,strokeWidth:1.8}):l.jsx(Dv,{size:15,strokeWidth:1.8}),l.jsx("span",{children:g==="dark"?"Light":"Dark"})]}):null,u?l.jsx("div",{className:"dash-topbar-actions",children:u}):null,l.jsxs("div",{className:"dash-profile-wrap",children:[l.jsxs("button",{className:"dash-profile-btn",type:"button",children:[s?l.jsx("img",{src:s,alt:c,className:"dash-profile-avatar"}):l.jsx("div",{className:"dash-profile-avatar dash-profile-avatar-fallback",children:c.slice(0,1).toUpperCase()}),l.jsx("span",{children:c}),l.jsx(Gn,{size:15,strokeWidth:1.8})]}),l.jsxs("div",{className:"dash-profile-menu",children:[l.jsxs("button",{type:"button",children:[l.jsx(Yp,{size:16,strokeWidth:1.8})," Profil"]}),l.jsxs("button",{type:"button",children:[l.jsx(um,{size:16,strokeWidth:1.8})," Indstillinger"]}),l.jsx("div",{className:"dash-profile-divider"}),l.jsxs("button",{type:"button",className:"danger",onClick:o,children:[l.jsx(bv,{size:16,strokeWidth:1.8})," Log ud"]})]})]})]})}const V1={paymentOverview:null,jobAgentFilters:[],cvSuggestions:[],escos:[]};function H1(u){return u.trim().slice(0,1).toUpperCase()||"A"}function B1(u){return Math.max(68,98-u*4)}function q1(u,s){const c=s.trim().toLowerCase();return c?u.filter(o=>o.preferedLabelDa.toLowerCase().includes(c)).slice(0,8):[]}function G1({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new gm,[]),M=_.useMemo(()=>new ks,[]),[H,R]=_.useState("Lasse"),[j,B]=_.useState(void 0),[T,V]=_.useState(V1),[J,P]=_.useState([]),[X,he]=_.useState(!0),[ie,ne]=_.useState(""),[Y,K]=_.useState(""),[ee,Z]=_.useState(""),[D,$]=_.useState(""),[de,te]=_.useState(""),[oe,ue]=_.useState(25);_.useEffect(()=>{let b=!0;async function q(){he(!0);const[F,m,S]=await Promise.all([g.getCandidateProfile(),g.loadInitialData(),M.getTabItems("jobs")]);b&&(R(F.name),B(F.imageUrl),V(m),P(S),he(!1))}return q(),()=>{b=!1}},[g,M]);async function Ae(){const b=await g.loadInitialData();V(b)}async function Ne(){const b=Y.trim()||ie.trim()||ee.trim(),q=g.getEscoSuggestions(b,T.escos,T.jobAgentFilters)[0]||q1(T.escos,b)[0];q&&(await g.addEscoToFilter(q.id),await Ae(),ne(""),K(""),Z(""),$(""),te(""),ue(25))}async function le(b){await g.setFilterVisibility(b,!b.visible),await Ae()}const v=T.jobAgentFilters,E=(J.length>0?J:[]).slice(0,6);return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"agents",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar ai-agent-main",children:[l.jsx(Qt,{name:H,imageUrl:j,onLogout:u,theme:h,onToggleTheme:o}),l.jsxs("div",{className:"ai-head",children:[l.jsx("h1",{children:"Jobagenter"}),l.jsx("p",{children:"Saet din jobsogning pa autopilot. Lad agenter overvage og matche dig med de perfekte jobs."})]}),l.jsxs("section",{className:"ai-create-card",children:[l.jsxs("div",{className:"ai-create-title",children:[l.jsx("div",{className:"ai-create-icon",children:l.jsx(tm,{size:20,strokeWidth:1.8})}),l.jsx("h2",{children:"Opret ny jobagent"})]}),l.jsxs("div",{className:"ai-form-grid",children:[l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Agentens navn"}),l.jsx("input",{value:ie,onChange:b=>ne(b.target.value),placeholder:"F.eks. Frontend Udvikler CPH"})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Sogetekst / Nogleord"}),l.jsx("input",{value:Y,onChange:b=>K(b.target.value),placeholder:"F.eks. React, TypeScript, Tailwind"})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdsomrade"}),l.jsxs("select",{value:ee,onChange:b=>Z(b.target.value),children:[l.jsx("option",{value:"",children:"Vaelg branche"}),l.jsx("option",{value:"IT & Udvikling",children:"IT & Udvikling"}),l.jsx("option",{value:"Design & UX",children:"Design & UX"}),l.jsx("option",{value:"Salg & Marketing",children:"Salg & Marketing"}),l.jsx("option",{value:"HR & Ledelse",children:"HR & Ledelse"})]})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdstype"}),l.jsxs("select",{value:D,onChange:b=>$(b.target.value),children:[l.jsx("option",{value:"",children:"Vaelg type"}),l.jsx("option",{value:"Fuldtid",children:"Fuldtid"}),l.jsx("option",{value:"Deltid",children:"Deltid"}),l.jsx("option",{value:"Freelance",children:"Freelance / Konsulent"}),l.jsx("option",{value:"Studiejob",children:"Studiejob"})]})]}),l.jsxs("div",{className:"ai-field",children:[l.jsx("label",{children:"Arbejdssted"}),l.jsxs("div",{className:"ai-location-wrap",children:[l.jsx(Xn,{size:16,strokeWidth:1.8}),l.jsx("input",{value:de,onChange:b=>te(b.target.value),placeholder:"By eller postnummer"})]})]}),l.jsxs("div",{className:"ai-field ai-distance-field",children:[l.jsxs("div",{className:"ai-distance-head",children:[l.jsx("label",{children:"Maks. distance"}),l.jsxs("span",{children:[oe," km"]})]}),l.jsx("input",{type:"range",min:0,max:100,value:oe,onChange:b=>ue(Number(b.target.value))})]})]}),l.jsx("div",{className:"ai-create-actions",children:l.jsxs("button",{type:"button",onClick:()=>{Ne()},children:[l.jsx(Pv,{size:16,strokeWidth:1.8})," Gem jobagent"]})})]}),l.jsxs("section",{className:"ai-agents-section",children:[l.jsx("h3",{children:"Dine aktive agenter"}),l.jsxs("div",{className:"ai-agents-row custom-scrollbar",children:[v.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen aktive agenter endnu."}):null,v.map((b,q)=>l.jsxs("article",{className:"ai-agent-chip-card",children:[l.jsxs("div",{className:"ai-agent-card-head",children:[l.jsxs("div",{className:"ai-agent-chip-left",children:[l.jsx("div",{className:`ai-agent-mini-icon ${q%2===0?"teal":"indigo"}`,children:q%2===0?l.jsx(Tv,{size:16,strokeWidth:1.8}):l.jsx(dm,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:b.escoName}),l.jsx("p",{children:b.isCalculated?"Aktiv siden i går":"Aktiv"})]})]}),l.jsx("button",{type:"button",className:b.visible?"ai-toggle on":"ai-toggle",onClick:()=>{le(b)},children:l.jsx("span",{})})]}),l.jsxs("div",{className:"ai-tags",children:[l.jsx("span",{children:b.escoName}),l.jsx("span",{children:de||"København"}),l.jsxs("span",{children:[oe," km"]})]})]},b.id))]})]}),l.jsxs("section",{className:"ai-jobs-section",children:[l.jsxs("div",{className:"ai-jobs-head",children:[l.jsxs("h3",{children:[l.jsx(Kn,{size:16,strokeWidth:1.8})," Anbefalede jobs til dig"]}),l.jsx("span",{children:"Opdateret for 5 min siden"})]}),l.jsxs("div",{className:"ai-jobs-grid",children:[X?l.jsx("p",{className:"dash-loading",children:"Indlaeser anbefalinger..."}):null,!X&&E.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen jobanbefalinger fundet endnu."}):null,E.map((b,q)=>l.jsxs("article",{className:"ai-job-card",role:"button",tabIndex:0,onClick:()=>c(b.id,b.fromJobnet,"agents"),onKeyDown:F=>{(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),c(b.id,b.fromJobnet,"agents"))},children:[l.jsx("div",{className:`ai-job-rail ${q%3===2?"indigo":"teal"}`}),l.jsxs("div",{className:"ai-job-top",children:[b.companyLogoImage||b.logoUrl?l.jsx("img",{src:b.companyLogoImage||b.logoUrl,alt:b.companyName,className:"ai-company-logo"}):l.jsx("div",{className:"ai-company-logo-fallback",children:H1(b.companyName)}),l.jsxs("div",{className:"ai-match-col",children:[l.jsxs("div",{className:"ai-match-pill",children:[l.jsx(Wn,{size:13,strokeWidth:1.8})," ",B1(q),"% Match"]}),l.jsxs("small",{children:["Via: ",v[0]?.escoName||"Jobagent"]})]})]}),l.jsxs("div",{className:"ai-job-title-wrap",children:[l.jsx("h4",{children:b.title}),l.jsxs("p",{children:[b.companyName," • ",b.address||"Lokation"]})]}),l.jsxs("div",{className:"ai-job-tags",children:[l.jsx("span",{children:b.occupationName||"Frontend"}),l.jsx("span",{children:b.fromJobnet?"Jobnet":"Arbejd.com"}),l.jsx("span",{children:b.candidateDistance!=null?`${Math.round(b.candidateDistance)} km`:"Remote"})]}),l.jsxs("div",{className:"ai-job-bottom",children:[l.jsx("span",{children:"Slået op for nyligt"}),l.jsxs("button",{type:"button",onClick:F=>{F.stopPropagation(),c(b.id,b.fromJobnet,"agents")},children:["Læs mere ",l.jsx(La,{size:14,strokeWidth:1.8})]})]})]},b.id))]})]})]})]})}const Y1={paymentOverview:null,jobAgentFilters:[],cvSuggestions:[],escos:[]};function Rh(){return["Diamantskærer","Ministerialbetjent","Kiropraktor","System Developer","Senior Software Developer","Founder and Developer","Senior .Net Developer","Freelance Programmer","Støberichef","Softwareudvikler, frontend","CSR-ansvarlig","Lagerchef inden for råstof","Ios developer","Kokkeelev","IT-kvalitetsmedarbejder","Efterretningsofficer"]}function J1(u){return u>=70?{text:"Kan styrke dine chancer i ansøgningsbunken",kind:"strong"}:u>=40?{text:"Ofte efterspurgt – forbedrer dine jobmuligheder markant",kind:"neutral"}:{text:"Et godt første skridt mod flere relevante job",kind:"soft"}}function Q1(u){return u==="education"?im:u==="language"?js:u==="driversLicense"?am:u==="certificate"?em:u==="qualification"?Wn:po}function X1(u){return u==="education"?"blue":u==="language"?"emerald":u==="driversLicense"?"orange":u==="certificate"?"rose":u==="qualification"?"indigo":"slate"}function Z1({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new gm,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState(Y1),[T,V]=_.useState(!0),[J,P]=_.useState("");_.useEffect(()=>{let Y=!0;async function K(){V(!0);const[ee,Z]=await Promise.all([h.getCandidateProfile(),h.loadInitialData()]);if(!Y)return;M(ee.name),R(ee.imageUrl),B(Z);const D=Z.jobAgentFilters[0]?.escoName||Rh()[1];P($=>$||D),V(!1)}return K(),()=>{Y=!1}},[h]);const X=j.jobAgentFilters.length>0?j.jobAgentFilters.map(Y=>Y.escoName):Rh(),he=j.jobAgentFilters.find(Y=>Y.escoName===J)||j.jobAgentFilters[0],ie=(he?j.cvSuggestions.find(Y=>Y.escoId===he.escoId)?.improvements:j.cvSuggestions[0]?.improvements)||[],ne=ie.length>0?ie:[{name:"Grundkursus i sikkerhed og beredskab",jobChanceIncrease:78,improvementType:"education"},{name:"Service og kommunikation i offentlige institutioner",jobChanceIncrease:52,improvementType:"qualification"},{name:"Dansk (Flydende)",jobChanceIncrease:65,improvementType:"language"},{name:"B - Almindelig bil",jobChanceIncrease:34,improvementType:"driversLicense"},{name:"Konflikthåndtering",jobChanceIncrease:72,improvementType:"qualification"},{name:"Førstehjælpsbevis",jobChanceIncrease:44,improvementType:"certificate"},{name:"Sikkerhedsgodkendelse (PET)",jobChanceIncrease:81,improvementType:"certificate"}];return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"ai-agent",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar career-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("div",{className:"career-status-pill",children:[l.jsx(We,{size:15,strokeWidth:1.8}),"CV analyseret"]})}),l.jsxs("div",{className:"career-head",children:[l.jsxs("div",{className:"career-head-title-row",children:[l.jsx("div",{className:"career-head-icon",children:l.jsx(j1,{size:19,strokeWidth:1.8})}),l.jsx("h1",{children:"Karriereagent"})]}),l.jsx("p",{className:"career-head-kicker",children:"Din Karriereagent Foreslår"}),l.jsx("p",{className:"career-head-desc",children:"Boost din profil ved hjælp af kunstig intelligens. Forslagene er udvalgt til din profil ud fra analyser af over 100.000+ jobopslag og dit nuværende CV."})]}),l.jsxs("div",{className:"career-grid",children:[l.jsxs("aside",{className:"career-agents-col",children:[l.jsxs("div",{className:"career-agents-head",children:[l.jsx("h2",{children:"Mine agenter"}),l.jsxs("button",{type:"button",children:[l.jsx(Hp,{size:16,strokeWidth:1.8})," Tilføj ny agent"]})]}),l.jsx("div",{className:"career-agents-list custom-scrollbar",children:X.map(Y=>l.jsxs("button",{type:"button",className:J===Y?"active":"",onClick:()=>P(Y),children:[l.jsx("span",{children:Y}),J===Y?l.jsx("i",{}):null]},Y))})]}),l.jsxs("section",{className:"career-reco-col",children:[l.jsxs("div",{className:"career-reco-head",children:[l.jsxs("h2",{children:["Viser anbefalinger for",l.jsx("span",{children:J||"Ministerialbetjent"})]}),l.jsxs("button",{type:"button",children:[l.jsx(lm,{size:14,strokeWidth:1.8})," Filtrer"]})]}),T?l.jsx("p",{className:"dash-loading",children:"Indlaeser anbefalinger..."}):null,l.jsx("div",{className:"career-cards custom-scrollbar",children:ne.map((Y,K)=>{const ee=Q1(Y.improvementType||"qualification"),Z=J1(Y.jobChanceIncrease||0),D=X1(Y.improvementType||"qualification");return l.jsxs("article",{className:"career-card",children:[l.jsx("div",{className:"career-card-glow"}),l.jsx("div",{className:"career-card-wand",children:l.jsx(Kn,{size:16,strokeWidth:1.8})}),l.jsxs("div",{className:"career-card-content",children:[l.jsx("div",{className:`career-card-icon ${D}`,children:l.jsx(ee,{size:18,strokeWidth:1.8})}),l.jsx("h3",{children:Y.shortName||Y.name}),l.jsxs("p",{className:`tone ${Z.kind}`,children:[Z.kind==="strong"?l.jsx(fm,{size:13,strokeWidth:1.8}):Z.kind==="neutral"?l.jsx(Wn,{size:13,strokeWidth:1.8}):l.jsx(i1,{size:13,strokeWidth:1.8}),Z.text]})]})]},`${Y.name}-${K}`)})})]})]})]})]})}class K1{constructor(s=He){this.http=s}generateApplication(s,c,o,h){let g=z.backendApiV2+"1.0.0/client/ai_handler/create_my_application",M={isStar:s,jobId:c,language:o,userInput:h};return this.http.post(g,M)}listGeneratedJobApplications(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/list_created_job_application/"+s;return this.http.get(c)}listPredefinedUserInput(){let s=z.backendApiV2+"1.0.0/client/ai_handler/list_predefined_user_input";return this.http.get(s)}getJobApplication(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/"+s;return this.http.get(c)}updateMyCvDescriptions(s){let c=z.backendApiV2+"1.0.0/client/ai_handler/update_my_cv_descriptions",o={language:s};return this.http.post(c,o)}updateStatesOnMyCvDescription(s,c,o){let h=z.backendApiV2+"1.0.0/client/ai_handler/update_states_on_my_cv_descriptions/"+s,g={state:c,subState:o};return this.http.put(h,g)}getMyCvDescriptions(){let s=z.backendApiV2+"1.0.0/client/ai_handler/get_my_cv_descriptions";return this.http.get(s)}submitJobApplicationRating(s,c,o){let h=z.backendApiV2+"1.0.0/client/ai_handler/job_application_rating",g={ai_generated_job_application_id:s,rating:c,rating_text:o};return this.http.post(h,g)}startApplicationExamination(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/create_application_examination",o={ai_generated_job_application_id:s};return this.http.post(c,o)}getApplicationExamination(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/application_examination/"+encodeURIComponent(s);return this.http.get(c)}getApplicationExaminationByJobApplicationId(s){const c=z.backendApiV2+"1.0.0/client/ai_handler/application_examination_by_job_application/"+s;return this.http.get(c)}}class W1{constructor(s=He){this.http=s}searchForCertification(s){let c=encodeURIComponent(s),o=z.backendApiV2+`1.0.0/client/certificate?search_text=${c}`;return this.http.get(o)}saveCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate",o={qualification_id:s};return this.http.post(c,o)}updateCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate/"+s.id,o=s;return this.http.put(c,o)}removeCertification(s){let c=z.backendApiV2+"1.0.0/client/candidate_certificate/"+s;return this.http.delete(c)}addUnknownCertificate(s){let c=z.backendApiV2+"1.0.0/client/certificate",o={certificate_name:s};return this.http.post(c,o)}}class F1{constructor(s=He){this.http=s}sendMyCvToEmail(){let s=z.backendApi+"api/1.1.0/candidate/sendPdf",c={};return this.http.post(s,c)}getMyCv(){let s=z.backendApiV2+"1.0.0/client/candidate/pdf";return this.http.get(s,{responseType:"blob"})}getMyCvV2(s){let c=z.backendApiV2+"1.0.0/client/candidate/pdf_url?language="+s;return this.http.get(c)}generateCv(s){let c=z.backendApiV2+"1.0.0/client/candidate/generateCv",o={language:s};return this.http.post(c,o)}}class $1{constructor(s=He,c=Jl){this.http=s,this.localStorageService=c}uploadCv(s,c){const o=z.backendApiV2+"1.0.0/client/cv_upload";return this.http.post(o,s,{headers:{Authorization:`Bearer ${c}`}})}getCvUploadData(){let s=z.backendApiV2+"1.0.0/client/cv_upload/get_upload_cv";return this.http.get(s)}setProfileTextToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/profile_text_is_done/"+s,o={};return this.http.put(c,o)}setExperienceToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/experience_is_done/"+s,o={};return this.http.put(c,o)}setEducationToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/education_is_done/"+s,o={};return this.http.put(c,o)}setQualificationToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/qualification_is_done/"+s,o={};return this.http.put(c,o)}setCertificateToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/certificate_is_done/"+s,o={};return this.http.put(c,o)}setLanguageToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/language_is_done/"+s,o={};return this.http.put(c,o)}setDriversLicenseToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/drivers_license_is_done/"+s,o={};return this.http.put(c,o)}setCvUploadToDone(s){let c=z.backendApiV2+"1.0.0/client/cv_upload/cv_is_done/"+s,o={};return this.http.put(c,o)}}class I1{constructor(s=He){this.http=s}getAllDriverLicenses(){let s=z.backendApi+"api/1.1.0/driversLicenses";return this.http.get(s)}updateDriverLicense(s,c){let o=z.backendApi+"api/1.1.0/candidate/driversLicense/"+s,h={};return this.http.put(o,h)}removeLanguage(s){let c=z.backendApiV2+"1.0.0/client/candidate_drivers_license/"+s;return this.http.delete(c)}saveDriverLicense(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_drivers_license",h={level:c,drivers_license_id:s.id};return this.http.post(o,h)}saveDriverLicenseV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_drivers_license",h={level:s,drivers_license_id:c};return this.http.post(o,h)}}class P1{constructor(s=He){this.http=s}searchForEducations(s){let c=z.backendApi+"api/1.1.0/educations/search/"+s;return this.http.get(c)}searchForSchools(s){let c=z.backendApi+"api/1.1.0/institutions/search/"+s;return this.http.get(c)}saveEducation(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_education",h={comments:s.comments,education_disced_15:s.education.disced15,from_date:s.fromDate,to_date:s.toDate,institution_number:s.institution?.instNumber,is_current:s.isCurrent,language:c};return this.http.post(o,h)}removeEducation(s){let c=z.backendApiV2+"1.0.0/client/candidate_education/"+s;return this.http.delete(c)}updateEducation(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate_education/"+s,g={comments:c.comments,from_date:c.fromDate,to_date:c.toDate,is_current:c.isCurrent,language:o};return this.http.put(h,g)}getEducationOccupationSuggestions(s){let c=z.backendApi+"api/1.1.0/educations/suggestions/occupation/"+s;return this.http.get(c)}saveUnknownEducation(s){let c=z.backendApiV2+"1.0.0/client/education/save_unknown_education",o={education_name:s};return this.http.post(c,o)}saveEducationV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_education",h={comments:s.comments,education_disced_15:s.education_disced_15,from_date:s.from_date,to_date:s.to_date,institution_number:s.institution_number,is_current:s.is_current,language:c};return this.http.post(o,h)}}class ex{constructor(s=He){this.http=s}getAllLanguages(){let s=z.backendApi+"api/1.1.0/languages";return this.http.get(s)}saveLanguage(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_language",h={language_id:c.id,level:s};return this.http.post(o,h)}updateLanguage(s,c,o){let h=z.backendApiV2+"1.0.0/client/candidate_language/"+s,g={level:c};return this.http.put(h,g)}removeLanguage(s){let c=z.backendApiV2+"1.0.0/client/candidate_language/"+s;return this.http.delete(c)}saveLanguageV2(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_language",h={language_id:c,level:s};return this.http.post(o,h)}}class tx{constructor(s=He){this.http=s}searchForQualification(s){let c=z.backendApi+"api/1.1.0/qualifications/type/3/search/"+s;return this.http.get(c)}updateQualification(s,c){let o=z.backendApiV2+"1.0.0/client/candidate_qualification/"+s,h={level:c};return this.http.put(o,h)}saveQualification(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification",o={level:s.level,qualification_id:s.qualification.id};return this.http.post(c,o)}removeQualification(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification/"+s;return this.http.delete(c)}getQualificationsOccupationSuggestions(s,c){let o=z.backendApi+"api/1.1.0/qualifications/type/"+c+"/suggestions/occupation/"+s;return this.http.get(o)}addUnknownQualification(s){let c=z.backendApi+"api/1.1.0/qualifications/type/3/fromCandidate",o={name:s,type:3};return this.http.post(c,o)}saveQualificationV2(s){let c=z.backendApiV2+"1.0.0/client/candidate_qualification",o={level:s.level,qualification_id:s.qualification_id};return this.http.post(c,o)}}class ax{constructor(s=He){this.http=s}addUnknownOccupation(s){let c=z.backendApi+"api/1.1.0/occupations/fromCandidate",o={name:s};return this.http.post(c,o)}}class lx{constructor(s=He){this.http=s}saveUnknownInstitution(s){let c=z.backendApiV2+"1.0.0/client/institution/save_unknown_institution",o={institution_name:s};return this.http.post(c,o)}}class nx{constructor(s=new al,c=new F1,o=new $1,h=new Ss,g=new K1,M=new P1,H=new tx,R=new W1,j=new ex,B=new I1,T=new mm,V=new ax,J=new lx,P=Jl){this.candidateService=s,this.cvService=c,this.cvUploadService=o,this.subscriptionService=h,this.aiHandlerService=g,this.educationService=M,this.qualificationService=H,this.certificationService=R,this.languageService=j,this.driverLicenseService=B,this.escoService=T,this.occupationService=V,this.institutionService=J,this.localStorageService=P}escosCache=null;async getSnapshot(){const[s,c,o,h,g,M,H,R,j,B]=await Promise.allSettled([this.candidateService.getCandidate(),this.candidateService.getCandidatesExperiences(),this.candidateService.getCandidatesEducations(),this.candidateService.getCandidatesQualifications(),this.candidateService.getCandidatesCertifications(),this.candidateService.getCandidatesLanguages(),this.candidateService.getCandidatesDriverLicenses(),this.subscriptionService.getPaymentOverview(),this.cvUploadService.getCvUploadData(),this.aiHandlerService.getMyCvDescriptions()]);return{candidate:s.status==="fulfilled"?s.value:null,experiences:c.status==="fulfilled"?c.value:[],educations:o.status==="fulfilled"?o.value:[],skills:h.status==="fulfilled"?h.value:[],certifications:g.status==="fulfilled"?g.value:[],languages:M.status==="fulfilled"?M.value:[],driverLicenses:H.status==="fulfilled"?H.value:[],paymentOverview:R.status==="fulfilled"?R.value:null,cvUploadData:j.status==="fulfilled"?j.value:null,aiGeneratedCVDescription:B.status==="fulfilled"&&B.value?.id?B.value:null}}async setActiveSeeker(s,c,o){const h={...s,isActive:c};return this.candidateService.updateCandidate(h,o)}async updateCandidate(s,c){return this.candidateService.updateCandidate(s,c)}async generateCv(s){await this.cvService.generateCv(s)}async getCvDownloadUrl(s){return(await this.cvService.getMyCvV2(s)).url}async uploadCv(s,c){const o=await this.localStorageService.getAuthToken();if(!o)throw new Error("No auth token found.");await this.cvUploadService.uploadCv({base_64_cv_file:s,cv_file_type:c},o)}async optimizeCv(s){await this.aiHandlerService.updateMyCvDescriptions(s)}async updateExperience(s,c){await this.candidateService.updateExperience(s,c)}async updateEducation(s,c){const o={comments:s.comments,education:s.education,institution:s.institution,fromDate:new Date(s.fromDate),toDate:new Date(s.toDate),isCurrent:s.isCurrent};await this.educationService.updateEducation(s.id,o,c)}async updateCertification(s){await this.certificationService.updateCertification(s)}async updateLanguage(s){const c={id:s.language.id,isO639:s.language.isO639,name:s.language.name,ownName:s.language.ownName,priority:s.language.priority};await this.languageService.updateLanguage(s.id,s.level,c)}async removeExperience(s){await this.candidateService.removeExperience(s)}async removeEducation(s){await this.educationService.removeEducation(s)}async removeQualification(s){await this.qualificationService.removeQualification(s)}async removeCertification(s){await this.certificationService.removeCertification(s)}async removeLanguage(s){await this.languageService.removeLanguage(s)}async removeDriverLicense(s){await this.driverLicenseService.removeLanguage(s)}async getEscoSuggestions(s,c=25){this.escosCache||(this.escosCache=await this.escoService.listAllEscos());const o=s.trim().toLowerCase();return o?this.escosCache.filter(h=>h.preferedLabelDa.toLowerCase().includes(o)).slice(0,c):this.escosCache.slice(0,c)}async getLanguageOptions(){return(await this.languageService.getAllLanguages()).allLanguages??[]}async getDriverLicenseOptions(){return this.driverLicenseService.getAllDriverLicenses()}async createExperience(s,c){let o=s.escoId??null;if(!o&&s.occupationName?.trim()&&(o=(await this.occupationService.addUnknownOccupation(s.occupationName.trim())).id),!o)throw new Error("Vælg eller opret en stilling først.");await this.candidateService.saveExperienceV2({companyName:s.companyName,comments:s.comments,fromDate:s.fromDate,toDate:s.toDate,isCurrent:s.isCurrent,escoId:o},c)}async createEducation(s,c){let o=s.educationDisced15??null;if(!o&&s.educationName?.trim()&&(o=(await this.educationService.saveUnknownEducation(s.educationName)).disced15),!o)throw new Error("Vælg eller opret en uddannelse først.");let h=s.institutionNumber;!h&&s.institutionName?.trim()&&(h=(await this.institutionService.saveUnknownInstitution(s.institutionName.trim())).inst_number),await this.educationService.saveEducationV2({comments:s.comments,institution_number:h,from_date:s.fromDate,to_date:s.toDate,education_disced_15:o,is_current:s.isCurrent},c)}async createCertification(s){let c=s.certificateId??null;if(!c&&s.certificateName?.trim()&&(c=(await this.certificationService.addUnknownCertificate(s.certificateName.trim())).certificate_id),!c)throw new Error("Vælg eller opret et certifikat først.");await this.certificationService.saveCertification(c)}async createLanguage(s,c){await this.languageService.saveLanguageV2(c,s)}async getQualificationSuggestions(s){const c=s.trim();return c?this.qualificationService.searchForQualification(c):[]}async createQualification(s){let c=s.qualificationId?.trim()||"";if(!c&&s.qualificationName?.trim()&&(c=(await this.qualificationService.addUnknownQualification(s.qualificationName.trim())).id),!c)throw new Error("Vælg eller opret en kvalifikation først.");await this.qualificationService.saveQualificationV2({qualification_id:c,level:s.level})}async getEducationSuggestions(s){const c=s.trim();return c?this.educationService.searchForEducations(c):[]}async getSchoolSuggestions(s){const c=s.trim();return c?this.educationService.searchForSchools(c):[]}async getCertificationSuggestions(s){const c=s.trim();return c?this.certificationService.searchForCertification(c):[]}async createDriverLicense(s,c){await this.driverLicenseService.saveDriverLicenseV2(c,s)}}const ix={candidate:null,experiences:[],educations:[],skills:[],certifications:[],languages:[],driverLicenses:[],paymentOverview:null,cvUploadData:null,aiGeneratedCVDescription:null},sx=[{id:"e1",title:"Senior Frontend-udvikler",company:"Lunar",from:"2020-08-01",to:null,description:"Udvikling og vedligeholdelse af core-features i bankens app samt performance-optimering."},{id:"e2",title:"Web-udvikler",company:"Trustpilot",from:"2017-01-01",to:"2020-07-01",description:"Udviklede dashboards og analysevaerktojer i taet samarbejde med UX-teamet."}],rx=[{id:"ed1",title:"Cand.it i Webudvikling",school:"IT-Universitetet i Kobenhavn",from:"2013-08-01",to:"2015-06-01",description:"Specialisering i webteknologier, databaser og brugercentreret design."},{id:"ed2",title:"Datamatiker",school:"KEA - Kobenhavns Erhvervsakademi",from:"2010-08-01",to:"2013-06-01",description:"Softwarekonstruktion, systemarkitektur og programmering i Java og C#."}];function bs(u){if(!u)return null;const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?null:s}function Vh(u){const s=bs(u);return s?new Intl.DateTimeFormat("da-DK",{month:"short",year:"numeric"}).format(s):"Ukendt"}function Hh(u,s,c){const o=Vh(u),h=c?"Nu":Vh(s);return`${o} - ${h}`}function cx(u){const s=bs(u);return s?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"long",year:"numeric"}).format(s):"Ikke angivet"}function Bh(u){return[...u].sort((s,c)=>{const o=bs(s.fromDate)?.getTime()??0;return(bs(c.fromDate)?.getTime()??0)-o})}function ox(u){return u.qualification?.name||"Kvalifikation"}function ux(u){return u.qualification?.name||u.levelName||"Certificering"}function dx(u){return u.driversLicense?.name||u.levelName||"Korekort"}function fx(u){return u.levelName||"Niveau ukendt"}function hx({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new nx,[]),[g,M]=_.useState("standard"),[H,R]=_.useState(ix),[j,B]=_.useState(!0);_.useEffect(()=>{let D=!0;return h.getSnapshot().then($=>{D&&R($)}).finally(()=>{D&&B(!1)}),()=>{D=!1}},[h]);const T=H.candidate,V=T?.firstName?.trim()||T?.name?.trim()||"Lasse",J=T?.firstName||"Lasse",P=T?.lastName||"Hansen",X=T?.imageUrl||T?.image||"",he=H.experiences.length>0?Bh(H.experiences):[],ie=H.educations.length>0?Bh(H.educations):[],ne=H.skills,Y=H.languages,K=H.certifications,ee=H.driverLicenses,Z=Y.length>0?Y.map(D=>({id:D.id,name:D.language?.name||"Sprog",level:fx(D)})):[{id:"da",name:"Dansk",level:"Modersmal"},{id:"en",name:"Engelsk",level:"Flydende"}];return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"cv",onNavigate:s}),l.jsxs("main",{className:`dash-main custom-scrollbar cv-page ${g==="reference"?"cv-design-reference":""}`,children:[l.jsx(Qt,{name:V,imageUrl:X||void 0,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("button",{type:"button",className:"cv-design-toggle",onClick:()=>M(D=>D==="standard"?"reference":"standard"),children:[g==="reference"?l.jsx(sm,{size:16,strokeWidth:1.8}):l.jsx(rm,{size:16,strokeWidth:1.8}),l.jsx("span",{children:g==="reference"?"Skift til standard design":"Skift til reference design"})]})}),l.jsxs("div",{className:"cv-head",children:[l.jsxs("div",{children:[l.jsx("h1",{children:"Dit CV"}),l.jsx("p",{children:"Handter dine faglige oplysninger, erfaringer og uddannelser."})]}),l.jsxs("button",{type:"button",className:"cv-edit-btn",children:[l.jsx(Ov,{size:16,strokeWidth:1.8})," Rediger CV"]})]}),j?l.jsx("p",{className:"dash-loading",children:"Indlaeser CV..."}):null,l.jsxs("div",{className:"cv-layout",children:[l.jsxs("div",{className:"cv-left",children:[l.jsxs("article",{className:"cv-card",children:[l.jsx("div",{className:"cv-avatar-wrap",children:X?l.jsx("img",{src:X,alt:V,className:"cv-avatar"}):l.jsx("div",{className:"cv-avatar cv-avatar-fallback",children:V.slice(0,1).toUpperCase()})}),l.jsxs("div",{className:"cv-section-head",children:[l.jsx(ql,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Personlige oplysninger"})]}),l.jsxs("div",{className:"cv-personal-list",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Fornavn"}),l.jsx("strong",{children:J})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Efternavn"}),l.jsx("strong",{children:P})]}),l.jsxs("div",{children:[l.jsx("span",{children:"E-mail"}),l.jsx("strong",{children:T?.email||"lasse@eksempel.dk"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Telefon"}),l.jsx("strong",{children:T?.phoneNumber||"+45 12 34 56 78"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Fodselsdato"}),l.jsx("strong",{children:cx(T?.birthday)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kon"}),l.jsx("strong",{children:T?.gender||"Mand"})]})]})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(po,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Kvalifikationer"})]}),l.jsx("div",{className:"cv-chip-wrap",children:(ne.length>0?ne.map(ox):["HTML & CSS","Tailwind CSS","JavaScript","React","UI/UX Design"]).slice(0,12).map(D=>l.jsx("span",{className:"cv-chip",children:D},D))})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(js,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Sprog"})]}),l.jsx("div",{className:"cv-language-list",children:Z.map(D=>l.jsxs("div",{children:[l.jsx("strong",{children:D.name}),l.jsx("span",{children:D.level})]},D.id))})]}),l.jsxs("div",{className:"cv-mini-grid",children:[l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(em,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Certificeringer"})]}),l.jsxs("ul",{className:"cv-list",children:[(K.length>0?K:[]).slice(0,4).map(D=>l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," ",ux(D)]},D.id)),K.length===0?l.jsxs(l.Fragment,{children:[l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," AWS Certified Developer"]}),l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8})," Certificeret Scrum Master"]})]}):null]})]}),l.jsxs("article",{className:"cv-card",children:[l.jsxs("div",{className:"cv-section-head",children:[l.jsx(am,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Korekort"})]}),l.jsx("div",{className:"cv-chip-wrap",children:(ee.length>0?ee.map(dx):["B (Almindelig bil)","A (Motorcykel)"]).map(D=>l.jsx("span",{className:"cv-chip",children:D},D))})]})]})]}),l.jsxs("div",{className:"cv-right",children:[l.jsxs("section",{children:[l.jsxs("div",{className:"cv-timeline-head",children:[l.jsx("div",{className:"cv-timeline-icon",children:l.jsx(go,{size:19,strokeWidth:1.8})}),l.jsx("h2",{children:"Erhvervserfaring"})]}),l.jsx("div",{className:"cv-timeline",children:(he.length>0?he:sx).map((D,$)=>{const de="occupation"in D?D.occupation?.name||"Stilling":D.title,te="companyName"in D?D.companyName:D.company,oe="comments"in D?D.comments:D.description,ue="fromDate"in D?D.fromDate:D.from,Ae="toDate"in D?D.toDate:D.to,Ne="isCurrent"in D?!!D.isCurrent:!1;return l.jsxs("article",{className:"cv-timeline-item",children:[l.jsx("div",{className:"cv-timeline-dot",children:l.jsx(ro,{size:15,strokeWidth:1.8})}),l.jsxs("div",{className:"cv-timeline-card",children:[l.jsx("h3",{children:de}),l.jsxs("div",{className:"cv-meta",children:[l.jsx("strong",{children:te}),l.jsx("span",{children:Hh(ue,Ae,Ne)})]}),l.jsx("p",{children:oe||"Ingen beskrivelse."})]})]},"id"in D?String(D.id):`exp-${$}`)})})]}),l.jsx("div",{className:"cv-divider"}),l.jsxs("section",{children:[l.jsxs("div",{className:"cv-timeline-head",children:[l.jsx("div",{className:"cv-timeline-icon",children:l.jsx(im,{size:19,strokeWidth:1.8})}),l.jsx("h2",{children:"Uddannelse"})]}),l.jsx("div",{className:"cv-timeline",children:(ie.length>0?ie:rx).map((D,$)=>{const de="education"in D?D.education?.name||"Uddannelse":D.title,te="institution"in D?D.institution?.name||"Institution":D.school,oe="comments"in D?D.comments:D.description,ue="fromDate"in D?D.fromDate:D.from,Ae="toDate"in D?D.toDate:D.to,Ne="isCurrent"in D?!!D.isCurrent:!1;return l.jsxs("article",{className:"cv-timeline-item",children:[l.jsx("div",{className:"cv-timeline-dot",children:l.jsx(ro,{size:15,strokeWidth:1.8})}),l.jsxs("div",{className:"cv-timeline-card",children:[l.jsx("h3",{children:de}),l.jsxs("div",{className:"cv-meta",children:[l.jsx("strong",{children:te}),l.jsx("span",{children:Hh(ue,Ae,Ne)})]}),l.jsx("p",{children:oe||"Ingen beskrivelse."})]})]},"id"in D?String(D.id):`edu-${$}`)})})]})]})]})]})]})}class mx{constructor(s=He){this.http=s}getNotificationSetting(){const s=z.backendApiV2+"2.0.0/client/notification/settings";return this.http.get(s)}createNotificationSetting(s){const c=z.backendApiV2+"2.0.0/client/notification/settings";return this.http.post(c,s)}updateNotificationSetting(s,c){const o=z.backendApiV2+"2.0.0/client/notification/settings/"+s;return this.http.put(o,c)}deleteNotificationSetting(s){const c=z.backendApiV2+"2.0.0/client/notification/settings/"+s;return this.http.delete(c)}getNewNotificationCount(){let s=z.backendApiV2+"1.0.0/client/notification/unseen_notifications";return this.http.get(s)}getNotifications(s,c){let o=z.backendApiV2+"1.0.0/client/notification/"+s+"/"+c;return this.http.get(o)}notificationSeenByUser(s){let c=z.backendApiV2+"1.0.0/client/notification/seen_by_user/"+s,o={};return this.http.put(c,o)}}class xo{constructor(s=He,c=Jl){this.http=s,this.localStorage=c}listSimulationPersonalities(){let s=z.backendApiV2+"client/simulation/1.0.0/list_simulation_personalities",c=new tl().set("language","da");return this.http.get(s,{params:c})}getInterviewEvaluation(s){const c=z.backendApiV2+`client/simulation/1.0.0/interview_evaluation/${s}`;return this.http.get(c)}listInterviews(s=20,c=0){const o=z.backendApiV2+"client/job_simulator/1.0.0/list_interviews",h=new tl().set("limit",s.toString()).set("offset",c.toString());return this.http.get(o,{params:h})}submitEvaluationRating(s,c,o){const h=z.backendApiV2+"client/simulation/1.0.0/evaluation_rating",g={interview_id:s,rating:c,rating_text:o};return this.http.post(h,g)}submitInterviewRating(s,c,o){const h=z.backendApiV2+"client/simulation/1.0.0/interview_rating",g={interview_id:s,rating:c,rating_text:o};return this.http.post(h,g)}}class gx{constructor(s=He){this.http=s}chatMessageThreads=[];getChatMessages(){let s=z.backendApi+"api/1.1.0/chatMessages/forCandidate/";return this.http.get(s)}sendMessage(s){let c=z.backendApi+"api/1.1.0/chatMessages/"+s.threadId+"/fromCandidate";return this.http.post(c,s)}markThreadRead(s){let c=z.backendApi+"api/1.1.0/chatMessages/markRead/"+s;return this.http.get(c)}}class px{constructor(s=He){this.http=s}getUnreadMessages(){let s=z.backendApi+"api/1.1.0/chatMessages/getUnreadCount";return this.http.get(s)}}function vs(u){if(!u)return 0;const c=(u instanceof Date?u:new Date(u)).getTime();return Number.isNaN(c)?0:c}function Pc(u,s){const c=u?.timeSent?new Date(u.timeSent):new Date,o=u?.seen?new Date(u.seen):void 0;return{id:u?.id,threadId:u?.threadId??s,timeSent:c,fromCandidate:!!u?.fromCandidate,text:u?.text??"",seen:o}}class pm{constructor(s=new gx,c=new px,o=new al){this.chatMessagesService=s,this.messageService=c,this.candidateService=o}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate(),c=s.firstName?.trim()||s.name?.trim()||"Lasse",o=s.imageUrl||s.image||void 0;return{name:c,imageUrl:o}}catch{return{name:"Lasse"}}}async getThreads(){return(await this.chatMessagesService.getChatMessages()??[]).map(c=>{const o=(c.allMessages??[]).map(g=>Pc(g,c.id));o.sort((g,M)=>vs(g.timeSent)-vs(M.timeSent));const h=c.latestMessage?Pc(c.latestMessage,c.id):o[o.length-1]??Pc(void 0,c.id);return{...c,allMessages:o,latestMessage:h}}).sort((c,o)=>vs(o.latestMessage?.timeSent)-vs(c.latestMessage?.timeSent))}async getUnreadCount(){const s=await this.messageService.getUnreadMessages();return Number(s?.unreadCount??0)}async sendMessage(s,c){const o={threadId:s,text:c.trim(),fromCandidate:!0,timeSent:new Date};return this.chatMessagesService.sendMessage(o)}async markThreadReadByMessageId(s){s&&await this.chatMessagesService.markThreadRead(s)}}function Zn(u){return typeof u=="object"&&u!==null?u:null}function Ot(u){return typeof u=="string"?u:""}function vx(u){return typeof u=="number"?u:null}function xx(u){const s=Zn(u);if(!s)return null;const o=Zn(s.jobPosting)??s,h=Ot(o.id);return h?{id:h,title:Ot(o.title),companyName:Ot(o.companyName),address:Ot(o.address),applicationDeadline:Ot(o.applicationDeadline),candidateDistance:vx(o.candidateDistance),fromJobnet:!!o.fromJobnet,logoUrl:Ot(o.logoUrl),companyLogoImage:Ot(o.companyLogoImage)}:null}function bx(u){const s=Zn(u);return(Array.isArray(s?.interviews)?s.interviews:[]).map(o=>{const h=Zn(o);if(!h)return null;const g=Ot(h.id);return g?{id:g,jobName:Ot(h.job_name)||"Interview",companyName:Ot(h.company_name)||null,interviewDate:Ot(h.interview_date)||null,recommendation:Ot(h.recommendation)||null,isCompleted:!!h.is_completed}:null}).filter(o=>!!o).sort((o,h)=>{const g=o.interviewDate?new Date(o.interviewDate).getTime():0;return(h.interviewDate?new Date(h.interviewDate).getTime():0)-g}).slice(0,5)}function yx(u){const s=Zn(u);return s?Array.isArray(s.searchList)?s.searchList:[]:[]}class jx{constructor(s=new al,c=new mx,o=new vo,h=new Ss,g=new xo,M=new pm){this.candidateService=s,this.notificationService=c,this.jobService=o,this.subscriptionService=h,this.simulationService=g,this.messagesViewModel=M}async loadInitialData(){const[s,c,o,h,g,M]=await Promise.allSettled([this.candidateService.getCandidate(),this.notificationService.getNotifications(0,5),this.messagesViewModel.getThreads(),this.loadBestJobs(),this.subscriptionService.getPaymentOverview(),this.simulationService.listInterviews(5,0)]);return{candidate:s.status==="fulfilled"?s.value:null,notifications:c.status==="fulfilled"?c.value.slice(0,5):[],messages:o.status==="fulfilled"?o.value.slice(0,5):[],bestJobs:h.status==="fulfilled"?h.value:[],subscription:g.status==="fulfilled"?g.value:null,evaluations:M.status==="fulfilled"?bx(M.value):[]}}async loadBestJobs(){const s=await this.jobService.getJobsV2(10,0,5,[]);return yx(s).map(o=>xx(o)).filter(o=>!!o).slice(0,5)}}const Nx={bestJobs:[],candidate:null,evaluations:[],messages:[],notifications:[],subscription:null};function qh(u){return u.trim().slice(0,1).toUpperCase()||"A"}function Sx({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new jx,[]),[M,H]=_.useState(Nx),[R,j]=_.useState(!0);_.useEffect(()=>{let V=!0;return g.loadInitialData().then(J=>{V&&H(J)}).finally(()=>{V&&j(!1)}),()=>{V=!1}},[g]);const B=M.candidate?.firstName?.trim()||M.candidate?.name?.trim()||"Lasse",T=M.candidate?.imageUrl||M.candidate?.image||"";return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"dashboard",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:B,imageUrl:T||void 0,onLogout:u,theme:h,onToggleTheme:o}),l.jsxs("div",{className:"dash-welcome",children:[l.jsxs("h1",{children:["Velkommen tilbage ",B," ",l.jsx("span",{children:"👋"})]}),l.jsx("p",{children:"Her er, hvad der sker med din jobsøgning i dag."})]}),R?l.jsx("p",{className:"dash-loading",children:"Indlaeser dashboard..."}):null,l.jsxs("div",{className:"dash-grid",children:[l.jsxs("div",{className:"dash-grid-main",children:[l.jsxs("article",{className:"dash-card",children:[l.jsx("div",{className:"dash-card-head",children:l.jsx("h2",{children:"Anbefalet til dig"})}),l.jsx("div",{className:"dash-job-list",children:(M.bestJobs.length>0?M.bestJobs:[{id:"d1",title:"Senior Frontend-udvikler",companyName:"Lunar",address:"Kobenhavn, DK",applicationDeadline:"",candidateDistance:null,fromJobnet:!1,logoUrl:"",companyLogoImage:""},{id:"d2",title:"React-udvikler",companyName:"Pleo",address:"Remote",applicationDeadline:"",candidateDistance:null,fromJobnet:!1,logoUrl:"",companyLogoImage:""}]).slice(0,5).map(V=>l.jsxs("div",{className:"dash-job-item",role:"button",tabIndex:0,onClick:()=>c(V.id,!!V.fromJobnet,"dashboard"),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),c(V.id,!!V.fromJobnet,"dashboard"))},children:[l.jsxs("div",{className:"dash-job-left",children:[l.jsx("div",{className:"dash-company-chip",children:qh(V.companyName)}),l.jsxs("div",{children:[l.jsx("h4",{children:V.title}),l.jsxs("p",{children:[V.companyName," • ",V.address||"Lokation ikke angivet"]})]})]}),l.jsx("button",{type:"button",className:"dash-job-arrow-btn","aria-label":"Se job",onClick:J=>{J.stopPropagation(),c(V.id,!!V.fromJobnet,"dashboard")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]},V.id))})]}),l.jsxs("div",{className:"dash-split-grid",children:[l.jsxs("article",{className:"dash-card",children:[l.jsx("h3",{children:"Seneste beskeder"}),l.jsxs("div",{className:"dash-message-list",children:[(M.messages.length>0?M.messages:[]).slice(0,5).map(V=>l.jsxs("div",{className:"dash-message-item",children:[l.jsx("div",{className:"dash-avatar",children:qh(V.companyName||"A")}),l.jsxs("div",{children:[l.jsx("h4",{children:V.companyName||"Samtale"}),l.jsx("p",{children:V.latestMessage?.text||"Ingen besked endnu"})]})]},V.id)),M.messages.length===0?l.jsx("p",{className:"dash-muted",children:"Ingen beskeder endnu."}):null]})]}),l.jsxs("article",{className:"dash-card",children:[l.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[l.jsx("h3",{children:"Seneste simuleringer"}),l.jsx("button",{type:"button",className:"dash-icon-btn",children:l.jsx(Gv,{size:16,strokeWidth:1.8})})]}),l.jsxs("div",{className:"dash-sim-list",children:[l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon teal",children:l.jsx(io,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Teknisk samtale"}),l.jsx("p",{children:"Frontend-fokus"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"92/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"92%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon purple",children:l.jsx(b1,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Kulturelt match"}),l.jsx("p",{children:"Lunar Bank"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"88/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"88%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon amber",children:l.jsx(Jv,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Systemdesign"}),l.jsx("p",{children:"Arkitektur"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{className:"warn",children:"65/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{className:"warn",style:{width:"65%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon blue",children:l.jsx(io,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"Live-kodning"}),l.jsx("p",{children:"React.js"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{children:"95/100"}),l.jsx("div",{className:"dash-progress",children:l.jsx("span",{style:{width:"95%"}})})]})]}),l.jsxs("div",{className:"dash-sim-item",children:[l.jsxs("div",{className:"dash-sim-left",children:[l.jsx("span",{className:"dash-sim-icon gray",children:l.jsx(om,{size:16,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h4",{children:"HR-screening"}),l.jsx("p",{children:"Generelt"})]})]}),l.jsxs("div",{className:"dash-sim-right",children:[l.jsx("strong",{className:"na",children:"N/A"}),l.jsx("div",{className:"dash-progress"})]})]})]})]})]})]}),l.jsxs("div",{className:"dash-grid-side",children:[l.jsxs("article",{className:"dash-card dash-ai-card dash-ai-card-group",children:[l.jsx("div",{className:"dash-ai-peel"}),l.jsxs("div",{className:"dash-ai-content",children:[l.jsxs("div",{className:"dash-ai-head",children:[l.jsx(Kn,{size:22,strokeWidth:1.8}),l.jsx("h3",{children:"AI-indsigter til dit CV"})]}),l.jsx("p",{children:"Vi analyserede dit seneste CV op imod dine målroller."}),l.jsxs("ul",{className:"dash-ai-list",children:[l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(vp,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Kvantificer dine resultater"}),l.jsx("small",{children:'Tilføj tal til din rolle hos TechCorp (f.eks. \\"Forbedrede loadhastighed med 40%\\").'})]})]}),l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(mp,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Omorganiser dine færdigheder"}),l.jsx("small",{children:"Flyt React & TypeScript til toppen baseret på aktive Jobagenter."})]})]}),l.jsxs("li",{className:"dash-ai-item",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(Ip,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Tilføj manglende nøgleord"}),l.jsx("small",{children:'Inkluder \\"Tailwind CSS\\" for at matche 85% af dine anbefalede jobs.'})]})]}),l.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(dm,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Omskriv dit resumé"}),l.jsx("small",{children:"Gør din målsætning mere handlingsorienteret."})]})]}),l.jsxs("li",{className:"dash-ai-item dash-ai-xl-only",children:[l.jsx("span",{className:"dash-ai-item-icon",children:l.jsx(pv,{size:13,strokeWidth:2})}),l.jsxs("div",{children:[l.jsx("strong",{children:"Opdater porteføljelink"}),l.jsx("small",{children:"Dit GitHub-link gav en 404-fejl i vores test."})]})]})]}),l.jsx("button",{type:"button",children:"Anvend alle ændringer"})]})]}),l.jsxs("article",{className:"dash-card",children:[l.jsxs("div",{className:"dash-card-head dash-card-head-inline",children:[l.jsx("h3",{children:"Aktive Jobagenter"}),l.jsx("button",{type:"button",className:"dash-icon-btn",children:l.jsx(um,{size:16,strokeWidth:1.8})})]}),l.jsxs("div",{className:"dash-agent-list",children:[l.jsxs("div",{className:"dash-agent-item",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsxs("small",{children:[l.jsx(Xn,{size:13,strokeWidth:1.8})," Kobenhavn"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox",defaultChecked:!0}),l.jsx("span",{})]})]}),l.jsxs("div",{className:"dash-agent-item",children:[l.jsxs("div",{children:[l.jsx("span",{children:"React-udvikler"}),l.jsxs("small",{children:[l.jsx(co,{size:13,strokeWidth:1.8})," Remote (EU)"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox",defaultChecked:!0}),l.jsx("span",{})]})]}),l.jsxs("div",{className:"dash-agent-item muted",children:[l.jsxs("div",{children:[l.jsx("span",{children:"UI/UX-designer"}),l.jsxs("small",{children:[l.jsx(Xn,{size:13,strokeWidth:1.8})," Aarhus"]})]}),l.jsxs("label",{className:"dash-switch",children:[l.jsx("input",{type:"checkbox"}),l.jsx("span",{})]})]})]}),l.jsx("button",{type:"button",className:"dash-outline-btn",children:"Opret ny agent"})]})]})]})]})]})}function fe({className:u,icon:s,style:c}){return l.jsx("iconify-icon",{className:u,icon:s,style:c})}function kx(){const[u,s]=_.useState(!1);return _.useEffect(()=>{if(!u)return;const c=document.body.style.overflow;document.body.style.overflow="hidden";function o(h){h.key==="Escape"&&s(!1)}return window.addEventListener("keydown",o),()=>{document.body.style.overflow=c,window.removeEventListener("keydown",o)}},[u]),_.useEffect(()=>{function c(){window.innerWidth>990&&s(!1)}return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),l.jsxs("div",{className:"homepage-react-root scroll-smooth bg-[#f8fafc] relative min-h-screen text-gray-600 selection:bg-teal-100 selection:text-teal-900 overflow-x-hidden flex flex-col font-normal custom-scrollbar",children:[l.jsx("div",{className:"fixed top-[-15%] left-[-10%] w-[60vw] h-[60vw] rounded-full bg-gradient-to-br from-teal-400/30 to-emerald-300/10 blur-[140px] pointer-events-none z-0"}),l.jsx("div",{className:"fixed bottom-[-15%] right-[-10%] w-[70vw] h-[70vw] rounded-full bg-gradient-to-tl from-indigo-500/20 to-purple-400/10 blur-[160px] pointer-events-none z-0"}),l.jsx("div",{className:"fixed top-[20%] right-[15%] w-[40vw] h-[40vw] rounded-full bg-gradient-to-tr from-cyan-400/20 to-blue-300/10 blur-[130px] pointer-events-none z-0"}),l.jsxs("nav",{className:"homepage-nav fixed top-0 inset-x-0 z-50 h-16 bg-white/20 backdrop-blur-2xl border-b border-white/50 shadow-[0_4px_30px_rgba(0,0,0,0.03)] flex items-center justify-between px-6 lg:px-12 transition-all",children:[l.jsxs("a",{href:"#",className:"flex items-center gap-2 group outline-none",children:[l.jsxs("svg",{viewBox:"0 0 100 100",className:"w-8 h-8 rounded-lg shadow-[0_4px_15px_rgba(49,103,201,0.2)] group-hover:shadow-[0_6px_20px_rgba(49,103,201,0.3)] transition-all group-hover:scale-105",children:[l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"navLogoBg",x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",stopColor:"#1A9A75"}),l.jsx("stop",{offset:"100%",stopColor:"#3167C9"})]}),l.jsxs("linearGradient",{id:"navLogoFg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",stopColor:"#6ACEEB"}),l.jsx("stop",{offset:"100%",stopColor:"#46D3B6"})]})]}),l.jsx("rect",{width:"100",height:"100",fill:"url(#navLogoBg)"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 60 15 L 72 15 L 72 85 L 60 85 L 60 72.98 A 28 28 0 1 1 60 27.02 Z M 44 34 A 16 16 0 1 0 44 66 A 16 16 0 1 0 44 34 Z",fill:"url(#navLogoFg)"})]}),l.jsx("span",{className:"text-xl font-normal tracking-tight text-gray-900 uppercase",children:"ARBEJD"})]}),l.jsxs("div",{className:"homepage-nav-links flex items-center gap-8",children:[l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Sådan virker det"}),l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Gratis hjælp"}),l.jsx("a",{href:"#",className:"text-base font-normal text-gray-600 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Priser"})]}),l.jsxs("div",{className:"homepage-nav-actions flex items-center gap-4",children:[l.jsx("a",{href:"#",className:"hidden sm:block text-base font-normal text-gray-700 hover:text-gray-900 transition-colors outline-none drop-shadow-sm",children:"Log ind"}),l.jsx("a",{href:"#",className:"text-base font-normal text-white bg-gradient-to-r from-gray-900 to-gray-800 hover:from-gray-800 hover:to-gray-700 px-5 py-2.5 rounded-full transition-all shadow-[0_4px_15px_rgba(0,0,0,0.1)] outline-none border border-gray-700",children:"Opret dig"})]}),l.jsx("button",{type:"button",className:"homepage-nav-hamburger","aria-expanded":u,"aria-label":u?"Luk menu":"Åbn menu",onClick:()=>s(c=>!c),children:l.jsx(fe,{icon:u?"solar:close-circle-linear":"solar:hamburger-menu-linear",className:"text-xl text-gray-800",style:{strokeWidth:1.8}})}),l.jsxs("div",{className:u?"homepage-nav-popup open":"homepage-nav-popup",children:[l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Sådan virker det"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Gratis hjælp"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Priser"}),l.jsx("a",{href:"#",onClick:()=>s(!1),children:"Log ind"}),l.jsx("a",{href:"#",className:"homepage-nav-popup-cta",onClick:()=>s(!1),children:"Opret dig"})]})]}),l.jsxs("main",{className:"flex-1 relative z-10 pt-16",children:[l.jsxs("section",{className:"relative pt-24 pb-32 px-6 lg:px-12 max-w-7xl mx-auto flex flex-col items-center text-center",children:[l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full max-w-4xl aspect-[2/1] bg-gradient-to-tr from-white/40 via-white/10 to-teal-50/30 backdrop-blur-3xl border border-white/60 rounded-[3rem] shadow-[0_8px_40px_rgba(0,0,0,0.06)] -z-10 animate-float-slow"}),l.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-gradient-to-r from-white/60 to-white/30 backdrop-blur-xl border border-white/80 text-teal-800 text-sm font-medium uppercase tracking-wider mb-8 shadow-[0_4px_20px_rgba(20,184,166,0.1)]",children:[l.jsx(fe,{icon:"solar:magic-stick-3-linear",className:"text-base",style:{strokeWidth:1.5}}),"Fremtidens rekruttering"]}),l.jsxs("h1",{className:"text-5xl md:text-6xl lg:text-7xl font-medium tracking-tight text-gradient mb-8 leading-tight max-w-4xl drop-shadow-sm",children:["Arbejd, Danmarks",l.jsx("br",{}),"Nye Jobportal"]}),l.jsx("p",{className:"text-xl md:text-2xl text-gray-600 mb-10 max-w-2xl font-normal leading-relaxed drop-shadow-sm",children:"Opdag drømmejobbet med kraften fra AI. Vi matcher dine færdigheder med de perfekte muligheder og hjælper dig hele vejen til samtalen."}),l.jsxs("button",{type:"button",className:"group relative inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 text-white rounded-full font-normal text-lg overflow-hidden shadow-[0_8px_25px_rgba(17,24,39,0.25)] hover:shadow-[0_12px_35px_rgba(17,24,39,0.35)] transition-all outline-none border border-gray-700 hover:-translate-y-0.5",children:[l.jsx("span",{className:"relative z-10",children:"Udforsk Arbejd.com"}),l.jsx(fe,{icon:"solar:arrow-right-linear",className:"text-xl group-hover:translate-x-1 transition-transform relative z-10",style:{strokeWidth:1.5}})]})]}),l.jsx("section",{className:"py-12 border-y border-white/40 bg-gradient-to-r from-white/10 via-white/30 to-white/10 backdrop-blur-xl shadow-[0_4px_30px_rgba(0,0,0,0.02)]",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[l.jsx("p",{className:"text-center text-sm font-medium text-gray-500 uppercase tracking-widest mb-8 drop-shadow-sm",children:"Stoles på af innovative virksomheder"}),l.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-16 opacity-60 grayscale hover:grayscale-0 transition-all duration-500",children:[l.jsx(fe,{icon:"solar:box-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:medal-ribbon-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:global-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:buildings-2-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:laptop-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}}),l.jsx(fe,{icon:"solar:database-linear",className:"text-3xl text-gray-800",style:{strokeWidth:1.5}})]})]})}),l.jsx("section",{className:"py-32 px-6 lg:px-12 max-w-7xl mx-auto",children:l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[l.jsxs("div",{className:"relative w-full aspect-square md:aspect-[4/3] lg:aspect-square flex items-center justify-center group",children:[l.jsxs("div",{className:"absolute w-[88%] h-[60%] top-[4%] left-[6%] bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-t-3xl rounded-b-xl shadow-[0_20px_50px_rgba(0,0,0,0.06)] overflow-hidden animate-float-slow z-0 flex flex-col transition-transform duration-700 group-hover:scale-[1.02]",children:[l.jsxs("div",{className:"w-full flex-1 p-3 flex flex-col relative bg-white/10",children:[l.jsx("div",{className:"h-3 w-full flex justify-center absolute top-2 left-0 z-20",children:l.jsx("div",{className:"w-1.5 h-1.5 bg-gray-800/30 rounded-full backdrop-blur-md shadow-inner"})}),l.jsxs("div",{className:"w-full h-full bg-white/40 backdrop-blur-xl border border-white/50 rounded-xl overflow-hidden relative shadow-sm",children:[l.jsx("div",{className:"absolute top-0 left-0 w-full h-8 bg-white/30 border-b border-white/40 flex items-center px-4",children:l.jsx("div",{className:"w-1/4 h-2 bg-gray-300/50 rounded-full"})}),l.jsxs("div",{className:"p-4 flex gap-4 mt-8 opacity-60",children:[l.jsx("div",{className:"w-1/3 h-16 bg-teal-200/20 rounded-lg"}),l.jsx("div",{className:"w-1/3 h-16 bg-indigo-200/20 rounded-lg"})]})]})]}),l.jsx("div",{className:"h-5 w-full bg-gradient-to-b from-white/90 to-gray-100/60 border-t border-white/80 rounded-b-xl relative shadow-md flex justify-center z-20",children:l.jsx("div",{className:"w-1/5 h-1 bg-gray-300/60 rounded-b-md mt-0.5"})})]}),l.jsxs("div",{className:"absolute w-[75%] h-[50%] top-[18%] left-[12.5%] bg-gradient-to-br from-white/80 to-white/30 backdrop-blur-3xl border border-white/90 rounded-2xl shadow-[0_30px_60px_rgba(0,0,0,0.08)] overflow-hidden animate-float-medium [animation-delay:-2s] z-10 transition-transform duration-700 group-hover:-translate-y-2",children:[l.jsxs("div",{className:"h-8 bg-gradient-to-r from-white/70 to-white/40 border-b border-white/70 flex items-center px-4 gap-2 backdrop-blur-2xl",children:[l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-red-400 shadow-sm"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-400 shadow-sm"}),l.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-400 shadow-sm"}),l.jsx("div",{className:"ml-4 w-1/2 h-4 bg-white/60 rounded-md border border-white/80 shadow-inner flex items-center px-2",children:l.jsx("div",{className:"w-1/3 h-1.5 bg-gray-300/60 rounded-full"})})]}),l.jsxs("div",{className:"p-5 h-full flex flex-col gap-3 relative",children:[l.jsx("div",{className:"w-1/3 h-4 bg-gray-300/40 rounded-md"}),l.jsx("div",{className:"w-2/3 h-3 bg-gray-200/40 rounded-md"}),l.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-3",children:[l.jsx("div",{className:"h-16 bg-gradient-to-br from-teal-100/50 to-white/40 border border-white/70 rounded-xl shadow-sm"}),l.jsx("div",{className:"h-16 bg-gradient-to-br from-indigo-100/50 to-white/40 border border-white/70 rounded-xl shadow-sm"})]}),l.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-14 h-14 bg-white rounded-2xl shadow-xl flex items-center justify-center border border-white/80",children:l.jsx(fe,{icon:"solar:layers-linear",className:"text-2xl text-teal-500",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"absolute w-[26%] h-[60%] bottom-[8%] left-[8%] bg-gradient-to-tr from-white/80 via-white/50 to-teal-50/50 backdrop-blur-3xl border border-white/90 rounded-[1.75rem] shadow-[0_25px_50px_rgba(0,0,0,0.12)] overflow-hidden animate-float-fast [animation-delay:-1s] z-20 flex flex-col transition-transform duration-700 group-hover:-translate-x-3 group-hover:-rotate-2",children:[l.jsx("div",{className:"h-5 w-full flex justify-center pt-2.5 relative z-10",children:l.jsx("div",{className:"w-2 h-2 bg-gray-800/40 rounded-full shadow-inner backdrop-blur-md"})}),l.jsxs("div",{className:"flex-1 p-2.5 flex flex-col gap-2.5 relative z-0 mt-1",children:[l.jsxs("div",{className:"w-full h-8 bg-white/70 border border-white/80 shadow-sm rounded-full flex items-center px-3 gap-2",children:[l.jsx(fe,{icon:"solar:magnifer-linear",className:"text-gray-400 text-xs"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2 mt-1",children:[l.jsx("div",{className:"aspect-square bg-gradient-to-br from-teal-400/30 to-cyan-400/20 rounded-xl border border-white/70 shadow-sm"}),l.jsx("div",{className:"aspect-square bg-gradient-to-br from-amber-400/30 to-orange-400/20 rounded-xl border border-white/70 shadow-sm"})]}),l.jsxs("div",{className:"w-full h-12 bg-white/80 backdrop-blur-xl rounded-xl border border-white/90 shadow-sm mt-auto mb-1 p-2 flex items-center gap-2",children:[l.jsx("div",{className:"w-6 h-6 rounded-full bg-gradient-to-tr from-teal-200 to-teal-100 flex-shrink-0"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]})]}),l.jsx("div",{className:"h-3 w-full flex justify-center pb-2",children:l.jsx("div",{className:"w-1/4 h-0.5 bg-gray-400/50 rounded-full"})})]}),l.jsxs("div",{className:"absolute w-[28%] h-[65%] bottom-[5%] right-[8%] bg-gradient-to-b from-white/80 to-white/40 backdrop-blur-3xl border border-white/90 rounded-[2rem] shadow-[0_30px_60px_rgba(0,0,0,0.15)] overflow-hidden animate-float-medium [animation-delay:-3s] z-30 flex flex-col transition-transform duration-700 group-hover:translate-x-3 group-hover:rotate-2",children:[l.jsx("div",{className:"h-5 w-full flex justify-center pt-1.5",children:l.jsx("div",{className:"w-1/3 h-3 bg-gray-900/20 rounded-full backdrop-blur-md"})}),l.jsxs("div",{className:"flex-1 p-3 flex flex-col gap-2.5 mt-1",children:[l.jsx("div",{className:"w-full h-8 bg-white/60 border border-white/70 shadow-sm rounded-lg"}),l.jsx("div",{className:"w-full h-20 bg-gradient-to-br from-indigo-400/30 to-purple-400/20 rounded-xl border border-white/70 shadow-sm"}),l.jsxs("div",{className:"w-full h-10 bg-white/80 backdrop-blur-xl rounded-xl border border-white/90 shadow-sm flex items-center px-2 gap-2",children:[l.jsx("div",{className:"w-5 h-5 rounded-full bg-gradient-to-tr from-indigo-200 to-indigo-100 flex-shrink-0"}),l.jsx("div",{className:"w-1/2 h-1.5 bg-gray-300/80 rounded-full"})]})]}),l.jsx("div",{className:"h-3 w-full flex justify-center pb-2",children:l.jsx("div",{className:"w-1/3 h-1 bg-gray-400/50 rounded-full"})})]})]}),l.jsxs("div",{className:"flex flex-col justify-center",children:[l.jsxs("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-6",children:["En intelligent genvej",l.jsx("br",{}),"til dit næste job"]}),l.jsx("p",{className:"text-lg text-gray-600 mb-10 font-normal leading-relaxed drop-shadow-sm",children:"Arbejd.com kombinerer det nyeste inden for kunstig intelligens med et intuitivt design, der gør din jobsøgning hurtigere, skarpere og mere succesfuld."}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(20,184,166,0.08)] hover:border-teal-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-teal-50 to-white border border-teal-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:document-text-linear",className:"text-2xl text-teal-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-understøttet CV-optimering"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Få skræddersyet dit CV til præcis den stilling du søger, så du altid står skarpest muligt."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(99,102,241,0.08)] hover:border-indigo-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-indigo-50 to-white border border-indigo-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:pen-new-square-linear",className:"text-2xl text-indigo-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI Ansøgninger"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Generer målrettede og personlige ansøgninger, der fanger arbejdsgiverens opmærksomhed."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(6,182,212,0.08)] hover:border-cyan-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-cyan-50 to-white border border-cyan-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:gamepad-linear",className:"text-2xl text-cyan-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-interview Simulator"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Øv dig til samtalen med vores AI. Få øjeblikkelig feedback og personlige anbefalinger."})]})]}),l.jsxs("div",{className:"group flex items-start gap-5 p-5 bg-gradient-to-br from-white/50 to-white/10 backdrop-blur-2xl border border-white/60 rounded-2xl shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:shadow-[0_12px_40px_rgba(245,158,11,0.08)] hover:border-amber-200/60 transition-all cursor-default",children:[l.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gradient-to-br from-amber-50 to-white border border-amber-100/50 shadow-sm flex items-center justify-center flex-shrink-0 group-hover:scale-105 transition-transform",children:l.jsx(fe,{icon:"solar:radar-linear",className:"text-2xl text-amber-600",style:{strokeWidth:1.5}})}),l.jsxs("div",{children:[l.jsx("h3",{className:"text-lg font-medium text-gray-900 tracking-tight mb-1",children:"AI-agenter søger for dig"}),l.jsx("p",{className:"text-base text-gray-600 font-normal",children:"Lad vores intelligente agenter overvåge markedet og finde det perfekte match til din profil."})]})]})]})]})]})}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Succeshistorier"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Se hvordan andre har brugt Arbejd til at lande drømmejobbet og starte næste kapitel i deres career."})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 relative z-10",children:[l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&q=80",alt:"Team",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6 relative",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"Simulatoren var en gamechanger. Jeg var super nervøs for min samtale, men feedbacken gav mig roen til at performe 100%."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=32",alt:"Sofie",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Sofie Jensen"}),l.jsx("p",{className:"text-sm text-teal-600 font-normal",children:"Landed job som Marketing Manager"})]})]})]})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1552664730-d307ca884978?w=800&q=80",alt:"Meeting",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"AI-ansøgningerne sparede mig timevis af arbejde. Det ramte den professionelle tone perfekt fra første forsøg."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=12",alt:"Mikkel",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Mikkel Larsen"}),l.jsx("p",{className:"text-sm text-indigo-600 font-normal",children:"Landed job som Frontend Udvikler"})]})]})]})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl overflow-hidden shadow-[0_8px_30px_rgba(0,0,0,0.04)] hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all group md:col-span-2 lg:col-span-1",children:[l.jsxs("div",{className:"aspect-video bg-gray-100 relative overflow-hidden",children:[l.jsx("img",{src:"https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=800&q=80",alt:"Success",className:"w-full h-full object-cover opacity-80 group-hover:scale-105 transition-transform duration-700"}),l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-gray-900/40 to-transparent flex items-center justify-center",children:l.jsx("button",{type:"button",className:"w-14 h-14 rounded-full bg-white/30 backdrop-blur-md border border-white/60 shadow-xl flex items-center justify-center text-white hover:scale-110 hover:bg-white/50 transition-all outline-none",children:l.jsx(fe,{icon:"solar:play-linear",className:"text-2xl ml-1",style:{strokeWidth:1.5}})})})]}),l.jsxs("div",{className:"p-6",children:[l.jsx("p",{className:"text-base text-gray-700 italic mb-6 leading-relaxed",children:'"Agenten fandt et job jeg aldrig selv ville have søgt på. Det viste sig at være det helt rigtige match for mig."'}),l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("img",{src:"https://i.pravatar.cc/150?img=47",alt:"Amalie",className:"w-10 h-10 rounded-full border-2 border-white shadow-sm"}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900",children:"Amalie Nielsen"}),l.jsx("p",{className:"text-sm text-cyan-600 font-normal",children:"Landed job som Projektleder"})]})]})]})]})]})]}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Mød holdet bag"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Passionerede mennesker der brænder for at revolutionere måden, vi finder arbejde på."})]}),l.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 max-w-5xl mx-auto relative z-10",children:[l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-teal-400 to-emerald-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=11",alt:"Lasse Nielsen",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Lasse Nielsen"}),l.jsx("p",{className:"text-base text-teal-600 font-normal mb-6",children:"CEO & Founder"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-indigo-400 to-purple-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=5",alt:"Emma",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Emma Schmidt"}),l.jsx("p",{className:"text-base text-indigo-600 font-normal mb-6",children:"Head of AI"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]}),l.jsxs("div",{className:"bg-gradient-to-b from-white/60 to-white/20 backdrop-blur-2xl border border-white/60 rounded-3xl p-6 text-center shadow-[0_8px_30px_rgba(0,0,0,0.03)] hover:-translate-y-1 hover:shadow-[0_15px_40px_rgba(0,0,0,0.08)] transition-all duration-300 sm:col-span-2 lg:col-span-1",children:[l.jsx("div",{className:"w-24 h-24 mx-auto mb-4 rounded-full p-1 bg-gradient-to-tr from-cyan-400 to-blue-300 shadow-md",children:l.jsx("img",{src:"https://i.pravatar.cc/150?img=60",alt:"Christian",className:"w-full h-full rounded-full border-2 border-white object-cover"})}),l.jsx("h3",{className:"text-xl font-medium text-gray-900 tracking-tight",children:"Christian Berg"}),l.jsx("p",{className:"text-base text-cyan-600 font-normal mb-6",children:"Lead Designer"}),l.jsxs("div",{className:"flex items-center justify-center gap-3",children:[l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx("span",{className:"text-sm font-medium",children:"in"})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:camera-linear",className:"text-base",style:{strokeWidth:1.5}})}),l.jsx("a",{href:"#",className:"w-8 h-8 rounded-full bg-white/50 backdrop-blur-sm border border-white flex items-center justify-center text-gray-500 hover:text-gray-900 hover:bg-white transition-all shadow-sm outline-none",children:l.jsx(fe,{icon:"solar:letter-linear",className:"text-base",style:{strokeWidth:1.5}})})]})]})]})]}),l.jsxs("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto border-t border-white/40 relative",children:[l.jsxs("div",{className:"text-center mb-16 relative z-10",children:[l.jsx("h2",{className:"text-3xl md:text-4xl font-medium tracking-tight text-gradient-subtle mb-4",children:"Gennemsigtige priser"}),l.jsx("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto font-normal drop-shadow-sm",children:"Vælg den plan, der passer bedst til din karriererejse. Start din rejse i dag."})]}),l.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 max-w-6xl mx-auto relative z-10 items-stretch",children:[l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/10 backdrop-blur-3xl border border-white/60 rounded-[2rem] p-8 shadow-[0_8px_30px_rgba(0,0,0,0.04)] flex flex-col relative overflow-hidden",children:[l.jsx("h3",{className:"text-2xl font-medium text-gray-900 tracking-tight mb-2",children:"30 dage"}),l.jsx("p",{className:"text-base text-gray-600 mb-6",children:"Perfekt til at komme hurtigt i gang."}),l.jsx("div",{className:"mb-8",children:l.jsx("span",{className:"text-5xl font-medium text-gray-900 tracking-tight",children:"49 kr"})}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-white/60 backdrop-blur-md border border-white hover:bg-white/90 text-gray-900 font-medium text-base transition-colors shadow-sm outline-none mt-auto",children:"Vælg 30 dage"})]}),l.jsxs("div",{className:"bg-gradient-to-br from-gray-900 to-gray-800 backdrop-blur-3xl border border-gray-700/50 rounded-[2rem] p-8 shadow-[0_20px_50px_rgba(0,0,0,0.2)] flex flex-col relative overflow-hidden transform lg:-translate-y-4",children:[l.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-teal-400 via-cyan-400 to-indigo-400"}),l.jsx("div",{className:"absolute top-[-20%] right-[-20%] w-[60%] h-[60%] bg-gradient-to-bl from-teal-500/30 to-cyan-500/10 blur-[60px] rounded-full pointer-events-none"}),l.jsxs("div",{className:"flex justify-between items-start mb-2 relative z-10",children:[l.jsx("h3",{className:"text-2xl font-medium text-white tracking-tight drop-shadow-md",children:"90 dage"}),l.jsx("span",{className:"px-3 py-1.5 text-xs font-medium text-teal-900 bg-gradient-to-r from-teal-300 to-emerald-300 rounded-lg uppercase tracking-wider shadow-[0_0_15px_rgba(45,212,191,0.3)]",children:"Mest populær"})]}),l.jsx("p",{className:"text-base text-gray-400 mb-6 relative z-10",children:"Ideelt til den dedikerede jobsøgende."}),l.jsx("div",{className:"mb-8 relative z-10",children:l.jsx("span",{className:"text-5xl font-medium text-white tracking-tight drop-shadow-md",children:"129 kr"})}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1 relative z-10",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-300 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-400 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-gradient-to-r from-white to-gray-100 text-gray-900 font-medium text-base hover:from-gray-50 hover:to-white transition-all shadow-[0_4px_15px_rgba(255,255,255,0.1)] outline-none relative z-10 mt-auto",children:"Vælg 90 dage"})]}),l.jsxs("div",{className:"bg-gradient-to-br from-white/60 to-white/10 backdrop-blur-3xl border border-white/60 rounded-[2rem] p-8 shadow-[0_8px_30px_rgba(0,0,0,0.04)] flex flex-col relative overflow-hidden",children:[l.jsx("h3",{className:"text-2xl font-medium text-gray-900 tracking-tight mb-2",children:"365 dage"}),l.jsx("p",{className:"text-base text-gray-600 mb-6",children:"Det bedste langsigtede valg til din karriere."}),l.jsxs("div",{className:"mb-5 relative",children:[l.jsx("span",{className:"text-5xl font-medium text-gray-900 tracking-tight",children:"249 kr"}),l.jsx("span",{className:"block text-sm text-teal-600 font-medium mt-1",children:"Svarer til 0.68 kr. pr. dag"})]}),l.jsxs("div",{className:"mb-6 p-4 rounded-xl bg-gradient-to-br from-teal-50/80 to-emerald-50/80 border border-teal-200/50 shadow-sm relative overflow-hidden",children:[l.jsx("div",{className:"absolute -right-3 -top-3 text-teal-500/10",children:l.jsx(fe,{icon:"solar:gift-bold",className:"text-7xl"})}),l.jsxs("h4",{className:"text-sm font-medium text-teal-900 mb-1 relative z-10 flex items-center gap-2",children:[l.jsx(fe,{icon:"solar:gift-linear",className:"text-base text-teal-600",style:{strokeWidth:1.5}}),"Giv en gave"]}),l.jsx("p",{className:"text-xs text-teal-800 relative z-10 leading-snug",children:"Få en gratis 3-måneders Premium-kode med i købet til en ven."})]}),l.jsxs("ul",{className:"space-y-4 mb-8 flex-1",children:[l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Download et professionelt CV - Klar til brug med et enkelt klik"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Karriereagent med personlige anbefalinger"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Øget synlighed – bliv fundet af virksomheder"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Lad systemet lave din ansøgning for dig"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Optimer dit CV med intelligente forslag"})]}),l.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700 leading-snug",children:[l.jsx(fe,{icon:"solar:check-circle-linear",className:"text-lg text-teal-500 flex-shrink-0 mt-0.5",style:{strokeWidth:1.5}}),l.jsx("span",{children:"Job simulatoren – træn til din næste jobsamtale"})]})]}),l.jsx("button",{type:"button",className:"w-full py-3 rounded-xl bg-white/60 backdrop-blur-md border border-white hover:bg-white/90 text-gray-900 font-medium text-base transition-colors shadow-sm outline-none mt-auto",children:"Vælg 365 dage"})]})]})]}),l.jsx("section",{className:"py-24 px-6 lg:px-12 max-w-7xl mx-auto relative z-10",children:l.jsxs("div",{className:"bg-gradient-to-br from-teal-400/20 via-indigo-400/10 to-purple-400/20 backdrop-blur-3xl border border-white/60 rounded-[3rem] p-10 md:p-16 text-center shadow-[0_20px_60px_rgba(0,0,0,0.05)] relative overflow-hidden group",children:[l.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white/60 to-white/20 z-0"}),l.jsx("div",{className:"absolute top-0 right-0 w-[40%] h-[100%] bg-gradient-to-l from-white/40 to-transparent skew-x-12 translate-x-[150%] group-hover:translate-x-[-250%] transition-transform duration-1000 z-0"}),l.jsxs("div",{className:"relative z-10 max-w-3xl mx-auto flex flex-col items-center",children:[l.jsx(fe,{icon:"solar:rocket-linear",className:"text-5xl text-teal-600 mb-6 drop-shadow-sm",style:{strokeWidth:1.5}}),l.jsxs("h2",{className:"text-3xl md:text-5xl font-medium tracking-tight text-gradient-subtle mb-6 leading-tight drop-shadow-sm",children:["Klar til at tage styringen",l.jsx("br",{}),"over din karriere?"]}),l.jsx("p",{className:"text-xl text-gray-700 mb-10 font-normal leading-relaxed drop-shadow-sm",children:"Lad ikke de bedste muligheder gå til andre. Tilslut dig tusindvis af ambitiøse jobsøgere, der allerede bruger fremtidens værktøjer på Arbejd.com. Din næste store chance venter."}),l.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-8 py-4 bg-gradient-to-r from-gray-900 via-gray-800 to-gray-900 border border-gray-700 hover:border-gray-600 text-white rounded-full font-normal text-lg transition-all shadow-[0_8px_25px_rgba(17,24,39,0.2)] outline-none hover:-translate-y-0.5",children:["Tilmeld dig Arbejd.com i dag",l.jsx(fe,{icon:"solar:arrow-right-linear",className:"text-xl",style:{strokeWidth:1.5}})]})]})]})})]}),l.jsx("footer",{className:"bg-white/60 backdrop-blur-xl border-t border-white/80 mt-10 pt-16 pb-12 relative z-10 shadow-[0_-10px_40px_rgba(0,0,0,0.02)]",children:l.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-12",children:[l.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-10 mb-16",children:[l.jsxs("div",{className:"col-span-2 lg:col-span-2",children:[l.jsxs("a",{href:"#",className:"flex items-center gap-2 mb-6 group outline-none inline-flex",children:[l.jsxs("svg",{viewBox:"0 0 100 100",className:"w-8 h-8 rounded-lg shadow-sm transition-transform group-hover:scale-105",children:[l.jsxs("defs",{children:[l.jsxs("linearGradient",{id:"footerLogoBg",x1:"0%",y1:"100%",x2:"100%",y2:"0%",children:[l.jsx("stop",{offset:"0%",stopColor:"#1A9A75"}),l.jsx("stop",{offset:"100%",stopColor:"#3167C9"})]}),l.jsxs("linearGradient",{id:"footerLogoFg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[l.jsx("stop",{offset:"0%",stopColor:"#6ACEEB"}),l.jsx("stop",{offset:"100%",stopColor:"#46D3B6"})]})]}),l.jsx("rect",{width:"100",height:"100",fill:"url(#footerLogoBg)"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 60 15 L 72 15 L 72 85 L 60 85 L 60 72.98 A 28 28 0 1 1 60 27.02 Z M 44 34 A 16 16 0 1 0 44 66 A 16 16 0 1 0 44 34 Z",fill:"url(#footerLogoFg)"})]}),l.jsx("span",{className:"text-xl font-normal tracking-tight text-gray-900 uppercase",children:"ARBEJD"})]}),l.jsx("p",{className:"text-base text-gray-600 font-normal leading-relaxed max-w-xs mb-6 drop-shadow-sm",children:"Danmarks nye, intelligente jobportal, der bringer virksomheder og talent sammen gennem avanceret AI-teknologi."})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Sådan virker det"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"For virksomheder"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"For jobsøgere"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Priser"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"FAQ"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Nyhedsbrev"})})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Opret dig"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Opret virksomhed"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Opret jobsøger"})}),l.jsx("li",{children:l.jsxs("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal flex items-center gap-2",children:["Download app ",l.jsx("span",{className:"px-2 py-0.5 bg-gradient-to-r from-gray-100 to-gray-50 border border-gray-200 text-xs font-medium text-gray-600 rounded",children:"Snart"})]})})]})]}),l.jsxs("div",{children:[l.jsx("h4",{className:"text-base font-medium text-gray-900 mb-5",children:"Om Arbejd.com"}),l.jsxs("ul",{className:"space-y-3",children:[l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Vores mission"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Presse"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Kontakt"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Gratis hjælp"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Stories"})}),l.jsx("li",{children:l.jsx("a",{href:"#",className:"text-base text-gray-500 hover:text-gray-900 transition-colors font-normal",children:"Jobordbogen"})})]})]})]}),l.jsxs("div",{className:"pt-8 border-t border-gray-200/60 flex flex-col md:flex-row justify-between items-center gap-4",children:[l.jsx("p",{className:"text-sm text-gray-400 font-normal",children:"© 2026 Arbejd.com. Alle rettigheder forbeholdes."}),l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Privatlivspolitik"}),l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Handelsbetingelser"}),l.jsx("a",{href:"#",className:"text-sm text-gray-400 hover:text-gray-900 transition-colors font-normal",children:"Cookies"})]})]})]})})]})}function Qn(u){return u instanceof Date?u.toISOString():typeof u=="string"?u:""}function Gh(u){const s=[u.road,u.houseNum,u.zip,u.zipName].filter(c=>typeof c=="string"&&c.trim().length>0).join(" ");return{id:u.id,title:u.title??"Job",companyName:u.hiringCompanyName??"Ukendt virksomhed",occupationName:u.occupation?.name??"",address:s||u.zipName||"Ukendt adresse",description:u.description??"",applicationDeadline:Qn(u.applicationDeadline),websiteUrl:u.applicationUrl||u.hiringCompanyUrl||"",logoUrl:u.logoUrl||"",fromJobnet:!0,isSaved:!1,isApplied:!!u.applied,isFullTime:typeof u.isFullTime=="boolean"?u.isFullTime:null,workTimes:Array.isArray(u.workTimes)?u.workTimes:[],contactName:u.contactName??"",hiringCompanyName:u.hiringCompanyName??"",datePosted:Qn(u.datePosted),employmentDate:Qn(u.employmentDate),startAsSoonAsPossible:typeof u.startAsSoonAsPossible=="boolean"?u.startAsSoonAsPossible:null,numberOfPositions:typeof u.numberOfPositions=="number"?u.numberOfPositions:null}}function Yh(u,s){return{id:u,title:s.title??"Job",companyName:s.companyName??"Ukendt virksomhed",occupationName:s.position??"",address:"",description:[s.descriptionIntro,s.descriptionPosition,s.descriptionOffer].filter(c=>typeof c=="string"&&c.trim().length>0).join(` `),applicationDeadline:Qn(s.applicationDeadline),websiteUrl:s.website??"",logoUrl:"",fromJobnet:!1,isSaved:!1,isApplied:!!s.appliedJob,isFullTime:null,workTimes:Array.isArray(s.workTimes)?s.workTimes:[],contactName:"",hiringCompanyName:s.companyName??"",datePosted:"",employmentDate:Qn(s.fromDate),startAsSoonAsPossible:null,numberOfPositions:typeof s.numberOfPositions=="number"?s.numberOfPositions:null}}class wx{constructor(s=new vo){this.jobService=s}async getDetail(s,c){if(c)try{const o=await this.jobService.getJobNetJobDetail(s);return Gh(o)}catch{const o=await this.jobService.getJobDetail(s);return Yh(s,o)}try{const o=await this.jobService.getJobDetail(s);return Yh(s,o)}catch{const o=await this.jobService.getJobNetJobDetail(s);return Gh(o)}}async toggleBookmark(s,c,o){const h=c?"star":"arbejd.com";await this.jobService.bookmarkJobV2(s,o,h)}async markAsApplied(s,c){if(c){await this.jobService.toggleApplyJobnetjob(s,!0);return}await this.jobService.applyJob(s)}}function _x(u){return u.trim().slice(0,1).toUpperCase()||"A"}function eo(u){if(!u)return"Ikke angivet";const s=new Date(u);return Number.isNaN(s.getTime())?u:new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(s)}function Ax(u){if(!u.trim())return"";if(typeof window>"u")return u;const c=new DOMParser().parseFromString(u,"text/html");c.querySelectorAll("script, style, iframe, object, embed, link, meta").forEach(o=>o.remove());for(const o of Array.from(c.body.querySelectorAll("*")))for(const h of Array.from(o.attributes)){const g=h.name.toLowerCase(),H=h.value.trim().toLowerCase();if(g.startsWith("on")){o.removeAttribute(h.name);continue}if((g==="href"||g==="src")&&H.startsWith("javascript:")){o.removeAttribute(h.name);continue}(g==="style"||g==="srcdoc")&&o.removeAttribute(h.name)}return c.body.innerHTML}function Tx(u){return u.isFullTime===!0?"Fuldtid":u.isFullTime===!1?"Deltid":u.workTimes.length>0?"Fleksibel arbejdstid":"Ikke oplyst"}function zx({fromJobnet:u,jobId:s,onBack:c,onLogout:o,onNavigate:h,onToggleTheme:g,theme:M}){const H=_.useMemo(()=>new wx,[]),R=_.useMemo(()=>new ks,[]),[j,B]=_.useState({name:"Lasse"}),[T,V]=_.useState(null),[J,P]=_.useState(!0),[X,he]=_.useState(""),[ie,ne]=_.useState(!1),[Y,K]=_.useState(!1),[ee,Z]=_.useState(!1),[D,$]=_.useState(!1);_.useEffect(()=>{let ue=!0;async function Ae(){P(!0),he("");const[Ne,le]=await Promise.allSettled([R.getCandidateProfile(),H.getDetail(s,u)]);ue&&(Ne.status==="fulfilled"&&B(Ne.value),le.status==="fulfilled"?(V(le.value),ne(!!le.value.isSaved),K(!!le.value.isApplied)):(V(null),he("Kunne ikke hente jobdetaljer. Proev igen.")),P(!1))}return Ae(),()=>{ue=!1}},[H,u,s,R]);async function de(){if(!(!T||ee)){Z(!0);try{await H.toggleBookmark(T.id,T.fromJobnet,!ie),ne(ue=>!ue)}finally{Z(!1)}}}async function te(){if(!(!T||Y||D)){$(!0);try{await H.markAsApplied(T.id,T.fromJobnet),K(!0)}finally{$(!1)}}}const oe=_.useMemo(()=>Ax(T?.description??""),[T?.description]);return l.jsxs("section",{className:`dash-root ${M==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"jobs",onNavigate:h}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:j.name,imageUrl:j.imageUrl,onLogout:o,theme:M,onToggleTheme:g}),l.jsx("div",{className:"job-detail-back-row",children:l.jsxs("button",{type:"button",className:"job-detail-back-btn",onClick:c,children:[l.jsx(mo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:"Tilbage til jobs"})]})}),J?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobdetaljer..."}):null,!J&&X?l.jsx("p",{className:"dash-loading",children:X}):null,!J&&T?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"job-detail-header",children:[l.jsx("div",{className:"job-detail-logo-wrap",children:T.logoUrl?l.jsx("img",{src:T.logoUrl,alt:T.companyName,className:"job-detail-logo-image"}):l.jsx("div",{className:"job-detail-logo-fallback",children:_x(T.companyName)})}),l.jsxs("div",{className:"job-detail-heading",children:[l.jsx("h1",{children:T.title||"Jobdetaljer"}),l.jsxs("div",{className:"job-detail-meta",children:[l.jsxs("span",{children:[l.jsx(lo,{size:14,strokeWidth:1.8})," ",T.companyName||"Virksomhed"]}),l.jsxs("span",{children:[l.jsx(Xn,{size:14,strokeWidth:1.8})," ",T.address||"Lokation ikke angivet"]}),l.jsxs("span",{children:[l.jsx(no,{size:14,strokeWidth:1.8})," ",Tx(T)]})]})]})]}),l.jsxs("div",{className:"job-detail-grid",children:[l.jsxs("section",{className:"job-detail-main-card dash-card",children:[l.jsxs("div",{className:"job-detail-section",children:[l.jsx("h2",{children:"Om rollen"}),oe?l.jsx("div",{className:"job-detail-rich-html",dangerouslySetInnerHTML:{__html:oe}}):l.jsx("p",{children:"Ingen jobbeskrivelse er tilgaengelig endnu."})]}),l.jsxs("div",{className:"job-detail-section",children:[l.jsx("h3",{children:"Jobinformation"}),l.jsxs("div",{className:"job-detail-info-grid",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Ansøgningsfrist"}),l.jsx("strong",{children:eo(T.applicationDeadline)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Opslået"}),l.jsx("strong",{children:eo(T.datePosted)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Startdato"}),l.jsx("strong",{children:eo(T.employmentDate)})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Stillinger"}),l.jsx("strong",{children:T.numberOfPositions??"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kontaktperson"}),l.jsx("strong",{children:T.contactName||"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Kilde"}),l.jsx("strong",{children:T.fromJobnet?"Jobnet":"Arbejd.com"})]})]})]})]}),l.jsxs("aside",{className:"job-detail-side-col",children:[l.jsxs("article",{className:"dash-card job-detail-actions-card",children:[l.jsx("h2",{children:"Handlinger"}),l.jsxs("button",{type:"button",className:"job-detail-action-primary",children:[l.jsxs("span",{children:[l.jsx(Kn,{size:16,strokeWidth:1.8})," Generer ansøgning"]}),l.jsx(La,{size:14,strokeWidth:1.8})]}),l.jsxs("button",{type:"button",className:"job-detail-action-secondary",children:[l.jsxs("span",{children:[l.jsx(Fv,{size:16,strokeWidth:1.8})," Simuler jobsamtale"]}),l.jsx(La,{size:14,strokeWidth:1.8})]}),l.jsx("div",{className:"job-detail-action-divider"}),l.jsxs("button",{type:"button",className:"job-detail-text-action",onClick:()=>{de()},disabled:ee,children:[l.jsx(bp,{size:16,strokeWidth:1.8}),ie?"Fjern fra gemte jobs":"Gem job"]}),l.jsxs("button",{type:"button",className:"job-detail-text-action",children:[l.jsx(Ns,{size:16,strokeWidth:1.8}),"Del via email"]}),T.websiteUrl?l.jsxs("a",{href:T.websiteUrl,target:"_blank",rel:"noreferrer",className:"job-detail-text-action link",children:[l.jsx(js,{size:16,strokeWidth:1.8}),"Åbn på nettet"]}):null,l.jsxs("button",{type:"button",className:Y?"job-detail-text-action success is-done":"job-detail-text-action success",onClick:()=>{te()},disabled:Y||D,children:[l.jsx(We,{size:16,strokeWidth:1.8}),Y?"Markeret som søgt":"Marker som søgt"]})]}),l.jsxs("article",{className:"dash-card job-detail-company-card",children:[l.jsx("h3",{children:"Om virksomheden"}),l.jsxs("div",{className:"job-detail-company-list",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Virksomhed"}),l.jsx("strong",{children:T.hiringCompanyName||T.companyName||"Ukendt"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Stilling"}),l.jsx("strong",{children:T.occupationName||"Ikke angivet"})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Website"}),l.jsx("strong",{children:T.websiteUrl||"Ikke angivet"})]})]})]})]})]})]}):null]})]})}const Jh=[2,4,6,8,10,12,24],Dx=[{id:"job-1",title:"Senior Frontend-udvikler",companyName:"Lunar",occupationName:"Frontend",descriptionIntro:"Vi søger en erfaren frontend-udvikler til at lede vores nye team.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:5,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:98},{id:"job-2",title:"UX/UI Designer (Deltid)",companyName:"Pleo",occupationName:"Design",descriptionIntro:"Hjælp os med at skabe brugervenlige flows for vores expense management platform.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:12,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:95},{id:"job-3",title:"React-udvikler",companyName:"Zendesk",occupationName:"Frontend",descriptionIntro:"Bliv en del af vores kerne-team i Kobenhavn og byg software i topklasse.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:2,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:89},{id:"job-4",title:"Full Stack Web-udvikler",companyName:"Trustpilot",occupationName:"Full stack",descriptionIntro:"Vi leder efter en passioneret Full Stack Developer (Node.js/React).",address:"Remote",time:"",applicationDeadline:"",candidateDistance:null,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:85},{id:"job-5",title:"Frontend-arkitekt",companyName:"Novo Nordisk",occupationName:"Frontend",descriptionIntro:"Vær med til at designe arkitekturen for interne medicinske data-platforme.",address:"Bagsvaerd",time:"",applicationDeadline:"",candidateDistance:18,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:72},{id:"job-6",title:"Product Designer",companyName:"Podimo",occupationName:"Design",descriptionIntro:"Vi mangler en skarp Product Designer til at forme fremtidens lytteoplevelse.",address:"Kobenhavn",time:"",applicationDeadline:"",candidateDistance:3,logoUrl:"",companyLogoImage:"",fromJobnet:!1,isSaved:!1,matchPercent:68}];function Mx(u){return u.trim().slice(0,1).toUpperCase()||"A"}function Qh(u){return u.address.toLowerCase().includes("remote")?"Remote":typeof u.candidateDistance=="number"?`${Math.max(0,Math.round(u.candidateDistance))} km vaek`:u.address||"Lokation ikke angivet"}function Ex(u){return u.companyLogoImage||u.logoUrl||""}function Xh({item:u}){const[s,c]=_.useState(!1),o=Ex(u);return o.length>0&&!s?l.jsx("div",{className:"jobs-card-logo jobs-card-logo-image-wrap",children:l.jsx("img",{src:o,alt:u.companyName||"Virksomhed",className:"jobs-card-logo-image",onError:()=>c(!0)})}):l.jsx("div",{className:"jobs-card-logo",children:Mx(u.companyName)})}function Cx(u){return u.workTypePartTime?"deltid":"fast"}function Ux({onLogout:u,onNavigate:s,onOpenJobDetail:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new ks,[]),[M,H]=_.useState({name:"Lasse"}),[R,j]=_.useState(""),[B,T]=_.useState("sidebar"),[V,J]=_.useState("fast"),[P,X]=_.useState(15),[he,ie]=_.useState(24),[ne,Y]=_.useState(["Frontend-udvikler","UX/UI Designer"]),[K,ee]=_.useState(""),[Z,D]=_.useState([]),[$,de]=_.useState(!0),[te,oe]=_.useState(6),ue=_.useCallback(async()=>{try{const m=await g.getTabItems("jobs");D(m),oe(6)}catch{D([]),oe(6)}},[g]);_.useEffect(()=>{let m=!0;async function S(){try{const L=await g.getSavedFilter();if(!m)return;J(Cx(L)),X(L.workDistance??15),ie(L.partTimeHours??24),j(L.distanceCenterName??"")}catch{}if(await ue(),m){const L=await g.getCandidateProfile();m&&H(L),de(!1)}}return S(),()=>{m=!1}},[ue,g]);async function Ae(){const m={escoIds:[],workTypePermanent:V==="fast",workTypePartTime:V==="deltid",workDistance:P,partTimeHours:V==="deltid"?he:null,distanceCenterName:R,latitude:null,longitude:null};de(!0);try{const S=await g.applyFiltersAndGetJobs(m,{searchText:R,desiredTitles:ne});D(S),oe(6)}catch{D([]),oe(6)}de(!1)}const Ne=Z.length>0?Z:Dx,le=Ne.slice(0,Math.min(te,Ne.length)),v=tem==="sidebar"?"top":"sidebar")}function b(m){Y(S=>S.filter(L=>L!==m))}function q(m){const S=m.trim();S&&(Y(L=>L.includes(S)?L:[...L,S]),ee(""))}function F(){oe(m=>Math.min(m+6,Ne.length))}return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"jobs",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar",children:[l.jsx(Qt,{name:M.name,imageUrl:M.imageUrl,onLogout:u,theme:h,onToggleTheme:o,actions:l.jsxs("button",{type:"button",className:"jobs-layout-toggle",onClick:E,children:[B==="sidebar"?l.jsx(rm,{size:16,strokeWidth:1.8}):l.jsx(sm,{size:16,strokeWidth:1.8}),l.jsx("span",{children:B==="sidebar"?"Top-layout":"Side-layout"})]})}),l.jsxs("div",{className:"jobs-page-head",children:[l.jsx("h1",{children:"Find dit naeste job"}),l.jsx("p",{children:"Sog og filtrer for at finde det perfekte match til din profil."})]}),B==="sidebar"?l.jsxs("div",{className:"jobs-grid",children:[l.jsxs("aside",{className:"jobs-filter dash-card",children:[l.jsxs("h2",{children:[l.jsx(lo,{size:18,strokeWidth:1.8})," Filtre"]}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Sog jobtitel eller virksomhed"}),l.jsxs("div",{className:"jobs-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{type:"text",placeholder:"F.eks. Frontend Udvikler...",value:R,onChange:m=>j(m.target.value)})]})]}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Onskede jobtitler"}),l.jsxs("div",{className:"jobs-title-picker",children:[l.jsxs("div",{className:"jobs-title-input-wrap",children:[ne.map(m=>l.jsxs("span",{className:"jobs-title-chip",children:[m,l.jsx("button",{type:"button",onClick:()=>b(m),"aria-label":`Fjern ${m}`,children:l.jsx(fo,{size:12,strokeWidth:2})})]},m)),l.jsx("input",{type:"text",value:K,onChange:m=>ee(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),q(K))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),l.jsxs("div",{className:"jobs-title-suggestions",children:[l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("Frontend-udvikler"),children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Backend-udvikler"),children:l.jsx("span",{children:"Backend-udvikler"})}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Full Stack-udvikler"),children:l.jsx("span",{children:"Full Stack-udvikler"})}),l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("UX/UI Designer"),children:[l.jsx("span",{children:"UX/UI Designer"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Product Manager"),children:l.jsx("span",{children:"Product Manager"})})]})]})]}),l.jsx("div",{className:"jobs-separator"}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Ansaettelsestype"}),l.jsxs("div",{className:"jobs-radio-grid",children:[l.jsx("button",{type:"button",className:V==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("fast"),children:"Fast (Fuldtid)"}),l.jsx("button",{type:"button",className:V==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("deltid"),children:"Deltid"})]})]}),l.jsxs("div",{className:"jobs-filter-block jobs-range-block",children:[l.jsxs("div",{className:"jobs-range-head",children:[l.jsx("label",{children:"Maks. afstand"}),l.jsxs("span",{children:[P," km"]})]}),l.jsx("input",{type:"range",min:0,max:50,value:P,onChange:m=>X(Number(m.target.value))}),l.jsxs("div",{className:"jobs-range-labels",children:[l.jsx("span",{children:"0 km"}),l.jsx("span",{children:"50+ km"})]})]}),l.jsx("div",{className:"jobs-separator"}),l.jsxs("div",{className:"jobs-filter-block",children:[l.jsx("label",{children:"Timer (ved deltid)"}),l.jsx("p",{children:"Vaelg onsket timeantal pr. uge"}),l.jsx("div",{className:"jobs-hours-grid",children:Jh.map(m=>l.jsx("button",{type:"button",className:he===m?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ie(m),children:m},m))})]}),l.jsx("button",{type:"button",className:"jobs-apply-btn",onClick:()=>{Ae()},children:"Opdater resultater"})]}),l.jsxs("section",{className:"jobs-content",children:[l.jsxs("div",{className:"jobs-content-head",children:[l.jsx("h2",{children:"Seneste jobs"}),l.jsxs("span",{children:["Viser ",Z.length>0?Z.length:142," resultater"]})]}),$?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,l.jsx("div",{className:"jobs-cards",children:le.map(m=>l.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>c(m.id,m.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(m.id,m.fromJobnet,"jobs"))},children:[l.jsx("div",{className:"jobs-card-top",children:l.jsx(Xh,{item:m})}),l.jsxs("div",{className:"jobs-card-title",children:[l.jsx("h3",{children:m.title||"Stilling"}),l.jsx("p",{children:m.companyName||"Virksomhed"})]}),l.jsx("p",{className:"jobs-card-description",children:m.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),l.jsxs("div",{className:"jobs-card-bottom",children:[l.jsxs("div",{className:"jobs-card-distance",children:[m.address.toLowerCase().includes("remote")?l.jsx(co,{size:15,strokeWidth:1.8}):l.jsx(oo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:Qh(m)})]}),l.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),c(m.id,m.fromJobnet,"jobs")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]})]},m.id))}),l.jsx("div",{className:"jobs-load-more-wrap",children:l.jsx("button",{type:"button",className:"jobs-load-more",onClick:F,disabled:!v,children:v?"Indlaes flere jobs":"Alle jobs er vist"})})]})]}):l.jsxs("section",{className:"jobs-top-layout",children:[l.jsxs("div",{className:"jobs-top-filters dash-card",children:[l.jsxs("div",{className:"jobs-top-filter-title",children:[l.jsx(lo,{size:18,strokeWidth:1.8}),l.jsx("h2",{children:"Filtre"})]}),l.jsxs("div",{className:"jobs-top-controls",children:[l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Sog noegleord eller virksomhed"}),l.jsxs("div",{className:"jobs-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{type:"text",placeholder:"F.eks. Lunar, React...",value:R,onChange:m=>j(m.target.value)})]})]}),l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Ansaettelsestype"}),l.jsxs("div",{className:"jobs-radio-grid",children:[l.jsx("button",{type:"button",className:V==="fast"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("fast"),children:"Fast"}),l.jsx("button",{type:"button",className:V==="deltid"?"jobs-radio-btn active":"jobs-radio-btn",onClick:()=>J("deltid"),children:"Deltid"})]})]}),l.jsxs("div",{className:"jobs-filter-block no-margin jobs-top-range",children:[l.jsxs("div",{className:"jobs-range-head",children:[l.jsx("label",{children:"Maks. afstand"}),l.jsxs("span",{children:[P," km"]})]}),l.jsx("input",{type:"range",min:0,max:50,value:P,onChange:m=>X(Number(m.target.value))})]}),l.jsx("button",{type:"button",className:"jobs-apply-btn jobs-top-apply",onClick:()=>{Ae()},children:"Opdater resultater"})]}),l.jsxs("div",{className:"jobs-filter-block no-margin",children:[l.jsx("label",{children:"Onskede jobtitler"}),l.jsxs("div",{className:"jobs-title-picker",children:[l.jsxs("div",{className:"jobs-title-input-wrap",children:[ne.map(m=>l.jsxs("span",{className:"jobs-title-chip",children:[m,l.jsx("button",{type:"button",onClick:()=>b(m),"aria-label":`Fjern ${m}`,children:l.jsx(fo,{size:12,strokeWidth:2})})]},m)),l.jsx("input",{type:"text",value:K,onChange:m=>ee(m.target.value),onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),q(K))},placeholder:"Sog og tilfoj flere jobtitler..."})]}),l.jsxs("div",{className:"jobs-title-suggestions",children:[l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("Frontend-udvikler"),children:[l.jsx("span",{children:"Frontend-udvikler"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Backend-udvikler"),children:l.jsx("span",{children:"Backend-udvikler"})}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Full Stack-udvikler"),children:l.jsx("span",{children:"Full Stack-udvikler"})}),l.jsxs("button",{type:"button",className:"jobs-title-option active",onClick:()=>q("UX/UI Designer"),children:[l.jsx("span",{children:"UX/UI Designer"}),l.jsx(We,{size:16,strokeWidth:1.8})]}),l.jsx("button",{type:"button",className:"jobs-title-option",onClick:()=>q("Product Manager"),children:l.jsx("span",{children:"Product Manager"})})]})]})]}),l.jsx("div",{className:"jobs-separator top-margin"}),l.jsxs("div",{className:"jobs-hours-row",children:[l.jsxs("div",{children:[l.jsx("label",{children:"Timer (ved deltid)"}),l.jsx("p",{children:"Vaelg onsket timeantal pr. uge"})]}),l.jsx("div",{className:"jobs-hours-grid",children:Jh.map(m=>l.jsx("button",{type:"button",className:he===m?"jobs-hour-btn active":"jobs-hour-btn",onClick:()=>ie(m),children:m},m))})]})]}),l.jsxs("section",{className:"jobs-content",children:[l.jsxs("div",{className:"jobs-content-head",children:[l.jsx("h2",{children:"Seneste jobs"}),l.jsxs("span",{children:["Viser ",Z.length>0?Z.length:142," resultater"]})]}),$?l.jsx("p",{className:"dash-loading",children:"Indlaeser jobs..."}):null,l.jsx("div",{className:"jobs-cards jobs-cards-top",children:le.map(m=>l.jsxs("article",{className:"jobs-card",role:"button",tabIndex:0,onClick:()=>c(m.id,m.fromJobnet,"jobs"),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),c(m.id,m.fromJobnet,"jobs"))},children:[l.jsx("div",{className:"jobs-card-top",children:l.jsx(Xh,{item:m})}),l.jsxs("div",{className:"jobs-card-title",children:[l.jsx("h3",{children:m.title||"Stilling"}),l.jsx("p",{children:m.companyName||"Virksomhed"})]}),l.jsx("p",{className:"jobs-card-description",children:m.descriptionIntro||"Beskrivelse er ikke tilgaengelig endnu."}),l.jsxs("div",{className:"jobs-card-bottom",children:[l.jsxs("div",{className:"jobs-card-distance",children:[m.address.toLowerCase().includes("remote")?l.jsx(co,{size:15,strokeWidth:1.8}):l.jsx(oo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:Qh(m)})]}),l.jsx("button",{type:"button",className:"jobs-card-arrow","aria-label":"Se job",onClick:S=>{S.stopPropagation(),c(m.id,m.fromJobnet,"jobs")},children:l.jsx(La,{size:16,strokeWidth:1.8})})]})]},m.id))}),l.jsx("div",{className:"jobs-load-more-wrap",children:l.jsx("button",{type:"button",className:"jobs-load-more",onClick:F,disabled:!v,children:v?"Indlaes flere jobs":"Alle jobs er vist"})})]})]})]})]})}function ys(u){if(!u)return 0;const c=(u instanceof Date?u:new Date(u)).getTime();return Number.isNaN(c)?0:c}function vm(u){if(!u)return"--:--";const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?"--:--":new Intl.DateTimeFormat("da-DK",{hour:"2-digit",minute:"2-digit"}).format(s)}function Lx(u){if(!u)return"";const s=u instanceof Date?u:new Date(u);if(Number.isNaN(s.getTime()))return"";const c=new Date,o=1440*60*1e3,h=Math.floor((new Date(c.getFullYear(),c.getMonth(),c.getDate()).getTime()-new Date(s.getFullYear(),s.getMonth(),s.getDate()).getTime())/o);return h===0?vm(s):h===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(s)}function Ox(u){const s=new Date,c=new Date(u.getFullYear(),u.getMonth(),u.getDate()),o=new Date(s.getFullYear(),s.getMonth(),s.getDate()),h=Math.floor((o.getTime()-c.getTime())/(1440*60*1e3));return h===0?"I dag":h===1?"I går":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short"}).format(u)}function Yn(u){return!u.fromCandidate&&!u.seen}function Zh(u){return u.allMessages.filter(Yn).length}function qn(u){return u.companyLogoUrl||u.companyLogo||""}function Rx(u){return{...u,allMessages:[...u.allMessages??[]].sort((s,c)=>ys(s.timeSent)-ys(c.timeSent))}}function Kh(){const u=new Date,s=new Date(u.getTime()-600*1e3),c=new Date(u.getTime()-7200*1e3),o=(M,H,R,j,B)=>({threadId:M,text:H,fromCandidate:R,timeSent:j,seen:B}),h=[o("thread-techcorp","Hej Lasse! Mange tak for din ansøgning.",!1,c),o("thread-techcorp","Mange tak, det lyder rigtig spændende.",!0,new Date(c.getTime()+1200*1e3),new Date(c.getTime()+1800*1e3)),o("thread-techcorp","Vi vil gerne invitere dig til samtale.",!1,s)],g=[o("thread-lunar","Mange tak for din opdaterede portefølje.",!1,new Date(u.getTime()-1560*60*1e3),new Date(u.getTime()-1500*60*1e3))];return[{id:"thread-techcorp",companyLogo:"",companyLogoUrl:"https://i.pravatar.cc/150?img=33",companyName:"TechCorp A/S",candidateFirstName:"Lasse",candidateLastName:"Hansen",candidateImage:"https://i.pravatar.cc/150?img=11",allMessages:h,latestMessage:h[h.length-1],title:"Frontend Udvikler",messagesLoaded:!0,jobPostingId:"job-1",jobPosting:void 0,isFromSupport:!1},{id:"thread-lunar",companyLogo:"",companyLogoUrl:"https://i.pravatar.cc/150?img=12",companyName:"Lunar Bank",candidateFirstName:"Lasse",candidateLastName:"Hansen",candidateImage:"https://i.pravatar.cc/150?img=11",allMessages:g,latestMessage:g[g.length-1],title:"Senior UX Designer",messagesLoaded:!0,jobPostingId:"job-2",jobPosting:void 0,isFromSupport:!1}]}function Vx({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new pm,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState([]),[T,V]=_.useState(!0),[J,P]=_.useState(""),[X,he]=_.useState("all"),[ie,ne]=_.useState(""),[Y,K]=_.useState(""),[ee,Z]=_.useState(()=>typeof window<"u"?window.innerWidth<=1e3:!1),[D,$]=_.useState("threads");_.useEffect(()=>{let v=!0;async function E(){V(!0);try{const b=await h.getCandidateProfile();v&&(M(b.name),R(b.imageUrl));const q=await h.getThreads();if(!v)return;const F=(q.length>0?q:Kh()).map(Rx);B(F),ne(F[0]?.id||"")}catch{if(!v)return;const b=Kh();B(b),ne(b[0]?.id||"")}finally{v&&V(!1)}}return E(),()=>{v=!1}},[h]),_.useEffect(()=>{function v(){const E=window.innerWidth<=1e3;Z(E),E?ie||$("threads"):$("chat")}return v(),window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[ie]);const de=_.useMemo(()=>{const v=J.trim().toLowerCase();return j.filter(E=>X==="unread"&&Zh(E)===0||X==="companies"&&E.isFromSupport?!1:v?E.companyName.toLowerCase().includes(v)||(E.latestMessage?.text||"").toLowerCase().includes(v):!0)},[X,J,j]),te=_.useMemo(()=>j.find(v=>v.id===ie)||de[0],[ie,de,j]),oe=_.useMemo(()=>[...te?.allMessages||[]].sort((v,E)=>ys(v.timeSent)-ys(E.timeSent)),[te]);async function ue(v){ne(v.id),ee&&$("chat");const E=[...v.allMessages].reverse().find(b=>Yn(b));E?.id&&(h.markThreadReadByMessageId(E.id),B(b=>b.map(q=>q.id!==v.id?q:{...q,allMessages:q.allMessages.map(F=>Yn(F)?{...F,seen:new Date}:F)})))}function Ae(){$("threads")}async function Ne(){const v=j.flatMap(E=>E.allMessages).filter(E=>Yn(E)&&!!E.id);await Promise.all(v.map(E=>h.markThreadReadByMessageId(E.id))),B(E=>E.map(b=>({...b,allMessages:b.allMessages.map(q=>Yn(q)?{...q,seen:new Date}:q)})))}async function le(){const v=Y.trim();if(!te||!v)return;const E={threadId:te.id,text:v,fromCandidate:!0,timeSent:new Date};K(""),B(b=>b.map(q=>{if(q.id!==te.id)return q;const F=[...q.allMessages,E];return{...q,allMessages:F,latestMessage:E}}));try{const b=await h.sendMessage(te.id,v);B(q=>q.map(F=>{if(F.id!==te.id)return F;const S=[...F.allMessages.filter(L=>L!==E),b];return{...F,allMessages:S,latestMessage:b}}))}catch{}}return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"messages",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar msg-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c}),l.jsxs("div",{className:"msg-head",children:[l.jsxs("div",{children:[l.jsx("h1",{children:"Beskeder"}),l.jsx("p",{children:"Kommuniker med virksomheder og hold styr på dine ansøgninger."})]}),l.jsxs("button",{type:"button",className:"msg-mark-btn",onClick:()=>{Ne()},children:[l.jsx(zp,{size:16,strokeWidth:1.8})," Marker alle som læst"]})]}),l.jsxs("div",{className:`msg-layout ${ee&&D==="chat"?"mobile-chat":"mobile-threads"}`,children:[!ee||D==="threads"?l.jsxs("section",{className:"msg-threads",children:[l.jsxs("div",{className:"msg-threads-head",children:[l.jsxs("div",{className:"msg-search-wrap",children:[l.jsx(uo,{size:16,strokeWidth:1.8}),l.jsx("input",{value:J,onChange:v=>P(v.target.value),type:"text",placeholder:"Søg i beskeder..."})]}),l.jsxs("div",{className:"msg-filter-row",children:[l.jsx("button",{type:"button",className:X==="all"?"active":"",onClick:()=>he("all"),children:"Alle"}),l.jsx("button",{type:"button",className:X==="unread"?"active":"",onClick:()=>he("unread"),children:"Ulæste"}),l.jsx("button",{type:"button",className:X==="companies"?"active":"",onClick:()=>he("companies"),children:"Virksomheder"})]})]}),l.jsxs("div",{className:"msg-thread-list custom-scrollbar",children:[T?l.jsx("p",{className:"dash-loading",children:"Indlaeser beskeder..."}):null,!T&&de.length===0?l.jsx("p",{className:"dash-loading",children:"Ingen tråde fundet."}):null,de.map(v=>{const E=Zh(v),b=te?.id===v.id,q=qn(v);return l.jsxs("button",{type:"button",className:b?"msg-thread-item active":"msg-thread-item",onClick:()=>{ue(v)},children:[l.jsxs("div",{className:"msg-thread-avatar-wrap",children:[q?l.jsx("img",{src:q,alt:v.companyName,className:"msg-thread-avatar"}):l.jsx("div",{className:"msg-thread-avatar-fallback",children:v.companyName.slice(0,1).toUpperCase()}),l.jsx("span",{className:"msg-thread-online"})]}),l.jsxs("div",{className:"msg-thread-content",children:[l.jsxs("div",{className:"msg-thread-row",children:[l.jsx("h3",{children:v.companyName}),l.jsx("span",{children:Lx(v.latestMessage?.timeSent)})]}),l.jsx("p",{className:E>0?"unread":"",children:v.latestMessage?.text||"Ingen beskeder endnu"}),l.jsx("small",{children:v.title||"Stilling"})]}),E>0?l.jsx("div",{className:"msg-thread-unread",children:E}):null]},v.id)})]})]}):null,!ee||D==="chat"?l.jsxs("section",{className:"msg-chat",children:[l.jsx("div",{className:"msg-chat-head",children:te?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"msg-chat-company",children:[ee?l.jsx("button",{type:"button",className:"msg-mobile-back-btn",onClick:Ae,"aria-label":"Tilbage til beskeder",children:l.jsx(mo,{size:16,strokeWidth:1.9})}):null,qn(te)?l.jsx("img",{src:qn(te),alt:te.companyName,className:"msg-chat-avatar"}):l.jsx("div",{className:"msg-chat-avatar-fallback",children:te.companyName.slice(0,1).toUpperCase()}),l.jsxs("div",{children:[l.jsx("h2",{children:te.companyName}),l.jsx("p",{children:te.title||"Rekruttering"})]})]}),l.jsxs("div",{className:"msg-chat-actions",children:[l.jsx("button",{type:"button","aria-label":"Ring",children:l.jsx(Vv,{size:16,strokeWidth:1.8})}),l.jsx("button",{type:"button","aria-label":"Info",children:l.jsx(cv,{size:16,strokeWidth:1.8})})]})]}):l.jsx("h2",{children:"Vælg en samtale"})}),l.jsx("div",{className:"msg-chat-body custom-scrollbar",children:oe.map((v,E)=>{const b=v.timeSent instanceof Date?v.timeSent:new Date(v.timeSent),q=E>0?oe[E-1]:void 0,F=q?.timeSent instanceof Date?q.timeSent:q?.timeSent?new Date(q.timeSent):void 0,m=!F||b.toDateString()!==F.toDateString();return l.jsxs("div",{children:[m?l.jsx("div",{className:"msg-day-sep",children:Ox(b)}):null,l.jsxs("div",{className:v.fromCandidate?"msg-bubble-row mine":"msg-bubble-row",children:[v.fromCandidate?null:qn(te)?l.jsx("img",{src:qn(te),alt:te.companyName,className:"msg-mini-avatar"}):l.jsx("div",{className:"msg-mini-avatar msg-mini-avatar-fallback",children:te.companyName.slice(0,1).toUpperCase()}),l.jsxs("div",{className:"msg-bubble-wrap",children:[l.jsx("span",{className:"msg-time",children:vm(v.timeSent)}),l.jsx("div",{className:v.fromCandidate?"msg-bubble mine":"msg-bubble",children:v.text})]})]})]},`${v.threadId}-${E}`)})}),l.jsx("div",{className:"msg-input-area",children:l.jsxs("div",{className:"msg-input-wrap",children:[l.jsx("button",{type:"button","aria-label":"Vedhæft",children:l.jsx(Uv,{size:18,strokeWidth:1.8})}),l.jsx("textarea",{rows:1,value:Y,onChange:v=>K(v.target.value),onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),le())},placeholder:"Skriv din besked her..."}),l.jsx("button",{type:"button","aria-label":"Emoji",children:l.jsx(r1,{size:18,strokeWidth:1.8})}),l.jsxs("button",{type:"button",className:"msg-send-btn",onClick:()=>{le()},children:["Send ",l.jsx(a1,{size:15,strokeWidth:1.8})]})]})})]}):null]})]})]})}function xm(u){return typeof u=="object"&&u!==null?u:null}function mt(u){return typeof u=="string"?u:""}function to(u){return typeof u=="number"?u:null}function ao(u){if(typeof u=="boolean")return u;if(typeof u=="string"){const s=u.toLowerCase();if(s==="completed"||s==="done"||s==="true")return!0;if(s==="incomplete"||s==="pending"||s==="false")return!1}return null}function Hx(u){if(!u)return"";const s=new Date(u);return Number.isNaN(s.getTime())?"":new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"short",year:"numeric"}).format(s)}function Bx(u,s){const c=xm(u);if(!c)return null;const o=mt(c.id)||mt(c.interview_id)||`interview-${s}`,h=mt(c.job_name)||mt(c.job_title)||mt(c.title)||"Interview",g=mt(c.company_name)||mt(c.companyName)||"Ukendt virksomhed",M=mt(c.interview_date)||mt(c.created_at)||mt(c.updated_at)||mt(c.date),H=ao(c.is_completed)??ao(c.completed)??ao(c.status)??!0,R=to(c.duration_minutes)??to(c.duration)??to(c.length_minutes),j=mt(c.personality_name)||mt(c.simulation_personality_name)||mt(c.personality)||"Professionel";return{id:o,title:h,companyName:g,dateLabel:Hx(M),completed:H,durationMinutes:R,personality:j}}class qx{constructor(s=new ks,c=new xo){this.jobsViewModel=s,this.simulationService=c}async getCandidateProfile(){return this.jobsViewModel.getCandidateProfile()}async getJobs(){try{return await this.jobsViewModel.getTabItems("jobs")}catch{return[]}}async getPersonalities(){try{const s=await this.simulationService.listSimulationPersonalities();return Array.isArray(s)?s:[]}catch{return[]}}async getInterviews(s=12){try{const c=await this.simulationService.listInterviews(s,0),o=xm(c);return(Array.isArray(o?.interviews)?o.interviews:Array.isArray(c)?c:[]).map((g,M)=>Bx(g,M)).filter(g=>!!g)}catch{return[]}}}const Gx=[{id:"sim-1",title:"Senior Frontend-udvikler",companyName:"Lunar",completed:!0,durationMinutes:15,personality:"Professionel",dateLabel:"12. okt 2023"},{id:"sim-2",title:"Fullstack Developer",companyName:"Pleo",completed:!1,durationMinutes:20,personality:"Afslappet",dateLabel:"10. okt 2023"},{id:"sim-3",title:"UX Designer",companyName:"Trustpilot",completed:!0,durationMinutes:10,personality:"Sarkastisk",dateLabel:"05. okt 2023"},{id:"sim-4",title:"Product Manager",companyName:"Danske Bank",completed:!0,durationMinutes:5,personality:"Stress-test",dateLabel:"01. okt 2023"}];function Yx(u){return{id:u.id,title:u.title,companyName:u.companyName,completed:u.completed,durationMinutes:u.durationMinutes??15,personality:u.personality||"Professionel",dateLabel:u.dateLabel||"Nyligt"}}function Jx(u){return`${u.title||"Stilling"}${u.companyName?` · ${u.companyName}`:""}`}function Qx({onLogout:u,onNavigate:s,onOpenEvaluation:c,onToggleTheme:o,theme:h}){const g=_.useMemo(()=>new qx,[]),[M,H]=_.useState("Lasse"),[R,j]=_.useState(void 0),[B,T]=_.useState([]),[V,J]=_.useState([]),[P,X]=_.useState([]),[he,ie]=_.useState(!0),[ne,Y]=_.useState(""),[K,ee]=_.useState(""),[Z,D]=_.useState("Dansk"),[$,de]=_.useState("15"),[te,oe]=_.useState(!1);_.useEffect(()=>{let b=!0;async function q(){ie(!0);const[F,m,S,L]=await Promise.all([g.getCandidateProfile(),g.getJobs(),g.getInterviews(),g.getPersonalities()]);b&&(H(F.name),j(F.imageUrl),T(m),J(S.map(Yx)),X(L.map(G=>({id:G.id,name:G.name}))),m.length>0&&Y(G=>G||m[0].id),L.length>0&&ee(G=>G||String(L[0].id)),ie(!1))}return q(),()=>{b=!1}},[g]);const ue=V.length>0?V:Gx,Ae={id:"fallback-job",title:"Senior Frontend-udvikler",companyName:"Lunar"},Ne=B.length>0?B:[Ae],le=Ne.find(b=>b.id===ne)||Ne[0],v=P.find(b=>String(b.id)===K)?.name||"Professionel & Grundig",E=[{id:"ai-1",sender:"ai",text:`Hej Lasse, og velkommen til! Vi er rigtig glade for at have dig til samtalen omkring rollen som ${le.title||"Senior Frontend-udvikler"}. Kan du fortælle om et nyligt projekt, hvor din erfaring med React gjorde en stor forskel for slutresultatet?`},{id:"me-1",sender:"me",text:"I mit seneste projekt migrerede vi en stor dashboard-løsning til Next.js. Jeg implementerede virtualisering og strammere state management med Zustand, hvilket reducerede load-tid med over 60%."},{id:"ai-2",sender:"ai",text:"Det lyder som en rigtig solid forbedring. Når du nævner Zustand frem for Redux, hvad var overvejelserne bag det valg i jeres use-case?"}];return l.jsxs("section",{className:`dash-root ${h==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"simulator",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar sim-main",children:[l.jsx(Qt,{name:M,imageUrl:R,onLogout:u,theme:h,onToggleTheme:o,actions:te?l.jsxs("button",{type:"button",className:"sim-leave-btn",onClick:()=>oe(!1),children:[l.jsx(mo,{size:15,strokeWidth:1.8}),l.jsx("span",{children:"Forlad simulering"})]}):void 0}),te?l.jsxs("div",{className:"sim-live-wrap",children:[l.jsxs("div",{className:"sim-live-head",children:[l.jsx("h1",{children:"Live Jobsamtale"}),l.jsx("p",{children:"Du er i øjeblikket i en simuleret teknisk samtale. Brug mikrofonen til at svare."})]}),l.jsxs("div",{className:"sim-live-grid",children:[l.jsxs("section",{className:"sim-live-chat-card",children:[l.jsxs("div",{className:"sim-live-chat-head",children:[l.jsxs("div",{className:"sim-live-ai-row",children:[l.jsx("div",{className:"sim-live-ai-avatar",children:l.jsx(ql,{size:18,strokeWidth:1.8})}),l.jsxs("div",{children:[l.jsx("h3",{children:"Sarah (AI Interviewer)"}),l.jsxs("p",{children:[l.jsx(Kv,{size:12,strokeWidth:1.8})," Venter på dit svar..."]})]})]}),l.jsx("button",{type:"button",className:"sim-live-more-btn",children:l.jsx(Fp,{size:16,strokeWidth:1.8})})]}),l.jsx("div",{className:"sim-live-chat-scroll custom-scrollbar",children:E.map(b=>l.jsxs("div",{className:b.sender==="ai"?"sim-live-msg-row ai":"sim-live-msg-row me",children:[l.jsx("div",{className:b.sender==="ai"?"sim-live-msg-avatar ai":"sim-live-msg-avatar me",children:b.sender==="ai"?l.jsx(ql,{size:13,strokeWidth:1.8}):R?l.jsx("img",{src:R,alt:M}):l.jsx("span",{children:M.slice(0,1).toUpperCase()})}),l.jsx("div",{className:b.sender==="ai"?"sim-live-msg-bubble ai":"sim-live-msg-bubble me",children:l.jsx("p",{children:b.text})})]},b.id))}),l.jsxs("div",{className:"sim-live-voice",children:[l.jsxs("div",{className:"sim-live-time-row",children:[l.jsxs("div",{className:"sim-live-time",children:[l.jsx("small",{children:"Tid gået"}),l.jsx("strong",{children:"04:23"})]}),l.jsx("div",{className:"sim-live-wave",children:Array.from({length:7}).map((b,q)=>l.jsx("span",{style:{animationDelay:`${q*.14}s`}},`wave-${q}`))}),l.jsxs("div",{className:"sim-live-time",children:[l.jsx("small",{children:"Tilbage"}),l.jsx("strong",{children:"10:37"})]})]}),l.jsx("button",{type:"button",className:"sim-live-mic-btn",children:l.jsx(_v,{size:22,strokeWidth:1.8})}),l.jsx("p",{children:"Optager dit svar..."})]})]}),l.jsxs("aside",{className:"sim-live-side custom-scrollbar",children:[l.jsxs("article",{className:"sim-live-side-card",children:[l.jsx("h2",{children:"Session Status"}),l.jsxs("div",{className:"sim-live-side-list",children:[l.jsxs("div",{children:[l.jsx("small",{children:"Stilling"}),l.jsxs("p",{children:[le.title||"Senior Frontend-udvikler"," @ ",le.companyName||"Lunar"]})]}),l.jsxs("div",{children:[l.jsx("small",{children:"Samtaletype"}),l.jsxs("p",{children:[l.jsx(io,{size:14,strokeWidth:1.8})," Teknisk Dybde"]})]}),l.jsxs("div",{children:[l.jsx("small",{children:"Interviewer stil"}),l.jsxs("p",{children:[l.jsx(ql,{size:14,strokeWidth:1.8})," ",v]})]}),l.jsxs("div",{children:[l.jsxs("div",{className:"sim-live-progress-head",children:[l.jsx("small",{children:"Fremgang"}),l.jsx("strong",{children:"Spørgsmål 2 af 5"})]}),l.jsx("div",{className:"sim-live-progress-track",children:l.jsx("span",{})})]})]})]}),l.jsxs("article",{className:"sim-live-coach-card",children:[l.jsxs("h2",{children:[l.jsx(mv,{size:15,strokeWidth:1.8})," Live Coach"]}),l.jsxs("div",{className:"sim-live-coach-list",children:[l.jsxs("div",{children:[l.jsx(We,{size:14,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Godt brug af STAR-metoden"}),l.jsx("p",{children:"Dit forrige svar beskrev situationen og resultatet meget tydeligt."})]})]}),l.jsxs("div",{children:[l.jsx(Wn,{size:14,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Næste skridt"}),l.jsx("p",{children:"Uddyb hvorfor Zustand var bedre end Redux i jeres specifikke use-case."})]})]})]})]}),l.jsx("article",{className:"sim-live-side-card",children:l.jsxs("div",{className:"sim-live-actions",children:[l.jsxs("button",{type:"button",children:[l.jsx(Lp,{size:16,strokeWidth:1.8})," Sæt på pause"]}),l.jsxs("button",{type:"button",className:"stop",children:[l.jsx(qp,{size:16,strokeWidth:1.8})," Afslut & Få Feedback"]})]})})]})]})]}):l.jsxs("div",{className:"sim-wrap",children:[l.jsxs("section",{className:"sim-hero-card",children:[l.jsx("div",{className:"sim-hero-glow"}),l.jsxs("div",{className:"sim-hero-left",children:[l.jsx("h1",{children:"Job Interview Simulator"}),l.jsx("p",{children:"Ov dig pa jobsamtaler med vores AI-drevne simulator. Du far skraeddersyede sporgsmal baseret pa den jobtype, du soger, og modtager detaljeret feedback pa dine svar."}),l.jsxs("ul",{className:"sim-benefits",children:[l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Personaliserede interviewsporgsmal"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Ojeblikkelig AI-feedback pa dine svar"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Detaljeret evaluering efter interviewet"]}),l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8})," Gem og gennemga tidligere interviews"]})]}),l.jsxs("button",{type:"button",className:"sim-start-btn",onClick:()=>oe(!0),children:[l.jsx(Rp,{size:18,strokeWidth:1.8}),"Start ny simulering"]})]}),l.jsxs("div",{className:"sim-config-card",children:[l.jsxs("div",{className:"sim-config-head",children:[l.jsx("h3",{children:"Simuleringsindstillinger"}),l.jsx("p",{children:"Vaelg dine praeferencer for start"})]}),l.jsxs("label",{children:["Gemt job",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(go,{size:16,strokeWidth:1.8}),l.jsx("select",{value:ne,onChange:b=>Y(b.target.value),children:Ne.map(b=>l.jsx("option",{value:b.id,children:Jx(b)},b.id))}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("label",{children:["Personlighed (AI)",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(ql,{size:16,strokeWidth:1.8}),l.jsx("select",{value:K,onChange:b=>ee(b.target.value),children:(P.length>0?P:[{id:1,name:"Professionel & Grundig"}]).map(b=>l.jsx("option",{value:String(b.id),children:b.name},b.id))}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("div",{className:"sim-mini-grid",children:[l.jsxs("label",{children:["Sprog",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(js,{size:16,strokeWidth:1.8}),l.jsxs("select",{value:Z,onChange:b=>D(b.target.value),children:[l.jsx("option",{children:"Dansk"}),l.jsx("option",{children:"Engelsk"})]}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]}),l.jsxs("label",{children:["Varighed",l.jsxs("div",{className:"sim-select-wrap",children:[l.jsx(no,{size:16,strokeWidth:1.8}),l.jsxs("select",{value:$,onChange:b=>de(b.target.value),children:[l.jsx("option",{value:"5",children:"5 min"}),l.jsx("option",{value:"10",children:"10 min"}),l.jsx("option",{value:"15",children:"15 min"}),l.jsx("option",{value:"20",children:"20 min"})]}),l.jsx(Gn,{size:15,strokeWidth:1.8,className:"sim-caret"})]})]})]})]})]}),l.jsxs("div",{className:"sim-history-head",children:[l.jsx("h2",{children:"Tidligere simuleringer"}),l.jsxs("button",{type:"button",children:[l.jsx(lm,{size:15,strokeWidth:1.8})," Filtrer"]})]}),he?l.jsx("p",{className:"dash-loading",children:"Indlaeser simuleringer..."}):null,l.jsx("section",{className:"sim-history-grid",children:ue.map(b=>l.jsxs("article",{className:b.completed?"sim-card done":"sim-card draft",children:[l.jsxs("div",{className:"sim-card-head",children:[l.jsxs("div",{children:[l.jsx("h3",{children:b.title}),l.jsx("p",{children:b.companyName})]}),l.jsx("span",{className:b.completed?"sim-status done":"sim-status draft",children:b.completed?"Faerdig":"Ikke faerdig"})]}),l.jsxs("div",{className:"sim-tags",children:[l.jsxs("span",{children:[l.jsx(no,{size:13,strokeWidth:1.8})," ",b.durationMinutes," min"]}),l.jsxs("span",{children:[l.jsx(ql,{size:13,strokeWidth:1.8})," ",b.personality]})]}),l.jsxs("div",{className:"sim-card-foot",children:[l.jsx("small",{children:b.dateLabel}),b.completed?l.jsxs("button",{type:"button",className:"sim-link-btn",onClick:()=>c({interviewId:b.id,title:b.title,companyName:b.companyName,dateLabel:b.dateLabel}),children:["Se evaluering ",l.jsx(La,{size:14,strokeWidth:1.8})]}):l.jsxs("button",{type:"button",className:"sim-link-btn",children:["Fortsæt ",l.jsx(Bv,{size:14,strokeWidth:1.8})]})]})]},b.id))})]})]})]})}function Yl(u){return typeof u=="object"&&u!==null?u:null}function bo(u){return typeof u=="string"?u:""}function Xx(u){if(typeof u=="number"&&Number.isFinite(u))return u;if(typeof u=="string"){const s=Number(u);return Number.isFinite(s)?s:null}return null}function Wh(u){return Array.isArray(u)?u.map(s=>bo(s).trim()).filter(Boolean):[]}function Ie(u,s){if(!u)return"";for(const c of s){const o=bo(u[c]).trim();if(o)return o}return""}function xs(u,s){if(!u)return null;for(const c of s){const o=Xx(u[c]);if(o!==null)return o}return null}function Zx(u){if(!u)return"";const s=new Date(u);return Number.isNaN(s.getTime())?u:new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"long",year:"numeric"}).format(s)}function Fh(u,s){return u===null?s:Math.max(0,Math.min(10,Math.round(u)))}const bm=[{id:"1",title:"Mere struktur og korthed i dine svar",behavior:"Du gav nogle svar, der blev lange og gentagende i stedet for fokuserede pa kernen.",effect:"Det kan gore det svaerere for intervieweren hurtigt at vurdere din erfaring og beslutninger.",nextStep:"Svar i 3 trin: pointe, konkret eksempel, resultat. Sigt efter 30-60 sekunder pr. svar."},{id:"2",title:"Flere konkrete eksempler pa performance i service",behavior:"Du fortalte om ansvar, men gav fa konkrete scenarier med handling og resultat.",effect:"Uden konkrete cases bliver niveau og paalidelighed svaerere at validere.",nextStep:"Forbered 2-3 STAR-historier med tydelig situation, handling og maelbart resultat."},{id:"3",title:"Gor din motivation mere maelrettet virksomheden",behavior:"Motivationen var positiv, men ikke altid koblet direkte til virksomhedens drift og behov.",effect:"Du kan fremsta generelt motiveret i stedet for specifikt relevant for rollen.",nextStep:"Naevn 2-3 konkrete grunde til, at netop deres setup matcher din erfaring."},{id:"4",title:"Konkretiser kvalitet og sikkerhed i praksis",behavior:"Du naevnte standarder og certificeringer, men beskrev fa daglige rutiner.",effect:"Det reducerer tydeligheden omkring, hvordan du arbejder sikkert i travle perioder.",nextStep:"Beskriv faste rutiner for kontrol, logning og hurtig korrektion under pres."}],ym=["Du viser relevant erfaring for rollen og kommunikerer ro under pres.","Du arbejder struktureret med kvalitet og timing i service.","Du har en moden team-tilgang med fokus pa samarbejde.","Du kobler dine svar til konkrete arbejdsrutiner og drift.","Du fremstar stabil og ansvarlig i hektiske situationer."],jm=["Forbered 3 korte STAR-historier med maelbare resultater.","Lav en 60-sekunders pitch af din profil og vaerdiskabelse.","Research virksomheden i 10-15 minutter inden samtalen.","Forbered 4-5 konkrete spoergsmaal om rolle og forventninger.","Afslut svar med resultat, sa din effekt bliver tydelig."],wt={companyName:"Ukendt virksomhed",dateLabel:"Nyligt",evaluationLabel:"Interview Feedback",interviewerEvaluationTitle:"Interviewer evaluering",interviewerEvaluationLead:"Du er godt med. Din praestation viste styrker der matcher stillingen.",interviewerEvaluationBody:"Du viste relevante kompetencer og en stabil tilgang under pres. Du kan staerke dit indtryk yderligere ved at svare mere struktureret og bruge flere konkrete resultateksempler.",interviewTitle:"Stilling",interviewerScore:8,selfScore:5,strengths:ym,recommendations:jm,suggestions:bm};function Kx(u,s){const c=Yl(u);if(!c)return null;const o=Ie(c,["title","heading","name","subject"]),h=Ie(c,["behavior","adfaerd","observation","issue"]),g=Ie(c,["effect","impact","consequence"]),M=Ie(c,["next_step","nextStep","recommendation","suggestion"]);return!o&&!h&&!g&&!M?null:{id:bo(c.id)||String(s+1),title:o||`Forbedringspunkt ${s+1}`,behavior:h||"Ingen detaljer tilgaengelige.",effect:g||"Ingen detaljer tilgaengelige.",nextStep:M||"Ingen detaljer tilgaengelige."}}function Wx(u){const s=[u?.suggestions,u?.improvements,u?.improvement_points,u?.feedback_points,Yl(u?.evaluation)?.suggestions,Yl(u?.evaluation)?.improvements];for(const c of s){if(!Array.isArray(c))continue;const o=c.map((h,g)=>Kx(h,g)).filter(h=>!!h);if(o.length>0)return o}return bm}function $h(u,s,c){for(const h of s){const g=Wh(u?.[h]);if(g.length>0)return g}const o=Yl(u?.evaluation);for(const h of s){const g=Wh(o?.[h]);if(g.length>0)return g}return c}class Fx{constructor(s=new xo){this.simulationService=s}async getEvaluation(s,c){try{const o=await this.simulationService.getInterviewEvaluation(s),h=Yl(o),g=Yl(h?.evaluation),M=Ie(h,["company_name","companyName"])||Ie(g,["company_name","companyName"])||c?.companyName||wt.companyName,H=Ie(h,["job_title","job_name","title"])||Ie(g,["job_title","job_name","title"])||c?.title||wt.interviewTitle,R=Ie(h,["interview_date","created_at","date"])||Ie(g,["interview_date","created_at","date"]),j=Zx(R)||c?.dateLabel||wt.dateLabel,B=Ie(h,["interviewer_evaluation_lead","lead"])||Ie(g,["interviewer_evaluation_lead","lead"])||wt.interviewerEvaluationLead,T=Ie(h,["interviewer_evaluation","summary","feedback"])||Ie(g,["interviewer_evaluation","summary","feedback"])||wt.interviewerEvaluationBody,V=Ie(h,["evaluation_title","interviewer_title"])||Ie(g,["evaluation_title","interviewer_title"])||wt.interviewerEvaluationTitle,J=Ie(h,["label","evaluation_label"])||Ie(g,["label","evaluation_label"])||wt.evaluationLabel,P=Fh(xs(h,["candidate_score","self_score","self_rating"])??xs(g,["candidate_score","self_score","self_rating"]),wt.selfScore),X=Fh(xs(h,["interviewer_score","score","interviewer_rating"])??xs(g,["interviewer_score","score","interviewer_rating"]),wt.interviewerScore);return{companyName:M,dateLabel:j,evaluationLabel:J,interviewerEvaluationBody:T,interviewerEvaluationLead:B,interviewerEvaluationTitle:V,interviewerScore:X,interviewTitle:H,recommendations:$h(h,["recommendations","constructive_recommendations","next_steps"],jm),selfScore:P,strengths:$h(h,["strengths","highlights"],ym),suggestions:Wx(h)}}catch{return{...wt,companyName:c?.companyName||wt.companyName,interviewTitle:c?.title||wt.interviewTitle,dateLabel:c?.dateLabel||wt.dateLabel}}}async submitRating(s,c,o){await this.simulationService.submitEvaluationRating(s,c,o)}}function Nm(u,s){return s-u}function $x(u,s){const c=Nm(u,s);return c>0?`Gab: +${c} point`:c<0?`Gab: ${c} point`:"Gab: 0 point"}function Ix(u,s){const c=Nm(u,s);return c>0?"Du undervurderede dig selv i forhold til interviewerens vurdering.":c<0?"Du vurderede dig selv hojere end intervieweren gjorde i denne session.":"Din selvvurdering matcher interviewerens vurdering godt."}function Px(u){return u||"Nyligt"}function eb({interviewSelection:u,onBack:s,onLogout:c,onNavigate:o,onToggleTheme:h,theme:g}){const M=_.useMemo(()=>new Fx,[]),[H]=_.useState("Lasse"),[R]=_.useState(void 0),[j,B]=_.useState(null),[T,V]=_.useState(!0),[J,P]=_.useState(0),[X,he]=_.useState(""),[ie,ne]=_.useState(!1),[Y,K]=_.useState("");_.useEffect(()=>{let $=!0;async function de(){V(!0);const te=await M.getEvaluation(u.interviewId,{companyName:u.companyName,dateLabel:u.dateLabel,title:u.title});$&&(B(te),V(!1))}return de(),()=>{$=!1}},[u.companyName,u.dateLabel,u.interviewId,u.title,M]);async function ee(){if(!(!J||ie)){ne(!0),K("");try{await M.submitRating(u.interviewId,J,X.trim()),K("Tak. Din feedback er sendt.")}catch{K("Kunne ikke sende feedback lige nu. Prov igen.")}finally{ne(!1)}}}const Z=j,D=Z?.suggestions??[];return l.jsxs("section",{className:`dash-root ${g==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"simulator",onNavigate:o}),l.jsxs("main",{className:"dash-main custom-scrollbar sim-eval-main",children:[l.jsx(Qt,{name:H,imageUrl:R,onLogout:c,theme:g,onToggleTheme:h,actions:l.jsxs("div",{className:"sim-eval-top-actions",children:[l.jsx("button",{type:"button",className:"sim-eval-back-btn",onClick:s,children:"Tilbage"}),l.jsxs("div",{className:"sim-eval-crumb-pill",children:[l.jsx(nm,{size:14,strokeWidth:1.8}),l.jsx("span",{children:"Simulator"}),l.jsx(La,{size:13,strokeWidth:1.8}),l.jsx("strong",{children:"Evaluering"})]})]})}),l.jsxs("div",{className:"sim-eval-wrap",children:[l.jsxs("header",{className:"sim-eval-head",children:[l.jsxs("div",{className:"sim-eval-label",children:[l.jsx(Qp,{size:14,strokeWidth:1.8}),l.jsx("span",{children:Z?.evaluationLabel??"Interview Feedback"})]}),l.jsx("h1",{children:"Evalueringsfeedback"}),l.jsxs("div",{className:"sim-eval-meta",children:[l.jsx("strong",{children:Z?.companyName??u.companyName}),l.jsx("span",{}),l.jsx("p",{children:Z?.interviewTitle??u.title}),l.jsx("span",{}),l.jsxs("small",{children:[l.jsx(_p,{size:14,strokeWidth:1.8})," ",Px(Z?.dateLabel??u.dateLabel)]})]})]}),T?l.jsx("p",{className:"dash-loading",children:"Indlaeser evaluering..."}):null,!T&&Z?l.jsxs(l.Fragment,{children:[l.jsxs("section",{className:"sim-eval-overview-card",children:[l.jsxs("div",{className:"sim-eval-overview-text",children:[l.jsxs("div",{className:"sim-eval-overview-title",children:[l.jsx(fm,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:Z.interviewerEvaluationTitle})]}),l.jsx("p",{className:"lead",children:Z.interviewerEvaluationLead}),l.jsx("p",{children:Z.interviewerEvaluationBody})]}),l.jsxs("aside",{className:"sim-eval-score-card",children:[l.jsxs("div",{className:"sim-eval-score-head",children:[l.jsx("h3",{children:"Performance vurdering"}),l.jsx(Wn,{size:16,strokeWidth:1.8})]}),l.jsxs("div",{className:"sim-eval-score-rows",children:[l.jsxs("div",{children:[l.jsx("span",{children:"Din udfyldelse"}),l.jsxs("strong",{children:[Z.selfScore,"/10"]})]}),l.jsxs("div",{children:[l.jsx("span",{children:"Interviewers vurdering"}),l.jsxs("strong",{className:"good",children:[Z.interviewerScore,"/10"]})]})]}),l.jsxs("div",{className:"sim-eval-gap-block",children:[l.jsxs("span",{children:[l.jsx(Ch,{size:13,strokeWidth:1.8})," ",$x(Z.selfScore,Z.interviewerScore)]}),l.jsx("p",{children:Ix(Z.selfScore,Z.interviewerScore)})]})]})]}),l.jsxs("section",{className:"sim-eval-improvements",children:[l.jsxs("div",{className:"sim-eval-section-title",children:[l.jsx(Ch,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Hvordan kan du blive bedre?"})]}),l.jsx("div",{className:"sim-eval-improvement-list",children:D.map(($,de)=>l.jsxs("article",{className:"sim-eval-improvement-card",children:[l.jsx("div",{className:"sim-eval-improvement-index",children:de+1}),l.jsxs("div",{className:"sim-eval-improvement-content",children:[l.jsx("h3",{children:$.title}),l.jsxs("div",{className:"sim-eval-improvement-grid",children:[l.jsxs("div",{children:[l.jsx("small",{children:"Adfaerd"}),l.jsx("p",{children:$.behavior})]}),l.jsxs("div",{className:"impact",children:[l.jsx("small",{children:"Effekt"}),l.jsx("p",{children:$.effect})]}),l.jsxs("div",{className:"next",children:[l.jsx("small",{children:"Naeste gang"}),l.jsx("p",{children:$.nextStep})]})]})]})]},$.id))})]}),l.jsxs("section",{className:"sim-eval-split-grid",children:[l.jsxs("article",{className:"sim-eval-list-card",children:[l.jsxs("div",{className:"sim-eval-card-title",children:[l.jsx(We,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Dine styrker"})]}),l.jsx("ul",{children:Z.strengths.map(($,de)=>l.jsxs("li",{children:[l.jsx(We,{size:17,strokeWidth:1.8}),l.jsx("span",{children:$})]},`strength-${de}`))})]}),l.jsxs("article",{className:"sim-eval-list-card recommendations",children:[l.jsxs("div",{className:"sim-eval-card-title",children:[l.jsx(oo,{size:20,strokeWidth:1.8}),l.jsx("h2",{children:"Konstruktiv anbefaling"})]}),l.jsx("p",{className:"hint",children:"Fokuser pa disse handlinger for at staerke din naeste samtale."}),l.jsx("ul",{children:Z.recommendations.map(($,de)=>l.jsxs("li",{children:[l.jsx("div",{children:l.jsx(Ev,{size:13,strokeWidth:2})}),l.jsx("span",{children:$})]},`recommendation-${de}`))})]})]}),l.jsxs("section",{className:"sim-eval-rating-card",children:[l.jsx("p",{children:"Husk: Hvert interview er en laeringsmulighed. Bliv ved med at ove."}),l.jsxs("div",{className:"sim-eval-rating-box",children:[l.jsx("h3",{children:"Bedom denne evaluering"}),l.jsx("small",{children:"Din feedback hjaelper os med at forbedre oplevelsen."}),l.jsx("div",{className:"sim-eval-stars",children:Array.from({length:5}).map(($,de)=>{const te=de+1,oe=te<=J;return l.jsx("button",{type:"button","aria-label":`Vaelg ${te} stjerner`,className:oe?"selected":"",onClick:()=>P(te),children:l.jsx(po,{size:27,fill:oe?"currentColor":"none",strokeWidth:1.8})},`star-${te}`)})}),l.jsx("textarea",{value:X,onChange:$=>he($.target.value),rows:3,placeholder:"Kommentar (valgfrit)"}),l.jsx("button",{type:"button",onClick:()=>{ee()},disabled:ie||J===0,children:ie?"Sender...":"Send feedback"}),Y?l.jsx("div",{className:"sim-eval-submit-status",children:Y}):null]})]})]}):null]})]})]})}class tb{constructor(s=new al,c=new Ss){this.candidateService=s,this.subscriptionService=c}async getCandidateProfile(){try{const s=await this.candidateService.getCandidate();return{name:s.firstName?.trim()||s.name?.trim()||"Lasse",imageUrl:s.imageUrl||s.image||void 0}}catch{return{name:"Lasse"}}}async getSnapshot(){const[s,c]=await Promise.allSettled([this.subscriptionService.getPaymentOverview(),this.subscriptionService.getSubscriptionProducts()]);return{paymentOverview:s.status==="fulfilled"?s.value:null,products:c.status==="fulfilled"?c.value:null}}async redeemCode(s){await this.subscriptionService.redeemCode(s)}}const Ih=["Download et professionelt CV - Klar til brug med et enkelt klik","Karriereagent med personlige anbefalinger","Øget synlighed – bliv fundet af virksomheder","Lad systemet lave din ansøgning for dig","Optimer dit CV med intelligente forslag","Job simulatoren – træn til din næste jobsamtale"];function Sm(u){if(!u)return null;const s=u instanceof Date?u:new Date(u);return Number.isNaN(s.getTime())?null:s}function ab(u){const s=Sm(u);return s?new Intl.DateTimeFormat("da-DK",{day:"2-digit",month:"2-digit",year:"numeric"}).format(s):"Ukendt dato"}function lb(u){if(!u)return!1;const s=Sm(u.activeToDate);return s?s.getTime()>Date.now():!1}function nb(u){const s=u?.premium_30?.price??49,c=u?.premium_90?.price??99,o=u?.premium_365?.price??249;return{30:{title:"30 dage",priceText:`${s} kr.`,dailyText:"Svarer til 1.63 kr. pr. dag",description:"Månedlig adgang til alle premium-funktioner"},90:{title:"90 dage",priceText:`${c} kr.`,dailyText:"Svarer til 1.10 kr. pr. dag",savings:"Spar 33%",description:"Mest populære valg med ekstra besparelse"},365:{title:"365 dage",priceText:`${o} kr.`,dailyText:"Svarer til 0.68 kr. pr. dag",savings:"Spar 58%",description:"Inkluderer gavekode til 3 måneders premium"}}}function ib({onLogout:u,onNavigate:s,onToggleTheme:c,theme:o}){const h=_.useMemo(()=>new tb,[]),[g,M]=_.useState("Lasse"),[H,R]=_.useState(void 0),[j,B]=_.useState(null),[T,V]=_.useState(null),[J,P]=_.useState(!0),[X,he]=_.useState("90"),[ie,ne]=_.useState(!1),[Y,K]=_.useState(""),[ee,Z]=_.useState(""),[D,$]=_.useState(!1),[de,te]=_.useState(null);_.useEffect(()=>{let le=!0;async function v(){P(!0);const[E,b]=await Promise.all([h.getCandidateProfile(),h.getSnapshot()]);le&&(M(E.name),R(E.imageUrl),B(b.paymentOverview),V(b.products),P(!1))}return v(),()=>{le=!1}},[h]);const oe=_.useMemo(()=>nb(T),[T]),ue=lb(j),Ae=de??ue;async function Ne(){const le=Y.trim();if(!(!le||D)){Z(""),$(!0);try{await h.redeemCode(le),Z("Koden blev indløst. Opdaterer abonnement...");const v=await h.getSnapshot();B(v.paymentOverview),V(v.products),K("")}catch{Z("Kunne ikke indløse kode. Prøv igen.")}finally{$(!1)}}}return l.jsxs("section",{className:`dash-root ${o==="dark"?"theme-dark":""}`,children:[l.jsx("div",{className:"dash-orb dash-orb-1"}),l.jsx("div",{className:"dash-orb dash-orb-2"}),l.jsx("div",{className:"dash-orb dash-orb-3"}),l.jsx(Jt,{active:"subscription",onNavigate:s}),l.jsxs("main",{className:"dash-main custom-scrollbar sub-main",children:[l.jsx(Qt,{name:g,imageUrl:H,onLogout:u,theme:o,onToggleTheme:c,actions:l.jsxs("div",{className:"sub-top-actions",children:[l.jsxs("div",{className:"sub-crumb-pill",children:[l.jsx(so,{size:15,strokeWidth:1.8})," Abonnement"]}),l.jsx("button",{type:"button",className:"sub-toggle-btn",onClick:()=>te(le=>le===null?!ue:!le),children:Ae?'Vis "Unsubscribed" state':'Vis "Subscribed" state'})]})}),l.jsxs("div",{className:"sub-head",children:[l.jsxs("div",{className:"sub-head-title-row",children:[l.jsx("div",{className:"sub-head-icon",children:l.jsx(so,{size:18,strokeWidth:1.8})}),l.jsx("h1",{children:"Dit Abonnement"})]}),l.jsx("p",{children:"Administrer dit medlemskab og lås op for alle de intelligente værktøjer, der gør din jobsøgning nemmere."})]}),l.jsxs("div",{className:"sub-wrap",children:[l.jsxs("section",{className:"sub-redeem-card",children:[l.jsxs("div",{className:"sub-redeem-head",children:[l.jsx("span",{children:"🎟️"}),l.jsx("h2",{children:"Indløs kode"})]}),l.jsx("p",{children:"Har du en rabatkode eller gavekode? Indtast den her og få den aktiveret med det samme"}),l.jsxs("div",{className:"sub-redeem-row",children:[l.jsx("input",{type:"text",value:Y,onChange:le=>K(le.target.value),placeholder:"Indtast kode her..."}),l.jsx("button",{type:"button",onClick:()=>{Ne()},disabled:D,children:D?"Indløser...":"Indløs"})]}),ee?l.jsx("small",{children:ee}):null]}),J?l.jsx("p",{className:"dash-loading",children:"Indlaeser abonnement..."}):null,!J&&!Ae?l.jsxs(l.Fragment,{children:[l.jsx("section",{className:"sub-plan-grid",children:["30","90","365"].map(le=>{const v=oe[le],E=X===le,b=le==="90",q=le==="365";return l.jsxs("label",{className:["sub-plan-card",E?"selected":"",b?"popular":"",q?"yearly":""].join(" ").trim(),children:[b?l.jsx("div",{className:"sub-popular-badge",children:"Mest populær"}):null,l.jsx("input",{type:"radio",name:"pricing-plan",checked:E,onChange:()=>he(le)}),l.jsx("div",{className:"sub-radio-indicator",children:l.jsx("i",{})}),l.jsxs("div",{className:"sub-plan-content",children:[l.jsxs("div",{className:"sub-plan-title-row",children:[l.jsx("h3",{children:v.title}),v.savings?l.jsx("span",{children:v.savings}):null]}),l.jsx("div",{className:"sub-price",children:v.priceText}),l.jsx("p",{className:"sub-price-daily",children:v.dailyText}),q?l.jsxs("div",{className:"sub-gift-box",children:[l.jsx(lv,{size:17,strokeWidth:1.8}),l.jsxs("div",{children:[l.jsx("strong",{children:"Giv en gave"}),l.jsx("small",{children:"Få en gratis 3-måneders Premium-kode med i købet til en ven."})]})]}):null,l.jsx("div",{className:"sub-divider"}),l.jsx("ul",{children:Ih.map(F=>l.jsxs("li",{children:[l.jsx(We,{size:15,strokeWidth:1.8}),l.jsx("span",{children:F})]},`${le}-${F}`))})]})]},le)})}),l.jsxs("section",{className:"sub-checkout-card",children:[l.jsxs("div",{children:[l.jsx("h3",{children:"Klar til at opgradere?"}),l.jsx("p",{children:"Vælg en plan ovenfor og få adgang til alle Premium-funktioner med det samme."})]}),l.jsxs("div",{className:"sub-checkout-actions",children:[l.jsxs("label",{children:[l.jsx("input",{type:"checkbox",checked:ie,onChange:le=>ne(le.target.checked)}),l.jsx("span",{className:"sub-checkbox",children:l.jsx(Mp,{size:13,strokeWidth:2.2})}),l.jsx("span",{children:"Jeg accepterer handelsbetingelser"})]}),l.jsx("button",{type:"button",disabled:!ie,children:"Gå til betaling"})]})]})]}):null,!J&&Ae?l.jsxs("div",{className:"sub-active-wrap",children:[l.jsxs("section",{className:"sub-gift-alert",children:[l.jsx("div",{className:"sub-gift-glow"}),l.jsx("div",{className:"sub-gift-icon",children:"🎁"}),l.jsxs("div",{children:[l.jsx("h2",{children:"Din gave venter!"}),l.jsx("p",{children:"Klik på gaven nedenfor for at se indholdet"})]}),l.jsx("button",{type:"button",children:"Åbn gave"})]}),l.jsxs("section",{className:"sub-active-card",children:[l.jsxs("div",{className:"sub-active-head",children:[l.jsx("span",{children:"👑"}),l.jsx("h2",{children:"Premium abonnement"})]}),l.jsxs("div",{className:"sub-active-grid",children:[l.jsx("div",{className:"sub-active-features",children:l.jsx("ul",{children:Ih.map(le=>l.jsxs("li",{children:[l.jsx(We,{size:16,strokeWidth:1.8}),l.jsx("span",{children:le})]},`active-${le}`))})}),l.jsxs("div",{className:"sub-active-status-col",children:[l.jsxs("div",{className:"sub-active-status-box",children:[l.jsx("div",{className:"sub-active-check",children:l.jsx(We,{size:34,strokeWidth:1.8})}),l.jsx("h3",{children:"Dit abonnement er aktivt"}),l.jsxs("strong",{children:[oe[X].priceText," for ",oe[X].title]}),l.jsx("p",{children:oe[X].dailyText}),l.jsxs("div",{className:"sub-renew-pill",children:[l.jsx(kp,{size:16,strokeWidth:1.8}),"Fornyes d. ",ab(j?.renewDate)]})]}),l.jsx("button",{type:"button",className:"sub-manage-link",children:"Administrer betalingsoplysninger"})]})]})]})]}):null]})]})]})}function sb(){const u=_.useMemo(()=>window.location.pathname==="/home",[]),s=_.useMemo(()=>!!window.localStorage.getItem("token"),[]),c=_.useMemo(()=>window.localStorage.getItem("theme")==="dark"?"dark":"light",[]),[o,h]=_.useState(s),[g,M]=_.useState(c),[H,R]=_.useState("dashboard"),[j,B]=_.useState(null),[T,V]=_.useState(null);function J(K){(K==="dashboard"||K==="jobs"||K==="cv"||K==="messages"||K==="agents"||K==="ai-agent"||K==="simulator"||K==="subscription")&&R(K)}function P(K,ee,Z="jobs"){B({id:K,fromJobnet:ee,returnPage:Z}),R("job-detail")}function X(){R(j?.returnPage??"jobs")}function he(K){V(K),R("simulator-evaluation")}function ie(){R("simulator")}async function ne(){await Jl.clearCredentials(),R("dashboard"),B(null),V(null),h(!1)}function Y(){M(K=>{const ee=K==="light"?"dark":"light";return window.localStorage.setItem("theme",ee),ee})}return u?l.jsx(kx,{}):o?H==="jobs"?l.jsx(Ux,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):H==="cv"?l.jsx(hx,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="messages"?l.jsx(Vx,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="agents"?l.jsx(G1,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):H==="ai-agent"?l.jsx(Z1,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="simulator"?l.jsx(Qx,{onLogout:ne,onNavigate:J,onOpenEvaluation:he,theme:g,onToggleTheme:Y}):H==="simulator-evaluation"&&T?l.jsx(eb,{interviewSelection:T,onBack:ie,onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="subscription"?l.jsx(ib,{onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):H==="job-detail"&&j?l.jsx(zx,{jobId:j.id,fromJobnet:j.fromJobnet,onBack:X,onLogout:ne,onNavigate:J,theme:g,onToggleTheme:Y}):l.jsx(Sx,{onLogout:ne,onNavigate:J,onOpenJobDetail:P,theme:g,onToggleTheme:Y}):l.jsx(D1,{onAuthenticated:()=>h(!0)})}ap.createRoot(document.getElementById("root")).render(l.jsx(_.StrictMode,{children:l.jsx(sb,{})}));