@redneckz/wildless-cms-uni-blocks 0.7.8 → 0.8.0

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 (736) hide show
  1. package/bundle/ProjectSettings.d.ts +4 -4
  2. package/bundle/api/CorporateLeadAPI.d.ts +15 -0
  3. package/bundle/blocks.schema.json +1 -1
  4. package/bundle/bundle.umd.js +565 -324
  5. package/bundle/bundle.umd.min.js +1 -1
  6. package/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  7. package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  8. package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  9. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  10. package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  11. package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  12. package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  13. package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  14. package/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
  15. package/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  16. package/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  17. package/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  18. package/bundle/components/ApplicationForm/models.d.ts +6 -0
  19. package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  20. package/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  21. package/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
  22. package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  23. package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  24. package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  25. package/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
  26. package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  27. package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  28. package/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  29. package/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  30. package/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  31. package/bundle/icons/IconName.d.ts +10 -2
  32. package/bundle/services/sitemap/isHrefActive.d.ts +1 -2
  33. package/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
  34. package/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  35. package/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  36. package/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
  37. package/bundle/utils/adjustHref.d.ts +1 -4
  38. package/bundle/utils/url.d.ts +4 -2
  39. package/cosmos-static/icons/MailIcon.svg +1 -0
  40. package/cosmos-static/icons/PhoneIcon.svg +1 -0
  41. package/cosmos-static/icons/ResponceFailIcon.svg +1 -0
  42. package/cosmos-static/icons/ResponceOKIcon.svg +1 -0
  43. package/dist/ProjectSettings.d.ts +4 -4
  44. package/dist/ProjectSettings.js +3 -5
  45. package/dist/ProjectSettings.js.map +1 -1
  46. package/dist/api/CorporateLeadAPI.d.ts +15 -0
  47. package/dist/api/CorporateLeadAPI.js +24 -0
  48. package/dist/api/CorporateLeadAPI.js.map +1 -0
  49. package/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  50. package/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  51. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  52. package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  53. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  54. package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  55. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  56. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  57. package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  58. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  59. package/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  60. package/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  61. package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  62. package/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  63. package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  64. package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  65. package/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  66. package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  67. package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  68. package/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  69. package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  70. package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  71. package/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  72. package/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  73. package/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  74. package/dist/components/ApplicationForm/Footnote.js +9 -0
  75. package/dist/components/ApplicationForm/Footnote.js.map +1 -0
  76. package/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  77. package/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  78. package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  79. package/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  80. package/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  81. package/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  82. package/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  83. package/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  84. package/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  85. package/dist/components/ApplicationForm/models.d.ts +6 -0
  86. package/dist/components/ApplicationForm/models.js +2 -0
  87. package/dist/components/ApplicationForm/models.js.map +1 -0
  88. package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  89. package/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  90. package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  91. package/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  92. package/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  93. package/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  94. package/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  95. package/dist/components/ApplicationForm/renderContacts.js +7 -0
  96. package/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  97. package/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  98. package/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  99. package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  100. package/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  101. package/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  102. package/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  103. package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  104. package/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  105. package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  106. package/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  107. package/dist/components/ApplicationForm/renderSelects.js +8 -0
  108. package/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  109. package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  110. package/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  111. package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  112. package/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  113. package/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  114. package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  115. package/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  116. package/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  117. package/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  118. package/dist/components/Blocks.js +2 -0
  119. package/dist/components/Blocks.js.map +1 -1
  120. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  121. package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  122. package/dist/components/ErrorBlock/ErrorBlock.js +3 -1
  123. package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  124. package/dist/components/Header/DropdownMenu.js +4 -1
  125. package/dist/components/Header/DropdownMenu.js.map +1 -1
  126. package/dist/components/Header/Header.js +1 -2
  127. package/dist/components/Header/Header.js.map +1 -1
  128. package/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  129. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  130. package/dist/components/Header/HeaderSubMenu.js +2 -1
  131. package/dist/components/Header/HeaderSubMenu.js.map +1 -1
  132. package/dist/components/Header/HeaderSubMenuItem.js +2 -2
  133. package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  134. package/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
  135. package/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  136. package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  137. package/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  138. package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  139. package/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  140. package/dist/hooks/useLink.js +16 -12
  141. package/dist/hooks/useLink.js.map +1 -1
  142. package/dist/icons/IconName.d.ts +10 -2
  143. package/dist/icons/IconName.js +9 -1
  144. package/dist/icons/IconName.js.map +1 -1
  145. package/dist/services/sitemap/isHrefActive.d.ts +1 -2
  146. package/dist/services/sitemap/isHrefActive.js +2 -2
  147. package/dist/services/sitemap/isHrefActive.js.map +1 -1
  148. package/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  149. package/dist/services/sitemap/isSubItemActive.js.map +1 -1
  150. package/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  151. package/dist/services/sitemap/isTopItemActive.js +1 -6
  152. package/dist/services/sitemap/isTopItemActive.js.map +1 -1
  153. package/dist/setup-fixture.js +13 -6
  154. package/dist/setup-fixture.js.map +1 -1
  155. package/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  156. package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  157. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  158. package/dist/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  159. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  160. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
  161. package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  162. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  163. package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  164. package/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  165. package/dist/ui-kit/TopItem/TopItem.js +2 -2
  166. package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  167. package/dist/utils/adjustHref.d.ts +1 -4
  168. package/dist/utils/adjustHref.js +4 -8
  169. package/dist/utils/adjustHref.js.map +1 -1
  170. package/dist/utils/url.d.ts +4 -2
  171. package/dist/utils/url.js +15 -28
  172. package/dist/utils/url.js.map +1 -1
  173. package/lib/ProjectSettings.d.ts +4 -4
  174. package/lib/ProjectSettings.js +3 -5
  175. package/lib/ProjectSettings.js.map +1 -1
  176. package/lib/api/CorporateLeadAPI.d.ts +15 -0
  177. package/lib/api/CorporateLeadAPI.js +21 -0
  178. package/lib/api/CorporateLeadAPI.js.map +1 -0
  179. package/lib/common.css +1 -1
  180. package/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  181. package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +12 -0
  182. package/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  183. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  184. package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  185. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  186. package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  187. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  188. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  189. package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  190. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  191. package/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  192. package/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  193. package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  194. package/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  195. package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  196. package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  197. package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  198. package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  199. package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  200. package/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  201. package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  202. package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  203. package/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  204. package/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  205. package/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  206. package/lib/components/ApplicationForm/Footnote.js +7 -0
  207. package/lib/components/ApplicationForm/Footnote.js.map +1 -0
  208. package/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  209. package/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  210. package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  211. package/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  212. package/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  213. package/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  214. package/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  215. package/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  216. package/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  217. package/lib/components/ApplicationForm/models.d.ts +6 -0
  218. package/lib/components/ApplicationForm/models.js +2 -0
  219. package/lib/components/ApplicationForm/models.js.map +1 -0
  220. package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  221. package/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  222. package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  223. package/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  224. package/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  225. package/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  226. package/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  227. package/lib/components/ApplicationForm/renderContacts.js +4 -0
  228. package/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  229. package/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  230. package/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  231. package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  232. package/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  233. package/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  234. package/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  235. package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  236. package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  237. package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  238. package/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  239. package/lib/components/ApplicationForm/renderSelects.js +5 -0
  240. package/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  241. package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  242. package/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  243. package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  244. package/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  245. package/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  246. package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  247. package/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  248. package/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  249. package/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  250. package/lib/components/Blocks.js +2 -0
  251. package/lib/components/Blocks.js.map +1 -1
  252. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  253. package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  254. package/lib/components/ErrorBlock/ErrorBlock.js +3 -1
  255. package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  256. package/lib/components/Header/DropdownMenu.js +4 -1
  257. package/lib/components/Header/DropdownMenu.js.map +1 -1
  258. package/lib/components/Header/Header.js +1 -2
  259. package/lib/components/Header/Header.js.map +1 -1
  260. package/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  261. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  262. package/lib/components/Header/HeaderSubMenu.js +2 -1
  263. package/lib/components/Header/HeaderSubMenu.js.map +1 -1
  264. package/lib/components/Header/HeaderSubMenuItem.js +2 -2
  265. package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  266. package/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
  267. package/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  268. package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  269. package/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  270. package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  271. package/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  272. package/lib/components/SwipeListControlBlock/SwipeListControlBlock.fixture.d.ts +1 -0
  273. package/lib/hooks/useLink.js +17 -13
  274. package/lib/hooks/useLink.js.map +1 -1
  275. package/lib/icons/IconName.d.ts +10 -2
  276. package/lib/icons/IconName.js +9 -1
  277. package/lib/icons/IconName.js.map +1 -1
  278. package/lib/services/sitemap/isHrefActive.d.ts +1 -2
  279. package/lib/services/sitemap/isHrefActive.js +2 -2
  280. package/lib/services/sitemap/isHrefActive.js.map +1 -1
  281. package/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  282. package/lib/services/sitemap/isSubItemActive.js.map +1 -1
  283. package/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  284. package/lib/services/sitemap/isTopItemActive.js +1 -6
  285. package/lib/services/sitemap/isTopItemActive.js.map +1 -1
  286. package/lib/setup-fixture.js +14 -7
  287. package/lib/setup-fixture.js.map +1 -1
  288. package/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  289. package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  290. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js +1 -2
  291. package/lib/ui-kit/HeaderItem/HeaderItem.mobile.js.map +1 -1
  292. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  293. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +5 -0
  294. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
  295. package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  296. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  297. package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  298. package/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  299. package/lib/ui-kit/TopItem/TopItem.js +2 -2
  300. package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  301. package/lib/utils/adjustHref.d.ts +1 -4
  302. package/lib/utils/adjustHref.js +5 -9
  303. package/lib/utils/adjustHref.js.map +1 -1
  304. package/lib/utils/url.d.ts +4 -2
  305. package/lib/utils/url.js +12 -26
  306. package/lib/utils/url.js.map +1 -1
  307. package/mobile/bundle/ProjectSettings.d.ts +4 -4
  308. package/mobile/bundle/api/CorporateLeadAPI.d.ts +15 -0
  309. package/mobile/bundle/bundle.umd.js +41 -71
  310. package/mobile/bundle/bundle.umd.min.js +1 -1
  311. package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  312. package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  313. package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  314. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  315. package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  316. package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  317. package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  318. package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  319. package/mobile/bundle/components/ApplicationForm/Footnote.d.ts +6 -0
  320. package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  321. package/mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  322. package/mobile/bundle/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  323. package/mobile/bundle/components/ApplicationForm/models.d.ts +6 -0
  324. package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  325. package/mobile/bundle/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  326. package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +2 -0
  327. package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  328. package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  329. package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  330. package/mobile/bundle/components/ApplicationForm/renderSelects.d.ts +11 -0
  331. package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  332. package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  333. package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  334. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  335. package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  336. package/mobile/bundle/icons/IconName.d.ts +10 -2
  337. package/mobile/bundle/services/sitemap/isHrefActive.d.ts +1 -2
  338. package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +3 -2
  339. package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +3 -2
  340. package/mobile/bundle/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  341. package/mobile/bundle/ui-kit/TopItem/TopItem.d.ts +0 -1
  342. package/mobile/bundle/utils/adjustHref.d.ts +1 -4
  343. package/mobile/bundle/utils/url.d.ts +4 -2
  344. package/mobile/dist/ProjectSettings.d.ts +4 -4
  345. package/mobile/dist/ProjectSettings.js +3 -5
  346. package/mobile/dist/ProjectSettings.js.map +1 -1
  347. package/mobile/dist/api/CorporateLeadAPI.d.ts +15 -0
  348. package/mobile/dist/api/CorporateLeadAPI.js +24 -0
  349. package/mobile/dist/api/CorporateLeadAPI.js.map +1 -0
  350. package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  351. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +30 -0
  352. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -0
  353. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  354. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +55 -0
  355. package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  356. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  357. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +39 -0
  358. package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  359. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  360. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js +2 -0
  361. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  362. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  363. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +59 -0
  364. package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  365. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  366. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +26 -0
  367. package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  368. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  369. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +41 -0
  370. package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  371. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  372. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  373. package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  374. package/mobile/dist/components/ApplicationForm/Footnote.d.ts +6 -0
  375. package/mobile/dist/components/ApplicationForm/Footnote.js +9 -0
  376. package/mobile/dist/components/ApplicationForm/Footnote.js.map +1 -0
  377. package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  378. package/mobile/dist/components/ApplicationForm/ResponseNotification.js +13 -0
  379. package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -0
  380. package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  381. package/mobile/dist/components/ApplicationForm/WrapperSelect.js +13 -0
  382. package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +1 -0
  383. package/mobile/dist/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  384. package/mobile/dist/components/ApplicationForm/acquiringTypes.js +25 -0
  385. package/mobile/dist/components/ApplicationForm/acquiringTypes.js.map +1 -0
  386. package/mobile/dist/components/ApplicationForm/models.d.ts +6 -0
  387. package/mobile/dist/components/ApplicationForm/models.js +2 -0
  388. package/mobile/dist/components/ApplicationForm/models.js.map +1 -0
  389. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  390. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +5 -0
  391. package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  392. package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  393. package/mobile/dist/components/ApplicationForm/renderBankOffices.js +7 -0
  394. package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +1 -0
  395. package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +2 -0
  396. package/mobile/dist/components/ApplicationForm/renderContacts.js +7 -0
  397. package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -0
  398. package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  399. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +24 -0
  400. package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  401. package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  402. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +7 -0
  403. package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  404. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  405. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +7 -0
  406. package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  407. package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +11 -0
  408. package/mobile/dist/components/ApplicationForm/renderSelects.js +8 -0
  409. package/mobile/dist/components/ApplicationForm/renderSelects.js.map +1 -0
  410. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  411. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +7 -0
  412. package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  413. package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  414. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +13 -0
  415. package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  416. package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  417. package/mobile/dist/components/ApplicationForm/useFormHandlers.js +16 -0
  418. package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +1 -0
  419. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  420. package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  421. package/mobile/dist/components/ErrorBlock/ErrorBlock.js +3 -1
  422. package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
  423. package/mobile/dist/components/Header/DropdownMenu.js +4 -1
  424. package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
  425. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -2
  426. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  427. package/mobile/dist/components/Header/HeaderSubMenu.js +2 -1
  428. package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
  429. package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
  430. package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
  431. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js +3 -1
  432. package/mobile/dist/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  433. package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  434. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  435. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  436. package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  437. package/mobile/dist/hooks/useLink.js +16 -12
  438. package/mobile/dist/hooks/useLink.js.map +1 -1
  439. package/mobile/dist/icons/IconName.d.ts +10 -2
  440. package/mobile/dist/icons/IconName.js +9 -1
  441. package/mobile/dist/icons/IconName.js.map +1 -1
  442. package/mobile/dist/services/sitemap/isHrefActive.d.ts +1 -2
  443. package/mobile/dist/services/sitemap/isHrefActive.js +2 -2
  444. package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
  445. package/mobile/dist/services/sitemap/isSubItemActive.d.ts +3 -2
  446. package/mobile/dist/services/sitemap/isSubItemActive.js.map +1 -1
  447. package/mobile/dist/services/sitemap/isTopItemActive.d.ts +3 -2
  448. package/mobile/dist/services/sitemap/isTopItemActive.js +1 -6
  449. package/mobile/dist/services/sitemap/isTopItemActive.js.map +1 -1
  450. package/mobile/dist/setup-fixture.js +13 -6
  451. package/mobile/dist/setup-fixture.js.map +1 -1
  452. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js +1 -2
  453. package/mobile/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  454. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  455. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +7 -0
  456. package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  457. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  458. package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  459. package/mobile/dist/ui-kit/TopItem/TopItem.d.ts +0 -1
  460. package/mobile/dist/ui-kit/TopItem/TopItem.js +2 -2
  461. package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
  462. package/mobile/dist/utils/adjustHref.d.ts +1 -4
  463. package/mobile/dist/utils/adjustHref.js +4 -8
  464. package/mobile/dist/utils/adjustHref.js.map +1 -1
  465. package/mobile/dist/utils/url.d.ts +4 -2
  466. package/mobile/dist/utils/url.js +15 -28
  467. package/mobile/dist/utils/url.js.map +1 -1
  468. package/mobile/lib/ProjectSettings.d.ts +4 -4
  469. package/mobile/lib/ProjectSettings.js +3 -5
  470. package/mobile/lib/ProjectSettings.js.map +1 -1
  471. package/mobile/lib/api/CorporateLeadAPI.d.ts +15 -0
  472. package/mobile/lib/api/CorporateLeadAPI.js +21 -0
  473. package/mobile/lib/api/CorporateLeadAPI.js.map +1 -0
  474. package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +5 -0
  475. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +28 -0
  476. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -0
  477. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +12 -0
  478. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +53 -0
  479. package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -0
  480. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +9 -0
  481. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +37 -0
  482. package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -0
  483. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +18 -0
  484. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js +2 -0
  485. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.js.map +1 -0
  486. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +20 -0
  487. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +57 -0
  488. package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -0
  489. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +6 -0
  490. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -0
  491. package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -0
  492. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +12 -0
  493. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +39 -0
  494. package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -0
  495. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +7 -0
  496. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js +2 -0
  497. package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.js.map +1 -0
  498. package/mobile/lib/components/ApplicationForm/Footnote.d.ts +6 -0
  499. package/mobile/lib/components/ApplicationForm/Footnote.js +7 -0
  500. package/mobile/lib/components/ApplicationForm/Footnote.js.map +1 -0
  501. package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +5 -0
  502. package/mobile/lib/components/ApplicationForm/ResponseNotification.js +11 -0
  503. package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -0
  504. package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +11 -0
  505. package/mobile/lib/components/ApplicationForm/WrapperSelect.js +11 -0
  506. package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +1 -0
  507. package/mobile/lib/components/ApplicationForm/acquiringTypes.d.ts +2 -0
  508. package/mobile/lib/components/ApplicationForm/acquiringTypes.js +23 -0
  509. package/mobile/lib/components/ApplicationForm/acquiringTypes.js.map +1 -0
  510. package/mobile/lib/components/ApplicationForm/models.d.ts +6 -0
  511. package/mobile/lib/components/ApplicationForm/models.js +2 -0
  512. package/mobile/lib/components/ApplicationForm/models.js.map +1 -0
  513. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +2 -0
  514. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +2 -0
  515. package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +1 -0
  516. package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +13 -0
  517. package/mobile/lib/components/ApplicationForm/renderBankOffices.js +4 -0
  518. package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +1 -0
  519. package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +2 -0
  520. package/mobile/lib/components/ApplicationForm/renderContacts.js +4 -0
  521. package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -0
  522. package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +10 -0
  523. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +21 -0
  524. package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -0
  525. package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +14 -0
  526. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +4 -0
  527. package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +1 -0
  528. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +12 -0
  529. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -0
  530. package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -0
  531. package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +11 -0
  532. package/mobile/lib/components/ApplicationForm/renderSelects.js +5 -0
  533. package/mobile/lib/components/ApplicationForm/renderSelects.js.map +1 -0
  534. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +10 -0
  535. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +4 -0
  536. package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -0
  537. package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +3 -0
  538. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +10 -0
  539. package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -0
  540. package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +13 -0
  541. package/mobile/lib/components/ApplicationForm/useFormHandlers.js +13 -0
  542. package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +1 -0
  543. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
  544. package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
  545. package/mobile/lib/components/ErrorBlock/ErrorBlock.js +3 -1
  546. package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
  547. package/mobile/lib/components/Header/DropdownMenu.js +4 -1
  548. package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
  549. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -2
  550. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  551. package/mobile/lib/components/Header/HeaderSubMenu.js +2 -1
  552. package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
  553. package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
  554. package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
  555. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js +3 -1
  556. package/mobile/lib/components/OtherProductsItem/OtherProductsItem.js.map +1 -1
  557. package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
  558. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.d.ts +2 -2
  559. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
  560. package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTypes.d.ts +1 -1
  561. package/mobile/lib/hooks/useLink.js +17 -13
  562. package/mobile/lib/hooks/useLink.js.map +1 -1
  563. package/mobile/lib/icons/IconName.d.ts +10 -2
  564. package/mobile/lib/icons/IconName.js +9 -1
  565. package/mobile/lib/icons/IconName.js.map +1 -1
  566. package/mobile/lib/services/sitemap/isHrefActive.d.ts +1 -2
  567. package/mobile/lib/services/sitemap/isHrefActive.js +2 -2
  568. package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
  569. package/mobile/lib/services/sitemap/isSubItemActive.d.ts +3 -2
  570. package/mobile/lib/services/sitemap/isSubItemActive.js.map +1 -1
  571. package/mobile/lib/services/sitemap/isTopItemActive.d.ts +3 -2
  572. package/mobile/lib/services/sitemap/isTopItemActive.js +1 -6
  573. package/mobile/lib/services/sitemap/isTopItemActive.js.map +1 -1
  574. package/mobile/lib/setup-fixture.js +14 -7
  575. package/mobile/lib/setup-fixture.js.map +1 -1
  576. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js +1 -2
  577. package/mobile/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
  578. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.d.ts +7 -0
  579. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +5 -0
  580. package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -0
  581. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +1 -1
  582. package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
  583. package/mobile/lib/ui-kit/TopItem/TopItem.d.ts +0 -1
  584. package/mobile/lib/ui-kit/TopItem/TopItem.js +2 -2
  585. package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
  586. package/mobile/lib/utils/adjustHref.d.ts +1 -4
  587. package/mobile/lib/utils/adjustHref.js +5 -9
  588. package/mobile/lib/utils/adjustHref.js.map +1 -1
  589. package/mobile/lib/utils/url.d.ts +4 -2
  590. package/mobile/lib/utils/url.js +12 -26
  591. package/mobile/lib/utils/url.js.map +1 -1
  592. package/mobile/src/ProjectSettings.ts +6 -7
  593. package/mobile/src/api/CorporateLeadAPI.ts +36 -0
  594. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  595. package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  596. package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  597. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  598. package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  599. package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  600. package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  601. package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  602. package/mobile/src/components/ApplicationForm/Footnote.tsx +25 -0
  603. package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  604. package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  605. package/mobile/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  606. package/mobile/src/components/ApplicationForm/models.ts +7 -0
  607. package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  608. package/mobile/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  609. package/mobile/src/components/ApplicationForm/renderContacts.tsx +22 -0
  610. package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  611. package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  612. package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  613. package/mobile/src/components/ApplicationForm/renderSelects.tsx +38 -0
  614. package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  615. package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  616. package/mobile/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  617. package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
  618. package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
  619. package/mobile/src/components/Header/DropdownMenu.tsx +16 -12
  620. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  621. package/mobile/src/components/Header/HeaderSubMenu.tsx +2 -1
  622. package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  623. package/mobile/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
  624. package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  625. package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  626. package/mobile/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  627. package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
  628. package/mobile/src/hooks/useLink.ts +19 -15
  629. package/mobile/src/icons/IconName.ts +5 -5
  630. package/mobile/src/icons/MailIcon.svg +1 -0
  631. package/mobile/src/icons/PhoneIcon.svg +1 -0
  632. package/mobile/src/icons/ResponceFailIcon.svg +1 -0
  633. package/mobile/src/icons/ResponceOKIcon.svg +1 -0
  634. package/mobile/src/services/sitemap/isHrefActive.ts +4 -10
  635. package/mobile/src/services/sitemap/isSubItemActive.ts +1 -2
  636. package/mobile/src/services/sitemap/isTopItemActive.ts +2 -8
  637. package/mobile/src/setup-fixture.ts +19 -7
  638. package/mobile/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  639. package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
  640. package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  641. package/mobile/src/ui-kit/TopItem/TopItem.tsx +16 -19
  642. package/mobile/src/utils/adjustHref.ts +6 -14
  643. package/mobile/src/utils/url.ts +18 -33
  644. package/package.json +2 -2
  645. package/src/ProjectSettings.ts +6 -7
  646. package/src/api/CorporateLeadAPI.ts +36 -0
  647. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +43 -0
  648. package/src/components/ApplicationForm/ApplicationForm.tsx +45 -0
  649. package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +138 -0
  650. package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +134 -0
  651. package/src/components/ApplicationForm/ApplicationFormContent.ts +19 -0
  652. package/src/components/ApplicationForm/ApplicationFormCredit.tsx +91 -0
  653. package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +74 -0
  654. package/src/components/ApplicationForm/ApplicationFormWed.tsx +143 -0
  655. package/src/components/ApplicationForm/ApplicationFormsProps.ts +8 -0
  656. package/src/components/ApplicationForm/Footnote.tsx +25 -0
  657. package/src/components/ApplicationForm/ResponseNotification.tsx +33 -0
  658. package/src/components/ApplicationForm/WrapperSelect.tsx +32 -0
  659. package/src/components/ApplicationForm/acquiringTypes.ts +24 -0
  660. package/src/components/ApplicationForm/models.ts +7 -0
  661. package/src/components/ApplicationForm/normalizeSelectedRegion.ts +4 -0
  662. package/src/components/ApplicationForm/renderBankOffices.tsx +45 -0
  663. package/src/components/ApplicationForm/renderContacts.tsx +22 -0
  664. package/src/components/ApplicationForm/renderCreditParameters.tsx +61 -0
  665. package/src/components/ApplicationForm/renderDataOrganization.tsx +78 -0
  666. package/src/components/ApplicationForm/renderQuestionsInterested.tsx +45 -0
  667. package/src/components/ApplicationForm/renderSelects.tsx +38 -0
  668. package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +28 -0
  669. package/src/components/ApplicationForm/renderSubmitButton.tsx +15 -0
  670. package/src/components/ApplicationForm/useFormHandlers.ts +32 -0
  671. package/src/components/Blocks.ts +2 -0
  672. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +1 -0
  673. package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +5 -1
  674. package/src/components/ErrorBlock/ErrorBlock.tsx +10 -1
  675. package/src/components/Header/DropdownMenu.tsx +16 -12
  676. package/src/components/Header/Header.tsx +3 -5
  677. package/src/components/Header/HeaderSecondaryMenu.tsx +1 -21
  678. package/src/components/Header/HeaderSubMenu.tsx +2 -1
  679. package/src/components/Header/HeaderSubMenuItem.tsx +2 -4
  680. package/src/components/OtherProductsItem/OtherProductsItem.tsx +3 -1
  681. package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
  682. package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +4 -4
  683. package/src/components/SafeDepositRental/SafeDepositRentalTypes.ts +1 -1
  684. package/src/components/SwipeListControlBlock/SwipeListControlBlock.example.json +1 -1
  685. package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +17 -0
  686. package/src/hooks/useLink.ts +19 -15
  687. package/src/icons/IconName.ts +5 -5
  688. package/src/icons/MailIcon.svg +1 -0
  689. package/src/icons/PhoneIcon.svg +1 -0
  690. package/src/icons/ResponceFailIcon.svg +1 -0
  691. package/src/icons/ResponceOKIcon.svg +1 -0
  692. package/src/services/sitemap/isHrefActive.ts +4 -10
  693. package/src/services/sitemap/isSubItemActive.ts +1 -2
  694. package/src/services/sitemap/isTopItemActive.ts +2 -8
  695. package/src/setup-fixture.ts +19 -7
  696. package/src/ui-kit/HeaderItem/HeaderItem.mobile.tsx +7 -8
  697. package/src/ui-kit/HeaderItem/HeaderItem.tsx +7 -8
  698. package/src/ui-kit/SlideCheckbox/SlideCheckbox.fixture.tsx +9 -0
  699. package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +33 -0
  700. package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
  701. package/src/ui-kit/TopItem/TopItem.tsx +16 -19
  702. package/src/utils/adjustHref.ts +6 -14
  703. package/src/utils/url.ts +18 -33
  704. package/tailwind.config.cjs +5 -0
  705. package/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  706. package/bundle/utils/normalizeURLPath.d.ts +0 -1
  707. package/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  708. package/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  709. package/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  710. package/dist/utils/normalizeURLPath.d.ts +0 -1
  711. package/dist/utils/normalizeURLPath.js +0 -12
  712. package/dist/utils/normalizeURLPath.js.map +0 -1
  713. package/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  714. package/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  715. package/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  716. package/lib/utils/normalizeURLPath.d.ts +0 -1
  717. package/lib/utils/normalizeURLPath.js +0 -9
  718. package/lib/utils/normalizeURLPath.js.map +0 -1
  719. package/mobile/bundle/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  720. package/mobile/bundle/utils/normalizeURLPath.d.ts +0 -1
  721. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  722. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js +0 -6
  723. package/mobile/dist/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  724. package/mobile/dist/utils/normalizeURLPath.d.ts +0 -1
  725. package/mobile/dist/utils/normalizeURLPath.js +0 -12
  726. package/mobile/dist/utils/normalizeURLPath.js.map +0 -1
  727. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.d.ts +0 -2
  728. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js +0 -3
  729. package/mobile/lib/services/sitemap/checkIsHrefSameOrigin.js.map +0 -1
  730. package/mobile/lib/utils/normalizeURLPath.d.ts +0 -1
  731. package/mobile/lib/utils/normalizeURLPath.js +0 -9
  732. package/mobile/lib/utils/normalizeURLPath.js.map +0 -1
  733. package/mobile/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  734. package/mobile/src/utils/normalizeURLPath.ts +0 -10
  735. package/src/services/sitemap/checkIsHrefSameOrigin.ts +0 -7
  736. package/src/utils/normalizeURLPath.ts +0 -10
