@redneckz/wildless-cms-uni-blocks 0.14.105 → 0.14.107
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 +100 -89
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/bundle/utils/adjustHref.d.ts +2 -0
- package/bundle/utils/isUUID.d.ts +1 -0
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -24
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/dist/components/Calculator/CalculatorFormLayout.js +7 -0
- package/dist/components/Calculator/CalculatorFormLayout.js.map +1 -0
- package/dist/components/Calculator/CreditCalculatorForm.js +17 -17
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +17 -17
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js +33 -33
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/content-page-repository/transformAttachmentLink.js +2 -1
- package/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformDocument.js +2 -1
- package/dist/content-page-repository/transformDocument.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +7 -7
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/content-page-repository/transformPicture.js +4 -0
- package/dist/content-page-repository/transformPicture.js.map +1 -1
- package/dist/utils/adjustHref.d.ts +2 -0
- package/dist/utils/adjustHref.js +8 -2
- package/dist/utils/adjustHref.js.map +1 -1
- package/dist/utils/isUUID.d.ts +1 -0
- package/dist/utils/isUUID.js +7 -0
- package/dist/utils/isUUID.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -24
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/lib/components/Calculator/CalculatorFormLayout.js +5 -0
- package/lib/components/Calculator/CalculatorFormLayout.js.map +1 -0
- package/lib/components/Calculator/CreditCalculatorForm.js +17 -17
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +17 -17
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js +33 -33
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/content-page-repository/transformAttachmentLink.js +2 -1
- package/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformDocument.js +2 -1
- package/lib/content-page-repository/transformDocument.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +7 -7
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/content-page-repository/transformPicture.js +4 -0
- package/lib/content-page-repository/transformPicture.js.map +1 -1
- package/lib/utils/adjustHref.d.ts +2 -0
- package/lib/utils/adjustHref.js +7 -1
- package/lib/utils/adjustHref.js.map +1 -1
- package/lib/utils/isUUID.d.ts +1 -0
- package/lib/utils/isUUID.js +4 -0
- package/lib/utils/isUUID.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +100 -89
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/mobile/bundle/utils/adjustHref.d.ts +2 -0
- package/mobile/bundle/utils/isUUID.d.ts +1 -0
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -24
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/mobile/dist/components/Calculator/CalculatorFormLayout.js +7 -0
- package/mobile/dist/components/Calculator/CalculatorFormLayout.js.map +1 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +17 -17
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +17 -17
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +33 -33
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +2 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocument.js +2 -1
- package/mobile/dist/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +7 -7
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/content-page-repository/transformPicture.js +4 -0
- package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/dist/utils/adjustHref.d.ts +2 -0
- package/mobile/dist/utils/adjustHref.js +8 -2
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/dist/utils/isUUID.d.ts +1 -0
- package/mobile/dist/utils/isUUID.js +7 -0
- package/mobile/dist/utils/isUUID.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -24
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorFormLayout.d.ts +8 -0
- package/mobile/lib/components/Calculator/CalculatorFormLayout.js +5 -0
- package/mobile/lib/components/Calculator/CalculatorFormLayout.js.map +1 -0
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +17 -17
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +17 -17
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +33 -33
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +2 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocument.js +2 -1
- package/mobile/lib/content-page-repository/transformDocument.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +7 -7
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/content-page-repository/transformPicture.js +4 -0
- package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
- package/mobile/lib/utils/adjustHref.d.ts +2 -0
- package/mobile/lib/utils/adjustHref.js +7 -1
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/lib/utils/isUUID.d.ts +1 -0
- package/mobile/lib/utils/isUUID.js +4 -0
- package/mobile/lib/utils/isUUID.js.map +1 -0
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +38 -34
- package/mobile/src/components/Calculator/CalculatorFormLayout.tsx +22 -0
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +38 -34
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +38 -29
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +61 -56
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +2 -1
- package/mobile/src/content-page-repository/transformContentPage.ts +2 -2
- package/mobile/src/content-page-repository/transformDocument.ts +2 -1
- package/mobile/src/content-page-repository/transformImg.ts +7 -7
- package/mobile/src/content-page-repository/transformPicture.ts +4 -0
- package/mobile/src/utils/adjustHref.ts +10 -2
- package/mobile/src/utils/isUUID.ts +3 -0
- package/package.json +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +38 -34
- package/src/components/Calculator/CalculatorFormLayout.tsx +22 -0
- package/src/components/Calculator/CreditCalculatorForm.tsx +38 -34
- package/src/components/Calculator/DepositCalculatorForm.tsx +38 -29
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +61 -56
- package/src/content-page-repository/transformAttachmentLink.ts +2 -1
- package/src/content-page-repository/transformContentPage.ts +2 -2
- package/src/content-page-repository/transformDocument.ts +2 -1
- package/src/content-page-repository/transformImg.ts +7 -7
- package/src/content-page-repository/transformPicture.ts +4 -0
- package/src/utils/adjustHref.ts +10 -2
- package/src/utils/isUUID.ts +3 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -389,6 +389,10 @@
|
|
|
389
389
|
|
|
390
390
|
const dirname = (path) => path?.split('/').slice(0, -1).join('/');
|
|
391
391
|
|
|
392
|
+
const isUUID = (src) => {
|
|
393
|
+
return /^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$/.test(src);
|
|
394
|
+
};
|
|
395
|
+
|
|
392
396
|
const isURL = (href) => Boolean(href?.includes(':'));
|
|
393
397
|
const isLocalURL = (href, target) => Boolean(href && !isURL(href) && (!target || target === '_self'));
|
|
394
398
|
const isHash = (href) => Boolean(href?.startsWith('#'));
|
|
@@ -404,10 +408,15 @@
|
|
|
404
408
|
joinPath: joinPath
|
|
405
409
|
});
|
|
406
410
|
|
|
411
|
+
const PREFIX_API = '/api/';
|
|
412
|
+
const FILE_STORAGE_API = `${PREFIX_API}v1/storage`;
|
|
407
413
|
const adjustHref = (router) => (href, basePath = projectSettings.BASE_PATH) => {
|
|
408
|
-
if (!href || isURL(href) || hasPrefix(href,
|
|
414
|
+
if (!href || isURL(href) || [projectSettings.CDN, PREFIX_API].some((_) => hasPrefix(href, _))) {
|
|
409
415
|
return href;
|
|
410
416
|
}
|
|
417
|
+
if (isUUID(href)) {
|
|
418
|
+
return `${FILE_STORAGE_API}/${href}/file`;
|
|
419
|
+
}
|
|
411
420
|
const isRelativeToBase = href.startsWith('/');
|
|
412
421
|
return joinPath(hasPrefix(href, basePath) ? '' : basePath, isRelativeToBase ? '/' : dirname(router.pathname), href);
|
|
413
422
|
};
|
|
@@ -2022,6 +2031,8 @@
|
|
|
2022
2031
|
: null, jsxs("div", { className: "flex flex-col gap-y-4xl @xl:w-96", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
|
|
2023
2032
|
});
|
|
2024
2033
|
|
|
2034
|
+
const CalculatorFormLayout = JSX(({ className, inputChildren, rateChildren, resultChildren }) => (jsxs("section", { className: style('flex flex-col justify-between @5xl:flex-row gap-m', className), children: [jsx("div", { className: "flex flex-col gap-y-m sm:max-w-md gap-2xl", children: inputChildren }), jsx("div", { className: "border-b border-main-divider md:hidden" }), rateChildren, jsx("div", { className: "flex flex-col gap-2xl sm:w-96 max-w-full", children: resultChildren })] })));
|
|
2035
|
+
|
|
2025
2036
|
const getMoneyDefaultValue = (defaultParams, defaultMoney = 0) => defaultParams?.sum && defaultParams.sum >= DEFAULT_MIN_SUM$1 && defaultParams.sum <= DEFAULT_MAX_SUM$1
|
|
2026
2037
|
? defaultParams.sum
|
|
2027
2038
|
: defaultMoney;
|
|
@@ -2133,29 +2144,29 @@
|
|
|
2133
2144
|
});
|
|
2134
2145
|
const calculatorParams = useBusinessDepositCalculatorParams(userInputParams, rateParams?.rateType && rateParams.sourceBookDir);
|
|
2135
2146
|
const { income, finalSum, rate, isUnavailableByTerm, depositeName } = calculatorParams;
|
|
2136
|
-
return (
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2147
|
+
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2148
|
+
title: 'Сумма, ₽',
|
|
2149
|
+
min: calculatorParams.minSum,
|
|
2150
|
+
max: calculatorParams.maxSum,
|
|
2151
|
+
...field('moneyValue'),
|
|
2152
|
+
value: calculatorParams.moneyValue,
|
|
2153
|
+
}), renderDaysInput({
|
|
2154
|
+
title: 'Срок, дней',
|
|
2155
|
+
min: calculatorParams.minDays,
|
|
2156
|
+
max: calculatorParams.maxDays,
|
|
2157
|
+
...field('daysValue'),
|
|
2158
|
+
value: calculatorParams.daysValue,
|
|
2159
|
+
}), jsxs("div", { className: "flex flex-col sm:flex-row gap-y-4 gap-x-14", children: [renderBusinessDepositParamsForm(calculatorParams, field), renderInterestPayment({
|
|
2160
|
+
title: 'Выплата процентов',
|
|
2161
|
+
orientation: 'vertical',
|
|
2162
|
+
...field('isMonthlyInterestPayment'),
|
|
2163
|
+
radioGroupClassName: 'sm:flex-col',
|
|
2164
|
+
})] })] }), rateChildren: renderRate({
|
|
2165
|
+
rate,
|
|
2166
|
+
depositeName,
|
|
2167
|
+
isShowDepositeName,
|
|
2168
|
+
isUnavailableByTerm,
|
|
2169
|
+
}), resultChildren: jsxs("div", { children: [renderDepositResults(finalSum, income), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote), renderFootnote(bottomFootnote)] }) }));
|
|
2159
2170
|
});
|
|
2160
2171
|
const renderBusinessDepositParamsForm = (calculatorParams, field) => (jsxs("div", { className: "space-y-s", children: [jsx(Text, { color: "text-secondary-text", font: "font-light", children: "\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B" }), jsxs("div", { className: "flex flex-col gap-y-xl sm:gap-y-s", children: [jsx(Checkbox, { text: "\u041F\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435", disabled: calculatorParams.isDisabledOperatingDeposit, ...field('isReplenished'), value: calculatorParams.isReplenished }), jsx(Checkbox, { disabled: calculatorParams.isDisabledOperatingDeposit, text: "\u0427\u0430\u0441\u0442\u0438\u0447\u043D\u043E\u0435 \u0441\u043D\u044F\u0442\u0438\u0435", ...field('isPartialWithdrawal'), value: calculatorParams.isPartialWithdrawal })] })] }));
|
|
2161
2172
|
const renderDepositResults = (finalSum, income) => (jsxs("div", { className: "flex flex-col gap-2xl sm:gap-0", children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" })] }));
|
|
@@ -2286,22 +2297,22 @@
|
|
|
2286
2297
|
orientation: 'vertical',
|
|
2287
2298
|
...field('isAnnuity'),
|
|
2288
2299
|
});
|
|
2289
|
-
return (
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2300
|
+
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2301
|
+
title: 'Сумма кредита, ₽',
|
|
2302
|
+
step: 500,
|
|
2303
|
+
min: calculatorParams.minSum,
|
|
2304
|
+
max: calculatorParams.maxSum,
|
|
2305
|
+
...field('moneyValue'),
|
|
2306
|
+
value: calculatorParams.moneyValue,
|
|
2307
|
+
}), renderMonthsInput({
|
|
2308
|
+
title: 'Срок кредита, месяцев',
|
|
2309
|
+
min: calculatorParams.minMonths,
|
|
2310
|
+
max: calculatorParams.maxMonths,
|
|
2311
|
+
...field('monthsValue'),
|
|
2312
|
+
value: calculatorParams.monthsValue,
|
|
2313
|
+
}), renderCreditParamsForm$1({ ...calculatorParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), rateChildren: renderRate({
|
|
2314
|
+
rate: calculatorParams.rate,
|
|
2315
|
+
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] }) }));
|
|
2305
2316
|
});
|
|
2306
2317
|
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] }));
|
|
2307
2318
|
|
|
@@ -2397,22 +2408,22 @@
|
|
|
2397
2408
|
useEffect(() => {
|
|
2398
2409
|
!userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
|
|
2399
2410
|
}, [defaultMonth]);
|
|
2400
|
-
return (
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2411
|
+
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2412
|
+
title: 'Сумма, ₽',
|
|
2413
|
+
min: calculatorParams.minSum,
|
|
2414
|
+
max: calculatorParams.maxSum,
|
|
2415
|
+
...field('moneyValue'),
|
|
2416
|
+
value: calculatorParams.moneyValue,
|
|
2417
|
+
}), renderMonthsInput({
|
|
2418
|
+
title: 'Срок, месяцев',
|
|
2419
|
+
min: calculatorParams.minMonths,
|
|
2420
|
+
max: calculatorParams.maxMonths,
|
|
2421
|
+
availableMonths: calculatorParams.availableMonths,
|
|
2422
|
+
...field('monthsValue'),
|
|
2423
|
+
value: calculatorParams.monthsValue,
|
|
2424
|
+
}), renderDepositParamsForm({ ...calculatorParams, ...paramsViewSettings }, field)] }), rateChildren: renderRate({
|
|
2425
|
+
rate,
|
|
2426
|
+
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: income, postfix: "\u20BD", prefix: "+" }), jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finalSum, postfix: "\u20BD" }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] }) }));
|
|
2416
2427
|
});
|
|
2417
2428
|
const renderDepositParamsForm = (params, field) => (jsxs("div", { className: "flex flex-col gap-y-2xl", children: [params.isShowMonthlyInterestPayment
|
|
2418
2429
|
? renderInterestPayment({
|
|
@@ -2517,39 +2528,39 @@
|
|
|
2517
2528
|
orientation: 'vertical',
|
|
2518
2529
|
...field('isAnnuity'),
|
|
2519
2530
|
});
|
|
2520
|
-
return (
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2531
|
+
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2532
|
+
title: 'Остаток долга в других банках, ₽ ',
|
|
2533
|
+
step: 500,
|
|
2534
|
+
min: calculatorParams.minSum,
|
|
2535
|
+
max: calculatorParams.maxSum - calculatorParams.maxSumExtra,
|
|
2536
|
+
...field('moneyValue'),
|
|
2537
|
+
value: calculatorParams.moneyValue,
|
|
2538
|
+
}), renderWantedSumInput({
|
|
2539
|
+
title: 'Ежемесячный платёж в других банках, ₽',
|
|
2540
|
+
step: 500,
|
|
2541
|
+
min: calculatorParams.minSumOld,
|
|
2542
|
+
max: calculatorParams.maxSumOld,
|
|
2543
|
+
...field('oldMonthlyPayment'),
|
|
2544
|
+
value: calculatorParams.oldMonthlyPayment,
|
|
2545
|
+
}), renderMonthsInput({
|
|
2546
|
+
title: 'Новый срок кредита, месяцев',
|
|
2547
|
+
min: calculatorParams.minMonths,
|
|
2548
|
+
max: calculatorParams.maxMonths,
|
|
2549
|
+
...field('monthsValue'),
|
|
2550
|
+
value: calculatorParams.monthsValue,
|
|
2551
|
+
}), renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field), calculatorParams.isExtraMoney
|
|
2552
|
+
? renderWantedSumInput({
|
|
2553
|
+
title: 'Дополнительная сумма, ₽ ',
|
|
2529
2554
|
step: 500,
|
|
2530
|
-
min: calculatorParams.
|
|
2531
|
-
max: calculatorParams.
|
|
2532
|
-
...field('
|
|
2533
|
-
value: calculatorParams.
|
|
2534
|
-
})
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
value: calculatorParams.monthsValue,
|
|
2540
|
-
}), renderCreditParamsForm({ ...calculatorParams, ...paramsViewSettings }, field), calculatorParams.isExtraMoney
|
|
2541
|
-
? renderWantedSumInput({
|
|
2542
|
-
title: 'Дополнительная сумма, ₽ ',
|
|
2543
|
-
step: 500,
|
|
2544
|
-
min: calculatorParams.minSumExtra,
|
|
2545
|
-
max: calculatorParams.maxSumExtra,
|
|
2546
|
-
...field('moneyExtra'),
|
|
2547
|
-
value: calculatorParams.moneyExtra,
|
|
2548
|
-
})
|
|
2549
|
-
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), renderRate({
|
|
2550
|
-
rate: calculatorParams.rate,
|
|
2551
|
-
fractionDigits: 1,
|
|
2552
|
-
}), jsxs("div", { className: "flex flex-col gap-2xl mt-2 sm:w-96 sm:mt-0", children: [jsx(CalculatorValueBlock, { title: 'Ежемесячный платёж', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }));
|
|
2555
|
+
min: calculatorParams.minSumExtra,
|
|
2556
|
+
max: calculatorParams.maxSumExtra,
|
|
2557
|
+
...field('moneyExtra'),
|
|
2558
|
+
value: calculatorParams.moneyExtra,
|
|
2559
|
+
})
|
|
2560
|
+
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), rateChildren: renderRate({
|
|
2561
|
+
rate: calculatorParams.rate,
|
|
2562
|
+
fractionDigits: 1,
|
|
2563
|
+
}), resultChildren: jsxs("div", { children: [jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), calculatorParams.benefit > 0 ? (jsx(CalculatorValueBlock, { title: 'Выгода в месяц', value: calculatorParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] }) }));
|
|
2553
2564
|
});
|
|
2554
2565
|
const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
|
|
2555
2566
|
|
|
@@ -5794,7 +5805,7 @@
|
|
|
5794
5805
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5795
5806
|
}
|
|
5796
5807
|
|
|
5797
|
-
const packageVersion = "0.14.
|
|
5808
|
+
const packageVersion = "0.14.106";
|
|
5798
5809
|
|
|
5799
5810
|
exports.Blocks = Blocks;
|
|
5800
5811
|
exports.ContentPage = ContentPage;
|