PageSourceSearch

https://zonescan.io/assets/EndpointAnalyticsPage-DeDFrD0t.js

js zonescan.io collected 2026-10-07 21:52:48 UTC 4,071 bytes, 1 lines download raw bytes

1import{u as f,a as b,e as g,b as y,r as v,j as e,B as c}from"./index-CrDpVSc6.js";import{e as j,E,a as N}from"./EndpointAnalyticsContent-Df8aYhIz.js";import{E as w}from"./ExplorerTabsNavigation-DjhFnsIo.js";import{E as k}from"./ExplorerPaneHeading-Dg9JPRXE.js";import{G as d}from"./GlassCard-CedV7rCI.js";import{P as C}from"./PageTemplate-B2yq8nuE.js";import"./ExplorerStatCard-B6wyY8__.js";import"./StatsPanelCard-DhqU1tZh.js";import"./collapsible-B1jf1owI.js";import"./local-dropdown-CNGb_3xN.js";import"./local-search-input-DzOw3U8f.js";import"./separator-OVViiac0.js";import"./chevron-left-DAYoXHfY.js";import"./chevron-down-IwjZfzq5.js";import"./badge-1O8OepM1.js";import"./table-zRy0pEzC.js";import"./ellipsis-DhlwX5A2.js";import"./share-2-LXsXUCFy.js";import"./date-range-picker-an0QgeRB.js";import"./generateCategoricalChart-DE3pbY4P.js";import"./input-QeGKfydJ.js";import"./server-BI3cYIzu.js";import"./database-DfvMo7Af.js";import"./tabs-BthkSIyk.js";import"./api-endpoint-availability-9VIXBNPz.js";import"./BlockchainHeader-eAGaAUMg.js";import"./Breadcrumbs-DgdHogfs.js";function I(o,t,a){const s=!!(o&&t);return f({queryKey:[...j.detail(o??"",t??0),{nocache:!1}],queryFn:async({signal:r})=>{if(!o)throw new Error("Blockchain ID is required");if(!t)throw new Error("Endpoint ID is required");const i=await b.getEndpoint(o,t,{nocache:a?.nocache,signal:r});return g(i)},refetchInterval:12e4,enabled:s,staleTime:9e4,gcTime:3e5,refetchOnWindowFocus:!1})}function te({params:o}){const t=o?.identifier,a=Number(o?.endpointId),s=Number.isSafeInteger(a)&&a>0?a:void 0,r=y(),i=r.data?.find(u=>u.identifier===t),m=!r.isLoading&&!i,n=I(t,s),l=n.data,p=v(i?.accentColor),h=n.isError&&!l,x=!!(r.isError&&i||n.isError&&l);return!t||!s?e.jsx("div",{className:"w-full py-6",children:e.jsx(d,{children:e.jsxs("div",{className:"p-8 text-center",role:"alert",children:[e.jsx("h1",{className:"font-semibold text-foreground",children:"Invalid endpoint address"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Endpoint IDs must be positive integers."})]})})}):e.jsx(C,{blockchainIdentifier:t,blockchain:i??null,isLoading:r.isLoading,children:e.jsxs("div",{className:"w-full",children:[e.jsx("div",{className:"mb-4 sm:mb-6",children:e.jsx(w,{blockchainIdentifier:t,currentTab:"endpoints",blockchain:i})}),e.jsx(k,{title:"Endpoint Analytics",description:"Inspect verified availability, latency, health outcomes, coverage, and daily reliability without loading raw history pages.",accentColor:p,headingLevel:1}),x?e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2 rounded-lg border border-amber-500/25 bg-amber-500/10 px-3 py-2 text-xs text-amber-800 dark:text-amber-200 sm:mb-6",role:"status","aria-live":"polite",children:[e.jsx("span",{children:"Showing cached endpoint data because the latest background refresh did not complete."}),e.jsx(c,{type:"button",variant:"secondary",size:"sm",className:"h-8",onClick:()=>{r.isError&&r.refetch(),n.isError&&n.refetch()},children:"Retry"})]}):null,m?e.jsx(d,{children:e.jsxs("div",{className:"p-8 text-center",role:"alert",children:[e.jsx("h2",{className:"font-semibold text-foreground",children:"Blockchain context could not be loaded"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Retry the network catalog request before loading endpoint analytics."}),e.jsx(c,{className:"mt-4",variant:"secondary",onClick:()=>{r.refetch()},children:"Retry"})]})}):!h&&(n.isPending||r.isLoading)?e.jsx(E,{showEndpointSelector:!1}):l?e.jsx(N,{blockchain:i,endpoints:[l],initialEndpointId:s}):e.jsx(d,{children:e.jsxs("div",{className:"p-8 text-center",role:"alert",children:[e.jsx("h2",{className:"font-semibold text-foreground",children:"Endpoint could not be loaded"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"It may have been removed or endpoint monitoring may be unavailable for this network."}),e.jsx(c,{className:"mt-4",variant:"secondary",onClick:()=>{n.refetch()},children:"Retry"})]})})]})})}export{te as EndpointAnalyticsPage,te 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.