@redneckz/wildless-cms-uni-blocks 0.3.91 → 0.3.92

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 (348) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +161 -30
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/PackA4.svg +1 -0
  5. package/dist/components/BlockContent.d.ts +4 -3
  6. package/dist/components/Blocks.d.ts +1 -0
  7. package/dist/components/Blocks.js +2 -0
  8. package/dist/components/Blocks.js.map +1 -1
  9. package/dist/components/Catalog/CatalogCard.js +17 -1
  10. package/dist/components/Catalog/CatalogCard.js.map +1 -1
  11. package/dist/components/Catalog/CatalogContent.d.ts +8 -2
  12. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +5 -2
  13. package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  14. package/dist/components/Footer/Contacts.js +3 -3
  15. package/dist/components/Footer/Contacts.js.map +1 -1
  16. package/dist/components/Footer/Footer.js +1 -1
  17. package/dist/components/Footer/Footer.js.map +1 -1
  18. package/dist/components/Footer/Footer.mobile.js +1 -1
  19. package/dist/components/Footer/Footer.mobile.js.map +1 -1
  20. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  21. package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  22. package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
  23. package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  24. package/dist/components/Footer/HorizontalNavigationLink.js +1 -1
  25. package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  26. package/dist/components/Footer/MediaButton.js +1 -1
  27. package/dist/components/Footer/MediaButton.js.map +1 -1
  28. package/dist/components/Footer/Sitemap.js +3 -3
  29. package/dist/components/Footer/Sitemap.js.map +1 -1
  30. package/dist/components/Footer/SocialMedia.js +1 -1
  31. package/dist/components/Footer/SocialMedia.js.map +1 -1
  32. package/dist/components/Footer/TextInformation.js +1 -1
  33. package/dist/components/Footer/TextInformation.js.map +1 -1
  34. package/dist/components/Footer/TextInformation.mobile.js +1 -1
  35. package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
  36. package/dist/components/Footer/TextInformationLink.js +1 -1
  37. package/dist/components/Footer/TextInformationLink.js.map +1 -1
  38. package/dist/components/Header/Header.js +3 -1
  39. package/dist/components/Header/Header.js.map +1 -1
  40. package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  41. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  42. package/dist/components/Header/HeaderSubMenu.js +1 -1
  43. package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
  44. package/dist/components/ProductBlock/ProductBlock.js +2 -3
  45. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  46. package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  47. package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  48. package/dist/components/ProductTile/ProductTile.js +2 -2
  49. package/dist/components/ProductTile/ProductTile.js.map +1 -1
  50. package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  51. package/dist/components/SafeDepositRental/SafeDepositRental.js +15 -0
  52. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -0
  53. package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +7 -0
  54. package/dist/components/SafeDepositRental/SafeDepositRentalContent.js +2 -0
  55. package/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +1 -0
  56. package/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +12 -0
  57. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +72 -0
  58. package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -0
  59. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +8 -0
  60. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +28 -0
  61. package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -0
  62. package/dist/hooks/useSafeDepositRental.d.ts +2 -0
  63. package/dist/hooks/useSafeDepositRental.js +19 -0
  64. package/dist/hooks/useSafeDepositRental.js.map +1 -0
  65. package/dist/icons/IconName.d.ts +4 -2
  66. package/dist/icons/IconName.js +2 -0
  67. package/dist/icons/IconName.js.map +1 -1
  68. package/dist/ui-kit/Radio/Radio.d.ts +2 -0
  69. package/dist/ui-kit/Radio/Radio.js +6 -0
  70. package/dist/ui-kit/Radio/Radio.js.map +1 -0
  71. package/dist/ui-kit/Radio/RadioProps.d.ts +9 -0
  72. package/dist/ui-kit/Radio/RadioProps.js +2 -0
  73. package/dist/ui-kit/Radio/RadioProps.js.map +1 -0
  74. package/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
  75. package/dist/ui-kit/Select/Select.js +4 -1
  76. package/dist/ui-kit/Select/Select.js.map +1 -1
  77. package/lib/common.css +1 -1
  78. package/lib/components/BlockContent.d.ts +4 -3
  79. package/lib/components/Blocks.d.ts +1 -0
  80. package/lib/components/Blocks.js +2 -0
  81. package/lib/components/Blocks.js.map +1 -1
  82. package/lib/components/Catalog/CatalogCard.js +17 -1
  83. package/lib/components/Catalog/CatalogCard.js.map +1 -1
  84. package/lib/components/Catalog/CatalogContent.d.ts +8 -2
  85. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +6 -3
  86. package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  87. package/lib/components/Footer/Contacts.js +3 -3
  88. package/lib/components/Footer/Contacts.js.map +1 -1
  89. package/lib/components/Footer/Footer.js +1 -1
  90. package/lib/components/Footer/Footer.js.map +1 -1
  91. package/lib/components/Footer/Footer.mobile.js +1 -1
  92. package/lib/components/Footer/Footer.mobile.js.map +1 -1
  93. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  94. package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  95. package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
  96. package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
  97. package/lib/components/Footer/HorizontalNavigationLink.js +1 -1
  98. package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  99. package/lib/components/Footer/MediaButton.js +1 -1
  100. package/lib/components/Footer/MediaButton.js.map +1 -1
  101. package/lib/components/Footer/Sitemap.js +3 -3
  102. package/lib/components/Footer/Sitemap.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/Footer/TextInformation.js +1 -1
  106. package/lib/components/Footer/TextInformation.js.map +1 -1
  107. package/lib/components/Footer/TextInformation.mobile.js +1 -1
  108. package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
  109. package/lib/components/Footer/TextInformationLink.js +1 -1
  110. package/lib/components/Footer/TextInformationLink.js.map +1 -1
  111. package/lib/components/Header/Header.js +3 -1
  112. package/lib/components/Header/Header.js.map +1 -1
  113. package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  114. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  115. package/lib/components/Header/HeaderSubMenu.js +1 -1
  116. package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
  117. package/lib/components/ProductBlock/ProductBlock.js +2 -3
  118. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  119. package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  120. package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  121. package/lib/components/ProductTile/ProductTile.js +2 -2
  122. package/lib/components/ProductTile/ProductTile.js.map +1 -1
  123. package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  124. package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +5 -0
  125. package/lib/components/SafeDepositRental/SafeDepositRental.js +13 -0
  126. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -0
  127. package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +7 -0
  128. package/lib/components/SafeDepositRental/SafeDepositRentalContent.js +2 -0
  129. package/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +1 -0
  130. package/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +12 -0
  131. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +68 -0
  132. package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -0
  133. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +8 -0
  134. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +25 -0
  135. package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -0
  136. package/lib/hooks/useSafeDepositRental.d.ts +2 -0
  137. package/lib/hooks/useSafeDepositRental.js +16 -0
  138. package/lib/hooks/useSafeDepositRental.js.map +1 -0
  139. package/lib/icons/IconName.d.ts +4 -2
  140. package/lib/icons/IconName.js +2 -0
  141. package/lib/icons/IconName.js.map +1 -1
  142. package/lib/ui-kit/Radio/Radio.d.ts +2 -0
  143. package/lib/ui-kit/Radio/Radio.js +4 -0
  144. package/lib/ui-kit/Radio/Radio.js.map +1 -0
  145. package/lib/ui-kit/Radio/RadioProps.d.ts +9 -0
  146. package/lib/ui-kit/Radio/RadioProps.js +2 -0
  147. package/lib/ui-kit/Radio/RadioProps.js.map +1 -0
  148. package/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
  149. package/lib/ui-kit/Select/Select.js +4 -1
  150. package/lib/ui-kit/Select/Select.js.map +1 -1
  151. package/mobile/bundle/bundle.umd.js +25 -22
  152. package/mobile/bundle/bundle.umd.min.js +1 -1
  153. package/mobile/dist/components/BlockContent.d.ts +4 -3
  154. package/mobile/dist/components/Catalog/CatalogCard.js +17 -1
  155. package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
  156. package/mobile/dist/components/Catalog/CatalogContent.d.ts +8 -2
  157. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +5 -2
  158. package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  159. package/mobile/dist/components/Footer/Contacts.js +3 -3
  160. package/mobile/dist/components/Footer/Contacts.js.map +1 -1
  161. package/mobile/dist/components/Footer/Footer.js +1 -1
  162. package/mobile/dist/components/Footer/Footer.js.map +1 -1
  163. package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
  164. package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
  165. package/mobile/dist/components/Footer/HorizontalNavigationLink.js +1 -1
  166. package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
  167. package/mobile/dist/components/Footer/MediaButton.js +1 -1
  168. package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
  169. package/mobile/dist/components/Footer/Sitemap.js +3 -3
  170. package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
  171. package/mobile/dist/components/Footer/TextInformation.js +1 -1
  172. package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
  173. package/mobile/dist/components/Footer/TextInformationLink.js +1 -1
  174. package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
  175. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
  176. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  177. package/mobile/dist/components/Header/HeaderSubMenu.js +1 -1
  178. package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
  179. package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
  180. package/mobile/dist/components/ProductTile/ProductTile.js +2 -2
  181. package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
  182. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  183. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +15 -0
  184. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -0
  185. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +7 -0
  186. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js +2 -0
  187. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.js.map +1 -0
  188. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.d.ts +12 -0
  189. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +72 -0
  190. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -0
  191. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +8 -0
  192. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +28 -0
  193. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -0
  194. package/mobile/dist/hooks/useSafeDepositRental.d.ts +2 -0
  195. package/mobile/dist/hooks/useSafeDepositRental.js +19 -0
  196. package/mobile/dist/hooks/useSafeDepositRental.js.map +1 -0
  197. package/mobile/dist/icons/IconName.d.ts +4 -2
  198. package/mobile/dist/icons/IconName.js +2 -0
  199. package/mobile/dist/icons/IconName.js.map +1 -1
  200. package/mobile/dist/ui-kit/Radio/Radio.d.ts +2 -0
  201. package/mobile/dist/ui-kit/Radio/Radio.js +6 -0
  202. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -0
  203. package/mobile/dist/ui-kit/Radio/RadioProps.d.ts +9 -0
  204. package/mobile/dist/ui-kit/Radio/RadioProps.js +2 -0
  205. package/mobile/dist/ui-kit/Radio/RadioProps.js.map +1 -0
  206. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
  207. package/mobile/dist/ui-kit/Select/Select.js +4 -1
  208. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  209. package/mobile/lib/components/BlockContent.d.ts +4 -3
  210. package/mobile/lib/components/Catalog/CatalogCard.js +17 -1
  211. package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
  212. package/mobile/lib/components/Catalog/CatalogContent.d.ts +8 -2
  213. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +6 -3
  214. package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
  215. package/mobile/lib/components/Footer/Contacts.js +3 -3
  216. package/mobile/lib/components/Footer/Contacts.js.map +1 -1
  217. package/mobile/lib/components/Footer/Footer.js +1 -1
  218. package/mobile/lib/components/Footer/Footer.js.map +1 -1
  219. package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
  220. package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
  221. package/mobile/lib/components/Footer/HorizontalNavigationLink.js +1 -1
  222. package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
  223. package/mobile/lib/components/Footer/MediaButton.js +1 -1
  224. package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
  225. package/mobile/lib/components/Footer/Sitemap.js +3 -3
  226. package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
  227. package/mobile/lib/components/Footer/TextInformation.js +1 -1
  228. package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
  229. package/mobile/lib/components/Footer/TextInformationLink.js +1 -1
  230. package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
  231. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
  232. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  233. package/mobile/lib/components/Header/HeaderSubMenu.js +1 -1
  234. package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
  235. package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
  236. package/mobile/lib/components/ProductTile/ProductTile.js +2 -2
  237. package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
  238. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +5 -0
  239. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +13 -0
  240. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -0
  241. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +7 -0
  242. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js +2 -0
  243. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.js.map +1 -0
  244. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.d.ts +12 -0
  245. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +68 -0
  246. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -0
  247. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.d.ts +8 -0
  248. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +25 -0
  249. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -0
  250. package/mobile/lib/hooks/useSafeDepositRental.d.ts +2 -0
  251. package/mobile/lib/hooks/useSafeDepositRental.js +16 -0
  252. package/mobile/lib/hooks/useSafeDepositRental.js.map +1 -0
  253. package/mobile/lib/icons/IconName.d.ts +4 -2
  254. package/mobile/lib/icons/IconName.js +2 -0
  255. package/mobile/lib/icons/IconName.js.map +1 -1
  256. package/mobile/lib/ui-kit/Radio/Radio.d.ts +2 -0
  257. package/mobile/lib/ui-kit/Radio/Radio.js +4 -0
  258. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -0
  259. package/mobile/lib/ui-kit/Radio/RadioProps.d.ts +9 -0
  260. package/mobile/lib/ui-kit/Radio/RadioProps.js +2 -0
  261. package/mobile/lib/ui-kit/Radio/RadioProps.js.map +1 -0
  262. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
  263. package/mobile/lib/ui-kit/Select/Select.js +4 -1
  264. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  265. package/mobile/src/components/BlockContent.ts +5 -3
  266. package/mobile/src/components/Catalog/Catalog.example.json +3 -3
  267. package/mobile/src/components/Catalog/CatalogCard.tsx +28 -1
  268. package/mobile/src/components/Catalog/CatalogContent.ts +8 -2
  269. package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +14 -3
  270. package/mobile/src/components/Footer/Contacts.tsx +3 -6
  271. package/mobile/src/components/Footer/Footer.tsx +1 -1
  272. package/mobile/src/components/Footer/HorizontalNavigation.tsx +1 -1
  273. package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +1 -1
  274. package/mobile/src/components/Footer/MediaButton.tsx +1 -1
  275. package/mobile/src/components/Footer/Sitemap.tsx +4 -4
  276. package/mobile/src/components/Footer/TextInformation.tsx +1 -1
  277. package/mobile/src/components/Footer/TextInformationLink.tsx +1 -1
  278. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +7 -5
  279. package/mobile/src/components/Header/HeaderSubMenu.tsx +1 -1
  280. package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -2
  281. package/mobile/src/components/ProductTile/ProductTile.tsx +2 -2
  282. package/mobile/src/components/SafeDepositRental/SafeDepositRental.example.json +0 -0
  283. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +33 -0
  284. package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +7 -0
  285. package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +164 -0
  286. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +57 -0
  287. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +98 -14
  288. package/mobile/src/hooks/useSafeDepositRental.ts +21 -0
  289. package/mobile/src/icons/IconName.ts +4 -4
  290. package/mobile/src/icons/PackA4.svg +14 -0
  291. package/mobile/src/ui-kit/Radio/Radio.tsx +18 -0
  292. package/mobile/src/ui-kit/Radio/RadioProps.ts +8 -0
  293. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
  294. package/mobile/src/ui-kit/Select/Select.tsx +6 -1
  295. package/package.json +1 -1
  296. package/src/components/BlockContent.ts +5 -3
  297. package/src/components/Blocks.ts +2 -0
  298. package/src/components/Catalog/Catalog.example.json +3 -3
  299. package/src/components/Catalog/CatalogCard.tsx +28 -1
  300. package/src/components/Catalog/CatalogContent.ts +8 -2
  301. package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +14 -3
  302. package/src/components/Footer/Contacts.tsx +3 -6
  303. package/src/components/Footer/Footer.mobile.tsx +1 -1
  304. package/src/components/Footer/Footer.tsx +1 -1
  305. package/src/components/Footer/HorizontalNavigation.mobile.tsx +1 -1
  306. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  307. package/src/components/Footer/HorizontalNavigationLink.tsx +1 -1
  308. package/src/components/Footer/MediaButton.tsx +1 -1
  309. package/src/components/Footer/Sitemap.tsx +4 -4
  310. package/src/components/Footer/SocialMedia.tsx +1 -1
  311. package/src/components/Footer/TextInformation.mobile.tsx +1 -1
  312. package/src/components/Footer/TextInformation.tsx +1 -1
  313. package/src/components/Footer/TextInformationLink.tsx +1 -1
  314. package/src/components/Header/Header.tsx +3 -2
  315. package/src/components/Header/HeaderSecondaryMenu.tsx +7 -5
  316. package/src/components/Header/HeaderSubMenu.tsx +1 -1
  317. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  318. package/src/components/ProductBlock/ProductBlock.tsx +2 -10
  319. package/src/components/ProductBlock/renderBackwardButton.tsx +1 -2
  320. package/src/components/ProductTile/ProductTile.tsx +2 -2
  321. package/src/components/SafeDepositRental/SafeDepositRental.example.json +0 -0
  322. package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +9 -0
  323. package/src/components/SafeDepositRental/SafeDepositRental.tsx +33 -0
  324. package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +7 -0
  325. package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +164 -0
  326. package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +57 -0
  327. package/src/components/__snapshots__/Blocks.spec.tsx.snap +98 -14
  328. package/src/hooks/useSafeDepositRental.ts +21 -0
  329. package/src/icons/IconName.ts +5 -3
  330. package/src/icons/PackA4.svg +14 -0
  331. package/src/ui-kit/Radio/Radio.tsx +18 -0
  332. package/src/ui-kit/Radio/RadioProps.ts +8 -0
  333. package/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
  334. package/src/ui-kit/Select/Select.tsx +6 -1
  335. package/dist/components/ExchangeRateTile/renderButton.d.ts +0 -2
  336. package/dist/components/ExchangeRateTile/renderButton.js +0 -9
  337. package/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
  338. package/lib/components/ExchangeRateTile/renderButton.d.ts +0 -2
  339. package/lib/components/ExchangeRateTile/renderButton.js +0 -6
  340. package/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
  341. package/mobile/dist/components/ExchangeRateTile/renderButton.d.ts +0 -2
  342. package/mobile/dist/components/ExchangeRateTile/renderButton.js +0 -9
  343. package/mobile/dist/components/ExchangeRateTile/renderButton.js.map +0 -1
  344. package/mobile/lib/components/ExchangeRateTile/renderButton.d.ts +0 -2
  345. package/mobile/lib/components/ExchangeRateTile/renderButton.js +0 -6
  346. package/mobile/lib/components/ExchangeRateTile/renderButton.js.map +0 -1
  347. package/mobile/src/components/ExchangeRateTile/renderButton.tsx +0 -9
  348. package/src/components/ExchangeRateTile/renderButton.tsx +0 -9
