@redneckz/wildless-cms-uni-blocks 0.14.778 → 0.14.787
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 +179 -122
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/bundle/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/bundle/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/bundle/retail/inputs.d.ts +77 -76
- package/bundle/retail/model/LeadFormState.d.ts +2 -2
- package/bundle/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/bundle/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
- package/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
- package/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js +0 -2
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js +16 -7
- package/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/dist/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/dist/components/CalculatorDeposit/normalize.js.map +1 -1
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js +30 -41
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/dist/components/CalculatorDeposit/renderRegistrationType.js +11 -7
- package/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/Header/useChatBot.js +2 -1
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
- package/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
- package/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/dist/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/dist/retail/components/Fields/AddressCourierField.js +50 -0
- package/dist/retail/components/Fields/AddressCourierField.js.map +1 -0
- package/dist/retail/inputs.d.ts +77 -76
- package/dist/retail/inputs.js +6 -1
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +2 -2
- package/dist/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/dist/ui-kit/Calculator/getDefaultParams.js +7 -1
- package/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/Calculator/renderPaymentType.js +2 -0
- package/dist/ui-kit/Calculator/renderPaymentType.js.map +1 -1
- package/dist/ui-kit/Calculator/renderPayout.js +2 -0
- package/dist/ui-kit/Calculator/renderPayout.js.map +1 -1
- package/dist/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
- package/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js +0 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.d.ts +1 -0
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js +17 -8
- package/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/lib/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/lib/components/CalculatorDeposit/normalize.js.map +1 -1
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js +32 -43
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/lib/components/CalculatorDeposit/renderRegistrationType.js +11 -7
- package/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/Header/useChatBot.js +2 -1
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
- package/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
- package/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/lib/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/lib/retail/components/Fields/AddressCourierField.js +48 -0
- package/lib/retail/components/Fields/AddressCourierField.js.map +1 -0
- package/lib/retail/inputs.d.ts +77 -76
- package/lib/retail/inputs.js +6 -1
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +2 -2
- package/lib/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/lib/ui-kit/Calculator/getDefaultParams.js +7 -1
- package/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/Calculator/renderPaymentType.js +2 -0
- package/lib/ui-kit/Calculator/renderPaymentType.js.map +1 -1
- package/lib/ui-kit/Calculator/renderPayout.js +2 -0
- package/lib/ui-kit/Calculator/renderPayout.js.map +1 -1
- package/lib/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +177 -121
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/mobile/bundle/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/mobile/bundle/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/mobile/bundle/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/mobile/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/mobile/bundle/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/mobile/bundle/retail/inputs.d.ts +77 -76
- package/mobile/bundle/retail/model/LeadFormState.d.ts +2 -2
- package/mobile/bundle/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/mobile/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
- package/mobile/dist/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
- package/mobile/dist/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +0 -2
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js +16 -7
- package/mobile/dist/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/mobile/dist/components/CalculatorDeposit/normalize.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js +30 -41
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js +11 -7
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.js +2 -1
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
- package/mobile/dist/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js +1 -1
- package/mobile/dist/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/mobile/dist/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/dist/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/mobile/dist/retail/components/Fields/AddressCourierField.js +50 -0
- package/mobile/dist/retail/components/Fields/AddressCourierField.js.map +1 -0
- package/mobile/dist/retail/inputs.d.ts +77 -76
- package/mobile/dist/retail/inputs.js +6 -1
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +2 -2
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.js +7 -1
- package/mobile/dist/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderPaymentType.js +2 -0
- package/mobile/dist/ui-kit/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/renderPayout.js +2 -0
- package/mobile/dist/ui-kit/Calculator/renderPayout.js.map +1 -1
- package/mobile/dist/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +2 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.d.ts +3 -2
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js +10 -1
- package/mobile/lib/components/ApplicationLeadForm/useApplicationLeadApi.js.map +1 -1
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js +0 -3
- package/mobile/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +0 -2
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.d.ts +1 -2
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js +17 -8
- package/mobile/lib/components/CalculatorDeposit/CalculatorDeposit.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/CalculatorDepositContent.d.ts +31 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.d.ts +1 -27
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/normalize.d.ts +2 -3
- package/mobile/lib/components/CalculatorDeposit/normalize.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +3 -3
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js +32 -43
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.js.map +1 -1
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js +11 -7
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -4
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.js +2 -1
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js +1 -1
- package/mobile/lib/retail/adaptors/getFamilyStatusAndIncomeData.js.map +1 -1
- package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js +1 -1
- package/mobile/lib/retail/components/DocumentDialog/DocumentDialog.js.map +1 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js +1 -1
- package/mobile/lib/retail/components/EsiaLoginDialog/EsiaLoginDialog.js.map +1 -1
- package/mobile/lib/retail/components/Fields/AddressCourierField.d.ts +9 -0
- package/mobile/lib/retail/components/Fields/AddressCourierField.js +48 -0
- package/mobile/lib/retail/components/Fields/AddressCourierField.js.map +1 -0
- package/mobile/lib/retail/inputs.d.ts +77 -76
- package/mobile/lib/retail/inputs.js +6 -1
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +2 -2
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.d.ts +11 -2
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.js +7 -1
- package/mobile/lib/ui-kit/Calculator/getDefaultParams.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderPaymentType.js +2 -0
- package/mobile/lib/ui-kit/Calculator/renderPaymentType.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/renderPayout.js +2 -0
- package/mobile/lib/ui-kit/Calculator/renderPayout.js.map +1 -1
- package/mobile/lib/ui-kit/Calculator/setDefaultParamsCalc.d.ts +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -0
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
- package/mobile/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +13 -1
- package/mobile/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +0 -3
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +0 -2
- package/mobile/src/components/CalculatorDeposit/CalculatorDeposit.tsx +38 -15
- package/mobile/src/components/CalculatorDeposit/CalculatorDepositContent.ts +41 -0
- package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -39
- package/mobile/src/components/CalculatorDeposit/normalize.tsx +1 -2
- package/mobile/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +65 -52
- package/mobile/src/components/CalculatorDeposit/renderRegistrationType.tsx +15 -8
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -4
- package/mobile/src/components/Header/useChatBot.ts +3 -2
- package/mobile/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +1 -1
- package/mobile/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
- package/mobile/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +8 -3
- package/mobile/src/retail/components/Fields/AddressCourierField.tsx +74 -0
- package/mobile/src/retail/inputs.tsx +10 -1
- package/mobile/src/retail/model/LeadFormState.ts +2 -2
- package/mobile/src/ui-kit/Calculator/getDefaultParams.tsx +13 -6
- package/mobile/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -11
- package/mobile/src/ui-kit/Calculator/renderPaymentType.tsx +2 -0
- package/mobile/src/ui-kit/Calculator/renderPayout.tsx +2 -0
- package/mobile/src/ui-kit/Calculator/setDefaultParamsCalc.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +2 -0
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -0
- package/src/components/ApplicationLeadForm/useApplicationLeadApi.tsx +13 -1
- package/src/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.tsx +0 -3
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +0 -2
- package/src/components/CalculatorDeposit/CalculatorDeposit.fixture.tsx +12 -0
- package/src/components/CalculatorDeposit/CalculatorDeposit.tsx +38 -15
- package/src/components/CalculatorDeposit/CalculatorDepositContent.ts +41 -0
- package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -39
- package/src/components/CalculatorDeposit/normalize.tsx +1 -2
- package/src/components/CalculatorDeposit/renderDepositParamsForm.tsx +65 -52
- package/src/components/CalculatorDeposit/renderRegistrationType.tsx +15 -8
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -4
- package/src/components/Header/useChatBot.ts +3 -2
- package/src/retail/adaptors/getFamilyStatusAndIncomeData.ts +1 -1
- package/src/retail/components/DocumentDialog/DocumentDialog.tsx +1 -1
- package/src/retail/components/EsiaLoginDialog/EsiaLoginDialog.tsx +8 -3
- package/src/retail/components/Fields/AddressCourierField.tsx +74 -0
- package/src/retail/inputs.tsx +10 -1
- package/src/retail/model/LeadFormState.ts +2 -2
- package/src/ui-kit/Calculator/getDefaultParams.tsx +13 -6
- package/src/ui-kit/Calculator/renderBinaryRadioButtonGroup.tsx +2 -11
- package/src/ui-kit/Calculator/renderPaymentType.tsx +2 -0
- package/src/ui-kit/Calculator/renderPayout.tsx +2 -0
- package/src/ui-kit/Calculator/setDefaultParamsCalc.tsx +1 -1
|
@@ -2862,6 +2862,97 @@
|
|
|
2862
2862
|
const normalizeInteger = (val = '') => val.replace(/[^\d]+/g, '');
|
|
2863
2863
|
const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
|
|
2864
2864
|
|
|
2865
|
+
const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
|
|
2866
|
+
const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
|
|
2867
|
+
|
|
2868
|
+
const AddressField = JSX(({ field, input }) => {
|
|
2869
|
+
const fieldName = input?.name || 'addressRegistration';
|
|
2870
|
+
const fieldValue = field(fieldName).value;
|
|
2871
|
+
const onDaDataChange = useCallback((item) => {
|
|
2872
|
+
field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
|
|
2873
|
+
}, []);
|
|
2874
|
+
const onChange = useCallback((value) => {
|
|
2875
|
+
field?.(fieldName)?.onChange?.({
|
|
2876
|
+
apartment: '',
|
|
2877
|
+
city: '',
|
|
2878
|
+
district: '',
|
|
2879
|
+
fullAddress: value,
|
|
2880
|
+
fiasCode: '',
|
|
2881
|
+
house: '',
|
|
2882
|
+
locality: '',
|
|
2883
|
+
okatoRegionCode: '',
|
|
2884
|
+
postcode: '',
|
|
2885
|
+
region: '',
|
|
2886
|
+
regionCode: '',
|
|
2887
|
+
street: '',
|
|
2888
|
+
qc: '',
|
|
2889
|
+
qcComplete: '',
|
|
2890
|
+
qcHouse: '',
|
|
2891
|
+
});
|
|
2892
|
+
}, []);
|
|
2893
|
+
return (jsx(DaDataInputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
2894
|
+
});
|
|
2895
|
+
const getAddressFromDaDataItem = (item) => ({
|
|
2896
|
+
apartment: item?.data?.flat,
|
|
2897
|
+
city: item?.data?.city,
|
|
2898
|
+
district: item?.data?.area_with_type,
|
|
2899
|
+
fullAddress: item?.unrestricted_value,
|
|
2900
|
+
fiasCode: item?.data?.fias_id,
|
|
2901
|
+
house: item?.data?.house,
|
|
2902
|
+
locality: item?.data?.settlement_with_type,
|
|
2903
|
+
okatoRegionCode: item?.data?.okato,
|
|
2904
|
+
postcode: item?.data?.postal_code,
|
|
2905
|
+
region: item?.data?.region,
|
|
2906
|
+
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
2907
|
+
street: item?.data?.street,
|
|
2908
|
+
qc: item?.data?.qc,
|
|
2909
|
+
qcComplete: item?.data?.qc_complete,
|
|
2910
|
+
qcHouse: item?.data?.qc_house,
|
|
2911
|
+
});
|
|
2912
|
+
|
|
2913
|
+
const AddressCourierField = UniBlock(({ field, input, source }) => {
|
|
2914
|
+
const [errorCity, setErrorCity] = useState('');
|
|
2915
|
+
const fieldValue = field('addressCourier')?.value;
|
|
2916
|
+
const currentLocality = fieldValue?.locality;
|
|
2917
|
+
const currentCity = fieldValue?.city;
|
|
2918
|
+
useEffect(() => {
|
|
2919
|
+
if ((currentCity || currentLocality) &&
|
|
2920
|
+
!source?.deliveryCities?.includes(currentCity)) {
|
|
2921
|
+
field?.('addressCourier')?.onChange?.({
|
|
2922
|
+
...fieldValue,
|
|
2923
|
+
house: '',
|
|
2924
|
+
});
|
|
2925
|
+
setErrorCity('Город недоступен для доставки');
|
|
2926
|
+
}
|
|
2927
|
+
else {
|
|
2928
|
+
setErrorCity('');
|
|
2929
|
+
}
|
|
2930
|
+
}, [currentCity, currentLocality, source]);
|
|
2931
|
+
const onDaDataChange = useCallback((item) => {
|
|
2932
|
+
field?.('addressCourier')?.onChange?.(getAddressFromDaDataItem(item));
|
|
2933
|
+
}, []);
|
|
2934
|
+
const onChange = useCallback((value) => {
|
|
2935
|
+
field?.('addressCourier')?.onChange?.({
|
|
2936
|
+
apartment: '',
|
|
2937
|
+
city: '',
|
|
2938
|
+
district: '',
|
|
2939
|
+
fullAddress: value,
|
|
2940
|
+
fiasCode: '',
|
|
2941
|
+
house: '',
|
|
2942
|
+
locality: '',
|
|
2943
|
+
okatoRegionCode: '',
|
|
2944
|
+
postcode: '',
|
|
2945
|
+
region: '',
|
|
2946
|
+
regionCode: '',
|
|
2947
|
+
street: '',
|
|
2948
|
+
qc: '',
|
|
2949
|
+
qcComplete: '',
|
|
2950
|
+
qcHouse: '',
|
|
2951
|
+
});
|
|
2952
|
+
}, []);
|
|
2953
|
+
return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...field('addressCourier'), value: fieldValue?.fullAddress, onChange: onChange, ...input, error: errorCity || field('addressCourier')?.error, onDaDataChange: onDaDataChange }));
|
|
2954
|
+
});
|
|
2955
|
+
|
|
2865
2956
|
const AddressFactField = JSX(({ field, input }) => {
|
|
2866
2957
|
const fieldName = 'addressFact';
|
|
2867
2958
|
const fieldValue = field(fieldName).value;
|
|
@@ -2912,54 +3003,6 @@
|
|
|
2912
3003
|
return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
2913
3004
|
});
|
|
2914
3005
|
|
|
2915
|
-
const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
|
|
2916
|
-
const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
|
|
2917
|
-
|
|
2918
|
-
const AddressField = JSX(({ field, input }) => {
|
|
2919
|
-
const fieldName = input?.name || 'addressRegistration';
|
|
2920
|
-
const fieldValue = field(fieldName).value;
|
|
2921
|
-
const onDaDataChange = useCallback((item) => {
|
|
2922
|
-
field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
|
|
2923
|
-
}, []);
|
|
2924
|
-
const onChange = useCallback((value) => {
|
|
2925
|
-
field?.(fieldName)?.onChange?.({
|
|
2926
|
-
apartment: '',
|
|
2927
|
-
city: '',
|
|
2928
|
-
district: '',
|
|
2929
|
-
fullAddress: value,
|
|
2930
|
-
fiasCode: '',
|
|
2931
|
-
house: '',
|
|
2932
|
-
locality: '',
|
|
2933
|
-
okatoRegionCode: '',
|
|
2934
|
-
postcode: '',
|
|
2935
|
-
region: '',
|
|
2936
|
-
regionCode: '',
|
|
2937
|
-
street: '',
|
|
2938
|
-
qc: '',
|
|
2939
|
-
qcComplete: '',
|
|
2940
|
-
qcHouse: '',
|
|
2941
|
-
});
|
|
2942
|
-
}, []);
|
|
2943
|
-
return (jsx(DaDataInputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, fieldName), label: "\u0410\u0434\u0440\u0435\u0441", ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
2944
|
-
});
|
|
2945
|
-
const getAddressFromDaDataItem = (item) => ({
|
|
2946
|
-
apartment: item?.data?.flat,
|
|
2947
|
-
city: item?.data?.city,
|
|
2948
|
-
district: item?.data?.area_with_type,
|
|
2949
|
-
fullAddress: item?.unrestricted_value,
|
|
2950
|
-
fiasCode: item?.data?.fias_id,
|
|
2951
|
-
house: item?.data?.house,
|
|
2952
|
-
locality: item?.data?.settlement_with_type,
|
|
2953
|
-
okatoRegionCode: item?.data?.okato,
|
|
2954
|
-
postcode: item?.data?.postal_code,
|
|
2955
|
-
region: item?.data?.region,
|
|
2956
|
-
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
2957
|
-
street: item?.data?.street,
|
|
2958
|
-
qc: item?.data?.qc,
|
|
2959
|
-
qcComplete: item?.data?.qc_complete,
|
|
2960
|
-
qcHouse: item?.data?.qc_house,
|
|
2961
|
-
});
|
|
2962
|
-
|
|
2963
3006
|
const AddressMatchField = JSX(({ field, input }) => {
|
|
2964
3007
|
return (jsx(CheckboxWithError, { text: "\u0410\u0434\u0440\u0435\u0441 \u0444\u0430\u043A\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u0430\u0434\u0440\u0435\u0441\u043E\u043C \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438", ...field(input?.name ?? '') }));
|
|
2965
3008
|
});
|
|
@@ -3829,7 +3872,7 @@
|
|
|
3829
3872
|
|
|
3830
3873
|
const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
|
|
3831
3874
|
const isMobileMode = useMobileMode();
|
|
3832
|
-
return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
|
|
3875
|
+
return (jsxs(Dialog, { className: "my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0 z-[101]", onClose: onClose, children: [isMobileMode ? (jsx("img", { src: src })) : (jsx("iframe", { src: `${src}#toolbar=0`, className: "w-full h-[80vh]", id: "iframe-dialog" })), jsx(Button, { className: "mx-auto mt-m", type: "button", onClick: () => {
|
|
3833
3876
|
onDocumentRead?.();
|
|
3834
3877
|
onClose?.();
|
|
3835
3878
|
}, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
|
|
@@ -3881,7 +3924,13 @@
|
|
|
3881
3924
|
const CalculatorValue = JSX(({ className, title, value, color = 'text-secondary-text', ...rest }) => (jsxs("div", { className: style(CalculatorValueStyle, className), children: [title ? (jsx(Text, { size: "text-l", font: "font-light", color: color, children: title })) : null, value ? jsx(FormatValue, { value: value, ...rest }) : jsx(Text, { size: "text-h3", children: "-" })] })));
|
|
3882
3925
|
|
|
3883
3926
|
const getDefaultParamsMin = (rateRows) => getDefaultParams([(i, acc) => i < acc, (i, prev) => i?.maxSum > prev?.maxSum], rateRows);
|
|
3884
|
-
const getDefaultParamsMax = (rateRows = [], isNewClient = false
|
|
3927
|
+
const getDefaultParamsMax = (rateRows = [], isNewClient = false, extraPercents = []) => {
|
|
3928
|
+
return {
|
|
3929
|
+
...getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient))),
|
|
3930
|
+
extraPercent: extraPercents.at(-1),
|
|
3931
|
+
extraPercents,
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3885
3934
|
const getDefaultParams = (comparators, rateRows) => {
|
|
3886
3935
|
if (!rateRows?.length) {
|
|
3887
3936
|
return undefined;
|
|
@@ -3914,10 +3963,12 @@
|
|
|
3914
3963
|
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
|
|
3915
3964
|
const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
3916
3965
|
|
|
3917
|
-
const renderBinaryRadioButtonGroup = ({ items, title,
|
|
3966
|
+
const renderBinaryRadioButtonGroup = ({ items, title, orientation = 'horizontal', value, onChange, ...rest }) => (jsxs("div", { className: "grid gap-s whitespace-nowrap lg:sm:col-span-1 col-span-2", children: [title ? (jsx("div", { role: "radiogroup", "aria-label": title, children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, jsx(RadioButtonGroup, { orientation: orientation, items: items, value: items[value ? 0 : 1].id, onChange: (_) => onChange && onChange(_ === items[0].id), ...rest })] }));
|
|
3918
3967
|
|
|
3919
3968
|
const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
|
|
3920
3969
|
...props,
|
|
3970
|
+
title: 'Тип платежа',
|
|
3971
|
+
orientation: 'vertical',
|
|
3921
3972
|
className: 'sm:flex-col',
|
|
3922
3973
|
items: [
|
|
3923
3974
|
{ id: 'annuity', text: 'Аннуитетный' },
|
|
@@ -4095,8 +4146,6 @@
|
|
|
4095
4146
|
}, { onChange });
|
|
4096
4147
|
const calcParams = getCreditCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
4097
4148
|
const paymentTypeElement = renderPaymentType({
|
|
4098
|
-
title: 'Тип платежа',
|
|
4099
|
-
orientation: 'vertical',
|
|
4100
4149
|
...field('isAnnuity'),
|
|
4101
4150
|
});
|
|
4102
4151
|
const { onChange: setMoneyValue } = field('moneyValue');
|
|
@@ -4711,6 +4760,9 @@
|
|
|
4711
4760
|
|
|
4712
4761
|
const WagesField = JSX(({ field, input }) => (jsx(DaDataInputControl, { 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", isInteger: true, ...field(input?.name ?? ''), ...input })));
|
|
4713
4762
|
|
|
4763
|
+
const DELIVERY_CITIES_REF = {
|
|
4764
|
+
$ref: '/wcms-resources/delivery-cities-data.json',
|
|
4765
|
+
};
|
|
4714
4766
|
const InputsApplicationLeadMap = {
|
|
4715
4767
|
limitedBirthday: LimitedBirthdayField,
|
|
4716
4768
|
name: NameField,
|
|
@@ -4785,7 +4837,7 @@
|
|
|
4785
4837
|
inn: DaDataInnField,
|
|
4786
4838
|
};
|
|
4787
4839
|
const InputRetailCardMap = {
|
|
4788
|
-
addressCourier:
|
|
4840
|
+
addressCourier: (props) => (jsx(AddressCourierField, { ...props, source: DELIVERY_CITIES_REF })),
|
|
4789
4841
|
paymentSystem: PaymentSystemField,
|
|
4790
4842
|
currency: CurrencyField,
|
|
4791
4843
|
cardCategory: CardCategoryField,
|
|
@@ -5240,7 +5292,7 @@
|
|
|
5240
5292
|
armyIdFlg,
|
|
5241
5293
|
};
|
|
5242
5294
|
};
|
|
5243
|
-
const countIncomeAverage = (wages, retirementIncome) => Number(wages) + Number(retirementIncome);
|
|
5295
|
+
const countIncomeAverage = (wages, retirementIncome) => Number(wages ?? 0) + Number(retirementIncome ?? 0);
|
|
5244
5296
|
|
|
5245
5297
|
/* eslint-disable camelcase */
|
|
5246
5298
|
const EMPLOYMENT_TYPE = {
|
|
@@ -5459,7 +5511,7 @@
|
|
|
5459
5511
|
}
|
|
5460
5512
|
onClose?.();
|
|
5461
5513
|
}, []);
|
|
5462
|
-
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
5514
|
+
return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex items-center justify-around w-full px-m", children: [jsxs("ul", { className: "list-disc", children: [jsx("li", { children: "\u0412\u0435\u0440\u043E\u044F\u0442\u043D\u043E\u0441\u0442\u044C \u043E\u0434\u043E\u0431\u0440\u0435\u043D\u0438\u044F \u0432\u044B\u0448\u0435" }), jsx("li", { children: "\u0411\u0435\u0437 \u0441\u043F\u0440\u0430\u0432\u043E\u043A \u043E \u0434\u043E\u0445\u043E\u0434\u0430\u0445 \u0438 \u0442\u0440\u0443\u0434\u043E\u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u0435" }), jsx("li", { children: "\u0421 \u0437\u0430\u0449\u0438\u0442\u043E\u0439 \u0412\u0430\u0448\u0438\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" })] }), jsx(Img, { image: { icon: 'GosUslugiIcon', iconVersion: 'normal' }, height: "70" })] }), jsxs("div", { className: "@container flex flex-wrap gap-lg w-full", children: [jsx(Button, { type: "button", onClick: handleAuth, className: "w-full md:w-auto", children: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0447\u0435\u0440\u0435\u0437 \u0413\u043E\u0441\u0443\u0441\u043B\u0443\u0433\u0438" }), jsx(Button, { type: "button", version: "secondary", onClick: handleClose, className: "w-full md:w-auto", children: "\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C" })] })] }) }));
|
|
5463
5515
|
});
|
|
5464
5516
|
|
|
5465
5517
|
const useEsiaLoginDialog = (nextStepLink) => {
|
|
@@ -5569,10 +5621,12 @@
|
|
|
5569
5621
|
};
|
|
5570
5622
|
|
|
5571
5623
|
/* eslint-disable max-lines */
|
|
5572
|
-
|
|
5624
|
+
// eslint-disable-next-line max-lines-per-function
|
|
5625
|
+
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
|
|
5573
5626
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5574
5627
|
const [ok, setOK] = useState();
|
|
5575
5628
|
const saveUserData = useSaveUserData();
|
|
5629
|
+
const aspects = useAspects();
|
|
5576
5630
|
const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
|
|
5577
5631
|
const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
|
|
5578
5632
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
@@ -5592,6 +5646,11 @@
|
|
|
5592
5646
|
productType,
|
|
5593
5647
|
saveUserData,
|
|
5594
5648
|
});
|
|
5649
|
+
handleAspects({
|
|
5650
|
+
aspectsAttributes: data,
|
|
5651
|
+
aspects,
|
|
5652
|
+
ev: {},
|
|
5653
|
+
});
|
|
5595
5654
|
verifyPhoneDialog.close();
|
|
5596
5655
|
if (productType === 'debitCard') {
|
|
5597
5656
|
openEsiaLoginDialog();
|
|
@@ -5833,7 +5892,7 @@
|
|
|
5833
5892
|
return [initialFormState, { isLoading }];
|
|
5834
5893
|
};
|
|
5835
5894
|
|
|
5836
|
-
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', ...rest }) => {
|
|
5895
|
+
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
5837
5896
|
const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
|
|
5838
5897
|
const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
|
|
5839
5898
|
const formValidator = useMemo(() => getFormValidator(inputs, validatorObj), [inputs]);
|
|
@@ -5842,6 +5901,7 @@
|
|
|
5842
5901
|
programId,
|
|
5843
5902
|
nextStepLink,
|
|
5844
5903
|
productType,
|
|
5904
|
+
data,
|
|
5845
5905
|
});
|
|
5846
5906
|
const [, { field, onSubmit }] = useForm(initialFormState, {
|
|
5847
5907
|
formValidator,
|
|
@@ -6388,6 +6448,8 @@
|
|
|
6388
6448
|
|
|
6389
6449
|
const renderPayout = (props) => renderBinaryRadioButtonGroup({
|
|
6390
6450
|
...props,
|
|
6451
|
+
title: 'Выплата процентов',
|
|
6452
|
+
orientation: 'vertical',
|
|
6391
6453
|
items: [
|
|
6392
6454
|
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
6393
6455
|
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
@@ -6488,10 +6550,7 @@
|
|
|
6488
6550
|
...field('daysValue'),
|
|
6489
6551
|
value: calculatorParams.daysValue,
|
|
6490
6552
|
}), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
|
|
6491
|
-
title: 'Выплата процентов',
|
|
6492
|
-
orientation: 'vertical',
|
|
6493
6553
|
...field('isMonthlyInterestPayment'),
|
|
6494
|
-
className: 'sm:flex-col',
|
|
6495
6554
|
})] })] }), renderRate({
|
|
6496
6555
|
rate,
|
|
6497
6556
|
depositeName,
|
|
@@ -6636,57 +6695,48 @@
|
|
|
6636
6695
|
return rates ?? rows?.[0]?.rates;
|
|
6637
6696
|
};
|
|
6638
6697
|
|
|
6639
|
-
const renderRegistrationType = (props) =>
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6698
|
+
const renderRegistrationType = (props, isShow = false) => isShow
|
|
6699
|
+
? renderBinaryRadioButtonGroup({
|
|
6700
|
+
...props,
|
|
6701
|
+
title: 'Оформление',
|
|
6702
|
+
orientation: 'vertical',
|
|
6703
|
+
items: [
|
|
6704
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
6705
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
6706
|
+
],
|
|
6707
|
+
})
|
|
6708
|
+
: null;
|
|
6646
6709
|
|
|
6647
|
-
const renderDepositParamsForm = (params, field) => {
|
|
6710
|
+
const renderDepositParamsForm = (params, field, extraPercents) => {
|
|
6648
6711
|
const isCurrency = params?.currency?.key !== 'rub';
|
|
6649
|
-
return (jsxs("div", { className: "grid gap-lg", children: [
|
|
6650
|
-
? renderBinaryRadioButtonGroup({
|
|
6651
|
-
title: 'Пополнение',
|
|
6652
|
-
...field('isReplenish'),
|
|
6653
|
-
value: params.isReplenish,
|
|
6654
|
-
orientation: 'vertical',
|
|
6655
|
-
items: [
|
|
6656
|
-
{ id: 'withReplenish', text: 'С пополнением' },
|
|
6657
|
-
{ id: 'withoutReplenish', text: 'Без пополнения' },
|
|
6658
|
-
],
|
|
6659
|
-
disabled: isCurrency,
|
|
6660
|
-
})
|
|
6661
|
-
: null, params.isShowWithdrawn
|
|
6662
|
-
? renderBinaryRadioButtonGroup({
|
|
6663
|
-
title: 'Снятие',
|
|
6664
|
-
...field('isWithdrawn'),
|
|
6665
|
-
value: params.isWithdrawn,
|
|
6666
|
-
orientation: 'vertical',
|
|
6667
|
-
items: [
|
|
6668
|
-
{ id: 'wthDrawn', text: 'Со снятием' },
|
|
6669
|
-
{ id: 'noWithdrawn', text: 'Без снятия' },
|
|
6670
|
-
],
|
|
6671
|
-
disabled: isCurrency,
|
|
6672
|
-
})
|
|
6673
|
-
: null] }), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
|
|
6674
|
-
? renderPayout({
|
|
6675
|
-
title: 'Выплата процентов',
|
|
6676
|
-
...field('isMonthlyInterestPayment'),
|
|
6677
|
-
value: params.isMonthlyInterestPayment,
|
|
6678
|
-
orientation: 'vertical',
|
|
6679
|
-
})
|
|
6680
|
-
: null, params.isShowRemoteRegistration
|
|
6681
|
-
? renderRegistrationType({
|
|
6682
|
-
title: 'Оформление',
|
|
6683
|
-
...field('isRemoteRegistration'),
|
|
6684
|
-
value: params.isRemoteRegistration,
|
|
6685
|
-
orientation: 'vertical',
|
|
6686
|
-
})
|
|
6687
|
-
: null] }), renderSeparator(params.isShowNewClient), params.isShowNewClient ? jsx(Checkbox, { text: "\u041D\u043E\u0432\u044B\u0439 \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A", ...field('isNewClient') }) : null] }));
|
|
6712
|
+
return (jsxs("div", { className: "grid grid-cols-2 gap-lg", children: [renderReplenish(field('isReplenish'), params, isCurrency), renderWithdrawn(field('isWithdrawn'), params, isCurrency), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), params.isShowMonthlyInterestPayment ? renderPayout(field('isMonthlyInterestPayment')) : null, renderRegistrationType(field('isRemoteRegistration'), params.isShowRemoteRegistration), renderExtraPercents(field('extraPercent'), extraPercents), params.isShowNewClient ? jsx(Checkbox, { text: "\u041D\u043E\u0432\u044B\u0439 \u0432\u043A\u043B\u0430\u0434\u0447\u0438\u043A", ...field('isNewClient') }) : null] }));
|
|
6688
6713
|
};
|
|
6689
|
-
const
|
|
6714
|
+
const renderReplenish = (props, params, isCurrency = false) => params.isShowReplenish
|
|
6715
|
+
? renderBinaryRadioButtonGroup({
|
|
6716
|
+
...props,
|
|
6717
|
+
title: 'Пополнение',
|
|
6718
|
+
orientation: 'vertical',
|
|
6719
|
+
items: [
|
|
6720
|
+
{ id: 'withReplenish', text: 'С пополнением' },
|
|
6721
|
+
{ id: 'withoutReplenish', text: 'Без пополнения' },
|
|
6722
|
+
],
|
|
6723
|
+
disabled: isCurrency,
|
|
6724
|
+
})
|
|
6725
|
+
: null;
|
|
6726
|
+
const renderWithdrawn = (props, params, isCurrency = false) => params.isShowWithdrawn
|
|
6727
|
+
? renderBinaryRadioButtonGroup({
|
|
6728
|
+
...props,
|
|
6729
|
+
title: 'Снятие',
|
|
6730
|
+
orientation: 'vertical',
|
|
6731
|
+
items: [
|
|
6732
|
+
{ id: 'wthDrawn', text: 'Со снятием' },
|
|
6733
|
+
{ id: 'noWithdrawn', text: 'Без снятия' },
|
|
6734
|
+
],
|
|
6735
|
+
disabled: isCurrency,
|
|
6736
|
+
})
|
|
6737
|
+
: null;
|
|
6738
|
+
const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider col-span-2 w-full" }) : null;
|
|
6739
|
+
const renderExtraPercents = (props, extraPercents) => extraPercents?.length ? (jsxs("div", { className: "w-full space-y-s col-span-2", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041D\u0430\u0434\u0431\u0430\u0432\u043A\u0430 \u0437\u0430 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043A\u0430\u0440\u0442\u0435" }), jsx(Select, { options: extraPercents, ...props })] })) : null;
|
|
6690
6740
|
|
|
6691
6741
|
const MAP = {
|
|
6692
6742
|
isMonthlyInterestPayment: 'isMonthlyInterestPayment',
|
|
@@ -6694,6 +6744,7 @@
|
|
|
6694
6744
|
isReplenish: 'isReplenish',
|
|
6695
6745
|
isWithdrawn: 'isWithdrawn',
|
|
6696
6746
|
moneyValue: 'minSum',
|
|
6747
|
+
extraPercent: 'extraPercent',
|
|
6697
6748
|
};
|
|
6698
6749
|
const DEFAULT_CURRENCY = {
|
|
6699
6750
|
text: '₽',
|
|
@@ -6701,6 +6752,7 @@
|
|
|
6701
6752
|
};
|
|
6702
6753
|
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
6703
6754
|
const DEPOSIT_DEFAULT_MONTHS = 1;
|
|
6755
|
+
const DEPOSIT_DEFAULT_EXTRA_PERCENT = { text: 'Без учета надбавки', key: '0' };
|
|
6704
6756
|
const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons = [], footnote = '', paramsViewSettings, defaultParams, ...rest }) => {
|
|
6705
6757
|
const { rows } = calcSource ?? {};
|
|
6706
6758
|
const currencyOptions = rows?.map((_) => _.currency) ?? [DEFAULT_CURRENCY];
|
|
@@ -6714,27 +6766,32 @@
|
|
|
6714
6766
|
isWithdrawn: Boolean(defaultParams?.isWithdrawn),
|
|
6715
6767
|
isNewClient: Boolean(defaultParams?.isNewClient),
|
|
6716
6768
|
currency: DEFAULT_CURRENCY,
|
|
6769
|
+
extraPercent: defaultParams?.extraPercent ?? DEPOSIT_DEFAULT_EXTRA_PERCENT,
|
|
6717
6770
|
}, { normalizer: normalize });
|
|
6718
|
-
const currencyValue = field
|
|
6719
|
-
const isNewClient = field?.('isNewClient')?.value;
|
|
6771
|
+
const currencyValue = getCurrencyValue(field);
|
|
6772
|
+
const isNewClient = Boolean(field?.('isNewClient')?.value);
|
|
6773
|
+
const extraPercents = rows?.find((_) => _?.extraPercents)?.extraPercents;
|
|
6720
6774
|
const row = getRows(rows, currencyValue);
|
|
6721
6775
|
const calcParams = getDepositCalculatorParams(userInputParams, row, paramsViewSettings);
|
|
6722
6776
|
const { rate, income, finalSum, type = '' } = calcParams;
|
|
6723
6777
|
const handleDefaultParamsCals = useCallback(() => {
|
|
6724
6778
|
setDefaultParamsCalc({
|
|
6725
6779
|
field,
|
|
6726
|
-
defParams: getDefaultParamsMax(row, isNewClient),
|
|
6780
|
+
defParams: getDefaultParamsMax(row, isNewClient, extraPercents),
|
|
6727
6781
|
calcParams,
|
|
6728
6782
|
monthsValue: 'minMonths',
|
|
6729
6783
|
map: MAP,
|
|
6730
6784
|
});
|
|
6731
|
-
}, [field, rows]);
|
|
6785
|
+
}, [field, rows, extraPercents]);
|
|
6732
6786
|
useEffect(() => {
|
|
6733
6787
|
if (!isDefaultParams(defaultParams) && row) {
|
|
6734
6788
|
handleDefaultParamsCals();
|
|
6735
6789
|
}
|
|
6736
6790
|
}, [defaultParams, rows]);
|
|
6737
|
-
const
|
|
6791
|
+
const extraRate = field?.('extraPercent')?.value?.key;
|
|
6792
|
+
const totalRate = getTotalRate(rate, extraRate);
|
|
6793
|
+
const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate &&
|
|
6794
|
+
extraRate === extraPercents?.at(-1)?.key;
|
|
6738
6795
|
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [jsxs("div", { className: "flex gap-m", children: [renderWantedSumInput({
|
|
6739
6796
|
className: 'w-full',
|
|
6740
6797
|
title: `Сумма, ${currencyValue?.text}`,
|
|
@@ -6751,8 +6808,8 @@
|
|
|
6751
6808
|
availableMonths: calcParams.availableMonths,
|
|
6752
6809
|
...field('monthsValue'),
|
|
6753
6810
|
value: calcParams.monthsValue,
|
|
6754
|
-
}), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field)] }), renderRate({
|
|
6755
|
-
rate,
|
|
6811
|
+
}), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field, extraPercents)] }), renderRate({
|
|
6812
|
+
rate: totalRate,
|
|
6756
6813
|
children: renderMaxRateButton(handleDefaultParamsCals, isMaxRate),
|
|
6757
6814
|
}), renderDepositResult({
|
|
6758
6815
|
income,
|
|
@@ -6770,6 +6827,8 @@
|
|
|
6770
6827
|
return button;
|
|
6771
6828
|
};
|
|
6772
6829
|
const renderMaxRateButton = (handleDefaultParamsCals, isMaxRate = false) => isMaxRate ? null : (jsx(Button, { type: "button", version: "secondary", onClick: handleDefaultParamsCals, children: "\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0430\u043A\u0441\u0438\u043C\u0430\u043B\u044C\u043D\u0443\u044E \u0441\u0442\u0430\u0432\u043A\u0443" }));
|
|
6830
|
+
const getTotalRate = (rate, extraRate) => Number(rate) + Number(extraRate ?? 0);
|
|
6831
|
+
const getCurrencyValue = (field) => field?.('currency')?.value ?? DEFAULT_CURRENCY;
|
|
6773
6832
|
|
|
6774
6833
|
const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
|
|
6775
6834
|
...props,
|
|
@@ -6881,9 +6940,6 @@
|
|
|
6881
6940
|
const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
6882
6941
|
const minRate = useMemo(() => getDefaultParamsMin(calcSource?.rateRows)?.rate, [calcSource?.rateRows]);
|
|
6883
6942
|
const paymentTypeElement = renderPaymentType({
|
|
6884
|
-
title: '',
|
|
6885
|
-
mobileTitle: 'Тип платежа',
|
|
6886
|
-
orientation: 'vertical',
|
|
6887
6943
|
...field('isAnnuity'),
|
|
6888
6944
|
});
|
|
6889
6945
|
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
@@ -6915,7 +6971,7 @@
|
|
|
6915
6971
|
...field('moneyExtra'),
|
|
6916
6972
|
value: calcParams.moneyExtra,
|
|
6917
6973
|
})
|
|
6918
|
-
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title:
|
|
6974
|
+
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
6919
6975
|
});
|
|
6920
6976
|
const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
|
|
6921
6977
|
|
|
@@ -10414,7 +10470,7 @@
|
|
|
10414
10470
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10415
10471
|
});
|
|
10416
10472
|
|
|
10417
|
-
const packageVersion = "0.14.
|
|
10473
|
+
const packageVersion = "0.14.786";
|
|
10418
10474
|
|
|
10419
10475
|
exports.Blocks = Blocks;
|
|
10420
10476
|
exports.ContentPage = ContentPage;
|