react-gldn-kit 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/EmailSignInForm/index.d.ts +2 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/EmailSignInForm/index.js +3 -3
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/IdSignInForm/index.d.ts +2 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/IdSignInForm/index.js +4 -4
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/PhoneSignInForm/index.d.ts +2 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/components/PhoneSignInForm/index.js +9 -5
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/index.d.ts +3 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/First/index.js +45 -22
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/components/EmailSignInForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/components/IdSignInForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/components/PhoneSignInForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignIn/Third/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/components/Forms/EmailSignUp/index.js +2 -2
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/components/Forms/PhoneSignUp/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/First/index.js +6 -3
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Second/index.js +13 -9
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/components/Forms/EmailSignUp/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/Auth/SignUp/Third/components/Forms/PhoneSignUp/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordEmailForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/LostPassword/First/components/LostPasswordPhoneForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordEmailForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/LostPassword/Third/components/LostPasswordPhoneForm/index.js +1 -1
- package/dist/lib/components/Modals/Alert/components/SetNewPassword/index.js +1 -1
- package/dist/lib/components/Payments/DepositQrForm/index.js +1 -1
- package/dist/lib/components/SignUp/PromoCode/index.js +1 -1
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/components/Code/index.d.ts +2 -1
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/components/Code/index.js +2 -4
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/index.d.ts +3 -1
- package/dist/lib/components/SignUpTypeTwo/PhoneBox/index.js +44 -20
- package/dist/lib/components/ui/Buttons/ArrowButton/index.js +2 -2
- package/dist/lib/components/ui/Icons/Base/CloseEyeSvg.js +2 -2
- package/dist/lib/components/ui/Icons/Base/OpenEyeSvg.js +2 -2
- package/dist/lib/components/ui/Inputs/AmountInput/index.js +2 -2
- package/dist/lib/components/ui/Inputs/BaseInput/BaseInputUi.js +8 -8
- package/dist/lib/components/ui/Inputs/BaseInput/types.d.ts +3 -1
- package/dist/lib/components/ui/Inputs/EmailInput/index.js +2 -2
- package/dist/lib/components/ui/Inputs/PasswordInput/index.js +1 -1
- package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.d.ts +1 -0
- package/dist/lib/components/ui/Inputs/PhoneInput/components/PhoneView/index.js +6 -5
- package/dist/lib/components/ui/Inputs/PhoneInput/constants.js +1 -1
- package/dist/lib/components/ui/Inputs/PhoneInput/index.js +8 -7
- package/dist/lib/components/ui/Selector/index.js +1 -1
- package/dist/lib/service/validation.d.ts +2 -0
- package/dist/lib/service/validation.js +39 -2
- package/dist/main.css +242 -244
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ type Props = {
|
|
|
2
2
|
classes?: string;
|
|
3
3
|
onChange: (v: string) => void;
|
|
4
4
|
sendCommand?: any;
|
|
5
|
+
errorText?: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const EmailSignInForm: (
|
|
7
|
+
export declare const EmailSignInForm: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -18,10 +18,10 @@ exports.EmailSignInForm = void 0;
|
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var classnames_1 = __importDefault(require("classnames"));
|
|
20
20
|
var EmailInput_1 = require("components/ui/Inputs/EmailInput");
|
|
21
|
-
var EmailSignInForm = function (
|
|
22
|
-
var classes =
|
|
21
|
+
var EmailSignInForm = function (props) {
|
|
22
|
+
var classes = props.classes, onChange = props.onChange, sendCommand = props.sendCommand, errorText = props.errorText;
|
|
23
23
|
return (
|
|
24
24
|
// <div className={cln(animation.animationFadeIn, classes)}>
|
|
25
|
-
(0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(classes) }, { children: (0, jsx_runtime_1.jsx)(EmailInput_1.EmailInput, { sendCommand: sendCommand,
|
|
25
|
+
(0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(classes) }, { children: (0, jsx_runtime_1.jsx)(EmailInput_1.EmailInput, { sendCommand: sendCommand, label: "authorization.inputs.email", size: "full", withoutConfirmCode: true, onChange: onChange, errorText: errorText }) })));
|
|
26
26
|
};
|
|
27
27
|
exports.EmailSignInForm = EmailSignInForm;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
classes?: string;
|
|
3
3
|
onChange: (v: string) => void;
|
|
4
|
+
errorText?: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const IdSignInForm: (
|
|
6
|
+
export declare const IdSignInForm: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -21,9 +21,9 @@ var classnames_1 = __importDefault(require("classnames"));
|
|
|
21
21
|
var validation_1 = require("service/validation");
|
|
22
22
|
var constant_1 = require("components/ui/Inputs/BaseInput/constant");
|
|
23
23
|
var BaseInput_1 = require("components/ui/Inputs/BaseInput");
|
|
24
|
-
var IdSignInForm = function (
|
|
25
|
-
var classes =
|
|
26
|
-
var
|
|
24
|
+
var IdSignInForm = function (props) {
|
|
25
|
+
var classes = props.classes, onChange = props.onChange, errorText = props.errorText;
|
|
26
|
+
var _a = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), userId = _a[0], setUserId = _a[1];
|
|
27
27
|
var validateValue = function (value) {
|
|
28
28
|
var errorText = (0, validation_1.composeValidations)([
|
|
29
29
|
(0, validation_1.isRequired)({ value: value, errorText: 'errors.required' }),
|
|
@@ -35,6 +35,6 @@ var IdSignInForm = function (_a) {
|
|
|
35
35
|
}
|
|
36
36
|
onChange(value);
|
|
37
37
|
};
|
|
38
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(classes) }, { children: (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(classes) }, { children: (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "authorization.inputs.userId", size: "full", errorText: errorText || userId.errorText, patternFn: validation_1.extractNumbersFromString, onChange: validateValue }) })));
|
|
39
39
|
};
|
|
40
40
|
exports.IdSignInForm = IdSignInForm;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
classes?: string;
|
|
3
3
|
onChange: (v: string) => void;
|
|
4
|
+
errorText?: string;
|
|
4
5
|
};
|
|
5
|
-
export declare const PhoneSignInForm: (
|
|
6
|
+
export declare const PhoneSignInForm: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -18,10 +18,14 @@ exports.PhoneSignInForm = void 0;
|
|
|
18
18
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
19
|
var classnames_1 = __importDefault(require("classnames"));
|
|
20
20
|
var PhoneInput_1 = require("components/ui/Inputs/PhoneInput");
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
var ModalContext_1 = require("context/logic/ModalContext");
|
|
22
|
+
var useHookFabric_1 = require("hooks/useHookFabric");
|
|
23
|
+
var PhoneSignInForm = function (props) {
|
|
24
|
+
var classes = props.classes, onChange = props.onChange, errorText = props.errorText;
|
|
25
|
+
var useCountryInfo = (0, ModalContext_1.useHookProvider)().useCountryInfo;
|
|
26
|
+
var countryInfo = (0, useHookFabric_1.useHookFabric)({
|
|
27
|
+
fn: useCountryInfo,
|
|
28
|
+
});
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(classes) }, { children: (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: false, label: "walletPopUp.forms.phone", size: "full", countryInfo: countryInfo, onChange: onChange, errorText: errorText }) })));
|
|
26
30
|
};
|
|
27
31
|
exports.PhoneSignInForm = PhoneSignInForm;
|
|
@@ -45,33 +45,41 @@ var types_1 = require("react-memory-optimization/dist/lib/binary/types");
|
|
|
45
45
|
var EmailSignInForm_1 = require("./components/EmailSignInForm");
|
|
46
46
|
var PhoneSignInForm_1 = require("./components/PhoneSignInForm");
|
|
47
47
|
var IdSignInForm_1 = require("./components/IdSignInForm");
|
|
48
|
-
var constants_1 = require("./constants");
|
|
49
|
-
var store_1 = require("zustandStore/forms/signIn/store");
|
|
50
|
-
var selectors_1 = require("zustandStore/forms/signIn/selectors");
|
|
51
|
-
var store_2 = require("zustandStore/alerts/modal/store");
|
|
52
|
-
var selectors_2 = require("zustandStore/alerts/modal/selectors");
|
|
53
|
-
var types_2 = require("zustandStore/alerts/modal/types");
|
|
54
|
-
var types_3 = require("zustandStore/forms/signIn/types");
|
|
55
|
-
var utils_1 = require("zustandStore/forms/signUp/utils");
|
|
56
48
|
var Tabs_1 = require("components/ui/Tabs");
|
|
57
49
|
var Buttons_1 = require("components/ui/Buttons");
|
|
58
50
|
var Text_1 = require("components/Text");
|
|
59
51
|
var PasswordInput_1 = __importDefault(require("components/ui/Inputs/PasswordInput"));
|
|
60
52
|
var HOCRequestLoader_1 = require("components/HOCs/HOCRequestLoader");
|
|
61
53
|
var CircularLoader_1 = require("components/ui/Loaders/CircularLoader");
|
|
54
|
+
var constants_1 = require("./constants");
|
|
55
|
+
var store_1 = require("zustandStore/alerts/notification/store");
|
|
56
|
+
var selectors_1 = require("zustandStore/alerts/notification/selectors");
|
|
57
|
+
var store_2 = require("zustandStore/forms/signIn/store");
|
|
58
|
+
var selectors_2 = require("zustandStore/forms/signIn/selectors");
|
|
59
|
+
var store_3 = require("zustandStore/alerts/modal/store");
|
|
60
|
+
var selectors_3 = require("zustandStore/alerts/modal/selectors");
|
|
61
|
+
var types_2 = require("zustandStore/alerts/modal/types");
|
|
62
|
+
var types_3 = require("zustandStore/forms/signIn/types");
|
|
63
|
+
var utils_1 = require("zustandStore/forms/signUp/utils");
|
|
62
64
|
var ModalContext_1 = require("context/logic/ModalContext");
|
|
63
65
|
var styles = __importStar(require("./SignIn.module.css"));
|
|
64
|
-
var SignIn = function () {
|
|
65
|
-
var
|
|
66
|
+
var SignIn = function (_a) {
|
|
67
|
+
var _b;
|
|
68
|
+
var classes = _a.classes;
|
|
66
69
|
var useTransportControllers = (0, ModalContext_1.useHookProvider)().useTransportControllers;
|
|
67
70
|
var sendCommand = useTransportControllers().sendCommand;
|
|
68
|
-
var activeForm = (0,
|
|
69
|
-
var setAuthFormType = (0,
|
|
70
|
-
var setModal = (0,
|
|
71
|
-
var
|
|
72
|
-
var _c = (0, react_1.useState)(''),
|
|
73
|
-
var _d = (0, react_1.useState)(''),
|
|
74
|
-
var _e = (0, react_1.useState)(''),
|
|
71
|
+
var activeForm = (0, store_2.useZustandSignInKitStore)(selectors_2.zustandSignInKitSelectors.getActiveSignInFormSelector);
|
|
72
|
+
var setAuthFormType = (0, store_2.useZustandSignInKitStore)(selectors_2.zustandSignInKitSelectors.setActiveSignInFormAction);
|
|
73
|
+
var setModal = (0, store_3.useZustandModalKitStore)(selectors_3.zustandModalKitSelector.closeAndOpenModalAction);
|
|
74
|
+
var notifications = (0, store_1.useZustandNotificationKitStore)(selectors_1.notificationKitSelectors.getNotificationsSelector);
|
|
75
|
+
var _c = (0, react_1.useState)(''), password = _c[0], setPassword = _c[1];
|
|
76
|
+
var _d = (0, react_1.useState)(''), email = _d[0], setEmail = _d[1];
|
|
77
|
+
var _e = (0, react_1.useState)(''), id = _e[0], setId = _e[1];
|
|
78
|
+
var _f = (0, react_1.useState)(''), phone = _f[0], setPhone = _f[1];
|
|
79
|
+
var _g = (0, react_1.useState)({
|
|
80
|
+
form: types_3.EAuthFormType.Email,
|
|
81
|
+
errorText: '',
|
|
82
|
+
}), authError = _g[0], setAuthError = _g[1];
|
|
75
83
|
var handleSignIn = function () {
|
|
76
84
|
var logInInfo = activeForm === types_3.EAuthFormType.Phone ? phone : email;
|
|
77
85
|
if (activeForm === types_3.EAuthFormType.UserName) {
|
|
@@ -96,10 +104,25 @@ var SignIn = function () {
|
|
|
96
104
|
}
|
|
97
105
|
return id;
|
|
98
106
|
}, [activeForm, phone, email, id]);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
(0, react_1.useEffect)(function () {
|
|
108
|
+
var hasAuthError = notifications.some(function (item) { return item.text === 'errors.authFailed'; });
|
|
109
|
+
if (hasAuthError) {
|
|
110
|
+
setAuthError({
|
|
111
|
+
form: activeForm,
|
|
112
|
+
errorText: "errors.authErrors.".concat(types_3.EAuthFormType[activeForm]),
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, [notifications]);
|
|
116
|
+
(0, react_1.useEffect)(function () {
|
|
117
|
+
setAuthError({
|
|
118
|
+
form: activeForm,
|
|
119
|
+
errorText: '',
|
|
120
|
+
});
|
|
121
|
+
}, [activeForm, password, email, phone]);
|
|
122
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralCopyContent, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.content }, { children: [(0, jsx_runtime_1.jsx)(Tabs_1.Tabs, { activeValue: activeForm, onChange: setAuthFormType, data: constants_1.AUTH_TABS, classes: styles.wrapperTabs, type: "underline" }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperForms, (_b = {},
|
|
123
|
+
_b[styles.formOne] = activeForm === types_3.EAuthFormType.Phone,
|
|
124
|
+
_b[styles.formTwo] = activeForm === types_3.EAuthFormType.Email,
|
|
125
|
+
_b[styles.formThree] = activeForm === types_3.EAuthFormType.UserName,
|
|
126
|
+
_b)) }, { 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" }) }))] })) })));
|
|
104
127
|
};
|
|
105
128
|
exports.SignIn = SignIn;
|
|
@@ -45,6 +45,6 @@ var Text_1 = require("components/Text");
|
|
|
45
45
|
var styles = __importStar(require("../../SignInThird.module.css"));
|
|
46
46
|
var EmailSignInForm = function (_a) {
|
|
47
47
|
var classes = _a.classes, onChange = _a.onChange, sendCommand = _a.sendCommand;
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.emailSignIn" }) })), (0, jsx_runtime_1.jsx)(EmailInput_1.EmailInput, { sendCommand: sendCommand, isHidePlaceholder: true,
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.emailSignIn" }) })), (0, jsx_runtime_1.jsx)(EmailInput_1.EmailInput, { sendCommand: sendCommand, isHidePlaceholder: true, label: "authorization.inputs.email", size: "full", withoutConfirmCode: true, onChange: onChange })] })));
|
|
49
49
|
};
|
|
50
50
|
exports.EmailSignInForm = EmailSignInForm;
|
|
@@ -60,6 +60,6 @@ var IdSignInForm = function (_a) {
|
|
|
60
60
|
}
|
|
61
61
|
onChange(value);
|
|
62
62
|
};
|
|
63
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.idSignIn" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { isHidePlaceholder: true,
|
|
63
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.idSignIn" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { isHidePlaceholder: true, label: "authorization.inputs.userId", size: "full", errorText: userId.errorText, patternFn: validation_1.extractNumbersFromString, onChange: validateValue })] })));
|
|
64
64
|
};
|
|
65
65
|
exports.IdSignInForm = IdSignInForm;
|
|
@@ -47,6 +47,6 @@ var PhoneInput_1 = require("components/ui/Inputs/PhoneInput");
|
|
|
47
47
|
var styles = __importStar(require("../../SignInThird.module.css"));
|
|
48
48
|
var PhoneSignInForm = function (_a) {
|
|
49
49
|
var classes = _a.classes, onChange = _a.onChange;
|
|
50
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.phoneSignIn" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { isHidePlaceholder: true, withConfirm: false,
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.animationFadeIn, classes) }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "signInThree.phoneSignIn" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { isHidePlaceholder: true, withConfirm: false, label: "walletPopUp.forms.phone", size: "full", onChange: onChange })] })));
|
|
51
51
|
};
|
|
52
52
|
exports.PhoneSignInForm = PhoneSignInForm;
|
|
@@ -114,7 +114,7 @@ var SignInThird = function () {
|
|
|
114
114
|
backgroundPosition: 'center',
|
|
115
115
|
backgroundSize: '100% 100%',
|
|
116
116
|
backgroundRepeat: 'no-repeat',
|
|
117
|
-
} }), (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: handleOpenSignUp }, { 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 })), 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 })), activeForm === types_3.EAuthFormType.UserName && ((0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId }))] })), (0, jsx_runtime_1.jsx)(PasswordInput_1.default, {
|
|
117
|
+
} }), (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: handleOpenSignUp }, { 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 })), 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 })), activeForm === types_3.EAuthFormType.UserName && ((0, jsx_runtime_1.jsx)(IdSignInForm_1.IdSignInForm, { classes: (0, classnames_1.default)(styles.wrapperForm, styles.marginInput), onChange: setId }))] })), (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) }), (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: {
|
|
118
118
|
backgroundImage: promotionImagePath ||
|
|
119
119
|
"url(/landings/assets-builder/signUpThree/".concat(appType, "/desk.png)"),
|
|
120
120
|
backgroundPosition: 'top',
|
|
@@ -48,6 +48,7 @@ var HOCRequestLoader_1 = require("components/HOCs/HOCRequestLoader");
|
|
|
48
48
|
var CircularLoader_1 = require("components/ui/Loaders/CircularLoader");
|
|
49
49
|
var BaseInput_1 = require("components/ui/Inputs/BaseInput");
|
|
50
50
|
var BaseButton_1 = require("components/ui/Buttons/BaseButton");
|
|
51
|
+
var DocsCheckBox_1 = require("components/SignUp/DocsCheckBox");
|
|
51
52
|
var constant_1 = require("components/ui/Inputs/BaseInput/constant");
|
|
52
53
|
var store_1 = require("zustandStore/forms/signUp/store");
|
|
53
54
|
var selectors_1 = require("zustandStore/forms/signUp/selectors");
|
|
@@ -59,7 +60,6 @@ var validation_1 = require("service/validation");
|
|
|
59
60
|
var utils_1 = require("zustandStore/forms/signUp/utils");
|
|
60
61
|
var styles = __importStar(require("../../../SignUp.module.css"));
|
|
61
62
|
var stylesEmailSignUp = __importStar(require("./EmailSignUp.module.css"));
|
|
62
|
-
var DocsCheckBox_1 = require("components/SignUp/DocsCheckBox");
|
|
63
63
|
var EmailSignUp = function (props) {
|
|
64
64
|
var countryInfo = props.countryInfo, _a = props.isSelected, isSelected = _a === void 0 ? false : _a, handleRegistration = props.handleRegistration, availableCurrencies = props.availableCurrencies, buttonText = props.buttonText;
|
|
65
65
|
var _b = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), email = _b[0], setEmail = _b[1];
|
|
@@ -131,6 +131,6 @@ var EmailSignUp = function (props) {
|
|
|
131
131
|
// }
|
|
132
132
|
// openExternalLink(link, true);
|
|
133
133
|
};
|
|
134
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: stylesEmailSignUp.animationFadeIn }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
134
|
+
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", onChange: handleChange('email'), errorText: email.errorText, classes: styles.marginB }), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", onChange: handleChange('password'), errorText: password.errorText, classes: styles.marginB }), (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: promoCode ? '06x_with_promo' : '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: 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) }) }))] })));
|
|
135
135
|
};
|
|
136
136
|
exports.EmailSignUp = EmailSignUp;
|
|
@@ -145,6 +145,6 @@ var PhoneSignUp = function (props) {
|
|
|
145
145
|
var PHONE_PROPS = withoutCode
|
|
146
146
|
? constants_1.PHONE_PROPS_WITHOUT_CONFIRMATION
|
|
147
147
|
: constants_1.PHONE_PROPS_WITH_CONFIRMATION;
|
|
148
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, {
|
|
148
|
+
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 })), !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 }), (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: styles.marginB }) }))] }));
|
|
149
149
|
};
|
|
150
150
|
exports.PhoneSignUp = PhoneSignUp;
|
|
@@ -86,8 +86,11 @@ var SignUp = function (props) {
|
|
|
86
86
|
setActiveForm(tabs[0].value);
|
|
87
87
|
}
|
|
88
88
|
}, [activeForm, tabs]);
|
|
89
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [bonusSignUp ||
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.wrapperReferralFailure, classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperSignUpModal }, { children: [bonusSignUp ||
|
|
90
|
+
(customBonusText && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.bonusText }, { children: [isCongratulation && ((0, jsx_runtime_1.jsx)("div", __assign({ className: styles.textTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "wheelTwo.secondPopUp.title" }) }))), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.subText }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusSubText
|
|
91
|
+
? customBonusSubText
|
|
92
|
+
: 'wheelTwo.secondPopUp.subTitle' }) })), (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: customBonusText
|
|
93
|
+
? customBonusText
|
|
94
|
+
: 'wheelTwo.secondPopUp.bonus' })] })))), (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, type: "underline" })), (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.zIndex }, { children: [activeForm === types_2.ERegistrationForm.Email && ((0, jsx_runtime_1.jsx)(EmailSignUp_1.EmailSignUp, { isSelected: true, countryInfo: countryInfo, handleRegistration: sendRegistrationCommand(flow), availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.Phone && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.PhoneWithoutCode && ((0, jsx_runtime_1.jsx)(PhoneSignUp_1.PhoneSignUp, { withoutCode: true, isSelected: true, requestCode: handleRegistrationCode, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [], buttonText: customSignUpButtonText })), activeForm === types_2.ERegistrationForm.OneClick && ((0, jsx_runtime_1.jsx)(OneClickKit_1.default, { isSelected: true, handleRegistration: sendRegistrationCommand(flow), countryInfo: countryInfo, availableCurrencies: availableCurrencies || [] }))] }))] })), (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.authButtonText, onClick: openSignIn }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "registration.logInButton" }) }))] })) })));
|
|
92
95
|
};
|
|
93
96
|
exports.SignUp = SignUp;
|
|
@@ -86,6 +86,7 @@ var PasswordBox_1 = __importDefault(require("components/SignUpTypeTwo/PasswordBo
|
|
|
86
86
|
var CurrencyBox_1 = __importDefault(require("components/SignUpTypeTwo/CurrencyBox"));
|
|
87
87
|
var Text_1 = require("components/Text");
|
|
88
88
|
var Tabs_1 = require("components/ui/Tabs");
|
|
89
|
+
var SocialButtons_1 = require("components/SocialButtons");
|
|
89
90
|
var constant_1 = require("components/ui/Inputs/BaseInput/constant");
|
|
90
91
|
var store_1 = require("zustandStore/forms/signUp/store");
|
|
91
92
|
var selectors_1 = require("zustandStore/forms/signUp/selectors");
|
|
@@ -96,11 +97,14 @@ var utils_1 = require("zustandStore/forms/signUp/utils");
|
|
|
96
97
|
var validation_1 = require("service/validation");
|
|
97
98
|
var ModalContext_1 = require("context/logic/ModalContext");
|
|
98
99
|
var styles = __importStar(require("./SignUpTypeTwo.module.css"));
|
|
99
|
-
var SocialButtons_1 = require("components/SocialButtons");
|
|
100
100
|
var types_3 = require("zustandStore/forms/signUp/types");
|
|
101
|
+
var useHookFabric_1 = require("hooks/useHookFabric");
|
|
101
102
|
var SignUpTypeTwo = function () {
|
|
102
103
|
var _a, _b, _c;
|
|
103
|
-
var
|
|
104
|
+
var _d = (0, ModalContext_1.useHookProvider)(), sendRegistrationCommand = _d.sendRegistrationCommand, useCountryInfo = _d.useCountryInfo;
|
|
105
|
+
var countryInfo = (0, useHookFabric_1.useHookFabric)({
|
|
106
|
+
fn: useCountryInfo,
|
|
107
|
+
});
|
|
104
108
|
var tabs = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getRegistrationTabsSelector);
|
|
105
109
|
var activeForm = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveRegistrationFormSelector);
|
|
106
110
|
var setActiveForm = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.setActiveRegistrationFormAction);
|
|
@@ -109,13 +113,13 @@ var SignUpTypeTwo = function () {
|
|
|
109
113
|
var currencyId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCurrencyIdSelector);
|
|
110
114
|
var countryId = (0, store_1.useZustandRegistrationKitStore)(selectors_1.zustandRegistrationKitSelector.getActiveCountryIdSelector);
|
|
111
115
|
var data = (0, store_2.useZustandModalKitStore)(selectors_2.zustandModalKitSelector.getModalAdditionalInfoSelector) || {};
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var
|
|
115
|
-
var
|
|
116
|
+
var _e = (0, react_1.useState)(true), isSelected = _e[0], setSelectedStatus = _e[1];
|
|
117
|
+
var _f = (0, react_1.useState)(''), phone = _f[0], setPhone = _f[1];
|
|
118
|
+
var _g = (0, react_1.useState)(''), password = _g[0], setPassword = _g[1];
|
|
119
|
+
var _h = (0, react_1.useState)(constant_1.DEFAULT_INPUT_VALUE), email = _h[0], setEmail = _h[1];
|
|
116
120
|
var titleRef = (0, react_1.useRef)(null);
|
|
117
|
-
var
|
|
118
|
-
var
|
|
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, _q = data.flow, flow = _q === void 0 ? types_3.ERegistrationFlow.Socket : _q;
|
|
119
123
|
var regType = registrationTheme;
|
|
120
124
|
var openSignIn = function () {
|
|
121
125
|
setModal(types_2.EModalTypes.SignIn);
|
|
@@ -227,7 +231,7 @@ var SignUpTypeTwo = function () {
|
|
|
227
231
|
_a[styles.black] = types_3.ESignUpTheme[regType] === types_3.ESignUpTheme.Black,
|
|
228
232
|
_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: {
|
|
229
233
|
height: "calc(100% - ".concat(titleHeight, "px)"),
|
|
230
|
-
} }, { 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 })) : ((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 = {},
|
|
234
|
+
} }, { 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 = {},
|
|
231
235
|
_b[styles.disable] = !mainField.value ||
|
|
232
236
|
mainField.errorText ||
|
|
233
237
|
!password ||
|
|
@@ -132,6 +132,6 @@ var EmailSignUp = function (props) {
|
|
|
132
132
|
// }
|
|
133
133
|
// openExternalLink(link, true);
|
|
134
134
|
};
|
|
135
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: stylesEmailSignUp.animationFadeIn }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
135
|
+
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) }), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), errorText: password.errorText, classes: (0, classnames_1.default)(styles.marginB, classes) }), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: classes, dropdownClasses: styles.dropdown, classesItem: stylesEmailSignUp.selectorMainItem }), (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 }), (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) }) }))] })));
|
|
136
136
|
};
|
|
137
137
|
exports.EmailSignUp = EmailSignUp;
|
|
@@ -155,6 +155,6 @@ var PhoneSignUp = function (props) {
|
|
|
155
155
|
var PHONE_PROPS = withoutCode
|
|
156
156
|
? constants_1.PHONE_PROPS_WITHOUT_CONFIRMATION
|
|
157
157
|
: constants_1.PHONE_PROPS_WITH_CONFIRMATION;
|
|
158
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, __assign({}, PHONE_PROPS, {
|
|
158
|
+
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: classes, disabled: isRequestedCode, classes: (0, classnames_1.default)(styles.marginB, styles.phoneInput, classes), requestCode: !withoutCode ? requestCode : undefined, buttonClasses: phoneStyles.authButton })), !withoutCode && isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.code", size: "full", isHidePlaceholder: true, disabled: !isRequestedCode, onChange: handleChange('code'), classes: (0, classnames_1.default)(styles.marginB, classes) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "registrations.inputs.password", size: "full", isHidePlaceholder: true, onChange: handleChange('password'), classes: (0, classnames_1.default)(styles.marginB, classes) }), (0, jsx_runtime_1.jsx)(CountrySelector_1.CountrySelector, { countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem }), (0, jsx_runtime_1.jsx)(CurrencySelector_1.CurrencySelector, { availableCurrencies: availableCurrencies, countryInfo: countryInfo, classes: (0, classnames_1.default)(styles.marginB, classes), dropdownClasses: styles.dropdown, classesItem: phoneStyles.selectorMainItem }), (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: "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: 'registrations.submitBtn', disabled: isDisabledSubmitButton, color: "primary", handleClick: handleSubmitForm, size: "--button-full", centreText: true, buttonHeight: "--button-height-full", classes: (0, classnames_1.default)(phoneStyles.authButton, styles.marginB, classes) }) }))] }));
|
|
159
159
|
};
|
|
160
160
|
exports.PhoneSignUp = PhoneSignUp;
|
|
@@ -91,6 +91,6 @@ var LostPasswordEmailForm = function (_a) {
|
|
|
91
91
|
]);
|
|
92
92
|
setCode({ value: value, errorText: errorText });
|
|
93
93
|
}; };
|
|
94
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapper }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
94
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapper }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.email", size: "large", disabled: isRequestedCode, errorText: email.errorText, defaultValue: "", onChange: handleValidate('email'), classes: styles.formInput }), isRequestedCode ? ((0, jsx_runtime_1.jsx)(Timer_1.default, { handleRequestCode: handleRequestCode })) : ((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 })), isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.code", size: "large", disabled: false, defaultValue: "", onChange: handleValidate('code'), classes: styles.formInput })), isValidForm && ((0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\31x", requestId: types_1.ERequestIds.RecoveryPasswordResponse }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", size: "--button-full", buttonHeight: "--button-height-full", handleClick: submit, text: "recoveryPsw.submitBtn", centreText: true, classes: styles.button }) })))] })));
|
|
95
95
|
};
|
|
96
96
|
exports.default = LostPasswordEmailForm;
|
|
@@ -69,6 +69,6 @@ var LostPasswordPhoneForm = function (_a) {
|
|
|
69
69
|
]);
|
|
70
70
|
setCode({ value: value, errorText: errorText });
|
|
71
71
|
};
|
|
72
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: true, requestId: types_1.ERequestIds.RecoveryPasswordSendCode, sendDataType: types_1.RecoverySubType.Phone,
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: true, requestId: types_1.ERequestIds.RecoveryPasswordSendCode, sendDataType: types_1.RecoverySubType.Phone, label: "recoveryPsw.phone", size: "large", section: 3, disabled: isRequestedCode, defaultValue: "", onChange: setPhone, classes: isRequestedCode ? styles.formInput : styles.formPhoneWrapper, requestCallback: callbackRequest, requestCode: submit }), isRequestedCode && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.code", size: "large", disabled: false, defaultValue: "", onChange: handleValidateCode, classes: styles.formInput })), isValidForm && ((0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\31x", requestId: types_1.ERequestIds.RecoveryPasswordResponse }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", size: "--button-full", buttonHeight: "--button-height-l", handleClick: submit, text: "recoveryPsw.submitBtn", centreText: true }) })))] }));
|
|
73
73
|
};
|
|
74
74
|
exports.default = LostPasswordPhoneForm;
|
|
@@ -95,6 +95,6 @@ var LostPasswordEmailForm = function (_a) {
|
|
|
95
95
|
preventClose: true,
|
|
96
96
|
});
|
|
97
97
|
}; };
|
|
98
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: wrapperClasses }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lostPasswordThree.subTitleEmail" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: wrapperClasses }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lostPasswordThree.subTitleEmail" }) })), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.email", size: "full", disabled: isRequestedCode, errorText: email.errorText, defaultValue: "", onChange: handleValidate('email'), classes: styles.marginBottom, isHidePlaceholder: true }), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "lostPasswordThree.code", size: "full", disabled: !isRequestedCode, defaultValue: "", onChange: handleValidateCode, classes: styles.marginBottom, isHidePlaceholder: true }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\31x", requestId: types_1.ERequestIds.RecoveryPasswordResponse }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", size: "--button-full", buttonHeight: "--button-height-xxl", handleClick: submit, text: "lostPasswordThree.reset", disabled: !isValidForm, classes: styles.submitButton, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", { className: styles.dash }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", buttonHeight: "--button-height-xxl", handleClick: setModalInfo(types_2.EModalTypes.SignInThree), size: "--button-full", text: "lostPasswordThree.login", classes: styles.loginButton, centreText: true })] })));
|
|
99
99
|
};
|
|
100
100
|
exports.default = LostPasswordEmailForm;
|
|
@@ -85,6 +85,6 @@ var LostPasswordPhoneForm = function (_a) {
|
|
|
85
85
|
preventClose: true,
|
|
86
86
|
});
|
|
87
87
|
}; };
|
|
88
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: wrapperClasses }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lostPasswordThree.subTitlePhone" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: true, requestId: types_1.ERequestIds.RecoveryPasswordSendCode, sendDataType: types_1.RecoverySubType.Phone,
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: wrapperClasses }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.formTitle }, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: "lostPasswordThree.subTitlePhone" }) })), (0, jsx_runtime_1.jsx)(PhoneInput_1.PhoneInput, { withConfirm: true, requestId: types_1.ERequestIds.RecoveryPasswordSendCode, sendDataType: types_1.RecoverySubType.Phone, label: "lostPasswordThree.phone", size: "full", section: 3, disabled: isRequestedCode, defaultValue: "", onChange: setPhone, classes: isRequestedCode ? styles.marginBottom : styles.formPhoneWrapper, requestCallback: callbackRequest, requestCode: submit, buttonClasses: (0, classnames_1.default)(styles.marginBottom, styles.codeButton) }), (0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "lostPasswordThree.code", size: "full", disabled: !isRequestedCode, defaultValue: "", onChange: handleValidateCode, classes: styles.marginBottom, isHidePlaceholder: true }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\31x", requestId: types_1.ERequestIds.RecoveryPasswordResponse }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", size: "--button-full", buttonHeight: "--button-height-xxl", disabled: !isValidForm, handleClick: submit, text: "lostPasswordThree.reset", classes: styles.resetButton, centreText: true }) })), (0, jsx_runtime_1.jsx)("div", { className: styles.dash }), (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { color: "primary", size: "--button-full", buttonHeight: "--button-height-xxl", handleClick: setModalInfo(types_2.EModalTypes.SignInThree), text: "lostPasswordThree.login", classes: styles.loginButton, centreText: true })] })));
|
|
89
89
|
};
|
|
90
90
|
exports.default = LostPasswordPhoneForm;
|
|
@@ -53,6 +53,6 @@ var SetNewPassword = function () {
|
|
|
53
53
|
requestId: types_1.ERequestIds.SetNewPassword,
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperNewPassword }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
56
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperNewPassword }, { children: [(0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: "recoveryPsw.newPassword.setNewPassword", size: "full", onChange: setNewPassword, type: "password", isHidePlaceholder: true }), (0, jsx_runtime_1.jsx)(HOCRequestLoader_1.HOCRequestLoader, __assign({ command: "\\\\21x", requestId: types_1.ERequestIds.SetNewPassword }, { children: (0, jsx_runtime_1.jsx)(Buttons_1.BaseButton, { disabled: !isValidPsw, text: "recoveryPsw.newPassword.submit", size: "--button-full", color: "primary", buttonHeight: "--button-height-l", handleClick: handleApplyPsw, centreText: true }) }))] })));
|
|
57
57
|
};
|
|
58
58
|
exports.default = SetNewPassword;
|
|
@@ -44,6 +44,6 @@ var BaseInput_1 = require("components/ui/Inputs/BaseInput");
|
|
|
44
44
|
var styles = __importStar(require("./DepositQrForm.module.css"));
|
|
45
45
|
var DepositQrForm = function (props) {
|
|
46
46
|
var title = props.title, inputValue = props.inputValue, inputValueTag = props.inputValueTag, minInfoText = props.minInfoText, CopySvg = props.CopySvg, warningSvg = props.warningSvg, inputValueLabel = props.inputValueLabel, inputValueTagLabel = props.inputValueTagLabel, copyFn = props.copyFn;
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperDepositQrForm }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.depositQrTitle }, { children: title })), (0, jsx_runtime_1.jsx)(react_qr_code_1.default, { value: inputValue || '', size: 186, className: styles.qrWrapper }), inputValue && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.wrapperDepositQrForm }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: styles.depositQrTitle }, { children: title })), (0, jsx_runtime_1.jsx)(react_qr_code_1.default, { value: inputValue || '', size: 186, className: styles.qrWrapper }), inputValue && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: inputValueLabel, size: "full", onChange: console.info, inputStyleType: "border-colorful", inputLabelType: "labelUp", disabled: true, defaultValue: inputValue, classes: styles.inputInfo }, { children: (0, jsx_runtime_1.jsx)(CopySvg, { onClick: copyFn(inputValue) }) }))), inputValueTag && ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, __assign({ label: inputValueTagLabel, size: "full", inputStyleType: "border-colorful", inputLabelType: "labelUp", onChange: console.info, disabled: true, defaultValue: inputValueTag, classes: styles.inputInfo }, { children: (0, jsx_runtime_1.jsx)(CopySvg, { onClick: copyFn(inputValueTag) }) }))), minInfoText && ((0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.minInfo }, { children: [warningSvg, (0, jsx_runtime_1.jsx)("div", __assign({ className: styles.minText }, { children: minInfoText }))] })))] })));
|
|
48
48
|
};
|
|
49
49
|
exports.DepositQrForm = DepositQrForm;
|
|
@@ -64,6 +64,6 @@ var RegistrationPromoCode = function (props) {
|
|
|
64
64
|
if (constants_1.REFERRAL_CODE) {
|
|
65
65
|
return (0, jsx_runtime_1.jsx)("div", __assign({ className: classes }, { children: " " }));
|
|
66
66
|
}
|
|
67
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: classes }, { children: !isShownPromoCode ? ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.promoTitle, styles.marginBottom), onClick: handleShowPromoCode }, { children: [(0, jsx_runtime_1.jsx)(LotterySvg_1.LotterySvg, { width: "24", height: "24" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: translatesKeys[0] }) })] }))) : ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, {
|
|
67
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: classes }, { children: !isShownPromoCode ? ((0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.promoTitle, styles.marginBottom), onClick: handleShowPromoCode }, { children: [(0, jsx_runtime_1.jsx)(LotterySvg_1.LotterySvg, { width: "24", height: "24" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { idT: translatesKeys[0] }) })] }))) : ((0, jsx_runtime_1.jsx)(BaseInput_1.BaseInput, { label: translatesKeys[1], size: "full", isHidePlaceholder: true, onChange: setPromoCode, classes: styles.marginBottom })) })));
|
|
68
68
|
};
|
|
69
69
|
exports.RegistrationPromoCode = RegistrationPromoCode;
|
|
@@ -43,12 +43,10 @@ var FilledArrowSvg_1 = require("components/ui/Icons/FilledArrowSvg");
|
|
|
43
43
|
var styles = __importStar(require("./Code.module.css"));
|
|
44
44
|
var Code = function (props) {
|
|
45
45
|
var _a;
|
|
46
|
-
var code = props.code, isArrow = props.isArrow,
|
|
46
|
+
var code = props.code, isArrow = props.isArrow, Flag = props.Flag, classes = props.classes, valueClasses = props.valueClasses, _b = props.isDrop, isDrop = _b === void 0 ? false : _b, _c = props.isError, isError = _c === void 0 ? false : _c;
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, classnames_1.default)(styles.drop, (_a = {},
|
|
48
48
|
_a[styles.colorfulBorder] = isDrop,
|
|
49
49
|
_a[styles.errorBorder] = isError,
|
|
50
|
-
_a), classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.selection }, { children: [(0, jsx_runtime_1.jsx)("div", { className: styles.
|
|
51
|
-
background: "url(".concat(flag, ")"),
|
|
52
|
-
} }), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.code, valueClasses) }, { children: [" ", code] })), isArrow && (0, jsx_runtime_1.jsx)(FilledArrowSvg_1.FilledArrowSvg, { classes: styles.arrowSvg })] })) })));
|
|
50
|
+
_a), classes) }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ className: styles.selection }, { children: [(0, jsx_runtime_1.jsx)(Flag, {}), (0, jsx_runtime_1.jsxs)("div", __assign({ className: (0, classnames_1.default)(styles.code, valueClasses) }, { children: [" ", code] })), isArrow && (0, jsx_runtime_1.jsx)(FilledArrowSvg_1.FilledArrowSvg, { classes: styles.arrowSvg })] })) })));
|
|
53
51
|
};
|
|
54
52
|
exports.default = Code;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
onChange: (v: string) => void;
|
|
3
|
+
countryCodeDefault?: string;
|
|
4
|
+
countryInfo?: any;
|
|
3
5
|
};
|
|
4
|
-
declare const PhoneBox: (
|
|
6
|
+
declare const PhoneBox: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
5
7
|
export default PhoneBox;
|