@redneckz/wildless-cms-uni-blocks 0.3.84 → 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 (898) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +388 -322
  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/BlocksList/renderBlocksList.js +4 -2
  141. package/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  142. package/dist/ui-kit/Button/ButtonSection.js +1 -1
  143. package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  144. package/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  145. package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  146. package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  147. package/dist/ui-kit/Foldable/Foldable.js +4 -2
  148. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  149. package/dist/ui-kit/HeaderItem/HeaderItem.js +2 -2
  150. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  151. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  152. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  153. package/dist/ui-kit/Heading/Heading.js +1 -1
  154. package/dist/ui-kit/Heading/Heading.js.map +1 -1
  155. package/dist/ui-kit/Heading/Heading.mobile.js +1 -1
  156. package/dist/ui-kit/Heading/Heading.mobile.js.map +1 -1
  157. package/dist/ui-kit/Img/Img.d.ts +0 -3
  158. package/dist/ui-kit/Img/Img.js +4 -30
  159. package/dist/ui-kit/Img/Img.js.map +1 -1
  160. package/dist/ui-kit/Img/Img.mobile.d.ts +0 -3
  161. package/dist/ui-kit/Img/Img.mobile.js +4 -31
  162. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  163. package/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  164. package/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  165. package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  166. package/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  167. package/dist/ui-kit/Img/ImgInner.js +19 -0
  168. package/dist/ui-kit/Img/ImgInner.js.map +1 -0
  169. package/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  170. package/dist/ui-kit/Logo/Logo.js +1 -9
  171. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  172. package/dist/ui-kit/Logo/Logo.mobile.js +2 -9
  173. package/dist/ui-kit/Logo/Logo.mobile.js.map +1 -1
  174. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  175. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  176. package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  177. package/dist/ui-kit/SearchBar/SearchBar.js +3 -8
  178. package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  179. package/dist/ui-kit/SearchBar/SearchBar.mobile.js +3 -7
  180. package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  181. package/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  182. package/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  183. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  184. package/lib/common.css +1 -1
  185. package/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  186. package/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  187. package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  188. package/lib/components/Calculator/Calculator.js +7 -7
  189. package/lib/components/Calculator/Calculator.js.map +1 -1
  190. package/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  191. package/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  192. package/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  193. package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  194. package/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  195. package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  196. package/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  197. package/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  198. package/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  199. package/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  200. package/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  201. package/lib/components/Calculator/Rate.d.ts +7 -0
  202. package/lib/components/Calculator/Rate.js +4 -0
  203. package/lib/components/Calculator/Rate.js.map +1 -0
  204. package/lib/components/Calculator/constants.d.ts +13 -4
  205. package/lib/components/Calculator/constants.js +33 -4
  206. package/lib/components/Calculator/constants.js.map +1 -1
  207. package/lib/components/Calculator/getBonus.d.ts +2 -0
  208. package/lib/components/Calculator/getBonus.js +13 -0
  209. package/lib/components/Calculator/getBonus.js.map +1 -0
  210. package/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  211. package/lib/components/Calculator/getDefaultMonths.js +1 -4
  212. package/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  213. package/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  214. package/lib/components/Calculator/getDefaultSum.js +1 -3
  215. package/lib/components/Calculator/getDefaultSum.js.map +1 -1
  216. package/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  217. package/lib/components/Calculator/getMonthlyPayment.js +11 -12
  218. package/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  219. package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  220. package/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  221. package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  222. package/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  223. package/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  224. package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  225. package/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  226. package/lib/components/Calculator/renderMonthsInput.js +4 -3
  227. package/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  228. package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  229. package/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  230. package/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  231. package/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  232. package/lib/components/Calculator/renderRealEstateValue.js +6 -5
  233. package/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  234. package/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  235. package/lib/components/Calculator/renderWantedSumInput.js +5 -7
  236. package/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  237. package/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  238. package/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  239. package/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  240. package/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  241. package/lib/components/Calculator/useCalculatorParams.js +9 -0
  242. package/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  243. package/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  244. package/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  245. package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  246. package/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  247. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  248. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  249. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  250. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  251. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  252. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  253. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  254. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  255. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  256. package/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  257. package/lib/components/ExchangeRateTile/renderButton.js +2 -2
  258. package/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  259. package/lib/components/ExchangeRateTile/renderInput.js +1 -1
  260. package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  261. package/lib/components/Footer/HorizontalNavigation.js +2 -2
  262. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  263. package/lib/components/Footer/HorizontalNavigation.mobile.js +2 -2
  264. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  265. package/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  266. package/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  267. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  268. package/lib/components/Footer/MediaButton.js +2 -1
  269. package/lib/components/Footer/MediaButton.js.map +1 -1
  270. package/lib/components/Footer/TextInformation.js +2 -2
  271. package/lib/components/Footer/TextInformation.js.map +1 -1
  272. package/lib/components/Footer/TextInformation.mobile.js +2 -2
  273. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  274. package/lib/components/Footer/TextInformationLink.d.ts +8 -0
  275. package/lib/components/Footer/TextInformationLink.js +4 -0
  276. package/lib/components/Footer/TextInformationLink.js.map +1 -0
  277. package/lib/components/Gallery/Gallery.mobile.js +2 -1
  278. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  279. package/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  280. package/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  281. package/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  282. package/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  283. package/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  284. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  285. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  286. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  287. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  288. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  289. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  290. package/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  291. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  292. package/lib/components/ProductBlock/ProductBlock.js +3 -1
  293. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  294. package/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  295. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  296. package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  297. package/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  298. package/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  299. package/lib/components/StepsBlock/StepsBlock.js +3 -1
  300. package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  301. package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
  302. package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
  303. package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -2
  304. package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
  305. package/lib/components/TextBlock/TextBlock.js.map +1 -1
  306. package/lib/components/TextBlock/TextBlock.mobile.js +2 -1
  307. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  308. package/lib/components/Tile/Tile.js +4 -3
  309. package/lib/components/Tile/Tile.js.map +1 -1
  310. package/lib/content-page-repository/transformPicture.js +7 -3
  311. package/lib/content-page-repository/transformPicture.js.map +1 -1
  312. package/lib/hooks/useExchangeRates.js +5 -7
  313. package/lib/hooks/useExchangeRates.js.map +1 -1
  314. package/lib/icons/IconName.d.ts +4 -2
  315. package/lib/icons/IconName.js +2 -0
  316. package/lib/icons/IconName.js.map +1 -1
  317. package/lib/model/Picture.d.ts +4 -3
  318. package/lib/services/sitemap/findActiveSubItem.js +1 -2
  319. package/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  320. package/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  321. package/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  322. package/lib/ui-kit/Button/ButtonSection.js +1 -1
  323. package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  324. package/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  325. package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  326. package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  327. package/lib/ui-kit/Foldable/Foldable.js +4 -2
  328. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  329. package/lib/ui-kit/HeaderItem/HeaderItem.js +2 -2
  330. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  331. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +4 -4
  332. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  333. package/lib/ui-kit/Heading/Heading.js +1 -1
  334. package/lib/ui-kit/Heading/Heading.js.map +1 -1
  335. package/lib/ui-kit/Heading/Heading.mobile.js +1 -1
  336. package/lib/ui-kit/Heading/Heading.mobile.js.map +1 -1
  337. package/lib/ui-kit/Img/Img.d.ts +0 -3
  338. package/lib/ui-kit/Img/Img.js +4 -29
  339. package/lib/ui-kit/Img/Img.js.map +1 -1
  340. package/lib/ui-kit/Img/Img.mobile.d.ts +0 -3
  341. package/lib/ui-kit/Img/Img.mobile.js +4 -30
  342. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  343. package/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  344. package/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  345. package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  346. package/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  347. package/lib/ui-kit/Img/ImgInner.js +17 -0
  348. package/lib/ui-kit/Img/ImgInner.js.map +1 -0
  349. package/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  350. package/lib/ui-kit/Logo/Logo.js +1 -9
  351. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  352. package/lib/ui-kit/Logo/Logo.mobile.js +2 -9
  353. package/lib/ui-kit/Logo/Logo.mobile.js.map +1 -1
  354. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  355. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +4 -0
  356. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  357. package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  358. package/lib/ui-kit/SearchBar/SearchBar.js +4 -9
  359. package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  360. package/lib/ui-kit/SearchBar/SearchBar.mobile.js +4 -8
  361. package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
  362. package/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  363. package/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  364. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  365. package/mobile/bundle/bundle.umd.js +115 -91
  366. package/mobile/bundle/bundle.umd.min.js +1 -1
  367. package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  368. package/mobile/dist/components/Calculator/BonusCalculatorForm.js +23 -29
  369. package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
  370. package/mobile/dist/components/Calculator/Calculator.js +7 -7
  371. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  372. package/mobile/dist/components/Calculator/CalculatorContent.d.ts +14 -4
  373. package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  374. package/mobile/dist/components/Calculator/CreditCalculatorForm.js +38 -41
  375. package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
  376. package/mobile/dist/components/Calculator/DepositCalculatorForm.js +14 -28
  377. package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
  378. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  379. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  380. package/mobile/dist/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  381. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js +14 -28
  382. package/mobile/dist/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  383. package/mobile/dist/components/Calculator/Rate.d.ts +7 -0
  384. package/mobile/dist/components/Calculator/Rate.js +6 -0
  385. package/mobile/dist/components/Calculator/Rate.js.map +1 -0
  386. package/mobile/dist/components/Calculator/constants.d.ts +13 -4
  387. package/mobile/dist/components/Calculator/constants.js +34 -5
  388. package/mobile/dist/components/Calculator/constants.js.map +1 -1
  389. package/mobile/dist/components/Calculator/getBonus.d.ts +2 -0
  390. package/mobile/dist/components/Calculator/getBonus.js +16 -0
  391. package/mobile/dist/components/Calculator/getBonus.js.map +1 -0
  392. package/mobile/dist/components/Calculator/getDefaultMonths.d.ts +1 -2
  393. package/mobile/dist/components/Calculator/getDefaultMonths.js +1 -4
  394. package/mobile/dist/components/Calculator/getDefaultMonths.js.map +1 -1
  395. package/mobile/dist/components/Calculator/getDefaultSum.d.ts +1 -2
  396. package/mobile/dist/components/Calculator/getDefaultSum.js +1 -3
  397. package/mobile/dist/components/Calculator/getDefaultSum.js.map +1 -1
  398. package/mobile/dist/components/Calculator/getMonthlyPayment.d.ts +6 -11
  399. package/mobile/dist/components/Calculator/getMonthlyPayment.js +10 -11
  400. package/mobile/dist/components/Calculator/getMonthlyPayment.js.map +1 -1
  401. package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  402. package/mobile/dist/components/Calculator/renderCalculatorBlock.js +3 -3
  403. package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
  404. package/mobile/dist/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  405. package/mobile/dist/components/Calculator/renderInitialFeeInput.js +7 -6
  406. package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
  407. package/mobile/dist/components/Calculator/renderMonthsInput.d.ts +3 -7
  408. package/mobile/dist/components/Calculator/renderMonthsInput.js +4 -3
  409. package/mobile/dist/components/Calculator/renderMonthsInput.js.map +1 -1
  410. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  411. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +9 -0
  412. package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  413. package/mobile/dist/components/Calculator/renderRealEstateValue.d.ts +2 -7
  414. package/mobile/dist/components/Calculator/renderRealEstateValue.js +6 -5
  415. package/mobile/dist/components/Calculator/renderRealEstateValue.js.map +1 -1
  416. package/mobile/dist/components/Calculator/renderWantedSumInput.d.ts +6 -9
  417. package/mobile/dist/components/Calculator/renderWantedSumInput.js +5 -7
  418. package/mobile/dist/components/Calculator/renderWantedSumInput.js.map +1 -1
  419. package/mobile/dist/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  420. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js +18 -0
  421. package/mobile/dist/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  422. package/mobile/dist/components/Calculator/useCalculatorParams.d.ts +2 -0
  423. package/mobile/dist/components/Calculator/useCalculatorParams.js +12 -0
  424. package/mobile/dist/components/Calculator/useCalculatorParams.js.map +1 -0
  425. package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  426. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -0
  427. package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  428. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +2 -2
  429. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  430. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  431. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  432. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  433. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  434. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  435. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  436. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  437. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  438. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +1 -1
  439. package/mobile/dist/components/ExchangeRateTile/renderButton.js +2 -2
  440. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +1 -1
  441. package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
  442. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
  443. package/mobile/dist/components/Footer/HorizontalNavigation.js +2 -2
  444. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  445. package/mobile/dist/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  446. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -0
  447. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -0
  448. package/mobile/dist/components/Footer/MediaButton.js +2 -1
  449. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  450. package/mobile/dist/components/Footer/TextInformation.js +2 -2
  451. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  452. package/mobile/dist/components/Footer/TextInformationLink.d.ts +8 -0
  453. package/mobile/dist/components/Footer/TextInformationLink.js +6 -0
  454. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -0
  455. package/mobile/dist/components/Gallery/Gallery.js +2 -1
  456. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  457. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js +4 -4
  458. package/mobile/dist/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  459. package/mobile/dist/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  460. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js +4 -2
  461. package/mobile/dist/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  462. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  463. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  464. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  465. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  466. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  467. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  468. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  469. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +2 -1
  470. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  471. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  472. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +1 -1
  473. package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  474. package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
  475. package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
  476. package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -2
  477. package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  478. package/mobile/dist/components/TextBlock/TextBlock.js +2 -1
  479. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  480. package/mobile/dist/components/Tile/Tile.js +4 -3
  481. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  482. package/mobile/dist/content-page-repository/transformPicture.js +7 -3
  483. package/mobile/dist/content-page-repository/transformPicture.js.map +1 -1
  484. package/mobile/dist/hooks/useExchangeRates.js +5 -7
  485. package/mobile/dist/hooks/useExchangeRates.js.map +1 -1
  486. package/mobile/dist/icons/IconName.d.ts +4 -2
  487. package/mobile/dist/icons/IconName.js +2 -0
  488. package/mobile/dist/icons/IconName.js.map +1 -1
  489. package/mobile/dist/model/Picture.d.ts +4 -3
  490. package/mobile/dist/services/sitemap/findActiveSubItem.js +1 -2
  491. package/mobile/dist/services/sitemap/findActiveSubItem.js.map +1 -1
  492. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js +4 -2
  493. package/mobile/dist/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  494. package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -1
  495. package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
  496. package/mobile/dist/ui-kit/Checkbox/Checkbox.js +5 -2
  497. package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
  498. package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  499. package/mobile/dist/ui-kit/Foldable/Foldable.js +4 -2
  500. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  501. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +4 -4
  502. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  503. package/mobile/dist/ui-kit/Heading/Heading.js +1 -1
  504. package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
  505. package/mobile/dist/ui-kit/Img/Img.d.ts +0 -3
  506. package/mobile/dist/ui-kit/Img/Img.js +4 -31
  507. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  508. package/mobile/dist/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  509. package/mobile/dist/ui-kit/Img/ImgAsPicture.js +32 -0
  510. package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -0
  511. package/mobile/dist/ui-kit/Img/ImgInner.d.ts +2 -0
  512. package/mobile/dist/ui-kit/Img/ImgInner.js +19 -0
  513. package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -0
  514. package/mobile/dist/ui-kit/Img/ImgProps.d.ts +1 -0
  515. package/mobile/dist/ui-kit/Logo/Logo.js +2 -9
  516. package/mobile/dist/ui-kit/Logo/Logo.js.map +1 -1
  517. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  518. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +9 -0
  519. package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  520. package/mobile/dist/ui-kit/SearchBar/SearchBar.js +3 -7
  521. package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
  522. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  523. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +24 -0
  524. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  525. package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +3 -3
  526. package/mobile/lib/components/Calculator/BonusCalculatorForm.js +23 -29
  527. package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
  528. package/mobile/lib/components/Calculator/Calculator.js +7 -7
  529. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  530. package/mobile/lib/components/Calculator/CalculatorContent.d.ts +14 -4
  531. package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +4 -2
  532. package/mobile/lib/components/Calculator/CreditCalculatorForm.js +38 -41
  533. package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
  534. package/mobile/lib/components/Calculator/DepositCalculatorForm.js +15 -29
  535. package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
  536. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.d.ts +4 -4
  537. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js +2 -2
  538. package/mobile/lib/components/Calculator/EmbeddableCalcBlocks.js.map +1 -1
  539. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js +14 -28
  540. package/mobile/lib/components/Calculator/MortgageCalculatorForm.js.map +1 -1
  541. package/mobile/lib/components/Calculator/Rate.d.ts +7 -0
  542. package/mobile/lib/components/Calculator/Rate.js +4 -0
  543. package/mobile/lib/components/Calculator/Rate.js.map +1 -0
  544. package/mobile/lib/components/Calculator/constants.d.ts +13 -4
  545. package/mobile/lib/components/Calculator/constants.js +33 -4
  546. package/mobile/lib/components/Calculator/constants.js.map +1 -1
  547. package/mobile/lib/components/Calculator/getBonus.d.ts +2 -0
  548. package/mobile/lib/components/Calculator/getBonus.js +13 -0
  549. package/mobile/lib/components/Calculator/getBonus.js.map +1 -0
  550. package/mobile/lib/components/Calculator/getDefaultMonths.d.ts +1 -2
  551. package/mobile/lib/components/Calculator/getDefaultMonths.js +1 -4
  552. package/mobile/lib/components/Calculator/getDefaultMonths.js.map +1 -1
  553. package/mobile/lib/components/Calculator/getDefaultSum.d.ts +1 -2
  554. package/mobile/lib/components/Calculator/getDefaultSum.js +1 -3
  555. package/mobile/lib/components/Calculator/getDefaultSum.js.map +1 -1
  556. package/mobile/lib/components/Calculator/getMonthlyPayment.d.ts +6 -11
  557. package/mobile/lib/components/Calculator/getMonthlyPayment.js +11 -12
  558. package/mobile/lib/components/Calculator/getMonthlyPayment.js.map +1 -1
  559. package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
  560. package/mobile/lib/components/Calculator/renderCalculatorBlock.js +3 -3
  561. package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
  562. package/mobile/lib/components/Calculator/renderInitialFeeInput.d.ts +3 -8
  563. package/mobile/lib/components/Calculator/renderInitialFeeInput.js +7 -6
  564. package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
  565. package/mobile/lib/components/Calculator/renderMonthsInput.d.ts +3 -7
  566. package/mobile/lib/components/Calculator/renderMonthsInput.js +4 -3
  567. package/mobile/lib/components/Calculator/renderMonthsInput.js.map +1 -1
  568. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +5 -0
  569. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +6 -0
  570. package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +1 -0
  571. package/mobile/lib/components/Calculator/renderRealEstateValue.d.ts +2 -7
  572. package/mobile/lib/components/Calculator/renderRealEstateValue.js +6 -5
  573. package/mobile/lib/components/Calculator/renderRealEstateValue.js.map +1 -1
  574. package/mobile/lib/components/Calculator/renderWantedSumInput.d.ts +6 -9
  575. package/mobile/lib/components/Calculator/renderWantedSumInput.js +5 -7
  576. package/mobile/lib/components/Calculator/renderWantedSumInput.js.map +1 -1
  577. package/mobile/lib/components/Calculator/useBonusCalculatorParams.d.ts +37 -0
  578. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js +15 -0
  579. package/mobile/lib/components/Calculator/useBonusCalculatorParams.js.map +1 -0
  580. package/mobile/lib/components/Calculator/useCalculatorParams.d.ts +2 -0
  581. package/mobile/lib/components/Calculator/useCalculatorParams.js +9 -0
  582. package/mobile/lib/components/Calculator/useCalculatorParams.js.map +1 -0
  583. package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +28 -0
  584. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +23 -0
  585. package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -0
  586. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +2 -2
  587. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
  588. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  589. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  590. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +2 -0
  591. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  592. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  593. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -3
  594. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
  595. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +2 -0
  596. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +1 -1
  597. package/mobile/lib/components/ExchangeRateTile/renderButton.js +2 -2
  598. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +1 -1
  599. package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
  600. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
  601. package/mobile/lib/components/Footer/HorizontalNavigation.js +2 -2
  602. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  603. package/mobile/lib/components/Footer/HorizontalNavigationLink.d.ts +8 -0
  604. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +4 -0
  605. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -0
  606. package/mobile/lib/components/Footer/MediaButton.js +2 -1
  607. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  608. package/mobile/lib/components/Footer/TextInformation.js +2 -2
  609. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  610. package/mobile/lib/components/Footer/TextInformationLink.d.ts +8 -0
  611. package/mobile/lib/components/Footer/TextInformationLink.js +4 -0
  612. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -0
  613. package/mobile/lib/components/Gallery/Gallery.js +2 -1
  614. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  615. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js +4 -4
  616. package/mobile/lib/components/GroupBlock/GroupBlockTabs.js.map +1 -1
  617. package/mobile/lib/components/GroupBlock/GroupBlocksItem.d.ts +1 -1
  618. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js +4 -2
  619. package/mobile/lib/components/GroupBlock/renderBlocksTypes.js.map +1 -1
  620. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +6 -7
  621. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
  622. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +2 -2
  623. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +18 -16
  624. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
  625. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +2 -2
  626. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  627. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +2 -1
  628. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  629. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +1 -1
  630. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +1 -1
  631. package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +1 -1
  632. package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
  633. package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
  634. package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -2
  635. package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  636. package/mobile/lib/components/TextBlock/TextBlock.js +2 -1
  637. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  638. package/mobile/lib/components/Tile/Tile.js +4 -3
  639. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  640. package/mobile/lib/content-page-repository/transformPicture.js +7 -3
  641. package/mobile/lib/content-page-repository/transformPicture.js.map +1 -1
  642. package/mobile/lib/hooks/useExchangeRates.js +5 -7
  643. package/mobile/lib/hooks/useExchangeRates.js.map +1 -1
  644. package/mobile/lib/icons/IconName.d.ts +4 -2
  645. package/mobile/lib/icons/IconName.js +2 -0
  646. package/mobile/lib/icons/IconName.js.map +1 -1
  647. package/mobile/lib/model/Picture.d.ts +4 -3
  648. package/mobile/lib/services/sitemap/findActiveSubItem.js +1 -2
  649. package/mobile/lib/services/sitemap/findActiveSubItem.js.map +1 -1
  650. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js +4 -2
  651. package/mobile/lib/ui-kit/BlocksList/renderBlocksList.js.map +1 -1
  652. package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -1
  653. package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
  654. package/mobile/lib/ui-kit/Checkbox/Checkbox.js +5 -2
  655. package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
  656. package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -1
  657. package/mobile/lib/ui-kit/Foldable/Foldable.js +4 -2
  658. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  659. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +4 -4
  660. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  661. package/mobile/lib/ui-kit/Heading/Heading.js +1 -1
  662. package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
  663. package/mobile/lib/ui-kit/Img/Img.d.ts +0 -3
  664. package/mobile/lib/ui-kit/Img/Img.js +4 -30
  665. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  666. package/mobile/lib/ui-kit/Img/ImgAsPicture.d.ts +4 -0
  667. package/mobile/lib/ui-kit/Img/ImgAsPicture.js +29 -0
  668. package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -0
  669. package/mobile/lib/ui-kit/Img/ImgInner.d.ts +2 -0
  670. package/mobile/lib/ui-kit/Img/ImgInner.js +17 -0
  671. package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -0
  672. package/mobile/lib/ui-kit/Img/ImgProps.d.ts +1 -0
  673. package/mobile/lib/ui-kit/Logo/Logo.js +2 -9
  674. package/mobile/lib/ui-kit/Logo/Logo.js.map +1 -1
  675. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +12 -0
  676. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +7 -0
  677. package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -0
  678. package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -8
  679. package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
  680. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.d.ts +5 -0
  681. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +22 -0
  682. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -0
  683. package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  684. package/mobile/src/components/Calculator/Calculator.tsx +8 -8
  685. package/mobile/src/components/Calculator/CalculatorContent.ts +14 -4
  686. package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  687. package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  688. package/mobile/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  689. package/mobile/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  690. package/mobile/src/components/Calculator/Rate.tsx +22 -0
  691. package/mobile/src/components/Calculator/constants.ts +41 -4
  692. package/mobile/src/components/Calculator/getBonus.ts +38 -0
  693. package/mobile/src/components/Calculator/getDefaultMonths.ts +2 -7
  694. package/mobile/src/components/Calculator/getDefaultSum.ts +2 -5
  695. package/mobile/src/components/Calculator/getMonthlyPayment.ts +12 -28
  696. package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  697. package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  698. package/mobile/src/components/Calculator/renderMonthsInput.tsx +7 -10
  699. package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  700. package/mobile/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  701. package/mobile/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  702. package/mobile/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  703. package/mobile/src/components/Calculator/useCalculatorParams.ts +16 -0
  704. package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  705. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  706. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  707. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  708. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  709. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  710. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  711. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  712. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  713. package/mobile/src/components/Footer/HorizontalNavigation.tsx +2 -20
  714. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  715. package/mobile/src/components/Footer/MediaButton.tsx +2 -7
  716. package/mobile/src/components/Footer/TextInformation.tsx +2 -22
  717. package/mobile/src/components/Footer/TextInformationLink.tsx +23 -0
  718. package/mobile/src/components/Gallery/Gallery.tsx +3 -5
  719. package/mobile/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  720. package/mobile/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  721. package/mobile/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  722. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  723. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  724. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  725. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  726. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  727. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  728. package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +4 -3
  729. package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -6
  730. package/mobile/src/components/TariffsTable/TariffsTable.tsx +4 -7
  731. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -1
  732. package/mobile/src/components/Tile/Tile.example.json +0 -1
  733. package/mobile/src/components/Tile/Tile.tsx +6 -3
  734. package/mobile/src/content-page-repository/transformPicture.ts +7 -5
  735. package/mobile/src/hooks/useExchangeRates.ts +6 -7
  736. package/mobile/src/icons/IconName.ts +4 -4
  737. package/mobile/src/icons/Logo.svg +7 -0
  738. package/mobile/src/model/Picture.ts +5 -3
  739. package/mobile/src/services/sitemap/findActiveSubItem.ts +2 -3
  740. package/mobile/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  741. package/mobile/src/ui-kit/Button/ButtonSection.tsx +1 -1
  742. package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  743. package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  744. package/mobile/src/ui-kit/Foldable/Foldable.tsx +7 -5
  745. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +4 -6
  746. package/mobile/src/ui-kit/Heading/Heading.tsx +1 -1
  747. package/mobile/src/ui-kit/Img/Img.tsx +4 -71
  748. package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  749. package/mobile/src/ui-kit/Img/ImgInner.tsx +37 -0
  750. package/mobile/src/ui-kit/Img/ImgProps.ts +1 -0
  751. package/mobile/src/ui-kit/Logo/Logo.tsx +2 -13
  752. package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  753. package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +3 -41
  754. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  755. package/package.json +2 -1
  756. package/src/components/Calculator/BonusCalculatorForm.tsx +43 -51
  757. package/src/components/Calculator/Calculator.fixture.tsx +2 -14
  758. package/src/components/Calculator/Calculator.tsx +8 -8
  759. package/src/components/Calculator/CalculatorContent.ts +14 -4
  760. package/src/components/Calculator/CreditCalculatorForm.tsx +62 -62
  761. package/src/components/Calculator/DepositCalculatorForm.tsx +34 -35
  762. package/src/components/Calculator/EmbeddableCalcBlocks.tsx +3 -3
  763. package/src/components/Calculator/MortgageCalculatorForm.tsx +29 -37
  764. package/src/components/Calculator/Rate.tsx +22 -0
  765. package/src/components/Calculator/constants.ts +41 -4
  766. package/src/components/Calculator/getBonus.ts +38 -0
  767. package/src/components/Calculator/getDefaultMonths.ts +2 -7
  768. package/src/components/Calculator/getDefaultSum.ts +2 -5
  769. package/src/components/Calculator/getMonthlyPayment.ts +12 -28
  770. package/src/components/Calculator/renderCalculatorBlock.tsx +4 -4
  771. package/src/components/Calculator/renderInitialFeeInput.tsx +10 -14
  772. package/src/components/Calculator/renderMonthsInput.tsx +7 -10
  773. package/src/components/Calculator/renderPaymentTypeSelector.tsx +12 -0
  774. package/src/components/Calculator/renderRealEstateValue.tsx +9 -13
  775. package/src/components/Calculator/renderWantedSumInput.tsx +12 -26
  776. package/src/components/Calculator/useBonusCalculatorParams.ts +55 -0
  777. package/src/components/Calculator/useCalculatorParams.ts +16 -0
  778. package/src/components/Calculator/useCreditCalculatorParams.ts +70 -0
  779. package/src/components/ExchangeRateTile/CurrencyTable.tsx +5 -9
  780. package/src/components/ExchangeRateTile/CurrentLocation.tsx +6 -4
  781. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +5 -3
  782. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +8 -0
  783. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +9 -1
  784. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +6 -12
  785. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +3 -0
  786. package/src/components/ExchangeRateTile/renderButton.tsx +3 -8
  787. package/src/components/ExchangeRateTile/renderInput.tsx +2 -2
  788. package/src/components/Footer/HorizontalNavigation.mobile.tsx +2 -20
  789. package/src/components/Footer/HorizontalNavigation.tsx +2 -20
  790. package/src/components/Footer/HorizontalNavigationLink.tsx +21 -0
  791. package/src/components/Footer/MediaButton.tsx +2 -7
  792. package/src/components/Footer/TextInformation.mobile.tsx +2 -22
  793. package/src/components/Footer/TextInformation.tsx +2 -22
  794. package/src/components/Footer/TextInformationLink.tsx +23 -0
  795. package/src/components/Gallery/Gallery.mobile.tsx +3 -5
  796. package/src/components/GroupBlock/GroupBlockTabs.tsx +4 -4
  797. package/src/components/GroupBlock/GroupBlocksItem.tsx +2 -2
  798. package/src/components/GroupBlock/renderBlocksTypes.tsx +6 -3
  799. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +45 -9
  800. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +7 -2
  801. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +22 -27
  802. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +2 -2
  803. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +12 -7
  804. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  805. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +2 -2
  806. package/src/components/ProductBlock/ProductBlock.tsx +8 -2
  807. package/src/components/ProductBlock/renderBackwardButton.tsx +6 -3
  808. package/src/components/ProductGallery/ProductGalleryBlock.tsx +6 -11
  809. package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -6
  810. package/src/components/StepsBlock/StepsBlock.tsx +10 -8
  811. package/src/components/TariffsTable/TariffsTable.mobile.tsx +4 -7
  812. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -1
  813. package/src/components/TextBlock/TextBlock.tsx +1 -1
  814. package/src/components/Tile/Tile.example.json +0 -1
  815. package/src/components/Tile/Tile.tsx +6 -3
  816. package/src/content-page-repository/transformPicture.ts +7 -5
  817. package/src/hooks/useExchangeRates.ts +6 -7
  818. package/src/icons/IconName.ts +4 -1
  819. package/src/icons/Logo.svg +7 -0
  820. package/src/model/Picture.ts +5 -3
  821. package/src/services/sitemap/findActiveSubItem.ts +2 -3
  822. package/src/ui-kit/BlocksList/renderBlocksList.tsx +6 -3
  823. package/src/ui-kit/Button/ButtonSection.tsx +1 -1
  824. package/src/ui-kit/Checkbox/Checkbox.tsx +18 -13
  825. package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -1
  826. package/src/ui-kit/Foldable/Foldable.tsx +7 -5
  827. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +4 -6
  828. package/src/ui-kit/HeaderItem/HeaderItem.tsx +2 -2
  829. package/src/ui-kit/Heading/Heading.mobile.tsx +1 -1
  830. package/src/ui-kit/Heading/Heading.tsx +1 -1
  831. package/src/ui-kit/Img/Img.mobile.tsx +4 -71
  832. package/src/ui-kit/Img/Img.tsx +6 -60
  833. package/src/ui-kit/Img/ImgAsPicture.tsx +60 -0
  834. package/src/ui-kit/Img/ImgInner.tsx +37 -0
  835. package/src/ui-kit/Img/ImgProps.ts +1 -0
  836. package/src/ui-kit/Logo/Logo.mobile.tsx +2 -13
  837. package/src/ui-kit/Logo/Logo.tsx +5 -11
  838. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +26 -0
  839. package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +32 -0
  840. package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +3 -41
  841. package/src/ui-kit/SearchBar/SearchBar.tsx +3 -43
  842. package/src/ui-kit/SearchBar/SearchBarInner.tsx +72 -0
  843. package/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  844. package/dist/components/Calculator/getCalculatorParams.js +0 -12
  845. package/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  846. package/dist/components/Calculator/renderRate.d.ts +0 -8
  847. package/dist/components/Calculator/renderRate.js +0 -9
  848. package/dist/components/Calculator/renderRate.js.map +0 -1
  849. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  850. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -14
  851. package/dist/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  852. package/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  853. package/dist/hooks/useCreditCalculatorData.js +0 -15
  854. package/dist/hooks/useCreditCalculatorData.js.map +0 -1
  855. package/dist/ui-kit/SearchBar.mobile.d.ts +0 -2
  856. package/dist/ui-kit/SearchBar.mobile.js +0 -14
  857. package/dist/ui-kit/SearchBar.mobile.js.map +0 -1
  858. package/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  859. package/lib/components/Calculator/getCalculatorParams.js +0 -9
  860. package/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  861. package/lib/components/Calculator/renderRate.d.ts +0 -8
  862. package/lib/components/Calculator/renderRate.js +0 -6
  863. package/lib/components/Calculator/renderRate.js.map +0 -1
  864. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.d.ts +0 -8
  865. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js +0 -12
  866. package/lib/components/ProductGallery/ProductGalleryBlock.mobile.js.map +0 -1
  867. package/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  868. package/lib/hooks/useCreditCalculatorData.js +0 -12
  869. package/lib/hooks/useCreditCalculatorData.js.map +0 -1
  870. package/lib/ui-kit/SearchBar.mobile.d.ts +0 -2
  871. package/lib/ui-kit/SearchBar.mobile.js +0 -12
  872. package/lib/ui-kit/SearchBar.mobile.js.map +0 -1
  873. package/mobile/dist/components/Calculator/getCalculatorParams.d.ts +0 -7
  874. package/mobile/dist/components/Calculator/getCalculatorParams.js +0 -12
  875. package/mobile/dist/components/Calculator/getCalculatorParams.js.map +0 -1
  876. package/mobile/dist/components/Calculator/renderRate.d.ts +0 -8
  877. package/mobile/dist/components/Calculator/renderRate.js +0 -9
  878. package/mobile/dist/components/Calculator/renderRate.js.map +0 -1
  879. package/mobile/dist/hooks/useCreditCalculatorData.d.ts +0 -2
  880. package/mobile/dist/hooks/useCreditCalculatorData.js +0 -15
  881. package/mobile/dist/hooks/useCreditCalculatorData.js.map +0 -1
  882. package/mobile/lib/components/Calculator/getCalculatorParams.d.ts +0 -7
  883. package/mobile/lib/components/Calculator/getCalculatorParams.js +0 -9
  884. package/mobile/lib/components/Calculator/getCalculatorParams.js.map +0 -1
  885. package/mobile/lib/components/Calculator/renderRate.d.ts +0 -8
  886. package/mobile/lib/components/Calculator/renderRate.js +0 -6
  887. package/mobile/lib/components/Calculator/renderRate.js.map +0 -1
  888. package/mobile/lib/hooks/useCreditCalculatorData.d.ts +0 -2
  889. package/mobile/lib/hooks/useCreditCalculatorData.js +0 -12
  890. package/mobile/lib/hooks/useCreditCalculatorData.js.map +0 -1
  891. package/mobile/src/components/Calculator/getCalculatorParams.ts +0 -18
  892. package/mobile/src/components/Calculator/renderRate.tsx +0 -22
  893. package/mobile/src/hooks/useCreditCalculatorData.ts +0 -20
  894. package/src/components/Calculator/getCalculatorParams.ts +0 -18
  895. package/src/components/Calculator/renderRate.tsx +0 -22
  896. package/src/components/ProductGallery/ProductGalleryBlock.mobile.tsx +0 -32
  897. package/src/hooks/useCreditCalculatorData.ts +0 -20
  898. package/src/ui-kit/SearchBar.mobile.tsx +0 -45
