@redneckz/wildless-cms-uni-blocks 0.3.48 → 0.3.51

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 (383) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +45 -29
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/BurgerIcon.svg +1 -1
  5. package/cosmos-static/icons/Calendar2Icon.svg +1 -1
  6. package/cosmos-static/icons/CalendarCircleIcon.svg +1 -1
  7. package/cosmos-static/icons/CalendarIcon.svg +1 -1
  8. package/cosmos-static/icons/CalendarTickIcon.svg +1 -1
  9. package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -1
  10. package/cosmos-static/icons/CardIcon.svg +1 -1
  11. package/cosmos-static/icons/CardPosIcon.svg +1 -1
  12. package/cosmos-static/icons/CardTickIcon.svg +1 -1
  13. package/cosmos-static/icons/CardWithGemIcon.svg +1 -1
  14. package/cosmos-static/icons/ChartSquareIcon.svg +1 -1
  15. package/cosmos-static/icons/CloseIcon.svg +1 -1
  16. package/cosmos-static/icons/DiscountShapeIcon.svg +1 -1
  17. package/cosmos-static/icons/DocIcon.svg +1 -1
  18. package/cosmos-static/icons/DocumentTextIcon.svg +1 -1
  19. package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -1
  20. package/cosmos-static/icons/EmptyWalletIcon.svg +1 -1
  21. package/cosmos-static/icons/GlobalIcon.svg +1 -1
  22. package/cosmos-static/icons/GpsIcon.svg +1 -1
  23. package/cosmos-static/icons/GridIcon.svg +1 -1
  24. package/cosmos-static/icons/InterestIcon.svg +1 -1
  25. package/cosmos-static/icons/MoneyIcon.svg +1 -1
  26. package/cosmos-static/icons/MonitorMobileIcon.svg +1 -1
  27. package/cosmos-static/icons/OfficeIcon.svg +1 -1
  28. package/cosmos-static/icons/PercentageRoundIcon.svg +1 -1
  29. package/cosmos-static/icons/PercentageSquareIcon.svg +1 -1
  30. package/cosmos-static/icons/PersonalCardIcon.svg +1 -1
  31. package/cosmos-static/icons/Profile2UserIcon.svg +1 -1
  32. package/cosmos-static/icons/RoundRubleIcon.svg +1 -1
  33. package/cosmos-static/icons/SafeIcon.svg +1 -1
  34. package/cosmos-static/icons/ShieldTickIcon.svg +1 -1
  35. package/cosmos-static/icons/SmallClockIcon.svg +1 -1
  36. package/cosmos-static/icons/UserTickIcon.svg +1 -1
  37. package/cosmos-static/icons/WalletAdd2Icon.svg +1 -1
  38. package/cosmos-static/icons/WalletAddIcon.svg +1 -1
  39. package/cosmos-static/icons/WalletIcon.svg +1 -1
  40. package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -1
  41. package/dist/components/Bonus/Bonus.js +2 -2
  42. package/dist/components/Bonus/Bonus.js.map +1 -1
  43. package/dist/components/Bonus/BonusContent.d.ts +4 -3
  44. package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  45. package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  46. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  47. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  48. package/dist/components/Footer/SocialMedia.js +1 -1
  49. package/dist/components/Footer/SocialMedia.js.map +1 -1
  50. package/dist/components/GracePeriod/GracePeriod.js +7 -5
  51. package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  52. package/dist/components/GracePeriod/GracePeriodContent.d.ts +14 -3
  53. package/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
  54. package/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  55. package/dist/components/NavigatorTabs/NavigatorTabs.js +1 -1
  56. package/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -0
  57. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  58. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  59. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
  60. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  61. package/dist/components/ProductBlock/renderBenefit.d.ts +2 -2
  62. package/dist/components/ProductBlock/renderBenefit.js +13 -6
  63. package/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  64. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -3
  65. package/dist/components/ProductBlock/renderBenefit.mobile.js +10 -2
  66. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  67. package/dist/components/Recommendation/RecommendationCard.d.ts +2 -0
  68. package/dist/components/Recommendation/RecommendationCard.js +1 -1
  69. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  70. package/dist/components/Recommendation/RecommendationContent.d.ts +7 -6
  71. package/dist/index.d.ts +2 -0
  72. package/dist/index.js +5 -1
  73. package/dist/index.js.map +1 -1
  74. package/dist/model/IconVersion.d.ts +1 -0
  75. package/dist/model/IconVersion.js +2 -0
  76. package/dist/model/IconVersion.js.map +1 -0
  77. package/dist/model/Picture.d.ts +3 -0
  78. package/dist/ui-kit/Icon/Icon.js +3 -2
  79. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  80. package/dist/ui-kit/Icon/IconProps.d.ts +3 -0
  81. package/dist/ui-kit/Img/Img.js +2 -1
  82. package/dist/ui-kit/Img/Img.js.map +1 -1
  83. package/dist/ui-kit/Img/Img.mobile.js +2 -1
  84. package/dist/ui-kit/Img/Img.mobile.js.map +1 -1
  85. package/dist/ui-kit/Img/getIconVersion.d.ts +1 -0
  86. package/dist/ui-kit/Img/getIconVersion.js +7 -0
  87. package/dist/ui-kit/Img/getIconVersion.js.map +1 -0
  88. package/dist/ui-kit/Select/SelectOption.d.ts +1 -0
  89. package/dist/ui-kit/Select/SelectOption.js +2 -2
  90. package/dist/ui-kit/Select/SelectOption.js.map +1 -1
  91. package/dist/ui-kit/Tabs/Tabs.js +1 -1
  92. package/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  93. package/fonts/mohave/Mohave-Regular.otf +0 -0
  94. package/fonts/mohave/mohave.css +1 -1
  95. package/lib/common.css +1 -1
  96. package/lib/components/Bonus/Bonus.js +2 -2
  97. package/lib/components/Bonus/Bonus.js.map +1 -1
  98. package/lib/components/Bonus/BonusContent.d.ts +4 -3
  99. package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  100. package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  101. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  102. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  103. package/lib/components/Footer/SocialMedia.js +1 -1
  104. package/lib/components/Footer/SocialMedia.js.map +1 -1
  105. package/lib/components/GracePeriod/GracePeriod.js +7 -5
  106. package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  107. package/lib/components/GracePeriod/GracePeriodContent.d.ts +14 -3
  108. package/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
  109. package/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  110. package/lib/components/NavigatorTabs/NavigatorTabs.js +1 -1
  111. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -3
  112. package/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -0
  113. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  114. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  115. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
  116. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  117. package/lib/components/ProductBlock/renderBenefit.d.ts +2 -2
  118. package/lib/components/ProductBlock/renderBenefit.js +13 -6
  119. package/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  120. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -3
  121. package/lib/components/ProductBlock/renderBenefit.mobile.js +10 -2
  122. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  123. package/lib/components/Recommendation/RecommendationCard.d.ts +2 -0
  124. package/lib/components/Recommendation/RecommendationCard.js +1 -1
  125. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  126. package/lib/components/Recommendation/RecommendationContent.d.ts +7 -6
  127. package/lib/index.d.ts +2 -0
  128. package/lib/index.js +2 -0
  129. package/lib/index.js.map +1 -1
  130. package/lib/model/IconVersion.d.ts +1 -0
  131. package/lib/model/IconVersion.js +2 -0
  132. package/lib/model/IconVersion.js.map +1 -0
  133. package/lib/model/Picture.d.ts +3 -0
  134. package/lib/ui-kit/Icon/Icon.js +3 -2
  135. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  136. package/lib/ui-kit/Icon/IconProps.d.ts +3 -0
  137. package/lib/ui-kit/Img/Img.js +2 -1
  138. package/lib/ui-kit/Img/Img.js.map +1 -1
  139. package/lib/ui-kit/Img/Img.mobile.js +2 -1
  140. package/lib/ui-kit/Img/Img.mobile.js.map +1 -1
  141. package/lib/ui-kit/Img/getIconVersion.d.ts +1 -0
  142. package/lib/ui-kit/Img/getIconVersion.js +4 -0
  143. package/lib/ui-kit/Img/getIconVersion.js.map +1 -0
  144. package/lib/ui-kit/Select/SelectOption.d.ts +1 -0
  145. package/lib/ui-kit/Select/SelectOption.js +2 -2
  146. package/lib/ui-kit/Select/SelectOption.js.map +1 -1
  147. package/lib/ui-kit/Tabs/Tabs.js +1 -1
  148. package/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  149. package/mobile/bundle/bundle.umd.js +28 -13
  150. package/mobile/bundle/bundle.umd.min.js +1 -1
  151. package/mobile/dist/components/Bonus/Bonus.js +2 -2
  152. package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
  153. package/mobile/dist/components/Bonus/BonusContent.d.ts +4 -3
  154. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
  155. package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  156. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  157. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  158. package/mobile/dist/components/GracePeriod/GracePeriod.js +7 -5
  159. package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
  160. package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +14 -3
  161. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js +1 -1
  162. package/mobile/dist/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  163. package/mobile/dist/components/NavigatorTabs/NavigatorTabs.js +1 -1
  164. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +7 -0
  165. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  166. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  167. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -3
  168. package/mobile/dist/components/ProductBlock/renderBenefit.js +10 -2
  169. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  170. package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -0
  171. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
  172. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  173. package/mobile/dist/components/Recommendation/RecommendationContent.d.ts +7 -6
  174. package/mobile/dist/index.d.ts +2 -0
  175. package/mobile/dist/index.js +5 -1
  176. package/mobile/dist/index.js.map +1 -1
  177. package/mobile/dist/model/IconVersion.d.ts +1 -0
  178. package/mobile/dist/model/IconVersion.js +2 -0
  179. package/mobile/dist/model/IconVersion.js.map +1 -0
  180. package/mobile/dist/model/Picture.d.ts +3 -0
  181. package/mobile/dist/ui-kit/Icon/Icon.js +3 -2
  182. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  183. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +3 -0
  184. package/mobile/dist/ui-kit/Img/Img.js +2 -1
  185. package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
  186. package/mobile/dist/ui-kit/Img/getIconVersion.d.ts +1 -0
  187. package/mobile/dist/ui-kit/Img/getIconVersion.js +7 -0
  188. package/mobile/dist/ui-kit/Img/getIconVersion.js.map +1 -0
  189. package/mobile/dist/ui-kit/Select/SelectOption.d.ts +1 -0
  190. package/mobile/dist/ui-kit/Select/SelectOption.js +2 -2
  191. package/mobile/dist/ui-kit/Select/SelectOption.js.map +1 -1
  192. package/mobile/dist/ui-kit/Tabs/Tabs.js +1 -1
  193. package/mobile/dist/ui-kit/Tabs/Tabs.js.map +1 -1
  194. package/mobile/lib/components/Bonus/Bonus.js +2 -2
  195. package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
  196. package/mobile/lib/components/Bonus/BonusContent.d.ts +4 -3
  197. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
  198. package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
  199. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +3 -3
  200. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  201. package/mobile/lib/components/GracePeriod/GracePeriod.js +7 -5
  202. package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
  203. package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +14 -3
  204. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js +1 -1
  205. package/mobile/lib/components/NavigatorTabs/NavigatorTabItem.js.map +1 -1
  206. package/mobile/lib/components/NavigatorTabs/NavigatorTabs.js +1 -1
  207. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +7 -0
  208. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  209. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  210. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -3
  211. package/mobile/lib/components/ProductBlock/renderBenefit.js +10 -2
  212. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  213. package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -0
  214. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
  215. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  216. package/mobile/lib/components/Recommendation/RecommendationContent.d.ts +7 -6
  217. package/mobile/lib/index.d.ts +2 -0
  218. package/mobile/lib/index.js +2 -0
  219. package/mobile/lib/index.js.map +1 -1
  220. package/mobile/lib/model/IconVersion.d.ts +1 -0
  221. package/mobile/lib/model/IconVersion.js +2 -0
  222. package/mobile/lib/model/IconVersion.js.map +1 -0
  223. package/mobile/lib/model/Picture.d.ts +3 -0
  224. package/mobile/lib/ui-kit/Icon/Icon.js +3 -2
  225. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  226. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +3 -0
  227. package/mobile/lib/ui-kit/Img/Img.js +2 -1
  228. package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
  229. package/mobile/lib/ui-kit/Img/getIconVersion.d.ts +1 -0
  230. package/mobile/lib/ui-kit/Img/getIconVersion.js +4 -0
  231. package/mobile/lib/ui-kit/Img/getIconVersion.js.map +1 -0
  232. package/mobile/lib/ui-kit/Select/SelectOption.d.ts +1 -0
  233. package/mobile/lib/ui-kit/Select/SelectOption.js +2 -2
  234. package/mobile/lib/ui-kit/Select/SelectOption.js.map +1 -1
  235. package/mobile/lib/ui-kit/Tabs/Tabs.js +1 -1
  236. package/mobile/lib/ui-kit/Tabs/Tabs.js.map +1 -1
  237. package/mobile/src/common.css +0 -4
  238. package/mobile/src/components/Bonus/Bonus.tsx +8 -6
  239. package/mobile/src/components/Bonus/BonusContent.ts +4 -3
  240. package/mobile/src/components/ContentPage/ContentPage.page.json +6 -0
  241. package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  242. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
  243. package/mobile/src/components/GracePeriod/GracePeriod.example.json +10 -5
  244. package/mobile/src/components/GracePeriod/GracePeriod.tsx +17 -11
  245. package/mobile/src/components/GracePeriod/GracePeriodContent.ts +14 -3
  246. package/mobile/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
  247. package/mobile/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
  248. package/mobile/src/components/NavigatorTabs/NavigatorTabs.tsx +1 -1
  249. package/mobile/src/components/ProductBlock/ProductBlock.example.json +6 -0
  250. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +8 -0
  251. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +6 -1
  252. package/mobile/src/components/ProductBlock/renderBenefit.tsx +15 -4
  253. package/mobile/src/components/Recommendation/Recommendation.example.json +11 -10
  254. package/mobile/src/components/Recommendation/RecommendationCard.tsx +6 -3
  255. package/mobile/src/components/Recommendation/RecommendationContent.ts +12 -10
  256. package/mobile/src/icons/AppleIcon.svg +3 -1
  257. package/mobile/src/icons/BurgerIcon.svg +4 -4
  258. package/mobile/src/icons/Calendar2Icon.svg +6 -1
  259. package/mobile/src/icons/CalendarCircleIcon.svg +1 -4
  260. package/mobile/src/icons/CalendarIcon.svg +1 -1
  261. package/mobile/src/icons/CalendarTickIcon.svg +1 -6
  262. package/mobile/src/icons/CalendarWhiteIcon.svg +2 -2
  263. package/mobile/src/icons/CardIcon.svg +1 -5
  264. package/mobile/src/icons/CardPosIcon.svg +1 -5
  265. package/mobile/src/icons/CardTickIcon.svg +1 -5
  266. package/mobile/src/icons/CardWithGemIcon.svg +1 -1
  267. package/mobile/src/icons/ChartSquareIcon.svg +1 -6
  268. package/mobile/src/icons/CloseIcon.svg +4 -4
  269. package/mobile/src/icons/DiscountShapeIcon.svg +1 -4
  270. package/mobile/src/icons/DocIcon.svg +1 -1
  271. package/mobile/src/icons/DocumentTextIcon.svg +2 -2
  272. package/mobile/src/icons/EmptyWalletChangeIcon.svg +3 -3
  273. package/mobile/src/icons/EmptyWalletIcon.svg +2 -2
  274. package/mobile/src/icons/GlobalIcon.svg +1 -5
  275. package/mobile/src/icons/GpsIcon.svg +6 -6
  276. package/mobile/src/icons/GridIcon.svg +1 -1
  277. package/mobile/src/icons/InterestIcon.svg +1 -6
  278. package/mobile/src/icons/MasterCardIcon.svg +1 -5
  279. package/mobile/src/icons/MinusIcon.svg +1 -3
  280. package/mobile/src/icons/MoneyIcon.svg +1 -5
  281. package/mobile/src/icons/MonitorMobileIcon.svg +1 -4
  282. package/mobile/src/icons/OfficeIcon.svg +1 -1
  283. package/mobile/src/icons/PercentageRoundIcon.svg +1 -4
  284. package/mobile/src/icons/PercentageSquareIcon.svg +1 -1
  285. package/mobile/src/icons/PersonalCardIcon.svg +1 -4
  286. package/mobile/src/icons/PlayMarketIcon.svg +1 -3
  287. package/mobile/src/icons/PlusIcon.svg +1 -3
  288. package/mobile/src/icons/Profile2UserIcon.svg +1 -6
  289. package/mobile/src/icons/RoundRubleIcon.svg +1 -5
  290. package/mobile/src/icons/SafeIcon.svg +1 -7
  291. package/mobile/src/icons/ShieldTickIcon.svg +1 -4
  292. package/mobile/src/icons/SmallClockIcon.svg +1 -4
  293. package/mobile/src/icons/UserTickIcon.svg +1 -5
  294. package/mobile/src/icons/WalletAdd2Icon.svg +1 -6
  295. package/mobile/src/icons/WalletAddIcon.svg +1 -7
  296. package/mobile/src/icons/WalletIcon.svg +1 -7
  297. package/mobile/src/icons/WalletWithMoneyIcon.svg +1 -5
  298. package/mobile/src/index.ts +2 -0
  299. package/mobile/src/model/IconVersion.ts +1 -0
  300. package/mobile/src/model/Picture.ts +3 -0
  301. package/mobile/src/ui-kit/Icon/Icon.tsx +3 -1
  302. package/mobile/src/ui-kit/Icon/IconProps.ts +3 -0
  303. package/mobile/src/ui-kit/Img/Img.tsx +11 -2
  304. package/mobile/src/ui-kit/Img/getIconVersion.tsx +3 -0
  305. package/mobile/src/ui-kit/Select/SelectOption.tsx +10 -7
  306. package/mobile/src/ui-kit/Tabs/Tabs.tsx +1 -1
  307. package/package.json +1 -1
  308. package/src/common.css +0 -4
  309. package/src/components/Bonus/Bonus.tsx +8 -6
  310. package/src/components/Bonus/BonusContent.ts +4 -3
  311. package/src/components/ContentPage/ContentPage.page.json +6 -0
  312. package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
  313. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -3
  314. package/src/components/Footer/SocialMedia.tsx +1 -1
  315. package/src/components/GracePeriod/GracePeriod.example.json +10 -5
  316. package/src/components/GracePeriod/GracePeriod.tsx +17 -11
  317. package/src/components/GracePeriod/GracePeriodContent.ts +14 -3
  318. package/src/components/NavigatorTabs/NavigatorTabItem.tsx +1 -1
  319. package/src/components/NavigatorTabs/NavigatorTabs.example.json +3 -3
  320. package/src/components/NavigatorTabs/NavigatorTabs.tsx +1 -1
  321. package/src/components/ProductBlock/ProductBlock.example.json +6 -0
  322. package/src/components/ProductBlock/ProductBlock.fixture.tsx +65 -28
  323. package/src/components/ProductBlock/ProductBlockContent.ts +8 -0
  324. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +6 -1
  325. package/src/components/ProductBlock/ProductBlockInner.tsx +4 -1
  326. package/src/components/ProductBlock/renderBenefit.mobile.tsx +15 -4
  327. package/src/components/ProductBlock/renderBenefit.tsx +20 -8
  328. package/src/components/Recommendation/Recommendation.example.json +11 -10
  329. package/src/components/Recommendation/Recommendation.fixture.tsx +3 -3
  330. package/src/components/Recommendation/RecommendationCard.tsx +6 -3
  331. package/src/components/Recommendation/RecommendationContent.ts +12 -10
  332. package/src/icons/AppleIcon.svg +3 -1
  333. package/src/icons/BurgerIcon.svg +4 -4
  334. package/src/icons/Calendar2Icon.svg +6 -1
  335. package/src/icons/CalendarCircleIcon.svg +1 -4
  336. package/src/icons/CalendarIcon.svg +1 -1
  337. package/src/icons/CalendarTickIcon.svg +1 -6
  338. package/src/icons/CalendarWhiteIcon.svg +2 -2
  339. package/src/icons/CardIcon.svg +1 -5
  340. package/src/icons/CardPosIcon.svg +1 -5
  341. package/src/icons/CardTickIcon.svg +1 -5
  342. package/src/icons/CardWithGemIcon.svg +1 -1
  343. package/src/icons/ChartSquareIcon.svg +1 -6
  344. package/src/icons/CloseIcon.svg +4 -4
  345. package/src/icons/DiscountShapeIcon.svg +1 -4
  346. package/src/icons/DocIcon.svg +1 -1
  347. package/src/icons/DocumentTextIcon.svg +2 -2
  348. package/src/icons/EmptyWalletChangeIcon.svg +3 -3
  349. package/src/icons/EmptyWalletIcon.svg +2 -2
  350. package/src/icons/GlobalIcon.svg +1 -5
  351. package/src/icons/GpsIcon.svg +6 -6
  352. package/src/icons/GridIcon.svg +1 -1
  353. package/src/icons/InterestIcon.svg +1 -6
  354. package/src/icons/MasterCardIcon.svg +1 -5
  355. package/src/icons/MinusIcon.svg +1 -3
  356. package/src/icons/MoneyIcon.svg +1 -5
  357. package/src/icons/MonitorMobileIcon.svg +1 -4
  358. package/src/icons/OfficeIcon.svg +1 -1
  359. package/src/icons/PercentageRoundIcon.svg +1 -4
  360. package/src/icons/PercentageSquareIcon.svg +1 -1
  361. package/src/icons/PersonalCardIcon.svg +1 -4
  362. package/src/icons/PlayMarketIcon.svg +1 -3
  363. package/src/icons/PlusIcon.svg +1 -3
  364. package/src/icons/Profile2UserIcon.svg +1 -6
  365. package/src/icons/RoundRubleIcon.svg +1 -5
  366. package/src/icons/SafeIcon.svg +1 -7
  367. package/src/icons/ShieldTickIcon.svg +1 -4
  368. package/src/icons/SmallClockIcon.svg +1 -4
  369. package/src/icons/UserTickIcon.svg +1 -5
  370. package/src/icons/WalletAdd2Icon.svg +1 -6
  371. package/src/icons/WalletAddIcon.svg +1 -7
  372. package/src/icons/WalletIcon.svg +1 -7
  373. package/src/icons/WalletWithMoneyIcon.svg +1 -5
  374. package/src/index.ts +2 -0
  375. package/src/model/IconVersion.ts +1 -0
  376. package/src/model/Picture.ts +3 -0
  377. package/src/ui-kit/Icon/Icon.tsx +3 -1
  378. package/src/ui-kit/Icon/IconProps.ts +3 -0
  379. package/src/ui-kit/Img/Img.mobile.tsx +11 -2
  380. package/src/ui-kit/Img/Img.tsx +10 -2
  381. package/src/ui-kit/Img/getIconVersion.tsx +3 -0
  382. package/src/ui-kit/Select/SelectOption.tsx +10 -7
  383. package/src/ui-kit/Tabs/Tabs.tsx +1 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=a((e=>{const{className:t,headingType:r,title:a,as:i}=e;if(!r)return;return n(i||r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:a})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m=a((({className:e="",name:t="",alt:a=`Иконка ${s[t]||t}`,title:i=a,asSVG:l,...o})=>{const c=`${d.CDN||""}icons/${t}.svg`;return l?r("svg",{className:e,...o,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):n("img",{className:e,src:c,alt:a,title:i,...o,"aria-hidden":"true"})})),h=a((({className:e="",image:t,imageClassName:r="",...a})=>{const i="string"==typeof t?t:t?.icon;return i||""===i?n(m,{className:e,name:i,...a}):n(u,{className:e,imageClassName:r,image:t})})),u=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:x(t)},`${r}_${e}`))):null,p(t,a)]}):null)),p=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",i=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:i,title:a,style:r,...e.size})};function x(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:i,image:l,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),i&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(h,{image:l})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:i(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(I,{gap:i,padding:l,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=r-n;if(2===a)return[[0,l],[l,r]];const o=i+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?l-c:0,t>0?l:c]:[(t-1)*o+c,t*o+c]));return d[a-1]=[l,r],d})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:o})=>{const{text:c,fileSize:s,...d}=l;return r("a",{className:e,role:"link",...d,children:[o?n(h,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:i,icon:l={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:i}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:l}):n(D,{context:t,hasBorder:d,documents:c,icon:l})]}))),L=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var M=Object.freeze({__proto__:null,isURL:L,withoutQuery:P,getOrigin:W,getHash:e=>{if(!e||!L(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=W(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function V({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!L(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const _=a((e=>{const{text:t,aboveText:a,appendLeft:i}=e;return r("div",{className:E(e),children:[i||null,O(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),E=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",O(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},U="w-full text-center font-sans select-none",z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(_,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${U} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${U} inline-block cursor-pointer no-underline ${F[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:o,"aria-label":h,role:i?"link":"button",...u,children:p})})),Z=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(h,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(V({router:i,handlerDecorator:a},e),t)))}):null}));const J=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},K={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Q=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Y(i)}),n("span",{children:a})]}))),Y=e=>`${q[e]} ${K[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,X={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ee=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l="primary"}=e;return n("section",{className:`${X[l]} ${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(Q,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),te=a((({className:e="",title:t,children:a,buttons:i,image:l,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),i?n("div",{children:i}):null]}),l]})]}))),ne={primary:"text-primary-text",secondary:"text-white"},re={primary:"text-secondary-text",secondary:"text-white"};const ae=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:s,image:d,items:m,version:u="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?oe(x,u):null,r(te,{context:t,title:a&&n(o,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(Z,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?n(J,{className:"mt-3 text-m-md",description:l}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(h,{className:"w-6 h-6 rounded-full box-border",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${ne[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${re[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(ee,{className:"mt-3 text-m-md",items:m,version:u,isDotted:p}):null]})]}),ie(d)]})));function ie(e){return e?.src?n(h,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const le={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},oe=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${le[t]}`,children:e}),ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},se=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ce[r]} ${t}`,children:n(ae,{...e})})})),de={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},me=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:o="",items:c,isDotted:s=!0})=>{const d=de[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===i?he(d.icon):null,"big"===i?ue(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(ee,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function he(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ue(e){return e?.src?n(h,{className:"pb-3 mr-auto",image:e}):null}const pe={primary:"bg-white",secondary:"bg-primary-main text-white"},xe=a((({context:e,title:t,description:a,cards:i=[],className:l,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),ge(c,i,e)]})));function ge(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(be)}):n("div",{className:"grid gap-[14px]",children:t?.map(be)})}function be(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${pe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(h,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?fe(e):null,e.items?.length?ye(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(z,{className:"mt-3",appendLeft:a?.icon&&n(h,{image:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function fe(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ye(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ne=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ve(t):null})}))),ve=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),we={Headline:f,LinkDocs:A,TextBlock:me,ProductBlock:se,Gallery:xe,LinkList:Ne},Ie=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(ke({context:t,className:n,columns:r})):null,ke=({context:e,columns:t,className:r})=>(a,i)=>{const l=a?.blockListType;if(!l||!(l in we))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(we[l],{context:e,...a,className:"!p-0"})},`block_${i}`)},Ce=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Ie({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),$e=a((({label:e,labelIcon:t,blocks:a,bordered:i,context:l})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),i=t?.length;return{isActive:r,hasContent:i,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:a});return r("li",{className:`${Se(i)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${i?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(h,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(h,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n(Ce,{blocks:a,context:l}):null]})}));function Se(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Te=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n($e,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),De=a((({icon:e,image:t,title:a,subtitle:i,isFillGradient:l})=>r("div",{role:"columnheader",scope:"col",children:[e?n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(h,{image:t})}),a&&n(o,{headingType:"h4",className:""+(l?"text-white":""),title:a}),i&&n("div",{className:"text-m-sm mb-3.5 "+(l?"text-white":"text-secondary-text/80"),children:i})]}))),Re=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ae(r,t))})}))),Ae=(e,t)=>({label:a,description:i},l)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),i&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i})]})]},String(l)),Le=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:i,showRow:l,onToggleColumn:o})=>{const c=t?.slice(0,l?t.length:a),s=i?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(De,{...e,isFillGradient:i}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Re,{cell:t,rowHeader:e,isFillGradient:i},String(r)))):null,l&&Pe({header:e,buttonVersion:s}),We({onToggleColumn:o,isFillGradient:i,showRow:l})]})})),Pe=({header:e,buttonVersion:t})=>n(z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),We=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),Me=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=l?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:i?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(l?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),je({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),je=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:i,handleToggleColumn:l,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Be({orientation:o,context:e,columnsViewState:i,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:l}):null}),Be=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:i,visibleRowLength:l,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(k,{context:t,onSlideChange:Ve(r,a),children:i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),Ge=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:i})=>(l,o)=>n(Le,{context:e,visibleRowLength:t,showRow:a[o],header:l.header,columnData:l.column,isFillGradient:0===o&&r,onToggleColumn:()=>i(o)},String(o)),Ve=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function _e(){try{const e=await fetch(Ee);return await e.json()}catch(e){console.error(e)}}const Ee="/api/v1/exchangerates.json",Oe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Fe(e=""){const t=Oe(e);return t<=4?"h4":t<=8?"h3":"h2"}const He=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ue=e=>e?He.format(e):"",ze="font-light text-left font-normal text-sm text-secondary-text",Ze={USD:"DollarIcon",EUR:"EuroIcon"},Je=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:ze,children:"Валюта"}),n("th",{className:`${ze} pl-11`,children:"Купить"}),n("th",{className:`${ze} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>qe(e)))})]}))),qe=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(h,{image:{icon:Ze[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.saleExchangeRate)})]},t)},Ke=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Qe=a((({className:e="",id:t,name:r,type:a="text",placeholder:i})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:i}))),Ye=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Xe=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),et=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[tt("Хочу продать",e),tt("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function tt(e,t){return r("div",{className:"relative flex items-center",children:[n(Qe,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Ye,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Xe,{value:e,children:e},String(t))))}):null]})}const nt=["USD","EUR"],rt=["RUB","USD","EUR"],at=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],it={address:"Москва, ул.Ленина д.28",distance:"6км"},lt=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:i=null})=>{const l=function(e){const{data:t}=e(Ee,_e);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==nt.indexOf(e?.currency?.currency||"")))||at;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:i,children:n(te,{context:t,title:n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[l?n(Je,{className:"mb-[31px]",exchangeCurrencyItems:l}):null,n(Ke,{...it})]}),l?.length?n(et,{className:"grow",exchangeCurrencyItems:l,codes:rt}):null]})})})})),ot=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),ct=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],st={"bg-white":"text-primary-main",transparent:"text-white"},dt={"bg-white":"text-black",transparent:"text-white"},mt=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ot,{className:`${st[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:ct.map((e=>({d:e})))}),!o&&n("span",{className:`${dt[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),ht=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(mt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),ut=a((({className:e="",items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:e,children:[t?.length?t.map(pt):null,a?n(z,{version:"primary",className:"mb-6 w-full",...V({router:l,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),pt=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:xt(a,i)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:l})]},String(t))},xt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${gt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},gt=e=>e.replaceAll(/\D/g,""),bt=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(ft,{index:t,...V({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),ft=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),yt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Nt=a((({href:e,version:t})=>{const{icon:r,width:a,height:i,label:l}=yt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(h,{image:r,width:a,height:i,asSVG:!0,className:"block"}):null})})),vt=a((({className:e,media:t,version:r,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Nt,{version:r,...V({router:i,handlerDecorator:l},e)},String(t))))})})),wt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(It,{index:t,...V({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),It=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`})));function kt(e){const{data:t}=e($t(),Ct);return t||{}}async function Ct(){const e=await fetch($t());return await e.json()}function $t(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const St=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:n(h,{image:"CloseIcon",width:"24",height:"24"})})]})})),Tt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Dt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,context:o,horizontalNavigationTitle:c})=>{const s=kt(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(ut,{className:"overflow-hidden",items:i,context:o,hasButton:!0}),n(Te,{context:o,className:"!p-0 mb-4",accordionItems:Tt(s.topItems)}),n("div",{children:d?.map(Rt)}),n(ht,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(St,{context:o,className:"grow"}),n(vt,{className:"pb-4",media:l,context:o}),n(bt,{title:c,links:a,context:o}),n(wt,{links:t,context:o})]})})),Rt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(z,{version:"link",href:i,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},At=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(j,""))(P(L(e)?t.href:t.pathname))),Lt=e=>t=>At(t.href,e),Pt=e=>t=>t.items?.some(Lt(e))||At(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),Wt=e=>t=>e?.href===t?.href,Mt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Wt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Wt(e))))));var n,r,a},jt="absolute left-0 -bottom-3 w-full h-[2px]",Bt=a((({className:e,text:t,href:a,target:i,active:l,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:o,children:[n("span",{className:Gt(s,l),children:t||c}),l?n("div",{className:Vt(s,l)}):null]}))),Gt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Vt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,_t=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[o,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(h,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),l,n("div",{className:"mb-7",children:t?.map(Et)}),n(St,{context:e,className:"grow"})]})})),Et=(e,t)=>{const{icon:a,href:i,text:l}=e;return r("a",{href:i,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Ot=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(mt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ft=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const o=i.useRouter(),c=kt(i.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=i,m=Mt(c.topItems,l).find(Pt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Lt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(m),[u,p]=i.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ot,{onClick:x,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Ht({...V({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(_t,{context:i,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Te,{context:i,accordionItems:Tt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ht=(e,t)=>n(Bt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Ut(e=""){const t=Oe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function zt(e=""){const t=Oe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Zt=a((({className:e,context:t,title:a,description:i="Блок в разработке...",anchor:l=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${zt(e)} ${Ut(e)} `,id:l,children:r(te,{context:t,title:a?n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(J,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:Jt()})]})}))),Jt=(e=3)=>Kt(100,e).map((e=>Math.floor(e))).map(qt),qt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Kt=(e,t)=>[e].concat(t>0?Kt(e/1.618,t-1):[]),Qt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Yt=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Qt[e?.version??"primary"]} ${a}`,children:n("div",{className:"flex grow",children:n(ae,{context:r,headingType:t||"h2",...e})})}))),Xt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(Yt,{block:e,context:t},String(r))))})})})),en={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},tn={normal:"min-h-[70px]",small:"min-h-[50px]"},nn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},rn=e=>nn[e],an=a((({className:e,title:t,description:a,steps:i,size:l="normal",version:c="primary"})=>{const s=rn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t)=>ln({step:e,size:l,i:t,length:i.length,version:c})))})}):null]})})),ln=e=>{const{step:t,size:a,i:i,length:l,version:o}=e,c=l-1===i,s="normal"===a?"ml-[34px]":"ml-[24px]",d=rn(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[on(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${tn[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(i))},String(i))},on=e=>{const{step:t,size:r,i:a,version:i}=e,l=rn(i),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${en[r]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${l.title} ${c}`,children:t.icon?.icon&&n(h,{image:t.icon,width:o,height:o,asSVG:!0})||a+1})})},cn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),sn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],dn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(cn,{...e}),t?.length?t.map(mn):null]}))),mn=({label:e,description:t,list:a,image:i,buttons:l},o)=>r("div",{children:[o>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,a?.items?.length?hn(a):null,i&&n(h,{image:{...i,className:"m-0"}}),l?.length?un(l):null]},String(o)),hn=e=>n(ee,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),un=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:sn(e),rounded:t,appendLeft:e?n(h,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(a))))}),pn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),xn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),gn=a((({className:e,context:t,title:a,description:i,columns:l,rowHeaders:c,orientation:s="vertical"})=>{const d=fn(l),m=yn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("div",{className:"mb-5 text-center text-m-md",children:i}):null,m?.length?bn(s,m,t):null]})}));function bn(e,t,r){return"vertical"===e?n(pn,{tiles:t}):n(xn,{context:r,tiles:t})}const fn=e=>e?.[0].data?e[0].data:[],yn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Nn={Accordion:Te,ComparisonTable:Me,ExchangeRateTile:lt,Footer:Dt,Gallery:xe,Header:Ft,Headline:f,LinkDocs:A,LinkList:Ne,MobileAppTile:ht,ProductBlock:se,ProductGallery:Xt,StepsBlock:an,TariffsTable:gn,TextBlock:me,Placeholder:Zt},vn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:wn()}))),wn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},In=a((({className:e,context:t,anchor:a=null})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(vn,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(vn,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),kn=!("undefined"==typeof window||!window.document||!window.document.createElement),Cn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),$n=a((({className:e="",context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Cn})=>{const{header:m}=o,h=t.useRouter();return kn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Tn(i)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Tn(m?.style)}`,children:m.blocks.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(In,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Sn({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const o=r[l||"Placeholder"]||Zt;return t({blockClassName:`scroll-mt-12 ${Tn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,anchor:c,...r},`${l}-${i}`)}},`block-${i}`)}function Tn(e){return e?e.join(" "):""}const Dn=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,main:l,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=l||{};return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Rn(o),An(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function Rn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function An(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Ln(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Pn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Nn&&!e.mobile?.hidden)).map(Ln)}e.Blocks=Nn,e.ContentPage=$n,e.ContentPageHead=Dn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ft,e.Icon=m,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Pn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Pn(n[t].blocks)}})),{})}},e.projectSettings=d,e.setup=t,e.url=M,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...i}={})=>{const a=Object.assign({},i,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),i=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...i}=t||{},a=n?.slots?.default,l=r||a&&a();return e(Object.assign(i,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const l={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=i((e=>{const{className:t,headingType:r,title:i,as:a}=e;if(!r)return;return n(a||r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:i})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m=i((({className:e="",name:t="",alt:i=`Иконка ${s[t]||t}`,title:a=i,iconVersion:l,asSVG:o,...c})=>{const m=`${d.CDN||""}icons/${t}.svg`,h="white"===l?"text-black invert":"";return o?r("svg",{className:e,...c,"aria-hidden":"true",children:[a?n("title",{children:a}):null,i?n("desc",{children:i}):null,n("use",{className:h,href:`${m}#icon`,xlinkHref:`${m}#icon`})]}):n("img",{className:e,src:m,alt:i,title:a,...c,"aria-hidden":"true"})}));function h(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const u=i((({className:e="",image:t,imageClassName:r="",...i})=>{const a="string"==typeof t?t:t?.icon;return a||""===a?n(m,{className:e,iconVersion:h(t),name:a,...i}):n(p,{className:e,imageClassName:r,image:t})})),p=i((({className:e="",image:t,imageClassName:i=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:g(t)},`${r}_${e}`))):null,x(t,i)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},i=e.title||"",a=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:a,title:i,style:r,...e.size})};function g(e){return e?`image/${String(e)}`:void 0}const b={left:"text-left",center:"text-center",right:"text-right"},f={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},y=i((({bgColorHeadline:e="transparent",className:t="",title:i,description:a,image:l,align:c="left"})=>{const s=f[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[i&&n(o,{headingType:"h2",className:`${s.text} ${b[c]}`,title:i}),a&&n("p",{className:`font-normal text-m-md ${s.description} ${b[c]} ${i?"mt-2.5":""}`,children:a}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:l})})]})})),N=i((({children:e,activeIndex:t,indexFraction:r,showDots:i})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return i&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,i)=>n("div",{onClick:a(i),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:v(i,t,r),"aria-hidden":!0},String(i))))}):null})),v=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},w=i((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),I=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),k=i((({className:e="",children:t,activeIndex:r,onScroll:i,gap:a=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...I(l),gap:`${a}px`},role:"list",onScroll:i,children:t?.length?t?.map(((e,t)=>n(w,{style:I(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(w,{children:t})}))),C=i((({className:e,context:t,children:i,gap:a=14,padding:l=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:i};return r("div",{className:e,children:[n(k,{gap:a,padding:l,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:i,children:o}=e.currentTarget,m=o[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:i,itemWidth:a})=>{const l=r-n;if(2===i)return[[0,l],[l,r]];const o=a+e,c=n-e-t,s=i-2,d=new Array(i).fill(0).map(((e,t)=>0===t||t===s?[t>0?l-c:0,t>0?l:c]:[(t-1)*o+c,t*o+c]));return d[i-1]=[l,r],d})({gap:a,padding:l,clientWidth:n,scrollWidth:i,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,i]=t[n];return{index:n,fraction:(e-r)/(i-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:i}),n(N,{...u})]})})),$=i((({className:e,iconClassName:t,textClassName:i,suffixClassName:a,doc:l,icon:o})=>{const{text:c,fileSize:s,...d}=l;return r("a",{className:e,role:"link",...d,children:[o?n(u,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:i,children:[c,n("span",{className:a,children:d?.href&&S(T(d.href),s)})]}):null]})})),S=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),T=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},D=i((({className:e="",doc:t,icon:r})=>n($,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),R=i((({context:e,hasBorder:t=!0,documents:r,icon:i})=>n(C,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(D,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:i},String(r)))):null}))),A=i((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,i)=>n("div",{role:"listitem",children:n(D,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(i)))):null}))),L=i((({className:e="",context:t,title:i,subtitle:a,icon:l={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[i?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:i}):null,a?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:a}):null,"vertical"===s?n(A,{hasBorder:d,documents:c,icon:l}):n(R,{context:t,hasBorder:d,documents:c,icon:l})]}))),P=e=>e?.includes("//"),V=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!P(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var M=Object.freeze({__proto__:null,isURL:P,withoutQuery:V,getOrigin:W,getHash:e=>{if(!e||!P(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=W(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function _({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!P(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const i=r&&!P(r),a=!n.target||"_self"===n.target;i&&a&&(t.preventDefault(),e.push(r))}),n)}}const E=i((e=>{const{text:t,aboveText:i,appendLeft:a}=e;return r("div",{className:O(e),children:[a||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:i}),n("div",{className:"text-button text-left",children:t})]}):null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const i="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?i:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="w-full text-center font-sans select-none",Z=i((({className:e,text:t,aboveText:r,appendLeft:i,href:a,target:l,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(E,{text:t,aboveText:r,appendLeft:i,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${z} ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${z} inline-block cursor-pointer no-underline ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:l,onClick:o,"aria-label":h,role:a?"link":"button",...u,children:p})})),J=i((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:i}=e,a=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(Z,e?{appendLeft:n(u,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(_({router:a,handlerDecorator:i},e),t)))}):null}));const q=i((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),K={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},Q={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Y=i((({className:e="",isDotted:t=!0,children:i,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:X(a)}),n("span",{children:i})]}))),X=e=>`${K[e]} ${Q[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,ee={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},te=i((e=>{const{className:t="",itemClassName:r,isDotted:i,items:a,version:l="primary"}=e;return n("section",{className:`${ee[l]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(Y,{className:r,isDotted:i,version:l,children:e},String(t)))):null})})),ne=i((({className:e="",title:t,children:i,buttons:a,image:l,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:i}),a?n("div",{children:a}):null]}),l]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ie={primary:"text-secondary-text",secondary:"text-white"};function ae(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const le=i((({className:e="",context:t,title:i,headingType:a="h2",description:l,benefits:c,benefitsVersion:s="normal",buttons:d,image:m,items:h,version:p="primary",isDotted:x=!0,label:g})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[g?se(g,p):null,r(ne,{context:t,title:i&&n(o,{headingType:a,title:i,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:d?.length?n(J,{context:t,buttons:d,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?n(q,{className:"mt-3 text-m-md",description:l}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function({benefit:e,version:t="primary"},i){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(u,{className:ae(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${re[t]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ie[t]}`,children:e.description})]},String(i))}({benefit:e,version:p,benefitsVersion:s},t)))}):null,h?.length?n(te,{className:"mt-3 text-m-md",items:h,version:p,isDotted:x}):null]})]}),oe(m)]})));function oe(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const ce={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},se=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${ce[t]}`,children:e}),de={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},me=i((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${de[r]} ${t}`,children:n(le,{...e})})})),he={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},ue=i((({title:e,description:t,blockVersion:i="primary",iconVersion:a,image:l,className:o="",items:c,isDotted:s=!0})=>{const d=he[i];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===a?pe(d.icon):null,"big"===a?xe(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(te,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===i?"secondary":"gray"}):null]})]})}));function pe(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function xe(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const ge={primary:"bg-white",secondary:"bg-primary-main text-white"},be=i((({context:e,title:t,description:i,cards:a=[],className:l,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(i?"mb-2":"mb-5"),title:t}):null,i?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:i}):null]}),fe(c,a,e)]})));function fe(e,t,r){return"horizontal"===e?n(C,{context:r,children:t?.map(ye)}):n("div",{className:"grid gap-[14px]",children:t?.map(ye)})}function ye(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ge[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?Ne(e):null,e.items?.length?ve(e.items,e.version):null]}),e?.button?.text?(i=e.button,n(Z,{className:"mt-3",appendLeft:i?.icon&&n(u,{image:i?.icon,width:"24px",height:"24px",asSVG:!0}),...i})):null]},t);var i}function Ne(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ve(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,i)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(i))))})}const we=i((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ie(t):null})}))),Ie=e=>e.map(((e,t)=>{const{text:r,...i}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...i,children:r||null})},`list_item_${String(t)}`)})),ke={Headline:y,LinkDocs:L,TextBlock:ue,ProductBlock:me,Gallery:be,LinkList:we},Ce=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map($e({context:t,className:n,columns:r})):null,$e=({context:e,columns:t,className:r})=>(i,a)=>{const l=i?.blockListType;if(!l||!(l in ke))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(ke[l],{context:e,...i,className:"!p-0"})},`block_${a}`)},Se=i((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Ce({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),Te=i((({label:e,labelIcon:t,blocks:i,bordered:a,context:l})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,i]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!a)return;i(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:i});return r("li",{className:`${De(a)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${a?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(u,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(u,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n(Se,{blocks:i,context:l}):null]})}));function De(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Re=i((({title:e,description:t,accordionItems:i,context:a,className:l="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,i?.length?n("ul",{className:"list-none m-0 p-0",children:i.map(((e,t)=>n(Te,{...e,context:a,bordered:c},`AccordionItem${t}`)))}):null]}))),Ae=i((({icon:e,image:t,title:i,subtitle:a,isFillGradient:l})=>r("div",{role:"columnheader",scope:"col",children:[e?n(u,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(u,{image:t})}),i&&n(o,{headingType:"h4",className:""+(l?"text-white":""),title:i}),a&&n("div",{className:"text-m-sm mb-3.5 "+(l?"text-white":"text-secondary-text/80"),children:a})]}))),Le=i((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Pe(r,t))})}))),Pe=(e,t)=>({label:i,description:a},l)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[i&&n("div",{className:"text-right "+(e?"text-white":""),children:i}),a&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a})]})]},String(l)),Ve=i((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:a,showRow:l,onToggleColumn:o})=>{const c=t?.slice(0,l?t.length:i),s=a?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${a?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Ae,{...e,isFillGradient:a}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Le,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,l&&We({header:e,buttonVersion:s}),Me({onToggleColumn:o,isFillGradient:a,showRow:l})]})})),We=({header:e,buttonVersion:t})=>n(Z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Me=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),je=i((({className:e,context:t,title:i,rowHeaders:a,columns:l,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=l?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(l?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[i&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}),Be({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),Be=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:i,columnsViewState:a,handleToggleColumn:l,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Ge({orientation:o,context:e,columnsViewState:a,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:i,handleToggleColumn:l}):null}),Ge=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:i,tableData:a,visibleRowLength:l,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(C,{context:t,onSlideChange:Ee(r,i),children:a.map(_e({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):a.map(_e({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),_e=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:i,handleToggleColumn:a})=>(l,o)=>n(Ve,{context:e,visibleRowLength:t,showRow:i[o],header:l.header,columnData:l.column,isFillGradient:0===o&&r,onToggleColumn:()=>a(o)},String(o)),Ee=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Oe(){try{const e=await fetch(Fe);return await e.json()}catch(e){console.error(e)}}const Fe="/api/v1/exchangerates.json",He=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Ue(e=""){const t=He(e);return t<=4?"h4":t<=8?"h3":"h2"}const ze=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ze=e=>e?ze.format(e):"",Je="font-light text-left font-normal text-sm text-secondary-text",qe={USD:"DollarIcon",EUR:"EuroIcon"},Ke=i((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Je,children:"Валюта"}),n("th",{className:`${Je} pl-11`,children:"Купить"}),n("th",{className:`${Je} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Qe(e)))})]}))),Qe=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(u,{image:{icon:qe[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ze(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ze(e.saleExchangeRate)})]},t)},Ye=i((({className:e="",address:t,distance:i})=>r("div",{className:`flex text-sm ${e}`,children:[n(u,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,i?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",i]}):null]})]}))),Xe=i((({className:e="",id:t,name:r,type:i="text",placeholder:a})=>n("input",{className:e,id:t,name:r||t,type:i,placeholder:a}))),et=i((({className:e="",id:t,name:r,children:i})=>n("select",{className:e,id:t,name:r||t,children:i}))),tt=i((({className:e="",value:t,selected:r,children:i})=>n("option",{className:e,value:`${t}`,selected:r,children:i}))),nt=i((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[rt("Хочу продать",e),rt("Получу",e,"USD"),n(Z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function rt(e,t,i){return r("div",{className:"relative flex items-center",children:[n(Xe,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(et,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(tt,{value:e,selected:e===i,children:e},String(t))))}):null]})}const it=["USD","EUR"],at=["RUB","USD","EUR"],lt=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],ot={address:"Москва, ул.Ленина д.28",distance:"6км"},ct=i((({className:e="",context:t,title:i="Курсы обмена валют",anchor:a=null})=>{const l=function(e){const{data:t}=e(Fe,Oe);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==it.indexOf(e?.currency?.currency||"")))||lt;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:a,children:n(ne,{context:t,title:n(o,{headingType:Ue(e),title:i,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[l?n(Ke,{className:"mb-[31px]",exchangeCurrencyItems:l}):null,n(Ye,{...ot})]}),l?.length?n(nt,{className:"grow",exchangeCurrencyItems:l,codes:at}):null]})})})})),st=i((({className:e,viewBox:t,fill:r="none",width:i,height:a,paths:l,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:i,height:a,children:l.map((({d:e,fill:t,...r},i)=>n("path",{d:e,fill:t||"currentColor",...o,...r},i)))}))),dt=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],mt={"bg-white":"text-primary-main",transparent:"text-white"},ht={"bg-white":"text-black",transparent:"text-white"},ut=i((({className:e="",href:t,children:i,targetBlank:a,bgColor:l="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(st,{className:`${mt[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:dt.map((e=>({d:e})))}),!o&&n("span",{className:`${ht[l]} text-sm font-medium ml-2.5`,children:i||"Россельхозбанк"})]}))),pt=i((({className:e,title:t="Мобильное приложение",description:i,href:a="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:a?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(ut,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:a,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:i})]})]}):null}))),xt=i((({className:e="",items:t,hasButton:i,context:a})=>{const l=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:e,children:[t?.length?t.map(gt):null,i?n(Z,{version:"primary",className:"mb-6 w-full",..._({router:l,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),gt=(e,t)=>{const{type:i,text:a,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:bt(i,a)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:l})]},String(t))},bt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${ft(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},ft=e=>e.replaceAll(/\D/g,""),yt=i((({title:e,links:t,className:i="",context:a})=>{const l=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:i,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Nt,{index:t,..._({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),Nt=i((({className:e="",index:t,text:r,href:i,target:a,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:i,target:a,onClick:l,children:r||`Документ ${t}`}))),vt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],wt=i((({href:e,version:t})=>{const{icon:r,width:i,height:a,label:l}=vt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(u,{image:r,width:i,height:a,asSVG:!0,className:"block"}):null})})),It=i((({className:e,media:t,version:r,context:i})=>{const a=i.useRouter(),{handlerDecorator:l}=i;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(wt,{version:r,..._({router:a,handlerDecorator:l},e)},String(t))))})})),kt=i((({className:e,links:t,context:i})=>{const a=i.useRouter(),{handlerDecorator:l}=i;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Ct,{index:t,..._({router:a,handlerDecorator:l},e)},String(t))))}):null]})})),Ct=i((({className:e,index:t,text:r,href:i,target:a,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:i,target:a,onClick:l,children:r||`Документ ${t}`})));function $t(e){const{data:t}=e(Tt(),St);return t||{}}async function St(){const e=await fetch(Tt());return await e.json()}function Tt(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Dt=i((({className:e,context:t})=>{const{term:i,setTerm:a}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),!i&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:i,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:n(u,{image:"CloseIcon",width:"24",height:"24"})})]})})),Rt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),At=i((({className:e="",documents:t,relatedEnterprises:i,contacts:a,socialMedia:l,context:o,horizontalNavigationTitle:c})=>{const s=$t(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(xt,{className:"overflow-hidden",items:a,context:o,hasButton:!0}),n(Re,{context:o,className:"!p-0 mb-4",accordionItems:Rt(s.topItems)}),n("div",{children:d?.map(Lt)}),n(pt,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Dt,{context:o,className:"grow"}),n(It,{className:"pb-4",media:l,context:o}),n(yt,{title:c,links:i,context:o}),n(kt,{links:t,context:o})]})})),Lt=(e,t)=>{const{icon:i,href:a,text:l}=e;return r(Z,{version:"link",href:a,className:"flex text-sm mb-4",children:[i?n(u,{className:"pr-1",image:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},Pt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(V(e),(e=>(e||"").replace(j,""))(V(P(e)?t.href:t.pathname))),Vt=e=>t=>Pt(t.href,e),Wt=e=>t=>t.items?.some(Vt(e))||Pt(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),Mt=e=>t=>e?.href===t?.href,jt=(e,t)=>{return(r=e,i=t,(r||[]).map((e=>i?.find(Mt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Mt(e))))));var n,r,i},Bt="absolute left-0 -bottom-3 w-full h-[2px]",Gt=i((({className:e,text:t,href:i,target:a,active:l,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:i,target:a,onClick:o,children:[n("span",{className:_t(s,l),children:t||c}),l?n("div",{className:Et(s,l)}):null]}))),_t=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Et=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Bt}`:Bt,Ot=i((({context:e,burgerSubMenu:t,onClick:i,defaultLocation:a="",children:l})=>{const[o,c]=e.useGeolocation(a);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:i,children:n(u,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(u,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),l,n("div",{className:"mb-7",children:t?.map(Ft)}),n(Dt,{context:e,className:"grow"})]})})),Ft=(e,t)=>{const{icon:i,href:a,text:l}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[i?n(u,{className:"text-primary-main pr-1",image:i,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Ht=i((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(u,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(ut,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ut=i((({className:e="",defaultLocation:t,bgColor:i="bg-white",context:a,topItems:l})=>{const o=a.useRouter(),c=$t(a.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=a,m=jt(c.topItems,l).find(Wt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Vt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${i} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ht,{onClick:x,bgColor:i}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>zt({..._({router:o,handlerDecorator:d},e),active:e===h,bgColor:i},t)))})})]}),u?n(Ot,{context:a,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Re,{context:a,accordionItems:Rt(c.topItems),className:"!p-0 mb-4"})}):null]})})),zt=(e,t)=>n(Gt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Zt(e=""){const t=He(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Jt(e=""){const t=He(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const qt=i((({className:e,context:t,title:i,description:a="Блок в разработке...",anchor:l=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Jt(e)} ${Zt(e)} `,id:l,children:r(ne,{context:t,title:i?n(o,{headingType:Ue(e),title:i,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[a?n(q,{className:"mt-4 max-w-[600px]",description:a}):null,n("figure",{className:"m-0 min-w-[600px]",children:Kt()})]})}))),Kt=(e=3)=>Yt(100,e).map((e=>Math.floor(e))).map(Qt),Qt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Yt=(e,t)=>[e].concat(t>0?Yt(e/1.618,t-1):[]),Xt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},en=i((({block:e,headingType:t,context:r,className:i=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Xt[e?.version??"primary"]} ${i}`,children:n("div",{className:"flex grow",children:n(le,{context:r,headingType:t||"h2",...e})})}))),tn=i((({className:e,context:t,slides:r=[]})=>{const i=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(C,{context:t,children:i.map(((e,r)=>n(en,{block:e,context:t},String(r))))})})})),nn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},rn={normal:"min-h-[70px]",small:"min-h-[50px]"},an={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},ln=e=>an[e],on=i((({className:e,title:t,description:i,steps:a,size:l="normal",version:c="primary"})=>{const s=ln(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),i&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:i}),a?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:a.map(((e,t)=>cn({step:e,size:l,i:t,length:a.length,version:c})))})}):null]})})),cn=e=>{const{step:t,size:i,i:a,length:l,version:o}=e,c=l-1===a,s="normal"===i?"ml-[34px]":"ml-[24px]",d=ln(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[sn(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${rn[i]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(a))},String(a))},sn=e=>{const{step:t,size:r,i:i,version:a}=e,l=ln(a),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${nn[r]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${l.title} ${c}`,children:t.icon?.icon&&n(u,{image:t.icon,width:o,height:o,asSVG:!0})||i+1})})},dn=i((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(u,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),mn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],hn=i((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(dn,{...e}),t?.length?t.map(un):null]}))),un=({label:e,description:t,list:i,image:a,buttons:l},o)=>r("div",{children:[o>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,i?.items?.length?pn(i):null,a&&n(u,{image:{...a,className:"m-0"}}),l?.length?xn(l):null]},String(o)),pn=e=>n(te,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),xn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},i)=>n(Z,{className:`mt-3 ${i>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:mn(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(i))))}),gn=i((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(hn,{...e},String(t))))}))),bn=i((({tiles:e,context:t})=>n(C,{context:t,children:e.map(((e,t)=>n(hn,{...e},String(t))))}))),fn=i((({className:e,context:t,title:i,description:a,columns:l,rowHeaders:c,orientation:s="vertical"})=>{const d=Nn(l),m=vn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[i?n(o,{headingType:"h2",className:"text-center "+(a?"mb-2":"mb-5"),title:i}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?yn(s,m,t):null]})}));function yn(e,t,r){return"vertical"===e?n(gn,{tiles:t}):n(bn,{context:r,tiles:t})}const Nn=e=>e?.[0].data?e[0].data:[],vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),wn={Accordion:Re,ComparisonTable:je,ExchangeRateTile:ct,Footer:At,Gallery:be,Header:Ut,Headline:y,LinkDocs:L,LinkList:we,MobileAppTile:pt,ProductBlock:me,ProductGallery:tn,StepsBlock:on,TariffsTable:fn,TextBlock:ue,Placeholder:qt},In=i((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:kn()}))),kn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Cn=i((({className:e,context:t,anchor:i=null})=>{const a=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:i,children:[n(In,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(In,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),$n=!("undefined"==typeof window||!window.document||!window.document.createElement),Sn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Tn=i((({className:e="",context:t,blocksRegistry:i,data:{style:a,blocks:l,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Sn})=>{const{header:m}=o,h=t.useRouter();return $n&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Rn(a)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Rn(m?.style)}`,children:m.blocks.map(((e,n)=>Dn({block:e,blockDecorator:d,blocksRegistry:i,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Dn({block:e,blockDecorator:d,blocksRegistry:i,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Cn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Dn({block:e,blockDecorator:t,blocksRegistry:r,context:i},a){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const o=r[l||"Placeholder"]||qt;return t({blockClassName:`scroll-mt-12 ${Rn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:i,anchor:c,...r},`${l}-${a}`)}},`block-${a}`)}function Rn(e){return e?e.join(" "):""}const An=i((({HeadComponent:e,data:t,children:i})=>{const{title:a,main:l,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=l||{};return r(e,{children:[n("title",{children:a}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Ln(o),Pn(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),i]})}));function Ln(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function Pn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Vn(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Wn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in wn&&!e.mobile?.hidden)).map(Vn)}e.Blocks=wn,e.Button=Z,e.ContentPage=Tn,e.ContentPageHead=An,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=Ut,e.Icon=m,e.Image=u,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(a)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(a,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:r})}),{likes:a}=await n.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:i,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:i,name:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Wn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Wn(n[t].blocks)}})),{})}},e.projectSettings=d,e.setup=t,e.url=M,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -5,9 +5,9 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  exports.Bonus = (0, uni_jsx_1.JSX)((props) => {
7
7
  const { className = '', title, description, bonusItems, anchor = null } = props;
8
- return ((0, jsx_runtime_1.jsx)("section", { className: `bg-white p-12 ${className}`, id: anchor, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "text-center", title: title }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-md font-light text-center mt-2", children: description })) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
8
+ return ((0, jsx_runtime_1.jsx)("section", { className: `font-sans bg-white p-[50px] pb-9 ${className}`, id: anchor, children: (0, jsx_runtime_1.jsxs)("div", { className: "container", children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "text-center", title: title }) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-md font-light text-center mt-[10px]", children: description })) : null, (0, jsx_runtime_1.jsx)("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems
9
9
  ? bonusItems.map((_, i) => {
10
- return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-4 mx-2 even:mr-0 odd:ml-0 last:odd:w-full last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-title-sm", children: _.name }), (0, jsx_runtime_1.jsx)("div", { className: "text-md font-light mt-3 max-w-[488px]", children: _.description })] }), _.bonusCount ? ((0, jsx_runtime_1.jsxs)("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [(0, jsx_runtime_1.jsx)("span", { className: "font-mohave -tracking-wider text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), (0, jsx_runtime_1.jsx)("span", { className: "text-[44px] bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
10
+ return ((0, jsx_runtime_1.jsx)("div", { className: "flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex justify-between w-full", children: [(0, jsx_runtime_1.jsxs)("div", { className: "mr-4", children: [(0, jsx_runtime_1.jsx)("div", { className: "text-title-sm", children: _.name }), (0, jsx_runtime_1.jsx)("div", { className: "text-md font-light mt-[14px] max-w-[488px]", children: _.description })] }), _.bonusCount ? ((0, jsx_runtime_1.jsxs)("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [(0, jsx_runtime_1.jsx)("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount }), (0, jsx_runtime_1.jsx)("span", { className: "text-[44px] bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })] })) : null] }) }, String(i)));
11
11
  })
12
12
  : null })] }) }));
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEhF,OAAO,CACL,oCAAS,SAAS,EAAE,iBAAiB,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,YAC1D,iCAAK,SAAS,EAAC,WAAW,aACvB,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,qCAAqC,YAAE,WAAW,GAAO,CACzE,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU;wBACT,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,qHAAqH,YAE/H,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,MAAM,aACnB,gCAAK,SAAS,EAAC,eAAe,YAAE,CAAC,CAAC,IAAI,GAAO,EAC7C,gCAAK,SAAS,EAAC,uCAAuC,YAAE,CAAC,CAAC,WAAW,GAAO,IACxE,EACL,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAK,SAAS,EAAC,yDAAyD,aACtE,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,EACP,iCAAM,SAAS,EAAC,8DAA8D,YAC3E,CAAC,CAAC,SAAS,GACP,IACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IAlBD,MAAM,CAAC,CAAC,CAAC,CAmBV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"Bonus.js","sourceRoot":"","sources":["../../../src/components/Bonus/Bonus.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,0DAAuD;AAI1C,QAAA,KAAK,GAAG,IAAA,aAAG,EAAa,CAAC,KAAK,EAAE,EAAE;IAC7C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEhF,OAAO,CACL,oCAAS,SAAS,EAAE,oCAAoC,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,YAC7E,iCAAK,SAAS,EAAC,WAAW,aACvB,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EACjF,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,CAC9E,CAAC,CAAC,CAAC,IAAI,EACR,gCAAK,SAAS,EAAC,4BAA4B,YACxC,UAAU;wBACT,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;4BACtB,OAAO,CACL,gCAEE,SAAS,EAAC,8GAA8G,YAExH,iCAAK,SAAS,EAAC,6BAA6B,aAC1C,iCAAK,SAAS,EAAC,MAAM,aACnB,gCAAK,SAAS,EAAC,eAAe,YAAE,CAAC,CAAC,IAAI,GAAO,EAC7C,gCAAK,SAAS,EAAC,4CAA4C,YACxD,CAAC,CAAC,WAAW,GACV,IACF,EACL,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CACd,iCAAK,SAAS,EAAC,yDAAyD,aACtE,iCAAM,SAAS,EAAC,qGAAqG,YAClH,CAAC,CAAC,UAAU,GACR,EACP,iCAAM,SAAS,EAAC,8DAA8D,YAC3E,CAAC,CAAC,SAAS,GACP,IACH,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,IApBD,MAAM,CAAC,CAAC,CAAC,CAqBV,CACP,CAAC;wBACJ,CAAC,CAAC;wBACJ,CAAC,CAAC,IAAI,GACJ,IACF,GACE,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import type { DescriptionContent } from '../../ui-kit/Description/DescriptionContent';
2
2
  import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
3
- /** @title Список плиток */
3
+ /** @title Плитка */
4
4
  interface BonusItems {
5
- /** @title Заголовок плитки */
5
+ /** @title Бонусы */
6
6
  name?: string;
7
7
  /** @title Описание плитки */
8
8
  description?: string;
@@ -12,9 +12,10 @@ interface BonusItems {
12
12
  bonusName?: string;
13
13
  }
14
14
  /**
15
- * @title Плитка
15
+ * @title Блок Бонусы
16
16
  */
17
17
  export declare type BonusContent = HeadingContent & DescriptionContent & {
18
+ /** @title Список плиток */
18
19
  bonusItems?: BonusItems[];
19
20
  };
20
21
  export {};
@@ -3,5 +3,5 @@ exports.CurrentLocation = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Img_1 = require("../../ui-kit/Img/Img");
6
- exports.CurrentLocation = (0, uni_jsx_1.JSX)(({ className = '', address, distance }) => ((0, jsx_runtime_1.jsxs)("div", { className: `flex text-sm ${className}`, children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { className: "min-w-fit", image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "ml-3 font-light", children: [address ? (0, jsx_runtime_1.jsx)("p", { className: "m-0 mb-[3px]", children: address }) : null, distance ? ((0, jsx_runtime_1.jsxs)("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
6
+ exports.CurrentLocation = (0, uni_jsx_1.JSX)(({ className = '', address, distance }) => ((0, jsx_runtime_1.jsxs)("div", { className: `flex text-sm ${className}`, children: [(0, jsx_runtime_1.jsx)(Img_1.Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24", asSVG: true }), (0, jsx_runtime_1.jsxs)("div", { className: "ml-3 font-light", children: [address ? (0, jsx_runtime_1.jsx)("p", { className: "m-0 mb-[3px]", children: address }) : null, distance ? ((0, jsx_runtime_1.jsxs)("p", { className: "text-secondary-text m-0", children: ["\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0431\u043B\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043E \u043E\u0444\u0438\u0441\u0430 - ", distance] })) : null] })] })));
7
7
  //# sourceMappingURL=CurrentLocation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurrentLocation.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/CurrentLocation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAQ9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzC,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACzC,uBAAC,SAAG,IAAC,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EACtF,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,OAAO,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,cAAc,YAAE,OAAO,GAAK,CAAC,CAAC,CAAC,IAAI,EAC1D,QAAQ,CAAC,CAAC,CAAC,CACV,+BAAG,SAAS,EAAC,yBAAyB,gMAAqC,QAAQ,IAAK,CACzF,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
1
+ {"version":3,"file":"CurrentLocation.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/CurrentLocation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,8CAA2C;AAQ9B,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACzC,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACzC,uBAAC,SAAG,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,EAChE,iCAAK,SAAS,EAAC,iBAAiB,aAC7B,OAAO,CAAC,CAAC,CAAC,8BAAG,SAAS,EAAC,cAAc,YAAE,OAAO,GAAK,CAAC,CAAC,CAAC,IAAI,EAC1D,QAAQ,CAAC,CAAC,CAAC,CACV,+BAAG,SAAS,EAAC,yBAAyB,gMAAqC,QAAQ,IAAK,CACzF,CAAC,CAAC,CAAC,IAAI,IACJ,IACF,CACP,CACF,CAAC"}
@@ -7,9 +7,9 @@ const Input_1 = require("../../ui-kit/Input/Input");
7
7
  const Select_1 = require("../../ui-kit/Select/Select");
8
8
  const SelectOption_1 = require("../../ui-kit/Select/SelectOption");
9
9
  exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ codes, className = '' }) => {
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `grid gap-3.5 ${className}`, children: [renderInput('Хочу продать', codes), renderInput('Получу', codes, 'USD'), (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "box-border mt-3.5 py-3 h-12 w-full", version: "primary", href: "#", children: "\u041A\u0443\u043F\u0438\u0442\u044C \u0432\u0430\u043B\u044E\u0442\u0443" })] }));
11
11
  });
12
- function renderInput(placeholder, codes) {
13
- return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: code, children: code }, String(i)))) })) : null] }));
12
+ function renderInput(placeholder, codes, selected) {
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex items-center", children: [(0, jsx_runtime_1.jsx)(Input_1.Input, { className: "h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12", type: "number", placeholder: `${placeholder}` }), codes.length ? ((0, jsx_runtime_1.jsx)(Select_1.Select, { className: "h-9 -translate-x-4", children: codes.map((code, i) => ((0, jsx_runtime_1.jsx)(SelectOption_1.SelectOption, { value: code, selected: code === selected, children: code }, String(i)))) })) : null] }));
14
14
  }
15
15
  //# sourceMappingURL=ExchangeCurrencyCalculator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,oDAAiD;AACjD,uDAAoD;AACpD,mEAAgE;AASnD,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5B,OAAO,CACL,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACxC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,EAClC,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,EAC7B,uBAAC,eAAM,IAAC,SAAS,EAAC,oCAAoC,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,0FAExE,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,WAAmB,EAAE,KAAe;IACvD,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IACJ,SAAS,EAAC,uFAAuF,EACjG,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE,GAAG,WAAW,EAAE,GAC7B,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,eAAM,IAAC,SAAS,EAAC,oBAAoB,YACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2BAAY,IAAiB,KAAK,EAAE,IAAI,YACtC,IAAI,IADY,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ExchangeCurrencyCalculator.js","sourceRoot":"","sources":["../../../src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAoD;AACpD,oDAAiD;AACjD,uDAAoD;AACpD,mEAAgE;AASnD,QAAA,0BAA0B,GAAG,IAAA,aAAG,EAC3C,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE;IAC5B,OAAO,CACL,iCAAK,SAAS,EAAE,gBAAgB,SAAS,EAAE,aACxC,WAAW,CAAC,cAAc,EAAE,KAAK,CAAC,EAClC,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,EACpC,uBAAC,eAAM,IAAC,SAAS,EAAC,oCAAoC,EAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,GAAG,0FAExE,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,WAAmB,EAAE,KAAe,EAAE,QAAiB;IAC1E,OAAO,CACL,iCAAK,SAAS,EAAC,4BAA4B,aACzC,uBAAC,aAAK,IACJ,SAAS,EAAC,uFAAuF,EACjG,IAAI,EAAC,QAAQ,EACb,WAAW,EAAE,GAAG,WAAW,EAAE,GAC7B,EACD,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CACd,uBAAC,eAAM,IAAC,SAAS,EAAC,oBAAoB,YACnC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,uBAAC,2BAAY,IAAiB,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,KAAK,QAAQ,YACnE,IAAI,IADY,MAAM,CAAC,CAAC,CAAC,CAEb,CAChB,CAAC,GACK,CACV,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC"}
@@ -5,17 +5,19 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const Img_1 = require("../../ui-kit/Img/Img");
7
7
  exports.GracePeriod = (0, uni_jsx_1.JSX)(({ className = '', title, description, calendar, anchor = null }) => {
8
- return ((0, jsx_runtime_1.jsxs)("section", { className: `bg-white p-16 pt-12 ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h2", className: "text-center", title: title }), (0, jsx_runtime_1.jsx)("div", { className: "font-light text-base-md text-center mt-3", children: description }), calendar ? renderCalendar(calendar) : null] }));
8
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `font-sans bg-white p-[50px] ${className}`, id: anchor, children: [(0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: "text-center", title: title }), (0, jsx_runtime_1.jsx)("div", { className: "font-light text-base-md text-center mt-3", children: description }), calendar ? renderCalendar(calendar) : null] }));
9
9
  });
10
10
  const renderCalendar = (calendar) => {
11
- const colCount = calendar.reduce((accumulator, currentValue) => accumulator + currentValue.month.length, 0) || 1;
11
+ const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
12
12
  const colSize = 100 / colCount;
13
- const mappedCalendar = calendar.map((_) => ({
13
+ const mappedCalendar = calendar
14
+ .filter((_) => _?.month?.length)
15
+ .map((_) => ({
14
16
  ..._,
15
17
  flexBasis: `${_.month.length * colSize}%`,
16
18
  }));
17
- return ((0, jsx_runtime_1.jsxs)("div", { className: "w-full flex flex-col justify-center mt-14", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex w-full mb-3 font-light text-m-title-md mb-3 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => ((0, jsx_runtime_1.jsxs)("div", { className: "pr-3 mr-3 border-r border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex", children: renderMonthImages(_) }), (0, jsx_runtime_1.jsxs)("div", { className: "font-light text-sm text-primary-text mt-3", children: [(0, jsx_runtime_1.jsx)("span", { children: _.blackText }), "\u2009", (0, jsx_runtime_1.jsx)("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
19
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "w-full flex flex-col justify-center mt-[54px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "flex w-full mb-3 font-light text-m-title-md text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), (0, jsx_runtime_1.jsx)("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => ((0, jsx_runtime_1.jsxs)("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [(0, jsx_runtime_1.jsx)("div", { className: "flex", children: renderMonthImages(_) }), (0, jsx_runtime_1.jsxs)("div", { className: "font-light text-sm text-primary-text mt-3", children: [(0, jsx_runtime_1.jsx)("span", { children: _.blackText }), "\u2009", (0, jsx_runtime_1.jsx)("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
18
20
  };
19
21
  const renderMonthNames = (item, colSize) => item.month.map((_) => ((0, jsx_runtime_1.jsx)("div", { style: { flexBasis: `${colSize}%` }, children: _.name }, `monthName-${_.name}`)));
20
- const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "max-h-[207px] border-r-[1px] pr-3 mr-3 border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
22
+ const renderMonthImages = (item) => item.month.map((_) => _.image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
21
23
  //# sourceMappingURL=GracePeriod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GracePeriod.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriod.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,0DAAuD;AACvD,8CAA2C;AAI9B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,OAAO,CACL,qCAAS,SAAS,EAAE,uBAAuB,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aAChE,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAClE,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,EAC5E,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACnC,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,EAAE;IAClC,MAAM,QAAQ,GACZ,QAAQ,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,CAAC,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;IAClG,MAAM,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;IAE/B,MAAM,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1C,GAAG,CAAC;QACJ,SAAS,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG;KAC1C,CAAC,CAAC,CAAC;IAEJ,OAAO,CACL,iCAAK,SAAS,EAAC,2CAA2C,aACxD,gCAAK,SAAS,EAAC,8DAA8D,YAC1E,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GACpD,EACN,gCAAK,SAAS,EAAC,aAAa,YACzB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAC9B,iCAEE,SAAS,EAAC,0EAA0E,EACpF,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,aAEjC,gCAAK,SAAS,EAAC,MAAM,YAAE,iBAAiB,CAAC,CAAC,CAAC,GAAO,EAClD,iCAAK,SAAS,EAAC,2CAA2C,aACxD,2CAAO,CAAC,CAAC,SAAS,GAAQ,YAC1B,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,SAAS,GAAQ,IACpD,KARD,aAAa,GAAG,EAAE,CASnB,CACP,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CACzC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACpB,gCAAiC,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,GAAG,EAAE,YACjE,CAAC,CAAC,IAAI,IADC,aAAa,CAAC,CAAC,IAAI,EAAE,CAEzB,CACP,CAAC,CAAC;AACL,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,EAAE,CACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACb,gCAEE,SAAS,EAAC,8FAA8F,YAExG,uBAAC,SAAG,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IAHnC,cAAc,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAI5B,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
1
+ {"version":3,"file":"GracePeriod.js","sourceRoot":"","sources":["../../../src/components/GracePeriod/GracePeriod.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,0DAAuD;AACvD,8CAA2C;AAI9B,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,EAAE,EAAE;IAClE,OAAO,CACL,qCAAS,SAAS,EAAE,+BAA+B,SAAS,EAAE,EAAE,EAAE,EAAE,MAAM,aACxE,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,EAClE,gCAAK,SAAS,EAAC,0CAA0C,YAAE,WAAW,GAAO,EAC5E,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,IACnC,CACX,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,EAAE;IAClC,MAAM,QAAQ,GACZ,QAAQ,CAAC,MAAM,CACb,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,CAC5B,YAAY,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,WAAW,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EACrF,CAAC,CACF,IAAI,CAAC,CAAC;IACT,MAAM,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;IAE/B,MAAM,cAAc,GAAG,QAAQ;SAC5B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC;SAC/B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACX,GAAG,CAAC;QACJ,SAAS,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,OAAO,GAAG;KAC1C,CAAC,CAAC,CAAC;IAEN,OAAO,CACL,iCAAK,SAAS,EAAC,+CAA+C,aAC5D,gCAAK,SAAS,EAAC,yDAAyD,YACrE,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,GACpD,EACN,gCAAK,SAAS,EAAC,aAAa,YACzB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CAC9B,iCAEE,SAAS,EAAC,iFAAiF,EAC3F,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,SAAS,EAAE,aAEjC,gCAAK,SAAS,EAAC,MAAM,YAAE,iBAAiB,CAAC,CAAC,CAAC,GAAO,EAClD,iCAAK,SAAS,EAAC,2CAA2C,aACxD,2CAAO,CAAC,CAAC,SAAS,GAAQ,YAC1B,iCAAM,SAAS,EAAC,mBAAmB,YAAE,CAAC,CAAC,SAAS,GAAQ,IACpD,KARD,aAAa,GAAG,EAAE,CASnB,CACP,CAAC,GACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,CACzC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACpB,gCAAiC,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,OAAO,GAAG,EAAE,YACjE,CAAC,CAAC,IAAI,IADC,aAAa,CAAC,CAAC,IAAI,EAAE,CAEzB,CACP,CAAC,CAAC;AACL,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,EAAE,CACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACnB,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACb,gCAEE,SAAS,EAAC,4FAA4F,YAEtG,uBAAC,SAAG,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAC,MAAM,GAAG,IAHnC,cAAc,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAI5B,CACP,CAAC,CAAC,CAAC,IAAI,CACT,CAAC"}
@@ -1,9 +1,18 @@
1
- import type { HeadingContent } from '../../ui-kit/Heading/HeadingContent';
2
1
  import type { Picture } from '../../model/Picture';
3
2
  interface Month {
4
3
  /** @title Название месяца */
5
4
  name?: string;
6
- /** @title Изображение календарного месяца */
5
+ /**
6
+ * @title Изображение календарного месяца
7
+ * @default
8
+ * {
9
+ * format: "webp",
10
+ * size: {
11
+ * width: 210,
12
+ * height: 190
13
+ * }
14
+ * }
15
+ */
7
16
  image?: Picture;
8
17
  }
9
18
  interface CalendarItem {
@@ -17,7 +26,9 @@ interface CalendarItem {
17
26
  /**
18
27
  * @title Льготный период
19
28
  */
20
- export interface GracePeriodContent extends HeadingContent {
29
+ export interface GracePeriodContent {
30
+ /** @title Заголовок */
31
+ title?: string;
21
32
  /** @title Описание */
22
33
  description?: string;
23
34
  /** @title Календарь */
@@ -2,7 +2,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.NavigatorTabItem = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
- const TEXT_CLASSES = 'font-sans font-normal text-sm';
5
+ const TEXT_CLASSES = 'font-sans font-normal text-m-md';
6
6
  const LINK_CLASSES = 'flex-1 flex items-center justify-center cursor-pointer';
7
7
  exports.NavigatorTabItem = (0, uni_jsx_1.JSX)(({ className = '', text, active, children, onClick, href, target = '_self' }) => ((0, jsx_runtime_1.jsx)("a", { className: getLinkClasses(className, active), target: target, href: href, onClick: onClick, children: (0, jsx_runtime_1.jsx)("span", { className: getTextClasses(active), children: text || children }) })));
8
8
  const getLinkClasses = (className, active) => {
@@ -1 +1 @@
1
- {"version":3,"file":"NavigatorTabItem.js","sourceRoot":"","sources":["../../../src/components/NavigatorTabs/NavigatorTabItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AASxC,MAAM,YAAY,GAAG,+BAA+B,CAAC;AACrD,MAAM,YAAY,GAAG,wDAAwD,CAAC;AAEjE,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAC/E,8BAAG,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,YAC3F,iCAAM,SAAS,EAAE,cAAc,CAAC,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GAChE,CACL,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAE,MAAgB,EAAE,EAAE;IAC7D,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAE9D,OAAO,GAAG,OAAO,IAAI,YAAY,IAAI,SAAS,EAAE,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,MAAgB,EAAE,EAAE;IAC1C,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oDAAoD,CAAC;IAE7F,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC"}
1
+ {"version":3,"file":"NavigatorTabItem.js","sourceRoot":"","sources":["../../../src/components/NavigatorTabs/NavigatorTabItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AASxC,MAAM,YAAY,GAAG,iCAAiC,CAAC;AACvD,MAAM,YAAY,GAAG,wDAAwD,CAAC;AAEjE,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,CAC/E,8BAAG,SAAS,EAAE,cAAc,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,YAC3F,iCAAM,SAAS,EAAE,cAAc,CAAC,MAAM,CAAC,YAAG,IAAI,IAAI,QAAQ,GAAQ,GAChE,CACL,CACF,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,SAAiB,EAAE,MAAgB,EAAE,EAAE;IAC7D,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;IAE9D,OAAO,GAAG,OAAO,IAAI,YAAY,IAAI,SAAS,EAAE,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,CAAC,MAAgB,EAAE,EAAE;IAC1C,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oDAAoD,CAAC;IAE7F,OAAO,GAAG,OAAO,IAAI,YAAY,EAAE,CAAC;AACtC,CAAC,CAAC"}
@@ -7,7 +7,7 @@ const url_1 = require("../../utils/url");
7
7
  const NavigatorTabItem_1 = require("./NavigatorTabItem");
8
8
  exports.NavigatorTabs = (0, uni_jsx_1.JSX)(({ className = '', navigatorTabs, context, anchor = null }) => {
9
9
  const href = globalThis.location?.href; // TODO: remove globalThis, use href from router
10
- return ((0, jsx_runtime_1.jsx)("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-12 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null }));
10
+ return ((0, jsx_runtime_1.jsx)("section", { className: `sticky top-0 z-20 box-border flex gap-x-1 h-14 ${className}`, id: anchor, children: navigatorTabs ? navigatorTabs.map(renderTab(context, href)) : null }));
11
11
  });
12
12
  const renderTab = (context, href) => (tab, i) => {
13
13
  const { useRouter, handlerDecorator } = context;
@@ -5,7 +5,13 @@ import type { DescriptionContent } from '../../ui-kit/Description/DescriptionCon
5
5
  import type { HeadingContent, HeadingTypeContent } from '../../ui-kit/Heading/HeadingContent';
6
6
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
7
7
  import type { ListContent } from '../../ui-kit/List/ListContent';
8
+ import type { IconVersion } from '../../model/IconVersion';
8
9
  import type { Benefit } from '../BenefitsBlock/BenefitsBlockContent';
10
+ export declare type BenefitItemProps = {
11
+ benefit: Benefit;
12
+ version?: BlockVersion;
13
+ benefitsVersion?: IconVersion;
14
+ };
9
15
  export declare type ProductBlockInnerContent = HeadingContent & HeadingTypeContent & DescriptionContent & ListContent & ButtonContent & ImageContent & {
10
16
  /**
11
17
  * @title Преимущества
@@ -13,6 +19,7 @@ export declare type ProductBlockInnerContent = HeadingContent & HeadingTypeConte
13
19
  * @maxItems 3
14
20
  */
15
21
  benefits?: Benefit[];
22
+ benefitsVersion?: IconVersion;
16
23
  version?: BlockVersion;
17
24
  /**
18
25
  * @title Буллиты
@@ -9,8 +9,8 @@ const Img_1 = require("../../ui-kit/Img/Img");
9
9
  const List_1 = require("../../ui-kit/List/List");
10
10
  const BaseTile_1 = require("../BaseTile/BaseTile");
11
11
  const renderBenefit_1 = require("./renderBenefit");
12
- exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, buttons, image, items, version = 'primary', isDotted = true, label, }) => {
13
- return ((0, jsx_runtime_1.jsxs)("div", { className: `w-full ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [label ? renderLabel(label, version) : null, (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-3 text-m-md", description: description })) : null, benefits?.filter((items) => items.label)?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-3", children: benefits.map((_, i) => (0, renderBenefit_1.renderBenefit)(_, i, version)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-3 text-m-md", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage(image)] }));
12
+ exports.ProductBlockInner = (0, uni_jsx_1.JSX)(({ className = '', context, title, headingType = 'h2', description, benefits, benefitsVersion = 'normal', buttons, image, items, version = 'primary', isDotted = true, label, }) => {
13
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `w-full ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { children: [label ? renderLabel(label, version) : null, (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, title: title && ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: headingType, title: title, className: "whitespace-pre-wrap max-w-[600px]" })), buttons: buttons?.length ? ((0, jsx_runtime_1.jsx)(ButtonSection_1.ButtonSection, { context: context, buttons: buttons, className: "flex flex-col mt-5 gap-2.5" })) : null, children: [description ? ((0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mt-3 text-m-md", description: description })) : null, benefits?.filter((items) => items.label)?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "mt-3", children: benefits.map((benefit, i) => (0, renderBenefit_1.renderBenefit)({ benefit, version, benefitsVersion }, i)) })) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "mt-3 text-m-md", items: items, version: version, isDotted: isDotted })) : null] })] }), renderImage(image)] }));
14
14
  });
15
15
  function renderImage(image) {
16
16
  return image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { imageClassName: "mt-5 mx-auto block", image: { className: 'block', ...image } })) : null;
@@ -1 +1 @@
1
- {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAGhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAE,UAAU,SAAS,EAAE,aACnC,4CACG,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAC3C,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,4BAA4B,GACtC,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,gBAAgB,EAAC,WAAW,EAAE,WAAW,GAAI,CACrE,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAClD,gCAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAA,6BAAa,EAAC,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,GAAO,CACnF,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,IACP,EACL,WAAW,CAAC,KAAK,CAAC,IACf,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,KAAK;IACxB,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,uBAAC,SAAG,IAAC,cAAc,EAAC,oBAAoB,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAI,CACrF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,MAAM,aAAa,GAAiC;IAClD,OAAO,EAAE,0CAA0C;IACnD,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,OAAqB,EAAE,EAAE,CAAC,CAC5D,gCACE,SAAS,EAAE,kEAAkE,aAAa,CAAC,OAAO,CAAC,EAAE,YAEpG,KAAK,GACF,CACP,CAAC"}
1
+ {"version":3,"file":"ProductBlockInner.js","sourceRoot":"","sources":["../../../src/components/ProductBlock/ProductBlockInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,qEAAkE;AAClE,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAGhD,mDAAgD;AAInC,QAAA,iBAAiB,GAAG,IAAA,aAAG,EAClC,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,WAAW,GAAG,IAAI,EAClB,WAAW,EACX,QAAQ,EACR,eAAe,GAAG,QAAQ,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,IAAI,EACf,KAAK,GACN,EAAE,EAAE;IACH,OAAO,CACL,iCAAK,SAAS,EAAE,UAAU,SAAS,EAAE,aACnC,4CACG,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAC3C,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,KAAK,IAAI,CACP,uBAAC,iBAAO,IACN,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,mCAAmC,GAC7C,CACH,EAEH,OAAO,EACL,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAChB,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,4BAA4B,GACtC,CACH,CAAC,CAAC,CAAC,IAAI,aAGT,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IAAC,SAAS,EAAC,gBAAgB,EAAC,WAAW,EAAE,WAAW,GAAI,CACrE,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAClD,gCAAK,SAAS,EAAC,MAAM,YAClB,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAC3B,IAAA,6BAAa,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,EAAE,CAAC,CAAC,CACxD,GACG,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,IACP,EACL,WAAW,CAAC,KAAK,CAAC,IACf,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,WAAW,CAAC,KAAK;IACxB,OAAO,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAClB,uBAAC,SAAG,IAAC,cAAc,EAAC,oBAAoB,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAI,CACrF,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,MAAM,aAAa,GAAiC;IAClD,OAAO,EAAE,0CAA0C;IACnD,SAAS,EAAE,eAAe;CAC3B,CAAC;AAEF,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,OAAqB,EAAE,EAAE,CAAC,CAC5D,gCACE,SAAS,EAAE,kEAAkE,aAAa,CAAC,OAAO,CAAC,EAAE,YAEpG,KAAK,GACF,CACP,CAAC"}