react-gldn-kit 0.1.101 → 0.1.103

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.
Files changed (38) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/components/LastBigWinners/components/LastBigWinner/LastBigWinner.js +1 -1
  3. package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/index.js +7 -8
  4. package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/index.js +22 -19
  5. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/components/Forms/PhoneSignUp/index.js +1 -1
  6. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/index.js +2 -1
  7. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Second/index.js +4 -1
  8. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/EmailConfirmation/index.js +17 -5
  9. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordEmailForm/index.d.ts +3 -1
  10. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordEmailForm/index.js +6 -3
  11. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/components/MoreInfo/index.d.ts +3 -1
  12. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/components/MoreInfo/index.js +9 -4
  13. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/index.d.ts +3 -1
  14. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/index.js +6 -5
  15. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/NumberConfirmation/index.js +17 -5
  16. package/dist/lib/components/Modals/Alert/components/LostPassword/First/index.js +7 -1
  17. package/dist/lib/components/Modals/Alert/components/SetNewPassword/Third/index.js +20 -11
  18. package/dist/lib/components/Modals/Alert/index.js +17 -13
  19. package/dist/lib/components/Scratch/index.js +1 -1
  20. package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.d.ts +1 -0
  21. package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.js +9 -7
  22. package/dist/lib/components/ui/Inputs/PhoneInput/index.js +4 -4
  23. package/dist/lib/zustandStore/alerts/modal/types.d.ts +3 -4
  24. package/dist/lib/zustandStore/alerts/modal/types.js +3 -4
  25. package/dist/lib/zustandStore/forms/signUp/types.d.ts +2 -0
  26. package/dist/lib/zustandStore/forms/signUp/types.js +2 -0
  27. package/dist/main.css +212 -228
  28. package/package.json +2 -2
  29. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordEmailForm/index.d.ts +0 -11
  30. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordEmailForm/index.js +0 -116
  31. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordPhoneForm/index.d.ts +0 -8
  32. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordPhoneForm/index.js +0 -92
  33. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/constants.d.ts +0 -5
  34. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/constants.js +0 -14
  35. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/index.d.ts +0 -2
  36. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/index.js +0 -73
  37. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/types.d.ts +0 -4
  38. package/dist/lib/components/Modals/Alert/components/LostPassword/Third/types.js +0 -8
@@ -53,6 +53,6 @@ var LastBigWinner = function (props) {
53
53
  backgroundRepeat: 'no-repeat',
54
54
  backgroundPosition: 'center',
55
55
  backgroundSize: 'cover',
56
- } }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.box }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.sum }, { children: prize })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.userId }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.win }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lastWin.win" }) })), "ID ", id] }))] })) })));
56
+ } }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.box }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.sum }, { children: prize })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.userId }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.win }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lastWin.win" }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.id }, { children: ["ID ", id] }))] }))] })) })));
57
57
  };
58
58
  exports.default = LastBigWinner;
@@ -78,7 +78,7 @@ var SignIn = function (_a) {
78
78
  var setModal = (0, store_3.useZustandModalKitStore)(selectors_3.zustandModalKitSelector.closeAndOpenModalAction);
79
79
  var notifications = (0, store_1.useZustandNotificationKitStore)(selectors_1.notificationKitSelectors.getNotificationsSelector);
80
80
  var data = (0, store_3.useZustandModalKitStore)(selectors_3.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
81
- var registrationTheme = data.registrationTheme;
81
+ var registrationTheme = data.registrationTheme, preventClose = data.preventClose;
82
82
  var regType = registrationTheme;
83
83
  var _d = (0, react_1.useState)(''), password = _d[0], setPassword = _d[1];
84
84
  var _e = (0, react_1.useState)(''), email = _e[0], setEmail = _e[1];
@@ -96,11 +96,14 @@ var SignIn = function (_a) {
96
96
  var data = (0, utils_1.getAuthorizationData)(logInInfo, password, types_1.ERequestIds.AuthorizeByEmail);
97
97
  sendCommand('x02', data, true);
98
98
  };
99
- var setModalType = function (t, additionalSettings) {
99
+ var setModalType = function (t) {
100
100
  return function (e) {
101
101
  e.preventDefault();
102
102
  e.stopPropagation();
103
- setModal(t, additionalSettings);
103
+ setModal(t, {
104
+ registrationTheme: registrationTheme,
105
+ preventClose: preventClose,
106
+ });
104
107
  };
105
108
  };
106
109
  var activeInput = (0, react_1.useMemo)(function () {
@@ -134,10 +137,6 @@ var SignIn = function (_a) {
134
137
  _c[styles.formOne] = activeForm === types_3.EAuthFormType.Phone,
135
138
  _c[styles.formTwo] = activeForm === types_3.EAuthFormType.Email,
136
139
  _c[styles.formThree] = activeForm === types_3.EAuthFormType.UserName,
137
- _c)) }, { children: [(0, jsx_runtime_1.jsx)(PhoneSignInForm_1.PhoneSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setPhone, errorText: authError.errorText }), (0, jsx_runtime_1.jsx)(EmailSignInForm_1.EmailSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setEmail, sendCommand: sendCommand, errorText: authError.errorText }), (0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId, errorText: authError.errorText })] })), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, { label: "authorization.inputs.password", size: "full", onChange: setPassword, classes: (0, classnames_1.default)(styles.passwordField, styles.marginInput), errorText: authError.errorText }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.lostPsw, styles.marginInput), onClick: setModalType(types_2.EModalTypes.LostPassword, {
138
- registrationTheme: registrationTheme,
139
- }) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.lostPasswordBtn" }) })), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\x02", requestId: types_1.ERequestIds.AuthorizeByEmail, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "authorization.submitBtn", size: "--button-full", buttonHeight: "--button-height-full", color: "primary", disabled: Boolean(!activeInput || !password), handleClick: handleSignIn, classes: styles.btn, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", __assign({ onClick: setModalType(types_2.EModalTypes.SignUp, {
140
- registrationTheme: registrationTheme,
141
- }), className: styles.noAccount }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.noAccount" }) }))] })), isDev && ((0, jsx_runtime_1.jsx)(SocialButtons_1.SocialButtons, { social: ['Google'], wrapperClasses: styles.wrapperButtons }))] })));
140
+ _c)) }, { children: [(0, jsx_runtime_1.jsx)(PhoneSignInForm_1.PhoneSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setPhone, errorText: authError.errorText }), (0, jsx_runtime_1.jsx)(EmailSignInForm_1.EmailSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setEmail, sendCommand: sendCommand, errorText: authError.errorText }), (0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId, errorText: authError.errorText })] })), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, { label: "authorization.inputs.password", size: "full", onChange: setPassword, classes: (0, classnames_1.default)(styles.passwordField, styles.marginInput), errorText: authError.errorText }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.lostPsw, styles.marginInput), onClick: setModalType(types_2.EModalTypes.LostPassword) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.lostPasswordBtn" }) })), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\x02", requestId: types_1.ERequestIds.AuthorizeByEmail, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "authorization.submitBtn", size: "--button-full", buttonHeight: "--button-height-full", color: "primary", disabled: Boolean(!activeInput || !password), handleClick: handleSignIn, classes: styles.btn, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", __assign({ onClick: setModalType(types_2.EModalTypes.SignUp), className: styles.noAccount }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.noAccount" }) }))] })), isDev && ((0, jsx_runtime_1.jsx)(SocialButtons_1.SocialButtons, { social: ['Google'], wrapperClasses: styles.wrapperButtons }))] })));
142
141
  };
