@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
|
@@ -3,11 +3,18 @@ import {
|
|
|
3
3
|
type BinaryRadioButtonGroupProps,
|
|
4
4
|
} from '../../ui-kit/Calculator/renderBinaryRadioButtonGroup';
|
|
5
5
|
|
|
6
|
-
export const renderRegistrationType = (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export const renderRegistrationType = (
|
|
7
|
+
props: Partial<BinaryRadioButtonGroupProps>,
|
|
8
|
+
isShow = false,
|
|
9
|
+
) =>
|
|
10
|
+
isShow
|
|
11
|
+
? renderBinaryRadioButtonGroup({
|
|
12
|
+
...props,
|
|
13
|
+
title: 'Оформление',
|
|
14
|
+
orientation: 'vertical',
|
|
15
|
+
items: [
|
|
16
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
17
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
18
|
+
],
|
|
19
|
+
})
|
|
20
|
+
: null;
|
|
@@ -57,9 +57,6 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
57
57
|
);
|
|
58
58
|
|
|
59
59
|
const paymentTypeElement = renderPaymentType({
|
|
60
|
-
title: '',
|
|
61
|
-
mobileTitle: 'Тип платежа',
|
|
62
|
-
orientation: 'vertical',
|
|
63
60
|
...field('isAnnuity'),
|
|
64
61
|
});
|
|
65
62
|
|
|
@@ -114,7 +111,7 @@ export const CalculatorRefinancing = UniBlock<RefinancingCalculatorProp>(
|
|
|
114
111
|
postfix="₽"
|
|
115
112
|
/>
|
|
116
113
|
{calcParams.benefit > 0 ? (
|
|
117
|
-
<CalculatorValue title=
|
|
114
|
+
<CalculatorValue title="Выгода в месяц" value={calcParams.benefit} postfix="₽" />
|
|
118
115
|
) : null}
|
|
119
116
|
<div className="hidden sm:block mb-lg">{paymentTypeElement}</div>
|
|
120
117
|
{renderButtonsSection(buttons, { isVertical: true })}
|
|
@@ -6,6 +6,7 @@ const CHAT_NAMESPACE = 'chatbot';
|
|
|
6
6
|
const CHAT_BUTTON_EXTERNAL_NAME = 'text-page__btn-chat';
|
|
7
7
|
const CHAT_FRAME_ID = 'webchat-js-container:webchat_rshb';
|
|
8
8
|
const CHAT_STORAGE_NAME = 'webchat-keep-open';
|
|
9
|
+
const BUSINESS_CHAT_PREFIX = '/webchat-api';
|
|
9
10
|
|
|
10
11
|
const CHATBOT_URL: Record<string, string> = {
|
|
11
12
|
personal: '//chat.mes.rshb.ru/assets/js/webchat_rshb',
|
|
@@ -13,7 +14,7 @@ const CHATBOT_URL: Record<string, string> = {
|
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
interface WebChat {
|
|
16
|
-
render?: (id?: string, isOpen?: boolean) => void;
|
|
17
|
+
render?: (id?: string, isOpen?: boolean, prefix?: string) => void;
|
|
17
18
|
chatOpen?: () => void;
|
|
18
19
|
chatClose?: () => void;
|
|
19
20
|
}
|
|
@@ -71,7 +72,7 @@ const renderBusinessChatBot = async (chatUrl: string) => {
|
|
|
71
72
|
} else {
|
|
72
73
|
createChatFrame();
|
|
73
74
|
|
|
74
|
-
businessChat?.render?.(CHAT_FRAME_ID, true);
|
|
75
|
+
businessChat?.render?.(CHAT_FRAME_ID, true, BUSINESS_CHAT_PREFIX);
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
78
|
|
|
@@ -44,4 +44,4 @@ export const getFamilyStatusAndIncomeData = (formData: LeadFormState): Partial<P
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export const countIncomeAverage = (wages?: number, retirementIncome?: number) =>
|
|
47
|
-
Number(wages) + Number(retirementIncome);
|
|
47
|
+
Number(wages ?? 0) + Number(retirementIncome ?? 0);
|
|
@@ -13,7 +13,7 @@ export const DocumentDialog = JSX<DocumentDialogProps>(({ src, onClose, onDocume
|
|
|
13
13
|
const isMobileMode = useMobileMode();
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
|
-
<Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0" onClose={onClose}>
|
|
16
|
+
<Dialog className="my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0 z-[101]" onClose={onClose}>
|
|
17
17
|
{isMobileMode ? (
|
|
18
18
|
<img src={src} />
|
|
19
19
|
) : (
|
|
@@ -45,11 +45,16 @@ export const EsiaLoginDialog = JSX<EsiaLoginDialogProps>(({ onClose }) => {
|
|
|
45
45
|
</ul>
|
|
46
46
|
<Img image={{ icon: 'GosUslugiIcon', iconVersion: 'normal' }} height="70" />
|
|
47
47
|
</div>
|
|
48
|
-
<div className="flex flex-wrap gap-lg w-full">
|
|
49
|
-
<Button type="button" onClick={handleAuth}>
|
|
48
|
+
<div className="@container flex flex-wrap gap-lg w-full">
|
|
49
|
+
<Button type="button" onClick={handleAuth} className="w-full md:w-auto">
|
|
50
50
|
Заполнить через Госуслуги
|
|
51
51
|
</Button>
|
|
52
|
-
<Button
|
|
52
|
+
<Button
|
|
53
|
+
type="button"
|
|
54
|
+
version="secondary"
|
|
55
|
+
onClick={handleClose}
|
|
56
|
+
className="w-full md:w-auto"
|
|
57
|
+
>
|
|
53
58
|
Пропустить
|
|
54
59
|
</Button>
|
|
55
60
|
</div>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { type JSONRefObject } from '../../../data/JSONRefObject';
|
|
3
|
+
import { type CustomFieldProps } from '../../../ui-kit/FormField/CustomFieldProps';
|
|
4
|
+
import { UniBlock } from '../../../UniBlock/UniBlock';
|
|
5
|
+
import { type UniBlockProps } from '../../../UniBlock/UniBlockProps';
|
|
6
|
+
import { type DaDataSuggestion } from '../../api/dadataHints/dadataHintsType';
|
|
7
|
+
import { DaDataInputControl } from '../DaDataInputControl/DaDataInputControl';
|
|
8
|
+
import { getAddressFromDaDataItem } from './AddressField';
|
|
9
|
+
|
|
10
|
+
export interface AddressCourierFieldProps extends CustomFieldProps, UniBlockProps {
|
|
11
|
+
source?: JSONRefObject & {
|
|
12
|
+
deliveryCities?: string[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const AddressCourierField = UniBlock<AddressCourierFieldProps>(
|
|
17
|
+
({ field, input, source }) => {
|
|
18
|
+
const [errorCity, setErrorCity] = useState('');
|
|
19
|
+
const fieldValue = field('addressCourier')?.value;
|
|
20
|
+
const currentLocality = fieldValue?.locality;
|
|
21
|
+
const currentCity = fieldValue?.city;
|
|
22
|
+
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (
|
|
25
|
+
(currentCity || currentLocality) &&
|
|
26
|
+
!source?.deliveryCities?.includes(currentCity as string)
|
|
27
|
+
) {
|
|
28
|
+
field?.('addressCourier')?.onChange?.({
|
|
29
|
+
...fieldValue,
|
|
30
|
+
house: '',
|
|
31
|
+
});
|
|
32
|
+
setErrorCity('Город недоступен для доставки');
|
|
33
|
+
} else {
|
|
34
|
+
setErrorCity('');
|
|
35
|
+
}
|
|
36
|
+
}, [currentCity, currentLocality, source]);
|
|
37
|
+
|
|
38
|
+
const onDaDataChange = useCallback((item: DaDataSuggestion) => {
|
|
39
|
+
field?.('addressCourier')?.onChange?.(getAddressFromDaDataItem(item));
|
|
40
|
+
}, []);
|
|
41
|
+
|
|
42
|
+
const onChange = useCallback((value: string) => {
|
|
43
|
+
field?.('addressCourier')?.onChange?.({
|
|
44
|
+
apartment: '',
|
|
45
|
+
city: '',
|
|
46
|
+
district: '',
|
|
47
|
+
fullAddress: value,
|
|
48
|
+
fiasCode: '',
|
|
49
|
+
house: '',
|
|
50
|
+
locality: '',
|
|
51
|
+
okatoRegionCode: '',
|
|
52
|
+
postcode: '',
|
|
53
|
+
region: '',
|
|
54
|
+
regionCode: '',
|
|
55
|
+
street: '',
|
|
56
|
+
qc: '',
|
|
57
|
+
qcComplete: '',
|
|
58
|
+
qcHouse: '',
|
|
59
|
+
});
|
|
60
|
+
}, []);
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<DaDataInputControl
|
|
64
|
+
label="Адрес"
|
|
65
|
+
{...field('addressCourier')}
|
|
66
|
+
value={fieldValue?.fullAddress}
|
|
67
|
+
onChange={onChange}
|
|
68
|
+
{...input}
|
|
69
|
+
error={errorCity || field('addressCourier')?.error}
|
|
70
|
+
onDaDataChange={onDaDataChange}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
},
|
|
74
|
+
);
|
package/src/retail/inputs.tsx
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/* eslint-disable max-lines */
|
|
2
|
+
import { type CustomFieldProps } from '../ui-kit/FormField/CustomFieldProps';
|
|
1
3
|
import { PhoneField } from '../ui-kit/FormField/Fields/PhoneField';
|
|
4
|
+
import { AddressCourierField } from './components/Fields/AddressCourierField';
|
|
2
5
|
import { AddressFactField } from './components/Fields/AddressFactField';
|
|
3
6
|
import { AddressField } from './components/Fields/AddressField';
|
|
4
7
|
import { AddressMatchField } from './components/Fields/AddressMatchField';
|
|
@@ -65,6 +68,10 @@ import { SurnameField } from './components/Fields/SurnameField';
|
|
|
65
68
|
import { TotalIncomeField } from './components/Fields/TotalIncomeField';
|
|
66
69
|
import { WagesField } from './components/Fields/WagesField';
|
|
67
70
|
|
|
71
|
+
const DELIVERY_CITIES_REF = {
|
|
72
|
+
$ref: '/wcms-resources/delivery-cities-data.json',
|
|
73
|
+
};
|
|
74
|
+
|
|
68
75
|
export const InputsApplicationLeadMap = {
|
|
69
76
|
limitedBirthday: LimitedBirthdayField,
|
|
70
77
|
name: NameField,
|
|
@@ -142,7 +149,9 @@ export const InputsRetailMap = {
|
|
|
142
149
|
};
|
|
143
150
|
|
|
144
151
|
export const InputRetailCardMap = {
|
|
145
|
-
addressCourier:
|
|
152
|
+
addressCourier: (props: CustomFieldProps) => (
|
|
153
|
+
<AddressCourierField {...props} source={DELIVERY_CITIES_REF} />
|
|
154
|
+
),
|
|
146
155
|
paymentSystem: PaymentSystemField,
|
|
147
156
|
currency: CurrencyField,
|
|
148
157
|
cardCategory: CardCategoryField,
|
|
@@ -57,7 +57,7 @@ export interface Address {
|
|
|
57
57
|
qcHouse?: string;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export interface
|
|
60
|
+
export interface CalculatorProps {
|
|
61
61
|
moneyValue?: number;
|
|
62
62
|
monthsValue?: number;
|
|
63
63
|
isAnnuity?: boolean;
|
|
@@ -164,7 +164,7 @@ export interface LeadFormState extends FormRetailConsents, FormStateDeliveryType
|
|
|
164
164
|
cardCategory?: Option;
|
|
165
165
|
codeWord?: string;
|
|
166
166
|
esiaAccountTypeCd?: Option;
|
|
167
|
-
calculator?:
|
|
167
|
+
calculator?: CalculatorProps;
|
|
168
168
|
addressRetail?: Option;
|
|
169
169
|
loanAmount?: number;
|
|
170
170
|
creditPeriod?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type DepositCalculatorSourceBookParams } from '../../components/CalculatorDeposit/
|
|
1
|
+
import { type DepositCalculatorSourceBookParams } from '../../components/CalculatorDeposit/CalculatorDepositContent';
|
|
2
|
+
import { type Option } from '../Select/Option';
|
|
2
3
|
import { type CalcDefaultParamsProps } from './CalculatorProps';
|
|
3
4
|
|
|
4
5
|
export const getDefaultParamsMin = (rateRows?: CalcDefaultParamsProps[]) =>
|
|
@@ -9,11 +10,17 @@ export const getDefaultParamsMin = (rateRows?: CalcDefaultParamsProps[]) =>
|
|
|
9
10
|
export const getDefaultParamsMax = (
|
|
10
11
|
rateRows: DepositCalculatorSourceBookParams[] = [],
|
|
11
12
|
isNewClient = false,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
extraPercents: Option[] = [],
|
|
14
|
+
) => {
|
|
15
|
+
return {
|
|
16
|
+
...getDefaultParams(
|
|
17
|
+
[(i: number, acc: number) => i > acc, (i, prev) => i?.minSum < prev?.minSum],
|
|
18
|
+
rateRows?.filter((_) => isNewClient === Boolean(_?.isNewClient)),
|
|
19
|
+
),
|
|
20
|
+
extraPercent: extraPercents.at(-1),
|
|
21
|
+
extraPercents,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
17
24
|
|
|
18
25
|
const getDefaultParams = (
|
|
19
26
|
comparators: [
|
|
@@ -8,7 +8,6 @@ import { Text } from '../../ui-kit/Text/Text';
|
|
|
8
8
|
export interface BinaryRadioButtonGroupProps {
|
|
9
9
|
items: [truthy: RadioButtonItem, falsy: RadioButtonItem];
|
|
10
10
|
title?: string;
|
|
11
|
-
mobileTitle?: string;
|
|
12
11
|
orientation?: ListOrientation;
|
|
13
12
|
value?: boolean;
|
|
14
13
|
className?: string;
|
|
@@ -19,27 +18,19 @@ export interface BinaryRadioButtonGroupProps {
|
|
|
19
18
|
export const renderBinaryRadioButtonGroup = ({
|
|
20
19
|
items,
|
|
21
20
|
title,
|
|
22
|
-
mobileTitle = title,
|
|
23
21
|
orientation = 'horizontal',
|
|
24
22
|
value,
|
|
25
23
|
onChange,
|
|
26
24
|
...rest
|
|
27
25
|
}: BinaryRadioButtonGroupProps) => (
|
|
28
|
-
<div className="grid gap-s whitespace-nowrap">
|
|
26
|
+
<div className="grid gap-s whitespace-nowrap lg:sm:col-span-1 col-span-2">
|
|
29
27
|
{title ? (
|
|
30
|
-
<div
|
|
28
|
+
<div role="radiogroup" aria-label={title}>
|
|
31
29
|
<Text color="text-secondary-text" font="font-light">
|
|
32
30
|
{title}
|
|
33
31
|
</Text>
|
|
34
32
|
</div>
|
|
35
33
|
) : null}
|
|
36
|
-
{mobileTitle ? (
|
|
37
|
-
<div className="@5xl:hidden" role="radiogroup" aria-label={mobileTitle}>
|
|
38
|
-
<Text color="text-secondary-text" font="font-light">
|
|
39
|
-
{mobileTitle}
|
|
40
|
-
</Text>
|
|
41
|
-
</div>
|
|
42
|
-
) : null}
|
|
43
34
|
|
|
44
35
|
<RadioButtonGroup
|
|
45
36
|
orientation={orientation}
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
export const renderPaymentType = (props: Partial<BinaryRadioButtonGroupProps>) =>
|
|
7
7
|
renderBinaryRadioButtonGroup({
|
|
8
8
|
...props,
|
|
9
|
+
title: 'Тип платежа',
|
|
10
|
+
orientation: 'vertical',
|
|
9
11
|
className: 'sm:flex-col',
|
|
10
12
|
items: [
|
|
11
13
|
{ id: 'annuity', text: 'Аннуитетный' },
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
export const renderPayout = (props: Partial<BinaryRadioButtonGroupProps>) =>
|
|
7
7
|
renderBinaryRadioButtonGroup({
|
|
8
8
|
...props,
|
|
9
|
+
title: 'Выплата процентов',
|
|
10
|
+
orientation: 'vertical',
|
|
9
11
|
items: [
|
|
10
12
|
{ id: 'everyMonth', text: 'Ежемесячно' },
|
|
11
13
|
{ id: 'atEndTerm', text: 'В конце срока' },
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
type DepositCalculatorParams,
|
|
7
7
|
type DepositCalculatorSourceBookParams,
|
|
8
|
-
} from '../../components/CalculatorDeposit/
|
|
8
|
+
} from '../../components/CalculatorDeposit/CalculatorDepositContent';
|
|
9
9
|
import { type FormFieldRegisterer } from '../../hooks/useForm/useForm';
|
|
10
10
|
import { clamp } from '../../utils/clamp';
|
|
11
11
|
|