{"remainingRequest":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js??ref--4-2!/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js??ref--4-3!/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/settings/settings.tsx","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/settings/settings.tsx","mtime":1533613271941},{"path":"/var/www/html/payroll_manager/front-end/node_modules/react-hot-loader/webpack.js","mtime":1505850161000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/cache-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js","mtime":1530127508000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js","mtime":1519899048000}],"contextDependencies":[],"result":["import * as tslib_1 from \"tslib\";\nimport React from 'react';\nimport { Button, Col, Row } from 'reactstrap';\nimport { connect } from 'react-redux';\nimport { AvForm, AvField } from 'availity-reactstrap-validation';\nimport { getSession } from 'app/shared/reducers/authentication';\nimport { saveAccountSettings, reset } from './settings.reducer';\nvar SettingsPage = /** @class */ (function (_super) {\n tslib_1.__extends(SettingsPage, _super);\n function SettingsPage() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.handleValidSubmit = function (event, values) {\n var account = tslib_1.__assign({}, _this.props.account, values);\n _this.props.saveAccountSettings(account);\n event.persist();\n };\n return _this;\n }\n SettingsPage.prototype.componentDidMount = function () {\n this.props.getSession();\n };\n SettingsPage.prototype.componentWillUnmount = function () {\n this.props.reset();\n };\n SettingsPage.prototype.render = function () {\n var account = this.props.account;\n return (React.createElement(\"div\", null,\n React.createElement(Row, { className: \"justify-content-center\" },\n React.createElement(Col, { md: \"8\" },\n React.createElement(\"h2\", { id: \"settings-title\" },\n \"User settings for \",\n account.login),\n React.createElement(AvForm, { id: \"settings-form\", onValidSubmit: this.handleValidSubmit },\n React.createElement(AvField, { className: \"form-control\", name: \"firstName\", label: \"First Name\", id: \"firstName\", placeholder: \"Your first name\", validate: {\n required: { value: true, errorMessage: 'Your first name is required.' },\n minLength: { value: 1, errorMessage: 'Your first name is required to be at least 1 character' },\n maxLength: { value: 50, errorMessage: 'Your first name cannot be longer than 50 characters' }\n }, value: account.firstName }),\n React.createElement(AvField, { className: \"form-control\", name: \"lastName\", label: \"Last Name\", id: \"lastName\", placeholder: \"Your last name\", validate: {\n required: { value: true, errorMessage: 'Your last name is required.' },\n minLength: { value: 1, errorMessage: 'Your last name is required to be at least 1 character' },\n maxLength: { value: 50, errorMessage: 'Your last name cannot be longer than 50 characters' }\n }, value: account.lastName }),\n React.createElement(AvField, { name: \"email\", label: \"Email\", placeholder: \"Your email\", type: \"email\", validate: {\n required: { value: true, errorMessage: 'Your email is required.' },\n minLength: { value: 5, errorMessage: 'Your email is required to be at least 5 characters.' },\n maxLength: { value: 254, errorMessage: 'Your email cannot be longer than 50 characters.' }\n }, value: account.email }),\n React.createElement(Button, { color: \"primary\", type: \"submit\" }, \"Save\"))))));\n };\n return SettingsPage;\n}(React.Component));\nexport { SettingsPage };\nvar mapStateToProps = function (_a) {\n var authentication = _a.authentication;\n return ({\n account: authentication.account,\n isAuthenticated: authentication.isAuthenticated\n });\n};\nvar mapDispatchToProps = { getSession: getSession, saveAccountSettings: saveAccountSettings, reset: reset };\nexport default connect(mapStateToProps, mapDispatchToProps)(SettingsPage);\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/settings/settings.tsx","sourceRoot":"","sources":["/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/settings/settings.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,GAAG,EAAS,GAAG,EAAE,M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AC,SAAS,GA8EhD;;AAED,IAAM,eAAe,GAAG,UAAC,EAA8B;QAA5B,kCAAc;IAAmB,OAAA,CAAC;QAC3D,OAAO,EAAE,cAAc,CAAC,OAAO;QAC/B,eAAe,EAAE,cAAc,CAAC,eAAe;KAChD,CAAC;AAH0D,CAG1D,CAAC;AAEH,IAAM,kBAAkB,GAAG,EAAE,UAAU,YAAA,EAAE,mBAAmB,qBAAA,EAAE,KAAK,OAAA,EAAE,CAAC;AAKtE,eAAe,OAAO,CACpB,eAAe,EACf,kBAAkB,CACnB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport { Button, Col, Alert, Row } from 'reactstrap';\nimport { connect } from 'react-redux';\n\nimport { AvForm, AvField } from 'availity-reactstrap-validation';\n\nimport { IRootState } from 'app/shared/reducers';\nimport { getSession } from 'app/shared/reducers/authentication';\nimport { saveAccountSettings, reset } from './settings.reducer';\n\nexport interface IUserSettingsProps extends StateProps, DispatchProps {}\n\nexport interface IUserSettingsState {\n account: any;\n}\n\nexport class SettingsPage extends React.Component {\n componentDidMount() {\n this.props.getSession();\n }\n\n componentWillUnmount() {\n this.props.reset();\n }\n\n handleValidSubmit = (event, values) => {\n const account = {\n ...this.props.account,\n ...values\n };\n\n this.props.saveAccountSettings(account);\n event.persist();\n };\n\n render() {\n const { account } = this.props;\n\n return (\n
\n \n \n

User settings for {account.login}

\n \n {/* First name */}\n \n {/* Last name */}\n \n {/* Email */}\n \n \n \n \n
\n
\n );\n }\n}\n\nconst mapStateToProps = ({ authentication }: IRootState) => ({\n account: authentication.account,\n isAuthenticated: authentication.isAuthenticated\n});\n\nconst mapDispatchToProps = { getSession, saveAccountSettings, reset };\n\ntype StateProps = ReturnType;\ntype DispatchProps = typeof mapDispatchToProps;\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(SettingsPage);\n"]}]}