@redneckz/wildless-cms-uni-blocks 0.3.23 → 0.3.26

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 (294) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +30 -51
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/Blocks.mobile.d.ts +1 -0
  5. package/dist/components/Blocks.mobile.js +2 -0
  6. package/dist/components/Blocks.mobile.js.map +1 -1
  7. package/dist/components/ComparisonTable/ComparisonTable.mobile.js +18 -6
  8. package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  9. package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  10. package/dist/components/ContentPage/ContentPage.js.map +1 -1
  11. package/dist/components/Gallery/Gallery.mobile.js +4 -4
  12. package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
  13. package/dist/components/Gallery/GalleryCardInner.js +4 -9
  14. package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  15. package/dist/components/Gallery/GalleryContent.d.ts +3 -2
  16. package/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  17. package/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  18. package/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  19. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  20. package/dist/components/ProductBlock/ProductBlock.mobile.js +7 -5
  21. package/dist/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  22. package/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  23. package/dist/components/ProductBlock/ProductBlockInner.js +2 -2
  24. package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  25. package/dist/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  26. package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  27. package/dist/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  28. package/dist/components/ProductBlock/renderBenefit.mobile.js +1 -1
  29. package/dist/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  30. package/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  31. package/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  32. package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  33. package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  34. package/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  35. package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  36. package/dist/components/TextBlock/TextBlock.mobile.js +1 -1
  37. package/dist/components/TextBlock/TextBlock.mobile.js.map +1 -1
  38. package/dist/components/Tile/Tile.js +1 -1
  39. package/dist/components/Tile/Tile.js.map +1 -1
  40. package/dist/icons/IconName.d.ts +1 -1
  41. package/dist/icons/IconName.js.map +1 -1
  42. package/dist/ui-kit/Icon/Icon.js +2 -1
  43. package/dist/ui-kit/Icon/Icon.js.map +1 -1
  44. package/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  45. package/dist/ui-kit/Img/Img.js +3 -1
  46. package/dist/ui-kit/Img/Img.js.map +1 -1
  47. package/dist/ui-kit/List/List.d.ts +1 -1
  48. package/dist/ui-kit/List/List.js +7 -2
  49. package/dist/ui-kit/List/List.js.map +1 -1
  50. package/dist/ui-kit/List/ListItem.d.ts +1 -1
  51. package/dist/ui-kit/List/ListItem.js +4 -9
  52. package/dist/ui-kit/List/ListItem.js.map +1 -1
  53. package/dist/ui-kit/List/ListProps.d.ts +2 -0
  54. package/lib/common.css +1 -1
  55. package/lib/components/Blocks.mobile.d.ts +1 -0
  56. package/lib/components/Blocks.mobile.js +2 -0
  57. package/lib/components/Blocks.mobile.js.map +1 -1
  58. package/lib/components/ComparisonTable/ComparisonTable.mobile.js +18 -6
  59. package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
  60. package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  61. package/lib/components/ContentPage/ContentPage.js.map +1 -1
  62. package/lib/components/Gallery/Gallery.mobile.js +4 -4
  63. package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
  64. package/lib/components/Gallery/GalleryCardInner.js +4 -9
  65. package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  66. package/lib/components/Gallery/GalleryContent.d.ts +3 -2
  67. package/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  68. package/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  69. package/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  70. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  71. package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +4 -0
  72. package/lib/components/ProductBlock/ProductBlock.mobile.js +7 -5
  73. package/lib/components/ProductBlock/ProductBlock.mobile.js.map +1 -1
  74. package/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  75. package/lib/components/ProductBlock/ProductBlockInner.js +2 -2
  76. package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  77. package/lib/components/ProductBlock/ProductBlockInner.mobile.js +8 -3
  78. package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
  79. package/lib/components/ProductBlock/renderBenefit.mobile.d.ts +2 -1
  80. package/lib/components/ProductBlock/renderBenefit.mobile.js +1 -1
  81. package/lib/components/ProductBlock/renderBenefit.mobile.js.map +1 -1
  82. package/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  83. package/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  84. package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  85. package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  86. package/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  87. package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  88. package/lib/components/TextBlock/TextBlock.mobile.js +1 -1
  89. package/lib/components/TextBlock/TextBlock.mobile.js.map +1 -1
  90. package/lib/components/Tile/Tile.js +1 -1
  91. package/lib/components/Tile/Tile.js.map +1 -1
  92. package/lib/icons/IconName.js.map +1 -1
  93. package/lib/ui-kit/Icon/Icon.js +2 -1
  94. package/lib/ui-kit/Icon/Icon.js.map +1 -1
  95. package/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  96. package/lib/ui-kit/Img/Img.js +3 -1
  97. package/lib/ui-kit/Img/Img.js.map +1 -1
  98. package/lib/ui-kit/List/List.d.ts +1 -1
  99. package/lib/ui-kit/List/List.fixture.d.ts +10 -0
  100. package/lib/ui-kit/List/List.js +7 -2
  101. package/lib/ui-kit/List/List.js.map +1 -1
  102. package/lib/ui-kit/List/ListItem.d.ts +1 -1
  103. package/lib/ui-kit/List/ListItem.js +4 -9
  104. package/lib/ui-kit/List/ListItem.js.map +1 -1
  105. package/lib/ui-kit/List/ListProps.d.ts +2 -0
  106. package/mobile/bundle/bundle.umd.js +74 -75
  107. package/mobile/bundle/bundle.umd.min.js +1 -1
  108. package/mobile/dist/components/Blocks.d.ts +1 -0
  109. package/mobile/dist/components/Blocks.js +2 -0
  110. package/mobile/dist/components/Blocks.js.map +1 -1
  111. package/mobile/dist/components/ComparisonTable/ComparisonTable.js +18 -6
  112. package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
  113. package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  114. package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
  115. package/mobile/dist/components/Gallery/Gallery.js +4 -4
  116. package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
  117. package/mobile/dist/components/Gallery/GalleryCardInner.js +4 -9
  118. package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
  119. package/mobile/dist/components/Gallery/GalleryContent.d.ts +3 -2
  120. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  121. package/mobile/dist/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  122. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +1 -1
  123. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  124. package/mobile/dist/components/ProductBlock/ProductBlock.js +7 -5
  125. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  126. package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  127. package/mobile/dist/components/ProductBlock/ProductBlockInner.js +8 -3
  128. package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
  129. package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +2 -1
  130. package/mobile/dist/components/ProductBlock/renderBenefit.js +1 -1
  131. package/mobile/dist/components/ProductBlock/renderBenefit.js.map +1 -1
  132. package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  133. package/mobile/dist/components/TariffsTable/TariffsTableCell.js +4 -4
  134. package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
  135. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  136. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +4 -2
  137. package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  138. package/mobile/dist/components/TextBlock/TextBlock.js +1 -1
  139. package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
  140. package/mobile/dist/components/Tile/Tile.js +1 -1
  141. package/mobile/dist/components/Tile/Tile.js.map +1 -1
  142. package/mobile/dist/ui-kit/Icon/Icon.js +2 -1
  143. package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
  144. package/mobile/dist/ui-kit/Icon/IconProps.d.ts +2 -2
  145. package/mobile/dist/ui-kit/List/List.d.ts +1 -1
  146. package/mobile/dist/ui-kit/List/List.js +7 -2
  147. package/mobile/dist/ui-kit/List/List.js.map +1 -1
  148. package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -1
  149. package/mobile/dist/ui-kit/List/ListItem.js +4 -9
  150. package/mobile/dist/ui-kit/List/ListItem.js.map +1 -1
  151. package/mobile/dist/ui-kit/List/ListProps.d.ts +2 -0
  152. package/mobile/lib/components/Blocks.d.ts +1 -0
  153. package/mobile/lib/components/Blocks.js +2 -0
  154. package/mobile/lib/components/Blocks.js.map +1 -1
  155. package/mobile/lib/components/ComparisonTable/ComparisonTable.js +18 -6
  156. package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
  157. package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +3 -2
  158. package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
  159. package/mobile/lib/components/Gallery/Gallery.js +4 -4
  160. package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
  161. package/mobile/lib/components/Gallery/GalleryCardInner.js +4 -9
  162. package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
  163. package/mobile/lib/components/Gallery/GalleryContent.d.ts +3 -2
  164. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +3 -9
  165. package/mobile/lib/components/MiniGallery/MiniGalleryContent.d.ts +1 -1
  166. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +1 -1
  167. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  168. package/mobile/lib/components/ProductBlock/ProductBlock.js +7 -5
  169. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  170. package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +4 -0
  171. package/mobile/lib/components/ProductBlock/ProductBlockInner.js +8 -3
  172. package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
  173. package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +2 -1
  174. package/mobile/lib/components/ProductBlock/renderBenefit.js +1 -1
  175. package/mobile/lib/components/ProductBlock/renderBenefit.js.map +1 -1
  176. package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +4 -1
  177. package/mobile/lib/components/TariffsTable/TariffsTableCell.js +4 -4
  178. package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
  179. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
  180. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +4 -2
  181. package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
  182. package/mobile/lib/components/TextBlock/TextBlock.js +1 -1
  183. package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
  184. package/mobile/lib/components/Tile/Tile.js +1 -1
  185. package/mobile/lib/components/Tile/Tile.js.map +1 -1
  186. package/mobile/lib/ui-kit/Icon/Icon.js +2 -1
  187. package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
  188. package/mobile/lib/ui-kit/Icon/IconProps.d.ts +2 -2
  189. package/mobile/lib/ui-kit/List/List.d.ts +1 -1
  190. package/mobile/lib/ui-kit/List/List.js +7 -2
  191. package/mobile/lib/ui-kit/List/List.js.map +1 -1
  192. package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -1
  193. package/mobile/lib/ui-kit/List/ListItem.js +4 -9
  194. package/mobile/lib/ui-kit/List/ListItem.js.map +1 -1
  195. package/mobile/lib/ui-kit/List/ListProps.d.ts +2 -0
  196. package/mobile/src/components/Blocks.ts +2 -0
  197. package/mobile/src/components/ComparisonTable/ComparisonTable.example.json +1 -0
  198. package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +52 -31
  199. package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  200. package/mobile/src/components/ContentPage/ContentPage.tsx +0 -1
  201. package/mobile/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  202. package/mobile/src/components/Gallery/Gallery.example.json +1 -0
  203. package/mobile/src/components/Gallery/Gallery.tsx +5 -4
  204. package/mobile/src/components/Gallery/GalleryCardInner.tsx +13 -18
  205. package/mobile/src/components/Gallery/GalleryContent.ts +3 -2
  206. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  207. package/mobile/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
  208. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
  209. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -0
  210. package/mobile/src/components/ProductBlock/ProductBlock.tsx +17 -12
  211. package/mobile/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  212. package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +25 -5
  213. package/mobile/src/components/ProductBlock/renderBenefit.tsx +2 -1
  214. package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  215. package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  216. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  217. package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  218. package/mobile/src/components/TextBlock/TextBlock.example.json +2 -1
  219. package/mobile/src/components/TextBlock/TextBlock.tsx +2 -2
  220. package/mobile/src/components/Tile/Tile.tsx +3 -1
  221. package/mobile/src/ui-kit/Icon/Icon.tsx +7 -1
  222. package/mobile/src/ui-kit/Icon/IconProps.ts +2 -2
  223. package/mobile/src/ui-kit/List/List.tsx +9 -3
  224. package/mobile/src/ui-kit/List/ListItem.tsx +5 -12
  225. package/mobile/src/ui-kit/List/ListProps.ts +2 -0
  226. package/package.json +1 -1
  227. package/src/components/Blocks.mobile.ts +2 -0
  228. package/src/components/ComparisonTable/ComparisonTable.example.json +1 -0
  229. package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -1
  230. package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +52 -31
  231. package/src/components/ComparisonTable/ComparisonTableContent.ts +3 -2
  232. package/src/components/ContentPage/ContentPage.tsx +0 -1
  233. package/src/components/CreditCalculator/CreditCalculator.example.json +19 -0
  234. package/src/components/Gallery/Gallery.example.json +1 -0
  235. package/src/components/Gallery/Gallery.fixture.mobile.tsx +3 -2
  236. package/src/components/Gallery/Gallery.mobile.tsx +5 -4
  237. package/src/components/Gallery/GalleryCardInner.tsx +13 -18
  238. package/src/components/Gallery/GalleryContent.ts +3 -2
  239. package/src/components/LinkDocs/LinkDocsContent.ts +3 -10
  240. package/src/components/MiniGallery/MiniGalleryContent.ts +1 -1
  241. package/src/components/OtherProducts/OtherProductsItem.tsx +1 -1
  242. package/src/components/ProductBlock/ProductBlock.example.json +1 -0
  243. package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +49 -13
  244. package/src/components/ProductBlock/ProductBlock.mobile.tsx +17 -12
  245. package/src/components/ProductBlock/ProductBlockContent.ts +4 -0
  246. package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +25 -5
  247. package/src/components/ProductBlock/ProductBlockInner.tsx +8 -1
  248. package/src/components/ProductBlock/renderBenefit.mobile.tsx +2 -1
  249. package/src/components/ProductGallery/ProductGalleryContent.ts +4 -1
  250. package/src/components/TariffsTable/TariffsTableCell.tsx +28 -27
  251. package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
  252. package/src/components/TariffsTable/TariffsTableTileCell.tsx +33 -31
  253. package/src/components/TextBlock/TextBlock.example.json +2 -1
  254. package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +8 -0
  255. package/src/components/TextBlock/TextBlock.mobile.tsx +2 -2
  256. package/src/components/Tile/Tile.tsx +3 -1
  257. package/src/icons/IconName.ts +152 -3
  258. package/src/ui-kit/Icon/Icon.tsx +7 -1
  259. package/src/ui-kit/Icon/IconProps.ts +2 -2
  260. package/src/ui-kit/Img/Img.tsx +5 -2
  261. package/src/ui-kit/List/List.fixture.tsx +37 -0
  262. package/src/ui-kit/List/List.tsx +9 -3
  263. package/src/ui-kit/List/ListItem.tsx +5 -12
  264. package/src/ui-kit/List/ListProps.ts +2 -0
  265. package/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  266. package/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  267. package/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  268. package/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  269. package/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  270. package/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  271. package/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  272. package/lib/ui-kit/BlockItem/BlockItem.fixture.d.ts +0 -8
  273. package/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  274. package/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  275. package/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  276. package/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  277. package/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  278. package/mobile/dist/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  279. package/mobile/dist/ui-kit/BlockItem/BlockItem.js +0 -23
  280. package/mobile/dist/ui-kit/BlockItem/BlockItem.js.map +0 -1
  281. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  282. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js +0 -2
  283. package/mobile/dist/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  284. package/mobile/lib/ui-kit/BlockItem/BlockItem.d.ts +0 -2
  285. package/mobile/lib/ui-kit/BlockItem/BlockItem.js +0 -21
  286. package/mobile/lib/ui-kit/BlockItem/BlockItem.js.map +0 -1
  287. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.d.ts +0 -21
  288. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js +0 -2
  289. package/mobile/lib/ui-kit/BlockItem/BlockItemProps.js.map +0 -1
  290. package/mobile/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  291. package/mobile/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
  292. package/src/ui-kit/BlockItem/BlockItem.fixture.tsx +0 -12
  293. package/src/ui-kit/BlockItem/BlockItem.tsx +0 -33
  294. package/src/ui-kit/BlockItem/BlockItemProps.ts +0 -23
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:a})})),c=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}};var s,d;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(d||(d={}));const m={none:"",primary:"text-primary-main"},h=a((({className:e="",name:t,alt:a=`Иконка ${d[t]||t}`,title:l=a,asSVG:i,color:o="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${m[o]} ${e}`,...s,"aria-hidden":"true",children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:a})=>t?r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:p(t)},`${r}_${e}`))):null,x(t,a)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function p(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:i,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:l}),i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:i})})]})})),N=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:y(a,t,r),"aria-hidden":!0},String(a))))}):null})),y=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(i),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:l=14,padding:i=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(I,{gap:l,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const i=l+e,o=r-n,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return d[a-1]=[o,r],d})({gap:l,padding:i,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:x,fraction:p}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);x!==s&&c&&c(),d(x),h(p)},children:a}),n(N,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:o})=>{const{text:c,fileSize:s,...d}=i;return r("a",{className:e,role:"link",...d,children:[o?n(h,{className:t,name:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:l,icon:i="DocIconMonoColor",documents:c,listMode:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:i}):n(D,{context:t,hasBorder:d,documents:c,icon:i})]}))),j=a((({className:e="",title:t,image:a,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(o,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(u,{className:"mr-6",image:a}),l?.length?n("div",{className:"flex flex-col",children:l.map(P)}):null]})]})));function P(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(h,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const M=e=>e?.includes("//"),L=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!M(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var _=Object.freeze({__proto__:null,isURL:M,withoutQuery:L,getOrigin:W});const G="/mobile",B=(e,t)=>{if(!e)return e;const n=W(t?.href);return n?e.replace(n,"")||"/":e},V=e=>e;function E({router:e,handlerDecorator:t=V},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(G);return r&&!M(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!M(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const O=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:F(e),children:[l||null,H(e)?r("div",{children:[n("div",{className:"text-m-2xs text-left",children:a}),n("div",{className:"text-m-button font-medium text-left",children:t})]}):null]})})),F=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-3.5");return["flex items-center justify-center",H(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},H=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),U={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"},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="w-full text-center font-sans select-none",J=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:i,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const x=c??n(O,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${z} ${Z[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${z} inline-block cursor-pointer no-underline ${U[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":h,role:l?"link":"button",...u,children:x})})),q=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(J,e?{appendLeft:n(h,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(E({router:l,handlerDecorator:a},e),t)))}):null}));const K=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Q={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},X={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},Y=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:ee(l)}),n("span",{className:`text-m-md ${Q[l]}`,children:a})]}))),ee=e=>`rounded-full inline-block mr-3 mt-2 ${X[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,te=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:i}=e;return n("section",{className:`${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(Y,{className:r,isDotted:a,version:i,children:e},String(t)))):null})})),ne=a((({className:e="",title:t,children:a,buttons:l,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:a}),l?n("div",{children:l}):null]}),i]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const le=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:c,buttons:s,image:d,items:m,version:u="primary"})=>r("div",{className:`w-full text-primary-text ${e}`,children:[n("div",{children:r(ne,{context:t,title:a&&n(o,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(q,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?n(K,{className:"mt-3 text-m-md",description:i}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(h,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0}),n("div",{className:`font-medium text-m-title-xs m-0 ${re[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ae[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(te,{className:"mt-3",items:m}):null]})}),ie(d)]})));function ie(e){return e?.src?n("div",{className:"mt-5",children:n(u,{image:{className:"block",...e}})}):null}const oe=a((e=>{const{className:t}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${t||""}`,children:n(le,{...e})})})),ce={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"}},se=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:o="",items:c,isDotted:s=!0})=>{const d=ce[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===l?de(d.icon):null,"big"===l?me(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,c?.length?n(te,{className:"mt-1",items:c,isDotted:s,version:-1!==a.indexOf("secondary")?"secondary":"gray"}):null]})]})}));function de(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 me(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const he=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ue(e=""){const t=he(e);return t<=4?"h4":t<=8?"h3":"h2"}function xe(e=""){const t=he(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function pe(e=""){const t=he(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ge={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},be=a((e=>{const{context:t,title:a,description:l,items:i,children:c,buttons:s,image:d,className:m="",version:h="primary",role:x}=e;return n("section",{className:`overflow-hidden font-sans p-9 box-border ${m} ${ge[h]} ${pe(m)} ${xe(m)} `,role:x,children:r(ne,{context:t,title:a&&n(o,{headingType:ue(m),title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:s?.length?n(q,{context:t,buttons:s,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(u,{className:"mt-auto ml-7",image:d}),children:[l&&n(K,{className:"mt-4 max-w-[600px]",description:l}),c,fe(i,h)]})})}));function fe(e,t){return e?.length?n(te,{items:e,version:t}):null}const Ne={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ye=a((({context:e,className:t="",title:a,description:l,benefits:i,buttons:c,image:s,version:d="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${Ne[d]} ${pe(t)} ${xe(t)} `,children:r(ne,{context:e,title:a&&n(o,{headingType:ue(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(q,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:s?.src&&n(u,{className:"mt-auto ml-7",image:s}),children:[l&&n(K,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?n("div",{className:"mr-8",children:i.map(ve)}):null,i?.length?n("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,d)))}):null]})]})})));function ve(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const we={primary:"bg-white",secondary:"bg-primary-main text-white"},Ie=a((({context:e,title:t,description:a,cards:l=[],className:i,isScroll:c=!0})=>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 "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),ke(c,l,e)]})));function ke(e,t,r){return e?n(k,{context:r,children:t?.map(Ce)}):n("div",{className:"grid gap-[14px]",children:t?.map(Ce)})}function Ce(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 ${we[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?$e(e):null,e.items?.length?Se(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(J,{className:"mt-3",appendLeft:a?.icon&&n(h,{name:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function $e(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Se(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const Te=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),De=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Re=a((({className:e,disabled:t,...r})=>n(J,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:n(Te,{paths:De,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),Ae={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},je={normal:3,mini:4},Pe={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Me={normal:380,mini:276},Le={primary:"text-secondary-text",secondary:"text-white",gray:"text-secondary-text"},We={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},_e=a((({className:e="",isDotted:t=!0,text:a,children:l,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Ge(i)}),n("span",{className:Le[i],children:a||l})]}))),Ge=e=>`rounded-full inline-block mr-3 mt-2 ${We[e]} ${"gray"===e?"w-[6px] h-[6px] min-w-[6px] min-h-[6px]":"w-2 h-2 min-w-2 min-h-2"}`,Be=a((({title:e,description:t,image:a,items:l,button:i,version:o})=>{const c=function(e,t,n){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||n?.length?"":"text-center"}\n `}(o,t,l);return r("div",{children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-6",image:a})}):null,e?Ee(e,c):null,t?n("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,l?.length?Oe(l,o):null]}),i?.text?Ve(i):null]})}));function Ve(e){return n(J,{className:"mt-6 w-full",appendLeft:e.icon&&n(h,{name:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ee(e,t){return n("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function Oe(e,t){return n("section",{className:"max-w-[308px] mt-2",role:"list",children:e.filter((e=>e?.text)).map(((e,r)=>function(e,t,r){return n(_e,{version:r??"primary",children:n("span",{className:"text-sm",children:e})},String(t))}(e.text,r,t)))})}const Fe=a((({context:e,title:t,description:a,cards:l=[],version:i="normal",activeCardIndex:c})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(o,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${l?.length<=je[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*Me[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${Pe[t]} ${Ae[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Be,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const He=a((({context:e,cards:t=[],className:a="",version:l="normal",...i})=>{const[o,c]=e.useState(0),s=t?.length>je[l],d=s&&t?.length-o>je[l],m=s&&o>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(Fe,{context:e,cards:t,version:l,activeCardIndex:o,...i}),m&&n(Re,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),d&&n(Re,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),Ue=a((e=>n(He,{...e,version:"mini"}))),Ze=a((({className:e="",documents:t})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ze(t):null})}))),ze=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),Je={Headline:f,LinkDocs:A,TextBlock:se,PictureText:j,ProductBlock:oe,Tile:be,ProductTile:ye,Gallery:Ie,MiniGallery:Ue,LinkList:Ze},qe=({blocks:e,context:t,className:n,columns:r,version:a})=>e?.length?e.map(Ke({context:t,className:n,columns:r,version:a})):null,Ke=({context:e,columns:t,className:r,version:a})=>(l,i)=>{const o=l?.blockListType;if(!o||!(o in Je))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(Je[o],{context:e,...l,blockVersion:a,className:"!p-0"})},`block_${i}`)},Qe=a((({blocks:e,context:t,version:r="primary"})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:qe({context:t,className:"mb-5 last:mb-0 first:mt-2",columns:1,blocks:e,version:r})}))),Xe=a((({label:e,blocks:t,bordered:a,context:l})=>{const{hasContent:i,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0")+" 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:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(i?"group-hover:text-primary-main":""),children:e}),i?n(h,{name:o,width:"24",height:"24",asSVG:!0}):null]}),i?n(Qe,{blocks:t,context:l}):null]})})),Ye=a((({title:e,description:t,accordionItems:a,context:l,className:i="",bordered:c})=>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,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Xe,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),et=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:i})=>r("div",{role:"columnheader",scope:"col",children:[e&&n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&n("div",{className:"mb-3.5",children:n(u,{image:t})}),a&&n(o,{headingType:"h4",className:""+(i?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:l})]}))),tt=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(nt(r,t))})}))),nt=(e,t)=>({label:a,description:l},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:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(i)),rt=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(et,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(tt,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,i&&at({header:e,buttonVersion:s}),lt({onToggleColumn:o,isFillGradient:l,showRow:i})]})})),at=({header:e,buttonVersion:t})=>n(J,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),lt=({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?"Скрыть":"Показать описание"})}),it=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:s=!1,useSwiper:d=!1})=>{const m=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),ot({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},useSwiper:d,setColumnsViewState:u})]})})),ot=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i,useSwiper:o,setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?o?n(k,{context:e,onSlideChange:st(l,c),children:t.map(ct({context:e,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i}))}):t.map(ct({context:e,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i})):null}),ct=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(i,o)=>n(rt,{context:e,visibleRowLength:t,showRow:a[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>l(o)},String(o)),st=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function dt(){try{const e=await fetch(mt);return await e.json()}catch(e){console.error(e)}}const mt="/api/v1/exchangerates.json",ht=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ut=e=>e?ht.format(e):"",xt="text-left font-normal text-sm text-secondary-text",pt={USD:"DollarIcon",EUR:"EuroIcon"},gt=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:xt,children:"Валюта"}),n("th",{className:`${xt} pl-11`,children:"Купить"}),n("th",{className:`${xt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>bt(e)))})]}))),bt=e=>{const t=e?.currency?.currency;return r("tr",{children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(h,{name:pt[t],width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:ut(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11",children:ut(e.saleExchangeRate)})]},t)},ft=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-1.5",children:[t?n("p",{className:"m-0",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Nt=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),yt=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),vt=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),wt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[It("Хочу продать",e),It("Получу",e),n(J,{className:"box-border mt-3.5 py-3 h-12 w-44",version:"primary",href:"#",children:"Купить валюту"})]})));function It(e,t){return r("div",{className:"flex items-center",children:[n(Nt,{className:"h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none",type:"number",placeholder:`${e}`}),t.length?n(yt,{className:"h-9 -translate-x-16",children:t.map(((e,t)=>n(vt,{value:e,children:e},String(t))))}):null]})}const kt=["USD","EUR"],Ct=["RUB","USD","EUR"],$t=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],St={address:"Москва, ул.Ленина д.28",distance:"6км"},Tt=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const l=function(e){const{data:t}=e(mt,dt);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==kt.indexOf(e?.currency?.currency||"")))||$t;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,children:n(ne,{context:t,title:n(o,{headingType:ue(e),title:a,className:"whitespace-pre-wrap mb-3"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-20 pt-3",children:[l?n(gt,{className:"mb-7",exchangeCurrencyItems:l}):null,n(ft,{...St})]}),l?.length?n(wt,{className:"grow",exchangeCurrencyItems:l,codes:Ct}):null]})})})})),Dt=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Rt={"bg-white":"text-primary-main",transparent:"text-white"},At={"bg-white":"text-black",transparent:"text-white"},jt=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(Te,{className:`${Rt[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Dt.map((e=>({d:e})))}),!o&&n("span",{className:`${At[i]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),Pt=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(jt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),Mt=a((({className:e,items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Lt):null,a?n(J,{version:"primary",className:"mt-0.5 mb-5",...E({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Lt=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-3.5",children:[n("div",{children:Wt(a,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:i})]},String(t))},Wt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${_t(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},_t=e=>e.replaceAll(/\D/g,""),Gt=a((({title:e,links:t,className:a="",context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Bt,{index:t,...E({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),Bt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Vt=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],Et=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=Vt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:h&&n(h,{name:t,width:r,height:a,asSVG:!0,className:"block",color:"none"})}):null})),Ot=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Et,{...E({router:a,handlerDecorator:l},e)},String(t))))})})),Ft=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Ht,{index:t,...E({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),Ht=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`})));function Ut(e){const{data:t}=e(zt(),Zt);return t||{}}async function Zt(){const e=await fetch(zt());return await e.json()}function zt(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const Jt=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),l("")},children:n(h,{name:"CloseIcon",width:"24",height:"24"})})]})})),qt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Kt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=Ut(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Mt,{className:"overflow-hidden",items:l,context:o,hasButton:!0}),n(Ye,{context:o,className:"!p-0 mb-4",accordionItems:qt(s.topItems)}),n("div",{children:d?.map(Qt)}),n(Pt,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Jt,{context:o,className:"grow"}),n(Ot,{className:"pb-4",media:i,context:o}),n(Gt,{title:c,links:a,context:o}),n(Ft,{links:t,context:o})]})})),Qt=(e,t)=>{const{icon:a,href:l,text:i}=e;return r(J,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Xt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(L(e),(e=>(e||"").replace(G,""))(L(M(e)?t.href:t.pathname))),Yt=e=>t=>Xt(t.href,e),en=e=>t=>t.items?.some(Yt(e))||Xt(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),tn=e=>t=>e?.href===t?.href,nn=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(tn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(tn(e))))));var n,r,a},rn="absolute left-0 -bottom-3 w-full h-[2px]",an=a((({className:e,text:t,href:a,target:l,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:o,children:[n("span",{className:ln(s,i),children:t||c}),i?n("div",{className:on(s,i)}):null]}))),ln=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},on=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${rn}`:rn,cn=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:i})=>{const[o,c]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(h,{name:"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(sn)}),n(Jt,{context:e,className:"grow"})]})})),sn=(e,t)=>{const{icon:a,href:l,text:i}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},dn=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(jt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),mn=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:i})=>{const o=l.useRouter(),c=Ut(l.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=l,m=nn(c.topItems,i).find(en(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Yt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(m),[u,x]=l.useState(!1),p=()=>x(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(dn,{onClick:p,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>hn({...E({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(cn,{context:l,onClick:p,burgerSubMenu:s,defaultLocation:t,children:n(Ye,{context:l,accordionItems:qt(c.topItems),className:"!p-0 mb-4"})}):null]})})),hn=(e,t)=>n(an,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),un=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",children:n("div",{className:"flex grow",children:n(le,{context:r,headingType:t||"h2",...e})})}))),xn=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(un,{block:e,context:t},String(r))))})})})),pn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},gn=e=>pn[e],bn=a((({className:e,title:t,description:a,steps:l,size:i="normal",version:c="primary"})=>{const s=gn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.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:l.map(((e,t)=>fn({step:e,size:i,i:t,length:l.length,version:c})))})}):null]})})),fn=e=>{const{step:t,size:a,i:l,length:i,version:o}=e,c=i-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",d=gn(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[Nn(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:"flex flex-col justify-start relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},Nn=e=>{const{step:t,size:r,i:a,version:l}=e,i=gn(l),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${"normal"===r?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${i.title} ${c}`,children:t.icon&&n(h,{name:t.icon,width:o,height:o,asSVG:!0})||a+1})})},yn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",name:t,width:"24px",height:"24px"}):null]}))),vn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(yn,{...e}),t?.length?t.map(wn):null]}))),wn=({label:e,description:t,list:a,image:l,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,a?.items?.length?n("div",{className:"flex flex-col justify-between items-start",children:n("div",{role:"list",children:a.items.map(((e,t)=>n(_e,{className:"text-m-sm",text:e,version:"gray",isDotted:a.isDotted??!0},String(t))))})}):null,l&&n(u,{image:{...l,className:"m-0"}}),i?.length?n("div",{children:i.map((({icon:e,rounded:t,...r},a)=>n(J,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,rounded:t,appendLeft:e&&n(h,{name:e,width:"24px",height:"24px",asSVG:!0}),...r,"aria-label":e},String(a))))}):null]},String(o)),In=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(vn,{...e},String(t))))}))),kn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(vn,{...e},String(t))))}))),Cn=a((({className:e,context:t,title:a,description:l,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const d=Sn(i),m=Tn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,m?.length?$n(s,m,t):null]})}));function $n(e,t,r){return"vertical"===e?n(In,{tiles:t}):n(kn,{context:r,tiles:t})}const Sn=e=>e?.[0].data?e[0].data:[],Tn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Dn={Accordion:Ye,ComparisonTable:it,ExchangeRateTile:Tt,Footer:Kt,Gallery:Ie,Header:mn,Headline:f,LinkDocs:A,LinkList:Ze,MobileAppTile:Pt,ProductBlock:oe,ProductGallery:xn,StepsBlock:bn,TariffsTable:Cn,TextBlock:se},Rn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:An()}))),An=()=>{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"})]})},jn=a((({className:e,context:t})=>{const a=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(Rn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Rn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Pn=a((({className:e,context:t,title:a,description:l="Блок в разработке..."})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${pe(e)} ${xe(e)} `,children:r(ne,{context:t,title:a?n(o,{headingType:ue(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(K,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:Mn()})]})}))),Mn=(e=3)=>Wn(100,e).map((e=>Math.floor(e))).map(Ln),Ln=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Wn=(e,t)=>[e].concat(t>0?Wn(e/1.618,t-1):[]),_n=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Gn=a((({className:e,context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=_n})=>{const{header:m}=o;return r("section",{className:`relative ${Vn(l)} ${e||""}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Vn(m?.style)}`,children:m.blocks.map(((e,n)=>Bn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Bn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(jn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function Bn({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||Pn;return t({blockClassName:Vn(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,...r},`${i}-${l}`)}},`block-${l}`)}function Vn(e){return e?e.join(" "):""}const En=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),On(o),Fn(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function On(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function Fn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Hn(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Un(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Dn&&!e.mobile?.hidden)).map(Hn)}e.Blocks=Dn,e.ContentPage=Gn,e.ContentPageHead=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.Header=mn,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");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(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{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:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Un(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Un(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=_,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,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=a((e=>{const{className:t,headingType:r,title:a}=e;if(!r)return;return n(r,{className:`font-sans font-medium m-0 ${i[r]} ${t||""}`,children:a})})),c=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}};var s,m;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(s||(s={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="ArrowDownIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(m||(m={}));const d={none:"",primary:"text-primary-main",secondary:"text-primary-text"},h=a((({className:e="",name:t,alt:a=`Иконка ${m[t]||t}`,title:l=a,asSVG:i,color:o="primary",...s})=>{const h=`${c.CDN||""}icons/${t}.svg`;return i?r("svg",{className:`${d[o]} ${e}`,...s,"aria-hidden":"true",style:"secondary"===o?{filter:"invert(1)"}:null,children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${h}#icon`,xlinkHref:`${h}#icon`})]}):n("img",{className:e,src:h,alt:a,title:l,...s,"aria-hidden":"true"})})),u=a((({className:e="",image:t,imageClassName:a})=>t?r("picture",{className:e,children:[t.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:p(t)},`${r}_${e}`))):null,x(t,a)]}):null)),x=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:l,title:a,style:r,...e.size})};function p(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:l,image:i,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),l&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:l}),i?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(u,{image:i})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:l(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:l=14,padding:i=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(i),gap:`${l}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(i/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:l=14,padding:i=16,showDots:o=!0,onSlideChange:c})=>{const[s,m]=t.useState(0),[d,h]=t.useState(0),u={activeIndex:s,indexFraction:d,showDots:o,children:a};return r("div",{className:e,children:[n(I,{gap:l,padding:i,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,d=o[0].offsetWidth-i/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:l})=>{const i=l+e,o=r-n,c=n-e-t,s=a-2,m=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?o-c:0,t>0?o:c]:[(t-1)*i+c,t*i+c]));return m[a-1]=[o,r],m})({gap:l,padding:i,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:d}),{index:x,fraction:p}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);x!==s&&c&&c(),m(x),h(p)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:o})=>{const{text:c,fileSize:s,...m}=i;return r("a",{className:e,role:"link",...m,children:[o?n(h,{className:t,name:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:l,children:m?.href&&$(S(m.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:l,icon:i="DocIconMonoColor",documents:c,listMode:s="vertical",hasBorder:m=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:l}):null,"vertical"===s?n(R,{hasBorder:m,documents:c,icon:i}):n(D,{context:t,hasBorder:m,documents:c,icon:i})]}))),j=a((({className:e="",title:t,image:a,benefits:l})=>r("section",{className:`relative font-sans text-primary-text bg-white p-14 ${e}`,children:[n(o,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(u,{className:"mr-6",image:a}),l?.length?n("div",{className:"flex flex-col",children:l.map(P)}):null]})]})));function P(e,t){return r("div",{className:"flex flex-row mb-8",children:[e.icon&&n(h,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",name:e.icon,width:"48",height:"48",asSVG:!0}),r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-primary-text text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm text-secondary-text",children:e.description})]})]},String(t))}const L=e=>e?.includes("//"),M=e=>(e||"").replace(/\/?\?.*/,""),V=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var W=Object.freeze({__proto__:null,isURL:L,withoutQuery:M,getOrigin:V});const _="/mobile",G=(e,t)=>{if(!e)return e;const n=V(t?.href);return n?e.replace(n,"")||"/":e},B=e=>e;function E({router:e,handlerDecorator:t=B},n){const r=((e,t)=>{if(!e)return e;const n=G(e,t)||"",r=t?.pathname.startsWith(_);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,ariaLabel:n.text,onClick:t((t=>{const a=r&&!L(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const O=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:F(e),children:[l||null,H(e)?r("div",{children:[n("div",{className:"text-m-2xs text-left",children:a}),n("div",{className:"text-m-button font-medium text-left",children:t})]}):null]})})),F=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-3.5");return["flex items-center justify-center",H(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},H=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),z={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Z="w-full text-center font-sans select-none",J=a((({className:e,text:t,aboveText:r,appendLeft:a,href:l,target:i,onClick:o,children:c,disabled:s,rounded:m,version:d="primary",ariaLabel:h,...u})=>{const x=c??n(O,{text:t,aboveText:r,appendLeft:a,rounded:m,version:d});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${Z} ${U[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,children:x}):n("a",{className:`${Z} inline-block cursor-pointer no-underline ${z[d]||""} ${m?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":h,role:l?"link":"button",...u,children:x})})),q=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(J,e?{appendLeft:n(h,{name:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(E({router:l,handlerDecorator:a},e),t)))}):null}));const K=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Q={primary:"bg-primary-main",secondary:"bg-white",gray:"bg-secondary-text"},X=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Y(l)}),n("span",{children:a})]}))),Y=e=>`rounded-full inline-block mr-3 mt-2 ${Q[e]} ${"gray"===e?"w-1.5 h-1.5 min-w-1.5 min-h-1.5":"w-2 h-2 min-w-2 min-h-2"}`,ee={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},te=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:i="primary"}=e;return n("section",{className:`${ee[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(X,{className:r,isDotted:a,version:i,children:e},String(t)))):null})})),ne=a((({className:e="",title:t,children:a,buttons:l,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:a}),l?n("div",{children:l}):null]}),i]})]}))),re={primary:"text-primary-text",secondary:"text-white"},ae={primary:"text-secondary-text",secondary:"text-white"};const le=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:c,buttons:s,image:m,items:d,version:u="primary",isDotted:x=!0,label:p})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[p?ce(p,u):null,r(ne,{context:t,title:a&&n(o,{headingType:l,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(q,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[i?n(K,{className:"mt-3 text-m-md",description:i}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon&&n(h,{className:"w-6 h-6 rounded-full box-border",name:e.icon,width:"24",height:"24",asSVG:!0,color:a}),n("div",{className:`font-medium text-m-title-xs m-0 ${re[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${ae[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,d?.length?n(te,{className:"mt-3 text-m-md",items:d,version:u,isDotted:x}):null]})]}),ie(m)]})));function ie(e){return e?.src?n(u,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const oe={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},ce=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 w-fit ${oe[t]}`,children:e}),se={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},me=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${se[r]} ${t}`,children:n(le,{...e})})})),de={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},he=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:o="",items:c,isDotted:s=!0})=>{const m=de[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${m.background} ${o}`,children:["small"===l?ue(m.icon):null,"big"===l?xe(i):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${m.title}`,children:e}):null,t?n("div",{className:`text-sm ${m.description}`,children:t}):null,c?.length?n(te,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function ue(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function xe(e){return e?.src?n(u,{className:"pb-3 mr-auto",image:e}):null}const pe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ge(e=""){const t=pe(e);return t<=4?"h4":t<=8?"h3":"h2"}function be(e=""){const t=pe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function fe(e=""){const t=pe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const ye={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ne=a((e=>{const{context:t,title:a,description:l,items:i,children:c,buttons:s,image:m,className:d="",version:h="primary",role:x}=e;return n("section",{className:`overflow-hidden font-sans p-9 box-border ${d} ${ye[h]} ${fe(d)} ${be(d)} `,role:x,children:r(ne,{context:t,title:a&&n(o,{headingType:ge(d),title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:s?.length?n(q,{context:t,buttons:s,className:"flex mt-9 gap-3"}):null,image:m?.src&&n(u,{className:"mt-auto ml-7",image:m}),children:[l&&n(K,{className:"mt-4 max-w-[600px]",description:l}),c,ve(i,h)]})})}));function ve(e,t){return e?.length?n(te,{items:e,itemClassName:"mt-2.5 first:mt-0",version:t}):null}const we={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ie=a((({context:e,className:t="",title:a,description:l,benefits:i,buttons:c,image:s,version:m="primary"})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${we[m]} ${fe(t)} ${be(t)} `,children:r(ne,{context:e,title:a&&n(o,{headingType:ge(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:c?.length?n(q,{context:e,buttons:c,className:"flex mt-9 gap-3"}):null,image:s?.src&&n(u,{className:"mt-auto ml-7",image:s}),children:[l&&n(K,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?n("div",{className:"mr-8",children:i.map(ke)}):null,i?.length?n("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,m)))}):null]})]})})));function ke(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const Ce={primary:"bg-white",secondary:"bg-primary-main text-white"},$e=a((({context:e,title:t,description:a,cards:l=[],className:i,orientation:c="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 "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),Se(c,l,e)]})));function Se(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(Te)}):n("div",{className:"grid gap-[14px]",children:t?.map(Te)})}function Te(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 ${Ce[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?De(e):null,e.items?.length?Re(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(J,{className:"mt-3",appendLeft:a?.icon&&n(h,{name:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function De(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Re(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ae=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),je=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Pe=a((({className:e,disabled:t,...r})=>n(J,{rounded:!0,className:`shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...r,children:n(Ae,{paths:je,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),Le={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Me={normal:3,mini:4},Ve={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},We={normal:380,mini:276},_e=a((({title:e,description:t,image:a,items:l,button:i,version:o})=>{const c=function(e,t,n){return`font-medium text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n ${t||n?.length?"":"text-center"}\n `}(o,t,l);return r("div",{className:"h-full flex flex-col justify-between",children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-6",image:a})}):null,e?Be(e,c):null,t?n("div",{className:"font-normal text-sm "+(e?"mt-2":""),children:t}):null,l?.length?Ee(l,o):null]}),i?.text?Ge(i):null]})}));function Ge(e){return n(J,{className:"mt-6 w-full",appendLeft:e.icon&&n(h,{name:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Be(e,t){return n("div",{className:`font-medium text-xl m-0 ${t}`,children:e})}function Ee(e,t="primary"){return n(te,{className:"max-w-[308px] mt-2 text-sm "+("primary"===t?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),version:t})}const Oe=a((({context:e,title:t,description:a,cards:l=[],version:i="normal",activeCardIndex:c})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(o,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-normal text-base max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${l?.length<=Me[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${c*We[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border rounded-md border-main-divider p-7 mx-2 flex flex-col justify-between\n items-stretch ${Ve[t]} ${Le[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(_e,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const Fe=a((({context:e,cards:t=[],className:a="",version:l="normal",...i})=>{const[o,c]=e.useState(0),s=t?.length>Me[l],m=s&&t?.length-o>Me[l],d=s&&o>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[50px] overflow-hidden ${a}`,children:[n(Oe,{context:e,cards:t,version:l,activeCardIndex:o,...i}),d&&n(Pe,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),m&&n(Pe,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),He=a((e=>n(Fe,{...e,version:"mini"}))),ze=a((({className:e="",documents:t})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?Ue(t):null})}))),Ue=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),Ze={Headline:f,LinkDocs:A,TextBlock:he,PictureText:j,ProductBlock:me,Tile:Ne,ProductTile:Ie,Gallery:$e,MiniGallery:He,LinkList:ze},Je=({blocks:e,context:t,className:n,columns:r,version:a})=>e?.length?e.map(qe({context:t,className:n,columns:r,version:a})):null,qe=({context:e,columns:t,className:r,version:a})=>(l,i)=>{const o=l?.blockListType;if(!o||!(o in Ze))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(Ze[o],{context:e,...l,blockVersion:a,className:"!p-0"})},`block_${i}`)},Ke=a((({blocks:e,context:t,version:r="primary"})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Je({context:t,className:"mb-5 last:mb-0 first:mt-2",columns:1,blocks:e,version:r})}))),Qe=a((({label:e,blocks:t,bordered:a,context:l})=>{const{hasContent:i,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:t});return r("li",{className:(a?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0")+" 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:[n("span",{className:"text-m-title-xs pr-2.5 font-medium "+(i?"group-hover:text-primary-main":""),children:e}),i?n(h,{name:o,width:"24",height:"24",asSVG:!0}):null]}),i?n(Ke,{blocks:t,context:l}):null]})})),Xe=a((({title:e,description:t,accordionItems:a,context:l,className:i="",bordered:c})=>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,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Qe,{...e,context:l,bordered:c},`AccordionItem${t}`)))}):null]}))),Ye=a((({icon:e,image:t,title:a,subtitle:l,isFillGradient:i})=>r("div",{role:"columnheader",scope:"col",children:[e&&n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",name:e,width:"63",height:"63"}),t?.src&&n("div",{className:"mb-3.5",children:n(u,{image:t})}),a&&n(o,{headingType:"h4",className:""+(i?"text-white":""),title:a}),l&&n("div",{className:"text-m-sm mb-3.5 "+(i?"text-white":"text-secondary-text/80"),children:l})]}))),et=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(tt(r,t))})}))),tt=(e,t)=>({label:a,description:l},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:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),l&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l})]})]},String(i)),nt=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:l,showRow:i,onToggleColumn:o})=>{const c=t?.slice(0,i?t.length:a),s=l?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(Ye,{...e,isFillGradient:l}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(et,{cell:t,rowHeader:e,isFillGradient:l},String(r)))):null,i&&rt({header:e,buttonVersion:s}),at({onToggleColumn:o,isFillGradient:l,showRow:i})]})})),rt=({header:e,buttonVersion:t})=>n(J,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),at=({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?"Скрыть":"Показать описание"})}),lt=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:m="horizontal"})=>{const d=i?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(i?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),it({tableData:d,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:m,setColumnsViewState:u})]})})),it=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:l,handleToggleColumn:i,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?ot({orientation:o,context:e,columnsViewState:l,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:i}):null}),ot=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:l,visibleRowLength:i,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?l.map(ct({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})):n(k,{context:t,onSlideChange:st(r,a),children:l.map(ct({context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}),ct=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:l})=>(i,o)=>n(nt,{context:e,visibleRowLength:t,showRow:a[o],header:i.header,columnData:i.column,isFillGradient:0===o&&r,onToggleColumn:()=>l(o)},String(o)),st=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function mt(){try{const e=await fetch(dt);return await e.json()}catch(e){console.error(e)}}const dt="/api/v1/exchangerates.json",ht=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),ut=e=>e?ht.format(e):"",xt="text-left font-normal text-sm text-secondary-text",pt={USD:"DollarIcon",EUR:"EuroIcon"},gt=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:xt,children:"Валюта"}),n("th",{className:`${xt} pl-11`,children:"Купить"}),n("th",{className:`${xt} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>bt(e)))})]}))),bt=e=>{const t=e?.currency?.currency;return r("tr",{children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(h,{name:pt[t],width:"24",height:"24"}):null,n("span",{className:"ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11",children:ut(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11",children:ut(e.saleExchangeRate)})]},t)},ft=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",name:"GpsIcon",width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-1.5",children:[t?n("p",{className:"m-0",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),yt=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Nt=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),vt=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),wt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[It("Хочу продать",e),It("Получу",e),n(J,{className:"box-border mt-3.5 py-3 h-12 w-44",version:"primary",href:"#",children:"Купить валюту"})]})));function It(e,t){return r("div",{className:"flex items-center",children:[n(yt,{className:"h-10 border pl-2.5 rounded-md text-m-sm w-full appearance-none",type:"number",placeholder:`${e}`}),t.length?n(Nt,{className:"h-9 -translate-x-16",children:t.map(((e,t)=>n(vt,{value:e,children:e},String(t))))}):null]})}const kt=["USD","EUR"],Ct=["RUB","USD","EUR"],$t=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],St={address:"Москва, ул.Ленина д.28",distance:"6км"},Tt=a((({className:e="",context:t,title:a="Курсы обмена валют"})=>{const l=function(e){const{data:t}=e(dt,mt);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==kt.indexOf(e?.currency?.currency||"")))||$t;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,children:n(ne,{context:t,title:n(o,{headingType:ge(e),title:a,className:"whitespace-pre-wrap mb-3"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-20 pt-3",children:[l?n(gt,{className:"mb-7",exchangeCurrencyItems:l}):null,n(ft,{...St})]}),l?.length?n(wt,{className:"grow",exchangeCurrencyItems:l,codes:Ct}):null]})})})})),Dt=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],Rt={"bg-white":"text-primary-main",transparent:"text-white"},At={"bg-white":"text-black",transparent:"text-white"},jt=a((({className:e="",href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(Ae,{className:`${Rt[i]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:Dt.map((e=>({d:e})))}),!o&&n("span",{className:`${At[i]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),Pt=a((({className:e,title:t="Мобильное приложение",description:a,href:l="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:l?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(jt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:l,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),Lt=a((({className:e,items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:`flex flex-col ${e||""}`,children:[t?.length?t.map(Mt):null,a?n(J,{version:"primary",className:"mt-0.5 mb-5",...E({router:i,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Mt=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-3.5",children:[n("div",{children:Vt(a,l)}),n("div",{className:"font-sans text-sm text-secondary-text",children:i})]},String(t))},Vt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`tel:${Wt(t)}`,children:t});case"email":return n("a",{className:"font-sans font-medium text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Wt=e=>e.replaceAll(/\D/g,""),_t=a((({title:e,links:t,className:a="",context:l})=>{const i=l.useRouter(),{handlerDecorator:o}=l;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(Gt,{index:t,...E({router:i,handlerDecorator:o},e)},String(t))))}):null]})})),Gt=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Bt=[{origins:["t.me","telegram.org"],icon:"TelegramIcon",label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:"VKIcon",label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:"OkIcon",label:"Одноклассники",width:"12px",height:"20px"}],Et=a((({href:e})=>{const{icon:t,width:r,height:a,label:l}=Bt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};return t?n("a",{className:"flex items-center justify-center border border-solid border-main-divider rounded-full no-underline outline-none w-[38px] h-[38px] hover:text-primary-main",href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:h&&n(h,{name:t,width:r,height:a,asSVG:!0,className:"block",color:"none"})}):null})),Ot=a((({className:e,media:t,context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Et,{...E({router:a,handlerDecorator:l},e)},String(t))))})})),Ft=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(Ht,{index:t,...E({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),Ht=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`})));function zt(e){const{data:t}=e(Zt(),Ut);return t||{}}async function Ut(){const e=await fetch(Zt());return await e.json()}function Zt(){return`/wcms-resources/${c.SITEMAP||"sitemap"}.json`}const Jt=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{name:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),l("")},children:n(h,{name:"CloseIcon",width:"24",height:"24"})})]})})),qt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Kt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,context:o,horizontalNavigationTitle:c})=>{const s=zt(o.useAsyncData),m=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(Lt,{className:"overflow-hidden",items:l,context:o,hasButton:!0}),n(Xe,{context:o,className:"!p-0 mb-4",accordionItems:qt(s.topItems)}),n("div",{children:m?.map(Qt)}),n(Pt,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(Jt,{context:o,className:"grow"}),n(Ot,{className:"pb-4",media:i,context:o}),n(_t,{title:c,links:a,context:o}),n(Ft,{links:t,context:o})]})})),Qt=(e,t)=>{const{icon:a,href:l,text:i}=e;return r(J,{version:"link",href:l,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:i})]},`footer-${t}`)},Xt=(e,t,n=((e,t)=>t.startsWith(e)))=>n(M(e),(e=>(e||"").replace(_,""))(M(L(e)?t.href:t.pathname))),Yt=e=>t=>Xt(t.href,e),en=e=>t=>t.items?.some(Yt(e))||Xt(t.href,e)||((e,t)=>V(e)===V(t.href))(t.href,e),tn=e=>t=>e?.href===t?.href,nn=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(tn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(tn(e))))));var n,r,a},rn="absolute left-0 -bottom-3 w-full h-[2px]",an=a((({className:e,text:t,href:a,target:l,active:i,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:l,onClick:o,children:[n("span",{className:ln(s,i),children:t||c}),i?n("div",{className:on(s,i)}):null]}))),ln=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},on=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${rn}`:rn,cn=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:l="",children:i})=>{const[o,c]=e.useGeolocation(l);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{name:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(h,{name:"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(sn)}),n(Jt,{context:e,className:"grow"})]})})),sn=(e,t)=>{const{icon:a,href:l,text:i}=e;return r("a",{href:l,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",name:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:i})]},`headerSubMenu-${t}`)},mn=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{name:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",width:"24",height:"24",asSVG:!0})}),n(jt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),dn=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:l,topItems:i})=>{const o=l.useRouter(),c=zt(l.useAsyncData),s=c?.dispositions,{handlerDecorator:m}=l,d=nn(c.topItems,i).find(en(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Yt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(d),[u,x]=l.useState(!1),p=()=>x(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(mn,{onClick:p,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:d?.map(((e,t)=>hn({...E({router:o,handlerDecorator:m},e),active:e===h,bgColor:a},t)))})})]}),u?n(cn,{context:l,onClick:p,burgerSubMenu:s,defaultLocation:t,children:n(Xe,{context:l,accordionItems:qt(c.topItems),className:"!p-0 mb-4"})}):null]})})),hn=(e,t)=>n(an,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t)),un=a((({className:e,context:t,title:a,description:l="Блок в разработке..."})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${fe(e)} ${be(e)} `,children:r(ne,{context:t,title:a?n(o,{headingType:ge(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(K,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:xn()})]})}))),xn=(e=3)=>gn(100,e).map((e=>Math.floor(e))).map(pn),pn=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),gn=(e,t)=>[e].concat(t>0?gn(e/1.618,t-1):[]),bn=a((({block:e,headingType:t,context:r})=>n("section",{className:"flex grow-0 shrink-0 basis-full px-4 pt-6",children:n("div",{className:"flex grow",children:n(le,{context:r,headingType:t||"h2",...e})})}))),fn=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(bn,{block:e,context:t},String(r))))})})})),yn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Nn=e=>yn[e],vn=a((({className:e,title:t,description:a,steps:l,size:i="normal",version:c="primary"})=>{const s=Nn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),l?.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:l.map(((e,t)=>wn({step:e,size:i,i:t,length:l.length,version:c})))})}):null]})})),wn=e=>{const{step:t,size:a,i:l,length:i,version:o}=e,c=i-1===l,s="normal"===a?"ml-[34px]":"ml-[24px]",m=Nn(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[In(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${m.iconConnector} ${s}`})]}),r("div",{className:"flex flex-col justify-start relative",children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${m.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(l))},String(l))},In=e=>{const{step:t,size:r,i:a,version:l}=e,i=Nn(l),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${"normal"===r?"h-[70px] w-[70px] min-w-[70px] min-h-[70px]":"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"} ${i.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${i.title} ${c}`,children:t.icon&&n(h,{name:t.icon,width:o,height:o,asSVG:!0})||a+1})})},kn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",name:t,width:"24px",height:"24px"}):null]}))),Cn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(kn,{...e}),t?.length?t.map($n):null]}))),$n=({label:e,description:t,list:a,image:l,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,a?.items?.length?Sn(a):null,l&&n(u,{image:{...l,className:"m-0"}}),i?.length?Tn(i):null]},String(o)),Sn=e=>n(te,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Tn=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(J,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,rounded:t,appendLeft:e&&n(h,{name:e,width:"24px",height:"24px",asSVG:!0}),...r,"aria-label":e},String(a))))}),Dn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(Cn,{...e},String(t))))}))),Rn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(Cn,{...e},String(t))))}))),An=a((({className:e,context:t,title:a,description:l,columns:i,rowHeaders:c,orientation:s="vertical"})=>{const m=Pn(i),d=Ln(c,m);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(l?"mb-2":"mb-5"),title:a}):null,l?n("div",{className:"mb-5 text-center text-m-md",children:l}):null,d?.length?jn(s,d,t):null]})}));function jn(e,t,r){return"vertical"===e?n(Dn,{tiles:t}):n(Rn,{context:r,tiles:t})}const Pn=e=>e?.[0].data?e[0].data:[],Ln=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Mn={Accordion:Xe,ComparisonTable:lt,ExchangeRateTile:Tt,Footer:Kt,Gallery:$e,Header:dn,Headline:f,LinkDocs:A,LinkList:ze,MobileAppTile:Pt,ProductBlock:me,ProductGallery:fn,StepsBlock:vn,TariffsTable:An,TextBlock:he,Placeholder:un},Vn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Wn()}))),Wn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),n("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},_n=a((({className:e,context:t})=>{const a=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,children:[n(Vn,{onClick:a.like,ariaLabel:"Поставить отметку «лайк»"}),n(Vn,{onClick:a.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:a.likeCount})]})})),Gn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Bn=a((({className:e,context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:m=Gn})=>{const{header:d}=o;return r("section",{className:`relative ${On(l)} ${e||""}`,"data-theme":s,children:[d?.blocks?.length?n("div",{className:`${On(d?.style)}`,children:d.blocks.map(((e,n)=>En({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>En({block:e,blockDecorator:m,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(_n,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t})})]})}));function En({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const o=r[i||"Placeholder"]||un;return t({blockClassName:On(e.style),block:e,render:e=>{const{version:t,content:r}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,...r},`${i}-${l}`)}},`block-${l}`)}function On(e){return e?e.join(" "):""}const Fn=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:o,twitter:c,jsonLd:s}=t,{description:m,keywords:d,canonical:h,robots:u}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),m&&n("meta",{name:"description",content:m}),d&&n("meta",{name:"keywords",content:d.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Hn(o),zn(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function Hn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function zn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Un(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Zn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Mn&&!e.mobile?.hidden)).map(Un)}e.Blocks=Mn,e.ContentPage=Bn,e.ContentPageHead=Fn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.Header=dn,e.Icon=h,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");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(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{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:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{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.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Zn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Zn(n[t].blocks)}})),{})}},e.projectSettings=c,e.setup=t,e.url=W,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -14,4 +14,5 @@ export declare const Blocks: {
14
14
  StepsBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./StepsBlock/StepsBlock").StepsBlockProps, any>, context?: any) => any;
15
15
  TariffsTable: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TariffsTable/TariffsTable").TariffsTableProps, any>, context?: any) => any;
16
16
  TextBlock: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./TextBlock/TextBlock").TextBlockProps, any>, context?: any) => any;
17
+ Placeholder: (props: import("@redneckz/uni-jsx").PropsWithChildren<import("./Placeholder/Placeholder").PlaceholderProps, any>, context?: any) => any;
17
18
  };
@@ -10,6 +10,7 @@ const Headline_1 = require("./Headline/Headline");
10
10
  const LinkDocs_1 = require("./LinkDocs/LinkDocs");
11
11
  const LinkList_1 = require("./LinkList/LinkList");
12
12
  const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
13
+ const Placeholder_1 = require("./Placeholder/Placeholder");
13
14
  const ProductBlock_1 = require("./ProductBlock/ProductBlock");
14
15
  const ProductGallery_1 = require("./ProductGallery/ProductGallery");
15
16
  const StepsBlock_1 = require("./StepsBlock/StepsBlock");
@@ -31,5 +32,6 @@ exports.Blocks = {
31
32
  StepsBlock: StepsBlock_1.StepsBlock,
32
33
  TariffsTable: TariffsTable_1.TariffsTable,
33
34
  TextBlock: TextBlock_1.TextBlock,
35
+ Placeholder: Placeholder_1.Placeholder,
34
36
  };
35
37
  //# sourceMappingURL=Blocks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,uEAAoE;AACpE,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,eAAe,EAAf,iCAAe;IACf,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;CACV,CAAC"}
1
+ {"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AAAA,qDAAkD;AAClD,uEAAoE;AACpE,0EAAuE;AACvE,4CAAyC;AACzC,+CAA4C;AAC5C,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAErC,QAAA,MAAM,GAAG;IACpB,SAAS,EAAT,qBAAS;IACT,eAAe,EAAf,iCAAe;IACf,gBAAgB,EAAhB,mCAAgB;IAChB,MAAM,EAAN,eAAM;IACN,OAAO,EAAP,iBAAO;IACP,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,YAAY,EAAZ,2BAAY;IACZ,cAAc,EAAd,+BAAc;IACd,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,WAAW,EAAX,yBAAW;CACZ,CAAC"}
@@ -5,7 +5,7 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const Heading_1 = require("../../ui-kit/Heading/Heading");
6
6
  const SwipeListControl_1 = require("../../ui-kit/SwipeListControl/SwipeListControl");
7
7
  const TableColumn_1 = require("./TableColumn");
8
- exports.ComparisonTable = (0, uni_jsx_1.JSX)(({ className, context, title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, useSwiper = false, }) => {
8
+ exports.ComparisonTable = (0, uni_jsx_1.JSX)(({ className, context, title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, orientation = 'horizontal', }) => {
9
9
  const tableData = columns?.map(({ data, header }) => ({
10
10
  header,
11
11
  column: data?.map((cell, i) => ({ cell, rowHeader: rowHeaders?.[i]?.title })),
@@ -22,23 +22,35 @@ exports.ComparisonTable = (0, uni_jsx_1.JSX)(({ className, context, title, rowHe
22
22
  isColoredFirstColumn,
23
23
  columnsViewState,
24
24
  handleToggleColumn,
25
- useSwiper,
25
+ orientation,
26
26
  setColumnsViewState,
27
27
  })] }));
28
28
  });
29
- const renderColumns = ({ context, tableData, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn, useSwiper, setColumnsViewState, }) => ((0, jsx_runtime_1.jsx)("div", { role: "table", children: tableData?.length ? (useSwiper ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, onSlideChange: onSlideChange(columnsViewState, setColumnsViewState), children: tableData.map(renderColumn({
29
+ const renderColumns = ({ context, tableData, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn, orientation = 'horizontal', setColumnsViewState, }) => ((0, jsx_runtime_1.jsx)("div", { role: "table", children: tableData?.length
30
+ ? renderInnerTable({
31
+ orientation,
30
32
  context,
33
+ columnsViewState,
34
+ setColumnsViewState,
35
+ tableData,
31
36
  visibleRowLength,
32
37
  isColoredFirstColumn,
33
- columnsViewState,
34
38
  handleToggleColumn,
35
- })) })) : (tableData.map(renderColumn({
39
+ })
40
+ : null }));
41
+ const renderInnerTable = ({ orientation, context, columnsViewState, setColumnsViewState, tableData, visibleRowLength, isColoredFirstColumn, handleToggleColumn, }) => orientation === 'horizontal' ? (tableData.map(renderColumn({
42
+ context,
43
+ visibleRowLength,
44
+ isColoredFirstColumn,
45
+ columnsViewState,
46
+ handleToggleColumn,
47
+ }))) : ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, onSlideChange: onSlideChange(columnsViewState, setColumnsViewState), children: tableData.map(renderColumn({
36
48
  context,
37
49
  visibleRowLength,
38
50
  isColoredFirstColumn,
39
51
  columnsViewState,
40
52
  handleToggleColumn,
41
- })))) : null }));
53
+ })) }));
42
54
  const renderColumn = ({ context, visibleRowLength, isColoredFirstColumn, columnsViewState, handleToggleColumn }) => (columnData, i) => ((0, jsx_runtime_1.jsx)(TableColumn_1.TableColumn, { context: context, visibleRowLength: visibleRowLength, showRow: columnsViewState[i], header: columnData.header, columnData: columnData.column, isFillGradient: i === 0 && isColoredFirstColumn, onToggleColumn: () => handleToggleColumn(i) }, String(i)));
