@redneckz/wildless-cms-uni-blocks 0.14.840 → 0.14.842

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 (497) hide show
  1. package/bin/migration-scripts/0.14.832.js +1 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +63 -346
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  6. package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  7. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  8. package/dist/components/Blocks.js +0 -6
  9. package/dist/components/Blocks.js.map +1 -1
  10. package/dist/components/Blocks.mobile.js +0 -4
  11. package/dist/components/Blocks.mobile.js.map +1 -1
  12. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  13. package/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  14. package/dist/components/CardTransfer/CardTransfer.js +1 -8
  15. package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  16. package/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  17. package/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  18. package/dist/components/Carousel/renderCarouselCards.js +2 -2
  19. package/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  20. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  21. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  22. package/dist/components/Footer/TextInformationLink.js +1 -1
  23. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  24. package/dist/components/Header/HeaderTopMenu.js +1 -1
  25. package/dist/components/Header/HeaderTopMenu.js.map +1 -1
  26. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  27. package/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  28. package/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  29. package/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  30. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  31. package/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  32. package/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  33. package/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  34. package/dist/ui-kit/InputRange/InputRange.js +1 -1
  35. package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  36. package/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  37. package/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  38. package/dist/ui-kit/Loader/Loader.d.ts +1 -1
  39. package/dist/ui-kit/Loader/Loader.js.map +1 -1
  40. package/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  41. package/lib/common.css +1 -1
  42. package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  43. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  44. package/lib/components/Blocks.js +0 -6
  45. package/lib/components/Blocks.js.map +1 -1
  46. package/lib/components/Blocks.mobile.js +0 -4
  47. package/lib/components/Blocks.mobile.js.map +1 -1
  48. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  49. package/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  50. package/lib/components/CardTransfer/CardTransfer.js +1 -8
  51. package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  52. package/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  53. package/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  54. package/lib/components/Carousel/renderCarouselCards.js +2 -2
  55. package/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  56. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  57. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  58. package/lib/components/Footer/TextInformationLink.js +1 -1
  59. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  60. package/lib/components/Header/HeaderTopMenu.js +1 -1
  61. package/lib/components/Header/HeaderTopMenu.js.map +1 -1
  62. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  63. package/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  64. package/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  65. package/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  66. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  67. package/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  68. package/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  69. package/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  70. package/lib/ui-kit/InputRange/InputRange.js +1 -1
  71. package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  72. package/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  73. package/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  74. package/lib/ui-kit/Loader/Loader.d.ts +1 -1
  75. package/lib/ui-kit/Loader/Loader.js.map +1 -1
  76. package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +4 -1
  77. package/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  78. package/mobile/bundle/bundle.umd.js +35 -246
  79. package/mobile/bundle/bundle.umd.min.js +1 -1
  80. package/mobile/bundle/ui-kit/Loader/Loader.d.ts +1 -1
  81. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
  82. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  83. package/mobile/dist/components/Blocks.js +0 -4
  84. package/mobile/dist/components/Blocks.js.map +1 -1
  85. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  86. package/mobile/dist/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  87. package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -8
  88. package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
  89. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js +1 -1
  90. package/mobile/dist/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  91. package/mobile/dist/components/Carousel/renderCarouselCards.js +2 -2
  92. package/mobile/dist/components/Carousel/renderCarouselCards.js.map +1 -1
  93. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  94. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  95. package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
  96. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  97. package/mobile/dist/components/Header/HeaderTopMenu.js +1 -1
  98. package/mobile/dist/components/Header/HeaderTopMenu.js.map +1 -1
  99. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  100. package/mobile/dist/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  101. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js +1 -1
  102. package/mobile/dist/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  103. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  104. package/mobile/dist/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  105. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js +1 -1
  106. package/mobile/dist/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  107. package/mobile/dist/ui-kit/InputRange/InputRange.js +1 -1
  108. package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
  109. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js +1 -1
  110. package/mobile/dist/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  111. package/mobile/dist/ui-kit/Loader/Loader.d.ts +1 -1
  112. package/mobile/dist/ui-kit/Loader/Loader.js.map +1 -1
  113. package/mobile/dist/ui-kit/ProgressBar/ProgressBar.js +1 -1
  114. package/mobile/lib/common.css +1 -1
  115. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
  116. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  117. package/mobile/lib/components/Blocks.js +0 -4
  118. package/mobile/lib/components/Blocks.js.map +1 -1
  119. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js +1 -1
  120. package/mobile/lib/components/CalculatorRefinancing/CalculatorRefinancing.js.map +1 -1
  121. package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -8
  122. package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
  123. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js +1 -1
  124. package/mobile/lib/components/CardTransfer/SubmitFailedDialog.js.map +1 -1
  125. package/mobile/lib/components/Carousel/renderCarouselCards.js +2 -2
  126. package/mobile/lib/components/Carousel/renderCarouselCards.js.map +1 -1
  127. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  128. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  129. package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
  130. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  131. package/mobile/lib/components/Header/HeaderTopMenu.js +1 -1
  132. package/mobile/lib/components/Header/HeaderTopMenu.js.map +1 -1
  133. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js +1 -1
  134. package/mobile/lib/retail/components/CaptchaDialog/CaptchaDialog.js.map +1 -1
  135. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js +1 -1
  136. package/mobile/lib/retail/components/DraftDialog/DraftDialog.js.map +1 -1
  137. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js +1 -1
  138. package/mobile/lib/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
  139. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js +1 -1
  140. package/mobile/lib/ui-kit/Calculator/CalculatorStyle.js.map +1 -1
  141. package/mobile/lib/ui-kit/InputRange/InputRange.js +1 -1
  142. package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
  143. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js +1 -1
  144. package/mobile/lib/ui-kit/LinkButton/ButtonInner.js.map +1 -1
  145. package/mobile/lib/ui-kit/Loader/Loader.d.ts +1 -1
  146. package/mobile/lib/ui-kit/Loader/Loader.js.map +1 -1
  147. package/mobile/lib/ui-kit/ProgressBar/ProgressBar.js +1 -1
  148. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  149. package/mobile/src/components/Blocks.ts +0 -4
  150. package/mobile/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  151. package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -18
  152. package/mobile/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  153. package/mobile/src/components/Carousel/renderCarouselCards.tsx +2 -6
  154. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  155. package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
  156. package/mobile/src/components/Header/HeaderTopMenu.tsx +1 -5
  157. package/mobile/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  158. package/mobile/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  159. package/mobile/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  160. package/mobile/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  161. package/mobile/src/ui-kit/InputRange/InputRange.tsx +1 -1
  162. package/mobile/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  163. package/mobile/src/ui-kit/Loader/Loader.tsx +1 -1
  164. package/mobile/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
  165. package/package.json +2 -2
  166. package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
  167. package/src/components/Blocks.mobile.ts +0 -4
  168. package/src/components/Blocks.ts +0 -6
  169. package/src/components/CalculatorRefinancing/CalculatorRefinancing.tsx +1 -3
  170. package/src/components/CardTransfer/CardTransfer.tsx +5 -18
  171. package/src/components/CardTransfer/SubmitFailedDialog.tsx +2 -2
  172. package/src/components/Carousel/renderCarouselCards.tsx +2 -6
  173. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  174. package/src/components/Footer/TextInformationLink.tsx +1 -1
  175. package/src/components/Header/HeaderTopMenu.tsx +1 -5
  176. package/src/icons/IconName.ts +4 -4
  177. package/src/retail/components/CaptchaDialog/CaptchaDialog.tsx +4 -4
  178. package/src/retail/components/DraftDialog/DraftDialog.tsx +1 -1
  179. package/src/retail/components/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
  180. package/src/ui-kit/Calculator/CalculatorStyle.tsx +1 -1
  181. package/src/ui-kit/InputRange/InputRange.tsx +1 -1
  182. package/src/ui-kit/LinkButton/ButtonInner.tsx +1 -1
  183. package/src/ui-kit/Loader/Loader.tsx +1 -1
  184. package/src/ui-kit/ProgressBar/ProgressBar.fixture.tsx +4 -1
  185. package/src/ui-kit/ProgressBar/ProgressBar.tsx +1 -1
  186. package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  187. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  188. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  189. package/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  190. package/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  191. package/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  192. package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  193. package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  194. package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  195. package/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  196. package/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  197. package/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  198. package/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  199. package/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  200. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  201. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  202. package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  203. package/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  204. package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  205. package/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  206. package/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  207. package/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  208. package/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  209. package/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  210. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  211. package/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  212. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  213. package/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  214. package/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  215. package/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  216. package/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  217. package/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  218. package/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  219. package/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  220. package/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  221. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  222. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  223. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  224. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  225. package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  226. package/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  227. package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  228. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  229. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  230. package/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  231. package/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  232. package/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  233. package/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  234. package/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  235. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  236. package/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  237. package/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  238. package/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  239. package/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  240. package/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  241. package/dist/components/ExchangeRateTile/renderInput.js +0 -16
  242. package/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  243. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  244. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  245. package/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  246. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  247. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  248. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  249. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  250. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  251. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  252. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  253. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  254. package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  255. package/dist/ui-kit/Rating/Rating.d.ts +0 -1
  256. package/dist/ui-kit/Rating/Rating.js +0 -21
  257. package/dist/ui-kit/Rating/Rating.js.map +0 -1
  258. package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  259. package/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  260. package/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  261. package/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  262. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +0 -5
  263. package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +0 -5
  264. package/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  265. package/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  266. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  267. package/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  268. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  269. package/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  270. package/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  271. package/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  272. package/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  273. package/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  274. package/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  275. package/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  276. package/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  277. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  278. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  279. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  280. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  281. package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  282. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +0 -5
  283. package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +0 -5
  284. package/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  285. package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  286. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  287. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  288. package/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  289. package/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  290. package/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  291. package/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  292. package/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  293. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  294. package/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  295. package/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  296. package/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  297. package/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  298. package/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  299. package/lib/components/ExchangeRateTile/renderInput.js +0 -13
  300. package/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  301. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  302. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  303. package/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  304. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  305. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +0 -5
  306. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  307. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  308. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  309. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  310. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  311. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  312. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  313. package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  314. package/lib/ui-kit/Rating/Rating.d.ts +0 -1
  315. package/lib/ui-kit/Rating/Rating.fixture.d.ts +0 -5
  316. package/lib/ui-kit/Rating/Rating.js +0 -18
  317. package/lib/ui-kit/Rating/Rating.js.map +0 -1
  318. package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  319. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  320. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  321. package/mobile/bundle/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  322. package/mobile/bundle/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  323. package/mobile/bundle/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  324. package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  325. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  326. package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  327. package/mobile/bundle/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  328. package/mobile/bundle/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  329. package/mobile/bundle/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  330. package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +0 -11
  331. package/mobile/bundle/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  332. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  333. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  334. package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  335. package/mobile/bundle/ui-kit/Rating/Rating.d.ts +0 -1
  336. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  337. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js +0 -17
  338. package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  339. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  340. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +0 -11
  341. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +0 -1
  342. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  343. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +0 -2
  344. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  345. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  346. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js +0 -10
  347. package/mobile/dist/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  348. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  349. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +0 -23
  350. package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  351. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  352. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +0 -10
  353. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  354. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  355. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -73
  356. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  357. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  358. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +0 -26
  359. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  360. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  361. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  362. package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  363. package/mobile/dist/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  364. package/mobile/dist/components/ExchangeRateTile/calculateResult.js +0 -11
  365. package/mobile/dist/components/ExchangeRateTile/calculateResult.js.map +0 -1
  366. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  367. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js +0 -21
  368. package/mobile/dist/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  369. package/mobile/dist/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  370. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js +0 -10
  371. package/mobile/dist/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  372. package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +0 -11
  373. package/mobile/dist/components/ExchangeRateTile/renderInput.js +0 -16
  374. package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +0 -1
  375. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  376. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -13
  377. package/mobile/dist/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  378. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  379. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -33
  380. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  381. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  382. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  383. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  384. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  385. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -58
  386. package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  387. package/mobile/dist/ui-kit/Rating/Rating.d.ts +0 -1
  388. package/mobile/dist/ui-kit/Rating/Rating.js +0 -21
  389. package/mobile/dist/ui-kit/Rating/Rating.js.map +0 -1
  390. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +0 -4
  391. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js +0 -15
  392. package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +0 -1
  393. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +0 -6
  394. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +0 -9
  395. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +0 -1
  396. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +0 -15
  397. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +0 -2
  398. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +0 -1
  399. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.d.ts +0 -6
  400. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js +0 -8
  401. package/mobile/lib/components/ExchangeRateTile/CurrencyProps.js.map +0 -1
  402. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.d.ts +0 -7
  403. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +0 -21
  404. package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +0 -1
  405. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.d.ts +0 -6
  406. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +0 -8
  407. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +0 -1
  408. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +0 -24
  409. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +0 -71
  410. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +0 -1
  411. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +0 -5
  412. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +0 -24
  413. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +0 -1
  414. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +0 -9
  415. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js +0 -2
  416. package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.js.map +0 -1
  417. package/mobile/lib/components/ExchangeRateTile/calculateResult.d.ts +0 -2
  418. package/mobile/lib/components/ExchangeRateTile/calculateResult.js +0 -7
  419. package/mobile/lib/components/ExchangeRateTile/calculateResult.js.map +0 -1
  420. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.d.ts +0 -8
  421. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js +0 -18
  422. package/mobile/lib/components/ExchangeRateTile/callbackCurrencySelect.js.map +0 -1
  423. package/mobile/lib/components/ExchangeRateTile/formatCurrency.d.ts +0 -1
  424. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js +0 -7
  425. package/mobile/lib/components/ExchangeRateTile/formatCurrency.js.map +0 -1
  426. package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +0 -11
  427. package/mobile/lib/components/ExchangeRateTile/renderInput.js +0 -13
  428. package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +0 -1
  429. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.d.ts +0 -9
  430. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js +0 -10
  431. package/mobile/lib/components/ExchangeRateTile/useFetchExchangeRateData.js.map +0 -1
  432. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +0 -5
  433. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +0 -31
  434. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +0 -1
  435. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +0 -31
  436. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js +0 -2
  437. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.js.map +0 -1
  438. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +0 -7
  439. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +0 -56
  440. package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +0 -1
  441. package/mobile/lib/ui-kit/Rating/Rating.d.ts +0 -1
  442. package/mobile/lib/ui-kit/Rating/Rating.js +0 -18
  443. package/mobile/lib/ui-kit/Rating/Rating.js.map +0 -1
  444. package/mobile/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  445. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  446. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  447. package/mobile/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  448. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  449. package/mobile/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  450. package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  451. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  452. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  453. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  454. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  455. package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  456. package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  457. package/mobile/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  458. package/mobile/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  459. package/mobile/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  460. package/mobile/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  461. package/mobile/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  462. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  463. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  464. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  465. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  466. package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  467. package/mobile/src/ui-kit/Rating/Rating.tsx +0 -39
  468. package/src/components/CarouselLinks/CarouselLinkButton.tsx +0 -36
  469. package/src/components/CarouselLinks/CarouselLinks.example.json +0 -31
  470. package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +0 -83
  471. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +0 -40
  472. package/src/components/CarouselLinks/CarouselLinks.tsx +0 -50
  473. package/src/components/CarouselLinks/CarouselLinks.ui.json +0 -16
  474. package/src/components/CarouselLinks/CarouselLinksContent.ts +0 -22
  475. package/src/components/ExchangeRateTile/CurrencyProps.ts +0 -6
  476. package/src/components/ExchangeRateTile/CurrencyTable.tsx +0 -64
  477. package/src/components/ExchangeRateTile/CurrentLocation.tsx +0 -28
  478. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +0 -155
  479. package/src/components/ExchangeRateTile/ExchangeRateTile.example.json +0 -12
  480. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.tsx +0 -19
  481. package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +0 -21
  482. package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +0 -60
  483. package/src/components/ExchangeRateTile/ExchangeRateTile.ui.json +0 -8
  484. package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +0 -11
  485. package/src/components/ExchangeRateTile/calculateResult.ts +0 -9
  486. package/src/components/ExchangeRateTile/callbackCurrencySelect.ts +0 -25
  487. package/src/components/ExchangeRateTile/formatCurrency.ts +0 -8
  488. package/src/components/ExchangeRateTile/renderInput.tsx +0 -43
  489. package/src/components/ExchangeRateTile/useFetchExchangeRateData.ts +0 -25
  490. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.example.json +0 -89
  491. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +0 -62
  492. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +0 -82
  493. package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.ui.json +0 -21
  494. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +0 -35
  495. package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +0 -145
  496. package/src/ui-kit/Rating/Rating.fixture.tsx +0 -7
  497. package/src/ui-kit/Rating/Rating.tsx +0 -39
