akkoma/priv/static/packs/features/account_gallery-b13924812f8dd47200c2.js

2 lines
18 KiB
JavaScript
Raw Normal View History

2017-11-12 13:23:05 +00:00
webpackJsonp([16],{150:function(e,n,o){"use strict";o.d(n,"a",function(){return f});var t=o(2),a=o.n(t),i=o(1),r=o.n(i),s=o(3),c=o.n(s),l=o(4),u=o.n(l),d=o(0),p=o.n(d),f=function(e){function n(){var o,t,a;r()(this,n);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return o=t=c()(this,e.call.apply(e,[this].concat(s))),t.handleClick=function(){t.props.onClick()},a=o,c()(t,a)}return u()(n,e),n.prototype.render=function(){var e=this.props,n=e.type,o=e.active,t=e.columnHeaderId,i="";return this.props.icon&&(i=a()("i",{className:"fa fa-fw fa-"+this.props.icon+" column-header__icon"})),a()("div",{role:"heading",tabIndex:"0",className:"column-header "+(o?"active":""),onClick:this.handleClick,id:t||null},void 0,i,n)},n}(p.a.PureComponent)},259:function(e,n,o){"use strict";o.d(n,"a",function(){return b});var t=o(2),a=o.n(t),i=o(1),r=o.n(i),s=o(3),c=o.n(s),l=o(4),u=o.n(l),d=o(42),p=o.n(d),f=o(0),m=o.n(f),h=o(150),g=o(91),v=o(33),b=function(e){function n(){var o,t,a;r()(this,n);for(var i=arguments.length,s=Array(i),l=0;l<i;l++)s[l]=arguments[l];return o=t=c()(this,e.call.apply(e,[this].concat(s))),t.handleHeaderClick=function(){var e=t.node.querySelector(".scrollable");e&&(t._interruptScrollAnimation=Object(g.b)(e))},t.handleScroll=p()(function(){void 0!==t._interruptScrollAnimation&&t._interruptScrollAnimation()},200),t.setRef=function(e){t.node=e},a=o,c()(t,a)}return u()(n,e),n.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(g.b)(e))},n.prototype.render=function(){var e=this.props,n=e.heading,o=e.icon,t=e.children,i=e.active,r=e.hideHeadingOnMobile,s=n&&(!r||r&&!Object(v.b)(window.innerWidth)),c=s&&n.replace(/ /g,"-"),l=s&&a()(h.a,{icon:o,active:i,type:n,onClick:this.handleHeaderClick,columnHeaderId:c});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,t)},n}(m.a.PureComponent)},260:function(e,n,o){"use strict";o.d(n,"a",function(){return g});var t,a,i=o(2),r=o.n(i),s=o(1),c=o.n(s),l=o(3),u=o.n(l),d=o(4),p=o.n(d),f=o(0),m=o.n(f),h=o(6),g=(a=t=function(e){function n(){return c()(this,n),u()(this,e.apply(this,arguments))}return p()(n,e),n.prototype.render=function(){var e=this.props.visible;return r()("button",{className:"load-more",disabled:!e,style:{visibility:e?"visible":"hidden"},onClick:this.props.onClick},void 0,r()(h.b,{id:"status.load_more",defaultMessage:"Load more"}))},n}(m.a.PureComponent),t.defaultProps={visible:!0},a)},762:function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),o.d(n,"default",function(){return x});var t,a,i,r,s=o(2),c=o.n(s),l=o(1),u=o.n(l),d=o(3),p=o.n(d),f=o(4),m=o.n(f),h=o(0),g=(o.n(h),o(9)),v=o(12),b=o.n(v),M=o(5),_=o.n(M),y=o(22),k=o(16),w=o(271),O=o(259),I=o(779),j=o(11),C=o.n(j),N=o(69),R=o(898),B=o(781),D=o(6),S=o(152),q=o(260),F=function(e,n){return{medias:Object(N.a)(e,n.params.accountId),isLoading:e.getIn(["timelines","account:"+n.params.accountId+":media","isLoading"]),hasMore:!!e.getIn(["timelines","account:"+n.params.accountId+":media","next"])}},x=(t=Object(g.connect)(F))((r=i=function(e){function n(){var o,t,a;u()(this,n);for(var i=arguments.length,r=Array(i),s=0;s<i;s++)r[s]=arguments[s];return o=t=p()(this,e.call.apply(e,[this].concat(r))),t.handleScrollToBottom=function(){t.props.hasMore&&t.props.dispatch(Object(k.p)(t.props.params.accountId))},t.handleScroll=function(e){var n=e.target,o=n.scrollTop;150>n.scrollHeight-o-n.clientHeight&&!t.props.isLoading&&t.handleScrollToBottom()},t.handleLoadMore=function(e){e.preventDefault(),t.handleScrollToBottom()},a=o,p()(t,a)}return m()(n,e),n.prototype.componentDidMount=function(){this.props.dispatch(Object(y.v)(this.props.params.accountId)),this.props.dispatch(Object(k.v)(this.props.params.accountId))},n.prototype.componentWillReceiveProps=function(e){e.params.accountId!==this.props.params.accountId&&e.params.accountId&&(this.props.dispatch(Object(y.v)(e.params.accountId)),this.props.dispatch(Object(k.v)(this.props.params.accountId)))},n.prototype.ren
//# sourceMappingURL=account_gallery-b13924812f8dd47200c2.js.map