(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{707:function(n,e,a){"use strict";a.r(e);varo=a(1),i=a(6),c=a(0),r=a(2),t=a(54),s=a.n(t),d=(a(3),a(20)),u=a(26),l=a.n(u),b=a(5),m=a.n(b),f=a(290),p=a(640),j=a(644);varO,h,g,k,v,y,w=a(162),M=a(7),_=a(47),D=a(24),U=Object(M.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),C=Object(M.g)((g=h=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(r.a)(Object(c.a)(Object(c.a)(n)),"handleDomainUnblock",function(){n.props.onUnblockDomain(n.props.domain)}),n}returnObject(i.a)(n,t),n.prototype.render=function(){varn=this.props,e=n.domain,a=n.intl;returnObject(o.a)("div",{className:"domain"},void0,Object(o.a)("div",{className:"domain__wrapper"},void0,Object(o.a)("span",{className:"domain__domain-name"},void0,Object(o.a)("strong",{},void0,e)),Object(o.a)("div",{className:"domain__buttons"},void0,Object(o.a)(_.a,{active:!0,icon:"unlock",title:a.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=a(45),q=Object(M.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),N=Object(M.g)(Object(d.connect)(function(){returnfunction(n,e){returnfunction(n){if(null==n)thrownewTypeError("Cannot destructure undefined")}(e),{}}},function(e,n){vara=n.intl;return{onBlockDomain:function(n){e(Object(R.d)("CONFIRM",{message:Object(o.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(o.a)("strong",{},void0,n)}}),confirm:a.formatMessage(q.blockDomainConfirm),onConfirm:function(){returne(Object(w.e)(n))}}))},onUnblockDomain:function(n){e(Object(w.h)(n))}}})(C)),A=a(649);a.d(e,"default",function(){returnL});varI=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){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(r.a)(Object(c.a)(Object(c.a)(n)),"handleLoadMore",s()(function(){n.props.dispatch(Object(w.f)())},300,{leading:!0})),n}Object(i.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;returna?Object(o.a)(p.a,{icon:"minus-circle",heading:e.formatMessage(I.heading)},void0,Object(o.a)(j.a,{}),Object(o.a)(A.a,{scrollKey:"domain_blocks",onLoadMore:this.handleLoadMore},void0,a.map(function(n){returnObject(o.a)(N,{domain:n},n)}))):Object(o.a)(p.a,{},void0,Object(o.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}}]);