@@ -1,5 +1,6 @@
1
1
  import type { UniBlockProps } from '../../types';
2
2
  import { Currency } from './CurrencyProps';
3
+ import { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
4
  export interface ExchangeCurrencyItem {
4
5
  code?: Currency;
5
6
  buy?: number;
@@ -9,6 +10,7 @@ export interface ExchangeCurrencyCalculatorProps extends UniBlockProps {
9
10
  className?: string;
10
11
  currencyRatesBuy: ExchangeCurrencyItem[];
11
12
  currencyRatesSell: ExchangeCurrencyItem[];
13
+ button?: ButtonProps;
12
14
  }
13
15
  export interface CalcState {
14
16
  inputSell: string;
@@ -7,7 +7,7 @@ const callbackCurrencySelect_1 = require("./callbackCurrencySelect");
7
7
  const CurrencyProps_1 = require("./CurrencyProps");
8
8
  const renderButton_1 = require("./renderButton");
9
9
  const renderInput_1 = require("./renderInput");
10
- exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className = '', currencyRatesBuy, currencyRatesSell }) => {
10
+ exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className = '', currencyRatesBuy, currencyRatesSell, button }) => {
11
11
  const [calcState, setCalcState] = context.useState({
12
12
  inputSell: '',
13
13
  inputBuy: '',
@@ -17,7 +17,7 @@ exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className =
17
17
  const handleSetCalcState = (newState) => {
18
18
  setCalcState((oldState) => ({ ...oldState, ...newState }));
19
19
  };
20
- return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-3.5 ${className}`, children: [(0, renderInput_1.renderInput)({
20
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-[18px] pt-2 ${className}`, children: [(0, renderInput_1.renderInput)({
21
21
  placeholder: 'Хочу продать',
22
22
  rates: currencyRatesBuy,
23
23
  selected: calcState.selectSell,
@@ -31,7 +31,7 @@ exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className =
31
31
  setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
32
32
  value: calcState.inputBuy,
33
33
  setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
34
- }), (0, renderButton_1.renderButton)()] }));
34
+ }), button?.text ? (0, renderButton_1.renderButton)(button) : null] }));
35
35
  });
