1import{k as s,j as e}from"./index-Z6p7EVnF.js";import{u as p,b as y,r as j}from"./talent.functions-CdBHUFmv.js";function f(){const d=p(y),x=p(j),[a,m]=s.useState(""),[n,u]=s.useState(null),[r,l]=s.useState(null),[c,o]=s.useState(null),i=async()=>{l(null);try{u(await d({data:{password:a}}))}catch{l("Wrong password.")}},h=async t=>{o(t);try{await x({data:{password:a,id:t}}),await i()}finally{o(null)}};return e.jsx("section",{className:"bg-cream min-h-screen pt-32 pb-20 px-4 md:px-8",children:e.jsxs("div",{className:"max-w-[1400px] mx-auto",children:[e.jsx("h1",{className:"text-4xl md:text-5xl font-medium mb-8",children:"Talent sign-ups"}),n?e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"font-mono text-[10px] uppercase tracking-[0.2em] text-ink/60 text-left",children:e.jsx("tr",{children:["Date","Name","Email","Function","Seniority","City","Pref","HubSpot","Tries",""].map(t=>e.jsx("th",{className:"py-2 pr-4",children:t},t))})}),e.jsxs("tbody",{children:[n.map(t=>e.jsxs("tr",{className:"border-t border-ink/10 align-top",children:[e.jsx("td",{className:"py-2 pr-4 whitespace-nowrap",children:new Date(t.created_at).toLocaleDateString()}),e.jsxs("td",{className:"py-2 pr-4",children:[t.first_name," ",t.last_name]}),e.jsx("td",{className:"py-2 pr-4",children:t.email}),e.jsx("td",{className:"py-2 pr-4",children:t.job_function}),e.jsx("td",{className:"py-2 pr-4",children:t.seniority}),e.jsx("td",{className:"py-2 pr-4",children:t.location}),e.jsx("td",{className:"py-2 pr-4",children:t.work_preference}),e.jsxs("td",{className:"py-2 pr-4",children:[e.jsx("span",{className:t.hubspot_status==="failed"?"text-terracotta":"",children:t.hubspot_status}),t.hubspot_error&&e.jsx("div",{className:"text-xs text-ink/60 max-w-xs break-words",children:t.hubspot_error})]}),e.jsx("td",{className:"py-2 pr-4",children:t.attempts}),e.jsx("td",{className:"py-2",children:t.hubspot_status!=="sent"&&e.jsx("button",{onClick:()=>h(t.id),disabled:c===t.id,className:"px-4 py-1 rounded-full bg-terracotta text-cream font-mono text-[10px] uppercase tracking-[0.2em] disabled:opacity-60",children:c===t.id?"â¦":"Retry"})})]},t.id)),n.length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:10,className:"py-6 text-ink/60",children:"No sign-ups yet."})})]})]})}):e.jsxs("form",{onSubmit:t=>{t.preventDefault(),i()},className:"flex gap-3 max-w-md",children:[e.jsx("input",{type:"password",value:a,onChange:t=>m(t.target.value),placeholder:"Password",className:"flex-1 bg-transparent border-b border-ink/30 focus:border-terracotta py-2 outline-none"}),e.jsx("button",{className:"px-6 py-2 rounded-full bg-ink text-cream font-mono text-xs uppercase tracking-[0.2em]",children:"Open"})]}),r&&e.jsx("p",{className:"mt-4 text-terracotta text-sm",children:r})]})})}export{f 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.