@redneckz/wildless-cms-uni-blocks 0.3.69 → 0.3.71

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 (1165) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +467 -423
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/DoneIcon.svg +1 -0
  5. package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
  6. package/dist/components/BlockContent.d.ts +3 -1
  7. package/dist/components/Blocks.d.ts +1 -1
  8. package/dist/components/Blocks.js +2 -2
  9. package/dist/components/Blocks.js.map +1 -1
  10. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  11. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  12. package/dist/components/Calculator/Calculator.js +7 -3
  13. package/dist/components/Calculator/Calculator.js.map +1 -1
  14. package/dist/components/Calculator/getCalculatorParams.js +2 -1
  15. package/dist/components/Calculator/getCalculatorParams.js.map +1 -1
  16. package/dist/components/Calculator/getCreditRate.js +2 -1
  17. package/dist/components/Calculator/getCreditRate.js.map +1 -1
  18. package/dist/components/Calculator/getMonthlyPayment.js +2 -1
  19. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  20. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  21. package/dist/components/ComparisonTable/HeaderCell.mobile.js +4 -2
  22. package/dist/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  23. package/dist/components/ComparisonTable/TableCell.js +3 -1
  24. package/dist/components/ComparisonTable/TableCell.js.map +1 -1
  25. package/dist/components/ComparisonTable/TableCell.mobile.js +3 -1
  26. package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  27. package/dist/components/ComparisonTable/TableRow.js +2 -1
  28. package/dist/components/ComparisonTable/TableRow.js.map +1 -1
  29. package/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
  30. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  31. package/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
  32. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  33. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  34. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  35. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  36. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  37. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
  38. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  39. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  40. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  41. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  42. package/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  43. package/dist/components/ExchangeRateTile/calculateResult.js +11 -0
  44. package/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
  45. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  46. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
  47. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  48. package/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
  49. package/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  50. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
  51. package/dist/components/ExchangeRateTile/renderButton.js +9 -0
  52. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
  53. package/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
  54. package/dist/components/ExchangeRateTile/renderInput.js +12 -0
  55. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
  56. package/dist/components/Footer/Footer.js +1 -1
  57. package/dist/components/Footer/Footer.js.map +1 -1
  58. package/dist/components/Footer/MediaButton.js +4 -13
  59. package/dist/components/Footer/MediaButton.js.map +1 -1
  60. package/dist/components/Footer/TextInformation.js +1 -1
  61. package/dist/components/Footer/TextInformation.js.map +1 -1
  62. package/dist/components/Gallery/Gallery.mobile.js +2 -2
  63. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  64. package/dist/components/Gallery/GalleryCardInner.js +2 -2
  65. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  66. package/dist/components/Gallery/GalleryInner.js +7 -2
  67. package/dist/components/Gallery/GalleryInner.js.map +1 -1
  68. package/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  69. package/dist/components/GroupBlock/GroupBlock.js +3 -3
  70. package/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  71. package/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
  72. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  73. package/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  74. package/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  75. package/dist/components/Header/DropdownMenu.d.ts +13 -0
  76. package/dist/components/Header/DropdownMenu.js +18 -0
  77. package/dist/components/Header/DropdownMenu.js.map +1 -0
  78. package/dist/components/Header/HeaderSubMenu.js +19 -32
  79. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  80. package/dist/components/Insurance/Insurance.js +4 -6
  81. package/dist/components/Insurance/Insurance.js.map +1 -1
  82. package/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  83. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  84. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  85. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  86. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  87. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  88. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  89. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  90. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
  91. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  92. package/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  93. package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  94. package/dist/components/Placeholder/Placeholder.js +1 -1
  95. package/dist/components/Placeholder/Placeholder.js.map +1 -1
  96. package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  97. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  98. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  99. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  100. package/dist/components/ProductTile/ProductTile.js +2 -2
  101. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  102. package/dist/components/Recommendation/Recommendation.js +7 -2
  103. package/dist/components/Recommendation/Recommendation.js.map +1 -1
  104. package/dist/components/StepsBlock/StepsBlock.js +1 -1
  105. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  106. package/dist/components/Tile/Tile.js +4 -4
  107. package/dist/components/Tile/Tile.js.map +1 -1
  108. package/dist/components/Tile/TileContent.d.ts +5 -0
  109. package/dist/content-page-repository/mapJSON.d.ts +1 -1
  110. package/dist/content-page-repository/mapJSON.js +9 -7
  111. package/dist/content-page-repository/mapJSON.js.map +1 -1
  112. package/dist/content-page-repository/transformMarkdown.js +2 -1
  113. package/dist/content-page-repository/transformMarkdown.js.map +1 -1
  114. package/dist/content-page-repository/transformPicture.js +6 -3
  115. package/dist/content-page-repository/transformPicture.js.map +1 -1
  116. package/dist/hooks/useCreditCalculatorData.d.ts +1 -2
  117. package/dist/hooks/useCreditCalculatorData.js.map +1 -1
  118. package/dist/hooks/useExchangeRates.d.ts +2 -8
  119. package/dist/hooks/useExchangeRates.js +52 -3
  120. package/dist/hooks/useExchangeRates.js.map +1 -1
  121. package/dist/hooks/useTableArrowScrollControl.js +3 -3
  122. package/dist/hooks/useTableArrowScrollControl.js.map +1 -1
  123. package/dist/icons/IconName.d.ts +4 -2
  124. package/dist/icons/IconName.js +2 -0
  125. package/dist/icons/IconName.js.map +1 -1
  126. package/dist/model/Insurance.d.ts +6 -0
  127. package/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
  128. package/dist/model/Insurance.js.map +1 -0
  129. package/dist/react/IntersectionObserverTag.d.ts +3 -0
  130. package/dist/react/IntersectionObserverTag.js +17 -0
  131. package/dist/react/IntersectionObserverTag.js.map +1 -0
  132. package/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  133. package/{mobile/dist → dist/react}/setup-fixture.js +3 -1
  134. package/dist/react/setup-fixture.js.map +1 -0
  135. package/dist/services/sitemap/isHrefActive.d.ts +1 -1
  136. package/dist/services/sitemap/isHrefActive.js +1 -1
  137. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  138. package/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
  139. package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  140. package/dist/ui-kit/Button/ButtonSection.js +2 -1
  141. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  142. package/dist/ui-kit/Button/renderArrows.d.ts +10 -0
  143. package/dist/ui-kit/Button/renderArrows.js +9 -0
  144. package/dist/ui-kit/Button/renderArrows.js.map +1 -0
  145. package/dist/ui-kit/Img/Img.mobile.js +1 -1
  146. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  147. package/dist/ui-kit/Input/Input.js +6 -2
  148. package/dist/ui-kit/Input/Input.js.map +1 -1
  149. package/dist/ui-kit/Input/InputProps.d.ts +3 -0
  150. package/dist/ui-kit/InputRange/InputRange.js +10 -6
  151. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  152. package/dist/ui-kit/SVG.js +1 -1
  153. package/dist/ui-kit/SVG.js.map +1 -1
  154. package/dist/ui-kit/SearchBar.mobile.js +1 -1
  155. package/dist/ui-kit/SearchBar.mobile.js.map +1 -1
  156. package/dist/ui-kit/Select/Select.d.ts +2 -0
  157. package/dist/ui-kit/Select/Select.js +2 -2
  158. package/dist/ui-kit/Select/Select.js.map +1 -1
  159. package/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  160. package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  161. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  162. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  163. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  164. package/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  165. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
  166. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  167. package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  168. package/dist/ui-kit/Tabs/Tabs.js +2 -1
  169. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  170. package/dist/ui-kit/TopItem/TopItem.js +6 -8
  171. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  172. package/dist/utils/changeHashOnScroll.js +2 -1
  173. package/dist/utils/changeHashOnScroll.js.map +1 -1
  174. package/dist/utils/getCurrentDate.js +1 -1
  175. package/dist/utils/roundTo.d.ts +1 -0
  176. package/dist/utils/roundTo.js +8 -0
  177. package/dist/utils/roundTo.js.map +1 -0
  178. package/lib/common.css +1 -1
  179. package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
  180. package/lib/components/BlockContent.d.ts +3 -1
  181. package/lib/components/Blocks.d.ts +1 -1
  182. package/lib/components/Blocks.js +2 -2
  183. package/lib/components/Blocks.js.map +1 -1
  184. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  185. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  186. package/lib/components/Calculator/Calculator.js +8 -4
  187. package/lib/components/Calculator/Calculator.js.map +1 -1
  188. package/lib/components/Calculator/getCalculatorParams.js +2 -1
  189. package/lib/components/Calculator/getCalculatorParams.js.map +1 -1
  190. package/lib/components/Calculator/getCreditRate.js +2 -1
  191. package/lib/components/Calculator/getCreditRate.js.map +1 -1
  192. package/lib/components/Calculator/getMonthlyPayment.js +2 -1
  193. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  194. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  195. package/lib/components/ComparisonTable/HeaderCell.mobile.js +4 -2
  196. package/lib/components/ComparisonTable/HeaderCell.mobile.js.map +1 -1
  197. package/lib/components/ComparisonTable/TableCell.js +3 -1
  198. package/lib/components/ComparisonTable/TableCell.js.map +1 -1
  199. package/lib/components/ComparisonTable/TableCell.mobile.js +3 -1
  200. package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
  201. package/lib/components/ComparisonTable/TableRow.js +2 -1
  202. package/lib/components/ComparisonTable/TableRow.js.map +1 -1
  203. package/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
  204. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  205. package/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
  206. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  207. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  208. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  209. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  210. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  211. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
  212. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  213. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  214. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  215. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  216. package/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  217. package/lib/components/ExchangeRateTile/calculateResult.js +7 -0
  218. package/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
  219. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  220. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
  221. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  222. package/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
  223. package/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  224. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
  225. package/lib/components/ExchangeRateTile/renderButton.js +6 -0
  226. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
  227. package/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
  228. package/lib/components/ExchangeRateTile/renderInput.js +9 -0
  229. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
  230. package/lib/components/Footer/Footer.js +1 -1
  231. package/lib/components/Footer/Footer.js.map +1 -1
  232. package/lib/components/Footer/MediaButton.js +4 -13
  233. package/lib/components/Footer/MediaButton.js.map +1 -1
  234. package/lib/components/Footer/TextInformation.js +1 -1
  235. package/lib/components/Footer/TextInformation.js.map +1 -1
  236. package/lib/components/Gallery/Gallery.mobile.js +2 -2
  237. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  238. package/lib/components/Gallery/GalleryCardInner.js +2 -2
  239. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  240. package/lib/components/Gallery/GalleryInner.js +7 -2
  241. package/lib/components/Gallery/GalleryInner.js.map +1 -1
  242. package/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  243. package/lib/components/GroupBlock/GroupBlock.fixture.d.ts +1 -0
  244. package/lib/components/GroupBlock/GroupBlock.js +3 -3
  245. package/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  246. package/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
  247. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  248. package/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  249. package/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  250. package/lib/components/Header/DropdownMenu.d.ts +13 -0
  251. package/lib/components/Header/DropdownMenu.js +16 -0
  252. package/lib/components/Header/DropdownMenu.js.map +1 -0
  253. package/lib/components/Header/HeaderSubMenu.js +19 -32
  254. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  255. package/lib/components/Headline/Headline.fixture.d.ts +9 -3
  256. package/lib/components/Headline/Headline.fixture.mobile.d.ts +13 -3
  257. package/lib/components/Insurance/Insurance.fixture.d.ts +2 -1
  258. package/lib/components/Insurance/Insurance.js +4 -6
  259. package/lib/components/Insurance/Insurance.js.map +1 -1
  260. package/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  261. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  262. package/lib/components/{CreditCalculator/CreditCalculator.fixture.d.ts → InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts} +0 -0
  263. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  264. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  265. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  266. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  267. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  268. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  269. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
  270. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  271. package/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  272. package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  273. package/lib/components/Placeholder/Placeholder.js +1 -1
  274. package/lib/components/Placeholder/Placeholder.js.map +1 -1
  275. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +10 -2
  276. package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  277. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  278. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +1 -1
  279. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  280. package/lib/components/ProductTile/ProductTile.js +2 -2
  281. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  282. package/lib/components/Recommendation/Recommendation.fixture.d.ts +3 -0
  283. package/lib/components/Recommendation/Recommendation.js +7 -2
  284. package/lib/components/Recommendation/Recommendation.js.map +1 -1
  285. package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +7 -1
  286. package/lib/components/StepsBlock/StepsBlock.js +1 -1
  287. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  288. package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -1
  289. package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +3 -1
  290. package/lib/components/Tile/Tile.js +4 -4
  291. package/lib/components/Tile/Tile.js.map +1 -1
  292. package/lib/components/Tile/TileContent.d.ts +5 -0
  293. package/lib/content-page-repository/mapJSON.d.ts +1 -1
  294. package/lib/content-page-repository/mapJSON.js +9 -7
  295. package/lib/content-page-repository/mapJSON.js.map +1 -1
  296. package/lib/content-page-repository/transformMarkdown.js +2 -1
  297. package/lib/content-page-repository/transformMarkdown.js.map +1 -1
  298. package/lib/content-page-repository/transformPicture.js +6 -3
  299. package/lib/content-page-repository/transformPicture.js.map +1 -1
  300. package/lib/hooks/useCreditCalculatorData.d.ts +1 -2
  301. package/lib/hooks/useCreditCalculatorData.js.map +1 -1
  302. package/lib/hooks/useExchangeRates.d.ts +2 -8
  303. package/lib/hooks/useExchangeRates.js +52 -3
  304. package/lib/hooks/useExchangeRates.js.map +1 -1
  305. package/lib/hooks/useTableArrowScrollControl.js +3 -3
  306. package/lib/hooks/useTableArrowScrollControl.js.map +1 -1
  307. package/lib/icons/IconName.d.ts +4 -2
  308. package/lib/icons/IconName.js +2 -0
  309. package/lib/icons/IconName.js.map +1 -1
  310. package/lib/model/Insurance.d.ts +6 -0
  311. package/lib/model/Insurance.js +2 -0
  312. package/lib/model/Insurance.js.map +1 -0
  313. package/lib/react/IntersectionObserverTag.d.ts +3 -0
  314. package/lib/react/IntersectionObserverTag.js +14 -0
  315. package/lib/react/IntersectionObserverTag.js.map +1 -0
  316. package/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  317. package/{mobile/lib → lib/react}/setup-fixture.js +3 -1
  318. package/lib/react/setup-fixture.js.map +1 -0
  319. package/lib/services/sitemap/isHrefActive.d.ts +1 -1
  320. package/lib/services/sitemap/isHrefActive.js +1 -1
  321. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  322. package/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
  323. package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  324. package/lib/ui-kit/Button/Button.fixture.d.ts +1 -1
  325. package/lib/ui-kit/Button/Button.fixture.mobile.d.ts +1 -1
  326. package/lib/ui-kit/Button/ButtonSection.js +2 -1
  327. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  328. package/lib/ui-kit/Button/renderArrows.d.ts +10 -0
  329. package/lib/ui-kit/Button/renderArrows.js +6 -0
  330. package/lib/ui-kit/Button/renderArrows.js.map +1 -0
  331. package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +1 -1
  332. package/lib/ui-kit/Icon/Icon.fixture.d.ts +1 -1
  333. package/lib/ui-kit/Img/Img.mobile.js +1 -1
  334. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  335. package/lib/ui-kit/Input/Input.js +6 -2
  336. package/lib/ui-kit/Input/Input.js.map +1 -1
  337. package/lib/ui-kit/Input/InputProps.d.ts +3 -0
  338. package/lib/ui-kit/InputRange/InputRange.js +10 -6
  339. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  340. package/lib/ui-kit/List/List.fixture.d.ts +1 -1
  341. package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -1
  342. package/lib/ui-kit/SVG.js +1 -1
  343. package/lib/ui-kit/SVG.js.map +1 -1
  344. package/lib/ui-kit/SearchBar.mobile.js +1 -1
  345. package/lib/ui-kit/SearchBar.mobile.js.map +1 -1
  346. package/lib/ui-kit/Select/Select.d.ts +2 -0
  347. package/lib/ui-kit/Select/Select.js +2 -2
  348. package/lib/ui-kit/Select/Select.js.map +1 -1
  349. package/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  350. package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  351. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  352. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  353. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  354. package/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  355. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
  356. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  357. package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  358. package/lib/ui-kit/Tabs/Tabs.js +2 -1
  359. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  360. package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +1 -1
  361. package/lib/ui-kit/TopItem/TopItem.js +6 -8
  362. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  363. package/lib/utils/changeHashOnScroll.js +2 -1
  364. package/lib/utils/changeHashOnScroll.js.map +1 -1
  365. package/lib/utils/getCurrentDate.js +1 -1
  366. package/lib/utils/roundTo.d.ts +1 -0
  367. package/lib/utils/roundTo.js +5 -0
  368. package/lib/utils/roundTo.js.map +1 -0
  369. package/mobile/bundle/bundle.umd.js +216 -69
  370. package/mobile/bundle/bundle.umd.min.js +1 -1
  371. package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
  372. package/mobile/dist/components/BlockContent.d.ts +3 -1
  373. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  374. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  375. package/mobile/dist/components/Calculator/Calculator.js +7 -3
  376. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  377. package/mobile/dist/components/Calculator/getCalculatorParams.js +2 -1
  378. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +1 -1
  379. package/mobile/dist/components/Calculator/getCreditRate.js +2 -1
  380. package/mobile/dist/components/Calculator/getCreditRate.js.map +1 -1
  381. package/mobile/dist/components/Calculator/getMonthlyPayment.js +2 -1
  382. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  383. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  384. package/mobile/dist/components/ComparisonTable/HeaderCell.js +4 -2
  385. package/mobile/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
  386. package/mobile/dist/components/ComparisonTable/TableCell.js +3 -1
  387. package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
  388. package/mobile/dist/components/ComparisonTable/TableRow.js +2 -1
  389. package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
  390. package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +14 -3
  391. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  392. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +9 -0
  393. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  394. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  395. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  396. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  397. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  398. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +68 -9
  399. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  400. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  401. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  402. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  403. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  404. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +11 -0
  405. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +1 -0
  406. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  407. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +17 -0
  408. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  409. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +5 -1
  410. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  411. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -0
  412. package/mobile/dist/components/ExchangeRateTile/renderButton.js +9 -0
  413. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -0
  414. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +12 -0
  415. package/mobile/dist/components/ExchangeRateTile/renderInput.js +12 -0
  416. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -0
  417. package/mobile/dist/components/Footer/MediaButton.js +4 -13
  418. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  419. package/mobile/dist/components/Gallery/Gallery.js +2 -2
  420. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  421. package/mobile/dist/components/Gallery/GalleryCardInner.js +2 -2
  422. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  423. package/mobile/dist/components/Gallery/GalleryInner.js +7 -2
  424. package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
  425. package/mobile/dist/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  426. package/mobile/dist/components/GroupBlock/GroupBlock.js +3 -3
  427. package/mobile/dist/components/GroupBlock/GroupBlock.js.map +1 -1
  428. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +2 -2
  429. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  430. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js +1 -1
  431. package/mobile/dist/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  432. package/mobile/dist/components/Header/DropdownMenu.d.ts +13 -0
  433. package/mobile/dist/components/Header/DropdownMenu.js +18 -0
  434. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -0
  435. package/mobile/dist/components/Header/HeaderSubMenu.js +19 -32
  436. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  437. package/mobile/dist/components/Insurance/Insurance.js +4 -6
  438. package/mobile/dist/components/Insurance/Insurance.js.map +1 -1
  439. package/mobile/dist/components/Insurance/InsuranceContent.d.ts +2 -5
  440. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  441. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +34 -0
  442. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  443. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  444. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  445. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  446. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  447. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +55 -0
  448. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  449. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  450. package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  451. package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
  452. package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
  453. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
  454. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  455. package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
  456. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  457. package/mobile/dist/components/Recommendation/Recommendation.js +7 -2
  458. package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
  459. package/mobile/dist/components/Tile/Tile.js +4 -4
  460. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  461. package/mobile/dist/components/Tile/TileContent.d.ts +5 -0
  462. package/mobile/dist/content-page-repository/mapJSON.d.ts +1 -1
  463. package/mobile/dist/content-page-repository/mapJSON.js +9 -7
  464. package/mobile/dist/content-page-repository/mapJSON.js.map +1 -1
  465. package/mobile/dist/content-page-repository/transformMarkdown.js +2 -1
  466. package/mobile/dist/content-page-repository/transformMarkdown.js.map +1 -1
  467. package/mobile/dist/content-page-repository/transformPicture.js +6 -3
  468. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  469. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +1 -2
  470. package/mobile/dist/hooks/useCreditCalculatorData.js.map +1 -1
  471. package/mobile/dist/hooks/useExchangeRates.d.ts +2 -8
  472. package/mobile/dist/hooks/useExchangeRates.js +52 -3
  473. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  474. package/mobile/dist/hooks/useTableArrowScrollControl.js +3 -3
  475. package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -1
  476. package/mobile/dist/icons/IconName.d.ts +4 -2
  477. package/mobile/dist/icons/IconName.js +2 -0
  478. package/mobile/dist/icons/IconName.js.map +1 -1
  479. package/mobile/dist/model/Insurance.d.ts +6 -0
  480. package/mobile/dist/{components/CreditCalculator/CreditCalculatorContent.js → model/Insurance.js} +1 -1
  481. package/mobile/dist/model/Insurance.js.map +1 -0
  482. package/mobile/dist/react/IntersectionObserverTag.d.ts +3 -0
  483. package/mobile/dist/react/IntersectionObserverTag.js +17 -0
  484. package/mobile/dist/react/IntersectionObserverTag.js.map +1 -0
  485. package/mobile/dist/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  486. package/{dist → mobile/dist/react}/setup-fixture.js +3 -1
  487. package/mobile/dist/react/setup-fixture.js.map +1 -0
  488. package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -1
  489. package/mobile/dist/services/sitemap/isHrefActive.js +1 -1
  490. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  491. package/mobile/dist/ui-kit/Button/ArrowButton.d.ts +1 -1
  492. package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
  493. package/mobile/dist/ui-kit/Button/ButtonSection.js +2 -1
  494. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  495. package/mobile/dist/ui-kit/Button/renderArrows.d.ts +10 -0
  496. package/mobile/dist/ui-kit/Button/renderArrows.js +9 -0
  497. package/mobile/dist/ui-kit/Button/renderArrows.js.map +1 -0
  498. package/mobile/dist/ui-kit/Img/Img.js +1 -1
  499. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  500. package/mobile/dist/ui-kit/Input/Input.js +6 -2
  501. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  502. package/mobile/dist/ui-kit/Input/InputProps.d.ts +3 -0
  503. package/mobile/dist/ui-kit/InputRange/InputRange.js +10 -6
  504. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  505. package/mobile/dist/ui-kit/SVG.js +1 -1
  506. package/mobile/dist/ui-kit/SVG.js.map +1 -1
  507. package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
  508. package/mobile/dist/ui-kit/Select/Select.js +2 -2
  509. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  510. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  511. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  512. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  513. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  514. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  515. package/mobile/dist/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  516. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +9 -3
  517. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  518. package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  519. package/mobile/dist/ui-kit/Tabs/Tabs.js +2 -1
  520. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  521. package/mobile/dist/ui-kit/TopItem/TopItem.js +6 -8
  522. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  523. package/mobile/dist/utils/changeHashOnScroll.js +2 -1
  524. package/mobile/dist/utils/changeHashOnScroll.js.map +1 -1
  525. package/mobile/dist/utils/getCurrentDate.js +1 -1
  526. package/mobile/dist/utils/roundTo.d.ts +1 -0
  527. package/mobile/dist/utils/roundTo.js +8 -0
  528. package/mobile/dist/utils/roundTo.js.map +1 -0
  529. package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
  530. package/mobile/lib/components/BlockContent.d.ts +3 -1
  531. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +2 -2
  532. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
  533. package/mobile/lib/components/Calculator/Calculator.js +8 -4
  534. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  535. package/mobile/lib/components/Calculator/getCalculatorParams.js +2 -1
  536. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +1 -1
  537. package/mobile/lib/components/Calculator/getCreditRate.js +2 -1
  538. package/mobile/lib/components/Calculator/getCreditRate.js.map +1 -1
  539. package/mobile/lib/components/Calculator/getMonthlyPayment.js +2 -1
  540. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  541. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  542. package/mobile/lib/components/ComparisonTable/HeaderCell.js +4 -2
  543. package/mobile/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
  544. package/mobile/lib/components/ComparisonTable/TableCell.js +3 -1
  545. package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
  546. package/mobile/lib/components/ComparisonTable/TableRow.js +2 -1
  547. package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
  548. package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +14 -3
  549. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +5 -0
  550. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +7 -0
  551. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +1 -0
  552. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +1 -1
  553. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  554. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  555. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +16 -4
  556. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +69 -10
  557. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  558. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +7 -19
  559. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  560. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -10
  561. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +2 -0
  562. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +7 -0
  563. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +1 -0
  564. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +8 -0
  565. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +14 -0
  566. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +1 -0
  567. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +5 -1
  568. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +1 -1
  569. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -0
  570. package/mobile/lib/components/ExchangeRateTile/renderButton.js +6 -0
  571. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -0
  572. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +12 -0
  573. package/mobile/lib/components/ExchangeRateTile/renderInput.js +9 -0
  574. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -0
  575. package/mobile/lib/components/Footer/MediaButton.js +4 -13
  576. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  577. package/mobile/lib/components/Gallery/Gallery.js +2 -2
  578. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  579. package/mobile/lib/components/Gallery/GalleryCardInner.js +2 -2
  580. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  581. package/mobile/lib/components/Gallery/GalleryInner.js +7 -2
  582. package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
  583. package/mobile/lib/components/GroupBlock/BlocksTypeProps.d.ts +4 -1
  584. package/mobile/lib/components/GroupBlock/GroupBlock.js +3 -3
  585. package/mobile/lib/components/GroupBlock/GroupBlock.js.map +1 -1
  586. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +2 -2
  587. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  588. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js +1 -1
  589. package/mobile/lib/components/GroupBlock/GroupBlocksItem.js.map +1 -1
  590. package/mobile/lib/components/Header/DropdownMenu.d.ts +13 -0
  591. package/mobile/lib/components/Header/DropdownMenu.js +16 -0
  592. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -0
  593. package/mobile/lib/components/Header/HeaderSubMenu.js +19 -32
  594. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  595. package/mobile/lib/components/Insurance/Insurance.js +4 -6
  596. package/mobile/lib/components/Insurance/Insurance.js.map +1 -1
  597. package/mobile/lib/components/Insurance/InsuranceContent.d.ts +2 -5
  598. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +5 -0
  599. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +32 -0
  600. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -0
  601. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +30 -0
  602. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +2 -0
  603. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +1 -0
  604. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +5 -0
  605. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +53 -0
  606. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -0
  607. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +2 -1
  608. package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +1 -1
  609. package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
  610. package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
  611. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
  612. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  613. package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
  614. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  615. package/mobile/lib/components/Recommendation/Recommendation.js +7 -2
  616. package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
  617. package/mobile/lib/components/Tile/Tile.js +4 -4
  618. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  619. package/mobile/lib/components/Tile/TileContent.d.ts +5 -0
  620. package/mobile/lib/content-page-repository/mapJSON.d.ts +1 -1
  621. package/mobile/lib/content-page-repository/mapJSON.js +9 -7
  622. package/mobile/lib/content-page-repository/mapJSON.js.map +1 -1
  623. package/mobile/lib/content-page-repository/transformMarkdown.js +2 -1
  624. package/mobile/lib/content-page-repository/transformMarkdown.js.map +1 -1
  625. package/mobile/lib/content-page-repository/transformPicture.js +6 -3
  626. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  627. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +1 -2
  628. package/mobile/lib/hooks/useCreditCalculatorData.js.map +1 -1
  629. package/mobile/lib/hooks/useExchangeRates.d.ts +2 -8
  630. package/mobile/lib/hooks/useExchangeRates.js +52 -3
  631. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  632. package/mobile/lib/hooks/useTableArrowScrollControl.js +3 -3
  633. package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -1
  634. package/mobile/lib/icons/IconName.d.ts +4 -2
  635. package/mobile/lib/icons/IconName.js +2 -0
  636. package/mobile/lib/icons/IconName.js.map +1 -1
  637. package/mobile/lib/model/Insurance.d.ts +6 -0
  638. package/mobile/lib/model/Insurance.js +2 -0
  639. package/mobile/lib/model/Insurance.js.map +1 -0
  640. package/mobile/lib/react/IntersectionObserverTag.d.ts +3 -0
  641. package/mobile/lib/react/IntersectionObserverTag.js +14 -0
  642. package/mobile/lib/react/IntersectionObserverTag.js.map +1 -0
  643. package/mobile/lib/{setup-fixture.d.ts → react/setup-fixture.d.ts} +1 -1
  644. package/{lib → mobile/lib/react}/setup-fixture.js +3 -1
  645. package/mobile/lib/react/setup-fixture.js.map +1 -0
  646. package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -1
  647. package/mobile/lib/services/sitemap/isHrefActive.js +1 -1
  648. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  649. package/mobile/lib/ui-kit/Button/ArrowButton.d.ts +1 -1
  650. package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
  651. package/mobile/lib/ui-kit/Button/ButtonSection.js +2 -1
  652. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  653. package/mobile/lib/ui-kit/Button/renderArrows.d.ts +10 -0
  654. package/mobile/lib/ui-kit/Button/renderArrows.js +6 -0
  655. package/mobile/lib/ui-kit/Button/renderArrows.js.map +1 -0
  656. package/mobile/lib/ui-kit/Img/Img.js +1 -1
  657. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  658. package/mobile/lib/ui-kit/Input/Input.js +6 -2
  659. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  660. package/mobile/lib/ui-kit/Input/InputProps.d.ts +3 -0
  661. package/mobile/lib/ui-kit/InputRange/InputRange.js +10 -6
  662. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  663. package/mobile/lib/ui-kit/SVG.js +1 -1
  664. package/mobile/lib/ui-kit/SVG.js.map +1 -1
  665. package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
  666. package/mobile/lib/ui-kit/Select/Select.js +2 -2
  667. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  668. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +2 -2
  669. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
  670. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -1
  671. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  672. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js +3 -2
  673. package/mobile/lib/ui-kit/SwipeListControl/utils/getIndexParts.js.map +1 -1
  674. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +10 -4
  675. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
  676. package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +5 -4
  677. package/mobile/lib/ui-kit/Tabs/Tabs.js +2 -1
  678. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  679. package/mobile/lib/ui-kit/TopItem/TopItem.js +6 -8
  680. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  681. package/mobile/lib/utils/changeHashOnScroll.js +2 -1
  682. package/mobile/lib/utils/changeHashOnScroll.js.map +1 -1
  683. package/mobile/lib/utils/getCurrentDate.js +1 -1
  684. package/mobile/lib/utils/roundTo.d.ts +1 -0
  685. package/mobile/lib/utils/roundTo.js +5 -0
  686. package/mobile/lib/utils/roundTo.js.map +1 -0
  687. package/mobile/src/components/Accordion/Accordion.tsx +1 -3
  688. package/mobile/src/components/BlockContent.ts +5 -1
  689. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  690. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
  691. package/mobile/src/components/Calculator/Calculator.tsx +8 -22
  692. package/mobile/src/components/Calculator/getCalculatorParams.ts +3 -1
  693. package/mobile/src/components/Calculator/getCreditRate.ts +3 -1
  694. package/mobile/src/components/Calculator/getMonthlyPayment.ts +3 -1
  695. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
  696. package/mobile/src/components/ComparisonTable/HeaderCell.tsx +7 -13
  697. package/mobile/src/components/ComparisonTable/TableCell.tsx +7 -8
  698. package/mobile/src/components/ComparisonTable/TableRow.tsx +6 -9
  699. package/mobile/src/components/ContentPage/ContentPage.page.json +50 -6
  700. package/mobile/src/components/ContentPage/ContentPageContext.tsx +20 -4
  701. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
  702. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
  703. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
  704. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
  705. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  706. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +8 -0
  707. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
  708. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
  709. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +14 -0
  710. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +43 -0
  711. package/mobile/src/components/Footer/MediaButton.tsx +7 -17
  712. package/mobile/src/components/Gallery/Gallery.tsx +2 -2
  713. package/mobile/src/components/Gallery/GalleryCardInner.tsx +2 -2
  714. package/mobile/src/components/Gallery/GalleryInner.tsx +10 -20
  715. package/mobile/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
  716. package/mobile/src/components/GroupBlock/GroupBlock.example.json +8 -7
  717. package/mobile/src/components/GroupBlock/GroupBlock.tsx +9 -4
  718. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  719. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
  720. package/mobile/src/components/Header/DropdownMenu.tsx +72 -0
  721. package/mobile/src/components/Header/HeaderSubMenu.tsx +45 -87
  722. package/mobile/src/components/Insurance/Insurance.example.json +21 -0
  723. package/mobile/src/components/Insurance/Insurance.tsx +10 -9
  724. package/mobile/src/components/Insurance/InsuranceContent.ts +9 -11
  725. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  726. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  727. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  728. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
  729. package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
  730. package/mobile/src/components/Placeholder/Placeholder.tsx +6 -2
  731. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -5
  732. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  733. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
  734. package/mobile/src/components/Recommendation/Recommendation.tsx +7 -15
  735. package/mobile/src/components/TariffsTable/TariffsTable.example.json +1 -5
  736. package/mobile/src/components/Tile/Tile.example.json +1 -0
  737. package/mobile/src/components/Tile/Tile.tsx +4 -2
  738. package/mobile/src/components/Tile/TileContent.ts +5 -0
  739. package/mobile/src/content-page-repository/mapJSON.ts +11 -7
  740. package/mobile/src/content-page-repository/transformMarkdown.ts +3 -1
  741. package/mobile/src/content-page-repository/transformPicture.ts +8 -3
  742. package/mobile/src/hooks/useCreditCalculatorData.ts +2 -3
  743. package/mobile/src/hooks/useExchangeRates.ts +70 -10
  744. package/mobile/src/hooks/useTableArrowScrollControl.ts +3 -3
  745. package/mobile/src/icons/DoneIcon.svg +4 -0
  746. package/mobile/src/icons/IconName.ts +4 -4
  747. package/mobile/src/model/Insurance.ts +6 -0
  748. package/mobile/src/react/IntersectionObserverTag.tsx +23 -0
  749. package/mobile/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
  750. package/mobile/src/services/sitemap/isHrefActive.ts +2 -1
  751. package/mobile/src/ui-kit/Button/ArrowButton.tsx +1 -1
  752. package/mobile/src/ui-kit/Button/ButtonSection.tsx +3 -1
  753. package/mobile/src/ui-kit/Button/renderArrows.tsx +41 -0
  754. package/mobile/src/ui-kit/Img/Img.tsx +1 -0
  755. package/mobile/src/ui-kit/Input/Input.tsx +21 -5
  756. package/mobile/src/ui-kit/Input/InputProps.ts +3 -0
  757. package/mobile/src/ui-kit/InputRange/InputRange.tsx +14 -6
  758. package/mobile/src/ui-kit/SVG.tsx +2 -2
  759. package/mobile/src/ui-kit/Select/Select.tsx +17 -7
  760. package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
  761. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
  762. package/mobile/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
  763. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
  764. package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
  765. package/mobile/src/ui-kit/Tabs/Tabs.tsx +4 -3
  766. package/mobile/src/ui-kit/TopItem/TopItem.tsx +8 -9
  767. package/mobile/src/utils/changeHashOnScroll.ts +3 -1
  768. package/mobile/src/utils/getCurrentDate.ts +1 -1
  769. package/mobile/src/utils/roundTo.ts +4 -0
  770. package/package.json +3 -3
  771. package/src/components/Accordion/Accordion.fixture.mobile.tsx +1 -1
  772. package/src/components/Accordion/Accordion.fixture.tsx +11 -11
  773. package/src/components/Accordion/Accordion.mobile.tsx +1 -3
  774. package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +1 -1
  775. package/src/components/BlockContent.ts +5 -1
  776. package/src/components/Blocks.ts +2 -2
  777. package/src/components/Bonus/Bonus.fixture.tsx +1 -1
  778. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +1 -1
  779. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +1 -1
  780. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +4 -8
  781. package/src/components/Calculator/Calculator.fixture.tsx +4 -4
  782. package/src/components/Calculator/Calculator.tsx +8 -22
  783. package/src/components/Calculator/getCalculatorParams.ts +3 -1
  784. package/src/components/Calculator/getCreditRate.ts +3 -1
  785. package/src/components/Calculator/getMonthlyPayment.ts +3 -1
  786. package/src/components/Calculator/renderCalculatorBlock.tsx +0 -7
  787. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +2 -26
  788. package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -1
  789. package/src/components/ComparisonTable/HeaderCell.mobile.tsx +7 -13
  790. package/src/components/ComparisonTable/TableCell.mobile.tsx +7 -8
  791. package/src/components/ComparisonTable/TableCell.tsx +7 -10
  792. package/src/components/ComparisonTable/TableRow.tsx +6 -9
  793. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  794. package/src/components/ContentPage/ContentPage.fixture.tsx +1 -1
  795. package/src/components/ContentPage/ContentPage.page.json +50 -6
  796. package/src/components/ContentPage/ContentPageContext.tsx +20 -4
  797. package/src/components/ExchangeRateTile/CurrencyProps.ts +5 -0
  798. package/src/components/ExchangeRateTile/CurrencyTable.tsx +4 -4
  799. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +120 -35
  800. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +1 -1
  801. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +14 -28
  802. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  803. package/src/components/ExchangeRateTile/calculateResult.ts +8 -0
  804. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +21 -0
  805. package/src/components/ExchangeRateTile/formatCurrency.ts +6 -1
  806. package/src/components/ExchangeRateTile/renderButton.tsx +14 -0
  807. package/src/components/ExchangeRateTile/renderInput.tsx +43 -0
  808. package/src/components/Footer/Footer.fixture.mobile.tsx +1 -1
  809. package/src/components/Footer/Footer.fixture.tsx +1 -1
  810. package/src/components/Footer/Footer.tsx +1 -1
  811. package/src/components/Footer/MediaButton.tsx +7 -17
  812. package/src/components/Footer/TextInformation.tsx +2 -2
  813. package/src/components/Gallery/Gallery.fixture.mobile.tsx +2 -24
  814. package/src/components/Gallery/Gallery.fixture.tsx +1 -1
  815. package/src/components/Gallery/Gallery.mobile.tsx +2 -2
  816. package/src/components/Gallery/GalleryCardInner.tsx +2 -2
  817. package/src/components/Gallery/GalleryInner.tsx +10 -20
  818. package/src/components/GracePeriod/GracePeriod.fixture.tsx +1 -1
  819. package/src/components/GroupBlock/BlocksTypeProps.ts +4 -1
  820. package/src/components/GroupBlock/GroupBlock.example.json +8 -7
  821. package/src/components/GroupBlock/GroupBlock.fixture.tsx +19 -3
  822. package/src/components/GroupBlock/GroupBlock.tsx +9 -4
  823. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  824. package/src/components/GroupBlock/GroupBlocksItem.tsx +1 -1
  825. package/src/components/Header/DropdownMenu.tsx +72 -0
  826. package/src/components/Header/Header.fixture.mobile.tsx +1 -1
  827. package/src/components/Header/Header.fixture.tsx +1 -1
  828. package/src/components/Header/HeaderSubMenu.tsx +45 -87
  829. package/src/components/Headline/Headline.fixture.mobile.tsx +45 -4
  830. package/src/components/Headline/Headline.fixture.tsx +31 -7
  831. package/src/components/Insurance/Insurance.example.json +21 -0
  832. package/src/components/Insurance/Insurance.fixture.tsx +11 -6
  833. package/src/components/Insurance/Insurance.tsx +10 -9
  834. package/src/components/Insurance/InsuranceContent.ts +9 -11
  835. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +44 -0
  836. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +52 -0
  837. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +84 -0
  838. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +33 -0
  839. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +147 -0
  840. package/src/components/LikeControl/LikeControl.fixture.tsx +1 -1
  841. package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +2 -2
  842. package/src/components/LinkDocs/LinkDocs.fixture.tsx +2 -2
  843. package/src/components/LinkDocs/LinkDocsListItemBase.tsx +3 -1
  844. package/src/components/LinkList/LinkList.fixture.tsx +1 -1
  845. package/src/components/MiniGallery/MiniGallery.fixture.tsx +1 -1
  846. package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -1
  847. package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +1 -1
  848. package/src/components/Navigation/Navigation.fixture.tsx +1 -1
  849. package/src/components/NavigatorTabs/NavigatorTabs.fixture.tsx +1 -1
  850. package/src/components/OtherProducts/OtherProducts.fixture.tsx +1 -1
  851. package/src/components/PictureText/PictureText.fixture.tsx +1 -1
  852. package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +1 -1
  853. package/src/components/Placeholder/Placeholder.fixture.tsx +1 -1
  854. package/src/components/Placeholder/Placeholder.tsx +6 -2
  855. package/src/components/ProductBlock/ProductBlock.example.json +1 -5
  856. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +2 -2
  857. package/src/components/ProductBlock/ProductBlock.fixture.tsx +35 -5
  858. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +1 -1
  859. package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
  860. package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +1 -1
  861. package/src/components/ProductGallery/ProductGallery.fixture.tsx +2 -2
  862. package/src/components/ProductTile/ProductTile.fixture.tsx +1 -1
  863. package/src/components/ProductTile/ProductTile.tsx +2 -2
  864. package/src/components/PromoTile/PromoTile.fixture.tsx +2 -2
  865. package/src/components/Recommendation/Recommendation.fixture.tsx +18 -13
  866. package/src/components/Recommendation/Recommendation.tsx +7 -15
  867. package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +38 -3
  868. package/src/components/StepsBlock/StepsBlock.fixture.tsx +4 -4
  869. package/src/components/StepsBlock/StepsBlock.tsx +1 -1
  870. package/src/components/TariffsTable/TariffsTable.example.json +1 -5
  871. package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +2 -30
  872. package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -1
  873. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +106 -103
  874. package/src/components/TextBlock/TextBlock.fixture.tsx +65 -87
  875. package/src/components/Tile/Tile.example.json +1 -0
  876. package/src/components/Tile/Tile.fixture.tsx +2 -1
  877. package/src/components/Tile/Tile.tsx +4 -2
  878. package/src/components/Tile/TileContent.ts +5 -0
  879. package/src/content-page-repository/mapJSON.ts +11 -7
  880. package/src/content-page-repository/transformMarkdown.ts +3 -1
  881. package/src/content-page-repository/transformPicture.ts +8 -3
  882. package/src/hooks/useCreditCalculatorData.ts +2 -3
  883. package/src/hooks/useExchangeRates.ts +70 -10
  884. package/src/hooks/useTableArrowScrollControl.ts +3 -3
  885. package/src/icons/DoneIcon.svg +4 -0
  886. package/src/icons/IconName.ts +4 -1
  887. package/src/model/Insurance.ts +6 -0
  888. package/src/react/IntersectionObserverTag.tsx +23 -0
  889. package/src/{setup-fixture.ts → react/setup-fixture.ts} +5 -2
  890. package/src/services/sitemap/isHrefActive.ts +2 -1
  891. package/src/ui-kit/Button/ArrowButton.tsx +1 -1
  892. package/src/ui-kit/Button/Button.fixture.mobile.tsx +1 -1
  893. package/src/ui-kit/Button/Button.fixture.tsx +1 -1
  894. package/src/ui-kit/Button/ButtonSection.tsx +3 -1
  895. package/src/ui-kit/Button/renderArrows.tsx +41 -0
  896. package/src/ui-kit/HeaderItem/HeaderItem.fixture.tsx +1 -1
  897. package/src/ui-kit/Icon/Icon.fixture.tsx +2 -2
  898. package/src/ui-kit/Img/Img.mobile.tsx +1 -0
  899. package/src/ui-kit/Input/Input.tsx +21 -5
  900. package/src/ui-kit/Input/InputProps.ts +3 -0
  901. package/src/ui-kit/InputRange/InputRange.tsx +14 -6
  902. package/src/ui-kit/List/List.fixture.tsx +1 -1
  903. package/src/ui-kit/Logo/Logo.fixture.tsx +1 -1
  904. package/src/ui-kit/SVG.tsx +2 -2
  905. package/src/ui-kit/SearchBar.mobile.tsx +1 -3
  906. package/src/ui-kit/Select/Select.tsx +17 -7
  907. package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +1 -1
  908. package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +9 -4
  909. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +3 -1
  910. package/src/ui-kit/SwipeListControl/utils/getIndexParts.ts +6 -2
  911. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +9 -18
  912. package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +6 -4
  913. package/src/ui-kit/Tabs/Tabs.tsx +4 -3
  914. package/src/ui-kit/TopItem/TopItem.fixture.tsx +1 -1
  915. package/src/ui-kit/TopItem/TopItem.tsx +8 -9
  916. package/src/utils/changeHashOnScroll.ts +3 -1
  917. package/src/utils/getCurrentDate.ts +1 -1
  918. package/src/utils/roundTo.ts +4 -0
  919. package/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  920. package/dist/components/CreditCalculator/CreditCalculator.js +0 -14
  921. package/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
  922. package/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  923. package/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  924. package/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  925. package/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
  926. package/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  927. package/dist/components/CreditCalculator/constants.d.ts +0 -7
  928. package/dist/components/CreditCalculator/constants.js +0 -10
  929. package/dist/components/CreditCalculator/constants.js.map +0 -1
  930. package/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
  931. package/dist/components/CreditCalculator/defaultTabs.js +0 -23
  932. package/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
  933. package/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  934. package/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
  935. package/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  936. package/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
  937. package/dist/components/CreditCalculator/getCreditRate.js +0 -13
  938. package/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
  939. package/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  940. package/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
  941. package/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  942. package/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  943. package/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
  944. package/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  945. package/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  946. package/dist/components/CreditCalculator/getDefaultSum.js +0 -8
  947. package/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
  948. package/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  949. package/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
  950. package/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  951. package/dist/components/CreditCalculator/renderButton.d.ts +0 -1
  952. package/dist/components/CreditCalculator/renderButton.js +0 -15
  953. package/dist/components/CreditCalculator/renderButton.js.map +0 -1
  954. package/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  955. package/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
  956. package/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  957. package/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
  958. package/dist/components/CreditCalculator/renderProposal.js +0 -9
  959. package/dist/components/CreditCalculator/renderProposal.js.map +0 -1
  960. package/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  961. package/dist/components/CreditCalculator/renderTermsButton.js +0 -9
  962. package/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
  963. package/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  964. package/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
  965. package/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  966. package/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  967. package/dist/components/Header/HeaderSubMenuObserver.js +0 -36
  968. package/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
  969. package/dist/setup-fixture.js.map +0 -1
  970. package/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  971. package/lib/components/CreditCalculator/CreditCalculator.js +0 -12
  972. package/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
  973. package/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  974. package/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
  975. package/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  976. package/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  977. package/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
  978. package/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  979. package/lib/components/CreditCalculator/constants.d.ts +0 -7
  980. package/lib/components/CreditCalculator/constants.js +0 -8
  981. package/lib/components/CreditCalculator/constants.js.map +0 -1
  982. package/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
  983. package/lib/components/CreditCalculator/defaultTabs.js +0 -21
  984. package/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
  985. package/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  986. package/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
  987. package/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  988. package/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
  989. package/lib/components/CreditCalculator/getCreditRate.js +0 -10
  990. package/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
  991. package/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  992. package/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
  993. package/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  994. package/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  995. package/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
  996. package/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  997. package/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  998. package/lib/components/CreditCalculator/getDefaultSum.js +0 -5
  999. package/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1000. package/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1001. package/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
  1002. package/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1003. package/lib/components/CreditCalculator/renderButton.d.ts +0 -1
  1004. package/lib/components/CreditCalculator/renderButton.js +0 -12
  1005. package/lib/components/CreditCalculator/renderButton.js.map +0 -1
  1006. package/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1007. package/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
  1008. package/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1009. package/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
  1010. package/lib/components/CreditCalculator/renderProposal.js +0 -6
  1011. package/lib/components/CreditCalculator/renderProposal.js.map +0 -1
  1012. package/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1013. package/lib/components/CreditCalculator/renderTermsButton.js +0 -6
  1014. package/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1015. package/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1016. package/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
  1017. package/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1018. package/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1019. package/lib/components/Header/HeaderSubMenuObserver.js +0 -34
  1020. package/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1021. package/lib/setup-fixture.js.map +0 -1
  1022. package/mobile/dist/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  1023. package/mobile/dist/components/CreditCalculator/CreditCalculator.js +0 -14
  1024. package/mobile/dist/components/CreditCalculator/CreditCalculator.js.map +0 -1
  1025. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  1026. package/mobile/dist/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  1027. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  1028. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js +0 -53
  1029. package/mobile/dist/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  1030. package/mobile/dist/components/CreditCalculator/constants.d.ts +0 -7
  1031. package/mobile/dist/components/CreditCalculator/constants.js +0 -10
  1032. package/mobile/dist/components/CreditCalculator/constants.js.map +0 -1
  1033. package/mobile/dist/components/CreditCalculator/defaultTabs.d.ts +0 -2
  1034. package/mobile/dist/components/CreditCalculator/defaultTabs.js +0 -23
  1035. package/mobile/dist/components/CreditCalculator/defaultTabs.js.map +0 -1
  1036. package/mobile/dist/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  1037. package/mobile/dist/components/CreditCalculator/getCalculatorParams.js +0 -11
  1038. package/mobile/dist/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  1039. package/mobile/dist/components/CreditCalculator/getCreditRate.d.ts +0 -7
  1040. package/mobile/dist/components/CreditCalculator/getCreditRate.js +0 -13
  1041. package/mobile/dist/components/CreditCalculator/getCreditRate.js.map +0 -1
  1042. package/mobile/dist/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  1043. package/mobile/dist/components/CreditCalculator/getCreditTermYears.js +0 -15
  1044. package/mobile/dist/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  1045. package/mobile/dist/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  1046. package/mobile/dist/components/CreditCalculator/getDefaultMonths.js +0 -8
  1047. package/mobile/dist/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  1048. package/mobile/dist/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  1049. package/mobile/dist/components/CreditCalculator/getDefaultSum.js +0 -8
  1050. package/mobile/dist/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1051. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1052. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js +0 -19
  1053. package/mobile/dist/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1054. package/mobile/dist/components/CreditCalculator/renderButton.d.ts +0 -1
  1055. package/mobile/dist/components/CreditCalculator/renderButton.js +0 -15
  1056. package/mobile/dist/components/CreditCalculator/renderButton.js.map +0 -1
  1057. package/mobile/dist/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1058. package/mobile/dist/components/CreditCalculator/renderMonthsInput.js +0 -11
  1059. package/mobile/dist/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1060. package/mobile/dist/components/CreditCalculator/renderProposal.d.ts +0 -1
  1061. package/mobile/dist/components/CreditCalculator/renderProposal.js +0 -9
  1062. package/mobile/dist/components/CreditCalculator/renderProposal.js.map +0 -1
  1063. package/mobile/dist/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1064. package/mobile/dist/components/CreditCalculator/renderTermsButton.js +0 -9
  1065. package/mobile/dist/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1066. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1067. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js +0 -18
  1068. package/mobile/dist/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1069. package/mobile/dist/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1070. package/mobile/dist/components/Header/HeaderSubMenuObserver.js +0 -36
  1071. package/mobile/dist/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1072. package/mobile/dist/setup-fixture.js.map +0 -1
  1073. package/mobile/lib/components/CreditCalculator/CreditCalculator.d.ts +0 -5
  1074. package/mobile/lib/components/CreditCalculator/CreditCalculator.js +0 -12
  1075. package/mobile/lib/components/CreditCalculator/CreditCalculator.js.map +0 -1
  1076. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.d.ts +0 -30
  1077. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js +0 -2
  1078. package/mobile/lib/components/CreditCalculator/CreditCalculatorContent.js.map +0 -1
  1079. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.d.ts +0 -5
  1080. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js +0 -51
  1081. package/mobile/lib/components/CreditCalculator/CreditCalculatorForm.js.map +0 -1
  1082. package/mobile/lib/components/CreditCalculator/constants.d.ts +0 -7
  1083. package/mobile/lib/components/CreditCalculator/constants.js +0 -8
  1084. package/mobile/lib/components/CreditCalculator/constants.js.map +0 -1
  1085. package/mobile/lib/components/CreditCalculator/defaultTabs.d.ts +0 -2
  1086. package/mobile/lib/components/CreditCalculator/defaultTabs.js +0 -21
  1087. package/mobile/lib/components/CreditCalculator/defaultTabs.js.map +0 -1
  1088. package/mobile/lib/components/CreditCalculator/getCalculatorParams.d.ts +0 -7
  1089. package/mobile/lib/components/CreditCalculator/getCalculatorParams.js +0 -8
  1090. package/mobile/lib/components/CreditCalculator/getCalculatorParams.js.map +0 -1
  1091. package/mobile/lib/components/CreditCalculator/getCreditRate.d.ts +0 -7
  1092. package/mobile/lib/components/CreditCalculator/getCreditRate.js +0 -10
  1093. package/mobile/lib/components/CreditCalculator/getCreditRate.js.map +0 -1
  1094. package/mobile/lib/components/CreditCalculator/getCreditTermYears.d.ts +0 -1
  1095. package/mobile/lib/components/CreditCalculator/getCreditTermYears.js +0 -12
  1096. package/mobile/lib/components/CreditCalculator/getCreditTermYears.js.map +0 -1
  1097. package/mobile/lib/components/CreditCalculator/getDefaultMonths.d.ts +0 -2
  1098. package/mobile/lib/components/CreditCalculator/getDefaultMonths.js +0 -5
  1099. package/mobile/lib/components/CreditCalculator/getDefaultMonths.js.map +0 -1
  1100. package/mobile/lib/components/CreditCalculator/getDefaultSum.d.ts +0 -2
  1101. package/mobile/lib/components/CreditCalculator/getDefaultSum.js +0 -5
  1102. package/mobile/lib/components/CreditCalculator/getDefaultSum.js.map +0 -1
  1103. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.d.ts +0 -11
  1104. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js +0 -16
  1105. package/mobile/lib/components/CreditCalculator/getMonthlyPayment.js.map +0 -1
  1106. package/mobile/lib/components/CreditCalculator/renderButton.d.ts +0 -1
  1107. package/mobile/lib/components/CreditCalculator/renderButton.js +0 -12
  1108. package/mobile/lib/components/CreditCalculator/renderButton.js.map +0 -1
  1109. package/mobile/lib/components/CreditCalculator/renderMonthsInput.d.ts +0 -10
  1110. package/mobile/lib/components/CreditCalculator/renderMonthsInput.js +0 -8
  1111. package/mobile/lib/components/CreditCalculator/renderMonthsInput.js.map +0 -1
  1112. package/mobile/lib/components/CreditCalculator/renderProposal.d.ts +0 -1
  1113. package/mobile/lib/components/CreditCalculator/renderProposal.js +0 -6
  1114. package/mobile/lib/components/CreditCalculator/renderProposal.js.map +0 -1
  1115. package/mobile/lib/components/CreditCalculator/renderTermsButton.d.ts +0 -1
  1116. package/mobile/lib/components/CreditCalculator/renderTermsButton.js +0 -6
  1117. package/mobile/lib/components/CreditCalculator/renderTermsButton.js.map +0 -1
  1118. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.d.ts +0 -10
  1119. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js +0 -15
  1120. package/mobile/lib/components/CreditCalculator/renderWantedSumInput.js.map +0 -1
  1121. package/mobile/lib/components/Header/HeaderSubMenuObserver.d.ts +0 -1
  1122. package/mobile/lib/components/Header/HeaderSubMenuObserver.js +0 -34
  1123. package/mobile/lib/components/Header/HeaderSubMenuObserver.js.map +0 -1
  1124. package/mobile/lib/setup-fixture.js.map +0 -1
  1125. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
  1126. package/mobile/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
  1127. package/mobile/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
  1128. package/mobile/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
  1129. package/mobile/src/components/CreditCalculator/constants.ts +0 -8
  1130. package/mobile/src/components/CreditCalculator/defaultTabs.ts +0 -22
  1131. package/mobile/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
  1132. package/mobile/src/components/CreditCalculator/getCreditRate.ts +0 -18
  1133. package/mobile/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
  1134. package/mobile/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
  1135. package/mobile/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
  1136. package/mobile/src/components/CreditCalculator/getDefaultSum.ts +0 -7
  1137. package/mobile/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
  1138. package/mobile/src/components/CreditCalculator/renderButton.tsx +0 -23
  1139. package/mobile/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
  1140. package/mobile/src/components/CreditCalculator/renderProposal.tsx +0 -13
  1141. package/mobile/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
  1142. package/mobile/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
  1143. package/mobile/src/components/Header/HeaderSubMenuObserver.ts +0 -48
  1144. package/mobile/src/components/Insurance/Insuranse.example.json +0 -36
  1145. package/src/components/CreditCalculator/CreditCalculator.example.json +0 -25
  1146. package/src/components/CreditCalculator/CreditCalculator.fixture.tsx +0 -32
  1147. package/src/components/CreditCalculator/CreditCalculator.tsx +0 -31
  1148. package/src/components/CreditCalculator/CreditCalculatorContent.ts +0 -34
  1149. package/src/components/CreditCalculator/CreditCalculatorForm.tsx +0 -92
  1150. package/src/components/CreditCalculator/constants.ts +0 -8
  1151. package/src/components/CreditCalculator/defaultTabs.ts +0 -22
  1152. package/src/components/CreditCalculator/getCalculatorParams.ts +0 -16
  1153. package/src/components/CreditCalculator/getCreditRate.ts +0 -18
  1154. package/src/components/CreditCalculator/getCreditTermYears.spec.ts +0 -10
  1155. package/src/components/CreditCalculator/getCreditTermYears.ts +0 -15
  1156. package/src/components/CreditCalculator/getDefaultMonths.ts +0 -7
  1157. package/src/components/CreditCalculator/getDefaultSum.ts +0 -7
  1158. package/src/components/CreditCalculator/getMonthlyPayment.ts +0 -32
  1159. package/src/components/CreditCalculator/renderButton.tsx +0 -23
  1160. package/src/components/CreditCalculator/renderMonthsInput.tsx +0 -29
  1161. package/src/components/CreditCalculator/renderProposal.tsx +0 -13
  1162. package/src/components/CreditCalculator/renderTermsButton.tsx +0 -16
  1163. package/src/components/CreditCalculator/renderWantedSumInput.tsx +0 -36
  1164. package/src/components/Header/HeaderSubMenuObserver.ts +0 -48
  1165. package/src/components/Insurance/Insuranse.example.json +0 -36
