1import{u as c,B as m,o as u,j as e}from"./index-Dw04bfMU.js";import{P as x}from"./portal-shell-De40gV7l.js";import{a as p,f as i}from"./tiers-CYrGod1b.js";import{u as g}from"./use-auth-ready-7k9jzdM2.js";import"./use-idle-timeout-DmyRAEso.js";import"./key-round-DUfWcil5.js";import"./bot-BmxjwvwU.js";import"./search-BHpCVSuv.js";import"./trending-up-C3vQsirm.js";import"./activity-CbJ1y1-y.js";import"./file-text-DGbBydz5.js";function C(){const r=g(),l=c(m),{data:n,isLoading:d}=u({queryKey:["profile"],queryFn:()=>l(),enabled:r}),t=n?.profile,o=p(t?.tier_id);return e.jsx(x,{title:"Overview",children:d?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loadingâ¦"}):e.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[e.jsxs(a,{title:"Account",children:[e.jsx(s,{label:"Name",value:t?.full_name||"â"}),e.jsx(s,{label:"Email",value:t?.email||"â"}),e.jsx(s,{label:"Company",value:t?.company||"â"})]}),e.jsxs(a,{title:"Subscription",children:[e.jsx(s,{label:"Tier",value:o?.name||"Not bound yet"}),e.jsx(s,{label:"Billing",value:t?.billing_cycle||"â"}),e.jsx(s,{label:"Seats",value:String(t?.seats??1)}),e.jsx(s,{label:"Price",value:o?t?.billing_cycle==="annual"?`${i(o.annualPriceCents)} / yr`:`${i(o.monthlyPriceCents)} / mo`:"â"})]}),e.jsxs(a,{title:"Hash Key",children:[e.jsx("div",{className:"rounded-md border border-gold/30 bg-background/40 px-3 py-2 font-mono text-xs text-foreground/90 break-all",children:t?.hashkey||"Not bound â set it in Billing & Seats."}),e.jsxs("p",{className:"mt-2 text-xs text-muted-foreground",children:["Your n8n workflow uses this key to POST events to"," ",e.jsx("code",{className:"text-gold",children:"/api/public/workflow-events"}),"."]})]}),e.jsx(a,{title:"Tech Support",children:e.jsxs("p",{className:"text-sm text-foreground/85",children:["Email"," ",e.jsx("a",{className:"font-bold text-gold hover:text-gold-bright",href:"mailto:[email protected]",children:"[email protected]"})," ","· Configure Google Meet / Chat links in ",e.jsx("b",{children:"Tech Support"}),"."]})})]})})}function a({title:r,children:l}){return e.jsxs("div",{className:"rounded-xl border border-gold/30 p-5",style:{background:"var(--card)"},children:[e.jsx("div",{className:"mb-3 text-xs font-black uppercase tracking-widest text-gold",children:r}),e.jsx("div",{className:"space-y-2",children:l})]})}function s({label:r,value:l}){return e.jsxs("div",{className:"flex items-center justify-between gap-3 text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:r}),e.jsx("span",{className:"font-semibold text-foreground text-right",children:l})]})}export{C as component};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.