@redneckz/wildless-cms-uni-blocks 0.3.83 → 0.3.85

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 (908) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +390 -324
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/Logo.svg +1 -0
  5. package/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  6. package/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  7. package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  8. package/dist/components/Calculator/Calculator.js +7 -7
  9. package/dist/components/Calculator/Calculator.js.map +1 -1
  10. package/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  11. package/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  12. package/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  13. package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  14. package/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  15. package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  16. package/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  17. package/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  18. package/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  19. package/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  20. package/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  21. package/dist/components/Calculator/Rate.d.ts +7 -0
  22. package/dist/components/Calculator/Rate.js +6 -0
  23. package/dist/components/Calculator/Rate.js.map +1 -0
  24. package/dist/components/Calculator/constants.d.ts +13 -4
  25. package/dist/components/Calculator/constants.js +34 -5
  26. package/dist/components/Calculator/constants.js.map +1 -1
  27. package/dist/components/Calculator/getBonus.d.ts +2 -0
  28. package/dist/components/Calculator/getBonus.js +16 -0
  29. package/dist/components/Calculator/getBonus.js.map +1 -0
  30. package/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  31. package/dist/components/Calculator/getDefaultMonths.js +1 -4
  32. package/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  33. package/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  34. package/dist/components/Calculator/getDefaultSum.js +1 -3
  35. package/dist/components/Calculator/getDefaultSum.js.map +1 -1
  36. package/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  37. package/dist/components/Calculator/getMonthlyPayment.js +10 -11
  38. package/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  39. package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  40. package/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  41. package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  42. package/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  43. package/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  44. package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  45. package/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  46. package/dist/components/Calculator/renderMonthsInput.js +4 -3
  47. package/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  48. package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  49. package/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  50. package/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  51. package/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  52. package/dist/components/Calculator/renderRealEstateValue.js +6 -5
  53. package/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  54. package/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  55. package/dist/components/Calculator/renderWantedSumInput.js +5 -7
  56. package/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  57. package/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  58. package/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  59. package/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  60. package/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  61. package/dist/components/Calculator/useCalculatorParams.js +12 -0
  62. package/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  63. package/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  64. package/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  65. package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  66. package/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  67. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  68. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  69. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  70. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  71. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  72. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  73. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  74. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  75. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  76. package/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  77. package/dist/components/ExchangeRateTile/renderButton.js +2 -2
  78. package/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  79. package/dist/components/ExchangeRateTile/renderInput.js +1 -1
  80. package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  81. package/dist/components/Footer/HorizontalNavigation.js +2 -2
  82. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  83. package/dist/components/Footer/HorizontalNavigation.mobile.js +2 -2
  84. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  85. package/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  86. package/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  87. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  88. package/dist/components/Footer/MediaButton.js +2 -1
  89. package/dist/components/Footer/MediaButton.js.map +1 -1
  90. package/dist/components/Footer/TextInformation.js +2 -2
  91. package/dist/components/Footer/TextInformation.js.map +1 -1
  92. package/dist/components/Footer/TextInformation.mobile.js +2 -2
  93. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  94. package/dist/components/Footer/TextInformationLink.d.ts +8 -0
  95. package/dist/components/Footer/TextInformationLink.js +6 -0
  96. package/dist/components/Footer/TextInformationLink.js.map +1 -0
  97. package/dist/components/Gallery/Gallery.mobile.js +2 -1
  98. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  99. package/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  100. package/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  101. package/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  102. package/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  103. package/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  104. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  105. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  106. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  107. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  108. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  109. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  110. package/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  111. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  112. package/dist/components/ProductBlock/ProductBlock.js +3 -1
  113. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  114. package/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  115. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  116. package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  117. package/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  118. package/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  119. package/dist/components/StepsBlock/StepsBlock.js +3 -1
  120. package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  121. package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
  122. package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  123. package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -2
  124. package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  125. package/dist/components/TextBlock/TextBlock.js.map +1 -1
  126. package/dist/components/TextBlock/TextBlock.mobile.js +2 -1
  127. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  128. package/dist/components/Tile/Tile.js +4 -3
  129. package/dist/components/Tile/Tile.js.map +1 -1
  130. package/dist/content-page-repository/transformPicture.js +7 -3
  131. package/dist/content-page-repository/transformPicture.js.map +1 -1
  132. package/dist/hooks/useExchangeRates.js +5 -7
  133. package/dist/hooks/useExchangeRates.js.map +1 -1
  134. package/dist/icons/IconName.d.ts +4 -2
  135. package/dist/icons/IconName.js +2 -0
  136. package/dist/icons/IconName.js.map +1 -1
  137. package/dist/model/Picture.d.ts +4 -3
  138. package/dist/services/sitemap/findActiveSubItem.js +1 -2
  139. package/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  140. package/dist/ui-kit/BlockWrapper.js +2 -2
  141. package/dist/ui-kit/BlockWrapper.js.map +1 -1
  142. package/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  143. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  144. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  145. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  146. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  147. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  148. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  149. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  150. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  151. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  152. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  153. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  154. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  155. package/dist/ui-kit/Heading/Heading.js +1 -1
  156. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  157. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  158. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  159. package/dist/ui-kit/Img/Img.d.ts +0 -3
  160. package/dist/ui-kit/Img/Img.js +4 -30
  161. package/dist/ui-kit/Img/Img.js.map +1 -1
  162. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  163. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  164. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  165. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  166. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  167. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  168. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  169. package/dist/ui-kit/Img/ImgInner.js +19 -0
  170. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  171. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  172. package/dist/ui-kit/Logo/Logo.js +1 -9
  173. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  174. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  175. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  176. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  177. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  178. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  179. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  180. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  181. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  182. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  183. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  184. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  185. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  186. package/lib/common.css +1 -1
  187. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  188. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  189. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  190. package/lib/components/Calculator/Calculator.js +7 -7
  191. package/lib/components/Calculator/Calculator.js.map +1 -1
  192. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  193. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  194. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  195. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  196. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  197. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  198. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  199. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  200. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  201. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  202. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  203. package/lib/components/Calculator/Rate.d.ts +7 -0
  204. package/lib/components/Calculator/Rate.js +4 -0
  205. package/lib/components/Calculator/Rate.js.map +1 -0
  206. package/lib/components/Calculator/constants.d.ts +13 -4
  207. package/lib/components/Calculator/constants.js +33 -4
  208. package/lib/components/Calculator/constants.js.map +1 -1
  209. package/lib/components/Calculator/getBonus.d.ts +2 -0
  210. package/lib/components/Calculator/getBonus.js +13 -0
  211. package/lib/components/Calculator/getBonus.js.map +1 -0
  212. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  213. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  214. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  215. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  216. package/lib/components/Calculator/getDefaultSum.js +1 -3
  217. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  218. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  219. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  220. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  221. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  222. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  223. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  224. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  225. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  226. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  227. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  228. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  229. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  230. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  231. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  232. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  233. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  234. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  235. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  236. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  237. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  238. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  239. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  240. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  241. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  242. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  243. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  244. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  245. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  246. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  247. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  248. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  249. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  250. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  251. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  252. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  253. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  254. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  255. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  256. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  257. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  258. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  259. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  260. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  261. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  262. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  263. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  264. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  265. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  266. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  267. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  268. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  269. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  270. package/lib/components/Footer/MediaButton.js +2 -1
  271. package/lib/components/Footer/MediaButton.js.map +1 -1
  272. package/lib/components/Footer/TextInformation.js +2 -2
  273. package/lib/components/Footer/TextInformation.js.map +1 -1
  274. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  275. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  276. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  277. package/lib/components/Footer/TextInformationLink.js +4 -0
  278. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  279. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  280. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  281. package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  282. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  283. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  284. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  285. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  286. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  287. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  288. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  289. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  290. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  291. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  292. package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  293. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  294. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  295. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  296. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  297. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  298. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  299. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  300. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  301. package/lib/components/StepsBlock/StepsBlock.js +3 -1
  302. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  303. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  304. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  305. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  306. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  307. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  308. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  309. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  310. package/lib/components/Tile/Tile.js +4 -3
  311. package/lib/components/Tile/Tile.js.map +1 -1
  312. package/lib/content-page-repository/transformPicture.js +7 -3
  313. package/lib/content-page-repository/transformPicture.js.map +1 -1
  314. package/lib/hooks/useExchangeRates.js +5 -7
  315. package/lib/hooks/useExchangeRates.js.map +1 -1
  316. package/lib/icons/IconName.d.ts +4 -2
  317. package/lib/icons/IconName.js +2 -0
  318. package/lib/icons/IconName.js.map +1 -1
  319. package/lib/model/Picture.d.ts +4 -3
  320. package/lib/services/sitemap/findActiveSubItem.js +1 -2
  321. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  322. package/lib/ui-kit/BlockWrapper.js +2 -2
  323. package/lib/ui-kit/BlockWrapper.js.map +1 -1
  324. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  325. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  326. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  327. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  328. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  329. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  330. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  331. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  332. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  333. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  334. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  335. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  336. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  337. package/lib/ui-kit/Heading/Heading.js +1 -1
  338. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  339. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  340. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  341. package/lib/ui-kit/Img/Img.d.ts +0 -3
  342. package/lib/ui-kit/Img/Img.js +4 -29
  343. package/lib/ui-kit/Img/Img.js.map +1 -1
  344. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  345. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  346. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  347. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  348. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  349. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  350. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  351. package/lib/ui-kit/Img/ImgInner.js +17 -0
  352. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  353. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  354. package/lib/ui-kit/Logo/Logo.js +1 -9
  355. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  356. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  357. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  358. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  359. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  360. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  361. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  362. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  363. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  364. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  365. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  366. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  367. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  368. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  369. package/mobile/bundle/bundle.umd.js +117 -93
  370. package/mobile/bundle/bundle.umd.min.js +1 -1
  371. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  372. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  373. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  374. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  375. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  376. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  377. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  378. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  379. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  380. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  381. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  382. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  383. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  384. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  385. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  386. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  387. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  388. package/mobile/dist/components/Calculator/Rate.js +6 -0
  389. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  390. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  391. package/mobile/dist/components/Calculator/constants.js +34 -5
  392. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  393. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  394. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  395. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  396. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  397. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  398. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  399. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  400. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  401. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  402. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  403. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  404. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  405. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  406. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  407. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  408. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  409. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  410. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  411. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  412. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  413. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  414. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  415. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  416. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  417. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  418. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  419. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  420. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  421. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  422. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  423. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  424. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  425. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  426. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  427. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  428. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  429. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  430. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  431. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  432. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  433. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  434. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  435. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  436. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  437. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  438. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  439. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  440. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  442. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  443. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  444. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  445. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  446. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  447. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  448. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  449. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  450. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  451. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  452. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  453. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  454. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  455. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  456. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  457. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  458. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  459. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  460. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  461. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  462. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  463. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  464. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  465. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  466. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  467. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  468. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  469. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  470. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  471. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  472. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  473. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  474. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  475. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  476. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  477. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  478. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  479. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  480. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  481. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  482. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  483. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  484. package/mobile/dist/components/Tile/Tile.js +4 -3
  485. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  486. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  487. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  488. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  489. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  490. package/mobile/dist/icons/IconName.d.ts +4 -2
  491. package/mobile/dist/icons/IconName.js +2 -0
  492. package/mobile/dist/icons/IconName.js.map +1 -1
  493. package/mobile/dist/model/Picture.d.ts +4 -3
  494. package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
  495. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  496. package/mobile/dist/ui-kit/BlockWrapper.js +2 -2
  497. package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
  498. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  499. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  500. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  501. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  502. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  503. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  504. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  505. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  506. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  507. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  508. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  509. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  510. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  511. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  512. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  513. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  514. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  515. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  516. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  517. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  518. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  519. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  520. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  521. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  522. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  523. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  524. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  525. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  526. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  527. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  528. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  529. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  530. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  531. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  532. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  533. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  534. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  535. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  536. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  537. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  538. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  539. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  540. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  541. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  542. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  543. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  544. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  545. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  546. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  547. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  548. package/mobile/lib/components/Calculator/Rate.js +4 -0
  549. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  550. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  551. package/mobile/lib/components/Calculator/constants.js +33 -4
  552. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  553. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  554. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  555. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  556. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  557. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  558. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  559. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  560. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  561. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  562. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  563. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  564. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  565. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  566. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  567. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  568. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  569. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  570. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  571. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  572. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  573. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  574. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  575. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  576. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  577. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  578. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  579. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  580. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  581. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  582. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  583. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  584. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  585. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  586. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  587. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  588. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  589. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  590. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  591. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  592. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  593. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  594. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  595. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  596. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  597. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  598. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  599. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  600. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  601. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  602. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  603. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  604. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  605. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  606. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  607. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  608. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  609. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  610. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  611. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  612. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  613. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  614. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  615. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  616. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  617. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  618. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  619. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  620. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  621. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  622. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  623. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  624. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  625. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  626. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  627. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  628. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  629. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  630. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  631. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  632. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  633. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  634. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  635. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  636. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  637. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  638. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  639. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  640. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  641. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  642. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  643. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  644. package/mobile/lib/components/Tile/Tile.js +4 -3
  645. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  646. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  647. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  648. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  649. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  650. package/mobile/lib/icons/IconName.d.ts +4 -2
  651. package/mobile/lib/icons/IconName.js +2 -0
  652. package/mobile/lib/icons/IconName.js.map +1 -1
  653. package/mobile/lib/model/Picture.d.ts +4 -3
  654. package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
  655. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  656. package/mobile/lib/ui-kit/BlockWrapper.js +2 -2
  657. package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
  658. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  659. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  660. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  661. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  662. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  663. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  664. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  665. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  666. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  667. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  668. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  669. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  670. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  671. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  672. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  673. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  674. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  675. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  676. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  677. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  678. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  679. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  680. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  681. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  682. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  683. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  684. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  685. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  686. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  687. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  688. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  689. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  690. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  691. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  692. package/mobile/src/components/Calculator/Calculator.tsx +8 -8
  693. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  694. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  695. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  696. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  697. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  698. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  699. package/mobile/src/components/Calculator/constants.ts +41 -4
  700. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  701. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  702. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  703. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  704. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  705. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  706. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  707. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  708. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  709. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  710. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  711. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  712. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  713. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  714. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  715. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  716. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  717. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  718. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  719. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  720. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  721. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  722. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  723. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  724. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  725. package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
  726. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  727. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  728. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  729. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  730. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  731. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  732. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  733. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  734. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  735. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  736. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
  737. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
  738. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  739. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  740. package/mobile/src/components/Tile/Tile.example.json +0 -1
  741. package/mobile/src/components/Tile/Tile.tsx +6 -3
  742. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  743. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  744. package/mobile/src/icons/IconName.ts +4 -4
  745. package/mobile/src/icons/Logo.svg +7 -0
  746. package/mobile/src/model/Picture.ts +5 -3
  747. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
  748. package/mobile/src/ui-kit/BlockWrapper.tsx +2 -5
  749. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  750. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  751. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  752. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  753. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  754. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  755. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  756. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  757. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  758. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  759. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  760. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  761. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  762. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  763. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  764. package/package.json +2 -1
  765. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  766. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  767. package/src/components/Calculator/Calculator.tsx +8 -8
  768. package/src/components/Calculator/CalculatorContent.ts +14 -4
  769. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  770. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  771. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  772. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  773. package/src/components/Calculator/Rate.tsx +22 -0
  774. package/src/components/Calculator/constants.ts +41 -4
  775. package/src/components/Calculator/getBonus.ts +38 -0
  776. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  777. package/src/components/Calculator/getDefaultSum.ts +2 -5
  778. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  779. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  780. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  781. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  782. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  783. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  784. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  785. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  786. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  787. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  788. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  789. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  790. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  791. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  792. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  793. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  794. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  795. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  796. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  797. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  798. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  799. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  800. package/src/components/Footer/MediaButton.tsx +2 -7
  801. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  802. package/src/components/Footer/TextInformation.tsx +2 -22
  803. package/src/components/Footer/TextInformationLink.tsx +23 -0
  804. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  805. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  806. package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  807. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  808. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  809. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  810. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  811. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  812. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  813. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  814. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  815. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  816. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  817. package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
  818. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
  819. package/src/components/StepsBlock/StepsBlock.tsx +10 -8
  820. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  821. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  822. package/src/components/TextBlock/TextBlock.tsx +1 -1
  823. package/src/components/Tile/Tile.example.json +0 -1
  824. package/src/components/Tile/Tile.tsx +6 -3
  825. package/src/content-page-repository/transformPicture.ts +7 -5
  826. package/src/hooks/useExchangeRates.ts +6 -7
  827. package/src/icons/IconName.ts +4 -1
  828. package/src/icons/Logo.svg +7 -0
  829. package/src/model/Picture.ts +5 -3
  830. package/src/services/sitemap/findActiveSubItem.ts +2 -3
  831. package/src/ui-kit/BlockWrapper.tsx +2 -5
  832. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  833. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  834. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  835. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  836. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  837. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  838. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  839. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  840. package/src/ui-kit/Heading/Heading.tsx +1 -1
  841. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  842. package/src/ui-kit/Img/Img.tsx +6 -60
  843. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  844. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  845. package/src/ui-kit/Img/ImgProps.ts +1 -0
  846. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  847. package/src/ui-kit/Logo/Logo.tsx +5 -11
  848. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  849. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  850. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  851. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  852. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  853. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  854. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  855. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  856. package/dist/components/Calculator/renderRate.d.ts +0 -8
  857. package/dist/components/Calculator/renderRate.js +0 -9
  858. package/dist/components/Calculator/renderRate.js.map +0 -1
  859. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  860. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  861. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  862. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  863. package/dist/hooks/useCreditCalculatorData.js +0 -15
  864. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  865. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  866. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  867. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  868. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  869. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  870. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  871. package/lib/components/Calculator/renderRate.d.ts +0 -8
  872. package/lib/components/Calculator/renderRate.js +0 -6
  873. package/lib/components/Calculator/renderRate.js.map +0 -1
  874. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  875. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  876. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  877. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  878. package/lib/hooks/useCreditCalculatorData.js +0 -12
  879. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  880. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  881. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  882. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  883. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  884. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  885. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  886. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  887. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  888. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  889. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  890. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  891. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  892. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  893. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  894. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  895. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  896. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  897. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  898. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  899. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  900. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  901. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  902. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  903. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  904. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  905. package/src/components/Calculator/renderRate.tsx +0 -22
  906. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  907. package/src/hooks/useCreditCalculatorData.ts +0 -20
  908. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -1,47 +1,33 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ // TEMP
