honkoma/priv/static/packs/features/notifications.js

2 lines
21 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{739:function(t,e,i){"use strict";i.r(e);var o,n,a,s,c,l,r,d=i(0),u=i(2),f=i(7),b=i(1),h=i(63),g=i.n(h),p=i(3),O=i.n(p),j=i(12),v=i(669),m=i(665),M=i(62),_=i(245),w=i(204),C=i(5),y=i.n(C),P=i(18),k=i.n(P),x=i(993),N=i(966),I=i(6),S=i(286),W=i(19),F=i(287),T=i(27),H=function(t,e,i){var o=[e];return o.push(t.formatDate(i,{hour:"2-digit",minute:"2-digit",month:"short",day:"numeric"})),o.join(", ")},D=Object(I.g)((a=n=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];return e=t.call.apply(t,[this].concat(o))||this,Object(b.a)(Object(u.a)(e),"handleMoveUp",function(){var t=e.props,i=t.notification;(0,t.onMoveUp)(i.get("id"))}),Object(b.a)(Object(u.a)(e),"handleMoveDown",function(){var t=e.props,i=t.notification;(0,t.onMoveDown)(i.get("id"))}),Object(b.a)(Object(u.a)(e),"handleOpen",function(){var t=e.props.notification;t.get("status")?e.context.router.history.push("/statuses/"+t.get("status")):e.handleOpenProfile()}),Object(b.a)(Object(u.a)(e),"handleOpenProfile",function(){var t=e.props.notification;e.context.router.history.push("/accounts/"+t.getIn(["account","id"]))}),Object(b.a)(Object(u.a)(e),"handleMention",function(t){t.preventDefault();var i=e.props,o=i.notification;(0,i.onMention)(o.get("account"),e.context.router.history)}),Object(b.a)(Object(u.a)(e),"handleHotkeyFavourite",function(){var t=e.props.status;t&&e.props.onFavourite(t)}),Object(b.a)(Object(u.a)(e),"handleHotkeyBoost",function(t){var i=e.props.status;i&&e.props.onReblog(i,t)}),Object(b.a)(Object(u.a)(e),"handleHotkeyToggleHidden",function(){var t=e.props.status;t&&e.props.onToggleHidden(t)}),e}Object(f.a)(e,t);var i=e.prototype;return i.getHandlers=function(){return{reply:this.handleMention,favourite:this.handleHotkeyFavourite,boost:this.handleHotkeyBoost,mention:this.handleMention,open:this.handleOpen,openProfile:this.handleOpenProfile,moveUp:this.handleMoveUp,moveDown:this.handleMoveDown,toggleHidden:this.handleHotkeyToggleHidden}},i.renderFollow=function(t,e,i){var o=this.props.intl;return Object(d.a)(F.HotKeys,{handlers:this.getHandlers()},void 0,Object(d.a)("div",{className:"notification notification-follow focusable",tabIndex:"0","aria-label":H(o,o.formatMessage({id:"notification.follow",defaultMessage:"{name} followed you"},{name:e.get("acct")}),t.get("created_at"))},void 0,Object(d.a)("div",{className:"notification__message"},void 0,Object(d.a)("div",{className:"notification__favourite-icon-wrapper"},void 0,Object(d.a)(T.a,{id:"user-plus",fixedWidth:!0})),Object(d.a)("span",{title:t.get("created_at")},void 0,Object(d.a)(I.b,{id:"notification.follow",defaultMessage:"{name} followed you",values:{name:i}}))),Object(d.a)(N.a,{id:e.get("id"),withNote:!1,hidden:this.props.hidden})))},i.renderMention=function(t){return Object(d.a)(x.a,{id:t.get("status"),withDismiss:!0,hidden:this.props.hidden,onMoveDown:this.handleMoveDown,onMoveUp:this.handleMoveUp,contextType:"notifications",getScrollPosition:this.props.getScrollPosition,updateScrollBottom:this.props.updateScrollBottom,cachedMediaWidth:this.props.cachedMediaWidth,cacheMediaWidth:this.props.cacheMediaWidth})},i.renderFavourite=function(t,e){var i=this.props.intl;return Object(d.a)(F.HotKeys,{handlers:this.getHandlers()},void 0,Object(d.a)("div",{className:"notification notification-favourite focusable",tabIndex:"0","aria-label":H(i,i.formatMessage({id:"notification.favourite",defaultMessage:"{name} favourited your status"},{name:t.getIn(["account","acct"])}),t.get("created_at"))},void 0,Object(d.a)("div",{className:"notification__message"},void 0,Object(d.a)("div",{className:"notification__favourite-icon-wrapper"},void 0,Object(d.a)(T.a,{id:"star",className:"star-icon",fixedWidth:!0})),Object(d.a)("span",{title:t.get("created_at")},void 0,Object(d.a)(I.b,{id:"notification.favourite",defaultMessage:"{name} favourited your status",values:{name:e}}))),Object(d.a)(x.a,{id:t.get("status"),account:t.get("account"),muted:!0,withDismiss:!0,hidden:!!this.props.hidden,getScrollPosition:this.props.getScrollPosition,updateScrollBottom:this.props.updateScrollBottom,cachedMediaWidth:this.props.cachedMediaWidth,cacheMediaWidth:this.props.cacheMediaWidth})))},i.renderReblog=function(t,e){var i=this.props.intl;return Object(d.a)(F.HotKeys,{handlers:this.getHandlers()},void 0,Object(d.a)("div",{className:"notification notification-reblog focusable",tabIndex:"0","aria-label":H(i,i.formatMessage({id:"notification.reblog",defaultMessage:"{name} boosted your status"},{name:t.getIn(["account","acct"])}),t.get("created_at"))},void 0,Object(d.a)("div",{className:"notification__message"},void 0,Object(d.a)("div",{className:"notification__favourite-icon-wrapper"},void 0,Object(d.a)(T.a,{id:"retweet",fixedWidth:!0})),Object(d.a)("span",{title:t.get("created_at")},void 0,Object(d.a)(I.b,{id:"notification.reblog",defaultMessage:"{name} boosted your status",values:{name:e}}))),Object(d.a)(x.a,{id:t.get("status"),account:t.get("account"),muted:!0,withDismiss:!0,hidden:this.props.hidden,getScrollPosition:this.props.getScrollPosition,updateScrollBottom:this.props.updateScrollBottom,cachedMediaWidth:this.props.cachedMediaWidth,cacheMediaWidth:this.props.cacheMediaWidth})))},i.renderPoll=function(t){var e=this.props.intl;return Object(d.a)(F.HotKeys,{handlers:this.getHandlers()},void 0,Object(d.a)("div",{className:"notification notification-poll focusable",tabIndex:"0","aria-label":H(e,e.formatMessage({id:"notification.poll",defaultMessage:"A poll you have voted in has ended"}),t.get("created_at"))},void 0,Object(d.a)("div",{className:"notification__message"},void 0,Object(d.a)("div",{className:"notification__favourite-icon-wrapper"},void 0,Object(d.a)(T.a,{id:"tasks",fixedWidth:!0})),Object(d.a)("span",{title:t.get("created_at")},void 0,Object(d.a)(I.b,{id:"notification.poll",defaultMessage:"A poll you have voted in has ended"}))),Object(d.a)(x.a,{id:t.get("status"),account:t.get("account"),muted:!0,withDismiss:!0,hidden:this.props.hidden,getScrollPosition:this.props.getScrollPosition,updateScrollBottom:this.props.updateScrollBottom,cachedMediaWidth:this.props.cachedMediaWidth,cacheMediaWidth:this.props.cacheMediaWidth})))},i.render=function(){var t=this.props.notification,e=t.get("account"),i={__html:e.get("display_name_html")},o=Object(d.a)("bdi",{},void 0,Object(d.a)(S.a,{className:"notification__display-name",href:e.get("url"),title:e.get("acct"),to:"/accounts/"+e.get("id"),dangerouslySetInnerHTML:i}));switch(t.get("type")){case"follow":return this.renderFollow(t,e,o);case"mention":return this.renderMention(t);case"favourite":return this.renderFavourite(t,o);case"reblog":return this.renderReblog(t,o);case"poll":return this.renderPoll(t)}return null},e}(W.a),Object(b.a)(n,"contextTypes",{router:y.a.object}),Object(b.a)(n,"propTypes",{notification:k.a.map.isRequired,hidden:y.a.bool,onMoveUp:y.a.func.isRequired,onMoveDown:y.a.func.isRequired,onMention:y.a.func.isRequired,onFavourite:y.a.func.isRequired,onReblog:y.a.func.isRequired,onToggleHidden:y.a.func.isRequired,status:k.a.map,intl:y.a.object.isRequired,getScrollPosition:y.a.func,updateScrollBottom:y.a.func,cacheMediaWidth:y.a.func,cachedMediaWidth:y.a.number}),o=a))||o,R=i(47),q=i(21),L=i(66),B=i(93),U=i(20),A=Object(j.connect)(function(){var t=Object(w.e)(),e=Object(w.f)();return function(i,o){var n=t(i,o.notification,o.accountId);return{notification:n,status:n.get("status")?e(i,{id:n.get("status")}):null}}},function(t){return{onMention:function(e,i){t(Object(q.cb)(e,i))},onModalReblog:function(e){t(Object(L.o)(e))},onReblog:function(e,i){e.get("reblogged")?t(Object(L.r)(e)):i.shiftKey||!U.b?this.onModalReblog(e):t(Object(R.d)("BOOST",{status:e,onReblog:this.onModalReblog}))},onFavourite:function(e){e.get("favourited")?t(Object(L.p)(e)):t(Object(L.k)(e))},onToggleHidden:function(e){e.get("hidden")?t(Object(B.k)(e.get("id"))):t(Object(B.i)(e.get("id")))}}})(D),K=function(t){function e(){return t.apply(this,arguments)||this}return Object(f.a)(e,t),e.prototype.render=function(){return Object(d.a)("button",{className:"text-btn column-header__setting-btn",tabIndex:"0",onClick:this.props.onClick},void 0,Object(d.a)(T.a,{id:"eraser"})," ",Object(d.a)(I.b,{id:"notifications.clear",defaultMessage:"Clear notifications"}))},e}(O.a.PureComponent),z=i(1023),G=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];return e=t.call.apply(t,[this].concat(o))||this,Object(b.a)(Object(u.a)(e),"onPushChange",function(t,i){e.props.onChange(["push"].concat(t),i)}),e}return Object(f.a)(e,t),e.prototype.render=function(){var t=this.props,e=t.settings,i=t.pushSettings,o=t.onChange,n=t.onClear,a=Object(d.a)(I.b,{id:"notifications.column_settings.filter_bar.show",defaultMessage:"Show"}),s=Object(d.a)(I.b,{id:"notifications.column_settings.filter_bar.advanced",defaultMessage:"Display all categories"}),c=Object(d.a)(I.b,{id:"notifications.column_settings.alert",defaultMessage:"Desktop notifications"}),l=Object(d.a)(I.b,{id:"notifications.column_settings.show",defaultMessage:"Show in column"}),r=Object(d.a)(I.b,{id:"notifications.column_settings.sound",defaultMessage:"Play sound"}),u=i.get("browserSupport")&&i.get("isSubscribed"),f=u&&Object(d.a)(I.b,{id:"notifications.column_settings.push",defaultMessage:"Push notifications"});return Object(d.a)("div",{},void 0,Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(K,{onClick:n})),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-filter-bar"},void 0,Object(d.a)("span",{id:"notifications-filter-bar",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.filter_bar.category",defaultMessage:"Quick filter bar"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{id:"show-filter-bar",prefix:"notifications",settings:e,settingPath:["quickFilter","show"],onChange:o,label:a}),Object(d.a)(z.a,{id:"show-filter-bar",prefix:"notifications",settings:e,settingPath:["quickFilter","advanced"],onChange:o,label:s}))),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-follow"},void 0,Object(d.a)("span",{id:"notifications-follow",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.follow",defaultMessage:"New followers:"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{prefix:"notifications_desktop",settings:e,settingPath:["alerts","follow"],onChange:o,label:c}),u&&Object(d.a)(z.a,{prefix:"notifications_push",settings:i,settingPath:["alerts","follow"],onChange:this.onPushChange,label:f}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["shows","follow"],onChange:o,label:l}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["sounds","follow"],onChange:o,label:r}))),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-favourite"},void 0,Object(d.a)("span",{id:"notifications-favourite",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.favourite",defaultMessage:"Favourites:"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{prefix:"notifications_desktop",settings:e,settingPath:["alerts","favourite"],onChange:o,label:c}),u&&Object(d.a)(z.a,{prefix:"notifications_push",settings:i,settingPath:["alerts","favourite"],onChange:this.onPushChange,label:f}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["shows","favourite"],onChange:o,label:l}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["sounds","favourite"],onChange:o,label:r}))),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-mention"},void 0,Object(d.a)("span",{id:"notifications-mention",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.mention",defaultMessage:"Mentions:"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{prefix:"notifications_desktop",settings:e,settingPath:["alerts","mention"],onChange:o,label:c}),u&&Object(d.a)(z.a,{prefix:"notifications_push",settings:i,settingPath:["alerts","mention"],onChange:this.onPushChange,label:f}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["shows","mention"],onChange:o,label:l}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["sounds","mention"],onChange:o,label:r}))),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-reblog"},void 0,Object(d.a)("span",{id:"notifications-reblog",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.reblog",defaultMessage:"Boosts:"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{prefix:"notifications_desktop",settings:e,settingPath:["alerts","reblog"],onChange:o,label:c}),u&&Object(d.a)(z.a,{prefix:"notifications_push",settings:i,settingPath:["alerts","reblog"],onChange:this.onPushChange,label:f}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["shows","reblog"],onChange:o,label:l}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["sounds","reblog"],onChange:o,label:r}))),Object(d.a)("div",{role:"group","aria-labelledby":"notifications-poll"},void 0,Object(d.a)("span",{id:"notifications-poll",className:"column-settings__section"},void 0,Object(d.a)(I.b,{id:"notifications.column_settings.poll",defaultMessage:"Poll results:"})),Object(d.a)("div",{className:"column-settings__row"},void 0,Object(d.a)(z.a,{prefix:"notifications_desktop",settings:e,settingPath:["alerts","poll"],onChange:o,label:c}),u&&Object(d.a)(z.a,{prefix:"notifications_push",settings:i,settingPath:["alerts","poll"],onChange:this.onPushChange,label:f}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["shows","poll"],onChange:o,label:l}),Object(d.a)(z.a,{prefix:"notifications",settings:e,settingPath:["sounds","poll"],onChange:o,label:r}))))},e}(O.a.PureComponent),J=i(72),V=i(222),E=Object(I.f)({clearMessage:{id:"notifications.clear_confirmation",defaultMessage:"Are you sure you want to permanently clear all your notifications?"},clearConfirm:{id:"notifications.clear",defaultMessage:"Clear notifications"}}),Q=Object(I.g)(Object(j.connect)(function(t){return{settings:t.getIn(["settings","notifications"]),pushSettings:t.get("push_notifications")}},function(t,e){var i=e.intl;return{onChange:function(e,i){"push"===e[0]?t(Object(V.e)(e.slice(1),i)):"quickFilter"===e[0]?(t(Object(J.c)(["notifications"].concat(e),i)),t(Object(M.p)("all"))):t(Object(J.c)(["notifications"].concat(e),i))},onClear:function(){t(Object(R.d)("CONFIRM",{message:i.formatMessage(E.clearMessage),confirm:i.formatMessage(E.clearConfirm),onConfirm:function(){return t(Object(M.k)())}}))}}})(G)),Y=Object(I.f)({mentions:{id:"notifications.filter.mentions",defaultMessage:"Mentions"},favourites:{id:"notifications.filter.favourites",defaultMessage:"Favourites"},boosts:{id:"notifications.filter.boosts",defaultMessage:"Boosts"},polls:{id:"notifications.filter.polls",defaultMessage:"Poll results"},follows:{id:"notifications.filter.follows",defaultMessage:"Follows"}}),X=Object(I.g)(s=function(t){function e(){return t.apply(this,arguments)||this}Object(f.a)(e,t);var i=e.prototype;return i.onClick=function(t){var e=this;return function(){return e.props.selectFilter(t)}},i.render=function(){var t=this.props,e=t.selectedFilter,i=t.advancedMode,o=t.intl;return i?Object(d.a)("div",{className:"notification__filter-bar"},void 0,Object(d.a)("button",{className:"all"===e?"active":"",onClick:this.onClick("all")},void 0,Object(d.a)(I.b,{id:"notifications.filter.all",defaultMessage:"All"})),Object(d.a)("button",{className:"mention"===e?"active":"",onClick:this.onClick("mention"),title:o.formatMessage(Y.mentions)},void 0,Object(d.a)(T.a,{id:"reply-all",fixedWidth:!0})),Object(d.a)("button",{className:"favourite"===e?"active":"",onClick:this.onClick("favourite"),title:o.formatMessage(Y.favourites)},void 0,Object(d.a)(T.a,{id:"star",fixedWidth:!0})),Object(d.a)("button",{className:"reblog"===e?"active":"",onClick:this.onClick("reblog"),title:o.formatMessage(Y.boosts)},void 0,Object(d.a)(T.a,{id:"retweet",fixedWidth:!0})),Object(d.a)("button",{className:"poll"===e?"active":"",onClick:this.onClick("poll"),title:o.formatMessage(Y.polls)},void 0,Object(d.a)(T.a,{id:"tasks",fixedWidth:!0})),Object(d.a)("button",{className:"follow"===e?"active":"",onClick:this.onClick("follow"),title:o.formatMessage(Y.follows)},void 0,Object(d.a)(T.a,{id:"user-plus",fixedWidth:!0}))):Object(d.a)("div",{className:"notification__filter-bar"},void 0,Object(d.a)("button",{className:"all"===e?"active":"",onClick:this.onClick("all")},void 0,Object(d.a)(I.b,{id:"notifications.filter.all",defaultMessage:"All"})),Object(d.a)("button",{className:"mention"===e?"active":"",onClick:this.onClick("mention")},void 0,Object(d.a)(I.b,{id:"notifications.filter.mentions",defaultMessage:"Mentions"})))},e}(O.a.PureComponent))||s,Z=Object(j.connect)(function(t){return{selectedFilter:t.getIn(["settings","notifications","quickFilter","active"]),advancedMode:t.getIn(["settings","notifications","quickFilter","advanced"])}},function(t){return{selectFilter:function(e){t(Object(M.p)(e))}}})(X),$=i(53),tt=i(4),et=i(964),it=i(1091);i.d(e,"default",function(){return at});var ot=Object(I.f)({title:{id:"column.notifications",defaultMessage:"Notifications"}}),nt=Object($.a)([function(t){return t.getIn(["settings","notifications","quickFilter","show"])},function(t){return t.getIn(["settings","notifications","quickFilter","active"])},function(t){return Object(tt.List)(t.getIn(["settings","notifications","shows"]).filter(function(t){return!t}).keys())},function(t){return t.getIn(["notifications","items"])}],function(t,e,i,o){return t&&"all"!==e?o.filter(function(t){return null!==t&&e===t.get("type")}):o.filterNot(function(t){return null!==t&&i.includes(t.get("type"))})}),at=Object(j.connect)(function(t){return{showFilterBar:t.getIn(["settings","notifications","quickFilter","show"]),notifications:nt(t),isLoading:t.getIn(["notifications","isLoading"],!0),isUnread:t.getIn(["notifications","unread"])>0||t.getIn(["notifications","pendingItems"]).size>0,hasMore:t.getIn(["notifications","hasMore"]),numPending:t.getIn(["notifications","pendingItems"],Object(tt.List)()).size}})(c=Object(I.g)((r=l=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),n=0;n<i;n++)o[n]=arguments[n];return e=t.call.apply(t,[this].concat(o))||this,Object(b.a)(Object(u.a)(e),"handleLoadGap",function(t){e.props.dispatch(Object(M.l)({maxId:t}))}),Object(b.a)(Object(u.a)(e),"handleLoadOlder",g()(function(){var t=e.props.notifications.last();e.props.dispatch(Object(M.l)({maxId:t&&t.get("id")}))},300,{leading:!0})),Object(b.a)(Object(u.a)(e),"handleLoadPending",function(){e.props.dispatch(Object(M.m)())}),Object(b.a)(Object(u.a)(e),"handleScrollToTop",g()(function(){e.props.dispatch(Object(M.o)(!0))},100)),Object(b.a)(Object(u.a)(e),"handleScroll",g()(function(){e.props.dispatch(Object(M.o)(!1))},100)),Object(b.a)(Object(u.a)(e),"handlePin",function(){var t=e.props,i=t.columnId,o=t.dispatch;o(i?Object(_.h)(i):Object(_.e)("NOTIFICATIONS",{}))}),Object(b.a)(Object(u.a)(e),"handleMove",function(t){var i=e.props,o=i.columnId;(0,i.dispatch)(Object(_.g)(o,t))}),Object(b.a)(Object(u.a)(e),"handleHeaderClick",function(){e.column.scrollTop()}),Object(b.a)(Object(u.a)(e),"setColumnRef",function(t){e.column=t}),Object(b.a)(Object(u.a)(e),"handleMoveUp",function(t){var i=e.props.notifications.findIndex(function(e){return null!==e&&e.get("id")===t})-1;e._selectChild(i,!0)}),Object(b.a)(Object(u.a)(e),"handleMoveDown",function(t){var i=e.props.notifications.findIndex(function(e){return null!==e&&e.get("id")===t})+1;e._selectChild(i,!1)}),e}Object(f.a)(e,t);var i=e.prototype;return i.componentWillMount=function(){this.props.dispatch(Object(M.n)())},i.componentWillUnmount=function(){this.handleLoadOlder.cancel(),this.handleScrollToTop.cancel(),this.handleScroll.cancel(),this.props.dispatch(Object(M.o)(!1)),this.props.dispatch(Object(M.q)())},i._selectChild=function(t,e){var i=this.column.node,o=i.querySelector("article:nth-of-type("+(t+1)+") .focusable");o&&(e&&i.scrollTop>o.offsetTop?o.scrollIntoView(!0):!e&&i.scrollTop+i.clientHeight<o.offsetTop+o.offsetHeight&&o.scrollIntoView(!1),o.focus())},i.render=function(){var t=this,e=this.props,i=e.intl,o=e.notifications,n=e.shouldUpdateScroll,a=e.isLoading,s=e.isUnread,c=e.columnId,l=e.multiColumn,r=e.hasMore,u=e.numPending,f=e.showFilterBar,b=!!c,h=Object(d.a)(I.b,{id:"empty_column.notifications",defaultMessage:"You don't have any notifications yet. Interact with others to start the conversation."}),g=null,p=f?Object(d.a)(Z,{}):null;g=a&&this.scrollableContent?this.scrollableContent:o.size>0||r?o.map(function(e,i){return null===e?Object(d.a)(it.a,{disabled:a,maxId:i>0?o.getIn([i-1,"id"]):null,onClick:t.handleLoadGap},"gap:"+o.getIn([i+1,"id"])):Object(d.a)(A,{notification:e,accountId:e.get("account"),onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e.get("id"))}):null,this.scrollableContent=g;var j=Object(d.a)(et.a,{scrollKey:"notifications-"+c,trackScroll:!b,isLoading:a,showLoading:a&&0===o.size,hasMore:r,numPending:u,emptyMessage:h,onLoadMore:this.handleLoadOlder,onLoadPending:this.handleLoadPending,onScrollToTop:this.handleScrollToTop,onScroll:this.handleScroll,shouldUpdateScroll:n,bindToDocument:!l},void 0,g);return O.a.createElement(v.a,{bindToDocument:!l,ref:this.setColumnRef,label:i.formatMessage(ot.title)},Object(d.a)(m.a,{icon:"bell",active:s,title:i.formatMessage(ot.title),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:b,multiColumn:l},void 0,Object(d.a)(Q,{})),p,j)},e}(O.a.PureComponent),Object(b.a)(l,"defaultProps",{trackScroll:!0}),c=r))||c)||c}}]);
//# sourceMappingURL=notifications.js.map