1import{p as E,r as i,j as e,o as s,L as m,t as w}from"./index-DNE7tcu_.js";import q from"./NotFoundPage-pMvXV3Hn.js";import{F as L}from"./FaqSection-ZSyqB5zG.js";import{A as T}from"./ActivationRecovery-BqpYHFN3.js";const I="https://api.mockape.com",_=[{title:"Chart markers",description:"See your entry, exit and stop loss lines on the chart",image:"/chart-marker.gif",alt:"Chart markers showing trade entries and exits"},{title:"Custom PnL cards",description:"Share your wins and losses with custom PnL cards. Use your own uploaded designs",image:"/custom-pnl.png",alt:"Customizable PnL card preview"},{title:"Quick buy",description:"Buy tokens instantly with quick buy and get ahead of the market",image:"/Quick-buy.png",alt:"Quick buy checkout flow preview"}],F=[{question:"What's included in the trial?",answer:"You get full access to every Ape Pass feature for 3 days â chart markers, custom PnL cards, quick buy, and anything else under the Ape Pass tier. No restrictions."},{question:"How do I activate my code?",answer:"Once you claim your code, open the MockApe extension, navigate to Settings, and paste it in the activation field. It activates instantly."},{question:"What happens when the trial ends?",answer:"Your Ape Pass features will deactivate and you'll return to the free tier. If you'd like to keep access, you can pick up a plan on the Ape Pass page"},{question:"Need help?",answer:"Reach out any time at [email protected] and we'll get back to you as soon as possible."}];function M(r){return new Date(r).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function Q(){const[r]=E(),x=r.get("iid")??"",[l,j]=i.useState(""),[p,h]=i.useState(!1),[u,d]=i.useState(""),[v,c]=i.useState(!1),[o,N]=i.useState(null),[k,P]=i.useState(""),[y,g]=i.useState("form");if(i.useEffect(()=>{const t=document.title;document.title="Free Trial · MockApe";const a=document.createElement("meta");return a.name="robots",a.content="noindex,nofollow",document.head.appendChild(a),()=>{document.title=t,document.head.removeChild(a)}},[]),!x)return e.jsx(q,{});async function A(){if(o?.activationCode)try{await navigator.clipboard.writeText(o.activationCode),c(!0),setTimeout(()=>c(!1),2e3)}catch{c(!1)}}async function C(t){if(t.preventDefault(),d(""),!l.trim()){d("Please enter your email");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.trim())){d("Enter a valid email address");return}h(!0);try{const n=await fetch(`${I}/requesttrial`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l.trim(),installationId:x})});if(n.status===409){const S=await n.json();P(S.message??"A trial has already been claimed."),w("trial_already_claimed"),g("already_claimed");return}if(!n.ok)throw new Error("Something went wrong. Please try again.");const f=await n.json();N({activationCode:f.activationCode,subscriptionExpiresAt:f.subscriptionExpiresAt}),w("trial_success",{emailDomain:l.trim().split("@")[1]}),g("success")}catch(n){d(n instanceof Error?n.message:"Something went wrong. Please try again.")}finally{h(!1)}}return y==="already_claimed"?e.jsx(b,{children:e.jsxs(s.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},className:"w-full max-w-sm text-center",children:[e.jsx("h1",{className:"font-display text-3xl font-semibold text-white",children:"Already claimed"}),e.jsx("p",{className:"mt-3 text-sm leading-relaxed text-white/50",children:k}),e.jsx("p",{className:"mt-2 text-xs text-white/30",children:"Want to continue using Ape Pass features? Check out our plans below"}),e.jsx(m,{to:"/ApePass",className:"mt-8 inline-flex items-center gap-2 rounded-xl border border-white/15 px-6 py-2.5 text-sm font-medium text-white/70 transition hover:border-white/30 hover:text-white",children:"View Ape Pass plans"})]})}):y==="success"&&o?e.jsx(b,{children:e.jsxs("div",{className:"w-full max-w-sm space-y-4",children:[e.jsxs(s.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5},children:[e.jsxs("div",{className:"mb-5 inline-flex items-center gap-2 rounded-full border border-emerald-400/20 bg-emerald-400/8 px-4 py-1.5 text-xs font-medium text-emerald-300",children:[e.jsxs("span",{className:"relative flex h-1.5 w-1.5",children:[e.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-75"}),e.jsx("span",{className:"relative inline-flex h-1.5 w-1.5 rounded-full bg-emerald-400"})]}),"Trial activated"]}),e.jsx("h1",{className:"font-display text-4xl font-semibold leading-tight text-white",children:"You're all set"}),e.jsx("p",{className:"mt-3 text-sm leading-relaxed text-white/50",children:"Copy the code below and paste it into MockApe's extension settings to start your trial."})]}),e.jsxs(s.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},className:"overflow-hidden rounded-xl border border-white/10 bg-[#0d0d0d]",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-white/8 px-5 py-3",children:[e.jsx("span",{className:"text-xs font-medium uppercase tracking-wider text-white/30",children:"Activation code"}),e.jsx("button",{type:"button",onClick:A,className:"text-xs font-medium text-white/40 transition hover:text-emerald-300",children:v?"Copied â":"Copy"})]}),e.jsxs("div",{className:"px-5 py-5",children:[e.jsx("p",{className:"font-mono text-3xl font-bold tracking-[0.15em] text-white",children:o.activationCode}),e.jsxs("p",{className:"mt-3 text-xs text-white/30",children:["Expires"," ",e.jsx("span",{className:"text-white/50",children:M(o.subscriptionExpiresAt)})]})]})]}),e.jsxs(s.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"rounded-xl border border-white/8 bg-[#0d0d0d] px-5 py-4",children:[e.jsx("p",{className:"mb-3 text-xs font-medium uppercase tracking-wider text-white/30",children:"How to activate"}),e.jsx("ol",{className:"space-y-2",children:["Open the MockApe extension","Go to Settings","Paste your code and confirm"].map((t,a)=>e.jsxs("li",{className:"flex items-start gap-3 text-sm text-white/60",children:[e.jsx("span",{className:"mt-0.5 flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-white/10 text-[10px] font-semibold text-white/30",children:a+1}),t]},t))})]}),e.jsxs(s.p,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.5,delay:.3},className:"text-center text-xs text-white/25",children:["Want more after the trial?"," ",e.jsx(m,{to:"/ApePass",className:"text-white/40 underline underline-offset-4 transition hover:text-white/60",children:"View Ape Pass plans"})]})]})}):e.jsxs("div",{className:"relative bg-[#020202] text-white",children:[e.jsx("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-[80%]",style:{background:"radial-gradient(ellipse 90% 70% at 50% 0%, rgba(16,185,129,0.10) 0%, transparent 65%)"}}),e.jsxs("div",{className:"relative mx-auto max-w-7xl",children:[e.jsxs("div",{className:"relative grid min-h-screen grid-cols-1 lg:grid-cols-2 lg:grid-rows-[auto_1fr] lg:content-center",children:[e.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-1/2 hidden -translate-x-px lg:flex lg:flex-col lg:items-center lg:justify-center",children:e.jsx("div",{className:"w-px",style:{height:"60%",background:"linear-gradient(to bottom, transparent, rgba(255,255,255,0.10) 20%, rgba(255,255,255,0.10) 80%, transparent)"}})}),e.jsxs(s.div,{initial:{opacity:0,x:-16},animate:{opacity:1,x:0},transition:{duration:.6},className:"px-8 pt-24 pb-0 lg:px-14 lg:pt-28",children:[e.jsxs("h1",{className:"font-display text-5xl font-semibold leading-none tracking-tighter text-white lg:text-6xl",children:["3âday",e.jsx("br",{}),e.jsx("span",{className:"text-white/35",children:"free trial"})]}),e.jsx("p",{className:"mt-5 max-w-sm text-sm leading-relaxed text-white/50",children:"Try every Ape Pass feature free for 3 days. No payment, no credit card."})]}),e.jsx("div",{className:"px-8 pt-10 pb-24 lg:px-14 lg:pb-28 lg:col-start-1 lg:row-start-2",children:e.jsx("div",{className:"space-y-3",children:_.map((t,a)=>e.jsxs(s.article,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.4,delay:.15+a*.08},className:"flex overflow-hidden rounded-lg border border-white/8 bg-[#0d0d0d] transition duration-300 hover:border-emerald-400/20",children:[e.jsxs("div",{className:"relative w-32 shrink-0 overflow-hidden lg:w-36",children:[e.jsx("img",{src:t.image,alt:t.alt,className:"h-full w-full object-cover",loading:"lazy"}),e.jsx("div",{className:"pointer-events-none absolute inset-0 bg-linear-to-r from-transparent to-[#0d0d0d]/40"})]}),e.jsxs("div",{className:"flex flex-col justify-center px-4 py-3",children:[e.jsx("p",{className:"text-sm font-semibold text-white",children:t.title}),e.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-white/45",children:t.description})]})]},t.title))})}),e.jsx(s.div,{initial:{opacity:0,x:16},animate:{opacity:1,x:0},transition:{duration:.6},className:"px-8 pt-12 pb-0 lg:px-14 lg:pt-0 lg:col-start-2 lg:row-start-1 lg:flex lg:flex-col lg:justify-end",children:e.jsxs("div",{className:"w-full max-w-lg",children:[e.jsx("p",{className:"text-xs font-medium uppercase tracking-wider text-white/30",children:"Claim your trial"}),e.jsx("h2",{className:"mt-2 font-display text-2xl font-semibold text-white",children:"Enter your email to get started"}),e.jsxs("p",{className:"mt-1.5 text-sm text-white/45",children:["Your activation code is shown instantly, no login required."," ",e.jsx("a",{href:"#trial-faq",className:"text-white/40 underline underline-offset-4 transition hover:text-white/60",children:"Questions?"})]})]})}),e.jsx("div",{className:"px-8 pt-5 pb-24 lg:px-14 lg:pb-28 lg:col-start-2 lg:row-start-2",children:e.jsxs("div",{className:"w-full max-w-lg space-y-5",children:[e.jsx("div",{className:"overflow-hidden rounded-xl border border-white/10 bg-[#0d0d0d] ring-1 ring-white/5",children:e.jsxs("form",{onSubmit:C,className:"p-8 space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-xs font-medium uppercase tracking-wider text-white/30",children:"Email address"}),e.jsx("input",{id:"email",type:"email",value:l,onChange:t=>j(t.target.value),placeholder:"[email protected]",className:"mt-3 w-full rounded-lg border border-white/10 bg-white/5 px-4 py-3.5 text-base text-white placeholder:text-white/20 transition focus:border-emerald-400/40 focu
1s:bg-emerald-400/5 focus:outline-none"}),e.jsx("p",{className:"mt-1.5 text-xs text-white/25",children:"Only used to recover your code if you lose it â we won't contact you."})]}),u&&e.jsx("p",{className:"text-xs text-red-400",children:u}),e.jsx("button",{type:"submit",disabled:p,className:"w-full rounded-lg bg-emerald-400 py-3.5 text-sm font-semibold text-black transition hover:bg-emerald-300 disabled:cursor-not-allowed disabled:opacity-60",children:p?"Claimingâ¦":"Claim free trial"}),e.jsx("p",{className:"text-center text-xs text-white/20",children:"No login required · No credit card · Instant activation"})]})}),e.jsx(T,{heading:"Lost your trial code?",description:"Enter the email you used to claim your trial and we'll look it up.",ctaLabel:"Recover my code"}),e.jsxs("p",{className:"text-xs text-white/25",children:["Want full access without limits?"," ",e.jsx(m,{to:"/ApePass",className:"text-white/40 underline underline-offset-4 transition hover:text-white/60",children:"Get Ape Pass"})]})]})})]}),e.jsx(s.div,{id:"trial-faq",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"px-8 pb-24 lg:px-14",children:e.jsx(L,{items:F})})]})]})}function b({children:r}){return e.jsxs("div",{className:"relative flex min-h-screen items-center justify-center overflow-hidden bg-[#020202] px-6 pt-24 pb-24",children:[e.jsx("div",{className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(ellipse 55% 45% at 50% 42%, rgba(16,185,129,0.07) 0%, transparent 70%)"}}),e.jsx("div",{className:"relative z-10 flex w-full flex-col items-center",children:r})]})}export{Q 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.