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

2 lines
9.0 KiB
JavaScript
Raw Normal View History

2018-08-12 09:29:30 -04:00
webpackJsonp([25],{155:function(n,t,e){"use strict";e.d(t,"a",function(){return m});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),l=e.n(r),u=e(4),s=e.n(u),d=e(0),f=e.n(d),p=e(10),h=e.n(p),m=function(n){function t(){var e,o,i;c()(this,t);for(var a=arguments.length,r=Array(a),u=0;u<a;u++)r[u]=arguments[u];return e=o=l()(this,n.call.apply(n,[this].concat(r))),o.handleClick=function(){o.props.onClick()},i=e,l()(o,i)}return s()(t,n),t.prototype.render=function(){var n=this.props,t=n.icon,e=n.type,o=n.active,a=n.columnHeaderId,c="";return t&&(c=i()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),i()("h1",{className:h()("column-header",{active:o}),id:a||null},void 0,i()("button",{onClick:this.handleClick},void 0,c,e))},t}(f.a.PureComponent)},274:function(n,t,e){"use strict";e.d(t,"a",function(){return v});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),l=e.n(r),u=e(4),s=e.n(u),d=e(32),f=e.n(d),p=e(0),h=e.n(p),m=e(155),g=e(91),b=e(43),v=function(n){function t(){var e,o,i;c()(this,t);for(var a=arguments.length,r=Array(a),u=0;u<a;u++)r[u]=arguments[u];return e=o=l()(this,n.call.apply(n,[this].concat(r))),o.handleHeaderClick=function(){var n=o.node.querySelector(".scrollable");n&&(o._interruptScrollAnimation=Object(g.b)(n))},o.handleScroll=f()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(n){o.node=n},i=e,l()(o,i)}return s()(t,n),t.prototype.scrollTop=function(){var n=this.node.querySelector(".scrollable");n&&(this._interruptScrollAnimation=Object(g.b)(n))},t.prototype.render=function(){var n=this.props,t=n.heading,e=n.icon,o=n.children,a=n.active,c=n.hideHeadingOnMobile,r=t&&(!c||c&&!Object(b.b)(window.innerWidth)),l=r&&t.replace(/ /g,"-"),u=r&&i()(m.a,{icon:e,active:a,type:t,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)},t}(h.a.PureComponent)},276:function(n,t,e){"use strict";e.d(t,"a",function(){return v});var o,i,a=e(2),c=e.n(a),r=e(1),l=e.n(r),u=e(3),s=e.n(u),d=e(4),f=e.n(d),p=e(0),h=e.n(p),m=e(7),g=e(5),b=e.n(g),v=(i=o=function(n){function t(){var e,o,i;l()(this,t);for(var a=arguments.length,c=Array(a),r=0;r<a;r++)c[r]=arguments[r];return e=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=e,s()(o,i)}return f()(t,n),t.prototype.render=function(){return c()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,c()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),c()(m.b,{id:"column_back_button.label",defaultMessage:"Back"}))},t}(h.a.PureComponent),o.contextTypes={router:b.a.object},i)},288:function(n,t,e){"use strict";e.d(t,"a",function(){return h});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),l=e.n(r),u=e(4),s=e.n(u),d=e(0),f=(e.n(d),e(7)),p=e(276),h=function(n){function t(){return c()(this,t),l()(this,n.apply(this,arguments))}return s()(t,n),t.prototype.render=function(){return i()("div",{className:"column-back-button--slim"},void 0,i()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,i()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),i()(f.b,{id:"column_back_button.label",defaultMessage:"Back"})))},t}(p.a)},831:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"default",function(){return S});var o,i,a,c,r=e(2),l=e.n(r),u=e(1),s=e.n(u),d=e(3),f=e.n(d),p=e(4),h=e.n(p),m=e(0),g=(e.n(m),e(9)),b=e(14),v=e.n(b),k=e(5),y=e.n(k),M=e(289),w=e(156),_=e(274),j=e(288),O=e(864),C=e(321),N=e(7),q=e(12),I=e.n(q),A=Object(N.f)({heading:{id:"column.blocks",defaultMessage:"Blocked users"}}),R=function(n){return{accountIds:n.getIn(["user_lists","blocks","items"])}},S=(o=Object(g.connect)(R))(i=Object(N.g)((c=a=function(n){function t(){var e,o,i;s()(this,t);for(var a=arguments.length,c=Array(a),r=0;r<a;r++)c[r]=arguments[r];return e=o=f()(this,n.
//# sourceMappingURL=blocks.js.map