1import{j as e}from"./vendor-query-DvnPdOMX.js";import{bs as o,de as d,m}from"./index-1YQNuixL.js";import{r as x,c as u,u as p}from"./vendor-react-woJBpfBI.js";import{m as c}from"./vendor-motion-ZmH_6coE.js";import{X as h,z as b,m as f,bh as y,q as g}from"./vendor-icons-BLMEbmRV.js";import"./vendor-supabase-DaZXgOw0.js";import"./vendor-utils-BNe0Xlio.js";const l="z-[100]";function v({children:a,onClose:t,dismissOnBackdrop:r=!0,maxWidth:i="max-w-md"}){return x.useEffect(()=>{const s=n=>{n.key==="Escape"&&t()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[t]),u.createPortal(e.jsxs(e.Fragment,{children:[e.jsx(c.div,{className:`fixed inset-0 bg-black/30 backdrop-blur-sm ${l}`,onClick:r?t:void 0,initial:{opacity:0},animate:{opacity:1},transition:{duration:o.standard.duration/1e3}}),e.jsx("div",{className:`fixed inset-0 ${l} flex items-center justify-center p-4 pointer-events-none`,children:e.jsxs(c.div,{className:`relative w-full ${i} bg-white rounded-md border border-default shadow-[0_4px_24px_-4px_rgba(0,0,0,0.08)] pointer-events-auto`,initial:{opacity:0,y:8,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:o.enter.duration/1e3,ease:[.16,1,.3,1]},children:[e.jsx("button",{onClick:t,className:"absolute top-4 right-4 w-7 h-7 rounded flex items-center justify-center text-muted hover:text-secondary hover:bg-muted transition-colors",style:{transitionDuration:`${o.micro.duration}ms`},children:e.jsx(h,{size:16,strokeWidth:1.5})}),a]})})]}),document.body)}function j({children:a,centered:t=!0}){return e.jsx("div",{className:`p-6 pt-8 ${t?"text-center":""}`,children:a})}const N=[{icon:b,label:"AI Visibility Score across ChatGPT, Perplexity, Gemini"},{icon:f,label:"Citation tracking - every source AI uses to describe you"}
1,{icon:y,label:"Competitive benchmarks - how you stack up vs rivals"}];function _({onDismiss:a}){const t=p(),{brand:r}=d(),i=()=>{a(),t(m({plan:"growth",reason:"gate"}))},s=r?.domain?`https://www.google.com/s2/favicons?domain=${r.domain}&sz=32`:null;return e.jsx(v,{onClose:()=>a(),children:e.jsxs(j,{centered:!1,children:[r&&e.jsxs("div",{className:"flex items-center gap-2.5 mb-5 p-2.5 rounded border border-subtle",children:[s&&e.jsx("img",{src:s,alt:"",width:20,height:20,className:"rounded"}),e.jsx("span",{className:"text-[13px] font-medium text-secondary truncate",children:r.name}),e.jsx("span",{className:"ml-auto text-[10px] text-accent font-medium bg-accent-subtle px-1.5 py-0.5 rounded uppercase tracking-wider",children:"Report ready"})]}),e.jsx("h2",{className:"text-[16px] font-semibold text-primary mb-1",children:"Your AI visibility report is ready"}),e.jsx("p",{className:"text-[13px] text-secondary leading-relaxed mb-5",children:"We've been analyzing how AI platforms talk about your brand. Start a free trial to see the full picture."}),e.jsx("div",{className:"space-y-2.5 mb-6",children:N.map(n=>e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-7 h-7 rounded bg-accent-subtle flex items-center justify-center shrink-0",children:e.jsx(n.icon,{size:14,strokeWidth:1.5,className:"text-accent"})}),e.jsx("p",{className:"text-[12px] text-secondary leading-snug",children:n.label})]},n.label))}),e.jsxs("button",{onClick:i,className:"group w-full h-10 px-5 bg-accent-subtle text-accent rounded font-medium text-[14px] hover:bg-accent hover:text-white transition-colors flex items-center justify-center gap-2",children:[e.jsx("span",{children:"Start 14-day free trial"}),e.jsx(g,{size:16,strokeWidth:1.5,className:"transition-transform group-hover:translate-x-0.5"})]}),e.jsx("p",{className:"text-center text-[11px] text-muted mt-2",children:"Cancel anytime - no commitment"}),e.jsx("button",{onClick:()=>a(),className:"w-full h-9 px-5 text-muted rounded font-medium text-[13px] hover:text-secondary hover:bg-muted transition-colors mt-1",children:"Not now"})]})})}export{_ as TrialNudgeModal};
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.