react-gldn-kit 0.1.110 → 0.1.111

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 (36) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/components/Banners/index.js +1 -1
  3. package/dist/lib/components/CasinoSearchBlock/components/CasinoSearchInput/index.d.ts +6 -0
  4. package/dist/lib/components/CasinoSearchBlock/components/CasinoSearchInput/index.js +56 -0
  5. package/dist/lib/components/CasinoSearchBlock/index.d.ts +2 -0
  6. package/dist/lib/components/CasinoSearchBlock/index.js +54 -0
  7. package/dist/lib/components/CasinoSearchBlock/types.d.ts +5 -0
  8. package/dist/lib/components/CasinoSearchBlock/types.js +2 -0
  9. package/dist/lib/components/Layouts/ModalLayout/index.js +2 -2
  10. package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/index.d.ts +3 -1
  11. package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/index.js +21 -18
  12. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/components/Forms/EmailSignUp/index.js +9 -21
  13. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/components/Forms/OneClickKit/index.js +0 -1
  14. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/index.d.ts +3 -1
  15. package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/index.js +21 -16
  16. package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/EmailConfirmation/index.js +2 -2
  17. package/dist/lib/components/Modals/Alert/index.js +3 -15
  18. package/dist/lib/components/ui/Buttons/ArrowButton/index.js +1 -0
  19. package/dist/lib/components/ui/Headers/PopUpHeader/types.d.ts +1 -0
  20. package/dist/lib/components/ui/Icons/Base/SecondSearchSvg.d.ts +2 -0
  21. package/dist/lib/components/ui/Icons/Base/SecondSearchSvg.js +20 -0
  22. package/dist/lib/components/ui/Icons/FlagIcons/WorldSvg.js +1 -1
  23. package/dist/lib/index.d.ts +6 -1
  24. package/dist/lib/index.js +19 -9
  25. package/dist/lib/zustandStore/search/selectors.d.ts +6 -0
  26. package/dist/lib/zustandStore/search/selectors.js +14 -0
  27. package/dist/lib/zustandStore/search/store.d.ts +2 -0
  28. package/dist/lib/zustandStore/search/store.js +10 -0
  29. package/dist/lib/zustandStore/search/types.d.ts +7 -0
  30. package/dist/lib/zustandStore/search/types.js +2 -0
  31. package/dist/lib/zustandStore/settings/selectors.d.ts +4 -0
  32. package/dist/lib/zustandStore/settings/selectors.js +5 -1
  33. package/dist/lib/zustandStore/settings/store.js +4 -0
  34. package/dist/lib/zustandStore/settings/types.d.ts +4 -0
  35. package/dist/main.css +949 -768
  36. package/package.json +7 -3
@@ -79,7 +79,7 @@ var Banners = function (props) {
79
79
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.emblaSlide, (_a = {},
80
80
  _a[styles.half] = backgroundSliderType === types_1.EBackgroundSliderType.Half,
81
81
  _a[styles.full] = backgroundSliderType === types_1.EBackgroundSliderType.Full,
82
- _a)) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.emblaSlideContent, onClick: handleClick(adaptedBanner.id) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.emblaSlideContentText }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.title, titleClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: adaptedBanner.text }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.subTitle, subTitleClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: adaptedBanner.subTitle }) }))] }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: adaptedBanner.buttonText, handleClick: console.info, size: "--button-m", isResized: true, buttonHeight: "--button-height-l", color: "primary", centreText: true })] })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: path, classes: styles.image })] })) }), index));
82
+ _a)) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.emblaSlideContent, onClick: handleClick(adaptedBanner.id) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.emblaSlideContentText }, { children: [(0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.title, titleClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: adaptedBanner.text }) })), (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.subTitle, subTitleClasses) }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: adaptedBanner.subTitle }) }))] }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { text: adaptedBanner.buttonText, handleClick: console.info, size: "--button-xl", isResized: true, buttonHeight: "--button-height-l", color: "primary", centreText: true, classes: styles.bannerButton })] })), (0, jsx_runtime_1.jsx)(Image_1.Image, { path: path, classes: styles.image })] })) }), index));
83
83
  }) })) })) })), isProgress && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.emblaProgress }, { children: (0, jsx_runtime_1.jsx)("div", { className: styles.emblaProgressBar, style: { transform: "translate3d(".concat(scrollProgress, "%,0px,0px)") } }) })))] }));
84
84
  };
85
85
  exports.Banners = Banners;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ classes?: string;
