akkoma/priv/static/packs/features/follow_requests-281e5b40331385149920.js
2017-11-12 14:23:05 +01:00

2 lines
6.1 KiB
JavaScript

webpackJsonp([18],{150:function(t,n,e){"use strict";e.d(n,"a",function(){return f});var o=e(2),i=e.n(o),r=e(1),c=e.n(r),a=e(3),u=e.n(a),l=e(4),s=e.n(l),d=e(0),h=e.n(d),f=function(t){function n(){var e,o,i;c()(this,n);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return e=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleClick=function(){o.props.onClick()},i=e,u()(o,i)}return s()(n,t),n.prototype.render=function(){var t=this.props,n=t.type,e=t.active,o=t.columnHeaderId,r="";return this.props.icon&&(r=i()("i",{className:"fa fa-fw fa-"+this.props.icon+" column-header__icon"})),i()("div",{role:"heading",tabIndex:"0",className:"column-header "+(e?"active":""),onClick:this.handleClick,id:o||null},void 0,r,n)},n}(h.a.PureComponent)},259:function(t,n,e){"use strict";e.d(n,"a",function(){return _});var o=e(2),i=e.n(o),r=e(1),c=e.n(r),a=e(3),u=e.n(a),l=e(4),s=e.n(l),d=e(42),h=e.n(d),f=e(0),p=e.n(f),v=e(150),m=e(91),b=e(33),_=function(t){function n(){var e,o,i;c()(this,n);for(var r=arguments.length,a=Array(r),l=0;l<r;l++)a[l]=arguments[l];return e=o=u()(this,t.call.apply(t,[this].concat(a))),o.handleHeaderClick=function(){var t=o.node.querySelector(".scrollable");t&&(o._interruptScrollAnimation=Object(m.b)(t))},o.handleScroll=h()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(t){o.node=t},i=e,u()(o,i)}return s()(n,t),n.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(m.b)(t))},n.prototype.render=function(){var t=this.props,n=t.heading,e=t.icon,o=t.children,r=t.active,c=t.hideHeadingOnMobile,a=n&&(!c||c&&!Object(b.b)(window.innerWidth)),u=a&&n.replace(/ /g,"-"),l=a&&i()(v.a,{icon:e,active:r,type:n,onClick:this.handleHeaderClick,columnHeaderId:u});return p.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":u,className:"column",onScroll:this.handleScroll},l,o)},n}(p.a.PureComponent)},272:function(t,n,e){"use strict";e.d(n,"a",function(){return _});var o,i,r=e(2),c=e.n(r),a=e(1),u=e.n(a),l=e(3),s=e.n(l),d=e(4),h=e.n(d),f=e(0),p=e.n(f),v=e(6),m=e(5),b=e.n(m),_=(i=o=function(t){function n(){var e,o,i;u()(this,n);for(var r=arguments.length,c=Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=o=s()(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,s()(o,i)}return h()(n,t),n.prototype.render=function(){return c()("div",{className:"column-back-button--slim"},void 0,c()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,c()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),c()(v.b,{id:"column_back_button.label",defaultMessage:"Back"})))},n}(p.a.PureComponent),o.contextTypes={router:b.a.object},i)},767:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.d(n,"default",function(){return M});var o,i,r,c,a=e(2),u=e.n(a),l=e(1),s=e.n(l),d=e(3),h=e.n(d),f=e(4),p=e.n(f),v=e(0),m=(e.n(v),e(9)),b=e(5),_=e.n(b),y=e(12),g=e.n(y),j=e(271),k=e(152),w=e(259),q=e(272),C=e(899),O=e(22),N=e(6),R=e(11),S=e.n(R),A=Object(N.f)({heading:{id:"column.follow_requests",defaultMessage:"Follow requests"}}),z=function(t){return{accountIds:t.getIn(["user_lists","follow_requests","items"])}},M=(o=Object(m.connect)(z))(i=Object(N.g)((c=r=function(t){function n(){var e,o,i;s()(this,n);for(var r=arguments.length,c=Array(r),a=0;a<r;a++)c[a]=arguments[a];return e=o=h()(this,t.call.apply(t,[this].concat(c))),o.handleScroll=function(t){var n=t.target;n.scrollTop===n.scrollHeight-n.clientHeight&&o.props.dispatch(Object(O.s)())},i=e,h()(o,i)}return p()(n,t),n.prototype.componentWillMount=function(){this.props.dispatch(Object(O.w)())},n.prototype.render=function(){var t=this.props,n=t.intl,e=t.accountIds;return e?u()(w.a,{icon:"users",heading:n.formatMessage(A.heading)},void 0,u()(q.a,{}),u()(k.a,{scrollKey:"follow_requests"},void 0,u()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,e.map(function(t){return u()(C.a,{id:t},t)})))):u()(w.a,{},void 0,u()(j.a,{}))},n}(S.a),r.propTypes={params:_.a.object.isRequired,dispatch:_.a.func.isRequired,accountIds:g.a.list,intl:_.a.object.isRequired},i=c))||i)||i},899:function(t,n,e){"use strict";var o=e(9),i=e(69),r=e(900),c=e(22),a=function(){var t=Object(i.c)();return function(n,e){return{account:t(n,e.id)}}},u=function(t,n){var e=n.id;return{onAuthorize:function(){t(Object(c.q)(e))},onReject:function(){t(Object(c.C)(e))}}};n.a=Object(o.connect)(a,u)(r.a)},900:function(t,n,e){"use strict";e.d(n,"a",function(){return N});var o,i,r,c=e(2),a=e.n(c),u=e(1),l=e.n(u),s=e(3),d=e.n(s),h=e(4),f=e.n(h),p=e(0),v=(e.n(p),e(5)),m=e.n(v),b=e(12),_=e.n(b),y=e(270),g=e(55),j=e(56),k=e(19),w=e(6),q=e(11),C=e.n(q),O=Object(w.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),N=Object(w.g)((r=i=function(t){function n(){return l()(this,n),d()(this,t.apply(this,arguments))}return f()(n,t),n.prototype.render=function(){var t=this.props,n=t.intl,e=t.account,o=t.onAuthorize,i=t.onReject,r={__html:e.get("note_emojified")};return a()("div",{className:"account-authorize__wrapper"},void 0,a()("div",{className:"account-authorize"},void 0,a()(y.a,{href:e.get("url"),to:"/accounts/"+e.get("id"),className:"detailed-status__display-name"},void 0,a()("div",{className:"account-authorize__avatar"},void 0,a()(g.a,{account:e,size:48})),a()(j.a,{account:e})),a()("div",{className:"account__header__content",dangerouslySetInnerHTML:r})),a()("div",{className:"account--panel"},void 0,a()("div",{className:"account--panel__button"},void 0,a()(k.a,{title:n.formatMessage(O.authorize),icon:"check",onClick:o})),a()("div",{className:"account--panel__button"},void 0,a()(k.a,{title:n.formatMessage(O.reject),icon:"times",onClick:i}))))},n}(C.a),i.propTypes={account:_.a.map.isRequired,onAuthorize:m.a.func.isRequired,onReject:m.a.func.isRequired,intl:m.a.object.isRequired},o=r))||o}});
//# sourceMappingURL=follow_requests-281e5b40331385149920.js.map