143
142
  exports.SignIn = SignIn;
@@ -59,6 +59,8 @@ var store_2 = require("zustandStore/alerts/modal/store");
59
59
  var selectors_2 = require("zustandStore/alerts/modal/selectors");
60
60
  var selectors_3 = require("zustandStore/settings/selectors");
61
61
  var store_3 = require("zustandStore/settings/store");
62
+ var store_4 = require("zustandStore/device/store");
63
+ var selectors_4 = require("zustandStore/device/selectors");
62
64
  var types_2 = require("zustandStore/alerts/modal/types");
63
65
  var types_3 = require("zustandStore/forms/signIn/types");
64
66
  var types_4 = require("zustandStore/forms/signUp/types");
@@ -69,16 +71,18 @@ var SignInThird = function () {
69
71
  var _a;
70
72
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
71
73
  var appType = (0, store_3.useZustandKitSettings)(selectors_3.getKitAppTypeSelector);
74
+ var isMobile = (0, store_4.useZustandDeviceKitStore)(selectors_4.zustandDeviceKitSelector.isMobileDeviceSelector);
72
75
  var sendCommand = useTransportControllers().sendCommand;
73
76
  var activeForm = (0, store_1.useZustandSignInKitStore)(selectors_1.zustandSignInKitSelectors.getActiveSignInFormSelector);
74
77
  var setAuthFormType = (0, store_1.useZustandSignInKitStore)(selectors_1.zustandSignInKitSelectors.setActiveSignInFormAction);
75
78
  var closeAndOpen = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.closeAndOpenModalAction);
76
79
  var additionalSettings = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
