Merge branch 'features/glitch-soc-frontend' into 'develop'
[akkoma] / priv / static / packs / features / list_timeline.js
index f5beaec06bc80f428789d638d295b9117de611cb..61406da71fd9fa300a2fd3b643c37283e551ff12 100644 (file)
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{730:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return E});var i,s,o,a=n(0),l=n.n(a),c=n(6),d=n.n(c),r=n(3),p=n.n(r),u=n(7),h=n.n(u),m=n(1),f=n.n(m),b=n(12),v=n(2),g=n.n(v),M=n(88),y=n(62),C=n(196),O=n(60),j=n(113),I=n(4),k=n(63),_=n(19),w=n(23),x=n(21),N=n(198),D=n(194),T=Object(I.f)({deleteMessage:{id:"confirmations.delete_list.message",defaultMessage:"Are you sure you want to permanently delete this list?"},deleteConfirm:{id:"confirmations.delete_list.confirm",defaultMessage:"Delete"}}),E=Object(b.connect)(function(e,t){return{list:e.getIn(["lists",t.params.id]),hasUnread:e.getIn(["timelines","list:"+t.params.id,"unread"])>0}})(i=Object(I.g)((o=s=function(e){function t(){var n,i,s;d()(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=i=p()(this,e.call.apply(e,[this].concat(a))),i.handlePin=function(){var e=i.props,t=e.columnId,n=e.dispatch;t?n(Object(j.h)(t)):(n(Object(j.e)("LIST",{id:i.props.params.id})),i.context.router.history.push("/"))},i.handleMove=function(e){var t=i.props,n=t.columnId;(0,t.dispatch)(Object(j.g)(n,e))},i.handleHeaderClick=function(){i.column.scrollTop()},i.setRef=function(e){i.column=e},i.handleLoadMore=function(e){var t=i.props.params.id;i.props.dispatch(Object(_.q)(t,{maxId:e}))},i.handleEditClick=function(){i.props.dispatch(Object(x.d)("LIST_EDITOR",{listId:i.props.params.id}))},i.handleDeleteClick=function(){var e=i.props,t=e.dispatch,n=e.columnId,s=e.intl,o=i.props.params.id;t(Object(x.d)("CONFIRM",{message:s.formatMessage(T.deleteMessage),confirm:s.formatMessage(T.deleteConfirm),onConfirm:function(){t(Object(w.z)(o)),n?t(Object(j.h)(n)):i.context.router.history.push("/lists")}}))},s=n,p()(i,s)}return h()(t,e),t.prototype.componentDidMount=function(){var e=this.props.dispatch,t=this.props.params.id;e(Object(w.A)(t)),e(Object(_.q)(t)),this.disconnect=e(Object(k.d)(t))},t.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},t.prototype.render=function(){var e=this.props,t=e.shouldUpdateScroll,n=e.hasUnread,i=e.columnId,s=e.multiColumn,o=e.list,a=this.props.params.id,c=!!i,d=o?o.get("title"):a;return void 0===o?l()(y.a,{},void 0,l()("div",{className:"scrollable"},void 0,l()(D.a,{}))):!1===o?l()(y.a,{},void 0,l()(C.a,{}),l()(N.a,{})):f.a.createElement(y.a,{ref:this.setRef,label:d},l()(O.a,{icon:"list-ul",active:n,title:d,onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:c,multiColumn:s},void 0,l()("div",{className:"column-header__links"},void 0,l()("button",{className:"text-btn column-header__setting-btn",tabIndex:"0",onClick:this.handleEditClick},void 0,l()("i",{className:"fa fa-pencil"})," ",l()(I.b,{id:"lists.edit",defaultMessage:"Edit list"})),l()("button",{className:"text-btn column-header__setting-btn",tabIndex:"0",onClick:this.handleDeleteClick},void 0,l()("i",{className:"fa fa-trash"})," ",l()(I.b,{id:"lists.delete",defaultMessage:"Delete list"}))),l()("hr",{})),l()(M.a,{trackScroll:!c,scrollKey:"list_timeline-"+i,timelineId:"list:"+a,onLoadMore:this.handleLoadMore,emptyMessage:l()(I.b,{id:"empty_column.list",defaultMessage:"There is nothing in this list yet. When members of this list post new statuses, they will appear here."}),shouldUpdateScroll:t}))},t}(f.a.PureComponent),s.contextTypes={router:g.a.object},i=o))||i)||i}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{682:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return x});var n,i,s,d=a(1),c=a(6),o=a(0),l=a(2),r=a(3),b=a.n(r),p=a(20),u=a(5),h=a.n(u),O=a(626),j=a(430),m=a(642),f=a(428),v=a(203),g=a(7),M=a(399),C=a(36),I=a(34),y=a(49),k=a(899),_=a(289),w=Object(g.f)({deleteMessage:{id:"confirmations.delete_list.message",defaultMessage:"Are you sure you want to permanently delete this list?"},deleteConfirm:{id:"confirmations.delete_list.confirm",defaultMessage:"Delete"}}),x=Object(p.connect)(function(e,t){return{list:e.getIn(["lists",t.params.id]),hasUnread:0<e.getIn(["timelines","list:"+t.params.id,"unread"])}})(n=Object(g.g)((s=i=function(n){function e(){for(var s,e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return s=n.call.apply(n,[this].concat(t))||this,Object(l.a)(Object(o.a)(Object(o.a)(s)),"handlePin",function(){var e=s.props,t=e.columnId,a=e.dispatch;t?a(Object(v.h)(t)):(a(Object(v.e)("LIST",{id:s.props.params.id})),s.context.router.history.push("/"))}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"handleMove",function(e){var t=s.props,a=t.columnId;(0,t.dispatch)(Object(v.g)(a,e))}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"handleHeaderClick",function(){s.column.scrollTop()}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"setRef",function(e){s.column=e}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"handleLoadMore",function(e){var t=s.props.params.id;s.props.dispatch(Object(C.r)(t,{maxId:e}))}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"handleEditClick",function(){s.props.dispatch(Object(y.d)("LIST_EDITOR",{listId:s.props.params.id}))}),Object(l.a)(Object(o.a)(Object(o.a)(s)),"handleDeleteClick",function(){var e=s.props,t=e.dispatch,a=e.columnId,n=e.intl,i=s.props.params.id;t(Object(y.d)("CONFIRM",{message:n.formatMessage(w.deleteMessage),confirm:n.formatMessage(w.deleteConfirm),onConfirm:function(){t(Object(I.F)(i)),a?t(Object(v.h)(a)):s.context.router.history.push("/lists")}}))}),s}Object(c.a)(e,n);var t=e.prototype;return t.componentDidMount=function(){var e=this.props.dispatch,t=this.props.params.id;e(Object(I.G)(t)),e(Object(C.r)(t)),this.disconnect=e(Object(M.d)(t))},t.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},t.render=function(){var e=this.props,t=e.shouldUpdateScroll,a=e.hasUnread,n=e.columnId,i=e.multiColumn,s=e.list,c=this.props.params.id,o=!!n,l=s?s.get("title"):c;return void 0===s?Object(d.a)(j.a,{},void 0,Object(d.a)("div",{className:"scrollable"},void 0,Object(d.a)(_.a,{}))):!1===s?Object(d.a)(j.a,{},void 0,Object(d.a)(m.a,{}),Object(d.a)(k.a,{})):b.a.createElement(j.a,{ref:this.setRef,label:l},Object(d.a)(f.a,{icon:"list-ul",active:a,title:l,onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:o,multiColumn:i},void 0,Object(d.a)("div",{className:"column-header__links"},void 0,Object(d.a)("button",{className:"text-btn column-header__setting-btn",tabIndex:"0",onClick:this.handleEditClick},void 0,Object(d.a)("i",{className:"fa fa-pencil"})," ",Object(d.a)(g.b,{id:"lists.edit",defaultMessage:"Edit list"})),Object(d.a)("button",{className:"text-btn column-header__setting-btn",tabIndex:"0",onClick:this.handleDeleteClick},void 0,Object(d.a)("i",{className:"fa fa-trash"})," ",Object(d.a)(g.b,{id:"lists.delete",defaultMessage:"Delete list"}))),Object(d.a)("hr",{})),Object(d.a)(O.a,{trackScroll:!o,scrollKey:"list_timeline-"+n,timelineId:"list:"+c,onLoadMore:this.handleLoadMore,emptyMessage:Object(d.a)(g.b,{id:"empty_column.list",defaultMessage:"There is nothing in this list yet. When members of this list post new statuses, they will appear here."}),shouldUpdateScroll:t}))},e}(b.a.PureComponent),Object(l.a)(i,"contextTypes",{router:h.a.object}),n=s))||n)||n}}]);
 //# sourceMappingURL=list_timeline.js.map
\ No newline at end of file