@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.
Files changed (32) hide show
  1. package/bundle/bundle.umd.js +9 -3
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  4. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
  5. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  6. package/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  7. package/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
  8. package/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  9. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
  10. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  11. package/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  12. package/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
  13. package/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  14. package/mobile/bundle/bundle.umd.js +9 -3
  15. package/mobile/bundle/bundle.umd.min.js +1 -1
  16. package/mobile/bundle/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  17. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
  18. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  19. package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  20. package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
  21. package/mobile/dist/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  22. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -0
  23. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  24. package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.d.ts +2 -0
  25. package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js +7 -2
  26. package/mobile/lib/retail/components/NoConsentDialog/NoConsentDialog.js.map +1 -1
  27. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
  28. package/mobile/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
  29. package/package.json +1 -1
  30. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +1 -0
  31. package/src/retail/components/NoConsentDialog/NoConsentDialog.fixture.tsx +1 -1
  32. package/src/retail/components/NoConsentDialog/NoConsentDialog.tsx +42 -32
@@ -3103,7 +3103,12 @@
3103
3103
  await handler(context);
3104
3104
  };
3105
3105
 
3106
- const NoConsentDialog = JSX(({ attempts, onClose = noop }) => {
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: "\u0414\u043B\u044F \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u044F \u043A\u0440\u0435\u0434\u0438\u0442\u0430 \u0412\u0430\u043C \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u043E \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0432 \u043E\u0444\u0438\u0441 \u0411\u0430\u043D\u043A\u0430" }), 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" }))] })] }) }));
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.968";
13060
+ const packageVersion = "0.14.969";
13055
13061
 
13056
13062
  exports.Blocks = Blocks;
13057
13063
  exports.ContentPage = ContentPage;