PageSourceSearch

https://darasa.my/assets/thank-you-AsviDn_G.js

js darasa.my collected 2026-10-09 22:01:55 UTC 1,638 bytes, 1 lines download raw bytes

1import{y as u,u as m,r as s,j as t}from"./index-D7meMuQ8.js";function f(e,r,a){if(!(typeof window>"u"||typeof window.fbq!="function"))try{a?window.fbq("track",e,r??{},a):window.fbq("track",e,r)}catch{}}const o="oct5am_purchase_refs";function p(){const{reference:e,name:r}=u.useSearch(),a=m(),[i,c]=s.useState(!1);return s.useEffect(()=>{if(!e){c(!0);return}(async()=>{try{if((await(await fetch("/api/public/oct5am/pay",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"verify",reference:e})})).json()).status!=="success"){c(!0);return}let n=[];try{n=JSON.parse(localStorage.getItem(o)||"[]")}catch{n=[]}if(!n.includes(e)){f("Purchase",{value:1790,currency:"KES",content_name:"5AM Challenge October",content_type:"product"},{eventID:e});try{localStorage.setItem(o,JSON.stringify([...n,e].slice(-20)))}catch{}}a({to:"/5am/thank-you",search:{ref:e,name:r,amt:"1790",tracked:"1"},replace:!0})}catch{c(!0)}})()},[e,r,a]),t.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4 text-center",children:i?t.jsxs("div",{className:"max-w-md",children:[t.jsx("h1",{className:"text-xl font-semibold",children:"Payment not confirmed"}),t.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"If you were charged, WhatsApp Elvis on +254 115 661 135 with your M-Pesa message."}),t.jsx("a",{href:"/oct-5am",className:"mt-6 inline-block rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground",children:"Back to the challenge"})]}):t.jsx("p",{className:"text-sm text-muted-foreground",children:"Confirming your payment…"})})}export{p as component};

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.