36
36
  const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
37
37
  setCalcState({ selectSell: value });
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAiE;AACjE,qEAAkE;AAClE,mDAA2C;AAC3C,iDAA8C;AAC9C,+CAA4C;AAmB/B,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACnE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAY;QAC5D,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,EAAE;QACZ,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,wBAAQ,CAAC,GAAG;QACvD,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,IAAI,wBAAQ,CAAC,GAAG;KACxD,CAAC,CAAC;IAEH,MAAM,kBAAkB,GAAG,CAAC,QAA4B,EAAE,EAAE;QAC1D,YAAY,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACxC,IAAA,yBAAW,EAAC;gBACX,WAAW,EAAE,cAAc;gBAC3B,KAAK,EAA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@ const useExchangeRates_1 = require("../../hooks/useExchangeRates");
6
6
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
7
7
  const Heading_1 = require("../../ui-kit/Heading/Heading");
8
8
  const BaseTile_1 = require("../BaseTile/BaseTile");
9
- const getTileHeadingType_1 = require("../BaseTile/getTileHeadingType");
10
9
  const CurrencyProps_1 = require("./CurrencyProps");
11
10
  const CurrencyTable_1 = require("./CurrencyTable");
12
11
  const CurrentLocation_1 = require("./CurrentLocation");
