@redneckz/wildless-cms-uni-blocks 0.9.13 → 0.9.15

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 (263) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +74 -55
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/Calculator/constants.d.ts +3 -2
  5. package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  6. package/bundle/components/Carousel/Carousel.d.ts +1 -0
  7. package/bundle/components/Carousel/CarouselContent.d.ts +3 -3
  8. package/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  9. package/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  10. package/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  11. package/bundle/ui-kit/RichText/RichTextProps.d.ts +5 -0
  12. package/dist/components/ApplicationForm/Footnote.js +1 -1
  13. package/dist/components/ApplicationForm/Footnote.js.map +1 -1
  14. package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  15. package/dist/components/Blocks.js +2 -0
  16. package/dist/components/Blocks.js.map +1 -1
  17. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  18. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  19. package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  20. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/DepositCalculatorForm.js +6 -3
  22. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  23. package/dist/components/Calculator/constants.d.ts +3 -2
  24. package/dist/components/Calculator/constants.js +7 -6
  25. package/dist/components/Calculator/constants.js.map +1 -1
  26. package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  27. package/dist/components/Calculator/useDepositCalculatorParams.js +6 -1
  28. package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  29. package/dist/components/Carousel/Carousel.d.ts +1 -0
  30. package/dist/components/Carousel/Carousel.js +8 -4
  31. package/dist/components/Carousel/Carousel.js.map +1 -1
  32. package/dist/components/Carousel/CarouselContent.d.ts +3 -3
  33. package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  34. package/dist/components/CarouselLinks/CarouselLinks.js +2 -3
  35. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  36. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  37. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +11 -0
  38. package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -0
  39. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  40. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +2 -0
  41. package/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +1 -0
  42. package/dist/components/LinkDocs/LinkDocsListItemBase.js +1 -1
  43. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  44. package/dist/components/Tabs/ScrollableTabs.js +1 -1
  45. package/dist/components/TariffsTable/TableTileHeader.js +1 -1
  46. package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  47. package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  48. package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  49. package/dist/ui-kit/Button/renderArrows.js +1 -1
  50. package/dist/ui-kit/LocationDialog/LocationDialog.js +4 -2
  51. package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  52. package/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  53. package/dist/ui-kit/RichText/RichTextProps.d.ts +5 -0
  54. package/lib/common.css +1 -1
  55. package/lib/components/ApplicationForm/Footnote.js +1 -1
  56. package/lib/components/ApplicationForm/Footnote.js.map +1 -1
  57. package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  58. package/lib/components/Blocks.js +2 -0
  59. package/lib/components/Blocks.js.map +1 -1
  60. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  61. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  62. package/lib/components/Calculator/CreditCalculatorForm.js +2 -2
  63. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  64. package/lib/components/Calculator/DepositCalculatorForm.js +8 -5
  65. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  66. package/lib/components/Calculator/constants.d.ts +3 -2
  67. package/lib/components/Calculator/constants.js +6 -5
  68. package/lib/components/Calculator/constants.js.map +1 -1
  69. package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  70. package/lib/components/Calculator/useDepositCalculatorParams.js +6 -1
  71. package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  72. package/lib/components/Carousel/Carousel.d.ts +1 -0
  73. package/lib/components/Carousel/Carousel.fixture.d.ts +1 -0
  74. package/lib/components/Carousel/Carousel.js +8 -4
  75. package/lib/components/Carousel/Carousel.js.map +1 -1
  76. package/lib/components/Carousel/CarouselContent.d.ts +3 -3
  77. package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  78. package/lib/components/CarouselLinks/CarouselLinks.js +2 -3
  79. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  80. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  81. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.fixture.d.ts +7 -0
  82. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +9 -0
  83. package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -0
  84. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  85. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +2 -0
  86. package/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +1 -0
  87. package/lib/components/LinkDocs/LinkDocsListItemBase.js +1 -1
  88. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  89. package/lib/components/Tabs/ScrollableTabs.js +1 -1
  90. package/lib/components/TariffsTable/TableTileHeader.js +1 -1
  91. package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  92. package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  93. package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  94. package/lib/ui-kit/Button/renderArrows.js +1 -1
  95. package/lib/ui-kit/LocationDialog/LocationDialog.js +4 -2
  96. package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  97. package/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  98. package/lib/ui-kit/RichText/RichTextProps.d.ts +5 -0
  99. package/mobile/bundle/bundle.umd.js +3 -3
  100. package/mobile/bundle/bundle.umd.min.js +1 -1
  101. package/mobile/bundle/components/Calculator/constants.d.ts +3 -2
  102. package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  103. package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -0
  104. package/mobile/bundle/components/Carousel/CarouselContent.d.ts +3 -3
  105. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  106. package/mobile/bundle/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  107. package/mobile/bundle/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  108. package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +5 -0
  109. package/mobile/dist/components/ApplicationForm/Footnote.js +1 -1
  110. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -1
  111. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  112. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  113. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  114. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
  115. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  116. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +6 -3
  117. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  118. package/mobile/dist/components/Calculator/constants.d.ts +3 -2
  119. package/mobile/dist/components/Calculator/constants.js +7 -6
  120. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  121. package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  122. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +6 -1
  123. package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  124. package/mobile/dist/components/Carousel/Carousel.d.ts +1 -0
  125. package/mobile/dist/components/Carousel/Carousel.js +8 -4
  126. package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
  127. package/mobile/dist/components/Carousel/CarouselContent.d.ts +3 -3
  128. package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
  129. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +2 -3
  130. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
  131. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  132. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +11 -0
  133. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -0
  134. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  135. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js +2 -0
  136. package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +1 -0
  137. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +1 -1
  138. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  139. package/mobile/dist/components/Tabs/ScrollableTabs.js +1 -1
  140. package/mobile/dist/components/TariffsTable/TableTileHeader.js +1 -1
  141. package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
  142. package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
  143. package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
  144. package/mobile/dist/ui-kit/Button/renderArrows.js +1 -1
  145. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +4 -2
  146. package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  147. package/mobile/dist/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  148. package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +5 -0
  149. package/mobile/lib/components/ApplicationForm/Footnote.js +1 -1
  150. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -1
  151. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
  152. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  153. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  154. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +2 -2
  155. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  156. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +8 -5
  157. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  158. package/mobile/lib/components/Calculator/constants.d.ts +3 -2
  159. package/mobile/lib/components/Calculator/constants.js +6 -5
  160. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  161. package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -0
  162. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +6 -1
  163. package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
  164. package/mobile/lib/components/Carousel/Carousel.d.ts +1 -0
  165. package/mobile/lib/components/Carousel/Carousel.js +8 -4
  166. package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
  167. package/mobile/lib/components/Carousel/CarouselContent.d.ts +3 -3
  168. package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
  169. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +2 -3
  170. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
  171. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.d.ts +5 -0
  172. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +9 -0
  173. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -0
  174. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.d.ts +6 -0
  175. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js +2 -0
  176. package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCardContent.js.map +1 -0
  177. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +1 -1
  178. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  179. package/mobile/lib/components/Tabs/ScrollableTabs.js +1 -1
  180. package/mobile/lib/components/TariffsTable/TableTileHeader.js +1 -1
  181. package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
  182. package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
  183. package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
  184. package/mobile/lib/ui-kit/Button/renderArrows.js +1 -1
  185. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +4 -2
  186. package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
  187. package/mobile/lib/ui-kit/LocationDialog/LocationDialogProps.d.ts +1 -0
  188. package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +5 -0
  189. package/mobile/src/common.css +20 -0
  190. package/mobile/src/components/ApplicationForm/Footnote.tsx +1 -1
  191. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +1 -1
  192. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +16 -16
  193. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -2
  194. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
  195. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +8 -5
  196. package/mobile/src/components/Calculator/constants.ts +6 -5
  197. package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +9 -1
  198. package/mobile/src/components/Carousel/Carousel.tsx +21 -4
  199. package/mobile/src/components/Carousel/CarouselContent.ts +3 -3
  200. package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +2 -2
  201. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +9 -5
  202. package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +6 -6
  203. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +6 -0
  204. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +21 -0
  205. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +7 -0
  206. package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +7 -0
  207. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
  208. package/mobile/src/components/Tabs/ScrollableTabs.tsx +1 -1
  209. package/mobile/src/components/TariffsTable/TableTileHeader.tsx +1 -3
  210. package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  211. package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +0 -9
  212. package/mobile/src/ui-kit/Button/renderArrows.tsx +2 -2
  213. package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +11 -3
  214. package/mobile/src/ui-kit/LocationDialog/LocationDialogProps.ts +1 -0
  215. package/mobile/src/ui-kit/RichText/RichTextProps.ts +5 -0
  216. package/package.json +1 -1
  217. package/src/common.css +20 -0
  218. package/src/components/ApplicationForm/Footnote.tsx +1 -1
  219. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +1 -1
  220. package/src/components/Blocks.ts +2 -0
  221. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +16 -16
  222. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -2
  223. package/src/components/Calculator/CreditCalculatorForm.tsx +2 -2
  224. package/src/components/Calculator/DepositCalculatorForm.tsx +8 -5
  225. package/src/components/Calculator/constants.ts +6 -5
  226. package/src/components/Calculator/useDepositCalculatorParams.ts +9 -1
  227. package/src/components/Carousel/Carousel.fixture.tsx +17 -0
  228. package/src/components/Carousel/Carousel.tsx +21 -4
  229. package/src/components/Carousel/CarouselContent.ts +3 -3
  230. package/src/components/Carousel/CarouselScrollButtons.tsx +2 -2
  231. package/src/components/CarouselLinks/CarouselLinks.tsx +9 -5
  232. package/src/components/CarouselProgramsCard/CarouselProgramsCard.example.json +6 -6
  233. package/src/components/CarouselRichTextCard/CarouselRichTextCard.example.json +6 -0
  234. package/src/components/CarouselRichTextCard/CarouselRichTextCard.fixture.tsx +24 -0
  235. package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +21 -0
  236. package/src/components/CarouselRichTextCard/CarouselRichTextCard.ui.json +7 -0
  237. package/src/components/CarouselRichTextCard/CarouselRichTextCardContent.ts +7 -0
  238. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +2 -2
  239. package/src/components/Tabs/ScrollableTabs.tsx +1 -1
  240. package/src/components/TariffsTable/TableTileHeader.tsx +1 -3
  241. package/src/components/TariffsTable/TariffsTableRow.tsx +3 -3
  242. package/src/components/VerticalLayout/VerticalLayout.example.json +0 -9
  243. package/src/icons/IconName.ts +359 -5
  244. package/src/ui-kit/Button/renderArrows.tsx +2 -2
  245. package/src/ui-kit/LocationDialog/LocationDialog.tsx +11 -3
  246. package/src/ui-kit/LocationDialog/LocationDialogProps.ts +1 -0
  247. package/src/ui-kit/RichText/RichTextProps.ts +5 -0
  248. package/bundle/components/Calculator/getDefaultSum.d.ts +0 -1
  249. package/dist/components/Calculator/getDefaultSum.d.ts +0 -1
  250. package/dist/components/Calculator/getDefaultSum.js +0 -6
  251. package/dist/components/Calculator/getDefaultSum.js.map +0 -1
  252. package/lib/components/Calculator/getDefaultSum.d.ts +0 -1
  253. package/lib/components/Calculator/getDefaultSum.js +0 -3
  254. package/lib/components/Calculator/getDefaultSum.js.map +0 -1
  255. package/mobile/bundle/components/Calculator/getDefaultSum.d.ts +0 -1
  256. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +0 -1
  257. package/mobile/dist/components/Calculator/getDefaultSum.js +0 -6
  258. package/mobile/dist/components/Calculator/getDefaultSum.js.map +0 -1
  259. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +0 -1
  260. package/mobile/lib/components/Calculator/getDefaultSum.js +0 -3
  261. package/mobile/lib/components/Calculator/getDefaultSum.js.map +0 -1
  262. package/mobile/src/components/Calculator/getDefaultSum.ts +0 -4
  263. package/src/components/Calculator/getDefaultSum.ts +0 -4
