1import{w as p}from"./runtime-dom.esm-bundler.hR_rE5am.js";import{t as r}from"./translate.C4wggBpu.js";import{_ as b}from"./InputField.vue_vue_type_script_setup_true_lang.DzLGia64.js";import{m as i,f as w,u as _}from"./useProfileApi.BbSHL9GU.js";import{p as y}from"./processErrorResponse.DeiosO_S.js";import{J as g,L as u,N as S,n as v,M as h,O as k,P as x,S as o,Q as l,W as e,k as M,F as V}from"./runtime-core.esm-bundler.B6keTsmA.js";import"./convertToUrlSearchParams.D6QR1eDk.js";import"./index.D_5av9BF.js";const C={class:"m-header"},E={class:"c-title text-2xl mb-5"},P={class:"opacity-60"},B=["aria-label"],D={class:"m-body"},N={class:"grid gap-y-4"},q={class:"grid gap-2 mt-6"},A=["disabled"],U=g({__name:"ConfirmProfileDeletionModal",setup(F){const t=u({isSending:!1,password:""}),d=u({}),{deleteProfile:m}=_(),c=async()=>{if(!t.isSending){t.isSending=!0;try{await m({password:t.password}),await i.navigate("AccountDeletedModal")}catch(n){const s=await y(n);s&&s.errors&&w(d,s.errors)}finally{t.isSending=!1}}};S(()=>{v(()=>{var n;t.password="",(n=document.querySelector('.m-modal input[type="password"]'))==null||n.focus()})});const f=h(()=>t.isSending?r("ÐидаленнÑ")+"â¦":r("ÐидалиÑи"));return(n,s)=>(k(),x(V,null,[o("div",C,[o("hgroup",null,[o("h2",E,l(e(r)("ÐидалиÑи облÑковий запиÑ"))+"? ",1),o("p",P,l(e(r)("Ðи впевненÑ, Ñо Ñ
оÑеÑе видалиÑи ÑвÑй облÑковий запиÑ?"))+" "+l(e(r)("ÐÑÑÐ»Ñ Ð²Ð¸Ð´Ð°Ð»ÐµÐ½Ð½Ñ Ð²ÑÑ Ð´Ð°Ð½Ñ Ð±Ñде вÑÑаÑено без можливоÑÑÑ Ð²ÑдновленнÑ"))+". ",1)]),o("button",{type:"button",class:"m-close","aria-label":e(r)("ÐакÑиÑи модалÑне вÑкно"),onClick:s[0]||(s[0]=(...a)=>e(i).close&&e(i).close(...a))},s[4]||(s[4]=[o("i",{class:"i-icon i-icon-close"},null,-1)]),8,B)]),o("div",D,[o("form",{onSubmit:p(c,["prevent"])},[o("div",N,[M(b,{modelValue:t.password,"onUpdate:modelValue":s[1]||(s[1]=a=>t.password=a),name:"password",error:d.password,type:"password",placeholder:e(r)("ÐаÑолÑ"),required:!0,onInput:s[2]||(s[2]=a=>delete d.password)},null,8,["modelValue","error","placeholder"])]),o("div",q,[o("button",{type:"submit",class:"f-btn f-btn--primary w-full rounded-full",disabled:t.isSending},l(f.value),9,A),o("button",{type:"button",class:"f-btn f-btn--outline-primary w-full rounded-full",onClick:s[3]||(s[3]=p((...a)=>e(i).close&&e(i).close(...a),["prevent"]))},l(e(r)("СкаÑÑваÑи")),1)])],32)])],64))}});export{U 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.