1import{aH as J,j as e,r as m}from"./vendor-CkXPoFMb.js";import{C as ae}from"./CandidateLayout-Dw-nINaX.js";import{s as re}from"./conciergeBypassUi-C0m685yf.js";import{C as ie}from"./CandidateBreadcrumb-D9xZh8gN.js";import{L as ne}from"./LoadingSpinner-BAckjbJh.js";import{aY as P,aZ as M,bm as oe,B as D,x as le,u as de,bn as ce,bc as me,be as ue,bf as pe,bg as xe,bh as he,ax as be,aN as fe,bo as ge,bp as ye,aA as _e,aB as ve,bq as je,a$ as Ne,br as we}from"./index-CR9aNikF.js";import{B as L}from"./badge-PyECTiJT.js";import{H as ke,r as Ce}from"./displayApplicationJourney-DnuvhPgp.js";import{e as O,R as K,L as Se,B as Y,a3 as Ae,az as Ee,ap as Ie,aw as Le,A as Te,a7 as G,aA as Re,X as Be,ax as De,aB as U,J as Pe,ar as Me}from"./vendor-icons-DPnl4cY3.js";import{g as H}from"./candidateApplicationsService-DWV7nKja.js";import{t as He,u as $e,v as Q}from"./conciergeDecisionUi-Cw4ZVUEo.js";import{J as Fe}from"./JobDeadlineDisplay-BipFZw4Z.js";import{A as V,r as Ue,a as Ve,g as Je}from"./appliedStageStatus-Boo7bDtt.js";import{r as Oe}from"./rehearsalStageStatus-D3OIMIVl.js";import"./vendor-datefns-N8mCDnaz.js";import"./checkbox-Cpm-hLEQ.js";import"./GoogleSignupButton-Bksx481N.js";import"./oauthPostLogin-Bp_x4sgc.js";import"./passwordValidation-Dn1l2Lqa.js";import"./signupEmailValidation-CD3kGD9O.js";import"./emailValidationService-D4JrT6ch.js";import"./MfaSetupPage-BYbF_bzC.js";import"./MfaEnrollPanel-ChuKGc1p.js";import"./input-otp-B7lYn7RV.js";import"./recruiterOnboardingService-DY0IebLw.js";import"./bitstage-logo-full-BrydXt0F.js";import"./conciergeNextStep-DDwZOIar.js";import"./workStyleFeature-DqGC3fkn.js";import"./vendor-jspdf-D2r6YsBm.js";import"./vendor-fingerprint-f-b5Qes_.js";import"./vendor-sanitize-8YZbVxp6.js";import"./vendor-sentry-DuxUMs8C.js";import"./vendor-motion-DvZ9ooo_.js";import"./journeyStepVisual-CI9jhb2d.js";import"./SnakePipelineLayout-DmQHYVBb.js";import"./use-mobile-BTzsHyKr.js";import"./commercialInterviewStepLabel-CDbFu5rY.js";import"./behaviouralScenarioUi-Cb1TyJCD.js";import"./behaviouralRehearsalResolve-5B06uLox.js";const qe={invited:"Invited",resume_uploaded:"Resume Uploaded",rehearsal_selected:"Rehearsal Selected",in_progress:"In Progress",submitted:"Submitted",expired:"Expired",quota_full:"Role closed",not_eligible:"Not Eligible",applied:"Applied"},ze={position_closed_by_employer:{cardClass:"border-amber-200 bg-amber-50/90 shadow-none cursor-default",badgeClass:"border-amber-300 bg-amber-100 text-amber-950 hover:bg-amber-100",badgeIcon:Se,badgeLabel:"Closed by Employer",metaPrimary:"Application closed",message:"This role is closed. You can still see it here, but there is nothing left to do."},paused_by_employer:{cardClass:"border-amber-200 bg-amber-50/90 shadow-none cursor-default",badgeClass:"border-amber-300 bg-amber-100 text-amber-950 hover:bg-amber-100",badgeIcon:K,badgeLabel:"Paused by Employer",metaPrimary:"Application paused",metaIcon:K,message:"This role is paused. Nothing to do until the employer reopens it."},employer_inactive:{cardClass:"border-red-200 bg-red-50/90 shadow-none cursor-default",badgeClass:"border-red-300 bg-red-100 text-red-950 hover:bg-red-100",badgeIcon:O,badgeLabel:"Employer Inactive",metaPrimary:"Organization inactive",message:"This employer is no longer active. This listing is read-only-you cannot open the role or take further action from here."}};function Ke(t){return t==="position_closed_by_employer"||t==="paused_by_employer"||t==="employer_inactive"}function Ye(t){return oe(t)}function Ge({id:t,jobTitle:s,company:i,deadline:a,status:r,statusLabel:n,productType:x,journeySteps:b,journeyMessage:A,isHired:y,isRejected:u}){const _=J(),N=Ye(x),w=!!(y||u),f=w?`/applications/${t}#final-result`:`/applications/${t}`;if(Ke(r)){const p=ze[r],R=p.badgeIcon,C=p.metaIcon;return e.jsx(P,{className:`transition-none ${p.cardClass}`,children:e.jsxs(M,{className:"space-y-2 py-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsx("h3",{className:"flex-1 truncate text-sm font-bold text-foreground",children:s}),e.jsxs(L,{variant:"outline",className:`shrink-0 gap-1.5 text-xs font-semibold ${p.badgeClass}`,children:[e.jsx(R,{className:"h-3.5 w-3.5","aria-hidden":!0}),p.badgeLabel]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Y,{className:"h-3.5 w-3.5 shrink-0 text-[hsl(var(--brand-navy))]","aria-hidden":!0}),i]}),e.jsxs("span",{className:`flex items-center gap-1 ${r==="employer_inactive"?"text-red-800/90":"text-amber-800/90"}`,children:[C?e.jsx(C,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}):e.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full bg-amber-600","aria-hidden":!0}),p.metaPrimary]}),e.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",children:[e.jsx(Ae,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":!0}),"Read-only"]})]}),e.jsx("p",{className:"pt-0.5 text-sm leading-relaxed text-muted-foreground",children:p.message})]})})}const T=qe[r]??null,k=y?"Hired":u?"Not selected":n||T,E=b??[];
1return e.jsx(P,{className:`cursor-pointer border-border/80 transition-shadow hover:shadow-md ${y?"border-[hsl(var(--brand-navy))]/25 bg-[hsl(var(--brand-cream))]":u?"border-slate-200 bg-slate-50/60":""}`,onClick:()=>_(f),onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),_(f))},role:"button",tabIndex:0,children:e.jsxs(M,{className:"space-y-4 py-4",children:[e.jsxs("div",{className:"flex flex-col gap-3 md:flex-row md:items-start md:justify-between",children:[e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("h3",{className:"truncate text-base font-bold text-foreground",children:s}),N?e.jsx(L,{variant:"outline",className:"rounded-full border-[hsl(var(--brand-navy))]/20 bg-[hsl(var(--brand-cream))] px-2.5 py-0.5 text-[11px] font-semibold text-[hsl(var(--brand-navy))]",children:N}):null]}),e.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Y,{className:"h-3.5 w-3.5 text-[hsl(var(--brand-navy))]","aria-hidden":!0}),i]}),w?null:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Ee,{className:"h-3 w-3","aria-hidden":!0}),a]})]})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2 self-start sm:w-auto sm:flex-row sm:flex-wrap sm:items-center sm:justify-end",children:[y?e.jsxs(L,{className:"w-full justify-center gap-1.5 rounded-full bg-[hsl(var(--brand-navy))] px-3 py-1.5 text-xs font-semibold text-[hsl(var(--brand-cream))] hover:bg-[hsl(var(--brand-navy))] sm:w-auto",children:[e.jsx(Ie,{className:"h-3.5 w-3.5","aria-hidden":!0}),k]}):u?e.jsxs(L,{className:"w-full justify-center gap-1.5 rounded-full bg-slate-600 px-3 py-1.5 text-xs font-semibold text-white hover:bg-slate-600 sm:w-auto",children:[e.jsx(Le,{className:"h-3.5 w-3.5","aria-hidden":!0}),k]}):k?e.jsxs(L,{variant:"outline",className:"w-full justify-center gap-1.5 rounded-full border-border bg-white px-3 py-1.5 text-xs font-medium shadow-sm sm:w-auto",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[hsl(var(--brand-navy))]","aria-hidden":!0}),k]}):null,e.jsxs("span",{className:"inline-flex w-full items-center justify-center rounded-full bg-primary px-3 py-1.5 text-xs font-semibold text-primary-foreground shadow-sm sm:w-auto",children:[y?"View hire":u?"View result":"View journey",e.jsx(Te,{className:"h-3.5 w-3.5"})]})]})]}),E.length>0?e.jsx("div",{className:"space-y-2 rounded-lg border border-border/60 bg-muted/20 px-3 py-3",children:e.jsx(ke,{steps:E,dense:!1})}):null]})})}const Qe={inactive:{message:t=>t===1?"1 application is no longer available.":`${t} applications are no longer available.`,className:"border-red-200 bg-red-50 text-red-900",Icon:Re},paused:{message:t=>t===1?"1 application is temporarily paused.":`${t} applications are temporarily paused.`,className:"border-amber-200 bg-amber-50 text-amber-900",Icon:G},closed:{message:t=>t===1?"1 application is no longer active.":`${t} applications are no longer active.`,className:"border-amber-200 bg-amber-50 text-amber-900",Icon:G}};function $({kind:t,count:s,storageKey:i}){const[a,r]=m.useState(()=>{try{return sessionStorage.getItem(i)==="1"}catch{return!1}});if(s<=0||a)return null;const{message:n,className:x,Icon:b}=Qe[t];return e.jsxs("div",{role:"status",className:`mb-4 flex items-start gap-3 rounded-lg border px-4 py-3 text-sm ${x}`,children:[e.jsx(b,{className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":!0}),e.jsx("p",{className:"flex-1 font-medium",children:n(s)}),e.jsx("button",{type:"button",className:"shrink-0 rounded p-0.5 opacity-70 hover:opacity-100","aria-label":"Dismiss",onClick:()=>{r(!0);try{sessionStorage.setItem(i,"1")}catch{}},children:e.jsx(Be,{className:"h-4 w-4"})})]})}function Xe({onAddJobLink:t}){const s=J();return e.jsx(P,{className:"border-border",children:e.jsxs(M,{className:"py-12 space-y-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"mx-auto w-16 h-16 rounded-2xl bg-[hsl(var(--brand-cream))] flex items-center justify-center mb-4 border border-[hsl(var(--brand-navy))]/15",children:e.jsx(O,{className:"h-8 w-8 text-[hsl(var(--brand-navy))]"})}),e.jsx("h2",{className:"text-2xl font-bold text-foreground",children:"No applications yet"}),e.jsx("button",{type:"button",onClick:()=>s("/candidate/help"),className:"mt-1 inline-flex min-h-11 items-center text-sm font-medium text-[hsl(var(--brand-navy))] hover:underline",children:"How this works"})]}),e.jsxs("ol",{className:"space-y-5 max-w-md mx-auto",children:[e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-md border border-border text-xs font-bold text-foreground shrink-0",children:"1."}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Apply & Rehearse"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Record a short rehearsal of a real moment from the job."})]})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-md border border-border text-xs font-bold text-foreground shrink-0",children:"2."}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Get your BitScore"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"A BitStage recruiter watches your rehearsal and signs off on one verified BitScore."})]})]}),e.jsxs("li",{className:"flex items-start gap-4",children:[e.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-md border border-border text-xs font-bold text-foreground shrink-0",children:"3."}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Stand Out to Employers"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Your BitScore and rehearsal evidence travel with your application, proving you're ready before day one."})]})]})]}),e.jsx("div",{className:"max-w-md mx-auto",children:e.jsx(P,{className:"border-border bg-muted/30 cursor-pointer hover:bg-muted/50 hover:border-[hsl(var(--brand-navy))]/30 transition-colors",onClick:()=>s("/resume/upload"),children:e.jsxs(M,{className:"py-4 flex items-center gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"text-sm font-bold text-foreground",children:"Upload your resume"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-0.5",children:"Upload your resume once. It attaches to every application you start."})]}),e.jsx("div",{className:"w-10 h-10 rounded-full bg-[hsl(var(--brand-cream))] flex items-center justify-center shrink-0 border border-[hsl(var(--brand-navy))]/15",children:e.jsx(De,{className:"h-5 w-5 text-[hsl(var(--brand-navy))]"})})]})})}),t?e.jsxs("div",{className:"max-w-md mx-auto",children:[e.jsx("div",{className:"border-t border-border my-4"}),e.jsxs(D,{className:"w-full h-12 text-sm font-semibold gap-2",onClick:t,children:[e.jsx(U,{className:"h-4 w-4"}),"Enter invitation link"]})]}):null]})})}function X(t){if(t.resume_score!=null||String(t.resume_score_band??"").trim())return!0;const s=String(t.fast_track_status??"").trim().toLowerCase();return!(!s||s==="applied"||s==="invited"||s==="screening")}function We(t,s,i){const a=Q(s.map(n=>({key:n.key,title:n.title,status:n.status,status_label:n.statusLabel??null,action_required:n.actionRequired??null,attempts_used:n.attemptsUsed??null,attempts_max:n.attemptsMax??null,passed:n.passed??null,detail_title:n.detailTitle??null})))||Q(i),r=String(t??"").trim();if(/^applied$/i.test(r)||/^rehearsed$/i.test(r)){const n=s.find(x=>(x.status==="skipped"||/skip/i.test(String(x.statusLabel??"")))&&/rehearsal/i.test(x.key+(x.type??"")));return n?Oe({stepStatus:n.status,statusLabel:n.statusLabel,skipReason:n.skipReason??null,passed:n.passed})||a||r:a||r}return r||a}const Ze=["invited","resume_uploaded","rehearsal_selected","in_progress","submitted","expired","quota_full","not_eligible","applied","position_closed_by_employer","employer_inactive","paused_by_employer"],et=new Set(["position_closed_by_employer","paused_by_employer","employer_inactive"]);function W(t,s,i){var N,w;const a=(N=s==null?void 0:s.steps)==null?void 0:N.find(f=>(f.key??"").trim().toLowerCase().includes("resume")),r=(w=s==null?void 0:s.steps)==null?void 0:w.find(f=>f.type==="rehearsal"),n=(a==null?void 0:a.status)==="completed"||(a==null?void 0:a.status)==="under_review",x=X(t),b=r==null?void 0:r.attempts_used,A=typeof b=="number"&&b>0&&((r==null?void 0:r.status)==="current"||(r==null?void 0:r.status)==="in_progress"),y=(r==null?void 0:r.status)==="completed",u=i==null?void 0:i.isVerifiedEmail,_=u===!1&&(n||x)&&!y&&!A;return{job_id:t.job_id,next_step:_?"EMAIL_VERIFICATION_REQUIRED":"",resume_score:t.resume_score??null,resume_score_band:t.resume_score_band??null,resume_status:n||_?"SCORED":void 0,resume_pass_fail:n||_?!0:null,batching_application_status:t.batching_application_status??null,fast_track_status:t.fast_track_status??null,resume_can_retry:t.resume_can_retry??null,resume_attempts_remaining:t.resume_attempts_remaining??null,resume_attempt_policy:t.resume_attempt_policy??null,product_type:t.product_type??null,rehearsal_attempts_used:b,has_in_flight_rehearsal_attempt:A||void 0,has_completed_rehearsal:y||void 0,requires_verification:_||void 0,is_verified_email:typeof u=="boolean"?u:void 0}}function tt(t,s){if((s==null?void 0:s.isVerifiedEmail)===!1&&X(t))return V.email_verification_pending;if(!ge||!t.batching_application_status&&!t.resume_score_band&&t.resume_score==null&&!t.fast_track_status)return null;const i=W(t,null,s);if(i.requires_verification===!0)return V.email_verification_pending;const a=Ue(i);return a==="unknown"?null:Ve({fast_track_status:t.fast_track_status??a,resume_score:t.resume_score,resume_score_band:t.resume_score_band,canRetryResume:a==="parked_below_75"&&He(i)})||Je(a).title}function F(t,s){return t.filter(i=>i.status===s).length}function st(t){const s=je(t),i=(s.serverMessage||"").trim(),a=i.toLowerCase();return a.includes("expired")||a.includes("has ended")||a.includes("not available")||a.includes("invalid or expired")?{title:"Link expired",description:i||"This invite link has expired."}:{title:"Could not add role",description:Ne(s,"Please try again.")}}async function at(t,s,i){const a=new Array(t.length);let r=0;const n=async()=>{for(;r<t.length;){const b=r;r+=1,a[b]=await i(t[b])}},x=Array.from({length:Math.min(s,t.length)},()=>n());return await Promise.all(x),a}const Jt=()=>{var z;const t=J(),{user:s}=le(),{toast:i}=de(),[a,r]=m.useState([]),[n,x]=m.useState({}),[b,A]=m.useState(!0),[y,u]=m.useState(!1),[_,N]=m.useState(""),[w,f]=m.useState(""),[T,k]=m.useState(!1),E=typeof((z=s==null?void 0:s.user_metadata)==null?void 0:z.email_verified)=="boolean"?!!s.user_metadata.email_verified:null,p=m.useRef(!0),R=m.useRef(()=>{});m.useEffect(()=>()=>{p.current=!1},[]);const C=m.useCallback(()=>{A(!0),H().then(o=>{p.current&&r(o)}).catch(()=>{p.current&&i({title:"Could not load applications",description:"Please try again later.",variant:"destructive",action:e.jsx(ce,{altText:"Try again",onClick:()=>R.current(),children:"Try again"})})}).finally(()=>{p.current&&A(!1)})},[i]);m.useEffect(()=>{R.current=C},[C]),m.useEffect(()=>{C()},[C]),m.useEffect(()=>{let o=!1;const l=a.filter(d=>!et.has(d.status));if(!l.length){x({});return}return at(l,4,async d=>{try{const v=await we(d.job_id),g=W(d,v,{isVerifiedEmail:E}),j=$e(v,g,{product_type:d.product_type}),h=g.requires_verification===!0,c=Ce(j,{productTypeHint:d.product_type,interviewActive:!h&&re(g),...h?{isVerifiedEmail:!1,requiresVerification:!0,nextStep:"EMAIL_VERIFICATION_REQUIRED",resumeScore:d.resume_score??null}:{}});if(!c.compactSteps.length)return{jobId:d.job_id,preview:null};const I=c.hired!=null||c.compactSteps.some(S=>S.key==="hired"&&(S.status==="completed"||S.status==="current")),B=!I&&(c.rejected!=null||c.compactSteps.some(S=>S.key==="not_selected"&&(S.status==="not_selected"||S.status==="current")));return{jobId:d.job_id,preview:{steps:c.stepperSteps,message:c.message,productType:c.productType,isHired:I,isRejected:B,statusLabel:h?`Applied · ${V.email_verification_pending}`:We(j.funnel_stage_label,c.compactSteps,j.steps)}}}catch{return{jobId:d.job_id,preview:null}}}).then(d=>{var g,j;if(o)return;const v={};for(const h of d)(j=(g=h.preview)==null?void 0:g.steps)!=null&&j.length&&(v[h.jobId]=h.preview);x(v)}),()=>{o=!0}},[a,E]);const q=a.length>0,Z=m.useMemo(()=>F(a,"employer_inactive"),[a]),ee=m.useMemo(()=>F(a,"paused_by_employer"),[a]),te=m.useMemo(()=>F(a,"position_closed_by_employer"),[a]),se=async()=>{const o=_.trim();if(!o){f("Please enter an invite link or code.");return}const l=ye(o);if(f(""),!l){f("Could not find a valid role or invite code in that link.");return}const{hiringLinkSlug:d,companySlug:v,publicPath:g}=l;if(!s){localStorage.setItem("bitstage_pending_invite",d),u(!1),t(g);return}k(!0);try{await _e.postJobEntry(d,{companySlug:v}),i({title:"Role added",description:"The role has been added to your applications."})}catch(c){const I=ve(c);if(!I){const B=st(c);
1i({title:B.title,description:B.description,variant:"destructive"}),k(!1);return}I&&i({title:I,description:"Opening your application.",variant:"default"})}const h=(await H()).find(c=>c.primary_link_slug===d||c.job_id===d);u(!1),N(""),t(h?`/applications/${h.primary_link_slug||h.job_id}`:"/applications"),r(await H()),k(!1)};return e.jsxs(ae,{pageTitle:"Applications",maxWidth:"max-w-5xl",children:[e.jsx(ie,{items:[{label:"Dashboard",to:"/candidate/dashboard"},{label:"Applications"}]}),!b&&q&&e.jsxs(e.Fragment,{children:[e.jsx($,{kind:"inactive",count:Z,storageKey:"bitstage:applications-banner-inactive"}),e.jsx($,{kind:"paused",count:ee,storageKey:"bitstage:applications-banner-paused"}),e.jsx($,{kind:"closed",count:te,storageKey:"bitstage:applications-banner-closed"})]}),e.jsx("h1",{className:"font-display mb-1 text-3xl font-bold text-foreground",children:"My Applications"}),e.jsx("p",{className:"mb-6 text-sm text-muted-foreground",children:"Track your progress across all your role applications."}),e.jsxs("div",{className:"mb-6 grid grid-cols-1 gap-3 sm:grid-cols-2",children:[e.jsxs(D,{className:"h-12 gap-2 text-sm font-semibold",onClick:()=>u(!0),children:[e.jsx(U,{className:"h-4 w-4"}),"Enter invite link"]}),e.jsxs(D,{variant:"outline",className:"h-12 gap-2 border-primary/20 text-sm font-semibold text-primary hover:bg-primary/5 hover:text-primary",onClick:()=>t("/companies"),children:[e.jsx(O,{className:"h-4 w-4"}),"See open roles"]})]}),b?e.jsx("div",{role:"status","aria-label":"Loading your applications",children:e.jsx(ne,{})}):q?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(Pe,{className:"h-4 w-4"}),e.jsx("span",{children:"Your applications"})]}),e.jsx("div",{className:"space-y-4",children:a.map(o=>{var h,c;const l=n[o.job_id],d=((h=o.client_decision)==null?void 0:h.status)==="hired"||o.final_step_key==="hired",v=((c=o.client_decision)==null?void 0:c.status)==="rejected"||o.final_step_key==="not_selected",g=d||!!(l!=null&&l.isHired),j=!g&&(v||!!(l!=null&&l.isRejected));return e.jsx(Ge,{id:o.primary_link_slug||o.job_id,jobTitle:o.job_title,company:o.is_confidential?"Hiring via BitStage":o.company_name,deadline:e.jsx(Fe,{deadlineStr:o.deadline}),status:Ze.includes(o.status)?o.status:"invited",statusLabel:(l==null?void 0:l.statusLabel)??tt(o,{isVerifiedEmail:E}),productType:(l==null?void 0:l.productType)??o.product_type,journeySteps:l==null?void 0:l.steps,journeyMessage:l==null?void 0:l.message,isHired:g,isRejected:j},o.job_id)})})]}):e.jsx(Xe,{onAddJobLink:()=>u(!0)}),e.jsx(me,{open:y,onOpenChange:u,children:e.jsxs(ue,{className:"sm:max-w-md",children:[e.jsxs(pe,{className:"items-center text-center",children:[e.jsx("div",{className:"mx-auto mb-1 flex h-10 w-10 items-center justify-center rounded-full bg-primary/10",children:e.jsx(U,{className:"h-5 w-5 text-primary"})}),e.jsx(xe,{children:"Enter invite link"}),e.jsx(he,{children:"Paste the invite link or code you received from an employer."})]}),e.jsxs("div",{className:"space-y-4 pt-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(be,{htmlFor:"invite-code-modal",children:"Invite link or code"}),e.jsx(fe,{id:"invite-code-modal",placeholder:"e.g. slug or http://.../job/company/xxx",value:_,onChange:o=>{N(o.target.value),f("")},className:"h-12"}),w&&e.jsxs("p",{className:"flex items-center gap-1 text-sm text-destructive",children:[e.jsx(Me,{className:"h-3.5 w-3.5"}),w]})]}),e.jsx(D,{className:"h-12 w-full",onClick:se,disabled:T,children:T?"Addingâ¦":"Add this role"}),e.jsx("button",{type:"button",className:"w-full text-center text-sm text-muted-foreground transition-colors hover:text-foreground",onClick:()=>u(!1),children:"Back to applications"})]})]})})]})};export{Jt 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.