pleroma/priv/static/packs/application.js

2 lines
44 KiB
JavaScript

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()(y.a,{icon:n,title:e,multiColumn:!1,focusable:!1}),i()("div",{className:"scrollable"}))},e}(b.a),o.propTypes={title:m.a.oneOfType([m.a.node,m.a.string]),icon:m.a.string},o.defaultProps={title:"",icon:""},r)},252:function(t,e,n){"use strict";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(6),f=n(284),m=n(150),v=n(299),y=n(23),g=Object(h.f)({title:{id:"bundle_column_error.title",defaultMessage:"Network error"},body:{id:"bundle_column_error.body",defaultMessage:"Something went wrong while loading this component."},retry:{id:"bundle_column_error.retry",defaultMessage:"Try again"}}),b=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.handleRetry=function(){o.props.onRetry()},r=n,c()(o,r)}return u()(e,t),e.prototype.render=function(){var t=this.props.intl.formatMessage;return r()(f.a,{},void 0,r()(m.a,{icon:"exclamation-circle",type:t(g.title)}),r()(v.a,{}),r()("div",{className:"error-column"},void 0,r()(y.a,{title:t(g.retry),icon:"refresh",onClick:this.handleRetry,size:64}),t(g.body)))},e}(p.a.PureComponent);e.a=Object(h.g)(b)},284:function(t,e,n){"use strict";n.d(e,"a",function(){return g});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(34),p=n.n(d),h=n(0),f=n.n(h),m=n(150),v=n(91),y=n(35),g=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.handleHeaderClick=function(){var t=o.node.querySelector(".scrollable");t&&(o._interruptScrollAnimation=Object(v.b)(t))},o.handleScroll=p()(function(){void 0!==o._interruptScrollAnimation&&o._interruptScrollAnimation()},200),o.setRef=function(t){o.node=t},r=n,c()(o,r)}return u()(e,t),e.prototype.scrollTop=function(){var t=this.node.querySelector(".scrollable");t&&(this._interruptScrollAnimation=Object(v.b)(t))},e.prototype.render=function(){var t=this.props,e=t.heading,n=t.icon,o=t.children,a=t.active,i=t.hideHeadingOnMobile,s=e&&(!i||i&&!Object(y.b)(window.innerWidth)),c=s&&e.replace(/ /g,"-"),l=s&&r()(m.a,{icon:n,active:a,type:e,onClick:this.handleHeaderClick,columnHeaderId:c});return f.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":c,className:"column",onScroll:this.handleScroll},l,o)},e}(f.a.PureComponent)},287:function(t,e,n){"use strict";n.d(e,"a",function(){return g});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),m=n(6),v=n(5),y=n.n(v),g=(r=o=function(t){function e(){var n,o,r;c()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=u()(this,t.call.apply(t,[this].concat(i))),o.handleClick=function(){window.history&&1===window.history.length?o.context.router.history.push("/"):o.context.router.history.goBack()},r=n,u()(o,r)}return p()(e,t),e.prototype.render=function(){return i()("button",{onClick:this.handleClick,className:"column-back-button"},void 0,i()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),i()(m.b,{id:"column_back_button.label",defaultMessage:"Back"}))},e}(f.a.PureComponent),o.contextTypes={router:y.a.object},r)},299:function(t,e,n){"use strict";n.d(e,"a",function(){return f});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),n(6)),h=n(287),f=function(t){function e(){return i()(this,e),c()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.render=function(){return r()("div",{className:"column-back-button--slim"},void 0,r()("div",{role:"button",tabIndex:"0",onClick:this.handleClick,className:"column-back-button column-back-button--slim-button"},void 0,r()("i",{className:"fa fa-fw fa-chevron-left column-back-button__icon"}),r()(p.b,{id:"column_back_button.label",defaultMessage:"Back"})))},e}(h.a)},6:function(t,e,n){"use strict";function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(t)?t:[t]).forEach(function(t){t&&t.locale&&(S.a.__addLocaleData(t),L.a.__addLocaleData(t))})}function r(t){for(var e=(t||"").split("-");e.length>0;){if(a(e.join("-")))return!0;e.pop()}return!1}function a(t){var e=t&&t.toLowerCase();return!(!S.a.__localeData__[e]||!L.a.__localeData__[e])}function i(t){return(""+t).replace(wt,function(t){return bt[t]})}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,o){return t.hasOwnProperty(o)?e[o]=t[o]:n.hasOwnProperty(o)&&(e[o]=n[o]),e},{})}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.intl;R()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function l(t,e){if(t===e)return!0;if("object"!==(void 0===t?"undefined":B(t))||null===t||"object"!==(void 0===e?"undefined":B(e))||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=Object.prototype.hasOwnProperty.bind(e),a=0;a<n.length;a++)if(!r(n[a])||t[n[a]]!==e[n[a]])return!1;return!0}function u(t,e,n){var o=t.props,r=t.state,a=t.context,i=void 0===a?{}:a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=i.intl,d=void 0===u?{}:u,p=c.intl,h=void 0===p?{}:p;return!l(e,o)||!l(n,r)||!(h===d||l(s(h,gt),s(d,gt)))}function d(t){return t.displayName||t.name||"Component"}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.intlPropName,o=void 0===n?"intl":n,r=e.withRef,a=void 0!==r&&r,i=function(e){function n(t,e){G(this,n);var o=Y(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t,e));return c(e),o}return J(n,e),z(n,[{key:"getWrappedInstance",value:function(){return R()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return H.a.createElement(t,K({},this.props,V({},o,this.context.intl),{ref:a?"wrappedInstance":null}))}}]),n}(F.Component);return i.displayName="InjectIntl("+d(t)+")",i.contextTypes={intl:ht},i.WrappedComponent=t,i}function h(t){return t}function f(t){return S.a.prototype._resolveLocale(t)}function m(t){return S.a.prototype._findPluralRuleFunction(t)}function v(t){var e=L.a.thresholds;e.second=t.second,e.minute=t.minute,e.hour=t.hour,e.day=t.day,e.month=t.month}function y(t,e,n){var o=t&&t[e]&&t[e][n];if(o)return o}function g(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=i&&y(a,"date",i),u=s(o,_t,l);try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function b(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=i&&y(a,"time",i),u=s(o,_t,l);u.hour||u.minute||u.second||(u=K({},u,{hour:"numeric",minute:"numeric"}));try{return e.getDateTimeFormat(r,u).format(c)}catch(t){}return String(c)}function w(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=new Date(n),l=new Date(o.now),u=i&&y(a,"relative",i),d=s(o,Ct,u),p=K({},L.a.thresholds);v(Nt);try{return e.getRelativeFormat(r,d).format(c,{now:isFinite(l)?l:e.now()})}catch(t){}finally{v(p)}return String(c)}function k(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=o.format,c=i&&y(a,"number",i),l=s(o,Ot,c);try{return e.getNumberFormat(r,l).format(n)}catch(t){}return String(n)}function _(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=s(o,Tt);try{return e.getPluralFormat(r,a).format(n)}catch(t){}return"other"}function O(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t.locale,a=t.formats,i=t.messages,s=t.defaultLocale,c=t.defaultFormats,l=n.id,u=n.defaultMessage;R()(l,"[React Intl] An `id` must be provided to format a message.");var d=i&&i[l];if(!(Object.keys(o).length>0))return d||u||l;var p=void 0;if(d)try{p=e.getMessageFormat(d,r,a).format(o)}catch(t){}if(!p&&u)try{p=e.getMessageFormat(u,s,c).format(o)}catch(t){}return p||d||u||l}function C(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return O(t,e,n,Object.keys(o).reduce(function(t,e){var n=o[e];return t[e]="string"==typeof n?i(n):n,t},{}))}function T(t){var e=Math.abs(t);return e<It?"second":e<Ft?"minute":e<Ht?"hour":"day"}function N(t){switch(t){case"second":return Dt;case"minute":return It;case"hour":return Ft;case"day":return Ht;default:return At}}function x(t,e){if(t===e)return!0;var n=new Date(t).getTime(),o=new Date(e).getTime();return isFinite(n)&&isFinite(o)&&n===o}n.d(e,"e",function(){return o}),n.d(e,"g",function(){return p}),n.d(e,"f",function(){return h}),n.d(e,"d",function(){return St}),n.d(e,"a",function(){return Pt}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return qt});var j=n(81),E=n.n(j),M=n(54),S=n.n(M),P=n(62),L=n.n(P),D=n(5),I=n.n(D),F=n(0),H=n.n(F),A=n(16),R=n.n(A),U=n(82),W=n.n(U),q={locale:"en",pluralRuleFunction:function(t,e){var n=String(t).split("."),o=!n[1],r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return e?1==a&&11!=i?"one":2==a&&12!=i?"two":3==a&&13!=i?"few":"other":1==t&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},z=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),V=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},J=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},Z=function(t,e){var n={};for(var o in t)e.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n},Y=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},X=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},$=I.a.bool,Q=I.a.number,tt=I.a.string,et=I.a.func,nt=I.a.object,ot=I.a.oneOf,rt=I.a.shape,at=I.a.any,it=I.a.oneOfType,st=ot(["best fit","lookup"]),ct=ot(["narrow","short","long"]),lt=ot(["numeric","2-digit"]),ut=et.isRequired,dt={locale:tt,formats:nt,messages:nt,textComponent:at,defaultLocale:tt,defaultFormats:nt},pt={formatDate:ut,formatTime:ut,formatRelative:ut,formatNumber:ut,formatPlural:ut,formatMessage:ut,formatHTMLMessage:ut},ht=rt(K({},dt,pt,{formatters:nt,now:ut})),ft=(tt.isRequired,it([tt,nt]),{localeMatcher:st,formatMatcher:ot(["basic","best fit"]),timeZone:tt,hour12:$,weekday:ct,era:ct,year:lt,month:ot(["numeric","2-digit","narrow","short","long"]),day:lt,hour:lt,minute:lt,second:lt,timeZoneName:ot(["short","long"])}),mt={localeMatcher:st,style:ot(["decimal","currency","percent"]),currency:tt,currencyDisplay:ot(["symbol","code","name"]),useGrouping:$,minimumIntegerDigits:Q,minimumFractionDigits:Q,maximumFractionDigits:Q,minimumSignificantDigits:Q,maximumSignificantDigits:Q},vt={style:ot(["best fit","numeric"]),units:ot(["second","minute","hour","day","month","year"])},yt={style:ot(["cardinal","ordinal"])},gt=Object.keys(dt),bt={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},wt=/[&><"']/g,kt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};G(this,t);var o="ordinal"===n.style,r=m(f(e));this.format=function(t){return r(t,o)}},_t=Object.keys(ft),Ot=Object.keys(mt),Ct=Object.keys(vt),Tt=Object.keys(yt),Nt={second:60,minute:60,hour:24,day:30,month:12},xt=Object.freeze({formatDate:g,formatTime:b,formatRelative:w,formatNumber:k,formatPlural:_,formatMessage:O,formatHTMLMessage:C}),jt=Object.keys(dt),Et=Object.keys(pt),Mt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},St=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));R()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var r=n.intl,a=void 0;a=isFinite(t.initialNow)?Number(t.initialNow):r?r.now():Date.now();var i=r||{},s=i.formatters,c=void 0===s?{getDateTimeFormat:W()(Intl.DateTimeFormat),getNumberFormat:W()(Intl.NumberFormat),getMessageFormat:W()(S.a),getRelativeFormat:W()(L.a),getPluralFormat:W()(kt)}:s;return o.state=K({},c,{now:function(){return o._didDisplay?Date.now():a}}),o}return J(e,t),z(e,[{key:"getConfig",value:function(){var t=this.context.intl,e=s(this.props,jt,t);for(var n in Mt)void 0===e[n]&&(e[n]=Mt[n]);if(!r(e.locale)){var o=e,a=(o.locale,o.defaultLocale),i=o.defaultFormats;e=K({},e,{locale:a,formats:i,messages:Mt.messages})}return e}},{key:"getBoundFormatFns",value:function(t,e){return Et.reduce(function(n,o){return n[o]=xt[o].bind(null,t,e),n},{})}},{key:"getChildContext",value:function(){var t=this.getConfig(),e=this.getBoundFormatFns(t,this.state),n=this.state,o=n.now,r=Z(n,["now"]);return{intl:K({},t,e,{formatters:r,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return F.Children.only(this.props.children)}}]),e}(F.Component);St.displayName="IntlProvider",St.contextTypes={intl:ht},St.childContextTypes={intl:ht.isRequired};var Pt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatDate,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):H.a.createElement(n,null,i)}}]),e}(F.Component);Pt.displayName="FormattedDate",Pt.contextTypes={intl:ht};var Lt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatTime,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):H.a.createElement(n,null,i)}}]),e}(F.Component);Lt.displayName="FormattedTime",Lt.contextTypes={intl:ht};var Dt=1e3,It=6e4,Ft=36e5,Ht=864e5,At=2147483647,Rt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));c(n);var r=isFinite(t.initialNow)?Number(t.initialNow):n.intl.now();return o.state={now:r},o}return J(e,t),z(e,[{key:"scheduleNextUpdate",value:function(t,e){var n=this;clearTimeout(this._timer);var o=t.value,r=t.units,a=t.updateInterval,i=new Date(o).getTime();if(a&&isFinite(i)){var s=i-e.now,c=N(r||T(s)),l=Math.abs(s%c),u=s<0?Math.max(a,c-l):Math.max(a,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},u)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(t){x(t.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"componentWillUpdate",value:function(t,e){this.scheduleNextUpdate(t,e)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var t=this.context.intl,e=t.formatRelative,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,K({},this.props,this.state));return"function"==typeof a?a(i):H.a.createElement(n,null,i)}}]),e}(F.Component);Rt.displayName="FormattedRelative",Rt.contextTypes={intl:ht},Rt.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatNumber,n=t.textComponent,o=this.props,r=o.value,a=o.children,i=e(r,this.props);return"function"==typeof a?a(i):H.a.createElement(n,null,i)}}]),e}(F.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ht};var Wt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return u.apply(void 0,[this].concat(e))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatPlural,n=t.textComponent,o=this.props,r=o.value,a=o.other,i=o.children,s=e(r,this.props),c=this.props[s]||a;return"function"==typeof i?i(c):H.a.createElement(n,null,c)}}]),e}(F.Component);Wt.displayName="FormattedPlural",Wt.contextTypes={intl:ht},Wt.defaultProps={style:"cardinal"};var qt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=K({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatMessage,n=t.textComponent,o=this.props,r=o.id,a=o.description,i=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d=void 0,p=void 0,h=void 0;if(s&&Object.keys(s).length>0){var f=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var t=0;return function(){return"ELEMENT-"+f+"-"+(t+=1)}}();d="@__"+f+"__@",p={},h={},Object.keys(s).forEach(function(t){var e=s[t];if(Object(F.isValidElement)(e)){var n=m();p[t]=d+n+d,h[n]=e}else p[t]=e})}var v={id:r,description:a,defaultMessage:i},y=e(v,p||s),g=void 0;return g=h&&Object.keys(h).length>0?y.split(d).filter(function(t){return!!t}).map(function(t){return h[t]||t}):[y],"function"==typeof u?u.apply(void 0,X(g)):F.createElement.apply(void 0,[l,null].concat(X(g)))}}]),e}(F.Component);qt.displayName="FormattedMessage",qt.contextTypes={intl:ht},qt.defaultProps={values:{}};var Bt=function(t){function e(t,n){G(this,e);var o=Y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return c(n),o}return J(e,t),z(e,[{key:"shouldComponentUpdate",value:function(t){var e=this.props.values;if(!l(t.values,e))return!0;for(var n=K({},t,{values:e}),o=arguments.length,r=Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return u.apply(void 0,[this,n].concat(r))}},{key:"render",value:function(){var t=this.context.intl,e=t.formatHTMLMessage,n=t.textComponent,o=this.props,r=o.id,a=o.description,i=o.defaultMessage,s=o.values,c=o.tagName,l=void 0===c?n:c,u=o.children,d={id:r,description:a,defaultMessage:i},p=e(d,s);if("function"==typeof u)return u(p);var h={__html:p};return H.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),e}(F.Component);Bt.displayName="FormattedHTMLMessage",Bt.contextTypes={intl:ht},Bt.defaultProps={values:{}},o(q),o(E.a)},659:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(76);Object(o.a)().then(function(){n(660).default()}).catch(function(t){console.error(t)})},660:function(t,e,n){"use strict";function o(){if(d.start("main()"),window.history&&history.replaceState){var t=window.location,e=t.pathname,o=t.search,i=t.hash,c=e+o+i;/^\/web($|\/)/.test(c)||history.replaceState(null,document.title,"/web"+c)}Object(u.default)(function(){var t=document.getElementById("mastodon"),e=JSON.parse(t.getAttribute("data-props"));l.a.render(s.a.createElement(a.a,e),t),n(684).install(),a.b.dispatch(r.f()),d.stop("main()")})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(157),a=n(661),i=n(0),s=n.n(i),c=n(20),l=n.n(c),u=n(90),d=n(683);e.default=o},661:function(t,e,n){"use strict";n.d(e,"b",function(){return j}),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(9),f=n(122),m=n(662),v=n(45),y=n(151),g=n(663),b=n(205),w=n(33),k=n(71),_=n(6),O=n(7),C=n(12),T=Object(O.getLocale)(),N=T.localeData,x=T.messages;Object(_.e)(N);var j=Object(f.a)(),E=Object(w.b)(C.d);j.dispatch(E),j.dispatch(Object(b.b)());var M=function(t){function e(){return i()(this,e),c()(this,t.apply(this,arguments))}return u()(e,t),e.prototype.componentDidMount=function(){if(this.disconnect=j.dispatch(Object(k.e)()),void 0!==window.Notification&&"default"===Notification.permission&&window.setTimeout(function(){return Notification.requestPermission()},6e4),void 0!==navigator.registerProtocolHandler){var t=window.location.protocol+"//"+window.location.host+"/intent?uri=%s";window.setTimeout(function(){return navigator.registerProtocolHandler("web+mastodon",t,"Mastodon")},3e5)}j.dispatch(Object(m.a)())},e.prototype.componentWillUnmount=function(){this.disconnect&&(this.disconnect(),this.disconnect=null)},e.prototype.render=function(){var t=this.props.locale;return r()(_.d,{locale:t,messages:x},void 0,r()(h.Provider,{store:j},void 0,r()(v.a,{basename:"/web"},void 0,r()(y.b,{},void 0,r()(v.e,{path:"/",component:g.a})))))},e}(p.a.PureComponent)},662:function(t,e,n){"use strict";function o(){return function(t,e){e().getIn(["settings","onboarded"])||(t(Object(r.d)("ONBOARDING")),t(Object(a.c)(["onboarded"],!0)),t(Object(a.d)()))}}e.a=o;var r=n(26),a=n(58)},663:function(t,e,n){"use strict";n.d(e,"a",function(){return z});var o,r,a,i,s=n(2),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),f=n.n(h),m=n(34),v=n.n(m),y=n(10),g=n.n(y),b=n(0),w=n.n(b),k=n(242),_=n(5),O=n.n(_),C=n(245),T=n(246),N=n(247),x=n(9),j=n(45),E=n(35),M=n(18),S=n(19),P=n(101),L=n(95),D=n(678),I=n(679),F=n(680),H=n(59),A=n(156),R=(n.n(A),n(12)),U=n(6),W=(n(152),Object(U.f)({beforeUnload:{id:"ui.beforeunload",defaultMessage:"Your draft will be lost if you leave Mastodon."}})),q=function(t){return{isComposing:t.getIn(["compose","is_composing"]),hasComposingText:""!==t.getIn(["compose","text"]),dropdownMenuIsOpen:null!==t.getIn(["dropdown_menu","openId"])}},B={help:"?",new:"n",search:"s",forceNew:"option+n",focusColumn:["1","2","3","4","5","6","7","8","9"],reply:"r",favourite:"f",boost:"b",mention:"m",open:["enter","o"],openProfile:"p",moveDown:["down","j"],moveUp:["up","k"],back:"backspace",goToHome:"g h",goToNotifications:"g n",goToLocal:"g l",goToFederated:"g t",goToStart:"g s",goToFavourites:"g f",goToProfile:"g u",goToBlocked:"g b"},G=function(t){function e(){var n,o,r;u()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(i))),o.state={mobile:Object(E.b)(window.innerWidth)},o.handleResize=v()(function(){o.props.onLayoutChange(),o.setState({mobile:Object(E.b)(window.innerWidth)})},500,{trailing:!0}),o.setRef=function(t){o.node=t.getWrappedInstance().getWrappedInstance()},r=n,p()(o,r)}return f()(e,t),e.prototype.componentWillMount=function(){window.addEventListener("resize",this.handleResize,{passive:!0})},e.prototype.componentDidUpdate=function(t){[this.props.location.pathname,"/"].includes(t.location.pathname)||this.node.handleChildrenContentChange()},e.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleResize)},e.prototype.render=function(){var t=this.props.children,e=this.state.mobile;return w.a.createElement(F.a,{ref:this.setRef,singleColumn:e},c()(D.b,{},void 0,c()(j.d,{from:"/",to:"/getting-started",exact:!0}),c()(D.a,{path:"/getting-started",component:H.m,content:t}),c()(D.a,{path:"/keyboard-shortcuts",component:H.p,content:t}),c()(D.a,{path:"/timelines/home",component:H.o,content:t}),c()(D.a,{path:"/timelines/public",exact:!0,component:H.v,content:t}),c()(D.a,{path:"/timelines/public/local",component:H.d,content:t}),c()(D.a,{path:"/timelines/tag/:id",component:H.n,content:t}),c()(D.a,{path:"/timelines/list/:id",component:H.r,content:t}),c()(D.a,{path:"/notifications",component:H.t,content:t}),c()(D.a,{path:"/favourites",component:H.g,content:t}),c()(D.a,{path:"/search",component:H.e,content:t,componentParams:{isSearchPage:!0}}),c()(D.a,{path:"/statuses/new",component:H.e,content:t}),c()(D.a,{path:"/statuses/:statusId",exact:!0,component:H.x,content:t}),c()(D.a,{path:"/statuses/:statusId/reblogs",component:H.w,content:t}),c()(D.a,{path:"/statuses/:statusId/favourites",component:H.h,content:t}),c()(D.a,{path:"/accounts/:accountId",exact:!0,component:H.b,content:t}),c()(D.a,{path:"/accounts/:accountId/with_replies",component:H.b,content:t,componentParams:{withReplies:!0}}),c()(D.a,{path:"/accounts/:accountId/followers",component:H.j,content:t}),c()(D.a,{path:"/accounts/:accountId/following",component:H.k,content:t}),c()(D.a,{path:"/accounts/:accountId/media",component:H.a,content:t}),c()(D.a,{path:"/follow_requests",component:H.i,content:t}),c()(D.a,{path:"/blocks",component:H.c,content:t}),c()(D.a,{component:H.l,content:t})))},e}(w.a.PureComponent),z=(o=Object(x.connect)(q))(r=Object(U.g)(r=Object(j.g)((i=a=function(t){function e(){var n,o,r;u()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(i))),o.state={draggingOver:!1},o.handleBeforeUnload=function(t){var e=o.props,n=e.intl,r=e.isComposing,a=e.hasComposingText;r&&a&&(t.returnValue=n.formatMessage(W.beforeUnload))},o.handleLayoutChange=function(){o.props.dispatch(Object(L.c)())},o.handleDragEnter=function(t){t.preventDefault(),o.dragTargets||(o.dragTargets=[]),-1===o.dragTargets.indexOf(t.target)&&o.dragTargets.push(t.target),t.dataTransfer&&t.dataTransfer.types.includes("Files")&&o.setState({draggingOver:!0})},o.handleDragOver=function(t){t.preventDefault(),t.stopPropagation();try{t.dataTransfer.dropEffect="copy"}catch(t){}return!1},o.handleDrop=function(t){t.preventDefault(),o.setState({draggingOver:!1}),t.dataTransfer&&1===t.dataTransfer.files.length&&o.props.dispatch(Object(M.Z)(t.dataTransfer.files))},o.handleDragLeave=function(t){t.preventDefault(),t.stopPropagation(),o.dragTargets=o.dragTargets.filter(function(e){return e!==t.target&&o.node.contains(e)}),o.dragTargets.length>0||o.setState({draggingOver:!1})},o.closeUploadModal=function(){o.setState({draggingOver:!1})},o.handleServiceWorkerPostMessage=function(t){var e=t.data;"navigate"===e.type?o.context.router.history.push(e.path):console.warn("Unknown message type:",e.type)},o.setRef=function(t){o.node=t},o.handleHotkeyNew=function(t){t.preventDefault();var e=o.node.querySelector(".compose-form__autosuggest-wrapper textarea");e&&e.focus()},o.handleHotkeySearch=function(t){t.preventDefault();var e=o.node.querySelector(".search__input");e&&e.focus()},o.handleHotkeyForceNew=function(t){o.handleHotkeyNew(t),o.props.dispatch(Object(M.U)())},o.handleHotkeyFocusColumn=function(t){var e=1*t.key+1,n=o.node.querySelector(".column:nth-child("+e+")");if(n){var r=n.querySelector(".focusable");r&&r.focus()}},o.handleHotkeyBack=function(){window.history&&1===window.history.length?o.context.router.history.push("/"):o.context.router.history.goBack()},o.setHotkeysRef=function(t){o.hotkeys=t},o.handleHotkeyToggleHelp=function(){"/keyboard-shortcuts"===o.props.location.pathname?o.context.router.history.goBack():o.context.router.history.push("/keyboard-shortcuts")},o.handleHotkeyGoToHome=function(){o.context.router.history.push("/timelines/home")},o.handleHotkeyGoToNotifications=function(){o.context.router.history.push("/notifications")},o.handleHotkeyGoToLocal=function(){o.context.router.history.push("/timelines/public/local")},o.handleHotkeyGoToFederated=function(){o.context.router.history.push("/timelines/public")},o.handleHotkeyGoToStart=function(){o.context.router.history.push("/getting-started")},o.handleHotkeyGoToFavourites=function(){o.context.router.history.push("/favourites")},o.handleHotkeyGoToProfile=function(){o.context.router.history.push("/accounts/"+R.g)},o.handleHotkeyGoToBlocked=function(){o.context.router.history.push("/blocks")},r=n,p()(o,r)}return f()(e,t),e.prototype.componentWillMount=function(){window.addEventListener("beforeunload",this.handleBeforeUnload,!1),document.addEventListener("dragenter",this.handleDragEnter,!1),document.addEventListener("dragover",this.handleDragOver,!1),document.addEventListener("drop",this.handleDrop,!1),document.addEventListener("dragleave",this.handleDragLeave,!1),document.addEventListener("dragend",this.handleDragEnd,!1),"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",this.handleServiceWorkerPostMessage),this.props.dispatch(Object(S.o)()),this.props.dispatch(Object(P.h)())},e.prototype.componentDidMount=function(){this.hotkeys.__mousetrap__.stopCallback=function(t,e){return["TEXTAREA","SELECT","INPUT"].includes(e.tagName)}},e.prototype.componentWillUnmount=function(){window.removeEventListener("beforeunload",this.handleBeforeUnload),document.removeEventListener("dragenter",this.handleDragEnter),document.removeEventListener("dragover",this.handleDragOver),document.removeEventListener("drop",this.handleDrop),document.removeEventListener("dragleave",this.handleDragLeave),document.removeEventListener("dragend",this.handleDragEnd)},e.prototype.render=function(){var t=this.state.draggingOver,e=this.props,n=e.children,o=e.isComposing,r=e.location,a=e.dropdownMenuIsOpen,i={help:this.handleHotkeyToggleHelp,new:this.handleHotkeyNew,search:this.handleHotkeySearch,forceNew:this.handleHotkeyForceNew,focusColumn:this.handleHotkeyFocusColumn,back:this.handleHotkeyBack,goToHome:this.handleHotkeyGoToHome,goToNotifications:this.handleHotkeyGoToNotifications,goToLocal:this.handleHotkeyGoToLocal,goToFederated:this.handleHotkeyGoToFederated,goToStart:this.handleHotkeyGoToStart,goToFavourites:this.handleHotkeyGoToFavourites,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked};return w.a.createElement(A.HotKeys,{keyMap:B,handlers:i,ref:this.setHotkeysRef},w.a.createElement("div",{className:g()("ui",{"is-composing":o}),ref:this.setRef,style:{pointerEvents:a?"none":null}},c()(T.a,{}),c()(G,{location:r,onLayoutChange:this.handleLayoutChange},void 0,n),c()(k.a,{}),c()(C.a,{className:"loading-bar"}),c()(N.a,{}),c()(I.a,{active:t,onClose:this.closeUploadModal})))},e}(w.a.PureComponent),a.contextTypes={router:O.a.object.isRequired},r=i))||r)||r)||r},678:function(t,e,n){"use strict";n.d(e,"b",function(){return O}),n.d(e,"a",function(){return C});var o,r,a=n(30),i=n.n(a),s=n(29),c=n.n(s),l=n(2),u=n.n(l),d=n(1),p=n.n(d),h=n(3),f=n.n(h),m=n(4),v=n.n(m),y=n(0),g=n.n(y),b=n(45),w=n(251),k=n(252),_=n(145),O=function(t){function e(){return p()(this,e),f()(this,t.apply(this,arguments))}return v()(e,t),e.prototype.render=function(){var t=this.props,e=t.multiColumn,n=t.children;return u()(b.f,{},void 0,g.a.Children.map(n,function(t){return g.a.cloneElement(t,{multiColumn:e})}))},e}(g.a.PureComponent),C=(r=o=function(t){function e(){var n,o,r;p()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=f()(this,t.call.apply(t,[this].concat(i))),o.renderComponent=function(t){var e=t.match,n=o.props,r=n.component,a=n.content,i=n.multiColumn,s=n.componentParams;return u()(_.a,{fetchComponent:r,loading:o.renderLoading,error:o.renderError},void 0,function(t){return g.a.createElement(t,c()({params:e.params,multiColumn:i},s),a)})},o.renderLoading=function(){return u()(w.a,{})},o.renderError=function(t){return g.a.createElement(k.a,t)},r=n,f()(o,r)}return v()(e,t),e.prototype.render=function(){var t=this.props,e=(t.component,t.content,i()(t,["component","content"]));return g.a.createElement(b.e,c()({},e,{render:this.renderComponent}))},e}(g.a.Component),o.defaultProps={componentParams:{}},r)},679:function(t,e,n){"use strict";n.d(e,"a",function(){return y});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(28),f=n(27),m=n.n(f),v=n(6),y=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.handleKeyUp=function(t){var e=t.keyCode;if(o.props.active)switch(e){case 27:t.preventDefault(),t.stopPropagation(),o.props.onClose()}},r=n,c()(o,r)}return u()(e,t),e.prototype.componentDidMount=function(){window.addEventListener("keyup",this.handleKeyUp,!1)},e.prototype.componentWillUnmount=function(){window.removeEventListener("keyup",this.handleKeyUp)},e.prototype.render=function(){var t=this.props.active;return r()(h.a,{defaultStyle:{backgroundOpacity:0,backgroundScale:.95},style:{backgroundOpacity:m()(t?1:0,{stiffness:150,damping:15}),backgroundScale:m()(t?1:.95,{stiffness:200,damping:3})}},void 0,function(e){var n=e.backgroundOpacity,o=e.backgroundScale;return r()("div",{className:"upload-area",style:{visibility:t?"visible":"hidden",opacity:n}},void 0,r()("div",{className:"upload-area__drop"},void 0,r()("div",{className:"upload-area__background",style:{transform:"scale("+o+")"}}),r()("div",{className:"upload-area__content"},void 0,r()(v.b,{id:"upload_area.title",defaultMessage:"Drag & drop to upload"}))))})},e}(p.a.PureComponent)},680:function(t,e,n){"use strict";var o=n(9),r=n(681),a=function(t){return{columns:t.getIn(["settings","columns"]),isModalOpen:!!t.get("modal").modalType}};e.a=Object(o.connect)(a,null,null,{withRef:!0})(r.a)},681:function(t,e,n){"use strict";n.d(e,"a",function(){return A});var o,r,a,i,s=n(2),c=n.n(s),l=n(1),u=n.n(l),d=n(3),p=n.n(d),h=n(4),f=n.n(h),m=n(0),v=n.n(m),y=n(5),g=n.n(y),b=n(6),w=n(13),k=n.n(w),_=n(11),O=n.n(_),C=n(158),T=n.n(C),N=n(246),x=n(45),j=n(145),E=n(251),M=n(682),S=n(252),P=n(59),L=n(47),D=n.n(L),I=n(91),F={COMPOSE:P.e,HOME:P.o,NOTIFICATIONS:P.t,PUBLIC:P.v,COMMUNITY:P.d,HASHTAG:P.n,FAVOURITES:P.g,LIST:P.r},H=function(t){return t.match(/^\/statuses\//)},A=(o=function(t){return Object(b.g)(t,{withRef:!0})})((i=a=function(t){function e(){var n,o,r;u()(this,e);for(var a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return n=o=p()(this,t.call.apply(t,[this].concat(i))),o.state={shouldAnimate:!1},o.handleSwipe=function(t){o.pendingIndex=t;var e=N.d[t].props["data-preview-title-id"],n='.tabs-bar__link[data-preview-title-id="'+e+'"]';document.querySelector(".tabs-bar__link.active").classList.remove("active"),document.querySelector(n).classList.add("active")},o.handleAnimationEnd=function(){"number"==typeof o.pendingIndex&&(o.context.router.history.push(Object(N.c)(o.pendingIndex)),o.pendingIndex=null)},o.handleWheel=function(){"function"==typeof o._interruptScrollAnimation&&o._interruptScrollAnimation()},o.setRef=function(t){o.node=t},o.renderView=function(t,e){var n=Object(N.b)(o.context.router.history.location.pathname),r=o.props.intl.formatMessage({id:t.props["data-preview-title-id"]}),a=t.props["data-preview-icon"],i=e===n?v.a.cloneElement(o.props.children):c()(E.a,{title:r,icon:a});return c()("div",{className:"columns-area"},e,i)},o.renderLoading=function(t){return function(){return"COMPOSE"===t?c()(M.a,{}):c()(E.a,{})}},o.renderError=function(t){return v.a.createElement(S.a,t)},r=n,p()(o,r)}return f()(e,t),e.prototype.componentWillReceiveProps=function(){this.setState({shouldAnimate:!1})},e.prototype.componentDidMount=function(){this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!D.a.hasSupport&&{passive:!0}),this.lastIndex=Object(N.b)(this.context.router.history.location.pathname),this.isRtlLayout=document.getElementsByTagName("body")[0].classList.contains("rtl"),this.setState({shouldAnimate:!0})},e.prototype.componentWillUpdate=function(t){this.props.singleColumn!==t.singleColumn&&t.singleColumn&&this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.componentDidUpdate=function(t){this.props.singleColumn===t.singleColumn||this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!D.a.hasSupport&&{passive:!0}),this.lastIndex=Object(N.b)(this.context.router.history.location.pathname),this.setState({shouldAnimate:!0})},e.prototype.componentWillUnmount=function(){this.props.singleColumn||this.node.removeEventListener("wheel",this.handleWheel)},e.prototype.handleChildrenContentChange=function(){if(!this.props.singleColumn){var t=this.isRtlLayout?-1:1;this._interruptScrollAnimation=Object(I.a)(this.node,(this.node.scrollWidth-window.innerWidth)*t)}},e.prototype.render=function(){var t=this,e=this.props,n=e.columns,o=e.children,r=e.singleColumn,a=e.isModalOpen,i=this.state.shouldAnimate,s=Object(N.b)(this.context.router.history.location.pathname);if(this.pendingIndex=null,r){var l=H(this.context.router.history.location.pathname)?null:c()(x.b,{to:"/statuses/new",className:"floating-action-button"},"floating-action-button",c()("i",{className:"fa fa-pencil"}));return-1!==s?[c()(T.a,{index:s,onChangeIndex:this.handleSwipe,onTransitionEnd:this.handleAnimationEnd,animateTransitions:i,springConfig:{duration:"400ms",delay:"0s",easeFunction:"ease"},style:{height:"100%"}},"content",N.d.map(this.renderView)),l]:[c()("div",{className:"columns-area"},void 0,o),l]}return v.a.createElement("div",{className:"columns-area "+(a?"unscrollable":""),ref:this.setRef},n.map(function(e){var n=null===e.get("params",null)?null:e.get("params").toJS();return c()(j.a,{fetchComponent:F[e.get("id")],loading:t.renderLoading(e.get("id")),error:t.renderError},e.get("uuid"),function(t){return c()(t,{columnId:e.get("uuid"),params:n,multiColumn:!0})})}),v.a.Children.map(o,function(t){return v.a.cloneElement(t,{multiColumn:!0})}))},e}(O.a),a.contextTypes={router:g.a.object.isRequired},a.propTypes={intl:g.a.object.isRequired,columns:k.a.list.isRequired,isModalOpen:g.a.bool.isRequired,singleColumn:g.a.bool,children:g.a.node},r=i))||r},682:function(t,e,n){"use strict";var o=n(2),r=n.n(o),a=n(0),i=(n.n(a),function(){return r()("div",{className:"drawer"},void 0,r()("div",{className:"drawer__pager"},void 0,r()("div",{className:"drawer__inner"})))});e.a=i},683:function(t,e,n){"use strict";function o(t){}function r(t){}Object.defineProperty(e,"__esModule",{value:!0}),e.start=o,e.stop=r},684:function(t,e){function n(){return"serviceWorker"in navigator&&(window.fetch||"imageRendering"in document.documentElement.style)&&("https:"===window.location.protocol||"localhost"===window.location.hostname||0===window.location.hostname.indexOf("127."))}function o(t){if(t||(t={}),n()){navigator.serviceWorker.register("/sw.js")}else if(window.applicationCache){var e=function(){var t=document.createElement("iframe");t.src="/packs/appcache/manifest.html",t.style.display="none",i=t,document.body.appendChild(t)};return void("complete"===document.readyState?setTimeout(e):window.addEventListener("load",e))}}function r(t,e){}function a(){if(n()&&navigator.serviceWorker.getRegistration().then(function(t){if(t)return t.update()}),i)try{i.contentWindow.applicationCache.update()}catch(t){}}var i;e.install=o,e.applyUpdate=r,e.update=a}},[659]);
//# sourceMappingURL=application.js.map