1import{p as m,r as c,j as u}from"./vendor-react-DfYGAhtm.js";import{g as d,a as p,c as n}from"./paymentMandateReturnSession-B31Waw65.js";import{x as k,S as o}from"./index-DsBgCU7r.js";import{M as y}from"./MandateStatusView-8tg2FuDm.js";import{B as g}from"./bankLinking-CG6Z7VZS.js";import{r as f,c as h}from"./walletMandateSession-B-c6J5GS.js";import"./vendor-icons-1odZwi-b.js";import"./vendor-ui-DA_r9yXk.js";import"./vendor-state-BsBVN-fX.js";import"./vendor-forms-BP-7CbAP.js";import"./failed-Dd90HJgP.js";import"./success-C0L8gZxS.js";import"./StepPageLayout-DdZUweau.js";const v=()=>{const{navigate:t}=k(),[r]=m(),e=f(r.get("method"))==="BANK",i=r.get("reason")==="incomplete",[s]=c.useState(()=>d()),a=s?p(s):null;c.useEffect(()=>{h()},[]);const l=()=>{if(a){n(),t(a,{replace:!0});return}t(`/${o.Wallet}`,{replace:!0})};return u.jsx(y,{variant:"cancel",title:i?e?"Bank linking not completed":"Card linking not completed":e?"Bank linking cancelled":"Card linking cancelled",description:i?e?"You left before the bank link was finished, so nothing was added to your wallet. You can try again anytime.":"You left before the card link was finished, so nothing was added to your wallet. You can try again anytime.":e?"No bank account was linked to your wallet. You can try again anytime from Linked Banks.":"No card was linked to your wallet. You can try again anytime from Linked Cards.",onGoHome:()=>{n(),t("/home",{replace:!0})},primaryAction:{label:a?"Back to payment":"Try again",onClick:()=>{if(a||e&&!g){l();return}t(`/${e?o.LinkedBanks:o.LinkedCards}`,{replace:!0})}},secondaryAction:a?{label:"Back to home",buttonType:"outline",onClick:()=>{n(),t("/home",{replace:!0})}}:{label:"Back to wallet",buttonType:"outline",onClick:l}})};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.