@redneckz/wildless-cms-uni-blocks 0.14.664 → 0.14.666
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/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +97 -62
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/bundle/components/CreditForm/utils.d.ts +7 -1
- package/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/ContentPage/useContentPageData.js +1 -1
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/CreditCardForm/CreditCardForm.js +2 -0
- package/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.js +8 -2
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/formStateMap.js +2 -2
- package/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.js +8 -2
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditForm/utils.d.ts +7 -1
- package/dist/components/CreditForm/utils.js +9 -3
- package/dist/components/CreditForm/utils.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
- package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/ui-kit/FormField/getField.js +4 -4
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +2 -2
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/ContentPage/useContentPageData.js +1 -1
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/CreditCardForm/CreditCardForm.js +3 -1
- package/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.js +8 -2
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/formStateMap.js +2 -2
- package/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.js +8 -2
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditForm/utils.d.ts +7 -1
- package/lib/components/CreditForm/utils.js +9 -3
- package/lib/components/CreditForm/utils.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
- package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +4 -4
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +2 -2
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +97 -62
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/mobile/bundle/components/CreditForm/utils.d.ts +7 -1
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js +2 -0
- package/mobile/dist/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +8 -2
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/formStateMap.js +2 -2
- package/mobile/dist/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js +8 -2
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/utils.d.ts +7 -1
- package/mobile/dist/components/CreditForm/utils.js +9 -3
- package/mobile/dist/components/CreditForm/utils.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +18 -0
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js +4 -4
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +2 -2
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js +3 -1
- package/mobile/lib/components/CreditCardForm/CreditCardForm.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +2 -2
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +8 -2
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +2 -2
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/formStateMap.js +2 -2
- package/mobile/lib/components/CreditForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js +8 -2
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/utils.d.ts +7 -1
- package/mobile/lib/components/CreditForm/utils.js +9 -3
- package/mobile/lib/components/CreditForm/utils.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +10 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +16 -0
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js +4 -4
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +2 -2
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/SubmitButton.js +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js +2 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -1
- package/mobile/src/components/ContentPage/useContentPageData.ts +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +14 -2
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/mobile/src/components/CreditForm/formStateMap.tsx +2 -2
- package/mobile/src/components/CreditForm/getThirdStepData.ts +14 -2
- package/mobile/src/components/CreditForm/utils.ts +9 -3
- package/mobile/src/ui-kit/FormField/Fields/{OtherPayments.tsx → MandatoryPaymentsField.tsx} +2 -2
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
- package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +4 -4
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
- package/mobile/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +6 -5
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +5 -1
- package/src/components/ContentPage/useContentPageData.ts +1 -1
- package/src/components/CreditCardForm/CreditCardForm.fixture.tsx +11 -0
- package/src/components/CreditCardForm/CreditCardForm.tsx +4 -1
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +2 -2
- package/src/components/CreditCardForm/formStateMap.tsx +2 -2
- package/src/components/CreditCardForm/getFourthStepData.ts +14 -2
- package/src/components/CreditForm/creditFormStepsData.tsx +2 -2
- package/src/components/CreditForm/formStateMap.tsx +2 -2
- package/src/components/CreditForm/getThirdStepData.ts +14 -2
- package/src/components/CreditForm/utils.ts +9 -3
- package/src/ui-kit/FormField/Fields/{OtherPayments.tsx → MandatoryPaymentsField.tsx} +2 -2
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +25 -9
- package/src/ui-kit/FormField/Fields/WagesField.tsx +31 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +5 -1
- package/src/ui-kit/FormField/getField.tsx +4 -4
- package/src/ui-kit/FormField/getObjectValidator.tsx +2 -2
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +1 -1
- package/src/ui-kit/VerifyPhoneDialog/SubmitButton.tsx +1 -1
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +6 -5
- package/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
- package/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
- package/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
- package/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
- package/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/mobile/bundle/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/bundle/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js +0 -9
- package/mobile/dist/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryIncome.js.map +0 -1
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.d.ts +0 -2
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js +0 -7
- package/mobile/lib/ui-kit/FormField/Fields/OtherPayments.js.map +0 -1
- package/mobile/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
- package/src/ui-kit/FormField/Fields/MandatoryIncome.tsx +0 -15
|
@@ -1538,8 +1538,8 @@
|
|
|
1538
1538
|
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
1539
1539
|
retirementIncome: defaultValidator(),
|
|
1540
1540
|
otherIncome: defaultValidator(),
|
|
1541
|
-
|
|
1542
|
-
|
|
1541
|
+
wages: defaultValidator(),
|
|
1542
|
+
mandatoryPayments: defaultValidator(),
|
|
1543
1543
|
disablePeopleFlg: defaultValidator(),
|
|
1544
1544
|
bankruptcyFlg: defaultValidator(),
|
|
1545
1545
|
shareholderFlg: defaultValidator(),
|
|
@@ -2477,7 +2477,7 @@
|
|
|
2477
2477
|
return (jsx(SelectControl, { label: "\u041D\u0430\u0441\u0435\u043B\u0435\u043D\u043D\u044B\u0439 \u043F\u0443\u043D\u043A\u0442", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0440\u043E\u0434, \u0433\u0434\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D \u0441\u0435\u0440\u0432\u0438\u0441", options: localities, ...getValidation(field('localities'), validatorObj.localities, input?.required), isSearch: true }));
|
|
2478
2478
|
});
|
|
2479
2479
|
|
|
2480
|
-
const
|
|
2480
|
+
const MandatoryPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('mandatoryPayments'), validatorObj.mandatoryPayments, input?.required), ...input })));
|
|
2481
2481
|
|
|
2482
2482
|
const METHODS_OF_OBTAIN = [
|
|
2483
2483
|
{ id: 'office', text: 'В отделении Банка' },
|
|
@@ -2509,8 +2509,6 @@
|
|
|
2509
2509
|
|
|
2510
2510
|
const OtherIncomeField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherIncome'), validatorObj.otherIncome, input?.required), ...input })));
|
|
2511
2511
|
|
|
2512
|
-
const OtherPaymentsField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0432\u044B\u043F\u043B\u0430\u0442\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('otherPayments'), validatorObj.otherPayments, input?.required), ...input })));
|
|
2513
|
-
|
|
2514
2512
|
const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
|
|
2515
2513
|
|
|
2516
2514
|
const MAX_PART = 100;
|
|
@@ -3260,7 +3258,15 @@
|
|
|
3260
3258
|
return (jsx(SelectControl, { label: "\u0420\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: useMemo(() => regions?.map(({ region = '' }) => ({ key: region, text: region })), [regions]), ...getValidation(field('regionRetail'), validatorObj.regionRetail, input?.required) }));
|
|
3261
3259
|
});
|
|
3262
3260
|
|
|
3263
|
-
const RetirementIncomeField = JSX(({ field, input }) =>
|
|
3261
|
+
const RetirementIncomeField = JSX(({ field, input }) => {
|
|
3262
|
+
const currentWages = field('wages')?.value;
|
|
3263
|
+
const onChange = useCallback((_) => {
|
|
3264
|
+
const incomesSum = Number(_) + Number(currentWages || 0);
|
|
3265
|
+
field('retirementIncome')?.onChange?.(_);
|
|
3266
|
+
field('incomeAverage')?.onChange?.(String(incomesSum));
|
|
3267
|
+
}, [currentWages]);
|
|
3268
|
+
return (jsx(InputControl, { label: "\u041F\u0435\u043D\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u0434\u043E\u0445\u043E\u0434\u044B", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('retirementIncome'), validatorObj.retirementIncome, input?.required), ...input, onChange: onChange }));
|
|
3269
|
+
});
|
|
3264
3270
|
|
|
3265
3271
|
const SecondaryPhoneField = JSX(({ field }) => {
|
|
3266
3272
|
const fieldPhone = field('secondaryPhone');
|
|
@@ -3325,6 +3331,16 @@
|
|
|
3325
3331
|
return (jsx("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: jsx(RadioButtonGroup, { className: "whitespace-normal", orientation: "horizontal", items: VED_TYPES, value: value, onChange: (_) => onChange && onChange(_) }) }));
|
|
3326
3332
|
});
|
|
3327
3333
|
|
|
3334
|
+
const WagesField = JSX(({ field, input }) => {
|
|
3335
|
+
const currentRetirementIncome = field('retirementIncome')?.value;
|
|
3336
|
+
const onChange = useCallback((_) => {
|
|
3337
|
+
const incomesSum = Number(_) + Number(currentRetirementIncome || 0);
|
|
3338
|
+
field('wages')?.onChange?.(_);
|
|
3339
|
+
field('incomeAverage')?.onChange?.(String(incomesSum));
|
|
3340
|
+
}, [currentRetirementIncome]);
|
|
3341
|
+
return (jsx(InputControl, { label: "\u0421\u043E\u0432\u043E\u043A\u0443\u043F\u043D\u044B\u0439 \u0434\u043E\u0445\u043E\u0434 \u0432 \u043C\u0435\u0441\u044F\u0446 \u043F\u043E\u0441\u043B\u0435 \u0432\u044B\u0447\u0435\u0442\u0430 \u043D\u0430\u043B\u043E\u0433\u043E\u0432 (\u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0430, \u043F\u0440\u0435\u043C\u0438\u0438)", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", type: "number", ...getValidation(field('wages'), validatorObj.wages, input?.required), ...input, onChange: onChange }));
|
|
3342
|
+
});
|
|
3343
|
+
|
|
3328
3344
|
function isRenderField({ input, field, }) {
|
|
3329
3345
|
const { condition } = input;
|
|
3330
3346
|
const { value } = field(condition?.name || '');
|
|
@@ -3412,8 +3428,8 @@
|
|
|
3412
3428
|
participantDateRegistration: jsx(ParticipantDateRegistrationField, { field: field, input: input }),
|
|
3413
3429
|
retirementIncome: jsx(RetirementIncomeField, { field: field, input: input }),
|
|
3414
3430
|
otherIncome: jsx(OtherIncomeField, { field: field, input: input }),
|
|
3415
|
-
|
|
3416
|
-
|
|
3431
|
+
wages: jsx(WagesField, { field: field, input: input }),
|
|
3432
|
+
mandatoryPayments: jsx(MandatoryPaymentsField, { field: field, input: input }),
|
|
3417
3433
|
disablePeopleFlg: jsx(DisablePeopleFlgField, { field: field, input: input }),
|
|
3418
3434
|
bankruptcyFlg: jsx(BankruptcyFlgField, { field: field, input: input }),
|
|
3419
3435
|
shareholderFlg: jsx(ShareholderFlgField, { field: field, input: input }),
|
|
@@ -3855,11 +3871,11 @@
|
|
|
3855
3871
|
});
|
|
3856
3872
|
const getInputStyle = (index, values, hasError = false) => {
|
|
3857
3873
|
const isInputEmpty = !values[index];
|
|
3858
|
-
return `w-
|
|
3874
|
+
return `w-20 h-24 text-5xl text-center p-lg m-2 border ${hasError && isInputEmpty ? 'border-error' : 'border-gray'} rounded-md caret-transparent outline-none`;
|
|
3859
3875
|
};
|
|
3860
3876
|
|
|
3861
3877
|
const SubmitButton = JSX(({ isDisabled, onClick, text }) => {
|
|
3862
|
-
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-
|
|
3878
|
+
return (jsx(Button, { type: "button", onClick: onClick, disabled: isDisabled, children: jsx(Text, { font: "font-normal", children: text }) }));
|
|
3863
3879
|
});
|
|
3864
3880
|
|
|
3865
3881
|
const checkCode = async (body) => doRequest('/sms/checkCode', 'POST', body).then(saveToken);
|
|
@@ -3938,10 +3954,10 @@
|
|
|
3938
3954
|
useEffect(() => {
|
|
3939
3955
|
sendCode();
|
|
3940
3956
|
}, []);
|
|
3941
|
-
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-
|
|
3957
|
+
return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0", children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: title, description: description, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$2(timeNextReq, setTimeNextReq, sendCode), jsx(RichText, { itemSize: "list-s", __html: __html }), renderTextButton(textButton, isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
|
|
3942
3958
|
});
|
|
3943
3959
|
const renderTextButton = (textButton, isDisabled, handleSubmit) => textButton ? (jsx(SubmitButton, { isDisabled: isDisabled, onClick: handleSubmit, text: textButton })) : null;
|
|
3944
|
-
const renderText$2 = (timeNextReq, setTimeNextReq, sendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-
|
|
3960
|
+
const renderText$2 = (timeNextReq, setTimeNextReq, sendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", 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, { className: "text-base ml-1", time: timeNextReq, setTime: setTimeNextReq })] })) : (jsx(LinkButton, { onClick: sendCode, className: "text-primary-main", children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }));
|
|
3945
3961
|
|
|
3946
3962
|
const useVerifyPhoneDialog = () => {
|
|
3947
3963
|
const { open, close } = useDialogManager();
|
|
@@ -4057,8 +4073,14 @@
|
|
|
4057
4073
|
organizationAddress: 'WORK',
|
|
4058
4074
|
};
|
|
4059
4075
|
const fieldsNamesToIncomeKeysMap = {
|
|
4060
|
-
|
|
4061
|
-
|
|
4076
|
+
incomeAverage: 'INCOME_AVERAGE',
|
|
4077
|
+
mandatoryPayments: 'MANDATORY_PAYMENTS',
|
|
4078
|
+
additionalIncome: 'ADDITIONAL_INCOME',
|
|
4079
|
+
otherIncome: 'OTHER_INCOME',
|
|
4080
|
+
otherPayments: 'OTHER_PAYMENTS',
|
|
4081
|
+
rentalIncome: 'RENTAL_INCOME',
|
|
4082
|
+
wages: 'WAGES',
|
|
4083
|
+
retirementIncome: 'RETIREMENT_INCOME',
|
|
4062
4084
|
};
|
|
4063
4085
|
const getParticipantContacts = (fields) => Object.entries(fields).reduce((acc, [key, value]) => {
|
|
4064
4086
|
if (key in fieldsNamesToContactKeysMap) {
|
|
@@ -4099,7 +4121,7 @@
|
|
|
4099
4121
|
incomeTypeCd: {
|
|
4100
4122
|
key: fieldsNamesToIncomeKeysMap[key],
|
|
4101
4123
|
},
|
|
4102
|
-
value,
|
|
4124
|
+
value: Number(value || 0),
|
|
4103
4125
|
},
|
|
4104
4126
|
];
|
|
4105
4127
|
}
|
|
@@ -5951,6 +5973,40 @@
|
|
|
5951
5973
|
}
|
|
5952
5974
|
}, type: "button", ...(isUnfolded ? getAspectsAttributes(data) : {}), children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
5953
5975
|
|
|
5976
|
+
const PORTAL_NATURAL_URL = '/';
|
|
5977
|
+
const UPDATING_INTERVAL = 60000 * 4;
|
|
5978
|
+
const updateRefreshToken = () => {
|
|
5979
|
+
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
5980
|
+
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
5981
|
+
const taskId = globalThis.localStorage.getItem('taskId');
|
|
5982
|
+
if (!accessToken || !refreshToken || !taskId) {
|
|
5983
|
+
globalThis.location.href = PORTAL_NATURAL_URL;
|
|
5984
|
+
return () => null;
|
|
5985
|
+
}
|
|
5986
|
+
const updateTokenRequest = async () => {
|
|
5987
|
+
const res = await doRequest('/auth/refresh', 'POST', {
|
|
5988
|
+
// eslint-disable-next-line camelcase
|
|
5989
|
+
refresh_token: refreshToken,
|
|
5990
|
+
// eslint-disable-next-line camelcase
|
|
5991
|
+
access_token: accessToken,
|
|
5992
|
+
});
|
|
5993
|
+
if (res instanceof Response) {
|
|
5994
|
+
handleStatus(res.status);
|
|
5995
|
+
return;
|
|
5996
|
+
}
|
|
5997
|
+
globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
|
|
5998
|
+
globalThis.sessionStorage.setItem('accessToken', res.access_token);
|
|
5999
|
+
};
|
|
6000
|
+
updateTokenRequest();
|
|
6001
|
+
const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
|
|
6002
|
+
return () => clearInterval(timer);
|
|
6003
|
+
};
|
|
6004
|
+
const handleStatus = (status) => {
|
|
6005
|
+
if (status == 401) {
|
|
6006
|
+
globalThis.location.href = PORTAL_NATURAL_URL;
|
|
6007
|
+
}
|
|
6008
|
+
};
|
|
6009
|
+
|
|
5954
6010
|
const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
|
|
5955
6011
|
|
|
5956
6012
|
const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
|
|
@@ -6153,8 +6209,8 @@
|
|
|
6153
6209
|
dependents: undefined,
|
|
6154
6210
|
familyMembers: undefined,
|
|
6155
6211
|
confirmationIncome: { key: '', text: '' },
|
|
6156
|
-
|
|
6157
|
-
|
|
6212
|
+
wages: undefined,
|
|
6213
|
+
mandatoryPayments: undefined,
|
|
6158
6214
|
snils: '',
|
|
6159
6215
|
armyIdFlg: false,
|
|
6160
6216
|
},
|
|
@@ -6270,14 +6326,20 @@
|
|
|
6270
6326
|
};
|
|
6271
6327
|
|
|
6272
6328
|
const getFourthStepData$1 = (formData) => {
|
|
6273
|
-
const { familyStatus, dependents, familyMembers,
|
|
6329
|
+
const { familyStatus, dependents, familyMembers, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
|
|
6274
6330
|
return {
|
|
6275
6331
|
maritalStatusCd: familyStatus,
|
|
6276
6332
|
totalDependents: familyMembers,
|
|
6277
6333
|
otherDependents: dependents,
|
|
6278
6334
|
participantIncomes: getParticipantIncomes({
|
|
6279
|
-
|
|
6335
|
+
wages,
|
|
6336
|
+
mandatoryPayments,
|
|
6337
|
+
incomeAverage,
|
|
6338
|
+
additionalIncome,
|
|
6339
|
+
otherIncome,
|
|
6280
6340
|
otherPayments,
|
|
6341
|
+
rentalIncome,
|
|
6342
|
+
retirementIncome,
|
|
6281
6343
|
}),
|
|
6282
6344
|
snils: snils?.replaceAll(' ', ''),
|
|
6283
6345
|
armyIdFlg,
|
|
@@ -6668,11 +6730,11 @@
|
|
|
6668
6730
|
},
|
|
6669
6731
|
{
|
|
6670
6732
|
columns: 1,
|
|
6671
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6733
|
+
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
6672
6734
|
},
|
|
6673
6735
|
{
|
|
6674
6736
|
columns: 1,
|
|
6675
|
-
inputs: [{ fieldType: 'common', name: '
|
|
6737
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
|
|
6676
6738
|
},
|
|
6677
6739
|
{
|
|
6678
6740
|
columns: 1,
|
|
@@ -6810,6 +6872,7 @@
|
|
|
6810
6872
|
];
|
|
6811
6873
|
const CreditCardForm = JSX(({ className, ...rest }) => {
|
|
6812
6874
|
const [step, setStep] = useState(0);
|
|
6875
|
+
useEffect(updateRefreshToken, []);
|
|
6813
6876
|
const handleNextStep = useCallback(() => {
|
|
6814
6877
|
setStep((_) => Math.min(_ + 1, WIZARD_STEPS$1));
|
|
6815
6878
|
}, []);
|
|
@@ -6822,40 +6885,6 @@
|
|
|
6822
6885
|
return (jsx(BlockWrapper, { className: style('bg-transparent', className), defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "container grid grid-cols-12", children: [isFormFinished ? null : (jsx(CreditCardFormProgress, { stepsTitles: WIZARD_TITLES$1, step: step, totalSteps: WIZARD_STEPS$1 })), jsx("div", { className: "py-lg px-5xl mt-2xs bg-white col-span-12", children: jsx(CreditCardFormStep, { step: step, sections: sections, onNextStep: handleNextStep, onPrevStep: handlePrevStep, isFormFinished: isFormFinished, finishForm: setIsFormFinished }, String(step)) })] }) }));
|
|
6823
6886
|
});
|
|
6824
6887
|
|
|
6825
|
-
const PORTAL_NATURAL_URL = '/';
|
|
6826
|
-
const UPDATING_INTERVAL = 60000 * 4;
|
|
6827
|
-
const updateRefreshToken = () => {
|
|
6828
|
-
const refreshToken = globalThis.sessionStorage?.getItem('refreshToken');
|
|
6829
|
-
const accessToken = globalThis.sessionStorage?.getItem('accessToken');
|
|
6830
|
-
const taskId = globalThis.localStorage.getItem('taskId');
|
|
6831
|
-
if (!accessToken || !refreshToken || !taskId) {
|
|
6832
|
-
globalThis.location.href = PORTAL_NATURAL_URL;
|
|
6833
|
-
return () => null;
|
|
6834
|
-
}
|
|
6835
|
-
const updateTokenRequest = async () => {
|
|
6836
|
-
const res = await doRequest('/auth/refresh', 'POST', {
|
|
6837
|
-
// eslint-disable-next-line camelcase
|
|
6838
|
-
refresh_token: refreshToken,
|
|
6839
|
-
// eslint-disable-next-line camelcase
|
|
6840
|
-
access_token: accessToken,
|
|
6841
|
-
});
|
|
6842
|
-
if (res instanceof Response) {
|
|
6843
|
-
handleStatus(res.status);
|
|
6844
|
-
return;
|
|
6845
|
-
}
|
|
6846
|
-
globalThis.sessionStorage.setItem('refreshToken', res.refresh_token);
|
|
6847
|
-
globalThis.sessionStorage.setItem('accessToken', res.access_token);
|
|
6848
|
-
};
|
|
6849
|
-
updateTokenRequest();
|
|
6850
|
-
const timer = setInterval(updateTokenRequest, UPDATING_INTERVAL);
|
|
6851
|
-
return () => clearInterval(timer);
|
|
6852
|
-
};
|
|
6853
|
-
const handleStatus = (status) => {
|
|
6854
|
-
if (status == 401) {
|
|
6855
|
-
globalThis.location.href = PORTAL_NATURAL_URL;
|
|
6856
|
-
}
|
|
6857
|
-
};
|
|
6858
|
-
|
|
6859
6888
|
const CreditFormProgress = JSX(({ step = 1, totalSteps = 5, stepsTitles = [] }) => {
|
|
6860
6889
|
const progress = useMemo(() => (step / totalSteps) * 100, [step, totalSteps]);
|
|
6861
6890
|
return (jsx("div", { className: "py-lg px-5xl bg-white col-span-12", children: jsxs("div", { children: [jsxs("span", { className: "font-bold mr-s", children: ["\u0428\u0430\u0433 ", step, " \u0438\u0437 ", totalSteps, "."] }), stepsTitles[step] || null, jsx(ProgressBar, { step: progress, showPercentage: false })] }) }));
|
|
@@ -7047,8 +7076,8 @@
|
|
|
7047
7076
|
dependents: undefined,
|
|
7048
7077
|
familyMembers: undefined,
|
|
7049
7078
|
confirmationIncome: { key: '', text: '' },
|
|
7050
|
-
|
|
7051
|
-
|
|
7079
|
+
wages: undefined,
|
|
7080
|
+
mandatoryPayments: undefined,
|
|
7052
7081
|
snils: '',
|
|
7053
7082
|
armyIdFlg: false,
|
|
7054
7083
|
},
|
|
@@ -7197,15 +7226,21 @@
|
|
|
7197
7226
|
};
|
|
7198
7227
|
|
|
7199
7228
|
const getThirdStepData = (formData) => {
|
|
7200
|
-
const { familyStatus, dependents, familyMembers, confirmationIncome,
|
|
7229
|
+
const { familyStatus, dependents, familyMembers, confirmationIncome, wages, mandatoryPayments, incomeAverage, additionalIncome, otherIncome, otherPayments, rentalIncome, retirementIncome, snils, armyIdFlg, } = formData;
|
|
7201
7230
|
return {
|
|
7202
7231
|
maritalStatusCd: familyStatus,
|
|
7203
7232
|
totalDependents: familyMembers,
|
|
7204
7233
|
incomeCertificateCd: confirmationIncome,
|
|
7205
7234
|
otherDependents: dependents,
|
|
7206
7235
|
participantIncomes: getParticipantIncomes({
|
|
7207
|
-
|
|
7236
|
+
wages,
|
|
7237
|
+
mandatoryPayments,
|
|
7238
|
+
incomeAverage,
|
|
7239
|
+
additionalIncome,
|
|
7240
|
+
otherIncome,
|
|
7208
7241
|
otherPayments,
|
|
7242
|
+
rentalIncome,
|
|
7243
|
+
retirementIncome,
|
|
7209
7244
|
}),
|
|
7210
7245
|
snils: snils?.replaceAll(' ', ''),
|
|
7211
7246
|
armyIdFlg,
|
|
@@ -7527,11 +7562,11 @@
|
|
|
7527
7562
|
},
|
|
7528
7563
|
{
|
|
7529
7564
|
columns: 1,
|
|
7530
|
-
inputs: [{ fieldType: 'common', name: '
|
|
7565
|
+
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
7531
7566
|
},
|
|
7532
7567
|
{
|
|
7533
7568
|
columns: 1,
|
|
7534
|
-
inputs: [{ fieldType: 'common', name: '
|
|
7569
|
+
inputs: [{ fieldType: 'common', name: 'mandatoryPayments', required: true }],
|
|
7535
7570
|
},
|
|
7536
7571
|
{
|
|
7537
7572
|
columns: 1,
|
|
@@ -9531,7 +9566,7 @@
|
|
|
9531
9566
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
9532
9567
|
});
|
|
9533
9568
|
|
|
9534
|
-
const packageVersion = "0.14.
|
|
9569
|
+
const packageVersion = "0.14.665";
|
|
9535
9570
|
|
|
9536
9571
|
exports.Blocks = Blocks;
|
|
9537
9572
|
exports.ContentPage = ContentPage;
|