@redneckz/wildless-cms-uni-blocks 0.3.62 → 0.3.63

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 (272) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +87 -26
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/cosmos-static/icons/AirPlane.svg +1 -0
  5. package/cosmos-static/icons/CarIcon.svg +1 -0
  6. package/cosmos-static/icons/CinemaIcon.svg +1 -0
  7. package/cosmos-static/icons/DocsIcon.svg +1 -0
  8. package/cosmos-static/icons/PowerIcon.svg +1 -0
  9. package/cosmos-static/icons/PumpkinIcon.svg +1 -0
  10. package/cosmos-static/icons/SoundIcon.svg +1 -0
  11. package/cosmos-static/icons/WateringCan.svg +1 -0
  12. package/dist/components/Accordion/Accordion.js +7 -2
  13. package/dist/components/Accordion/Accordion.js.map +1 -1
  14. package/dist/components/Accordion/AccordionContent.d.ts +3 -0
  15. package/dist/components/BaseTile/BaseTileProps.d.ts +1 -9
  16. package/dist/components/BenefitsBlock/BenefitsBlock.js +3 -3
  17. package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  18. package/dist/components/BlockContent.d.ts +2 -1
  19. package/dist/components/Blocks.d.ts +1 -0
  20. package/dist/components/Blocks.js +2 -0
  21. package/dist/components/Blocks.js.map +1 -1
  22. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  23. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +14 -0
  24. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
  25. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
  26. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
  27. package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
  28. package/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  29. package/dist/components/BonusBenefitsBlock/getElementsColsValue.js +17 -0
  30. package/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
  31. package/dist/components/Headline/HeadlineContent.d.ts +1 -1
  32. package/dist/components/Headline/constants.d.ts +1 -1
  33. package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  34. package/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -1
  35. package/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -2
  36. package/dist/components/OtherProducts/OtherProductsItem.js +10 -7
  37. package/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  38. package/dist/components/TariffsTable/TariffsTable.js +8 -3
  39. package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
  40. package/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -5
  41. package/dist/icons/IconName.d.ts +22 -6
  42. package/dist/icons/IconName.js +18 -2
  43. package/dist/icons/IconName.js.map +1 -1
  44. package/dist/model/AlignType.d.ts +9 -0
  45. package/dist/model/AlignType.js +2 -0
  46. package/dist/model/AlignType.js.map +1 -0
  47. package/dist/model/VNode.d.ts +1 -0
  48. package/dist/model/VNode.js +2 -0
  49. package/dist/model/VNode.js.map +1 -0
  50. package/dist/ui-kit/Foldable/Foldable.d.ts +20 -0
  51. package/dist/ui-kit/Foldable/Foldable.js +22 -0
  52. package/dist/ui-kit/Foldable/Foldable.js.map +1 -0
  53. package/dist/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
  54. package/dist/ui-kit/Foldable/useActiveHandler.js +22 -0
  55. package/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -0
  56. package/lib/common.css +1 -1
  57. package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
  58. package/lib/components/Accordion/Accordion.js +7 -2
  59. package/lib/components/Accordion/Accordion.js.map +1 -1
  60. package/lib/components/Accordion/AccordionContent.d.ts +3 -0
  61. package/lib/components/BaseTile/BaseTileProps.d.ts +1 -9
  62. package/lib/components/BenefitsBlock/BenefitsBlock.js +3 -3
  63. package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  64. package/lib/components/BlockContent.d.ts +2 -1
  65. package/lib/components/Blocks.d.ts +1 -0
  66. package/lib/components/Blocks.js +2 -0
  67. package/lib/components/Blocks.js.map +1 -1
  68. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  69. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +4 -0
  70. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +12 -0
  71. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
  72. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
  73. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
  74. package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
  75. package/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  76. package/lib/components/BonusBenefitsBlock/getElementsColsValue.js +14 -0
  77. package/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
  78. package/lib/components/Headline/HeadlineContent.d.ts +1 -1
  79. package/lib/components/Headline/constants.d.ts +1 -1
  80. package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  81. package/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -1
  82. package/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -2
  83. package/lib/components/OtherProducts/OtherProductsItem.js +11 -8
  84. package/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  85. package/lib/components/TariffsTable/TariffsTable.js +8 -3
  86. package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
  87. package/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -5
  88. package/lib/icons/IconName.d.ts +22 -6
  89. package/lib/icons/IconName.js +18 -2
  90. package/lib/icons/IconName.js.map +1 -1
  91. package/lib/model/AlignType.d.ts +9 -0
  92. package/lib/model/AlignType.js +2 -0
  93. package/lib/model/AlignType.js.map +1 -0
  94. package/lib/model/VNode.d.ts +1 -0
  95. package/lib/model/VNode.js +2 -0
  96. package/lib/model/VNode.js.map +1 -0
  97. package/lib/ui-kit/Foldable/Foldable.d.ts +20 -0
  98. package/lib/ui-kit/Foldable/Foldable.js +20 -0
  99. package/lib/ui-kit/Foldable/Foldable.js.map +1 -0
  100. package/lib/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
  101. package/lib/ui-kit/Foldable/useActiveHandler.js +19 -0
  102. package/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -0
  103. package/mobile/bundle/bundle.umd.js +18 -2
  104. package/mobile/bundle/bundle.umd.min.js +1 -1
  105. package/mobile/dist/components/Accordion/AccordionContent.d.ts +3 -0
  106. package/mobile/dist/components/BaseTile/BaseTileProps.d.ts +1 -9
  107. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +3 -3
  108. package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  109. package/mobile/dist/components/BlockContent.d.ts +2 -1
  110. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  111. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +14 -0
  112. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
  113. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
  114. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
  115. package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
  116. package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  117. package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js +17 -0
  118. package/mobile/dist/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
  119. package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
  120. package/mobile/dist/components/Headline/constants.d.ts +1 -1
  121. package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  122. package/mobile/dist/components/OtherProducts/OtherProductsContent.d.ts +1 -1
  123. package/mobile/dist/components/OtherProducts/OtherProductsItem.d.ts +1 -2
  124. package/mobile/dist/components/OtherProducts/OtherProductsItem.js +10 -7
  125. package/mobile/dist/components/OtherProducts/OtherProductsItem.js.map +1 -1
  126. package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +7 -5
  127. package/mobile/dist/icons/IconName.d.ts +22 -6
  128. package/mobile/dist/icons/IconName.js +18 -2
  129. package/mobile/dist/icons/IconName.js.map +1 -1
  130. package/mobile/dist/model/AlignType.d.ts +9 -0
  131. package/mobile/dist/model/AlignType.js +2 -0
  132. package/mobile/dist/model/AlignType.js.map +1 -0
  133. package/mobile/dist/model/VNode.d.ts +1 -0
  134. package/mobile/dist/model/VNode.js +2 -0
  135. package/mobile/dist/model/VNode.js.map +1 -0
  136. package/mobile/dist/ui-kit/Foldable/Foldable.d.ts +20 -0
  137. package/mobile/dist/ui-kit/Foldable/Foldable.js +22 -0
  138. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -0
  139. package/mobile/dist/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
  140. package/mobile/dist/ui-kit/Foldable/useActiveHandler.js +22 -0
  141. package/mobile/dist/ui-kit/Foldable/useActiveHandler.js.map +1 -0
  142. package/mobile/lib/components/Accordion/AccordionContent.d.ts +3 -0
  143. package/mobile/lib/components/BaseTile/BaseTileProps.d.ts +1 -9
  144. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +3 -3
  145. package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
  146. package/mobile/lib/components/BlockContent.d.ts +2 -1
  147. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +5 -0
  148. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +12 -0
  149. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -0
  150. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +21 -0
  151. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js +2 -0
  152. package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.js.map +1 -0
  153. package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.d.ts +1 -0
  154. package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js +14 -0
  155. package/mobile/lib/components/BonusBenefitsBlock/getElementsColsValue.js.map +1 -0
  156. package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
  157. package/mobile/lib/components/Headline/constants.d.ts +1 -1
  158. package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
  159. package/mobile/lib/components/OtherProducts/OtherProductsContent.d.ts +1 -1
  160. package/mobile/lib/components/OtherProducts/OtherProductsItem.d.ts +1 -2
  161. package/mobile/lib/components/OtherProducts/OtherProductsItem.js +11 -8
  162. package/mobile/lib/components/OtherProducts/OtherProductsItem.js.map +1 -1
  163. package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +7 -5
  164. package/mobile/lib/icons/IconName.d.ts +22 -6
  165. package/mobile/lib/icons/IconName.js +18 -2
  166. package/mobile/lib/icons/IconName.js.map +1 -1
  167. package/mobile/lib/model/AlignType.d.ts +9 -0
  168. package/mobile/lib/model/AlignType.js +2 -0
  169. package/mobile/lib/model/AlignType.js.map +1 -0
  170. package/mobile/lib/model/VNode.d.ts +1 -0
  171. package/mobile/lib/model/VNode.js +2 -0
  172. package/mobile/lib/model/VNode.js.map +1 -0
  173. package/mobile/lib/ui-kit/Foldable/Foldable.d.ts +20 -0
  174. package/mobile/lib/ui-kit/Foldable/Foldable.js +20 -0
  175. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -0
  176. package/mobile/lib/ui-kit/Foldable/useActiveHandler.d.ts +11 -0
  177. package/mobile/lib/ui-kit/Foldable/useActiveHandler.js +19 -0
  178. package/mobile/lib/ui-kit/Foldable/useActiveHandler.js.map +1 -0
  179. package/mobile/src/components/Accordion/AccordionContent.ts +3 -0
  180. package/mobile/src/components/BaseTile/BaseTileProps.ts +1 -10
  181. package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -8
  182. package/mobile/src/components/BlockContent.ts +3 -1
  183. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +54 -0
  184. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +49 -0
  185. package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +23 -0
  186. package/mobile/src/components/BonusBenefitsBlock/getElementsColsValue.ts +12 -0
  187. package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
  188. package/mobile/src/components/Headline/constants.ts +1 -1
  189. package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  190. package/mobile/src/components/OtherProducts/OtherProductsContent.ts +1 -1
  191. package/mobile/src/components/OtherProducts/OtherProductsItem.tsx +33 -23
  192. package/mobile/src/components/TariffsTable/TariffsTableContent.ts +7 -5
  193. package/mobile/src/icons/AirPlane.svg +98 -0
  194. package/mobile/src/icons/ArrowUpIcon.svg +1 -1
  195. package/mobile/src/icons/ArrowsRewindRight.svg +1 -1
  196. package/mobile/src/icons/CarIcon.svg +466 -0
  197. package/mobile/src/icons/CinemaIcon.svg +274 -0
  198. package/mobile/src/icons/DocsIcon.svg +238 -0
  199. package/mobile/src/icons/IconName.ts +4 -4
  200. package/mobile/src/icons/PowerIcon.svg +135 -0
  201. package/mobile/src/icons/PumpkinIcon.svg +236 -0
  202. package/mobile/src/icons/SoundIcon.svg +113 -0
  203. package/mobile/src/icons/WateringCan.svg +497 -0
  204. package/mobile/src/model/AlignType.ts +9 -0
  205. package/mobile/src/model/VNode.ts +1 -0
  206. package/mobile/src/ui-kit/Foldable/Foldable.tsx +81 -0
  207. package/mobile/src/ui-kit/Foldable/useActiveHandler.ts +34 -0
  208. package/package.json +1 -1
  209. package/src/components/Accordion/Accordion.fixture.tsx +24 -2
  210. package/src/components/Accordion/Accordion.tsx +23 -2
  211. package/src/components/Accordion/AccordionContent.ts +3 -0
  212. package/src/components/BaseTile/BaseTileProps.ts +1 -10
  213. package/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -8
  214. package/src/components/BlockContent.ts +3 -1
  215. package/src/components/Blocks.ts +2 -0
  216. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.example.json +54 -0
  217. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +50 -0
  218. package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +49 -0
  219. package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +23 -0
  220. package/src/components/BonusBenefitsBlock/getElementsColsValue.ts +12 -0
  221. package/src/components/Headline/HeadlineContent.ts +1 -1
  222. package/src/components/Headline/constants.ts +1 -1
  223. package/src/components/LinkDocs/LinkDocs.tsx +1 -1
  224. package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
  225. package/src/components/OtherProducts/OtherProductsContent.ts +1 -1
  226. package/src/components/OtherProducts/OtherProductsItem.tsx +33 -23
  227. package/src/components/TariffsTable/TariffsTable.fixture.tsx +4 -1
  228. package/src/components/TariffsTable/TariffsTable.tsx +55 -18
  229. package/src/components/TariffsTable/TariffsTableContent.ts +7 -5
  230. package/src/icons/AirPlane.svg +98 -0
  231. package/src/icons/ArrowUpIcon.svg +1 -1
  232. package/src/icons/ArrowsRewindRight.svg +1 -1
  233. package/src/icons/CarIcon.svg +466 -0
  234. package/src/icons/CinemaIcon.svg +274 -0
  235. package/src/icons/DocsIcon.svg +238 -0
  236. package/src/icons/IconName.ts +28 -4
  237. package/src/icons/PowerIcon.svg +135 -0
  238. package/src/icons/PumpkinIcon.svg +236 -0
  239. package/src/icons/SoundIcon.svg +113 -0
  240. package/src/icons/WateringCan.svg +497 -0
  241. package/src/model/AlignType.ts +9 -0
  242. package/src/model/VNode.ts +1 -0
  243. package/src/ui-kit/Foldable/Foldable.tsx +81 -0
  244. package/src/ui-kit/Foldable/useActiveHandler.ts +34 -0
  245. package/dist/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
  246. package/dist/components/OtherProducts/OtherProductsItemInner.js +0 -10
  247. package/dist/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
  248. package/dist/components/OtherProducts/useActiveHandler.d.ts +0 -7
  249. package/dist/components/OtherProducts/useActiveHandler.js +0 -21
  250. package/dist/components/OtherProducts/useActiveHandler.js.map +0 -1
  251. package/lib/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
  252. package/lib/components/OtherProducts/OtherProductsItemInner.js +0 -8
  253. package/lib/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
  254. package/lib/components/OtherProducts/useActiveHandler.d.ts +0 -7
  255. package/lib/components/OtherProducts/useActiveHandler.js +0 -18
  256. package/lib/components/OtherProducts/useActiveHandler.js.map +0 -1
  257. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
  258. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js +0 -10
  259. package/mobile/dist/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
  260. package/mobile/dist/components/OtherProducts/useActiveHandler.d.ts +0 -7
  261. package/mobile/dist/components/OtherProducts/useActiveHandler.js +0 -21
  262. package/mobile/dist/components/OtherProducts/useActiveHandler.js.map +0 -1
  263. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.d.ts +0 -2
  264. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js +0 -8
  265. package/mobile/lib/components/OtherProducts/OtherProductsItemInner.js.map +0 -1
  266. package/mobile/lib/components/OtherProducts/useActiveHandler.d.ts +0 -7
  267. package/mobile/lib/components/OtherProducts/useActiveHandler.js +0 -18
  268. package/mobile/lib/components/OtherProducts/useActiveHandler.js.map +0 -1
  269. package/mobile/src/components/OtherProducts/OtherProductsItemInner.tsx +0 -14
  270. package/mobile/src/components/OtherProducts/useActiveHandler.ts +0 -24
  271. package/src/components/OtherProducts/OtherProductsItemInner.tsx +0 -14
  272. package/src/components/OtherProducts/useActiveHandler.ts +0 -24