77
- var _b = additionalSettings.registrationTheme, registrationTheme = _b === void 0 ? types_4.ESignUpTheme.WhiteYellow : _b, _c = additionalSettings.bonusImagePath, bonusImagePath = _c === void 0 ? '' : _c;
78
- var _d = (0, react_1.useState)(''), password = _d[0], setPassword = _d[1];
79
- var _e = (0, react_1.useState)(''), email = _e[0], setEmail = _e[1];
80
- var _f = (0, react_1.useState)(''), id = _f[0], setId = _f[1];
81
- var _g = (0, react_1.useState)(''), phone = _g[0], setPhone = _g[1];
80
+ var registrationTheme = additionalSettings.registrationTheme, _b = additionalSettings.bonusImagePath, bonusImagePath = _b === void 0 ? '' : _b;
81
+ var regType = registrationTheme;
82
+ var _c = (0, react_1.useState)(''), password = _c[0], setPassword = _c[1];
83
+ var _d = (0, react_1.useState)(''), email = _d[0], setEmail = _d[1];
84
+ var _e = (0, react_1.useState)(''), id = _e[0], setId = _e[1];
85
+ var _f = (0, react_1.useState)(''), phone = _f[0], setPhone = _f[1];
82
86
  var handleSignIn = function () {
83
87
  var logInInfo = activeForm === types_3.EAuthFormType.Phone ? phone : email;
84
88
  if (activeForm === types_3.EAuthFormType.UserName) {
@@ -92,7 +96,7 @@ var SignInThird = function () {
92
96
  e.preventDefault();
93
97
  e.stopPropagation();
94
98
  closeAndOpen(t, {
95
- preventClose: true,
99
+ preventClose: t === types_2.EModalTypes.SignUpThree,
96
100
  registrationTheme: registrationTheme,
97
101
  bonusImagePath: bonusImagePath,
98
102
  });
@@ -111,19 +115,18 @@ var SignInThird = function () {
111
115
  closeAndOpen(types_2.EModalTypes.SignUpThree, __assign({}, additionalSettings));
112
116
  };
113
117
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralCopyContent, (_a = {},
114
- _a[styles.purple] = types_4.ESignUpTheme[registrationTheme] ===
115
- types_4.ESignUpTheme.WhitePurple,
116
- _a[styles.lightBlue] = types_4.ESignUpTheme[registrationTheme] ===
117
- types_4.ESignUpTheme.WhiteBlue,
118
- _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.leftSide }, { children: [(0, jsx_runtime_1.jsx)("div", { className: styles.banner, style: {
119
- backgroundImage: bonusImagePath ||
120
- "url(/landings/assets-builder/signUpThree/".concat(appType, "/mob.png)"),
121
- backgroundPosition: 'center',
122
- backgroundSize: '100% 100%',
123
- backgroundRepeat: 'no-repeat',
124
- } }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.title" }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.close, onClick: setModalType(types_2.EModalTypes.Unknown) }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.closeIcon }) }))] })), (0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, onChange: setAuthFormType, data: constants_1.AUTH_TABS, classes: styles.wrapperTabs, type: "underline", tabClasses: styles.tab }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperForms }, { children: [activeForm === types_3.EAuthFormType.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignInForm_1.PhoneSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setPhone, labelClasses: styles.label, inputClasses: styles.input })), activeForm === types_3.EAuthFormType.Email && ((0, jsx_runtime_1.jsx)(EmailSignInForm_1.EmailSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setEmail, sendCommand: sendCommand, labelClasses: styles.label, inputClasses: styles.input })), activeForm === types_3.EAuthFormType.UserName && ((0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId, labelClasses: styles.label, inputClasses: styles.input }))] })), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, { label: "authorization.inputs.password", size: "full", isHidePlaceholder: true, onChange: setPassword, classes: (0, classnames_1.default)(styles.passwordField, styles.marginInput), labelClasses: styles.label, inputLabelType: "secondary", inputClasses: styles.input }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.lostPsw, styles.marginInput), onClick: setModalType(types_2.EModalTypes.LostPasswordThree) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.lostPasswordBtn" }) })), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\x02", requestId: types_1.ERequestIds.AuthorizeByEmail, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "authorization.submitBtn", size: "--button-full", buttonHeight: "--button-height-full", color: "primary", disabled: Boolean(!activeInput || !password), handleClick: handleSignIn, classes: styles.submitButton, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.row }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.noAccount }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.noAccount" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.register, onClick: handleOpenSignUp }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.register" }) }))] })) })] })), (0, jsx_runtime_1.jsx)("div", { className: styles.rightSide, style: {
125
- backgroundImage: bonusImagePath ||
126
- "url(/landings/assets-builder/signUpThree/".concat(appType, "/desk.png)"),
118
+ _a[styles.purple] = types_4.ESignUpTheme[regType] === types_4.ESignUpTheme.WhitePurple,
119
+ _a[styles.lightBlue] = types_4.ESignUpTheme[regType] === types_4.ESignUpTheme.WhiteBlue,
120
+ _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.leftSide }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { className: styles.banner, style: {
121
+ backgroundImage: bonusImagePath ||
122
+ "url(/landings/assets-builder/signUpThree/".concat(appType, "/mob.png)"),
123
+ backgroundPosition: 'center',
124
+ backgroundSize: '100% 100%',
125
+ backgroundRepeat: 'no-repeat',
126
+ } }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.title" }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.close, onClick: setModalType(types_2.EModalTypes.Unknown) }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.closeIcon }) }))] })), (0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, onChange: setAuthFormType, data: constants_1.AUTH_TABS, classes: styles.wrapperTabs, type: "underline", tabClasses: styles.tab }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperForms }, { children: [activeForm === types_3.EAuthFormType.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignInForm_1.PhoneSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setPhone, labelClasses: styles.label, inputClasses: styles.input })), activeForm === types_3.EAuthFormType.Email && ((0, jsx_runtime_1.jsx)(EmailSignInForm_1.EmailSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setEmail, sendCommand: sendCommand, labelClasses: styles.label, inputClasses: styles.input })), activeForm === types_3.EAuthFormType.UserName && ((0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId, labelClasses: styles.label, inputClasses: styles.input }))] })), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, { label: "authorization.inputs.password", size: "full", isHidePlaceholder: true, onChange: setPassword, classes: (0, classnames_1.default)(styles.passwordField, styles.marginInput), labelClasses: styles.label, inputLabelType: "secondary", inputClasses: styles.input }), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.lostPsw, styles.marginInput), onClick: setModalType(types_2.EModalTypes.LostPassword) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "authorization.lostPasswordBtn" }) }))] }), (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\x02", requestId: types_1.ERequestIds.AuthorizeByEmail, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "authorization.submitBtn", size: "--button-full", buttonHeight: "--button-height-full", color: "primary", disabled: Boolean(!activeInput || !password), handleClick: handleSignIn, classes: styles.submitButton, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.row }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.noAccount }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.noAccount" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.register, onClick: handleOpenSignUp }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.register" }) }))] })) })] })] })), (0, jsx_runtime_1.jsx)("div", { className: styles.rightSide, style: {
127
+ backgroundImage: isMobile
128
+ ? bonusImagePath
129
+ : "url(/landings/assets-builder/signUpThree/".concat(appType, "/desk.png)"),
127
130
  backgroundPosition: 'top',
128
131
  backgroundSize: '100% 100%',
129
132
  backgroundRepeat: 'no-repeat',
@@ -160,6 +160,6 @@ var PhoneSignUp = function (props) {
160
160
  var PHONE_PROPS = withoutCode
161
161
  ? constants_1.PHONE_PROPS_WITHOUT_CONFIRMATION
162
162
  : constants_1.PHONE_PROPS_WITH_CONFIRMATION;
163
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, { label: "registrations.inputs.phone", size: "full", defaultValue: "+", onChange: setPhone, countryInfo: countryInfo, requestCallback: handleIsRequested, classesWrapper: styles.marginB, disabled: isRequestedCode, classes: styles.marginB, requestCode: !withoutCode ? requestCode : undefined, buttonClasses: styles.authButton })), !withoutCode && isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.code", size: "full", disabled: !isRequestedCode, onChange: handleChange('code'), classes: styles.marginB })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), classes: styles.marginB, errorText: password.errorText }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: styles.marginB }), (0, jsx_runtime_1.jsx)(PromoCode_1.RegistrationPromoCode, { setPromoCode: setPromoCode, classes: styles.marginB }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "08x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: buttonText || 'registrations.submitBtn', disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(styles.marginB, styles.authButton) }) }))] }));
163
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, { label: "registrations.inputs.phone", size: "full", defaultValue: "+", onChange: setPhone, countryInfo: countryInfo, requestCallback: handleIsRequested, classesWrapper: styles.marginB, disabled: isRequestedCode, classes: styles.marginB, requestCode: !withoutCode ? requestCode : undefined, buttonClasses: styles.authButton })), !withoutCode && isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.code", size: "full", disabled: !isRequestedCode, onChange: handleChange('code'), classes: styles.marginB })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", onChange: handleChange('password'), classes: styles.marginB, errorText: password.errorText }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: styles.marginB }), (0, jsx_runtime_1.jsx)(PromoCode_1.RegistrationPromoCode, { setPromoCode: setPromoCode, classes: styles.marginB }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "08x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: buttonText || 'registrations.submitBtn', disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(styles.marginB, styles.authButton) }) }))] }));
164
164
  };
165
165
  exports.PhoneSignUp = PhoneSignUp;
