(window.webpackJsonp=window.webpackJsonp||[]).push([[181],{687:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){returng});varo,a=n(0),c=n(2),s=n(6),u=n(1),i=n(3),r=n.n(i),l=n(21),d=n(7),f=n(362),b=n.n(f),m=n(197),j=n(57),p=n(27),O=n(196),g=Object(l.connect)(function(t){return{isSubmitting:t.getIn(["reports","new","isSubmitting"]),account:t.getIn(["mutes","new","account"]),notifications:t.getIn(["mutes","new","notifications"])}},function(n){return{onConfirm:function(t,e){n(Object(p.G)(t.get("id"),e))},onClose:function(){n(Object(j.c)())},onToggleNotifications:function(){n(Object(O.h)())}}})(o=Object(d.g)(o=function(i){functiont(){for(vare,t=arguments.length,n=newArray(t),o=0;o<t;o++)n[o]=arguments[o];returne=i.call.apply(i,[this].concat(n))||this,Object(u.a)(Object(c.a)(e),"handleClick",function(){e.props.onClose(),e.props.onConfirm(e.props.account,e.props.notifications)}),Object(u.a)(Object(c.a)(e),"handleCancel",function(){e.props.onClose()}),Object(u.a)(Object(c.a)(e),"setRef",function(t){e.button=t}),Object(u.a)(Object(c.a)(e),"toggleNotifications",function(){e.props.onToggleNotifications()}),e}Object(s.a)(t,i);vare=t.prototype;returne.componentDidMount=function(){this.button.focus()},e.render=function(){vart=this.props,e=t.account,n=t.notifications;returnObject(a.a)("div",{className:"modal-root__modal mute-modal"},void0,Object(a.a)("div",{className:"mute-modal__container"},void0,Object(a.a)("p",{},void0,Object(a.a)(d.b,{id:"confirmations.mute.message",defaultMessage:"Are you sure you want to mute {name}?",values:{name:Object(a.a)("strong",{},void0,"@",e.get("acct"))}})),Object(a.a)("div",{},void0,Object(a.a)("label",{htmlFor:"mute-modal__hide-notifications-checkbox"},void0,Object(a.a)(d.b,{id:"mute_modal.hide_notifications",defaultMessage:"Hide notifications from this user?"})," ",Object(a.a)(b.a,{id:"mute-modal__hide-notifications-checkbox",checked:n,onChange:this.toggleNotifications})))),Object(a.a)("div",{className:"mute-modal__action-bar"},void0,Object(a.a)(m.a,{onClick:this.handleCancel,className:"mute-modal__cancel-button"},void0,Object(a.a)(d.b,{id:"confirmation_modal.cancel",defaultMessage:"Cancel"})),r.a.createElement(m.a,{onClick:this.handleClick,ref:this.setRef},Object(a.a)(d.b,{id:"confirmations.mute.confirm",defaultMessage:"Mute"}))))},t}(r.a.PureComponent))||o)||o}}]);