PageSourceSearch

https://mailsac.com/v2/_next/static/chunks/pages/account-deletion-1593b3443709c8b6.js

js mailsac.com collected 2026-10-03 19:01:07 UTC 7,892 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7856],{15011:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>v});var a=t(26514),i=t(71983),n=t(75834),r=t(57197),l=t(78706),o=t(49136),c=t(94554),d=t(85629),h=t(37615),x=t(77418),u=t(54311),m=t(3985),f=t(88930),g=t(87546),p=t(13391),j=t(57706),b=t(42216),y=t.n(b);let v=()=>{let{reqUser:e}=(0,p.Jd)(),[s,t]=(0,n.useState)(!1),[b,v]=(0,n.useState)(""),[A,N]=(0,n.useState)(""),[S,w]=(0,n.useState)(!1),L=!S&&e?._id==b;return(0,a.jsx)(r.A,{fluid:!0,children:(0,a.jsxs)(l.A,{children:[(0,a.jsx)(o.A,{sm:4,md:3,children:(0,a.jsx)(j.A,{reqUser:e})}),(0,a.jsx)(o.A,{sm:8,children:(0,a.jsx)(l.A,{children:(0,a.jsx)(o.A,{md:6,children:(0,a.jsxs)(c.A,{children:[(0,a.jsx)(c.A.Header,{as:"h3",children:"Account Deletion"}),(0,a.jsx)(c.A.Body,{children:s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:(0,a.jsx)("i",{className:"fa fa-check"})}),(0,a.jsxs)("p",{children:["Your account deletion request has been submitted successfully.",(0,a.jsx)("br",{})]})]}):(0,a.jsxs)(d.A,{onSubmit:e=>{e.preventDefault(),L&&(N(""),L&&(w(!0),y().post("/api/account-deletion-request").send({userId:b}).then(e=>{e.status<200||e.status>299?N(e.body.message||(0,i.U)(e.body)):(t(!0),window.open("/?message=Account+deletion+was+successful","_self"),w(!1))}).catch(e=>{N("An error occurred. "+e?.response?.body?.message),w(!1)})))},children:[(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:"Requesting account deletion expresses your intention to fully remove both your user account and any existing information relevant to your account."}),(0,a.jsx)("li",{children:"This action cannot be undone, and we will be unable to recover any data."})]}),(0,a.jsxs)(h.A,{className:"mb-3",controlId:"formUsername",children:[(0,a.jsx)(x.A,{children:"Username"}),(0,a.jsx)(u.A,{children:(0,a.jsx)(m.A,{type:"text",value:b,onChange:e=>v(e.target.value)})}),(0,a.jsx)("br",{}),(0,a.jsx)(f.A,{type:"submit",disabled:!L,variant:"primary",style:{float:"left"},children:S?"Processing...":"DELETE NOW"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),A&&(0,a.jsxs)(g.A,{variant:"danger",children:["Error: ",A," "]})]})})]})})})})]})})}},57706:(e,s,t)=>{"use strict";t.d(s,{A:()=>j});var a=t(26514),i=t(75834),n=t(42216),r=t.n(n),l=t(22091),o=t(67361),c=t(88930),d=t(87546),h=t(19239),x=t(71729),u=t(71589);let m=t(13321).Ay,f=e=>r().get(e).then(e=>e.body),g=new Set(["cookie","mailsac::free","mailsac::admin-impersonate"]),p=e=>(0,a.jsxs)(l.A.Link,{className:"list-group-item",href:e.href,children:[(0,a.jsx)("i",{className:`fa ${e.icon}`})," ",e.text,"badge"in e?(0,a.jsx)(o.A,{pill:!0,style:{position:"absolute",right:"11px",top:"6px",fontSize:"13px"},children:e.badge}):null]}),j=e=>{let[s,t]=(0,i.useState)(!1),[n,r]=(0,i.useState)(""),[j,b]=(0,i.useState)(!1),[y,v]=(0,i.useState)("mailsac.com"),{data:A,error:N}=m("/api/me",f,{skip:e.reqUser}),{data:S,error:w}=m("/api/me/stats",f,{skip:e.reqUser}),L=e.reqUser||A,k=e.stats||S,C=!!(L?.apiKeyName&&!g.has(L.apiKeyName));(0,i.useEffect)(()=>{!j&&k?.domains?.[0]&&(b(!0),v("@"+k.domains[0]))},[k?.domains]);let _=()=>{if(!n)return;let e=n.toLowerCase();if(e.includes("@"))return void window.open("/inbox/"+e,"_self");let s=(y||"@mailsac.com").trim().toLowerCase();s.startsWith("@")||(s="@"+s),window.open("/inbox/"+e+s,"_self")},E=e=>{e.key?.toLowerCase()==="enter"&&_()},U=`sidebar sidebarContent ${s?"sidebar-force-show":""}`;if(!L)return(0,a.jsx)("div",{className:U});let D=(k?.domains.map(e=>`@${e}`)||[]).concat(["@mailsac.com"]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(c.A,{variant:"outline-primary",className:"toggleButton",onClick:()=>t(!s),"aria-label":"Toggle sidebar",title:"Toggle sidebar",children:["Sidebar",(0,a.jsx)("i",{className:`fa ${s?"fa-chevron-left":"fa-chevron-right"}`,style:{paddingLeft:"15px"}})]}),(0,a.jsxs)("div",{className:U,children:[N||w?(0,a.jsx)(d.A,{className:"alert alert-danger",children:(0,a.jsx)("pre",{children:JSON.stringify(N||w,null,2)})}):null,(0,a.jsxs)(l.A,{className:"list-group flex-column dash-bar left-bar mailsac-sidebar-navbar",children:[(0,a.jsxs)("h4",{className:"list-group-item",children:[L._id,C?(0,a.jsx)(h.A,{placement:"right",overlay:(0,a.jsxs)(x.A,{id:"needs-id-tip-sub-account-login-indicator",children:["User: ",L.apiKeyName]}),children:(0,a.jsx)(o.A,{pill:!0,"aria-label":"Team User Login","data-balloon-pos":"right",style:{textAlign:"center",width:"45px",lineHeight:"1",backgroundColor:"rgb(119, 119, 119) !important",padding:"3px 5px"},className:"pull-right",children:(0,a.jsx)("i",{className:"fa fa-user",style:{padding:"0",margin:"0",fontSize:"14px"}})})}):null]}),(0,a.jsx)("div",{style:{margin:0,padding:0},children:(0,a.jsxs)("div",{className:"choose-inbox",children:[(0,a.jsx)("input",{className:"form-control",style:{textAlign:"right"}
1,type:"text",value:n,placeholder:"anything",onChange:e=>r(e.target.value),onKeyDown:E,autoFocus:!0}),(0,a.jsx)("input",{className:"form-control",type:"text",style:{textAlign:"left"},list:"availableDomainsForInboxChooser",value:y,onClick:()=>{v("")},onChange:e=>v(e.target.value),onKeyDown:E}),(0,a.jsx)("datalist",{id:"availableDomainsForInboxChooser",children:D.map(e=>(0,a.jsx)("option",{value:e,children:e},e))}),(0,a.jsx)("div",{className:"d-grid",children:(0,a.jsx)(c.A,{className:"btn btn-primary btn-block",onClick:_,disabled:!n||!y,children:"Check the mail!"})})]})}),(0,a.jsx)(p,{href:"/dashboard",icon:"fa-home",text:"Dashboard"}),C&&L.allowElevate?(0,a.jsx)(p,{href:"/v2/elevate",icon:"fa-level-up",text:"Elevate to Root User"}):null,(0,a.jsx)(p,{href:"/app",icon:"fa-envelope-open-o",text:(0,a.jsxs)("span",{children:["Unified Inbox\xa0",(0,a.jsx)("sup",{children:"BETA"})]})}),(0,a.jsx)(p,{href:"/inbox/starred",icon:"fa-star",text:"Starred Messages"}),(0,a.jsx)(p,{href:"/v2/addresses",icon:"fa-address-card-o",text:"Enhanced Email Addresses",badge:isNaN(k?.addresses?.length)?"-":k?.addresses?.length}),(0,a.jsx)(p,{href:"/v2/domains",icon:"fa-globe",text:"Custom Domains",badge:k&&L?[k?.domains.length,L?.privateDomain+k?.domains.length].join(" / "):"-"}),(0,a.jsx)(p,{href:"/v2/credentials",icon:"fa-key",text:"API Keys & Users"}),(0,a.jsx)(p,{href:"/v2/usage",icon:"fa-bar-chart",text:"Usage and Analytics",badge:k&&L?[(0,u.sI)(L.moAPICount),L.apiMonthlyLimit?(0,u.sI)(L.apiMonthlyLimit):"∞"].join(" / "):"-"}),(0,a.jsx)(p,{href:"/email-validation",icon:"fa-check-square",text:"Email Validation"}),(0,a.jsx)(p,{href:"/v2/load-testing",icon:"fa-tachometer",text:"Load Testing"}),(0,a.jsx)(p,{href:"/v2/saml",icon:"fa-sign-in",text:"SAML/SSO"}),(0,a.jsx)(p,{href:"/v2/storage",icon:"fa-floppy-o",text:"Storage",badge:k&&L?(k.storedMessages/L.messageLimit*100).toFixed(0)+"%":"-"}),(0,a.jsx)(p,{href:"/account",icon:"fa-user-circle",text:"Account"}),C?null:(0,a.jsx)(p,{href:"/v2/billing",icon:"fa-credit-card",text:"Billing"}),L.isAdmin?(0,a.jsx)(p,{href:"/admin",icon:"fa-shield",text:"ADMIN"}):null]})]})]})}},71589:(e,s,t)=>{"use strict";t.d(s,{O1:()=>a,Wr:()=>i,sI:()=>n});let a=e=>e>1e9?(e/1e9).toLocaleString()+" B":e>1e6?(e/1e6).toLocaleString()+" M":e>1e3?(e/1e3).toLocaleString()+" K":e.toLocaleString(),i=e=>e>1e9?(e/1e9).toLocaleString()+" GB":e>1e6?(e/1e6).toLocaleString()+" MB":e>1e3?(e/1e3).toLocaleString()+" KB":e.toLocaleString(),n=e=>{let s="string"==typeof e?parseFloat(e)||0:e;if(s>1e6){let e=s/1e6,t=r(e);return Math.floor(e)+t+" M"}if(s>1e3){let e=r(s/1e6);return Math.floor(s/1e3)+e+" K"}return s+""},r=e=>{var s=e.toFixed(1).split(".")[1];return"0"==s?"":"."+s}},71983:(e,s,t)=>{"use strict";function a(e){if("string"==typeof e)return e;if(e instanceof Error)return e.message;try{return JSON.stringify(e)||"Request failed"}catch(e){return"Request failed"}}t.d(s,{U:()=>a})},94686:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/account-deletion",function(){return t(15011)}])}},e=>{e.O(0,[3321,2007,4656,636,6593,8792],()=>e(e.s=94686)),_N_E=e.O()}]);

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.