3
+ onChange?: (s: string) => void;
4
+ };
5
+ export declare const CasinoSearchInput: ({ classes, onChange, }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CasinoSearchInput = void 0;
38
+ var jsx_runtime_1 = require("react/jsx-runtime");
39
+ var react_1 = require("react");
40
+ var BaseInput_1 = require("components/ui/Inputs/BaseInput");
41
+ var SecondSearchSvg_1 = require("components/ui/Icons/Base/SecondSearchSvg");
42
+ var store_1 = require("zustandStore/search/store");
43
+ var selectors_1 = require("zustandStore/search/selectors");
44
+ var styles = __importStar(require("./CasinoSearchInput.module.css"));
45
+ var CasinoSearchInput = function (_a) {
46
+ var classes = _a.classes, onChange = _a.onChange;
47
+ var setSearchValue = (0, store_1.useZustandCasinoSearchKitStore)(selectors_1.searchSelectors.setCasinoSearchValueAction);
48
+ var handleChange = function (v) {
49
+ onChange === null || onChange === void 0 ? void 0 : onChange(v);
50
+ };
51
+ (0, react_1.useEffect)(function () { return function () {
52
+ setSearchValue('');
53
+ }; }, []);
54
+ return ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ size: "full", isHidePlaceholder: true, label: "search", onChange: onChange ? handleChange : setSearchValue, classes: classes, inputWrapperClasses: styles.inputCasinoSearch, inputLabelType: "secondary" }, { children: (0, jsx_runtime_1.jsx)(SecondSearchSvg_1.SecondSearchSvg, { classes: styles.searchIcon }) })));
55
+ };
56
+ exports.CasinoSearchInput = CasinoSearchInput;
@@ -0,0 +1,2 @@
1
+ import { CasinoSearchBlockProps } from './types';
2
+ export declare const CasinoSearchBlock: (props: CasinoSearchBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CasinoSearchBlock = void 0;
38
+ var jsx_runtime_1 = require("react/jsx-runtime");
39
+ var CloseSecondSvg_1 = require("../ui/Icons/CloseSecondSvg");
40
+ var Text_1 = require("components/Text");
41
+ var CasinoSearchInput_1 = require("./components/CasinoSearchInput");
42
+ var selectors_1 = require("zustandStore/device/selectors");
43
+ var store_1 = require("zustandStore/device/store");
44
+ var selectors_2 = require("zustandStore/search/selectors");
45
+ var store_2 = require("zustandStore/search/store");
46
+ var styles = __importStar(require("./CasinoSearchBlock.module.css"));
47
+ var CasinoSearchBlock = function (props) {
48
+ var toggleSearchState = props.toggleSearchState, children = props.children;
49
+ var search = (0, store_2.useZustandCasinoSearchKitStore)(selectors_2.getCasinoSearchValueSelector);
50
+ var isMobile = (0, store_1.useZustandDeviceKitStore)(selectors_1.zustandDeviceKitSelector.isMobileDeviceSelector);
51
+ var isSearchLengthCorrect = search.length >= 3;
52
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.isOpenedSearchInput }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.inputBox }, { children: [(0, jsx_runtime_1.jsx)(CasinoSearchInput_1.CasinoSearchInput, {}), isMobile && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.closeSearch }, { children: (0, jsx_runtime_1.jsx)(CloseSecondSvg_1.CloseSecondSvg, { classes: styles.closeSearchIcon, handleClick: toggleSearchState }) })))] })), !!search && !isSearchLengthCorrect && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.searchRules }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "searchRules" }) }))), isSearchLengthCorrect && children] })));
53
+ };
54
+ exports.CasinoSearchBlock = CasinoSearchBlock;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export type CasinoSearchBlockProps = {
3
+ toggleSearchState: () => void;
4
+ children: React.ReactNode;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -46,7 +46,7 @@ var ModalContent_1 = require("./component/ModalContent");
46
46
  var styles = __importStar(require("./ModalLayout.module.css"));
47
47
  var ModalLayout = function (props) {
48
48
  var children = props.children, classes = props.classes, popUpHeaderProps = props.popUpHeaderProps, modalLayoutClasses = props.modalLayoutClasses, modalContentClasses = props.modalContentClasses;
49
- var title = popUpHeaderProps.title, closeButton = popUpHeaderProps.closeButton, titleClasses = popUpHeaderProps.titleClasses;
50
- return ((0, jsx_runtime_1.jsx)(PortalLayout_1.PortalLayout, __assign({ classes: classes }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperModalLayout, modalLayoutClasses) }, { children: [(closeButton || title) && ((0, jsx_runtime_1.jsx)(Headers_1.PopUpHeader, __assign({}, (popUpHeaderProps || { title: ' ' }), { closeButton: closeButton, classes: (0, classnames_1.default)((popUpHeaderProps === null || popUpHeaderProps === void 0 ? void 0 : popUpHeaderProps.classes) || '', styles.overflow), titleClasses: titleClasses }))), (0, jsx_runtime_1.jsx)(ModalContent_1.ModalContent, __assign({ classes: modalContentClasses }, { children: children }))] })) })));
49
+ var title = popUpHeaderProps.title, closeButton = popUpHeaderProps.closeButton, titleClasses = popUpHeaderProps.titleClasses, _a = popUpHeaderProps.isHidden, isHidden = _a === void 0 ? false : _a;
50
+ return ((0, jsx_runtime_1.jsx)(PortalLayout_1.PortalLayout, __assign({ classes: classes }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperModalLayout, modalLayoutClasses) }, { children: [!isHidden && (closeButton || title) && ((0, jsx_runtime_1.jsx)(Headers_1.PopUpHeader, __assign({}, (popUpHeaderProps || { title: ' ' }), { closeButton: closeButton, classes: (0, classnames_1.default)((popUpHeaderProps === null || popUpHeaderProps === void 0 ? void 0 : popUpHeaderProps.classes) || '', styles.overflow), titleClasses: titleClasses }))), (0, jsx_runtime_1.jsx)(ModalContent_1.ModalContent, __assign({ classes: modalContentClasses }, { children: children }))] })) })));
51
51
  };
