PageSourceSearch

https://www.mtcxx.com/build/assets/DeleteUserForm-CGL4UxPG.js

js mtcxx.com collected 2026-10-03 00:57:56 UTC 2,277 bytes, 1 lines download raw bytes

1import{r as m,T as y,c as w,w as o,o as _,f as t,a as d,b as r,u as a,z as k,n as v}from"./app-BXvF3HYt.js";import{_ as x}from"./Modal-CKMeP4zG.js";import{_ as c}from"./DangerButton-xGqXEFND.js";import{_ as g}from"./DialogModal-BjEH1S11.js";import{_ as C,a as D}from"./TextInput-CN_jo65B.js";import{_ as b}from"./SecondaryButton-DBGdLAyH.js";import"./SectionTitle-CU87EiFI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={class:"mt-5"},$={class:"mt-4"},O={__name:"DeleteUserForm",setup(A){const l=m(!1),n=m(null),s=y({password:""}),p=()=>{l.value=!0,setTimeout(()=>n.value.focus(),250)},i=()=>{s.delete(route("current-user.destroy"),{preserveScroll:!0,onSuccess:()=>u(),onError:()=>n.value.focus(),onFinish:()=>s.reset()})},u=()=>{l.value=!1,s.reset()};return(U,e)=>(_(),w(x,null,{title:o(()=>e[1]||(e[1]=[t(" Delete Account ")])),description:o(()=>e[2]||(e[2]=[t(" Permanently delete your account. ")])),content:o(()=>[e[8]||(e[8]=d("div",{class:"max-w-xl text-sm text-gray-600 dark:text-gray-400"}," Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. ",-1)),d("div",V,[r(c,{onClick:p},{default:o(()=>e[3]||(e[3]=[t(" Delete Account ")])),_:1})]),r(g,{show:l.value,onClose:u},{title:o(()=>e[4]||(e[4]=[t(" Delete Account ")])),content:o(()=>[e[5]||(e[5]=t(" Are you sure you want to delete your account? Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. ")),d("div",$,[r(C,{ref_key:"passwordInput",ref:n,modelValue:a(s).password,"onUpdate:modelValue":e[0]||(e[0]=f=>a(s).password=f),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",autocomplete:"current-password",onKeyup:k(i,["enter"])},null,8,["modelValue"]),r(D,{message:a(s).errors.password,class:"mt-2"},null,8,["message"])])]),footer:o(()=>[r(b,{onClick:u},{default:o(()=>e[6]||(e[6]=[t(" Cancel ")])),_:1}),r(c,{class:v(["ml-3",{"opacity-25":a(s).processing}]),disabled:a(s).processing,onClick:i},{default:o(()=>e[7]||(e[7]=[t(" Delete Account ")])),_:1},8,["class","disabled"])]),_:1},8,["show"])]),_:1}))}};export{O 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.