@@ -75,7 +75,7 @@ var SignUp = function (props) {
75
75
  var setActiveForm = (0, store_3.useZustandRegistrationKitStore)(selectors_3.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
76
76
  var setModal = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.closeAndOpenModalAction);
77
77
  var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
78
- var _d = data.bonusSignUp, bonusSignUp = _d === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSignUp) || false : _d, _e = data.bonusText, modalBonusText = _e === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusText) || '' : _e, _f = data.bonusSubText, modalBonusSubText = _f === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSubText) || '' : _f, _g = data.withCongratulationText, modalWithCongratulationText = _g === void 0 ? withCongratulationText : _g, _h = data.buttonText, buttonSignUpText = _h === void 0 ? '' : _h, _j = data.registrationTheme, registrationTheme = _j === void 0 ? types_1.ESignUpTheme.BaseGreen : _j;
78
+ var _d = data.bonusSignUp, bonusSignUp = _d === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSignUp) || false : _d, _e = data.bonusText, modalBonusText = _e === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusText) || '' : _e, _f = data.bonusSubText, modalBonusSubText = _f === void 0 ? (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.bonusSubText) || '' : _f, _g = data.withCongratulationText, modalWithCongratulationText = _g === void 0 ? withCongratulationText : _g, _h = data.buttonText, buttonSignUpText = _h === void 0 ? '' : _h, _j = data.registrationTheme, registrationTheme = _j === void 0 ? types_1.ESignUpTheme.BaseGreen : _j, _k = data.preventClose, preventClose = _k === void 0 ? false : _k;
79
79
  var regType = (registrationSettings === null || registrationSettings === void 0 ? void 0 : registrationSettings.registrationTheme) ||
80
80
  registrationTheme;
81
81
  var isCongratulation = modalWithCongratulationText;
@@ -84,6 +84,7 @@ var SignUp = function (props) {
84
84
  var customSignUpButtonText = buttonText || buttonSignUpText;
85
85
  var openSignIn = function () {
86
86
  setModal(types_2.EModalTypes.SignIn, {
87
+ preventClose: preventClose,
87
88
  registrationTheme: regType,
88
89
  });
89
90
  };
@@ -119,11 +119,12 @@ var SignUpTypeTwo = function () {
119
119
  var _h = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), email = _h[0], setEmail = _h[1];
120
120
  var titleRef = (0, react_1.useRef)(null);
121
121
  var _j = (0, react_1.useState)(0), titleHeight = _j[0], setTitleHeight = _j[1];
122
- var _k = data.registrationTitle, registrationTitle = _k === void 0 ? 'signUpTwo.won' : _k, _l = data.bonusImagePath, bonusImagePath = _l === void 0 ? '' : _l, _m = data.registrationTheme, registrationTheme = _m === void 0 ? types_3.ESignUpTheme.Brown : _m, _o = data.buttonText, buttonText = _o === void 0 ? 'signUpTwo.joinNow' : _o, _p = data.social, social = _p === void 0 ? [] : _p;
122
+ var _k = data.registrationTitle, registrationTitle = _k === void 0 ? 'signUpTwo.won' : _k, _l = data.bonusImagePath, bonusImagePath = _l === void 0 ? '' : _l, _m = data.registrationTheme, registrationTheme = _m === void 0 ? types_3.ESignUpTheme.Brown : _m, _o = data.buttonText, buttonText = _o === void 0 ? 'signUpTwo.joinNow' : _o, _p = data.social, social = _p === void 0 ? [] : _p, _q = data.preventClose, preventClose = _q === void 0 ? false : _q;
123
123
  var regType = registrationTheme;
124
124
  var openSignIn = function () {
125
125
  setModal(types_2.EModalTypes.SignIn, {
126
126
  registrationTheme: registrationTheme,
127
+ preventClose: preventClose,
127
128
  });
128
129
  };
129
130
  var toggleState = function () {
@@ -191,6 +192,8 @@ var SignUpTypeTwo = function () {
191
192
  _a[styles.grayTwo] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.GrayTwo,
192
193
  _a[styles.black] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.Black,
193
194
  _a[styles.blackRed] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.BlackRed,
195
+ _a[styles.bluePurple] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.BluePurple,
196
+ _a[styles.silverRed] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.SilverRed,
194
197
  _a)) }, { children: [registrationTitle && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title, ref: titleRef }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: registrationTitle }) }))), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.contentArea, style: {
195
198
  height: "calc(100% - ".concat(titleHeight, "px)"),
196
199
  } }, { children: [!isSelected && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.warning }, { children: [(0, jsx_runtime_1.jsx)(WarningSvg_1.WarningSvg, {}), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.warningText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpTwo.notConfirm" }) }))] }))), bonusImagePath && ((0, jsx_runtime_1.jsx)("img", { src: bonusImagePath, className: (0, classnames_1.default)(styles.bonusImage, 'KIT_SignUpTypeTwo_wrapperSignUp_bonusImage') })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.content }, { children: [Boolean(social.length) && (0, jsx_runtime_1.jsx)(SocialButtons_1.SocialButtons, { social: social }), activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, type: "underline", tabClasses: styles.tab, activeTabClasses: styles.activeTab, indicatorClasses: styles.indicator })), (0, jsx_runtime_1.jsxs)("div", { children: [activeForm === types_3.ERegistrationForm.PhoneWithoutCode ? ((0, jsx_runtime_1.jsx)(PhoneBox_1.default, { onChange: setPhone, countryInfo: countryInfo })) : ((0, jsx_runtime_1.jsx)(InputBox_1.default, { leftImg: "/landings/assets-builder/signUpTwo/email.svg", rightImg: "", setInput: setEmail, validation: validation_1.validateEmailValue, input: email, label: "signUpTwo.tabEmail", classes: styles.emailInput })), (0, jsx_runtime_1.jsx)(PasswordBox_1.default, { onChange: setPassword }), (0, jsx_runtime_1.jsx)(CurrencyBox_1.default, {}), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.submitButton, (_b = {},
@@ -51,24 +51,31 @@ var store_1 = require("zustandStore/settings/store");
51
51
  var store_2 = require("zustandStore/alerts/notification/store");
52
52
  var selectors_1 = require("zustandStore/alerts/notification/selectors");
53
53
  var selectors_2 = require("zustandStore/settings/selectors");
54
+ var store_3 = require("zustandStore/alerts/modal/store");
55
+ var selectors_3 = require("zustandStore/alerts/modal/selectors");
56
+ var types_2 = require("zustandStore/forms/signUp/types");
54
57
  var ModalContext_1 = require("context/logic/ModalContext");
55
58
  var useCountDown_1 = require("hooks/useCountDown");
56
59
  var styles = __importStar(require("./EmailConfirmation.module.css"));
57
- var selectors_3 = require("zustandStore/forms/recovery/selectors");
58
- var store_3 = require("zustandStore/forms/recovery/store");
60
+ var selectors_4 = require("zustandStore/forms/recovery/selectors");
61
+ var store_4 = require("zustandStore/forms/recovery/store");
59
62
  var EmailConfirmation = function () {
63
+ var _a;
60
64
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
61
65
  var sendCommand = useTransportControllers().sendCommand;
62
- var _a = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), code = _a[0], setCode = _a[1];
66
+ var _b = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), code = _b[0], setCode = _b[1];
63
67
  var timerValue = (0, react_1.useRef)(new Date().getTime() + constants_2.DEFAULT_TIMER_VALUE);
64
68
  var appType = (0, store_1.useZustandKitSettings)(selectors_2.getKitAppTypeSelector);
65
69
  var bannerImage = (0, store_1.useZustandKitSettings)(selectors_2.getKitRecoveryEmailImageSelector);
66
70
  var notifications = (0, store_2.useZustandNotificationKitStore)(selectors_1.notificationKitSelectors.getNotificationsSelector);
71
+ var additionalSettings = (0, store_3.useZustandModalKitStore)(selectors_3.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
72
+ var _c = additionalSettings.registrationTheme, registrationTheme = _c === void 0 ? types_2.ESignUpTheme.BaseGreen : _c;
73
+ var regType = registrationTheme;
67
74
  var countDown = (0, useCountDown_1.useCountDown)({
68
75
  endTimestamp: timerValue.current,
69
76
  });
70
77
  var timeRemaining = countDown.timeRemaining;
71
- var email = (0, store_3.useZustandRecoveryKitStore)(selectors_3.zustandRecoveryKitSelectors.getEmailSelector);
78
+ var email = (0, store_4.useZustandRecoveryKitStore)(selectors_4.zustandRecoveryKitSelectors.getEmailSelector);
72
79
  var submit = function () {
73
80
  sendCommand('31x', {
74
81
  sms: code.value,
@@ -100,6 +107,11 @@ var EmailConfirmation = function () {
100
107
  });
101
108
  }
102
109
  }, [notifications]);
103
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperEmailConfirmation, styles.column) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.top, styles.column) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.mediumGap) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterDigits }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.enterDigits" }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.smallGap) }, { children: [(0, jsx_runtime_1.jsx)(InputCode_1.default, { errorText: code.errorText, handleChange: handleChange, length: 5 }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.time }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.seconds", specValue: "".concat(Math.round(timeRemaining / 1000)) }) }))] }))] }))] })), !timeRemaining && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.resendCode, onClick: handleResend }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.resendCode" }) }))), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "recoveryPsw.emailConfirmation.verify", handleClick: submit, size: "--button-full", buttonHeight: "--button-height-xl", color: "primary", centreText: true, disabled: code.value.length < constants_1.MAX_EMAIL_CODE_LENGTH })] })));
110
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperEmailConfirmation, styles.column, (_a = {},
111
+ _a[styles.white] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseWhite,
112
+ _a[styles.whiteYellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow,
113
+ _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
114
+ _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
115
+ _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.top, styles.column) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.mediumGap) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterDigits }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.enterDigits" }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.smallGap) }, { children: [(0, jsx_runtime_1.jsx)(InputCode_1.default, { errorText: code.errorText, handleChange: handleChange, length: 5 }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.time }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.seconds", specValue: "".concat(Math.round(timeRemaining / 1000)) }) }))] }))] }))] })), !timeRemaining && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.resendCode, onClick: handleResend }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.emailConfirmation.resendCode" }) }))), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "recoveryPsw.emailConfirmation.verify", handleClick: submit, size: "--button-full", buttonHeight: "--button-height-xl", color: "primary", centreText: true, disabled: code.value.length < constants_1.MAX_EMAIL_CODE_LENGTH })] })));
104
116
  };
