{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/account_timeline/index.jsx"],"names":["emptyList","ImmutableList","RemoteHint","_ref2","accountId","url","refresh","acct","useAppSelector","state","_state$accounts$get","accounts","get","domain","split","undefined","_jsx","TimelineHint","message","FormattedMessage","id","defaultMessage","label","values","className","onClick","AccountTimeline","ImmutablePureComponent","constructor","arguments","_defineProperty","maxId","this","props","dispatch","expandAccountTimeline","withReplies","tagged","params","reloadAccountTimeline","fetchRemoteOutbox","handleReloadContent","_load","fetchAccount","expandAccountFeaturedTimeline","fetchFeaturedTags","me","connectTimeline","componentDidMount","lookupAccount","componentDidUpdate","prevProps","disconnectTimeline","timeline","componentWillUnmount","render","statusIds","featuredStatusIds","isLoading","hasMore","blockedBy","suspended","isAccount","hidden","multiColumn","remote","remoteUrl","isEmpty","Column","LoadingIndicator","BundleColumnError","errorType","emptyMessage","forceEmptyState","LimitedAccountHint","handleRefresh","remoteMessage","ColumnBackButton","StatusList","prepend","AccountHeader","hideTabs","onReloadContent","alwaysPrepend","append","scrollKey","onLoadMore","handleLoadMore","bindToDocument","timelineId","withCounters","PropTypes","shape","string","isRequired","func","ImmutablePropTypes","list","bool","connect","mapStateToProps","_ref","getIn","normalizeForLookup","path","getAccountHidden"],"mappings":"4TA2BA,MAAMA,EAAYC,iBAmCZC,EAAaC,IAAkC,IAAjC,UAAEC,EAAS,IAAEC,EAAG,QAAEC,GAASH,EAC7C,MAAMI,EAAOC,aAAeC,IAAK,IAAAC,EAAA,OAAiC,QAAjCA,EAAID,EAAME,SAASC,IAAIR,UAAU,IAAAM,OAAA,EAA7BA,EAA+BH,IAAI,IAClEM,EAASN,EAAOA,EAAKO,MAAM,KAAK,QAAKC,EAE3C,OAAQC,YAAA,gBACNA,YAACC,IAAY,CACXZ,IAAKA,EACLa,QAASF,YAACG,IAAgB,CAACC,GAAE,sCAAuCC,eAAe,iDACnFC,MAAON,YAACG,IAAgB,CAACC,GAAE,gCAAiCC,eAAe,6BAA6BE,OAAQ,C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G,MAAO,CACLjC,YACA6D,SAAWxD,EAAM6F,MAAM,CAAC,WAAYlG,EAAW,WAAaK,EAAM6F,MAAM,CAAC,WAAYlG,EAAW,cAChG8D,UAAWzD,EAAM6F,MAAM,CAAC,WAAYlG,EAAW,QAC/C0D,YAAarD,EAAM6F,MAAM,CAAC,WAAYlG,IACtCoD,UAAW/C,EAAM6F,MAAM,CAAC,YAAa,WAAWE,IAAQ,SAAUxG,GAClEyD,kBAAmBrB,EAAcnC,iBAAkBQ,EAAM6F,MAAM,CAAC,YAAa,WAAWlG,WAAmBiC,EAAS,IAAIA,IAAW,KAAM,SAAUrC,GACnJ0D,UAAWjD,EAAM6F,MAAM,CAAC,YAAa,WAAWE,IAAQ,cACxD7C,QAASlD,EAAM6F,MAAM,CAAC,YAAa,WAAWE,IAAQ,YACtD3C,UAAWpD,EAAM6F,MAAM,CAAC,WAAYlG,EAAW,cAAc,GAC7D2D,OAAQ0C,YAAiBhG,EAAOL,GAChCwD,UAAWnD,EAAM6F,MAAM,CAAC,gBAAiBlG,EAAW,eAAe,GACpE,GA+KY+F,CAAyBzE,E","file":"js/features/account_timeline-48c1347d41ed8e45c732.chunk.js","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { FormattedMessage } from 'react-intl';\n\nimport { List as ImmutableList } from 'immutable';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\nimport { connect } from 'react-redux';\n\nimport { TimelineHint } from 'mastodon/components/timeline_hint';\nimport BundleColumnError from 'mastodon/features/ui/components/bundle_column_error';\nimport { me } from 'mastodon/initial_state';\nimport { normalizeForLookup } from 'mastodon/reducers/accounts_map';\nimport { getAccountHidden } from 'mastodon/selectors/accounts';\nimport { useAppSelector } from 'mastodon/store';\n\nimport { lookupAccount, fetchAccount, fetchRemoteOutbox } from '../../actions/accounts';\nimport { fetchFeaturedTags } from '../../actions/featured_tags';\nimport { expandAccountFeaturedTimeline, expandAccountTimeline, connectTimeline, disconnectTimeline, reloadAccountTimeline } from '../../actions/timelines';\nimport { ColumnBackButton } from '../../components/column_back_button';\nimport { LoadingIndicator } from '../../components/loading_indicator';\nimport StatusList from '../../components/status_list';\nimport Column from '../ui/components/column';\n\nimport { AccountHeader } from './components/account_header';\nimport { LimitedAccountHint } from './components/limited_account_hint';\n\nconst emptyList = ImmutableList();\n\nconst mapStateToProps = (state, { params: { acct, id, tagged }, withReplies = false }) => {\n const accountId = id || state.getIn(['accounts_map', normalizeForLookup(acct)]);\n\n if (accountId === null) {\n return {\n isLoading: false,\n isAccount: false,\n statusIds: emptyList,\n };\n } else if (!accountId) {\n return {\n isLoading: true,\n statusIds: emptyList,\n };\n }\n\n const path = withReplies ? `${accountId}:with_replies` : `${accountId}${tagged ? `:${tagged}` : ''}`;\n\n return {\n accountId,\n remote: !!(state.getIn(['accounts', accountId, 'acct']) !== state.getIn(['accounts', accountId, 'username'])),\n remoteUrl: state.getIn(['accounts', accountId, 'url']),\n isAccount: !!state.getIn(['accounts', accountId]),\n statusIds: state.getIn(['timelines', `account:${path}`, 'items'], emptyList),\n featuredStatusIds: withReplies ? ImmutableList() : state.getIn(['timelines', `account:${accountId}:pinned${tagged ? `:${tagged}` : ''}`, 'items'], emptyList),\n isLoading: state.getIn(['timelines', `account:${path}`, 'isLoading']),\n hasMore: state.getIn(['timelines', `account:${path}`, 'hasMore']),\n suspended: state.getIn(['accounts', accountId, 'suspended'], false),\n hidden: getAccountHidden(state, accountId),\n blockedBy: state.getIn(['relationships', accountId, 'blocked_by'], false),\n };\n};\n\nconst RemoteHint = ({ accountId, url, refresh }) => {\n const acct = useAppSelector(state => state.accounts.get(accountId)?.acct);\n const domain = acct ? acct.split('@')[1] : undefined;\n\n return (