1import{r as l,B as xt,y as e}from"./vendor-CAn19U_C.js";import{d as m,n as u,a as S,f as pt}from"./index-CJ3hxe8K.js";import{o as ut,d as Q,u as Ee,n as Pe,q as f,h as y,j as $e,l as v,k as w,e as Le,w as j,I as Me,m as mt,s as ht}from"./vendor-firebase-CMgAD1F0.js";import{M as bt}from"./MessagesTab-CRzWmsKc.js";import{l as Ue}from"./logo-D8gOup9f.js";import{j as W,b7 as H,s as V,e as Y,S as Z,aH as gt,M as Oe,L as ft,b as Fe,k as ee,x as te,aa as jt,aD as yt,a as qe,bl as wt,a3 as se,z as ae,l as Nt}from"./vendor-lucide-B99EgzbQ.js";function Dt(){var ve,ke,Se,Ce,Ae;const[a,_e]=l.useState(null),[Qe,We]=l.useState(!0),[d,C]=l.useState("Support Inbox"),[N,He]=l.useState(!0),[re,A]=l.useState(!1),[P,Ve]=l.useState([]),[z,B]=l.useState([]),[G,le]=l.useState(!1),[D,Be]=l.useState(""),[T,ie]=l.useState("pods"),[I,ne]=l.useState(null),[Ge,Je]=l.useState(!0),[ce,de]=l.useState(null),[$,oe]=l.useState(null),[L,Xe]=l.useState({}),[J,xe]=l.useState({}),[o,M]=l.useState(null),[pe,ue]=l.useState([]),[Ke,me]=l.useState([]),[Ye,he]=l.useState(0),[k,R]=l.useState([]),[be,U]=l.useState([]),[c,ge]=l.useState(null),[Ze,fe]=l.useState(!1),[X,je]=l.useState([]),[et,ye]=l.useState(!1),[i,we]=l.useState(null),[E,tt]=l.useState("All"),O=xt();l.useEffect(()=>{d==="Support Tickets"&&(async()=>{ye(!0);try{const s=f(y(m,"support_tickets"),$e("createdAt","desc"),v(50)),r=await w(s);je(r.docs.map(n=>{var p;return{id:n.id,...n.data(),createdAt:(p=n.data().createdAt)!=null&&p.toDate?n.data().createdAt.toDate():new Date}}))}catch{u.error("Error","Failed to load support tickets")}finally{ye(!1)}})()},[d]),l.useEffect(()=>{const t=ut(S,async s=>{if(s){const r=Q(m,"users",s.uid),n=await Le(r);n.exists()&&n.data().role==="support"?_e(n.data()):(u.error("Access Denied","Support authorization required"),O("/login"))}else O("/login");We(!1)});return()=>t()},[O]),l.useEffect(()=>{(a==null?void 0:a.supportType)==="web"&&d==="Support Inbox"&&C("Contact Queries")},[a,d]),l.useEffect(()=>{d==="Contact Queries"&&(async()=>{fe(!0);try{const s=f(y(m,"contact_submissions"),$e("submittedAt","desc"),v(20)),r=await w(s);r.empty?U([{id:"1",name:"Dr. Sarah Smith",email:"[email protected]",subject:"Partnership Inquiry",message:"We are interested in integrating your AI modules into our residency program.",submittedAt:new Date,status:"new"},{id:"2",name:"James Wilson",email:"[email protected]",subject:"Technical API Access",message:"Do you offer an API for verifying student certifications programmatically?",submittedAt:new Date(Date.now()-864e5),status:"in-progress"}]):U(r.docs.map(n=>({id:n.id,...n.data()})))}catch{U([{id:"1",name:"Dr. Sarah Smith",email:"[email protected]",subject:"Partnership Inquiry",message:"We are interested in integrating your AI modules into our residency program.",submittedAt:new Date,status:"new"}])}finally{fe(!1)}})()},[d]),l.useEffect(()=>{if(!a)return;(async()=>{try{if(a.supportType==="web"){B([]);return}if(a.supportType==="course"&&a.assignedCourseId){const s=Q(m,"courses",a.assignedCourseId),r=await Le(s);r.exists()&&B([{id:r.id,...r.data()}])}else{const s=await w(y(m,"courses"));B(s.docs.map(r=>({id:r.id,...r.data()})))}}catch{}})()},[a]);const F=async(t="initial")=>{if(!(!a||a.supportType==="web")){le(!0);try{const s=y(m,"users"),r=[j("role","==","student")];a.supportType==="course"&&a.assignedCourseId&&r.push(j("enrolledCourses","array-contains",a.assignedCourseId)),D&&(r.push(j("fullName",">=",D)),r.push(j("fullName","<=",D+"")));let n=f(s,...r,v(15));if(t==="initial"&&(R([]),ne(null)),t==="next"&&I)n=f(s,...r,Me(I),v(15));else if(t==="prev"&&k.length>1){const b=k[k.length-2];n=f(s,...r,Me(b),v(15)),R(_=>_.slice(0,-1))}const p=await w(n),h=p.docs.map(b=>({id:b.id,...b.data()}));if(Ve(h),p.docs.length>0){const b=p.docs.length-1;ne(p.docs[b]),t==="next"?R(_=>[..._,I]):t==="initial"&&p.docs.length===15&&R([p.docs[0]])}Je(p.docs.length===15)}catch{u.error("Database Error","Could not synchronize registry.")}finally{le(!1)}}},st=()=>{I&&(R(t=>[...t,I]),F("next"))},at=()=>{k.length>0&&F("prev")};l.useEffect(()=>{if(d==="Students Registry"&&a){const t=setTimeout(()=>F("initial"),300);return()=>clearTimeout(t)}},[D,d,a]);const rt=async t=>{if(!J[t]){xe(s=>({...s,[t]:!0}
1));try{const s=y(m,"users"),r=f(s,j("role","==","student"),j("enrolledCourses","array-contains",t),v(12)),p=(await w(r)).docs.map(h=>({id:h.id,...h.data()}));Xe(h=>({...h,[t]:p}))}catch{}finally{xe(s=>({...s,[t]:!1}))}}};l.useEffect(()=>{d==="Students Registry"&&T==="list"&&F("initial")},[d,T]),l.useEffect(()=>{if(!o){ue([]),me([]),he(0);return}(async()=>{try{const s=y(m,"quiz_results"),r=f(s,j("studentEmail","==",o.email),v(5)),p=(await w(r)).docs.map(x=>{var Re;const g=x.data();return{id:x.id,event:"Quiz Submitted",time:(Re=g.submittedAt)!=null&&Re.toDate()?g.submittedAt.toDate().toLocaleDateString():"Recent",meta:`Scored ${g.score}/${g.totalPoints}`,type:"quiz"}}),h=y(m,"certificates"),b=f(h,j("userId","==",o.id)),ze=(await w(b)).docs.map(x=>({id:x.id,...x.data()}));me(ze);const nt=ze.map(x=>{var g;return{id:x.id,event:"Certificate Issued",time:(g=x.issuedAt)!=null&&g.toDate?x.issuedAt.toDate().toLocaleDateString():"Recently",meta:x.courseTitle,type:"cert"}}),ct=o.enrolledCourses||[],De=z.filter(x=>ct.includes(x.id)),dt=De.map(x=>({id:x.id,event:"Module Active",time:"Ongoing",meta:x.title,type:"course"})),Te=o.courseProgress||{};let Ie=0,K=0;De.forEach(x=>{Te[x.id]!==void 0&&(Ie+=Number(Te[x.id]),K++)});const ot=K>0?Math.round(Ie/K):0;he(ot),ue([...p,...nt,...dt].sort((x,g)=>g.id.localeCompare(x.id)).slice(0,5))}catch{}})()},[o,z]);const lt=t=>{$===t?oe(null):(oe(t),L[t]||rt(t))},q=async t=>{if(!(!a||!S.currentUser)){de(t.id);try{const s=y(m,"chats"),r=f(s,j("participants","array-contains",S.currentUser.uid));if((await w(r)).docs.find(b=>b.data().participants.includes(t.id))){C("Support Inbox"),u.success("Redirecting","Opening existing conversation...");return}const h={participants:[S.currentUser.uid,t.id],chatType:"student-support",lastMessage:"",lastUpdatedAt:Pe(),participantDetails:{[S.currentUser.uid]:{fullName:a.fullName,role:"support"},[t.id]:{fullName:t.fullName,role:"student"}},courseId:a.assignedCourseId||null};await mt(s,h),u.success("Chat Created",`Support session for ${t.fullName} initiated.`),C("Support Inbox")}catch{u.error("Error","Failed to initiate chat")}finally{de(null)}}},it=async()=>{try{await ht(S),pt(),u.success("Signed Out","Support session ended securely."),O("/login")}catch{u.error("Error","Failed to end session")}};if(Qe)return e.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:e.jsx("div",{className:"w-12 h-12 border-4 border-blue-600/20 border-t-blue-600 rounded-full animate-spin"})});const Ne=[...(a==null?void 0:a.supportType)!=="web"?[{icon:W,label:"Support Inbox"}]:[],{icon:H,label:"Support Tickets"},...(a==null?void 0:a.supportType)==="web"||(a==null?void 0:a.supportType)==="all"?[{icon:V,label:"Contact Queries"}]:[],...(a==null?void 0:a.supportType)!=="web"?[{icon:Y,label:"Students Registry"}]:[],{icon:Z,label:"Security"},{icon:gt,label:"Settings"}];return e.jsxs("div",{className:"min-h-screen bg-[#f8fafc] flex",children:[e.jsx("aside",{className:`fixed inset-y-0 left-0 z-50 bg-[#0f172a] text-white transition-all duration-500 transform ${re?"translate-x-0":"-translate-x-full lg:translate-x-0"} ${N?"w-80":"w-24"}`,children:e.jsxs("div",{className:"h-full flex flex-col p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-12",children:[N&&e.jsx("img",{src:Ue,alt:"AiCure",className:"h-10 brightness-0 invert"}),e.jsx("button",{onClick:()=>He(!N),className:"p-2.5 bg-white/5 hover:bg-white/10 rounded-2xl transition-all",children:e.jsx(Oe,{size:20,className:"text-gray-400"})})]}),e.jsx("nav",{className:"flex-1 space-y-3",children:Ne.map(t=>e.jsxs("button",{onClick:()=>{C(t.label),A(!1)},className:`w-full flex items-center gap-4 p-4 rounded-[24px] transition-all group ${d===t.label?"bg-blue-600 text-white shadow-xl shadow-blue-500/20":"text-gray-400 hover:text-white hover:bg-white/5"}`,children:[e.jsx(t.icon,{size:24,className:`${d===t.label?"scale-110":"group-hover:scale-110"} transition-transform`}),N&&e.jsx("span",{className:"font-black uppercase text-[10px] tracking-widest",children:t.label})]},t.label))}),N&&e.jsxs("div",{className:"mt-8 p-6 bg-white/5 rounded-[32px] border border-white/5",children:[e.jsx("p",{className:"text-[8px] font-black text-blue-400 uppercase tracking-[0.2em] mb-4",children:"Agent Profile"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black text-white/90 truncate",children:a==null?void 0:a.fullName}),e.jsx("p",{className:"text-[9px] font-bold text-gray-500 truncate",children:a==null?void 0:a.email})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500 shadow-[0_0_10px_rgba(16,185,129,0.5)]"}),e.jsxs("span",{className:"text-[9px] font-black uppercase text-emerald-500",children:["Tier: ",(a==null?void 0:a.supportType)==="all"?"L3 Global":(a==null?void 0:a.supportType)==="course"?"Expert"
1:"L1 Web"]})]})]})]}),e.jsxs("button",{onClick:it,className:"flex items-center gap-4 p-4 text-red-400 hover:bg-white/5 rounded-[24px] transition-all group mt-auto",children:[e.jsx(ft,{size:24}),N&&e.jsx("span",{className:"font-black uppercase text-[10px] tracking-widest",children:"End Session"})]})]})}),e.jsxs("main",{className:`flex-1 transition-all duration-500 ${N?"lg:ml-80":"lg:ml-24"}`,children:[e.jsxs("header",{className:"h-24 bg-white/80 backdrop-blur-md border-b border-gray-100 flex items-center justify-between px-8 lg:px-12 sticky top-0 z-40",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("button",{onClick:()=>A(!0),className:"lg:hidden p-2 text-gray-500",children:e.jsx(Oe,{size:24})}),e.jsxs("div",{className:"hidden sm:block",children:[e.jsx("p",{className:"text-[10px] font-black text-blue-600 uppercase tracking-widest mb-1",children:"Support Console"}),e.jsx("h2",{className:"text-xl font-black text-gray-900 tracking-tight",children:d})]})]}),e.jsxs("div",{className:"flex items-center gap-4 lg:gap-8",children:[e.jsxs("div",{className:"hidden md:flex items-center px-4 py-2 bg-emerald-50 text-emerald-600 rounded-xl gap-2",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest",children:"Agent Active"})]}),e.jsxs("div",{className:"flex items-center gap-4 bg-gray-50/50 p-2 pr-6 rounded-2xl border border-gray-100",children:[e.jsx("div",{className:"w-12 h-12 rounded-[18px] bg-gradient-to-tr from-blue-600 to-indigo-600 flex items-center justify-center font-black text-white shadow-xl shadow-blue-500/20",children:((ve=a==null?void 0:a.fullName)==null?void 0:ve.charAt(0))||"S"}),e.jsxs("div",{className:"hidden sm:block",children:[e.jsx("p",{className:"text-xs font-black text-gray-900 leading-none mb-1.5",children:a==null?void 0:a.fullName}),e.jsx("p",{className:"text-[9px] font-black text-blue-600 uppercase tracking-widest opacity-60",children:(a==null?void 0:a.supportType)==="course"?`Course Specialist: ${((ke=z[0])==null?void 0:ke.title)||"Assigned Module"}`:(a==null?void 0:a.supportType)==="web"?"Technical Web Support":"Platform Operations Admin"})]})]})]})]}),e.jsxs("div",{className:"p-4 lg:p-8",children:[d==="Support Inbox"&&e.jsx("div",{className:"bg-white rounded-[40px] shadow-2xl shadow-blue-900/5 overflow-hidden h-[calc(100vh-14rem)] border border-gray-100",children:e.jsx(bt,{currentUserRole:"support",currentUserSupportType:a==null?void 0:a.supportType,currentUserAssignedCourseId:a==null?void 0:a.assignedCourseId})}),d==="Students Registry"&&e.jsxs("div",{className:"space-y-12 animate-enter",children:[e.jsxs("div",{className:"flex flex-col xl:flex-row items-start xl:items-center justify-between gap-8 pb-8 border-b border-gray-100",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-4xl font-black text-gray-900 mb-3 tracking-tight",children:"Students Registry"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("p",{className:"text-gray-400 font-bold uppercase text-[10px] tracking-[0.25em]",children:"Database Management"}),e.jsx("div",{className:"h-1 w-1 rounded-full bg-blue-600"}),e.jsxs("p",{className:"text-blue-600 font-black uppercase text-[10px] tracking-[0.25em]",children:[z.length," Active Modules"]})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 w-full xl:w-auto",children:[e.jsxs("div",{className:"relative flex-1 xl:w-[400px] group",children:[e.jsx(Fe,{className:"absolute left-6 top-1/2 -translate-y-1/2 text-gray-300 group-focus-within/search:text-blue-600 transition-colors",size:18}),e.jsx("input",{type:"text",placeholder:"Global student search...",value:D,onChange:t=>Be(t.target.value),className:"w-full pl-16 pr-6 py-4 bg-white border border-gray-100 rounded-3xl focus:border-blue-500/30 shadow-sm focus:shadow-xl transition-all font-bold text-xs"})]}),e.jsxs("div",{className:"flex items-center bg-white p-1.5 rounded-3xl border border-gray-100 shadow-sm",children:[e.jsx("button",{onClick:()=>ie("pods"),className:`px-6 py-2.5 rounded-2xl text-[10px] font-black uppercase tracking-widest transition-all ${T==="pods"?"bg-blue-600 text-white shadow-lg shadow-blue-200":"text-gray-400 hover:text-gray-600"}`,children:"Course Pods"}),e.jsx("button",{onClick:()=>ie("list"),className:`px-6 py-2.5 rounded-2xl text-[10px] font-black uppercase tracking-widest transition-all ${T==="list"?"bg-blue-600 text-white shadow-lg shadow-blue-200":"text-gray-400 hover:text-gray-600"}`,children:"List View"})]})]})]}),T==="pods"?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 2xl:grid-cols-3 gap-10",children:z.map(t=>e.jsx("div",{className:`bg-white rounded-[48px] overflow-hidden border border-gray-100 shadow-sm hover:shadow-2xl transition-all duration-700 group flex flex-col ${$===t.id?"2xl:col-span-2":""}`,children:e.jsxs("div",{className:"p-10 flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-start justify-between mb-8",children:[e.jsx("div",{className:"w-16 h-16 rounded-3xl bg-blue-50 flex items-center justify-center text-blue-600 group-hover:scale-110 transition-transform duration-500",children:e.jsx(ee,{size:28})}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-[10px] font-black text-blue-600 uppercase tracking-widest mb-1.5 italic",children:"Module Tier"}),e.jsx("span",{className:"px-3 py-1 bg-blue-600 text-white rounded-lg text-[9px] font-black uppercase tracking-widest",children:"Premium"})]})]}),e.jsx("h3",{className:"text-2xl font-black text-gray-900 mb-3 group-hover:text-blue-600 transition-colors leading-tight",children:t.title}),e.jsx("p",{className:"text-gray-400 text-sm font-bold line-clamp-2 mb-8 leading-relaxed italic",children:t.description||"In-depth medical AI training module with practical certification focus."}),e.jsxs("div",{className:"flex items-center justify-between py-6 border-y border-gray-50 mb-8",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest mb-1",children:"Total Attendees"}),e.jsxs("p",{className:"text-2xl font-black text-gray-900 tracking-tighter flex items-center gap-2",children:[t.studentsEnrolled||0,e.jsx("span",{className:"text-emerald-500 text-[10px] font-black",children:"+12%"})]})]}),e.jsx("button",{onClick:()=>
1lt(t.id),className:`w-14 h-14 rounded-2xl flex items-center justify-center transition-all ${$===t.id?"bg-gray-900 text-white rotate-180":"bg-blue-50 text-blue-600 hover:bg-blue-600 hover:text-white shadow-lg shadow-blue-500/10"}`,children:e.jsx(te,{size:24,className:"rotate-180"})})]}),$===t.id&&e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 animate-scale-up py-4",children:[J[t.id]?e.jsx("div",{className:"col-span-2 py-12 flex justify-center",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600/10 border-t-blue-600 rounded-full animate-spin"})}):(L[t.id]||[]).map(s=>{var r;return e.jsxs("div",{className:"p-4 bg-gray-50/50 rounded-3xl border border-gray-100 flex items-center gap-4 hover:bg-white hover:shadow-xl transition-all group/item",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-white flex items-center justify-center text-blue-600 font-black text-sm shadow-sm group-hover/item:bg-blue-600 group-hover/item:text-white transition-all",children:(r=s.fullName)==null?void 0:r.charAt(0)}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs font-black text-gray-900 truncate",children:s.fullName}),e.jsx("p",{className:"text-[9px] font-bold text-gray-400 truncate tracking-tight",children:s.email})]}),e.jsx("button",{onClick:()=>q(s),className:"w-10 h-10 rounded-xl flex items-center justify-center text-gray-400 hover:text-blue-600 hover:bg-blue-50 transition-all opacity-0 group-hover/item:opacity-100",children:e.jsx(W,{size:16})})]},s.id)}),(!L[t.id]||L[t.id].length===0)&&!J[t.id]&&e.jsx("div",{className:"col-span-2 text-center py-10",children:e.jsx("p",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest italic",children:"No students found in this module pod."})})]}),e.jsxs("div",{className:"mt-auto pt-8 flex items-center justify-between",children:[e.jsxs("div",{className:"flex -space-x-3",children:[[1,2,3].map(s=>e.jsx("div",{className:"w-8 h-8 rounded-xl bg-gray-100 border-2 border-white flex items-center justify-center text-[10px] font-black text-gray-400",children:String.fromCharCode(64+s)},s)),e.jsx("div",{className:"w-8 h-8 rounded-xl bg-blue-600 border-2 border-white flex items-center justify-center text-[10px] font-black text-white",children:"+"})]}),e.jsx("p",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest italic",children:"Last Synced 2m ago"})]})]})},t.id))}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"px-12 py-4 bg-gray-50/50 rounded-2xl border border-gray-100 flex items-center hidden xl:flex",children:[e.jsx("div",{className:"flex-1 flex items-center gap-4",children:e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest pl-12",children:"Registry Member"})}),e.jsx("div",{className:"w-[300px]",children:e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:"Digital Identity"})}),e.jsx("div",{className:"w-[150px] text-center",children:e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:"Enrollments"})}),e.jsx("div",{className:"w-[150px] text-center",children:e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:"Status"})}),e.jsx("div",{className:"w-[180px] text-right pr-6",children:e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest",children:"Communication"})})]}),G&&P.length===0?e.jsxs("div",{className:"py-32 flex flex-col items-center",children:[e.jsx("div",{className:"w-12 h-12 border-4 border-blue-600/10 border-t-blue-600 rounded-full animate-spin mb-6"}),e.jsx("p",{className:"text-[10px] font-black text-gray-400 uppercase tracking-[0.3em] animate-pulse",children:"Syncing Registry..."})]}):P.length===0?e.jsxs("div",{className:"bg-white rounded-[48px] p-24 text-center border border-dashed border-gray-200",children:[e.jsx(Y,{size:64,className:"mx-auto text-gray-100 mb-6"}),e.jsx("h3",{className:"text-2xl font-black text-gray-900 mb-2",children:"Registry Empty"}),e.jsx("p",{className:"text-gray-400 font-bold max-w-xs mx-auto text-sm",children:"No students matched your current global search."})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"space-y-3",children:P.map(t=>{var s,r;return e.jsxs("div",{className:"bg-white p-4 xl:p-6 rounded-[32px] border border-gray-100 hover:border-blue-100 hover:bg-blue-50/10 transition-all duration-300 group flex flex-col xl:flex-row items-start xl:items-center gap-6",children:[e.jsxs("div",{className:"flex-1 flex items-center gap-6",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-gray-50 flex items-center justify-center text-blue-600 font-black text-lg group-hover:bg-blue-600 group-hover:text-white transition-all shadow-sm",children:((s=t.fullName)==null?void 0:s.charAt(0))||"U"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-base font-black text-gray-900 group-hover:text-blue-600 transition-colors leading-tight",children:t.fullName}),e.jsxs("p",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest mt-1",children:["Student ID: #",t.id.slice(-6).toUpperCase()]})]})]}),e.jsx("div",{className:"w-full xl:w-[300px]",children:e.jsxs("div",{className:"flex items-center gap-3 text-gray-500",children:[e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),e.jsx("span",{className:"text-xs font-bold truncate",children:t.email})]})}),e.jsxs("div",{className:"w-full xl:w-[150px] flex items-center justify-center gap-2 bg-gray-50/50 py-2 rounded-xl border border-gray-100",children:[e.jsx(ee,{size:14,className:"text-blue-600"}),e.jsx("span",{className:"text-sm font-black text-gray-900",children:((r=t.enrolledCourses)==null?void 0:r.length)||0}),e.jsx("span",{className:"text-[10px] font-black text-gray-400 uppercase tracking-tighter",children:"Courses"})]}),e.jsx("div",{className:"w-full xl:w-[150px] flex items-center justify-center",children:e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-emerald-50 text-emerald-600 rounded-full border border-emerald-100",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-emerald-500 animate-pulse"}),e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest",children:"Verified"})]})}),e.jsxs("div",{className:"w-full xl:w-[180px] flex items-center justify-end gap-2",children:[e.jsx("button",{onClick:()=>M(t),className:"p-3 text-gray-400 hover:text-blue-600 hover:bg-blue-50 rounded-xl transition-all",title:"View Profile Details",children:e.jsx(jt,{size:18})}),e.jsx("button",{onClick:()=>q(t),disabled:ce===t.id,className:"px-6 py-3 bg-white border border-gray-100 text-blue-600 hover:bg-blue-600 hover:text-white hover:border-blue-600 hover:shadow-xl hover:shadow-blue-500/20 rounded-2xl font-black uppercase text-[9px] tracking-[0.2em] transition-all flex items-center gap-3 active:scale-95 disabled:opacity-50",children:ce===t.id?e.jsx("div",{className:"w-3 h-3 border-2 border-current border-t-transparent roun
1ded-full animate-spin"}):e.jsxs(e.Fragment,{children:[e.jsx(W,{size:14}),"Support"]})})]})]},t.id)})}),e.jsxs("div",{className:"flex items-center justify-between pt-8 px-8",children:[e.jsx("div",{className:"hidden sm:block",children:e.jsxs("p",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest italic",children:["Showing ",e.jsx("span",{className:"text-gray-900",children:P.length})," Members in Current Set"]})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("button",{onClick:at,disabled:k.length===0||G,className:"w-12 h-12 rounded-2xl bg-white border border-gray-100 flex items-center justify-center text-gray-400 hover:text-blue-600 disabled:opacity-30 transition-all shadow-sm active:scale-90",children:e.jsx(te,{size:20})}),e.jsxs("div",{className:"px-6 py-3 bg-gray-900 text-white rounded-2xl text-[10px] font-black uppercase tracking-widest shadow-xl shadow-gray-200",children:["Page ",k.length+1]}),e.jsx("button",{onClick:st,disabled:!Ge||G,className:"w-12 h-12 rounded-2xl bg-white border border-gray-100 flex items-center justify-center text-gray-400 hover:text-blue-600 disabled:opacity-30 transition-all shadow-sm active:scale-90",children:e.jsx(te,{size:20,className:"rotate-180"})})]})]})]})]})]}),d==="Support Tickets"&&e.jsxs("div",{className:"h-[calc(100vh-14rem)] flex gap-8 animate-enter",children:[e.jsxs("div",{className:"w-full lg:w-1/3 bg-white rounded-[40px] border border-gray-100 shadow-sm flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-8 border-b border-gray-50",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsx("h2",{className:"text-2xl font-black text-gray-900 tracking-tight",children:"Support Queue"}),e.jsx("span",{className:"px-3 py-1 bg-blue-50 text-blue-600 rounded-lg text-[10px] font-black uppercase tracking-widest",children:X.length})]}),e.jsx("div",{className:"flex bg-gray-50 p-1 rounded-2xl border border-gray-100",children:["All","Open","In Progress","Resolved"].map(t=>e.jsx("button",{onClick:()=>tt(t),className:`flex-1 py-2.5 rounded-xl text-[9px] font-black uppercase tracking-widest transition-all ${E===t?"bg-white text-blue-600 shadow-sm border border-gray-100":"text-gray-400 hover:text-gray-600"}`,children:t},t))})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-3 custom-scrollbar",children:et?e.jsx("div",{className:"py-20 text-center",children:e.jsx("div",{className:"w-8 h-8 border-4 border-blue-600/10 border-t-blue-600 rounded-full animate-spin mx-auto"})}):(()=>{const t=E==="All"?X:X.filter(s=>s.status===E);return t.length===0?e.jsxs("div",{className:"py-20 text-center text-gray-400 font-bold italic",children:["No ",E==="All"?"":E," tickets found"]}):t.map(s=>{var r;return e.jsxs("div",{onClick:()=>we(s),className:`p-6 rounded-[32px] cursor-pointer transition-all border ${(i==null?void 0:i.id)===s.id?"bg-blue-600 border-transparent shadow-xl shadow-blue-500/20 text-white":"bg-white border-gray-100 hover:border-blue-200"}`,children:[e.jsxs("div",{className:"flex justify-between items-start mb-3",children:[e.jsxs("span",{className:`px-2 py-0.5 rounded text-[8px] font-black uppercase tracking-widest ${(i==null?void 0:i.id)===s.id?"bg-white/20 text-white":s.priority==="High"?"bg-red-50 text-red-500":"bg-blue-50 text-blue-600"}`,children:[s.priority," Priority"]}),e.jsx("span",{className:`text-[9px] font-bold ${(i==null?void 0:i.id)===s.id?"text-white/60":"text-gray-400"}`,children:(r=s.createdAt)!=null&&r.toLocaleDateString?s.createdAt.toLocaleDateString():"Today"})]}),e.jsx("h4",{className:"font-black text-[14px] mb-1 line-clamp-1",children:s.subject}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:`w-1.5 h-1.5 rounded-full ${s.status==="Open"?"bg-emerald-500":s.status==="In Progress"?"bg-orange-400":s.status==="Resolved"?"bg-blue-400":"bg-gray-400"}`}),e.jsx("p",{className:`text-[10px] font-black uppercase tracking-widest ${(i==null?void 0:i.id)===s.id?"text-white/80":"text-gray-500"}`,children:s.status})]})]},s.id)})})()})]}),e.jsx("div",{className:"flex-1 bg-white rounded-[40px] border border-gray-100 shadow-sm p-10 flex flex-col overflow-hidden",children:i?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-start justify-between mb-8 pb-8 border-b border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"w-20 h-20 rounded-[32px] bg-blue-50 flex items-center justify-center text-blue-600 font-black text-3xl shadow-inner",children:((Se=i.studentName)==null?void 0:Se.charAt(0))||"S"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] font-black text-blue-600 uppercase tracking-[0.2em] mb-2",children:i.category}),e.jsx("h2",{className:"text-3xl font-black text-gray-900 tracking-tight leading-none mb-2",children:i.subject}),e.jsxs("div",{className:"flex items-center gap-4 text-gray-500 text-xs font-bold",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(Y,{size:14})," ",i.studentName]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(V,{size:14})," ",i.studentEmail]})]})]})]}),e.jsx("div",{className:"flex gap-2",children:e.jsxs("button",{onClick:()=>q({id:i.studentId,fullName:i.studentName,email:i.studentEmail}),className:"px-8 py-4 bg-blue-600 text-white rounded-2xl font-black uppercase text-[10px] tracking-widest hover:bg-blue-700 transition-all shadow-xl shadow-blue-500/20 flex items-center gap-3",children:[e.jsx(W,{size:16})," Open Support Chat"]})})]}),e.jsx("div",{className:"flex-1 overflow-y-auto px-4 custom-scrollbar",children:e.jsxs("div",{className:"p-8 mt-6 bg-gray-50 rounded-[32px] border border-gray-100 italic relative",children:[e.jsx("div",{className:"absolute -top-3 left-8 px-4 py-1 bg-white border border-gray-100 rounded-full text-[9px] font-black uppercase tracking-widest text-gray-400",children:"Student Issue Description"}),e.jsx("p",{className:"text-gray-700 font-bold leading-relaxed whitespace-pre-wrap",children:i.message})]})}),e.jsxs("div",{className:"pt-8 border-t border-gray-100 flex items-center justify-between",children:[e.jsx("div",{className:"flex gap-3",children:["Open","In Progress","Resolved","Closed"].map(t=>e.jsx("button",{onClick:async()=>{try{const s=Q(m,"support_tickets",i.id);await Ee(s,{status:t,updatedAt:Pe()}),we({...i,status:t}),je(r=>r.map(n=>n.id===i.id?{...n,status:t}
1:n)),u.success("Status Updated",`Ticket marked as ${t}`)}catch{u.error("Error","Failed to update ticket status")}},className:`px-6 py-3 rounded-xl font-black uppercase text-[9px] tracking-widest transition-all ${i.status===t?"bg-gray-900 text-white shadow-xl shadow-blue-200":"bg-gray-50 text-gray-400 hover:text-gray-900"}`,children:t},t))}),e.jsxs("p",{className:"text-[9px] font-black text-gray-300 uppercase tracking-[0.2em]",children:["Reference: ID-",i.id.slice(-6).toUpperCase()]})]})]}):e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center opacity-30",children:[e.jsx("div",{className:"w-32 h-32 bg-gray-50 rounded-[44px] flex items-center justify-center mb-8",children:e.jsx(H,{size:64,className:"text-gray-300"})}),e.jsx("h3",{className:"text-2xl font-black text-gray-900 tracking-tight",children:"Select a Ticket"}),e.jsx("p",{className:"text-gray-500 font-bold max-w-xs mx-auto text-sm italic",children:"Review and prioritize student platform issues from the global support queue."})]})})]}),d==="Contact Queries"&&e.jsxs("div",{className:"h-[calc(100vh-14rem)] flex gap-8 animate-enter",children:[e.jsxs("div",{className:"w-full lg:w-1/3 bg-white rounded-[40px] border border-gray-100 shadow-sm flex flex-col overflow-hidden",children:[e.jsxs("div",{className:"p-8 border-b border-gray-50",children:[e.jsx("h3",{className:"text-2xl font-black text-gray-900 tracking-tight mb-2",children:"Web Inquiries"}),e.jsxs("div",{className:"relative",children:[e.jsx(Fe,{className:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-400",size:16}),e.jsx("input",{type:"text",placeholder:"Filter queries...",className:"w-full pl-12 pr-4 py-3 bg-gray-50 border border-transparent rounded-2xl text-sm font-bold focus:bg-white focus:border-blue-200 outline-none transition-all"})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-2 custom-scrollbar",children:Ze?e.jsx("div",{className:"py-10 text-center",children:e.jsx("div",{className:"w-8 h-8 border-2 border-blue-600 border-t-transparent rounded-full animate-spin mx-auto"})}):be.length===0?e.jsx("div",{className:"py-10 text-center text-gray-400 italic",children:"No inquiries found."}):be.map(t=>{var s;return e.jsxs("div",{onClick:()=>ge(t),className:`p-5 rounded-3xl cursor-pointer transition-all border ${(c==null?void 0:c.id)===t.id?"bg-blue-600 text-white shadow-xl shadow-blue-200 border-transparent":"bg-white border-gray-50 hover:bg-gray-50 hover:border-gray-200"}`,children:[e.jsxs("div",{className:"flex justify-between items-start mb-2",children:[e.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest ${(c==null?void 0:c.id)===t.id?"text-blue-200":"text-blue-600"}`,children:t.status||"new"}),e.jsx("span",{className:`text-[10px] font-bold ${(c==null?void 0:c.id)===t.id?"text-blue-100":"text-gray-400"}`,children:(s=t.submittedAt)!=null&&s.toLocaleDateString?t.submittedAt.toLocaleDateString():"Today"})]}),e.jsx("h4",{className:`font-black text-sm mb-1 ${(c==null?void 0:c.id)===t.id?"text-white":"text-gray-900"}`,children:t.subject}),e.jsx("p",{className:`text-xs font-medium truncate ${(c==null?void 0:c.id)===t.id?"text-blue-100":"text-gray-500"}`,children:t.name})]},t.id)})})]}),e.jsx("div",{className:"flex-1 bg-white rounded-[40px] border border-gray-100 shadow-sm p-10 flex flex-col",children:c?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-start justify-between mb-8 pb-8 border-b border-gray-50",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-white text-2xl font-black shadow-lg shadow-blue-200",children:c.name.charAt(0)}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-black text-gray-900 mb-1",children:c.subject}),e.jsxs("div",{className:"flex items-center gap-2 text-gray-500 text-sm font-bold",children:[e.jsx(V,{size:14})," ",c.email]})]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("button",{className:"p-3 rounded-xl bg-gray-50 text-gray-400 hover:text-red-500 hover:bg-red-50 transition-all outline-none",children:e.jsx(yt,{size:20})}),e.jsx("button",{className:"px-6 py-3 bg-blue-600 text-white rounded-xl font-black uppercase text-xs tracking-widest hover:bg-blue-700 transition-all shadow-lg shadow-blue-200",children:"Reply via Email"})]})]}),e.jsx("div",{className:"flex-1 overflow-y-auto",children:e.jsxs("p",{className:"text-gray-800 font-medium leading-loose text-lg whitespace-pre-wrap italic",children:['"',c.message,'"']})}),e.jsx("div",{className:"pt-8 border-t border-gray-50 grid grid-cols-3 gap-4",children:["new","in-progress","resolved"].map(t=>e.jsxs("button",{onClick:async()=>{const s={...c,status:t};ge(s),U(r=>r.map(n=>n.id===s.id?s:n));try{const r=Q(m,"contact_submissions",c.id);await Ee(r,{status:t}
1),u.success("Status Updated",`Query marked as ${t}`)}catch{}},className:`py-3 rounded-xl font-black uppercase text-[10px] tracking-widest border transition-all ${c.status===t?"bg-gray-900 text-white border-gray-900":"bg-white border-gray-200 text-gray-400 hover:border-gray-900 hover:text-gray-900"}`,children:["Mark as ",t]},t))})]}):e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center opacity-40",children:[e.jsx(V,{size:64,className:"text-gray-300 mb-4"}),e.jsx("h3",{className:"text-xl font-black text-gray-900",children:"Select an Inquiry"}),e.jsx("p",{className:"text-gray-500 font-bold text-sm italic",children:"Manage web form submissions and leads here."})]})})]}),d!=="Support Inbox"&&d!=="Students Registry"&&d!=="Contact Queries"&&d!=="Support Tickets"&&e.jsxs("div",{className:"h-[calc(100vh-14rem)] flex flex-col items-center justify-center bg-white rounded-[40px] border border-gray-100",children:[e.jsx(Z,{size:48,className:"text-blue-100 mb-4"}),e.jsx("h3",{className:"text-xl font-black text-gray-900 uppercase tracking-widest",children:"Module under maintenance"}),e.jsx("p",{className:"text-gray-400 font-bold mt-2",children:"Enhanced security features are coming soon."})]})]}),o&&e.jsxs("div",{className:"fixed inset-0 z-[100] overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute inset-0 bg-gray-900/60 backdrop-blur-sm pointer-events-auto animate-fade-in",onClick:()=>M(null)}),e.jsx("div",{className:"absolute inset-y-0 right-0 w-full max-w-2xl bg-[#fbfcfd] shadow-2xl pointer-events-auto animate-slide-left border-l border-gray-100",children:e.jsxs("div",{className:"h-full flex flex-col",children:[e.jsxs("div",{className:"p-10 pb-6 flex items-center justify-between border-b border-gray-100 bg-white",children:[e.jsxs("div",{className:"flex items-center gap-6",children:[e.jsx("div",{className:"w-16 h-16 rounded-[24px] bg-blue-600 flex items-center justify-center text-white text-3xl font-black shadow-lg shadow-blue-500/20",children:(Ce=o.fullName)==null?void 0:Ce.charAt(0)}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-3xl font-black text-gray-900 tracking-tight",children:o.fullName}),e.jsx("p",{className:"text-[10px] font-black text-blue-600 uppercase tracking-widest mt-1",children:"Academic Profile Verified"})]})]}),e.jsx("button",{onClick:()=>M(null),className:"w-12 h-12 rounded-2xl bg-gray-50 text-gray-400 hover:text-gray-900 transition-all flex items-center justify-center hover:bg-gray-100",children:e.jsx(qe,{size:24})})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-10 space-y-12 no-scrollbar",children:[e.jsxs("section",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(wt,{size:16,className:"text-blue-600"}),e.jsx("h3",{className:"text-[11px] font-black text-gray-400 uppercase tracking-[0.2em]",children:"Platform Identity"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"p-6 bg-white rounded-3xl border border-gray-100 shadow-sm group hover:border-blue-200 transition-all cursor-pointer relative overflow-hidden",onClick:()=>{navigator.clipboard.writeText(o.email),u.success("Email Copied","Address saved to clipboard")},children:[e.jsx("div",{className:"absolute top-0 right-0 p-3 opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx("div",{className:"bg-blue-50 text-blue-600 p-1.5 rounded-lg",children:e.jsx(H,{size:12})})}),e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest mb-2",children:"Primary Email"}),e.jsx("p",{className:"text-sm font-bold text-gray-900 italic truncate pr-4",title:o.email,children:o.email})]}),e.jsxs("div",{className:"p-6 bg-white rounded-3xl border border-gray-100 shadow-sm group hover:border-blue-200 transition-all cursor-pointer relative overflow-hidden",onClick:()=>{navigator.clipboard.writeText(o.id),u.success("ID Copied","Member reference saved to clipboard")},children:[e.jsx("div",{className:"absolute top-0 right-0 p-3 opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx("div",{className:"bg-blue-50 text-blue-600 p-1.5 rounded-lg",children:e.jsx(H,{size:12})})}),e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest mb-2",children:"Member Reference"}),e.jsxs("p",{className:"text-xs font-black text-blue-600 font-mono truncate pr-4",title:o.id,children:["#",o.id.toUpperCase()]})]})]})]}),e.jsxs("section",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(se,{size:16,className:"text-blue-600"}),e.jsx("h3",{className:"text-[11px] font-black text-gray-400 uppercase tracking-[0.2em]",children:"Academic Pulse"})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[e.jsxs("div",{className:"p-8 bg-blue-600 text-white rounded-[32px] shadow-xl shadow-blue-500/20",children:[e.jsx(se,{size:24,className:"mb-4 opacity-60"}),e.jsx("p",{className:"text-[9px] font-black uppercase tracking-widest opacity-80 mb-1",children:"Learning Progress"}),e.jsxs("p",{className:"text-3xl font-black",children:[Ye,"%"]})]}),e.jsxs("div",{className:"p-8 bg-white text-gray-900 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsx(ae,{size:24,className:"mb-4 text-emerald-500"}),e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest mb-1",children:"Certifications"}),e.jsx("p",{className:"text-3xl font-black",children:Ke.length})]}),e.jsxs("div",{className:"p-8 bg-white text-gray-900 rounded-[32px] border border-gray-100 shadow-sm",children:[e.jsx(Nt,{size:24,className:"mb-4 text-orange-500"}),e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest mb-1",children:"Join Date"}),e.jsx("p",{className:"text-sm font-black uppercase mt-3",children:(Ae=o.createdAt)!=null&&Ae.toDate?o.createdAt.toDate().toLocaleDateString("en-US",{month:"short",year:"numeric"}):o.createdAt?new Date(o.createdAt).toLocaleDateString("en-US",{month:"short",year:"numeric"}):"OCT 2023"})]})]})]}),e.jsxs("section",{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(se,{size:16,className:"text-blue-600"}),e.jsx("h3",{className:"text-[11px] font-black text-gray-400 uppercase tracking-[0.2em]",children:"Recent Activity"})]}),e.jsx("div",{className:"space-y-4",children:pe.length>0?pe.map((t,s)=>e.jsxs("div",{className:"flex items-center gap-6 p-6 bg-white rounded-3xl border border-gray-100/50 group hover:border-blue-100 transition-all",children:[e.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center transition-all ${t.type==="quiz"?"bg-emerald-50 text-emerald-600 group-hover:bg-emerald-600":t.type==="cert"?"bg-purple-50 text-purple-600 group-hover:bg-purple-600":"bg-blue-50 text-blue-600 group-hover:bg-blue-600"} group-hover:text-white`,children:t.type==="quiz"?e.jsx(ae,{size:16}):t.type==="cert"?e.jsx(ae,{size:16}):e.jsx(ee,{size:16})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"text-xs font-black text-gray-900",children:t.event}),e.jsx("p",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest",children:t.meta})]}),e.jsx("div",{className:"text-right",children:e.jsx("p",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest",children:t.time})})]},s)):e.jsx("div",{className:"p-12 text-center bg-gray-50/50 rounded-[32px] border border-dashed border-gray-200",children:e.jsx("p",{className:"text-[10px] font-black text-gray-400 uppercase tracking-widest italic",children:"No recent platform interactions foun
1d."})})})]})]}),e.jsxs("div",{className:"p-10 bg-white border-t border-gray-100 flex items-center gap-4",children:[e.jsx("button",{onClick:()=>{q(o),M(null)},className:"flex-1 py-5 bg-blue-600 text-white rounded-[24px] font-black uppercase text-[10px] tracking-[0.2em] hover:bg-black transition-all shadow-2xl shadow-blue-500/20 active:scale-95",children:"Initiate Priority Support"}),e.jsx("button",{className:"w-16 h-16 rounded-[24px] bg-gray-50 text-gray-400 hover:text-gray-900 border border-gray-100 flex items-center justify-center transition-all",children:e.jsx(Z,{size:24})})]})]})})]})]}),re&&e.jsx("div",{className:"fixed inset-0 bg-gray-900/60 backdrop-blur-sm z-[60] lg:hidden animate-fade-in",onClick:()=>A(!1),children:e.jsxs("div",{className:"w-80 h-full bg-[#0f172a] p-8 shadow-2xl animate-slide-right",children:[e.jsxs("div",{className:"flex items-center justify-between mb-12",children:[e.jsx("img",{src:Ue,alt:"AiCure",className:"h-8 brightness-0 invert"}),e.jsx("button",{onClick:()=>A(!1),className:"text-gray-400 hover:text-white",children:e.jsx(qe,{size:24})})]}),e.jsx("nav",{className:"space-y-4",children:Ne.map(t=>e.jsxs("button",{onClick:()=>{C(t.label),A(!1)},className:`w-full flex items-center gap-4 p-5 rounded-[24px] transition-all ${d===t.label?"bg-blue-600 text-white shadow-2xl shadow-blue-500/30":"text-gray-400 hover:text-white"}`,children:[e.jsx(t.icon,{size:24}),e.jsx("span",{className:"font-black uppercase text-[11px] tracking-widest",children:t.label})]},t.label))})]})})]})}export{Dt 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.