PageSourceSearch

https://app.onassist.ai/assets/paymentSuccess-D2AfjO8V.js

js onassist.ai collected 2026-10-05 13:11:45 UTC 6,561 bytes, 30 lines download raw bytes

1import{j as t}from"./mui-Cp1mLdql.js";import{c as B,t as b,g as G,aX as W,aT as K,i as O}from"./index-BowRJZXB.js";import{f as X,u as $,g as q,r as j}from"./react-CqwDK6Md.js";import{u as H}from"./redux-C5-YQmi4.js";import{g as J,U as y}from"./activityTracker-B0ua6ybj.js";import"./vendor-B9ygI19o.js";const se=()=>{const e=B.c(57),i=H(),l=X();let v;e[0]!==l.pathname?(v=J(l.pathname),e[0]=l.pathname,e[1]=v):v=e[1];const a=v,[D]=$(),r=q(),[V,L]=j.useState(null);let N;e[2]!==D?(N=D.get("session_id"),e[2]=D,e[3]=N):N=e[3];const n=N;let w,S;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{(async()=>{const T=await G();L(T||null)})()},S=[],e[4]=w,e[5]=S):(w=e[4],S=e[5]),j.useEffect(w,S);let _;e[6]!==a?(_=()=>{b({action:y.PAGE_VISIT,screenName:a,description:"Payment Completed page visit"})},e[6]=a,e[7]=_):_=e[7];let I;e[8]!==l.pathname||e[9]!==a?(I=[l.pathname,a],e[8]=l.pathname,e[9]=a,e[10]=I):I=e[10],j.useEffect(_,I);const[s,A]=j.useState("loading");let E;e[11]!==i||e[12]!==r||e[13]!==a||e[14]!==n?(E=()=>{(async()=>{if(!n){A("error");return}b({action:y.DETAILS_VIEW,screenName:a,description:"Started verifying Stripe payment session"});const T=await i(W(n));if(!T?.status){A("error");return}T.paymentStatus==="paid"?(A("success"),i(K()),i(O()),b({action:y.ADD,screenName:a,description:"Stripe payment successful",isSuccess:!0}),setTimeout(()=>{b({action:y.NAVIGATE,screenName:a,description:"Redirecting user to dashboard after payment success"}),r("/dashboard")},5500)):(A("processing"),b({action:y.DETAILS_VIEW,screenName:a,description:"Stripe payment processing"}))})()},e[11]=i,e[12]=r,e[13]=a,e[14]=n,e[15]=E):E=e[15];let P;e[16]!==i||e[17]!==r||e[18]!==a||e[19]!==n||e[20]!==V?(P=[i,n,r,V,a],e[16]=i,e[17]=r,e[18]=a,e[19]=n,e[20]=V,e[21]=P):P=e[21],j.useEffect(E,P);let k,U;e[22]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"absolute inset-0 opacity-20 bg-[radial-gradient(#10b98122_1px,transparent_1px)] bg-[size:40px_40px]"}),U=t.jsx("div",{className:"absolute w-[500px] h-[500px] rounded-full bg-emerald-500/20 blur-[100px] animate-heartbeat"}),e[22]=k,e[23]=U):(k=e[22],U=e[23]);let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("div",{className:"absolute inset-0 rounded-full border border-emerald-400/20 animate-spin-slow"}),e[24]=C):C=e[24];let c;e[25]!==s?(c=s==="success"&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:t.jsxs("div",{className:"relative w-40 h-40 rounded-full border border-emerald-400/30 overflow-hidden shadow-[0_0_50px_rgba(16,185,129,0.4)]",children:[t.jsx("div",{className:"absolute bottom-0 left-0 w-full water-fill"}),t.jsx("div",{className:"absolute inset-0 rounded-full bg-emerald-400/10 blur-md"}),t.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-emerald-400 text-5xl font-bold animate-corePulse z-10",children:"✓"})]})}),e[25]=s,e[26]=c):c=e[26];let o;e[27]!==s?(o=s==="loading"&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-emerald-400 text-4xl animate-pulse",children:"⚡"}),e[27]=s,e[28]=o):o=e[28];let d;e[29]!==s?(d=s==="processing"&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-yellow-400 text-4xl animate-pulse",children:"⏳"}),e[29]=s,e[30]=d):d=e[30];let m;e[31]!==s?(m=s==="error"&&t.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-red-500 text-5xl",children:"✕"}),e[31]=s,e[32]=m):m=e[32];let u;e[33]!==c||e[34]!==o||e[35]!==d||e[36]!==m?(u=t.jsxs("div",{className:"relative w-44 h-44 mx-auto mb-12",children:[C,c,o,d,m]}),e[33]=c,e[34]=o,e[35]=d,e[36]=m,e[37]=u):u=e[37];let f;e[38]!==s?(f=s==="loading"&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"text-2xl text-emerald-400 tracking-[0.2em] uppercase",children:"Verifying Transaction"}),t.jsx("p",{className:"text-gray-400 mt-3",children:"Connecting to secure gateway..."})]}),e[38]=s,e[39]=f):f=e[39];let x;e[40]!==s?(x=s==="processing"&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"text-2xl text-yellow-400 tracking-[0.2em] uppercase",children:"Activating Subscription 
1Engine"}),t.jsx("p",{className:"text-gray-400 mt-3",children:"Syncing plan configuration..."})]}),e[40]=s,e[41]=x):x=e[41];let p;e[42]!==s?(p=s==="success"&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"text-3xl text-emerald-400 font-bold tracking-wider uppercase",children:"Subscription Activated"}),t.jsx("p",{className:"text-lg text-gray-200 mt-4",children:"AI Infrastructure Ready"}),t.jsx("p",{className:"text-base text-gray-300 mt-2 tracking-widest",children:"Redirecting to dashboard..."})]}),e[42]=s,e[43]=p):p=e[43];let h;e[44]!==r||e[45]!==a||e[46]!==s?(h=s==="error"&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"text-2xl text-red-500 uppercase tracking-widest",children:"Payment Verification Failed"}),t.jsx("p",{className:"text-gray-400 mt-3",children:"Please contact support or retry."}),t.jsx("button",{onClick:()=>{b({action:y.CLICK,screenName:a,description:"User returned to dashboard after payment error"}),r("/dashboard")},className:"mt-8 px-8 py-3 rounded-full border border-red-500 text-red-500 hover:bg-red-500 hover:text-white transition-all duration-300",children:"Back to OnAssist AI"})]}),e[44]=r,e[45]=a,e[46]=s,e[47]=h):h=e[47];let g;e[48]!==u||e[49]!==f||e[50]!==x||e[51]!==p||e[52]!==h?(g=t.jsxs("div",{className:"relative text-center z-10",children:[u,f,x,p,h]}),e[48]=u,e[49]=f,e[50]=x,e[51]=p,e[52]=h,e[53]=g):g=e[53];let F;e[54]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("style",{children:`
2          @keyframes waterRise {
3            0% { height: 0%; }
4            100% { height: 100%; }
5          }
6
7          .water-fill {
8            background: linear-gradient(
9              to top,
10              rgba(16,185,129,0.9),
11              rgba(16,185,129,0.6),
12              rgba(16,185,129,0.3)
13            );
14            height: 0%;
15            animation: waterRise 2.8s ease-in-out forwards;
16          }
17
18          @keyframes corePulse {
19            0%,100% { transform: scale(1); opacity: 0.8; }
20            50% { transform: scale(1.15); opacity: 1; }
21          }
22
23          .animate-corePulse {
24            animation: corePulse 2s ease-in-out infinite;
25          }
26
27          .animate-spin-slow {
28            animation: spin 8s linear infinite;
29          }
30        `}),e[54]=F):F=e[54];let R;return e[55]!==g?(R=t.jsxs("div",{className:"fixed inset-0 bg-[#0B0F14] flex items-center justify-center overflow-hidden",children:[k,U,g,F]}),e[55]=g,e[56]=R):R=e[56],R};export{se 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.