@redneckz/wildless-cms-uni-blocks 0.14.969 → 0.14.970
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 +9 -3
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
- package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
- package/mobile/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
- package/src/retail/components/NoConsentDialog/NoConsentDialog.fixture.tsx +1 -1
- package/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
package/bundle/bundle.umd.js
CHANGED
|
@@ -3103,7 +3103,12 @@
|
|
|
3103
3103
|
await handler(context);
|
|
3104
3104
|
};
|
|
3105
3105
|
|
|
3106
|
-
const
|
|
3106
|
+
const mapProductTypeToName = {
|
|
3107
|
+
creditCard: 'кредитной карты',
|
|
3108
|
+
debitCard: 'дебетовой карты',
|
|
3109
|
+
credit: 'кредита',
|
|
3110
|
+
};
|
|
3111
|
+
const NoConsentDialog = JSX(({ attempts, productType, onClose = noop }) => {
|
|
3107
3112
|
const navigator = locationNavigator();
|
|
3108
3113
|
const isMaxAttempts = attempts > 1;
|
|
3109
3114
|
const returnToMainPage = useCallback(() => {
|
|
@@ -3117,7 +3122,7 @@
|
|
|
3117
3122
|
onClose();
|
|
3118
3123
|
}
|
|
3119
3124
|
}, [isMaxAttempts]);
|
|
3120
|
-
return (jsx(Dialog, { onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Paragraph, { align: "text-center", children: "\u0423\u0432\u0430\u0436\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0438\u0435\u043D\u0442!" }), jsx(Paragraph, { align: "text-center", children:
|
|
3125
|
+
return (jsx(Dialog, { onClose: handleClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center", children: [jsx(Paragraph, { align: "text-center", children: "\u0423\u0432\u0430\u0436\u0430\u0435\u043C\u044B\u0439 \u043A\u043B\u0438\u0435\u043D\u0442!" }), jsx(Paragraph, { align: "text-center", children: `Для получения ${mapProductTypeToName[productType]} Вам необходимо обратиться в офис Банка` }), jsxs("div", { className: "flex flex-col sm:flex-row gap-xl items-center", children: [jsx(Button, { type: "button", version: "secondary", onClick: returnToMainPage, children: "\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C" }), isMaxAttempts ? null : (jsx(Button, { type: "button", onClick: onClose, children: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C" }))] })] }) }));
|
|
3121
3126
|
});
|
|
3122
3127
|
|
|
3123
3128
|
function copy(source, target) {
|
|
@@ -7363,6 +7368,7 @@
|
|
|
7363
7368
|
setAttemptsWithoutConsents((prev) => prev + 1);
|
|
7364
7369
|
attemptsWithoutConsents > 0 &&
|
|
7365
7370
|
noConsentDialog.open({
|
|
7371
|
+
productType,
|
|
7366
7372
|
attempts: attemptsWithoutConsents,
|
|
7367
7373
|
});
|
|
7368
7374
|
}
|
|
@@ -13051,7 +13057,7 @@
|
|
|
13051
13057
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
13052
13058
|
});
|
|
13053
13059
|
|
|
13054
|
-
const packageVersion = "0.14.
|
|
13060
|
+
const packageVersion = "0.14.969";
|
|
13055
13061
|
|
|
13056
13062
|
exports.Blocks = Blocks;
|
|
13057
13063
|
exports.ContentPage = ContentPage;
|