105
117
  exports.default = EmailConfirmation;
@@ -1,2 +1,4 @@
1
- declare const LostPasswordEmailForm: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const LostPasswordEmailForm: ({ inputLabelType, }: {
2
+ inputLabelType?: 'labelUp' | 'base' | 'secondary';
3
+ }) => import("react/jsx-runtime").JSX.Element;
2
4
  export default LostPasswordEmailForm;
@@ -43,10 +43,11 @@ var validation_1 = require("service/validation");
43
43
  var ModalContext_1 = require("context/logic/ModalContext");
44
44
  var selectors_1 = require("zustandStore/settings/selectors");
45
45
  var store_1 = require("zustandStore/settings/store");
46
- var styles = __importStar(require("./LostPasswordEmailForm.module.css"));
47
46
  var store_2 = require("zustandStore/forms/recovery/store");
48
47
  var selectors_2 = require("zustandStore/forms/recovery/selectors");
49
- var LostPasswordEmailForm = function () {
48
+ var styles = __importStar(require("./LostPasswordEmailForm.module.css"));
49
+ var LostPasswordEmailForm = function (_a) {
50
+ var inputLabelType = _a.inputLabelType;
50
51
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
51
52
  var appType = (0, store_1.useZustandKitSettings)(selectors_1.getKitAppTypeSelector);
52
53
  var sendCommand = useTransportControllers().sendCommand;
@@ -74,6 +75,8 @@ var LostPasswordEmailForm = function () {
74
75
  ]);
75
76
  setEmail({ value: value, errorText: errorText });
76
77
  };