52
52
  exports.ModalLayout = ModalLayout;
@@ -1 +1,3 @@
1
- export declare const SignInThird: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SignInThird: ({ isPage }: {
2
+ isPage?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -67,8 +67,9 @@ var types_4 = require("zustandStore/forms/signUp/types");
67
67
  var utils_1 = require("zustandStore/forms/signUp/utils");
68
68
  var ModalContext_1 = require("context/logic/ModalContext");
69
69
  var styles = __importStar(require("./SignInThird.module.css"));
70
- var SignInThird = function () {
71
- var _a;
70
+ var SignInThird = function (_a) {
71
+ var _b;
72
+ var _c = _a.isPage, isPage = _c === void 0 ? false : _c;
72
73
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
73
74
  var appType = (0, store_3.useZustandKitSettings)(selectors_3.getKitAppTypeSelector);
74
75
  var isMobile = (0, store_4.useZustandDeviceKitStore)(selectors_4.zustandDeviceKitSelector.isMobileDeviceSelector);
@@ -77,12 +78,16 @@ var SignInThird = function () {
77
78
  var setAuthFormType = (0, store_1.useZustandSignInKitStore)(selectors_1.zustandSignInKitSelectors.setActiveSignInFormAction);
78
79
  var closeAndOpen = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.closeAndOpenModalAction);
79
80
  var additionalSettings = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
80
- var registrationTheme = additionalSettings.registrationTheme, _b = additionalSettings.bonusImagePath, bonusImagePath = _b === void 0 ? '' : _b;
81
+ var bannerImage = (0, store_3.useZustandKitSettings)(selectors_3.getKitRegBannerImageSelector);
82
+ var currentBannerImage = isMobile
83
+ ? bannerImage.mobile
84
+ : bannerImage.desktop;
85
+ var registrationTheme = additionalSettings.registrationTheme, _d = additionalSettings.bonusImagePath, bonusImagePath = _d === void 0 ? '' : _d, preventClose = additionalSettings.preventClose;
81
86
  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];
87
+ var _e = (0, react_1.useState)(''), password = _e[0], setPassword = _e[1];
88
+ var _f = (0, react_1.useState)(''), email = _f[0], setEmail = _f[1];
89
+ var _g = (0, react_1.useState)(''), id = _g[0], setId = _g[1];
90
+ var _h = (0, react_1.useState)(''), phone = _h[0], setPhone = _h[1];
86
91
  var handleSignIn = function () {
87
92
  var logInInfo = activeForm === types_3.EAuthFormType.Phone ? phone : email;
88
93
  if (activeForm === types_3.EAuthFormType.UserName) {
@@ -96,7 +101,7 @@ var SignInThird = function () {
96
101
  e.preventDefault();
97
102
  e.stopPropagation();
98
103
  closeAndOpen(t, {
99
- preventClose: t === types_2.EModalTypes.SignUpThree,
104
+ preventClose: preventClose,
100
105
  registrationTheme: registrationTheme,
101
106
  bonusImagePath: bonusImagePath,
102
107
  });
@@ -114,19 +119,17 @@ var SignInThird = function () {
114
119
  var handleOpenSignUp = function () {
115
120
  closeAndOpen(types_2.EModalTypes.SignUpThree, __assign({}, additionalSettings));
116
121
  };
117
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralCopyContent, (_a = {},
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)"),
122
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralCopyContent, (_b = {},
123
+ _b[styles.purple] = types_4.ESignUpTheme[regType] === types_4.ESignUpTheme.WhitePurple,
124
+ _b[styles.lightBlue] = types_4.ESignUpTheme[regType] === types_4.ESignUpTheme.WhiteBlue,
125
+ _b[styles.page] = isPage,
126
+ _b)) }, { 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: {
127
+ backgroundImage: bonusImagePath || currentBannerImage,
123
128
  backgroundPosition: 'center',
124
129
  backgroundSize: '100% 100%',
125
130
  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)"),
131
+ } }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.title" }), !isPage && ((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: {
132
+ backgroundImage: isMobile ? bonusImagePath : currentBannerImage,
130
133
  backgroundPosition: 'top',
131
134
  backgroundSize: '100% 100%',
132
135
  backgroundRepeat: 'no-repeat',
@@ -52,6 +52,7 @@ var CountrySelector_1 = require("components/SignUp/CountrySelector");
52
52
  var OpenEyeSecondSvg_1 = require("components/ui/Icons/Base/OpenEyeSecondSvg");
53
53
  var ClosedEyeSecondSvg_1 = require("components/ui/Icons/Base/ClosedEyeSecondSvg");
54
54
  var PromocodeInput_1 = require("../../PromocodeInput");
55
+ var PasswordInput_1 = __importDefault(require("components/ui/Inputs/PasswordInput"));
55
56
  var constant_1 = require("components/ui/Inputs/BaseInput/constant");
56
57
  var store_1 = require("zustandStore/forms/signUp/store");
57
58
  var selectors_1 = require("zustandStore/forms/signUp/selectors");
@@ -67,10 +68,11 @@ var EmailSignUp = function (props) {
67
68
  var countryInfo = props.countryInfo, _a = props.isSelected, isSelected = _a === void 0 ? false : _a, handleRegistration = props.handleRegistration, availableCurrencies = props.availableCurrencies, classes = props.classes, labelClasses = props.labelClasses;
68
69
  var _b = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), email = _b[0], setEmail = _b[1];
69
70
  // const docs = useZustandWebConfiguration(getDocsSelector) || {};
70
- var _c = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), password = _c[0], setPassword = _c[1];
71
+ var _c = (0, react_1.useState)(''), password = _c[0], setPassword = _c[1];
71
72
  var _d = (0, react_1.useState)(''), promoCode = _d[0], setPromoCode = _d[1];
72
73
  var _e = (0, react_1.useState)('password'), passwordInputType = _e[0], setPasswordInputType = _e[1];
73
74
  var setRegisteredLogin = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.setRegisteredLoginAction);
75
+ var activeCountryId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCountryIdSelector);
74
76
  var activeCurrencyId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCurrencyIdSelector);