@@ -4,7 +4,6 @@ export declare const Blocks: {
4
4
  Bonus: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Bonus/Bonus").BonusProps, any>, context?: any) => any;
5
5
  ComparisonTable: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ComparisonTable/ComparisonTable").ComparisonTableProps, any>, context?: any) => any;
6
6
  Calculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Calculator/Calculator").CalculatorProps, any>, context?: any) => any;
7
- CreditCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./CreditCalculator/CreditCalculator").CreditCalculatorProps, any>, context?: any) => any;
8
7
  ExchangeRateTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./ExchangeRateTile/ExchangeRateTile").ExchangeRateTileProps, any>, context?: any) => any;
9
8
  Footer: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Footer/Footer").FooterProps, any>, context?: any) => any;
10
9
  Gallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Gallery/GalleryProps").GalleryProps, any>, context?: any) => any;
@@ -12,6 +11,7 @@ export declare const Blocks: {
12
11
  Header: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Header/Header").HeaderProps, any>, context?: any) => any;
13
12
  Headline: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Headline/Headline").HeadlineProps, any>, context?: any) => any;
14
13
  Insurance: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Insurance/Insurance").InsuranceProps, any>, context?: any) => any;
14
+ InsuranceAmountBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./InsuranceAmountBlock/InsuranceAmountBlock").InsuranceAmountBlockProps, any>, context?: any) => any;
15
15
  LinkDocs: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./LinkDocs/LinkDocs").LinkDocsProps, any>, context?: any) => any;
16
16
  MiniGallery: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MiniGallery/MiniGallery").MiniGalleryProps, any>, context?: any) => any;
17
17
  MobileAppTile: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./MobileAppTile/MobileAppTile").MobileAppTileProps, any>, context?: any) => any;
@@ -5,7 +5,6 @@ const BenefitsBlock_1 = require("./BenefitsBlock/BenefitsBlock");
5
5
  const Bonus_1 = require("./Bonus/Bonus");
6
6
  const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
7
7
  const Calculator_1 = require("./Calculator/Calculator");
8
- const CreditCalculator_1 = require("./CreditCalculator/CreditCalculator");
9
8
  const ExchangeRateTile_1 = require("./ExchangeRateTile/ExchangeRateTile");
10
9
  const Footer_1 = require("./Footer/Footer");
11
10
  const Gallery_1 = require("./Gallery/Gallery");
@@ -13,6 +12,7 @@ const GracePeriod_1 = require("./GracePeriod/GracePeriod");
13
12
  const Header_1 = require("./Header/Header");
14
13
  const Headline_1 = require("./Headline/Headline");
15
14
  const Insurance_1 = require("./Insurance/Insurance");
15
+ const InsuranceAmountBlock_1 = require("./InsuranceAmountBlock/InsuranceAmountBlock");
16
16
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
17
17
  const MiniGallery_1 = require("./MiniGallery/MiniGallery");
18
18
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
@@ -38,7 +38,6 @@ exports.Blocks = {
38
38
  Bonus: Bonus_1.Bonus,
39
39
  ComparisonTable: ComparisonTable_1.ComparisonTable,
40
40
  Calculator: Calculator_1.Calculator,
41
- CreditCalculator: CreditCalculator_1.CreditCalculator,
42
41
  ExchangeRateTile: ExchangeRateTile_1.ExchangeRateTile,
43
42
  Footer: Footer_1.Footer,
44
43
  Gallery: Gallery_1.Gallery,
@@ -46,6 +45,7 @@ exports.Blocks = {
46
45
  Header: Header_1.Header,
47
46
  Headline: Headline_1.Headline,
48
47
  Insurance: Insurance_1.Insurance,
48
+ InsuranceAmountBlock: InsuranceAmountBlock_1.InsuranceAmountBlock,
49
49
  LinkDocs: LinkDocs_1.LinkDocs,
50
50
  MiniGallery: MiniGallery_1.MiniGallery,
51
51
  MobileAppTile: MobileAppTile_1.MobileAppTile,
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,yCAAsC;AACtC,uEAAoE;AACpE,wDAAqD;AACrD,0EAAuE;AACvE,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,qDAAkD;AAClD,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,wDAAqD;AACrD,iEAA8D;AAC9D,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AACnC,wDAAqD;AACrD,gFAA6E;AAEhE,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,SAAS,EAAT,qBAAS;IACT,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,WAAW,EAAX,yBAAW;IACX,UAAU,EAAV,uBAAU;IACV,kBAAkB,EAAlB,uCAAkB;CACnB,CAAC"}
1
+ {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,iEAA8D;AAC9D,yCAAsC;AACtC,uEAAoE;AACpE,wDAAqD;AACrD,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,2DAAwD;AACxD,4CAAyC;AACzC,kDAA+C;AAC/C,qDAAkD;AAClD,sFAAmF;AACnF,kDAA+C;AAC/C,2DAAwD;AACxD,iEAA8D;AAC9D,wDAAqD;AACrD,iEAA8D;AAC9D,iEAA8D;AAC9D,2DAAwD;AACxD,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,2DAAwD;AACxD,qDAAkD;AAClD,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,sCAAmC;AACnC,wDAAqD;AACrD,gFAA6E;AAEhE,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,KAAK,EAAL,aAAK;IACL,eAAe,EAAf,iCAAe;IACf,UAAU,EAAV,uBAAU;IACV,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,WAAW,EAAX,yBAAW;IACX,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,SAAS,EAAT,qBAAS;IACT,oBAAoB,EAApB,2CAAoB;IACpB,QAAQ,EAAR,mBAAQ;IACR,WAAW,EAAX,yBAAW;IACX,aAAa,EAAb,6BAAa;IACb,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,WAAW,EAAX,yBAAW;IACX,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAJ,WAAI;IACJ,UAAU,EAAV,uBAAU;IACV,WAAW,EAAX,yBAAW;IACX,UAAU,EAAV,uBAAU;IACV,kBAAkB,EAAlB,uCAAkB;CACnB,CAAC"}
@@ -6,9 +6,9 @@ const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
7
  const getElementsColsValue_1 = require("./getElementsColsValue");
8
8
  exports.BonusBenefitsBlock = (0, uni_jsx_1.JSX)(({ className = '', title, subtitle, bonusBenefits, anchor = null }) => {
9
- return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-50 flex flex-col ${className}`, id: anchor, children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "text-center mb-[10px]", title: title })) : null, subtitle ? (0, jsx_runtime_1.jsx)("span", { className: "text-md font-normal text-center", children: subtitle }) : null, bonusBenefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `grid gap-1 ${(0, getElementsColsValue_1.getElementsColsValue)(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] }));
9
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans text-primary-text bg-white p-50 flex flex-col text-center ${className}`, id: anchor, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "mb-[10px]", title: title }) : null, subtitle ? (0, jsx_runtime_1.jsx)("span", { className: "text-md font-normal", children: subtitle }) : null, bonusBenefits?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `grid gap-1 ${(0, getElementsColsValue_1.getElementsColsValue)(className)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] }));
10
10
  });