@@ -15,12 +14,12 @@ const DEFAULT_LOCATION = {
15
14
  address: 'Москва, ул.Ленина д.28',
16
15
  distance: '6км',
17
16
  };
18
- exports.ExchangeRateTile = (0, uni_jsx_1.JSX)(({ className = '', context, title = 'Курсы обмена валют', ...rest }) => {
17
+ exports.ExchangeRateTile = (0, uni_jsx_1.JSX)(({ className = '', context, title = 'Курсы обмена валют', button, ...rest }) => {
19
18
  const currencyRates = (0, useExchangeRates_1.useExchangeRates)(context.useAsyncData);
20
19
  const currencyRatesBuy = currencyRates.filter((_) => _.buy);
21
20
  currencyRatesBuy.unshift({ code: CurrencyProps_1.Currency.RUB });
22
21
  const currencyRatesSell = currencyRates.filter((_) => _.sell);
23
22
  currencyRatesSell.push({ code: CurrencyProps_1.Currency.RUB });
24
- return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, ...rest, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: (0, getTileHeadingType_1.getTileHeadingType)(className), title: title, className: "whitespace-pre-wrap" }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-[43px] pt-4", children: [currencyRates ? ((0, jsx_runtime_1.jsx)(CurrencyTable_1.CurrencyTable, { className: "mb-[31px]", exchangeCurrencyItems: currencyRates })) : null, (0, jsx_runtime_1.jsx)(CurrentLocation_1.CurrentLocation, { ...DEFAULT_LOCATION })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? ((0, jsx_runtime_1.jsx)(ExchangeCurrencyCalculator_1.ExchangeCurrencyCalculator, { className: "grow", context: context, currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell })) : null] }) }) }));
23
+ return ((0, jsx_runtime_1.jsx)(BlockWrapper_1.BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border ${className}`, ...rest, children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, title: (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap text-h4" }), children: (0, jsx_runtime_1.jsxs)("div", { className: "flex", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-14 pt-4", children: [currencyRates ? ((0, jsx_runtime_1.jsx)(CurrencyTable_1.CurrencyTable, { className: "mb-[30px]", exchangeCurrencyItems: currencyRates })) : null, (0, jsx_runtime_1.jsx)(CurrentLocation_1.CurrentLocation, { ...DEFAULT_LOCATION })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? ((0, jsx_runtime_1.jsx)(ExchangeCurrencyCalculator_1.ExchangeCurrencyCalculator, { className: "grow", context: context, currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
25
24
  });
26
25
  //# sourceMappingURL=ExchangeRateTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeRateTile.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeRateTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,mEAAgE;AAChE,4DAAyD;AAEzD,0DAAuD;AACvD,mDAAgD;AAChD,uEAAoE;AACpE,mDAA2C;AAC3C,mDAAgD;AAChD,uDAAoD;AACpD,6EAA0E;AAG1E,MAAM,gBAAgB,GAAG;IACvB,OAAO,EAAE,wBAAwB;IACjC,QAAQ,E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C;IAE/C,OAAO,CACL,uBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,uDAAuD,SAAS,EAAE,KACzE,IAAI,YAER,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAC,6BAA6B,GAAG,YAEzF,iCAAK,SAAS,EAAC,MAAM,aACnB,iCAAK,SAAS,EAAC,YAAY,aACxB,aAAa,CAAC,CAAC,CAAC,CACf,uBAAC,6BAAa,IAAC,SAAS,EAAC,WAAW,EAAC,qBAAqB,EAAE,aAAa,GAAI,CAC9E,CAAC,CAAC,CAAC,IAAI,EACR,uBAAC,iCAAe,OAAK,gBAAgB,GAAI,IACrC,EACL,aAAa,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAC7E,uBAAC,uDAA0B,IACzB,SAAS,EAAC,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB,EACpC,MAAM,EAAE,MAAM,GACd,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACE,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1,7 +1,9 @@
1
+ import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
1
2
  /**
2
3
  * @title Курсы обмена валют
3
4
  */
4
5
  export interface ExchangeRateTileContent {
5
6
  /** @title Заголовок */
6
7
  title?: string;
8
+ button?: ButtonProps;
7
9
  }
@@ -1 +1 @@
1
- export declare function renderButton(): any;
1
+ export declare function renderButton(button: any): any;
@@ -2,8 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.renderButton = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const Button_1 = require("../../ui-kit/Button/Button");
5
- function renderButton() {
6
- return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "https://coins.rshb.ru/exchange", target: "_blank", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" }));
5
+ function renderButton(button) {
6
+ return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "py-4 mr-1", version: button?.version, href: button?.href, target: "_blank", children: button?.text }));
7
7
  }
8
8
  exports.renderButton = renderButton;
9
9
  //# sourceMappingURL=renderButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderButton.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,SAAgB,YAAY;IAC1B,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAC,oCAAoC,EAC9C,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,gCAAgC,EACrC,MAAM,EAAC,QAAQ,0FAGR,CACV,CAAC;AACJ,CAAC;AAXD,oCAWC"}
1
+ {"version":3,"file":"renderButton.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderButton.tsx"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,SAAgB,YAAY,CAAC,MAAM;IACjC,OAAO,CACL,uBAAC,eAAM,IAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAC,QAAQ,YACxF,MAAM,EAAE,IAAI,GACN,CACV,CAAC;AACJ,CAAC;AAND,oCAMC"}
@@ -6,7 +6,7 @@ const Select_1 = require("../../ui-kit/Select/Select");
6
6
  const SelectOption_1 = require("../../ui-kit/Select/SelectOption");
7
7
  function renderInput(props) {
8
8
  const { placeholder, rates, selected, value, setValue, setSelected } = props;
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", placeholder: placeholder, type: "text", value: value, onChange: setValue }), rates.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4", value: selected, onChange: (_) => setSelected(_), children: rates.map((_, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: _.code, children: _.code }, String(i)))) })) : null] }));
9
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12", placeholder: placeholder, type: "text", value: value, onChange: setValue }), rates.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4 bg-transparent", value: selected, onChange: (_) => setSelected(_), children: rates.map((_, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: _.code, children: _.code }, String(i)))) })) : null] }));
10
10
  }
11
11
  exports.renderInput = renderInput;
12
12
  //# sourceMappingURL=renderInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderInput.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/renderInput.tsx"],"names":[],"mappings":";;;AAAA,oDAAiD;AACjD,uDAAoD;AACpD,mEAAgE;AAahE,SAAgB,WAAW,CAAC,KAAiB;IAC3C,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE7E,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IACJ,SAAS,EAAC,uFAAuF,EACjG,WAAW,EAAE,WAAW,EACxB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GAClB,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,C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,IAAI,IADU,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC;AA3BD,kCA2BC"}
@@ -3,10 +3,10 @@ exports.HorizontalNavigation = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
+ const HorizontalNavigationLink_1 = require("./HorizontalNavigationLink");
6
7
  exports.HorizontalNavigation = (0, uni_jsx_1.JSX)(({ links, className = '', context }) => {
7
8
  const router = context.useRouter();
8
9
  const { handlerDecorator } = context;
9
- return ((0, jsx_runtime_1.jsx)("div", { className: className, children: links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null }));
10
+ return ((0, jsx_runtime_1.jsx)("div", { className: className, children: links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink_1.HorizontalNavigationLink, { index: i, className: "font-light max-w-[292px]", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null }));
10
11
  });
11
- const HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
12
12
  //# sourceMappingURL=HorizontalNavigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AASjC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,qGAAqG,YACjH,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,wBAAwB,IAEvB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAQF,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,6GAA6G,SAAS,EAAE,EACnI,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
1
+ {"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,yEAAsE;AAMzD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IACrC,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,gCAAK,SAAS,EAAE,SAAS,YACtB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,qGAAqG,YACjH,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mDAAwB,IAEvB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,0BAA0B,KAChC,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -3,10 +3,10 @@ exports.HorizontalNavigation = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
+ const HorizontalNavigationLink_1 = require("./HorizontalNavigationLink");
6
7
  exports.HorizontalNavigation = (0, uni_jsx_1.JSX)(({ title, links, className = '', context }) => {
7
8
  const router = context.useRouter();
8
9
  const { handlerDecorator } = context;
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-primary-text font-sans font-medium text-sm", children: title }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 pt-3", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-primary-text font-sans font-medium text-sm", children: title }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 pt-3", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink_1.HorizontalNavigationLink, { index: i, className: "font-normal text-sm", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
11
  });
11
- const HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
12
12
  //# sourceMappingURL=HorizontalNavigation.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalNavigation.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AASjC,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACvB,iCAAM,SAAS,EAAC,iDAAiD,YAAE,KAAK,GAAQ,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,0BAA0B,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,wBAAwB,IAEvB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAQF,MAAM,wBAAwB,GAAG,IAAA,aAAG,EAClC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,uGAAuG,SAAS,EAAE,EAC7H,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
1
+ {"version":3,"file":"HorizontalNavigation.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,yEAAsE;AAMzD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACvB,iCAAM,SAAS,EAAC,iDAAiD,YAAE,KAAK,GAAQ,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,0BAA0B,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mDAAwB,IAEvB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,qBAAqB,KAC3B,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ interface HorizontalNavigationLinkProps extends LinkProps {
3
+ className: string;
4
+ index: number;
5
+ onClick: (ev: MouseEvent) => any;
6
+ }
7
+ export declare const HorizontalNavigationLink: (props: import("@redneckz/uni-jsx").PropsWithChildren<Partial<HorizontalNavigationLinkProps>, any>, context?: any) => any;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.HorizontalNavigationLink = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ exports.HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
6
+ //# sourceMappingURL=HorizontalNavigationLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalNavigationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,mFAAmF,SAAS,EAAE,EACzG,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
@@ -39,6 +39,7 @@ exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version = 'primary' }) => {
39
39
  ? 'bg-secondary-light hover:bg-secondary-hover'
40
40
  : 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
41
41
  const isPrimary = version === 'primary';
42
- return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, imageClassName: isPrimary ? 'group-hover:text-white' : '', width: "24", height: "24", asSVG: true })) : null }));
42
+ const imageClassName = isPrimary ? 'group-hover:text-white' : '';
43
+ return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, imageClassName: imageClassName, width: "24", height: "24", asSVG: true })) : null }));
43
44
  });
44
45
  //# sourceMappingURL=MediaButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MediaButton.js","sourceRoot":"","sources":["../../../src/components/Footer/MediaButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,8CAA2C;AAE3C,MAAM,SAAS,GAIV;IACH;QACE,OAAO,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;QAC9B,KAAK,EAAE,UAAU;KAClB;IACD;QACE,OAAO,EAAE,CAAC,QAAQ,CAAC;QACnB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,WAAW;KACnB;IACD;QACE,OAAO,EAAE,CAAC,OAAO,CAAC;QAClB,IAAI,EAAE,EAAE,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AAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,OAAO,GACX,OAAO,KAAK,WAAW;QACrB,CAAC,CAAC,6CAA6C;QAC/C,CAAC,CAAC,qEAAqE,CAAC;IAE5E,MAAM,SAAS,GAAG,OAAO,KAAK,SAAS,CAAC;IACxC,MAAM,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CAAC;IAEjE,OAAO,CACL,8BACE,SAAS,EAAE,0EAA0E,OAAO,IAC1F,SAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,EACnC,EAAE,EACF,IAAI,EAAE,IAAI,gBACE,KAAK,EACjB,MAAM,EAAC,QAAQ,EACf,GAAG,EAAC,qBAAqB,YAExB,IAAI,CAAC,CAAC,CAAC,CACN,uBAAC,SAAG,IAAC,KAAK,EAAE,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAClF,CAAC,CAAC,CAAC,IAAI,GACN,CACL,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -3,10 +3,10 @@ exports.TextInformation = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
+ const TextInformationLink_1 = require("./TextInformationLink");
6
7
  exports.TextInformation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
7
8
  const router = context.useRouter();
8
9
  const { handlerDecorator } = context;
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "pt-5", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-light text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "pt-5", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-light text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink_1.TextInformationLink, { index: i, className: "font-light", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
11
  });
11
- const TextInformationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
12
12
  //# sourceMappingURL=TextInformation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAIjC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,MAAM,YACnB,iCAAM,SAAS,EAAC,kDAAkD,YAC/D,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mBAAmB,IAElB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAQH,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrD,8BACE,SAAS,EAAE,gJACT,SAAS,IAAI,EACf,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
1
+ {"version":3,"file":"TextInformation.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,+DAA4D;AAE/C,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,MAAM,YACnB,iCAAM,SAAS,EAAC,kDAAkD,YAC/D,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,6CAA6C,YACzD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,yCAAmB,IAElB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,YAAY,KAClB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -3,10 +3,10 @@ exports.TextInformation = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const useLink_1 = require("../../hooks/useLink");
6
+ const TextInformationLink_1 = require("./TextInformationLink");
6
7
  exports.TextInformation = (0, uni_jsx_1.JSX)(({ className, links, context }) => {
7
8
  const router = context.useRouter();
8
9
  const { handlerDecorator } = context;
9
- return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "py-6", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `flex flex-col justify-start items-start gap-2`, children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink, { index: i, ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `${className || ''}`, children: [(0, jsx_runtime_1.jsx)("div", { className: "py-6", children: (0, jsx_runtime_1.jsx)("span", { className: "font-sans font-normal text-xs text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: `flex flex-col justify-start items-start gap-2`, children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(TextInformationLink_1.TextInformationLink, { index: i, className: "font-normal", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
11
  });
11
- const TextInformationLink = (0, uni_jsx_1.JSX)(({ className, index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className || ''}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
12
12
  //# sourceMappingURL=TextInformation.mobile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextInformation.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAIjC,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,MAAM,YACnB,iCAAM,SAAS,EAAC,mDAAmD,YAChE,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,+CAA+C,YAC5D,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mBAAmB,IAElB,KAAK,EAAE,CAAC,KACJ,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAFvC,MAAM,CAAC,CAAC,CAAC,CAGd,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAQH,MAAM,mBAAmB,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CACrD,8BACE,SAAS,EAAE,iJACT,SAAS,IAAI,EACf,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
1
+ {"version":3,"file":"TextInformation.mobile.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformation.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,+DAA4D;AAE/C,QAAA,eAAe,GAAG,IAAA,aAAG,EAAa,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAC/E,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,GAAG,SAAS,IAAI,EAAE,EAAE,aAClC,gCAAK,SAAS,EAAC,MAAM,YACnB,iCAAM,SAAS,EAAC,mDAAmD,YAChE,oBAAoB,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,mHAAmH,GAC3J,GACH,EACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAE,+CAA+C,YAC5D,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,yCAAmB,IAElB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,aAAa,KACnB,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { LinkProps } from '../../model/LinkProps';
2
+ interface TextInformationLinkProps extends LinkProps {
3
+ className: string;
4
+ index: number;
5
+ onClick: (ev: MouseEvent) => any;
6
+ }
7
+ export declare const TextInformationLink: (props: import("@redneckz/uni-jsx").PropsWithChildren<Partial<TextInformationLinkProps>, any>, context?: any) => any;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ Object.defineProperty(exports, "__esModule", { value: true });
2
+ exports.TextInformationLink = void 0;
3
+ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
+ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ exports.TextInformationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
6
+ //# sourceMappingURL=TextInformationLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInformationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/TextInformationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,mBAAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,qIACT,SACF,EAAE,EACF,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
@@ -12,7 +12,8 @@ const blockStyle = {
12
12
  secondary: 'bg-primary-main text-white',
13
13
  };
14
14
  exports.Gallery = (0, uni_jsx_1.JSX)(({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
15
- return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
15
+ const headingClassName = description ? 'mb-2' : 'mb-5';
16
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${headingClassName}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
16
17
  });
17
18
  function renderCardsLayout(orientation, cards, context) {
18
19
  return orientation === 'horizontal' ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, children: cards?.map(renderCard) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.mobile.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.mobile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAC3C,yDAA0D;AAC1D,qFAAkF;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,4BAA4B;CACxC,CAAC;AAEW,QAAA,OAAO,GAAG,IAAA,aAAG,EACxB,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,EAAE,EAAE;IACrF,OAAO,CACL,qCACE,SAAS,EAAE,2EAA2E,SAAS,EAAE,aAEjG,iCAAK,SAAS,EAAC,iCAAiC,aAC7C,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACzD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,sDAAsD,YAClE,WAAW,GACR,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,iBAAiB,CAAC,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC,IACvC,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,iBAAiB,CAAC,WAA4B,EAAE,KAAoB,EAAE,OAA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,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,QAAQ,EAAE,UAAwB,SAAS;IACpF,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,4CACG,QAAQ,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,IAAA,uBAAY,EAAC,OAAO,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5D,iCAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,iCAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KALC,MAAM,CAAC,CAAC,CAAC,CAMb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -3,15 +3,15 @@ exports.GroupBlockTabs = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  exports.GroupBlockTabs = (0, uni_jsx_1.JSX)((props) => {
6
- const { tabs, currentTag, onTabClick, className = '', isShowCounter } = props;
7
- return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, isShowCounter, currentTag)) }));
6
+ const { tabs, currentTag, onTabClick, className = '', isShowCounter = false } = props;
7
+ return ((0, jsx_runtime_1.jsx)("div", { className: `mb-2 box-border flex gap-x-1 ${className}`, role: "tablist", children: tabs?.map(renderTab(onTabClick, currentTag, isShowCounter)) }));
8
8
  });
9
9
  const badgeStyle = 'min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm';
10
- const renderTab = (onTabClick, isShowCounter, currentTag) => (tab, i) => {
10
+ const renderTab = (onTabClick, currentTag, isShowCounter = false) => (tab, i) => {
11
11
  const isActive = currentTag === tab.tag;
12
12
  const tabBg = isActive ? 'bg-primary-main' : 'group bg-white';
13
13
  const tabText = isActive ? 'text-white' : 'text-secondary-text group-hover:text-primary-main';
14
- const counterBlockStyle = `${badgeStyle}
14
+ const counterBlockStyle = `${badgeStyle}
15
15
  ${isActive ? 'bg-white/30 text-white' : 'bg-secondary-light text-secondary-text'}`;
16
16
  return ((0, jsx_runtime_1.jsx)("div", { className: `flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${tabBg}`, role: "tab", onClick: () => onTabClick(tab.tag), "aria-selected": String(isActive), tag: tab?.tag, children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 items-center justify-center", children: [tab?.title ? (0, jsx_runtime_1.jsx)("h3", { className: tabText, children: tab?.title }) : null, isShowCounter ? ((0, jsx_runtime_1.jsx)("div", { className: `flex items-center justify-center ml-8 text-s-bold ${counterBlockStyle}`, children: (0, jsx_runtime_1.jsx)("span", { children: tab.count }) })) : null] }) }, String(i)));
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GroupBlockTabs.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/GroupBlockTabs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAa3B,QAAA,cAAc,GAAG,IAAA,aAAG,EAAsB,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IAE9E,OAAO,CACL,gCAAK,SAAS,EAAE,gCAAgC,SAAS,EAAE,EAAE,IAAI,EAAC,SAAS,YACxE,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,GACxD,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,GAAG,uDAAuD,CAAC;AAE3E,MAAM,SAAS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AAC,CAAC,IAAI,EAC7D,aAAa,CAAC,CAAC,CAAC,CACf,gCACE,SAAS,EAAE,qDAAqD,iBAAiB,EAAE,YAEnF,2CAAO,GAAG,CAAC,KAAK,GAAQ,GACpB,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAhBD,MAAM,CAAC,CAAC,CAAC,CAiBV,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ContentPageContext } from '../../components/ContentPage/ContentPageContext';
1
+ import type { ContentPageContext } from '../ContentPage/ContentPageContext';
2
2
  import type { UniBlockProps } from '../../types';
3
3
  import type { GroupBlockDef } from './BlocksTypeProps';
4
4
  import { GroupBlockContent } from './GroupBlockContent';
@@ -4,11 +4,13 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const style2className_1 = require("../../utils/style2className");
5
5
  const EmbeddableGroupBlocks_1 = require("./EmbeddableGroupBlocks");
6
6
  const renderBlock = ({ context, className }) => (block, i) => {
7
- const type = block?.blockType;
7
+ if (!block) {
8
+ return null;
9
+ }
10
+ const { style, blockType: type, ...rest } = block;
8
11
  if (!type || !(type in EmbeddableGroupBlocks_1.EmbeddableGroupBlocks)) {
9
12
  return null;
10
13
  }
11
- const { style, ...rest } = block;
12
14
  const classNameBlock = (0, style2className_1.style2className)(style);
13
15
  const EmbeddedBlock = EmbeddableGroupBlocks_1.EmbeddableGroupBlocks[type];
14
16
  return ((0, jsx_runtime_1.jsx)("div", { className: className, children: (0, jsx_runtime_1.jsx)(EmbeddedBlock, { context: context, ...rest, className: classNameBlock }) }, `block_${i}`));
@@ -1 +1 @@
1
- {"version":3,"file":"renderBlocksTypes.js","sourceRoot":"","sources":["../../../src/components/GroupBlock/renderBlocksTypes.tsx"],"names":[],"mappings":";;;AAEA,iEAA8D;AAE9D,mEAAgE;AAQzD,MAAM,WAAW,GACtB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAyB,EAAE,EAAE,CAClD,CAAC,KAAoB,E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E,SAAS,YACvB,uBAAC,aAAa,IAAC,OAAO,EAAE,OAAO,KAAM,IAAI,EAAE,SAAS,EAAE,cAAc,GAAI,IAD1C,SAAS,CAAC,EAAE,CAEtC,CACP,CAAC;AACJ,CAAC,CAAC;AArBS,QAAA,WAAW,eAqBpB"}
@@ -3,26 +3,25 @@ exports.InsuranceAmountBlock = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
- const Button_1 = require("../../ui-kit/Button/Button");
7
6
  const Heading_1 = require("../../ui-kit/Heading/Heading");
8
7
  const InsuranceAmountBlockInner_1 = require("./InsuranceAmountBlockInner");
9
- exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, insuranceTabs = [], button, ...rest }) => {
8
+ exports.InsuranceAmountBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, insuranceTabs = [], ...rest }) => {
10
9
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
11
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: title, headingType: "h3" }) : null, (0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]", children: insuranceTabs.map((item, i) => renderNavButton({
10
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...rest, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { className: "text-center", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? ((0, jsx_runtime_1.jsx)("div", { className: "p-1.5 bg-secondary-light w-fit m-auto rounded-md mt-[34px]", children: insuranceTabs.map((item, i) => renderNavButton({
12
11
  title: item?.title,
13
12
  i,
14
13
  activeSlideIndex,
15
14
  onClick: () => setActiveSlideIndex(i),
16
- })) }), (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
15
+ })) })) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
17
16
  context,
18
17
  className,
19
18
  insuranceTabs,
20
- }) }), button?.text ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border p-4 h-14 w-full max-w-[240px]", version: button?.version || 'primary', href: button.href, children: button.text }) })) : null] }));
19
+ }) })] }));
21
20
  });
