pleroma/priv/static/packs/features/reblogs-e284a8647e830c151a4...

2 lines
7.3 KiB
JavaScript
Raw Normal View History

2017-11-12 13:23:05 +00:00
webpackJsonp([21],{150:function(n,t,e){"use strict";e.d(t,"a",function(){return f});var o=e(2),a=e.n(o),i=e(1),r=e.n(i),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(0),p=e.n(d),f=function(n){function t(){var e,o,a;r()(this,t);for(var i=arguments.length,c=Array(i),s=0;s<i;s++)c[s]=arguments[s];return e=o=l()(this,n.call.apply(n,[this].concat(c))),o.handleClick=function(){o.props.onClick()},a=e,l()(o,a)}return u()(t,n),t.prototype.render=function(){var n=this.props,t=n.type,e=n.active,o=n.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 "+(e?"active":""),onClick:this.handleClick,id:o||null},void 0,i,t)},t}(p.a.PureComponent)},259:function(n,t,e){"use strict";e.d(t,"a",function(){return b});var o=e(2),a=e.n(o),i=e(1),r=e.n(i),c=e(3),l=e.n(c),s=e(4),u=e.n(s),d=e(42),p=e.n(d),f=e(0),h=e.n(f),m=e(150),g=e(91),v=e(33),b=function(n){function t(){var e,o,a;r()(this,t);for(var i=arguments.length,c=Array(i),s=0;s<i;s++)c[s]=arguments[s];return e=o=l()(this,n.call.apply(n,[this].concat(c))),o.handleHeaderClick=function(){var n=o.node.querySelector(".scrollable");n&&(o._interruptScrollAnimation=Object(g.b)(n))},o.handleScroll=p()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(n){o.node=n},a=e,l()(o,a)}return u()(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,i=n.active,r=n.hideHeadingOnMobile,c=t&&(!r||r&&!Object(v.b)(window.innerWidth)),l=c&&t.replace(/ /g,"-"),s=c&&a()(m.a,{icon:e,active:i,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},s,o)},t}(h.a.PureComponent)},765:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"default",function(){return A});var o,a,i,r,c=e(2),l=e.n(c),s=e(1),u=e.n(s),d=e(3),p=e.n(d),f=e(4),h=e.n(f),m=e(0),g=(e.n(m),e(9)),v=e(5),b=e.n(v),y=e(12),w=e.n(y),k=e(271),j=e(43),O=e(152),_=e(777),I=e(259),M=e(779),C=e(11),q=e.n(C),N=function(n,t){return{accountIds:n.getIn(["user_lists","reblogged_by",t.params.statusId])}},A=(o=Object(g.connect)(N))((r=i=function(n){function t(){return u()(this,t),p()(this,n.apply(this,arguments))}return h()(t,n),t.prototype.componentWillMount=function(){this.props.dispatch(Object(j.o)(this.props.params.statusId))},t.prototype.componentWillReceiveProps=function(n){n.params.statusId!==this.props.params.statusId&&n.params.statusId&&this.props.dispatch(Object(j.o)(n.params.statusId))},t.prototype.render=function(){var n=this.props.accountIds;return n?l()(I.a,{},void 0,l()(M.a,{}),l()(O.a,{scrollKey:"reblogs"},void 0,l()("div",{className:"scrollable reblogs"},void 0,n.map(function(n){return l()(_.a,{id:n,withNote:!1},n)})))):l()(I.a,{},void 0,l()(k.a,{}))},t}(q.a),i.propTypes={params:b.a.object.isRequired,dispatch:b.a.func.isRequired,accountIds:w.a.list},a=r))||a},777:function(n,t,e){"use strict";var o=e(2),a=e.n(o),i=e(0),r=(e.n(i),e(9)),c=e(6),l=e(69),s=e(778),u=e(22),d=e(31),p=e(18),f=Object(c.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"}}),h=function(){var n=Object(l.c)();return function(t,e){return{account:n(t,e.id)}}},m=function(n,t){var e=t.intl;return{onFollow:function(t){n(t.getIn(["relationship","following"])||t.getIn(["relationship","requested"])?p.g?Object(d.d)("CONFIRM",{message:a()(c.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:e.formatMessage(f.unfollowConfirm),onConfirm:function(){return n(Object(u.E)(t.get("id")))}}):Object(u.E)(t.get("id")):Object(u.A)(t.get("id")))},onBlock:function(t){n(t.getIn(["relationship","blocking"])?Object(u.D)(t.get("id")):Object(u.r)(t.get("id")))},onMute:function(t){n(t
//# sourceMappingURL=reblogs-e284a8647e830c151a40.js.map