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

2 lines
8.2 KiB
JavaScript
Raw Normal View History

2018-08-12 13:29:30 +00:00
webpackJsonp([27],{155: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),s=e.n(r),u=e(4),l=e.n(u),d=e(0),f=e.n(d),p=e(10),m=e.n(p),h=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=s()(this,n.call.apply(n,[this].concat(r))),o.handleClick=function(){o.props.onClick()},i=e,s()(o,i)}return l()(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:m()("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 b});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),s=e.n(r),u=e(4),l=e.n(u),d=e(32),f=e.n(d),p=e(0),m=e.n(p),h=e(155),g=e(91),v=e(43),b=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=s()(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,s()(o,i)}return l()(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(v.b)(window.innerWidth)),s=r&&t.replace(/ /g,"-"),u=r&&i()(h.a,{icon:e,active:a,type:t,onClick:this.handleHeaderClick,columnHeaderId:s});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":s,className:"column",onScroll:this.handleScroll},u,o)},t}(m.a.PureComponent)},276:function(n,t,e){"use strict";e.d(t,"a",function(){return b});var o,i,a=e(2),c=e.n(a),r=e(1),s=e.n(r),u=e(3),l=e.n(u),d=e(4),f=e.n(d),p=e(0),m=e.n(p),h=e(7),g=e(5),v=e.n(g),b=(i=o=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=l()(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,l()(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()(h.b,{id:"column_back_button.label",defaultMessage:"Back"}))},t}(m.a.PureComponent),o.contextTypes={router:v.a.object},i)},827:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"default",function(){return R});var o,i,a,c,r=e(2),s=e.n(r),u=e(1),l=e.n(u),d=e(3),f=e.n(d),p=e(4),m=e.n(p),h=e(0),g=(e.n(h),e(9)),v=e(5),b=e.n(v),y=e(14),w=e.n(y),k=e(289),M=e(68),_=e(156),j=e(864),O=e(274),C=e(276),I=e(12),N=e.n(I),q=function(n,t){return{accountIds:n.getIn(["user_lists","favourited_by",t.params.statusId])}},R=(o=Object(g.connect)(q))((c=a=function(n){function t(){return l()(this,t),f()(this,n.apply(this,arguments))}return m()(t,n),t.prototype.componentWillMount=function(){this.props.dispatch(Object(M.l)(this.props.params.statusId))},t.prototype.componentWillReceiveProps=function(n){n.params.statusId!==this.props.params.statusId&&n.params.statusId&&this.props.dispatch(Object(M.l)(n.params.statusId))},t.prototype.render=function(){var n=this.props.accountIds;return n?s()(O.a,{},void 0,s()(C.a,{}),s()(_.a,{scrollKey:"favourites"},void 0,s()("div",{className:"scrollable"},void 0,n.map(function(n){return s()(j.a,{id:n,withNote:!1},n)})))):s()(O.a,{},void 0,s()(k.a,{}))},t}(N.a),a.propTypes={params:b.a.object.isRequired,dispatch:b.a.func.isRequired,accountIds:w.a.list},i=c))||i},864:function(n,t,e){"use strict";var o=e(2),i=e.n(o),a=e(0),c=(e.n(a),e(9)),r=e(7),s=e(67),u=e(865),l=e(
//# sourceMappingURL=favourites.js.map