import{aA as f,b as e,a9 as i,M as r,r as m,o as k,P as w,q as D,b2 as g}from"./app-QjDgb7aF.js";import{b as h,j as n,p as y,k as u,i as t,J as a,D as s,u as o,g as d}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const B={class:"_formRoot"},T=h({__name:"delete-account",setup(b){async function _(){{const{canceled:p}=await m({type:"warning",text:e.ts.deleteAccountConfirm});if(p)return}const{canceled:c,result:l}=await k({title:e.ts.password,type:"password"});c||(await w("i/delete-account",{password:l}),await D({title:e.ts._accountDelete.started}),await g())}return f({title:e.ts._accountDelete.accountDelete,icon:"ph-warning ph-bold ph-lg"}),(c,l)=>(n(),y("div",B,[u(i,{warn:"",class:"_formBlock"},{default:t(()=>[a(s(o(e).ts._accountDelete.mayTakeTime),1)]),_:1}),u(i,{class:"_formBlock"},{default:t(()=>[a(s(o(e).ts._accountDelete.sendEmail),1)]),_:1}),c.$i.isDeleted?(n(),d(r,{key:1,disabled:""},{default:t(()=>[a(s(o(e).ts._accountDelete.inProgress),1)]),_:1})):(n(),d(r,{key:0,danger:"",class:"_formBlock",onClick:_},{default:t(()=>[a(s(o(e).ts._accountDelete.requestAccountDelete),1)]),_:1}))]))}});export{T as default};
//# sourceMappingURL=delete-account-cP5IuySq.js.map
