akkoma/priv/static/packs/features/domain_blocks.js

2 lines
15 KiB
JavaScript
Raw Normal View History

2018-08-12 07:29:30 -06:00
webpackJsonp([12],{1004:function(t,e,n){"use strict";var o=n(2),i=n.n(o),r=n(1005),a=n.n(r),s=n(0),c=(n.n(s),n(9)),l=n(160),u=n(7),d=n(1006),h=n(26),p=Object(u.f)({blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),f=function(){return function(t,e){return a()(e),{}}},b=function(t,e){var n=e.intl;return{onBlockDomain:function(e){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,e)}}),confirm:n.formatMessage(p.blockDomainConfirm),onConfirm:function(){return t(Object(l.e)(e))}}))},onUnblockDomain:function(e){t(Object(l.h)(e))}}};e.a=Object(u.g)(Object(c.connect)(f,b)(d.a))},1005:function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")}},1006:function(t,e,n){"use strict";n.d(e,"a",function(){return O});var o,i,r,a=n(2),s=n.n(a),c=n(1),l=n.n(c),u=n(3),d=n.n(u),h=n(4),p=n.n(h),f=n(0),b=(n.n(f),n(5)),v=n.n(b),m=n(23),g=n(7),y=n(12),k=n.n(y),C=Object(g.f)({unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"}}),O=Object(g.g)((r=i=function(t){function e(){var n,o,i;l()(this,e);for(var r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=o=d()(this,t.call.apply(t,[this].concat(a))),o.handleDomainUnblock=function(){o.props.onUnblockDomain(o.props.domain)},i=n,d()(o,i)}return p()(e,t),e.prototype.render=function(){var t=this.props,e=t.domain,n=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,e)),s()("div",{className:"domain__buttons"},void 0,s()(m.a,{active:!0,icon:"unlock-alt",title:n.formatMessage(C.unblockDomain,{domain:e}),onClick:this.handleDomainUnblock}))))},e}(k.a),i.propTypes={domain:v.a.string,onUnblockDomain:v.a.func.isRequired,intl:v.a.object.isRequired},o=r))||o},155:function(t,e,n){"use strict";n.d(e,"a",function(){return b});var o=n(2),i=n.n(o),r=n(1),a=n.n(r),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),h=n.n(d),p=n(10),f=n.n(p),b=function(t){function e(){var n,o,i;a()(this,e);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleClick=function(){o.props.onClick()},i=n,c()(o,i)}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.icon,n=t.type,o=t.active,r=t.columnHeaderId,a="";return e&&(a=i()("i",{className:"fa fa-fw fa-"+e+" column-header__icon"})),i()("h1",{className:f()("column-header",{active:o}),id:r||null},void 0,i()("button",{onClick:this.handleClick},void 0,a,n))},e}(h.a.PureComponent)},274:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var o=n(2),i=n.n(o),r=n(1),a=n.n(r),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(32),h=n.n(d),p=n(0),f=n.n(p),b=n(155),v=n(91),m=n(43),g=function(t){function e(){var n,o,i;a()(this,e);for(var r=arguments.length,s=Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=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=n,c()(o,i)}return u()(e,t),e.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(v.b)(t))},e.prototype.render=function(){var t=this.props,e=t.heading,n=t.icon,o=t.children,r=t.active,a=t.hideHeadingOnMobile,s=e&&(!a||a&&!Object(m.b)(window.innerWidth)),c=s&&e.replace(/ /g,"-"),l=s&&i()(b.a,{icon:n,active:r,type:e,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)},e}(f.a.PureComponent)},275:function(t,e,n){"use strict";n.d(e,"a",fun
//# sourceMappingURL=domain_blocks.js.map