PageSourceSearch

https://bank-statement-conversion.com/build/assets/DeleteAccount-CXw7JlkE.js

js bank-statement-conversion.com collected 2026-09-24 13:58:20 UTC 3,005 bytes, 1 lines download raw bytes

1import{r as x,j as e,c,B as i,M as t,A as w,F as s}from"./bootstrap-vendor-BhheAoEU.js";import{a as v}from"./app-DXwX_1H5.js";import{P as h,al as p}from"./icons-vendor-DOAVIvzV.js";/* empty css            */function T(){const[j,d]=x.useState(!1),[f,n]=x.useState(!1),{data:o,setData:m,post:b,processing:l,errors:r,reset:g}=v({current_password:"",confirmation:""}),y=a=>{a.preventDefault(),b(route("account.delete"),{onSuccess:()=>{window.location.href=route("home")},onError:()=>{n(!0),setTimeout(()=>n(!1),5e3)}})},u=()=>{d(!1),g("current_password","confirmation"),n(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(c,{className:"border-danger",children:[e.jsxs(c.Header,{className:"bg-danger text-white d-flex align-items-center",children:[e.jsx(h,{className:"me-2"}),e.jsx("h5",{className:"mb-0",children:"Delete Account"})]}),e.jsxs(c.Body,{children:[e.jsxs("div",{className:"d-flex align-items-start mb-3",children:[e.jsx(p,{className:"text-warning me-2 mt-1"}),e.jsxs("div",{children:[e.jsx("h6",{className:"mb-2",children:"Delete Your Account Permanently"}),e.jsx("p",{className:"text-muted mb-0",children:"Once you delete your account, all your data will be permanently removed. This includes your profile, settings, conversions history, and subscription information. This action cannot be undone."})]})]}),e.jsxs(i,{variant:"danger",onClick:()=>d(!0),className:"d-flex align-items-center",children:[e.jsx(h,{className:"me-2"}),"Delete Account"]})]})]}),e.jsxs(t,{show:j,onHide:u,backdrop:"static",keyboard:!1,children:[e.jsx(t.Header,{closeButton:!0,children:e.jsxs(t.Title,{className:"text-danger d-flex align-items-center",children:[e.jsx(p,{className:"me-2"}),"Delete Account"]})}),e.jsxs(t.Body,{children:[f&&e.jsx(w,{variant:"danger",className:"mb-4",children:"Failed to delete account. Please check your password and try again."}),e.jsx("p",{className:"text-danger mb-4",children:"This action is permanent and cannot be reversed. All your data will be deleted immediately."}),e.jsxs(s,{onSubmit:y,children:[e.jsxs(s.Group,{className:"mb-3",children:[e.jsx(s.Label,{children:"Enter Your Current Password"}),e.jsx(s.Control,{type:"password",value:o.current_password,onChange:a=>
1m("current_password",a.target.value),isInvalid:!!r.current_password,autoComplete:"current-password",required:!0}),e.jsx(s.Control.Feedback,{type:"invalid",children:r.current_password})]}),e.jsxs(s.Group,{className:"mb-4",children:[e.jsx(s.Label,{children:"Type DELETE to confirm"}),e.jsx(s.Control,{type:"text",value:o.confirmation,onChange:a=>m("confirmation",a.target.value),isInvalid:!!r.confirmation,placeholder:"DELETE",required:!0}),e.jsx(s.Control.Feedback,{type:"invalid",children:r.confirmation})]}),e.jsxs("div",{className:"d-flex justify-content-end gap-2",children:[e.jsx(i,{variant:"secondary",onClick:u,disabled:l,children:"Cancel"}),e.jsx(i,{variant:"danger",type:"submit",disabled:l||o.confirmation!=="DELETE",children:l?"Deleting Account...":"Delete Account"})]})]})]})]})]})}export{T 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.