PageSourceSearch

https://www.mytruetox.com/assets/EnrolPayment-BleYKI1t.js

js mytruetox.com collected 2026-10-04 15:19:46 UTC 2,907 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-B7BBqVOg.js";import{j as x,e as h,r as s,L as y}from"./vendor-BQmajOcC.js";import{H as j}from"./index-20wUjfs8.js";import{P as b}from"./PrimaryCta-CF_a9HHK.js";import{M as g}from"./MedicalDisclosure-Dw18Aeak.js";import{M as N}from"./MembershipTerms-C3VQ_27H.js";import{r as w,g as k,c as v}from"./enrolment-BbS86EUV.js";import{A as S}from"./arrow-left-3rRkETM6.js";import{B as E}from"./badge-check-CE_AXWmR.js";import{L as M}from"./loader-circle-Ch6rfxm4.js";import"./charts-PGcg44wi.js";import"./query-BDhnl1cP.js";const W=()=>{var d;const[l]=x(),a=h(),r=l.get("e")??((d=w())==null?void 0:d.enrolmentId)??"",p=l.get("canceled")==="1",[t,u]=s.useState(null),[m,i]=s.useState(null),[o,c]=s.useState(!1);s.useEffect(()=>{if(!r){a("/find/enrol",{replace:!0});return}k(r).then(n=>{u(n),n.phoneVerified||a(`/find/enrol/verify?e=${r}`,{replace:!0}),n.memberNumber&&a(`/find/enrol/complete?e=${r}`,{replace:!0})}).catch(()=>i("We could not find that enrolment. Start again."))},[r,a]);const f=async()=>{if(!o){c(!0),i(null);try{const{url:n}=await v(r);window.location.href=n}catch(n){i(n instanceof Error?n.message:"We could not open payment. Try again."),c(!1)}}};return e.jsxs(e.Fragment,{children:[e.jsxs(j,{children:[e.jsx("title",{children:"Membership payment | TrueTox®"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("main",{className:"min-h-[100dvh] bg-ground px-5 pb-12 pt-6 text-ink",children:e.jsxs("div",{className:"mx-auto w-full max-w-md",children:[e.jsx(y,{to:`/find/enrol/verify?e=${r}`,"aria-label":"Back",className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-white text-ink",children:e.jsx(S,{className:"h-4 w-4","aria-hidden":!0})}),e.jsx("h1",{className:"mt-5 font-display text-3xl leading-tight",children:"Review and pay"}),t!=null&&t.phoneMasked?e.jsxs("p",{className:"mt-3 inline-flex items-center gap-1.5 rounded-full bg-clinical/15 px-2.5 py-1 font-body text-xs",children:[e.jsx(E,{className:"h-3.5 w-3.5 text-clinical","aria-hidden":!0}),"Mobile number confirmed ",t.phoneMasked]}):null,t!=null&&t.providerName?e.jsxs("p",{className:"mt-3 font-body text-sm text-ink/70",children:["Your membership is assigned to ",t.providerName,"."]}):null,e.jsx(N,{className:"mt-6"}),e.jsx("p",{className:"mt-4 font-body text-sm text-ink/70",children:"Payment is handled by Stripe. Your Member ID is issued once the first payment settles."}),p?e.jsx("p",{className:"mt-4 font-body text-sm text-signal",children:"Payment was not completed. You can continue when you are ready."}):null,m?e.jsx("p",{role:"alert",className:"mt-4 font-body text-sm text-signal",children:m}):null,e.jsxs(b,{className:"mt-6",onClick:f,disabled:o||!t,children:[o?e.jsx(M,{className:"h-4 w-4 animate-spin","aria-hidden":!0}):null,"Continue to payment — $189 per month"]}),e.jsx("div",{className:"mt-8",children:e.jsx(g,{})})]})})]})};export{W 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.