{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/reblogs/index.jsx"],"names":["messages","defineMessages","refresh","id","defaultMessage","Reblogs","ImmutablePureComponent","constructor","arguments","handleRefresh","this","props","dispatch","fetchReblogs","params","statusId","UNSAFE_componentWillMount","accountIds","UNSAFE_componentWillReceiveProps","nextProps","render","intl","multiColumn","_jsx","Column","LoadingIndicator","emptyMessage","FormattedMessage","bindToDocument","ColumnHeader","showBackButton","extraButton","type","className","title","formatMessage","onClick","Icon","ScrollableList","scrollKey","map","AccountContainer","withNote","Helmet","name","content","propTypes","PropTypes","object","isRequired","func","ImmutablePropTypes","list","bool","connect","mapStateToProps","state","getIn","injectIntl"],"mappings":"0PAmBA,MAAMA,EAAWC,YAAe,CAC9BC,QAAS,CAAEC,GAAG,UAAYC,eAAe,aAO3C,MAAMC,UAAgBC,IAAuBC,cAAA,SAAAC,WAAA,KAsB3CC,cAAgB,KACdC,KAAKC,MAAMC,SAASC,YAAaH,KAAKC,MAAMG,OAAOC,UAAU,CAC7D,CAdFC,4BACON,KAAKC,MAAMM,YACdP,KAAKC,MAAMC,SAASC,YAAaH,KAAKC,MAAMG,OAAOC,UAEvD,CAEAG,iCAAiCC,GAC3BA,EAAUL,OAAOC,WAAaL,KAAKC,MAAMG,OAAOC,UAAYI,EAAUL,OAAOC,UAC/EL,KAAKC,MAAMC,SAASC,YAAaM,EAAUL,OAAOC,UAEtD,CAMAK,SACE,MAAM,KAAEC,EAAI,WAAEJ,EAAU,YAAEK,GAAgBZ,KAAKC,MAE/C,IAAKM,EACH,OACEM,YAACC,IAAM,UACLD,YAACE,IAAgB,KAKvB,MAAMC,EAAeH,YAACI,IAAgB,CAACxB,GAAE,uBAAwBC,eAAe,iFAEhF,OACEmB,YAACC,IAAM,CAACI,gBAAiBN,QAAY,EACnCC,YAACM,IAAY,CACXC,gBAAc,EACdR,YAAaA,EACbS,YACER,YAAA,UAAQS,KAAK,SAASC,UAAU,wBAAwBC,MAAOb,EAAKc,cAAcnC,EAASE,SAAU,aAAYmB,EAAKc,cAAcnC,EAASE,SAAUkC,QAAS1B,KAAKD,oBAAc,EAACc,YAACc,IAAI,CAAClC,GAAG,eAIjMoB,YAACe,IAAc,CACbC,UAAU,UACVb,aAAcA,EACdE,gBAAiBN,QAAY,EAE5BL,EAAWuB,KAAIrC,GACdoB,YAACkB,IAAgB,CAAUtC,GAAIA,EAAIuC,UAAU,GAAtBvC,MAI3BoB,YAACoB,IAAM,UACLpB,YAAA,QAAMqB,KAAK,SAASC,QAAQ,aAIpC,EAhEIxC,EAEGyC,UAAY,CACjBhC,OAAQiC,IAAUC,OAAOC,WACzBrC,SAAUmC,IAAUG,KAAKD,WACzBhC,WAAYkC,IAAmBC,KAC/B9B,YAAayB,IAAUM,KACvBhC,KAAM0B,IAAUC,OAAOC,YA6DZK,6BAxESC,CAACC,EAAO7C,KAAK,CACnCM,WAAYuC,EAAMC,MAAM,CAAC,aAAc,eAAgB9C,EAAMG,OAAOC,cAuEvDuC,CAAyBI,YAAWrD,G","file":"js/features/reblogs-66aa73407846a1b7b5b6.chunk.js","sourcesContent":["import PropTypes from 'prop-types';\n\nimport { defineMessages, injectIntl, FormattedMessage } from 'react-intl';\n\nimport { Helmet } from 'react-helmet';\n\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\nimport { connect } from 'react-redux';\n\nimport { Icon } from 'mastodon/components/icon';\n\nimport { fetchReblogs } from '../../actions/interactions';\nimport ColumnHeader from '../../components/column_header';\nimport { LoadingIndicator } from '../../components/loading_indicator';\nimport ScrollableList from '../../components/scrollable_list';\nimport AccountContainer from '../../containers/account_container';\nimport Column from '../ui/components/column';\n\nconst messages = defineMessages({\n refresh: { id: 'refresh', defaultMessage: 'Refresh' },\n});\n\nconst mapStateToProps = (state, props) => ({\n accountIds: state.getIn(['user_lists', 'reblogged_by', props.params.statusId]),\n});\n\nclass Reblogs extends ImmutablePureComponent {\n\n static propTypes = {\n params: PropTypes.object.isRequired,\n dispatch: PropTypes.func.isRequired,\n accountIds: ImmutablePropTypes.list,\n multiColumn: PropTypes.bool,\n intl: PropTypes.object.isRequired,\n };\n\n UNSAFE_componentWillMount () {\n if (!this.props.accountIds) {\n this.props.dispatch(fetchReblogs(this.props.params.statusId));\n }\n }\n\n UNSAFE_componentWillReceiveProps(nextProps) {\n if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {\n this.props.dispatch(fetchReblogs(nextProps.params.statusId));\n }\n }\n\n handleRefresh = () => {\n this.props.dispatch(fetchReblogs(this.props.params.statusId));\n };\n\n render () {\n const { intl, accountIds, multiColumn } = this.props;\n\n if (!accountIds) {\n return (\n \n \n \n );\n }\n\n const emptyMessage = ;\n\n return (\n \n \n )}\n />\n\n \n {accountIds.map(id =>\n ,\n )}\n \n\n \n \n \n \n );\n }\n\n}\n\nexport default connect(mapStateToProps)(injectIntl(Reblogs));\n"],"sourceRoot":""}