@@ -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,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const i={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=l((e=>{const{className:t,headingType:r="h3",title:l,as:a="h3"}=e;return n(a,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:l})}));var s,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.Logo="Logo",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.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",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",e.WateringCan="WateringCan"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.Logo="Logo",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.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));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={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${c[l]||l}`,title:i=a,iconVersion:o="normal",asSVG:s,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return s?r("svg",{className:e,...h,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[o]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:i,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=(e,t)=>e.media&&t.media?e.media-t.media:0,x=l((({className:e="",image:t,imageClassName:l="",isMobile:a=!1})=>{if(!t)return null;return r("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(p).map((({src:e,format:t,media:r,size:l},a)=>n("source",{srcSet:e,type:b(t),media:r?`(max-width: ${r}px)`:"",...l},`${a}_${e}`))):null,g(t,l,a)]})})),g=(e,t="",r=!1)=>{const l=e.title||"",a=e.alt||e.title,i=r?"m-auto":"m-0";return n("img",{src:e.src,className:`${i} ${t}`,alt:a,title:l,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const f=l((({className:e="",image:t,imageClassName:r="",isMobile:l,...a})=>{if(!t)return null;const i="string"==typeof t?t:t.icon;return i||""===i?i.length?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:i,...a}):null:n(x,{className:e,imageClassName:r,image:t,isMobile:l})})),y=l((({className:e="",image:t})=>n(f,{className:e,image:t,isMobile:!0})));function N(e){return e?e.filter(Boolean).join(" "):""}const v={left:"text-left",center:"text-center",right:"text-right"},I={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"}},w=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:i,align:s="left"})=>{const c=I[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${c.background} ${t}`,children:[l?n(o,{headingType:"h2",className:`${c.text} ${v[s]}`,title:l}):null,a?n("p",{className:`font-normal text-m ${c.description} ${v[s]} `,children:a}):null,i?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(y,{image:i})})]})})),C=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:k(l,t,r),"aria-hidden":!0},String(l))))}):null})),k=(e,t,n)=>{if(e<t||e>t+1)return;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"}},S=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),$=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),D=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...$(i),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(S,{style:$(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(S,{children:t})}))),T=l((({className:e,context:t,children:l,gap:a=14,padding:i=16,showDots:o=!0,onSlideChange:s})=>{const[c,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:c,indexFraction:m,showDots:o,children:l};return r("div",{className:e,children:[n(D,{gap:a,padding:i,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:o}=e?.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?i-s:0,t>0?i:s]:[(t-1)*o+s,t*o+s]));return d[l-1]=[i,r],d})({gap:a,padding:i,clientWidth:n,scrollWidth:l,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,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==c&&s&&s(),d(p),h(x)},children:l}),n(C,{...u})]})})),R=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:i,icon:o})=>{const{text:s,fileSize:c,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(y,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,s?r("span",{className:l,children:[s,n("span",{className:a,children:d?.href&&B(_(d.href),c)})]}):null]})})),B=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),_=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},P=l((({className:e="",doc:t,icon:r})=>n(R,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),L=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n(T,{context:e,className:"text-s text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(P,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),M=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(P,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),A=l((({className:e="",context:t,title:l,description:a,icon:i={icon:"DocIconMonoColor"},documents:o,orientation:s="vertical",hasBorder:c=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(w,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center"}),"vertical"===s?n(M,{hasBorder:c,documents:o,icon:i}):n(L,{context:t,hasBorder:c,documents:o,icon:i})]}))),V=e=>e?.includes("//"),j=e=>(e||"").replace(/\/?\?.*/,""),G=e=>{if(!e||!V(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var W=Object.freeze({__proto__:null,isURL:V,withoutQuery:j,getOrigin:G,getHash:e=>{if(!e||!V(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const O="/mobile",U=(e,t)=>{if(!e)return e;const n=G(t?.href);return n?e.replace(n,"")||"/":e},E=e=>e;function F({router:e,handlerDecorator:t=E},n){const r=((e,t)=>{if(!e)return e;const n=U(e,t)||"",r=t?.pathname.startsWith(O);return r&&!V(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!V(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const H=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:i}=e;return r("div",{className:z(e),children:[a||null,J(e)?r("div",{children:[n("div",{className:"text-xs text-left",children:l}),n("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,i||null]})})),z=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",J(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},J=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),q={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"},K={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Q="w-full text-center font-sans select-none",Y=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:i,onClick:o,children:s,disabled:c,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=s??n(H,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return c?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${Q} ${K[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${Q} inline-block cursor-pointer no-underline ${q[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:i,onClick:o,"aria-label":h,role:a?"link":"button",...u,children:p})})),Z=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r&&r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return null;return n(Y,e?{appendLeft:n(y,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(y,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(F({router:a,handlerDecorator:l},e),t)))}):null}));const X={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"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(a)}):null,n("span",{children:l})]}))),ne=e=>`${X[e]} ${ee[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]}`,re={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},le=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:i="primary"}=e;return n("section",{className:`${re[i]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(te,{className:r,isDotted:l,version:i,children:e},String(t)))):null})})),ae=l((({className:e="",title:t="",children:l,buttons:a,image:i})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,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:l}),a?n("div",{children:a}):null]}),i]})]}))),ie={primary:"text-primary-text",secondary:"text-white"},oe={primary:"text-secondary-text",secondary:"text-white"};function se(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headlineVersion:a="L",description:i,benefits:o,benefitsVersion:s="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:u=!0,label:p})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[p?he(p,h):null,n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:i,bgColorHeadline:h,headlineVersion:a}),r(ae,{context:t,buttons:c?.length?n(Z,{context:t,buttons:c,className:"flex flex-col mt-5 gap-2.5"}):null,children:[o?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:o.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(y,{className:se(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`text-l m-0 ${ie[t]}`,children:e.label}),e.description&&n("div",{className:`text-s ${oe[t]}`,children:e.description})]},String(l))}({benefit:e,version:h,benefitsVersion:s},t)))}):null,m?.length?n(le,{className:"mt-3 text-m",items:m,version:h,isDotted:u}):null]})]}),de(d)]})));function de(e){return e?.src?n(y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const me={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},he=(e,t)=>n("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${me[t]}`,children:e}),ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ue[r]} ${t}`,children:n(ce,{...e})})})),xe={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"}},ge=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:i,className:o="",items:s,isDotted:c=!0})=>{const d=xe[l],m="secondary"===l?"secondary":"gray";return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===a?be(d.icon):null,"big"===a?fe(i):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,s?.length?n(le,{className:"mt-1 text-m-md",items:s,isDotted:c,version:m}):null]})]})}));function be(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 fe(e){return e?.src?n(y,{className:"pb-3 mr-auto",image:e}):null}const ye={primary:"bg-white",secondary:"bg-primary-main text-white"},Ne=l((({context:e,title:t,description:l,cards:a=[],className:i,orientation:s="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${i}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:`text-center ${l?"mb-2":"mb-5"}`,title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ve(s,a,e)]})));function ve(e,t,r){return"horizontal"===e?n(T,{context:r,children:t?.map(Ie)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ie)})}function Ie(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 ${ye[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(y,{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?we(e):null,e.items?.length?Ce(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(Y,{className:"mt-3",appendLeft:l?.icon&&n(y,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ce(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:ne(l)}):null,n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}class ke{static inst=new ke;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const Se=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},$e=l((({anchor:e,className:t,context:r,children:l,tag:a="section",labels:i})=>{const o=a,{IntersectionObserverTag:s}=r,[c,d]=r.useState(!0);return r.useEffect((()=>ke.inst.subscribe("tab",(e=>{d(!i?.length||!e.label||i.includes(e.label))}))),[i]),c?e?n(s,{tag:a,className:t,observerCallback:Se,observerOptions:{threshold:1},anchor:e,children:l}):n(o,{className:t,children:l}):null})),De=l((({className:e="",documents:t,...r})=>n($e,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Te(t):null})}))),Te=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Re={Headline:w,LinkDocs:A,TextBlock:ge,ProductBlock:pe,Gallery:Ne,LinkList:De},Be=({blocks:e,context:t,className:n=""})=>e?.length?e.map(_e({context:t,className:n})):null,_e=({context:e,className:t})=>(r,l)=>{if(!r)return null;const{style:a,blockListType:i,...o}=r;if(!i||!(i in Re))return null;const s=N(a);return n(Re[i],{className:`${t} ${s}`,context:e,...o},`block_${l}`)},Pe=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Be({context:t,blocks:e,className:"!px-0"})}))),Le=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:i})=>{const{hasContent:o,icon:s,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!r);const n=t.nextSibling;n.style.maxHeight=n.style.maxHeight?"":`${n.scrollHeight}px`}}})({context:i,blocks:l});return r("li",{className:`${Me(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:c,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(y,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(y,{image:s,width:"24",height:"24",asSVG:!0}):null]}),o?n(Pe,{blocks:l,context:i}):null]})}));function Me(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Ae=l((({title:e,description:t,accordionItems:l,context:a,className:i="",bordered:s})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${i}`,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,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Le,{...e,context:a,bordered:s},`AccordionItem_${t}`)))}):null]}))),Ve=(e=!1)=>e?"text-white":"",je=(e=!1)=>"text-m-sm mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ge=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:i})=>r("div",{role:"columnheader",children:[e?n(y,{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(y,{image:t})}),l?n(o,{headingType:"h4",className:Ve(i),title:l}):null,a?n("div",{className:je(i),children:a}):null]}))),We=l((({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(Oe(r,t))})}))),Oe=(e,t)=>({label:l,description:a},i)=>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:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(i)),Ue=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:i,onToggleColumn:o})=>{const s=t?.slice(0,i?t.length:l),c=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(Ge,{...e,isFillGradient:a}),s?.length?s.map((({rowHeader:e,cell:t},r)=>n(We,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,i&&Ee({header:e,buttonVersion:c}),Fe({onToggleColumn:o,isFillGradient:a,showRow:i})]})})),Ee=({header:e,buttonVersion:t})=>n(Y,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Fe=({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?"Скрыть":"Показать описание"})}),He=l((({className:e,context:t,title:l,rowHeaders:a,columns:i,visibleRowLength:s=0,isColoredFirstColumn:c=!1,orientation:d="vertical"})=>{const m=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!s));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,ze({tableData:m,context:t,visibleRowLength:s,isColoredFirstColumn:c,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),ze=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:s})=>n("div",{role:"table",children:t?.length?Je({orientation:o,context:e,columnsViewState:a,setColumnsViewState:s,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:i}):null}),Je=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:s})=>"horizontal"===e?n(T,{context:t,onSlideChange:Ke(r,l),children:a.map(qe({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:s}))}):a.map(qe({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:s})),qe=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(i,o)=>n(Ue,{context:e,visibleRowLength:t,showRow:l[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>a(o)},String(o)),Ke=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Qe(){try{const e=await fetch(Ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ze)});return await e.json()}catch(e){return console.error(e),Promise.resolve()}}const Ye="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ze={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Xe=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:et(Number(t.rate_buy)),sell:et(Number(t.rate_sell))}),e}),[]),et=e=>Math.round(1e3*e)/1e3;var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="text-left text-m text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},it=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>ot(e)))})]}))),ot=e=>{const t=e?.code;return r("tr",{className:"pb-1 text-h6",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(y,{image:{icon:at[t]},width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:rt(e?.sell)}),n("td",{className:"pt-4 pl-11",children:rt(e?.buy)})]},t)},st=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex ${e}`,children:[n(y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3",children:[t?n("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,l?r("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),ct=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function ht(e){return n(Y,{className:"py-4 mr-1",version:e?.version,href:e?.href,target:"_blank",children:e?.text})}const ut=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:i,value:o,onChange:s})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:i,placeholder:a,value:o,onChange:e=>{const t=e.target.validity.valid?e.target.value:o;s(t)}}))),pt=l((({className:e="",id:t,name:r,children:l,value:a,onChange:i})=>n("select",{className:e,id:t,name:r||t,value:a,onChange:e=>i(e.target.value),children:l}))),xt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function gt(e){const{placeholder:t,rates:l,selected:a,value:i,setValue:o,setSelected:s}=e;return r("div",{className:"relative flex items-center",children:[n(ut,{className:"h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:i,onChange:o}),l.length?n(pt,{className:"h-9 -translate-x-4 bg-transparent",value:a,onChange:e=>s(e),children:l.map(((e,t)=>n(xt,{value:e.code,children:e.code},String(t))))}):null]})}const bt=l((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:a})=>{const[i,o]=e.useState({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||tt.RUB,selectBuy:l?.[0]?.code||tt.USD}),s=e=>{o((t=>({...t,...e})))};return r("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[gt({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:ft(i,s,l),value:i.inputSell,setValue:e=>Nt(s,l)(e,i.selectSell,i.selectBuy)}),gt({placeholder:"Получу",rates:l,selected:i.selectBuy,setSelected:yt(i,s,n),value:i.inputBuy,setValue:e=>vt(s,n)(e,i.selectBuy,i.selectSell)}),a?.text?ht(a):null]})})),ft=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Nt(t,n)(e.inputSell,r,l)}})},yt=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},Nt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(ct(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(ct(n,a,r===tt.RUB)||"")})},It={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",button:a,...i})=>{const s=function(e){const{data:t}=e(Ye,Qe),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Xe(n):n}(t.useAsyncData),c=s.filter((e=>e.buy));c.unshift({code:tt.RUB});const d=s.filter((e=>e.sell));return d.push({code:tt.RUB}),n($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...i,children:n(ae,{context:t,title:n(o,{headingType:"h4",title:l,className:"whitespace-pre-wrap text-h4"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-14 pt-4",children:[s?n(it,{className:"mb-[30px]",exchangeCurrencyItems:s}):null,n(st,{...It})]}),s.length&&c.length&&d.length?n(bt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:d,button:a}):null]})})})})),Ct={"bg-white":"text-primary-main",transparent:"text-white"},kt={"bg-white":"text-black",transparent:"text-white"},St=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:i="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(y,{image:{icon:"Logo"},className:`${Ct[i]} w-10 h-[38px]`,asSVG:!0}),o?null:n("span",{className:`${kt[i]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),$t=l((({className:e="",title:t="Мобильное приложение",description:l,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(St,{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-s font-medium mb-[3px]",children:t}),n("div",{className:"text-s text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:e,children:[t?.length?t.map(Tt):null,l?n(Y,{version:"primary",className:"mb-6 w-full",...F({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Tt=(e,t)=>{const{type:l,text:a,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 font-sans text-s-light text-secondary-text",children:i})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`tel:${Bt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Bt=e=>e.replaceAll(/\D/g,""),_t=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("a",{className:`font-sans text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:i,children:r||`Документ ${t}`}))),Pt=l((({title:e,links:t,className:l="",context:a})=>{const i=a.useRouter(),{handlerDecorator:o}=a;return r("div",{className:l,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(_t,{index:t,className:"font-normal text-sm",...F({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),Lt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Mt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=Lt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-main-divider border-solid border-[1px] hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(y,{image:r,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),At=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Mt,{version:r,...F({router:a,handlerDecorator:i},e)},String(t))))})})),Vt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:i})=>n("a",{className:`font-sans text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e}`,href:l,target:a,onClick:i,children:r||`Документ ${t}`}))),jt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:i}=l;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(Vt,{index:t,className:"font-normal",...F({router:a,handlerDecorator:i},e)},String(t))))}):null]})}));function Gt(e){const{data:t}=e(Ot(),Wt);return t||{}}async function Wt(){const e=await fetch(Ot());return await e.json()}function Ot(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Ut=l((({className:e,context:t,isMobile:l=!1})=>{const{term:a,setTerm:i}=t.useSearch(),o=l?"font-normal text-sm":"text-l-light",s=l?" placeholder-transparent font-normal":"font-light h-full",c=l?"some search":void 0;return r("form",{className:`font-sans 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:l?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:n(y,{image:"LoupeIcon",width:"24",height:"24"})}),a?null:n("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${o}`,children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded box-border\n outline-none pr-[6%] border-main-divider focus:border-primary-text ${s}`,value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:c}),l?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(y,{image:"CloseIcon",width:"24",height:"24"})}):n(Y,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Et=l((({className:e="",context:t})=>n(Ut,{context:t,className:e,isMobile:!0}))),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:i,context:o,horizontalNavigationTitle:s})=>{const c=Gt(o.useAsyncData),d=c?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:o,hasButton:!0}),n(Ae,{context:o,className:"!p-0 mb-4",accordionItems:Ft(c.topItems)}),n("div",{children:d?.map(zt)}),n($t,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:o,className:"grow"}),n(At,{className:"pb-4",media:i,context:o}),n(Pt,{title:s,links:l,context:o}),n(jt,{links:t,context:o})]})})),zt=(e,t)=>{const{icon:l,href:a,text:i}=e;return r(Y,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(y,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Jt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(j(e),(e=>(e||"").replace(O,""))(j(V(e)?t.href:t.pathname))),qt=e=>t=>Jt(t.href,e),Kt=e=>t=>t.items?.some(qt(e))||Jt(t.href,e)||((e,t)=>G(e)===G(t.href))(t.href,e),Qt=e=>t=>e?.href===t?.href,Yt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Qt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Qt(e))))));var n,r,l},Zt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e="",text:t,href:l,target:a,active:i,onClick:o,children:s,bgColor:c="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:a,onClick:o,children:[n("span",{className:en(c,i),children:t||s}),i?n("div",{className:tn(c,i)}):null]}))),en=(e,t=!1)=>{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`},tn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Zt}`:Zt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:i})=>{const[o,s]=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:l,children:n(y,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:s,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),i,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:i}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(y,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},ln=l((({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(y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(St,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:i})=>{const o=a.useRouter(),s=Gt(a.useAsyncData),c=s?.dispositions,{handlerDecorator:d}=a,m=Yt(s.topItems,i).find(Kt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(qt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(o)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),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)=>on({...F({router:o,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:c,defaultLocation:t,children:n(Ae,{context:a,accordionItems:Ft(s.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),sn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function cn(e=""){const t=sn(e);return t<=4?"S":t<=8?"M":"L"}function dn(e=""){const t=sn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function mn(e=""){const t=sn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const hn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...i})=>r($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${mn(e)} ${dn(e)} `,...i,children:[n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:a,headlineVersion:cn(e)}),n("figure",{className:"m-0 min-w-[600px]",children:un()})]}))),un=(e=3)=>xn(100,e).map((e=>Math.floor(e))).map(pn),pn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),xn=(e,t)=>[e].concat(t>0?xn(e/1.618,t-1):[]),gn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},bn=l((({block:e,context:t,className:r=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${gn[e?.version??"primary"]} ${r}`,role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{context:t,...e})})}))),fn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(T,{context:t,children:l.map(((e,r)=>n(bn,{block:e,context:t},String(r))))})})})),yn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Nn=e=>yn[e],vn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},In={normal:"min-h-[70px]",small:"min-h-[50px]"},wn=l((({className:e,title:t,description:l,showLines:a=!0,steps:i,size:s="normal",version:c="primary"})=>{const d=Nn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(o,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,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(Cn(s,c,a))})}):null]})})),Cn=(e,t,l)=>(a,i,o)=>{const s=o.length-1===i,c="normal"===e?"ml-[34px]":"ml-6",d=Nn(t);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[kn(e,t),s?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${c}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${In[e]}`,children:[a.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left mb-1",children:a.label}):null,a.description?n("div",{className:`text-s ${d.description} text-left`,children:a.description}):null]})]})},String(i))},kn=(e,t)=>(r,l)=>{const a=Nn(t),i="normal"===e?"38":"27",o="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${vn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${o}`,children:(s=r?.icon,Boolean(s?.icon||s?.src)?n(y,{image:r.icon,width:i,height:i,asSVG:!0}):n("span",{children:l+1}))})});var s},Sn=l((({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(y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),$n=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],Dn=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Sn,{...e}),t?.length?t.map(Tn):null]}))),Tn=({label:e,description:t,list:l,image:a,buttons:i},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,l?.items?.length?Rn(l):null,a?n(y,{image:{...a,className:"m-0"}}):null,i?.length?Bn(i):null]},String(o)),Rn=e=>n(le,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Bn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(Y,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:$n(e),rounded:t,appendLeft:e?n(y,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),_n=l((({tiles:e,context:t})=>n(T,{context:t,children:e.map(((e,t)=>n(Dn,{...e},String(t))))}))),Pn=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(Dn,{...e},String(t))))}))),Ln=l((({className:e,context:t,title:l,description:a,columns:i,rowHeaders:s,orientation:c="vertical"})=>{const d=An(i),m=Vn(s,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(o,{headingType:"h2",className:`text-center ${a?"mb-2":"mb-5"}`,title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?Mn(c,m,t):null]})}));function Mn(e,t,r){return"vertical"===e?n(Pn,{tiles:t}):n(_n,{context:r,tiles:t})}const An=e=>e?.[0].data?e[0].data:[],Vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),jn={Accordion:Ae,ComparisonTable:He,ExchangeRateTile:wt,Footer:Ht,Gallery:Ne,Header:an,Headline:w,LinkDocs:A,LinkList:De,MobileAppTile:$t,ProductBlock:pe,ProductGallery:fn,StepsBlock:wn,TariffsTable:Ln,TextBlock:ge,Placeholder:hn},Gn=l((({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"})]})},On=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r($e,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(Gn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Gn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Un=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),En=l((({className:e="",context:t,blocksRegistry:l,data:a={},blockDecorator:i=Un})=>{const{style:o,blocks:s,slots:c={},likeControl:d,colorPalette:m="pc"}=a,{header:h}=c;return r("section",{className:`relative ${N(o)} ${e}`,"data-theme":m,children:[h?.blocks?.length?n("div",{className:`${N(h?.style)}`,children:h.blocks.map(((e,n)=>Fn({block:e,page:a,blockDecorator:i,blocksRegistry:l,context:t},n)))}):null,s?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:s.map(((e,n)=>Fn({block:e,blockDecorator:i,blocksRegistry:l,context:t,page:a},n)))}):null,d?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(On,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Fn({block:e,blockDecorator:t,blocksRegistry:r,context:l,page:a},i){const{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const s=r[o||"Placeholder"]||hn;return t({blockClassName:`scroll-mt-12 ${N(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c,labels:d}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,page:a,anchor:c,labels:d,...r},`${o}-${i}`)}},`block-${i}`)}e.Blocks=jn,e.ContentPage=En,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.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:l}=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:l},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:l,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:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,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:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:i}=await n.json();return i||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.projectSettings=d,e.setup=t,e.url=W,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,...l}={})=>{const a=Object.assign({},l,r?{innerHTML:r.__html}:{});return e(t,a,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...l}=t||{},a=n?.slots?.default,o=r||a&&a();return e(Object.assign(l,o&&{children:o}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const a="likesToken";const o={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},i=l((e=>{const{className:t,headingType:r="h3",title:l,as:a="h3"}=e;return n(a,{className:`font-sans font-medium m-0 ${o[r]} ${t||""}`,children:l})}));var s,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.Logo="Logo",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.PackA4="PackA4",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",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",e.WateringCan="WateringCan"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.Logo="Logo",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4="PackA4",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));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={normal:"text-primary-main",black:"text-black",white:"text-black invert"},h=l((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${c[l]||l}`,title:o=a,iconVersion:i="normal",asSVG:s,...h})=>{const u=`${d.CDN||""}icons/${l}.svg`;return s?r("svg",{className:e,...h,"aria-hidden":"true",children:[o?n("title",{children:o}):null,a?n("desc",{children:a}):null,n("use",{className:`${m[i]} ${t}`,href:`${u}#icon`,xlinkHref:`${u}#icon`})]}):n("img",{className:e,src:u,alt:a,title:o,...h,"aria-hidden":"true"})}));function u(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const p=(e,t)=>e.media&&t.media?e.media-t.media:0,x=l((({className:e="",image:t,imageClassName:l="",isMobile:a=!1})=>{if(!t)return null;return r("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(p).map((({src:e,format:t,media:r,size:l},a)=>n("source",{srcSet:e,type:b(t),media:r?`(max-width: ${r}px)`:"",...l},`${a}_${e}`))):null,g(t,l,a)]})})),g=(e,t="",r=!1)=>{const l=e.title||"",a=e.alt||e.title,o=r?"m-auto":"m-0";return n("img",{src:e.src,className:`${o} ${t}`,alt:a,title:l,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const f=l((({className:e="",image:t,imageClassName:r="",isMobile:l,...a})=>{if(!t)return null;const o="string"==typeof t?t:t.icon;return o||""===o?o.length?n(h,{className:e,imageClassName:r,iconVersion:u(t),name:o,...a}):null:n(x,{className:e,imageClassName:r,image:t,isMobile:l})})),y=l((({className:e="",image:t})=>n(f,{className:e,image:t,isMobile:!0})));function N(e){return e?e.filter(Boolean).join(" "):""}const v={left:"text-left",center:"text-center",right:"text-right"},I={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"}},w=l((({bgColorHeadline:e="transparent",className:t="",title:l,description:a,image:o,align:s="left"})=>{const c=I[e];return r("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${c.background} ${t}`,children:[l?n(i,{headingType:"h2",className:`${c.text} ${v[s]}`,title:l}):null,a?n("p",{className:`font-normal text-m ${c.description} ${v[s]} `,children:a}):null,o?.src&&n("div",{className:"mt-2.5 mx-auto flex justify-center",children:n(y,{image:o})})]})})),k=l((({children:e,activeIndex:t,indexFraction:r,showDots:l})=>{const a=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return l&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,l)=>n("div",{onClick:a(l),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:C(l,t,r),"aria-hidden":!0},String(l))))}):null})),C=(e,t,n)=>{if(e<t||e>t+1)return;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"}},S=l((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),$=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),D=l((({className:e="",children:t,activeIndex:r,onScroll:l,gap:a=14,padding:o=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...$(o),gap:`${a}px`},role:"list",onScroll:l,children:t?.length?t?.map(((e,t)=>n(S,{style:$(o/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(S,{children:t})}))),T=l((({className:e,context:t,children:l,gap:a=14,padding:o=16,showDots:i=!0,onSlideChange:s})=>{const[c,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:c,indexFraction:m,showDots:i,children:l};return r("div",{className:e,children:[n(D,{gap:a,padding:o,activeIndex:c,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:l,children:i}=e?.currentTarget,m=i[0].offsetWidth-o/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const o=r-n;if(2===l)return[[0,o],[o,r]];const i=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?o-s:0,t>0?o:s]:[(t-1)*i+s,t*i+s]));return d[l-1]=[o,r],d})({gap:a,padding:o,clientWidth:n,scrollWidth:l,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,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==c&&s&&s(),d(p),h(x)},children:l}),n(k,{...u})]})})),R=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:o,icon:i})=>{const{text:s,fileSize:c,...d}=o;return r("a",{className:e,role:"link",...d,children:[i?n(y,{className:t,image:i,width:"24px",height:"24px",asSVG:!0}):null,s?r("span",{className:l,children:[s,n("span",{className:a,children:d?.href&&B(P(d.href),c)})]}):null]})})),B=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),P=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},_=l((({className:e="",doc:t,icon:r})=>n(R,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),A=l((({context:e,hasBorder:t=!0,documents:r,icon:l})=>n(T,{context:e,className:"text-s text-primary-main mt-5",children:r?.length?r.map(((e,r)=>n(_,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:l},String(r)))):null}))),L=l((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,l)=>n("div",{role:"listitem",children:n(_,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(l)))):null}))),M=l((({className:e="",context:t,title:l,description:a,icon:o={icon:"DocIconMonoColor"},documents:i,orientation:s="vertical",hasBorder:c=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[n(w,{className:"!p-0 "+(a?"gap-2":"gap-5"),title:l,description:a,context:t,align:"center"}),"vertical"===s?n(L,{hasBorder:c,documents:i,icon:o}):n(A,{context:t,hasBorder:c,documents:i,icon:o})]}))),V=e=>e?.includes("//"),j=e=>(e||"").replace(/\/?\?.*/,""),G=e=>{if(!e||!V(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var W=Object.freeze({__proto__:null,isURL:V,withoutQuery:j,getOrigin:G,getHash:e=>{if(!e||!V(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const O="/mobile",U=(e,t)=>{if(!e)return e;const n=G(t?.href);return n?e.replace(n,"")||"/":e},E=e=>e;function F({router:e,handlerDecorator:t=E},n){const r=((e,t)=>{if(!e)return e;const n=U(e,t)||"",r=t?.pathname.startsWith(O);return r&&!V(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!V(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const H=l((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:o}=e;return r("div",{className:z(e),children:[a||null,J(e)?r("div",{children:[n("div",{className:"text-xs text-left",children:l}),n("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,o||null]})})),z=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",J(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},J=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),q={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"},K={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Q="w-full text-center font-sans select-none",Y=l((({className:e,text:t,aboveText:r,appendLeft:l,href:a,target:o,onClick:i,children:s,disabled:c,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=s??n(H,{text:t,aboveText:r,appendLeft:l,rounded:d,version:m});return c?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${Q} ${K[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${Q} inline-block cursor-pointer no-underline ${q[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:a,target:o,onClick:i,"aria-label":h,role:a?"link":"button",...u,children:p})})),Z=l((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:l}=e,a=e.useRouter();return r&&r?.length?n("div",{className:t,children:r.map(((e,t)=>function({icon:e,iconRight:t,...r},l){if(!r?.text)return null;return n(Y,e?{appendLeft:n(y,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:n(y,{image:t,width:"24",height:"24",asSVG:!0}),...r}:{...r},String(l))}(F({router:a,handlerDecorator:l},e),t)))}):null}));const X={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"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=l((({className:e="",isDotted:t=!0,children:l,version:a="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(a)}):null,n("span",{children:l})]}))),ne=e=>`${X[e]} ${ee[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]}`,re={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},le=l((e=>{const{className:t="",itemClassName:r,isDotted:l,items:a,version:o="primary"}=e;return n("section",{className:`${re[o]} ${t}`,role:"list",children:a?.length?a.map(((e,t)=>n(te,{className:r,isDotted:l,version:o,children:e},String(t)))):null})})),ae=l((({className:e="",title:t="",children:l,buttons:a,image:o})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,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:l}),a?n("div",{children:a}):null]}),o]})]}))),oe={primary:"text-primary-text",secondary:"text-white"},ie={primary:"text-secondary-text",secondary:"text-white"};function se(e){let t="text-primary-main";return"secondary"===e&&(t="text-black"),`w-6 h-6 rounded-full box-border ${t}`}const ce=l((({className:e="",context:t,title:l,headlineVersion:a="L",description:o,benefits:i,benefitsVersion:s="normal",buttons:c,image:d,items:m,version:h="primary",isDotted:u=!0,label:p})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[p?he(p,h):null,n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:o,bgColorHeadline:h,headlineVersion:a}),r(ae,{context:t,buttons:c?.length?n(Z,{context:t,buttons:c,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:i.map(((e,t)=>function({benefit:e,version:t="primary"},l){const a="secondary"===t;return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(y,{className:se(t),image:{...e?.icon,iconVersion:a?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,n("div",{className:`text-l m-0 ${oe[t]}`,children:e.label}),e.description&&n("div",{className:`text-s ${ie[t]}`,children:e.description})]},String(l))}({benefit:e,version:h,benefitsVersion:s},t)))}):null,m?.length?n(le,{className:"mt-3 text-m",items:m,version:h,isDotted:u}):null]})]}),de(d)]})));function de(e){return e?.src?n(y,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const me={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},he=(e,t)=>n("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${me[t]}`,children:e}),ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe=l((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ue[r]} ${t}`,children:n(ce,{...e})})})),xe={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"}},ge=l((({title:e,description:t,blockVersion:l="primary",iconVersion:a,image:o,className:i="",items:s,isDotted:c=!0})=>{const d=xe[l],m="secondary"===l?"secondary":"gray";return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${i}`,children:["small"===a?be(d.icon):null,"big"===a?fe(o):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,s?.length?n(le,{className:"mt-1 text-m-md",items:s,isDotted:c,version:m}):null]})]})}));function be(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 fe(e){return e?.src?n(y,{className:"pb-3 mr-auto",image:e}):null}const ye={primary:"bg-white",secondary:"bg-primary-main text-white"},Ne=l((({context:e,title:t,description:l,cards:a=[],className:o,orientation:s="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${o}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(i,{headingType:"h3",className:`text-center ${l?"mb-2":"mb-5"}`,title:t}):null,l?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:l}):null]}),ve(s,a,e)]})));function ve(e,t,r){return"horizontal"===e?n(T,{context:r,children:t?.map(Ie)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ie)})}function Ie(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 ${ye[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(y,{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?we(e):null,e.items?.length?ke(e.items,e.isDotted,e.version):null]}),e?.button?.text?(l=e.button,n(Y,{className:"mt-3",appendLeft:l?.icon&&n(y,{image:l?.icon,width:"24px",height:"24px",asSVG:!0}),...l})):null]},t);var l}function we(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ke(e,t,l="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[t?n("div",{className:ne(l)}):null,n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===l?"text-secondary-text":""),children:e.text})]},String(a))))})}class Ce{static inst=new Ce;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const Se=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},$e=l((({anchor:e,className:t,context:r,children:l,tag:a="section",labels:o})=>{const i=a,{IntersectionObserverTag:s}=r,[c,d]=r.useState(!0);return r.useEffect((()=>Ce.inst.subscribe("tab",(e=>{d(!o?.length||!e.label||o.includes(e.label))}))),[o]),c?e?n(s,{tag:a,className:t,observerCallback:Se,observerOptions:{threshold:1},anchor:e,children:l}):n(i,{className:t,children:l}):null})),De=l((({className:e="",documents:t,...r})=>n($e,{className:`font-sans bg-white mt-[10px] ${e}`,...r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Te(t):null})}))),Te=e=>e.map(((e,t)=>{const{text:r,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:r||null})},`list_item_${String(t)}`)})),Re={Headline:w,LinkDocs:M,TextBlock:ge,ProductBlock:pe,Gallery:Ne,LinkList:De},Be=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Pe({context:t,className:n})):null,Pe=({context:e,className:t})=>(r,l)=>{if(!r)return null;const{style:a,blockListType:o,...i}=r;if(!o||!(o in Re))return null;const s=N(a);return n(Re[o],{className:`${t} ${s}`,context:e,...i},`block_${l}`)},_e=l((({blocks:e,context:t})=>n("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Be({context:t,blocks:e,className:"!px-0"})}))),Ae=l((({label:e,labelIcon:t,blocks:l,bordered:a,context:o})=>{const{hasContent:i,icon:s,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,l]=e.useState(n),a=t?.length;return{isActive:r,hasContent:a,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!r);const n=t.nextSibling;n.style.maxHeight=n.style.maxHeight?"":`${n.scrollHeight}px`}}})({context:o,blocks:l});return r("li",{className:`${Le(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 ${i?"group cursor-pointer":""}`,onClick:c,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(i?"group-hover:text-primary-main":""),children:[t?n(y,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),i?n(y,{image:s,width:"24",height:"24",asSVG:!0}):null]}),i?n(_e,{blocks:l,context:o}):null]})}));function Le(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Me=l((({title:e,description:t,accordionItems:l,context:a,className:o="",bordered:s})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${o}`,children:[e?n(i,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Ae,{...e,context:a,bordered:s},`AccordionItem_${t}`)))}):null]}))),Ve=(e=!1)=>e?"text-white":"",je=(e=!1)=>"text-m-sm mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ge=l((({icon:e,image:t,title:l,subtitle:a,isFillGradient:o})=>r("div",{role:"columnheader",children:[e?n(y,{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(y,{image:t})}),l?n(i,{headingType:"h4",className:Ve(o),title:l}):null,a?n("div",{className:je(o),children:a}):null]}))),We=l((({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(Oe(r,t))})}))),Oe=(e,t)=>({label:l,description:a},o)=>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:[l?n("div",{className:"text-right "+(e?"text-white":""),children:l}):null,a?n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:a}):null]})]},String(o)),Ue=l((({header:e,columnData:t,visibleRowLength:l=0,isFillGradient:a,showRow:o,onToggleColumn:i})=>{const s=t?.slice(0,o?t.length:l),c=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(Ge,{...e,isFillGradient:a}),s?.length?s.map((({rowHeader:e,cell:t},r)=>n(We,{cell:t,rowHeader:e,isFillGradient:a},String(r)))):null,o&&Ee({header:e,buttonVersion:c}),Fe({onToggleColumn:i,isFillGradient:a,showRow:o})]})})),Ee=({header:e,buttonVersion:t})=>n(Y,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),Fe=({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?"Скрыть":"Показать описание"})}),He=l((({className:e,context:t,title:l,rowHeaders:a,columns:o,visibleRowLength:s=0,isColoredFirstColumn:c=!1,orientation:d="vertical"})=>{const m=o?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:a?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(o?.length).fill(!s));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[l?n(i,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:l}):null,ze({tableData:m,context:t,visibleRowLength:s,isColoredFirstColumn:c,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),ze=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,columnsViewState:a,handleToggleColumn:o,orientation:i="horizontal",setColumnsViewState:s})=>n("div",{role:"table",children:t?.length?Je({orientation:i,context:e,columnsViewState:a,setColumnsViewState:s,tableData:t,visibleRowLength:r,isColoredFirstColumn:l,handleToggleColumn:o}):null}),Je=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:l,tableData:a,visibleRowLength:o,isColoredFirstColumn:i,handleToggleColumn:s})=>"horizontal"===e?n(T,{context:t,onSlideChange:Ke(r,l),children:a.map(qe({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:s}))}):a.map(qe({context:t,visibleRowLength:o,isColoredFirstColumn:i,columnsViewState:r,handleToggleColumn:s})),qe=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a})=>(o,i)=>n(Ue,{context:e,visibleRowLength:t,showRow:l[i],header:o.header,columnData:o.column,isFillGradient:0===i&&r,onToggleColumn:()=>a(i)},String(i)),Ke=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function Qe(){try{const e=await fetch(Ye,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ze)});return await e.json()}catch(e){return console.error(e),Promise.resolve()}}const Ye="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",Ze={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},Xe=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:et(Number(t.rate_buy)),sell:et(Number(t.rate_sell))}),e}),[]),et=e=>Math.round(1e3*e)/1e3;var tt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(tt||(tt={}));const nt=new Intl.NumberFormat("ru",{style:"currency",currency:tt.RUB}),rt=e=>e?nt.format(e):"",lt="text-left text-m text-secondary-text",at={USD:"DollarIcon",EUR:"EuroIcon"},ot=l((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:lt,children:"Валюта"}),n("th",{className:`${lt} pl-11`,children:"Купить"}),n("th",{className:`${lt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>it(e)))})]}))),it=e=>{const t=e?.code;return r("tr",{className:"pb-1 text-h6",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(y,{image:{icon:at[t]},width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:rt(e?.sell)}),n("td",{className:"pt-4 pl-11",children:rt(e?.buy)})]},t)},st=l((({className:e="",address:t,distance:l})=>r("div",{className:`flex ${e}`,children:[n(y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3",children:[t?n("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,l?r("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),ct=(e,t,n)=>{const r=Number(dt(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:((e,t=2)=>{const n=Math.pow(10,t);return Math.round(parseFloat(String(e))*n)/n})(r)},dt=e=>e.replace(/[^\d.,]/g,"").replace(",","."),mt=e=>{return(t=[[e=>e.value!==tt.RUB&&e.oppositeValue!==tt.RUB,()=>e.handleConvert(e.value,tt.RUB)],[e=>e.value===tt.RUB&&e.oppositeValue===tt.RUB,()=>e.handleConvert(e.value,tt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ht=l((({className:e="",id:t,name:r,type:l="text",placeholder:a,pattern:o,value:i,onChange:s})=>n("input",{className:e,id:t,name:r||t,type:l,pattern:o,placeholder:a,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;s(t)}}))),ut={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},pt=l((({className:e="",id:t,name:r,children:l,value:a,onChange:o})=>n("select",{className:`appearance-none ${e}`,style:ut,id:t,name:r||t,value:a,onChange:e=>o(e.target.value),children:l}))),xt=l((({className:e="",value:t,selected:r,children:l})=>n("option",{className:e,value:`${t}`,selected:r,children:l})));function gt(e){const{placeholder:t,rates:l,selected:a,value:o,setValue:i,setSelected:s}=e;return r("div",{className:"relative flex items-center",children:[n(ht,{className:"h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:o,onChange:i}),l.length?n(pt,{className:"h-9 -translate-x-4 bg-transparent",value:a,onChange:e=>s(e),children:l.map(((e,t)=>n(xt,{value:e.code,children:e.code},String(t))))}):null]})}const bt=l((({context:e,className:t="",currencyRatesBuy:l,currencyRatesSell:a,button:o})=>{const{useRouter:i,handlerDecorator:s}=e,c=i(),[d,m]=e.useState({inputSell:"",inputBuy:"",selectSell:l?.[0]?.code||tt.RUB,selectBuy:a?.[0]?.code||tt.USD}),h=e=>{m((t=>({...t,...e})))};return r("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[gt({placeholder:"Хочу продать",rates:l,selected:d.selectSell,setSelected:ft(d,h,a),value:d.inputSell,setValue:e=>Nt(h,a)(e,d.selectSell,d.selectBuy)}),gt({placeholder:"Получу",rates:a,selected:d.selectBuy,setSelected:yt(d,h,l),value:d.inputBuy,setValue:e=>vt(h,l)(e,d.selectBuy,d.selectSell)}),o?.text?n(Y,{className:"py-4 mr-1",version:o?.version,...F({router:c,handlerDecorator:s},o),children:o.text}):null]})})),ft=(e,t,n)=>r=>{t({selectSell:r}),mt({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Nt(t,n)(e.inputSell,r,l)}})},yt=(e,t,n)=>r=>{t({selectBuy:r}),mt({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>vt(t,n)(e.inputBuy,r,l)})},Nt=(e,t)=>(n,r,l)=>{e({inputSell:dt(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(ct(n,a,r===tt.RUB)||"")})},vt=(e,t)=>(n,r,l)=>{e({inputBuy:dt(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(ct(n,a,r===tt.RUB)||"")})},It={address:"Москва, ул.Ленина д.28",distance:"6км"},wt=l((({className:e="",context:t,title:l="Курсы обмена валют",button:a,...o})=>{const s=function(e){const{data:t}=e(Ye,Qe),n=t?.hits?.hits?.map((e=>e._source))||[];return n.length?Xe(n):n}(t.useAsyncData),c=s.filter((e=>e.buy));c.unshift({code:tt.RUB});const d=s.filter((e=>e.sell));return d.push({code:tt.RUB}),n($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...o,children:n(ae,{context:t,title:n(i,{headingType:"h4",title:l,className:"whitespace-pre-wrap text-h4"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-14 pt-4",children:[s?n(ot,{className:"mb-[30px]",exchangeCurrencyItems:s}):null,n(st,{...It})]}),s.length&&c.length&&d.length?n(bt,{className:"grow",context:t,currencyRatesBuy:c,currencyRatesSell:d,button:a}):null]})})})})),kt={"bg-white":"text-primary-main",transparent:"text-white"},Ct={"bg-white":"text-black",transparent:"text-white"},St=l((({className:e="",href:t,children:l,targetBlank:a,bgColor:o="bg-white",hideTitle:i})=>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(y,{image:{icon:"Logo"},className:`${kt[o]} w-10 h-[38px]`,asSVG:!0}),i?null:n("span",{className:`${Ct[o]} text-sm font-medium ml-2.5`,children:l||"Россельхозбанк"})]}))),$t=l((({className:e="",title:t="Мобильное приложение",description:l,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(St,{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-s font-medium mb-[3px]",children:t}),n("div",{className:"text-s text-secondary-text",children:l})]})]}):null}))),Dt=l((({className:e="",items:t,hasButton:l,context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:e,children:[t?.length?t.map(Tt):null,l?n(Y,{version:"primary",className:"mb-6 w-full",...F({router:o,handlerDecorator:i},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Tt=(e,t)=>{const{type:l,text:a,description:o}=e;return r("div",{className:"mb-4",children:[n("div",{children:Rt(l,a)}),n("div",{className:"mt-1 text-s-light text-secondary-text",children:o})]},String(t))},Rt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Bt(t)}`,children:t});case"email":return n("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Bt=e=>e.replaceAll(/\D/g,""),Pt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),_t=l((({title:e,links:t,className:l="",context:a})=>{const o=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:l,children:[n("span",{className:"text-primary-text font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Pt,{index:t,className:"font-normal text-sm",...F({router:o,handlerDecorator:i},e)},String(t))))}):null]})})),At=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Lt=l((({href:e,version:t="primary"})=>{const{icon:r,label:l}=At.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(y,{image:r,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Mt=l((({className:e,media:t,version:r,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Lt,{version:r,...F({router:a,handlerDecorator:o},e)},String(t))))})})),Vt=l((({className:e="",index:t,text:r,href:l,target:a,onClick:o})=>n("a",{className:`text-xs text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:a,onClick:o,children:r||`Документ ${t}`}))),jt=l((({className:e,links:t,context:l})=>{const a=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"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(Vt,{index:t,className:"font-normal",...F({router:a,handlerDecorator:o},e)},String(t))))}):null]})}));function Gt(e){const{data:t}=e(Ot(),Wt);return t||{}}async function Wt(){const e=await fetch(Ot());return await e.json()}function Ot(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const Ut=l((({className:e,context:t,isMobile:l=!1})=>{const{term:a,setTerm:o}=t.useSearch(),i=l?"font-normal text-sm":"text-l-light",s=l?" placeholder-transparent font-normal":"font-light h-full",c=l?"some search":void 0;return r("form",{className:`font-sans 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:l?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:n(y,{image:"LoupeIcon",width:"24",height:"24"})}),a?null:n("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${i}`,children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-divider focus:border-primary-text ${s}`,value:a,onChange:e=>o(e.target.value),type:"text",name:"search-bar-input",placeholder:c}),l?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(),o("")},children:n(y,{image:"CloseIcon",width:"24",height:"24"})}):n(Y,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),Et=l((({className:e="",context:t})=>n(Ut,{context:t,className:e,isMobile:!0}))),Ft=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Ht=l((({className:e="",documents:t,relatedEnterprises:l,contacts:a,socialMedia:o,context:i,horizontalNavigationTitle:s})=>{const c=Gt(i.useAsyncData),d=c?.dispositions;return r("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[n(Dt,{className:"overflow-hidden",items:a,context:i,hasButton:!0}),n(Me,{context:i,className:"!p-0 mb-4",accordionItems:Ft(c.topItems)}),n("div",{children:d?.map(zt)}),n($t,{context:i,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Et,{context:i,className:"grow"}),n(Mt,{className:"pb-4",media:o,context:i}),n(_t,{title:s,links:l,context:i}),n(jt,{links:t,context:i})]})})),zt=(e,t)=>{const{icon:l,href:a,text:o}=e;return r(Y,{version:"link",href:a,className:"flex text-sm mb-4",children:[l?n(y,{className:"pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:o})]},`footer-${t}`)},Jt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(j(e),(e=>(e||"").replace(O,""))(j(V(e)?t.href:t.pathname))),qt=e=>t=>Jt(t.href,e),Kt=e=>t=>t.items?.some(qt(e))||Jt(t.href,e)||((e,t)=>G(e)===G(t.href))(t.href,e),Qt=e=>t=>e?.href===t?.href,Yt=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(Qt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Qt(e))))));var n,r,l},Zt="absolute left-0 -bottom-3 w-full h-[2px]",Xt=l((({className:e="",text:t,href:l,target:a,active:o,onClick:i,children:s,bgColor:c="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:a,onClick:i,children:[n("span",{className:en(c,o),children:t||s}),o?n("div",{className:tn(c,o)}):null]}))),en=(e,t=!1)=>{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`},tn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Zt}`:Zt,nn=l((({context:e,burgerSubMenu:t,onClick:l,defaultLocation:a="",children:o})=>{const[i,s]=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:l,children:n(y,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:s,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(y,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),i]}),o,n("div",{className:"mb-7",children:t?.map(rn)}),n(Et,{context:e,className:"grow"})]})})),rn=(e,t)=>{const{icon:l,href:a,text:o}=e;return r("a",{href:a,className:"flex text-sm mb-4 hover:text-primary-main",children:[l?n(y,{className:"text-primary-main pr-1",image:l,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:o})]},`headerSubMenu-${t}`)},ln=l((({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(y,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(St,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),an=l((({className:e="",defaultLocation:t,bgColor:l="bg-white",context:a,topItems:o})=>{const i=a.useRouter(),s=Gt(a.useAsyncData),c=s?.dispositions,{handlerDecorator:d}=a,m=Yt(s.topItems,o).find(Kt(i))?.items,h=(e=>(t=[])=>{const n=t?.filter(qt(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(i)(m),[u,p]=a.useState(!1),x=()=>p(!u);return r("header",{className:`${l} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(ln,{onClick:x,bgColor:l}),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)=>on({...F({router:i,handlerDecorator:d},e),active:e===h,bgColor:l},t)))})})]}),u?n(nn,{context:a,onClick:x,burgerSubMenu:c,defaultLocation:t,children:n(Me,{context:a,accordionItems:Ft(s.topItems),className:"!p-0 mb-4"})}):null]})})),on=(e,t)=>n(Xt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),sn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function cn(e=""){const t=sn(e);return t<=4?"S":t<=8?"M":"L"}function dn(e=""){const t=sn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function mn(e=""){const t=sn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const hn=l((({className:e,context:t,title:l,description:a="Блок в разработке...",...o})=>r($e,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${mn(e)} ${dn(e)} `,...o,children:[n(w,{context:t,className:"!p-0 max-w-[600px]",title:l,description:a,headlineVersion:cn(e)}),n("figure",{className:"m-0 min-w-[600px]",children:un()})]}))),un=(e=3)=>xn(100,e).map((e=>Math.floor(e))).map(pn),pn=(e,t)=>n("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),xn=(e,t)=>[e].concat(t>0?xn(e/1.618,t-1):[]),gn={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},bn=l((({block:e,context:t,className:r=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${gn[e?.version??"primary"]} ${r}`,role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{context:t,...e})})}))),fn=l((({className:e,context:t,slides:r=[]})=>{const l=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(T,{context:t,children:l.map(((e,r)=>n(bn,{block:e,context:t},String(r))))})})})),yn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Nn=e=>yn[e],vn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},In={normal:"min-h-[70px]",small:"min-h-[50px]"},wn=l((({className:e,title:t,description:l,showLines:a=!0,steps:o,size:s="normal",version:c="primary"})=>{const d=Nn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${d.background} ${d.title} ${e||""}`,children:[t?n(i,{headingType:"h3",className:`text-center ${d.title}`,title:t}):null,l?n("p",{className:`text-m text-center ${d.description} ${t?"mt-2":""}`,children:l}):null,o?.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:o.map(kn(s,c,a))})}):null]})})),kn=(e,t,l)=>(a,o,i)=>{const s=i.length-1===o,c="normal"===e?"ml-[34px]":"ml-6",d=Nn(t);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[Cn(e,t),s?null:n("div",{className:`min-h-8 h-full w-[2px] ${l?d.iconConnector:""} ${c}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${In[e]}`,children:[a.label?n("div",{className:"font-medium text-m-title-xs m-0 text-left mb-1",children:a.label}):null,a.description?n("div",{className:`text-s ${d.description} text-left`,children:a.description}):null]})]})},String(o))},Cn=(e,t)=>(r,l)=>{const a=Nn(t),o="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return n("div",{className:`${vn[e]} ${a.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${a.title} ${i}`,children:(s=r?.icon,Boolean(s?.icon||s?.src)?n(y,{image:r.icon,width:o,height:o,asSVG:!0}):n("span",{children:l+1}))})});var s},Sn=l((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(i,{headingType:"h3",className:"font-medium",title:e}):null,t?n(y,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),$n=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],Dn=l((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(Sn,{...e}),t?.length?t.map(Tn):null]}))),Tn=({label:e,description:t,list:l,image:a,buttons:o},i)=>r("div",{children:[i>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,l?.items?.length?Rn(l):null,a?n(y,{image:{...a,className:"m-0"}}):null,o?.length?Bn(o):null]},String(i)),Rn=e=>n(le,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Bn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},l)=>n(Y,{className:`mt-3 ${l>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:$n(e),rounded:t,appendLeft:e?n(y,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(l))))}),Pn=l((({tiles:e,context:t})=>n(T,{context:t,children:e.map(((e,t)=>n(Dn,{...e},String(t))))}))),_n=l((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(Dn,{...e},String(t))))}))),An=l((({className:e,context:t,title:l,description:a,columns:o,rowHeaders:s,orientation:c="vertical"})=>{const d=Mn(o),m=Vn(s,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[l?n(i,{headingType:"h2",className:`text-center ${a?"mb-2":"mb-5"}`,title:l}):null,a?n("div",{className:"mb-5 text-center text-m-md",children:a}):null,m?.length?Ln(c,m,t):null]})}));function Ln(e,t,r){return"vertical"===e?n(_n,{tiles:t}):n(Pn,{context:r,tiles:t})}const Mn=e=>e?.[0].data?e[0].data:[],Vn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),jn={Accordion:Me,ComparisonTable:He,ExchangeRateTile:wt,Footer:Ht,Gallery:Ne,Header:an,Headline:w,LinkDocs:M,LinkList:De,MobileAppTile:$t,ProductBlock:pe,ProductGallery:fn,StepsBlock:wn,TariffsTable:An,TextBlock:ge,Placeholder:hn},Gn=l((({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"})]})},On=l((({className:e,context:t,...l})=>{const a=t.useLikeService();return r($e,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...l,children:[n(Gn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Gn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Un=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),En=l((({className:e="",context:t,blocksRegistry:l,data:a={},blockDecorator:o=Un})=>{const{style:i,blocks:s,slots:c={},likeControl:d,colorPalette:m="pc"}=a,{header:h}=c;return r("section",{className:`relative ${N(i)} ${e}`,"data-theme":m,children:[h?.blocks?.length?n("div",{className:`${N(h?.style)}`,children:h.blocks.map(((e,n)=>Fn({block:e,page:a,blockDecorator:o,blocksRegistry:l,context:t},n)))}):null,s?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:s.map(((e,n)=>Fn({block:e,blockDecorator:o,blocksRegistry:l,context:t,page:a},n)))}):null,d?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(On,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Fn({block:e,blockDecorator:t,blocksRegistry:r,context:l,page:a},o){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||hn;return t({blockClassName:`scroll-mt-12 ${N(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c,labels:d}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,page:a,anchor:c,labels:d,...r},`${i}-${o}`)}},`block-${o}`)}e.Blocks=jn,e.ContentPage=En,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.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:l}=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:l},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:l,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:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:l,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:l,UserID:a},body:JSON.stringify({node_id:r,user_name:a})}),{likes:o}=await n.json();return o||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.projectSettings=d,e.setup=t,e.url=W,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,5 +1,6 @@
1
1
  import type { BenefitsBlockContent } from './BenefitsBlock/BenefitsBlockContent';
2
2
  import type { BonusContent } from './Bonus/BonusContent';
3
+ import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
3
4
  import type { ComparisonTableContent } from './ComparisonTable/ComparisonTableContent';
4
5
  import type { ExchangeRateTileContent } from './ExchangeRateTile/ExchangeRateTileContent';
5
6
  import type { FooterContent } from './Footer/FooterContent';
@@ -7,6 +8,7 @@ import type { GalleryContent } from './Gallery/GalleryContent';
7
8
  import type { GracePeriodContent } from './GracePeriod/GracePeriodContent';
8
9
  import type { GroupBlockContent } from './GroupBlock/GroupBlockContent';
9
10
  import type { HeaderContent } from './Header/HeaderContent';
11
+ import type { InsuranceContent } from './Insurance/InsuranceContent';
10
12
  import type { InsuranceAmountBlockContent } from './InsuranceAmountBlock/InsuranceAmountBlockContent';
11
13
  import type { LinkDocsContent } from './LinkDocs/LinkDocsContent';
12
14
  import type { LinkListContent } from './LinkList/LinkListContent';
@@ -19,13 +21,12 @@ import type { ProductBlockContent } from './ProductBlock/ProductBlockContent';
19
21
  import type { ProductGalleryContent } from './ProductGallery/ProductGalleryContent';
20
22
  import type { ProductTileContent } from './ProductTile/ProductTileContent';
21
23
  import type { PromoTileContent } from './PromoTile/PromoTileContent';
24
+ import type { SafeDepositRentalContent } from './SafeDepositRental/SafeDepositRentalContent';
22
25
  import type { StepsBlockContent } from './StepsBlock/StepsBlockContent';
23
26
  import type { TariffsTableContent } from './TariffsTable/TariffsTableContent';
24
27
  import type { TextBlockContent } from './TextBlock/TextBlockContent';
25
28
  import type { TileContent } from './Tile/TileContent';
26
- import type { BonusBenefitsBlockContent } from './BonusBenefitsBlock/BonusBenefitsBlockContent';
27
- import type { InsuranceContent } from './Insurance/InsuranceContent';
28
29
  /**
29
30
  * @hidden
30
31
  */
31
- export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | InsuranceAmountBlockContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent | InsuranceContent;
32
+ export declare type BlockContent = BenefitsBlockContent | BonusContent | ComparisonTableContent | ExchangeRateTileContent | FooterContent | GalleryContent | GracePeriodContent | HeaderContent | InsuranceAmountBlockContent | LinkDocsContent | MobileAppTileContent | NavigatorTabsContent | PictureTextContent | PlaceholderContent | ProductBlockContent | ProductGalleryContent | ProductTileContent | PromoTileContent | StepsBlockContent | TariffsTableContent | TextBlockContent | TileContent | NavigationContent | LinkListContent | GroupBlockContent | BonusBenefitsBlockContent | InsuranceContent | SafeDepositRentalContent;
@@ -10,7 +10,23 @@ const cardStyleMap = {
10
10
  white: 'bg-white',
11
11
  };
12
12
  exports.CatalogCard = (0, uni_jsx_1.JSX)(({ className = '', title, description, image, price, button, colors }) => {
13
- return ((0, jsx_runtime_1.jsxs)("section", { className: `border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-md text-left mb-4 font-light", children: description })) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-m-md text-secondary-text font-light", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? (0, jsx_runtime_1.jsxs)("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button?.text ? (0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-5 w-full", ...button }) : null] }));
13
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "text-m-md text-left mb-4 font-light", children: description })) : null, colors?.length ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex mb-4 text-m-md text-secondary-text font-light", children: [(0, jsx_runtime_1.jsx)("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? (0, jsx_runtime_1.jsxs)("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton(button) : null] }));
14
14
  });
15
15
  const renderColorOption = (color, i) => ((0, jsx_runtime_1.jsx)("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
16
+ const renderButton = (button) => {
17
+ const { icon, iconRight, text } = button;
18
+ if (!text) {
19
+ return null;
20
+ }
21
+ const leftIcon = renderButtonIcon(icon);
22
+ const rightIcon = renderButtonIcon(iconRight);
23
+ return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-5 w-full", appendLeft: leftIcon, appendRight: rightIcon, ...button }));
24
+ };
25
+ const renderButtonIcon = (buttonIcon) => {
26
+ if (!buttonIcon || !buttonIcon.icon) {
27
+ return null;
28
+ }
29
+ const iconWidth = buttonIcon?.size?.width ? `${buttonIcon.size.width}` : '24';
30
+ return (0, jsx_runtime_1.jsx)(Img_1.Img, { image: buttonIcon, width: iconWidth, height: "24", asSVG: true });
31
+ };
16
32
  //# sourceMappingURL=CatalogCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogCard.js","sourceRoot":"","sources":["../../../src/components/Catalog/CatalogCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,uDAAoD;AACpD,0DAAuD;AACvD,8CAA2C;AAO3C,MAAM,YAAY,GAAwC;IACxD,KAAK,EAAE,UAAU;IACjB,KAAK,EAAE,UAAU;CAClB,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,aAAG,EAC5B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE;IACvE,OAAO,CACL,qCACE,SAAS,EAAE,oFAAoF,SAAS,EAAE,EAC1G,IAAI,EAAC,UAAU,aAEd,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,0BAA0B,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC9E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AC,MAA2B,EAAE,EAAE;IACnD,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAEzC,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,MAAM,QAAQ,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAE9C,OAAO,CACL,uBAAC,eAAM,IAAC,SAAS,EAAC,aAAa,EAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,KAAM,MAAM,GAAI,CAC7F,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,UAAoB,EAAE,EAAE;IAChD,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE;QACnC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,SAAS,GAAG,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAE9E,OAAO,uBAAC,SAAG,IAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC;AACxE,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { HeadlineCommonProps } from '../../model/HeadlineType';
1
2
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
2
3
  import type { ImageContent } from '../../ui-kit/Img/ImgProps';
3
- import type { HeadlineCommonProps } from '../../model/HeadlineType';
4
4
  /**
5
5
  * @enumNames ["Черный", "Белый"]
6
6
  */
@@ -10,7 +10,13 @@ export interface CatalogCardType extends HeadlineCommonProps, ImageContent {
10
10
  price?: number;
11
11
  /** @title Доступные цвета */
12
12
  colors?: CatalogProductColor[];
13
- /** @title Кнопка */
13
+ /**
14
+ * @title Кнопка
15
+ * @default {
16
+ * "icon": { "format": "webp", "size": { "width": 24, "height": 24 } },
17
+ * "iconRight" : { "format": "webp", "size": { "width": 24, "height": 24 } }
18
+ * }
19
+ */
14
20
  button?: ButtonWithIconProps;
15
21
  }
16
22
  /**
@@ -2,12 +2,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.ExchangeCurrencyCalculator = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
+ const useLink_1 = require("../../hooks/useLink");
6
+ const Button_1 = require("../../ui-kit/Button/Button");
5
7
  const calculateResult_1 = require("./calculateResult");
6
8
  const callbackCurrencySelect_1 = require("./callbackCurrencySelect");
7
9
  const CurrencyProps_1 = require("./CurrencyProps");
8
- const renderButton_1 = require("./renderButton");
9
10
  const renderInput_1 = require("./renderInput");
10
11
  exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className = '', currencyRatesBuy, currencyRatesSell, button }) => {
12
+ const { useRouter, handlerDecorator } = context;
13
+ const router = useRouter();
11
14
  const [calcState, setCalcState] = context.useState({
12
15
  inputSell: '',
13
16
  inputBuy: '',
@@ -31,7 +34,7 @@ exports.ExchangeCurrencyCalculator = (0, uni_jsx_1.JSX)(({ context, className =
31
34
  setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
32
35
  value: calcState.inputBuy,
33
36
  setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
34
- }), button?.text ? (0, renderButton_1.renderButton)(button) : null] }));
37
+ }), button?.text ? ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "py-4 mr-1", version: button?.version, ...(0, useLink_1.useLink)({ router, handlerDecorator }, button), children: button.text })) : null] }));
35
38
  });
36
39
  const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
37
40
  setCalcState({ selectSell: value });
@@ -1 +1 @@
1
- {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CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;SAC/E,CAAC,CAAC;KACJ;AACH,CAAC,CAAC"}
@@ -15,14 +15,14 @@ exports.Contacts = (0, uni_jsx_1.JSX)(({ className = '', items, hasButton, conte
15
15
  });
16
16
  const renderContact = (item, index) => {
17
17
  const { type, text, description } = item;
18
- return ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4", children: [(0, jsx_runtime_1.jsx)("div", { children: renderText(type, text) }), (0, jsx_runtime_1.jsx)("div", { className: "mt-1 font-sans text-s-light text-secondary-text", children: description })] }, String(index)));
18
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "mb-4", children: [(0, jsx_runtime_1.jsx)("div", { children: renderText(type, text) }), (0, jsx_runtime_1.jsx)("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
19
19
  };
20
20
  const renderText = (type, text = '') => {
21
21
  switch (type) {
22
22
  case 'tel':
23
- return ((0, jsx_runtime_1.jsx)("a", { className: "font-sans text-xl-light text-primary-text no-underline", href: `tel:${formatTel(text)}`, children: text }));
23
+ return ((0, jsx_runtime_1.jsx)("a", { className: "text-h6 text-primary-text hover:text-primary-main no-underline", href: `tel:${formatTel(text)}`, children: text }));
24
24
  case 'email':
25
- return ((0, jsx_runtime_1.jsx)("a", { className: "font-sans text-xl-light text-primary-text no-underline", href: `mailto:${text}`, children: text }));
25
+ return ((0, jsx_runtime_1.jsx)("a", { className: "text-xl-light text-primary-text no-underline", href: `mailto:${text}`, children: text }));
26
26
  default:
27
27
  return (0, jsx_runtime_1.jsx)("span", { children: text });
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../../src/components/Footer/Contacts.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAE9C,uDAAoD;AAQvC,QAAA,QAAQ,GAAG,IAAA,aAAG,EAAgB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAA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AO,CACL,iCAAK,SAAS,EAAC,MAAM,aACnB,0CAAM,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,GAAO,EACnC,gCAAK,SAAS,EAAC,uCAAuC,YAAE,WAAW,GAAO,KAFjD,MAAM,CAAC,KAAK,CAAC,CAGlC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAyB,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE;IAC1D,QAAQ,IAAI,EAAE;QACZ,KAAK,KAAK;YACR,OAAO,CACL,8BACE,SAAS,EAAC,gEAAgE,EAC1E,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,YAE7B,IAAI,GACH,CACL,CAAC;QACJ,KAAK,OAAO;YACV,OAAO,CACL,8BAAG,SAAS,EAAC,8CAA8C,EAAC,IAAI,EAAE,UAAU,IAAI,EAAE,YAC/E,IAAI,GACH,CACL,CAAC;QACJ;YACE,OAAO,2CAAO,IAAI,GAAQ,CAAC;KAC9B;AACH,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC"}
@@ -16,7 +16,7 @@ const getAccordionItems_1 = require("../../utils/getAccordionItems");
16
16
  exports.Footer = (0, uni_jsx_1.JSX)(({ className = '', documents, relatedEnterprises, contacts, socialMedia, context, horizontalNavigationTitle, }) => {
17
17
  const sitemap = (0, useSitemap_1.useSitemap)(context.useAsyncData);
18
18
  const dispositions = sitemap?.dispositions;
19
- return ((0, jsx_runtime_1.jsxs)("footer", { className: `px-4 py-[26px] bg-white ${className}`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), (0, jsx_runtime_1.jsx)(Accordion_1.Accordion, { context: context, className: "!p-0 mb-4", accordionItems: (0, getAccordionItems_1.getAccordionItems)(sitemap.topItems) }), (0, jsx_runtime_1.jsx)("div", { children: dispositions?.map(renderSubMenuItem) }), (0, jsx_runtime_1.jsx)(MobileAppTile_1.MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { context: context, className: "grow" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pb-4", media: socialMedia, context: context }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, context: context })] }));
19
+ return ((0, jsx_runtime_1.jsxs)("footer", { className: `font-sans px-4 py-[26px] bg-white ${className}`, children: [(0, jsx_runtime_1.jsx)(Contacts_1.Contacts, { className: "overflow-hidden", items: contacts, context: context, hasButton: true }), (0, jsx_runtime_1.jsx)(Accordion_1.Accordion, { context: context, className: "!p-0 mb-4", accordionItems: (0, getAccordionItems_1.getAccordionItems)(sitemap.topItems) }), (0, jsx_runtime_1.jsx)("div", { children: dispositions?.map(renderSubMenuItem) }), (0, jsx_runtime_1.jsx)(MobileAppTile_1.MobileAppTile, { context: context, title: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435", description: "\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u043B\u044F IOS \u0438 Android" }), (0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { context: context, className: "grow" }), (0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pb-4", media: socialMedia, context: context }), (0, jsx_runtime_1.jsx)(HorizontalNavigation_1.HorizontalNavigation, { title: horizontalNavigationTitle, links: relatedEnterprises, context: context }), (0, jsx_runtime_1.jsx)(TextInformation_1.TextInformation, { links: documents, context: context })] }));
20
20
  });
21
21
  const renderSubMenuItem = (menu, i) => {
22
22
  const { icon, href, text } = menu;
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,sDAAmD;AACnD,kEAA+D;AAC/D,yCAAsC;AAEtC,iEAA8D;AAC9D,+CAA4C;AAC5C,uDAAoD;AAEpD,kEAA+D;AAC/D,uDAAoD;AACpD,8CAA2C;AAC3C,gEAA6D;AAC7D,qEAAkE;AAIrD,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,SAAS,EACT,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,yBAAyB,GAC1B,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,IAAA,uBAAU,EAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACjD,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,CAAC;IAE3C,OAAO,CACL,oCAAQ,SAAS,EAAE,2BAA2B,SAAS,EAAE,aACvD,uBAAC,mBAAQ,IAAC,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,SAAG,EACrF,uBAAC,qBAAS,IACR,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,WAAW,EACrB,cAAc,EAAE,IAAA,qCAAiB,EAAC,OAAO,CAAC,QAAQ,CAAC,GACnD,EACF,0CAAM,YAAY,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAO,EACjD,uBAAC,6BAAa,IACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EAAC,qHAAsB,EAC5B,WAAW,EAAC,8FAA6B,GACzC,EACF,uBAAC,qBAAS,IAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,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AM,EAAqB,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,aACjF,IAAI,CAAC,CAAC,CAAC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,KAAK,SAAG,CAAC,CAAC,CAAC,IAAI,EACjF,iCAAM,SAAS,EAAC,sCAAsC,YAAE,IAAI,GAAQ,KAF1C,UAAU,CAAC,EAAE,CAGhC,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -7,6 +7,6 @@ const HorizontalNavigationLink_1 = require("./HorizontalNavigationLink");
7
7
  exports.HorizontalNavigation = (0, uni_jsx_1.JSX)(({ title, links, className = '', context }) => {
8
8
  const router = context.useRouter();
9
9
  const { handlerDecorator } = context;
10
- return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-primary-text font-sans font-medium text-sm", children: title }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 pt-3", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink_1.HorizontalNavigationLink, { index: i, className: "font-normal text-sm", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
10
+ return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [(0, jsx_runtime_1.jsx)("span", { className: "text-primary-text font-medium text-sm", children: title }), links?.length ? ((0, jsx_runtime_1.jsx)("div", { className: "flex flex-col gap-2 pt-3", children: links.map((_, i) => ((0, jsx_runtime_1.jsx)(HorizontalNavigationLink_1.HorizontalNavigationLink, { index: i, className: "font-normal text-sm", ...(0, useLink_1.useLink)({ router, handlerDecorator }, _) }, String(i)))) })) : null] }));
11
11
  });
12
12
  //# sourceMappingURL=HorizontalNavigation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,yEAAsE;AAMzD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACvB,iCAAM,SAAS,EAAC,iDAAiD,YAAE,KAAK,GAAQ,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,0BAA0B,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mDAAwB,IAEvB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,qBAAqB,KAC3B,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"HorizontalNavigation.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigation.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iDAA8C;AAG9C,yEAAsE;AAMzD,QAAA,oBAAoB,GAAG,IAAA,aAAG,EACrC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAErC,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACvB,iCAAM,SAAS,EAAC,uCAAuC,YAAE,KAAK,GAAQ,EACrE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,gCAAK,SAAS,EAAC,0BAA0B,YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,uBAAC,mDAAwB,IAEvB,KAAK,EAAE,CAAC,EACR,SAAS,EAAC,qBAAqB,KAC3B,IAAA,iBAAO,EAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,IAHvC,MAAM,CAAC,CAAC,CAAC,CAId,CACH,CAAC,GACE,CACP,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -2,5 +2,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.HorizontalNavigationLink = 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
- exports.HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `font-sans text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
5
+ exports.HorizontalNavigationLink = (0, uni_jsx_1.JSX)(({ className = '', index, text, href, target, onClick }) => ((0, jsx_runtime_1.jsx)("a", { className: `text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` })));
6
6
  //# sourceMappingURL=HorizontalNavigationLink.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HorizontalNavigationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,mFAAmF,SAAS,EAAE,EACzG,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
1
+ {"version":3,"file":"HorizontalNavigationLink.js","sourceRoot":"","sources":["../../../src/components/Footer/HorizontalNavigationLink.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAS3B,QAAA,wBAAwB,GAAG,IAAA,aAAG,EACzC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC1D,8BACE,SAAS,EAAE,yEAAyE,SAAS,EAAE,EAC/F,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,YAEf,IAAI,IAAI,YAAY,KAAK,EAAE,GAC1B,CACL,CACF,CAAC"}
@@ -37,7 +37,7 @@ exports.MediaButton = (0, uni_jsx_1.JSX)(({ href, version = 'primary' }) => {
37
37
  }
38
38
  const classes = version === 'secondary'
39
39
  ? 'bg-secondary-light hover:bg-secondary-hover'
40
- : 'border-main-divider border-solid border-[1px] hover:bg-primary-main';
40
+ : 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
41
41
  const isPrimary = version === 'primary';
42
42
  return ((0, jsx_runtime_1.jsx)("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { image: icon, imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
43
43
  });
@@ -1 +1 @@
1
- {"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