import{d as V,r as x,s as _,x as b,w as t,O as E,f as w,i as a,y as C,h as l,G as k,L as o,I as D,E as y,A as S,j as A,l as d,k as m,dl as B,_ as j}from"./index-N7CMQwFv.js";import{V as I}from"./VRow-CGgRlzLk.js";import{V as u}from"./VCol-xRADuXqd.js";/* empty css */const N={class:"d-flex justify-end"},R={class:"btn-cancel"},T={class:"btn-save"},F=V({__name:"accountChangeEmail",props:["changeEmailDialogVisible"],emits:["update:changeEmailDialogVisible","change:changeEmailSuccess"],setup(f,{emit:p}){const g=f,i=p,s=x(""),c=()=>{i("update:changeEmailDialogVisible",!1)},r=_(),h=()=>{B({newEmail:s.value}).then(n=>{r.changeSnackbar({color:"#7367f0",location:"top",variant:"elevated",text:"A new email address is sent to verify the email address.!",visible:!0}),i("update:changeEmailDialogVisible",!1),i("change:changeEmailSuccess",!0)}).catch(n=>{r.changeSnackbar({color:"#ff4c51",location:"top",variant:"elevated",text:"Modification Failed !",visible:!0})})};return(n,e)=>(w(),b(E,{"model-value":g.changeEmailDialogVisible,width:n.$vuetify.display.smAndDown?"auto":800,persistent:""},{default:t(()=>[a(C,{class:"pa-6 pa-2 change-email-dialog"},{default:t(()=>[l("div",N,[a(k,{icon:"custom-close-line",onClick:o(c,["prevent"])})]),a(D,{class:"pa-5 pt-6"},{default:t(()=>[e[3]||(e[3]=l("h4",{class:"text-h4 text-center mb-2"}," Change Email ",-1)),e[4]||(e[4]=l("p",{class:"text-body-1 text-center mb-6"}," Please enter a new email number. ",-1)),a(I,null,{default:t(()=>[a(u,{cols:"12"},{default:t(()=>[a(y,{modelValue:A(s),"onUpdate:modelValue":e[0]||(e[0]=v=>S(s)?s.value=v:null),label:"E-mail",variant:"outlined"},null,8,["modelValue"])]),_:1}),a(u,{cols:"12",class:"d-flex flex-wrap justify-center gap-5"},{default:t(()=>[l("div",R,[a(d,{variant:"outlined",color:"#6D788D",height:"42px",width:"92px",onClick:o(c,["prevent"])},{default:t(()=>e[1]||(e[1]=[m(" Cancel ")])),_:1,__:[1]})]),l("div",T,[a(d,{class:"text-none text-subtitle-1",color:"#000000",height:"42px",variant:"flat",onClick:o(h,["prevent"])},{default:t(()=>e[2]||(e[2]=[m(" Verify Email ")])),_:1,__:[2]})])]),_:1})]),_:1})]),_:1,__:[3,4]})]),_:1})]),_:1},8,["model-value","width"]))}}),O=j(F,[["__scopeId","data-v-216c3310"]]);export{O as default};