@@ -513,7 +513,7 @@
513
513
  const ButtonInner = JSX((props) => {
514
514
  const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
515
515
  const iconHideStyle = isWithText(props) && 'hidden lg:block';
516
- return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-3xs' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
516
+ return (jsxs("div", { className: style(buttonStyle$1(props), 'flex gap-xs'), children: [appendLeft ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendLeft })) : null, isWithText(props) ? (jsxs("div", { className: "whitespace-pre", children: [aboveText ? jsx("div", { className: "text-xs font-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s' : 'text-l'}`, children: text })] })) : null, appendRight ? (jsx("div", { className: style(iconHideStyle, iconStyleMap$1[version]), children: appendRight })) : null] }));
517
517
  });
518
518
  const buttonStyle$1 = (props) => {
519
519
  const { version, aboveText, rounded } = props;
@@ -751,10 +751,10 @@
751
751
  const and = (a, b) => (...args) => a(...args) && b(...args);
752
752
 
753
753
  const table = (...table) => (...input) => {
754
- const [, unit] = assertNonEmpty$1(table.find(([predicate]) => predicate(...input)));
754
+ const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(...input)));
755
755
  return unit(...input);
756
756
  };
757
- function assertNonEmpty$1(value) {
757
+ function assertNonEmpty(value) {
758
758
  if (!value) {
759
759
  throw new Error('Value should be fulfilled');
760
760
  }
@@ -1578,7 +1578,7 @@
1578
1578
  const handleChange = useCallback((ev) => {
1579
1579
  onChange && onChange(parseDecimal(ev.target?.value));
1580
1580
  }, [onChange]);
1581
- return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m mt-xs box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
1581
+ return (jsxs("div", { className: className, children: [jsxs("label", { className: "block relative", children: [title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: title })) : null, jsx("input", { className: style('text-h3 w-full h-14', 'pl-m box-border', 'text-primary-text', inputValidStyle, inputDisabledStyle), disabled: disabled, onChange: handleChange, ...normalizedProps }), renderRangeWithTicks({ list, min, max, step, disabled, value, onChange })] }), renderRangeCaption(items)] }));
1582
1582
  });
1583
1583
  const closestValue = (list) => (_) => list.reduce((prev, curr) => (Math.abs(curr - _) < Math.abs(prev - _) ? curr : prev));
1584
1584
  const renderRangeCaption = (items) => (jsx("div", { className: "flex justify-between my-xs", children: items.map((item, i) => (jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: item }, String(i)))) }));
@@ -3970,7 +3970,7 @@
3970
3970
  const CalculatorLayout = JSX(({ className, title, children, ...rest }) => (jsxs(BlockWrapper, { className: style('space-y-xl', className), defaultPadding: "p-4xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title }) : null, children] })));
3971
3971
 
3972
3972
  const CalculatorStyle = {
3973
- wrapper: 'flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl',
3973
+ wrapper: 'flex flex-col justify-between lg:flex-row gap-4xl',
3974
3974
  input: 'flex flex-col lg:w-1/2 gap-2xl',
3975
3975
  result: 'flex flex-col gap-y-xl min-w-52',
3976
3976
  };
@@ -5141,7 +5141,7 @@
5141
5141
  (async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
5142
5142
  }, []);
5143
5143
  useEffect(handleCreateCaptcha, []);
5144
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md", children: [jsxs("div", { className: "flex h-36 w-72", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-[300px]", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-[310px] justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5144
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg", head: jsx(Logo, {}), onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center", children: [jsxs("div", { className: "flex", children: [jsx("img", { className: "grow", src: captcha }), jsx(Button, { className: "w-8", embedded: true, onClick: handleCreateCaptcha, children: jsx(Icon, { iconVersion: "normal", name: "RefreshIcon" }) })] }), jsx(Input, { className: "w-80", onChange: setCode, value: code, placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0434 \u0441 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438" }), hasError ? jsx("div", { className: "text-error", children: "\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043E\u0434" }) : null, jsxs("div", { className: "flex w-80 justify-between", children: [jsx(Button, { version: "secondary", onClick: close, children: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F" }), jsx(SubmitButton$1, { version: "secondary", disabled: !code, onClick: handleCheckCaptcha, children: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C" })] }), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5145
5145
  });
5146
5146
 
5147
5147
  const InputCode = JSX(({ values, setValues, hasError, errorText }) => {
@@ -5266,7 +5266,7 @@
5266
5266
  return (jsx(Dialog, { className: "my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl p-m", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-xl items-center rounded-md", children: [jsx(Headline, { className: "w-full", title: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043D\u043E\u043C\u0435\u0440 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430", description: `Мы отправили код на ${phone}`, headlineVersion: "XS", isEmbedded: true, as: "h6" }), code ? (jsx(InputCode, { values: values, setValues: setValues, errorText: errorText, hasError: hasError })) : null, renderText$1(timeNextReq, handleSendCode), withDescription ? (jsxs(RichText, { itemSize: "list-s", children: [jsx("span", { children: "\u0412\u0432\u043E\u0434\u044F \u043A\u043E\u0434, \u044F \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044E, \u0447\u0442\u043E \u043E\u0437\u043D\u0430\u043A\u043E\u043C\u043B\u0435\u043D \u0438 \u043F\u043E\u0434\u043F\u0438\u0441\u044B\u0432\u0430\u044E: " }), jsx("ul", { children: consents?.map((_, i) => (jsx("li", { children: _ }, `${_}-${i}`))) })] })) : null, renderNextButton(isSubmitButtonDisabled, handleSubmit), isLoading ? jsx(Loader, { blur: false }) : null] }) }));
5267
5267
  });
