mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-28 11:13:57 +00:00
2 lines
3.2 KiB
JavaScript
2 lines
3.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{698:function(n,e,o){"use strict";o.r(e);var a=o(0),i=o(2),c=o(6),r=o(1),t=o(56),s=o.n(t),d=(o(3),o(21)),u=o(26),l=o.n(u),b=o(5),m=o.n(b),f=o(271),p=o(625),j=o(631);var O,h,g,k,v,y,w=o(186),M=o(7),_=o(48),D=o(25),U=Object(M.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),C=Object(M.g)((g=h=function(t){function n(){for(var n,e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o))||this,Object(r.a)(Object(i.a)(n),"handleDomainUnblock",function(){n.props.onUnblockDomain(n.props.domain)}),n}return Object(c.a)(n,t),n.prototype.render=function(){var n=this.props,e=n.domain,o=n.intl;return Object(a.a)("div",{className:"domain"},void 0,Object(a.a)("div",{className:"domain__wrapper"},void 0,Object(a.a)("span",{className:"domain__domain-name"},void 0,Object(a.a)("strong",{},void 0,e)),Object(a.a)("div",{className:"domain__buttons"},void 0,Object(a.a)(_.a,{active:!0,icon:"unlock",title:o.formatMessage(U.unblockDomain,{domain:e}),onClick:this.handleDomainUnblock}))))},n}(D.a),Object(r.a)(h,"propTypes",{domain:m.a.string,onUnblockDomain:m.a.func.isRequired,intl:m.a.object.isRequired}),O=g))||O,R=o(50),q=Object(M.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),N=Object(M.g)(Object(d.connect)(function(){return function(n,e){return function(n){if(null==n)throw new TypeError("Cannot destructure undefined")}(e),{}}},function(e,n){var o=n.intl;return{onBlockDomain:function(n){e(Object(R.d)("CONFIRM",{message:Object(a.a)(M.b,{id:"confirmations.domain_block.message",defaultMessage:"Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",values:{domain:Object(a.a)("strong",{},void 0,n)}}),confirm:o.formatMessage(q.blockDomainConfirm),onConfirm:function(){return e(Object(w.e)(n))}}))},onUnblockDomain:function(n){e(Object(w.h)(n))}}})(C)),A=o(934);o.d(e,"default",function(){return L});var I=Object(M.f)({heading:{id:"column.domain_blocks",defaultMessage:"Hidden domains"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),L=Object(d.connect)(function(n){return{domains:n.getIn(["domain_lists","blocks","items"])}})(k=Object(M.g)((y=v=function(t){function n(){for(var n,e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o))||this,Object(r.a)(Object(i.a)(n),"handleLoadMore",s()(function(){n.props.dispatch(Object(w.f)())},300,{leading:!0})),n}Object(c.a)(n,t);var e=n.prototype;return e.componentWillMount=function(){this.props.dispatch(Object(w.g)())},e.render=function(){var n=this.props,e=n.intl,o=n.domains;return o?Object(a.a)(p.a,{icon:"minus-circle",heading:e.formatMessage(I.heading)},void 0,Object(a.a)(j.a,{}),Object(a.a)(A.a,{scrollKey:"domain_blocks",onLoadMore:this.handleLoadMore},void 0,o.map(function(n){return Object(a.a)(N,{domain:n},n)}))):Object(a.a)(p.a,{},void 0,Object(a.a)(f.a,{}))},n}(D.a),Object(r.a)(v,"propTypes",{params:m.a.object.isRequired,dispatch:m.a.func.isRequired,domains:l.a.list,intl:m.a.object.isRequired}),k=y))||k)||k}}]);
|
|
//# sourceMappingURL=domain_blocks.js.map
|