PageSourceSearch

https://cloud.agenty.com/assets/page-CoPFdqph.js

js agenty.com collected 2026-10-01 15:34:57 UTC 2,759 bytes, 1 lines download raw bytes

1import{j as e,M as h,V as p,H as j,bg as g,bh as b,bi as f,bj as v,bk as y,bl as A,bm as N,bn as D,W as r}from"./ui-CfRm5DTA.js";import{r as t,ap as C,L as w}from"./icons-CoWim_VM.js";import{B as S}from"./breadcrumb-BPzsIiKz.js";import{a as P,A as T}from"./api-TVx_5Nik.js";import{b as k}from"./index-CO7lCi65.js";function H(){const[a,o]=t.useState(""),[d,l]=t.useState(!1),[i,c]=t.useState(!1),m=k(),n=a.toLowerCase()==="delete my account",u=()=>{n&&l(!0)},x=async()=>{c(!0);try{await P.delete(T.accounts),r.success("Account deleted successfully"),m("/signup")}catch(s){r.error(s.message)}finally{c(!1)}};return e.jsxs("div",{className:"space-y-6",children:[e.jsx(S,{items:[{label:"Settings",href:"/settings/profile"},{label:"Delete Account"}]}),e.jsx(h,{className:"border-destructive",children:e.jsxs("div",{className:"p-6 space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx(C,{className:"h-5 w-5 text-destructive mt-1"}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h3",{className:"text-lg font-medium text-destructive",children:"Delete Account"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Warning: This action cannot be undone. Please be certain."})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-4",children:[e.jsx("h4",{className:"font-medium",children:"Deleting your account will:"}),e.jsxs("ul",{className:"list-disc list-inside space-y-2 text-sm text-muted-foreground",children:[e.jsx("li",{children:"Permanently delete all your data"}),e.jsx("li",{children:"Remove access to all services"}),e.jsx("li",{children:"Cancel any active subscriptions"}),e.jsx("li",{children:"Delete all agents, jobs etc"}),e.jsx("li",{children:"Remove all team members' access"})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{className:"text-sm font-medium",children:'To confirm deletion, please type "delete my account" in the field below:'}),e.jsx("div",{children:e.jsx(p,{value:a,onChange:s=>o(s.target.value),placeholder:"delete my account",className:"max-w-md"})})]}),e.jsx(j,{variant:"destructive",onClick:u,disabled:!n,children:"Permanently Delete Account"})]})]})}),e.jsx(g,{open:d,onOpenChange:l,children:e.jsxs(b,{children:[e.jsxs(f,{children:[e.jsx(v,{children:"Are you absolutely sure?"}),e.jsx(y,{children:"This action cannot be undone. Your account and all associated data will be permanently deleted from our servers."})]}),e.jsxs(A,{children:[e.jsx(N,{children:"Cancel"}),e.jsxs(D,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:x,disabled:i,children:[i&&e.jsx(w,{className:"mr-2 h-4 w-4 animate-spin"}),"Yes, delete my account"]})]})]})})]})}export{H 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.