import{b as k,c as y,_}from"./BasePage-C3DiNX0e.js";import{_ as R}from"./UInput.vue_vue_type_script_setup_true_lang-eIU5RwOc.js";import{$ as S,l as h,k as s,f as $,h as v,o as P,w as m,a as o,u as w}from"./index-DRopsKkO.js";import{u as C,O as G,c as i}from"./index-_-ijfL1Q.js";import{u as V}from"./usePaymentMethods-B3q2fI3f.js";import"./useMutationObserver-DtW-3lQD.js";import"./ULabel.vue_vue_type_script_setup_true_lang-B9XE8rwf.js";const M={__name:"Page",setup(x){const e=C(),p=S(),{activatePaymentMethods:l}=V(e),t=h({accountNumber:"",bankRoutingNumber:""}),c=s(()=>e.payments.mailin.isActive?{name:"GettingStarted/Payments/Step4"}:{name:"GettingStarted/Domains/Step1"}),b=s(()=>{let a=2;return e.payments.mailin.isActive&&(a=3),a}),f=s(()=>!t.accountNumber||!t.bankRoutingNumber);$(async()=>{e.hasPaymentData||await e.getPayments(),t.accountNumber=e.payments.banktransfer.params.accountNumber,t.bankRoutingNumber=e.payments.banktransfer.params.bankRoutingNumber,e.payments.banktransfer.params.accountName||await p.push({name:"GettingStarted/Payments/Step2"})});async function d(a){(i(t,e.payments)||i(t,e.payments.banktransfer.params))&&(e.payments.banktransfer.params.accountNumber=t.accountNumber,e.payments.banktransfer.params.bankRoutingNumber=t.bankRoutingNumber,e.payments.mailin.isActive||await l()),a()}return(a,n)=>{const u=R,g=y,N=k;return P(),v(_,{group:a.$t("group.payments"),"group-step":w(G)*4,title:a.$t("title.wireTransfers"),description:a.$t("pageDescription.wireTransfers"),step:2,"max-steps":b.value,"prevent-next":f.value,prev:{name:"GettingStarted/Payments/Step2"},next:c.value,onContinue:d},{default:m(()=>[o(N,null,{default:m(()=>[o(g,null,{default:m(()=>[o(u,{modelValue:t.accountNumber,"onUpdate:modelValue":n[0]||(n[0]=r=>t.accountNumber=r),label:a.$t("label.accountNumber"),placeholder:a.$t("placeholder.accountNumber")},null,8,["modelValue","label","placeholder"]),o(u,{modelValue:t.bankRoutingNumber,"onUpdate:modelValue":n[1]||(n[1]=r=>t.bankRoutingNumber=r),label:a.$t("label.bankRoutingNumber"),placeholder:a.$t("placeholder.bankRoutingNumber")},null,8,["modelValue","label","placeholder"])]),_:1})]),_:1})]),_:1},8,["group","group-step","title","description","max-steps","prevent-next","next"])}}};export{M as default};