2
3
  import { JSX } from '@redneckz/uni-jsx';
3
- import { useCreditCalculatorData } from '../../hooks/useCreditCalculatorData.js';
4
4
  import { Checkbox } from '../../ui-kit/Checkbox/Checkbox.js';
5
+ import { CalculatorValueBlock } from './CalculatorValueBlock.js';
5
6
  import { DEFAULT_MAX_MONTHS, DEFAULT_MIN_MONTHS } from './constants.js';
6
- import { renderRealEstateValue } from './renderRealEstateValue.js';
7
- import { renderInitialFeeInput } from './renderInitialFeeInput.js';
8
7
  import { getCreditRate } from './getCreditRate.js';
9
- import { getCalculatorParams } from './getCalculatorParams.js';
10
- import { getDefaultSum } from './getDefaultSum.js';
11
- import { getDefaultMonths } from './getDefaultMonths.js';
12
- import { renderMonthsInput } from './renderMonthsInput.js';
8
+ import { Rate } from './Rate.js';
13
9
  import { renderButtonSection } from './renderButtonSection.js';
10
+ import { renderInitialFeeInput } from './renderInitialFeeInput.js';
11
+ import { renderMonthsInput } from './renderMonthsInput.js';
14
12
  import { renderProposalMortgage } from './renderProposalMortgage.js';
