PageSourceSearch

https://bikesite.com.au/assets/PaymentSuccess-DHLQwXAN.js

js bikesite.com.au collected 2026-10-04 08:23:53 UTC 2,298 bytes, 1 lines download raw bytes

1import{d as p,o as y,c as n,a as s,b as v,w as g,T as f,u as h,e as w,f as b,r as u,g as o,n as k,_}from"./index-DOjDVg8L.js";const x={class:"premium-wrapper"},T={key:"verifying",class:"glass-card"},P={class:"progress-bar"},S={key:"success",class:"glass-card success-border"},B={key:"delay",class:"glass-card delay-border"},d=6,C=p({__name:"PaymentSuccess",setup(M){const m=h(),a=w(),t=u("verifying"),l=u(0),r=m.query.listing_id;async function c(){try{const{data:i}=await b.get(`/listings/${r}?t=${Date.now()}`);if(i.payment_status==="paid"||i.status==="active"){t.value="success",setTimeout(()=>a.push("/dashboard/listings?payment=success"),3e3);return}l.value<d?(l.value++,setTimeout(c,2e3)):(t.value="delay",setTimeout(()=>a.push("/dashboard/listings?payment=pending"),5e3))}catch{t.value="delay",setTimeout(()=>a.push("/dashboard/listings"),4e3)}}return y(()=>{if(!r)return a.push("/");c()}),(i,e)=>(o(),n("div",x,[e[5]||(e[5]=s("div",{class:"glow-bg"},null,-1)),v(f,{name:"stage",mode:"out-in"},{default:g(()=>[t.value==="verifying"?(o(),n("div",T,[e[0]||(e[0]=s("div",{class:"loader-box"},[s("div",{class:"spinner"}),s("div",{class:"center-icon"},"🛡️")],-1)),e[1]||(e[1]=s("h2",null,"Securing Payment",-1)),e[2]||(e[2]=s("p",null,"Confirming your transaction with Stripe. This usually takes just a few seconds...",-1)),s("div",P,[s("div",{class:"fill",style:k({width:l.value/d*100+"%"})},null,4)])])):t.value==="success"?(o(),n("div",S,[...e[3]||(e[3]=[s("div",{class:"success-icon-box"},[s("svg",{class:"checkmark",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"},[s("circle",{class:"checkmark-circle",cx:"26",cy:"26",r:"25",fill:"none"}),s("path",{class:"checkmark-check",fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"})])],-1),s("h2",{class:"text-success"},"Payment Verified!",-1),s("p",null,"Your bike is now live on the marketplace. Redirecting you to your dashboard...",-1)])])):(o(),n("div",B,[...e[4]||(e[4]=[s("div",{class:"delay-icon"},"⏳",-1),s("h2",null,"Activation in Progress",-1),s("p",null,"Your payment is confirmed, but it's taking a moment to sync. Don't worry, your listing will appear in your dashboard shortly.",-1),s("div",{class:"redirect-tag"},"Moving to dashboard...",-1)])]))]),_:1})]))}}),V=_(C,[["__scopeId","data-v-cd1b4838"]]);export{V 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.