1import{k as L,r as n,j as e,N as h,L as p,A as N,F as u,f as P,l as I,m as A,T as z,G as _,n as E,H as F,B as D,h as U,g as W,s as v}from"./index-CA_mZyom.js";import{S as g}from"./SEO-XlWa8KUp.js";import{C as O}from"./circle-alert-BUOggnLJ.js";import{T as M}from"./tag-CtDEUdc3.js";const q={bot:D,structured:U,content:W,meta:M,technical:_},f=a=>a>=80?"text-emerald-300":a>=60?"text-cyan-300":a>=40?"text-amber-300":"text-rose-300",J=a=>a>=80?"bg-emerald-300/70":a>=60?"bg-cyan-300/70":a>=40?"bg-amber-300/70":"bg-rose-300/70",V=a=>a>=80?"border-emerald-300/30":a>=60?"border-cyan-300/30":a>=40?"border-amber-300/30":"border-rose-300/30";function Y(a){if(!a)return null;let t=decodeURIComponent(a).trim().toLowerCase();return t=t.replace(/^https?:\/\//,"").replace(/^www\./,""),t=t.split("/")[0].split("?")[0].split("#")[0],t=t.replace(/\.+$/,""),/^[a-z0-9-]+(\.[a-z0-9-]+)+$/.test(t)?t:null}const ee=()=>{const{domain:a}=L(),t=n.useMemo(()=>Y(a||""),[a]),[r,y]=n.useState(null),[B,l]=n.useState(!0),[R,j]=n.useState(!1),[b,o]=n.useState(null);if(n.useEffect(()=>{if(!t){o("Invalid domain"),l(!1);return}let s=!1;const c=async()=>{const{data:d}=await v.from("public_audit_visits").select("id, url, domain, before_score, projected_score, audit_payload, created_at").eq("domain",t).is("error",null).not("audit_payload","is",null).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(s)return;if(d!=null&&d.audit_payload){y(d),l(!1);return}j(!0);const{data:x,error:T}=await v.functions.invoke("geo-score",{body:{url:`https://${t}`}});if(s)return;if(T||!(x!=null&&x.reportId)){o("Could not scan this domain right now."),l(!1),j(!1);return}const{data:m}=await v.from("public_audit_visits").select("id, url, domain, before_score, projected_score, audit_payload, created_at").eq("id",x.reportId).maybeSingle();s||(m!=null&&m.audit_payload?y(m):o("Scan completed but report is unavailable."),l(!1),j(!1))};return l(!0),o(null),c(),()=>{s=!0}},[t]),!t)return e.jsxs("div",{className:"bg-[#08090a] text-white min-h-screen",children:[e.jsx(g,{title:"Invalid domain · GEO Score · HiBubo",description:"Domain not recognized.",index:!1}),e.jsx(h,{}),e.jsx("main",{className:"pt-32 pb-24 text-center",children:e.jsxs("div",{className:"mx-auto max-w-md px-5",children:[e.jsx(O,{className:"w-6 h-6 text-rose-300 mx-auto"}),e.jsx("h1",{className:"mt-4 text-[20px] font-[590] text-white",children:"That domain doesn't look right"}),e.jsxs(p,{to:"/geo-score",className:"mt-6 inline-flex items-center gap-1.5 rounded-md bg-white px-4 py-2.5 text-[14px] font-medium text-[#08090a]",children:["Run a GEO score check ",e.jsx(N,{className:"w-3.5 h-3.5"})]})]})}),e.jsx(u,{})]});if(B){const s=typeof window<"u"?window.location.href:`https://hibubo.ai/geo-score/${t}`;return e.jsxs("div",{className:"bg-[#08090a] text-white min-h-screen",children:[e.jsx(g,{title:`GEO Score for ${t} · HiBubo`,description:`See how AI engines like ChatGPT, Perplexity and Claude view ${t}. Free GEO score check by HiBubo.`,canonical:s}),e.jsx(h,{}),e.jsxs("main",{className:"pt-32 pb-24 text-center",children:[e.jsx(P,{className:"w-6 h-6 text-[#8a8f98] animate-spin mx-auto"}),e.jsx("p",{className:"mt-4 text-[13px] text-[#8a8f98]",children:R?`Scanning ${t}â¦`:`Loading ${t}â¦`})]}),e.jsx(u,{})]})}if(b||!(r!=null&&r.audit_payload))return e.jsxs("div",{className:"bg-[#08090a] text-white min-h-screen",children:[e.jsx(g,{title:`Couldn't scan ${t} · HiBubo`,description:b||"",index:!1}),e.jsx(h,{}),e.jsx("main",{className:"pt-32 pb-24 text-center",children:e.jsxs("div",{className:"mx-auto max-w-md px-5",children:[e.jsx(O,{className:"w-6 h-6 text-rose-300 mx-auto"}),e.jsxs("h1",{className:"mt-4 text-[20px] font-[590] text-white",children:["Couldn't scan ",t]}),e.jsx("p",{className:"mt-2 text-[13px] text-[#8a8f98]",children:b}),e.jsxs(p,{to:"/geo-score",className:"mt-6 inline-flex items-center gap-1.5 rounded-md bg-white px-4 py-2.5 text-[14px] font-medium text-[#08090a]",children:["Try a different site ",e.jsx(N,{className:"w-3.5 h-3.5"})]})]})}),e.jsx(u,{})]});const i=r.audit_payload,k=r.before_score??i.overall,S=r.projected_score??Math.min(100,k+20),$=S-k,w=`https://hibubo.ai/geo-score/${t}`,C=`GEO Score for ${t}: ${i.overall}/100 (Grade ${i.grade}) · HiBubo`,G=`${t} scored ${i.overall}/100 on the HiBubo GEO Score Checker. See exactly how ChatGPT, Perplexity, and Claude view ${t} â and how to improve it.`,H=[{"@context":"https://schema.org","@type":"WebApplication",name:"HiBubo GEO Score Checker",url:"https://hibubo.ai/geo-score",applicationCategory:"SEOApplication",operatingSystem:"Web",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}},{"@context":"https://schema.org","@type":"Review",itemReviewed:{"@type":"WebSite",name:t,url:`https://${t}`},reviewRating:{"@type":"Rating",ratingValue:i.overall,bestRating:100,worstRating:0},author:{"@type":"Organization",name:"HiBubo"},reviewBody:`${t} scored ${i.overall}/100 (Grade ${i.grade}) on AI visibility. Top weak areas: ${i.components.slice().sort((s,c)=>s.score-c.score).slice(0,2).map(s=>s.name).join(", ")}.`},{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"GEO Score",item:"https://hibubo.ai/geo-score"},{"@type":"ListItem",position:2,name:t,item:w}]}];return e.jsxs("div",{className:"bg-[#08090a] text-white min-h-screen",children:[e.jsx(g,{title:C,description:G,canonical:w,og:{title:C,description:G,url:w,type:"article"},jsonLd:H}),e.jsx(h,{}),e.jsxs("main",{children:[e.jsxs("section",{className:"relative pt-32 pb-12 md:pt-40 md:pb-16",children:[e.jsx("div",{"aria-hidden":!0,
1className:"pointer-events-none absolute inset-0 linear-grid opacity-60"}),e.jsxs("div",{className:"relative mx-auto w-full max-w-3xl px-5 sm:px-8 text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 text-[11px] tracking-tight text-[#62666d]",children:[e.jsx(I,{className:"w-3 h-3"}),e.jsxs("span",{children:["GEO Score · ",t]})]}),e.jsxs("h1",{className:"mt-5 text-[32px] sm:text-[44px] leading-[1.05] font-[590] tracking-[-0.03em] text-white text-balance",children:[t," scored ",e.jsx("span",{className:f(i.overall),children:i.overall}),"/100"]}),e.jsxs("p",{className:"mt-4 text-[14px] tracking-tight text-[#8a8f98]",children:["How AI engines (ChatGPT, Perplexity, Claude, Gemini) see ",t,"."]})]})]}),e.jsx("section",{className:"pb-12",children:e.jsxs("div",{className:"mx-auto w-full max-w-3xl px-5 sm:px-8",children:[e.jsxs(A.div,{initial:{opacity:0,scale:.92},animate:{opacity:1,scale:1},transition:{duration:.45},className:"text-center",children:[e.jsx("div",{className:`mx-auto flex h-40 w-40 items-center justify-center rounded-full bg-[#0d0e10] border-4 ${V(i.overall)}`,children:e.jsxs("div",{children:[e.jsx("div",{className:`linear-tnum text-[48px] leading-none font-[590] tracking-[-0.03em] ${f(i.overall)}`,children:i.overall}),e.jsx("div",{className:"mt-1 text-[11px] tracking-tight text-[#62666d]",children:"/ 100"})]})}),e.jsxs("div",{className:"mt-5 text-[20px] font-[590] tracking-tight text-white",children:["Grade ",e.jsx("span",{className:f(i.overall),children:i.grade})]})]}),$>0&&e.jsx("div",{className:"mt-10 rounded-xl border border-emerald-300/20 bg-emerald-300/[0.04] p-6",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-emerald-300/20 bg-emerald-300/10 shrink-0",children:e.jsx(z,{className:"w-4 h-4 text-emerald-300"})}),e.jsxs("div",{children:[e.jsxs("h3",{className:"text-[14px] font-[590] tracking-tight text-white",children:["Projected with HiBubo: ",e.jsxs("span",{className:"text-emerald-300",children:[S,"/100"]})," (+",$,")"]}),e.jsxs("p",{className:"mt-1 text-[12px] leading-[1.5] tracking-tight text-emerald-100/85",children:["HiBubo auto-fixes the lowest-scoring pillars on ",t," so AI engines start finding and citing it."]})]})]})}),e.jsx("div",{className:"mt-8 space-y-3",children:i.components.map(s=>{const c=q[s.icon]||_;return e.jsxs("div",{className:"rounded-xl border border-white/[0.06] bg-white/[0.015] p-5",children:[e.jsxs("div",{className:"flex items-start justify-between gap-3",children:[e.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[e.jsx("div",{className:"inline-flex h-8 w-8 items-center justify-center rounded-md border border-white/[0.08] bg-[#0d0e10] shrink-0",children:e.jsx(c,{className:"w-3.5 h-3.5 text-white",strokeWidth:1.75})}),e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h3",{className:"text-[14px] font-[590] tracking-tight text-white",children:[s.name,e.jsxs("span",{className:"ml-2 linear-tnum text-[11px] font-normal text-[#62666d]",children:[s.weight,"%"]})]}),e.jsx("p",{className:"mt-1 text-[12px] leading-[1.5] tracking-tight text-[#8a8f98]",children:s.tip})]})]}),e.jsx("div",{className:`linear-tnum text-[22px] font-[590] tracking-[-0.025em] shrink-0 ${f(s.score)}`,children:s.score})]}),e.jsx("div",{className:"mt-4 h-[3px] w-full overflow-hidden rounded-full bg-white/[0.04]",children:e.jsx("div",{className:`h-full ${J(s.score)}`,style:{width:`${s.score}%`}})})]},s.name)})}),e.jsxs("section",{className:"mt-12 rounded-2xl border border-white/[0.06] bg-white/[0.01] p-6 sm:p-8",children:[e.jsxs("h2",{className:"text-[18px] font-[590] tracking-tight text-white",children:["How we calculated the GEO score for ",t]}),e.jsxs("p",{className:"mt-3 text-[13px] leading-[1.65] tracking-tight text-[#8a8f98]",children:["The HiBubo GEO Score Checker fetched ",e.jsx("span",{className:"text-white/90",children:t}),"'s homepage, analysed its ",e.jsx("code",{className:"text-emerald-200/80",children:"robots.txt"}),", structured data (JSON-LD), meta tags, headings, and content depth, then weighted each pillar to produce a single 0â100 score. The score reflects how easily large language models like ChatGPT, Perplexity, Claude, and Gemini can discover, parse, and cite this site."]}),e.jsxs("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs("div",{className:"flex items-start gap-2 text-[12px] text-[#a3a8b0]",children:[e.jsx(E,{className:"w-4 h-4 text-emerald-300/80 mt-0.5 shrink-0"}),e.jsx("span",{children:"Real fetch, not a cached guess. Re-runs every 24h for fresh data."})]}),e.jsxs("div",{className:"flex items-start gap-2 text-[12px] text-[#a3a8b0]",children:[e.jsx(E,{className:"w-4 h-4 text-emerald-300/80 mt-0.5 shrink-0"}),e.jsx("span",{children:"Same engine that scores Fortune 500 sites in our research lab."})]})]})]}),e.jsxs("div",{className:"mt-10 rounded-2xl border border-white/[0.08] bg-white/[0.02] p-8 text-center",children:[e.jsx(F,{size:32,className:"mx-auto text-white"}),e.jsx("h3",{className:"mt-4 text-[20px] sm:text-[24px] font-[590] tracking-[-0.022em] text-white",children:"Check YOUR site's GEO score"}),e.jsx("p",{className:"mt-2 text-[13px] tracking-tight text-[#8a8f98]",children:"Free, no signup. 30 seconds. See how ChatGPT, Perplexity, and Claude view your site."}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[e.jsxs(p,{to:"/geo-score",className:"inline-flex items-center gap-1.5 rounded-md bg-white px-4 py-2.5 text-[14px] font-medium tracking-tight text-[#08090a] hover:bg-[#e8e9ec] transition-colors shadow-sm",children:["Run a free check ",e.jsx(N,{className:"w-3.5 h-3.5"})]}),e.jsx(p,{to:`/report/${r.id}`,className:"inline-flex items-center gap-1.5 rounded-md border border-white/[0.08] bg-white/[0.02] px-3 py-2.5 text-[14px] font-medium tracking-tight text-white hover:bg-white/[0.06] transition-colors",children:"Open shareable report"})]})]})]})})]}),e.jsx(u,{})]})};export{ee 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.