@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -2854,6 +2854,97 @@
|
|
|
2854
2854
|
const normalizeInteger = (val = '') => val.replace(/[^\d]+/g, '');
|
|
2855
2855
|
const getPlaceholder = (placeholder, errors, label) => errors && !label ? `${placeholder}*` : placeholder;
|
|
2856
2856
|
|
|
2857
|
+
const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
|
|
2858
|
+
const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
|
|
2859
|
+
|
|
2860
|
+
const AddressField = JSX(({ field, input }) => {
|
|
2861
|
+
const fieldName = input?.name || 'addressRegistration';
|
|
2862
|
+
const fieldValue = field(fieldName).value;
|
|
2863
|
+
const onDaDataChange = useCallback((item) => {
|
|
2864
|
+
field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
|
|
2865
|
+
}, []);
|
|
2866
|
+
const onChange = useCallback((value) => {
|
|
2867
|
+
field?.(fieldName)?.onChange?.({
|
|
2868
|
+
apartment: '',
|
|
2869
|
+
city: '',
|
|
2870
|
+
district: '',
|
|
2871
|
+
fullAddress: value,
|
|
2872
|
+
fiasCode: '',
|
|
2873
|
+
house: '',
|
|
2874
|
+
locality: '',
|
|
2875
|
+
okatoRegionCode: '',
|
|
2876
|
+
postcode: '',
|
|
2877
|
+
region: '',
|
|
2878
|
+
regionCode: '',
|
|
2879
|
+
street: '',
|
|
2880
|
+
qc: '',
|
|
2881
|
+
qcComplete: '',
|
|
2882
|
+
qcHouse: '',
|
|
2883
|
+
});
|
|
2884
|
+
}, []);
|
|
2885
|
+
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 }));
|
|
2886
|
+
});
|
|
2887
|
+
const getAddressFromDaDataItem = (item) => ({
|
|
2888
|
+
apartment: item?.data?.flat,
|
|
2889
|
+
city: item?.data?.city,
|
|
2890
|
+
district: item?.data?.area_with_type,
|
|
2891
|
+
fullAddress: item?.unrestricted_value,
|
|
2892
|
+
fiasCode: item?.data?.fias_id,
|
|
2893
|
+
house: item?.data?.house,
|
|
2894
|
+
locality: item?.data?.settlement_with_type,
|
|
2895
|
+
okatoRegionCode: item?.data?.okato,
|
|
2896
|
+
postcode: item?.data?.postal_code,
|
|
2897
|
+
region: item?.data?.region,
|
|
2898
|
+
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
2899
|
+
street: item?.data?.street,
|
|
2900
|
+
qc: item?.data?.qc,
|
|
2901
|
+
qcComplete: item?.data?.qc_complete,
|
|
2902
|
+
qcHouse: item?.data?.qc_house,
|
|
2903
|
+
});
|
|
2904
|
+
|
|
2905
|
+
const AddressCourierField = UniBlock(({ field, input, source }) => {
|
|
2906
|
+
const [errorCity, setErrorCity] = useState('');
|
|
2907
|
+
const fieldValue = field('addressCourier')?.value;
|
|
2908
|
+
const currentLocality = fieldValue?.locality;
|
|
2909
|
+
const currentCity = fieldValue?.city;
|
|
2910
|
+
useEffect(() => {
|
|
2911
|
+
if ((currentCity || currentLocality) &&
|
|
2912
|
+
!source?.deliveryCities?.includes(currentCity)) {
|
|
2913
|
+
field?.('addressCourier')?.onChange?.({
|
|
2914
|
+
...fieldValue,
|
|
2915
|
+
house: '',
|
|
2916
|
+
});
|
|
2917
|
+
setErrorCity('Город недоступен для доставки');
|
|
2918
|
+
}
|
|
2919
|
+
else {
|
|
2920
|
+
setErrorCity('');
|
|
2921
|
+
}
|
|
2922
|
+
}, [currentCity, currentLocality, source]);
|
|
2923
|
+
const onDaDataChange = useCallback((item) => {
|
|
2924
|
+
field?.('addressCourier')?.onChange?.(getAddressFromDaDataItem(item));
|
|
2925
|
+
}, []);
|
|
2926
|
+
const onChange = useCallback((value) => {
|
|
2927
|
+
field?.('addressCourier')?.onChange?.({
|
|
2928
|
+
apartment: '',
|
|
2929
|
+
city: '',
|
|
2930
|
+
district: '',
|
|
2931
|
+
fullAddress: value,
|
|
2932
|
+
fiasCode: '',
|
|
2933
|
+
house: '',
|
|
2934
|
+
locality: '',
|
|
2935
|
+
okatoRegionCode: '',
|
|
2936
|
+
postcode: '',
|
|
2937
|
+
region: '',
|
|
2938
|
+
regionCode: '',
|
|
2939
|
+
street: '',
|
|
2940
|
+
qc: '',
|
|
2941
|
+
qcComplete: '',
|
|
2942
|
+
qcHouse: '',
|
|
2943
|
+
});
|
|
2944
|
+
}, []);
|
|
2945
|
+
return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", ...field('addressCourier'), value: fieldValue?.fullAddress, onChange: onChange, ...input, error: errorCity || field('addressCourier')?.error, onDaDataChange: onDaDataChange }));
|
|
2946
|
+
});
|
|
2947
|
+
|
|
2857
2948
|
const AddressFactField = JSX(({ field, input }) => {
|
|
2858
2949
|
const fieldName = 'addressFact';
|
|
2859
2950
|
const fieldValue = field(fieldName).value;
|
|
@@ -2904,54 +2995,6 @@
|
|
|
2904
2995
|
return (jsx(DaDataInputControl, { label: "\u0410\u0434\u0440\u0435\u0441", disabled: value, ...field(fieldName), value: fieldValue?.fullAddress, onChange: onChange, ...input, onDaDataChange: onDaDataChange }));
|
|
2905
2996
|
});
|
|
2906
2997
|
|
|
2907
|
-
const ESIA_FIELD_NAME = 'esiaAccountTypeCd';
|
|
2908
|
-
const isEsiaAuthorize = (field, name) => Boolean(field(ESIA_FIELD_NAME)?.value?.key) && field(name).value;
|
|
2909
|
-
|
|
2910
|
-
const AddressField = JSX(({ field, input }) => {
|
|
2911
|
-
const fieldName = input?.name || 'addressRegistration';
|
|
2912
|
-
const fieldValue = field(fieldName).value;
|
|
2913
|
-
const onDaDataChange = useCallback((item) => {
|
|
2914
|
-
field?.(fieldName)?.onChange?.(getAddressFromDaDataItem(item));
|
|
2915
|
-
}, []);
|
|
2916
|
-
const onChange = useCallback((value) => {
|
|
2917
|
-
field?.(fieldName)?.onChange?.({
|
|
2918
|
-
apartment: '',
|
|
2919
|
-
city: '',
|
|
2920
|
-
district: '',
|
|
2921
|
-
fullAddress: value,
|
|
2922
|
-
fiasCode: '',
|
|
2923
|
-
house: '',
|
|
2924
|
-
locality: '',
|
|
2925
|
-
okatoRegionCode: '',
|
|
2926
|
-
postcode: '',
|
|
2927
|
-
region: '',
|
|
2928
|
-
regionCode: '',
|
|
2929
|
-
street: '',
|
|
2930
|
-
qc: '',
|
|
2931
|
-
qcComplete: '',
|
|
2932
|
-
qcHouse: '',
|
|
2933
|
-
});
|
|
2934
|
-
}, []);
|
|
2935
|
-
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 }));
|
|
2936
|
-
});
|
|
2937
|
-
const getAddressFromDaDataItem = (item) => ({
|
|
2938
|
-
apartment: item?.data?.flat,
|
|
2939
|
-
city: item?.data?.city,
|
|
2940
|
-
district: item?.data?.area_with_type,
|
|
2941
|
-
fullAddress: item?.unrestricted_value,
|
|
2942
|
-
fiasCode: item?.data?.fias_id,
|
|
2943
|
-
house: item?.data?.house,
|
|
2944
|
-
locality: item?.data?.settlement_with_type,
|
|
2945
|
-
okatoRegionCode: item?.data?.okato,
|
|
2946
|
-
postcode: item?.data?.postal_code,
|
|
2947
|
-
region: item?.data?.region,
|
|
2948
|
-
regionCode: item?.data?.region_kladr_id ? item?.data?.region_kladr_id.substring(0, 2) : '',
|
|
2949
|
-
street: item?.data?.street,
|
|
2950
|
-
qc: item?.data?.qc,
|
|
2951
|
-
qcComplete: item?.data?.qc_complete,
|
|
2952
|
-
qcHouse: item?.data?.qc_house,
|
|
2953
|
-
});
|
|
2954
|
-
|
|
2955
2998
|
const AddressMatchField = JSX(({ field, input }) => {
|
|
2956
2999
|
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 ?? '') }));
|
|
2957
3000
|
});
|
|
@@ -3831,7 +3874,7 @@
|
|
|
3831
3874
|
|
|
3832
3875
|
const DocumentDialog = JSX(({ src, onClose, onDocumentRead }) => {
|
|
3833
3876
|
const isMobileMode = useMobileMode();
|
|
3834
|
-
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: () => {
|
|
3877
|
+
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: () => {
|
|
3835
3878
|
onDocumentRead?.();
|
|
3836
3879
|
onClose?.();
|
|
3837
3880
|
}, children: "\u041E\u0437\u043D\u0430\u043A\u043E\u043C\u0438\u0442\u044C\u0441\u044F" })] }));
|
|
@@ -3883,7 +3926,13 @@
|
|
|
3883
3926
|
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: "-" })] })));
|
|
3884
3927
|
|
|
3885
3928
|
const getDefaultParamsMin = (rateRows) => getDefaultParams([(i, acc) => i < acc, (i, prev) => i?.maxSum > prev?.maxSum], rateRows);
|
|
3886
|
-
const getDefaultParamsMax = (rateRows = [], isNewClient = false
|
|
3929
|
+
const getDefaultParamsMax = (rateRows = [], isNewClient = false, extraPercents = []) => {
|
|
3930
|
+
return {
|
|
3931
|
+
...getDefaultParams([(i, acc) => i > acc, (i, prev) => i?.minSum < prev?.minSum], rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient))),
|
|
3932
|
+
extraPercent: extraPercents.at(-1),
|
|
3933
|
+
extraPercents,
|
|
3934
|
+
};
|
|
3935
|
+
};
|
|
3887
3936
|
const getDefaultParams = (comparators, rateRows) => {
|
|
3888
3937
|
if (!rateRows?.length) {
|
|
3889
3938
|
return undefined;
|
|
@@ -3916,10 +3965,12 @@
|
|
|
3916
3965
|
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 }));
|
|
3917
3966
|
const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
3918
3967
|
|
|
3919
|
-
const renderBinaryRadioButtonGroup = ({ items, title,
|
|
3968
|
+
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 })] }));
|
|
3920
3969
|
|
|
3921
3970
|
const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
|
|
3922
3971
|
...props,
|
|
3972
|
+
title: 'Тип платежа',
|
|
3973
|
+
orientation: 'vertical',
|
|
3923
3974
|
className: 'sm:flex-col',
|
|
3924
3975
|
items: [
|
|
3925
3976
|
{ id: 'annuity', text: 'Аннуитетный' },
|
|
@@ -4097,8 +4148,6 @@
|
|
|
4097
4148
|
}, { onChange });
|
|
4098
4149
|
const calcParams = getCreditCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
4099
4150
|
const paymentTypeElement = renderPaymentType({
|
|
4100
|
-
title: 'Тип платежа',
|
|
4101
|
-
orientation: 'vertical',
|
|
4102
4151
|
...field('isAnnuity'),
|
|
4103
4152
|
});
|
|
4104
4153
|
const { onChange: setMoneyValue } = field('moneyValue');
|
|
@@ -4713,6 +4762,9 @@
|
|
|
4713
4762
|
|
|
4714
4763
|
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 })));
|
|
4715
4764
|
|
|
4765
|
+
const DELIVERY_CITIES_REF = {
|
|
4766
|
+
$ref: '/wcms-resources/delivery-cities-data.json',
|
|
4767
|
+
};
|
|
4716
4768
|
const InputsApplicationLeadMap = {
|
|
4717
4769
|
limitedBirthday: LimitedBirthdayField,
|
|
4718
4770
|
name: NameField,
|
|
@@ -4787,7 +4839,7 @@
|
|
|
4787
4839
|
inn: DaDataInnField,
|
|
4788
4840
|
};
|
|
4789
4841
|
const InputRetailCardMap = {
|
|
4790
|
-
addressCourier:
|
|
4842
|
+
addressCourier: (props) => (jsx(AddressCourierField, { ...props, source: DELIVERY_CITIES_REF })),
|
|
4791
4843
|
paymentSystem: PaymentSystemField,
|
|
4792
4844
|
currency: CurrencyField,
|
|
4793
4845
|
cardCategory: CardCategoryField,
|
|
@@ -5242,7 +5294,7 @@
|
|
|
5242
5294
|
armyIdFlg,
|
|
5243
5295
|
};
|
|
5244
5296
|
};
|
|
5245
|
-
const countIncomeAverage = (wages, retirementIncome) => Number(wages) + Number(retirementIncome);
|
|
5297
|
+
const countIncomeAverage = (wages, retirementIncome) => Number(wages ?? 0) + Number(retirementIncome ?? 0);
|
|
5246
5298
|
|
|
5247
5299
|
/* eslint-disable camelcase */
|
|
5248
5300
|
const EMPLOYMENT_TYPE = {
|
|
@@ -5461,7 +5513,7 @@
|
|
|
5461
5513
|
}
|
|
5462
5514
|
onClose?.();
|
|
5463
5515
|
}, []);
|
|
5464
|
-
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" })] })] }) }));
|
|
5516
|
+
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" })] })] }) }));
|
|
5465
5517
|
});
|
|
5466
5518
|
|
|
5467
5519
|
const useEsiaLoginDialog = (nextStepLink) => {
|
|
@@ -5571,10 +5623,12 @@
|
|
|
5571
5623
|
};
|
|
5572
5624
|
|
|
5573
5625
|
/* eslint-disable max-lines */
|
|
5574
|
-
|
|
5626
|
+
// eslint-disable-next-line max-lines-per-function
|
|
5627
|
+
const useApplicationLeadApi = ({ programId, nextStepLink, productType, data, }) => {
|
|
5575
5628
|
const [isSending, { setTrue: startSending, setFalse: endSending }] = useBool(false);
|
|
5576
5629
|
const [ok, setOK] = useState();
|
|
5577
5630
|
const saveUserData = useSaveUserData();
|
|
5631
|
+
const aspects = useAspects();
|
|
5578
5632
|
const openEsiaLoginDialog = useEsiaLoginDialog(nextStepLink);
|
|
5579
5633
|
const consentBkiDialog = useConsentBkiDialog(openEsiaLoginDialog);
|
|
5580
5634
|
const verifyPhoneDialog = useDialog(VerifyPhoneDialog);
|
|
@@ -5594,6 +5648,11 @@
|
|
|
5594
5648
|
productType,
|
|
5595
5649
|
saveUserData,
|
|
5596
5650
|
});
|
|
5651
|
+
handleAspects({
|
|
5652
|
+
aspectsAttributes: data,
|
|
5653
|
+
aspects,
|
|
5654
|
+
ev: {},
|
|
5655
|
+
});
|
|
5597
5656
|
verifyPhoneDialog.close();
|
|
5598
5657
|
if (productType === 'debitCard') {
|
|
5599
5658
|
openEsiaLoginDialog();
|
|
@@ -5835,7 +5894,7 @@
|
|
|
5835
5894
|
return [initialFormState, { isLoading }];
|
|
5836
5895
|
};
|
|
5837
5896
|
|
|
5838
|
-
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', ...rest }) => {
|
|
5897
|
+
const ApplicationLeadForm = JSX(({ className, title, programId = '', nextStepLink = '/credit-lead', button, productType = 'credit', data, ...rest }) => {
|
|
5839
5898
|
const applicationFormData = useMemo(() => getApplicationFormData(productType), [productType]);
|
|
5840
5899
|
const inputs = useMemo(() => (applicationFormData?.flatMap((_) => _?.inputs) || []), [applicationFormData]);
|
|
5841
5900
|
const formValidator = useMemo(() => getFormValidator(inputs, validatorObj), [inputs]);
|
|
@@ -5844,6 +5903,7 @@
|
|
|
5844
5903
|
programId,
|
|
5845
5904
|
nextStepLink,
|
|
5846
5905
|
productType,
|
|
5906
|
+
data,
|
|
5847
5907
|
});
|
|
5848
5908
|
const [, { field, onSubmit }] = useForm(initialFormState, {
|
|
5849
5909
|
formValidator,
|
|
@@ -6402,6 +6462,8 @@
|
|
|
6402
6462
|
|
|
6403
6463
|
const renderPayout = (props) => renderBinaryRadioButtonGroup({
|
|
6404
6464
|
...props,
|
|
6465
|
+
title: 'Выплата процентов',
|
|
6466
|
+
orientation: 'vertical',
|
|
6405
6467
|
items: [
|
|
6406
6468
|
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
6407
6469
|
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
@@ -6502,10 +6564,7 @@
|
|
|
6502
6564
|
...field('daysValue'),
|
|
6503
6565
|
value: calculatorParams.daysValue,
|
|
6504
6566
|
}), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-m gap-x-5xl", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderPayout({
|
|
6505
|
-
title: 'Выплата процентов',
|
|
6506
|
-
orientation: 'vertical',
|
|
6507
6567
|
...field('isMonthlyInterestPayment'),
|
|
6508
|
-
className: 'sm:flex-col',
|
|
6509
6568
|
})] })] }), renderRate({
|
|
6510
6569
|
rate,
|
|
6511
6570
|
depositeName,
|
|
@@ -6650,57 +6709,48 @@
|
|
|
6650
6709
|
return rates ?? rows?.[0]?.rates;
|
|
6651
6710
|
};
|
|
6652
6711
|
|
|
6653
|
-
const renderRegistrationType = (props) =>
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6712
|
+
const renderRegistrationType = (props, isShow = false) => isShow
|
|
6713
|
+
? renderBinaryRadioButtonGroup({
|
|
6714
|
+
...props,
|
|
6715
|
+
title: 'Оформление',
|
|
6716
|
+
orientation: 'vertical',
|
|
6717
|
+
items: [
|
|
6718
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
6719
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
6720
|
+
],
|
|
6721
|
+
})
|
|
6722
|
+
: null;
|
|
6660
6723
|
|
|
6661
|
-
const renderDepositParamsForm = (params, field) => {
|
|
6724
|
+
const renderDepositParamsForm = (params, field, extraPercents) => {
|
|
6662
6725
|
const isCurrency = params?.currency?.key !== 'rub';
|
|
6663
|
-
return (jsxs("div", { className: "grid gap-lg", children: [
|
|
6664
|
-
? renderBinaryRadioButtonGroup({
|
|
6665
|
-
title: 'Пополнение',
|
|
6666
|
-
...field('isReplenish'),
|
|
6667
|
-
value: params.isReplenish,
|
|
6668
|
-
orientation: 'vertical',
|
|
6669
|
-
items: [
|
|
6670
|
-
{ id: 'withReplenish', text: 'С пополнением' },
|
|
6671
|
-
{ id: 'withoutReplenish', text: 'Без пополнения' },
|
|
6672
|
-
],
|
|
6673
|
-
disabled: isCurrency,
|
|
6674
|
-
})
|
|
6675
|
-
: null, params.isShowWithdrawn
|
|
6676
|
-
? renderBinaryRadioButtonGroup({
|
|
6677
|
-
title: 'Снятие',
|
|
6678
|
-
...field('isWithdrawn'),
|
|
6679
|
-
value: params.isWithdrawn,
|
|
6680
|
-
orientation: 'vertical',
|
|
6681
|
-
items: [
|
|
6682
|
-
{ id: 'wthDrawn', text: 'Со снятием' },
|
|
6683
|
-
{ id: 'noWithdrawn', text: 'Без снятия' },
|
|
6684
|
-
],
|
|
6685
|
-
disabled: isCurrency,
|
|
6686
|
-
})
|
|
6687
|
-
: null] }), renderSeparator(params.isShowReplenish || params.isShowWithdrawn), jsxs("div", { className: "flex gap-lg", children: [params.isShowMonthlyInterestPayment
|
|
6688
|
-
? renderPayout({
|
|
6689
|
-
title: 'Выплата процентов',
|
|
6690
|
-
...field('isMonthlyInterestPayment'),
|
|
6691
|
-
value: params.isMonthlyInterestPayment,
|
|
6692
|
-
orientation: 'vertical',
|
|
6693
|
-
})
|
|
6694
|
-
: null, params.isShowRemoteRegistration
|
|
6695
|
-
? renderRegistrationType({
|
|
6696
|
-
title: 'Оформление',
|
|
6697
|
-
...field('isRemoteRegistration'),
|
|
6698
|
-
value: params.isRemoteRegistration,
|
|
6699
|
-
orientation: 'vertical',
|
|
6700
|
-
})
|
|
6701
|
-
: 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] }));
|
|
6726
|
+
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] }));
|
|
6702
6727
|
};
|
|
6703
|
-
const
|
|
6728
|
+
const renderReplenish = (props, params, isCurrency = false) => params.isShowReplenish
|
|
6729
|
+
? renderBinaryRadioButtonGroup({
|
|
6730
|
+
...props,
|
|
6731
|
+
title: 'Пополнение',
|
|
6732
|
+
orientation: 'vertical',
|
|
6733
|
+
items: [
|
|
6734
|
+
{ id: 'withReplenish', text: 'С пополнением' },
|
|
6735
|
+
{ id: 'withoutReplenish', text: 'Без пополнения' },
|
|
6736
|
+
],
|
|
6737
|
+
disabled: isCurrency,
|
|
6738
|
+
})
|
|
6739
|
+
: null;
|
|
6740
|
+
const renderWithdrawn = (props, params, isCurrency = false) => params.isShowWithdrawn
|
|
6741
|
+
? renderBinaryRadioButtonGroup({
|
|
6742
|
+
...props,
|
|
6743
|
+
title: 'Снятие',
|
|
6744
|
+
orientation: 'vertical',
|
|
6745
|
+
items: [
|
|
6746
|
+
{ id: 'wthDrawn', text: 'Со снятием' },
|
|
6747
|
+
{ id: 'noWithdrawn', text: 'Без снятия' },
|
|
6748
|
+
],
|
|
6749
|
+
disabled: isCurrency,
|
|
6750
|
+
})
|
|
6751
|
+
: null;
|
|
6752
|
+
const renderSeparator = (isShow = false) => isShow ? jsx("div", { className: "border-b border-main-divider col-span-2 w-full" }) : null;
|
|
6753
|
+
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;
|
|
6704
6754
|
|
|
6705
6755
|
const MAP = {
|
|
6706
6756
|
isMonthlyInterestPayment: 'isMonthlyInterestPayment',
|
|
@@ -6708,6 +6758,7 @@
|
|
|
6708
6758
|
isReplenish: 'isReplenish',
|
|
6709
6759
|
isWithdrawn: 'isWithdrawn',
|
|
6710
6760
|
moneyValue: 'minSum',
|
|
6761
|
+
extraPercent: 'extraPercent',
|
|
6711
6762
|
};
|
|
6712
6763
|
const DEFAULT_CURRENCY = {
|
|
6713
6764
|
text: '₽',
|
|
@@ -6715,6 +6766,7 @@
|
|
|
6715
6766
|
};
|
|
6716
6767
|
const DEPOSIT_DEFAULT_SUM = 20000;
|
|
6717
6768
|
const DEPOSIT_DEFAULT_MONTHS = 1;
|
|
6769
|
+
const DEPOSIT_DEFAULT_EXTRA_PERCENT = { text: 'Без учета надбавки', key: '0' };
|
|
6718
6770
|
const CalculatorDeposit = UniBlock(({ className, title, calcSource, buttons = [], footnote = '', paramsViewSettings, defaultParams, ...rest }) => {
|
|
6719
6771
|
const { rows } = calcSource ?? {};
|
|
6720
6772
|
const currencyOptions = rows?.map((_) => _.currency) ?? [DEFAULT_CURRENCY];
|
|
@@ -6728,27 +6780,32 @@
|
|
|
6728
6780
|
isWithdrawn: Boolean(defaultParams?.isWithdrawn),
|
|
6729
6781
|
isNewClient: Boolean(defaultParams?.isNewClient),
|
|
6730
6782
|
currency: DEFAULT_CURRENCY,
|
|
6783
|
+
extraPercent: defaultParams?.extraPercent ?? DEPOSIT_DEFAULT_EXTRA_PERCENT,
|
|
6731
6784
|
}, { normalizer: normalize });
|
|
6732
|
-
const currencyValue = field
|
|
6733
|
-
const isNewClient = field?.('isNewClient')?.value;
|
|
6785
|
+
const currencyValue = getCurrencyValue(field);
|
|
6786
|
+
const isNewClient = Boolean(field?.('isNewClient')?.value);
|
|
6787
|
+
const extraPercents = rows?.find((_) => _?.extraPercents)?.extraPercents;
|
|
6734
6788
|
const row = getRows(rows, currencyValue);
|
|
6735
6789
|
const calcParams = getDepositCalculatorParams(userInputParams, row, paramsViewSettings);
|
|
6736
6790
|
const { rate, income, finalSum, type = '' } = calcParams;
|
|
6737
6791
|
const handleDefaultParamsCals = useCallback(() => {
|
|
6738
6792
|
setDefaultParamsCalc({
|
|
6739
6793
|
field,
|
|
6740
|
-
defParams: getDefaultParamsMax(row, isNewClient),
|
|
6794
|
+
defParams: getDefaultParamsMax(row, isNewClient, extraPercents),
|
|
6741
6795
|
calcParams,
|
|
6742
6796
|
monthsValue: 'minMonths',
|
|
6743
6797
|
map: MAP,
|
|
6744
6798
|
});
|
|
6745
|
-
}, [field, rows]);
|
|
6799
|
+
}, [field, rows, extraPercents]);
|
|
6746
6800
|
useEffect(() => {
|
|
6747
6801
|
if (!isDefaultParams(defaultParams) && row) {
|
|
6748
6802
|
handleDefaultParamsCals();
|
|
6749
6803
|
}
|
|
6750
6804
|
}, [defaultParams, rows]);
|
|
6751
|
-
const
|
|
6805
|
+
const extraRate = field?.('extraPercent')?.value?.key;
|
|
6806
|
+
const totalRate = getTotalRate(rate, extraRate);
|
|
6807
|
+
const isMaxRate = rate === getDefaultParamsMax(row, isNewClient)?.rate &&
|
|
6808
|
+
extraRate === extraPercents?.at(-1)?.key;
|
|
6752
6809
|
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({
|
|
6753
6810
|
className: 'w-full',
|
|
6754
6811
|
title: `Сумма, ${currencyValue?.text}`,
|
|
@@ -6765,8 +6822,8 @@
|
|
|
6765
6822
|
availableMonths: calcParams.availableMonths,
|
|
6766
6823
|
...field('monthsValue'),
|
|
6767
6824
|
value: calcParams.monthsValue,
|
|
6768
|
-
}), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field)] }), renderRate({
|
|
6769
|
-
rate,
|
|
6825
|
+
}), renderDepositParamsForm({ ...calcParams, ...paramsViewSettings }, field, extraPercents)] }), renderRate({
|
|
6826
|
+
rate: totalRate,
|
|
6770
6827
|
children: renderMaxRateButton(handleDefaultParamsCals, isMaxRate),
|
|
6771
6828
|
}), renderDepositResult({
|
|
6772
6829
|
income,
|
|
@@ -6784,6 +6841,8 @@
|
|
|
6784
6841
|
return button;
|
|
6785
6842
|
};
|
|
6786
6843
|
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" }));
|
|
6844
|
+
const getTotalRate = (rate, extraRate) => Number(rate) + Number(extraRate ?? 0);
|
|
6845
|
+
const getCurrencyValue = (field) => field?.('currency')?.value ?? DEFAULT_CURRENCY;
|
|
6787
6846
|
|
|
6788
6847
|
const checkRefinancingSourceBookRowCommonParams = (props) => checkRowParam({
|
|
6789
6848
|
...props,
|
|
@@ -6895,9 +6954,6 @@
|
|
|
6895
6954
|
const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
6896
6955
|
const minRate = useMemo(() => getDefaultParamsMin(calcSource?.rateRows)?.rate, [calcSource?.rateRows]);
|
|
6897
6956
|
const paymentTypeElement = renderPaymentType({
|
|
6898
|
-
title: '',
|
|
6899
|
-
mobileTitle: 'Тип платежа',
|
|
6900
|
-
orientation: 'vertical',
|
|
6901
6957
|
...field('isAnnuity'),
|
|
6902
6958
|
});
|
|
6903
6959
|
return (jsx(CalculatorLayout, { className: className, title: title, ...rest, children: jsxs("section", { className: style(CalculatorStyle.wrapper, className), children: [jsxs("div", { className: CalculatorStyle.input, children: [renderWantedSumInput({
|
|
@@ -6929,7 +6985,7 @@
|
|
|
6929
6985
|
...field('moneyExtra'),
|
|
6930
6986
|
value: calcParams.moneyExtra,
|
|
6931
6987
|
})
|
|
6932
|
-
: 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:
|
|
6988
|
+
: 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)] })] }) }));
|
|
6933
6989
|
});
|
|
6934
6990
|
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 })] }));
|
|
6935
6991
|
|
|
@@ -9684,6 +9740,7 @@
|
|
|
9684
9740
|
const CHAT_BUTTON_EXTERNAL_NAME = 'text-page__btn-chat';
|
|
9685
9741
|
const CHAT_FRAME_ID = 'webchat-js-container:webchat_rshb';
|
|
9686
9742
|
const CHAT_STORAGE_NAME = 'webchat-keep-open';
|
|
9743
|
+
const BUSINESS_CHAT_PREFIX = '/webchat-api';
|
|
9687
9744
|
const CHATBOT_URL = {
|
|
9688
9745
|
personal: '//chat.mes.rshb.ru/assets/js/webchat_rshb',
|
|
9689
9746
|
business: '/webchat',
|
|
@@ -9725,7 +9782,7 @@
|
|
|
9725
9782
|
}
|
|
9726
9783
|
else {
|
|
9727
9784
|
createChatFrame();
|
|
9728
|
-
businessChat?.render?.(CHAT_FRAME_ID, true);
|
|
9785
|
+
businessChat?.render?.(CHAT_FRAME_ID, true, BUSINESS_CHAT_PREFIX);
|
|
9729
9786
|
}
|
|
9730
9787
|
};
|
|
9731
9788
|
const createChatFrame = () => {
|
|
@@ -11207,7 +11264,7 @@
|
|
|
11207
11264
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11208
11265
|
});
|
|
11209
11266
|
|
|
11210
|
-
const packageVersion = "0.14.
|
|
11267
|
+
const packageVersion = "0.14.786";
|
|
11211
11268
|
|
|
11212
11269
|
exports.Blocks = Blocks;
|
|
11213
11270
|
exports.ContentPage = ContentPage;
|