75
77
  var activeLang = (0, store_2.useZustandLanguagesKitStore)(selectors_2.languageSelectors.getActiveLanguageNameKitSelector);
76
78
  var isConnectedApp = (0, store_3.useZustandConnectionKitStore)(selectors_3.connectionSelectors.isAvailableTransportSelector);
@@ -80,45 +82,31 @@ var EmailSignUp = function (props) {
80
82
  return Boolean(!activeCurrencyId ||
81
83
  !email.value ||
82
84
  email.errorText ||
83
- !password.value ||
84
- password.errorText ||
85
+ !password ||
85
86
  !terms ||
86
87
  !isConnectedApp ||
87
88
  !age);
88
89
  }, [activeCurrencyId, email, password, terms]);
89
- var handleChange = function (t) { return function (value) {
90
- if (t === 'password') {
91
- var errorText = (0, validation_1.composeValidations)([
92
- (0, validation_1.isPassword)({
93
- value: value,
94
- errorText: ['errors.passwordMin', 'errors.passwordMax'],
95
- }),
96
- ]);
97
- setPassword({
98
- value: value,
99
- errorText: errorText,
100
- });
101
- return;
102
- }
90
+ var handleChange = function (value) {
103
91
  var emailResponse = (0, validation_1.isEmail)({
104
92
  value: value,
105
93
  errorText: 'errors.email',
106
94
  })();
107
95
  setEmail(emailResponse);
108
- }; };
96
+ };
109
97
  var handleSubmitForm = function () {
110
98
  if (!activeCurrencyId) {
111
99
  return;
112
100
  }
113
101
  var sendData = (0, utils_1.getRegistrationData)({
114
102
  registrationType: types_1.RegistrationSubType.Email,
115
- countryId: 0,
103
+ countryId: activeCountryId,
116
104
  currencyId: activeCurrencyId,
117
105
  promoCode: promoCode,
118
106
  countryName: '', // TODO back not validate this value
119
107
  });
120
108
  setRegisteredLogin(email.value);
121
- handleRegistration(promoCode ? '06x_with_promo' : '06x', __assign(__assign({}, sendData), { email: email.value, password: password.value, letters: 0 }));
109
+ handleRegistration(promoCode ? '06x_with_promo' : '06x', __assign(__assign({}, sendData), { email: email.value, password: password, letters: 0 }));
122
110
  };
123
111
  var handleToggleState = function (t) { return function () {
124
112
  if (t === 'terms') {
@@ -149,6 +137,6 @@ var EmailSignUp = function (props) {
149
137
  var clearPromoCode = function () {
150
138
  setPromoCode('');
151
139
  };
152
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: stylesEmailSignUp.animationFadeIn }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.email", size: "full", isHidePlaceholder: true, onChange: handleChange('email'), errorText: email.errorText, classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.inputSize }), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), errorText: password.errorText, classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.inputSize, type: passwordInputType }, { children: passwordInputType === 'text' ? ((0, jsx_runtime_1.jsx)(OpenEyeSecondSvg_1.OpenEyeSecondSvg, { handleClick: handleChangePasswordType('password') })) : ((0, jsx_runtime_1.jsx)(ClosedEyeSecondSvg_1.ClosedEyeSecondSvg, { handleClick: handleChangePasswordType('text') })) })), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: classes, dropdownClasses: styles.dropdown, classesItem: stylesEmailSignUp.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: stylesEmailSignUp.dropdown, classesItem: stylesEmailSignUp.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(PromocodeInput_1.PromocodeInput, { value: promoCode, handleChange: handleChangePromoCode, clearValue: clearPromoCode }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, age: age, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "06x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: "registrations.submitBtn", disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(stylesEmailSignUp.authButton, classes) }) }))] })));
140
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: stylesEmailSignUp.animationFadeIn }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.email", size: "full", isHidePlaceholder: true, onChange: handleChange, errorText: email.errorText, classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.inputSize }), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, __assign({ label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: setPassword, classes: (0, classnames_1.default)(styles.marginB, classes), labelClasses: labelClasses, inputLabelType: "secondary", inputClasses: styles.inputSize, type: passwordInputType }, { children: passwordInputType === 'text' ? ((0, jsx_runtime_1.jsx)(OpenEyeSecondSvg_1.OpenEyeSecondSvg, { handleClick: handleChangePasswordType('password') })) : ((0, jsx_runtime_1.jsx)(ClosedEyeSecondSvg_1.ClosedEyeSecondSvg, { handleClick: handleChangePasswordType('text') })) })), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: classes, dropdownClasses: styles.dropdown, classesItem: stylesEmailSignUp.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: stylesEmailSignUp.dropdown, classesItem: stylesEmailSignUp.selectorMainItem, type: "secondary" }), (0, jsx_runtime_1.jsx)(PromocodeInput_1.PromocodeInput, { value: promoCode, handleChange: handleChangePromoCode, clearValue: clearPromoCode }), (0, jsx_runtime_1.jsx)(DocsCheckBox_1.DocsCheckBox, { terms: terms, age: age, handleOpenDoc: handleOpenDoc, handleToggleState: handleToggleState }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "06x", requestId: types_1.ERequestIds.Registration, customLoader: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) }, { children: (0, jsx_runtime_1.jsx)(BaseButton_1.BaseButton, { text: "registrations.submitBtn", disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(stylesEmailSignUp.authButton, classes) }) }))] })));
153
141
  };
