mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
2 lines
45 KiB
JavaScript
2 lines
45 KiB
JavaScript
webpackJsonp([36],{155: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)},251: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(32),m=n.n(f),v=n(0),y=n.n(v),g=n(44),b=n(7),w=n(43),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},252: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(71),y=n(70),g=n(12),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)},253: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(7),f=n(274),m=n(155),v=n(288),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)},274: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(32),p=n.n(d),h=n(0),f=n.n(h),m=n(155),v=n(91),y=n(43),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)},276: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(7),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)},288: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(7)),h=n(276),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)},662:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(77);Object(o.a)().then(function(){n(663).default()}).catch(function(t){console.error(t)})},663: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(676).install(),a.b.dispatch(r.f()),d.stop("main()")})}Object.defineProperty(e,"__esModule",{value:!0});var r=n(163),a=n(664),i=n(0),s=n.n(i),c=n(20),l=n.n(c),u=n(89),d=n(675);e.default=o},664: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(126),m=n(665),v=n(44),y=n(156),g=n(666),b=n(210),w=n(31),k=n(72),_=n(7),O=n(6),T=n(13),C=Object(O.getLocale)(),x=C.localeData,N=C.messages;Object(_.e)(x);var j=Object(f.a)(),E=Object(w.b)(T.c);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.f)()),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:N},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)},665: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(56)},666: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(32),v=n.n(m),y=n(10),g=n.n(y),b=n(0),w=n.n(b),k=n(247),_=n(5),O=n.n(_),T=n(250),C=n(251),x=n(150),N=n(9),j=n(44),E=n(43),M=n(17),P=n(19),S=n(103),D=n(94),L=n(670),I=n(671),H=n(672),F=n(58),A=n(162),R=(n.n(A),n(13)),U=n(7),W=(n(158),Object(U.f)({beforeUnload:{id:"ui.beforeunload",defaultMessage:"Your draft will be lost if you leave Mastodon."}})),G=function(t){return{isComposing:t.getIn(["compose","is_composing"]),hasComposingText:""!==t.getIn(["compose","text"]),dropdownMenuIsOpen:null!==t.getIn(["dropdown_menu","openId"])}},q={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",goToDirect:"g d",goToStart:"g s",goToFavourites:"g f",goToPinned:"g p",goToProfile:"g u",goToBlocked:"g b",goToMuted:"g m",toggleHidden:"x"},B=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,n=e?c()(j.d,{from:"/",to:"/timelines/home",exact:!0}):c()(j.d,{from:"/",to:"/getting-started",exact:!0});return w.a.createElement(H.a,{ref:this.setRef,singleColumn:e},c()(L.b,{},void 0,n,c()(L.a,{path:"/getting-started",component:F.p,content:t}),c()(L.a,{path:"/keyboard-shortcuts",component:F.s,content:t}),c()(L.a,{path:"/timelines/home",component:F.r,content:t}),c()(L.a,{path:"/timelines/public",exact:!0,component:F.C,content:t}),c()(L.a,{path:"/timelines/public/media",component:F.C,content:t,componentParams:{onlyMedia:!0}}),c()(L.a,{path:"/timelines/public/local",exact:!0,component:F.d,content:t}),c()(L.a,{path:"/timelines/public/local/media",component:F.d,content:t,componentParams:{onlyMedia:!0}}),c()(L.a,{path:"/timelines/direct",component:F.f,content:t}),c()(L.a,{path:"/timelines/tag/:id",component:F.q,content:t}),c()(L.a,{path:"/timelines/list/:id",component:F.u,content:t}),c()(L.a,{path:"/notifications",component:F.z,content:t}),c()(L.a,{path:"/favourites",component:F.j,content:t}),c()(L.a,{path:"/pinned",component:F.B,content:t}),c()(L.a,{path:"/search",component:F.e,content:t,componentParams:{isSearchPage:!0}}),c()(L.a,{path:"/statuses/new",component:F.e,content:t}),c()(L.a,{path:"/statuses/:statusId",exact:!0,component:F.F,content:t}),c()(L.a,{path:"/statuses/:statusId/reblogs",component:F.D,content:t}),c()(L.a,{path:"/statuses/:statusId/favourites",component:F.k,content:t}),c()(L.a,{path:"/accounts/:accountId",exact:!0,component:F.b,content:t}),c()(L.a,{path:"/accounts/:accountId/with_replies",component:F.b,content:t,componentParams:{withReplies:!0}}),c()(L.a,{path:"/accounts/:accountId/followers",component:F.m,content:t}),c()(L.a,{path:"/accounts/:accountId/following",component:F.n,content:t}),c()(L.a,{path:"/accounts/:accountId/media",component:F.a,content:t}),c()(L.a,{path:"/follow_requests",component:F.l,content:t}),c()(L.a,{path:"/blocks",component:F.c,content:t}),c()(L.a,{path:"/domain_blocks",component:F.g,content:t}),c()(L.a,{path:"/mutes",component:F.y,content:t}),c()(L.a,{path:"/lists",component:F.v,content:t}),c()(L.a,{component:F.o,content:t})))},e}(w.a.PureComponent),z=(o=Object(N.connect)(G))(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(D.c)())},o.handleDragEnter=function(t){t.preventDefault(),o.dragTargets||(o.dragTargets=[]),-1===o.dragTargets.indexOf(t.target)&&o.dragTargets.push(t.target),t.dataTransfer&&Array.from(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.handleHotkeyGoToDirect=function(){o.context.router.history.push("/timelines/direct")},o.handleHotkeyGoToStart=function(){o.context.router.history.push("/getting-started")},o.handleHotkeyGoToFavourites=function(){o.context.router.history.push("/favourites")},o.handleHotkeyGoToPinned=function(){o.context.router.history.push("/pinned")},o.handleHotkeyGoToProfile=function(){o.context.router.history.push("/accounts/"+R.i)},o.handleHotkeyGoToBlocked=function(){o.context.router.history.push("/blocks")},o.handleHotkeyGoToMuted=function(){o.context.router.history.push("/mutes")},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(P.p)()),this.props.dispatch(Object(S.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,goToDirect:this.handleHotkeyGoToDirect,goToStart:this.handleHotkeyGoToStart,goToFavourites:this.handleHotkeyGoToFavourites,goToPinned:this.handleHotkeyGoToPinned,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked,goToMuted:this.handleHotkeyGoToMuted};return w.a.createElement(A.HotKeys,{keyMap:q,handlers:i,ref:this.setHotkeysRef},w.a.createElement("div",{className:g()("ui",{"is-composing":o}),ref:this.setRef,style:{pointerEvents:a?"none":null}},c()(C.a,{}),c()(B,{location:r,onLayoutChange:this.handleLayoutChange},void 0,n),c()(k.a,{}),c()(T.a,{className:"loading-bar"}),c()(x.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},670:function(t,e,n){"use strict";n.d(e,"b",function(){return O}),n.d(e,"a",function(){return T});var o,r,a=n(55),i=n.n(a),s=n(34),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(44),w=n(252),k=n(253),_=n(151),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),T=(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)},671: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(7),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)},672:function(t,e,n){"use strict";var o=n(9),r=n(673),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)},673:function(t,e,n){"use strict";n.d(e,"a",function(){return U});var o,r,a,i,s=n(34),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(5),w=n.n(b),k=n(7),_=n(14),O=n.n(_),T=n(12),C=n.n(T),x=n(164),N=n.n(x),j=n(251),E=n(44),M=n(151),P=n(252),S=n(674),D=n(253),L=n(58),I=n(45),H=n.n(I),F=n(91),A={COMPOSE:L.e,HOME:L.r,NOTIFICATIONS:L.z,PUBLIC:L.C,COMMUNITY:L.d,HASHTAG:L.q,DIRECT:L.f,FAVOURITES:L.j,LIST:L.u},R=function(t){return t.match(/^\/statuses\//)},U=(o=function(t){return Object(k.g)(t,{withRef:!0})})((i=a=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.state={shouldAnimate:!1},o.handleSwipe=function(t){o.pendingIndex=t;var e=j.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(j.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(j.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?g.a.cloneElement(o.props.children):u()(P.a,{title:r,icon:a});return u()("div",{className:"columns-area"},e,i)},o.renderLoading=function(t){return function(){return"COMPOSE"===t?u()(S.a,{}):u()(P.a,{})}},o.renderError=function(t){return g.a.createElement(D.a,t)},r=n,f()(o,r)}return v()(e,t),e.prototype.componentWillReceiveProps=function(){this.setState({shouldAnimate:!1})},e.prototype.componentDidMount=function(){this.props.singleColumn||this.node.addEventListener("wheel",this.handleWheel,!!H.a.hasSupport&&{passive:!0}),this.lastIndex=Object(j.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,!!H.a.hasSupport&&{passive:!0}),this.lastIndex=Object(j.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(F.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(j.b)(this.context.router.history.location.pathname);if(this.pendingIndex=null,r){var l=R(this.context.router.history.location.pathname)?null:u()(E.b,{to:"/statuses/new",className:"floating-action-button"},"floating-action-button",u()("i",{className:"fa fa-pencil"}));return-1!==s?[u()(N.a,{index:s,onChangeIndex:this.handleSwipe,onTransitionEnd:this.handleAnimationEnd,animateTransitions:i,springConfig:{duration:"400ms",delay:"0s",easeFunction:"ease"},style:{height:"100%"}},"content",j.d.map(this.renderView)),l]:[u()("div",{className:"columns-area"},void 0,o),l]}return g.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(),o=n&&n.other?n.other:{};return u()(M.a,{fetchComponent:A[e.get("id")],loading:t.renderLoading(e.get("id")),error:t.renderError},e.get("uuid"),function(t){return g.a.createElement(t,c()({columnId:e.get("uuid"),params:n,multiColumn:!0},o))})}),g.a.Children.map(o,function(t){return g.a.cloneElement(t,{multiColumn:!0})}))},e}(C.a),a.contextTypes={router:w.a.object.isRequired},a.propTypes={intl:w.a.object.isRequired,columns:O.a.list.isRequired,isModalOpen:w.a.bool.isRequired,singleColumn:w.a.bool,children:w.a.node},r=i))||r},674: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},675:function(t,e,n){"use strict";function o(t){}function r(t){}Object.defineProperty(e,"__esModule",{value:!0}),e.start=o,e.stop=r},676: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},7: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&&(P.a.__addLocaleData(t),D.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!(!P.a.__localeData__[e]||!D.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":q(t))||null===t||"object"!==(void 0===e?"undefined":q(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){B(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 F.a.createElement(t,K({},this.props,V({},o,this.context.intl),{ref:a?"wrappedInstance":null}))}}]),n}(H.Component);return i.displayName="InjectIntl("+d(t)+")",i.contextTypes={intl:ht},i.WrappedComponent=t,i}function h(t){return t}function f(t){return P.a.prototype._resolveLocale(t)}function m(t){return P.a.prototype._findPluralRuleFunction(t)}function v(t){var e=D.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,Tt,u),p=K({},D.a.thresholds);v(xt);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,Ct);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 T(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 C(t){var e=Math.abs(t);return e<It?"second":e<Ht?"minute":e<Ft?"hour":"day"}function x(t){switch(t){case"second":return Lt;case"minute":return It;case"hour":return Ht;case"day":return Ft;default:return At}}function N(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 Pt}),n.d(e,"a",function(){return St}),n.d(e,"c",function(){return Ut}),n.d(e,"b",function(){return Gt});var j=n(107),E=n.n(j),M=n(59),P=n.n(M),S=n(76),D=n.n(S),L=n(5),I=n.n(L),H=n(0),F=n.n(H),A=n(18),R=n.n(A),U=n(108),W=n.n(U),G={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"}}}}},q="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},B=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={"&":"&",">":">","<":"<",'"':""","'":"'"},wt=/[&><"']/g,kt=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(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),Tt=Object.keys(vt),Ct=Object.keys(yt),xt={second:60,minute:60,hour:24,day:30,month:12},Nt=Object.freeze({formatDate:g,formatTime:b,formatRelative:w,formatNumber:k,formatPlural:_,formatMessage:O,formatHTMLMessage:T}),jt=Object.keys(dt),Et=Object.keys(pt),Mt={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Pt=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};B(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()(P.a),getRelativeFormat:W()(D.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]=Nt[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 H.Children.only(this.props.children)}}]),e}(H.Component);Pt.displayName="IntlProvider",Pt.contextTypes={intl:ht},Pt.childContextTypes={intl:ht.isRequired};var St=function(t){function e(t,n){B(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):F.a.createElement(n,null,i)}}]),e}(H.Component);St.displayName="FormattedDate",St.contextTypes={intl:ht};var Dt=function(t){function e(t,n){B(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):F.a.createElement(n,null,i)}}]),e}(H.Component);Dt.displayName="FormattedTime",Dt.contextTypes={intl:ht};var Lt=1e3,It=6e4,Ht=36e5,Ft=864e5,At=2147483647,Rt=function(t){function e(t,n){B(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=x(r||C(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){N(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):F.a.createElement(n,null,i)}}]),e}(H.Component);Rt.displayName="FormattedRelative",Rt.contextTypes={intl:ht},Rt.defaultProps={updateInterval:1e4};var Ut=function(t){function e(t,n){B(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):F.a.createElement(n,null,i)}}]),e}(H.Component);Ut.displayName="FormattedNumber",Ut.contextTypes={intl:ht};var Wt=function(t){function e(t,n){B(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):F.a.createElement(n,null,c)}}]),e}(H.Component);Wt.displayName="FormattedPlural",Wt.contextTypes={intl:ht},Wt.defaultProps={style:"cardinal"};var Gt=function(t){function e(t,n){B(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(H.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)):H.createElement.apply(void 0,[l,null].concat(X(g)))}}]),e}(H.Component);Gt.displayName="FormattedMessage",Gt.contextTypes={intl:ht},Gt.defaultProps={values:{}};var qt=function(t){function e(t,n){B(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 F.a.createElement(l,{dangerouslySetInnerHTML:h})}}]),e}(H.Component);qt.displayName="FormattedHTMLMessage",qt.contextTypes={intl:ht},qt.defaultProps={values:{}},o(G),o(E.a)}},[662]);
|
|
//# sourceMappingURL=application.js.map
|