{"version":3,"sources":["webpack:///./app/javascript/mastodon/features/list_editor/components/account.js","webpack:///./app/javascript/mastodon/features/list_editor/components/search.js","webpack:///./app/javascript/mastodon/features/list_editor/index.js"],"names":["messages","Object","index_es","remove","id","defaultMessage","add","account_Account","es","getAccount","selectors","state","_ref","accountId","added","account","getIn","includes","dispatch","_ref2","onRemove","lists","onAdd","render","_props","this","props","intl","button","jsx_default","icon_button","icon","title","formatMessage","onClick","className","avatar","size","display_name","react_immutable_pure_component_es","propTypes","ImmutablePropTypes_default","a","map","isRequired","prop_types_default","object","func","bool","defaultProps","search_messages","search","search_Search","value","onSubmit","onClear","onChange","handleChange","e","_this","target","handleKeyUp","keyCode","handleClear","hasValue","length","style","display","type","onKeyUp","placeholder","role","tabIndex","classnames_default","active","aria-label","react_default","PureComponent","list_editor_ListEditor","accountIds","searchAccountIds","onInitialize","listId","onReset","componentDidMount","componentWillUnmount","_props2","showSearch","optional_motion","defaultStyle","x","spring_default","stiffness","damping","transform","visibility","string","onClose","list"],"mappings":"mSAYMA,EAAWC,OAAAC,EAAA,EAAAD,EACfE,QAAAC,GAAA,uBAAAC,eAAA,oBACAC,KAAAF,GAAA,oBAAAC,eAAA,iBAqBmBE,EAFpBN,OAAAO,EAAA,QAAAP,CAhB2B,WAC1B,IAAMQ,EAAaR,OAAAS,EAAA,EAAAT,GAOnB,OALwB,SAACU,EAADC,GAAA,IAAUC,EAAVD,EAAUC,UAAWC,EAArBF,EAAqBE,MAArB,OACtBC,QAASN,EAAWE,EAAOE,GAC3BC,WAAwB,IAAVA,EAAwBH,EAAMK,OAAO,aAAc,WAAY,UAAUC,SAASJ,GAAaC,KAMtF,SAACI,EAADC,GAAA,IAAaN,EAAbM,EAAaN,UAAb,OACzBO,SAAU,kBAAMF,EAASjB,OAAAoB,EAAA,EAAApB,CAAqBY,KAC9CS,MAAO,kBAAMJ,EAASjB,OAAAoB,EAAA,EAAApB,CAAgBY,UAIvCZ,OAAAC,EAAA,EAAAD,gHAeCsB,kB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EAAUK,KAAKH,WAC7BW,QAASV,EAAAH,EAAUK,KAAKH,WACxBuC,QAAStC,EAAAH,EAAUK,KAAKH,WACxBZ,MAAOa,EAAAH,EAAUsD,OAAOpD,WACxBmC,WAAYtC,EAAAC,EAAmBwD,KAAKtD,WACpCoC,iBAAkBvC,EAAAC,EAAmBwD,KAAKtD","file":"features/list_editor.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport { makeGetAccount } from '../../../selectors';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\nimport ImmutablePropTypes from 'react-immutable-proptypes';\nimport Avatar from '../../../components/avatar';\nimport DisplayName from '../../../components/display_name';\nimport IconButton from '../../../components/icon_button';\nimport { defineMessages, injectIntl } from 'react-intl';\nimport { removeFromListEditor, addToListEditor } from '../../../actions/lists';\n\nconst messages = defineMessages({\n remove: { id: 'lists.account.remove', defaultMessage: 'Remove from list' },\n add: { id: 'lists.account.add', defaultMessage: 'Add to list' },\n});\n\nconst makeMapStateToProps = () => {\n const getAccount = makeGetAccount();\n\n const mapStateToProps = (state, { accountId, added }) => ({\n account: getAccount(state, accountId),\n added: typeof added === 'undefined' ? state.getIn(['listEditor', 'accounts', 'items']).includes(accountId) : added,\n });\n\n return mapStateToProps;\n};\n\nconst mapDispatchToProps = (dispatch, { accountId }) => ({\n onRemove: () => dispatch(removeFromListEditor(accountId)),\n onAdd: () => dispatch(addToListEditor(accountId)),\n});\n\n@connect(makeMapStateToProps, mapDispatchToProps)\n@injectIntl\nexport default class Account extends ImmutablePureComponent {\n\n static propTypes = {\n account: ImmutablePropTypes.map.isRequired,\n intl: PropTypes.object.isRequired,\n onRemove: PropTypes.func.isRequired,\n onAdd: PropTypes.func.isRequired,\n added: PropTypes.bool,\n };\n\n static defaultProps = {\n added: false,\n };\n\n render () {\n const { account, intl, onRemove, onAdd, added } = this.props;\n\n let button;\n\n if (added) {\n button =