@@ -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";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o=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 ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(c)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(c,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${o.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,l){const{children:n,...a}=t||{},r=l?.slots?.default,i=n||r&&r();return e(Object.assign(a,i&&{children:i}),l)}return t.inheritAttrs=!1,t},x=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),g=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),b=[];function f(e,t){const{key:l,blockDecorator:n=g,blocksRegistry:a={},ancestors:r=b,className:i=""}=t,{type:s}=e;s&&s in a||console.warn(`No block with "${s}" is registered`);const o=s&&a[s];return n({blockClassName:x("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:r,render:({block:n,blockClassName:a})=>{const{content:r}=n;return o?m(o,{className:a,block:e,options:t,...r},l):null}},l)}const v=[],N=(e,{key:t,ancestors:l=v,slotName:n=null,renderChild:a=f,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||v,[r.parent,n]]:l})));function y({children:e,block:t,options:l,renderChild:n}){return e||(t&&l?N(t.blocks,{...l,parent:t,renderChild:n}):null)}const w={left:"text-left",center:"text-center",right:"text-right"};class C{static inst=new C;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function k(e,{sensitivity:t,rootRef:l}={}){const n=s(null),r=i((()=>({threshold:S(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,r);return t.observe(n.current),()=>{t.disconnect()}}),[e,r]),n}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const $=e=>e?.replace("#",""),I=e=>`${globalThis.location?.pathname}#${$(e)}`;class T{static inst=new T;eventBus=new C;constructor(){const e=$(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=$(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",I(e))}replace(e){globalThis.history?.replaceState(null,"",I(e))}reset(){globalThis.history?.replaceState(null,"",I())}}const B={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},R=u((({className:e="",version:t="primary",block:l,tag:i="section",role:s,children:o})=>{const c=i,d=function(e,t=T.inst){const l=k(r((l=>{if(!e||!l?.length)return;const n=l[l.length-1];t.eventBus.fire("intersection",{block:e,intersection:n})}),[e,t]),{sensitivity:1});return a((()=>{if(l.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{l.current&&e?.anchor===t&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),l}(l),[h,u]=n(!0);return a((()=>C.inst.subscribe("tab",(e=>{if("group"===e.type){const t=l?.labels?.length||l?.anchor;u(!e.label||(!t||Boolean(l?.labels?.includes(e.label))))}else u(!0)}))),[l]),h?m(c,{className:x("group",B[t],e),...t?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:d}:{},role:s,children:o}):null})),V={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},j=u((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>m(l,{className:`font-sans m-0 ${V[t]} ${e}`,children:n||a}))),_=u((({children:e,...t})=>m("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),L=u((({children:e})=>m("ul",{className:"list-none m-0 p-0",children:e}))),M=u((({className:e="",title:t,accordionAlignTitle:l="center",description:n,...a})=>h(R,{className:`p-12 mb-1 last:mb-0 ${e}`,...a,children:[t?m(j,{headingType:"h3",as:"h2",className:`mb-2.5 ${w[l]}`,title:t}):null,n?m("div",{className:"mb-2.5",children:m(_,{size:"text-l",children:n})}):null,m(L,{children:y(a)})]})));M.childrenTypes=["AccordionItem"];const D=u((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=n(l),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return h("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),A=u((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),m("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),z={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},O=u((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:r="color",asSVG:i,...s})=>{const c=`${o.CDN||""}icons/${l}.svg`;return i&&"normal"!==r?m(E,{className:e,children:h("svg",{className:x(P(s.width),z[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[a?m("title",{children:a}):null,n?m("desc",{children:n}):null,m("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]})}):m("img",{className:e,src:c,alt:n,title:a,...s,"aria-hidden":"true"})})),P=e=>e?"":"w-full h-full",E=u((({className:e,children:t})=>e?m("div",{className:e,children:t}):t)),F=(e,t)=>e.media&&t.media?e.media-t.media:0,U=u((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:a})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(F).map((({src:e,format:l,media:n},r)=>m("source",{srcSet:G(e,a),type:W(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,H({...t,src:X(t.src,a)},l,n)]})})),H=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return m("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:n,...e.size})},X=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,G=(e,t)=>e?.split(",").map((e=>X(e.trim(),t))).join(", ");function W(e){return e?`image/${String(e)}`:void 0}const J=u((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?m(O,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...r}):m(U,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:a}):null)),Y=u((({children:e,...t})=>m("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),Z=["PlusIcon","MinusIcon"],K=u((({className:e="",label:t="",isExpanded:l,...n})=>m("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:m(D,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m(A,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:y(n)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(q,{label:t,icon:Z[Number(e)],onClick:l})})})));K.childrenTypes=[];const q=u((({label:e,icon:t,onClick:l})=>h("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[m(Y,{size:"text-xl",font:"font-medium",children:e}),m(J,{image:{icon:t},className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),Q=u((({className:e="",title:t,benefitList:l,...n})=>h(R,{className:`p-12 flex flex-col items-center ${e}`,...n,children:[t?m(j,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?m("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(ee)}):null]}))),ee=(e,t)=>{const l=e.description;return h("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?m(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon,asSVG:!0}):null,e?.icon?.src?m(J,{image:e.icon}):null,h("div",{className:"ml-5",children:[e?.label?m(j,{headingType:"h6",children:e.label}):null,te(l)]})]},String(t))},te=e=>{const t=e?.benefitType||null;return e&&t?m("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?ne(e):le(e)}):null},le=e=>e?.name||null,ne=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?m("ul",{className:t,children:e.items.map(((e,t)=>m("li",{children:e},`benefitListItem-${t}`)))}):null};const ae=e=>e?.includes("//"),re=e=>(e||"").replace(/\/?\?.*/,""),ie=e=>{if(!e||!ae(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t},se=e=>{if(!e||!ae(e))return;return new URL(e).pathname},oe=e=>e?.startsWith("#");var ce=Object.freeze({__proto__:null,isURL:ae,withoutQuery:re,getOrigin:ie,getPathname:se,getHash:e=>{if(!e||!ae(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:oe});const de=(e,t)=>de._impl(e,t);function me(){return me._impl()}function he(){const e=me(),t=T.inst;return l=>{const n=((e,t)=>{if(!e)return e;const l=ie(t?.href);return l?e.replace(l,"")||"/":e})(l.href,e);return{...l,href:n,"aria-label":l.text,onClick:de((a=>{l.onClick&&l.onClick(a),ue(n,l.target)||(a?.preventDefault(),oe(n)?t.goto(n):n&&e.push(n))}),l)}}}de._impl=e=>e,de.setup=e=>{de._impl=e},me._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),me.setup=e=>{me._impl=e};const ue=(e,t)=>ae(e)||t&&"_self"!==t||e?.startsWith("/"),pe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},xe="bg-main-divider text-main-disabled",ge={primary:xe,secondary:xe,white:xe,link:"",transparent:"",gray:xe,"":""},be="text-center font-sans select-none",fe={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},ve=u((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:r="primary"}=e;return h("div",{className:Ne(e),children:[n?m("div",{className:fe[r],children:n}):null,ye(e)?h("div",{children:[l?m("div",{className:"text-xs-light text-left",children:l}):null,m("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?m("div",{className:fe[r],children:a}):null]})})),Ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ye(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ye=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),we=({className:e,rounded:t,version:l})=>["inline-block",be,l?ge[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ce=({className:e,rounded:t,version:l})=>[be,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?pe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=u((({disabled:e,children:t,...l})=>{const n=he()(l),a=t??m(ve,{...n});return m(e?$e:Se,{...n,children:a})})),Se=u((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>m("a",{className:Ce({className:e,version:r,rounded:i}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),$e=u((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>m("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:we({className:e,rounded:n,version:l}),children:a}))),Ie=(e,{className:t="",buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text))?m("div",{className:x("flex",n?"flex-col gap-2":"gap-4",t),children:e.map(Te(l))}):null,Te=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return n?m(ke,{className:e,appendLeft:Be({...a,iconVersion:o}),appendRight:Be({...r,iconVersion:o}),version:i,text:n,...s},l?String(l):""):null},Be=e=>e?.icon||e?.src?m(J,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Re={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Ve={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},je=u((({className:e,title:t,description:l,headlineVersion:n="XL",align:a="text-center",as:r,version:i="",...s})=>{const o=Re[n];return h(R,{className:x("flex flex-col p-12",o.wrapper,e),version:i,...s,children:[t?m(j,{className:x("whitespace-pre-wrap",a),...o?.title,as:r||o?.title.as,title:t}):null,l?m(_,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:a,children:l}):null]})})),_e=u((e=>{const{className:t="",title:l,description:n,bonusItems:a,...r}=e;return m(R,{className:`p-12 pb-9 ${t}`,...r,children:h("div",{className:"container",children:[m(je,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),m("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>m("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:h("div",{className:"flex justify-between w-full",children:[h("div",{className:"flex flex-col justify-between mr-4",children:[h("div",{children:[m("div",{className:"text-h4",children:e.title}),m("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),Ie(e?.buttons)]}),e.bonusItemContent?.bonusType?Le(e.bonusItemContent):null]})},String(t)))):null})]})})})),Le=e=>m("div",{children:"count"===e.bonusType?Me(e):De(e)}),Me=e=>h("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?m("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?m("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),De=e=>e.image?m(J,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Ae=u((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:r,...i})=>h(R,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[m(je,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?m("div",{className:`grid gap-1 ${w[t]} ${Oe(n)}`,children:e.map(ze)}):null]}))),ze=({icon:e,label:t,description:l},n)=>h("div",{className:"flex flex-col items-center text-h6",children:[l?m("span",{children:l}):null,e?m(J,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,m("div",{children:t?m("span",{children:t}):null})]},String(n)),Oe=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Pe=u((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return h("div",{className:"border-gray border p-9 w-1/2",children:[l?h("div",{className:"flex justify-center",children:[l?.src?m(J,{className:"mb-5",image:l}):null,l?.icon?m(J,{image:l,asSVG:!0}):null]}):null,t?m(j,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?m("ul",{children:n.map(((e,t)=>Ee(e,String(t))))}):null,Ie([a],{buttonClassName:"mt-6"})]})})),Ee=(e,t)=>{const{icon:l,text:n}=e;return h("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?m(J,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?m(J,{image:l}):null,m("span",{className:"text-xl-light",children:n})]},t)},Fe=u((({className:e="",title:t,cards:l,...n})=>h(R,{className:`p-12 pb-9 ${e}`,...n,children:[m(j,{headingType:"h3",title:t,className:"text-center mb-8"}),m("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>m(Pe,{...e},String(t)))):null})]}))),Ue=u((({button:e,...t})=>m(R,{...t,children:Ie([e])}))),He=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:a}=e,[i,s]=n(0),o=r((()=>s((e=>a?(e+1)%t:Math.min(e+1,t-1)))),[a,t]),c=r((()=>s((e=>a?(t+e-1)%t:Math.max(e-1,0)))),[a,t]),d=a||function(e,{itemCount:t,visibleItemCount:l,container:n}){if(l)return t>l;if(n){return n.scrollWidth*e/t+n.clientWidth<n.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=a||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Xe=u((({className:e,disabled:t,...l})=>m(ke,{rounded:!0,className:`group/btn 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,...l,children:m(J,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16",asSVG:!0})}))),Ge=u((e=>m(Xe,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),We=u((e=>m(Xe,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Je({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:r=""}){return l||n?h("div",{children:[l?m(Xe,{className:`absolute z-50 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?m(Xe,{className:`absolute z-50 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Ye=e=>new Intl.NumberFormat("ru-RU",{}).format(e),Ze=u((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>h("div",{className:x("mb-7",a),children:[e?m(Y,{size:"text-l-light",color:"text-secondary-text",children:e}):null,m("div",t?{children:h(Y,{size:"text-h3",children:[n," ",Ye(Math.round(t))," ",l]})}:{children:m(Y,{size:"text-h3",children:"-"})})]}))),Ke=2e6,qe=97e4,Qe=Math.round(23.5),et={minSum:6e4,maxSum:Ke,minMonths:13,maxMonths:60,rateBottomRange:12,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},tt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},lt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},nt={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:5.9,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},at=u((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:r})=>h("div",{children:[m(Y,{size:"text-l-light",color:"text-secondary-text",children:t}),h("div",{className:"relative",children:[h("div",{className:"flex justify-start",children:[m("span",{className:x("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e).replace(".",",")}),l?m("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),n&&a?m("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),rt=e=>e?m(_,{size:"text-s-light",color:"text-secondary-text",children:e}):null,it=(e,t,l)=>Math.max(t,Math.min(e,l)),st=e=>e.split(/\s+/).join(""),ot=u((({className:e,title:t,items:l=[],min:n=1,max:a=100,step:r=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(it(Number(st(e.target.value)),n,a))},d={backgroundSize:`${(100*(i-n)/(a-n)).toFixed(2)}% 100%`};return h("div",{className:e,children:[h("label",{className:"block relative",children:[t?m("span",{className:"text-m-light text-primary-text",children:t}):null,m("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ye(i),disabled:s,onChange:c,onBlur:c}),m("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:m("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),ct(l)]})}));function ct(e){return m("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>m("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const dt=1e3;function mt(e,t,l){const{moneyValue:n,minSum:a,maxSum:r,step:i=dt,isShowItems:s=!0}=t,o=[`От ${Ye(a)} ₽`,`До ${Ye(r)} ₽`];return m(ot,{title:e,items:s?o:[],min:a,max:r,step:i,value:it(n,a,r),onChange:l})}const ht=new Map;function ut(e,t,{fallback:l}={}){const r=i((()=>pt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>ht.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function pt(e){return e?Array.isArray(e)?e:e instanceof Function?pt(e()):[e]:[e]}async function xt(e,t){try{return await gt(e,t)}catch(e){console.error(e)}return null}async function gt(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function bt(e){const{data:t}=ut(`/wcms-resources/${e}.json`,gt);return t}const ft=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=bt(t||"bonus-calculator-data")||tt,[r,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(a,l,n);return{...a,...e,monthBonus:r,yearBonus:i}},vt=u((({className:e="",sourceBookDir:t="",buttons:l,footnote:a})=>{const[i,s]=n(6e3),o=r((e=>s(e)),[]),[c,d]=n(6e3),u=r((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:g,maxSumTravel:b,minSumOther:f,maxSumOther:v,monthBonus:N,yearBonus:y}=ft(p,t);return h("section",{className:x("flex justify-between",e),children:[h("div",{className:"w-[468px]",children:[mt("Сумма покупок в категории путешествия, ₽",{minSum:g,maxSum:b,moneyValue:i,step:500,isShowItems:!1},o),mt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:f,maxSum:v,moneyValue:c,step:500,isShowItems:!1},u)]}),m("div",{children:N>=0?m(at,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),h("div",{className:"w-full max-w-[350px]",children:[y>=0?m(Ze,{title:"Баллов за год",value:y}):null,Ie(l,{className:"mt-7",isVertical:!0}),rt(a)]})]})})),Nt=u((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:r,...i})=>m("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:r.map((({d:e,fill:t,...l},n)=>m("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),yt=[{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"}],wt=u((({className:e,text:t,checked:l,disabled:n,isRadio:a,onChange:r})=>m("div",{className:e,children:h("label",{className:"flex items-center relative cursor-pointer group/box",children:[m("input",{className:x("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",a?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",l?"border-black":"border-gray",n?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l,disabled:n}),a?m("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):m(Nt,{paths:yt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?m("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})})));function Ct(e,t,l){const{minDays:n,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return m(ot,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const kt=u((({items:e,checkedItem:t,onChange:l})=>m("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>m(wt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))}))),St="everyMonth",$t="atEndTerm",It=[{id:St,text:"Ежемесячно"},{id:$t,text:"В конце срока"}];function Tt(e,t,l){return h("div",{children:[l?m(Y,{color:"text-secondary-text",font:"font-light",children:l}):null,m("div",{className:"mt-3",children:m(kt,{items:It,checkedItem:e?St:$t,onChange:e=>t&&t(e===St)})})]})}const Bt=u((({title:e="Ставка"})=>h("div",{children:[m(Y,{size:"text-l-light",color:"text-secondary-text",children:e}),m("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:m(J,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),m("div",{className:"w-[250px] mt-3.5",children:h(_,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",m("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),Rt=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},Vt=u((({className:e="",sourceBookDir:t,buttons:l,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=n(1e5),d=r((e=>c(e)),[]),[u,p]=n(90),x=r((e=>p(e)),[]),[g,b]=n(!1),f=r((e=>b(e)),[]),[v,N]=n(!1),y=r((e=>N(e)),[]),[w,C]=n(!1),k=r((e=>C(e)),[]),[S,$]=n(!1),I=r((e=>$(e)),[]),T=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=bt(t||"business-calculator-data"),c=r||a,d=l<90||l>730;if(l<=30)return{...nt,...e,isDisabledOperatingDeposit:d,rate:0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&(c?e.isReplenished&&e.isPartialWithdrawal:!e.isReplenished&&!e.isPartialWithdrawal)))||nt,{rate:h}=m,u=Rt(h,e),p=n+u;return{...m,...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:u,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:j}=T;return h("section",{className:e,children:[h("div",{className:"flex justify-between",children:[h("div",{className:"w-[486px]",children:[mt("Сумма вклада, ₽",T,d),Ct("Срок вклада, дни",T,x),h("div",{className:"mt-7 flex justify-between",children:[jt({...T,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),Tt(S,I,"Выплата процентов")]})]}),V?m(at,{rate:V,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}):m(Bt,{}),h("div",{className:"w-full max-w-[350px]",children:[m(Ze,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),m(Ze,{title:"Сумма в конце срока",value:R,postfix:"₽"}),Ie(l,{className:"mt-7",isVertical:!0}),m("div",{className:"mt-7",children:rt(a)})]})]}),m("div",{className:"mt-5",children:rt(i)})]})})),jt=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:n,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>h("div",{children:[m(wt,{text:"Пополнение",disabled:e,checked:t,onChange:a}),m(wt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:l,onChange:r}),m(wt,{className:"mt-3",text:"Являюсь малым предприятием",checked:n,onChange:i})]});function _t(e,t,l){const{minMonths:n,maxMonths:a,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return m(ot,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const Lt=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:a,moneyValue:r}=e,i=bt(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&a===e.isStateEmployee))||et,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=r<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},Mt="annuity",Dt="differential",At=[{id:Mt,text:"Аннуитетный"},{id:Dt,text:"Дифференцированный"}],zt=u((({className:e="",sourceBookDir:t,buttons:l,footnote:a})=>{const[i,s]=n(!1),[o,c]=n(!0),[d,u]=n(!1),[p,g]=n(!1),[b,f]=n(qe),v=r((e=>f(e)),[]),[N,y]=n(Qe),w=r((e=>y(e)),[]),C=Lt({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:b,monthsValue:N},t);return h("section",{className:x("flex justify-between",e),children:[h("div",{className:"w-[468px]",children:[mt("Сумма кредита, ₽",{...C,step:500},v),_t("Срок кредита, месяцев",C,w),h("div",{className:"mt-7",children:[m(wt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:u}),m(wt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:g}),m(wt,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),m(at,{title:"Ставка",rate:C.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[m(Ze,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:C.monthlyPayment,postfix:"₽"}),m(kt,{items:At,checkedItem:i?Mt:Dt,onChange:e=>s(e===Mt)}),Ie(l,{className:"mt-7",isVertical:!0}),rt(a)]})]})})),Ot=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},Pt={CreditCalculatorForm:zt,DepositCalculatorForm:u((({className:e="",sourceBookDir:t,buttons:l,footnote:a})=>{const[i,s]=n(qe),o=r((e=>s(e)),[]),[c,d]=n(Qe),[u,p]=n(!1),g=r((e=>p(e)),[]),b={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:u},f=r((e=>d(e)),[]),v=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n}=e,a=bt(t||"deposit-calculator-data")?.rows?.find((e=>l===e.isMonthlyInterestPayment))||lt,{rate:r}=a,i=Ot(r,e),s=n+i;return{...a,...e,income:i,finalSum:s}})(b,t),{income:N,finalSum:y,rate:w}=v;return h("section",{className:x("flex justify-between",e),children:[h("div",{className:"w-[468px]",children:[mt("Сумма вклада, ₽",{...v},o),_t("Срок вклада, месяцев",{...v},f)]}),m(at,{rate:w||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),h("div",{className:"w-full max-w-[350px]",children:[N?m(Ze,{title:"Доход по вкладу",value:N,postfix:"₽",prefix:"+"}):null,y?m(Ze,{title:"Сумма в конце срока",value:y,postfix:"₽"}):null,Tt(u,g),Ie(l,{className:"mt-7",isVertical:!0}),rt(a)]})]})})),BusinessDepositCalculatorForm:Vt,BonusCalculatorForm:vt},Et=(e,t)=>{const l=e?.calcType;if(!l||!(l in Pt))return null;const n=Pt[l];return m("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:h("div",{className:"box-border p-9 w-full",children:[e?.title?m(j,{className:"text-center mb-6",title:e.title}):null,m(n,{...e})]})},String(t))},Ft=u((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=r((e=>o(e)),[]),[d,u]=He({itemCount:t?.length,visibleItemCount:3});return h(R,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[h("div",{className:"bg-white",children:[a.length>1?Ut({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Je({...u,btnClass:["left-3","right-3"],className:"top-8"})]}),m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Et):null})]})}));function Ut({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return h("div",{children:[m("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:m("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[m(J,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),h("div",{className:"border-0",children:[m("div",{className:`${r}`,children:e?.title}),m("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),m("div",{className:"w-full h-2 bg-primary-main"})]})}const Ht=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Xt=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Gt=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Wt=u((({className:e="",inputClassName:t="",id:l,name:n,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:u,...p})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!u)return;const t=e.target.validity.valid?e.target.value:s;u(t)}),[u]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return h("div",{className:`relative ${e}`,children:[i?m("label",{className:"block text-m-light mb-2",children:i}):null,m("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:n||l,type:a,value:s,onChange:x,onBlur:g,...p}),c]})})),Jt=u((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...a})=>{const i=r((e=>{if(!t)return;const a=Ht(Xt(Gt(st(e))));const r=Yt(a,it(Number(a),l,n));t(String(r))}),[t]),s=r((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(st(l))).replace(",",".")))}),[t]);return m(Wt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...a,children:m("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Yt=(e,t)=>Number(e)===t?e:String(t),Zt=u((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=n(""),d=r((e=>c(e)),[]),u=!Number(st(o)),p=u?we({version:i?.version}):Ce({className:"text-white",version:i?.version}),x=he();return h(R,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?m(j,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,h("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[m(Jt,{name:"amount",value:o,onChange:d,valid:""===o||!u,placeholder:a,label:l}),i?.text?m("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:u,...x(i),children:i.text}):null]})]})})),Kt=u((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:i,onIntersection:s})=>{const o=k(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return m("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===n),ref:o,children:i})})),qt=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Qt=u((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:h,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),u&&u(tl(l))}),[h,u]),f=n>0?a*Number(n)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?el(i,f):{},...v?ll(t):{},gap:`${a}px`};return m("div",{className:x("box-border overflow-auto no-scrollbar",o,e),style:y,role:"list",ref:t,children:(w=(e,t)=>m(Kt,{className:x(c,n?qt[n-1]:""),style:N?el(i/4):{},activeIndex:l,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(w):w(e,0))(d)});var w})),el=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),tl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ll=e=>({height:e?.current?.firstElementChild?.clientHeight||0}),nl=e=>e,al=(e=nl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),rl=(e=nl)=>al((t=>-e(t))),il=e=>t=>e.scrollWidth/t,sl=e=>(t,l)=>{e.scrollBy({left:l*il(e)(t),behavior:"smooth"})},ol=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[i,o]=n([]),c=r((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[rl()(i),al()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):sl(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):sl(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},cl="absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none",dl="absolute top-[calc(50%-12px)] z-50",ml=u((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:a=!1,isPadding:r=!0,...i})=>{const{blocks:s}=i.block||{},o=t||s?.length||0,[c,d]=ol({itemCount:o,isCyclic:a});return m(R,{className:x(ul(r),e),...i,children:h("div",{className:"relative max-w-full",children:[m(Qt,{containerRef:c,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:d.handleVisibleIndicesChange,children:y(i)}),(d.canScrollLeft||d.canScrollRight)&&n?h("div",{children:[m("div",{className:`${cl} left-0 bg-opacity-from-white`}),m("div",{className:`${cl} right-0 bg-opacity-to-white`})]}):null,hl(d)]})})}));ml.childrenTypes=["CarouselCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard"];const hl=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:n})=>h("div",{children:[l?m(Ge,{className:`${dl} left-8`,onClick:e}):null,n?m(We,{className:`${dl} right-8`,onClick:t}):null]}),ul=e=>e?"p-12":"",pl="absolute border border-solid border-gray w-full h-full",xl={normal:"min-w-[970px]",mini:"min-w-[355px]"},gl=u((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal"})=>m("section",{className:`flex pb-9 pl-12 border-box ${xl[a]} ${e}`,children:h("div",{className:"relative w-full",children:[m("div",{className:`${pl} z-10 top-9 right-12 bg-green-dark`}),m("div",{className:`${pl} z-10 top-6 right-8 bg-green`}),m("div",{className:`${pl} z-10 top-3 right-4 bg-green-light`}),h("div",{className:"relative bg-white z-10 p-10 border border-solid border-green-light",children:[m(je,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left"}),Ie([t],{className:"mt-14"})]})]})}))),bl={black:"bg-black",white:"bg-white"},fl=u((({className:e="",title:t,description:l,image:n,price:a,button:r,colors:i,...s})=>h(R,{className:`border box-border border-gray p-7 min-w-[392px] flex flex-col justify-left ${e}`,...s,children:[n?.src?m(J,{className:"mb-5 flex justify-center",image:n}):null,t?m(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"mb-4",children:m(_,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:m(Y,{children:"Доступные цвета: "})}),i.map(vl)]}):null,a?h(Y,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Ie([r],{buttonClassName:"mt-5 w-full"})]}))),vl=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${bl[e]}`},String(t)),Nl=u((({className:e="",title:t="",buttons:l,image:n,children:a})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:a}),l?m("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),yl={1:"flex-col",2:"gap-x-10 flex-wrap"},wl=u((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:a,image:r,title:i,...s})=>{const o=i?m(j,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return m(R,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:h(Nl,{title:o,image:c,children:[h("div",{className:"flex justify-between mb-4",children:[a?m("div",{className:"w-1/3",children:m(Y,{size:"text-h6",children:a})}):null,e?m(Y,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?m("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${yl[n]}`,children:Cl(t,n)}):null]})})})),Cl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return h("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?m("div",{className:"pr-2.5",children:m(Y,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),kl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Sl=u((({text:e,href:t="",target:l="",className:n=""})=>e?h("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[h("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",href:t,target:l,children:[m("div",{className:"p-0.5",children:e}),m("div",{className:"w-6 h-6",children:m(J,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),m("div",{className:`${kl} mx-1.5 mt-1.5`}),m("div",{className:`${kl} mt-3 mr-3`})]}):null)),$l=u((({className:e="",additionalDescription:t,description:l,links:n,title:a,version:r="secondary",...i})=>h(R,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,version:r,...i,children:[h("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[m(je,{className:"p-0",title:a,description:l,as:"h1",align:"text-left"}),t?m("div",{className:"pt-6",children:m(_,{children:t})}):null]}),n?.length?Il(n):null]}))),Il=e=>{const t=Math.ceil(e.length/12);return m(ml,{version:"",className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>m("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>m(Sl,{className:"m-1",...e},String(t))))},String(l))))})},Tl={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Bl=u((({className:e="",isDotted:t=!0,children:l,size:n="M"})=>h("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?m("div",{children:m("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Tl[n]}`})}):null,m("span",{children:l})]}))),Rl={S:"text-l-light",M:"text-h6",L:"text-h5"},Vl={S:"ml-2",M:"ml-3",L:"ml-4"},jl=u((({className:e="",hasIndent:t,isDotted:l,itemClassName:n="",items:a,listItemSize:r="M"})=>a?.length?m("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${Rl[r]} ${t?Vl[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>m(Bl,{className:`${n} mb-1.5`,isDotted:l,size:r,children:e},String(t))))}):null)),_l=u((({className:e="",title:t,headlineSmallVersion:l="H6",description:n,additionalDescription:a,icon:r,items:i=[],button:s={},version:o="primary",isDotted:c=!0,align:d="text-center",...m})=>h(R,{className:x("flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6","box-border border-solid border border-gray",d,e),version:o,...m,children:[h("div",{className:"flex flex-col h-full",children:[Ll(r),Ml(l,t),Dl(n,t),zl(i,c,o),Al(a)]}),Ie([s],{buttonClassName:"mt-6 w-full"})]}))),Ll=e=>h("div",{className:"flex justify-center",children:[e?.src?m(J,{className:"mb-5",image:e}):null,e?.icon?m(J,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),Ml=(e,t)=>t?m(Y,{size:Ve[e],children:t}):null,Dl=(e,t)=>e?m("div",{className:t?"mt-2":"",children:m(_,{size:"text-l",children:e})}):null,Al=e=>e?m("div",{className:"mt-auto",children:m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,zl=(e,t,l="primary")=>e?.length?m(jl,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,Ol=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Pl=u((({className:e="",title:t,icon:l,list:n=[],...a})=>h(R,{className:`border border-gray flex min-w-[536px] ${e}`,...a,children:[h("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?m(J,{image:Ol(l),asSVG:!0}):null,l?.src?m(J,{image:l}):null]}),h("div",{className:"p-8 pl-3 w-full",children:[t?m(j,{className:" mb-3.5",headingType:"h5",title:t}):null,n.length?m("div",{className:"flex flex-col gap-3",children:n?.map(El)}):null]})]}))),El=(e,t)=>h("div",{className:"break-words",children:[e.title?m("div",{className:"text-h6",children:e.title}):null,e.description?m("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Fl=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],icon:{icon:"YoutubeIcon"},label:"Youtube"}],Ul={default:"w-14 h-14",small:"w-12 h-12"},Hl=u((({iconVersion:e="color",buttonSize:t="default",rounded:l=!1,...n})=>{const{href:a,version:r}=n,{icon:i,label:s}=Fl.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},o=i?{...Ol(i),iconVersion:e}:null;return m(ke,{className:x("group/media flex items-center justify-center box-border",Ul[t],l?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Ul[t]),"aria-label":s,target:"_blank",rel:"noopener noreferrer",version:r,...n,children:o?m(J,{image:o,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),Xl=u((({className:e="",media:t,children:l,buttonSize:n})=>h("div",{className:"font-sans",children:[m("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>m(Hl,{buttonSize:n,version:e.version,...e},String(t))))}),m("span",{className:"text-s-light text-secondary-text",children:l})]}))),Gl=u((({button:e,className:t="",description:l,image:n,items:a=[],socialMedia:r=[],title:i,version:s="primary",...o})=>{const c=i?m(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:i}):null,d=n?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return m(R,{className:x("relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",t),version:s,...o,children:m(Nl,{className:"flex justify-between",title:c,image:d,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,a.length?m(jl,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:a}):null,r.length?m(Xl,{className:"pt-10 pb-0",media:r}):null,Ie([e],{className:"pt-2 mt-16"})]})})})})),Wl=u((({className:e="",title:t,icon:l,isHighlighting:n,button:a,cardCells:r=[],...i})=>{const s=r.map(Kl),o=s.slice(0,1),c=s.slice(1);return h(R,{className:x("relative border border-gray min-w-[322px] p-8 flex flex-col",Yl(n),e),...i,children:[n?ql():null,Jl(l),t?m(j,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?m(ke,{className:"w-full mt-4",...a}):null,r.length?m(D,{renderFoldableSection:({isUnfolded:e})=>h("div",{children:[o,m(A,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Zl:null}):null]})})),Jl=e=>h("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?m(J,{image:e}):null,e?.icon?m(J,{image:Ol(e),asSVG:!0}):null]}),Yl=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",Zl=({isUnfolded:e,onToggle:t})=>h("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[m("div",{children:e?"Скрыть":"Подробнее о тарифе"}),m(O,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Kl=(e,t)=>h("div",{className:"py-5 border-b border-main-divider",children:[e?.title?m("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?m("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),ql=()=>h("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[m(O,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),m(_,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ql={black:"bg-black",white:"bg-white"},en=u((({className:e="",title:t,description:l,image:n,price:a,button:r,colors:i})=>h("section",{className:`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?m(J,{className:"mb-5 flex justify-center",image:n}):null,t?m(j,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?m("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?h("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[m("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(tn)]}):null,a?h("div",{className:"text-h3 text-left",children:[a," ₽"]}):null,Ie([r],{buttonClassName:"mt-5 w-full"})]}))),tn=(e,t)=>m("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Ql[e]}`},String(t)),ln="absolute top-0 bottom-0 w-[84px]",nn=u((({cards:e=[],className:t="",title:l,description:n,...a})=>{const[r,i]=He({itemCount:e?.length,visibleItemCount:3});return h(R,{className:`p-12 overflow-hidden text-center ${t}`,...a,children:[m(je,{className:"!p-0",title:l,description:n,headlineVersion:"M",...a}),m("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*r}px)`},role:"list",children:e?.length?e.map(((e,t)=>m(en,{...e},String(t)))):null}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),m("div",{className:`${ln} left-0 bg-opacity-from-white`}),m("div",{className:`${ln} right-0 bg-opacity-to-white`})]})})),an="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",rn="border-gray border-solid border",sn="border-main-divider border border-t-0 border-x-0",on="w-[200px] mr-6",cn=u((({icon:e,image:t,title:l,link:n})=>h("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${rn} ${an}`,role:"columnheader",children:[e&&!t?.src&&m(J,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Ol(e),width:"63",height:"63",asSVG:!0}),t?.src&&m(J,{className:"mb-[18px]",image:t}),l?m(j,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&m("div",{className:"mt-auto w-full",children:m(ke,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:m("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),dn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},mn=u((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>m("div",{className:"flex flex-1 overflow-hidden",children:m("div",{className:dn[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),hn=u((({children:e})=>m("div",{className:"self-start flex flex-col",role:"row",children:m("div",{className:"flex",children:e})}))),un=u((({colHeaders:e,activeIndex:t})=>h(hn,{children:[m("div",{className:on,role:"columnheader"}),m(mn,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>m(cn,{...e},String(t))))})]}))),pn=u((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>m("div",{className:`w-80 box-border flex flex-col ${rn} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?an:""}`,role:"cell",children:m("div",{className:`mx-7 h-full ${sn} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>bn(e,t,n)))})}))),xn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),gn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),bn=({label:e,description:t},l,n)=>h("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?m("h4",{className:xn(n),children:e}):null,t?m("div",{className:gn(n),children:t}):null]},String(l)),fn=(e=!1)=>`text-s py-7 ${sn} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,vn=u((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:r})=>h(hn,{children:[e?.title?m("div",{className:fn(r),children:e.title}):null,t?.length?m(mn,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>m(pn,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:n&&0===t},String(t))))}):null]}))),Nn=u((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return h("div",{className:"relative",children:[e.map(((e,n,{length:a})=>m(vn,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?Je({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),yn=u((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=He({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return h("div",{children:[h("div",{role:"table",children:[r?.length?m(un,{colHeaders:r,activeIndex:o}):null,s?.length?m(Nn,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),wn=u((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),u=r((()=>d((e=>!e))),[]);return h(R,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[m(j,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),m(yn,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Cn({isShowAllRow:c,onClick:u}):null]})})),Cn=({isShowAllRow:e,onClick:t})=>m("div",{className:"pr-12",children:h("div",{className:"flex w-full",children:[m("div",{className:on}),m("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:m("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),kn=u((({className:e="",contacts:t,info:l,version:n="secondary",...a})=>h(R,{className:`flex p-12 ${e}`,version:n,...a,children:[l?.length?Sn(l):null,t?.length?Sn(t):null]}))),Sn=e=>m("div",{className:"flex grow basis-0",children:e.map(((e,t)=>$n({column:e,index:t})))}),$n=({column:e,index:t})=>e?m("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>h("div",{className:"mt-6 first:mt-0",children:[m(je,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?m("div",{className:"mt-1.5 opacity-80",children:m(_,{size:"text-m",font:"font-light",children:l})}):null,n?m(ke,{className:"mt-6",...n}):null]},String(a))))},`col-${String(t)}`):null,In=e=>"Image"===e?.errorContentType&&e?.image?m(J,{image:e.image}):"Code"===e?.errorContentType&&e.code?m("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Tn=u((({className:e="",title:t,subtitle:l,error:n,button:a})=>h("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[m("div",{className:"flex justify-center py-20",children:In(n)}),t?m(j,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?m("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,a?.text?m(ke,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]})));var Bn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Bn||(Bn={}));const Rn=new Intl.NumberFormat("ru",{style:"currency",currency:Bn.RUB}),Vn=e=>e?Rn.format(e):"",jn="text-left text-m-light text-secondary-text",_n=`${jn} pl-11`,Ln={USD:"DollarIcon",EUR:"EuroIcon"},Mn=u((({className:e,exchangeCurrencyItems:t})=>h("table",{className:`h-fit w-fit ${e}`,children:[m("thead",{children:h("tr",{children:[m("th",{className:jn,children:"Валюта"}),m("th",{className:_n,children:"Купить"}),m("th",{className:_n,children:"Продать"})]})}),m("tbody",{children:t.map(Dn)})]}))),Dn=e=>{const t=e?.currency?.currency;return h("tr",{className:"pb-1 text-h6",children:[m("td",{className:"pt-4",children:h("div",{className:"flex items-center",children:[t?m(J,{image:{icon:Ln[t]},width:"24",height:"24"}):null,m("span",{className:"ml-2",children:t})]})}),m("td",{className:"pt-4 pl-11",children:Vn(e?.saleExchangeRate)}),m("td",{className:"pt-4 pl-11",children:Vn(e?.buyExchangeRate)})]},t)},An=u((({className:e="",address:t})=>h("div",{className:`flex ${e}`,children:[m(J,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),h("div",{className:"ml-3",children:[t?m("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,m("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),zn=(e,t,l)=>{const n=Number(On(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},On=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Pn=e=>{return(t=[[e=>e.value!==Bn.RUB&&e.oppositeValue!==Bn.RUB,()=>e.handleConvert(e.value,Bn.RUB)],[e=>e.value===Bn.RUB&&e.oppositeValue===Bn.RUB,()=>e.handleConvert(e.value,Bn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function En(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Fn=u((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,u]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),g=En(r((()=>x(!1)),[]));return a((()=>{u(s||{key:"",text:""})}),[s]),h("div",{className:`${e}`,ref:g,children:[l?m("span",{className:"mb-2 flex text-primary-text",children:l}):null,h("div",{className:"relative "+(p?"z-20":"z-10"),children:[h("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Xn(t)}`,onClick:()=>x(!p),children:[m("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),m(O,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?m("div",{className:`h-0 ${Un(p)}`,children:m("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Hn((e=>{u(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Un=e=>e?"":"overflow-hidden",Hn=(e,t,l)=>(n,a)=>h("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[m("span",{className:"min-h-6",children:n.text}),m(O,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(a)),Xn=e=>e?"border border-gray rounded-md hover:border-primary-hover":"";function Gn(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return h("div",{className:"relative flex",children:[m(Wt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?m(Fn,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Wn=u((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Bn.RUB,selectBuy:l?.[0]?.currency?.currency||Bn.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return h("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Gn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Jn(i,o,l),value:i.inputSell,setValue:e=>Zn(o,l)(e,i.selectSell,i.selectBuy)}),Gn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Yn(i,o,t),value:i.inputBuy,setValue:e=>Kn(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?m(ke,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Jn=(e,t,l)=>n=>{t({selectSell:n}),Pn({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Zn(t,l)(e.inputSell,n,a)}})},Yn=(e,t,l)=>n=>{t({selectBuy:n}),Pn({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>Kn(t,l)(e.inputBuy,n,a)})},Zn=(e,t)=>(l,n,a)=>{e({inputSell:On(l),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;r&&e({inputBuy:String(zn(l,r,n===Bn.RUB)||"")})},Kn=(e,t)=>(l,n,a)=>{e({inputBuy:On(l),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;r&&e({inputSell:String(zn(l,r,n===Bn.RUB)||"")})};const qn=async e=>{const t=await Qn(),l=t?.code||"000";return{region:t,exchangeRates:await ea(e,l)}},Qn=async()=>{try{return await gt("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},ea=async(e,t)=>{try{return await gt(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},ta=u((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=ut("/api/v1/exchangerates",qn);return e||{}}(),r=la(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Bn.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Bn.RUB}}),m(R,{className:`p-9 box-border min-h-80 ${e}`,...n,children:m(Nl,{title:m(j,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:h("div",{className:"flex",children:[h("div",{className:"mr-14 pt-4",children:[r?m(Mn,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,m(An,{address:a?.address})]}),r.length&&i.length&&s.length?m(Wn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),la=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function na(e,t={}){const{data:l}=ut(`/wcms-resources/${e}.json`,gt,{fallback:t});return l||{}}const aa={"bg-white":"color",transparent:"white"},ra={"bg-white":"text-primary-main",transparent:"text-white"},ia=(e,t,l)=>m(J,t?.src?{image:t,className:ra[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:aa[e]},className:ra[e],width:l?.width,height:l?.height,asSVG:!0}),sa={"bg-white":"text-primary-text",transparent:"text-white"},oa=(e,t,l)=>m("span",{className:`${sa[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),ca=u((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>h("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[ia(r,l?.image,{width:"40",height:"45"}),i?oa(n||l?.title,r):null]}))),da=()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}},ma=u((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:n}=da(),a=t?"text-s":"text-l-light",r=t?" placeholder-transparent":"h-full",i=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-5 h-5":"w-6 h-6",children:m(J,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),m("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${r}`,value:l,onChange:e=>n(e.target.value),type:"text",name:"search-bar-input",placeholder:i}),t?m("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),n("")},children:m(J,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):m(ke,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),ha=u((e=>m(ma,{...e}))),ua=u((({className:e="",items:t,hasButton:l})=>h("div",{className:e,children:[t?.length?t.map(pa):null,l?m(ke,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),pa=(e,t)=>{const{type:l,text:n,description:a}=e;return h("div",{className:"mb-4",children:[m("div",{children:xa(l,n)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},xa=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ga(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},ga=e=>e.replaceAll(/\D/g,""),ba=u((({className:e="",index:t,text:l,...n})=>{const a=he(),{href:r,target:i,onClick:s}=a(n);return m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),fa=u((({className:e="",links:t})=>m("div",{className:e,children:t?.length?m("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>m(ba,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),va=e=>t=>e?.href===t?.href,Na=(e,t)=>{return(n=e,a=t,(n||[]).map((e=>a?.find(va(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(va(e))))));var l,n,a},ya=u((({className:e="",items:t,fallback:l})=>{const n=he(),a=na(o.SITEMAP||"sitemap",l),r=Na(a.topItems,t);return m("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:r?.map(((e,t)=>wa(n(e),t)))})})),wa=(e,t)=>{const{text:l,items:n,href:a,target:r,onClick:i}=e;return h("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[m("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>m(Ca,{...e,index:t},String(t))))]},String(t))},Ca=u((({text:e,index:t,...l})=>{const n=he(),{href:a,target:r,onClick:i}=n(l);return m("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:e||`Раздел ${t}`})})),ka=u((({className:e="",index:t,...l})=>{const n=he(),{href:a,target:r,text:i,onClick:s}=n(l);return m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Sa=u((({className:e="",links:t})=>h("div",{className:e,children:[m("div",{className:"pt-5",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>m(ka,{index:t,...e},String(t))))}):null]}))),$a="w-[204px]",Ia=u((({className:e="",...t})=>{const l=t.options?.page?.fallback,{documents:n,relatedEnterprises:a,contacts:r,socialMedia:i,mobileApps:s,logo:c}=na(o.FOOTER||"footer",l);return h(R,{tag:"footer",className:`p-9 ${e}`,...t,children:[h("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[m(ca,{className:$a,logo:c}),m(ha,{className:"grow"})]}),h("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[h("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[m(ua,{items:r,hasButton:!0}),m(Xl,{media:i,children:"Соцсети"}),m(Xl,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),m(ya,{className:"pt-[3px]",fallback:l})]}),m(fa,{className:"mt-[98px]",links:a}),m(Sa,{links:n})]})})),Ta={normal:3,mini:4},Ba={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},Ra={normal:380,mini:276},Va=u((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:a,items:r,button:i,isFullWidth:s=!0,isDotted:o=!0,align:c="center",...d})=>h(R,{className:`h-full flex flex-col justify-between ${w[c]}`,tag:"div",...d,children:[h("div",{className:"flex flex-col h-full",children:[ja(a),_a(t,e),La(l,e),r?.length?Da(r,o):null,Ma(n)]}),Ie([i],{buttonClassName:"mt-6 "+(s?"w-full":"self-center")})]}))),ja=e=>h("div",{className:"flex justify-center",children:[e?.src?m(J,{className:"mb-5",image:e}):null,e?.icon?m(J,{className:"w-8 h-8 min-w-8 mb-5 rounded-full",image:Ol(e),asSVG:!0}):null]}),_a=(e,t)=>t?m("div",{className:Ve[e],children:t}):null,La=(e,t)=>e?m("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Ma=e=>e?m("div",{className:"text-m-light mt-auto group-data-primary:text-secondary-text",children:e}):null,Da=(e,t)=>m(jl,{className:"max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text",itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}),Aa=u((({headlineVersion:e="M",cards:t=[],galleryVersion:l="normal",activeIndex:n,title:a,description:r})=>h("div",{children:[m(je,{className:"!p-0",title:a,description:r,headlineVersion:e}),m("div",{className:`flex mt-8 ${t?.length<=Ta[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*Ra[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,galleryVersion:t},l){return m("section",{className:`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between\n items-stretch ${Ba[t]} ${B[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:m(Va,{...e})},String(l))}({card:e,galleryVersion:l},t)))})]})));const za=u((({cards:e=[],className:t="",galleryVersion:l="normal",button:n,...a})=>{const[r,i]=He({itemCount:e?.length,visibleItemCount:Ta[l]}),{isScrollAvailable:s}=i;return h(R,{className:`relative p-[42px] overflow-hidden flex flex-col ${t}`,...a,children:[m(Aa,{cards:e,galleryVersion:l,activeIndex:r,...a}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?h("div",{children:[m("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),m("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,Ie([n],{className:"mt-8 mx-auto"})]})})),Oa=u((e=>m(za,{...e,galleryVersion:"normal"}))),Pa=u((({className:e="",title:t,description:l,calendar:n,...a})=>h(R,{className:`p-12 ${e}`,...a,children:[m(je,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?Ea(n):null]}))),Ea=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?e.month.length*t:""}%`})));return h("div",{className:"w-full flex flex-col justify-center mt-13",children:[m("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Fa(e,t)))}),m("div",{className:"flex w-full",children:l.map(((e,t)=>h("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:[m("div",{className:"flex",children:Ua(e)}),h("div",{className:"text-s-light text-primary-text mt-3",children:[m("span",{children:e.text})," ",m("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Fa=(e,t)=>e.month?.map(((e,l)=>m("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Ua=e=>e.month?.map((e=>e.image?.src?m("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:m(J,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Ha=(e,t,l=((e,t)=>t.startsWith(e)))=>l(re((e=>ae(e)||e?.startsWith("/")?e:`${o.BASE_PATH||""}${e}`)(e)),re(ae(e)?t.href:se(t.href))),Xa=e=>t=>Ha(t.href,e),Ga=e=>t=>t.items?.some(Xa(e))||Ha(t.href,e)||((e,t)=>[ie(e),ie(t.href)].every(((e,t,l)=>Boolean(e)&&e===l[0])))(t.href,e)||Boolean(o.BASE_PATH?.startsWith(t.href||"/")),Wa=u((({className:e="",active:t,flat:l,ariaLabel:n,children:a,...r})=>{const i=he(),{href:s,target:o,text:c,onClick:d}=i(r);return m("a",{className:`${Ja(t,l)} ${e}`,href:s,target:o,onClick:d,rel:"noopener noreferrer","aria-label":n,children:m("span",{className:Ya(t,l),children:c||a})})})),Ja=(e=!1,t=!1)=>x("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Ya=(e=!1,t=!1)=>x("font-sans text-s-light",e?"text-primary-main":x(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover");function Za(e=!1){const[t,l]=n(e),a=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:i,toggle:s}]}const Ka=864e5;function qa(e,t,l=globalThis?.localStorage){const n=r((async(...n)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Ka?t:void 0}(l.getItem(a));if(r)return r;const i=await t(...n);return l.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return ut(e,n)}const Qa=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const er=u((({className:e,searchTerm:t,onSearch:l})=>h("form",{className:`font-sans relative ${e}`,children:[m("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:m("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),m("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value),type:"text",name:"location-search-bar-input"})]}))),tr=u((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:n})=>{const{term:a,setTerm:i}=da(),s=r((e=>i(e)),[]),o=nr(function(){const{data:e}=ut("/api/v1/regions",gt);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;return e.forEach((e=>{const n=t(e),a=l.get(n);l.set(n,[...a||[],e])})),l})(o,lr);return h("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50",children:[m(rr,{close:l}),h("div",{className:"container py-12",children:[m(ar,{currentLocation:e}),m(er,{onSearch:s,searchTerm:a,className:"mb-7"}),a&&a.length>=3?m("div",{children:o.filter((e=>e.name?.startsWith(a))).map(sr({onChangeLocation:t,close:l}))}):m("div",{className:"columns-5",children:Array.from(c.entries()).map(ir({onChangeLocation:t,close:l}))}),m(or,{foreignOffices:n})]})]})})),lr=e=>e.name?.charAt(0)||"",nr=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ar=u((({currentLocation:e})=>e?h("div",{className:"mb-4",children:[m(Y,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),m("button",{className:"cursor-pointer",onClick:close,children:m(Y,{color:"text-green",children:e.name})})]}):null)),rr=u((({close:e})=>m("button",{className:"visible peer-placeholder-shown:invisible absolute top-6 right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:t=>{t.preventDefault(),e&&e()},children:m(J,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),ir=({onChangeLocation:e,close:t})=>([l,n])=>h("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[m("div",{className:"mb-2.5",children:m(Y,{size:"text-h6",children:l})}),n.map(sr({onChangeLocation:e,close:t}))]},l),sr=({onChangeLocation:e,close:t})=>l=>m("div",{className:"mb-1",children:m("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),or=u((({foreignOffices:e})=>e?.length?h("div",{className:"border-t border-main-divider mt-7 pt-7",children:[m("div",{className:"mb-4",children:m(Y,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),m("div",{className:"flex gap-10",children:e.map(((e,t)=>m(cr,{...e},String(t))))})]}):null)),cr=u((({icon:e,...t})=>{const l=he(),{text:n,target:a,href:r,onClick:i}=l(t);return h("div",{className:"flex gap-x-3",children:[e?m(J,{pathPrefix:"/wcms-resources/",image:e}):null,n?m("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:n}):null]})})),dr=u((({className:e,isRounded:t,disabled:l,ariaLabel:n,image:a,onClick:r})=>m("button",{className:x("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:l,"aria-label":n,onClick:r,children:m(J,{image:a,className:x("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),mr=e=>globalThis[e];function hr(e,t){const[l,i]=n(),s=r((()=>i(mr(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!mr(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const ur={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},pr=u((e=>{const[t,{setTrue:l}]=Za();return t?m(xr,{...e}):gr({...e,onClick:l})})),xr=u((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),hr("chatbot",ur[e])})(e),gr(t)))),gr=({className:e,iconVersion:t,onClick:l})=>m(dr,{className:x("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l}),br=u((({version:e,className:t,officesLink:l,defaultLocation:i="Москва",foreignOffices:s,chat:o})=>{const[c,{setTrue:d,setFalse:u}]=Za(),[p,g]=function(e){const t=Qa(),[l,i]=n(t?.region??{name:e}),{data:s}=qa("/api/v1/region",gt);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[i])]}(i),b="transparent"===e?"white":"black";return h("div",{className:x("flex items-center",t),children:[m(Wa,{className:"mr-5",flat:!0,href:"#",text:p.name,ariaLabel:"Местоположение",onClick:d}),l?m(Wa,{className:"mr-7",flat:!0,href:l,text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов"}):null,o?m(pr,{className:"mr-5",iconVersion:b,chat:o}):null,m(dr,{className:"mr-5",image:{icon:"LoupeIcon",iconVersion:b},ariaLabel:"Поиск по сайту",disabled:!0}),m(dr,{image:{icon:"GridIcon",iconVersion:b},ariaLabel:"Дополнительные ссылки",isRounded:!0,disabled:!0}),c?m(tr,{currentLocation:p,foreignOffices:s,onChangeLocation:g,close:u}):null]})})),fr=u((({className:e="",items:t,activeItem:l})=>{const a=he(),[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),c=En(r((()=>s(!1)),[]));return h("div",{className:x(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[m("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>m("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),m("div",{className:x("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>m("a",{className:x("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(e),children:e.text},e.href||String(t))))})]})})),vr=u((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const r=he(),{href:i,target:s,text:o,onClick:c}=r(a);return h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:i,target:s,"data-item-name":l,onClick:c,children:[m("span",{className:Nr(t),children:o||n}),t?m("div",{className:yr(t)}):null]})})),Nr=(e=!1)=>x("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),yr=(e=!1)=>x("absolute left-0 -bottom-3 w-full h-0.5",e?"bg-primary-main group-data-transparent:bg-transparent":""),wr=u((({className:e,active:t,observerOptions:l,onVisibilityChange:n,children:a,...i})=>{const s=k(r((e=>{if(!e.length||!n)return;const t=e[e.length-1];n(t.isIntersecting)}),[n]),l);return m("span",{ref:s,children:m(vr,{className:e,active:t,...i,children:a})})})),Cr=u((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(Xa(e));return l?.length?al((e=>e.href?.length||0))(l):void 0})(me())(e),[l,a]=n(e.length),r=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{a(e?kr(t):Sr(t))}))),[e]);return h("nav",{className:"relative mt-6",children:[m("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>m(wr,{className:"mr-8 "+(l-1<n?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[n],...e},String(n))))}),r.length?m(fr,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),kr=e=>t=>Math.max(t,e+1),Sr=e=>t=>Math.min(t,e),$r={"bg-white":"primary",transparent:"transparent"},Ir=u((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:n=$r[e],chat:a,...r})=>{const i=me(),{topItems:s,logo:c,defaultLocation:d,foreignOffices:u,officesLink:p}=na(o.SITEMAP||"sitemap",r.options?.page?.fallback),g=s?.find(Ga(i)),b=s?.map(((e,t)=>m(Wa,{active:e===g,"aria-label":e.text,...e},String(t))));return m(R,{tag:"header",className:x("pt-6 px-20",l&&g?.items?.length?"pb-4":"pb-5",t),version:n,...r,children:h("div",{className:"container",children:[h("div",{className:"flex items-center",children:[m(ca,{className:"mr-8",bgColor:e,logo:c}),b,m(br,{version:n,className:"ml-auto",foreignOffices:u,defaultLocation:d,officesLink:p,chat:a})]}),m("div",{className:x("mt-6 h-px bg-main-divider","transparent"===n?"opacity-30":"")}),l&&g?.items?.length?m(Cr,{subItems:g.items}):null]})})})),Tr={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Br=u((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",...a})=>m(R,{className:x("grid grid-cols-12",l?"p-12":"",Tr[t],e),version:n,...a,children:y(a)})));Br.childrenTypes={exclude:["HorizontalLayout"]};const Rr=u((e=>{const{className:t,image:l,...n}=e;return m(R,{className:t,...n,children:m(J,{image:l})})})),Vr=u((({className:e="",cards:t=[],button:l})=>{const[a,i]=n(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=He({itemCount:o,visibleItemCount:2}),{canDec:u,canInc:p}=d,x=t[c]?.href;return h("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[h("div",{className:"relative overflow-hidden",children:[o?jr({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Je({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),u?m("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?m("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),m(ke,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function jr({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return m("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:m("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return h("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?m(J,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,h("div",{className:"flex gap-3.5",children:[e?.sum?_r("страховая сумма",e.sum):null,e?.fee?_r("страховой взнос",e.fee):null]}),Lr(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function _r(e,t){return h("div",{className:"flex flex-col text-left whitespace-pre",children:[h("span",{className:"text-h6",children:[Ye(t)," ₽"]}),m("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Lr(e){return e?m(J,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Mr=u((({className:e="",title:t,insuranceTabs:l=[],button:a,...i})=>{const[s,o]=n(0),c=r((e=>o(e)),[]);return h(R,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?m(j,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?m("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return m("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,m("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Dr({insuranceTabs:l,button:a})})]})})),Dr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>m(Vr,{button:t,cards:e},String(l)))):null};function Ar(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const zr={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Or={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Pr=u((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),m(R,{className:`px-9 py-12 ${t}`,...i,children:h("div",{className:"container text-m-light",children:[s?.length?h("div",{children:[h("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Ar(m("div",{className:"w-px h-4 bg-gray"}))(s.map(Er)),m("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),m("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),m("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Hr)})]}):null,l?.length?m(jl,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Er=(e,t,l)=>{const n=1===t,a=t===l.length-1;return m("div",{className:`${Fr(n,a,e.cells)}`,children:e.cells?.length?m("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ur)}):null},`column_${t}`)},Fr=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ur=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?m("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Or[l]} ${zr[n]} ${"XS"===l?"px-3":"px-11"}`,children:m("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Hr=(e,t,l)=>{const n=0===t,a=t===l.length-1;return m("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Xr=u((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:a,icon:r})=>{const{text:i,fileSize:s,...o}=a;return h("a",{className:e,role:"link",...o,children:[r?m(J,{className:t,image:Ol(r),width:"24px",height:"24px",asSVG:!0}):null,i?h("span",{className:l,children:[i,m("span",{className:n,children:o?.href&&Gr(Wr(o.href),s)})]}):null]})})),Gr=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Wr=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Jr=u((({className:e="",doc:t,icon:l})=>m(Xr,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover/item:text-primary-main",doc:t,icon:l}))),Yr=u((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?m("div",{className:e,role:"list",children:t.map(((e,t)=>m("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:m(Jr,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),Zr={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Kr=u((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>h(R,{className:x("p-12",e),...s,children:[m(je,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),m(Yr,{className:`mt-8 ${Zr[i]}`,columnsMode:i,documents:a,icon:r})]}))),qr=u((e=>m(za,{...e,galleryVersion:"mini"}))),Qr=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ei(e=""){const t=Qr(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const ti=u((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const u="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return h(R,{className:`flex justify-between p-12 box-border relative min-h-80 ${ei(e)} ${e}`,version:a,...d,children:[h(Nl,{className:"z-10",title:t?m(j,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${w[o]}`}):null,buttons:Ie(n,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[ni(c),h("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?m("div",{className:`flex justify-center mr-5 bg-white rounded-md ${u}`,children:m(J,{className:"w-fit",image:l})}):null,li(r)]})]}),i?.src?m("div",{className:"absolute right-0 bottom-0",children:m(J,{image:i})}):null]})})),li=e=>e?.length?m(jl,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):m("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),ni=e=>e?m("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,ai=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function ri(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const ii={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},si=e=>m("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(ii).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),oi={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},ci=(e,t,l)=>h("div",{className:`${Object.values(oi).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[m(O,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),m("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),di={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},mi=(e,t,l)=>m("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(di).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:m(O,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),hi={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},ui=u((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return m("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(hi).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:m(O,{name:l,width:"20",height:"16"})})})),pi={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},xi=u((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),c=hr("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${o.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,u]=n(),[p,x]=n(vi(ai)),g=gi(e);if(a((()=>{i?.current||c?.ready((()=>{i.current=new c.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),ri(c,i.current,p)}))}),[c,i,p]),a((()=>{if(i.current&&p&&c){const e=p.length<1?vi(ai):p;ri(c,i.current,e)}}),[i,p,c]),!c)return null;const b=d?"z-[100000]":"z-10";return h("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[m("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?ci(ai,0,(e=>{if(e){const t=vi(e);x(t)}})):si(g)}),m("div",{className:`${Object.values(pi).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),u(e.isFullscreen())},children:m(O,{name:"FullScreenIcon",width:"16",height:"16"})}),h("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[m(ui,{yandexMaps:i}),m(ui,{yandexMaps:i,direction:"out"})]}),mi(i.current,c,`right-2 top-80 ${b}`)]})})),gi=e=>[fi(bi(e,0)),fi(bi(e,1))],bi=(e,t)=>e.map((e=>e[t])),fi=e=>e.reduce(((e,t)=>e+t))/e.length,vi=e=>e?e.map((e=>e.coords)):null,Ni=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],yi=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?h("div",{className:"flex",children:[m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):m("div",{className:"flex",children:m("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},wi=({icon:e,title:t,distance:l,time:n},a)=>h("div",{className:"flex mr-4",children:[m(O,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?h("span",{className:"text-m",children:[t," "]}):null,h("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),Ci=({title:e,status:t,workTime:l,lunchHour:n,description:a},r)=>h("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[h("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[m("div",{children:e}),t?null:m("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?m("div",{children:l}):null]}),t&&n?ki(n):null,a?m("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),ki=e=>/\d+/gi.test(e)?h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[m("div",{children:"Перерыв"}),m("div",{children:e})]}):m("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:m("div",{children:e})}),Si={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function $i(e){return e?xt(e,{method:"GET"}):{}}const Ii=u((({className:e=""})=>{const t=function(e){const{data:t}=ut(e?`/api/v1/branches?regionCode=${e}`:void 0,$i);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Si}("000"),{name:l,address:n,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:u,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:u,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return h("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[h("div",{className:"flex flex-col px-12 pt-12",children:[h("div",{className:"flex justify-between",children:[m("div",{className:"text-h2",children:l}),yi(C)]}),h("div",{className:"flex text-l-light pt-4",children:[m(O,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),m("div",{className:"flex pt-4",children:Ni.map(wi)})]}),h("div",{className:"flex justify-between pt-8",children:[m("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?m(xi,{points:[N],className:"h-full"}):null}),m("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(Ci)})]})]})})),Ti=u((({className:e="",title:t,servicesList:l,...n})=>h(R,{className:`p-8 flex flex-col ${e}`,...n,children:[t?m(j,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?m("ul",{className:"list-none m-0 p-0",children:l.map(Bi)}):null]}))),Bi=(e,t)=>h("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?m(J,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Ol(e.icon)}):null,e.label?m("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ri=u((({className:e="",...t})=>m(R,{className:`font-sans text-primary-text ${e}`,...t,children:y(t)})));Ri.childrenTypes=["OtherProductsItem"];const Vi=u((({className:e="",label:t,icon:l,dataTheme:n="",onClick:a})=>h("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:a,children:[m("span",{className:"text-h4 pr-3",children:t}),l?m(J,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),ji=({isUnfolded:e,onToggle:t})=>m(Vi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),_i=["ArrowDownIcon","ArrowUpIcon"],Li=u((({className:e,label:t="",isUnfolded:l,...n})=>{const{colorPalette:a}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(n.options,{});return m("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:m(D,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(A,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:y(n)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>m(Vi,{label:t,icon:_i[Number(e)],dataTheme:a||n.options?.page?.colorPalette,onClick:l})})})}));Li.childrenTypes=[];const Mi=u((({text:e,size:t,align:l,font:n,children:a,...r})=>m(R,{...r,children:m(_,{size:t,align:l,font:n,children:e||a})}))),Di=u((e=>{const{className:t="",icon:l,label:n,description:a,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return h("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[l?m("div",{className:Ai(r,i),children:m(J,{className:"w-6 h-6",image:Ol(l,s),asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[n?m("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:n}):null,a?m("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function Ai(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const zi=u((e=>{const{__html:t=""}=e;return m("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function Oi(e){throw new Error(e)}const Pi=e=>(t,l)=>{const{type:n}=t;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return m(Di,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return m(zi,{__html:t.__html});default:Oi(t)}},Ei=u((({className:e="",title:t,description:l,image:n,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>h(R,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[m(je,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),h("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?m(J,{className:s?"order-2":"",image:n}):null,h("div",{className:"w-[558px] m-auto",children:[a?.length?m("div",{className:"flex flex-col gap-4",children:a.map(Pi(o))}):null,Fi(Number(r),Number(i))]})]})]})));function Fi(e,t){return e||t?h("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Ui("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Ui("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Ui(e,t=0,l=!1){return h("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[m("span",{className:"text-secondary-text text-l-light",children:e}),h("span",{className:"text-primary-main text-h6",children:[Ye(t)," ₽"]})]})}function Hi(e=""){const t=Qr(e);return t<=4?"S":t<=8?"M":"L"}function Xi(e=""){const t=Qr(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Gi=u((({className:e,title:t,description:l="Блок в разработке...",...n})=>h(R,{className:x("p-9 box-border",e,Xi(e),ei(e)),...n,children:[m(je,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Hi(e)}),m("figure",{className:"m-0 min-w-[80%]",children:Wi()})]}))),Wi=(e=3)=>Yi(100,e).map((e=>Math.floor(e))).map(Ji),Ji=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Yi=(e,t)=>[e].concat(t>0?Yi(e/1.618,t-1):[]),Zi=u((({className:e="",children:t,...l})=>{const n=he(),{text:a,href:r,target:i,onClick:s}=n(l);return r?m("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:m("span",{className:e,children:a||t})}):m("span",{className:e,children:a||t})})),Ki=(e="primary",t="normal")=>({icon:l,label:n,description:a},r)=>m(Di,{icon:l,label:n,description:a,version:e,benefitsVersion:t},String(r)),qi=u((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:u="primary",isDotted:p=!0,textBlockClassName:g=""})=>{const b=r?.filter((e=>e.label))?.length,f=Qi(a);return h("div",{className:x("flex grow justify-between items-stretch h-full",e),children:[h("div",{className:x("flex flex-col",g),children:[m(je,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:l,align:"text-left"}),h("div",{className:"flex flex-col justify-between h-full",children:[h(Nl,{buttons:Ie(s),children:[b?m("div",{className:f,children:r.map(Ki(u,i))}):null,d?.length?m(jl,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:p}):null]}),o?m("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&m(J,{className:"mt-[-50px]",image:c})]})})),Qi=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function es(e,t,l){const{text:n,href:a,target:r,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return h("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[m(ke,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:a,target:r,children:m(J,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?m("span",{className:"text-m",children:n}):null]})}const ts="text-secondary-text group-data-secondary:text-white/80",ls=u((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:a="primary",...r}=e,i="primary"===a?a:"white";return h(R,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:a,...r,children:[n?.text?es(n,i,"mb-10 -mt-2.5"):null,l?.length?m("div",{className:"text-xs-light mb-6",children:Ar(m("span",{className:`mx-2 ${ts}`,children:"/"}))(l.map(((e,t)=>m(Zi,{className:ts,...e},String(t)))))}):null,m(qi,{version:a,...r})]})})),ns=u((({className:e="",slides:t=[],version:l="primary",...a})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=n(0),d=r((e=>c(e)),[]);return h(R,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,version:l,...a,children:[m("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){return m("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:m("div",{className:"flex grow",children:m(qi,{className:"pl-12 z-10 text-secondary-text group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...a,version:l},t)))}),m("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){const a=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return m("button",{type:"button",onClick:n,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:h("div",{className:"border-0 px-6",children:[m("div",{className:`last:pb-0 ${r}`,children:e?.title}),m("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t)})))})]})}));function as(e,t){if(!e)return null;return m("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:m(_,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const rs=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[m(Y,{size:"text-h6",children:e.label},`label-${t}`),m(Y,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return m("div",{className:"col-span-2",children:m(zi,{__html:e.__html})});default:Oi(e)}};function is(e,t){return e?.src?m(J,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const ss=u((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:a,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>h(R,{className:x("overflow-hidden p-9 box-border relative min-h-[364px]",Xi(e),e),...c,children:[h("div",{className:x("flex flex-col",o?"":"items-end"),children:[m(je,{className:x("!p-0 !bg-transparent z-10",t||n?"mb-3.5":""),title:t,description:n,headlineVersion:l,as:"h2",align:"text-left"}),os(r,s),as(a,s),Ie(i,{className:"mt-5 z-10 text-l"})]}),is(s,o)]})));function os(e,t){if(!e.length)return null;return m("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(rs):null})}const cs=u((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,as:a,buttons:r=[],...i})=>m(R,{className:x("p-9 box-border",e,Xi(e),ei(e)),...i,children:m(Nl,{title:t?m(je,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Hi(e),align:"text-left",as:a||"h2"}):null,buttons:Ie(r),children:h("div",{className:"mt-1.5",children:[l?m("div",{className:"text-s mb-2",children:ds(l)}):null,m("div",{className:"text-l",children:n})]})})})));function ds(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const ms=u((({className:e="",title:t,description:l,items:n,image:a,socialMedia:r,button:i,...s})=>{const o=t?m(j,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=a?.src?m(J,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return m(R,{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",...s,children:m(Nl,{className:"flex justify-between",title:o,image:c,children:h("div",{className:"h-full flex flex-col justify-between",children:[l?m("span",{className:"mb-2",children:l}):null,n?.length?m(jl,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n}):null,r?m(Xl,{className:"pt-10 pb-0",media:r}):null,i?.text?m("div",{className:"pt-2",children:Ie([i],{buttonClassName:"mt-16 px-5"})}):null]})})})})),hs="absolute top-0 bottom-0 w-[84px]",us=u((({recommendations:e=[],className:t="",title:l,version:n="primary",...a})=>{const[r,i]=He({itemCount:e.length,visibleItemCount:2});return h(R,{className:`relative font-sans p-9 overflow-hidden text-center ${t}`,version:n,...a,children:[l?m(j,{headingType:"h3",className:"mb-6",title:l}):null,h("div",{children:[m("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*r}px)`},role:"list",children:e.length?e.map(((e,t)=>m(ms,{version:n,className:"border-gray group-data-secondary:border-white/50",...e},String(t)))):null}),Je({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),m("div",{className:`${hs} left-0 ${"secondary"===n?"bg-opacity-from-main":"bg-opacity-from-white"}`}),m("div",{className:`${hs} right-0 ${"secondary"===n?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),ps=u((e=>{const{__html:t,...l}=e;return m(R,{...l,children:m(zi,{__html:t})})})),xs=u((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:a="primary",...r})=>m(R,{className:`border-b border-solid border-main-divider w-full ${e}`,tag:"div",...r,children:m(D,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>m("div",{className:"box-border",children:m(A,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:y(r)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>gs({version:a,label:t,isUnfolded:e,onToggle:l})})})));xs.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem"]};const gs=({version:e,label:t,isUnfolded:l,onToggle:n})=>{const a=t||(l?"Скрыть":"Развернуть");return"primary"===e?bs({label:a,icon:l?"MinusIcon":"PlusIcon",onToggle:n}):m(Vi,{label:a,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:n})},bs=({label:e,icon:t,onToggle:l})=>h("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[m("span",{className:"text-xl font-medium pr-2.5",children:e}),t?m(J,{image:Ol({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),fs=[];const vs=async e=>await xt(e,{method:"GET"})||fs,Ns=u((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return m(Fn,{options:s,label:i,placeholder:a||n,onChange:e=>r(e.key),value:o})})),ys=u((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:r})=>h("div",{className:"flex justify-between gap-4 mb-6",children:[m("div",{className:"max-w-[396px] w-1/2",children:m(Ns,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),m("div",{className:"max-w-[396px] w-1/2",children:m(Ns,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),ws=u((({name:e,text:t,value:l,checked:n,onChange:a,className:r})=>m("div",{className:r,children:h("label",{className:"font-sans flex items-center relative cursor-pointer",children:[m("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?m("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Cs=u((()=>{const[e,t]=n("option2"),l=r((e=>t(e)),[]);return h("div",{children:[m(ws,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),m(ws,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),ks=["От 1 дня","До 365 дней"],Ss=u((({days:e,setDays:t})=>h("div",{className:"mb-6",children:[m("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),m(ot,{min:1,max:365,value:e,items:ks,onChange:t})]}))),$s=u((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:r})=>h("div",{className:"flex justify-between mb-6",children:[m("div",{className:"mr-4 w-full",children:m(Ns,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),m("div",{className:"w-full",children:m(Ns,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Is=u((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>h("div",{className:"flex-1 mr-9",children:[m(ys,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Ts(c)}),m(Ss,{days:a,setDays:e=>c({days:e})}),m($s,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:Bs(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),m("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),h("div",{className:"flex justify-between items-center mt-5",children:[m(Cs,{}),m(ke,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Ts=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Bs=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Rs=u((({days:e,tariffs:t=[]})=>{const l=js(e,t);return h("div",{className:"flex flex-col justify-between",children:[h("div",{className:"flex",children:[Vs("Аренда за",e,"mr-11"),Vs("Цена",l+" ₽")]}),h("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[m(J,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),h("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",m("br",{})," листов формата А4"]})]})]})})),Vs=(e,t,l="")=>h("div",{className:l,children:[m("div",{className:"text-m-light text-secondary-text mb-1",children:e}),m("span",{className:"text-h3 text-primary-text",children:t})]}),js=(e,t)=>{const l=_s(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},_s=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Ls=(e,t)=>e.find((e=>e.branchCode===t)),Ms=u((e=>{const{regions:t,data:l,branches:n,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=Ls(n,l.selectedBranch),o=Ds(s?.safeBoxCaseVolumes),c=As(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=zs(c,l.selectedBoxSize);return h("div",{className:"flex justify-between align-top mb-6",children:[m(Is,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:r}),m(Rs,{days:l.days,tariffs:d})]})})),Ds=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],As=(e,t)=>e?.find((e=>e.volume===t)),zs=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const Os=u((({title:e,footnote:t,className:l="",...a})=>{const[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=function(){const{data:e}=ut("/api/v1/regions",gt);return e||[]}(),p=Ps(c.selectedRegion,u),x=function(e){const{data:t}=ut(e?`/api/v1/safeboxes?regionCode=${e}`:null,vs);return t||fs}(p),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=Ls(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return h(R,{className:l,...a,children:[h("div",{className:"px-8 py-12",children:[e?m(j,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,m(Ms,{regions:u,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?m("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?m(xi,{points:b,className:"h-[640px]"}):null]})})),Ps=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Es=e=>Boolean(e?.icon||e?.src),Fs=({styleMap:e,isMainButton:t,version:l})=>(n,a,{length:r})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,u=i&&(s||c)?"mt-2":"";return h("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${Gs(r)}`,children:[h("div",{className:(o?.text?"mb-8":"")+" text-center",children:[Us(i),h("div",{className:`${u} flex flex-col items-center`,children:[Hs({description:s,className:e.description}),m(jl,{className:Xs({className:"text-left",description:s,styleMap:e}),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?m(ke,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},Us=e=>e?m("div",{className:"text-h6",children:e}):null,Hs=({description:e,className:t=""})=>e?m("div",{className:t,children:e}):null,Xs=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),Gs=e=>e<5?"w-[276px]":"w-[210px]",Ws={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Js=u((({className:e="",showLines:t=!0,steps:l=[],button:n,version:a="primary",...r})=>{const{title:i}=r,s=Ws[a],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",u=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return h(R,{className:["box-border py-12",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e].join(" "),version:a,...r,children:[i?m(j,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?h("div",{className:`box-border ${d}`,children:[m("div",{className:`flex items-center ${u}`,children:Ar(m("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(Ys(s,a)))}),m("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Fs({styleMap:s,isMainButton:Boolean(n?.text),version:a}))})]}):null,n?.text?m(ke,{className:"mt-8 min-w-60",version:"primary",...n}):null]})})),Ys=(e,t)=>({icon:l},n)=>m("div",{className:"flex flex-col items-center text-center",children:m("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center ${e.iconBackground}`,children:Es(l)?m(J,{image:Ol(l||{},t),width:"48",height:"48",asSVG:!0}):m("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),Zs={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Ks={"horizontal-list":"w-6","vertical-list":"h-6"},qs=u((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list"})=>l?m("div",{className:`flex gap-2 ${Zs[n]}`,children:new Array(l).fill(null).map(((l,a)=>m("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white ${a===t?Ks[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Qs=u((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,children:a,onVisibleIndicesChange:r,listType:i="horizontal-list"})=>{const s=Array.isArray(a)?a.length:0,[o,c]=ol({itemCount:s,onVisibleIndicesChange:r}),[d]=c.visibleIndicesRange;return h("div",{className:x(e,"vertical-list"===i?"relative h-full":""),children:[m(Qt,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:i,children:a}),n?m(qs,{containerRef:o,activeIndex:d,dotCount:s,listType:i}):null]})})),eo=u((({listType:e,showDots:t,options:l,...n})=>m(R,{...n,children:m(Qs,{listType:e,showDots:t,children:y({...n,options:l})})})));eo.childrenTypes={exclude:["SwipeListControlBlock"]};const to="h-12 flex-1 flex items-center justify-center cursor-pointer",lo="font-sans text-m text-center",no="text-white",ao="text-secondary-text group-hover/btn:text-primary-main",ro="text-primary-main",io={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${to} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${to} group/btn bg-white`},default:{active:`${to} bg-primary-main text-white whitespace-nowrap`,default:`${to} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},so={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${to} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${to} group/btn bg-white`},default:{active:`${to} bg-primary-main text-white`,default:`${to} group/btn bg-white`}},text:{scrollable:{active:`${lo} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${lo} ${ao}`},default:{active:`${lo} text-white`,default:`${lo} ${ao}`}}},oo=(e,t,l)=>{const n=t?"active":"default";return io[e][l?"scrollable":"default"][n]},co=(e,t,l)=>{const n=t?"active":"default";return so[e][l?"scrollable":"default"][n]},mo=u((e=>{const{tab:t,currentTab:l,isScrollable:n=!1}=e,a="link"===l?.type&&l.href===t.href,r=he()(t);return m("a",{role:"tab",className:co("link",a,n),target:t.target,href:r.href,onClick:r.onClick,children:m("span",{className:co("text",a,n),children:t.text})})})),ho=(e,t,l)=>e?m("h3",{className:l?`${lo} ${t?ro:ao}`:`${lo} ${t?no:ao}`,children:e}):null,uo=(e,t,l)=>e&&t?m("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,po=({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return m("div",{className:oo("div",s,a),role:"tab","aria-selected":s,onClick:()=>n(r),children:h("div",{className:`flex flex-1 items-center justify-center ${oo("text",s,a)}`,children:[ho(r.title,s,a),uo(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a})(r,i);case"link":return m(mo,{tab:r,currentTab:t,isScrollable:a},String(i));default:Oi(s)}return null},xo=u((e=>{const{tabs:t,onClick:l,currentTab:n,page:a,showCounter:r}=e,[i,s]=ol({itemCount:t?.length||0,isCyclic:!1});return h("div",{className:"relative max-w-full m-auto",children:[m("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:m(Qt,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(po({onClick:l,currentTab:n,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?m(Ge,{className:"absolute z-50 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?m(We,{className:"absolute z-50 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),go=u((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,h]=n(l?l[0]:void 0);a((()=>C.inst.subscribe("tab",(e=>{const t=l?.find(bo(e));return"link"===e.type&&t&&h(t),[]}))),[l]),a((()=>"group"===d?.type?C.inst.subject("tab",{label:d.ref}):void 0),[d]);const u=r((e=>{"group"===e?.type&&C.inst.fire("tab",{type:e.type,label:e.ref}),h(e)}),[]);return m(R,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20 ":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?m(xo,{tabs:l,onClick:u,currentTab:d,showCounter:i,...c}):l?.map(po({onClick:u,currentTab:d,showCounter:i,...c}))})})),bo=e=>t=>"link"===t.type&&t.href===`#${e.label}`,fo=u((({isOpen:e,onClick:t})=>h(ke,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[m("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),m(O,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),vo={Buttons:({buttons:e})=>Ie(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?m(J,{image:e}):null,List:({isDotted:e,...t})=>m(jl,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:u((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?m(fo,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},No=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,u]=n(!0);a((()=>{t===i&&r||u(!0)}),[r,i]);return h("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?m("div",{className:"h-5"}):null,yo({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{u(!1),s(t),l(e)},isVisible:d}})]},String(c))},yo=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in vo))return null;return m(vo[l],{...t,...n})},wo=u((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>m("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(No({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Co=u((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=He({itemCount:t,visibleItemCount:5});return h("div",{children:[e?.map(ko(l)),Je({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),ko=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return h("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?m("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,m("div",{className:"flex flex-grow overflow-hidden",children:m("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,l)=>h("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?m("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?So(t.cols,e):null]},`row${l}`)))})})]},String(l))},So=(e,t)=>e?.length>0?m("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>m("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,$o=u((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return m("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return h("div",{className:"w-full",children:[h("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,m(J,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),m("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:m("div",{className:"relative",children:m(Co,{rows:t.rowsData})})})]},a)}))})})),Io=u((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>h("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?m("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>m("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?m(ke,{href:t,version:"secondary",target:"_blank",appendLeft:m(O,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function To(e){const t=await fetch(e);return await t.json()}const Bo=u((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=ut(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),To);return t||{}}(e),[i,s]=n(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return h("div",a?{className:"bg-white z-10",children:[m(Io,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),m($o,{activeTabIndex:i,items:c}),m(fo,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[m("p",{children:"Данных нет"}),m(fo,{onClick:l,isOpen:!0})]})})),Ro=u((({children:e,tableInner:t,onHideContentClick:l})=>h("div",{className:"self-start flex flex-col",role:"row",children:[m("div",{className:"flex",children:e}),t?m("div",{className:"origin-top animate-expansion",children:m(Bo,{...t,onClick:l})}):null]}))),Vo=u((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...i})=>{const[s,o]=n(void 0),c=r((e=>o(e)),[]),[d,u]=n(void 0),p=r((e=>u(e)),[]);return h(Ro,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[m("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:h("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?m(J,{className:"mr-3.5 max-w-6 max-h-6",image:Ol(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?m("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?m(mn,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>m(wo,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),jo=u((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,u]=He({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>m(Vo,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[p.slice(0,-r),p.slice(-r)]:[p,[]];return h(R,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[_o({title:t,description:l}),Lo(l),r>0?m(D,{renderFoldableSection:({isUnfolded:e})=>h(Mo,{controls:u,children:[x,m(A,{isUnfolded:e,children:g})]}),renderFoldButton:ji}):m(Mo,{controls:u,children:p})]})}));function _o({title:e,description:t}){return e?m(j,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Lo(e){return e?m("div",{className:"mb-9 text-center text-l",children:e}):null}const Mo=u((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return h("div",{role:"table",children:[h("div",{className:"relative",children:[e,Je({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?m("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Do={primary:"bg-white",secondary:"bg-primary-main","secondary-light":"bg-primary-main/10"},Ao=u((({className:e="",title:t,description:l,blockVersion:n="primary",iconVersion:a,image:r,...i})=>{const s="secondary"===n;return h(R,{className:`px-9 py-4 flex gap-3 ${Do[n]} ${e}`,...i,children:["small"===a?m("div",{className:"mt-1",children:zo(s)}):null,"big"===a?Oo(r):null,h("div",{children:[t?Po(t,s):null,l?m("div",{className:"mt-1",children:Eo(l,s)}):null]})]})})),zo=e=>m("div",{className:"rounded-full h-4 w-4 text-center text-xs-light "+(e?"bg-white text-primary-main":"bg-primary-main text-white"),children:"i"}),Oo=e=>e?.src?m(J,{image:e}):null,Po=(e,t)=>m(Y,{size:"text-l",font:"font-medium",color:t?"text-white":"text-primary-text",children:e}),Eo=(e,t)=>m(_,{size:"text-s",color:t?"text-white":"text-secondary-text",children:e}),Fo=u((e=>{const{tags:t,className:l=""}=e;return t?.length?m("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Uo)}):null})),Uo=(e,t)=>m("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Ho=u((({title:e,headingType:t="h3",description:l,items:n,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...u})=>m(R,{className:`overflow-hidden p-9 pr-3 box-border ${Xi(o)} ${ei(o)} ${o}`,...u,children:h(Nl,{title:e?m(j,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Ie(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:r?.src?m(J,{className:"mt-auto ml-7",image:r}):null,children:[l?m("div",{className:"max-w-[600px] mt-2.5",children:m(_,{size:"text-xl-light",children:l})}):null,d,m(jl,{className:"mt-2.5",itemClassName:"mb-1.5",items:n,isDotted:i,listItemSize:s}),c?.length?m(Fo,{tags:c,className:"mt-5"}):null]})}))),Xo={left:"items-start",center:"items-center",right:"items-end"},Go=u((({className:e="",gap:t="",align:l,isPadding:n=!1,isInnerPadding:a=!0,version:r="transparent",options:i,...s})=>{const o=a?"":"!p-0";return m(R,{className:x("flex flex-col [&>*]:max-w-full",n?"p-12":"",Tr[t],l&&Xo[l],e),version:r,...s,children:y({...s,options:{...i,className:o}})})}));Go.childrenTypes=[];const Wo=e=>Qr(e)<10?"py-6 px-11":"py-12 px-32",Jo=u((({className:e,title:t,src:l,previewImg:n,...a})=>h(R,{className:x(Wo(e),e),...a,children:[m(je,{title:t,headlineVersion:"M"}),l?m("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:n?.src,style:{maxHeight:524},controls:!0,children:m("source",{src:l})}):null]}))),Yo={Accordion:M,AccordionItem:K,BenefitsBlock:Q,Bonus:_e,BonusBenefitsBlock:Ae,BusinessBlock:Fe,ButtonBlock:Ue,Calculator:Ft,CardTransfer:Zt,Carousel:ml,CarouselCard:gl,CarouselCatalogCard:fl,CarouselInvestmentCard:wl,CarouselLinks:$l,CarouselProductCard:_l,CarouselProgramsCard:Pl,CarouselRecommendationCard:Gl,CarouselTariffsCard:Wl,Catalog:nn,ComparisonTable:wn,ContactsBlock:kn,ErrorBlock:Tn,ExchangeRateTile:ta,Footer:Ia,Gallery:Oa,GracePeriod:Pa,Header:Ir,Headline:je,HorizontalLayout:Br,ImgBlock:Rr,InsuranceAmountBlock:Mr,InvestmentInfo:Pr,LinkDocs:Kr,MiniGallery:qr,MobileAppTile:ti,OfficeMap:Ii,OfficeServicesBlock:Ti,OtherProducts:Ri,OtherProductsItem:Li,ParagraphBlock:Mi,PictureText:Ei,Placeholder:Gi,ProductBlock:ls,ProductGallery:ns,ProductTile:ss,PromoTile:cs,Recommendation:us,RichTextBlock:ps,RollupItem:xs,SafeDepositRental:Os,StepsBlock:Js,SwipeListControlBlock:eo,Tabs:go,TariffsTable:jo,TextBlock:Ao,Tile:Ho,VerticalLayout:Go,Video:Jo},Zo=["Header","Footer"],Ko=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function qo(e=T.inst,t=globalThis){const l=s(new Map);a((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{l.current&&l.current.set(e,t)}))),[e]),a((()=>{const n=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Zo.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?rl(Ko)(t):[];return l}([...l.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",n),()=>{n.dispose(),t.removeEventListener("scroll",n)}}),[e,t])}const Qo=d();const ec=u((({className:e,onClick:t,ariaLabel:l})=>m("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:tc()}))),tc=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},lc=u((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await Qo.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Qo.like(e))}),[e]),dislike:r((async()=>{l(await Qo.dislike(e))}),[e])}}(me().pathname);return h("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[m(ec,{onClick:de(t.like),ariaLabel:"Поставить отметку «лайк»"}),m(ec,{onClick:de(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:t.likeCount})]})})),nc=u((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};return qo(),h("section",{className:x("relative",r,t),"data-theme":c,children:[s?.header?m("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:N(s?.header,{...d,slotName:"header"})}):null,h("div",{className:"container grid grid-cols-12 gap-1",children:[N(i,d),s?.footer?N(s?.footer,{...d,slotName:"footer"}):null]}),o?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(lc,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));nc.childrenTypes=[],nc.slots=()=>["header","footer"];e.Blocks=Yo,e.ContentPage=nc,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))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=d,e.handlerDecorator=de,e.joinList=Ar,e.packageVersion="0.7.8",e.projectSettings=o,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ce,e.useRouter=me,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";let t;const l=e=>(...l)=>t[e](...l),a=l("useState"),n=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;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||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get BASE_PATH(){return this._.BASE_PATH&&!this._.BASE_PATH.endsWith("/")?`${this._.BASE_PATH}/`:this._.BASE_PATH}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,l){const{children:a,...n}=t||{},r=l?.slots?.default,i=a||r&&r();return e(Object.assign(n,i&&{children:i}),l)}return t.inheritAttrs=!1,t},g=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),b=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),f=[];function v(e,t){const{key:l,blockDecorator:a=b,blocksRegistry:n={},ancestors:r=f,className:i=""}=t,{type:s}=e;s&&s in n||console.warn(`No block with "${s}" is registered`);const o=s&&n[s];return a({blockClassName:g("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:r,render:({block:a,blockClassName:n})=>{const{content:r}=a;return o?h(o,{className:n,block:e,options:t,...r},l):null}},l)}const N=[],y=(e,{key:t,ancestors:l=N,slotName:a=null,renderChild:n=v,...r})=>(e||[]).map(((e,i)=>n(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||N,[r.parent,a]]:l})));function w({children:e,block:t,options:l,renderChild:a}){return e||(t&&l?y(t.blocks,{...l,parent:t,renderChild:a}):null)}const C={left:"text-left",center:"text-center",right:"text-right"};class k{static inst=new k;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}function S(e,{sensitivity:t,rootRef:l}={}){const a=s(null),r=i((()=>({threshold:$(t),root:l?.current})),[t,l?.current]);return n((()=>{if(!a.current)return;const t=new IntersectionObserver(e,r);return t.observe(a.current),()=>{t.disconnect()}}),[e,r]),a}function $(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const I=e=>e?.replace("#",""),T=e=>`${globalThis.location?.pathname}#${I(e)}`;class B{static inst=new B;eventBus=new k;constructor(){const e=I(globalThis.location?.hash);e&&this.eventBus.subject("goto",{anchor:e})}goto(e){const t=I(e);t&&(this.push(t),this.eventBus.fire("goto",{anchor:t}))}push(e){globalThis.history?.pushState(null,"",T(e))}replace(e){globalThis.history?.replaceState(null,"",T(e))}reset(){globalThis.history?.replaceState(null,"",T())}}const R={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},V=p((({className:e="",version:t="primary",block:l,tag:i="section",role:s,children:o})=>{const c=i,d=function(e,t=B.inst){const l=S(r((l=>{if(!e||!l?.length)return;const a=l[l.length-1];t.eventBus.fire("intersection",{block:e,intersection:a})}),[e,t]),{sensitivity:1});return n((()=>{if(l.current)return t.eventBus.subscribe("goto",(({anchor:t})=>{l.current&&e?.anchor===t&&l.current.scrollIntoView({behavior:"smooth",block:"start"})}))}),[e,t]),l}(l),[m,u]=a(!0);return n((()=>k.inst.subscribe("tab",(e=>{if("group"===e.type){const t=l?.labels?.length||l?.anchor;u(!e.label||(!t||Boolean(l?.labels?.includes(e.label))))}else u(!0)}))),[l]),m?h(c,{className:g("group",R[t],e),...t?{"data-ver":t}:{},...l?.anchor?{id:l.anchor,ref:d}:{},role:s,children:o}):null})),j={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},_=p((({className:e="",headingType:t="h3",as:l="h3",title:a,children:n})=>h(l,{className:`font-sans m-0 ${j[t]} ${e}`,children:a||n}))),L=p((({children:e,...t})=>h("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),M=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),D=p((({className:e="",title:t,accordionAlignTitle:l="center",description:a,...n})=>u(V,{className:`p-12 mb-1 last:mb-0 ${e}`,...n,children:[t?h(_,{headingType:"h3",as:"h2",className:`mb-2.5 ${C[l]}`,title:t}):null,a?h("div",{className:"mb-2.5",children:h(L,{size:"text-l",children:a})}):null,h(M,{children:w(n)})]})));D.childrenTypes=["AccordionItem"];const A=p((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[s,o]=a(l),c=r((()=>{o((e=>!e))}),[]),d=n({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return u("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),z=p((({className:e="",isUnfolded:t,children:l})=>{const a=s(null);return n((()=>{a.current&&(a.current.style.maxHeight=t?`${a.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:a,className:`transition-max-h duration-300 overflow-hidden ${a.current||!t?"max-h-0":""} ${e}`,children:l})})),O={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},P=p((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${l}`,title:n=a,iconVersion:r="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==r?h(F,{className:e,children:u("svg",{className:g(E(s.width),O[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[n?h("title",{children:n}):null,a?h("desc",{children:a}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:a,title:n,...s,"aria-hidden":"true"})})),E=e=>e?"":"w-full h-full",F=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t)),U=(e,t)=>e.media&&t.media?e.media-t.media:0,H=p((({className:e="",image:t,imageClassName:l="",isMobile:a=!1,pathPrefix:n})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(U).map((({src:e,format:l,media:a},r)=>h("source",{srcSet:W(e,n),type:J(l),media:a?`(max-width: ${a}px)`:"",...t.size},`${r}_${e}`))):null,X({...t,src:G(t.src,n)},l,a)]})})),X=(e,t="",l=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},n=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:r,title:n,style:a,...e.size})},G=(e,t)=>!e||e?.startsWith("data:image")?e:`${((e="")=>e&&!e.endsWith("/")?`${e}/`:e)(t)}${e}`,W=(e,t)=>e?.split(",").map((e=>G(e.trim(),t))).join(", ");function J(e){return e?`image/${String(e)}`:void 0}const Y=p((({className:e="",image:t,imageClassName:l="",isMobile:a,pathPrefix:n,...r})=>t?.src||t?.icon?t.icon?h(P,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...r}):h(H,{className:e,imageClassName:l,image:t,isMobile:a,pathPrefix:n}):null)),K=p((({children:e,...t})=>h("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),q=["PlusIcon","MinusIcon"],Z=p((({className:e="",label:t="",isExpanded:l,...a})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(A,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(z,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:w(a)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Q,{label:t,icon:q[Number(e)],onClick:l})})})));Z.childrenTypes=[];const Q=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[h(K,{size:"text-xl",font:"font-medium",children:e}),h(Y,{image:{icon:t},className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),ee=p((({className:e="",inputClassName:t="",id:l,name:a,type:n="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:l,name:a||l,type:n,value:s,onChange:x,onBlur:g,...p}),c]})})),te=new Map;function le(e,t,{fallback:l}={}){const r=i((()=>ae(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};n((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>te.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function ae(e){return e?Array.isArray(e)?e:e instanceof Function?ae(e()):[e]:[e]}async function ne(e,t){try{return await re(e,t)}catch(e){console.error(e)}return null}async function re(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function ie(){const{data:e}=le("/api/v1/regions",re);return e||[]}const se=[{code:"1",name:"Торговый эквайринг"},{code:"2",name:"Мобильный эквайринг"},{code:"3",name:"Интернет-эквайринг"},{code:"4",name:"QR-эквайринг (СБП)"},{code:"5",name:"Все виды эквайринга"}];const oe=e=>Boolean(e?.includes("//")),ce=(e,t)=>Boolean(e&&!oe(e)&&(c.BASE_PATH?e.startsWith(c.BASE_PATH):!e.startsWith("/"))&&(!t||"_self"===t)),de=e=>Boolean(e?.startsWith("#")),me=e=>(e||"").replace(/\/?\?.*/,""),he=e=>oe(e)?new URL(e).pathname:void 0;var ue=Object.freeze({__proto__:null,isURL:oe,isLocalURL:ce,isHash:de,withoutQuery:me,getOrigin:e=>oe(e)?new URL(e).origin:void 0,getPathname:he,getHash:e=>oe(e)?new URL(e).hash:void 0});const pe=e=>e&&c.BASE_PATH&&!oe(e)&&!e.startsWith("/")?`${c.BASE_PATH}${e}`:e,xe=(e,t)=>xe._impl(e,t);function ge(){return ge._impl()}function be(){const e=ge(),t=B.inst;return l=>{const a=pe(l.href);return{...l,href:a,"aria-label":l.text,onClick:xe((n=>{l.onClick&&l.onClick(n),((l,a)=>n=>{ce(l,a)&&(n?.preventDefault(),de(l)?t.goto(l):l&&e.push(l))})(a,l.target)(n)}),l)}}}xe._impl=e=>e,xe.setup=e=>{xe._impl=e},ge._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ge.setup=e=>{ge._impl=e};const fe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ve="bg-main-divider text-main-disabled",Ne={primary:ve,secondary:ve,white:ve,link:"",transparent:"",gray:ve,"":""},ye="text-center font-sans select-none",we={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ce=p((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:n,version:r="primary"}=e;return u("div",{className:ke(e),children:[a?h("div",{className:we[r],children:a}):null,Se(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,n?h("div",{className:we[r],children:n}):null]})})),ke=e=>{const{version:t,aboveText:l,rounded:a}=e;if("link"===t)return"";const n="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",Se(e)?n:"h-12 w-12",a?"rounded-full":""].join(" ")},Se=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),$e=({className:e,rounded:t,version:l})=>["inline-block",ye,l?Ne[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Ie=({className:e,rounded:t,version:l})=>[ye,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?fe[l]:"",t?"rounded-full":"rounded-md",e].join(" "),Te=p((({disabled:e,children:t,...l})=>{const a=be()(l),n=t??h(Ce,{...a});return h(e?Re:Be,{...a,children:n})})),Be=p((({className:e="",href:t,rel:l,target:a,ariaLabel:n,version:r,rounded:i,onClick:s,children:o})=>h("a",{className:Ie({className:e,version:r,rounded:i}),href:t,rel:l,target:a,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),Re=p((({className:e,ariaLabel:t,version:l,rounded:a,children:n})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:$e({className:e,rounded:a,version:l}),children:n}))),Ve=p((({link:e})=>u(L,{size:"text-s-light",color:"text-secondary-text",children:[h(K,{children:"Нажимая кнопку вы подтверждаете согласие с "}),e?h(Te,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:h(K,{children:e.text})}):null]}))),je=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function _e(e){const t=s(null);return n((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Le=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=a(i[0]||{key:"",text:""}),[p,x]=a(!1),g=_e(r((()=>x(!1)),[]));return n((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:g,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Ae(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(P,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${Me(p)}`,children:h("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(De((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Me=e=>e?"":"overflow-hidden",De=(e,t,l)=>(a,n)=>u("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:a.text}),h(P,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(a)&&t?"":"hidden"].join(" ")})]},String(n)),Ae=e=>e?"border border-gray rounded-md hover:border-primary-hover":"",ze=p((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return h(Le,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Oe=({acquiringType:e,regions:t,region:l,handleChange:a})=>u("div",{className:"flex justify-between gap-5 mb-7",children:[h("div",{className:"w-1/2",children:h(ze,{data:se,fieldValue:"code",fieldLabel:"name",selected:e,setSelected:e=>a({acquiringType:e}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),h("div",{className:"w-1/2",children:h(ze,{data:t,fieldValue:"code",fieldLabel:"name",selected:l,setSelected:e=>a({region:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Pe=p((({checked:e,text:t,onClick:l})=>u("div",{role:"checkbox","aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(),children:[h("div",{className:"relative duration-300 w-9 h-5 mr-3 rounded rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:h("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded rounded-full "+(e?"left-[50%]":"left-[5%]")})}),h("div",{children:h(K,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),Ee=({"onlineСheckout":e,posTerminal:t,handleChange:l})=>u("div",{className:"mb-5",children:[h(Pe,{checked:e,text:"Хочу купить онлайн-кассу",onClick:()=>l({"onlineСheckout":!e})}),h(Pe,{checked:t,text:"Хочу купить POS-терминал",onClick:()=>l({posTerminal:!t})})]}),Fe=(e,t)=>{const l=Ie({className:"text-white",version:e?.version});return h("button",{type:"submit",className:`p-4 ${l} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Ue=({formState:e,handleSubmit:t,setFormState:l,typeForm:a})=>({handleChange:r((e=>l((t=>({...t,...e})))),[]),onSubmit:r((async l=>{l.preventDefault(),t&&await t({...e,typeForm:a})}),[])}),He=p((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1}),{acquiringType:o,region:c,fullName:d,inn:m,name:p,phone:x,"onlineСheckout":g,posTerminal:b}=i,f=ie(),{handleChange:v,onSubmit:N}=Ue({formState:i,handleSubmit:r,setFormState:s,typeForm:"acqr"}),y=je(c,f);return n((()=>{s((e=>({...e,acquiringType:se?.length&&se[0]?.code?se[0].code:""})))}),[]),u("form",{onSubmit:N,className:"container",children:[h(_,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Oe({acquiringType:o,regions:f,region:y,handleChange:v}),h(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Xe({fullName:d,inn:m,name:p,phone:x,handleChange:v}),Ee({"onlineСheckout":g,posTerminal:b,handleChange:v}),Fe(t,"mb-4"),h(Ve,{link:l})]})})),Xe=({fullName:e,inn:t,name:l,phone:a,handleChange:n})=>u("div",{className:"flex justify-between gap-5 mb-5",children:[u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})}),h(ee,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>n({name:e})})]}),u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text",label:"ИНН","aria-label":"ИНН",value:t,onChange:e=>n({inn:e})}),h(ee,{className:"shrink-0 text-l w-full",type:"text",label:"Телефон","aria-label":"Телефон",value:a,onChange:e=>n({phone:e})})]})]}),Ge=p((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({region:"",name:"",phone:"",inn:"",mail:""}),{name:s,phone:o,inn:c,mail:d}=r,m=ie(),{handleChange:p,onSubmit:x}=Ue({formState:r,handleSubmit:n,setFormState:i,typeForm:"bcrd"}),g=je(r.region,m);return u("form",{onSubmit:x,className:"container",children:[Je({regions:m,region:g,handleChange:p}),We({name:s,phone:o,inn:c,mail:d,handleChange:p}),Fe(t,"mb-4"),h(Ve,{link:l})]})})),We=({name:e,phone:t,mail:l,inn:a,handleChange:n})=>u("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:e,onChange:e=>n({name:e})}),h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:a,onChange:e=>n({inn:e})})]}),u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>n({phone:e})}),h(ee,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:l,onChange:e=>n({mail:e})})]})]}),Je=({regions:e,region:t,handleChange:l})=>h("div",{className:"flex justify-between gap-5 mb-5",children:h("div",{className:"w-full",children:h(ze,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>l({region:e}),label:"Регион",placeholder:"Выберите регион"})})}),Ye=[];function Ke(e){const{data:t}=le(e?`/api/v1/safeboxes?regionCode=${e}`:null,qe);return t||Ye}const qe=async e=>await ne(e,{method:"GET"})||Ye,Ze=({regions:e,region:t,branches:l,department:a,handleChange:n})=>u("div",{className:"flex justify-between gap-5 mb-7",children:[h("div",{className:"w-1/2",children:h(ze,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>n({region:e}),label:"Регион",placeholder:"Выберите регион"})}),h("div",{className:"w-1/2",children:h(ze,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:e=>n({department:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Qe=e=>new Intl.NumberFormat("ru-RU",{}).format(e),et=(e,t,l)=>Math.max(t,Math.min(e,l)),tt=e=>e.split(/\s+/).join(""),lt=p((({className:e,title:t,items:l=[],min:a=1,max:n=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(et(Number(tt(e.target.value)),a,n))},d={backgroundSize:`${(100*(i-a)/(n-a)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Qe(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:n,step:r,value:i,disabled:s,onChange:c,style:d})})]}),at(l)]})}));function at(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const nt=({amount:e,term:t,handleChange:l})=>u("div",{className:"flex justify-between gap-5 mb-7",children:[rt({label:"Сумма кредита, ₽",value:e,onChange:e=>l({amount:e}),min:st,max:ot,items:ct}),rt({label:"Срок кредита, месяцев",value:t,onChange:e=>l({term:e}),min:dt,max:mt,items:ht})]}),rt=e=>u("div",{className:"w-1/2",children:[h("label",{children:h(K,{size:"text-m-light",children:e.label})}),h(lt,{...e})]}),it=({fullName:e,inn:t,name:l,phone:a,mail:n,annualRevenue:r,handleChange:i})=>u("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:t,onChange:e=>i({inn:e})}),h(ee,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Телефон",label:"Телефон",value:a,onChange:e=>i({phone:e})})]}),u("div",{className:"w-1/2",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Годовая выручка, ₽",label:"Годовая выручка, ₽",value:r,onChange:e=>i({annualRevenue:e})}),h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>i({name:e})}),h(ee,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:n,onChange:e=>i({mail:e})})]})]}),st=5e4,ot=3e6,ct=["От 50 000 ₽","До 3 000 000 ₽"],dt=1,mt=60,ht=["От 1 года","До 5 лет"],ut=p((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({amount:st,term:dt,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""}),{amount:o,term:c,fullName:d,inn:m,name:p,phone:x,mail:g,region:b,department:f,annualRevenue:v}=i,N=ie(),{handleChange:y,onSubmit:w}=Ue({formState:i,handleSubmit:r,setFormState:s,typeForm:"cred"}),C=je(i.region,N),k=Ke(b);return n((()=>{y({department:""})}),[i.region,y]),u("form",{onSubmit:w,className:"container",children:[h(_,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),nt({amount:o,term:c,handleChange:y}),h(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),it({fullName:d,inn:m,name:p,phone:x,mail:g,annualRevenue:v,handleChange:y}),h(_,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Ze({regions:N,region:C,branches:k,department:f,handleChange:y}),Fe(t,"mb-4"),h(Ve,{link:l})]})})),pt=p((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({name:"",phone:""}),{handleChange:s,onSubmit:o}=Ue({formState:r,handleSubmit:n,setFormState:i,typeForm:"dpst"});return u("form",{onSubmit:o,className:"container",children:[h(_,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),xt({name:r.name,phone:r.phone,handleChange:s}),u("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[h("div",{className:"flex-1",children:h(Ve,{link:l})}),Fe(t)]})]})})),xt=({name:e,phone:t,handleChange:l})=>u("div",{className:"max-w-[560px] m-auto",children:[h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Имя",label:"Имя",value:e,onChange:e=>l({name:e})}),h(ee,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>l({phone:e})})]}),gt=p((({className:e,viewBox:t,fill:l="none",width:a,height:n,paths:r,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:a,height:n,children:r.map((({d:e,fill:t,...l},a)=>h("path",{d:e,fill:t||"currentColor",...i,...l},a)))}))),bt=[{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"}],ft=p((({className:e,text:t,checked:l,disabled:a,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group/box",children:[h("input",{className:g("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",n?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",l?"border-black":"border-gray",a?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l,disabled:a}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(gt,{paths:bt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),vt=({currencyControl:e,documentaryOperations:t,conversionOperations:l,text:a,handleChange:n})=>u("div",{className:"mb-6",children:[u("div",{className:"flex items-center mb-4 gap-6",children:[h(ft,{text:"Валютный контроль",checked:e,onChange:e=>n({currencyControl:e})}),h(ft,{text:"Документарные операции",checked:t,onChange:e=>n({documentaryOperations:e})}),h(ft,{text:"Конверсионные операции",checked:l,onChange:e=>n({conversionOperations:e})})]}),h("textarea",{placeholder:"Укажите интересующий Вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:a,onChange:e=>n({text:e.target.value})})]}),Nt=p((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""}),{fullName:s,name:o,phone:c,mail:d,currencyControl:m,documentaryOperations:p,conversionOperations:x,text:g}=r,{handleChange:b,onSubmit:f}=Ue({formState:r,handleSubmit:n,setFormState:i,typeForm:"kved"});return u("form",{onSubmit:f,className:"container",children:[h(_,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),yt({fullName:s,name:o,phone:c,mail:d,handleChange:b}),h(_,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),vt({currencyControl:m,documentaryOperations:p,conversionOperations:x,text:g,handleChange:b}),u("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Fe(t,"mr-5"),h(Ve,{link:l})]}),h(_,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),u("div",{className:"flex",children:[u("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[h(Y,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),h("span",{children:"8 (800) 200-78-70"})]}),u("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[h(Y,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),h("span",{children:"ved@rshb.ru"})]})]})]})})),yt=({fullName:e,name:t,phone:l,mail:a,handleChange:n})=>u("div",{children:[u("div",{className:"flex justify-between gap-5 mb-5",children:[h("div",{className:"w-1/2",children:h(ee,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})})}),h("div",{className:"w-1/2",children:h(ee,{className:"shrink-0 text-l w-full",type:"text","aria-label":"ФИО",label:"ФИО",value:t,onChange:e=>n({name:e})})})]}),u("div",{className:"flex justify-between gap-5 mb-7",children:[h("div",{className:"w-1/2",children:h(ee,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Телефон",label:"Телефон",value:l,onChange:e=>n({phone:e})})}),h("div",{className:"w-1/2",children:h(ee,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:a,onChange:e=>n({mail:e})})})]})]}),wt=p((({responceType:e})=>{const t="OK"===e;return u("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[h(Y,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),u("div",{children:[h(_,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),h(K,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ct={credit:e=>h(ut,{...e}),acquiring:e=>h(He,{...e}),"business-card":e=>h(Ge,{...e}),deposit:e=>h(pt,{...e}),wed:e=>h(Nt,{...e})},kt=p((e=>{const{className:t="",title:l,typeForm:n="credit",button:i,link:s,...o}=e,[c,d]=a(""),m=r((()=>(d("OK"),"OK")),[]);return h(V,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:u("div",{className:"container max-w-[978px]",children:[l?h(_,{headingType:"h3",title:l,className:"text-center mb-8"}):null,Ct[n]({button:i,link:s,handleSubmit:m}),c?h(wt,{responceType:c}):null]})})})),St=p((({className:e="",title:t,benefitList:l,...a})=>u(V,{className:`p-12 flex flex-col items-center ${e}`,...a,children:[t?h(_,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map($t)}):null]}))),$t=(e,t)=>{const l=e.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?h(Y,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon,asSVG:!0}):null,e?.icon?.src?h(Y,{image:e.icon}):null,u("div",{className:"ml-5",children:[e?.label?h(_,{headingType:"h6",children:e.label}):null,It(l)]})]},String(t))},It=e=>{const t=e?.benefitType||null;return e&&t?h("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Bt(e):Tt(e)}):null},Tt=e=>e?.name||null,Bt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Rt=(e,{className:t="",buttonClassName:l,isVertical:a}={})=>e?.length&&e.some((e=>e?.text))?h("div",{className:g("flex",a?"flex-col gap-2":"gap-4",t),children:e.map(Vt(l))}):null,Vt=(e="")=>(t,l)=>{const{text:a,icon:n,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return a?h(Te,{className:e,appendLeft:jt({...n,iconVersion:o}),appendRight:jt({...r,iconVersion:o}),version:i,text:a,...s},l?String(l):""):null},jt=e=>e?.icon||e?.src?h(Y,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,_t={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Lt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Mt=p((({className:e,title:t,description:l,headlineVersion:a="XL",align:n="text-center",as:r,version:i="",...s})=>{const o=_t[a];return u(V,{className:g("flex flex-col p-12",o.wrapper,e),version:i,...s,children:[t?h(_,{className:g("whitespace-pre-wrap",n),...o?.title,as:r||o?.title.as,title:t}):null,l?h(L,{color:"group-data-secondary:text-white/80",size:o.descriptionSize,align:n,children:l}):null]})})),Dt=p((e=>{const{className:t="",title:l,description:a,bonusItems:n,...r}=e;return h(V,{className:`p-12 pb-9 ${t}`,...r,children:u("div",{className:"container",children:[h(Mt,{className:"!p-0",title:l,description:a,headlineVersion:"M"}),h("div",{className:"flex flex-wrap w-full mt-9",children:n?.length?n.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),Rt(e?.buttons)]}),e.bonusItemContent?.bonusType?At(e.bonusItemContent):null]})},String(t)))):null})]})})})),At=e=>h("div",{children:"count"===e.bonusType?zt(e):Ot(e)}),zt=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Ot=e=>e.image?h(Y,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Pt=p((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:a="4",subtitle:n,title:r,...i})=>u(V,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[h(Mt,{className:"!p-0 mb-8",title:r,description:n,headlineVersion:"M"}),e?.length?h("div",{className:`grid gap-1 ${C[t]} ${Ft(a)}`,children:e.map(Et)}):null]}))),Et=({icon:e,label:t,description:l},a)=>u("div",{className:"flex flex-col items-center text-h6",children:[l?h("span",{children:l}):null,e?h(Y,{image:e,height:"180",width:"auto",className:"h-[180px] w-auto"}):null,h("div",{children:t?h("span",{children:t}):null})]},String(a)),Ft=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Ut=p((e=>{const{title:t,image:l,cardItems:a,button:n}=e;return u("div",{className:"border-gray border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(Y,{className:"mb-5",image:l}):null,l?.icon?h(Y,{image:l,asSVG:!0}):null]}):null,t?h(_,{headingType:"h4",title:t,className:"mb-6"}):null,a?.length?h("ul",{children:a.map(((e,t)=>Ht(e,String(t))))}):null,Rt([n],{buttonClassName:"mt-6"})]})})),Ht=(e,t)=>{const{icon:l,text:a}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(Y,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?h(Y,{image:l}):null,h("span",{className:"text-xl-light",children:a})]},t)},Xt=p((({className:e="",title:t,cards:l,...a})=>u(V,{className:`p-12 pb-9 ${e}`,...a,children:[h(_,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(Ut,{...e},String(t)))):null})]}))),Gt=p((({button:e,...t})=>h(V,{...t,children:Rt([e])}))),Wt=e=>{const{itemCount:t,visibleItemCount:l,isCyclic:n}=e,[i,s]=a(0),o=r((()=>s((e=>n?(e+1)%t:Math.min(e+1,t-1)))),[n,t]),c=r((()=>s((e=>n?(t+e-1)%t:Math.max(e-1,0)))),[n,t]),d=n||function(e,{itemCount:t,visibleItemCount:l,container:a}){if(l)return t>l;if(a){return a.scrollWidth*e/t+a.clientWidth<a.scrollWidth}return!1}(i,e)&&i<t-(l||1),m=n||i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};const Jt=p((({className:e,disabled:t,...l})=>h(Te,{rounded:!0,className:`group/btn 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,...l,children:h(Y,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16",asSVG:!0})}))),Yt=p((e=>h(Jt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Kt=p((e=>h(Jt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function qt({dec:e,inc:t,canDec:l,canInc:a,btnClass:n,className:r=""}){return l||a?u("div",{children:[l?h(Jt,{className:`absolute z-50 ${n[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,a?h(Jt,{className:`absolute z-50 rotate-180 ${n[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!a}):null]}):null}const Zt=p((({title:e,value:t,postfix:l="",prefix:a,className:n=""})=>u("div",{className:g("mb-7",n),children:[e?h(K,{size:"text-l-light",color:"text-secondary-text",children:e}):null,h("div",t?{children:u(K,{size:"text-h3",children:[a," ",Qe(Math.round(t))," ",l]})}:{children:h(K,{size:"text-h3",children:"-"})})]}))),Qt=2e6,el=97e4,tl=Math.round(23.5),ll={minSum:6e4,maxSum:Qt,minMonths:13,maxMonths:60,rateBottomRange:12,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},al={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},nl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:120,rate:5.9,isMonthlyInterestPayment:!0},rl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:5.9,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},il=p((({rate:e,title:t="Ставка",unit:l,depositeName:a,isShowDepositeName:n,rateBlockClassName:r})=>u("div",{children:[h(K,{size:"text-l-light",color:"text-secondary-text",children:t}),u("div",{className:"relative",children:[u("div",{className:"flex justify-start",children:[h("span",{className:g("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),a&&n?h("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:a}):null]})]}))),sl=e=>e?h(L,{size:"text-s-light",color:"text-secondary-text",children:e}):null,ol=1e3;function cl(e,t,l){const{moneyValue:a,minSum:n,maxSum:r,step:i=ol,isShowItems:s=!0}=t,o=[`От ${Qe(n)} ₽`,`До ${Qe(r)} ₽`];return h(lt,{title:e,items:s?o:[],min:n,max:r,step:i,value:et(a,n,r),onChange:l})}function dl(e){const{data:t}=le(`/wcms-resources/${e}.json`,re);return t}const ml=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:a}=e,n=dl(t||"bonus-calculator-data")||al,[r,i]=((e,t,l)=>{const{minSumTravel:a,minSumOther:n,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&l===n)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(n,l,a);return{...n,...e,monthBonus:r,yearBonus:i}},hl=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[i,s]=a(6e3),o=r((e=>s(e)),[]),[c,d]=a(6e3),m=r((e=>d(e)),[]),p={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:b,minSumOther:f,maxSumOther:v,monthBonus:N,yearBonus:y}=ml(p,t);return u("section",{className:g("flex justify-between",e),children:[u("div",{className:"w-[468px]",children:[cl("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:b,moneyValue:i,step:500,isShowItems:!1},o),cl("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:f,maxSum:v,moneyValue:c,step:500,isShowItems:!1},m)]}),h("div",{children:N>=0?h(il,{title:"Баллов за месяц",rate:N,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[y>=0?h(Zt,{title:"Баллов за год",value:y}):null,Rt(l,{className:"mt-7",isVertical:!0}),sl(n)]})]})}));function ul(e,t,l){const{minDays:a,maxDays:n,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return h(lt,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:et(r,a,n),onChange:l})}const pl=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:a})=>h(ft,{isRadio:!0,text:a,checked:t===e,onChange:()=>l&&l(e)},String(e))))}))),xl="everyMonth",gl="atEndTerm",bl=[{id:xl,text:"Ежемесячно"},{id:gl,text:"В конце срока"}];function fl(e,t,l){return u("div",{children:[l?h(K,{color:"text-secondary-text",font:"font-light",children:l}):null,h("div",{className:"mt-3",children:h(pl,{items:bl,checkedItem:e?xl:gl,onChange:e=>t&&t(e===xl)})})]})}const vl=p((({title:e="Ставка"})=>u("div",{children:[h(K,{size:"text-l-light",color:"text-secondary-text",children:e}),h("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:h(Y,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),h("div",{className:"w-[250px] mt-3.5",children:u(L,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",h("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),Nl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,daysValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n/30)-a):Math.round(a*e*n/365/100)},yl=p((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=a(1e5),d=r((e=>c(e)),[]),[m,p]=a(90),x=r((e=>p(e)),[]),[g,b]=a(!1),f=r((e=>b(e)),[]),[v,N]=a(!1),y=r((e=>N(e)),[]),[w,C]=a(!1),k=r((e=>C(e)),[]),[S,$]=a(!1),I=r((e=>$(e)),[]),T=((e,t)=>{const{daysValue:l,moneyValue:a,isPartialWithdrawal:n,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=dl(t||"business-calculator-data"),c=r||n,d=l<90||l>730;if(l<=30)return{...rl,...e,isDisabledOperatingDeposit:d,rate:0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&(c?e.isReplenished&&e.isPartialWithdrawal:!e.isReplenished&&!e.isPartialWithdrawal)))||rl,{rate:h}=m,u=Nl(h,e),p=a+u;return{...m,...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:j}=T;return u("section",{className:e,children:[u("div",{className:"flex justify-between",children:[u("div",{className:"w-[486px]",children:[cl("Сумма вклада, ₽",T,d),ul("Срок вклада, дни",T,x),u("div",{className:"mt-7 flex justify-between",children:[wl({...T,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),fl(S,I,"Выплата процентов")]})]}),V?h(il,{rate:V,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}):h(vl,{}),u("div",{className:"w-full max-w-[350px]",children:[h(Zt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),h(Zt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),Rt(l,{className:"mt-7",isVertical:!0}),h("div",{className:"mt-7",children:sl(n)})]})]}),h("div",{className:"mt-5",children:sl(i)})]})})),wl=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:a,handleIsReplenished:n,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>u("div",{children:[h(ft,{text:"Пополнение",disabled:e,checked:t,onChange:n}),h(ft,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:l,onChange:r}),h(ft,{className:"mt-3",text:"Являюсь малым предприятием",checked:a,onChange:i})]});function Cl(e,t,l){const{minMonths:a,maxMonths:n,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(lt,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:et(r,a,n),onChange:l})}const kl=(e,t)=>{const{isInsurance:l,isSalaryClient:a,isStateEmployee:n,moneyValue:r}=e,i=dl(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&a===e.isSalaryClient&&n===e.isStateEmployee))||ll,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=r<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:a,monthsValue:n}=t;if(l){const t=e/1200;return a*(t+t/(Math.pow(1+t,n)-1))}return Math.round(a/n)+a*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},Sl="annuity",$l="differential",Il=[{id:Sl,text:"Аннуитетный"},{id:$l,text:"Дифференцированный"}],Tl=p((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[p,x]=a(!1),[b,f]=a(el),v=r((e=>f(e)),[]),[N,y]=a(tl),w=r((e=>y(e)),[]),C=kl({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:p,moneyValue:b,monthsValue:N},t);return u("section",{className:g("flex justify-between",e),children:[u("div",{className:"w-[468px]",children:[cl("Сумма кредита, ₽",{...C,step:500},v),Cl("Срок кредита, месяцев",C,w),u("div",{className:"mt-7",children:[h(ft,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(ft,{className:"mt-3",text:"Работаю в бюджетной организации",checked:p,onChange:x}),h(ft,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(il,{title:"Ставка",rate:C.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Zt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:C.monthlyPayment,postfix:"₽"}),h(pl,{items:Il,checkedItem:i?Sl:$l,onChange:e=>s(e===Sl)}),Rt(l,{className:"mt-7",isVertical:!0}),sl(n)]})]})})),Bl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,monthsValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n)-a):Math.round(a*e*30*n/365/100)},Rl={CreditCalculatorForm:Tl,DepositCalculatorForm:p((({className:e="",sourceBookDir:t,buttons:l,footnote:n})=>{const[i,s]=a(el),o=r((e=>s(e)),[]),[c,d]=a(tl),[m,p]=a(!1),x=r((e=>p(e)),[]),b={moneyValue:i,monthsValue:c,isMonthlyInterestPayment:m},f=r((e=>d(e)),[]),v=((e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a}=e,n=dl(t||"deposit-calculator-data")?.rows?.find((e=>l===e.isMonthlyInterestPayment))||nl,{rate:r}=n,i=Bl(r,e),s=a+i;return{...n,...e,income:i,finalSum:s}})(b,t),{income:N,finalSum:y,rate:w}=v;return u("section",{className:g("flex justify-between",e),children:[u("div",{className:"w-[468px]",children:[cl("Сумма вклада, ₽",{...v},o),Cl("Срок вклада, месяцев",{...v},f)]}),h(il,{rate:w||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[N?h(Zt,{title:"Доход по вкладу",value:N,postfix:"₽",prefix:"+"}):null,y?h(Zt,{title:"Сумма в конце срока",value:y,postfix:"₽"}):null,fl(m,x),Rt(l,{className:"mt-7",isVertical:!0}),sl(n)]})]})})),BusinessDepositCalculatorForm:yl,BonusCalculatorForm:hl},Vl=(e,t)=>{const l=e?.calcType;if(!l||!(l in Rl))return null;const a=Rl[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(_,{className:"text-center mb-6",title:e.title}):null,h(a,{...e})]})},String(t))},jl=p((({className:e="",calculatorTabs:t=[],...l})=>{const n=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),c=r((e=>o(e)),[]),[d,m]=Wt({itemCount:t?.length,visibleItemCount:3});return u(V,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[u("div",{className:"bg-white",children:[n.length>1?_l({activeIndex:d,tabsNav:n,slideIndexShift:s,onClick:c}):null,qt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Vl):null})]})}));function _l({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:a}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:a}){const n=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return u("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${n}`,children:[h(Y,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${r}`,children:e?.title}),h("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const Ll=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Ml=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Dl=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Al=p((({className:e="",onChange:t,minValue:l=0,maxValue:a=3e5,...n})=>{const i=r((e=>{if(!t)return;const n=Ll(Ml(Dl(tt(e))));const r=zl(n,et(Number(n),l,a));t(String(r))}),[t]),s=r((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(tt(l))).replace(",",".")))}),[t]);return h(ee,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...n,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),zl=(e,t)=>Number(e)===t?e:String(t),Ol=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:i,...s})=>{const[o,c]=a(""),d=r((e=>c(e)),[]),m=!Number(tt(o)),p=m?$e({version:i?.version}):Ie({className:"text-white",version:i?.version}),x=be();return u(V,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?h(_,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(Al,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:n,label:l}),i?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${p} `,disabled:m,...x(i),children:i.text}):null]})]})})),Pl=p((({className:e="",style:t,idx:l,activeIndex:a,observerOptions:n,children:i,onIntersection:s})=>{const o=S(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),n);return h("div",{className:`inline-block snap-always box-border ${e}`,style:t,role:"listitem","aria-current":Boolean(l===a),ref:o,children:i})})),El=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],Fl=p((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:a=0,gap:n=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",children:d,onVisibleItemsChange:m,onVisibleIndicesChange:u})=>{const p={sensitivity:1,rootRef:t},x=s([]),b=r(((e,t)=>{const l=[...x.current||[]];l[e]=t,x.current=l,m&&m(l),u&&u(Hl(l))}),[m,u]),f=a>0?n*Number(a)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?Ul(i,f):{},...v?Xl(t):{},gap:`${n}px`};return h("div",{className:g("box-border overflow-auto no-scrollbar",o,e),style:y,role:"list",ref:t,children:(w=(e,t)=>h(Pl,{className:g(c,a?El[a-1]:""),style:N?Ul(i/4):{},activeIndex:l,idx:t,observerOptions:p,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(w):w(e,0))(d)});var w})),Ul=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Hl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Xl=e=>({height:e?.current?.firstElementChild?.clientHeight||0}),Gl=e=>e,Wl=(e=Gl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Jl=(e=Gl)=>Wl((t=>-e(t))),Yl=e=>t=>e.scrollWidth/t,Kl=e=>(t,l)=>{e.scrollBy({left:l*Yl(e)(t),behavior:"smooth"})},ql=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const n=s(null),[i,o]=a([]),c=r((e=>{o((t=>{return(l=t)===(a=e)||Boolean(l&&a&&l?.length===a?.length&&l.every(((e,t)=>e===a[t])))?t:e;var l,a})),l&&l(e)}),[e]),[d,m]=i.length?[Jl()(i),Wl()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;n.current&&(t&&!h?(l=n.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):Kl(n.current)(e,-1))}),[t,e,h]),x=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):Kl(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Zl="absolute top-0 bottom-0 z-50 w-[84px] pointer-events-none",Ql="absolute top-[calc(50%-12px)] z-50",ea=p((({className:e="",itemCount:t,visibleItemCount:l,isBlur:a=!0,isCyclic:n=!1,isPadding:r=!0,...i})=>{const{blocks:s}=i.block||{},o=t||s?.length||0,[c,d]=ql({itemCount:o,isCyclic:n});return h(V,{className:g(la(r),e),...i,children:u("div",{className:"relative max-w-full",children:[h(Fl,{containerRef:c,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:d.handleVisibleIndicesChange,children:w(i)}),(d.canScrollLeft||d.canScrollRight)&&a?u("div",{children:[h("div",{className:`${Zl} left-0 bg-opacity-from-white`}),h("div",{className:`${Zl} right-0 bg-opacity-to-white`})]}):null,ta(d)]})})}));ea.childrenTypes=["CarouselCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselInvestmentCard"];const ta=({scrollLeft:e,scrollRight:t,canScrollLeft:l,canScrollRight:a})=>u("div",{children:[l?h(Yt,{className:`${Ql} left-8`,onClick:e}):null,a?h(Kt,{className:`${Ql} right-8`,onClick:t}):null]}),la=e=>e?"p-12":"",aa="absolute border border-solid border-gray w-full h-full",na={normal:"min-w-[970px]",mini:"min-w-[355px]"},ra=p((({className:e="",button:t,description:l,title:a,carouselVersion:n="normal"})=>h("section",{className:`flex pb-9 pl-12 border-box ${na[n]} ${e}`,children:u("div",{className:"relative w-full",children:[h("div",{className:`${aa} z-10 top-9 right-12 bg-green-dark`}),h("div",{className:`${aa} z-10 top-6 right-8 bg-green`}),h("div",{className:`${aa} z-10 top-3 right-4 bg-green-light`}),u("div",{className:"relative bg-white z-10 p-10 border border-solid border-green-light",children:[h(Mt,{className:"!p-0",title:a,description:l,headlineVersion:"L",align:"text-left"}),Rt([t],{className:"mt-14"})]})]})}))),ia={black:"bg-black",white:"bg-white"},sa=p((({className:e="",title:t,description:l,image:a,price:n,button:r,colors:i,...s})=>u(V,{className:`border box-border border-gray p-7 min-w-[392px] flex flex-col justify-left ${e}`,...s,children:[a?.src?h(Y,{className:"mb-5 flex justify-center",image:a}):null,t?h(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"mb-4",children:h(L,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:h(K,{children:"Доступные цвета: "})}),i.map(oa)]}):null,n?u(K,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,Rt([r],{buttonClassName:"mt-5 w-full"})]}))),oa=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${ia[e]}`},String(t)),ca=p((({className:e="",title:t="",buttons:l,image:a,children:n})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),a]})]}))),da={1:"flex-col",2:"gap-x-10 flex-wrap"},ma=p((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:a=1,description:n,image:r,title:i,...s})=>{const o=i?h(_,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?h(Y,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h(V,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:u(ca,{title:o,image:c,children:[u("div",{className:"flex justify-between mb-4",children:[n?h("div",{className:"w-1/3",children:h(K,{size:"text-h6",children:n})}):null,e?h(K,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?h("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${da[a]}`,children:ha(t,a)}):null]})})})),ha=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return u("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?h("div",{className:"pr-2.5",children:h(K,{size:(a=t,1===a?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?h(K,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var a})),ua="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",pa=p((({text:e,href:t="",target:l="",className:a=""})=>e?u("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${a}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(Y,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${ua} mx-1.5 mt-1.5`}),h("div",{className:`${ua} mt-3 mr-3`})]}):null)),xa=p((({className:e="",additionalDescription:t,description:l,links:a,title:n,version:r="secondary",...i})=>u(V,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,version:r,...i,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[h(Mt,{className:"p-0",title:n,description:l,as:"h1",align:"text-left"}),t?h("div",{className:"pt-6",children:h(L,{children:t})}):null]}),a?.length?ga(a):null]}))),ga=e=>{const t=Math.ceil(e.length/12);return h(ea,{version:"",className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,children:new Array(t).fill(null).map(((t,l)=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.slice(12*l,12*(l+1)).map(((e,t)=>h(pa,{className:"m-1",...e},String(t))))},String(l))))})},ba={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},fa=p((({className:e="",isDotted:t=!0,children:l,size:a="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ba[a]}`})}):null,h("span",{children:l})]}))),va={S:"text-l-light",M:"text-h6",L:"text-h5"},Na={S:"ml-2",M:"ml-3",L:"ml-4"},ya=p((({className:e="",hasIndent:t,isDotted:l,itemClassName:a="",items:n,listItemSize:r="M"})=>n?.length?h("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${va[r]} ${t?Na[r]:""} ${e}`,role:"list",children:n.map(((e,t)=>h(fa,{className:`${a} mb-1.5`,isDotted:l,size:r,children:e},String(t))))}):null)),wa=p((({className:e="",title:t,headlineSmallVersion:l="H6",description:a,additionalDescription:n,icon:r,items:i=[],button:s={},version:o="primary",isDotted:c=!0,align:d="text-center",...m})=>u(V,{className:g("flex flex-col justify-between items-stretch min-w-[260px] h-full w-full p-6","box-border border-solid border border-gray",d,e),version:o,...m,children:[u("div",{className:"flex flex-col h-full",children:[Ca(r),ka(l,t),Sa(a,t),Ia(i,c,o),$a(n)]}),Rt([s],{buttonClassName:"mt-6 w-full"})]}))),Ca=e=>u("div",{className:"flex justify-center",children:[e?.src?h(Y,{className:"mb-5",image:e}):null,e?.icon?h(Y,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),ka=(e,t)=>t?h(K,{size:Lt[e],children:t}):null,Sa=(e,t)=>e?h("div",{className:t?"mt-2":"",children:h(L,{size:"text-l",children:e})}):null,$a=e=>e?h("div",{className:"mt-auto",children:h(K,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ia=(e,t,l="primary")=>e?.length?h(ya,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,Ta=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Ba=p((({className:e="",title:t,icon:l,list:a=[],...n})=>u(V,{className:`border border-gray flex min-w-[536px] ${e}`,...n,children:[u("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?h(Y,{image:Ta(l),asSVG:!0}):null,l?.src?h(Y,{image:l}):null]}),u("div",{className:"p-8 pl-3 w-full",children:[t?h(_,{className:" mb-3.5",headingType:"h5",title:t}):null,a.length?h("div",{className:"flex flex-col gap-3",children:a?.map(Ra)}):null]})]}))),Ra=(e,t)=>u("div",{className:"break-words",children:[e.title?h("div",{className:"text-h6",children:e.title}):null,e.description?h("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Va=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],icon:{icon:"YoutubeIcon"},label:"Youtube"}],ja={default:"w-14 h-14",small:"w-12 h-12"},_a=p((({iconVersion:e="color",buttonSize:t="default",rounded:l=!1,...a})=>{const{href:n,version:r}=a,{icon:i,label:s}=Va.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{},o=i?{...Ta(i),iconVersion:e}:null;return h(Te,{className:g("group/media flex items-center justify-center box-border",ja[t],l?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",ja[t]),"aria-label":s,target:"_blank",rel:"noopener noreferrer",version:r,...a,children:o?h(Y,{image:o,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),La=p((({className:e="",media:t,children:l,buttonSize:a})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(_a,{buttonSize:a,version:e.version,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:l})]}))),Ma=p((({button:e,className:t="",description:l,image:a,items:n=[],socialMedia:r=[],title:i,version:s="primary",...o})=>{const c=i?h(_,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:i}):null,d=a?.src?h(Y,{className:"absolute bottom-0 right-0 m-0",image:a}):null;return h(V,{className:g("relative p-7 min-w-[524px] text-left box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",t),version:s,...o,children:h(ca,{className:"flex justify-between",title:c,image:d,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2 group-data-gray:text-secondary-text group-data-gray:max-w-[265px]",children:l}):null,n.length?h(ya,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n}):null,r.length?h(La,{className:"pt-10 pb-0",media:r}):null,Rt([e],{className:"pt-2 mt-16"})]})})})})),Da=p((({className:e="",title:t,icon:l,isHighlighting:a,button:n,cardCells:r=[],...i})=>{const s=r.map(Pa),o=s.slice(0,1),c=s.slice(1);return u(V,{className:g("relative border border-gray min-w-[322px] p-8 flex flex-col",za(a),e),...i,children:[a?Ea():null,Aa(l),t?h(_,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?h(Te,{className:"w-full mt-4",...n}):null,r.length?h(A,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[o,h(z,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Oa:null}):null]})})),Aa=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?h(Y,{image:e}):null,e?.icon?h(Y,{image:Ta(e),asSVG:!0}):null]}),za=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",Oa=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(P,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Pa=(e,t)=>u("div",{className:"py-5 border-b border-main-divider",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Ea=()=>u("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[h(P,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h(L,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Fa={black:"bg-black",white:"bg-white"},Ua=p((({className:e="",title:t,description:l,image:a,price:n,button:r,colors:i})=>u("section",{className:`border border-solid box-border border-gray p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[a?.src?h(Y,{className:"mb-5 flex justify-center",image:a}):null,t?h(_,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Ha)]}):null,n?u("div",{className:"text-h3 text-left",children:[n," ₽"]}):null,Rt([r],{buttonClassName:"mt-5 w-full"})]}))),Ha=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Fa[e]}`},String(t)),Xa="absolute top-0 bottom-0 w-[84px]",Ga=p((({cards:e=[],className:t="",title:l,description:a,...n})=>{const[r,i]=Wt({itemCount:e?.length,visibleItemCount:3});return u(V,{className:`p-12 overflow-hidden text-center ${t}`,...n,children:[h(Mt,{className:"!p-0",title:l,description:a,headlineVersion:"M",...n}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*r}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(Ua,{...e},String(t)))):null}),qt({...i,btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${Xa} left-0 bg-opacity-from-white`}),h("div",{className:`${Xa} right-0 bg-opacity-to-white`})]})})),Wa="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ja="border-gray border-solid border",Ya="border-main-divider border border-t-0 border-x-0",Ka="w-[200px] mr-6",qa=p((({icon:e,image:t,title:l,link:a})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Ja} ${Wa}`,role:"columnheader",children:[e&&!t?.src&&h(Y,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Ta(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(Y,{className:"mb-[18px]",image:t}),l?h(_,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,a?.text&&h("div",{className:"mt-auto w-full",children:h(Te,{href:a.href,target:a.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),Za={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Qa=p((({children:e,activeIndex:t,columnWidth:l,version:a="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Za[a],style:{transform:`translateX(-${t*l}px)`},children:e})}))),en=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),tn=p((({colHeaders:e,activeIndex:t})=>u(en,{children:[h("div",{className:Ka,role:"columnheader"}),h(Qa,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>h(qa,{...e},String(t))))})]}))),ln=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:a})=>h("div",{className:`w-80 box-border flex flex-col ${Ja} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${a?Wa:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${Ya} ${a&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>rn(e,t,a)))})}))),an=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),nn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),rn=({label:e,description:t},l,a)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:an(a),children:e}):null,t?h("div",{className:nn(a),children:t}):null]},String(l)),sn=(e=!1)=>`text-s py-7 ${Ya} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,on=p((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:a,isFirstRow:n,isLastRow:r})=>u(en,{children:[e?.title?h("div",{className:sn(r),children:e.title}):null,t?.length?h(Qa,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>h(ln,{cell:e,isFirstRow:n,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),cn=p((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:a})=>{const{isScrollAvailable:n}=a;return u("div",{className:"relative",children:[e.map(((e,a,{length:n})=>h(on,{row:e,isFirstRow:0===a,isLastRow:a+1===n,activeIndex:l,isColoredFirstColumn:t},String(a)))),n?qt({...a,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),dn=p((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:a,isColoredFirstColumn:n})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:a),[o,c]=Wt({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return u("div",{children:[u("div",{role:"table",children:[r?.length?h(tn,{colHeaders:r,activeIndex:o}):null,s?.length?h(cn,{rowData:s,isColoredFirstColumn:n,activeIndex:o,controls:c}):null]}),d?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),mn=p((({className:e="",title:t,rowHeaders:l,columns:n,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i),m=r((()=>d((e=>!e))),[]);return u(V,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[h(_,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(dn,{columns:n,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?hn({isShowAllRow:c,onClick:m}):null]})})),hn=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-12",children:u("div",{className:"flex w-full",children:[h("div",{className:Ka}),h("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),un=p((({className:e="",contacts:t,info:l,version:a="secondary",...n})=>u(V,{className:`flex p-12 ${e}`,version:a,...n,children:[l?.length?pn(l):null,t?.length?pn(t):null]}))),pn=e=>h("div",{className:"flex grow basis-0",children:e.map(((e,t)=>xn({column:e,index:t})))}),xn=({column:e,index:t})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:a},n)=>u("div",{className:"mt-6 first:mt-0",children:[h(Mt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?h("div",{className:"mt-1.5 opacity-80",children:h(L,{size:"text-m",font:"font-light",children:l})}):null,a?h(Te,{className:"mt-6",...a}):null]},String(n))))},`col-${String(t)}`):null,gn=e=>"Image"===e?.errorContentType&&e?.image?h(Y,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,bn=p((({className:e="",title:t,subtitle:l,error:a,button:n})=>{return u("section",{className:g("flex flex-col justify-center items-center",(r=n?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),children:[h("div",{className:"flex justify-center py-20",children:gn(a)}),t?h(_,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,n?.text?h(Te,{className:"py-4 px-9",version:n?.version,...n,children:n.text}):null]});var r}));var fn;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(fn||(fn={}));const vn=new Intl.NumberFormat("ru",{style:"currency",currency:fn.RUB}),Nn=e=>e?vn.format(e):"",yn="text-left text-m-light text-secondary-text",wn=`${yn} pl-11`,Cn={USD:"DollarIcon",EUR:"EuroIcon"},kn=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:yn,children:"Валюта"}),h("th",{className:wn,children:"Купить"}),h("th",{className:wn,children:"Продать"})]})}),h("tbody",{children:t.map(Sn)})]}))),Sn=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(Y,{image:{icon:Cn[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Nn(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Nn(e?.buyExchangeRate)})]},t)},$n=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(Y,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),In=(e,t,l)=>{const a=Number(Tn(e))*Math.pow(t,l?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(a)},Tn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Bn=e=>{return(t=[[e=>e.value!==fn.RUB&&e.oppositeValue!==fn.RUB,()=>e.handleConvert(e.value,fn.RUB)],[e=>e.value===fn.RUB&&e.oppositeValue===fn.RUB,()=>e.handleConvert(e.value,fn.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Rn(e){const{placeholder:t,rates:l,selected:a,value:n,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:a,text:a};return u("div",{className:"relative flex",children:[h(ee,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:n,onChange:r}),s.length?h(Le,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Vn=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:n})=>{const[i,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||fn.RUB,selectBuy:l?.[0]?.currency?.currency||fn.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Rn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:jn(i,o,l),value:i.inputSell,setValue:e=>Ln(o,l)(e,i.selectSell,i.selectBuy)}),Rn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:_n(i,o,t),value:i.inputBuy,setValue:e=>Mn(o,t)(e,i.selectBuy,i.selectSell)}),n?.text?h(Te,{className:"py-4 mr-1",version:n?.version,...n,children:n.text}):null]})})),jn=(e,t,l)=>a=>{t({selectSell:a}),Bn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,n=e.selectBuy)=>{Ln(t,l)(e.inputSell,a,n)}})},_n=(e,t,l)=>a=>{t({selectBuy:a}),Bn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,n=e.selectSell)=>Mn(t,l)(e.inputBuy,a,n)})},Ln=(e,t)=>(l,a,n)=>{e({inputSell:Tn(l),selectBuy:n});const r=t.find((e=>e.currency?.currency===n))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;r&&e({inputBuy:String(In(l,r,a===fn.RUB)||"")})},Mn=(e,t)=>(l,a,n)=>{e({inputBuy:Tn(l),selectSell:n});const r=t.find((e=>e.currency?.currency===n))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;r&&e({inputSell:String(In(l,r,a===fn.RUB)||"")})};const Dn=async e=>{const t=await An(),l=t?.code||"000";return{region:t,exchangeRates:await zn(e,l)}},An=async()=>{try{return await re("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},zn=async(e,t)=>{try{return await re(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},On=p((({className:e="",title:t="Курсы обмена валют",button:l,...a})=>{const{exchangeRates:n}=function(){const{data:e}=le("/api/v1/exchangerates",Dn);return e||{}}(),r=Pn(n?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:fn.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:fn.RUB}}),h(V,{className:`p-9 box-border min-h-80 ${e}`,...a,children:h(ca,{title:h(_,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[r?h(kn,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,h($n,{address:n?.address})]}),r.length&&i.length&&s.length?h(Vn,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Pn=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function En(e,t={}){const{data:l}=le(`/wcms-resources/${e}.json`,re,{fallback:t});return l||{}}const Fn={"bg-white":"color",transparent:"white"},Un={"bg-white":"text-primary-main",transparent:"text-white"},Hn=(e,t,l)=>h(Y,t?.src?{image:t,className:Un[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Fn[e]},className:Un[e],width:l?.width,height:l?.height,asSVG:!0}),Xn={"bg-white":"text-primary-text",transparent:"text-white"},Gn=(e,t,l)=>h("span",{className:`${Xn[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),Wn=p((({className:e="",href:t,logo:l,children:a=l?.title,targetBlank:n,bgColor:r="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:n?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Hn(r,l?.image,{width:"40",height:"45"}),i?Gn(a||l?.title,r):null]}))),Jn=()=>{const[e,t]=a("");return{term:e,setTerm:e=>t(e)}},Yn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:a}=Jn(),n=t?"text-s":"text-l-light",r=t?" placeholder-transparent":"h-full",i=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(Y,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${n}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text ${r}`,value:l,onChange:e=>a(e.target.value),type:"text",name:"search-bar-input",placeholder:i}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),a("")},children:h(Y,{image:{icon:"CloseIcon"},width:"24",height:"24"})}):h(Te,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Kn=p((e=>h(Yn,{...e}))),qn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(Zn):null,l?h(Te,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Zn=(e,t)=>{const{type:l,text:a,description:n}=e;return u("div",{className:"mb-4",children:[h("div",{children:Qn(l,a)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:n})]},String(t))},Qn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${er(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},er=e=>e.replaceAll(/\D/g,""),tr=p((({className:e="",index:t,text:l,...a})=>{const n=be(),{href:r,target:i,onClick:s}=n(a);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),lr=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(tr,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),ar=e=>t=>e?.href===t?.href,nr=(e,t)=>{return(a=e,n=t,(a||[]).map((e=>n?.find(ar(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(ar(e))))));var l,a,n},rr=p((({className:e="",items:t,fallback:l})=>{const a=be(),n=En(c.SITEMAP||"sitemap",l),r=nr(n.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:r?.map(((e,t)=>ir(a(e),t)))})})),ir=(e,t)=>{const{text:l,items:a,href:n,target:r,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:n,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),a?.map(((e,t)=>h(sr,{...e,index:t},String(t))))]},String(t))},sr=p((({text:e,index:t,...l})=>{const a=be(),{href:n,target:r,onClick:i}=a(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:n,target:r||"_self",onClick:i,children:e||`Раздел ${t}`})})),or=p((({className:e="",index:t,...l})=>{const a=be(),{href:n,target:r,text:i,onClick:s}=a(l);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:n,target:r,onClick:s,children:i||`Документ ${t}`})})),cr=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(or,{index:t,...e},String(t))))}):null]}))),dr="w-[204px]",mr=p((({className:e="",...t})=>{const l=t.options?.page?.fallback,{documents:a,relatedEnterprises:n,contacts:r,socialMedia:i,mobileApps:s,logo:o}=En(c.FOOTER||"footer",l);return u(V,{tag:"footer",className:`p-9 ${e}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Wn,{className:dr,logo:o}),h(Kn,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(qn,{items:r,hasButton:!0}),h(La,{media:i,children:"Соцсети"}),h(La,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(rr,{className:"pt-[3px]",fallback:l})]}),h(lr,{className:"mt-[98px]",links:n}),h(cr,{links:a})]})})),hr={normal:3,mini:4},ur={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},pr={normal:380,mini:276},xr=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:a,icon:n,items:r,button:i,isFullWidth:s=!0,isDotted:o=!0,align:c="center",...d})=>u(V,{className:`h-full flex flex-col justify-between ${C[c]}`,tag:"div",...d,children:[u("div",{className:"flex flex-col h-full",children:[gr(n),br(t,e),fr(l,e),r?.length?Nr(r,o):null,vr(a)]}),Rt([i],{buttonClassName:"mt-6 "+(s?"w-full":"self-center")})]}))),gr=e=>u("div",{className:"flex justify-center",children:[e?.src?h(Y,{className:"mb-5",image:e}):null,e?.icon?h(Y,{className:"w-8 h-8 min-w-8 mb-5 rounded-full",image:Ta(e),asSVG:!0}):null]}),br=(e,t)=>t?h("div",{className:Lt[e],children:t}):null,fr=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,vr=e=>e?h("div",{className:"text-m-light mt-auto group-data-primary:text-secondary-text",children:e}):null,Nr=(e,t)=>h(ya,{className:"max-w-[308px] mt-2 text-s group-data-primary:text-secondary-text",itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}),yr=p((({headlineVersion:e="M",cards:t=[],galleryVersion:l="normal",activeIndex:a,title:n,description:r})=>u("div",{children:[h(Mt,{className:"!p-0",title:n,description:r,headlineVersion:e}),h("div",{className:`flex mt-8 ${t?.length<=hr[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${a*pr[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,galleryVersion:t},l){return h("section",{className:`box-border border-solid border border-gray p-6 mx-2 flex flex-col justify-between\n items-stretch ${ur[t]} ${R[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(xr,{...e})},String(l))}({card:e,galleryVersion:l},t)))})]})));const wr=p((({cards:e=[],className:t="",galleryVersion:l="normal",button:a,...n})=>{const[r,i]=Wt({itemCount:e?.length,visibleItemCount:hr[l]}),{isScrollAvailable:s}=i;return u(V,{className:`relative p-[42px] overflow-hidden flex flex-col ${t}`,...n,children:[h(yr,{cards:e,galleryVersion:l,activeIndex:r,...n}),qt({...i,btnClass:["left-8","right-8"],className:"top-1/2"}),s?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,Rt([a],{className:"mt-8 mx-auto"})]})})),Cr=p((e=>h(wr,{...e,galleryVersion:"normal"}))),kr=p((({className:e="",title:t,description:l,calendar:a,...n})=>u(V,{className:`p-12 ${e}`,...n,children:[h(Mt,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),a?Sr(a):null]}))),Sr=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?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>$r(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("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:[h("div",{className:"flex",children:Ir(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},$r=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Ir=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(Y,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Tr=(e,t)=>me(oe(e)?t.href:he(t.href)).startsWith(me(pe(e))),Br=e=>t=>Tr(t.href,e),Rr=p((({className:e="",active:t,flat:l,children:a,...n})=>{const r=be(),{href:i,target:s,text:o,onClick:c}=r(n);return h("a",{className:g(Vr(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:h("span",{className:jr(t,l),children:o||a})})})),Vr=(e=!1,t=!1)=>g("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),jr=(e=!1,t=!1)=>g("font-sans text-s-light",e?"text-primary-main":g(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover");function _r(e=!1){const[t,l]=a(e),n=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:n,setFalse:i,toggle:s}]}const Lr=864e5;function Mr(e,t,l=globalThis?.localStorage){const a=r((async(...a)=>{const n=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Lr?t:void 0}(l.getItem(n));if(r)return r;const i=await t(...a);return l.setItem(n,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return le(e,a)}const Dr=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const Ar=p((({className:e,searchTerm:t,onSearch:l})=>u("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:h("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),h("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value),type:"text",name:"location-search-bar-input"})]}))),zr=p((({currentLocation:e,onChangeLocation:t,close:l,foreignOffices:a})=>{const{term:n,setTerm:i}=Jn(),s=r((e=>i(e)),[]),o=Pr(function(){const{data:e}=le("/api/v1/regions",re);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;return e.forEach((e=>{const a=t(e),n=l.get(a);l.set(a,[...n||[],e])})),l})(o,Or);return u("div",{className:"absolute h-full w-full inset-0 bg-white text-l-light z-50",children:[h(Fr,{close:l}),u("div",{className:"container py-12",children:[h(Er,{currentLocation:e}),h(Ar,{onSearch:s,searchTerm:n,className:"mb-7"}),n&&n.length>=3?h("div",{children:o.filter((e=>e.name?.startsWith(n))).map(Hr({onChangeLocation:t,close:l}))}):h("div",{className:"columns-5",children:Array.from(c.entries()).map(Ur({onChangeLocation:t,close:l}))}),h(Xr,{foreignOffices:a})]})]})})),Or=e=>e.name?.charAt(0)||"",Pr=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Er=p((({currentLocation:e})=>e?u("div",{className:"mb-4",children:[h(K,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),h("button",{className:"cursor-pointer",onClick:close,children:h(K,{color:"text-green",children:e.name})})]}):null)),Fr=p((({close:e})=>h("button",{className:"visible peer-placeholder-shown:invisible absolute top-6 right-6 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:t=>{t.preventDefault(),e&&e()},children:h(Y,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),Ur=({onChangeLocation:e,close:t})=>([l,a])=>u("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[h("div",{className:"mb-2.5",children:h(K,{size:"text-h6",children:l})}),a.map(Hr({onChangeLocation:e,close:t}))]},l),Hr=({onChangeLocation:e,close:t})=>l=>h("div",{className:"mb-1",children:h("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(l),t&&t()},children:l.name||""})},l.id),Xr=p((({foreignOffices:e})=>e?.length?u("div",{className:"border-t border-main-divider mt-7 pt-7",children:[h("div",{className:"mb-4",children:h(K,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),h("div",{className:"flex gap-10",children:e.map(((e,t)=>h(Gr,{...e},String(t))))})]}):null)),Gr=p((({icon:e,...t})=>{const l=be(),{text:a,target:n,href:r,onClick:i}=l(t);return u("div",{className:"flex gap-x-3",children:[e?h(Y,{pathPrefix:"/wcms-resources/",image:e}):null,a?h("a",{className:"hover:text-primary-hover",href:r,target:n,onClick:i,children:a}):null]})})),Wr=p((({className:e,isRounded:t,disabled:l,ariaLabel:a,image:n,onClick:r})=>h("button",{className:g("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:l,"aria-label":a,onClick:r,children:h(Y,{image:n,className:g("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),Jr=e=>globalThis[e];function Yr(e,t){const[l,i]=a(),s=r((()=>i(Jr(e))),[e]);return n((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Jr(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Kr={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},qr=p((e=>{const[t,{setTrue:l}]=_r();return t?h(Zr,{...e}):Qr({...e,onClick:l})})),Zr=p((({chat:e="personal",...t})=>((e=>{n((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Yr("chatbot",Kr[e])})(e),Qr(t)))),Qr=({className:e,iconVersion:t,onClick:l})=>h(Wr,{className:g("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l}),ei=p((({version:e,className:t,officesLink:l,defaultLocation:i="Москва",foreignOffices:s,chat:o})=>{const[c,{setTrue:d,setFalse:m}]=_r(),[p,x]=function(e){const t=Dr(),[l,i]=a(t?.region??{name:e}),{data:s}=Mr("/api/v1/region",re);return n((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[i])]}(i),b="transparent"===e?"white":"black";return u("div",{className:g("flex items-center",t),children:[h(Rr,{className:"mr-5",flat:!0,href:"#",text:p.name,onClick:d}),l?h(Rr,{className:"mr-7",flat:!0,href:l,text:"Офисы и банкоматы"}):null,o?h(qr,{className:"mr-5",iconVersion:b,chat:o}):null,c?h(zr,{currentLocation:p,foreignOffices:s,onChangeLocation:x,close:m}):null]})})),ti=p((({className:e="",items:t,activeItem:l})=>{const n=be(),[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),c=_e(r((()=>s(!1)),[]));return u("div",{className:g(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[h("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>h("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),h("div",{className:g("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:a,...r}=e;return h("a",{className:g("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...n(r),children:a},e.href||String(t))}))})]})})),li=p((({className:e="",active:t,dataItemName:l,children:a,...n})=>{const r=be(),{href:i,target:s,text:o,onClick:c}=r(n);return u("a",{className:g("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[h("span",{className:ai(t),children:o||a}),t?h("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),ai=(e=!1)=>g("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ni=p((({observerOptions:e,onVisibilityChange:t,children:l,...a})=>{const n=S(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return h("span",{ref:n,children:h(li,{...a,children:l})})})),ri=p((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(Br(e));return l?.length?Wl((e=>e.href?.length||0))(l):void 0})(ge())(e),[l,n]=a(e.length),r=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{n(e?ii(t):si(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,a)=>h(ni,{className:g("mr-8",l-1<a?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[a],...e},String(a))))}),r.length?h(ti,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),ii=e=>t=>Math.max(t,e+1),si=e=>t=>Math.min(t,e),oi={"bg-white":"primary",transparent:"transparent"},ci=p((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:a=oi[e],chat:n,...r})=>{const i=ge(),{topItems:s,logo:o,defaultLocation:d,foreignOffices:m,officesLink:p}=En(c.SITEMAP||"sitemap",r.options?.page?.fallback),x=s?.find((e=>t=>t.items?.some(Br(e))||Tr(t.href,e))(i));return h(V,{tag:"header",className:g("pt-6 px-20",l&&x?.items?.length?"pb-4":"pb-5",t),version:a,...r,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Wn,{className:"mr-8",bgColor:e,logo:o}),s?.map(((e,t)=>h(Rr,{active:e===x,...e},String(t)))),h(ei,{version:a,className:"ml-auto",foreignOffices:m,defaultLocation:d,officesLink:p,chat:n})]}),h("div",{className:g("mt-6 h-px bg-main-divider","transparent"===a?"opacity-30":"")}),l&&x?.items?.length?h(ri,{subItems:x.items}):null]})})})),di={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},mi=p((({className:e="",gap:t="XS",isPadding:l=!1,version:a="transparent",...n})=>h(V,{className:g("grid grid-cols-12",l?"p-12":"",di[t],e),version:a,...n,children:w(n)})));mi.childrenTypes={exclude:["HorizontalLayout"]};const hi=p((e=>{const{className:t,image:l,...a}=e;return h(V,{className:t,...a,children:h(Y,{image:l})})})),ui=p((({className:e="",cards:t=[],button:l})=>{const[n,i]=a(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Wt({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:p}=d,x=t[c]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?pi({activeIndex:c,cards:t,selectedCardIndex:n,onClick:s}):null,qt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,p?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(Te,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function pi({activeIndex:e,cards:t,selectedCardIndex:l,onClick:a}){const n=460*e,r=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${n}px)`},className:"duration-1000 px-12",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){return u("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?h(Y,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?xi("страховая сумма",e.sum):null,e?.fee?xi("страховой взнос",e.fee):null]}),gi(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})})}function xi(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Qe(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function gi(e){return e?h(Y,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const bi=p((({className:e="",title:t,insuranceTabs:l=[],button:n,...i})=>{const[s,o]=a(0),c=r((e=>o(e)),[]);return u(V,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?h(_,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:a}){return h("button",{type:"button",onClick:a,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:fi({insuranceTabs:l,button:n})})]})})),fi=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(ui,{button:t,cards:e},String(l)))):null};function vi(e){return t=>t.reduce(((t,l,a)=>t.length?t.concat({...e,key:a},l):[l]),[])}const Ni={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},yi={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},wi=p((e=>{const{className:t="",items:l,isDotted:a,investmentZeroColumn:n,investmentColumns:r,...i}=e,s=r?[...r]:[];return n&&s.unshift(n),h(V,{className:`px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[vi(h("div",{className:"w-px h-4 bg-gray"}))(s.map(Ci)),h("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),h("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map($i)})]}):null,l?.length?h(ya,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:a}):null]})})})),Ci=(e,t,l)=>{const a=1===t,n=t===l.length-1;return h("div",{className:`${ki(a,n,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(n?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Si)}):null},`column_${t}`)},ki=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Si=(e,t)=>{const l=e.cellSize||"XS",a=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${yi[l]} ${Ni[a]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},$i=(e,t,l)=>{const a=0===t,n=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${a?"pl-9":""} ${n?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Ii=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:n,icon:r})=>{const{text:i,fileSize:s,...o}=n;return u("a",{className:e,role:"link",...o,children:[r?h(Y,{className:t,image:Ta(r),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:a,children:o?.href&&Ti(Bi(o.href),s)})]}):null]})})),Ti=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Bi=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ri=p((({className:e="",doc:t,icon:l})=>h(Ii,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover/item:text-primary-main",doc:t,icon:l}))),Vi=p((({className:e,documents:t,columnsMode:l="double",icon:a})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(Ri,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),ji={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},_i=p((({className:e="",title:t,description:l,align:a="text-center",documents:n,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>u(V,{className:g("p-12",e),...s,children:[h(Mt,{className:"!p-0",title:t,description:l,align:a,headlineVersion:"M",as:"h2"}),h(Vi,{className:`mt-8 ${ji[i]}`,columnsMode:i,documents:n,icon:r})]}))),Li=p((e=>h(wr,{...e,galleryVersion:"mini"}))),Mi=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Di(e=""){const t=Mi(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Ai=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:a,version:n="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===n?"p-3.5 min-w-[120px]":"min-w-[92px]";return u(V,{className:`flex justify-between p-12 box-border relative min-h-80 ${Di(e)} ${e}`,version:n,...d,children:[u(ca,{className:"z-10",title:t?h(_,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${C[o]}`}):null,buttons:Rt(a,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Oi(c),u("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:h(Y,{className:"w-fit",image:l})}):null,zi(r)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(Y,{image:i})}):null]})})),zi=e=>e?.length?h(ya,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Oi=e=>e?h("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Pi=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Ei(e,t,l){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),n=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));n.add(r),t.geoObjects.add(n),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Fi={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Ui=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Fi).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Hi={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},Xi=(e,t,l)=>u("div",{className:`${Object.values(Hi).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(P,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const a=t.target?.value?t.target?.value.toLowerCase():"";if(a){const t=e.filter((e=>e.text.toLowerCase().indexOf(a)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Gi={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Wi=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Gi).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(P,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Ji={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Yi=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),a="in"===t?l+1:l-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(Ji).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(P,{name:l,width:"20",height:"16"})})})),Ki={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},qi=p((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Yr("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=a(),[p,x]=a(ts(Pi)),g=Zi(e);if(n((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),Ei(o,i.current,p)}))}),[o,i,p]),n((()=>{if(i.current&&p&&o){const e=p.length<1?ts(Pi):p;Ei(o,i.current,e)}}),[i,p,o]),!o)return null;const b=d?"z-[100000]":"z-10";return u("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?Xi(Pi,0,(e=>{if(e){const t=ts(e);x(t)}})):Ui(g)}),h("div",{className:`${Object.values(Ki).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:h(P,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[h(Yi,{yandexMaps:i}),h(Yi,{yandexMaps:i,direction:"out"})]}),Wi(i.current,o,`right-2 top-80 ${b}`)]})})),Zi=e=>[es(Qi(e,0)),es(Qi(e,1))],Qi=(e,t)=>e.map((e=>e[t])),es=e=>e.reduce(((e,t)=>e+t))/e.length,ts=e=>e?e.map((e=>e.coords)):null,ls=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],as=({lunchHour:e,status:t,workTime:l})=>{const a=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?a:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},ns=({icon:e,title:t,distance:l,time:a},n)=>u("div",{className:"flex mr-4",children:[h(P,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,a?`, ${a}`:null]})]},`nearbyOffice${n}`),rs=({title:e,status:t,workTime:l,lunchHour:a,description:n},r)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&a?is(a):null,n?h("div",{className:"pb-1 text-s-light text-secondary-text",children:n}):null]},`day${r}`),is=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),ss={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function os(e){return e?ne(e,{method:"GET"}):{}}const cs=p((({className:e=""})=>{const t=function(e){const{data:t}=le(e?`/api/v1/branches?regionCode=${e}`:void 0,os);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),ss}("000"),{name:l,address:a,gpsLatitude:n,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=n&&r?[n,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),as(C)]}),u("div",{className:"flex text-l-light pt-4",children:[h(P,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),a]}),h("div",{className:"flex pt-4",children:ls.map(ns)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(qi,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(rs)})]})]})})),ds=p((({className:e="",title:t,servicesList:l,...a})=>u(V,{className:`p-8 flex flex-col ${e}`,...a,children:[t?h(_,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(ms)}):null]}))),ms=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(Y,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Ta(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),hs=p((({className:e="",...t})=>h(V,{className:`font-sans text-primary-text ${e}`,...t,children:w(t)})));hs.childrenTypes=["OtherProductsItem"];const us=p((({className:e="",label:t,icon:l,dataTheme:a="",onClick:n})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":a,onClick:n,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(Y,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),ps=({isUnfolded:e,onToggle:t})=>h(us,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),xs=["ArrowDownIcon","ArrowUpIcon"],gs=p((({className:e,label:t="",isUnfolded:l,...a})=>{const{colorPalette:n}=function(e,t){const{content:l}=function(e){return e?.parent||{}}(e);return l||t}(a.options,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(A,{unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(z,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:w(a)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(us,{label:t,icon:xs[Number(e)],dataTheme:n||a.options?.page?.colorPalette,onClick:l})})})}));gs.childrenTypes={exclude:["OtherProductsItem"]};const bs=p((({text:e,size:t,align:l,font:a,children:n,...r})=>h(V,{...r,children:h(L,{size:t,align:l,font:a,children:e||n})}))),fs=p((e=>{const{className:t="",icon:l,label:a,description:n,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${n?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:vs(r,i),children:h(Y,{className:"w-6 h-6",image:Ta(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[a?h("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:a}):null,n?h("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:n}):null]})]})}));function vs(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Ns=p((e=>{const{__html:t=""}=e;return h("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})}));function ys(e){throw new Error(e)}const ws=e=>(t,l)=>{const{type:a}=t;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return h(fs,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return h(Ns,{__html:t.__html});default:ys(t)}},Cs=p((({className:e="",title:t,description:l,image:a,benefits:n,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>u(V,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[h(Mt,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[a?.src?h(Y,{className:s?"order-2":"",image:a}):null,u("div",{className:"w-[558px] m-auto",children:[n?.length?h("div",{className:"flex flex-col gap-4",children:n.map(ws(o))}):null,ks(Number(r),Number(i))]})]})]})));function ks(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Ss("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Ss("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Ss(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Qe(t)," ₽"]})]})}function $s(e=""){const t=Mi(e);return t<=4?"S":t<=8?"M":"L"}function Is(e=""){const t=Mi(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ts=p((({className:e,title:t,description:l="Блок в разработке...",...a})=>u(V,{className:g("p-9 box-border",e,Is(e),Di(e)),...a,children:[h(Mt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:$s(e)}),h("figure",{className:"m-0 min-w-[80%]",children:Bs()})]}))),Bs=(e=3)=>Vs(100,e).map((e=>Math.floor(e))).map(Rs),Rs=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Vs=(e,t)=>[e].concat(t>0?Vs(e/1.618,t-1):[]),js=p((({className:e="",children:t,...l})=>{const a=be(),{text:n,href:r,target:i,onClick:s}=a(l);return r?h("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:h("span",{className:e,children:n||t})}):h("span",{className:e,children:n||t})})),_s=(e="primary",t="normal")=>({icon:l,label:a,description:n},r)=>h(fs,{icon:l,label:a,description:n,version:e,benefitsVersion:t},String(r)),Ls=p((({className:e="",title:t,headlineVersion:l="L",description:a,benefitsCountOfRow:n=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,items:d,version:m="primary",isDotted:p=!0,textBlockClassName:x=""})=>{const b=r?.filter((e=>e.label))?.length,f=Ms(n);return u("div",{className:g("flex grow justify-between items-stretch h-full",e),children:[u("div",{className:g("flex flex-col",x),children:[h(Mt,{className:"!p-0 max-w-[600px]",title:t,description:a,headlineVersion:l,align:"text-left"}),u("div",{className:"flex flex-col justify-between h-full",children:[u(ca,{buttons:Rt(s),children:[b?h("div",{className:f,children:r.map(_s(m,i))}):null,d?.length?h(ya,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:p}):null]}),o?h("p",{className:"text-m-light pt-12",children:o}):null]})]}),c?.src&&h(Y,{className:"mt-[-50px]",image:c})]})})),Ms=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Ds(e,t,l){const{text:a,href:n,target:r,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h(Te,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:n,target:r,children:h(Y,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),a?h("span",{className:"text-m",children:a}):null]})}const As="text-secondary-text group-data-secondary:text-white/80",zs=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:a,version:n="primary",...r}=e,i="primary"===n?n:"white";return u(V,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:n,...r,children:[a?.text?Ds(a,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:vi(h("span",{className:`mx-2 ${As}`,children:"/"}))(l.map(((e,t)=>h(js,{className:As,...e},String(t)))))}):null,h(Ls,{version:n,...r})]})})),Os=p((({className:e="",slides:t=[],version:l="primary",...n})=>{const i=t.map((e=>e.nav)),s=t.map((e=>e.productBlock)),[o,c]=a(0),d=r((e=>c(e)),[]);return u(V,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,version:l,...n,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,t)=>function(e,t){return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Ls,{className:"pl-12 z-10 text-secondary-text group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...n,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){const n=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return h("button",{type:"button",onClick:a,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${n}`,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${r}`,children:e?.title}),h("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===o),onClick:()=>d(t)})))})]})}));function Ps(e,t){if(!e)return null;return h("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:h(L,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Es=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[h(K,{size:"text-h6",children:e.label},`label-${t}`),h(K,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return h("div",{className:"col-span-2",children:h(Ns,{__html:e.__html})});default:ys(e)}};function Fs(e,t){return e?.src?h(Y,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const Us=p((({className:e="",title:t,headlineVersion:l="S",description:a,additionalDescription:n,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>u(V,{className:g("overflow-hidden p-9 box-border relative min-h-[364px]",Is(e),e),...c,children:[u("div",{className:g("flex flex-col",o?"":"items-end"),children:[h(Mt,{className:g("!p-0 !bg-transparent z-10",t||a?"mb-3.5":""),title:t,description:a,headlineVersion:l,as:"h2",align:"text-left"}),Hs(r,s),Ps(n,s),Rt(i,{className:"mt-5 z-10 text-l"})]}),Fs(s,o)]})));function Hs(e,t){if(!e.length)return null;return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(Es):null})}const Xs=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:a,as:n,buttons:r=[],...i})=>h(V,{className:g("p-9 box-border",e,Is(e),Di(e)),...i,children:h(ca,{title:t?h(Mt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:$s(e),align:"text-left",as:n||"h2"}):null,buttons:Rt(r),children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:Gs(l)}):null,h("div",{className:"text-l",children:a})]})})})));function Gs(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ws=p((({className:e="",title:t,description:l,items:a,image:n,socialMedia:r,button:i,...s})=>{const o=t?h(_,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=n?.src?h(Y,{className:"absolute bottom-0 right-0 m-0",image:n}):null;return h(V,{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",...s,children:h(ca,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h("span",{className:"mb-2",children:l}):null,a?.length?h(ya,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:a}):null,r?h(La,{className:"pt-10 pb-0",media:r}):null,i?.text?h("div",{className:"pt-2",children:Rt([i],{buttonClassName:"mt-16 px-5"})}):null]})})})})),Js="absolute top-0 bottom-0 w-[84px]",Ys=p((({recommendations:e=[],className:t="",title:l,version:a="primary",...n})=>{const[r,i]=Wt({itemCount:e.length,visibleItemCount:2});return u(V,{className:`relative font-sans p-9 overflow-hidden text-center ${t}`,version:a,...n,children:[l?h(_,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*r}px)`},role:"list",children:e.length?e.map(((e,t)=>h(Ws,{version:a,className:"border-gray group-data-secondary:border-white/50",...e},String(t)))):null}),qt({...i,btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})]}),h("div",{className:`${Js} left-0 ${"secondary"===a?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Js} right-0 ${"secondary"===a?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Ks=p((e=>{const{__html:t,...l}=e;return h(V,{...l,children:h(Ns,{__html:t})})})),qs=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:a=!0,version:n="primary",...r})=>h(V,{className:`border-b border-solid border-main-divider w-full ${e}`,tag:"div",...r,children:h(A,{isFoldButtonOnTop:a,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(z,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:w(r)})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>Zs({version:n,label:t,isUnfolded:e,onToggle:l})})})));qs.childrenTypes={exclude:["RollupItem","Accordion","AccordionItem","OtherProducts","OtherProductsItem"]};const Zs=({version:e,label:t,isUnfolded:l,onToggle:a})=>{const n=t||(l?"Скрыть":"Развернуть");return"primary"===e?Qs({label:n,icon:l?"MinusIcon":"PlusIcon",onToggle:a}):h(us,{label:n,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:a})},Qs=({label:e,icon:t,onToggle:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(Y,{image:Ta({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),eo=p((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return h(Le,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),to=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:a=[],selectedBranch:n,onSelectedBranch:r})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(eo,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(eo,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:n,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),lo=p((({name:e,text:t,value:l,checked:a,onChange:n,className:r})=>h("div",{className:r,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:a,onChange:e=>n(e.target.value)}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),ao=p((()=>{const[e,t]=a("option2"),l=r((e=>t(e)),[]);return u("div",{children:[h(lo,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(lo,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),no=["От 1 дня","До 365 дней"],ro=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(lt,{min:1,max:365,value:e,items:no,onChange:t})]}))),io=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:a=[],selectedBoxSize:n,onSelectedBoxSize:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(eo,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(eo,{data:a,fieldLabel:"safeBoxCasesSize",selected:n,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),so=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:a,days:n,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>u("div",{className:"flex-1 mr-9",children:[h(to,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:a,onSelectedBranch:oo(c)}),h(ro,{days:n,setDays:e=>c({days:e})}),h(io,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:co(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(ao,{}),h(Te,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),oo=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},co=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},mo=p((({days:e,tariffs:t=[]})=>{const l=uo(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[ho("Аренда за",e,"mr-11"),ho("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(Y,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),ho=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),uo=(e,t)=>{const l=po(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},po=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},xo=(e,t)=>e.find((e=>e.branchCode===t)),go=p((e=>{const{regions:t,data:l,branches:a,onChange:r,onClick:i}=e;n((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=xo(a,l.selectedBranch),o=bo(s?.safeBoxCaseVolumes),c=fo(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=vo(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(so,{...l,regions:t,onClick:i,branches:a,caseVolumes:o,safeBoxCases:c,onChange:r}),h(mo,{days:l.days,tariffs:d})]})})),bo=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],fo=(e,t)=>e?.find((e=>e.volume===t)),vo=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,No=p((({title:e,footnote:t,className:l="",...n})=>{const[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),[c,d]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=ie(),p=yo(c.selectedRegion,m),x=Ke(p),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=xo(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return u(V,{className:l,...n,children:[u("div",{className:"px-8 py-12",children:[e?h(_,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(go,{regions:m,branches:x,data:{...c,selectedRegion:p},onClick:o,onChange:g}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(qi,{points:b,className:"h-[640px]"}):null]})})),yo=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,wo=e=>Boolean(e?.icon||e?.src),Co=({styleMap:e,isMainButton:t,version:l})=>(a,n,{length:r})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=a,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${Io(r)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[ko(i),u("div",{className:`${m} flex flex-col items-center`,children:[So({description:s,className:e.description}),h(ya,{className:$o({className:"text-left",description:s,styleMap:e}),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?h(Te,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(n))},ko=e=>e?h("div",{className:"text-h6",children:e}):null,So=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,$o=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),Io=e=>e<5?"w-[276px]":"w-[210px]",To={primary:{description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},gray:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},transparent:{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"},"":{description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Bo=p((({className:e="",showLines:t=!0,steps:l=[],button:a,version:n="primary",...r})=>{const{title:i}=r,s=To[n],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(V,{className:["box-border py-12",o?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e].join(" "),version:n,...r,children:[i?h(_,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:vi(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(Ro(s,n)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Co({styleMap:s,isMainButton:Boolean(a?.text),version:n}))})]}):null,a?.text?h(Te,{className:"mt-8 min-w-60",version:"primary",...a}):null]})})),Ro=(e,t)=>({icon:l},a)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center ${e.iconBackground}`,children:wo(l)?h(Y,{image:Ta(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:a+1})})},String(a)),Vo={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},jo={"horizontal-list":"w-6","vertical-list":"h-6"},_o=p((({containerRef:e,activeIndex:t,dotCount:l=0,listType:a="horizontal-list"})=>l?h("div",{className:`flex gap-2 ${Vo[a]}`,children:new Array(l).fill(null).map(((l,n)=>h("div",{className:`cursor-pointer bg-primary-main rounded-full transition-width duration-300 group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?jo[a]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(n)},String(n))))}):null)),Lo=p((({className:e="",gap:t=14,padding:l=16,showDots:a=!0,children:n,onVisibleIndicesChange:r,listType:i="horizontal-list"})=>{const s=Array.isArray(n)?n.length:0,[o,c]=ql({itemCount:s,onVisibleIndicesChange:r}),[d]=c.visibleIndicesRange;return u("div",{className:g(e,"vertical-list"===i?"relative h-full":""),children:[h(Fl,{containerRef:o,activeIndex:d,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:c.handleVisibleIndicesChange,listType:i,children:n}),a?h(_o,{containerRef:o,activeIndex:d,dotCount:s,listType:i}):null]})})),Mo=p((({listType:e,showDots:t,options:l,...a})=>h(V,{...a,children:h(Lo,{listType:e,showDots:t,children:w({...a,options:l})})})));Mo.childrenTypes={exclude:["SwipeListControlBlock"]};const Do="h-12 flex-1 flex items-center justify-center cursor-pointer",Ao="font-sans text-m text-center",zo="text-white",Oo="text-secondary-text group-hover/btn:text-primary-main",Po="text-primary-main",Eo={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Do} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Do} group/btn bg-white`},default:{active:`${Do} bg-primary-main text-white whitespace-nowrap`,default:`${Do} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Fo={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Do} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Do} group/btn bg-white`},default:{active:`${Do} bg-primary-main text-white`,default:`${Do} group/btn bg-white`}},text:{scrollable:{active:`${Ao} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Ao} ${Oo}`},default:{active:`${Ao} text-white`,default:`${Ao} ${Oo}`}}},Uo=(e,t,l)=>{const a=t?"active":"default";return Eo[e][l?"scrollable":"default"][a]},Ho=(e,t,l)=>{const a=t?"active":"default";return Fo[e][l?"scrollable":"default"][a]},Xo=p((e=>{const{tab:t,currentTab:l,isScrollable:a=!1}=e,n="link"===l?.type&&l.href===t.href,r=be()(t);return h("a",{role:"tab",className:Ho("link",n,a),target:t.target,href:r.href,onClick:r.onClick,children:h("span",{className:Ho("text",n,a),children:t.text})})})),Go=(e,t,l)=>e?h("h3",{className:l?`${Ao} ${t?Po:Oo}`:`${Ao} ${t?zo:Oo}`,children:e}):null,Wo=(e,t,l)=>e&&t?h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Jo=({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:Uo("div",s,n),role:"tab","aria-selected":s,onClick:()=>a(r),children:u("div",{className:`flex flex-1 items-center justify-center ${Uo("text",s,n)}`,children:[Go(r.title,s,n),Wo(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n})(r,i);case"link":return h(Xo,{tab:r,currentTab:t,isScrollable:n},String(i));default:ys(s)}return null},Yo=p((e=>{const{tabs:t,onClick:l,currentTab:a,page:n,showCounter:r}=e,[i,s]=ql({itemCount:t?.length||0,isCyclic:!1});return u("div",{className:"relative max-w-full m-auto",children:[h("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:h(Fl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Jo({onClick:l,currentTab:a,showCounter:r,page:n,isScrollable:!0}))})}),s.canScrollLeft?h(Yt,{className:"absolute z-50 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?h(Kt,{className:"absolute z-50 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Ko=p((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=a(l?l[0]:void 0);n((()=>k.inst.subscribe("tab",(e=>{const t=l?.find(qo(e));return"link"===e.type&&t&&m(t),[]}))),[l]),n((()=>"group"===d?.type?k.inst.subject("tab",{label:d.ref}):void 0),[d]);const u=r((e=>{"group"===e?.type&&k.inst.fire("tab",{type:e.type,label:e.ref}),m(e)}),[]);return h(V,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20 ":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?h(Yo,{tabs:l,onClick:u,currentTab:d,showCounter:i,...c}):l?.map(Jo({onClick:u,currentTab:d,showCounter:i,...c}))})})),qo=e=>t=>"link"===t.type&&t.href===`#${e.label}`,Zo=p((({isOpen:e,onClick:t})=>u(Te,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(P,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Qo={Buttons:({buttons:e})=>Rt(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?h(Y,{image:e}):null,List:({isDotted:e,...t})=>h(ya,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:a,isOpen:n})=>e?h(Zo,{isOpen:n,onClick:()=>{t({dataUrl:l,pdfUrl:a})}}):null))},ec=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=a(!0);n((()=>{t===i&&r||m(!0)}),[r,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,tc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},tc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...a}=e;if(!l||!(l in Qo))return null;return h(Qo[l],{...t,...a})},lc=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(ec({rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),ac=p((({rows:e})=>{const t=e?.[0]?.length??0,[l,a]=Wt({itemCount:t,visibleItemCount:5});return u("div",{children:[e?.map(nc(l)),qt({...a,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),nc=e=>(t,l)=>{if(!t?.length)return null;const[a,...n]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(n?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[a?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:a.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${r}px)`},children:n?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?rc(t.cols,e):null]},`row${l}`)))})})]},String(l))},rc=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,ic=p((({activeTabIndex:e,items:t})=>{const[l,n]=a({}),i=r((e=>n((t=>({...t,[e]:!t[e]})))),[]);return h("div",{children:t.map(((t,a)=>{const n=`activeTabIdx:${e}-tableIdx:${a}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(n),children:[t.title,h(Y,{image:{icon:l[n]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[n]?"h-0":""),children:h("div",{className:"relative",children:h(ac,{rows:t.rowsData})})})]},n)}))})})),sc=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:a})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?h(Te,{href:t,version:"secondary",target:"_blank",appendLeft:h(P,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function oc(e){const t=await fetch(e);return await t.json()}const cc=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:n}=function(e){const{data:t}=le(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),oc);return t||{}}(e),[i,s]=a(0),o=r((e=>s(e)),[]),c=n?.[i]?.items??[],d=n?.map((e=>e.currency??""));return u("div",n?{className:"bg-white z-10",children:[h(sc,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),h(ic,{activeTabIndex:i,items:c}),h(Zo,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(Zo,{onClick:l,isOpen:!0})]})})),dc=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(cc,{...t,onClick:l})}):null]}))),mc=p((({row:{header:e,data:t},activeIndex:l,rowIdx:n,...i})=>{const[s,o]=a(void 0),c=r((e=>o(e)),[]),[d,m]=a(void 0),p=r((e=>m(e)),[]);return u(dc,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(Y,{className:"mr-3.5 max-w-6 max-h-6",image:Ta(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(Qa,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(lc,{cells:e,rowIdx:n,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:p,...i},String(t))))}):null]})})),hc=p((({className:e="",title:t,description:l,rowHeaders:a,tariffsColumns:n,hiddenRowsNum:r=0,...i})=>{const s=n?.map((({data:e})=>e))||[],o=a?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Wt({itemCount:c,visibleItemCount:2}),p=(o||[]).map(((e,t)=>h(mc,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[p.slice(0,-r),p.slice(-r)]:[p,[]];return u(V,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[uc({title:t,description:l}),pc(l),r>0?h(A,{renderFoldableSection:({isUnfolded:e})=>u(xc,{controls:m,children:[x,h(z,{isUnfolded:e,children:g})]}),renderFoldButton:ps}):h(xc,{controls:m,children:p})]})}));function uc({title:e,description:t}){return e?h(_,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function pc(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const xc=p((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,qt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),gc={primary:"bg-white",secondary:"bg-primary-main","secondary-light":"bg-primary-main/10"},bc=p((({className:e="",title:t,description:l,blockVersion:a="primary",iconVersion:n,image:r,...i})=>{const s="secondary"===a;return u(V,{className:`px-9 py-4 flex gap-3 ${gc[a]} ${e}`,...i,children:["small"===n?h("div",{className:"mt-1",children:fc(s)}):null,"big"===n?vc(r):null,u("div",{children:[t?Nc(t,s):null,l?h("div",{className:"mt-1",children:yc(l,s)}):null]})]})})),fc=e=>h("div",{className:"rounded-full h-4 w-4 text-center text-xs-light "+(e?"bg-white text-primary-main":"bg-primary-main text-white"),children:"i"}),vc=e=>e?.src?h(Y,{image:e}):null,Nc=(e,t)=>h(K,{size:"text-l",font:"font-medium",color:t?"text-white":"text-primary-text",children:e}),yc=(e,t)=>h(L,{size:"text-s",color:t?"text-white":"text-secondary-text",children:e}),wc=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Cc)}):null})),Cc=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),kc=p((({title:e,headingType:t="h3",description:l,items:a,buttons:n,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...m})=>h(V,{className:`overflow-hidden p-9 pr-3 box-border ${Is(o)} ${Di(o)} ${o}`,...m,children:u(ca,{title:e?h(_,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Rt(n,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:r?.src?h(Y,{className:"mt-auto ml-7",image:r}):null,children:[l?h("div",{className:"max-w-[600px] mt-2.5",children:h(L,{size:"text-xl-light",children:l})}):null,d,h(ya,{className:"mt-2.5",itemClassName:"mb-1.5",items:a,isDotted:i,listItemSize:s}),c?.length?h(wc,{tags:c,className:"mt-5"}):null]})}))),Sc={left:"items-start",center:"items-center",right:"items-end"},$c=p((({className:e="",gap:t="",align:l,isPadding:a=!1,isInnerPadding:n=!0,version:r="transparent",options:i,...s})=>{const o=n?"":"!p-0";return h(V,{className:g("flex flex-col [&>*]:max-w-full",a?"p-12":"",di[t],l&&Sc[l],e),version:r,...s,children:w({...s,options:{...i,className:o}})})}));$c.childrenTypes=[];const Ic=e=>Mi(e)<10?"py-6 px-11":"py-12 px-32",Tc=p((({className:e,title:t,src:l,previewImg:a,...n})=>u(V,{className:g(Ic(e),e),...n,children:[h(Mt,{title:t,headlineVersion:"M"}),l?h("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:a?.src,style:{maxHeight:524},controls:!0,children:h("source",{src:l})}):null]}))),Bc={Accordion:D,AccordionItem:Z,ApplicationForm:kt,BenefitsBlock:St,Bonus:Dt,BonusBenefitsBlock:Pt,BusinessBlock:Xt,ButtonBlock:Gt,Calculator:jl,CardTransfer:Ol,Carousel:ea,CarouselCard:ra,CarouselCatalogCard:sa,CarouselInvestmentCard:ma,CarouselLinks:xa,CarouselProductCard:wa,CarouselProgramsCard:Ba,CarouselRecommendationCard:Ma,CarouselTariffsCard:Da,Catalog:Ga,ComparisonTable:mn,ContactsBlock:un,ErrorBlock:bn,ExchangeRateTile:On,Footer:mr,Gallery:Cr,GracePeriod:kr,Header:ci,Headline:Mt,HorizontalLayout:mi,ImgBlock:hi,InsuranceAmountBlock:bi,InvestmentInfo:wi,LinkDocs:_i,MiniGallery:Li,MobileAppTile:Ai,OfficeMap:cs,OfficeServicesBlock:ds,OtherProducts:hs,OtherProductsItem:gs,ParagraphBlock:bs,PictureText:Cs,Placeholder:Ts,ProductBlock:zs,ProductGallery:Os,ProductTile:Us,PromoTile:Xs,Recommendation:Ys,RichTextBlock:Ks,RollupItem:qs,SafeDepositRental:No,StepsBlock:Bo,SwipeListControlBlock:Mo,Tabs:Ko,TariffsTable:hc,TextBlock:bc,Tile:kc,VerticalLayout:$c,Video:Tc},Rc=["Header","Footer"],Vc=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function jc(e=B.inst,t=globalThis){const l=s(new Map);n((()=>e.eventBus.subscribe("intersection",(({block:e,intersection:t})=>{l.current&&l.current.set(e,t)}))),[e]),n((()=>{const a=((e,t=600)=>{let l;const a=(...n)=>{a.dispose(),l=setTimeout((()=>{e(...n)}),t)};return a.dispose=()=>{l&&clearTimeout(l)},a})((()=>{if(!(globalThis.scrollY>3*globalThis.innerHeight/4))return void e.reset();const t=function(e){const t=e.filter((([e])=>!Rc.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Jl(Vc)(t):[];return l}([...l.current||[]]);t?.anchor?e.replace(t.anchor):t||e.reset()}),100);return t.addEventListener("scroll",a),()=>{a.dispose(),t.removeEventListener("scroll",a)}}),[e,t])}const _c=m();const Lc=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Mc()}))),Mc=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},Dc=p((({className:e=""})=>{const t=function(e){const[t,l]=a(0);return n((()=>{(async()=>{const[t]=await _c.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await _c.like(e))}),[e]),dislike:r((async()=>{l(await _c.dislike(e))}),[e])}}(ge().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(Lc,{onClick:xe(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Lc,{onClick:xe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Ac=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:a,data:n={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:l,blockDecorator:a,parent:n};return jc(),u("section",{className:g("relative",r,t),"data-theme":c,children:[s?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:y(s?.header,{...d,slotName:"header"})}):null,u("div",{className:"container grid grid-cols-12 gap-1",children:[y(i,d),s?.footer?y(s?.footer,{...d,slotName:"footer"}):null]}),o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Dc,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Ac.childrenTypes=[],Ac.slots=()=>["header","footer"];e.Blocks=Bc,e.ContentPage=Ac,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))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=m,e.handlerDecorator=xe,e.joinList=vi,e.packageVersion="0.8.0",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=ue,e.useRouter=ge,Object.defineProperty(e,"__esModule",{value:!0})}));