15
- import { renderRate } from './renderRate.js';
16
- import { CalculatorValueBlock } from './CalculatorValueBlock.js';
13
+ import { renderRealEstateValue } from './renderRealEstateValue.js';
17
14
  export const MortgageCalculatorForm = JSX(({ context, className = '', buttons }) => {
18
- const [moneyValue, setMoneyValue] = context.useState(undefined);
19
- const [monthsValue, setMonthsValue] = context.useState(undefined);
15
+ const [moneyValue, setMoneyValue] = context.useState(1000000);
16
+ const [monthsValue, setMonthsValue] = context.useState(12);
20
17
  const [isInsurance, toggleIsInsurance] = context.useState(false);
21
18
  const [isFullInsurance, toggleIsFullInsurance] = context.useState(false);
22
- const tableRows = useCreditCalculatorData(context.useAsyncData, 'directoryName').rows;
23
- const calculatorParams = getCalculatorParams({ tableRows, isAnnuity: isInsurance });
24
- const defaultSum = getDefaultSum(calculatorParams);
25
- const defaultMonths = getDefaultMonths(calculatorParams);
26
- const minMonths = calculatorParams?.minMonths || DEFAULT_MIN_MONTHS;
27
- const maxMonths = calculatorParams?.maxMonths || DEFAULT_MAX_MONTHS;
19
+ const calculatorParams = {}; // getCalculatorParams(context, { isAnnuity: isInsurance });
20
+ const minMonths = /*calculatorParams?.minMonths ||*/ DEFAULT_MIN_MONTHS;
21
+ const maxMonths = /* calculatorParams?.maxMonths || */ DEFAULT_MAX_MONTHS;
28
22
  const rate = getCreditRate({ calculatorParams, isInsurance: isInsurance });
29
23
  const monthlyPayment = 777777; // TODO: hardcode
30
24
  const proposalMortgageValue = { credit: 3892000, period: 15, taxRefund: 650000 }; // TODO: hardcode
31
- return (_jsxs("section", { className: className, children: [_jsxs("div", { className: "w-[468px]", children: [renderRealEstateValue({ calculatorParams, moneyValue, defaultSum, setMoneyValue }), renderInitialFeeInput({
32
- calculatorParams,
25
+ return (_jsxs("section", { className: className, children: [_jsxs("div", { className: "w-[468px]", children: [renderRealEstateValue('Стоимость недвижимости, ₽', { moneyValue }, setMoneyValue), renderInitialFeeInput('Первоначальный взнос, ₽', {
33
26
  moneyValue,
34
- defaultSum,
35
- setMoneyValue,
36
- }), renderMonthsInput({
37
- title: 'Срок ипотеки, месяцев',
27
+ }, setMoneyValue), renderMonthsInput('Срок ипотеки, месяцев', {
38
28
  minMonths,
39
29
  maxMonths,
40
30
  monthsValue,
41
- defaultMonths,
42
- setMonthsValue,
43
- }), _jsxs("div", { className: "mt-7", children: [_jsx(Checkbox, { text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438", checked: isInsurance, onChange: toggleIsInsurance }), _jsx(Checkbox, { className: "mt-4", text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438, \u0437\u043B\u043E\u0440\u043E\u0432\u044C\u044F \u0438 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0443\u0442\u0440\u0430\u0442\u044B \u0442\u0440\u0443\u0434\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438", checked: isFullInsurance, onChange: toggleIsFullInsurance })] })] }), _jsxs("div", { children: [_jsx("div", { children: rate
44
- ? renderRate({ rate: rate, title: 'Ставка', sup: '%', className: 'tracking-[-25px]' })
45
- : null }), _jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0435\u0436", value: monthlyPayment, postfix: "\u20BD" })] }), _jsxs("div", { children: [_jsx("div", { className: "w-[351px]", children: renderProposalMortgage(proposalMortgageValue) }), renderButtonSection(context, buttons)] })] }));
31
+ }, setMonthsValue), _jsxs("div", { className: "mt-7", children: [_jsx(Checkbox, { text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438", checked: isInsurance, onChange: toggleIsInsurance }), _jsx(Checkbox, { className: "mt-4", text: "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u043D\u0438\u0435 \u0436\u0438\u0437\u043D\u0438, \u0437\u043B\u043E\u0440\u043E\u0432\u044C\u044F \u0438 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E\u0439 \u0443\u0442\u0440\u0430\u0442\u044B \u0442\u0440\u0443\u0434\u043E\u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0438", checked: isFullInsurance, onChange: toggleIsFullInsurance })] })] }), _jsxs("div", { children: [_jsx(Rate, { rate: rate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), _jsx(CalculatorValueBlock, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0435\u0436", value: monthlyPayment, postfix: "\u20BD" })] }), _jsxs("div", { children: [_jsx("div", { className: "w-[351px]", children: renderProposalMortgage(proposalMortgageValue) }), renderButtonSection(context, buttons)] })] }));
46
32
  });
47
33
  //# sourceMappingURL=MortgageCalculatorForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MortgageCalculatorForm.js","sourceRoot":"","sources":["../../../src/components/Calculator/MortgageCalculatorForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO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qB,CAAC,GAAO,EAC/E,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,IAClC,IACE,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface RateProps {
2
+ rate: number;
3
+ title?: string;
4
+ unit?: string;
5
+ rateBlockClassName?: string;
6
+ }
7
+ export declare const Rate: (props: import("@redneckz/uni-jsx").PropsWithChildren<RateProps, any>, context?: any) => any;
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { JSX } from '@redneckz/uni-jsx';
3
+ export const Rate = JSX(({ rate, title = 'Ставка', unit, rateBlockClassName }) => (_jsxs("div", { children: [_jsx("div", { className: "text-sm font-light ml-3", children: title }), _jsxs("div", { className: "flex justify-start", children: [_jsx("span", { className: `block calc-rate-text font-mohave text-highlighted pr-6 -mt-4 ${rateBlockClassName}`, children: String(rate).replace('.', ',') }), unit ? _jsx("span", { className: "calc-rate-text text-[65px] leading-[75px]", children: unit }) : ''] })] })));
4
+ //# sourceMappingURL=Rate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rate.js","sourceRoot":"","sources":["../../../src/components/Calculator/Rate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AASxC,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAAC,CAC3F,0BACE,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAO,EACtD,eAAK,SAAS,EAAC,oBAAoB,aACjC,eACE,SAAS,EAAE,gEAAgE,kBAAkB,EAAE,YAE9F,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,GAC1B,EACN,IAAI,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,2CAA2C,YAAE,IAAI,GAAQ,CAAC,CAAC,CAAC,EAAE,IAClF,IACF,CACP,CAAC,CAAC"}
@@ -1,7 +1,16 @@
1
- export declare const DEFAULT_MIN_SUM = 30000;
2
- export declare const DEFAULT_MAX_SUM = 3000000;
1
+ import { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
2
+ import { CreditCalculatorSourceBookParams } from './useCreditCalculatorParams';
3
+ export declare const DEFAULT_MIN_SUM = 60000;
4
+ export declare const DEFAULT_MAX_SUM = 2000000;
3
5
  export declare const DEFAULT_SUM: number;
4
- export declare const DEFAULT_MIN_MONTHS = 1;
5
- export declare const DEFAULT_MAX_MONTHS = 84;
6
+ export declare const DEFAULT_MIN_MONTHS = 13;
7
+ export declare const DEFAULT_MAX_MONTHS = 60;
6
8
  export declare const DEFAULT_MONTHS: number;
7
9
  export declare const MONTHS_IN_YEAR = 12;
10
+ export declare const MONTHLY_INTEREST_RATE: number;
11
+ export declare const DEFAULT_CREDIT_CALCULATOR_PARAMS: CreditCalculatorSourceBookParams;
12
+ export declare const DEFAULT_TRAVEL_MIN_SUM = 6000;
13
+ export declare const DEFAULT_REST_MIN_SUM = 6000;
14
+ export declare const DEFAULT_BONUS_CALCULATOR_PARAMS: BonusCalculatorSourceBookParams;
15
+ export declare const CREDIT_CALC_DEFAULT_DIR = "credit-calculator-data";
16
+ export declare const BONUS_CALC_DEFAULT_DIR = "bonus-calculator-data";
@@ -1,8 +1,37 @@
1
- export const DEFAULT_MIN_SUM = 30000;
2
- export const DEFAULT_MAX_SUM = 3000000;
1
+ export const DEFAULT_MIN_SUM = 60000;
2
+ export const DEFAULT_MAX_SUM = 2000000;
3
3
  export const DEFAULT_SUM = (DEFAULT_MAX_SUM - DEFAULT_MIN_SUM) / 2;
4
- export const DEFAULT_MIN_MONTHS = 1;
5
- export const DEFAULT_MAX_MONTHS = 84;
4
+ export const DEFAULT_MIN_MONTHS = 13;
5
+ export const DEFAULT_MAX_MONTHS = 60;
6
6
  export const DEFAULT_MONTHS = Math.round((DEFAULT_MAX_MONTHS - DEFAULT_MIN_MONTHS) / 2);
7
7
  export const MONTHS_IN_YEAR = 12;
8
+ export const MONTHLY_INTEREST_RATE = MONTHS_IN_YEAR * 100;
9
+ export const DEFAULT_CREDIT_CALCULATOR_PARAMS = {
10
+ minSum: DEFAULT_MIN_SUM,
11
+ maxSum: DEFAULT_MAX_SUM,
12
+ minMonths: DEFAULT_MIN_MONTHS,
13
+ maxMonths: DEFAULT_MAX_MONTHS,
14
+ rateBottomRange: 10,
15
+ rateTopRange: 7,
16
+ isSalaryClient: true,
17
+ isStateEmployee: true,
18
+ isInsurance: true,
19
+ sumBorder: 999999,
20
+ };
21
+ export const DEFAULT_TRAVEL_MIN_SUM = 6000;
22
+ export const DEFAULT_REST_MIN_SUM = 6000;
23
+ export const DEFAULT_BONUS_CALCULATOR_PARAMS = {
24
+ minSumTravel: 6000,
25
+ maxSumTravel: 200000,
26
+ minSumOther: 6000,
27
+ maxSumOther: 200000,
28
+ maxBonus: 5000,
29
+ prefMonthsNum: 2,
30
+ prefTravelBonusRate: 0.015,
31
+ prefRestBonusRate: 0.01,
32
+ travelBonusRate: 0.015,
33
+ restBonusRate: 0.01,
34
+ };
35
+ export const CREDIT_CALC_DEFAULT_DIR = 'credit-calculator-data';
36
+ export const BONUS_CALC_DEFAULT_DIR = 'bonus-calculator-data';
8
37
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/Calculator/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAC;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,eAAe,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AACpC,MAAM,CAAC,MAAM,kBA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AY,EAAE,IAAI;IAClB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,MAAM;IACnB,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,CAAC;IAChB,mBAAmB,EAAE,KAAK;IAC1B,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,KAAK;IACtB,aAAa,EAAE,IAAI;CACpB,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,wBAAwB,CAAC;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { BonusCalculatorSourceBookParams } from './useBonusCalculatorParams';
2
+ export declare const getBonus: (params: BonusCalculatorSourceBookParams, bonusTravelValue: number, bonusOtherValue: number) => number[];
@@ -0,0 +1,13 @@
1
+ import { MONTHS_IN_YEAR } from './constants.js';
2
+ export const getBonus = (params, bonusTravelValue, bonusOtherValue) => {
3
+ const { minSumTravel, minSumOther, maxBonus, prefMonthsNum, prefTravelBonusRate, prefRestBonusRate, travelBonusRate, restBonusRate, } = params;
4
+ if (bonusTravelValue === minSumTravel && bonusOtherValue === minSumOther) {
5
+ return [0, 0];
6
+ }
7
+ const prefBonus = Math.min(Math.round(prefTravelBonusRate * bonusTravelValue) +
8
+ Math.round(prefRestBonusRate * bonusOtherValue), maxBonus);
9
+ const bonus = Math.min(Math.round(travelBonusRate * bonusTravelValue) + Math.round(restBonusRate * bonusOtherValue), maxBonus);
10
+ const yearBonus = prefBonus * prefMonthsNum + bonus * (MONTHS_IN_YEAR - prefMonthsNum);
11
+ return [prefBonus, yearBonus];
12
+ };
13
+ //# sourceMappingURL=getBonus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBonus.js","sourceRoot":"","sources":["../../../src/components/Calculator/getBonus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,MAAuC,EACvC,gBAAwB,EACxB,eAAuB,EACvB,EAAE;IACF,MAAM,EACJ,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,aAAa,GACd,GAAG,MAAM,CAAC;IAEX,IAAI,gBAAgB,KAAK,YAAY,IAAI,eAAe,KAAK,WAAW,EAAE;QACxE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;KACf;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CACxB,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,gBAAgB,CAAC;QAChD,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,eAAe,CAAC,EACjD,QAAQ,CACT,CAAC;IAEF,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CACpB,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC,EAC5F,QAAQ,CACT,CAAC;IAEF,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,KAAK,GAAG,CAAC,cAAc,GAAG,aAAa,CAAC,CAAC;IAEvF,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC"}
@@ -1,2 +1 @@
1
- import type { CalculatorParams } from './CalculatorContent';
2
- export declare const getDefaultMonths: (calculatorParams: CalculatorParams) => number;
1
+ export declare const getDefaultMonths: (minMonths: number, maxMonths: number) => number;
@@ -1,5 +1,2 @@
1
- import { DEFAULT_MONTHS } from './constants.js';
2
- export const getDefaultMonths = (calculatorParams) => calculatorParams.maxMonths && calculatorParams.minMonths
3
- ? Math.round((calculatorParams.maxMonths - calculatorParams.minMonths) / 2)
4
- : DEFAULT_MONTHS;
1
+ export const getDefaultMonths = (minMonths, maxMonths) => Math.round((maxMonths - minMonths) / 2);
5
2
  //# sourceMappingURL=getDefaultMonths.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultMonths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,gBAAkC,EAAE,EAAE,CACrE,gBAAgB,CAAC,SAAS,IAAI,gBAAgB,CAAC,SAAS;IACtD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,CAAC,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3E,CAAC,CAAC,cAAc,CAAC"}
1
+ {"version":3,"file":"getDefaultMonths.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultMonths.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAiB,EAAE,SAAiB,EAAE,EAAE,CACvE,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC"}
@@ -1,2 +1 @@
1
- import type { CalculatorParams } from './CalculatorContent';
2
- export declare const getDefaultSum: (calculatorParams: CalculatorParams) => number;
1
+ export declare const getDefaultSum: (minSum?: number, maxSum?: number) => number;
@@ -1,5 +1,3 @@
1
1
  import { DEFAULT_SUM } from './constants.js';
2
- export const getDefaultSum = (calculatorParams) => calculatorParams.maxSum && calculatorParams.minSum
3
- ? (calculatorParams.maxSum - calculatorParams.minSum) / 2
4
- : DEFAULT_SUM;
2
+ export const getDefaultSum = (minSum, maxSum) => maxSum && minSum ? (maxSum - minSum) / 2 : DEFAULT_SUM;
5
3
  //# sourceMappingURL=getDefaultSum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,gBAAkC,EAAE,EAAE,CAClE,gBAAgB,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM;IAChD,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC;IACzD,CAAC,CAAC,WAAW,CAAC"}
1
+ {"version":3,"file":"getDefaultSum.js","sourceRoot":"","sources":["../../../src/components/Calculator/getDefaultSum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAe,EAAE,MAAe,EAAE,EAAE,CAChE,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC"}
@@ -1,11 +1,6 @@
1
- import type { CalculatorParams } from './CalculatorContent';
2
- declare type PaymentType = 'annuity' | 'differentiated';
3
- interface GetMonthlyPaymentParams {
4
- calculatorParams?: CalculatorParams;
5
- paymentType: PaymentType;
6
- rate: number;
7
- sum: number;
8
- months: number;
9
- }
10
- export declare const getMonthlyPayment: (params: GetMonthlyPaymentParams) => number;
11
- export {};
1
+ /**
2
+ * Формулы расчёта аннуитетных и дифференцированных платежей:
3
+ * https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
4
+ */
5
+ import type { CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
6
+ export declare const getMonthlyPayment: (rate: number, params: CreditCalculatorUserInputParams) => number;
@@ -1,17 +1,16 @@
1
- import { clamp } from '../../utils/clamp.js';
2
- import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM, MONTHS_IN_YEAR } from './constants.js';
3
- export const getMonthlyPayment = (params) => {
4
- const { calculatorParams, paymentType, rate, sum, months } = params;
5
- if (!calculatorParams) {
6
- return 0;
7
- }
8
- const finalSum = clamp(sum, calculatorParams.minSum || DEFAULT_MIN_SUM, calculatorParams.maxSum || DEFAULT_MAX_SUM);
9
- if (paymentType === 'annuity') {
10
- const annuityCoef = Number(rate) / (MONTHS_IN_YEAR * 100);
11
- return finalSum * (annuityCoef + annuityCoef / (Math.pow(1 + annuityCoef, months) - 1));
1
+ /**
2
+ * Формулы расчёта аннуитетных и дифференцированных платежей:
3
+ * https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
4
+ */
5
+ import { MONTHLY_INTEREST_RATE, MONTHS_IN_YEAR } from './constants.js';
6
+ export const getMonthlyPayment = (rate, params) => {
7
+ const { isAnnuity, moneyValue, monthsValue } = params;
8
+ if (isAnnuity) {
9
+ const i = rate / MONTHLY_INTEREST_RATE; // Используется значение ставки в процентах
10
+ return moneyValue * (i + i / (Math.pow(1 + i, monthsValue) - 1));
12
11
  }
13
12
  else {
14
- return finalSum / months + finalSum * (Number(rate) / 12);
13
+ return Math.round(moneyValue / monthsValue) + moneyValue * (rate / (MONTHS_IN_YEAR * 100)); // Используется значение ставки (rate) в процентах, делённое на сто.
15
14
  }
16
15
  };
17
16
  //# sourceMappingURL=getMonthlyPayment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthlyPayment.js","sourceRoot":"","sources":["../../../src/components/Calculator/getMonthlyPayment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAa/E,MAAM,CAAC,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,EAAE;QACrB,OAAO,CAAC,CAAC;KACV;IAED,MAAM,QAAQ,GAAG,KAAK,CACpB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,oEAAoE;KACjK;AACH,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  import type { CalculatorBlockDef } from './CalculatorContent';
2
- export declare const renderCalculatorBlock: ({ context, className }: any) => (blockCalcTabs: CalculatorBlockDef, i: number) => any;
2
+ export declare const renderCalculatorBlock: ({ context, className }: any) => (block: CalculatorBlockDef, i: number) => any;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { EmbeddableCalcBlocks } from './EmbeddableCalcBlocks.js';
3
- export const renderCalculatorBlock = ({ context, className }) => (blockCalcTabs, i) => {
4
- const type = blockCalcTabs?.calcType;
3
+ export const renderCalculatorBlock = ({ context, className }) => (block, i) => {
4
+ const type = block?.calcType;
5
5
  if (!type || !(type in EmbeddableCalcBlocks)) {
6
6
  return null;
7
7
  }
8
8
  const EmbeddedBlock = EmbeddableCalcBlocks[type];
9
- return (_jsx("section", { className: `box-border relative flex shrink-0 basis-full ${className}`, role: "listitem", children: _jsx("div", { className: "box-border p-9 w-full", children: _jsx(EmbeddedBlock, { context: context, ...blockCalcTabs, className: "flex justify-between" }) }) }, String(i)));
9
+ return (_jsx("section", { className: `box-border relative flex shrink-0 basis-full ${className}`, role: "listitem", children: _jsx("div", { className: "box-border p-9 w-full", children: _jsx(EmbeddedBlock, { context: context, ...block, className: "flex justify-between" }) }) }, String(i)));
10
10
  };
11
11
  //# sourceMappingURL=renderCalculatorBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wBAAwB,CAAC;AAEnF,MAAM,CAAC,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,oBAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEhF,OAAO,CACL,kBAEE,SAAS,EAAE,gDAAgD,SAAS,EAAE,EACtE,IAAI,EAAC,UAAU,YAEf,cAAK,SAAS,EAAC,uBAAuB,YACpC,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,aAAa,EAAE,SAAS,EAAC,sBAAsB,GAAG,GACnF,IAND,MAAM,CAAC,CAAC,CAAC,CAON,CACX,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"renderCalculatorBlock.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderCalculatorBlock.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,oBAAoB,EAAuB,MAAM,wBAAwB,CAAC;AAEnF,MAAM,CAAC,MAAM,qBAAqB,GAChC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAO,EAAE,EAAE,CAChC,CAAC,KAAyB,EAAE,CAAS,EAAE,EAAE;IACvC,MAAM,IAAI,GAAG,KAAK,EAAE,QAAQ,CAAC;IAC7B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,IAAI,oBAAoB,CAAC,EAAE;QAC5C,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAkC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAEhF,OAAO,CACL,kBAEE,SAAS,EAAE,gDAAgD,SAAS,EAAE,EACtE,IAAI,EAAC,UAAU,YAEf,cAAK,SAAS,EAAC,uBAAuB,YACpC,KAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,KAAK,EAAE,SAAS,EAAC,sBAAsB,GAAG,GAC3E,IAND,MAAM,CAAC,CAAC,CAAC,CAON,CACX,CAAC;AACJ,CAAC,CAAC"}
@@ -1,10 +1,5 @@
1
- import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
- import type { CalculatorParams } from './CalculatorContent';
3
- interface RenderWantedSumInputProps {
4
- calculatorParams: CalculatorParams;
5
- moneyValue: number | undefined;
6
- defaultSum: number;
7
- setMoneyValue: InputRangeProps['onChange'];
1
+ interface RenderWantedSumInputParams {
2
+ moneyValue: number;
8
3
  }
9
- export declare function renderInitialFeeInput(props: RenderWantedSumInputProps): any;
4
+ export declare function renderInitialFeeInput(title: any, props: RenderWantedSumInputParams, callback: any): any;
10
5
  export {};
@@ -1,15 +1,16 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ // TEMP
2
3
  import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
3
4
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
4
5
  import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants.js';
5
6
  const STEP_MONEY = 1000;
6
- export function renderInitialFeeInput(props) {
7
- const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
8
- const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
9
- const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
10
- return (_jsx(InputRange, { className: "mt-6", title: "\u041F\u0435\u0440\u0432\u043E\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0439 \u0432\u0437\u043D\u043E\u0441, \u20BD ", items: [
7
+ export function renderInitialFeeInput(title, props, callback) {
8
+ const { moneyValue } = props;
9
+ const minSum = DEFAULT_MIN_SUM;
10
+ const maxSum = DEFAULT_MAX_SUM;
11
+ return (_jsx(InputRange, { className: "mt-6", title: title, items: [
11
12
  `От ${addSpacesBetweenNumbers(minSum)} рублей`,
12
13
  `До ${addSpacesBetweenNumbers(maxSum)} рублей`,
13
- ], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
14
+ ], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue, onChange: callback }));
14
15
  }
15
16
  //# sourceMappingURL=renderInitialFeeInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderInitialFeeInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInitialFeeInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AASxB,MAAM,UAAU,qBAAqB,CAAC,KAAgC;IACpE,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAE3D,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAC,8HAA0B,EAChC,KAAK,EAAE;YACL,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;YAC9C,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;SAC/C,EACD,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"renderInitialFeeInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderInitialFeeInput.tsx"],"names":[],"mappings":";AAAA,OAAO;AACP,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,UAAU,GAAG,IAAI,CAAC;AAMxB,MAAM,UAAU,qBAAqB,CAAC,KAAK,EAAE,KAAiC,EAAE,QAAQ;IACtF,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAE7B,MAAM,MAAM,GAAG,eAAe,CAAC;IAC/B,MAAM,MAAM,GAAG,eAAe,CAAC;IAE/B,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE;YACL,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;YAC9C,MAAM,uBAAuB,CAAC,MAAM,CAAC,SAAS;SAC/C,EACD,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
@@ -1,11 +1,7 @@
1
- import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
- interface RenderMonthsInputProps {
3
- title: string;
1
+ interface RenderMonthsInputParams {
4
2
  minMonths: number;
5
3
  maxMonths: number;
6
- monthsValue: number | undefined;
7
- defaultMonths: number;
8
- setMonthsValue: InputRangeProps['onChange'];
4
+ monthsValue: number;
9
5
  }
10
- export declare function renderMonthsInput(props: RenderMonthsInputProps): any;
6
+ export declare function renderMonthsInput(title: string, params: RenderMonthsInputParams, callback: any): any;
11
7
  export {};
@@ -1,12 +1,13 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
3
+ import { clamp } from '../../utils/clamp.js';
3
4
  const STEP_MONTHS = 1;
4
- export function renderMonthsInput(props) {
5
- const { title, minMonths, maxMonths, monthsValue, defaultMonths, setMonthsValue } = props;
5
+ export function renderMonthsInput(title, params, callback) {
6
+ const { minMonths, maxMonths, monthsValue } = params;
6
7
  const monthText = (month) => {
7
8
  const text = Number(month) % 10 === 1 ? 'месяца' : 'месяцев';
8
9
  return `${month} ${text}`;
9
10
  };
10
- return (_jsx(InputRange, { className: "mt-6", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: monthsValue || defaultMonths, onChange: setMonthsValue }));
11
+ return (_jsx(InputRange, { className: "mt-6", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
11
12
  }
12
13
  //# sourceMappingURL=renderMonthsInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGhE,MAAM,WAAW,GAAG,CAAC,CAAC;AAWtB,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC1F,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7D,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,WAAW,IAAI,aAAa,EACnC,QAAQ,EAAE,cAAc,GACxB,CACH,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"renderMonthsInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderMonthsInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,GAAG,CAAC,CAAC;AAQtB,MAAM,UAAU,iBAAiB,CAAC,KAAa,EAAE,MAA+B,EAAE,QAAQ;IACxF,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;IACrD,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7D,OAAO,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,CAAC,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,EACnE,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,EAC/C,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function renderPaymentTypeSelector(context: any, { items, checkedItem, onChange }: {
2
+ items: any;
3
+ checkedItem: any;
4
+ onChange: any;
5
+ }): any;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ import { RadioButtonGroup } from '../../ui-kit/RadioButtonGroup/RadioButtonGroup.js';
3
+ export function renderPaymentTypeSelector(context, { items, checkedItem, onChange }) {
4
+ return (_jsx(RadioButtonGroup, { context: context, items: items, checkedItem: checkedItem, onChangeCheckedItem: onChange }));
5
+ }
6
+ //# sourceMappingURL=renderPaymentTypeSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderPaymentTypeSelector.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderPaymentTypeSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAElF,MAAM,UAAU,yBAAyB,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE;IACjF,OAAO,CACL,KAAC,gBAAgB,IACf,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,mBAAmB,EAAE,QAAQ,GAC7B,CACH,CAAC;AACJ,CAAC"}
@@ -1,10 +1,5 @@
1
- import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
- import type { CalculatorParams } from './CalculatorContent';
3
1
  interface RenderRealEstateValueInputProps {
4
- calculatorParams: CalculatorParams;
5
- moneyValue: number | undefined;
6
- defaultSum: number;
7
- setMoneyValue: InputRangeProps['onChange'];
2
+ moneyValue: number;
8
3
  }
9
- export declare function renderRealEstateValue(props: RenderRealEstateValueInputProps): any;
4
+ export declare function renderRealEstateValue(title: any, props: RenderRealEstateValueInputProps, callback: any): any;
10
5
  export {};
@@ -1,12 +1,13 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
+ // TEMP
2
3
  import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
3
4
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
4
5
  import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants.js';
5
6
  const STEP_MONEY = 1000;
6
- export function renderRealEstateValue(props) {
7
- const { calculatorParams, moneyValue, defaultSum, setMoneyValue } = props;
8
- const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
9
- const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
10
- return (_jsx(InputRange, { title: "\u0421\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043D\u0435\u0434\u0432\u0438\u0436\u0438\u043C\u043E\u0441\u0442\u0438, \u20BD ", items: [`От ${addSpacesBetweenNumbers(minSum)} ₽`, `До ${addSpacesBetweenNumbers(maxSum)} ₽`], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
7
+ export function renderRealEstateValue(title, props, callback) {
8
+ const { moneyValue } = props;
9
+ const minSum = DEFAULT_MIN_SUM;
10
+ const maxSum = DEFAULT_MAX_SUM;
11
+ return (_jsx(InputRange, { title: title, items: [`От ${addSpacesBetweenNumbers(minSum)} ₽`, `До ${addSpacesBetweenNumbers(maxSum)} ₽`], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue, onChange: callback }));
11
12
  }
12
13
  //# sourceMappingURL=renderRealEstateValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderRealEstateValue.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderRealEstateValue.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AASxB,MAAM,UAAU,qBAAqB,CAAC,KAAsC;IAC1E,MAAM,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EA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,UAAU,EACjB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
@@ -1,13 +1,10 @@
1
- import type { InputRangeProps } from '../../ui-kit/InputRange/InputRangeProps';
2
- import type { CalculatorParams } from './CalculatorContent';
3
- interface RenderWantedSumInputProps {
1
+ interface RenderWantedSumParams {
2
+ minSum: number;
3
+ maxSum: number;
4
+ moneyValue: number;
4
5
  className?: string;
5
- title: string;
6
+ step?: number;
6
7
  isShowItems?: boolean;
7
- calculatorParams: CalculatorParams;
8
- moneyValue: number | undefined;
9
- defaultSum: number;
10
- setMoneyValue: InputRangeProps['onChange'];
11
8
  }
12
- export declare function renderWantedSumInput(props: RenderWantedSumInputProps): any;
9
+ export declare function renderWantedSumInput(title: string, params: RenderWantedSumParams, callback: any): any;
13
10
  export {};
@@ -1,16 +1,14 @@
1
1
  import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
2
2
  import { InputRange } from '../../ui-kit/InputRange/InputRange.js';
3
3
  import { addSpacesBetweenNumbers } from '../../utils/addSpacesBetweenNumbers.js';
4
- import { DEFAULT_MAX_SUM, DEFAULT_MIN_SUM } from './constants.js';
5
- const STEP_MONEY = 1000;
6
- export function renderWantedSumInput(props) {
7
- const { title, className = '', calculatorParams, moneyValue, defaultSum, setMoneyValue, isShowItems = true, } = props;
8
- const minSum = calculatorParams?.minSum || DEFAULT_MIN_SUM;
9
- const maxSum = calculatorParams?.maxSum || DEFAULT_MAX_SUM;
4
+ import { clamp } from '../../utils/clamp.js';
5
+ const DEFAULT_MONEY_STEP = 1000;
6
+ export function renderWantedSumInput(title, params, callback) {
7
+ const { moneyValue, minSum, maxSum, step = DEFAULT_MONEY_STEP, isShowItems = true } = params;
10
8
  const items = [
11
9
  `От ${addSpacesBetweenNumbers(minSum)} ₽`,
12
10
  `До ${addSpacesBetweenNumbers(maxSum)} ₽`,
13
11
  ];
14
- return (_jsx(InputRange, { className: className, title: title, items: isShowItems ? items : [], min: minSum, max: maxSum, step: STEP_MONEY, value: moneyValue || defaultSum, onChange: setMoneyValue }));
12
+ return (_jsx(InputRange, { title: title, items: isShowItems ? items : [], min: minSum, max: maxSum, step: step, value: clamp(moneyValue, minSum, maxSum), onChange: callback }));
15
13
  }
16
14
  //# sourceMappingURL=renderWantedSumInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,MAAM,UAAU,GAAG,IAAI,CAAC;AAYxB,MAAM,UAAU,oBAAoB,CAAC,KAAgC;IACnE,MAAM,EACJ,KAAK,EACL,SAAS,GAAG,EAAE,EACd,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,aAAa,EACb,WAAW,GAAG,IAAI,GACnB,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAC3D,MAAM,MAAM,GAAG,gBAAgB,EAAE,MAAM,IAAI,eAAe,CAAC;IAC3D,MAAM,KAAK,GAAG;QACZ,MAAM,uBAAuB,CAAC,MAAM,CAAC,IAAI;QACzC,MAAM,uBAAuB,CAAC,MAAM,CAAC,IAAI;KAC1C,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,UAAU,IAAI,UAAU,EAC/B,QAAQ,EAAE,aAAa,GACvB,CACH,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"renderWantedSumInput.js","sourceRoot":"","sources":["../../../src/components/Calculator/renderWantedSumInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAWhC,MAAM,UAAU,oBAAoB,CAAC,KAAa,EAAE,MAA6B,EAAE,QAAQ;IACzF,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,GAAG,kBAAkB,EAAE,WAAW,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAE7F,MAAM,KAAK,GAAG;QACZ,MAAM,uBAAuB,CAAC,MAAM,CAAC,IAAI;QACzC,MAAM,uBAAuB,CAAC,MAAM,CAAC,IAAI;KAC1C,CAAC;IAEF,OAAO,CACL,KAAC,UAAU,IACT,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC/B,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EACxC,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,37 @@
1
+ import type { ContentPageContext } from '../ContentPage/ContentPageContext';
2
+ export interface BonusCalculatorUserInputParams {
3
+ travelExpenseValue: number;
4
+ restExpenseValue: number;
5
+ }
6
+ export interface BonusCalculatorSourceBookParams {
7
+ minSumTravel: number;
8
+ maxSumTravel: number;
9
+ minSumOther: number;
10
+ maxSumOther: number;
11
+ maxBonus: number;
12
+ prefMonthsNum: number;
13
+ prefTravelBonusRate: number;
14
+ prefRestBonusRate: number;
15
+ travelBonusRate: number;
16
+ restBonusRate: number;
17
+ }
18
+ export interface BonusCalculatorParams extends BonusCalculatorUserInputParams, BonusCalculatorSourceBookParams {
19
+ monthBonus: number;
20
+ yearBonus: number;
21
+ }
22
+ export declare const getBonusCalculatorParams: (context: ContentPageContext, userInputParams: BonusCalculatorUserInputParams, sourceBookDir: any) => {
23
+ monthBonus: number;
24
+ yearBonus: number;
25
+ travelExpenseValue: number;
26
+ restExpenseValue: number;
27
+ minSumTravel: number;
28
+ maxSumTravel: number;
29
+ minSumOther: number;
30
+ maxSumOther: number;
31
+ maxBonus: number;
32
+ prefMonthsNum: number;
33
+ prefTravelBonusRate: number;
34
+ prefRestBonusRate: number;
35
+ travelBonusRate: number;
36
+ restBonusRate: number;
37
+ };
@@ -0,0 +1,15 @@
1
+ import { BONUS_CALC_DEFAULT_DIR, DEFAULT_BONUS_CALCULATOR_PARAMS } from './constants.js';
2
+ import { getBonus } from './getBonus.js';
3
+ import { useCalculatorParams } from './useCalculatorParams.js';
4
+ export const getBonusCalculatorParams = (context, userInputParams, sourceBookDir) => {
5
+ const { travelExpenseValue, restExpenseValue } = userInputParams;
6
+ const bonusCalculatorSourceBookParams = useCalculatorParams(context.useAsyncData, sourceBookDir || BONUS_CALC_DEFAULT_DIR) || DEFAULT_BONUS_CALCULATOR_PARAMS;
7
+ const [monthBonus, yearBonus] = getBonus(bonusCalculatorSourceBookParams, travelExpenseValue, restExpenseValue);
8
+ return {
9
+ ...bonusCalculatorSourceBookParams,
10
+ ...userInputParams,
11
+ monthBonus,
12
+ yearBonus,
13
+ };
14
+ };
15
+ //# sourceMappingURL=useBonusCalculatorParams.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBonusCalculatorParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/useBonusCalculatorParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA2B5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,OAA2B,EAC3B,eAA+C,EAC/C,aAAa,EACb,EAAE;IACF,MAAM,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,GAAG,eAAe,CAAC;IACjE,MAAM,+BAA+B,GACnC,mBAAmB,CACjB,OAAO,CAAC,YAAY,EACpB,aAAa,IAAI,sBAAsB,CACxC,IAAI,+BAA+B,CAAC;IAEvC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,QAAQ,CACtC,+BAA+B,EAC/B,kBAAkB,EAClB,gBAAgB,CACjB,CAAC;IAEF,OAAO;QACL,GAAG,+BAA+B;QAClC,GAAG,eAAe;QAClB,UAAU;QACV,SAAS;KACV,CAAC;AACJ,CAAC,CAAC"}