1import{j as e}from"./app-C1iegf7Q.js";import{L as a}from"./inertia-BpyZy4w-.js";import{U as l}from"./user-zm6AyDtY.js";import{A as r}from"./arrow-right-CQhEyoMD.js";/* empty css */import"./createLucideIcon-wqc1LSWg.js";function d({adviser:s,providers:n}){return s?e.jsxs("div",{className:"space-y-2",children:[e.jsxs(a,{href:`/my-providers/${s.slug}`,className:"flex items-center gap-3 dash-card p-4 no-underline hover:border-lime/25 transition-colors",children:[s.avatar?e.jsx("img",{src:s.avatar,alt:s.name,className:"h-9 w-9 rounded-full object-cover"}):e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-app-surface2",children:e.jsx(l,{className:"h-4 w-4 text-app-text3"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-app-text truncate",children:s.name}),e.jsx("p",{className:"text-xs text-app-text3 truncate",children:s.next_step??s.title??"Your adviser"})]}),s.open_tasks>0&&e.jsxs("span",{className:"shrink-0 rounded-full bg-app-lime/10 px-2 py-0.5 text-2xs font-bold text-app-lime",children:[s.open_tasks," task",s.open_tasks!==1?"s":""]}),s.is_next_step_overdue&&e.jsx("span",{className:"shrink-0 rounded-full bg-red-400/10 px-2 py-0.5 text-2xs font-bold text-red-400",children:"Overdue"}),e.jsx(r,{className:"h-4 w-4 text-app-text3 shrink-0"})]}),s.open_tasks>0&&e.jsxs(a,{href:"/tasks",className:"flex items-center gap-2 dash-card px-4 py-2.5 no-underline hover:border-lime/25 transition-colors",children:[e.jsxs("span",{className:"text-xs text-app-text2",children:[s.open_tasks," open task",s.open_tasks!==1?"s":""," from ",s.name]}),e.jsx(r,{className:"h-3 w-3 text-app-text3 ml-auto"})]})]}):n.length===0?null:e.jsx("div",{className:"space-y-2",children:n.map(t=>e.jsxs(a,{href:`/my-providers/${t.provider_slug}`,className:"flex items-center gap-3 dash-card p-4 no-underline hover:border-lime/25 transition-colors",children:[t.provider_avatar?e.jsx("img",{src:t.provider_avatar,alt:t.provider_name,className:"h-9 w-9 rounded-full object-cover"}):e.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-full bg-app-surface2",children:e.jsx(l,{className:"h-4 w-4 text-app-text3"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-app-text truncate",children:t.provider_name}),t.next_step?e.jsx("p",{className:`text-xs truncate ${t.is_next_step_overdue?"text-red-400":"text-app-text3"}`,children:t.next_step}):t.open_checklists>0?e.jsxs("p",{className:"text-xs text-app-text3",children:[t.open_checklists," open checklist",t.open_checklists!==1?"s":""]}):e.jsx("p",{className:"text-xs text-app-text3",children:"Your adviser"})]}),e.jsx(r,{className:"h-4 w-4 text-app-text3 shrink-0"})]},t.provider_slug))})}export{d as AdviserCard};
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.