77
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapper }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.enterEmail" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.email", size: "large", disabled: isRequestedCode, errorText: email.errorText, defaultValue: "", onChange: handleValidate, classes: styles.formInput }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: !email.errorText ? 'primary' : 'dark', handleClick: isShowTimer, disabled: Boolean(email.errorText) || Boolean(!email.value), size: "--button-full", buttonHeight: "--button-height-full", text: "recoveryPsw.getCodeBtn", classes: styles.formInput, centreText: true })] })));
78
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapper }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.enterEmail" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.email", size: "large", disabled: isRequestedCode, errorText: email.errorText, defaultValue: "", onChange: handleValidate, classes: styles.formInput, inputLabelType: inputLabelType, isHidePlaceholder: inputLabelType === 'secondary' }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: !email.errorText || inputLabelType === 'secondary'
79
+ ? 'primary'
80
+ : 'dark', handleClick: isShowTimer, disabled: Boolean(email.errorText) || Boolean(!email.value), size: "--button-full", buttonHeight: "--button-height-full", text: "recoveryPsw.getCodeBtn", classes: styles.formInput, centreText: true })] })));
78
81
  };
79
82
  exports.default = LostPasswordEmailForm;
@@ -1,2 +1,4 @@
1
- declare const MoreInfo: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const MoreInfo: ({ isThird }: {
2
+ isThird?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
2
4
  export default MoreInfo;
@@ -33,22 +33,27 @@ var __importStar = (this && this.__importStar) || function (mod) {
33
33
  __setModuleDefault(result, mod);
34
34
  return result;
35
35
  };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
36
39
  Object.defineProperty(exports, "__esModule", { value: true });
37
40
  var jsx_runtime_1 = require("react/jsx-runtime");
38
41
  var react_1 = require("react");
42
+ var classnames_1 = __importDefault(require("classnames"));
39
43
  var ArrowButton_1 = require("components/ui/Buttons/ArrowButton");
40
44
  var Text_1 = require("components/Text");
41
45
  var InfoThirdSvg_1 = require("components/ui/Icons/InfoThirdSvg");
42
46
  var selectors_1 = require("zustandStore/settings/selectors");
43
47
  var store_1 = require("zustandStore/settings/store");
44
48
  var styles = __importStar(require("./MoreInfo.module.css"));
45
- var MoreInfo = function () {
46
- var _a = (0, react_1.useState)(false), isOpened = _a[0], setOpenState = _a[1];
47
- var appType = (0, store_1.useZustandKitSettings)(selectors_1.getKitAppTypeSelector);
49
+ var MoreInfo = function (_a) {
50
+ var _b;
51
+ var isThird = _a.isThird;
52
+ var _c = (0, react_1.useState)(false), isOpened = _c[0], setOpenState = _c[1];
48
53
  var bannerImage = (0, store_1.useZustandKitSettings)(selectors_1.getKitRecoveryPhoneImageSelector);
49
54
  var handleToggleState = function () {
50
55
  setOpenState(!isOpened);
51
56
  };
52
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperMoreInfo, onClick: handleToggleState }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.left }, { children: [(0, jsx_runtime_1.jsx)(InfoThirdSvg_1.InfoThirdSvg, {}), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.mainInfo }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.moreInfo" }) }))] })), (0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { isOpened: isOpened, classes: styles.arrowButton })] })), isOpened && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.instructionsBlock }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.instruction }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.flashCallVerification" }) })), (0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage })] })))] })));
57
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperMoreInfo, onClick: handleToggleState }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.left }, { children: [(0, jsx_runtime_1.jsx)(InfoThirdSvg_1.InfoThirdSvg, { classes: (0, classnames_1.default)((_b = {}, _b[styles.third] = isThird, _b)) }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.mainInfo }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.moreInfo" }) }))] })), (0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { isOpened: isOpened, classes: styles.arrowButton })] })), isOpened && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.instructionsBlock }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.instruction }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.flashCallVerification" }) })), (0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage })] })))] })));
53
58
  };
54
59
  exports.default = MoreInfo;
@@ -1,2 +1,4 @@
1
- declare const LostPasswordPhoneForm: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const LostPasswordPhoneForm: ({ inputLabelType, }: {
2
+ inputLabelType?: 'labelUp' | 'base' | 'secondary';
3
+ }) => import("react/jsx-runtime").JSX.Element;
2
4
  export default LostPasswordPhoneForm;
@@ -39,12 +39,13 @@ var react_1 = require("react");
39
39
  var types_1 = require("react-memory-optimization/dist/lib/binary/types");
40
40
  var PhoneInput_1 = require("components/ui/Inputs/PhoneInput");
41
41
  var Text_1 = require("components/Text");
42
+ var store_1 = require("zustandStore/forms/recovery/store");
43
+ var selectors_1 = require("zustandStore/forms/recovery/selectors");
42
44
  var useHookFabric_1 = require("hooks/useHookFabric");
43
45
  var ModalContext_1 = require("context/logic/ModalContext");
44
46
  var styles = __importStar(require("./LostPasswordPhoneForm.module.css"));
45
- var store_1 = require("zustandStore/forms/recovery/store");
46
- var selectors_1 = require("zustandStore/forms/recovery/selectors");
47
- var LostPasswordPhoneForm = function () {
47
+ var LostPasswordPhoneForm = function (_a) {
48
+ var inputLabelType = _a.inputLabelType;
48
49
  // handleFlashCall
49
50
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
50
51
  var sendCommand = useTransportControllers().sendCommand;
@@ -53,7 +54,7 @@ var LostPasswordPhoneForm = function () {
53
54
  fn: useCountryInfo,
54
55
  });
55
56
  var setPhone = (0, store_1.useZustandRecoveryKitStore)(selectors_1.zustandRecoveryKitSelectors.setPhoneAction);
56
- var _a = (0, react_1.useState)(false), isRequestedCode = _a[0], setRequestedCodeStatus = _a[1];
57
+ var _b = (0, react_1.useState)(false), isRequestedCode = _b[0], setRequestedCodeStatus = _b[1];
57
58
  var callbackRequest = function () {
58
59
  setRequestedCodeStatus(true);
59
60
  };
@@ -61,7 +62,7 @@ var LostPasswordPhoneForm = function () {
61
62
  setPhone(data.value);
62
63
  sendCommand(key, data);
63
64
  };
64
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.enterPhone" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: true, isRecovery: true, requestId: types_1.ERequestIds.FlashCall, sendDataType: types_1.RecoverySubType.Phone, label: "recoveryPsw.phone", size: "large", section: 3, disabled: isRequestedCode, defaultValue: "",
65
+ return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.title }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.enterPhone" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { inputLabelType: inputLabelType, isHidePlaceholder: inputLabelType === 'secondary', withConfirm: true, isRecovery: true, requestId: types_1.ERequestIds.FlashCall, sendDataType: types_1.RecoverySubType.Phone, label: "recoveryPsw.phone", size: "large", section: 3, disabled: isRequestedCode, defaultValue: "",
65
66
  // Notice: onChange is not used here, because we set phone in requestCode