@@ -639,7 +639,7 @@
639
639
 
640
640
  const Text = JSX(({ children, ...style }) => (jsx("span", { className: ['font-sans', ...Object.values(style)].join(' '), children: children })));
641
641
 
642
- const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443 \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
642
+ const Footnote = JSX(({ link }) => (jsxs(Paragraph, { size: "text-s-light", color: "text-secondary-text", children: [jsx(Text, { children: "\u041D\u0430\u0436\u0438\u043C\u0430\u044F \u043A\u043D\u043E\u043F\u043A\u0443, \u0432\u044B \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 \u0441 " }), link ? (jsx(Button, { href: link.href, ariaLabel: "\u0443\u0441\u043B\u043E\u0432\u0438\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043D\u043D\u044B\u0445", target: link.target, className: "text-primary-main", children: jsx(Text, { children: link.text }) })) : null] })));
643
643
 
644
644
  const normalizeSelectedRegion$1 = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
645
645
 
@@ -1014,7 +1014,7 @@
1014
1014
  : 'rounded checked:bg-primary-main disabled:bg-main-disabled border', checked ? 'border-black' : 'border-gray', disabled ? '' : 'group-hover/box:border-primary-hover'), type: "checkbox", onChange: (e) => onChange && onChange(e.target.checked), checked: checked, disabled: disabled }), isRadio ? (jsx("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? jsx("span", { className: "font-sans ml-3 text-l-light", children: text }) : null] }) }));
1015
1015
  });
