PageSourceSearch

https://lawfirminnovations.com/assets/ScanProspect-h6Rt6JN9.js

js lawfirminnovations.com collected 2026-10-09 22:03:37 UTC 3,349 bytes, 1 lines download raw bytes

1import{o as h,r,j as e,H as y}from"./main-C1Rs6n4C.js";import{supabase as l}from"./client-CiAYsF0C.js";import{S as g}from"./ScanReport-p-8MFBEK.js";import{L as d}from"./loader-circle-7Ic7Fb3C.js";import"./types-BK27jbvx.js";import"./button-Dsou5oIf.js";import"./calendar-BvgvEYSO.js";import"./lock-H0KtBmDt.js";import"./chevron-right-B9L_hGni.js";import"./file-text-k5extYXT.js";import"./triangle-alert-95y2tKct.js";import"./trending-down-CwEL1tQs.js";import"./sparkles-D0CNYb21.js";function E(){const{slug:s}=h(),[t,p]=r.useState(null),[a,x]=r.useState(null),[f,c]=r.useState(!0);return r.useEffect(()=>{if(!s)return;let m=!1;return(async()=>{const{data:i}=await l.rpc("get_prospect_link_by_slug",{_slug:s}),n=Array.isArray(i)?i[0]:i;if(!m){if(!n){c(!1);return}if(p(n),l.functions.invoke("track-open",{body:{slug:s}}).catch(()=>{}),n.scan_access_token){const{data:o}=await l.rpc("get_scan_by_token",{_token:n.scan_access_token}),u=Array.isArray(o)?o[0]:o;x(u)}c(!1)}})(),()=>{m=!0}},[s]),f?e.jsx("div",{className:"min-h-screen grid place-items-center",style:{background:"#f5f0e8"},children:e.jsx(d,{className:"w-8 h-8 animate-spin",style:{color:"#0f0f0f"}})}):t?e.jsxs("div",{style:{background:"#f5f0e8",minHeight:"100vh",fontFamily:"'Karla', sans-serif"},children:[e.jsxs(y,{children:[e.jsx("title",{children:`We analyzed ${t.firm_name}'s website — see the results`}),e.jsx("meta",{name:"description",content:`Website health + AI visibility scan prepared for ${t.firm_name} by Law Firm Innovations.`}),e.jsx("meta",{property:"og:title",content:`We analyzed ${t.firm_name}'s website — see the results`}),e.jsx("meta",{property:"og:description",content:"Website health + AI visibility scan prepared by Law Firm Innovations."}),e.jsx("meta",{name:"robots",content:"noindex"})]}),e.jsx("div",{className:"max-w-5xl mx-auto px-6 sm:px-10 pt-10",children:e.jsxs("div",{className:"relative overflow-hidden p-8 sm:p-10 rounded-2xl text-white",style:{background:"#0f0f0f"},children:[e.jsx("div",{className:"pointer-events-none absolute -top-32 -right-32 w-[400px] h-[400px] rounded-full opacity-[0.16] blur-3xl",style:{background:"radial-gradient(circle, #e85d3a 0%, transparent 70%)"},"aria-hidden":"true"}),e.jsxs("div",{className:"relative",children:[e.jsx("p",{className:"eyebrow mb-4",children:"Prepared for you by Law Firm Innovations"}),e.jsxs("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-light leading-[1.05] text-white",style:{fontFamily:"'Cormorant Garamond', serif"},children:["Hi ",t.prospect_name," — we ran your site through"," ",e.jsx("em",{className:"text-[#e85d3a] not-italic italic font-normal",children:"our scanner."})]}),e.jsxs("p",{className:"mt-4 text-[#c0c0c0] font-light leading-relaxed",children:["Here's what we found at ",t.prospect_url,t.personal_note?` — ${t.personal_note}`:"."]})]})]})}),a&&a.status==="complete"?e.jsx(g,{scan:a,locked:!1,accessToken:a.access_token}):e.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-16 text-center",children:[e.jsx(d,{className:"w-8 h-8 mx-auto animate-spin",style:{color:"#0f0f0f"}}),e.jsx("p",{className:"mt-4 text-[#5a5a5a]",children:"Your scan is still finalizing — refresh in a few seconds."})]})]}):e.jsx("div",{className:"min-h-screen grid place-items-center",style:{background:"#f5f0e8"},children:e.jsx("p",{children:"Link not found."})})}export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.