PageSourceSearch

https://careerdiary.io/assets/ApplicationTrackerPage-D1vu9Qb-.js

js careerdiary.io collected 2026-09-24 15:03:43 UTC 23,091 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CGKNpi9E.js","assets/animation-CddyXVCz.js","assets/react-vendor-CbN3pvl2.js","assets/supabase-iKSPld20.js","assets/docgen-Bp8WKBAE.js","assets/query-DPqpbKNH.js","assets/index-D2PKCkk9.css"])))=>i.map(i=>d[i]);
2import{r as l,j as e}from"./animation-CddyXVCz.js";import{K as J,cj as Y,ck as je,cl as ye,cm as _e,cn as Ne,co as we,D as ie,u as ke,cp as Se,cq as Ae,L as Ee,B as h,h as C,r as U,bm as R,bD as P,bl as te,O as Ce,z as ae,bp as se,Y as re,by as Re,bx as le,_ as Pe,cr as Te,p as De}from"./index-CGKNpi9E.js";import{P as z}from"./PageWrapper-BunOBjUW.js";import{d as T}from"./htmlEntities-97NJt3YN.js";import{t as D,f as Oe,d as ne}from"./calendarDate-C5srIsuk.js";import{H as Fe}from"./HandoffCard-Dfq3ahtQ.js";import{s as Ie}from"./handoffSuggestions-raELPsOv.js";import{e as Le}from"./writeBackOffers-CZMm9dHV.js";import{c as Me,f as He,a as Ue,e as ze,E as H,b as O}from"./downWeek-Dfl6cIKw.js";import"./react-vendor-CbN3pvl2.js";import"./supabase-iKSPld20.js";import"./docgen-Bp8WKBAE.js";import"./query-DPqpbKNH.js";const Je=je,Ye=Ne,$e=ye,Ve=_e,We=c=>{J(Je,{feature:Y.APPLICATION_TRACKER,surface:"web",...c})},oe=(c,o)=>{J(c,{feature:Y.APPLICATION_TRACKER,surface:"web",apps_today:o})},Ge=()=>{J(Ve,{feature:Y.APPLICATION_TRACKER,surface:"web"})},Ke=[{key:"applications",label:"Applications"},{key:"responses",label:"Responses"},{key:"interviews",label:"Interviews"},{key:"offers",label:"Offers"}],Be=({refreshKey:c=0})=>{const[o,m]=l.useState(null),_=l.useRef(!1);l.useEffect(()=>{let p=!1;return(async()=>{try{const v=await we();p||m(v)}catch{p||m(null)}})(),()=>{p=!0}},[c]);const b=l.useMemo(()=>Me(o??[]),[o]);return l.useEffect(()=>{_.current||!o||b.applications===0||(_.current=!0,We(b))},[b,o]),!o||b.applications===0?null:e.jsxs("div",{"data-testid":"pipeline-panel",className:"rounded-xl border border-[var(--line)] bg-[var(--surface)] p-4 sm:p-5",children:[e.jsx("div",{className:"font-mono text-xs font-semibold uppercase tracking-[0.08em] text-[var(--ever-700)]",children:"Your pipeline"}),e.jsx("div",{className:"mt-3 grid grid-cols-2 gap-3 sm:grid-cols-4",children:Ke.map(({key:p,label:v})=>e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"font-mono text-2xl font-semibold tabular-nums text-[var(--text-primary)]",children:b[p]}),e.jsx("div",{className:"truncate text-xs text-[var(--text-secondary)]",children:v})]},p))}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-[var(--text-secondary)]",children:He(b)})]})},qe=c=>{try{return typeof window<"u"&&window.localStorage.getItem(c)==="1"}catch{return!1}},Xe=({appsLoggedToday:c,isoDay:o})=>{const m=ze(o),[_,b]=l.useState(()=>qe(m)),p=l.useRef(!1),v=Ue(c,_);l.useEffect(()=>{!v||p.current||(p.current=!0,oe(Ye,c))},[v,c]);const F=l.useCallback(()=>{oe($e,c);try{window.localStorage.setItem(m,"1")}catch{}b(!0)},[m,c]);return v?e.jsxs("div",{"data-testid":"enough-for-today",className:"flex flex-wrap items-center gap-x-3 gap-y-2 rounded-lg border border-[var(--ever-100)] bg-[var(--ever-050)] px-4 py-3 dark:border-emerald-900/40 dark:bg-emerald-950/20",children:[e.jsxs("span",{className:"min-w-0 flex-1 text-sm leading-6 text-[var(--text-primary)]",children:[e.jsx("strong",{className:"font-medium",children:H.headline})," ",e.jsx("span",{className:"text-[var(--text-secondary)]",children:H.body})]}),e.jsx("button",{type:"button",onClick:F,"data-testid":"enough-for-today-dismiss",className:"shrink-0 text-sm text-[var(--text-secondary)] underline-offset-2 hover:underline",children:H.dismiss})]}):null},Ze=20,f={saved:{label:"Saved",color:"text-slate-600 dark:text-slate-400",bg:"bg-slate-500/10",icon:e.jsx(re,{className:"h-4 w-4"})},applied:{label:"Applied",color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500/10",icon:e.jsx(U,{className:"h-4 w-4"})},phone_screen:{label:"Phone Screen",color:"text-indigo-600 dark:text-indigo-400",bg:"bg-indigo-500/10",icon:e.jsx(re,{className:"h-4 w-4"})},interviewing:{label:"Interviewing",color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-500/10",icon:e.jsx(se,{className:"h-4 w-4"})}
2,final_round:{label:"Final Round",color:"text-orange-600 dark:text-orange-400",bg:"bg-orange-500/10",icon:e.jsx(se,{className:"h-4 w-4"})},offer:{label:"Offer",color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-500/10",icon:e.jsx(U,{className:"h-4 w-4"})},rejected:{label:"Rejected",color:"text-red-600 dark:text-red-400",bg:"bg-red-500/10",icon:e.jsx(ae,{className:"h-4 w-4"})},withdrawn:{label:"Withdrawn",color:"text-slate-500 dark:text-slate-500",bg:"bg-slate-400/10",icon:e.jsx(ae,{className:"h-4 w-4"})}},E=["saved","applied","phone_screen","interviewing","final_round","offer","rejected","withdrawn"],Qe=({onNavigateToProfile:c})=>{const[o,m]=l.useState([]),[_,b]=l.useState(!0),[p,v]=l.useState(!1),[F,$]=l.useState(!0),[n,N]=l.useState(null),[k,V]=l.useState("all"),[I,L]=l.useState(null),[g,w]=l.useState({}),[de,S]=l.useState(!1),[i,y]=l.useState({job_title:"",company_name:"",job_url:"",application_status:"applied",applied_date:D(),notes:""}),[ce,W]=l.useState(!1),[G,xe]=l.useState(null),[me,pe]=l.useState(null),[A,K]=l.useState(null),[ue,he]=l.useState(0),[B,q]=l.useState(!1),X=ie(),{toast:Z}=ke();l.useEffect(()=>{Q(!0)},[]);const Q=async(t=!1)=>{try{t?b(!0):v(!0);const s=await Se();if(!s){m([]),$(!1);return}const a=t?0:o.length,{jobs:r,hasMore:u}=await Ae(s.id,Ze,a);m(x=>t?r:[...x,...r]),$(u)}catch(s){console.error("Error loading applications:",s)}finally{b(!1),v(!1)}},be=async(t,s)=>{var u;const a=o.find(x=>x.id===t),r=(a==null?void 0:a.application_status)??null;try{await le(t,{application_status:s,...s==="applied"&&!((u=o.find(d=>d.id===t))!=null&&u.applied_date)&&{applied_date:D()}}),s==="applied"&&(o.some(j=>j.id!==t&&["applied","phone_screen","interviewing","final_round","offer","rejected","withdrawn"].includes(j.application_status||"saved"))||Pe(()=>import("./index-CGKNpi9E.js").then(j=>j.cy),__vite__mapDeps([0,1,2,3,4,5,6])).then(()=>{window.dispatchEvent(new CustomEvent("celebrate",{detail:{type:"confetti",message:"You're on your way! First application sent! 🚀"}}))}));const x=d=>({...d,application_status:s,...s==="applied"&&!d.applied_date&&{applied_date:D()}});m(d=>d.map(j=>j.id===t?x(j):j)),N(d=>(d==null?void 0:d.id)===t?x(d):d),s==="rejected"?(K({company:(a==null?void 0:a.company_name)??null}),Ge()):K(null),he(d=>d+1),Le({fromStatus:r,toStatus:s})&&Te({appliedJobId:t,fromStatus:r,toStatus:s}).then(()=>pe(t)).catch(()=>{})}catch(x){console.error("Error updating status:",x)}},ee=async t=>{var s;q(!0);try{const a=(g.job_url||"").trim(),r=await le(t,{notes:g.notes??"",job_url:a||null,next_followup_date:g.next_followup_date||null}),u=r?{...r}:{...g,job_url:a||null};delete u.unsaved_fields,m(x=>x.map(d=>d.id===t?{...d,...u}:d)),N(x=>(x==null?void 0:x.id)===t?{...x,...u}:x),(s=r==null?void 0:r.unsaved_fields)!=null&&s.length&&Z.warning("Saved, except the follow-up date","Follow-up dates are not available yet. Your notes and link were saved."),L(null),w({})}catch(a){Z.error("Could not save your changes",a instanceof Error?a.message:void 0)}finally{q(!1)}},fe=async()=>{if(!(!i.job_title.trim()||!i.company_name.trim())){W(!0);try{const t=await Re({job_title:i.job_title.trim(),company_name:i.company_name.trim(),job_description:"",tailored_resume:"",cover_letter:"",match_score:null,match_justification:"",application_status:i.application_status,applied_date:i.applied_date||void 0,application_url:i.job_url.trim()||void 0,job_url:i.job_url.trim()||void 0,notes:i.notes.trim()||void 0});if(t){const s={...t,job_url:i.job_url.trim()||null,notes:i.notes.trim()||null};m(a=>[s,...a]),N(s)}xe(i.job_title.trim()),S(!1),y({job_title:"",company_name:"",job_url:"",application_status:"applied",applied_date:D(),notes:""})}catch(t){console.error("Error adding application:",t)}finally{W(!1)}}},ve=k==="all"?o:o.filter(t=>t.application_status===k),ge=E.reduce((t,s)=>(t[s]=ve.filter(a=>a.application_status===s),t),{}),M=Oe;return _?e.jsx(z,{children:e.jsx("div",{className:"flex items-center justify-center min-h-[400px]",children:e.jsx(Ee,{})})}):e.jsx(z,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold uppercase tracking-[0.2em] text-[var(--text-secondary)]",children:"Application timeline"}),e.jsxs("p",{className:"text-[var(--text-secondary)]/70 mt-1",children:[o.length," ",o.length===1?"application":"applications"," tracked"]})]}),e.jsx(h,{onClick:()=>S(!0),variant:"primary",size:"md",children:"+ Add Application"})]}),G&&e.jsx(Fe,{suggestion:Ie({context:"tracker_entry",role:G}),audience:"user",onAccept:()=>X("/app/interview-prep")}),e.jsx(Be,{refreshKey:ue}),e.jsx(Xe,{appsLoggedToday:o.filter(t=>{const s=t.applied_date||t.created_at;return s?new Date(s).toDateString()===new Date().toDateString():!1}).length,isoDay:new Date().toLocaleDateString("en-CA")}),A&&e.jsxs("div",{"data-testid":"rejection-reframe",className:"rounded-lg border border-[var(--line)] bg-[var(--surface-sunk)] px-4 py-3",children:[e.jsx("p",{className:"text-sm font-medium text-[var(--text-primary)]",children:O(A.company).headline}),e.jsx("p",{className:"mt-1 text-sm leading-6 text-[var(--text-secondary)]",children:O(A.company).body}),e.jsxs("button",{type:"button",onClick:()=>X(O(A.company).action.to),"data-testid":"rejection-reframe-action",className:"mt-2 text-sm font-medium text-[var(--ever-700)] underline-offset-2 hover:underline",children:[O(A.company).action.label," →"]})]}
2),me&&e.jsx("p",{"data-testid":"pipeline-logged-note",className:"font-mono text-xs text-[var(--ink-3)]",children:"Logged to your pipeline history ✓"}),de&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50",onClick:()=>S(!1),children:e.jsxs("div",{className:"bg-white dark:bg-slate-900 rounded-2xl shadow-xl w-full max-w-md p-6 space-y-4",onClick:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-lg font-bold text-[var(--text-primary)]",children:"Add Application"}),e.jsx("button",{onClick:()=>S(!1),className:"text-[var(--text-secondary)]/60 hover:text-[var(--text-primary)] text-xl leading-none",children:"×"})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-job-title",children:["Job Title ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{id:"add-app-job-title",type:"text",value:i.job_title,onChange:t=>y(s=>({...s,job_title:t.target.value})),placeholder:"e.g. Senior Product Manager",className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm",autoFocus:!0})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-company",children:["Company ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{id:"add-app-company",type:"text",value:i.company_name,onChange:t=>y(s=>({...s,company_name:t.target.value})),placeholder:"e.g. Acme Corp",className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-job-url",children:"Job URL"}),e.jsx("input",{id:"add-app-job-url",type:"url",value:i.job_url,onChange:t=>y(s=>({...s,job_url:t.target.value})),placeholder:"https://...",className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-status",children:"Status"}),e.jsx("select",{id:"add-app-status",value:i.application_status,onChange:t=>y(s=>({...s,application_status:t.target.value})),className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm",children:E.map(t=>e.jsx("option",{value:t,children:f[t].label},t))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-applied-date",children:"Applied Date"}),e.jsx("input",{id:"add-app-applied-date",type:"date",value:i.applied_date,onChange:t=>y(s=>({...s,applied_date:t.target.value})),className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",htmlFor:"add-app-notes",children:"Notes"}),e.jsx("textarea",{id:"add-app-notes",value:i.notes,onChange:t=>y(s=>({...s,notes:t.target.value})),placeholder:"Any notes about this application...",rows:2,className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-primary)] text-sm resize-none"})]})]}),e.jsxs("div",{className:"flex gap-3 pt-1",children:[e.jsx(h,{onClick:fe,variant:"primary",size:"md",className:"flex-1",loading:ce,disabled:!i.job_title.trim()||!i.company_name.trim(),children:"Save Application"}),e.jsx(h,{onClick:()=>S(!1),variant:"secondary",size:"md",children:"Cancel"})]})]})}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(h,{onClick:()=>V("all"),variant:k==="all"?"primary":"secondary",size:"md",className:"px-4 py-2 rounded-full text-sm font-medium transition-colors border-none",children:["All (",o.length,")"]}),E.map(t=>{const s=o.filter(r=>r.application_status===t).length;if(s===0)return null;const a=f[t];return e.jsxs(h,{onClick:()=>V(t),variant:k===t?"primary":"secondary",size:"md",className:`px-4 py-2 rounded-full text-sm font-medium transition-colors flex items-center gap-2 border-none h-auto ${k===t?a.color:""}`,leftIcon:a.icon,children:[a.label," (",s,")"]},t)})]}),o.length===0?e.jsx(C,{className:"p-8",children:e.jsxs("div",{className:"py-6 text-center",children:[e.jsx(U,{className:"mx-auto mb-4 h-16 w-16 text-gray-300 dark:text-slate-600"}),e.jsx("h2",{className:"mb-2 text-xl font-semibold text-[var(--text-primary)]",children:"Start tracking your job applications"}),e.jsx("p",{className:"mx-auto max-w-xl text-[var(--text-secondary)]/70",children:"Save roles you want to pursue, track interviews, and keep follow-ups organized in one place."}),e.jsxs("div",{className:"mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[e.jsx(h,{onClick:()=>window.location.assign("/app/search"),variant:"primary",children:"Track Your First Application"}),e.jsx(h,{onClick:()=>window.open("/guide","_blank","noopener,noreferrer"),variant:"secondary",children:"Install Browser Extension"})]})]})}):e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[E.map(t=>{const s=ge[t];return s.length===0?null:e.jsxs(C,{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:`${f[t].bg} ${f[t].color} p-2 rounded-lg border border-${f[t].color.split("-")[1]}-500/20`,children:f[t].icon}),e.jsx("h3",{className:"font-bold text-lg text-[var(--text-primary)]",children:f[t].label}),e.jsxs("span",{className:"text-sm text-[var(--text-secondary)]/70",children:["(",s.length,")"]})]}),e.jsx("div",{className:"space-y-3",children:s.map(a=>e.jsxs("div",{onPointerDown:r=>{const u=r.target;u!=null&&u.closest("select,button,a,input,textarea,label")||N(a)},onClick:()=>N(a),role:"button",tabIndex:0,onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),N(a))}
2,className:`py-3.5 px-4 rounded-lg border cursor-pointer transition-colors ${(n==null?void 0:n.id)===a.id?"border-blue-500 bg-blue-50/50 dark:bg-blue-900/20":"border-[var(--border-default)] hover:bg-slate-50/50 dark:hover:bg-slate-800/30"}`,children:[e.jsxs("div",{className:"flex items-start justify-between",children:[e.jsxs("div",{className:"flex-1",children:[a.job_url?e.jsx("a",{href:a.job_url,target:"_blank",rel:"noopener noreferrer",onClick:r=>r.stopPropagation(),className:"font-bold text-[var(--text-primary)] hover:text-blue-600 dark:hover:text-blue-400 hover:underline",children:R(T(P(a.job_title)))}):e.jsx("h4",{className:"font-bold text-[var(--text-primary)]",children:R(T(P(a.job_title)))}),e.jsxs("p",{className:"text-sm text-[var(--text-secondary)]/70",children:[te(a.company_name),a.job_location&&e.jsxs("span",{className:"ml-1 text-[var(--text-secondary)]/50",children:["· ",a.job_location]})]}),a.applied_date&&e.jsxs("p",{className:"text-xs text-[var(--text-secondary)]/60 mt-1",children:["Applied ",M(a.applied_date),ne(a.applied_date)&&e.jsxs("span",{children:[" (",ne(a.applied_date),")"]})]}),a.match_score&&e.jsx("div",{className:"mt-2",children:e.jsxs("span",{className:"text-xs bg-green-100 text-green-800 dark:bg-green-900/50 dark:text-green-300 px-2 py-1 rounded-full",children:[a.match_score,"% Match"]})}),a.notes&&e.jsx("p",{className:"text-sm text-[var(--text-secondary)]/80 mt-2 line-clamp-2",children:a.notes})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("select",{value:a.application_status||"saved",onChange:r=>{r.stopPropagation(),be(a.id,r.target.value)},onClick:r=>r.stopPropagation(),className:"text-xs border border-[var(--border-default)] rounded px-2 py-1 bg-[var(--bg-secondary)] text-[var(--text-secondary)]",children:E.map(r=>e.jsx("option",{value:r,children:f[r].label},r))}),e.jsx(h,{onClick:r=>{r.stopPropagation(),I===a.id?ee(a.id):(L(a.id),w({notes:a.notes||"",job_url:a.job_url||a.application_url||"",next_followup_date:a.next_followup_date||""}))},variant:"ghost",size:"sm","aria-label":I===a.id?"Save application":"Edit application",className:"p-2 hover:bg-gray-100 dark:hover:bg-slate-800 rounded h-auto w-auto min-w-0",children:e.jsx(Ce,{className:"h-4 w-4"})})]})]}),I===a.id&&e.jsxs("div",{className:"mt-3 pt-3 border-t border-[var(--border-default)] space-y-2",children:[e.jsx("label",{className:"block text-xs font-medium text-[var(--text-secondary)]",htmlFor:`edit-notes-${a.id}`,children:"Notes"}),e.jsx("textarea",{id:`edit-notes-${a.id}`,placeholder:"Notes...",value:g.notes||"",onChange:r=>w({...g,notes:r.target.value}),className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-secondary)] text-sm",rows:3}),e.jsx("label",{className:"block text-xs font-medium text-[var(--text-secondary)]",htmlFor:`edit-url-${a.id}`,children:"Job posting URL"}),e.jsx("input",{id:`edit-url-${a.id}`,type:"url",inputMode:"url",autoComplete:"url",placeholder:"https://…",value:g.job_url||"",onChange:r=>w({...g,job_url:r.target.value}),className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-secondary)] text-sm"}),e.jsx("label",{className:"block text-xs font-medium text-[var(--text-secondary)]",htmlFor:`edit-followup-${a.id}`,children:"Next follow-up"}),e.jsx("input",{id:`edit-followup-${a.id}`,type:"date",value:g.next_followup_date||"",onChange:r=>w({...g,next_followup_date:r.target.value}),className:"w-full px-3 py-2 border border-[var(--border-default)] rounded-lg bg-[var(--bg-secondary)] text-[var(--text-secondary)] text-sm"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(h,{onClick:r=>{r.stopPropagation(),ee(a.id)},variant:"primary",size:"md",disabled:B,children:B?"Saving…":"Save"}),e.jsx(h,{onClick:r=>{r.stopPropagation(),L(null),w({})},variant:"secondary",size:"md",children:"Cancel"})]})]})]},a.id))})]},t)}),F&&e.jsx("div",{className:"pt-2",children:e.jsx(h,{onClick:()=>Q(!1),disabled:p,variant:"secondary",size:"lg",className:"w-full",children:p?"Loading more...":"Load more applications"})})]}),e.jsx("div",{className:"lg:col-span-1",children:n?e.jsxs(C,{className:"p-4 md:p-6 lg:sticky lg:top-4",children:[n.job_url?e.jsxs("a",{href:n.job_url,target:"_blank",rel:"noopener noreferrer",className:"font-bold text-xl text-[var(--text-primary)] hover:text-blue-600 dar
2k:hover:text-blue-400 hover:underline mb-4 block",children:[R(T(P(n.job_title)))," ↗"]}):e.jsx("h3",{className:"font-bold text-xl text-[var(--text-primary)] mb-4",children:R(T(P(n.job_title)))}),e.jsxs("p",{className:"text-[var(--text-secondary)]/70 mb-4",children:[te(n.company_name),n.job_location&&e.jsx("span",{className:"block text-sm mt-0.5",children:n.job_location})]}),e.jsxs("div",{className:"space-y-4",children:[n.application_status&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Status"}),e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[e.jsx("div",{className:`${f[n.application_status].color} text-white p-2 rounded-lg`,children:f[n.application_status].icon}),e.jsx("span",{children:f[n.application_status].label})]})]}),n.applied_date&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Applied Date"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:M(n.applied_date)})]}),n.match_score&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Match Score"}),e.jsxs("p",{className:"text-[var(--text-secondary)]",children:[n.match_score,"%"]})]}),n.match_justification&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Match Justification"}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]/80 mt-1",children:n.match_justification})]}),n.notes&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Notes"}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]/80 mt-1 whitespace-pre-wrap",children:n.notes})]}),n.next_followup_date&&e.jsxs("div",{children:[e.jsx("label",{className:"text-sm font-medium text-[var(--text-secondary)]/70",children:"Next Follow-up"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:M(n.next_followup_date)})]}),c&&e.jsx(h,{onClick:c,variant:"primary",size:"lg",className:"w-full",children:"View Tailored Resume"})]})]}):e.jsx(C,{className:"p-8 text-center text-[var(--text-secondary)]/70",children:e.jsx("p",{children:"Select an application to view details"})})})]})]})})},pt=()=>{const c=ie();De({title:"Applications | CareerDiary",description:"Track your job applications and their status.",canonical:"https://careerdiary.io/app/applications"});const o=()=>{c("/app/tailor")};return e.jsx(z,{title:"Applications",description:"Track your job applications and their status",maxWidth:"4xl",children:e.jsx(Qe,{onNavigateToProfile:o})})};export{pt as ApplicationTrackerPage};

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.