@redneckz/wildless-cms-uni-blocks 0.14.704 → 0.14.706
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 +62 -33
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/bundle/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/dist/api/RetailAPI/sendCode.js +1 -1
- package/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/ReworkStatusContent.js +3 -3
- package/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/SuccessStatusContent.js +3 -3
- package/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +14 -3
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/PendingStatusContent.js +4 -4
- package/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/dist/components/CreditForm/ReworkStatusContent.js +3 -3
- package/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/dist/components/CreditForm/SuccessStatusContent.js +3 -3
- package/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +1 -1
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/dist/components/CreditForm/useCreditFormAPI.js +19 -3
- package/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SnilsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/SnilsField.js.map +1 -1
- package/dist/ui-kit/Input/InputSnilsControl.js +1 -1
- package/dist/ui-kit/Input/InputSnilsControl.js.map +1 -1
- package/dist/ui-kit/SnilsInput/SnilsInput.js +4 -2
- package/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/dist/utils/normalizeWithMask.js +1 -1
- package/dist/utils/normalizeWithMask.js.map +1 -1
- package/lib/api/RetailAPI/sendCode.js +1 -1
- package/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/ReworkStatusContent.js +3 -3
- package/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/SuccessStatusContent.js +3 -3
- package/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +14 -3
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/PendingStatusContent.js +4 -4
- package/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/lib/components/CreditForm/ReworkStatusContent.js +3 -3
- package/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/lib/components/CreditForm/SuccessStatusContent.js +3 -3
- package/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +1 -1
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/lib/components/CreditForm/useCreditFormAPI.js +19 -3
- package/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SnilsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/SnilsField.js.map +1 -1
- package/lib/ui-kit/Input/InputSnilsControl.js +1 -1
- package/lib/ui-kit/Input/InputSnilsControl.js.map +1 -1
- package/lib/ui-kit/SnilsInput/SnilsInput.js +4 -2
- package/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/lib/utils/normalizeWithMask.js +1 -1
- package/lib/utils/normalizeWithMask.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +62 -33
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/mobile/bundle/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/mobile/bundle/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/mobile/dist/api/RetailAPI/sendCode.js +1 -1
- package/mobile/dist/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js +3 -3
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js +3 -3
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +14 -3
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/PendingStatusContent.js +4 -4
- package/mobile/dist/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js +3 -3
- package/mobile/dist/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js +3 -3
- package/mobile/dist/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js +19 -3
- package/mobile/dist/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SnilsField.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputSnilsControl.js +1 -1
- package/mobile/dist/ui-kit/Input/InputSnilsControl.js.map +1 -1
- package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js +4 -2
- package/mobile/dist/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/mobile/dist/utils/normalizeWithMask.js +1 -1
- package/mobile/dist/utils/normalizeWithMask.js.map +1 -1
- package/mobile/lib/api/RetailAPI/sendCode.js +1 -1
- package/mobile/lib/api/RetailAPI/sendCode.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +1 -1
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js +2 -2
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js +3 -3
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js +3 -3
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.d.ts +10 -0
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +14 -3
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/PendingStatusContent.js +4 -4
- package/mobile/lib/components/CreditForm/PendingStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js +3 -3
- package/mobile/lib/components/CreditForm/ReworkStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js +3 -3
- package/mobile/lib/components/CreditForm/SuccessStatusContent.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/useCreditFormAPI.d.ts +10 -0
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js +19 -3
- package/mobile/lib/components/CreditForm/useCreditFormAPI.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SnilsField.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputSnilsControl.js +1 -1
- package/mobile/lib/ui-kit/Input/InputSnilsControl.js.map +1 -1
- package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js +4 -2
- package/mobile/lib/ui-kit/SnilsInput/SnilsInput.js.map +1 -1
- package/mobile/lib/utils/normalizeWithMask.js +1 -1
- package/mobile/lib/utils/normalizeWithMask.js.map +1 -1
- package/mobile/src/api/RetailAPI/sendCode.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +1 -1
- package/mobile/src/components/CreditCardForm/PendingStatusContent.tsx +3 -2
- package/mobile/src/components/CreditCardForm/ReworkStatusContent.tsx +4 -3
- package/mobile/src/components/CreditCardForm/SuccessStatusContent.tsx +4 -3
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +37 -3
- package/mobile/src/components/CreditForm/PendingStatusContent.tsx +5 -5
- package/mobile/src/components/CreditForm/ReworkStatusContent.tsx +4 -3
- package/mobile/src/components/CreditForm/SuccessStatusContent.tsx +4 -3
- package/mobile/src/components/CreditForm/formStateMap.tsx +1 -1
- package/mobile/src/components/CreditForm/useCreditFormAPI.tsx +42 -3
- package/mobile/src/ui-kit/FormField/Fields/SnilsField.tsx +1 -0
- package/mobile/src/ui-kit/Input/InputSnilsControl.tsx +1 -0
- package/mobile/src/ui-kit/SnilsInput/SnilsInput.tsx +5 -2
- package/mobile/src/utils/normalizeWithMask.ts +1 -1
- package/package.json +1 -1
- package/src/api/RetailAPI/sendCode.ts +1 -1
- package/src/components/ApplicationLeadForm/LeadFormState.ts +1 -1
- package/src/components/CreditCardForm/PendingStatusContent.tsx +3 -2
- package/src/components/CreditCardForm/ReworkStatusContent.tsx +4 -3
- package/src/components/CreditCardForm/SuccessStatusContent.tsx +4 -3
- package/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +37 -3
- package/src/components/CreditForm/PendingStatusContent.tsx +5 -5
- package/src/components/CreditForm/ReworkStatusContent.tsx +4 -3
- package/src/components/CreditForm/SuccessStatusContent.tsx +4 -3
- package/src/components/CreditForm/formStateMap.tsx +1 -1
- package/src/components/CreditForm/useCreditFormAPI.tsx +42 -3
- package/src/ui-kit/FormField/Fields/SnilsField.tsx +1 -0
- package/src/ui-kit/Input/InputSnilsControl.tsx +1 -0
- package/src/ui-kit/SnilsInput/SnilsInput.tsx +5 -2
- package/src/utils/normalizeWithMask.ts +1 -1
|
@@ -2938,7 +2938,7 @@
|
|
|
2938
2938
|
|
|
2939
2939
|
function normalizeWithMask(value, pattern) {
|
|
2940
2940
|
const valueNumbers = value.replace(/\D/g, '');
|
|
2941
|
-
if (valueNumbers === '' ||
|
|
2941
|
+
if (valueNumbers === '' || valueNumbers.length === pattern.length) {
|
|
2942
2942
|
return value;
|
|
2943
2943
|
}
|
|
2944
2944
|
const patternInArr = [...pattern];
|
|
@@ -4095,8 +4095,10 @@
|
|
|
4095
4095
|
|
|
4096
4096
|
const ShareholderFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u042F \u044F\u0432\u043B\u044F\u044E\u0441\u044C \u0430\u043A\u0446\u0438\u043E\u043D\u0435\u0440\u043E\u043C / \u0443\u0447\u0430\u0441\u0442\u043D\u0438\u043A\u043E\u043C / \u0447\u043B\u0435\u043D\u043E\u043C / \u043F\u0430\u0439\u0449\u0438\u043A\u043E\u043C / \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A\u043E\u043C \u0441 \u0434\u043E\u043B\u0435\u0439 \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0431\u043E\u043B\u0435\u0435 20% \u0443\u0441\u0442\u0430\u0432\u043D\u043E\u0433\u043E \u043A\u0430\u043F\u0438\u0442\u0430\u043B\u0430 \u044E\u0440\u0438\u0434\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043B\u0438\u0446\u0430", ...getValidation(field('shareholderFlg'), validatorObj.shareholderFlg, input?.required) })));
|
|
4097
4097
|
|
|
4098
|
-
const SnilsInput = JSX(({ children, onChange, ...inputProps }) => {
|
|
4099
|
-
const handleChange = useCallback((v) =>
|
|
4098
|
+
const SnilsInput = JSX(({ children, onChange, maxLength, ...inputProps }) => {
|
|
4099
|
+
const handleChange = useCallback((v) => maxLength
|
|
4100
|
+
? v.length <= maxLength && onChange?.(normalizeWithMask(v, '___-___-___ __'))
|
|
4101
|
+
: onChange?.(normalizeWithMask(v, '___-___-___ __')), [onChange]);
|
|
4100
4102
|
const handleBlur = useCallback((v) => {
|
|
4101
4103
|
if (v === '___-___-___ __') {
|
|
4102
4104
|
onChange && onChange('');
|
|
@@ -4105,9 +4107,9 @@
|
|
|
4105
4107
|
return (jsx(Input, { ...inputProps, onChange: handleChange, onFocus: (ev) => handleChange(ev?.target?.value || ''), onBlur: (ev) => handleBlur(ev?.target?.value || ''), children: children }));
|
|
4106
4108
|
});
|
|
4107
4109
|
|
|
4108
|
-
const InputSnilsControl = JSX(({ className, label, value, error, onChange, onBlur, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(SnilsInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, placeholder: "___-___-___ __" }), renderErrorText(error)] })));
|
|
4110
|
+
const InputSnilsControl = JSX(({ className, label, value, error, onChange, onBlur, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(SnilsInput, { "aria-label": label, label: getRequiredLabel({ label, errors: rest?.errors }), valid: Boolean(!error), value: value, onChange: onChange, onBlur: onBlur, placeholder: "___-___-___ __", ...rest }), renderErrorText(error)] })));
|
|
4109
4111
|
|
|
4110
|
-
const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", ...getValidation(field('snils'), validatorObj.snils, input?.required), ...input })));
|
|
4112
|
+
const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", maxLength: 14, ...getValidation(field('snils'), validatorObj.snils, input?.required), ...input })));
|
|
4111
4113
|
|
|
4112
4114
|
const FIELD_NAME = 'surname';
|
|
4113
4115
|
const SurnameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME), ...getValidation(field('surname'), validatorObj.surname, input?.required), ...input })));
|
|
@@ -4508,7 +4510,7 @@
|
|
|
4508
4510
|
const sendCode = (body) => fetchRetailJSON('/sms/sendCode', 'POST', body).then((res) => !isErrorResult(res, body.phoneNumber));
|
|
4509
4511
|
const isErrorResult = (res, phoneNumber) => Boolean(res) &&
|
|
4510
4512
|
typeof res !== 'string' &&
|
|
4511
|
-
Boolean(res?.errorMessage
|
|
4513
|
+
Boolean(res?.errorMessage?.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
4512
4514
|
|
|
4513
4515
|
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body)
|
|
4514
4516
|
.then((res) => res.text())
|
|
@@ -6808,7 +6810,7 @@
|
|
|
6808
6810
|
const FailedStatusContent$1 = JSX(() => (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
|
|
6809
6811
|
|
|
6810
6812
|
const PendingStatusContent$1 = JSX(({ handleExpireTimer }) => {
|
|
6811
|
-
const [
|
|
6813
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6812
6814
|
return (jsx(CreditCardFormStatus, { interval: 300, intervalExpireAction: handleExpireTimer, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
|
|
6813
6815
|
{
|
|
6814
6816
|
label: 'Название продукта',
|
|
@@ -6816,21 +6818,21 @@
|
|
|
6816
6818
|
},
|
|
6817
6819
|
{
|
|
6818
6820
|
label: 'Категория',
|
|
6819
|
-
description:
|
|
6821
|
+
description: statusInfo?.cardCategory,
|
|
6820
6822
|
},
|
|
6821
6823
|
] }));
|
|
6822
6824
|
});
|
|
6823
6825
|
|
|
6824
6826
|
const ReworkStatusContent$1 = JSX(() => {
|
|
6825
|
-
const [
|
|
6827
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6826
6828
|
return (jsx(CreditCardFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
|
|
6827
6829
|
{
|
|
6828
6830
|
label: 'Регион',
|
|
6829
|
-
description:
|
|
6831
|
+
description: statusInfo?.regionRetail,
|
|
6830
6832
|
},
|
|
6831
6833
|
{
|
|
6832
6834
|
label: 'Адрес',
|
|
6833
|
-
description:
|
|
6835
|
+
description: statusInfo?.addressRetail,
|
|
6834
6836
|
},
|
|
6835
6837
|
], sectionInfo: [
|
|
6836
6838
|
{
|
|
@@ -6841,7 +6843,7 @@
|
|
|
6841
6843
|
});
|
|
6842
6844
|
|
|
6843
6845
|
const SuccessStatusContent$1 = JSX(() => {
|
|
6844
|
-
const [
|
|
6846
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6845
6847
|
return (jsx(CreditCardFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
6846
6848
|
{
|
|
6847
6849
|
label: 'Название продукта',
|
|
@@ -6857,11 +6859,11 @@
|
|
|
6857
6859
|
},
|
|
6858
6860
|
{
|
|
6859
6861
|
label: 'Срок кредита',
|
|
6860
|
-
description:
|
|
6862
|
+
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
6861
6863
|
},
|
|
6862
6864
|
{
|
|
6863
6865
|
label: 'Тип платежа',
|
|
6864
|
-
description:
|
|
6866
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
6865
6867
|
},
|
|
6866
6868
|
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
6867
6869
|
});
|
|
@@ -6976,7 +6978,7 @@
|
|
|
6976
6978
|
creditInRshbCd: undefined,
|
|
6977
6979
|
},
|
|
6978
6980
|
{
|
|
6979
|
-
regionRetail: '',
|
|
6981
|
+
regionRetail: { key: '', text: '' },
|
|
6980
6982
|
addressRetail: {
|
|
6981
6983
|
key: '',
|
|
6982
6984
|
text: '',
|
|
@@ -7247,6 +7249,8 @@
|
|
|
7247
7249
|
const [taskId] = useLocalStorage('taskId');
|
|
7248
7250
|
const [profileId] = useLocalStorage('profileId');
|
|
7249
7251
|
const [participantId] = useLocalStorage('participantId');
|
|
7252
|
+
const [, setStatusInfo] = useLocalStorage('statusInfo');
|
|
7253
|
+
const [leadForm] = useLocalStorage('leadForm');
|
|
7250
7254
|
const handleSubmit = useCallback(async (formData) => {
|
|
7251
7255
|
const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
|
|
7252
7256
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
@@ -7262,7 +7266,7 @@
|
|
|
7262
7266
|
step,
|
|
7263
7267
|
formData: formData,
|
|
7264
7268
|
}));
|
|
7265
|
-
resetForm$1(isFinalStep, response);
|
|
7269
|
+
resetForm$1({ isFinalStep, response, leadForm, setStatusInfo });
|
|
7266
7270
|
}
|
|
7267
7271
|
}
|
|
7268
7272
|
catch (ex) {
|
|
@@ -7278,8 +7282,17 @@
|
|
|
7278
7282
|
handleSubmit,
|
|
7279
7283
|
};
|
|
7280
7284
|
};
|
|
7281
|
-
const resetForm$1 = (isFinalStep, response) => {
|
|
7282
|
-
if (isFinalStep && response.ok) {
|
|
7285
|
+
const resetForm$1 = ({ isFinalStep, response, leadForm, setStatusInfo, }) => {
|
|
7286
|
+
if (isFinalStep && response.ok && leadForm) {
|
|
7287
|
+
const regionRetail = leadForm?.regionRetail?.text;
|
|
7288
|
+
const addressRetail = leadForm?.addressRetail?.text;
|
|
7289
|
+
const cardCategory = leadForm?.cardCategory?.text;
|
|
7290
|
+
const calculator = {
|
|
7291
|
+
monthsValue: leadForm?.calculator?.monthsValue,
|
|
7292
|
+
moneyValue: leadForm?.calculator?.moneyValue,
|
|
7293
|
+
isAnnuity: leadForm?.calculator?.isAnnuity,
|
|
7294
|
+
};
|
|
7295
|
+
setStatusInfo({ regionRetail, addressRetail, cardCategory, calculator });
|
|
7283
7296
|
globalThis.localStorage.removeItem('leadForm');
|
|
7284
7297
|
}
|
|
7285
7298
|
};
|
|
@@ -7703,7 +7716,7 @@
|
|
|
7703
7716
|
const FailedStatusContent = JSX(() => (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0412\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435", description: "\u0412 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442 \u0411\u0430\u043D\u043A \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u043E\u0434\u043E\u0431\u0440\u0438\u0442\u044C \u0412\u0430\u0448\u0443 \u0437\u0430\u044F\u0432\u043A\u0443 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u043F\u043E\u0434\u0430\u0442\u044C \u0437\u0430\u044F\u0432\u043A\u0443 \u043F\u043E\u0437\u0436\u0435. \u0421\u043F\u0430\u0441\u0438\u0431\u043E \u0437\u0430 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0435 \u0432 \u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB.", buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" })));
|
|
7704
7717
|
|
|
7705
7718
|
const PendingStatusContent = JSX(({ handleExpireTimer }) => {
|
|
7706
|
-
const [
|
|
7719
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7707
7720
|
return (jsx(CreditFormStatus, { interval: 300, intervalExpireAction: handleExpireTimer, title: "\u0417\u0430\u044F\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0430", description: "\u041D\u0435 \u0437\u0430\u043A\u0440\u044B\u0432\u0430\u0439\u0442\u0435 \u043E\u043A\u043D\u043E, \u0441\u043A\u043E\u0440\u043E \u0441\u043E\u043E\u0431\u0449\u0438\u043C \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442", sectionInfoTitle: "\u0417\u0430\u044F\u0432\u043B\u0435\u043D\u043D\u044B\u0435 \u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0443", sectionInfo: [
|
|
7708
7721
|
{
|
|
7709
7722
|
label: 'Название продукта',
|
|
@@ -7715,29 +7728,29 @@
|
|
|
7715
7728
|
},
|
|
7716
7729
|
{
|
|
7717
7730
|
label: 'Сумма',
|
|
7718
|
-
description: `${
|
|
7731
|
+
description: `${statusInfo?.calculator?.moneyValue?.toLocaleString() ?? '0'} ₽`,
|
|
7719
7732
|
},
|
|
7720
7733
|
{
|
|
7721
7734
|
label: 'Срок кредита',
|
|
7722
|
-
description: `${
|
|
7735
|
+
description: `${statusInfo?.calculator?.monthsValue ?? '0'} мес`,
|
|
7723
7736
|
},
|
|
7724
7737
|
{
|
|
7725
7738
|
label: 'Тип платежа',
|
|
7726
|
-
description:
|
|
7739
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
7727
7740
|
},
|
|
7728
7741
|
] }));
|
|
7729
7742
|
});
|
|
7730
7743
|
|
|
7731
7744
|
const ReworkStatusContent = JSX(() => {
|
|
7732
|
-
const [
|
|
7745
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7733
7746
|
return (jsx(CreditFormStatus, { title: "\u0411\u043B\u0430\u0433\u043E\u0434\u0430\u0440\u0438\u043C \u0432\u0430\u0441 \u0437\u0430 \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u0435, \u043D\u043E \u043D\u0430\u043C \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0440\u0435\u043C\u0435\u043D\u0438 \u0434\u043B\u044F \u043F\u0440\u0438\u043D\u044F\u0442\u0438\u044F \u0440\u0435\u0448\u0435\u043D\u0438\u044F", description: "\u041F\u043E\u0441\u0435\u0442\u0438\u0442\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430 \u0441 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u043C\u0438 \u0438 \u0442\u0430\u043A \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0435 \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430.", sectionAdditionalTitle: "\u0412 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0438 \u0411\u0430\u043D\u043A\u0430", sectionInfoAdditional: [
|
|
7734
7747
|
{
|
|
7735
7748
|
label: 'Регион',
|
|
7736
|
-
description:
|
|
7749
|
+
description: statusInfo?.regionRetail,
|
|
7737
7750
|
},
|
|
7738
7751
|
{
|
|
7739
7752
|
label: 'Адрес',
|
|
7740
|
-
description:
|
|
7753
|
+
description: statusInfo?.addressRetail,
|
|
7741
7754
|
},
|
|
7742
7755
|
], sectionInfo: [
|
|
7743
7756
|
{
|
|
@@ -7748,7 +7761,7 @@
|
|
|
7748
7761
|
});
|
|
7749
7762
|
|
|
7750
7763
|
const SuccessStatusContent = JSX(() => {
|
|
7751
|
-
const [
|
|
7764
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7752
7765
|
return (jsx(CreditFormStatus, { title: "\u0411\u0430\u043D\u043A \u043E\u0434\u043E\u0431\u0440\u0438\u043B \u0432\u0430\u043C \u043A\u0440\u0435\u0434\u0438\u0442", description: "\u041E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0431\u0430\u043D\u043A\u0430, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0438 \u043F\u043E\u043B\u0443\u0447\u0438\u0442 \u0432\u0430\u0448 \u043A\u0440\u0435\u0434\u0438\u0442", sectionInfo: [
|
|
7753
7766
|
{
|
|
7754
7767
|
label: 'Название продукта',
|
|
@@ -7764,11 +7777,11 @@
|
|
|
7764
7777
|
},
|
|
7765
7778
|
{
|
|
7766
7779
|
label: 'Срок кредита',
|
|
7767
|
-
description:
|
|
7780
|
+
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
7768
7781
|
},
|
|
7769
7782
|
{
|
|
7770
7783
|
label: 'Тип платежа',
|
|
7771
|
-
description:
|
|
7784
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
7772
7785
|
},
|
|
7773
7786
|
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
7774
7787
|
});
|
|
@@ -7884,7 +7897,7 @@
|
|
|
7884
7897
|
creditInRshbCd: undefined,
|
|
7885
7898
|
},
|
|
7886
7899
|
{
|
|
7887
|
-
regionRetail: '',
|
|
7900
|
+
regionRetail: { key: '', text: '' },
|
|
7888
7901
|
addressRetail: undefined,
|
|
7889
7902
|
bankEmployeeCode: undefined,
|
|
7890
7903
|
},
|
|
@@ -8126,6 +8139,8 @@
|
|
|
8126
8139
|
const [taskId] = useLocalStorage('taskId');
|
|
8127
8140
|
const [profileId] = useLocalStorage('profileId');
|
|
8128
8141
|
const [participantId] = useLocalStorage('participantId');
|
|
8142
|
+
const [, setStatusInfo] = useLocalStorage('statusInfo');
|
|
8143
|
+
const [leadForm] = useLocalStorage('leadForm');
|
|
8129
8144
|
const handleSubmit = useCallback(async (formData) => {
|
|
8130
8145
|
const feedbackValidator = objectValidator(getObjectValidator(calculateInputs(getValue(formData))(inputs, step)));
|
|
8131
8146
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
@@ -8141,7 +8156,7 @@
|
|
|
8141
8156
|
step,
|
|
8142
8157
|
formData: formData,
|
|
8143
8158
|
}));
|
|
8144
|
-
resetForm(isFinalStep, response);
|
|
8159
|
+
resetForm({ isFinalStep, response, leadForm, setStatusInfo });
|
|
8145
8160
|
}
|
|
8146
8161
|
}
|
|
8147
8162
|
catch (ex) {
|
|
@@ -8157,8 +8172,22 @@
|
|
|
8157
8172
|
handleSubmit,
|
|
8158
8173
|
};
|
|
8159
8174
|
};
|
|
8160
|
-
const resetForm = (isFinalStep, response) => {
|
|
8161
|
-
if (isFinalStep && response.ok) {
|
|
8175
|
+
const resetForm = ({ isFinalStep, response, leadForm, setStatusInfo, }) => {
|
|
8176
|
+
if (isFinalStep && response.ok && leadForm !== null) {
|
|
8177
|
+
const regionRetail = leadForm?.regionRetail?.text;
|
|
8178
|
+
const addressRetail = leadForm?.addressRetail?.text;
|
|
8179
|
+
const cardCategory = leadForm?.cardCategory?.text;
|
|
8180
|
+
const calculator = {
|
|
8181
|
+
monthsValue: leadForm?.calculator?.monthsValue,
|
|
8182
|
+
moneyValue: leadForm?.calculator?.moneyValue,
|
|
8183
|
+
isAnnuity: leadForm?.calculator?.isAnnuity,
|
|
8184
|
+
};
|
|
8185
|
+
setStatusInfo({
|
|
8186
|
+
regionRetail,
|
|
8187
|
+
addressRetail,
|
|
8188
|
+
cardCategory,
|
|
8189
|
+
calculator,
|
|
8190
|
+
});
|
|
8162
8191
|
globalThis.localStorage.removeItem('leadForm');
|
|
8163
8192
|
}
|
|
8164
8193
|
};
|
|
@@ -10399,7 +10428,7 @@
|
|
|
10399
10428
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10400
10429
|
});
|
|
10401
10430
|
|
|
10402
|
-
const packageVersion = "0.14.
|
|
10431
|
+
const packageVersion = "0.14.705";
|
|
10403
10432
|
|
|
10404
10433
|
exports.Blocks = Blocks;
|
|
10405
10434
|
exports.ContentPage = ContentPage;
|