@redneckz/wildless-cms-uni-blocks 0.8.20 → 0.8.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/bundle.umd.js +83 -40
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/bundle/components/Calculator/constants.d.ts +2 -2
- package/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
- package/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/dist/components/Calculator/CreditCalculatorForm.js +7 -15
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +13 -1
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/constants.d.ts +2 -2
- package/dist/components/Calculator/constants.js +6 -7
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/rangeHelpers.js +1 -1
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/dist/components/Calculator/renderInterestPayment.js +2 -2
- package/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/dist/components/Calculator/renderPaymentType.d.ts +12 -0
- package/dist/components/Calculator/renderPaymentType.js +22 -0
- package/dist/components/Calculator/renderPaymentType.js.map +1 -0
- package/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/dist/components/Calculator/renderRegistrationType.js +22 -0
- package/dist/components/Calculator/renderRegistrationType.js.map +1 -0
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/Footer/Contacts.js +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Sitemap.js +7 -5
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -14
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +13 -1
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/constants.d.ts +2 -2
- package/lib/components/Calculator/constants.js +6 -7
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/rangeHelpers.js +1 -1
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/lib/components/Calculator/renderInterestPayment.js +2 -2
- package/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/lib/components/Calculator/renderPaymentType.d.ts +12 -0
- package/lib/components/Calculator/renderPaymentType.js +19 -0
- package/lib/components/Calculator/renderPaymentType.js.map +1 -0
- package/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/lib/components/Calculator/renderRegistrationType.js +19 -0
- package/lib/components/Calculator/renderRegistrationType.js.map +1 -0
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/Footer/Contacts.js +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Sitemap.js +7 -5
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
- package/mobile/bundle/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/bundle/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/bundle/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +7 -15
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +13 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.d.ts +2 -2
- package/mobile/dist/components/Calculator/constants.js +6 -7
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.js +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/dist/components/Calculator/renderInterestPayment.js +2 -2
- package/mobile/dist/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/dist/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/dist/components/Calculator/renderPaymentType.js +22 -0
- package/mobile/dist/components/Calculator/renderPaymentType.js.map +1 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.js +22 -0
- package/mobile/dist/components/Calculator/renderRegistrationType.js.map +1 -0
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.js +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.js +7 -5
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +7 -2
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +0 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -14
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +13 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.d.ts +2 -2
- package/mobile/lib/components/Calculator/constants.js +6 -7
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.js +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.d.ts +9 -1
- package/mobile/lib/components/Calculator/renderInterestPayment.js +2 -2
- package/mobile/lib/components/Calculator/renderInterestPayment.js.map +1 -1
- package/mobile/lib/components/Calculator/renderPaymentType.d.ts +12 -0
- package/mobile/lib/components/Calculator/renderPaymentType.js +19 -0
- package/mobile/lib/components/Calculator/renderPaymentType.js.map +1 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.d.ts +10 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.js +19 -0
- package/mobile/lib/components/Calculator/renderRegistrationType.js.map +1 -0
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +3 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +1 -4
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +2 -4
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +2 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.js +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.js +7 -5
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +2 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
- package/mobile/src/components/Calculator/constants.ts +6 -7
- package/mobile/src/components/Calculator/rangeHelpers.ts +1 -1
- package/mobile/src/components/Calculator/renderInterestPayment.tsx +21 -9
- package/mobile/src/components/Calculator/renderPaymentType.tsx +49 -0
- package/mobile/src/components/Calculator/renderRegistrationType.tsx +51 -0
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/Sitemap.tsx +10 -5
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
- package/package.json +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +9 -8
- package/src/components/Calculator/CreditCalculatorForm.tsx +8 -22
- package/src/components/Calculator/DepositCalculatorForm.tsx +22 -8
- package/src/components/Calculator/constants.ts +6 -7
- package/src/components/Calculator/rangeHelpers.ts +1 -1
- package/src/components/Calculator/renderInterestPayment.tsx +21 -9
- package/src/components/Calculator/renderPaymentType.tsx +49 -0
- package/src/components/Calculator/renderRegistrationType.tsx +51 -0
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +4 -3
- package/src/components/Calculator/useCreditCalculatorParams.ts +3 -8
- package/src/components/Calculator/useDepositCalculatorParams.ts +4 -2
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Sitemap.tsx +10 -5
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +22 -5
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +9 -2
|
@@ -2,8 +2,8 @@ import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
|
|
|
2
2
|
import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
|
|
3
3
|
import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
|
|
4
4
|
import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
|
|
5
|
-
export declare const DEFAULT_MIN_SUM =
|
|
6
|
-
export declare const DEFAULT_MAX_SUM =
|
|
5
|
+
export declare const DEFAULT_MIN_SUM = 30000;
|
|
6
|
+
export declare const DEFAULT_MAX_SUM = 5000000;
|
|
7
7
|
export declare const DEFAULT_SUM: number;
|
|
8
8
|
export declare const DEFAULT_MIN_MONTHS = 13;
|
|
9
9
|
export declare const DEFAULT_MAX_MONTHS = 60;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface InterestPaymentProps {
|
|
4
|
+
isMonthlyInterestPayment: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation, }: InterestPaymentProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
export declare const ANNUITY = "annuity";
|
|
4
|
+
export declare const DIFFERENTIAL = "differential";
|
|
5
|
+
interface PaymentTypeProps {
|
|
6
|
+
isAnnuity: boolean;
|
|
7
|
+
callback?: (value: boolean) => void;
|
|
8
|
+
title?: string;
|
|
9
|
+
orientation?: ListOrientation;
|
|
10
|
+
}
|
|
11
|
+
export declare function renderPaymentType({ isAnnuity, callback, title, orientation, }: PaymentTypeProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface RegistrationTypeProps {
|
|
4
|
+
isRemoteRegistration: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface BusinessCommonDepositParams {
|
|
2
|
+
isMonthlyInterestPayment: boolean;
|
|
3
3
|
isReplenished: boolean;
|
|
4
4
|
isPartialWithdrawal: boolean;
|
|
5
5
|
isSmallBusiness: boolean;
|
|
@@ -20,6 +20,7 @@ export interface BusinessDepositCalculatorParams extends BusinessDepositCalculat
|
|
|
20
20
|
income?: number;
|
|
21
21
|
finalSum?: number;
|
|
22
22
|
isDisabledOperatingDeposit?: boolean;
|
|
23
|
+
isShowUnknownRate?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare type BusinessDepositCalculatorData = {
|
|
25
26
|
rows: BusinessDepositCalculatorSourceBookParams[];
|
|
@@ -8,9 +8,7 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
|
|
|
8
8
|
maxSum: number;
|
|
9
9
|
minMonths: number;
|
|
10
10
|
maxMonths: number;
|
|
11
|
-
|
|
12
|
-
rateTopRange: number;
|
|
13
|
-
sumBorder: number;
|
|
11
|
+
rate: number;
|
|
14
12
|
}
|
|
15
13
|
export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
16
14
|
isAnnuity: boolean;
|
|
@@ -19,7 +17,6 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
|
19
17
|
}
|
|
20
18
|
export interface CreditCalculatorParams extends CreditCalculatorSourceBookParams, CreditCalculatorUserInputParams {
|
|
21
19
|
monthlyPayment: number;
|
|
22
|
-
finalRate: number;
|
|
23
20
|
}
|
|
24
21
|
export declare type CreditCalculatorData = {
|
|
25
22
|
rows: CreditCalculatorSourceBookParams[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
1
2
|
export interface RadioButtonItem {
|
|
2
3
|
id: string;
|
|
3
4
|
text?: string;
|
|
@@ -6,6 +7,7 @@ interface RadioButtonGroupProps {
|
|
|
6
7
|
items?: RadioButtonItem[];
|
|
7
8
|
checkedItem?: string;
|
|
8
9
|
onChange?: (id: string) => void;
|
|
10
|
+
orientation?: ListOrientation;
|
|
9
11
|
}
|
|
10
12
|
export declare const RadioButtonGroup: import("@redneckz/uni-jsx").UNIComponent<RadioButtonGroupProps, any, any>;
|
|
11
13
|
export {};
|
|
@@ -36,13 +36,18 @@ exports.BusinessDepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', so
|
|
|
36
36
|
isMonthlyInterestPayment,
|
|
37
37
|
};
|
|
38
38
|
const calculatorParams = (0, useBusinessDepositCalculatorParams_1.useBusinessDepositCalculatorParams)(userInputParams, sourceBookDir);
|
|
39
|
-
const { income, finalSum, rate, depositeName } = calculatorParams;
|
|
39
|
+
const { income, finalSum, rate, depositeName, isShowUnknownRate } = calculatorParams;
|
|
40
40
|
return ((0, jsx_runtime_1.jsxs)("section", { className: className, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[486px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма вклада, ₽', calculatorParams, handleMoneyValue), (0, renderDaysInput_1.renderDaysInput)('Срок вклада, дни', calculatorParams, handleDaysValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7 flex justify-between", children: [renderBusinessDepositParamsForm({
|
|
41
41
|
...calculatorParams,
|
|
42
42
|
handleIsReplenished,
|
|
43
43
|
handleIsPartialWithdrawal,
|
|
44
44
|
handleIsSmallBusiness,
|
|
45
|
-
}), (0, renderInterestPayment_1.renderInterestPayment)(
|
|
45
|
+
}), (0, renderInterestPayment_1.renderInterestPayment)({
|
|
46
|
+
isMonthlyInterestPayment,
|
|
47
|
+
callback: handleIsMonthlyInterestPayment,
|
|
48
|
+
title: 'Выплата процентов',
|
|
49
|
+
orientation: 'vertical',
|
|
50
|
+
})] })] }), isShowUnknownRate ? ((0, jsx_runtime_1.jsx)(UnknownRate_1.UnknownRate, {})) : ((0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, depositeName: depositeName, isShowDepositeName: isShowDepositeName, rateBlockClassName: "tracking-[-25px]", unit: "%" })), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, jsx_runtime_1.jsx)("div", { className: "mt-7", children: (0, renderFootnote_1.renderFootnote)(footnote) })] })] }), (0, jsx_runtime_1.jsx)("div", { className: "mt-5", children: (0, renderFootnote_1.renderFootnote)(bottomFootnote) })] }));
|
|
46
51
|
});
|
|
47
52
|
const renderBusinessDepositParamsForm = ({ isDisabledOperatingDeposit, isReplenished, isPartialWithdrawal, isSmallBusiness, handleIsReplenished, handleIsPartialWithdrawal, handleIsSmallBusiness, }) => ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: isDisabledOperatingDeposit, checked: isReplenished, onChange: handleIsReplenished }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", disabled: isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", checked: isPartialWithdrawal, onChange: handleIsPartialWithdrawal }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043C\u0430\u043B\u044B\u043C \u043F\u0440\u0435\u0434\u043F\u0440\u0438\u044F\u0442\u0438\u0435\u043C", checked: isSmallBusiness, onChange: handleIsSmallBusiness })] }));
|
|
48
53
|
//# sourceMappingURL=BusinessDepositCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAE1D,iEAA8D;AAC9D,2CAA0E;AAC1E,iCAA8B;AAC9B,uDAAoD;AACpD,qDAAkD;AAClD,mEAAgE;AAChE,iEAA8D;AAC9D,+CAA4C;AAC5C,6FAG8C;AAMjC,QAAA,6BAA6B,GAAG,IAAA,aAAG,EAC9C,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,EAAE,EAAE,EAAE;IAC3F,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,gCAAoB,CAAC,CAAC;IACnE,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,iCAAqB,CAAC,CAAC;IAClE,MAAM,eAAe,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC7D,MAAM,mBAAmB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACpF,MAAM,CAAC,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACzE,MAAM,yBAAyB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChG,MAAM,CAAC,eAAe,EAAE,qBAAqB,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACjE,MAAM,qBAAqB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAU,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACxF,MAAM,CAAC,wBAAwB,EAAE,8BAA8B,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACnF,MAAM,8BAA8B,GAAG,IAAA,mBAAW,EAChD,CAAC,CAAU,EAAE,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC,EACjD,EAAE,CACH,CAAC;IACF,MAAM,eAAe,GAAG;QACtB,UAAU;QACV,SAAS;QACT,aAAa;QACb,mBAAmB;QACnB,eAAe;QACf,wBAAwB;KACzB,CAAC;IAEF,MAAM,gBAAgB,GAAG,IAAA,uEAAkC,EAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAC5F,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"BusinessDepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/BusinessDepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAE1D,iEAA8D;AAC9D,2CAA0E;AAC1E,iCAA8B;AAC9B,uDAAoD;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EAAE,qBAAqB,GAC/B,IACE,CACP,CAAC"}
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.CreditCalculatorForm =
|
|
2
|
+
exports.CreditCalculatorForm = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const hooks_1 = require("@redneckz/uni-jsx/lib/hooks");
|
|
6
6
|
const renderButtonsSection_1 = require("../../ui-kit/Button/renderButtonsSection");
|
|
7
7
|
const Checkbox_1 = require("../../ui-kit/Checkbox/Checkbox");
|
|
8
|
-
const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
9
8
|
const style_1 = require("../../utils/style");
|
|
10
9
|
const CalculatorValueBlock_1 = require("./CalculatorValueBlock");
|
|
11
10
|
const constants_1 = require("./constants");
|
|
12
11
|
const Rate_1 = require("./Rate");
|
|
13
12
|
const renderFootnote_1 = require("./renderFootnote");
|
|
14
13
|
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
14
|
+
const renderPaymentType_1 = require("./renderPaymentType");
|
|
15
15
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
16
16
|
const useCreditCalculatorParams_1 = require("./useCreditCalculatorParams");
|
|
17
|
-
exports.ANNUITY = 'annuity';
|
|
18
|
-
exports.DIFFERENTIAL = 'differential';
|
|
19
|
-
const paymentTypeItems = [
|
|
20
|
-
{
|
|
21
|
-
id: exports.ANNUITY,
|
|
22
|
-
text: 'Аннуитетный',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: exports.DIFFERENTIAL,
|
|
26
|
-
text: 'Дифференцированный',
|
|
27
|
-
},
|
|
28
|
-
];
|
|
29
17
|
exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
30
18
|
const [isAnnuity, toggleIsAnnuity] = (0, hooks_1.useState)(false);
|
|
31
19
|
const [isInsurance, toggleIsInsurance] = (0, hooks_1.useState)(true);
|
|
@@ -44,6 +32,10 @@ exports.CreditCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookD
|
|
|
44
32
|
monthsValue,
|
|
45
33
|
};
|
|
46
34
|
const calculatorParams = (0, useCreditCalculatorParams_1.useCreditCalculatorParams)(userInputParams, sourceBookDir);
|
|
47
|
-
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок кредита, месяцев', calculatorParams, handleMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.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", checked: isSalaryClient, onChange: toggleIsSalaryClient }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", 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", checked: isInsurance, onChange: toggleIsInsurance })] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.
|
|
35
|
+
return ((0, jsx_runtime_1.jsxs)("section", { className: (0, style_1.style)('flex justify-between', className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "w-[468px]", children: [(0, renderWantedSumInput_1.renderWantedSumInput)('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок кредита, месяцев', calculatorParams, handleMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7", children: [(0, jsx_runtime_1.jsx)(Checkbox_1.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", checked: isSalaryClient, onChange: toggleIsSalaryClient }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { className: "mt-3", 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", checked: isInsurance, onChange: toggleIsInsurance })] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: 'Ежемесячный платеж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), (0, renderPaymentType_1.renderPaymentType)({
|
|
36
|
+
isAnnuity,
|
|
37
|
+
orientation: 'vertical',
|
|
38
|
+
callback: toggleIsAnnuity,
|
|
39
|
+
}), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
48
40
|
});
|
|
49
41
|
//# sourceMappingURL=CreditCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAC1D,
|
|
1
|
+
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6DAA0D;AAC1D,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,2DAAwD;AACxD,2DAAwD;AACxD,iEAA8D;AAC9D,2EAAwE;AAM3D,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD,MAAM,CAAC,SAAS,EAAE,eAAe,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IACrD,MAAM,CAAC,WAAW,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACxD,MAA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,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,6KAAiC,EACtC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,qBAAqB,GAC/B,EACF,uBAAC,mBAAQ,IACP,SAAS,EAAC,MAAM,EAChB,IAAI,EAAC,gKAA8B,EACnC,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,iBAAiB,GAC3B,IACE,IACF,EACN,uBAAC,WAAI,IACH,KAAK,EAAC,sCAAQ,EACd,IAAI,EAAE,gBAAgB,CAAC,IAAI,EAC3B,kBAAkB,EAAC,kBAAkB,EACrC,IAAI,EAAC,GAAG,GACR,EACF,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2CAAoB,IACnB,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE,gBAAgB,CAAC,cAAc,EACtC,OAAO,EAAC,QAAG,GACX,EACD,IAAA,qCAAiB,EAAC;wBACjB,SAAS;wBACT,WAAW,EAAE,UAAU;wBACvB,QAAQ,EAAE,eAAe;qBAC1B,CAAC,EACD,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACtE,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -12,6 +12,7 @@ const Rate_1 = require("./Rate");
|
|
|
12
12
|
const renderFootnote_1 = require("./renderFootnote");
|
|
13
13
|
const renderInterestPayment_1 = require("./renderInterestPayment");
|
|
14
14
|
const renderMonthsInput_1 = require("./renderMonthsInput");
|
|
15
|
+
const renderRegistrationType_1 = require("./renderRegistrationType");
|
|
15
16
|
const renderWantedSumInput_1 = require("./renderWantedSumInput");
|
|
16
17
|
const useDepositCalculatorParams_1 = require("./useDepositCalculatorParams");
|
|
17
18
|
exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
@@ -20,10 +21,13 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBook
|
|
|
20
21
|
const [monthsValue, setMonthsValue] = (0, hooks_1.useState)(constants_1.DEFAULT_MONTHS);
|
|
21
22
|
const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = (0, hooks_1.useState)(false);
|
|
22
23
|
const handleIsMonthlyInterestPayment = (0, hooks_1.useCallback)((_) => toggleIsMonthlyInterestPayment(_), []);
|
|
24
|
+
const [isRemoteRegistration, toggleIsRemoteRegistration] = (0, hooks_1.useState)(false);
|
|
25
|
+
const handleIsRemoteRegistration = (0, hooks_1.useCallback)((_) => toggleIsRemoteRegistration(_), []);
|
|
23
26
|
const userInputParams = {
|
|
24
27
|
moneyValue,
|
|
25
28
|
monthsValue,
|
|
26
29
|
isMonthlyInterestPayment,
|
|
30
|
+
isRemoteRegistration,
|
|
27
31
|
};
|
|
28
32
|
const handleMonthsValue = (0, hooks_1.useCallback)((_) => setMonthsValue(_), []);
|
|
29
33
|
const calculatorParams = (0, useDepositCalculatorParams_1.useDepositCalculatorParams)(userInputParams, sourceBookDir);
|
|
@@ -32,6 +36,14 @@ exports.DepositCalculatorForm = (0, uni_jsx_1.JSX)(({ className = '', sourceBook
|
|
|
32
36
|
...calculatorParams,
|
|
33
37
|
}, handleMoneyValue), (0, renderMonthsInput_1.renderMonthsInput)('Срок вклада, месяцев', {
|
|
34
38
|
...calculatorParams,
|
|
35
|
-
}, handleMonthsValue)
|
|
39
|
+
}, handleMonthsValue), (0, jsx_runtime_1.jsxs)("div", { className: "mt-7 flex flex-col gap-y-7", children: [(0, renderInterestPayment_1.renderInterestPayment)({
|
|
40
|
+
isMonthlyInterestPayment,
|
|
41
|
+
callback: handleIsMonthlyInterestPayment,
|
|
42
|
+
title: 'Выплата процентов',
|
|
43
|
+
}), (0, renderRegistrationType_1.renderRegistrationType)({
|
|
44
|
+
isRemoteRegistration,
|
|
45
|
+
callback: handleIsRemoteRegistration,
|
|
46
|
+
title: 'Оформление',
|
|
47
|
+
})] })] }), (0, jsx_runtime_1.jsx)(Rate_1.Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), (0, jsx_runtime_1.jsxs)("div", { className: "w-full max-w-[350px]", children: [(0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" }), (0, jsx_runtime_1.jsx)(CalculatorValueBlock_1.CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), (0, renderButtonsSection_1.renderButtonsSection)(buttons, { className: 'mt-7', isVertical: true }), (0, renderFootnote_1.renderFootnote)(footnote)] })] }));
|
|
36
48
|
});
|
|
37
49
|
//# sourceMappingURL=DepositCalculatorForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";;;AAAA,OAAO;AAEP,+CAAwC;AACxC,uDAAoE;AACpE,mFAAgF;AAChF,6CAA0C;AAE1C,iEAA8D;AAC9D,2CAA0D;AAC1D,iCAA8B;AAC9B,qDAAkD;AAClD,mEAAgE;AAChE,2DAAwD;AACxD,iEAA8D;AAC9D,6EAA0E;AAM7D,QAAA,qBAAqB,GAAG,IAAA,aAAG,EACtC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;IACvD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,IAAA,gBAAQ,EAAC,uBAAW,CAAC,CAAC;IAC1D,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,CAAC,CAAS,EAAE,EAAE,CAAC,aAAa,CAAC,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AAE,YAAY;6BACpB,CAAC,IACE,IACF,EACN,uBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAC,kBAAkB,EAAC,IAAI,EAAC,GAAG,GAAG,EACnE,iCAAK,SAAS,EAAC,sBAAsB,aACnC,uBAAC,2CAAoB,IAAC,KAAK,EAAC,kFAAiB,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,EACtF,uBAAC,2CAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,EAChF,IAAA,2CAAoB,EAAC,OAAO,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACtE,IAAA,+BAAc,EAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -2,8 +2,8 @@ import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
|
|
|
2
2
|
import { BusinessDepositCalculatorSourceBookParams } from './useBusinessDepositCalculatorParams';
|
|
3
3
|
import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
|
|
4
4
|
import { DepositCalculatorSourceBookParams } from './useDepositCalculatorParams';
|
|
5
|
-
export declare const DEFAULT_MIN_SUM =
|
|
6
|
-
export declare const DEFAULT_MAX_SUM =
|
|
5
|
+
export declare const DEFAULT_MIN_SUM = 30000;
|
|
6
|
+
export declare const DEFAULT_MAX_SUM = 5000000;
|
|
7
7
|
export declare const DEFAULT_SUM: number;
|
|
8
8
|
export declare const DEFAULT_MIN_MONTHS = 13;
|
|
9
9
|
export declare const DEFAULT_MAX_MONTHS = 60;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.BUSINESS_DEPOSIT_CALC_DEFAULT_DIR = exports.DEPOSIT_CALC_DEFAULT_DIR = exports.BONUS_CALC_DEFAULT_DIR = exports.CREDIT_CALC_DEFAULT_DIR = exports.DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = exports.DEFAULT_DEPOSIT_CALCULATOR_PARAMS = exports.DEFAULT_BONUS_CALCULATOR_PARAMS = exports.DEFAULT_REST_MIN_SUM = exports.DEFAULT_TRAVEL_MIN_SUM = exports.DEFAULT_CREDIT_CALCULATOR_PARAMS = exports.MONTHLY_INTEREST_RATE = exports.MONTHS_IN_YEAR = exports.BUSINESS_DEFAULT_DAYS = exports.BUSINESS_OPERATING_MAX_DAYS = exports.BUSINESS_OPERATING_MIN_DAYS = exports.BUSINESS_RATE_MIN_DAYS = exports.BUSINESS_MAX_DAYS = exports.BUSINESS_MIN_DAYS = exports.BUSINESS_DEFAULT_SUM = exports.DEFAULT_MONTHS = exports.DEFAULT_MAX_MONTHS = exports.DEFAULT_MIN_MONTHS = exports.DEFAULT_SUM = exports.DEFAULT_MAX_SUM = exports.DEFAULT_MIN_SUM = void 0;
|
|
3
|
-
exports.DEFAULT_MIN_SUM =
|
|
4
|
-
exports.DEFAULT_MAX_SUM =
|
|
3
|
+
exports.DEFAULT_MIN_SUM = 30000;
|
|
4
|
+
exports.DEFAULT_MAX_SUM = 5000000;
|
|
5
5
|
exports.DEFAULT_SUM = (exports.DEFAULT_MAX_SUM - exports.DEFAULT_MIN_SUM) / 2;
|
|
6
6
|
exports.DEFAULT_MIN_MONTHS = 13;
|
|
7
7
|
exports.DEFAULT_MAX_MONTHS = 60;
|
|
@@ -20,12 +20,10 @@ exports.DEFAULT_CREDIT_CALCULATOR_PARAMS = {
|
|
|
20
20
|
maxSum: exports.DEFAULT_MAX_SUM,
|
|
21
21
|
minMonths: exports.DEFAULT_MIN_MONTHS,
|
|
22
22
|
maxMonths: exports.DEFAULT_MAX_MONTHS,
|
|
23
|
-
|
|
24
|
-
rateTopRange: 7,
|
|
23
|
+
rate: 0,
|
|
25
24
|
isSalaryClient: true,
|
|
26
25
|
isStateEmployee: true,
|
|
27
26
|
isInsurance: true,
|
|
28
|
-
sumBorder: 999999,
|
|
29
27
|
};
|
|
30
28
|
exports.DEFAULT_TRAVEL_MIN_SUM = 6000;
|
|
31
29
|
exports.DEFAULT_REST_MIN_SUM = 6000;
|
|
@@ -46,15 +44,16 @@ exports.DEFAULT_DEPOSIT_CALCULATOR_PARAMS = {
|
|
|
46
44
|
maxSum: 5000000,
|
|
47
45
|
minMonths: 2,
|
|
48
46
|
maxMonths: 120,
|
|
49
|
-
rate:
|
|
47
|
+
rate: 0,
|
|
50
48
|
isMonthlyInterestPayment: true,
|
|
49
|
+
isRemoteRegistration: true,
|
|
51
50
|
};
|
|
52
51
|
exports.DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS = {
|
|
53
52
|
minSum: 1000,
|
|
54
53
|
maxSum: 500000,
|
|
55
54
|
minDays: exports.BUSINESS_MIN_DAYS,
|
|
56
55
|
maxDays: exports.BUSINESS_MAX_DAYS,
|
|
57
|
-
rate:
|
|
56
|
+
rate: 0,
|
|
58
57
|
isMonthlyInterestPayment: true,
|
|
59
58
|
isReplenished: false,
|
|
60
59
|
isPartialWithdrawal: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":";;AAKa,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,eAAe,GAAG,OAAO,CAAC;AAC1B,QAAA,WAAW,GAAG,CAAC,uBAAe,GAAG,uBAAe,CAAC,GAAG,CAAC,CAAC;AACtD,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,kBAAkB,GAAG,EAAE,CAAC;AACxB,QAAA,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,0BAAkB,GAAG,0BAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3E,QAAA,oBAAoB,GAAG,MAAM,CAAC;AAC9B,QAAA,iBAAiB,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AG,yBAAyB,CAAC;AACrD,QAAA,iCAAiC,GAAG,0BAA0B,CAAC"}
|
|
@@ -7,6 +7,6 @@ const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
|
7
7
|
[maxKey]: rows.length ? (0, maxBy_1.maxBy)()(rows.map((row) => row[maxKey])) : 0,
|
|
8
8
|
});
|
|
9
9
|
exports.getRangeByKeys = getRangeByKeys;
|
|
10
|
-
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value
|
|
10
|
+
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
11
11
|
exports.checkRangeByKeys = checkRangeByKeys;
|
|
12
12
|
//# sourceMappingURL=rangeHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,6CAA0C;AAEnC,MAAM,cAAc,GAAG,CAK5B,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,CAAC;IACJ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,aAAK,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,aAAK,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC,CAAC;AAVU,QAAA,cAAc,kBAUxB;AAEI,MAAM,gBAAgB,GAAG,CAK9B,KAAa,EACb,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,aAAgB,EACP,EAAE,CAAC,KAAK,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,6CAA0C;AAEnC,MAAM,cAAc,GAAG,CAK5B,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,OAAY,EAAE,EACd,EAAE,CAAC,CAAC;IACJ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,aAAK,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAA,aAAK,GAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACpE,CAAC,CAAC;AAVU,QAAA,cAAc,kBAUxB;AAEI,MAAM,gBAAgB,GAAG,CAK9B,KAAa,EACb,CAAC,MAAM,EAAE,MAAM,CAAmB,EAClC,aAAgB,EACP,EAAE,CAAC,KAAK,IAAI,aAAa,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AARlE,QAAA,gBAAgB,oBAQkD"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface InterestPaymentProps {
|
|
4
|
+
isMonthlyInterestPayment: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation, }: InterestPaymentProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -15,8 +15,8 @@ const depositTypeItems = [
|
|
|
15
15
|
text: 'В конце срока',
|
|
16
16
|
},
|
|
17
17
|
];
|
|
18
|
-
function renderInterestPayment(isMonthlyInterestPayment, callback, title) {
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title })) : null, (0, jsx_runtime_1.jsx)("div", {
|
|
18
|
+
function renderInterestPayment({ isMonthlyInterestPayment, callback, title, orientation = 'horizontal', }) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => callback && callback(text === EVERY_MONTH) }) })] }));
|
|
20
20
|
}
|
|
21
21
|
exports.renderInterestPayment = renderInterestPayment;
|
|
22
22
|
//# sourceMappingURL=renderInterestPayment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"renderInterestPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInterestPayment.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAE9C,MAAM,WAAW,GAAG,YAAY,CAAC;AACjC,MAAM,WAAW,GAAG,WAAW,CAAC;AAEhC,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,eAAe;KACtB;CACF,CAAC;AASF,SAAgB,qBAAqB,CAAC,EACpC,wBAAwB,EACxB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACL;IACrB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EAER,0CACE,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,wBAAwB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,EACjE,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW,CAAC,GACtE,GACE,IACF,CACP,CAAC;AACJ,CAAC;AA1BD,sDA0BC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
export declare const ANNUITY = "annuity";
|
|
4
|
+
export declare const DIFFERENTIAL = "differential";
|
|
5
|
+
interface PaymentTypeProps {
|
|
6
|
+
isAnnuity: boolean;
|
|
7
|
+
callback?: (value: boolean) => void;
|
|
8
|
+
title?: string;
|
|
9
|
+
orientation?: ListOrientation;
|
|
10
|
+
}
|
|
11
|
+
export declare function renderPaymentType({ isAnnuity, callback, title, orientation, }: PaymentTypeProps): JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderPaymentType = exports.DIFFERENTIAL = exports.ANNUITY = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
5
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
+
exports.ANNUITY = 'annuity';
|
|
7
|
+
exports.DIFFERENTIAL = 'differential';
|
|
8
|
+
const paymentTypeItems = [
|
|
9
|
+
{
|
|
10
|
+
id: exports.ANNUITY,
|
|
11
|
+
text: 'Аннуитетный',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: exports.DIFFERENTIAL,
|
|
15
|
+
text: 'Дифференцированный',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
function renderPaymentType({ isAnnuity, callback, title, orientation = 'horizontal', }) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: paymentTypeItems, checkedItem: isAnnuity ? exports.ANNUITY : exports.DIFFERENTIAL, onChange: (text) => callback && callback(text === exports.ANNUITY) })] }));
|
|
20
|
+
}
|
|
21
|
+
exports.renderPaymentType = renderPaymentType;
|
|
22
|
+
//# sourceMappingURL=renderPaymentType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderPaymentType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentType.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAEjC,QAAA,OAAO,GAAG,SAAS,CAAC;AACpB,QAAA,YAAY,GAAG,cAAc,CAAC;AAE3C,MAAM,gBAAgB,GAAG;IACvB;QACE,EAAE,EAAE,eAAO;QACX,IAAI,EAAE,aAAa;KACpB;IACD;QACE,EAAE,EAAE,oBAAY;QAChB,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AASF,SAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACT;IACjB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,gBAAgB,EACvB,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,eAAO,CAAC,CAAC,CAAC,oBAAY,EAC/C,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,eAAO,CAAC,GAClE,IACE,CACP,CAAC;AACJ,CAAC;AAvBD,8CAuBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListOrientation } from '../../model/ListOrientation';
|
|
3
|
+
interface RegistrationTypeProps {
|
|
4
|
+
isRemoteRegistration: boolean;
|
|
5
|
+
callback?: (value: boolean) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
orientation?: ListOrientation;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderRegistrationType({ isRemoteRegistration, callback, title, orientation, }: RegistrationTypeProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.renderRegistrationType = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const RadioButtonGroup_1 = require("../../ui-kit/RadioButtonGroup/RadioButtonGroup");
|
|
5
|
+
const Text_1 = require("../../ui-kit/Text/Text");
|
|
6
|
+
const REMOTE_REGISTRATION = 'remote';
|
|
7
|
+
const OFFICE_REGISTRATION = 'office';
|
|
8
|
+
const registrationTypeItems = [
|
|
9
|
+
{
|
|
10
|
+
id: OFFICE_REGISTRATION,
|
|
11
|
+
text: 'Офис Банка',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: REMOTE_REGISTRATION,
|
|
15
|
+
text: 'Дистанционно',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
function renderRegistrationType({ isRemoteRegistration, callback, title, orientation = 'horizontal', }) {
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [title ? ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(RadioButtonGroup_1.RadioButtonGroup, { orientation: orientation, items: registrationTypeItems, checkedItem: isRemoteRegistration ? REMOTE_REGISTRATION : OFFICE_REGISTRATION, onChange: (text) => callback && callback(text === REMOTE_REGISTRATION) }) })] }));
|
|
20
|
+
}
|
|
21
|
+
exports.renderRegistrationType = renderRegistrationType;
|
|
22
|
+
//# sourceMappingURL=renderRegistrationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRegistrationType.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRegistrationType.tsx"],"names":[],"mappings":";;;AACA,qFAAkF;AAClF,iDAA8C;AAE9C,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AACrC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC,MAAM,qBAAqB,GAAG;IAC5B;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,YAAY;KACnB;IACD;QACE,EAAE,EAAE,mBAAmB;QACvB,IAAI,EAAE,cAAc;KACrB;CACF,CAAC;AASF,SAAgB,sBAAsB,CAAC,EACrC,oBAAoB,EACpB,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,YAAY,GACJ;IACtB,OAAO,CACL,4CACG,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAC,MAAM,YACnB,uBAAC,WAAI,IAAC,KAAK,EAAC,qBAAqB,EAAC,IAAI,EAAC,YAAY,YAChD,KAAK,GACD,GACH,CACP,CAAC,CAAC,CAAC,IAAI,EACR,0CACE,uBAAC,mCAAgB,IACf,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,qBAAqB,EAC5B,WAAW,EAAE,oBAAoB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,EAC7E,QAAQ,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,IAAI,KAAK,mBAAmB,CAAC,GAC9E,GACE,IACF,CACP,CAAC;AACJ,CAAC;AAzBD,wDAyBC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface BusinessCommonDepositParams {
|
|
2
|
+
isMonthlyInterestPayment: boolean;
|
|
3
3
|
isReplenished: boolean;
|
|
4
4
|
isPartialWithdrawal: boolean;
|
|
5
5
|
isSmallBusiness: boolean;
|
|
@@ -20,6 +20,7 @@ export interface BusinessDepositCalculatorParams extends BusinessDepositCalculat
|
|
|
20
20
|
income?: number;
|
|
21
21
|
finalSum?: number;
|
|
22
22
|
isDisabledOperatingDeposit?: boolean;
|
|
23
|
+
isShowUnknownRate?: boolean;
|
|
23
24
|
}
|
|
24
25
|
export declare type BusinessDepositCalculatorData = {
|
|
25
26
|
rows: BusinessDepositCalculatorSourceBookParams[];
|
|
@@ -13,7 +13,7 @@ const useBusinessDepositCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
13
13
|
...constants_1.DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS,
|
|
14
14
|
...userInputParams,
|
|
15
15
|
isDisabledOperatingDeposit,
|
|
16
|
-
|
|
16
|
+
isShowUnknownRate: true,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
const businessDepositCalculatorSourceBookParams = data?.rows?.find((_) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAMqB;AACrB,iDAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"useBusinessDepositCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBusinessDepositCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAMqB;AACrB,iDAAkE;AAClE,+DAA4D;AAmCrD,MAAM,kCAAkC,GAAG,CAChD,eAAyD,EACzD,aAAsB,EACW,EAAE;IACnC,MAAM,EACJ,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,wBAAwB,GACzB,GAAG,eAAe,CAAC;IACpB,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAC9B,aAAa,IAAI,6CAAiC,CACnD,CAAC;IAEF,MAAM,kBAAkB,GAAG,aAAa,IAAI,mBAAmB,CAAC;IAChE,MAAM,0BAA0B,GAC9B,SAAS,GAAG,uCAA2B,IAAI,SAAS,GAAG,uCAA2B,CAAC;IAErF,IAAI,SAAS,IAAI,kCAAsB,EAAE;QACvC,OAAO;YACL,GAAG,sDAA0C;YAC7C,GAAG,eAAe;YAClB,0BAA0B;YAC1B,iBAAiB,EAAE,IAAI;SACxB,CAAC;KACH;IACD,MAAM,yCAAyC,GAC7C,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,wBAAwB,KAAK,CAAC,CAAC,wBAAwB;YACvD,eAAe,KAAK,CAAC,CAAC,eAAe;YACrC,uBAAuB,CAAC,kBA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AC,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC;KAC7F;SAAM;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;KAChE;AACH,CAAC,CAAC"}
|
|
@@ -8,9 +8,7 @@ export interface CreditCalculatorSourceBookParams extends CommonCreditParams {
|
|
|
8
8
|
maxSum: number;
|
|
9
9
|
minMonths: number;
|
|
10
10
|
maxMonths: number;
|
|
11
|
-
|
|
12
|
-
rateTopRange: number;
|
|
13
|
-
sumBorder: number;
|
|
11
|
+
rate: number;
|
|
14
12
|
}
|
|
15
13
|
export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
16
14
|
isAnnuity: boolean;
|
|
@@ -19,7 +17,6 @@ export interface CreditCalculatorUserInputParams extends CommonCreditParams {
|
|
|
19
17
|
}
|
|
20
18
|
export interface CreditCalculatorParams extends CreditCalculatorSourceBookParams, CreditCalculatorUserInputParams {
|
|
21
19
|
monthlyPayment: number;
|
|
22
|
-
finalRate: number;
|
|
23
20
|
}
|
|
24
21
|
export declare type CreditCalculatorData = {
|
|
25
22
|
rows: CreditCalculatorSourceBookParams[];
|
|
@@ -14,16 +14,14 @@ const useCreditCalculatorParams = (userInputParams, sourceBookDir) => {
|
|
|
14
14
|
(0, rangeHelpers_1.checkRangeByKeys)(moneyValue, ['minSum', 'maxSum'], _) &&
|
|
15
15
|
(0, rangeHelpers_1.checkRangeByKeys)(monthsValue, ['minMonths', 'maxMonths'], _));
|
|
16
16
|
}) || constants_1.DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
17
|
-
const {
|
|
18
|
-
const
|
|
19
|
-
const monthlyPayment = (0, getMonthlyPayment_1.getMonthlyPayment)(finalRate, userInputParams);
|
|
17
|
+
const { rate } = creditCalculatorSourceBookParams;
|
|
18
|
+
const monthlyPayment = (0, getMonthlyPayment_1.getMonthlyPayment)(rate, userInputParams);
|
|
20
19
|
const sourceBookRows = data?.rows || [constants_1.DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
21
20
|
return {
|
|
22
21
|
...creditCalculatorSourceBookParams,
|
|
23
22
|
...(0, rangeHelpers_1.getRangeByKeys)(['minSum', 'maxSum'], sourceBookRows),
|
|
24
23
|
...(0, rangeHelpers_1.getRangeByKeys)(['minMonths', 'maxMonths'], sourceBookRows),
|
|
25
24
|
...userInputParams,
|
|
26
|
-
finalRate,
|
|
27
25
|
monthlyPayment,
|
|
28
26
|
};
|
|
29
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAAwF;AACxF,2DAAwD;AACxD,iDAAkE;AAClE,+DAA4D;
|
|
1
|
+
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":";;AAAA,2CAAwF;AACxF,2DAAwD;AACxD,iDAAkE;AAClE,+DAA4D;AA+BrD,MAAM,yBAAyB,GAAG,CACvC,eAAgD,EAChD,aAAsB,EACE,EAAE;IAC1B,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,eAAe,CAAC;IAElG,MAAM,IAAI,GAAG,IAAA,yCAAmB,EAAuB,aAAa,IAAI,mCAAuB,CAAC,CAAC;IACjG,MAAM,gCAAgC,GACpC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;QACrB,OAAO,CACL,WAAW,KAAK,CAAC,CAAC,WAAW;YAC7B,cAAc,KAAK,CAAC,CAAC,cAAc;YACnC,eAAe,KAAK,CAA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