5268
5268
  const renderNextButton = (disabled, onClick) => (jsx(SubmitButton, { text: "\u0414\u0430\u043B\u0435\u0435", disabled: disabled, onClick: onClick }));
5269
- const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "ml-1", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
5269
+ const renderText$1 = (timeNextReq, handleSendCode) => timeNextReq ? (jsxs("div", { className: "flex flex-row text-l font-light text-base", children: ["\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434 \u043C\u043E\u0436\u043D\u043E \u0447\u0435\u0440\u0435\u0437", jsx(Timer, { className: "pl-2xs", seconds: timeNextReq })] })) : (jsx(Button, { embedded: true, onClick: handleSendCode, children: jsx(ButtonTitle, { children: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u043A\u043E\u0434" }) }));
5270
5270
 
5271
5271
  const defaultConsentText = {
5272
5272
  title: 'Подпишите согласие на запрос в БКИ',
@@ -5603,7 +5603,7 @@
5603
5603
  const handleGoToNewTask = useCallback(() => {
5604
5604
  navigator.assign(isCredit ? '/natural/loans/all-goals' : '/natural/creditcards/svoya');
5605
5605
  }, []);
5606
- return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs md:mt-0 mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
5606
+ return (jsx(Dialog, { className: "my-6xl max-w-4xl w-full min-h-fit mx-auto rounded-xl py-0", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center mt-xs mx-6xl", children: [jsx(Heading, { className: "whitespace-pre-wrap text-center", title: "\u041D\u0430\u0448\u043B\u0438 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A \u0432\u0430\u0448\u0435\u0439 \u0437\u0430\u044F\u0432\u043A\u0438", headingType: "h5" }), jsxs("div", { className: "flex flex-col gap-m max-w-lg", children: [jsx(DraftActionButton, { title: "\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435 \u0447\u0435\u0440\u043D\u043E\u0432\u0438\u043A\u0430", icon: "BankColorIcon", description: createdDate ? `Черновик от ${formatDate(new Date(createdDate))}` : '', onClick: handleGoToDraft }), jsx(DraftActionButton, { title: isFromLead ? 'Продолжить заполнение текущей заявки' : 'Создать новую заявку', icon: "NewLoanIcon", description: "\u041D\u0430 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u0438\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0430", onClick: isFromLead ? onClose : handleGoToNewTask })] })] }) }));
5607
5607
  });
5608
5608
 
5609
5609
  const EmptyDraftDialog = JSX(function ({ onClose = noop }) {
@@ -6323,7 +6323,7 @@
6323
6323
  const inactiveDotStyle = 'w-2 h-2 opacity-30';
6324
6324
  const renderDotButton = ({ activeIndex, onClick, listType = 'horizontal-list' }) => (_, idx) => (jsx("div", { className: style(dotStyle, idx === activeIndex ? activeDotStyles[listType] : inactiveDotStyle), role: "button", "aria-hidden": true, onClick: () => onClick(idx) }, String(idx)));
6325
6325
 
6326
- const renderNavButton$2 = ({ activeIndex, onClick }) => (nav, i) => {
6326
+ const renderNavButton = ({ activeIndex, onClick }) => (nav, i) => {
6327
6327
  const isActive = i === activeIndex;
6328
6328
  const btnClassName = isActive
6329
6329
  ? 'min-w-[350px] bg-white shadow-dark-blue border-none p-6'
@@ -6428,7 +6428,7 @@
6428
6428
  }
6429
6429
  }, [containerRef?.current]);
6430
6430
  if (navButtons?.length && !isMobileMode) {
6431
- return (jsx(SwipeListContainer, { containerRef: navRef, snapAlign: "snap-start", itemClassName: "h-36 flex items-stretch w-screen", gap: 8, children: navButtons.map(renderNavButton$2({ activeIndex, onClick: onChangeActiveIndex })) }));
6431
+ return (jsx(SwipeListContainer, { containerRef: navRef, snapAlign: "snap-start", itemClassName: "h-36 flex items-stretch w-screen", gap: 8, children: navButtons.map(renderNavButton({ activeIndex, onClick: onChangeActiveIndex })) }));
6432
6432
  }
6433
6433
  else if (dotCount) {
6434
6434
  return (jsx("div", { className: style('flex gap-xs', containerStyles[listType], version ? 'group' : '', className, { 'pb-xl': navButtons?.length && isMobileMode }), "data-ver": version, children: Array.from({ length: dotCount })
@@ -6623,7 +6623,7 @@
6623
6623
  const isMobileMode = useMobileMode();
6624
6624
  return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: getAlignStyles(isMobileMode), title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl", role: "list", children: benefitList.map(renderBenefit) })) : null] }));
6625
6625
  });
6626
- const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", iconBgVersion: iconBgVersion, ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), __html ? jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) : null] })) : null] }, String(i)));
6626
+ const renderBenefit = ({ label, description, __html, icon, isDotted = false, iconBgVersion }, i) => (jsxs("div", { className: "flex gap-m items-center @md:basis-1/2 @md:max-w-lg", role: "listitem", children: [icon?.icon ? (jsx(RoundedIcon, { className: "shrink-0", iconBgVersion: iconBgVersion, ...icon })) : null, icon?.src ? jsx(Img, { className: "shrink-0", image: icon }) : null, label ? (jsxs("div", { className: "@sm:h-full space-y-xs", children: [jsx(Heading, { headingType: "h6", children: label }), jsx(Text, { size: "text-l", color: "text-secondary-text group-data-secondary:text-white/80", font: "font-light", children: description }), __html ? jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) : null] })) : null] }, String(i)));
6627
6627
 
6628
6628
  const bonusBenefitStyles = 'items-center';
6629
6629
 
@@ -7275,7 +7275,7 @@
7275
7275
  ...field('moneyExtra'),
7276
7276
  value: calcParams.moneyExtra,
7277
7277
  })
7278
- : null, jsx("div", { className: "sm:hidden pt-1 pb-4 border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
7278
+ : null, jsx("div", { className: "sm:hidden pb-m border-b border-main-divider", children: paymentTypeElement })] }), jsxs("div", { className: style(CalculatorStyle.result, '@4xl:w-1/2'), children: [jsx(CalculatorValue, { title: "\u041F\u043E\u043B\u043D\u0430\u044F \u0441\u0442\u043E\u0438\u043C\u043E\u0441\u0442\u044C \u043A\u0440\u0435\u0434\u0438\u0442\u0430", value: calcSource?.totalLoanCost }), jsx(CalculatorValue, { title: "\u0421\u0442\u0430\u0432\u043A\u0430 \u043E\u0442", value: minRate, fractionDigits: 2, postfix: "%" }), jsx(CalculatorValue, { title: "\u0415\u0436\u0435\u043C\u0435\u0441\u044F\u0447\u043D\u044B\u0439 \u043F\u043B\u0430\u0442\u0451\u0436", value: calcParams.monthlyPayment, postfix: "\u20BD" }), calcParams.benefit > 0 ? (jsx(CalculatorValue, { title: "\u0412\u044B\u0433\u043E\u0434\u0430 \u0432 \u043C\u0435\u0441\u044F\u0446", value: calcParams.benefit, postfix: "\u20BD" })) : null, jsx("div", { className: "hidden sm:block mb-lg", children: paymentTypeElement }), renderButtonsSection(buttons, { isVertical: true }), renderFootnote(footnote)] })] }) }));
7279
7279
  });