1016
1016
 
1017
- const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0412\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
1017
+ const renderQuestionsInterested = ({ currencyControl, documentaryOperations, conversionOperations, text, handleChange, }) => (jsxs("div", { className: "mb-6", children: [jsxs("div", { className: "flex items-center mb-4 gap-6", children: [jsx(Checkbox, { text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", checked: currencyControl, onChange: (value) => handleChange({ currencyControl: value }) }), jsx(Checkbox, { text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: documentaryOperations, onChange: (value) => handleChange({ documentaryOperations: value }) }), jsx(Checkbox, { text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", checked: conversionOperations, onChange: (value) => handleChange({ conversionOperations: value }) })] }), jsx("textarea", { placeholder: "\u0423\u043A\u0430\u0436\u0438\u0442\u0435 \u0438\u043D\u0442\u0435\u0440\u0435\u0441\u0443\u044E\u0449\u0438\u0439 \u0432\u0430\u0441 \u0432\u043E\u043F\u0440\u043E\u0441, \u043C\u0435\u0441\u0442\u043E \u0432\u0435\u0434\u0435\u043D\u0438\u044F \u0431\u0438\u0437\u043D\u0435\u0441\u0430 \u0438 \u0443\u0434\u043E\u0431\u043D\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043B\u044F \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u043D\u043E\u0433\u043E \u0437\u0432\u043E\u043D\u043A\u0430", className: "block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text", value: text, onChange: (e) => handleChange({ text: e.target.value }) })] }));
1018
1018
 
