1import{u as c,r as m,j as o}from"./react-vendor-pafHdoJx.js";import{b as d,d as p}from"./index-Db0fDLGN.js";import{u}from"./use-feature-flag-3A8HtGoX.js";import{A as f}from"./AtlasInsightCard-BB4lVUAl.js";import"./map-vendor-Dr8zbd0c.js";import"./firebase-vendor-D3UzkAhn.js";import"./ui-vendor-DLXJn6s3.js";import"./DecisionCard-DNZ6nKSh.js";function y(){const l=c(),a=u("atlas-insight-card"),{data:e}=d(()=>a?p.tmsEmbarcadores():Promise.resolve(null),[a]),n=m.useMemo(()=>{if(!e||!Array.isArray(e))return null;const t=e.filter(i=>i.ativo!==!1);if(t.length<5)return null;const r=t.filter(i=>i.inadimplente).length,s=r/t.length*100;return s<15?null:{kpiName:"Embarcadores inadimplentes",currentValueDisplay:`${r} de ${t.length}`,changePercent:s,direction:"negative",rootCauseHint:r>=3?"concentração de inadimplência â risco de churn em curto prazo":void 0,comparisonPeriod:"da base ativa"}},[e]);return!a||!n?null:o.jsx("div",{className:"space-y-3 mb-4","data-testid":"clientes-proactive-cards-slot",children:o.jsx(f,{insight:n,onViewDetails:()=>l("/clientes?filter=inadimplente")})})}export{y as ClientesProactiveCardsSlot};
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.