@redneckz/wildless-cms-uni-blocks 0.14.3 → 0.14.4
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/bin/migration-scripts/0.14.4.js +37 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +39 -27
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
- package/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/bundle/model/EmptyOptionType.d.ts +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +16 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorContent.d.ts +27 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +6 -6
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +8 -8
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/dist/content-page-repository/transformHTML.js +32 -2
- package/dist/content-page-repository/transformHTML.js.map +1 -1
- package/dist/model/EmptyOptionType.d.ts +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +16 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorContent.d.ts +27 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -6
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +8 -8
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/lib/content-page-repository/transformHTML.js +9 -2
- package/lib/content-page-repository/transformHTML.js.map +1 -1
- package/lib/model/EmptyOptionType.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +21 -21
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/bundle/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/bundle/model/EmptyOptionType.d.ts +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +6 -6
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +8 -8
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/dist/content-page-repository/transformHTML.js +32 -2
- package/mobile/dist/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/dist/model/EmptyOptionType.d.ts +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorContent.d.ts +27 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -6
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +8 -8
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -1
- package/mobile/lib/content-page-repository/transformHTML.js +9 -2
- package/mobile/lib/content-page-repository/transformHTML.js.map +1 -1
- package/mobile/lib/model/EmptyOptionType.d.ts +1 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +5 -2
- package/mobile/src/components/Calculator/Calculator.example.json +1 -0
- package/mobile/src/components/Calculator/Calculator.ui.json +8 -0
- package/mobile/src/components/Calculator/CalculatorContent.ts +31 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
- package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
- package/mobile/src/content-page-repository/transformHTML.ts +10 -2
- package/mobile/src/model/EmptyOptionType.ts +1 -1
- package/package.json +1 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +5 -2
- package/src/components/Calculator/Calculator.example.json +1 -0
- package/src/components/Calculator/Calculator.tsx +19 -4
- package/src/components/Calculator/Calculator.ui.json +8 -0
- package/src/components/Calculator/CalculatorContent.ts +31 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +6 -6
- package/src/components/Calculator/DepositCalculatorForm.tsx +8 -8
- package/src/components/Calculator/useBonusCalculatorParams.ts +1 -1
- package/src/content-page-repository/transformHTML.ts +10 -2
- package/src/model/EmptyOptionType.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,
|
|
1
|
+
{"version":3,"file":"CreditCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/CreditCalculatorForm.tsx"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAuB,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAA0B,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAOhG,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,EAAE;IAChF,MAAM,CAAC,eAA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,IACP,IAAI,EAAC,gKAA8B,KAC/B,KAAK,CAAC,aAAa,CAAC,EACxB,KAAK,EAAE,MAAM,CAAC,WAAW,GACzB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
4
|
+
import { useForm } from '../../hooks/useForm.js';
|
|
3
5
|
import { renderButtonsSection } from '../../ui-kit/Button/renderButtonsSection.js';
|
|
4
6
|
import { style } from '../../utils/style.js';
|
|
5
|
-
import { renderFootnote } from './renderFootnote.js';
|
|
6
|
-
import { renderWantedSumInput } from './renderWantedSumInput.js';
|
|
7
|
-
import { renderMonthsInput } from './renderMonthsInput.js';
|
|
8
|
-
import { useForm } from '../../hooks/useForm.js';
|
|
9
|
-
import { DEPOSIT_DEFAULT_SUM } from './constants.js';
|
|
10
|
-
import { useDepositCalculatorParams } from './useDepositCalculatorParams.js';
|
|
11
|
-
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
12
7
|
import { CalculatorValueBlock } from './CalculatorValueBlock.js';
|
|
8
|
+
import { DEPOSIT_DEFAULT_SUM } from './constants.js';
|
|
9
|
+
import { renderFootnote } from './renderFootnote.js';
|
|
13
10
|
import { renderInterestPayment } from './renderInterestPayment.js';
|
|
14
|
-
import {
|
|
11
|
+
import { renderMonthsInput } from './renderMonthsInput.js';
|
|
15
12
|
import { renderRate } from './renderRate.js';
|
|
13
|
+
import { renderRegistrationType } from './renderRegistrationType.js';
|
|
14
|
+
import { renderWantedSumInput } from './renderWantedSumInput.js';
|
|
15
|
+
import { useDepositCalculatorParams } from './useDepositCalculatorParams.js';
|
|
16
16
|
export const DepositCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
17
17
|
const [userInputParams, { field }] = useForm({
|
|
18
18
|
moneyValue: DEPOSIT_DEFAULT_SUM,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DepositCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/DepositCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAuB,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAA2B,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAMnG,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CACtC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE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E,KAAK,CAAC,IAC3E,EACN,cAAK,SAAS,EAAC,wCAAwC,GAAO,EAC7D,UAAU,CAAC;gBACV,IAAI;aACL,CAAC,EACF,eAAK,SAAS,EAAC,+BAA+B,aAC5C,KAAC,oBAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,QAAG,EAAC,MAAM,EAAC,GAAG,GAAG,EAC1F,KAAC,oBAAoB,IAAC,KAAK,EAAC,qGAAqB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,QAAG,GAAG,EAChF,oBAAoB,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EACnD,cAAc,CAAC,QAAQ,CAAC,IACrB,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAC9B,MAAqE,EACrE,KAA+B,EAC/B,EAAE,CAAC,CACH,eAAK,SAAS,EAAC,yBAAyB,aACrC,MAAM,CAAC,4BAA4B;YAClC,CAAC,CAAC,qBAAqB,CAAC;gBACpB,KAAK,EAAE,mBAAmB;gBAC1B,GAAG,KAAK,CAAC,0BAA0B,CAAC;gBACpC,KAAK,EAAE,MAAM,CAAC,wBAAwB;aACvC,CAAC;YACJ,CAAC,CAAC,IAAI,EACP,MAAM,CAAC,wBAAwB;YAC9B,CAAC,CAAC,sBAAsB,CAAC;gBACrB,KAAK,EAAE,YAAY;gBACnB,GAAG,KAAK,CAAC,sBAAsB,CAAC;gBAChC,KAAK,EAAE,MAAM,CAAC,oBAAoB;aACnC,CAAC;YACJ,CAAC,CAAC,IAAI,IACJ,CACP,CAAC"}
|
|
@@ -18,7 +18,7 @@ export interface BonusCalculatorParams extends BonusCalculatorUserInputParams, B
|
|
|
18
18
|
monthBonus: number;
|
|
19
19
|
yearBonus: number;
|
|
20
20
|
}
|
|
21
|
-
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir
|
|
21
|
+
export declare const useBonusCalculatorParams: (userInputParams: BonusCalculatorUserInputParams, sourceBookDir?: string) => {
|
|
22
22
|
monthBonus: number;
|
|
23
23
|
yearBonus: number;
|
|
24
24
|
travelExpenseValue: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBonusCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA2B5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,
|
|
1
|
+
{"version":3,"file":"useBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBonusCalculatorParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA2B5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,eAA+C,EAC/C,aAAsB,EACtB,EAAE;IACF,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,eAAe,CAAC;IACjE,MAAM,+BAA+B,GACnC,mBAAmB,CAAkC,aAAa,IAAI,sBAAsB,CAAC;QAC7F,+BAA+B,CAAC;IAElC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,QAAQ,CACtC,+BAA+B,EAC/B,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;IAEF,OAAO;QACL,GAAG,+BAA+B;QAClC,GAAG,eAAe;QAClB,UAAU;QACV,SAAS;KACV,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import rehypeParse from 'rehype-parse';
|
|
2
|
-
import rehypeSanitize from 'rehype-sanitize';
|
|
2
|
+
import rehypeSanitize, { defaultSchema } from 'rehype-sanitize';
|
|
3
3
|
import rehypeStringify from 'rehype-stringify';
|
|
4
4
|
import { unified } from 'unified';
|
|
5
5
|
import { replaceHeadingTags } from './replaceHeadingTags.js';
|
|
@@ -7,9 +7,16 @@ export async function transformHTML(html) {
|
|
|
7
7
|
if (!html) {
|
|
8
8
|
return '';
|
|
9
9
|
}
|
|
10
|
+
const extendedSchema = {
|
|
11
|
+
...defaultSchema,
|
|
12
|
+
protocols: {
|
|
13
|
+
...defaultSchema.protocols,
|
|
14
|
+
href: [...(defaultSchema?.protocols?.href || []), 'tel'],
|
|
15
|
+
},
|
|
16
|
+
};
|
|
10
17
|
const result = await unified()
|
|
11
18
|
.use(rehypeParse)
|
|
12
|
-
.use(rehypeSanitize)
|
|
19
|
+
.use(rehypeSanitize, extendedSchema)
|
|
13
20
|
.use(rehypeStringify)
|
|
14
21
|
.process(html);
|
|
15
22
|
return replaceHeadingTags(result.toString('utf-8'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformHTML.js","sourceRoot":"","sources":["../../src/content-page-repository/transformHTML.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,cAAc,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"transformHTML.js","sourceRoot":"","sources":["../../src/content-page-repository/transformHTML.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAA+B;IACjE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG;QACrB,GAAG,aAAa;QAChB,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,SAAS;YAC1B,IAAI,EAAE,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC;SACzD;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,OAAO,EAAE;SAC3B,GAAG,CAAC,WAAW,CAAC;SAChB,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC;SACnC,GAAG,CAAC,eAAe,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,OAAO,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -1835,7 +1835,7 @@
|
|
|
1835
1835
|
};
|
|
1836
1836
|
};
|
|
1837
1837
|
|
|
1838
|
-
const BonusCalculatorForm = JSX(({ className = '', sourceBookDir
|
|
1838
|
+
const BonusCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
1839
1839
|
const [userInputParams, { field }] = useForm({
|
|
1840
1840
|
travelExpenseValue: DEFAULT_TRAVEL_MIN_SUM,
|
|
1841
1841
|
restExpenseValue: DEFAULT_REST_MIN_SUM,
|
|
@@ -1997,7 +1997,7 @@
|
|
|
1997
1997
|
}
|
|
1998
1998
|
};
|
|
1999
1999
|
|
|
2000
|
-
const BusinessDepositCalculatorForm = JSX(({ className = '',
|
|
2000
|
+
const BusinessDepositCalculatorForm = JSX(({ className = '', rateParams, buttons, footnote, bottomFootnote, isShowDepositeName }) => {
|
|
2001
2001
|
const [userInputParams, { field }] = useForm({
|
|
2002
2002
|
moneyValue: BUSINESS_DEFAULT_SUM,
|
|
2003
2003
|
daysValue: BUSINESS_DEFAULT_DAYS,
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
isSmallBusiness: false,
|
|
2007
2007
|
isMonthlyInterestPayment: false,
|
|
2008
2008
|
});
|
|
2009
|
-
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, sourceBookDir);
|
|
2009
|
+
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.sourceBookDir);
|
|
2010
2010
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
2011
2011
|
return (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsxs("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: [renderWantedSumInput({
|
|
2012
2012
|
title: 'Сумма, ₽',
|
|
@@ -2039,6 +2039,15 @@
|
|
|
2039
2039
|
const renderMonthsInput = ({ min = 0, max = 0, availableMonths, ...rest }) => (jsx(InputRange, { items: [`От ${monthText(min)}`, `До ${monthText(max)}`], step: STEP_MONTHS, ...(availableMonths?.length ? { list: availableMonths } : { min, max }), ...rest }));
|
|
2040
2040
|
const monthText = (month) => `${month} ${Number(month) % 10 === 1 ? 'месяца' : 'месяцев'}`;
|
|
2041
2041
|
|
|
2042
|
+
const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
|
|
2043
|
+
...props,
|
|
2044
|
+
radioGroupClassName: 'sm:flex-col',
|
|
2045
|
+
items: [
|
|
2046
|
+
{ id: 'annuity', text: 'Аннуитетный' },
|
|
2047
|
+
{ id: 'differential', text: 'Дифференцированный' },
|
|
2048
|
+
],
|
|
2049
|
+
});
|
|
2050
|
+
|
|
2042
2051
|
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam$1({
|
|
2043
2052
|
...props,
|
|
2044
2053
|
fieldKey: 'isSalaryClient',
|
|
@@ -2135,15 +2144,6 @@
|
|
|
2135
2144
|
}), [userInputParams, data]);
|
|
2136
2145
|
};
|
|
2137
2146
|
|
|
2138
|
-
const renderPaymentType = (props) => renderBinaryRadioButtonGroup({
|
|
2139
|
-
...props,
|
|
2140
|
-
radioGroupClassName: 'sm:flex-col',
|
|
2141
|
-
items: [
|
|
2142
|
-
{ id: 'annuity', text: 'Аннуитетный' },
|
|
2143
|
-
{ id: 'differential', text: 'Дифференцированный' },
|
|
2144
|
-
],
|
|
2145
|
-
});
|
|
2146
|
-
|
|
2147
2147
|
const CreditCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings, isMobile }) => {
|
|
2148
2148
|
const [userInputParams, { field }] = useForm({
|
|
2149
2149
|
isAnnuity: true,
|
|
@@ -2179,6 +2179,14 @@
|
|
|
2179
2179
|
});
|
|
2180
2180
|
const renderCreditParamsForm$1 = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: `Получаю зарплату на счёт\nв Россельхозбанке`, ...field('isSalaryClient'), value: params.isSalaryClient, className: "whitespace-pre-line sm:whitespace-normal" })) : null, params.isShowStateEmployee ? (jsx(Checkbox, { 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", ...field('isStateEmployee'), value: params.isStateEmployee })) : null, params.isShowPensionClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u043F\u0435\u043D\u0441\u0438\u044E \u043D\u0430 \u043A\u0430\u0440\u0442\u0443 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0430", ...field('isPensionClient'), value: params.isPensionClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null] }));
|
|
2181
2181
|
|
|
2182
|
+
const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
|
|
2183
|
+
...props,
|
|
2184
|
+
items: [
|
|
2185
|
+
{ id: 'remote', text: 'Дистанционно' },
|
|
2186
|
+
{ id: 'office', text: 'Офис Банка' },
|
|
2187
|
+
],
|
|
2188
|
+
});
|
|
2189
|
+
|
|
2182
2190
|
const arrayByRange = (start, stop, step = 1) => Array.from({ length: Math.abs(stop - start) / step + 1 }, (value, index) => stop >= start ? start + index * step : start - index * step);
|
|
2183
2191
|
|
|
2184
2192
|
const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
@@ -2233,14 +2241,6 @@
|
|
|
2233
2241
|
const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
2234
2242
|
const getMiddleMonth = (minMonths, maxMonths) => minMonths + Math.round((maxMonths - minMonths) / 2);
|
|
2235
2243
|
|
|
2236
|
-
const renderRegistrationType = (props) => renderBinaryRadioButtonGroup({
|
|
2237
|
-
...props,
|
|
2238
|
-
items: [
|
|
2239
|
-
{ id: 'remote', text: 'Дистанционно' },
|
|
2240
|
-
{ id: 'office', text: 'Офис Банка' },
|
|
2241
|
-
],
|
|
2242
|
-
});
|
|
2243
|
-
|
|
2244
2244
|
const DepositCalculatorForm = JSX(({ className, sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
2245
2245
|
const [userInputParams, { field }] = useForm({
|
|
2246
2246
|
moneyValue: DEPOSIT_DEFAULT_SUM,
|
|
@@ -4915,7 +4915,7 @@
|
|
|
4915
4915
|
|
|
4916
4916
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
4917
4917
|
|
|
4918
|
-
const packageVersion = "0.14.
|
|
4918
|
+
const packageVersion = "0.14.4";
|
|
4919
4919
|
|
|
4920
4920
|
exports.Blocks = Blocks;
|
|
4921
4921
|
exports.ContentPage = ContentPage;
|