154
142
  exports.EmailSignUp = EmailSignUp;
@@ -61,7 +61,6 @@ var OneClickKit = function (props) {
61
61
  var isSelected = props.isSelected, handleRegistration = props.handleRegistration, _a = props.translates, translates = _a === void 0 ? constants_1.BASE_TRANSLATE_KEYS : _a, availableCurrencies = props.availableCurrencies, countryInfo = props.countryInfo, classes = props.classes, labelClasses = props.labelClasses;
62
62
  var activeCountryId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCountryIdSelector);
63
63
  var activeLang = (0, store_2.useZustandLanguagesKitStore)(selectors_2.languageSelectors.getActiveLanguageNameKitSelector);
64
- var setActiveCountryId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.setActiveCountryIdAction);
65
64
  var _b = (0, react_1.useState)(isSelected), terms = _b[0], setTermsState = _b[1];
66
65
  var _c = (0, react_1.useState)(isSelected), age = _c[0], setAgeState = _c[1];
67
66
  var _d = (0, react_1.useState)(''), promoCode = _d[0], setPromoCode = _d[1];
@@ -1 +1,3 @@
1
- export declare const SignUpTypeThree: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const SignUpTypeThree: ({ isPage }: {
2
+ isPage?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -61,9 +61,10 @@ var ModalContext_1 = require("context/logic/ModalContext");
61
61
  var Tabs_1 = require("components/ui/Tabs");
62
62
  var selectors_4 = require("zustandStore/settings/selectors");
63
63
  var store_4 = require("zustandStore/settings/store");
64
- var SignUpTypeThree = function () {
65
- var _a;
66
- var _b = (0, ModalContext_1.useHookProvider)(), useCurrencies = _b.useCurrencies, useTransportControllers = _b.useTransportControllers, useCountryInfo = _b.useCountryInfo, sendRegistrationCommand = _b.sendRegistrationCommand;
64
+ var SignUpTypeThree = function (_a) {
65
+ var _b;
66
+ var _c = _a.isPage, isPage = _c === void 0 ? false : _c;
67
+ var _d = (0, ModalContext_1.useHookProvider)(), useCurrencies = _d.useCurrencies, useTransportControllers = _d.useTransportControllers, useCountryInfo = _d.useCountryInfo, sendRegistrationCommand = _d.sendRegistrationCommand;
67
68
  var appType = (0, store_4.useZustandKitSettings)(selectors_4.getKitAppTypeSelector);
68
69
  var sendCommand = useTransportControllers().sendCommand;
69
70
  var availableCurrencies = (0, useHookFabric_1.useHookFabric)({
@@ -75,11 +76,15 @@ var SignUpTypeThree = function () {
75
76
  var activeForm = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveRegistrationFormSelector);
76
77
  var setActiveForm = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
77
78
  var closeAndOpen = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.closeAndOpenModalAction);
78
- var additionalSettings = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
79
- var _c = additionalSettings.registrationTheme, registrationTheme = _c === void 0 ? types_2.ESignUpTheme.WhiteYellow : _c, _d = additionalSettings.promotionImagePath, promotionImagePath = _d === void 0 ? '' : _d, _e = additionalSettings.flow, flow = _e === void 0 ? types_2.ERegistrationFlow.Socket : _e, _f = additionalSettings.bonusImagePath, bonusImagePath = _f === void 0 ? '' : _f, _g = additionalSettings.isFullView, isFullView = _g === void 0 ? false : _g;
80
- var regType = registrationTheme;
81
79
  var isMobile = (0, store_3.useZustandDeviceKitStore)(selectors_3.zustandDeviceKitSelector.isMobileDeviceSelector);
82
80
  var tabs = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getRegistrationTabsSelector);
81
+ var bannerImage = (0, store_4.useZustandKitSettings)(selectors_4.getKitRegBannerImageSelector);
82
+ var currentBannerImage = isMobile
83
+ ? bannerImage.mobile
84
+ : bannerImage.desktop;
85
+ var additionalSettings = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
86
+ var _e = additionalSettings.registrationTheme, registrationTheme = _e === void 0 ? types_2.ESignUpTheme.WhiteYellow : _e, _f = additionalSettings.promotionImagePath, promotionImagePath = _f === void 0 ? '' : _f, _g = additionalSettings.flow, flow = _g === void 0 ? types_2.ERegistrationFlow.Socket : _g, _h = additionalSettings.bonusImagePath, bonusImagePath = _h === void 0 ? '' : _h, _j = additionalSettings.isFullView, isFullView = _j === void 0 ? false : _j, preventClose = additionalSettings.preventClose;
87
+ var regType = registrationTheme;
83
88
  // const docs: any = {};
84
89
  // const lang = useZustandLanguagesKitStore(
85
90
  // languageSelectors.getActiveLanguageNameKitSelector
@@ -87,9 +92,10 @@ var SignUpTypeThree = function () {
87
92
  var countryId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCountryIdSelector);
88
93
  var handleOpenSignIn = function () {
89
94
  closeAndOpen(types_1.EModalTypes.SignInThree, {
90
- preventClose: true,
95
+ preventClose: preventClose,
91
96
  registrationTheme: registrationTheme,
92
97
  bonusImagePath: bonusImagePath,
98
+ isHidden: true,
93
99
  });
94
100
  };
95
101
  var openPopUp = function (type) { return function () {
@@ -117,18 +123,17 @@ var SignUpTypeThree = function () {
117
123
  baseTabs = baseTabs.filter(function (t) { return t.value !== types_2.ERegistrationForm.Phone; });
118
124
  }
119
125
  }, [tabs, countryId]);
120
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperSignUpModal, (_a = {},
121
- _a[styles.purple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
122
- _a[styles.lightBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
123
- _a)), style: { maxWidth: !isMobile ? 960 : '' } }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.leftSide }, { children: [isFullView && ((0, jsx_runtime_1.jsx)(Logos_1.Logo, { isMobile: isMobile, classes: styles.logo, appType: appType })), (0, jsx_runtime_1.jsx)("div", { className: styles.banner, style: {
124
- backgroundImage: bonusImagePath ||
125
- "url(/landings/assets-builder/signUpThree/".concat(appType, "/mob.png)"),
126
+ return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperSignUpModal, (_b = {},
127
+ _b[styles.purple] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhitePurple,
128
+ _b[styles.lightBlue] = types_2.ESignUpTheme[regType] === types_2.ESignUpTheme.WhiteBlue,
129
+ _b[styles.page] = isPage,
130
+ _b)) }, { children: [(0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.leftSide }, { children: [isFullView && ((0, jsx_runtime_1.jsx)(Logos_1.Logo, { isMobile: isMobile, classes: styles.logo, appType: appType })), (0, jsx_runtime_1.jsx)("div", { className: styles.banner, style: {
131
+ backgroundImage: promotionImagePath || currentBannerImage,
126
132
  backgroundPosition: 'center',
127
133
  backgroundSize: '100% 100%',
128
134
  backgroundRepeat: 'no-repeat',
129
- } }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpThree.title" }), !(additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.preventClose) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.close, onClick: openPopUp(types_1.EModalTypes.Unknown) }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.closeIcon }) })))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, tabClasses: styles.tab, type: "underline" })), (0, jsx_runtime_1.jsx)("div", { className: styles.dash }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subTitle, onClick: handleOpenSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpThree.description" }) })), activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRequestCodeRegistration, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRequestCodeRegistration, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label }))] }))] })), (0, jsx_runtime_1.jsx)("div", { className: styles.rightSide, style: {
130
- backgroundImage: promotionImagePath ||
131
- "url(/landings/assets-builder/signUpThree/".concat(appType, "/desk.png)"),
135
+ } }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.title }, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpThree.title" }), !(additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.preventClose) || !isPage && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.close, onClick: openPopUp(types_1.EModalTypes.Unknown) }, { children: (0, jsx_runtime_1.jsx)(CrossSvg_1.CrossSvg, { classes: styles.closeIcon }) })))] })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperTabsAndForm }, { children: [activeForm !== null && tabs.length !== 1 && ((0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, data: tabs, onChange: setActiveForm, classes: styles.tabs, tabClasses: styles.tab, type: "underline" })), (0, jsx_runtime_1.jsx)("div", { className: styles.dash }), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subTitle, onClick: handleOpenSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signUpThree.description" }) })), activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRequestCodeRegistration, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRequestCodeRegistration, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand, countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], classes: styles.marginBottom, labelClasses: styles.label }))] }))] })), (0, jsx_runtime_1.jsx)("div", { className: styles.rightSide, style: {
136
+ backgroundImage: promotionImagePath || currentBannerImage,
132
137
  backgroundPosition: 'top',
133
138
  backgroundSize: '100% 100%',
134
139
  backgroundRepeat: 'no-repeat',
@@ -53,12 +53,12 @@ var selectors_1 = require("zustandStore/alerts/notification/selectors");
53
53
  var selectors_2 = require("zustandStore/settings/selectors");
54
54
  var store_3 = require("zustandStore/alerts/modal/store");
55
55
  var selectors_3 = require("zustandStore/alerts/modal/selectors");
56
+ var selectors_4 = require("zustandStore/forms/recovery/selectors");
57
+ var store_4 = require("zustandStore/forms/recovery/store");
56
58
  var types_2 = require("zustandStore/forms/signUp/types");
57
59
  var ModalContext_1 = require("context/logic/ModalContext");
58
60
  var useCountDown_1 = require("hooks/useCountDown");
59
61
  var styles = __importStar(require("./EmailConfirmation.module.css"));
60
- var selectors_4 = require("zustandStore/forms/recovery/selectors");
61
- var store_4 = require("zustandStore/forms/recovery/store");
62
62
  var EmailConfirmation = function () {
63
63
  var _a;
64
64
  var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
@@ -183,23 +183,11 @@ var EmailConfirmation = (0, react_1.lazy)(function () { return __awaiter(void 0,
183
183
  case 1: return [2 /*return*/, _a.sent()];
184
184
  }
185
185
  }); }); });
