(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1032:function(o,e,a){"use strict";a.r(e),a.d(e,"default",(function(){return R}));var n,i,t=a(0),s=a(29),c=a.n(s),d=(a(1),a(12)),r=a(4),l=a(18),m=a(3),b=a.n(m),u=a(16),p=a.n(u),j=a(281),k=a(957),f=a(962),O=a(76),h=a(32);const g=Object(r.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unblock domain {domain}"}});let M=Object(r.g)(((i=class extends l.a{constructor(){super(...arguments),this.handleDomainUnblock=()=>{this.props.onUnblockDomain(this.props.domain)}}render(){const{domain:o,intl:e}=this.props;return Object(t.a)("div",{className:"domain"},void 0,Object(t.a)("div",{className:"domain__wrapper"},void 0,Object(t.a)("span",{className:"domain__domain-name"},void 0,Object(t.a)("strong",{},void 0,o)),Object(t.a)("div",{className:"domain__buttons"},void 0,Object(t.a)(h.a,{active:!0,icon:"unlock",title:e.formatMessage(g.unblockDomain,{domain:o}),onClick:this.handleDomainUnblock}))))}}).propTypes={domain:b.a.string,onUnblockDomain:b.a.func.isRequired,intl:b.a.object.isRequired},n=i))||n;var v=a(35);const _=Object(r.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Block entire domain"}});var D,y,w=Object(r.g)(Object(d.connect)((()=>()=>({})),((o,e)=>{let{intl:a}=e;return{onBlockDomain(e){o(Object(v.d)("CONFIRM",{message:Object(t.a)(r.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(t.a)("strong",{},void 0,e)}}),confirm:a.formatMessage(_.blockDomainConfirm),onConfirm:()=>o(Object(O.e)(e))}))},onUnblockDomain(e){o(Object(O.h)(e))}}}))(M)),C=a(1296);const U=Object(r.f)({heading:{id:"column.domain_blocks",defaultMessage:"Blocked domains"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unblock domain {domain}"}});let R=Object(d.connect)((o=>({domains:o.getIn(["domain_lists","blocks","items"]),hasMore:!!o.getIn(["domain_lists","blocks","next"])})))(D=Object(r.g)(((y=class extends l.a{constructor(){super(...arguments),this.handleLoadMore=c()((()=>{this.props.dispatch(Object(O.f)())}),300,{leading:!0})}componentWillMount(){this.props.dispatch(Object(O.g)())}render(){const{intl:o,domains:e,hasMore:a,multiColumn:n}=this.props;if(!e)return Object(t.a)(k.a,{},void 0,Object(t.a)(j.b,{}));const i=Object(t.a)(r.b,{id:"empty_column.domain_blocks",defaultMessage:"There are no blocked domains yet."});return Object(t.a)(k.a,{bindToDocument:!n,icon:"minus-circle",heading:o.formatMessage(U.heading)},void 0,Object(t.a)(f.a,{}),Object(t.a)(C.a,{scrollKey:"domain_blocks",onLoadMore:this.handleLoadMore,hasMore:a,emptyMessage:i,bindToDocument:!n},void 0,e.map((o=>Object(t.a)(w,{domain:o},o)))))}}).propTypes={params:b.a.object.isRequired,dispatch:b.a.func.isRequired,hasMore:b.a.bool,domains:p.a.orderedSet,intl:b.a.object.isRequired,multiColumn:b.a.bool},D=y))||D)||D}}]);
//# sourceMappingURL=domain_blocks-d462452063205ce39382.chunk.js.map