@@ -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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...r}={})=>{const l=Object.assign({},r,a?{innerHTML:a.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),r=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...r}=t||{},l=n?.slots?.default,i=a||l&&l();return e(Object.assign(r,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title-lg",h3:"text-title",h4:"text-title-sm",h5:"text-title-xs",h6:"text-title-2xs tracking-[0.2px]"},s=r((e=>{const{className:t="",headingType:a,title:r,as:l}=e;if(!a)return;return n(l||a,{className:`font-sans m-0 ${i[a]} ${t}`,children:r})}));var o,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(o||(o={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(c||(c={}));const m=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}},d=r((({className:e="",name:t="",alt:r=`Иконка ${c[t]||t}`,title:l=r,iconVersion:i,asSVG:s,...o})=>{const d=`${m.CDN||""}icons/${t}.svg`,h="white"===i?"text-black invert":"text-primary-main";return s?a("svg",{className:e,...o,"aria-hidden":"true",children:[l?n("title",{children:l}):null,r?n("desc",{children:r}):null,n("use",{className:h,href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:r,title:l,...o,"aria-hidden":"true"})}));function h(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const u=r((({className:e="",image:t,imageClassName:a="",...r})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?n(d,{className:e,iconVersion:h(t),name:l,...r}):null:n(x,{className:e,imageClassName:a,image:t})})),x=r((({className:e="",image:t,imageClassName:r=""})=>t?a("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},a)=>n("source",{srcSet:e,type:b(t)},`${a}_${e}`))):null,p(t,r)]}):null)),p=(e,t="")=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:t,alt:l,title:r,style:a,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},f={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},N=r((({bgColorHeadline:e="transparent",align:t="left",className:r="",title:l,description:i,anchor:o=null})=>{const c=f[e];return a("section",{className:`p-[50px] ${c.background} ${r}`,id:o,children:[l?n(s,{headingType:"h2",className:`text-primary-text ${c.text} ${g[t]}`,title:l}):null,i?n("p",{className:`font-normal text-base mt-4 ${c.text} ${g[t]}`,children:i}):null]})})),v=r((({className:e,iconClassName:t,textClassName:r,suffixClassName:l,doc:i,icon:s})=>{const{text:o,fileSize:c,...m}=i;return a("a",{className:e,role:"link",...m,children:[s?n(u,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:r,children:[o,n("span",{className:l,children:m?.href&&y(w(m.href),c)})]}):null]})})),y=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),w=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},I=r((({className:e="",doc:t,icon:a})=>n(v,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),k=r((({className:e,documents:t,columnsMode:a="double",icon:r})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(I,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:r})},String(t))))}):null)),C={left:"text-left",center:"text-center",right:"text-right"},$={double:"mb-8",single:"mb-[26px]"},S={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},T=r((({className:e="",title:t,subtitle:r,align:l,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:m=null})=>a("section",{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,id:m,children:[t?n(s,{headingType:"h2",className:`${r?"mb-2.5":$[c]} ${C[l??"center"]}`,title:t}):null,r?n("h3",{className:`text-base mt-0 font-normal ${$[c]} ${C[l??"center"]}`,children:r}):null,n(k,{className:S[c],columnsMode:c,documents:i,icon:o})]}))),M={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},D=r((({className:e="",title:t,image:r,benefits:l,version:i="primary",directionRight:o=!1,anchor:c=null})=>a("section",{className:`relative font-sans p-14 ${M[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[r?.src&&n(u,{className:o?"order-2 ml-6":"mr-6",image:r}),l?.length?n("div",{className:"flex flex-col",children:l.map(((e,t)=>function(e,t,r){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(u,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===r?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===r?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const A=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),P=e=>{if(!e||!A(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},L=e=>{if(!e||!A(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var V=Object.freeze({__proto__:null,isURL:A,withoutQuery:R,getOrigin:P,getHash:L});const B="/mobile",j=(e,t)=>{if(!e)return e;const n=P(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function G({router:e,handlerDecorator:t=_},n){const a=((e,t)=>{if(!e)return e;const n=j(e,t)||"",a=t?.pathname.startsWith(B);return a&&!A(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const r=a&&!A(a),l=!n.target||"_self"===n.target;r&&l&&(t.preventDefault(),e.push(a))}),n)}}const W=r((({text:e,href:t,target:a,onClick:r,className:l="",children:i})=>t?n("a",{className:`no-underline ${l}`,href:t,target:a,onClick:r,children:n("span",{className:l,children:e||i})}):n("span",{className:l,children:e||i})));function E(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const O=r((e=>{const{text:t,aboveText:r,appendLeft:l,appendRight:i}=e;return a("div",{className:F(e),children:[l||null,U(e)?a("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:r}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),F=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const r="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",U(e)?r:"h-12 w-12",a?"rounded-full":""].join(" ")},U=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="text-center font-sans select-none",q=r((e=>{const{text:t,aboveText:a,appendLeft:r,appendRight:l,children:i,disabled:s,rounded:o,...c}=e,m=i??n(O,{text:t,aboveText:a,appendLeft:r,appendRight:l,rounded:o});return n(s?X:J,{rounded:o,...c,children:m})})),J=r((({className:e="",ariaLabel:t,version:a="none",rounded:r,href:l,target:i,children:s,onClick:o,...c})=>n("a",{className:`${z} inline-block cursor-pointer no-underline ${H[a]||""} ${r?"rounded-full":"rounded-md"} ${e}`,href:l,target:i,onClick:o,"aria-label":t,role:l?"link":"button",...c,children:s}))),X=r((({className:e,children:t,ariaLabel:a,version:r="none",rounded:l})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:"-1",className:`inline-block ${z} ${Z[r]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),K=r((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:r}=e,l=e.useRouter();return a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,...t},a){if(!t?.text)return;return n(q,e?{appendLeft:n(u,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(G({router:l,handlerDecorator:r},e),t)))}):null}));const Q=r((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),Y={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=r((({className:e="",isDotted:t=!0,children:r,version:l="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(l)}):null,n("span",{children:r})]}))),ne=e=>`${Y[e]} ${ee[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,ae={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},re=r((e=>{const{className:t="",itemClassName:a,isDotted:r,items:l,version:i="primary"}=e;return n("section",{className:`${ae[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(te,{className:a,isDotted:r,version:i,children:e},String(t)))):null})})),le=r((({className:e="",title:t,children:r,buttons:l,image:i,anchor:s=null})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:r}),l?n("div",{children:l}):null]}),i]})]}))),ie={primary:"text-primary-text",secondary:"text-white"},se={primary:"text-secondary-text",secondary:"text-white"};function oe(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const ce=r((({className:e="",context:t,title:r,headingType:l="h2",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:m,items:d,version:h="primary",isDotted:x=!0,textBlockClassName:p=""})=>{const b="secondary"===h?"text-white":"text-primary-text";return a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${p}`,children:a(le,{context:t,title:me(r,l),buttons:de(t,c),children:[i?n(Q,{className:`mt-4 max-w-[600px] text-md font-light ${b}`,description:i}):null,s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:r="normal"},l){const i="white"===r||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(u,{className:oe(t,r),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-xl m-0 ${ie[t]}`,children:e.label}),e.description&&n("div",{className:`font-light text-m-md ${se[t]}`,children:e.description})]})]},String(l))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,d?.length?n(re,{className:"mt-5 text-title-2xs font-light",items:d,itemClassName:"mb-[7px]",version:h,isDotted:x}):null]})}),m?.src&&n(u,{className:"mt-[-50px]",image:m})]})})),me=(e,t)=>e?n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,de=(e,t)=>t?.length?n(K,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function he(e,t,r){return a("div",{className:`flex items-center ${r}`,children:[n(q,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:e?.text,href:e?.href,children:n(u,{className:"w-4 h-4",image:e?.icon||{icon:"ArrowLeftIcon"},asSVG:!0})}),e?.text?n("span",{className:"text-m-md font-light",children:e.text}):null]})}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xe={primary:"text-secondary-text",secondary:"text-white/80"},pe=r((e=>{const{context:t,className:r="",breadcrumbs:l,backwardButton:i,version:s="primary",anchor:o=null,...c}=e,m=t.useRouter(),{handlerDecorator:d}=t;return a("section",{className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${ue[s]} ${r}`,id:o,children:[i?.text?he(i,s,"mb-10 -mt-2.5"):null,l?.length?n("div",{className:"text-xs mb-6",children:E(n("span",{className:`mx-2 ${xe[s]}`,children:"/"}))(l.map(((e,t)=>n(W,{...G({router:m,handlerDecorator:d},{className:xe[s],...e})},String(t)))))}):null,n(ce,{context:t,version:s,...c})]})})),be={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},ge=r((({title:e,description:t,blockVersion:r="primary",iconVersion:l,image:i,className:s,anchor:o=null})=>{const c=be[r];return a("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===l?fe(c.icon):null,"big"===l?Ne(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}):null,t?n("div",{className:`text-sm ${c.description}`,children:t}):null]})]})}));function fe(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function Ne(e){return e?.src?n(u,{className:"pt-0.5 pr-3",image:e}):null}const ve=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ye(e=""){const t=ve(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function we(e=""){const t=ve(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ie={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ke=r((e=>{const{context:t,title:r,headingType:l="h3",description:i,items:o,children:c,buttons:m,image:d,className:h="",version:x="primary",role:p,anchor:b=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${h} ${Ie[x]} ${we(h)} ${ye(h)} `,role:p,id:b,children:a(le,{context:t,title:r?n(s,{headingType:l,as:"h3",title:r,className:`whitespace-pre-wrap max-w-[600px] ${r?"mb-3":""}\n ${"primary"===x?"text-primary-text":""}`}):null,buttons:m?.length?n(K,{context:t,buttons:m.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:d?.src&&n(u,{className:"mt-auto ml-7",image:d}),children:[i?n(Q,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,c,Ce(o,x)]})})}));function Ce(e,t){return e?.length?n(re,{items:e,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const $e={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Se=r((({context:e,className:t="",title:r,headingType:l="h3",description:i,additionalDescription:o,benefits:c,buttons:m,image:d,version:h="primary",anchor:x=null})=>n("section",{className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${t} ${$e[h]} ${we(t)} ${ye(t)} `,id:x,children:a(le,{context:e,title:r?n(s,{headingType:l,as:"h3",title:r,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:m?.length?n(K,{context:e,buttons:m,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(u,{className:"mt-auto ml-7",image:d}),children:[i?n(Q,{className:"mt-4 max-w-[600px]",description:i}):null,Te(c,h),o?De(o,h):null]})})));function Te(e=[],t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(Me)}):null,e.length?n("div",{className:"pt-1",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function Me(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function De(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Ae=r((({className:e,disabled:t,...a})=>n(q,{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,...a,children:n(u,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon"},width:"16",height:"16",asSVG:!0})}))),Re={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Pe={normal:3,mini:4},Le={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Ve={normal:380,mini:276},Be=r((({title:e,description:t,image:r,items:l,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[r?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-6",image:r})}):null,e?_e(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,l?.length?Ge(l,s,o):null]}),i?.text?je(i):null]})}));function je(e){return n(q,{className:"mt-6 w-full",appendLeft:e.icon&&n(u,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function _e(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ge(e,t="primary",a){return n(re,{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)),isDotted:a,version:t})}const We=r((({context:e,title:t,description:r,cards:l=[],version:i="normal",activeCardIndex:o})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,r?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:r}):null]}),n("div",{className:`flex ${l?.length<=Pe[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Ve[i]}px)`},role:"list",children:l?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Le[t]} ${Re[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Be,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const Ee=r((({context:e,cards:t=[],className:r="",version:l="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),m=t?.length>Pe[l],d=m&&t?.length-o>Pe[l],h=m&&o>0;return a("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${r}`,id:i,children:[n(We,{context:e,cards:t,version:l,activeCardIndex:o,...s}),h?n(Ae,{className:"absolute top-1/2 left-8 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,d?n(Ae,{className:"absolute top-1/2 right-8 z-10 mt-[25px] rotate-180",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null,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"})]})})),Oe=r((e=>n(Ee,{...e,version:"normal"}))),Fe=r((e=>n(Ee,{...e,version:"mini"}))),Ue=r((({className:e="",documents:t,anchor:a=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?He(t):null})}))),He=e=>e.map(((e,t)=>{const{text:a,...r}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...r,children:a||null})},`list_item_${String(t)}`)})),Ze={Headline:N,LinkDocs:T,TextBlock:ge,PictureText:D,ProductBlock:pe,Tile:ke,ProductTile:Se,Gallery:Oe,MiniGallery:Fe,LinkList:Ue},ze=({blocks:e,context:t,className:n,columns:a})=>e?.length?e.map(qe({context:t,className:n,columns:a})):null,qe=({context:e,columns:t,className:a})=>(r,l)=>{const i=r?.blockListType;if(!i||!(i in Ze))return null;return n("div",{className:`${a} ${2===t?"w-1/2":""}`,children:n(Ze[i],{context:e,...r,className:"!p-0"})},`block_${l}`)},Je=r((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:ze({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Xe=r((({label:e,isExpanded:t,blocks:r,context:l})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,r]=e.useState(n),l=t?.length;return{isActive:a,hasContent:l,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;r(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:r,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(u,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(Je,{isExpanded:i,blocks:r,context:l}):null]})})),Ke=r((({title:e,description:t,accordionItems:r,context:l,className:i="",anchor:o=null})=>a("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:"mb-2.5",title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,r?.length?n("ul",{className:"list-none m-0 p-0",children:r.map(((e,t)=>n(Xe,{...e,context:l},`AccordionItem${t}`)))}):null]}))),Qe=r((({className:e,title:t,benefits:r,anchor:l=null})=>a("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e||""}`,id:l,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,r?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:r.map(Ye)}):null]}))),Ye=(e,t)=>a("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e.icon?n(u,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[n("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),et=r((e=>{const{className:t="",title:r,description:l,bonusItems:i,anchor:o=null}=e;return n("section",{className:`font-sans bg-white p-[50px] pb-9 ${t}`,id:o,children:a("div",{className:"container",children:[r?n(s,{headingType:"h3",className:"text-center",title:r}):null,l?n("div",{className:"text-md font-light text-center mt-[10px]",children:l}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),tt=r((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),nt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",at="border-main-stroke border-solid border",rt="border-main-divider border border-t-0 border-x-0",lt="w-[200px] mr-6",it={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},st=r((({children:e,activeCardIndex:t,columnWidth:a,version:r="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:it[r],style:{transform:`translateX(-${t*a}px)`},children:e})}))),ot=r((({icon:e,image:t,title:r,link:l})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${at} ${nt}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(u,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(u,{className:"mb-[18px]",image:t}),r?n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:r}):null,l?.text&&n("div",{className:"mt-auto w-full",children:n(q,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),ct=r((({colHeaders:e,activeCardIndex:t,router:r,handlerDecorator:l})=>a(tt,{children:[n("div",{className:lt,role:"columnheader",scope:"col"}),n(st,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(ot,{...e,link:e.link&&G({router:r,handlerDecorator:l},e.link)},String(t))))})]}))),mt=r((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:r})=>n("div",{className:`w-80 box-border flex flex-col ${at} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${r?nt:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${rt} ${r&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>dt(e,t,r)))})}))),dt=({label:e,description:t},r,l)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:"text-xl font-medium m-0 "+(l?"text-white":""),children:e}):null,t?n("div",{className:"text-sm opacity-80 "+(l?"text-white":"text-secondary-text"),children:t}):null]},String(r)),ht=r((({row:{header:e,data:t},activeCardIndex:r,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>a(tt,{children:[e?.title?n("div",{className:`text-sm py-7 ${rt} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(st,{activeCardIndex:r,columnWidth:336,children:t.map(((e,t)=>n(mt,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),ut=r((({isScrollAvailable:e,onNextClick:t,onPrevClick:r,showNextButton:l,showPrevButton:i})=>e?n("div",{children:a("div",{className:"absolute top-7 right-7 z-10",children:[n(Ae,{className:"mt-4 rotate-180",onClick:t,disabled:!l,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Ae,{className:"mt-4",onClick:r,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),xt=r((({rowData:e,activeCardIndex:t,isColoredFirstColumn:r,...l})=>a("div",{className:"relative",children:[e.map(((e,a,{length:l})=>n(ht,{row:e,isFirstRow:0===a,isLastRow:a+1===l,activeCardIndex:t,isColoredFirstColumn:r},String(a)))),n(ut,{...l})]}))),pt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const r=e>t;return{onNextClick:()=>a(n+1),onPrevClick:()=>a(n-1),isScrollAvailable:r,showNextButton:r&&e-n>t,showPrevButton:Boolean(r&&n>0)}},bt=r((({context:e,columns:t,rowHeaders:r,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,m=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],h=r?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?r.length:i),[u,x]=e.useState(0),p=pt({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[m?.length?n(ct,{colHeaders:m,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(xt,{rowData:h,activeCardIndex:u,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),gt=r((({className:e,context:t,title:r,rowHeaders:l,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:m=null})=>{const[d,h]=t.useState(!o);return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:m,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:r}),n(bt,{context:t,columns:i,rowHeaders:l,isShowAllRow:d,isColoredFirstColumn:c,visibleRowLength:o}),o?ft({isShowAllRow:d,onClick:()=>h(!d)}):null]})})),ft=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:lt}),n("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});function Nt(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),vt);return n||{}}async function vt(e){const t=await fetch(e);return await t.json()}const yt=r((({className:e,viewBox:t,fill:a="none",width:r,height:l,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:r,height:l,children:i.map((({d:e,fill:t,...a},r)=>n("path",{d:e,fill:t||"currentColor",...s,...a},r)))}))),wt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],It=r((({text:e,checked:t,onChange:r,className:l})=>n("div",{className:l,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{r(e.target.checked)},checked:t}),n(yt,{paths:wt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:e}):null]})}))),kt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Ct=r((({title:e,value:t,postfix:r="",prefix:l,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[l," ",kt(Math.round(t))," ",r]}):null]}))),$t=3e4,St=3e6,Tt=Math.round(41.5),Mt=r((({className:e,title:t,items:r=[],min:l=1,max:i=100,step:s=1,value:o=l,onChange:c})=>{const m=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},d={backgroundSize:`${(100*(o-l)/(i-l)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:kt(o),onChange:e=>m(e.target.value),onBlur:()=>{c&&(o<l&&c(l),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:o,onChange:e=>m(e.target.value),style:d})})]}),n("div",{className:"flex justify-between my-3",children:r.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})}));function Dt(e){const{title:t,className:a="",calculatorParams:r,moneyValue:l,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=r?.minSum||$t,m=r?.maxSum||St,d=[`От ${kt(c)} ₽`,`До ${kt(m)} ₽`];return n(Mt,{className:a,title:t,items:o?d:[],min:c,max:m,step:1e3,value:l||i,onChange:s})}const At=10.2,Rt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||At:t?.rateWithoutInsurance||At:At},Pt=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Lt=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,Vt=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Tt,Bt=(e,t,n)=>Math.max(t,Math.min(e,n));function jt(e){const{title:t,minMonths:a,maxMonths:r,monthsValue:l,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(Mt,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(r)}`],min:a,max:r,step:1,value:l||i,onChange:s})}function _t(e,t){return t?.length?n(K,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function Gt({rate:e,title:t,sup:r,className:l=""}){const i=String(e).replace(".",",");return a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${l}`,children:i}),r?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:r}):""]})]})}const Wt=r((({context:e,className:t="",buttons:r})=>{const[l,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),[u,x]=e.useState(!1),p=Nt(e.useAsyncData,"directoryName").rows,b=Pt({tableRows:p,isAnnuity:c}),g=Lt(b),f=Vt(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=Rt({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:r,months:l}=e;if(!t)return 0;const i=Bt(r,t.minSum||$t,t.maxSum||St);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(a)/12)})({calculatorParams:b,paymentType:"annuity",rate:y,sum:l||g,months:s||f});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Dt({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:l,defaultSum:g,setMoneyValue:i}),jt({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(It,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:m}),n(It,{className:"mt-3",text:"Работаю в бюджетной организации",checked:d,onChange:h}),n(It,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?Gt({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n(Ct,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,_t(e,r)]})]})}));function Et(e){const{calculatorParams:t,moneyValue:a,defaultSum:r,setMoneyValue:l}=e,i=t?.minSum||$t,s=t?.maxSum||St;return n(Mt,{title:"Стоимость недвижимости, ₽ ",items:[`От ${kt(i)} ₽`,`До ${kt(s)} ₽`],min:i,max:s,step:1e3,value:a||r,onChange:l})}function Ot(e){const{calculatorParams:t,moneyValue:a,defaultSum:r,setMoneyValue:l}=e,i=t?.minSum||$t,s=t?.maxSum||St;return n(Mt,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${kt(i)} рублей`,`До ${kt(s)} рублей`],min:i,max:s,step:1e3,value:a||r,onChange:l})}function Ft({credit:e,period:t,taxRefund:r}){return a("div",{children:[n(Ct,{title:"Сумма кредита",value:e,postfix:"₽"}),n(Ct,{title:"Срок",value:t,postfix:"лет"}),n(Ct,{title:"Налоговый вычет",value:r,postfix:"₽"})]})}const Ut={CreditCalculatorForm:Wt,MortgageCalculatorForm:r((({context:e,className:t="",buttons:r})=>{const[l,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),u=Nt(e.useAsyncData,"directoryName").rows,x=Pt({tableRows:u,isAnnuity:c}),p=Lt(x),b=Vt(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=Rt({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Et({calculatorParams:x,moneyValue:l,defaultSum:p,setMoneyValue:i}),Ot({calculatorParams:x,moneyValue:l,defaultSum:p,setMoneyValue:i}),jt({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(It,{text:"Страхование жизни",checked:c,onChange:m}),n(It,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:d,onChange:h})]})]}),a("div",{children:[n("div",{children:N?Gt({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n(Ct,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Ft({credit:3892e3,period:15,taxRefund:65e4})}),_t(e,r)]})]})})),DepositCalculatorForm:r((({context:e,className:t="",buttons:r,rate:l,minSum:i,maxSum:s,minMonths:o,maxMonths:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x=Nt(e.useAsyncData,"directoryName").rows,p=Pt({tableRows:x,isAnnuity:!1}),b=Lt(p),g=Vt(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Dt({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:m,defaultSum:b,setMoneyValue:d}),jt({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:l?Gt({rate:l,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n(Ct,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n(Ct,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),_t(e,r)]})]})})),BonusCalculatorForm:r((({context:e,className:t="",buttons:r,bonus:l,minSumTrip:i,maxSumTrip:s,minSumOther:o,maxSumOther:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x={minSum:i,maxSum:s},p={minSum:o,maxSum:c},b=l||2528;return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Dt({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:m,defaultSum:Lt(x),setMoneyValue:d,isShowItems:!1}),Dt({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Lt(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?Gt({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n(Ct,{title:"Баллов за год",value:948841}),_t(e,r)]})]})}))},Ht=({blockCalcTabs:e,context:t,className:n})=>e?.length?e.map(Zt({context:t,className:n})):null,Zt=({context:e,className:t})=>(a,r)=>{const l=a?.calcType;if(!l||!(l in Ut))return null;return n("section",{className:`box-border relative flex grow-0 shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(Ut[l],{context:e,...a,className:"!p-0 flex justify-between"})})},`${String(r)}`)},zt="absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full",qt=r((({className:e="",context:t,calcTabs:r=[],anchor:l=null})=>{const i=r.map((e=>e.nav||{})),s=r.map((({calculatorBlock:e})=>e||{})),[o,c]=t.useState(0),[m,d]=t.useState(0),h=r?.length>3&&r?.length>m+3,u=m>0;return a("section",{id:l,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,children:[a("div",{children:[i.length>1?Jt({tabsShift:m,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,u?n(Ae,{className:`${zt} left-3 top-3`,onClick:()=>d(m-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,h?n(Ae,{className:`${zt} right-3 top-3 rotate-180`,onClick:()=>d(m+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:Ht({context:t,className:e,blockCalcTabs:s})})]})}));function Jt({tabsShift:e,tabsNav:t,activeSlideIndex:r,setActiveSlideIndex:l}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:r,onClick:l}){const i=t===r,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",m=i?"":"text-primary-main";return a("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans relative border-[1px] border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(u,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${m}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:r,onClick:()=>l(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Xt=r((({tabs:e,currentTabIndex:t,onTabClick:a})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(Kt(t,a))}))),Kt=(e,t)=>(r,l)=>{const i=e===l;return a("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(l),"aria-selected":String(i),children:[r?.icon?Qt(r,i):null,a("div",{children:[r?.title?n("h3",{className:"font-medium m-0 text-base",children:r?.title}):null,r?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:r?.description}):null]})]},String(l))},Qt=(e,t)=>n("div",{className:"h-full mt-1",children:n(u,{className:"w-5 h-5 mr-3 "+(t?"invert":""),image:e?.icon||"CardIcon",asSVG:!t})});function Yt(e=""){const t=ve(e);return t<=4?"h4":t<=8?"h3":"h2"}const en=3e4,tn=3e6,nn=Math.round(41.5),an=(rn=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=rn.find((([t])=>t(e)))||[];return t});var rn;function ln(e){const{minMonths:t,maxMonths:a,monthsValue:r,defaultMonths:l,setMonthsValue:i}=e;return n(Mt,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:a,step:1,value:r||l,onChange:i})}function sn(e,t){return a("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),a("div",{className:"text-lg mb-3",children:[kt(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),a("div",{className:"text-lg",children:[t," %"]})]})}function on(e){const{calculatorParams:t,moneyValue:a,defaultSum:r,setMoneyValue:l}=e,i=t?.minSum||en,s=t?.maxSum||tn;return n(Mt,{title:"Желаемая сумма кредита, ₽",items:[`От ${kt(i)} рублей`,`До ${kt(s)} рублей`],min:i,max:s,step:1e3,value:a||r,onChange:l})}const cn=r((({context:e,directoryName:t})=>{const[r,l]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[m,d]=e.useState(!0),h=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:Nt(e.useAsyncData,t).rows,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(h),x=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):nn)(h),p=h?.minMonths||1,b=h?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:h,isInsurance:m}),f=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:r,months:l}=e;if(!t)return 0;const i=Bt(r,t.minSum||en,t.maxSum||tn);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(a)/12)})({calculatorParams:h,paymentType:"annuity",rate:g,sum:r||u,months:i||x}),N=((e,t)=>{const n=Math.ceil((t-e)/12),a=Math.floor(e/12)+1,r=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>a+t)),l=n+a-1;return r.concat(l)})(p,b);function v(e){s(Bt(12*e,p,b))}return n("section",{className:"mt-7",children:a("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[a("div",{className:"flex justify-between",children:[a("div",{className:"mr-[42px]",children:[on({calculatorParams:h,moneyValue:r,defaultSum:u,setMoneyValue:l}),ln({minMonths:p,maxMonths:b,monthsValue:i,defaultMonths:x,setMonthsValue:s}),n("div",{className:"flex mb-7",children:N.map(((e,t)=>function(e,t,r){const l=an(e);return n("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>r(e),children:a("span",{className:"font-semibold text-sm",children:[e," ",l]})},String(t))}(e,t,v)))}),n(It,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n(It,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:d})]}),sn(f,g)]}),a("div",{className:"flex items-center",children:[n(q,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),mn=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],dn=r((({className:e="",context:t,tabs:r=mn,anchor:l=null})=>{const[i,o]=t.useState(0);return a("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:l,children:[n(s,{className:"w-full text-center mb-8",headingType:Yt(e),title:"Калькулятор"}),n(Xt,{tabs:r,currentTabIndex:i,onTabClick:o}),n(cn,{context:t,directoryName:r[i]?.directoryName})]})}));async function hn(){try{const e=await fetch(un);return await e.json()}catch(e){console.error(e)}}const un="/api/v1/exchangerates.json",xn=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),pn=e=>e?xn.format(e):"",bn="font-light text-left font-normal text-sm text-secondary-text",gn={USD:"DollarIcon",EUR:"EuroIcon"},fn=r((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:bn,children:"Валюта"}),n("th",{className:`${bn} pl-11`,children:"Купить"}),n("th",{className:`${bn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>Nn(e)))})]}))),Nn=e=>{const t=e?.currency?.currency;return a("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(u,{image:{icon:gn[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:pn(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:pn(e.saleExchangeRate)})]},t)},vn=r((({className:e="",address:t,distance:r})=>a("div",{className:`flex text-sm ${e}`,children:[n(u,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,r?a("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",r]}):null]})]}))),yn=r((({className:e="",id:t,name:a,type:r="text",placeholder:l})=>n("input",{className:e,id:t,name:a||t,type:r,placeholder:l}))),wn=r((({className:e="",id:t,name:a,children:r})=>n("select",{className:e,id:t,name:a||t,children:r}))),In=r((({className:e="",value:t,selected:a,children:r})=>n("option",{className:e,value:`${t}`,selected:a,children:r}))),kn=r((({codes:e,className:t=""})=>a("div",{className:`grid gap-3.5 ${t}`,children:[Cn("Хочу продать",e),Cn("Получу",e,"USD"),n(q,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function Cn(e,t,r){return a("div",{className:"relative flex items-center",children:[n(yn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(wn,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(In,{value:e,selected:e===r,children:e},String(t))))}):null]})}const $n=["USD","EUR"],Sn=["RUB","USD","EUR"],Tn=[{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:"Американский доллар"}}],Mn={address:"Москва, ул.Ленина д.28",distance:"6км"},Dn=r((({className:e="",context:t,title:r="Курсы обмена валют",anchor:l=null})=>{const i=function(e){const{data:t}=e(un,hn);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==$n.indexOf(e?.currency?.currency||"")))||Tn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(le,{context:t,title:n(s,{headingType:Yt(e),title:r,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(fn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(vn,{...Mn})]}),i?.length?n(kn,{className:"grow",exchangeCurrencyItems:i,codes:Sn}):null]})})})})),An=["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"],Rn={"bg-white":"text-primary-main",transparent:"text-white"},Pn={"bg-white":"text-black",transparent:"text-white"},Ln=r((({className:e="",href:t,logo:r,children:l=r?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[r?.image?.src?n(u,{image:r.image,className:Rn[s],width:"40",height:"45",asSVG:!0}):n(yt,{className:`${Rn[s]} w-10`,viewBox:"0 0 40 45",paths:An.map((e=>({d:e})))}),o?null:Vn(l,s,r?.title)]}))),Vn=(e,t,a)=>n("span",{className:`${Pn[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),Bn=r((({className:e,context:t})=>{const{term:r,setTerm:l}=t.useSearch();return a("form",{className:`relative ${e||""}`,children:[a("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-[24px] h-[24px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),r?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:r,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(q,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),jn=r((({className:e="",items:t,hasButton:r,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return a("div",{className:e,children:[t?.length?t.map(_n):null,r?n(q,{version:"primary",className:"mb-6 w-full",...G({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),_n=(e,t)=>{const{type:r,text:l,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:Gn(r,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},Gn=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${Wn(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},Wn=e=>e.replaceAll(/\D/g,""),En=r((({links:e,className:t="",context:a})=>{const r=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(On,{index:t,...G({router:r,handlerDecorator:l},e)},String(t))))}):null})})),On=r((({className:e="",index:t,text:a,href:r,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:i,children:a||`Документ ${t}`}))),Fn=e=>t=>e?.href===t?.href,Un=(e,t)=>{return(a=e,r=t,(a||[]).map((e=>r?.find(Fn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Fn(e))))));var n,a,r};function Hn(e){const{data:t}=e(zn(),Zn);return t||{}}async function Zn(){const e=await fetch(zn());return await e.json()}function zn(){return`/wcms-resources/${m.SITEMAP||"sitemap"}.json`}const qn=r((({className:e="",items:t,context:a})=>{const r=Hn(a.useAsyncData),l=Un(r.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:l?.map(((e,t)=>Jn(e,t,i)))})})),Jn=(e,t,{router:r,handlerDecorator:l})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Xn,{...G({router:r,handlerDecorator:l},e),index:t},String(t))))]},String(t))},Xn=r((({text:e,href:t,target:a,index:r})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${r}`}))),Kn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Qn=r((({href:e,version:t})=>{const{icon:a,width:r,height:l,label:i}=Kn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:a?n(u,{image:a,width:r,height:l,asSVG:!0,className:"block"}):null})})),Yn=r((({className:e="",media:t,version:r,context:l,children:i})=>{const s=l.useRouter(),{handlerDecorator:o}=l;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(Qn,{version:r,...G({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),ea=r((({className:e,links:t,context:r})=>{const l=r.useRouter(),{handlerDecorator:i}=r;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(ta,{index:t,...G({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),ta=r((({className:e,index:t,text:a,href:r,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:r,target:l,onClick:i,children:a||`Документ ${t}`}))),na="w-[204px]",aa=r((({className:e,documents:t,relatedEnterprises:r,contacts:l,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:m=null})=>a("footer",{className:`px-9 pt-9 pb-10 bg-white ${e||""}`,id:m,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(Ln,{className:na}),n(Bn,{context:c,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(jn,{items:l,context:c,hasButton:!0}),n(Yn,{media:i,context:c,children:"Соцсети"}),n(Yn,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(qn,{className:"pt-[3px]",context:c,items:o})]}),n(En,{className:"mt-[98px]",links:r,context:c}),n(ea,{links:t,context:c})]}))),ra=r((({className:e="",title:t,description:r,calendar:l,anchor:i=null})=>a("section",{className:`font-sans bg-white p-[50px] ${e}`,id:i,children:[n(s,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:r}),l?la(l):null]}))),la=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),r=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:r.map((e=>ia(e,t)))}),n("div",{className:"flex w-full",children:r.map(((e,t)=>a("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:sa(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},ia=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),sa=e=>e.month.map((e=>e.image?.src?n("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:n(u,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),oa=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(B,""))(R(A(e)?t.href:t.pathname))),ca=e=>t=>oa(t.href,e),ma=e=>t=>t.items?.some(ca(e))||oa(t.href,e)||((e,t)=>P(e)===P(t.href))(t.href,e),da=r((({className:e="",text:t,href:a,target:r,active:l,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:m="bg-white"})=>n("a",{className:`${ha(m,l,i)} ${e}`,href:a,target:r,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:ua(m,l,i),children:t||o})}))),ha=(e,t,n)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},ua=(e,t,n)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${a} font-sans font-light text-sm`},xa=r((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),pa={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},ba={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},ga={"bg-white":"GridIcon",transparent:"GridIconWhite"},fa=r((({context:e,className:t,defaultLocation:r="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(r);return a("div",{className:`flex items-center ${t||""}`,children:[n(da,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),n(da,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),n(xa,{className:`mr-5 ${pa[l]}`,ariaLabel:"Поиск по сайту",children:n(u,{image:"LoupeIcon",className:"h-full",asSVG:!0})}),n(xa,{className:`${ba[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(u,{image:ga[l],className:"h-full",asSVG:!0})})]})})),Na=e=>(t=[])=>{const n=t?.filter(ca(e));var a;return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):null},va="absolute left-0 -bottom-3 w-full h-[2px]",ya=r((({className:e="",text:t,href:r,target:l,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:m})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:r,target:l,onClick:s,"data-item-name":m,children:[n("span",{className:wa(c,i),children:t||o}),i?n("div",{className:Ia(c,i)}):null]}))),wa=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},Ia=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${va}`:va,ka=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),Ca=!ka()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,a]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const r={};e.forEach((e=>{r[e.target.toString()]=e.isIntersecting}));const l=$a(r,a,"hidden");$a(r,n,"invisible"),t&&(l?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,$a=(e,t,n)=>{const a="hidden"!==n;return t.some((t=>{const r=t.toString(),l=a?!e[r]:e[r];return r in e&&t.classList.toggle(n,l),a?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},Sa={"bg-white":"bg-primary-text",transparent:"bg-white"},Ta=r((({context:e,subItems:t,bgColor:r})=>{const[l,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(ka())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{Ca?.observe(e)}))}),200);const c=Na(s)(t),m=t?.map((e=>n(ya,{className:"mr-8",active:e===c,...G({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:r},e.href)));return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:m}),Ma({subMenuIsShow:l,toggleSubMenu:()=>i(!l),subItems:t,bgColor:r,router:s,handlerDecorator:o})]})})),Ma=({subMenuIsShow:e,toggleSubMenu:t,subItems:r,bgColor:l,router:i,handlerDecorator:s})=>a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(l).map(Aa)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:Da(r,i,s)})]}),Da=(e,t,a)=>e?.map((e=>n("a",{...G({router:t,handlerDecorator:a},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Aa=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Sa[e]}`},String(t)),Ra={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Pa=r((({className:e="",defaultLocation:t="Москва",showSubMenu:r=!0,bgColor:l="bg-white",context:i,topItems:s,anchor:o=null,logo:c})=>{const m=i.useRouter(),d=Hn(i.useAsyncData),{handlerDecorator:h}=i,u=Un(d.topItems,s),x=u.find(ma(m)),p=u.map(((e,t)=>n(da,{active:e===x,...G({router:m,handlerDecorator:h},e),"aria-label":e.text,bgColor:l},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${l} ${e}`,id:o,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(Ln,{className:"mr-8",bgColor:l,logo:c}),p,n(fa,{context:i,className:"ml-auto",defaultLocation:t,bgColor:l})]}),n("div",{className:`mt-6 h-[1px] ${Ra[l]}`}),r&&x?.items?.length?n(Ta,{context:i,subItems:x.items,bgColor:l}):null]})})})),La=r((({className:e="",title:t,description:r,image:l,benefits:i,insuranceSum:o,monthLimit:c})=>a("section",{className:`px-[100px] py-[50px] bg-white text-primary-text ${e}`,children:[t?n(s,{headingType:"h3",title:t,className:"text-center"}):null,r?n("div",{className:"text-center text-md mt-3",children:r}):null,n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]",children:[l?.src?n(u,{image:l}):null,a("div",{className:"w-[558px] m-auto",children:[i?n("div",{className:"flex flex-col gap-4",children:i.map(Va)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?Ba("Страховая сумма:",o,Boolean(c)):null,c?Ba("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Va(e,t){return a("div",{className:"flex items-center gap-5",children:[e?.icon?n(u,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:"flex",children:n("div",{className:"text-title-2xs",children:e.label})})]},String(t))}function Ba(e,t,r){return a("div",{className:`flex justify-between items-center gap-2 w-full ${r?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-base",children:e}),a("span",{className:"text-primary-main text-title-2xs",children:[kt(t)," ₽"]})]})}const ja=r((({className:e="",context:t,title:r="Мобильное приложение",qr:l,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${we(e)} ${ye(e)} `,id:o,children:n(le,{context:t,title:r?n(s,{headingType:"h3",title:r,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}):null,buttons:i?.length?n(K,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex items-center",children:[l?.src&&l?.href&&n("a",{href:l.href,target:"_blank","aria-label":r,children:n("img",{src:l.src,alt:r,title:r,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),_a=r((({className:e,text:t,onClick:a,href:r,target:l,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:a,href:r,target:l,children:t}))),Ga=r((({className:e,context:t,title:r,buttons:l,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=Na(s)(l);return a("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:r}),l?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>n(_a,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...G({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),Wa=r((({className:e="",text:t,active:a,children:r,onClick:l,href:i,target:s="_self"})=>n("a",{className:Ea(e,a),target:s,href:i,onClick:l,children:n("span",{className:Oa(a),children:t||r})}))),Ea=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,Oa=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,Fa=r((({className:e="",navigatorTabs:t,context:a,anchor:r=null})=>{const l=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,id:r,children:t?t.map(Ua(a,l)):null})})),Ua=(e,t)=>(a,r)=>{const{useRouter:l,handlerDecorator:i}=e,s=l(),o=L(t),c=o?a.href===o:0===r;return n(Wa,{active:c,...G({router:s,handlerDecorator:i},a)},a.href)},Ha=r((({blocks:e,columns:t=1,context:a})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:n("div",{className:"box-border w-full p-9 "+(t>1?"flex flex-wrap":""),children:ze({context:a,className:"box-border p-5",columns:t,blocks:e})})}))),Za=r((({label:e,isExpanded:t,blocks:r,columns:l,dataTheme:i=null,context:s})=>{const{hasContent:o,icon:c,handleToggle:m,isActive:h}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,r]=e.useState(n),l=t?.length;return{isActive:a,hasContent:l,icon:a?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{if(!l)return;r(!a);const t=(({currentTarget:e})=>e.previousSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:s,blocks:r,initialState:t});return a("div",{className:"border-0 border-b border-solid border-main-divider",children:[o?n(Ha,{isExpanded:h,columns:l,blocks:r,context:s}):null,a("button",{className:"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer","data-theme":i,onClick:m,children:[n("span",{className:"pr-3",children:h?"Скрыть":e}),o?n(d,{name:c,width:"20",height:"20",asSVG:!0}):null]})]})})),za=r((({blockItems:e,colorPalette:t,context:a,className:r=""})=>n("section",{className:`font-sans bg-white text-primary-text ${r}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,r)=>n(Za,{...e,dataTheme:t,context:a},`BlockItem${r}`)))}):null}))),qa=r((({className:e,context:t,title:r,description:l="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${we(e)} ${ye(e)} `,id:i,children:a(le,{context:t,title:r?n(s,{headingType:Yt(e),title:r,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(Q,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:Ja()})]})}))),Ja=(e=3)=>Ka(100,e).map((e=>Math.floor(e))).map(Xa),Xa=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ka=(e,t)=>[e].concat(t>0?Ka(e/1.618,t-1):[]),Qa={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ya={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},er={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},tr=r((({className:e="",context:t,slides:r=[],version:l="primary",anchor:i=null})=>{const s=r.map((e=>e.nav)),o=r.map((e=>e.productBlock)),[c,m]=t.useState(0);return a("section",{id:i,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${Qa[l]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,a)=>function(e,t,a){const{version:r}=e,l=r?Ya[r].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{className:`pl-[50px] z-[1] ${l}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:l},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:r,onClick:l,version:i}){const s=t===r,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${er[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${Ya[i].title}`,m=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${Ya[i].text}`,d="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${d}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${m}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>m(t),version:l})))})]})}));const nr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ar=r((({className:e="",context:t,title:r="Акции и спецпредложения",date:l,description:i,buttons:o=[],version:c="primary",anchor:m=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${nr[c]} ${we(e)} ${ye(e)} `,id:m,children:n(le,{context:t,title:r?n(s,{headingType:Yt(e),title:r,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(K,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[l?n("div",{className:"text-sm mb-2",children:rr(l)}):null,n("div",{className:"text-base",children:i})]})})})));function rr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const lr=r((({context:e,className:t="",title:r,description:l,items:i,image:o,version:c,socialMedia:m})=>n("section",{className:`border border-solid box-border p-[30px] w-[524px] ${t}`,role:"listitem",children:a(le,{context:e,className:"flex justify-between",title:r?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:r}):null,image:o?.src&&n(u,{className:"mt-auto ml-7",image:o}),children:[l?n(Q,{className:"text-left",description:l}):null,i?.length?n(re,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:c}):null,n(Yn,{className:"pt-[42px] pb-0",media:m,version:c,context:e})]})}))),ir="absolute top-0 bottom-0 w-[84px]",sr=r((({context:e,recommendations:t=[],className:r="",title:l,version:i,anchor:o=null})=>{const[c,m]=e.useState(0),d="secondary"===i?"border-white/50":"border-main-stroke";return a("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${r}`,id:o,children:[l?n(s,{headingType:"h2",className:"mb-6",title:l}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(or({context:e,version:i,className:d})):null}),cr({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:m}),n("div",{className:`${ir} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${ir} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),or=({context:e,version:t,className:a})=>(r,l)=>n(lr,{context:e,...r,version:t,className:a},String(l)),cr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:r})=>{const l=e>2,i=l&&e-t>2;return a("div",{children:[l&&t>0?n(Ae,{className:"absolute top-1/2 left-8 z-10 mt-6",onClick:()=>r(t-1),ariaLabel:"Пролистать влево"}):null,i?n(Ae,{className:"absolute top-1/2 right-8 z-10 mt-6 rotate-180",onClick:()=>r(t+1),ariaLabel:"Пролистать вправо"}):null]})},mr=r((({className:e="",title:t,showLines:r=!0,steps:l=[],button:i,anchor:o=null})=>{const c=l.length>3;return a("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),l?.length?a("div",{className:"box-border "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:E(n("div",{className:"h-0.5 w-full bg-secondary-light "+(r?"":"opacity-0")}))(l.map(dr))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:l.map(((e,t)=>hr(e,t,Boolean(i?.text))))})]}):null,i?.text?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),dr=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon?.icon&&n(u,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),hr=(e,t,r)=>a("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[a("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!r?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:e.button.text}):null]},String(t)),ur=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],xr=r((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(pr)})}))),pr=({label:e,description:t,list:r,image:l,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,r?.items?.length?br(r):null,l?n(u,{image:l}):null,i?.length?gr(i):null]},String(s)),br=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),gr=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},r)=>n(q,{className:(r>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:ur(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(r))))}),fr=r((({row:{header:e,data:t},activeCardIndex:r,isLastRow:l})=>a(tt,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(u,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(st,{activeCardIndex:r,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(xr,{cell:e,isLastRow:l},String(t))))}):null]}))),Nr=r((({className:e,context:t,title:r,description:l,rowHeaders:i,columns:o,anchor:c=null})=>{const[m,d]=t.useState(0),h=vr(o),u=yr(i,h),x=pt({columnsLength:h.length,colsLengthForScroll:2,activeCardIndex:m,setActiveCardIndex:d}),{isScrollAvailable:p}=x;return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[r?n(s,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:r}):null,l?n("div",{className:"mb-9 text-center text-m-base",children:l}):null,u?.length?a("div",{role:"table",children:[a("div",{className:"relative",children:[u.map(((e,t,{length:a})=>n(fr,{row:e,isLastRow:t+1===a,activeCardIndex:m},String(t)))),n(ut,{...x})]}),p?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}):null]})})),vr=e=>e?.map((({data:e})=>e))||[],yr=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),wr=r((e=>{const{tabs:t,currentTag:a,onTabClick:r,className:l="",isShowCounter:i=!0}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${l}`,role:"tablist",children:t?.map(Ir(r,i,a))})})),Ir=(e,t,r)=>(l,i)=>{const s=r===l.tag,o=s?"text-white":"text-secondary-text group-hover:text-primary-main",c="min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm \n "+(s?"bg-white/30 text-white":"bg-secondary-light text-secondary-text");return n("div",{className:`flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>e(l.tag),"aria-selected":String(s),tag:l?.tag,children:a("div",{className:"flex flex-1 items-center justify-center",children:[l?.title?n("h3",{className:`mr-8 ${o}`,children:l?.title}):null,t?n("div",{className:`flex items-center justify-center ${c}`,children:n("span",{children:l.count})}):null]})},String(i))};function kr(e){return e?e.filter(Boolean).join(" "):""}const Cr={ProductBlock:pe,ProductTile:Se},$r=r((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Sr(t)):null}))),Sr=e=>(t,a)=>{const r=t?.blockType;if(!r||!(r in Cr))return null;const l=kr(t?.style);return n(Cr[r],{context:e,...t,className:l},`block_${a}`)},Tr=r((({className:e="",tabs:t,context:r,anchor:l=null,groupBlocks:i=[]})=>{const[s,o]=r.useState(t?.[0]?.tag),c=(m=i,(d=s)?m.filter((e=>e?.tags?.includes(d))):m);var m,d;const h=t?.map((e=>{const t=e.tag?i.filter((t=>t?.tags?.includes(`${e.tag}`))).length:i.length;return{...e,count:t}}));return a("section",{id:l,className:`box-border gap-1 h-12 ${e}`,children:[h?.length?n(wr,{currentTag:s,onTabClick:o,tabs:h}):null,i.length?n($r,{context:r,groupBlocks:c}):null]})})),Mr={Accordion:Ke,BenefitsBlock:Qe,Bonus:et,ComparisonTable:gt,Calculator:qt,CreditCalculator:dn,ExchangeRateTile:Dn,Footer:aa,Gallery:Oe,GracePeriod:ra,Header:Pa,Headline:N,Insurance:La,LinkDocs:T,MiniGallery:Fe,MobileAppTile:ja,NavigatorTabs:Fa,PictureText:D,ProductBlock:pe,ProductGallery:tr,ProductTile:Se,PromoTile:ar,OtherProducts:za,Recommendation:sr,StepsBlock:mr,TariffsTable:Nr,TextBlock:ge,Tile:ke,Navigation:Ga,Placeholder:qa,GroupBlock:Tr},Dr=r((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:Ar()}))),Ar=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("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"})]})},Rr=r((({className:e,context:t,anchor:r=null})=>{const l=t.useLikeService();return a("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:r,children:[n(Dr,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(Dr,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),Pr=!ka(),Lr=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Vr=r((({className:e="",context:t,blocksRegistry:r,data:{style:l,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:m=Lr})=>{const{header:d}=s,h=t.useRouter();return Pr&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const a=t?.getBoundingClientRect();a&&a.top>0&&a.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),a("section",{className:`relative ${kr(l)} ${e}`,"data-theme":c,children:[d?.blocks?.length?n("div",{className:`${kr(d?.style)}`,children:d.blocks.map(((e,n)=>Br({block:e,blockDecorator:m,blocksRegistry:r,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Br({block:e,blockDecorator:m,blocksRegistry:r,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Rr,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Br({block:e,blockDecorator:t,blocksRegistry:a,context:r},l){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||qa;return t({blockClassName:`scroll-mt-12 ${kr(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:r,anchor:o,...a},`${i}-${l}`)}},`block-${l}`)}e.Blocks=Mr,e.ContentPage=Vr,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(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:a}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:r}=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:r},body:JSON.stringify({node_ids:a})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:r,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:r,UserID:l},body:JSON.stringify({node_id:a,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:r,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:r,UserID:l},body:JSON.stringify({node_id:a,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=E,e.projectSettings=m,e.setup=t,e.url=V,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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:a,...l}={})=>{const r=Object.assign({},l,a?{innerHTML:a.__html}:{});return e(t,r,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),a=(...e)=>t._jsxs(...e),l=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const r="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title-lg",h3:"text-title",h4:"text-title-sm",h5:"text-title-xs",h6:"text-title-2xs tracking-[0.2px]"},s=l((e=>{const{className:t="",headingType:a,title:l,as:r}=e;if(!a)return;return n(r||a,{className:`font-sans m-0 ${i[a]} ${t}`,children:l})}));var o,c;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlane="AirPlane",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.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.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCan="WateringCan"}(o||(o={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlane="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowsRewindRight="Стрелка",e.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.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кино",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.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.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCan="Добавить продукт"}(c||(c={}));const m=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}},d=l((({className:e="",name:t="",alt:l=`Иконка ${c[t]||t}`,title:r=l,iconVersion:i,asSVG:s,...o})=>{const d=`${m.CDN||""}icons/${t}.svg`,h="white"===i?"text-black invert":"text-primary-main";return s?a("svg",{className:e,...o,"aria-hidden":"true",children:[r?n("title",{children:r}):null,l?n("desc",{children:l}):null,n("use",{className:h,href:`${d}#icon`,xlinkHref:`${d}#icon`})]}):n("img",{className:e,src:d,alt:l,title:r,...o,"aria-hidden":"true"})}));function h(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const u=l((({className:e="",image:t,imageClassName:a="",...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?n(d,{className:e,iconVersion:h(t),name:r,...l}):null:n(x,{className:e,imageClassName:a,image:t})})),x=l((({className:e="",image:t,imageClassName:l=""})=>t?a("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},a)=>n("source",{srcSet:e,type:b(t)},`${a}_${e}`))):null,p(t,l)]}):null)),p=(e,t="")=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title;return n("img",{src:e.src,className:t,alt:r,title:l,style:a,...e.size})};function b(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},f={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},N=l((({bgColorHeadline:e="transparent",align:t="left",className:l="",title:r,description:i,anchor:o=null})=>{const c=f[e];return a("section",{className:`p-[50px] ${c.background} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:`text-primary-text ${c.text} ${g[t]}`,title:r}):null,i?n("p",{className:`font-normal text-base mt-4 ${c.text} ${g[t]}`,children:i}):null]})})),v=l((({className:e,iconClassName:t,textClassName:l,suffixClassName:r,doc:i,icon:s})=>{const{text:o,fileSize:c,...m}=i;return a("a",{className:e,role:"link",...m,children:[s?n(u,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?a("span",{className:l,children:[o,n("span",{className:r,children:m?.href&&y(w(m.href),c)})]}):null]})})),y=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),w=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},I=l((({className:e="",doc:t,icon:a})=>n(v,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:a}))),k=l((({className:e,documents:t,columnsMode:a="double",icon:l})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===a?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(I,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),C={left:"text-left",center:"text-center",right:"text-right"},$={double:"mb-8",single:"mb-[26px]"},S={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},T=l((({className:e="",title:t,subtitle:l,align:r,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:m=null})=>a("section",{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,id:m,children:[t?n(s,{headingType:"h2",className:`${l?"mb-2.5":$[c]} ${C[r??"center"]}`,title:t}):null,l?n("h3",{className:`text-base mt-0 font-normal ${$[c]} ${C[r??"center"]}`,children:l}):null,n(k,{className:S[c],columnsMode:c,documents:i,icon:o})]}))),M={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},D=l((({className:e="",title:t,image:l,benefits:r,version:i="primary",directionRight:o=!1,anchor:c=null})=>a("section",{className:`relative font-sans p-14 ${M[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),a("div",{className:"flex justify-center mt-9",children:[l?.src&&n(u,{className:o?"order-2 ml-6":"mr-6",image:l}),r?.length?n("div",{className:"flex flex-col",children:r.map(((e,t)=>function(e,t,l){return a("div",{className:"flex flex-row mb-8",children:[e.icon?n(u,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,a("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===l?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===l?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const A=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),R=e=>{if(!e||!A(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t},L=e=>{if(!e||!A(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var V=Object.freeze({__proto__:null,isURL:A,withoutQuery:P,getOrigin:R,getHash:L});const B="/mobile",j=(e,t)=>{if(!e)return e;const n=R(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function W({router:e,handlerDecorator:t=_},n){const a=((e,t)=>{if(!e)return e;const n=j(e,t)||"",a=t?.pathname.startsWith(B);return a&&!A(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!A(a),r=!n.target||"_self"===n.target;l&&r&&(t.preventDefault(),e.push(a))}),n)}}const G=l((({text:e,href:t,target:a,onClick:l,className:r="",children:i})=>t?n("a",{className:`no-underline ${r}`,href:t,target:a,onClick:l,children:n("span",{className:r,children:e||i})}):n("span",{className:r,children:e||i})));function E(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const O=l((e=>{const{text:t,aboveText:l,appendLeft:r,appendRight:i}=e;return a("div",{className:F(e),children:[r||null,U(e)?a("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:l}),n("div",{className:"text-button text-left",children:t})]}):null,i||null]})})),F=e=>{const{version:t,aboveText:n,rounded:a}=e;if("link"===t)return"";const l="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",U(e)?l:"h-12 w-12",a?"rounded-full":""].join(" ")},U=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},Z={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},z="text-center font-sans select-none",q=l((e=>{const{text:t,aboveText:a,appendLeft:l,appendRight:r,children:i,disabled:s,rounded:o,...c}=e,m=i??n(O,{text:t,aboveText:a,appendLeft:l,appendRight:r,rounded:o});return n(s?X:J,{rounded:o,...c,children:m})})),J=l((({className:e="",ariaLabel:t,version:a="none",rounded:l,href:r,target:i,children:s,onClick:o,...c})=>n("a",{className:`${z} inline-block cursor-pointer no-underline ${H[a]||""} ${l?"rounded-full":"rounded-md"} ${e}`,href:r,target:i,onClick:o,"aria-label":t,role:r?"link":"button",...c,children:s}))),X=l((({className:e,children:t,ariaLabel:a,version:l="none",rounded:r})=>n("div",{role:"button","aria-disabled":"true","aria-label":a,tabIndex:"-1",className:`inline-block ${z} ${Z[l]||""} ${r?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),K=l((({context:e,className:t="",buttons:a})=>{const{handlerDecorator:l}=e,r=e.useRouter();return a?.length?n("div",{className:t,children:a.map(((e,t)=>function({icon:e,...t},a){if(!t?.text)return;return n(q,e?{appendLeft:n(u,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(a))}(W({router:r,handlerDecorator:l},e),t)))}):null}));const Q=l((e=>{const{className:t="",description:a}=e;return n("div",{className:`font-normal text-base ${t}`,children:a})})),Y={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},ee={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},te=l((({className:e="",isDotted:t=!0,children:l,version:r="primary"})=>a("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?n("div",{className:ne(r)}):null,n("span",{children:l})]}))),ne=e=>`${Y[e]} ${ee[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,ae={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},le=l((e=>{const{className:t="",itemClassName:a,isDotted:l,items:r,version:i="primary"}=e;return n("section",{className:`${ae[i]} ${t}`,role:"list",children:r?.length?r.map(((e,t)=>n(te,{className:a,isDotted:l,version:i,children:e},String(t)))):null})})),re=l((({className:e="",title:t,children:l,buttons:r,image:i,anchor:s=null})=>a("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,a("div",{className:"flex grow w-full justify-between",children:[a("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:l}),r?n("div",{children:r}):null]}),i]})]}))),ie={primary:"text-primary-text",secondary:"text-white"},se={primary:"text-secondary-text",secondary:"text-white"};function oe(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border ${n}`}const ce=l((({className:e="",context:t,title:l,headingType:r="h2",description:i,benefits:s,benefitsVersion:o="normal",buttons:c,image:m,items:d,version:h="primary",isDotted:x=!0,textBlockClassName:p=""})=>{const b="secondary"===h?"text-white":"text-primary-text";return a("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${p}`,children:a(re,{context:t,title:me(l,r),buttons:de(t,c),children:[i?n(Q,{className:`mt-4 max-w-[600px] text-md font-light ${b}`,description:i}):null,s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function({benefit:e,version:t="primary",benefitsVersion:l="normal"},r){const i="white"===l||"secondary"===t;return a("div",{className:"flex gap-4 items-center",children:[e.icon?n(u,{className:oe(t,l),image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}):null,a("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px] min-w-[149px]",children:[n("div",{className:`text-xl m-0 ${ie[t]}`,children:e.label}),e.description&&n("div",{className:`font-light text-m-md ${se[t]}`,children:e.description})]})]},String(r))}({benefit:e,version:h,benefitsVersion:o},t)))}):null,d?.length?n(le,{className:"mt-5 text-title-2xs font-light",items:d,itemClassName:"mb-[7px]",version:h,isDotted:x}):null]})}),m?.src&&n(u,{className:"mt-[-50px]",image:m})]})})),me=(e,t)=>e?n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,de=(e,t)=>t?.length?n(K,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null;function he(e,t,l){return a("div",{className:`flex items-center ${l}`,children:[n(q,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:e?.text,href:e?.href,children:n(u,{className:"w-4 h-4",image:e?.icon||{icon:"ArrowLeftIcon"},asSVG:!0})}),e?.text?n("span",{className:"text-m-md font-light",children:e.text}):null]})}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},xe={primary:"text-secondary-text",secondary:"text-white/80"},pe=l((e=>{const{context:t,className:l="",breadcrumbs:r,backwardButton:i,version:s="primary",anchor:o=null,...c}=e,m=t.useRouter(),{handlerDecorator:d}=t;return a("section",{className:`font-sans overflow-hidden pt-[50px] pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${ue[s]} ${l}`,id:o,children:[i?.text?he(i,s,"mb-10 -mt-2.5"):null,r?.length?n("div",{className:"text-xs mb-6",children:E(n("span",{className:`mx-2 ${xe[s]}`,children:"/"}))(r.map(((e,t)=>n(G,{...W({router:m,handlerDecorator:d},{className:xe[s],...e})},String(t)))))}):null,n(ce,{context:t,version:s,...c})]})})),be={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},ge=l((({title:e,description:t,blockVersion:l="primary",iconVersion:r,image:i,className:s,anchor:o=null})=>{const c=be[l];return a("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===r?fe(c.icon):null,"big"===r?Ne(i):null,a("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}):null,t?n("div",{className:`text-sm ${c.description}`,children:t}):null]})]})}));function fe(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function Ne(e){return e?.src?n(u,{className:"pt-0.5 pr-3",image:e}):null}const ve=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ye(e=""){const t=ve(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function we(e=""){const t=ve(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ie={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ke=l((e=>{const{context:t,title:l,headingType:r="h3",description:i,items:o,children:c,buttons:m,image:d,className:h="",version:x="primary",role:p,anchor:b=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${h} ${Ie[x]} ${we(h)} ${ye(h)} `,role:p,id:b,children:a(re,{context:t,title:l?n(s,{headingType:r,as:"h3",title:l,className:`whitespace-pre-wrap max-w-[600px] ${l?"mb-3":""}\n ${"primary"===x?"text-primary-text":""}`}):null,buttons:m?.length?n(K,{context:t,buttons:m.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-9 gap-3"}):null,image:d?.src&&n(u,{className:"mt-auto ml-7",image:d}),children:[i?n(Q,{className:"max-w-[600px] text-title-new-sm font-light",description:i}):null,c,Ce(o,x)]})})}));function Ce(e,t){return e?.length?n(le,{items:e,itemClassName:"text-title-2xs font-light mt-2",version:"primary"===t?"tile":"tile-white"}):null}const $e={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Se=l((({context:e,className:t="",title:l,headingType:r="h3",description:i,additionalDescription:o,benefits:c,buttons:m,image:d,version:h="primary",anchor:x=null})=>n("section",{className:`bg-white overflow-hidden text-primary-text font-sans p-9 box-border ${t} ${$e[h]} ${we(t)} ${ye(t)} `,id:x,children:a(re,{context:e,title:l?n(s,{headingType:r,as:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:m?.length?n(K,{context:e,buttons:m,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(u,{className:"mt-auto ml-7",image:d}),children:[i?n(Q,{className:"mt-4 max-w-[600px]",description:i}):null,Te(c,h),o?De(o,h):null]})})));function Te(e=[],t){return a("div",{className:"flex mt-5 mb-1",children:[e.length?n("div",{className:"mr-8",children:e.map(Me)}):null,e.length?n("div",{className:"pt-1",children:e.map(((e,a)=>function(e,t,a="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[a]}`,children:e.description},String(t))}(e,a,t)))}):null]})}function Me(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}function De(e,t="primary"){return n("div",{className:`text-sm mt-2.5 ${{primary:"text-secondary-text",secondary:"text-white"}[t]}`,children:e})}const Ae=l((({className:e,disabled:t,...a})=>n(q,{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,...a,children:n(u,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon"},width:"16",height:"16",asSVG:!0})}))),Pe={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},Re={normal:3,mini:4},Le={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Ve={normal:380,mini:276},Be=l((({title:e,description:t,image:l,items:r,button:i,version:s,isDotted:o=!0})=>{const c=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return a("div",{className:"h-full flex flex-col justify-between text-center",children:[a("div",{children:[l?.src?n("div",{className:"flex justify-center",children:n(u,{className:"mb-6",image:l})}):null,e?_e(e,c):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,r?.length?We(r,s,o):null]}),i?.text?je(i):null]})}));function je(e){return n(q,{className:"mt-6 w-full",appendLeft:e.icon&&n(u,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function _e(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function We(e,t="primary",a){return n(le,{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)),isDotted:a,version:t})}const Ge=l((({context:e,title:t,description:l,cards:r=[],version:i="normal",activeCardIndex:o})=>a("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),a("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,l?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:l}):null]}),n("div",{className:`flex ${r?.length<=Re[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*Ve[i]}px)`},role:"list",children:r?.map(((t,a)=>function({card:e,version:t},a){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Le[t]} ${Pe[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(Be,{...e})},String(a))}({card:t,version:i,context:e},a)))})]})));const Ee=l((({context:e,cards:t=[],className:l="",version:r="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),m=t?.length>Re[r],d=m&&t?.length-o>Re[r],h=m&&o>0;return a("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${l}`,id:i,children:[n(Ge,{context:e,cards:t,version:r,activeCardIndex:o,...s}),h?n(Ae,{className:"absolute top-1/2 left-8 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,d?n(Ae,{className:"absolute top-1/2 right-8 z-10 mt-[25px] rotate-180",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null,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"})]})})),Oe=l((e=>n(Ee,{...e,version:"normal"}))),Fe=l((e=>n(Ee,{...e,version:"mini"}))),Ue=l((({className:e="",documents:t,anchor:a=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:a,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?He(t):null})}))),He=e=>e.map(((e,t)=>{const{text:a,...l}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...l,children:a||null})},`list_item_${String(t)}`)})),Ze={Headline:N,LinkDocs:T,TextBlock:ge,PictureText:D,ProductBlock:pe,Tile:ke,ProductTile:Se,Gallery:Oe,MiniGallery:Fe,LinkList:Ue},ze=({blocks:e,context:t,className:n,columns:a})=>e?.length?e.map(qe({context:t,className:n,columns:a})):null,qe=({context:e,columns:t,className:a})=>(l,r)=>{const i=l?.blockListType;if(!i||!(i in Ze))return null;return n("div",{className:`${a} ${2===t?"w-1/2":""}`,children:n(Ze[i],{context:e,...l,className:"!p-0"})},`block_${r}`)},Je=l((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:ze({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Xe=l((({label:e,isExpanded:t,blocks:l,context:r})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[a,l]=e.useState(n),r=t?.length;return{isActive:a,hasContent:r,icon:a?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!r)return;l(!a);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:r,blocks:l,initialState:t});return a("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[a("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(u,{image:o,className:"text-primary-main",width:"24",height:"24",asSVG:!0}):null]}),s?n(Je,{isExpanded:i,blocks:l,context:r}):null]})})),Ke={left:"text-left",center:"text-center",right:"text-right"},Qe=l((({title:e,description:t,accordionItems:l,context:r,className:i="",anchor:o=null,accordionAlignTitle:c="center"})=>a("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:`mb-2.5 ${Ke[c]}`,title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,l?.length?n("ul",{className:"list-none m-0 p-0",children:l.map(((e,t)=>n(Xe,{...e,context:r},`AccordionItem${t}`)))}):null]}))),Ye=l((({className:e="",title:t,benefits:l,anchor:r=null})=>a("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e}`,id:r,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:l.map(et)}):null]}))),et=(e,t)=>a("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e?.icon?n(u,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,a("div",{children:[e?.label?n("h3",{className:"font-medium text-xl m-0",children:e.label}):null,e?.description?n("div",{className:"font-normal text-sm mt-2",children:e.description}):null]})]},String(t)),tt=l((e=>{const{className:t="",title:l,description:r,bonusItems:i,anchor:o=null}=e;return n("section",{className:`font-sans bg-white p-[50px] pb-9 ${t}`,id:o,children:a("div",{className:"container",children:[l?n(s,{headingType:"h3",className:"text-center",title:l}):null,r?n("div",{className:"text-md font-light text-center mt-[10px]",children:r}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:a("div",{className:"flex justify-between w-full",children:[a("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?a("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),nt=l((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),at="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",lt="border-main-stroke border-solid border",rt="border-main-divider border border-t-0 border-x-0",it="w-[200px] mr-6",st={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ot=l((({children:e,activeCardIndex:t,columnWidth:a,version:l="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:st[l],style:{transform:`translateX(-${t*a}px)`},children:e})}))),ct=l((({icon:e,image:t,title:l,link:r})=>a("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${lt} ${at}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(u,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(u,{className:"mb-[18px]",image:t}),l?n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,r?.text&&n("div",{className:"mt-auto w-full",children:n(q,{href:r.href,target:r.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:r.text})})})]}))),mt=l((({colHeaders:e,activeCardIndex:t,router:l,handlerDecorator:r})=>a(nt,{children:[n("div",{className:it,role:"columnheader",scope:"col"}),n(ot,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(ct,{...e,link:e.link&&W({router:l,handlerDecorator:r},e.link)},String(t))))})]}))),dt=l((({cell:e,isFirstRow:t,isLastRow:a,isFillGradient:l})=>n("div",{className:`w-80 box-border flex flex-col ${lt} ${a?"border-t-0 rounded-b-md":"border-y-0"} ${l?at:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${rt} ${l&&t?"border-t":""} ${a?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ht(e,t,l)))})}))),ht=({label:e,description:t},l,r)=>a("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?n("h4",{className:"text-xl font-medium m-0 "+(r?"text-white":""),children:e}):null,t?n("div",{className:"text-sm opacity-80 "+(r?"text-white":"text-secondary-text"),children:t}):null]},String(l)),ut=l((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:r,isFirstRow:i,isLastRow:s})=>a(nt,{children:[e?.title?n("div",{className:`text-sm py-7 ${rt} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(ot,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>n(dt,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:r&&0===t},String(t))))}):null]}))),xt=l((({isScrollAvailable:e,onNextClick:t,onPrevClick:l,showNextButton:r,showPrevButton:i})=>e?n("div",{children:a("div",{className:"absolute top-7 right-7 z-10",children:[n(Ae,{className:"mt-4 rotate-180",onClick:t,disabled:!r,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Ae,{className:"mt-4",onClick:l,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),pt=l((({rowData:e,activeCardIndex:t,isColoredFirstColumn:l,...r})=>a("div",{className:"relative",children:[e.map(((e,a,{length:r})=>n(ut,{row:e,isFirstRow:0===a,isLastRow:a+1===r,activeCardIndex:t,isColoredFirstColumn:l},String(a)))),n(xt,{...r})]}))),bt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{onNextClick:()=>a(n+1),onPrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},gt=l((({context:e,columns:t,rowHeaders:l,isShowAllRow:r,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,m=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],h=l?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,r?l.length:i),[u,x]=e.useState(0),p=bt({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:u,setActiveCardIndex:x}),{isScrollAvailable:b}=p;return a("div",{children:[a("div",{role:"table",children:[m?.length?n(mt,{colHeaders:m,activeCardIndex:u,router:o,handlerDecorator:c}):null,h?.length?n(pt,{rowData:h,activeCardIndex:u,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ft=l((({className:e,context:t,title:l,rowHeaders:r,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:m=null})=>{const[d,h]=t.useState(!o);return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:m,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:l}),n(gt,{context:t,columns:i,rowHeaders:r,isShowAllRow:d,isColoredFirstColumn:c,visibleRowLength:o}),o?Nt({isShowAllRow:d,onClick:()=>h(!d)}):null]})})),Nt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:a("div",{className:"flex w-full",children:[n("div",{className:it}),n("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})});function vt(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),yt);return n||{}}async function yt(e){const t=await fetch(e);return await t.json()}const wt=l((({className:e,viewBox:t,fill:a="none",width:l,height:r,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:a,width:l,height:r,children:i.map((({d:e,fill:t,...a},l)=>n("path",{d:e,fill:t||"currentColor",...s,...a},l)))}))),It=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],kt=l((({text:e,checked:t,onChange:l,className:r})=>n("div",{className:r,children:a("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{l(e.target.checked)},checked:t}),n(wt,{paths:It,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-m-base cursor-pointer",children:e}):null]})}))),Ct=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),$t=l((({title:e,value:t,postfix:l="",prefix:r,className:i=""})=>a("div",{className:`mb-5 ${i}`,children:[e?n("div",{className:"text-base font-light",children:e}):null,t?a("div",{className:"text-title font-normal",children:[r," ",Ct(Math.round(t))," ",l]}):null]}))),St=3e4,Tt=3e6,Mt=Math.round(41.5),Dt=l((({className:e,title:t,items:l=[],min:r=1,max:i=100,step:s=1,value:o=r,onChange:c})=>{const m=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},d={backgroundSize:`${(100*(o-r)/(i-r)).toFixed(2)}% 100%`};return a("div",{className:e,children:[a("label",{className:"block relative",children:[t?n("span",{className:"text-base text-secondary-text pl-4",children:t}):null,n("input",{className:"m-0 mt-[5px] font-sans text-title w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text",value:Ct(o),onChange:e=>m(e.target.value),onBlur:()=>{c&&(o<r&&c(r),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 bottom-[-4px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:r,max:i,step:s,value:o,onChange:e=>m(e.target.value),style:d})})]}),n("div",{className:"flex justify-between my-3",children:l.map(((e,t)=>n("span",{className:"text-sm leading-[14px] text-secondary-text pl-4",children:e},String(t))))})]})}));function At(e){const{title:t,className:a="",calculatorParams:l,moneyValue:r,defaultSum:i,setMoneyValue:s,isShowItems:o=!0}=e,c=l?.minSum||St,m=l?.maxSum||Tt,d=[`От ${Ct(c)} ₽`,`До ${Ct(m)} ₽`];return n(Dt,{className:a,title:t,items:o?d:[],min:c,max:m,step:1e3,value:r||i,onChange:s})}const Pt=10.2,Rt=e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||Pt:t?.rateWithoutInsurance||Pt:Pt},Lt=e=>{const{tableRows:t,isAnnuity:n=!1}=e;if(!t)return{};return t.find((e=>e.isAnnuity===n))||{}},Vt=e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3,Bt=e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):Mt,jt=(e,t,n)=>Math.max(t,Math.min(e,n));function _t(e){const{title:t,minMonths:a,maxMonths:l,monthsValue:r,defaultMonths:i,setMonthsValue:s}=e,o=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return n(Dt,{className:"mt-6",title:t,items:[`От ${o(a)}`,`До ${o(l)}`],min:a,max:l,step:1,value:r||i,onChange:s})}function Wt(e,t){return t?.length?n(K,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}function Gt({rate:e,title:t,sup:l,className:r=""}){const i=String(e).replace(".",",");return a("div",{children:[n("div",{className:"text-sm font-light ml-3",children:t}),a("div",{className:"flex justify-start",children:[n("span",{className:`calc-rate-text font-mohave text-[200px] leading-[250px] pr-4 mt-[-16px] ${r}`,children:i}),l?n("span",{className:"calc-rate-text text-[65px] leading-[75px]",children:l}):""]})]})}const Et=l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),[u,x]=e.useState(!1),p=vt(e.useAsyncData,"directoryName").rows,b=Lt({tableRows:p,isAnnuity:c}),g=Vt(b),f=Bt(b),N=b?.minMonths||1,v=b?.maxMonths||84,y=Rt({calculatorParams:b,isInsurance:u}),w=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=jt(l,t.minSum||St,t.maxSum||Tt);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:b,paymentType:"annuity",rate:y,sum:r||g,months:s||f});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[At({title:"Сумма кредита, ₽",calculatorParams:b,moneyValue:r,defaultSum:g,setMoneyValue:i}),_t({title:"Сумма кредита, ₽",minMonths:N,maxMonths:v,monthsValue:s,defaultMonths:f,setMonthsValue:o}),a("div",{className:"pt-7",children:[n(kt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:m}),n(kt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:d,onChange:h}),n(kt,{className:"mt-3",text:"Комплексная страховая защита",checked:u,onChange:x})]})]}),n("div",{children:y?Gt({rate:y,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[w?n($t,{title:"Ежемесячный платеж",value:w,postfix:"₽"}):null,Wt(e,l)]})]})}));function Ot(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||St,s=t?.maxSum||Tt;return n(Dt,{title:"Стоимость недвижимости, ₽ ",items:[`От ${Ct(i)} ₽`,`До ${Ct(s)} ₽`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ft(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||St,s=t?.maxSum||Tt;return n(Dt,{className:"mt-6",title:"Первоначальный взнос, ₽ ",items:[`От ${Ct(i)} рублей`,`До ${Ct(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}function Ut({credit:e,period:t,taxRefund:l}){return a("div",{children:[n($t,{title:"Сумма кредита",value:e,postfix:"₽"}),n($t,{title:"Срок",value:t,postfix:"лет"}),n($t,{title:"Налоговый вычет",value:l,postfix:"₽"})]})}const Ht={CreditCalculatorForm:Et,MortgageCalculatorForm:l((({context:e,className:t="",buttons:l})=>{const[r,i]=e.useState(void 0),[s,o]=e.useState(void 0),[c,m]=e.useState(!1),[d,h]=e.useState(!1),u=vt(e.useAsyncData,"directoryName").rows,x=Lt({tableRows:u,isAnnuity:c}),p=Vt(x),b=Bt(x),g=x?.minMonths||1,f=x?.maxMonths||84,N=Rt({calculatorParams:x,isInsurance:c});return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[Ot({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),Ft({calculatorParams:x,moneyValue:r,defaultSum:p,setMoneyValue:i}),_t({title:"Срок ипотеки, месяцев",minMonths:g,maxMonths:f,monthsValue:s,defaultMonths:b,setMonthsValue:o}),a("div",{className:"mt-7",children:[n(kt,{text:"Страхование жизни",checked:c,onChange:m}),n(kt,{className:"mt-4",text:"Страхование жизни, злоровья и временной утраты трудоспособности",checked:d,onChange:h})]})]}),a("div",{children:[n("div",{children:N?Gt({rate:N,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),n($t,{title:"Ежемесячный платеж",value:777777,postfix:"₽"})]}),a("div",{children:[n("div",{className:"w-[351px]",children:Ut({credit:3892e3,period:15,taxRefund:65e4})}),Wt(e,l)]})]})})),DepositCalculatorForm:l((({context:e,className:t="",buttons:l,rate:r,minSum:i,maxSum:s,minMonths:o,maxMonths:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x=vt(e.useAsyncData,"directoryName").rows,p=Lt({tableRows:x,isAnnuity:!1}),b=Vt(p),g=Bt(p);return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[At({title:"Сумма вклада, ₽",calculatorParams:{minSum:i,maxSum:s},moneyValue:m,defaultSum:b,setMoneyValue:d}),_t({title:"Срок вклада, месяцев",minMonths:o||1,maxMonths:c||84,monthsValue:h,defaultMonths:g,setMonthsValue:u})]}),n("div",{children:r?Gt({rate:r,title:"Ставка",sup:"%",className:"tracking-[-25px]"}):null}),a("div",{className:"w-[351px]",children:[n($t,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),n($t,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),Wt(e,l)]})]})})),BonusCalculatorForm:l((({context:e,className:t="",buttons:l,bonus:r,minSumTrip:i,maxSumTrip:s,minSumOther:o,maxSumOther:c})=>{const[m,d]=e.useState(void 0),[h,u]=e.useState(void 0),x={minSum:i,maxSum:s},p={minSum:o,maxSum:c},b=r||2528;return a("section",{className:t,children:[a("div",{className:"w-[468px]",children:[At({title:"Сумма покупок в категории путешествия, ₽",calculatorParams:x,moneyValue:m,defaultSum:Vt(x),setMoneyValue:d,isShowItems:!1}),At({className:"mt-6",title:"Сумма покупок в остальных категориях, ₽",calculatorParams:p,moneyValue:h,defaultSum:Vt(p),setMoneyValue:u,isShowItems:!1})]}),n("div",{children:b?Gt({rate:b,title:"Баллов за месяц",className:"tracking-[-14px]"}):null}),a("div",{className:"w-[240px]",children:[n($t,{title:"Баллов за год",value:948841}),Wt(e,l)]})]})}))},Zt=({blockCalcTabs:e,context:t,className:n})=>e?.length?e.map(zt({context:t,className:n})):null,zt=({context:e,className:t})=>(a,l)=>{const r=a?.calcType;if(!r||!(r in Ht))return null;return n("section",{className:`box-border relative flex grow-0 shrink-0 basis-full ${t}`,role:"listitem",children:n("div",{className:"box-border p-9 w-full",children:n(Ht[r],{context:e,...a,className:"!p-0 flex justify-between"})})},`${String(l)}`)},qt="absolute w-[56px] h-[56px] min-h-[56px] max-h-[56px] top-1 z-10 mt-[25px] bg-white rounded-full",Jt=l((({className:e="",context:t,calcTabs:l=[],anchor:r=null})=>{const i=l.map((e=>e.nav||{})),s=l.map((({calculatorBlock:e})=>e||{})),[o,c]=t.useState(0),[m,d]=t.useState(0),h=l?.length>3&&l?.length>m+3,u=m>0;return a("section",{id:r,className:`box-border overflow-hidden relative font-sans w-100 bg-white text-primary-text ${e}`,children:[a("div",{children:[i.length>1?Xt({tabsShift:m,tabsNav:i,activeSlideIndex:o,setActiveSlideIndex:c}):null,u?n(Ae,{className:`${qt} left-3 top-3`,onClick:()=>d(m-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}):null,h?n(Ae,{className:`${qt} right-3 top-3 rotate-180`,onClick:()=>d(m+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}):null]}),n("div",{className:"flex",style:{transform:`translateX(-${o}00%)`},role:"list",children:Zt({context:t,className:e,blockCalcTabs:s})})]})}));function Xt({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:r}){return a("div",{children:[n("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-[38px] box-border duration-1000",children:n("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:r}){const i=t===l,s=i?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[322px] min-w-[322px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",o=i?"text-md-new mb-1.5":"text-base mb-[3px]",c=i?"text-base text-white":"text-m-md",m=i?"":"text-primary-main";return a("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative border-[1px] border-main-stroke cursor-pointer text-left border-b-0 flex\n ${s}`,children:[n(u,{className:`h-[24px] w-[24px] min-w-[24px] min-h-[24px] mr-4 ${m}`,image:{...e?.icon,iconVersion:i?"white":"normal"},width:"24",height:"24",asSVG:!0}),a("div",{className:"border-0",children:[n("div",{className:`font-medium ${o}`,children:e?.title}),n("div",{className:`text-secondary-text ${c}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})}),n("div",{className:"w-full h-2 bg-primary-main"})]})}const Kt=l((({tabs:e,currentTabIndex:t,onTabClick:a})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(Qt(t,a))}))),Qt=(e,t)=>(l,r)=>{const i=e===r;return a("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(r),"aria-selected":String(i),children:[l?.icon?Yt(l,i):null,a("div",{children:[l?.title?n("h3",{className:"font-medium m-0 text-base",children:l?.title}):null,l?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:l?.description}):null]})]},String(r))},Yt=(e,t)=>n("div",{className:"h-full mt-1",children:n(u,{className:"w-5 h-5 mr-3 "+(t?"invert":""),image:e?.icon||"CardIcon",asSVG:!t})});function en(e=""){const t=ve(e);return t<=4?"h4":t<=8?"h3":"h2"}const tn=3e4,nn=3e6,an=Math.round(41.5),ln=(rn=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=rn.find((([t])=>t(e)))||[];return t});var rn;function sn(e){const{minMonths:t,maxMonths:a,monthsValue:l,defaultMonths:r,setMonthsValue:i}=e;return n(Dt,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:a,step:1,value:l||r,onChange:i})}function on(e,t){return a("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),a("div",{className:"text-lg mb-3",children:[Ct(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),a("div",{className:"text-lg",children:[t," %"]})]})}function cn(e){const{calculatorParams:t,moneyValue:a,defaultSum:l,setMoneyValue:r}=e,i=t?.minSum||tn,s=t?.maxSum||nn;return n(Dt,{title:"Желаемая сумма кредита, ₽",items:[`От ${Ct(i)} рублей`,`До ${Ct(s)} рублей`],min:i,max:s,step:1e3,value:a||l,onChange:r})}const mn=l((({context:e,directoryName:t})=>{const[l,r]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[m,d]=e.useState(!0),h=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:vt(e.useAsyncData,t).rows,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(h),x=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):an)(h),p=h?.minMonths||1,b=h?.maxMonths||84,g=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:h,isInsurance:m}),f=(e=>{const{calculatorParams:t,paymentType:n,rate:a,sum:l,months:r}=e;if(!t)return 0;const i=jt(l,t.minSum||tn,t.maxSum||nn);if("annuity"===n){const e=Number(a)/1200;return i*(e+e/(Math.pow(1+e,r)-1))}return i/r+i*(Number(a)/12)})({calculatorParams:h,paymentType:"annuity",rate:g,sum:l||u,months:i||x}),N=((e,t)=>{const n=Math.ceil((t-e)/12),a=Math.floor(e/12)+1,l=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>a+t)),r=n+a-1;return l.concat(r)})(p,b);function v(e){s(jt(12*e,p,b))}return n("section",{className:"mt-7",children:a("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[a("div",{className:"flex justify-between",children:[a("div",{className:"mr-[42px]",children:[cn({calculatorParams:h,moneyValue:l,defaultSum:u,setMoneyValue:r}),sn({minMonths:p,maxMonths:b,monthsValue:i,defaultMonths:x,setMonthsValue:s}),n("div",{className:"flex mb-7",children:N.map(((e,t)=>function(e,t,l){const r=ln(e);return n("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>l(e),children:a("span",{className:"font-semibold text-sm",children:[e," ",r]})},String(t))}(e,t,v)))}),n(kt,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n(kt,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:m,onChange:d})]}),on(f,g)]}),a("div",{className:"flex items-center",children:[n(q,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),dn=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],hn=l((({className:e="",context:t,tabs:l=dn,anchor:r=null})=>{const[i,o]=t.useState(0);return a("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:r,children:[n(s,{className:"w-full text-center mb-8",headingType:en(e),title:"Калькулятор"}),n(Kt,{tabs:l,currentTabIndex:i,onTabClick:o}),n(mn,{context:t,directoryName:l[i]?.directoryName})]})}));async function un(){try{const e=await fetch(xn);return await e.json()}catch(e){console.error(e)}}const xn="/api/v1/exchangerates.json",pn=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),bn=e=>e?pn.format(e):"",gn="font-light text-left font-normal text-sm text-secondary-text",fn={USD:"DollarIcon",EUR:"EuroIcon"},Nn=l((({className:e,exchangeCurrencyItems:t})=>a("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:a("tr",{children:[n("th",{className:gn,children:"Валюта"}),n("th",{className:`${gn} pl-11`,children:"Купить"}),n("th",{className:`${gn} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>vn(e)))})]}))),vn=e=>{const t=e?.currency?.currency;return a("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:a("div",{className:"flex items-center",children:[t?n(u,{image:{icon:fn[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:bn(e.saleExchangeRate)})]},t)},yn=l((({className:e="",address:t,distance:l})=>a("div",{className:`flex text-sm ${e}`,children:[n(u,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),a("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,l?a("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",l]}):null]})]}))),wn=l((({className:e="",id:t,name:a,type:l="text",placeholder:r})=>n("input",{className:e,id:t,name:a||t,type:l,placeholder:r}))),In=l((({className:e="",id:t,name:a,children:l})=>n("select",{className:e,id:t,name:a||t,children:l}))),kn=l((({className:e="",value:t,selected:a,children:l})=>n("option",{className:e,value:`${t}`,selected:a,children:l}))),Cn=l((({codes:e,className:t=""})=>a("div",{className:`grid gap-3.5 ${t}`,children:[$n("Хочу продать",e),$n("Получу",e,"USD"),n(q,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function $n(e,t,l){return a("div",{className:"relative flex items-center",children:[n(wn,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(In,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(kn,{value:e,selected:e===l,children:e},String(t))))}):null]})}const Sn=["USD","EUR"],Tn=["RUB","USD","EUR"],Mn=[{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:"Американский доллар"}}],Dn={address:"Москва, ул.Ленина д.28",distance:"6км"},An=l((({className:e="",context:t,title:l="Курсы обмена валют",anchor:r=null})=>{const i=function(e){const{data:t}=e(xn,un);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==Sn.indexOf(e?.currency?.currency||"")))||Mn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:r,children:n(re,{context:t,title:n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap"}),children:a("div",{className:"flex",children:[a("div",{className:"mr-[43px] pt-4",children:[i?n(Nn,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(yn,{...Dn})]}),i?.length?n(Cn,{className:"grow",exchangeCurrencyItems:i,codes:Tn}):null]})})})})),Pn=["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"],Rn={"bg-white":"text-primary-main",transparent:"text-white"},Ln={"bg-white":"text-black",transparent:"text-white"},Vn=l((({className:e="",href:t,logo:l,children:r=l?.title,targetBlank:i,bgColor:s="bg-white",hideTitle:o})=>a("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[l?.image?.src?n(u,{image:l.image,className:Rn[s],width:"40",height:"45",asSVG:!0}):n(wt,{className:`${Rn[s]} w-10`,viewBox:"0 0 40 45",paths:Pn.map((e=>({d:e})))}),o?null:Bn(r,s,l?.title)]}))),Bn=(e,t,a)=>n("span",{className:`${Ln[t]} font-medium ml-2.5`,children:e||a||"Россельхозбанк"}),jn=l((({className:e,context:t})=>{const{term:l,setTerm:r}=t.useSearch();return a("form",{className:`relative ${e||""}`,children:[a("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-[24px] h-[24px]",children:n(u,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input"}),n(q,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),_n=l((({className:e="",items:t,hasButton:l,context:r})=>{const i=r.useRouter(),{handlerDecorator:s}=r;return a("div",{className:e,children:[t?.length?t.map(Wn):null,l?n(q,{version:"primary",className:"mb-6 w-full",...W({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Wn=(e,t)=>{const{type:l,text:r,description:i}=e;return a("div",{className:"mb-4",children:[n("div",{children:Gn(l,r)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},Gn=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${En(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},En=e=>e.replaceAll(/\D/g,""),On=l((({links:e,className:t="",context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(Fn,{index:t,...W({router:l,handlerDecorator:r},e)},String(t))))}):null})})),Fn=l((({className:e="",index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),Un=e=>t=>e?.href===t?.href,Hn=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(Un(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Un(e))))));var n,a,l};function Zn(e){const{data:t}=e(qn(),zn);return t||{}}async function zn(){const e=await fetch(qn());return await e.json()}function qn(){return`/wcms-resources/${m.SITEMAP||"sitemap"}.json`}const Jn=l((({className:e="",items:t,context:a})=>{const l=Zn(a.useAsyncData),r=Hn(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:r?.map(((e,t)=>Xn(e,t,i)))})})),Xn=(e,t,{router:l,handlerDecorator:r})=>{const{text:i,href:s,items:o,target:c}=e;return a("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Kn,{...W({router:l,handlerDecorator:r},e),index:t},String(t))))]},String(t))},Kn=l((({text:e,href:t,target:a,index:l})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:a||"_self",children:e||`Раздел ${l}`}))),Qn=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Yn=l((({href:e,version:t})=>{const{icon:a,width:l,height:r,label:i}=Qn.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!a)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:a?n(u,{image:a,width:l,height:r,asSVG:!0,className:"block"}):null})})),ea=l((({className:e="",media:t,version:l,context:r,children:i})=>{const s=r.useRouter(),{handlerDecorator:o}=r;return a("div",{children:[n("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>n(Yn,{version:l,...W({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),ta=l((({className:e,links:t,context:l})=>{const r=l.useRouter(),{handlerDecorator:i}=l;return a("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(na,{index:t,...W({router:r,handlerDecorator:i},e)},String(t))))}):null]})})),na=l((({className:e,index:t,text:a,href:l,target:r,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:l,target:r,onClick:i,children:a||`Документ ${t}`}))),aa="w-[204px]",la=l((({className:e,documents:t,relatedEnterprises:l,contacts:r,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:m=null})=>a("footer",{className:`px-9 pt-9 pb-10 bg-white ${e||""}`,id:m,children:[a("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(Vn,{className:aa}),n(jn,{context:c,className:"grow"})]}),a("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[a("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(_n,{items:r,context:c,hasButton:!0}),n(ea,{media:i,context:c,children:"Соцсети"}),n(ea,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(Jn,{className:"pt-[3px]",context:c,items:o})]}),n(On,{className:"mt-[98px]",links:l,context:c}),n(ta,{links:t,context:c})]}))),ra=l((({className:e="",title:t,description:l,calendar:r,anchor:i=null})=>a("section",{className:`font-sans bg-white p-[50px] ${e}`,id:i,children:[n(s,{headingType:"h3",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:l}),r?ia(r):null]}))),ia=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return a("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md text-center",children:l.map((e=>sa(e,t)))}),n("div",{className:"flex w-full",children:l.map(((e,t)=>a("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:oa(e)}),a("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},sa=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),oa=e=>e.month.map((e=>e.image?.src?n("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:n(u,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),ca=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(B,""))(P(A(e)?t.href:t.pathname))),ma=e=>t=>ca(t.href,e),da=e=>t=>t.items?.some(ma(e))||ca(t.href,e)||((e,t)=>R(e)===R(t.href))(t.href,e),ha=l((({className:e="",text:t,href:a,target:l,active:r,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:m="bg-white"})=>n("a",{className:`${ua(m,r,i)} ${e}`,href:a,target:l,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:xa(m,r,i),children:t||o})}))),ua=(e,t,n)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},xa=(e,t,n)=>{let a="text-white";return"bg-white"===e&&(a=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${a} font-sans font-light text-sm`},pa=l((({className:e="",children:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":a,children:t}))),ba={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},ga={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},fa={"bg-white":"GridIcon",transparent:"GridIconWhite"},Na=l((({context:e,className:t,defaultLocation:l="",bgColor:r="bg-white"})=>{const[i,s]=e.useGeolocation(l);return a("div",{className:`flex items-center ${t||""}`,children:[n(ha,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:r}),n(ha,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:r}),n(pa,{className:`mr-5 ${ba[r]}`,ariaLabel:"Поиск по сайту",children:n(u,{image:"LoupeIcon",className:"h-full",asSVG:!0})}),n(pa,{className:`${ga[r]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(u,{image:fa[r],className:"h-full",asSVG:!0})})]})})),va=e=>(t=[])=>{const n=t?.filter(ma(e));var a;return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):null},ya="absolute left-0 -bottom-3 w-full h-[2px]",wa=l((({className:e="",text:t,href:l,target:r,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:m})=>a("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:l,target:r,onClick:s,"data-item-name":m,children:[n("span",{className:Ia(c,i),children:t||o}),i?n("div",{className:ka(c,i)}):null]}))),Ia=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},ka=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${ya}`:ya,Ca=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),$a=!Ca()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,a]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const l={};e.forEach((e=>{l[e.target.toString()]=e.isIntersecting}));const r=Sa(l,a,"hidden");Sa(l,n,"invisible"),t&&(r?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,Sa=(e,t,n)=>{const a="hidden"!==n;return t.some((t=>{const l=t.toString(),r=a?!e[l]:e[l];return l in e&&t.classList.toggle(n,r),a?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},Ta={"bg-white":"bg-primary-text",transparent:"bg-white"},Ma=l((({context:e,subItems:t,bgColor:l})=>{const[r,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(Ca())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{$a?.observe(e)}))}),200);const c=va(s)(t),m=t?.map((e=>n(wa,{className:"mr-8",active:e===c,...W({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:l},e.href)));return a("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:m}),Da({subMenuIsShow:r,toggleSubMenu:()=>i(!r),subItems:t,bgColor:l,router:s,handlerDecorator:o})]})})),Da=({subMenuIsShow:e,toggleSubMenu:t,subItems:l,bgColor:r,router:i,handlerDecorator:s})=>a("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(r).map(Pa)}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:Aa(l,i,s)})]}),Aa=(e,t,a)=>e?.map((e=>n("a",{...W({router:t,handlerDecorator:a},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),Pa=(e,t)=>n("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Ta[e]}`},String(t)),Ra={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},La=l((({className:e="",defaultLocation:t="Москва",showSubMenu:l=!0,bgColor:r="bg-white",context:i,topItems:s,anchor:o=null,logo:c})=>{const m=i.useRouter(),d=Zn(i.useAsyncData),{handlerDecorator:h}=i,u=Hn(d.topItems,s),x=u.find(da(m)),p=u.map(((e,t)=>n(ha,{active:e===x,...W({router:m,handlerDecorator:h},e),"aria-label":e.text,bgColor:r},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${r} ${e}`,id:o,children:a("div",{className:"container",children:[a("div",{className:"flex items-center",children:[n(Vn,{className:"mr-8",bgColor:r,logo:c}),p,n(Na,{context:i,className:"ml-auto",defaultLocation:t,bgColor:r})]}),n("div",{className:`mt-6 h-[1px] ${Ra[r]}`}),l&&x?.items?.length?n(Ma,{context:i,subItems:x.items,bgColor:r}):null]})})})),Va=l((({className:e="",title:t,description:l,image:r,benefits:i,insuranceSum:o,monthLimit:c})=>a("section",{className:`px-[100px] py-[50px] bg-white text-primary-text ${e}`,children:[t?n(s,{headingType:"h3",title:t,className:"text-center"}):null,l?n("div",{className:"text-center text-md mt-3",children:l}):null,n("div",{children:a("div",{className:"mt-5 mx-auto flex justify-center gap-[120px] mt-[30px]",children:[r?.src?n(u,{image:r}):null,a("div",{className:"w-[558px] m-auto",children:[i?n("div",{className:"flex flex-col gap-4",children:i.map(Ba)}):null,a("div",{className:"bg-secondary-light h-15 flex mt-7 gap-6 px-5 py-4",children:[o?ja("Страховая сумма:",o,Boolean(c)):null,c?ja("Ежемесячный лимит:",c,Boolean(o)):null]})]})]})})]})));function Ba(e,t){return a("div",{className:"flex items-center gap-5",children:[e?.icon?n(u,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full bg-secondary-light",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:"flex",children:n("div",{className:"text-title-2xs",children:e.label})})]},String(t))}function ja(e,t,l){return a("div",{className:`flex justify-between items-center gap-2 w-full ${l?"w-fit":"w-full"}`,children:[n("span",{className:"text-secondary-text text-base",children:e}),a("span",{className:"text-primary-main text-title-2xs",children:[Ct(t)," ₽"]})]})}const _a=l((({className:e="",context:t,title:l="Мобильное приложение",qr:r,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${we(e)} ${ye(e)} `,id:o,children:n(re,{context:t,title:l?n(s,{headingType:"h3",title:l,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}):null,buttons:i?.length?n(K,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:a("div",{className:"flex items-center",children:[r?.src&&r?.href&&n("a",{href:r.href,target:"_blank","aria-label":l,children:n("img",{src:r.src,alt:l,title:l,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),Wa=l((({className:e,text:t,onClick:a,href:l,target:r,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:a,href:l,target:r,children:t}))),Ga=l((({className:e,context:t,title:l,buttons:r,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=va(s)(r);return a("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:l}),r?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:r.filter((({text:e})=>e)).map(((e,t)=>n(Wa,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...W({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),Ea=l((({className:e="",text:t,active:a,children:l,onClick:r,href:i,target:s="_self"})=>n("a",{className:Oa(e,a),target:s,href:i,onClick:r,children:n("span",{className:Fa(a),children:t||l})}))),Oa=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,Fa=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-m-md`,Ua=l((({className:e="",navigatorTabs:t,context:a,anchor:l=null})=>{const r=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-14 ${e}`,id:l,children:t?t.map(Ha(a,r)):null})})),Ha=(e,t)=>(a,l)=>{const{useRouter:r,handlerDecorator:i}=e,s=r(),o=L(t),c=o?a.href===o:0===l;return n(Ea,{active:c,...W({router:s,handlerDecorator:i},a)},a.href)},Za="transition-all duration-300 max-h-0 overflow-hidden",za=l((({blocks:e=[],context:t,hiddenBlocksNum:l=0,foldButtonClasses:r,foldButtonLabel:i,foldButtonDataTheme:s,isUnfolded:o,render:c=(e=>e)})=>{const m=jt(l,0,e.length),{icon:h,handleToggle:u,isActive:x}=(({context:e,initialState:t=!1})=>{const[n,a]=e.useState(t);return{icon:n?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;a(!n);const l=t.previousSibling.getElementsByClassName(Za)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:n}})({context:t,initialState:o});return e?a("div",{children:[qa(e,c,{blocksToHide:m,isActive:x}),l?a("button",{className:r||"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer","data-theme":s,onClick:u,children:[n("span",{className:"pr-3",children:x?"Скрыть":i}),n(d,{name:h,width:"20",height:"20",asSVG:!0})]}):null]}):null})),qa=(e,t,{blocksToHide:l,isActive:r})=>{const i=e.slice(0,e.length-l),s=e.slice(-l);return t(a("div",{children:[i,n("div",{className:Za,children:s})]}),r)},Ja=l((({label:e,blocks:t,columns:a=1,context:l,dataTheme:r,isUnfolded:i})=>{const s=ze({context:l,className:"box-border p-5",columns:a,blocks:t});return n("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?n(za,{foldButtonDataTheme:r,hiddenBlocksNum:t?.length,blocks:s,isUnfolded:i,context:l,foldButtonLabel:e,render:(e,t)=>n(Xa,{columns:a,isActive:t,children:e})}):null})})),Xa=l((({columns:e,children:t,isActive:a})=>n("div",{className:`box-border w-full ${a?"p-9":""} ${e>1?"flex flex-wrap":""}`,children:t}))),Ka=l((({blockItems:e,colorPalette:t,context:a,className:l=""})=>n("section",{className:`font-sans bg-white text-primary-text ${l}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,l)=>n(Ja,{...e,dataTheme:t,context:a},`BlockItem${l}`)))}):null}))),Qa=l((({className:e,context:t,title:l,description:r="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${we(e)} ${ye(e)} `,id:i,children:a(re,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[r?n(Q,{className:"mt-4 max-w-[600px]",description:r}):null,n("figure",{className:"m-0 min-w-[600px]",children:Ya()})]})}))),Ya=(e=3)=>tl(100,e).map((e=>Math.floor(e))).map(el),el=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),tl=(e,t)=>[e].concat(t>0?tl(e/1.618,t-1):[]),nl={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},al={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ll={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},rl=l((({className:e="",context:t,slides:l=[],version:r="primary",anchor:i=null})=>{const s=l.map((e=>e.nav)),o=l.map((e=>e.productBlock)),[c,m]=t.useState(0);return a("section",{id:i,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${nl[r]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,a)=>function(e,t,a){const{version:l}=e,r=l?al[l].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(ce,{className:`pl-[50px] z-[1] ${r}`,context:a,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:r},a,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:r,version:i}){const s=t===l,o=s?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${ll[i]}`,c=s?"text-primary-text text-title-2xs":`text-base ${al[i].title}`,m=s?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${al[i].text}`,d="secondary"===i?"border-white/50":"border-black/50";return n("button",{type:"button",onClick:r,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border-[1px] border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${o} ${d}\n `,children:a("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${c}`,children:e?.title}),n("div",{className:`text-secondary-text ${m}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>m(t),version:r})))})]})}));const il={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},sl=l((({className:e="",context:t,title:l="Акции и спецпредложения",date:r,description:i,buttons:o=[],version:c="primary",anchor:m=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${il[c]} ${we(e)} ${ye(e)} `,id:m,children:n(re,{context:t,title:l?n(s,{headingType:en(e),title:l,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(K,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:a("div",{className:"mt-1.5",children:[r?n("div",{className:"text-sm mb-2",children:ol(r)}):null,n("div",{className:"text-base",children:i})]})})})));function ol(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const cl=l((({context:e,className:t="",title:l,description:r,items:i,image:o,version:c,socialMedia:m})=>n("section",{className:`border border-solid box-border p-[30px] w-[524px] ${t}`,role:"listitem",children:a(re,{context:e,className:"flex justify-between",title:l?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:l}):null,image:o?.src&&n(u,{className:"mt-auto ml-7",image:o}),children:[r?n(Q,{className:"text-left",description:r}):null,i?.length?n(le,{className:"text-md text-left font-light flex flex-col flex-1 gap-2",items:i,version:c}):null,n(ea,{className:"pt-[42px] pb-0",media:m,version:c,context:e})]})}))),ml="absolute top-0 bottom-0 w-[84px]",dl=l((({context:e,recommendations:t=[],className:l="",title:r,version:i,anchor:o=null})=>{const[c,m]=e.useState(0),d="secondary"===i?"border-white/50":"border-main-stroke";return a("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${l}`,id:o,children:[r?n(s,{headingType:"h2",className:"mb-6",title:r}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(hl({context:e,version:i,className:d})):null}),ul({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:m}),n("div",{className:`${ml} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${ml} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),hl=({context:e,version:t,className:a})=>(l,r)=>n(cl,{context:e,...l,version:t,className:a},String(r)),ul=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const r=e>2,i=r&&e-t>2;return a("div",{children:[r&&t>0?n(Ae,{className:"absolute top-1/2 left-8 z-10 mt-6",onClick:()=>l(t-1),ariaLabel:"Пролистать влево"}):null,i?n(Ae,{className:"absolute top-1/2 right-8 z-10 mt-6 rotate-180",onClick:()=>l(t+1),ariaLabel:"Пролистать вправо"}):null]})},xl=l((({className:e="",title:t,showLines:l=!0,steps:r=[],button:i,anchor:o=null})=>{const c=r.length>3;return a("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),r?.length?a("div",{className:"box-border "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:E(n("div",{className:"h-0.5 w-full bg-secondary-light "+(l?"":"opacity-0")}))(r.map(pl))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:r.map(((e,t)=>bl(e,t,Boolean(i?.text))))})]}):null,i?.text?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),pl=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon?.icon&&n(u,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),bl=(e,t,l)=>a("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[a("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!l?n(q,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:e.button.text}):null]},String(t)),gl=e=>e?.alt||e?.title||c[e?.icon?e.icon:""],fl=l((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(Nl)})}))),Nl=({label:e,description:t,list:l,image:r,buttons:i},s)=>a("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,l?.items?.length?vl(l):null,r?n(u,{image:r}):null,i?.length?yl(i):null]},String(s)),vl=e=>n(le,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),yl=e=>n("div",{children:e.map((({icon:e,rounded:t,...a},l)=>n(q,{className:(l>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:gl(e),rounded:t,appendLeft:e?n(u,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...a},String(l))))}),wl=l((({row:{header:e,data:t},activeCardIndex:l,isLastRow:r})=>a(nt,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(r?"":"border-solid"),children:a("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(u,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(ot,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(fl,{cell:e,isLastRow:r},String(t))))}):null]}))),Il=l((({className:e,context:t,title:l,description:r,rowHeaders:i,columns:o,anchor:c=null,hiddenRowsNum:m=0})=>{const[d,h]=t.useState(0),u=kl(o),x=Cl(i,u),p=bt({columnsLength:u.length,colsLengthForScroll:2,activeCardIndex:d,setActiveCardIndex:h}),b=x?.map(((e,t,{length:a})=>n(wl,{row:e,isLastRow:t+1===a,activeCardIndex:d},String(t))));return a("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[l?n(s,{headingType:"h2",className:"text-center "+(r?"mb-2.5":"mb-9"),title:l}):null,r?n("div",{className:"mb-9 text-center text-m-base",children:r}):null,x?.length?n(za,{blocks:b,hiddenBlocksNum:m,context:t,render:e=>n($l,{tableArrowScrollControlProps:p,children:e}),foldButtonLabel:"Развернуть"}):null]})})),kl=e=>e?.map((({data:e})=>e))||[],Cl=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),$l=l((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:l}=t;return a("div",{role:"table",children:[a("div",{className:"relative",children:[e,n(xt,{...t})]}),l?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Sl=l((e=>{const{tabs:t,currentTag:a,onTabClick:l,className:r="",isShowCounter:i=!0}=e;return n("div",{className:`mb-2 box-border flex gap-x-1 ${r}`,role:"tablist",children:t?.map(Tl(l,i,a))})})),Tl=(e,t,l)=>(r,i)=>{const s=l===r.tag,o=s?"text-white":"text-secondary-text group-hover:text-primary-main",c="min-w-[22px] w-[22px] h-[22px] rounded-full text-m-sm \n "+(s?"bg-white/30 text-white":"bg-secondary-light text-secondary-text");return n("div",{className:`flex h-full w-full h-12 flex-1 cursor-pointer mr-2 last:mr-0 box-content ${s?"bg-primary-main":"group bg-white"}`,role:"tab",onClick:()=>e(r.tag),"aria-selected":String(s),tag:r?.tag,children:a("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?n("h3",{className:`mr-8 ${o}`,children:r?.title}):null,t?n("div",{className:`flex items-center justify-center ${c}`,children:n("span",{children:r.count})}):null]})},String(i))};function Ml(e){return e?e.filter(Boolean).join(" "):""}const Dl={ProductBlock:pe,ProductTile:Se},Al=l((({groupBlocks:e,context:t})=>n("div",{className:"grid grid-cols-12 gap-2 box-border",children:e?.length?e.map(Pl(t)):null}))),Pl=e=>(t,a)=>{const l=t?.blockType;if(!l||!(l in Dl))return null;const r=Ml(t?.style);return n(Dl[l],{context:e,...t,className:r},`block_${a}`)},Rl=l((({className:e="",tabs:t,context:l,anchor:r=null,groupBlocks:i=[]})=>{const[s,o]=l.useState(t?.[0]?.tag),c=(m=i,(d=s)?m.filter((e=>e?.tags?.includes(d))):m);var m,d;const h=t?.map((e=>{const t=e.tag?i.filter((t=>t?.tags?.includes(`${e.tag}`))).length:i.length;return{...e,count:t}}));return a("section",{id:r,className:`box-border gap-1 h-12 ${e}`,children:[h?.length?n(Sl,{currentTag:s,onTabClick:o,tabs:h}):null,i.length?n(Al,{context:l,groupBlocks:c}):null]})}));function Ll(e=""){const t=ve(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Vl=l((({className:e="",title:t,subtitle:l,bonusBenefits:r,anchor:i=null})=>a("section",{className:`font-sans text-primary-text bg-white p-50 flex flex-col ${e}`,id:i,children:[t?n(s,{headingType:"h3",className:"text-center mb-[10px]",title:t}):null,l?n("span",{className:"text-md font-normal text-center",children:l}):null,r?.length?n("div",{className:`grid gap-1 ${Ll(e)}`,children:r.map(Bl)}):null]}))),Bl=(e,t)=>a("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?n(u,{className:"h-[180px] w-[160px] min-w-[160px] min-h-[160px]",image:e.icon,width:"160",height:"180"}):null,n("div",{children:e?.label?n("span",{className:"title-2xs text-center m-0",children:e.label}):null})]},String(t)),jl={Accordion:Qe,BenefitsBlock:Ye,Bonus:tt,ComparisonTable:ft,Calculator:Jt,CreditCalculator:hn,ExchangeRateTile:An,Footer:la,Gallery:Oe,GracePeriod:ra,Header:La,Headline:N,Insurance:Va,LinkDocs:T,MiniGallery:Fe,MobileAppTile:_a,NavigatorTabs:Ua,PictureText:D,ProductBlock:pe,ProductGallery:rl,ProductTile:Se,PromoTile:sl,OtherProducts:Ka,Recommendation:dl,StepsBlock:xl,TariffsTable:Il,TextBlock:ge,Tile:ke,Navigation:Ga,Placeholder:Qa,GroupBlock:Rl,BonusBenefitsBlock:Vl},_l=l((({className:e,onClick:t,ariaLabel:a})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":a,children:Wl()}))),Wl=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return a("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"})]})},Gl=l((({className:e,context:t,anchor:l=null})=>{const r=t.useLikeService();return a("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:l,children:[n(_l,{onClick:r.like,ariaLabel:"Поставить отметку «лайк»"}),n(_l,{onClick:r.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:r.likeCount})]})})),El=!Ca(),Ol=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),Fl=l((({className:e="",context:t,blocksRegistry:l,data:{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:m=Ol})=>{const{header:d}=s,h=t.useRouter();return El&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const a=t?.getBoundingClientRect();a&&a.top>0&&a.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),a("section",{className:`relative ${Ml(r)} ${e}`,"data-theme":c,children:[d?.blocks?.length?n("div",{className:`${Ml(d?.style)}`,children:d.blocks.map(((e,n)=>Ul({block:e,blockDecorator:m,blocksRegistry:l,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>Ul({block:e,blockDecorator:m,blocksRegistry:l,context:t},n)))}):null,o?n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(Gl,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function Ul({block:e,blockDecorator:t,blocksRegistry:a,context:l},r){const{type:i}=e;i&&i in a||console.warn(`No block with "${i}" is registered`);const s=a[i||"Placeholder"]||Qa;return t({blockClassName:`scroll-mt-12 ${Ml(e.style)}`,block:e,render:e=>{const{version:t,content:a,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:l,anchor:o,...a},`${i}-${r}`)}},`block-${r}`)}e.Blocks=jl,e.ContentPage=Fl,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(r)||"");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:a}=await e.json();return globalThis.localStorage.setItem(r,JSON.stringify({token:n,name:a})),{token:n,name:a}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...a){if(!a.length)return[];const{token:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:a})}),{likes:r}=await n.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(a){if(!a)return 0;const{token:l,name:r}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:r},body:JSON.stringify({node_id:a,user_name:r})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=E,e.projectSettings=m,e.setup=t,e.url=V,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -0,0 +1 @@
1
+ <svg id="icon" width="180" height="160" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_10079_21576949)"><path fill="#fff" d="M0 0h180v160H0z"/><path d="m180.889 122.222 3.718-2.712H38.077l-.395.288-37.52 27.366-3.717 2.712h146.53l.395-.288 37.519-27.366Z" fill="#42AB44" stroke="#fff" stroke-width="3"/><path d="m180.889 113.598 3.718-2.712H38.077l-.395.288L.162 138.54l-3.717 2.712h146.53l.395-.288 37.519-27.366Z" fill="#42AB44" stroke="#fff" stroke-width="3"/><path d="m180.889 105.487 3.718-2.712H38.077l-.395.288L.162 130.43l-3.717 2.711h146.53l.395-.288 37.519-27.366Z" fill="#42AB44" stroke="#fff" stroke-width="3"/><mask id="mask0_10079_21576949" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="1" y="104" width="180" height="28"><path d="M180.005 104.275H38.565L1.048 131.641h141.439l37.519-27.366Z" fill="#42AB44"/></mask><g mask="url(#mask0_10079_21576949)"><path d="M189.438 107.538H4.414l-4.086 2.517h185.024l4.086-2.517Z" fill="url(#paint0_linear_10079_21576949)"/><path d="M176.657 115.412H-8.367l-4.086 2.516H172.57l4.086-2.516Z" fill="url(#paint1_linear_10079_21576949)"/><path d="M103.318 123.31H-21.187l-4.087 2.516H99.231l4.087-2.516Z" fill="url(#paint2_linear_10079_21576949)"/><path d="M169.403 125.801h-45.64c-5.705 0-12.103 1.047-14.166 2.317-2.064 1.271.935 2.318 6.64 2.318h45.641c5.705 0 12.103-1.047 14.166-2.318 2.064-1.27-.824-2.317-6.641-2.317Z" fill="url(#paint3_linear_10079_21576949)" stroke="#1D1D1B" stroke-miterlimit="10"/><path d="M-2.094 111.55H181.03M-15.328 119.697h183.122" stroke="#1D1D1B" stroke-miterlimit="10"/></g><g filter="url(#filter0_f_10079_21576949)"><path d="M162.499 116.992c.092-.027.183-.082.274-.109a.244.244 0 0 1 .122-.054.637.637 0 0 0 .182-.109c.061-.054.122-.081.183-.108.821-.571.365-1.087.182-1.494 0-.027-.03-.082-.03-.109-.122-.543-.091-1.683-8.762-1.249-4.228.217-21.143 1.113-40.552 2.118l-1.339-1.874-1.551-9.722-4.655.217-2.16 3.531-1.795.38-4.654 6.545-3.286 1.955c-14.42.761-28.384 1.494-38.058 2.01-1.37.081-2.677.136-3.955.217-.822-.163-1.582-.434-2.038-.896-1.37-1.439-.122-3.992-1.4-4.237-1.247-.271-5.537 0-5.537 0l-6.114 3.096c-.03-.054-.061-.135-.153-.163-.73-.434-3.833-.19-3.833-.19l-3.042 3.992-.395.19c-6.237.707-8.397 1.223-8.397 1.223l-2.251.814s-1.156.353 5.963.815l-8.245 3.069 3.925-.218 10.495-2.498c4.29.19 8.64.299 13.02.299 5.447 0 10.983-.136 16.733-.38 1.43-.055 3.134-.136 4.959-.218 1.734-.081 3.62-.163 5.567-.271 0 0 2.83.407 11.013.163-.06.081-.122.217-.213.38-.365.624-3.073 2.281-5.567 3.204-2.495.924-11.044 3.911-11.044 3.911h.791l-2.742.353 6.176-.353 35.568-8.745c.821-.054 1.643-.108 2.464-.19a58.627 58.627 0 0 0 7.697-1.086c6.997-.38 14.846-.842 20.596-1.141 3.65-.19 7.057-.434 10.13-.733l1.004-.081c7.332-.706 12.625-1.575 14.329-2.118.152-.028.274-.082.395-.136Z" fill="url(#paint4_linear_10079_21576949)"/></g><path d="m105.712 60.69-7.564-4.78-32.825-24.55-4.745.575 8.706 8.914-.892.97 15.377 16.534 2.57 5.428 19.373-3.091Z" fill="url(#paint5_linear_10079_21576949)"/><mask id="mask1_10079_21576949" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="17" y="55" width="149" height="28"><path d="M17.302 76.504s2.997-4.528 30.541-8.195c27.544-3.666 89.947-11.897 98.688-13.01 8.742-1.115 12.345 1.796 14.201 3.126 1.855 1.33 5.566 3.343 5.245 5.428-.286 2.084-7.457 5.75-20.48 7.44-13.023 1.689-36.571 5.211-36.571 5.211s-27.152 3.559-39.069 4.817c-11.916 1.258-24.333 1.33-38.64-.144-14.307-1.474-13.95-2.588-13.95-2.588v-2.085h.035Z" fill="#88BBFB"/></mask><g mask="url(#mask1_10079_21576949)"><path d="M17.302 76.504s2.997-4.528 30.541-8.195c27.544-3.666 89.947-11.897 98.688-13.01 8.742-1.115 12.345 1.796 14.201 3.126 1.855 1.33 5.566 3.343 5.245 5.428-.286 2.084-7.457 5.75-20.48 7.44-13.023 1.689-36.571 5.211-36.571 5.211s-27.152 3.559-39.069 4.817c-11.916 1.258-24.333 1.33-38.64-.144-14.307-1.474-13.95-2.588-13.95-2.588v-2.085h.035Z" fill="url(#paint6_linear_10079_21576949)"/><g filter="url(#filter1_f_10079_21576949)"><path d="M31.25 81.177c14.272 1.473 26.724 1.401 38.64.143 11.917-1.257 39.069-4.816 39.069-4.816s23.548-3.45 36.571-5.175c13.023-1.726 20.194-5.356 20.48-7.44.285-2.085-3.39-4.098-5.245-5.428-2.319 5.93-50.379 8.267-94.55 14.485-44.17 6.218-48.88 3.594-48.88 3.594v2.085c-.035-.036-.392 1.078 13.915 2.552Z" fill="url(#paint7_linear_10079_21576949)"/></g></g><path d="m23.078 72.91-9.062-10.028s2.925-.575 5.137.503c2.213 1.078 8.135 7.332 8.135 7.332l-4.21 2.193Z" fill="#88BBFB"/><path d="M26.93 78.589h10.347l-6.423 9.273-3.924.54v-9.813Z" fill="#2168DA"/><path d="M23.508 74.132s6.815-.575 12.38 2.84c5.566 3.414 31.398 1.437 23.834-2.876s-10.81-4.744-10.81-4.744l-17.626 2.695-7.778 2.085Z" fill="url(#paint8_linear_10079_21576949)"/><path d="m23.51 74.132-6.494-18.26s4.174-.682 6.493 0c2.284.648 8.92 7.046 15.128 10.712 6.208 3.666 10.24 2.731 10.24 2.731s-5.21 2.409-13.558 3.523c-8.313 1.15-11.81 1.294-11.81 1.294Z" fill="url(#paint9_linear_10079_21576949)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M94.127 80.503c-8.855.628-13.494-.405-13.494-.405 1.106-2.084 10.525-3.882 23.441-5.427 12.916-1.546 21.265-1.078 21.265-1.078s-1.106 2.372-5.959 3.342c-.771.155-1.534.305-2.318.455l-12.418 27.222-6.137.862.607-6.074h-.928s.5-7.548.5-9.884c0-2.337-2.07-6.506-3.64-8.088l-.919-.925Z" fill="url(#paint10_linear_10079_21576949)"/></g><defs><linearGradient id="paint0_linear_10079_21576949" x1="-.133" y1="110.338" x2=".025" y2="104.849" gradientUnits="userSpaceOnUse"><stop stop-color="#EFBD6C"/><stop offset="1" stop-color="#FFF48E"/></linearGradient><linearGradient id="paint1_linear_10079_21576949" x1="-12.914" y1="118.212" x2="-12.757" y2="112.722" gradientUnits="userSpaceOnUse"><stop stop-color="#EFBD6C"/><stop offset="1" stop-color="#FFF48E"/></linearGradient><linearGradient id="paint2_linear_10079_21576949" x1="-25.734" y1="126.11" x2="-25.49" y2="120.499" gradientUnits="userSpaceOnUse"><stop stop-color="#EFBD6C"/><stop offset="1" stop-color="#FFF48E"/></linearGradient><linearGradient id="paint3_linear_10079_21576949" x1="104.986" y1="130.958" x2="107.191" y2="118.836" gradientUnits="userSpaceOnUse"><stop stop-color="#EFBD6C"/><stop offset="1" stop-color="#FFF48E"/></linearGradient><linearGradient id="paint4_linear_10079_21576949" x1="49.375" y1="93.46" x2="126.589" y2="143.452" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#0357CA"/></linearGradient><linearGradient id="paint5_linear_10079_21576949" x1="83.145" y1="31.36" x2="83.145" y2="63.781" gradientUnits="userSpaceOnUse"><stop stop-color="#88BBFB"/><stop offset="1" stop-color="#88BBFB" stop-opacity="0"/></linearGradient><linearGradient id="paint6_linear_10079_21576949" x1="91.631" y1="55.049" x2="91.631" y2="71.228" gradientUnits="userSpaceOnUse"><stop stop-color="#88BBFB"/><stop offset="1" stop-color="#88BBFB" stop-opacity="0"/></linearGradient><linearGradient id="paint7_linear_10079_21576949" x1="91.678" y1="48.642" x2="91.686" y2="82.273" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#0357CA"/></linearGradient><linearGradient id="paint8_linear_10079_21576949" x1="42.303" y1="69.352" x2="43.765" y2="78.706" gradientUnits="userSpaceOnUse"><stop stop-color="#0C57D4"/><stop offset="1" stop-color="#0C57D4" stop-opacity="0"/></linearGradient><linearGradient id="paint9_linear_10079_21576949" x1="27.523" y1="53.229" x2="16.247" y2="72.339" gradientUnits="userSpaceOnUse"><stop stop-color="#88BBFB"/><stop offset=".671" stop-color="#063C87"/><stop offset="1" stop-color="#88BBFB"/></linearGradient><linearGradient id="paint10_linear_10079_21576949" x1="95.375" y1="69.498" x2="116.948" y2="79.699" gradientUnits="userSpaceOnUse"><stop stop-color="#88BBFB"/><stop offset=".671" stop-color="#063C87"/><stop offset="1" stop-color="#88BBFB"/></linearGradient><filter id="filter0_f_10079_21576949" x="15.203" y="102.282" width="150.531" height="31.293" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="1" result="effect1_foregroundBlur_10079_21576949"/></filter><filter id="filter1_f_10079_21576949" x="13.328" y="54.461" width="156.695" height="31.813" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_10079_21576949"/></filter><clipPath id="clip0_10079_21576949"><path fill="#fff" d="M0 0h180v160H0z"/></clipPath></defs></svg>