1import{n as e}from"./api-oxkgIkmK.js";import{n as t}from"./QueryClientProvider-DMbhjdpH.js";import{t as n}from"./useMutation-CM9WFp-4.js";import{n as r}from"./authStore-m4Xto5Xy.js";var i=()=>{let i=t(),{logout:a}=r();return n({mutationFn:async t=>{let n=await fetch(e(`/account/delete`),{method:`DELETE`,headers:{"Content-Type":`application/json`},credentials:`include`,body:JSON.stringify({confirmName:t})});if(!n.ok){let e=await n.json().catch(()=>({}));throw Error(e.error??`Failed to delete account`)}return await n.json()},onSuccess:()=>{i.clear(),a()},onError:e=>{alert(`Failed to delete account: ${e.message}`)}})};export{i as t};
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.