akkoma/priv/static/packs/features/lists.js
2022-01-08 21:44:37 +00:00

2 lines
No EOL
1.8 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{815:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return T}));var n,s,a,o=i(0),u=(i(9),i(6),i(8)),r=i(1),c=(i(3),i(15)),l=i(5),d=i.n(l),p=i(16),b=i.n(p),f=i(306),g=i(757),h=i(763),j=i(31),m=i(7),O=i(21),v=i(1173),y=i(1174),w=i(1175),M=i(57),q=i(1049);var C=Object(m.f)({heading:{id:"column.lists",defaultMessage:"Lists"},subheading:{id:"lists.subheading",defaultMessage:"Your lists"}}),R=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})),T=Object(c.connect)((function(t){return{lists:R(t)}}))(n=Object(m.g)((a=s=function(t){Object(u.a)(i,t);var e;e=i;function i(){return t.apply(this,arguments)||this}var n=i.prototype;return n.componentWillMount=function(){this.props.dispatch(Object(j.I)())},n.render=function(){var t=this.props,e=t.intl,i=t.shouldUpdateScroll,n=t.lists,s=t.multiColumn;if(!n)return Object(o.a)(g.a,{},void 0,Object(o.a)(f.a,{}));var a=Object(o.a)(m.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,{bindToDocument:!s,icon:"list-ul",heading:e.formatMessage(C.heading)},void 0,Object(o.a)(h.a,{}),Object(o.a)(w.a,{}),Object(o.a)(q.a,{scrollKey:"lists",shouldUpdateScroll:i,emptyMessage:a,prepend:Object(o.a)(y.a,{text:e.formatMessage(C.subheading)}),bindToDocument:!s},void 0,n.map((function(t){return Object(o.a)(v.a,{to:"/timelines/list/"+t.get("id"),icon:"list-ul",text:t.get("title")},t.get("id"))})))))},i}(O.a),Object(r.a)(s,"propTypes",{params:d.a.object.isRequired,dispatch:d.a.func.isRequired,lists:b.a.list,intl:d.a.object.isRequired,multiColumn:d.a.bool}),n=a))||n)||n}}]);
//# sourceMappingURL=lists.js.map