1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f7ab9f7a-673f-5974-a1c3-aed71a40424c")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41553],{74060:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/blockInvites",function(){return s(81232)}])},81232:function(e,t,s){"use strict";s.r(t);var n=s(85893),r=s(67294),i=s(41484),c=s(41219),o=s(40551),l=s(93117),a=s(92444),d=s(56989),u=s(8164),h=s.n(u),p=s(65360),m=s.n(p),b=s(50724);let f=["blockSenderEmails","common"];class k extends r.Component{static async getInitialProps(){return{namespacesRequired:f,name:"BlockSenderEmails"}}render(){let{t:e}=this.props,{success:t,error:s,processing:r}=this.state,i=(0,a.D)({title:e("blockSender"),description:e("metaDescription")});return(0,n.jsxs)("div",{className:h().container+" "+h().contentPadding,children:[i,(0,n.jsx)("h2",{className:m().pageTitle,children:e("blockSender")}),!t&&!s&&(0,n.jsx)("p",{children:e("metaDescription")}),t&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:e("blockedSuccess")}),(0,n.jsx)("p",{children:"\xa0"}),(0,n.jsx)("p",{children:e("common:cheersComma")}),(0,n.jsx)("br",{}),(0,n.jsx)("p",{children:e("common:osTeam")})]}),s&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:(0,d.prettifyErrorMessage)(e,s)}),(0,n.jsx)("p",{children:(0,n.jsx)(b.Z,{})})]}),!t&&(0,n.jsx)(c.Z,{disabled:r,isLoading:r,className:"btn btn-primary",onClick:this._blockSender,children:e("blockSender")})]})}constructor(e){super(e),this._blockSenderWithData=e=>{this.setState({processing:!0,error:null}),(0,o.f)(e).then(()=>this.setState({success:!0,processing:!1})).catch(e=>{this.setState({error:e,processing:!1}),(0,l.OO)(e,"unable to block sender")})},this._blockSender=()=>{let{query:{c:e,emailIdentifier:t,userID:s}}=this.props.router;if(e)this._blockSenderWithData({accessCode:e});else if(t&&s)this._blockSenderWithData({emailIdentifier:t,userID:parseInt(s,10)});else{let e=Error(this.props.t("invalidLink"));this.setState({error:e}),(0,l.OO)(e,"_blockSender no access code")}};let{query:{c:t,emailIdentifier:s,userID:n}}=e.router;this.state={processing:!1,error:t||s&&n?null:Error(e.t("invalidLink")),success:!1}}}t.default=(0,i.Zh)(f)(k)},50724:function(e,t,s){"use strict";s.d(t,{Z:function(){return i}});var n=s(85893);s(67294);var r=s(41484);function i(){let e="[email protected]";return(0,n.jsx)(r.cC,{i18nKey:"common:tryAgainOrEmailSupport",values:{email:e},components:{1:(0,n.jsx)("a",{href:"mailto:".concat(e)})},children:"Please try again or email <1>{{email}}</1> for assistance."})}},40551:function(e,t,s){"use strict";s.d(t,{f:function(){return r},r:function(){return i}});let n=new(s(88835)).ApiClient,r=e=>new Promise((t,s)=>{n.post("blockSenderEmails",{data:e}).then(t).catch(s)}),i=e=>new Promise((t,s)=>{n.post("emailNotifications/unsubscribe",{data:e}).then(t).catch(s)})}},function(e){e.O(0,[92888,49774,40179],function(){return e(e.s=74060)}),_N_E=e.O()}]); 4//# sourceMappingURL=blockInvites-1a04aa48862cc0e9.js.map 5//# debugId=f7ab9f7a-673f-5974-a1c3-aed71a40424c
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.