1019
1019
  const ApplicationFormWed = JSX((props) => {
1020
1020
  const { button, link, handleSubmit } = props;
@@ -1178,7 +1178,7 @@
1178
1178
 
1179
1179
  const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-12 flex flex-col text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
1180
1180
  const renderBonusBenefit = ({ icon, title, description }, i) => {
1181
- return (jsxs("div", { className: style('flex flex-col items-center text-h6', !description && !title ? 'justify-center' : ''), children: [title ? jsx("span", { children: title }) : null, icon ? jsx(ImgInner, { image: icon, height: "180", width: "auto", className: "w-auto" }) : null, description ? jsx("span", { children: description }) : null] }, String(i)));
1181
+ return (jsxs("div", { className: style('flex flex-col items-center text-h6', !description && !title ? 'justify-center' : ''), children: [title ? jsx("span", { children: title }) : null, icon ? jsx(ImgInner, { image: icon, height: "180", className: "w-auto" }) : null, description ? jsx("span", { children: description }) : null] }, String(i)));
1182
1182
  };
1183
1183
  const getElementsColsValue = (colValue) => {
1184
1184
  switch (colValue) {
@@ -1237,14 +1237,15 @@
1237
1237
 
1238
1238
  function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
1239
1239
  const isVisible = canDec || canInc;
1240
- return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-50 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-50 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
1240
+ return isVisible ? (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: `absolute z-40 ${btnClass[0]} ${className}`, onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: `absolute z-40 rotate-180 ${btnClass[1]} ${className}`, onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] })) : null;
1241
1241
  }
1242
1242
 
1243
1243
  const CalculatorValueBlock = JSX(({ title, value, postfix = '', prefix, className = '' }) => (jsxs("div", { className: style('mb-7', className), children: [title ? (jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title })) : null, value ? (jsx("div", { children: jsxs(Text, { size: "text-h3", children: [prefix, " ", addSpacesBetweenNumbers(Math.round(value)), " ", postfix] }) })) : (jsx("div", { children: jsx(Text, { size: "text-h3", children: "-" }) }))] })));
1244
1244
 
1245
- const DEFAULT_MIN_SUM = 30000;
1245
+ const DEFAULT_MIN_SUM = 10000;
1246
1246
  const DEFAULT_MAX_SUM = 5000000;
1247
- const DEFAULT_SUM = (DEFAULT_MAX_SUM - DEFAULT_MIN_SUM) / 2;
1247
+ const CREDIT_DEFAULT_SUM = 200000;
1248
+ const DEPOSIT_DEFAULT_SUM = 20000;
1248
1249
  const DEFAULT_MIN_MONTHS = 13;
1249
1250
  const DEFAULT_MAX_MONTHS = 60;