22
21
  const renderInsuranceGalleries = ({ insuranceTabs, context, className = '', }) => {
23
22
  const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
24
23
  return insuranceGalleries?.length
25
- ? insuranceGalleries.map((cards) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { context: context, className: className, cards: cards })))
24
+ ? insuranceGalleries.map((cards, i) => ((0, jsx_runtime_1.jsx)(InsuranceAmountBlockInner_1.InsuranceAmountBlockInner, { context: context, className: className, cards: cards }, String(i))))
26
25
  : null;
27
26
  };
28
27
  function renderNavButton({ title, i, activeSlideIndex, onClick }) {
@@ -30,6 +29,6 @@ function renderNavButton({ title, i, activeSlideIndex, onClick }) {
30
29
  const btnClassName = isActiveBtn
31
30
  ? 'bg-primary-main text-white rounded-md'
32
31
  : `text-secondary-text`;
33
- return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m-md ${btnClassName}`, children: title }, String(i)));
32
+ return ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: onClick, "aria-label": title, className: `box-border px-4 py-3 text-m ${btnClassName}`, children: title }, String(i)));
34
33
  }
35
34
  //# sourceMappingURL=InsuranceAmountBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InsuranceAmountBlock.js","sourceRoot":"","sources":["../../../src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,uDAAoD;AACpD,0DAAuD;AAEvD,2EAAwE;AAI3D,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,GAAG,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC1E,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpE,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,0EAA0E,SAAS,EAAE,KAC5F,IAAI,aAEP,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,EAAE,WAAW,EAAC,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,EAClF,gCAAK,SAAS,EAAC,4DAA4D,YACxE,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAC7B,eAAe,CAAC;oBACd,KAAK,EAAE,IAAI,EAAE,KAAK;oBAClB,CAAC;oBACD,gBAAgB;oBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;iBACtC,CAAC,CACH,GACG,EACN,gCACE,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,gBAAgB,MAAM,EAAE,EAC3D,IAAI,EAAC,MAAM,YAEV,wBAAwB,CAAC;oBACxB,OAAO;oBACP,SAAS;oBACT,aAAa;iB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ACF,CAAC;AAEF,MAAM,wBAAwB,GAAG,CAAC,EAChC,aAAa,EACb,OAAO,EACP,SAAS,GAAG,EAAE,GACY,EAAE,EAAE;IAC9B,MAAM,kBAAkB,GAAG,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAE9D,OAAO,kBAAkB,EAAE,MAAM;QAC/B,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CACnC,uBAAC,qDAAyB,IAExB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,IAHP,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC;QACJ,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,SAAS,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE;IAC9D,MAAM,WAAW,GAAG,CAAC,KAAK,gBAAgB,CAAC;IAE3C,MAAM,YAAY,GAAG,WAAW;QAC9B,CAAC,CAAC,uCAAuC;QACzC,CAAC,CAAC,qBAAqB,CAAC;IAE1B,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EAEb,OAAO,EAAE,OAAO,gBACJ,KAAK,EACjB,SAAS,EAAE,+BAA+B,YAAY,EAAE,YAEvD,KAAK,IALD,MAAM,CAAC,CAAC,CAAC,CAMP,CACV,CAAC;AACJ,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import type { Picture } from '../../model/Picture';
2
- import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
2
  /**
4
3
  * @title Кнопка выбора программы
5
4
  */
@@ -10,6 +9,8 @@ export declare type CardItem = {
10
9
  fee?: number;
11
10
  /** @title Страховая сумма */
12
11
  sum?: number;
12
+ /** @title Ссылка на программу*/
13
+ href?: string;
13
14
  };
14
15
  /**
15
16
  * @title Вкладка
@@ -28,5 +29,4 @@ export interface InsuranceAmountBlockContent {
28
29
  title?: string;
29
30
  /** @title Список вкладок */
30
31
  insuranceTabs?: InsuranceAmountBlockTabs[];
31
- button?: ButtonProps;
32
32
  }
@@ -4,6 +4,7 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const renderArrows_1 = require("../../ui-kit/Button/renderArrows");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
+ const Button_1 = require("../../ui-kit/Button/Button");
7
8
  const addSpacesBetweenNumbers_1 = require("../../utils/addSpacesBetweenNumbers");
8
9
  exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, cards = [] }) => {
9
10
  const [activeSlideIndex, setActiveSlideIndex] = context.useState(0);
@@ -15,20 +16,21 @@ exports.InsuranceAmountBlockInner = (0, uni_jsx_1.JSX)(({ className = '', contex
15
16
  const showNextButton = isGalleryScrollAvailable && galleryLength > tabsShift + 2;
16
17
  const isLastShift = galleryLength === tabsShift + 2;
17
18
  const showPrevButton = tabsShift > 0;
18
- return ((0, jsx_runtime_1.jsx)("section", { className: `min-w-full ${className}`, children: (0, jsx_runtime_1.jsxs)("div", { className: "relative mt-7 overflow-hidden", children: [galleryLength
19
- ? renderGallery({
20
- tabsShift,
21
- cards,
22
- activeSlideIndex,
23
- isLastShift,
24
- setActiveSlideIndex,
25
- })
26
- : null, (0, renderArrows_1.renderArrows)({
27
- handler: [handlePrevClick, handleNextClick],
28
- isShown: [showPrevButton, showNextButton],
29
- btnClass: ['left-[50px]', 'right-[50px]'],
30
- className: 'top-[62px]',
31
- }), showPrevButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white" })) : null, showNextButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white" })) : null] }) }));
19
+ const activeHref = cards[activeSlideIndex]?.href;
20
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `min-w-full text-center ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative mt-7 overflow-hidden", children: [galleryLength
21
+ ? renderGallery({
22
+ tabsShift,
23
+ cards,
24
+ activeSlideIndex,
25
+ isLastShift,
26
+ setActiveSlideIndex,
27
+ })
28
+ : null, (0, renderArrows_1.renderArrows)({
29
+ handler: [handlePrevClick, handleNextClick],
30
+ isShown: [showPrevButton, showNextButton],
31
+ btnClass: ['left-[50px]', 'right-[50px]'],
32
+ className: 'top-[62px]',
33
+ }), showPrevButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white" })) : null, showNextButton ? ((0, jsx_runtime_1.jsx)("div", { className: "absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white" })) : null] }), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "w-[240px] p-4 text-center", version: "primary", href: activeHref, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443" })] }));
32
34
  });
