PageSourceSearch

https://digimush.co.uk/assets/checkout.return-CMPDi_OZ.js

js digimush.co.uk collected 2026-10-08 13:34:56 UTC 1,621 bytes, 1 lines download raw bytes

1import{R as i,r as s,P as a,j as n,L as u}from"./index-CJdreA_E.js";import{g as d}from"./stripe-BsHHZ8Hx.js";import{C as l}from"./circle-check-hhrhlwh1.js";function m(e,c){if(typeof window>"u")return;const r=window.fbq;typeof r=="function"&&r("track",e,c)}function f(e){m("Purchase",{value:e.value,currency:e.currency,contents:e.contents,content_ids:e.content_ids,content_type:e.content_type??"product",num_items:e.num_items??e.contents?.length})}function y(){const{session_id:e}=i.useSearch(),[c,r]=s.useState(!1);return s.useEffect(()=>{if(!e||c)return;let o;try{o=d()}catch{return}a({data:{sessionId:e,environment:o}}).then(t=>{"error"in t||t.status==="complete"&&t.paymentStatus==="paid"&&(f({value:t.value,currency:t.currency,contents:t.contents,content_ids:t.contentIds,num_items:t.contents.length}),r(!0))}).catch(t=>console.error("Failed to fetch checkout session for Meta tracking",t))},[e,c]),n.jsx("div",{className:"min-h-screen flex items-center justify-center px-4",children:n.jsxs("div",{className:"max-w-md w-full bg-white rounded-3xl shadow-card ring-soft p-8 text-center",children:[n.jsx(l,{className:"mx-auto text-coral mb-4",size:56}),n.jsx("h1",{className:"text-2xl font-semibold text-ink mb-2",children:"Payment received"}),n.jsx("p",{className:"text-ink/65 mb-6",children:e?"Thanks — we've recorded your payment and your dashboard will update shortly.":"Thanks!"}),n.jsx(u,{to:"/dashboard",className:"inline-flex items-center justify-center gap-2 rounded-full bg-ink text-white px-5 py-3 text-sm font-semibold hover:bg-coral transition",children:"Back to dashboard"})]})})}export{y 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.