1250
1251
  const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
@@ -1262,10 +1263,10 @@
1262
1263
  maxSum: DEFAULT_MAX_SUM,
1263
1264
  minMonths: DEFAULT_MIN_MONTHS,
1264
1265
  maxMonths: DEFAULT_MAX_MONTHS,
1265
- rate: 0,
1266
- isSalaryClient: true,
1266
+ rate: 12.5,
1267
+ isSalaryClient: false,
1267
1268
  isPensionClient: false,
1268
- isStateEmployee: true,
1269
+ isStateEmployee: false,
1269
1270
  isInsurance: true,
1270
1271
  };
1271
1272
  const DEFAULT_TRAVEL_MIN_SUM = 6000;
@@ -1662,7 +1663,7 @@
1662
1663
  const handleIsPensionClient = useCallback((_) => toggleIsPensionClient(_), []);
1663
1664
  const [isInsurance, toggleIsInsurance] = useState(true);
1664
1665
  const handleIsInsurance = useCallback((_) => toggleIsInsurance(_), []);
1665
- const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
1666
+ const [moneyValue, setMoneyValue] = useState(CREDIT_DEFAULT_SUM);
1666
1667
  const handleMoneyValue = useCallback((_) => setMoneyValue(_), []);
1667
1668
  const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
1668
1669
  const handleMonthsValue = useCallback((_) => setMonthsValue(_), []);
@@ -1713,6 +1714,9 @@
1713
1714
  const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
1714
1715
  const { moneyValue, monthsValue } = userInputParams;
1715
1716
  const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
1717
+ const defaultMonth = data?.rows[0]
1718
+ ? getMiddleMonth(data.rows[0].minMonths, data.rows[0].maxMonths)
1719
+ : 1;
1716
1720
  const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
1717
1721
  const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
1718
1722
  const depositCalculatorSourceBookParams = data?.rows?.find((row) => checkRowByParam({
@@ -1728,7 +1732,7 @@
1728
1732
  isExclude: isExcludeRemoteRegistration,
1729
1733
  }) &&
1730
1734
  checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
1731
- checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
1735
+ checkRangeByKeys(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
1732
1736
  const { rate } = depositCalculatorSourceBookParams;
1733
1737
  const income = getDepositIncome(rate, userInputParams);
1734
1738
  const finalSum = moneyValue + income;
@@ -1739,6 +1743,7 @@
1739
1743
  ...getRangeByKeys(['minMonths', 'maxMonths'], sourceBookRows),
1740
1744
  availableMonths: mergeIntervals(sourceBookRows.map((row) => [row['minMonths'], row['maxMonths']])).flatMap(([start, end]) => arrayByRange(start, end)),
1741
1745
  ...userInputParams,
1746
+ defaultMonth,
1742
1747
  income,
1743
1748
  finalSum,
1744
1749
  };
@@ -1756,11 +1761,12 @@
1756
1761
  }
1757
1762
  };
1758
1763
  const checkRowByParam = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
1764
+ const getMiddleMonth = (minMonths, maxMonths) => Math.round((maxMonths - minMonths) / 2);
1759
1765
 
1760
1766
  const DepositCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
1761
- const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
1767
+ const [moneyValue, setMoneyValue] = useState(DEPOSIT_DEFAULT_SUM);
1762
1768
  const handleMoneyValue = useCallback((_) => setMoneyValue(_), []);
1763
- const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
1769
+ const [monthsValue, setMonthsValue] = useState(0);
1764
1770
  const [isMonthlyInterestPayment, toggleIsMonthlyInterestPayment] = useState(false);
1765
1771
  const handleIsMonthlyInterestPayment = useCallback((_) => toggleIsMonthlyInterestPayment(_), []);
1766
1772
  const [isRemoteRegistration, toggleIsRemoteRegistration] = useState(false);
@@ -1773,7 +1779,10 @@
1773
1779
  };
1774
1780
  const handleMonthsValue = useCallback((_) => setMonthsValue(_), []);
1775
1781
  const calculatorParams = useDepositCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
1776
- const { income, finalSum, rate } = calculatorParams;
1782
+ const { defaultMonth, income, finalSum, rate } = calculatorParams;
1783
+ useEffect(() => {
1784
+ setMonthsValue(defaultMonth);
1785
+ }, [defaultMonth]);
1777
1786
  return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма вклада, ₽', {
1778
1787
  ...calculatorParams,
