akkoma/priv/static/packs/flavours/glitch/async/lists.js

2 lines
1.5 KiB
JavaScript
Raw Normal View History

2018-09-16 21:17:34 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{662:function(t,e,i){"use strict";i.r(e),i.d(e,"default",function(){return k});var n,a,s,c=i(1),r=i(6),o=i(2),u=(i(3),i(20)),l=i(5),d=i.n(l),b=i(26),p=i.n(b),f=i(288),g=i(639),j=i(643),O=i(29),h=i(7),m=i(24),v=i(916),w=i(917),M=i(961),q=i(57),y=Object(h.f)({heading:{id:"column.lists",defaultMessage:"Lists"},subheading:{id:"lists.subheading",defaultMessage:"Your lists"}}),R=Object(q.a)([function(t){return t.get("lists")}],function(t){return t?t.toList().filter(function(t){return!!t}).sort(function(t,e){return t.get("title").localeCompare(e.get("title"))}):t}),k=Object(u.connect)(function(t){return{lists:R(t)}})(n=Object(h.g)((s=a=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var i=e.prototype;return i.componentWillMount=function(){this.props.dispatch(Object(O.I)())},i.render=function(){var t=this.props,e=t.intl,i=t.lists;return i?Object(c.a)(g.a,{icon:"bars",heading:e.formatMessage(y.heading)},void 0,Object(c.a)(j.a,{}),Object(c.a)(M.a,{}),Object(c.a)("div",{className:"scrollable"},void 0,Object(c.a)(w.a,{text:e.formatMessage(y.subheading)}),i.map(function(t){return Object(c.a)(v.a,{to:"/timelines/list/"+t.get("id"),icon:"list-ul",text:t.get("title")},t.get("id"))}))):Object(c.a)(g.a,{},void 0,Object(c.a)(f.a,{}))},e}(m.a),Object(o.a)(a,"propTypes",{params:d.a.object.isRequired,dispatch:d.a.func.isRequired,lists:p.a.list,intl:d.a.object.isRequired}),n=s))||n)||n}}]);
//# sourceMappingURL=lists.js.map