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.quebec/public_html/_next/static/chunks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.quebec/public_html/_next/static/chunks/9813-58acb8555e2e66c1.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9813],{498:(e,s,t)=>{t.d(s,{A:()=>l});let l=(0,t(11713).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"}]])},55851:(e,s,t)=>{t.d(s,{A:()=>l});let l=(0,t(11713).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"}]])},65104:(e,s,t)=>{t.d(s,{A:()=>l});let l=(0,t(11713).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},76382:(e,s,t)=>{t.d(s,{R:()=>a});var l=t(14232);let a=()=>{let[e,s]=(0,l.useState)(!1),[t,a]=(0,l.useState)(""),[i,n]=(0,l.useState)(),c=(0,l.useCallback)((e,t)=>{a(e),n(t),s(!0)},[]),d=(0,l.useCallback)(()=>{s(!1),a(""),n(void 0)},[]),r=(0,l.useCallback)((e,s)=>{c(e,s)},[c]);return{isModalOpen:e,currentRoute:t,modalTitle:i,openModal:c,closeModal:d,navigateToModal:r}}},87338:(e,s,t)=>{t.r(s),t.d(s,{default:()=>h});var l=t(37876),a=t(14232),i=t(10553),n=t(10799),c=t(34358),d=t(12347),r=t(25037),x=t(498),m=t(48230),o=t.n(m);let h=()=>{let{data:e,status:s}=(0,i.useSession)(),[t,m]=(0,a.useState)([]),[h,j]=(0,a.useState)(!0);return((0,c.lZ)([c.iK.USER,c.iK.CLIENT,c.iK.ADMIN,c.iK.SUPERADMIN,c.iK.SUPERADMIN],"/"),(0,a.useEffect)(()=>{m([{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)},[]),h)?(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)(d.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)(r.A,{className:"h-5 w-5 text-blue-600"}):(0,l.jsx)(x.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)(o(),{href:"/messages/".concat(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))})]})})]})})}},89215:(e,s,t)=>{t.d(s,{A:()=>h});var l=t(37876),a=t(14232),i=t(23042),n=t(67421),c=t(70672),d=t(7446),r=t(65390),x=t(10553),m=t(6068),o=t(87338);let h=e=>{let{isOpen:s,onClose:t,route:h,title:j}=e,{data:u}=(0,x.useSession)(),[p,N]=(0,a.useState)(null),[y,b]=(0,a.useState)(!1),[g,v]=(0,a.useState)(null);(0,a.useEffect)(()=>{s&&h&&f()},[s,h]);let f=async()=>{b(!0),v(null);try{let e={"/lawyer/cases":w,"/lawyer/consultations":A,"/lawyer/team":C,"/lawyer/calendar":S,"/lawyer/analytics":M,"/lawyer/clients":k,"/lawyer/profile":E,"/lawyer/applications":J,"/client/cases":P,"/client/documents":D,"/client/payments":R,"/client/messages":U,"/admin/users":T,"/admin/cases":L,"/admin/registrations":V,"/admin/analytics":I,"/admin/settings":K,"/client/applications":Z,"/client/applications/full":_,"/hire/new-case":z}[h];if(e){let s=await e();N(s)}else v("Content not available for this route")}catch(e){console.error("Error loading modal content:",e),v("Failed to load content")}finally{b(!1)}},w=async()=>{var e;let s=await fetch("/api/lawyer/cases"),t=await s.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:null==(e=t.cases)?void 0:e.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 ".concat("ACTIVE"===e.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"),children:e.status})]})},e.id))})]})}},A=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"})]})})})]})}),C=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"})]})})})]})}),S=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"})]})})})]})}),M=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"})]})]})]})}),k=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"})]})})})]})}),E=async()=>{var e,s;return{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:null==u||null==(e=u.user)?void 0:e.name}),(0,l.jsx)("p",{className:"text-gray-600",children:null==u||null==(s=u.user)?void 0:s.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"})]})]})}},P=async()=>{var e;let s=await fetch("/api/client/cases"),t=await s.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:null==(e=t.cases)?void 0:e.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 ".concat("ACTIVE"===e.status?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"),children:e.status})]})},e.id))})]})}},D=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"})]})})})]})}),R=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"})]})})})]})}),U=async()=>({title:"Messages",component:(0,l.jsx)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:(0,l.jsx)(o.default,{})})}),T=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"})]})})})]})}),L=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"})]})})})]})}),V=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"})]})})})]})}),I=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"})]})]})]})}),K=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})]})})})]})}),J=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"})]})})})]})}),Z=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"})]})})})]})}),_=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 s?(0,l.jsx)(i.N,{children:(0,l.jsx)(n.P.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:t,children:(0,l.jsxs)(n.P.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:t,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",children:(0,l.jsx)(c.A,{className:"h-5 w-5"})}),(0,l.jsx)("h2",{className:"text-xl font-semibold",children:j||(null==p?void 0:p.title)||"Dashboard"})]})}),(0,l.jsx)("div",{className:"p-6 overflow-y-auto max-h-[calc(90vh-120px)]",children:y?(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..."})]}):g?(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:g}),(0,l.jsx)("button",{onClick:f,className:"mt-4 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:"Try Again"})]}):p?p.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}}}]);

CasperSecurity Mini