@redneckz/wildless-cms-uni-blocks 0.11.0 → 0.11.1
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 +71 -46
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/dist/components/BaseTile/BaseTile.js +1 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/dist/components/Calculator/rangeHelpers.js +2 -2
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +1 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/lib/components/Calculator/rangeHelpers.js +4 -4
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +5 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/lib/components/Calculator/rangeHelpers.js +4 -4
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
- package/mobile/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/mobile/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/mobile/src/components/Calculator/rangeHelpers.ts +4 -4
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/package.json +1 -1
- package/src/components/BaseTile/BaseTile.tsx +2 -2
- package/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/src/components/Calculator/rangeHelpers.ts +4 -4
- package/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/tailwind.config.cjs +0 -15
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CommonCreditParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface CheckSourceBookRowProps {
|
|
4
|
+
row: CommonCreditParams;
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const checkCreditSourceBookRowCommonParams: (props: CheckSourceBookRowProps) => boolean;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const checkCreditSourceBookRowCommonParams = (props) => checkRowParam({
|
|
2
|
+
...props,
|
|
3
|
+
fieldKey: 'isSalaryClient',
|
|
4
|
+
viewSettingFieldKey: 'isShowSalaryClient',
|
|
5
|
+
}) &&
|
|
6
|
+
checkRowParam({
|
|
7
|
+
...props,
|
|
8
|
+
fieldKey: 'isStateEmployee',
|
|
9
|
+
viewSettingFieldKey: 'isShowStateEmployee',
|
|
10
|
+
}) &&
|
|
11
|
+
checkRowParam({
|
|
12
|
+
...props,
|
|
13
|
+
fieldKey: 'isPensionClient',
|
|
14
|
+
viewSettingFieldKey: 'isShowPensionClient',
|
|
15
|
+
}) &&
|
|
16
|
+
checkRowParam({
|
|
17
|
+
...props,
|
|
18
|
+
fieldKey: 'isInsurance',
|
|
19
|
+
viewSettingFieldKey: 'isShowInsurance',
|
|
20
|
+
});
|
|
21
|
+
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
22
|
+
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
23
|
+
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=checkCreditSourceBookRowCommonParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkCreditSourceBookRowCommonParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/checkCreditSourceBookRowCommonParams.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,KAA8B,EAAE,EAAE,CACrF,aAAa,CAAC;IACZ,GAAG,KAAK;IACR,QAAQ,EAAE,gBAAgB;IAC1B,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,iBAAiB;QAC3B,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,iBAAiB;QAC3B,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,aAAa;QACvB,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;AAEL,MAAM,aAAa,GAAG,CAAC,EACrB,GAAG,EACH,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,GACU,EAAE,EAAE;IACjC,MAAM,SAAS,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAExF,OAAO,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;AAClE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CreditCalculatorSourceBookLimitParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface GetCreditCalculatorLimitParamsProps {
|
|
4
|
+
limitRows: CreditCalculatorSourceBookLimitParams[];
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCreditCalculatorLimitParams: ({ limitRows, userInputParams, paramsViewSettings, }: GetCreditCalculatorLimitParamsProps) => CreditCalculatorSourceBookLimitParams | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { checkCreditSourceBookRowCommonParams } from './checkCreditSourceBookRowCommonParams.js';
|
|
2
|
+
export const getCreditCalculatorLimitParams = ({ limitRows, userInputParams, paramsViewSettings, }) => limitRows?.find((row) => checkCreditSourceBookRowCommonParams({
|
|
3
|
+
row,
|
|
4
|
+
userInputParams,
|
|
5
|
+
paramsViewSettings,
|
|
6
|
+
}));
|
|
7
|
+
//# sourceMappingURL=getCreditCalculatorLimitParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorLimitParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCreditCalculatorLimitParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAW9F,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,SAAS,EACT,eAAe,EACf,kBAAkB,GACkB,EAAE,EAAE,CACxC,SAAS,EAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CACtB,oCAAoC,CAAC;IACnC,GAAG;IACH,eAAe;IACf,kBAAkB;CACnB,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CreditCalculatorSourceBookRateParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface GetCreditCalculatorRateParamsProps {
|
|
4
|
+
rateRows: CreditCalculatorSourceBookRateParams[];
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
moneyValue: number;
|
|
8
|
+
monthsValue: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const getCreditCalculatorRateParams: ({ rateRows, userInputParams, paramsViewSettings, moneyValue, monthsValue, }: GetCreditCalculatorRateParamsProps) => CreditCalculatorSourceBookRateParams;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { checkCreditSourceBookRowCommonParams } from './checkCreditSourceBookRowCommonParams.js';
|
|
2
|
+
import { DEFAULT_CREDIT_CALCULATOR_PARAMS } from './constants.js';
|
|
3
|
+
import { checkRangeByKeys } from './rangeHelpers.js';
|
|
4
|
+
export const getCreditCalculatorRateParams = ({ rateRows = [], userInputParams, paramsViewSettings, moneyValue, monthsValue, }) => rateRows?.find((row) => checkCreditSourceBookRowCommonParams({
|
|
5
|
+
row,
|
|
6
|
+
userInputParams,
|
|
7
|
+
paramsViewSettings,
|
|
8
|
+
}) &&
|
|
9
|
+
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
10
|
+
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
11
|
+
//# sourceMappingURL=getCreditCalculatorRateParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCreditCalculatorRateParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCreditCalculatorRateParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAC9F,OAAO,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAalD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,EAC5C,QAAQ,GAAG,EAAE,EACb,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,WAAW,GACwB,EAAE,EAAE,CACvC,QAAQ,EAAE,IAAI,CACZ,CAAC,GAAG,EAAE,EAAE,CACN,oCAAoC,CAAC;IACnC,GAAG;IACH,eAAe;IACf,kBAAkB;CACnB,CAAC;IACF,gBAAgB,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE,GAAG,CAAC;IACvD,gBAAgB,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,GAAG,CAAC,CACjE,IAAI,gCAAgC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const getLimitRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], limitParams?: T | undefined, rateRows?: T[]) => {
|
|
2
|
-
[x: string]:
|
|
2
|
+
[x: string]: number;
|
|
3
3
|
};
|
|
4
4
|
export declare const getRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => {
|
|
5
|
-
[x: string]:
|
|
5
|
+
[x: string]: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const getMergeRangesByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => number[][];
|
|
8
8
|
export declare const checkRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>(value: number, [minKey, maxKey]: [MinKey, MaxKey], sourceBookRow: T) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { max } from '../../utils/maxBy.js';
|
|
2
2
|
import { mergeIntervals } from '../../utils/mergeIntervals.js';
|
|
3
|
-
import {
|
|
3
|
+
import { min } from '../../utils/minBy.js';
|
|
4
4
|
export const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
5
5
|
? {
|
|
6
6
|
[minKey]: limitParams[minKey],
|
|
@@ -8,8 +8,8 @@ export const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []
|
|
|
8
8
|
}
|
|
9
9
|
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
10
10
|
export const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
11
|
-
[minKey]: rows.length ?
|
|
12
|
-
[maxKey]: rows.length ?
|
|
11
|
+
[minKey]: rows.length ? min(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
|
|
12
|
+
[maxKey]: rows.length ? max(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
|
|
13
13
|
});
|
|
14
14
|
export const getMergeRangesByKeys = ([minKey, maxKey], rows = []) => mergeIntervals(rows.map((row) => [row[minKey], row[maxKey]]));
|
|
15
15
|
export const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rangeHelpers.js","sourceRoot":"","sources":["../../../src/components/Calculator/rangeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,CAAC,M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,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAEnE,MAAM,CAAC,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"}
|
|
@@ -1,56 +1,44 @@
|
|
|
1
1
|
import { useMemo } from '@redneckz/uni-jsx/lib/hooks';
|
|
2
|
+
import { clamp } from '../../utils/clamp.js';
|
|
2
3
|
import { CREDIT_CALC_DEFAULT_DIR, DEFAULT_CREDIT_CALCULATOR_PARAMS } from './constants.js';
|
|
4
|
+
import { getCreditCalculatorLimitParams } from './getCreditCalculatorLimitParams.js';
|
|
5
|
+
import { getCreditCalculatorRateParams } from './getCreditCalculatorRateParams.js';
|
|
3
6
|
import { getMonthlyPayment } from './getMonthlyPayment.js';
|
|
4
|
-
import {
|
|
7
|
+
import { getLimitRangeByKeys } from './rangeHelpers.js';
|
|
5
8
|
import { useCalculatorParams } from './useCalculatorParams.js';
|
|
6
9
|
export const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
7
|
-
|
|
10
|
+
let { moneyValue, monthsValue } = userInputParams;
|
|
8
11
|
const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
|
|
9
|
-
const
|
|
10
|
-
|
|
12
|
+
const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
13
|
+
const limitRows = data?.limitRows || [];
|
|
14
|
+
const creditCalculatorSourceBookLimitParams = getCreditCalculatorLimitParams({
|
|
15
|
+
limitRows,
|
|
11
16
|
userInputParams,
|
|
12
17
|
paramsViewSettings,
|
|
13
|
-
})
|
|
14
|
-
const
|
|
15
|
-
|
|
18
|
+
});
|
|
19
|
+
const { minSum, maxSum } = getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows);
|
|
20
|
+
const { minMonths, maxMonths } = getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows);
|
|
21
|
+
moneyValue = clamp(moneyValue, minSum, maxSum);
|
|
22
|
+
monthsValue = clamp(monthsValue, minMonths, maxMonths);
|
|
23
|
+
const creditCalculatorRateParams = getCreditCalculatorRateParams({
|
|
24
|
+
rateRows,
|
|
16
25
|
userInputParams,
|
|
17
26
|
paramsViewSettings,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const { rate } =
|
|
27
|
+
moneyValue,
|
|
28
|
+
monthsValue,
|
|
29
|
+
});
|
|
30
|
+
const { rate } = creditCalculatorRateParams;
|
|
22
31
|
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
23
|
-
const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
24
32
|
return useMemo(() => ({
|
|
25
|
-
...
|
|
26
|
-
...getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows),
|
|
27
|
-
...getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows),
|
|
33
|
+
...creditCalculatorRateParams,
|
|
28
34
|
...userInputParams,
|
|
35
|
+
minSum,
|
|
36
|
+
maxSum,
|
|
37
|
+
minMonths,
|
|
38
|
+
maxMonths,
|
|
39
|
+
moneyValue,
|
|
40
|
+
monthsValue,
|
|
29
41
|
monthlyPayment,
|
|
30
42
|
}), [userInputParams, data]);
|
|
31
43
|
};
|
|
32
|
-
const checkRowCommonParams = (props) => checkRowParam({
|
|
33
|
-
...props,
|
|
34
|
-
fieldKey: 'isSalaryClient',
|
|
35
|
-
viewSettingFieldKey: 'isShowSalaryClient',
|
|
36
|
-
}) &&
|
|
37
|
-
checkRowParam({
|
|
38
|
-
...props,
|
|
39
|
-
fieldKey: 'isStateEmployee',
|
|
40
|
-
viewSettingFieldKey: 'isShowStateEmployee',
|
|
41
|
-
}) &&
|
|
42
|
-
checkRowParam({
|
|
43
|
-
...props,
|
|
44
|
-
fieldKey: 'isPensionClient',
|
|
45
|
-
viewSettingFieldKey: 'isShowPensionClient',
|
|
46
|
-
}) &&
|
|
47
|
-
checkRowParam({
|
|
48
|
-
...props,
|
|
49
|
-
fieldKey: 'isInsurance',
|
|
50
|
-
viewSettingFieldKey: 'isShowInsurance',
|
|
51
|
-
});
|
|
52
|
-
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
53
|
-
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
54
|
-
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
55
|
-
};
|
|
56
44
|
//# sourceMappingURL=useCreditCalculatorParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"useCreditCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useCreditCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CA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BAA0B;QAC7B,GAAG,eAAe;QAClB,MAAM;QACN,MAAM;QACN,SAAS;QACT,SAAS;QACT,UAAU;QACV,WAAW;QACX,cAAc;KACf,CAAC,EACF,CAAC,eAAe,EAAE,IAAI,CAAC,CACxB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { Text } from '../../ui-kit/Text/Text.js';
|
|
4
4
|
import { TextInformationLink } from './TextInformationLink.js';
|
|
5
5
|
import { textInformationTextSize } from './textInformationTextSize.js';
|
|
6
|
-
export const TextInformation = JSX(({ className = '', links }) => (_jsxs("div", { className: className, children: [_jsx("div", { className: "pt-
|
|
6
|
+
export const TextInformation = JSX(({ className = '', links }) => (_jsxs("div", { className: className, children: [_jsx("div", { className: "pt-4 xl:pt-5", children: _jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (_jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (_jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
7
7
|
//# sourceMappingURL=TextInformation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAa,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KA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|
@@ -10,6 +10,6 @@ import { renderBenefit } from './renderBenefit.js';
|
|
|
10
10
|
export const ProductBlockInner = JSX(({ className, version = 'primary', headlineVersion = 'L', title, description, benefits, benefitsVersion, items, isDotted = true, __html, buttons, image, directionRight = true, }) => {
|
|
11
11
|
const benefitsWithLabel = benefits?.filter((_) => _.label);
|
|
12
12
|
const img = image?.src ? _jsx(Img, { className: "mt-[-50px]", image: image }) : null;
|
|
13
|
-
return (_jsxs(BaseTile, { className: className, insetTitle: _jsx(Headline, { className: "max-w-[600px] xl:max-w-[
|
|
13
|
+
return (_jsxs(BaseTile, { className: className, insetTitle: _jsx(Headline, { className: "max-w-[600px] xl:max-w-[728px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (_jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit(version, benefitsVersion)) })) : null, __html ? (_jsx("div", { className: "mt-5", children: _jsx(RichText, { __html: __html }) })) : null, items?.length ? _jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=ProductBlockInner.js.map
|
|
@@ -19,7 +19,7 @@ export const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', i
|
|
|
19
19
|
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
20
20
|
const style = {
|
|
21
21
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
22
|
-
height: image.size?.height ? `${image.size?.height}px` : '
|
|
22
|
+
height: image.size?.height ? `${image.size?.height}px` : 'auto',
|
|
23
23
|
};
|
|
24
24
|
const title = image.title || '';
|
|
25
25
|
const alt = image.alt || image.title;
|
|
@@ -3,6 +3,6 @@ import { JSX } from '@redneckz/uni-jsx';
|
|
|
3
3
|
import { Button } from '../Button/Button.js';
|
|
4
4
|
import { Icon } from '../Icon/Icon.js';
|
|
5
5
|
export const TableInnerButton = JSX(({ isOpen, onClick }) => {
|
|
6
|
-
return (_jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [_jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать
|
|
6
|
+
return (_jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [_jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать' }), _jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20" })] }));
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=InnerTableButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"InnerTableButton.js","sourceRoot":"","sources":["../../../src/ui-kit/InnerTable/InnerTableButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACjF,OAAO,CACL,MAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,2DAA2D,aAErE,cAAK,SAAS,EAAC,SAAS,YAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,GAAO,EAC/D,KAAC,IAAI,IACH,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,EAC9C,SAAS,EAAC,MAAM,EAChB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,IACK,CACV,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -604,7 +604,7 @@
|
|
|
604
604
|
const renderImg = (image, imageClassName = '', isMobile = false) => {
|
|
605
605
|
const style = {
|
|
606
606
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
607
|
-
height: image.size?.height ? `${image.size?.height}px` : '
|
|
607
|
+
height: image.size?.height ? `${image.size?.height}px` : 'auto',
|
|
608
608
|
};
|
|
609
609
|
const title = image.title || '';
|
|
610
610
|
const alt = image.alt || image.title;
|
|
@@ -1242,7 +1242,7 @@
|
|
|
1242
1242
|
|
|
1243
1243
|
const textInformationTextSize = 'text-s';
|
|
1244
1244
|
|
|
1245
|
-
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-
|
|
1245
|
+
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-4 xl:pt-5", children: jsx(Text, { size: textInformationTextSize, color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-4", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
1246
1246
|
|
|
1247
1247
|
const Footer = JSX(({ className = '', ...rest }) => {
|
|
1248
1248
|
const fallback = rest.options?.page?.fallback;
|
|
@@ -1750,7 +1750,7 @@
|
|
|
1750
1750
|
return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
|
|
1751
1751
|
});
|
|
1752
1752
|
|
|
1753
|
-
const BaseTile = JSX(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col font-sans', className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, jsxs("div", { className: "grow relative flex flex-wrap justify-between items-stretch gap-8", children: [leftImage, jsxs("div", { className: style('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), rightImage ? jsx("div", { className: "
|
|
1753
|
+
const BaseTile = JSX(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col font-sans', className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, jsxs("div", { className: "grow relative flex flex-wrap md:flex-nowrap justify-between items-stretch gap-8", children: [leftImage, jsxs("div", { className: style('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), rightImage ? jsx("div", { className: "-order-1 lg:order-1", children: rightImage }) : null] })] })));
|
|
1754
1754
|
|
|
1755
1755
|
const BenefitItem = JSX(({ className, icon, label, description, version = 'primary', benefitsVersion = 'normal' }) => (jsxs("div", { className: style('flex gap-5', description ? 'items-start' : 'items-center', className), children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { children: [label ? (jsx(Text, { size: "text-h6", color: "text-primary-text group-data-secondary:text-white", children: label })) : null, description ? (jsx(Paragraph, { size: "text-m-light", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
|
|
1756
1756
|
function getBenefitIconBgStyle(version, benefitsVersion) {
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
const ProductBlockInner = JSX(({ className, version = 'primary', headlineVersion = 'L', title, description, benefits, benefitsVersion, items, isDotted = true, __html, buttons, image, directionRight = true, }) => {
|
|
1770
1770
|
const benefitsWithLabel = benefits?.filter((_) => _.label);
|
|
1771
1771
|
const img = image?.src ? jsx(Img, { className: "mt-[-50px]", image: image }) : null;
|
|
1772
|
-
return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[
|
|
1772
|
+
return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[728px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
|
|
1773
1773
|
});
|
|
1774
1774
|
|
|
1775
1775
|
function renderBackwardButton({ text, href, target, icon }, version) {
|
|
@@ -2087,7 +2087,7 @@
|
|
|
2087
2087
|
|
|
2088
2088
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
2089
2089
|
|
|
2090
|
-
const packageVersion = "0.11.
|
|
2090
|
+
const packageVersion = "0.11.1";
|
|
2091
2091
|
|
|
2092
2092
|
exports.Blocks = Blocks;
|
|
2093
2093
|
exports.ContentPage = ContentPage;
|