PageSourceSearch

https://mailsac.com/v2/_next/static/chunks/pages/load-testing-075f579e3e4a229c.js

js mailsac.com collected 2026-10-03 19:01:45 UTC 15,557 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9763],{3985:(e,a,s)=>{"use strict";s.d(a,{A:()=>x});var t=s(77569),i=s.n(t),r=s(75834);s(96433);var l=s(23229),o=s(18551),n=s(20090),d=s(26514);let c=r.forwardRef(({bsPrefix:e,type:a,size:s,htmlSize:t,id:l,className:c,isValid:x=!1,isInvalid:h=!1,plaintext:m,readOnly:p,as:u="input",...f},j)=>{let{controlId:g}=(0,r.useContext)(o.A);return e=(0,n.oU)(e,"form-control"),(0,d.jsx)(u,{...f,type:a,size:t,ref:j,readOnly:p,id:l||g,className:i()(c,m?`${e}-plaintext`:e,s&&`${e}-${s}`,"color"===a&&`${e}-color`,x&&"is-valid",h&&"is-invalid")})});c.displayName="FormControl";let x=Object.assign(c,{Feedback:l.A})},18551:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=s(75834).createContext({})},23229:(e,a,s)=>{"use strict";s.d(a,{A:()=>x});var t=s(77569),i=s.n(t),r=s(75834),l=s(68208),o=s.n(l),n=s(26514);let d={type:o().string,tooltip:o().bool,as:o().elementType},c=r.forwardRef(({as:e="div",className:a,type:s="valid",tooltip:t=!1,...r},l)=>(0,n.jsx)(e,{...r,ref:l,className:i()(a,`${s}-${t?"tooltip":"feedback"}`)}));c.displayName="Feedback",c.propTypes=d;let x=c},41088:(e,a,s)=>{"use strict";s.d(a,{A:()=>c});var t=s(77569),i=s.n(t),r=s(75834),l=s(18551),o=s(20090),n=s(26514);let d=r.forwardRef(({id:e,bsPrefix:a,className:s,type:t="checkbox",isValid:d=!1,isInvalid:c=!1,as:x="input",...h},m)=>{let{controlId:p}=(0,r.useContext)(l.A);return a=(0,o.oU)(a,"form-check-input"),(0,n.jsx)(x,{...h,ref:m,type:t,id:e||p,className:i()(s,a,d&&"is-valid",c&&"is-invalid")})});d.displayName="FormCheckInput";let c=d},50913:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var t=s(26514),i=s(54311),r=s(3985),l=s(88930),o=s(75834);let n=e=>{let[a,s]=(0,o.useState)(!1);return(0,t.jsxs)(i.A,{className:e.inline?"d-inline-flex":"",children:[(0,t.jsx)(r.A,{style:e.code?{fontFamily:'Menlo,Monaco,Consolas,"Courier New",monospace',fontSize:e.small?"0.7rem":"inherit",padding:e.small?"0.7rem":"inherit"}:{},...e.textarea?{as:"textarea",rows:6}:{},disabled:!0,value:e.display||e.copy}),a?(0,t.jsx)(l.A,{disabled:!0,variant:"outline-secondary",style:{width:"42px"},children:(0,t.jsx)("i",{className:"fa fa-check-circle"})}):(0,t.jsx)(l.A,{onClick:a=>{if(a.preventDefault(),a.stopPropagation(),navigator.clipboard.writeText)navigator.clipboard.writeText(e.copy);else{let a="text/plain",s=new Blob([e.copy],{type:a}),t=new ClipboardItem({[a]:s});navigator.clipboard.write([t])}s(!0),setTimeout(()=>s(!1),3e3)},variant:"outline-secondary",style:{width:"42px"},children:(0,t.jsx)("i",{className:"fa fa-copy"})})]})}},54311:(e,a,s)=>{"use strict";s.d(a,{A:()=>h});var t=s(77569),i=s.n(t),r=s(75834),l=s(20090),o=s(41088),n=s(24276),d=s(26514);let c=r.forwardRef(({className:e,bsPrefix:a,as:s="span",...t},r)=>(a=(0,l.oU)(a,"input-group-text"),(0,d.jsx)(s,{ref:r,className:i()(e,a),...t})));c.displayName="InputGroupText";let x=r.forwardRef(({bsPrefix:e,size:a,hasValidation:s,className:t,as:o="div",...c},x)=>{e=(0,l.oU)(e,"input-group");let h=(0,r.useMemo)(()=>({}),[]);return(0,d.jsx)(n.A.Provider,{value:h,children:(0,d.jsx)(o,{ref:x,...c,className:i()(t,e,a&&`${e}-${a}`,s&&"has-validation")})})});x.displayName="InputGroup";let h=Object.assign(x,{Text:c,Radio:e=>(0,d.jsx)(c,{children:(0,d.jsx)(o.A,{type:"radio",...e})}),Checkbox:e=>(0,d.jsx)(c,{children:(0,d.jsx)(o.A,{type:"checkbox",...e})})})},56263:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/load-testing",function(){return s(64353)}])},57706:(e,a,s)=>{"use strict";s.d(a,{A:()=>g});var t=s(26514),i=s(75834),r=s(42216),l=s.n(r),o=s(22091),n=s(67361),d=s(88930),c=s(87546),x=s(19239),h=s(71729),m=s(71589);let p=s(13321).Ay,u=e=>l().get(e).then(e=>e.body),f=new Set(["cookie","mailsac::free","mailsac::admin-impersonate"]),j=e=>(0,t.jsxs)(o.A.Link,{className:"list-group-item",href:e.href,children:[(0,t.jsx)("i",{className:`fa ${e.icon}`})," ",e.text,"badge"in e?(0,t.jsx)(n.A,{pill:!0,style:{position:"absolute",right:"11px",top:"6px",fontSize:"13px"},children:e.badge}):null]}),g=e=>{let[a,s]=(0,i.useState)(!1),[r,l]=(0,i.useState)(""),[g,y]=(0,i.useState)(!1),[b,v]=(0,i.useState)("mailsac.com"),{data:N,error:A}=p("/api/me",u,{skip:e.reqUser}),{data:w,error:C}=p("/api/me/stats",u,{skip:e.reqUser}),k=e.reqUser||N,$=e.stats||w,S=!!(k?.apiKeyName&&!f.has(k.apiKeyName));(0,i.useEffect)(()=>{!g&&$?.domains?.[0]&&(y(!0),v("@"+$.domains[0]))},[$?.domains]);let T=()=>{if(!r)return;let e=r.toLowerCase();if(e.includes("@"))return void window.open("/inbox/"+e,"_self");let a=(b||"@mailsac.com").trim().toLowerCase();a.startsWith("@")||(a="@"+a),window.open("/inbox/"+e+a,"_self")},L=e=>{e.key?.toLowerCase()==="enter"&&T()},U=`sidebar sidebarContent ${a?"sidebar-force-show":""}`;if(!k)return(0,t.jsx)("div",{className:U});let R=($?.domains.map(e=>`@${e}`)||[]).concat(["@mailsac.com"]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.A,{variant:"outline-primary",className:"toggleButton",onClick:()=>s(!a),"aria-label":"Toggle sidebar",title:"Toggle sidebar",children:["Sidebar",(0,t.jsx)("i",{className:`fa ${a?"fa-chevron-left":"fa-chevron-right"}`,style:{paddingLeft:"15px"}})]}),(0,t.jsxs)("div",{className:U,children:[A||C?(0,t.jsx)(c.A,{className:"alert alert-danger",children:(0,t.jsx)("pre",{children:JSON.stringify(A||C,null,2)})}):null,(0,t.jsxs)(o.A,{className:"list-group flex-column dash-bar left-bar mailsac-sidebar-navbar",children:[(0,t.jsxs)("h4",{className:"list-group-item",children:[k._id,S?(0,t.jsx)(x.A,{placement:"right",overlay:(0,t.jsxs)(h.A,{id:"needs-id-tip-sub-account-login-indicator",children:["User: ",k.apiKeyName]}),children:(0,t.jsx)(n.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,t.jsx)("i",{className:"fa fa-user",style:{padding:"0",margin:"0",fontSize:"14px"}})})}):null]}),(0,t.jsx)("div",{style:{margin:0,padding:0},children:(0,t.jsxs)("div",{className:"choose-inbox",children:[(0,t.jsx)("input",{className:"form-control",style:{textAlign:"right"}
1,type:"text",value:r,placeholder:"anything",onChange:e=>l(e.target.value),onKeyDown:L,autoFocus:!0}),(0,t.jsx)("input",{className:"form-control",type:"text",style:{textAlign:"left"},list:"availableDomainsForInboxChooser",value:b,onClick:()=>{v("")},onChange:e=>v(e.target.value),onKeyDown:L}),(0,t.jsx)("datalist",{id:"availableDomainsForInboxChooser",children:R.map(e=>(0,t.jsx)("option",{value:e,children:e},e))}),(0,t.jsx)("div",{className:"d-grid",children:(0,t.jsx)(d.A,{className:"btn btn-primary btn-block",onClick:T,disabled:!r||!b,children:"Check the mail!"})})]})}),(0,t.jsx)(j,{href:"/dashboard",icon:"fa-home",text:"Dashboard"}),S&&k.allowElevate?(0,t.jsx)(j,{href:"/v2/elevate",icon:"fa-level-up",text:"Elevate to Root User"}):null,(0,t.jsx)(j,{href:"/app",icon:"fa-envelope-open-o",text:(0,t.jsxs)("span",{children:["Unified Inbox\xa0",(0,t.jsx)("sup",{children:"BETA"})]})}),(0,t.jsx)(j,{href:"/inbox/starred",icon:"fa-star",text:"Starred Messages"}),(0,t.jsx)(j,{href:"/v2/addresses",icon:"fa-address-card-o",text:"Enhanced Email Addresses",badge:isNaN($?.addresses?.length)?"-":$?.addresses?.length}),(0,t.jsx)(j,{href:"/v2/domains",icon:"fa-globe",text:"Custom Domains",badge:$&&k?[$?.domains.length,k?.privateDomain+$?.domains.length].join(" / "):"-"}),(0,t.jsx)(j,{href:"/v2/credentials",icon:"fa-key",text:"API Keys & Users"}),(0,t.jsx)(j,{href:"/v2/usage",icon:"fa-bar-chart",text:"Usage and Analytics",badge:$&&k?[(0,m.sI)(k.moAPICount),k.apiMonthlyLimit?(0,m.sI)(k.apiMonthlyLimit):"∞"].join(" / "):"-"}),(0,t.jsx)(j,{href:"/email-validation",icon:"fa-check-square",text:"Email Validation"}),(0,t.jsx)(j,{href:"/v2/load-testing",icon:"fa-tachometer",text:"Load Testing"}),(0,t.jsx)(j,{href:"/v2/saml",icon:"fa-sign-in",text:"SAML/SSO"}),(0,t.jsx)(j,{href:"/v2/storage",icon:"fa-floppy-o",text:"Storage",badge:$&&k?($.storedMessages/k.messageLimit*100).toFixed(0)+"%":"-"}),(0,t.jsx)(j,{href:"/account",icon:"fa-user-circle",text:"Account"}),S?null:(0,t.jsx)(j,{href:"/v2/billing",icon:"fa-credit-card",text:"Billing"}),k.isAdmin?(0,t.jsx)(j,{href:"/admin",icon:"fa-shield",text:"ADMIN"}):null]})]})]})}},64353:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>b});var t=s(26514),i=s(75834),r=s(28263),l=s.n(r),o=s(42216),n=s.n(o),d=s(78706),c=s(49136),x=s(94554),h=s(69111),m=s(87546),p=s(68242),u=s(88930),f=s(57706),j=s(13391),g=s(50913);let y=()=>(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"Load testing is a type of performance testing that simulates real-world load conditions. It is used to determine how a system behaves under both normal and anticipated peak load conditions."}),(0,t.jsx)("h4",{children:"How it works"}),(0,t.jsx)("p",{children:"When you create a load test, a subdomain is created that you can address email to. The subdomain is a unique identifier for your load test. You can use the subdomain to send email to any email address at that subdomain."}),(0,t.jsx)("p",{children:"The number of emails received emails at the load test ."}),(0,t.jsx)("h4",{children:"Limitations"}),(0,t.jsxs)("p",{children:["Emails to the load test subdomain are not saved. This allows you to send email to the load test subdomain without filling up your inbox, and allows us to support huge volumes of email. Load testing emails ",(0,t.jsx)("strong",{children:"do not count against storage"}),"."]}),(0,t.jsx)("h4",{children:"Cost"}),(0,t.jsxs)("p",{children:["Load test emails are tracked the same as regular Ops (1 email = 1 Op). You can view the number of Ops used by your load test by clicking into the load test below (",(0,t.jsx)("em",{children:"View"}),")."]})]}),b=()=>{let{reqUser:e}=(0,j.Jd)(),[a,s]=(0,i.useState)([]),[r,o]=(0,i.useState)(""),[b,v]=(0,i.useState)(!1),N=e=>{console.error("handleError:",e),o(e.response?.body?.message||e.message)},A=()=>n().get("/api/load-testing").then(e=>s(e.body)).catch(N);return(0,i.useEffect)(()=>{A()},[]),(0,t.jsxs)(d.A,{children:[(0,t.jsx)(c.A,{sm:4,md:3,children:(0,t.jsx)(f.A,{reqUser:e})}),(0,t.jsx)(c.A,{sm:8,children:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(x.A,{children:[(0,t.jsx)(x.A.Header,{as:"h3",children:"Load Testing"}),(0,t.jsxs)(x.A.Body,{children:[(0,t.jsx)("div",{children:b?(0,t.jsx)(y,{}):(0,t.jsx)(h.A,{onClick:()=>v(!0),className:"pull-right",children:(0,t.jsxs)("strong",{children:[(0,t.jsx)("i",{className:"fa fa-question-circle"}),"\xa0About"]})})}),r&&(0,t.jsx)(m.A,{variant:"danger",children:r}
1),(0,t.jsxs)(p.A,{striped:!0,responsive:!0,borderless:!0,children:[(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{style:{width:"25%"},children:"Start Time (UTC)"}),(0,t.jsx)("th",{style:{width:"35%"},children:"Domain"}),(0,t.jsx)("th",{style:{width:"25%"},children:"Expiration (UTC)"}),(0,t.jsx)("th",{style:{width:"15%"}})]})}),(0,t.jsxs)("tbody",{children:[a?.[0]?.expired||!a?.length?(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:4,children:(0,t.jsx)(u.A,{variant:"primary",size:"sm",onClick:()=>n().post("/api/load-testing").then(A).catch(N),children:"New Load Test"})})}):null,a.map(e=>(0,t.jsxs)("tr",{children:[(0,t.jsxs)("td",{children:[e.startTime,(0,t.jsx)("br",{}),l()(e.startTime).fromNow()]}),(0,t.jsx)("td",{children:(0,t.jsx)(g.A,{copy:e.dnsHostname,code:!0})}),(0,t.jsxs)("td",{children:[e.expired&&"Expired ",e.expiration,(0,t.jsx)("br",{}),l()(e.expiration).fromNow()]}),(0,t.jsxs)("td",{style:{textAlign:"right"},children:[(0,t.jsx)(u.A,{variant:"outline-primary",size:"sm",href:`/v2/load-testing/${e.subdomain}`,children:"View"}),"\xa0",!e.expired&&(0,t.jsx)(u.A,{variant:"secondary",size:"sm",onClick:()=>{let a;return a=e.subdomain,confirm(`Really cancel load test ${a} early?`)&&n().put(`/api/load-testing/${a}/expire`).then(A).catch(N)},children:"Expire"})]})]},e.id))]})]})]})]})})})]})}},68242:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var t=s(77569),i=s.n(t),r=s(75834),l=s(20090),o=s(26514);let n=r.forwardRef(({bsPrefix:e,className:a,striped:s,bordered:t,borderless:r,hover:n,size:d,variant:c,responsive:x,...h},m)=>{let p=(0,l.oU)(e,"table"),u=i()(a,p,c&&`${p}-${c}`,d&&`${p}-${d}`,s&&`${p}-${"string"==typeof s?`striped-${s}`:"striped"}`,t&&`${p}-bordered`,r&&`${p}-borderless`,n&&`${p}-hover`),f=(0,o.jsx)("table",{...h,className:u,ref:m});if(x){let e=`${p}-responsive`;return"string"==typeof x&&(e=`${e}-${x}`),(0,o.jsx)("div",{className:e,children:f})}return f})},69111:(e,a,s)=>{"use strict";s.d(a,{A:()=>t});let t=s(58390).A},71589:(e,a,s)=>{"use strict";s.d(a,{O1:()=>t,Wr:()=>i,sI:()=>r});let t=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(),r=e=>{let a="string"==typeof e?parseFloat(e)||0:e;if(a>1e6){let e=a/1e6,s=l(e);return Math.floor(e)+s+" M"}if(a>1e3){let e=l(a/1e6);return Math.floor(a/1e3)+e+" K"}return a+""},l=e=>{var a=e.toFixed(1).split(".")[1];return"0"==a?"":"."+a}},86149:(e,a,s)=>{"use strict";s.d(a,{A:()=>c});var t=s(77569),i=s.n(t),r=s(75834),l=s(20090),o=s(29372),n=s(26514);let d=r.forwardRef(({bsPrefix:e,className:a,as:s="div",...t},d)=>{let c=(0,l.oU)(e,"card-header"),x=(0,r.useMemo)(()=>({cardHeaderBsPrefix:c}),[c]);return(0,n.jsx)(o.A.Provider,{value:x,children:(0,n.jsx)(s,{ref:d,...t,className:i()(a,c)})})});d.displayName="CardHeader";let c=d},90975:(e,a,s)=>{"use strict";s.d(a,{A:()=>d});var t=s(75834),i=s(77569),r=s.n(i),l=s(20090),o=s(26514);let n=t.forwardRef(({className:e,bsPrefix:a,as:s="div",...t},i)=>(a=(0,l.oU)(a,"card-footer"),(0,o.jsx)(s,{ref:i,className:r()(e,a),...t})));n.displayName="CardFooter";let d=n},94554:(e,a,s)=>{"use strict";s.d(a,{A:()=>v});var t=s(77569),i=s.n(t),r=s(75834),l=s(20090),o=s(26514);let n=r.forwardRef(({className:e,bsPrefix:a,as:s="div",...t},r)=>(a=(0,l.oU)(a,"card-body"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));n.displayName="CardBody";var d=s(90975),c=s(86149);let x=r.forwardRef(({bsPrefix:e,className:a,variant:s,as:t="img",...r},n)=>{let d=(0,l.oU)(e,"card-img");return(0,o.jsx)(t,{ref:n,className:i()(s?`${d}-${s}`:d,a),...r})});x.displayName="CardImg";let h=r.forwardRef(({className:e,bsPrefix:a,as:s="div",...t},r)=>(a=(0,l.oU)(a,"card-img-overlay"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));h.displayName="CardImgOverlay";let m=r.forwardRef(({className:e,bsPrefix:a,as:s="a",...t},r)=>(a=(0,l.oU)(a,"card-link"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));m.displayName="CardLink";var p=s(1388);let u=(0,p.A)("h6"),f=r.forwardRef(({className:e,bsPrefix:a,as:s=u,...t},r)=>
1(a=(0,l.oU)(a,"card-subtitle"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));f.displayName="CardSubtitle";let j=r.forwardRef(({className:e,bsPrefix:a,as:s="p",...t},r)=>(a=(0,l.oU)(a,"card-text"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));j.displayName="CardText";let g=(0,p.A)("h5"),y=r.forwardRef(({className:e,bsPrefix:a,as:s=g,...t},r)=>(a=(0,l.oU)(a,"card-title"),(0,o.jsx)(s,{ref:r,className:i()(e,a),...t})));y.displayName="CardTitle";let b=r.forwardRef(({bsPrefix:e,className:a,bg:s,text:t,border:r,body:d=!1,children:c,as:x="div",...h},m)=>{let p=(0,l.oU)(e,"card");return(0,o.jsx)(x,{ref:m,...h,className:i()(a,p,s&&`bg-${s}`,t&&`text-${t}`,r&&`border-${r}`),children:d?(0,o.jsx)(n,{children:c}):c})});b.displayName="Card";let v=Object.assign(b,{Img:x,Title:y,Subtitle:f,Body:n,Link:m,Text:j,Header:c.A,Footer:d.A,ImgOverlay:h})}},e=>{e.O(0,[9006,3321,2007,636,6593,8792],()=>e(e.s=56263)),_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.