Merge branch 'release-docs' into 'develop'
[akkoma] / priv / static / packs / modals / mute_modal.js
index cc6eb2a632816f7a0cdf7ba4da65bc0a83885cf5..f8267166d3d8b07319c8c2e97ae0a00f719855b2 100644 (file)
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{716:function(n,o,t){"use strict";t.r(o),t.d(o,"default",function(){return k});var i,e=t(0),a=t.n(e),c=t(6),s=t.n(c),u=t(3),r=t.n(u),l=t(7),d=t.n(l),f=t(1),m=t.n(f),p=t(12),h=t(4),g=t(199),b=t.n(g),v=t(79),C=t(21),_=t(13),w=t(45),k=Object(p.connect)(function(n){return{isSubmitting:n.getIn(["reports","new","isSubmitting"]),account:n.getIn(["mutes","new","account"]),notifications:n.getIn(["mutes","new","notifications"])}},function(n){return{onConfirm:function(o,t){n(Object(_.C)(o.get("id"),t))},onClose:function(){n(Object(C.c)())},onToggleNotifications:function(){n(Object(w.h)())}}})(i=Object(h.g)(i=function(n){function o(){var t,i,e;s()(this,o);for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return t=i=r()(this,n.call.apply(n,[this].concat(c))),i.handleClick=function(){i.props.onClose(),i.props.onConfirm(i.props.account,i.props.notifications)},i.handleCancel=function(){i.props.onClose()},i.setRef=function(n){i.button=n},i.toggleNotifications=function(){i.props.onToggleNotifications()},e=t,r()(i,e)}return d()(o,n),o.prototype.componentDidMount=function(){this.button.focus()},o.prototype.render=function(){var n=this.props,o=n.account,t=n.notifications;return a()("div",{className:"modal-root__modal mute-modal"},void 0,a()("div",{className:"mute-modal__container"},void 0,a()("p",{},void 0,a()(h.b,{id:"confirmations.mute.message",defaultMessage:"Are you sure you want to mute {name}?",values:{name:a()("strong",{},void 0,"@",o.get("acct"))}})),a()("div",{},void 0,a()("label",{htmlFor:"mute-modal__hide-notifications-checkbox"},void 0,a()(h.b,{id:"mute_modal.hide_notifications",defaultMessage:"Hide notifications from this user?"})," ",a()(b.a,{id:"mute-modal__hide-notifications-checkbox",checked:t,onChange:this.toggleNotifications})))),a()("div",{className:"mute-modal__action-bar"},void 0,a()(v.a,{onClick:this.handleCancel,className:"mute-modal__cancel-button"},void 0,a()(h.b,{id:"confirmation_modal.cancel",defaultMessage:"Cancel"})),m.a.createElement(v.a,{onClick:this.handleClick,ref:this.setRef},a()(h.b,{id:"confirmations.mute.confirm",defaultMessage:"Mute"}))))},o}(m.a.PureComponent))||i)||i}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[181],{687:function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return g});var o,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){function t(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e=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);var e=t.prototype;return e.componentDidMount=function(){this.button.focus()},e.render=function(){var t=this.props,e=t.account,n=t.notifications;return Object(a.a)("div",{className:"modal-root__modal mute-modal"},void 0,Object(a.a)("div",{className:"mute-modal__container"},void 0,Object(a.a)("p",{},void 0,Object(a.a)(d.b,{id:"confirmations.mute.message",defaultMessage:"Are you sure you want to mute {name}?",values:{name:Object(a.a)("strong",{},void 0,"@",e.get("acct"))}})),Object(a.a)("div",{},void 0,Object(a.a)("label",{htmlFor:"mute-modal__hide-notifications-checkbox"},void 0,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"},void 0,Object(a.a)(m.a,{onClick:this.handleCancel,className:"mute-modal__cancel-button"},void 0,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}}]);
 //# sourceMappingURL=mute_modal.js.map
\ No newline at end of file