1779
1788
  }, handleMoneyValue), renderMonthsInput('Срок вклада, месяцев', {
@@ -2082,8 +2091,8 @@
2082
2091
  ];
2083
2092
  };
2084
2093
 
2085
- const scrollButtonStyle$1 = 'absolute top-[calc(50%-24px)] z-50';
2086
- const blurBaseStyle = 'absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none';
2094
+ const scrollButtonStyle$1 = 'absolute top-[calc(50%-24px)] z-40';
2095
+ const blurBaseStyle = 'absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none';
2087
2096
  const CarouselScrollButtons = JSX(({ scroll, arrowsPadded, isBlur, onScrollLeft, onScrollRight, hasEdgeBlocks, activeIndex, itemCount, }) => {
2088
2097
  const { canScrollLeft, canScrollRight, scrollLeft, scrollRight } = scroll;
2089
2098
  const canMoveLeft = hasEdgeBlocks ? activeIndex > 0 : canScrollLeft;
@@ -2110,10 +2119,32 @@
2110
2119
  });
2111
2120
  const renderBlur = (isBlur, scroll) => (scroll.canScrollLeft || scroll.canScrollRight) && isBlur ? (jsxs("div", { children: [jsx("div", { className: style(blurBaseStyle, 'left-0 bg-opacity-from-white') }), jsx("div", { className: style(blurBaseStyle, 'right-0 bg-opacity-to-white') })] })) : null;
2112
2121
 
2122
+ const containerStyles = {
2123
+ 'horizontal-list': 'mx-auto mt-5 w-fit',
2124
+ 'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
2125
+ };
2126
+ const activeDotStyles = {
2127
+ 'horizontal-list': 'w-6',
2128
+ 'vertical-list': 'h-6',
2129
+ };
2130
+ const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
2131
+ const inactiveDotStyle = 'w-2 h-2 opacity-30';
2132
+ const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
2133
+ const handleClick = (idx) => {
2134
+ if (idx !== activeIndex && containerRef?.current) {
2135
+ containerRef.current.children[idx]?.scrollIntoView({
2136
+ behavior: 'smooth',
2137
+ block: 'nearest',
2138
+ });
2139
+ }
2140
+ };
2141
+ return dotCount ? (jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
2142
+ });
2143
+
2113
2144
  const ITEMS_GAP = 4;
2114
- const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, ...rest }) => {
2115
- const { blocks: childBlocks } = rest.block || {};
2116
- const count = itemCount || childBlocks?.length || 0;
2145
+ const Carousel = JSX(({ className = '', itemCount, visibleItemCount, isBlur = true, isCyclic = false, arrowsPadded = true, isPadding = true, showDots = false, ...rest }) => {
2146
+ const { blocks: childBlocks = [] } = rest.block || {};
2147
+ const count = itemCount || childBlocks?.length;
2117
2148
  const [activeIndex, setActiveIndex] = useState(Math.floor((visibleItemCount || 0) / 2));
2118
2149
  const increaseActiveIndex = useCallback(() => setActiveIndex((_) => _ + 1), []);
2119
2150
  const decreaseActiveIndex = useCallback(() => setActiveIndex((_) => _ - 1), []);
@@ -2121,6 +2152,7 @@
2121
2152
  itemCount: count,
2122
2153
  isCyclic,
2123
2154
  });
2155
+ const [dotsActiveIndex] = scroll.visibleIndicesRange;
2124
2156
  const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
2125
2157
  return (jsx(BlockWrapper, { className: style(getPaddingStyle(isPadding), 'group-data-secondary:bg-primary-main group-data-secondary:text-white', className), ...rest, children: jsxs("div", { className: "relative max-w-full", children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
2126
2158
  ...rest,
@@ -2130,7 +2162,7 @@
2130
2162
  activeIndex: activeIndex,
2131
2163
  })
2132
2164
  : renderBlock,
2133
- }) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }) }));
2165
+ }) }), jsx(CarouselScrollButtons, { scroll: scroll, isBlur: isBlur, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count }), showDots ? renderDots(containerRef, dotsActiveIndex, itemCount) : null] }) }));
2134
2166
  });
2135
2167
  Carousel.childrenTypes = [
2136
2168
  'CarouselCard',
@@ -2141,10 +2173,12 @@
2141
2173
  'CarouselProgramsCard',
2142
2174
  'CarouselRecommendationCard',
2143
2175
  'CarouselTariffsCard',
2176
+ 'CarouselRichTextCard',
2144
2177
  'CarouselInvestmentCard',
2145
2178
  'CarouselEventCard',
2146
2179
  ];
