![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /opt/mattermost/client/ |
Upload File : |
{"version":3,"file":"5968.69e86982ba17df6f87ba.js","mappings":"8NAuBA,MAAMA,EAAaC,IAAmD,IAAlD,IAACC,EAAG,UAAEC,EAAS,QAAEC,GAAeH,EAChD,MAAM,cAACI,IAAiBC,EAAAA,EAAAA,WAExB,OACIC,IAAAA,cAAA,OAAKJ,UAAWK,IAAW,gBAAiBL,IACxCI,IAAAA,cAACE,EAAAA,KAAI,CACD,cAAY,cACZL,QAASA,EACTM,GAAIR,GAEJK,IAAAA,cAAA,QACII,GAAG,mBACHR,UAAU,yBACVS,MAAOP,EAAc,CAACM,GAAI,qBAAsBE,eAAgB,gBAEpEN,IAAAA,cAACO,EAAAA,iBAAgB,CACbH,GAAG,kBACHE,eAAe,UAGrB,EAEZb,EAAAe,UAAA,CAhCEb,IAAGc,IAAAA,OAEHb,UAASa,IAAAA,OAKTZ,QAAOY,IAAAA,MA0BXhB,EAAWiB,aAAe,CACtBf,IAAK,KAGT,S,yHCxCMgB,EAA4BX,IAAAA,YAA0C,CAAAN,EAA+BkB,KAAQ,IAAtC,YAACC,GAA2BnB,EAAXoB,E,qWAAUC,CAAArB,EAAAsB,GACpG,MAAMC,GAAOlB,EAAAA,EAAAA,WAEb,OACIC,IAAAA,cAAA,QAAAkB,OAAAC,OAAA,CACIP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AA,WACIA,IAAAA,cAACP,EAAAA,EAAU,MACXO,IAAAA,cAAA,OAAKJ,UAAU,aACXI,IAAAA,cAAA,OAAKJ,UAAU,0BACXI,IAAAA,cAACO,EAAAA,iBAAgB,CACbH,GAAG,sBACH6C,QAAQ,KACR3C,eAAe,mBAElByB,KAAKgB,MAAMrB,WACZ1B,IAAAA,cAAA,QACIkD,SAAUnB,KAAKoB,eACfvC,IAAKmB,KAAKY,WAEV3C,IAAAA,cAAA,SACIA,IAAAA,cAACO,EAAAA,iBAAgB,CACbH,GAAG,4BACHE,eAAe,yEAGvBN,IAAAA,cAAA,OAAKJ,UAAWoD,GACZhD,IAAAA,cAACW,EAAAA,EAAyB,CACtBP,GAAG,0BACHgD,KAAK,QACLxD,UAAU,eACVyD,KAAK,QACLxC,aAAayC,EAAAA,EAAAA,eAAc,CACvBlD,GAAI,sBACJE,eAAgB,UAEpBM,IAAKmB,KAAKC,WACVuB,WAAW,QACXC,WAAW,KAGlB/B,EACDzB,IAAAA,cAAA,UACII,GAAG,sBACHgD,KAAK,SACLxD,UAAU,mBAEVI,IAAAA,cAACO,EAAAA,iBAAgB,CACbH,GAAG,sBACHE,eAAe,0BAQ/C,EACHkB,EAlIoBH,EAAqB,aAVtCoB,QAAOhC,IAAAA,MAAA,CACHiC,uBAAsBjC,IAAAA,KAAAgD,aAAAA,aCH9B,MAMA,GAAeC,EAAAA,EAAAA,SAAQ,MANKC,IAAkB,CAC1ClB,SAASmB,EAAAA,EAAAA,oBAAmB,CACxBlB,uBAAsBA,EAAAA,IACvBiB,MAGP,CAAiDtC,E","sources":["webpack://mattermost-webapp/./src/components/common/back_button.tsx","webpack://mattermost-webapp/./src/components/localized_placeholder_input.tsx","webpack://mattermost-webapp/./src/components/password_reset_send_link/password_reset_send_link.tsx","webpack://mattermost-webapp/./src/components/password_reset_send_link/index.ts"],"sourcesContent":["// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport classNames from 'classnames';\nimport React from 'react';\nimport {FormattedMessage, useIntl} from 'react-intl';\nimport {Link} from 'react-router-dom';\n\ntype Props = {\n\n /**\n * URL to return to\n */\n url: string;\n\n className?: string;\n\n /**\n * onClick handler when user clicks back button\n */\n onClick?: React.EventHandler<React.MouseEvent>;\n}\n\nconst BackButton = ({url, className, onClick}: Props): JSX.Element => {\n const {formatMessage} = useIntl();\n\n return (\n <div className={classNames('signup-header', className)}>\n <Link\n data-testid='back_button'\n onClick={onClick}\n to={url}\n >\n <span\n id='back_button_icon'\n className='fa fa-1x fa-angle-left'\n title={formatMessage({id: 'generic_icons.back', defaultMessage: 'Back Icon'})}\n />\n <FormattedMessage\n id='web.header.back'\n defaultMessage='Back'\n />\n </Link>\n </div>\n );\n};\nBackButton.defaultProps = {\n url: '/',\n};\n\nexport default BackButton;\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React from 'react';\nimport {useIntl, type MessageDescriptor} from 'react-intl';\n\ntype Props = {\n placeholder: MessageDescriptor;\n} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'placeholder'>;\n\nconst LocalizedPlaceholderInput = React.forwardRef<HTMLInputElement, Props>(({placeholder, ...otherProps}, ref) => {\n const intl = useIntl();\n\n return (\n <input\n ref={ref}\n placeholder={intl.formatMessage(placeholder)}\n {...otherProps}\n />\n );\n});\n\nLocalizedPlaceholderInput.displayName = 'LocalizedPlaceholderInput';\n\nexport default LocalizedPlaceholderInput;\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport React from 'react';\nimport {defineMessage, FormattedMessage} from 'react-intl';\n\nimport type {ActionResult} from 'mattermost-redux/types/actions';\nimport {isEmail} from 'mattermost-redux/utils/helpers';\n\nimport BackButton from 'components/common/back_button';\nimport LocalizedPlaceholderInput from 'components/localized_placeholder_input';\n\nexport interface Props {\n actions: {\n sendPasswordResetEmail: (email: string) => Promise<ActionResult>;\n };\n}\n\ninterface State {\n error: React.ReactNode;\n updateText: React.ReactNode;\n}\n\nexport default class PasswordResetSendLink extends React.PureComponent<Props, State> {\n state = {\n error: null,\n updateText: null,\n };\n resetForm = React.createRef<HTMLFormElement>();\n emailInput = React.createRef<HTMLInputElement>();\n\n handleSendLink = async (e: React.FormEvent) => {\n e.preventDefault();\n\n const email = this.emailInput.current!.value.trim().toLowerCase();\n if (!email || !isEmail(email)) {\n this.setState({\n error: (\n <FormattedMessage\n id='password_send.error'\n defaultMessage='Please enter a valid email address.'\n />\n ),\n });\n return;\n }\n\n // End of error checking clear error\n this.setState({error: null});\n\n const {data, error} = await this.props.actions.sendPasswordResetEmail(email);\n if (data) {\n this.setState({\n error: null,\n updateText: (\n <div\n id='passwordResetEmailSent'\n className='reset-form alert alert-success'\n >\n <FormattedMessage\n id='password_send.link'\n defaultMessage='If the account exists, a password reset email will be sent to:'\n />\n <div>\n <b>{email}</b>\n </div>\n <br/>\n <FormattedMessage\n id='password_send.checkInbox'\n defaultMessage='Please check your inbox.'\n />\n </div>\n ),\n });\n if (this.resetForm.current) {\n this.resetForm.current.hidden = true;\n }\n } else if (error) {\n this.setState({\n error: error.message,\n updateText: null,\n });\n }\n };\n\n render() {\n let error = null;\n if (this.state.error) {\n error = (\n <div className='form-group has-error'>\n <label className='control-label'>{this.state.error}</label>\n </div>\n );\n }\n\n let formClass = 'form-group';\n if (error) {\n formClass += ' has-error';\n }\n\n return (\n <div>\n <BackButton/>\n <div className='col-sm-12'>\n <div className='signup-team__container'>\n <FormattedMessage\n id='password_send.title'\n tagName='h1'\n defaultMessage='Password Reset'\n />\n {this.state.updateText}\n <form\n onSubmit={this.handleSendLink}\n ref={this.resetForm}\n >\n <p>\n <FormattedMessage\n id='password_send.description'\n defaultMessage='To reset your password, enter the email address you used to sign up'\n />\n </p>\n <div className={formClass}>\n <LocalizedPlaceholderInput\n id='passwordResetEmailInput'\n type='email'\n className='form-control'\n name='email'\n placeholder={defineMessage({\n id: 'password_send.email',\n defaultMessage: 'Email',\n })}\n ref={this.emailInput}\n spellCheck='false'\n autoFocus={true}\n />\n </div>\n {error}\n <button\n id='passwordResetButton'\n type='submit'\n className='btn btn-primary'\n >\n <FormattedMessage\n id='password_send.reset'\n defaultMessage='Reset my password'\n />\n </button>\n </form>\n </div>\n </div>\n </div>\n );\n }\n}\n","// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport {connect} from 'react-redux';\nimport {bindActionCreators} from 'redux';\nimport type {Dispatch} from 'redux';\n\nimport {sendPasswordResetEmail} from 'mattermost-redux/actions/users';\n\nimport PasswordResetSendLink from './password_reset_send_link';\n\nconst mapDispatchToProps = (dispatch: Dispatch) => ({\n actions: bindActionCreators({\n sendPasswordResetEmail,\n }, dispatch),\n});\n\nexport default connect(null, mapDispatchToProps)(PasswordResetSendLink);\n"],"names":["BackButton","_ref","url","className","onClick","formatMessage","useIntl","React","classNames","Link","to","id","title","defaultMessage","FormattedMessage","propTypes","_pt","defaultProps","LocalizedPlaceholderInput","ref","placeholder","otherProps","_objectWithoutProperties","_excluded","intl","Object","assign","displayName","PasswordResetSendLink","constructor","arguments","_defineProperty","error","updateText","async","e","preventDefault","email","this","emailInput","current","value","trim","toLowerCase","isEmail","setState","data","props","actions","sendPasswordResetEmail","resetForm","hidden","message","render","state","formClass","tagName","onSubmit","handleSendLink","type","name","defineMessage","spellCheck","autoFocus","isRequired","connect","dispatch","bindActionCreators"],"sourceRoot":""}