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/151.js
"use strict";exports.id=151,exports.ids=[151],exports.modules={4659:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>m});var r=a(8732),l=a(82015),i=a(63220),n=a(65766),c=a(30703),d=a(60757),o=a(9741),x=e([i]);i=(x.then?(await x)():x)[0];let m=({onFileSelect:e,onRemoveFile:t,selectedFile:a,uploading:s,acceptedTypes:x="image/jpeg,image/jpg,image/png,image/gif,image/webp,image/bmp,image/svg+xml,application/pdf,.doc,.docx,.txt",maxSizeMB:m=10,className:h=""})=>{let[g,u]=(0,l.useState)(!1),[p,b]=(0,l.useState)(null),y=(0,l.useRef)(null),f=e=>{let t=1024*m*1024;if(e.size>t)return`File size must be less than ${m}MB`;let a=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/bmp","image/svg+xml"].includes(e.type)||/\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i.test(e.name),s=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","text/plain"].includes(e.type)||/\.(pdf|doc|docx|txt)$/i.test(e.name);return a||s?a&&e.size>5242880?"Images must be less than 5MB. Use image compression if needed.":null:"File type not supported. Please upload images (JPG, PNG, GIF, WebP, BMP, SVG) or documents (PDF, DOC, DOCX, TXT)"},j=(0,l.useCallback)(t=>{let a=f(t);if(a)return void b(a);b(null),e(t)},[e,m,x]),v=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation()},[]),N=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),e.dataTransfer?.items&&e.dataTransfer.items.length>0&&u(!0)},[]),w=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),u(!1)},[]),k=(0,l.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),u(!1),e.dataTransfer?.files&&e.dataTransfer.files.length>0){let t=e.dataTransfer.files[0];j(t)}},[j]),A=e=>{if(0===e)return"0 B";let t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(1))+" "+["B","KB","MB","GB"][t]};return(0,r.jsxs)("div",{className:`relative ${h}`,children:[(0,r.jsx)("input",{ref:y,type:"file",accept:x,onChange:e=>{let t=e.target.files?.[0];t&&j(t)},className:"hidden"}),!a&&(0,r.jsx)("button",{type:"button",onClick:()=>{y.current?.click()},disabled:s,className:"p-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"Attach file",children:(0,r.jsx)(d.A,{className:"w-5 h-5"})}),(0,r.jsx)(i.AnimatePresence,{children:a&&(0,r.jsx)(i.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute bottom-full right-0 mb-2 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg shadow-lg p-3 min-w-72",children:a.type.startsWith("image/")?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("img",{src:URL.createObjectURL(a),alt:a.name,className:"w-full max-w-64 max-h-32 object-cover rounded-lg border border-gray-200 dark:border-gray-600",onLoad:e=>{let t=e.target;setTimeout(()=>URL.revokeObjectURL(t.src),1e3)}}),(0,r.jsx)("button",{onClick:t,disabled:s,className:"absolute -top-2 -right-2 p-1 bg-red-500 hover:bg-red-600 text-white rounded-full shadow-lg disabled:opacity-50 disabled:cursor-not-allowed transition-colors",title:"Remove image",children:(0,r.jsx)(o.A,{className:"w-3 h-3"})})]}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:a.name}),(0,r.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:A(a.size)}),s&&(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5",children:(0,r.jsx)("div",{className:"bg-blue-500 h-1.5 rounded-full animate-pulse w-1/2"})}),(0,r.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Uploading..."})]})]})]}):(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"flex-shrink-0 text-gray-500 dark:text-gray-400",children:a.type.startsWith("image/")?(0,r.jsx)(n.A,{className:"w-5 h-5"}):(0,r.jsx)(c.A,{className:"w-5 h-5"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:a.name}),(0,r.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:A(a.size)}),s&&(0,r.jsxs)("div",{className:"mt-2",children:[(0,r.jsx)("div",{className:"w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1.5",children:(0,r.jsx)("div",{className:"bg-blue-500 h-1.5 rounded-full animate-pulse w-1/2"})}),(0,r.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400 mt-1",children:"Uploading..."})]})]}),(0,r.jsx)("button",{onClick:t,disabled:s,className:"flex-shrink-0 p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",title:"Remove file",children:(0,r.jsx)(o.A,{className:"w-4 h-4"})})]})})}),(0,r.jsx)(i.AnimatePresence,{children:p&&(0,r.jsxs)(i.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"absolute bottom-full right-0 mb-2 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg shadow-lg p-3 min-w-72",children:[(0,r.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:p}),(0,r.jsx)("button",{onClick:()=>b(null),className:"absolute top-2 right-2 p-1 text-red-400 hover:text-red-600 dark:hover:text-red-200",children:(0,r.jsx)(o.A,{className:"w-4 h-4"})})]})}),(0,r.jsx)(i.AnimatePresence,{children:g&&(0,r.jsx)(i.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-50 bg-black/20 flex items-center justify-center",onDragEnter:N,onDragLeave:w,onDragOver:v,onDrop:k,children:(0,r.jsxs)("div",{className:"bg-white dark:bg-gray-800 border-2 border-dashed border-blue-400 rounded-xl p-8 text-center max-w-md",children:[(0,r.jsx)(n.A,{className:"w-12 h-12 text-blue-500 mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Drop your file here"}),(0,r.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400 mt-2",children:[(0,r.jsx)("strong",{children:"Images:"})," JPG, PNG, GIF, WebP, BMP, SVG"]}),(0,r.jsxs)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:[(0,r.jsx)("strong",{children:"Documents:"})," PDF, DOC, DOCX, TXT"]}),(0,r.jsxs)("p",{className:"text-xs text-gray-400 dark:text-gray-500 mt-2",children:["Maximum size: ",m,"MB"]})]})})})]})};s()}catch(e){s(e)}})},42391:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>o});var r=a(8732),l=a(82015),i=a(63220),n=a(4722),c=a(42893),d=e([i,c]);[i,c]=d.then?(await d)():d;let o=({userId:e,isOpen:t,onClose:a,position:s="center",onStartDirectMessage:d})=>{let{data:o}=(0,n.useSession)(),[x,m]=(0,l.useState)(null),[h,g]=(0,l.useState)(!1),[u,p]=(0,l.useState)(null);(0,l.useEffect)(()=>{t&&e&&b()},[t,e]);let b=async()=>{g(!0),p(null);try{let t=await fetch(`/api/user/profile?userId=${e}`);if(t.ok){let e=await t.json();m(e)}else 403===t.status?p("This profile is private"):p("Failed to load profile")}catch(e){p("Error loading profile")}finally{g(!1)}},y=e=>{switch(e){case"Available":return"bg-green-400";case"Busy":return"bg-yellow-400";case"Away":return"bg-orange-400";case"Do Not Disturb":return"bg-red-400";default:return"bg-gray-400"}},f=e=>{if(!e)return!1;let t=new Date(e),a=new Date(Date.now()-3e5);return t>a};return t?(0,r.jsx)(i.AnimatePresence,{children:(0,r.jsxs)(i.motion.div,{initial:{opacity:0,scale:.9,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:10},className:`absolute top-full mt-2 ${{left:"right-0",right:"left-0",center:"left-1/2 transform -translate-x-1/2"}[s]} bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 w-80 max-w-sm`,style:{zIndex:99999},children:[(0,r.jsxs)("div",{className:"flex justify-between items-start p-4 border-b border-gray-200 dark:border-gray-700",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"User Profile"}),(0,r.jsx)("button",{onClick:a,className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,r.jsx)("div",{className:"p-4",children:h?(0,r.jsx)("div",{className:"flex items-center justify-center py-8",children:(0,r.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"})}):u?(0,r.jsxs)("div",{className:"text-center py-8",children:[(0,r.jsx)("div",{className:"text-gray-400 text-4xl mb-2",children:"\uD83D\uDD12"}),(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:u})]}):x?(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"w-16 h-16 rounded-full overflow-hidden bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center",children:x.profilePicture?(0,r.jsx)("img",{src:x.profilePicture,alt:x.name,className:"w-full h-full object-cover"}):(0,r.jsx)("span",{className:"text-white font-semibold text-xl",children:x.name.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2)})}),(0,r.jsx)("div",{className:"absolute -bottom-1 -right-1",children:(0,r.jsx)("div",{className:`w-4 h-4 rounded-full border-2 border-white ${f(x.lastActive)?"bg-green-400":y(x.availability)}`})})]}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("h4",{className:"font-semibold text-gray-900 dark:text-white truncate",children:x.name}),(0,r.jsx)("span",{className:"text-lg",children:(e=>{switch(e){case"ADMIN":return"⚖️";case"LAWYER":return"\uD83D\uDC69‍⚖️";default:return"\uD83D\uDC64"}})(x.role)})]}),(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:(e=>{switch(e){case"ADMIN":return"Legal Team";case"LAWYER":return"Lawyer";default:return"Client"}})(x.role)}),x.title&&(0,r.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-500 truncate",children:x.title}),(0,r.jsxs)("div",{className:"flex items-center space-x-2 mt-1",children:[(0,r.jsx)("div",{className:`w-2 h-2 rounded-full ${f(x.lastActive)?"bg-green-400":y(x.availability)}`}),(0,r.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:f(x.lastActive)?"Online":x.availability||(e=>{if(!e)return"Unknown";let t=new Date(e),a=new Date,s=Math.floor((a.getTime()-t.getTime())/6e4);return s<1?"Just now":s<60?`${s}m ago`:s<1440?`${Math.floor(s/60)}h ago`:t.toLocaleDateString()})(x.lastActive)})]})]})]}),x.bio&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h5",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"About"}),(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400 leading-relaxed",children:x.bio})]}),(x.specialization||x.yearsOfExperience||x.education)&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h5",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:"Professional"}),(0,r.jsxs)("div",{className:"space-y-1",children:[x.specialization&&(0,r.jsxs)("div",{className:"flex items-center text-sm",children:[(0,r.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Specialty:"}),(0,r.jsx)("span",{className:"text-gray-700 dark:text-gray-300",children:x.specialization})]}),x.yearsOfExperience&&(0,r.jsxs)("div",{className:"flex items-center text-sm",children:[(0,r.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Experience:"}),(0,r.jsxs)("span",{className:"text-gray-700 dark:text-gray-300",children:[x.yearsOfExperience," years"]})]}),x.officeLocation&&(0,r.jsxs)("div",{className:"flex items-center text-sm",children:[(0,r.jsx)("span",{className:"text-gray-500 dark:text-gray-400 w-20",children:"Location:"}),(0,r.jsx)("span",{className:"text-gray-700 dark:text-gray-300",children:x.officeLocation})]})]})]}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsx)("div",{className:"flex items-center space-x-2",children:(0,r.jsxs)("button",{onClick:()=>{x?.email&&(navigator.clipboard.writeText(x.email),c.default.success("Email copied to clipboard"))},className:"flex items-center space-x-2 text-sm text-blue-600 dark:text-blue-400 hover:underline",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 12a4 4 0 10-8 0 4 4 0 008 0zm0 0v1.5a2.5 2.5 0 005 0V12a9 9 0 10-9 9m4.5-1.206a8.959 8.959 0 01-4.5 1.207"})}),(0,r.jsx)("span",{children:x.email})]})}),(0,r.jsxs)("div",{className:"flex items-center space-x-3",children:[x.linkedinUrl&&(0,r.jsx)("button",{onClick:()=>{x?.linkedinUrl&&window.open(x.linkedinUrl,"_blank")},className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300",title:"LinkedIn Profile",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}),x.websiteUrl&&(0,r.jsx)("button",{onClick:()=>{x?.websiteUrl&&window.open(x.websiteUrl,"_blank")},className:"text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300",title:"Website",children:(0,r.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9v-9m0-9v9m0 9c-5 0-9-4-9-9s4-9 9-9"})})})]})]}),o?.user?.id!==x.id&&(0,r.jsx)("div",{className:"pt-3 border-t border-gray-200 dark:border-gray-700",children:(0,r.jsxs)("button",{onClick:()=>{x&&d&&(d(x.id,x.name),a())},className:"w-full bg-blue-600 text-white py-2 px-4 rounded-lg hover:bg-blue-700 transition-colors text-sm font-medium flex items-center justify-center space-x-2",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),(0,r.jsx)("span",{children:"Send Message"})]})})]}):(0,r.jsx)("div",{className:"text-center py-8",children:(0,r.jsx)("p",{className:"text-gray-600 dark:text-gray-400",children:"No profile data available"})})})]})}):null};s()}catch(e){s(e)}})},50927:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>d});var r=a(8732),l=a(82015),i=a(63220),n=e([i]);i=(n.then?(await n)():n)[0];let c={xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-10 h-10 text-base",lg:"w-12 h-12 text-lg",xl:"w-16 h-16 text-xl"},d=({user:e,size:t="md",showName:a=!1,showRole:s=!1,showTooltip:n=!1,showStatus:d=!1,clickable:o=!1,className:x="",onClick:m})=>{let[h,g]=(0,l.useState)(!1),[u,p]=(0,l.useState)(!1),b=e=>{switch(e){case"ADMIN":return"⚖️";case"LAWYER":return"\uD83D\uDC69‍⚖️";default:return"\uD83D\uDC64"}},y=e=>{switch(e){case"Available":return"bg-green-400";case"Busy":return"bg-yellow-400";case"Away":return"bg-orange-400";case"Do Not Disturb":return"bg-red-400";default:return"bg-gray-400"}},f=e=>e.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2),j=e=>{if(!e)return!1;let t=new Date(e),a=new Date(Date.now()-3e5);return t>a},v=(0,r.jsxs)("div",{className:`relative ${o?"cursor-pointer":""} ${x}`,children:[(0,r.jsxs)("div",{className:`${c[t]} rounded-full overflow-hidden bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center relative ${o?"hover:scale-105 transition-transform":""}`,onClick:()=>{m?m():n&&g(!h)},children:[e.profilePicture&&!u?(0,r.jsx)("img",{src:e.profilePicture,alt:e.name,className:"w-full h-full object-cover",onError:()=>p(!0),onLoad:()=>p(!1)}):(0,r.jsx)("span",{className:"text-white font-semibold",children:f(e.name)}),d&&(0,r.jsx)("div",{className:"absolute -bottom-0.5 -right-0.5",children:(0,r.jsx)("div",{className:`w-3 h-3 rounded-full border-2 border-white ${j(e.lastActive)?"bg-green-400":y(e.availability)}`})})]}),(0,r.jsx)(i.AnimatePresence,{children:h&&n&&(0,r.jsxs)(i.motion.div,{initial:{opacity:0,scale:.9,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.9,y:10},className:"absolute z-50 top-full mt-2 left-1/2 transform -translate-x-1/2 bg-white dark:bg-gray-800 rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 p-4 w-64",children:[(0,r.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-full overflow-hidden bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center flex-shrink-0",children:e.profilePicture&&!u?(0,r.jsx)("img",{src:e.profilePicture,alt:e.name,className:"w-full h-full object-cover",onError:()=>p(!0),onLoad:()=>p(!1)}):(0,r.jsx)("span",{className:"text-white font-semibold",children:f(e.name)})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,r.jsx)("h3",{className:"font-semibold text-gray-900 dark:text-white truncate",children:e.name}),(0,r.jsx)("span",{className:"text-sm",children:b(e.role)})]}),e.title&&(0,r.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400 truncate",children:e.title}),e.specialization&&(0,r.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-500 truncate",children:e.specialization}),(0,r.jsxs)("div",{className:"flex items-center space-x-2 mt-2",children:[(0,r.jsx)("div",{className:`w-2 h-2 rounded-full ${j(e.lastActive)?"bg-green-400":y(e.availability)}`}),(0,r.jsx)("span",{className:"text-xs text-gray-500 dark:text-gray-500",children:j(e.lastActive)?"Online":e.availability||(e=>{if(!e)return"Unknown";let t=new Date(e),a=new Date,s=Math.floor((a.getTime()-t.getTime())/6e4);return s<1?"Just now":s<60?`${s}m ago`:s<1440?`${Math.floor(s/60)}h ago`:t.toLocaleDateString()})(e.lastActive)})]}),e.bio&&(0,r.jsx)("p",{className:"text-xs text-gray-600 dark:text-gray-400 mt-2 line-clamp-2",children:e.bio})]})]}),(0,r.jsx)("button",{onClick:()=>g(!1),className:"absolute top-2 right-2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})})]});return a||s?(0,r.jsxs)("div",{className:`flex items-center space-x-2 ${x}`,children:[v,(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[a&&(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:e.name}),s&&(0,r.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400 truncate",children:[b(e.role)," ",(e=>{switch(e){case"ADMIN":return"Legal Team";case"LAWYER":return"Lawyer";default:return"Client"}})(e.role)]})]})]}):v};s()}catch(e){s(e)}})},60757:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(72386).A)("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]])},65766:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(72386).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])}};

CasperSecurity Mini