import{a4 as m,i as e,an as i,M as r,w,v as k,P as D,g,b8 as h}from"./app-JmgyQoR0.js";import{b as y,c as d,h as n,t as B,l as u,j as t,K as a,E as s,z as c,i as _}from"./vue-y3KLWBaS.js";const x={class:"_formRoot"},T=y({__name:"delete-account",setup(b){async function f(){{const{canceled:p}=await w({type:"warning",text:e.ts.deleteAccountConfirm});if(p)return}const{canceled:o,result:l}=await k({title:e.ts.password,type:"password"});o||(await D("i/delete-account",{password:l}),await g({title:e.ts._accountDelete.started}),await h())}return d(()=>[]),d(()=>[]),m({title:e.ts._accountDelete.accountDelete,icon:"ph-warning ph-bold ph-lg"}),(o,l)=>(n(),B("div",x,[u(i,{warn:"",class:"_formBlock"},{default:t(()=>[a(s(c(e).ts._accountDelete.mayTakeTime),1)]),_:1}),u(i,{class:"_formBlock"},{default:t(()=>[a(s(c(e).ts._accountDelete.sendEmail),1)]),_:1}),o.$i.isDeleted?(n(),_(r,{key:1,disabled:""},{default:t(()=>[a(s(c(e).ts._accountDelete.inProgress),1)]),_:1})):(n(),_(r,{key:0,danger:"",class:"_formBlock",onClick:f},{default:t(()=>[a(s(c(e).ts._accountDelete.requestAccountDelete),1)]),_:1}))]))}});export{T as default};
