1import{j as e,r as x,h as K,M as T,ax as N}from"./index-BnlaQecQ.js";import{a as u,u as v}from"./useQuery-BKJ6JOgR.js";import{u as g}from"./useMutation-Rh9ztMx4.js";import{A as V}from"./AdminShell-D6GQASS6.js";import{a as G,b as O,c as H,d as U,e as B,f as z,g as J,h as W,i as X}from"./nil.functions-gz6T5s1f.js";import{L as b}from"./loader-circle-DJpbfIyK.js";import{X as Y}from"./x-CQWlpXTy.js";import{R as Z}from"./refresh-cw-B0Tp6C2V.js";import{S as ee}from"./save-CqH_ERUm.js";import{E as f}from"./eye-off-CAWaBc-9.js";import{T as se}from"./trash-2-Uin9E-uN.js";import{D as I}from"./dollar-sign-CW9JiLx6.js";import"./useRouterState-BqQkhVQV.js";import"./log-out-BJcEikLb.js";function te(){const[i,s]=x.useState("athletes");return e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"flex gap-2 border-b-2 border-ink",children:["athletes","inquiries","audit"].map(a=>e.jsx("button",{onClick:()=>s(a),className:`-mb-[2px] border-b-2 px-4 py-2 font-display text-xs uppercase tracking-widest ${i===a?"border-ignition text-ignition":"border-transparent text-ink/60"}`,children:a==="athletes"?"Athletes":a==="inquiries"?"Representation Inquiries":"Audit Log"},a))}),i==="athletes"?e.jsx(ae,{}):i==="inquiries"?e.jsx(ne,{}):e.jsx(le,{})]})}function k(i){if(i==null)return"â";const s=i/100;return s>=1e3?`$${Math.round(s/100)/10}k`:`$${s.toFixed(0)}`}function ae(){const i=u(G),[s,a]=x.useState(""),{data:c,isLoading:r}=v({queryKey:["admin-nil-athletes",s],queryFn:()=>i({data:{search:s}})}),[p,l]=x.useState(null);return e.jsxs("div",{className:"space-y-4",children:[e.jsx("input",{value:s,onChange:n=>a(n.target.value),placeholder:"Search by nameâ¦",className:"w-full max-w-md border-2 border-ink bg-bone px-3 py-2"}),r?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-ink/60",children:[e.jsx(b,{className:"h-4 w-4 animate-spin"})," Loadingâ¦"]}):e.jsx("div",{className:"border-2 border-ink bg-bone overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-ink text-bone",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Athlete"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Class"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Pos"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"NIL Range"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Generated"}),e.jsx("th",{className:"px-3 py-2"})]})}),e.jsxs("tbody",{children:[(c??[]).map(n=>e.jsxs("tr",{className:"border-t border-ink/20",children:[e.jsxs("td",{className:"px-3 py-2",children:[e.jsxs("div",{className:"font-medium",children:[n.first_name," ",n.last_name]}),e.jsx("div",{className:"text-xs text-ink/50",children:n.state||""})]}),e.jsx("td",{className:"px-3 py-2",children:n.class_year||"â"}),e.jsx("td",{className:"px-3 py-2",children:n.position||"â"}),e.jsx("td",{className:"px-3 py-2",children:n.valuation?`${k(n.valuation.value_low_cents)} â ${k(n.valuation.value_high_cents)}`:e.jsx("span",{className:"text-ink/40",children:"â"})}),e.jsx("td",{className:"px-3 py-2 text-xs text-ink/60",children:n.valuation?.generated_at?new Date(n.valuation.generated_at).toLocaleDateString():"â"}),e.jsx("td",{className:"px-3 py-2 text-right",children:e.jsx("button",{onClick:()=>l(n.id),className:"border-2 border-ink bg-bone px-3 py-1 font-display text-[10px] uppercase tracking-widest hover:bg-ink hover:text-bone",children:"Manage NIL"})})]},n.id)),(c??[]).length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:6,className:"px-3 py-6 text-center text-sm text-ink/60",children:"No athletes."})})]})]})}),p&&e.jsx(ie,{athleteId:p,onClose:()=>l(null)})]})}function ie({athleteId:i,onClose:s}){const a=K(),c=u(B),r=u(z),p=u(J),l=u(W),n=u(X),{data:t,isLoading:o}=v({queryKey:["admin-nil-detail",i],queryFn:()=>c({data:{athleteId:i}})}),d={rank:null,position_rank:null,stars:null,url:"",notes:""}
1,[y,F]=x.useState(d),[w,A]=x.useState(d),[_,P]=x.useState(d),[S,R]=x.useState(d),[L,M]=x.useState(""),[E,q]=x.useState(!1);if(t&&!E){const m=t.valuation;m&&(F({...d,...m.tripsports??{}}),A({...d,...m.sports247??{}}),P({...d,...m.on3??{}}),R({...d,...m.rivals??{}}),M(m.rationale??"")),q(!0)}const h=g({mutationFn:()=>r({data:{athleteId:i}}),onSuccess:()=>{q(!1),a.invalidateQueries({queryKey:["admin-nil-detail",i]}),a.invalidateQueries({queryKey:["admin-nil-athletes"]})}}),C=g({mutationFn:()=>p({data:{athleteId:i,tripsports:y,sports247:w,on3:_,rivals:S,rationale:L}}),onSuccess:()=>{q(!1),a.invalidateQueries({queryKey:["admin-nil-detail",i]}),a.invalidateQueries({queryKey:["admin-nil-athletes"]})}}),Q=g({mutationFn:()=>l({data:{athleteId:i}}),onSuccess:()=>{a.invalidateQueries({queryKey:["admin-nil-athletes"]}),s()}}),$=g({mutationFn:m=>n({data:{athleteId:i,published:m}}),onSuccess:()=>{a.invalidateQueries({queryKey:["admin-nil-detail",i]}),a.invalidateQueries({queryKey:["admin-nil-athletes"]})}});return e.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto bg-ink/70 p-4",children:e.jsxs("div",{className:"my-8 w-full max-w-3xl border-2 border-ink bg-bone p-6",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[e.jsxs("h3",{className:"font-display text-lg uppercase tracking-widest",children:["NIL Valuation",t?.athlete&&e.jsxs("span",{className:"ml-2 text-sm normal-case text-ink/60",children:[t.athlete.first_name," ",t.athlete.last_name," · ",t.athlete.class_year??"â"," · ",t.athlete.position??"â"]})]}),e.jsx("button",{onClick:s,"aria-label":"Close",children:e.jsx(Y,{className:"h-5 w-5"})})]}),o?e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx(b,{className:"h-4 w-4 animate-spin"})," Loadingâ¦"]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-4 flex flex-wrap gap-2",children:[e.jsxs("button",{onClick:()=>h.mutate(),disabled:h.isPending,className:"inline-flex items-center gap-2 bg-ignition px-4 py-2 font-display text-xs uppercase tracking-widest text-bone disabled:opacity-60",children:[h.isPending?e.jsx(b,{className:"h-3 w-3 animate-spin"}):e.jsx(Z,{className:"h-3 w-3"}),"Scrape & Generate"]}),e.jsxs("button",{onClick:()=>C.mutate(),disabled:C.isPending,className:"inline-flex items-center gap-2 border-2 border-ink bg-bone px-4 py-2 font-display text-xs uppercase tracking-widest hover:bg-ink hover:text-bone disabled:opacity-60",children:[C.isPending?e.jsx(b,{className:"h-3 w-3 animate-spin"}):e.jsx(ee,{className:"h-3 w-3"}),"Save Manual Rankings"]}),t?.valuation&&e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>$.mutate(!t.valuation.published_to_profile),disabled:$.isPending,className:`inline-flex items-center gap-2 border-2 px-4 py-2 font-display text-xs uppercase tracking-widest disabled:opacity-60 ${t.valuation.published_to_profile?"border-ink bg-ink text-bone hover:bg-bone hover:text-ink":"border-ignition bg-ignition text-bone hover:bg-bone hover:text-ignition"}`,children:[$.isPending?e.jsx(b,{className:"h-3 w-3 animate-spin"}):t.valuation.published_to_profile?e.jsx(f,{className:"h-3 w-3"}):e.jsx(N,{className:"h-3 w-3"}),t.valuation.published_to_profile?"Unpublish from Profile":"Add to Athlete Profile"]}),e.jsxs("button",{onClick:()=>{confirm("Delete this NIL valuation?")&&Q.mutate()},className:"ml-auto inline-flex items-center gap-2 border-2 border-red-500 px-4 py-2 font-display text-xs uppercase tracking-widest text-red-700 hover:bg-red-50",children:[e.jsx(se,{className:"h-3 w-3"})," Delete"]})]})]}),h.isError&&e.jsx("div",{className:"mb-3 border-2 border-red-400 bg-red-50 p-2 text-xs text-red-800",children:h.error.message}),h.isError&&e.jsx("div",{className:"mb-3 border-2 border-red-400 bg-red-50 p-2 text-xs text-red-800",children:h.error.message}),t?.valuation&&e.jsxs("div",{className:"mb-4 flex items-center gap-3 border-2 border-ink bg-ignition/10 p-4",children:[e.jsx(I,{className:"h-6 w-6 text-ignition"}),e.jsxs("div",{children:[e.jsxs("div",{className:"font-display text-2xl",children:[k(t.valuation.value_low_cents)," â ",k(t.valuation.value_high_cents)]}),e.jsxs("div",{className:"text-xs text-ink/60",children:["estimated annual NIL value · composite ",Math.round(t.valuation.composite_score??0).toLocaleStr
1ing()]})]}),e.jsx("div",{className:"ml-auto",children:t.valuation.published_to_profile?e.jsxs("span",{className:"inline-flex items-center gap-1 border-2 border-ink bg-ignition px-2 py-1 font-display text-[10px] uppercase tracking-widest text-bone",children:[e.jsx(N,{className:"h-3 w-3"})," Live on profile"]}):e.jsxs("span",{className:"inline-flex items-center gap-1 border-2 border-ink/40 px-2 py-1 font-display text-[10px] uppercase tracking-widest text-ink/60",children:[e.jsx(f,{className:"h-3 w-3"})," Draft (not on profile)"]})})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsx(j,{label:"Tripsports",v:y,onChange:F}),e.jsx(j,{label:"247Sports",v:w,onChange:A}),e.jsx(j,{label:"On3",v:_,onChange:P}),e.jsx(j,{label:"Rivals",v:S,onChange:R})]}),e.jsxs("div",{className:"mt-4",children:[e.jsx("label",{className:"block font-display text-[10px] uppercase tracking-widest text-ink/60",children:"Rationale (shown to athlete)"}),e.jsx("textarea",{value:L,onChange:m=>M(m.target.value),className:"mt-1 min-h-32 w-full border-2 border-ink bg-bone px-3 py-2 text-sm",placeholder:"Auto-generated by AI on Scrape & Generate; edit freely."})]}),e.jsx(re,{athlete:t?.athlete,valuation:t?.valuation,draft:{tripsports:y,sports247:w,on3:_,rivals:S,rationale:L}}),t?.valuation?.raw_scrape&&e.jsxs("details",{className:"mt-4",children:[e.jsx("summary",{className:"cursor-pointer font-display text-xs uppercase tracking-widest text-ink/60",children:"Raw scraped data"}),e.jsx("pre",{className:"mt-2 max-h-72 overflow-auto border-2 border-ink/30 bg-white p-3 text-[11px] leading-relaxed",children:t.valuation.raw_scrape})]})]})]})})}function j({label:i,v:s,onChange:a}){const c=r=>r===""?null:Number(r);return e.jsxs("div",{className:"border-2 border-ink bg-white p-3",children:[e.jsx("div",{className:"font-display text-xs uppercase tracking-widest text-ignition",children:i}),e.jsxs("div",{className:"mt-2 grid grid-cols-3 gap-2 text-xs",children:[e.jsxs("label",{children:[e.jsx("span",{className:"block text-[10px] uppercase text-ink/60",children:"Nat'l rank"}),e.jsx("input",{type:"number",value:s.rank??"",onChange:r=>a({...s,rank:c(r.target.value)}),className:"w-full border border-ink bg-bone px-2 py-1"})]}),e.jsxs("label",{children:[e.jsx("span",{className:"block text-[10px] uppercase text-ink/60",children:"Pos rank"}),e.jsx("input",{type:"number",value:s.position_rank??"",onChange:r=>a({...s,position_rank:c(r.target.value)}),className:"w-full border border-ink bg-bone px-2 py-1"})]}),e.jsxs("label",{children:[e.jsx("span",{className:"block text-[10px] uppercase text-ink/60",children:"Stars"}),e.jsx("input",{type:"number",min:0,max:5,value:s.stars??"",onChange:r=>a({...s,stars:c(r.target.value)}),className:"w-full border border-ink bg-bone px-2 py-1"})]})]}),e.jsxs("label",{className:"mt-2 block text-xs",children:[e.jsx("span",{className:"block text-[10px] uppercase text-ink/60",children:"Profile URL"}),e.jsx("input",{type:"url",value:s.url??"",onChange:r=>a({...s,url:r.target.value}),className:"w-full border border-ink bg-bone px-2 py-1"})]}),e.jsxs("label",{className:"mt-2 block text-xs",children:[e.jsx("span",{className:"block text-[10px] uppercase text-ink/60",children:"Notes"}),e.jsx("input",{type:"text",value:s.notes??"",onChange:r=>a({...s,notes:r.target.value}),className:"w-full border border-ink bg-bone px-2 py-1"})]})]})}function ne(){const i=u(O),s=u(H),a=K(),[c,r]=x.useState("all"),{data:p,isLoading:l}=v({queryKey:["admin-nil-inquiries",c],queryFn:()=>i({data:{status:c}})}),n=g({mutationFn:t=>s({data:t}),onSuccess:()=>a.invalidateQueries({queryKey:["admin-nil-inquiries"]})});return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("label",{className:"text-xs text-ink/60",children:"Status:"}),e.jsx("select",{className:"border-2 border-ink bg-bone px-2 py-1 text-sm",value:c,onChange:t=>r(t.target.value),children:["all","new","contacted","signed","closed"].map(t=>e.jsx("option",{children:t},t))})]}),l?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-ink/60",children:[e.jsx(b,{className:"h-4 w-4 animate-spin"})," Loadingâ¦"]}):e.jsxs("div",{className:"space-y-3",children:[(p??[]).map(t=>e.jsxs("div",{className:"border-2 border-ink bg-bone p-4",children:[e.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"font-display text-sm uppercase tracking-widest",children:[t.first_name," ",t.last_name]}),e.jsxs("div",{className:"text-xs text-ink/60",children:[e.jsxs("a",{href:`mailto:${t.email}`,className:"inline-flex items-center gap-1 underline",children:[e.jsx(T,{className:"h-3 w-3"})," ",t.email]}),t.phone&&e.jsx("span",{className:"ml-3",children:t.phone})]}),e.jsx("div",{className:"text-xs text-ink/50",children:new Date(t.created_at).toLocaleStr
1ing()})]}),e.jsx("select",{className:"border-2 border-ink bg-bone px-2 py-1 text-xs",value:t.status,onChange:o=>n.mutate({id:t.id,status:o.target.value}),children:["new","contacted","signed","closed"].map(o=>e.jsx("option",{children:o},o))})]}),t.message&&e.jsx("p",{className:"mt-2 whitespace-pre-wrap border-l-2 border-ignition/50 pl-3 text-sm",children:t.message}),e.jsx("textarea",{defaultValue:t.admin_notes??"",placeholder:"Admin notesâ¦",onBlur:o=>{o.target.value!==(t.admin_notes??"")&&n.mutate({id:t.id,admin_notes:o.target.value})},className:"mt-2 min-h-16 w-full border border-ink/40 bg-white px-2 py-1 text-xs"})]},t.id)),(p??[]).length===0&&e.jsx("div",{className:"border-2 border-dashed border-ink/30 p-6 text-center text-sm text-ink/60",children:"No inquiries."})]})]})}function le(){const i=u(U),[s,a]=x.useState("all"),{data:c,isLoading:r}=v({queryKey:["admin-nil-audit",s],queryFn:()=>i({data:{action:s}})}),p=["all","scrape_generate","scrape_with_manual","manual_override","delete"];return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("label",{className:"text-xs text-ink/60",children:"Action:"}),e.jsx("select",{className:"border-2 border-ink bg-bone px-2 py-1 text-sm",value:s,onChange:l=>a(l.target.value),children:p.map(l=>e.jsx("option",{value:l,children:l},l))})]}),r?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-ink/60",children:[e.jsx(b,{className:"h-4 w-4 animate-spin"})," Loadingâ¦"]}):e.jsx("div",{className:"border-2 border-ink bg-bone overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-ink text-bone",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"When"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Actor"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Athlete"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Action"}),e.jsx("th",{className:"px-3 py-2 text-left font-display text-xs uppercase tracking-widest",children:"Summary"})]})}),e.jsxs("tbody",{children:[(c??[]).map(l=>e.jsxs("tr",{className:"border-t border-ink/20 align-top",children:[e.jsx("td",{className:"px-3 py-2 text-xs whitespace-nowrap",children:new Date(l.created_at).toLocaleString()}),e.jsx("td",{className:"px-3 py-2 text-xs",children:l.actor_email??l.actor_user_id?.slice(0,8)??"â"}),e.jsx("td",{className:"px-3 py-2 text-xs",children:l.athlete?`${l.athlete.first_name} ${l.athlete.last_name}`:e.jsx("span",{className:"text-ink/40",children:"â"})}),e.jsx("td",{className:"px-3 py-2 text-xs",children:e.jsx("span",{className:"border border-ink/40 px-1.5 py-0.5",children:l.action})}),e.jsxs("td",{className:"px-3 py-2 text-xs",children:[e.jsx("div",{children:l.summary}),l.details&&e.jsxs("details",{className:"mt-1",children:[e.jsx("summary",{className:"cursor-pointer text-[10px] uppercase text-ink/50",children:"details"}),e.jsx("pre",{className:"mt-1 max-h-60 overflow-auto border border-ink/20 bg-white p-2 text-[10px] leading-snug",children:JSON.stringify(l.details,null,2)})]})]})]},l.id)),(c??[]).length===0&&e.jsx("tr",{children:e.jsx("td",{colSpan:5,className:"px-3 py-6 text-center text-sm text-ink/60",children:"No audit entries."})})]})]})})]})}function D(i){if(i==null)return"â";const s=i/100;return s>=1e5?`$${Math.round(s/1e3)}k`:s>=1e3?`$${(s/1e3).toFixed(1)}k`:`$${Math.round(s)}`}function re({athlete:i,valuation:s,draft:a}){const[c,r]=x.useState(null);if(!s)return e.jsxs("div",{className:"mt-6 border-2 border-dashed border-ink/40 bg-white p-4 text-sm text-ink/60",children:[e.jsx("div",{className:"font-display text-[10px] uppercase tracking-widest text-ink/60",children:"Live profile preview"}),e.jsx("p",{className:"mt-1",children:"Generate or save a valuation to preview how it will appear on the athlete's profile."})]});const p=[{label:"Tripsports",v:a.tripsports},{label:"247Sports",v:a.sports247},{label:"On3",v:a.on3},{label:"Rivals",v:a.rivals}],l=!!s.published_to_profile,n=c??l,t=[i?.first_name,i?.last_name].filter(
1Boolean).join(" ")||"athlete";return e.jsxs("div",{className:"mt-6",children:[e.jsxs("div",{className:"mb-2 flex flex-wrap items-center justify-between gap-2",children:[e.jsxs("div",{className:"font-display text-[10px] uppercase tracking-widest text-ink/60",children:["Live profile preview ",e.jsxs("span",{className:"ml-1 text-ink/40",children:["â exactly what ",t," will see"]})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-widest text-ink/50",children:"Simulate:"}),e.jsxs("button",{onClick:()=>r(!1),className:`inline-flex items-center gap-1 border-2 px-2 py-0.5 font-display text-[10px] uppercase tracking-widest ${n===!1?"border-ink/40 bg-ink/5 text-ink":"border-transparent text-ink/40 hover:text-ink/70"}`,children:[e.jsx(f,{className:"h-3 w-3"})," Hidden"]}),e.jsxs("button",{onClick:()=>r(!0),className:`inline-flex items-center gap-1 border-2 px-2 py-0.5 font-display text-[10px] uppercase tracking-widest ${n===!0?"border-ignition bg-ignition text-bone":"border-transparent text-ink/40 hover:text-ink/70"}`,children:[e.jsx(N,{className:"h-3 w-3"})," Live"]}),c!==null&&e.jsx("button",{onClick:()=>r(null),className:"ml-1 text-[10px] uppercase tracking-widest text-ink/40 underline hover:text-ink/70",children:"Reset"})]})]}),e.jsxs("span",{className:`mb-2 inline-flex items-center gap-1 border-2 px-2 py-0.5 font-display text-[10px] uppercase tracking-widest ${n?"border-ignition bg-ignition text-bone":"border-ink/40 text-ink/60"}`,children:[n?e.jsx(N,{className:"h-3 w-3"}):e.jsx(f,{className:"h-3 w-3"}),n?"Live now":"Hidden until published",c!==null&&e.jsx("span",{className:"ml-1 opacity-70",children:"(simulated)"})]}),e.jsxs("div",{className:`border-2 border-ink bg-bone p-5 ${n?"":"opacity-95"}`,children:[e.jsx("h2",{className:"font-display text-xs uppercase tracking-widest text-ignition",children:"NIL Valuation"}),e.jsxs("div",{className:"mt-3 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3 border-2 border-ink bg-ignition/10 p-4",children:[e.jsx(I,{className:"h-7 w-7 text-ignition"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-display text-2xl leading-none",children:s.value_low_cents===0&&s.value_high_cents===0?"$0":`${D(s.value_low_cents)} â ${D(s.value_high_cents)}`}),e.jsx("div",{className:"mt-1 text-xs uppercase tracking-widest text-ink/60",children:s.value_low_cents===0&&s.value_high_cents===0?(s.best_stars??0)>0||s.best_rank!=null||s.best_position_rank!=null?"insufficient ranking data â no estimated NIL value":"unranked â no estimated NIL value":`estimated annual NIL value · updated ${new Date(s.generated_at).toLocaleDateString()}`})]})]}),a.rationale&&e.jsx("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-ink/80",children:a.rationale}),e.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:p.map(o=>{const d=o.v??{};return e.jsxs("div",{className:"border border-ink/30 bg-white p-2 text-xs",children:[e.jsx("div",{className:"font-display text-[10px] uppercase tracking-widest text-ink/50",children:o.label}),e.jsxs("div",{className:"mt-1",children:[d.rank?e.jsxs("span",{className:"font-semibold",children:["#",d.rank]}):e.jsx("span",{className:"text-ink/40",children:"no rank"}),d.stars?e.jsxs("span",{className:"ml-2",children:[d.stars,"â
"]}):null]}),d.url&&e.jsx("span",{className:"mt-1 block truncate text-[10px] text-ignition underline",children:"source"})]},o.label)})})]})]}),!n&&e.jsxs("p",{className:"mt-2 text-[11px] text-ink/50",children:["Edits above update the preview live. The athlete won't see any of this until you click ",e.jsx("strong",{children:"Add to Athlete Profile"}),". Money range and composite score only refresh when you save or re-generate."]})]})}const ve=()=>e.jsx(V,{title:"NIL Valuations",subtitle:"Scrape ranks, compute value, manage inquiries",children:e.jsx(te,{})});export{ve 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.