2147
2180
  const getPaddingStyle = (isPadding) => (isPadding ? 'p-12' : '');
2181
+ const renderDots = (containerRef, dotsActiveIndex, itemCount) => (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: itemCount, listType: 'horizontal-list' }));
2148
2182
 
2149
2183
  const CarouselBankHistoryCard = JSX(({ title, description, blocksLength = 0, activeIndex, options }) => {
2150
2184
  const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
@@ -2251,11 +2285,11 @@
2251
2285
 
2252
2286
  const MAX_LINKS_COUNT = 10;
2253
2287
  const CarouselLinks = JSX(({ className = '', additionalDescription, description, links, title, ...rest }) => {
2254
- return (jsxs(BlockWrapper, { className: `flex w-full p-10 overflow-hidden justify-between ${className}`, ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx("div", { className: "pt-6", children: jsx(Paragraph, { children: additionalDescription }) })) : null] }), links?.length ? renderLinks(links) : null] }));
2288
+ return (jsxs(BlockWrapper, { className: `flex w-full p-10 overflow-hidden justify-between ${className}`, ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-6", isPadding: false, description: description, align: "text-left" })) : null] }), links?.length ? renderLinks(links) : null] }));
2255
2289
  });
2256
2290
  const renderLinks = (links) => {
2257
2291
  const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
2258
- return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", isBlur: false, isCyclic: true, itemCount: itemCount, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start", children: links
2292
+ return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", isBlur: false, isCyclic: true, itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start", children: links
2259
2293
  .slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
2260
2294
  .map((link, index) => (jsx(LinkButton, { className: "m-1", ...link }, String(index)))) }, String(groupIndex)))) }));
2261
2295
  };
@@ -2352,6 +2386,15 @@
2352
2386
  });
2353
2387
  const renderIconBlock$1 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: getIconWithVersion(icon), asSVG: true }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
2354
2388
 
2389
+ const RichText = JSX((props) => {
2390
+ const { __html = '' } = props;
2391
+ return jsx("div", { className: "md-container", dangerouslySetInnerHTML: { __html } });
2392
+ });
2393
+
2394
+ const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => {
2395
+ return (jsx(BlockWrapper, { className: style('p-9 border border-gray min-w-96', richVersion, className), ...rest, children: jsx(RichText, { __html: __html }) }));
2396
+ });
2397
+
2355
2398
  const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
2356
2399
  const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
2357
2400
  const onToggle = useCallback(() => {
@@ -3205,7 +3248,7 @@
3205
3248
  dialogProps.onClose && dialogProps.onClose();
3206
3249
  onChangeLocation && onChangeLocation(region);
3207
3250
  }, [dialogProps.onClose, onChangeLocation]);
