PageSourceSearch

https://hazana.ai/_next/static/chunks/8321-03de231bb677fd37.js

js hazana.ai collected 2026-10-02 01:11:24 UTC 169,340 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8321],{15632:(e,t,a)=>{a.d(t,{A:()=>n});var s=a(95155),l=a(76384);function n(e){let{quota:t,user:a,scanMode:n,freeHint:r}=e;return!(0,l.G9)(t)||n&&(0,l.wM)(n,a)?null:(0,s.jsxs)("p",{className:"rounded-xl border border-[var(--warn)]/35 bg-[var(--warn)]/10 px-4 py-3 text-sm text-[var(--warn)]",role:"status",children:[a?"Daily scan limit reached (".concat(null==t?void 0:t.limit,"/day). Paid scans are paused until tomorrow (UTC) or upgrade on Plans."):(0,l.iK)(),r?(0,s.jsx)("span",{className:"mt-1 block font-normal text-[var(--muted)]",children:r}):null]})}},75589:(e,t,a)=>{a.d(t,{I:()=>l,q:()=>s});let s=[{code:"us",label:"USA",apifyLocation:"United States"},{code:"ca",label:"Canada",apifyLocation:"Canada"},{code:"uk",label:"UK",apifyLocation:"United Kingdom"},{code:"ae",label:"UAE",apifyLocation:"United Arab Emirates"},{code:"cn",label:"China",apifyLocation:"China"},{code:"in",label:"India",apifyLocation:"India"},{code:"pk",label:"Pakistan",apifyLocation:"Pakistan"},{code:"de",label:"Germany",apifyLocation:"Germany"},{code:"fr",label:"France",apifyLocation:"France"},{code:"au",label:"Australia",apifyLocation:"Australia"},{code:"sa",label:"Saudi Arabia",apifyLocation:"Saudi Arabia"},{code:"sg",label:"Singapore",apifyLocation:"Singapore"},{code:"nl",label:"Netherlands",apifyLocation:"Netherlands"},{code:"ie",label:"Ireland",apifyLocation:"Ireland"},{code:"es",label:"Spain",apifyLocation:"Spain"},{code:"it",label:"Italy",apifyLocation:"Italy"},{code:"jp",label:"Japan",apifyLocation:"Japan"},{code:"br",label:"Brazil",apifyLocation:"Brazil"},{code:"mx",label:"Mexico",apifyLocation:"Mexico"},{code:"ph",label:"Philippines",apifyLocation:"Philippines"},{code:"za",label:"South Africa",apifyLocation:"South Africa"},{code:"nz",label:"New Zealand",apifyLocation:"New Zealand"},{code:"se",label:"Sweden",apifyLocation:"Sweden"},{code:"ch",label:"Switzerland",apifyLocation:"Switzerland"},{code:"pl",label:"Poland",apifyLocation:"Poland"},{code:"tr",label:"Turkey",apifyLocation:"Turkey"},{code:"eg",label:"Egypt",apifyLocation:"Egypt"},{code:"ng",label:"Nigeria",apifyLocation:"Nigeria"},{code:"id",label:"Indonesia",apifyLocation:"Indonesia"},{code:"my",label:"Malaysia",apifyLocation:"Malaysia"},{code:"kr",label:"South Korea",apifyLocation:"South Korea"},{code:"hk",label:"Hong Kong",apifyLocation:"Hong Kong"}];function l(e,t){let a=s.find(t=>t.code===e),l=t.trim();return a||l?a?l?l.toLowerCase().includes(a.apifyLocation.toLowerCase())?l:"".concat(l,", ").concat(a.apifyLocation):a.apifyLocation:l:""}},76384:(e,t,a)=>{a.d(t,{$d:()=>u,A9:()=>m,Av:()=>i,G9:()=>n,Lv:()=>r,NL:()=>s,Z9:()=>l,iK:()=>c,wM:()=>d});let s="Daily scan limit reached. Try again tomorrow (UTC), or create a free account / upgrade on Plans for more scans.",l="Person search is still free. Building a new dossier or running other scans needs a credit.";function n(e){var t;return!!e&&null!=e.limit&&(null!=(t=e.remaining)?t:0)<=0}function r(e,t){var a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"research";if(!t)return"research"===s?"Search free \xb7 Log in to view results":"Free lookups \xb7 Log in for 6/day";if(!e)return"Log in for 6 scans/day";let l=(e.plan||"free").toUpperCase();return null==e.limit?"".concat(l," \xb7 Unlimited"):(null!=(a=e.remaining)?a:0)<=0?"".concat(l," \xb7 Limit reached (").concat(e.limit,"/day)"):"".concat(l," \xb7 ").concat(e.used,"/").concat(e.limit," today")}function i(e,t){var a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"runs";if(!t||!e||null==e.limit)return null;let l=null!=(a=e.remaining)?a:0;return"".concat(l," of ").concat(e.limit," ").concat(s," left today.")}function c(){return"Daily limit reached. Log in for 6 scans/day or try again tomorrow (UTC)."}function o(e){return"person-dossier"===e}function d(e,t){return!t&&("website"===e||"stack"===e||"company-dossier"===e||"person-dossier"===e)}function m(e,t,a){return!!d(e,a)||!!o(e)||!n(t)}function u(e,t,a){if(!m(e,t,a)&&!o(e))return"Daily limit reached";switch(e){case"page-seo":return"Analyze page";case"google-index":return"Check Google";case"ai-visibility":return"Check GEO";case"share-of-voice":return"See who ranks";case"compare":return"Compare sites";case"brand-social":return"Find profiles";case"name-research":return"Check if taken";case"company-dossier":return"Research company";case"person-dossier":return"Search people";default:return"Run scan"}}},78321:(e,t,a)=>{a.d(t,{default:()=>e1});var s=a(95155),l=a(12115),n=a(52619),r=a.n(n),i=a(20063);let c={sm:"size-4",md:"size-5",lg:"size-7"};function o(e){let{size:t="md",className:a=""}=e;
1return(0,s.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":!0,className:"".concat(c[t]," shrink-0 ").concat(a).trim(),fill:"none",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2.4",fill:"currentColor"}),(0,s.jsx)("circle",{cx:"5",cy:"7",r:"1.5",fill:"currentColor",opacity:"0.85"}),(0,s.jsx)("circle",{cx:"19",cy:"7",r:"1.5",fill:"currentColor",opacity:"0.85"}),(0,s.jsx)("circle",{cx:"5",cy:"17",r:"1.5",fill:"currentColor",opacity:"0.85"}),(0,s.jsx)("circle",{cx:"19",cy:"17",r:"1.5",fill:"currentColor",opacity:"0.85"}),(0,s.jsx)("path",{d:"M6.2 7.8 10.2 11M17.8 7.8 13.8 11M6.2 16.2 10.2 13M17.8 16.2 13.8 13",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",opacity:"0.75"}),(0,s.jsx)("path",{d:"M12 4.2v2.2M12 17.6v2.2M4.2 12h2.2M17.6 12h2.2",stroke:"currentColor",strokeWidth:"1.35",strokeLinecap:"round",opacity:"0.55"})]})}var d=a(25589),m=a(12702),u=a(80777),x=a(91572),p=a(9280);let h="inline-flex items-center rounded-xl border border-[var(--line)] bg-[var(--surface)] p-1 shadow-[0_4px_14px_rgba(26,29,35,0.05)]",b="inline-flex h-9 items-center gap-1.5 rounded-lg px-3 text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--panel-tint)] disabled:cursor-not-allowed disabled:opacity-60";function v(e){let{open:t}=e;return(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4 text-[var(--muted)] transition ".concat(t?"rotate-180":""),children:(0,s.jsx)("path",{d:"M5 7.5 10 12.5 15 7.5",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}function g(){return(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4",children:(0,s.jsx)("path",{d:"M10 3v9m0 0 3.5-3.5M10 12 6.5 8.5M4 15.5h12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function f(){return(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4",children:(0,s.jsx)("path",{d:"M12.5 11.5 16.5 7.5M16.5 7.5h-4M16.5 7.5v4M7.5 8.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm0 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm9-4.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function j(){return(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4",children:(0,s.jsx)("path",{d:"M9 3.5a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm8 13-3.5-3.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function y(){return(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4",children:(0,s.jsx)("path",{d:"M10 3.5c2.5 0 4 1.8 4 4.2v2.3l1.5 2.5H4.5L6 10V7.7c0-2.4 1.5-4.2 4-4.2Zm-1.5 11.5h3",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function N(e){let{label:t,icon:a,badge:n,open:r,onToggle:i,menuId:c,children:o}=e,d=(0,l.useRef)(null);return(0,l.useEffect)(()=>{if(!r)return;let e=e=>{d.current&&!d.current.contains(e.target)&&i()},t=e=>{"Escape"===e.key&&i()};return document.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[r,i]),(0,s.jsxs)("div",{ref:d,className:"relative z-50",children:[(0,s.jsxs)("button",{type:"button","aria-expanded":r,"aria-haspopup":"menu","aria-controls":c,onClick:i,className:b,children:[a,(0,s.jsx)("span",{children:t}),n?(0,s.jsx)("span",{className:"rounded-md bg-[rgba(16,185,129,0.12)] px-1.5 py-0.5 text-[0.68rem] font-bold text-[#059669]",children:n}):null,(0,s.jsx)(v,{open:r})]}),r?(0,s.jsx)("div",{id:c,role:"menu",className:"absolute right-0 top-[calc(100%+0.35rem)] z-50 min-w-[15rem] overflow-hidden rounded-xl border border-[var(--line)] bg-[var(--surface)] p-1.5 shadow-[0_16px_40px_rgba(26,29,35,0.14)]",children:o}):null]})}function w(e){let{label:t,description:a,active:l,disabled:n,onToggle:r}=e;return(0,s.jsxs)("button",{type:"button",role:"menuitemcheckbox","aria-checked":l,disabled:n,onClick:r,className:"flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2.5 text-left transition hover:bg-[var(--panel-tint)] disabled:cursor-not-allowed disabled:opacity-60",children:[(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"block text-sm font-semibold text-[var(--ink)]",children:t}),(0,s.jsx)("span",{className:"mt-0.5 block text-xs text-[var(--muted)]",children:a})]}
1),(0,s.jsx)("span",{"aria-hidden":!0,className:"relative inline-flex h-6 w-11 shrink-0 rounded-full transition ".concat(l?"bg-[rgba(16,185,129,0.85)]":"bg-[rgba(32,44,104,0.18)]"),children:(0,s.jsx)("span",{className:"absolute top-0.5 size-5 rounded-full bg-white shadow-sm transition ".concat(l?"left-[1.35rem]":"left-0.5")})})]})}function k(e){let{result:t,user:a,pdfBusy:n,competitorsBusy:r,shareBusy:i,revokeBusy:c,watchBusy:o,shareCopied:d,onDownloadPdf:m,onFindCompetitors:u,onShareReport:x,onRevokeShare:v,onToggleWatch:k}=e,_=(0,l.useId)(),S=(0,l.useId)(),[C,L]=(0,l.useState)(!1),[I,A]=(0,l.useState)(!1),M=[t.is_watching,t.watch_content,t.watch_uptime,t.watch_visual].filter(Boolean).length,E=!t.share_revoked,R=!!(a&&t.share_token&&!t.share_revoked),T=!!(t.site_id&&a);return(0,s.jsxs)("div",{className:"relative z-20 flex max-w-full flex-wrap items-center justify-end gap-2 overflow-visible",children:[(0,s.jsxs)("button",{type:"button",onClick:m,disabled:n,className:"btn-primary inline-flex h-9 items-center gap-1.5 rounded-xl px-3.5 text-sm font-semibold shadow-[0_8px_20px_rgba(32,44,104,0.22)] disabled:opacity-60",children:[(0,s.jsx)(g,{}),n?"Preparing…":(0,p.vJ)(a)?"Download Report":"Download Report \xb7 Pro"]}),(0,s.jsxs)("div",{className:h,children:[E?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(N,{label:d?"Copied!":"Share",icon:(0,s.jsx)(f,{}),open:C,menuId:_,onToggle:()=>{L(e=>!e),A(!1)},children:[(0,s.jsxs)("button",{type:"button",role:"menuitem",disabled:i,onClick:()=>{x(),L(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2.5 text-left text-sm font-semibold text-[var(--ink)] transition hover:bg-[var(--panel-tint)] disabled:opacity-60",children:[(0,s.jsx)(f,{}),i?"Copying…":"Copy share link"]}),R?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"my-1 h-px bg-[var(--line)]"}),(0,s.jsx)("button",{type:"button",role:"menuitem",disabled:c,onClick:()=>{v(),L(!1)},className:"flex w-full items-center rounded-lg px-3 py-2.5 text-left text-sm font-semibold text-[var(--danger-text)] transition hover:bg-[var(--danger-bg)] disabled:opacity-60",children:c?"Revoking…":"Revoke link"})]}):null]}),(0,s.jsx)("span",{className:"mx-0.5 h-5 w-px bg-[var(--line)]","aria-hidden":!0})]}):null,(0,s.jsxs)("button",{type:"button",onClick:u,disabled:r,className:b,children:[(0,s.jsx)(j,{}),r?"Finding…":"Find competitors"]})]}),T?(0,s.jsx)("div",{className:h,children:(0,s.jsxs)(N,{label:"Monitor",icon:(0,s.jsx)(y,{}),badge:M>0?"".concat(M," on"):null,open:I,menuId:S,onToggle:()=>{A(e=>!e),L(!1)},children:[(0,s.jsx)("p",{className:"px-3 pb-1 pt-1.5 text-[0.68rem] font-semibold tracking-[0.12em] text-[var(--muted)] uppercase",children:"Alerts for this site"}),(0,s.jsx)(w,{label:"Tech stack",description:"Email when plugins or platforms change",active:!!t.is_watching,disabled:o,onToggle:()=>k("tech")}),(0,s.jsx)(w,{label:"Articles",description:"Notify on new or updated pages",active:!!t.watch_content,disabled:o,onToggle:()=>k("content")}),(0,s.jsx)(w,{label:"Uptime",description:"Alert when the site goes down",active:!!t.watch_uptime,disabled:o,onToggle:()=>k("uptime")}),(0,s.jsx)(w,{label:"Visual",description:"Catch major layout or design shifts",active:!!t.watch_visual,disabled:o,onToggle:()=>k("visual")})]})}):null]})}var _=a(68413),S=a(63078);function C(e){return"number"!=typeof e||Number.isNaN(e)?null:e>=1e6?"".concat((e/1e6).toFixed(+(e%1e6!=0)),"M"):e>=1e3?"".concat((e/1e3).toFixed(+(e%1e3!=0)),"K"):String(e)}function L(e){var t,a,l;let{platform:n}=e,r=[C(n.followers)?"".concat(C(n.followers)," followers"):null,C(n.following)?"".concat(C(n.following)," following"):null,C(n.posts)?"".concat(C(n.posts)," posts"):null].filter(Boolean),i=n.candidate_url||n.url,c=n.verified_url||("found"===n.status?n.final_url:null),o="login_wall"===(t=n.failure_reason)?"This platform requires sign-in for the public profile check.":"blocked_or_rate_limited"===t?"This platform restricted the automated public check.":"network_error"===t||"network_or_upstream_error"===t?"The check failed temporarily. Try again later.":"identity_mismatch"===t?"The page did n
1ot provide enough matching identity evidence.":"redirected_away_from_profile"===t?"The candidate redirected to a generic or sign-in page.":t&&"not_found"!==t?"Hazana could not reliably verify this candidate.":null,d=n.checked_at?new Date(n.checked_at).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"short"}):null;return(0,s.jsxs)("article",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:n.name}),n.handle?(0,s.jsxs)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:["@",n.handle]}):null]}),(0,s.jsx)("p",{className:"shrink-0 text-xs font-semibold tracking-wide uppercase ".concat("found"===(a=n.status)?"text-[var(--accent)]":"missing"===a||"error"===a?"text-[var(--warn)]":"text-[var(--muted)]"),children:"found"===(l=n.status)?"Verified":"missing"===l?"Not found":"error"===l?"Check failed":"likely"===l?"Likely profile":"Unverified"})]}),n.image_url&&"found"===n.status?(0,s.jsx)("img",{src:n.image_url,alt:"",className:"mt-3 h-12 w-12 rounded-full object-cover"}):null,n.title?(0,s.jsx)("p",{className:"mt-3 line-clamp-2 text-sm font-medium text-[var(--ink)]",children:n.title}):null,r.length>0?(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--accent)]",children:r.join(" \xb7 ")}):null,n.bio?(0,s.jsx)("p",{className:"mt-1 line-clamp-3 text-sm text-[var(--muted)]",children:n.bio}):null,o?(0,s.jsxs)("div",{className:"mt-3 text-sm text-[var(--muted)]",children:[(0,s.jsx)("p",{children:o}),"unverified"===n.status?(0,s.jsx)("p",{className:"mt-1",children:"This does not mean the profile is missing."}):null]}):null,(n.emails||[]).length>0||(n.phones||[]).length>0?(0,s.jsxs)("div",{className:"mt-2 space-y-1 text-sm text-[var(--muted)]",children:[(n.emails||[]).map(e=>(0,s.jsxs)("p",{children:["Email:"," ",(0,s.jsx)("a",{href:"mailto:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e)),(n.phones||[]).map(e=>(0,s.jsxs)("p",{children:["Phone:"," ",(0,s.jsx)("a",{href:"tel:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e))]}):null,c||i?(0,s.jsxs)("a",{href:c||i,target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:[c?"View verified profile":"Open candidate profile"," →"]}):null,d?(0,s.jsxs)("p",{className:"mt-2 text-xs text-[var(--muted)]",children:["Last checked ",d]}):null]})}function I(e){let{result:t}=e,a=t.platforms.filter(e=>"found"===e.status),l=t.platforms.filter(e=>"missing"===e.status),n=t.platforms.filter(e=>"unverified"===e.status||"unknown"===e.status),r=t.platforms.filter(e=>"error"===e.status),i=t.emails||[],c=t.phones||[];return(0,s.jsxs)("section",{id:"brand-social-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Brand presence"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Social profile check"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:["Query: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:t.query}),t.handle?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 handle ",(0,s.jsxs)("span",{className:"text-[var(--ink)]",children:["@",t.handle]})]}):null]})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Coverage"}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight text-[var(--ink)]",children:t.label}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:t.summary}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-4 text-sm",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--accent)]",children:t.found_count})," ",(0,s.jsx)("span",{className:"text-[var(--muted)]",children:"verified"})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--warn)]",children:t.missing_count})," ",(0,s.jsx)("span",{className:"text-[var(--muted)]",children:"confirmed missing"})]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:t.unknown_count})," ",(0,s.jsx)("span",{className:"text-[var(--muted)]",children:"unverified"})]}),"number"==typeof t.score&&(t.evidence_coverage||0)>=50?(0,s.jsxs)("p",{className:"tabular-nums text-[var(--muted)]",children:["Observable presence ",t.score,"/100"]}):null,(0,s.jsxs)("p",{className:"tabular-nums text-[var(--muted)]",children:["Evidence coverage ",t.evidence_coverage||0,"%"]})]}),i.length>0||c.length>0?(0,s.jsxs)("div",{className:"mt-5 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:"Public contacts found"}),(0,s.jsxs)("div",{className:"mt-2 space-y-1 text-sm text-[var(--muted)]",children:[i.map(e=>(0,s.jsxs)("p",{children:["Email:"," ",(0,s.jsx)("a",{href:"mailto:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e)),c.map(e=>(0,s.jsxs)("p",{children:["Phone:"," ",(0,s.jsx)("a",{href:"tel:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e))]})]}):(0,s.jsx)("p",{className:"mt-5 text-sm text-[var(--muted)]",children:"No public email or phone was exposed on the readable profile pages."})]}),a.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Verified profiles"}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:a.map(e=>(0,s.jsx)(L,{platform:e},e.id))})]}):null,l.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Confirmed missing"}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:l.map(e=>(0,s.jsx)(L,{platform:e},e.id))})]}):null,n.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Unverified"}),(0,s.jsx)("p",{className:"text-sm text-[var(--muted)]",children:"These platforms blocked or gated the check. Follower counts and contacts are only shown when the page is publicly readable. Unverified does not mean the profile is missing."}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:n.map(e=>(0,s.jsx)(L,{platform:e},e.id))})]}):null,r.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Temporary errors"}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:r.map(e=>(0,s.jsx)(L,{platform:e},e.id))})]}):null]})}function A(e){var t;let{result:a}=e,l=String(a.visibility||a.visible||"no"),n=a.competitors||[],r=a.fix_pages||[];return(0,s.jsxs)("section",{id:"ai-visibility-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"GEO / AI visibility"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Would AI assistants mention this brand?"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:["Topic: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:a.query}),a.brand?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 brand ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:a.brand})]}):null]})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Result"}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight ".concat("yes"===l?"text-[var(--accent)]":"partial"===l?"text-[#f0b446]":"text-[var(--warn)]"),children:a.label||l}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:a.summary}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-4 text-sm text-[var(--muted)]",children:[(0,s.jsxs)("p",{children:["Visibility"," ",(0,s.jsx)("span",{className:"font-semibold uppercase text-[var(--ink)]",children:l})]}),(0,s.jsxs)("p",{children:["Score ",(0,s.jsxs)("span",{className:"font-semibold text-[var(--ink)]",children:[null!=(t=a.score)?t:0,"/100"]})]})]}),"ok"!==a.status&&a.detail?(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:a.detail}):null,(0,s.jsx)("p",{className:"mt-4 text-xs text-[var(--muted)]",children:"Estimate for how assistants may recommend brands for this topic — not a guarantee of rankings or traffic."})]}),n.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Brands AI may recommend instead"}),(0,s.jsx)("div",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:n.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.name}),e.domain?(0,s.jsx)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:e.domain}):null,e.why?(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:e.why}):null]},"".concat(e.name,"-").concat(e.domain)))})]}):null,r.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Suggested pages to improve GEO"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:"Generic content ideas an assistant can cite — adapt paths to your site."}),(0,s.jsx)("ul",{className:"mt-4 space-y-3",children:r.map(e=>(0,s.jsxs)("li",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.title}),e.path_hint?(0,s.jsx)("code",{className:"text-xs text-[var(--accent)]",children:e.path_hint}):null]}),e.why?(0,s.jsx)("p",{className:"mt-1.5 text-sm text-[var(--muted)]",children:e.why}):null]},"".concat(e.title,"-").concat(e.path_hint)))})]}):null]})}let M=[{key:"website",href:"/website-scan",label:"Website scan",scanMode:"stack"},{key:"compare",href:"/compare-sites",label:"Compare sites",scanMode:"compare"},{key:"competitors",href:"/find-competitors",label:"Find competitors"},{key:"company",href:"/company-research",label:"Company research",scanMode:"company-dossier"},{key:"person",href:"/person-research",label:"Person research",scanMode:"person-dossier"},{key:"social",href:"/social-profiles",label:"Social profiles",scanMode:"brand-social"},{key:"name",href:"/name-taken",label:"Name taken?",scanMode:"name-research"},{key:"trends",href:"/google-trends",label:"Google Trends"},{key:"jobs",href:"/career-intelligence",label:"Career Intelligence"}];function E(e){let t=null==e?void 0:e.trim();return t?"/google-trends?q=".concat(encodeURIComponent(t)):"/google-trends"}function R(e){let{result:t}=e,a=t.domains||[],l=t.results||[],n=(t.focus_domain||"").trim();return(0,s.jsxs)("section",{id:"share-of-voice-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Share of voice"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Who shows up for this keyword?"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:["Keyword: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:t.keyword}),n?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 your domain ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:n})]}):null]})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Result"}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight text-[var(--ink)]",children:t.label||"Share of voice"}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:t.summary}),n?(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-4 text-sm text-[var(--muted)]",children:[(0,s.jsxs)("p",{children:["Your rank"," ",(0,s.jsx)("span",{className:"font-semibold text-[var(--ink)]",children:null!=t.your_rank?"#".concat(t.your_rank):"—"})]}),(0,s.jsxs)("p",{children:["Your share"," ",(0,s.jsxs)("span",{className:"font-semibold text-[var(--ink)]",children:[Number(t.your_share||0).toFixed(1),"%"]})]})]}):null,"ok"!==t.status&&t.detail?(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:t.detail}):null,(0,s.jsx)("p",{className:"mt-4 text-xs text-[var(--muted)]",children:"Rank-weighted share from the top 10 Google organic results. Not paid ads, not AI Overviews, and not a guarantee of traffic."}),(0,s.jsxs)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:["Also see"," ",(0,s.jsx)(r(),{href:E(t.keyword),className:"font-semibold text-[var(--accent)] underline-offset-2 hover:underline",children:"search interest over time"})," ","for this keyword."]})]}),a.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Domain share"}),(0,s.jsx)("ul",{className:"mt-4 space-y-3",children:a.map(e=>(0,s.jsxs)("li",{className:"rounded-xl border px-4 py-3 ".concat(e.is_you?"border-[rgba(46,196,167,0.45)] bg-[rgba(46,196,167,0.08)]":"border-[var(--line)] bg-[var(--panel-tint)]"),children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,s.jsxs)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:[e.domain,e.is_you?(0,s.jsx)("span",{className:"ml-2 text-xs font-semibold text-[var(--accent)]",children:"you"}):null]}),(0,s.jsxs)("p",{className:"text-sm font-semibold tabular-nums text-[var(--ink)]",children:[Number(e.share||0).toFixed(1),"%"]})]}),(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap gap-3 text-xs text-[var(--muted)]",children:[null!=e.best_rank?(0,s.jsxs)("span",{children:["Best rank #",e.best_rank]}):null,(0,s.jsxs)("span",{children:[e.count," result",1===e.count?"":"s"]})]}),(0,s.jsx)("div",{className:"mt-2 h-1.5 overflow-hidden rounded-full bg-[var(--line)]","aria-hidden":!0,
1children:(0,s.jsx)("div",{className:"h-full rounded-full bg-[var(--accent)]",style:{width:"".concat(Math.min(100,Math.max(2,Number(e.share)||0)),"%")}})})]},e.domain))})]}):null,l.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Organic top 10"}),(0,s.jsx)("ol",{className:"mt-4 space-y-3",children:l.map(e=>(0,s.jsx)("li",{className:"rounded-xl border px-4 py-3 ".concat(e.is_you?"border-[rgba(46,196,167,0.45)] bg-[rgba(46,196,167,0.08)]":"border-[var(--line)] bg-[var(--panel-tint)]"),children:(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsx)("span",{className:"w-6 shrink-0 text-sm font-semibold tabular-nums text-[var(--muted)]",children:e.position}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:[e.title||e.domain||"Untitled",e.is_you?(0,s.jsx)("span",{className:"ml-2 text-xs font-semibold text-[var(--accent)]",children:"you"}):null]}),(0,s.jsx)("p",{className:"mt-0.5 truncate text-xs text-[var(--accent)]",children:e.url||e.domain}),e.snippet?(0,s.jsx)("p",{className:"mt-1.5 text-sm text-[var(--muted)]",children:e.snippet}):null]})]})},"".concat(e.position,"-").concat(e.url)))})]}):null]})}var T=a(90960),B=a(80516);let z={about:"About",pricing:"Pricing",services:"Services",products:"Products",courses:"Courses",features:"Features",contact:"Contact"};function q(e){var t,a,n;let{result:i,brief:c,briefBusy:o}=e,[d,m]=(0,l.useState)("Copy AI brief"),u=i.profile,x=i.contacts,p=i.ssl,h=i.threat,b=i.social,v=((null==b?void 0:b.platforms)||[]).filter(e=>"found"===e.status),g=i.linkedin,f=i.mentions||[],j=i.reddit_discussions,y=(null==j?void 0:j.posts)||[],N=i.domain_age,w=i.pages||[],k=i.menu_items||[],_=(null==x||null==(t=x.emails)?void 0:t.length)?x.emails:(null==u?void 0:u.emails)||[],S=(null==x||null==(a=x.phones)?void 0:a.length)?x.phones:(null==u?void 0:u.phones)||[],C=(null==x?void 0:x.addresses)||[],L=_.length>0||S.length>0||C.length>0,I=T.nrj||o||(null==c?void 0:c.status)==="ok"||!!(null==c?void 0:c.detail);async function A(){if(!c||"ok"!==c.status)return;let e=function(e,t){var a;let s=[],l=e.headline||(null==(a=t.profile)?void 0:a.name)||t.query;for(let a of(s.push("Company brief — ".concat(l)),t.website&&s.push("Website: ".concat(t.website)),e.overview&&s.push("",e.overview),e.bullets||[]))a.title&&a.text&&s.push("","".concat(a.title,": ").concat(a.text));return s.join("\n").trim()}(c,i);try{await navigator.clipboard.writeText(e),m("Copied"),window.setTimeout(()=>m("Copy AI brief"),2e3)}catch(e){m("Copy failed"),window.setTimeout(()=>m("Copy AI brief"),2e3)}}return(0,s.jsxs)("section",{id:"company-dossier-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Company dossier"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Company intelligence"}),i.cached?(0,s.jsx)("p",{className:"mt-2 text-xs font-medium text-[var(--muted)]",children:"Served from saved lookup."}):null,(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:["Query: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:i.query}),i.country_label?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 country ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:i.country_label})]}):null,i.name?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 name ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:i.name})]}):null]})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Summary"}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight text-[var(--ink)]",children:i.label}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:i.summary}),i.website?(0,s.jsxs)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:["Website:"," ",(0,s.jsx)("a",{href:i.website,target:"_blank",rel:"noreferrer",className:"font-semibold text-[var(--accent)] hover:underline",children:i.website})]}):null,i.scan_error?(0,s.jsx)("p",{className:"mt-3 text-sm text-[var(--warn)]",children:i.scan_error}):null,i.website?(0,s.jsx)("div",{className:"mt-4 flex flex-wrap gap-3",children:(0,s.jsx)(r(),{href:function(e){let t=e.trim();if(!t)return"/website-scan";let a=/^https?:\/\//i.test(t)?t:"https://".concat(t);return"/website-scan?url=".concat(encodeURIComponent(a))}(i.website),className:"inline-flex items-center rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-2.5 text-sm font-semibold text-[var(--accent)] hover:brightness-[1.02]",children:"Run full website scan →"})}):null]}),I?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"AI company brief"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:"Narrative summary from the dossier data — free, does not use a scan credit."})]}),(null==c?void 0:c.status)==="ok"?(0,s.jsx)("button",{type:"button",onClick:()=>void A(),className:"rounded-lg border border-[var(--line)] px-3 py-1.5 text-xs font-semibold text-[var(--ink)] hover:bg-[var(--panel-tint)]",children:d}):null]}),!o||(null==c?void 0:c.overview)?null:(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:"Writing company brief…"}),(null==c?void 0:c.status)==="ok"?(0,s.jsxs)("div",{className:"mt-4 space-y-3",children:[c.headline?(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:c.headline}):null,c.overview?(0,s.jsx)("p",{className:"text-sm leading-relaxed text-[var(--muted)]",children:c.overview}):null,(c.bullets||[]).length?(0,s.jsx)("ul",{className:"space-y-3",children:(c.bullets||[]).map(e=>(0,s.jsxs)("li",{className:"text-sm",children:[(0,s.jsxs)("span",{className:"font-semibold text-[var(--ink)]",children:[e.title,": "]}),(0,s.jsx)("span",{className:"text-[var(--muted)]",children:e.text})]},e.title))}):null]}):c&&"ok"!==c.status&&!o?(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:c.detail||"AI brief unavailable right now."}):null]}):null,(null==h?void 0:h.checked)?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border p-5 sm:p-6 ".concat(h.listed?"border-[var(--danger-line)] bg-[var(--danger-bg)]":"border-[var(--line)] bg-[var(--surface)]"),children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Public safety"}),(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed ".concat(h.listed?"text-[var(--danger-text)]":"text-[var(--muted)]"),children:h.detail||(h.listed?"This host appears on public malware or phishing lists.":"No known malware or phishing listings for this host.")})]}):null,u&&(u.name||u.description||u.title)?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Profile"}),(0,s.jsx)("p",{className:"mt-2 text-lg font-semibold text-[var(--ink)]",children:u.name||u.title||i.query}),u.description?(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--muted)]",children:u.description}):null]}):null,L?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Contact"}),(0,s.jsxs)("div",{className:"mt-3 space-y-2 text-sm text-[var(--muted)]",children:[_.slice(0,5).map(e=>(0,s.jsxs)("p",{children:["Email:"," ",(0,s.jsx)("a",{href:"mailto:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e)),S.slice(0,5).map(e=>(0,s.jsxs)("p",{children:["Phone:"," ",(0,s.jsx)("a",{href:"tel:".concat(e),className:"text-[var(--accent)] hover:underline",children:e})]},e)),C.map(e=>(0,s.jsxs)("p",{children:["Address: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:e})]},e))]})]}):null,p?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Website SSL"}),(0,s.jsxs)("div",{className:"mt-3 space-y-1 text-sm text-[var(--muted)]",children:[(0,s.jsxs)("p",{children:["HTTPS:"," ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:p.https?"Yes":"No"})]}),p.present?(0,s.jsxs)(s.Fragment,{children:[p.grade?(0,s.jsxs)("p",{children:["Grade: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:p.grade})]}):null,null!=p.days_remaining?(0,s.jsxs)("p",{children:["Expires in:"," ",(0,s.jsxs)("span",{className:"text-[var(--ink)]",children:[p.days_remaining," days"]})]}):null,p.expires_at?(0,s.jsxs)("p",{children:["Expiry: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:p.expires_at.slice(0,10)})]}):null,p.issuer?(0,s.jsxs)("p",{children:["Issuer: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:p.issuer})]}):null]}):null,p.detail?(0,s.jsx)("p",{className:"mt-2 text-[var(--ink)]",children:p.detail}):null]})]}):null,N&&(N.domain||N.registrar||null!=N.age_years)?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Domain"}),(0,s.jsxs)("div",{className:"mt-3 space-y-1 text-sm text-[var(--muted)]",children:[N.domain?(0,s.jsxs)("p",{children:["Domain: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:N.domain})]}):null,null!=N.age_years?(0,s.jsxs)("p",{children:["Age: ",(0,s.jsxs)("span",{className:"text-[var(--ink)]",children:[N.age_years," years"]})]}):null,N.registrar?(0,s.jsxs)("p",{children:["Registrar: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:N.registrar})]}):null]})]}):null,w.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Key pages"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:"About, pricing, services, and other pages found on the site."}),(0,s.jsx)("div",{className:"mt-4 space-y-4",children:w.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"rounded-md bg-[var(--surface)] px-2 py-0.5 text-xs font-semibold text-[var(--accent)]",children:function(e){let t=(e||"other").trim();return z[t]||t.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e.kind)}),(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[var(--accent)] hover:underline",children:e.title||e.url})]}),e.excerpt?(0,s.jsx)("p",{className:"mt-2 line-clamp-4 text-sm leading-relaxed text-[var(--muted)]",children:e.excerpt}):null]},e.url))})]}):null,k.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Menu & offerings"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:"Services, products, or plans linked from the site navigation."}),(0,s.jsx)("ul",{className:"mt-4 space-y-2",children:k.map(e=>(0,s.jsxs)("li",{className:"flex flex-wrap items-baseline justify-between gap-2 rounded-lg border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-sm",children:[(0,s.jsx)("span",{className:"font-medium text-[var(--ink)]",children:e.url?(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"hover:underline",children:e.name}):e.name}),e.price?(0,s.jsx)("span",{className:"text-[var(--muted)] tabular-nums",children:e.price}):null]},"".concat(e.name,"-").concat(e.url||"no-url")))})]}):null,g&&("found"===g.status||"link_only"===g.status||g.url&&"skipped"!==g.status)?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"LinkedIn company"}),"found"===g.status?(0,s.jsxs)("div",{className:"mt-3 space-y-2 text-sm text-[var(--muted)]",children:[(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:g.name||i.query}),g.tagline?(0,s.jsx)("p",{className:"text-[var(--ink)]",children:g.tagline}):null,g.description?(0,s.jsx)("p",{className:"leading-relaxed",children:g.description}):null,g.industry?(0,s.jsxs)("p",{children:["Industry: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:g.industry})]}):null,g.employee_range?(0,s.jsxs)("p",{children:["Size: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:g.employee_range}),null!=g.headcount?(0,s.jsxs)("span",{className:"text-[var(--muted)]",children:[" \xb7 ",g.headcount," on LinkedIn"]}):null]}):null,g.headquarters?(0,s.jsxs)("p",{children:["HQ: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:g.headquarters})]}):null,g.company_type?(0,s.jsxs)("p",{children:["Type: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:g.company_type}),g.founded_year?(0,s.jsxs)("span",{className:"text-[var(--muted)]",children:[" \xb7 founded ",g.founded_year]}):null]}):null,(g.specialties||[]).length?(0,s.jsxs)("p",{children:["Specialties:"," ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:(g.specialties||[]).join(", ")})]}):null,null!=g.follower_count?(0,s.jsxs)("p",{children:["Followers:"," ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:g.follower_count.toLocaleStr
1ing()})]}):null]}):(0,s.jsx)("p",{className:"mt-3 text-sm text-[var(--muted)]",children:"LinkedIn company page found."}),g.url?(0,s.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"mt-4 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:"Open LinkedIn profile →"}):null]}):null,f.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"News & mentions"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:"Recent articles and pages mentioning this company."}),(0,s.jsx)("div",{className:"mt-4 space-y-4",children:f.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[var(--accent)] hover:underline",children:e.title||e.url}),e.publisher||e.date?(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:[e.publisher,e.date].filter(Boolean).join(" \xb7 ")}):null,e.snippet?(0,s.jsx)("p",{className:"mt-2 line-clamp-3 text-sm leading-relaxed text-[var(--muted)]",children:e.snippet}):null]},e.url))})]}):null,y.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Reddit discussions"}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:["Recent posts mentioning"," ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:(null==j?void 0:j.query)||i.query})," from public Reddit search."]}),(0,s.jsx)("div",{className:"mt-4 space-y-4",children:y.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[var(--accent)] hover:underline",children:e.title||e.url}),(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:[e.subreddit?"r/".concat(e.subreddit.replace(/^r\//i,"")):null,e.author?"u/".concat(e.author):null,null!=e.score?"".concat(e.score," pts"):null,null!=e.comments_count?"".concat(e.comments_count," comments"):null,e.published_at].filter(Boolean).join(" \xb7 ")}),e.snippet?(0,s.jsx)("p",{className:"mt-2 line-clamp-3 text-sm leading-relaxed text-[var(--muted)]",children:e.snippet}):null]},e.url||e.title))})]}):null,b?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:["Social media",v.length>0?" (".concat(null!=(n=b.found_count)?n:v.length," found)"):""]}),b.label?(0,s.jsx)("p",{className:"text-sm text-[var(--muted)]",children:b.label}):null,v.length>0?(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:v.map(e=>{let t=[];return null!=e.followers&&t.push("youtube"===e.id?"".concat((0,B.eX)(e.followers)," subscribers"):"".concat((0,B.eX)(e.followers)," followers")),null!=e.following&&t.push("".concat((0,B.eX)(e.following)," following")),null!=e.posts&&t.push("".concat((0,B.eX)(e.posts)," posts")),(0,s.jsxs)("article",{className:"rounded-xl border border-[var(--line)] bg-[var(--surface)] p-4",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.name}),e.title?(0,s.jsx)("p",{className:"mt-1 text-sm font-medium text-[var(--ink)]",children:e.title}):null,t.length>0?(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:t.join(" \xb7 ")}):(0,s.jsx)("p",{className:"mt-2 text-xs text-[var(--muted)]",children:"Public metrics unavailable — link verified from website"}),e.bio?(0,s.jsx)("p",{className:"mt-2 line-clamp-3 text-sm text-[var(--muted)]",children:e.bio}):null,e.url?(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:"Open profile →"}):null]},"".concat(e.id||e.name,"-").concat(e.url))})}):(0,s.jsx)("p",{className:"text-sm text-[var(--muted)]",children:"No social profiles linked from the website."})]}):null]})}let P=[{match:/github\.com/i,meta:{id:"github",label:"GitHub",color:"#24292f"}},{match:/linkedin\.com/i,meta:{id:"linkedin",label:"LinkedIn",color:"#0a66c2"}},{match:/facebook\.com|fb\.com/i,meta:{id:"facebook",label:"Facebook",color:"#1877f2"}},{match:/instagram\.com/i,meta:{id:"instagram",label:"Instagram",color:"#e4405f"}},{match:/twitter\.com|x\.com/i,meta:{id:"x",label:"X",color:"#14171a"}},{match:/youtube\.com|youtu\.be/i,meta:{id:"youtube",label:"YouTube",color:"#ff0000"}},{match:/tiktok\.com/i,meta:{id:"tiktok",label:"TikTok",color:"#010101"}},{match:/crunchbase\.com/i,meta:{id:"crunchbase",label:"Crunchbase",color:"#0288d1"}},{match:/c-sharpcorner\.com/i,meta:{id:"csharp_corner",label:"C# Corner",color:"#68217a"}}];function F(e){for(let t of P)if(t.match.test(e))return t.meta;try{let t=new URL(e).hostname.replace(/^www\./,"");return{id:"web",label:t||"Website",color:"var(--accent)"}}catch(e){return{id:"web",label:"Website",color:"var(--accent)"}}}function W(e){try{let t=new URL(e).hostname;return"https://www.google.com/s2/favicons?domain=".concat(encodeURIComponent(t),"&sz=32")}catch(e){return}}function D(e){let{name:t,photoUrl:a,className:l="h-14 w-14"}=e,n=function(e){if(e)return"/api/social-preview/image?url=".concat(encodeURIComponent(e))}
1(a),r=t.split(/\s+/).filter(Boolean).slice(0,2).map(e=>{var t;return(null==(t=e[0])?void 0:t.toUpperCase())||""}).join("");return n?(0,s.jsx)("img",{src:n,alt:"",className:"".concat(l," shrink-0 rounded-2xl border border-[var(--line)] object-cover bg-[var(--bg)]"),onError:e=>{e.currentTarget.style.display="none"}}):(0,s.jsx)("div",{className:"".concat(l," flex shrink-0 items-center justify-center rounded-2xl border border-[var(--line)] bg-[var(--panel-tint)] text-sm font-semibold text-[var(--accent)]"),"aria-hidden":!0,children:r||"?"})}function U(e){let{url:t}=e,a=F(t),l=W(t);return(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-lg border border-[var(--line)] bg-[var(--panel-tint)] px-2 py-1 text-[11px] font-semibold text-[var(--ink)]",children:[l?(0,s.jsx)("img",{src:l,alt:"",className:"h-3.5 w-3.5 rounded-sm"}):null,(0,s.jsx)("span",{style:{color:"var(--accent)"===a.color?void 0:a.color},children:a.label})]})}function O(e){let{candidates:t,summary:a,disclaimer:l,inputType:n,loading:r,cachedCandidateIds:i=[],quotaBlocked:c=!1,onSelect:o}=e;if(!t.length)return null;let d=new Set(i),m=function(e){switch(e){case"email":return{title:"How we find these matches",paragraphs:["Hazana searches public web pages where your email address appears in the text — contact pages, author bios, directories, and similar.","Each card is a different website, not a duplicate of the same person. We do not auto-pick one; you confirm which page belongs to the person you mean.","If you added a personal website, we check that page first before searching the wider public web."]};case"phone":return{title:"How we find these matches",paragraphs:["Hazana searches public web pages that mention this phone number — business listings, contact pages, and public directories.","Each card is a separate site. We only use information already published on the open web; no carrier or subscriber records.","Add a personal website or location to check a specific page directly and improve regional results."]};case"username":return{title:"How we find these matches",paragraphs:["Hazana checks major platforms (LinkedIn, GitHub, Instagram, and others) for public profiles that use this handle.","Each card is one profile on one platform. Pick the account that matches the person you are researching."]};default:return{title:"How we find these matches",paragraphs:["Hazana searches public web sources for pages that mention the name you entered — profiles, articles, government sites, and personal websites.","Each card is one separate page or profile. For common names, results often include different people who share the same name. Hazana does not guess which one you mean.","The match % is a ranking hint: higher scores usually mean a direct profile (e.g. LinkedIn) or a site whose URL matches the name; lower scores (~40%) mean the name appears on the page but identity is not confirmed.","You pick the right card — the dossier is built only from that selection. Add company, city, or a personal website to narrow results."]}}}(n);return(0,s.jsxs)("section",{id:"person-candidate-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Person research"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Pick the right person"}),a?(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--muted)]",children:a}):(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:"Several sites may match your search. Each card is a separate entity — pick the one you want; the dossier is built from that selection only."}),"phone"===n?(0,s.jsx)("p",{className:"mt-2 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-xs leading-relaxed text-[var(--muted)]",children:"Public web mentions only — no carrier, line type, or subscriber records."}):null,(0,s.jsxs)("details",{className:"mt-4 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-3",children:[(0,s.jsx)("summary",{className:"cursor-pointer text-sm font-semibold text-[var(--ink)]",children:m.title}),(0,s.jsx)("div",{className:"mt-3 space-y-2 text-xs leading-relaxed text-[var(--muted)]",children:m.paragraphs.map(e=>(0,s.jsx)("p",{children:e},e))})]}),l?(0,s.jsx)("p",{className:"mt-2 text-xs leading-relaxed text-[var(--muted)]",children:l}):null]}),(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:t.map(e=>{var t,a;let l=d.has(e.id),n=e.primary_url||(null==(t=e.source_urls)?void 0:t[0])||"",i="Build dossier (1 credit)";return r?i="Building dossier…":l?i="View dossier (free)":c&&(i="Daily limit reached"),(0,s.jsxs)("article",{className:"flex flex-col rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,s.jsx)(D,{name:e.name,photoUrl:e.photo_url}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:e.name}
1),e.title?(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:e.title}):null,e.handle?(0,s.jsxs)("p",{className:"mt-1 text-xs font-medium text-[var(--muted)]",children:["@",e.handle]}):null,e.company||e.location?(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:[e.company,e.location].filter(Boolean).join(" \xb7 ")}):null]})]}),(0,s.jsxs)("span",{className:"shrink-0 rounded-lg border border-[var(--line)] bg-[var(--panel-tint)] px-2.5 py-1 text-xs font-semibold tabular-nums text-[var(--ink)]",title:(a=e.confidence)>=70?"Strong match — likely a direct profile or a site closely tied to this name.":a>=55?"Moderate match — the name appears on this page; confirm it is the right person.":"Weak match — the name is mentioned on this page, but it may be a different person with the same name.",children:[e.confidence,"% match"]})]}),n?(0,s.jsx)("div",{className:"mt-3",children:(0,s.jsx)(U,{url:n})}):null,e.snippet?(0,s.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-relaxed text-[var(--muted)]",children:e.snippet}):null,n?(0,s.jsxs)("p",{className:"mt-3 truncate text-xs text-[var(--muted)]",children:["Source:"," ",(0,s.jsx)("a",{href:n,target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] hover:underline",children:n})]}):null,(0,s.jsx)("button",{type:"button",disabled:r||!(l||!c),onClick:()=>o(e),className:"mt-5 inline-flex items-center justify-center rounded-xl bg-[var(--accent)] px-4 py-3 text-sm font-semibold text-[var(--on-accent)] transition hover:brightness-110 disabled:opacity-60",children:i})]},e.id)})})]})}let G=/\[(src_\d+|social_[a-z0-9_]+|match_[a-z0-9_]+)\]/gi;function H(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch(t){return e}}function V(e){let{name:t,photoUrl:a,className:l="h-20 w-20"}=e,n=function(e){if(e)return"/api/social-preview/image?url=".concat(encodeURIComponent(e))}(a),r=t.split(/\s+/).filter(Boolean).slice(0,2).map(e=>{var t;return(null==(t=e[0])?void 0:t.toUpperCase())||""}).join("");return n?(0,s.jsx)("img",{src:n,alt:"",className:"".concat(l," shrink-0 rounded-2xl border border-[var(--line)] object-cover bg-[var(--bg)] shadow-sm"),onError:e=>{e.currentTarget.style.display="none"}}):(0,s.jsx)("div",{className:"".concat(l," flex shrink-0 items-center justify-center rounded-2xl border border-[var(--line)] bg-[var(--panel-tint)] text-lg font-semibold text-[var(--accent)] shadow-sm"),"aria-hidden":!0,children:r||"?"})}function Y(e){let{children:t}=e;return(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:t})}function K(e){let{label:t,value:a}=e;return(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-center min-w-[5.5rem]",children:[(0,s.jsx)("p",{className:"text-lg font-semibold tabular-nums text-[var(--ink)]",children:a}),(0,s.jsx)("p",{className:"mt-0.5 text-[10px] font-semibold uppercase tracking-wide text-[var(--muted)]",children:t})]})}function Z(e){let{children:t}=e;return(0,s.jsx)("span",{className:"inline-flex items-center rounded-lg border border-[var(--line)] bg-[var(--panel-tint)] px-2.5 py-1 text-xs font-medium text-[var(--ink)]",children:t})}function $(e){let{text:t,sourceById:a}=e,l=t.split(G);return 1===l.length?(0,s.jsx)(s.Fragment,{children:t}):(0,s.jsx)(s.Fragment,{children:l.map((e,t)=>{if(t%2==1){let l=e.toLowerCase(),n=a.get(l)||a.get(e);return n?(0,s.jsx)("sup",{children:(0,s.jsxs)("a",{href:n.url,target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] hover:underline",title:n.title||n.url,children:["[",e,"]"]})},"".concat(e,"-").concat(t)):(0,s.jsxs)("sup",{className:"text-[var(--muted)]",children:["[",e,"]"]},"".concat(e,"-").concat(t))}return(0,s.jsx)("span",{children:e},"t-".concat(t))})})}function J(e){var t,a;let{result:n,brief:r,briefBusy:i,onBackToMatches:c,matchCount:o}=e,[d,m]=(0,l.useState)("Copy AI brief"),u=n.identity,x=(n.social||[]).filter(e=>"found"===e.status),p=n.contacts,h=n.mentions||[],b=n.sources||[],v=T.YTX||i||(null==r?void 0:r.status)==="ok"||!!(null==r?void 0:r.detail),g=(0,l.useMemo)(()=>{let e=new Map;
1for(let t of b)t.id&&e.set(t.id.toLowerCase(),{url:t.url,title:t.title||t.url});return e},[b]);async function f(){if(!r||"ok"!==r.status)return;let e=(0,T.TjM)(r,n);try{await navigator.clipboard.writeText(e),m("Copied"),window.setTimeout(()=>m("Copy AI brief"),2e3)}catch(e){m("Copy failed"),window.setTimeout(()=>m("Copy AI brief"),2e3)}}return(0,s.jsxs)("section",{id:"person-dossier-results",className:"mt-12 space-y-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(Y,{children:"Person dossier"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Public profile intelligence"}),c&&(null!=o?o:0)>1?(0,s.jsxs)("button",{type:"button",onClick:c,className:"mt-3 rounded-lg border border-[var(--line)] px-3 py-2 text-sm font-semibold text-[var(--muted)] transition hover:text-[var(--accent)]",children:["← Back to all ",o," matches"]}):null]}),n.cached?(0,s.jsx)("span",{className:"rounded-lg border border-[var(--accent)]/30 bg-[var(--accent)]/10 px-3 py-1.5 text-xs font-semibold text-[var(--accent)]",children:"Cached \xb7 no credit used"}):null]}),u?(0,s.jsxs)("article",{className:"overflow-hidden rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] shadow-[0_12px_32px_rgba(26,29,35,0.05)]",children:[(0,s.jsx)("div",{className:"border-b border-[var(--line)] bg-[var(--panel-tint)]/60 px-5 py-4 sm:px-6",children:(0,s.jsx)(Y,{children:"Identity"})}),(0,s.jsxs)("div",{className:"flex flex-col gap-5 p-5 sm:flex-row sm:items-start sm:p-6",children:[(0,s.jsx)(V,{name:u.name,photoUrl:u.photo_url}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("h3",{className:"text-xl font-semibold tracking-tight text-[var(--ink)] sm:text-2xl",children:u.name}),(0,s.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[u.title?(0,s.jsx)(Z,{children:u.title}):null,u.company?(0,s.jsx)(Z,{children:u.company}):null,u.location?(0,s.jsx)(Z,{children:u.location}):null]}),n.selected_source_url?(0,s.jsxs)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:["Confirmed via"," ",(0,s.jsx)("a",{href:n.selected_source_url,target:"_blank",rel:"noreferrer",className:"font-medium text-[var(--accent)] hover:underline",children:H(n.selected_source_url)})]}):null]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-2 sm:flex-col sm:items-stretch",children:[(0,s.jsx)(K,{label:"Sources",value:b.length}),(0,s.jsx)(K,{label:"Social",value:x.length}),(0,s.jsx)(K,{label:"Mentions",value:h.length})]})]})]}):null,(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)(Y,{children:"Dossier overview"}),(0,s.jsx)("p",{className:"mt-2 text-lg font-semibold text-[var(--ink)]",children:n.label}),(0,s.jsx)("p",{className:"mt-2 max-w-3xl text-sm leading-relaxed text-[var(--muted)]",children:n.summary})]}),v?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(Y,{children:"AI brief"}),(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:"Cited summary from collected sources — verify facts at the link."})]}),(null==r?void 0:r.status)==="ok"?(0,s.jsx)("button",{type:"button",onClick:()=>void f(),className:"rounded-lg border border-[var(--line)] px-3 py-2 text-xs font-semibold text-[var(--muted)] transition hover:border-[var(--accent)]/40 hover:text-[var(--accent)]",children:d}):null]}),!i||(null==r?void 0:r.overview)?null:(0,s.jsxs)("div",{className:"mt-4 flex items-center gap-2 text-sm text-[var(--muted)]",children:[(0,s.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-[var(--line)] border-t-[var(--accent)]","aria-hidden":!0}),"Writing cited brief…"]}),(null==r?void 0:r.status)==="ok"?(0,s.jsxs)("div",{className:"mt-4 space-y-4 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)]/40 p-4",children:[r.headline?(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:r.headline}):null,r.overview?(0,s.jsx)("p",{className:"text-sm leading-relaxed text-[var(--ink)]",children:(0,s.jsx)($,{text:r.overview,sourceById:g})}):null,(r.bullets||[]).length?(0,s.jsx)("ul",{className:"grid gap-3 sm:grid-cols-2",children:(r.bullets||[]).map(e=>(0,s.jsxs)("li",{className:"rounded-lg border border-[var(--line)] bg-[var(--surface)] p-3 text-sm",children:[(0,s.jsx)("p",{className:"font-semibold text-[var(--ink)]",children:e.title}),(0,s.jsx)("p",{className:"mt-1.5 leading-relaxed text-[var(--muted)]",children:(0,s.jsx)($,{text:e.text,sourceById:g})})]},e.title))}):null]}):r&&"ok"!==r.status&&!i?(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:r.detail||"AI brief unavailable right now."}):null]}):null,x.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)(Y,{children:"Social profiles"}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:[x.length," verified profile(s)"]}),(0,s.jsx)("ul",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:x.map((e,t)=>{let a=F(e.url),l=W(e.url),n=function(e,t){let a=e.trim();return a.length<=140?a:"".concat(a.slice(0,139).trim(),"…")}(e.bio||e.title||"",140);return(0,s.jsxs)("li",{className:"flex flex-col rounded-xl border border-[var(--line)] bg-[var(--panel-tint)]/30 p-4 transition hover:border-[var(--accent)]/30",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[l?(0,s.jsx)("img",{src:l,alt:"",className:"mt-0.5 h-5 w-5 rounded-sm"}):null,(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"font-semibold text-[var(--accent)] hover:underline",children:e.name||a.label}),e.handle?(0,s.jsxs)("p",{className:"mt-0.5 font-mono text-xs text-[var(--muted)]",children:["@",e.handle]}):null]})]}),n?(0,s.jsx)("p",{className:"mt-3 text-sm leading-relaxed text-[var(--muted)]",children:n}):null,(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"mt-3 text-xs font-semibold text-[var(--accent)] hover:underline",children:"Open profile →"})]},"".concat(e.id,"-").concat(e.url,"-").concat(t))})})]}):null,h.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)(Y,{children:"Public mentions"}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:[h.length," page(s) with source links"]}),(0,s.jsx)("ul",{className:"mt-4 space-y-3",children:h.map((e,t)=>(0,s.jsxs)("li",{className:"rounded-xl border border-[var(--line)] border-l-4 border-l-[var(--accent)] bg-[var(--panel-tint)]/20 p-4",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-baseline justify-between gap-2",children:[(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[var(--ink)] hover:text-[var(--accent)] hover:underline",children:e.title||e.url}),(0,s.jsx)("span",{className:"text-[11px] font-medium text-[var(--muted)]",children:H(e.url)})]}),e.snippet?(0,s.jsx)("p",{className:"mt-2 line-clamp-3 text-sm leading-relaxed text-[var(--muted)]",children:e.snippet}):null]},e.source_id||"".concat(e.url,"-").concat(t)))})]}):null,p&&((null==(t=p.emails)?void 0:t.length)||(null==(a=p.phones)?void 0:a.length))?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)(Y,{children:"Public contacts"}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap gap-2",children:[(p.emails||[]).map(e=>(0,s.jsx)("a",{href:"mailto:".concat(e),className:"inline-flex items-center rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-sm font-medium text-[var(--accent)] hover:border-[var(--accent)]/40",children:e},e)),(p.phones||[]).map(e=>(0,s.jsx)("a",{href:"tel:".concat(e),className:"inline-flex items-center rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-sm font-medium text-[var(--accent)] hover:border-[var(--accent)]/40",children:e},e))]})]}):null,b.length>0?(0,s.jsxs)("details",{className:"group rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)]",children:[(0,s.jsx)("summary",{className:"cursor-pointer list-none px-5 py-4 sm:px-6 [&::-webkit-details-marker]:hidden",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(Y,{children:"All sources"}),(0,s.jsxs)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:[b.length," linked URL(s)"]})]}),(0,s.jsx)("span",{className:"text-sm font-semibold text-[var(--muted)] transition group-open:rotate-180",children:"▾"})]})}),(0,s.jsx)("ol",{className:"space-y-2 border-t border-[var(--line)] px-5 py-4 sm:px-6",children:b.map(e=>{let t=W(e.url);return(0,s.jsxs)("li",{className:"flex items-start gap-2 rounded-lg px-2 py-1.5 text-sm hover:bg-[var(--panel-tint)]",children:[(0,s.jsx)("span",{className:"shrink-0 font-mono text-[10px] font-semibold text-[var(--muted)] pt-0.5",children:e.id}),t?(0,s.jsx)("img",{src:t,alt:"",className:"mt-0.5 h-3.5 w-3.5 rounded-sm"}):null,(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"min-w-0 break-all text-[var(--accent)] hover:underline",children:e.title||e.url}),e.ok?null:(0,s.jsx)("span",{className:"shrink-0 text-xs text-[var(--warn)]",children:"unavailable"})]},e.id)})})]}):null,(0,s.jsx)("p",{className:"text-xs leading-relaxed text-[var(--muted)]",children:"Hazana Person research aggregates publicly available web information and links each detail to its source. It is a research tool, not a consumer reporting agency. Do not use results as the sole basis for employment, credit, housing, insurance, or tenant decisions."})]})}function X(e){var t;let{result:a}=e,n=!0===a.indexed||"indexed"===a.status?{tone:"text-[var(--accent)]",eyebrow:"Indexed",title:"Yes — Google has this page in its index",detail
1:"People can find this URL through Google Search. That does not guarantee a high ranking; it only means Google knows the page exists."}:!1===a.indexed||"not_indexed"===a.status?{tone:"text-[var(--warn)]",eyebrow:"Not indexed",title:"No — Google does not currently list this page",detail:"A site: search found no matching results. The page may be new, blocked by robots/noindex, removed, or not yet crawled. Fix crawl access, then request indexing below."}:{tone:"text-[var(--muted)]",eyebrow:"Unavailable",title:"We couldn’t verify Google index status",detail:"The check didn’t complete. Please try again in a few minutes."},[r,i]=(0,l.useState)(!1),[c,o]=(0,l.useState)(null),[d,m]=(0,l.useState)(null);async function u(){i(!0),o(null);try{let e=await (0,T.Mmi)(a.url);m(e)}catch(e){o(e instanceof Error?e.message:"Request indexing failed")}finally{i(!1)}}let x=(null==d?void 0:d.engines)&&d.engines.length>0?d.engines:(null==d?void 0:d.google)?[{id:"google",name:"Google",label:d.google.label||"Google Search Console",submit_url:d.google.console_url,inspect_hint_url:d.google.inspect_hint_url,steps:d.google.steps||[]}]:[];return(0,s.jsxs)("section",{id:"google-index-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Google index check"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Is this URL in Google?"}),(0,s.jsx)("p",{className:"mt-1 break-all text-sm text-[var(--muted)]",children:a.url})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:n.eyebrow}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight ".concat(n.tone),children:n.title}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:n.detail})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Request indexing"}),(0,s.jsx)("h3",{className:"mt-2 text-xl font-semibold tracking-tight text-[var(--ink)]",children:"Help search engines find this page"}),(0,s.jsx)("p",{className:"mt-2 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:"Request indexing in each search engine’s webmaster tools for sites you own."}),(0,s.jsx)("button",{type:"button",disabled:r,onClick:()=>void u(),className:"mt-5 rounded-xl bg-[var(--accent)] px-5 py-3 text-sm font-semibold text-[var(--on-accent)] disabled:opacity-60",children:r?"Working…":"Request indexing help"}),c?(0,s.jsx)("p",{className:"mt-4 rounded-xl border border-[var(--danger-line)] bg-[var(--danger-bg)] px-4 py-3 text-sm text-[var(--danger-text)]",children:c}):null,d?(0,s.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,s.jsx)("p",{className:"text-sm text-[var(--muted)]",children:d.summary}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Webmaster tools"}),x.map(e=>{let t=e.inspect_hint_url||e.submit_url;return(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:e.label||e.name}),(e.steps||[]).length>0?(0,s.jsx)("ol",{className:"mt-2 list-decimal space-y-1.5 pl-5 text-sm text-[var(--muted)]",children:e.steps.map(e=>(0,s.jsx)("li",{children:e},e))}):null,t?(0,s.jsxs)("a",{href:t,target:"_blank",rel:"noreferrer",className:"mt-3 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:["Open ",e.name||"tool"," →"]}):null]},e.id||e.label)})]}),(null==(t=d.indexnow)?void 0:t.submitted)&&(d.indexnow.endpoints||[]).length>0?(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:d.indexnow.label||"Search engine notify"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:d.indexnow.detail||"Participating search engines were notified about this URL."}),(0,s.jsx)("ul",{className:"mt-3 space-y-1.5 text-sm",children:d.indexnow.endpoints.map(e=>(0,s.jsxs)("li",{className:"flex items-center justify-between gap-3 text-[var(--muted)]",children:[(0,s.jsx)("span",{children:e.name||e.
1id}),(0,s.jsx)("span",{className:e.submitted?"text-[var(--accent)]":"text-[var(--warn)]",children:e.submitted?"Submitted":"Failed"})]},e.id||e.name))})]}):null]}):null]})]})}function Q(e){return"available"===e?"text-[var(--accent)]":"taken"===e?"text-[var(--warn)]":"text-[var(--muted)]"}function ee(e){return"available"===e?"Available":"taken"===e?"Taken":"Unverified"}function et(e){let{row:t}=e;return(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:t.domain}),t.detail?(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:t.detail}):null]}),(0,s.jsx)("p",{className:"shrink-0 text-xs font-semibold tracking-wide uppercase ".concat(Q(t.status)),children:ee(t.status)})]})}function ea(e){let{row:t}=e;return(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-semibold text-[var(--ink)]",children:t.name}),(0,s.jsxs)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:["@",t.handle]}),t.detail?(0,s.jsx)("p",{className:"mt-1 text-xs text-[var(--muted)]",children:t.detail}):null,t.url?(0,s.jsx)("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"mt-2 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:"Open →"}):null]}),(0,s.jsx)("p",{className:"shrink-0 text-xs font-semibold tracking-wide uppercase ".concat(Q(t.status)),children:ee(t.status)})]})}function es(e){let{result:t}=e,a=t.domains||[],l=t.social||[];return(0,s.jsxs)("section",{id:"name-research-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Name research"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Is this name available?"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:["Query: ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:t.query}),t.name?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 name ",(0,s.jsx)("span",{className:"text-[var(--ink)]",children:t.name})]}):null]})]}),(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Summary"}),(0,s.jsx)("p",{className:"mt-2 text-2xl font-semibold tracking-tight text-[var(--ink)]",children:t.label}),(0,s.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-relaxed text-[var(--muted)]",children:t.summary}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-4 text-sm text-[var(--muted)]",children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--accent)]",children:t.available_domain_count})," domains available"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--warn)]",children:t.taken_domain_count})," domains taken"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--accent)]",children:t.available_social_count})," handles free"]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"font-semibold text-[var(--warn)]",children:t.taken_social_count})," handles taken"]})]}),(0,s.jsxs)("p",{className:"mt-5 text-sm text-[var(--muted)]",children:["Check"," ",(0,s.jsx)(r(),{href:E(t.name||t.query),className:"font-semibold text-[var(--accent)] underline-offset-2 hover:underline",children:"search demand on Google Trends"})," ","before you commit to this name."]})]}),a.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Domains"}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:a.map(e=>(0,s.jsx)(et,{row:e},e.domain))})]}):null,l.length>0?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Social handles"}),(0,s.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:l.map(e=>(0,s.jsx)(ea,{row:e},"".concat(e.id,"-").concat(e.handle)))})]}):null]})}var el=a(98943),en=a(79978),er=a(19101);function ei(e){let{result:t}=e,a=t.seo,l=t.performance,n=t.keywords;return(0,s.jsxs)("section",{id:"page-seo-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Page SEO scan"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Article / page report"}),(0,s.jsxs)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:[t.final_url||t.url,null!=t.status_code?" \xb7 HTTP ".concat(t.status_code):"",null!=t.word_count?" \xb7 ~".concat(t.word_count," words"):""," \xb7 SEO & performance only (no technology stack)"]}),t.page_title?(0,s.jsx)("p",{className:"mt-2 max-w-3xl text-base font-medium text-[var(--ink)]",children:t.page_title}):null]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-stretch gap-3",children:[l?(0,s.jsxs)("div",{className:"min-w-[9.5rem] rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-3 text-right",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Performance"}),(0,s.jsxs)("p",{className:"mt-1 text-3xl font-semibold tracking-tight",style:{color:(0,er.Y)(l.score)},children:[l.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"text-sm",style:{color:(0,er.Y)(l.score)},children:l.label})]}):null,a?(0,s.jsxs)("div",{className:"min-w-[9.5rem] rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-3 text-right",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"SEO"}),(0,s.jsxs)("p",{className:"mt-1 text-3xl font-semibold tracking-tight",style:{color:(0,er.Y)(a.score)},children:[a.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"text-sm",style:{color:(0,er.Y)(a.score)},children:a.label})]}):null]})]}),t.warning?(0,s.jsx)("p",{className:"rounded-2xl border border-[rgba(240,163,90,0.35)] bg-[rgba(240,163,90,0.12)] px-4 py-3 text-sm text-[var(--warn)]",children:t.warning}):null,n&&n.keywords.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Keywords"}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:["Ranked from title, headings, URL slug, and page body",n.focus?(0,s.jsxs)(s.Fragment,{children:[" ","\xb7 focus term ",(0,s.jsx)("span",{className:"font-medium text-[var(--ink)]",children:n.focus})]}):null]})]}),(0,s.jsx)("span",{className:"rounded-md bg-[var(--accent-soft)] px-2 py-0.5 text-[0.7rem] font-semibold text-[var(--accent)]",children:n.count})]}),n.meta_list&&n.meta_list.length>0?(0,s.jsxs)("p",{className:"mt-3 text-xs text-[var(--muted)]",children:["Meta keywords: ",n.meta_list.join(", ")
1]}):null,(0,s.jsx)("ul",{className:"mt-4 flex flex-wrap gap-2",children:n.keywords.map(e=>(0,s.jsxs)("li",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2",title:"Score ".concat(e.score),children:[(0,s.jsx)("span",{className:"text-sm font-medium text-[var(--ink)]",children:e.term}),(0,s.jsx)("span",{className:"ml-2 text-[0.7rem] tabular-nums text-[var(--muted)]",children:e.score}),(0,s.jsxs)("span",{className:"mt-1 flex flex-wrap gap-1",children:[e.in_title?(0,s.jsx)("span",{className:"rounded bg-[rgba(32, 44, 104,0.14)] px-1.5 py-0.5 text-[0.65rem] text-[var(--accent)]",children:"title"}):null,e.in_h1?(0,s.jsx)("span",{className:"rounded bg-[rgba(32, 44, 104,0.14)] px-1.5 py-0.5 text-[0.65rem] text-[var(--accent)]",children:"h1"}):null,e.in_url?(0,s.jsx)("span",{className:"rounded bg-[rgba(32, 44, 104,0.14)] px-1.5 py-0.5 text-[0.65rem] text-[var(--accent)]",children:"url"}):null,e.in_meta?(0,s.jsx)("span",{className:"rounded bg-[rgba(32, 44, 104,0.14)] px-1.5 py-0.5 text-[0.65rem] text-[var(--accent)]",children:"meta"}):null]})]},e.term))})]}):(0,s.jsx)("p",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-4 text-sm text-[var(--muted)]",children:"No clear keyword signals were extracted from this page."}),l?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5",children:[(0,s.jsx)("h3",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Performance"}),(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:l.summary}),(0,s.jsx)("div",{className:"mt-4",children:(0,s.jsx)(el.A,{score:l.score,label:l.label,factors:l.factors,responseMs:l.response_ms,htmlSizeLabel:l.html_size_label,externalScripts:l.external_scripts,thirdPartyCount:l.third_party_count,resourceTimings:l.resource_timings,slowestResource:l.slowest_resource})})]}):null,a?(0,s.jsx)(en.A,{seo:a,performance:l}):null]})}function ec(e){let{score:t}=e;return null==t?(0,s.jsx)("span",{className:"text-[var(--muted)]",children:"—"}):(0,s.jsx)("span",{className:"font-semibold tabular-nums",style:{color:(0,er.Y)(t)},children:t})}function eo(e){let{label:t,value:a}=e;return null==a||""===a?null:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3 text-sm",children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:t}),(0,s.jsx)("dd",{className:"text-right font-medium text-[var(--ink)]",children:a})]})}function ed(e){var t,a;let{label:l,site:n}=e,r=null!=n.language_count?n.language_primary?"".concat(n.language_count," (").concat(n.language_primary,")"):String(n.language_count):n.language_primary||null;return(0,s.jsxs)("article",{className:"rounded-2xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-4 sm:px-5",children:[(0,s.jsx)("p",{className:"text-[0.65rem] font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:l}),(0,s.jsx)("h3",{className:"mt-1 text-lg font-semibold tracking-tight text-[var(--ink)]",children:n.host||n.url}),n.title?(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:n.title}):null,n.niche_label?(0,s.jsxs)("p",{className:"mt-2 text-xs font-semibold text-[var(--ink)]",children:["Niche: ",n.niche_label]}):null,n.error?(0,s.jsx)("p",{className:"mt-3 text-sm text-[var(--warn)]",children:n.error}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("dl",{className:"mt-4 grid grid-cols-2 gap-3 text-sm sm:grid-cols-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Trust"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.trust_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Security"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.security_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Performance"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.performance_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"SEO"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.seo_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Privacy"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.privacy_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Freshness"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.freshness_score})})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("dt",{className:"text-[var(--muted)]",children:"Lead fit"}),(0,s.jsx)("dd",{children:(0,s.jsx)(ec,{score:n.lead_score})})]})]}),(0,s.jsxs)("dl",{className:"mt-4 space-y-2 border-t border-[var(--line)] pt-4",children:[(0,s.jsx)(eo,{label:"CMS / platform",value:n.cms}),(0,s.jsx)(eo,{label:"Hosting / CDN",value:n.hosting}),(0,s.jsx)(eo,{label:"Analytics",value:n.analytics}),(0,s.jsx)(eo,{label:"Domain age",value:n.domain_age_label}),(0,s.jsx)(eo,{label:"Languages",value:r}),(0,s.jsx)(eo,{label:"HTTP",value:null!=n.status_code?String(n.status_code):null})]}),n.emails&&n.emails.length>0||n.phones&&n.phones.length>0?(0,s.jsxs)("div",{className:"mt-4 space-y-1 border-t border-[var(--line)] pt-4 text-sm",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Public contacts"}),null==(t=n.emails)?void 0:t.map(e=>(0,s.jsx)("p",{className:"text-[var(--ink)]",children:e},e)),null==(a=n.phones)?void 0:a.map(e=>(0,s.jsx)("p",{className:"text-[var(--muted)]",children:e},e))]}):null]}),(0,s.jsx)("a",{href:n.url,target:"_blank",rel:"noreferrer",className:"mt-4 inline-flex text-sm font-semibold text-[var(--accent)] hover:underline",children:"Open site →"})]})}function em(e){let{title:t,items:a,empty:l}=e;return(0,s.jsxs)("div",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-4 py-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:t}),(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--ink)]",children:a.length>0?a.join(", "):l})]})}function eu(e){var t,a;let{a:l,b:n}=e,r=[{label:"CMS / platform",a:l.cms||"—",b:n.cms||"—"},{label:"Hosting / CDN",a:l.hosting||"—",b:n.hosting||"—"},{label:"Analytics",a:l.analytics||"—",b:n.analytics||"—"},{label:"Domain age",a:l.domain_age_label||"—",b:n.domain_age_label||"—"},{label:"Languages",a:null!=l.language_count?"".concat(l.language_count).concat(l.language_primary?" \xb7 ".concat(l.language_primary):""):l.language_primary||"—",b:null!=n.language_count?"".concat(n.language_count).concat(n.language_primary?" \xb7 ".concat(n.language_primary):""):n.language_primary||"—"},{label:"Public emails",a:(null==(t=l.emails)?void 0:t.length)?String(l.emails.length):"0",b:(null==(a=n.emails)?void 0:a.length)?String(n.emails.length):"0"}];return(0,s.jsx)("div",{className:"overflow-x-auto rounded-xl border border-[var(--line)] bg-[var(--panel-tint)]",children:(0,s.jsxs)("table",{className:"min-w-full border-collapse text-left text-sm",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-[var(--line)] text-[var(--muted)]",children:[(0,s.jsx)("th",{className:"px-3 py-2.5 font-medium",children:"Signal"}),(0,s.jsx)("th",{className:"px-3 py-2.5 font-medium text-[var(--ink)]",children:l.host||"Site A"}),(0,s.jsx)("th",{className:"px-3 py-2.5 font-medium text-[var(--ink)]",children:n.host||"Site B"})]})}),(0,s.jsx)("tbody",{children:r.map(e=>(0,s.jsxs)("tr",{className:"border-b border-[var(--line)] last:border-b-0",children:[(0,s.jsx)("td",{className:"px-3 py-2.5 text-[var(--muted)]",children:e.label}),(0,s.jsx)("td",{className:"px-3 py-2.5 font-medium text-[var(--ink)]",children:e.a}),(0,s.jsx)("td",{className:"px-3 py-2.5 font-medium text-[var(--ink)]",children:e.b})]},e.label))})]})})}function ex(e){return(null==e?void 0:e.trim())||"Not detected"}function ep(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Insufficient public evidence";return(null==e?void 0:e.length)?e.join(", "):t}function eh(e){var t,a,l,n,r,i,c,o,d,m,u,x,p,h;let{a:b,b:v}=e,g=[["Homepage title",ex(b.homepage_title),ex(v.homepage_title)],["Homepage H1",ex(null==(t=b.business)?void 0:t.h1),ex(null==(a=v.business)?void 0:a.h1)],["Short description",ex(null==(l=b.business)?void 0:l.description),ex(null==(n=v.business)?void 0:n.description)],["Business model",ex(null==(r=b.business)?void 0:r.business_model),ex(null==(i=v.business)?void 0:i.business_model)],["Target audience",ex(null==(c=b.business)?void 0:c.target_audience),ex(null==(o=v.business)?void 0:o.target_audience)],["Industries served",ep(null==(d=b.business)?void 0:d.industries),ep(null==(m=v.business)?void 0:m.industries)],["Markets / geography",ep(null==(u=b.business)?void 0:u.markets),ep(null==(x=v.business)?void 0:x.markets)],["Key business themes",ep(null==(p=b.business)?void 0:p.themes),ep(null==(h=v.business)?void 0:h.themes)]];return(0,s.jsx)(eb,{title:"Business overview",a:b,b:v,rows:g})}function eb(e){let{title:t,a,b:l,rows:n}=e;return(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-[var(--ink)]",children:t}),(0,s.jsx)("div",{className:"overflow-x-auto rounded-xl border border-[var(--line)] bg-[var(--panel-tint)]",children:(0,s.jsxs)("table",{className:"min-w-full border-collapse text-left text-sm",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-[var(--line)] text-[var(--muted)]",children:[(0,s.jsx)("th",{className:"px-3 py-2.5 font-medium",children:"Signal"}),(0,s.jsx)("th",{className:"px-3 py-2.5 text-[var(--ink)]",children:a.host||"Site A"}),(0,s.jsx)("th",{className:"px-3 py-2.5 text-[var(--ink)]",children:l.host||"Site B"})]})}),(0,s.jsx)("tbody",{children:n.map(e=>(0,s.jsxs)("tr",{className:"border-b border-[var(--line)] last:border-0",children:[(0,s.jsx)("td",{className:"px-3 py-2.5 text-[var(--muted)]",children:e[0]}),(0,s.jsx)("td",{className:"px-3 py-2.5 text-[var(--ink)]",children:e[1]}),(0,s.jsx)("td",{className:"px-3 py-2.5 text-[var(--ink)]",children:e[2]})]},e[0]))})]})})]})}function ev(e){var t,a;let s=null==(t=e.business)?void 0:t.pricing;if(!s||"detected"!==s.status)return"No public pricing found";let l=[s.starting_price?"Starting price: ".concat(s.starting_price):null,(null==(a=s.public_tiers)?void 0:a.length)?"Tiers: ".concat(s.public_tiers.join(", ")):null,s.free_trial?"Free trial":null,s.free_plan?"Free plan":null,s.contact_sales?"Contact sales / quote based":null,s.pricing_url?"Pricing page detected":null].filter(
1Boolean);return l.length?l.join(" \xb7 "):"Public pricing evidence detected"}function eg(e){var t;let a=(null==(t=e.business)?void 0:t.social_profiles)||[];return a.length?a.map(e=>"".concat(e.platform,": ").concat("verified"===e.status?"Verified":"Candidate")).join(", "):"No public social profiles detected"}function ef(e){var t,a;let s=null==(t=e.business)?void 0:t.hiring;if(!s||"unavailable"===s.status)return"No indexed hiring evidence";let l=null==(a=s.role_groups)?void 0:a.map(e=>"".concat(e.name," (").concat(e.count,")")).join(", ");return"".concat(s.active_job_count||0," active jobs").concat(l?" \xb7 ".concat(l):"")}function ej(e){var t;let{label:a,site:l}=e,n=(null==(t=l.business)?void 0:t.products)||[];return(0,s.jsxs)("article",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:a}),(0,s.jsx)("p",{className:"mt-3 text-sm font-semibold text-[var(--ink)]",children:"Detected products"}),n.length?(0,s.jsx)("ul",{className:"mt-1 space-y-1 text-sm",children:n.map(e=>(0,s.jsx)("li",{children:e.source_url?(0,s.jsx)("a",{href:e.source_url,target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] hover:underline",children:e.name}):e.name},"".concat(e.name,"-").concat(e.source_url)))}):(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:"No public products detected"})]})}function ey(e){var t;let{label:a,site:l}=e,n=(null==(t=l.business)?void 0:t.social_profiles)||[];return(0,s.jsxs)("article",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] p-4",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:a}),n.length?(0,s.jsx)("ul",{className:"mt-2 space-y-1 text-sm",children:n.map(e=>(0,s.jsxs)("li",{children:[(0,s.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] hover:underline",children:e.platform}),(0,s.jsxs)("span",{className:"text-[var(--muted)]",children:[" \xb7 ","verified"===e.status?"Verified":"Candidate profile"]})]},"".concat(e.platform,"-").concat(e.url)))}):(0,s.jsx)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:"No public social profiles detected"})]})}function eN(e){var t,a,l,n,r;let{result:i}=e,c=i.site_a,o=i.site_b;return(0,s.jsxs)("section",{id:"site-compare-results",className:"mt-12 space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Compare sites"}),(0,s.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight",children:"Business + website intelligence comparison"}),(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:i.summary})]}),(0,s.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,s.jsx)(ed,{label:"Site A",site:c}),(0,s.jsx)(ed,{label:"Site B",site:o})]}),(0,s.jsx)(eh,{a:c,b:o}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h3",{className:"text-lg font-semibold text-[var(--ink)]",children:"Services & products"}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-3",children:[(0,s.jsx)(em,{title:"Shared services",items:(null==(t=i.service_comparison)?void 0:t.shared)||[],empty:"No shared services detected"}),(0,s.jsx)(em,{title:"Only on ".concat(c.host||"Site A"),items:(null==(a=i.service_comparison)?void 0:a.site_a_only)||[],empty:"No unique services detected"}),(0,s.jsx)(em,{title:"Only on ".concat(o.host||"Site B"),items:(null==(l=i.service_comparison)?void 0:l.site_b_only)||[],empty:"No unique services detected"})]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,s.jsx)(ej,{label:"Site A",site:c}),(0,s.jsx)(ej,{label:"Site B",site:o})]})]}),(0,s.jsx)(eb,{title:"Pricing & CTA",a:c,b:o,rows:[["Pricing / commercial model",ev(c),ev(o)],["Main CTA",ex(null==(n=c.business)?void 0:n.main_cta),ex(null==(r=o.business)?void 0:r.main_cta)]]}),(0,s.jsx)(eb,{title:"Social & hiring",a:c,b:o,rows:[["Social presence",eg(c),eg(o)],["Indexed hiring signals",ef(c),ef(o)]]}),(0,s.jsxs)("div",{className:"grid gap-3 md:grid-cols-2",children:[(0,s.jsx)(ey,{label:"Site A social profiles",site:c}),(0,s.jsx)(ey,{label:"Site B social profiles",site:o})]}),(0,s.jsx)("h3",{className:"text-lg font-semibold text-[var(--ink)]",children:"Technical comparison"}),(0,s.jsx)(eu,{a:c,b:o}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)(em,{title:"Shared technologies",items:i.shared_technologies||[],empty:"No shared technologies detected."}),(0,s.jsx)(em,{title:"Only on ".concat(c.host||"Site A"),items:i.site_a_only_technologies||[],empty:"None unique to Site A."}),(0,s.jsx)(em,{title:"Only on ".concat(o.host||"Site B"),items:i.site_b_only_technologies||[],empty:"None unique to Site B."})]})]})}var ew=a(11808),ek=a(15632),e_=a(76384);let eS="hazana-research-pending";function eC(){try{sessionStorage.removeItem(eS)}catch(e){}}var eL=a(66049);let eI="hazana-last-scan";function eA(e){return"".concat("hazana-last-scan:").concat(e)}function eM(e){try{var t;let a=JSON.parse(e);if(!a||1!==a.version||"number"!=typeof a.savedAt||(t=a.savedAt,!(Date.now()-t<18e5)||!a.url||!
1a.scanMode))return null;return a}catch(e){return null}}function eE(e){try{localStorage.removeItem(eA(e))}catch(e){}}function eR(e){try{let t=localStorage.getItem(eA(e));if(t){let a=eM(t);if(a&&a.scanMode===e)return a;a||eE(e)}try{let t=localStorage.getItem(eI);if(!t)return null;let a=eM(t);if(!a||a.scanMode!==e)return null;return localStorage.setItem(eA(e),t),localStorage.removeItem(eI),a}catch(e){return null}}catch(t){return eE(e),null}}function eT(e){let t=eR(e);return t?Math.max(0,Math.ceil((18e5-(Date.now()-t.savedAt))/6e4)):0}var eB=a(75589);function ez(e){let t=e.trim();if(!t)return t;let a=t.match(/^@([A-Za-z0-9._]{1,30})$/);return a?"https://www.instagram.com/".concat(a[1]):/^https?:\/\//i.test(t)?t:"https://".concat(t)}function eq(e){let t=e.trim();if(!t||!t.includes("/"))return!1;try{let e=new URL(ez(t)).pathname.split("/").filter(Boolean);if(0===e.length)return!1;if(e.length>=2)return!0;let a=decodeURIComponent(e[0]).toLowerCase();if(a.includes("-")||a.includes("_")||a.length>=12)return!0;return!1}catch(e){return!1}}let eP=[["stack","Website scan","Understand a website"],["company-dossier","Company research","Research a company"],["person-dossier","Person research","Research a person"],["brand-social","Social profiles","Find social profiles"],["name-research","Name taken?","Is this name taken?"]],eF=eP.filter(e=>{let[t]=e;return"stack"===t}),eW=[["page-seo","Page SEO"],["google-index","Google index"],["ai-visibility","GEO / AI visibility"],["share-of-voice","Who ranks?"]];function eD(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim())}function eU(e){let t=e.trim(),a=t.replace(/\D/g,"");return a.length>=7&&a.length<=15&&/^[\d\s+\-().]+$/.test(t)}function eO(e){let t=e.trim();return t.startsWith("@")?t.length>=4:!/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$/i.test(t)&&/^[A-Za-z0-9._-]{3,30}$/.test(t)&&!eY(t)}let eG=new Set(["ai","inc","llc","ltd","corp","co","labs","studio","group","gmbh","plc","sa","bv","links","systems","system","digital","media","tech","solutions","services"]),eH=new Set(["links","media","digital","tech","cloud","data","software","solutions","services","global","network","systems","system","consulting","partners","holdings","ventures","interactive","creative","design","marketing","agency","enterprises","industries","online","web"]);function eV(e){let t=e.trim().split(/\s+/).filter(Boolean);return!(t.length<2)&&t.some(e=>eG.has(e.toLowerCase()))}function eY(e){let t=e.trim().split(/\s+/).filter(Boolean);return!(t.length<2||t.length>4||eV(e)||t.some((e,t)=>t>0&&eH.has(e.toLowerCase())))&&t.every(e=>/^[A-Za-z][A-Za-z'.-]*$/.test(e))}function eK(e){let t=e.replace(/^www\./i,"").toLowerCase();return"instagram.com"===t||t.endsWith(".instagram.com")||"tiktok.com"===t||t.endsWith(".tiktok.com")||"x.com"===t||"twitter.com"===t||t.endsWith(".twitter.com")||"linkedin.com"===t||t.endsWith(".linkedin.com")||"youtube.com"===t||t.endsWith(".youtube.com")||"youtu.be"===t||"facebook.com"===t||t.endsWith(".facebook.com")||"fb.com"===t}function eZ(e){let t=e.trim();if(!t)return!1;try{let e=new URL(ez(t));if(!eK(e.hostname))return!1;let a=e.pathname.split("/").filter(Boolean);if(0===a.length)return!1;let s=a[0].toLowerCase(),l=e.hostname.replace(/^www\./i,"").toLowerCase();if(l.includes("linkedin.com"))return["in","company","school","showcase"].includes(s)&&a.length>=2;if(l.includes("youtube.com")||"youtu.be"===l){if("watch"===s||"shorts"===s)return!1;return a.length>=1}if(new Set(["login","signup","explore","watch","home","p","reel","reels","stories","tv"]).has(s))return!1;return!0}catch(e){return!1}}function e$(e){let t=e.trim();if(!t)return"unknown";if(eD(t))return"email";if(eU(t))return"phone";if(/^@[A-Za-z0-9._]{1,30}$/.test(t))return"social";let a=t.split(/[/?#]/)[0]||"";if(/^https?:\/\//i.test(t)||/^(?:www\.)?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)+$/i.test(a)||/\.(com|net|org|io|ai|co|app|dev|xyz|info|biz|me|us|uk|edu|gov|live)(\b|\/|$)/i.test(t))try{let e=new URL(ez(t));if(eK(e.hostname))return eZ(t)?"social":"website";if(eq(t))return"article";return"website"}catch(e){return"website"}
1if(t.split(/\s+/).filter(Boolean).length>=2)return eY(t)?"person":eV(t)?"brand":"keyword";let s=t.toLowerCase();return"www"===s||"http"===s||"https"===s||s.startsWith("www.")?"unknown":t.length>=3&&/^[A-Za-z0-9][A-Za-z0-9 ._-]{0,59}$/.test(t)&&!t.includes(".")?eO(t)?"username":"name":"unknown"}function eJ(e){return"page-seo"===e||"google-index"===e||"ai-visibility"===e||"share-of-voice"===e?"advanced":"compare"===e?"stack":e}let eX=[{id:"business",label:"Business profile",shortLabel:"Business"},{id:"site",label:"Site details",shortLabel:"Site"},{id:"technology",label:"Technology",shortLabel:"Tech"},{id:"advanced",label:"SEO & performance",shortLabel:"Advanced"}],eQ=[{id:"site",label:"Social profile",shortLabel:"Social"}];function e0(e,t){if(!e)return!1;if("social_profile"===e.scan_target_kind)return!0;let a=(e.final_url||e.url||t||"").trim();return!!a&&eZ(a)}function e1(e){var t,a,n,c,h,b,v,g;let{content:f,defaultScanMode:j,lockScanMode:y=!1,lockAllowsStackExtras:N=!1,splitResearchPages:w=!1}=e,{user:C,openAuth:L,loading:E}=(0,ew.A)(),B=(0,i.useSearchParams)(),z=(0,i.useRouter)(),[P,F]=(0,l.useState)(""),[W,D]=(0,l.useState)(null!=j?j:"stack"),[U,G]=(0,l.useState)(!0),[H,V]=(0,l.useState)(!1),[Y,K]=(0,l.useState)(!1),[Z,$]=(0,l.useState)(!1),[Q,ee]=(0,l.useState)(!1),[et,ea]=(0,l.useState)(!1),[el,ec]=(0,l.useState)(0),[eo,ed]=(0,l.useState)(""),[em,eu]=(0,l.useState)(null),[ex,ep]=(0,l.useState)(null),[eh,eb]=(0,l.useState)(null),[ev,eg]=(0,l.useState)(null),[ef,ej]=(0,l.useState)(null),[ey,eM]=(0,l.useState)(""),[eE,eG]=(0,l.useState)(null),[eH,eV]=(0,l.useState)(""),[eK,eZ]=(0,l.useState)(null),[e1,e2]=(0,l.useState)(null),[e5,e3]=(0,l.useState)(null),[e4,e6]=(0,l.useState)(null),[e9,e8]=(0,l.useState)(!1),[e7,te]=(0,l.useState)(null),[tt,ta]=(0,l.useState)(null),[ts,tl]=(0,l.useState)(null),[tn,tr]=(0,l.useState)(null),[ti,tc]=(0,l.useState)(!1),[to,td]=(0,l.useState)({}),[tm,tu]=(0,l.useState)(!1),[tx,tp]=(0,l.useState)(""),[th,tb]=(0,l.useState)(""),[tv,tg]=(0,l.useState)(""),[tf,tj]=(0,l.useState)(""),[ty,tN]=(0,l.useState)(""),[tw,tk]=(0,l.useState)(""),[t_,tS]=(0,l.useState)(!1),[tC,tL]=(0,l.useState)(""),[tI,tA]=(0,l.useState)(null),[tM,tE]=(0,l.useState)(!1),[tR,tT]=(0,l.useState)(!1),[tB,tz]=(0,l.useState)(!1),[tq,tP]=(0,l.useState)(null),[tF,tW]=(0,l.useState)(!1),[tD,tU]=(0,l.useState)("Copy URLs"),[tO,tG]=(0,l.useState)("Copy stack"),[tH,tV]=(0,l.useState)("business"),[tY,tK]=(0,l.useState)(!1),[tZ,t$]=(0,l.useState)(!1),[tJ,tX]=(0,l.useState)(null),[tQ,t0]=(0,l.useState)([]),[t1,t2]=(0,l.useState)(null),[t5,t3]=(0,l.useState)(!1),[t4,t6]=(0,l.useState)(null),[t9,t8]=(0,l.useState)(!1),[t7,ae]=(0,l.useState)(!1),[at,aa]=(0,l.useState)(null),[as,al]=(0,l.useState)(null),[an,ar]=(0,l.useState)(!1),[ai,ac]=(0,l.useState)(0),ao=(0,l.useRef)(null),ad=(0,l.useRef)(!1),am=(0,l.useRef)(null),au=(0,l.useRef)(!1),[ax,ap]=(0,l.useState)(y),ah=y&&j?j:W;(0,l.useEffect)(()=>()=>{var e;null==(e=ao.current)||e.abort()},[]),(0,l.useEffect)(()=>{ar(null!==eR(ah)),ac(eT(ah))},[ah]);let ab=!!(ex||eh||ev||ef||eE||eK||e1||e5||e7||ts||tI);function av(){var e;et&&(null==(e=ao.current)||e.abort(),ed("Stopping…"))}async function ag(e){var t;let a=to[e.id];if(a){tl(a),eu(null),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("person-dossier-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})});return}if((0,e_.G9)(at))return void eu("".concat(e_.NL," ").concat(e_.Z9));null==(t=ao.current)||t.abort();let s=new AbortController;ao.current=s,tu(!0),eu(null);try{let t=await (0,T.Tu0)(e,{searchCacheKey:tt||void 0,signal:s.signal});if((0,T.RoE)(t))return void aR("person-dossier",t.preview||{},{url:P.trim()||e.name||""});tl(t),td(a=>({...a,[e.id]:t})),t.quota&&aa(t.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("person-dossier-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}catch(e){e instanceof T.zbS?eu("Search stopped."):eu(e instanceof Error?e.message:"Person dossier build failed")}finally{tu(!1)}}(0,l.useEffect)(()=>{if(!et&&ab){var e={url:P,compareUrlB:tC,geoBrand:ey,sovDomain:eH,dossierWebsite:ty,companyCountry:tw||void 0,activeTab:tH,result:null!=ex?ex:void 0,pageSeoResult:null!=eh?eh:void 0,googleIndexResult:null!=ev?ev:void 0,aiVisibilityResult:null!=ef?ef:void 0,shareOfVoiceResult:null!=eE?eE:void 0,brandSocialResult:null!=eK?eK:void 0,nameResearchResult:null!=e1?e1:void 0,companyDossierResult:null!=e5?e5:void 0,companyBrief:null!=e4?e4:void 0,personSearchResult:null!=e7?e7:void 0,personDossierResult:null!=ts?t
1s:void 0,personBrief:null!=tn?tn:void 0,personSearchCacheKey:null!=tt?tt:void 0,personDossierCache:Object.keys(to).length>0?to:void 0,personCompany:tx||void 0,personLocation:th||void 0,personTitle:tv||void 0,personWebsite:tf||void 0,siteCompareResult:null!=tI?tI:void 0,scanSummary:null!=t4?t4:void 0};try{let t={...e,scanMode:W,version:1,savedAt:Date.now()};localStorage.setItem(eA(W),JSON.stringify(t)),localStorage.getItem(eI)&&localStorage.removeItem(eI)}catch(e){}ar(null!==eR(W)),ac(eT(W))}},[et,ab,P,W,tC,ey,eH,ty,tw,tH,ex,eh,ev,ef,eE,eK,e1,e5,e4,e7,ts,tn,tt,to,tx,th,tv,tf,tI,t4]),(0,l.useEffect)(()=>{tZ&&t$(!1)},[tZ]),(0,l.useEffect)(()=>{if(!ts||!T.YTX){tr(null),tc(!1);return}let e=new AbortController;return tc(!0),(0,T.DXT)(ts,{signal:e.signal}).then(t=>{e.signal.aborted||tr(t)}).catch(()=>{e.signal.aborted||tr({status:"unavailable",detail:"AI brief unavailable right now."})}).finally(()=>{e.signal.aborted||tc(!1)}),()=>e.abort()},[null==ts?void 0:ts.candidate_id]),(0,l.useEffect)(()=>{var e,t,a,s,l,n,r,i;if(!e5||!T.nrj){e6(null),e8(!1);return}let c=e5.website?{url:e5.website,final_url:e5.website,profile_name:(null==(e=e5.profile)?void 0:e.name)||(null==(t=e5.profile)?void 0:t.title)||e5.query,profile_description:(null==(a=e5.profile)?void 0:a.description)||null,profile_addresses:(null==(s=e5.contacts)?void 0:s.addresses)||[],business_pages:(e5.pages||[]).map(e=>({url:e.url,kind:e.kind||"",title:e.title||"",excerpt:e.excerpt||""})),catalog_items:(e5.menu_items||[]).map(e=>({name:e.name,source_url:e.url||void 0,price:e.price||null,item_type:e.item_type||void 0})),site_country:e5.country_label||null,linkedin_industry:(null==(l=e5.linkedin)?void 0:l.industry)||null,linkedin_size:(null==(n=e5.linkedin)?void 0:n.employee_range)||null,linkedin_headquarters:(null==(r=e5.linkedin)?void 0:r.headquarters)||null,news_mentions:(e5.mentions||[]).slice(0,4).map(e=>({title:e.title||"",url:e.url||"",snippet:e.snippet||""})),reddit_posts:((null==(i=e5.reddit_discussions)?void 0:i.posts)||[]).slice(0,4).map(e=>({title:e.title||"",url:e.url||"",subreddit:e.subreddit||"",snippet:e.snippet||""}))}:null;if(!c){e6(null),e8(!1);return}let o=new AbortController;return e8(!0),(0,T.iRy)(c).then(e=>{o.signal.aborted||e6(e)}).catch(()=>{o.signal.aborted||e6({status:"unavailable",detail:"AI brief unavailable right now."})}).finally(()=>{o.signal.aborted||e8(!1)}),()=>o.abort()},[null==e5?void 0:e5.website,null==e5?void 0:e5.query,null==e5?void 0:e5.cached]),(0,l.useEffect)(()=>{if(ad.current)return;let e=(B.get("url")||B.get("a")||"").trim(),t=(B.get("b")||B.get("url_b")||"").trim();(e||t)&&(ad.current=!0,e&&(F(e),y&&"compare"===W||(!y||"stack"===W)&&(am.current=e,y||D("stack"))),t&&tL(t),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("scan"))||e.scrollIntoView({behavior:"smooth",block:"start"})}))},[B,y,W]),(0,l.useEffect)(()=>{let e=am.current;if(!e||et||P.trim()!==e.trim())return;am.current=null;let t=document.getElementById("scanner-form");null==t||t.requestSubmit()},[P,et]);let af=e$(P),aj=function(e){switch(e){case"website":return"Looks like a website — we’ll run a site scan.";case"article":return"Looks like a page URL. Use Advanced → Page SEO for this page only.";case"social":return"Looks like a social profile URL — we’ll enrich that profile (not crawl it as a website).";case"name":return"Looks like a name — we’ll check domains and handles.";case"person":return"Looks like a person’s name — we’ll search public profiles.";case"brand":return"Looks like a company or brand — use Company research, or enter the founder’s full name.";case"email":return"Looks like an email — we’ll search public pages where this address appears.";case"phone":return"Looks like a phone number — public web mentions only (no carrier data).";case"username":return"Looks like a username — we’ll check social profiles and public mentions.";case"keyword":return"Looks like a search topic — we’ll show who ranks for it.";default:return null}}(af),ay=y&&j&&null!=(v=null===(t=M.find(e=>e.scanMode===j))||void 0===t?void 0:t.key)?v:null,aN=(0,l.useMemo)(()=>
1{if(!P.trim()||w)return null;let e=function(e){switch(e){case"website":case"article":return"website";case"brand":return"company";case"person":case"email":case"phone":case"username":return"person";case"social":return"social";case"name":return"name";default:return null}}(af);if(!e)return null;if(y&&ay){if(e===ay||"company"===ay&&"person"===af&&!eD(P.trim())&&!eU(P.trim())&&!P.trim().startsWith("@")&&!eO(P.trim()))return null;let t=M.find(t=>t.key===e);return{href:t.href,label:t.label}}return null},[af,y,ay,w,P]),aw=w?eF:eP,ak=!y&&!w,a_=w&&!y,aS=!y||N,aC=(0,l.useMemo)(()=>(null==ex?void 0:ex.categories)?Object.entries(ex.categories).sort((e,t)=>{let[a]=e,[s]=t;return a.localeCompare(s)}):[],[ex]),aL=(0,l.useMemo)(()=>!w&&"stack"===W&&!t7&&!et&&eq(P),[w,W,t7,et,P]),aI=!!((null==ex?void 0:ex.profile)&&(ex.profile.name||ex.profile.description||ex.profile.emails&&ex.profile.emails.length>0||ex.profile.phones&&ex.profile.phones.length>0||ex.profile.addresses&&ex.profile.addresses.length>0||ex.profile.socials&&ex.profile.socials.length>0||ex.profile.links&&ex.profile.links.length>0)),aA=(0,l.useMemo)(()=>e0(ex,P),[ex,P]),aM=(0,l.useMemo)(()=>aA?eQ:eX,[aA]);(0,l.useEffect)(()=>{(null==ex?void 0:ex.scan_id)&&tV(aA?"site":"business")},[null==ex?void 0:ex.scan_id,aA]);let aE=(0,l.useMemo)(()=>{if(aA||!ex)return[];let e=new Set((0,S.Ag)(ex));return S.Mw.filter(t=>e.has(t.id))},[ex,aA]);function aR(e,t,a){var s={scanMode:e,url:a.url,dossierWebsite:a.dossierWebsite,companyCountry:a.companyCountry,preview:t};try{let e={...s,version:1,savedAt:Date.now()};sessionStorage.setItem(eS,JSON.stringify(e))}catch(e){}al({scanMode:e,preview:t}),ep(null),e3(null),e6(null),te(null),tl(null),tr(null),eu(null),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("research-login-gate"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}async function aT(e){var t,a,s,l,n,r,i,c,o,d,m,u,x,p,h,b,v,g,f,j,y,N,w,k,_,S,L,I,A,M;if(e.preventDefault(),!(0,e_.A9)(W,at,C))return void eu(e_.NL);null==(t=ao.current)||t.abort();let E=new AbortController;ao.current=E;let{signal:R}=E,B=Date.now();ea(!0),eu(null),tP(null),al(null),"person-dossier"===W&&(tl(null),tr(null)),ec(5),ed("google-index"===W?"Starting index check…":"ai-visibility"===W?"Starting GEO check…":"share-of-voice"===W?"Starting share-of-voice check…":"brand-social"===W?"Starting brand check…":"name-research"===W?"Starting name research…":"company-dossier"===W?"Building company dossier…":"person-dossier"===W?"Searching for people…":"compare"===W?"Starting site compare…":"page-seo"===W?"Starting page analysis…":"Starting scan…");try{if("compare"===W){let e=await (0,T.CiW)(ez(P),ez(tC),{signal:R});ec(100),ed("Done"),tA(e),ej(null),eG(null),eZ(null),e2(null),e3(null),te(null),tl(null),tr(null),ep(null),eb(null),eg(null),tX(null),t$(!1),t2(null),t6(null),t8(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("site-compare-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("ai-visibility"===W){let e=P.trim(),t=await (0,T.T1q)(e,ey.trim()||void 0);ec(100),ed("Done"),ej(t),eG(null),eZ(null),e2(null),e3(null),tA(null),ep(null),eb(null),eg(null),tX(null),t$(!1),t6(null),t8(!1),t.quota&&aa(t.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("ai-visibility-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("share-of-voice"===W){let e=await (0,T.htZ)(P.trim(),eH.trim()||void 0);ec(100),ed("Done"),eG(e),ej(null),eZ(null),e2(null),e3(null),tA(null),ep(null),eb(null),eg(null),tX(null),t$(!1),t6(null),t8(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("share-of-voice-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("brand-social"===W){let e=await (0,T.hBf)(P.trim(),{signal:R});ec(100),ed("Done"),eZ(e),e2(null),e3(null),tA(null),ej(null),eG(null),ep(null),eb(null),eg(null),tX(null),t$(!1),t6(null),t8(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("brand-social-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("name-research"===W){let e=await (0,T.Nf6)(P.trim(),{signal:R});ec(100),ed("Done"),e2(e),eZ(null),e3(null),tA(null),ej(null),eG(null),ep(null),eb(null),eg(null),tX(null),t$(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;
1null==(e=document.getElementById("name-research-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("company-dossier"===W){let e=await (0,T.NB2)(P.trim(),{website:ty.trim()||void 0,country:tw||void 0,force_refresh:t_,signal:R});if((0,T.xAz)(e))return void aR("company-dossier",e.preview||{},{url:P.trim(),dossierWebsite:ty.trim()||void 0,companyCountry:tw||void 0});let t=function(e){let{cached:t,startedAt:a,now:s=Date.now(),random:l=Math.random()}=e;return t?Math.max(0,1e4+Math.floor(5e3*Math.min(1,Math.max(0,Number(l)||0)))-Math.max(0,s-a)):0}({cached:!0===e.cached&&!t_,startedAt:B});if(t>0&&(ec(92),ed("Loading deeper lookup…"),await new Promise(e=>{let a=window.setTimeout(e,t);R.addEventListener("abort",()=>{window.clearTimeout(a),e()},{once:!0})}),R.aborted))throw new T.zbS;ec(100),ed("Done"),eC(),e3(e),e6(null),te(null),tl(null),tr(null),eZ(null),e2(null),tA(null),ej(null),eG(null),ep(null),eb(null),eg(null),tX(null),t$(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("company-dossier-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("person-dossier"===W){let e=await (0,T.Ayj)(P.trim(),{company:tx.trim()||void 0,location:th.trim()||void 0,title:tv.trim()||void 0,website:tf.trim()||void 0,signal:R});if(ec(100),ed("Done"),(0,T.RoE)(e))return void aR("person-dossier",e.preview||{},{url:P.trim()});eC(),te(e),ta(null!=(a=e.search_cache_key)?a:null),tl(null),tr(null),e3(null),eZ(null),e2(null),tA(null),ej(null),eG(null),ep(null),eb(null),eg(null),tX(null),t$(!1),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var t,a;let s=(null==(t=e.candidates)?void 0:t.length)?"person-candidate-results":"person-search-empty";null==(a=document.getElementById(s))||a.scrollIntoView({behavior:"smooth",block:"start"})})}else{let e=ez(P);if("stack"===W&&"social"===e$(P)){let e=await (0,T.hBf)(P.trim(),{signal:R});ec(100),ed("Done"),eZ(e),e2(null),e3(null),tA(null),ej(null),eG(null),ep(null),eb(null),eg(null),tX(null),t$(!1),t6(null),e.quota&&aa(e.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("brand-social-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("google-index"===W){let t=await (0,T.m4w)(e,{signal:R});ec(100),ed("Done"),eg(t),ep(null),eb(null),eZ(null),e2(null),e3(null),tA(null),ej(null),eG(null),tX(null),t$(!1),t.quota&&aa(t.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("google-index-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else if("page-seo"===W){let t=await (0,T.wpb)(e,{signal:R});ec(100),ed("Done"),eb(t),ep(null),eg(null),eZ(null),e2(null),e3(null),tA(null),ej(null),eG(null),tX(null),t$(!1),t.quota&&aa(t.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("page-seo-results"))||e.scrollIntoView({behavior:"smooth",block:"start"})})}else{let t=await (0,T.l64)({url:e,save:!!C&&(U||H||Y||Z||Q),watch:!!C&&H,watch_content:!!C&&Y,watch_uptime:!!C&&Z,watch_visual:!!C&&Q,niche:"auto",signal:R});if((0,T.uJj)(t))return void aR(W,t.preview||{},{url:e});let a=function(e){let{cached:t,startedAt:a,now:s=Date.now(),random:l=Math.random()}=e;return t?Math.max(0,8e3+Math.floor(2e3*Math.min(1,Math.max(0,Number(l)||0)))-Math.max(0,s-a)):0}({cached:!0===t.cached,startedAt:B});if(a>0&&(ec(92),ed("Loading saved scan…"),await new Promise(e=>{let t=window.setTimeout(e,a);R.addEventListener("abort",()=>{window.clearTimeout(t),e()},{once:!0})}),R.aborted))throw new T.zbS;ec(100),ed("Done"),eC(),ep(t),eb(null),eg(null),eZ(null),e2(null),e3(null),tA(null),ej(null),eG(null),tX(null),t$(!1),t2(null),t0([]),t6(null),t.quota&&aa(t.quota),requestAnimationFrame(()=>{var e;null==(e=document.getElementById("results"))||e.scrollIntoView({behavior:"smooth",block:"start"})}),T.nrj&&!e0(t,e)&&(t8(!0),(0,T.iRy)({url:null!=(f=t.url)?f:e,final_url:t.final_url,niche_label:t.niche_label,niche_highlights:t.niche_highlights||[],profile_name:(null==(s=t.profile)?void 0:s.name)||(null==(l=t.profile)?void 0:l.title)||null,profile_description:(null==(n=t.profile)?void 0:n.description)||null,technologies:(t.technologies||[]).map(e=>
1e.name).filter(Boolean).slice(0,40),trust_score:null!=(j=null==(r=t.trust)?void 0:r.score)?j:null,trust_label:null!=(y=null==(i=t.trust)?void 0:i.label)?y:null,security_score:null!=(N=null==(c=t.security)?void 0:c.score)?N:null,security_label:null!=(w=null==(o=t.security)?void 0:o.label)?w:null,tech_debt_score:null!=(k=null==(d=t.tech_debt)?void 0:d.score)?k:null,tech_debt_label:null!=(_=null==(m=t.tech_debt)?void 0:m.label)?_:null,performance_score:null!=(S=null==(u=t.performance)?void 0:u.score)?S:null,performance_label:null!=(L=null==(x=t.performance)?void 0:x.label)?L:null,seo_score:null!=(I=null==(p=t.seo)?void 0:p.score)?I:null,seo_label:null!=(A=null==(h=t.seo)?void 0:h.label)?A:null,domain_age_label:null!=(M=null==(b=t.domain_age)?void 0:b.age_label)?M:null,blocked:!!t.blocked,warning:t.warning,business_pages:t.business_pages||[],catalog_items:t.catalog_items||[],profile_addresses:(null==(v=t.profile)?void 0:v.addresses)||[],site_country:(null==(g=t.domain_age)?void 0:g.country)||null}).then(e=>{R.aborted||t6(e)}).catch(()=>{R.aborted||t6({status:"unavailable",detail:"AI summary unavailable right now."})}).finally(()=>{R.aborted||t8(!1)}))}}}catch(e){if(e instanceof T.zbS)eu(null),ed("Stopped"),ec(0);else{let t=e instanceof Error?e.message:"Scan failed";(0,T.ssj)({message:t,kind:"compare"===W||"stack"===W?"scan_failed":"client_report",path:window.location.pathname,method:"POST",url:P.trim(),detail:e instanceof Error?e.stack||e.message:String(e),meta:{scanMode:W}}),ep(null),eb(null),eg(null),eZ(null),e2(null),e3(null),ej(null),eG(null),tA(null),tX(null),t$(!1),t6(null),t8(!1),eu(t)}}finally{ao.current===E&&(ao.current=null),window.setTimeout(()=>ea(!1),280)}}async function aB(){if(ex&&!tR){if(!C)return void L("login");if(!(0,p.vJ)(C))return void z.push("/pricing");tT(!0),eu(null);try{await (0,eL.A)(ex,t4)}catch(e){eu(e instanceof Error?e.message:"Could not create PDF")}finally{tT(!1)}}}async function az(e){try{var t;if(null==(t=navigator.clipboard)?void 0:t.writeText)return await navigator.clipboard.writeText(e),!0}catch(e){}try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.left="-9999px",document.body.appendChild(t),t.select();let a=document.execCommand("copy");return document.body.removeChild(t),a}catch(e){return!1}}async function aq(){var e;if(!C)return void L("login");let t=null==ex||null==(e=ex.sitemap)?void 0:e.urls;(null==t?void 0:t.length)&&(tU(await az(t.join("\n"))?"Copied!":"Copy failed"),window.setTimeout(()=>tU("Copy URLs"),2e3))}async function aP(){if(!C)return void L("login");if(!aC.length)return;let e=aC.map(e=>{let[t,a]=e;return"".concat(t,"\n").concat(a.map(e=>"- ".concat(e)).join("\n"))}).join("\n\n");tG(await az(e)?"Copied!":"Copy failed"),window.setTimeout(()=>tG("Copy stack"),2e3)}async function aF(){if(!ex||ex.share_revoked||tB)return;if(!C)return void L("login");if(!ex.share_token){tP(null),eu("Run a scan while logged in to create a share link.");return}let e="".concat(window.location.origin,"/report/").concat(ex.share_token);tz(!0),tP(null),eu(null);try{let t=await az(e),a=ex.share_expires_at?" \xb7 expires ".concat(new Date(ex.share_expires_at).toLocaleDateString()):"";t?tP("Link copied".concat(a)):tP("Copy this link".concat(a,": ").concat(e))}catch(t){tP("Copy this link: ".concat(e))}finally{tz(!1)}}async function aW(){if((null==ex?void 0:ex.share_token)&&!ex.share_revoked&&!tF){if(!C)return void L("login");if(window.confirm("Revoke this share link? Anyone with it will lose access.")){tW(!0),eu(null),tP(null);try{await (0,T.sLs)(ex.share_token),ep({...ex,share_revoked:!0}),tP("Share link revoked")}catch(e){eu(e instanceof Error?e.message:"Could not revoke share link")}finally{tW(!1)}}}}async function aD(e){if(null==ex?void 0:ex.site_id){tE(!0),eu(null);try{let t=await (0,T._J1)(ex.site_id,"tech"===e?{is_watching:!ex.is_watching}:"content"===e?{watch_content:!ex.watch_content}:"visual"===e?{watch_visual:!ex.watch_visual}:{watch_uptime:!ex.watch_uptime});ep({...ex,is_watching:t.is_watching,watch_content:t.watch_content,watch_uptime:t.wat
1ch_uptime,watch_visual:t.watch_visual})}catch(e){eu(e instanceof Error?e.message:"Monitor update failed")}finally{tE(!1)}}}return(0,l.useEffect)(()=>{C?(G(!0),C.quota&&aa(C.quota)):(G(!1),V(!1),K(!1),$(!1))},[C]),(0,l.useEffect)(()=>{let e=!1;return(async()=>{try{let t=await (0,T.TNQ)();e||aa(t)}catch(e){}})(),()=>{e=!0}},[null==C?void 0:C.id]),(0,l.useEffect)(()=>{if(E||!C||au.current)return;let e=function(){try{let e=sessionStorage.getItem(eS);if(!e)return null;let t=function(e){try{var t,a;let s=JSON.parse(e);if(!s||1!==s.version||"number"!=typeof s.savedAt||Date.now()-s.savedAt>=18e5||!(null==(t=s.url)?void 0:t.trim())||!(null==(a=s.scanMode)?void 0:a.trim()))return null;return s}catch(e){return null}}(e);if(!t)return sessionStorage.removeItem(eS),null;return t}catch(e){return null}}();e&&(au.current=!0,F(e.url),e.dossierWebsite&&tN(e.dossierWebsite),e.companyCountry&&tk(e.companyCountry),y||D(e.scanMode),al(null),eu(null),window.setTimeout(()=>{let e=document.getElementById("scanner-form");null==e||e.requestSubmit()},0))},[E,C,y]),(0,l.useEffect)(()=>{if(!et){ec(0),ed("");return}ec(8),ed("Connecting…");let e=Date.now(),t=window.setInterval(()=>{let t=Date.now()-e;ec(e=>{let a=Math.min(90,8+t/350);return e>=a?e:Math.min(a,e+1.5)}),"page-seo"===W?t<2500?ed("Fetching page…"):t<6e3?ed("Analyzing SEO…"):t<12e3?ed("Extracting keywords…"):ed("Measuring performance…"):"google-index"===W?t<2e3?ed("Preparing check…"):t<7e3?ed("Querying Google index…"):ed("Finishing check…"):"ai-visibility"===W?t<3e3?ed("Asking AI assistants…"):t<1e4?ed("Estimating GEO visibility…"):ed("Writing fix ideas…"):"share-of-voice"===W?t<2500?ed("Preparing search…"):t<8e3?ed("Fetching Google organic…"):ed("Calculating share of voice…"):"brand-social"===W?t<2e3?ed("Normalizing handle…"):t<7e3?ed("Checking social profiles…"):ed("Finishing presence check…"):"name-research"===W?t<2e3?ed("Normalizing name…"):t<7e3?ed("Checking domains…"):ed("Checking social handles…"):"company-dossier"===W?t<2500?ed("Finding website…"):t<7e3?ed("Scanning stack & profile…"):t<12e3?ed("Enriching social profiles…"):t<17e3?ed("LinkedIn & news lookup…"):ed("Finishing company dossier…"):"person-dossier"===W?t<2500?ed("Searching public web…"):t<8e3?ed("Ranking profile candidates…"):ed("Checking social handles…"):"compare"===W?t<3e3?ed("Scanning both sites…"):t<1e4?ed("Comparing stacks & scores…"):ed("Building side-by-side report…"):t<2500?ed("Fetching pages…"):t<6e3?ed("Detecting technologies…"):t<12e3?ed("Checking DNS & trust…"):ed("Finishing scan…")},180);return()=>window.clearInterval(t)},[et,W]),(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col px-4 pb-24 pt-10 sm:px-6 md:pt-12",children:[(0,s.jsxs)("section",{className:"relative space-y-5 fade-up",children:[(0,s.jsxs)("div",{className:"relative mx-auto flex w-full flex-col items-center space-y-5 text-center",children:[(0,s.jsxs)("span",{className:"mb-1 inline-flex items-center gap-2 rounded-full border border-[rgba(32,44,104,0.2)] bg-[var(--surface)] px-3 py-1 text-xs font-semibold tracking-[0.12em] text-[var(--accent)] uppercase shadow-sm backdrop-blur-sm",children:[(0,s.jsx)(o,{size:"sm"}),"AI web intelligence"]}),(0,s.jsx)("h1",{className:"text-3xl leading-[1.08] font-semibold tracking-tight text-[#3166d0] md:whitespace-nowrap md:text-[2.35rem] lg:text-[2.55rem]",children:f.hero.headline}),(0,s.jsx)("p",{className:"max-w-xl text-base leading-relaxed text-[var(--muted)] md:text-lg",children:f.hero.subhead})]}),(0,s.jsx)("div",{id:"scan",className:"fade-up-delay",children:(0,s.jsxs)("div",{className:"scan-shell rounded-[1.5rem] p-5 md:rounded-[1.75rem] md:p-8",children:[(0,s.jsxs)("div",{className:"relative z-20 mb-5 flex flex-col gap-2 overflow-visible sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,s.jsxs)("p",{className:"inline-flex items-center gap-2 text-sm font-bold tracking-[0.16em] text-[var(--accent)] uppercase",children:[(0,s.jsx)("span",{className:"inline-flex size-7 items-center justify-center rounded-lg bg-[rgba(32, 44, 104,0.12)]",children:(0,s.jsx)(o,{size:"sm"})}),f.scanner.badge]}),(0,s.jsxs)("span",{className:"inline-flex items-center gap-2 rounded-md border px-2.5 py-1 text-sm font-semibold ".concat(et?"border-[rgba(240,180,70,0.4)] bg-[rgba(240,180,70,0.14)] text-[var(--ink)]":"border-[rgba(16,185,129,0.4)] bg-[rgba(16,185,129,0.1)] text-[#059669]"),children:[(0,s.jsx)("span",{className:"size-2 roun
1ded-full ".concat(et?"bg-[#f0b446] animate-pulse":"bg-[#10b981]")}),et?"Scanning":f.scanner.readyLabel]}),(0,s.jsxs)(r(),{href:"/pricing",className:"inline-flex items-center rounded-md border border-[rgba(238,245,249,0.18)] bg-[var(--panel-tint)] px-2.5 py-1 text-xs font-semibold text-[var(--muted)] transition hover:border-[rgba(32, 44, 104,0.4)] hover:text-[var(--accent)]",children:[(0,e_.Lv)(at,C),(0,s.jsx)("span",{className:"ml-1.5 text-[0.65rem] font-bold tracking-wide text-[var(--accent)]",children:"PLANS"})]}),et||ab||!an?null:(0,s.jsxs)("button",{type:"button",onClick:function(){var e,t,a,s,l,n,r,i,c,o,d,m,u,x,p,h,b,v,g,f,j,N;let w=eR(ah);if(!w||w.scanMode!==ah){ar(!1),ac(0);return}eu(null),F(w.url),y||D(w.scanMode),null!=w.compareUrlB&&tL(w.compareUrlB),null!=w.geoBrand&&eM(w.geoBrand),null!=w.sovDomain&&eV(w.sovDomain),null!=w.dossierWebsite&&tN(w.dossierWebsite),null!=w.companyCountry&&tk(w.companyCountry),ep(null!=(t=w.result)?t:null),eb(null!=(a=w.pageSeoResult)?a:null),eg(null!=(s=w.googleIndexResult)?s:null),ej(null!=(l=w.aiVisibilityResult)?l:null),eG(null!=(n=w.shareOfVoiceResult)?n:null),eZ(null!=(r=w.brandSocialResult)?r:null),e2(null!=(i=w.nameResearchResult)?i:null),e3(null!=(c=w.companyDossierResult)?c:null),e6(null!=(o=w.companyBrief)?o:null),te(null!=(d=w.personSearchResult)?d:null),ta(null!=(m=w.personSearchCacheKey)?m:null),tl(null!=(u=w.personDossierResult)?u:null),tr(null!=(x=w.personBrief)?x:null),td(null!=(p=w.personDossierCache)?p:{}),tp(null!=(h=w.personCompany)?h:""),tb(null!=(b=w.personLocation)?b:""),tg(null!=(v=w.personTitle)?v:""),tj(null!=(g=w.personWebsite)?g:""),tA(null!=(f=w.siteCompareResult)?f:null),t6(null!=(j=w.scanSummary)?j:null),t8(!1),tX(null),t$(!1),t2(null),tV((N=w.activeTab)?"ai-summary"===N||"seo"===N?"seo"===N?"advanced":"business":"business"===N||"site"===N||"technology"===N||"advanced"===N||(0,S.Em)(N)?N:"business":"business"),ec(100),ed("Restored"),ac(eT(ah));let k="page-seo"===w.scanMode?"page-seo-results":"google-index"===w.scanMode?"google-index-results":"ai-visibility"===w.scanMode?"ai-visibility-results":"share-of-voice"===w.scanMode?"share-of-voice-results":"brand-social"===w.scanMode?"brand-social-results":"name-research"===w.scanMode?"name-research-results":"company-dossier"===w.scanMode?"company-dossier-results":"person-dossier"===w.scanMode?w.personDossierResult?"person-dossier-results":w.personSearchResult&&(null==(e=w.personSearchResult.candidates)?void 0:e.length)?"person-candidate-results":"person-search-empty":"compare"===w.scanMode?"site-compare-results":"results";requestAnimationFrame(()=>{var e;null==(e=document.getElementById(k))||e.scrollIntoView({behavior:"smooth",block:"start"})})},className:"btn-primary inline-flex items-center gap-2 rounded-xl px-4 py-2.5 text-sm shadow-[0_8px_20px_rgba(32,44,104,0.28)] sm:px-5 sm:py-3 sm:text-base",title:"Load your last scan from this browser (kept for 30 minutes)",children:[(0,s.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 20 20",fill:"none",className:"size-4 shrink-0 sm:size-5",children:(0,s.jsx)("path",{d:"M3.5 10a6.5 6.5 0 1 1 1.9 4.6M3.5 10V6.5M3.5 10H7",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,s.jsx)("span",{className:"font-bold",children:"Last scan"}),ai>0?(0,s.jsxs)("span",{className:"rounded-md bg-white/20 px-2 py-0.5 text-xs font-semibold sm:text-sm",children:[ai,"m left"]}):null]})]}),(0,s.jsx)("div",{className:"flex max-w-full flex-wrap items-center justify-end gap-2",children:ex?(0,s.jsx)(k,{result:ex,user:C,pdfBusy:tR,competitorsBusy:!1,shareBusy:tB,revokeBusy:tF,watchBusy:tM,shareCopied:!!(null==tq?void 0:tq.startsWith("Link copied")),onDownloadPdf:()=>void aB(),onFindCompetitors:()=>{if(!ex)return;if(!C)return void L("login");let e=(ex.final_url||ex.url||"").replace(/^https?:\/\//i,"").replace(/^www\./i,"").split("/")[0],t=new URLSearchParams;e&&t.set("domain",e);let a=(ex.niche_label||ex.niche||"").trim();a&&"auto"!==a.toLowerCase()&&"general"!==a.toLowerCase()&&t.set("industry",a),z.push("/find-competitors?".concat(t.toString()))},onShareReport:()=>void aF(),onRevokeShare:()=>void aW(),onToggleWatch:e=>void aD(e)}):null})]}),tq?(0,s.jsx)("p",{role:"status",className:"relative z-[1] mb-4 rounded-xl border border-[rgba(32, 44, 104,0.35)] bg-[rgba(32, 44, 104,0.1)] px-3 py-2.5 text-sm font-semibold break-all text-[var(--accent)]",children:tq}):null,(0,s.jsxs)("form",{id:"scanner-form",onSubmit:aT,className:"relative z-0 space-y-5",children:[(0,s.jsx)(ek.A,{quota:at,user:C,scanMode:W,freeHint:"person-dossier"===W?"Person name search is still free. Cached dossiers can be reopened without a credit.":null}),(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsx)("span",{className:"scan-label text-sm",children:"compare"===W?"Site A URL":"Look up"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,s.jsx)("input",{value:P,onChange:e=>{let t=e.target.value,a=w||y||ax||"person-dossier"===W&&function(e){let t=e.trim();if(!t)return!1;let a=e$(t);return"website"!==a&&"article"!==a&&"social"!==a&&(eD(t)||eU(t)||t.startsWith("@")||eO(t)||eY(t))}(t)?null:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e$(e);return"website"===a?"stack":"social"===a?t?null:"brand-social":"name"===a?t?null:"name-research":"person"===a?t?null:"person-dossier":"brand"===a?t?null:"company-dossier":"email"===a||"phone"===a||"username"===a?t?null:"person-dossier":"keyword"===a?"share-of-voice":null}(t,!1),s=null!=a?a:W;"name-research"===s?t=t.slice(0,40):"company-dossier"===s?t=t.slice(0,60):"person-dossier"===s&&(t=t.
1slice(0,60)),F(t),a&&D(a),ae(!1)},placeholder:w?"example.com or https://…":"compare"===W?"yoursite.com":"person-dossier"===W?"Full name, email, @username, or phone — add company or city below":"example.com, @brand, or a name",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,maxLength:"name-research"===W?40:"company-dossier"===W||"person-dossier"===W?60:void 0,className:"scan-input w-full flex-1 rounded-xl px-4 py-4 text-base",required:!0,disabled:et}),et?(0,s.jsxs)("button",{type:"button",onClick:av,className:"inline-flex items-center justify-center gap-2 rounded-xl border border-[var(--danger-line)] bg-[var(--danger-bg)] px-6 py-4 text-sm font-bold tracking-wide whitespace-nowrap text-[var(--danger-text)] transition hover:brightness-105",children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"inline-block size-2.5 rounded-[2px] bg-[var(--danger-text)]"}),"Stop"]}):(0,s.jsxs)("button",{type:"submit",disabled:!(0,e_.A9)(W,at,C),className:"scan-submit relative inline-flex items-center justify-center gap-2 overflow-hidden rounded-xl px-7 py-4 text-sm tracking-wide whitespace-nowrap disabled:cursor-not-allowed disabled:opacity-60",children:[(0,s.jsx)(o,{size:"sm",className:"opacity-95"}),(0,e_.$d)(W,at,C)]})]}),"name-research"===W?(0,s.jsxs)("p",{className:"text-xs text-[var(--muted)] tabular-nums",children:[P.length,"/",40," characters"]}):null,"company-dossier"===W?(0,s.jsxs)("p",{className:"text-xs text-[var(--muted)] tabular-nums",children:[P.length,"/",60," characters"]}):null,"person-dossier"===W?(0,s.jsxs)("p",{className:"text-xs text-[var(--muted)] tabular-nums",children:[P.length,"/",60," characters"]}):null,aN?(0,s.jsxs)("p",{className:"text-xs text-[var(--muted)]",children:[y?"Looks like a different research type — try":"For this input, use"," ",(0,s.jsx)(r(),{href:aN.href,className:"font-semibold text-[var(--accent)] underline-offset-2 hover:underline",children:aN.label}),"."]}):!aj||ax||w?null:(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:aj})]}),ak?(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)("p",{className:"scan-label text-sm",children:"Or pick what you want"}),(0,s.jsxs)("select",{"aria-label":"Scan type",value:W,disabled:et,onChange:e=>{ap(!0),D(e.target.value)},className:"scan-input w-full rounded-xl px-4 py-3 text-base md:hidden",children:[(0,s.jsxs)("optgroup",{label:"Site intelligence",children:[(0,s.jsx)("option",{value:"stack",children:"Website scan"}),(0,s.jsx)("option",{value:"compare",children:"Compare sites"}),(0,s.jsx)("option",{value:"company-dossier",children:"Company research"}),(0,s.jsx)("option",{value:"person-dossier",children:"Person research"}),(0,s.jsx)("option",{value:"brand-social",children:"Social profiles"}),(0,s.jsx)("option",{value:"name-research",children:"Name taken?"})]}),(0,s.jsx)("optgroup",{label:"SEO & rankings (advanced)",children:eW.map(e=>{let[t,a]=e;return(0,s.jsx)("option",{value:t,children:a},t)})})]}),(0,s.jsx)("div",{className:"hidden flex-wrap gap-2 md:flex",children:aw.map(e=>{let[t,a]=e,l=eJ(W)===t;return(0,s.jsx)("button",{type:"button",onClick:()=>(ap(!0),"advanced"===t)?void D(e=>"advanced"===eJ(e)?e:"page-seo"):"stack"===t?void D(e=>"stack"===eJ(e)?e:"stack"):void D(t),disabled:et,className:"focus-chip rounded-lg px-3 py-2 text-sm font-bold ".concat(l?"is-active":""),children:a},t)})}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"page-seo"===W?"Check this one page for SEO — not the whole website.":"google-index"===W?"See if Google already has this page.":"ai-visibility"===W?"See if AI chat tools would mention your brand for this topic.":"share-of-voice"===W?"Type a search term. We’ll show which sites rank in Google’s top 10.":"compare"===W?"Compare two websites side by side.":"brand-social"===W?"Find Instagram, X, LinkedIn, YouTube, TikTok, and other profiles.":"name-research"===W?"See if this brand name’s website and social handles look free.":"company-dossier"===W?"Look up a company: what they do, website, tech, and socials.":"person-dossier"===W?"Search public profiles by name, then build a sourced person dossier.":"Understand a website: what they do, who they serve, tech stack, and trust."})]}):null,a_?(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)("p",{className:"scan-label text-sm",children:"More research tools"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:M.filter(e=>"website"!==e.key&&"trends"!==e.key).map(e=>(0,s.jsx)(r(),{href:e.href,className:"rounded-lg border border-[var(--line)] bg-transparent px-3 py-2 text-sm font-semibold text-[var(--ink)] transition hover:border-[var(--accent)] hover:text-[var(--accent)]",children:e.label},e.key))})]}):null,aS?(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsxs)("select",{"aria-label":"Website scan type",value:"compare"===W?"stack":W,disabled:et,onChange:e=>{ap(!0),D(e.target.value)},className:"scan-input w-full rounded-xl px-4 py-3 text-base md:hidden",children:[(0,s.jsx)("option",{value:"stack",children:"Website scan"}),(0,s.jsx)("optgroup",{label:"SEO & rankings (advanced)",children:eW.map(e=>
1{let[t,a]=e;return(0,s.jsx)("option",{value:t,children:a},t)})})]}),(0,s.jsxs)("details",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 ".concat("advanced"===eJ(W)?"border-[var(--accent)]/40":""),children:[(0,s.jsx)("summary",{className:"cursor-pointer text-sm font-semibold text-[var(--muted)]",children:"SEO & rankings (advanced)"}),(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2 pb-1",children:eW.map(e=>{let[t,a]=e;return(0,s.jsx)("button",{type:"button",onClick:()=>{ap(!0),D(t)},disabled:et,className:"rounded-lg border px-3 py-2 text-sm font-semibold transition ".concat(W===t?"border-[var(--accent)] bg-[rgba(32, 44, 104,0.14)] text-[var(--ink)]":"border-[var(--line)] bg-transparent text-[var(--muted)] hover:text-[var(--accent)]"),children:a},t)})})]}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"page-seo"===W?"Check this one page for SEO — not the whole website.":"google-index"===W?"See if Google already has this page.":"ai-visibility"===W?"See if AI chat tools would mention your brand for this topic.":"share-of-voice"===W?"Type a search term. We’ll show which sites rank in Google’s top 10.":"Understand a website: what they do, who they serve, tech stack, and trust."})]}):null,"ai-visibility"===W?(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Brand ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:ey,onChange:e=>eM(e.target.value),placeholder:"Your brand name",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"Defaults to the topic if empty."})]}):null,"share-of-voice"===W?(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Your domain ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:eH,onChange:e=>eV(e.target.value),placeholder:"example.com",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"Highlights your rank and share if you appear in the top 10."})]}):null,"compare"===W?(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsx)("span",{className:"scan-label text-sm",children:"Site B URL"}),(0,s.jsx)("input",{value:tC,onChange:e=>tL(e.target.value),placeholder:"competitor.com",className:"scan-input w-full rounded-xl px-4 py-4 text-base",required:!0,disabled:et}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"Uses one daily scan credit when you are logged in."})]}):null,"company-dossier"===W?(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Website ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:ty,onChange:e=>tN(e.target.value),placeholder:"acme.com",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})]}),(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Country ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsxs)("select",{value:tw,onChange:e=>tk(e.target.value),className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et,"aria-label":"Country",children:[(0,s.jsx)("option",{value:"",children:"Any country"}),eB.q.map(e=>(0,s.jsx)("option",{value:e.code,children:e.label},e.code))]})]}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)] sm:col-span-2",children:"If the website is empty, Hazana looks up a likely official site — country helps pick the right company when names overlap."})]}):null,"person-dossier"===W?(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Company ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:tx,onChange:e=>tp(e.target.value),placeholder:"Acme Inc",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et||tm})]}),(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Website ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:tf,onChange:e=>tj(e.target.value),placeholder:"janedoe.com",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et||tm,autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})]}),(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Location ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:th,onChange:e=>tb(e.target.value),placeholder:"Austin, TX",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et||tm})]}),(0,s.jsxs)("label",{className:"block space-y-2.5",children:[(0,s.jsxs)("span",{className:"scan-label text-sm",children:["Job title ",(0,s.jsx)("span",{className:"font-semibold text-[var(--muted)]",children:"(optional)"})]}),(0,s.jsx)("input",{value:tv,onChange:e=>tg(e.target.value),placeholder:"VP Sales",className:"scan-input w-full rounded-xl px-4 py-4 text-base",disabled:et||tm})]})]}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"Optional website (e.g. janedoe.com): we fetch that page directly when the person’s name, email, or phone appears there. For local phone numbers (e.g. starting with 0), add a country or city in Location to improve regional results when a website is not provided."}),(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:"Search by full name, email, username, or phone number. Search is free. Building a dossier uses one daily scan credit (cached profiles are free). Back to the match list is free — pick again without searching."}),eU(P.trim())?(0,s.jsx)("p",{className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2 text-xs leading-relaxed text-[var(--muted)]",children:"Phone lookup searches public web pages where this number appears. Hazana does not provide carrier, line type, subscriber records, or live location data."}):null,(0,e_.G9)(at)?(0,s.jsx)("p",{className:"text-xs text-[var(--muted)]",children:'Person search stays free at the daily limit. New dossiers need a credit;
1 profiles you already opened show as "View dossier (free)".'}):null]}):null,aL?(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-[rgba(32, 44, 104,0.35)] bg-[rgba(32, 44, 104,0.1)] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",role:"status",children:[(0,s.jsxs)("p",{className:"text-sm text-[var(--muted)]",children:["This looks like an article URL."," ",(0,s.jsx)("span",{className:"font-medium text-[var(--ink)]",children:"Page SEO"})," analyzes only this page’s keywords, SEO, and performance — not the full technology stack."]}),(0,s.jsxs)("div",{className:"flex shrink-0 flex-wrap gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>D("page-seo"),className:"rounded-lg bg-[var(--accent)] px-3 py-2 text-sm font-semibold text-[var(--on-accent)] transition hover:brightness-110",children:"Switch to Page SEO"}),(0,s.jsx)("button",{type:"button",onClick:()=>ae(!0),className:"rounded-lg border border-[var(--line)] px-3 py-2 text-sm font-medium text-[var(--muted)] transition hover:text-[var(--accent)]",children:"Keep website stack"})]})]}):null,et?(0,s.jsxs)("div",{className:"scan-progress space-y-2","aria-live":"polite",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 text-sm",children:[(0,s.jsx)("span",{className:"font-medium text-[var(--muted)]",children:eo||"Scanning…"}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("span",{className:"tabular-nums font-semibold text-[var(--accent)]",children:[Math.round(el),"%"]}),(0,s.jsx)("button",{type:"button",onClick:av,className:"text-xs font-semibold text-[var(--danger-text)] underline-offset-2 hover:underline",children:"Stop scan"})]})]}),(0,s.jsx)("div",{className:"scan-progress-track h-2.5 overflow-hidden rounded-full",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(el),children:(0,s.jsx)("div",{className:"scan-progress-fill h-full rounded-full",style:{width:"".concat(Math.max(4,el),"%")}})})]}):null,"stack"===W?(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-6 text-sm",children:C?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("label",{className:"scan-option inline-flex items-center gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:U,onChange:e=>G(e.target.checked)}),"Save this site"]}),(0,s.jsxs)("label",{className:"scan-option inline-flex items-center gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:H,onChange:e=>{V(e.target.checked),e.target.checked&&G(!0)}}),"Monitor tech changes"]}),(0,s.jsxs)("label",{className:"scan-option inline-flex items-center gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:Y,onChange:e=>{K(e.target.checked),e.target.checked&&G(!0)}}),"Watch new articles"]}),(0,s.jsxs)("label",{className:"scan-option inline-flex items-center gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:Z,onChange:e=>{$(e.target.checked),e.target.checked&&G(!0)}}),"Watch uptime + SSL/DNS (every 5 min)"]}),(0,s.jsxs)("label",{className:"scan-option inline-flex items-center gap-2.5",children:[(0,s.jsx)("input",{type:"checkbox",checked:Q,onChange:e=>{ee(e.target.checked),e.target.checked&&G(!0)}}),"Watch homepage look (visual)"]})]}):(0,s.jsxs)("p",{children:[(0,s.jsx)("button",{type:"button",onClick:()=>L("login"),className:"font-medium text-[var(--accent)]",children:"Log in"})," ","to save sites and monitor them for changes."]})}):null]}),em?(0,s.jsx)("p",{className:"relative z-[1] mt-5 rounded-xl border border-[var(--danger-line)] bg-[var(--danger-bg)] px-4 py-3 text-sm text-[var(--danger-text)]",children:em}):null,as&&("website"===(g=as.scanMode)||"stack"===g||"company-dossier"===g||"person-dossier"===g)?(0,s.jsxs)("div",{id:"research-login-gate",className:"relative z-[1] mt-8 rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] px-6 py-10 text-center shadow-sm",children:[(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:"person-dossier"===as.scanMode?as.preview.query||as.preview.label?"Log in to research ".concat(as.preview.query||as.preview.label):"Log in to research this person":"company-dossier"===as.scanMode?as.preview.technology_count?as.preview.company_name?"We found a profile for ".concat(as.preview.company_name):"Your company research is ready":as.preview.company_name?"Log in to research ".concat(as.preview.company_name):"Log in to research this company":as.preview.technology_count?"We scanned ".concat(as.preview.final_url||as.preview.url||"this site"," and found ").concat(as.preview.technology_count," technolog").concat(1===as.preview.technology_count?"y":"ies"):"Your website scan is ready"}),(0,s.jsx)("p",{className:"mx-auto mt-3 max-w-xl text-sm leading-relaxed text-[var(--muted)]",children:"person-dossier"===as.scanMode?"Person research uses live public-web search. Log in to run it — your query is saved and will continue automatically after you sign in.":"company-dossier"!==as.scanMode||as.preview.technology_count?"Log in to view the full stack report, trust scores, and company profile. Your results will load automatically — you won&apos;t need to scan again.":"Company research uses live public-web search. Log in to run it — your query is saved and will continue automatically after you sign in."}),(0,s.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:()=>L("login"),className:"rounded-xl bg-[var(--accent)] px-5 py-2.5 text-sm font-semibold text-[var(--on-accent)]",children:"Log in to view results"}),(0,s.jsx)("button",{type:"button",onClick:()=>L("signup"),className:"rounded-xl border border-[var(--line)] px-5 py-2.5 text-sm font-semibold text-[var(--ink)]",children:"Create free account"})]}),(0,s.jsx)("p",{className:"mt-4 text-xs text-[var(--muted)]",children:"Free accounts get 6 website scans per day."})]}):null]})})]}),eh?(0,s.jsx)(ei,{result:eh}):null,ev?(0,s.jsx)(X,{result:ev}):null,ef?(0,s.jsx)(A,{result:ef}):null,eE?(0,s.jsx)(R,{result:eE}):null,tI?(0,s.jsx)(eN,{result:tI}):null,eK?(0,s.jsx)(I,{result:eK}):null,e1?(0,s.jsx)(es,{result:e1}):null,e5?(0,s.jsx)(q,{result:e5,brief:e4,briefBusy:e9}):null,(null==e7||null==(a=e7.candidates)?void 0:a.length)&&!ts?(0,s.jsx)(O,{candidates:e7.candidates,summary:e7.summary,disclaimer:e7.disclaimer,inputType:e7.input_type,loading:tm,cachedCandidateIds:(e7.candidates||[]).filter(e=>!!to[e.id]).map(e=>e.id),quotaBlocked:(0,e_.G9)(at),onSelect:e=>void ag(e)}
1):null,!e7||(null==(n=e7.candidates)?void 0:n.length)||ts?null:(0,s.jsx)("section",{id:"person-search-empty",className:"mt-12 space-y-4",children:(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5 sm:p-6",children:[(0,s.jsx)("p",{className:"text-lg font-semibold text-[var(--ink)]",children:e7.label}),(0,s.jsx)("p",{className:"mt-2 text-sm leading-relaxed text-[var(--muted)]",children:e7.summary}),e7.disclaimer?(0,s.jsx)("p",{className:"mt-3 text-xs leading-relaxed text-[var(--muted)]",children:e7.disclaimer}):null]})}),ts?(0,s.jsx)(J,{result:ts,brief:tn,briefBusy:ti,matchCount:null==e7||null==(c=e7.candidates)?void 0:c.length,onBackToMatches:()=>{tl(null),tr(null)}}):null,ex?(0,s.jsxs)("section",{id:"results",className:"mt-12 space-y-5",children:[aA&&ex.scan_id?(0,s.jsx)(_.A,{scanId:ex.scan_id,siteId:ex.site_id}):null,(0,s.jsx)("div",{className:"rounded-[1.5rem] border border-[var(--line)] bg-[var(--surface)] p-4 sm:p-5 md:p-6",children:(0,s.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between",children:[(0,s.jsx)("div",{className:"min-w-0 flex-1 space-y-3",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-2xl font-semibold tracking-tight",children:aA?"Social profile results":"Scan results"}),(0,s.jsx)("p",{className:"mt-1 break-all text-sm text-[var(--muted)]",children:ex.final_url||ex.url}),(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:aA?"Profile enrichment — not a website crawl. Followers, country, and category are in Social intelligence above.":[ex.status_code?"HTTP ".concat(ex.status_code):ex.status,"".concat(ex.technologies.length," technologies"),ex.pages_scanned&&ex.pages_scanned.length>1?"".concat(ex.pages_scanned.length," pages scanned"):null].filter(Boolean).join(" \xb7 ")})]})}),aA?null:(0,s.jsxs)("div",{className:"grid w-full grid-cols-2 gap-2 sm:gap-3 lg:w-auto lg:min-w-[22rem] lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4",children:[ex.domain_age?(0,s.jsxs)("button",{type:"button",onClick:()=>{var e,t,a;return((null==(e=ex.domain_age)?void 0:e.found)||(null==(t=ex.domain_age)?void 0:t.ip)||(null==(a=ex.domain_age)?void 0:a.country))&&tV("domain")},disabled:!ex.domain_age.found&&!ex.domain_age.ip&&!ex.domain_age.country,className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("domain"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"," disabled:cursor-default disabled:opacity-80"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--accent)] uppercase",children:"Domain age"}),ex.domain_age.found&&ex.domain_age.age_label?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"mt-1 text-lg font-semibold tracking-tight text-[var(--ink)]",children:ex.domain_age.age_label}),(0,s.jsxs)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:["Since ",ex.domain_age.created_at]})]}):ex.domain_age.found?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"mt-1 text-lg font-semibold tracking-tight text-[var(--ink)]",children:ex.domain_age.registrar||"Registered"}),(0,s.jsx)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:"Age not published"})]}):(0,s.jsx)("p",{className:"mt-1 text-sm text-[var(--muted)]",children:"Not available"})]}):null,ex.security?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("security"),className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("security"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"Security posture"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.security.score)},children:[ex.security.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:(0,er.Y)(ex.security.score)},children:ex.security.label})]}):null,ex.tech_debt?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("freshness"),className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("freshness"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"Stack freshness"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.tech_debt.score)},children:[ex.tech_debt.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:(0,er.Y)(ex.tech_debt.score)},children:ex.tech_debt.label})]}):null,ex.privacy?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("privacy"),className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("privacy"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"Privacy"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.privacy.score)},children:[ex.privacy.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:ex.privacy.coverage_label&&"Full"!==ex.privacy.coverage_label?"var(--muted)":(0,er.Y)(ex.privacy.score)},children:ex.privacy.coverage_label&&"Full"!==ex.privacy.coverage_label?"Coverage: ".concat(ex.privacy.coverage_label):ex.privacy.label})]}):null,ex.lead?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("lead"),className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("lead"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"Lead fit"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.lead.score)},children:[ex.lead.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:(0,er.Y)(ex.lead.score)},children:ex.lead.label})]}):null,ex.performance?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("performance"),className:"rounded-xl border px-3 py-2.5 text-left sm:px-4 sm:py-3 ".concat("performance"===tH?"border-[var(--accent)] bg-[var(--accent-soft)]":"border-[var(--line)] bg-[var(--panel-tint-strong)] hover:border-[var(--accent)]/50"),children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"Performance"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.performance.score)},children:[ex.performance.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:(0,er.Y)(ex.performance.score)},children:ex.performance.label}),null!=ex.performance.response_ms?(0,s.jsxs)("p",{className:"mt-0.5 text-xs text-[var(--muted)]",children:[ex.performance.response_ms," ms"]}):null]}):null,ex.seo?(0,s.jsxs)("button",{type:"button",onClick:()=>tV("advanced"),className:"rounded-xl border border-[var(--line)] bg-[var(--panel-tint-strong)] px-3 py-2.5 text-left hover:border-[var(--accent)]/50 sm:px-4 sm:py-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.14em] text-[var(--muted)] uppercase",children:"SEO"}),(0,s.jsxs)("p",{className:"mt-1 text-lg font-semibold tracking-tight",style:{color:(0,er.Y)(ex.seo.score)},children:[ex.seo.score,(0,s.jsx)("span",{className:"ml-1 text-sm font-medium text-[var(--muted)]",children:"/100"})]}),(0,s.jsx)("p",{className:"mt-0.5 text-sm font-medium",style:{color:(0,er.Y)(ex.seo.score)},children:ex.seo.label})]}):null]})]})}),(0,s.jsxs)("div",{role:"tablist","aria-label":"Result sections",className:"flex flex-wrap items-center gap-2 rounded-[1.25rem] border border-[var(--line)] bg-[var(--surface)] p-2",children:[aM.map(e=>{let t=tH===e.id,a="business"===e.id&&t9;return(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":t,id:"tab-".concat(e.id),"aria-controls":"panel-".concat(e.id),"aria-busy":a||void 0,onClick:()=>tV(e.id),className:"rounded-xl px-3.5 py-2.5 text-sm font-semibold transition sm:px-4 ".concat(t?"bg-[var(--accent)] text-[var(--on-accent)]":"text-[var(--muted)] hover:bg-[rgba(32, 44, 104,0.1)] hover:text-[var(--accent)]"),children:(0,s.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"sm:hidden",children:e.shortLabel}),(0,s.jsx)("span",{className:"hidden sm:inline",children:e.label}),a?(0,s.jsx)("span",{className:"inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-current opacity-80","aria-hidden":!0}):null]})},e.id)}),aE.length>
10?(0,s.jsx)("span",{"aria-hidden":!0,className:"mx-0.5 hidden h-6 w-px bg-[var(--line)] sm:inline-block"}):null,aE.map(e=>{let t=tH===e.id;return(0,s.jsxs)("button",{type:"button",role:"tab","aria-selected":t,id:"tab-".concat(e.id),"aria-controls":"panel-".concat(e.id),onClick:()=>tV(e.id),className:"rounded-xl px-3.5 py-2.5 text-sm font-semibold transition sm:px-4 ".concat(t?"bg-[var(--accent)] text-[var(--on-accent)]":"text-[var(--muted)] hover:bg-[rgba(32, 44, 104,0.1)] hover:text-[var(--accent)]"),children:[(0,s.jsx)("span",{className:"sm:hidden",children:e.shortLabel}),(0,s.jsx)("span",{className:"hidden sm:inline",children:e.label})]},e.id)})]}),(0,S.Em)(tH)?(0,s.jsx)(S.Ay,{result:ex,tab:tH}):null,"business"!==tH||aA?null:(0,s.jsx)("div",{role:"tabpanel",id:"panel-business","aria-labelledby":"tab-business",className:"space-y-4",children:(0,s.jsx)(x.A,{result:ex,scanSummary:t4,scanSummaryBusy:t9})}),"site"===tH?(0,s.jsxs)("div",{role:"tabpanel",id:"panel-site","aria-labelledby":"tab-site",className:"space-y-4",children:[aI&&ex.profile?(0,s.jsx)(u.A,{variant:"contact",profile:ex.profile,languages:ex.languages,techCount:ex.technologies.length,pageCount:(null==(h=ex.pages_scanned)?void 0:h.length)||0,statusCode:ex.status_code}):(0,s.jsx)("p",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-6 text-[var(--muted)]",children:"No public contact details were found in the scanned pages."}),"stack"===W&&ex.scan_id&&!aA?(0,s.jsx)(_.A,{scanId:ex.scan_id,siteId:ex.site_id}):null,!aI&&(null==(b=ex.languages)?void 0:b.found)?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] p-5",children:[(0,s.jsx)("h3",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Languages"}),(0,s.jsxs)("p",{className:"mt-2 text-sm text-[var(--muted)]",children:[ex.languages.count," language",1===ex.languages.count?"":"s"," detected",ex.languages.primary_label?" \xb7 primary ".concat(ex.languages.primary_label):""]}),(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:ex.languages.labels.map((e,t)=>(0,s.jsxs)("span",{className:"rounded-lg border border-[rgba(32, 44, 104,0.22)] bg-[rgba(32, 44, 104,0.08)] px-3 py-1.5 text-sm font-medium text-[var(--ink)]",children:[e,ex.languages.codes[t]?" (".concat(ex.languages.codes[t],")"):""]},"".concat(ex.languages.codes[t]||e,"-").concat(t)))})]}):null,ex.pages_scanned&&ex.pages_scanned.length>0?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] shadow-[0_12px_32px_rgba(26,29,35,0.06)] p-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("h3",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Pages scanned"}),(0,s.jsx)("span",{className:"rounded-md bg-[var(--accent-soft)] px-2 py-0.5 text-[0.7rem] font-semibold text-[var(--accent)]",children:ex.pages_scanned.length})]}),(0,s.jsx)("ul",{className:"mt-4 space-y-2",children:ex.pages_scanned.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-3 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2.5",children:[(0,s.jsx)("span",{className:"mt-0.5 inline-flex size-5 shrink-0 items-center justify-center rounded-md bg-[var(--accent-soft)] text-[0.65rem] font-bold text-[var(--accent)]",children:t+1}),(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"break-all text-sm text-[var(--ink)] transition hover:text-[var(--accent)]",children:e})]},e))})]}):null,ex.sitemap?(0,s.jsxs)("article",{className:"rounded-[1.35rem] border border-[var(--line)] bg-[var(--surface)] shadow-[0_12px_32px_rgba(26,29,35,0.06)] p-5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("h3",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Sitemap"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[ex.sitemap.found&&ex.sitemap.urls.length>0?(0,s.jsx)("button",{type:"button",onClick:()=>void aq(),className:"rounded-md border border-[var(--line)] bg-[var(--panel-tint)] px-2.5 py-1 text-[0.7rem] font-semibold text-[var(--ink)] transition hover:border-[var(--accent)] hover:text-[var(--accent)]",t
1itle:C?"Copy sitemap URLs":"Sign in to copy sitemap URLs",children:tD}):null,(0,s.jsx)("span",{className:"rounded-md bg-[var(--accent-soft)] px-2 py-0.5 text-[0.7rem] font-semibold text-[var(--accent)]",children:ex.sitemap.count})]})]}),ex.sitemap.found?(0,s.jsxs)(s.Fragment,{children:[ex.sitemap.source_urls.length>0?(0,s.jsxs)("p",{className:"mt-3 text-xs text-[var(--muted)]",children:["Source:"," ",ex.sitemap.source_urls.map((e,t)=>(0,s.jsxs)("span",{children:[t>0?", ":"",(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"text-[var(--accent)] hover:underline",children:e})]},e)),ex.sitemap.truncated?" \xb7 showing first 100 URLs":""]}):null,(0,s.jsx)("ul",{className:"mt-4 max-h-80 space-y-2 overflow-y-auto pr-1",children:ex.sitemap.urls.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-3 rounded-xl border border-[var(--line)] bg-[var(--panel-tint)] px-3 py-2.5",children:[(0,s.jsx)("span",{className:"mt-0.5 inline-flex size-5 shrink-0 items-center justify-center rounded-md bg-[var(--accent-soft)] text-[0.65rem] font-bold text-[var(--accent)]",children:t+1}),(0,s.jsx)("a",{href:e,target:"_blank",rel:"noreferrer",className:"break-all text-sm text-[var(--ink)] transition hover:text-[var(--accent)]",children:e})]},e))})]}):(0,s.jsx)("p",{className:"mt-4 text-sm text-[var(--muted)]",children:"No public sitemap.xml was found for this website."})]}):null]}):null,"technology"===tH?(0,s.jsxs)("div",{role:"tabpanel",id:"panel-technology","aria-labelledby":"tab-technology",className:"space-y-4",children:[aC.length>0?(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("p",{className:"text-xs font-semibold tracking-[0.16em] text-[var(--accent)] uppercase",children:"Detected stack"}),(0,s.jsx)("button",{type:"button",onClick:()=>void aP(),className:"rounded-md border border-[var(--line)] bg-[var(--panel-tint)] px-2.5 py-1 text-[0.7rem] font-semibold text-[var(--ink)] transition hover:border-[var(--accent)] hover:text-[var(--accent)]",title:C?"Copy technologies":"Sign in to copy technologies",children:tO})]}):null,ex.notes&&ex.notes.length>0?(0,s.jsx)("div",{className:"space-y-2 rounded-2xl border border-[rgba(58,160,200,0.35)] bg-[rgba(58,160,200,0.12)] px-4 py-3 text-sm text-[var(--ink)]",children:ex.notes.map(e=>(0,s.jsx)("p",{children:e},e))}):null,0===aC.length?(0,s.jsx)("p",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-6 text-[var(--muted)]",children:ex.blocked?"The site returned an error/challenge page, so most technologies could not be read.":"No known technologies matched yet."}):(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:aC.map(e=>{let[t,a]=e;return(0,s.jsxs)("article",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] p-5",children:[(0,s.jsx)(d.t,{title:t}),(0,s.jsx)("ul",{className:"mt-3 space-y-2",children:a.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(m.s,{name:e})},"".concat(t,"-").concat(e)))})]},t)})}),ex.technologies.length>0?(0,s.jsxs)("details",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] p-4",children:[(0,s.jsx)("summary",{className:"cursor-pointer text-sm font-medium text-[var(--muted)]",children:"Evidence details"}),(0,s.jsx)("ul",{className:"mt-4 space-y-2 text-sm text-[var(--muted)]",children:ex.technologies.map(e=>(0,s.jsxs)("li",{className:"flex items-start gap-2",children:[(0,s.jsx)(m.k,{name:e.name,size:18,className:"mt-0.5"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-[var(--ink)]",children:e.name})," \xb7 ".concat(e.category),e.evidence?" — ".concat(e.evidence):""," (".concat(Math.round(100*e.confidence),"%)")]})]},"".concat(e.category,"-").concat(e.name)))})]}):null]}):null,"advanced"===tH?(0,s.jsxs)("div",{role:"tabpanel",id:"panel-advanced","aria-labelledby":"tab-advanced",className:"space-y-4",children:[(0,s.jsx)("p",{className:"text-sm text-[var(--muted)]",children:"SEO and performance metrics for marketers. For business understanding, use the Business profile tab."}),ex.seo?(0,s.jsx)(en.A,{seo:ex.seo,performance:ex.performance}):(0,s.jsx)("p",{className:"rounded-2xl border border-[var(--line)] bg-[var(--surface)] px-4 py-6 text-[var(--muted)]",children:"No SEO snapshot for this scan."})]}):null,ex.blocked||ex.warning?(0,s.jsx)("p",{className:"rounded-2xl border border-[rgba(240,163,90,0.35)] bg-[rgba(240,163,90,0.12)] px-4 py-3 text-sm text-[var(--warn)]",children:ex.warning||"This website blocked or limited the scanner. Results may be incomplete."}):null]}):null,f.howItWorks.length>0?(0,s.jsx)("section",{id:"how",className:"how-panel mt-16 grid gap-10 pt-12 md:grid-cols-3",children:f.howItWorks.map(e=>(0,s.jsxs)("article",{className:"how-step space-y-3",children:[(0,s.jsx)("p",{className:"brand text-sm font-semibold tracking-[0.16em] text-[var(--accent)]",children:e.step}),(0,s.jsx)("h2",{className:"text-xl font-semibold tracking-tight",children:e.title}),(0,s.jsx)("p",{className:"leading-relaxed text-[var(--muted)]",children:e.text})]},e.step))}):null]})}}}]);

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.