pleroma/priv/static/packs/features/blocks-e9605338ea941de78465.js

2 lines
7.6 KiB
JavaScript
Raw Normal View History

2017-11-12 05:23:05 -08:00
webpackJsonp([20],{150:function(n,e,t){"use strict";t.d(e,"a",function(){return p});var o=t(2),i=t.n(o),a=t(1),c=t.n(a),r=t(3),l=t.n(r),u=t(4),s=t.n(u),d=t(0),f=t.n(d),p=function(n){function e(){var t,o,i;c()(this,e);for(var a=arguments.length,r=Array(a),u=0;u<a;u++)r[u]=arguments[u];return t=o=l()(this,n.call.apply(n,[this].concat(r))),o.handleClick=function(){o.props.onClick()},i=t,l()(o,i)}return s()(e,n),e.prototype.render=function(){var n=this.props,e=n.type,t=n.active,o=n.columnHeaderId,a="";return this.props.icon&&(a=i()("i",{className:"fa fa-fw fa-"+this.props.icon+" column-header__icon"})),i()("div",{role:"heading",tabIndex:"0",className:"column-header "+(t?"active":""),onClick:this.handleClick,id:o||null},void 0,a,e)},e}(f.a.PureComponent)},259:function(n,e,t){"use strict";t.d(e,"a",function(){return v});var o=t(2),i=t.n(o),a=t(1),c=t.n(a),r=t(3),l=t.n(r),u=t(4),s=t.n(u),d=t(42),f=t.n(d),p=t(0),h=t.n(p),g=t(150),m=t(91),b=t(33),v=function(n){function e(){var t,o,i;c()(this,e);for(var a=arguments.length,r=Array(a),u=0;u<a;u++)r[u]=arguments[u];return t=o=l()(this,n.call.apply(n,[this].concat(r))),o.handleHeaderClick=function(){var n=o.node.querySelector(".scrollable");n&&(o._interruptScrollAnimation=Object(m.b)(n))},o.handleScroll=f()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(n){o.node=n},i=t,l()(o,i)}return s()(e,n),e.prototype.scrollTop=function(){var n=this.node.querySelector(".scrollable");n&&(this._interruptScrollAnimation=Object(m.b)(n))},e.prototype.render=function(){var n=this.props,e=n.heading,t=n.icon,o=n.children,a=n.active,c=n.hideHeadingOnMobile,r=e&&(!c||c&&!Object(b.b)(window.innerWidth)),l=r&&e.replace(/ /g,"-"),u=r&&i()(g.a,{icon:t,active:a,type:e,onClick:this.handleHeaderClick,columnHeaderId:l});return h.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":l,className:"column",onScroll:this.handleScroll},u,o)},e}(h.a.PureComponent)},272:function(n,e,t){"use strict";t.d(e,"a",function(){return v});var o,i,a=t(2),c=t.n(a),r=t(1),l=t.n(r),u=t(3),s=t.n(u),d=t(4),f=t.n(d),p=t(0),h=t.n(p),g=t(6),m=t(5),b=t.n(m),v=(i=o=function(n){function e(){var t,o,i;l()(this,e);for(var a=arguments.length,c=Array(a),r=0;r<a;r++)c[r]=arguments[r];return t=o=s()(this,n.call.apply(n,[this].concat(c))),o.handleClick=function(){window.history&&1===window.history.length?o.context.router.history.push("/"):o.context.router.history.goBack()},i=t,s()(o,i)}return f()(e,n),e.prototype.render=function(){return c()("div",{className:"column-back-button--slim"},void 0,c()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,c()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),c()(g.b,{id:"column_back_button.label",defaultMessage:"Back"})))},e}(h.a.PureComponent),o.contextTypes={router:b.a.object},i)},770:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),t.d(e,"default",function(){return R});var o,i,a,c,r=t(2),l=t.n(r),u=t(1),s=t.n(u),d=t(3),f=t.n(d),p=t(4),h=t.n(p),g=t(0),m=(t.n(g),t(9)),b=t(12),v=t.n(b),k=t(5),y=t.n(k),w=t(271),j=t(152),O=t(259),M=t(272),_=t(777),C=t(105),I=t(6),q=t(11),N=t.n(q),A=Object(I.f)({heading:{id:"column.blocks",defaultMessage:"Blocked users"}}),S=function(n){return{accountIds:n.getIn(["user_lists","blocks","items"])}},R=(o=Object(m.connect)(S))(i=Object(I.g)((c=a=function(n){function e(){var t,o,i;s()(this,e);for(var a=arguments.length,c=Array(a),r=0;r<a;r++)c[r]=arguments[r];return t=o=f()(this,n.call.apply(n,[this].concat(c))),o.handleScroll=function(n){var e=n.target;e.scrollTop===e.scrollHeight-e.clientHeight&&o.props.dispatch(Object(C.c)())},i=t,f()(o,i)}return h()(e,n),e.prototype.componentWillMount=function(){this.props.dispatch(Object(C.d)())},e.prototype.render=function(){var n=this.props,e=n.intl,t=n.accountIds;return t?l()(O.a,{icon:"ban",heading:e.formatMessage(A.heading)},void 0,l()(M.a,{}),l()(j.a,{scrollKey:"blocks"},void 0,l()("div",{className:"scrollable",onScroll:this.handleScroll},vo
//# sourceMappingURL=blocks-e9605338ea941de78465.js.map