11
11
  const renderBonusBenefit = (bonusBenefit, i) => {
12
- return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[180px] w-[160px] min-w-[160px] min-h-[160px]", image: bonusBenefit.icon, width: "160", height: "180" })) : null, (0, jsx_runtime_1.jsx)("div", { children: bonusBenefit?.label ? ((0, jsx_runtime_1.jsx)("span", { className: "title-2xs text-center m-0", children: bonusBenefit.label })) : null })] }, String(i)));
12
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[180px] w-[160px] min-w-[160px] min-h-[160px]", image: bonusBenefit.icon, width: "160", height: "180" })) : null, (0, jsx_runtime_1.jsx)("div", { children: bonusBenefit?.label ? (0, jsx_runtime_1.jsx)("span", { className: "title-2xs m-0", children: bonusBenefit.label }) : null })] }, String(i)));
13
13
  };
14
14
  //# sourceMappingURL=BonusBenefitsBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BonusBenefitsBlock.js","sourceRoot":"","sources":["../../../src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,8CAA2C;AAE3C,iEAA8D;AAIjD,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK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AK,GAAQ,CAAC,CAAC,CAAC,IAAI,GACrF,KAXE,MAAM,CAAC,CAAC,CAAC,CAYb,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -2,10 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.Calculator = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const ArrowButton_1 = require("../../ui-kit/Button/ArrowButton");
