1import{_ as Un}from"./DNKPSnZx.js";import{ix as xe,b as mt,o as n,h as s,i as t,ir as o,dO as e,jp as d,iq as f,iu as k,iv as te,ip as Q,iz as F,ik as re,kR as rt,ij as J,d5 as a,d3 as De,ia as qt,_ as Te,rs as zt,ML as Hn,MM as Vn,MN as Fn,MO as Bn,MP as Gn,MQ as qn,MR as zn,MS as Yn,MT as Kn,ky as Yt,lJ as Wn,kv as b,im as Ie,it as Ue,io as _t,is as ot,kp as je,i2 as P,dP as Ke,kL as gt,iy as lt,ma as Jn,kJ as Kt,d4 as vt,pD as ht,fW as Me,iA as He,dH as it,MU as Xn,MV as Qn,MW as Zn,MX as es,MY as ts,MZ as ns,M_ as ss,M$ as os,N0 as ls,N1 as is,N2 as rs,fJ as Wt,kn as Jt,kI as as,N3 as cs,N4 as us,N5 as _s,N6 as ps,N7 as ds,N8 as fs,N9 as gs,Na as ms,Nb as vs,Nc as hs,Nd as ks,fc as ys,fd as bs,fe as ws,ff as $s,fg as Cs,fh as Ss,fi as Ls,fj as Is,bL as Ps,fY as Es,s8 as pt,kQ as Rs,na as xs,lG as Ts,lF as Nt,rr as Os,a as As,l2 as Ms,Ne as Dt,lN as Ut}from"./BY2d_25X.js";import js from"./BpEUGLTg.js";import{_ as Ns}from"./C5ZY6UuR.js";import{_ as Xt}from"./QSDWUJhk.js";import{_ as Qt}from"./DgfMEKdk.js";import{_ as Ds}from"./DNudIiZS.js";import{_ as Us}from"./DW3DDCUT.js";import{a as dt}from"./j3SiWnU0.js";import{d as Hs}from"./o-K2zfxo.js";import{C as Vs}from"./BCKJONQZ.js";import Fs from"./CgYI1-zt.js";import Bs from"./BrA_JFEP.js";import{C as Gs}from"./CQZnE07f.js";import{h as ft}from"./DAUpABm1.js";import{o as qs}from"./BHAPkPmI.js";import{u as zs}from"./DoHdtjpt.js";import{u as Ys}from"./CUSQ25M-.js";import{a as Ks}from"./KRSqoZdD.js";import"./B-hV7h1X.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Y=new v.Error().stack;Y&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[Y]="46758e6e-acba-45ee-bee8-c0925368d03f",v._sentryDebugIdIdentifier="sentry-dbid-46758e6e-acba-45ee-bee8-c0925368d03f")}catch{}})();const Ws={class:"pf-topbar"},Js={class:"main-container"},Xs={class:"pf-topbar__left"},Qs={class:"pf-topbar__title"},Zs={key:0,class:"pf-topbar__role"},eo={key:0,class:"pf-topbar__right"},to=["aria-label"],no=["aria-current"],so={class:"pf-tabs__dot"},oo={key:0,class:"pf-tabs__check",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},lo={key:1},io={key:0,class:"pf-tabs__label"},ro={key:1,class:"pf-topbar__actions"},ao={key:1,class:"pf-topbar__btn-wrapper"},co=xe({__name:"FlowHeaderV2",props:{step:{},roleLevelLabel:{},loading:{type:Boolean},saved:{type:Boolean},signupHref:{},loginHref:{}},emits:["retry","share"],setup(v,{emit:Y}){const p=v,B=Y,T=[{key:"role",label:"Role"},{key:"connect",label:"Connect"},{key:"analyze",label:"Analyze"},{key:"check",label:"Check"}],A={role:0,init:0,"source-select":1,connect:1,resuming:1,compile:2,check:3,result:4},$=a(()=>A[p.step]??0),R=a(()=>p.step==="result");function N(){B("retry")}const{data:C}=mt(),G=()=>{De(qt(C.value))};return(j,Z)=>{const w=rt,ae=js;return n(),s("div",Ws,[t("div",Js,[t("div",Xs,[t("h1",Qs,o(e(d).profiling_flow_header_v2_title()),1),v.roleLevelLabel?(n(),s("span",Zs,o(v.roleLevelLabel),1)):f("",!0)]),v.loading?f("",!0):(n(),s("div",eo,[e(R)?(n(),s("div",ro,[F(w,{"extra-small":"",grey:"",outline:"",reset:"",onHandleClick:N},{default:re(()=>[t("span",null,o(e(d).common_retry()),1)]),_:1}),v.saved?(n(),J(w,{key:0,"extra-small":"",onHandleClick:G},{default:re(()=>[F(ae,{class:"pf-topbar__btn-icon"}),t("span",null,o(e(d).error_list_back_home()),1)]),_:1})):(n(),s("div",ao,[F(w,{"extra-small":"",href:v.signupHref},{default:re(()=>[t("span",null,o(e(d).profiling_flow_sign_up_to_save()),1)]),_:1},8,["href"]),F(w,{"extra-small":"",outline:"",href:v.loginHref},{default:re(()=>[t("span",null,o(e(d).profiling_flow_login_to_update()),1)]),_:1},8,["href"])]))])):(n(),s("ol",{key:0,class:"pf-tabs","aria-label":e(d).profiling_flow_progress_aria_label()},[(n(),s(k,null,te(T,(ie,U)=>t("li",{key:ie.key,class:Q(["pf-tabs__item",{"is-done":U<e($),"is-active":U===e($)}]),"aria-current":U===e($)?"step":void 0},[t("span",so,[U<e($)?(n(),s("svg",oo,[...Z[0]||(Z[0]=[t("path",{d:"M5 10.5l3.2 3.2L15 7",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(n(),s("span",lo,o(U+1),1))]),U===e($)?(n(),s("span",io,o(ie.label),1)):f("",!0)],10,no)),64))],8,to))]))])])}}}),uo=Object.assign(Te(co,[["__scopeId","data-v-2c1af743"]]),{__name:"PageProfilingFlowHeaderV2"}),_o={class:"source-picker"},po={class:"eyebrow"},fo={class:"intro"},go={class:"source-grid"},mo=["aria-pressed","data-testid","onClick"],vo={class:"source-copy"},ho={class:"source-check","aria-hidden":"true"},ko={class:"source-action"},yo=["disabled"],bo=xe({__name:"SourcePicker",props:{modelValue:{}},emits:["update:modelValue","continue"],setup(v,{emit:Y}){const p=v,B=Y,T=a(()=>[{key:"resume",label:Fn(),description:Vn(),note:Hn()},{key:"linkedin",label:qn(),description:Gn(),note:Bn()},{key:"github",label:Kn(),description:Yn(),note:zn()}]);function A($){const R=p.modelValue.includes($)?p.modelValue.filter(N=>N!==$):[...p.modelValue,$];B("update:modelValue",R)}return($,R)=>{const N=zt,C=Xt,G=Qt;return n(),s("section",_o,[t("div",po,o(e(d).career_profile_source_picker_eyebrow()),1),t("h1",null,o(e(d).career_profile_source_picker_title()),1),t("p",fo,o(e(d).career_profile_source_picker_intro()),1),t("div",go,[(n(!0),s(k,null,te(e(T),j=>(n(),s("button",{key:j.key,type:"button",class:Q(["source-card",{selected:v.modelValue.includes(j.key)}]),"aria-pressed":v.modelValue.includes(j.key),"data-testid":`career-profile-source-${j.key}`,onClick:Z=>A(j.key)},[t("span",{class:Q(["source-icon",`source-icon--${j.key}`]),"aria-hidden":"true"}
1,[j.key==="resume"?(n(),J(N,{key:0})):j.key==="linkedin"?(n(),J(C,{key:1})):(n(),J(G,{key:2}))],2),t("span",vo,[t("b",null,o(j.label),1),t("small",null,o(j.description),1),t("em",null,o(j.note),1)]),t("span",ho,o(v.modelValue.includes(j.key)?"â":"+"),1)],10,mo))),128))]),t("div",ko,[t("button",{type:"button",class:"continue-button",disabled:v.modelValue.length===0,"data-testid":"career-profile-source-continue",onClick:R[0]||(R[0]=j=>B("continue"))},o(e(d).common_continue())+" â ",9,yo),t("span",null,o(e(d).career_profile_source_picker_hint()),1)])])}}}),wo=Object.assign(Te(bo,[["__scopeId","data-v-09049227"]]),{__name:"PageOnboardingSourcePicker"}),$o={key:0,class:"pf-connect__eyebrow"},Co={class:"pf-card__title"},So={class:"pf-muted pf-small pf-connect__lede"},Lo={key:1,class:"pf-redirect"},Io={class:"pf-redirect__title"},Po={class:"pf-src-list"},Eo={class:"pf-src__ic pf-src__ic--github"},Ro={class:"pf-src__body"},xo={key:0,class:"pf-src__sub pf-src__sub--ok"},To={key:1,class:"pf-src__sub pf-src__sub--prog"},Oo={key:2,class:"pf-src__sub pf-src__sub--fail"},Ao={key:3,class:"pf-src__sub pf-muted"},Mo=["disabled"],jo={class:"pf-src__head"},No={class:"pf-src__ic pf-src__ic--linkedin"},Do={class:"pf-src__body"},Uo={key:0,class:"pf-src__sub pf-src__sub--ok"},Ho={key:1,class:"pf-src__sub pf-src__sub--prog"},Vo={key:2,class:"pf-src__sub pf-src__sub--fail"},Fo={key:3,class:"pf-src__sub pf-muted"},Bo={key:0,class:"pf-url-input"},Go=["disabled","onKeydown"],qo=["disabled"],zo={key:1,class:"pf-small pf-src__warn"},Yo={class:"pf-src__ic pf-src__ic--doc"},Ko={class:"pf-src__body"},Wo={key:0,class:"pf-src__sub pf-src__sub--ok"},Jo={key:1,class:"pf-src__sub pf-src__sub--prog"},Xo={key:2,class:"pf-src__sub pf-src__sub--fail"},Qo={key:3,class:"pf-src__sub pf-muted"},Zo=["disabled"],el={key:0,class:"pf-url-row"},tl={key:0,class:"pf-chips"},nl={key:2,class:"pf-chip__x","aria-hidden":"true"},sl={class:"pf-chip__txt"},ol={class:"pf-chip__tag"},ll=["onClick"],il={class:"pf-url-input"},rl=["disabled","onKeydown"],al=["disabled"],cl={key:1,class:"pf-small pf-muted pf-adding-note"},ul={key:1,class:"pf-url-row"},_l={key:0,class:"pf-chips"},pl={key:2,class:"pf-chip__x","aria-hidden":"true"},dl={class:"pf-chip__txt"},fl={class:"pf-chip__tag"},gl=["onClick"],ml={class:"pf-url-input"},vl=["disabled","onKeydown"],hl=["disabled"],kl={key:1,class:"pf-small pf-muted pf-adding-note"},yl={key:2,type:"button",class:"pf-btn pf-btn--primary pf-continue",disabled:""},bl=["disabled"],wl={key:4,class:"pf-small pf-muted pf-hint"},$l=xe({__name:"Connect",props:{pack:{},sources:{},processing:{},processingLabels:{default:()=>({github:"",linkedin:"",resume:"",cert:"",portfolio:""})},anyProcessing:{type:Boolean},redirecting:{default:null},enabledSources:{default:()=>["github","linkedin","resume"]},showExtendedSources:{type:Boolean,default:!0},onboarding:{type:Boolean,default:!1}},emits:["connect-github","connect-linkedin","continue","upload-resume","add-url"],setup(v,{emit:Y}){const p=v;function B(h,m){return p.processingLabels?.[h]||m}const T={connecting:"Connectingâ¦",summarizing:"Readingâ¦",connected:"Connected",failed:"Couldn't connect"};function A(h){return h==="summarizing"?T.summarizing:h==="connecting"?T.connecting:""}const $=a(()=>p.processing.github>0),R=a(()=>p.processing.linkedin>0),N=a(()=>p.processing.resume>0),C=a(()=>p.processing.cert>0),G=a(()=>p.processing.portfolio>0),j=Y;function Z(h,m){const r=m.external_id;r&&j("add-url",{sourceType:h,url:r.startsWith("http")?r:`https://${r}`})}const w=P(null);function ae(h){return p.sources.filter(m=>m.source_type===h&&m.is_active!==!1)}function ie(h){return p.sources.find(m=>m.source_type===h&&m.is_active!==!1)}function U(h){return h.fetch_status==="FAILED"?"failed":h.has_summary===!0?"connected":h.fetch_status==="FETCHED"?"summarizing":"connecting"}function K(h){if(p.redirecting&&h===p.redirecting.toUpperCase())return"connecting";const m=ie(h);return m?U(m):"idle"}const I=a(()=>K("GITHUB")),oe=a(()=>K("LINKEDIN")),X=a(()=>K("RESUME")),pe=a(()=>ie("GITHUB")),x=a(()=>ie("LINKEDIN")),H=a(()=>ie("RESUME")),L=h=>p.enabledSources.includes(h),M=a(()=>new Set(p.enabledSources.map(h=>h.toUpperCase()))),ce=a(()=>p.sources.some(h=>h.is_usable===!0&&M.value.has(h.source_type))),D=a(()=>p.sources.some(h=>M.value.has(h.source_type)&&h.is_active!==!1&&h.fetch_status!=="FAILED"&&h.has_summary!==!0));function E(h){const r=h.target.files?.[0];r&&j("upload-resume",r),w.value&&(w.value.value="")}const ee=P(""),O=/linkedin\.com\/in\/[^/\s]+/i,_=a(()=>O.test(ee.value.trim())),q=P(""),ue=a(()=>!R.value&&(oe.value==="idle"||oe.value==="failed")),ne=a(()=>x.value?.external_id?ke(x.value):q.value);function _e(){!_.value||R.value||(q.value=ee.value.trim(),j("add-url",{sourceType:"LINKEDIN",url:q.value}),ee.value="")}
1const $e=P(""),he=P("");function Oe(h){const m=h.trim();return/^https?:\/\/.+\..+/i.test(m)}const Ne=a(()=>Oe($e.value)),Pe=a(()=>Oe(he.value)),Ee=a(()=>ae("CERT")),y=a(()=>ae("PORTFOLIO"));function se(){!Ne.value||C.value||(j("add-url",{sourceType:"CERT",url:$e.value.trim()}),$e.value="")}function ge(){!Pe.value||G.value||(j("add-url",{sourceType:"PORTFOLIO",url:he.value.trim()}),he.value="")}function ke(h){const m=h.external_id||"";try{const r=new URL(m.startsWith("http")?m:`https://${m}`),c=r.pathname.replace(/\/$/,"");return`${r.hostname.replace(/^www\./,"")}${c}`}catch{return m}}function Ae(h){return h.fetch_status==="FAILED"?"pf-chip--failed":h.has_summary===!0?"pf-chip--ok":"pf-chip--pending"}function de(h){return T[U(h)]||""}return(h,m)=>{const r=Yt,c=Qt,V=Wn,W=Xt,le=zt;return n(),s("div",{class:Q(["pf-card pf-connect",{"pf-connect--onboarding":v.onboarding}])},[v.onboarding?(n(),s("div",$o,o(e(d).career_profile_connect_eyebrow()),1)):f("",!0),t("h3",Co,o(v.onboarding?e(d).career_profile_connect_title():e(d).profiling_connect_title()),1),t("p",So,o(v.onboarding?e(d).career_profile_connect_intro():e(d).profiling_connect_intro()),1),v.redirecting?(n(),s("div",Lo,[F(r,{class:"pf-redirect__spinner anim-rotate-linear"}),t("p",Io," Taking you to "+o(v.redirecting==="linkedin"?"LinkedIn":"GitHub")+" to authorize⦠",1),m[6]||(m[6]=t("p",{class:"pf-small pf-muted"}," This opens in the same tab â you'll come right back here automatically. ",-1))])):(n(),s(k,{key:2},[t("div",Po,[L("github")?(n(),s("div",{key:0,class:Q(["pf-src",{"pf-src--on":e(I)==="connected"}])},[t("span",Eo,[F(c,{class:"pf-brand"})]),t("span",Ro,[m[8]||(m[8]=t("span",{class:"pf-src__label"},"GitHub",-1)),e(I)==="connected"?(n(),s("span",xo,[F(V,{class:"pf-mini"}),b(" "+o(T.connected)+" ",1),e(pe)?.external_id?(n(),s(k,{key:0},[b("· "+o(e(pe).external_id),1)],64)):f("",!0)])):e($)||e(I)==="connecting"||e(I)==="summarizing"?(n(),s("span",To,[F(r,{class:"pf-mini anim-rotate-linear"}),b(" "+o(A(e(I))||B("github","Connectingâ¦")),1)])):e(I)==="failed"?(n(),s("span",Oo,[m[7]||(m[7]=t("span",{class:"pf-status-x","aria-hidden":"true"},"â",-1)),b(" "+o(T.failed),1)])):(n(),s("span",Ao,"Reads your public repos"))]),t("button",{type:"button",class:"pf-btn pf-btn--sm pf-btn--ghost",disabled:e($)||e(I)==="connecting"||e(I)==="summarizing",onClick:m[0]||(m[0]=S=>j("connect-github"))},[e($)||e(I)==="connecting"||e(I)==="summarizing"?(n(),J(r,{key:0,class:"pf-mini anim-rotate-linear"})):f("",!0),e(I)==="connected"?(n(),s(k,{key:1},[b("Reconnect")],64)):e(I)==="summarizing"?(n(),s(k,{key:2},[b("Readingâ¦")],64)):e($)||e(I)==="connecting"?(n(),s(k,{key:3},[b("Connectingâ¦")],64)):e(I)==="failed"?(n(),s(k,{key:4},[b("Try again")],64)):(n(),s(k,{key:5},[b("Connect")],64))],8,Mo)],2)):f("",!0),L("linkedin")?(n(),s("div",{key:1,class:Q(["pf-src pf-src--block",{"pf-src--on":e(oe)==="connected"}])},[t("div",jo,[t("span",No,[F(W,{class:"pf-brand"})]),t("span",Do,[m[10]||(m[10]=t("span",{class:"pf-src__label"},"LinkedIn",-1)),e(oe)==="connected"?(n(),s("span",Uo,[F(V,{class:"pf-mini"}),b(" "+o(T.connected)+" ",1),e(x)?.external_id?(n(),s(k,{key:0},[b(" · "+o(ke(e(x))),1)],64)):f("",!0)])):e(R)||e(oe)==="connecting"||e(oe)==="summarizing"?(n(),s("span",Ho,[F(r,{class:"pf-mini anim-rotate-linear"}),b(" "+o(A(e(oe))||B("linkedin","Connectingâ¦"))+" ",1),e(ne)?(n(),s(k,{key:0},[b(" · "+o(e(ne)),1)],64)):f("",!0)])):e(oe)==="failed"?(n(),s("span",Vo,[m[9]||(m[9]=t("span",{class:"pf-status-x","aria-hidden":"true"},"â",-1)),b(" "+o(T.failed),1),e(ne)?(n(),s(k,{key:0},[b(" · "+o(e(ne)),1)],64)):f("",!0)])):(n(),s("span",Fo,"Paste your profile URL"))])]),e(ue)?(n(),s("div",Bo,[Ie(t("input",{"onUpdate:modelValue":m[1]||(m[1]=S=>je(ee)?ee.value=S:null),type:"url",placeholder:"https://www.linkedin.com/in/your-handle",class:"pf-input",disabled:e(R),onKeydown:_t(ot(_e,["prevent"]),["enter"])},null,40,Go),[[Ue,e(ee)]]),t("button",{type:"button",class:"pf-btn pf-btn--ghost pf-btn--sm",disabled:e(R)||!e(_),onClick:_e},[e(R)?(n(),J(r,{key:0,class:"pf-mini anim-rotate-linear"})):f("",!0),b(" "+o(e(R)?"Addingâ¦":"Add"),1)],8,qo)])):f("",!0),e(ue)&&e(ee)&&!e(_)?(n(),s("p",zo," Enter a full linkedin.com/in/⦠profile URL. ")):f("",!0)],2)):f("",!0),L("resume")?(n(),s("div",{key:2,class:Q(["pf-src",{"pf-src--on":e(X)==="connected"}])},[t("span",Yo,[F(le,{class:"pf-brand pf-brand--doc"})]),t("span",Ko,[m[12]||(m[12]=t("span",{class:"pf-src__label"},"Résumé",-1)),e(X)==="connected"?(n(),s("span",Wo,[F(V,{class:"pf-mini"}),b(" "+o(T.connected)+" ",1),e(H)?.external_id?(n(),s(k,{key:0},[b("· "+o(e(H).external_id),1)],64)):f("",!0)])):e(N)||e(X)==="connecting"||e(X)==="summarizing"?(n(),s("span",Jo,[F(r,{class:"pf-mini anim-rotate-linear"}),b(" "+o(A(e(X))||B("resume","Connectingâ¦")),1)])):e(X)==="failed"?(n(),s("span",Xo,[m[11]||(m[11]=t("span",{class:"pf-status-x","aria-hidden":"true"},"â",-1)),b(" "+o(T.failed),1)])):(n(),s("span",Qo,"PDF, DOC or DOCX"))]),t("button",{type:"button",class:"pf-btn pf-btn--ghost pf-btn--sm",disabled:e(N),onClick:m[2]||(m[2]=S=>e(w)?.click())},[e(N)||e(X)==="connecting"||e(X)==="summarizing"?(n(),J(r,{key:0,class:"pf-mini anim-rotate-linear"})):f("",!0),e(N)?(n(),s(k,{key:1},[b("Uploadingâ¦")],64)):e(X)==="connected"?(n(),s(k,{key:2},[b("Replace")],64)):e(X)==="summarizing"?(n(),s(k,{key:3},[b("Readingâ¦")],64)):e(X)==="connecting"?(n(),s(k,{key:4},[b("Processingâ¦")],64)):e(X)==="failed"?(n(),s(k,{key:5},[b("Try again")],64)):(n(),s(k,{key:6},[b("Upload")],64))],8,Zo),t("input",{ref_key:"resumeInput",ref:w,type:"file",accept:".pdf,.doc,.docx",class:"pf-hidden-input",onChange:E},null,544)],2)):f("",!0)]),v.showExtendedSources?(n(),s("div",el,[m[13]||(m[13]=t("label",{class:"pf-small pf-field-lbl"},"Certificate links",-1)),m[14]||(m[14]=t("p",{class:"pf-small pf-muted"},"Credly, Coursera, cloud certs â add as many as you like.",-1)),e(Ee).length?(n(),s("ul",tl,[(n(!0),s(k,null,te(e(Ee),S=>(n(),s("li",{key:S.id_slug,class:Q(["pf-chip",Ae(S)])},[S.has_summary===!0?(n(),J(V,{key:0,class:"pf-mini"})):S.fetch_status!=="FAILED"?(n(),J(r,{key:1,class:"pf-mini anim-rotate-linear"})):(n(),s("span",nl,"â")),t("span",sl,o(ke(S)),1),S.fetch_status==="FAILED"?(n(),s(k,{key:3},[t("span",ol,o(T.failed),1),t("button",{type:"button",class:"pf-chip__retry",onClick:g=>Z("CERT",S)}," Try again ",8,ll)],64)):(n(),s("span",{key:4,class:Q(["pf-chip__tag",S.has_summary===!0?"pf-chip__tag--ok":"pf-chip__tag--prog"])}
1,o(de(S)),3))],2))),128))])):f("",!0),t("div",il,[Ie(t("input",{"onUpdate:modelValue":m[3]||(m[3]=S=>je($e)?$e.value=S:null),type:"url",placeholder:"https://â¦",class:"pf-input",disabled:e(C),onKeydown:_t(ot(se,["prevent"]),["enter"])},null,40,rl),[[Ue,e($e)]]),t("button",{type:"button",class:"pf-btn pf-btn--ghost pf-btn--sm",disabled:e(C)||!e(Ne),onClick:se},[e(C)?(n(),J(r,{key:0,class:"pf-mini anim-rotate-linear"})):f("",!0),b(" "+o(e(C)?"Addingâ¦":"Add"),1)],8,al)]),e(C)?(n(),s("p",cl,o(B("cert","Connectingâ¦"))+" This can take a few seconds. ",1)):f("",!0)])):f("",!0),v.showExtendedSources?(n(),s("div",ul,[m[15]||(m[15]=t("label",{class:"pf-small pf-field-lbl"},"Portfolio, blog, Medium, product or personal site",-1)),m[16]||(m[16]=t("p",{class:"pf-small pf-muted"},"Anything public that shows your work â add as many as you like.",-1)),e(y).length?(n(),s("ul",_l,[(n(!0),s(k,null,te(e(y),S=>(n(),s("li",{key:S.id_slug,class:Q(["pf-chip",Ae(S)])},[S.has_summary===!0?(n(),J(V,{key:0,class:"pf-mini"})):S.fetch_status!=="FAILED"?(n(),J(r,{key:1,class:"pf-mini anim-rotate-linear"})):(n(),s("span",pl,"â")),t("span",dl,o(ke(S)),1),S.fetch_status==="FAILED"?(n(),s(k,{key:3},[t("span",fl,o(T.failed),1),t("button",{type:"button",class:"pf-chip__retry",onClick:g=>Z("PORTFOLIO",S)}," Try again ",8,gl)],64)):(n(),s("span",{key:4,class:Q(["pf-chip__tag",S.has_summary===!0?"pf-chip__tag--ok":"pf-chip__tag--prog"])},o(de(S)),3))],2))),128))])):f("",!0),t("div",ml,[Ie(t("input",{"onUpdate:modelValue":m[4]||(m[4]=S=>je(he)?he.value=S:null),type:"url",placeholder:"https://â¦",class:"pf-input",disabled:e(G),onKeydown:_t(ot(ge,["prevent"]),["enter"])},null,40,vl),[[Ue,e(he)]]),t("button",{type:"button",class:"pf-btn pf-btn--ghost pf-btn--sm",disabled:e(G)||!e(Pe),onClick:ge},[e(G)?(n(),J(r,{key:0,class:"pf-mini anim-rotate-linear"})):f("",!0),b(" "+o(e(G)?"Addingâ¦":"Add"),1)],8,hl)]),e(G)?(n(),s("p",kl,o(B("portfolio","Connectingâ¦"))+" This can take a few seconds. ",1)):f("",!0)])):f("",!0),v.anyProcessing||e(D)?(n(),s("button",yl,[F(r,{class:"pf-mini anim-rotate-linear"}),m[17]||(m[17]=b(" Uploading resource⦠",-1))])):(n(),s("button",{key:3,type:"button",class:"pf-btn pf-btn--primary pf-continue",disabled:!e(ce),onClick:m[5]||(m[5]=S=>j("continue"))}," Continue â ",8,bl)),!v.anyProcessing&&!e(D)&&!e(ce)?(n(),s("span",wl," Connect at least one source successfully (â) to continue. ")):f("",!0)],64))],2)}}}),Cl=Object.assign(Te($l,[["__scopeId","data-v-1d9f4816"]]),{__name:"PageProfilingConnect"}),Sl={class:"pf-card pf-center pf-compile"},Ll={class:"pf-compile-msg pf-muted"},Il={key:0,class:"pf-small pf-muted"},Pl={key:1,class:"pf-scan"},El={class:"pf-scan__ic"},Rl={class:"pf-scan__txt"},xl={class:"pf-scan__label"},Tl={key:0,class:"pf-scan__sub"},Ol={class:"pf-scan__state","aria-hidden":"true"},Al={key:0,class:"pf-scan__spin"},Ml={key:1,class:"pf-scan__check",viewBox:"0 0 20 20",fill:"none"},jl={key:2,class:"pf-scan__dot"},Nl={class:"pf-compile__bar",role:"progressbar","aria-label":"Building your profile"},Ht=92,Dl=250,Ul=3e3,Hl=.55,Vl=xe({__name:"CompileLoader",props:{roleLabel:{default:""},mode:{default:"compile"},sources:{default:()=>[]}},setup(v){const Y=v,p=a(()=>Y.mode==="scoring"?16e3:75e3),B=[{at:0,msg:"Reading your workâ¦"},{at:14,msg:"Mapping your skills to the role rubricâ¦"},{at:32,msg:"Scoring your evidenceâ¦"},{at:52,msg:"Writing your personalised analysisâ¦"},{at:70,msg:"Preparing your quick checkâ¦"},{at:86,msg:"Almost there â putting it togetherâ¦"}],T=[{at:0,msg:"Scoring your answersâ¦"},{at:6,msg:"Updating your gradeâ¦"},{at:12,msg:"Almost there â finalising your resultâ¦"}],A=a(()=>Y.mode==="scoring"?T:B),$=["Reading your workâ¦","Tinkering with the detailsâ¦","Connecting the dotsâ¦","Doing the mathsâ¦"],R=["Scoring your answersâ¦","Crunching the numbersâ¦","Double-checking our sumsâ¦","Dotting the i's and crossing the t'sâ¦"],N=a(()=>Y.mode==="scoring"?R:$),C=P(0),G=P(0);let j=null;const Z=a(()=>{const x=G.value;if(x<=0)return 0;if(x<=p.value){const L=x/p.value;return Ht*(1-(1-L)*(1-L))}const H=(x-p.value)/1e3;return Math.min(Ht+H*.15,98)}),w=a(()=>`${Z.value.toFixed(1)}%`),ae=a(()=>{const x=G.value/1e3;let H=0;for(let L=0;L<A.value.length;L++)x>=A.value[L].at&&(H=L);return H}),ie=a(()=>A.value[ae.value].msg),U=a(()=>Math.floor(G.value/Ul)%N.value.length),K=a(()=>N.value[U.value]),I={GITHUB:{label:"GitHub",letter:"G"},LINKEDIN:{label:"LinkedIn",letter:"in"},RESUME:{label:"Résumé",letter:"R"},CERT:{label:"Certificate",letter:"C"},PORTFOLIO:{label:"Portfolio",letter:"P"}};function oe(x){const H=(x.external_id||"").trim();if(!H)return"";if(x.source_type==="GITHUB")return H.startsWith("@")?H:`@${H}`;const L=H.replace(/^https?:\/\//,"").replace(/\/$/,"");return L.length>30?`${L.slice(0,29)}â¦`:L}const X=a(()=>(Y.sources||[]).filter(x=>I[x.source_type]&&x.is_active!==!1&&x.is_usable===!0).map(x=>({key:x.id_slug||x.source_type,label:I[x.source_type].label,letter:I[x.source_type].letter,sub:oe(x)})));function pe(x){const H=X.value.length;if(H===0)return"pending";const M=p.value*Hl/H,ce=(x+1)*M,D=x*M;return G.value>=ce?"done":G.value>=D?"scanning":"pending"}return Ke(()=>{C.value=Date.now(),j=gt(()=>{G.value=Date.now()-C.value},Dl)}),lt(()=>{j&&clearInterval(j)}),(x,H)=>(n(),s("div",Sl,[H[1]||(H[1]=t("div",{class:"pf-compile__halo"},[t("div",{class:"pf-spin"})],-1)),F(Jn,{name:"pf-fade",mode:"out-in"},{default:re(()=>[(n(),s("h3",{key:e(U),class:"pf-card__title"},o(e(K)),1))]),_:1}),t("p",Ll,o(e(ie)),1),v.roleLabel&&v.mode==="compile"?(n(),s("p",Il,"Target: "+o(v.roleLabel),
11)):f("",!0),v.mode==="compile"&&e(X).length?(n(),s("ul",Pl,[(n(!0),s(k,null,te(e(X),(L,M)=>(n(),s("li",{key:L.key,class:Q(["pf-scan__row",`pf-scan__row--${pe(M)}`])},[t("span",El,o(L.letter),1),t("span",Rl,[t("span",xl,o(L.label),1),L.sub?(n(),s("span",Tl,o(L.sub),1)):f("",!0)]),t("span",Ol,[pe(M)==="scanning"?(n(),s("span",Al)):pe(M)==="done"?(n(),s("svg",Ml,[...H[0]||(H[0]=[t("path",{d:"M5 10.5l3.2 3.2L15 7",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(n(),s("span",jl))])],2))),128))])):f("",!0),t("div",Nl,[t("span",{class:"pf-compile__fill",style:Kt({width:e(w)})},null,4)])]))}}),Fl=Object.assign(Te(Vl,[["__scopeId","data-v-6145c84a"]]),{__name:"PageProfilingCompileLoader"}),Bl={class:"pf-card project-check","data-testid":"profiling-project-check"},Gl={class:"project-check__intro"},ql={class:"project-check__eyebrow"},zl={class:"pf-muted"},Yl={class:"project-check__progress","aria-hidden":"true"},Kl={class:"pf-small pf-muted"},Wl={key:0,class:"project-check__section"},Jl={class:"project-check__label"},Xl={class:"project-check__claim"},Ql={class:"project-check__choices"},Zl=["placeholder"],ei={class:"project-check__question"},ti={class:"project-check__choices project-check__choices--two"},ni=["data-testid","onClick"],si={class:"project-check__label"},oi={class:"pf-muted"},li={class:"project-check__question"},ii={class:"project-check__options"},ri=["data-testid","onClick"],ai={key:1,class:"project-check__section"},ci={class:"project-check__label"},ui={class:"pf-muted"},_i={class:"project-check__question"},pi={class:"project-check__options"},di=["onClick"],fi=["onClick"],gi={class:"project-check__nav"},mi=xe({__name:"ProjectCheck",props:{plan:{},submitting:{type:Boolean}},emits:["submit"],setup(v,{emit:Y}){const p=v,B=Y,{trackEvent:T}=vt(),A=ht("profiling"),$=P(0),R=it({}),N=it({}),C=a(()=>p.plan.projects||[]),G=a(()=>p.plan.skill_probes||[]),j=a(()=>G.value.length>0),Z=a(()=>C.value.length+(j.value?1:0)),w=a(()=>C.value[$.value]||null),ae=a(()=>!w.value&&j.value),ie=a(()=>{const L=w.value;return L?R[L.id]?.depth_choice:void 0});function U(L){return R[L.id]||(R[L.id]={claim_status:"confirmed"}),R[L.id]}function K(L,M){const ce=U(L);ce.claim_status=M,M==="not_mine"&&(delete ce.ownership,delete ce.depth_choice)}const I=a(()=>{const L=w.value;if(L){const M=R[L.id];return M?.claim_status?M.claim_status==="not_mine"?!0:!(M.claim_status==="corrected"&&(M.correction?.trim().length||0)<10||!M.ownership||L.ask_depth_question&&!M.depth_choice):!1}return G.value.every(M=>N[M.id])}),oe=a(()=>Z.value?Math.round(($.value+1)/Z.value*100):100),X=a(()=>$.value>=Z.value-1);function pe(){I.value&&!X.value&&(T("profiling_check_step_completed",{flow_id:A,check_version:p.plan.version||
11,step_type:w.value?"project":"probes",step_position:$.value+1,step_count:Z.value}),$.value+=1)}function x(){$.value>0&&(T("profiling_check_step_back",{flow_id:A,check_version:p.plan.version||1,step_position:$.value+1}),$.value-=1)}function H(){!I.value||p.submitting||(T("profiling_check_step_completed",{flow_id:A,check_version:p.plan.version||1,step_type:w.value?"project":"probes",step_position:$.value+1,step_count:Z.value,final_step:!0}),B("submit",{projects:JSON.parse(JSON.stringify(R)),skill_probes:{...N}}))}return Me($,()=>{T("profiling_check_step_viewed",{flow_id:A,check_version:p.plan.version||1,step_type:w.value?"project":"probes",step_position:$.value+1,step_count:Z.value}),He(()=>window.scrollTo({top:0,behavior:"smooth"}))}),Ke(()=>{T("profiling_check_step_viewed",{flow_id:A,check_version:p.plan.version||1,step_type:w.value?"project":"probes",step_position:1,step_count:Z.value})}),(L,M)=>{const ce=rt;return n(),s("div",Bl,[t("div",Gl,[t("p",ql,o(e(d).profiling_project_check_eyebrow()),1),t("h2",null,o(e(d).profiling_project_check_title()),1),t("p",zl,o(e(d).profiling_project_check_intro()),1)]),t("div",Yl,[t("span",{style:Kt({width:`${e(oe)}%`})},null,4)]),t("p",Kl,o(e(d).profiling_project_check_progress({current:e($)+1,total:e(Z)})),1),e(w)?(n(),s("section",Wl,[t("p",Jl,o(e(d).profiling_project_check_project_label()),1),t("h3",null,o(e(w).title),1),t("p",Xl,o(e(w).claim),1),t("div",Ql,[t("button",{type:"button",class:Q({selected:e(R)[e(w).id]?.claim_status==="confirmed"}),"data-testid":"profiling-claim-confirmed",onClick:M[0]||(M[0]=D=>K(e(w),"confirmed"))},o(e(d).profiling_project_check_looks_right()),3),t("button",{type:"button",class:Q({selected:e(R)[e(w).id]?.claim_status==="corrected"}),"data-testid":"profiling-claim-corrected",onClick:M[1]||(M[1]=D=>K(e(w),"corrected"))},o(e(d).profiling_project_check_adjust()),3),t("button",{type:"button",class:Q({selected:e(R)[e(w).id]?.claim_status==="not_mine"}),"data-testid":"profiling-claim-not-mine",onClick:M[2]||(M[2]=D=>K(e(w),"not_mine"))},o(e(d).profiling_project_check_not_mine()),3)]),e(R)[e(w).id]?.claim_status==="corrected"?Ie((n(),s("textarea",{key:0,"onUpdate:modelValue":M[3]||(M[3]=D=>U(e(w)).correction=D),"data-testid":"profiling-claim-correction",class:"project-check__textarea",placeholder:e(d).profiling_project_check_correction_placeholder(),rows:"3"},null,8,Zl)),[[Ue,U(e(w)).correction]]):f("",!0),e(R)[e(w).id]?.claim_status!=="not_mine"?(n(),s(k,{key:1},[t("p",ei,o(e(d).profiling_project_check_ownership()),1),t("div",ti,[(n(!0),s(k,null,te([{value:"led",label:e(d).profiling_project_check_ownership_led()},{value:"built_core",label:e(d).profiling_project_check_ownership_core()},{value:"contributed",label:e(d).profiling_project_check_ownership_contributed()},{value:"supported",label:e(d).profiling_project_check_ownership_supported()}],D=>(n(),s("button",{key:D.value,"data-testid":`profiling-ownership-${D.value}`,type:"button",class:Q({selected:e(R)[e(w).id]?.ownership===D.value}),onClick:E=>U(e(w)).ownership=D.value},o(D.label),11,ni))),128))]),e(w).ask_depth_question&&e(w).depth_question?(n(),s(k,{key:0},[t("p",si,o(e(d).profiling_project_check_depth_label()),1),t("p",oi,o(e(d).profiling_project_check_depth_intro()),1),t("p",li,o(e(w).depth_question.scenario),1),t("div",ii,[(n(!0),s(k,null,te(e(w).depth_question.options,D=>(n(),s("button",{key:D.key,"data-testid":`profiling-depth-${D.key}`,type:"button",class:Q({selected:D.key===e(ie)}),onClick:E=>U(e(w)).depth_choice=D.key},o(D.text),11,ri))),128))])],64)):f("",!0)],64)):f("",!0)])):e(ae)?(n(),s("section",ai,[t("p",ci,o(e(d).profiling_project_check_extra_label()),1),t("h3",null,o(e(d).profiling_project_check_extra_title()),1),t("p",ui,o(e(d).profiling_project_check_extra_intro()),1),(n(!0),s(k,null,te(e(G),D=>(n(),s("div",{key:D.id,class:"project-check__probe"},[t("p",_i,o(D.scenario),1),t("div",pi,[(n(!0),s(k,null,te(D.options,E=>(n(),s("button",{key:E.key,type:"button",class:Q({selected:e(N)[D.id]===E.key}),onClick:ee=>e(N)[D.id]=E.key},o(E.text),11,di))),128)),t("button",{type:"button",class:Q({selected:e(N)[D.id]==="none"}),onClick:E=>e(N)[D.id]="none"},o(e(d).profiling_project_check_not_used()),11,fi)])]))),128))])):f("",!0),t("div",gi,[F(ce,{grey:!0,disabled:e($)===0,onClick:x},{default:re(()=>[b(o(e(d).common_back()),1)]),_:1},8,["disabled"]),e(X)?(n(),J(ce,{key:1,"data-testid":"profiling-check-submit",disabled:!e(I),loading:v.submitting,onClick:H},{default:re(()=>[b(o(e(d).profiling_project_check_finish()),1)]),_:1},8,["disabled","loading"])):(n(),J(ce,{key:0,disabled:!e(I),arrow:!0,onClick:pe},{default:re(()=>[b(o(e(d).common_next()),1)]),_:1},8,["disabled"]))])])}}}),vi=Object.assign(Te(mi,[["__scopeId","data-v-4c867fdc"]]),{__name:"PageProfilingProjectCheck"}),hi={class:"pf-lc__progress"},ki={class:"pf-lc__progress-meta"},yi={class:"pf-small pf-lc__step-count"},bi={key:0,class:"pf-small pf-muted"},wi={key:0,class:"pf-lc__panel"},$i={class:"pf-lc__section-title"},Ci={key:0,class:"pf-lc__items"},Si={class:"pf-claim"},Li={class:"pf-involve-opts"},Ii=["onClick"],Pi=["onClick"],Ei={key:1,class:"pf-lc__items"},Ri={class:"pf-scenario"},xi={class:"pf-sopts"},Ti=["onClick"],Oi={key:2,class:"pf-lc__items"},Ai={class:"pf-scenario"},Mi={class:"pf-sopts"},ji=["onClick"],Ni=["onClick"],Di={class:"pf-lc__nav"},Ui=["disabled"],Hi={key:0,class:"pf-small pf-muted pf-lc__nav-hint"},Vi=["disabled"],Fi=["disabled"],Bi={key:1,class:"pf-small pf-muted pf-lc__finish-hint"},Gi=xe({__name:"LightCheck",props:{plan:{},submitting:{type:Boolean}},emits:["submit"],setup(v,{emit:Y}){const p=v,B=Y,{trackEvent:T}=vt(),A=ht("profiling"),$=P({}),R=P({}),N=P({}),C=P({}),G=a(()=>[{val:"led",label:Xn()},{val:"built_core",label:Qn()},{val:"contributed",label:Zn()},{val:"supported",label:es()},{val:"not_involved",label:ts()}]);function j(E,ee){if(ee==="not_involved"){$.value={...$.value,[E]:"deny"};const O={...R.value};delete O[E],R.value=O;return}$.value={...$.value,[E]:"confirm"},R.value={...R.value,[E]:ee}}function Z(E,ee){return ee==="not_involved"?$.value[E]==="deny":$.value[E]==="confirm"&&R.value[E]===ee}function w(E,ee){N.value={...N.value,[E]:ee}}function ae(E,ee){C.value={...C.value,[E]:ee}}const ie=a(()=>{const E=[];return(p.plan.cards||[]).length&&E.push({kind:"cards",title:ss(),subtitle:ns(),required:!0}),(p.plan.sjt||[]).length&&E.push({kind:"sjt",title:ls(),subtitle:os(),required:!0}),(p.plan.skill_probes||[]).length&&E.push({kind:"probes",title:rs(),subtitle:is(),required:!1}),E}),U=a(()=>ie.value.length),K=P(0),I=a(()=>ie.value[K.value]),oe=a(()=>K.value>=U.value-1),X=a(()=>(p.plan.cards||[]).every(E=>
1!!$.value[E.id])),pe=a(()=>(p.plan.sjt||[]).every(E=>!!N.value[E.id])),x=a(()=>X.value&&pe.value),H=a(()=>{const E=I.value;return E?E.kind==="cards"?X.value:E.kind==="sjt"?pe.value:!0:!0}),L=P(null);Me(K,()=>{T("profiling_check_step_viewed",{flow_id:A,check_version:1,step_type:I.value?.kind||"unknown",step_position:K.value+1,step_count:U.value,step_required:I.value?.required??!1}),He(()=>{L.value?.scrollIntoView({behavior:"smooth",block:"start"}),window.scrollTo({top:0,behavior:"smooth"})})});function M(){K.value>0&&(T("profiling_check_step_back",{flow_id:A,check_version:1,step_position:K.value+1}),K.value-=1)}function ce(){H.value&&(oe.value||(T("profiling_check_step_completed",{flow_id:A,check_version:1,step_type:I.value?.kind||"unknown",step_position:K.value+1,step_count:U.value}),K.value+=1))}function D(){!x.value||p.submitting||(T("profiling_check_step_completed",{flow_id:A,check_version:1,step_type:I.value?.kind||"unknown",step_position:K.value+1,step_count:U.value,final_step:!0}),B("submit",{cards:$.value,ownership:R.value,sjt:N.value,skill_probes:C.value}))}return Ke(()=>{T("profiling_check_step_viewed",{flow_id:A,check_version:1,step_type:I.value?.kind||"unknown",step_position:1,step_count:U.value,step_required:I.value?.required??!1})}),(E,ee)=>(n(),s("div",{ref_key:"rootEl",ref:L,class:"pf-card pf-lc"},[t("div",hi,[t("div",ki,[t("span",yi,o(e(d).profiling_project_check_progress({current:e(K)+1,total:e(U)})),1),e(I)?.required?f("",!0):(n(),s("span",bi,o(e(d).profiling_light_check_optional()),1))])]),e(I)?(n(),s("div",wi,[t("h2",$i,o(e(I).title),1),e(I).kind==="cards"?(n(),s("div",Ci,[(n(!0),s(k,null,te(v.plan.cards||[],O=>(n(),s("div",{key:O.id,class:"pf-vcard"},[t("div",Si,o(O.claim),1),t("div",Li,[(n(!0),s(k,null,te(e(G).filter(_=>_.val!=="not_involved"),_=>(n(),s("button",{key:_.val,type:"button",class:Q(["pf-involve-opt",{"pf-involve-opt--sel":Z(O.id,_.val)}]),onClick:q=>j(O.id,_.val)},o(_.label),11,Ii))),128)),t("button",{type:"button",class:Q(["pf-involve-opt pf-involve-opt--deny",{"pf-involve-opt--sel-deny":Z(O.id,"not_involved")}]),onClick:_=>j(O.id,"not_involved")},o(e(G).find(_=>_.val==="not_involved")?.label),11,Pi)])]))),128))])):e(I).kind==="sjt"?(n(),s("div",Ei,[(n(!0),s(k,null,te(v.plan.sjt||[],O=>(n(),s("div",{key:O.id,class:"pf-vcard"},[t("div",Ri,o(O.scenario),1),t("div",xi,[(n(!0),s(k,null,te(O.options,_=>(n(),s("button",{key:_.key,type:"button",class:Q(["pf-sopt",{"pf-sopt--sel":e(N)[O.id]===_.key}]),onClick:q=>w(O.id,_.key)},o(_.text),11,Ti))),128))])]))),128))])):(n(),s("div",Oi,[(n(!0),s(k,null,te(v.plan.skill_probes||[],O=>(n(),s("div",{key:O.id,class:"pf-vcard"},[t("div",Ai,o(O.scenario),1),t("div",Mi,[(n(!0),s(k,null,te(O.options,_=>(n(),s("button",{key:_.key,type:"button",class:Q(["pf-sopt",{"pf-sopt--sel":e(C)[O.id]===_.key}]),onClick:q=>ae(O.id,_.key)},o(_.text),11,ji))),128)),t("button",{type:"button",class:Q(["pf-sopt pf-sopt--none",{"pf-sopt--sel":e(C)[O.id]==="none"}]),onClick:_=>ae(O.id,"none")},o(e(d).profiling_light_check_probe_not_worked()),11,Ni)])]))),128))]))])):f("",!0),t("div",Di,[t("button",{type:"button",class:"pf-btn pf-btn--ghost",disabled:e(K)===0,onClick:M}," â "+o(e(d).common_back()),9,Ui),e(H)?f("",!0):(n(),s("span",Hi,o(e(d).profiling_light_check_nav_hint()),1)),e(oe)?(n(),s("button",{key:2,type:"button",class:"pf-btn pf-btn--primary",disabled:!e(x)||v.submitting,onClick:D},o(v.submitting?e(d).profiling_light_check_scoring():`${e(d).profiling_light_check_finish()} â`),9,Fi)):(n(),s("button",{key:1,type:"button",class:"pf-btn pf-btn--primary",disabled:!e(H),onClick:ce},o(e(d).common_next())+" â ",9,Vi))]),e(oe)&&!e(x)?(n(),s("p",Bi,o(e(d).profiling_light_check_finish_hint()),1)):f("",!0)],512))}}),qi=Object.assign(Te(Gi,[["__scopeId","data-v-fd8c560f"]]),{__name:"PageProfilingLightCheck"}),zi={class:"profiling-result","data-testid":"profiling-result"},Yi={class:"profiling-result-hero-banner"},Ki={class:"profiling-result-hero"},Wi={key:0,class:"profiling-result-hero-fit"},Ji={class:"profiling-result-hero-fit-ring","data-testid":"profiling-role-score"},Xi={class:"profiling-result-hero-fit-caption","data-testid":"profiling-requirements-met"},Qi={class:"profiling-result-hero-overview"},Zi={class:"card-style card-no-hover profiling-result-panel profiling-result-analysis"},er={class:"profiling-result-analysis-radar"},tr={class:"profiling-result-analysis-copy"},nr={key:0,class:"card-style card-no-hover profiling-result-panel profiling-result-standout profiling-result-identity"},sr={class:"profiling-result-panel-title"},or={class:"profiling-result-identity-headline"},lr={class:"profiling-result-panel-subtitle"},ir={class:"profiling-result-identity-grid"},rr={key:0,class:"profiling-result-identity-item"},ar={class:"profiling-result-identity-item-label"},cr={key:1,class:"profiling-result-identity-item"},ur={class:"profiling-result-identity-item-label"},_r={key:1,class:"card-style card-no-hover profiling-result-panel profiling-result-standout"},pr={class:"profiling-result-standout-list"},dr={class:"profiling-result-standout-item-icon"},fr=["src","alt"],gr={class:"profiling-result-standout-item-text"},mr={class:"profiling-result-standout-item-name"},vr={class:"profiling-result-standout-item-meta"},hr={class:"profiling-result-standout-item-score profiling-result-standout-item-score--strong"},kr={key:2,class:"card-style card-no-hover profiling-result-panel profiling-result-standout"},yr={class:"profiling-result-standout-list"},br={class:"profiling-result-standout-item-icon"},wr=["src","alt"],$r={class:"profiling-result-standout-item-text"},Cr={class:"profiling-result-standout-item-name"},Sr={class:"profiling-result-standout-item-meta"},Lr={class:"profiling-result-standout-item-score profiling-result-standout-item-score--weak"},Ir={key:3,class:"card-style card-no-hover profiling-result-panel profiling-result-standout"},Pr={class:"profiling-result-gap-pills"},Er={key:4,class:"card-style card-no-hover profiling-result-panel profiling-result-standout"},Rr={class:"profiling-result-panel-subtitle"},xr={class:"profiling-result-steps-list"},Tr={class:"profiling-result-steps-item-icon"},Or={class:"profiling-result-steps-item-content"},Ar={class:"profiling-result-steps-item-text"},Mr={key:5,class:"card-style card-no-hover profiling-result-panel profiling-result-standout"},jr={class:"profiling-result-all-list"},Nr={class:"profiling-result-all-item-icon"},Dr=["src","alt"],Ur={class:"profiling-result-all-item-name"},Hr={class:"profiling-result-all-item-level"},Vr={class:"profiling-result-all-item-score"},Fr={class:"profiling-result-panel-title"},Br={class:"profiling-result-panel-subtitle"},Gr={class:"profiling-result-more-info-actions"},qr={key:0,class:"profiling-result-more-info-form"},zr=["placeholder"],Yr={class:"profiling-result-panel-subtitle"},Kr={key:0,class:"profiling-result-more-info-result","data-testid":"profiling-more-info-result",role:"status"},Wr={key:0},Jr={key:7,class:"card-style card-no-hover profiling-result-panel profiling-result-signup"},Xr={class:"profiling-result-panel-title"},Qr={class:"profiling-result-panel-subtitle"},Zr={class:"profiling-result-panel-cta"},ea={key:8,class:"profiling-result-back"},ta={key:9,class:"card-style card-no-hover profiling-result-panel profiling-result-signup"},na={class:"profiling-result-panel-cta"},Vt=5,sa=xe({__name:"Result",props:{pack:{},signupHref:{},loginHref:{},saved:{type:Boolean,default:!1},updating:{type:Boolean,default:!1},supplementResult:{default:null},onboarding:{type:Boolean,default:!1},continuing:{type:Boolean,default:!1}},emits:["provide-more-info","add-source","continueOnboarding"],setup(v,{emit:Y}){const p=v,B=Y,{brand:T}=Wt(),A=a(()=>p.pack.professional_identity||null),$=P(!1),R=P(null),N=P(""),C={analyst:()=>Is(),architect:()=>Ls(),operator:()=>Ss(),debugger:()=>Cs(),leader:()=>$s(),builder:()=>ws(),designer:()=>bs(),visionary:()=>ys()};function G(r){return r?C[r]?.()||r:""}const j=a(()=>{const r=G(A.value?.primary_archetype?.slug),c=G(A.value?.secondary_archetype?.slug);return c?`${r} Ã ${c}`:r}),Z=a(()=>p.supplementResult?.status==="APPLIED"?cs():p.supplementResult?.status==="NO_CHANGE"?us():"");function w(){const r=N.value.trim();r.length<20||p.updating||B("provide-more-info",{text:r})}async function ae(){$.value=!0,await He(),R.value?.scrollIntoView({behavior:"smooth",block:"start"})}const ie=a(()=>p.pack.target_label||p.pack.target_role_text||_s()),U=a(()=>p.pack.role_readiness),K=a(()=>U.value?.total??0),I=a(()=>U.value?.completed??0),oe=a(()=>!!U.value?.has_role_grade),X=a(()=>oe.value?Math.round(U.value?.percent??0):0),pe=a(()=>{const r=p.pack.role_review?.passing||[],c=p.pack.skill_rows||[],V=Math.min(r.filter(W=>c.find(le=>le.skill_name===W.name)?.tier==="verified").length,I.value);return{verified:V,screened:Math.max(0,I.value-V)}}),x=a(()=>(p.pack.skill_rows||[]).filter(r=>(r.level||0)>0||(r.score||0)>0).length),H=[{key:"CORE_SKILLS",label:"Core"},{key:"ROLE_SPECIFIC_SKILLS",label:"Role-specific"},{key:"METHODOLOGIES",label:"Methodologies"},{key:"TOOLS",label:"Tools"}],L=r=>r.length?r.reduce((c,V)=>c+(V.score||0),0)/r.length:0;function M(r){const c={CORE_SKILLS:[],ROLE_SPECIFIC_SKILLS:[],METHODOLOGIES:[],TOOLS:[]};for(const W of r)W.category&&c[W.category]&&c[W.category].push(W);const V=H.map(({key:W,label:le})=>{const S=c[W];return{key:W,label:le,verifiedAvg:L(S.filter(g=>g.tier==="verified")),allAvg:L(S)}});return V.some(W=>W.allAvg>0)?V:[]}const ce=a(()=>{const r=new Set,c=p.pack.role_review;for(const V of c?.passing||[])r.add(V.name);for(const V of c?.weak||[])r.add(V.name);return r}),{data:D}=mt(),E=a(()=>
1{const r=(p.pack.skill_rows||[]).filter(c=>ce.value.has(c.skill_name));return[{key:"role",label:"Your role",categories:M(r)}]}),ee=a(()=>{const r=U.value?.category_scores||{},c=(p.pack.skill_rows||[]).filter(le=>ce.value.has(le.skill_name)),V=new Map(M(c).map(le=>[le.key,le.verifiedAvg])),W=H.map(({key:le,label:S})=>{const g=r[le]||0;return{key:le,label:S,verifiedAvg:Math.min(V.get(le)||0,g),allAvg:g}});return W.some(le=>le.allAvg>0)?[{key:"role",label:ie.value,categories:W}]:E.value}),O=a(()=>(p.pack.skill_rows||[]).filter(r=>(r.level||0)>0||(r.score||0)>0).slice().sort((r,c)=>(c.score||0)-(r.score||0)).slice(0,4)),_=a(()=>(p.pack.skill_rows||[]).filter(r=>(r.level||0)>0||(r.score||0)>0).slice().sort((r,c)=>(c.score||0)-(r.score||0))),q=P(!1),ue=a(()=>q.value?_.value:_.value.slice(0,Vt)),ne={1:"Basic",2:"Intermediate",3:"Advanced"};function _e(r){return ne[Math.max(0,Math.min(3,r||0))]||"â"}const $e={...Object.fromEntries(H.map(r=>[r.key,r.label])),OTHER:"Other"};function he(r){return $e[r||""]||r||"â"}function Oe(r){return r?r.charAt(0).toUpperCase()+r.slice(1):"Screened"}const Ne=a(()=>p.pack.role_review?.weak||[]),Pe=a(()=>p.pack.role_review?.missing||[]),Ee=a(()=>Ne.value.map(r=>{const c=(p.pack.skill_rows||[]).find(V=>V.skill_name===r.name);return{name:r.name,score:Math.round(r.score??c?.score??0),levelLabel:_e(c?.level),tierLabel:Oe(c?.tier)}})),y=a(()=>{const r=[],c=Pe.value[0]||p.pack.signal_gaps?.[0],V=Ee.value[0]?.name;return O.value.length&&r.push({text:ds(),action:"skills-tests",actionLabel:ps()}),c&&r.push({text:gs({skill:c}),action:"more-info",actionLabel:fs()}),V?r.push({text:ms({skill:V,role:ie.value})}):c&&r.push({text:vs({skill:c})}),r.push({text:ks({brandName:T.name}),action:"profile",actionLabel:hs()}),r.slice(0,4)});function se(r){return r==="skills-tests"?p.saved?"/profile/skills-tracker":p.signupHref:r==="profile"?p.saved?"/profile":p.signupHref:""}const ge=[{pattern:/test|assessment|practice|quiz|exam/i,icon:Bs},{pattern:/project|portfolio|codebase|repo|repository|github/i,icon:Vs},{pattern:/learn|course|upskill|study|training/i,icon:Fs}];function ke(r){return ge.find(c=>c.pattern.test(r))?.icon||Gs}const Ae=a(()=>p.pack.analysis?.summary?p.pack.analysis.summary:`We read your work and screened ${x.value} ${x.value===1?"skill":"skills"} for ${ie.value}. Here's where you stand and what to build next.`),de=a(()=>{const r=Ae.value.trim(),c=r.match(/^(.+?[.!?])(\s+([\s\S]*))?$/);return c?{lead:c[1],rest:c[3]||""}:{lead:r,rest:""}}),h=a(()=>qt(D.value)||"/"),m=a(()=>Hs(ee.value[0]?.categories??[],"profiling"));return(r,c)=>{const V=Ds,W=Us,le=as,S=rt;return n(),s("div",zi,[t("div",Yi,[t("div",Ki,[e(oe)?(n(),s("div",Wi,[t("div",Ji,[F(V,{percentage:e(X),verified:e(pe).verified,screened:e(pe).screened,"not-met":Math.max(0,e(K)-e(I)),stroke:13,dark:""},null,8,["percentage","verified","screened","not-met"])]),t("p",Xi,[b(o(e(I))+" of "+o(e(K))+" requirements met for",1),c[4]||(c[4]=t("br",null,null,-1)),b(" "+o(e(ie)),1)])])):f("",!0),c[5]||(c[5]=t("hr",{class:"profiling-result-hero-divider"},null,-1)),t("p",Qi,[t("strong",null,o(e(de).lead),1),e(de).rest?(n(),s(k,{key:0},[b(o(e(de).rest),1)],64)):f("",!0)])])]),t("div",Zi,[c[6]||(c[6]=t("h2",{class:"profiling-result-panel-title"},"Your skills map",-1)),t("div",er,[F(W,{sets:e(ee)},null,8,["sets"])]),t("p",tr,[t("strong",null,o(e(m).headline),1),b(" â "+o(e(m).detail),1)])]),e(A)?(n(),s("section",nr,[t("h2",sr,o(e(d).profiling_identity_eyebrow()),1),t("p",or,o(e(j)),1),t("p",lr,o(e(A).primary_archetype.reason),1),t("div",ir,[e(A).signature_strength?(n(),s("article",rr,[t("span",ar,o(e(d).profiling_identity_strength()),1),t("strong",null,o(e(A).signature_strength.title),1),t("ul",null,[(n(!0),s(k,null,te(e(A).signature_strength.points,g=>(n(),s("li",{key:g},o(g),1))),128))])])):f("",!0),e(A).distinguishing_point?(n(),s("article",cr,[t("span",ur,o(e(d).profiling_identity_edge()),1),t("strong",null,o(e(A).distinguishing_point.title),1),t("ul",null,[(n(!0),s(k,null,te(e(A).distinguishing_point.points,g=>(n(),s("li",{key:g},o(g),1))),128))])])):f("",!0)])])):f("",!0),e(O).length?(n(),s("div",_r,[c[7]||(c[7]=t("h2",{class:"profiling-result-panel-title"},"Your top skills",-1)),c[8]||(c[8]=t("p",{class:"profiling-result-panel-subtitle"}," The skills where your evidence is strongest for this role. ",-1)),t("ul",pr,[(n(!0),s(k,null,te(e(O),g=>(n(),s("li",{key:g.skill_name,class:"profiling-result-standout-item"},[t("span",dr,[t("img",{src:e(dt)(g.skill_name),alt:g.skill_name,loading:"lazy"},null,8,fr)]),t("span",gr,[t("span",mr,o(g.skill_name),1),t("span",vr,o(_e(g.level))+" · "+o(he(g.category)),1)]),t("span",hr,o(Math.round(g.score||0))+"%",1)]))),128))])])):f("",!0),e(Ee).length?(n(),s("div",kr,[c[9]||(c[9]=t("h2",{class:"profiling-result-panel-title"},"Skills to improve on",-1)),c[10]||(c[10]=t("p",{class:"profiling-result-panel-subtitle"}," Skills you have some evidence for, but not yet enough to meet this role's bar. ",-1)),t("ul",yr,[(n(!0),s(k,null,te(e(Ee),g=>(n(),s("li",{key:g.name,class:"profiling-result-standout-item"}
1,[t("span",br,[t("img",{src:e(dt)(g.name),alt:g.name,loading:"lazy"},null,8,wr)]),t("span",$r,[t("span",Cr,o(g.name),1),t("span",Sr,o(g.tierLabel)+" · "+o(g.levelLabel),1)]),t("span",Lr,o(g.score)+"%",1)]))),128))])])):f("",!0),e(Pe).length?(n(),s("div",Ir,[c[11]||(c[11]=t("h2",{class:"profiling-result-panel-title"},"Missing evidence",-1)),c[12]||(c[12]=t("p",{class:"profiling-result-panel-subtitle"}," Focus on adding these skills more in your future upskilling, CV or codebase. ",-1)),t("ul",Pr,[(n(!0),s(k,null,te(e(Pe),g=>(n(),s("li",{key:g,class:"profiling-result-gap-pill profiling-result-gap-pill--missing"},o(g),1))),128))])])):f("",!0),e(y).length?(n(),s("div",Er,[c[13]||(c[13]=t("h2",{class:"profiling-result-panel-title"},"Next steps",-1)),t("p",Rr,o(e(d).profiling_next_steps_intro()),1),t("ol",xr,[(n(!0),s(k,null,te(e(y),g=>(n(),s("li",{key:g.text,class:"profiling-result-steps-item"},[t("span",Tr,[(n(),J(Jt(ke(g.text))))]),t("span",Or,[t("span",Ar,o(g.text),1),g.action==="more-info"?(n(),s("button",{key:0,type:"button",class:"profiling-result-steps-item-action","data-testid":"profiling-next-step-more-info",onClick:ae},o(g.actionLabel),1)):se(g.action)?(n(),J(le,{key:1,to:se(g.action),class:"profiling-result-steps-item-action","data-testid":`profiling-next-step-${g.action}`},{default:re(()=>[b(o(g.actionLabel),1)]),_:2},1032,["to","data-testid"])):f("",!0)])]))),128))])])):f("",!0),e(_).length?(n(),s("div",Mr,[c[14]||(c[14]=t("h2",{class:"profiling-result-panel-title"},"All screened skills",-1)),c[15]||(c[15]=t("p",{class:"profiling-result-panel-subtitle"}," Every skill we found evidence for, ranked from strongest to weakest. ",-1)),t("ul",jr,[(n(!0),s(k,null,te(e(ue),g=>(n(),s("li",{key:g.skill_name,class:"profiling-result-all-item"},[t("span",Nr,[t("img",{src:e(dt)(g.skill_name),alt:g.skill_name,loading:"lazy"},null,8,Dr)]),t("span",Ur,o(g.skill_name),1),t("span",Hr,o(_e(g.level)),1),t("span",Vr,o(Math.round(g.score||0))+"%",1)]))),128))]),e(_).length>Vt?(n(),s("button",{key:0,type:"button",class:"profiling-result-all-toggle",onClick:c[0]||(c[0]=g=>q.value=!e(q))},o(e(q)?"See less":"View more"),1)):f("",!0)])):f("",!0),v.onboarding?f("",!0):(n(),s("section",{key:6,ref_key:"moreInfoSection",ref:R,class:"card-style card-no-hover profiling-result-panel profiling-result-more-info"},[t("h2",Fr,o(e(d).profiling_more_info_title()),1),t("p",Br,o(e(d).profiling_more_info_intro()),1),t("div",Gr,[F(S,{"data-testid":"profiling-more-info-open","light-primary":"",onHandleClick:ae},{default:re(()=>[b(o(e(d).profiling_more_info_write()),1)]),_:1}),F(S,{grey:"",onHandleClick:c[1]||(c[1]=g=>B("add-source"))},{default:re(()=>[b(o(e(d).profiling_more_info_source()),1)]),_:1})]),e($)?(n(),s("div",qr,[Ie(t("textarea",{"onUpdate:modelValue":c[2]||(c[2]=g=>je(N)?N.value=g:null),"data-testid":"profiling-more-info-text",rows:"4",placeholder:e(d).profiling_more_info_placeholder()},null,8,zr),[[Ue,e(N)]]),t("p",Yr,o(e(d).profiling_more_info_recheck()),1),F(S,{"data-testid":"profiling-more-info-submit",disabled:e(N).trim().length<20,loading:v.updating,onClick:w},{default:re(()=>[b(o(e(d).profiling_more_info_update()),1)]),_:1},8,["disabled","loading"]),v.supplementResult&&["APPLIED","NO_CHANGE"].includes(v.supplementResult.status)?(n(),s("div",Kr,[t("strong",null,o(e(Z)),1),v.supplementResult.applied_changes.skills?.length?(n(),s("ul",Wr,[(n(!0),s(k,null,te(v.supplementResult.applied_changes.skills,g=>(n(),s("li",{key:g.skill_slug},o(g.skill_slug)+": "+o(g.old_score)+" â "+o(g.new_score),1))),128))])):f("",!0)])):f("",!0)])):f("",!0)],512)),v.onboarding?(n(),s("div",Jr,[t("h2",Xr,o(e(d).career_setup_baseline_result_title()),1),t("p",Qr,o(e(d).career_setup_baseline_result_desc()),1),t("div",Zr,[F(S,{arrow:"",loading:v.continuing,"data-testid":"career-setup-baseline-continue",onHandleClick:c[3]||(c[3]=g=>B("continueOnboarding"))},{default:re(()=>[b(o(e(d).career_setup_baseline_result_continue()),1)]),_:1},8,["loading"])])])):v.saved?(n(),s("div",ea,[F(S,{link:"",href:e(h)},{default:re(()=>[b(o(e(d).programme_back_to_home()),1)]),_:1},8,["href"])])):(n(),s("div",ta,[c[16]||(c[16]=t("h2",{class:"profiling-result-panel-title"},"Save your profile",-1)),c[17]||(c[17]=t("p",{class:"profiling-result-panel-subtitle"}," Create a free account to keep this grade, get matched to jobs, and verify your top skills. ",-1)),t("div",na,[F(S,{href:v.signupHref,arrow:""},{default:re(()=>[b(o(e(d).profiling_flow_sign_up_to_save()),1)]),_:1},8,["href"]),F(S,{href:v.loginHref,arrow:"",outline:""},{default:re(()=>[b(o(e(d).profiling_flow_login_to_update_profile()),1)]),_:1},8,["href"])])]))])}}}),oa=Object.assign(Te(sa,[["__scopeId","data-v-ef9b9439"]]),{__name:"PageProfilingResult"}),la={key:0,class:"pf-bg","aria-hidden":"true"},ia={class:"pf-stage"},ra={key:1,class:"pf-hero"},aa={key:2,class:"pf-error","data-testid":"profiling-error"},ca={key:3,class:"pf-card pf-resuming"},ua={class:"pf-card__title"},_a={class:"pf-small pf-muted"},pa={key:4,class:"pf-card pf-resuming","data-testid":"career-profile-start-error"},da=["disabled"],fa={key:5,class:"pf-card pf-resuming"},ga={class:"pf-card__title"},ma={class:"pf-small pf-muted"},va={key:6,class:"pf-notice-retake"},ha={key:7,class:"pf-card pf-role-card"},ka={key:0,class:"pf-notice pf-small"},ya={key:1,class:"pf-notice pf-small"},ba={key:2,class:"pf-small pf-muted pf-field-label"},wa={key:3,class:"pf-small pf-muted pf-field-label"},$a={key:4,class:"pf-small pf-muted pf-field-label"},Ca={class:"pf-role-form"},Sa=["aria-expanded"],La={key:0,class:"pf-combo__list"},Ia=["onMousedown","onMouseenter"],Pa={key:0,class:"pf-combo__empty pf-small pf-muted"},Ea={key:0,class:"pf-seniority-form"},Ra={class:"pf-select"},xa=["value"],Ta={key:1,class:"pf-role-reset"},Oa=["disabled"],Ft="talentlabs-onboarding-profile-sources",Aa=2500,Ma=180*1e3,ja=2500,Na=155,Bt=3,Da=2e3,Gt=2,Ua=2e3,Ha=xe({__name:"index",setup(v){const Y=Ps(),p=As(),{status:B,data:T,getSession:A}=mt(),{selectRoleOnce:$}=zs(),{setStatus:R}=Ys(),{$sentryCaptureException:N}=Es(),C=a(()=>Y.query.onboarding==="1"&&B.value==="authenticated"),G=Un,{listRoles:j,createPack:Z,getMyPack:w,getPack:ae,requestResumeUploadUrl:ie,addSource:U,addMoreInformation:K,getMoreInformationStatus:I,getOAuthStartUrl:oe,compilePack:X,getVerificationPlan:pe,submitVerification:x,uploadResumeToS3:H,claimPack:L,useProfilingAnonToken:M,useProfilingPackId:ce,clearProfilingCookies:D}=Ks(),E=ce();function ee(l){const i=`${l}=`,u=document.cookie.split("; ").find(z=>z.startsWith(i));return u?decodeURIComponent(u.slice(i.length)):null}const O=(()=>{const l=Y.query.github,i=Y.query.linkedin;return l==="connected"?"github":i==="signed_in"?"linkedin":null})(),_=P(O||E.value||Y.query.onboarding==="1"?"resuming":B.value==="authenticated"?"init":"role"),{trackEvent:q,trackStep:ue}=vt(),ne=P(ht("profiling")),_e=P([]);function $e(){try{const l=JSON.parse(sessionStorage.getItem(Ft)||"[]");_e.value=l.filter(i=>["github","linkedin","resume"].includes(i))}catch{_e.value=[]}}function he(){sessionStorage.setItem(Ft,JSON.stringify(_e.value))}function Oe(l){const i=l.map(u=>u.source_type.toLowerCase()).filter(u=>["github","linkedin","resume"].includes(u));i.length&&(_e.value=[...new Set(i)])}function Ne(){_e.value.length&&(he(),_.value="connect")}function Pe(){if(_.value==="connect"){_.value="source-select";return}De("/onboarding/benchmark")}const Ee=a(()=>C.value&&(_.value==="source-select"||_.value==="connect"));Me(_,(l,i)=>{ue("profiling",l,"viewed",{previous_step:i,flow_variant:C.value?"onboarding":"standalone"}),He(()=>{window.scrollTo({top:0,behavior:"smooth"})})});const y=P(null),se=P([]),ge=P(null),ke=P(!1),Ae=a(()=>B.value==="authenticated");Me(B,async(l,i)=>{if(l!=="authenticated"||i==="authenticated")return;const u=M().value,z=ce().value;if(!(!u||!z))try{if(await L(z,u),D(),await A({force:!0}
1),pt(["skills-v2-home-data","skills-v2-my-skills-data","skills-v2-assessments-data"]),y.value){const ve=await ae(y.value.id_slug);y.value=ve,se.value=ve.sources||[]}}catch(ve){N(ve)}});const de=P(null),h=P(!1),m=P(null),r=P(!1),c=P(""),V=P(!1);Me(r,l=>{l&&He(()=>window.scrollTo({top:0,behavior:"smooth"}))});const W=it({github:0,linkedin:0,resume:0,cert:0,portfolio:0}),le=it({github:0,linkedin:0,resume:0,cert:0,portfolio:0}),S=P(Date.now());let g=null;function We(l){W[l]===0&&(le[l]=Date.now()),W[l]+=1}function Je(l){W[l]=Math.max(0,W[l]-1),W[l]===0&&(le[l]=0)}const kt=a(()=>Object.values(W).some(l=>l>0));Me(kt,l=>{l&&!g?(S.value=Date.now(),g=gt(()=>{S.value=Date.now()},500)):!l&&g&&(clearInterval(g),g=null)}),lt(()=>{g&&clearInterval(g)});const Zt={github:"GitHub",linkedin:"LinkedIn profile",resume:"résumé",cert:"certificate",portfolio:"page"};function Ve(l){if(W[l]===0)return"";const i=(S.value-le[l])/1e3;return i>=8?"Reading & summarizingâ¦":i>=3?`Fetching your ${Zt[l]}â¦`:"Connectingâ¦"}const en=a(()=>({github:Ve("github"),linkedin:Ve("linkedin"),resume:Ve("resume"),cert:Ve("cert"),portfolio:Ve("portfolio")})),Fe=P(null),Be=P([]),yt=P(!0),bt=P(!1),ye=P(""),be=P(""),tn={JUNIOR:"Junior",MID_LEVEL:"Mid-level",SENIOR:"Senior"};function nn(l){return tn[l]||l}const wt=["JUNIOR","MID_LEVEL","SENIOR"],at=a(()=>Be.value.filter(l=>(l.levels_part?.length??0)>0).map(l=>({value:l.id_slug,label:l.name}))),Ge=a(()=>Be.value.find(l=>l.id_slug===ye.value)||null),Xe=a(()=>[...Ge.value?.levels_part??[]].sort((i,u)=>wt.indexOf(i.seniority_level)-wt.indexOf(u.seniority_level)).map(i=>({value:i.seniority_level,label:nn(i.seniority_level)}))),Qe=a(()=>Ge.value?.levels_part?.find(i=>i.seniority_level===be.value)?.id_slug||null),sn=a(()=>!!Qe.value);Me(ye,()=>{const l=Xe.value;if(!l.length){be.value="";return}const i=l.find(u=>u.value==="MID_LEVEL")||l[0];be.value=i.value});const Ze=P(null);async function $t(l,i,u,z){ye.value=l,Ce.value=i,Ze.value=z,await He(),u&&Xe.value.some(ve=>ve.value===u)&&(be.value=u)}async function et(){const l=T.value?.selected_role?.role_level_part?.role_part,i=T.value?.selected_role?.role_level_part?.seniority_level;return!l?.id_slug||!Be.value.some(u=>u.id_slug===l.id_slug)?!1:(await $t(l.id_slug,l.name,i||null,"my_skills"),!0)}async function Ct(l){for(const i of Be.value){const u=i.levels_part?.find(z=>z.id_slug===l);if(u)return await $t(i.id_slug,i.name,u.seniority_level,"pack"),!0}return!1}function on(){ye.value="",be.value="",Ce.value="",Ze.value=null}const Ce=P(""),Se=P(!1),me=P(-1),St=P(null),ct=a(()=>{const l=Ce.value.trim().toLowerCase();return l?at.value.filter(i=>i.label.toLowerCase().includes(l)):at.value});function ln(){Se.value=!0,me.value=-1}function rn(){Se.value=!0,me.value=-1,Ge.value&&Ce.value!==Ge.value.name&&(ye.value="")}function Lt(l){ye.value=l.value,Ce.value=l.label,Se.value=!1,me.value=-1}function an(l){if(!Se.value&&(l.key==="ArrowDown"||l.key==="ArrowUp")){Se.value=!0;return}const i=ct.value;l.key==="ArrowDown"?(l.preventDefault(),me.value=Math.min(me.value+1,i.length-1)):l.key==="ArrowUp"?(l.preventDefault(),me.value=Math.max(me.value-1,0)):l.key==="Enter"?me.value>=0&&i[me.value]&&(l.preventDefault(),Lt(i[me.value])):l.key==="Escape"&&(Se.value=!1)}qs(St,()=>{Se.value=!1});async function It(l){we(),V.value=!1,h.value=!0,_.value="resuming";try{const i=await Z({target_role_level_id_slug:l});y.value=i,se.value=i.sources||[],_.value="source-select"}catch(i){Le(i,"Could not start. Please try again."),V.value=!0}finally{h.value=!1}}async function cn(){const l=T.value?.selected_role?.role_level_part?.id_slug;if(!l){await De("/onboarding/direction",{replace:!0});return}await It(l)}Ke(async()=>{$e();const l=(async()=>{try{Be.value=await j()}catch{bt.value=!0}finally{yt.value=!1}})();if(!O&&C.value){const i=T.value?.selected_role?.role_level_part?.id_slug;if(!i){await De("/onboarding/direction",{replace:!0});return}try{const u=await w();if(u?.target_role_level_id_slug===i){y.value=u,se.value=u.sources||[],u.questions_ready&&u.compile_status==="COMPILING"?(await ut(),_.value="check"):ft(u)?_.value="result":(Oe(se.value),_.value=_e.value.length?"connect":"source-select",_.value==="connect"&&nt());return}}catch{}await It(i);return}if(!O&&B.value==="authenticated"){try{const i=await w();if(i?.questions_ready&&i.compile_status==="COMPILING"){y.value=i,se.value=i.sources||[],await ut(),_.value="check";return}if(i&&ft(i)){const u=i.target_role_level_id_slug||null,z=T.value?.selected_role?.role_level_part?.id_slug||null;if(z&&u&&z!==u){de.value="role_changed",await l,await et(),_.value="role";return}y.value=i,se.value=i.sources||[],_.value="result";return}if(i){await l;const u=i.target_role_level_id_slug||null;if(i.version>0){de.value="no_skills_found";const z=T.value?.selected_role?.role_level_part?.id_slug||null;!!(z&&u&&z!==u)?await et():u&&await Ct(u)}else de.value="unfinished",u&&await Ct(u)}else await l,await et()}catch{}_.value="role"}if(!O&&B.value!=="authenticated"){const i=E.value||ee("profiling_pack_id");if(i)try{const u=await ae(i);if(u.questions_ready||ft(u)){const z=await pe(u.id_slug);y.value=u,se.value=u.sources||[],ge.value=z.plan,_.value=z.completed?"result":"check";return}}catch{}}!O&&_.value==="resuming"&&(_.value="role"),await l});const Pt=a(()=>`/signup?next=${encodeURIComponent("profiling")}`),Et=a(()=>`/login?next=${encodeURIComponent("profiling")}`),un=a(()=>y.value?.target_label||y.value?.target_role_text||Ge.value?.name||"Your role"),_n=a(()=>y.value?.target_label||null),pn=a(()=>_.value==="resuming"||_.value==="init");function we(){c.value=""}function Le(l,i){Ms(l,{handle400Error:u=>{c.value=Ut(u.response)||i},handleUnknownError:()=>{c.value=i}})}async function dn(){if(Qe.value){we(),h.value=!0,ue("profiling","role","started",{role_id:ye.value,seniority:be.value||""});try{const l=await Z({target_role_level_id_slug:Qe.value});if(y.value=l,se.value=l.sources||[],B.value==="authenticated")try{await $({role_level_id_slug:Qe.value,selected:!0}),await A({force:!0}
1),pt(["skills-v2-home-data","skills-v2-my-skills-data","skills-v2-assessments-data"])}catch(i){N(i)}ue("profiling","role","completed",{role_id:ye.value,seniority:be.value||""}),_.value="connect"}catch(l){ue("profiling","role","failed",{error_type:l instanceof Error?l.name:"unknown"}),Le(l,"Could not start. Please try again.")}finally{h.value=!1}}}async function Re(){if(y.value)try{const l=await ae(y.value.id_slug);y.value=l,se.value=l.sources||[]}catch{}}let qe=null,Rt=0;function fn(l){return!(l.is_active===!1||l.fetch_status==="FAILED"||l.has_summary===!0)}const xt=a(()=>se.value.some(fn));function tt(){qe&&(clearInterval(qe),qe=null)}function nt(){qe||_.value==="connect"&&xt.value&&(Rt=Date.now(),qe=gt(async()=>{if(_.value!=="connect"||Date.now()-Rt>Ma){tt();return}await Re(),xt.value||tt()},Aa))}lt(tt);async function gn(){if(y.value){we(),We("github"),Fe.value="github",q("profiling_source_requested",{flow_id:ne.value,source_type:"github"});try{const{authorize_url:l}=await oe(y.value.id_slug,"github");window.location.href=l}catch(l){q("profiling_source_failed",{flow_id:ne.value,source_type:"github",error_type:l instanceof Error?l.name:"unknown"}),Le(l,"Could not start GitHub sign-in. Please try again."),Je("github"),Fe.value=null}}}async function mn(){if(y.value){we(),We("linkedin"),Fe.value="linkedin",q("profiling_source_requested",{flow_id:ne.value,source_type:"linkedin"});try{const{authorize_url:l}=await oe(y.value.id_slug,"linkedin");window.location.href=l}catch(l){q("profiling_source_failed",{flow_id:ne.value,source_type:"linkedin",error_type:l instanceof Error?l.name:"unknown"}),Le(l,"Could not start LinkedIn sign-in. Please try again."),Je("linkedin"),Fe.value=null}}}async function vn(l){if(y.value){we(),We("resume"),q("profiling_source_requested",{flow_id:ne.value,source_type:"resume"});try{const i=l.type||"application/octet-stream",u=await ie(y.value.id_slug,{display_name:l.name,content_type:i});await H(u.presigned_put_object_url,l,i),await U(y.value.id_slug,{source_type:"RESUME",resume_file_id_slug:u.resume_file_id_slug}),await Re(),nt(),q("profiling_source_connected",{flow_id:ne.value,source_type:"resume"})}catch(i){q("profiling_source_failed",{flow_id:ne.value,source_type:"resume",error_type:i instanceof Error?i.name:"unknown"}),Le(i,"Résumé upload failed. Please try again.")}finally{Je("resume")}}}const hn={CERT:"cert",PORTFOLIO:"portfolio",LINKEDIN:"linkedin"};async function kn(l){if(!y.value)return;we();const i=hn[l.sourceType];We(i);const u=l.sourceType.toLowerCase();q("profiling_source_requested",{flow_id:ne.value,source_type:u});try{await U(y.value.id_slug,{source_type:l.sourceType,url:l.url}),await Re(),nt(),q("profiling_source_connected",{flow_id:ne.value,source_type:u})}catch(z){q("profiling_source_failed",{flow_id:ne.value,source_type:u,error_type:z instanceof Error?z.name:"unknown"}),Le(z,"Could not add that link. Please check the URL and try again.")}finally{Je(i)}}async function Tt(l=!1){if(y.value){for(let i=0;i<Na;i++){await new Promise(z=>setTimeout(z,ja));let u;try{u=await ae(y.value.id_slug)}catch{continue}if(y.value=u,se.value=u.sources||[],u.compile_status==="READY"||l&&u.compile_status==="COMPILING"&&u.questions_ready)return;if(u.compile_status==="STALE"||u.compile_status==="FAILED")throw new Error("compile_failed")}throw new Error("compile_timeout")}}function Ot(l){const i=l;if(i?.response?.status!==400)return!1;const u=Ut(i.response)||"";return/no source summaries ready|no source summar|summaries ready/i.test(u)}async function yn(l){for(let i=0;i<=Bt;i++)try{await X(l);return}catch(u){if(i<Bt&&Ot(u)){await new Promise(z=>setTimeout(z,Da)),await Re();continue}throw u}}async function bn(){if(y.value){we(),ue("profiling","connect","completed",{source_count:se.value.filter(l=>l.has_summary).length}),ue("profiling","compile","started"),q("profiling_compile_started",{flow_id:ne.value}),_.value="compile";try{await Re(),y.value.compile_status!=="READY"&&(await yn(y.value.id_slug),await Tt(!0)),pt(["skills-v2-home-data","skills-v2-my-skills-data","skills-v2-assessments-data"]),await ut(),ue("profiling","compile","completed"),q("project_check_started",{flow_id:ne.value}),_.value="check"}catch(l){const i=l instanceof Error?l.message:"";i==="compile_timeout"?c.value="Reading your sources is taking longer than usual. Please click Continue to try again.":i==="compile_failed"?c.value="We couldn't build a profile from those sources. Try adding another â a résumé, GitHub, or a portfolio link works best â then continue."
1:i==="verification_plan_failed"?c.value="We couldn't prepare your quick check. Please try again.":Ot(l)?c.value="Make sure at least one source shows â connected, then continue.":c.value="Something went wrong building your profile. Please try again.",ue("profiling","compile","failed",{error_code:i||"unknown"}),q("profiling_failed",{flow_id:ne.value,stage:"compile",error_code:i||"unknown"}),_.value="connect"}}}async function wn(){if(!y.value)return;const l=await pe(y.value.id_slug);ge.value=l.plan}let ze=!1,Ye=null,st=null;lt(()=>{ze=!0,Ye&&clearTimeout(Ye),Ye=null,st?.(),st=null});function $n(){return new Promise(l=>{st=l,Ye=setTimeout(()=>{Ye=null,st=null,l()},2e3)})}async function ut(){for(let l=0;l<=Gt;l++)try{await wn();return}catch{if(l<Gt){await new Promise(i=>setTimeout(i,Ua));continue}throw new Error("verification_plan_failed")}}async function At(l){if(y.value){we(),r.value=!0,ue("profiling","check_submit","started"),ue("profiling","scoring","started");try{await Re(),y.value.compile_status!=="READY"&&await Tt(),await x(y.value.id_slug,{responses:l}),await Re(),q("profiling_ready",{flow_id:ne.value,flow_variant:C.value?"onboarding":"standalone"}),ue("profiling","check_submit","completed"),q("project_check_completed",{flow_id:ne.value}),ue("profiling","scoring","completed"),_.value="result"}catch(i){ue("profiling","scoring","failed",{error_code:"submission_failed"}),q("profiling_failed",{flow_id:ne.value,stage:"scoring",error_code:"submission_failed"}),Le(i,"Could not score your answers. Please try again.")}finally{r.value=!1}}}async function Cn(l){if(y.value){ze=!1,we(),h.value=!0,m.value=null;try{let i=await K(y.value.id_slug,l);for(let u=0;u<90&&!(ze||["APPLIED","NO_CHANGE","FAILED"].includes(i.status));u+=1){if(await $n(),ze)return;i=await I(y.value.id_slug,i.id_slug)}if(ze)return;if(m.value=i,i.status==="FAILED")throw new Error(i.message||Dt());await Re()}catch(i){Le(i,Dt())}finally{h.value=!1}}}function Sn(){_.value="connect"}async function Ln(){if(!(!C.value||ke.value)){we(),ke.value=!0;try{await R("COMPLETED"),await De("/onboarding/complete?baseline=screened")}catch(l){Le(l,"Could not finish your setup. Please try again.")}finally{ke.value=!1}}}async function In(){tt(),we(),y.value=null,se.value=[],ge.value=null,de.value=null,r.value=!1,h.value=!1,ye.value="",be.value="",Ce.value="",Ze.value=null,_.value="role",B.value==="authenticated"&&await et()}Ke(async()=>{if(q("profiling_started",{flow_id:ne.value,flow_variant:C.value?"onboarding":"standalone",entry_point:String(Y.query.entry||Y.query.onboarding||"direct")}),ue("profiling",_.value,"viewed",{flow_variant:C.value?"onboarding":"standalone"}),!O)return;const l=E.value||ee("profiling_pack_id");if(!l){c.value="Could not resume your session. Please start again.",_.value="role";return}h.value=!0;try{const i=await ae(l);y.value=i,se.value=i.sources||[],Oe(se.value),C.value&&!_e.value.includes(O)&&(_e.value.push(O),he()),_.value="connect",nt();const u={...Y.query};delete u.github,delete u.linkedin,De({path:"/profiling",query:u},{replace:!0})}catch{c.value="Could not resume your session. Please start again.",_.value="role"}finally{h.value=!1}});const Pn=p.public.siteUrl,{brand:En}=Wt();return Rs({title:()=>`Get your skill grade in 2 minutes | ${En.name}`,description:()=>"Connect a source or two â we read what you have actually built, then a quick check screens you in. Walk away with a real skill grade.",ogTitle:()=>"Get your skill grade in 2 minutes",ogUrl:()=>`${Pn}/profiling`}),(l,i)=>{const u=uo,z=Yt,ve=Ns,Rn=Ts,xn=rt,Tn=wo,On=Cl,Mt=Fl,An=vi,Mn=qi,jn=oa,Nn=Os;return n(),J(Nn,{name:e(C)?"onboarding":"landing"},{default:re(()=>[(n(),J(Jt(e(C)?e(G):"div"),{"active-step":e(C)?3:void 0,"show-back":e(Ee)||void 0,onBack:Pe},{default:re(()=>[t("div",{class:Q(["pf-page",{"pf-page--onboarding":e(C)}])},[e(C)?f("",!0):(n(),s("div",la,[...i[3]||(i[3]=[t("span",{class:"pf-bg__blob pf-bg__blob--1"},null,-1),t("span",{class:"pf-bg__blob pf-bg__blob--2"},null,-1),t("span",{class:"pf-bg__grid"},null,-1)])])),t("div",ia,[e(C)?f("",!0):(n(),J(u,{key:0,step:e(_),"role-level-label":e(_n),loading:e(pn),saved:e(Ae),"signup-href":e(Pt),"login-href":e(Et),onRetry:In},null,8,["step","role-level-label","loading","saved","signup-href","login-href"])),e(_)==="role"?(n(),s("div",ra,[t("h2",null,o(e(d).profiling_page_hero_title()),1),i[4]||(i[4]=t("div",{class:"pf-hero__desc"}," Connect your GitHub, LinkedIn or résumé and get an honest, AI-graded profile of your real work, matched to the role you want. ",-1))])):f("",!0),e(c)&&!e(V)?(n(),s("p",aa,o(e(c)),1)):f("",!0),e(_)==="resuming"&&!e(V)?(n(),s("div",ca,[F(z,{class:"pf-resuming__spinner anim-rotate-linear"}),t("h3",ua,o(e(C)?e(d).career_setup_baseline_preparing():e(d).profiling_session_reconnecting()),1),t("p",_a,[e(C)?(n(),s(k,{key:0},[b(" Weâre using the direction you already chose. You wonât need to choose it again. ")],64)):(n(),s(k,{key:1},[b(" You're back. Just a moment while we pick up where you left off. ")],64))])])):e(_)==="resuming"&&e(V)?(n(),s("div",pa,[i[5]||(i[5]=t("span",{class:"pf-resuming__error","aria-hidden":"true"},"!",-1)),i[6]||(i[6]=t("h3",{class:"pf-card__title"},"We couldnât prepare your baseline",-1)),i[7]||(i[7]=t("p",{class:"pf-small pf-muted"}," Your chosen direction is still saved. Try starting the benchmark again. ",-1)),t("button",{type:"button",class:"pf-btn pf-btn--primary",disabled:e(h),"data-testid":"career-profile-start-retry",onClick:cn},o(e(h)?"Trying againâ¦":"Try again"),9,da)])):f("",!0),e(_)==="init"?(n(),s("div",fa,[F(z,{class:"pf-resuming__spinner anim-rotate-linear"}),t("h3",ga,o(e(d).profiling_page_checking_title()),1),t("p",ma,o(e(d).profiling_page_checking_sub()),1)])):f("",!0),e(de)==="role_changed"&&e(_)==="role"?(n(),s("p",va," Your chosen role has changed, please retake the test! ")):f("",!0),e(_)==="role"?(n(),s("div",ha,[i[9]||(i[9]=t("h3",{class:"pf-card__title"},"What role are you targeting?",-1)),i[10]||(i[10]=t("p",{class:"pf-small pf-muted"}," Tell us the role so we can grade against the right rubric. ",-1)),e(de)==="unfinished"?(n(),s("p",ka," Your last run didn't finish, so there's no profile saved yet. Pick your role to start again â it only takes about 2 minutes. ")):e(de)==="no_skills_found"?(n(),s("p",ya," We read your last set of sources but couldn't pull out any skills for that role, so there's no profile saved yet. Try again â adding a résumé, GitHub, or a portfolio link usually gives us the most to work with. ")):f("",!0),e(yt)?(n(),s("p",ba,"Loading rolesâ¦")):e(bt)?(n(),s("p",wa," We couldn't load the role list. Please refresh and try again. ")):e(at).length?(n(),s(k,{key:5},[t("div",Ca,[F(ve,{label:"Role",simple:""},{default:re(()=>[t("div",{ref_key:"roleComboRef",ref:St,class:"pf-combo"},[Ie(t("input",{"onUpdate:modelValue":i[0]||(i[0]=fe=>je(Ce)?Ce.value=fe:null),type:"text",class:"pf-combo__input",placeholder:"Type to search rolesâ¦",role:"combobox","aria-autocomplete":"list",autocomplete:"off","aria-expanded":e(Se),onFocus:ln,onInput:rn,onKeydown:an},null,40,Sa),[[Ue,e(Ce)]]),e(Se)?(n(),s("ul",La,[(n(!0),s(k,null,te(e(ct),(fe,jt)=>(n(),s("li",{key:fe.value,class:Q(["pf-combo__option",{"pf-combo__option--active":jt===e(me),"pf-combo__option--selected":fe.value===e(ye)}]),onMousedown:ot(Dn=>Lt(fe),["prevent"]),onMouseenter:Dn=>me.value=jt}
1,o(fe.label),43,Ia))),128)),e(ct).length?f("",!0):(n(),s("li",Pa,' No roles match "'+o(e(Ce))+'" ',1))])):f("",!0)],512)]),_:1})]),e(ye)&&e(Xe).length?(n(),s("div",Ea,[F(ve,{label:"Seniority",simple:""},{default:re(()=>[t("div",Ra,[Ie(t("select",{"onUpdate:modelValue":i[1]||(i[1]=fe=>je(be)?be.value=fe:null),class:"pf-select__input"},[(n(!0),s(k,null,te(e(Xe),fe=>(n(),s("option",{key:fe.value,value:fe.value},o(fe.label),9,xa))),128))],512),[[xs,e(be)]]),F(Rn,{class:"pf-select__chevron"})])]),_:1})])):f("",!0),e(Ze)==="my_skills"?(n(),s("p",Ta,[F(xn,{link:"",reset:"",onHandleClick:on},{default:re(()=>[...i[8]||(i[8]=[b(" Choose another role ",-1)])]),_:1})])):f("",!0),t("button",{type:"button",class:"pf-btn pf-btn--primary pf-role-start",disabled:e(h)||!e(sn),onClick:dn},o(e(h)?"Startingâ¦":"Start â it's free â"),9,Oa)],64)):(n(),s("p",$a," No roles are available yet. Please check back soon. "))])):e(_)==="source-select"?(n(),J(Tn,{key:8,modelValue:e(_e),"onUpdate:modelValue":i[2]||(i[2]=fe=>je(_e)?_e.value=fe:null),onContinue:Ne},null,8,["modelValue"])):e(_)==="connect"?(n(),J(On,{key:9,pack:e(y),sources:e(se),processing:e(W),"processing-labels":e(en),"any-processing":e(kt),redirecting:e(Fe),"enabled-sources":e(C)?e(_e):void 0,"show-extended-sources":!e(C),onboarding:e(C),onConnectGithub:gn,onConnectLinkedin:mn,onUploadResume:vn,onAddUrl:kn,onContinue:bn},null,8,["pack","sources","processing","processing-labels","any-processing","redirecting","enabled-sources","show-extended-sources","onboarding"])):e(_)==="compile"?(n(),J(Mt,{key:10,"role-label":e(un),sources:e(se)},null,8,["role-label","sources"])):e(_)==="check"?(n(),s(k,{key:11},[e(r)?(n(),J(Mt,{key:0,mode:"scoring"})):f("",!0),e(ge)&&(e(ge).version||1)>=2?Ie((n(),J(An,{key:1,plan:e(ge),submitting:e(r),onSubmit:At},null,8,["plan","submitting"])),[[Nt,!e(r)]]):e(ge)?Ie((n(),J(Mn,{key:2,plan:e(ge),submitting:e(r),onSubmit:At},null,8,["plan","submitting"])),[[Nt,!e(r)]]):f("",!0)],64)):e(_)==="result"&&e(y)?(n(),J(jn,{key:12,pack:e(y),"signup-href":e(Pt),"login-href":e(Et),saved:e(Ae),updating:e(h),"supplement-result":e(m),onboarding:e(C),continuing:e(ke),onProvideMoreInfo:Cn,onAddSource:Sn,onContinueOnboarding:Ln},null,8,["pack","signup-href","login-href","saved","updating","supplement-result","onboarding","continuing"])):f("",!0)])],2)]),_:1},40,["active-step","show-back"]))]),_:1},8,["name"])}}}),rc=Te(Ha,[["__scopeId","data-v-62139371"]]);export{rc as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.