PageSourceSearch

https://reviewmyelearning.com/assets/Success-4ruxYe47.js

js reviewmyelearning.com collected 2026-09-25 19:08:16 UTC 3,304 bytes, 4 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0a841-ea3f-0000-80d7-56c4faceb82d";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="aa113789-97a4-532e-b80b-d7df211f20e7")}catch(e){}}();import{x as y,a as v,r,o as x,y as w,k as b,c as a,b as i,f as _,e,t as k}from"./index-Dv0XZx9Q.js";import{u as S}from"./notificationsStore-BtRqadri.js";const P={class:"flex items-center justify-center min-h-screen py-12 px-4 sm:px-6 lg:px-8"},C={key:0,class:"text-center"},M={key:1,class:"max-w-md w-full space-y-8 p-10 bg-white rounded-xl shadow-lg"},N={class:"rounded-md bg-blue-50 p-4 my-4"},B={class:"flex"},E={class:"ml-3"},L={class:"text-sm text-blue-700"},T={__name:"Success",setup(R){const c=S(),p=y(),f=v(),t=w(),l=r({name:"",email:""}),u=r(!1),d=r(!0),m=r(""),g=()=>{const s=new URLSearchParams(window.location.hash.slice(1)).get("checkout_proof");return s&&window.history.replaceState(window.history.state,"",`${window.location.pathname}${window.location.search}`),s};x(async()=>{try{await t.isReady();const o=t.currentRoute.value.params.sessionToken,s=g(),n=await p.getSessionDetails(o,s);if(l.value={name:n.name,email:n.email},b("checkout_completed",{email:n.email,name:n.name,plan:n.plan}),lintrk("track",{conversion_id:2081481}),f.user.loggedin){c.addNotification({message:"Payment successful! Your subscription has been activated.",type:"success"}),t.push("/courses");return}u.value=!0,m.value="Your account is ready. Verify your email address, then log in to continue.",d.value=!1}catch(o){console.error("Error in checkout success:",o),c.addNotification({message:"Error verifying your payment. Please contact support.",type:"error"}),t.push("/login")}});const h=()=>{t.push({path:"/login",query:{email:l.value.email,message:"Please log in to access your subscription."}})};return(o,s)=>(i(),a("div",P,[d.value?(i(),a("div",C,s[0]||(s[0]=[e("div",{class:"animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-green-500 mx-auto"},null,-1),e("p",{class:"mt-4 text-lg"},"Processing your payment...",-1)]))):u.value?(i(),a("div",M,[s[2]||(s[2]=e("div",{class:"text-center"},[e("h2",{class:"mt-6 text-3xl font-extrabold text-gray-900"},"Payment Successful!"),e("p",{class:"mt-2 text-gray-600"},"Your subscription has been processed.")],-1)),e("div",N,[e("div",B,[s[1]||(s[1]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"h-5 w-5 text-blue-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),e("div",E,[e("p",L,k(m.value),1)])])]),e("div",{class:"flex justify-center"},[e("button",{onClick:h,class:"w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500"}," Continue to Login ")])])):_("",!0)]))}};export{T as default};
2//# sourceMappingURL=Success-4ruxYe47.js.map
3
4//# chunkId=aa113789-97a4-532e-b80b-d7df211f20e7

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.