1import{bp as i,bq as d,j as e,br as c,aW as m,e as x,bs as p,aE as u,bt as h,L as o,A as f,g as b,ba as g,P as j}from"./index-tL3yZWrw.js";import{u as N}from"./useSuspenseQuery-BT6LAfYv.js";import{a as y}from"./RecentScansFeed-NVN06C_P.js";import{S as w}from"./SignupCta-DjiUHSGR.js";import{S as v}from"./ScanIdBadge-XXoxRZX1.js";import{f as S}from"./datetime-DEDbLob7.js";import"./TimeAgo-BGqjhqZZ.js";function C(){const{domain:t}=i.useParams(),{data:n}=N(d(t));if(!n)return e.jsx(B,{host:c(t)??t});const{host:r,latest:s,history:a}=n;return e.jsxs("section",{className:"mx-auto w-full min-w-0 max-w-3xl px-4 pb-16 pt-2 [overflow-x:clip] sm:pt-6",children:[e.jsxs("h1",{className:"mb-4 font-display text-xl leading-snug text-foreground sm:text-2xl",children:["Is ",e.jsx("span",{className:"font-mono",children:r})," AI agent ready?"," ",e.jsxs("span",{className:"whitespace-nowrap",children:[s.grade?`${s.grade} · `:"",s.score,"/100"]})]}),e.jsxs("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-2 no-print",children:[e.jsx(m,{url:s.url}),e.jsxs("a",{href:`/?url=${encodeURIComponent(s.url)}&autoscan=1&fresh=1`,className:"inline-flex items-center gap-2 rounded-xl bg-foreground px-4 py-2 text-sm font-medium text-background transition hover:opacity-90",children:[e.jsx(x,{className:"h-4 w-4","aria-hidden":"true"}),"Re-test this site"]})]}),e.jsx(p,{result:s.result,headerExtras:e.jsx(R,{host:r,history:a,latestId:s.id})}),e.jsx(k,{platform:s.platform,host:r}),e.jsx(w,{}),e.jsx(u,{variant:"banner",className:"no-print",start:h(r)??void 0}),e.jsxs("div",{className:"mt-10 rounded-2xl border border-border bg-card p-6 text-center no-print",children:[e.jsxs("p",{className:"text-sm text-muted-foreground",children:["This page always shows the most recent public scan for"," ",e.jsx("span",{className:"font-mono text-foreground",children:r}),"."]}),e.jsxs("div",{className:"mt-4 flex flex-wrap justify-center gap-2",children:[e.jsx(o,{to:"/scans",className:"inline-flex items-center gap-2 rounded-xl border border-border bg-background px-5 py-2.5 text-sm font-medium text-foreground transition hover:bg-secondary",children:"Browse all public scans"}),e.jsxs(o,{to:"/",className:"inline-flex items-center gap-2 rounded-xl bg-foreground px-5 py-2.5 text-sm font-medium text-background transition hover:opacity-90",children:["Scan your site ",e.jsx(f,{className:"h-4 w-4"})]})]})]})]})}function k({platform:t,host:n}){const r=g.find(s=>s.platform===t);return r?e.jsxs("p",{className:"mt-6 rounded-2xl border border-border bg-card p-4 text-sm text-muted-foreground no-print",children:[n," is built on ",j[t??"unknown"]??"a custom stack","."," ",e.jsx(o,{to:"/use-cases/$platform",params:{platform:r.slug},className:"font-medium text-foreground underline",children:r.title})," ","walks through the same checks on that platform."]}):null}function R({host:t,history:n,latestId:r}){if(n.length<2)return null;const s=S;return e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4 no-print sm:p-6",children:[e.jsxs("h2",{className:"text-sm font-medium sm:text-base",children:["Scan history · ",e.jsxs("span",{className:"font-normal text-muted-foreground",children:[n.length," public scans of ",t]})]}),e.jsx("div",{className:"-mx-4 mt-3 overflow-x-auto sm:mx-0",children:e.jsxs("table",{className:"w-full min-w-[420px] text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border text-left text-xs uppercase tracking-wider text-muted-foreground",children:[e.jsx("th",{className:"px-3 py-2 font-medium",children:"When"}),e.jsx("th",{className:"px-3 py-2 font-medium",children:"Score"}),e.jsx("th",{className:"px-3 py-2 font-medium",children:"Grade"}),e.jsx("th",{className:"px-3 py-2 text-right font-medium",children:"Snapshot"})]})}),e.jsx("tbody",{children:n.map(a=>{const l=(a.grade||"F").trim();return e.jsxs("tr",{className:`border-b border-border/60 last:border-0 ${a.id===r?"bg-secondary/50 font-semibold":""}`,children:[e.jsx("td",{className:"whitespace-nowrap px-3 py-2",children:e.jsxs("span",{className:"inline-flex items-center gap-2",children:[s(a.createdAt),e.jsx(v,{id:a.id})]})}),e.jsxs("td",{className:"px-3 py-2 tabular-nums",children:[a.score,"/100"]}),e.jsx("td",{className:"px-3 py-2",style:{color:b(l)},children:a.grade||"â"}),e.jsx("td",{className:"px-3 py-2 text-right",children:e.jsx(o,{to:"/scan/$id",params:{id:a.id},className:"text-xs font-medium text-foreground hover:underline",children:"View â"})})]},a.id)})})]})})]})}function B({host:t}){return e.jsxs("section",{className:"mx-auto w-full max-w-2xl px-4 py-20 text-center",children:[e.jsxs("h1",{className:"font-display text-2xl sm:text-3xl",children:["No public scan for ",e.jsx("span",{className:"font-mono",children:t})," yet"]}),e.jsx("p",{className:"mx-auto mt-3 max-w-md text-sm text-muted-foreground",children:"Either this domain has never been scanned, or its owner kept the report private. Run a free scan and it will appear here."}),e.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[e.jsx(y,{url:`https://${t}`}),e.jsx(o,{to:"/scans",className:"inline-flex items-center gap-2 rounded-xl border border-border bg-card px-5 py-2.5 text-sm font-medium text-foreground transition hover:bg-secondary",children:"Browse public scans"})]})]})}export{C 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.