@agilemotion/oui-react-js 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicationManager.js +698 -421
- package/dist/BasicApp.js +5 -5
- package/dist/BasicAppHome.js +55 -26
- package/dist/DynamicJS.js +147 -65
- package/dist/InteractionPortalApp.css +1 -1
- package/dist/InteractionPortalApp.js +5 -5
- package/dist/InteractionPortalAppHome.js +57 -22
- package/dist/InteractionPortalApp_old.js +107 -61
- package/dist/RestUtils.js +339 -287
- package/dist/TypedValue.js +18 -15
- package/dist/Utils.js +375 -276
- package/dist/WithRouter.js +6 -6
- package/dist/assets/jss/components/authNavbarStyle.js +166 -164
- package/dist/assets/jss/components/buttonStyle.js +1 -1
- package/dist/assets/jss/components/cardAvatarStyle.js +1 -1
- package/dist/assets/jss/components/cardBodyStyle.js +1 -1
- package/dist/assets/jss/components/cardFooterStyle.js +1 -1
- package/dist/assets/jss/components/cardHeaderStyle.js +13 -13
- package/dist/assets/jss/components/cardIconStyle.js +1 -1
- package/dist/assets/jss/components/cardStyle.js +1 -1
- package/dist/assets/jss/components/cardTextStyle.js +1 -1
- package/dist/assets/jss/components/customDropdownStyle.js +168 -169
- package/dist/assets/jss/components/customInputStyle.js +9 -3
- package/dist/assets/jss/components/dropdownStyle.js +69 -69
- package/dist/assets/jss/components/footerStyle.js +19 -13
- package/dist/assets/jss/components/headerLinksStyle.js +45 -48
- package/dist/assets/jss/components/headerStyle.js +68 -65
- package/dist/assets/jss/components/navbarLinksStyle.js +66 -77
- package/dist/assets/jss/components/navbarStyle.js +79 -76
- package/dist/assets/jss/components/sidebarStyle.js +436 -436
- package/dist/assets/jss/components/typographyStyle.js +9 -3
- package/dist/assets/jss/rootStyle.js +96 -81
- package/dist/assets/jss/views/layoutStyle.js +44 -41
- package/dist/assets/jss/views/loginBasicStyle.js +1 -1
- package/dist/assets/jss/views/loginBusinessPortalStyle.js +1 -1
- package/dist/assets/jss/views/loginStyle.js +82 -77
- package/dist/components/AlertBar.js +50 -17
- package/dist/components/AlertItem.js +35 -12
- package/dist/components/AlertTemplate.js +30 -29
- package/dist/components/Button.js +62 -34
- package/dist/components/Calendar.js +140 -91
- package/dist/components/ConfirmationDialog.js +36 -11
- package/dist/components/DataGrid.js +512 -270
- package/dist/components/DataGridColumn.js +47 -22
- package/dist/components/DataGridFilter.js +186 -105
- package/dist/components/DataGridHeading.js +50 -32
- package/dist/components/Dialog.js +90 -35
- package/dist/components/DocumentTemplateDesigner.js +34 -16
- package/dist/components/DocumentTemplateDesignerComponent.js +124 -48
- package/dist/components/DocumentTemplatePlaceholderDialog.js +52 -30
- package/dist/components/DocumentViewer.js +34 -18
- package/dist/components/DocumentViewerComponent.js +26 -9
- package/dist/components/ElementResizeHandler.js +229 -207
- package/dist/components/FileThumb.js +32 -10
- package/dist/components/Graph.js +153 -85
- package/dist/components/GraphNode.js +58 -38
- package/dist/components/HtmlPanel.js +67 -39
- package/dist/components/Icon.js +206 -166
- package/dist/components/LoadingIndicator.js +3 -3
- package/dist/components/LottieIcon.js +1 -1
- package/dist/components/PopupView.js +39 -19
- package/dist/components/Portlet.js +32 -17
- package/dist/components/RegularButton.js +28 -32
- package/dist/components/SignaturePanel.js +37 -17
- package/dist/components/SocketManager.js +178 -119
- package/dist/components/StepperTitleBar.js +62 -42
- package/dist/components/TabPage.js +30 -25
- package/dist/components/TabPanel.js +86 -33
- package/dist/components/TableCellContent.js +51 -32
- package/dist/components/TemplateDesigner.js +173 -121
- package/dist/components/TemplateItemEventHandler.js +335 -221
- package/dist/components/TemplateTable.js +183 -118
- package/dist/components/TitleBar.js +26 -11
- package/dist/components/Toolbar.js +67 -38
- package/dist/components/Tooltip.js +43 -35
- package/dist/components/Tree.js +85 -44
- package/dist/components/UseIsVisible.js +25 -4
- package/dist/components/card/Card.js +27 -33
- package/dist/components/card/CardAvatar.js +20 -19
- package/dist/components/card/CardBody.js +24 -27
- package/dist/components/card/CardFooter.js +23 -24
- package/dist/components/card/CardHeader.js +24 -27
- package/dist/components/card/CardIcon.js +17 -13
- package/dist/components/card/CardText.js +17 -13
- package/dist/components/customInput/CustomInput.js +22 -36
- package/dist/components/dashboard/{BasicBusinessAppDashboard.js → FoldingSideTabDashboard.js} +111 -63
- package/dist/components/dashboard/SideMenuModuleDashboard.css +60 -0
- package/dist/components/dashboard/SideMenuModuleDashboard.js +423 -0
- package/dist/components/dashboard/TopMenuModuleDashboard.js +138 -0
- package/dist/components/dashboard/components/Header.js +29 -12
- package/dist/components/dashboard/components/LeftDrawer.js +3 -5
- package/dist/components/dashboard/components/UserIdentity.js +2 -2
- package/dist/components/dashboard/components/blackDashboard/fixedPlugin/FixedPlugin.js +131 -87
- package/dist/components/dashboard/components/blackDashboard/sidebar/FoldingTabSidebar.js +488 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenu.js +64 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.css +65 -0
- package/dist/components/dashboard/components/blackDashboard/sidebar/ModuleMenuSidebar.js +556 -0
- package/dist/components/dashboard/components/portal/Timeline.js +1 -1
- package/dist/components/dashboard/components/portal/Workspace.js +5 -11
- package/dist/components/footer/Footer.js +31 -24
- package/dist/components/footer/HomeFooter.js +68 -34
- package/dist/components/form/AddressSearch.js +78 -42
- package/dist/components/form/AutoComplete.js +136 -55
- package/dist/components/form/BaseField.js +108 -56
- package/dist/components/form/Checkbox.js +10 -8
- package/dist/components/form/DatePicker.js +47 -25
- package/dist/components/form/FieldSet.js +217 -84
- package/dist/components/form/Form.js +334 -200
- package/dist/components/form/GridField.js +185 -82
- package/dist/components/form/IconField.js +9 -7
- package/dist/components/form/ImageEditor.js +141 -92
- package/dist/components/form/LabelField.js +12 -10
- package/dist/components/form/LookupField.js +54 -32
- package/dist/components/form/MultiFileUploadField.js +101 -67
- package/dist/components/form/RadioGroup.js +33 -16
- package/dist/components/form/Section.js +84 -34
- package/dist/components/form/SelectItem.js +55 -33
- package/dist/components/form/SignatureTemplateDesignerField.js +11 -9
- package/dist/components/form/Switch.js +10 -8
- package/dist/components/form/TextField.js +34 -16
- package/dist/components/form/TimePicker.js +19 -15
- package/dist/components/form/TransferList.js +153 -75
- package/dist/components/form/UploadField.js +183 -128
- package/dist/components/grid/GridContainer.js +12 -8
- package/dist/components/grid/GridItem.js +12 -8
- package/dist/components/layout/CollapsiblePanel.js +44 -18
- package/dist/components/layout/Layout.js +81 -40
- package/dist/components/layout/VC.css +1 -1
- package/dist/components/layout/View.js +136 -62
- package/dist/components/layout/ViewContainer.js +13 -11
- package/dist/components/layout/ViewPort.js +25 -10
- package/dist/components/layout/Window.js +87 -53
- package/dist/components/layout/WindowViewPort.js +38 -16
- package/dist/components/media/ClosablePanel.js +7 -7
- package/dist/components/media/LobbyWaitingList.js +7 -9
- package/dist/components/media/MediaSoupHelper.js +379 -187
- package/dist/components/media/SideBarContent.js +22 -14
- package/dist/components/media/SocketRequest.js +5 -1
- package/dist/components/media/SocketResponse.js +5 -1
- package/dist/components/media/Timer.js +35 -15
- package/dist/components/media/Toolbar.css +5 -0
- package/dist/components/media/Toolbar.js +220 -102
- package/dist/components/media/ToolbarButton.js +82 -33
- package/dist/components/media/Toolbar_bck.js +142 -70
- package/dist/components/media/Tracks.js +31 -28
- package/dist/components/media/TrainingRoom.js +284 -121
- package/dist/components/media/Transports.js +27 -24
- package/dist/components/media/VCEventManager.js +95 -31
- package/dist/components/media/VCEventType.js +5 -1
- package/dist/components/media/VCParticipantList.js +40 -14
- package/dist/components/media/VCParticipantListItem.js +92 -41
- package/dist/components/media/VCRoom.js +29 -11
- package/dist/components/media/VCRoomParticipant.js +488 -242
- package/dist/components/media/VCRoomRecorder.js +236 -175
- package/dist/components/media/VCRoomWorkspace.js +505 -245
- package/dist/components/media/Video.js +89 -25
- package/dist/components/media/VideoPlayer.js +56 -22
- package/dist/components/media/chat/ChatRoom.js +255 -132
- package/dist/components/media/chat/ChatRoomItem.js +35 -14
- package/dist/components/media/chat/ChatRoomList.js +43 -13
- package/dist/components/menu/CollapsibleMenu.js +39 -20
- package/dist/components/menu/MenuBars.js +81 -48
- package/dist/components/menu/MenuButton.js +95 -60
- package/dist/components/menu/MenuItem.js +28 -9
- package/dist/components/menu/MenuLink.js +12 -10
- package/dist/components/menu/PopupMenu.js +16 -12
- package/dist/components/navbars/AuthNavbar.js +27 -18
- package/dist/components/navbars/HomeNavbar.js +243 -194
- package/dist/components/navbars/PortalNavbar.js +50 -26
- package/dist/components/signatures/AgilitySignaturePanel.js +96 -39
- package/dist/components/signatures/AlertItem.js +36 -13
- package/dist/components/signatures/Card.js +4 -4
- package/dist/components/signatures/DocumentContainer.js +141 -57
- package/dist/components/signatures/ImageSignatureInput.js +90 -59
- package/dist/components/signatures/MenuButton.js +53 -33
- package/dist/components/signatures/Prompt.js +26 -5
- package/dist/components/signatures/ResponsiveTable.js +302 -197
- package/dist/components/signatures/SearchView.js +77 -36
- package/dist/components/signatures/SignatorySearch.js +30 -10
- package/dist/components/signatures/SignatorySearchForm.js +35 -18
- package/dist/components/signatures/SignatureInput.js +56 -26
- package/dist/components/signatures/SignatureInputProps.js +107 -55
- package/dist/components/signatures/SignatureTemplateDesigner.js +340 -235
- package/dist/components/signatures/Toolbar.js +135 -94
- package/dist/components/signatures/ViewUtils.js +273 -224
- package/dist/components/typography/Danger.js +3 -5
- package/dist/components/typography/Info.js +3 -5
- package/dist/components/typography/Link.js +3 -5
- package/dist/event/ActionHandlers.js +57 -43
- package/dist/event/Event.js +16 -13
- package/dist/event/EventListener.js +39 -36
- package/dist/event/EventType.js +5 -1
- package/dist/event/LoadDataActionHandler.js +20 -8
- package/dist/event/Observable.js +323 -142
- package/dist/event/RouteActionHandler.js +139 -125
- package/dist/event/ScriptActionHandler.js +20 -8
- package/dist/event/ServiceCallActionHandler.js +51 -39
- package/dist/event/SignalGraphActionHandler.js +19 -7
- package/dist/js/Addresses.js +38 -24
- package/dist/js/Calendar.js +168 -161
- package/dist/js/DynamicLib.js +14 -11
- package/dist/js/Media.js +213 -120
- package/dist/js/Validators.js +6 -5
- package/dist/js/Windows.js +48 -47
- package/dist/redux/store/ConfigureStore.js +17 -9
- package/dist/redux/store/DashboardStore.js +110 -43
- package/dist/redux/store/History.js +1 -1
- package/dist/redux/store/SecurityStore.js +59 -20
- package/dist/security/TokenManager.js +44 -30
- package/dist/theme-default.js +1 -1
- package/dist/view/Dashboard.js +230 -137
- package/dist/view/PortalDashboard.js +4 -4
- package/dist/view/Settings.js +4 -2
- package/dist/view/Views.js +27 -14
- package/dist/view/security/ChangePasswordBasic.js +97 -40
- package/dist/view/security/ForgotPassword.js +59 -22
- package/dist/view/security/ForgotPasswordBasic.js +62 -21
- package/dist/view/security/Login.js +64 -24
- package/dist/view/security/LoginBasic.js +65 -26
- package/dist/view/security/LoginInteractionPortal.js +62 -25
- package/dist/view/security/ResetPassword.js +65 -23
- package/dist/view/security/ResetPasswordBasic.js +91 -37
- package/dist/view/security/Security.js +12 -12
- package/package.json +1 -2
- package/dist/components/dashboard/BusinessPortalAppDashboard.js +0 -115
- package/dist/components/dashboard/components/blackDashboard/sidebar/Sidebar.js +0 -447
- /package/dist/components/dashboard/{BusinessPortalAppDashboard.css → TopMenuModuleDashboard.css} +0 -0
- /package/dist/components/dashboard/components/blackDashboard/sidebar/{Sidebar.css → FoldingTabSidebar.css} +0 -0
package/dist/view/Views.js
CHANGED
|
@@ -5,26 +5,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Views = void 0;
|
|
7
7
|
|
|
8
|
-
class
|
|
9
|
-
get anchor() {
|
|
10
|
-
return this._anchor;
|
|
11
|
-
}
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
9
|
|
|
13
|
-
|
|
14
|
-
this._anchor = anchor;
|
|
15
|
-
}
|
|
10
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
16
11
|
|
|
17
|
-
|
|
18
|
-
return this._window;
|
|
19
|
-
}
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
20
13
|
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
var Views = /*#__PURE__*/function () {
|
|
15
|
+
function Views() {
|
|
16
|
+
_classCallCheck(this, Views);
|
|
23
17
|
}
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
_createClass(Views, [{
|
|
20
|
+
key: "anchor",
|
|
21
|
+
get: function get() {
|
|
22
|
+
return this._anchor;
|
|
23
|
+
},
|
|
24
|
+
set: function set(anchor) {
|
|
25
|
+
this._anchor = anchor;
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
key: "window",
|
|
29
|
+
get: function get() {
|
|
30
|
+
return this._window;
|
|
31
|
+
},
|
|
32
|
+
set: function set(window) {
|
|
33
|
+
return this._window = window;
|
|
34
|
+
}
|
|
35
|
+
}]);
|
|
36
|
+
|
|
37
|
+
return Views;
|
|
38
|
+
}();
|
|
26
39
|
|
|
27
40
|
exports.Views = Views;
|
|
28
|
-
|
|
41
|
+
var instance = new Views();
|
|
29
42
|
var _default = instance;
|
|
30
43
|
exports.default = _default;
|
|
@@ -45,58 +45,111 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
45
45
|
|
|
46
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
const navigate = (0, _reactRouterDom.useNavigate)();
|
|
50
|
-
const location = (0, _reactRouterDom.useLocation)();
|
|
48
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
61
59
|
|
|
62
|
-
|
|
60
|
+
var ChangePassword = function ChangePassword(props) {
|
|
61
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
62
|
+
var location = (0, _reactRouterDom.useLocation)();
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
var _React$useState = _react.default.useState(null),
|
|
65
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
66
|
+
username = _React$useState2[0],
|
|
67
|
+
setUsername = _React$useState2[1];
|
|
65
68
|
|
|
66
|
-
|
|
69
|
+
var _React$useState3 = _react.default.useState(null),
|
|
70
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
71
|
+
sessionId = _React$useState4[0],
|
|
72
|
+
setSessionId = _React$useState4[1];
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
var _React$useState5 = _react.default.useState(null),
|
|
75
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
76
|
+
challengeParamenters = _React$useState6[0],
|
|
77
|
+
setChallengeParamenters = _React$useState6[1];
|
|
69
78
|
|
|
70
|
-
|
|
79
|
+
var _React$useState7 = _react.default.useState(false),
|
|
80
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
81
|
+
usernameError = _React$useState8[0],
|
|
82
|
+
setUsernameError = _React$useState8[1];
|
|
71
83
|
|
|
72
|
-
|
|
84
|
+
var _React$useState9 = _react.default.useState(null),
|
|
85
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
86
|
+
password = _React$useState10[0],
|
|
87
|
+
setPassword = _React$useState10[1];
|
|
73
88
|
|
|
74
|
-
|
|
89
|
+
var _React$useState11 = _react.default.useState(null),
|
|
90
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
91
|
+
confirmPassword = _React$useState12[0],
|
|
92
|
+
setConfirmPassword = _React$useState12[1];
|
|
75
93
|
|
|
76
|
-
|
|
94
|
+
var _React$useState13 = _react.default.useState(null),
|
|
95
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
96
|
+
message = _React$useState14[0],
|
|
97
|
+
setMessage = _React$useState14[1];
|
|
77
98
|
|
|
78
|
-
|
|
99
|
+
var _React$useState15 = _react.default.useState(null),
|
|
100
|
+
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
101
|
+
messageTitle = _React$useState16[0],
|
|
102
|
+
setMessageTitle = _React$useState16[1];
|
|
79
103
|
|
|
80
|
-
_react.default.
|
|
81
|
-
|
|
104
|
+
var _React$useState17 = _react.default.useState(""),
|
|
105
|
+
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
106
|
+
alertVariant = _React$useState18[0],
|
|
107
|
+
setAlertVariant = _React$useState18[1];
|
|
108
|
+
|
|
109
|
+
var _React$useState19 = _react.default.useState(false),
|
|
110
|
+
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
111
|
+
passwordError = _React$useState20[0],
|
|
112
|
+
setPasswordError = _React$useState20[1];
|
|
113
|
+
|
|
114
|
+
var _React$useState21 = _react.default.useState(false),
|
|
115
|
+
_React$useState22 = _slicedToArray(_React$useState21, 2),
|
|
116
|
+
isLoading = _React$useState22[0],
|
|
117
|
+
setIsLoading = _React$useState22[1];
|
|
118
|
+
|
|
119
|
+
var _React$useState23 = _react.default.useState(null),
|
|
120
|
+
_React$useState24 = _slicedToArray(_React$useState23, 2),
|
|
121
|
+
showPassword = _React$useState24[0],
|
|
122
|
+
setShowPassword = _React$useState24[1];
|
|
123
|
+
|
|
124
|
+
var _React$useState25 = _react.default.useState(null),
|
|
125
|
+
_React$useState26 = _slicedToArray(_React$useState25, 2),
|
|
126
|
+
showConfirmPassword = _React$useState26[0],
|
|
127
|
+
setShowConfirmPassword = _React$useState26[1];
|
|
128
|
+
|
|
129
|
+
var _React$useState27 = _react.default.useState("((?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%]).{8,128})"),
|
|
130
|
+
_React$useState28 = _slicedToArray(_React$useState27, 1),
|
|
131
|
+
passwordPattern = _React$useState28[0];
|
|
132
|
+
|
|
133
|
+
_react.default.useEffect(function () {
|
|
134
|
+
var username = new URLSearchParams(location.search).get("username");
|
|
82
135
|
setUsername(username);
|
|
83
|
-
|
|
136
|
+
var sessionId = new URLSearchParams(location.search).get("sessionId");
|
|
84
137
|
setSessionId(sessionId);
|
|
85
|
-
|
|
138
|
+
var challengeParamenters = new URLSearchParams(location.search).get("challengeParamenters");
|
|
86
139
|
setChallengeParamenters(challengeParamenters);
|
|
87
140
|
});
|
|
88
141
|
|
|
89
|
-
|
|
142
|
+
var handleClickShowPassword = function handleClickShowPassword() {
|
|
90
143
|
setShowPassword(!showPassword);
|
|
91
144
|
};
|
|
92
145
|
|
|
93
|
-
|
|
146
|
+
var handleClickShowConfirmPassword = function handleClickShowConfirmPassword() {
|
|
94
147
|
setShowConfirmPassword(!showConfirmPassword);
|
|
95
148
|
};
|
|
96
149
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
150
|
+
var sendChangePassword = function sendChangePassword() {
|
|
151
|
+
var passwordPresent = !_Utils.default.isNull(password) && password.trim().length > 0;
|
|
152
|
+
var usernamePresent = !_Utils.default.isNull(username) && username.trim().length > 0;
|
|
100
153
|
|
|
101
154
|
if (passwordPresent) {
|
|
102
155
|
if (password !== confirmPassword) {
|
|
@@ -114,9 +167,9 @@ const ChangePassword = props => {
|
|
|
114
167
|
}
|
|
115
168
|
|
|
116
169
|
setIsLoading(true);
|
|
117
|
-
(0, _Security.changePassword)(props.url, username, password, sessionId, challengeParamenters, ()
|
|
170
|
+
(0, _Security.changePassword)(props.url, username, password, sessionId, challengeParamenters, function () {
|
|
118
171
|
navigate('/');
|
|
119
|
-
}, errorMessage
|
|
172
|
+
}, function (errorMessage) {
|
|
120
173
|
setIsLoading(false);
|
|
121
174
|
setMessageTitle("Password Change Error!");
|
|
122
175
|
setMessage(!errorMessage ? _Utils.default.SYSTEM_ERROR_MESSAGE : errorMessage);
|
|
@@ -128,15 +181,15 @@ const ChangePassword = props => {
|
|
|
128
181
|
}
|
|
129
182
|
};
|
|
130
183
|
|
|
131
|
-
|
|
184
|
+
var handleMouseDownPassword = function handleMouseDownPassword(event) {
|
|
132
185
|
event.preventDefault();
|
|
133
186
|
};
|
|
134
187
|
|
|
135
|
-
|
|
188
|
+
var handleMouseDownConfirmPassword = function handleMouseDownConfirmPassword(event) {
|
|
136
189
|
event.preventDefault();
|
|
137
190
|
};
|
|
138
191
|
|
|
139
|
-
_react.default.useEffect(()
|
|
192
|
+
_react.default.useEffect(function () {
|
|
140
193
|
_ApplicationManager.default.clear();
|
|
141
194
|
});
|
|
142
195
|
|
|
@@ -186,7 +239,9 @@ const ChangePassword = props => {
|
|
|
186
239
|
},
|
|
187
240
|
variant: alertVariant,
|
|
188
241
|
show: !_Utils.default.isNull(message),
|
|
189
|
-
onClose: ()
|
|
242
|
+
onClose: function onClose() {
|
|
243
|
+
return setMessage(null);
|
|
244
|
+
},
|
|
190
245
|
dismissible: true
|
|
191
246
|
}, /*#__PURE__*/_react.default.createElement(_Alert.default.Heading, null, messageTitle), /*#__PURE__*/_react.default.createElement("p", null, message)) : "", /*#__PURE__*/_react.default.createElement("div", {
|
|
192
247
|
style: _loginBasicStyle.default.loginContainer
|
|
@@ -199,8 +254,8 @@ const ChangePassword = props => {
|
|
|
199
254
|
error: usernameError,
|
|
200
255
|
label: "Username",
|
|
201
256
|
value: username || '',
|
|
202
|
-
onChange: e
|
|
203
|
-
|
|
257
|
+
onChange: function onChange(e) {
|
|
258
|
+
var usernamePresent = !_Utils.default.isNull(e.target.value) && e.target.value.trim().length > 0;
|
|
204
259
|
setUsername(e.target.value);
|
|
205
260
|
setUsernameError(!usernamePresent);
|
|
206
261
|
},
|
|
@@ -218,8 +273,8 @@ const ChangePassword = props => {
|
|
|
218
273
|
error: passwordError,
|
|
219
274
|
type: showPassword ? 'text' : 'password',
|
|
220
275
|
value: password || '',
|
|
221
|
-
onChange: e
|
|
222
|
-
|
|
276
|
+
onChange: function onChange(e) {
|
|
277
|
+
var passwordPresent = !_Utils.default.isNull(e.target.value) && e.target.value.trim().length > 0;
|
|
223
278
|
setPassword(e.target.value);
|
|
224
279
|
setPasswordError(!passwordPresent);
|
|
225
280
|
},
|
|
@@ -245,8 +300,8 @@ const ChangePassword = props => {
|
|
|
245
300
|
disabled: _Utils.default.isNull(username) || _Utils.default.isNull(sessionId) || _Utils.default.isNull(challengeParamenters),
|
|
246
301
|
type: showConfirmPassword ? 'text' : 'password',
|
|
247
302
|
value: confirmPassword || '',
|
|
248
|
-
onChange: e
|
|
249
|
-
|
|
303
|
+
onChange: function onChange(e) {
|
|
304
|
+
var passwordPresent = !_Utils.default.isNull(e.target.value) && e.target.value.trim().length > 0;
|
|
250
305
|
setConfirmPassword(e.target.value);
|
|
251
306
|
},
|
|
252
307
|
margin: "normal",
|
|
@@ -269,7 +324,7 @@ const ChangePassword = props => {
|
|
|
269
324
|
className: "w-100"
|
|
270
325
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
271
326
|
disabled: _Utils.default.isNull(username) || _Utils.default.isNull(sessionId) || _Utils.default.isNull(challengeParamenters) || isLoading,
|
|
272
|
-
onClick: ()
|
|
327
|
+
onClick: function onClick() {
|
|
273
328
|
sendChangePassword();
|
|
274
329
|
},
|
|
275
330
|
variant: "contained",
|
|
@@ -290,6 +345,8 @@ const ChangePassword = props => {
|
|
|
290
345
|
})));
|
|
291
346
|
};
|
|
292
347
|
|
|
293
|
-
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(
|
|
348
|
+
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(function (dispatch) {
|
|
349
|
+
return (0, _redux.bindActionCreators)(_DashboardStore.actionCreators, dispatch);
|
|
350
|
+
})(ChangePassword));
|
|
294
351
|
|
|
295
352
|
exports.default = _default;
|
|
@@ -53,25 +53,58 @@ var _loginStyle = _interopRequireDefault(require("../../assets/jss/views/loginSt
|
|
|
53
53
|
|
|
54
54
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
const [username, setUsername] = _react.default.useState("");
|
|
58
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
60
59
|
|
|
61
|
-
|
|
60
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
64
63
|
|
|
65
|
-
|
|
64
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
68
67
|
|
|
69
|
-
|
|
68
|
+
var useStyles = (0, _styles.makeStyles)(_loginStyle.default);
|
|
70
69
|
|
|
71
|
-
|
|
70
|
+
var ResetPassword = function ResetPassword(props) {
|
|
71
|
+
var _React$useState = _react.default.useState(""),
|
|
72
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
73
|
+
username = _React$useState2[0],
|
|
74
|
+
setUsername = _React$useState2[1];
|
|
72
75
|
|
|
73
|
-
_react.default.
|
|
74
|
-
|
|
76
|
+
var _React$useState3 = _react.default.useState(""),
|
|
77
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
78
|
+
usernameState = _React$useState4[0],
|
|
79
|
+
setUsernameState = _React$useState4[1];
|
|
80
|
+
|
|
81
|
+
var _React$useState5 = _react.default.useState(""),
|
|
82
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
83
|
+
errorMessage = _React$useState6[0],
|
|
84
|
+
setErrorMessage = _React$useState6[1];
|
|
85
|
+
|
|
86
|
+
var _React$useState7 = _react.default.useState(false),
|
|
87
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
88
|
+
isLoading = _React$useState8[0],
|
|
89
|
+
setIsLoading = _React$useState8[1];
|
|
90
|
+
|
|
91
|
+
var _React$useState9 = _react.default.useState(null),
|
|
92
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
93
|
+
showPassword = _React$useState10[0],
|
|
94
|
+
setShowPassword = _React$useState10[1];
|
|
95
|
+
|
|
96
|
+
var _React$useState11 = _react.default.useState(false),
|
|
97
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
98
|
+
codeSent = _React$useState12[0],
|
|
99
|
+
setCodeSent = _React$useState12[1];
|
|
100
|
+
|
|
101
|
+
var _React$useState13 = _react.default.useState("cardHidden"),
|
|
102
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
103
|
+
cardAnimation = _React$useState14[0],
|
|
104
|
+
setCardAnimation = _React$useState14[1];
|
|
105
|
+
|
|
106
|
+
_react.default.useEffect(function () {
|
|
107
|
+
var id = setTimeout(function () {
|
|
75
108
|
setCardAnimation("");
|
|
76
109
|
}, 700);
|
|
77
110
|
document.body.style.overflow = "unset";
|
|
@@ -80,35 +113,35 @@ const ResetPassword = props => {
|
|
|
80
113
|
};
|
|
81
114
|
});
|
|
82
115
|
|
|
83
|
-
|
|
116
|
+
var classes = useStyles();
|
|
84
117
|
|
|
85
|
-
|
|
118
|
+
var handleClickShowPassword = function handleClickShowPassword() {
|
|
86
119
|
setShowPassword(!showPassword);
|
|
87
120
|
};
|
|
88
121
|
|
|
89
|
-
|
|
122
|
+
var sendCode = function sendCode() {
|
|
90
123
|
if (username === "") {
|
|
91
124
|
setUsernameState("error");
|
|
92
125
|
}
|
|
93
126
|
|
|
94
127
|
if (username) {
|
|
95
128
|
setIsLoading(true);
|
|
96
|
-
(0, _security.forgotPassword)(props.url, username, codeSent
|
|
129
|
+
(0, _security.forgotPassword)(props.url, username, function (codeSent) {
|
|
97
130
|
setIsLoading(false);
|
|
98
131
|
setCodeSent(codeSent);
|
|
99
132
|
setUsername("");
|
|
100
|
-
}, errorMessage
|
|
133
|
+
}, function (errorMessage) {
|
|
101
134
|
setIsLoading(false);
|
|
102
135
|
setErrorMessage(errorMessage);
|
|
103
136
|
});
|
|
104
137
|
}
|
|
105
138
|
};
|
|
106
139
|
|
|
107
|
-
|
|
140
|
+
var handleMouseDownPassword = function handleMouseDownPassword(event) {
|
|
108
141
|
event.preventDefault();
|
|
109
142
|
};
|
|
110
143
|
|
|
111
|
-
_react.default.useEffect(()
|
|
144
|
+
_react.default.useEffect(function () {
|
|
112
145
|
_ApplicationManager.default.clear();
|
|
113
146
|
});
|
|
114
147
|
|
|
@@ -139,7 +172,7 @@ const ResetPassword = props => {
|
|
|
139
172
|
className: classes.cardTitle
|
|
140
173
|
}, " Forgot Password "), /*#__PURE__*/_react.default.createElement("div", {
|
|
141
174
|
className: classes.socialLine
|
|
142
|
-
}, ["fa fa-recycle"].map((prop, key)
|
|
175
|
+
}, ["fa fa-recycle"].map(function (prop, key) {
|
|
143
176
|
return /*#__PURE__*/_react.default.createElement(_RegularButton.default, {
|
|
144
177
|
color: "transparent",
|
|
145
178
|
justIcon: true,
|
|
@@ -167,7 +200,7 @@ const ResetPassword = props => {
|
|
|
167
200
|
className: classes.inputAdornmentIcon
|
|
168
201
|
})),
|
|
169
202
|
value: username,
|
|
170
|
-
onChange: e
|
|
203
|
+
onChange: function onChange(e) {
|
|
171
204
|
setUsername(e.target.value);
|
|
172
205
|
}
|
|
173
206
|
}
|
|
@@ -185,7 +218,9 @@ const ResetPassword = props => {
|
|
|
185
218
|
simple: true,
|
|
186
219
|
size: "lg",
|
|
187
220
|
block: true,
|
|
188
|
-
onClick: ()
|
|
221
|
+
onClick: function onClick() {
|
|
222
|
+
return sendCode();
|
|
223
|
+
},
|
|
189
224
|
disabled: isLoading
|
|
190
225
|
}, isLoading && /*#__PURE__*/_react.default.createElement("i", {
|
|
191
226
|
className: "fa fa-refresh fa-spin",
|
|
@@ -197,6 +232,8 @@ const ResetPassword = props => {
|
|
|
197
232
|
})))));
|
|
198
233
|
};
|
|
199
234
|
|
|
200
|
-
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(
|
|
235
|
+
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(function (dispatch) {
|
|
236
|
+
return (0, _redux.bindActionCreators)(_DashboardStore.actionCreators, dispatch);
|
|
237
|
+
})(ResetPassword));
|
|
201
238
|
|
|
202
239
|
exports.default = _default;
|
|
@@ -39,37 +39,70 @@ var _reactRouterDom = require("react-router-dom");
|
|
|
39
39
|
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
const navigate = (0, _reactRouterDom.useNavigate)();
|
|
42
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
46
45
|
|
|
47
|
-
|
|
46
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
48
47
|
|
|
49
|
-
|
|
48
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
50
49
|
|
|
51
|
-
|
|
50
|
+
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
52
51
|
|
|
53
|
-
|
|
52
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
54
53
|
|
|
55
|
-
|
|
54
|
+
var ResetPassword = function ResetPassword(props) {
|
|
55
|
+
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
var _React$useState = _react.default.useState(""),
|
|
58
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
59
|
+
username = _React$useState2[0],
|
|
60
|
+
setUsername = _React$useState2[1];
|
|
58
61
|
|
|
59
|
-
|
|
62
|
+
var _React$useState3 = _react.default.useState(null),
|
|
63
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
64
|
+
message = _React$useState4[0],
|
|
65
|
+
setMessage = _React$useState4[1];
|
|
66
|
+
|
|
67
|
+
var _React$useState5 = _react.default.useState(null),
|
|
68
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
69
|
+
messageTitle = _React$useState6[0],
|
|
70
|
+
setMessageTitle = _React$useState6[1];
|
|
71
|
+
|
|
72
|
+
var _React$useState7 = _react.default.useState(""),
|
|
73
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
74
|
+
alertVariant = _React$useState8[0],
|
|
75
|
+
setAlertVariant = _React$useState8[1];
|
|
76
|
+
|
|
77
|
+
var _React$useState9 = _react.default.useState(false),
|
|
78
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
79
|
+
usernameError = _React$useState10[0],
|
|
80
|
+
setUsernameError = _React$useState10[1];
|
|
81
|
+
|
|
82
|
+
var _React$useState11 = _react.default.useState(false),
|
|
83
|
+
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
84
|
+
isLoading = _React$useState12[0],
|
|
85
|
+
setIsLoading = _React$useState12[1];
|
|
86
|
+
|
|
87
|
+
var _React$useState13 = _react.default.useState(null),
|
|
88
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
89
|
+
showPassword = _React$useState14[0],
|
|
90
|
+
setShowPassword = _React$useState14[1];
|
|
91
|
+
|
|
92
|
+
var handleClickShowPassword = function handleClickShowPassword() {
|
|
60
93
|
setShowPassword(!showPassword);
|
|
61
94
|
};
|
|
62
95
|
|
|
63
|
-
|
|
96
|
+
var sendCode = function sendCode() {
|
|
64
97
|
if (!_Utils.default.isNull(username) && username.trim().length > 0) {
|
|
65
98
|
setIsLoading(true);
|
|
66
|
-
(0, _Security.forgotPassword)(props.url, username, (codeSent, message)
|
|
99
|
+
(0, _Security.forgotPassword)(props.url, username, function (codeSent, message) {
|
|
67
100
|
setIsLoading(false);
|
|
68
101
|
setUsername(null);
|
|
69
102
|
setMessageTitle("Password Reset");
|
|
70
103
|
setMessage(message);
|
|
71
104
|
setAlertVariant('success');
|
|
72
|
-
}, errorMessage
|
|
105
|
+
}, function (errorMessage) {
|
|
73
106
|
setIsLoading(false);
|
|
74
107
|
setMessageTitle("Password Reset Error!");
|
|
75
108
|
setMessage(!errorMessage ? _Utils.default.SYSTEM_ERROR_MESSAGE : errorMessage);
|
|
@@ -80,11 +113,11 @@ const ResetPassword = props => {
|
|
|
80
113
|
}
|
|
81
114
|
};
|
|
82
115
|
|
|
83
|
-
|
|
116
|
+
var handleMouseDownPassword = function handleMouseDownPassword(event) {
|
|
84
117
|
event.preventDefault();
|
|
85
118
|
};
|
|
86
119
|
|
|
87
|
-
_react.default.useEffect(()
|
|
120
|
+
_react.default.useEffect(function () {
|
|
88
121
|
_ApplicationManager.default.clear();
|
|
89
122
|
}, []);
|
|
90
123
|
|
|
@@ -134,7 +167,9 @@ const ResetPassword = props => {
|
|
|
134
167
|
},
|
|
135
168
|
variant: alertVariant,
|
|
136
169
|
show: !_Utils.default.isNull(message),
|
|
137
|
-
onClose: ()
|
|
170
|
+
onClose: function onClose() {
|
|
171
|
+
return setMessage(null);
|
|
172
|
+
},
|
|
138
173
|
dismissible: true
|
|
139
174
|
}, /*#__PURE__*/_react.default.createElement(_Alert.default.Heading, null, messageTitle), /*#__PURE__*/_react.default.createElement("p", null, message)) : "", /*#__PURE__*/_react.default.createElement("div", {
|
|
140
175
|
style: _loginBasicStyle.default.loginContainer
|
|
@@ -146,8 +181,8 @@ const ResetPassword = props => {
|
|
|
146
181
|
label: "Username",
|
|
147
182
|
error: usernameError,
|
|
148
183
|
value: username || '',
|
|
149
|
-
onChange: e
|
|
150
|
-
|
|
184
|
+
onChange: function onChange(e) {
|
|
185
|
+
var usernamePresent = !_Utils.default.isNull(e.target.value) && e.target.value.trim().length > 0;
|
|
151
186
|
setUsername(e.target.value);
|
|
152
187
|
setUsernameError(!usernamePresent);
|
|
153
188
|
},
|
|
@@ -160,7 +195,9 @@ const ResetPassword = props => {
|
|
|
160
195
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
161
196
|
className: "w-100"
|
|
162
197
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
163
|
-
onClick: ()
|
|
198
|
+
onClick: function onClick() {
|
|
199
|
+
return sendCode();
|
|
200
|
+
},
|
|
164
201
|
variant: "contained",
|
|
165
202
|
color: "primary",
|
|
166
203
|
fullWidth: true,
|
|
@@ -175,7 +212,9 @@ const ResetPassword = props => {
|
|
|
175
212
|
style: _loginBasicStyle.default.buttonsDiv
|
|
176
213
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
177
214
|
label: "Back to Login",
|
|
178
|
-
onClick:
|
|
215
|
+
onClick: function onClick(e) {
|
|
216
|
+
return navigate("/login");
|
|
217
|
+
},
|
|
179
218
|
style: _loginBasicStyle.default.flatButton,
|
|
180
219
|
startIcon: /*#__PURE__*/_react.default.createElement(_Lock.default, null)
|
|
181
220
|
}, "Back to Login"))))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Footer.default, {
|
|
@@ -187,6 +226,8 @@ const ResetPassword = props => {
|
|
|
187
226
|
})));
|
|
188
227
|
};
|
|
189
228
|
|
|
190
|
-
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(
|
|
229
|
+
var _default = (0, _WithRouter.default)((0, _reactRedux.connect)(function (dispatch) {
|
|
230
|
+
return (0, _redux.bindActionCreators)(_DashboardStore.actionCreators, dispatch);
|
|
231
|
+
})(ResetPassword));
|
|
191
232
|
|
|
192
233
|
exports.default = _default;
|