PageSourceSearch

https://www.getajob.careers/assets/InterviewCoach-BOmlEB6m.js

js getajob.careers collected 2026-10-02 01:19:36 UTC 2,884 bytes, 1 lines download raw bytes

1import{u as f,k as x,r as c,d as v,j as t,Z as g,_ as I,$ as k,a0 as y,a1 as p,s as S}from"./index-Da8xwxKH.js";import{A as _,C as A}from"./AgentIntro-CdXFel5i.js";import"./authRecovery-DYV186aL.js";const C=["💬 Generates role-specific interview questions","🧠 Provides STAR-method answer frameworks","🔍 Identifies your weak areas for the role","📋 Creates interview prep tasks in your tracker","🎤 Can do mock interview practice with feedback"],P="Tell it the role and company you're interviewing for. Ask for likely questions, or start a mock interview. Be specific - e.g. 'I have a Product Manager interview at Google next week'.",j=["Help me prep for a generic Product Manager interview","What's the STAR framework, and when should I use it?","Run a mock interview with me","How should I answer 'Tell me about yourself'?","What competencies do most early-career interviews test?"],T=["Generate likely interview questions for this role","What competencies will the interviewer test me on?","Run a mock interview with me","What are my weakest areas for this role?"];function D(){const{user:a}=f(),[l,h]=x(),[s,d]=c.useState("general"),{data:n=[]}=v({queryKey:["applications",a==null?void 0:a.id,"picker"],queryFn:async()=>{if(!(a!=null&&a.id))return[];const{data:e,error:i}=await S.from("applications").select("id, role_title, company, status").eq("user_id",a.id).order("updated_at",{ascending:!1});if(i)throw i;return e||[]},enabled:!!(a!=null&&a.id),refetchOnMount:"always"}),o=c.useMemo(()=>new Set(n.map(e=>e.id)),[n]);c.useEffect(()=>{const e=l.get("application_id");if(!e||!o.size)return;o.has(e)&&d(e);const i=new URLSearchParams(l);i.delete("application_id"),h(i,{replace:!0})},[o.size]);const r=n.find(e=>e.id===s),m=r?`Interview Coach - ${r.role_title}${r.company?` at ${r.company}`:""}`:"Interview Coach",u=r?"Coaching tailored to this role, your skill gaps, and your experience.":"Select a role above for tailored prep, or ask general interview questions.",w=r?T:j;return t.jsxs("div",{className:"h-screen flex flex-col overflow-hidden",children:[t.jsx(_,{agentId:"interview_coach",capabilities:C,howToUse:P}),t.jsxs("div",{className:"px-6 py-3 border-b border-[#DDDDDB] bg-white flex items-center gap-3 shrink-0",children:[t.jsx("span",{className:"text-xs font-medium text-[#52545A] shrink-0",children:"Context:"}),t.jsxs(g,{value:s,onValueChange:d,children:[t.jsx(I,{className:"h-8 text-xs max-w-xs border-[#DDDDDB]",children:t.jsx(k,{})}),t.jsxs(y,{children:[t.jsx(p,{value:"general",children:"General interview prep"}),n.map(e=>t.jsxs(p,{value:e.id,children:[e.role_title," at ",e.company]},e.id))]})]})]}),t.jsx("div",{className:"flex-1 overflow-hidden",children:t.jsx(A,{agentName:"interview_coach",title:m,description:u,applicationId:s==="general"?null:s,suggestedPrompts:w,introMessage:"What would you like to work on?"},s)})]})}export{D 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.