43
55
  const onSlideChange = (columnsViewState, setColumnsViewState) => () => {
44
56
  setColumnsViewState(new Array(columnsViewState.length).fill(false));
@@ -1 +1 @@
1
- {"version":3,"file":"ComparisonTable.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/ComparisonTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,qFAAkF;AAElF,+CAA4C;AAI/B,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT,OAAO,EACP,KAAK,EACL,UAAU,EACV,OAAO,EACP,gBAAgB,GAAG,CAAC,EACpB,oBAAoB,GAAG,KAAK,EAC5B,SAAS,GAAG,KAAK,GAClB,EAAE,EAAE;IACH,MAAM,SAAS,GACb,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM;QACN,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC,CAAC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,OAAO;YACP,gBAAgB;YAChB,oBAAoB;YACpB,gBAAgB;YAChB,kBAAkB;SACnB,CAAC,CACH,GACgB,CACpB,CAAC,CAAC,CAAC,CACF,SAAS,CAAC,GAAG,CACX,YAAY,CAAC;QACX,OAAO;QACP,gBAAgB;QAChB,oBAAoB;QACpB,gBAAgB;QAChB,kBAAkB;KACnB,CAAC,CACH,CACF,CACF,CAAC,CAAC,CAAC,IAAI,GACJ,CACP,CAAC;AAEF,MAAM,YAAY,GAChB,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,EAAE,EAAE,CAC9F,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAChB,CACE,uBAAC,yBAAW,IAEV,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC5B,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,UAAU,EAAE,UAAU,CAAC,MAAM,EAC7B,cAAc,EAAE,CAAC,KAAK,CAAC,IAAI,oBAAoB,EAC/C,cAAc,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAPtC,MAAM,CAAC,CAAC,CAAC,CAQd,CACH,CAAC;AAEN,MAAM,aAAa,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,EAAE,CAAC,GAAG,EAAE;IACpE,mBAAmB,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
1
+ {"version":3,"file":"ComparisonTable.js","sourceRoot":"","sources":["../../../src/components/ComparisonTable/ComparisonTable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AACvD,qFAAkF;AAElF,+CAA4C;AAI/B,QAAA,eAAe,GAAG,IAAA,aAAG,EAChC,CAAC,EACC,SAAS,EACT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gB,EAClC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC5B,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,UAAU,EAAE,UAAU,CAAC,MAAM,EAC7B,cAAc,EAAE,CAAC,KAAK,CAAC,IAAI,oBAAoB,EAC/C,cAAc,EAAE,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAPtC,MAAM,CAAC,CAAC,CAAC,CAQd,CACH,CAAC;AAEN,MAAM,aAAa,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,EAAE,CAAC,GAAG,EAAE;IACpE,mBAAmB,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { LinkProps } from '../../model/LinkProps';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { IconName } from '../../ui-kit/Icon/IconProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
  /**
5
6
  * @hidden
6
7
  */
@@ -73,6 +74,6 @@ export interface ComparisonTableContent {
73
74
  isColoredFirstColumn?: boolean;
74
75
  /** @title Отображать заданное количество строк */
75
76
  visibleRowLength?: number;
76
- /** @title Использовать свайпер (моб.) */
77
- useSwiper?: boolean;
77
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
78
+ orientation?: ListOrientation;
78
79
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/ContentPage.tsx"],"names":[],"mappings":";;;AAAA,+CAA2D;AAG3D,4DAAyD;AACzD,4DAAyD;AAkCzD,MAAM,qBAAqB,GAAmB,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAClF,MAAM,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;AAEvB,QAAA,WAAW,GAAG,IAA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I,EAAE,GAAG,KAAK,CAAC;IACvB,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,IAAI,cAAc,CAAC,EAAE;QACrC,OAAO,CAAC,IAAI,CAAC,kBAAkB,IAAI,iBAAiB,CAAC,CAAC;KACvD;IACD,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,yBAAW,CAAC;IAC5E,OAAO,cAAc,CACnB;QACE,cAAc,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC;QAC5C,KAAK;QACL,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;YACzC,OAAO,CACL,uBAAC,cAAc,IAEb,SAAS,EAAE,KAAK,CAAC,cAAc,EAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,KACZ,OAAO,IAJN,GAAG,IAAI,IAAI,CAAC,EAAE,CAKnB,CACH,CAAC;QACJ,CAAC;KACF,EACD,SAAS,CAAC,EAAE,CACb,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAAkC;IACzD,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACtC,CAAC"}
@@ -11,11 +11,11 @@ const blockStyle = {
11
11
  primary: 'bg-white',
12
12
  secondary: 'bg-primary-main text-white',
13
13
  };
14
- exports.Gallery = (0, uni_jsx_1.JSX)(({ context, title, description, cards = [], className, isScroll = true }) => {
15
- return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(isScroll, cards, context)] }));
14
+ exports.Gallery = (0, uni_jsx_1.JSX)(({ context, title, description, cards = [], className, orientation = 'horizontal' }) => {
15
+ return ((0, jsx_runtime_1.jsxs)("section", { className: `relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${className}`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center mb-5", children: [title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2' : 'mb-5'}`, title: title })) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: "font-normal text-m-md max-w-[600px] text-center mb-5", children: description })) : null] }), renderCardsLayout(orientation, cards, context)] }));
16
16
  });
17
- function renderCardsLayout(isScroll, cards, context) {
18
- return isScroll ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, children: cards?.map(renderCard) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
17
+ function renderCardsLayout(orientation, cards, context) {
18
+ return orientation === 'horizontal' ? ((0, jsx_runtime_1.jsx)(SwipeListControl_1.SwipeListControl, { context: context, children: cards?.map(renderCard) })) : ((0, jsx_runtime_1.jsx)("div", { className: "grid gap-[14px]", children: cards?.map(renderCard) }));
19
19
  }
20
20
  function renderCard(card, key) {
21
21
  return ((0, jsx_runtime_1.jsxs)("div", { className: `h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.js","sourceRoot":"","sources":["../../../src/components/Gallery/Gallery.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,uDAAoD;AACpD,0DAAuD;AACvD,iDAA8C;AAC9C,8CAA2C;AAC3C,qFAAkF;AAKlF,MAAM,UAAU,GAAiC;IAC/C,OAAO,EAAE,UAAU;IACnB,SAAS,EAA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,IAAI,KAZjD,GAAG,CAaJ,CACP,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,MAAM;IAC1B,OAAO,CACL,uBAAC,eAAM,IACL,SAAS,EAAC,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,IAAI,IAAI,uBAAC,WAAI,IAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,KAAK,SAAG,KACrF,MAAM,GACV,CACH,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAiB;IAC1C,OAAO,CACL,gCACE,SAAS,EAAE,sCACT,IAAI,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAC3D,EAAE,YAED,IAAI,CAAC,WAAW,GACb,CACP,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAAC,KAAoB,EAAE,UAAwB,SAAS;IAC1E,OAAO,CACL,oCAAS,SAAS,EAAC,MAAM,YACtB,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CACtB,4CACE,iCAAM,SAAS,EAAC,uBAAuB,YAAE,IAAI,CAAC,KAAK,GAAQ,EAC3D,iCAAM,SAAS,EAAE,kBAAkB,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,YACpF,IAAI,CAAC,IAAI,GACL,KAJC,MAAM,CAAC,CAAC,CAAC,CAKb,CACP,CAAC,GACM,CACX,CAAC;AACJ,CAAC"}
@@ -2,13 +2,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.GalleryCardInner = 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 BlockItem_1 = require("../../ui-kit/BlockItem/BlockItem");
6
5
  const Button_1 = require("../../ui-kit/Button/Button");
7
6
  const Icon_1 = require("../../ui-kit/Icon/Icon");
8
7
  const Img_1 = require("../../ui-kit/Img/Img");
8
+ const List_1 = require("../../ui-kit/List/List");
9
9
  exports.GalleryCardInner = (0, uni_jsx_1.JSX)(({ title, description, image, items, button, version }) => {
10
10
  const titleStyleClasses = getTitleStyle(version, description, items);
11
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
11
+ return ((0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { children: [image?.src ? ((0, jsx_runtime_1.jsx)("div", { className: "flex justify-center", children: (0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mb-6", image: image }) })) : null, title ? renderCardTitle(title, titleStyleClasses) : null, description ? ((0, jsx_runtime_1.jsx)("div", { className: `font-normal text-sm ${title ? 'mt-2' : ''}`, children: description })) : null, items?.length ? renderItems(items, version) : null] }), button?.text ? renderButton(button) : null] }));
12
12
  });
13
13
  function renderButton(button) {
14
14
  return ((0, jsx_runtime_1.jsx)(Button_1.Button, { className: "mt-6 w-full", appendLeft: button.icon && (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: button.icon, width: "24px", height: "24px", asSVG: true }), ...button }));
@@ -16,13 +16,8 @@ function renderButton(button) {
16
16
  function renderCardTitle(title, className) {
17
17
  return (0, jsx_runtime_1.jsx)("div", { className: `font-medium text-xl m-0 ${className}`, children: title });
18
18
  }
19
- function renderItems(items, version) {
20
- return ((0, jsx_runtime_1.jsx)("section", { className: `max-w-[308px] mt-2`, role: "list", children: items
21
- .filter((item) => item?.text)
22
- .map((item, i) => renderItem(item.text, i, version)) }));
23
- }
24
- function renderItem(item, i, version) {
25
- return ((0, jsx_runtime_1.jsx)(BlockItem_1.BlockItem, { version: version ?? 'primary', children: (0, jsx_runtime_1.jsx)("span", { className: "text-sm", children: item }) }, String(i)));
19
+ function renderItems(items, version = 'primary') {
20
+ return ((0, jsx_runtime_1.jsx)(List_1.List, { className: `max-w-[308px] mt-2 text-sm ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "mt-1 first:mt-0", items: items.filter((item) => item?.text).map((item) => item.text), version: version }));
26
21
  }
27
22
  function getTitleStyle(version, description, items) {
28
23
  return `font-medium text-xl m-0
@@ -1 +1 @@
1
- {"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,gEAA6D;AAC7D,uDAAoD;AACpD,iDAA8C;AAC9C,8CAA2C;AAG9B,QAAA,gBAAgB,GAAG,IAAA,aAAG,EACjC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACxD,MAAM,iBAAiB,GAAG,aAAa,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IACrE,OAAO,CACL,4CACE,4CACG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CACZ,gCAAK,SAAS,EAAC,qBAAqB,YAClC,uBAAC,SAAG,IAAC,SAAS,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,GAAI,GAClC,CACP,CAAC,CAAC,CAAC,IAAI,EACP,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,IAAI,EACxD,WAAW,CAAC,CAAC,CAAC,CACb,gCAAK,SAAS,EAAE,uBAAuB,KAAK,CAAC,CAAC,CAAC,MAA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,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE;OACtD,CAAC;AACR,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { BlockVersion } from '../../model/BlockVersion';
2
2
  import type { Picture } from '../../model/Picture';
3
3
  import type { ButtonWithIconProps } from '../../ui-kit/Button/ButtonProps';
4
+ import type { ListOrientation } from '../../model/ListOrientation';
4
5
  /**
5
6
  * @title Элемент списка
6
7
  */
@@ -38,6 +39,6 @@ export interface GalleryContent {
38
39
  * @minItems 3
39
40
  */
40
41
  cards?: GalleryCard[];
41
- /** @title Горизонтальная прокрутка (для мобильных прокрутка shift+mouseScroll) */
42
- isScroll?: boolean;
42
+ /** @title Отображать элементы в моб. версии (прокрутка shift+mouseScroll) */
43
+ orientation?: ListOrientation;
43
44
  }