66
67
  onChange: console.info, requestCallback: callbackRequest, requestCode: requestCode, sendKey: "09x_flash_call", itemsClasses: styles.items, countryInfo: countryInfo, withInfo: true })] }));
67
68
  };
@@ -51,25 +51,32 @@ var selectors_1 = require("zustandStore/settings/selectors");
51
51
  var store_1 = require("zustandStore/settings/store");
52
52
  var store_2 = require("zustandStore/alerts/notification/store");
53
53
  var selectors_2 = require("zustandStore/alerts/notification/selectors");
54
+ var store_3 = require("zustandStore/alerts/modal/store");
55
+ var selectors_3 = require("zustandStore/alerts/modal/selectors");
56
+ var types_2 = require("zustandStore/forms/signUp/types");
54
57
  var useCountDown_1 = require("hooks/useCountDown");
55
58
  var ModalContext_1 = require("context/logic/ModalContext");
56
59
  var styles = __importStar(require("./NumberConfirmation.module.css"));
57
- var store_3 = require("zustandStore/forms/recovery/store");
58
- var selectors_3 = require("zustandStore/forms/recovery/selectors");
60
+ var store_4 = require("zustandStore/forms/recovery/store");
61
+ var selectors_4 = require("zustandStore/forms/recovery/selectors");
59
62
  var NumberConfirmation = function () {
63
+ var _a;
60
64
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
61
65
  var appType = (0, store_1.useZustandKitSettings)(selectors_1.getKitAppTypeSelector);
62
66
  var bannerImage = (0, store_1.useZustandKitSettings)(selectors_1.getKitRecoveryPhoneImageSelector);
63
67
  var notifications = (0, store_2.useZustandNotificationKitStore)(selectors_2.notificationKitSelectors.getNotificationsSelector);
68
+ var additionalSettings = (0, store_3.useZustandModalKitStore)(selectors_3.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
69
+ var _b = additionalSettings.registrationTheme, registrationTheme = _b === void 0 ? types_2.ESignUpTheme.BaseGreen : _b;
70
+ var regType = registrationTheme;
64
71
  var sendCommand = useTransportControllers().sendCommand;
65
- var _a = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), code = _a[0], setCode = _a[1];
72
+ var _c = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), code = _c[0], setCode = _c[1];
66
73
  var timerValue = (0, react_1.useRef)(new Date().getTime() + 90000);
67
74
  var countDown = (0, useCountDown_1.useCountDown)({
68
75
  endTimestamp: timerValue.current,
69
76
  });
70
77
  var isDev = (0, store_1.useZustandKitSettings)(selectors_1.getKitDevSelector);
71
78
  var timeRemaining = countDown.timeRemaining;
72
- var phone = (0, store_3.useZustandRecoveryKitStore)(selectors_3.zustandRecoveryKitSelectors.getPhoneSelector);
79
+ var phone = (0, store_4.useZustandRecoveryKitStore)(selectors_4.zustandRecoveryKitSelectors.getPhoneSelector);
73
80
  var submit = function () {
74
81
  sendCommand('31x_flash_call_code_check', {
75
82
  sms: isDev ? "".concat(55555) : code.value,
@@ -102,6 +109,11 @@ var NumberConfirmation = function () {
102
109
  });
103
110
  }
104
111
  }, [notifications]);
105
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperNumberConfirmation, styles.column) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.top, styles.column) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.mediumGap) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterDigits }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.enterDigits" }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.smallGap) }, { children: [(0, jsx_runtime_1.jsx)(InputCode_1.default, { errorText: code.errorText, handleChange: handleChange }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.time }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.seconds", specValue: "".concat(Math.round(timeRemaining / 1000)) }) }))] }))] }))] })), !timeRemaining && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.resendCode, onClick: handleResend }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.resendCode" }) }))), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "recoveryPsw.numberConfirmation.verify", handleClick: submit, size: "--button-full", buttonHeight: "--button-height-xl", color: "primary", centreText: true, disabled: code.value.length < constants_1.MAX_PHONE_CODE_LENGTH })] })));
112
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperNumberConfirmation, styles.column, (_a = {},
113
+ _a[styles.white] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseWhite,
114
+ _a[styles.whiteYellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow,
115
+ _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
116
+ _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
117
+ _a)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.top, styles.column) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: bannerImage, className: styles.instructionImage }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.mediumGap) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterDigits }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.enterDigits" }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.column, styles.center, styles.smallGap) }, { children: [(0, jsx_runtime_1.jsx)(InputCode_1.default, { errorText: code.errorText, handleChange: handleChange }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.time }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.seconds", specValue: "".concat(Math.round(timeRemaining / 1000)) }) }))] }))] }))] })), !timeRemaining && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.resendCode, onClick: handleResend }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.numberConfirmation.resendCode" }) }))), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: "recoveryPsw.numberConfirmation.verify", handleClick: submit, size: "--button-full", buttonHeight: "--button-height-xl", color: "primary", centreText: true, disabled: code.value.length < constants_1.MAX_PHONE_CODE_LENGTH })] })));
106
118
  };
107
119
  exports.NumberConfirmation = NumberConfirmation;
