(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{719:function(n,e,a){"use strict";a.r(e);varo,t,i,c,r,d,s=a(1),l=a(6),u=a(0),b=a(2),m=a(54),f=a.n(m),p=(a(3),a(20)),j=a(7),O=a(24),h=a(5),g=a.n(h),k=a(26),v=a.n(k),y=a(291),M=a(641),_=a(645),w=a(164),D=a(64),U=Object(j.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),R=Object(j.g)((i=t=function(t){functionn(){for(varn,e=arguments.length,a=newArray(e),o=0;o<e;o++)a[o]=arguments[o];returnn=t.call.apply(t,[this].concat(a))||this,Object(b.a)(Object(u.a)(Object(u.a)(n)),"handleDomainUnblock",function(){n.props.onUnblockDomain(n.props.domain)}),n}returnObject(l.a)(n,t),n.prototype.render=function(){varn=this.props,e=n.domain,a=n.intl;returnObject(s.a)("div",{className:"domain"},void0,Object(s.a)("div",{className:"domain__wrapper"},void0,Object(s.a)("span",{className:"domain__domain-name"},void0,Object(s.a)("strong",{},void0,e)),Object(s.a)("div",{className:"domain__buttons"},void0,Object(s.a)(D.a,{active:!0,icon:"unlock",title:a.formatMessage(U.unblockDomain,{domain:e}),onClick:this.handleDomainUnblock}))))},n}(O.a),Object(b.a)(t,"propTypes",{domain:g.a.string,onUnblockDomain:g.a.func.isRequired,intl:g.a.object.isRequired}),o=i))||o,q=a(50),C=Object(j.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),N=Object(j.g)(Object(p.connect)(function(){returnfunction(){return{}}},function(e,n){vara=n.intl;return{onBlockDomain:function(n){e(Object(q.d)("CONFIRM",{message:Object(s.a)(j.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(s.a)("strong",{},void0,n)}}),confirm:a.formatMessage(C.blockDomainConfirm),onConfirm:function(){returne(Object(w.e)(n))}}))},onUnblockDomain:function(n){e(Object(w.h)(n))}}})(R)),S=a(642);a.d(e,"default",function(){returnI});varA=Object(j.f)({heading:{id:"column.domain_blocks",defaultMessage:"Hidden domains"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),I=Object(p.connect)(function(n){return{domains:n.getIn(["domain_lists","blocks","items"])}})(c=Object(j.g)((d=r=function(t){functionn(){for(varn,e=arguments.length,a=newArray(e),o=0;o<e;o++)a[o]=arguments[o];returnn=t.call.apply(t,[this].concat(a))||this,Object(b.a)(Object(u.a)(Object(u.a)(n)),"handleLoadMore",f()(function(){n.props.dispatch(Object(w.f)())},300,{leading:!0})),n}Object(l.a)(n,t);vare=n.prototype;returne.componentWillMount=function(){this.props.dispatch(Object(w.g)())},e.render=function(){varn=this.props,e=n.intl,a=n.domains,o=n.shouldUpdateScroll;if(!a)returnObject(s.a)(M.a,{},void0,Object(s.a)(y.a,{}));vart=Object(s.a)(j.b,{id:"empty_column.domain_blocks",defaultMessage:"There are no hidden domains yet."});returnObject(s.a)(M.a,{icon:"minus-circle",heading:e.formatMessage(A.heading)},void0,Object(s.a)(_.a,{}),Object(s.a)(S.a,{scrollKey:"domain_blocks",onLoadMore:this.handleLoadMore,shouldUpdateScroll:o,emptyMessage:t},void0,a.map(function(n){returnObject(s.a)(N,{domain:n},n)})))},n}(O.a),Object(b.a)(r,"propTypes",{params:g.a.object.isRequired,dispatch:g.a.func.isRequired,shouldUpdateScroll:g.a.func,domains:v.a.orderedSet,intl:g.a.object.isRequired}),c=d))||c)||c}}]);