-{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/following/index.js"],"names":["Following","Object","react_redux__WEBPACK_IMPORTED_MODULE_6__","state","props","accountIds","getIn","params","accountId","hasMore","handleLoadMore","lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default","_this","dispatch","_actions_accounts__WEBPACK_IMPORTED_MODULE_11__","leading","componentWillMount","this","componentWillReceiveProps","nextProps","render","_props","shouldUpdateScroll","babel_runtime_helpers_jsx__WEBPACK_IMPORTED_MODULE_0___default","_ui_components_column__WEBPACK_IMPORTED_MODULE_14__","_components_loading_indicator__WEBPACK_IMPORTED_MODULE_10__","emptyMessage","react_intl__WEBPACK_IMPORTED_MODULE_12__","id","defaultMessage","_components_column_back_button__WEBPACK_IMPORTED_MODULE_16__","_components_scrollable_list__WEBPACK_IMPORTED_MODULE_17__","scrollKey","onLoadMore","prepend","_account_timeline_containers_header_container__WEBPACK_IMPORTED_MODULE_15__","hideTabs","alwaysPrepend","alwaysShowScrollbar","map","_containers_account_container__WEBPACK_IMPORTED_MODULE_13__","withNote","react_immutable_pure_component__WEBPACK_IMPORTED_MODULE_7__","propTypes","prop_types__WEBPACK_IMPORTED_MODULE_8___default","a","object","isRequired","func","react_immutable_proptypes__WEBPACK_IMPORTED_MODULE_9___default","list","bool"],"mappings":"gWAyBqBA,EADpBC,OAAAC,EAAA,QAAAD,CALuB,SAACE,EAAOC,GAAR,OACtBC,WAAYF,EAAMG,OAAO,aAAc,YAAaF,EAAMG,OAAOC,UAAW,UAC5EC,UAAWN,EAAMG,OAAO,aAAc,YAAaF,EAAMG,OAAOC,UAAW,4LA0B3EE,eAAiBC,IAAS,WACxBC,EAAKR,MAAMS,SAASZ,OAAAa,EAAA,EAAAb,CAAgBW,EAAKR,MAAMG,OAAOC,aACrD,KAAOO,SAAS,6CAdnBC,8BACEC,KAAKb,MAAMS,SAASZ,OAAAa,EAAA,EAAAb,CAAagB,KAAKb,MAAMG,OAAOC,YACnDS,KAAKb,MAAMS,SAASZ,OAAAa,EAAA,EAAAb,CAAegB,KAAKb,MAAMG,OAAOC,yBAGvDU,mCAA2BC,GACrBA,EAAUZ,OAAOC,YAAcS,KAAKb,MAAMG,OAAOC,WAAaW,EAAUZ,OAAOC,YACjFS,KAAKb,MAAMS,SAASZ,OAAAa,EAAA,EAAAb,CAAakB,EAAUZ,OAAOC,YAClDS,KAAKb,MAAMS,SAASZ,OAAAa,EAAA,EAAAb,CAAekB,EAAUZ,OAAOC,0BAQxDY,kBAAU,IAAAC,EAC4CJ,KAAKb,MAAjDkB,EADAD,EACAC,mBAAoBjB,EADpBgB,EACoBhB,WAAYI,EADhCY,EACgCZ,QAExC,IAAKJ,EACH,OAAAkB,IACGC,EAAA,UADH,EAAAD,IAEKE,EAAA,OAKP,IAAMC,EAAAH,IAAgBI,EAAA,GAAhBC,GAAoC,wBAApCC,eAA2E,yCAEjF,OAAAN,IACGC,EAAA,UADH,EAAAD,IAEKO,EAAA,MAFLP,IAIKQ,EAAA,GAJLC,UAKgB,YALhBvB,QAMeA,EANfwB,WAOkBhB,KAAKP,eAPvBY,mBAQ0BA,EAR1BY,QAAAX,IASgBY,EAAA,GAThB3B,UAS2CS,KAAKb,MAAMG,OAAOC,UAT7D4B,UAAA,IAAAC,eAAA,EAAAC,qBAAA,EAAAZ,aAYoBA,QAZpB,EAcOrB,EAAWkC,IAAI,SAAAX,GAAA,OAAAL,IACbiB,EAAA,GADaZ,GACiBA,EADjBa,UAC+B,GAAtBb,WAtDIc,EAAA,KAE9BC,WACLpC,OAAQqC,EAAAC,EAAUC,OAAOC,WACzBlC,SAAU+B,EAAAC,EAAUG,KAAKD,WACzBzB,mBAAoBsB,EAAAC,EAAUG,KAC9B3C,WAAY4C,EAAAJ,EAAmBK,KAC/BzC,QAASmC,EAAAC,EAAUM","file":"features/following.js","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { debounce } from 'lodash';\nimport LoadingIndicator from '../../components/loading_indicator';\nimport {\n fetchAccount,\n fetchFollowing,\n expandFollowing,\n} from '../../actions/accounts';\nimport { FormattedMessage } from 'react-intl';\nimport AccountContainer from '../../containers/account_container';\nimport Column from '../ui/components/column';\nimport HeaderContainer from '../account_timeline/containers/header_container';\nimport ColumnBackButton from '../../components/column_back_button';\nimport ScrollableList from '../../components/scrollable_list';\n\nconst mapStateToProps = (state, props) => ({\n accountIds: state.getIn(['user_lists', 'following', props.params.accountId, 'items']),\n hasMore: !!state.getIn(['user_lists', 'following', props.params.accountId, 'next']),\n});\n\n@connect(mapStateToProps)\nexport default class Following extends ImmutablePureComponent {\n\n static propTypes = {\n params: PropTypes.object.isRequired,\n dispatch: PropTypes.func.isRequired,\n shouldUpdateScroll: PropTypes.func,\n accountIds: ImmutablePropTypes.list,\n hasMore: PropTypes.bool,\n };\n\n componentWillMount () {\n this.props.dispatch(fetchAccount(this.props.params.accountId));\n this.props.dispatch(fetchFollowing(this.props.params.accountId));\n }\n\n componentWillReceiveProps (nextProps) {\n if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) {\n this.props.dispatch(fetchAccount(nextProps.params.accountId));\n this.props.dispatch(fetchFollowing(nextProps.params.accountId));\n }\n }\n\n handleLoadMore = debounce(() => {\n this.props.dispatch(expandFollowing(this.props.params.accountId));\n }, 300, { leading: true });\n\n render () {\n const { shouldUpdateScroll, accountIds, hasMore } = this.props;\n\n if (!accountIds) {\n return (\n <Column>\n <LoadingIndicator />\n </Column>\n );\n }\n\n const emptyMessage = <FormattedMessage id='account.follows.empty' defaultMessage=\"This user doesn't follow anyone yet.\" />;\n\n return (\n <Column>\n <ColumnBackButton />\n\n <ScrollableList\n scrollKey='following'\n hasMore={hasMore}\n onLoadMore={this.handleLoadMore}\n shouldUpdateScroll={shouldUpdateScroll}\n prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />}\n alwaysPrepend\n alwaysShowScrollbar\n emptyMessage={emptyMessage}\n >\n {accountIds.map(id =>\n <AccountContainer key={id} id={id} withNote={false} />\n )}\n </ScrollableList>\n </Column>\n );\n }\n\n}\n"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///app/javascript/builds/pleroma/mastofe/app/javascript/mastodon/features/following/index.js"],"names":["Following","connect","state","props","isAccount","getIn","params","accountId","accountIds","hasMore","blockedBy","lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default","_this","dispatch","expandFollowing","leading","componentWillMount","this","fetchAccount","fetchFollowing","componentWillReceiveProps","nextProps","render","_this$props","shouldUpdateScroll","Object","_babel_runtime_helpers_esm_jsx__WEBPACK_IMPORTED_MODULE_0__","_ui_components_column__WEBPACK_IMPORTED_MODULE_14__","mastodon_components_missing_indicator__WEBPACK_IMPORTED_MODULE_18__","_components_loading_indicator__WEBPACK_IMPORTED_MODULE_10__","emptyMessage","react_intl__WEBPACK_IMPORTED_MODULE_12__","id","defaultMessage","_components_column_back_button__WEBPACK_IMPORTED_MODULE_16__","_components_scrollable_list__WEBPACK_IMPORTED_MODULE_17__","scrollKey","onLoadMore","handleLoadMore","prepend","_account_timeline_containers_header_container__WEBPACK_IMPORTED_MODULE_15__","hideTabs","alwaysPrepend","map","_containers_account_container__WEBPACK_IMPORTED_MODULE_13__","withNote","ImmutablePureComponent","PropTypes","object","isRequired","func","ImmutablePropTypes","list","bool"],"mappings":"qUA4BMA,EADUC,kBAPQ,SAACC,EAAOC,GAAR,MAAmB,CACzCC,YAAaF,EAAMG,MAAM,CAAC,WAAYF,EAAMG,OAAOC,YACnDC,WAAYN,EAAMG,MAAM,CAAC,aAAc,YAAaF,EAAMG,OAAOC,UAAW,UAC5EE,UAAWP,EAAMG,MAAM,CAAC,aAAc,YAAaF,EAAMG,OAAOC,UAAW,SAC3EG,UAAWR,EAAMG,MAAM,CAAC,gBAAiBF,EAAMG,OAAOC,UAAW,eAAe,0MA4B/DI,IAAS,WACxBC,EAAKT,MAAMU,SA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,IAC1EC,eAAa,EACbZ,aAAcA,QAPhB,EASGpB,EAAY,GAAKF,EAAWmC,IAAI,SAAAX,GAAE,OACjCP,OAAAC,EAAA,EAAAD,CAACmB,EAAA,EAAD,CAA2BZ,GAAIA,EAAIa,UAAU,GAAtBb,WA/DXc,+BAEH,CACjBxC,OAAQyC,IAAUC,OAAOC,WACzBpC,SAAUkC,IAAUG,KAAKD,WACzBzB,mBAAoBuB,IAAUG,KAC9B1C,WAAY2C,IAAmBC,KAC/B3C,QAASsC,IAAUM,KACnB3C,UAAWqC,IAAUM,KACrBjD,UAAW2C,IAAUM","file":"features/following.js","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\nimport PropTypes from 'prop-types';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport { debounce } from 'lodash';\nimport LoadingIndicator from '../../components/loading_indicator';\nimport {\n fetchAccount,\n fetchFollowing,\n expandFollowing,\n} from '../../actions/accounts';\nimport { FormattedMessage } from 'react-intl';\nimport AccountContainer from '../../containers/account_container';\nimport Column from '../ui/components/column';\nimport HeaderContainer from '../account_timeline/containers/header_container';\nimport ColumnBackButton from '../../components/column_back_button';\nimport ScrollableList from '../../components/scrollable_list';\nimport MissingIndicator from 'mastodon/components/missing_indicator';\n\nconst mapStateToProps = (state, props) => ({\n isAccount: !!state.getIn(['accounts', props.params.accountId]),\n accountIds: state.getIn(['user_lists', 'following', props.params.accountId, 'items']),\n hasMore: !!state.getIn(['user_lists', 'following', props.params.accountId, 'next']),\n blockedBy: state.getIn(['relationships', props.params.accountId, 'blocked_by'], false),\n});\n\nexport default @connect(mapStateToProps)\nclass Following extends ImmutablePureComponent {\n\n static propTypes = {\n params: PropTypes.object.isRequired,\n dispatch: PropTypes.func.isRequired,\n shouldUpdateScroll: PropTypes.func,\n accountIds: ImmutablePropTypes.list,\n hasMore: PropTypes.bool,\n blockedBy: PropTypes.bool,\n isAccount: PropTypes.bool,\n };\n\n componentWillMount () {\n this.props.dispatch(fetchAccount(this.props.params.accountId));\n this.props.dispatch(fetchFollowing(this.props.params.accountId));\n }\n\n componentWillReceiveProps (nextProps) {\n if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) {\n this.props.dispatch(fetchAccount(nextProps.params.accountId));\n this.props.dispatch(fetchFollowing(nextProps.params.accountId));\n }\n }\n\n handleLoadMore = debounce(() => {\n this.props.dispatch(expandFollowing(this.props.params.accountId));\n }, 300, { leading: true });\n\n render () {\n const { shouldUpdateScroll, accountIds, hasMore, blockedBy, isAccount } = this.props;\n\n if (!isAccount) {\n return (\n <Column>\n <MissingIndicator />\n </Column>\n );\n }\n\n if (!accountIds) {\n return (\n <Column>\n <LoadingIndicator />\n </Column>\n );\n }\n\n const emptyMessage = blockedBy ? <FormattedMessage id='empty_column.account_unavailable' defaultMessage='Profile unavailable' /> : <FormattedMessage id='account.follows.empty' defaultMessage=\"This user doesn't follow anyone yet.\" />;\n\n return (\n <Column>\n <ColumnBackButton />\n\n <ScrollableList\n scrollKey='following'\n hasMore={hasMore}\n onLoadMore={this.handleLoadMore}\n shouldUpdateScroll={shouldUpdateScroll}\n prepend={<HeaderContainer accountId={this.props.params.accountId} hideTabs />}\n alwaysPrepend\n emptyMessage={emptyMessage}\n >\n {blockedBy ? [] : accountIds.map(id =>\n <AccountContainer key={id} id={id} withNote={false} />\n )}\n </ScrollableList>\n </Column>\n );\n }\n\n}\n"],"sourceRoot":""}
\ No newline at end of file