PageSourceSearch

https://careerplatform.io/assets/cover-letter-CXO61TXL.js

js careerplatform.io collected 2026-10-02 02:00:34 UTC 21,306 bytes, 3 lines download raw bytes

1import{r as s,a as O,bd as Te,j as e,L as le,A as Pe,b as de,bF as Fe,u as Re,t as H,s as De,a8 as L,C as ze,B as v,H as Me}from"./index-P6gp-aZt.js";import{a as Ee}from"./career.functions-CIpAqbO3.js";import{g as _e}from"./resume-profile.functions-CIogRmkh.js";import{P as Ae,A as Be}from"./processing-message-CQInh3mu.js";import{u as He,S as $e,e as Oe,a as Je}from"./SavedToHistoryNote-65DQhkjm.js";import{T as We}from"./tool-shell-DOJ8KLh1.js";import{S as qe}from"./StepIndicator-CwQ9okve.js";import{I as h}from"./input-DjMejl9x.js";import{L as l}from"./label-B0ZEWUZ2.js";import{e as Ke,a as Ge}from"./export-pdf-CKRGwooV.js";import{P as Ue}from"./ai-processing-notice-C9mNNFMb.js";import{P as Ye,R as Ve,J as Qe}from"./ResumeInput-CPuvAbK_.js";import{L as Xe}from"./LoadSavedResume-DC5pf0P2.js";import{U as Ze,R as et}from"./UseResumeProfileButton-CMFYfwWj.js";import{U as tt}from"./UseTailoredVersionButton-C-0aYYqT.js";import{D as rt}from"./DocumentPreview-6_5x5wTV.js";import{S as st}from"./ShareToLinkedInButton-D2w0ipse.js";import{M as at,a as ot}from"./MicroTip-rP23JE2J.js";import{R as it}from"./resume-upload-button-D1k6awBz.js";import{M as nt}from"./MultiColumnWarningBanner-BBDzppLc.js";import{L as lt}from"./LinkedApplicationBanner-C8YlQuE_.js";import{A as dt}from"./AutoSelectedResumeChip-DoUYrMLA.js";import{S as ct}from"./SavedJobPicker-Syn3cM8P.js";import{S as mt}from"./SaveToTrackerPrompt-BfKLAM4E.js";import{S as ut}from"./SaveRunButton-CDaKolpB.js";import{r as xt}from"./tracked-applications.functions-OrmdIrYK.js";import{C as J}from"./check-DAebpxbK.js";import{F as pt}from"./file-text-BJzh_OwL.js";import{F as ft}from"./FreeCheckCarriedNote-DNkvVbis.js";import{f as ht,r as gt,b as $,m as jt,c as bt}from"./free-check-handoff-COf9yqmP.js";import{M as vt}from"./mail-CHAWCWCR.js";import{D as ne}from"./download-DlC41J7E.js";import{R as yt}from"./refresh-cw-bk_qz457.js";import{M as Nt}from"./message-square-C46UnNU7.js";import"./dialog-DwvLQ4w4.js";import"./index-CIfkDh8u.js";import"./index-BlJmuZBX.js";import"./usage.functions-Y3GkqjYp.js";import"./history-DmsU2wCz.js";import"./calendar-range-B8BsM8aX.js";import"./dollar-sign-CDWyGsO8.js";import"./camera-BvXux8uR.js";import"./mic-DMVsyDCl.js";import"./linkedin-CLjECs8u.js";import"./target-CFt1blCK.js";import"./ToolAllowanceChip-DMWogGkO.js";import"./DemoVideo-BH6GkF3v.js";import"./tool-demos-DgraiMJb.js";import"./shield-check-n8ostOuy.js";import"./info-CyM3nu35.js";import"./resume-drop-zone-CPmd3iIz.js";import"./upload-CgNiXXHX.js";import"./pencil-Cpv9QQl1.js";import"./index-BRxJuvAA.js";import"./index-m4kp8mBg.js";import"./folder-open-zNkS6hJE.js";import"./extension-auth-B_JeSTLN.js";import"./resume-tailor-versions.functions-DnZHdCsB.js";import"./resume-tailor-version-arJFjEhY.js";import"./resume-source-hygiene-BnELtta6.js";import"./sparkles-CbR3YTJF.js";import"./chevron-right-arvBV3js.js";import"./lightbulb-BxBZ27M_.js";import"./briefcase-DNrLFJ_6.js";import"./search-BPOzQH4F.js";import"./bookmark-B02XGu5l.js";function St({enabled:d,applicationId:g,newCoverLetterId:I,runKey:c}){const[x,a]=s.useState(null),[y,o]=s.useState(null),[i,p]=s.useState(null),n=O(xt),T=Te();if(!d||i===c)return null;if(y==="replace")return e.jsxs("div",{className:"mt-4 rounded-md border border-emerald-500/40 bg-emerald-50/60 dark:bg-emerald-950/30 px-3 py-2.5 flex items-center gap-2 text-xs",children:[e.jsx(J,{className:"size-3.5 text-emerald-600 shrink-0"}),e.jsx("span",{className:"text-emerald-800 dark:text-emerald-200",children:"Cover letter updated ✓"})]});if(y==="keep")return e.jsxs("div",{className:"mt-4 rounded-md border border-emerald-500/40 bg-emerald-50/60 dark:bg-emerald-950/30 px-3 py-2.5 flex items-center justify-between gap-3 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx(J,{className:"size-3.5 text-emerald-600 shrink-0"}),e.jsx("span",{className:"text-emerald-800 dark:text-emerald-200",children:"New version saved ✓"})]}),e.jsxs(le,{to:"/dashboard/applications/$id",params:{id:g},className:"inline-flex items-center gap-1 text-emerald-700 dark:text-emerald-300 hover:underline shrink-0 font-medium",children:["View application ",e.jsx(Pe,{className:"size-3"})]})]});const m=async()=>{a("replace");try{await n({data:{application_id:g,keep_id:I}}
1),T.invalidateQueries({queryKey:["application",g]}),o("replace")}finally{a(null)}},P=()=>{o("keep")};return e.jsxs("div",{className:"mt-4 rounded-md border border-border bg-muted/40 px-3 py-3 text-xs",children:[e.jsxs("div",{className:"flex items-start gap-2 mb-2.5",children:[e.jsx(pt,{className:"size-3.5 text-muted-foreground shrink-0 mt-0.5"}),e.jsx("p",{className:"text-foreground font-medium",children:"This application already has a cover letter. What would you like to do?"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("button",{type:"button",disabled:x!==null,onClick:m,className:"inline-flex items-center gap-1.5 rounded-md bg-primary text-primary-foreground px-3 py-1.5 text-xs font-medium hover:opacity-90 disabled:opacity-60",children:[x==="replace"?e.jsx(de,{className:"size-3 animate-spin"}):null,"Replace existing"]}),e.jsx("button",{type:"button",disabled:x!==null,onClick:P,className:"inline-flex items-center gap-1 rounded-md border border-border bg-background px-3 py-1.5 text-xs font-medium hover:bg-muted disabled:opacity-60",children:"Save as new version"}),e.jsx("button",{type:"button",disabled:x!==null,onClick:()=>p(c),className:"inline-flex items-center gap-1 rounded-md px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground disabled:opacity-60",children:"Dismiss"})]})]})}function Er(){const{applicationId:d}=Fe.useSearch(),g=Re(),I=O(Ee),[c,x]=s.useState(""),[a,y]=s.useState(""),[o,i]=s.useState(""),[p,n]=s.useState(""),[T,m]=s.useState(null),[P,F]=s.useState(!1),ce={professional:"professional",confident:"professional",concise:"concise",warm:"enthusiastic"},[W,me]=s.useState("professional"),[q,ue]=s.useState(""),[R,K]=s.useState(""),[D,G]=s.useState(""),[U,Y]=s.useState(""),[V,xe]=s.useState(""),[w,Q]=s.useState(""),[C,X]=s.useState(""),[z,Z]=s.useState("standard"),[pe,ee]=s.useState(""),[fe,te]=s.useState(""),[k,M]=s.useState("preview"),[f,he]=s.useState(null),[ge,je]=s.useState(!1),[be,ve]=s.useState(!1),E=s.useRef(null),j=z==="short"?pe||w:fe||C,ye=t=>{z==="short"?ee(t):te(t)},_=p.trim().length,N=o.trim().length,A=_>=200,[Ne,re]=s.useState(!1);s.useEffect(()=>{if(d)return;try{if(sessionStorage.getItem("coverLetterHandoff")??localStorage.getItem("coverLetterHandoff"))return}catch{return}const t=ht(gt($()),{resume:"",jobDescription:""},"cover_letter");t.filled&&(n(r=>r.trim()?r:t.resume),i(r=>r.trim()?r:t.jobDescription),re(!0),jt($(),"cover_letter"))},[]),s.useEffect(()=>{try{const t=sessionStorage.getItem("coverLetterHandoff")??localStorage.getItem("coverLetterHandoff");if(!t)return;const r=JSON.parse(t);if(!r.ts||Date.now()-r.ts>1800*1e3){sessionStorage.removeItem("coverLetterHandoff"),localStorage.removeItem("coverLetterHandoff");return}r.resume&&n(r.resume),r.jobDescription&&i(r.jobDescription),sessionStorage.removeItem("coverLetterHandoff"),localStorage.removeItem("coverLetterHandoff"),H.success("Loaded from Resume Tailor")}catch{}},[]);const se=O(_e);s.useEffect(()=>{let t=!1;return(async()=>{try{const[r,{data:b}]=await Promise.all([se().catch(()=>null),De.auth.getUser()]);if(t)return;const ae=(r?.full_name||"").trim(),Le=(r?.email||"").trim(),Ie=(b?.user?.email||"").trim();ae&&K(u=>u.trim()?u:ae);const oe=Le||Ie;oe&&G(u=>u.trim()?u:oe);const ie=(r?.phone||"").trim();ie&&Y(u=>u.trim()?u:ie)}catch{}})(),()=>{t=!0}},[se]);
1const{run:Se,loading:S,timedOut:we,dismissTimeout:Ce}=He("cover_letter",t=>I({data:t}));s.useEffect(()=>{(w||C)&&E.current&&E.current.scrollIntoView({behavior:"smooth",block:"start"})},[w,C]);const B=async t=>{t?.preventDefault(),Q(""),X(""),ee(""),te(""),M("preview");try{const r=await Se({jobTitle:c,company:a,jobDescription:o,resume:p,tone:ce[W],hiringManager:q,senderName:R,senderEmail:D,senderPhone:U,applicationId:d,title:V});X(r.standard??r.content),Q(r.short??r.content),Z("standard"),he(r.id??null),je(!!r.saved),ve(!!r.alreadyHadCoverLetter)}catch(r){H.error(r instanceof Error?r.message:"Failed")}},ke=()=>{try{sessionStorage.setItem("interviewPrepHandoff",JSON.stringify({role:c,company:a,jobDescription:o,resume:p,ts:Date.now()}))}catch{}};return e.jsxs(We,{toolKey:"cover-letter",title:"Cover Letter Generator",description:"Create a tailored cover letter based on your resume and target job description, with a strong opening, role-specific examples, and a professional tone.",whatYouGet:["Tailored cover letter draft","Role-specific opening","Resume-based examples","Professional tone options"],children:[e.jsx(lt,{applicationId:d,onLoaded:t=>{c||x(t.job_title),a||y(t.company),!o&&t.job_description&&i(t.job_description),!p&&t.resume?.content&&(n(t.resume.content),m({id:t.resume.id,title:t.resume.title,source:t.resume.source}))}}),e.jsx(qe,{steps:["Add your resume and job description","Add role and contact details","Generate a tailored letter"]}),e.jsxs("form",{onSubmit:B,className:"space-y-6",children:[e.jsxs("div",{children:[e.jsxs(l,{htmlFor:"cl-title",children:["Name this cover letter",e.jsxs("span",{className:"text-[11px] text-muted-foreground font-normal",children:[" "," -  Naming a run saves it to your ",e.jsx("span",{className:"font-medium",children:"History"})," page. Optional."]})]}),e.jsx(h,{id:"cl-title",value:V,onChange:t=>xe(t.target.value),placeholder:"e.g. Customer Success Lead at Northwind",maxLength:120})]}),Ne&&e.jsx(ft,{onClear:()=>{bt($()),n(""),i(""),re(!1)}}),e.jsx(dt,{meta:T,onDismiss:()=>m(null)}),e.jsx(nt,{show:P,onDismiss:()=>F(!1)}),e.jsxs("div",{className:"grid gap-y-2 md:grid-cols-2 md:grid-rows-[auto_1fr] md:gap-x-6 md:gap-y-0 items-start",children:[e.jsxs("div",{className:"order-1 md:order-1",children:[e.jsxs(l,{htmlFor:"r",className:"flex items-center gap-2",children:[e.jsx("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-blue-600 text-white text-[11px] font-semibold",children:"1"}),"Your resume",e.jsx("span",{className:"text-destructive",children:"*"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1.5",children:[e.jsx(it,{onText:t=>{n(t),m(null)},onMultiColumn:F}),e.jsx(Xe,{onLoad:t=>{n(t),m(null)},onLoadJd:t=>{o.trim()||i(t)}}),e.jsx(Ze,{onLoad:t=>{n(t),m(null)}}),e.jsx(tt,{applicationId:d,onLoad:(t,r,b)=>{n(t),m(null),b&&!o.trim()&&i(b)}}),e.jsx(et,{className:"ml-1"})]})]}),e.jsxs("div",{className:"order-3 md:order-2",children:[e.jsxs(l,{htmlFor:"jd",className:"flex items-center gap-2",children:[e.jsx("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-blue-600 text-white text-[11px] font-semibold",children:"2"}),"Target job description"]}),e.jsx("div",{className:"flex items-center gap-2 mt-1.5 min-h-8",children:e.jsx(ct,{applicationId:d,onPick:t=>{i(""),g({search:r=>({...r,applicationId:t})})},onClear:()=>{i(""),g({search:t=>{const{applicationId:r,...b}=t;return b}})},variant:"inline"})})]}),e.jsxs("div",{className:"order-2 md:order-3 flex flex-col",children:[e.jsx("div",{className:`${Ye} mt-2 flex min-h-0 flex-col overflow-hidden`,children:e.jsx(Ve,{id:"r",required:!0,rows:16,value:p,onChange:n,onMultiColumn:F})}),e.jsx("p",{className:`mt-1 text-[11px] ${A?"text-emerald-500":"text-muted-foreground"}`,children:A?`✓ Looks good - ${_} characters`:`Minimum 200 characters (${_} so far)`})]}),e.jsxs("div",{className:"order-4 md:order-4 flex flex-col",children:[e.jsx(Qe,{id:"jd",value:o,onChange:i,rows:16,placeholder:"Paste the job description for a more tailored, role-specific letter…"}),e.jsx("p",{className:`mt-1 text-[11px] ${N>=L.jobDescription?"text-amber-500":N>L.jobDescription*.8?"text-amber-500/80":"text-muted-foreground"}`,children:N>
10?`${N.toLocaleString()} / ${L.jobDescription.toLocaleString()} characters${N>=L.jobDescription?" - maximum reached":""}`:"Optional but strongly recommended"})]})]}),e.jsxs("div",{className:"rounded-lg border border-midnight/40 bg-card/40 p-4 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"inline-flex size-5 items-center justify-center rounded-full bg-blue-600 text-white text-[11px] font-semibold",children:"3"}),e.jsx(l,{className:"text-sm font-semibold",children:"Role and contact details"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs(l,{htmlFor:"jt",children:["Job title",e.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),e.jsx(h,{id:"jt",required:!0,value:c,onChange:t=>x(t.target.value),maxLength:200,placeholder:"e.g. Operations Manager"})]}),e.jsxs("div",{children:[e.jsxs(l,{htmlFor:"co",children:["Company",e.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),e.jsx(h,{id:"co",required:!0,value:a,onChange:t=>y(t.target.value),maxLength:200,placeholder:"e.g. Brightline Analytics"})]}),e.jsxs("div",{children:[e.jsxs(l,{htmlFor:"sn",children:["Your name",e.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),e.jsx(h,{id:"sn",required:!0,value:R,onChange:t=>K(t.target.value),maxLength:200})]}),e.jsxs("div",{children:[e.jsxs(l,{htmlFor:"se",children:["Your email",e.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),e.jsx(h,{id:"se",type:"email",required:!0,value:D,onChange:t=>G(t.target.value),maxLength:200})]})]})]}),e.jsxs("details",{className:"group rounded-md border border-midnight/40 bg-card",children:[e.jsxs("summary",{className:"cursor-pointer list-none flex items-center justify-between gap-2 px-3 py-2.5 text-sm font-medium",children:[e.jsx("span",{children:"Advanced options"}),e.jsx(ze,{className:"size-4 transition group-open:rotate-180 text-muted-foreground"})]}),e.jsx("div",{className:"px-3 pb-3 pt-1 space-y-4",children:e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx(l,{htmlFor:"hm",children:"Hiring manager"}),e.jsx(h,{id:"hm",value:q,onChange:t=>ue(t.target.value),maxLength:200,placeholder:"e.g. Jane Smith"})]}),e.jsxs("div",{children:[e.jsx(l,{htmlFor:"sp",children:"Your phone"}),e.jsx(h,{id:"sp",value:U,onChange:t=>Y(t.target.value),maxLength:50})]})]})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx(l,{className:"text-sm font-semibold",children:"Tone"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Choose the voice that fits the company culture and role. You can regenerate with a different tone after seeing your first draft."})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[{value:"professional",label:"Professional",description:"Formal and structured. Best for corporate, finance, and traditional industries.",example:"“I am writing to express my interest in the Senior Project Manager role…”"},{value:"confident",label:"Confident",description:"Direct and assertive. Best for competitive roles and senior positions.",example:"“I don’t just manage projects — I drive them to delivery on time and under budget…”"},{value:"warm",label:"Conversational",description:"Warm and natural. Best for startups, creative roles, and culture-first companies.",example:"“When I came across this role, it felt like it was written for exactly what I’ve been building toward…”"},{value:"concise",label:"Concise",description:"Short and punchy. Best for busy hiring managers who skim.",example:"“Three reasons I’m the right fit for this role…”"}].map(t=>{const r=W===t.value;return e.jsxs("button",{type:"button",onClick:()=>me(t.value),"aria-pressed":r,className:`relative text-left rounded-lg border p-3 transition-colors ${r?"border-blue-600 bg-blue-600/5 ring-1 ring-blue-600":"border-border bg-card hover:border-muted-foreground/40"}`,children:[r&&e.jsx("span",{className:"absolute top-2 right-2 inline-flex size-5 items-center justify-center rounded-full bg-blue-600 text-white",children:e.jsx(J,{className:"size-3"})}),e.jsx("div",{className:"text-sm font-semibold pr-7",children:t.label}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.description}
1),e.jsx("p",{className:"text-xs italic text-muted-foreground/90 mt-2",children:t.example})]},t.value)})})]}),e.jsxs("div",{className:"space-y-3 max-w-2xl mx-auto flex flex-col items-center",children:[e.jsx(v,{type:"submit",className:"px-6 bg-blue-600 text-white hover:bg-blue-700 font-semibold",disabled:S||!c||!a||!A||!R||!D,size:"lg",children:S?e.jsxs(e.Fragment,{children:[e.jsx(de,{className:"size-4 mr-2 animate-spin"}),"Writing…"]}):e.jsxs(e.Fragment,{children:[e.jsx(vt,{className:"size-4 mr-2"}),"Generate Cover Letter"]})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"CareerPlatform uses your resume and job description to tailor the letter. It does not invent experience. Generation may take up to 2 minutes - credits are only used for completed results."}),e.jsx(Ue,{loading:S,defaultMessage:"Writing your cover letter...",steps:[{label:"Reading resume and job description"},{label:"Identifying key matches",estimate:"~15 sec"},{label:"Drafting your letter",estimate:"~40 sec"},{label:"Finalizing tone and formatting",estimate:"~15 sec"}]}),e.jsx(Ae,{loading:S,messages:["Reading the job description…","Tailoring your story to the role…","Polishing tone and structure…","Finalizing your cover letter…"]})]}),(w||C)&&e.jsxs("div",{ref:E,className:"space-y-4 border-t border-midnight pt-6",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[e.jsx("h3",{className:"text-base font-bold",children:"Your cover letter"}),e.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[e.jsx(ut,{kind:"cover_letter",id:f,saved:ge}),e.jsx("span",{className:"text-[11px] font-medium text-muted-foreground uppercase tracking-wide",children:"Version"}),e.jsx("div",{className:"flex items-center gap-1 text-xs",children:["short","standard"].map(t=>e.jsx("button",{type:"button",onClick:()=>Z(t),className:`px-2 py-1 rounded-md transition-colors capitalize ${z===t?"bg-primary text-primary-foreground":"bg-card border border-midnight/40 text-muted-foreground hover:text-foreground"}`,children:t},t))})]})]}),e.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[e.jsx("button",{type:"button",onClick:()=>M("preview"),className:`inline-flex items-center gap-1 px-2 py-1 rounded-md transition-colors ${k==="preview"?"bg-primary text-primary-foreground":"bg-card border border-midnight/40 text-muted-foreground hover:text-foreground"}`,children:"Preview"}),e.jsx("button",{type:"button",onClick:()=>M("edit"),className:`inline-flex items-center gap-1 px-2 py-1 rounded-md transition-colors ${k==="edit"?"bg-primary text-primary-foreground":"bg-card border border-midnight/40 text-muted-foreground hover:text-foreground"}`,children:"Edit"}),k==="edit"&&e.jsx("span",{className:"ml-2 text-[11px] text-muted-foreground",children:"Edits are saved automatically and used for export."})]}),k==="preview"?e.jsx(rt,{content:j,variant:"letter",letterScale:!0}):e.jsx(Me,{value:j,onChange:t=>ye(t.target.value),rows:24,className:"font-mono text-xs min-h-[500px]",spellCheck:!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"This is your starting point - tweak details before exporting."}),e.jsx($e,{}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(v,{type:"button",variant:"outline",size:"sm",onClick:()=>{navigator.clipboard.writeText(j),H.success("Copied")},children:"Copy"}),e.jsxs(v,{type:"button",variant:"outline",size:"sm",onClick:()=>Ke(j,`cover-letter-${a||"draft"}.pdf`),children:[e.jsx(ne,{className:"size-4 mr-1.5"})," Export PDF"]}),e.jsxs(v,{type:"button",variant:"outline",size:"sm",onClick:()=>Ge(j,`cover-letter-${a||"draft"}.docx`),children:[e.jsx(ne,{className:"size-4 mr-1.5"})," Export Word"]}),e.jsxs(v,{type:"button",variant:"outline",size:"sm",onClick:()=>{B()},disabled:S,children:[e.jsx(yt,{className:"size-4 mr-1.5"})," Regenerate"]}),e.jsx(st,{defaultText:`Just drafted a tailored cover letter for ${c||"a new role"}${a?` at ${a}`:""} with CareerPlatform.io.
2
3If you're job-hunting too, AI-assisted writing makes a real difference. 💼`})]}
3),e.jsx(at,{toolKey:"cover",tips:[...ot.cover],resultKey:f??j.length}),e.jsxs("div",{className:"rounded-lg border border-midnight/40 bg-card/50 p-4",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Next step: Prepare for interview"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Use this role's details to generate likely interview questions and sample answers."}),e.jsx(v,{asChild:!0,size:"sm",className:"mt-3 bg-blue-600 text-white hover:bg-blue-700 font-semibold",children:e.jsxs(le,{to:"/tools/interview-prep",onClick:ke,children:[e.jsx(Nt,{className:"size-4 mr-2"}),"Generate Interview Prep"]})})]}),f&&e.jsxs(e.Fragment,{children:[e.jsx(mt,{enabled:!d,runKey:f,defaultJobTitle:c||Je(o),defaultCompany:a||Oe(o),jobDescription:o,artifact:{kind:"cover_letter",cover_letter_id:f}}),e.jsx(St,{enabled:!!d&&be,applicationId:d??"",newCoverLetterId:f,runKey:f})]})]})]}),e.jsx(Be,{open:we,onClose:Ce,onRetry:()=>{B()}})]})}export{Er as component};

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.