Pleroma/priv/static/packs/flavours/glitch/async/mute_modal.js

2 lines
2.3 KiB
JavaScript
Raw Normal View History

2019-06-26 21:06:28 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{669: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(82),j=n(50),p=n(23),O=n(134),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.N)(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}}]);
2018-09-16 23:17:34 +02:00
//# sourceMappingURL=mute_modal.js.map