T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.ca/private_html/.next/server/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.ca/private_html/.next/server/chunks/769.js
"use strict";exports.id=769,exports.ids=[769],exports.modules={13213:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(72386).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},31696:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.d(s,{A:()=>j});var l=t(8732),i=t(82015),c=t(63220),n=t(9741),d=t(71335),r=t(30703),x=t(4722),m=t(91115),o=t(33621),h=e([c,m,o]);[c,m,o]=h.then?(await h)():h;let j=({isOpen:e,onClose:s,route:t,title:a})=>{let{data:h}=(0,x.useSession)(),[j,u]=(0,i.useState)(null),[p,y]=(0,i.useState)(!1),[N,b]=(0,i.useState)(null);(0,i.useEffect)(()=>{e&&t&&g()},[e,t]);let g=async()=>{y(!0),b(null);try{let e={"/lawyer/cases":v,"/lawyer/consultations":f,"/lawyer/team":w,"/lawyer/calendar":A,"/lawyer/analytics":C,"/lawyer/clients":S,"/lawyer/profile":M,"/lawyer/applications":I,"/client/cases":k,"/client/documents":E,"/client/payments":D,"/client/messages":P,"/admin/users":R,"/admin/cases":U,"/admin/registrations":T,"/admin/analytics":L,"/admin/settings":V,"/client/applications":K,"/client/applications/full":J,"/hire/new-case":Z}[t];if(e){let s=await e();u(s)}else b("Content not available for this route")}catch(e){console.error("Error loading modal content:",e),b("Failed to load content")}finally{y(!1)}},v=async()=>{let e=await fetch("/api/lawyer/cases"),s=await e.json();return{title:"My Cases",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Cases"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View All"})]}),(0,l.jsx)("div",{className:"space-y-3",children:s.cases?.slice(0,5).map(e=>(0,l.jsx)("div",{className:"border rounded-lg p-4 hover:bg-gray-50",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:e.title}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:e.status})]}),(0,l.jsx)("span",{className:`px-2 py-1 text-xs rounded-full ${"ACTIVE"===e.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:e.status})]})},e.id))})]})}},f=async()=>({title:"Consultations",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Upcoming Consultations"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Schedule New"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Client Consultation"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Tomorrow at 2:00 PM"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800",children:"Scheduled"})]})})})]})}),w=async()=>({title:"Team Management",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Team"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Add Member"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"John Smith"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Associate Lawyer"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Active"})]})})})]})}),A=async()=>({title:"Calendar",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Today's Schedule"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Add Event"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Court Hearing"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"10:00 AM - 11:00 AM"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-red-100 text-red-800",children:"Urgent"})]})})})]})}),C=async()=>({title:"Analytics",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Performance Overview"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View Details"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:"border rounded-lg p-4 text-center",children:[(0,l.jsx)("div",{className:"text-2xl font-bold text-blue-600",children:"85%"}),(0,l.jsx)("div",{className:"text-sm text-gray-600",children:"Win Rate"})]}),(0,l.jsxs)("div",{className:"border rounded-lg p-4 text-center",children:[(0,l.jsx)("div",{className:"text-2xl font-bold text-green-600",children:"24"}),(0,l.jsx)("div",{className:"text-sm text-gray-600",children:"Active Cases"})]})]})]})}),S=async()=>({title:"My Clients",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Client List"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Add Client"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Sarah Johnson"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Civil Litigation"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Active"})]})})})]})}),M=async()=>({title:"Profile",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)("div",{className:"w-20 h-20 bg-gray-300 rounded-full mx-auto mb-4"}),(0,l.jsx)("h3",{className:"text-lg font-semibold",children:h?.user?.name}),(0,l.jsx)("p",{className:"text-gray-600",children:h?.user?.email})]}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("button",{className:"w-full text-left p-3 border rounded-lg hover:bg-gray-50",children:"Edit Profile"}),(0,l.jsx)("button",{className:"w-full text-left p-3 border rounded-lg hover:bg-gray-50",children:"Change Password"}),(0,l.jsx)("button",{className:"w-full text-left p-3 border rounded-lg hover:bg-gray-50",children:"Notification Settings"})]})]})}),k=async()=>{let e=await fetch("/api/client/cases"),s=await e.json();return{title:"My Cases",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Cases"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View All"})]}),(0,l.jsx)("div",{className:"space-y-3",children:s.cases?.slice(0,5).map(e=>(0,l.jsx)("div",{className:"border rounded-lg p-4 hover:bg-gray-50",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:e.title}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:e.status})]}),(0,l.jsx)("span",{className:`px-2 py-1 text-xs rounded-full ${"ACTIVE"===e.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"}`,children:e.status})]})},e.id))})]})}},E=async()=>({title:"Documents",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Documents"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Upload New"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Legal Document.pdf"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Uploaded 2 days ago"})]}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Download"})]})})})]})}),D=async()=>({title:"Payments",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"Payment History"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Make Payment"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Legal Services"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"$500.00"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Paid"})]})})})]})}),P=async()=>({title:"Messages",component:(0,l.jsx)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:(0,l.jsx)(o.default,{})})}),R=async()=>({title:"User Management",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"All Users"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Add User"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"John Doe"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Client"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Active"})]})})})]})}),U=async()=>({title:"Case Management",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"All Cases"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Create Case"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Bordeaux Prison Case"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Active"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Active"})]})})})]})}),T=async()=>({title:"Registrations",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"All Registrations"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View All"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Case Registration"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Pending Review"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800",children:"Pending"})]})})})]})}),L=async()=>({title:"Admin Analytics",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"System Overview"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Export Report"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,l.jsxs)("div",{className:"border rounded-lg p-4 text-center",children:[(0,l.jsx)("div",{className:"text-2xl font-bold text-blue-600",children:"1,234"}),(0,l.jsx)("div",{className:"text-sm text-gray-600",children:"Total Users"})]}),(0,l.jsxs)("div",{className:"border rounded-lg p-4 text-center",children:[(0,l.jsx)("div",{className:"text-2xl font-bold text-green-600",children:"567"}),(0,l.jsx)("div",{className:"text-sm text-gray-600",children:"Active Cases"})]})]})]})}),V=async()=>({title:"Settings",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"System Settings"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Save Changes"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Email Notifications"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Enable email alerts"})]}),(0,l.jsx)("input",{type:"checkbox",className:"rounded",defaultChecked:!0})]})})})]})}),I=async()=>({title:"My Applications",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Applications"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View All"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Bordeaux Prison Case"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Submitted 2 days ago"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800",children:"Pending"})]})})})]})}),K=async()=>({title:"My Applications",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"My Applications"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"View All"})]}),(0,l.jsx)("div",{className:"space-y-3",children:(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Legal Consultation"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Submitted 1 day ago"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Approved"})]})})})]})}),J=async()=>({title:"All Applications",component:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:"All Applications"}),(0,l.jsx)("button",{className:"text-blue-600 hover:text-blue-800 text-sm",children:"Create New"})]}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Legal Consultation"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Submitted 1 day ago"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-green-100 text-green-800",children:"Approved"})]})}),(0,l.jsx)("div",{className:"border rounded-lg p-4",children:(0,l.jsxs)("div",{className:"flex justify-between items-start",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("h4",{className:"font-medium",children:"Case Review"}),(0,l.jsx)("p",{className:"text-sm text-gray-600",children:"Submitted 3 days ago"})]}),(0,l.jsx)("span",{className:"px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800",children:"Pending"})]})})]})]})}),Z=async()=>({title:"Create New Case",component:(0,l.jsx)("div",{className:"space-y-4",children:(0,l.jsx)(m.A,{})})});return e?(0,l.jsx)(c.AnimatePresence,{children:(0,l.jsx)(c.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",onClick:s,children:(0,l.jsxs)(c.motion.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.9,opacity:0},className:"bg-white rounded-lg shadow-xl max-w-2xl w-full max-h-[90vh] overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,l.jsx)("div",{className:"flex items-center justify-between p-6 border-b",children:(0,l.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,l.jsx)("button",{onClick:s,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:(0,l.jsx)(n.A,{className:"h-5 w-5"})}),(0,l.jsx)("h2",{className:"text-xl font-semibold",children:a||j?.title||"Dashboard"})]})}),(0,l.jsx)("div",{className:"p-6 overflow-y-auto max-h-[calc(90vh-120px)]",children:p?(0,l.jsxs)("div",{className:"flex items-center justify-center py-8",children:[(0,l.jsx)(d.A,{className:"h-8 w-8 animate-spin text-blue-600"}),(0,l.jsx)("span",{className:"ml-2 text-gray-600",children:"Loading..."})]}):N?(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("div",{className:"text-red-600 mb-2",children:"⚠️"}),(0,l.jsx)("p",{className:"text-gray-600",children:N}),(0,l.jsx)("button",{onClick:g,className:"mt-4 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Try Again"})]}):j?j.component:(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)(r.A,{className:"h-12 w-12 text-gray-400 mx-auto mb-4"}),(0,l.jsx)("p",{className:"text-gray-600",children:"No content available"})]})})]})})}):null};a()}catch(e){a(e)}})},33621:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{default:()=>u});var l=t(8732),i=t(82015),c=t(4722),n=t(3457),d=t(13820),r=t(22554),x=t(40128),m=t(13213),o=t(19918),h=t.n(o),j=e([n]);n=(j.then?(await j)():j)[0];let u=()=>{let{data:e,status:s}=(0,c.useSession)(),[t,a]=(0,i.useState)([]),[o,j]=(0,i.useState)(!0);return((0,d.lZ)([d.iK.USER,d.iK.CLIENT,d.iK.ADMIN,d.iK.SUPERADMIN,d.iK.SUPERADMIN],"/"),(0,i.useEffect)(()=>{a([{id:"1",sender:"Sarah Johnson",subject:"Welcome to the platform!",date:"2024-06-28T10:00:00Z",status:"UNREAD"},{id:"2",sender:"Michael Chen",subject:"Case Update: Employment Discrimination",date:"2024-06-27T14:30:00Z",status:"READ"},{id:"3",sender:"Admin",subject:"Your document has been verified",date:"2024-06-25T09:00:00Z",status:"READ"}]),j(!1)},[]),o)?(0,l.jsx)(n.default,{children:(0,l.jsx)("div",{className:"flex items-center justify-center min-h-screen",children:(0,l.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto"})})}):(0,l.jsx)(n.default,{children:(0,l.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Messages"}),(0,l.jsx)("div",{className:"bg-white rounded-lg shadow-sm border border-gray-200",children:0===t.length?(0,l.jsxs)("div",{className:"p-8 text-center text-gray-600",children:[(0,l.jsx)(r.A,{className:"h-12 w-12 mx-auto mb-4 text-gray-400"}),"No messages yet."]}):(0,l.jsxs)("table",{className:"min-w-full divide-y divide-gray-200",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Sender"}),(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Subject"}),(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Date"}),(0,l.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Status"}),(0,l.jsx)("th",{className:"px-6 py-3"})]})}),(0,l.jsx)("tbody",{className:"bg-white divide-y divide-gray-200",children:t.map(e=>(0,l.jsxs)("tr",{className:"UNREAD"===e.status?"bg-blue-50":"",children:[(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap font-medium text-gray-900",children:e.sender}),(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-gray-700",children:e.subject}),(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-gray-500",children:new Date(e.date).toLocaleDateString()}),(0,l.jsxs)("td",{className:"px-6 py-4 whitespace-nowrap flex items-center gap-2",children:["UNREAD"===e.status?(0,l.jsx)(x.A,{className:"h-5 w-5 text-blue-600"}):(0,l.jsx)(m.A,{className:"h-5 w-5 text-green-600"}),(0,l.jsx)("span",{children:e.status})]}),(0,l.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-right",children:(0,l.jsx)(h(),{href:`/messages/${e.id}`,className:"inline-flex items-center px-3 py-1 bg-primary text-white rounded hover:bg-primary-dark transition-colors",children:"View"})})]},e.id))})]})})]})})};a()}catch(e){a(e)}})},40341:(e,s,t)=>{t.d(s,{R:()=>l});var a=t(82015);let l=()=>{let[e,s]=(0,a.useState)(!1),[t,l]=(0,a.useState)(""),[i,c]=(0,a.useState)(),n=(0,a.useCallback)((e,t)=>{l(e),c(t),s(!0)},[]),d=(0,a.useCallback)(()=>{s(!1),l(""),c(void 0)},[]),r=(0,a.useCallback)((e,s)=>{n(e,s)},[n]);return{isModalOpen:e,currentRoute:t,modalTitle:i,openModal:n,closeModal:d,navigateToModal:r}}},41919:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(72386).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},74498:(e,s,t)=>{t.d(s,{A:()=>a});let a=(0,t(72386).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])}};

CasperSecurity Mini