@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -2930,7 +2930,7 @@
|
|
|
2930
2930
|
|
|
2931
2931
|
function normalizeWithMask(value, pattern) {
|
|
2932
2932
|
const valueNumbers = value.replace(/\D/g, '');
|
|
2933
|
-
if (valueNumbers === '' ||
|
|
2933
|
+
if (valueNumbers === '' || valueNumbers.length === pattern.length) {
|
|
2934
2934
|
return value;
|
|
2935
2935
|
}
|
|
2936
2936
|
const patternInArr = [...pattern];
|
|
@@ -4087,8 +4087,10 @@
|
|
|
4087
4087
|
|
|
4088
4088
|
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) })));
|
|
4089
4089
|
|
|
4090
|
-
const SnilsInput = JSX(({ children, onChange, ...inputProps }) => {
|
|
4091
|
-
const handleChange = useCallback((v) =>
|
|
4090
|
+
const SnilsInput = JSX(({ children, onChange, maxLength, ...inputProps }) => {
|
|
4091
|
+
const handleChange = useCallback((v) => maxLength
|
|
4092
|
+
? v.length <= maxLength && onChange?.(normalizeWithMask(v, '___-___-___ __'))
|
|
4093
|
+
: onChange?.(normalizeWithMask(v, '___-___-___ __')), [onChange]);
|
|
4092
4094
|
const handleBlur = useCallback((v) => {
|
|
4093
4095
|
if (v === '___-___-___ __') {
|
|
4094
4096
|
onChange && onChange('');
|
|
@@ -4097,9 +4099,9 @@
|
|
|
4097
4099
|
return (jsx(Input, { ...inputProps, onChange: handleChange, onFocus: (ev) => handleChange(ev?.target?.value || ''), onBlur: (ev) => handleBlur(ev?.target?.value || ''), children: children }));
|
|
4098
4100
|
});
|
|
4099
4101
|
|
|
4100
|
-
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)] })));
|
|
4102
|
+
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)] })));
|
|
4101
4103
|
|
|
4102
|
-
const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", ...getValidation(field('snils'), validatorObj.snils, input?.required), ...input })));
|
|
4104
|
+
const SnilsField = JSX(({ field, input }) => (jsx(InputSnilsControl, { label: "\u0421\u041D\u0418\u041B\u0421", maxLength: 14, ...getValidation(field('snils'), validatorObj.snils, input?.required), ...input })));
|
|
4103
4105
|
|
|
4104
4106
|
const FIELD_NAME = 'surname';
|
|
4105
4107
|
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 })));
|
|
@@ -4500,7 +4502,7 @@
|
|
|
4500
4502
|
const sendCode = (body) => fetchRetailJSON('/sms/sendCode', 'POST', body).then((res) => !isErrorResult(res, body.phoneNumber));
|
|
4501
4503
|
const isErrorResult = (res, phoneNumber) => Boolean(res) &&
|
|
4502
4504
|
typeof res !== 'string' &&
|
|
4503
|
-
Boolean(res?.errorMessage
|
|
4505
|
+
Boolean(res?.errorMessage?.startsWith(`Too many request for phoneNumber [${phoneNumber}]`));
|
|
4504
4506
|
|
|
4505
4507
|
const checkCaptcha = (body) => doRequest('/sms/checkCaptcha', 'POST', body)
|
|
4506
4508
|
.then((res) => res.text())
|
|
@@ -6816,7 +6818,7 @@
|
|
|
6816
6818
|
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" })));
|
|
6817
6819
|
|
|
6818
6820
|
const PendingStatusContent$1 = JSX(({ handleExpireTimer }) => {
|
|
6819
|
-
const [
|
|
6821
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6820
6822
|
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: [
|
|
6821
6823
|
{
|
|
6822
6824
|
label: 'Название продукта',
|
|
@@ -6824,21 +6826,21 @@
|
|
|
6824
6826
|
},
|
|
6825
6827
|
{
|
|
6826
6828
|
label: 'Категория',
|
|
6827
|
-
description:
|
|
6829
|
+
description: statusInfo?.cardCategory,
|
|
6828
6830
|
},
|
|
6829
6831
|
] }));
|
|
6830
6832
|
});
|
|
6831
6833
|
|
|
6832
6834
|
const ReworkStatusContent$1 = JSX(() => {
|
|
6833
|
-
const [
|
|
6835
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6834
6836
|
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: [
|
|
6835
6837
|
{
|
|
6836
6838
|
label: 'Регион',
|
|
6837
|
-
description:
|
|
6839
|
+
description: statusInfo?.regionRetail,
|
|
6838
6840
|
},
|
|
6839
6841
|
{
|
|
6840
6842
|
label: 'Адрес',
|
|
6841
|
-
description:
|
|
6843
|
+
description: statusInfo?.addressRetail,
|
|
6842
6844
|
},
|
|
6843
6845
|
], sectionInfo: [
|
|
6844
6846
|
{
|
|
@@ -6849,7 +6851,7 @@
|
|
|
6849
6851
|
});
|
|
6850
6852
|
|
|
6851
6853
|
const SuccessStatusContent$1 = JSX(() => {
|
|
6852
|
-
const [
|
|
6854
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
6853
6855
|
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: [
|
|
6854
6856
|
{
|
|
6855
6857
|
label: 'Название продукта',
|
|
@@ -6865,11 +6867,11 @@
|
|
|
6865
6867
|
},
|
|
6866
6868
|
{
|
|
6867
6869
|
label: 'Срок кредита',
|
|
6868
|
-
description:
|
|
6870
|
+
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
6869
6871
|
},
|
|
6870
6872
|
{
|
|
6871
6873
|
label: 'Тип платежа',
|
|
6872
|
-
description:
|
|
6874
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
6873
6875
|
},
|
|
6874
6876
|
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
6875
6877
|
});
|
|
@@ -6984,7 +6986,7 @@
|
|
|
6984
6986
|
creditInRshbCd: undefined,
|
|
6985
6987
|
},
|
|
6986
6988
|
{
|
|
6987
|
-
regionRetail: '',
|
|
6989
|
+
regionRetail: { key: '', text: '' },
|
|
6988
6990
|
addressRetail: {
|
|
6989
6991
|
key: '',
|
|
6990
6992
|
text: '',
|
|
@@ -7255,6 +7257,8 @@
|
|
|
7255
7257
|
const [taskId] = useLocalStorage('taskId');
|
|
7256
7258
|
const [profileId] = useLocalStorage('profileId');
|
|
7257
7259
|
const [participantId] = useLocalStorage('participantId');
|
|
7260
|
+
const [, setStatusInfo] = useLocalStorage('statusInfo');
|
|
7261
|
+
const [leadForm] = useLocalStorage('leadForm');
|
|
7258
7262
|
const handleSubmit = useCallback(async (formData) => {
|
|
7259
7263
|
const feedbackValidator = objectValidator(getObjectValidator(calculateInputs$1(getValue$2(formData))(inputs, step)));
|
|
7260
7264
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
@@ -7270,7 +7274,7 @@
|
|
|
7270
7274
|
step,
|
|
7271
7275
|
formData: formData,
|
|
7272
7276
|
}));
|
|
7273
|
-
resetForm$1(isFinalStep, response);
|
|
7277
|
+
resetForm$1({ isFinalStep, response, leadForm, setStatusInfo });
|
|
7274
7278
|
}
|
|
7275
7279
|
}
|
|
7276
7280
|
catch (ex) {
|
|
@@ -7286,8 +7290,17 @@
|
|
|
7286
7290
|
handleSubmit,
|
|
7287
7291
|
};
|
|
7288
7292
|
};
|
|
7289
|
-
const resetForm$1 = (isFinalStep, response) => {
|
|
7290
|
-
if (isFinalStep && response.ok) {
|
|
7293
|
+
const resetForm$1 = ({ isFinalStep, response, leadForm, setStatusInfo, }) => {
|
|
7294
|
+
if (isFinalStep && response.ok && leadForm) {
|
|
7295
|
+
const regionRetail = leadForm?.regionRetail?.text;
|
|
7296
|
+
const addressRetail = leadForm?.addressRetail?.text;
|
|
7297
|
+
const cardCategory = leadForm?.cardCategory?.text;
|
|
7298
|
+
const calculator = {
|
|
7299
|
+
monthsValue: leadForm?.calculator?.monthsValue,
|
|
7300
|
+
moneyValue: leadForm?.calculator?.moneyValue,
|
|
7301
|
+
isAnnuity: leadForm?.calculator?.isAnnuity,
|
|
7302
|
+
};
|
|
7303
|
+
setStatusInfo({ regionRetail, addressRetail, cardCategory, calculator });
|
|
7291
7304
|
globalThis.localStorage.removeItem('leadForm');
|
|
7292
7305
|
}
|
|
7293
7306
|
};
|
|
@@ -7711,7 +7724,7 @@
|
|
|
7711
7724
|
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" })));
|
|
7712
7725
|
|
|
7713
7726
|
const PendingStatusContent = JSX(({ handleExpireTimer }) => {
|
|
7714
|
-
const [
|
|
7727
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7715
7728
|
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: [
|
|
7716
7729
|
{
|
|
7717
7730
|
label: 'Название продукта',
|
|
@@ -7723,29 +7736,29 @@
|
|
|
7723
7736
|
},
|
|
7724
7737
|
{
|
|
7725
7738
|
label: 'Сумма',
|
|
7726
|
-
description: `${
|
|
7739
|
+
description: `${statusInfo?.calculator?.moneyValue?.toLocaleString() ?? '0'} ₽`,
|
|
7727
7740
|
},
|
|
7728
7741
|
{
|
|
7729
7742
|
label: 'Срок кредита',
|
|
7730
|
-
description: `${
|
|
7743
|
+
description: `${statusInfo?.calculator?.monthsValue ?? '0'} мес`,
|
|
7731
7744
|
},
|
|
7732
7745
|
{
|
|
7733
7746
|
label: 'Тип платежа',
|
|
7734
|
-
description:
|
|
7747
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
7735
7748
|
},
|
|
7736
7749
|
] }));
|
|
7737
7750
|
});
|
|
7738
7751
|
|
|
7739
7752
|
const ReworkStatusContent = JSX(() => {
|
|
7740
|
-
const [
|
|
7753
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7741
7754
|
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: [
|
|
7742
7755
|
{
|
|
7743
7756
|
label: 'Регион',
|
|
7744
|
-
description:
|
|
7757
|
+
description: statusInfo?.regionRetail,
|
|
7745
7758
|
},
|
|
7746
7759
|
{
|
|
7747
7760
|
label: 'Адрес',
|
|
7748
|
-
description:
|
|
7761
|
+
description: statusInfo?.addressRetail,
|
|
7749
7762
|
},
|
|
7750
7763
|
], sectionInfo: [
|
|
7751
7764
|
{
|
|
@@ -7756,7 +7769,7 @@
|
|
|
7756
7769
|
});
|
|
7757
7770
|
|
|
7758
7771
|
const SuccessStatusContent = JSX(() => {
|
|
7759
|
-
const [
|
|
7772
|
+
const [statusInfo] = useLocalStorage('statusInfo');
|
|
7760
7773
|
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: [
|
|
7761
7774
|
{
|
|
7762
7775
|
label: 'Название продукта',
|
|
@@ -7772,11 +7785,11 @@
|
|
|
7772
7785
|
},
|
|
7773
7786
|
{
|
|
7774
7787
|
label: 'Срок кредита',
|
|
7775
|
-
description:
|
|
7788
|
+
description: statusInfo?.calculator?.monthsValue + ' мес',
|
|
7776
7789
|
},
|
|
7777
7790
|
{
|
|
7778
7791
|
label: 'Тип платежа',
|
|
7779
|
-
description:
|
|
7792
|
+
description: statusInfo?.calculator?.isAnnuity ? 'Аннуитетный' : 'Дифференцированный',
|
|
7780
7793
|
},
|
|
7781
7794
|
], buttonText: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E" }));
|
|
7782
7795
|
});
|
|
@@ -7892,7 +7905,7 @@
|
|
|
7892
7905
|
creditInRshbCd: undefined,
|
|
7893
7906
|
},
|
|
7894
7907
|
{
|
|
7895
|
-
regionRetail: '',
|
|
7908
|
+
regionRetail: { key: '', text: '' },
|
|
7896
7909
|
addressRetail: undefined,
|
|
7897
7910
|
bankEmployeeCode: undefined,
|
|
7898
7911
|
},
|
|
@@ -8134,6 +8147,8 @@
|
|
|
8134
8147
|
const [taskId] = useLocalStorage('taskId');
|
|
8135
8148
|
const [profileId] = useLocalStorage('profileId');
|
|
8136
8149
|
const [participantId] = useLocalStorage('participantId');
|
|
8150
|
+
const [, setStatusInfo] = useLocalStorage('statusInfo');
|
|
8151
|
+
const [leadForm] = useLocalStorage('leadForm');
|
|
8137
8152
|
const handleSubmit = useCallback(async (formData) => {
|
|
8138
8153
|
const feedbackValidator = objectValidator(getObjectValidator(calculateInputs(getValue(formData))(inputs, step)));
|
|
8139
8154
|
if (!isValidationSuccess(feedbackValidator(formData))) {
|
|
@@ -8149,7 +8164,7 @@
|
|
|
8149
8164
|
step,
|
|
8150
8165
|
formData: formData,
|
|
8151
8166
|
}));
|
|
8152
|
-
resetForm(isFinalStep, response);
|
|
8167
|
+
resetForm({ isFinalStep, response, leadForm, setStatusInfo });
|
|
8153
8168
|
}
|
|
8154
8169
|
}
|
|
8155
8170
|
catch (ex) {
|
|
@@ -8165,8 +8180,22 @@
|
|
|
8165
8180
|
handleSubmit,
|
|
8166
8181
|
};
|
|
8167
8182
|
};
|
|
8168
|
-
const resetForm = (isFinalStep, response) => {
|
|
8169
|
-
if (isFinalStep && response.ok) {
|
|
8183
|
+
const resetForm = ({ isFinalStep, response, leadForm, setStatusInfo, }) => {
|
|
8184
|
+
if (isFinalStep && response.ok && leadForm !== null) {
|
|
8185
|
+
const regionRetail = leadForm?.regionRetail?.text;
|
|
8186
|
+
const addressRetail = leadForm?.addressRetail?.text;
|
|
8187
|
+
const cardCategory = leadForm?.cardCategory?.text;
|
|
8188
|
+
const calculator = {
|
|
8189
|
+
monthsValue: leadForm?.calculator?.monthsValue,
|
|
8190
|
+
moneyValue: leadForm?.calculator?.moneyValue,
|
|
8191
|
+
isAnnuity: leadForm?.calculator?.isAnnuity,
|
|
8192
|
+
};
|
|
8193
|
+
setStatusInfo({
|
|
8194
|
+
regionRetail,
|
|
8195
|
+
addressRetail,
|
|
8196
|
+
cardCategory,
|
|
8197
|
+
calculator,
|
|
8198
|
+
});
|
|
8170
8199
|
globalThis.localStorage.removeItem('leadForm');
|
|
8171
8200
|
}
|
|
8172
8201
|
};
|
|
@@ -10776,7 +10805,7 @@
|
|
|
10776
10805
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10777
10806
|
});
|
|
10778
10807
|
|
|
10779
|
-
const packageVersion = "0.14.
|
|
10808
|
+
const packageVersion = "0.14.705";
|
|
10780
10809
|
|
|
10781
10810
|
exports.Blocks = Blocks;
|
|
10782
10811
|
exports.ContentPage = ContentPage;
|