1import{z as _,A as f,d as h,u as C,l as y,V as A,W as E,i as k,r as S,M as I,n as $,ai as b,o as c,c as i,k as o,t as u,f as p,_ as B}from"./BpwX2Dck.js";import{g as T}from"./vpAKoDA7.js";const q=_` 2 mutation updateCustomerEmailAddress($token: String!) { 3 updateCustomerEmailAddress(token: $token) { 4 ... on Success { 5 success 6 } 7 ... on ErrorResult { 8 errorCode 9 message 10 } 11 } 12 } 13`,w=f(),x=async l=>{var r,t;try{const{data:e}=await w.mutate({mutation:_` 14 ${q} 15 `,variables:{token:l}});return e!=null&&e.errorCode?{error:e.error,message:e.message}:(r=e==null?void 0:e.updateCustomerEmailAddress)!=null&&r.errorCode?{error:e.updateCustomerEmailAddress.errorCode,message:(t=e==null?void 0:e.updateCustomerEmailAddress)==null?void 0:t.message}:e}catch(e){return console.error("updateCustomerEmailAddress:",e.message),{error:e.error,message:e.message}}},M={class:"account-change-email-page"},N={class:"grid-container"},R={class:"verify-header"},V={class:"h2"},z={class:"verify-content"},D={key:0},L={key:1,class:"info-field"},U=h({__name:"change-email-address",setup(l){const r=C(),{currentLocale:t}=y(),{$i18n:e}=A(),d=E(),{locale:g}=k(),m=S(""),a=I({verify:""});$(()=>{var s;r.setShopSubI18n(T((s=e==null?void 0:e.localeCodes)==null?void 0:s.value,t.value,d.path)),v()});const v=async()=>{var n;m.value=d.query.token;const s=await x(m.value);((n=s==null?void 0:s.verifyCustomerAccount)==null?void 0:n.__typename)==="CurrentUser"?b("/"+g.value+"/account/"):a.verify=s==null?void 0:s.message};return(s,n)=>(c(),i("main",M,[o("div",N,[o("div",null,[o("div",R,[o("h1",V,u(s.$t("account.changeEmail")),1)]),o("div",z,[p(a).verify?(c(),i("div",L,u(p(a).verify),1)):(c(),i("div",D,u(s.$t("account.emailChanged")),1))])])])]))}}),F=B(U,[["__scopeId","data-v-b9472ac9"]]);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.