spc-pleroma/priv/static/packs/features/favourites.js

2 lines
8.4 KiB
JavaScript
Raw Normal View History

webpackJsonp([20],{150:function(t,n,e){"use strict";e.d(n,"a",function(){return h});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),u=e.n(r),s=e(4),l=e.n(s),d=e(0),f=e.n(d),p=e(10),m=e.n(p),h=function(t){function n(){var e,o,i;c()(this,n);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return e=o=u()(this,t.call.apply(t,[this].concat(r))),o.handleClick=function(){o.props.onClick()},i=e,u()(o,i)}return l()(n,t),n.prototype.render=function(){var t=this.props,n=t.icon,e=t.type,o=t.active,a=t.columnHeaderId,c="";return n&&(c=i()("i",{className:"fa fa-fw fa-"+n+" 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))},n}(f.a.PureComponent)},283:function(t,n,e){"use strict";function o(t){return function(n){n({type:a,account:t}),n(Object(i.d)("MUTE"))}}n.a=o;var i=(e(14),e(22),e(15),e(26)),a="MUTES_INIT_MODAL"},284:function(t,n,e){"use strict";e.d(n,"a",function(){return b});var o=e(2),i=e.n(o),a=e(1),c=e.n(a),r=e(3),u=e.n(r),s=e(4),l=e.n(s),d=e(34),f=e.n(d),p=e(0),m=e.n(p),h=e(150),g=e(91),v=e(35),b=function(t){function n(){var e,o,i;c()(this,n);for(var a=arguments.length,r=Array(a),s=0;s<a;s++)r[s]=arguments[s];return e=o=u()(this,t.call.apply(t,[this].concat(r))),o.handleHeaderClick=function(){var t=o.node.querySelector(".scrollable");t&&(o._interruptScrollAnimation=Object(g.b)(t))},o.handleScroll=f()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(t){o.node=t},i=e,u()(o,i)}return l()(n,t),n.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(g.b)(t))},n.prototype.render=function(){var t=this.props,n=t.heading,e=t.icon,o=t.children,a=t.active,c=t.hideHeadingOnMobile,r=n&&(!c||c&&!Object(v.b)(window.innerWidth)),u=r&&n.replace(/ /g,"-"),s=r&&i()(h.a,{icon:e,active:a,type:n,onClick:this.handleHeaderClick,columnHeaderId:u});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":u,className:"column",onScroll:this.handleScroll},s,o)},n}(m.a.PureComponent)},287:function(t,n,e){"use strict";e.d(n,"a",function(){return b});var o,i,a=e(2),c=e.n(a),r=e(1),u=e.n(r),s=e(3),l=e.n(s),d=e(4),f=e.n(d),p=e(0),m=e.n(p),h=e(6),g=e(5),v=e.n(g),b=(i=o=function(t){function n(){var e,o,i;u()(this,n);for(var a=arguments.length,c=Array(a),r=0;r<a;r++)c[r]=arguments[r];return e=o=l()(this,t.call.apply(t,[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()(n,t),n.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"}))},n}(m.a.PureComponent),o.contextTypes={router:v.a.object},i)},818:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"default",function(){return A});var o,i,a,c,r=e(2),u=e.n(r),s=e(1),l=e.n(s),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(13),M=e.n(y),w=e(297),k=e(68),_=e(151),j=e(841),O=e(284),I=e(287),C=e(11),N=e.n(C),q=function(t,n){return{accountIds:t.getIn(["user_lists","favourited_by",n.params.statusId])}},A=(o=Object(g.connect)(q))((c=a=function(t){function n(){return l()(this,n),f()(this,t.apply(this,arguments))}return m()(n,t),n.prototype.componentWillMount=function(){this.props.dispatch(Object(k.j)(this.props.params.statusId))},n.prototype.componentWillReceiveProps=function(t){t.params.statusId!==this.props.params.statusId&&t.params.statusId&&this.props.dispatch(Object(k.j)(t.params.statusId))},n.prototype.render=function(){var t=this.props.accountIds;return t?u()(O.a,{},void 0,u()(I.a,{}),u()(_.a,{scrollKey:"favourites"},void 0,u()("div",{className:"scrollable"},void 0,t.map(function(t){return u()(j.a,{id:t,withNote:!1},t)})))):u()(O.a,{},void 0,u()(w.a,{}))},n}(N.a),a.propTypes={params:b.a.object.isR
//# sourceMappingURL=favourites.js.map