1import{j as e,f as r,L as w}from"./vendor-react-DN8kURjP.js";import{P as N}from"./PlatformLayout-CXcwyZRi.js";import{e as A,G as k,D as p}from"./index-CxYJmUz4.js";import{a as E,D as I}from"./NILCardBuilder-BAOaXpfC.js";import"./proxy-rg424OUj.js";import"./vendor-ui-DX_CyZTE.js";import"./zap-StDQ0vw4.js";import"./x-BvPZbEdl.js";import"./trophy-BDLUpuyj.js";import"./AthletePageBackground-BqRmEHCM.js";import"./vendor-data-CFC2aK0l.js";import"./vendor-monitoring-Ddv-fnWC.js";function S(){const{user:g}=k(),[n,C]=r.useState("optimize"),[s,i]=r.useState({sport:"Football",position:"QB",school:"",gpa:"",height:"",weight:"",bio:"",achievements:"",currentDivision:"D1",targetDivision:"D1"}),[u,f]=r.useState(""),[o,a]=r.useState({targetSchool:"",coachName:"",achievements:"",sport:"",position:""}),[h,v]=r.useState(""),[m,F]=r.useState(""),[d,j]=r.useState(""),c=p.ai.optimizeProfile.useMutation({onSuccess:t=>f(String(t.optimized??""))}),x=p.ai.generateCoachEmail.useMutation({onSuccess:t=>v(String(t.email??""))}),b=p.ai.getRecruitingAdvice.useMutation({onSuccess:t=>j(String(t.advice??""))});return g?e.jsx(N,{title:"AI Recruiter",children:e.jsxs("div",{className:"space-y-4 pb-20 lg:pb-4",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-start",children:[e.jsxs("div",{className:"relative w-full sm:w-auto sm:flex-shrink-0",style:{maxWidth:200},children:[e.jsx("span",{className:"absolute -top-2 -right-2 z-10 bg-[#0066ff] text-white text-[9px] font-black uppercase tracking-widest px-2 py-1 rounded-full shadow-lg",children:"Sample Card"}),e.jsx(E,{card:I})]}),e.jsxs("div",{className:"flex-1 min-w-0 bg-gradient-to-r from-[#1a3a8f] to-[#1a2a4a] border border-[#00C2FF] rounded-xl p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("h2",{className:"text-2xl font-black text-white",children:"AI RECRUITER"}),e.jsx("span",{className:"text-xs bg-[#00C2FF] text-white px-2 py-0.5 rounded-full font-bold",children:"LIVE AI"})]}),e.jsx("p",{className:"text-blue-300 text-sm mb-3",children:"Your NIL card is your scouting file. Scouts and coaches see your card first â make it count."}),e.jsx(w,{href:"/nil-card-builder",className:"inline-block bg-[#0066FF] hover:bg-blue-600 text-white font-black px-4 py-2 rounded-xl text-xs transition-all",children:"Build My Card â"})]})]}),e.jsx("div",{className:"flex gap-1 bg-[#1a3a8f] border border-blue-900 rounded-xl p-1",children:[{key:"optimize",label:"Profile Optimizer"},{key:"email",label:"Coach Email AI"},{key:"advice",label:"Recruiting Advice"}].map(t=>e.jsx("button",{onClick:()=>C(t.key),className:`flex-1 py-2 text-xs font-bold rounded-lg transition-colors ${n===t.key?"bg-[#00C2FF] text-white":"text-blue-400 hover:text-white"}`,children:t.label},t.key))}),n==="optimize"&&e.jsxs("div",{className:"bg-[#1a3a8f] border border-blue-900 rounded-xl p-5",children:[e.jsx("h3",{className:"text-white font-bold mb-4",children:"AI Profile Optimizer"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx("div",{className:"grid grid-cols-2 gap-3",children:[{label:"Sport *",key:"sport",placeholder:"Football"},{label:"Position *",key:"position",placeholder:"QB"},{label:"School",key:"school",placeholder:"University of Alabama"},{label:"GPA",key:"gpa",placeholder:"3.6"},{label:"Height",key:"height",placeholder:`6'3"`},{label:"Weight",key:"weight",placeholder:"215 lbs"}].map(t=>e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:t.label}),e.jsx("input",{value:s[t.key],onChange:l=>i(y=>({...y,[t.key]:l.target.value})),placeholder:t.placeholder,className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600"})]},t.key))}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Current Division"}),e.jsx("select",{value:s.currentDivision,onChange:t=>i(l=>({...l,currentDivision:t.target.value})),className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF]",children:["D1","D2","D3","NAIA","JUCO","High School"].map(t=>e.jsx("option",{children:t},t))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Target Division"}),e.jsx("select",{value:s.targetDivision,onChange:t=>i(l=>({...l,targetDivision:t.target.value})),className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF]",children:["D1","D2","D3","NAIA"].map(t=>e.jsx("option",{children:t},t))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Key Achievements"}),e.jsx("textarea",{value:s.achievements,onChange:t=>i(l=>({...l,achievements:t.target.value})),placeholder:"4,200 passing yards, 38 TDs, All-Conference 2024...",rows:2,className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600 resize-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Current Bio"}),e.jsx("textarea",{value:s.bio,onChange:t=>i(l=>({...l,bio:t.target.value})),placeholder:"Tell coaches who you are...",rows:2,className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600 resize-none"})]}),e.jsx("button",{onClick:()=>c.mutate({sport:s.sport,position:s.position,school:s.school||void 0,gpa:s.gpa?Number(s.gpa):void 0,height:s.height||void 0,weight:s.weight||void 0,bio:s.bio||void 0,achievements:s.achievements||void 0}),disabled:c.isPending||!s.sport||!s.position,className:"w-full bg-[#00C2FF] hover:bg-[#00C2FF] text-white font-black py-3 rounded-xl transition-colors disabled:opacity-50",children:c.isPending?"Analyzing Profile...":"ANALYZE MY PROFILE"})]}),c.isError&&e.jsx("div",{className:"mt-3 bg-[#1E90FF]/30 border border-[#1E90FF] rounded-xl p-3 text-[#1E90FF] text-sm",children:"Error analyzing profile. Please try again."}),u&&e.jsxs("div",{className:"mt-4 bg-[#1530a0] border border-[#00C2FF] rounded-xl p-4",children:[e.jsxs("div",{className:"text-[#00C2FF] text-xs font-bold mb-2 flex items-center gap-2",children:[e.jsx("span",{})," AI PROFILE ANALYSIS"]}),e.jsx("p",{className:"text-white text-sm leading-relaxed whitespace-pre-wrap",children:u}),e.jsxs("div",{className:"flex gap-2 mt-3",children:[e.jsx("button",{onClick:()=>navigator.clipboard.writeText(u),className:"flex-1 border border-[#00C2FF] text-[#00C2FF] text-sm font-bold py-2 rounded-lg hover:bg-[#00C2FF] transition-colors",children:"Copy Analysis"}),e.jsx("button",{onClick:()=>f(""),className:"flex-1 border border-blue-700 text-blue-300 text-sm font-bold py-2 rounded-lg hover:bg-blue-900 transition-colors",children:"Clear"})]})]})]}),n==="email"&&e.jsxs("div",{className:"bg-[#1a3a8f] border border-blue-900 rounded-xl p-5",children:[e.jsx("h3",{className:"text-white font-bold mb-4",children:"Coach Outreach Email Generator"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Target School *"}),e.jsx("input",{value:o.targetSchool,onChange:t=>a(l=>({...l,targetSchool:t.target.value})),placeholder:"University of Florida",className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Coach Name"}),e.jsx("input",{value:o.coachName,onChange:t=>a(l=>({...l,coachName:t.target.value})),placeholder:"Coach Smith",className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Sport"}),e.jsx("input",{value:o.sport,onChange:t=>a(l=>({...l,sport:t.target.value})),placeholder:"Football",className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Position"}),e.jsx("input",{value:o.position,onChange:t=>a(l=>({...l,position:t.target.value})),placeholder:"QB",className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Key Achievements"}),e.jsx("textarea",{value:o.achievements,onChange:t=>a(l=>({...l,achievements:t.target.value})),placeholder:"4,200 passing yards, 38 TDs, All-Conference...",rows:2,className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600 resize-none"})]}),e.jsx("button",{onClick:()=>x.mutate({targetSchool:o.targetSchool,coachName:o.coachName||void 0,athleteName:g?.name||"Athlete",sport:o.sport||"Athlete",position:o.position||void 0,achievements:o.achievements||void 0}),disabled:x.isPending||!o.targetSchool,className:"w-full bg-[#00C2FF] hover:bg-[#00C2FF] text-white font-black py-3 rounded-xl transition-colors disabled:opacity-50",children:x.isPending?"Generating Email...":"GENERATE COACH EMAIL"})]}),x.isError&&e.jsx("div",{className:"mt-3 bg-[#1E90FF]/30 border border-[#1E90FF] rounded-xl p-3 text-[#1E90FF] text-sm",children:"Error generating email. Please try again."}),h&&e.jsxs("div",{className:"mt-4 bg-[#1530a0] border border-[#00C2FF] rounded-xl p-4",children:[e.jsxs("div",{className:"text-[#00C2FF] text-xs font-bold mb-2 flex items-center gap-2",children:[e.jsx("span",{})," AI GENERATED EMAIL"]}),e.jsx("p",{className:"text-white text-sm leading-relaxed whitespace-pre-wrap",children:h}),e.jsxs("div",{className:"flex gap-2 mt-3",children:[e.jsx("button",{onClick:()=>navigator.clipboard.writeText(h),className:"flex-1 border border-[#00C2FF] text-[#00C2FF] text-sm font-bold py-2 rounded-lg hover:bg-[#00C2FF] transition-colors",children:"Copy Email"}),e.jsx("button",{onClick:()=>v(""),className:"flex-1 border border-blue-700 text-blue-300 text-sm font-bold py-2 rounded-lg hover:bg-blue-900 transition-colors",children:"Clear"})]})]})]}),n==="advice"&&e.jsxs("div",{className:"bg-[#1a3a8f] border border-blue-900 rounded-xl p-5",children:[e.jsx("h3",{className:"text-white font-bold mb-4",children:"AI Recruiting Advisor"}),e.jsx("p",{className:"text-blue-400 text-sm mb-4",children:"Ask any recruiting question and get personalized AI advice."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"text-blue-300 text-xs font-semibold block mb-1",children:"Your Question *"}),e.jsx("textarea",{value:m,onChange:t=>F(t.target.value),placeholder:"e.g. How do I get noticed by D1 coaches? What should I include in my highlight reel? How do I handle multiple scholarship offers?",rows:4,className:"w-full bg-[#0d1f3c] border border-blue-800 text-white text-sm rounded-lg px-3 py-2.5 focus:outline-none focus:border-[#00C2FF] placeholder-blue-600 resize-none"})]}),e.jsx("button",{onClick:()=>b.mutate({question:m,sport:"College Athlete",targetLevel:"D1"}),disabled:b.isPending||!m.trim(),className:"w-full bg-[#00C2FF] hover:bg-[#00C2FF] text-white font-black py-3 rounded-xl transition-colors disabled:opacity-50",children:b.isPending?"Getting AI Advice...":"GET AI RECRUITING ADVICE"})]}),b.isError&&e.jsx("div",{className:"mt-3 bg-[#1E90FF]/30 border border-[#1E90FF] rounded-xl p-3 text-[#1E90FF] text-sm",children:"Error getting advice. Please try again."}),d&&e.jsxs("div",{className:"mt-4 bg-[#1530a0] border border-[#00C2FF] rounded-xl p-4",children:[e.jsxs("div",{className:"text-[#00C2FF] text-xs font-bold mb-2 flex items-center gap-2",children:[e.jsx("span",{})," AI RECRUITING ADVICE"]}),e.jsx("p",{className:"text-white text-sm leading-relaxed whitespace-pre-wrap",children:d}),e.jsxs("div",{className:"flex gap-2 mt-3",children:[e.jsx("button",{onClick:()=>navigator.clipboard.writeText(d),className:"flex-1 border border-[#00C2FF] text-[#00C2FF] text-sm font-bold py-2 rounded-lg hover:bg-[#00C2FF] transition-colors",children:"Copy Advice"}),e.jsx("button",{onClick:()=>j(""),className:"flex-1 border border-blue-700 text-blue-300 text-sm font-bold py-2 rounded-lg hover:bg-blue-900 transition-colors",children:"Clear"})]})]}),!d&&e.jsxs("div",{className:"mt-4",children:[e.jsx("div",{className:"text-blue-400 text-xs font-bold mb-2",children:"QUICK QUESTIONS"}),e.jsx("div",{className:"space-y-2",children:["How do I get noticed by D1 coaches?","What should I include in my recruiting highlight reel?","How do I handle multiple scholarship offers?","What GPA do I need to get recruited to a D1 school?","How early should I start the recruiting process?"].map((t,l)=>e.jsx("button",{onClick:()=>
1F(t),className:"w-full text-left text-xs text-blue-300 hover:text-white bg-[#0d1f3c] hover:bg-[#1530a0] border border-blue-800 px-3 py-2 rounded-lg transition-colors",children:t},l))})]})]})]})}):e.jsx(N,{title:"AI Recruiter",children:e.jsxs("div",{className:"bg-[#1a3a8f] border border-blue-900 rounded-xl p-8 text-center",children:[e.jsx("div",{className:"text-4xl mb-4"}),e.jsx("h2",{className:"text-xl font-black text-white mb-2",children:"Sign In to Use AI Recruiter"}),e.jsx("p",{className:"text-blue-300 text-sm mb-4",children:"Optimize your recruiting profile and get discovered by the right coaches."}),e.jsx("a",{href:"/signin",className:"bg-[#00C2FF] hover:bg-[#00C2FF] text-white font-bold px-6 py-2.5 rounded-lg inline-block transition-colors",children:"Sign In"})]})})}function B(){return e.jsx(A,{children:e.jsx(S,{})})}export{B 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.