@redneckz/wildless-cms-uni-blocks 0.14.771 → 0.14.773
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 +11 -6
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Header/useChatBot.d.ts +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +4 -1
- package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/dist/components/Header/useChatBot.d.ts +1 -1
- package/dist/components/Header/useChatBot.js +7 -3
- package/dist/components/Header/useChatBot.js.map +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +4 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/lib/components/Header/useChatBot.d.ts +1 -1
- package/lib/components/Header/useChatBot.js +7 -3
- package/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +4 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Header/useChatBot.d.ts +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/mobile/dist/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +4 -1
- package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/dist/components/Header/useChatBot.d.ts +1 -1
- package/mobile/dist/components/Header/useChatBot.js +7 -3
- package/mobile/dist/components/Header/useChatBot.js.map +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js +1 -1
- package/mobile/lib/components/CalculatorCredit/CalculatorCredit.js.map +1 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +4 -1
- package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
- package/mobile/lib/components/Header/useChatBot.d.ts +1 -1
- package/mobile/lib/components/Header/useChatBot.js +7 -3
- package/mobile/lib/components/Header/useChatBot.js.map +1 -1
- package/mobile/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -2
- package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +9 -6
- package/mobile/src/components/Header/useChatBot.ts +17 -3
- package/package.json +1 -1
- package/src/components/CalculatorCredit/CalculatorCredit.tsx +3 -2
- package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +9 -6
- package/src/components/Header/useChatBot.ts +17 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -3390,7 +3390,7 @@
|
|
|
3390
3390
|
max: calcParams.maxMonths,
|
|
3391
3391
|
...field('monthsValue'),
|
|
3392
3392
|
value: calcParams.monthsValue,
|
|
3393
|
-
}), renderCreditParamsForm$1({ ...calcParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", value:
|
|
3393
|
+
}), renderCreditParamsForm$1({ ...calcParams, ...paramsViewSettings }, field), jsx("div", { className: "sm:hidden", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: defaultParamsCals?.rate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
3394
3394
|
});
|
|
3395
3395
|
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] }));
|
|
3396
3396
|
|
|
@@ -3768,6 +3768,7 @@
|
|
|
3768
3768
|
moneyExtra: REFINANCING_OLD_DEFAULT_SUM,
|
|
3769
3769
|
});
|
|
3770
3770
|
const calcParams = getRefinancingCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
3771
|
+
const minRate = useMemo(() => getDefaultParamsMin(calcSource?.rateRows)?.rate, [calcSource?.rateRows]);
|
|
3771
3772
|
const paymentTypeElement = renderPaymentType({
|
|
3772
3773
|
title: '',
|
|
3773
3774
|
mobileTitle: 'Тип платежа',
|
|
@@ -3803,7 +3804,7 @@
|
|
|
3803
3804
|
...field('moneyExtra'),
|
|
3804
3805
|
value: calcParams.moneyExtra,
|
|
3805
3806
|
})
|
|
3806
|
-
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", value:
|
|
3807
|
+
: null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: 'Выгода в месяц', value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
|
|
3807
3808
|
});
|
|
3808
3809
|
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 })] }));
|
|
3809
3810
|
|
|
@@ -5091,17 +5092,21 @@
|
|
|
5091
5092
|
const CHAT_STORAGE_NAME = 'webchat-keep-open';
|
|
5092
5093
|
const CHATBOT_URL = {
|
|
5093
5094
|
personal: '//chat.mes.rshb.ru/assets/js/webchat_rshb',
|
|
5094
|
-
business: '',
|
|
5095
|
+
business: '/webchat',
|
|
5095
5096
|
};
|
|
5096
5097
|
const useChatBot = (chat) => {
|
|
5097
5098
|
useEffect(() => globalThis.localStorage?.setItem(CHAT_STORAGE_NAME, String(Date.now())), []);
|
|
5098
5099
|
const chatUrl = CHATBOT_URL[chat ?? ''];
|
|
5099
|
-
return (ev) => {
|
|
5100
|
+
return async (ev) => {
|
|
5100
5101
|
if (!chatUrl) {
|
|
5101
5102
|
return;
|
|
5102
5103
|
}
|
|
5103
5104
|
if (chat !== 'personal') {
|
|
5104
|
-
initializeExternalNS(CHAT_NAMESPACE
|
|
5105
|
+
initializeExternalNS(`${CHAT_NAMESPACE}_business_css`, `${chatUrl}/bundle.css`);
|
|
5106
|
+
const businessChat = (await initializeExternalNS(CHAT_NAMESPACE, `${chatUrl}/bundle.js`));
|
|
5107
|
+
if (businessChat?.render) {
|
|
5108
|
+
businessChat.render(CHAT_FRAME_ID, true);
|
|
5109
|
+
}
|
|
5105
5110
|
}
|
|
5106
5111
|
else {
|
|
5107
5112
|
const target = ev.target;
|
|
@@ -6998,7 +7003,7 @@
|
|
|
6998
7003
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6999
7004
|
});
|
|
7000
7005
|
|
|
7001
|
-
const packageVersion = "0.14.
|
|
7006
|
+
const packageVersion = "0.14.772";
|
|
7002
7007
|
|
|
7003
7008
|
exports.Blocks = Blocks;
|
|
7004
7009
|
exports.ContentPage = ContentPage;
|