1import{r as h,j as e,P as p,g as N,a as i,e as k}from"./index-1cf826c3.js";import{C}from"./Container-0495666d.js";import{R as u,C as c}from"./Col-56364f32.js";import{C as m}from"./Card-9f44b81d.js";import{C as g}from"./CardBody-4ee248c2.js";import{C as R}from"./CardHeader-89245433.js";import{C as b}from"./CardTitle-fda4c374.js";import{U as S}from"./user-472d2a40.js";import{C as j}from"./check-circle-d420bee4.js";import{C as z}from"./clock-30800bc6.js";import{T}from"./trending-up-f9bd777d.js";import{C as W}from"./calendar-0b0c4772.js";typeof globalThis<"u"&&typeof globalThis.global>"u"&&(globalThis.global=globalThis);function H(r,l){if(r==null)return{};var s=P(r,l),n,t;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(t=0;t<o.length;t++)n=o[t],!(l.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(s[n]=r[n])}return s}function P(r,l){if(r==null)return{};var s={},n=Object.keys(r),t,o;for(o=0;o<n.length;o++)t=n[o],!(l.indexOf(t)>=0)&&(s[t]=r[t]);return s}var f=h.forwardRef(function(r,l){var s=r.color,n=s===void 0?"currentColor":s,t=r.size,o=t===void 0?24:t,d=H(r,["color","size"]);return e("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...d,children:e("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})});f.propTypes={color:p.string,size:p.oneOfType([p.string,p.number])};f.displayName="Activity";const O=f,M=()=>{const[r,l]=h.useState(null),[s,n]=h.useState(!0);h.useEffect(()=>{const a=N();a!==null&&l(a),n(!1)},[]);const t={activeProjects:3,completedTasks:12,pendingReviews:2,totalHours:45},o=[{id:1,action:"Completed CTD Module 3 review",time:"2 hours ago",type:"success"},{id:2,action:"Started new biomedical analysis",time:"5 hours ago",type:"info"},{id:3,action:"Submitted regulatory document",time:"1 day ago",type:"warning"},{id:4,action:"Joined project collaboration",time:"2 days ago",type:"primary"}],d=({title:a,value:x,icon:y,gradient:v,description:w})=>e(m,{className:"border-0 shadow-sm h-100",style:{borderRadius:"12px"},children:i(g,{className:"p-4",children:[i("div",{className:"d-flex align-items-center mb-3",children:[e("div",{style:{width:"48px",height:"48px",background:v,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(24, 72, 116, 0.2)",marginRight:"12px"},children:e(y,{size:24,className:"text-white"})}),e("div",{children:e(b,{tag:"h6",className:"mb-0",style:{color:"#184874",fontWeight:"600"},children:a})})]}),i("div",{className:"mb-2",children:[e("h3",{className:"mb-1",style:{color:"#184874",fontSize:"2rem",fontWeight:"700"},children:x}),e("p",{className:"text-muted mb-0",style:{fontSize:"0.875rem",fontWeight:"500"},children:w})]})]})});return i(C,{fluid:!0,className:"py-4",children:[e(m,{className:"shadow-sm mb-4 border-0 overflow-hidden",style:{borderRadius:"12px"},children:i("div",{className:"text-white",style:{background:"linear-gradient(135deg, #184874 0%, #1a5a8f 100%)",position:"relative",overflow:"hidden"},children:[e("div",{style:{position:"absolute",top:"-50px",right:"-50px",width:"200px",height:"200px",background:"rgba(255, 255, 255, 0.05)",borderRadius:"50%"}}),e("div",{style:{position:"absolute",bottom:"-30px",left:"-30px",width:"150px",height:"150px",background:"rgba(255, 255, 255, 0.03)",borderRadius:"50%"}}),i("div",{className:"d-flex align-items-stretch",style:{position:"relative",zIndex:1},children:[e("div",{style:{width:"6px",backgroundColor:"#ff9f43",borderRadius:"12px 0 0 12px"}}),e("div",{className:"flex-grow-1 p-4",children:i("div",{className:"d-flex align-items-start justify-content-between mb-3",children:[i("div",{className:"d-flex align-items-center",children:[e("div",{style:{width:"40px",height:"40px",background:"rgba(255,255,255,0.2)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",backdropFilter:"blur(10px)",border:"1px solid rgba(255,255,255,0.3)",marginRight:"12px"},children:e(S,{size:24})}),i("div",{children:[i("h3",{className:"mb-0 fw-bold text-white",style:{fontSize:"1.75rem",letterSpacing:"-0.02em",lineHeight:"1.2"},children:["Welcome, ",(r==null?void 0:r.fullname)||"User","!"]}),e("p",{className:"mb-0 text-white",style:{opacity:.95,fontSize:"1rem",lineHeight:"1.6",fontWeight:"400"},children:"Your personal dashboard and workspace overview"})]})]}),e("div",{className:"d-flex align-items-center gap-3",children:i("div",{className:"d-flex gap-3",children:[i("div",{className:"text-center",style:{padding:"0 10px"},children:[e("div",{style:{fontSize:"1.5rem",fontWeight:"bold",lineHeight:1,color:"white"},children:t.activeProjects}),e("div",{style:{fontSize:"0.75rem",opacity:.8,textTransform:"uppercase",letterSpacing:"0.5px"},children:"Active Projects"})]}),i("div",{className:"text-center",style:{padding:"0 10px"},children:[e("div",{style:{fontSize:"1.5rem",fontWeight:"bold",lineHeight:1,color:"white"},children:t.completedTasks}),e("div",{style:{fontSize:"0.75rem",opacity:.8,textTransform:"uppercase",letterSpacing:"0.5px"},children:"Completed"})]}),i("div",{className:"text-center",style:{padding:"0 10px"},children:[e("div",{style:{fontSize:"1.5rem",fontWeight:"bold",lineHeight:1,color:"white"},children:t.totalHours}),e("div",{style:{fontSize:"0.75rem",opacity:.8,textTransform:"uppercase",letterSpacing:"0.5px"},children:"Hours"})]})]})})]})})]})]})}),s?e(u,{className:"mb-4",children:[1,2,3,4].map(a=>e(c,{md:3,children:e(m,{className:"border-0 shadow-sm h-100",style:{borderRadius:"12px"},children:i(g,{className:"p-4",children:[i("div",{className:"d-flex align-items-center mb-3",children:[e("div",{style:{width:"48px",height:"48px",background:"linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%)",borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",animation:"pulse 1.5s ease-in-out infinite",marginRight:"12px"}}),e("div",{style:{height:"1.5rem",width:"120px",background:"linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)",borderRadius:"6px",animation:"pulse 1.5s ease-in-out infinite"}})]}),e("div",{style:{height:"2rem",width:"80px",background:"linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%)",borderRadius:"8px",marginBottom:"0.5rem",animation:"pulse 1.5s ease-in-out infinite"}})]})})},a))}):i(u,{className:"mb-4",children:[e(c,{md:3,children:e(d,{title:"Active Projects",value:t.activeProjects,icon:O,gradient:"linear-gradient(135deg, #184874 0%, #1a5a8f 100%)",description:"Currently working on"})}),e(c,{md:3,children:e(d,{title:"Completed Tasks",value:t.completedTasks,icon:j,gradient:"linear-gradient(135deg, #28a745 0%, #20c997 100%)",description:"Successfully finished"})}),e(c,{md:3,children:e(d,{title:"Pending Reviews",value:t.pendingReviews,icon:z,gradient:"linear-gradient(135deg, #ffc107 0%, #fd7e14 100%)",description:"Awaiting approval"})}),e(c,{md:3,children:e(d,{title:"Total Hours",value:t.totalHours,icon:T,gradient:"linear-gradient(135deg, #17a2b8 0%, #138496 100%)",description:"This month"})})]}),i(m,{className:"shadow-sm",style:{borderRadius:"12px",border:"none"},children:[e(R,{style:{background:"linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%)",borderBottom:"1px solid #dee2e6",borderRadius:"12px 12px 0 0"},children:i("div",{className:"d-flex align-items-center",children:[e("div",{style:{width:"32px",height:"32px",background:"linear-gradient(135deg, #184874 0%, #1a5a8f 100%)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px"},children:e(W,{size:16,className:"text-white"})}),e(b,{tag:"h5",className:"mb-0",style:{color:"#184874",fontWeight:"600"},children:"Recent Activity"})]})}),e(g,{className:"p-4",children:e("div",{className:"timeline",children:o.map((a,x)=>i("div",{className:"d-flex align-items-start mb-3",children:[e("div",{style:{width:"8px",height:"8px",borderRadius:"50%",background:a.type==="success"?"#28a745":a.type==="info"?"#17a2b8":a.type==="warning"?"#ffc107":"#184874",marginTop:"6px",marginRight:"12px",flexShrink:0}}),i("div",{className:"flex-grow-1",children:[e("div",{style:{fontWeight:"500",color:"#184874",marginBottom:"4px"},children:a.action}),e("small",{className:"text-muted",children:a.time})]}),e(k,{color:a.type,pill:!0,size:"sm",style:{fontSize:"0.7rem",padding:"0.25rem 0.5rem"},children:a.type})]},a.id))})})]}),e("style",{children:` 2 @keyframes pulse { 3 0%, 100% { opacity: 1; } 4 50% { opacity: 0.5; } 5 } 6 .card { 7 transition: all 0.3s ease; 8 } 9 .card:hover { 10 transform: translateY(-2px); 11 box-shadow: 0 8px 25px rgba(0,0,0,0.1); 12 } 13 .timeline { 14 position: relative; 15 } 16 .timeline::before { 17 content: ''; 18 position: absolute; 19 left: 4px; 20 top: 0; 21 bottom: 0; 22 width: 1px; 23 background: #e9ecef; 24 } 25 `})]})};export{M 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.