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

2 lines
1.6 KiB
JavaScript
Raw Normal View History

2020-01-22 08:00:23 -07:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{697:function(t,e,i){"use strict";i.r(e),i.d(e,"default",function(){return x});var n,s,a,o=i(0),r=i(7),c=i(1),u=(i(3),i(12)),l=i(5),d=i.n(l),b=i(18),p=i.n(b),f=i(293),g=i(662),j=i(668),h=i(29),O=i(6),m=i(19),y=i(1019),v=i(1020),w=i(1072),M=i(53),q=i(963),R=Object(O.f)({heading:{id:"column.lists",defaultMessage:"Lists"},subheading:{id:"lists.subheading",defaultMessage:"Your lists"}}),k=Object(M.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}),x=Object(u.connect)(function(t){return{lists:k(t)}})(n=Object(O.g)((a=s=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(h.I)())},i.render=function(){var t=this.props,e=t.intl,i=t.lists;if(!i)return Object(o.a)(g.a,{},void 0,Object(o.a)(f.a,{}));var n=Object(o.a)(O.b,{id:"empty_column.lists",defaultMessage:"You don't have any lists yet. When you create one, it will show up here."});return Object(o.a)(g.a,{icon:"bars",heading:e.formatMessage(R.heading)},void 0,Object(o.a)(j.a,{}),Object(o.a)(w.a,{}),Object(o.a)(v.a,{text:e.formatMessage(R.subheading)}),Object(o.a)(q.a,{scrollKey:"lists",emptyMessage:n},void 0,i.map(function(t){return Object(o.a)(y.a,{to:"/timelines/list/"+t.get("id"),icon:"list-ul",text:t.get("title")},t.get("id"))})))},e}(m.a),Object(c.a)(s,"propTypes",{params:d.a.object.isRequired,dispatch:d.a.func.isRequired,lists:p.a.list,intl:d.a.object.isRequired}),n=a))||n)||n}}]);
2018-09-16 15:17:34 -06:00
//# sourceMappingURL=lists.js.map