2018-04-09 22:00:42 +02:00
|
|
|
webpackJsonp([27],{150:function(t,e,n){"use strict";n.d(e,"a",function(){return m});var o=n(2),r=n.n(o),a=n(1),i=n.n(a),s=n(3),c=n.n(s),l=n(4),u=n.n(l),d=n(0),p=n.n(d),h=n(10),f=n.n(h),m=function(t){function e(){var n,o,r;i()(this,e);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=o=c()(this,t.call.apply(t,[this].concat(s))),o.handleClick=function(){o.props.onClick()},r=n,c()(o,r)}return u()(e,t),e.prototype.render=function(){var t=this.props,e=t.icon,n=t.type,o=t.active,a=t.columnHeaderId,i="";return e&&(i=r()("i",{className:"fa fa-fw fa-"+e+" column-header__icon"})),r()("h1",{className:f()("column-header",{active:o}),id:a||null},void 0,r()("button",{onClick:this.handleClick},void 0,i,n))},e}(p.a.PureComponent)},246:function(t,e,n){"use strict";function o(t){return k.findIndex(function(e){return e.props.to===t})}function r(t){return k[t].props.to}n.d(e,"d",function(){return k}),e.b=o,e.c=r,n.d(e,"a",function(){return _});var a,i=n(1),s=n.n(i),c=n(3),l=n.n(c),u=n(4),d=n.n(u),p=n(2),h=n.n(p),f=n(34),m=n.n(f),v=n(0),y=n.n(v),g=n(45),b=n(6),w=n(35),k=[h()(g.c,{className:"tabs-bar__link primary",to:"/timelines/home","data-preview-title-id":"column.home","data-preview-icon":"home"},void 0,h()("i",{className:"fa fa-fw fa-home"}),h()(b.b,{id:"tabs_bar.home",defaultMessage:"Home"})),h()(g.c,{className:"tabs-bar__link primary",to:"/notifications","data-preview-title-id":"column.notifications","data-preview-icon":"bell"},void 0,h()("i",{className:"fa fa-fw fa-bell"}),h()(b.b,{id:"tabs_bar.notifications",defaultMessage:"Notifications"})),h()(g.c,{className:"tabs-bar__link primary",to:"/search","data-preview-title-id":"tabs_bar.search","data-preview-icon":"bell"},void 0,h()("i",{className:"fa fa-fw fa-search"}),h()(b.b,{id:"tabs_bar.search",defaultMessage:"Search"})),h()(g.c,{className:"tabs-bar__link secondary",to:"/timelines/public/local","data-preview-title-id":"column.community","data-preview-icon":"users"},void 0,h()("i",{className:"fa fa-fw fa-users"}),h()(b.b,{id:"tabs_bar.local_timeline",defaultMessage:"Local"})),h()(g.c,{className:"tabs-bar__link secondary",exact:!0,to:"/timelines/public","data-preview-title-id":"column.public","data-preview-icon":"globe"},void 0,h()("i",{className:"fa fa-fw fa-globe"}),h()(b.b,{id:"tabs_bar.federated_timeline",defaultMessage:"Federated"})),h()(g.c,{className:"tabs-bar__link primary",style:{flexGrow:"0",flexBasis:"30px"},to:"/getting-started","data-preview-title-id":"getting_started.heading","data-preview-icon":"bars"},void 0,h()("i",{className:"fa fa-fw fa-bars"}))],_=Object(b.g)(a=Object(g.g)(a=function(t){function e(){var n,o,r;s()(this,e);for(var a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];return n=o=l()(this,t.call.apply(t,[this].concat(i))),o.setRef=function(t){o.node=t},o.handleClick=function(t){Object(w.c)()&&(t.preventDefault(),t.persist(),requestAnimationFrame(function(){var e=Array.apply(void 0,o.node.querySelectorAll(".tabs-bar__link")),n=e.find(function(t){return t.classList.contains("active")}),r=e.find(function(e){return e.contains(t.target)}),a=k[Array.apply(void 0,o.node.childNodes).indexOf(r)].props.to;if(n!==r){n&&n.classList.remove("active");var i=m()(function(){r.removeEventListener("transitionend",i),o.props.history.push(a)},50);r.addEventListener("transitionend",i),r.classList.add("active")}}))},r=n,l()(o,r)}return d()(e,t),e.prototype.render=function(){var t=this,e=this.props.intl.formatMessage;return y.a.createElement("nav",{className:"tabs-bar",ref:this.setRef},k.map(function(n){return y.a.cloneElement(n,{key:n.props.to,onClick:t.handleClick,"aria-label":e({id:n.props["data-preview-title-id"]})})}))},e}(y.a.PureComponent))||a)||a},251:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var o,r,a=n(2),i=n.n(a),s=n(1),c=n.n(s),l=n(3),u=n.n(l),d=n(4),p=n.n(d),h=n(0),f=(n.n(h),n(5)),m=n.n(f),v=n(70),y=n(69),g=n(11),b=n.n(g),w=(r=o=function(t){function e(){return c()(this,e),u()(this,t.apply(this,arguments))}return p()(e,t),e.prototype.render=function(){var t=this.props,e=t.title,n=t.icon;return i()(v.a,{},void 0,i(
|