2 lines
15 KiB
JavaScript
2 lines
15 KiB
JavaScript
|
webpackJsonp([12],{1013:function(t,n,e){"use strict";var o=e(2),i=e.n(o),r=e(1014),a=e.n(r),s=e(0),c=(e.n(s),e(9)),l=e(158),u=e(7),d=e(1015),h=e(26),p=Object(u.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),f=function(){return function(t,n){return a()(n),{}}},b=function(t,n){var e=n.intl;return{onBlockDomain:function(n){t(Object(h.d)("CONFIRM",{message:i()(u.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:i()("strong",{},void 0,n)}}),confirm:e.formatMessage(p.blockDomainConfirm),onConfirm:function(){return t(Object(l.e)(n))}}))},onUnblockDomain:function(n){t(Object(l.h)(n))}}};n.a=Object(u.g)(Object(c.connect)(f,b)(d.a))},1014:function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")}},1015:function(t,n,e){"use strict";e.d(n,"a",function(){return O});var o,i,r,a=e(2),s=e.n(a),c=e(1),l=e.n(c),u=e(3),d=e.n(u),h=e(4),p=e.n(h),f=e(0),b=(e.n(f),e(5)),v=e.n(b),m=e(23),g=e(7),y=e(12),k=e.n(y),C=Object(g.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),O=Object(g.g)((r=i=function(t){function n(){var e,o,i;l()(this,n);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return e=o=d()(this,t.call.apply(t,[this].concat(a))),o.handleDomainUnblock=function(){o.props.onUnblockDomain(o.props.domain)},i=e,d()(o,i)}return p()(n,t),n.prototype.render=function(){var t=this.props,n=t.domain,e=t.intl;return s()("div",{className:"domain"},void 0,s()("div",{className:"domain__wrapper"},void 0,s()("span",{className:"domain__domain-name"},void 0,s()("strong",{},void 0,n)),s()("div",{className:"domain__buttons"},void 0,s()(m.a,{active:!0,icon:"unlock-alt",title:e.formatMessage(C.unblockDomain,{domain:n}),onClick:this.handleDomainUnblock}))))},n}(k.a),i.propTypes={domain:v.a.string,onUnblockDomain:v.a.func.isRequired,intl:v.a.object.isRequired},o=r))||o},153:function(t,n,e){"use strict";e.d(n,"a",function(){return b});var o=e(2),i=e.n(o),r=e(1),a=e.n(r),s=e(3),c=e.n(s),l=e(4),u=e.n(l),d=e(0),h=e.n(d),p=e(10),f=e.n(p),b=function(t){function n(){var e,o,i;a()(this,n);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return e=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleClick=function(){o.props.onClick()},i=e,c()(o,i)}return u()(n,t),n.prototype.render=function(){var t=this.props,n=t.icon,e=t.type,o=t.active,r=t.columnHeaderId,a="";return n&&(a=i()("i",{className:"fa fa-fw fa-"+n+" column-header__icon"})),i()("h1",{className:f()("column-header",{active:o}),id:r||null},void 0,i()("button",{onClick:this.handleClick},void 0,a,e))},n}(h.a.PureComponent)},283:function(t,n,e){"use strict";e.d(n,"a",function(){return g});var o=e(2),i=e.n(o),r=e(1),a=e.n(r),s=e(3),c=e.n(s),l=e(4),u=e.n(l),d=e(32),h=e.n(d),p=e(0),f=e.n(p),b=e(153),v=e(90),m=e(43),g=function(t){function n(){var e,o,i;a()(this,n);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return e=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleHeaderClick=function(){var t=o.node.querySelector(".scrollable");t&&(o._interruptScrollAnimation=Object(v.b)(t))},o.handleScroll=h()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(t){o.node=t},i=e,c()(o,i)}return u()(n,t),n.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(v.b)(t))},n.prototype.render=function(){var t=this.props,n=t.heading,e=t.icon,o=t.children,r=t.active,a=t.hideHeadingOnMobile,s=n&&(!a||a&&!Object(m.b)(window.innerWidth)),c=s&&n.replace(/ /g,"-"),l=s&&i()(b.a,{icon:e,active:r,type:n,onClick:this.handleHeaderClick,columnHeaderId:c});return f.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,o)},n}(f.a.PureComponent)},284:function(t,n,e){"use strict";e.d(n,"a",fun
|
||
|
//# sourceMappingURL=domain_blocks.js.map
|