@@ -55,9 +55,15 @@ var LostPassword = function () {
55
55
  var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
56
56
  var registrationTheme = data.registrationTheme;
57
57
  var regType = registrationTheme;
58
+ var isThirdType = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow ||
59
+ types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple ||
60
+ types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue;
58
61
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapprLostePassword, (_a = {},
59
62
  _a[styles.yellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseYellow,
60
63
  _a[styles.white] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.BaseWhite,
61
- _a)) }, { children: [(0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeValue, data: constants_1.RECOVERY_TABS, onChange: setActiveValue, classes: styles.tabWrapper, type: "underline" }), activeValue === types_1.RecoveryFormType.Email && (0, jsx_runtime_1.jsx)(LostPasswordEmailForm_1.default, {}), activeValue === types_1.RecoveryFormType.Phone && (0, jsx_runtime_1.jsx)(LostPasswordPhoneForm_1.default, {})] })));
64
+ _a[styles.whiteYellow] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteYellow,
65
+ _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
66
+ _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
67
+ _a)) }, { children: [(0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeValue, data: constants_1.RECOVERY_TABS, onChange: setActiveValue, classes: styles.tabWrapper, type: "underline" }), activeValue === types_1.RecoveryFormType.Email && ((0, jsx_runtime_1.jsx)(LostPasswordEmailForm_1.default, { inputLabelType: isThirdType ? 'secondary' : undefined })), activeValue === types_1.RecoveryFormType.Phone && ((0, jsx_runtime_1.jsx)(LostPasswordPhoneForm_1.default, { inputLabelType: isThirdType ? 'secondary' : undefined }))] })));
62
68
  };
63
69
  exports.default = LostPassword;
@@ -48,19 +48,25 @@ var Text_1 = require("components/Text");
48
48
  var OpenEyeSvg_1 = require("components/ui/Icons/Base/OpenEyeSvg");
49
49
  var CloseEyeSvg_1 = require("components/ui/Icons/Base/CloseEyeSvg");
50
50
  var constant_1 = require("components/ui/Inputs/BaseInput/constant");
51
+ var store_1 = require("zustandStore/alerts/modal/store");
52
+ var selectors_1 = require("zustandStore/alerts/modal/selectors");
53
+ var types_2 = require("zustandStore/forms/signUp/types");
51
54
  var ModalContext_1 = require("context/logic/ModalContext");
52
55
  var validation_1 = require("service/validation");
53
56
  var styles = __importStar(require("./SetNewPasswordThree.module.css"));
54
57
  var SetNewPasswordThree = function () {
55
- var _a, _b;
58
+ var _a, _b, _c;
56
59
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
57
60
  var sendCommand = useTransportControllers().sendCommand;
58
- var _c = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), newPassword = _c[0], setNewPassword = _c[1];
59
- var _d = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), repeatedPassword = _d[0], setRepeatedPassword = _d[1];
60
- var _e = (0, react_1.useState)({
61
+ var _d = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), newPassword = _d[0], setNewPassword = _d[1];
62
+ var _e = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), repeatedPassword = _e[0], setRepeatedPassword = _e[1];
63
+ var _f = (0, react_1.useState)({
61
64
  newPassword: 'password',
62
65
  repeatedPassword: 'password',
63
- }), inputTypes = _e[0], setInputTypes = _e[1];
66
+ }), inputTypes = _f[0], setInputTypes = _f[1];
67
+ var data = (0, store_1.useZustandModalKitStore)(selectors_1.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
68
+ var registrationTheme = data.registrationTheme;
69
+ var regType = registrationTheme;
64
70
  var handleApplyPsw = function () {
65
71
  sendCommand('21x', {
66
72
  newPassword: newPassword.value,
@@ -104,17 +110,20 @@ var SetNewPasswordThree = function () {
104
110
  !repeatedPassword.value ||
105
111
  Boolean(newPassword.errorText || repeatedPassword.errorText) ||
106
112
  newPassword.value !== repeatedPassword.value;
107
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperNewPassword }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterPassword }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.newPassword.enterPassword" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: "recoveryPsw.newPassword.newPassword", size: "full", onChange: validateValuePassword('newPassword'), type: inputTypes.newPassword, inputWrapperClasses: (0, classnames_1.default)((_a = {},
108
- _a[styles.errorBorder] = newPassword.errorText,
109
- _a)) }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [newPassword.value && inputTypes.newPassword === 'text' && ((0, jsx_runtime_1.jsx)(OpenEyeSvg_1.OpenEyeSvg, { handleClick: handleSetInputType({
113
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperNewPassword, (_a = {},
114
+ _a[styles.whiteBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
115
+ _a[styles.whitePurple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
116
+ _a)) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.enterPassword }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "recoveryPsw.newPassword.enterPassword" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: "recoveryPsw.newPassword.newPassword", size: "full", onChange: validateValuePassword('newPassword'), type: inputTypes.newPassword, isHidePlaceholder: true, inputLabelType: "secondary", inputWrapperClasses: (0, classnames_1.default)((_b = {},
117
+ _b[styles.errorBorder] = newPassword.errorText,
118
+ _b)) }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [newPassword.value && inputTypes.newPassword === 'text' && ((0, jsx_runtime_1.jsx)(OpenEyeSvg_1.OpenEyeSvg, { handleClick: handleSetInputType({
110
119
  field: 'newPassword',
111
120
  type: 'password',
112
121
  }) })), newPassword.value && inputTypes.newPassword === 'password' && ((0, jsx_runtime_1.jsx)(CloseEyeSvg_1.CloseEyeSvg, { handleClick: handleSetInputType({
113
122
  field: 'newPassword',
114
123
  type: 'text',
115
- }) }))] }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: "recoveryPsw.newPassword.repeatPassword", size: "full", onChange: validateValuePassword('repeatedPassword'), type: inputTypes.repeatedPassword, inputWrapperClasses: (0, classnames_1.default)((_b = {},
116
- _b[styles.errorBorder] = repeatedPassword.errorText,
117
- _b)) }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [repeatedPassword.value && inputTypes.repeatedPassword === 'text' && ((0, jsx_runtime_1.jsx)(OpenEyeSvg_1.OpenEyeSvg, { handleClick: handleSetInputType({
124
+ }) }))] }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: "recoveryPsw.newPassword.repeatPassword", size: "full", onChange: validateValuePassword('repeatedPassword'), type: inputTypes.repeatedPassword, inputLabelType: "secondary", isHidePlaceholder: true, inputWrapperClasses: (0, classnames_1.default)((_c = {},
125
+ _c[styles.errorBorder] = repeatedPassword.errorText,
126
+ _c)) }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [repeatedPassword.value && inputTypes.repeatedPassword === 'text' && ((0, jsx_runtime_1.jsx)(OpenEyeSvg_1.OpenEyeSvg, { handleClick: handleSetInputType({
118
127
  field: 'repeatedPassword',
119
128
  type: 'password',
120
129
  }) })), repeatedPassword.value &&