1import{u as l,j as a}from"./react-vendor-pafHdoJx.js";import{u as m}from"./use-feature-flag-3A8HtGoX.js";import{k as p,l as g,a as u,m as v}from"./use-card-data-tzfrNYKD.js";import{D as x}from"./DecisionCard-DNZ6nKSh.js";import{l as h}from"./index-Db0fDLGN.js";import{G as f}from"./ui-vendor-DLXJn6s3.js";import{L as j,E as C}from"./LimiteDeCards-NHqoysB4.js";import{M as b,G as y}from"./MentorCoachingCard-BQMKXzZJ.js";import"./map-vendor-Dr8zbd0c.js";import"./trip-urgency-DbS8HR5U.js";import"./firebase-vendor-D3UzkAhn.js";const D=3;function E({ativacao:o,href:r="/motoristas?tab=ativacao",className:i}){const c=l(),t=o.semConvite,s=o.aguardando.slice(0,D),n=t-s.length;return a.jsx(x,{id:"ativacao-por-viagem",agent:"Guardião",category:"ativação",tier:t>=5?"warning":"info",summary:`${t} viage${t===1?"m":"ns"} sem o app do motorista â o convite já está pronto`,details:a.jsxs("div",{children:[s.map(e=>a.jsxs("div",{className:"flex items-center gap-2 py-1.5",style:{borderTop:"1px solid var(--border-primary)"},children:[a.jsx(f,{className:"w-3.5 h-3.5 shrink-0",style:{color:"var(--page-text-muted)"},"aria-hidden":"true"}),a.jsxs("p",{className:"text-sm truncate flex-1 min-w-0",style:{color:"var(--page-text)"},children:[a.jsx("span",{className:"font-mono",children:e.placa||"â"})," · ",e.condutor||"condutor",a.jsxs("span",{style:{color:"var(--page-text-muted)"},children:[" · ",e.origem||"â"," â ",e.destino||"â"]})]})]},e.chave)),n>0&&a.jsxs("p",{className:"text-[11px] pt-1.5",style:{color:"var(--page-text-muted)"},children:["e mais ",n]}),a.jsxs("p",{className:"text-[11px] pt-2",style:{color:"var(--page-text-muted)"},children:["Base: ",o.elegiveis," manifestos com CPF do condutor nos últimos 7 dias",o.ativas?` · ${o.ativas} com agente ativo`:"","."]})]}),reasoning:"Sem o app, a viagem roda sem posição, sem previsão de chegada e sem semáforo. O motorista de terceiro não faz cadastro nem cria senha: ele confirma os três últimos dÃgitos do CPF que o manifesto já declarou, e o agente hiberna sozinho quando o manifesto encerra.",primaryActionLabel:"Convidar",hideDefer:!0,onAccept:()=>
1{h("ativacao_viagem_abrir",{pendentes:t}),c(r)},className:i})}function $(){const o=l(),r=m("mentor-coaching-card"),i=m("guardiao-engajamento-card"),{drivers:c}=p(r),{drivers:t}=g(i),s=m("excecoes-torre-card"),{excecoes:n}=u(s,["condutor_nao_cadastrado","condutor_conflito","jornada_risco"]),e=m("ativacao-viagem-card"),{ativacao:d}=v(e);return!r&&!i&&!s&&!e?null:a.jsx("div",{className:"space-y-3 mb-4","data-testid":"motoristas-proactive-cards-slot",children:a.jsxs(j,{children:[e&&d&&a.jsx(E,{ativacao:d}),s&&n.length>0&&a.jsx(C,{excecoes:n,hub:"Motoristas",href:"/motoristas"}),r&&c.length>0&&a.jsx(b,{drivers:c,onGenerateCoachingPlan:()=>o("/motoristas?action=coaching-plan")}),i&&t.length>0&&a.jsx(y,{drivers:t,onLaunchReengagement:()=>o("/motoristas?action=engagement-campaign")})]})})}export{$ as MotoristasProactiveCardsSlot};
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.