186
- var AuthFourth = (0, react_1.lazy)(function () { return __awaiter(void 0, void 0, void 0, function () {
187
- var _a;
188
- return __generator(this, function (_b) {
189
- switch (_b.label) {
190
- case 0:
191
- _a = {};
192
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require('./components/Auth/Fourth')); })];
193
- case 1: return [2 /*return*/, (_a.default = (_b.sent()).FourthAuth,
194
- _a)];
195
- }
196
- });
197
- }); });
186
+ var Fourth_1 = require("./components/Auth/Fourth");
198
187
  var CircularLoader_1 = require("components/ui/Loaders/CircularLoader");
199
188
  var types_2 = require("zustandStore/forms/signUp/types");
200
189
  var shared_1 = require("utils/shared");
201
190
  var styles = __importStar(require("./Alert.module.css"));
202
- var Fourth_1 = require("./components/Auth/Fourth");
203
191
  var Alerts = function (props) {
204
192
  var _a, _b, _c, _d;
205
193
  var getComponentFn = props.getComponentFn;
@@ -270,7 +258,7 @@ var Alerts = function (props) {
270
258
  }, [modalType, oldModalType]);
271
259
  // TODO OPTIMIZE
272
260
  return ((0, jsx_runtime_1.jsx)(ModalLayout_1.ModalLayout, __assign({ popUpHeaderProps: __assign(__assign({ title: !(additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.bonusSignUp) &&
273
- ((additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.title) || (0, shared_1.getModalTitle)(modalType)), closeButton: (additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.preventClose) ? undefined : handleClose }, ((additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.popUpHeaderProps) || {})), { titleClasses: (0, classnames_1.default)((_a = {},
261
+ ((additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.title) || (0, shared_1.getModalTitle)(modalType)), closeButton: (additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.preventClose) ? undefined : handleClose, isHidden: additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.isHidden }, ((additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.popUpHeaderProps) || {})), { titleClasses: (0, classnames_1.default)((_a = {},
274
262
  _a[styles.popUpDarkColor] = modalType === types_1.EModalTypes.SetNewPassword &&
275
263
  (types_2.ESignUpTheme[additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.registrationTheme] === types_2.ESignUpTheme.WhiteYellow ||
276
264
  types_2.ESignUpTheme[additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.registrationTheme] === types_2.ESignUpTheme.WhiteBlue ||
@@ -323,7 +311,7 @@ var Alerts = function (props) {
323
311
  types_2.ESignUpTheme[additionalSettings === null || additionalSettings === void 0 ? void 0 : additionalSettings.registrationTheme] === types_2.ESignUpTheme.SecondaryGreen,
324
312
  _c[styles.authFourth] = modalType === types_1.EModalTypes.AuthFourth,
325
313
  _c)), modalContentClasses: (0, classnames_1.default)((_d = {},
326
- _d[styles.maxWidth] = modalType === types_1.EModalTypes.SignUpThree ||
314
+ _d[styles.maxSize] = modalType === types_1.EModalTypes.SignUpThree ||
327
315
  modalType === types_1.EModalTypes.SignInThree,
328
316
  _d[styles.fourthAuthContent] = modalType === types_1.EModalTypes.AuthFourth,
329
317
  _d)) }, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, __assign({ fallback: (0, jsx_runtime_1.jsx)("div", __assign({ className: "full center" }, { children: (0, jsx_runtime_1.jsx)(CircularLoader_1.CircularLoader, {}) })) }, { children: getModalComponent() })) })));
@@ -38,6 +38,7 @@ var ArrowButton = function (props) {
38
38
  var Arrow = type === 'base' ? ArrowSvg_1.ArrowSvg : ArrowSecondSvg_1.ArrowSecondSvg;
39
39
  return ((0, jsx_runtime_1.jsx)(Arrow, { classes: (0, classnames_1.default)(styles.defaultClasses, (_a = {},
40
40
  _a[styles.openedColor] = isOpened,
41
+ _a[styles.secondary] = type === 'secondary',
41
42
  _a), classes), handleClick: toggleState }));
42
43
  };
43
44
  exports.ArrowButton = ArrowButton;
@@ -4,6 +4,7 @@ export type PopUpHeaderProps = {
4
4
  classes?: string;
5
5
  transparent?: boolean;
6
6
  titleClasses?: string;
7
+ isHidden?: boolean;
7
8
  } & CloseButton & BackButton;
8
9
  type CloseButton = {
9
10
  closeButton?: () => void;
@@ -0,0 +1,2 @@
1
+ import { IconProps } from '../types';
2
+ export declare const SecondSearchSvg: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.SecondSearchSvg = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var SecondSearchSvg = function (props) {
17
+ var _a = props.width, width = _a === void 0 ? '20' : _a, _b = props.height, height = _b === void 0 ? '20' : _b, classes = props.classes;
18
+ return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: width, height: height, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("g", __assign({ clipPath: "url(#clip0_4585_4508)" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M13.2045 13.6927L12.8892 13.3779L12.5403 13.6549C11.3812 14.5749 9.91153 15.125 8.3125 15.125C4.54919 15.125 1.5 12.0758 1.5 8.3125C1.5 4.54919 4.54919 1.5 8.3125 1.5C12.0758 1.5 15.125 4.54919 15.125 8.3125C15.125 9.91153 14.5749 11.3812 13.6549 12.5403L13.3777 12.8895L13.6929 13.2047L18.4004 17.9121C18.5366 18.0484 18.5339 18.2647 18.4022 18.395C18.2631 18.5326 18.0454 18.528 17.9176 18.3987L17.9154 18.3966L13.2045 13.6927ZM14.4375 8.3125C14.4375 6.68805 13.7922 5.13013 12.6435 3.98147C11.4949 2.83281 9.93695 2.1875 8.3125 2.1875C6.68805 2.1875 5.13013 2.83281 3.98147 3.98147C2.83281 5.13013 2.1875 6.68805 2.1875 8.3125C2.1875 9.93695 2.83281 11.4949 3.98147 12.6435C5.13013 13.7922 6.68805 14.4375 8.3125 14.4375C9.93695 14.4375 11.4949 13.7922 12.6435 12.6435C13.7922 11.4949 14.4375 9.93695 14.4375 8.3125Z", fill: "rgb(var(--semi-blue-gray))", stroke: "rgb(var(--semi-blue-gray))" }) })), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { children: (0, jsx_runtime_1.jsx)("rect", { width: "18", height: "18", fill: "white", transform: "translate(1 1)" }) }) })] })));
19
+ };
20
+ exports.SecondSearchSvg = SecondSearchSvg;
@@ -15,6 +15,6 @@ exports.WorldSvg = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
16
  var WorldSvg = function (props) {
17
17
  var _a = props.width, width = _a === void 0 ? '20' : _a, _b = props.height, height = _b === void 0 ? '20' : _b, classes = props.classes;
18
- return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 24 24", fill: "none", className: classes }, { children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.15407 7.30116C7.52877 5.59304 9.63674 4.5 12 4.5C12.365 4.5 12.7238 4.52607 13.0748 4.57644L13.7126 5.85192L11.2716 8.2929L8.6466 8.6679L7.36009 9.95441L6.15407 7.30116ZM5.2011 8.82954C4.75126 9.79256 4.5 10.8669 4.5 12C4.5 15.6945 7.17133 18.7651 10.6878 19.3856L11.0989 18.7195L8.8147 15.547L10.3741 13.5256L9.63268 13.1549L6.94027 13.6036L6.41366 11.4972L5.2011 8.82954ZM7.95559 11.4802L8.05962 11.8964L9.86722 11.5951L11.3726 12.3478L14.0824 11.9714L18.9544 14.8135C19.3063 13.9447 19.5 12.995 19.5 12C19.5 8.93729 17.6642 6.30336 15.033 5.13856L15.5377 6.1481L11.9787 9.70711L9.35371 10.0821L7.95559 11.4802ZM18.2539 16.1414C16.9774 18.0652 14.8369 19.366 12.3859 19.4902L12.9011 18.6555L10.6853 15.578L12.0853 13.7632L13.7748 13.5286L18.2539 16.1414ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3Z", fill: "var(--world-svg-path-fill)" }) })));
18
+ return ((0, jsx_runtime_1.jsx)("svg", __assign({ width: width, height: height, viewBox: "0 0 24 24", fill: "none", className: classes }, { children: (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.15407 7.30116C7.52877 5.59304 9.63674 4.5 12 4.5C12.365 4.5 12.7238 4.52607 13.0748 4.57644L13.7126 5.85192L11.2716 8.2929L8.6466 8.6679L7.36009 9.95441L6.15407 7.30116ZM5.2011 8.82954C4.75126 9.79256 4.5 10.8669 4.5 12C4.5 15.6945 7.17133 18.7651 10.6878 19.3856L11.0989 18.7195L8.8147 15.547L10.3741 13.5256L9.63268 13.1549L6.94027 13.6036L6.41366 11.4972L5.2011 8.82954ZM7.95559 11.4802L8.05962 11.8964L9.86722 11.5951L11.3726 12.3478L14.0824 11.9714L18.9544 14.8135C19.3063 13.9447 19.5 12.995 19.5 12C19.5 8.93729 17.6642 6.30336 15.033 5.13856L15.5377 6.1481L11.9787 9.70711L9.35371 10.0821L7.95559 11.4802ZM18.2539 16.1414C16.9774 18.0652 14.8369 19.366 12.3859 19.4902L12.9011 18.6555L10.6853 15.578L12.0853 13.7632L13.7748 13.5286L18.2539 16.1414ZM12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3Z", fill: "var(--kit-world-svg-path-fill)" }) })));
19
19
  };
20
20
  exports.WorldSvg = WorldSvg;