import{_ as u,f as h}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import{j as e}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{a as n}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{L as p,ai as b,k as f,aj as g,ae as j}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";const v=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5203.js")),[]));function y({atendente:r}){return e.jsx(n.Suspense,{fallback:e.jsx("div",{className:"flex h-64 w-[32rem] max-w-[calc(100vw-4rem)] items-center justify-center",role:"status",children:e.jsx(p,{className:"h-5 w-5 animate-spin text-[var(--primaria)]",strokeWidth:2,"aria-hidden":!0})}),children:e.jsx(v,{atendente:r})})}function C({atendente:r,atendimentosAtivos:i,atual:t=!1,rotuloVoce:o,rotuloAtendimentos:d,rotuloSelecionar:c,rotuloUsuarioOuEmail:l,onSelect:m}){const a=r.email.trim()||r.user_id.trim(),s=r.assinatura.trim()||a||"—",x=t?b:f;return e.jsxs("button",{type:"button",className:h("group flex w-full min-w-0 items-center gap-3 rounded-xl border border-solid border-[var(--conversation-header-border)] p-3 text-left transition-colors",t?"cursor-default bg-[var(--background-default-active)]/35":"bg-transparent hover:bg-[var(--background-default-active)]"),disabled:t,"aria-label":t?void 0:`${c}: ${s}`,onClick:m,children:[e.jsxs("span",{className:"relative flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-[var(--background-default-active)] text-[var(--primaria)]",children:[e.jsx(x,{className:"h-5 w-5",strokeWidth:1.7,"aria-hidden":!0}),e.jsx("span",{className:"absolute -right-0.5 -bottom-0.5 h-2.5 w-2.5 rounded-full border-2 border-solid border-[var(--background-default)] bg-success","aria-hidden":!0})]}),e.jsxs("span",{className:"min-w-0 flex-1",children:[e.jsxs("span",{className:"flex min-w-0 items-center gap-1.5",children:[e.jsx("span",{className:"truncate text-[13px] font-semibold leading-tight text-base-content/90",children:s}),t&&e.jsx("span",{className:"shrink-0 text-[10px] font-medium leading-none text-[var(--primaria)]",children:o})]}),a&&e.jsxs("span",{className:"mt-0.5 block truncate text-[10px] leading-tight text-base-content/55",children:[l,": ",a]}),e.jsxs("span",{className:"mt-1.5 flex items-center gap-1 text-[10px] leading-none text-base-content/60",children:[e.jsx(g,{className:"h-3 w-3 shrink-0",strokeWidth:1.8,"aria-hidden":!0}),e.jsx("span",{className:"truncate",children:d}),e.jsx("strong",{className:"shrink-0 font-semibold tabular-nums text-base-content/80",children:i})]})]}),!t&&e.jsx(j,{className:"h-4 w-4 shrink-0 text-base-content/35 transition-transform duration-150 group-hover:translate-x-0.5 group-hover:text-base-content/65",strokeWidth:1.8,"aria-hidden":!0})]})}export{C,y as M};
