@redneckz/wildless-cms-uni-blocks 0.14.1080 → 0.14.1082
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/bundle/bundle.umd.js +68 -39
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/bundle/retail/hooks/useSendCode.d.ts +18 -0
- package/bundle/retail/utils/yandexMetrika.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +6 -0
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormAspects.js +2 -1
- package/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -1
- package/dist/retail/components/Fields/CurrencyField.js +3 -1
- package/dist/retail/components/Fields/CurrencyField.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +11 -30
- package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +11 -2
- package/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/dist/retail/hooks/useSendCode.d.ts +18 -0
- package/dist/retail/hooks/useSendCode.js +38 -0
- package/dist/retail/hooks/useSendCode.js.map +1 -0
- package/dist/retail/utils/commonAspects.js +2 -1
- package/dist/retail/utils/commonAspects.js.map +1 -1
- package/dist/retail/utils/yandexMetrika.d.ts +1 -1
- package/dist/retail/utils/yandexMetrika.js +1 -2
- package/dist/retail/utils/yandexMetrika.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +6 -0
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormAspects.js +2 -1
- package/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -1
- package/lib/retail/components/Fields/CurrencyField.js +3 -1
- package/lib/retail/components/Fields/CurrencyField.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +13 -32
- package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +11 -2
- package/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/lib/retail/hooks/useSendCode.d.ts +18 -0
- package/lib/retail/hooks/useSendCode.js +35 -0
- package/lib/retail/hooks/useSendCode.js.map +1 -0
- package/lib/retail/utils/commonAspects.js +2 -1
- package/lib/retail/utils/commonAspects.js.map +1 -1
- package/lib/retail/utils/yandexMetrika.d.ts +1 -1
- package/lib/retail/utils/yandexMetrika.js +1 -2
- package/lib/retail/utils/yandexMetrika.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +68 -39
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/mobile/bundle/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/mobile/bundle/retail/hooks/useSendCode.d.ts +18 -0
- package/mobile/bundle/retail/utils/yandexMetrika.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +6 -0
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js +2 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormAspects.js.map +1 -1
- package/mobile/dist/retail/components/Fields/CurrencyField.js +3 -1
- package/mobile/dist/retail/components/Fields/CurrencyField.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +11 -30
- package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +11 -2
- package/mobile/dist/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/dist/retail/hooks/useSendCode.d.ts +18 -0
- package/mobile/dist/retail/hooks/useSendCode.js +38 -0
- package/mobile/dist/retail/hooks/useSendCode.js.map +1 -0
- package/mobile/dist/retail/utils/commonAspects.js +2 -1
- package/mobile/dist/retail/utils/commonAspects.js.map +1 -1
- package/mobile/dist/retail/utils/yandexMetrika.d.ts +1 -1
- package/mobile/dist/retail/utils/yandexMetrika.js +1 -2
- package/mobile/dist/retail/utils/yandexMetrika.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +6 -0
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js +2 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormAspects.js.map +1 -1
- package/mobile/lib/retail/components/Fields/CurrencyField.js +3 -1
- package/mobile/lib/retail/components/Fields/CurrencyField.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.d.ts +3 -0
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +13 -32
- package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.d.ts +4 -1
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js +11 -2
- package/mobile/lib/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.js.map +1 -1
- package/mobile/lib/retail/hooks/useSendCode.d.ts +18 -0
- package/mobile/lib/retail/hooks/useSendCode.js +35 -0
- package/mobile/lib/retail/hooks/useSendCode.js.map +1 -0
- package/mobile/lib/retail/utils/commonAspects.js +2 -1
- package/mobile/lib/retail/utils/commonAspects.js.map +1 -1
- package/mobile/lib/retail/utils/yandexMetrika.d.ts +1 -1
- package/mobile/lib/retail/utils/yandexMetrika.js +1 -2
- package/mobile/lib/retail/utils/yandexMetrika.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +6 -0
- package/mobile/src/components/CreditCardForm/creditCardFormAspects.ts +2 -1
- package/mobile/src/retail/components/Fields/CurrencyField.tsx +3 -1
- package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +17 -35
- package/mobile/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +16 -1
- package/mobile/src/retail/hooks/useSendCode.ts +52 -0
- package/mobile/src/retail/utils/commonAspects.ts +2 -1
- package/mobile/src/retail/utils/yandexMetrika.ts +1 -3
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +6 -0
- package/src/components/CreditCardForm/creditCardFormAspects.ts +2 -1
- package/src/retail/components/Fields/CurrencyField.tsx +3 -1
- package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +17 -35
- package/src/retail/components/VerifyPhoneDialog/useVerifyPhoneDialogSubmit.tsx +16 -1
- package/src/retail/hooks/useSendCode.ts +52 -0
- package/src/retail/utils/commonAspects.ts +2 -1
- package/src/retail/utils/yandexMetrika.ts +1 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -3931,8 +3931,8 @@
|
|
|
3931
3931
|
const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
|
|
3932
3932
|
const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base gap-2xs", children: [jsx("span", { children: " \u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437" }), jsx(Timer, { seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, testId: "send-new-code-button", children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
|
|
3933
3933
|
|
|
3934
|
-
const TIME_TO_RESEND$
|
|
3935
|
-
const getTimer = (sendTime) => TIME_TO_RESEND$
|
|
3934
|
+
const TIME_TO_RESEND$1 = 180;
|
|
3935
|
+
const getTimer = (sendTime) => TIME_TO_RESEND$1 - Math.floor((Date.now() - sendTime) / 1000);
|
|
3936
3936
|
|
|
3937
3937
|
const API$1 = LeadServiceAPI();
|
|
3938
3938
|
const useVerifyPhoneDialogSubmit$1 = ({ values, onSuccess, formatData, reqId, }) => {
|
|
@@ -3981,7 +3981,7 @@
|
|
|
3981
3981
|
|
|
3982
3982
|
const API = LeadServiceAPI();
|
|
3983
3983
|
const CODE_LENGTH$1 = 4;
|
|
3984
|
-
const TIME_TO_RESEND
|
|
3984
|
+
const TIME_TO_RESEND = 180;
|
|
3985
3985
|
const VerifyPhoneDialog$1 = JSX(({ phone, onSuccess = noop, onClose = noop, formatData = {}, reqId }) => {
|
|
3986
3986
|
const [values, setValues] = useState(Array(CODE_LENGTH$1).fill(''));
|
|
3987
3987
|
const [requestId, setRequestId] = useState(reqId);
|
|
@@ -3996,8 +3996,8 @@
|
|
|
3996
3996
|
const handleSendCode = useCallback(async () => {
|
|
3997
3997
|
const response = await API.sendCode({ phone: phoneNumber });
|
|
3998
3998
|
if (response) {
|
|
3999
|
-
setTimeNextReq(TIME_TO_RESEND
|
|
4000
|
-
restartTimer(TIME_TO_RESEND
|
|
3999
|
+
setTimeNextReq(TIME_TO_RESEND);
|
|
4000
|
+
restartTimer(TIME_TO_RESEND);
|
|
4001
4001
|
setErrorText('');
|
|
4002
4002
|
setRequestId(String(response));
|
|
4003
4003
|
}
|
|
@@ -6051,10 +6051,12 @@
|
|
|
6051
6051
|
};
|
|
6052
6052
|
|
|
6053
6053
|
const RUBLE = [{ id: '810', text: 'Рубли' }];
|
|
6054
|
+
const SALARY_PROGRAM_IDS = ['38', '48', '49'];
|
|
6054
6055
|
const CurrencyField = JSX(({ field, input }) => {
|
|
6055
6056
|
const { data } = useLeadFormData('CURRENCY');
|
|
6056
6057
|
const { programId } = useLeadFormStore();
|
|
6057
|
-
const isOnlyRuble = useMemo(() => !Object.keys(debitProgrammIdToCardCodesMap).includes(programId || '') ||
|
|
6058
|
+
const isOnlyRuble = useMemo(() => !Object.keys(debitProgrammIdToCardCodesMap).includes(programId || '') ||
|
|
6059
|
+
SALARY_PROGRAM_IDS.includes(programId ?? ''), []);
|
|
6058
6060
|
const currencies = useMemo(() => (isOnlyRuble ? RUBLE : data?.map((_) => ({ id: _.key ?? '', text: _.description }))), [data]);
|
|
6059
6061
|
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencies, ...field(input?.name ?? ''), ...input }));
|
|
6060
6062
|
});
|
|
@@ -6897,7 +6899,7 @@
|
|
|
6897
6899
|
restInputs: inputs.filter(({ name }) => !Object.keys(productTypeToConsentsMap[productType]).includes(String(name))),
|
|
6898
6900
|
});
|
|
6899
6901
|
|
|
6900
|
-
const YANDEX_ID =
|
|
6902
|
+
const YANDEX_ID = '92511315';
|
|
6901
6903
|
|
|
6902
6904
|
const ASPECTS_MAP = {
|
|
6903
6905
|
leadForm: {
|
|
@@ -6951,10 +6953,11 @@
|
|
|
6951
6953
|
};
|
|
6952
6954
|
const getAspects = (aspectType, productType) => {
|
|
6953
6955
|
const aspectForType = ASPECTS_MAP[aspectType];
|
|
6956
|
+
const targetName = aspectForType?.[productType || 'default'] || aspectForType?.['default'];
|
|
6954
6957
|
return [
|
|
6955
6958
|
{
|
|
6956
6959
|
aspectName: 'ymReachGoal',
|
|
6957
|
-
params: { yandexId: YANDEX_ID, targetName
|
|
6960
|
+
params: { yandexId: YANDEX_ID, targetName },
|
|
6958
6961
|
},
|
|
6959
6962
|
];
|
|
6960
6963
|
};
|
|
@@ -7099,6 +7102,35 @@
|
|
|
7099
7102
|
return (jsx(Dialog, { head: jsx(Logo, {}), onClose: closeAll, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: closeAll, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
7100
7103
|
});
|
|
7101
7104
|
|
|
7105
|
+
const getDefaultSmsCodeParams = (phoneNumber) => ({
|
|
7106
|
+
sendTime: Date.now(),
|
|
7107
|
+
attempts: 0,
|
|
7108
|
+
phoneNumber: phoneNumber,
|
|
7109
|
+
});
|
|
7110
|
+
const useSendCode = ({ phoneNumber, restartTimer, setTimeNextReq, setErrorText, onFail, }) => {
|
|
7111
|
+
const sessionStore = useSessionStore();
|
|
7112
|
+
const captchaDialog = useDialog(CaptchaDialog);
|
|
7113
|
+
const handleSendCode = useCallback(async () => {
|
|
7114
|
+
const response = await sendCode({
|
|
7115
|
+
phoneNumber,
|
|
7116
|
+
smsCodesSetName: { key: 'AUTHENTICATION' },
|
|
7117
|
+
});
|
|
7118
|
+
if (response.ok) {
|
|
7119
|
+
setTimeNextReq(TIME_TO_RESEND$1);
|
|
7120
|
+
restartTimer(TIME_TO_RESEND$1);
|
|
7121
|
+
setErrorText('');
|
|
7122
|
+
sessionStore.smsCode = getDefaultSmsCodeParams(phoneNumber);
|
|
7123
|
+
}
|
|
7124
|
+
else if (response.status === 429) {
|
|
7125
|
+
captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
|
|
7126
|
+
}
|
|
7127
|
+
else {
|
|
7128
|
+
onFail();
|
|
7129
|
+
}
|
|
7130
|
+
}, [phoneNumber, restartTimer]);
|
|
7131
|
+
return { handleSendCode, sessionStore };
|
|
7132
|
+
};
|
|
7133
|
+
|
|
7102
7134
|
const checkCode = async (body) => {
|
|
7103
7135
|
const isNewMicroservice = checkNewMicroservice();
|
|
7104
7136
|
return await doRequest(`${isNewMicroservice ? '/external/user-data' : ''}/sms/checkCode`, 'POST', {
|
|
@@ -7113,8 +7145,7 @@
|
|
|
7113
7145
|
globalThis.sessionStorage.setItem('refreshToken', data.refresh_token);
|
|
7114
7146
|
};
|
|
7115
7147
|
|
|
7116
|
-
const
|
|
7117
|
-
const useVerifyPhoneDialogSubmit = ({ values, phoneNumber, onSuccess, onFail, }) => {
|
|
7148
|
+
const useVerifyPhoneDialogSubmit = ({ values, phoneNumber, onSuccess, onFail, productType, aspects, }) => {
|
|
7118
7149
|
const sessionStore = useSessionStore();
|
|
7119
7150
|
const attempts = sessionStore.smsCode?.attempts || 0;
|
|
7120
7151
|
const timer = Math.max(getTimer(sessionStore.smsCode?.sendTime || Date.now()), 0);
|
|
@@ -7141,6 +7172,13 @@
|
|
|
7141
7172
|
setTimeNextReq(0);
|
|
7142
7173
|
resetError();
|
|
7143
7174
|
sessionStore.smsCode = null;
|
|
7175
|
+
if (productType && aspects) {
|
|
7176
|
+
handleAspects({
|
|
7177
|
+
aspectsAttributes: getAspects('smsAuth', productType),
|
|
7178
|
+
aspects,
|
|
7179
|
+
ev: {},
|
|
7180
|
+
});
|
|
7181
|
+
}
|
|
7144
7182
|
onSuccess?.(values.join(''));
|
|
7145
7183
|
}
|
|
7146
7184
|
else if (response.status === 403) {
|
|
@@ -7150,7 +7188,7 @@
|
|
|
7150
7188
|
onFail();
|
|
7151
7189
|
}
|
|
7152
7190
|
endLoading();
|
|
7153
|
-
}, [values, attempts]);
|
|
7191
|
+
}, [values, attempts, aspects]);
|
|
7154
7192
|
useEffect(() => {
|
|
7155
7193
|
if (isTimeExpired) {
|
|
7156
7194
|
setErrorText('Код просрочен');
|
|
@@ -7172,36 +7210,25 @@
|
|
|
7172
7210
|
};
|
|
7173
7211
|
|
|
7174
7212
|
const CODE_LENGTH = 4;
|
|
7175
|
-
const VerifyPhoneDialog = JSX(({ phone, withDescription = true, consents, onSuccess = noop, onClose = noop, onFail = noop, }) => {
|
|
7213
|
+
const VerifyPhoneDialog = JSX(({ phone, withDescription = true, consents, onSuccess = noop, onClose = noop, onFail = noop, productType, aspects, }) => {
|
|
7176
7214
|
const [values, setValues] = useState(Array(CODE_LENGTH).fill(''));
|
|
7177
|
-
const sessionStore = useSessionStore();
|
|
7178
7215
|
const phoneNumber = formatPhone(phone);
|
|
7179
7216
|
const { handleSubmit, hasError, errorText, isLoading, timeNextReq, isSubmitButtonDisabled, setTimeNextReq, setErrorText, } = useVerifyPhoneDialogSubmit({
|
|
7180
7217
|
values,
|
|
7181
7218
|
phoneNumber,
|
|
7182
7219
|
onSuccess,
|
|
7183
7220
|
onFail,
|
|
7221
|
+
productType,
|
|
7222
|
+
aspects,
|
|
7184
7223
|
});
|
|
7185
|
-
const captchaDialog = useDialog(CaptchaDialog);
|
|
7186
7224
|
const restartTimer = useCountDownTimer({ seconds: timeNextReq, onTick: setTimeNextReq });
|
|
7187
|
-
const handleSendCode =
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
restartTimer(TIME_TO_RESEND);
|
|
7195
|
-
setErrorText('');
|
|
7196
|
-
sessionStore.smsCode = getDefaultSmsCodeParams(phoneNumber);
|
|
7197
|
-
}
|
|
7198
|
-
else if (response.status === 429) {
|
|
7199
|
-
captchaDialog.open({ phoneNumber, sendCode: handleSendCode });
|
|
7200
|
-
}
|
|
7201
|
-
else {
|
|
7202
|
-
onFail();
|
|
7203
|
-
}
|
|
7204
|
-
}, [phoneNumber, restartTimer]);
|
|
7225
|
+
const { handleSendCode, sessionStore } = useSendCode({
|
|
7226
|
+
phoneNumber,
|
|
7227
|
+
restartTimer,
|
|
7228
|
+
setTimeNextReq,
|
|
7229
|
+
setErrorText,
|
|
7230
|
+
onFail,
|
|
7231
|
+
});
|
|
7205
7232
|
useEffect(() => {
|
|
7206
7233
|
if (!sessionStore.smsCode?.sendTime || sessionStore.smsCode?.phoneNumber !== phoneNumber) {
|
|
7207
7234
|
handleSendCode();
|
|
@@ -7209,11 +7236,6 @@
|
|
|
7209
7236
|
}, []);
|
|
7210
7237
|
return (jsx(VerifyPhoneDialogLayout, { isSubmitButtonDisabled: isSubmitButtonDisabled, onSubmit: handleSubmit, onSendCode: handleSendCode, timeNextReq: timeNextReq, values: values, onChange: setValues, phone: phone, isLoading: isLoading, errorText: errorText, hasError: hasError, onClose: onClose, children: renderDescription$2(consents, withDescription) }));
|
|
7211
7238
|
});
|
|
7212
|
-
const getDefaultSmsCodeParams = (phoneNumber) => ({
|
|
7213
|
-
sendTime: Date.now(),
|
|
7214
|
-
attempts: 0,
|
|
7215
|
-
phoneNumber: phoneNumber,
|
|
7216
|
-
});
|
|
7217
7239
|
const renderDescription$2 = (consents, isRender = false) => isRender ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null;
|
|
7218
7240
|
|
|
7219
7241
|
const defaultConsentText = {
|
|
@@ -7911,6 +7933,8 @@
|
|
|
7911
7933
|
consents: acceptedConsents,
|
|
7912
7934
|
onSuccess: handleSuccessVerify,
|
|
7913
7935
|
onFail: handleFailSendForm,
|
|
7936
|
+
productType,
|
|
7937
|
+
aspects,
|
|
7914
7938
|
});
|
|
7915
7939
|
}
|
|
7916
7940
|
catch {
|
|
@@ -7952,6 +7976,8 @@
|
|
|
7952
7976
|
consents: acceptedConsents,
|
|
7953
7977
|
onSuccess: handleSuccessVerify,
|
|
7954
7978
|
onFail: handleFailSendForm,
|
|
7979
|
+
productType,
|
|
7980
|
+
aspects,
|
|
7955
7981
|
});
|
|
7956
7982
|
}
|
|
7957
7983
|
catch {
|
|
@@ -8032,6 +8058,7 @@
|
|
|
8032
8058
|
task,
|
|
8033
8059
|
isFromLead: true,
|
|
8034
8060
|
taskType: productTypeToTaskType(productType),
|
|
8061
|
+
isDebit: productType === 'debitCard',
|
|
8035
8062
|
sendAspects,
|
|
8036
8063
|
onClose: sendCurrentTask,
|
|
8037
8064
|
});
|
|
@@ -8089,6 +8116,7 @@
|
|
|
8089
8116
|
task,
|
|
8090
8117
|
isFromLead: true,
|
|
8091
8118
|
taskType: productTypeToTaskType(productType),
|
|
8119
|
+
isDebit: productType === 'debitCard',
|
|
8092
8120
|
sendAspects,
|
|
8093
8121
|
onClose: sendCurrentTask,
|
|
8094
8122
|
});
|
|
@@ -10893,10 +10921,11 @@
|
|
|
10893
10921
|
};
|
|
10894
10922
|
|
|
10895
10923
|
const CREDIT_CARD_FORM_STEPS_ASPECTS = [
|
|
10896
|
-
{ ymTargetName: '
|
|
10924
|
+
{ ymTargetName: 'card_params' },
|
|
10897
10925
|
{ ymTargetName: 'card_app_personal_data' },
|
|
10898
10926
|
{ ymTargetName: 'card_app_work' },
|
|
10899
10927
|
{ ymTargetName: 'card_app_income' },
|
|
10928
|
+
{ ymTargetName: 'card_bankrot' },
|
|
10900
10929
|
{ ymTargetName: 'card_app_bank_office' },
|
|
10901
10930
|
];
|
|
10902
10931
|
|
|
@@ -15129,7 +15158,7 @@
|
|
|
15129
15158
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
15130
15159
|
});
|
|
15131
15160
|
|
|
15132
|
-
const packageVersion = "0.14.
|
|
15161
|
+
const packageVersion = "0.14.1081";
|
|
15133
15162
|
|
|
15134
15163
|
exports.Blocks = Blocks;
|
|
15135
15164
|
exports.ContentPage = ContentPage;
|