6
5
  const Img_1 = require("../../ui-kit/Img/Img");
7
6
  const renderCalculatorBlock_1 = require("./renderCalculatorBlock");
8
- const arrowBtnStyle = 'absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full';
7
+ const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
9
8
  exports.Calculator = (0, uni_jsx_1.JSX)(({ className = '', context, calcTabs = [], anchor = null }) => {
10
9
  const tabsNav = calcTabs.map((_) => _.nav || {});
11
10
  const blockCalcTabs = calcTabs.map(({ calculatorBlock }) => calculatorBlock || {});
@@ -18,7 +17,12 @@ exports.Calculator = (0, uni_jsx_1.JSX)(({ className = '', context, calcTabs = [
18
17
  const showPrevButton = tabsShift > 0;
19
18
  return ((0, jsx_runtime_1.jsxs)("section", { id: anchor, className: `box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [tabsNav.length > 1
20
19
  ? renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex })
21
- : null, showPrevButton ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { className: `${arrowBtnStyle} left-3 top-3`, onClick: handlePrevClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })) : null, showNextButton ? ((0, jsx_runtime_1.jsx)(ArrowButton_1.ArrowButton, { className: `${arrowBtnStyle} right-3 top-3 rotate-180`, onClick: handleNextClick, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })) : null] }), (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: blockCalcTabs?.length
20
+ : null, (0, renderArrows_1.renderArrows)({
21
+ handler: [handlePrevClick, handleNextClick],
22
+ isShown: [showPrevButton, showNextButton],
23
+ btnClass: ['left-3', 'right-3'],
24
+ className: 'top-8',
25
+ })] }), (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: blockCalcTabs?.length
22
26
  ? blockCalcTabs.map((0, renderCalculatorBlock_1.renderCalculatorBlock)({ context, className }))
23
27
  : null })] }));
24
28
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,iEAA8D;AAC9D,8CAA2C;AAG3C,mEAAgE;AAkBhE,MAAM,aAAa,GACjB,iGAAiG,CAAC;AAEvF,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,GAAG,EAAE,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,IAAK,EAAoB,CAAC,CAAC;IACpE,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAChC,CAAC,EAAE,eAAe,EAAE,EAAE,EAAE,CAAC,eAAe,IAAK,EAAyB,CACvE,CAAC;IACF,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,C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,CACL,4CACE,gCACE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,SAAS,GAAG,GAAG,KAAK,EAAE,EACzD,SAAS,EAAC,qFAAqF,YAE/F,gCAAK,SAAS,EAAC,yCAAyC,YACrD,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACtB,eAAe,CAAC;wBACd,GAAG;wBACH,CAAC;wBACD,gBAAgB;wBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;qBACtC,CAAC,CACH,GACG,GACF,EACN,gCAAK,SAAS,EAAC,4BAA4B,GAAG,IAC1C,CACP,CAAC;AACJ,CAAC"}
@@ -2,8 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.getCalculatorParams = void 0;
3
3
  const getCalculatorParams = (params) => {
4
4
  const { tableRows, isAnnuity = false } = params;
5
- if (!tableRows)
5
+ if (!tableRows) {
6
6
  return {};
7
+ }
7
8
  const calculatorParams = tableRows.find((row) => row.isAnnuity === isAnnuity);
8
9
  return calculatorParams || {};
9
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCalculatorParams.ts"],"names":[],"mappings":";;AAOO,MAAM,mBAAmB,GAAG,CAAC,MAAiC,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;IAE9E,OAAO,gBAAgB,IAAI,EAAE,CAAC;AAChC,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B"}
1
+ {"version":3,"file":"getCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCalculatorParams.ts"],"names":[],"mappings":";;AAOO,MAAM,mBAAmB,GAAG,CAAC,MAAiC,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;IAEhD,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,EAAE,CAAC;KACX;IAED,MAAM,gBAAgB,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC;IAE9E,OAAO,gBAAgB,IAAI,EAAE,CAAC;AAChC,CAAC,CAAC;AAVW,QAAA,mBAAmB,uBAU9B"}
@@ -3,8 +3,9 @@ exports.getCreditRate = void 0;
3
3
  const DEFAULT_RATE = 10.2;
4
4
  const getCreditRate = (params) => {
5
5
  const { calculatorParams, isInsurance } = params;
6
- if (!calculatorParams)
6
+ if (!calculatorParams) {
7
7
  return DEFAULT_RATE;
8
+ }
8
9
  return isInsurance
9
10
  ? calculatorParams?.rateWithInsurance || DEFAULT_RATE
10
11
  : calculatorParams?.rateWithoutInsurance || DEFAULT_RATE;
@@ -1 +1 @@
1
- {"version":3,"file":"getCreditRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCreditRate.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAG,IAAI,CAAC;AAOnB,MAAM,aAAa,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC3D,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,gBAAgB;QAAE,OAAO,YAAY,CAAC;IAE3C,OAAO,WAAW;QAChB,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,YAAY;QACrD,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,IAAI,YAAY,CAAC;AAC7D,CAAC,CAAC;AARW,QAAA,aAAa,iBAQxB"}
1
+ {"version":3,"file":"getCreditRate.js","sourceRoot":"","sources":["../../../src/components/Calculator/getCreditRate.ts"],"names":[],"mappings":";;AAEA,MAAM,YAAY,GAAG,IAAI,CAAC;AAOnB,MAAM,aAAa,GAAG,CAAC,MAA2B,EAAE,EAAE;IAC3D,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,CAAC,gBAAgB,EAAE;QACrB,OAAO,YAAY,CAAC;KACrB;IAED,OAAO,WAAW;QAChB,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,IAAI,YAAY;QACrD,CAAC,CAAC,gBAAgB,EAAE,oBAAoB,IAAI,YAAY,CAAC;AAC7D,CAAC,CAAC;AAVW,QAAA,aAAa,iBAUxB"}
@@ -4,8 +4,9 @@ const clamp_1 = require("../../utils/clamp");
4
4
  const constants_1 = require("./constants");
5
5
  const getMonthlyPayment = (params) => {
6
6
  const { calculatorParams, paymentType, rate, sum, months } = params;
7
- if (!calculatorParams)
7
+ if (!calculatorParams) {
8
8
  return 0;
9
+ }
9
10
  const finalSum = (0, clamp_1.clamp)(sum, calculatorParams.minSum || constants_1.DEFAULT_MIN_SUM, calculatorParams.maxSum || constants_1.DEFAULT_MAX_SUM);
10
11
  if (paymentType === 'annuity') {
11
12
  const annuityCoef = Number(rate) / (constants_1.MONTHS_IN_YEAR * 100);
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/getMonthlyPayment.ts"],"names":[],"mappings":";;AAAA,6CAA0C;AAC1C,2CAA+E;AAaxE,MAAM,iBAAiB,GAAG,CAAC,MAA+B,EAAE,EAAE;IACnE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAEpE,IAAI,CAAC,gBAAgB;QAAE,OAAO,CAAC,CAAC;IAEhC,MAAM,QAAQ,GAAG,IAAA,aAAK,EACpB,GAAG,EACH,gBAAgB,CAAC,MAAM,IAAI,2BAA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M,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACzF;SAAM;QACL,OAAO,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;KAC3D;AACH,CAAC,CAAC;AAnBW,QAAA,iBAAiB,qBAmB5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";;;AAGA,iEAAmF;AAQ5E,MAAM,qBAAqB,GAChC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,oCAEE,SAAS,EAAE,gDAAgD,SAAS,EAAE,EACtE,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,uBAAuB,YACpC,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,aAAa,EAAE,SAAS,EAAC,sBAAsB,GAAG,GACnF,IAND,MAAM,CAAC,CAAC,CAAC,CAON,CACX,CAAC;AACJ,CAAC,CAAC;AAnBS,QAAA,qBAAqB,yBAmB9B"}
1
+ {"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";;;AAEA,iEAAmF;AAE5E,MAAM,qBAAqB,GAChC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,aAAiC,EAAE,CAAS,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,aAAa,EAAE,QAAQ,CAAC;IACrC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,2CAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,2CAAoB,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,CACL,oCAEE,SAAS,EAAE,gDAAgD,SAAS,EAAE,EACtE,IAAI,EAAC,UAAU,YAEf,gCAAK,SAAS,EAAC,uBAAuB,YACpC,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,aAAa,EAAE,SAAS,EAAC,sBAAsB,GAAG,GACnF,IAND,MAAM,CAAC,CAAC,CAAC,CAON,CACX,CAAC;AACJ,CAAC,CAAC;AAnBS,QAAA,qBAAqB,yBAmB9B"}
@@ -2,7 +2,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.HeaderCell = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Img_1 = require("../../ui-kit/Img/Img");
6
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
7
- exports.HeaderCell = (0, uni_jsx_1.JSX)(({ icon, image, title, subtitle, isFillGradient }) => ((0, jsx_runtime_1.jsxs)("div", { role: "columnheader", scope: "col", children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })) : null, image?.src && ((0, jsx_runtime_1.jsx)("div", { className: "mb-3.5", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) })), title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", className: `${isFillGradient ? 'text-white' : ''}`, title: title })) : null, subtitle ? ((0, jsx_runtime_1.jsx)("div", { className: `text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`, children: subtitle })) : null] })));
6
+ const Img_1 = require("../../ui-kit/Img/Img");
7
+ const headingStyle = (isFillGradient = false) => (isFillGradient ? 'text-white' : '');
8
+ const subtitleStyle = (isFillGradient = false) => `text-m-sm mb-3.5 ${isFillGradient ? 'text-white' : 'text-secondary-text/80'}`;
9
+ exports.HeaderCell = (0, uni_jsx_1.JSX)(({ icon, image, title, subtitle, isFillGradient }) => ((0, jsx_runtime_1.jsxs)("div", { role: "columnheader", scope: "col", children: [icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })) : null, image?.src && ((0, jsx_runtime_1.jsx)("div", { className: "mb-3.5", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: image }) })), title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", className: headingStyle(isFillGradient), title: title })) : null, subtitle ? (0, jsx_runtime_1.jsx)("div", { className: subtitleStyle(isFillGradient), children: subtitle }) : null] })));
8
10
  //# sourceMappingURL=HeaderCell.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderCell.mobile.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/HeaderCell.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAC3C,0DAAuD;AAW1C,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CACpD,iCAAK,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,KAAK,aACjC,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IACF,SAAS,EAAC,kDAAkD,EAC5D,KAAK,EAAE,IAAI,EACX,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,IAAI,CACb,gCAAK,SAAS,EAAC,Q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C,IAAI,GACX,CACH,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,GAAG,IAAI,CACb,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,SAAG,IAAC,KAAK,EAAE,KAAK,GAAI,GACjB,CACP,EACA,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAE,YAAY,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,KAAK,GAAI,CACpF,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,aAAa,CAAC,cAAc,CAAC,YAAG,QAAQ,GAAO,CAAC,CAAC,CAAC,IAAI,IAC9E,CACP,CACF,CAAC"}
@@ -8,5 +8,7 @@ exports.TableCell = (0, uni_jsx_1.JSX)(({ cell, isFirstRow, isLastRow, isFillGra
8
8
  const cellClasses = `mx-7 h-full ${constants_1.DIVIDER_CLASSES} ${isFillGradient && isFirstRow ? 'border-t' : ''} ${!isLastRow ? 'border-solid' : 'border-b-0'}`;
9
9
  return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: (0, jsx_runtime_1.jsx)("div", { className: cellClasses, children: cell.map((item, i) => renderCellInner(item, i, isFillGradient)) }) }));
10
10
  });
11
- const renderCellInner = ({ label, description }, i, isFillGradient) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-7 pt-6 last:pb-7", children: [label ? ((0, jsx_runtime_1.jsx)("h4", { className: `text-xl font-medium m-0 ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`, children: description })) : null] }, String(i)));
11
+ const labelStyle = (isFillGradient = false) => `text-xl font-medium m-0 ${isFillGradient ? 'text-white' : ''}`;
12
+ const descriptionStyle = (isFillGradient = false) => `text-sm opacity-80 ${isFillGradient ? 'text-white' : 'text-secondary-text'}`;
13
+ const renderCellInner = ({ label, description }, i, isFillGradient) => ((0, jsx_runtime_1.jsxs)("div", { className: "first:pt-7 pt-6 last:pb-7", children: [label ? (0, jsx_runtime_1.jsx)("h4", { className: labelStyle(isFillGradient), children: label }) : null, description ? (0, jsx_runtime_1.jsx)("div", { className: descriptionStyle(isFillGradient), children: description }) : null] }, String(i)));
12
14
  //# sourceMappingURL=TableCell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAwE;AAU3D,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,EAAE;IAC/F,MAAM,kBAAkB,GAAG,iCAAiC,0BAAc,IACxE,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,yBAC9B,IAAI,cAAc,CAAC,CAAC,CAAC,oBAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAErC,MAAM,WAAW,GAAG,eAAe,2BAAe,IAChD,cAAc,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAC9C,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;IAEjD,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,gCAAK,SAAS,EAAE,WAAW,YACxB,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,GAC5D,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAA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AE,CAAC,eAAe,CAAC,IAAI,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC,GAC5D,GACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,cAAc,GAAG,KAAK,EAAU,EAAE,CACpD,2BAA2B,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AAClE,MAAM,gBAAgB,GAAG,CAAC,cAAc,GAAG,KAAK,EAAU,EAAE,CAC1D,sBAAsB,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC;AAEhF,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAAS,EAAE,cAAuB,EAAE,EAAE,CAAC,CAChG,iCAAqB,SAAS,EAAC,2BAA2B,aACvD,KAAK,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,YAAG,KAAK,GAAM,CAAC,CAAC,CAAC,IAAI,EACtE,WAAW,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,gBAAgB,CAAC,cAAc,CAAC,YAAG,WAAW,GAAO,CAAC,CAAC,CAAC,IAAI,KAFnF,MAAM,CAAC,CAAC,CAAC,CAGb,CACP,CAAC"}
@@ -8,5 +8,7 @@ exports.TableCell = (0, uni_jsx_1.JSX)(({ cell, rowHeader, isFillGradient = fals
8
8
  const cellClasses = `h-full ${constants_1.DIVIDER_CLASSES}`;
9
9
  return ((0, jsx_runtime_1.jsx)("div", { className: cellWrapperClasses, role: "cell", children: (0, jsx_runtime_1.jsx)("div", { className: cellClasses, children: cell.map(renderCellInner(isFillGradient, rowHeader)) }) }));
10
10
  });
11
- const renderCellInner = (isFillGradient, rowHeader) => ({ label, description }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between text-m-sm py-3.5", children: [(0, jsx_runtime_1.jsx)("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), (0, jsx_runtime_1.jsxs)("div", { className: "basis-1/2", children: [label ? ((0, jsx_runtime_1.jsx)("div", { className: `text-right ${isFillGradient ? 'text-white' : ''}`, children: label })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: description })) : null] })] }, String(i)));
11
+ const labelStyle = (isFillGradient = false) => `text-right ${isFillGradient ? 'text-white' : ''}`;
12
+ const descriptionStyle = (isFillGradient = false) => `text-right ${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`;
13
+ const renderCellInner = (isFillGradient, rowHeader) => ({ label, description }, i) => ((0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between text-m-sm py-3.5", children: [(0, jsx_runtime_1.jsx)("div", { className: `${isFillGradient ? 'text-white/80' : 'text-secondary-text'}`, children: rowHeader }), (0, jsx_runtime_1.jsxs)("div", { className: "basis-1/2", children: [label ? (0, jsx_runtime_1.jsx)("div", { className: labelStyle(isFillGradient), children: label }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: descriptionStyle(isFillGradient), children: description })) : null] })] }, String(i)));
12
14
  //# sourceMappingURL=TableCell.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.mobile.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAA8C;AAUjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;IAEtD,MAAM,WAAW,GAAG,UAAU,2BAAe,EAAE,CAAC;IAEhD,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,gCAAK,SAAS,EAAE,WAAW,YAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,GAAO,GACrF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,eAAe,GACnB,CAAC,cAAuB,EAAE,SAAkB,EAAE,EAAE,CAChD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAAS,EAAE,EAAE,CAC9C,CACE,iCAAqB,SAAS,EAAC,uCAAuC,aACpE,gCAAK,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAC1E,SAAS,GACN,EACN,iCAAK,SAAS,EAAC,WAAW,aACvB,KAAK,CAAC,CAAC,CAAC,CACP,gCAAK,SAAS,EAAE,cAAc,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,YAAG,KAAK,GAAO,CAClF,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCACE,SAAS,EAAE,cAAc,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAElF,WAAW,GACR,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,KAfE,MAAM,CAAC,CAAC,CAAC,CAgBb,CACP,CAAC"}
1
+ {"version":3,"file":"TableCell.mobile.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableCell.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAA8C;AAUjC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,GAAG,KAAK,EAAE,EAAE,EAAE;IAC3F,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;IAEtD,MAAM,WAAW,GAAG,UAAU,2BAAe,EAAE,CAAC;IAEhD,OAAO,CACL,gCAAK,SAAS,EAAE,kBAAkB,EAAE,IAAI,EAAC,MAAM,YAC7C,gCAAK,SAAS,EAAE,WAAW,YAAG,IAAI,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,GAAO,GACrF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,CAAC,cAAc,GAAG,KAAK,EAAU,EAAE,CACpD,cAAc,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACrD,MAAM,gBAAgB,GAAG,CAAC,cAAc,GAAG,KAAK,EAAU,EAAE,CAC1D,cAAc,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC;AAE3E,MAAM,eAAe,GACnB,CAAC,cAAuB,EAAE,SAAkB,EAAE,EAAE,CAChD,CAAC,EAAE,KAAK,EAAE,WAAW,EAAY,EAAE,CAAS,EAAE,EAAE,CAC9C,CACE,iCAAqB,SAAS,EAAC,uCAAuC,aACpE,gCAAK,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,qBAAqB,EAAE,YAC1E,SAAS,GACN,EACN,iCAAK,SAAS,EAAC,WAAW,aACvB,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,UAAU,CAAC,cAAc,CAAC,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EACxE,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAE,gBAAgB,CAAC,cAAc,CAAC,YAAG,WAAW,GAAO,CACtE,CAAC,CAAC,CAAC,IAAI,IACJ,KATE,MAAM,CAAC,CAAC,CAAC,CAUb,CACP,CAAC"}
@@ -6,5 +6,6 @@ const constants_1 = require("./constants");
6
6
  const TableCarouselContainer_1 = require("./TableCarouselContainer");
7
7
  const TableCell_1 = require("./TableCell");
8
8
  const TableRowContainer_1 = require("./TableRowContainer");
9
- exports.TableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [header?.title ? ((0, jsx_runtime_1.jsx)("div", { className: `text-sm py-7 ${constants_1.DIVIDER_CLASSES} ${constants_1.FIRST_CELL_CLASSES} ${!isLastRow ? 'border-solid' : 'border-b-0'}`, children: header.title })) : null, data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, children: data.map((cell, i) => ((0, jsx_runtime_1.jsx)(TableCell_1.TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
9
+ const titleStyle = (isLastRow = false) => `text-sm py-7 ${constants_1.DIVIDER_CLASSES} ${constants_1.FIRST_CELL_CLASSES} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
10
+ exports.TableRow = (0, uni_jsx_1.JSX)(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => ((0, jsx_runtime_1.jsxs)(TableRowContainer_1.TableRowContainer, { children: [header?.title ? (0, jsx_runtime_1.jsx)("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? ((0, jsx_runtime_1.jsx)(TableCarouselContainer_1.TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: constants_1.COLUMN_WIDTH, children: data.map((cell, i) => ((0, jsx_runtime_1.jsx)(TableCell_1.TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
10
11
  //# sourceMappingURL=TableRow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableRow.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/TableRow.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,2CAAgF;AAChF,qEAAkE;AAClE,2CAAwC;AACxC,2DAAwD;AAW3C,QAAA,QAA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AE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,oBAAoB,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAC3F,wBAAC,qCAAiB,eACf,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,UAAU,CAAC,SAAS,CAAC,YAAG,MAAM,CAAC,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,EAClF,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,+CAAsB,IAAC,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAY,YAChF,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACrB,uBAAC,qBAAS,IAER,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,oBAAoB,IAAI,CAAC,KAAK,CAAC,IAJ1C,MAAM,CAAC,CAAC,CAAC,CAKd,CACH,CAAC,GACqB,CAC1B,CAAC,CAAC,CAAC,IAAI,IACU,CACrB,CACF,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { VNode } from '../../model/VNode';
2
+ import type { FuncReturnVoid } from '../../types';
1
3
  export interface Router {
2
4
  pathname: string;
3
5
  query: Record<string, string | string[] | undefined>;
@@ -16,17 +18,26 @@ export interface Search {
16
18
  term: string;
17
19
  setTerm: (t: string) => void;
18
20
  }
19
- export declare type AsyncDataHook = <Data, Error = any>(key: string, fetcher: (key: string) => Promise<Data>) => {
21
+ export declare type AsyncDataHook = <Data, Err = any>(key: string, fetcher: (fetcherKey: string) => Promise<Data>) => {
20
22
  data?: Data;
21
- error?: Error;
23
+ error?: Err;
22
24
  };
23
25
  export declare type GeolocationHook = (defaultLocation: string) => [string, () => void];
26
+ export declare type SetStateAction<S> = S | ((prevState: S) => S);
27
+ export declare type SetStateHook = <State>(initialState: State | (() => State)) => [State, FuncReturnVoid<SetStateAction<State>>];
28
+ export interface IntersectionObserverTagProps {
29
+ Tag: string;
30
+ children?: VNode;
31
+ observerCallback: IntersectionObserverCallback;
32
+ observerOptions?: IntersectionObserverInit;
33
+ }
24
34
  export interface ContentPageContext {
25
35
  useRouter: () => Router;
26
- useState: <State>(initialState: State) => [State, (_: State) => void];
36
+ useState: SetStateHook;
27
37
  useAsyncData: AsyncDataHook;
28
38
  useGeolocation: GeolocationHook;
29
39
  useLikeService: () => LikeService;
30
40
  useSearch: () => Search;
31
41
  handlerDecorator?: HandlerDecorator;
42
+ IntersectionObserverTag: (props: IntersectionObserverTagProps & Record<string, any>) => VNode;
32
43
  }
@@ -0,0 +1,5 @@
1
+ export declare enum Currency {
2
+ RUB = "RUB",
3
+ EUR = "EUR",
4
+ USD = "USD"
5
+ }
@@ -0,0 +1,9 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.Currency = void 0;
3
+ var Currency;
4
+ (function (Currency) {
5
+ Currency["RUB"] = "RUB";
6
+ Currency["EUR"] = "EUR";
7
+ Currency["USD"] = "USD";
8
+ })(Currency = exports.Currency || (exports.Currency = {}));
9
+ //# sourceMappingURL=CurrencyProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyProps.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/CurrencyProps.ts"],"names":[],"mappings":";;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACb,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB"}
@@ -1,4 +1,4 @@
1
- import type { ExchangeCurrencyItem } from './ExchangeRateTileContent';
1
+ import type { ExchangeCurrencyItem } from './ExchangeCurrencyCalculator';
2
2
  interface CurrencyTableProps {
3
3
  className?: string;
4
4
  exchangeCurrencyItems: ExchangeCurrencyItem[];
@@ -13,7 +13,7 @@ exports.CurrencyTable = (0, uni_jsx_1.JSX)(({ className, exchangeCurrencyItems }
13
13
  return ((0, jsx_runtime_1.jsxs)("table", { className: `h-fit w-fit ${className}`, children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [(0, jsx_runtime_1.jsx)("th", { className: TABLE_HEAD_STYLE, children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), (0, jsx_runtime_1.jsx)("th", { className: `${TABLE_HEAD_STYLE} pl-11`, children: "\u041A\u0443\u043F\u0438\u0442\u044C" }), (0, jsx_runtime_1.jsx)("th", { className: `${TABLE_HEAD_STYLE} pl-11`, children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" })] }) }), (0, jsx_runtime_1.jsx)("tbody", { children: exchangeCurrencyItems.map((item) => renderCurrencyRow(item)) })] }));
14
14
  });
15
15
  const renderCurrencyRow = (exchangeCurrencyItem) => {
16
- const code = exchangeCurrencyItem?.currency?.currency;
17
- return ((0, jsx_runtime_1.jsxs)("tr", { className: "pb-1", children: [(0, jsx_runtime_1.jsx)("td", { className: "pt-4", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [code ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, (0, jsx_runtime_1.jsx)("span", { className: "text-m-title-md ml-2", children: code })] }) }), (0, jsx_runtime_1.jsx)("td", { className: "pt-4 pl-11 m-title-md font-light", children: (0, formatCurrency_1.formatCurrency)(exchangeCurrencyItem.buyExchangeRate) }), (0, jsx_runtime_1.jsx)("td", { className: "pt-4 pl-11 m-title-md font-light", children: (0, formatCurrency_1.formatCurrency)(exchangeCurrencyItem.saleExchangeRate) })] }, code));
16
+ const code = exchangeCurrencyItem?.code;
17
+ return ((0, jsx_runtime_1.jsxs)("tr", { className: "pb-1", children: [(0, jsx_runtime_1.jsx)("td", { className: "pt-4", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex items-center", children: [code ? (0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: CURRENCY_ICONS_MAP[code] }, width: "24", height: "24" }) : null, (0, jsx_runtime_1.jsx)("span", { className: "text-m-title-md ml-2", children: code })] }) }), (0, jsx_runtime_1.jsx)("td", { className: "pt-4 pl-11 m-title-md font-light", children: (0, formatCurrency_1.formatCurrency)(exchangeCurrencyItem.buy) }), (0, jsx_runtime_1.jsx)("td", { className: "pt-4 pl-11 m-title-md font-light", children: (0, formatCurrency_1.formatCurrency)(exchangeCurrencyItem.sell) })] }, code));
18
18
  };
19
19
  //# sourceMappingURL=CurrencyTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyTable.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/CurrencyTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAE3C,qDAAkD;AAElD,MAAM,gBAAgB,GAAG,8DAA8D,CAAC;AAExF,MAAM,kBAAkB,GAAG;IACzB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,UAAU;CAChB,CAAC;AAOW,QAAA,aAAa,GAAG,IAAA,aAAG,EAAqB,CAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,EAAE,EAAE;IAC5F,OAAO,CACL,mCAAO,SAAS,EAAE,eAAe,SAAS,EAAE,aAC1C,4CACE,2CACE,+BAAI,SAAS,EAAE,gBAAgB,qDAAa,EAC5C,+BAAI,SAAS,EAAE,GAAG,gBAAgB,QAAQ,qDAAa,EACvD,+BAAI,SAAS,EAAE,GAAG,gBAAgB,QAAQ,2DAAc,IACrD,GACC,EACR,4CAAQ,qBAAqB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,GAAS,IACvE,CACT,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,oBAA0C,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,oBAAoB,EAAE,QAAQ,EAAE,QAAQ,CAAC;IACtD,OAAO,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AE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,GAAS,IACvE,CACT,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,oBAA0C,EAAE,EAAE;IACvE,MAAM,IAAI,GAAG,oBAAoB,EAAE,IAAI,CAAC;IACxC,OAAO,CACL,gCAAe,SAAS,EAAC,MAAM,aAC7B,+BAAI,SAAS,EAAC,MAAM,YAClB,iCAAK,SAAS,EAAC,mBAAmB,aAC/B,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,EACxF,iCAAM,SAAS,EAAC,sBAAsB,YAAE,IAAI,GAAQ,IAChD,GACH,EACL,+BAAI,SAAS,EAAC,kCAAkC,YAC7C,IAAA,+BAAc,EAAC,oBAAoB,CAAC,GAAG,CAAC,GACtC,EACL,+BAAI,SAAS,EAAC,kCAAkC,YAC7C,IAAA,+BAAc,EAAC,oBAAoB,CAAC,IAAI,CAAC,GACvC,KAZE,IAAI,CAaR,CACN,CAAC;AACJ,CAAC,CAAC"}
@@ -1,7 +1,19 @@
1
- import type { ExchangeCurrencyItem } from './ExchangeRateTileContent';
2
- export interface ExchangeCurrencyCalculatorProps {
3
- exchangeCurrencyItems: ExchangeCurrencyItem[];
4
- codes: string[];
1
+ import type { UniBlockProps } from '../../types';
2
+ import { Currency } from './CurrencyProps';
3
+ export interface ExchangeCurrencyItem {
4
+ code?: Currency;
5
+ buy?: number;
6
+ sell?: number;
7
+ }
8
+ export interface ExchangeCurrencyCalculatorProps extends UniBlockProps {
5
9
  className?: string;
10
+ currencyRatesBuy: ExchangeCurrencyItem[];
11
+ currencyRatesSell: ExchangeCurrencyItem[];
12
+ }
13
+ export interface CalcState {
14
+ inputSell: string;
15
+ inputBuy: string;
16
+ selectSell: Currency;
17
+ selectBuy: Currency;
6
18
  }
7
19
  export declare const ExchangeCurrencyCalculator: (props: import("@redneckz/uni-jsx").PropsWithChildren<ExchangeCurrencyCalculatorProps, any>, context?: any) => any;
@@ -2,14 +2,73 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ExchangeCurrencyCalculator = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const Button_1 = require("../../ui-kit/Button/Button");
6
- const Input_1 = require("../../ui-kit/Input/Input");
7
- const Select_1 = require("../../ui-kit/Select/Select");
8
- const SelectOption_1 = require("../../ui-kit/Select/SelectOption");
9
- exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ codes, className = '' }) => {
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes, 'USD'), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
5
+ const calculateResult_1 = require("./calculateResult");
6
+ const callbackCurrencySelect_1 = require("./callbackCurrencySelect");
7
+ const CurrencyProps_1 = require("./CurrencyProps");
8
+ const renderButton_1 = require("./renderButton");
9
+ const renderInput_1 = require("./renderInput");
10
+ exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className = '', currencyRatesBuy, currencyRatesSell }) => {
11
+ const [calcState, setCalcState] = context.useState({
12
+ inputSell: '',
13
+ inputBuy: '',
14
+ selectSell: currencyRatesBuy?.[0]?.code || CurrencyProps_1.Currency.RUB,
15
+ selectBuy: currencyRatesSell?.[0]?.code || CurrencyProps_1.Currency.USD,
16
+ });
17
+ const handleSetCalcState = (newState) => {
18
+ setCalcState((oldState) => ({ ...oldState, ...newState }));
19
+ };
20
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-3.5 ${className}`, children: [(0, renderInput_1.renderInput)({
21
+ placeholder: 'Хочу продать',
22
+ rates: currencyRatesBuy,
23
+ selected: calcState.selectSell,
24
+ setSelected: handleSelectSell(calcState, handleSetCalcState, currencyRatesSell),
25
+ value: calcState.inputSell,
26
+ setValue: (value) => handleInputSell(handleSetCalcState, currencyRatesSell)(value, calcState.selectSell, calcState.selectBuy),
27
+ }), (0, renderInput_1.renderInput)({
28
+ placeholder: 'Получу',
29
+ rates: currencyRatesSell,
30
+ selected: calcState.selectBuy,
31
+ setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
32
+ value: calcState.inputBuy,
33
+ setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
34
+ }), (0, renderButton_1.renderButton)()] }));
11
35
  });
12
- function renderInput(placeholder, codes, selected) {
13
- return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: code, selected: code === selected, children: code }, String(i)))) })) : null] }));
14
- }
36
+ const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
37
+ setCalcState({ selectSell: value });
38
+ (0, callbackCurrencySelect_1.callbackCurrencySelect)({
39
+ value,
40
+ oppositeValue: calcState.selectBuy,
41
+ handleConvert: (codeFrom = calcState.selectSell, codeTo = calcState.selectBuy) => {
42
+ handleInputSell(setCalcState, currencyRatesSell)(calcState.inputSell, codeFrom, codeTo);
43
+ },
44
+ });
45
+ };
46
+ const handleSelectBuy = (calcState, setCalcState, currencyRatesBuy) => (value) => {
47
+ setCalcState({ selectBuy: value });
48
+ (0, callbackCurrencySelect_1.callbackCurrencySelect)({
49
+ value,
50
+ oppositeValue: calcState.selectSell,
51
+ handleConvert: (codeTo = calcState.selectBuy, codeFrom = calcState.selectSell) => handleInputBuy(setCalcState, currencyRatesBuy)(calcState.inputBuy, codeTo, codeFrom),
52
+ });
53
+ };
54
+ const handleInputSell = (setCalcState, currencyRatesSell) => (value, codeFrom, codeTo) => {
55
+ setCalcState({ inputSell: (0, calculateResult_1.formatValue)(value), selectBuy: codeTo });
56
+ const rate = currencyRatesSell.find((_) => _.code === codeTo)?.buy ||
57
+ currencyRatesSell.find((_) => _.code === codeFrom)?.sell;
58
+ if (rate) {
59
+ setCalcState({
60
+ inputBuy: String((0, calculateResult_1.calculateResult)(value, rate, codeFrom === CurrencyProps_1.Currency.RUB) || ''),
61
+ });
62
+ }
63
+ };
64
+ const handleInputBuy = (setCalcState, currencyRatesBuy) => (value, codeTo, codeFrom) => {
65
+ setCalcState({ inputBuy: (0, calculateResult_1.formatValue)(value), selectSell: codeFrom });
66
+ const rate = currencyRatesBuy.find((_) => _.code === codeFrom)?.sell ||
67
+ currencyRatesBuy.find((_) => _.code === codeTo)?.buy;
68
+ if (rate) {
69
+ setCalcState({
70
+ inputSell: String((0, calculateResult_1.calculateResult)(value, rate, codeTo === CurrencyProps_1.Currency.RUB) || ''),
71
+ });
72
+ }
73
+ };
15
74
  //# sourceMappingURL=ExchangeCurrencyCalculator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,oDAAiD;AACjD,uDAAoD;AACpD,mEAAgE;AASnD,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5B,OAAO,CACL,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACxC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,EAClC,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,EACpC,uBAAC,eAAM,IAAC,SAAS,EAAC,oCAAoC,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,0FAExE,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,WAAmB,EAAE,KAAe,EAAE,QAAiB;IAC1E,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IACJ,SAAS,EAAC,uFAAuF,EACjG,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE,GAAG,WAAW,EAAE,GAC7B,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,eAAM,IAAC,SAAS,EAAC,oBAAoB,YACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2BAAY,IAAiB,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,KAAK,QAAQ,YACnE,IAAI,IADY,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAiE;AACjE,qEAAkE;AAClE,mDAA2C;AAC3C,iDAA8C;AAC9C,+CAA4C;AAmB/B,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACnE,MAAM,CAAC,SA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GAAG,CAAC,IAAI,EAAE,CAAC;SAC/E,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"}
@@ -6,32 +6,20 @@ const useExchangeRates_1 = require("../../hooks/useExchangeRates");
6
6
  const Heading_1 = require("../../ui-kit/Heading/Heading");
7
7
  const BaseTile_1 = require("../BaseTile/BaseTile");
8
8
  const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
9
+ const CurrencyProps_1 = require("./CurrencyProps");
9
10
  const CurrencyTable_1 = require("./CurrencyTable");
10
11
  const CurrentLocation_1 = require("./CurrentLocation");
11
12
  const ExchangeCurrencyCalculator_1 = require("./ExchangeCurrencyCalculator");
12
- const CURRENCY_CODES = ['USD', 'EUR'];
13
- const EXCHANGE_CODES = ['RUB', 'USD', 'EUR'];
14
- const DEFAULT_CURRENCY_ITEMS = [
15
- {
16
- buyExchangeRate: 90.6,
17
- saleExchangeRate: 92.8,
18
- currency: { id: 2, code: '978', currency: 'EUR', name: 'Евро' },
19
- },
20
- {
21
- buyExchangeRate: 73.75,
22
- saleExchangeRate: 75.95,
23
- currency: { id: 1, code: '840', currency: 'USD', name: 'Американский доллар' },
24
- },
25
- ];
26
13
  const DEFAULT_LOCATION = {
27
14
  address: 'Москва, ул.Ленина д.28',
28
15
  distance: '6км',
29
16
  };
30
17
  exports.ExchangeRateTile = (0, uni_jsx_1.JSX)(({ className = '', context, title = 'Курсы обмена валют', anchor = null }) => {
31
- const data = (0, useExchangeRates_1.useExchangeRates)(context.useAsyncData);
32
- const exchangeCurrencyItems = data?.exchangeRate?.currencies?.filter((item) => {
33
- return CURRENCY_CODES.indexOf(item?.currency?.currency || '') !== -1;
34
- }) || DEFAULT_CURRENCY_ITEMS;
35
- return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, id: anchor, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: "whitespace-pre-wrap" }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-[43px] pt-4", children: [exchangeCurrencyItems ? ((0, jsx_runtime_1.jsx)(CurrencyTable_1.CurrencyTable, { className: "mb-[31px]", exchangeCurrencyItems: exchangeCurrencyItems })) : null, (0, jsx_runtime_1.jsx)(CurrentLocation_1.CurrentLocation, { ...DEFAULT_LOCATION })] }), exchangeCurrencyItems?.length ? ((0, jsx_runtime_1.jsx)(ExchangeCurrencyCalculator_1.ExchangeCurrencyCalculator, { className: "grow", exchangeCurrencyItems: exchangeCurrencyItems, codes: EXCHANGE_CODES })) : null] }) }) }));
18
+ const currencyRates = (0, useExchangeRates_1.useExchangeRates)(context.useAsyncData);
19
+ const currencyRatesBuy = currencyRates.filter((_) => _.buy);
20
+ currencyRatesBuy.unshift({ code: CurrencyProps_1.Currency.RUB });
21
+ const currencyRatesSell = currencyRates.filter((_) => _.sell);
22
+ currencyRatesSell.push({ code: CurrencyProps_1.Currency.RUB });
23
+ return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, id: anchor, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: "whitespace-pre-wrap" }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-[43px] pt-4", children: [currencyRates ? ((0, jsx_runtime_1.jsx)(CurrencyTable_1.CurrencyTable, { className: "mb-[31px]", exchangeCurrencyItems: currencyRates })) : null, (0, jsx_runtime_1.jsx)(CurrentLocation_1.CurrentLocation, { ...DEFAULT_LOCATION })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? ((0, jsx_runtime_1.jsx)(ExchangeCurrencyCalculator_1.ExchangeCurrencyCalculator, { className: "grow", context: context, currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell })) : null] }) }) }));
36
24
  });
37
25
  //# sourceMappingURL=ExchangeRateTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeRateTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAEhE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mDAAgD;AAChD,uDAAoD;AACpD,6EAA0E;AAG1E,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACtC,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7C,MAAM,sBAAsB,GAAG;IAC7B;QACE,eAAe,EAAE,IAAI;QACrB,gBAAgB,EAAE,IAAI;QACtB,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE;KAChE;IACD;QACE,eAAe,EAAE,KAAK;QACtB,gBAAgB,EAAE,KAAK;QACvB,QAAQ,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,qBAAqB,EAAE;KAC/E;CACF,CAAC;AAEF,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,wBAAwB;IACjC,QAAQ,EAAE,KAAK;CAChB,CAAC;AAIW,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,GAAG,oBAAoB,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAC3E,MAAM,IAAI,GAAG,IAAA,mCAAgB,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACpD,MAAM,qBAAqB,GACzB,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,OAAO,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC,IAAI,sBAAsB,CAAC;IAE/B,OAAO,CACL,oCACE,SAAS,EAAE,uDAAuD,SAAS,EAAE,EAC7E,EAAE,EAAE,MAAM,YAEV,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,uBAAC,iBAAO,IACN,WAAW,EAAE,IAAA,uCAAkB,EAAC,SAAS,CAAC,EAC1C,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,qBAAqB,GAC/B,YAGJ,iCAAK,SAAS,EAAC,MAAM,aACnB,iCAAK,SAAS,EAAC,gBAAgB,aAC5B,qBAAqB,CAAC,CAAC,CAAC,CACvB,uBAAC,6BAAa,IACZ,SAAS,EAAC,WAAW,EACrB,qBAAqB,EAAE,qBAAqB,GAC5C,CACH,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,iCAAe,OAAK,gBAAgB,GAAI,IACrC,EACL,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC,CAC/B,uBAAC,uDAA0B,IACzB,SAAS,EAAC,MAAM,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,KAAK,EAAE,cAAc,GACrB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeRateTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAEhE,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mDAA2C;AAC3C,mDAAgD;AAChD,uDAAoD;AACpD,6EAA0E;AAG1E,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rC,EACL,aAAa,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAC7E,uBAAC,uDAA0B,IACzB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -3,13 +3,3 @@ import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
3
3
  * @title Курсы валют
4
4
  */
5
5
  export declare type ExchangeRateTileContent = HeadingContent;
6
- export interface ExchangeCurrencyItem {
7
- buyExchangeRate?: number;
8
- saleExchangeRate?: number;
9
- currency?: {
10
- id?: number;
11
- code?: string;
12
- currency?: string;
13
- name?: string;
14
- };
15
- }