1import{d as E,u as f,B as y,j as g,k as s,a as A,l as S,Q as v,c as T,o as h}from"./BIRXwELB.js";const F=E({__name:"encoded-finish",setup(M){const t=A(),a=f(),m=y(),{$api:d}=g(),n=d(),r=s(()=>t.getters["session/getCustomerAccount"]),l=s(()=>t.getters["session/getPolicy"]),p=s(()=>t.getters["session/getAccountSelectedPaymentMethod"]),C=s(()=>t.getters["session/getAccountSelectedPaymentInterval"]);return S(async()=>{var c,u,i;const o=(c=m.query)==null?void 0:c.data;if(!o)v({});else{const _=await n.policy.getCurrentOrFutureContract((u=l.value)==null?void 0:u.id,(i=r.value)==null?void 0:i.CustomerId),e=await n.security.encodedFinish(r.value.CustomerId,_.id,p.value,C.value,o);e!=null&&e.success?(t.commit("person/SET_ACCOUNT_EFFECTIVE_DATE",e.effectiveDate),t.commit("person/SET_ACCOUNT_MESSAGE",e.message),a.push({name:"account",query:{accessConfirmationModal:!0}})):(t.commit("person/SET_ACCOUNT_MESSAGE",e==null?void 0:e.message),a.push({name:"account",query:{accessConfirmationModal:!1}}))}}),(o,c)=>(h(),T("div"))}});export{F 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.