{"version":3,"sources":["webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/containers/navigation_container.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/containers/search_container.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/components/hashtag.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/components/search_results.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/containers/search_results_container.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/components/header.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/containers/header_container.js","webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/flavours/glitch/features/compose/index.js"],"names":["react_redux__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react_intl__WEBPACK_IMPORTED_MODULE_1__","_components_compose_form__WEBPACK_IMPORTED_MODULE_2__","flavours_glitch_actions_compose__WEBPACK_IMPORTED_MODULE_3__","flavours_glitch_actions_modal__WEBPACK_IMPORTED_MODULE_4__","flavours_glitch_actions_local_settings__WEBPACK_IMPORTED_MODULE_5__","flavours_glitch_util_privacy_preference__WEBPACK_IMPORTED_MODULE_6__","messages","defineMessages","missingDescriptionMessage","id","defaultMessage","missingDescriptionConfirm","connect","state","spoilersAlwaysOn","getIn","inReplyTo","replyPrivacy","sideArmBasePrivacy","sideArmRestrictedPrivacy","privacyPreference","sideArmPrivacy","advancedOptions","focusDate","caretPosition","isSubmitting","isChangingUpload","isUploading","layout","media","preselectDate","privacy","contentType","sideArm","sensitive","showSearch","spoiler","spoilerText","suggestions","text","anyMedia","size","mediaDescriptionConfirmation","preselectOnReply","dispatch","_ref","intl","onChange","changeCompose","onSubmit","routerHistory","submitCompose","onClearSuggestions","clearComposeSuggestions","onFetchSuggestions","token","fetchComposeSuggestions","onSuggestionSelected","position","suggestion","path","selectComposeSuggestion","onChangeSpoilerText","changeComposeSpoilerText","onChangeContentType","value","changeComposeContentType","onPaste","files","uploadCompose","onPickEmoji","emoji","insertEmojiCompose","onChangeSpoilerness","changeComposeSpoilerness","onChangeVisibility","changeComposeVisibility","onMount","mountCompose","onUnmount","unmountCompose","onMediaDescriptionConfirm","openModal","message","formatMessage","confirm","onConfirm","onDoNotAsk","changeLocalSetting","ComposeForm","account","me","NavigationBar","submitted","changeSearch","onClear","clearSearch","submitSearch","onShow","Search","Hashtag","hashtag","Object","jsx","className","permalink","href","get","to","index_es","values","rawCount","count","shortNumberFormat","build","width","height","data","reverse","map","day","toArray","style","fill","dismissSuggestion","SearchResults","injectIntl","componentDidMount","this","props","fetchSuggestions","render","accounts","statuses","hashtags","_this$props","results","isEmpty","accountId","account_container","actionIcon","actionTitle","onActionClick","icon","fixedWidth","statusId","status_container","components_hashtag","ImmutablePureComponent","ImmutablePropTypes","isRequired","list","PropTypes","func","object","community","home_timeline","logout","notifications","public","settings","start","Header","columns","unreadNotifications","showNotificationsBadge","onSettingsClick","renderForColumn","conditionalRender","bind","columnId","some","column","Link","aria-label","title","onClick","data-method","signOutLink","number","bool","e","preventDefault","stopPropagation","compose","Compose","ownProps","multiColumn","isSearchPage","computedClass","classNames","role","header_container","search_container","navigation_container","compose_form_container","mascot","alt","draggable","src","optional_motion","defaultStyle","x","spring","stiffness","damping","transform","visibility","search_results_container","React","PureComponent"],"mappings":"2FAAA,IAAAA,EAAAC,EAAA,IAAAC,EAAAD,EAAA,GAAAE,EAAAF,EAAA,KAAAG,EAAAH,EAAA,IAAAI,EAAAJ,EAAA,IAAAK,EAAAL,EAAA,KAAAM,EAAAN,EAAA,KAyBMO,EAAWC,YAAe,CAC9BC,0BAAyB,CAAAC,GAAA,kDAAAC,eAAA,yJAEzBC,0BAAyB,CAAAF,GAAA,kDAAAC,eAAA,iBAiHZE,sBA5Gf,SAA0BC,GAC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EI0J,EAAgBC,IAAW,SAAU,YAE3C,OACExF,OAAAC,EAAA,EAAAD,CAAA,OAAKE,UAAWqF,EAAeE,KAAK,SAASjB,aAAYhI,EAAKsC,cAAc9E,EAASkL,eAArF,EACGG,GAAerF,OAAAC,EAAA,EAAAD,CAAC0F,EAAD,KAEdL,GAAeC,IAAiBtF,OAAAC,EAAA,EAAAD,CAAC2F,EAAD,IAElC3F,OAAAC,EAAA,EAAAD,CAAA,OAAKE,UAAU,sBAAf,GACIoF,GAAgBtF,OAAAC,EAAA,EAAAD,CAAA,OAAKE,UAAU,sBAAf,EAChBF,OAAAC,EAAA,EAAAD,CAAC4F,EAAD,IACA5F,OAAAC,EAAA,EAAAD,CAAC6F,EAAA,EAAD,IACCR,GACCrF,OAAAC,EAAA,EAAAD,CAAA,OAAKE,UAAU,gCAAf,EACG4F,IAAS9F,OAAAC,EAAA,EAAAD,CAAA,OAAK+F,IAAI,GAAGC,UAAU,QAAQC,IAAKH,MAAa9F,OAAAC,EAAA,EAAAD,CAAA,UAAQE,UAAU,eAKlFF,OAAAC,EAAA,EAAAD,CAACkG,EAAA,EAAD,CAAQC,aAAc,CAAEC,EAAGd,EAAe,GAAK,KAAOlE,MAAO,CAAEgF,EAAGC,IAAOxK,GAAcyJ,EAAe,GAAK,IAAK,CAAEgB,UAAW,IAAKC,QAAS,YAA3I,EACG,SAAAhK,GAAA,IAAG6J,EAAH7J,EAAG6J,EAAH,OACCpG,OAAAC,EAAA,EAAAD,CAAA,OAAKE,UAAU,uBAAuBkB,MAAO,CAAEoF,UAAS,cAAgBJ,EAAhB,KAAuBK,YAAmB,MAAPL,EAAa,SAAW,iBAAnH,EACEpG,OAAAC,EAAA,EAAAD,CAAC0G,EAAD,aArCMC,IAAMC","file":"flavours/glitch/async/compose.js","sourcesContent":["import { connect } from 'react-redux';\nimport { defineMessages } from 'react-intl';\nimport ComposeForm from '../components/compose_form';\nimport {\n changeCompose,\n changeComposeSpoilerText,\n changeComposeSpoilerness,\n changeComposeVisibility,\n changeComposeContentType,\n clearComposeSuggestions,\n fetchComposeSuggestions,\n insertEmojiCompose,\n mountCompose,\n selectComposeSuggestion,\n submitCompose,\n unmountCompose,\n uploadCompose,\n} from 'flavours/glitch/actions/compose';\nimport {\n openModal,\n} from 'flavours/glitch/actions/modal';\nimport { changeLocalSetting } from 'flavours/glitch/actions/local_settings';\n\nimport { privacyPreference } from 'flavours/glitch/util/privacy_preference';\n\nconst messages = defineMessages({\n missingDescriptionMessage: { id: 'confirmations.missing_media_description.message',\n defaultMessage: 'At least one media attachment is lacking a description. Consider describing all media attachments for the visually impaired before sending your toot.' },\n missingDescriptionConfirm: { id: 'confirmations.missing_media_description.confirm',\n defaultMessage: 'Send anyway' },\n});\n\n// State mapping.\nfunction mapStateToProps (state) {\n const spoilersAlwaysOn = state.getIn(['local_settings', 'always_show_spoilers_field']);\n const inReplyTo = state.getIn(['compose', 'in_reply_to']);\n const replyPrivacy = inReplyTo ? state.getIn(['statuses', inReplyTo, 'visibility']) : null;\n const sideArmBasePrivacy = state.getIn(['local_settings', 'side_arm']);\n const sideArmRestrictedPrivacy = replyPrivacy ? privacyPreference(replyPrivacy, sideArmBasePrivacy) : null;\n let sideArmPrivacy = null;\n switch (state.getIn(['local_settings', 'side_arm_reply_mode'])) {\n case 'copy':\n sideArmPrivacy = replyPrivacy;\n break;\n case 'restrict':\n sideArmPrivacy = sideArmRestrictedPrivacy;\n break;\n }\n sideArmPrivacy = sideArmPrivacy || sideArmBasePrivacy;\n return {\n advancedOptions: state.getIn(['compose', 'advanced_options']),\n focusDate: state.getIn(['compose', 'focusDate']),\n caretPosition: state.getIn(['compose', 'caretPosition']),\n isSubmitting: state.getIn(['compose', 'is_submitting']),\n isChangingUpload: state.getIn(['compose', 'is_changing_upload']),\n isUploading: state.getIn(['compose', 'is_uploading']),\n layout: state.getIn(['local_settings', 'layout']),\n media: state.getIn(['compose', 'media_attachments']),\n preselectDate: state.getIn(['compose', 'preselectDate']),\n privacy: state.getIn(['compose', 'privacy']),\n contentType: state.getIn(['compose', 'content_type']),\n sideArm: sideArmPrivacy,\n sensitive: state.getIn(['compose', 'sensitive']),\n showSearch: state.getIn(['search', 'submitted']) && !state.getIn(['search', 'hidden']),\n spoiler: spoilersAlwaysOn || state.getIn(['compose', 'spoiler']),\n spoilerText: state.getIn(['compose', 'spoiler_text']),\n suggestions: state.getIn(['compose', 'suggestions']),\n text: state.getIn(['compose', 'text']),\n anyMedia: state.getIn(['compose', 'media_attachments']).size > 0,\n spoilersAlwaysOn: spoilersAlwaysOn,\n mediaDescriptionConfirmation: state.getIn(['local_settings', 'confirm_missing_media_description']),\n preselectOnReply: state.getIn(['local_settings', 'preselect_on_reply']),\n };\n};\n\n// Dispatch mapping.\nconst mapDispatchToProps = (dispatch, { intl }) => ({\n\n onChange(text) {\n dispatch(changeCompose(text));\n },\n\n onSubmit(routerHistory) {\n dispatch(submitCompose(routerHistory));\n },\n\n onClearSuggestions() {\n dispatch(clearComposeSuggestions());\n },\n\n onFetchSuggestions(token) {\n dispatch(fetchComposeSuggestions(token));\n },\n\n onSuggestionSelected(position, token, suggestion, path) {\n dispatch(selectComposeSuggestion(position, token, suggestion, path));\n },\n\n onChangeSpoilerText(text) {\n dispatch(changeComposeSpoilerText(text));\n },\n\n onChangeContentType(value) {\n dispatch(changeComposeContentType(value));\n },\n\n onPaste(files) {\n dispatch(uploadCompose(files));\n },\n\n onPickEmoji(position, emoji) {\n dispatch(insertEmojiCompose(position, emoji));\n },\n\n onChangeSpoilerness() {\n dispatch(changeComposeSpoilerness());\n },\n\n onChangeVisibility(value) {\n dispatch(changeComposeVisibility(value));\n },\n\n onMount() {\n dispatch(mountCompose());\n },\n\n onUnmount() {\n dispatch(unmountCompose());\n },\n\n onMediaDescriptionConfirm(routerHistory) {\n dispatch(openModal('CONFIRM', {\n message: intl.formatMessage(messages.missingDescriptionMessage),\n confirm: intl.formatMessage(messages.missingDescriptionConfirm),\n onConfirm: () => dispatch(submitCompose(routerHistory)),\n onDoNotAsk: () => dispatch(changeLocalSetting(['confirm_missing_media_description'], false)),\n }));\n },\n\n});\n\nexport default connect(mapStateToProps, mapDispatchToProps)(ComposeForm);\n","import { connect } from 'react-redux';\nimport NavigationBar from '../components/navigation_bar';\nimport { me } from 'flavours/glitch/util/initial_state';\n\nconst mapStateToProps = state => {\n return {\n account: state.getIn(['accounts', me]),\n };\n};\n\nexport default connect(mapStateToProps)(NavigationBar);\n","import { connect } from 'react-redux';\nimport {\n changeSearch,\n clearSearch,\n submitSearch,\n showSearch,\n} from 'flavours/glitch/actions/search';\nimport Search from '../components/search';\n\nconst mapStateToProps = state => ({\n value: state.getIn(['search', 'value']),\n submitted: state.getIn(['search', 'submitted']),\n});\n\nconst mapDispatchToProps = dispatch => ({\n\n onChange (value) {\n dispatch(changeSearch(value));\n },\n\n onClear () {\n dispatch(clearSearch());\n },\n\n onSubmit () {\n dispatch(submitSearch());\n },\n\n onShow () {\n dispatch(showSearch());\n },\n\n});\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Search);\n","import React from 'react';\nimport { Sparklines, SparklinesCurve } from 'react-sparklines';\nimport { FormattedMessage } from 'react-intl';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport Permalink from './permalink';\nimport { shortNumberFormat } from 'flavours/glitch/util/numbers';\n\nconst Hashtag = ({ hashtag }) => (\n