-webpackJsonp([2],{282:function(e,t,n){"use strict";function o(e){return function(t){t({type:i,account:e}),t(Object(a.d)("MUTE"))}}t.a=o;var a=(n(14),n(22),n(15),n(26)),i="MUTES_INIT_MODAL"},284:function(e,t,n){"use strict";function o(e,t){return function(n){n({type:i,account:e,status:t}),n(Object(a.d)("REPORT"))}}t.a=o;var a=(n(14),n(26)),i="REPORT_INIT"},285:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),s=(n.n(i),n(9)),r=n(152),c=n(66),l=n(18),u=n(67),d=n(22),p=n(91),g=n(282),f=n(284),h=n(26),m=n(6),v=n(11),b=Object(m.f)({deleteConfirm:{id:"confirmations.delete.confirm",defaultMessage:"Delete"},deleteMessage:{id:"confirmations.delete.message",defaultMessage:"Are you sure you want to delete this status?"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}}),y=function(){var e=Object(c.e)();return function(t,n){return{status:e(t,n.id)}}},_=function(e,t){var n=t.intl;return{onReply:function(t,n){e(Object(l.T)(t,n))},onModalReblog:function(t){e(Object(u.l)(t))},onReblog:function(t,n){t.get("reblogged")?e(Object(u.n)(t)):n.shiftKey||!v.b?this.onModalReblog(t):e(Object(h.d)("BOOST",{status:t,onReblog:this.onModalReblog}))},onFavourite:function(t){e(t.get("favourited")?Object(u.m)(t):Object(u.i)(t))},onDelete:function(t){e(v.e?Object(h.d)("CONFIRM",{message:n.formatMessage(b.deleteMessage),confirm:n.formatMessage(b.deleteConfirm),onConfirm:function(){return e(Object(p.f)(t.get("id")))}}):Object(p.f)(t.get("id")))},onMention:function(t,n){e(Object(l.R)(t,n))},onOpenMedia:function(t,n){e(Object(h.d)("MEDIA",{media:t,index:n}))},onOpenVideo:function(t,n){e(Object(h.d)("VIDEO",{media:t,time:n}))},onBlock:function(t){e(Object(h.d)("CONFIRM",{message:a()(m.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(b.blockConfirm),onConfirm:function(){return e(Object(d.q)(t.get("id")))}}))},onReport:function(t){e(Object(f.a)(t.get("account"),t))},onMute:function(t){e(Object(g.a)(t))},onMuteConversation:function(t){e(t.get("muted")?Object(p.k)(t.get("id")):Object(p.i)(t.get("id")))},onToggleHidden:function(t){e(t.get("hidden")?Object(p.j)(t.get("id")):Object(p.h)(t.get("id")))}}};t.a=Object(m.g)(Object(s.connect)(y,_)(r.a))},302:function(e,t,n){"use strict";n.d(t,"a",function(){return A});var o,a,i,s=n(2),r=n.n(s),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),g=n.n(p),f=n(0),h=n.n(f),m=n(303),v=n(101),b=n(13),y=n.n(b),_=n(5),k=n.n(_),w=n(304),C=n(306),j=n(311),x=n(6),M=n(313),O=n(314),S=n(316),N=n(318),D=n(319),z=n(321),I=n(327),T=n(35),F=n(12),R=n.n(F),P=n(98),E=(n.n(P),n(329)),q=n(11),U=Object(x.f)({placeholder:{id:"compose_form.placeholder",defaultMessage:"What is on your mind?"},spoiler_placeholder:{id:"compose_form.spoiler_placeholder",defaultMessage:"Write your warning here"},publish:{id:"compose_form.publish",defaultMessage:"Toot"},publishLoud:{id:"compose_form.publish_loud",defaultMessage:"{publish}!"}}),A=Object(x.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=d()(this,e.call.apply(e,[this].concat(s))),o.handleChange=function(e){o.props.onChange(e.target.value)},o.handleKeyDown=function(e){13===e.keyCode&&(e.ctrlKey||e.metaKey)&&o.handleSubmit()},o.handleSubmit=function(){o.props.text!==o.autosuggestTextarea.textarea.value&&o.props.onChange(o.autosuggestTextarea.textarea.value),o.props.onSubmit()},o.onSuggestionsClearRequested=function(){o.props.onClearSuggestions()},o.onSuggestionsFetchRequested=function(e){o.props.onFetchSuggestions(e)},o.onSuggestionSelected=function(e,t,n){o._restoreCaret=null,o.props.onSuggestionSelected(e,t,n)},o.handleChangeSpoilerText=function(e){o.props.onChangeSpoilerText(e.target.value)},o.setAutosuggestTextarea=function(e){o.autosuggestTextarea=e},o.handleEmojiPick=function(e){var t=o.autosuggestTextarea.textarea.selectionStart,n=e.native;o._restoreCaret=t+n.length+1,o.props.onPickEmoji(t,e)},a=n,d()(o,a)}return g()(t,e),t.prototype.componentWillReceiveProps=function(e){!e.is_uploading&&this.props.is_uploading&&(this._restoreCaret=this.autosuggestTextarea.textarea.selectionStart)},t.prototype.componentDidUpdate=function(e){if(this.props.focusDate!==e.focusDate||e.is_uploading&&!this.props.is_uploading&&"number"==typeof this._restoreCaret){var t=void 0,n=void 0;this.props.preselectDate!==e.preselectDate?(t=this.props.text.length,n=this.props.text.search(/\s/)+1):"number"==typeof this._restoreCaret?(n=this._restoreCaret,t=this._restoreCaret):(t=this.props.text.length,n=t),this.autosuggestTextarea.textarea.setSelectionRange(n,t),this.autosuggestTextarea.textarea.focus()}else e.is_submitting&&!this.props.is_submitting&&this.autosuggestTextarea.textarea.focus()},t.prototype.render=function(){var e=this.props,t=e.intl,n=e.onPaste,o=e.showSearch,a=e.anyMedia,i=this.props.is_submitting,s=[this.props.spoiler_text,Object(E.a)(this.props.text)].join(""),c=i||this.props.is_uploading||Object(P.length)(s)>q.c||0!==s.length&&0===s.trim().length&&!a,l="";return l="private"===this.props.privacy||"direct"===this.props.privacy?r()("span",{className:"compose-form__publish-private"},void 0,r()("i",{className:"fa fa-lock"})," ",t.formatMessage(U.publish)):"unlisted"!==this.props.privacy?t.formatMessage(U.publishLoud,{publish:t.formatMessage(U.publish)}):t.formatMessage(U.publish),r()("div",{className:"compose-form"},void 0,r()(I.a,{}),r()(M.a,{isVisible:this.props.spoiler,fullHeight:50},void 0,r()("div",{className:"spoiler-input"},void 0,r()("label",{},void 0,r()("span",{style:{display:"none"}},void 0,t.formatMessage(U.spoiler_placeholder)),r()("input",{placeholder:t.formatMessage(U.spoiler_placeholder),value:this.props.spoiler_text,onChange:this.handleChangeSpoilerText,onKeyDown:this.handleKeyDown,type:"text",className:"spoiler-input__input",id:"cw-spoiler-input"})))),r()(w.a,{}),r()("div",{className:"compose-form__autosuggest-wrapper"},void 0,h.a.createElement(C.a,{ref:this.setAutosuggestTextarea,placeholder:t.formatMessage(U.placeholder),disabled:i,value:this.props.text,onChange:this.handleChange,suggestions:this.props.suggestions,onKeyDown:this.handleKeyDown,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,onPaste:n,autoFocus:!o&&!Object(T.b)(window.innerWidth)}),r()(D.a,{onPickEmoji:this.handleEmojiPick})),r()("div",{className:"compose-form__modifiers"},void 0,r()(z.a,{})),r()("div",{className:"compose-form__buttons-wrapper"},void 0,r()("div",{className:"compose-form__buttons"},void 0,r()(j.a,{}),r()(S.a,{}),r()(N.a,{}),r()(O.a,{})),r()("div",{className:"character-counter__wrapper"},void 0,r()(m.a,{max:q.c,text:s}))),r()("div",{className:"compose-form__publish"},void 0,r()("div",{className:"compose-form__publish-button-wrapper"},void 0,r()(v.a,{text:l,onClick:this.handleSubmit,disabled:c,block:!0}))))},t}(R.a),a.propTypes={intl:k.a.object.isRequired,text:k.a.string.isRequired,suggestion_token:k.a.string,suggestions:y.a.list,spoiler:k.a.bool,privacy:k.a.string,spoiler_text:k.a.string,focusDate:k.a.instanceOf(Date),preselectDate:k.a.instanceOf(Date),is_submitting:k.a.bool,is_uploading:k.a.bool,onChange:k.a.func.isRequired,onSubmit:k.a.func.isRequired,onClearSuggestions:k.a.func.isRequired,onFetchSuggestions:k.a.func.isRequired,onSuggestionSelected:k.a.func.isRequired,onChangeSpoilerText:k.a.func.isRequired,onPaste:k.a.func.isRequired,onPickEmoji:k.a.func.isRequired,showSearch:k.a.bool,anyMedia:k.a.bool},a.defaultProps={showSearch:!1},o=i))||o},303:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=n(98),f=(n.n(g),function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.checkRemainingText=function(e){return e<0?a()("span",{className:"character-counter character-counter--over"},void 0,e):a()("span",{className:"character-counter"},void 0,e)},t.prototype.render=function(){var e=this.props.max-Object(g.length)(this.props.text);return this.checkRemainingText(e)},t}(p.a.PureComponent))},304:function(e,t,n){"use strict";var o=n(9),a=n(18),i=n(66),s=n(305),r=function(){var e=Object(i.e)();return function(t){return{status:e(t,t.getIn(["compose","in_reply_to"]))}}},c=function(e){return{onCancel:function(){e(Object(a.E)())}}};t.a=Object(o.connect)(r,c)(s.a)},305:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var o,a,i,s=n(2),r=n.n(s),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),g=n.n(p),f=n(0),h=(n.n(f),n(13)),m=n.n(h),v=n(5),b=n.n(v),y=n(56),_=n(23),k=n(55),w=n(6),C=n(12),j=n.n(C),x=n(97),M=Object(w.f)({cancel:{id:"reply_indicator.cancel",defaultMessage:"Cancel"}}),O=Object(w.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=d()(this,e.call.apply(e,[this].concat(s))),o.handleClick=function(){o.props.onCancel()},o.handleAccountClick=function(e){0===e.button&&(e.preventDefault(),o.context.router.history.push("/accounts/"+o.props.status.getIn(["account","id"])))},a=n,d()(o,a)}return g()(t,e),t.prototype.render=function(){var e=this.props,t=e.status,n=e.intl;if(!t)return null;var o={__html:t.get("contentHtml")},a={direction:Object(x.a)(t.get("search_index"))?"rtl":"ltr"};return r()("div",{className:"reply-indicator"},void 0,r()("div",{className:"reply-indicator__header"},void 0,r()("div",{className:"reply-indicator__cancel"},void 0,r()(_.a,{title:n.formatMessage(M.cancel),icon:"times",onClick:this.handleClick})),r()("a",{href:t.getIn(["account","url"]),onClick:this.handleAccountClick,className:"reply-indicator__display-name"},void 0,r()("div",{className:"reply-indicator__display-avatar"},void 0,r()(y.a,{account:t.get("account"),size:24})),r()(k.a,{account:t.get("account")}))),r()("div",{className:"reply-indicator__content",style:a,dangerouslySetInnerHTML:o}))},t}(j.a),a.contextTypes={router:b.a.object},a.propTypes={status:m.a.map,onCancel:b.a.func.isRequired,intl:b.a.object.isRequired},o=i))||o},306:function(e,t,n){"use strict";n.d(t,"a",function(){return N});var o,a,i=n(2),s=n.n(i),r=n(32),c=n.n(r),l=n(1),u=n.n(l),d=n(3),p=n.n(d),g=n(4),f=n.n(g),h=n(0),m=(n.n(h),n(307)),v=n(309),b=n(13),y=n.n(b),_=n(5),k=n.n(_),w=n(97),C=n(12),j=n.n(C),x=n(310),M=n(10),O=n.n(M),S=function(e,t){var n=void 0,o=e.slice(0,t).search(/\S+$/),a=e.slice(t).search(/\s/);return!(n=a<0?e.slice(o):e.slice(o,a+t))||n.trim().length<3||-1===["@",":","#"].indexOf(n[0])?[null,null]:(n=n.trim().toLowerCase(),n.length>0?[o+1,n]:[null,null])},N=(a=o=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return n=o=p()(this,e.call.apply(e,[this].concat(r))),o.state={suggestionsHidden:!1,selectedSuggestion:0,lastToken:null,tokenStart:0},o.onChange=function(e){var t=S(e.target.value,e.target.selectionStart),n=t[0],a=t[1];null!==a&&o.state.lastToken!==a?(o.setState({lastToken:a,selectedSuggestion:0,tokenStart:n}),o.props.onSuggestionsFetchRequested(a)):null===a&&(o.setState({lastToken:null}),o.props.onSuggestionsClearRequested()),o.props.onChange(e)},o.onKeyDown=function(e){var t=o.props,n=t.suggestions,a=t.disabled,i=o.state,s=i.selectedSuggestion,r=i.suggestionsHidden;if(a)return void e.preventDefault();switch(e.key){case"Escape":r||(e.preventDefault(),o.setState({suggestionsHidden:!0}));break;case"ArrowDown":n.size>0&&!r&&(e.preventDefault(),o.setState({selectedSuggestion:Math.min(s+1,n.size-1)}));break;case"ArrowUp":n.size>0&&!r&&(e.preventDefault(),o.setState({selectedSuggestion:Math.max(s-1,0)}));break;case"Enter":case"Tab":null!==o.state.lastToken&&n.size>0&&!r&&(e.preventDefault(),e.stopPropagation(),o.props.onSuggestionSelected(o.state.tokenStart,o.state.lastToken,n.get(s)))}!e.defaultPrevented&&o.props.onKeyDown&&o.props.onKeyDown(e)},o.onKeyUp=function(e){"Escape"===e.key&&o.state.suggestionsHidden&&document.querySelector(".ui").parentElement.focus(),o.props.onKeyUp&&o.props.onKeyUp(e)},o.onBlur=function(){o.setState({suggestionsHidden:!0})},o.onSuggestionClick=function(e){var t=o.props.suggestions.get(e.currentTarget.getAttribute("data-index"));e.preventDefault(),o.props.onSuggestionSelected(o.state.tokenStart,o.state.lastToken,t),o.textarea.focus()},o.setTextarea=function(e){o.textarea=e},o.onPaste=function(e){e.clipboardData&&1===e.clipboardData.files.length&&(o.props.onPaste(e.clipboardData.files),e.preventDefault())},o.renderSuggestion=function(e,t){var n=o.state.selectedSuggestion,a=void 0,i=void 0;return"object"===(void 0===e?"undefined":c()(e))?(a=s()(v.a,{emoji:e}),i=e.id):"#"===e[0]?(a=e,i=e):(a=s()(m.a,{id:e}),i=e),s()("div",{role:"button",tabIndex:"0","data-index":t,className:O()("autosuggest-textarea__suggestions__item",{selected:t===n}),onMouseDown:o.onSuggestionClick},i,a)},a=n,p()(o,a)}return f()(t,e),t.prototype.componentWillReceiveProps=function(e){e.suggestions!==this.props.suggestions&&e.suggestions.size>0&&this.state.suggestionsHidden&&this.setState({suggestionsHidden:!1})},t.prototype.render=function(){var e=this.props,t=e.value,n=e.suggestions,o=e.disabled,a=e.placeholder,i=e.autoFocus,r=this.state.suggestionsHidden,c={direction:"ltr"};return Object(w.a)(t)&&(c.direction="rtl"),s()("div",{className:"autosuggest-textarea"},void 0,s()("label",{},void 0,s()("span",{style:{display:"none"}},void 0,a),s()(x.a,{inputRef:this.setTextarea,className:"autosuggest-textarea__textarea",disabled:o,placeholder:a,autoFocus:i,value:t,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onBlur:this.onBlur,onPaste:this.onPaste,style:c,"aria-autocomplete":"list"})),s()("div",{className:"autosuggest-textarea__suggestions "+(r||n.isEmpty()?"":"autosuggest-textarea__suggestions--visible")},void 0,n.map(this.renderSuggestion)))},t}(j.a),o.propTypes={value:k.a.string,suggestions:y.a.list,disabled:k.a.bool,placeholder:k.a.string,onSuggestionSelected:k.a.func.isRequired,onSuggestionsClearRequested:k.a.func.isRequired,onSuggestionsFetchRequested:k.a.func.isRequired,onChange:k.a.func.isRequired,onKeyUp:k.a.func,onKeyDown:k.a.func,onPaste:k.a.func.isRequired,autoFocus:k.a.bool},o.defaultProps={autoFocus:!0},a)},307:function(e,t,n){"use strict";var o=n(9),a=n(308),i=n(66),s=function(){var e=Object(i.c)();return function(t,n){var o=n.id;return{account:e(t,o)}}};t.a=Object(o.connect)(s)(a.a)},308:function(e,t,n){"use strict";n.d(t,"a",function(){return _});var o,a,i=n(2),s=n.n(i),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),p=n.n(d),g=n(0),f=(n.n(g),n(56)),h=n(55),m=n(13),v=n.n(m),b=n(12),y=n.n(b),_=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props.account;return s()("div",{className:"autosuggest-account"},void 0,s()("div",{className:"autosuggest-account-icon"},void 0,s()(f.a,{account:e,size:18})),s()(h.a,{account:e}))},t}(y.a),o.propTypes={account:v.a.map.isRequired},a)},309:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=n(155),f=n.n(g),h=e.env.CDN_HOST||"",m=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.emoji,t=void 0;if(e.custom)t=e.imageUrl;else{var n=f.a[e.native]||f.a[e.native.replace(/\uFE0F$/,"")];if(!n)return null;t=h+"/emoji/"+n.filename+".svg"}return a()("div",{className:"autosuggest-emoji"},void 0,a()("img",{className:"emojione",src:t,alt:e.native||e.colons}),e.colons)},t}(p.a.PureComponent)}).call(t,n(36))},310:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t){if(null==e)return{};var n,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)n=s[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function s(e,t,n,o,a){void 0===n&&(n=!1),void 0===o&&(o=null),void 0===a&&(a=null),null===g.parentNode&&document.body.appendChild(g);var i=r(e,t,n);if(null===i)return null;var s=i.paddingSize,c=i.borderSize,l=i.boxSizing,u=i.sizingStyle;Object.keys(u).forEach(function(e){g.style[e]=u[e]}),Object.keys(f).forEach(function(e){g.style.setProperty(e,f[e],"important")}),g.value=e.value||e.placeholder||"x";var d=-1/0,p=1/0,h=g.scrollHeight;"border-box"===l?h+=c:"content-box"===l&&(h-=s),g.value="x";var m=g.scrollHeight-s;return null===o&&null===a||(null!==o&&(d=m*o,"border-box"===l&&(d=d+s+c),h=Math.max(d,h)),null!==a&&(p=m*a,"border-box"===l&&(p=p+s+c),h=Math.min(p,h))),{height:h,minHeight:d,maxHeight:p,rowCount:Math.floor(h/m)}}function r(e,t,n){if(void 0===n&&(n=!1),n&&m[t])return m[t];var o=window.getComputedStyle(e);if(null===o)return null;var a=h.reduce(function(e,t){return e[t]=o.getPropertyValue(t),e},{}),i=a["box-sizing"];p&&"border-box"===i&&(a.width=parseFloat(a.width)+parseFloat(o["border-right-width"])+parseFloat(o["border-left-width"])+parseFloat(o["padding-right"])+parseFloat(o["padding-left"])+"px");var s=parseFloat(a["padding-bottom"])+parseFloat(a["padding-top"]),r=parseFloat(a["border-bottom-width"])+parseFloat(a["border-top-width"]),c={sizingStyle:a,paddingSize:s,borderSize:r,boxSizing:i};return n&&(m[t]=c),c}var c=n(0),l=n.n(c),u=n(5),d=(n.n(u),"undefined"!=typeof window&&"undefined"!=typeof document),p=!!d&&!!document.documentElement.currentStyle,g=d&&document.createElement("textarea"),f={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},h=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],m={},v=function(e){return delete m[e]},b=function(e){return void 0===e&&(e=0),function(){return++e}}(),y=function(){},_=d&&window.requestAnimationFrame?[window.requestAnimationFrame,window.cancelAnimationFrame]:[setTimeout,clearTimeout],k=_[0],w=_[1],C=function(e){function t(t){var n;return n=e.call(this,t)||this,n._resizeLock=!1,n._onRootDOMNode=function(e){n._rootDOMNode=e,n.props.inputRef&&n.props.inputRef(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e)},n._resizeComponent=function(e){if(void 0===e&&(e=y),void 0===n._rootDOMNode)return void e();var t=s(n._rootDOMNode,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null===t)return void e();var o=t.height,a=t.minHeight,i=t.maxHeight,r=t.rowCount;if(n.rowCount=r,n.state.height!==o||n.state.minHeight!==a||n.state.maxHeight!==i)return void n.setState({height:o,minHeight:a,maxHeight:i},e);e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=b(),n._controlled="string"==typeof t.value,n}a(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.minRows,e.maxRows,e.onHeightChange,e.useCacheForDOMMeasurements,e.inputRef,i(e,["minRows","maxRows","onHeightChange","useCacheForDOMMeasurements","inputRef"]));return t.style=o({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),l.a.createElement("textarea",o({},t,{onChange:this._onChange,ref:this._onRootDOMNode}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent(function(){return e._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener)},n.componentWillReceiveProps=function(){var e=this;this._clearNextFrame(),this._onNextFrameActionId=k(function(){return e._resizeComponent()})},n.componentDidUpdate=function(e,t){this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){this._clearNextFrame(),window.removeEventListener("resize",this._resizeListener),v(this._uid)},n._clearNextFrame=function(){w(this._onNextFrameActionId)},t}(l.a.Component);C.defaultProps={onChange:y,onHeightChange:y,useCacheForDOMMeasurements:!1},t.a=C},311:function(e,t,n){"use strict";var o=n(9),a=n(312),i=n(18),s=function(e){return{disabled:e.getIn(["compose","is_uploading"])||e.getIn(["compose","media_attachments"]).size>3||e.getIn(["compose","media_attachments"]).some(function(e){return"video"===e.get("type")}),resetFileKey:e.getIn(["compose","resetFileKey"])}},r=function(e){return{onSelectFile:function(t){e(Object(i.Z)(t))}}};t.a=Object(o.connect)(s,r)(a.a)},312:function(e,t,n){"use strict";n.d(t,"a",function(){return N});var o,a,i,s,r=n(2),c=n.n(r),l=n(1),u=n.n(l),d=n(3),p=n.n(d),g=n(4),f=n.n(g),h=n(0),m=n.n(h),v=n(23),b=n(5),y=n.n(b),_=n(6),k=n(9),w=n(12),C=n.n(w),j=n(13),x=n.n(j),M=Object(_.f)({upload:{id:"upload_button.label",defaultMessage:"Add media"}}),O=function(){return function(e){return{acceptContentTypes:e.getIn(["media_attachments","accept_content_types"])}}},S={height:null,lineHeight:"27px"},N=(o=Object(k.connect)(O))(a=Object(_.g)((s=i=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.handleChange=function(e){e.target.files.length>0&&o.props.onSelectFile(e.target.files)},o.handleClick=function(){o.fileElement.click()},o.setRef=function(e){o.fileElement=e},a=n,p()(o,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,n=e.resetFileKey,o=e.disabled,a=e.acceptContentTypes;return c()("div",{className:"compose-form__upload-button"},void 0,c()(v.a,{icon:"camera",title:t.formatMessage(M.upload),disabled:o,onClick:this.handleClick,className:"compose-form__upload-button-icon",size:18,inverted:!0,style:S}),c()("label",{},void 0,c()("span",{style:{display:"none"}},void 0,t.formatMessage(M.upload)),m.a.createElement("input",{key:n,ref:this.setRef,type:"file",multiple:!1,accept:a.toArray().join(","),onChange:this.handleChange,disabled:o,style:{display:"none"}})))},t}(C.a),i.propTypes={disabled:y.a.bool,onSelectFile:y.a.func.isRequired,style:y.a.object,resetFileKey:y.a.number,acceptContentTypes:x.a.listOf(y.a.string).isRequired,intl:y.a.object.isRequired},a=s))||a)||a},313:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),s=(n.n(i),n(28)),r=n(27),c=n.n(r),l=function(e){var t=e.fullHeight,n=e.isVisible,o=e.children;return a()(s.a,{defaultStyle:{opacity:n?100:0,height:n?t:0},style:{opacity:c()(n?100:0),height:c()(n?t:0)}},void 0,function(e){var t=e.opacity,n=e.height;return a()("div",{style:{height:n+"px",overflow:"hidden",opacity:t/100,display:0===Math.floor(t)?"none":"block"}},void 0,o)})};t.a=l},314:function(e,t,n){"use strict";var o=n(9),a=n(315),i=n(18),s=n(6),r=Object(s.f)({marked:{id:"compose_form.spoiler.marked",defaultMessage:"Text is hidden behind warning"},unmarked:{id:"compose_form.spoiler.unmarked",defaultMessage:"Text is not hidden"}}),c=function(e,t){return{label:"CW",title:t.intl.formatMessage(e.getIn(["compose","spoiler"])?r.marked:r.unmarked),active:e.getIn(["compose","spoiler"]),ariaControls:"cw-spoiler-input"}},l=function(e){return{onClick:function(){e(Object(i.I)())}}};t.a=Object(s.g)(Object(o.connect)(c,l)(a.a))},315:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=function(e){function t(){var n,o,a;s()(this,t);for(var i=arguments.length,r=Array(i),l=0;l<i;l++)r[l]=arguments[l];return n=o=c()(this,e.call.apply(e,[this].concat(r))),o.handleClick=function(e){e.preventDefault(),o.props.onClick()},a=n,c()(o,a)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.title,o=e.active,i=e.ariaControls;return a()("button",{title:n,"aria-label":n,className:"text-icon-button "+(o?"active":""),"aria-expanded":o,onClick:this.handleClick,"aria-controls":i},void 0,t)},t}(p.a.PureComponent)},316:function(e,t,n){"use strict";var o=n(9),a=n(317),i=n(18),s=n(26),r=n(35),c=function(e){return{isModalOpen:"ACTIONS"===e.get("modal").modalType,value:e.getIn(["compose","privacy"])}},l=function(e){return{onChange:function(t){e(Object(i.J)(t))},isUserTouching:r.c,onModalOpen:function(t){return e(Object(s.d)("ACTIONS",t))},onModalClose:function(){return e(Object(s.c)())}}};t.a=Object(o.connect)(c,l)(a.a)},317:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var o,a=n(2),i=n.n(a),s=n(1),r=n.n(s),c=n(3),l=n.n(c),u=n(4),d=n.n(u),p=n(0),g=n.n(p),f=n(6),h=n(23),m=n(96),v=n.n(m),b=n(28),y=n(27),_=n.n(y),k=n(46),w=n.n(k),C=n(10),j=n.n(C),x=Object(f.f)({public_short:{id:"privacy.public.short",defaultMessage:"Public"},public_long:{id:"privacy.public.long",defaultMessage:"Post to public timelines"},unlisted_short:{id:"privacy.unlisted.short",defaultMessage:"Unlisted"},unlisted_long:{id:"privacy.unlisted.long",defaultMessage:"Do not show in public timelines"},private_short:{id:"privacy.private.short",defaultMessage:"Followers-only"},private_long:{id:"privacy.private.long",defaultMessage:"Post to followers only"},direct_short:{id:"privacy.direct.short",defaultMessage:"Direct"},direct_long:{id:"privacy.direct.long",defaultMessage:"Post to mentioned users only"},change_privacy:{id:"privacy.change",defaultMessage:"Adjust status privacy"}}),M=!!w.a.hasSupport&&{passive:!0},O=function(e){function t(){var n,o,a;r()(this,t);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return n=o=l()(this,e.call.apply(e,[this].concat(s))),o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.handleClick=function(e){if("Escape"===e.key)o.props.onClose();else if(!e.key||"Enter"===e.key){var t=e.currentTarget.getAttribute("data-index");e.preventDefault(),o.props.onClose(),o.props.onChange(t)}},o.setRef=function(e){o.node=e},a=n,l()(o,a)}return d()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,M)},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,M)},t.prototype.render=function(){var e=this,t=this.props,n=t.style,o=t.items,a=t.value;return i()(b.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:_()(1,{damping:35,stiffness:400}),scaleX:_()(1,{damping:35,stiffness:400}),scaleY:_()(1,{damping:35,stiffness:400})}},void 0,function(t){var s=t.opacity,r=t.scaleX,c=t.scaleY;return g.a.createElement("div",{className:"privacy-dropdown__dropdown",style:Object.assign({},n,{opacity:s,transform:"scale("+r+", "+c+")"}),ref:e.setRef},o.map(function(t){return i()("div",{role:"button",tabIndex:"0","data-index":t.value,onKeyDown:e.handleClick,onClick:e.handleClick,className:j()("privacy-dropdown__option",{active:t.value===a})},t.value,i()("div",{className:"privacy-dropdown__option__icon"},void 0,i()("i",{className:"fa fa-fw fa-"+t.icon})),i()("div",{className:"privacy-dropdown__option__content"},void 0,i()("strong",{},void 0,t.text),t.meta))}))})},t}(g.a.PureComponent),S=Object(f.g)(o=function(e){function t(){var n,o,a;r()(this,t);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return n=o=l()(this,e.call.apply(e,[this].concat(s))),o.state={open:!1},o.handleToggle=function(){o.props.isUserTouching()?o.state.open?o.props.onModalClose():o.props.onModalOpen({actions:o.options.map(function(e){return Object.assign({},e,{active:e.value===o.props.value})}),onClick:o.handleModalActionClick}):o.setState({open:!o.state.open})},o.handleModalActionClick=function(e){e.preventDefault();var t=o.options[e.currentTarget.getAttribute("data-index")].value;o.props.onModalClose(),o.props.onChange(t)},o.handleKeyDown=function(e){switch(e.key){case"Enter":o.handleToggle();break;case"Escape":o.handleClose()}},o.handleClose=function(){o.setState({open:!1})},o.handleChange=function(e){o.props.onChange(e)},a=n,l()(o,a)}return d()(t,e),t.prototype.componentWillMount=function(){var e=this.props.intl.formatMessage;this.options=[{icon:"globe",value:"public",text:e(x.public_short),meta:e(x.public_long)},{icon:"unlock-alt",value:"unlisted",text:e(x.unlisted_short),meta:e(x.unlisted_long)},{icon:"lock",value:"private",text:e(x.private_short),meta:e(x.private_long)},{icon:"envelope",value:"direct",text:e(x.direct_short),meta:e(x.direct_long)}]},t.prototype.render=function(){var e=this.props,t=e.value,n=e.intl,o=this.state.open,a=this.options.find(function(e){return e.value===t});return i()("div",{className:j()("privacy-dropdown",{active:o}),onKeyDown:this.handleKeyDown},void 0,i()("div",{className:j()("privacy-dropdown__value",{active:0===this.options.indexOf(a)})},void 0,i()(h.a,{className:"privacy-dropdown__value-icon",icon:a.icon,title:n.formatMessage(x.change_privacy),size:18,expanded:o,active:o,inverted:!0,onClick:this.handleToggle,style:{height:null,lineHeight:"27px"}})),i()(v.a,{show:o,placement:"bottom",target:this},void 0,i()(O,{items:this.options,value:t,onClose:this.handleClose,onChange:this.handleChange})))},t}(g.a.PureComponent))||o},318:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=n(9),f=n(10),h=n.n(f),m=n(23),v=n(18),b=n(28),y=n(27),_=n.n(y),k=n(6),w=Object(k.f)({marked:{id:"compose_form.sensitive.marked",defaultMessage:"Media is marked as sensitive"},unmarked:{id:"compose_form.sensitive.unmarked",defaultMessage:"Media is not marked as sensitive"}}),C=function(e){return{visible:e.getIn(["compose","media_attachments"]).size>0,active:e.getIn(["compose","sensitive"]),disabled:e.getIn(["compose","spoiler"])}},j=function(e){return{onClick:function(){e(Object(v.G)())}}},x=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.visible,n=e.active,o=e.disabled,i=e.onClick,s=e.intl;return a()(b.a,{defaultStyle:{scale:.87},style:{scale:_()(t?1:.87,{stiffness:200,damping:3})}},void 0,function(e){var r=e.scale,c=n?"eye-slash":"eye",l=h()("compose-form__sensitive-button",{"compose-form__sensitive-button--visible":t});return a()("div",{className:l,style:{transform:"scale("+r+")"}},void 0,a()(m.a,{className:"compose-form__sensitive-button__icon",title:s.formatMessage(n?w.marked:w.unmarked),icon:c,onClick:i,size:18,active:n,disabled:o,style:{lineHeight:null,height:null},inverted:!0}))})},t}(p.a.PureComponent);t.a=Object(g.connect)(C,j)(Object(k.g)(x))},319:function(e,t,n){"use strict";var o=n(9),a=n(320),i=n(57),s=n(95),r=(n.n(s),n(8)),c=(n.n(r),n(99)),l=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","yum","disappointed","thinking_face","weary","sob","sunglasses","heart","ok_hand"],u=Object(s.createSelector)([function(e){return e.getIn(["settings","frequentlyUsedEmojis"],Object(r.Map)())}],function(e){var t=e.keySeq().sort(function(t,n){return e.get(t)-e.get(n)}).reverse().slice(0,16).toArray();return t.length<l.length&&(t=t.concat(l.slice(0,l.length-t.length))),t}),d=Object(s.createSelector)([function(e){return e.get("custom_emojis")}],function(e){return e.filter(function(e){return e.get("visible_in_picker")}).sort(function(e,t){var n=e.get("shortcode").toLowerCase(),o=t.get("shortcode").toLowerCase();return n<o?-1:n>o?1:0})}),p=function(e){return{custom_emojis:d(e),skinTone:e.getIn(["settings","skinTone"]),frequentlyUsedEmojis:u(e)}},g=function(e,t){var n=t.onPickEmoji;return{onSkinTone:function(t){e(Object(i.c)(["skinTone"],t))},onPickEmoji:function(t){e(Object(c.b)(t)),n&&n(t)}}};t.a=Object(o.connect)(p,g)(a.a)},320:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return P});var o,a,i,s,r=n(2),c=n.n(r),l=n(1),u=n.n(l),d=n(3),p=n.n(d),g=n(4),f=n.n(g),h=n(0),m=n.n(h),v=n(6),b=n(58),y=n(96),_=n.n(y),k=n(10),w=n.n(k),C=n(46),j=n.n(C),x=n(71),M=Object(v.f)({emoji:{id:"emoji_button.label",defaultMessage:"Insert emoji"},emoji_search:{id:"emoji_button.search",defaultMessage:"Search..."},emoji_not_found:{id:"emoji_button.not_found",defaultMessage:"No emojos!! (╯°□°)╯︵ ┻━┻"},custom:{id:"emoji_button.custom",defaultMessage:"Custom"},recent:{id:"emoji_button.recent",defaultMessage:"Frequently used"},search_results:{id:"emoji_button.search_results",defaultMessage:"Search results"},people:{id:"emoji_button.people",defaultMessage:"People"},nature:{id:"emoji_button.nature",defaultMessage:"Nature"},food:{id:"emoji_button.food",defaultMessage:"Food & Drink"},activity:{id:"emoji_button.activity",defaultMessage:"Activity"},travel:{id:"emoji_button.travel",defaultMessage:"Travel & Places"},objects:{id:"emoji_button.objects",defaultMessage:"Objects"},symbols:{id:"emoji_button.symbols",defaultMessage:"Symbols"},flags:{id:"emoji_button.flags",defaultMessage:"Flags"}}),O=e.env.CDN_HOST||"",S=void 0,N=void 0,D=function(){return O+"/emoji/sheet.png"},z=!!j.a.hasSupport&&{passive:!0},I=["recent","custom","people","nature","foods","activity","places","objects","symbols","flags"],T=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.handleClick=function(e){o.props.onSelect(1*e.currentTarget.getAttribute("data-index"))},o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.setRef=function(e){o.node=e},a=n,p()(o,a)}return f()(t,e),t.prototype.componentWillReceiveProps=function(e){e.active?this.attachListeners():this.removeListeners()},t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.attachListeners=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,z)},t.prototype.removeListeners=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,z)},t.prototype.render=function(){var e=this.props.active;return m.a.createElement("div",{className:"emoji-picker-dropdown__modifiers__menu",style:{display:e?"block":"none"},ref:this.setRef},c()("button",{onClick:this.handleClick,"data-index":1},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:1,backgroundImageFn:D})),c()("button",{onClick:this.handleClick,"data-index":2},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:2,backgroundImageFn:D})),c()("button",{onClick:this.handleClick,"data-index":3},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:3,backgroundImageFn:D})),c()("button",{onClick:this.handleClick,"data-index":4},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:4,backgroundImageFn:D})),c()("button",{onClick:this.handleClick,"data-index":5},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:5,backgroundImageFn:D})),c()("button",{onClick:this.handleClick,"data-index":6},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:6,backgroundImageFn:D})))},t}(m.a.PureComponent),F=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.handleClick=function(){o.props.active?o.props.onClose():o.props.onOpen()},o.handleSelect=function(e){o.props.onChange(e),o.props.onClose()},a=n,p()(o,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.modifier;return c()("div",{className:"emoji-picker-dropdown__modifiers"},void 0,c()(N,{emoji:"fist",set:"twitter",size:22,sheetSize:32,skin:n,onClick:this.handleClick,backgroundImageFn:D}),c()(T,{active:t,onSelect:this.handleSelect,onClose:this.props.onClose}))},t}(m.a.PureComponent),R=Object(v.g)((i=a=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.state={modifierOpen:!1},o.handleDocumentClick=function(e){o.node&&!o.node.contains(e.target)&&o.props.onClose()},o.setRef=function(e){o.node=e},o.getI18n=function(){var e=o.props.intl;return{search:e.formatMessage(M.emoji_search),notfound:e.formatMessage(M.emoji_not_found),categories:{search:e.formatMessage(M.search_results),recent:e.formatMessage(M.recent),people:e.formatMessage(M.people),nature:e.formatMessage(M.nature),foods:e.formatMessage(M.food),activity:e.formatMessage(M.activity),places:e.formatMessage(M.travel),objects:e.formatMessage(M.objects),symbols:e.formatMessage(M.symbols),flags:e.formatMessage(M.flags),custom:e.formatMessage(M.custom)}}},o.handleClick=function(e){e.native||(e.native=e.colons),o.props.onClose(),o.props.onPick(e)},o.handleModifierOpen=function(){o.setState({modifierOpen:!0})},o.handleModifierClose=function(){o.setState({modifierOpen:!1})},o.handleModifierChange=function(e){o.props.onSkinTone(e)},a=n,p()(o,a)}return f()(t,e),t.prototype.componentDidMount=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,z)},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,z)},t.prototype.render=function(){var e=this.props,t=e.loading,n=e.style,o=e.intl,a=e.custom_emojis,i=e.skinTone,s=e.frequentlyUsedEmojis;if(t)return c()("div",{style:{width:299}});var r=o.formatMessage(M.emoji),l=this.state.modifierOpen;return m.a.createElement("div",{className:w()("emoji-picker-dropdown__menu",{selecting:l}),style:n,ref:this.setRef},c()(S,{perLine:8,emojiSize:22,sheetSize:32,custom:Object(x.buildCustomEmojis)(a),color:"",emoji:"",set:"twitter",title:r,i18n:this.getI18n(),onClick:this.handleClick,include:I,recent:s,skin:i,showPreview:!1,backgroundImageFn:D,emojiTooltip:!0}),c()(F,{active:l,modifier:i,onOpen:this.handleModifierOpen,onClose:this.handleModifierClose,onChange:this.handleModifierChange}))},t}(m.a.PureComponent),a.defaultProps={style:{},loading:!0,placement:"bottom",frequentlyUsedEmojis:[]},o=i))||o,P=Object(v.g)(s=function(e){function t(){var n,o,a;u()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=p()(this,e.call.apply(e,[this].concat(s))),o.state={active:!1,loading:!1},o.setRef=function(e){o.dropdown=e},o.onShowDropdown=function(){o.setState({active:!0}),S||(o.setState({loading:!0}),Object(b.f)().then(function(e){S=e.Picker,N=e.Emoji,o.setState({loading:!1})}).catch(function(){o.setState({loading:!1})}))},o.onHideDropdown=function(){o.setState({active:!1})},o.onToggle=function(e){o.state.loading||e.key&&"Enter"!==e.key||(o.state.active?o.onHideDropdown():o.onShowDropdown())},o.handleKeyDown=function(e){"Escape"===e.key&&o.onHideDropdown()},o.setTargetRef=function(e){o.target=e},o.findTarget=function(){return o.target},a=n,p()(o,a)}return f()(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,n=e.onPickEmoji,o=e.onSkinTone,a=e.skinTone,i=e.frequentlyUsedEmojis,s=t.formatMessage(M.emoji),r=this.state,l=r.active,u=r.loading;return c()("div",{className:"emoji-picker-dropdown",onKeyDown:this.handleKeyDown},void 0,m.a.createElement("div",{ref:this.setTargetRef,className:"emoji-button",title:s,"aria-label":s,"aria-expanded":l,role:"button",onClick:this.onToggle,onKeyDown:this.onToggle,tabIndex:0},c()("img",{className:w()("emojione",{"pulse-loading":l&&u}),alt:"🙂",src:O+"/emoji/1f602.svg"})),c()(_.a,{show:l,placement:"bottom",target:this.findTarget},void 0,c()(R,{custom_emojis:this.props.custom_emojis,loading:u,onClose:this.onHideDropdown,onPick:n,onSkinTone:o,skinTone:a,frequentlyUsedEmojis:i})))},t}(m.a.PureComponent))||s}).call(t,n(36))},321:function(e,t,n){"use strict";var o=n(9),a=n(322),i=function(e){return{mediaIds:e.getIn(["compose","media_attachments"]).map(function(e){return e.get("id")})}};t.a=Object(o.connect)(i)(a.a)},322:function(e,t,n){"use strict";n.d(t,"a",function(){return _});var o,a,i=n(2),s=n.n(i),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),p=n.n(d),g=n(0),f=(n.n(g),n(13)),h=n.n(f),m=n(323),v=n(12),b=n.n(v),y=n(325),_=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props.mediaIds;return s()("div",{className:"compose-form__upload-wrapper"},void 0,s()(m.a,{}),s()("div",{className:"compose-form__uploads-wrapper"},void 0,e.map(function(e){return s()(y.a,{id:e},e)})))},t}(b.a),o.propTypes={mediaIds:h.a.list.isRequired},a)},323:function(e,t,n){"use strict";var o=n(9),a=n(324),i=function(e){return{active:e.getIn(["compose","is_uploading"]),progress:e.getIn(["compose","progress"])}};t.a=Object(o.connect)(i)(a.a)},324:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=n(28),f=n(27),h=n.n(f),m=n(6),v=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.active,n=e.progress;return t?a()("div",{className:"upload-progress"},void 0,a()("div",{className:"upload-progress__icon"},void 0,a()("i",{className:"fa fa-upload"})),a()("div",{className:"upload-progress__message"},void 0,a()(m.b,{id:"upload_progress.label",defaultMessage:"Uploading..."}),a()("div",{className:"upload-progress__backdrop"},void 0,a()(g.a,{defaultStyle:{width:0},style:{width:h()(n)}},void 0,function(e){var t=e.width;return a()("div",{className:"upload-progress__tracker",style:{width:t+"%"}})})))):null},t}(p.a.PureComponent)},325:function(e,t,n){"use strict";var o=n(9),a=n(326),i=n(18),s=n(26),r=function(e,t){var n=t.id;return{media:e.getIn(["compose","media_attachments"]).find(function(e){return e.get("id")===n})}},c=function(e){return{onUndo:function(t){e(Object(i.X)(t))},onDescriptionChange:function(t,n){e(Object(i.L)(t,{description:n}))},onOpenFocalPoint:function(t){e(Object(s.d)("FOCAL_POINT",{id:t}))}}};t.a=Object(o.connect)(r,c)(a.a)},326:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var o,a,i,s=n(2),r=n.n(s),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),g=n.n(p),f=n(0),h=(n.n(f),n(13)),m=n.n(h),v=n(5),b=n.n(v),y=n(28),_=n(27),k=n.n(_),w=n(12),C=n.n(w),j=n(6),x=n(10),M=n.n(x),O=Object(j.f)({description:{id:"upload_form.description",defaultMessage:"Describe for the visually impaired"}}),S=Object(j.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=d()(this,e.call.apply(e,[this].concat(s))),o.state={hovered:!1,focused:!1,dirtyDescription:null},o.handleUndoClick=function(){o.props.onUndo(o.props.media.get("id"))},o.handleFocalPointClick=function(){o.props.onOpenFocalPoint(o.props.media.get("id"))},o.handleInputChange=function(e){o.setState({dirtyDescription:e.target.value})},o.handleMouseEnter=function(){o.setState({hovered:!0})},o.handleMouseLeave=function(){o.setState({hovered:!1})},o.handleInputFocus=function(){o.setState({focused:!0})},o.handleInputBlur=function(){var e=o.state.dirtyDescription;o.setState({focused:!1,dirtyDescription:null}),null!==e&&o.props.onDescriptionChange(o.props.media.get("id"),e)},a=n,d()(o,a)}return g()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.intl,o=t.media,a=this.state.hovered||this.state.focused,i=this.state.dirtyDescription||""!==this.state.dirtyDescription&&o.get("description")||"",s=o.getIn(["meta","focus","x"]),c=o.getIn(["meta","focus","y"]),l=100*(s/2+.5),u=100*(c/-2+.5);return r()("div",{className:"compose-form__upload",onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},void 0,r()(y.a,{defaultStyle:{scale:.8},style:{scale:k()(1,{stiffness:180,damping:12})}},void 0,function(t){var s=t.scale;return r()("div",{className:"compose-form__upload-thumbnail",style:{transform:"scale("+s+")",backgroundImage:"url("+o.get("preview_url")+")",backgroundPosition:l+"% "+u+"%"}},void 0,r()("div",{className:M()("compose-form__upload__actions",{active:a})},void 0,r()("button",{className:"icon-button",onClick:e.handleUndoClick},void 0,r()("i",{className:"fa fa-times"})," ",r()(j.b,{id:"upload_form.undo",defaultMessage:"Undo"})),"image"===o.get("type")&&r()("button",{className:"icon-button",onClick:e.handleFocalPointClick},void 0,r()("i",{className:"fa fa-crosshairs"})," ",r()(j.b,{id:"upload_form.focus",defaultMessage:"Crop"}))),r()("div",{className:M()("compose-form__upload-description",{active:a})},void 0,r()("label",{},void 0,r()("span",{style:{display:"none"}},void 0,n.formatMessage(O.description)),r()("input",{placeholder:n.formatMessage(O.description),type:"text",value:i,maxLength:420,onFocus:e.handleInputFocus,onChange:e.handleInputChange,onBlur:e.handleInputBlur}))))}))},t}(C.a),a.propTypes={media:m.a.map.isRequired,intl:b.a.object.isRequired,onUndo:b.a.func.isRequired,onDescriptionChange:b.a.func.isRequired,onOpenFocalPoint:b.a.func.isRequired},o=i))||o},327:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),s=(n.n(i),n(9)),r=n(328),c=n(6),l=n(11),u=/(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i,d=function(e){return{needsLockWarning:"private"===e.getIn(["compose","privacy"])&&!e.getIn(["accounts",l.g,"locked"]),hashtagWarning:"public"!==e.getIn(["compose","privacy"])&&u.test(e.getIn(["compose","text"])),directMessageWarning:"direct"===e.getIn(["compose","privacy"])}},p=function(e){var t=e.needsLockWarning,n=e.hashtagWarning,o=e.directMessageWarning;return t?a()(r.a,{message:a()(c.b,{id:"compose_form.lock_disclaimer",defaultMessage:"Your account is not {locked}. Anyone can follow you to view your follower-only posts.",values:{locked:a()("a",{href:"/settings/profile"},void 0,a()(c.b,{id:"compose_form.lock_disclaimer.lock",defaultMessage:"locked"}))}})}):n?a()(r.a,{message:a()(c.b,{id:"compose_form.hashtag_warning",defaultMessage:"This toot won't be listed under any hashtag as it is unlisted. Only public toots can be searched by hashtag."})}):o?a()(r.a,{message:a()(c.b,{id:"compose_form.direct_message_warning",defaultMessage:"This toot will only be visible to all the mentioned users."})}):null};t.a=Object(s.connect)(d)(p)},328:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var o=n(2),a=n.n(o),i=n(1),s=n.n(i),r=n(3),c=n.n(r),l=n(4),u=n.n(l),d=n(0),p=n.n(d),g=n(28),f=n(27),h=n.n(f),m=function(e){function t(){return s()(this,t),c()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props.message;return a()(g.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:h()(1,{damping:35,stiffness:400}),scaleX:h()(1,{damping:35,stiffness:400}),scaleY:h()(1,{damping:35,stiffness:400})}},void 0,function(t){var n=t.opacity,o=t.scaleX,i=t.scaleY;return a()("div",{className:"compose-form__warning",style:{opacity:n,transform:"scale("+o+", "+i+")"}},void 0,e)})},t}(p.a.PureComponent)},329:function(e,t,n){"use strict";function o(e){return e.replace(a.a,i).replace(/(^|[^\/\w])@(([a-z0-9_]+)@[a-z0-9\.\-]+[a-z0-9]+)/gi,"$1@$3")}t.a=o;var a=n(330),i="xxxxxxxxxxxxxxxxxxxxxxx"},330:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var o={},a=function(e,t){return t=t||"","string"!=typeof e&&(e.global&&t.indexOf("g")<0&&(t+="g"),e.ignoreCase&&t.indexOf("i")<0&&(t+="i"),e.multiline&&t.indexOf("m")<0&&(t+="m"),e=e.source),new RegExp(e.replace(/#\{(\w+)\}/g,function(e,t){var n=o[t]||"";return"string"!=typeof n&&(n=n.source),n}),t)},i=function(e,t){return e.replace(/#\{(\w+)\}/g,function(e,n){return t[n]||""})},s=function(){return o.spaces_group=/\x09-\x0D\x20\x85\xA0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000/,o.invalid_chars_group=/\uFFFE\uFEFF\uFFFF\u202A-\u202E/,o.punct=/\!'#%&'\(\)*\+,\\\-\.\/:;<=>\?@\[\]\^_{|}~\$/,o.validUrlPrecedingChars=a(/(?:[^A-Za-z0-9@@$###{invalid_chars_group}]|^)/),o.invalidDomainChars=i("#{punct}#{spaces_group}#{invalid_chars_group}",o),o.validDomainChars=a(/[^#{invalidDomainChars}]/),o.validSubdomain=a(/(?:(?:#{validDomainChars}(?:[_-]|#{validDomainChars})*)?#{validDomainChars}\.)/),o.validDomainName=a(/(?:(?:#{validDomainChars}(?:-|#{validDomainChars})*)?#{validDomainChars}\.)/),o.validGTLD=a(RegExp("(?:(?:삼성|닷컴|닷넷|香格里拉|餐厅|食品|飞利浦|電訊盈科|集团|通販|购物|谷歌|诺基亚|联通|网络|网站|网店|网址|组织机构|移动|珠宝|点看|游戏|淡马锡|机构|書籍|时尚|新闻|政府|政务|手表|手机|我爱你|慈善|微博|广东|工行|家電|娱乐|天主教|大拿|大众汽车|在线|嘉里大酒店|嘉里|商标|商店|商城|公益|公司|八卦|健康|信息|佛山|企业|中文网|中信|世界|ポイント|ファッション|セール|ストア|コム|グーグル|クラウド|みんな|คอม|संगठन|नेट|कॉम|همراه|موقع|موبايلي|كوم|كاثوليك|عرب|شبكة|بيتك|بازار|العليان|ارامكو|اتصالات|ابوظبي|קום|сайт|рус|орг|онлайн|москва|ком|католик|дети|zuerich|zone|zippo|zip|zero|zara|zappos|yun|youtube|you|yokohama|yoga|yodobashi|yandex|yamaxun|yahoo|yachts|xyz|xxx|xperia|xin|xihuan|xfinity|xerox|xbox|wtf|wtc|wow|world|works|work|woodside|wolterskluwer|wme|winners|wine|windows|win|williamhill|wiki|wien|whoswho|weir|weibo|wedding|wed|website|weber|webcam|weatherchannel|weather|watches|watch|warman|wanggou|wang|walter|walmart|wales|vuelos|voyage|voto|voting|vote|volvo|volkswagen|vodka|vlaanderen|vivo|viva|vistaprint|vista|vision|visa|virgin|vip|vin|villas|viking|vig|video|viajes|vet|versicherung|vermögensberatung|vermögensberater|verisign|ventures|vegas|vanguard|vana|vacations|ups|uol|uno|university|unicom|uconnect|ubs|ubank|tvs|tushu|tunes|tui|tube|trv|trust|travelersinsurance|travelers|travelchannel|travel|training|trading|trade|toys|toyota|town|tours|total|toshiba|toray|top|tools|tokyo|today|tmall|tkmaxx|tjx|tjmaxx|tirol|tires|tips|tiffany|tienda|tickets|tiaa|theatre|theater|thd|teva|tennis|temasek|telefonica|telecity|tel|technology|tech|team|tdk|tci|taxi|tax|tattoo|tatar|tatamotors|target|taobao|talk|taipei|tab|systems|symantec|sydney|swiss|swiftcover|swatch|suzuki|surgery|surf|support|supply|supplies|sucks|style|study|studio|stream|store|storage|stockholm|stcgroup|stc|statoil|statefarm|statebank|starhub|star|staples|stada|srt|srl|spreadbetting|spot|spiegel|space|soy|sony|song|solutions|solar|sohu|software|softbank|social|soccer|sncf|smile|smart|sling|skype|sky|skin|ski|site|singles|sina|silk|shriram|showtime|show|shouji|shopping|shop|shoes|shiksha|shia|shell|shaw|sharp|shangrila|sfr|sexy|sex|sew|seven|ses|services|sener|select|seek|security|secure|seat|search|scot|scor|scjohnson|science|schwarz|schule|school|scholarships|schmidt|schaeffler|scb|sca|sbs|sbi|saxo|save|sas|sarl|sapo|sap|sanofi|sandvikcoromant|sandvik|samsung|samsclub|salon|sale|sakura|safety|safe|saarland|ryukyu|rwe|run|ruhr|rugby|rsvp|room|rogers|rodeo|rocks|rocher|rmit|rip|rio|ril|rightathome|ricoh|richardli|rich|rexroth|reviews|review|restaurant|rest|republican|report|repair|rentals|rent|ren|reliance|reit|reisen|reise|rehab|redumbrella|redstone|red|recipes|realty|realtor|realestate|read|raid|radio|racing|qvc|quest|quebec|qpon|pwc|pub|prudential|pru|protection|property|properties|promo|progressive|prof|productions|prod|pro|prime|press|praxi|pramerica|post|porn|politie|poker|pohl|pnc|plus|plumbing|playstation|play|place|pizza|pioneer|pink|ping|pin|pid|pictures|pictet|pics|piaget|physio|photos|photography|photo|phone|philips|phd|pharmacy|pfizer|pet|pccw|pay|passagens|party|parts|partners|pars|paris|panerai|panasonic|pamperedchef|page|ovh|ott|otsuka|osaka|origins|orientexpress|organic|org|orange|oracle|open|ooo|onyourside|online|onl|ong|one|omega|ollo|oldnavy|olayangroup|olayan|okinawa|office|off|observer|obi|nyc|ntt|nrw|nra|nowtv|nowruz|now|norton|northwesternmutual|nokia|nissay|nissan|ninja|nikon|nike|nico|nhk|ngo|nfl|nexus|nextdirect|next|news|newholland|new|neustar|network|netflix|netbank|net|nec|nba|navy|natura|nationwide|name|nagoya|nadex|nab|mutuelle|mutual|museum|mtr|mtpc|mtn|msd|movistar|movie|mov|motorcycles|moto|moscow|mortgage|mormon|mopar|montblanc|monster|money|monash|mom|moi|moe|moda|mobily|mobile|mobi|mma|mls|mlb|mitsubishi|mit|mint|mini|mil|microsoft|miami|metlife|merckmsd|meo|menu|men|memorial|meme|melbourne|meet|media|med|mckinsey|mcdonalds|mcd|mba|mattel|maserati|marshalls|marriott|markets|marketing|market|map|mango|management|man|makeup|maison|maif|madrid|macys|luxury|luxe|lupin|lundbeck|ltda|ltd|lplfinancial|lpl|love|lotto|lotte|london|lol|loft|locus|locker|loans|loan|lixil|living|live|lipsy|link|linde|lincoln|limo|limited|lilly|like|lighting|lifestyle|lifeinsurance|life|lidl|liaison|lgbt|lexus|lego|legal|lefrak|leclerc|lease|lds|lawyer|law|latrobe|latino|lat|lasalle|lanxess|landrover|land|lancome|lancia|lancaster|lamer|lamborghini|ladbrokes|lacaixa|kyoto|kuokgroup|kred|krd|kpn|kpmg|kosher|komatsu|koeln|kiwi|kitchen|kindle|kinder|kim|kia|kfh|kerryproperties|kerrylogistics|kerryhotels|kddi|kaufen|juniper|juegos|jprs|jpmorgan|joy|jot|joburg|jobs|jnj|jmp|jll|jlc|jio|jewelry|jetzt|jeep|jcp|jcb|java|jaguar|iwc|iveco|itv|itau|istanbul|ist|ismaili|iselect|irish|ipiranga|investments|intuit|international|intel|int|insure|insurance|institute|ink|ing|info|infiniti|industries|immobilien|immo|imdb|imamat|ikano|iinet|ifm|ieee|icu|ice|icbc|ibm|hyundai|hyatt|hughes|htc|hsbc|how|house|hotmail|hotels|hoteles|hot|hosting|host|hospital|horse|honeywell|honda|homesense|homes|homegoods|homedepot|holiday|holdings|hockey|hkt|hiv|hitachi|hisamitsu|hiphop|hgtv|hermes|here|helsinki|help|healthcare|health|hdfcbank|hdfc|hbo|haus|hangout|hamburg|hair|guru|guitars|guide|guge|gucci|guardian|group|grocery|gripe|green|gratis|graphics|grainger|gov|got|gop|google|goog|goodyear|goodhands|goo|golf|goldpoint|gold|godaddy|gmx|gmo|gmbh|gmail|globo|global|gle|glass|glade|giving|gives|gifts|gift|ggee|george|genting|gent|gea|gdn|gbiz|garden|gap|games|game|gallup|gallo|gallery|gal|fyi|futbol|furniture|fund|fun|fujixerox|fujitsu|ftr|frontier|frontdoor|frogans|frl|fresenius|free|fox|foundation|forum|forsale|forex|ford|football|foodnetwork|food|foo|fly|flsmidth|flowers|florist|flir|flights|flickr|fitness|fit|fishing|fish|firmdale|firestone|fire|financial|finance|final|film|fido|fidelity|fiat|ferrero|ferrari|feedback|fedex|fast|fashion|farmers|farm|fans|fan|family|faith|fairwinds|fail|fage|extraspace|express|exposed|expert|exchange|everbank|events|eus|eurovision|etisalat|esurance|estate|esq|erni|ericsson|equipment|epson|epost|enterprises|engineering|engineer|energy|emerck|email|education|edu|edeka|eco|eat|earth|dvr|dvag|durban|dupont|duns|dunlop|duck|dubai|dtv|drive|download|dot|doosan|domains|doha|dog|dodge|doctor|docs|dnp|diy|dish|discover|discount|directory|direct|digital|diet|diamonds|dhl|dev|design|desi|dentist|dental|democrat|delta|deloitte|dell|delivery|degree|deals|dealer|deal|dds|dclk|day|datsun|dating|date|data|dance|dad|dabur|cyou|cymru|cuisinella|csc|cruises|cruise|crs|crown|cricket|creditunion|creditcard|credit|courses|coupons|coupon|country|corsica|coop|cool|cookingchannel|cooking|contractors|contact|consulting|construction|condos|comsec|computer|compare|company|community|commbank|comcast|com|cologne|college|coffee|codes|coach|clubmed|club|cloud|clothing|clinique|clinic|click|cleaning|claims|cityeats|city|citic|citi|citadel|cisco|circle|cipriani|church|chrysler|chrome|christmas|chloe|chintai|cheap|chat|chase|channel|chanel|cfd|cfa|cern|ceo|center|ceb|cbs|cbre|cbn|cba|catholic|catering|cat|casino|cash|caseih|case|casa|cartier|cars|careers|career|care|cards|caravan|car|capitalone|capital|capetown|canon|cancerresearch|camp|camera|cam|calvinklein|call|cal|cafe|cab|bzh|buzz|buy|business|builders|build|bugatti|budapest|brussels|brother|broker|broadway|bridgestone|bradesco|box|boutique|bot|boston|bostik|bosch|boots|booking|book|boo|bond|bom|bofa|boehringer|boats|bnpparibas|bnl|bmw|bms|blue|bloomberg|blog|blockbuster|blanco|blackfriday|black|biz|bio|bingo|bing|bike|bid|bible|bharti|bet|bestbuy|best|berlin|bentley|beer|beauty|beats|bcn|bcg|bbva|bbt|bbc|bayern|bauhaus|basketball|baseball|bargains|barefoot|barclays|barclaycard|barcelona|bar|bank|band|bananarepublic|banamex|baidu|baby|azure|axa|aws|avianca|autos|auto|author|auspost|audio|audible|audi|auction|attorney|athleta|associates|asia|asda|arte|art|arpa|army|archi|aramco|arab|aquarelle|apple|app|apartments|aol|anz|anquan|android|analytics|amsterdam|amica|amfam|amex|americanfamily|americanexpress|alstom|alsace|ally|allstate|allfinanz|alipay|alibaba|alfaromeo|akdn|airtel|airforce|airbus|aigo|aig|agency|agakhan|africa|afl|afamilycompany|aetna|aero|aeg|adult|ads|adac|actor|active|aco|accountants|accountant|accenture|academy|abudhabi|abogado|able|abc|abbvie|abbott|abb|abarth|aarp|aaa|onion)(?=[^0-9a-zA-Z@]|$))")),o.validCCTLD=a(RegExp("(?:(?:한국|香港|澳門|新加坡|台灣|台湾|中國|中国|გე|ไทย|ලංකා|ഭാരതം|ಭಾರತ|భారత్|சிங்கப்பூர்|இலங்கை|இந்தியா|ଭାରତ|ભારત|ਭਾਰਤ|ভাৰত|ভারত|বাংলা|भारोत|भारतम्|भारत|ڀارت|پاکستان|مليسيا|مصر|قطر|فلسطين|عمان|عراق|سورية|سودان|تونس|بھارت|بارت|ایران|امارات|المغرب|السعودية|الجزائر|الاردن|հայ|қаз|укр|срб|рф|мон|мкд|ею|бел|бг|ελ|zw|zm|za|yt|ye|ws|wf|vu|vn|vi|vg|ve|vc|va|uz|uy|us|um|uk|ug|ua|tz|tw|tv|tt|tr|tp|to|tn|tm|tl|tk|tj|th|tg|tf|td|tc|sz|sy|sx|sv|su|st|ss|sr|so|sn|sm|sl|sk|sj|si|sh|sg|se|sd|sc|sb|sa|rw|ru|rs|ro|re|qa|py|pw|pt|ps|pr|pn|pm|pl|pk|ph|pg|pf|pe|pa|om|nz|nu|nr|np|no|nl|ni|ng|nf|ne|nc|na|mz|my|mx|mw|mv|mu|mt|ms|mr|mq|mp|mo|mn|mm|ml|mk|mh|mg|mf|me|md|mc|ma|ly|lv|lu|lt|ls|lr|lk|li|lc|lb|la|kz|ky|kw|kr|kp|kn|km|ki|kh|kg|ke|jp|jo|jm|je|it|is|ir|iq|io|in|im|il|ie|id|hu|ht|hr|hn|hm|hk|gy|gw|gu|gt|gs|gr|gq|gp|gn|gm|gl|gi|gh|gg|gf|ge|gd|gb|ga|fr|fo|fm|fk|fj|fi|eu|et|es|er|eh|eg|ee|ec|dz|do|dm|dk|dj|de|cz|cy|cx|cw|cv|cu|cr|co|cn|cm|cl|ck|ci|ch|cg|cf|cd|cc|ca|bz|by|bw|bv|bt|bs|br|bq|bo|bn|bm|bl|bj|bi|bh|bg|bf|be|bd|bb|ba|az|ax|aw|au|at|as|ar|aq|ao|an|am|al|ai|ag|af|ae|ad|ac)(?=[^0-9a-zA-Z@]|$))")),o.validPunycode=/(?:xn--[0-9a-z]+)/,o.validSpecialCCTLD=/(?:(?:co|tv)(?=[^0-9a-zA-Z@]|$))/,o.validDomain=a(/(?:#{validSubdomain}*#{validDomainName}(?:#{validGTLD}|#{validCCTLD}|#{validPunycode}))/),o.validPortNumber=/[0-9]+/,o.pd=/\u002d\u058a\u05be\u1400\u1806\u2010-\u2015\u2e17\u2e1a\u2e3a\u2e40\u301c\u3030\u30a0\ufe31\ufe58\ufe63\uff0d/,o.validGeneralUrlPathChars=a(/[^#{spaces_group}\(\)\?]/i),o.validUrlBalancedParens=a("\\((?:#{validGeneralUrlPathChars}+|(?:#{validGeneralUrlPathChars}*\\(#{validGeneralUrlPathChars}+\\)#{validGeneralUrlPathChars}*))\\)","i"),o.validUrlPathEndingChars=a(/[^#{spaces_group}\(\)\?!\*';:=\,\.\$%\[\]#{pd}~&\|@]|(?:#{validUrlBalancedParens})/i),o.validUrlPath=a("(?:(?:#{validGeneralUrlPathChars}*(?:#{validUrlBalancedParens}#{validGeneralUrlPathChars}*)*#{validUrlPathEndingChars})|(?:@#{validGeneralUrlPathChars}+/))","i"),o.validUrlQueryChars=/[a-z0-9!?\*'@\(\);:&=\+\$\/%#\[\]\-_\.,~|]/i,o.validUrlQueryEndingChars=/[a-z0-9_&=#\/]/i,o.validUrl=a("((https?:\\/\\/)(#{validDomain})(?::(#{validPortNumber}))?(\\/#{validUrlPath}*)?(\\?#{validUrlQueryChars}*#{validUrlQueryEndingChars})?)","gi"),o.validUrl}()},331:function(e,t,n){"use strict";var o=n(9),a=n(302),i=n(18),s=function(e){return{text:e.getIn(["compose","text"]),suggestion_token:e.getIn(["compose","suggestion_token"]),suggestions:e.getIn(["compose","suggestions"]),spoiler:e.getIn(["compose","spoiler"]),spoiler_text:e.getIn(["compose","spoiler_text"]),privacy:e.getIn(["compose","privacy"]),focusDate:e.getIn(["compose","focusDate"]),preselectDate:e.getIn(["compose","preselectDate"]),is_submitting:e.getIn(["compose","is_submitting"]),is_uploading:e.getIn(["compose","is_uploading"]),showSearch:e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]),anyMedia:e.getIn(["compose","media_attachments"]).size>0}},r=function(e){return{onChange:function(t){e(Object(i.F)(t))},onSubmit:function(){e(Object(i.W)())},onClearSuggestions:function(){e(Object(i.M)())},onFetchSuggestions:function(t){e(Object(i.O)(t))},onSuggestionSelected:function(t,n,o){e(Object(i.V)(t,n,o))},onChangeSpoilerText:function(t){e(Object(i.H)(t))},onPaste:function(t){e(Object(i.Z)(t))},onPickEmoji:function(t,n){e(Object(i.Q)(t,n))}}};t.a=Object(o.connect)(s,r)(a.a)},803:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return S});var o,a,i=n(2),s=n.n(i),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),p=n.n(d),g=n(0),f=n.n(g),h=n(331),m=n(949),v=n(9),b=n(18),y=n(44),_=n(6),k=n(950),w=n(28),C=n(27),j=n.n(C),x=n(951),M=Object(_.f)({start:{id:"getting_started.heading",defaultMessage:"Getting started"},home_timeline:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},public:{id:"navigation_bar.public_timeline",defaultMessage:"Federated timeline"},community:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},logout:{id:"navigation_bar.logout",defaultMessage:"Logout"}}),O=function(e){return{columns:e.getIn(["settings","columns"]),showSearch:e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"])}},S=(o=Object(v.connect)(O))(a=Object(_.g)(a=function(e){function t(){var n,o,a;c()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=u()(this,e.call.apply(e,[this].concat(s))),o.onFocus=function(){o.props.dispatch(Object(b.K)(!0))},o.onBlur=function(){o.props.dispatch(Object(b.K)(!1))},a=n,u()(o,a)}return p()(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(Object(b.S)())},t.prototype.componentWillUnmount=function(){this.props.dispatch(Object(b.Y)())},t.prototype.render=function(){var e=this.props,t=e.multiColumn,n=e.showSearch,o=e.intl,a="";if(t){var i=this.props.columns;a=s()("nav",{className:"drawer__header"},void 0,s()(y.b,{to:"/getting-started",className:"drawer__tab",title:o.formatMessage(M.start),"aria-label":o.formatMessage(M.start)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-asterisk"})),!i.some(function(e){return"HOME"===e.get("id")})&&s()(y.b,{to:"/timelines/home",className:"drawer__tab",title:o.formatMessage(M.home_timeline),"aria-label":o.formatMessage(M.home_timeline)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-home"})),!i.some(function(e){return"NOTIFICATIONS"===e.get("id")})&&s()(y.b,{to:"/notifications",className:"drawer__tab",title:o.formatMessage(M.notifications),"aria-label":o.formatMessage(M.notifications)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-bell"})),!i.some(function(e){return"COMMUNITY"===e.get("id")})&&s()(y.b,{to:"/timelines/public/local",className:"drawer__tab",title:o.formatMessage(M.community),"aria-label":o.formatMessage(M.community)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-users"})),!i.some(function(e){return"PUBLIC"===e.get("id")})&&s()(y.b,{to:"/timelines/public",className:"drawer__tab",title:o.formatMessage(M.public),"aria-label":o.formatMessage(M.public)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-globe"})),s()("a",{href:"/user-settings",className:"drawer__tab",title:o.formatMessage(M.preferences),"aria-label":o.formatMessage(M.preferences)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-cog"})),s()("a",{href:"/auth/sign_out",className:"drawer__tab","data-method":"delete",title:o.formatMessage(M.logout),"aria-label":o.formatMessage(M.logout)},void 0,s()("i",{role:"img",className:"fa fa-fw fa-sign-out"})))}return s()("div",{className:"drawer"},void 0,a,s()(k.a,{}),s()("div",{className:"drawer__pager"},void 0,s()("div",{className:"drawer__inner",onFocus:this.onFocus},void 0,s()(m.a,{onClose:this.onBlur}),s()(h.a,{}),t&&s()("div",{className:"drawer__inner__mastodon"},void 0)),s()(w.a,{defaultStyle:{x:-100},style:{x:j()(n?0:-100,{stiffness:210,damping:20})}},void 0,function(e){var t=e.x;return s()("div",{className:"drawer__inner darker",style:{transform:"translateX("+t+"%)",visibility:-100===t?"hidden":"visible"}},void 0,s()(x.a,{}))})))},t}(f.a.PureComponent))||a)||a},841:function(e,t,n){"use strict";var o=n(2),a=n.n(o),i=n(0),s=(n.n(i),n(9)),r=n(6),c=n(66),l=n(842),u=n(22),d=n(26),p=n(282),g=n(11),f=Object(r.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"}}),h=function(){var e=Object(c.c)();return function(t,n){return{account:e(t,n.id)}}},m=function(e,t){var n=t.intl;return{onFollow:function(t){e(t.getIn(["relationship","following"])||t.getIn(["relationship","requested"])?g.j?Object(d.d)("CONFIRM",{message:a()(r.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:n.formatMessage(f.unfollowConfirm),onConfirm:function(){return e(Object(u.D)(t.get("id")))}}):Object(u.D)(t.get("id")):Object(u.z)(t.get("id")))},onBlock:function(t){e(t.getIn(["relationship","blocking"])?Object(u.C)(t.get("id")):Object(u.q)(t.get("id")))},onMute:function(t){e(t.getIn(["relationship","muting"])?Object(u.E)(t.get("id")):Object(p.a)(t))},onMuteNotifications:function(t,n){e(Object(u.A)(t.get("id"),n))}}};t.a=Object(r.g)(Object(s.connect)(h,m)(l.a))},842:function(e,t,n){"use strict";n.d(t,"a",function(){return S});var o,a,i,s=n(2),r=n.n(s),c=n(1),l=n.n(c),u=n(3),d=n.n(u),p=n(4),g=n.n(p),f=n(0),h=(n.n(f),n(13)),m=n.n(h),v=n(5),b=n.n(v),y=n(56),_=n(55),k=n(295),w=n(23),C=n(6),j=n(12),x=n.n(j),M=n(11),O=Object(C.f)({follow:{id:"account.follow",defaultMessage:"Follow"},unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},requested:{id:"account.requested",defaultMessage:"Awaiting approval"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},mute_notifications:{id:"account.mute_notifications",defaultMessage:"Mute notifications from @{name}"},unmute_notifications:{id:"account.unmute_notifications",defaultMessage:"Unmute notifications from @{name}"}}),S=Object(C.g)((i=a=function(e){function t(){var n,o,a;l()(this,t);for(var i=arguments.length,s=Array(i),r=0;r<i;r++)s[r]=arguments[r];return n=o=d()(this,e.call.apply(e,[this].concat(s))),o.handleFollow=function(){o.props.onFollow(o.props.account)},o.handleBlock=function(){o.props.onBlock(o.props.account)},o.handleMute=function(){o.props.onMute(o.props.account)},o.handleMuteNotifications=function(){o.props.onMuteNotifications(o.props.account,!0)},o.handleUnmuteNotifications=function(){o.props.onMuteNotifications(o.props.account,!1)},a=n,d()(o,a)}return g()(t,e),t.prototype.render=function(){var e=this.props,t=e.account,n=e.intl,o=e.hidden;if(!t)return r()("div",{});if(o)return r()("div",{},void 0,t.get("display_name"),t.get("username"));var a=void 0;if(t.get("id")!==M.g&&null!==t.get("relationship",null)){var i=t.getIn(["relationship","following"]),s=t.getIn(["relationship","requested"]),c=t.getIn(["relationship","blocking"]),l=t.getIn(["relationship","muting"]);if(s)a=r()(w.a,{disabled:!0,icon:"hourglass",title:n.formatMessage(O.requested)});else if(c)a=r()(w.a,{active:!0,icon:"unlock-alt",title:n.formatMessage(O.unblock,{name:t.get("username")}),onClick:this.handleBlock});else if(l){var u=void 0;u=t.getIn(["relationship","muting_notifications"])?r()(w.a,{active:!0,icon:"bell",title:n.formatMessage(O.unmute_notifications,{name:t.get("username")}),onClick:this.handleUnmuteNotifications}):r()(w.a,{active:!0,icon:"bell-slash",title:n.formatMessage(O.mute_notifications,{name:t.get("username")}),onClick:this.handleMuteNotifications}),a=r()(f.Fragment,{},void 0,r()(w.a,{active:!0,icon:"volume-up",title:n.formatMessage(O.unmute,{name:t.get("username")}),onClick:this.handleMute}),u)}else t.get("moved")&&!i||(a=r()(w.a,{icon:i?"user-times":"user-plus",title:n.formatMessage(i?O.unfollow:O.follow),onClick:this.handleFollow,active:i}))}return r()("div",{className:"account"},void 0,r()("div",{className:"account__wrapper"},void 0,r()(k.a,{className:"account__display-name",href:t.get("url"),to:"/accounts/"+t.get("id")},t.get("id"),r()("div",{className:"account__avatar-wrapper"},void 0,r()(y.a,{account:t,size:36})),r()(_.a,{account:t})),r()("div",{className:"account__relationship"},void 0,a)))},t}(x.a),a.propTypes={account:m.a.map.isRequired,onFollow:b.a.func.isRequired,onBlock:b.a.func.isRequired,onMute:b.a.func.isRequired,onMuteNotifications:b.a.func.isRequired,intl:b.a.object.isRequired,hidden:b.a.bool},o=i))||o},863:function(e,t,n){"use strict";n.d(t,"a",function(){return j});var o,a,i=n(2),s=n.n(i),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),p=n.n(d),g=n(0),f=(n.n(g),n(5)),h=n.n(f),m=n(13),v=n.n(m),b=n(56),y=n(23),_=n(295),k=n(6),w=n(12),C=n.n(w),j=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){return s()("div",{className:"navigation-bar"},void 0,s()(_.a,{href:this.props.account.get("url"),to:"/accounts/"+this.props.account.get("id")},void 0,s()("span",{style:{display:"none"}},void 0,this.props.account.get("acct")),s()(b.a,{account:this.props.account,size:40})),s()("div",{className:"navigation-bar__profile"},void 0,s()(_.a,{href:this.props.account.get("url"),to:"/accounts/"+this.props.account.get("id")},void 0,s()("strong",{className:"navigation-bar__profile-account"},void 0,"@",this.props.account.get("acct"))),s()("a",{href:"/settings/profile",className:"navigation-bar__profile-edit"},void 0,s()(k.b,{id:"navigation_bar.edit_profile",defaultMessage:"Edit profile"}))),s()(y.a,{title:"",icon:"close",onClick:this.props.onClose}))},t}(C.a),o.propTypes={account:v.a.map.isRequired,onClose:h.a.func},a)},864:function(e,t,n){"use strict";n.d(t,"a",function(){return C});var o,a=n(2),i=n.n(a),s=n(1),r=n.n(s),c=n(3),l=n.n(c),u=n(4),d=n.n(u),p=n(0),g=n.n(p),f=n(6),h=n(96),m=n.n(h),v=n(28),b=n(27),y=n.n(b),_=n(11),k=Object(f.f)({placeholder:{id:"search.placeholder",defaultMessage:"Search"}}),w=function(e){function t(){return r()(this,t),l()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.render=function(){var e=this.props.style,t=_.i?i()(f.b,{id:"search_popout.tips.full_text",defaultMessage:"Simple text returns statuses you have written, favourited, boosted, or have been mentioned in, as well as matching usernames, display names, and hashtags."}):i()(f.b,{id:"search_popout.tips.text",defaultMessage:"Simple text returns matching display names, usernames and hashtags"});return i()("div",{style:Object.assign({},e,{position:"absolute",width:315})},void 0,i()(v.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:y()(1,{damping:35,stiffness:400}),scaleX:y()(1,{damping:35,stiffness:400}),scaleY:y()(1,{damping:35,stiffness:400})}},void 0,function(e){var n=e.opacity,o=e.scaleX,a=e.scaleY;return i()("div",{className:"search-popout",style:{opacity:n,transform:"scale("+o+", "+a+")"}},void 0,i()("h4",{},void 0,i()(f.b,{id:"search_popout.search_format",defaultMessage:"Advanced search format"})),i()("ul",{},void 0,i()("li",{},void 0,i()("em",{},void 0,"#example")," ",i()(f.b,{id:"search_popout.tips.hashtag",defaultMessage:"hashtag"})),i()("li",{},void 0,i()("em",{},void 0,"@username@domain")," ",i()(f.b,{id:"search_popout.tips.user",defaultMessage:"user"})),i()("li",{},void 0,i()("em",{},void 0,"URL")," ",i()(f.b,{id:"search_popout.tips.user",defaultMessage:"user"})),i()("li",{},void 0,i()("em",{},void 0,"URL")," ",i()(f.b,{id:"search_popout.tips.status",defaultMessage:"status"}))),t)}))},t}(g.a.PureComponent),C=Object(f.g)(o=function(e){function t(){var n,o,a;r()(this,t);for(var i=arguments.length,s=Array(i),c=0;c<i;c++)s[c]=arguments[c];return n=o=l()(this,e.call.apply(e,[this].concat(s))),o.state={expanded:!1},o.handleChange=function(e){o.props.onChange(e.target.value)},o.handleClear=function(e){e.preventDefault(),(o.props.value.length>0||o.props.submitted)&&o.props.onClear()},o.handleKeyDown=function(e){"Enter"===e.key?(e.preventDefault(),o.props.onSubmit()):"Escape"===e.key&&document.querySelector(".ui").parentElement.focus()},o.handleFocus=function(){o.setState({expanded:!0}),o.props.onShow()},o.handleBlur=function(){o.setState({expanded:!1})},a=n,l()(o,a)}return d()(t,e),t.prototype.noop=function(){},t.prototype.render=function(){var e=this.props,t=e.intl,n=e.value,o=e.submitted,a=this.state.expanded,s=n.length>0||o;return i()("div",{className:"search"},void 0,i()("label",{},void 0,i()("span",{style:{display:"none"}},void 0,t.formatMessage(k.placeholder)),i()("input",{className:"search__input",type:"text",placeholder:t.formatMessage(k.placeholder),value:n,onChange:this.handleChange,onKeyUp:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur})),i()("div",{role:"button",tabIndex:"0",className:"search__icon",onClick:this.handleClear},void 0,i()("i",{className:"fa fa-search "+(s?"":"active")}),i()("i",{"aria-label":t.formatMessage(k.placeholder),className:"fa fa-times-circle "+(s?"active":"")})),i()(m.a,{show:a&&!s,placement:"bottom",target:this},void 0,i()(w,{})))},t}(g.a.PureComponent))||o},949:function(e,t,n){"use strict";var o=n(9),a=n(863),i=n(11),s=function(e){return{account:e.getIn(["accounts",i.g])}};t.a=Object(o.connect)(s)(a.a)},950:function(e,t,n){"use strict";var o=n(9),a=n(336),i=n(864),s=function(e){return{value:e.getIn(["search","value"]),submitted:e.getIn(["search","submitted"])}},r=function(e){return{onChange:function(t){e(Object(a.e)(t))},onClear:function(){e(Object(a.f)())},onSubmit:function(){e(Object(a.h)())},onShow:function(){e(Object(a.g)())}}};t.a=Object(o.connect)(s,r)(i.a)},951:function(e,t,n){"use strict";var o=n(9),a=n(952),i=function(e){return{results:e.getIn(["search","results"])}};t.a=Object(o.connect)(i)(a.a)},952:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var o,a,i=n(2),s=n.n(i),r=n(1),c=n.n(r),l=n(3),u=n.n(l),d=n(4),p=n.n(d),g=n(0),f=(n.n(g),n(13)),h=n.n(f),m=n(6),v=n(841),b=n(285),y=n(44),_=n(12),k=n.n(_),w=(a=o=function(e){function t(){return c()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props.results,t=void 0,n=void 0,o=void 0,a=0;return e.get("accounts")&&e.get("accounts").size>0&&(a+=e.get("accounts").size,t=s()("div",{className:"search-results__section"},void 0,s()("h5",{},void 0,s()(m.b,{id:"search_results.accounts",defaultMessage:"People"})),e.get("accounts").map(function(e){return s()(v.a,{id:e},e)}))),e.get("statuses")&&e.get("statuses").size>0&&(a+=e.get("statuses").size,n=s()("div",{className:"search-results__section"},void 0,s()("h5",{},void 0,s()(m.b,{id:"search_results.statuses",defaultMessage:"Toots"})),e.get("statuses").map(function(e){return s()(b.a,{id:e},e)}))),e.get("hashtags")&&e.get("hashtags").size>0&&(a+=e.get("hashtags").size,o=s()("div",{className:"search-results__section"},void 0,s()("h5",{},void 0,s()(m.b,{id:"search_results.hashtags",defaultMessage:"Hashtags"})),e.get("hashtags").map(function(e){return s()(y.b,{className:"search-results__hashtag",to:"/timelines/tag/"+e},e,"#",e)}))),s()("div",{className:"search-results"},void 0,s()("div",{className:"search-results__header"},void 0,s()(m.b,{id:"search_results.total",defaultMessage:"{count, number} {count, plural, one {result} other {results}}",values:{count:a}})),t,n,o)},t}(k.a),o.propTypes={results:h.a.map.isRequired},a)}});
+(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{404:function(e,t,o){"use strict";(function(e){o.d(t,"a",(function(){return u}));var a=o(0),n=(o(9),o(6),o(8)),s=o(3),i=o.n(s),c=o(83),r=o.n(c);var l=e.env.CDN_HOST||"",u=function(e){Object(n.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e,t=this.props.emoji;if(t.custom)e=t.imageUrl;else{var o=r.a[t.native]||r.a[t.native.replace(/\uFE0F$/,"")];if(!o)return null;e=l+"/emoji/"+o.filename+".svg"}return(Object(a.a)("div",{className:"autosuggest-emoji"},void 0,Object(a.a)("img",{className:"emojione",src:e,alt:t.native||t.colons}),t.colons))},o}(i.a.PureComponent)}).call(this,o(50))},588:function(e,t,o){"use strict";var a,n,s,i=o(15),c=o(0),r=o(2),l=o(9),u=o(6),p=o(8),d=o(1),g=o(3),b=o.n(g),f=o(320),m=o(110),h=o(16),O=o.n(h),v=o(5),j=o.n(v),y=o(23),_=o(210),C=o(115),S=o(53),M=o(122),k=o(7),w=o(21),x=o(222),T=o(282);var R=Object(k.f)({cancel:{id:"reply_indicator.cancel",defaultMessage:"Cancel"}}),N=Object(k.g)((s=n=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleClick",(function(){t.props.onCancel()})),Object(d.a)(Object(r.a)(t),"handleAccountClick",(function(e){0!==e.button||e.ctrlKey||e.metaKey||(e.preventDefault(),t.context.router.history.push("/accounts/"+t.props.status.getIn(["account","id"])))})),t}return o.prototype.render=function(){var e=this.props,t=e.status,o=e.intl;if(!t)return null;var a={__html:t.get("contentHtml")},n={direction:Object(x.a)(t.get("search_index"))?"rtl":"ltr"};return Object(c.a)("div",{className:"reply-indicator"},void 0,Object(c.a)("div",{className:"reply-indicator__header"},void 0,Object(c.a)("div",{className:"reply-indicator__cancel"},void 0,Object(c.a)(S.a,{title:o.formatMessage(R.cancel),icon:"times",onClick:this.handleClick,inverted:!0})),Object(c.a)("a",{href:t.getIn(["account","url"]),onClick:this.handleAccountClick,className:"reply-indicator__display-name"},void 0,Object(c.a)("div",{className:"reply-indicator__display-avatar"},void 0,Object(c.a)(C.a,{account:t.get("account"),size:24})),Object(c.a)(M.a,{account:t.get("account")}))),Object(c.a)("div",{className:"reply-indicator__content",style:n,dangerouslySetInnerHTML:a}),t.get("media_attachments").size>0&&Object(c.a)(T.a,{compact:!0,media:t.get("media_attachments")}))},o}(w.a),Object(d.a)(n,"contextTypes",{router:j.a.object}),Object(d.a)(n,"propTypes",{status:O.a.map,onCancel:j.a.func.isRequired,intl:j.a.object.isRequired}),a=s))||a,D=Object(i.connect)((function(){var e=Object(_.f)();return function(t){return{status:e(t,{id:t.getIn(["compose","in_reply_to"])})}}}),(function(e){return{onCancel:function(){e(Object(y.M)())}}}))(N);var I=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.account;return(Object(c.a)("div",{className:"autosuggest-account",title:e.get("acct")},void 0,Object(c.a)("div",{className:"autosuggest-account-icon"},void 0,Object(c.a)(C.a,{account:e,size:18})),Object(c.a)(M.a,{account:e})))},o}(w.a);Object(d.a)(I,"propTypes",{account:O.a.map.isRequired});var P=Object(i.connect)((function(){var e=Object(_.d)();return function(t,o){var a=o.id;return{account:e(t,a)}}}))(I),F=o(404),q=o(421);var A=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.tag,t=e.history&&Object(q.a)(e.history.reduce((function(e,t){return e+1*t.uses}),0));return Object(c.a)("div",{className:"autosuggest-hashtag"},void 0,Object(c.a)("div",{className:"autosuggest-hashtag__name"},void 0,"#",Object(c.a)("strong",{},void 0,e.name)),void 0!==e.history&&Object(c.a)("div",{className:"autosuggest-hashtag__uses"},void 0,Object(c.a)(k.b,{id:"autosuggest_hashtag.per_week",defaultMessage:"{count} per week",values:{count:t}})))},o}(b.a.PureComponent),E=o(151),K=o(14),U=o.n(K);var W=function(e,t){var o,a=e.slice(0,t).search(/\S+$/),n=e.slice(t).search(/\s/);return!(o=n<0?e.slice(a):e.slice(a,n+t))||o.trim().length<3||-1===["@",":","#"].indexOf(o[0])?[null,null]:(o=o.trim().toLowerCase()).length>0?[a+1,o]:[null,null]},L=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"state",{suggestionsHidden:!0,focused:!1,selectedSuggestion:0,lastToken:null,tokenStart:0}),Object(d.a)(Object(r.a)(t),"onChange",(function(e){var o=W(e.target.value,e.target.selectionStart),a=o[0],n=o[1];null!==n&&t.state.lastToken!==n?(t.setState({lastToken:n,selectedSuggestion:0,tokenStart:a}),t.props.onSuggestionsFetchRequested(n)):null===n&&(t.setState({lastToken:null}),t.props.onSuggestionsClearRequested()),t.props.onChange(e)})),Object(d.a)(Object(r.a)(t),"onKeyDown",(function(e){var o=t.props,a=o.suggestions,n=o.disabled,s=t.state,i=s.selectedSuggestion,c=s.suggestionsHidden;if(n)e.preventDefault();else if(229!==e.which&&!e.isComposing){switch(e.key){case"Escape":0===a.size||c?document.querySelector(".ui").parentElement.focus():(e.preventDefault(),t.setState({suggestionsHidden:!0}));break;case"ArrowDown":a.size>0&&!c&&(e.preventDefault(),t.setState({selectedSuggestion:Math.min(i+1,a.size-1)}));break;case"ArrowUp":a.size>0&&!c&&(e.preventDefault(),t.setState({selectedSuggestion:Math.max(i-1,0)}));break;case"Enter":case"Tab":null!==t.state.lastToken&&a.size>0&&!c&&(e.preventDefault(),e.stopPropagation(),t.props.onSuggestionSelected(t.state.tokenStart,t.state.lastToken,a.get(i)))}!e.defaultPrevented&&t.props.onKeyDown&&t.props.onKeyDown(e)}})),Object(d.a)(Object(r.a)(t),"onBlur",(function(){t.setState({suggestionsHidden:!0,focused:!1})})),Object(d.a)(Object(r.a)(t),"onFocus",(function(e){t.setState({focused:!0}),t.props.onFocus&&t.props.onFocus(e)})),Object(d.a)(Object(r.a)(t),"onSuggestionClick",(function(e){var o=t.props.suggestions.get(e.currentTarget.getAttribute("data-index"));e.preventDefault(),t.props.onSuggestionSelected(t.state.tokenStart,t.state.lastToken,o),t.textarea.focus()})),Object(d.a)(Object(r.a)(t),"setTextarea",(function(e){t.textarea=e})),Object(d.a)(Object(r.a)(t),"onPaste",(function(e){e.clipboardData&&1===e.clipboardData.files.length&&(t.props.onPaste(e.clipboardData.files),e.preventDefault())})),Object(d.a)(Object(r.a)(t),"renderSuggestion",(function(e,o){var a,n,s=t.state.selectedSuggestion;return"emoji"===e.type?(a=Object(c.a)(F.a,{emoji:e}),n=e.id):"hashtag"===e.type?(a=Object(c.a)(A,{tag:e}),n=e.name):"account"===e.type&&(a=Object(c.a)(P,{id:e.id}),n=e.id),Object(c.a)("div",{role:"button",tabIndex:"0","data-index":o,className:U()("autosuggest-textarea__suggestions__item",{selected:o===s}),onMouseDown:t.onSuggestionClick},n,a)})),t}var a=o.prototype;return a.componentWillReceiveProps=function(e){e.suggestions!==this.props.suggestions&&e.suggestions.size>0&&this.state.suggestionsHidden&&this.state.focused&&this.setState({suggestionsHidden:!1})},a.render=function(){var e=this.props,t=e.value,o=e.suggestions,a=e.disabled,n=e.placeholder,s=e.onKeyUp,i=e.autoFocus,r=e.children,l=this.state.suggestionsHidden,u={direction:"ltr"};return Object(x.a)(t)&&(u.direction="rtl"),[Object(c.a)("div",{className:"compose-form__autosuggest-wrapper"},"autosuggest-wrapper",Object(c.a)("div",{className:"autosuggest-textarea"},void 0,Object(c.a)("label",{},void 0,Object(c.a)("span",{style:{display:"none"}},void 0,n),Object(c.a)(E.a,{inputRef:this.setTextarea,className:"autosuggest-textarea__textarea",disabled:a,placeholder:n,autoFocus:i,value:t,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:s,onFocus:this.onFocus,onBlur:this.onBlur,onPaste:this.onPaste,style:u,"aria-autocomplete":"list"}))),r),Object(c.a)("div",{className:"autosuggest-textarea__suggestions-wrapper"},"suggestions-wrapper",Object(c.a)("div",{className:"autosuggest-textarea__suggestions "+(l||o.isEmpty()?"":"autosuggest-textarea__suggestions--visible")},void 0,o.map(this.renderSuggestion)))]},o}(w.a);Object(d.a)(L,"propTypes",{value:j.a.string,suggestions:O.a.list,disabled:j.a.bool,placeholder:j.a.string,onSuggestionSelected:j.a.func.isRequired,onSuggestionsClearRequested:j.a.func.isRequired,onSuggestionsFetchRequested:j.a.func.isRequired,onChange:j.a.func.isRequired,onKeyUp:j.a.func,onKeyDown:j.a.func,onPaste:j.a.func.isRequired,autoFocus:j.a.bool}),Object(d.a)(L,"defaultProps",{autoFocus:!0});var H=o(4);var z,B=function(e,t,o){var a,n=e.slice(0,t).search(/\S+$/),s=e.slice(t).search(/\s/);return!(a=s<0?e.slice(n):e.slice(n,s+t))||a.trim().length<3||-1===o.indexOf(a[0])?[null,null]:(a=a.trim().toLowerCase()).length>0?[n+1,a]:[null,null]},G=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"state",{suggestionsHidden:!0,focused:!1,selectedSuggestion:0,lastToken:null,tokenStart:0}),Object(d.a)(Object(r.a)(t),"onChange",(function(e){var o=B(e.target.value,e.target.selectionStart,t.props.searchTokens),a=o[0],n=o[1];null!==n&&t.state.lastToken!==n?(t.setState({lastToken:n,selectedSuggestion:0,tokenStart:a}),t.props.onSuggestionsFetchRequested(n)):null===n&&(t.setState({lastToken:null}),t.props.onSuggestionsClearRequested()),t.props.onChange(e)})),Object(d.a)(Object(r.a)(t),"onKeyDown",(function(e){var o=t.props,a=o.suggestions,n=o.disabled,s=t.state,i=s.selectedSuggestion,c=s.suggestionsHidden;if(n)e.preventDefault();else if(229!==e.which&&!e.isComposing){switch(e.key){case"Escape":0===a.size||c?document.querySelector(".ui").parentElement.focus():(e.preventDefault(),t.setState({suggestionsHidden:!0}));break;case"ArrowDown":a.size>0&&!c&&(e.preventDefault(),t.setState({selectedSuggestion:Math.min(i+1,a.size-1)}));break;case"ArrowUp":a.size>0&&!c&&(e.preventDefault(),t.setState({selectedSuggestion:Math.max(i-1,0)}));break;case"Enter":case"Tab":null!==t.state.lastToken&&a.size>0&&!c&&(e.preventDefault(),e.stopPropagation(),t.props.onSuggestionSelected(t.state.tokenStart,t.state.lastToken,a.get(i)))}!e.defaultPrevented&&t.props.onKeyDown&&t.props.onKeyDown(e)}})),Object(d.a)(Object(r.a)(t),"onBlur",(function(){t.setState({suggestionsHidden:!0,focused:!1})})),Object(d.a)(Object(r.a)(t),"onFocus",(function(){t.setState({focused:!0})})),Object(d.a)(Object(r.a)(t),"onSuggestionClick",(function(e){var o=t.props.suggestions.get(e.currentTarget.getAttribute("data-index"));e.preventDefault(),t.props.onSuggestionSelected(t.state.tokenStart,t.state.lastToken,o),t.input.focus()})),Object(d.a)(Object(r.a)(t),"setInput",(function(e){t.input=e})),Object(d.a)(Object(r.a)(t),"renderSuggestion",(function(e,o){var a,n,s=t.state.selectedSuggestion;return"emoji"===e.type?(a=Object(c.a)(F.a,{emoji:e}),n=e.id):"hashtag"===e.type?(a=Object(c.a)(A,{tag:e}),n=e.name):"account"===e.type&&(a=Object(c.a)(P,{id:e.id}),n=e.id),Object(c.a)("div",{role:"button",tabIndex:"0","data-index":o,className:U()("autosuggest-textarea__suggestions__item",{selected:o===s}),onMouseDown:t.onSuggestionClick},n,a)})),t}var a=o.prototype;return a.componentWillReceiveProps=function(e){e.suggestions!==this.props.suggestions&&e.suggestions.size>0&&this.state.suggestionsHidden&&this.state.focused&&this.setState({suggestionsHidden:!1})},a.render=function(){var e=this.props,t=e.value,o=e.suggestions,a=e.disabled,n=e.placeholder,s=e.onKeyUp,i=e.autoFocus,r=e.className,l=e.id,u=e.maxLength,p=this.state.suggestionsHidden,d={direction:"ltr"};return Object(x.a)(t)&&(d.direction="rtl"),Object(c.a)("div",{className:"autosuggest-input"},void 0,Object(c.a)("label",{},void 0,Object(c.a)("span",{style:{display:"none"}},void 0,n),b.a.createElement("input",{type:"text",ref:this.setInput,disabled:a,placeholder:n,autoFocus:i,value:t,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:s,onFocus:this.onFocus,onBlur:this.onBlur,style:d,"aria-autocomplete":"list",id:l,className:r,maxLength:u})),Object(c.a)("div",{className:"autosuggest-textarea__suggestions "+(p||o.isEmpty()?"":"autosuggest-textarea__suggestions--visible")},void 0,o.map(this.renderSuggestion)))},o}(w.a);Object(d.a)(G,"propTypes",{value:j.a.string,suggestions:O.a.list,disabled:j.a.bool,placeholder:j.a.string,onSuggestionSelected:j.a.func.isRequired,onSuggestionsClearRequested:j.a.func.isRequired,onSuggestionsFetchRequested:j.a.func.isRequired,onChange:j.a.func.isRequired,onKeyUp:j.a.func,onKeyDown:j.a.func,autoFocus:j.a.bool,className:j.a.string,id:j.a.string,searchTokens:j.a.arrayOf(j.a.string),maxLength:j.a.number}),Object(d.a)(G,"defaultProps",{autoFocus:!0,searchTokens:Object(H.List)(["@",":","#"])});var V,Y,X,J=Object(k.f)({add_poll:{id:"poll_button.add_poll",defaultMessage:"Add a poll"},remove_poll:{id:"poll_button.remove_poll",defaultMessage:"Remove poll"}}),Z={height:null,lineHeight:"27px"},$=Object(k.g)(z=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleClick",(function(){t.props.onClick()})),t}return o.prototype.render=function(){var e=this.props,t=e.intl,o=e.active,a=e.unavailable,n=e.disabled;return a?null:Object(c.a)("div",{className:"compose-form__poll-button"},void 0,Object(c.a)(S.a,{icon:"tasks",title:t.formatMessage(o?J.remove_poll:J.add_poll),disabled:n,onClick:this.handleClick,className:"compose-form__poll-button-icon "+(o?"active":""),size:18,inverted:!0,style:Z}))},o}(b.a.PureComponent))||z,Q=Object(i.connect)((function(e){return{unavailable:e.getIn(["compose","is_uploading"])||e.getIn(["compose","media_attachments"]).size>0,active:null!==e.getIn(["compose","poll"])}}),(function(e){return{onClick:function(){e((function(t,o){o().getIn(["compose","poll"])?e(Object(y.eb)()):e(Object(y.K)())}))}}}))($);var ee=Object(k.f)({upload:{id:"upload_button.label",defaultMessage:"Add media ({formats})"}}),te={height:null,lineHeight:"27px"},oe=Object(i.connect)((function(){return function(e){return{acceptContentTypes:e.getIn(["media_attachments","accept_content_types"])}}}))(V=Object(k.g)((X=Y=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleChange",(function(e){e.target.files.length>0&&t.props.onSelectFile(e.target.files)})),Object(d.a)(Object(r.a)(t),"handleClick",(function(){t.fileElement.click()})),Object(d.a)(Object(r.a)(t),"setRef",(function(e){t.fileElement=e})),t}return o.prototype.render=function(){var e=this.props,t=e.intl,o=e.resetFileKey,a=e.unavailable,n=e.disabled;e.acceptContentTypes;return a?null:Object(c.a)("div",{className:"compose-form__upload-button"},void 0,Object(c.a)(S.a,{icon:"paperclip",title:t.formatMessage(ee.upload,{formats:"JPEG, PNG, GIF, WebM, MP4, MOV, OGG, WAV, MP3, FLAC"}),disabled:n,onClick:this.handleClick,className:"compose-form__upload-button-icon",size:18,inverted:!0,style:te}),Object(c.a)("label",{},void 0,Object(c.a)("span",{style:{display:"none"}},void 0,t.formatMessage(ee.upload,{formats:"JPEG, PNG, GIF, WebM, MP4, MOV, OGG, WAV, MP3, FLAC"})),b.a.createElement("input",{key:o,ref:this.setRef,type:"file",multiple:!0,onChange:this.handleChange,disabled:n,style:{display:"none"}})))},o}(w.a),Object(d.a)(Y,"propTypes",{disabled:j.a.bool,unavailable:j.a.bool,onSelectFile:j.a.func.isRequired,style:j.a.object,resetFileKey:j.a.number,acceptContentTypes:O.a.listOf(j.a.string).isRequired,intl:j.a.object.isRequired}),V=X))||V)||V,ae=Object(i.connect)((function(e){return{disabled:e.getIn(["compose","is_uploading"])||e.getIn(["compose","media_attachments"]).size+e.getIn(["compose","pending_media_attachments"])>3||e.getIn(["compose","media_attachments"]).some((function(e){return["video","audio"].includes(e.get("type"))})),unavailable:null!==e.getIn(["compose","poll"]),resetFileKey:e.getIn(["compose","resetFileKey"])}}),(function(e){return{onSelectFile:function(t){e(Object(y.mb)(t))}}}))(oe);var ne,se={height:null,lineHeight:"27px",width:"23.14285722px"},ie=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleClick",(function(e){e.preventDefault(),t.props.onClick()})),t}return o.prototype.render=function(){var e=this.props,t=e.label,o=e.title,a=e.active,n=e.ariaControls;return(Object(c.a)("button",{title:o,"aria-label":o,className:"text-icon-button "+(a?"active":""),"aria-expanded":a,onClick:this.handleClick,"aria-controls":n,style:se},void 0,t))},o}(b.a.PureComponent),ce=Object(k.f)({marked:{id:"compose_form.spoiler.marked",defaultMessage:"Text is hidden behind warning"},unmarked:{id:"compose_form.spoiler.unmarked",defaultMessage:"Text is not hidden"}}),re=Object(k.g)(Object(i.connect)((function(e,t){return{label:"CW",title:t.intl.formatMessage(e.getIn(["compose","spoiler"])?ce.marked:ce.unmarked),active:e.getIn(["compose","spoiler"]),ariaControls:"cw-spoiler-input"}}),(function(e){return{onClick:function(){e(Object(y.Q)())}}}))(ie)),le=o(10),ue=o(119),pe=o.n(ue),de=o(101),ge=o(35),be=o.n(ge),fe=o(66),me=o.n(fe),he=o(27);function Oe(e){return function(){var t,o=Object(u.a)(e);if(ve()){var a=Object(u.a)(this).constructor;t=Reflect.construct(o,arguments,a)}else t=o.apply(this,arguments);return Object(l.a)(this,t)}}function ve(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var je,ye,_e,Ce,Se=Object(k.f)({public_short:{id:"privacy.public.short",defaultMessage:"Public"},public_long:{id:"privacy.public.long",defaultMessage:"Visible for all, shown in public timelines"},unlisted_short:{id:"privacy.unlisted.short",defaultMessage:"Unlisted"},unlisted_long:{id:"privacy.unlisted.long",defaultMessage:"Visible for all, but not in public timelines"},private_short:{id:"privacy.private.short",defaultMessage:"Followers-only"},private_long:{id:"privacy.private.long",defaultMessage:"Visible for followers only"},direct_short:{id:"privacy.direct.short",defaultMessage:"Direct"},direct_long:{id:"privacy.direct.long",defaultMessage:"Visible for mentioned users only"},change_privacy:{id:"privacy.change",defaultMessage:"Adjust status privacy"}}),Me=!!me.a.hasSupport&&{passive:!0},ke=function(e){Object(p.a)(t,e);Oe(t);function t(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"state",{mounted:!1}),Object(d.a)(Object(r.a)(t),"handleDocumentClick",(function(e){t.node&&!t.node.contains(e.target)&&t.props.onClose()})),Object(d.a)(Object(r.a)(t),"handleKeyDown",(function(e){var o,a=t.props.items,n=e.currentTarget.getAttribute("data-index"),s=a.findIndex((function(e){return e.value===n}));switch(e.key){case"Escape":t.props.onClose();break;case"Enter":t.handleClick(e);break;case"ArrowDown":(o=t.node.childNodes[s+1])&&(o.focus(),t.props.onChange(o.getAttribute("data-index")));break;case"ArrowUp":(o=t.node.childNodes[s-1])&&(o.focus(),t.props.onChange(o.getAttribute("data-index")));break;case"Tab":(o=e.shiftKey?t.node.childNodes[s-1]||t.node.lastChild:t.node.childNodes[s+1]||t.node.firstChild)&&(o.focus(),t.props.onChange(o.getAttribute("data-index")),e.preventDefault(),e.stopPropagation());break;case"Home":(o=t.node.firstChild)&&(o.focus(),t.props.onChange(o.getAttribute("data-index")));break;case"End":(o=t.node.lastChild)&&(o.focus(),t.props.onChange(o.getAttribute("data-index")))}})),Object(d.a)(Object(r.a)(t),"handleClick",(function(e){var o=e.currentTarget.getAttribute("data-index");e.preventDefault(),t.props.onClose(),t.props.onChange(o)})),Object(d.a)(Object(r.a)(t),"setRef",(function(e){t.node=e})),Object(d.a)(Object(r.a)(t),"setFocusRef",(function(e){t.focusedItem=e})),t}var o=t.prototype;return o.componentDidMount=function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,Me),this.focusedItem&&this.focusedItem.focus(),this.setState({mounted:!0})},o.componentWillUnmount=function(){document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,Me)},o.render=function(){var e=this,t=this.state.mounted,o=this.props,a=o.style,n=o.items,s=o.placement,i=o.value;return Object(c.a)(de.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:be()(1,{damping:35,stiffness:400}),scaleX:be()(1,{damping:35,stiffness:400}),scaleY:be()(1,{damping:35,stiffness:400})}},void 0,(function(o){var r=o.opacity,l=o.scaleX,u=o.scaleY;return(b.a.createElement("div",{className:"privacy-dropdown__dropdown "+s,style:Object(le.default)({},a,{opacity:r,transform:t?"scale("+l+", "+u+")":null,zIndex:2}),role:"listbox",ref:e.setRef},n.map((function(t){return b.a.createElement("div",{role:"option",tabIndex:"0",key:t.value,"data-index":t.value,onKeyDown:e.handleKeyDown,onClick:e.handleClick,className:U()("privacy-dropdown__option",{active:t.value===i}),"aria-selected":t.value===i,ref:t.value===i?e.setFocusRef:null},Object(c.a)("div",{className:"privacy-dropdown__option__icon"},void 0,Object(c.a)(he.a,{id:t.icon,fixedWidth:!0})),Object(c.a)("div",{className:"privacy-dropdown__option__content"},void 0,Object(c.a)("strong",{},void 0,t.text),t.meta))}))))}))},t}(b.a.PureComponent),we=Object(k.g)(ne=function(e){Object(p.a)(t,e);Oe(t);function t(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"state",{open:!1,placement:"bottom"}),Object(d.a)(Object(r.a)(t),"handleToggle",(function(e){var o=e.target;if(t.props.isUserTouching())t.state.open?t.props.onModalClose():t.props.onModalOpen({actions:t.options.map((function(e){return Object(le.default)({},e,{active:e.value===t.props.value})})),onClick:t.handleModalActionClick});else{var a=o.getBoundingClientRect().top;t.state.open&&t.activeElement&&t.activeElement.focus(),t.setState({placement:2*a<innerHeight?"bottom":"top"}),t.setState({open:!t.state.open})}})),Object(d.a)(Object(r.a)(t),"handleModalActionClick",(function(e){e.preventDefault();var o=t.options[e.currentTarget.getAttribute("data-index")].value;t.props.onModalClose(),t.props.onChange(o)})),Object(d.a)(Object(r.a)(t),"handleKeyDown",(function(e){switch(e.key){case"Escape":t.handleClose()}})),Object(d.a)(Object(r.a)(t),"handleMouseDown",(function(){t.state.open||(t.activeElement=document.activeElement)})),Object(d.a)(Object(r.a)(t),"handleButtonKeyDown",(function(e){switch(e.key){case" ":case"Enter":t.handleMouseDown()}})),Object(d.a)(Object(r.a)(t),"handleClose",(function(){t.state.open&&t.activeElement&&t.activeElement.focus(),t.setState({open:!1})})),Object(d.a)(Object(r.a)(t),"handleChange",(function(e){t.props.onChange(e)})),t}var o=t.prototype;return o.componentWillMount=function(){var e=this.props.intl.formatMessage;this.options=[{icon:"globe",value:"public",text:e(Se.public_short),meta:e(Se.public_long)},{icon:"unlock",value:"unlisted",text:e(Se.unlisted_short),meta:e(Se.unlisted_long)},{icon:"lock",value:"private",text:e(Se.private_short),meta:e(Se.private_long)},{icon:"envelope",value:"direct",text:e(Se.direct_short),meta:e(Se.direct_long)}]},o.render=function(){var e=this.props,t=e.value,o=e.intl,a=this.state,n=a.open,s=a.placement,i=this.options.find((function(e){return e.value===t}));return Object(c.a)("div",{className:U()("privacy-dropdown",s,{active:n}),onKeyDown:this.handleKeyDown},void 0,Object(c.a)("div",{className:U()("privacy-dropdown__value",{active:this.options.indexOf(i)===("bottom"===s?0:this.options.length-1)})},void 0,Object(c.a)(S.a,{className:"privacy-dropdown__value-icon",icon:i.icon,title:o.formatMessage(Se.change_privacy),size:18,expanded:n,active:n,inverted:!0,onClick:this.handleToggle,onMouseDown:this.handleMouseDown,onKeyDown:this.handleButtonKeyDown,style:{height:null,lineHeight:"27px"}})),Object(c.a)(pe.a,{show:n,placement:s,target:this},void 0,Object(c.a)(ke,{items:this.options,value:t,onClose:this.handleClose,onChange:this.handleChange,placement:s})))},t}(b.a.PureComponent))||ne,xe=o(48),Te=o(120),Re=Object(i.connect)((function(e){return{isModalOpen:"ACTIONS"===e.get("modal").modalType,value:e.getIn(["compose","privacy"])}}),(function(e){return{onChange:function(t){e(Object(y.R)(t))},isUserTouching:Te.c,onModalOpen:function(t){return e(Object(xe.d)("ACTIONS",t))},onModalClose:function(){return e(Object(xe.c)())}}}))(we),Ne=o(546),De=o(32);function Ie(e){return function(){var t,o=Object(u.a)(e);if(Pe()){var a=Object(u.a)(this).constructor;t=Reflect.construct(o,arguments,a)}else t=o.apply(this,arguments);return Object(l.a)(this,t)}}function Pe(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var Fe=Object(k.f)({option_placeholder:{id:"compose_form.poll.option_placeholder",defaultMessage:"Choice {number}"},add_option:{id:"compose_form.poll.add_option",defaultMessage:"Add a choice"},remove_option:{id:"compose_form.poll.remove_option",defaultMessage:"Remove this choice"},poll_duration:{id:"compose_form.poll.duration",defaultMessage:"Poll duration"},switchToMultiple:{id:"compose_form.poll.switch_to_multiple",defaultMessage:"Change poll to allow multiple choices"},switchToSingle:{id:"compose_form.poll.switch_to_single",defaultMessage:"Change poll to allow for a single choice"},minutes:{id:"intervals.full.minutes",defaultMessage:"{number, plural, one {# minute} other {# minutes}}"},hours:{id:"intervals.full.hours",defaultMessage:"{number, plural, one {# hour} other {# hours}}"},days:{id:"intervals.full.days",defaultMessage:"{number, plural, one {# day} other {# days}}"}}),qe=Object(k.g)(je=function(e){Object(p.a)(t,e);Ie(t);function t(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleOptionTitleChange",(function(e){t.props.onChange(t.props.index,e.target.value)})),Object(d.a)(Object(r.a)(t),"handleOptionRemove",(function(){t.props.onRemove(t.props.index)})),Object(d.a)(Object(r.a)(t),"handleToggleMultiple",(function(e){t.props.onToggleMultiple(),e.preventDefault(),e.stopPropagation()})),Object(d.a)(Object(r.a)(t),"handleCheckboxKeypress",(function(e){"Enter"!==e.key&&" "!==e.key||t.handleToggleMultiple(e)})),Object(d.a)(Object(r.a)(t),"onSuggestionsClearRequested",(function(){t.props.onClearSuggestions()})),Object(d.a)(Object(r.a)(t),"onSuggestionsFetchRequested",(function(e){t.props.onFetchSuggestions(e)})),Object(d.a)(Object(r.a)(t),"onSuggestionSelected",(function(e,o,a){t.props.onSuggestionSelected(e,o,a,["poll","options",t.props.index])})),t}return t.prototype.render=function(){var e=this.props,t=e.isPollMultiple,o=e.title,a=e.index,n=e.intl;return(Object(c.a)("li",{},void 0,Object(c.a)("label",{className:"poll__option editable"},void 0,Object(c.a)("span",{className:U()("poll__input",{checkbox:t}),onClick:this.handleToggleMultiple,onKeyPress:this.handleCheckboxKeypress,role:"button",tabIndex:"0",title:n.formatMessage(t?Fe.switchToSingle:Fe.switchToMultiple),"aria-label":n.formatMessage(t?Fe.switchToSingle:Fe.switchToMultiple)}),Object(c.a)(G,{placeholder:n.formatMessage(Fe.option_placeholder,{number:a+1}),maxLength:100,value:o,onChange:this.handleOptionTitleChange,suggestions:this.props.suggestions,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,searchTokens:[":"]})),Object(c.a)("div",{className:"poll__cancel"},void 0,Object(c.a)(S.a,{disabled:a<=1,title:n.formatMessage(Fe.remove_option),icon:"times",onClick:this.handleOptionRemove}))))},t}(b.a.PureComponent))||je,Ae=Object(k.g)((Ce=_e=function(e){Object(p.a)(t,e);Ie(t);function t(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleAddOption",(function(){t.props.onAddOption("")})),Object(d.a)(Object(r.a)(t),"handleSelectDuration",(function(e){t.props.onChangeSettings(e.target.value,t.props.isMultiple)})),Object(d.a)(Object(r.a)(t),"handleToggleMultiple",(function(){t.props.onChangeSettings(t.props.expiresIn,!t.props.isMultiple)})),t}return t.prototype.render=function(){var e=this,t=this.props,o=t.options,a=t.expiresIn,n=t.isMultiple,s=t.onChangeOption,i=t.onRemoveOption,r=t.intl,l=Object(De.default)(t,["options","expiresIn","isMultiple","onChangeOption","onRemoveOption","intl"]);return o?Object(c.a)("div",{className:"compose-form__poll-wrapper"},void 0,Object(c.a)("ul",{},void 0,o.map((function(t,o){return b.a.createElement(qe,Object(le.default)({title:t,key:o,index:o,onChange:s,onRemove:i,isPollMultiple:n,onToggleMultiple:e.handleToggleMultiple},l))}))),Object(c.a)("div",{className:"poll__footer"},void 0,Object(c.a)("button",{disabled:o.size>=5,className:"button button-secondary",onClick:this.handleAddOption},void 0,Object(c.a)(he.a,{id:"plus"})," ",b.a.createElement(k.b,Fe.add_option)),Object(c.a)("select",{value:a,onChange:this.handleSelectDuration},void 0,Object(c.a)("option",{value:300},void 0,r.formatMessage(Fe.minutes,{number:5})),Object(c.a)("option",{value:1800},void 0,r.formatMessage(Fe.minutes,{number:30})),Object(c.a)("option",{value:3600},void 0,r.formatMessage(Fe.hours,{number:1})),Object(c.a)("option",{value:21600},void 0,r.formatMessage(Fe.hours,{number:6})),Object(c.a)("option",{value:86400},void 0,r.formatMessage(Fe.days,{number:1})),Object(c.a)("option",{value:259200},void 0,r.formatMessage(Fe.days,{number:3})),Object(c.a)("option",{value:604800},void 0,r.formatMessage(Fe.days,{number:7}))))):null},t}(w.a),Object(d.a)(_e,"propTypes",{options:O.a.list,expiresIn:j.a.number,isMultiple:j.a.bool,onChangeOption:j.a.func.isRequired,onAddOption:j.a.func.isRequired,onRemoveOption:j.a.func.isRequired,onChangeSettings:j.a.func.isRequired,suggestions:O.a.list,onClearSuggestions:j.a.func.isRequired,onFetchSuggestions:j.a.func.isRequired,onSuggestionSelected:j.a.func.isRequired,intl:j.a.object.isRequired}),ye=Ce))||ye,Ee=Object(i.connect)((function(e){return{suggestions:e.getIn(["compose","suggestions"]),options:e.getIn(["compose","poll","options"]),expiresIn:e.getIn(["compose","poll","expires_in"]),isMultiple:e.getIn(["compose","poll","multiple"])}}),(function(e){return{onAddOption:function(t){e(Object(y.L)(t))},onRemoveOption:function(t){e(Object(y.fb)(t))},onChangeOption:function(t,o){e(Object(y.T)(t,o))},onChangeSettings:function(t,o){e(Object(y.U)(t,o))},onClearSuggestions:function(){e(Object(y.W)())},onFetchSuggestions:function(t){e(Object(y.Z)(t))},onSuggestionSelected:function(t,o,a,n){e(Object(y.ib)(t,o,a,n))}}}))(Ae),Ke=o(319),Ue=Object(i.connect)((function(e){return{active:e.getIn(["compose","is_uploading"]),progress:e.getIn(["compose","progress"])}}))(Ke.a);var We=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleUndoClick",(function(e){e.stopPropagation(),t.props.onUndo(t.props.media.get("id"))})),Object(d.a)(Object(r.a)(t),"handleFocalPointClick",(function(e){e.stopPropagation(),t.props.onOpenFocalPoint(t.props.media.get("id"))})),t}return o.prototype.render=function(){var e=this,t=this.props.media,o=t.getIn(["meta","focus","x"]),a=t.getIn(["meta","focus","y"]),n=100*(o/2+.5),s=100*(a/-2+.5);return Object(c.a)("div",{className:"compose-form__upload",tabIndex:"0",role:"button"},void 0,Object(c.a)(de.a,{defaultStyle:{scale:.8},style:{scale:be()(1,{stiffness:180,damping:12})}},void 0,(function(o){var a=o.scale;return(Object(c.a)("div",{className:"compose-form__upload-thumbnail",style:{transform:"scale("+a+")",backgroundImage:"url("+t.get("preview_url")+")",backgroundPosition:n+"% "+s+"%"}},void 0,Object(c.a)("div",{className:U()("compose-form__upload__actions",{active:!0})},void 0,Object(c.a)("button",{className:"icon-button",onClick:e.handleUndoClick},void 0,Object(c.a)(he.a,{id:"times"})," ",Object(c.a)(k.b,{id:"upload_form.undo",defaultMessage:"Delete"})),Object(c.a)("button",{className:"icon-button",onClick:e.handleFocalPointClick},void 0,Object(c.a)(he.a,{id:"pencil"})," ",Object(c.a)(k.b,{id:"upload_form.edit",defaultMessage:"Edit"})))))})))},o}(w.a);Object(d.a)(We,"contextTypes",{router:j.a.object}),Object(d.a)(We,"propTypes",{media:O.a.map.isRequired,onUndo:j.a.func.isRequired,onOpenFocalPoint:j.a.func.isRequired});var Le=Object(i.connect)((function(e,t){var o=t.id;return{media:e.getIn(["compose","media_attachments"]).find((function(e){return e.get("id")===o}))}}),(function(e){return{onUndo:function(t){e(Object(y.kb)(t))},onOpenFocalPoint:function(t){e(Object(xe.d)("FOCAL_POINT",{id:t}))},onSubmit:function(t){e(Object(y.jb)(t))}}}))(We);var He=Object(k.f)({marked:{id:"compose_form.sensitive.marked",defaultMessage:"Media is marked as sensitive"},unmarked:{id:"compose_form.sensitive.unmarked",defaultMessage:"Media is not marked as sensitive"}}),ze=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props,t=e.active,o=e.disabled,a=e.onClick,n=e.intl;return(Object(c.a)("div",{className:"compose-form__sensitive-button"},void 0,Object(c.a)("label",{className:U()("icon-button",{active:t}),title:n.formatMessage(t?He.marked:He.unmarked)},void 0,Object(c.a)("input",{name:"mark-sensitive",type:"checkbox",checked:t,onChange:a,disabled:o}),Object(c.a)("span",{className:U()("checkbox",{active:t})}),Object(c.a)(k.b,{id:"compose_form.sensitive.hide",defaultMessage:"Mark media as sensitive"}))))},o}(b.a.PureComponent),Be=Object(i.connect)((function(e){return{active:e.getIn(["compose","sensitive"]),disabled:e.getIn(["compose","spoiler"])}}),(function(e){return{onClick:function(){e(Object(y.O)())}}}))(Object(k.g)(ze));var Ge=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.mediaIds;return(Object(c.a)("div",{className:"compose-form__upload-wrapper"},void 0,Object(c.a)(Ue,{icon:"upload",message:Object(c.a)(k.b,{id:"upload_progress.label",defaultMessage:"Uploading…"})}),Object(c.a)("div",{className:"compose-form__uploads-wrapper"},void 0,e.map((function(e){return Object(c.a)(Le,{id:e},e)}))),!e.isEmpty()&&Object(c.a)(Be,{})))},o}(w.a);Object(d.a)(Ge,"propTypes",{mediaIds:O.a.list.isRequired});var Ve=Object(i.connect)((function(e){return{mediaIds:e.getIn(["compose","media_attachments"]).map((function(e){return e.get("id")}))}}))(Ge);var Ye,Xe,Je,Ze=function(e){Object(p.a)(o,e);var t;t=o;function o(){return e.apply(this,arguments)||this}return o.prototype.render=function(){var e=this.props.message;return(Object(c.a)(de.a,{defaultStyle:{opacity:0,scaleX:.85,scaleY:.75},style:{opacity:be()(1,{damping:35,stiffness:400}),scaleX:be()(1,{damping:35,stiffness:400}),scaleY:be()(1,{damping:35,stiffness:400})}},void 0,(function(t){var o=t.opacity,a=t.scaleX,n=t.scaleY;return(Object(c.a)("div",{className:"compose-form__warning",style:{opacity:o,transform:"scale("+a+", "+n+")"}},void 0,e))})))},o}(b.a.PureComponent),$e=o(22),Qe=/(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i,et=Object(i.connect)((function(e){return{needsLockWarning:"private"===e.getIn(["compose","privacy"])&&!e.getIn(["accounts",$e.n,"locked"]),hashtagWarning:"public"!==e.getIn(["compose","privacy"])&&Qe.test(e.getIn(["compose","text"])),directMessageWarning:"direct"===e.getIn(["compose","privacy"])}}))((function(e){var t=e.needsLockWarning,o=e.hashtagWarning,a=e.directMessageWarning;if(t)return Object(c.a)(Ze,{message:Object(c.a)(k.b,{id:"compose_form.lock_disclaimer",defaultMessage:"Your account is not {locked}. Anyone can follow you to view your follower-only posts.",values:{locked:Object(c.a)("a",{href:"/user-settings"},void 0,Object(c.a)(k.b,{id:"compose_form.lock_disclaimer.lock",defaultMessage:"locked"}))}})});if(o)return Object(c.a)(Ze,{message:Object(c.a)(k.b,{id:"compose_form.hashtag_warning",defaultMessage:"This toot won't be listed under any hashtag as it is unlisted. Only public toots can be searched by hashtag."})});if(a){var n=Object(c.a)("span",{},void 0,Object(c.a)(k.b,{id:"compose_form.direct_message_warning",defaultMessage:"This toot will only be sent to all the mentioned users."})," ",Object(c.a)("a",{href:"/terms",target:"_blank"},void 0,Object(c.a)(k.b,{id:"compose_form.direct_message_warning_learn_more",defaultMessage:"Learn more"})));return(Object(c.a)(Ze,{message:n}))}return null})),tt=o(79);var ot="><\85 \u2028\u2029\t\n\v\f\r",at=Object(k.f)({placeholder:{id:"compose_form.placeholder",defaultMessage:"What is on your mind?"},spoiler_placeholder:{id:"compose_form.spoiler_placeholder",defaultMessage:"Write your warning here"},publish:{id:"compose_form.publish",defaultMessage:"Toot"},publishLoud:{id:"compose_form.publish_loud",defaultMessage:"{publish}!"}}),nt=Object(k.g)((Je=Xe=function(e){Object(p.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(d.a)(Object(r.a)(t),"handleChange",(function(e){t.props.onChange(e.target.value)})),Object(d.a)(Object(r.a)(t),"handleKeyDown",(function(e){13===e.keyCode&&(e.ctrlKey||e.metaKey)&&t.handleSubmit()})),Object(d.a)(Object(r.a)(t),"handleSubmit",(function(){t.props.text!==t.autosuggestTextarea.textarea.value&&t.props.onChange(t.autosuggestTextarea.textarea.value);var e=t.props,o=e.isSubmitting,a=e.isChangingUpload,n=e.isUploading,s=e.anyMedia,i=[t.props.spoilerText,t.props.text].join("");o||n||a||Object(tt.length)(i)>$e.m||0!==i.length&&0===i.trim().length&&!s||t.props.onSubmit(t.context.router?t.context.router.history:null)})),Object(d.a)(Object(r.a)(t),"onSuggestionsClearRequested",(function(){t.props.onClearSuggestions()})),Object(d.a)(Object(r.a)(t),"onSuggestionsFetchRequested",(function(e){t.props.onFetchSuggestions(e)})),Object(d.a)(Object(r.a)(t),"onSuggestionSelected",(function(e,o,a){t.props.onSuggestionSelected(e,o,a,["text"])})),Object(d.a)(Object(r.a)(t),"onSpoilerSuggestionSelected",(function(e,o,a){t.props.onSuggestionSelected(e,o,a,["spoiler_text"])})),Object(d.a)(Object(r.a)(t),"handleChangeSpoilerText",(function(e){t.props.onChangeSpoilerText(e.target.value)})),Object(d.a)(Object(r.a)(t),"handleFocus",(function(){if(t.composeForm&&!t.props.singleColumn){var e=t.composeForm.getBoundingClientRect(),o=e.left,a=e.right;(o<0||a>(window.innerWidth||document.documentElement.clientWidth))&&t.composeForm.scrollIntoView()}})),Object(d.a)(Object(r.a)(t),"setAutosuggestTextarea",(function(e){t.autosuggestTextarea=e})),Object(d.a)(Object(r.a)(t),"setSpoilerText",(function(e){t.spoilerText=e})),Object(d.a)(Object(r.a)(t),"setRef",(function(e){t.composeForm=e})),Object(d.a)(Object(r.a)(t),"handleEmojiPick",(function(e){var o=t.props.text,a=t.autosuggestTextarea.textarea.selectionStart,n=e.custom&&a>0&&!ot.includes(o[a-1]);t.props.onPickEmoji(a,e,n)})),t}var a=o.prototype;return a.componentDidUpdate=function(e){var t,o;this.props.focusDate!==e.focusDate?(this.props.preselectDate!==e.preselectDate?(t=this.props.text.length,o=this.props.text.search(/\s/)+1):"number"==typeof this.props.caretPosition?(o=this.props.caretPosition,t=this.props.caretPosition):o=t=this.props.text.length,this.autosuggestTextarea.textarea.setSelectionRange(o,t),this.autosuggestTextarea.textarea.focus()):e.isSubmitting&&!this.props.isSubmitting?this.autosuggestTextarea.textarea.focus():this.props.spoiler!==e.spoiler&&(this.props.spoiler?this.spoilerText.input.focus():this.autosuggestTextarea.textarea.focus())},a.render=function(){var e=this.props,t=e.intl,o=e.onPaste,a=e.showSearch,n=e.anyMedia,s=this.props.isSubmitting,i=[this.props.spoilerText,this.props.text].join(""),r=s||this.props.isUploading||this.props.isChangingUpload||Object(tt.length)(i)>$e.m||0!==i.length&&0===i.trim().length&&!n,l="";return l="private"===this.props.privacy||"direct"===this.props.privacy?Object(c.a)("span",{className:"compose-form__publish-private"},void 0,Object(c.a)(he.a,{id:"lock"})," ",t.formatMessage(at.publish)):"unlisted"!==this.props.privacy?t.formatMessage(at.publishLoud,{publish:t.formatMessage(at.publish)}):t.formatMessage(at.publish),Object(c.a)("div",{className:"compose-form"},void 0,Object(c.a)(et,{}),Object(c.a)(D,{}),b.a.createElement("div",{className:"spoiler-input "+(this.props.spoiler?"spoiler-input--visible":""),ref:this.setRef},b.a.createElement(G,{placeholder:t.formatMessage(at.spoiler_placeholder),value:this.props.spoilerText,onChange:this.handleChangeSpoilerText,onKeyDown:this.handleKeyDown,disabled:!this.props.spoiler,ref:this.setSpoilerText,suggestions:this.props.suggestions,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSpoilerSuggestionSelected,searchTokens:[":"],id:"cw-spoiler-input",className:"spoiler-input__input"})),b.a.createElement(L,{ref:this.setAutosuggestTextarea,placeholder:t.formatMessage(at.placeholder),disabled:s,value:this.props.text,onChange:this.handleChange,suggestions:this.props.suggestions,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onSuggestionsFetchRequested:this.onSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,onPaste:o,autoFocus:!a&&!Object(Te.b)(window.innerWidth)},Object(c.a)(Ne.a,{onPickEmoji:this.handleEmojiPick}),Object(c.a)("div",{className:"compose-form__modifiers"},void 0,Object(c.a)(Ve,{}),Object(c.a)(Ee,{}))),Object(c.a)("div",{className:"compose-form__buttons-wrapper"},void 0,Object(c.a)("div",{className:"compose-form__buttons"},void 0,Object(c.a)(ae,{}),Object(c.a)(Q,{}),Object(c.a)(Re,{}),Object(c.a)(re,{})),Object(c.a)("div",{className:"character-counter__wrapper"},void 0,Object(c.a)(f.a,{max:$e.m,text:i}))),Object(c.a)("div",{className:"compose-form__publish"},void 0,Object(c.a)("div",{className:"compose-form__publish-button-wrapper"},void 0,Object(c.a)(m.a,{text:l,onClick:this.handleSubmit,disabled:r,block:!0}))))},o}(w.a),Object(d.a)(Xe,"contextTypes",{router:j.a.object}),Object(d.a)(Xe,"propTypes",{intl:j.a.object.isRequired,text:j.a.string.isRequired,suggestions:O.a.list,spoiler:j.a.bool,privacy:j.a.string,spoilerText:j.a.string,focusDate:j.a.instanceOf(Date),caretPosition:j.a.number,preselectDate:j.a.instanceOf(Date),isSubmitting:j.a.bool,isChangingUpload:j.a.bool,isUploading:j.a.bool,onChange:j.a.func.isRequired,onSubmit:j.a.func.isRequired,onClearSuggestions:j.a.func.isRequired,onFetchSuggestions:j.a.func.isRequired,onSuggestionSelected:j.a.func.isRequired,onChangeSpoilerText:j.a.func.isRequired,onPaste:j.a.func.isRequired,onPickEmoji:j.a.func.isRequired,showSearch:j.a.bool,anyMedia:j.a.bool,singleColumn:j.a.bool}),Object(d.a)(Xe,"defaultProps",{showSearch:!1}),Ye=Je))||Ye;t.a=Object(i.connect)((function(e){return{text:e.getIn(["compose","text"]),suggestions:e.getIn(["compose","suggestions"]),spoiler:e.getIn(["compose","spoiler"]),spoilerText:e.getIn(["compose","spoiler_text"]),privacy:e.getIn(["compose","privacy"]),focusDate:e.getIn(["compose","focusDate"]),caretPosition:e.getIn(["compose","caretPosition"]),preselectDate:e.getIn(["compose","preselectDate"]),isSubmitting:e.getIn(["compose","is_submitting"]),isChangingUpload:e.getIn(["compose","is_changing_upload"]),isUploading:e.getIn(["compose","is_uploading"]),showSearch:e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]),anyMedia:e.getIn(["compose","media_attachments"]).size>0}}),(function(e){return{onChange:function(t){e(Object(y.N)(t))},onSubmit:function(t){e(Object(y.jb)(t))},onClearSuggestions:function(){e(Object(y.W)())},onFetchSuggestions:function(t){e(Object(y.Z)(t))},onSuggestionSelected:function(t,o,a,n){e(Object(y.ib)(t,o,a,n))},onChangeSpoilerText:function(t){e(Object(y.P)(t))},onPaste:function(t){e(Object(y.mb)(t))},onPickEmoji:function(t,o,a){e(Object(y.bb)(t,o,a))}}}))(nt)},787:function(e,t,o){"use strict";var a=o(15),n=o(7),s=o(782),i=o(724),c=o(48),r=o(22),l=Object(n.f)({logoutMessage:{id:"confirmations.logout.message",defaultMessage:"Are you sure you want to log out?"},logoutConfirm:{id:"confirmations.logout.confirm",defaultMessage:"Log out"}});t.a=Object(n.g)(Object(a.connect)((function(e){return{account:e.getIn(["accounts",r.n])}}),(function(e,t){var o=t.intl;return{onLogout:function(){e(Object(c.d)("CONFIRM",{message:o.formatMessage(l.logoutMessage),confirm:o.formatMessage(l.logoutConfirm),onConfirm:function(){return Object(i.a)()}}))}}}))(s.a))},813:function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return k}));var a,n=o(0),s=o(2),i=(o(9),o(6),o(8)),c=o(1),r=o(3),l=o.n(r),u=o(588),p=o(787),d=o(15),g=o(23),b=o(322),f=o(7),m=o(781),h=o(101),O=o(35),v=o.n(O),j=o(1178),y=o(48),_=o(22),C=o(27),S=o(724);var M=Object(f.f)({start:{id:"getting_started.heading",defaultMessage:"Getting started"},home_timeline:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},public:{id:"navigation_bar.public_timeline",defaultMessage:"Federated timeline"},community:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},logout:{id:"navigation_bar.logout",defaultMessage:"Logout"},compose:{id:"navigation_bar.compose",defaultMessage:"Compose new toot"},logoutMessage:{id:"confirmations.logout.message",defaultMessage:"Are you sure you want to log out?"},logoutConfirm:{id:"confirmations.logout.confirm",defaultMessage:"Log out"}}),k=Object(d.connect)((function(e,t){return{columns:e.getIn(["settings","columns"]),showSearch:t.multiColumn?e.getIn(["search","submitted"])&&!e.getIn(["search","hidden"]):t.isSearchPage}}))(a=Object(f.g)(a=function(e){Object(i.a)(o,e);var t;t=o;function o(){for(var t,o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return t=e.call.apply(e,[this].concat(a))||this,Object(c.a)(Object(s.a)(t),"handleLogoutClick",(function(e){var o=t.props,a=o.dispatch,n=o.intl;return e.preventDefault(),e.stopPropagation(),a(Object(y.d)("CONFIRM",{message:n.formatMessage(M.logoutMessage),confirm:n.formatMessage(M.logoutConfirm),onConfirm:function(){return Object(S.a)()}})),!1})),Object(c.a)(Object(s.a)(t),"onFocus",(function(){t.props.dispatch(Object(g.S)(!0))})),Object(c.a)(Object(s.a)(t),"onBlur",(function(){t.props.dispatch(Object(g.S)(!1))})),t}var a=o.prototype;return a.componentDidMount=function(){this.props.isSearchPage||this.props.dispatch(Object(g.db)())},a.componentWillUnmount=function(){this.props.isSearchPage||this.props.dispatch(Object(g.lb)())},a.render=function(){var e=this.props,t=e.multiColumn,o=e.showSearch,a=e.isSearchPage,s=e.intl,i="";if(t){var c=this.props.columns;i=Object(n.a)("nav",{className:"drawer__header"},void 0,Object(n.a)(b.a,{to:"/getting-started",className:"drawer__tab",title:s.formatMessage(M.start),"aria-label":s.formatMessage(M.start)},void 0,Object(n.a)(C.a,{id:"bars",fixedWidth:!0})),!c.some((function(e){return"HOME"===e.get("id")}))&&Object(n.a)(b.a,{to:"/timelines/home",className:"drawer__tab",title:s.formatMessage(M.home_timeline),"aria-label":s.formatMessage(M.home_timeline)},void 0,Object(n.a)(C.a,{id:"home",fixedWidth:!0})),!c.some((function(e){return"NOTIFICATIONS"===e.get("id")}))&&Object(n.a)(b.a,{to:"/notifications",className:"drawer__tab",title:s.formatMessage(M.notifications),"aria-label":s.formatMessage(M.notifications)},void 0,Object(n.a)(C.a,{id:"bell",fixedWidth:!0})),!c.some((function(e){return"COMMUNITY"===e.get("id")}))&&Object(n.a)(b.a,{to:"/timelines/public/local",className:"drawer__tab",title:s.formatMessage(M.community),"aria-label":s.formatMessage(M.community)},void 0,Object(n.a)(C.a,{id:"users",fixedWidth:!0})),!c.some((function(e){return"PUBLIC"===e.get("id")}))&&Object(n.a)(b.a,{to:"/timelines/public",className:"drawer__tab",title:s.formatMessage(M.public),"aria-label":s.formatMessage(M.public)},void 0,Object(n.a)(C.a,{id:"globe",fixedWidth:!0})),Object(n.a)("a",{href:"/user-settings",className:"drawer__tab",title:s.formatMessage(M.preferences),"aria-label":s.formatMessage(M.preferences)},void 0,Object(n.a)(C.a,{id:"cog",fixedWidth:!0})),Object(n.a)("a",{href:"/auth/sign_out",className:"drawer__tab",title:s.formatMessage(M.logout),"aria-label":s.formatMessage(M.logout),onClick:this.handleLogoutClick},void 0,Object(n.a)(C.a,{id:"sign-out",fixedWidth:!0})))}return(Object(n.a)("div",{className:"drawer",role:"region","aria-label":s.formatMessage(M.compose)},void 0,i,(t||a)&&Object(n.a)(m.a,{}),Object(n.a)("div",{className:"drawer__pager"},void 0,!a&&Object(n.a)("div",{className:"drawer__inner",onFocus:this.onFocus},void 0,Object(n.a)(p.a,{onClose:this.onBlur}),Object(n.a)(u.a,{}),"mascot && ( ",Object(n.a)("div",{className:"drawer__inner__mastodon"},void 0,Object(n.a)("img",{alt:"",draggable:"false",src:_.l}))," )"),Object(n.a)(h.a,{defaultStyle:{x:a?0:-100},style:{x:v()(o||a?0:-100,{stiffness:210,damping:20})}},void 0,(function(e){var t=e.x;return(Object(n.a)("div",{className:"drawer__inner darker",style:{transform:"translateX("+t+"%)",visibility:-100===t?"hidden":"visible"}},void 0,Object(n.a)(j.a,{})))})))))},o}(l.a.PureComponent))||a)||a}}]);
//# sourceMappingURL=compose.js.map
\ No newline at end of file