PageSourceSearch

https://careerplatform.io/assets/interview-prep-gvE_T2Ok.js

js careerplatform.io collected 2026-09-24 15:05:49 UTC 27,977 bytes, 14 lines download raw bytes

1import{bq as he,u as xe,r as o,a as X,b0 as ge,t as u,j as e,L as R,E as fe,B as c,b as N,A as be}from"./index-DNidg_Qc.js";import{u as Z}from"./useAIJob-ClnP__qi.js";import{P as we,A as ye}from"./processing-message-D0UCgJty.js";import{T as je}from"./tool-shell-Ca_pGYsK.js";import{S as ve}from"./StepIndicator-CI4cK_FC.js";import{M as Ne,a as ke}from"./MicroTip-BclhUOIG.js";import{I as Q}from"./input-70YvsUaZ.js";import{L as k}from"./label-Bhudjdxi.js";import{A as _e,a as qe,b as Se,c as Te}from"./accordion-BBQ7pOxu.js";import{u as Re}from"./useToolRemaining-D3wJXDRJ.js";import{R as Ae}from"./resume-upload-button-D77qLtgT.js";import{P as Pe,R as Ce,J as Ie}from"./ResumeInput-_r2Ve4TI.js";import{M as Le}from"./MultiColumnWarningBanner-aVccz4D4.js";import{L as ze}from"./LoadSavedResume-NpzK-0VW.js";import{U as De,R as Ee}from"./UseResumeProfileButton-B9aqLXeo.js";import{U as Fe}from"./UseTailoredVersionButton-XBoihEM_.js";import{e as Me,a as $e}from"./export-pdf-DNGX-1_H.js";import{P as Ge}from"./ai-processing-notice-DjDAPzb1.js";import{L as Qe}from"./LinkedApplicationBanner-XULYa-Rs.js";import{A as We}from"./AutoSelectedResumeChip-Cr5aCXqa.js";import{S as Be}from"./SavedJobPicker-Cxs_iqO-.js";import{S as Ke}from"./SaveToTrackerPrompt-ftzeLA7T.js";import{P as Ue}from"./PlanGate-Dn5rCudQ.js";import{I as Je}from"./PremiumToolPreviews-Cg7USIaG.js";import{a as Oe,u as He}from"./interview-library.functions-DCVFNI0Q.js";import{S as Ye}from"./shield-check-DVO32LZ7.js";import{M as Ve}from"./message-square-tEJuq6-U.js";import{P as ee}from"./plus-BRSyRfE3.js";import{C as Xe}from"./copy-o5wQvCLO.js";import{D as te}from"./download-DvVzbS_i.js";import{B as Ze}from"./book-marked-CM7jbOgf.js";import{C as et}from"./check-DWkmcDeA.js";import"./dialog-B1BXKzKU.js";import"./index-D324aKeF.js";import"./index-Bk7P141l.js";import"./refresh-cw-_l0dIfdp.js";import"./calendar-range-DtWa0rnV.js";import"./dollar-sign-DLC6ZiSK.js";import"./camera-CYuBMNZh.js";import"./mic-UwRtLMQn.js";import"./linkedin-DeuNArME.js";import"./mail-DIM7-Uur.js";import"./file-text-BlHcyHb-.js";import"./target-BIU4lc4B.js";import"./ToolAllowanceChip-DpV-q-mI.js";import"./usage.functions-EBSqWXJF.js";import"./DemoVideo-CwAl5Odk.js";import"./tool-demos-DgraiMJb.js";import"./lightbulb-5U240Hvw.js";import"./index-BWv19AmV.js";import"./chevron-down-CPsmHmNT.js";import"./useSubscription-C5ij1Ie9.js";import"./stripe-BL9TlFig.js";import"./resume-source-hygiene-BnELtta6.js";import"./upload--hJlow_J.js";import"./resume-drop-zone-CkctDbNH.js";import"./pencil-DOsXhVyV.js";import"./index-D-fQwQV1.js";import"./index-CPuSwFTH.js";import"./career.functions-CPuccMWX.js";import"./folder-open-CvvqG1yO.js";import"./resume-profile.functions-Ce4qxuzL.js";import"./extension-auth-B_JeSTLN.js";import"./resume-tailor-versions.functions-CuykLTlY.js";import"./resume-tailor-version-arJFjEhY.js";import"./sparkles-BLWsg7Fk.js";import"./info-DBwFhE5P.js";import"./tracked-applications.functions-D9ru-dy2.js";import"./briefcase-Bth-ssxz.js";import"./search-DY8HD4NR.js";import"./useIsAdmin-_vVIyJqR.js";import"./lock-DY_q9bUw.js";import"./circle-check-big-DjEcvWDG.js";import"./circle-alert-Bw878CKd.js";import"./video-DWkt9FxH.js";function vs(){const{applicationId:m}=he.useSearch(),W=xe(),B=Re("interview_prep"),n=Z("interview_prep"),x=Z("interview_prep",{storageKey:"interview_prep:more"}),[d,A]=o.useState(""),[l,P]=o.useState(""),[a,g]=o.useState(""),[p,f]=o.useState(""),[b,se]=o.useState(""),[re,w]=o.useState(null),[ie,C]=o.useState(!1),[r,y]=o.useState(null),[K,oe]=o.useState(null),[h,U]=o.useState(null),[J,O]=o.useState(!1),I=o.useRef(!1),[L,z]=o.useState(!1),[T,D]=o.useState(["","","","","",""]),ae=X(Oe),H=X(He),E=ge(),_=n.loading,q=x.loading,F=o.useRef(null);o.useEffect(()=>{r&&F.current&&requestAnimationFrame(()=>{F.current?.scrollIntoView({behavior:"smooth",block:"start"})})},[r]),o.useEffect(()=>{try{const t=sessionStorage.getItem("interviewPrepHandoff")??localStorage.getItem("interviewPrepHandoff");if(!t)return;const s=JSON.parse(t);if(!s.ts||Date.now()-s.ts>1800*1e3){sessionStorage.removeItem("interviewPrepHandoff"),localStorage.removeItem("interviewPrepHandoff");return}s.role&&A(s.role),s.company&&P(s.company),s.jobDescription&&g(s.jobDescription),s.resume&&f(s.resume),sessionStorage.removeItem("interviewPrepHandoff"),localStorage.removeItem("interviewPrepHandoff"),u.success("Loaded from Cover Letter Generator")}catch{}},[]),o.useEffect(()=>{n.result&&!r&&y(M(n.result))},[n.result]),o.useEffect(()=>{n.interim&&y(M(n.interim))},[n.interim]);const S=!!r&&r._partial===!0,ne="Tell me about yourself?",Y="What intrigued y
1ou to apply for this position",M=t=>{const s=l?`${Y} at ${l}?`:`${Y}?`,i=t.questions.filter(v=>!v.question.toLowerCase().startsWith("tell me about yourself")&&!v.question.toLowerCase().startsWith("what intrigued you to apply")),j=t.questions.find(v=>v.question.toLowerCase().startsWith("tell me about yourself"))??{question:ne,why_asked:"Opens the conversation and lets you frame your background on your terms.",sample_answer:`Aim for a 60–90 second elevator pitch in three beats.
2
31) Who you are now: "I'm a [your title] with [X years] of experience focused on [domain / specialty]." Anchor it to the role you're interviewing for.
4
52) The through-line of your career: walk briefly from your most relevant prior role to today, calling out 2–3 concrete wins with metrics where possible (e.g. "led a 6-person team that shipped X, cutting Y by Z%"). Skip the full chronology - pick the experiences that map to this job description.
6
73) Why this role, why now: connect what you've been building toward to what this company is hiring for. End on a forward-looking sentence ("which is exactly why this role caught my attention") to hand the conversation back.`},pe=t.questions.find(v=>v.question.toLowerCase().startsWith("what intrigued you to apply"))??{question:s,why_asked:"Checks your motivation and how well you've researched the role and company.",sample_answer:`Tie three things together: (1) something specific about the company or role, (2) your background, and (3) where this role takes you next.
8
91) Specific hook: name something concrete - the team's mission, a product area, a recent launch or strategic move, the scope of the role itself. "What stood out in the JD is [specific responsibility / outcome]." Avoid generic praise like "great culture" or "industry leader."
10
112) Why you, specifically: bridge that hook to your own experience. Reference 1–2 things from your background that directly map to what they're hiring for (e.g. "I've spent the last [X years] doing [closely related work], including [specific win]").
12
133) Forward motion: end with what this role unlocks for you - the next problem you want to work on, the kind of team you want to build with, or the skill set you want to deepen. This shows intent, not just interest.`};return{...t,questions:[j,pe,...i]}},$=async t=>{t?.preventDefault(),y(null),U(null);try{const s=await n.run({role:d,company:l,jobDescription:a,resume:p,context:b,applicationId:m}),i=M(s);y(i),oe(`prep-${Date.now()}`)}catch(s){u.error(s instanceof Error?s.message:"Failed")}},V=async()=>{if(r)try{const t=await x.run({role:d,company:l,jobDescription:a,resume:p,context:b,excludeQuestions:r.questions.map(i=>i.question),applicationId:m}),s={questions:[...r.questions,...t.questions],topics_to_review:Array.from(new Set([...r.topics_to_review,...t.topics_to_review])),questions_to_ask_them:Array.from(new Set([...r.questions_to_ask_them,...t.questions_to_ask_them]))};if(y(s),u.success("Added 6 more questions"),h)try{await H({data:{id:h,role:d,company:l||null,applicationId:m??null,questions:s.questions,topics_to_review:s.topics_to_review,questions_to_ask_them:s.questions_to_ask_them}}),E.invalidateQueries({queryKey:["interview-library"]})}catch{}}catch(t){u.error(t instanceof Error?t.message:"Failed")}},le=async()=>{if(!r)return;const t=T.map(s=>s.trim()).filter(s=>s.length>0).slice(0,6);if(t.length===0){u.error("Add at least one question.");return}try{const s=await x.run({role:d,company:l,jobDescription:a,resume:p,context:b,userQuestions:t,applicationId:m}),i={questions:[...r.questions,...s.questions],topics_to_review:r.topics_to_review,questions_to_ask_them:r.questions_to_ask_them};if(y(i),D(["","","","","",""]),z(!1),u.success(`Added STAR guidance for ${s.questions.length} question${s.questions.length===1?"":"s"}`),h)try{await H({data:{id:h,role:d,company:l||null,applicationId:m??null,questions:i.questions,topics_to_review:i.topics_to_review,questions_to_ask_them:i.questions_to_ask_them}}),E.invalidateQueries({queryKey:["interview-library"]})}catch{}}catch(s){u.error(s instanceof Error?s.message:"Failed")}},de=async()=>
13{if(!(!r||h)&&!I.current){I.current=!0,O(!0);try{const t=await ae({data:{role:d,company:l||null,applicationId:m??null,questions:r.questions,topics_to_review:r.topics_to_review,questions_to_ask_them:r.questions_to_ask_them}});U(t.id),E.invalidateQueries({queryKey:["interview-library"]}),u.success("Saved to your Interview Library")}catch(t){u.error(t instanceof Error?t.message:"Failed to save")}finally{I.current=!1,O(!1)}}},G=()=>{if(!r)return"";const t=["# Interview Prep Kit","","## Likely Questions"];return r.questions.forEach((s,i)=>{const j=i<2?s.question:`${i-1}. ${s.question}`;t.push("",`### ${j}`,"",`Why asked: ${s.why_asked}`,"",`Sample answer: ${s.sample_answer}`)}),t.push("","## Topics to Review",...r.topics_to_review.map(s=>`- ${s}`)),t.push("","## Questions to Ask Them",...r.questions_to_ask_them.map(s=>`- ${s}`)),t.join(`
14`)},ce=()=>{const t=G();t&&Me(t,"interview-prep.pdf")},me=()=>{const t=G();t&&$e(t,"interview-prep.docx")},ue=()=>{try{sessionStorage.setItem("mockInterviewHandoff",JSON.stringify({role:d,company:l,jobDescription:a,resume:p,questions:r?.questions.map(t=>t.question)??[],ts:Date.now()}))}catch{}};return e.jsx(je,{toolKey:"interview-prep",title:"Interview Prep",description:"Generate likely interview questions, STAR answer guidance, and role-specific talking points based on your target job description and resume.",whatYouGet:["Likely role-specific interview questions","STAR answer guidance","Topics to review before the interview","Smart questions to ask the employer"],children:e.jsxs(Ue,{tool:"interview_prep",preview:e.jsx(Je,{}),children:[e.jsx(Qe,{applicationId:m,onLoaded:t=>{d||A(t.job_title),l||P(t.company),!a&&t.job_description&&g(t.job_description),!p&&t.resume?.content&&(f(t.resume.content),w({id:t.resume.id,title:t.resume.title,source:t.resume.source}))}}),e.jsxs("div",{className:"mb-4 rounded-md border border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 px-3 py-2 flex items-center gap-2 text-xs",children:[e.jsx(Ye,{className:"size-3.5 shrink-0"}),e.jsxs("span",{className:"leading-snug",children:[e.jsx("span",{className:"font-semibold",children:"Practice tool."})," CareerPlatform helps you prepare before the interview. We do not assist during live interviews."," ",e.jsx(R,{to:"/ethical-ai",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-emerald-900 dark:hover:text-emerald-100",children:"Read our ethics pledge"})]})]}),e.jsx(ve,{steps:["Add your resume and job description","Add role and company details","Get questions, talking points, and STAR answer guidance"]}),e.jsxs("form",{onSubmit:$,className:"space-y-6",children:[e.jsx(We,{meta:re,onDismiss:()=>w(null)}),e.jsx(Le,{show:ie,onDismiss:()=>C(!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(k,{htmlFor:"res",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.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-1.5",children:[e.jsx(Ae,{onText:t=>{f(t),w(null)},onMultiColumn:C}),e.jsx(ze,{onLoad:t=>{f(t),w(null)},onLoadJd:t=>{a.trim()||g(t)}}),e.jsx(De,{onLoad:t=>{f(t),w(null)}}),e.jsx(Fe,{applicationId:m,onLoad:(t,s,i)=>{f(t),w(null),i&&!a.trim()&&g(i)}}),e.jsx(Ee,{className:"ml-1"})]})]}),e.jsxs("div",{className:"order-3 md:order-2",children:[e.jsx("div",{className:"flex items-center justify-between gap-2 flex-wrap",children:e.jsxs(k,{htmlFor:"j",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("span",{className:"text-destructive",children:"*"})]})}),e.jsx("div",{className:"flex items-center gap-2 flex-wrap mt-1.5 min-h-8",children:e.jsx(Be,{applicationId:m,onPick:t=>{g(""),W({search:s=>({...s,applicationId:t})})},onClear:()=>{g(""),W({search:t=>{const{applicationId:s,...i}=t;return i}})},variant:"inline"})})]}),e.jsxs("div",{className:"order-2 md:order-3 flex flex-col",children:[e.jsx("div",{className:`${Pe} mt-2 flex min-h-0 flex-col overflow-hidden`,children:e.jsx(Ce,{id:"res",value:p,onChange:f,onMultiColumn:C,rows:16})}),p.length>
148e3&&e.jsxs("p",{className:"mt-1 text-[11px] text-amber-600 dark:text-amber-400",children:["Your resume is long (",p.length.toLocaleString()," characters) - we’ll use the first 8,000, which covers a full two-page resume. If yours runs longer, paste your most recent roles first."]})]}),e.jsxs("div",{className:"order-4 md:order-4 flex flex-col",children:[e.jsx(Ie,{id:"j",required:!0,value:a,onChange:g,rows:16,placeholder:"Paste the full job description - required for tailored questions and answers"}),a.length>0&&e.jsxs("p",{className:`mt-1 text-[11px] ${a.length>=15e3?"text-amber-500":a.length>12e3?"text-amber-500/80":"text-muted-foreground"}`,children:[a.length.toLocaleString()," / 15,000 characters",a.length>=15e3?" - maximum reached":""]}),a.length>8e3&&e.jsxs("p",{className:"mt-1 text-[11px] text-amber-600 dark:text-amber-400",children:["This job description is long (",a.length.toLocaleString()," characters) - we’ll use the first 8,000, so keep the requirements and responsibilities near the top."]})]})]}),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(k,{className:"text-sm font-semibold",children:"Role and company"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsxs(k,{htmlFor:"r",children:["Role",e.jsx("span",{className:"text-destructive ml-0.5",children:"*"})]}),e.jsx(Q,{id:"r",required:!0,value:d,onChange:t=>A(t.target.value),maxLength:200,placeholder:"e.g. Sales Development Rep"})]}),e.jsxs("div",{children:[e.jsx(k,{htmlFor:"c",children:"Company (optional)"}),e.jsx(Q,{id:"c",value:l,onChange:t=>P(t.target.value),maxLength:200,placeholder:"e.g. Brightline Analytics"})]})]}),e.jsxs("div",{children:[e.jsx(k,{htmlFor:"ctx",children:"Anything not on your resume the answers should draw on (optional)"}),e.jsx(fe,{id:"ctx",value:b,onChange:t=>se(t.target.value.slice(0,3e3)),rows:3,maxLength:3e3,placeholder:"e.g. team of 3, I owned requirements and QA; Jira and Power BI; cut onboarding from 6 weeks to 4; a project I can talk about in detail",className:"mt-1"}),e.jsxs("p",{className:"mt-1 text-[11px] text-muted-foreground",children:["Numbers, tools, team size, a project you can speak to. The answers use only what is here or on the resume, and never invent beyond it.",b.length>0?` ${b.length.toLocaleString()} / 3,000`:""]})]})]}),e.jsxs("div",{className:"space-y-3 max-w-2xl mx-auto flex flex-col items-center",children:[e.jsx(c,{type:"submit",className:"px-6 bg-blue-600 text-white hover:bg-blue-700 font-semibold",size:"lg",disabled:_||!d||!a.trim(),children:_?e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"size-4 mr-2 animate-spin"}),"Generating…"]}):e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:"size-4 mr-2"}),"Generate Interview Prep"]})}),e.jsx("p",{className:"text-xs text-muted-foreground text-center",children:"CareerPlatform helps you prepare with your real experience. It does not provide live interview assistance. This usually takes about a minute - credits are only used for completed results."}),e.jsx(Ge,{loading:_&&!r,defaultMessage:"Preparing your interview questions...",steps:[{label:"Reading resume and job description"},{label:"Generating role-specific questions",estimate:"~15 sec"},{label:"Writing STAR answer guidance",estimate:"~25 sec"},{label:"Preparing topics and smart questions",estimate:"~10 sec"}],pollStale:n.pollStale,onCheckNow:n.checkNow,checking:n.checking}),n.timedOut&&e.jsxs("div",{className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-4 py-3 text-sm",children:[e.jsx("p",{className:"font-semibold text-foreground mb-1",children:"Generation timed out - your credit has not been charged."}),e.jsx("p",{className:"text-muted-foreground mb-2",children:"Please try again. Your resume and job description are still here."}),e.jsx(c,{type:"button",size:"sm",onClick:()=>{n.dismissTimeout(),$()},className:"bg-blue-600 text-white hover:bg-blue-700",children:"Try again"})]}),e.jsx(we,{loading:_,messages:["Researching the role…","Drafting likely interview questions…","Building STAR-style sample answers…","Assembling your prep kit…"]})]}),r&&e.jsxs("div",{ref:F,className:"space-y-4 border-t-2 border-midnight pt-6 scroll-mt-4",children:[e.jsx(Ne,{toolKey:"interview",tips:[...ke.interview],resultKey:r.questions.length}),e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-4",children:[e.jsx("h3",{className:"font-bold text-sm mb-2",children:"Interview overview"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Tailored prep for"," ",e.jsx("span",{className:"text-foreground font-medium",children:d||"your role"}),l?e.jsxs(e.Fragment,{children:[" ","at ",e.jsx("span",{className:"text-foreground font-medium",children:l})]}):null,". Expand each question below for why it's asked and STAR-style answer guidance grounded in your experience."]})]}),S&&e.jsxs("div",{className:"rounded-lg border border-blue-300/40 bg-blue-50/60 dark:bg-blue-950/20 p-4 flex items-center gap-3",children:[e.jsx(N,{className:"size-4 animate-spin text-blue-600 dar
14k:text-blue-400 shrink-0"}),e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Generating personalized study plan and smart questions…"})]}),e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-4",children:[e.jsx("h3",{className:"font-bold text-sm mb-3",children:"Likely questions & STAR answer guidance"}),e.jsx(_e,{type:"single",collapsible:!0,children:r.questions.map((t,s)=>e.jsxs(qe,{value:`q-${s}`,children:[e.jsxs(Se,{className:"text-left text-sm",children:[s<2?"":`${s-1}. `,t.question]}),e.jsx(Te,{className:"text-sm",children:e.jsxs("div",{className:"grid md:grid-cols-2 gap-3 pt-1",children:[e.jsxs("div",{className:"rounded-md border border-midnight/40 bg-muted/40 p-3",children:[e.jsx("p",{className:"font-semibold text-primary mb-1 text-xs uppercase tracking-wide",children:"Why this is asked"}),e.jsx("p",{className:"text-sm",children:t.why_asked})]}),e.jsxs("div",{className:"rounded-md border border-blue-300 dark:border-blue-800 bg-blue-50 dark:bg-blue-950/30 p-3",children:[e.jsx("p",{className:"font-semibold text-blue-700 dark:text-blue-300 mb-1 text-xs uppercase tracking-wide",children:"Sample STAR answer"}),e.jsx("p",{className:"whitespace-pre-wrap text-sm text-slate-800 dark:text-slate-100",children:t.sample_answer})]})]})})]},s))})]}),e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-4",children:[e.jsxs("h3",{className:"font-bold text-sm mb-3 flex items-center gap-2",children:["Topics to review",S&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] font-normal text-muted-foreground",children:[e.jsx(N,{className:"size-3 animate-spin"})," Loading…"]})]}),r.topics_to_review.length>0?e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm",children:r.topics_to_review.map((t,s)=>e.jsx("li",{children:t},s))}):S?e.jsx("p",{className:"text-xs text-muted-foreground",children:"Pulling out the topics worth brushing up on…"}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"Could not load - try refreshing the page."})]}),e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-4",children:[e.jsxs("h3",{className:"font-bold text-sm mb-3 flex items-center gap-2",children:["Smart questions to ask them",S&&e.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] font-normal text-muted-foreground",children:[e.jsx(N,{className:"size-3 animate-spin"})," Loading…"]})]}),r.questions_to_ask_them.length>0?e.jsx("ul",{className:"list-disc pl-5 space-y-1 text-sm",children:r.questions_to_ask_them.map((t,s)=>e.jsx("li",{children:t},s))}):S?e.jsx("p",{className:"text-xs text-muted-foreground",children:"Drafting questions tailored to this company…"}):e.jsx("p",{className:"text-xs text-muted-foreground",children:"Could not load - try refreshing the page."})]}),e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-4",children:[e.jsx("h3",{className:"font-bold text-sm mb-3",children:"Practice tips"}),e.jsxs("ul",{className:"list-disc pl-5 space-y-1 text-sm text-muted-foreground",children:[e.jsx("li",{children:"Read each answer out loud and time yourself - aim for 60–90 seconds per behavioral answer."}),e.jsx("li",{children:"Replace the sample phrasing with your own words and specific metrics from your resume."}),e.jsx("li",{children:"For each STAR answer, make sure the Result is concrete (numbers, impact, scope)."}),e.jsx("li",{children:"Prepare two questions to ask them - picking from the list above shows research and intent."})]})]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[e.jsxs("div",{className:"rounded-lg border border-midnight/40 bg-card/40 p-4 flex flex-col",children:[e.jsx("p",{className:"text-sm font-semibold mb-1",children:"Generate 6 more questions"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3 flex-1",children:"Get 6 more role-specific questions with STAR guidance, tailored to this job description and your resume."}),e.jsx(c,{type:"button",variant:"default",size:"sm",onClick:V,disabled:q,className:"w-full",children:q&&!L?e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"size-4 mr-2 animate-spin"}),"Generating…"]}):e.jsxs(e.Fragment,{children:[e.jsx(ee,{className:"size-4 mr-2"}),"Generate 6 more questions"]})}),e.jsx("p",{className:"mt-2 text-[11px] text-muted-foreground",children:"Uses 1 credit."})]}),e.jsxs("div",{className:"rounded-lg border border-midnight/40 bg-card/40 p-4 flex flex-col",children:[e.jsx("p",{className:"text-sm font-semibold mb-1",children:"Add your own questions"}),e.jsx("p",{className:"text-xs text-muted-foreground mb-3 flex-1",children:"Know what questions you’ll be asked? Get tailored STAR guidance for them."}),L?e.jsxs("div",{className:"space-y-2",children:[T.map((t,s)=>e.jsx(Q,{value:t,onChange:i=>{const j=[...T];j[s]=i.target.value,D(j)},maxLength:500,placeholder:`Question ${s+1}${s===0?" (required)":" (optional)"}`,className:"text-sm"},s)),e.jsxs("div",{className:"flex gap-2 pt-1",children:[e.jsx(c,{type:"button",size:"sm",onClick:le,disabled:q||T.every(t=>t.trim().length===0),className:"flex-1",children:q?e.jsxs(e.Fragment,{children:[e.jsx(N,{className:"size-4 mr-2 animate-spin"}),"Generating…"]}):"Get STAR guidance"}),e.jsx(c,{type:"button",size:"sm",variant:"ghost",onClick:()=>{z(!1),D(["","","","","",""])},disabled:q,children:"Cancel"})]}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Add 1–6 questions. Uses 1 credit."})]}):e.jsxs(c,{type:"button",variant:"outline",size:"sm",onClick:()=>z(!0),className:"w-full",children:[e.jsx(ee,{className:"size-4 mr-2"}),"Add your own questions"]}),!L&&e.jsx("p",{className:"mt-2 text-[11px] text-muted-foreground",children:"Uses 1 credit."})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsxs(c,{type:"button",variant:"outline",size:"sm",onClick:()=>{navigator.clipboard.writeText(G()),u.success("Copied to clipboard")},children:[e.jsx(Xe,{className:"size-4 mr-1.5"})," Copy"]}),e.jsxs(c,{type:"button",variant:"outline",size:"sm",onClick:ce,children:[e.jsx(te,{className:"size-4 mr-1.5"})," Export PDF"]}),e.jsxs(c,{type:"button",variant:"outline",size:"sm",onClick:me,children:[e.jsx(te,{className:"size-4 mr-1.5"})," Export Word"]})]}),e.jsxs("div",{className:"rounded-lg border border-primary/30 bg-primary/5 p-4 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:"Next step: Mock Interview Simulator"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Practice answering these questions out loud with realtime feedback."})]}),e.jsx(c,{asChild:!0,size:"sm",onClick:ue,className:"bg-blue-600 text-white hover:bg-blue-700 font-semibold",children:e.jsx(R,{to:"/tools/mock-interview",children:"Practice Mock Interview"})})]}),e.jsxs("div",{className:"rounded-lg border border-amber-300 dark:border-amber-700 bg-amber-50 dark:bg-amber-950/30 p-4 flex flex-wrap items-center justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold",children:h?"Saved to your Interview Library":"Save this prep session to your Interview Library?"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:h?"You can review these questions any time from your library.":"Keep these questions and 
14STAR answers handy so you can review them before the interview. Unsaved results are removed after 24 hours."})]}),h?e.jsx(c,{asChild:!0,size:"sm",variant:"outline",children:e.jsx(R,{to:"/dashboard/interview-library",children:"View in Library"})}):e.jsxs(c,{type:"button",size:"sm",onClick:de,disabled:J,className:"bg-amber-600 text-white hover:bg-amber-700 font-semibold",children:[e.jsx(Ze,{className:"size-4 mr-1.5"}),J?"Saving…":"Save to Library"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Each generation counts as one use of your monthly Interview Prep quota."}),K&&r&&e.jsx(Ke,{enabled:!m,runKey:K,defaultJobTitle:d,defaultCompany:l,jobDescription:a,artifact:{kind:"interview_prep",role:d||"Role",content:JSON.stringify(r)}})]}),!r&&!_&&e.jsxs("div",{className:"border border-midnight/40 bg-card text-card-foreground rounded-lg p-6 max-w-md mx-auto mt-2",children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Your interview prep kit will appear here."}),e.jsx("ul",{className:"space-y-1.5 text-sm",children:["Likely interview questions","Behavioral questions","Role-specific questions","STAR answer guidance","Talking points from your resume","Topics to review"].map(t=>e.jsxs("li",{className:"flex items-start gap-2 text-muted-foreground",children:[e.jsx(et,{className:"size-3.5 mt-1 shrink-0 text-primary"}),e.jsx("span",{children:t})]},t))})]})]}),e.jsx(ye,{open:n.timedOut||x.timedOut,onClose:()=>{n.dismissTimeout(),x.dismissTimeout()},onRetry:()=>{x.timedOut?(x.dismissTimeout(),V()):$()}}),B!==null&&B<=3&&e.jsxs("div",{className:"mt-6 rounded-lg border border-border bg-muted/20 p-4",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:"Need more interview prep sessions? The Interview Prep Pack gives you 20 prep sessions and 4 mock interviews for $15.99 - no subscription."}),e.jsxs(R,{to:"/pricing",className:"mt-2 inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline",children:["View Interview Prep Pack",e.jsx(be,{className:"size-3.5"})]})]})]})})}export{vs 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.