2019-02-10 18:55:22 +00:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{664:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return I});var i,s,n,o,b=a(1),r=a(6),c=a(2),m=(a(3),a(640)),p=a(917),h=a(918),_=a(7),u=a(20),l=a(45),d=a(5),g=a.n(d),f=a(26),M=a.n(f),O=a(24),j=a(31),v=a(14),k=a(4),q=a(58),w=a(29),R=a(139),x=a(159),y=Object(_.f)(((i={heading:{id:"getting_started.heading",defaultMessage:"Getting started"},home_timeline:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},public_timeline:{id:"navigation_bar.public_timeline",defaultMessage:"Federated timeline"},navigation_subheading:{id:"column_subheading.navigation",defaultMessage:"Navigation"},settings_subheading:{id:"column_subheading.settings",defaultMessage:"Settings"},community_timeline:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},direct:{id:"navigation_bar.direct",defaultMessage:"Direct messages"},bookmarks:{id:"navigation_bar.bookmarks",defaultMessage:"Bookmarks"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},settings:{id:"navigation_bar.app_settings",defaultMessage:"App settings"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},sign_out:{id:"navigation_bar.logout",defaultMessage:"Logout"},lists:{id:"navigation_bar.lists",defaultMessage:"Lists"},keyboard_shortcuts:{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Keyboard shortcuts"}}).lists={id:"navigation_bar.lists",defaultMessage:"Lists"},i.lists_subheading={id:"column_subheading.lists",defaultMessage:"Lists"},i.misc={id:"navigation_bar.misc",defaultMessage:"Misc"},i.menu={id:"getting_started.heading",defaultMessage:"Getting started"},i)),P=function(e,t){return 0===e?void 0:t&&t<=e?t+"+":e},I=Object(u.connect)(function(){var t=Object(q.a)([function(e){return e.get("lists")}],function(e){return e?e.toList().filter(function(e){return!!e}).sort(function(e,t){return e.get("title").localeCompare(t.get("title"))}):e});return function(e){return{lists:t(e),myAccount:e.getIn(["accounts",j.k]),columns:e.getIn(["settings","columns"]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(k.List)()).size,unreadNotifications:e.getIn(["notifications","unread"]),customPanelEnabled:e.getIn(["custom_panel","enabled"]),customPanel:e.getIn(["custom_panel","panel"])}}},function(e){return{fetchFollowRequests:function(){return e(Object(v.H)())},fetchLists:function(){return e(Object(w.I)())},openSettings:function(){return e(Object(l.d)("SETTINGS",{}))},fetchPanel:function(){return e(Object(x.c)())},fetchPleromaConfig:function(){return e(Object(x.d)())}}})(s=Object(_.g)((o=n=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.fetchLists()},a.componentDidMount=function(){var e=this.props,t=e.myAccount,a=e.fetchFollowRequests,i=e.fetchPleromaConfig,s=e.fetchPanel;t.get("locked")&&a(),i(),s()},a.render=function(){var e=this.props,t=e.intl,a=e.myAccount,i=e.columns,s=e.multiColumn,n=e.unreadFollowRequests,o=e.unreadNotifications,r=e.lists,c=e.openSettings,u=e.customPanelEnabled,l=e.customPanel,d=[],g=[];s&&(i.find(function(e){return"HOME"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"home",text:t.formatMessage(y.home_timeline),to:"/timelines/home"},"0")),i.find(function(e){return"NOTIFICATIONS"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"bell",text:t.formatMessage(y.notifications),badge:P(o),to:"/notifications"},"1")),i.find(function(e){return"COMMUNITY"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"users",text:t.formatMessage(y.community_timeline),to:"/timelines/public/local"},"2")),i.find(function(e){return"PUBLIC"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"globe",text:t.formatMessage(y.public_timeline),to:"/timelines/public"},"3"))),s&&i.find(function(e){return"DIRECT"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"envelope",text:t.formatMessage(y.direct),to:"/timelines/direct"},"4")),s&&i.find(function(e){return"BOOKMARKS"===e.get("id")})||d
|