7280
7280
  const renderCreditParamsForm = (params, field) => (jsxs("div", { className: "space-y-lg sm:space-y-s", children: [params.isShowSalaryClient ? (jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", ...field('isSalaryClient'), value: params.isSalaryClient })) : null, params.isShowInsurance ? (jsx(Checkbox, { text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", ...field('isInsurance'), value: params.isInsurance })) : null, jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u0443\u044E \u0441\u0443\u043C\u043C\u0443", ...field('isExtraMoney'), value: params.isExtraMoney })] }));
7281
7281
 
@@ -7340,7 +7340,7 @@
7340
7340
  const FAILED_TITLE = 'Ошибка перевода';
7341
7341
  const SubmitFailedDialog = ({ onClose, errorCode, errorMessage, }) => {
7342
7342
  const description = errorCode ? `Код ошибки - ${errorCode}` : 'Пожалуйста, повторите позднее';
7343
- return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl px-4 pt-4 pb-8 grid gap-4 grid-cols-12", children: [jsxs("div", { className: "col-span-8", children: [" ", errorMessage] }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7343
+ return (jsx(Dialog, { className: "my-6xl max-w-lg w-full min-h-fit mx-auto", onClose: onClose, children: jsxs("div", { className: "flex flex-col gap-lg items-center rounded-md space-x-m", children: [jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' }, width: "136", height: "136" }), jsx(Headline, { className: "w-full", title: FAILED_TITLE, description: description, headlineVersion: "XS", isEmbedded: true }), errorMessage ? (jsxs("div", { className: "bg-secondary-dark rounded-xl p-m grid gap-m grid-cols-12", children: [jsx("div", { className: "col-span-8", children: errorMessage }), jsx("div", { className: "col-span-4", children: jsx(Img, { image: { icon: 'ResponseFailIcon', iconVersion: 'normal' } }) })] })) : null] }) }));
7344
7344
  };
7345
7345
 
7346
7346
  const useSubmitCardTransfer = (formType) => {
@@ -7375,16 +7375,11 @@
7375
7375
  amount: 1500,
7376
7376
  };
7377
7377
  const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, button, formType = 'private', ...rest }) => {
7378
- const [isDisabled, { setValue: setDisabled }] = useBool(false);
7379
7378
  const handleSubmit = useSubmitCardTransfer(formType);
7380
7379
  const [{ amount }, { field, onSubmit }] = useForm(INITIAL_FORM_STATE, {
7381
7380
  onSubmit: handleSubmit,
7382
7381
  });
7383
- // TODO: dont set state in useEffect
7384
- useEffect(() => {
7385
- setDisabled(amount <= 0);
7386
- }, [amount]);
7387
- return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "pb-lg xl:pb-4xl self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: !isDisabled, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full mt-lg", disabled: isDisabled, children: button.text })) : null] })] }));
7382
+ return (jsxs(BlockWrapper, { className: style('flex flex-col gap-4xl items-center', className), defaultPadding: "p-6xl", ...rest, children: [title ? (jsx(Heading, { className: "self-start xl:self-center", headingType: "h3", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-md space-y-lg", method: "POST", onSubmit: onSubmit, children: [jsx(CurrencyInput, { valid: amount > 0, label: label, max: MAX_AMOUNT, min: MIN_AMOUNT, ...field('amount', { parse: Number, format: String }) }), jsx("input", { type: "hidden", name: "amount", value: amount }), button?.text ? (jsx(SubmitButton$1, { className: "w-full", disabled: amount <= 0, children: button.text })) : null] })] }));
7388
7383
  });
7389
7384
 
7390
7385
  const ITEMS_GAP = 16;
@@ -7416,9 +7411,9 @@
7416
7411
  : null] }, String(blockIndex))),
7417
7412
  });
