import{b as k,c as y,a as _}from"./BasePage-aJlR_RJI.js";import{_ as R}from"./UInput.vue_vue_type_script_setup_true_lang-BjaSJgmr.js";import{Z as S,j as h,g as s,k as v,h as $,o as P,w as m,a as o,u as w}from"./index-CdEV5Lsj.js";import{c as i}from"./helper.service-Dk93koq0.js";import{u as C,O as G}from"./index-DruWBKkm.js";import{u as V}from"./usePaymentMethods-BbCZJclB.js";import"./ULabel.vue_vue_type_script_setup_true_lang-DmdMPZfT.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);v(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(),$(_,{group:a.$t("group.payments"),"group-step":w(G)*3,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};
