PageSourceSearch

https://verificate.ai/_next/static/chunks/pages/account-f6c7b89e118b7ac8.js

js verificate.ai collected 2026-10-05 13:58:27 UTC 8,850 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9309],{3017:(e,t,s)=>{"use strict";s.d(t,{j:()=>a});let a="https://mcp.verificate.ai"},5464:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account",function(){return s(6793)}])},6793:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>N});var a=s(7876),i=s(4232),n=s(7328),r=s.n(n),l=s(8230),c=s.n(l),o=s(9099),d=s(5818),x=s(4463),h=s(5527),m=s(1174),u=s(6730),j=s(7798),p=s(9247),g=s(4791),b=s(2257),w=s(4206),f=s(3017);let v="".concat(f.j,"/mcp");function N(){let e,t=(0,o.useRouter)(),[s,n]=(0,i.useState)(null),[l,N]=(0,i.useState)(!0),[C,k]=(0,i.useState)(""),[_,A]=(0,i.useState)(!1),[S,B]=(0,i.useState)(""),E=()=>{try{return localStorage.getItem("vf_token")||""}catch(e){return""}};(0,i.useEffect)(()=>{let e=E();if(!e)return void t.replace("/auth/login");fetch("".concat(f.j,"/auth/me"),{headers:{Authorization:"Bearer ".concat(e)}}).then(async e=>{if(401===e.status){localStorage.removeItem("vf_token"),t.replace("/auth/login");return}let s=await e.json();if(!e.ok)throw Error(s.detail||"Could not load your account.");n(s)}).catch(e=>k(e.message)).finally(()=>N(!1))},[t]);let F=async e=>{B(e),k("");try{let t=await fetch("".concat(f.j,"/billing/checkout?plan=").concat(e),{method:"POST",headers:{Authorization:"Bearer ".concat(E())}}),s=await t.json();if(s.url)window.location.href=s.url;else throw Error(s.detail||"Could not start checkout.")}catch(e){k(e.message),B("")}},L=e=>e?new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}):"—",P=null==s?void 0:s.usage,M=!!P&&-1===P.quota,T=P&&P.quota>0?Math.min(100,Math.round(P.used/P.quota*100)):0;return(0,a.jsxs)("div",{className:"min-h-screen bg-[#080A08] text-white/85 antialiased",children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("title",{children:"Your dashboard | Verificate"}),(0,a.jsx)("meta",{name:"robots",content:"noindex"})]}),(0,a.jsxs)("div",{className:"max-w-3xl mx-auto px-6 py-14",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)(c(),{href:"/",children:(0,a.jsx)("img",{src:"/logos/Verificate Logo Green White.png",alt:"Verificate",className:"h-7"})}),(0,a.jsxs)("button",{onClick:()=>{try{localStorage.removeItem("vf_token"),localStorage.removeItem("vf_mcp_token")}catch(e){}t.replace("/auth/login")},className:"inline-flex items-center gap-1.5 text-sm text-white/50 hover:text-white",children:[(0,a.jsx)(d.A,{className:"w-4 h-4"})," Sign out"]})]}),l?(0,a.jsx)("div",{className:"mt-24 flex justify-center text-white/40",children:(0,a.jsx)(x.A,{className:"w-6 h-6 animate-spin"})}):C?(0,a.jsx)("div",{className:"mt-10 p-4 rounded-lg bg-red-500/10 border border-red-500/30 text-red-300 text-sm",children:C}):s&&P?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h1",{className:"mt-10 text-3xl font-bold tracking-tight text-white",children:["Welcome back",s.name?", ".concat(s.name.split(" ")[0]):""]}),(0,a.jsx)("p",{className:"mt-2 text-white/50 text-sm",children:s.email}),(0,a.jsxs)("div",{className:"mt-8 rounded-2xl border border-white/[0.08] bg-[#0E120C] p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs font-mono uppercase tracking-wider text-white/40",children:"Plan"}),(0,a.jsx)("div",{className:"mt-1 text-lg font-bold text-white",children:s.paid_until?"Pro — $30/mo":s.on_trial?"Free 30-day trial":"Expired"})]}),(0,a.jsx)("span",{className:"text-xs font-semibold px-2.5 py-1 rounded-full border ".concat(s.active?"text-[#8CCB43] border-[#3C5522] bg-[#15200D]":"text-red-300 border-red-500/30 bg-red-500/10"),children:s.active?"Active":"Inactive"})]}),(0,a.jsx)("div",{className:"mt-4 text-sm text-white/55",children:s.paid_until?(0,a.jsxs)(a.Fragment,{children:["Renews ",(0,a.jsx)("strong",{className:"text-white",children:L(s.paid_until)}),"."]}):s.on_trial?(0,a.jsxs)(a.Fragment,{children:["Trial ends ",(0,a.jsx)("strong",{className:"text-white",children:L(s.trial_expires)})," — subscribe to keep your key active."]}):(0,a.jsx)(a.Fragment,{children:"Your trial has ended. Subscribe to reactivate your key."})}),!s.paid_until&&(0,a.jsxs)("div",{className:"mt-5 flex flex-col sm:flex-row gap-3",children:[(0,a.jsxs)("button",{onClick:()=>F("monthly"),disabled:!!S,className:"inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-lg border border-[#8CCB43]/40 text-[#8CCB43] hover:bg-[#8CCB43]/10 font-semibold text-sm transition-colors disabled:opacity-60",children:["monthly"===S?(0,a.jsx)(x.A,{className:"w-4 h-4 animate-spin"}):(0,a.jsx)(h.A,{className:"w-4 h-4"}),"Subscribe — $30/mo"]}),(0,a.jsxs)("button",{onClick:()=>F("prepay"),disabled:!!S,className:"inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-lg bg-[#8CCB43] hover:bg-[#7cbb37] text-[#0A0D0A] font-semibold text-sm transition-colors disabled:opacity-60",children:["prepay"===S?(0,a.jsx)(x.A,{className:"w-4 h-4 animate-spin"}):(0,a.jsx)(h.A,{className:"w-4 h-4"}),"Prepay 6 months — $90 \xb7 save 50%"]})]}),!s.paid_until&&(0,a.jsx)("p",{className:"mt-2.5 text-xs text-white/35",children:"Prepay = 6 months at $15/mo ($90 upfront), then $30/mo."})]}),(0,a.jsxs)("div",{className:"mt-6 grid grid-cols-2 sm:grid-cols-4 gap-3",children:[(0,a.jsx)(y,{icon:(0,a.jsx)(m.A,{className:"w-4 h-4"}
1),label:"Validations this month",value:P.used.toLocaleString()}),(0,a.jsx)(y,{icon:(0,a.jsx)(u.A,{className:"w-4 h-4"}),label:M?"Monthly quota":"Remaining this month",value:M?"Unlimited":P.remaining.toLocaleString(),accent:!0}),(0,a.jsx)(y,{icon:(0,a.jsx)(j.A,{className:"w-4 h-4"}),label:"Total validations",value:P.total.toLocaleString()}),(0,a.jsx)(y,{icon:(0,a.jsx)(p.A,{className:"w-4 h-4"}),label:"Last validation",value:(e=P.last_used)?new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"Never",small:!0})]}),!M&&(0,a.jsxs)("div",{className:"mt-3 rounded-2xl border border-white/[0.08] bg-[#0E120C] p-5",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs text-white/50",children:[(0,a.jsx)("span",{children:"Monthly usage"}),(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{className:"text-white/80",children:P.used.toLocaleString()})," / ",P.quota.toLocaleString()]})]}),(0,a.jsx)("div",{className:"mt-2 h-2 rounded-full bg-white/[0.06] overflow-hidden",children:(0,a.jsx)("div",{className:"h-full rounded-full ".concat(T>=90?"bg-red-400":"bg-[#8CCB43]"),style:{width:"".concat(T,"%")}})}),(0,a.jsxs)("div",{className:"mt-2 text-xs text-white/35 flex items-center gap-1.5",children:[(0,a.jsx)(g.A,{className:"w-3.5 h-3.5"})," Member since ",L(P.since)]})]}),(0,a.jsxs)("div",{className:"mt-6 rounded-2xl border border-white/[0.08] bg-[#0E120C] p-6",children:[(0,a.jsxs)("div",{className:"text-xs font-mono uppercase tracking-wider text-white/40",children:["Your MCP key ",(0,a.jsx)("span",{className:"text-white/25",children:"\xb7 single-user"})]}),(0,a.jsxs)("div",{className:"mt-3 flex items-center justify-between gap-3 rounded-lg border border-white/10 bg-[#0C0F0A] p-3.5",children:[(0,a.jsx)("code",{className:"font-mono text-sm text-[#8CCB43] break-all",children:s.mcp_token||"—"}),(0,a.jsx)("button",{onClick:()=>{var e;s&&(null==(e=navigator.clipboard)||e.writeText(s.mcp_token).then(()=>{A(!0),setTimeout(()=>A(!1),1800)}))},className:"shrink-0 inline-flex items-center gap-1.5 text-xs font-semibold text-white/70 hover:text-[#8CCB43]",children:_?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.A,{className:"w-3.5 h-3.5"})," Copied"]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.A,{className:"w-3.5 h-3.5"})," Copy"]})})]}),(0,a.jsx)("p",{className:"mt-4 text-sm text-white/55 leading-relaxed",children:"Add it to your MCP client:"}),(0,a.jsx)("pre",{className:"mt-2 rounded-lg border border-white/[0.06] bg-[#0C0F0A] p-4 overflow-x-auto text-[12.5px] font-mono text-white/80",children:(0,a.jsx)("code",{children:'{\n  "mcpServers": {\n    "verificate": {\n      "url": "'.concat(v,'",\n      "transport": "http",\n      "headers": { "Authorization": "Bearer ').concat(s.mcp_token,'" }\n    }\n  }\n}')})}),(0,a.jsx)("p",{className:"mt-3 text-xs text-white/35",children:"Keys are single-user, rate-limited, and abuse-protected. Don't share this key."})]})]}):null]})]})}function y(e){let{icon:t,label:s,value:i,accent:n,small:r}=e;return(0,a.jsxs)("div",{className:"rounded-2xl border border-white/[0.08] bg-[#0E120C] p-4",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-1.5 text-xs ".concat(n?"text-[#8CCB43]":"text-white/40"),children:[t,(0,a.jsx)("span",{className:"text-white/40",children:s})]}),(0,a.jsx)("div",{className:"mt-2 font-bold text-white ".concat(r?"text-base":"text-2xl"," ").concat(n?"text-[#8CCB43]":""),children:i})]})}}},e=>{e.O(0,[8096,636,8792],()=>e(e.s=5464)),_N_E=e.O()}]);

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.