7418
7413
  };
7419
- const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-3xl sm:pt-16'));
7414
+ const cardWrapperStyle = (_, { someCardsHighlighted }) => style(cardBaseStyle, someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl' : 'pt-16'));
7420
7415
  const cardStyle = (_, { someCardsHighlighted, showBorder, cardSize = 'normal', }) => style(cardBaseStyle, 'min-w-80', CARD_SIZE_MAP[cardSize], // TODO fix для RecommendationCard
7421
- someCardsHighlighted && (isCardHighlighted(_) ? 'pt-3xl sm:pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
7416
+ someCardsHighlighted && (isCardHighlighted(_) ? 'pt-16' : 'pt-3xl'), getBorderStyle(showBorder), showBorder && 'h-full');
7422
7417
  const isCardHighlighted = (_) => _?.content && 'isHighlighting' in _.content && _.content.isHighlighting;
7423
7418
 
7424
7419
  const VISIBLE_ITEM_COUNT = 1;
@@ -7463,19 +7458,6 @@
7463
7458
  const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors = [], align = 'text-left', padding, ...rest }) => (jsx(BlockWrapper, { className: style('flex flex-col justify-left', className), defaultPadding: "p-2xl", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, title: jsx(Headline, { title: title, description: description, headlineVersion: "XS", isEmbedded: true, align: align, className: "min-h-24" }), rightImage: image?.src ? (jsx(Img, { className: "flex justify-center align-center mb-xl", image: image })) : null, buttons: renderButtonsSection([button], { buttonClassName: 'w-full self-end' }), children: [colors?.length ? (jsxs("div", { className: "flex text-secondary-text mb-m", children: [jsx("div", { className: "mr-xs", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0426\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null] }) })));
7464
7459
  const renderColorOption = (color, i) => (jsx("figure", { className: `w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
7465
7460
 
7466
- const CarouselLinkButton = JSX(({ icon, ...linkProps }) => {
7467
- const link = useLink();
7468
- const { text, href, target, onClick } = link(linkProps);
7469
- const textStyle = 'font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap';
7470
- return text ? (jsx("div", { className: style('p-3 rounded-lg bg-white text-secondary-text flex justify-center'), children: jsx("a", { role: "link", href: href, target: target, onClick: onClick, children: jsxs("div", { className: "flex flex-col items-center gap-3 break-words max-w-[150px]", children: [icon ? (jsx(Img, { className: "w-7 h-7 md:w-12 md:h-12", image: {
7471
- ...icon,
7472
- iconVersion: icon?.iconVersion,
7473
- }, alt: text })) : null, jsx("div", { className: textStyle, children: text })] }) }) })) : null;
7474
- });
7475
-
7476
- const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-5xl", className: style('overflow-hidden', className), ...rest, children: jsxs("div", { className: "flex flex-col lg:flex-row gap-5 justify-between", children: [jsxs("div", { className: "flex-1", children: [jsx(Headline, { isEmbedded: true, title: title, description: description, as: "h1", align: "text-left", headlineVersion: "XL" }), jsx(Headline, { className: "pt-m", description: additionalDescription, align: "text-left", isEmbedded: true })] }), links?.length ? renderLinks(links) : null] }) })));
7477
- const renderLinks = (links) => (jsx("div", { className: style('lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3', 'lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6', 'grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2', 'grid gap-3 lg:gap-5'), children: links.map((link, i) => (jsx(CarouselLinkButton, { ...link }, String(i)))) }));
7478
-
7479
7461
  const LinkWrapper = JSX(({ className = '', href, target, onClick, data, children }) => {
7480
7462
  const link = useLink();
7481
7463
  const linkProps = link({ href, target, onClick });
@@ -7635,7 +7617,7 @@
7635
7617
  return () => clearInterval(timer);
7636
7618
  };
7637
7619
 
7638
- const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right mr-4 text-gray", children: description }) : null] })] })));
7620
+ const ProgressBar = JSX(({ step = 10, description, showPercentage = true }) => (jsxs("div", { children: [jsx("div", { className: "h-4 w-full bg-gray relative", children: jsx("div", { className: "h-4 bg-green", style: { width: `${step}%` } }) }), jsxs("div", { className: "relative", children: [showPercentage ? jsxs("div", { className: "absolute left-2/4 text-green", children: [step, "%"] }) : null, description ? jsx("div", { className: "text-right pr-m text-gray", children: description }) : null] })] })));
7639
7621
 
7640
7622
  const CreditCardFormProgress = JSX(({ step = 1, totalSteps = 6, stepsTitles = [] }) => {
7641
7623
  const progress = useMemo(() => ((step + 1) / totalSteps) * 100, [step, totalSteps]);
@@ -9532,214 +9514,6 @@
9532
9514
  };
9533
9515
  const ErrorBlock = JSX(({ className = '', title, description, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: style('p-6xl'), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center", children: renderErrorContent(error) }), jsx(Headline, { title: title, description: description, headlineVersion: "XL", isEmbedded: true, className: "mb-2xl last:mb-0" }), button?.text ? (jsx(LinkButton, { version: button?.version, text: button?.text, ...button })) : null] })));
9534
9516
 
9535
- const REGION_URL = `${API_BASE_URI$1}/region`;
9536
- function useLocation(defaultLocation = 'Москва') {
9537
- const locationStore = useLocalStore();
9538
- return locationStore.location ?? { name: defaultLocation };
9539
- }
9540
- function useDefaultLocation(defaultLocation = 'Москва') {
9541
- const locationStore = useLocalStore();
9542
- const preselectLocation = useCallback(async () => {
9543
- if (!locationStore.location) {
9544
- const region = await fetchJSON(REGION_URL);
9545
- locationStore.location = region ?? { name: defaultLocation };
9546
- }
9547
- }, [locationStore, defaultLocation]);
9548
- useAsyncData(REGION_URL, preselectLocation);
9549
- return locationStore;
9550
- }
9551
-
9552
- var Currency;
9553
- (function (Currency) {
9554
- Currency["RUB"] = "RUB";
9555
- Currency["EUR"] = "EUR";
9556
- Currency["USD"] = "USD";
9557
- Currency["CNY"] = "CNY";
9558
- })(Currency || (Currency = {}));
9559
-
9560
- const currencyNumberFormat = new Intl.NumberFormat('ru', {
9561
- style: 'currency',
9562
- currency: Currency.RUB,
9563
- });
9564
- const formatCurrency = (value) => (value ? currencyNumberFormat.format(value) : '');
9565
-
9566
- const TABLE_STYLE_BASE = 'text-m font-light text-secondary-text ';
9567
- const TABLE_HEAD_STYLE = `${TABLE_STYLE_BASE} text-left`;
9568
- const TABLE_HEAD_STYLE_CENTER = `${TABLE_STYLE_BASE} pl-5xl text-center`;
9569
- const TABLE_HEAD_STYLE_RIGHT = `${TABLE_STYLE_BASE} pl-5xl text-right`;
9570
- const CURRENCY_ICONS_MAP = {
9571
- USD: 'DollarIcon',
9572
- EUR: 'EuroIcon',
9573
- CNY: 'ChineseYuanRenminbiIcon',
9574
- };
9575
- const CurrencyTable = JSX(({ className, exchangeCurrencyItems }) => (jsxs("table", { className: style('h-fit w-full', className), children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { className: TABLE_HEAD_STYLE, children: jsx(Text, { size: "text-m", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), jsx("th", { className: TABLE_HEAD_STYLE_CENTER, children: jsx(Text, { size: "text-m", children: "\u041A\u0443\u043F\u0438\u0442\u044C" }) }), jsx("th", { className: TABLE_HEAD_STYLE_RIGHT, children: jsx(Text, { size: "text-m", children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" }) })] }) }), jsx("tbody", { children: exchangeCurrencyItems.map(renderCurrencyRow) })] })));
9576
- const renderCurrencyRow = (exchangeCurrencyItem) => {
9577
- const currency = exchangeCurrencyItem?.currency?.currency;
9578
- return (jsxs("tr", { className: "pb-2xs text-h6", children: [jsx("td", { className: "pt-m m-auto flex text-left", children: jsxs("div", { className: "flex items-center gap-xs", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx(Text, { size: "text-h6", children: currency })] }) }), jsx("td", { className: "pt-m pl-5xl text-center", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }) }), jsx("td", { className: "pt-m pl-5xl text-right", children: jsx(Text, { size: "text-h6", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) }) })] }, currency));
9579
- };
9580
-
9581
- const icon = { icon: 'GpsIcon' };
9582
- const CurrentLocation = JSX(({ className = '', address }) => (jsxs("div", { className: style('flex gap-s w-full justify-between @sm:justify-center', className), children: [jsx(RoundedIcon, { ...icon, iconBgVersion: "primary", className: "shrink-0" }), jsxs("div", { className: "space-y-2xs whitespace-pre-wrap", children: [address ? (jsx(Paragraph, { size: "text-l", color: "text-primary-main", children: address })) : null, jsx(Paragraph, { size: "text-m", color: "text-secondary-text", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
9583
-
9584
- const roundTo = (value, precision = 2) => {
9585
- const factor = 10 ** precision;
9586
- return Math.round(parseFloat(String(value)) * factor) / factor;
9587
- };
9588
-
9589
- const calculateResult = (value, rate, precision) => {
9590
- const result = Number(formatValue(value)) * Math.pow(rate, precision ? -1 : 1);
9591
- return Number.isInteger(result) ? result : roundTo(result);
9592
- };
9593
- const formatValue = (value) => value.replace(/[^\d.,]/g, '').replace(',', '.');
9594
-
9595
- function assertNonEmpty(value) {
9596
- if (!value) {
9597
- throw new Error('Value should be fulfilled');
9598
- }
9599
- return value;
9600
- }
9601
-
9602
- const baseTableFunc = (table) => (input) => {
9603
- const [, unit] = assertNonEmpty(table.find(([predicate]) => predicate(input)));
9604
- return unit(input);
9605
- };
9606
- const tableFunc = (table) => baseTableFunc(table.map(([p, o]) => [p, () => o]));
9607
- tableFunc.if = (predicate) => new TableFuncBuilder(undefined, predicate);
9608
- class TableFuncBuilder {
9609
- parent;
9610
- predicate;
9611
- unit;
9612
- get entry() {
9613
- return [assertNonEmpty(this.predicate), assertNonEmpty(this.unit)];
9614
- }
9615
- constructor(parent, predicate, unit) {
9616
- this.parent = parent;
9617
- this.predicate = predicate;
9618
- this.unit = unit;
9619
- }
9620
- if(predicate) {
9621
- return new TableFuncBuilder(this, predicate);
9622
- }
9623
- then(unit) {
9624
- return new TableFuncBuilder(this.parent, this.predicate, unit);
9625
- }
9626
- else(unit) {
9627
- return baseTableFunc([...buildTable(this), [() => true, unit]]);
9628
- }
9629
- }
9630
- const buildTable = (builder) => [
9631
- ...(builder?.parent ? buildTable(builder.parent) : []),
9632
- builder.entry,
9633
- ];
9634
-
9635
- const callbackCurrencySelect = (props) => tableFunc([
9636
- [
9637
- (_) => _.value !== Currency.RUB && _.oppositeValue !== Currency.RUB,
9638
- () => props.handleConvert(props.value, Currency.RUB),
9639
- ],
9640
- [
9641
- (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
9642
- () => props.handleConvert(props.value, Currency.USD),
9643
- ],
9644
- [
9645
- (_) => _.value === Currency.RUB && _.oppositeValue === Currency.RUB,
9646
- () => props.handleConvert(props.value, Currency.CNY),
9647
- ],
9648
- [() => true, () => props.handleConvert(props.value)],
9649
- ])(props)?.();
9650
-
9651
- function renderInput(props) {
9652
- const { placeholder, rates, selected, value, onChange, setSelected } = props;
9653
- const ratesOptions = rates.map((_) => ({
9654
- key: _?.currency?.currency ?? '',
9655
- text: _?.currency?.currency ?? '',
9656
- }));
9657
- const selectedValue = { key: selected, text: selected };
9658
- return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none -mr-20", placeholder: placeholder, type: "text", value: value, onChange: onChange }), ratesOptions.length ? (jsx(Select, { className: "absolute right-0", isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
9659
- }
9660
-
9661
- const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
9662
- const [calcState, setCalcState] = useState({
9663
- inputSell: '',
9664
- inputBuy: '',
9665
- selectSell: currencyRatesBuy?.[0]?.currency?.currency || Currency.RUB,
9666
- selectBuy: currencyRatesSell?.[0]?.currency?.currency || Currency.USD,
9667
- });
9668
- const handleSetCalcState = useCallback((newState) => setCalcState((oldState) => ({ ...oldState, ...newState })), []);
9669
- return (jsxs("div", { className: `flex flex-col gap-m pt-2xl ${className}`, children: [currencyRatesBuy && currencyRatesSell ? (jsxs("div", { className: "grid gap-m", children: [renderInput({
9670
- placeholder: 'Хочу продать',
9671
- rates: currencyRatesSell,
9672
- selected: calcState.selectSell,
9673
- setSelected: handleSelectSell(calcState, handleSetCalcState, currencyRatesSell),
9674
- value: calcState.inputSell,
9675
- onChange: (value) => handleInputSell(handleSetCalcState, currencyRatesSell)(value, calcState.selectSell, calcState.selectBuy),
9676
- }), renderInput({
9677
- placeholder: 'Получу',
9678
- rates: currencyRatesBuy,
9679
- selected: calcState.selectBuy,
9680
- setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
9681
- value: calcState.inputBuy,
9682
- onChange: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
9683
- })] })) : null, button?.text ? (jsx(LinkButton, { text: button.text, version: button?.version, ...button })) : null] }));
9684
- });
9685
- const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
9686
- setCalcState({ selectSell: value });
9687
- callbackCurrencySelect({
9688
- value,
9689
- oppositeValue: calcState.selectBuy,
9690
- handleConvert: (currencyFrom = calcState.selectSell, currencyTo = calcState.selectBuy) => {
9691
- handleInputSell(setCalcState, currencyRatesSell)(calcState.inputSell, currencyFrom, currencyTo);
9692
- },
9693
- });
9694
- };
9695
- const handleSelectBuy = (calcState, setCalcState, currencyRatesBuy) => (value) => {
9696
- setCalcState({ selectBuy: value });
9697
- callbackCurrencySelect({
9698
- value,
9699
- oppositeValue: calcState.selectSell,
9700
- handleConvert: (currencyTo = calcState.selectBuy, currencyFrom = calcState.selectSell) => handleInputBuy(setCalcState, currencyRatesBuy)(calcState.inputBuy, currencyTo, currencyFrom),
9701
- });
9702
- };
9703
- const handleInputSell = (setCalcState, currencyRatesSell) => (value, currencyFrom, currencyTo) => {
9704
- setCalcState({ inputSell: formatValue(value), selectBuy: currencyTo });
9705
- const rate = currencyRatesSell.find((_) => _.currency?.currency === currencyTo)?.buyExchangeRate ||
9706
- currencyRatesSell.find((_) => _.currency?.currency === currencyFrom)?.buyExchangeRate;
9707
- if (rate) {
9708
- setCalcState({
9709
- inputBuy: String(calculateResult(value, rate, currencyFrom === Currency.RUB) || ''),
9710
- });
9711
- }
9712
- };
9713
- const handleInputBuy = (setCalcState, currencyRatesBuy) => (value, currencyTo, currencyFrom) => {
9714
- setCalcState({ inputBuy: formatValue(value), selectSell: currencyFrom });
9715
- const rate = currencyRatesBuy.find((_) => _.currency?.currency === currencyFrom)?.saleExchangeRate ||
9716
- currencyRatesBuy.find((_) => _.currency?.currency === currencyTo)?.saleExchangeRate;
9717
- if (rate) {
9718
- setCalcState({
9719
- inputSell: String(calculateResult(value, rate, currencyTo === Currency.RUB) || ''),
9720
- });
9721
- }
9722
- };
9723
-
9724
- const EXCHANGE_RATES_URL = `${API_BASE_URI$1}/exchangerates`;
9725
- function useFetchExchangeRateData(currentRegion) {
9726
- const regionCode = currentRegion?.code || '000';
9727
- const { data } = useAsyncData(EXCHANGE_RATES_URL + `?regionCode=${regionCode}`, fetchJSONUnsafe);
9728
- return data || {};
9729
- }
9730
-
9731
- const ExchangeRateTile = JSX(({ className = '', title = 'Курсы обмена валют', button, ...rest }) => {
9732
- const currentLocation = useLocation();
9733
- const exchangeRates = useFetchExchangeRateData(currentLocation);
9734
- const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
9735
- const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
9736
- currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
9737
- const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
9738
- currencyRatesSell.push({ currency: { currency: Currency.RUB } });
9739
- return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex w-full gap-6xl flex-wrap @lg:flex-nowrap", children: [jsxs("div", { className: "w-full @2xl:w-auto @5xl:w-1/2", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), jsx(ExchangeCurrencyCalculator, { className: "grow w-1/2", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })] }) }) }));
9740
- });
9741
- const getCurrencyRates = (currencies) => currencies?.filter((_) => [1, 2, 3].includes(_?.currency?.id)) || [];
9742
-
9743
9517
  const LinkList = JSX(({ className = '', items }) => {
9744
9518
  const link = useLink();
9745
9519
  return (jsx("ul", { className: style('flex flex-col gap-s w-full', className), children: items?.map(renderLinkListItem(link)) }));
@@ -9786,7 +9560,7 @@
9786
9560
  return (jsx("a", { className: style('text-secondary-text', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9787
9561
  });
9788
9562
 
9789
- const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-[292px]", ..._ }, String(i))))] })) : null })));
9563
+ const HorizontalNavigation = JSX(({ className = '', title, links }) => (jsx("div", { className: className, children: links?.length ? (jsxs("div", { className: "flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider", children: [jsx("div", { className: "lg:hidden", children: jsx(Text, { size: "text-l", font: "font-normal", children: title }) }), links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l font-light lg:max-w-72", ..._ }, String(i))))] })) : null })));
9790
9564
 
9791
9565
  const LEFT_COLUMN_STYLE = 'w-full lg:w-52';
9792
9566
 
@@ -9995,7 +9769,7 @@
9995
9769
  const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
9996
9770
  const link = useLink();
9997
9771
  const { href, target, text, onClick } = link(rest);
9998
- return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9772
+ return (jsx("a", { className: style('text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-72', className), href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
9999
9773
  });
10000
9774
 
10001
9775
  const TextInformation = JSX(({ className = '', links, license }) => (jsxs("div", { className: style('@container space-y-lg', className), children: [license ? (jsx("div", { children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0${license}` }) })) : null, links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
@@ -10303,6 +10077,23 @@
10303
10077
  const handleIntersectionActivation$1 = (index) => (prev) => Math.max(prev, index + 1);
10304
10078
  const handleIntersectionDeactivation$1 = (index) => (prev) => Math.min(prev, index);
10305
10079
 
10080
+ const REGION_URL = `${API_BASE_URI$1}/region`;
10081
+ function useLocation(defaultLocation = 'Москва') {
10082
+ const locationStore = useLocalStore();
10083
+ return locationStore.location ?? { name: defaultLocation };
10084
+ }
10085
+ function useDefaultLocation(defaultLocation = 'Москва') {
10086
+ const locationStore = useLocalStore();
10087
+ const preselectLocation = useCallback(async () => {
10088
+ if (!locationStore.location) {
10089
+ const region = await fetchJSON(REGION_URL);
10090
+ locationStore.location = region ?? { name: defaultLocation };
10091
+ }
10092
+ }, [locationStore, defaultLocation]);
10093
+ useAsyncData(REGION_URL, preselectLocation);
10094
+ return locationStore;
10095
+ }
10096
+
10306
10097
  const groupBy = (list, keyGetter) => {
10307
10098
  const result = new Map();
10308
10099
  for (const item of list) {
@@ -10406,7 +10197,7 @@
10406
10197
  }), [navigationItems]);