33
35
  function renderGallery({ tabsShift, cards, activeSlideIndex, isLastShift, setActiveSlideIndex, }) {
34
36
  const tabsShiftWidth = isLastShift ? tabsShift * 460 - 240 : tabsShift * 460;
@@ -44,10 +46,10 @@ function renderSlide({ slide, i, activeSlideIndex, onClick }) {
44
46
  const btnClassName = isActiveBtn
45
47
  ? 'shadow-dark-blue/42 border-primary-main'
46
48
  : `ease-in duration-300 border-main-stroke`;
47
- return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[108px] w-[108px] p-3 rounded-full bg-secondary-light mr-[30px]`, image: slide.icon, width: "24", height: "24" })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
49
+ return ((0, jsx_runtime_1.jsxs)("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "p-3 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "70", height: "70" })) : null, (0, jsx_runtime_1.jsxs)("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActiveBtn)] }, String(i)));
48
50
  }
49
51
  function renderValueBlock(title, sum) {
50
- return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col text-left", children: [(0, jsx_runtime_1.jsxs)("span", { className: "whitespace-pre text-title-2xs", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(sum), " \u20BD"] }), (0, jsx_runtime_1.jsx)("span", { className: "whitespace-pre text-secondary-text font-light text-base mt-1", children: title })] }));
52
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col text-left whitespace-pre", children: [(0, jsx_runtime_1.jsxs)("span", { className: "text-h6", children: [(0, addSpacesBetweenNumbers_1.addSpacesBetweenNumbers)(sum), " \u20BD"] }), (0, jsx_runtime_1.jsx)("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
51
53
  }
52
54
  function renderDoneIcon(isActive) {
53
55
  return isActive ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: `h-[24px] w-[24px] min-w-[24px] min-h-[24px] absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;