PageSourceSearch

https://flashfox.ai/assets/Dashboard-BArA4wtQ.js

js flashfox.ai collected 2026-10-05 16:19:16 UTC 30,686 bytes, 1 lines download raw bytes

1import{aQ as se,u as ne,a$ as ae,r as h,bv as ie,bw as re,bx as le,by as oe,bz as xe,bA as M,j as e,bB as ce,bC as de}from"./app-BCN-joGR.js";import{B as J}from"./BrandLogo-NAvzQv5D.js";import{C as me}from"./CompanyAvatar-CyyrWDb9.js";function Be(){const t=se(),[s,a]=ne(),{candidate:n,logout:i,loading:r}=ae(),[l,x]=h.useState("home"),[o,d]=h.useState([]),[m,y]=h.useState([]),[c,v]=h.useState([]),[N,k]=h.useState([]),[g,V]=h.useState(null),[K,_]=h.useState([]),[Q,B]=h.useState(null),[S,C]=h.useState(null),[X,I]=h.useState(!1);if(h.useEffect(()=>{if(!r){if(!n){t("/");return}ie().then(d).catch(()=>{}),re().then(y).catch(()=>{}),le().then(v).catch(()=>{}),oe().then(V).catch(()=>{}),xe().then(k).catch(()=>{}),M().then(_).catch(()=>{})}},[r,n,t]),h.useEffect(()=>{if(r||!n)return;const p=s.get("awaitingInterview");if(!p)return;I(!0);let u=!1,b=0;const ee=10,L=async()=>{b+=1;try{const f=await M();if(u)return;_(f);const O=f.find(te=>te.signal_id===p);if(O){t(`/candidate/ai-interview/${O.session_id}`,{replace:!0});return}}catch{}if(!u&&b<ee)window.setTimeout(L,1e3);else if(!u){I(!1);const f=new URLSearchParams(s);f.delete("awaitingInterview"),a(f,{replace:!0})}};return L(),()=>{u=!0}},[r,n,s,a,t]),r)return e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-[#FAFAF8]",children:e.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-2 border-[#FF8050] border-t-transparent"})});if(!n)return null;const E=o.filter(p=>p.status!=="cancelled").length,T=new Date;T.setHours(0,0,0,0);const $=c.filter(p=>p.status==="confirmed"&&new Date(p.slot_start)>=T).length,Z=N.filter(p=>!p.has_responded||p.response_type==="maybe_later"),F=(g==null?void 0:g.new_opportunities)??Z.length,P=(g==null?void 0:g.searches_deployed_this_week)??0,R=(g==null?void 0:g.total_appearances)??0,z=p=>{t(`/candidate/jobs/${p}`)},q=async p=>{C(null),B(p);try{await ce({signal_id:p,response_type:"not_interested"}),k(u=>u.map(b=>b.signal_id===p?{...b,has_responded:!0,response_type:"not_interested"}:b))}catch(u){C(u.message||"Failed to save response")}finally{B(null)}},Y=()=>{i(),t("/")};return e.jsxs("div",{className:"flex min-h-screen bg-[#FAFAF8] font-dm text-[#0D0D0D]",children:[e.jsx(ge,{candidate:n,active:l,onSelect:x,oppBadge:F,activityBadge:E,interviewsBadge:$,onLogout:Y}),e.jsxs("main",{className:"flex-1 overflow-y-auto min-w-0",children:[e.jsxs("div",{className:"lg:hidden flex justify-between items-center px-6 py-5 border-b-[0.5px] border-[#E8E8E4] bg-white",children:[e.jsx(J,{textSize:"text-sm"}),e.jsx("button",{onClick:Y,className:"text-xs text-[#6B6B65] hover:text-[#0D0D0D]",children:"Sign out"})]}),e.jsx(be,{searchesThisWeek:P,unactioned:F,totalAppearances:R,inProgress:E}),e.jsx(fe,{value:l,onChange:x,oppBadge:F,activityBadge:E,interviewsBadge:$}),S&&e.jsx("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 mt-4",children:e.jsx("div",{className:"text-sm text-red-700 bg-red-50 border border-red-200 rounded-[8px] px-4 py-3",children:S})}),m.length>0&&e.jsx("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 mt-4 space-y-3",children:m.map(p=>e.jsx(pe,{invite:p,onBook:()=>t(`/booking/${p.booking_token}`)},p.invite_id))}),l==="interviews"&&e.jsx(ue,{bookings:c,onReschedule:p=>t(`/reschedule/${p}`)}),X&&e.jsx("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 mt-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-sm text-[#0D0D0D] bg-white border-[0.5px] border-[#E8E8E4] rounded-[8px] px-4 py-3",children:[e.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[#0D0D0D] border-t-transparent"}),e.jsx("span",{children:"Setting up your AI interview…"})]})}),l==="home"&&e.jsx(je,{opportunities:N,dismissingId:Q,searchesThisWeek:P,totalAppearances:R,pendingAIInterviews:K,onOpenInterview:(p,u)=>t(`/candidate/jobs/${u}`),onOpen:z,onDismiss:q}),l==="activity"&&e.jsx(ye,{interviews:o,opportunities:N,onOpenJob:z}),l==="signals"&&e.jsx(Ee,{candidateName:n.name||"you"})]})]})}function pe({invite:t,onBook:s}){const a=t.job_title||"an interview",n=t.company_name?` with ${t.company_name}`:"";return e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 rounded-[10px] border border-[#2D6A4F]/25 bg-[#F0F6F2] px-5 py-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-[#2D6A4F] rounded-full animate-signal-pulse"}),e.jsx("span",{className:"text-[11px] font-medium tracking-[0.6px] uppercase text-[#2D6A4F]",children:"Ready to book"})]}),e.jsxs("p",{className:"mt-1 text-sm text-[#0D0D0D]",children:["You're invited to interview for ",e.jsx("strong",{children:a}),n,". Pick a time that works for you."]})]}),e.jsx("button",{onClick:s,className:"shrink-0 rounded-[8px] bg-[#2D6A4F] px-5 py-2.5 text-sm font-medium text-white hover:bg-[#255a43] transition-colors",children:"Book Interview"})]})}function he({booking:t,onReschedule:s}
1){const n=new Date(t.slot_start).toLocaleString(void 0,{weekday:"short",day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}),i=t.status==="confirmed",r=de(t.slot_end),l=i?r?"completed":"confirmed":t.status.replace(/_/g," "),x=i?r?"text-[#6B6B65] bg-[#F4F4F2] border-[#E8E8E4]":"text-[#2D6A4F] bg-[#F0F6F2] border-[#2D6A4F]/25":"text-red-700 bg-red-50 border-red-200",o=t.job_title||"Interview",d=t.company_name?` · ${t.company_name}`:"",m=i&&!r&&!!t.reschedule_token&&t.reschedule_count<t.reschedule_cap;return e.jsxs("div",{className:"rounded-[10px] border-[0.5px] border-[#E8E8E4] bg-white px-5 py-4",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("p",{className:"text-sm font-medium text-[#0D0D0D] truncate",children:[o,e.jsx("span",{className:"text-[#6B6B65] font-normal",children:d})]}),e.jsx("p",{className:"mt-0.5 text-[13px] text-[#6B6B65]",children:n})]}),e.jsx("span",{className:`shrink-0 rounded-full border px-2.5 py-0.5 text-[11px] font-medium capitalize ${x}`,children:l})]}),i&&e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[t.video_link&&!r?e.jsx("a",{href:t.video_link,target:"_blank",rel:"noopener noreferrer",className:"rounded-[8px] bg-[#2D6A4F] px-4 py-2 text-[13px] font-medium text-white hover:bg-[#255a43] transition-colors",children:"Join video call"}):null,m&&e.jsx("button",{onClick:s,className:"rounded-[8px] border border-[#E8E8E4] px-4 py-2 text-[13px] font-medium text-[#0D0D0D] hover:bg-[#F4F4F2] transition-colors",children:"Reschedule / Cancel"}),i&&!m&&!r&&e.jsx("span",{className:"text-[12px] text-[#AEAEA8]",children:"Reschedule limit reached — contact the recruiter"})]})]})}function ue({bookings:t,onReschedule:s}){const a=new Date;a.setHours(0,0,0,0);const n=new Date(a);n.setDate(n.getDate()+1);const i=[],r=[],l=[];for(const d of t){const m=new Date(d.slot_start).getTime();m>=a.getTime()&&m<n.getTime()?i.push(d):m>=n.getTime()?r.push(d):l.push(d)}const x=(d,m)=>new Date(d.slot_start).getTime()-new Date(m.slot_start).getTime();i.sort(x),r.sort(x),l.sort((d,m)=>new Date(m.slot_start).getTime()-new Date(d.slot_start).getTime());const o=[{key:"today",label:"Today",items:i},{key:"upcoming",label:"Upcoming",items:r},{key:"passed",label:"Passed",items:l}];return e.jsx("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 py-6",children:t.length===0?e.jsxs("div",{className:"rounded-[12px] border-[0.5px] border-[#E8E8E4] bg-white px-6 py-12 text-center",children:[e.jsx("p",{className:"text-sm font-medium text-[#0D0D0D]",children:"No interviews yet"}),e.jsx("p",{className:"mt-1 text-[13px] text-[#6B6B65]",children:"When a recruiter invites you to book, your scheduled interviews will appear here."})]}):e.jsx("div",{className:"space-y-7",children:o.filter(d=>d.items.length>0).map(d=>e.jsxs("div",{children:[e.jsxs("h2",{className:"text-[11px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8] mb-2.5 flex items-center gap-2",children:[d.label,e.jsx("span",{className:"text-[#CFCFCA]",children:"·"}),e.jsx("span",{className:"text-[#AEAEA8]",children:d.items.length})]}),e.jsx("div",{className:"space-y-3",children:d.items.map(m=>e.jsx(he,{booking:m,onReschedule:()=>m.reschedule_token&&s(m.reschedule_token)},m.booking_id))})]},d.key))})})}function ge({candidate:t,active:s,onSelect:a,oppBadge:n,activityBadge:i,interviewsBadge:r,onLogout:l}){const x=(t.name||"U").split(" ").map(o=>o[0]).join("").toUpperCase().slice(0,2);return e.jsxs("aside",{className:"hidden lg:flex w-[220px] xl:w-[240px] bg-white border-r-[0.5px] border-[#E8E8E4] flex-col py-[26px] flex-shrink-0 sticky top-0 h-screen",children:[e.jsx("div",{className:"px-[22px] pb-6 border-b-[0.5px] border-[#F4F4F2]",children:e.jsx(J,{textSize:"text-sm"})}),e.jsxs("div",{className:"flex items-center gap-1.5 px-[22px] pt-3.5",children:[e.jsx("div",{className:"w-1.5 h-1.5 bg-[#2D6A4F] rounded-full animate-signal-pulse"}),e.jsx("span",{className:"text-[11px] text-[#2D6A4F] font-medium",children:"Agent active"})]}),e.jsxs("div",{className:"px-3.5 pt-[18px] pb-1.5",children:[e.jsx("div",{className:"text-[9px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8] px-2 mb-1.5",children:"Overview"}),e.jsx(j,{icon:"◈",label:"Dashboard",active:s==="home",badge:n,onClick:()=>a("home")}),e.jsx(j,{icon:"◷",label:"Interviews",active:s==="interviews",badge:r,badgeTone:"green",onClick:()=>a("interviews")}),e.jsx(j,{icon:"○",label:"Activity",active:s==="activity",badge:i,badgeTone:"green",onClick:()=>a("activity")})]}),e.jsxs("div",{className:"px-3.5 pt-[18px] pb-1.5",children:[e.jsx("div",{className:"text-[9px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8] px-2 mb-1.5",children:"Your Agent"}),e.jsx(j,{icon:"◇",label:"My Brief",onClick:()=>{}}),e.jsx(j,{icon:"△",label:"Preferences",onClick:()=>{}})]}),e.jsx("div",{className:"mt-auto px-3.5 pt-3.5 border-t-[0.5px] border-[#F4F4F2]",children:e.jsxs("button",{onClick:l,className:"w-full flex items-center gap-2.5 px-2 py-2.5 rounded-[8px] hover:bg-[#F4F4F2] transition-colors",children:[e.jsx("div",{className:"w-[30px] h-[30px] rounded-full bg-[#0D0D0D] flex items-center justify-center font-playfair text-xs text-white flex-shrink-0 overflow-hidden",children:t.avatar_url?e.jsx("img",{src:t.avatar_url,alt:t.name||"Candidate avatar",className:"w-full h-full object-cover"}):x}),e.jsxs("div",{className:"text-left min-w-0 flex-1",children:[e.jsx("h4",{className:"text-xs font-medium truncate",children:t.name||"Candidate"}),e.jsx("p",{className:"text-[11px] text-[#AEAEA8] font-light",children:"Sign out"})]})]})})]})}function j({icon:t,label:s,active:a,badge:n,badgeTone:i,onClick:r}){const l=i==="green"?"bg-[#2D6A4F] text-white":a?"bg-white text-[#FF8050]":"bg-[#F59E0B] text-white";return e.jsxs("button",{onClick:r,className:`w-full flex items-center gap-2.5 px-2.5 py-2.5 rounded-[8px] text-[13px] mb-0.5 transition-colors ${a?"bg-brand-gradient text-white":"text-[#6B6B65] hover:bg-[#F4F4F2] hover:text-[#0D0D0D]"}`,children:[e.jsx("span",{className:"text-[13px] w-4 text-center flex-shrink-0",children:t}),e.jsx("span",{className:"flex-1 text-left",children:s}),typeof n=="number"&&n>0&&e.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded-[10px] ${l}`,children:n})]})}function be({searchesThisWeek:t,unactioned:s,totalAppearances:a,inProgress:n}){const i=s>0?`${s} new opportunit${s===1?"y":"ies"} waiting for you.`:"All caught up for now.";return e.jsx("section",{className:"relative overflow-hidden",style:{backgroundImage:"url('/banner.svg')",backgroundSize:"cover",backgroundPosition:"center"},children:e.jsxs("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 pt-9 pb-9 relative",children:[e.jsx("div",{className:"text-[10px] font-medium tracking-[1.4px] uppercase text-white/80 mb-3.5",children:"This week · Your agent's work"}),e.jsxs("div",{className:"font-playfair text-[48px] md:text-[66px] font-normal text-white leading-none tracking-[-1px] md:tracking-[-2px] mb-1.5",children:[t," ",e.jsx("span",{className:"text-[22px] md:text-[26px] text-white/70",children:"mandates"})]}),e.jsxs("div",{className:"text-sm text-white/50 font-light mb-7 max-w-[640px]",children:["reviewed —"," ",e.jsx("strong",{className:"text-white font-medium",children:i})]}),e.jsxs("div",{className:"flex gap-5 md:gap-7 flex-wrap",children:[e.jsx(A,{value:String(a),label:"searches you appeared in"}),e.jsx("div",{className:"w-[0.5px] bg-white/10"}),e.jsx(A,{value:String(s),label:"new, unactioned"}),e.jsx("div",{className:"w-[0.5px] bg-white/10"}),e.jsx(A,{value:String(n),label:"in progress"})]})]})})}function A({value:t,label:s}){return e.jsxs("div",{children:[e.jsx("div",{className:"font-playfair text-[22px] text-white font-normal",children:t}),e.jsx("div",{className:"text-[10px] text-white/75 font-light mt-0.5",children:s})]})}function fe({value:t,onChange:s,oppBadge:a,activityBadge:n,interviewsBadge:i}
1){return e.jsx("div",{className:"border-b-[0.5px] border-[#E8E8E4] bg-white sticky top-0 z-10",children:e.jsxs("div",{className:"max-w-[1120px] mx-auto flex px-6 md:px-9 lg:px-12 overflow-x-auto",children:[e.jsx(w,{label:"New opportunities",badge:a,active:t==="home",onClick:()=>s("home")}),e.jsx(w,{label:"Interviews",badge:i,active:t==="interviews",onClick:()=>s("interviews")}),e.jsx(w,{label:"Activity",badge:n,active:t==="activity",onClick:()=>s("activity")}),e.jsx(w,{label:"Why companies find you",active:t==="signals",onClick:()=>s("signals")})]})})}function w({label:t,badge:s,active:a,onClick:n}){return e.jsxs("button",{onClick:n,className:`py-4 mr-7 text-[13px] flex items-center gap-1.5 border-b-2 transition-colors whitespace-nowrap ${a?"text-[#FF8050] font-medium border-[#FF8050]":"text-[#AEAEA8] border-transparent hover:text-[#0D0D0D]"}`,children:[t,typeof s=="number"&&s>0&&e.jsx("span",{className:`text-[10px] font-medium px-1.5 py-0.5 rounded-[10px] ${a?"bg-brand-gradient text-white":"bg-[#E8E8E4] text-[#6B6B65]"}`,children:s})]})}function je({opportunities:t,dismissingId:s,searchesThisWeek:a,totalAppearances:n,pendingAIInterviews:i,onOpenInterview:r,onOpen:l,onDismiss:x}){const o=t.filter(c=>!c.has_responded||c.response_type==="maybe_later"),d=o.filter(c=>c.type==="agent_selected"),m=o.filter(c=>c.type==="agent_flagged"),y=(()=>{if(t.length===0&&a===0)return"No mandates have gone live this week yet. Your agent will surface anything worth your time the moment it lands.";if(t.length===0){const v=a;return`Your agent reviewed ${v} mandate${v===1?"":"s"} this week and didn't find a match worth your time. That's not a gap — that's the filter working.`}const c=n;return`You've appeared in ${c} search${c===1?"":"es"} so far. Nothing new is open right now — your agent will let you know 
1when that changes.`})();return e.jsxs("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 py-7 lg:py-10",children:[i.length>0&&e.jsx("div",{className:"mb-6 space-y-3",children:i.map(c=>e.jsx(we,{interview:c,onStart:()=>r(c.session_id,c.signal_id)},c.session_id))}),d.length>0&&e.jsx(U,{label:"Recruiter agent selected you",children:d.map(c=>e.jsx(W,{opp:c,dismissing:s===c.signal_id,onOpen:()=>l(c.signal_id),onDismiss:()=>x(c.signal_id)},c.signal_id))}),m.length>0&&e.jsx(U,{label:"Your agent flagged this",children:m.map(c=>e.jsx(W,{opp:c,dismissing:s===c.signal_id,onOpen:()=>l(c.signal_id),onDismiss:()=>x(c.signal_id)},c.signal_id))}),o.length===0&&e.jsx(G,{title:t.length===0?"Nothing new yet.":"You're all caught up.",subtitle:y}),e.jsx(ve,{})]})}function U({label:t,children:s}){return e.jsxs("div",{className:"mb-6",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-3 text-[10px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8]",children:[t,e.jsx("span",{className:"flex-1 h-[0.5px] bg-[#E8E8E4]"})]}),e.jsx("div",{children:s})]})}function W({opp:t,dismissing:s,onOpen:a,onDismiss:n}){const i=t.type==="agent_selected",r=i?"Recruiter Agent selected you":"Your agent flagged this",l=i?"bg-white text-brand-orangeDeep border border-brand-orange":"bg-white text-[#0D0D0D] border-[0.5px] border-[#0D0D0D]";return e.jsxs("div",{onClick:a,role:"button",tabIndex:0,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),a())},className:"relative overflow-hidden bg-white border-[0.5px] border-[#E8E8E4] rounded-[14px] p-[22px] mb-3.5 transition-all hover:border-[#AEAEA8] hover:-translate-y-px cursor-pointer",children:[e.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-[3px] ${i?"bg-[#FF8050]":"bg-[#AEAEA8]"}`}),e.jsxs("div",{className:"relative inline-flex mb-3",children:[i&&e.jsx("div",{className:"absolute inset-0 rounded-[20px] bg-brand-gradient blur-md opacity-50 animate-pulse-glow"}),e.jsxs("div",{className:`relative inline-flex items-center gap-1.5 rounded-[20px] px-2.5 py-1 text-[10px] font-medium tracking-[0.8px] uppercase ${l}`,children:[i?e.jsx("span",{className:"animate-zap",children:"⚡"}):e.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-[#0D0D0D]"}),r]})]}),e.jsx("h3",{className:"font-playfair text-[17px] font-normal tracking-[-0.2px] leading-[1.3] mb-1",children:t.job_title||"Role"}),t.company_name&&e.jsxs("div",{className:"flex items-center gap-2 mb-2.5",children:[e.jsx(me,{src:t.company_logo_url,name:t.company_name,size:16}),e.jsx("span",{className:"text-[13px] text-[#0D0D0D] font-medium",children:t.company_name})]}),e.jsxs("div",{className:"flex gap-3.5 flex-wrap mb-3",children:[t.location&&e.jsxs("span",{className:"text-xs text-[#6B6B65] font-light",children:["◎ ",t.location]}),t.salary&&e.jsxs("span",{className:"text-xs text-[#6B6B65] font-light",children:["◇ ",t.salary]}),t.employment_type&&e.jsxs("span",{className:"text-xs text-[#6B6B65] font-light",children:["△ ",t.employment_type]}),typeof t.match_score=="number"&&e.jsxs("span",{className:"text-xs text-[#2D6A4F] font-medium",children:["★ ",t.match_score,"% match"]})]}),t.criteria.length>0&&e.jsxs("div",{className:"bg-[#F9F9F7] border-[0.5px] border-[#E8E8E4] rounded-[8px] px-3.5 py-3 mb-4",children:[e.jsx("div",{className:"text-[9px] font-medium tracking-[1.1px] uppercase text-[#AEAEA8] mb-2",children:i?"Why Recruiter Agent selects you":"Why your agent flagged this"}),e.jsx("ul",{className:"space-y-1.5",children:t.criteria.map(x=>e.jsxs("li",{className:"flex items-start gap-2 text-xs text-[#0D0D0D] font-light",children:[e.jsx("span",{className:`mt-0.5 w-3.5 h-3.5 rounded-full flex items-center justify-center text-[9px] flex-shrink-0 ${x.satisfied?"bg-[#F0F7F4] text-[#2D6A4F]":"bg-[#F4F4F2] text-[#AEAEA8]"}`,children:x.satisfied?"✓":"·"}),e.jsx("span",{className:"leading-[1.4]",children:x.criterion})]},x.criterion))})]}),e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx("button",{onClick:x=>{x.stopPropagation(),a()},className:"flex-1 px-[18px] py-3 bg-brand-gradient text-white rounded-[10px] text-[13px] font-medium hover:opacity-90 transition-opacity",children:"View details →"}),e.jsx("button",{onClick:x=>{x.stopPropagation(),n()},disabled:s,className:"px-[18px] py-3 bg-white text-[#6B6B65] border-[0.5px] border-[#
1E8E8E4] rounded-[10px] text-[13px] hover:border-[#AEAEA8] hover:text-[#0D0D0D] transition-colors disabled:opacity-50",children:s?"Saving…":"Not for me"})]})]})}function G({title:t,subtitle:s}){return e.jsxs("div",{className:"text-center py-12 mb-7",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#F4F4F2] border-[0.5px] border-[#E8E8E4] flex items-center justify-center mx-auto mb-[18px]",children:e.jsxs("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 fill-none stroke-[#AEAEA8] stroke-[1.5] stroke-linecap-round",children:[e.jsx("path",{d:"M9 12l2 2 4-4"}),e.jsx("circle",{cx:"12",cy:"12",r:"9"})]})}),e.jsx("div",{className:"font-playfair text-[18px] font-normal mb-2",children:t}),s&&e.jsx("div",{className:"text-[13px] text-[#6B6B65] leading-[1.6] font-light max-w-[340px] mx-auto",children:s})]})}function ve(){return e.jsxs("div",{className:"bg-white border-[0.5px] border-[#E8E8E4] rounded-[14px] p-7 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-5 right-5 text-[16px] opacity-20",children:"🔒"}),e.jsx("div",{className:"text-[9px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8] mb-2.5",children:"Coming soon"}),e.jsxs("div",{className:"font-playfair text-[20px] font-normal tracking-[-0.2px] leading-[1.3] mb-2",children:["Your agent.",e.jsx("br",{}),e.jsx("em",{className:"italic text-[#AEAEA8]",children:"Fully representing you."})]}),e.jsxs("p",{className:"text-[13px] text-[#6B6B65] leading-[1.7] font-light max-w-[420px] mb-4",children:["Right now your agent selects opportunities and brings them to you. Soon it will go further — representing you directly, negotiating fit before you're ever in the room.",e.jsx("br",{}),e.jsx("br",{}),"The more you decide today, the better your agent represents you tomorrow."]}),e.jsx("div",{className:"text-[10px] font-medium tracking-[1.2px] uppercase text-[#AEAEA8]",children:"We select. You decide."}),e.jsxs("div",{className:"flex gap-2.5 mt-4 blur-[3px] opacity-30 pointer-events-none",children:[e.jsx("div",{className:"px-3.5 py-2 bg-[#F4F4F2] rounded-[8px] text-xs text-[#6B6B65]",children:"Agent negotiating on your behalf"}),e.jsx("div",{className:"px-3.5 py-2 bg-[#F4F4F2] rounded-[8px] text-xs text-[#6B6B65]",children:"Bilateral matching"}),e.jsx("div",{className:"px-3.5 py-2 bg-[#F4F4F2] rounded-[8px] text-xs text-[#6B6B65]",children:"Zero inbox"})]})]})}function we({interview:t,onStart:s}){return e.jsxs("div",{className:"bg-white border-[0.5px] border-[#E8E8E4] rounded-[14px] p-5 flex items-center justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] font-medium tracking-[1.2px] uppercase text-[#FF8050] mb-1",children:"AI Interview ready"}),e.jsx("div",{className:"text-sm font-medium text-[#0D0D0D]",children:"Your AI interview is waiting"}),e.jsx("div",{className:"text-xs text-[#6B6B65] font-light mt-0.5",children:"Complete it within 7 days"})]}),e.jsx("button",{onClick:s,className:"flex-shrink-0 px-4 py-2.5 bg-brand-gradient text-white rounded-[10px] text-xs font-medium hover:opacity-90 transition-opacity",children:"Start →"})]})}function ye({interviews:t,opportunities:s,onOpenJob:a}){const n=t.filter(o=>o.status!=="cancelled"),i=o=>{var d;return((d=s.find(m=>m.signal_id===o))==null?void 0:d.job_title)||"Role"},r=s.filter(o=>o.response_type==="interested"),l=s.filter(o=>o.response_type==="not_interested"),x=n.length===0&&r.length===0&&l.length===0;return e.jsxs("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 py-7 lg:py-10",children:[n.length>0&&e.jsx(D,{title:"Interview booked",children:n.map(o=>e.jsx(Ne,{interview:o,role:i(o.signal_id)},o.id))}),r.length>0&&e.jsx(D,{title:"In progress",children:r.map(o=>e.jsx(H,{iconTone:"black",title:o.job_title||"Role",subtitle:"Agent selected you · Screening in progress",statusTone:"black",statusLabel:"Agent is engaged",time:"Today",actionLabel:"Open",onAction:()=>a(o.signal_id)},o.signal_id))}),l.length>0&&e.jsx(D,{title:"Closed",children:l.map(o=>e.jsx(H,{iconTone:"gray",title:o.job_title||"Role",subtitle:"You said: Not for me",statusTone:"gray",statusLabel:"Closed",time:""},o.signal_id))}),x&&e.jsx(G,{title:"Nothing in flight yet."})]})}function D({title:t,children:s}){return e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-3.5 text-[10px] font-medium tracking-[1.4px] uppercase text-[#AEAEA8]",children:[t,e.jsx("span",{className:"flex-1 h-[0.5px] bg-[#E8E8E4]"})]}),e.jsx("div",{className:"space-y-2.5",children:s})]})}function Ne({interview:t,role:s}){const a=new Date(t.scheduled_at),n=a.toLocaleDateString("en-US",{day:"numeric"}),i=a.toLocaleDateString("en-US",{month:"short"}),r=a.toLocaleDateString("en-US",{weekday:"long"}),l=a.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"});return e.jsxs("div",{className:"bg-[#0D0D0D] rounded-[14px] p-5 flex gap-4 items-center",children:[e.jsxs("div",{className:"text-center flex-shrink-0 min-w-[52px]",children:[e.jsx("div",{className:"font-playfair text-[28px] font-normal text-white leading-none",children:n}),e.jsx("div",{className:"text-[11px] text-white/40 mt-0.5",children:i})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-white text-sm font-medium mb-0.5 truncate",children:s}),e.jsxs("div",{className:"text-[13px] text-white/60 font-light mb-1.5",children:[r," · ",l," ·"," ",t.meeting_type==="video"?"Video call":t.meeting_type]}),e.jsxs("div",{className:"inline-flex items-center gap-1.5 text-[11px] font-medium bg-white/10 text-white/80 px-2.5 py-1 rounded-[20px]",children:[e.jsx("div",{className:"w-[5px] h-[5px] rounded-full bg-white/80"}),t.status==="confirmed"?"Confirmed":"Scheduled"]})]}),t.meeting_link&&e.jsx("a",{href:t.meeting_link,target:"_blank",rel:"noopener noreferrer",className:"px-4 py-2.5 bg-white text-[#0D0D0D] rounded-[8px] text-xs font-medium flex-shrink-0 hover:bg-[#F4F4F2] transition-colors",children:"Join"})]})}function H({iconTone:t,title:s,subtitle:a,statusTone:n,statusLabel:i,time:r,actionLabel:l,onAction:x}){const o=t==="black"?"bg-brand-gradient":t==="amber"?"bg-[#FEF3C7] border-[0.5px] border-[#F59E0B]":t==="green"?"bg-[#F0F7F4] border-[0.5px] border-[#B7D5C8]":"bg-[#F4F4F2] border-[0.5px] border-[#
1E8E8E4]",d=n==="black"?"bg-brand-gradient text-white":n==="amber"?"bg-[#FEF3C7] text-[#92400E]":n==="green"?"bg-[#F0F7F4] text-[#2D6A4F]":"bg-[#F4F4F2] text-[#6B6B65]";return e.jsxs("div",{className:"bg-white border-[0.5px] border-[#E8E8E4] rounded-[14px] p-5 flex gap-4 items-start hover:border-[#AEAEA8] transition-colors",children:[e.jsx("div",{className:`w-9 h-9 rounded-full flex items-center justify-center flex-shrink-0 ${o}`,children:e.jsx("div",{className:`w-3 h-3 rounded-full ${t==="black"?"bg-white/70":"bg-current opacity-50"}`})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"text-sm font-medium mb-0.5 truncate",children:s}),e.jsx("div",{className:"text-xs text-[#6B6B65] font-light mb-2",children:a}),e.jsxs("div",{className:`inline-flex items-center gap-1.5 text-[11px] font-medium px-2.5 py-1 rounded-[20px] ${d}`,children:[e.jsx("div",{className:`w-[5px] h-[5px] rounded-full bg-current ${n==="black"?"animate-signal-pulse":""}`}),i]})]}),e.jsxs("div",{className:"text-right flex-shrink-0",children:[e.jsx("div",{className:"text-[11px] text-[#AEAEA8] font-light mb-2",children:r}),l&&x&&e.jsx("button",{onClick:x,className:"text-xs font-medium underline hover:text-[#2D6A4F]",children:l})]})]})}function Ee({candidateName:t}){const[s,a]=h.useState("bars"),n=h.useMemo(()=>[{label:"Fintech experience",pct:88,count:18,green:!0},{label:"Product leadership",pct:72,count:14},{label:"Series B background",pct:55,count:11},{label:"B2B SaaS",pct:44,count:9},{label:"0-to-1 product work",pct:36,count:7},{label:"Bangalore based",pct:28,count:6}],[]),i=[{t:"Fintech",size:"xl"},{t:"Product Leadership",size:"xl"},{t:"Series B",size:"lg"},{t:"B2B SaaS",size:"lg"},{t:"Razorpay background",size:"lg"},{t:"0-to-1",size:"md"},{t:"Bangalore",size:"md"},{t:"Growth",size:"md"},{t:"Payments",size:"md"},{t:"6+ years",size:"sm"},{t:"Senior PM",size:"sm"},{t:"Data driven",size:"sm"}];return e.jsx("div",{className:"max-w-[1120px] mx-auto px-6 md:px-9 lg:px-12 py-7 lg:py-10",children:e.jsxs("div",{className:"bg-white border-[0.5px] border-[#E8E8E4] rounded-[14px] p-[26px]",children:[e.jsxs("div",{className:"flex items-baseline justify-between mb-1.5",children:[e.jsx("div",{className:"font-playfair text-[19px] font-normal tracking-[-0.2px]",children:"Why companies search for you"}),e.jsx("div",{className:"text-xs text-[#AEAEA8] font-light",children:"This month · No company names shared"})]}),e.jsxs("p",{className:"text-[13px] text-[#6B6B65] leading-[1.5] font-light mb-5 mt-1.5",children:["These are the signals that keep coming up."," ",e.jsx("strong",{className:"text-[#0D0D0D] font-medium",children:"This is what the market values in you."})]}),e.jsxs("div",{className:"inline-flex gap-1 bg-[#F4F4F2] rounded-[8px] p-[3px] mb-[18px]",children:[e.jsx("button",{onClick:()=>a("bars"),className:`px-3.5 py-1.5 rounded-[6px] text-xs transition-colors ${s==="bars"?"bg-white text-[#0D0D0D] font-medium":"text-[#6B6B65]"}`,children:"Signal strength"}),e.jsx("button",{onClick:()=>a("cloud"),className:`px-3.5 py-1.5 rounded-[6px] text-xs transition-colors ${s==="cloud"?"bg-white text-[#0D0D0D] font-medium":"text-[#6B6B65]"}`,children:"Word cloud"})]}),s==="bars"?e.jsx("div",{className:"flex flex-col gap-3 mb-5",children:n.map(r=>e.jsx(Fe,{...r},r.label))}):e.jsx("div",{className:"flex flex-wrap gap-2 mb-5",children:i.map(({t:r,size:l})=>e.jsx(Ae,{size:l,children:r},r))}),e.jsx("div",{className:"h-[0.5px] bg-[#F4F4F2] my-4"}),e.jsxs("div",{className:"bg-[#F9F9F7] border-[0.5px] border-[#E8E8E4] border-l-2 border-l-[#FF8050] rounded-[10px] p-4",children:[e.jsx("div",{className:"text-[9px] font-medium tracking-[1.2px] uppercase text-[#AEAEA8] mb-1.5",children:"Your agent's read"}),e.jsxs("p",{className:"text-[13px] text-[#6B6B65] leading-[1.6] font-light",children:["Your"," ",e.jsx("strong",{className:"text-[#0D0D0D] font-medium",children:"fintech experience"})," ","is your strongest signal by far. Companies at Series B are actively looking for someone who's seen scale at a fast-growing fintech."," ",e.jsx("strong",{className:"text-[#0D0D0D] font-medium",children:"You fit that description precisely."})]})]})]})})}function Fe({label:t,pct:s,count:a,green:n}){const[i,r]=h.useState(0);return h.useEffect(()=>{const l=setTimeout(()=>r(s),150);return()=>clearTimeout(l)},[s]),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"text-xs min-w-[155px] flex-shrink-0",children:t}),e.jsx("div",{className:"flex-1 h-[5px] bg-[#F4F4F2] rounded-[3px] overflow-hidden",children:e.jsx("div",{className:`h-full rounded-[3px] transition-[width] duration-[1200ms] ${n?"bg-[#2D6A4F]":"bg-brand-gradient"}`,style:{width:`${i}%`}})}),e.jsxs("div",{className:"text-[11px] text-[#AEAEA8] min-w-[60px] text-right",children:[e.jsx("strong",{className:"text-[#6B6B65] font-medium",children:a})," searches"]})]})}function Ae({children:t,size:s}){const a=s==="xl"?"text-sm font-medium text-[#0D0D0D] bg-white border-[#AEAEA8] px-[18px] py-2.5":s==="lg"?"text-[13px] font-medium text-[#0D0D0D] bg-white border-[#
1E8E8E4] px-3.5 py-1.5":s==="md"?"text-xs text-[#6B6B65] bg-[#F4F4F2] border-[#E8E8E4] px-3.5 py-1.5":"text-[11px] text-[#AEAEA8] bg-[#F4F4F2] border-[#E8E8E4] px-[11px] py-1.5";return e.jsx("span",{className:`rounded-[20px] border-[0.5px] ${a}`,children:t})}export{Be 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.