3208
- return (jsxs(Dialog, { ...dialogProps, head: jsxs("div", { children: [jsx(CurrentLocation, { currentLocation: currentLocation }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query, className: "mb-7" })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3251
+ return (jsxs(Dialog, { ...dialogProps, head: jsxs("div", { children: [jsx(CurrentLocation, { currentLocation: currentLocation, onChangeLocation: handleChangeLocation }), jsx(SearchBar, { onSearch: setQuery, searchTerm: query, className: "mb-7" })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
3209
3252
  .filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
3210
3253
  .map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), jsx(ForeignOffices, { foreignOffices: foreignOffices })] }));
3211
3254
  });
@@ -3214,7 +3257,9 @@
3214
3257
  ...region,
3215
3258
  name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
3216
3259
  }));
3217
- const CurrentLocation = JSX(({ currentLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: close, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
3260
+ const CurrentLocation = JSX(({ currentLocation, onChangeLocation }) => currentLocation ? (jsxs("div", { className: "mb-4", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { className: "cursor-pointer", onClick: () => {
3261
+ onChangeLocation && onChangeLocation(currentLocation);
3262
+ }, children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null);
3218
3263
  const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-7 w-[224px]", children: [jsx("div", { className: "mb-2.5", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
3219
3264
  const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-1", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
3220
3265
  onChangeLocation && onChangeLocation(region);
@@ -3515,7 +3560,7 @@
3515
3560
 
3516
3561
  const LinkDocsListItemBase = JSX(({ className, iconClassName, textClassName, suffixClassName, doc, icon }) => {
3517
3562
  const { text, fileSize, ...linkProps } = doc;
3518
- return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(ImgInner, { className: iconClassName, image: getIconWithVersion(icon), width: "24px", height: "24px", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
3563
+ return (jsxs("a", { className: className, role: "link", ...linkProps, children: [icon ? (jsx(ImgInner, { className: iconClassName, image: getIconWithVersion(icon), width: "24", height: "24", asSVG: true })) : null, text ? (jsxs("span", { className: textClassName, children: [text, jsx("span", { className: suffixClassName, children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
3519
3564
  });
3520
3565
  const formatSuffix = (ext, fileSize) => {
3521
3566
  const prefix = ext || fileSize ? ',' : '';
@@ -3964,11 +4009,6 @@
3964
4009
  return `w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
3965
4010
  }
3966
4011
 
3967
- const RichText = JSX((props) => {
3968
- const { __html = '' } = props;
3969
- return jsx("div", { className: "md-container", dangerouslySetInnerHTML: { __html } });
3970
- });
3971
-
3972
4012
  // TODO: Create universal function for this case
3973
4013
  const renderBenefit$2 =
3974
4014
  // Linter doesn't understand that switch processes all cases
@@ -4347,28 +4387,6 @@
4347
4387
  return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(ImgInner, { image: getIconWithVersion(icon || {}, stepVersion), width: "48", height: "48", asSVG: true })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : stepVersionIconTextStyles), children: i + 1 })) }, String(i)));
4348
4388
  };
4349
4389
 
4350
- const containerStyles = {
4351
- 'horizontal-list': 'mx-auto mt-5 w-fit',
4352
- 'vertical-list': 'absolute flex-col justify-center h-full top-0 left-4',
4353
- };
4354
- const activeDotStyles = {
4355
- 'horizontal-list': 'w-6',
4356
- 'vertical-list': 'h-6',
4357
- };
4358
- const dotStyle = 'cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white';
4359
- const inactiveDotStyle = 'w-2 h-2 opacity-30';
4360
- const SwipeListControlDots = JSX(({ containerRef, activeIndex, dotCount = 0, listType = 'horizontal-list', version }) => {
4361
- const handleClick = (idx) => {
4362
- if (idx !== activeIndex && containerRef?.current) {
4363
- containerRef.current.children[idx]?.scrollIntoView({
4364
- behavior: 'smooth',
4365
- block: 'nearest',
4366
- });
4367
- }
4368
- };
4369
- return dotCount ? (jsx("div", { className: style('flex gap-2', containerStyles[listType], version ? 'group' : ''), ...(version ? { 'data-ver': version } : {}), children: new Array(dotCount).fill(null).map((_, idx) => (jsx("div", { className: `${dotStyle} ${idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle}`, role: "button", "aria-hidden": true, onClick: () => handleClick(idx) }, String(idx)))) })) : null;
4370
- });
4371
-
4372
4390
  const DEFAULT_GAP = 14;
4373
4391
  /*
4374
4392
  Horizontal padding used on a container above SwipeListControl.
@@ -4506,7 +4524,7 @@
4506
4524
  return null;
4507
4525
  };
4508
4526
 
4509
- const scrollButtonStyle = 'absolute z-50 top-0';
4527
+ const scrollButtonStyle = 'absolute z-40 top-0';
4510
4528
  const ScrollableTabs = JSX((props) => {
4511
4529
  const { tabs, onClick, currentTab, page, showCounter } = props;
4512
4530
  const [containerRef, scroll] = useSwipeListScroll({
@@ -4704,7 +4722,7 @@
4704
4722
  const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
4705
4723
  const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
4706
4724
  const onHideContentClick = () => setTableInner(undefined);
4707
- return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-3.5 max-w-6 max-h-6", image: getIconWithVersion(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
4725
+ return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-3.5 max-w-6", image: getIconWithVersion(header.icon), width: "24", height: "24", asSVG: true })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
4708
4726
  });
4709
4727
 
4710
4728
  const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
@@ -4798,6 +4816,7 @@
4798
4816
  CarouselProductCard,
4799
4817
  CarouselProgramsCard,
4800
4818
  CarouselRecommendationCard,
4819
+ CarouselRichTextCard,
4801
4820
  CarouselTariffsCard,
4802
4821
  ComparisonTable,
4803
4822
  ContactsBlock,
@@ -4964,7 +4983,7 @@
4964
4983
  return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
4965
4984
  }
4966
4985
 
4967
- const packageVersion = "0.9.13";
4986
+ const packageVersion = "0.9.15";
4968
4987
 
4969
4988
  exports.Blocks = Blocks;
4970
4989
  exports.ContentPage = ContentPage;