PageSourceSearch

https://hantavirusmap.com/assets/x9k2-console.embeds-g6scRi0L.js

js hantavirusmap.com collected 2026-10-02 23:20:42 UTC 2,885 bytes, 1 lines download raw bytes

1import{o as i,p as x,r,j as e}from"./main-BZn_dPrE.js";const o=i({method:"GET"}).handler(x("197b2d3d9c8428c6e27af0020dcf341017564cfb26aaf869eb316130e48d50ba"));function m(){const[t,a]=r.useState(null),[d,c]=r.useState(null);return r.useEffect(()=>{o().then(a).catch(s=>c(s instanceof Error?s.message:"Failed"))},[]),d?e.jsx("p",{className:"text-sm text-destructive",children:d}):t?e.jsxs("div",{className:"space-y-6",children:[e.jsx("h1",{className:"text-lg font-semibold",children:"Embed analytics"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Views of ",e.jsx("code",{children:"/?embed=1"})," over the last 30 days. Sites that iframe our map."]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[e.jsx(l,{label:"Last 24h",value:t.totals.last24h}),e.jsx(l,{label:"Last 7 days",value:t.totals.last7d}),e.jsx(l,{label:"Last 30 days",value:t.totals.last30d})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"mb-2 text-sm font-medium",children:"Top embedding hosts"}),t.byHost.length===0?e.jsx("p",{className:"text-xs text-muted-foreground",children:"No embed views yet."}):e.jsxs("table",{className:"w-full text-xs",children:[e.jsx("thead",{className:"text-muted-foreground",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left",children:"Host"}),e.jsx("th",{className:"text-right",children:"Views (30d)"})]})}),e.jsx("tbody",{children:t.byHost.map(s=>e.jsxs("tr",{className:"border-t border-border",children:[e.jsx("td",{className:"py-2",children:s.host}),e.jsx("td",{className:"text-right",children:s.views})]},s.host))})]})]}),e.jsxs("section",{children:[e.jsx("h2",{className:"mb-2 text-sm font-medium",children:"Recent views"}),e.jsxs("table",{className:"w-full text-xs",children:[e.jsx("thead",{className:"text-muted-foreground",children:e.jsxs("tr",{children:[e.jsx("th",{className:"text-left",children:"When"}),e.jsx("th",{className:"text-left",children:"Host"}),e.jsx("th",{className:"text-left",children:"Referrer"}),e.jsx("th",{className:"text-left",children:"Focus"}),e.jsx("th",{className:"text-left",children:"Region"})]})}),e.jsx("tbody",{children:t.recent.map((s,n)=>e.jsxs("tr",{className:"border-t border-border",children:[e.jsx("td",{className:"py-2 whitespace-nowrap",children:new Date(s.viewed_at).toLocaleString()}),e.jsx("td",{children:s.host??"—"}),e.jsx("td",{className:"max-w-[280px] truncate text-muted-foreground",title:s.referrer??"",children:s.referrer??"—"}),e.jsx("td",{children:s.focus??"—"}),e.jsx("td",{children:s.region??"—"})]},n))})]})]})]}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"})}function l({label:t,value:a}){return e.jsxs("div",{className:"rounded-xl border border-border bg-card p-4",children:[e.jsx("div",{className:"text-2xl font-semibold",children:a}),e.jsx("div",{className:"text-xs text-muted-foreground",children:t})]})}export{m as component};

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.