1import{c7 as Ft,ao as Ct,r as d,j as e,d9 as At,bt as te,aB as re,aR as Tt,bh as ye,aq as Ve,ct as Rt,a$ as Bt,bT as It,bg as qe,cR as Dt,aM as Ge,au as _t,aI as Xe,aJ as Ke,ar as Qe,bL as zt}from"./vendor-react-tv0DotBx.js";import{S as Lt,A as Mt,a as Ut}from"./AppHeader-C9p0aLrN.js";import{T as Wt,a as Nt}from"./tabs-DLaN2fCd.js";import{u as Ht,j as Pt,h as Ze,b as J,ai as ie,aj as Ot,t as b,s as $t}from"./index-B9Gqyu0i.js";import{d as et,e as Jt,v as Yt,w as Vt,x as qt,u as Gt}from"./vendor-firebase-DyE2J0Qr.js";import{A as Xt,i as Kt}from"./resumeFileTypes-B1GfhC9L.js";import{M as Qt}from"./MainContentWrapper-Du6qOSMD.js";import{V as Zt}from"./VideoDemo-DVXVkQR-.js";import{P as er}from"./ProGate-DS5Z-254.js";import{f as be}from"./firebaseApi-CdnjJA2u.js";import{S as tr}from"./SearchPromptBox-CaKwQ-1z.js";import{S as rr}from"./SendConfirmDialog-COdh9pbh.js";import{i as ir,b as nr,g as tt}from"./suggestionChips-DXhca9UF.js";import{D as ar}from"./devPreview-BKaiNRnB.js";function ne(C){if(!C)return"";if(typeof C=="string")return C;if(typeof C=="object"){const A=C,Y=[A.addressLocality,A.addressRegion,A.addressCountry].filter(p=>typeof p=="string"&&p.length>0);return Y.length>0?Y.join(", "):typeof A.streetAddress=="string"?A.streetAddress:""}return String(C)}const rt=["Reading your profile","Finding what you have in common with each person","Writing personalized emails","Placing drafts in your Gmail"],it=["Reading your profile","Finding what you have in common with each person","Writing personalized emails","Sending from your Gmail"],vr=({embedded:C=!1,isDevPreview:A=!1})=>{const{user:Y}=Ht(),p=A?ar:Y,[nt]=Ft(),ae=Ct(),[at,ot]=d.useState("find-hiring-managers"),[oe,ve]=d.useState(null),[we,Se]=d.useState(null),[V,je]=d.useState(!1),se=d.useRef(null),[v,W]=d.useState(nt.get("jobUrl")||""),[ke,le]=d.useState(""),[Ee,Fe]=d.useState(""),[Ce,Ae]=d.useState(""),[q,st]=d.useState(""),[w,T]=d.useState(!1),[lt,N]=d.use
1State(!1),[dt,_]=d.useState(0),[de]=d.useState(2),[ct,H]=d.useState(0),[G,ce]=d.useState(!1),[m,z]=d.useState([]),pe=d.useRef(null),[Te,pt]=d.useState([]),[Re,ht]=d.useState([]),[gt,X]=d.useState(!1),[Be,Ie]=d.useState([]),he=d.useRef(!1),{demoSurface:ft}=Pt(),K=ft==="hiring-managers",ge="https://jobs.lever.co/offerloop/cmo-2026",ut={demo:!0,name:"Rylan Bohnett",title:"CMO",company:"Offerloop",email:"[email protected]"};d.useEffect(()=>{if(!K)return;let t=!1;const n=[],r=32,l=1500,a=250;W(""),z([]),H(0),N(!1),T(!1),_(0);for(let c=1;c<=ge.length;c++)n.push(setTimeout(()=>{t||W(ge.slice(0,c))},c*r));const g=ge.length*r+a;return n.push(setTimeout(()=>{t||(T(!0),_(50))},g)),n.push(setTimeout(()=>{t||(T(!1),_(100),z([ut]),H(1),N(!0))},g+l)),()=>{t=!0,n.forEach(clearTimeout),W(""),z([]),H(0),T(!1),N(!1),_(0)}},[K]);const P=(p==null?void 0:p.tier)==="pro"||(p==null?void 0:p.tier)==="elite"?p.tier:"free",[D,De]=d.useState(!1),[k,_e]=d.useState(!1),[mt,fe]=d.useState(!1),[S,ue]=d.useState(null),[xt,ze]=d.useState(!1),[yt,me]=d.useState(0);d.useEffect(()=>{if(!D&&!k){me(0);return}const t=k?it:rt;me(0);const n=setInterval(()=>{me(r=>Math.min(r+1,t.length-1))},2400);return()=>clearInterval(n)},[D,k]);const Le=t=>{if(!t||t.trim().length===0)return!1;const n=["javascript is disabled","javascript is required","enable javascript","please enable javascript","browser not supported","loading...","please wait"],r=t.toLowerCase().trim();return!n.some(l=>r.includes(l))},bt=t=>{try{return new URL(t),!0}catch{return!1}},Me=d.useCallback(async()=>{if(!(!(p!=null&&p.uid)||A))try{const t=et(Ze,"users",p.uid),n=await Jt(t);if(n.exists()){const r=n.data();ve(r.resumeUrl||null),Se(r.resumeFileName||null)}}catch(t){console.error("Failed to load saved resume:",t)}},[p==null?void 0:p.uid]);d.useEffect(()=>{Me()},[Me]),d.useEffect(()=>{if(!(p!=null&&p.uid)||A)return;let t=!1;return J.getJobFeed().then(n=>{if(t)return;const r=[...n.top_jobs||[],...n.new_matches||[]],l=new Set,a=[];for(const g of r)if(!l.has(g.job_id)&&g.apply_url&&(l.add(g.job_id),a.push(g)),a.length>=8)break;pt(a)}).catch(()=>{}),be.getUserOnboardingData(p.uid).then(n=>{if(t)return;const r={firstName:n.firstName,university:n.university,graduationYear:n.graduationYear,targetIndustries:n.targetIndustries,preferredLocations:n.preferredLocations,dreamCompanies:n.dreamCompanies,careerTrack:n.careerTrack,preferredJobRole:n.preferredJobRole};ir(r)||ht(nr(r))}).catch(()=>{}),()=>{t=!0}},[p==null?void 0:p.uid]);const vt=async t=>{if(!(p!=null&&p.uid))throw new Error("User not authenticated");je(!0);try{const n=Yt($t,`resumes/${p.uid}/${t.name}`);await Vt(n,t);const r=await qt(n),l=et(Ze,"users",p.uid);await Gt(l,{resumeUrl:r,resumeFileName:t.name,resumeUpdatedAt:new Date().toISOString()}),ve(r),Se(t.name),b({title:"Resume saved",description:"Your resume has been uploaded and saved to your account."})}catch(n){const r=n instanceof Error?n.message:"Failed to save resume";throw b({title:"Upload failed",description:r,variant:"destructive"}),n}finally{je(!1)}},wt=async t=>{var r;const n=(r=t.target.files)==null?void 0:r[0];if(n){if(!Kt(n)){b({title:"Invalid file type",description:"Please upload a PDF, DOCX, or DOC file.",variant:"destructive"});return}if(n.size>10*1024*1024){b({title:"File Too Large",description:"Please upload a file smaller than 10MB.",variant:"destructive"});return}try{await vt(n)}catch{}t.target.value=""}},St=v.trim()||q.trim(),Q=oe&&St&&!w,Ue=async()=>{var o,h;const t=m.filter(s=>!s.demo&&!(s.gmailDraftId||s.emailSubject||s.emailBody)&&s.email);if(t.length===0)return m;const n=t.map(s=>({Name:s.name,Email:s.email,Company:s.company,Title:s.title})),r=((o=t[0])==null?void 0:o.company)||"",l=((h=t[0])==null?void 0:h.jobTitle)||"",a=await J.generateAndDraftEmails({contacts:n,enrichHiringSignal:!0,enrichContext:{company:r,jobTitle:l}});if(!a||a.error)return b({title:"Couldnât create drafts",description:(a==null?void 0:a.message)||(a==null?void 0:a.error)||"Reconnect your Gmail account and try again.",variant:"destructive"}),null;const g=new Map;(a.drafts||[]).forEach(s=>{s!=null&&s.to&&g.set(String(s.to).toLowerCase(),s)});const c=m.map(s=>{const L=String(s.email||"").toLowerCase(),j=L?g.get(L):void 0;return j?{...s,gmailDraftId:j.draftId??s.gmailDraftId,gmailDraftUrl:j.gmailUrl??s.gmailDraftUrl,emailSubject:j.subject??s.emailSubject,emailBody:j.body??s.emailBody,activelyHiring:j.activelyHiring??s.activelyHiring,recentHiringSignal:j.recentHiringSignal??s.recentHiringSignal}:s});return z(c),c},We=async()=>
1{if(!ie(P,"draft")){ue({feature:"bulkDrafting",label:"Draft Outreach",requiredTier:"pro",reason:"Draft a personalized email to every hiring manager you find â in one click."});return}if(m.length!==0){De(!0);try{const t=await Ue();if(t){const n=t.filter(r=>r.gmailDraftId||r.emailSubject).length;b({title:"Drafts ready",description:`${n} draft${n===1?"":"s"} created in your Gmail.`})}}catch(t){console.error("[DraftAll] failed",t),b({title:"Couldnât create drafts",description:(t==null?void 0:t.message)||"Please try again.",variant:"destructive"})}finally{De(!1)}}},Ne=async(t=!1)=>{if(!ie(P,"send")){ue({feature:"prioritySend",label:"Send Emails",requiredTier:"elite",reason:"Send personalized emails to every hiring manager you find â automatically."});return}if(m.length!==0){if(!t){fe(!0);return}_e(!0);try{const n=await Ue();if(!n)return;const r=n.map(c=>c.gmailDraftId).filter(Boolean);if(r.length===0){b({description:"No drafts available to send."});return}const l=await J.sendDraftsBatch(r),a=(l==null?void 0:l.sent_count)??0,g=new Set(((l==null?void 0:l.results)??[]).filter(c=>c.success||c.error==="draft_not_found").map(c=>c.draftId));z(c=>c.map(o=>o.gmailDraftId&&g.has(o.gmailDraftId)?{...o,emailSent:!0}:o)),b({title:a>0?"Emails sent":"Send failed",description:`${a} of ${r.length} sent from your Gmail.`,variant:a>0?void 0:"destructive"})}catch(n){console.error("[SendAll] failed",n),b({title:"Send failed",description:(n==null?void 0:n.message)||"Please try again.",variant:"destructive"})}finally{_e(!1)}}},He=async()=>{var n,r,l,a,g,c,o;if(K||!Q||!p)return;T(!0),_(0),Ie([]),z([]),H(0),N(!1);const t=setInterval(()=>{_(h=>h>=90?(clearInterval(t),90):h+10)},200);try{let h=ke,s=Ee,L=Ce,j=q;if(v&&v.trim())try{const u=await J.parseJobUrl({url:v});if(u.job){u.job.company&&!h&&(h=u.job.company);const R=u.job.title;R&&!s&&Le(R)&&(s=R),u.job.location&&!L&&(L=ne(u.job.location)),u.job.description&&!j&&(j=u.job.description)}else u.error&&(console.warn("Failed to parse job URL:",u.error),b({title:"Could not parse job URL",description:"Please paste the job description instead.",variant:"default"}))}catch(u){console.error("Error parsing job URL:",u)}if(!j||!j.trim()){b({title:"Job description required",description:"Please provide a job description or paste a job URL.",variant:"destructive"}),clearInterval(t),T(!1);return}const f=await J.findHiringManagers({company:h,jobTitle:s,jobDescription:j,location:L,jobUrl:v||void 0,maxResults:de,mode:"preview"});if(console.log("ð API Response:",JSON.stringify(f,null,2)),console.log("ð Hiring managers found:",(n=f.hiringManagers)==null?void 0:n.length),console.log("ð First manager raw:",(r=f.hiringManagers)==null?void 0:r[0]),clearInterval(t),_(100),f.error){b({title:"Error finding hiring managers",description:f.error,variant:"destructive"}),T(!1);return}if(f.hiringManagers&&f.hiringManagers.length>0)try{const u=new Map;f.draftsCreated&&Array.isArray(f.draftsCreated)&&f.draftsCreated.forEach(i=>{const y=i.recruiter_email||i.recruiterEmail;y&&u.set(y.toLowerCase(),i)});const R=new Map;f.sentEmails&&Array.isArray(f.sentEmails)&&f.sentEmails.forEach(i=>{const y=i.recruiter_email||i.recruiterEmail;y&&R.set(y.toLowerCase(),i)});const M=new Map;f.emails&&Array.isArray(f.emails)&&f.emails.forEach(i=>{const y=i.to_email||i.toEmail;y&&M.set(y.toLowerCase(),i)});const Oe=f.hiringManagers.map(i=>{const y=i.Email||i.email||i.WorkEmail||i.work_email||"",x={firstName:i.FirstName||i.firstName||i.first_name||"",lastName:i.LastName||i.lastName||i.last_name||"",linkedinUrl:i.LinkedIn||i.linkedin||i.linkedinUrl||i.linkedin_url||"",email:y,company:i.Company||i.company||h,jobTitle:i.Title||i.title||i.jobTitle||i.job_title||"",location:`${i.City||i.city||""}${(i.City||i.city)&&(i.State||i.state)?", ":""}${i.State||i.state||""}`.trim()||"",dateAdded:new Date().toISOString(),status:"Not Contacted"},$=i.Phone||i.phone,ee=i.WorkEmail||i.work_email||i.workEmail,E=i.PersonalEmail||i.personal_email||i.personalEmail,F=s,U=v;if($&&(x.phone=$),ee&&(x.workEmail=ee),E&&(x.personalEmail=E),F&&Le(F)&&(x.associatedJobTitle=F),U&&(x.associatedJobUrl=U),y){const B=u.get(y.toLowerCase());B&&(B.draft_id&&(x.gmailDraftId=B.draft_id),B.message_id&&(x.gmailMessageId=B.message_id),B.draft_url&&(x.gmailDraftUrl=B.draft_url));const I=R.get(y.toLowerCase());I&&(x.pipelineStage="waiting_on_reply",x.emailSentAt=new Date().toISOString(),x.status="Contacted",I.thread_id&&
1(x.gmailThreadId=I.thread_id),I.message_id&&(x.gmailMessageId=I.message_id))}return x}),$e=await be.getRecruiters(p.uid),Je=new Set($e.map(i=>(i.email||"").toLowerCase()).filter(Boolean)),Ye=new Set($e.map(i=>i.linkedinUrl).filter(Boolean)),jt=f.hiringManagers.map(i=>{const y=(i.Email||i.email||i.WorkEmail||i.work_email||"").trim(),x=y.toLowerCase()==="not available"?"":y,$=(i.Title||i.title||i.jobTitle||i.job_title||"").trim(),ee=$.toLowerCase()==="unknown"?"":$,E=x.toLowerCase(),F=E?u.get(E):void 0,U=E?M.get(E):void 0,B=E?R.get(E):void 0,I=i.LinkedIn||i.linkedin||i.linkedinUrl||i.linkedin_url||"",kt=`${i.FirstName||i.firstName||i.first_name||""} ${i.LastName||i.lastName||i.last_name||""}`.trim(),Et=!!(E&&Je.has(E)||I&&Ye.has(I));return{name:kt||x||"Hiring manager",title:ee,company:i.Company||i.company||h,email:x,linkedin:I,briefing:s?`Hiring for ${s}`:"",jobTitle:s||"",alreadySaved:Et,gmailDraftUrl:(F==null?void 0:F.draft_url)||"",gmailDraftId:(F==null?void 0:F.draft_id)||"",emailSubject:(U==null?void 0:U.subject)||"",emailSent:!!B,activelyHiring:i._actively_hiring||"",recentHiringSignal:i._recent_hiring_signal||"",cohort:i._cohort||""}});z(jt),console.log("ð Converted to Firebase format:",JSON.stringify(Oe,null,2));const O=Oe.filter(i=>{const y=i.email&&Je.has((i.email||"").toLowerCase()),x=i.linkedinUrl&&Ye.has(i.linkedinUrl);return!y&&!x});console.log("ð¾ About to save these recruiters:",O.length,JSON.stringify(O,null,2)),O.length>0?(await be.bulkCreateRecruiters(p.uid,O),console.log(`â
Saved ${O.length} hiring manager(s) to tracker`)):console.log("â ï¸ All hiring managers were duplicates, nothing saved")}catch(u){console.error("Error saving hiring managers to tracker:",u),b({title:"Error saving to tracker",description:"Hiring managers were found but couldn't be saved. Please try again.",variant:"destructive"})}else console.log("â ï¸ No hiring managers in response to save");const Z=((l=f.hiringManagers)==null?void 0:l.length)||0,xe=((a=f.hiringManagers)==null?void 0:a.length)||0;if(H(Z),Z>0){const u=((g=f.sentEmails)==null?void 0:g.length)||0,R=((c=f.draftsCreated)==null?void 0:c.length)||0;let M=`${xe} saved to tracker.`;u>0?M=`${xe} saved to tracker. ${u} ${u===1?"email":"emails"} sent from your Gmail.`:R>0&&(M=`${xe} saved to tracker. Draft emails saved to your Gmail.`),b({title:`Found ${Z} hiring manager${Z!==1?"s":""}!`,description:M})}else{const u=f.fallback_message||f.fallbackMessage||"";b({title:"No hiring managers found",description:u||"Try adjusting your search criteria or company name.",variant:"default",duration:7e3}),(o=f.suggestions)!=null&&o.length&&Ie(f.suggestions)}T(!1),N(!0)}catch(h){clearInterval(t),T(!1);const s=h instanceof Error?h.message:"Failed to find hiring managers";b({title:"Error",description:s,variant:"destructive"})}};d.useEffect(()=>{he.current&&Q&&p&&(he.current=!1,He())},[v,q,oe,p,Q]),d.useEffect(()=>{m.length>0&&!w&&pe.current&&pe.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[m.length,w]);const Pe=e.jsxs(e.Fragment,{children:[e.jsx(er,{title:"Find Hiring Manager",description:"Find the recruiters and hiring managers behind any job posting. Paste a URL and get direct contact info in seconds.",videoId:"TIERqtjc1tk",children:e.jsx("main",{className:"px-3 py-6 sm:px-6 sm:py-12",style:{background:"#FFFFFF",flex:1,overflowY:"auto",paddingBottom:"96px"},children:e.jsxs("div",{children:[!C&&e.jsx("div",{className:"w-full px-3 py-6 sm:px-6 sm:py-12 !pb-0",style:{maxWidth:"900px",margin:"0 auto"},children:e.jsx("div",{style:{display:"flex",justifyContent:"center"},children:e.jsx(Zt,{videoId:"TIERqtjc1tk"})})}),e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-8 duration-700 delay-100",children:e.jsx(Wt,{value:at,onValueChange:ot,className:"w-full",children:e.jsx(Nt,{value:"find-hiring-managers",className:"mt-0",children:e.jsxs("div",{style:{padding:"0 32px 0",maxWidth:"860px"},children:[e.jsx("input",{type:"file",accept:Xt.accept,onChange:wt,className:"hidden",ref:se,disabled:w||V}),e.jsxs("div",{style:{marginTop:20,marginBottom:16},children:[e.jsx(rr,{open:mt,count:m.length,loading:k,onCancel:()=>fe(!1),onConfirm:()=>{fe(!1),Ne(!0)}}),e.jsx(tr,{helper:null,onSubmit:()=>He(),submitDisabled:!Q,inputValue:v,submitAriaLabel:"Find hiring managers",submitIcon:w?e.jsx(re,{className:"w-4 h-4 animate-spin"}):e.jsx(Tt,{className:"w-4 h-4"}),children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:10,paddingRight:40},children:[e.jsx(At,{style:{width:16,height:16,flexShrink:0,color:"#3B82F6",marginTop:2}}),e.jsx("input",{type:"url",value:v,onChange:t=>{W(t.target.value),t.target.value.trim()&&ce(!1)},placeholder:"Paste a job posting URL (LinkedIn, Greenhouse, Lever, etc.)",disabled:w||K,style:{flex:1,border:"none",background:"none",fontSize:14,color:"#0F172A",outline:"none",fontFamily:"inherit",lineHeight:1.5}}),v&&bt(v)&&e.jsx(te,{style:{width:15,height:15,flexShrink:0,color:"#22C55E",marginTop:2}})]})})]}),w&&e.jsx("div",{style:{marginTop:4,marginBottom:16},children:e.jsx("div",{style:{height:2,background:"#E2E8F0",borderRadius:100,overflow:"hidden"},children:e.jsx("div",{style:{width:`${dt}%`,height:"100%",background:"var(--accent, #4A60A8)",transition:"width .3s ease"}})})}),m.length>0&&e.jsxs("div",{ref:pe,style:{marginTop:24,paddingTop:24,borderTop:"0.5px solid #EEF2F8",marginBottom:16},children:[(()=>{const t=m.length;return e.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",marginBottom:18},children:e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:5,padding:"5px 12px",background:"#DCFCE7",color:"#15803D",border:"0.5px solid #BBF7D0",borderRadius:100,fontSize:12,fontWeight:600},children:[e.jsx(te,{style:{width:13,height:13}}),t," ",t===1?"person":"people"," found"]})})})(),!m.some(t=>t.demo)&&(()=>{const t=ie(P,"draft"),n=ie(P,"send"),r=D||k,l=m.every(o=>o.emailSent),a=m.filter(o=>!o.demo&&!o.emailSent).length,g="0 1px 2px rgba(74,96,168,0.18), 0 8px 20px rgba(74,96,168,0.26)",c="0 2px 4px rgba(74,96,168,0.22), 0 12px 26px rgba(74,96,168,0.34)";return e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:12,marginTop:4,marginBottom:18},children:[e.jsxs("div",{style:{position:"relative",display:"inline-flex",alignItems:"center",gap:8},children:[e.jsxs("button",{type:"button",disabled:r,onClick:We,style:{display:"inline-flex",alignItems:"center",gap:9,padding:"13px 28px",borderRadius:10,background:"var(--accent, #4A60A8)",color:"#fff",border:"none",fontSize:15,fontWeight:600,cursor:r?"default":"pointer",opacity:r?.75:1,boxShadow:g,transition:"transform .12s, box-shadow .12s, opacity .12s"},onMouseEnter:o=>{r||(o.currentTarget.style.transform="translateY(-1px)",o.currentTarget.style.boxShadow=c)},onMouseLeave:o=>{o.currentTarget.style.transform="none",o.currentTarget.style.boxShadow=g},children:[D?e.jsx(re,{style:{width:17,height:17},className:"animate-spin"}):e.jsx(ye,{style:{width:17,height:17}}),"Draft ",a," ",a===1?"email":"emails",!t&&e.jsx(Ve,{style:{width:13,height:13}})]}),e.jsxs("span",{style:{position:"relative",display:"inline-flex",alignItems:"center"},onMouseEnter:()=>ze(!0),onMouseLeave:()=>ze(!1),children:[e.jsx(Rt,{style:{width:18,height:18,color:"#94A3B8",cursor:"help"}}),xt&&e.jsxs("div",{style:{position:"absolute",bottom:"calc(100% + 10px)",left:"50%",transform:"translateX(-50%)",width:244,padding:"10px 13px",background:"#0F172A",color:"#F8FAFC",fontSize:12.5,lineHeight:1.45,fontWeight:400,borderRadius:9,boxShadow:"0 10px 28px rgba(15,23,42,0.30)",zIndex:60,textAlign:"left",pointerEvents:"none"},children:["Writes a personalized email to each person using your selected email template â Networking by default.",e.jsx("span",{style:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"6px solid #0F172A"}})]})]})]}),e.jsxs("button",{type:"button",disabled:r||l,onClick:()=>Ne(!1),style:{display:"inline-flex",alignItems:"center",gap:9,padding:"13px 28px",borderRadius:10,background:"#fff",color:"#0F172A",border:"1px solid #E2E8F0",fontSize:15,fontWeight:600,cursor:r||l?"default":"pointer",opacity:r||l?.6:1,boxShadow:"0 1px 2px rgba(15,37,69,0.05)",transition:"all .12s"},children:[k?e.jsx(re,{style:{width:17,height:17},className:"animate-spin"}):e.jsx(Bt,{style:{width:17,height:17}}),l?"Emails sent":"Send emails",!n&&e.jsx(Ve,{style:{width:13,height:13}})]})]})})(),(D||k)&&(()=>{const t=k?it:rt,n=Math.min(yt,t.length-1);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:9,marginTop:-4,marginBottom:16},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:500,color:"#334155"},children:[e.jsx(re,{className:"animate-spin",style:{width:14,height:14,color:"#102E5C"}}),e.jsxs("span",{children:[t[n],"â¦"]})]}),e.jsx("div",{style:{width:240,height:3,background:"#E2E8F0",borderRadius:100,overflow:"hidden"},children:e.jsx("div",{style:{width:`${(n+1)/t.length*100}%`,height:"100%",background:"linear-gradient(90deg, #102E5C, #2563EB)",borderRadius:100,transition:"width .7s ease"}})})]})})(),m.some(t=>!t.alreadySaved)&&e.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.08em",color:"var(--accent, #4A60A8)",textTransform:"uppercase",marginBottom:12},children:"New · Ready for outreach"}),m.filter(t=>!t.alreadySaved).map((t,n)=>{const r=(t.name||"").split(" ").map(h=>h[0]).slice(0,2).join("").toUpperCase(),l=t.linkedin?t.linkedin.startsWith("http")?t.linkedin:`https://${t.linkedin}`:"",a=t.gmailDraftUrl||"https://mail.google.com/mail/u/0/#drafts",g=!!(t.gmailDraftUrl||t.gmailDraftId),c=["#5965D8","#8B5CF6","#0D9488","#D97706","#DB2777","#2563EB"],o=c[n%c.length];return e.jsx("div",{style:{display:"flex",flexDirection:"column",padding:"16px 18px",background:"#FFFFFF",border:"1px solid #ECEEF3",borderRadius:16,marginBottom:10,boxShadow:"0 1px 2px rgba(15,23,42,0.04)"},children:e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",ga
1p:14},children:[e.jsx("div",{style:{width:42,height:42,borderRadius:"50%",background:o,display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:600,color:"#FFFFFF",flexShrink:0},children:r}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9,minWidth:0,flexWrap:"wrap"},children:[e.jsx("span",{style:{fontSize:15,fontWeight:700,color:"#0F172A",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(()=>{const h=t.cohort||"likely_hm",s=h==="likely_hm"?{label:"Hiring manager",bg:"rgba(74,96,168,0.12)",fg:"var(--accent, #4A60A8)",tip:"Strong signal this person hires for the role."}:h==="team_lead"?{label:"Team lead",bg:"rgba(59,130,246,0.10)",fg:"#2563EB",tip:"Team lead with likely hiring input."}:{label:"Referral route",bg:"rgba(107,114,128,0.12)",fg:"#4B5563",tip:"Not the hiring manager, but can route or refer you to them."};return e.jsx("span",{title:s.tip,style:{padding:"2px 9px",borderRadius:100,background:s.bg,color:s.fg,fontSize:11,fontWeight:600,whiteSpace:"nowrap",flexShrink:0},children:s.label})})(),t.activelyHiring==="yes"&&e.jsx("span",{title:t.recentHiringSignal||"Perplexity found recent hiring activity for this person or their team.",style:{padding:"2px 9px",borderRadius:100,background:"rgba(21,128,61,0.10)",color:"#15803D",fontSize:11,fontWeight:600,whiteSpace:"nowrap",flexShrink:0},children:"Hiring now"})]}),e.jsxs("div",{style:{fontSize:13,color:"#64748B",marginTop:3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[t.title,t.title&&t.company&&e.jsx("span",{style:{color:"#CBD5E1"},children:" · "}),t.company&&e.jsx("span",{style:{color:"#334155",fontWeight:600},children:t.company}),(t.title||t.company)&&e.jsx("span",{style:{color:"#CBD5E1"},children:" · "}),t.email?e.jsx("span",{style:{color:"#94A3B8"},children:t.email}):e.jsx("span",{style:{color:"#B45309",fontStyle:"italic"},children:"No email found"})]}),t.briefing&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:8,minWidth:0},children:[e.jsx(It,{style:{width:13,height:13,color:"var(--accent, #4A60A8)",flexShrink:0}}),e.jsx("span",{style:{fontSize:13,color:"#64748B",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.briefing})]})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,flexShrink:0,alignSelf:"center"},children:[l&&e.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",title:"View LinkedIn profile","aria-label":"View LinkedIn profile",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:38,height:38,borderRadius:9,background:"#fff",border:"1px solid #E2E8F0",color:"#0A66C2",flexShrink:0},children:e.jsx(qe,{style:{width:16,height:16}})}),t.emailSent?e.jsxs("a",{href:"https://mail.google.com/mail/u/0/#sent",target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:6,height:38,padding:"0 14px",borderRadius:9,background:"#fff",border:"1px solid #BBF7D0",color:"#15803D",fontSize:13.5,fontWeight:600,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:[e.jsx(te,{style:{width:15,height:15}})," Sent"]}):g?e.jsxs("a",{href:t.demo?void 0:a,target:"_blank",rel:"noopener noreferrer",onClick:h=>{t.demo&&h.preventDefault()},style:{display:"inline-flex",alignItems:"center",gap:6,height:38,padding:"0 16px",borderRadius:9,background:"#fff",border:"1px solid #C7CCF0",color:"var(--accent, #4A60A8)",fontSize:13.5,fontWeight:600,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:[e.jsx(ye,{style:{width:15,height:15}})," View draft"]}):e.jsxs("button",{type:"button",onClick:()=>{t.demo||We()},disabled:D||k,style:{display:"inline-flex",alignItems:"center",gap:6,height:38,padding:"0 16px",borderRadius:9,background:"#fff",border:"1px solid #C7CCF0",color:"var(--accent, #4A60A8)",fontSize:13.5,fontWeight:600,cursor:D||k?"default":"pointer",opacity:D||k?.6:1,fontFamily:"inherit",whiteSpace:"nowrap",flexShrink:0},children:[e.jsx(ye,{style:{width:15,height:15}})," Draft"]})]})]})},n)}),m.some(t=>t.alreadySaved)&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.08em",color:"#94A3B8",textTransform:"uppercase",marginTop:22,marginBottom:12},children:["Already in your inbox · ",m.filter(t=>t.alreadySaved).length]}),m.filter(t=>t.alreadySaved).map((t,n)=>{const r=(t.name||"").split(" ").map(a=>a[0]).slice(0,2).join("").toUpperCase(),l=t.linkedin?t.linkedin.startsWith("http")?t.linkedin:`https://${t.linkedin}`:"";return e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"13px 18px",background:"#F8FAFC",border:"1px solid #ECEEF3",borderRadius:16,marginBottom:8,opacity:.82}
1,children:[e.jsx("div",{style:{width:42,height:42,borderRadius:"50%",background:"rgba(148,163,184,0.18)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:600,color:"#94A3B8",flexShrink:0},children:r}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:9},children:[e.jsx("span",{style:{fontSize:15,fontWeight:600,color:"#475569",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),e.jsx("span",{style:{padding:"2px 9px",borderRadius:100,background:"rgba(148,163,184,0.16)",color:"#94A3B8",fontSize:11,fontWeight:600,whiteSpace:"nowrap",flexShrink:0},children:"Already saved"})]}),e.jsxs("div",{style:{fontSize:13,color:"#94A3B8",marginTop:3,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[t.title,t.title&&t.company&&e.jsx("span",{style:{color:"#CBD5E1"},children:" · "}),t.company]})]}),l&&e.jsxs("a",{href:l,target:"_blank",rel:"noopener noreferrer",style:{display:"inline-flex",alignItems:"center",gap:7,height:38,padding:"0 14px",borderRadius:9,background:"#fff",border:"1px solid #E2E8F0",color:"#334155",fontSize:13.5,fontWeight:600,textDecoration:"none",whiteSpace:"nowrap",flexShrink:0},children:[e.jsx(qe,{style:{width:16,height:16,color:"#0A66C2"}})," LinkedIn"]})]},`saved-${n}`)})]}),!m.some(t=>t.demo)&&(()=>{const t={flex:1,display:"flex",alignItems:"center",gap:14,padding:"18px 20px",borderRadius:16,cursor:"pointer",textDecoration:"none",textAlign:"left",fontFamily:"inherit",border:"none",transition:"transform .12s, box-shadow .12s"},n=(a,g)=>({width:44,height:44,borderRadius:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",background:a,color:g}),r=m.length,l=()=>{var g;const a=((g=m.find(c=>c.email))==null?void 0:g.email)||void 0;ae("/outbox",{state:{focusEmail:a,segment:"hiringManagers"}})};return e.jsxs("div",{style:{marginTop:26},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,letterSpacing:"0.08em",color:"#94A3B8",textTransform:"uppercase",marginBottom:12},children:"Where everything lives"}),e.jsxs("div",{style:{display:"flex",gap:12},children:[e.jsxs("button",{type:"button",onClick:()=>ae("/my-network/managers"),style:{...t,background:"var(--accent, #4A60A8)",color:"#fff",boxShadow:"0 1px 2px rgba(74,96,168,0.18), 0 8px 20px rgba(74,96,168,0.24)"},onMouseEnter:a=>{a.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:a=>{a.currentTarget.style.transform="none"},children:[e.jsx("span",{style:n("rgba(255,255,255,0.18)","#fff"),children:e.jsx(Dt,{style:{width:20,height:20}})}),e.jsxs("span",{style:{flex:1,minWidth:0},children:[e.jsx("span",{style:{display:"block",fontSize:16,fontWeight:700},children:"View in spreadsheet"}),e.jsxs("span",{style:{display:"block",fontSize:13,color:"rgba(255,255,255,0.82)",marginTop:2},children:["All ",r," ",r===1?"contact":"contacts"," in a sortable table"]})]}),e.jsx(Ge,{style:{width:20,height:20,color:"rgba(255,255,255,0.85)",flexShrink:0}})]}),e.jsxs("button",{type:"button",onClick:l,style:{...t,background:"#fff",color:"#0F172A",border:"1px solid #ECEEF3",boxShadow:"0 1px 2px rgba(15,23,42,0.04)"},onMouseEnter:a=>{a.currentTarget.style.transform="translateY(-1px)",a.currentTarget.style.boxShadow="0 4px 14px rgba(15,23,42,0.08)"},onMouseLeave:a=>{a.currentTarget.style.transform="none",a.currentTarget.style.boxShadow="0 1px 2px rgba(15,23,42,0.04)"},children:[e.jsx("span",{style:n("rgba(74,96,168,0.10)","var(--accent, #4A60A8)"),children:e.jsx(_t,{style:{width:20,height:20}})}),e.jsxs("span",{style:{flex:1,minWidth:0},children:[e.jsx("span",{style:{display:"block",fontSize:16,fontWeight:700},children:"Open inbox"}),e.jsx("span",{style:{display:"block",fontSize:13,color:"#64748B",marginTop:2},children:"Read & manage your drafted emails"})]}),e.jsx(Ge,{style:{width:20,height:20,color:"#CBD5E1",flexShrink:0}})]})]})]})})()]}),!v.trim()&&!w&&(()=>{const t=Te.length>0,n=Re.length>0;return!t&&!n?null:gt?e.jsxs("button",{onClick:()=>X(!1),style:{display:"inline-flex",alignItems:"center",gap:4,padding:"4px 10px",fontSize:11,color:"var(--warm-ink-tertiary, #9C9590)",background:"none",border:"1px solid var(--warm-border, #E8E4DE)",borderRadius:100,cursor:"pointer",transition:"all .12s",fontFamily:"inherit",marginBottom:16},onMouseEnter:r=>{r.currentTarget.style.color="#3B82F6",r.currentTarget.style.borderColor="#3B82F6"},onMouseLeave:r=>{r.currentTarget.style.color="var(--warm-ink-tertiary, #9C9590)",r.currentTarget.style.borderColor="var(--warm-border, #E8E4DE)"}
1,children:["Suggestions",e.jsx(Xe,{style:{width:12,height:12}})]}):e.jsxs("div",{style:{marginTop:24},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:4},children:[e.jsx("span",{style:{fontSize:10,fontWeight:500,color:"var(--ink-3, #8A8F9A)",letterSpacing:"0.14em",textTransform:"uppercase",fontFamily:"'Libre Baskerville', Georgia, serif",display:"flex",alignItems:"center"},children:t?"From your job board":"Recommended for you"}),e.jsxs("button",{onClick:()=>X(!0),style:{fontSize:11,color:"var(--warm-ink-tertiary, #9C9590)",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",display:"inline-flex",alignItems:"center",gap:3,padding:0},onMouseEnter:r=>{r.currentTarget.style.color="#3B82F6"},onMouseLeave:r=>{r.currentTarget.style.color="var(--warm-ink-tertiary, #9C9590)"},children:["Collapse",e.jsx(Ke,{style:{width:12,height:12}})]})]}),e.jsx("div",{style:{fontSize:11.5,color:"var(--warm-ink-secondary, #6B6560)",marginBottom:14},children:t?"Click a role to find the hiring manager behind it":"Click a company to find hiring managers there"}),e.jsx("div",{style:{display:"flex",gap:12,overflowX:"auto",paddingBottom:6,scrollbarWidth:"none"},children:t?Te.map((r,l)=>{const a=r.company.toLowerCase().replace(/[^a-z0-9]/g,"")+".com",g=r.employer_logo||tt(r.company)||`https://www.google.com/s2/favicons?domain=${a}&sz=128`,c=r.company.charAt(0).toUpperCase();return e.jsx("button",{type:"button",onClick:()=>{W(r.apply_url),le(r.company),Fe(r.title),Ae(ne(r.location)),X(!0),he.current=!0},className:"suggestion-row-enter",style:{flex:"0 0 160px",width:160,borderRadius:16,overflow:"hidden",background:"var(--elev, #FFFFFF)",border:"1px solid var(--line, #E8E8E8)",cursor:"pointer",textAlign:"left",transition:"all .2s ease",fontFamily:"inherit",padding:0,boxShadow:"inset 0 -1px 0 var(--line, #E8E8E8), 0 1px 2px rgba(26,29,35,0.03)",animationDelay:`${l*60}ms`},onMouseEnter:o=>{const h=o.currentTarget;h.style.borderColor="var(--accent, #4A60A8)",h.style.boxShadow="inset 0 -1px 0 var(--line, #E8E8E8), 0 2px 6px rgba(26,29,35,0.06)",h.style.transform="translateY(-1px)"},onMouseLeave:o=>{const h=o.currentTarget;h.style.borderColor="var(--line, #E8E8E8)",h.style.boxShadow="inset 0 -1px 0 var(--line, #E8E8E8), 0 1px 2px rgba(26,29,35,0.03)",h.style.transform="translateY(0)"},children:e.jsxs("div",{style:{padding:"12px 14px 14px"},children:[e.jsxs("div",{style:{marginBottom:10},children:[g?e.jsx("img",{src:g,alt:"",style:{width:32,height:32,borderRadius:3,objectFit:"contain",background:"var(--paper-2, #FAFAF8)"},onError:o=>{o.currentTarget.style.display="none";const h=o.currentTarget.nextElementSibling;h&&(h.style.display="flex")}}):null,e.jsx("div",{style:{width:32,height:32,borderRadius:3,background:"var(--paper-2, #FAFAF8)",color:"var(--ink-2, #4A5058)",fontSize:13,fontWeight:600,display:g?"none":"flex",alignItems:"center",justifyContent:"center"},children:c})]}),e.jsx("div",{style:{fontSize:13.5,fontWeight:500,color:"#1A1714",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginBottom:4},children:r.company}),e.jsx("div",{style:{fontSize:11,color:"var(--ink-2, #4A4F5B)",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",minHeight:30,marginBottom:r.match_score&&r.match_score>0||r.location?6:10},children:r.title}),(r.match_score&&r.match_score>0||r.location)&&e.jsxs("div",{style:{fontSize:11,padding:"6px 8px",background:"var(--paper, #FFFFFF)",borderLeft:"2px solid var(--accent, #1B2A44)",borderRadius:"0 4px 4px 0",marginBottom:10,lineHeight:1.4},children:[r.match_score&&r.match_score>0&&e.jsxs(e.Fragment,{children:[e.jsxs("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:600,color:"var(--accent, #1B2A44)"},children:[r.match_score,"%"]})," ",e.jsx("span",{style:{color:"var(--ink-2, #4A4F5B)"},children:"match"})]}),r.match_score&&r.match_score>0&&r.location&&e.jsx("span",{style:{color:"var(--ink-3, #8A8F9A)",margin:"0 4px"},children:"·"}),r.location&&ne(r.location)&&e.jsx("em",{style:{fontFamily:"'Instrument Serif', Georgia, serif",fontStyle:"italic",color:"var(--ink-2, #4A4F5B)"},children:ne(r.location)})]}),e.jsxs("div",{style:{fontSize:11,color:"var(--accent, #4A60A8)",fontWeight:500,display:"flex",alignItems:"center",gap:4},children:["Find hiring manager",e.jsx(Qe,{style:{width:11,height:11,opacity:.7}})]})]})},r.job_id)}):Re.slice(0,8).map((r,l)=>{const a=tt(r.company),g=r.company.charAt(0).toUpperCase();return e.jsx("button",{type:"button",onClick:()=>{le(r.company),ce(!0),X(!0)},className:"suggestion-row-enter",style:{flex:"0 0 160px",width:160,borderRadius:16,overflow:"hidden",background:"var(--elev, #FFFFFF)",border:"1px solid var(--line, #E8E8E8)",cursor:"pointer",textAlign:"left",transition:"all .2s ease",fontFamily:"inherit",padding:0,boxShadow:"inset 0 -1px 0 var(--line, #E8E8E8), 0 1px 2px rgba(26,29,35,0.03)",animationDelay:`${l*60}ms`},onMouseEnter:c=>{const o=c.currentTarget;o.style.borderColor="var(--accent, #4A60A8)",o.style.boxShadow="inset 0 -1px 0 var(--line, #E8E8E8), 0 2px 6px rgba(26,29,35,0.06)",o.style.transform="translateY(-1px)"},onMouseLeave:c=>{const o=c.currentTarget;o.style.borderColor="var(--line, #E8E8E8)",o.style.boxShadow="inset 0 -1px 0 var(--line, #E8E8E8), 0 1px 2px rgba(26,29,35,0.03)",o.style.transform="translateY(0)"},children:e.jsxs("div",{style:{padding:"12px 14px 14px"},children:[e.jsxs("div",{style:{marginBottom:10},children:[a?e.jsx("img",{src:a,alt:"",style:{width:32,height:32,borderRadius:3,objectFit:"contain",background:"var(--paper-2, #FAFAF8)"},onError:c=>{c.currentTarget.style.display="none";const o=c.currentTarget.nextElementSibling;o&&(o.style.display="flex")}}):null,e.jsx("div",{style:{width:32,height:32,borderRadius:3,background:"var(--paper-2, #FAFAF8)",color:"var(--ink-2, #4A5058)",fontSize:13,fontWeight:600,display:a?"none":"flex",alignItems:"center",justifyContent:"center"},children:g})]}),e.jsx("div",{style:{fontSize:13.5,fontWeight:500,color:"#1A1714",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",marginBottom:4},children:r.company}),e.jsx("div",{style:{fontSize:11,color:"var(--ink-2, #4A4F5B)",lineHeight:1.4,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",minHeight:30,marginBottom:r.reasoning?6:10},children:r.reason}),r.reasoning&&e.jsxs("div",{style:{fontSize:11,padding:"6px 8px",background:"var(--paper, #FFFFFF)",borderLeft:"2px s
1olid var(--accent, #1B2A44)",borderRadius:"0 4px 4px 0",marginBottom:10,lineHeight:1.4},children:[e.jsx("span",{style:{fontFamily:"'JetBrains Mono', monospace",fontWeight:600,color:"var(--accent, #1B2A44)"},children:r.reasoning.primary.number})," ",e.jsx("span",{style:{color:"var(--ink-2, #4A4F5B)"},children:r.reasoning.primary.label}),r.reasoning.qualifier&&e.jsxs(e.Fragment,{children:[e.jsx("span",{style:{color:"var(--ink-3, #8A8F9A)",margin:"0 4px"},children:"·"}),e.jsx("em",{style:{fontFamily:"'Instrument Serif', Georgia, serif",fontStyle:"italic",color:"var(--ink-2, #4A4F5B)"},children:r.reasoning.qualifier})]})]}),e.jsxs("div",{style:{fontSize:11,color:"var(--accent, #4A60A8)",fontWeight:500,display:"flex",alignItems:"center",gap:4},children:["Find hiring manager",e.jsx(Qe,{style:{width:11,height:11,opacity:.7}})]})]})},r.company)})})]})})(),e.jsx("div",{style:{marginBottom:14},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:12,color:"var(--warm-ink-secondary, #6B6560)"},children:[e.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,padding:"2px 8px",borderRadius:3,background:"var(--warm-surface, #FAF9F6)",border:"1px solid var(--warm-border, #E8E4DE)",fontWeight:500,color:"#0F172A",fontSize:12},children:[15*de," credits"]}),e.jsxs("span",{children:["· finds ~",de," hiring managers"]})]})}),e.jsx("div",{style:{marginBottom:14},children:e.jsxs("button",{type:"button",onClick:()=>ce(!G),style:{fontSize:12,fontWeight:500,color:"var(--warm-ink-secondary, #6B6560)",background:"none",border:"none",cursor:"pointer",fontFamily:"inherit",display:"flex",alignItems:"center",gap:5},children:[G?e.jsx(Ke,{style:{width:13,height:13}}):e.jsx(Xe,{style:{width:13,height:13}}),G?"Hide manual entry":"Or enter details manually"]})}),G&&!v&&e.jsxs("div",{style:{marginBottom:16,paddingTop:16,borderTop:"1px solid var(--warm-border, #E8E4DE)"},children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3 mb-3",children:[e.jsxs("div",{children:[e.jsx("label",{style:{display:"block",fontSize:11,fontWeight:500,color:"var(--warm-ink-secondary, #6B6560)",marginBottom:4},children:"Company"}),e.jsx("input",{type:"text",value:ke,onChange:t=>le(t.target.value),placeholder:"e.g. Google",disabled:w,style:{width:"100%",padding:"8px 12px",border:"1.5px solid var(--warm-border, #E8E4DE)",borderRadius:8,fontSize:13,color:"#0F172A",background:"var(--warm-surface, #FAF9F6)",outline:"none",fontFamily:"inherit"}})]}),e.jsxs("div",{children:[e.jsx("label",{style:{display:"block",fontSize:11,fontWeight:500,color:"var(--warm-ink-secondary, #6B6560)",marginBottom:4},children:"Job Title"}),e.jsx("input",{type:"text",value:Ee,onChange:t=>Fe(t.target.value),placeholder:"e.g. Product Manager",disabled:w,style:{width:"100%",padding:"8px 12px",border:"1.5px solid var(--warm-border, #E8E4DE)",borderRadius:8,fontSize:13,color:"#0F172A",background:"var(--warm-surface, #FAF9F6)",outline:"none",fontFamily:"inherit"}})]}),e.jsxs("div",{children:[e.jsx("label",{style:{display:"block",fontSize:11,fontWeight:500,color:"var(--warm-ink-secondary, #6B6560)",marginBottom:4},children:"Location"}),e.jsx("input",{type:"text",value:Ce,onChange:t=>Ae(t.target.value),placeholder:"e.g. New York, NY",disabled:w,style:{width:"100%",padding:"8px 12px",border:"1.5px solid var(--warm-border, #E8E4DE)",borderRadius:8,fontSize:13,color:"#0F172A",background:"var(--warm-surface, #FAF9F6)",outline:"none",fontFamily:"inherit"}})]})]}),e.jsxs("div",{children:[e.jsxs("label",{style:{display:"block",fontSize:11,fontWeight:500,color:"var(--warm-ink-secondary, #6B6560)",marginBottom:4},children:["Job Description ",e.jsx("span",{style:{color:"#EF4444"},children:"*"})]}),e.jsx("textarea",{value:q,onChange:t=>st(t.target.value),placeholder:"Paste the job description or role summary here.",rows:4,disabled:w,style:{width:"100%",padding:"10px 12px",border:"1.5px solid var(--warm-border, #E8E4DE)",borderRadius:8,fontSize:13,color:"#0F172A",background:"var(--warm-surface, #FAF9F6)",outline:"none",resize:"none",fontFamily:"inherit"}})]})]}),e.jsx("div",{style:{display:"flex",justifyContent:"center",marginTop:10,marginBottom:8},children:oe&&we?e.jsxs("button",{onClick:()=>{var t;return(t=se.current)==null?void 0:t.click()},disabled:w||V,style:{fontSize:11,color:"var(--warm-ink-tertiary, #9C9590)",display:"flex",alignItems:"center",gap:4,cursor:"pointer",background:"none",border:"none",fontFamily:"inherit"},children:[e.jsx(te,{style:{width:11,height:11,color:"#22C55E"}}),"Resume: ",e.jsx("span",{style:{fontWeight:500},children:we}),e.jsx("span",{style:{color:"var(--accent, #1B2A44)",marginLeft:2},children:V?"Uploading...":"· Change"})]}):e.jsxs("button",{onClick:()=>{var t;return(t=se.current)==null?void 0:t.click()},style:{fontSize:11,color:"var(--warm-ink-tertiary, #9C9590)",display:"flex",alignItems:"center",gap:4,cursor:"pointer",background:"none",border:"none",fontFamily:"inherit"},children:[e.jsx(zt,{style:{width:11,height:11}}),V?"Uploading...":"Upload resume (required for personalized emails)"]})})]})})})})]})})}),lt&&ct===0&&Be.length>0&&e.jsxs("div",{style:{margin:"16px 32px",padding:"14px 18px",background:"rgba(59,130,246,0.04)",border:"1px solid #E2E8F0",borderRadius:8},children:[e.jsx("p",{style:{fontSize:13,color:"#374151",marginBottom:10},children:"No direct hiring managers found. Try one of these alternatives:"}),e.jsx("div",{style:{display:"flex",gap:8,flexWrap:"wrap"},children:Be.map((t,n)=>e.jsx("button",{onClick:()=>{var r;t.type==="switch_tab"&&((r=t.prefill)!=null&&r.company)&&ae(`/find?tab=hiring-managers&company=${encodeURIComponent(t.prefill.company)}`)},style:{padding:"7px 14px",background:"#fff",border:"1px solid #BFDBFE",borderRadius:6,fontSize:13,color:"#2563EB",cursor:"pointer",fontWeight:500},children:t.label},n))})]}),e.jsx("style",{children:` 2 @media (max-width: 768px) { 3 /* 1. PAGE/BODY LEVEL - Prevent horizontal overflow */ 4 html, body { 5 overflow-x: hidden; 6 max-width: 100vw; 7 } 8 9 .recruiter-search-page { 10 overflow-x: hidden; 11 max-width: 100vw; 12 } 13 14 /* 2. ALL MAIN CONTENT CONTAINERS */ 15 .recruiter-search-container { 16 max-width: 100vw; 17 width: 100%; 18 box-sizing: border-box; 19 padding-left: 16px; 20 padding-right: 16px; 21 } 22 23 /* 3. HEADER SECTION - Ensure padding so text doesn't touch edges */ 24 .recruiter-search-header { 25 padding-left: 16px; 26 padding-right: 16px; 27 box-sizing: border-box; 28 } 29 30 .recruiter-search-title { 31 word-wrap: break-word; 32 overflow-wrap: break-word; 33 font-size: 1.75rem !important; 34 } 35 36 .recruiter-search-subtitle { 37 word-wrap: break-word; 38 overflow-wrap: break-word; 39 font-size: 0.875rem !important; 40 } 41 42 /* 4. TAB BARS - Ensure doesn't overflow */ 43 .recruiter-search-tabs { 44 max-width: 100%; 45 width: 100%; 46 overflow-x: auto; 47 overflow-y: hidden; 48 -webkit-overflow-scrolling: touch; 49 scrollbar-width: none; 50 -ms-overflow-style: none; 51 padding: 8px !important; 52 justify-content: flex-start; 53 } 54 55 .recruiter-search-tabs::-webkit-scrollbar {
56 display: none; 57 } 58 59 .recruiter-search-tabs button { 60 min-width: fit-content; 61 min-height: 44px; 62 flex-shrink: 0; 63 white-space: nowrap; 64 } 65 66 /* 5. FORM CARDS - Full width with proper padding */ 67 .recruiter-search-form-card { 68 width: 100%; 69 max-width: 100%; 70 box-sizing: border-box; 71 } 72 73 .recruiter-search-form-content { 74 padding: 16px !important; 75 box-sizing: border-box; 76 } 77 78 /* 6. ALL CHILD ELEMENTS - Ensure no fixed widths exceed viewport */ 79 .recruiter-search-page * { 80 max-width: 100%; 81 box-sizing: border-box; 82 } 83 84 .recruiter-search-page img, 85 .recruiter-search-page .recruiter-search-form-card, 86 .recruiter-search-page button, 87 .recruiter-search-page input, 88 .recruiter-search-page textarea, 89 .recruiter-search-page select { 90 max-width: 100%; 91 box-sizing: border-box; 92 } 93 94 /* Prevent text overflow */ 95 .recruiter-search-page p, 96 .recruiter-search-page h1, 97 .recruiter-search-page h2, 98 .recruiter-search-page h3, 99 .recruiter-search-page span, 100 .recruiter-search-page label { 101 word-wrap: break-word; 102 overflow-wrap: break-word; 103 hyphens: auto; 104 } 105 } 106 `}),e.jsx(Ot,{open:S!==null,onOpenChange:t=>{t||ue(null)},feature:(S==null?void 0:S.feature)||"",featureLabel:S==null?void 0:S.label,requiredTier:S==null?void 0:S.requiredTier,reason:S==null?void 0:S.reason,currentTier:P})]});return C?Pe:e.jsx(Lt,{children:e.jsxs("div",{className:"flex min-h-screen w-full text-foreground",children:[e.jsx(Mt,{}),e.jsxs(Qt,{children:[e.jsx(Ut,{title:""}),Pe]})]})})};export{vr 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.