10407
10198
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10408
10199
  const { dataFooter, dataHeader, ...logoProps } = logo ?? {};
10409
- return (jsxs("div", { className: "flex items-center justify-between", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logoProps, data: dataHeader, showTitle: false }), jsx("div", { ref: topItemsListRef, className: "overflow-hidden min-w-[160px] pb-xs mt-xs", role: "menu", children: navigationItems.map((_, i) => (jsx(HeaderTopMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeTopItem, observerOptions: observerOptions, onVisibilityChange: topItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "mx-xs", items: dropDownMenuItems, activeItem: activeTopItem, ariaLabel: dropdownMenuAriaLabel })) : null, jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", search: search, navigationItems: navigationItems, ...headerData })] }));
10200
+ return (jsxs("div", { className: "flex items-center justify-between", children: [jsx(Logo, { className: "mr-3xl", bgColor: bgColor, logo: logoProps, data: dataHeader, showTitle: false }), jsx("div", { ref: topItemsListRef, className: "overflow-hidden min-w-40 pb-xs mt-xs", role: "menu", children: navigationItems.map((_, i) => (jsx(HeaderTopMenuItem, { className: visibleItemsCount - 1 < i ? 'invisible' : '', active: _ === activeTopItem, observerOptions: observerOptions, onVisibilityChange: topItemsVisibilityHandlers[i], data: _.dataHeader, ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "mx-xs", items: dropDownMenuItems, activeItem: activeTopItem, ariaLabel: dropdownMenuAriaLabel })) : null, jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", search: search, navigationItems: navigationItems, ...headerData })] }));
10410
10201
  });
10411
10202
  const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
10412
10203
  const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
@@ -10448,102 +10239,6 @@
10448
10239
  return (jsx(BlockWrapper, { className: style(alignStyle, className), defaultPadding: "p-0", ...rest, children: jsx(Img, { image: image }) }));
10449
10240
  });
10450
10241
 
10451
- const useCarouselControls = (props, initialIndex = 0) => {
10452
- const { itemCount, visibleItemCount } = props;
10453
- const [activeIndex, setActiveIndex] = useState(initialIndex);
10454
- const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
10455
- const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
10456
- const canInc = visibleItemCount
10457
- ? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
10458
- : activeIndex < itemCount - 1;
10459
- const canDec = activeIndex > 0;
10460
- const isScrollAvailable = canDec || canInc;
10461
- return [
10462
- activeIndex,
10463
- {
10464
- inc,
10465
- dec,
10466
- canInc,
10467
- canDec,
10468
- isScrollAvailable,
10469
- },
10470
- ];
10471
- };
10472
-
10473
- /** @deprecated */
10474
- const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
10475
-
10476
- const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
10477
- const [selectedCardIndex, setSelectedCardIndex] = useState(0);
10478
- const handleSelectedCardIndex = useCallback((_) => setSelectedCardIndex(_), []);
10479
- const galleryLength = cards.length;
10480
- const CARD_VIEW_COUNT = 2;
10481
- const [activeIndex, controls] = useCarouselControls({
10482
- itemCount: galleryLength,
10483
- visibleItemCount: CARD_VIEW_COUNT,
10484
- });
10485
- const { canDec, canInc } = controls;
10486
- const activeHref = cards[activeIndex]?.href;
10487
- return (jsxs("section", { role: "listitem", className: `min-w-full text-center ${className}`, children: [jsxs("div", { className: "relative overflow-hidden", "aria-label": "\u0421\u0442\u0440\u0430\u0445\u043E\u0432\u044B\u0435 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u044B", children: [galleryLength
10488
- ? renderGallery({
10489
- activeIndex,
10490
- cards,
10491
- selectedCardIndex,
10492
- onClick: handleSelectedCardIndex,
10493
- })
10494
- : null, renderArrows({
10495
- ...controls,
10496
- btnClass: ['left-12', 'right-12'],
10497
- className: 'top-16',
10498
- }), canDec ? (jsx("div", { className: "absolute top-0 left-0 h-full w-32 bg-opacity-from-white" })) : null, canInc ? (jsx("div", { className: "absolute top-0 right-0 h-full w-32 bg-opacity-to-white" })) : null] }), jsx(LinkButton, { className: "w-60 text-center", version: "primary", ...button, href: activeHref })] }));
10499
- });
10500
- function renderGallery({ activeIndex, cards, selectedCardIndex, onClick }) {
10501
- const tabsShiftWidth = activeIndex * 460;
10502
- const cardsAlignStyle = cards.length > 2 ? 'justify-start' : 'justify-center';
10503
- return (jsx("div", { style: { transform: `translateX(-${tabsShiftWidth}px)` }, className: "duration-1000 px-6xl", children: jsx("div", { className: `w-full flex flex-nowrap gap-s pb-6xl ${cardsAlignStyle}`, children: cards.map((slide, i) => renderNavButton$1({
10504
- slide,
10505
- i,
10506
- isActive: Boolean(i === selectedCardIndex),
10507
- onClick: () => onClick(i),
10508
- })) }) }));
10509
- }
10510
- function renderNavButton$1({ slide, i, isActive, onClick }) {
10511
- const btnClassName = isActive
10512
- ? 'shadow-dark-blue border-primary-main'
10513
- : `ease-in duration-300 border-gray`;
10514
- return (jsxs("button", { type: "button", onClick: onClick, className: `p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(Img, { className: "p-lg rounded-full bg-secondary-light", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-s", children: [slide?.sum ? renderValueBlock('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActive)] }, String(i)));
10515
- }
10516
- function renderValueBlock(title, sum) {
10517
- return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs(Text, { size: "text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] }), jsx("div", { className: "mt-2xs", children: jsx(Text, { size: "text-l", color: "text-secondary-text", children: title }) })] }));
10518
- }
10519
- function renderDoneIcon(isActive) {
10520
- return isActive ? (jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: { icon: 'DoneIcon' }, width: "24", height: "24" })) : null;
10521
- }
10522
-
10523
- const InsuranceAmountBlock = JSX(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
10524
- const [activeSlideIndex, setActiveSlideIndex] = useState(0);
10525
- const handleActiveSlideIndex = useCallback((_) => setActiveSlideIndex(_), []);
10526
- return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative px-0 space-y-2xl', className), defaultPadding: "p-6xl", ...rest, children: [title ? jsx(Heading, { className: "text-center", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? (jsx("div", { className: "p-xs bg-secondary-light w-fit mx-auto rounded-md", children: insuranceTabs.map((item, i) => renderNavButton({
10527
- title: item?.title,
10528
- i,
10529
- isActive: Boolean(i === activeSlideIndex),
10530
- onClick: () => handleActiveSlideIndex(i),
10531
- })) })) : null, jsx("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
10532
- insuranceTabs,
10533
- button,
10534
- }) })] }));
10535
- });
10536
- const renderInsuranceGalleries = ({ insuranceTabs, button }) => {
10537
- const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
10538
- return insuranceGalleries?.length
10539
- ? insuranceGalleries.map((cards, i) => (jsx(InsuranceAmountBlockInner, { button: button, cards: cards }, String(i))))
10540
- : null;
10541
- };
10542
- function renderNavButton({ title, i, isActive, onClick }) {
10543
- const btnClassName = isActive ? 'bg-primary-main text-white rounded-md' : `text-secondary-text`;
10544
- return (jsx("button", { type: "button", onClick: onClick, "aria-label": `Кнопка ${title}`, className: `box-border px-m py-s text-m font-light ${btnClassName}`, children: title }, String(i)));
10545
- }
10546
-
10547
10242
  const KILO = 1024;
10548
10243
  const KILO_SIZES = ['байт', 'Кб', 'Мб', 'Гб', 'Тб', 'Пб'];
10549
10244
  const formatBytes = (bytes, decimals = 2) => {
@@ -11051,6 +10746,28 @@
11051
10746
  ? Number(paramsId)
11052
10747
  : tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
11053
10748
 
10749
+ const useCarouselControls = (props, initialIndex = 0) => {
10750
+ const { itemCount, visibleItemCount } = props;
10751
+ const [activeIndex, setActiveIndex] = useState(initialIndex);
10752
+ const inc = useCallback(() => setActiveIndex((_) => Math.min(_ + 1, itemCount - 1)), [itemCount]);
10753
+ const dec = useCallback(() => setActiveIndex((_) => Math.max(_ - 1, 0)), [itemCount]);
10754
+ const canInc = visibleItemCount
10755
+ ? itemCount > visibleItemCount && activeIndex < itemCount - visibleItemCount
10756
+ : activeIndex < itemCount - 1;
10757
+ const canDec = activeIndex > 0;
10758
+ const isScrollAvailable = canDec || canInc;
10759
+ return [
10760
+ activeIndex,
10761
+ {
10762
+ inc,
10763
+ dec,
10764
+ canInc,
10765
+ canDec,
10766
+ isScrollAvailable,
10767
+ },
10768
+ ];
10769
+ };
10770
+
11054
10771
  const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
11055
10772
  const firstCellStyle = 'w-80 flex-shrink-0';
11056
10773
  const COLS_LENGTH_FOR_SCROLL = 2;
@@ -11120,6 +10837,9 @@
11120
10837
  ? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
11121
10838
  : null })));
11122
10839
 
10840
+ /** @deprecated */
10841
+ const renderArrows = ({ className, btnClass, canDec, canInc, dec, inc, }) => canDec || canInc ? (jsxs("div", { children: [canDec ? (jsx(ArrowLeftButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[0], className), onClick: dec })) : null, canInc ? (jsx(ArrowRightButton, { wcmsIgnore: true, className: style('absolute z-40', btnClass[1], className), onClick: inc })) : null] })) : null;
10842
+
11123
10843
  const COLUMN_WIDTH = 140;
11124
10844
  const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
11125
10845
 
@@ -11257,14 +10977,12 @@
11257
10977
  Carousel,
11258
10978
  CarouselCard,
11259
10979
  CarouselCatalogCard,
11260
- CarouselLinks,
11261
10980
  CarouselRecommendationCard,
11262
10981
  CarouselTariffsCard,
11263
10982
  ContactsBlock,
11264
10983
  DepositFiltration,
11265
10984
  Depository,
11266
10985
  ErrorBlock,
11267
- ExchangeRateTile,
11268
10986
  Footer,
11269
10987
  GalleryLayout,
11270
10988
  GrantSupport,
@@ -11272,7 +10990,6 @@
11272
10990
  Headline,
11273
10991
  HorizontalLayout,
11274
10992
  ImgBlock,
11275
- InsuranceAmountBlock,
11276
10993
  LinkDocs,
11277
10994
  MobileAppTile,
11278
10995
  OfficesAtmsMap,
@@ -11431,7 +11148,7 @@
11431
11148
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
11432
11149
  });
11433
11150
 
11434
- const packageVersion = "0.14.839";
11151
+ const packageVersion = "0.14.841";
11435
11152
 
11436
11153
  exports.Blocks = Blocks;
11437
11154
  exports.ContentPage = ContentPage;