1import{b as u,u as h,e as g,j as e,C as r,h as i,B as o}from"./index-BoPK12rZ.js";import{L as b}from"./Layout-viiPcUF2.js";import{B as l}from"./badge-Dzgcftu_.js";import{A as j,a as N}from"./avatar-CP49ZCZe.js";import{E as f}from"./eye-DrsHRq_F.js";import{H as v}from"./heart-BibdQAhM.js";import{U as y}from"./users-DpKGh2ZL.js";import{U as C}from"./user-plus-CCft_65N.js";import"./sheet-cWIgBlZN.js";import"./index-BAk_bO_9.js";import"./index-DR_KIw6N.js";import"./index-DuY6vpjC.js";import"./MedicalDisclaimer-DDoRLo7i.js";import"./circle-alert-ChnZ4M4N.js";import"./dialog-By_dUouJ.js";import"./select-B6XUQb0n.js";import"./chevron-down-BAeWndFz.js";import"./chevron-up-BRs2jkXF.js";import"./tabs-DWQ6x32b.js";import"./index-Bu4KJFpo.js";import"./clock-DupAsq6s.js";import"./circle-check-BHOaP-8t.js";import"./DiagnosisDialog-CAkS69mq.js";import"./textarea-D9g-r6Bx.js";import"./switch-BKo3y5a4.js";import"./label-CCd9oABz.js";import"./stethoscope-BHnL3bfQ.js";import"./save-BlQGp2m0.js";import"./house-CPCAQwMa.js";import"./user-BOOKI8Fb.js";import"./plus-DvgK6Rve.js";import"./log-out-B0yE91Jf.js";import"./log-in-CAxsLClY.js";const ae=()=>{const{t}=u(),a=h(),[c,n]=g.useState(null),m=[{id:"patient-status",icon:f,title:t("××¦× ××××פ×/ת","Patient Status"),description:t("צפ××× ×××¦× ××ר×××ת×, ××פ×××× ××ש×××ת","View health status, treatments and tasks"),color:"bg-blue-100 dark:bg-blue-900/30 text-blue-600",route:"/caregiver"},{id:"personal-wellbeing",icon:v,title:t("×ר×××× ×××ש×ת ש××","My Personal Wellbeing"),description:t("×××× ×××פ×× ×¢×¦××, ××שר ××ר×××ת × ×¤×©×ת","Self-care tools, fitness and mental health"),color:"bg-pink-100 dark:bg-pink-900/30 text-pink-600",route:"/caregiver-health"}],d=[{id:"1",name:t("××× - שר×","Mom - Sarah"),condition:t("××××תרפ×× - ××××ר 3","Chemotherapy - Cycle 3"),lastUpdate:t("××¤× × ×©×¢×","1 hour ago"),status:"active"},{id:"2",name:t("××× - ×××","Dad - David"),condition:t("××¢×§× ×©× ×ª×","Annual Follow-up"),lastUpdate:t("××¤× × 3 ××××","3 days ago"),status:"stable"}],x=[{label:t("×קש×ת ×××× ×ת","Available Requests"),route:"/available-requests",badge:"3"},{label:t("××ª× ××××","Volunteers"),route:"/available-volunteers",badge:null},{label:t("××שר","Fitness"),route:"/caregiver-fitness",badge:null},{label:t("×§××××","Community"),route:"/community",badge:"5"}];return e.jsx(b,{children:e.jsxs("div",{className:"container max-w-4xl mx-auto px-4 py-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 rounded-xl bg-primary/10",children:e.jsx(y,{className:"h-6 w-6 text-primary"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-xl font-bold",children:t("תצ××ת ××פ×/ת","Caregiver View")}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t("×××¨× ×ת ×תצ××× ×רצ×××","Choose your preferred view")})]})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:m.map(s=>{const p=s.icon;return e.jsx(r,{className:`cursor-pointer transition-all hover:shadow-md ${c===s.id?"ring-2 ring-primary":""}`,onClick:()=>{n(s.id),a(s.route)},children:e.jsxs(i,{className:"p-5 text-center space-y-3",children:[e.jsx("div",{className:`p-3 rounded-xl ${s.color} mx-auto w-fit`,children:e.jsx(p,{className:"h-8 w-8"})}),e.jsx("h3",{className:"font-semibold",children:s.title}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.description})]})},s.id)})}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"text-sm font-semibold",children:t("××××פ××× ×©××","My Patients")}),e.jsxs(o,{variant:"ghost",size:"sm",className:"text-xs gap-1",children:[e.jsx(C,{className:"h-3 w-3"}),t("××ספ×","Add")]})]}),d.map(s=>e.jsx(r,{className:"cursor-pointer hover:bg-accent/50 transition-colors",children:e.jsxs(i,{className:"p-4 flex items-center gap-3",children:[e.jsx(j,{className:"h-10 w-10",children:e.jsx(N,{className:"bg-primary/10 text-primary font-bold",children:s.name[0]})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-medium text-sm",children:s.name}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.condition})]}),e.jsxs("div",{className:"text-end",children:[e.jsx(l,{variant:s.status==="active"?"default":"secondary",className:"text-xs mb-1",children:s.status==="active"?t("פע××","Active"):t("×צ××","Stable")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.lastUpdate})]})]})},s.id))]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:x.map(s=>e.jsxs(o,{variant:"outline",className:"justify-between text-xs h-auto py-3",onClick:()=>a(s.route),children:[s.label,s.badge&&e.jsx(l,{className:"text-xs",children:s.badge})]},s.label))})]})})};export{ae 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.