PageSourceSearch

https://sentinel-365-c9d4f.web.app/assets/TorreDesempenhoPage-Dl5UjiOU.js

js sentinel-365-c9d4f.web.app collected 2026-10-03 12:36:00 UTC 1,813 bytes, 1 lines download raw bytes

1import{r as t,j as e}from"./react-vendor-pafHdoJx.js";import{b as d,d as l}from"./index-Db0fDLGN.js";import{T as n,L as m,E as c}from"./shared-DHvo53EK.js";import{a as i}from"./PerformanceDashboard-C4Rd322n.js";import{aG as p,l as x}from"./ui-vendor-DLXJn6s3.js";import"./map-vendor-Dr8zbd0c.js";import"./firebase-vendor-D3UzkAhn.js";import"./chart-vendor-BwAs6csO.js";const u=[30,60,90];function E(){const[a,s]=t.useState(30),o=d(()=>l.towerPerformance(a),[a]);return e.jsx(n,{icon:p,title:"Desempenho da malha",subtitle:"Onde o tempo é perdido do pedido ao canhoto — em todas as transportadoras da rede",right:e.jsx("div",{className:"flex rounded-lg overflow-hidden border",style:{borderColor:"var(--border-primary)"},role:"group","aria-label":"Período",children:u.map(r=>e.jsxs("button",{onClick:()=>s(r),"aria-pressed":a===r,className:"px-3 py-1.5 text-sm font-medium",style:a===r?{background:"#3B82F6",color:"#fff"}:{background:"var(--surface-secondary)",color:"var(--page-text-secondary)"},children:[r,"d"]},r))}),children:o.loading&&!o.data?e.jsx(m,{}):o.error?e.jsxs("div",{className:"rounded-xl border p-6 text-center",role:"alert",style:{borderColor:"#EF444440",background:"#EF444410"},children:[e.jsx(x,{size:22,className:"mx-auto mb-2",style:{color:"#EF4444"}}),e.jsx("p",{className:"text-sm font-semibold",style:{color:"var(--page-text)"},children:"Não consegui calcular o desempenho"}),e.jsx("p",{className:"text-xs mt-1 mx-auto max-w-lg",style:{color:"var(--page-text-secondary)"},children:o.error}),e.jsx("button",{onClick:o.refetch,className:"mt-4 px-4 py-2 rounded-lg text-sm font-semibold",style:{background:"#3B82F6",color:"#fff"},children:"Tentar de novo"})]}):o.data?e.jsx(i,{data:o.data,accent:"#3B82F6"}):e.jsx(c,{text:"Sem dados de desempenho no período."})})}export{E 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.