@redneckz/wildless-cms-uni-blocks 0.14.567 → 0.14.568

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 (1199) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +219 -130
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  6. package/bundle/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  7. package/bundle/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  8. package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  9. package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -0
  10. package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +3 -0
  11. package/bundle/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  12. package/bundle/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  13. package/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  14. package/bundle/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  15. package/bundle/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  16. package/bundle/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  17. package/bundle/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  18. package/bundle/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  19. package/bundle/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  20. package/bundle/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  21. package/bundle/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  22. package/bundle/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  23. package/bundle/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  24. package/bundle/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  25. package/bundle/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  26. package/bundle/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  27. package/bundle/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  28. package/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  29. package/bundle/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  30. package/bundle/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  31. package/bundle/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  32. package/bundle/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  33. package/bundle/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  34. package/bundle/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  35. package/bundle/ui-kit/FormField/constants.d.ts +7 -0
  36. package/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  37. package/bundle/ui-kit/FormField/getField.d.ts +4 -0
  38. package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  39. package/bundle/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  40. package/bundle/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  41. package/bundle/ui-kit/FormField/isRenderField.d.ts +6 -0
  42. package/bundle/ui-kit/FormField/renderTitle.d.ts +2 -0
  43. package/dist/components/ApplicationForm/ApplicationForm.js +7 -8
  44. package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  45. package/dist/components/ApplicationForm/getFormatData.js +1 -1
  46. package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  47. package/dist/components/ApplicationForm/getInitialFormState.js +3 -3
  48. package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  49. package/dist/components/ApplicationForm/getPartnerComments.js +1 -1
  50. package/dist/components/ApplicationForm/getPartnerComments.js.map +1 -1
  51. package/dist/components/ApplicationForm/getRegionUrl.js +1 -1
  52. package/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
  53. package/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  54. package/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  55. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  56. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +52 -0
  57. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  58. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  59. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +3 -0
  60. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  61. package/dist/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  62. package/dist/components/ApplicationLeadForm/Footnote.js +9 -0
  63. package/dist/components/ApplicationLeadForm/Footnote.js.map +1 -0
  64. package/dist/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  65. package/dist/components/ApplicationLeadForm/getFormatData.js +13 -0
  66. package/dist/components/ApplicationLeadForm/getFormatData.js.map +1 -0
  67. package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  68. package/dist/components/ApplicationLeadForm/getInitialFormState.js +41 -0
  69. package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  70. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -0
  71. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +14 -0
  72. package/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  73. package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +3 -0
  74. package/dist/components/ApplicationLeadForm/renderSubmitButton.js +8 -0
  75. package/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  76. package/dist/components/Blocks.js +2 -0
  77. package/dist/components/Blocks.js.map +1 -1
  78. package/dist/components/Blocks.mobile.js +2 -0
  79. package/dist/components/Blocks.mobile.js.map +1 -1
  80. package/dist/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  81. package/dist/ui-kit/FormField/CustomFieldProps.js.map +1 -0
  82. package/dist/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  83. package/dist/ui-kit/FormField/Fields/AcquiringField.js +29 -0
  84. package/dist/ui-kit/FormField/Fields/AcquiringField.js.map +1 -0
  85. package/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  86. package/dist/ui-kit/FormField/Fields/AddressBranchField.js +28 -0
  87. package/dist/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -0
  88. package/dist/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  89. package/dist/ui-kit/FormField/Fields/AmountField.js +10 -0
  90. package/dist/ui-kit/FormField/Fields/AmountField.js.map +1 -0
  91. package/dist/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  92. package/dist/ui-kit/FormField/Fields/CommentField.js +9 -0
  93. package/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -0
  94. package/dist/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  95. package/dist/ui-kit/FormField/Fields/FeedbackMethodField.js +10 -0
  96. package/dist/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -0
  97. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  98. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +19 -0
  99. package/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -0
  100. package/dist/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  101. package/dist/ui-kit/FormField/Fields/IsClientField.js +7 -0
  102. package/dist/ui-kit/FormField/Fields/IsClientField.js.map +1 -0
  103. package/dist/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  104. package/dist/ui-kit/FormField/Fields/LocalitiesField.js +24 -0
  105. package/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -0
  106. package/dist/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  107. package/dist/ui-kit/FormField/Fields/MiddleNameField.js +7 -0
  108. package/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -0
  109. package/dist/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  110. package/dist/ui-kit/FormField/Fields/NameField.js +12 -0
  111. package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -0
  112. package/dist/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  113. package/dist/ui-kit/FormField/Fields/OnlineCheckoutField.js +8 -0
  114. package/dist/ui-kit/FormField/Fields/OnlineCheckoutField.js.map +1 -0
  115. package/dist/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  116. package/dist/ui-kit/FormField/Fields/PartnerCommentsField.js +12 -0
  117. package/dist/ui-kit/FormField/Fields/PartnerCommentsField.js.map +1 -0
  118. package/dist/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  119. package/dist/ui-kit/FormField/Fields/PhoneField.js +9 -0
  120. package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -0
  121. package/dist/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  122. package/dist/ui-kit/FormField/Fields/PosTerminalField.js +8 -0
  123. package/dist/ui-kit/FormField/Fields/PosTerminalField.js.map +1 -0
  124. package/dist/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  125. package/dist/ui-kit/FormField/Fields/ProductField.js +10 -0
  126. package/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -0
  127. package/dist/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  128. package/dist/ui-kit/FormField/Fields/RegionField.js +14 -0
  129. package/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -0
  130. package/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  131. package/dist/ui-kit/FormField/Fields/RegionPremiumField.js +18 -0
  132. package/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +1 -0
  133. package/dist/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  134. package/dist/ui-kit/FormField/Fields/SecondaryPhoneField.js +14 -0
  135. package/dist/ui-kit/FormField/Fields/SecondaryPhoneField.js.map +1 -0
  136. package/dist/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  137. package/dist/ui-kit/FormField/Fields/ServiceDirectionField.js +10 -0
  138. package/dist/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -0
  139. package/dist/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  140. package/dist/ui-kit/FormField/Fields/SurnameField.js +9 -0
  141. package/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -0
  142. package/dist/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  143. package/dist/ui-kit/FormField/Fields/TermField.js +10 -0
  144. package/dist/ui-kit/FormField/Fields/TermField.js.map +1 -0
  145. package/dist/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  146. package/dist/ui-kit/FormField/Fields/UltraPremiumField.js +10 -0
  147. package/dist/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -0
  148. package/dist/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  149. package/dist/ui-kit/FormField/Fields/VedField.js +23 -0
  150. package/dist/ui-kit/FormField/Fields/VedField.js.map +1 -0
  151. package/dist/ui-kit/FormField/constants.d.ts +7 -0
  152. package/dist/ui-kit/FormField/constants.js.map +1 -0
  153. package/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  154. package/dist/ui-kit/FormField/getConsentDataProcessing.js +5 -0
  155. package/dist/ui-kit/FormField/getConsentDataProcessing.js.map +1 -0
  156. package/dist/ui-kit/FormField/getField.d.ts +4 -0
  157. package/dist/ui-kit/FormField/getField.js +76 -0
  158. package/dist/ui-kit/FormField/getField.js.map +1 -0
  159. package/dist/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  160. package/dist/ui-kit/FormField/getNamesFromInput.js.map +1 -0
  161. package/dist/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  162. package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -0
  163. package/dist/ui-kit/FormField/getValidation.js.map +1 -0
  164. package/dist/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  165. package/dist/ui-kit/FormField/inputColumnStyle.js +5 -0
  166. package/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -0
  167. package/dist/ui-kit/FormField/isRenderField.d.ts +6 -0
  168. package/dist/ui-kit/FormField/isRenderField.js.map +1 -0
  169. package/dist/ui-kit/FormField/renderTitle.d.ts +2 -0
  170. package/dist/ui-kit/FormField/renderTitle.js +7 -0
  171. package/dist/ui-kit/FormField/renderTitle.js.map +1 -0
  172. package/dist/ui-kit/FormField/validators.js.map +1 -0
  173. package/lib/common.css +1 -1
  174. package/lib/components/ApplicationForm/ApplicationForm.js +6 -7
  175. package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  176. package/lib/components/ApplicationForm/getFormatData.js +1 -1
  177. package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  178. package/lib/components/ApplicationForm/getInitialFormState.js +3 -3
  179. package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  180. package/lib/components/ApplicationForm/getPartnerComments.js +1 -1
  181. package/lib/components/ApplicationForm/getPartnerComments.js.map +1 -1
  182. package/lib/components/ApplicationForm/getRegionUrl.js +1 -1
  183. package/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
  184. package/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  185. package/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  186. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  187. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +6 -0
  188. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +6 -0
  189. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +50 -0
  190. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  191. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  192. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +3 -0
  193. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  194. package/lib/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  195. package/lib/components/ApplicationLeadForm/Footnote.js +7 -0
  196. package/lib/components/ApplicationLeadForm/Footnote.js.map +1 -0
  197. package/lib/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  198. package/lib/components/ApplicationLeadForm/getFormatData.js +10 -0
  199. package/lib/components/ApplicationLeadForm/getFormatData.js.map +1 -0
  200. package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  201. package/lib/components/ApplicationLeadForm/getInitialFormState.js +38 -0
  202. package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  203. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +4 -0
  204. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +11 -0
  205. package/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  206. package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +2 -0
  207. package/lib/components/ApplicationLeadForm/renderSubmitButton.js +5 -0
  208. package/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  209. package/lib/components/Blocks.js +2 -0
  210. package/lib/components/Blocks.js.map +1 -1
  211. package/lib/components/Blocks.mobile.js +2 -0
  212. package/lib/components/Blocks.mobile.js.map +1 -1
  213. package/lib/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  214. package/lib/ui-kit/FormField/CustomFieldProps.js.map +1 -0
  215. package/lib/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  216. package/lib/ui-kit/FormField/Fields/AcquiringField.js +26 -0
  217. package/lib/ui-kit/FormField/Fields/AcquiringField.js.map +1 -0
  218. package/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  219. package/lib/ui-kit/FormField/Fields/AddressBranchField.js +26 -0
  220. package/lib/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -0
  221. package/lib/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  222. package/lib/ui-kit/FormField/Fields/AmountField.js +8 -0
  223. package/lib/ui-kit/FormField/Fields/AmountField.js.map +1 -0
  224. package/lib/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  225. package/lib/ui-kit/FormField/Fields/CommentField.js +7 -0
  226. package/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -0
  227. package/lib/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  228. package/lib/ui-kit/FormField/Fields/FeedbackMethodField.js +8 -0
  229. package/lib/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -0
  230. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  231. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +17 -0
  232. package/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -0
  233. package/lib/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  234. package/lib/ui-kit/FormField/Fields/IsClientField.js +5 -0
  235. package/lib/ui-kit/FormField/Fields/IsClientField.js.map +1 -0
  236. package/lib/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  237. package/lib/ui-kit/FormField/Fields/LocalitiesField.js +22 -0
  238. package/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -0
  239. package/lib/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  240. package/lib/ui-kit/FormField/Fields/MiddleNameField.js +5 -0
  241. package/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -0
  242. package/lib/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  243. package/lib/ui-kit/FormField/Fields/NameField.js +10 -0
  244. package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -0
  245. package/lib/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  246. package/lib/ui-kit/FormField/Fields/OnlineCheckoutField.js +6 -0
  247. package/lib/ui-kit/FormField/Fields/OnlineCheckoutField.js.map +1 -0
  248. package/lib/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  249. package/lib/ui-kit/FormField/Fields/PartnerCommentsField.js +10 -0
  250. package/lib/ui-kit/FormField/Fields/PartnerCommentsField.js.map +1 -0
  251. package/lib/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  252. package/lib/ui-kit/FormField/Fields/PhoneField.js +7 -0
  253. package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -0
  254. package/lib/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  255. package/lib/ui-kit/FormField/Fields/PosTerminalField.js +6 -0
  256. package/lib/ui-kit/FormField/Fields/PosTerminalField.js.map +1 -0
  257. package/lib/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  258. package/lib/ui-kit/FormField/Fields/ProductField.js +8 -0
  259. package/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -0
  260. package/lib/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  261. package/lib/ui-kit/FormField/Fields/RegionField.js +12 -0
  262. package/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -0
  263. package/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  264. package/lib/ui-kit/FormField/Fields/RegionPremiumField.js +16 -0
  265. package/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +1 -0
  266. package/lib/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  267. package/lib/ui-kit/FormField/Fields/SecondaryPhoneField.js +12 -0
  268. package/lib/ui-kit/FormField/Fields/SecondaryPhoneField.js.map +1 -0
  269. package/lib/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  270. package/lib/ui-kit/FormField/Fields/ServiceDirectionField.js +8 -0
  271. package/lib/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -0
  272. package/lib/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  273. package/lib/ui-kit/FormField/Fields/SurnameField.js +7 -0
  274. package/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -0
  275. package/lib/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  276. package/lib/ui-kit/FormField/Fields/TermField.js +8 -0
  277. package/lib/ui-kit/FormField/Fields/TermField.js.map +1 -0
  278. package/lib/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  279. package/lib/ui-kit/FormField/Fields/UltraPremiumField.js +8 -0
  280. package/lib/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -0
  281. package/lib/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  282. package/lib/ui-kit/FormField/Fields/VedField.js +21 -0
  283. package/lib/ui-kit/FormField/Fields/VedField.js.map +1 -0
  284. package/lib/ui-kit/FormField/constants.d.ts +7 -0
  285. package/lib/ui-kit/FormField/constants.js.map +1 -0
  286. package/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  287. package/lib/ui-kit/FormField/getConsentDataProcessing.js +2 -0
  288. package/lib/ui-kit/FormField/getConsentDataProcessing.js.map +1 -0
  289. package/lib/ui-kit/FormField/getField.d.ts +3 -0
  290. package/lib/ui-kit/FormField/getField.js +73 -0
  291. package/lib/ui-kit/FormField/getField.js.map +1 -0
  292. package/lib/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  293. package/lib/ui-kit/FormField/getNamesFromInput.js.map +1 -0
  294. package/lib/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  295. package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -0
  296. package/lib/ui-kit/FormField/getValidation.js.map +1 -0
  297. package/lib/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  298. package/lib/ui-kit/FormField/inputColumnStyle.js +2 -0
  299. package/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -0
  300. package/lib/ui-kit/FormField/isRenderField.d.ts +6 -0
  301. package/lib/ui-kit/FormField/isRenderField.js.map +1 -0
  302. package/lib/ui-kit/FormField/renderTitle.d.ts +1 -0
  303. package/lib/ui-kit/FormField/renderTitle.js +4 -0
  304. package/lib/ui-kit/FormField/renderTitle.js.map +1 -0
  305. package/lib/ui-kit/FormField/validators.js.map +1 -0
  306. package/mobile/bundle/bundle.umd.js +219 -130
  307. package/mobile/bundle/bundle.umd.min.js +1 -1
  308. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  309. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  310. package/mobile/bundle/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  311. package/mobile/bundle/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  312. package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  313. package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -0
  314. package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +3 -0
  315. package/mobile/bundle/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  316. package/mobile/bundle/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  317. package/mobile/bundle/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  318. package/mobile/bundle/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  319. package/mobile/bundle/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  320. package/mobile/bundle/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  321. package/mobile/bundle/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  322. package/mobile/bundle/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  323. package/mobile/bundle/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  324. package/mobile/bundle/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  325. package/mobile/bundle/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  326. package/mobile/bundle/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  327. package/mobile/bundle/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  328. package/mobile/bundle/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  329. package/mobile/bundle/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  330. package/mobile/bundle/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  331. package/mobile/bundle/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  332. package/mobile/bundle/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  333. package/mobile/bundle/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  334. package/mobile/bundle/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  335. package/mobile/bundle/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  336. package/mobile/bundle/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  337. package/mobile/bundle/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  338. package/mobile/bundle/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  339. package/mobile/bundle/ui-kit/FormField/constants.d.ts +7 -0
  340. package/mobile/bundle/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  341. package/mobile/bundle/ui-kit/FormField/getField.d.ts +4 -0
  342. package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  343. package/mobile/bundle/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  344. package/mobile/bundle/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  345. package/mobile/bundle/ui-kit/FormField/isRenderField.d.ts +6 -0
  346. package/mobile/bundle/ui-kit/FormField/renderTitle.d.ts +2 -0
  347. package/mobile/dist/components/ApplicationForm/ApplicationForm.js +7 -8
  348. package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
  349. package/mobile/dist/components/ApplicationForm/getFormatData.js +1 -1
  350. package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
  351. package/mobile/dist/components/ApplicationForm/getInitialFormState.js +3 -3
  352. package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
  353. package/mobile/dist/components/ApplicationForm/getPartnerComments.js +1 -1
  354. package/mobile/dist/components/ApplicationForm/getPartnerComments.js.map +1 -1
  355. package/mobile/dist/components/ApplicationForm/getRegionUrl.js +1 -1
  356. package/mobile/dist/components/ApplicationForm/getRegionUrl.js.map +1 -1
  357. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  358. package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  359. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  360. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +52 -0
  361. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  362. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  363. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +3 -0
  364. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  365. package/mobile/dist/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  366. package/mobile/dist/components/ApplicationLeadForm/Footnote.js +9 -0
  367. package/mobile/dist/components/ApplicationLeadForm/Footnote.js.map +1 -0
  368. package/mobile/dist/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  369. package/mobile/dist/components/ApplicationLeadForm/getFormatData.js +13 -0
  370. package/mobile/dist/components/ApplicationLeadForm/getFormatData.js.map +1 -0
  371. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  372. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +41 -0
  373. package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  374. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -0
  375. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js +14 -0
  376. package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  377. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +3 -0
  378. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js +8 -0
  379. package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  380. package/mobile/dist/components/Blocks.js +2 -0
  381. package/mobile/dist/components/Blocks.js.map +1 -1
  382. package/mobile/dist/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  383. package/mobile/dist/ui-kit/FormField/CustomFieldProps.js.map +1 -0
  384. package/mobile/dist/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  385. package/mobile/dist/ui-kit/FormField/Fields/AcquiringField.js +29 -0
  386. package/mobile/dist/ui-kit/FormField/Fields/AcquiringField.js.map +1 -0
  387. package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  388. package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.js +28 -0
  389. package/mobile/dist/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -0
  390. package/mobile/dist/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  391. package/mobile/dist/ui-kit/FormField/Fields/AmountField.js +10 -0
  392. package/mobile/dist/ui-kit/FormField/Fields/AmountField.js.map +1 -0
  393. package/mobile/dist/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  394. package/mobile/dist/ui-kit/FormField/Fields/CommentField.js +9 -0
  395. package/mobile/dist/ui-kit/FormField/Fields/CommentField.js.map +1 -0
  396. package/mobile/dist/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  397. package/mobile/dist/ui-kit/FormField/Fields/FeedbackMethodField.js +10 -0
  398. package/mobile/dist/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -0
  399. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  400. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js +19 -0
  401. package/mobile/dist/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -0
  402. package/mobile/dist/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  403. package/mobile/dist/ui-kit/FormField/Fields/IsClientField.js +7 -0
  404. package/mobile/dist/ui-kit/FormField/Fields/IsClientField.js.map +1 -0
  405. package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  406. package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js +24 -0
  407. package/mobile/dist/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -0
  408. package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  409. package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js +7 -0
  410. package/mobile/dist/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -0
  411. package/mobile/dist/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  412. package/mobile/dist/ui-kit/FormField/Fields/NameField.js +12 -0
  413. package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -0
  414. package/mobile/dist/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  415. package/mobile/dist/ui-kit/FormField/Fields/OnlineCheckoutField.js +8 -0
  416. package/mobile/dist/ui-kit/FormField/Fields/OnlineCheckoutField.js.map +1 -0
  417. package/mobile/dist/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  418. package/mobile/dist/ui-kit/FormField/Fields/PartnerCommentsField.js +12 -0
  419. package/mobile/dist/ui-kit/FormField/Fields/PartnerCommentsField.js.map +1 -0
  420. package/mobile/dist/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  421. package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +9 -0
  422. package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -0
  423. package/mobile/dist/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  424. package/mobile/dist/ui-kit/FormField/Fields/PosTerminalField.js +8 -0
  425. package/mobile/dist/ui-kit/FormField/Fields/PosTerminalField.js.map +1 -0
  426. package/mobile/dist/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  427. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js +10 -0
  428. package/mobile/dist/ui-kit/FormField/Fields/ProductField.js.map +1 -0
  429. package/mobile/dist/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  430. package/mobile/dist/ui-kit/FormField/Fields/RegionField.js +14 -0
  431. package/mobile/dist/ui-kit/FormField/Fields/RegionField.js.map +1 -0
  432. package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  433. package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js +18 -0
  434. package/mobile/dist/ui-kit/FormField/Fields/RegionPremiumField.js.map +1 -0
  435. package/mobile/dist/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  436. package/mobile/dist/ui-kit/FormField/Fields/SecondaryPhoneField.js +14 -0
  437. package/mobile/dist/ui-kit/FormField/Fields/SecondaryPhoneField.js.map +1 -0
  438. package/mobile/dist/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  439. package/mobile/dist/ui-kit/FormField/Fields/ServiceDirectionField.js +10 -0
  440. package/mobile/dist/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -0
  441. package/mobile/dist/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  442. package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js +9 -0
  443. package/mobile/dist/ui-kit/FormField/Fields/SurnameField.js.map +1 -0
  444. package/mobile/dist/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  445. package/mobile/dist/ui-kit/FormField/Fields/TermField.js +10 -0
  446. package/mobile/dist/ui-kit/FormField/Fields/TermField.js.map +1 -0
  447. package/mobile/dist/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  448. package/mobile/dist/ui-kit/FormField/Fields/UltraPremiumField.js +10 -0
  449. package/mobile/dist/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -0
  450. package/mobile/dist/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  451. package/mobile/dist/ui-kit/FormField/Fields/VedField.js +23 -0
  452. package/mobile/dist/ui-kit/FormField/Fields/VedField.js.map +1 -0
  453. package/mobile/dist/ui-kit/FormField/constants.d.ts +7 -0
  454. package/mobile/dist/ui-kit/FormField/constants.js.map +1 -0
  455. package/mobile/dist/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  456. package/mobile/dist/ui-kit/FormField/getConsentDataProcessing.js +5 -0
  457. package/mobile/dist/ui-kit/FormField/getConsentDataProcessing.js.map +1 -0
  458. package/mobile/dist/ui-kit/FormField/getField.d.ts +4 -0
  459. package/mobile/dist/ui-kit/FormField/getField.js +76 -0
  460. package/mobile/dist/ui-kit/FormField/getField.js.map +1 -0
  461. package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  462. package/mobile/dist/ui-kit/FormField/getNamesFromInput.js.map +1 -0
  463. package/mobile/dist/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  464. package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -0
  465. package/mobile/dist/ui-kit/FormField/getValidation.js.map +1 -0
  466. package/mobile/dist/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  467. package/mobile/dist/ui-kit/FormField/inputColumnStyle.js +5 -0
  468. package/mobile/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -0
  469. package/mobile/dist/ui-kit/FormField/isRenderField.d.ts +6 -0
  470. package/mobile/dist/ui-kit/FormField/isRenderField.js.map +1 -0
  471. package/mobile/dist/ui-kit/FormField/renderTitle.d.ts +2 -0
  472. package/mobile/dist/ui-kit/FormField/renderTitle.js +7 -0
  473. package/mobile/dist/ui-kit/FormField/renderTitle.js.map +1 -0
  474. package/mobile/dist/ui-kit/FormField/validators.js.map +1 -0
  475. package/mobile/lib/common.css +1 -1
  476. package/mobile/lib/components/ApplicationForm/ApplicationForm.js +6 -7
  477. package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
  478. package/mobile/lib/components/ApplicationForm/getFormatData.js +1 -1
  479. package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
  480. package/mobile/lib/components/ApplicationForm/getInitialFormState.js +3 -3
  481. package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
  482. package/mobile/lib/components/ApplicationForm/getPartnerComments.js +1 -1
  483. package/mobile/lib/components/ApplicationForm/getPartnerComments.js.map +1 -1
  484. package/mobile/lib/components/ApplicationForm/getRegionUrl.js +1 -1
  485. package/mobile/lib/components/ApplicationForm/getRegionUrl.js.map +1 -1
  486. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js +1 -1
  487. package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.js.map +1 -1
  488. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +6 -0
  489. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +50 -0
  490. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -0
  491. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +93 -0
  492. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +3 -0
  493. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -0
  494. package/mobile/lib/components/ApplicationLeadForm/Footnote.d.ts +7 -0
  495. package/mobile/lib/components/ApplicationLeadForm/Footnote.js +7 -0
  496. package/mobile/lib/components/ApplicationLeadForm/Footnote.js.map +1 -0
  497. package/mobile/lib/components/ApplicationLeadForm/getFormatData.d.ts +2 -0
  498. package/mobile/lib/components/ApplicationLeadForm/getFormatData.js +10 -0
  499. package/mobile/lib/components/ApplicationLeadForm/getFormatData.js.map +1 -0
  500. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +24 -0
  501. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +38 -0
  502. package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -0
  503. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +5 -0
  504. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js +11 -0
  505. package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.js.map +1 -0
  506. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +3 -0
  507. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js +5 -0
  508. package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.js.map +1 -0
  509. package/mobile/lib/components/Blocks.js +2 -0
  510. package/mobile/lib/components/Blocks.js.map +1 -1
  511. package/mobile/lib/ui-kit/FormField/CustomFieldProps.d.ts +7 -0
  512. package/mobile/lib/ui-kit/FormField/CustomFieldProps.js.map +1 -0
  513. package/mobile/lib/ui-kit/FormField/Fields/AcquiringField.d.ts +5 -0
  514. package/mobile/lib/ui-kit/FormField/Fields/AcquiringField.js +26 -0
  515. package/mobile/lib/ui-kit/FormField/Fields/AcquiringField.js.map +1 -0
  516. package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.d.ts +6 -0
  517. package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.js +26 -0
  518. package/mobile/lib/ui-kit/FormField/Fields/AddressBranchField.js.map +1 -0
  519. package/mobile/lib/ui-kit/FormField/Fields/AmountField.d.ts +2 -0
  520. package/mobile/lib/ui-kit/FormField/Fields/AmountField.js +8 -0
  521. package/mobile/lib/ui-kit/FormField/Fields/AmountField.js.map +1 -0
  522. package/mobile/lib/ui-kit/FormField/Fields/CommentField.d.ts +2 -0
  523. package/mobile/lib/ui-kit/FormField/Fields/CommentField.js +7 -0
  524. package/mobile/lib/ui-kit/FormField/Fields/CommentField.js.map +1 -0
  525. package/mobile/lib/ui-kit/FormField/Fields/FeedbackMethodField.d.ts +2 -0
  526. package/mobile/lib/ui-kit/FormField/Fields/FeedbackMethodField.js +8 -0
  527. package/mobile/lib/ui-kit/FormField/Fields/FeedbackMethodField.js.map +1 -0
  528. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.d.ts +2 -0
  529. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js +17 -0
  530. package/mobile/lib/ui-kit/FormField/Fields/FeedbackTypeField.js.map +1 -0
  531. package/mobile/lib/ui-kit/FormField/Fields/IsClientField.d.ts +2 -0
  532. package/mobile/lib/ui-kit/FormField/Fields/IsClientField.js +5 -0
  533. package/mobile/lib/ui-kit/FormField/Fields/IsClientField.js.map +1 -0
  534. package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.d.ts +2 -0
  535. package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js +22 -0
  536. package/mobile/lib/ui-kit/FormField/Fields/LocalitiesField.js.map +1 -0
  537. package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.d.ts +2 -0
  538. package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js +5 -0
  539. package/mobile/lib/ui-kit/FormField/Fields/MiddleNameField.js.map +1 -0
  540. package/mobile/lib/ui-kit/FormField/Fields/NameField.d.ts +2 -0
  541. package/mobile/lib/ui-kit/FormField/Fields/NameField.js +10 -0
  542. package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -0
  543. package/mobile/lib/ui-kit/FormField/Fields/OnlineCheckoutField.d.ts +2 -0
  544. package/mobile/lib/ui-kit/FormField/Fields/OnlineCheckoutField.js +6 -0
  545. package/mobile/lib/ui-kit/FormField/Fields/OnlineCheckoutField.js.map +1 -0
  546. package/mobile/lib/ui-kit/FormField/Fields/PartnerCommentsField.d.ts +2 -0
  547. package/mobile/lib/ui-kit/FormField/Fields/PartnerCommentsField.js +10 -0
  548. package/mobile/lib/ui-kit/FormField/Fields/PartnerCommentsField.js.map +1 -0
  549. package/mobile/lib/ui-kit/FormField/Fields/PhoneField.d.ts +2 -0
  550. package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +7 -0
  551. package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -0
  552. package/mobile/lib/ui-kit/FormField/Fields/PosTerminalField.d.ts +2 -0
  553. package/mobile/lib/ui-kit/FormField/Fields/PosTerminalField.js +6 -0
  554. package/mobile/lib/ui-kit/FormField/Fields/PosTerminalField.js.map +1 -0
  555. package/mobile/lib/ui-kit/FormField/Fields/ProductField.d.ts +2 -0
  556. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js +8 -0
  557. package/mobile/lib/ui-kit/FormField/Fields/ProductField.js.map +1 -0
  558. package/mobile/lib/ui-kit/FormField/Fields/RegionField.d.ts +2 -0
  559. package/mobile/lib/ui-kit/FormField/Fields/RegionField.js +12 -0
  560. package/mobile/lib/ui-kit/FormField/Fields/RegionField.js.map +1 -0
  561. package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.d.ts +2 -0
  562. package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js +16 -0
  563. package/mobile/lib/ui-kit/FormField/Fields/RegionPremiumField.js.map +1 -0
  564. package/mobile/lib/ui-kit/FormField/Fields/SecondaryPhoneField.d.ts +2 -0
  565. package/mobile/lib/ui-kit/FormField/Fields/SecondaryPhoneField.js +12 -0
  566. package/mobile/lib/ui-kit/FormField/Fields/SecondaryPhoneField.js.map +1 -0
  567. package/mobile/lib/ui-kit/FormField/Fields/ServiceDirectionField.d.ts +2 -0
  568. package/mobile/lib/ui-kit/FormField/Fields/ServiceDirectionField.js +8 -0
  569. package/mobile/lib/ui-kit/FormField/Fields/ServiceDirectionField.js.map +1 -0
  570. package/mobile/lib/ui-kit/FormField/Fields/SurnameField.d.ts +2 -0
  571. package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js +7 -0
  572. package/mobile/lib/ui-kit/FormField/Fields/SurnameField.js.map +1 -0
  573. package/mobile/lib/ui-kit/FormField/Fields/TermField.d.ts +2 -0
  574. package/mobile/lib/ui-kit/FormField/Fields/TermField.js +8 -0
  575. package/mobile/lib/ui-kit/FormField/Fields/TermField.js.map +1 -0
  576. package/mobile/lib/ui-kit/FormField/Fields/UltraPremiumField.d.ts +2 -0
  577. package/mobile/lib/ui-kit/FormField/Fields/UltraPremiumField.js +8 -0
  578. package/mobile/lib/ui-kit/FormField/Fields/UltraPremiumField.js.map +1 -0
  579. package/mobile/lib/ui-kit/FormField/Fields/VedField.d.ts +3 -0
  580. package/mobile/lib/ui-kit/FormField/Fields/VedField.js +21 -0
  581. package/mobile/lib/ui-kit/FormField/Fields/VedField.js.map +1 -0
  582. package/mobile/lib/ui-kit/FormField/constants.d.ts +7 -0
  583. package/mobile/lib/ui-kit/FormField/constants.js.map +1 -0
  584. package/mobile/lib/ui-kit/FormField/getConsentDataProcessing.d.ts +2 -0
  585. package/mobile/lib/ui-kit/FormField/getConsentDataProcessing.js +2 -0
  586. package/mobile/lib/ui-kit/FormField/getConsentDataProcessing.js.map +1 -0
  587. package/mobile/lib/ui-kit/FormField/getField.d.ts +4 -0
  588. package/mobile/lib/ui-kit/FormField/getField.js +73 -0
  589. package/mobile/lib/ui-kit/FormField/getField.js.map +1 -0
  590. package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +2 -0
  591. package/mobile/lib/ui-kit/FormField/getNamesFromInput.js.map +1 -0
  592. package/mobile/lib/ui-kit/FormField/getObjectValidator.d.ts +4 -0
  593. package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -0
  594. package/mobile/lib/ui-kit/FormField/getValidation.js.map +1 -0
  595. package/mobile/lib/ui-kit/FormField/inputColumnStyle.d.ts +2 -0
  596. package/mobile/lib/ui-kit/FormField/inputColumnStyle.js +2 -0
  597. package/mobile/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -0
  598. package/mobile/lib/ui-kit/FormField/isRenderField.d.ts +6 -0
  599. package/mobile/lib/ui-kit/FormField/isRenderField.js.map +1 -0
  600. package/mobile/lib/ui-kit/FormField/renderTitle.d.ts +2 -0
  601. package/mobile/lib/ui-kit/FormField/renderTitle.js +4 -0
  602. package/mobile/lib/ui-kit/FormField/renderTitle.js.map +1 -0
  603. package/mobile/lib/ui-kit/FormField/validators.js.map +1 -0
  604. package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +6 -21
  605. package/mobile/src/components/ApplicationForm/getFormatData.tsx +1 -1
  606. package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +8 -3
  607. package/mobile/src/components/ApplicationForm/getPartnerComments.tsx +1 -1
  608. package/mobile/src/components/ApplicationForm/getRegionUrl.tsx +1 -1
  609. package/mobile/src/components/ApplicationForm/renderAgreementSubmit.tsx +1 -1
  610. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +913 -0
  611. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +83 -0
  612. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +1 -0
  613. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +161 -0
  614. package/mobile/src/components/ApplicationLeadForm/Footnote.tsx +26 -0
  615. package/mobile/src/components/ApplicationLeadForm/getFormatData.tsx +17 -0
  616. package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +71 -0
  617. package/mobile/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +28 -0
  618. package/mobile/src/components/ApplicationLeadForm/renderSubmitButton.tsx +9 -0
  619. package/mobile/src/components/Blocks.ts +2 -0
  620. package/mobile/src/ui-kit/FormField/CustomFieldProps.ts +8 -0
  621. package/mobile/src/ui-kit/FormField/Fields/AcquiringField.tsx +36 -0
  622. package/mobile/src/ui-kit/FormField/Fields/AddressBranchField.tsx +39 -0
  623. package/mobile/src/ui-kit/FormField/Fields/AmountField.tsx +17 -0
  624. package/mobile/src/ui-kit/FormField/Fields/CommentField.tsx +14 -0
  625. package/mobile/src/ui-kit/FormField/Fields/FeedbackMethodField.tsx +14 -0
  626. package/mobile/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +25 -0
  627. package/mobile/src/ui-kit/FormField/Fields/IsClientField.tsx +7 -0
  628. package/mobile/src/ui-kit/FormField/Fields/LocalitiesField.tsx +34 -0
  629. package/mobile/src/ui-kit/FormField/Fields/MiddleNameField.tsx +7 -0
  630. package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +18 -0
  631. package/mobile/src/ui-kit/FormField/Fields/OnlineCheckoutField.tsx +10 -0
  632. package/mobile/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +19 -0
  633. package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +12 -0
  634. package/mobile/src/ui-kit/FormField/Fields/PosTerminalField.tsx +10 -0
  635. package/mobile/src/ui-kit/FormField/Fields/ProductField.tsx +15 -0
  636. package/mobile/src/ui-kit/FormField/Fields/RegionField.tsx +24 -0
  637. package/mobile/src/ui-kit/FormField/Fields/RegionPremiumField.tsx +29 -0
  638. package/mobile/src/ui-kit/FormField/Fields/SecondaryPhoneField.tsx +18 -0
  639. package/mobile/src/ui-kit/FormField/Fields/ServiceDirectionField.tsx +15 -0
  640. package/mobile/src/ui-kit/FormField/Fields/SurnameField.tsx +12 -0
  641. package/mobile/src/ui-kit/FormField/Fields/TermField.tsx +17 -0
  642. package/mobile/src/ui-kit/FormField/Fields/UltraPremiumField.tsx +13 -0
  643. package/mobile/src/ui-kit/FormField/Fields/VedField.tsx +54 -0
  644. package/mobile/src/ui-kit/FormField/constants.tsx +38 -0
  645. package/mobile/src/ui-kit/FormField/getConsentDataProcessing.tsx +4 -0
  646. package/mobile/src/ui-kit/FormField/getField.tsx +133 -0
  647. package/mobile/src/ui-kit/FormField/getNamesFromInput.tsx +4 -0
  648. package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +46 -0
  649. package/mobile/src/ui-kit/FormField/inputColumnStyle.tsx +4 -0
  650. package/mobile/src/ui-kit/FormField/isRenderField.tsx +15 -0
  651. package/mobile/src/ui-kit/FormField/renderTitle.tsx +8 -0
  652. package/package.json +1 -1
  653. package/src/components/ApplicationForm/ApplicationForm.tsx +6 -21
  654. package/src/components/ApplicationForm/getFormatData.tsx +1 -1
  655. package/src/components/ApplicationForm/getInitialFormState.tsx +8 -3
  656. package/src/components/ApplicationForm/getPartnerComments.tsx +1 -1
  657. package/src/components/ApplicationForm/getRegionUrl.tsx +1 -1
  658. package/src/components/ApplicationForm/renderAgreementSubmit.tsx +1 -1
  659. package/src/components/ApplicationLeadForm/ApplicationLeadForm.example.json +913 -0
  660. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.tsx +42 -0
  661. package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +44 -0
  662. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +83 -0
  663. package/src/components/ApplicationLeadForm/ApplicationLeadForm.ui.json +1 -0
  664. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +161 -0
  665. package/src/components/ApplicationLeadForm/Footnote.tsx +26 -0
  666. package/src/components/ApplicationLeadForm/getFormatData.tsx +17 -0
  667. package/src/components/ApplicationLeadForm/getInitialFormState.tsx +71 -0
  668. package/src/components/ApplicationLeadForm/renderAgreementSubmit.tsx +28 -0
  669. package/src/components/ApplicationLeadForm/renderSubmitButton.tsx +9 -0
  670. package/src/components/Blocks.mobile.ts +2 -0
  671. package/src/components/Blocks.ts +2 -0
  672. package/src/ui-kit/FormField/CustomFieldProps.ts +8 -0
  673. package/src/ui-kit/FormField/Fields/AcquiringField.tsx +36 -0
  674. package/src/ui-kit/FormField/Fields/AddressBranchField.tsx +39 -0
  675. package/src/ui-kit/FormField/Fields/AmountField.tsx +17 -0
  676. package/src/ui-kit/FormField/Fields/CommentField.tsx +14 -0
  677. package/src/ui-kit/FormField/Fields/FeedbackMethodField.tsx +14 -0
  678. package/src/ui-kit/FormField/Fields/FeedbackTypeField.tsx +25 -0
  679. package/src/ui-kit/FormField/Fields/IsClientField.tsx +7 -0
  680. package/src/ui-kit/FormField/Fields/LocalitiesField.tsx +34 -0
  681. package/src/ui-kit/FormField/Fields/MiddleNameField.tsx +7 -0
  682. package/src/ui-kit/FormField/Fields/NameField.tsx +18 -0
  683. package/src/ui-kit/FormField/Fields/OnlineCheckoutField.tsx +10 -0
  684. package/src/ui-kit/FormField/Fields/PartnerCommentsField.tsx +19 -0
  685. package/src/ui-kit/FormField/Fields/PhoneField.tsx +12 -0
  686. package/src/ui-kit/FormField/Fields/PosTerminalField.tsx +10 -0
  687. package/src/ui-kit/FormField/Fields/ProductField.tsx +15 -0
  688. package/src/ui-kit/FormField/Fields/RegionField.tsx +24 -0
  689. package/src/ui-kit/FormField/Fields/RegionPremiumField.tsx +29 -0
  690. package/src/ui-kit/FormField/Fields/SecondaryPhoneField.tsx +18 -0
  691. package/src/ui-kit/FormField/Fields/ServiceDirectionField.tsx +15 -0
  692. package/src/ui-kit/FormField/Fields/SurnameField.tsx +12 -0
  693. package/src/ui-kit/FormField/Fields/TermField.tsx +17 -0
  694. package/src/ui-kit/FormField/Fields/UltraPremiumField.tsx +13 -0
  695. package/src/ui-kit/FormField/Fields/VedField.tsx +54 -0
  696. package/src/ui-kit/FormField/constants.tsx +38 -0
  697. package/src/ui-kit/FormField/getConsentDataProcessing.tsx +4 -0
  698. package/src/ui-kit/FormField/getField.tsx +133 -0
  699. package/src/ui-kit/FormField/getNamesFromInput.tsx +4 -0
  700. package/src/ui-kit/FormField/getObjectValidator.tsx +46 -0
  701. package/src/ui-kit/FormField/inputColumnStyle.tsx +4 -0
  702. package/src/ui-kit/FormField/isRenderField.tsx +15 -0
  703. package/src/ui-kit/FormField/renderTitle.tsx +8 -0
  704. package/bundle/components/ApplicationForm/AcquiringField.d.ts +0 -5
  705. package/bundle/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  706. package/bundle/components/ApplicationForm/AmountField.d.ts +0 -2
  707. package/bundle/components/ApplicationForm/CommentField.d.ts +0 -2
  708. package/bundle/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  709. package/bundle/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  710. package/bundle/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  711. package/bundle/components/ApplicationForm/IsClientField.d.ts +0 -2
  712. package/bundle/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  713. package/bundle/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  714. package/bundle/components/ApplicationForm/NameField.d.ts +0 -2
  715. package/bundle/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  716. package/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  717. package/bundle/components/ApplicationForm/PhoneField.d.ts +0 -2
  718. package/bundle/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  719. package/bundle/components/ApplicationForm/ProductField.d.ts +0 -2
  720. package/bundle/components/ApplicationForm/RegionField.d.ts +0 -2
  721. package/bundle/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  722. package/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  723. package/bundle/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  724. package/bundle/components/ApplicationForm/SurnameField.d.ts +0 -2
  725. package/bundle/components/ApplicationForm/TermField.d.ts +0 -2
  726. package/bundle/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  727. package/bundle/components/ApplicationForm/VedField.d.ts +0 -3
  728. package/bundle/components/ApplicationForm/constants.d.ts +0 -7
  729. package/bundle/components/ApplicationForm/getField.d.ts +0 -4
  730. package/bundle/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  731. package/bundle/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  732. package/bundle/components/ApplicationForm/isRenderField.d.ts +0 -6
  733. package/dist/components/ApplicationForm/AcquiringField.d.ts +0 -5
  734. package/dist/components/ApplicationForm/AcquiringField.js +0 -29
  735. package/dist/components/ApplicationForm/AcquiringField.js.map +0 -1
  736. package/dist/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  737. package/dist/components/ApplicationForm/AddressBranchField.js +0 -28
  738. package/dist/components/ApplicationForm/AddressBranchField.js.map +0 -1
  739. package/dist/components/ApplicationForm/AmountField.d.ts +0 -2
  740. package/dist/components/ApplicationForm/AmountField.js +0 -10
  741. package/dist/components/ApplicationForm/AmountField.js.map +0 -1
  742. package/dist/components/ApplicationForm/CommentField.d.ts +0 -2
  743. package/dist/components/ApplicationForm/CommentField.js +0 -9
  744. package/dist/components/ApplicationForm/CommentField.js.map +0 -1
  745. package/dist/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  746. package/dist/components/ApplicationForm/CustomFieldProps.js.map +0 -1
  747. package/dist/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  748. package/dist/components/ApplicationForm/FeedbackMethodField.js +0 -10
  749. package/dist/components/ApplicationForm/FeedbackMethodField.js.map +0 -1
  750. package/dist/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  751. package/dist/components/ApplicationForm/FeedbackTypeField.js +0 -19
  752. package/dist/components/ApplicationForm/FeedbackTypeField.js.map +0 -1
  753. package/dist/components/ApplicationForm/IsClientField.d.ts +0 -2
  754. package/dist/components/ApplicationForm/IsClientField.js +0 -7
  755. package/dist/components/ApplicationForm/IsClientField.js.map +0 -1
  756. package/dist/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  757. package/dist/components/ApplicationForm/LocalitiesField.js +0 -24
  758. package/dist/components/ApplicationForm/LocalitiesField.js.map +0 -1
  759. package/dist/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  760. package/dist/components/ApplicationForm/MiddleNameField.js +0 -7
  761. package/dist/components/ApplicationForm/MiddleNameField.js.map +0 -1
  762. package/dist/components/ApplicationForm/NameField.d.ts +0 -2
  763. package/dist/components/ApplicationForm/NameField.js +0 -12
  764. package/dist/components/ApplicationForm/NameField.js.map +0 -1
  765. package/dist/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  766. package/dist/components/ApplicationForm/OnlineCheckoutField.js +0 -8
  767. package/dist/components/ApplicationForm/OnlineCheckoutField.js.map +0 -1
  768. package/dist/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  769. package/dist/components/ApplicationForm/PartnerCommentsField.js +0 -12
  770. package/dist/components/ApplicationForm/PartnerCommentsField.js.map +0 -1
  771. package/dist/components/ApplicationForm/PhoneField.d.ts +0 -2
  772. package/dist/components/ApplicationForm/PhoneField.js +0 -9
  773. package/dist/components/ApplicationForm/PhoneField.js.map +0 -1
  774. package/dist/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  775. package/dist/components/ApplicationForm/PosTerminalField.js +0 -8
  776. package/dist/components/ApplicationForm/PosTerminalField.js.map +0 -1
  777. package/dist/components/ApplicationForm/ProductField.d.ts +0 -2
  778. package/dist/components/ApplicationForm/ProductField.js +0 -10
  779. package/dist/components/ApplicationForm/ProductField.js.map +0 -1
  780. package/dist/components/ApplicationForm/RegionField.d.ts +0 -2
  781. package/dist/components/ApplicationForm/RegionField.js +0 -14
  782. package/dist/components/ApplicationForm/RegionField.js.map +0 -1
  783. package/dist/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  784. package/dist/components/ApplicationForm/RegionPremiumField.js +0 -18
  785. package/dist/components/ApplicationForm/RegionPremiumField.js.map +0 -1
  786. package/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  787. package/dist/components/ApplicationForm/SecondaryPhoneField.js +0 -14
  788. package/dist/components/ApplicationForm/SecondaryPhoneField.js.map +0 -1
  789. package/dist/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  790. package/dist/components/ApplicationForm/ServiceDirectionField.js +0 -10
  791. package/dist/components/ApplicationForm/ServiceDirectionField.js.map +0 -1
  792. package/dist/components/ApplicationForm/SurnameField.d.ts +0 -2
  793. package/dist/components/ApplicationForm/SurnameField.js +0 -9
  794. package/dist/components/ApplicationForm/SurnameField.js.map +0 -1
  795. package/dist/components/ApplicationForm/TermField.d.ts +0 -2
  796. package/dist/components/ApplicationForm/TermField.js +0 -10
  797. package/dist/components/ApplicationForm/TermField.js.map +0 -1
  798. package/dist/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  799. package/dist/components/ApplicationForm/UltraPremiumField.js +0 -10
  800. package/dist/components/ApplicationForm/UltraPremiumField.js.map +0 -1
  801. package/dist/components/ApplicationForm/VedField.d.ts +0 -3
  802. package/dist/components/ApplicationForm/VedField.js +0 -23
  803. package/dist/components/ApplicationForm/VedField.js.map +0 -1
  804. package/dist/components/ApplicationForm/constants.d.ts +0 -7
  805. package/dist/components/ApplicationForm/constants.js.map +0 -1
  806. package/dist/components/ApplicationForm/getField.d.ts +0 -4
  807. package/dist/components/ApplicationForm/getField.js +0 -76
  808. package/dist/components/ApplicationForm/getField.js.map +0 -1
  809. package/dist/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  810. package/dist/components/ApplicationForm/getNamesFromInput.js.map +0 -1
  811. package/dist/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  812. package/dist/components/ApplicationForm/getObjectValidator.js.map +0 -1
  813. package/dist/components/ApplicationForm/getValidation.js.map +0 -1
  814. package/dist/components/ApplicationForm/isRenderField.d.ts +0 -6
  815. package/dist/components/ApplicationForm/isRenderField.js.map +0 -1
  816. package/dist/components/ApplicationForm/validators.js.map +0 -1
  817. package/lib/components/ApplicationForm/AcquiringField.d.ts +0 -5
  818. package/lib/components/ApplicationForm/AcquiringField.js +0 -26
  819. package/lib/components/ApplicationForm/AcquiringField.js.map +0 -1
  820. package/lib/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  821. package/lib/components/ApplicationForm/AddressBranchField.js +0 -26
  822. package/lib/components/ApplicationForm/AddressBranchField.js.map +0 -1
  823. package/lib/components/ApplicationForm/AmountField.d.ts +0 -2
  824. package/lib/components/ApplicationForm/AmountField.js +0 -8
  825. package/lib/components/ApplicationForm/AmountField.js.map +0 -1
  826. package/lib/components/ApplicationForm/CommentField.d.ts +0 -2
  827. package/lib/components/ApplicationForm/CommentField.js +0 -7
  828. package/lib/components/ApplicationForm/CommentField.js.map +0 -1
  829. package/lib/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  830. package/lib/components/ApplicationForm/CustomFieldProps.js.map +0 -1
  831. package/lib/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  832. package/lib/components/ApplicationForm/FeedbackMethodField.js +0 -8
  833. package/lib/components/ApplicationForm/FeedbackMethodField.js.map +0 -1
  834. package/lib/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  835. package/lib/components/ApplicationForm/FeedbackTypeField.js +0 -17
  836. package/lib/components/ApplicationForm/FeedbackTypeField.js.map +0 -1
  837. package/lib/components/ApplicationForm/IsClientField.d.ts +0 -2
  838. package/lib/components/ApplicationForm/IsClientField.js +0 -5
  839. package/lib/components/ApplicationForm/IsClientField.js.map +0 -1
  840. package/lib/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  841. package/lib/components/ApplicationForm/LocalitiesField.js +0 -22
  842. package/lib/components/ApplicationForm/LocalitiesField.js.map +0 -1
  843. package/lib/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  844. package/lib/components/ApplicationForm/MiddleNameField.js +0 -5
  845. package/lib/components/ApplicationForm/MiddleNameField.js.map +0 -1
  846. package/lib/components/ApplicationForm/NameField.d.ts +0 -2
  847. package/lib/components/ApplicationForm/NameField.js +0 -10
  848. package/lib/components/ApplicationForm/NameField.js.map +0 -1
  849. package/lib/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  850. package/lib/components/ApplicationForm/OnlineCheckoutField.js +0 -6
  851. package/lib/components/ApplicationForm/OnlineCheckoutField.js.map +0 -1
  852. package/lib/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  853. package/lib/components/ApplicationForm/PartnerCommentsField.js +0 -10
  854. package/lib/components/ApplicationForm/PartnerCommentsField.js.map +0 -1
  855. package/lib/components/ApplicationForm/PhoneField.d.ts +0 -2
  856. package/lib/components/ApplicationForm/PhoneField.js +0 -7
  857. package/lib/components/ApplicationForm/PhoneField.js.map +0 -1
  858. package/lib/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  859. package/lib/components/ApplicationForm/PosTerminalField.js +0 -6
  860. package/lib/components/ApplicationForm/PosTerminalField.js.map +0 -1
  861. package/lib/components/ApplicationForm/ProductField.d.ts +0 -2
  862. package/lib/components/ApplicationForm/ProductField.js +0 -8
  863. package/lib/components/ApplicationForm/ProductField.js.map +0 -1
  864. package/lib/components/ApplicationForm/RegionField.d.ts +0 -2
  865. package/lib/components/ApplicationForm/RegionField.js +0 -12
  866. package/lib/components/ApplicationForm/RegionField.js.map +0 -1
  867. package/lib/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  868. package/lib/components/ApplicationForm/RegionPremiumField.js +0 -16
  869. package/lib/components/ApplicationForm/RegionPremiumField.js.map +0 -1
  870. package/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  871. package/lib/components/ApplicationForm/SecondaryPhoneField.js +0 -12
  872. package/lib/components/ApplicationForm/SecondaryPhoneField.js.map +0 -1
  873. package/lib/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  874. package/lib/components/ApplicationForm/ServiceDirectionField.js +0 -8
  875. package/lib/components/ApplicationForm/ServiceDirectionField.js.map +0 -1
  876. package/lib/components/ApplicationForm/SurnameField.d.ts +0 -2
  877. package/lib/components/ApplicationForm/SurnameField.js +0 -7
  878. package/lib/components/ApplicationForm/SurnameField.js.map +0 -1
  879. package/lib/components/ApplicationForm/TermField.d.ts +0 -2
  880. package/lib/components/ApplicationForm/TermField.js +0 -8
  881. package/lib/components/ApplicationForm/TermField.js.map +0 -1
  882. package/lib/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  883. package/lib/components/ApplicationForm/UltraPremiumField.js +0 -8
  884. package/lib/components/ApplicationForm/UltraPremiumField.js.map +0 -1
  885. package/lib/components/ApplicationForm/VedField.d.ts +0 -3
  886. package/lib/components/ApplicationForm/VedField.js +0 -21
  887. package/lib/components/ApplicationForm/VedField.js.map +0 -1
  888. package/lib/components/ApplicationForm/constants.d.ts +0 -7
  889. package/lib/components/ApplicationForm/constants.js.map +0 -1
  890. package/lib/components/ApplicationForm/getField.d.ts +0 -3
  891. package/lib/components/ApplicationForm/getField.js +0 -73
  892. package/lib/components/ApplicationForm/getField.js.map +0 -1
  893. package/lib/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  894. package/lib/components/ApplicationForm/getNamesFromInput.js.map +0 -1
  895. package/lib/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  896. package/lib/components/ApplicationForm/getObjectValidator.js.map +0 -1
  897. package/lib/components/ApplicationForm/getValidation.js.map +0 -1
  898. package/lib/components/ApplicationForm/isRenderField.d.ts +0 -6
  899. package/lib/components/ApplicationForm/isRenderField.js.map +0 -1
  900. package/lib/components/ApplicationForm/validators.js.map +0 -1
  901. package/mobile/bundle/components/ApplicationForm/AcquiringField.d.ts +0 -5
  902. package/mobile/bundle/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  903. package/mobile/bundle/components/ApplicationForm/AmountField.d.ts +0 -2
  904. package/mobile/bundle/components/ApplicationForm/CommentField.d.ts +0 -2
  905. package/mobile/bundle/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  906. package/mobile/bundle/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  907. package/mobile/bundle/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  908. package/mobile/bundle/components/ApplicationForm/IsClientField.d.ts +0 -2
  909. package/mobile/bundle/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  910. package/mobile/bundle/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  911. package/mobile/bundle/components/ApplicationForm/NameField.d.ts +0 -2
  912. package/mobile/bundle/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  913. package/mobile/bundle/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  914. package/mobile/bundle/components/ApplicationForm/PhoneField.d.ts +0 -2
  915. package/mobile/bundle/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  916. package/mobile/bundle/components/ApplicationForm/ProductField.d.ts +0 -2
  917. package/mobile/bundle/components/ApplicationForm/RegionField.d.ts +0 -2
  918. package/mobile/bundle/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  919. package/mobile/bundle/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  920. package/mobile/bundle/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  921. package/mobile/bundle/components/ApplicationForm/SurnameField.d.ts +0 -2
  922. package/mobile/bundle/components/ApplicationForm/TermField.d.ts +0 -2
  923. package/mobile/bundle/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  924. package/mobile/bundle/components/ApplicationForm/VedField.d.ts +0 -3
  925. package/mobile/bundle/components/ApplicationForm/constants.d.ts +0 -7
  926. package/mobile/bundle/components/ApplicationForm/getField.d.ts +0 -4
  927. package/mobile/bundle/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  928. package/mobile/bundle/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  929. package/mobile/bundle/components/ApplicationForm/isRenderField.d.ts +0 -6
  930. package/mobile/dist/components/ApplicationForm/AcquiringField.d.ts +0 -5
  931. package/mobile/dist/components/ApplicationForm/AcquiringField.js +0 -29
  932. package/mobile/dist/components/ApplicationForm/AcquiringField.js.map +0 -1
  933. package/mobile/dist/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  934. package/mobile/dist/components/ApplicationForm/AddressBranchField.js +0 -28
  935. package/mobile/dist/components/ApplicationForm/AddressBranchField.js.map +0 -1
  936. package/mobile/dist/components/ApplicationForm/AmountField.d.ts +0 -2
  937. package/mobile/dist/components/ApplicationForm/AmountField.js +0 -10
  938. package/mobile/dist/components/ApplicationForm/AmountField.js.map +0 -1
  939. package/mobile/dist/components/ApplicationForm/CommentField.d.ts +0 -2
  940. package/mobile/dist/components/ApplicationForm/CommentField.js +0 -9
  941. package/mobile/dist/components/ApplicationForm/CommentField.js.map +0 -1
  942. package/mobile/dist/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  943. package/mobile/dist/components/ApplicationForm/CustomFieldProps.js.map +0 -1
  944. package/mobile/dist/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  945. package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js +0 -10
  946. package/mobile/dist/components/ApplicationForm/FeedbackMethodField.js.map +0 -1
  947. package/mobile/dist/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  948. package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js +0 -19
  949. package/mobile/dist/components/ApplicationForm/FeedbackTypeField.js.map +0 -1
  950. package/mobile/dist/components/ApplicationForm/IsClientField.d.ts +0 -2
  951. package/mobile/dist/components/ApplicationForm/IsClientField.js +0 -7
  952. package/mobile/dist/components/ApplicationForm/IsClientField.js.map +0 -1
  953. package/mobile/dist/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  954. package/mobile/dist/components/ApplicationForm/LocalitiesField.js +0 -24
  955. package/mobile/dist/components/ApplicationForm/LocalitiesField.js.map +0 -1
  956. package/mobile/dist/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  957. package/mobile/dist/components/ApplicationForm/MiddleNameField.js +0 -7
  958. package/mobile/dist/components/ApplicationForm/MiddleNameField.js.map +0 -1
  959. package/mobile/dist/components/ApplicationForm/NameField.d.ts +0 -2
  960. package/mobile/dist/components/ApplicationForm/NameField.js +0 -12
  961. package/mobile/dist/components/ApplicationForm/NameField.js.map +0 -1
  962. package/mobile/dist/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  963. package/mobile/dist/components/ApplicationForm/OnlineCheckoutField.js +0 -8
  964. package/mobile/dist/components/ApplicationForm/OnlineCheckoutField.js.map +0 -1
  965. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  966. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js +0 -12
  967. package/mobile/dist/components/ApplicationForm/PartnerCommentsField.js.map +0 -1
  968. package/mobile/dist/components/ApplicationForm/PhoneField.d.ts +0 -2
  969. package/mobile/dist/components/ApplicationForm/PhoneField.js +0 -9
  970. package/mobile/dist/components/ApplicationForm/PhoneField.js.map +0 -1
  971. package/mobile/dist/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  972. package/mobile/dist/components/ApplicationForm/PosTerminalField.js +0 -8
  973. package/mobile/dist/components/ApplicationForm/PosTerminalField.js.map +0 -1
  974. package/mobile/dist/components/ApplicationForm/ProductField.d.ts +0 -2
  975. package/mobile/dist/components/ApplicationForm/ProductField.js +0 -10
  976. package/mobile/dist/components/ApplicationForm/ProductField.js.map +0 -1
  977. package/mobile/dist/components/ApplicationForm/RegionField.d.ts +0 -2
  978. package/mobile/dist/components/ApplicationForm/RegionField.js +0 -14
  979. package/mobile/dist/components/ApplicationForm/RegionField.js.map +0 -1
  980. package/mobile/dist/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  981. package/mobile/dist/components/ApplicationForm/RegionPremiumField.js +0 -18
  982. package/mobile/dist/components/ApplicationForm/RegionPremiumField.js.map +0 -1
  983. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  984. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js +0 -14
  985. package/mobile/dist/components/ApplicationForm/SecondaryPhoneField.js.map +0 -1
  986. package/mobile/dist/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  987. package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js +0 -10
  988. package/mobile/dist/components/ApplicationForm/ServiceDirectionField.js.map +0 -1
  989. package/mobile/dist/components/ApplicationForm/SurnameField.d.ts +0 -2
  990. package/mobile/dist/components/ApplicationForm/SurnameField.js +0 -9
  991. package/mobile/dist/components/ApplicationForm/SurnameField.js.map +0 -1
  992. package/mobile/dist/components/ApplicationForm/TermField.d.ts +0 -2
  993. package/mobile/dist/components/ApplicationForm/TermField.js +0 -10
  994. package/mobile/dist/components/ApplicationForm/TermField.js.map +0 -1
  995. package/mobile/dist/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  996. package/mobile/dist/components/ApplicationForm/UltraPremiumField.js +0 -10
  997. package/mobile/dist/components/ApplicationForm/UltraPremiumField.js.map +0 -1
  998. package/mobile/dist/components/ApplicationForm/VedField.d.ts +0 -3
  999. package/mobile/dist/components/ApplicationForm/VedField.js +0 -23
  1000. package/mobile/dist/components/ApplicationForm/VedField.js.map +0 -1
  1001. package/mobile/dist/components/ApplicationForm/constants.d.ts +0 -7
  1002. package/mobile/dist/components/ApplicationForm/constants.js.map +0 -1
  1003. package/mobile/dist/components/ApplicationForm/getField.d.ts +0 -4
  1004. package/mobile/dist/components/ApplicationForm/getField.js +0 -76
  1005. package/mobile/dist/components/ApplicationForm/getField.js.map +0 -1
  1006. package/mobile/dist/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  1007. package/mobile/dist/components/ApplicationForm/getNamesFromInput.js.map +0 -1
  1008. package/mobile/dist/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  1009. package/mobile/dist/components/ApplicationForm/getObjectValidator.js.map +0 -1
  1010. package/mobile/dist/components/ApplicationForm/getValidation.js.map +0 -1
  1011. package/mobile/dist/components/ApplicationForm/isRenderField.d.ts +0 -6
  1012. package/mobile/dist/components/ApplicationForm/isRenderField.js.map +0 -1
  1013. package/mobile/dist/components/ApplicationForm/validators.js.map +0 -1
  1014. package/mobile/lib/components/ApplicationForm/AcquiringField.d.ts +0 -5
  1015. package/mobile/lib/components/ApplicationForm/AcquiringField.js +0 -26
  1016. package/mobile/lib/components/ApplicationForm/AcquiringField.js.map +0 -1
  1017. package/mobile/lib/components/ApplicationForm/AddressBranchField.d.ts +0 -6
  1018. package/mobile/lib/components/ApplicationForm/AddressBranchField.js +0 -26
  1019. package/mobile/lib/components/ApplicationForm/AddressBranchField.js.map +0 -1
  1020. package/mobile/lib/components/ApplicationForm/AmountField.d.ts +0 -2
  1021. package/mobile/lib/components/ApplicationForm/AmountField.js +0 -8
  1022. package/mobile/lib/components/ApplicationForm/AmountField.js.map +0 -1
  1023. package/mobile/lib/components/ApplicationForm/CommentField.d.ts +0 -2
  1024. package/mobile/lib/components/ApplicationForm/CommentField.js +0 -7
  1025. package/mobile/lib/components/ApplicationForm/CommentField.js.map +0 -1
  1026. package/mobile/lib/components/ApplicationForm/CustomFieldProps.d.ts +0 -7
  1027. package/mobile/lib/components/ApplicationForm/CustomFieldProps.js.map +0 -1
  1028. package/mobile/lib/components/ApplicationForm/FeedbackMethodField.d.ts +0 -2
  1029. package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js +0 -8
  1030. package/mobile/lib/components/ApplicationForm/FeedbackMethodField.js.map +0 -1
  1031. package/mobile/lib/components/ApplicationForm/FeedbackTypeField.d.ts +0 -2
  1032. package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js +0 -17
  1033. package/mobile/lib/components/ApplicationForm/FeedbackTypeField.js.map +0 -1
  1034. package/mobile/lib/components/ApplicationForm/IsClientField.d.ts +0 -2
  1035. package/mobile/lib/components/ApplicationForm/IsClientField.js +0 -5
  1036. package/mobile/lib/components/ApplicationForm/IsClientField.js.map +0 -1
  1037. package/mobile/lib/components/ApplicationForm/LocalitiesField.d.ts +0 -2
  1038. package/mobile/lib/components/ApplicationForm/LocalitiesField.js +0 -22
  1039. package/mobile/lib/components/ApplicationForm/LocalitiesField.js.map +0 -1
  1040. package/mobile/lib/components/ApplicationForm/MiddleNameField.d.ts +0 -2
  1041. package/mobile/lib/components/ApplicationForm/MiddleNameField.js +0 -5
  1042. package/mobile/lib/components/ApplicationForm/MiddleNameField.js.map +0 -1
  1043. package/mobile/lib/components/ApplicationForm/NameField.d.ts +0 -2
  1044. package/mobile/lib/components/ApplicationForm/NameField.js +0 -10
  1045. package/mobile/lib/components/ApplicationForm/NameField.js.map +0 -1
  1046. package/mobile/lib/components/ApplicationForm/OnlineCheckoutField.d.ts +0 -2
  1047. package/mobile/lib/components/ApplicationForm/OnlineCheckoutField.js +0 -6
  1048. package/mobile/lib/components/ApplicationForm/OnlineCheckoutField.js.map +0 -1
  1049. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.d.ts +0 -2
  1050. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js +0 -10
  1051. package/mobile/lib/components/ApplicationForm/PartnerCommentsField.js.map +0 -1
  1052. package/mobile/lib/components/ApplicationForm/PhoneField.d.ts +0 -2
  1053. package/mobile/lib/components/ApplicationForm/PhoneField.js +0 -7
  1054. package/mobile/lib/components/ApplicationForm/PhoneField.js.map +0 -1
  1055. package/mobile/lib/components/ApplicationForm/PosTerminalField.d.ts +0 -2
  1056. package/mobile/lib/components/ApplicationForm/PosTerminalField.js +0 -6
  1057. package/mobile/lib/components/ApplicationForm/PosTerminalField.js.map +0 -1
  1058. package/mobile/lib/components/ApplicationForm/ProductField.d.ts +0 -2
  1059. package/mobile/lib/components/ApplicationForm/ProductField.js +0 -8
  1060. package/mobile/lib/components/ApplicationForm/ProductField.js.map +0 -1
  1061. package/mobile/lib/components/ApplicationForm/RegionField.d.ts +0 -2
  1062. package/mobile/lib/components/ApplicationForm/RegionField.js +0 -12
  1063. package/mobile/lib/components/ApplicationForm/RegionField.js.map +0 -1
  1064. package/mobile/lib/components/ApplicationForm/RegionPremiumField.d.ts +0 -2
  1065. package/mobile/lib/components/ApplicationForm/RegionPremiumField.js +0 -16
  1066. package/mobile/lib/components/ApplicationForm/RegionPremiumField.js.map +0 -1
  1067. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.d.ts +0 -2
  1068. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js +0 -12
  1069. package/mobile/lib/components/ApplicationForm/SecondaryPhoneField.js.map +0 -1
  1070. package/mobile/lib/components/ApplicationForm/ServiceDirectionField.d.ts +0 -2
  1071. package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js +0 -8
  1072. package/mobile/lib/components/ApplicationForm/ServiceDirectionField.js.map +0 -1
  1073. package/mobile/lib/components/ApplicationForm/SurnameField.d.ts +0 -2
  1074. package/mobile/lib/components/ApplicationForm/SurnameField.js +0 -7
  1075. package/mobile/lib/components/ApplicationForm/SurnameField.js.map +0 -1
  1076. package/mobile/lib/components/ApplicationForm/TermField.d.ts +0 -2
  1077. package/mobile/lib/components/ApplicationForm/TermField.js +0 -8
  1078. package/mobile/lib/components/ApplicationForm/TermField.js.map +0 -1
  1079. package/mobile/lib/components/ApplicationForm/UltraPremiumField.d.ts +0 -2
  1080. package/mobile/lib/components/ApplicationForm/UltraPremiumField.js +0 -8
  1081. package/mobile/lib/components/ApplicationForm/UltraPremiumField.js.map +0 -1
  1082. package/mobile/lib/components/ApplicationForm/VedField.d.ts +0 -3
  1083. package/mobile/lib/components/ApplicationForm/VedField.js +0 -21
  1084. package/mobile/lib/components/ApplicationForm/VedField.js.map +0 -1
  1085. package/mobile/lib/components/ApplicationForm/constants.d.ts +0 -7
  1086. package/mobile/lib/components/ApplicationForm/constants.js.map +0 -1
  1087. package/mobile/lib/components/ApplicationForm/getField.d.ts +0 -4
  1088. package/mobile/lib/components/ApplicationForm/getField.js +0 -73
  1089. package/mobile/lib/components/ApplicationForm/getField.js.map +0 -1
  1090. package/mobile/lib/components/ApplicationForm/getNamesFromInput.d.ts +0 -2
  1091. package/mobile/lib/components/ApplicationForm/getNamesFromInput.js.map +0 -1
  1092. package/mobile/lib/components/ApplicationForm/getObjectValidator.d.ts +0 -4
  1093. package/mobile/lib/components/ApplicationForm/getObjectValidator.js.map +0 -1
  1094. package/mobile/lib/components/ApplicationForm/getValidation.js.map +0 -1
  1095. package/mobile/lib/components/ApplicationForm/isRenderField.d.ts +0 -6
  1096. package/mobile/lib/components/ApplicationForm/isRenderField.js.map +0 -1
  1097. package/mobile/lib/components/ApplicationForm/validators.js.map +0 -1
  1098. package/mobile/src/components/ApplicationForm/AcquiringField.tsx +0 -36
  1099. package/mobile/src/components/ApplicationForm/AddressBranchField.tsx +0 -39
  1100. package/mobile/src/components/ApplicationForm/AmountField.tsx +0 -17
  1101. package/mobile/src/components/ApplicationForm/CommentField.tsx +0 -14
  1102. package/mobile/src/components/ApplicationForm/CustomFieldProps.ts +0 -8
  1103. package/mobile/src/components/ApplicationForm/FeedbackMethodField.tsx +0 -14
  1104. package/mobile/src/components/ApplicationForm/FeedbackTypeField.tsx +0 -25
  1105. package/mobile/src/components/ApplicationForm/IsClientField.tsx +0 -7
  1106. package/mobile/src/components/ApplicationForm/LocalitiesField.tsx +0 -34
  1107. package/mobile/src/components/ApplicationForm/MiddleNameField.tsx +0 -7
  1108. package/mobile/src/components/ApplicationForm/NameField.tsx +0 -18
  1109. package/mobile/src/components/ApplicationForm/OnlineCheckoutField.tsx +0 -10
  1110. package/mobile/src/components/ApplicationForm/PartnerCommentsField.tsx +0 -19
  1111. package/mobile/src/components/ApplicationForm/PhoneField.tsx +0 -12
  1112. package/mobile/src/components/ApplicationForm/PosTerminalField.tsx +0 -10
  1113. package/mobile/src/components/ApplicationForm/ProductField.tsx +0 -15
  1114. package/mobile/src/components/ApplicationForm/RegionField.tsx +0 -24
  1115. package/mobile/src/components/ApplicationForm/RegionPremiumField.tsx +0 -29
  1116. package/mobile/src/components/ApplicationForm/SecondaryPhoneField.tsx +0 -18
  1117. package/mobile/src/components/ApplicationForm/ServiceDirectionField.tsx +0 -15
  1118. package/mobile/src/components/ApplicationForm/SurnameField.tsx +0 -12
  1119. package/mobile/src/components/ApplicationForm/TermField.tsx +0 -17
  1120. package/mobile/src/components/ApplicationForm/UltraPremiumField.tsx +0 -13
  1121. package/mobile/src/components/ApplicationForm/VedField.tsx +0 -54
  1122. package/mobile/src/components/ApplicationForm/constants.tsx +0 -38
  1123. package/mobile/src/components/ApplicationForm/getField.tsx +0 -133
  1124. package/mobile/src/components/ApplicationForm/getNamesFromInput.tsx +0 -4
  1125. package/mobile/src/components/ApplicationForm/getObjectValidator.tsx +0 -46
  1126. package/mobile/src/components/ApplicationForm/isRenderField.tsx +0 -15
  1127. package/src/components/ApplicationForm/AcquiringField.tsx +0 -36
  1128. package/src/components/ApplicationForm/AddressBranchField.tsx +0 -39
  1129. package/src/components/ApplicationForm/AmountField.tsx +0 -17
  1130. package/src/components/ApplicationForm/CommentField.tsx +0 -14
  1131. package/src/components/ApplicationForm/CustomFieldProps.ts +0 -8
  1132. package/src/components/ApplicationForm/FeedbackMethodField.tsx +0 -14
  1133. package/src/components/ApplicationForm/FeedbackTypeField.tsx +0 -25
  1134. package/src/components/ApplicationForm/IsClientField.tsx +0 -7
  1135. package/src/components/ApplicationForm/LocalitiesField.tsx +0 -34
  1136. package/src/components/ApplicationForm/MiddleNameField.tsx +0 -7
  1137. package/src/components/ApplicationForm/NameField.tsx +0 -18
  1138. package/src/components/ApplicationForm/OnlineCheckoutField.tsx +0 -10
  1139. package/src/components/ApplicationForm/PartnerCommentsField.tsx +0 -19
  1140. package/src/components/ApplicationForm/PhoneField.tsx +0 -12
  1141. package/src/components/ApplicationForm/PosTerminalField.tsx +0 -10
  1142. package/src/components/ApplicationForm/ProductField.tsx +0 -15
  1143. package/src/components/ApplicationForm/RegionField.tsx +0 -24
  1144. package/src/components/ApplicationForm/RegionPremiumField.tsx +0 -29
  1145. package/src/components/ApplicationForm/SecondaryPhoneField.tsx +0 -18
  1146. package/src/components/ApplicationForm/ServiceDirectionField.tsx +0 -15
  1147. package/src/components/ApplicationForm/SurnameField.tsx +0 -12
  1148. package/src/components/ApplicationForm/TermField.tsx +0 -17
  1149. package/src/components/ApplicationForm/UltraPremiumField.tsx +0 -13
  1150. package/src/components/ApplicationForm/VedField.tsx +0 -54
  1151. package/src/components/ApplicationForm/constants.tsx +0 -38
  1152. package/src/components/ApplicationForm/getField.tsx +0 -133
  1153. package/src/components/ApplicationForm/getNamesFromInput.tsx +0 -4
  1154. package/src/components/ApplicationForm/getObjectValidator.tsx +0 -46
  1155. package/src/components/ApplicationForm/isRenderField.tsx +0 -15
  1156. /package/bundle/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1157. /package/bundle/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1158. /package/dist/{components/ApplicationForm → ui-kit/FormField}/CustomFieldProps.js +0 -0
  1159. /package/dist/{components/ApplicationForm → ui-kit/FormField}/constants.js +0 -0
  1160. /package/dist/{components/ApplicationForm → ui-kit/FormField}/getNamesFromInput.js +0 -0
  1161. /package/dist/{components/ApplicationForm → ui-kit/FormField}/getObjectValidator.js +0 -0
  1162. /package/dist/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1163. /package/dist/{components/ApplicationForm → ui-kit/FormField}/getValidation.js +0 -0
  1164. /package/dist/{components/ApplicationForm → ui-kit/FormField}/isRenderField.js +0 -0
  1165. /package/dist/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1166. /package/dist/{components/ApplicationForm → ui-kit/FormField}/validators.js +0 -0
  1167. /package/lib/{components/ApplicationForm → ui-kit/FormField}/CustomFieldProps.js +0 -0
  1168. /package/lib/{components/ApplicationForm → ui-kit/FormField}/constants.js +0 -0
  1169. /package/lib/{components/ApplicationForm → ui-kit/FormField}/getNamesFromInput.js +0 -0
  1170. /package/lib/{components/ApplicationForm → ui-kit/FormField}/getObjectValidator.js +0 -0
  1171. /package/lib/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1172. /package/lib/{components/ApplicationForm → ui-kit/FormField}/getValidation.js +0 -0
  1173. /package/lib/{components/ApplicationForm → ui-kit/FormField}/isRenderField.js +0 -0
  1174. /package/lib/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1175. /package/lib/{components/ApplicationForm → ui-kit/FormField}/validators.js +0 -0
  1176. /package/mobile/bundle/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1177. /package/mobile/bundle/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1178. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/CustomFieldProps.js +0 -0
  1179. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/constants.js +0 -0
  1180. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/getNamesFromInput.js +0 -0
  1181. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/getObjectValidator.js +0 -0
  1182. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1183. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/getValidation.js +0 -0
  1184. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/isRenderField.js +0 -0
  1185. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1186. /package/mobile/dist/{components/ApplicationForm → ui-kit/FormField}/validators.js +0 -0
  1187. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/CustomFieldProps.js +0 -0
  1188. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/constants.js +0 -0
  1189. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/getNamesFromInput.js +0 -0
  1190. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/getObjectValidator.js +0 -0
  1191. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/getValidation.d.ts +0 -0
  1192. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/getValidation.js +0 -0
  1193. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/isRenderField.js +0 -0
  1194. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/validators.d.ts +0 -0
  1195. /package/mobile/lib/{components/ApplicationForm → ui-kit/FormField}/validators.js +0 -0
  1196. /package/mobile/src/{components/ApplicationForm → ui-kit/FormField}/getValidation.tsx +0 -0
  1197. /package/mobile/src/{components/ApplicationForm → ui-kit/FormField}/validators.ts +0 -0
  1198. /package/src/{components/ApplicationForm → ui-kit/FormField}/getValidation.tsx +0 -0
  1199. /package/src/{components/ApplicationForm → ui-kit/FormField}/validators.ts +0 -0
@@ -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"),i=l("useCallback"),r=l("useMemo"),s=l("useRef");const o=(...e)=>globalThis._uni._jsx(...e),c=(...e)=>globalThis._uni._jsxs(...e),d=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:m(e)),t._tmpl},m=e=>{function t(t,l){const{children:n,...a}=t||{},i=l?.slots?.default,r=n||i&&i();return e(Object.assign(a,r&&{children:r}),l)}return t.inheritAttrs=!1,t},h=(...e)=>e.map((e=>u(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),u=e=>Boolean(e&&"object"==typeof e&&!Array.isArray(e)),p={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","":""},g=d((({className:e,version:t="primary",isTheme:l=!0,defaultPadding:n="p-xl",padding:a,block:i,tag:r="section",role:s,children:c,style:d})=>{const m=t&&l;return o(r,{className:h("@container font-sans",{group:m},p[t],a||n,e),...m?{"data-ver":t}:{},...i?.anchor?{id:i.anchor}:{},role:s,style:d,children:c})})),x=d((({className:e,size:t})=>o("figure",{className:h("m-0 mt-xl min-w-[80%]",e),children:f(t)}))),f=(e=3)=>y(100,e).map((e=>Math.floor(e))).map(b),b=(e,t)=>o("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-dark relative overflow-hidden animate-pulse"},String(t)),y=(e,t)=>[e].concat(t>0?y(e/1.618,t-1):[]),v={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},N=d((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>o(l,{role:"heading",className:h("font-sans m-0",v[t],e),children:n||a}))),w=d((({children:e,...t})=>o("p",{className:h("font-sans",Object.values(t)),children:e}))),k={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-m",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},S=d((({className:e,version:t="",headlineVersion:l="XL",title:n,description:a,align:i="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const u=k[l],p={marginTop:u.descriptionStyle};return c(g,{className:h({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[n?o(N,{className:h("whitespace-pre-wrap",i),...u?.title,as:r||u?.title.as,title:n}):null,a?o(w,{size:u.descriptionSize,font:u.descriptionWeight,align:i,...p,children:a}):null]})})),C=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),T=[];function I(e,t,{className:l,...n}={}){const{key:a,blockDecorator:i=C,blocksRegistry:r={},ancestors:s=T}=t,{type:c}=e;c&&c in r||console.warn(`No block with "${c}" is registered`);const d=c&&r[c];return i({blockClassName:h(e.style?.length?e.style:"col-span-12",l),block:e,ancestors:s,render:({block:l,blockClassName:i})=>{const{content:r}=l;return d?o(d,{className:i,block:e,options:t,...r,...n},a):null}},a)}const B=[],P=(e,{key:t,ancestors:l=B,slotName:n=null,extraProps:a,renderProps:i=I,...r})=>{const s=a?(e,t)=>I(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...l||B,[r.parent,n]]:l},a)))};function M({block:e,options:t,children:l,extraProps:n,renderProps:a}){return l||(e&&t?P(e.blocks,{...t,parent:e,extraProps:n,renderProps:a}):null)}function R(){return R._impl()}R._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),R.setup=e=>{R._impl=e};const V=["CDN","BASE_PATH"],z=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const l=e._[t]||e[t];return V.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(l):l}}),D=e=>Boolean(e?.includes(":")),A=(e,t)=>Boolean(e&&!D(e)&&(!t||"_self"===t)),$=e=>Boolean(e?.startsWith("#")),_=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),j=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?"),L=(e,t)=>Boolean(t&&e&&e.startsWith(t)&&["/"===t,e===t,"/"===e[t.length]].some(Boolean));var O=Object.freeze({__proto__:null,isURL:D,isLocalURL:A,isHash:$,withoutQuery:_,joinPath:j,hasPrefix:L});const E="/api/",F=`${E}v1/storage`,U=e=>(t,l)=>{if([!t,D(t),$(t),[z.CDN,E].some((e=>L(t,e)))].some(Boolean))return t;if(((e="")=>/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}(\/revs\/[0-9]{1,20})?$/.test(e))(t))return`${F}/${t}/attachment`;const n=t?.startsWith("/");return j(L(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},H=d((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:i="color",width:r,height:s})=>{const d=R(),m="normal"===i?`${l}.svg`:`sprites.svg#${l}`,u=U(d)(j(z.CDN,"/icons/",m));return"normal"===i?o("img",{className:e,src:u,alt:n,title:a,"aria-hidden":"true",width:r,height:s,style:q(e,s)}):o(X,{className:e,children:c("svg",{className:h(K(r),W[i],{invert:"white"===i},t),width:r,height:s,"aria-hidden":"true",children:[a?o("title",{children:a}):null,n?o("desc",{children:n}):null,o("use",{href:u,xlinkHref:u})]})})})),q=(e,t)=>{return e?.includes("h-")?{}:{height:(l=t,l&&!/\D/.test(l)?`${t}px`:t),width:"auto"};var l},K=e=>e?"":"w-full h-full",X=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),Y=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function G(e=""){try{const[,...t]=new URL(e).pathname.split("/");return`/${t.filter(Boolean).join("/")}`}catch(e){return""}}const Q=e=>t=>{const l=t?.startsWith("/wcms-resources")?"":G(Y.SITE_URL);return t&&!D(t)?U(e)(t,l):t},J=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Z=d((({className:e="",image:t,imageClassName:l=""})=>{const n=R();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(J).map((({src:e,format:l,media:a},i)=>o("source",{srcSet:Q(n)(e),type:te(l),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${i}_${e}`))):null,t?.src?ee({...t,src:Q(n)(t.src)},l):null]})})),ee=(e,t="")=>o("img",{src:e.src,className:h("object-contain",t),alt:e?.alt||e?.title||"",title:e?.title||"",style:{width:e?.size?.width?`${e.size?.width}px`:"100%",height:e?.size?.height?`${e.size?.height}px`:"auto"},width:e?.size?.width,height:e?.size?.height}),te=e=>e?`image/${String(e)}`:void 0,le=d((({className:e="",image:t,imageClassName:l="",...n})=>t?.src||t?.icon?t.icon?o(H,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...n}):o(Z,{className:e,imageClassName:l,image:t}):null)),ne={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:"text-primary-main",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ae="bg-main-divider text-main-disabled",ie={primary:ae,secondary:ae,white:ae,link:"",transparent:"",gray:ae,"":""},re="text-center font-sans select-none",se={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:"text-primary-main",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},oe=({className:e,rounded:t,version:l})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?ne[l]:"",t?"rounded-full":"rounded-md",e].join(" ");const ce=new class{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}},de=()=>({open:(e,t={})=>ce.fire("dialog",{type:"open",dialog:e,...t}),close:()=>ce.fire("dialog",{type:"close"}),closeAll:()=>ce.fire("dialog",{type:"close",all:!0})}),me=e=>me._impl(e);function he(){const e=G(Y.SITE_URL),t=R(),{closeAll:l}=de();return e=>{const l=U(t)(e.href);return{...e,href:l,"aria-label":e.text,onClick:me(n({...e,href:l}))}};function n({href:n,target:a,onClick:i}){return r=>{i&&i(r);const s=!L(n,e||"/");n&&!s&&A(n,a)&&(l(),r?.preventDefault(),t.push(((e,t="")=>e.replace(t,"")||"/")(n,e)))}}}me._impl=e=>e,me.setup=e=>{me._impl=e};const ue=e=>{if(!Array.isArray(e)||!e.length)return{};try{return{"data-aspects":JSON.stringify(e)}}catch(e){return{}}},pe=d((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:i="primary"}=e,r=xe(e)&&"hidden lg:block";return c("div",{className:h(ge(e),"flex gap-xs"),children:[n?o("div",{className:h(r,se[i]),children:n}):null,xe(e)?c("div",{className:"whitespace-pre",children:[l?o("div",{className:"text-xs font-light text-left",children:l}):null,o("div",{className:"text-left "+(l?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?o("div",{className:h(r,se[i]),children:a}):null]})})),ge=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-9":"py-4 px-9");return h("group/btn items-center justify-center",xe(e)?a:"h-12 w-12 m-auto",{"rounded-full":n})},xe=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),fe=({className:e,rounded:t,version:l})=>["inline-block",re,l?ie[l]:"",t?"rounded-full":"rounded-md",e].join(" "),be=d((({disabled:e,children:t,method:l="LINK",href:n,...a})=>{const r=(({method:e,href:t})=>i((l=>{if("POST"!==e||!t)return;l.preventDefault(),l.stopPropagation();const{origin:n,pathname:a,searchParams:i}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[n,a].join(""));for(const[e,t]of i.entries()){const l=document.createElement("input");l.setAttribute("type","hidden"),l.setAttribute("name",e),l.setAttribute("value",t),r.appendChild(l)}document.body.appendChild(r),r.submit()}),[]))({method:l,href:n}),s=he()({onClick:r,href:n,...a}),c=t??o(pe,{...s});return o(e?ve:ye,{...s,children:c})})),ye=d((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:i,rounded:r,onClick:s,type:c,data:d,children:m,text:h})=>o("a",{className:oe({className:e,version:i,rounded:r}),href:t,rel:l,target:n,"aria-label":a||`Ссылка на ${h}`,role:t?"link":"button",onClick:s,type:c,...ue(d),children:m}))),ve=d((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:fe({className:e,rounded:n,version:l}),children:a})));function Ne({version:e,handleClick:t,text:l="Вернуться назад",alwaysVisible:n=!1}){if(!l)return null;const a="primary"===e?"white":"black",i="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:h(n?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:h(oe({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),i),onClick:t,children:o(le,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(be,{version:"link",className:"group-data-secondary:text-white",text:l,ariaLabel:l,onClick:t,type:"button"})]})}const we=()=>{const[e,t]=n(false);return a((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),l=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",l),e?.matches&&t(Boolean(e.matches)),()=>{e?.removeEventListener("change",l)}}),[]),e},ke={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Se=(e,{className:t,imageAlign:l})=>e?o("div",{className:h("shrink-1/2 justify-self-center",l&&ke[l],t),children:e}):null,Ce=d((({className:e,version:t="primary",defaultPadding:l,padding:n="",title:a,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:u,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:x,children:f,...b})=>{const y=we(),v=R(),N=i((()=>v.back()),[]),w=b.options?.page?.common?.backwardButton,k=x&&!y;return c("div",{className:h("relative flex flex-col gap-3xl overflow-hidden",n||l,e),children:[k&&Ne({version:t,handleClick:N,text:w}),a?o("div",{className:"relative h-full",children:a}):null,c("div",{className:h("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Se(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:h("grid gap-3xl items-center md:items-stretch",{"@xl:grid-cols-2 auto-cols-fr":d,grow:!s},"h-full","auto-rows-[max-content_1fr]"),children:[c("div",{className:"grow space-y-lg min-w-fit",children:[u,f]}),Ie(M({...b,extraProps:{className:"@container-normal"}})),Se(d,{className:h("@xl:justify-self-end @xl:col-start-2",{[Te(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Te=e=>h(e?"row-span-2":"@xl:row-span-2"),Ie=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,Be=(e,t="normal")=>e?.icon||e?.src?o("div",{className:h("sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:o(le,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Pe=d((e=>{const{__html:t="",richVersion:l="",itemSize:n="list-m",isDotted:a=!0}=e,i=a?"":"without-dots";return t&&"<p><br></p>"!==t.replace(/<\/?[^>]+\/?>/g,"").trim()?o("div",{"data-component":"rich-text-container",children:o("div",{className:h(l,n,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",i),dangerouslySetInnerHTML:{__html:t}})}):null})),Me=(e,t)=>e?o(w,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Re=d((({children:e,...t})=>o("span",{className:h("font-sans",Object.values(t)),children:e}))),Ve=(e,t)=>e?o(Re,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,ze=(e,t)=>["label"in e?Ve(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Me(e.description,t)},String(t)):null,"__html"in e?o(Pe,{...e},`rte-${t}`):null],De=d((({className:e,benefitsVersion:t,...l})=>c("div",{className:h("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in l?Be(l.icon,t):null,o("div",{children:ze(l)})]}))),Ae=d((({className:e,benefitsVersion:t="normal",benefits:l})=>l?.length?o("div",{className:h("flex gap-x-m gap-y-s flex-col",e),role:"list",children:l.map(((e,l)=>o(De,{benefitsVersion:t,...e},String(l))))}):null)),$e=d((({className:e,benefits:t})=>t?.length?o("div",{className:h("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),role:"list",children:t.flatMap(ze)}):null)),_e=d((({isTabularBenefits:e,...t})=>o(e?$e:Ae,{...t}))),je=e=>Boolean(e?.src||e?.icon),Le=(e,{className:t,buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:h("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto",t),role:"group",children:e.map(Oe(l))}):null,Oe=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:i,version:r,...s}=t||{},c=Ee(a,r),d=Ee(i,r);return n||a?.icon?o(be,{className:h("basis-full @lg:basis-auto",e),appendLeft:Fe({...a,iconVersion:c}),appendRight:Fe({...i,iconVersion:d}),version:r,text:n,...s},l?String(l):""):null},Ee=(e,t="secondary")=>{const l="secondary"===t?"color":"white";return e?.iconVersion||l},Fe=e=>je(e)&&o(le,{image:e,width:String(e?.size?.width||24),height:String(24)}),Ue=(e=0,{fixed:t}={})=>(l=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(l)||0),We=d((({priceList:e})=>e?.length?o("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",role:"list",children:e.map(He)}):null)),He=({label:e,amount:t,unit:l},n)=>c("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre",role:"listitem",children:[o(Re,{font:"font-light",size:"text-l",color:"text-secondary-text",children:e}),t?c("span",{className:"font-sans text-h6 sm:text-primary-main text-primary-text",children:[Ue(2)(t)," ",l||"₽"]}):null]},String(n)),qe=d((({className:e,tags:t})=>t?.length?o("div",{className:h("flex flex-wrap gap-xs",e),role:"list",children:t.map(Ke)}):null)),Ke=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Re,{size:"text-m",font:"font-light",children:e})},String(t)),Xe={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},Ye=d((({className:e,padding:t,defaultPadding:l,title:n,description:a,headlineVersion:i="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:h,__html:u,richVersion:p,isFullWidthTitle:g,priceList:x=[],tags:f=[],buttons:b,image:y,imageOptions:{imageAlign:v="center",directionRight:N=!0,isImageAlwaysOnRight:w,isImageSecondary:k=!1}={},backwardButton:C,children:T,...I})=>{const B=y?.src?o(le,{image:y}):null,P=o(S,{title:n,description:a,headlineVersion:i,align:r,isEmbedded:!0}),M=h?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Ce,{className:e,padding:t,defaultPadding:l,...g?{title:P}:{insetTitle:P},...Ge(B,N),isImageSecondary:k,imageAlign:v,isImageAlwaysOnRight:w,buttons:Le(b),backwardButton:C,...I,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[M?.length?o(_e,{benefitsVersion:s,isTabularBenefits:d,benefits:M}):null,u?o(Pe,{richVersion:p,__html:u,isDotted:m,itemSize:Xe[i]}):null,T,x?.length?o(We,{priceList:x}):null,Qe(f)]})})})),Ge=(e,t)=>t?{rightImage:e}:{leftImage:e},Qe=e=>e?.length?o(qe,{tags:e}):null,Je=e=>Boolean(e&&Array.isArray(e)),Ze=e=>Boolean(e&&!Array.isArray(e)&&"object"==typeof e),et=(e,t)=>{return l=e,Boolean(Ze(l)&&"string"==typeof l.$ref)?t.ref(e):Ze(e)?t.record(e):Je(e)?t.array(e):t.scalar?t.scalar(e):e;var l},tt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(lt,e),lt=(e,t)=>e&&t?Ze(e)?e[t]:Je(e)?e[parseInt(t,10)]:e:e,nt=(e,t)=>et(e,{ref:({$ref:e,...l})=>nt(e?tt(t(e),e):l,t),record:e=>Object.entries(e).map((([e,l])=>({[e]:nt(l,t)}))).reduce(((e,t)=>Object.assign(e,t)),{}),array:e=>e.map((e=>nt(e,t)))}),at=(e,t,l=[])=>{et(e,{ref:e=>t(e.$ref,l),record:e=>{for(const n in e)at(e[n],t,[...l,n])},array:e=>{for(let n=0;n<e.length;n++)at(e[n],t,[...l,n])}})};async function it(e,t){try{return e?await rt(e,t):null}catch(e){console.error(e)}return null}const rt=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),st=e=>[...new Set(e)],ot={},ct=["/portal-resources"],dt=(e,t)=>nt(e,(e=>t?.[e])),mt=(e,t)=>{const l=(e=>{const t=[];return at(e,(e=>t.push(e))),t})(e),[i,r]=n({});return a((()=>{l.length&&(async e=>Object.fromEntries((await Promise.allSettled(st(e).filter((e=>!ct.some((t=>e.startsWith(t))))).map((async e=>[e,ot[e]||=await rt(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(l).then(r)}),[l.join()]),l.length?dt(e,{...t,...i}):e};function ht(e,t={}){const l=d((t=>{const l=mt((({block:e,options:t,className:l,defaultPadding:n,padding:a,isTheme:i,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...l})}));return Object.assign(l,t),l}const ut=ht((({className:e,padding:t,defaultPadding:l,...n})=>o(g,{className:h("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...n,children:o(Ye,{defaultPadding:l||"p-6xl",padding:t,className:"grow h-full",...n})})),{childrenTypes:["UnitBlock"]}),pt=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},l=r((()=>gt(0,t?.length)),[t]),n=t?.[l];return n?o(ut,{suppressHydrationWarning:!0,...n,...e}):o(g,{...e,children:o(x,{})})})),gt=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),xt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const l=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());return t?`${a}-${n}-${l}`:`${l}.${n}.${a}`}},ft=e=>e?.replace(/[^+\d]/g,"");const bt=e=>e?{phone:ft(e)}:{},yt=(e,t="birthday")=>e?{[t]:xt(e)}:{},vt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Nt=(e,t=!0)=>({[t?"email":"mail"]:e}),wt=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:ft(e)}:{},kt=({aspectsAttributes:e,aspects:t,ev:l})=>{for(const{aspectName:n,params:a}of e)t[n??""]?.(l,a)},St="rshb-query-params";function Ct(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(St)||"";return e&&globalThis.sessionStorage?.setItem(St,e),e}function Tt(e){if(!e)throw new Error("Value should be fulfilled");return e}const It=e=>t=>{const[,l]=Tt(e.find((([e])=>e(t))));return l(t)},Bt=e=>It(e.map((([e,t])=>[e,()=>t])));Bt.if=e=>new Pt(void 0,e);class Pt{parent;predicate;unit;get entry(){return[Tt(this.predicate),Tt(this.unit)]}constructor(e,t,l){this.parent=e,this.predicate=t,this.unit=l}if(e){return new Pt(this,e)}then(e){return new Pt(this.parent,this.predicate,e)}else(e){return It([...Mt(this),[()=>!0,e]])}}const Mt=e=>[...e?.parent?Mt(e.parent):[],e.entry],Rt=e=>{const t=e.target?.closest("a");if(D(t?.href)&&!t?.href?.startsWith(globalThis.location?.origin)){e.preventDefault(),e.stopPropagation();const l=(e=>{const t=Ct();if(!D(e)||!t)return e;const l=new URL(e);for(const[e,n]of new URLSearchParams(t))l.searchParams.set(e,n);return l.toString()})(t?.href)||t?.href;if(l){Vt(t?.target)?.(l)}}},Vt=Bt([[e=>"_blank"===e,e=>globalThis.open(e,"_blank")],[e=>"_parent"===e,e=>globalThis.parent&&(globalThis.parent.location.href=e)],[e=>"_top"===e,e=>{globalThis.top&&(globalThis.top.location.href=e)}],[()=>!0,e=>globalThis.location&&(globalThis.location.href=e)]]);function zt(){return zt._impl()}zt._impl=()=>({forwardQuery:Rt}),zt.setup=e=>{zt._impl=e};const Dt=e=>e,At=(e,{resetOnSubmit:t,onSubmit:l,normalize:r}={})=>{const[s,o]=n(e),c=i(r?e=>o(e instanceof Function?t=>{const l=r(e(t));return $t(t,l)?t:l}:r(e)):o,[r]);a((()=>{r&&o(r)}),[r]);const[d,m]=n(!1),[h,u]=n({}),p=i(((e,t)=>{const{parse:l=Dt,format:n=Dt}=t||{};return{value:n(s[e]),isDirty:d||h[e],onChange:t=>{c((n=>({...n,[e]:l(t)}))),u((t=>({...t,[e]:!0})))}}}),[c,d,h]),g=i((e=>{c(e),u(e)}),[]),x=i((()=>{c(e),m(!1),u({})}),[e]),f=i((e=>{e.preventDefault(),t?x():m(!0),l&&l(s,e)}),[l,s]);return[s,{isDirty:d||Object.values(h).some(Boolean),field:p,update:g,reset:x,onSubmit:f}]},$t=(e,t)=>e&&t&&Object.keys({...e,...t}).every((l=>e[l]===t[l])),_t=d((e=>{const{className:t,title:l,children:n,...a}=e;return o(g,{className:t,defaultPadding:"p-6xl",...a,children:c("div",{className:"container max-w-[978px] space-y-lg",children:[l?o(N,{headingType:"h3",title:l,className:"@xl:text-center"}):null,n]})})}));function jt({disabled:e,onClick:t}){return l=>{!e&&t&&t(l)}}const Lt={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"},Ot={primary:h("group-data-secondary:text-primary-main group-data-secondary:bg-white","group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active"),secondary:h("group-data-secondary:text-white group-data-secondary:bg-white/20","group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active")},Et=d((({children:e,...t})=>{const l=e=>({...e,onClick:me(jt(e))}),{className:n,version:a="primary",active:i,disabled:r,type:s="button",rounded:c=!0,role:d,onClick:m}=l(t);return o("button",{className:h("font-sans px-9 py-4","flex justify-center items-center gap-xs",{"text-white bg-primary-active":i,"bg-main-gray text-main-disabled cursor-not-allowed":r,"rounded-md":c},i||r?"":h(Lt[a],Ot[a]),n),type:s,role:d,onClick:m,children:e})})),Ft=d((({className:e,onClose:t})=>o("button",{className:h("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(H,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),Ut=d((({className:e,head:t,children:l,onClose:n,onClick:a})=>{const{close:r}=de(),s=i((()=>{r(),n&&n()}),[n]);return c("div",{onClick:a,className:h("relative min-h-full bg-white pt-0 p-lg",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(Ft,{className:"absolute top-0 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:l})]})})),Wt=d((function({responseType:e,typeForm:t}){const l="OK"===e,n=l?"ResponseOKIcon":"ResponseFailIcon",{close:a}=de(),r=i((()=>{a()}),[]),s="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(Ut,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto ",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(le,{image:{icon:n,iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:l?"Ваша заявка отправлена":"Не удалось отправить заявку",description:l?s:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(Et,{type:"button",onClick:r,children:"Хорошо"})]})})})),Ht=e=>t=>l=>e(l)?[]:[t],qt=e=>o("div",{className:"h-6",children:e?o(Re,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),Kt=d((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:i,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:i.map((({d:e,fill:t,...l},n)=>{const a={...r,...l};return o("path",{d:e,fill:t||"currentColor",stroke:a.stroke,strokeLinecap:a.strokeLinecap,strokeLinejoin:a.strokeLinejoin,strokeWidth:a.strokeWidth,strokeMiterlimit:a.strokeMiterlimit},n)}))}))),Xt="appearance-none w-5 h-5 border-solid flex-none",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"}],Gt=d((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:r})=>{const s=i((e=>{n||(e.preventDefault(),r&&r(!t))}),[r,n,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Kt,{paths:Yt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return o("div",{className:e,children:c("label",{className:h("flex items-center relative group/box",Jt(n)),onClick:s,children:[o("div",{className:h(Xt,"m-0",a?"rounded-full border-2":el(t),!n&&t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:Zt(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(n),"aria-label":l}),t?d:null,Qt(l)]})})})),Qt=e=>e?o("div",{className:"ml-s",children:o(Re,{size:"text-l",font:"font-light",children:e})}):null,Jt=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",Zt=(e=!1)=>e?"radio":"checkbox",el=(e=!1)=>h("rounded border",{"bg-primary-main":e}),tl=d((({className:e,text:t,value:l,key:n,disabled:a,error:i,onChange:r})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Gt,{text:t,value:l,disabled:a,onChange:r},n),qt(i)]})));function ll(e=!1){const[t,l]=n(e),a=i((()=>l(!0)),[]),r=i((()=>l(!1)),[]),s=i((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:r,toggle:s}]}const nl=e=>e?o(Re,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,al="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",il=d((({key:e,className:t="",id:l,name:n,type:r="text",label:d,placeholder:m,value:u="",valid:p=!0,children:g,onChange:x,onFocus:f,onBlur:b,pattern:y,autoFocus:v=!1,isTextarea:N=!1})=>{const w=s(null),k=i((e=>{x&&x(e.target?.value||"")}),[x]);a((()=>{v&&w.current?.focus()}),[v,w]);const S="w-full border rounded-md text-primary-text outline-none p-m",C=g?"pr-3xl":"",T=rl(p);return c("div",{className:h("relative",t),children:[c("label",{className:"space-y-xs",children:[nl(d),N?o("textarea",{className:h("block resize-y min-h-24",S,T),id:h("textarea",l),name:n||l,placeholder:m,value:u,onChange:k,onFocus:f,onBlur:b},e):o("input",{type:r,className:h("h-14",S,C,T),ref:w,id:l,name:n||l,placeholder:m,value:u,onChange:k,onFocus:f,onBlur:b,pattern:y},e)]}),g]})})),rl=e=>e?al:"border-error",sl=e=>e?.text||e?.key||"";function ol(e,t,l,n){a((()=>{if(e&&l)return e.addEventListener(t,l,n),()=>{e.removeEventListener(t,l,n)}}),[e,t,l])}function cl(e){const t=s(null),l=i((l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()}),[e]);return ol(globalThis.document,"click",l),t}const dl=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,ml=d((({popupRef:e,options:t,value:l,query:n,onChange:a,iconVersion:i})=>t?.length?o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",ref:e,children:dl(t,n).map((e=>c("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem","aria-selected":e.key===l?.key,onClick:t=>{t.stopPropagation(),a&&a(e)},children:[o("span",{className:"min-h-6",children:sl(e)}),o(H,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:i,className:h("absolute right-4 pt-3xs",{hidden:e.key!==l?.key})})]},e.key)))}):null));function hl({isOpen:e,options:t,value:l,query:n,onChange:r,onClose:c,iconVersion:d}){const m={open:(e,t)=>ce.fire("popup",{type:"open",popup:e,...t}),update:(e,t)=>ce.fire("popup",{type:"update",popup:e,...t}),close:()=>ce.fire("popup",{type:"close"})},h=i((()=>{m.close(),c&&c()}),[c]),u=i((e=>{h(),r&&r(e)}),[h,r]),p=s(null),g=cl(h);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:i,left:r,width:s,height:c}=a.getBoundingClientRect();m.update(o(ml,{popupRef:g,options:t,value:l,query:n,onChange:u,iconVersion:d}),{top:i+window.scrollY+c,left:r,width:s})}),[e,t,l,n,u]),p}const ul=d((({className:e,label:t,options:l=[],value:a,valid:r=!0,isBorder:s=!0,placeholder:d="",isSearch:m=!1,iconVersion:u="black",onChange:p,disabled:g})=>{const[x,{setFalse:f,setTrue:b}]=ll(),[y,v]=n(""),N=g||0===l.length,w=x&&!N,k=i((()=>{v(""),f()}),[]),S=hl({isOpen:x,options:l,value:a,query:y,onChange:p,onClose:k,iconVersion:u});return c("div",{className:h("space-y-xs",e),children:[nl(t),c("div",{className:h("relative",w?"z-20":"z-10"),ref:S,children:[c("div",{className:h("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",gl(s,r,N)),onClick:w?k:b,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:sl(a)||d}),pl(w,u)]}),m&&w?o("div",{className:h("absolute top-0 w-full z-20"),children:o(il,{type:"text",autoFocus:!0,value:y,onChange:v})}):null]})]})})),pl=(e,t)=>o(H,{className:h("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),gl=(e,t,l)=>h(e?"border rounded-md ":"",e&&!l?"hover:border-primary-hover":"",l?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),xl=()=>{},fl=({today:e,firstDayOfWeek:t,totalDays:l,currentMonth:n,currentYear:a,min:i,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const h=[];for(let c=0;c<7;c++)if(0===m&&c<t)h.push(o("td",{},`empty-${c}`));else if(d>l)h.push(o("td",{},`empty-${c}`));else{const t=new Date(a,n,d),l=bl(t,e),c=yl(t,i,r);h.push(o("td",{children:o("div",{className:vl(l,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:h},`row-${m}`))}return c},bl=(e,t)=>t&&e.toDateString()===t.toDateString(),yl=(e,t,l)=>t&&e.getTime()<t.getTime()||l&&e.getTime()>l.getTime(),vl=(e,t)=>h("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),Nl=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],wl=d((({today:e,currentMonth:t,currentYear:l,min:n,max:a,onDateSelect:s=xl,setValue:d=xl})=>{const m=i((e=>{s(e),d(!1)}),[]),{firstDayOfWeek:h,totalDays:u}=r((()=>({firstDayOfWeek:new Date(l,t,1).getDay()-1,totalDays:new Date(l,t+1,0).getDate()})),[l,t]);return c("table",{className:"mx-auto",children:[o("thead",{className:"text-gray font-light",children:o("tr",{children:Nl.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:fl({firstDayOfWeek:h,today:e,totalDays:u,currentYear:l,currentMonth:t,min:n,max:a,onDateClick:m})})]})})),kl=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],Sl=kl.map((e=>({key:e}))),Cl=Array.from({length:(new Date).getFullYear()-1940+1},((e,t)=>1940+t)).reverse().map((e=>({key:String(e)}))),Tl={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Il={className:"min-w-32",iconVersion:"black",isBorder:!1},Bl=d((({className:e="",label:t="",value:l,valid:a=!0,minDate:r,maxDate:s,onChange:d})=>{const[m,{setValue:u}]=ll(!1),[p,g]=n(l?.getMonth()||(new Date).getMonth()),[x,f]=n(l?.getFullYear()||(new Date).getFullYear()),{handlePrevMonth:b,handleNextMonth:y,handleSelectMonth:v,handleSelectYear:N,monthsOptions:w,yearsOptions:k,handleChangeVisibleCalendar:S,ref:C}=(({onShowCalendar:e,showCalendar:t,selectedMonth:l,onMonthSelect:n,onYearSelect:a,selectedYear:r})=>{const s=cl(i((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:i((()=>e(!t)),[t]),handleNextMonth:i((()=>{l+1<=11?n(l+1):(n(0),a(r+1))}),[l]),handlePrevMonth:i((()=>{l-1>=0?n(l-1):(n(11),a(r-1))}),[l]),handleSelectMonth:i((({key:e})=>n(kl.indexOf(e))),[]),handleSelectYear:i((({key:e})=>a(Number(e))),[]),monthsOptions:Sl,yearsOptions:Cl,ref:s}})({onYearSelect:f,onMonthSelect:g,onShowCalendar:u,selectedYear:x,selectedMonth:p,showCalendar:m});return c("div",{className:h("space-y-xs",e),ref:C,children:[nl(t),c("div",{className:"relative",children:[Pl(S,l,a),m?c("div",{className:"absolute bg-white z-20 select-none bottom-full",children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:b,children:o(H,{...Tl,className:"-rotate-90 cursor-pointer"})}),o(ul,{onChange:v,value:{key:kl[p]},options:w,...Il}),o(ul,{onChange:N,value:{key:String(x)},options:k,...Il}),o("div",{className:"my-auto",onClick:y,children:o(H,{...Tl,className:"rotate-90 cursor-pointer"})})]}),o(wl,{today:l,currentMonth:p,currentYear:x,onDateSelect:d,min:r,max:s})]}):null]})]})})),Pl=(e,t,l)=>c("div",{onClick:e,className:h("flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",l?"border-gray":"border-error"),children:[o(w,{children:t&&xt(t)}),o(H,{...Tl,name:"CalendarIcon"})]}),Ml=d((({className:e,label:t,error:l,...n})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Bl,{label:t&&n?.errors?`${t}*`:t,valid:Boolean(!l),...n}),qt(l)]}))),Rl=d((({className:e,label:t,value:l="",placeholder:n,error:a,onChange:i,onBlur:r,isTextarea:s,type:d,...m})=>c("div",{className:h("shrink-0 w-full",e),children:[o(il,{type:d||"text","aria-label":t,label:t&&m?.errors?`${t}*`:t,valid:Boolean(!a),value:l,onChange:i,onBlur:r,isTextarea:s,placeholder:m?.errors&&!t?`${n}*`:n}),qt(a)]}))),Vl=d((({className:e="",label:t,error:l,...n})=>c("div",{className:e,children:[o(ul,{...n,valid:!l,label:n?.errors?`${t}*`:t}),qt(l)]}))),zl="Некорректно заполненное поле",Dl=Ht((e=>null!=e&&""!==e))(zl),Al=Ht((e=>e?.key&&""!==e?.key))(zl),$l=Ht((e=>"string"==typeof e&&e.length>1))(zl),_l=Ht((e=>"string"==typeof e&&(10===e.length||12===e.length)))(zl),jl=(Ll=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,Ht((e=>"string"==typeof e&&Ll.test(e))))(zl);var Ll;const Ol=Ht((e=>"boolean"==typeof e&&e))("Согласие обязательно"),El={typeForm:Dl,surname:$l,name:$l,region:Al,addressBranch:Al,phone:jl,secondaryPhone:jl,birthday:Dl,email:Dl,fullName:$l,inn:_l,partnerComments:Dl,collectionCount:Dl,comment:Dl,acquiringType:Al,feedbackType:Al,feedbackMethod:Al,serviceType:Al,serviceDirection:Al,meetingDay:Dl,product:Dl,localities:Dl,consentDataProcessing:Ol,annualRevenue:Dl},Fl=e=>{const t=(e=>Object.values(e.filter((e=>e)))?.map((e=>e.name)))(e.filter((e=>"required"in e&&e.required)));return Object.fromEntries(t.map((e=>[e,El?.[e]])))},Ul=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},Wl=(e,t,l=!1)=>l?Ul(e,t):e,Hl=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],ql=d((({field:e,input:t})=>o(Vl,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Hl,...Wl(e("acquiringType"),El.acquiringType,t?.required)}))),Kl=(e="")=>Boolean("trade"===e||"all"===e),Xl=e=>null!=e,Yl=new Map,Gl=e=>Boolean(e?.every((e=>Array.isArray(e)?Gl(e):!e||"string"==typeof e))),Ql=e=>Gl(e)?e.toString():"";function Jl(e,t,{fallback:l,cache:i}={}){const s=r((()=>Zl(e)),[e]),[o,c]=n(void 0),[d,m]=n(void 0);a((()=>{if(!s.some(Xl))return;let e=!1;const l=(t,l)=>{e||(c(t),m(l))};return(async()=>{try{l(await((e,t=Yl)=>l=>{const n=Ql(l),a=t.get(n);if(n&&Xl(a))return a;const i=e(...l);return n&&Xl(i)&&t.set(n,Promise.resolve(i)),i})(t,i)(s))}catch(e){l(void 0,e)}})(),()=>{e=!0}}),[t,i,s]);const h=l&&(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)&&l[s[0]];return{data:!o&&h?h:o,error:d,mutate:()=>Promise.resolve(void 0)}}function Zl(e){return Array.isArray(e)?e:e instanceof Function?Zl(e()):[e]}const en=[];const tn=async e=>await it(e,{method:"GET"})||en;function ln(){const{data:e}=Jl("/api/v1/branchesByRegions",rt);return Array.isArray(e)?e:[]}const nn=d((({field:e,input:t,isPremium:l=!1})=>{const n=e("region"),i=n?.value?.key,r=n?.value?.text,s=l?ln()?.find((e=>e?.region===r))?.branches:function(e){const{data:t}=Jl(e?`/api/v1/branches?regionCode=${e}`:null,tn);return t||en}(i)?.filter((e=>e?.address));return a((()=>{""!==n?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[n?.value]),o(Vl,{label:"Отделение",placeholder:"Выберите отделение",options:(s||[]).map((({address:e=""})=>({key:e,text:e}))),...Wl(e("addressBranch"),El.addressBranch,t?.required),isSearch:!0})})),an=(e,{normalize:t,format:l})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!l?a:l(a),onFocus:m,onBlur:h}},rn=(e,t,l)=>Math.max(t,Math.min(e,l));function sn(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function on({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,d={backgroundSize:`${(100*(s>t?s-t:0)/(l-t)).toFixed(2)}% 100%`};return c("div",{children:[e.length?o("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-m",children:e.map(((e,t)=>o("div",{className:h("w-2 h-2 rounded-full",s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,o("div",{className:"absolute inset-x-0 -bottom-1 px-m leading-[18px]",children:o("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:d,type:"range",min:t,max:l,step:n,value:s,disabled:i,onChange:t=>{const l=sn(t.target?.value),n=e.length?e[l]:l;r&&r(n||0)}})})]})}const cn=1,dn=100,mn=d((e=>{const{className:t,title:l,items:n=[],list:a=[],min:r=(a.length?0:cn),max:s=(a.length?a.length-1:dn),step:d=1,value:m=a[0]||r,disabled:u=!1,onChange:p}=e,g=an(e,{normalize:(e=0)=>a.length?hn(a)(e):rn(e,r,s),format:Ue()}),x=i((e=>{p&&p(sn(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[l?o(Re,{size:"text-m",font:"font-light",color:"text-primary-text",children:l}):null,o("input",{className:h("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",al,"disabled:border-gray disabled:bg-main-divider"),disabled:u,onChange:x,...g}),on({list:a,min:r,max:s,step:d,disabled:u,value:m,onChange:p})]}),un(n)]})})),hn=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),un=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Re,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),pn=["От 1 000 ₽","До 1 000 000 000 ₽"],gn=d((({field:e})=>o(mn,{title:"Сумма, ₽",items:pn,min:1e3,max:1e9,...e("amount")}))),xn=d((({field:e,input:t})=>o(Rl,{className:"col-span-2",...Wl(e("comment"),El.comment,t?.required),placeholder:"Ваше сообщение",isTextarea:!0}))),fn=[{key:"ULTRASERVICE",text:"Ультра"},{key:"PREMIUMSERVICE",text:"Премиум"}],bn=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],yn=[{text:"Задать вопрос по продуктам и услугам",key:"FEEDBACK"},{text:"Качество обслуживания",key:"FEEDBACK_QS"}],vn=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],Nn=[{key:"Карта дебетовая",text:"Карта дебетовая"},{key:"Карта кредитная",text:"Карта кредитная"},{key:"Потребительский кредит",text:"Потребительский кредит"},{key:"Ипотечный кредит",text:"Ипотечный кредит"},{key:"Вклад",text:"Вклад"},{key:"Накопительный счет",text:"Накопительный счет"}],wn="/api/v1/outservice/outserviceregions",kn=d((({field:e})=>o(Vl,{label:"Способ получения ответа",options:vn,...Ul(e("feedbackMethod"),El.feedbackMethod)}))),Sn=d((({field:e})=>{const t=e("feedbackType");return a((()=>{"FEEDBACK"===t?.value?.key&&e("serviceDirection")?.onChange?.(bn[0])}),[t?.value]),o(Vl,{label:"Тема",placeholder:"Выберите тему",options:yn,...Ul(t,El.feedbackType)})})),Cn=e=>"OUTSERVICE"===e?wn:void 0,Tn=d((({field:e})=>o(tl,{...e("isClient"),text:'Являюсь клиентом банка АО "Россельхозбанк"'})));function In(e="/api/v1/regions"){const{data:t}=Jl(e,rt);return Array.isArray(t)?t:[]}const Bn=d((({field:e,input:t})=>{const l=e("region")?.value?.key,n=In(wn)?.find((e=>e.code===l))?.localities?.map((e=>({key:e,text:e})));return a((()=>{""!==l&&e?.("localities")?.onChange?.("")}),[l]),o(Vl,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:n,...Wl(e("localities"),El.localities,t?.required),isSearch:!0})})),Pn=d((({field:e})=>o(Rl,{label:"Отчество (Обязательно, при наличии)",...e("middleName")}))),Mn=d((({field:e,input:t})=>{const{required:l,...n}=t;return o(Rl,{label:"Имя",...Wl(e("name"),El.name,l),...n})})),Rn=d((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>c("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>n&&n(!e),children:[o("div",{className:h("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:o("div",{className:h("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(Re,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),Vn=d((({field:e})=>Kl(e("acquiringType")?.value?.key)?o(Rn,{type:"radio",text:"Хочу онлайн-кассу",...e("onlineCheckout")}):null)),zn=d((({field:e,input:t})=>{const{required:l,...n}=t;return o(Rl,{...Wl(e("partnerComments"),El.partnerComments,l),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...n})})),Dn=e=>"_"===e,An=e=>/\d/.test(e),$n=e=>Dn(e)||An(e),_n=[..."+7 (___) ___-__-__"],jn=_n.findIndex(Dn),Ln=_n.map(((e,t)=>$n(e)?_n.slice(0,t).filter($n).length:-1));const On=d((({children:e,onChange:t,...l})=>{const n=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),l=_n.map(((e,l)=>An(e)?e:t.charAt(Ln[l])||e)),n=Ln.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(jn,n)):l).join("")}(e))),[t]),a=i((e=>{"+7 ("===e&&(t&&t(""))}),[]);return o(il,{...l,onChange:n,onFocus:e=>n(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),En=d((({className:e,label:t,value:l,error:n,onChange:a,onBlur:i,...r})=>c("div",{className:h("shrink-0 w-full",e),children:[o(On,{"aria-label":t,label:r?.errors?`${t}*`:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i,placeholder:"+7 (___) ___-__-__"}),qt(n)]}))),Fn=d((({field:e,input:t})=>o(En,{label:"Телефон",...Wl(e("phone"),El.phone,t?.required)}))),Un=d((({field:e})=>Kl(e("acquiringType")?.value?.key)?o(Rn,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Wn=d((({field:e})=>o(Vl,{placeholder:"Выберите продукт",label:"Продукт",options:Nn,...Ul(e("product"),El.product)}))),Hn=d((({field:e,input:t,url:l})=>{const n=In(l);return o(Vl,{label:"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>n?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[n]),...Wl(e("region"),El.region,t?.required)})})),qn=d((({field:e,input:t})=>{const l=ln(),n=r((()=>l?.map((({region:e})=>({key:e,text:e})))),[l]);return o(Vl,{label:"Регион",placeholder:"Выберите регион",options:n,...Wl(e("region"),El.region,t?.required)})})),Kn=d((({field:e})=>{const t=e("secondaryPhone");return o(En,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?Ul(t,El.secondaryPhone):t})})),Xn=d((({field:e})=>o(Vl,{label:"Направление обслуживания",placeholder:"Выберите направление",options:bn,...Ul(e("serviceDirection"),El.serviceDirection)}))),Yn=d((({field:e,input:t})=>o(Rl,{label:"Фамилия",...Wl(e("surname"),El.surname,t?.required)}))),Gn=["От 1 мес","До 15 лет"],Qn=d((({field:e})=>o(mn,{title:"Срок, месяцев",items:Gn,min:1,max:180,...e("term")}))),Jn=d((({field:e})=>o(Vl,{label:"Тип обслуживания",options:fn,...Ul(e("serviceType"),El.serviceType)}))),Zn=d((({name:e,text:t,value:l,checked:n,onChange:a,className:i})=>o("div",{className:i,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:h(al.split(" ").filter((e=>"rounded"!==e)),Xt,"flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full","checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main"),type:"radio",value:l,name:e,checked:n,onChange:e=>a?.(e.target.value),role:"radio"}),t?o(Re,{color:"text-primary-text",children:t}):null]})}))),ea=["currencyControl","documentOperations","conversionTransactions","otherIssues"],ta=d((({field:e})=>{const{value:t,onChange:l}=e("vedTypes");return a((()=>{"currencyControl"!==t&&(e?.("inn")?.onChange?.(""),e?.("region")?.onChange?.(""))}),[t]),c("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:[o(Zn,{name:"vedTypes",text:"Валютный контроль",value:"currencyControl",checked:"currencyControl"===t,onChange:l}),o(Zn,{name:"vedTypes",text:"Документарные операции",value:"documentOperations",checked:"documentOperations"===t,onChange:l}),o(Zn,{name:"vedTypes",text:"Конверсионные операции",value:"conversionTransactions",checked:"conversionTransactions"===t,onChange:l}),o(Zn,{name:"vedTypes",text:"Иные вопросы ВЭД",value:"otherIssues",checked:"otherIssues"===t,onChange:l})]})})),la=(e,t)=>(l,n)=>{const{required:a,...i}=l,r="ULTRASERVICE"===t||"PREMIUMSERVICE"===t,s={surname:o(Yn,{field:e,input:l}),name:o(Mn,{field:e,input:l}),middleName:o(Pn,{field:e}),phone:o(Fn,{field:e,input:l}),email:o(Rl,{label:"Электронная почта",...Wl(e("email"),El.email,a),...i}),fullName:o(Rl,{label:"ФИО",...Wl(e("fullName"),El.fullName,a),...i}),inn:o(Rl,{label:"ИНН",type:"number",...Wl(e("inn"),El.inn,a)}),comment:o(xn,{field:e,input:l}),region:r?o(qn,{field:e}):o(Hn,{field:e,input:l,url:Cn(t)}),addressBranch:o(nn,{field:e,input:l,isPremium:r}),birthday:o(Ml,{label:"Дата рождения",...Wl(e("birthday"),El.birthday,a)}),desiredMeetingDate:o(Ml,{label:"Желаемая дата встречи",...Wl(e("desiredMeetingDate"),El.meetingDay,a)}),product:o(Wn,{field:e}),localities:o(Bn,{field:e,input:l}),isClient:o(Tn,{field:e}),consentToReceiveMaterials:o(tl,{...e("consentToReceiveMaterials"),text:"Согласен на получение информационных и аналитических материалов по электронной почте"}),partnerComments:o(zn,{field:e,input:l}),collectionCount:o(Rl,{label:"Количество объектов инкассации",type:"number",...Wl(e("collectionCount"),El.collectionCount,a)}),acquiringType:o(ql,{field:e,input:l}),onlineCheckout:o(Vn,{field:e}),posTerminal:o(Un,{field:e}),serviceType:o(Jn,{field:e}),term:o(Qn,{field:e}),amount:o(gn,{field:e}),annualRevenue:o(Rl,{label:"Годовая выручка, ₽",...Wl(e("annualRevenue"),El.annualRevenue,a)}),vedTypes:o(ta,{field:e}),feedbackType:o(Sn,{field:e}),feedbackMethod:o(kn,{field:e}),serviceDirection:o(Xn,{field:e}),bankEmpolee:o(Rl,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e("bankEmpolee")}),applicationDate:o(Rl,{label:"Дата и время обращения в Банк",...e("applicationDate")}),secondaryPhone:o(Kn,{field:e})};return function({input:e,field:t}){const{condition:l}=e,{value:n}=t(l?.name||"");return!l||l?.values?.find((e=>e===(n?.key??n)))}({input:l,field:e})?o("div",{children:s[l?.name]},String(n)):null},na=e=>{const{acquiringType:t,onlineCheckout:l,posTerminal:n,amount:a,term:i,annualRevenue:r,serviceType:s,feedbackType:o,vedTypes:c,region:d,...m}=e,h=t||r?(e=>{const{acquiringType:t,onlineCheckout:l=!1,posTerminal:n=!1,term:a,amount:i,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${Kl(t?.key)?`/Онлайн касса=${l}/POS-терминал=${n}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${i}/Срок=${a}/Выручка=${r}`})(e):null,u={...m,...ia(c),...aa(d),...h?{partnerComments:h}:{},...s?{typeForm:s}:{},...o?{typeForm:o}:{}};return Object.fromEntries(Object.entries(u)?.map((([e,t])=>[e,t?.key||t])))},aa=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},ia=e=>e?{vedTypes:Object.fromEntries(ea.map((t=>[t,t===e])))}:{},ra={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:Hl[0],serviceType:fn[0],feedbackType:yn[0],feedbackMethod:vn[0],serviceDirection:bn[0],vedTypes:ea[0],birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1},sa=(e,t="")=>{const l=Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||ra[e.name]])));return l?.serviceType&&"PREMIUMSERVICE"===t&&(l.serviceType=fn[1]),{...l,typeForm:{key:t,text:""}}},oa=d((({text:e,link:t})=>c(w,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Re,{children:e}):null,t?o(be,{href:t.href,ariaLabel:"условия передачи данных",target:t.target||"",className:"!text-left text-primary-main",children:o(Re,{children:t.text})}):null]}))),ca=(e,t)=>o(Et,{className:h("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),da=(e,t,l)=>c("div",{className:"flex col-span-2 gap-xs flex-col w-full items-baseline",children:[e?c("div",{children:[c("div",{className:"flex gap-3 items-center",children:[o(Gt,{...e}),o(oa,{link:t})]}),qt(Ul(e,Ol).error)]}):o(oa,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),ca(l)]}),ma={send:async function(e,t=!1){const{typeForm:l,region:n,phone:a="",email:i,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:h,serviceDirection:u,...p}=e,g=t&&"Юридическое лицо / ИП"!==u,x=g?"/api/v1/lead":"/api/v1/sendcorporatelead",f={typeForm:l,...vt(n,g),...Nt(i,g),...bt(a),...yt(s,"desiredMeetingDate"),...g?yt(r):{inn:o},..."FEEDBACK"===l?{}:{addressBranch:c,bankEmpolee:m,applicationDate:h,...wt(d)},...p};try{const e=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(f)});return e?.ok?await e.json():null}catch(e){return null}}},ha=d((({className:e,title:t,typeForm:l="",sections:r=[],button:s,link:d,endpoint:m,additionalParams:u,isContacts:p,data:g,...x})=>{const f=r?.flatMap((e=>e?.inputs))||[],b=sa(f,l),[y,v]=n(""),w=i((async(e,t)=>{const n=xa(f,e),a=(i=Fl(n),e=>e&&Object.entries(i).flatMap((([t,l])=>l(e[t])))||[]);var i;if(a(e)?.length)return"Fail";const r=na({...e,...u}),s=await ma.send(r,"lead"===m)?"OK":"Fail";if(v(s),s){(e=>{const{open:t,close:l}=de();return{open:(l={})=>t(o(Wt,{...e}),l),close:l}})({responseType:s,typeForm:l}).open()}if("OK"===s&&g){const e=zt();kt({aspectsAttributes:g,aspects:e,ev:t})}return s}),[]),[,{field:k,onSubmit:S,reset:C}]=At(b,{onSubmit:w}),T=ga(f)?.name;return a((()=>{"OK"===y&&(v(""),C())}),[y]),c(_t,{className:h("container space-y-m",e),title:t,...x,children:[c("form",{onSubmit:S,children:[r.map(((e,t)=>c("div",{className:h(pa(e.columns),"grid gap-x-m"),children:[ua(e.title),(e?.inputs||[])?.map(la(k,l))]},`section-${t}`))),da(T?k("consentDataProcessing"):void 0,d,s)]}),p?c("div",{className:"space-y-m",children:[o(N,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"@xl:text-center"}),c("div",{className:"flex sm:justify-center gap-xl",children:[c("a",{className:"flex gap-s items-center text-primary-text no-underline",href:"tel:8 (800) 200-78-70","aria-label":"телефон 8 (800) 200-78-70",children:[o(le,{image:{icon:"PhoneIcon"},width:"24",height:"24"}),o("span",{children:"8 (800) 200-78-70"})]}),c("a",{className:"flex gap-s items-center text-primary-text no-underline","aria-label":"почта ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[o(le,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),ua=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Re,{size:"text-h6",children:e})}):null,pa=e=>2===e?"@xl:grid-cols-2":"",ga=e=>e?.find((e=>"consentDataProcessing"===e?.name)),xa=(e,t)=>e.filter((e=>e)).filter((e=>!e?.condition||e?.condition.values.find((l=>{const n=t?.[e?.condition?.name??""];return"secondaryPhone"===e.name?Boolean(t.secondaryPhone):l===(n?.key??n)})))),fa=d((({title:e,description:t})=>{const l=we();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(le,{image:{icon:"MagnifierIcon",iconVersion:"normal"},width:"120",height:"120"}),o(S,{title:e,description:t,headlineVersion:l?"L":"S",isEmbedded:!0,className:"space-y-s"})]})})),ba=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",ya=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`});function va(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=r((()=>({threshold:Na(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function Na(e=0){const t=Math.round(10*e);return Array.from({length:t}).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const wa=d((({className:e,style:t,idx:l,activeIndex:n,observerOptions:a,children:r,onIntersection:s})=>{const c=va(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return o("div",{className:h("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(l===n),ref:c,role:"listitem",children:r})})),ka=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],Sa=d((({className:e,itemClassName:t,containerRef:l,activeIndex:n,visibleItemCount:a=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:u,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:x})=>{const f={sensitivity:1,rootRef:l},b=s([]),y=i(((e,t)=>{const l=[...b.current||[]];l[e]=t,b.current=l,g&&g(l),x&&x(Ta(l))}),[g,x]),v=a>0?r*Number(a)-1:0,N="vertical-list"===d,w="horizontal-list"===d,k={...w?Ca(c,v):{},...N?ya(u):{},gap:`${r}px`};return o("div",{className:h("box-border overflow-auto no-scrollbar",d,e),style:k,ref:l,role:"list",children:(S=(e,l)=>o(wa,{className:h(m,a?ka[a-1]:"",{"h-full":N},t),style:w?Ca(c/4):{},activeIndex:n,idx:l,observerOptions:f,onIntersection:y,children:e},String(l)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(p)});var S})),Ca=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Ta=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Ia={"horizontal-list":"w-6","vertical-list":"h-6"},Ba=({activeIndex:e,onClick:t,listType:l="horizontal-list"})=>(n,a)=>o("div",{className:h("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",a===e?Ia[l]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),Pa=({activeIndex:e,onClick:t})=>(l,n)=>{const a=n===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur",r=a?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=a?"text-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:h("max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap",i),children:[o("div",{className:r,children:l?.title}),o("div",{className:h("text-secondary-text font-light",s),children:l?.description})]},String(n))},Ma=e=>e,Ra=(e=Ma)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Va=Ra(),za=(e=Ma)=>Ra((t=>-e(t))),Da=za(),Aa=e=>t=>e.scrollWidth/t,$a=e=>(t,l)=>{e.scrollBy({left:l*Aa(e)(t),behavior:"smooth"})},_a=({itemCount:e,onVisibleIndicesChange:t})=>{const l=s(null),[a,r]=n([]),o=i((e=>{r((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})),t&&t(e)}),[t]),[c,d]=a.length?[za()(a),Ra()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;l.current&&(m?$a(l.current)(e,-1):(t=l.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{l.current&&(h?$a(l.current)(e,1):l.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]),g=i(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{l?.current&&l.current.children[e]?.scrollIntoView(t)}),[l]);return[l,{scrollLeft:u,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},ja={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},La=d((({className:e="",activeIndex:t=0,dotCount:l=0,listType:n="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=we(),[u,p]=_a({itemCount:s.length}),g=Oa(Boolean(s?.length));a((()=>{s?.length&&t>=0&&u?.current&&p.scrollTo(t,g)}),[t]);const x=i((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(Sa,{containerRef:u,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(Pa({activeIndex:t,onClick:x}))}):l?o("div",{className:h("flex gap-xs",ja[n],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:l}).fill(null).map(Ba({activeIndex:t,onClick:x,listType:n}))}):null})),Oa=(e=!1)=>({behavior:e?"auto":"smooth"}),Ea=d((({className:e,disabled:t,...l})=>o(be,{rounded:!0,className:h("group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black",t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main",e),disabled:t,...l,children:o(le,{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"})}))),Fa=d((e=>o(Ea,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ua=d((e=>o(Ea,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Wa="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",Ha=d((({className:e,scroll:t,hasBlur:l,arrowsPadded:n,isBottom:a})=>{const{canScrollLeft:i,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=n&&!a;return c("div",{className:e,children:[l?qa(t):null,i?o(Fa,{className:h(Ka(a),m?"left-1":"left-0"),onClick:s}):null,r?o(Ua,{className:h(Ka(a),m?"right-1":"right-0"),onClick:d}):null]})})),qa=e=>c("div",{children:[e.canScrollLeft?o("div",{className:h(Wa,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:h(Wa,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Ka=(e=!1)=>h("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),Xa=d((({className:e,version:t,gap:l=14,padding:n=16,visibleItemCount:a=1,listType:i="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:u,showDots:p,children:g,onVisibleIndicesChange:x,navButtons:f})=>{const b=Array.isArray(g)?g.length:0,[y,v]=_a({itemCount:b,onVisibleIndicesChange:x}),[N]=v.visibleIndicesRange;return c("div",{className:h(e,"vertical-list"===i?"relative h-full":""),children:[o(Sa,{containerRef:y,activeIndex:N,visibleItemCount:a,gap:l,padding:n,listType:i,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(Ha,{className:h(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:u,isBottom:Boolean(f?.length)}),o(La,{className:h(!p&&"lg:hidden"),activeIndex:N,dotCount:b,listType:i,version:t,navButtons:f,containerRef:y,containerScroll:v})]})})),Ya=({blocksToRender:e,...t})=>o(Xa,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:P(e,{...t.options,parent:t.block,renderProps:(e,t,l)=>o("div",{className:h("relative min-w-80",ba(!0)),children:I(e,t)},String(l))})}),Ga=e=>e%2!=0,Qa=d((({textNode:e,iconNode:t,tag:l,onClick:n,justifyContent:a="between",className:i,role:r,...s})=>c(l,{tag:l,className:h("flex items-center w-full gap-1","between"===a?"justify-between":"justify-center",i),onClick:n,role:r,...s,children:[e?o("div",{children:e}):null,t?o("div",{children:t}):null]}))),Ja=d((({className:e="",label:t,icon:l,dataTheme:n="pc",disabled:a=!1,onClick:i})=>o(Qa,{tag:"button",onClick:i,disabled:a,"data-theme":n,justifyContent:"center",role:"button",className:h("py-4 border border-transparent outline-none focus:border-primary-text space-x-s",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),textNode:o(Re,{size:"text-h4",children:t}),iconNode:l?o(le,{image:{icon:l,iconVersion:"white"},className:"my-auto",width:"20",height:"20"}):null}))),Za=({isUnfolded:e,onToggle:t})=>o(Ja,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),ei=d((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=n(l),d=i((()=>{o((e=>!e))}),[]),m=a({isUnfolded:s,onToggle:d}),h=r?r({isUnfolded:s,onToggle:d}):null;return c("div",t?{className:e,role:"group",children:[h,m]}:{className:e,role:"group",children:[m,h]})}));const ti=d((({className:e="",isUnfolded:t,children:l})=>{const n=s(null),i=function(e,t){const l=s(null);return a((()=>{const t=l?.current;if(!t)return;const n=new ResizeObserver((l=>{e(t,l[0])}));return n.observe(t),()=>{n.disconnect()}}),[e,...t]),l}((e=>{n.current&&(n.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} `,children:o("div",{className:e,ref:i,children:l})})})),li=["ArrowDownIcon","ArrowUpIcon"],ni="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",ai=({topItemsCount:e=0,label:t="",block:l,blocksToRender:n=[],...a})=>{const[i,r]=e>0?[n.slice(0,e),n.slice(e)]:[n,[]];return c("div",{className:h("space-y-2xs",{hidden:!n.length}),children:[c("div",{className:h(ni),children:[P(i,{...a.options,parent:l}),Ga(i.length)?o(pt,{className:"col-span-6",...a}):null]}),o(ei,{renderFoldableSection:({isUnfolded:e})=>c(ti,{className:h(ni),isUnfolded:e,children:[P(r,{...a.options,parent:l}),Ga(r.length)?o(pt,{className:"col-span-6",...a}):null]}),renderFoldButton:({isUnfolded:l,onToggle:n})=>o(Ja,{className:h({hidden:e<1}),disabled:!r?.length,label:t,icon:li[Number(l)],dataTheme:a.options?.page?.colorPalette,onClick:n})})]})},ii=d((({blocksSection:e,blocksToRender:t=[],notFound:l,...n})=>{switch(e?.view){case"grid":return c("div",{children:[ri(l,t),ai({...e,...n,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[ri(l,t),Ya({...n,blocksToRender:t})]});default:return null}})),ri=(e,t)=>e&&!t.length?o(fa,{...e}):null,si=e=>t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:`sep-${n}`},l):[l]),[]),oi=d((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>o(Rn,{text:l?.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(!t)return;const a=e?.includes(l);t(n?a?(e||[]).filter((e=>e!==l)):[...e||[],l]:a?[]:[l])})(l.value),type:n?"checkbox":"radio"},l.value))))),ci=d((({children:e,filtrationSchema:t,resetButton:l,field:n,reset:a})=>c("form",{className:"flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0",children:[c("div",{className:"flex flex-col @4xl:flex-row gap-xl",children:[e,si(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(di(n)).filter(Boolean))]}),l?o("div",{children:o(Et,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:l?.text})}):null]}))),di=e=>([t,l])=>{const n=l?.type;return"array"===n?mi(t,e)(l):null},mi=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return c("div",{className:"flex-1",children:[l?.title?o("div",{className:"mb-m",children:o(Re,{size:"text-m",font:"font-medium",color:"text-primary-text",children:l.title})}):null,o(oi,{items:n,multiple:!l?.single,...t(e)})]},e)};function hi(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const ui=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,pi=(e,t)=>Object.entries(e).map((([l,n])=>"number"==typeof n?Array.isArray(t[l])?((e,t)=>l=>ui(t[e])||ui(l[e])||l[e]?.includes(t[e]))(l,e):((e,t)=>l=>ui(t[e])||ui(l[e])||gi(t[e])<=gi(l[e]))(l,e):"object"==typeof n&&"min"in n&&"max"in n?((e,t)=>l=>ui(t[e])||ui(l[e])||gi(t[e]?.min)>=gi(l[e]?.min)&&gi(t[e]?.min)<=gi(l[e]?.max))(l,e):Array.isArray(n)?((e,t)=>l=>ui(t[e])||ui(l[e])||t[e]?.every((t=>l[e]?.includes(t))))(l,e):((e,t)=>l=>ui(t[e])||ui(l[e])||t[e]===l[e])(l,e))).every((e=>e(t))),gi=e=>Number(e||0),xi=(e,{block:t,page:l,normalize:n=Dt})=>{const a=t?.blocks||[],[i,{field:s,reset:o,update:c}]=At(e),d=r((()=>hi(a,a.map((e=>dt(e.content,l?.fallback))))),[a,l?.fallback]),m=i===e?a:((e,t)=>(l=Dt)=>e?.filter((([,e])=>pi(t,l(e)||{}))).map((([e])=>e)))(d,i)(n);return[i,{blocksToRender:m,blocksWithProps:d},{field:s,reset:o,update:c}]},fi={},bi={},yi=ht((({className:e,filtrationSchema:t=fi,consumerField:l={},resetButton:n,...a})=>{const[,{blocksToRender:i},{field:r,reset:s}]=xi(bi,{block:a.block,page:a.options?.page}),d=o(ul,{className:"w-64",label:l?.title,options:vi(l),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>vi(l).find((t=>t.key===e))||{key:""}})});return c(g,{className:h(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(ci,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(Et,{type:"reset",className:"mt-lg w-64",onClick:s,version:n?.version,children:n?.text})})]})}),o(ii,{blocksToRender:i,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),vi=e=>hi(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),Ni=(e=!1)=>e?"text-left":"text-center",wi={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},ki=d((({className:e,defaultIconSize:t=44,iconBgVersion:l="primary",size:n,icon:a,...i})=>{const r=String(n?.width||t);return a?o("div",{style:{width:`${r}px`,height:`${r}px`},className:h("rounded-icon object-fit flex justify-center items-center",wi[l],e),children:o(H,{...i,width:"54%",height:"54%",name:a})}):null})),Si=d((({className:e="",title:t,benefitList:l,...n})=>{const a=we();return c(g,{className:e,defaultPadding:"p-6xl",...n,children:[t?o(N,{headingType:"h3",as:"h2",className:Ni(a),title:t}):null,l?.length?o("div",{className:"flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl",role:"list",children:l.map(Ci)}):null]})})),Ci=({label:e,description:t,__html:l,icon:n,isDotted:a=!1,iconBgVersion:i},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[n?.icon?o(ki,{className:"shrink-0",iconBgVersion:i,...n}):null,n?.src?o(le,{className:"shrink-0",image:n}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(N,{headingType:"h6",children:e}),o(Re,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),l?o(Pe,{__html:l,isDotted:a,itemSize:"list-s"}):null]}):null]},String(r)),Ti=e=>({icon:t,title:l,description:n},a)=>c("div",{className:h("flex flex-col gap-1","items-center",{"justify-center":!n&&!l}),children:[l?o(Re,{size:"text-h6",font:"font-normal",align:e,children:l}):null,t?o(le,{image:t,height:"180",className:"w-auto mx-auto"}):null,n?o(Re,{size:"text-h6",font:"font-normal",align:e,children:n}):null]},String(a)),Ii=(e,t,l)=>o("div",{className:`grid gap-2xs ${Bi(t)}`,children:e.map(Ti(l))}),Bi=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Pi=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:l="",columnsCount:n="4",subtitle:a,title:i,...r})=>c(g,{className:h("space-y-3xl",l),defaultPadding:"p-6xl",...r,children:[o(S,{defaultPadding:"",title:i,description:a,headlineVersion:"M"}),e?.length?Ii(e,n,t):null]}))),Mi={start:"justify-start",center:"justify-center",end:"justify-end"},Ri=d((({buttons:e,className:t="",align:l,...n})=>{const a=l&&h("flex",Mi[l]);return o(g,{className:h("!bg-transparent",a,t),defaultPadding:"p-0",...n,children:Le(e)})})),Vi=d((({className:e,title:t,children:l,...n})=>c(g,{className:h("space-y-xl",e),defaultPadding:"p-4xl",...n,children:[t?o(N,{className:"text-center",title:t}):null,l]}))),zi="flex flex-col justify-between @4xl:flex-row gap-x-4xl gap-y-7 @xl:gap-y-4xl",Di="flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl",Ai="flex flex-col gap-y-xl min-w-52",$i=d((({value:e,fractionDigits:t,fixed:l,prefix:n,postfix:a})=>o(Re,{size:"text-h3",children:"number"==typeof e?[n,Ue(t,{fixed:l})(e),a].filter(Boolean).join(" "):e}))),_i=d((({className:e,title:t,value:l,color:n="text-secondary-text",...a})=>c("div",{className:h("flex justify-between @xl:flex-col",e),children:[t?o(Re,{size:"text-l",font:"font-light",color:n,children:t}):null,l?o($i,{value:l,...a}):o(Re,{size:"text-h3",children:"-"})]}))),ji=(e,t)=>e?o(w,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,Li=d((({rate:e=0,title:t="Ставка",unit:l,fractionDigits:n=2,depositeName:a,isShowDepositeName:i,color:r="text-secondary-text"})=>c("div",{children:[o(Re,{size:"text-l",font:"font-light",color:r,children:t}),c("div",{className:"relative",children:[c("div",{className:"flex @xl:justify-center gradient-color-text",children:[o("span",{className:"font-mohave text-title-huge -mt-m tracking-[-15px]",children:Ue(n,{fixed:!0})(e)}),l?o("span",{className:"text-7xl mt-5",children:l}):null]}),a&&i?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),Oi=d((({title:e="Ставка",isUnavailableByTerm:t=!1})=>c("div",{className:"space-y-s min-w-96",children:[o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(H,{className:"w-10 h-10 @5xl:h-auto @5xl:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:t?c(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",o("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]}):o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Выберите другую сумму или срок"})})]}))),Ei=({title:e="Ставка",rate:t=0,unit:l="%",fractionDigits:n=2,isUnknownRateShown:a=!0,color:i="text-secondary-text",children:r,...s})=>a&&0===t?o(Oi,{title:e,...s}):c("div",{className:"flex flex-col",children:[o("div",{className:"hidden @xl:block min-w-96",children:o(Li,{title:e,rate:t,unit:l,fractionDigits:n,color:i,...s})}),o(_i,{className:"@xl:hidden",title:e,value:t,postfix:l,fractionDigits:n,fixed:!0,color:i,...s}),r]}),Fi=({isShowItems:e=!0,step:t=1e3,postfix:l="₽",...n})=>o(mn,{items:e?[`От ${Ue(1)(n.min||0)} ${l}`,`До ${Ue(1)(n.max||0)} ${l}`]:[],step:t,...n}),Ui={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Wi={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Hi=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,[a,i]=((e,t,l)=>{const{maxBonus:n=5e3,prefMonthsNum:a=Ui.prefMonthsNum,prefTravelBonusRate:i=Ui.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(i*t)+Math.round(r*l),n);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*l),n)*(12-a)]})(t||Wi,l,n);return{...t,...e,monthBonus:a,yearBonus:i}},qi=ht((({className:e="",title:t,calcSource:l,buttons:n,footnote:a,...i})=>{const[r,{field:s}]=At({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:u,maxSumOther:p,monthBonus:g,yearBonus:x}=Hi(r,l);return o(Vi,{className:e,title:t,...i,children:c("section",{className:h(zi,e),children:[c("div",{className:Di,children:[Fi({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),Fi({title:"Сумма покупок в остальных категориях, ₽",min:u,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?Ei({title:"Баллов за месяц",rate:g,fractionDigits:0,isUnknownRateShown:!1,unit:"",color:"text-primary-text"}):null}),c("div",{className:Ai,children:[x>=0?o(_i,{title:"Баллов за год",value:x,color:"text-primary-text"}):null,Le(n,{isVertical:!0}),ji(a)]})]})})})),Ki=Math.round(29.5),Xi=(e,t=0)=>e?.sum?e.sum:t,Yi=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,Gi=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Qi={horizontal:"gap-5xl",vertical:"flex-col gap-s"},Ji=d((({items:e,checkedItem:t,className:l,onChange:n,disabled:a=!1,orientation:i="horizontal"})=>o("div",{className:h(`flex ${Qi[i]}`,l),role:"radiogroup","aria-label":"Группа кнопок",children:e?.map((({id:e,text:l})=>o(Gt,{isRadio:!0,text:l,value:t===e,onChange:()=>n&&n(e),disabled:a},String(e))))}))),Zi=({items:e,title:t,mobileTitle:l=t,orientation:n="horizontal",value:a,onChange:i,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(Re,{color:"text-secondary-text",font:"font-light",children:t})}):null,l?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":l,children:o(Re,{color:"text-secondary-text",font:"font-light",children:l})}):null,o(Ji,{orientation:n,items:e,checkedItem:e[a?0:1].id,onChange:t=>i&&i(t===e[0].id),...r})]}),er=e=>Zi({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),tr=" (c капитализацией)",lr=({income:e,finalSum:t,postfix:l="₽",buttons:n=[],footnotes:a=[],isCapitalization:i=!1})=>c("div",{className:Ai,children:[o(_i,{title:`Доход в конце срока${i?tr:""}`,value:e,postfix:l,prefix:"+"}),o(_i,{title:`Сумма в конце срока${i?tr:""}`,value:t,postfix:l}),Le(n,{isVertical:!0}),a?.map(ji)]}),nr=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:ar([e,t],n),ar=([e,t],l=[])=>({[e]:l.length?Da(l.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:l.length?Va(l.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),ir=(e,[t,l],n)=>e>=n[t]&&e<=n[l],rr={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const sr={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},or=(e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:i,isMonthlyInterestPayment:r}=e,s=i||a,o=l<90||l>730,c=function(e){const t=e?.rateType?rr[e?.rateType]:"",{data:l}=Jl(t?`/api/v1/depositrates/${t}`:null,rt);return Array.isArray(l)?l:[]}(t);if(l<=30)return{...sr,...e,isDisabledOperatingDeposit:o,isUnavailableByTerm:!0};const d=c?.find((e=>r===e.isMonthlyInterestPayment&&cr(s,e)&&ir(n,["minSum","maxSum"],e)&&ir(l,["minDays","maxDays"],e)))||sr,{rate:m}=d,h=dr(m,e),u=n+h,p=c||[sr];return{...d,...ar(["minSum","maxSum"],p),...ar(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:h,finalSum:u}},cr=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,dr=(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)},mr=ht((({className:e="",title:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:i,defaultParams:r,rateParams:s,...d})=>{const[m,{field:u}]=At({moneyValue:Xi(r,1e5),daysValue:Yi(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=or(m,s),{income:g,finalSum:x,rate:f,isUnavailableByTerm:b,depositeName:y}=p;return o(Vi,{className:e,title:t,...d,children:c("section",{className:h(zi,e),children:[c("div",{className:Di,children:[Fi({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...u("moneyValue"),value:p.moneyValue}),(v={title:"Срок, дней",min:p.minDays,max:p.maxDays,...u("daysValue"),value:p.daysValue},o(mn,{items:[`От ${Gi(v.min||0)}`,`До ${Gi(v.max||0)}`],step:1,...v})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[hr(p,u),er({title:"Выплата процентов",orientation:"vertical",...u("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),Ei({rate:f,depositeName:y,isShowDepositeName:i,isUnavailableByTerm:b}),lr({income:g,finalSum:x,buttons:l,footnotes:[n,a]})]})});var v})),hr=(e,t)=>c("div",{className:"space-y-s",children:[o(Re,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(Gt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(Gt,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),ur=(e=[],t=!1)=>pr([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),pr=(e,t)=>{if(!t?.length)return;const l=t?.reduce(((t,l)=>e[0](l.rate,t[0].rate)?[l]:l.rate===t[0].rate?[...t,l]:t),[t[0]]);return l.length>1?l.reduce(((t,l)=>e[1](l,t)?l:t),l[0]):l[0]},gr=({min:e=0,max:t=0,availableMonths:l,...n})=>o(mn,{items:[`От ${xr(e)}`,`До ${xr(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),xr=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,fr=e=>Zi({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),br=({field:e,defParams:t,calcParams:l,map:n,monthsValue:a="maxMonths"})=>{Object.entries(n).forEach((([l,n])=>{e?.(l)?.onChange?.(t?.[n])})),e?.("monthsValue")?.onChange?.(rn(t?.[a],l.minMonths,l.maxMonths))},yr=(e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(l){const t=e/1200;return i?(n+i)*(t+t/(Math.pow(1+t,a)-1)):n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)},vr={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Nr=e=>wr({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&wr({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&wr({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&wr({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),wr=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],kr=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=t?.rateRows||[vr],r=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>Nr({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:s,maxSum:o}=nr(["minSum","maxSum"],r,i),{minMonths:c,maxMonths:d}=nr(["minMonths","maxMonths"],r,i),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a})=>e?.find((e=>Nr({row:e,userInputParams:t,paramsViewSettings:l})&&ir(n,["minSum","maxSum"],e)&&ir(a,["minMonths","maxMonths"],e)))||vr)({rateRows:i,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a}),{rate:h}=m,u=yr(h,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:n,monthsValue:a,monthlyPayment:u}},Sr=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),Cr={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},Tr=ht((({className:e,title:t,calcSource:l,buttons:n,footnote:i,paramsViewSettings:r,defaultParams:s,...d})=>{const m=(u=l?.rateRows,pr([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],u));var u;const[p,{field:g}]=At({moneyValue:Xi(s,2e5),monthsValue:Yi(s,Ki),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)}),x=kr(p,l,r),f=fr({title:"Тип платежа",orientation:"vertical",...g("isAnnuity")}),{onChange:b}=g("moneyValue"),{onChange:y}=g("monthsValue");return a((()=>{b&&b(rn(p.moneyValue,x.minSum,x.maxSum))}),[x.minSum,x.maxSum]),a((()=>{y&&y(rn(p.monthsValue,x.minMonths,x.maxMonths))}),[x.minMonths,x.maxMonths]),a((()=>{!Sr(s)&&m&&br({field:g,defParams:m,calcParams:x,map:Cr,monthsValue:"minMonths"})}),[l,s]),o(Vi,{className:e,title:t,...d,children:c("section",{className:h(zi,e),children:[c("div",{className:Di,children:[Fi({title:"Сумма кредита, ₽",step:500,min:x.minSum,max:x.maxSum,...g("moneyValue"),value:x.moneyValue}),gr({title:"Срок кредита, месяцев",min:x.minMonths,max:x.maxMonths,...g("monthsValue"),value:x.monthsValue}),Ir({...x,...r},g),o("div",{className:"sm:hidden",children:f})]}),c("div",{className:h(Ai,"@4xl:w-1/2"),children:[o(_i,{title:"Полная стоимость кредита",value:l?.totalLoanCost}),o(_i,{title:"Ставка",value:x?.rate,fractionDigits:2,postfix:"%"}),o(_i,{title:"Ежемесячный платёж",value:x.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:f}),Le(n,{isVertical:!0}),ji(i)]})]})})})),Ir=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(Gt,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(Gt,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(Gt,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(Gt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Br=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,i]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,i)]):l++}return t},Pr={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},Mr=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=t?.[0]?zr(t[0].minMonths,t[0].maxMonths):0,r=!l?.isShowMonthlyInterestPayment,s=!l?.isShowRemoteRegistration,o=!l?.isShowReplenish,c=!l?.isShowWithdrawn,d=!l?.isShowNewClient,m=t?.find((t=>[Vr({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Vr({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Vr({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),Vr({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,ir(n,["minSum","maxSum"],t),ir(a||i,["minMonths","maxMonths"],t)].every(Boolean)))||Pr,{rate:h}=m,u=Rr(h,e),p=n+u,g=t||[Pr];return{...m,...ar(["minSum","maxSum"],g),...ar(["minMonths","maxMonths"],g),availableMonths:Br(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:i,income:u,finalSum:p}},Rr=(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)},Vr=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],zr=(e,t)=>e+Math.round((t-e)/2),Dr=(e="rub")=>"rub"===e,Ar=(e,t)=>{const{minMonths:l,maxMonths:n}=ar(["minMonths","maxMonths"],Lr(t,e?.currency)),a=e.monthsValue||Math.round((l+n)/2);return{monthsValue:rn(a,l,n)}},$r=(e,t)=>{const{minSum:l,maxSum:n}=ar(["minSum","maxSum"],Lr(t,e?.currency)),a=e.moneyValue||l;return{moneyValue:rn(a,l,n)}},_r=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),jr=e=>{const t=Dr(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},Lr=(e,t)=>{const{rates:l}=e?.find((e=>e?.currency.key===t?.key))??{};return l??e?.[0]?.rates},Or=(e,t)=>{const l="rub"!==e?.currency?.key;return c("div",{className:"grid gap-lg",children:[c("div",{className:"flex gap-lg",children:[e.isShowReplenish?Zi({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:l}):null,e.isShowWithdrawn?Zi({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:l}):null]}),Er(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?er({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(n={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},Zi({...n,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),Er(e.isShowNewClient),e.isShowNewClient?o(Gt,{text:"Новый вкладчик",...t("isNewClient")}):null]});var n},Er=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Fr={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},Ur={text:"₽",key:"rub"},Wr=ht((({className:e,title:t,calcSource:l,buttons:n=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:u}=l??{},p=u?.map((e=>e.currency))??[Ur],g=i((e=>t=>e?{...t,...jr(t),...$r(t,e),...Ar(t,e),..._r(t,e)}:t)(u),[u]),[x,{field:f}]=At({moneyValue:Xi(d,2e4),monthsValue:Yi(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:Ur},{normalize:g}),b=f?.("currency")?.value??Ur,y=f?.("isNewClient")?.value,v=Lr(u,b),N=Mr(x,v,s),{rate:w,income:k,finalSum:S,type:C=""}=N,T=i((()=>{br({field:f,defParams:ur(v,y),calcParams:N,monthsValue:"minMonths",map:Fr})}),[f,u]);a((()=>{!Sr(d)&&v&&T()}),[d,u]);const I=w===ur(v,y)?.rate;return o(Vi,{className:e,title:t,...m,children:c("section",{className:h(zi,e),children:[c("div",{className:Di,children:[c("div",{className:"flex gap-m",children:[Fi({className:"w-full",title:`Сумма, ${b?.text}`,min:N.minSum,max:N.maxSum,...f("moneyValue"),value:N.moneyValue,postfix:b?.text,step:Hr(b?.key)}),u&&u?.length>1?o(Vl,{label:"Валюта",options:p,...f("currency")}):null]}),gr({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...f("monthsValue"),value:N.monthsValue}),Or({...N,...s},f)]}),Ei({rate:w,children:Kr(T,I)}),lr({income:k,finalSum:S,buttons:[...n,qr(l?.buttons,C)],footnotes:[r],postfix:b?.text,isCapitalization:f("isMonthlyInterestPayment").value})]})})})),Hr=(e="")=>Dr(e)?1e3:100,qr=(e=[],t="")=>{const{type:l,...n}=e.find((e=>e.type===t))??{};return n},Kr=(e,t=!1)=>t?null:o(Et,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),Xr=e=>Yr({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Yr({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Yr=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],Gr={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Qr=(e,t,l)=>{const{moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}=e,s=t?.rateRows||[Gr],o=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>Xr({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:c,maxSum:d}=nr(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=nr(["minMonths","maxMonths"],o,s),u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>Xr({row:e,userInputParams:t,paramsViewSettings:l})&&ir(n+r,["minSum","maxSum"],e)&&ir(i,["minSumOld","maxSumOld"],e)&&ir(r,["minSumExtra","maxSumExtra"],e)&&ir(a,["minMonths","maxMonths"],e)))||Gr)({rateRows:s,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}),{rate:p}=u,g=yr(p,e),x=e.oldMonthlyPayment-g;return{...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r,monthlyPayment:g,benefit:x}},Jr=ht((({className:e="",title:t,calcSource:l,buttons:n,footnote:a,paramsViewSettings:i,...r})=>{const[s,{field:d}]=At({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=Qr(s,l,i),u=fr({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(Vi,{className:e,title:t,...r,children:c("section",{className:h(zi,e),children:[c("div",{className:Di,children:[Fi({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),Fi({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),gr({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),Zr({...m,...i},d),m.isExtraMoney?Fi({title:"Дополнительная сумма, ₽ ",step:500,min:m.minSumExtra,max:m.maxSumExtra,...d("moneyExtra"),value:m.moneyExtra}):null,o("div",{className:"sm:hidden pt-1 pb-4 border-b border-main-divider",children:u})]}),c("div",{className:h(Ai,"@4xl:w-1/2"),children:[o(_i,{title:"Полная стоимость кредита",value:l?.totalLoanCost}),o(_i,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(_i,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(_i,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:u}),Le(n,{isVertical:!0}),ji(a)]})]})})})),Zr=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(Gt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(Gt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(Gt,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),es=d((e=>{const{onChange:t,min:l,max:n,defaultValue:a="0",fractionDigits:r=0,...s}=e,c=an(e,{normalize:(e=a)=>l&&n?String(rn(Number(ts(e)),l,n)):ts(e),format:Ue(r)}),d=i((e=>t&&t(ts(e))),[t]);return o(il,{onChange:d,...s,...c})})),ts=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),ls=d((e=>o(es,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Re,{size:"text-xl",font:"font-light",children:"₽"})})}))),ns={private:"https://old.rshb.ru/p2p/",business:"https://old.rshb.ru/smallbusiness/p2p/"},as={amount:1500},is=d((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",button:i,formType:r="private",...s})=>{const[{amount:d},{field:m}]=At(as),[u,p]=n(!1);return a((()=>{p(d<=0)}),[d]),c(g,{className:h("flex flex-col items-center",e),defaultPadding:"p-6xl",...s,children:[t?o(N,{className:"pb-lg xl:pb-4xl self-start xl:self-center",headingType:"h3",title:t}):null,c("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:ns[r],children:[o(ls,{valid:!u,label:l,max:3e5,min:1,...m("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:d}),i?.text?o(Et,{className:"w-full mt-lg",type:"submit",disabled:u,children:i.text}):null]})]})})),rs=({className:e,text:t="ХИТ"}={})=>c("div",{className:h("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(H,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),o(w,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:t})]}),ss="relative h-full",os={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},cs=({noCardBorder:e,cardSize:t="normal",isNavButtons:l=!1,...n})=>{const{blocks:a}=n.block||{},i=a?.some(hs),r=l?{defaultPadding:"p-6xl pb-m"}:{};return M({...n,renderProps:(l,n,a)=>c("div",{className:ds(l,{someCardsHighlighted:i}),children:[I(l,n,{className:ms(l,{someCardsHighlighted:i,showBorder:!e,cardSize:t}),...r,blockIndex:a}),hs(l)?rs({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},ds=(e,{someCardsHighlighted:t})=>h(ss,t&&(hs(e)?"pt-3xl":"pt-3xl sm:pt-16")),ms=(e,{someCardsHighlighted:t,showBorder:l,cardSize:n="normal"})=>h(ss,"min-w-80",os[n],t&&(hs(e)?"pt-3xl sm:pt-16":"pt-3xl"),ba(l),l&&"h-full"),hs=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,us=ht((({className:e,visibleItemCount:t=1,noCardBorder:l,arrowsPadded:n=!0,isGap:a=!0,cardSize:i="normal",isNavButtons:r=!1,...s})=>o(g,{className:h(e),defaultPadding:"p-6xl",...s,children:o(Xa,{className:h("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:n,navButtons:r?ps(s?.block?.blocks):[],hasBlur:!0,children:cs({noCardBorder:l,cardSize:i,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),ps=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],gs="z-10 border border-solid w-full h-full",xs=h(gs,"absolute hidden @xl:block border-transparent"),fs=d((({className:e,title:t,description:l,button:n,...a})=>o(g,{className:h("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...a,children:c("div",{className:"relative h-full",children:[o("div",{className:h(xs,"top-9 right-12 bg-green-dark")}),o("div",{className:h(xs,"top-6 right-8 bg-green")}),o("div",{className:h(xs,"top-3 right-4 bg-green-light")}),c("div",{className:h(gs,"relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light"),children:[o(S,{title:t,description:l,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),Le([n],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),bs={black:"bg-black",white:"bg-white"},ys=d((({className:e="",title:t,description:l,image:n,price:a,button:i,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:h("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(Ce,{className:"h-full",padding:d,title:o(S,{title:t,description:l,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:n?.src?o(le,{className:"flex justify-center align-center mb-xl",image:n}):null,buttons:Le([i],{buttonClassName:"w-full self-end"}),children:[r?.length?c("div",{className:"flex text-secondary-text mb-m",children:[o("div",{className:"mr-xs",children:o(Re,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(vs)]}):null,a?c(Re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),vs=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${bs[e]}`},String(t)),Ns=d((({icon:e,...t})=>{const l=he(),{text:n,href:a,target:i,onClick:r}=l(t);return n?o("div",{className:h("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:a,target:i,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(le,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:n}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:n})]})})}):null})),ws=d((({className:e,additionalDescription:t,description:l,links:n,title:a,...i})=>o(g,{defaultPadding:"p-5xl",className:h("overflow-hidden",e),...i,children:c("div",{className:"flex flex-col lg:flex-row gap-5 justify-between",children:[c("div",{className:"flex-1",children:[o(S,{isEmbedded:!0,title:a,description:l,as:"h1",align:"text-left",headlineVersion:"XL"}),o(S,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),n?.length?ks(n):null]})}))),ks=e=>o("div",{className:h("lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3","lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6","grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2","grid gap-3 lg:gap-5"),children:e.map(((e,t)=>o(Ns,{...e},String(t))))}),Ss=(e,t)=>e?.map((({aspectName:e,params:l})=>({aspectName:e,params:"mindboxEvent"===e?{...l,eventJson:t}:l}))),Cs=d((({className:e="",href:t,target:l,onClick:n,data:a,children:i})=>{const r=he()({href:t,target:l,onClick:n});return o(t?"a":"div",{className:h("block",e),...t?r:{},role:t?"link":"none",...ue(a),children:i})})),Ts=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"}},{origins:["vk.com"],iconMapped:{icon:"VKIcon"}},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"}},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"}},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"}},{origins:["appgallery.huawei.com"],iconMapped:{icon:"HuaweiIcon"}},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"}},{origins:["rutube.ru"],iconMapped:{icon:"RutubeIcon"}},{origins:["dzen.ru"],iconMapped:{icon:"DzenIcon"}},{origins:["rustore.ru"],iconMapped:{icon:"RustoreIcon"}}],Is=d((({className:e="",media:t,showButtonText:l,stretched:a,version:i="white",children:r})=>{if(!t?.length)return null;const[s,d]=n(),m=t?.map((e=>{const{href:t,icon:n,text:a}=e,{iconMapped:r}=(e=>Ts.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=je(n)?n:r,c=l?{text:a}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&a&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??i}})),u=h("border border-solid hover:border-transparent border-main-divider","group-data-primary:border-main-divider group-data-gray:border-green group/media",{"basis-auto":!l&&!s},Bs(a));return c("div",{className:h("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:Le(m,{className:Ps(s??!1,a??!1,l),buttonClassName:u})}),r?o(Re,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),Bs=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",Ps=(e,t,l=!1)=>h(e||t?"basis-full":"",!t||l&&e?"":"flex-nowrap"),Ms=d((({className:e,padding:t,description:l,additionalDescription:n,href:a,icon:i,isDotted:r,__html:s,socialMedia:d=[],target:m,title:u,align:p="text-left",benefits:x,imageOptions:{directionRight:f=!0,isImageAlwaysOnRight:b=true,isImageSecondary:y=!1}={},data:v,...N})=>o(g,{className:h("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...N,children:o(Cs,{href:a,target:m,className:"h-full",data:Ss(v),children:c(Ce,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(S,{title:u,description:l,headlineVersion:"XS",isEmbedded:!0,align:p}),...Ge(je(i)?o(le,{image:i}):null,f),buttons:d.length?o(Is,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:b,isImageSecondary:y,imageAlign:"center",children:[o(_e,{benefits:x}),s?o(Pe,{__html:s,isDotted:r,itemSize:"list-s"}):null,Rs(n,p)]})})}))),Rs=(e,t)=>e?o(w,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",align:t,children:e}):null,Vs=(e,t)=>{const{title:l,description:n,buttons:a}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[l?o("div",{className:"opacity-80",children:o(Re,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?o("div",{className:"mt-2xs",children:o(Re,{size:"text-xl",color:"text-primary-text",children:n})}):null,a?.length?o("div",{className:"text-primary-main",children:Le(a)}):null]},String(t))},zs=d((({className:e="",title:t,align:l="text-center",icon:i,button:r,visibleCellsCount:s=1,cardCells:d=[],options:m,data:u,...p})=>{const x=d.map(Vs),[f,b]=s>0?[x.slice(0,s),x.slice(s)]:[x,[]],[y,v]=n(!1);return a((()=>ce.subscribe("fold",(e=>{void 0!==m?.parent&&e.parent===m?.parent&&v(e.isUnfolded)}))),[m?.parent]),c(g,{className:h("flex flex-col",e),defaultPadding:"p-2xl",...p,children:[je(i)?o("div",{className:"self-center",children:o(le,{image:i})}):null,t?o(N,{className:h("pt-xs",l),headingType:"h5",title:t}):null,r?.text?o(be,{className:"w-full mt-m mb-lg",...r}):null,b.length?o(ei,{renderFoldableSection:()=>c("div",{children:[f,o(ti,{isUnfolded:y,children:b})]}),renderFoldButton:d.length>=s?Ds(y,m?.parent,u):null}):o("div",{children:f})]})})),Ds=(e,t,l)=>()=>c("button",{className:"w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center",onClick:()=>{void 0!==t&&ce.fire("fold",{type:"fold",isUnfolded:!e,parent:t})},type:"button",...e?ue(l):{},children:[o("div",{children:e?"Скрыть":"Подробнее о тарифе"}),o(H,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),As=d((({className:e,contacts:t,info:l,version:n="secondary",...a})=>c(g,{className:h("flex",e),defaultPadding:"p-6xl",version:n,...a,children:[l?.length?$s(l):null,t?.length?$s(t):null]}))),$s=e=>o("div",{className:"flex gap-5xl grow basis-0",children:e.map(((e,t)=>_s({column:e,i:t})))}),_s=({column:e,i:t})=>e?o("div",{className:"flex flex-col gap-xl grow basis-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>c("div",{children:[o(S,{title:e,description:t,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),l?o("div",{className:"mt-xs opacity-80",children:o(w,{size:"text-m",font:"font-light",children:l})}):null,o("div",{className:h({"mt-xl":Boolean(n?.text)}),children:Le([n])})]},String(a))))},`col-${String(t)}`):null,js=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,Ls=(e,t)=>Array.from({length:t-e+1},((t,l)=>e+l)),Os=1e9,Es={sum:{min:1e4,max:Os},period:3},Fs=ht((({className:e,filtrationSchema:t={},resetButton:l,sumInput:n,periodInput:a,...i})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=xi(Es,{block:i.block,page:i.options?.page,normalize:e=>({...e,period:Us(e)})}),u=s.map((([,e])=>e?.paramsSource?.rateRows)),p=Ws(u);return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[o(ci,{filtrationSchema:t,resetButton:l,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(ls,{label:n?.title,min:500,max:Os,...d("sum",{parse:e=>({min:Number(e),max:Os}),format:({min:e})=>String(e)})}),o(mn,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(ii,{blocksToRender:r,...i})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),Us=e=>st((e?.paramsSource?.rateRows||[]).filter(js).flatMap((e=>Ls(e.minMonths,e.maxMonths)))),Ws=e=>st(e.flatMap((e=>e||[])).filter(js).flatMap((e=>Ls(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],Hs=[{key:"10"},{key:"50"},{key:"100"}],qs=({itemCount:e,onItemCountChange:t})=>{const l=i((({key:e})=>t(Number(e))),[]);return c("div",{className:"mt-2 @lg:mt-0 items-center gap-s hidden @lg:flex",children:[o("span",{children:"Показать по"}),o(ul,{className:"min-w-20",onChange:l,value:{key:String(e)},options:Hs,iconVersion:"black"})]})},Ks="py-m @lg:px-lg px-m rounded-md cursor-pointer text-center min-w-10 @lg:min-w-0 hover:bg-primary-hover hover:text-white",Xs=(e,t)=>{const{currentPage:l,onPageChange:n,totalPages:a}=e,i=t+1;return i===l?o("div",{"aria-current":"true",className:"py-m @lg:px-lg px-m bg-primary-main text-center min-w-10 @lg:min-w-0 text-white rounded-md",children:i},String(t)):1!==i&&i!==a&&((e,t,l)=>e<t&&e>=t-1||e<=t+1&&e>t||((e,t,l)=>t<=2&&e<=t+2||t>=l-1&&e>=l-3)(e,t,l))(i,l,a)?o("div",{onClick:()=>n(i),className:Ks,"aria-label":`Страница ${i}`,children:i},String(t)):null},Ys={width:"24",height:"24"},Gs=({currentPage:e,onPageChange:t,totalPages:l})=>{const n=r((()=>Array.from({length:l}).fill({currentPage:e,onPageChange:t,totalPages:l})),[l,e]),a=i((()=>{e>1&&t(e-1)}),[e]),s=i((()=>{e<l&&t(e+1)}),[e,l]),d=i((()=>t(1)),[]),m=i((()=>t(l)),[l]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(H,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:Qs(1===e),...Ys})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:Ks,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,n.map(Xs),e<l-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<l?o("div",{onClick:m,className:Ks,"aria-label":`Страница ${l}`,children:l}):null]}),o("div",{onClick:s,children:o(H,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:Qs(e===l),...Ys})})]})},Qs=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",Js=({currentPage:e,onPageChange:t,totalPages:l,itemCount:n,onItemCountChange:a})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(Gs,{currentPage:e,onPageChange:t,totalPages:l}),n&&a?o(qs,{itemCount:n,onItemCountChange:a}):null]}),Zs=d((({className:e,value:t,autoFocus:l,onChange:n,onFocus:a,placeholder:r="Поиск по сайту"})=>{const s=i((e=>{n&&n(e.target?.value||"")}),[n]);return c("div",{className:h("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(le,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:h("h-14 w-full px-10 text-l text-black box-border rounded-md",al),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:l,onChange:s,onFocus:a})]})})),eo=d((({field:e,onClearFilter:t,filtrationState:l})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(Zs,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Bl,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:l.endDate,...e("startDate")}),o(Bl,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период до",minDate:l.startDate,...e("endDate")}),o("div",{className:"col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto",children:o(Et,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),to=({title:e,timestamp:t,publicId:l})=>{const n=he(),{href:a}=n({href:`/api/v1/depository/${l}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[null,c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Re,{size:"text-m","font-weight":"font-light",children:xt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:a,download:!0,"aria-label":"Скачать",children:e})]})]},l)},lo="/api/v1/depository",no={startDate:void 0,endDate:void 0,query:""},ao=ht((({className:e,...t})=>{const[l,a]=n(0),[r,s]=n(10),[d,{field:m,reset:u}]=At(no),{totalPages:p=0,items:x=[]}=(({size:e,page:t,query:l,startDate:n,endDate:a})=>{const i=n?xt(n,!0):"",r=a?xt(a,!0):"",s=new URLSearchParams(lo);s.set("page",String(t)),s.set("size",String(e)),s.set("query",l),s.set("timestampStart",i),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=Jl(lo+o,rt);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:l,...d}),f=i((e=>a(e-1)),[]),b=i((e=>{r!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:h(e,"container p-6xl"),...t,children:[o(eo,{filtrationState:d,field:m,onClearFilter:u}),c("div",{className:"flex flex-col",children:[c("div",{className:"grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b",children:[o("div",{className:"col-span-4 @lg:col-span-2 hidden @lg:block",children:o(Re,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Re,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),x.length?x.map((e=>o(to,{...e},String(e.publicId)))):o(fa,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(Js,{currentPage:l+1,onPageChange:f,totalPages:p,itemCount:r,onItemCountChange:b})]})]})})),io=e=>"Image"===e?.contentType&&e?.image?o(le,{image:e.image}):"Code"===e?.contentType&&e.code?o("div",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:e.code}):null,ro=d((({className:e="",title:t,description:l,error:n,button:a,...i})=>c(g,{className:h("flex flex-col justify-center items-center",e),defaultPadding:h("p-6xl"),version:"transparent",...i,children:[o("div",{className:"flex justify-center",children:io(n)}),o(S,{title:t,description:l,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(be,{version:a?.version,text:a?.text,...a}):null]}))),so="location";function oo(e="Москва"){const[t,l]=((e,t,l)=>{const[r,s]=n(l||null);return a((()=>e.subscribe(t,(e=>s(e)))),[e,t]),[r,i((l=>e.fire(t,l)),[e,t])]})(ce,"location",mo()??{name:e}),r=i((e=>{ho(e),l(e)}),[]),{data:s}=Jl(co()?null:"/api/v1/region",rt);return a((()=>{s&&!co()&&l(s)}),[s]),[t??{name:e},r]}const co=()=>Boolean(globalThis.localStorage?.getItem(so)),mo=()=>{try{const e=globalThis.localStorage?.getItem(so);return e&&JSON.parse(e)}catch(e){return null}},ho=e=>{try{globalThis.localStorage?.setItem(so,JSON.stringify(e))}catch(e){}};var uo;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(uo||(uo={}));const po=new Intl.NumberFormat("ru",{style:"currency",currency:uo.RUB}),go=e=>e?po.format(e):"",xo="text-m font-light text-secondary-text ",fo=`${xo} text-left`,bo=`${xo} pl-5xl text-center`,yo=`${xo} pl-5xl text-right`,vo={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},No=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:h("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:fo,children:o(Re,{size:"text-m",children:"Валюта"})}),o("th",{className:bo,children:o(Re,{size:"text-m",children:"Купить"})}),o("th",{className:yo,children:o(Re,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(wo)})]}))),wo=e=>{const t=e?.currency?.currency;return c("tr",{className:"pb-2xs text-h6",children:[o("td",{className:"pt-m m-auto flex text-left",children:c("div",{className:"flex items-center gap-xs",children:[t?o(le,{image:{icon:vo[t]},width:"24",height:"24"}):null,o(Re,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Re,{size:"text-h6",children:go(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Re,{size:"text-h6",children:go(e?.buyExchangeRate)})})]},t)},ko={icon:"GpsIcon"},So=d((({className:e="",address:t})=>c("div",{className:h("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(ki,{...ko,iconBgVersion:"primary",className:"shrink-0"}),c("div",{className:"space-y-2xs whitespace-pre-wrap",children:[t?o(w,{size:"text-l",color:"text-primary-main",children:t}):null,o(w,{size:"text-m",color:"text-secondary-text",children:"Курс указан для заданного офиса"})]})]}))),Co=(e,t,l)=>{const n=Number(To(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)},To=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Io=e=>Bt([[e=>e.value!==uo.RUB&&e.oppositeValue!==uo.RUB,()=>e.handleConvert(e.value,uo.RUB)],[e=>e.value===uo.RUB&&e.oppositeValue===uo.RUB,()=>e.handleConvert(e.value,uo.USD)],[e=>e.value===uo.RUB&&e.oppositeValue===uo.RUB,()=>e.handleConvert(e.value,uo.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function Bo(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:i,setSelected:r}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:n,text:n};return c("div",{className:"relative flex",children:[o(il,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:a,onChange:i}),s.length?o(ul,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const Po=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[r,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||uo.RUB,selectBuy:l?.[0]?.currency?.currency||uo.USD}),d=i((e=>s((t=>({...t,...e})))),[]);return c("div",{className:`flex flex-col gap-m pt-2xl ${e}`,children:[t&&l?c("div",{className:"grid gap-m",children:[Bo({placeholder:"Хочу продать",rates:l,selected:r.selectSell,setSelected:Mo(r,d,l),value:r.inputSell,setValue:e=>Vo(d,l)(e,r.selectSell,r.selectBuy)}),Bo({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Ro(r,d,t),value:r.inputBuy,setValue:e=>zo(d,t)(e,r.selectBuy,r.selectSell)})]}):null,a?.text?o(be,{text:a.text,version:a?.version,...a}):null]})})),Mo=(e,t,l)=>n=>{t({selectSell:n}),Io({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Vo(t,l)(e.inputSell,n,a)}})},Ro=(e,t,l)=>n=>{t({selectBuy:n}),Io({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>zo(t,l)(e.inputBuy,n,a)})},Vo=(e,t)=>(l,n,a)=>{e({inputSell:To(l),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputBuy:String(Co(l,i,n===uo.RUB)||"")})},zo=(e,t)=>(l,n,a)=>{e({inputBuy:To(l),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputSell:String(Co(l,i,n===uo.RUB)||"")})};const Do=d((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const[a]=oo(),i=function(e){const t=e?.code||"000",{data:l}=Jl(`/api/v1/exchangerates?regionCode=${t}`,rt);return l||{}}(a),r=Ao(i?.exchangeRate?.currencies),s=r.filter((e=>e.buyExchangeRate));s.unshift({currency:{currency:uo.RUB}});const d=r.filter((e=>e.saleExchangeRate));return d.push({currency:{currency:uo.RUB}}),o(g,{className:h("box-border min-h-80",e),...n,children:o(Ce,{className:"h-full",title:o(N,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:c("div",{className:"flex w-full gap-6xl flex-wrap @lg:flex-nowrap",children:[c("div",{className:"w-full @2xl:w-auto @5xl:w-1/2",children:[r?o(No,{className:"mb-xl",exchangeCurrencyItems:r}):null,o(So,{address:i?.address})]}),o(Po,{className:"grow w-1/2",currencyRatesBuy:s,currencyRatesSell:d,button:l})]})})})})),Ao=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],$o=d((({className:e="",items:t})=>{const l=he();return o("ul",{className:h("flex flex-col gap-s w-full",e),children:t?.map(_o(l))})})),_o=e=>({dataFooter:t,...l},n)=>{const{text:a,href:i,target:r,onClick:s}=e(l);return a?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:i,target:r||"_self",onClick:s,...ue(t),children:a||null})},String(n)):null},jo=e=>t=>!t.displayArea||e.includes(t.displayArea.toLowerCase()),Lo=["all","footer"],Oo=d((({className:e,navigationItems:t})=>{const l=he();return o("div",{role:"menu",className:h("w-full flex items-start justify-between flex-col md:flex-row gap-y-m lg:order-2",e),children:t?.filter(jo(Lo)).map(l).map(Eo)})})),Eo=(e,t)=>{const{text:l,items:n=[],href:a,target:i="_self",onClick:r,dataFooter:s}=e,d=n.filter(jo(Lo));return c("div",{role:"menuitem",className:"flex flex-col gap-s w-full @md:w-1/4",children:[o("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i,onClick:r,...ue(s),children:l}),d?o($o,{items:d}):null]},String(t))},Fo=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:h("space-y-m",e),children:t.map(Uo)}):null)),Uo=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Re,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(Wo)})]},String(t)),Wo=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:Ho(e.type,e.text)}),o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),Ho=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${qo(t)}`,children:o(Re,{size:"text-h6",children:t})});case"email":return o("a",{className:"no-underline",href:`mailto:${t}`,children:o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:t})});default:return o("span",{children:t})}},qo=e=>e.replaceAll(/\D/g,""),Ko=d((({className:e="",index:t,text:l,...n})=>{const a=he(),{href:i,target:r,onClick:s}=a(n);return o("a",{className:h("text-secondary-text",e),href:i,target:r,onClick:s,children:l||`Документ ${t}`})})),Xo=d((({className:e="",title:t,links:l})=>o("div",{className:e,children:l?.length?c("div",{className:"flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider",children:[o("div",{className:"lg:hidden",children:o(Re,{size:"text-l",font:"font-normal",children:t})}),l.map(((e,t)=>o(Ko,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),Yo="w-full lg:w-52",Go={width:"118",height:"24"},Qo={"bg-white":"color",transparent:"white"},Jo={"bg-white":"text-primary-main",transparent:"text-white"},Zo=(e,t,l)=>o(le,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Qo[e]},className:Jo[e],width:l?.width,height:l?.height}),ec={"bg-white":"text-primary-text",transparent:"text-white"},tc=d((({className:e,href:t="/",logo:l,children:n,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0,data:s})=>c("a",{className:h("inline-flex items-center font-sans no-underline",e),href:l?.href??t,target:a?"_blank":"_self","aria-label":l?.title??"Россельхозбанк",...ue(s),children:[Zo(i,l?.image,Go),r?n??o("div",{className:"ml-s",children:o(Re,{font:"font-medium",color:ec[i],size:"",children:l?.title??"Россельхозбанк"})}):null]})));function lc(e,t,l=300){a((()=>{const t=globalThis.setTimeout(e,l);return()=>{globalThis.clearTimeout(t)}}),t)}const nc=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=Array.from({length:e.length}),a=Array.from({length:t.length});let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-l),o=Math.min(r+l,t.length-1);for(let l=s;l<=o;l++)n[r]||a[l]||e[r]!==t[l]||(i++,n[r]=!0,a[l]=!0)}return{m:i,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const i=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!l[i])continue;let s=r;for(;s<t.length;s++)if(n[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),r=(l/e.length+l/t.length+(l-i/2)/l)/3,s=r>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return r+s*(1-r)};const ac=(e,t)=>(l,n)=>{for(const[a,i]of n)l.set(a,e(l.get(a)||t,i));return l},ic=(e=[])=>e.reduce(((e,t)=>e+t),0),rc=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),sc=e=>t=>e.map((([e,l])=>[nc(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>cc(t,e))).reduce(ac(Math.max,0),new Map),oc=e=>t=>{return hi(t,t.map((({title:e})=>e)).map((e=>t=>{const l=rc(t||"");return l.length?ic(e.map((e=>Va(l.map(nc(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},cc=(e,t)=>new Map(e.map((e=>[e,t]))),dc=({basePathList:e,initialQuery:t=""})=>{const[l,i]=n(t||"");a((()=>{null!=t&&i(t)}),[t]);const{data:r}=Jl(e?.length?e:null,mc),[s,o]=n(null);return lc((()=>{r&&o(r.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=rc(e);if(!a.length)return[];const i=Object.entries(n),r=[...a.map(sc(i)).reduce(ac(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return oc(a)(r)})(l)))}),[r,l]),[s,{value:l,onChange:i}]},mc=async(...e)=>(await Promise.allSettled(e.map((e=>it(j(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),hc=d((({initialQuery:e,navigationItems:t})=>{const l=r((()=>t?.map((e=>e.href||"/"))),[t]),[n,a]=dc({basePathList:l,initialQuery:e}),i=r((()=>uc(t)(n)),[t,n]);return o(Ut,{head:o(Zs,{autoFocus:!0,...a}),children:o(Oo,{navigationItems:i})})})),uc=e=>t=>e?.length&&t?.length?hi(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:j("/",t)})))}))):[],pc=(e={})=>{const{open:t,close:l}=de();return{open:(l={},n={})=>t(o(hc,{...e,...l}),n),close:l}},gc=d((({className:e,search:t,...l})=>{const[a,r]=n(""),s=i((()=>r("")),[]),d=pc(l),m=i((e=>{r(e),xc(e)&&d.open({initialQuery:e},{onClose:s})}),[s,d]);return c("div",{className:h("relative",e),role:"search",children:[o(Zs,{value:a,placeholder:t?.placeholder,onChange:m}),o(Ft,{className:"absolute top-0 right-0 sm:hidden",onClose:s})]})})),xc=e=>e&&e.length>=3,fc=(e,t)=>{const{logo:l}=e??{},{dataHeader:n,dataFooter:a,...i}=l??{};return c("div",{className:"flex items-stretch gap-3xl",children:[o(tc,{className:Yo,logo:i,data:a,showTitle:!1}),o(gc,{className:"grow",navigationItems:t,...e})]})},bc=d((({className:e="",index:t,...l})=>{const n=he(),{href:a,target:i,text:r,onClick:s}=n(l);return o("a",{className:h("text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]",e),href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),yc=d((({className:e="",links:t,license:l})=>c("div",{className:h("@container space-y-lg",e),children:[l?o("div",{children:o(Re,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} ${l}`})}):null,t?.length?o("div",{className:"flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs",children:t.map(((e,t)=>o(bc,{index:t,...e},String(t))))}):null]}))),vc=ht((({className:e,footer:t,...l})=>{const{navigationItems:n}=l.options?.page?.navigation??{},a=l.options?.page?.common??{},{documents:i,relatedEnterprises:r,contacts:s,mediaLinks:d=[],horizontalNavigationTitle:m,feedbackButton:u,license:p,otherLinks:x=[]}=t??{};return c(g,{tag:"footer",className:h("grid gap-y-xl p-4xl pb-24 lg:p-xl",e),...l,children:[fc(a,n),c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(Oo,{navigationItems:n}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:h(Yo,"flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(Fo,{items:s}),u?o(be,{className:"w-full",version:"primary",...u}):null,d.map(((e,t)=>o(Is,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),x.map(((e,t)=>o(be,{className:"!text-left text-s font-light",version:"link",...e,children:e?.text},String(t))))]})]}),o(Xo,{title:m,links:r}),o(yc,{links:i,license:p})]})})),Nc=d((({className:e="",title:t,description:l,calendar:n,...a})=>c(g,{className:h("space-y-m",e),defaultPadding:"p-6xl",...a,children:[o(S,{title:t,description:l,headlineVersion:"M",isEmbedded:!0}),n?wc(n):null]}))),wc=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 c("div",{className:"w-full flex flex-col justify-center gap-s",children:[o("div",{className:"flex w-full text-h6 text-center",children:l.map((e=>kc(e,t)))}),o("div",{className:"flex gap-s w-full",children:l.map(((e,t)=>c("div",{className:"border-r border-main-divider last:border-r-0 space-y-s",style:{flexBasis:e.flexBasis},children:[o("div",{className:"flex gap-s",children:Sc(e)}),c("div",{className:"text-s",children:[o(Re,{size:"text-s",font:"font-light",color:"text-primary-text",children:e.text})," ",o(Re,{size:"text-s",font:"font-light",color:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},kc=(e,t)=>e.month?.map(((e,l)=>o("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Sc=e=>e.month?.map((e=>e.image?.src?o("div",{className:"h-52 border-r pr-s border-main-divider last:border-r-0",children:o(le,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Cc=ht((({className:e,title:t,button:l,regionSource:a,data:i,...r})=>{const[s,d]=n({key:""}),m=a?.regions??[],u=oe({className:"text-white",version:l?.version||"primary"}),p=m?.find((e=>e.name===s.key))?.href,x=l?.text?l.text:"Перейти";return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container max-w-[978px] space-y-m",children:[t?o(N,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Vl,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,p?o("div",{className:"text-center",children:o(be,{href:p,target:"_blank",className:h("p-m w-full @xl:w-auto",u),data:Ss(i,s?.key),children:x})}):null]})})}));function Tc(e=[]){const t=R(),l=Array.from(e.entries()).filter((([,e])=>Ic(t)(e)));return l.find((([,e])=>Ic(t,!0)(e)))??l[l.length-1]??[]}const Ic=(e,t=!1)=>({href:l})=>{if(!l)return!1;const n=_(Bc(e)(l));return t?n===_(l):n.startsWith(_(l))},Bc=e=>t=>{const l=G(Y.SITE_URL);return D(t)?e.href:j(l,e.pathname)},Pc=d((({className:e="",items:t,activeItem:l,ariaLabel:n="Меню"})=>{const[r,{setFalse:d,toggle:m}]=ll(!1),u=cl(d),p=s(null),g=i((({isOpened:e,buttonRef:t,menuRef:l})=>{if(e&&t.current&&l.current){const e=l.current.getBoundingClientRect(),n=t.current.getBoundingClientRect(),a=globalThis.innerWidth-e.width;e.right>=globalThis.innerWidth?l.current.style.left=`${a}px`:n.left>e.left&&(a>n.left?l.current.style.left="":l.current.style.left=`${a}px`)}}),[r]);return ol(globalThis,"resize",(()=>g({isOpened:r,buttonRef:u,menuRef:p}))),a((()=>{g({isOpened:r,buttonRef:u,menuRef:p})}),[r]),c("div",{className:h(r?"rounded-md shadow-blue-gray":"",e),ref:u,role:"navigation",children:[o("button",{type:"button",className:"group/btn flex justify-between items-center h-6","aria-label":n,onClick:m,role:"button","aria-labelledby":"labeldiv",children:Array(3).fill(null).map(((e,t)=>o("div",{className:"w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),o("div",{ref:p,className:h("absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40",{hidden:!r}),"aria-hidden":!r,children:Rc(t,l)})]})})),Mc=d((({isActive:e,...t})=>{const l=he(),{text:n,href:a,target:i,onClick:r}=l(t);return o("a",{className:h("text-l font-light pb-m hover:text-primary-main",{"text-primary-main":e}),href:a,target:i,onClick:r,role:"link",...ue(t?.data),children:n})})),Rc=(e,t)=>e?.map(((e,l)=>o(Mc,{isActive:e===t,...e},e?.text??String(l)))),Vc={default:"w-6 h-6",large:"w-12 h-12"},zc=d((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:i="Меню второго уровня",image:r,data:s,onClick:c,version:d})=>o("button",{className:h("group/btn border-0 flex shrink-0 items-center",n?"p-s rounded-full":"p-0 bg-inherit","transparent"===d?"backdrop-opacity-30 bg-white/30":n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Vc[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:c,...ue(s),children:o(le,{image:r,className:h("h-full",{"bg-main-divider/20 rounded-full":t}),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Dc=e=>globalThis[e],Ac=(e,t)=>{const l=document.getElementById(t);if(l){const t=Dc(e);return t?Promise.resolve(t):new Promise((t=>{l.addEventListener("load",(()=>{t(Dc(e))}))}))}return new Promise(((l,n)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{l(Dc(e))})),a.addEventListener("error",(e=>{n(e)})),document.head.appendChild(a)}))};const $c="chatbot",_c="text-page__btn-chat",jc={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Lc=d((({chat:e="personal",iconVersion:t,className:l,ariaLabel:n="Чат",version:i})=>{const r=(e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]);const t=jc[e??""];return l=>{if(t)if("personal"!==e)Ac($c,t);else{const e=l.target;e?.classList.contains(_c)||e?.classList.add(_c),document.getElementById("webchat-js-container:webchat_rshb")||Ac($c,t)}}})(e);return o(zc,{className:l,image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:n,onClick:r,buttonSize:"large",isGrayBg:!0,version:i})})),Oc=d((({className:e="",active:t,dataItemName:l,children:n,data:a,...i})=>{const r=he(),{href:s,target:d,text:m,onClick:u}=r(i);return c("a",{className:h("relative inline-block bg-transparent text-center no-underline",e),href:s,target:d,"data-item-name":l,onClick:u,...ue(a),children:[o("span",{className:Ec(t),children:m||n}),t?o("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-white"}):null]})})),Ec=(e=!1)=>h("font-sans text-l lg:font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Fc=d((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=va(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return o("span",{ref:r,className:n,role:"menuitem",children:o(Oc,{...a,children:l})})})),Uc={default:"bg-main-divider text-primary-main rounded hover:text-primary-main",transparent:"backdrop-opacity-30 bg-white/30 hover:text-primary-hover text-white"},Wc=d((({version:e,text:t,mobileText:l,...n})=>{const a=we()?l:t;return a?o(be,{className:h("py-s px-lg font-light whitespace-nowrap",Uc["transparent"===e?"transparent":"default"]),...n,children:a}):null})),Hc=d((({subItems:e=[],version:t,internetBankButton:l,dropdownMenuAriaLabel:a,chatBotAriaLabel:i})=>{const d="transparent"===t?"white":"black",[,m]=Tc(e),[h,u]=n(e.length),p=e.slice(h),g=s(null),x={rootRef:g},f=r((()=>e.map(((e,t)=>e=>{u(e?qc(t):Kc(t))}))),[e]);return c("nav",{className:"mt-s flex gap-s items-center justify-between",children:[o("div",{ref:g,className:"overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg",role:"menu",children:e.map(((e,t)=>o(Fc,{className:h-1<t?"invisible":"",active:e===m,observerOptions:x,onVisibilityChange:f[t],data:e.dataHeader,...e},String(t))))}),p.length?o(Pc,{items:p,activeItem:m,ariaLabel:a}):null,z.CHAT_BOT?o(Lc,{version:t,iconVersion:d,chat:z.CHAT_BOT,ariaLabel:i}):null,o(Wc,{version:t,...l})]})})),qc=e=>t=>Math.max(t,e+1),Kc=e=>t=>Math.min(t,e),Xc=e=>e?.length?c("div",{className:"sm:border-t sm:border-main-divider mt-2xs pt-2xs",children:[o("div",{className:"mb-m",children:o(Re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),o("div",{className:"flex flex-col sm:flex-row gap-5xl",children:e.map(((e,t)=>o(Yc,{...e},String(t))))})]}):null,Yc=d((({icon:e,...t})=>{const l=he(),{text:n,target:a,href:i,onClick:r}=l(t);return c("div",{className:"flex gap-s items-center",children:[e?o(le,{image:e}):null,n?o("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:o(Re,{size:"text-l",font:"font-light",color:"text-primary-text",children:n})}):null]})})),Gc=(e,t)=>l=>l.name?o(Cs,{href:`/branches/${l.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(l),data:Ss(e,l.name),children:o(Re,{size:"text-l",font:"font-light",children:l.name})},String(l.id)):null,Qc=d((({className:e,searchTerm:t,onSearch:l})=>c("form",{className:`font-sans relative ${e}`,children:[o("div",{className:"absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none",children:t?null:o("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),o("input",{id:"search-bar-input",className:h(al,"h-12 pl-m w-full peer text-l text-black rounded-md box-border"),value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Jc=d((({foreignOffices:e,branches:t})=>{const[l,a]=oo(t?.default),r=he(),{href:s}=r({href:`/branches/${l.slug}`}),[d,m]=n(""),h=ed(In()).sort(((e,t)=>e.name.localeCompare(t.name))),u=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(h,Zc),{close:p}=de(),g=i((e=>{a(e),p()}),[]);return c(Ut,{className:"pb-20",head:c("div",{children:[o(Re,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),l?o("div",{className:"mb-s",children:c(w,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(Cs,{href:s,className:"inline mx-2xs text-primary-main",children:l.name})]})}):null,o(Qc,{onSearch:m,searchTerm:d})]}),children:[d&&d.length>=3?o("div",{children:h.filter((({name:e})=>e&&nc(e.toLowerCase())(d.toLowerCase())>=.8)).map(Gc(t?.dataSelect,g))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(u.entries()).map((x=g,f=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(Re,{size:"text-h6",children:e})}),t.map(Gc(f,x))]},e)))}),Xc(e)]});var x,f})),Zc=e=>e.name?.charAt(0)||"",ed=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),td=d((({className:e="",active:t,flat:l,children:n,data:a,...i})=>{const r=he(),{href:s,target:c,text:d,onClick:m}=r(i);return o("a",{className:h(ld(t,l),e),href:s,target:c,onClick:m,rel:"noopener noreferrer","aria-label":`Ссылка на ${d}`,...ue(a),children:o("span",{suppressHydrationWarning:!0,className:nd(t,l),children:d||n})})})),ld=(e=!1,t=!1)=>h("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",{"px-m py-xs":!t}),nd=(e=!1,t=!1)=>h("font-sans text-s font-light",e?"text-primary-main":h(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ad=d((({className:e,version:t,...l})=>{const n="transparent"===t?"white":"black",[a]=oo(l?.branches?.default),r=pc(l),s=(e=>{const{open:t,close:l}=de();return{open:(l={})=>t(o(Jc,{...e}),l),close:l}})(l),d=i((()=>r.open()),[r]),m=i((()=>s.open()),[s]);return c("div",{className:h("flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg",e),role:"navigation",children:[l?.branches?.visible?o(td,{className:"whitespace-nowrap text-ellipsis overflow-hidden",flat:!0,href:"#",text:a?.name,data:Ss(l?.branches?.dataClick,a?.name??""),onClick:m}):null,l?.officesAtms?.href?o(td,{className:"whitespace-nowrap",flat:!0,...l.officesAtms}):null,o(zc,{image:{icon:"LoupeIcon",iconVersion:n},ariaLabel:l?.search?.ariaLabel??"Поиск",onClick:d,data:l?.search?.data})]})})),id=d((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=va(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return o("span",{ref:r,className:n,role:"menuitem",children:o(td,{...a,children:l})})})),rd=d((({navigationItems:e=[],activeTopItem:t,dropdownMenuAriaLabel:l,version:a,headerData:i,search:d,bgColor:m,logo:h})=>{const[u,p]=n(e.length),g=e.slice(u),x=s(null),f={rootRef:x},b=r((()=>e.map(((e,t)=>e=>{p(e?sd(t):od(t))}))),[e]),{dataFooter:y,dataHeader:v,...N}=h??{};return c("div",{className:"flex items-center justify-between",children:[o(tc,{className:"mr-3xl",bgColor:m,logo:N,data:v,showTitle:!1}),o("div",{ref:x,className:"overflow-hidden min-w-[160px] pb-xs mt-xs",role:"menu",children:e.map(((e,l)=>o(id,{className:u-1<l?"invisible":"",active:e===t,observerOptions:f,onVisibilityChange:b[l],data:e.dataHeader,...e},String(l))))}),g.length?o(Pc,{className:"mx-xs",items:g,activeItem:t,ariaLabel:l}):null,o(ad,{version:a,className:"ml-auto",search:d,navigationItems:e,...i})]})})),sd=e=>t=>Math.max(t,e+1),od=e=>t=>Math.min(t,e),cd={"bg-white":"primary",transparent:"transparent"},dd=["all","header"],md=ht((({className:e,bgColor:t="bg-white",logo:l={},version:n=cd[t],portal:a,header:i={},...r})=>{const{common:s,navigation:d}=ud(r?.options?.page),{navigationItems:m}=d,{logo:u={}}=s,[,p]=Tc(m),{internetBankButton:x}=a||{},f=l.image?.icon||l.image?.src||l?.title?l:u;return o(g,{tag:"header",className:h("pt-m px-20",p?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:n,...r,children:c("div",{className:"container",children:[o("div",{className:"whitespace-nowrap",children:o(rd,{activeTopItem:p,navigationItems:m?.filter(jo(dd)),version:n,headerData:{...i,...d},search:s.search,bgColor:t,logo:f})}),o("div",{className:h("mt-s h-px bg-main-divider",hd(n))}),p?.items?.length&&o(Hc,{subItems:p?.items?.filter(jo(dd)),version:n,internetBankButton:x})]})})})),hd=e=>"transparent"===e?"opacity-30":"",ud=e=>({navigation:e?.navigation??{},common:e?.common??{}}),pd=(e=!1)=>e?{}:{padding:"p-0"},gd={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},xd=ht((({className:e="",padding:t="p-0",gap:l="XS",isInnerPadding:n=!0,version:a="transparent",isTheme:i=!1,isCardBorder:r,...s})=>o(g,{className:h("relative","grid grid-cols-12",gd[l],e),padding:t,version:a,isTheme:i,...s,children:M({...s,extraProps:{...pd(n),className:ba(r)}})})),{childrenTypes:{exclude:["HorizontalLayout"]}}),fd=d((e=>{const{className:t,align:l,image:n,...a}=e,i=l?h("flex",Mi[l]):"";return o(g,{className:h(i,t),defaultPadding:"p-0",...a,children:o(le,{image:n})})})),bd=(e,t=0)=>{const{itemCount:l,visibleItemCount:a}=e,[r,s]=n(t),o=i((()=>s((e=>Math.min(e+1,l-1)))),[l]),c=i((()=>s((e=>Math.max(e-1,0)))),[l]),d=a?l>a&&r<l-a:r<l-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};function yd({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:i=""}){return l||n?c("div",{children:[l?o(Ea,{className:h("absolute z-40",a[0],i),onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?o(Ea,{className:h("absolute z-40 rotate-180",a[1],i),onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const vd=d((({className:e="",cards:t=[],button:l})=>{const[a,r]=n(0),s=i((e=>r(e)),[]),d=t.length,[m,h]=bd({itemCount:d,visibleItemCount:2}),{canDec:u,canInc:p}=h,g=t[m]?.href;return c("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[c("div",{className:"relative overflow-hidden","aria-label":"Страховые программы",children:[d?Nd({activeIndex:m,cards:t,selectedCardIndex:a,onClick:s}):null,yd({...h,btnClass:["left-12","right-12"],className:"top-16"}),u?o("div",{className:"absolute top-0 left-0 h-full w-32 bg-opacity-from-white"}):null,p?o("div",{className:"absolute top-0 right-0 h-full w-32 bg-opacity-to-white"}):null]}),o(be,{className:"w-60 text-center",version:"primary",...l,href:g})]})}));function Nd({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return o("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:o("div",{className:`w-full flex flex-nowrap gap-s pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return c("button",{type:"button",onClick:n,className:"p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?o(le,{className:"p-lg rounded-full bg-secondary-light",image:e.icon,width:"108",height:"108"}):null,c("div",{className:"flex gap-s",children:[e?.sum?wd("страховая сумма",e.sum):null,e?.fee?wd("страховой взнос",e.fee):null]}),kd(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function wd(e,t){return c("div",{className:"flex flex-col text-left whitespace-pre",children:[c(Re,{size:"text-h6",children:[Ue(2)(t)," ₽"]}),o("div",{className:"mt-2xs",children:o(Re,{size:"text-l",color:"text-secondary-text",children:e})})]})}function kd(e){return e?o(le,{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 Sd=d((({className:e="",title:t,insuranceTabs:l=[],button:a,...r})=>{const[s,d]=n(0),m=i((e=>d(e)),[]);return c(g,{className:h("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?o(N,{className:"text-center",title:t,headingType:"h3"}):null,l?.length>1?o("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return o("button",{type:"button",onClick:n,"aria-label":`Кнопка ${e}`,className:"box-border px-m py-s text-m font-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:()=>m(t)})))}):null,o("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Cd({insuranceTabs:l,button:a})})]})})),Cd=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>o(vd,{button:t,cards:e},String(l)))):null};const Td={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Id={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},Bd=d((e=>{const{className:t="",__html:l,isDotted:n,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),o(g,{className:t,defaultPadding:"p-4xl",...r,children:c("div",{className:"container text-m font-light space-y-4xl",children:[s?.length?c("div",{children:[c("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[si(o("div",{className:"w-px h-4 bg-gray"}))(s.map(Pd)),o("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),o("div",{className:"border-t border-gray -mt-xs mx-3xl"}),o("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(Vd)})]}):null,l?o("div",{className:"max-w-2xl font-light text-base",children:o(Pe,{__html:l,isDotted:n,itemSize:"list-s"})}):null]})})})),Pd=(e,t,l)=>{const n=1===t,a=t===l.length-1;return o("div",{className:`${Md(n,a,e.cells)}`,children:e.cells?.length?o("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-72":""),children:e.cells.reverse().map(Rd)}):null},`column_${t}`)},Md=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-s",l.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),Rd=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?o("div",{className:`flex-1 flex items-center justify-center relative py-xs ${Id[l]} ${Td[n]} ${"XS"===l?"px-s":"px-5xl"}`,children:o(Re,{align:"text-center",children:e.text})},`cell_${t}`):null},Vd=(e,t)=>e?.title?o("div",{className:"flex-1 max-w-44 text-center px-xs last:pr-4xl last:max-w-52",children:e.title},`title_${t}`):null,zd=["байт","Кб","Мб","Гб","Тб","Пб"],Dd=d((({icon:e,text:t,href:l,target:n,fileFormat:a,data:i,fileSize:r})=>{const s=r&&a?",":"",d=r??"",m=a?String(a):"";return c("a",{className:"flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",href:l,target:n,...ue(i),children:[e,t?c(Re,{size:"text-l",font:"font-light",children:[t," ",Ad(d,m),o(Re,{color:"text-secondary-text",children:l&&`${d+s+m}`})]}):null]})})),Ad=(e,t)=>e||t?o("span",{children:", "}):"",$d=(e,t)=>(l,n)=>{const a=U(e)("Attachment"===l?.docType?l?.attachment?.src:l?.href),i="Attachment"===l?.docType?((e,t=2)=>{if(0===e)return"";const l=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,l)).toFixed(t))} ${zd[l]}`})(l?.attachment?.fileSize||0):l?.fileSize,r="Attachment"===l?.docType?jd(a):l?.fileFormat;return c("div",{role:"listitem",children:[o(Dd,{text:l?.text,target:l?.target,href:a,fileFormat:r,fileSize:i,icon:_d(t),data:l?.data}),o(Pe,{__html:l?.__html})]},String(n))},_d=e=>e?o(le,{className:"min-w-6 min-h-6",image:e,width:"24",height:"24"}):null,jd=e=>{if(!e)return"";const t=e.lastIndexOf("."),l=new RegExp(/\/(.*)/),n=-1!==t?e.substring(t+1):"";return n.includes("/")?n.replace(l,""):n},Ld=d((({href:e,__html:t,target:l})=>{const{close:n}=de(),a=R(),r=U(a)(e),s=i((()=>{n()}),[]);return c(Ut,{className:"my-6xl min-h-fit w-fit mx-auto",children:[t?o(Pe,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(be,{text:"Я согласен",version:"primary",target:l,href:r,onClick:s}),o(Et,{type:"button",version:"secondary",onClick:s,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]})})),Od=d((({text:e,href:t,target:l,__html:n})=>{if(!e&&!n)return null;const a=(e=>{const{open:t,close:l}=de();return{open:(l={})=>t(o(Ld,{...e}),l),close:l}})({__html:n,href:t,target:l}),r=i((()=>a.open()),[a]);return o("button",{className:"text-primary-main",onClick:r,children:e})})),Ed={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Fd=ht((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=R();return c(g,{className:h("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(S,{title:t,description:l,align:n,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?o("div",{className:h("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Ed[r]),role:"list",children:a.map(Ud(d,i))}):null]})})),Ud=(e,t)=>(l,n)=>{const a=l?.docType;return""===a?null:"reportSource"in l&&l?.reportSource?.__html?Wd(l,n):$d(e,t)(l,n)},Wd=(e,t)=>{const l={text:e.text,target:e.target,__html:e.reportSource?.__html};return e.reportSource?.__html&&e.text?c("div",{role:"listitem",children:[o(Od,{...l,href:Hd(e)?e?.href:e?.attachment?.src}),o(Pe,{__html:e?.__html})]},String(t)):null},Hd=e=>"href"in e,qd=ht((({className:e,padding:t,align:l="text-left",buttons:n=[],description:a,image:i,__html:r,headingType:s,qr:d,additionalDescription:m="",title:u="Мобильное приложение",version:p="primary",...x})=>{const f="secondary"===p?"p-m min-w-32":"min-w-24",b=i?.src?o(le,{className:"hidden lg:block",image:i}):null;return o(g,{className:h("min-h-80",e),padding:"p-0",version:p,...x,children:c(Ce,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(N,{headingType:s,title:u,className:h("whitespace-pre-wrap",l)}),rightImage:b,buttons:Le(n,{className:"flex-wrap"}),children:[a?o(Re,{size:"text-xl","font-weight":"font-light",children:a}):null,c("div",{className:h("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(Pe,{__html:r,itemSize:"list-m"}):null,o(Re,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:h("flex justify-center bg-white rounded-md @xl:-order-1",f),children:o(le,{className:"w-fit",image:d})}):null,i?.src?o(le,{className:"lg:hidden",image:i}):null]})]})})})),Kd=(e,t)=>e&&"underlined"!==t?"primary":"secondary",Xd=(e=[],t={})=>e.filter((({content:e={}})=>pi(t,e))).length,Yd=(e,t)=>e===t;const Gd=(Qd=function(...e){return(t,l)=>e.some((e=>e(t,l)))}(Yd,((e=Yd)=>(t,l)=>t===l||Boolean(t&&l&&t.length===l.length&&t.every(((t,n)=>e(t,l[n])))))()),(e,t)=>e===t||Boolean(e&&t&&Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every((([e,l])=>Qd(l,t[e])))));var Qd;const Jd=[],Zd={},em={primary:"bg-white/30",secondary:"bg-main-divider"},tm={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},lm=d((({count:e,version:t="secondary"})=>{const l=we(),n=l?"bg-main-divider":em[t],a=tm[t][l?"mobile":"desktop"];return o("div",{className:h("w-6 h-6 rounded-full flex items-center justify-center",n),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(Re,{size:"text-xs",color:a,children:e})})})),nm=({text:e,description:t,icon:l,isActive:n,type:a})=>{const i=(e=>({btn:"w-96 "+(e?"p-m border-none bg-primary-main text-white":"p-s ease-in duration-300 bg-white"),text:e?"mb-xs text-xl":"mb-2xs text-l text-primary-text",desc:"font-light "+(e?"text-l text-white":"text-m text-secondary-text"),icon:e?"":"text-primary-main",iconVersion:e?"white":"normal",oldText:"text-m text-center",oldDesc:"text-m-light"}))(n);return c("div",{className:h("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[l?o(le,{className:h("h-6 w-6 min-w-6 min-h-6",i.icon),image:{...l,iconVersion:l?.iconVersion??i.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?i.text:i.oldText,children:e}),o("div",{className:"animated"===a?i.desc:i.oldDesc,children:t})]})]})},am={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},im={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},rm={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},sm={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},om=d((({tag:e="div",item:t={},isActive:l=!1,type:n="default",onClick:a})=>{const i=e,{text:r,description:s,icon:d,count:m,tabName:u,...p}=t;return o(i,{className:h("h-12","block flex-1","cursor-pointer",am[n],l?sm[n]:rm[n]),role:"tablist","aria-label":"Список табов",onClick:a,...p,children:c("div",{className:h("h-full","flex justify-center items-center","text-center whitespace-nowrap",l?im[n]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[nm({text:r,description:s,icon:d,isActive:l,type:n}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(lm,{count:m,version:Kd(l,n)})}):null]})})})),cm=d((e=>o(e?.item?.href?dm:mm,{...e}))),dm=d((e=>{const t=he(),l=i((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:n,...a}=t({...e.item,onClick:l});return o(om,{...e,tag:"a",item:a,onClick:n})})),mm=d((({item:e={},onClick:t,...l})=>{const n=i((()=>{t&&t(e)}),[t,e]);return o(om,{item:e,onClick:n,...l})})),hm=(e,t,l)=>(n,a)=>o(cm,{isActive:n===e,onClick:t,type:l,item:n},String(a)),um=d((({className:e,tabsType:t="default",items:l=[],activeItem:n,onChange:a})=>o("div",{className:h("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:l.map(hm(n,a,t))}))),pm={categories:[],extraOptions:[],propertyType:[],stage:[]},gm=ht((({className:e,hotFilters:t,filtrationSchema:l={},resetButton:n,...a})=>{const[s,{blocksToRender:d},{field:m,reset:u,update:p}]=xi(pm,{block:a.block,page:a.options?.page}),x=i(((e=pm)=>p(e)),[]),f=(({hotFilters:e=Jd,filtrationState:t=Zd,blocks:l=Jd,onFiltrationStateChange:n})=>{const a=r((()=>Math.max(0,e.findIndex((e=>Gd(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:Xd(l,t.filter),version:Kd(t===e[a])})))),[e,l,a]),o=i((t=>{n(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[a],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:a.block?.blocks,onFiltrationStateChange:x});return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...a,children:[o(um,{...f}),o(ci,{filtrationSchema:l,resetButton:n,field:m,reset:u}),o(ii,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),xm=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),fm=d((({children:e})=>xm?e:null)),bm=d((({color:e="text-primary-main",position:t="absolute",blur:l=!0})=>o("div",{className:h("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":l}),children:o("div",{className:h("inline-block h-28 w-28","animate-spin rounded-full","border-8 border-solid border-current","border-r-transparent",e),role:"status"})}))),ym="/icons/MapMarkerClusterIcon.svg",vm="/icons/MapMarkerClusterYellowIcon.svg";function Nm({yandexMaps:e,map:t,points:l,isLoad:n}){if(n||!l?.length)return;t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),i=wm("offices",e,a);if(l.length&&l.every((e=>"type"in e))){const n=wm("workplaces",e,a),r=km(l.filter((e=>"workplaces"===e.type)),"workplaces",e),s=km(l.filter((e=>"offices"===e.type)),"offices",e);i.add(s),n.add(r),t.geoObjects.add(n),t.geoObjects.add(i)}else{const n=km(l,"offices",e);i.add(n),t.geoObjects.add(i)}t.setBounds(e.util.bounds.fromPoints(l.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const wm=(e,t,l)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?ym:vm,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),km=(e,t,l)=>e.map((({coords:e,content:n})=>new l.Placemark(e,{balloonContentHeader:n?.header,balloonContentBody:n?.body,balloonContentFooter:n?.footer,hintContent:n?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?ym:vm,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Sm={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},Cm={...Sm,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},Tm=(e,t,l)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(Cm).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(H,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Im=()=>function(e,t,l=!0){const[i,r]=n(void 0);return a((()=>{let n=!0;return Ac(e,t).then((e=>{n&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(n=!1,l){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,l]),i}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${z.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1),Bm={...Sm,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Pm=d((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(Bm).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(H,{name:l,width:"20",height:"16"})})})),Mm=[55.753995,37.614069],Rm=d((({points:e,className:t="",zoom:l=5,isLoad:n})=>{const i=s(null),r=Im();if(a((()=>{i.current?(Nm({yandexMaps:r,map:i.current,points:e,isLoad:n}),i.current.setCenter(Vm(e))):r?.ready((()=>{i.current||(i.current=new r.Map("map",{center:Vm(e),zoom:l,controls:[],suppressMapOpenBlock:!0})),Nm({yandexMaps:r,map:i.current,points:e,isLoad:n})}))}),[r,e,l,n]),!r)return null;const d="z-10";return c("div",{id:"map",className:h("relative","w-full",t),children:[n?o(bm,{}):null,c("div",{className:h("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",d),children:[o(Pm,{yandexMaps:i}),o(Pm,{yandexMaps:i,direction:"out"})]}),Tm(i,r,h("right-2 top-80",d))]})})),Vm=e=>{const t=[Dm(zm(e,0)),Dm(zm(e,1))];return t.every((e=>e))?t:Mm},zm=(e,t)=>e.map((e=>e.coords?.[t])),Dm=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Am=({__html:e,list:t,richVersion:l})=>e||t?.length?c("div",{className:"mb-2xl border-b sm:border border-main-divider sm:rounded-md",children:[e?o("div",{className:"mb-2xl",children:o(Pe,{__html:e,richVersion:l})}):null,t?.length?o("div",{className:"flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl",children:t.map(((e,t)=>c("div",{className:"flex gap-xs items-center",children:[e?.image?o(le,{image:e.image}):null,e?.text?o(Re,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,$m={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},_m="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",jm=(e,{field:t,reset:l},n)=>{const a=n?5:6,i=(e||[]).map((e=>o(Gt,{text:$m[e],...t(e)},e))),[r,s]=a>0?[i.slice(0,a),i.slice(a)]:[i,[]];return o("div",{children:e?.length?o("div",{children:o(ei,{renderFoldableSection:({isUnfolded:e})=>c("div",{children:[o("div",{className:_m,children:r}),o(ti,{className:_m,isUnfolded:e,children:s})]}),renderFoldButton:Lm(l,n)})}):null})},Lm=(e,t)=>({isUnfolded:l,onToggle:n})=>c("div",{className:"flex space-x-lg",children:[t?o(be,{version:"transparent",className:"text-secondary-text [&>*]:p-0",appendRight:o(H,{name:["ArrowDownIcon","ArrowUpIcon"][Number(l)],width:"16",height:"16"}),text:["Больше фильтров","Меньше фильтров"][Number(l)],onClick:n}):null,o(be,{version:"transparent",className:"text-secondary-text [&>*]:p-0",onClick:e,children:Om()})]}),Om=()=>c("div",{className:"flex items-center",children:["Очистить фильтр",o(H,{name:"CloseIcon",width:"16",height:"16",className:"ml-2xs"})]}),Em=()=>{},Fm=()=>[],Um=e=>"all"===e?"block":"hidden",Wm=d((({className:e,data:t=[],isLoad:l,remoteWorkplaces:a=[],renderCard:i=Em,renderRemoteWorkplaceCard:s=Em,filterItems:d=Fm,getBalloon:m=Em,getBalloonRemoteWorkplaces:u=Em,initFilterState:p={},descriptionData:g,title:x})=>{const f=x?.includes("Офис"),[b,{field:y,reset:v}]=At(p),[N,w,k,S]=r((()=>{const e=d(t,b),l=d(a,b),n=[...e.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:m(e)}))),...l.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:u({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[e,n,l,e.length+l?.length]}),[t,a,b]),[C,T]=n("all");return c("div",{className:h("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[Hm(x,S),g?Am(g):null,f&&qm(t,C,T),o("div",{className:h("pb-3xl",Um(C)),children:jm(Object.keys(p),{field:y,reset:v},f)})]}),o("div",{className:"h-[600px]",children:o(fm,{children:o(Rm,{points:w,isLoad:l,className:"h-full"})})})]}),c(fm,{children:[N.map(i),k.map(s)]})]})})),Hm=(e,t)=>o("div",{className:"flex flex-col sm:flex-row gap-xs mb-2xl",children:c(N,{headingType:"h3",children:[o("span",{suppressHydrationWarning:!0,children:e}),t?o(Re,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),qm=(e,t,l)=>{const n=Kd("all"===t),a=Kd("business"===t),i=(e,t,n)=>(e.currentTarget===e.target&&"business"===t&&n.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription)),l(t),n);return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(Et,{"data-id":"all",onClick:t=>i(t,"all",e),version:n,children:"Для физических лиц"}),o(Et,{"data-id":"business",onClick:t=>i(t,"business",e),version:a,children:"Для юридических лиц"})]})},Km={yellow:{border:"border-yellow-light",text:"text-yellow"},green:{border:"border-green-more-light",text:"text-green-dark"},gray:{border:"border-gray",text:"text-secondary-text"},red:{border:"border-error/30",text:"text-error"}},Xm=d((({className:e,children:t,color:l="gray"})=>c("div",{className:h("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",Km[l].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(le,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Re,{size:"text-m",color:Km[l].text,children:t})]}))),Ym=d((({value:e,subText:t,children:l,isPhone:n,...a})=>{const i=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[i.length,l,t].every((e=>!e))?null:Gm({textItems:i,subText:t,children:l,isPhone:n,...a})})),Gm=({label:e,labelSize:t="text-m",textItems:l,subColor:n,subText:a,className:i,children:r,isPhone:s=!1})=>c("div",{className:h("flex gap-2xs flex-col h-full max-w-[300px]",i),children:[e?o(Re,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||Qm(l,s),a?o(Re,{color:n,size:"text-m",children:a}):null]}),Qm=(e,t)=>e.filter(Boolean).map(((e,l)=>o(Re,{size:"text-l",children:t?o("a",{href:`tel:${Jm(e)}`,children:e.trim()}):e.trim()},String(l)))),Jm=e=>e.replace(/\D/g,""),Zm=d((({className:e,children:t})=>o("div",{className:h("flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl",e),children:t}))),eh=["ArrowDownIcon","ArrowUpIcon"],th=["Подробнее","Скрыть"],lh=({isUnfolded:e,onToggle:t})=>c("button",{className:"w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider",onClick:t,type:"button",children:[o("div",{className:"pr-m",children:th[Number(e)]}),o(H,{className:"text-primary-text",name:eh[Number(e)],width:"16",height:"16"})]}),nh=({location:e,address:t,billAcceptorType:l,terminalType:n,billAcceptorEnable:a,atmCode:i="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:rh(n)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===l?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:i}];return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(Re,{size:"text-h4",children:rh(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(Xm,{color:"green",children:rh(s)})})]}),o("div",{className:"hidden sm:block",children:o(Zm,{className:"flex-wrap",children:m?.map(ih)})}),o(ei,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ti,{isUnfolded:e,children:o(Zm,{className:"flex-wrap",children:m?.map(ih)})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>lh({isUnfolded:e,onToggle:t})})]},String(d))},ah=({address:e="",terminalType:t,atmCode:l=""})=>({header:`${rh(t)} №${l}`,body:e.toUpperCase()}),ih=(e,t)=>o(Ym,{...e},String(t)),rh=e=>e?`${e?.charAt(0)?.toUpperCase()}${e?.slice(1)}`:"",sh=[];const oh=async e=>{const t=await it(e,{method:"GET"});return Array.isArray(t)?t:sh},ch={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},dh={terminalTypeAtms:e=>"банкомат"===e.terminalType?.toLowerCase(),terminalTypeTerm:e=>"терминал"===e.terminalType?.toLowerCase(),workAllTime:e=>"круглосуточно"===e.workTime?.toLowerCase(),billAcceptorEnable:e=>Boolean(e.billAcceptorEnable),locationDisabledPeople:e=>Boolean(e.locationDisabledPeople),designDisabledPeople:e=>Boolean(e.designDisabledPeople)},mh=d((({descriptionData:e,className:t})=>{const[l]=oo(),n=l?.code??"000",{data:a,isLoad:i}=function(e){const{data:t,error:l}=Jl(`/api/v1/atms?regionCode=${e}`,oh);return{data:t||sh,isLoad:!t&&!l}}(n);return o(Wm,{className:t,filterItems:hh,data:a,isLoad:i,initFilterState:ch,renderCard:nh,getBalloon:ah,title:`Банкоматы филиала ${l?.name}`,descriptionData:e})})),hh=(e,t)=>{const l=Object.keys(t).filter((e=>t[e])),n=l.filter((e=>e.startsWith("terminalType"))),a=l.filter((e=>!n.includes(e)));return e.filter((e=>{const t=a.every((t=>dh[t](e))),l=!n.length||n.some((t=>dh[t](e)));return t&&l}))},uh=e=>{const t=gh(e);return o(Ym,{label:"Режим работы",value:t,className:"max-w-none"})},ph=({workTime:e="",lunchHour:t="",daysOff:l=""},n=!1)=>e?[`${n?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",l?`не работает: ${l}`:""].filter(Boolean).join("; "):"",gh=e=>{const t=e.find((e=>"workingSaturday"!==e.key&&Boolean(e.status)&&Boolean(e.workTime))),l=e.find((e=>"workingSaturday"===e.key&&Boolean(e.status)&&Boolean(e.workTime))),n=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[ph({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:l?"":n}),ph({workTime:l?.workTime,lunchHour:l?.lunchHour,daysOff:n},!0)].filter(Boolean)},xh=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],fh=e=>xh.map((([t,l,n])=>({key:t,title:n,short:l,status:Boolean(e?.[t]),get workTime(){return"workingSaturday"===t?e?.workTimeSaturday:e?.workTime},get lunchHour(){return"workingSaturday"===t?e?.lunchHourSaturday:e?.lunchHour},get hasLunch(){return/\d+/.test(this.lunchHour??"")}}))),bh=e=>{if(!e)return null;const t=yh(e);return c(Zm,{className:"border-none",children:[o(Ym,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(vh)})}),o(Ym,{label:"Режим работы",className:"max-w-none",children:o(Re,{children:e})})]})},yh=e=>{const t=xh.map((([,e])=>({short:e,status:!0}))),l=e.split("/")??[],n=l[l.length-1]?.toLowerCase();return n?.includes("выходной")?t.map((e=>({...e,status:!n?.includes(e.short.toLowerCase())}))):t},vh=({short:e,status:t},l)=>o("div",{className:h("w-9 h-9 rounded-md flex items-center justify-center",t?"bg-green-more-light text-green-dark":"bg-error/30 text-error"),children:o(Re,{size:"text-xs",children:e})},String(l)),Nh=({currency:e,buyExchangeRate:t,saleExchangeRate:l},n)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(Ym,{label:"Валюта",value:e.currency}):null,t?o(Ym,{label:"Купить",value:String(t)}):null,l?o(Ym,{label:"Продать",value:String(l)}):null]},String(n)),wh=(new Date).getDay(),kh=e=>{const[t]=e?.slice(wh-1)??[];if(!t)return null;const{lunchHour:l,status:n,workTime:a,hasLunch:i}=t;return n?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(Xm,{color:"green",children:a}):null,l&&i?o(Xm,{color:"yellow",children:`перерыв: ${l}`}):null]}):o(Xm,{color:"red",children:"Выходной"})},Sh=({lunchHour:e,hasLunch:t=!1,status:l=!1})=>l?e&&t?`Перерыв ${e}`:e:"Не работает",Ch=({title:e,status:t,workTime:l,lunchHour:n,hasLunch:a},i)=>o(Ym,{label:e,value:t&&l?l:"",subText:Sh({lunchHour:n,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(i)),Th=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,Ih=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,Bh=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,Ph=({name:e,address:t,phone:l,fax:n,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m},h)=>{if(!d)return null;const u=fh(d);return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(Re,{size:"text-h4",children:e}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:t})]}):null]}),kh(u)]}),o("div",{className:"hidden sm:block",children:Mh({phone:l,fax:n,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),o(ei,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ti,{isUnfolded:e,children:Mh({phone:l,fax:n,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>lh({isUnfolded:e,onToggle:t})})]},String(h))},Mh=({phone:e,fax:t,phoneBusiness:l,phoneNatural:n,phoneCallCentre:a,phoneCurrencyControl:i,workSchedule:r,exchangeRate:s})=>{const d=fh(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(Zm,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(Ym,{label:"Факс",value:t,isPhone:!0}),o(Ym,{label:"Телефон филиала",value:e,isPhone:!0}),o(Ym,{label:"Для обращений юридических лиц",value:l,isPhone:!0}),o(Ym,{label:"Обслуживание физических лиц",value:n,isPhone:!0}),o(Ym,{label:"Для консультаций по валютному контролю",value:i,isPhone:!0}),o(Ym,{label:"Контакт-центр",value:a,isPhone:!0})]}),r?.isMatchesPattern?o(Zm,{children:o(Ym,{label:m,labelSize:"text-l",className:"w-full max-w-none",children:o("div",{className:"flex flex-wrap gap-xs sm:justify-between pt-xs",children:d?.map(Ch)})})}):c(Zm,{children:[o(Ym,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(vh)})}),uh(d)]}),r?.businessScheduleVisibleTag?bh(r?.businessScheduleDescription):null,s?.currencies?.length?o(Zm,{className:"flex-wrap",children:s?.currencies?.map(Nh)}):null]})},Rh=({name:e="",address:t="",workSchedule:l})=>{const n=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const i=`${t} ${(e=>{const t=fh(e),l=e?gh(t):"",n=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?Th(l):Bh(l,n):Ih(l):null})(l)}`;return{header:n,body:i}},Vh=({address:e,workScheduleDescription:t},l)=>t?c("div",{className:"bg-white col-span-12 p-3xl sm:border-yellow sm:border",children:[o("div",{className:"sm:flex sm:justify-between",children:c("div",{children:[o(Re,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:e})]}):null]})}),o("div",{className:"hidden sm:block",children:zh({workScheduleDescription:t})}),o(ei,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ti,{isUnfolded:e,children:zh({workScheduleDescription:t})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>lh({isUnfolded:e,onToggle:t})})]},String(l)):null,zh=({workScheduleDescription:e})=>c("div",{children:[c(Zm,{className:"flex",children:[o(Ym,{label:"Операции для физических лиц",children:o(Re,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(Ym,{label:"Операции для физических лиц",children:o(Re,{children:"Оформление и обслуживание банковских карт"})}),o(Ym,{label:"Операции для физических лиц",children:o(Re,{children:"Инвестиционное и накопительное страхование"})}),o(Ym,{label:"Операции для физических лиц",children:o(Re,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(Ym,{label:"Режим работы",className:"max-w-none",children:o(Re,{children:e})})]}),Dh=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),Ah={branches:[],remoteWorkplaces:[]};const $h=async e=>await it(e,{method:"GET"})||Ah,_h={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},jh={workingSaturday:e=>Boolean("workSchedule"in e&&e.workSchedule?.workingSaturday),premiumService:e=>Boolean("premiumService"in e&&e.premiumService),privateBanking:e=>Boolean("privateBanking"in e&&e.privateBanking),remoteWorkplace:e=>Boolean("workScheduleDescription"in e),serviceDisabledPeople:e=>Boolean("serviceDisabledPeople"in e&&e.serviceDisabledPeople),sellingCoins:e=>Boolean("sellingCoins"in e&&e.sellingCoins),buyingCoins:e=>Boolean("buyingCoins"in e&&e.buyingCoins),bullionOperations:e=>Boolean("bullionOperations"in e&&e.bullionOperations),preciousMetalsOperations:e=>Boolean("preciousMetalsOperations"in e&&e.preciousMetalsOperations),transferringDataToBiometricSystem:e=>Boolean("transferringDataToBiometricSystem"in e&&e.transferringDataToBiometricSystem)},Lh=d((({className:e})=>{const[t]=oo(),l=t?.code??"000",{data:n,isLoad:a}=function(e){const{data:t,error:l}=Jl(`/api/v1/branchesAndRemoteWorkplaces?regionCode=${e}`,$h);return{data:t||Ah,isLoad:!t&&!l}}(l);return o(Wm,{className:e,filterItems:Oh,data:n?.branches,isLoad:a,remoteWorkplaces:n?.remoteWorkplaces,initFilterState:_h,renderCard:Ph,renderRemoteWorkplaceCard:Vh,getBalloon:Rh,getBalloonRemoteWorkplaces:Dh,title:`Офисы филиала ${t?.name}`})})),Oh=(e,t)=>{const l=Object.keys(t).filter((e=>t[e]));return e.filter((e=>l.every((t=>jh[t](e)))))},Eh=d((({data:e,className:t,...l})=>{const n=e?.dataType??"offices";return o(g,{version:"transparent",className:h(t),defaultPadding:"p-0",...l,children:"offices"===n?o(Lh,{}):o(mh,{descriptionData:e})})})),Fh=d((({className:e,title:t,description:l="Блок в разработке...",...n})=>c(g,{className:h("box-border",e),...n,children:[o(S,{className:"max-w-[600px]",title:t,description:l,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(x,{})]}))),Uh="hidden sm:flex absolute z-40 top-10",Wh=ht((({className:e="",padding:t,slides:l=[],...a})=>{const[i,r]=n(0),[s,d]=_a({itemCount:l?.length||0});return c(g,{className:h("box-border overflow-hidden",e),defaultPadding:"pt-6xl",padding:t,...a,children:[o("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:l.map((({productBlock:e},t)=>o("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:o(Ye,{className:"pl-6xl h-full",headlineVersion:"M",isFullWidthTitle:!1,...e,...a})},String(t))))}),c("div",{className:"relative pr-xs mt-m -mb-m flex gap-xs box-border",children:[o(Sa,{containerRef:s,snapAlign:"snap-start",onVisibleIndicesChange:d.handleVisibleIndicesChange,itemClassName:"h-40 flex items-stretch w-screen",gap:8,children:l.map(Hh({activeSlideIndex:i,onClick:r}))}),d.canScrollLeft?o(Fa,{className:h("left-6",Uh),onClick:d.scrollLeft}):null,d.canScrollRight?o(Ua,{className:h("right-6",Uh),onClick:d.scrollRight}):null]})]})})),Hh=({activeSlideIndex:e,onClick:t})=>({nav:l},n)=>{const a=n===e,i=a?"min-w-[370px] mt-s h-28 bg-white shadow-dark-blue border-none p-6":"min-w-72 mt-lg h-24 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur",r=a?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:h("relative overflow-hidden grow","ml-xs px-xl","box-border basis-0 border","border-gray group-data-secondary:border-white/50","text-left whitespace-nowrap",i),children:[o("div",{className:r,children:l?.title}),o("div",{className:s,children:l?.description})]},String(n))},qh=d((({address:e,email:t,telephone:l,button:n,className:a="",__html:i,richVersion:r,icon:s,title:d,version:m="primary",...u})=>c(g,{className:h("box-border text-left space-y-s",a),version:m,...u,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[je(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(le,{image:s})}):null,d?o(N,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[i?Kh({__html:i,richVersion:r}):null,Xh({label:"Адрес",data:e,iconName:"GeolocationIcon"}),Xh({label:"Телефон(факс)",data:l,iconName:"PhoneIcon"}),Xh({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),n?.text?Le([n]):null]})]}))),Kh=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(Pe,{...e,itemSize:"list-s"})}),Xh=({label:e,data:t,iconName:l,dataColor:n=""})=>t?c("div",{className:"flex gap-s",children:[o(H,{iconVersion:"black",name:l,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Re,{size:"text-xl",color:n,children:t})]})]}):null,Yh=d((e=>{const{__html:t,richVersion:l="",...n}=e;return o(g,{defaultPadding:"p-0",...n,children:o(Pe,{__html:t,richVersion:l})})})),Gh=d((({label:e,labelIconBgVersion:t,icon:l,onToggle:n,labelIcon:a})=>o(Qa,{tag:"button",className:h("border-none bg-transparent items-center group/button",a?.icon?"py-xs":"py-lg"),onClick:n,textNode:c("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[null,e?o(Re,{size:"text-h6",font:"font-normal",children:e}):null]}),iconNode:l?o(H,{name:l,iconVersion:"color",width:"24",height:"24"}):null}))),Qh=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",Jh=(e=!1)=>e?"MinusIcon":"PlusIcon",Zh=(e=!1)=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",eu=ht((({className:e="",isExpanded:t,isFoldButtonOnTop:l=!0,label:n="Развернуть",labelIcon:a,labelIconBgVersion:i,foldButtonVersion:r="default",version:s,role:c,...d})=>{const m=we();return o(g,{className:h("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:c,...d,children:o(ei,{isFoldButtonOnTop:l,unfoldedByDefault:t,renderFoldableSection:({isUnfolded:e})=>o(ti,{className:h("gap-lg",Qh(m)),isUnfolded:e,children:M({...d,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>tu({foldButtonVersion:r,label:n,labelIcon:a,labelIconBgVersion:i,isUnfolded:e,onToggle:t,isMobile:m})})})}),{childrenTypes:{exclude:["RollupItem"]}}),tu=({foldButtonVersion:e,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:a,onToggle:i,isMobile:r=!1})=>{const s=t||(a?"Скрыть":"Развернуть"),c=((e=!1,t=!1)=>t?Zh(e):Jh(e))(a,r);return"accordion"===e?o(Gh,{label:s,labelIcon:l,labelIconBgVersion:n,icon:c,onToggle:i}):o(Ja,{label:s,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},lu=d((({className:e=""})=>{const[t,l]=n("option2"),a=i((e=>l(e)),[]);return c("div",{className:h("order-4",e),role:"radiogroup",children:[o(Zn,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(Zn,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),nu=d((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),c=s.find((e=>e.key===n));return o(ul,{options:s,label:r,placeholder:a||n,onChange:e=>i(e.key),value:c})})),au=d((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(nu,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(nu,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),iu=["От 1 дня","До 365 дней"],ru=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Re,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(mn,{min:1,max:365,value:e,items:iu,onChange:t})]}))),su=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(nu,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(nu,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ou=d((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:h})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(au,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:cu(m)}),o(ru,{days:a,setDays:e=>m({days:e})}),o(su,{caseVolumes:d,selectedCaseVolume:i,onSelectedCaseVolume:du(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),c("div",{className:"contents @md:flex justify-between items-center gap-m",children:[o(lu,{}),o(be,{text:"Офисы на карте",version:"primary",onClick:h,className:"order-6"})]})]}))),cu=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},du=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},mu=d((({days:e,tariffs:t=[]})=>{const l=uu(e,t),n="На рисунке изображена пачка листов\nформата А4";return c("div",{className:"contents @xl:flex flex-col justify-between gap-xl order-2",children:[c("div",{className:"flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none",children:[hu("Аренда за",e),hu("Цена",l+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:n})}),c("div",{className:"flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center",children:[o(le,{image:{icon:"PackA4Icon"},className:"@xl:h-60"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(w,{size:"text-s",font:"font-light",color:"text-white",children:n})})]})]})})),hu=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o("span",{className:"text-l @xl:text-h3 text-primary-text",children:t})]}),uu=(e,t)=>{const l=pu(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},pu=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},gu=(e,t)=>e.find((e=>e.branchCode===t)),xu=d((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=gu(n,l.selectedBranch),d=fu(s?.safeBoxCaseVolumes),m=bu(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,h=yu(m,l.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(ou,{...l,regions:t,onClick:r,branches:n,caseVolumes:d,safeBoxCases:m,onChange:i}),o(mu,{days:l.days,tariffs:h})]})})),fu=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],bu=(e,t)=>e?.find((e=>e.volume===t)),yu=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,vu=[];const Nu=async e=>await it(e,{method:"GET"})||vu,wu=d((({title:e,footnote:t,className:l="",...a})=>{const[r,s]=n(!1),d=i((()=>s((e=>!e))),[]),[m,h]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=In(),p=ku(m.selectedRegion,u),x=function(e){const{data:t}=Jl(e?`/api/v1/safeboxes?regionCode=${e}`:null,Nu);return t||vu}(p),f=i((e=>h((t=>({...t,...e})))),[h]),b=(y=gu(x,m.selectedBranch)||x,Array.isArray(y)?y.map((e=>({coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)].filter(Boolean),content:void 0}))).filter((e=>e.coords&&2===e.coords.length)):y?.gpsLatitude&&y?.gpsLongitude?[{coords:[y.gpsLatitude,y.gpsLongitude]}]:[]);var y;return c(g,{className:l,defaultPadding:"",...a,children:[c("div",{className:"p-4xl space-y-xl",children:[e?o(N,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,o(xu,{regions:u,branches:x,data:{...m,selectedRegion:p},onClick:d,onChange:f}),t?o(w,{size:"text-s",font:"font-light",children:t}):null]}),b.length&&r?o(Rm,{points:b,className:"h-[640px]"}):null]})})),ku=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Su=e=>e<4?"w-72":"w-52",Cu={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Tu=d((({buttons:e,className:t="",description:l,showLines:n=!0,steps:a=[],stepVersion:i="gray",title:r,version:s="primary",...d})=>{const m=a.length>3,u=Cu,p=(e=>e?"":"opacity-0")(n),x=we();return c(g,{className:h("box-border flex flex-col items-center overflow-hidden gap-y-3xl",t),defaultPadding:"p-6xl",version:s,...d,children:[o(S,{headlineVersion:"S",title:r,description:l,isEmbedded:!0,className:"w-full",align:Ni(x)}),a?.length?c("div",{className:"box-border space-y-lg flex flex-col justify-center",children:[o("div",{className:h("flex items-center",m?"px-16":"px-24"),children:si(o("div",{className:h("h-0.5 w-full bg-secondary-light flex-1",p)}))(a.map(Iu(u,m,i)))}),o("div",{className:h("flex justify-between",m?"gap-x-s":"gap-x-20"),children:a.map((f={styleMap:u,version:s},(e,t,l)=>{const{styleMap:n,version:a}=f,{label:i,description:r,button:s,isDotted:d}=e;return c("div",{className:h("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",Su(l.length)),children:[c("div",{className:"space-y-xs",children:[i?o(Re,{size:"text-h6",align:"text-center",children:i}):null,c("div",{className:"flex flex-col items-center gap-3xs",children:[r?o("div",{className:n.description,children:r}):null,o(Pe,{__html:e.__html,itemSize:"list-s",isDotted:d})]})]}),s?.text?o(be,{className:"box-border py-s w-full max-w-60 mt-auto",version:a,...s,children:s?.text}):null]},String(t))}))})]}):null,Le(e)]});var f})),Iu=(e,t,l)=>({icon:n},a)=>{const i="secondary"===l?"white":"color";return o(g,{defaultPadding:"",className:`${Bu(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:l,children:je(n)?o(le,{image:{...n,iconVersion:n?.iconVersion||i},width:"48",height:"48"}):o("span",{className:h("text-h4","transparent"===l?e.iconText:(r=l,"secondary"===r?"group-data-primary:text-white":"text-secondary-text")),children:a+1})},String(a));var r},Bu=e=>e?"h-16 w-16":"h-24 w-24",Pu=d((()=>o("div",{className:"hidden",role:"none"}))),Mu="hidden sm:flex absolute z-40",Ru={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},Vu=d((({className:e,items:t=[],activeItem:l,onChange:n,tabsType:i="default"})=>{const[r,s]=_a({itemCount:t?.length||0});return a((()=>zu(r.current,t,l)),[]),c("div",{className:h("relative overflow-x-auto no-scrollbar",e),children:[o(Sa,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:Ru[i].item,gap:Ru[i].gap,children:t.map(hm(l,n,i))}),s.canScrollLeft?o(Fa,{className:h("left-6",Mu,Ru[i].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(Ua,{className:h("right-6",Mu,Ru[i].buttonTop),onClick:s.scrollRight}):null]})})),zu=(e,t,l)=>{const n=t.findIndex((e=>e===l));e&&n>0&&e.scrollTo({left:e?.children[n]?.offsetLeft,behavior:"smooth"})},Du={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},Au=({className:e="",tabsType:t="animated",...l})=>t?o("div",{className:h(Du[t].wrapper,e),children:o(Vu,{className:Du[t].component,tabsType:t,...l})}):null,$u=ht((({className:e="",tabs:t=[],block:l,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const u=_u(l??{}),p=R(),x=t.every((e=>"link"===e?.type)),f=s?t.map((e=>({...e,count:"group"===e?.type?l?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:b}=p,[y,v]=n(Ou(f,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(u))),N=f[y],w=f.findIndex((e=>Boolean(e.selected)));a((()=>{const e=p.query[u]?f.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[u])):w;v(-1===e?0:e)}),[b,w,u]);const k=Lu(f[y],y),S=i((e=>{const t=f.indexOf(e),l=f[t];v(t),"group"===l.type&&((e,t)=>{const l=new URLSearchParams(p.query);e.text?l.set(u,e?.tabName??String(t)):l.delete(u),p.replace(`${p.pathname}?${l}`,"",{scroll:!1})})(e,t)}),[f]);return c(g,{className:h({"sticky top-1 z-20":d&&x},e),defaultPadding:"p-0",block:l,...m,children:[Au({className:h({"pb-1":l?.slots&&"default"===r,"sticky top-1 z-20":d&&!x}),items:ju(t,f),activeItem:N,tabsType:r,onChange:S}),o("div",{className:"space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:Object.entries(l?.slots??{}).map((([e,t])=>P(t,{...m?.options,slotName:k,parent:l,extraProps:{className:e===k?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Lu)?.filter(Boolean)||[]}),_u=({__id:e,anchor:t})=>t??e??"tabs",ju=(e,t)=>t?.length?t:e,Lu=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Ou=(e,t)=>t?Number(t):e.reduce(((e,t,l)=>t.selected?l:e),0),Eu={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},Fu=d((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:Eu[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Uu=d((({className:e="",isOpen:t,onClick:l})=>o(be,{className:e,appendRight:o(le,{image:{icon:t?"ArrowUpIcon":"ArrowDownIcon"},width:"24",height:"24"}),text:t?"Скрыть":"Показать",version:"gray",onClick:l}))),Wu={Buttons:({buttons:e})=>Le(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(le,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(Pe,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Re,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Re,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:l,pdfUrl:n,isOpen:a})=>e?o(Uu,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:l,pdfUrl:n})}}):null},Hu=d((({cell:e,fieldIdx:t,rowIdx:l,cellIdx:i,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=n(!0);a((()=>{i===o&&s||m(!0)}),[s,o]);return qu({cell:e,cellProps:{rowIdx:l,cellIdx:i,fieldIdx:t,displayTable:e=>{m(!1),c(i),r(e)},isVisible:d}})})),qu=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in Wu))return null;return o(Wu[l],{...t,...n})},Ku=d((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>o("div",{className:"w-80 flex-grow flex flex-col gap-m @4xl:gap-lg",role:"cell",children:e?.length?e.map(((e,s)=>o(Hu,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r},String(s)))):null}))),Xu=(e,t)=>140*ic(e.slice(0,t).map((e=>e?.cols?.length??1))),Yu=(e,t)=>e?.length>0?o("div",{className:h("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(Re,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,Gu=d((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=bd({itemCount:t,visibleItemCount:5});return c("div",{children:[e?.map((a=l,(e,t)=>{if(!e?.length)return null;const[l,...n]=e,i=h("flex duration-1000 text-center",0!==t?"font-normal":"font-light");return c("div",{className:"flex border-main-divider border-b border-solid h-full",children:[l?.data?o("div",{className:"whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0",children:o(Re,{size:"text-xl",font:"font-light",children:l.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:i,style:{transform:`translateX(-${Xu(n,a)}px)`},children:n?.map(((e,t)=>c("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[e?.data?o(Re,{size:"text-xl",children:e.data}):null,e?.cols?Yu(e.cols,a):null]},`row${t}`)))})})]},String(t))})),yd({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]});var a})),Qu=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,l)=>{const n=`activeTabIdx:${e}-tableIdx:${l}`;return c("div",{className:"w-full @container",children:[o("div",{className:"flex py-m sm:px-m bg-white @4xl:bg-gray relative",children:o(Re,{size:"text-xl",align:"text-left",children:t.title})}),o("div",{className:"w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out",children:o("div",{className:"relative",children:o(Gu,{rows:t.rowsData})})})]},n)}))}))),Ju=(e=!1)=>""+(e?"text-white":"text-secondary-text"),Zu=d((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>c("div",{className:"flex justify-between items-center w-full py-lg",children:[e&&e.length>1?o("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>o("div",{className:h("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===l}),onClick:()=>n(t),children:o(Re,{size:"text-xl",font:"font-light",color:Ju(t===l),children:e||t+1})},e)))}):null,t?o(be,{className:"text-primary-main",href:t,version:"secondary",target:"_blank",appendLeft:o(H,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),ep=ht((({tableSource:e,pdfUrl:t,onClick:l})=>{const a=e?.tableData,[r,s]=n(0),d=i((e=>s(e)),[]),m=a?.[r]?.items??[],h=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(Zu,{currencies:h,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(Qu,{activeTabIndex:r,items:m}),o(Uu,{className:"mt-xl",onClick:l,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Re,{size:"text-h6",children:"Данных нет"}),o(Uu,{onClick:l,isOpen:!0})]})})),tp=d((({children:e,tableInner:t,onHideContentClick:l})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:h("@4xl:border-main-divider @4xl:border-b","flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg"),children:e}),t?o("div",{className:"origin-top animate-expansion",children:o(ep,{...t,onClick:l})}):null]}))),lp=d((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...r})=>{const[s,d]=n(void 0),m=i((e=>d(e)),[]),[u,p]=n(void 0),g=i((e=>p(e)),[]);return c(tp,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:h("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(le,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Re,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(Fu,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(Ku,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:u,setOpenTableInnerIdx:g,...r},String(t))))}):null]})})),np=d((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return c("div",{role:"table",className:"overflow-x-auto w-auto grid md:block",children:[c("div",{className:"relative space-y-xs",children:[e,yd({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),l?o("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),ap=d((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],d=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),m=s.length,[u,p]=bd({itemCount:m,visibleItemCount:2}),x=(d||[]).map(((e,t)=>o(lp,{row:e,activeIndex:u,rowIdx:t,...r},String(t)))),[f,b]=i>0?[x.slice(0,-i),x.slice(-i)]:[x,[]];return c(g,{className:h("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...r,children:[o(S,{title:t,description:l,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:i>0?o(ei,{renderFoldableSection:({isUnfolded:e})=>c(np,{controls:p,children:[f,o(ti,{isUnfolded:e,children:b})]}),renderFoldButton:Za}):o(np,{controls:p,children:x})})]})})),ip=d((({className:e="",title:t,description:l,iconVersion:n,__html:a,richVersion:i,...r})=>c(g,{className:h("flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10",e),...r,children:["small"===n?rp():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Re,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?sp(l):null,a?o(Pe,{richVersion:i,__html:a}):null]})]}))),rp=()=>o("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),sp=e=>o(w,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),op=d((({prefix:e,unit:t,suffix:l})=>c("div",{className:"w-full flex items-end",children:[e?o("div",{className:"gradient-color-text",children:o(Re,{size:"text-h2",children:e})}):null,t?o("div",{className:"-mb-6 @xl:-mb-4",children:o("span",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:t})}):null,l?o("div",{className:"gradient-color-text",children:o(Re,{size:"text-h2",children:l})}):null]}))),cp=d((e=>{const{prefix:t,unit:l,suffix:n,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(op,{prefix:t,unit:l,suffix:n})})})),dp=ht((({className:e="",padding:t="p-0",gap:l="",isInnerPadding:n=!0,version:a="transparent",isTheme:i=!1,isCardBorder:r=!1,image:s,...c})=>{const d=R();return o(g,{className:h("relative flex flex-col",gd[l],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${Q(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:i,...c,children:M({...c,extraProps:{className:h("w-full",ba(r)),...pd(n)}})})}),{childrenTypes:[]}),mp=e=>(e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12})(e)<10?"py-xl px-6xl":"py-6xl px-32",hp=d((({className:e,title:t,url:l,previewImg:n,...a})=>{const i=R();return c(g,{className:e,defaultPadding:mp(e),...a,children:[o(S,{title:t,headlineVersion:"M"}),l?o("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:U(i)(n?.src),style:{maxHeight:524},controls:!0,children:o("source",{src:U(i)(l)})}):null]})})),up={AdTile:pt,ApplicationForm:ha,BankAccountFiltration:yi,BenefitsBlock:Si,BonusBenefitsBlock:Pi,ButtonsBlock:Ri,CalculatorBonus:qi,CalculatorBusinessDeposit:mr,CalculatorCredit:Tr,CalculatorDeposit:Wr,CalculatorRefinancing:Jr,CardTransfer:is,Carousel:us,CarouselCard:fs,CarouselCatalogCard:ys,CarouselLinks:ws,CarouselRecommendationCard:Ms,CarouselTariffsCard:zs,ContactsBlock:As,DepositFiltration:Fs,Depository:ao,ErrorBlock:ro,ExchangeRateTile:Do,Footer:vc,GracePeriod:Nc,GrantSupport:Cc,Header:md,Headline:S,HorizontalLayout:xd,ImgBlock:fd,InsuranceAmountBlock:Sd,InvestmentInfo:Bd,LinkDocs:Fd,MobileAppTile:qd,MortgageFiltration:gm,OfficesAtmsMap:Eh,Placeholder:Fh,ProductBlock:ut,ProductGallery:Wh,RepresentativeOfficeInfo:qh,RichTextBlock:Yh,RollupItem:eu,SafeDepositRental:wu,StepsBlock:Tu,StickyBottomMenu:Pu,TabsLayout:$u,TariffsTable:ap,TextBlock:ip,UnitBlock:cp,VerticalLayout:dp,Video:hp},pp=me((()=>{a((()=>{Ct()}),[]);const e=zt();ol(globalThis,"click",(e=>t=>{const l=t.target?.closest("[data-aspects]");try{const n=JSON.parse(l?.dataset?.aspects??"[]");kt({aspectsAttributes:n,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))})),gp="cookie",xp=d((({__html:e})=>{const[t,{setTrue:l,setFalse:n}]=ll();lc((()=>{globalThis.localStorage?.getItem(gp)||l()}),[],3e3);const a=i((()=>{globalThis.localStorage?.setItem(gp,"true"),n()}),[]);return t&&e?o("div",{className:"container fixed left-0 right-0 bottom-0 z-50",role:"dialog",children:c("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black",children:[o("div",{className:"sm:flex-1",children:o(Pe,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(Ft,{className:"bg-main-gray rounded-md w-11 h-11",onClose:a})})]})}):null}));function fp(e){throw new Error(e)}const bp=({onCloseAll:e,onClose:t}={})=>{const[l,{push:r,pop:s,clear:o}]=function(e=[]){const[t,l]=n(e),a=i((e=>l((t=>[...t,e]))),[]),r=i((()=>l((e=>e.slice(0,-1)))),[]),s=i((e=>l((t=>t.filter((t=>t!==e))))),[]),o=i((()=>l([])),[]);return[t,{setList:l,push:a,pop:r,remove:s,clear:o}]}(),c=i((()=>{e&&e(l),o()}),[l,e]),d=i((()=>{t&&t(l[l.length-1]),s()}),[l,t]);return a((()=>ce.subscribe("dialog",(e=>{switch(e.type){case"open":r(e);break;case"close":e.all?c():d();break;default:fp(e)}}))),[c,d]),l},yp=d((()=>{const e=i((e=>{for(const t of e)t?.onClose&&t.onClose()}),[]),t=i((e=>{e?.onClose&&e.onClose()}),[]),l=bp({onCloseAll:e,onClose:t}),{close:n}=de(),r=i((({key:e})=>{"Escape"===e&&n()}),[]);return ol(globalThis.document,"keydown",r),a((()=>{l.length?(globalThis.document?.body.classList.add("no-scrollbar"),globalThis.document?.body.classList.add("overflow-hidden")):(globalThis.document?.body.classList.remove("no-scrollbar"),globalThis.document?.body.classList.remove("overflow-hidden"))}),[l]),l.length?o("div",{className:"fixed inset-0 z-50",role:"dialog",children:l.map((({dialog:e,id:t},n)=>o("div",{className:h("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:n!==l.length-1}),children:e},String(t||n))))}):null})),vp=d((()=>{const[e,t]=n(null),l=i((()=>{t(null)}),[]);a((()=>ce.subscribe("popup",(e=>{switch(e.type){case"open":case"update":t(e);break;case"close":l();break;default:fp(e)}}))),[]);const r=i((({key:e})=>{"Escape"===e&&l()}),[l]);return ol(globalThis.document,"keydown",r),e?o("div",{className:h("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",children:e.popup}):null})),Np="header",wp="footer",kp="sticky-footer",Sp={},Cp=d((({className:e,data:t=Sp,blocksRegistry:l,blockDecorator:n})=>{const{slots:a,blocks:i,fallback:r,...s}=t,d=mt(s,r);pp();const m={key:"",page:{slots:a,blocks:i,fallback:r,...d},blocksRegistry:l,blockDecorator:n,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:h("@container relative",t.style,e),children:[a?.header?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:P(a?.header,{...m,slotName:Np})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[M({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),P(a?.footer,{...m,slotName:wp})]})]}),a?.["sticky-footer"]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:P(a?.["sticky-footer"],{...m,slotName:kp})}):null,o(yp,{}),o(vp,{}),o(xp,{__html:d?.cookieContent?.__html})]})}));Object.assign(Cp,{childrenTypes:[],slots:()=>[Np,wp,kp]});e.Blocks=up,e.ContentPage=Cp,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.handlerDecorator=me,e.joinList=si,e.packageVersion="0.14.566",e.projectSettings=z,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=O,e.useRouter=R,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 n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),i=n("useCallback"),r=n("useMemo"),s=n("useRef");const o=(...e)=>globalThis._uni._jsx(...e),c=(...e)=>globalThis._uni._jsxs(...e),d=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:m(e)),t._tmpl},m=e=>{function t(t,n){const{children:l,...a}=t||{},i=n?.slots?.default,r=l||i&&i();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t},h=(...e)=>e.map((e=>u(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),u=e=>Boolean(e&&"object"==typeof e&&!Array.isArray(e)),p={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","":""},g=d((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:l="p-xl",padding:a,block:i,tag:r="section",role:s,children:c,style:d})=>{const m=t&&n;return o(r,{className:h("@container font-sans",{group:m},p[t],a||l,e),...m?{"data-ver":t}:{},...i?.anchor?{id:i.anchor}:{},role:s,style:d,children:c})})),x=d((({className:e,size:t})=>o("figure",{className:h("m-0 mt-xl min-w-[80%]",e),children:f(t)}))),f=(e=3)=>y(100,e).map((e=>Math.floor(e))).map(b),b=(e,t)=>o("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-dark relative overflow-hidden animate-pulse"},String(t)),y=(e,t)=>[e].concat(t>0?y(e/1.618,t-1):[]),v={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},N=d((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>o(n,{role:"heading",className:h("font-sans m-0",v[t],e),children:l||a}))),w=d((({children:e,...t})=>o("p",{className:h("font-sans",Object.values(t)),children:e}))),k={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-m",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},S=d((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:i="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const u=k[n],p={marginTop:u.descriptionStyle};return c(g,{className:h({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[l?o(N,{className:h("whitespace-pre-wrap",i),...u?.title,as:r||u?.title.as,title:l}):null,a?o(w,{size:u.descriptionSize,font:u.descriptionWeight,align:i,...p,children:a}):null]})})),C=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),T=[];function I(e,t,{className:n,...l}={}){const{key:a,blockDecorator:i=C,blocksRegistry:r={},ancestors:s=T}=t,{type:c}=e;c&&c in r||console.warn(`No block with "${c}" is registered`);const d=c&&r[c];return i({blockClassName:h(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:i})=>{const{content:r}=n;return d?o(d,{className:i,block:e,options:t,...r,...l},a):null}},a)}const B=[],P=(e,{key:t,ancestors:n=B,slotName:l=null,extraProps:a,renderProps:i=I,...r})=>{const s=a?(e,t)=>I(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...n||B,[r.parent,l]]:n},a)))};function M({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?P(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}function R(){return R._impl()}R._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),R.setup=e=>{R._impl=e};const V=["CDN","BASE_PATH"],z=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return V.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),D=e=>Boolean(e?.includes(":")),A=(e,t)=>Boolean(e&&!D(e)&&(!t||"_self"===t)),$=e=>Boolean(e?.startsWith("#")),_=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),j=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?"),L=(e,t)=>Boolean(t&&e&&e.startsWith(t)&&["/"===t,e===t,"/"===e[t.length]].some(Boolean));var O=Object.freeze({__proto__:null,isURL:D,isLocalURL:A,isHash:$,withoutQuery:_,joinPath:j,hasPrefix:L});const E="/api/",F=`${E}v1/storage`,U=e=>(t,n)=>{if([!t,D(t),$(t),[z.CDN,E].some((e=>L(t,e)))].some(Boolean))return t;if(((e="")=>/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}(\/revs\/[0-9]{1,20})?$/.test(e))(t))return`${F}/${t}/attachment`;const l=t?.startsWith("/");return j(L(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},H=d((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:i="color",width:r,height:s})=>{const d=R(),m="normal"===i?`${n}.svg`:`sprites.svg#${n}`,u=U(d)(j(z.CDN,"/icons/",m));return"normal"===i?o("img",{className:e,src:u,alt:l,title:a,"aria-hidden":"true",width:r,height:s,style:q(e,s)}):o(X,{className:e,children:c("svg",{className:h(K(r),W[i],{invert:"white"===i},t),width:r,height:s,"aria-hidden":"true",children:[a?o("title",{children:a}):null,l?o("desc",{children:l}):null,o("use",{href:u,xlinkHref:u})]})})})),q=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},K=e=>e?"":"w-full h-full",X=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),Y=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function G(e=""){try{const[,...t]=new URL(e).pathname.split("/");return`/${t.filter(Boolean).join("/")}`}catch(e){return""}}const Q=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":G(Y.SITE_URL);return t&&!D(t)?U(e)(t,n):t},J=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Z=d((({className:e="",image:t,imageClassName:n=""})=>{const l=R();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(J).map((({src:e,format:n,media:a},i)=>o("source",{srcSet:Q(l)(e),type:te(n),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${i}_${e}`))):null,t?.src?ee({...t,src:Q(l)(t.src)},n):null]})})),ee=(e,t="")=>o("img",{src:e.src,className:h("object-contain",t),alt:e?.alt||e?.title||"",title:e?.title||"",style:{width:e?.size?.width?`${e.size?.width}px`:"100%",height:e?.size?.height?`${e.size?.height}px`:"auto"},width:e?.size?.width,height:e?.size?.height}),te=e=>e?`image/${String(e)}`:void 0,ne=d((({className:e="",image:t,imageClassName:n="",...l})=>t?.src||t?.icon?t.icon?o(H,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...l}):o(Z,{className:e,imageClassName:n,image:t}):null)),le={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:"text-primary-main",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ae="bg-main-divider text-main-disabled",ie={primary:ae,secondary:ae,white:ae,link:"",transparent:"",gray:ae,"":""},re="text-center font-sans select-none",se={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:"text-primary-main",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},oe=({className:e,rounded:t,version:n})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?le[n]:"",t?"rounded-full":"rounded-md",e].join(" ");const ce=new class{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}},de=()=>({open:(e,t={})=>ce.fire("dialog",{type:"open",dialog:e,...t}),close:()=>ce.fire("dialog",{type:"close"}),closeAll:()=>ce.fire("dialog",{type:"close",all:!0})}),me=e=>me._impl(e);function he(){const e=G(Y.SITE_URL),t=R(),{closeAll:n}=de();return e=>{const n=U(t)(e.href);return{...e,href:n,"aria-label":e.text,onClick:me(l({...e,href:n}))}};function l({href:l,target:a,onClick:i}){return r=>{i&&i(r);const s=!L(l,e||"/");l&&!s&&A(l,a)&&(n(),r?.preventDefault(),t.push(((e,t="")=>e.replace(t,"")||"/")(l,e)))}}}me._impl=e=>e,me.setup=e=>{me._impl=e};const ue=e=>{if(!Array.isArray(e)||!e.length)return{};try{return{"data-aspects":JSON.stringify(e)}}catch(e){return{}}},pe=d((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:i="primary"}=e,r=xe(e)&&"hidden lg:block";return c("div",{className:h(ge(e),"flex gap-xs"),children:[l?o("div",{className:h(r,se[i]),children:l}):null,xe(e)?c("div",{className:"whitespace-pre",children:[n?o("div",{className:"text-xs font-light text-left",children:n}):null,o("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?o("div",{className:h(r,se[i]),children:a}):null]})})),ge=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return h("group/btn items-center justify-center",xe(e)?a:"h-12 w-12 m-auto",{"rounded-full":l})},xe=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),fe=({className:e,rounded:t,version:n})=>["inline-block",re,n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),be=d((({disabled:e,children:t,method:n="LINK",href:l,...a})=>{const r=(({method:e,href:t})=>i((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:l,pathname:a,searchParams:i}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[l,a].join(""));for(const[e,t]of i.entries()){const n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),r.appendChild(n)}document.body.appendChild(r),r.submit()}),[]))({method:n,href:l}),s=he()({onClick:r,href:l,...a}),c=t??o(pe,{...s});return o(e?ve:ye,{...s,children:c})})),ye=d((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:i,rounded:r,onClick:s,type:c,data:d,children:m,text:h})=>o("a",{className:oe({className:e,version:i,rounded:r}),href:t,rel:n,target:l,"aria-label":a||`Ссылка на ${h}`,role:t?"link":"button",onClick:s,type:c,...ue(d),children:m}))),ve=d((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:fe({className:e,rounded:l,version:n}),children:a})));function Ne({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:l=!1}){if(!n)return null;const a="primary"===e?"white":"black",i="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:h(l?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:h(oe({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),i),onClick:t,children:o(ne,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(be,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const we=()=>{const[e,t]=l(false);return a((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(Boolean(e.matches)),()=>{e?.removeEventListener("change",n)}}),[]),e},ke={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Se=(e,{className:t,imageAlign:n})=>e?o("div",{className:h("shrink-1/2 justify-self-center",n&&ke[n],t),children:e}):null,Ce=d((({className:e,version:t="primary",defaultPadding:n,padding:l="",title:a,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:u,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:x,children:f,...b})=>{const y=we(),v=R(),N=i((()=>v.back()),[]),w=b.options?.page?.common?.backwardButton,k=x&&!y;return c("div",{className:h("relative flex flex-col gap-3xl overflow-hidden",l||n,e),children:[k&&Ne({version:t,handleClick:N,text:w}),a?o("div",{className:"relative h-full",children:a}):null,c("div",{className:h("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Se(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:h("grid gap-3xl items-center md:items-stretch",{"@xl:grid-cols-2 auto-cols-fr":d,grow:!s},"h-full","auto-rows-[max-content_1fr]"),children:[c("div",{className:"grow space-y-lg min-w-fit",children:[u,f]}),Ie(M({...b,extraProps:{className:"@container-normal"}})),Se(d,{className:h("@xl:justify-self-end @xl:col-start-2",{[Te(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Te=e=>h(e?"row-span-2":"@xl:row-span-2"),Ie=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,Be=(e,t="normal")=>e?.icon||e?.src?o("div",{className:h("sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:o(ne,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Pe=d((e=>{const{__html:t="",richVersion:n="",itemSize:l="list-m",isDotted:a=!0}=e,i=a?"":"without-dots";return t&&"<p><br></p>"!==t.replace(/<\/?[^>]+\/?>/g,"").trim()?o("div",{"data-component":"rich-text-container",children:o("div",{className:h(n,l,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",i),dangerouslySetInnerHTML:{__html:t}})}):null})),Me=(e,t)=>e?o(w,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Re=d((({children:e,...t})=>o("span",{className:h("font-sans",Object.values(t)),children:e}))),Ve=(e,t)=>e?o(Re,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,ze=(e,t)=>["label"in e?Ve(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Me(e.description,t)},String(t)):null,"__html"in e?o(Pe,{...e},`rte-${t}`):null],De=d((({className:e,benefitsVersion:t,...n})=>c("div",{className:h("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in n?Be(n.icon,t):null,o("div",{children:ze(n)})]}))),Ae=d((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?o("div",{className:h("flex gap-x-m gap-y-s flex-col",e),role:"list",children:n.map(((e,n)=>o(De,{benefitsVersion:t,...e},String(n))))}):null)),$e=d((({className:e,benefits:t})=>t?.length?o("div",{className:h("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),role:"list",children:t.flatMap(ze)}):null)),_e=d((({isTabularBenefits:e,...t})=>o(e?$e:Ae,{...t}))),je=e=>Boolean(e?.src||e?.icon),Le=(e,{className:t,buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:h("flex",l?"flex-col gap-xs justify-items-stretch":"flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto",t),role:"group",children:e.map(Oe(n))}):null,Oe=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:i,version:r,...s}=t||{},c=Ee(a,r),d=Ee(i,r);return l||a?.icon?o(be,{className:h("basis-full @lg:basis-auto",e),appendLeft:Fe({...a,iconVersion:c}),appendRight:Fe({...i,iconVersion:d}),version:r,text:l,...s},n?String(n):""):null},Ee=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Fe=e=>je(e)&&o(ne,{image:e,width:String(e?.size?.width||24),height:String(24)}),Ue=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),We=d((({priceList:e})=>e?.length?o("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",role:"list",children:e.map(He)}):null)),He=({label:e,amount:t,unit:n},l)=>c("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre",role:"listitem",children:[o(Re,{font:"font-light",size:"text-l",color:"text-secondary-text",children:e}),t?c("span",{className:"font-sans text-h6 sm:text-primary-main text-primary-text",children:[Ue(2)(t)," ",n||"₽"]}):null]},String(l)),qe=d((({className:e,tags:t})=>t?.length?o("div",{className:h("flex flex-wrap gap-xs",e),role:"list",children:t.map(Ke)}):null)),Ke=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(Re,{size:"text-m",font:"font-light",children:e})},String(t)),Xe={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},Ye=d((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:i="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:h,__html:u,richVersion:p,isFullWidthTitle:g,priceList:x=[],tags:f=[],buttons:b,image:y,imageOptions:{imageAlign:v="center",directionRight:N=!0,isImageAlwaysOnRight:w,isImageSecondary:k=!1}={},backwardButton:C,children:T,...I})=>{const B=y?.src?o(ne,{image:y}):null,P=o(S,{title:l,description:a,headlineVersion:i,align:r,isEmbedded:!0}),M=h?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Ce,{className:e,padding:t,defaultPadding:n,...g?{title:P}:{insetTitle:P},...Ge(B,N),isImageSecondary:k,imageAlign:v,isImageAlwaysOnRight:w,buttons:Le(b),backwardButton:C,...I,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[M?.length?o(_e,{benefitsVersion:s,isTabularBenefits:d,benefits:M}):null,u?o(Pe,{richVersion:p,__html:u,isDotted:m,itemSize:Xe[i]}):null,T,x?.length?o(We,{priceList:x}):null,Qe(f)]})})})),Ge=(e,t)=>t?{rightImage:e}:{leftImage:e},Qe=e=>e?.length?o(qe,{tags:e}):null,Je=e=>Boolean(e&&Array.isArray(e)),Ze=e=>Boolean(e&&!Array.isArray(e)&&"object"==typeof e),et=(e,t)=>{return n=e,Boolean(Ze(n)&&"string"==typeof n.$ref)?t.ref(e):Ze(e)?t.record(e):Je(e)?t.array(e):t.scalar?t.scalar(e):e;var n},tt=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(nt,e),nt=(e,t)=>e&&t?Ze(e)?e[t]:Je(e)?e[parseInt(t,10)]:e:e,lt=(e,t)=>et(e,{ref:({$ref:e,...n})=>lt(e?tt(t(e),e):n,t),record:e=>Object.entries(e).map((([e,n])=>({[e]:lt(n,t)}))).reduce(((e,t)=>Object.assign(e,t)),{}),array:e=>e.map((e=>lt(e,t)))}),at=(e,t,n=[])=>{et(e,{ref:e=>t(e.$ref,n),record:e=>{for(const l in e)at(e[l],t,[...n,l])},array:e=>{for(let l=0;l<e.length;l++)at(e[l],t,[...n,l])}})};async function it(e,t){try{return e?await rt(e,t):null}catch(e){console.error(e)}return null}const rt=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),st=e=>[...new Set(e)],ot={},ct=["/portal-resources"],dt=(e,t)=>lt(e,(e=>t?.[e])),mt=(e,t)=>{const n=(e=>{const t=[];return at(e,(e=>t.push(e))),t})(e),[i,r]=l({});return a((()=>{n.length&&(async e=>Object.fromEntries((await Promise.allSettled(st(e).filter((e=>!ct.some((t=>e.startsWith(t))))).map((async e=>[e,ot[e]||=await rt(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(n).then(r)}),[n.join()]),n.length?dt(e,{...t,...i}):e};function ht(e,t={}){const n=d((t=>{const n=mt((({block:e,options:t,className:n,defaultPadding:l,padding:a,isTheme:i,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const ut=ht((({className:e,padding:t,defaultPadding:n,...l})=>o(g,{className:h("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...l,children:o(Ye,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...l})})),{childrenTypes:["UnitBlock"]}),pt=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>gt(0,t?.length)),[t]),l=t?.[n];return l?o(ut,{suppressHydrationWarning:!0,...l,...e}):o(g,{...e,children:o(x,{})})})),gt=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),xt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),l=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());return t?`${a}-${l}-${n}`:`${n}.${l}.${a}`}},ft=e=>e?.replace(/[^+\d]/g,"");function bt(){return{send:async function(e,t=!1){const{typeForm:n,region:l,phone:a="",email:i,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:h,serviceDirection:u,...p}=e,g=t&&"Юридическое лицо / ИП"!==u,x=g?"/api/v1/lead":"/api/v1/sendcorporatelead",f={typeForm:n,...Nt(l,g),...wt(i,g),...yt(a),...vt(s,"desiredMeetingDate"),...g?vt(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:h,...kt(d)},...p};try{const e=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(f)});if(!e?.ok)return null;return await e.json()}catch(e){return null}}}}const yt=e=>e?{phone:ft(e)}:{},vt=(e,t="birthday")=>e?{[t]:xt(e)}:{},Nt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),wt=(e,t=!0)=>({[t?"email":"mail"]:e}),kt=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:ft(e)}:{},St=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:l,params:a}of e)t[l??""]?.(n,a)},Ct="rshb-query-params";function Tt(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(Ct)||"";return e&&globalThis.sessionStorage?.setItem(Ct,e),e}function It(e){if(!e)throw new Error("Value should be fulfilled");return e}const Bt=e=>t=>{const[,n]=It(e.find((([e])=>e(t))));return n(t)},Pt=e=>Bt(e.map((([e,t])=>[e,()=>t])));Pt.if=e=>new Mt(void 0,e);class Mt{parent;predicate;unit;get entry(){return[It(this.predicate),It(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new Mt(this,e)}then(e){return new Mt(this.parent,this.predicate,e)}else(e){return Bt([...Rt(this),[()=>!0,e]])}}const Rt=e=>[...e?.parent?Rt(e.parent):[],e.entry],Vt=e=>{const t=e.target?.closest("a");if(D(t?.href)&&!t?.href?.startsWith(globalThis.location?.origin)){e.preventDefault(),e.stopPropagation();const n=(e=>{const t=Tt();if(!D(e)||!t)return e;const n=new URL(e);for(const[e,l]of new URLSearchParams(t))n.searchParams.set(e,l);return n.toString()})(t?.href)||t?.href;if(n){zt(t?.target)?.(n)}}},zt=Pt([[e=>"_blank"===e,e=>globalThis.open(e,"_blank")],[e=>"_parent"===e,e=>globalThis.parent&&(globalThis.parent.location.href=e)],[e=>"_top"===e,e=>{globalThis.top&&(globalThis.top.location.href=e)}],[()=>!0,e=>globalThis.location&&(globalThis.location.href=e)]]);function Dt(){return Dt._impl()}Dt._impl=()=>({forwardQuery:Vt}),Dt.setup=e=>{Dt._impl=e};const At=e=>e,$t=(e,{resetOnSubmit:t,onSubmit:n,normalize:r}={})=>{const[s,o]=l(e),c=i(r?e=>o(e instanceof Function?t=>{const n=r(e(t));return _t(t,n)?t:n}:r(e)):o,[r]);a((()=>{r&&o(r)}),[r]);const[d,m]=l(!1),[h,u]=l({}),p=i(((e,t)=>{const{parse:n=At,format:l=At}=t||{};return{value:l(s[e]),isDirty:d||h[e],onChange:t=>{c((l=>({...l,[e]:n(t)}))),u((t=>({...t,[e]:!0})))}}}),[c,d,h]),g=i((e=>{c(e),u(e)}),[]),x=i((()=>{c(e),m(!1),u({})}),[e]),f=i((e=>{e.preventDefault(),t?x():m(!0),n&&n(s,e)}),[n,s]);return[s,{isDirty:d||Object.values(h).some(Boolean),field:p,update:g,reset:x,onSubmit:f}]},_t=(e,t)=>e&&t&&Object.keys({...e,...t}).every((n=>e[n]===t[n])),jt=d((e=>{const{className:t,title:n,children:l,...a}=e;return o(g,{className:t,defaultPadding:"p-6xl",...a,children:c("div",{className:"container max-w-[978px] space-y-lg",children:[n?o(N,{headingType:"h3",title:n,className:"@xl:text-center"}):null,l]})})})),Lt=e=>e?.find((e=>"consentDataProcessing"===e?.name)),Ot=[{key:"ULTRASERVICE",text:"Ультра"},{key:"PREMIUMSERVICE",text:"Премиум"}],Et=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],Ft=[{text:"Задать вопрос по продуктам и услугам",key:"FEEDBACK"},{text:"Качество обслуживания",key:"FEEDBACK_QS"}],Ut=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],Wt=[{key:"Карта дебетовая",text:"Карта дебетовая"},{key:"Карта кредитная",text:"Карта кредитная"},{key:"Потребительский кредит",text:"Потребительский кредит"},{key:"Ипотечный кредит",text:"Ипотечный кредит"},{key:"Вклад",text:"Вклад"},{key:"Накопительный счет",text:"Накопительный счет"}],Ht="/api/v1/outservice/outserviceregions",qt=e=>"OUTSERVICE"===e?Ht:void 0,Kt=e=>o("div",{className:"h-6",children:e?o(Re,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),Xt=d((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:i,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:i.map((({d:e,fill:t,...n},l)=>{const a={...r,...n};return o("path",{d:e,fill:t||"currentColor",stroke:a.stroke,strokeLinecap:a.strokeLinecap,strokeLinejoin:a.strokeLinejoin,strokeWidth:a.strokeWidth,strokeMiterlimit:a.strokeMiterlimit},l)}))}))),Yt="appearance-none w-5 h-5 border-solid flex-none",Gt=[{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"}],Qt=d((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:r})=>{const s=i((e=>{l||(e.preventDefault(),r&&r(!t))}),[r,l,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Xt,{paths:Gt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return o("div",{className:e,children:c("label",{className:h("flex items-center relative group/box",Zt(l)),onClick:s,children:[o("div",{className:h(Yt,"m-0",a?"rounded-full border-2":tn(t),!l&&t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:en(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(l),"aria-label":n}),t?d:null,Jt(n)]})})})),Jt=e=>e?o("div",{className:"ml-s",children:o(Re,{size:"text-l",font:"font-light",children:e})}):null,Zt=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",en=(e=!1)=>e?"radio":"checkbox",tn=(e=!1)=>h("rounded border",{"bg-primary-main":e}),nn=d((({className:e,text:t,value:n,key:l,disabled:a,error:i,onChange:r})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Qt,{text:t,value:n,disabled:a,onChange:r},l),Kt(i)]})));function ln(e=!1){const[t,n]=l(e),a=i((()=>n(!0)),[]),r=i((()=>n(!1)),[]),s=i((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}const an=e=>e?o(Re,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,rn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",sn=d((({key:e,className:t="",id:n,name:l,type:r="text",label:d,placeholder:m,value:u="",valid:p=!0,children:g,onChange:x,onFocus:f,onBlur:b,pattern:y,autoFocus:v=!1,isTextarea:N=!1})=>{const w=s(null),k=i((e=>{x&&x(e.target?.value||"")}),[x]);a((()=>{v&&w.current?.focus()}),[v,w]);const S="w-full border rounded-md text-primary-text outline-none p-m",C=g?"pr-3xl":"",T=on(p);return c("div",{className:h("relative",t),children:[c("label",{className:"space-y-xs",children:[an(d),N?o("textarea",{className:h("block resize-y min-h-24",S,T),id:h("textarea",n),name:l||n,placeholder:m,value:u,onChange:k,onFocus:f,onBlur:b},e):o("input",{type:r,className:h("h-14",S,C,T),ref:w,id:n,name:l||n,placeholder:m,value:u,onChange:k,onFocus:f,onBlur:b,pattern:y},e)]}),g]})})),on=e=>e?rn:"border-error",cn=e=>e?.text||e?.key||"";function dn(e,t,n,l){a((()=>{if(e&&n)return e.addEventListener(t,n,l),()=>{e.removeEventListener(t,n,l)}}),[e,t,n])}function mn(e){const t=s(null),n=i((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return dn(globalThis.document,"click",n),t}const hn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,un=d((({popupRef:e,options:t,value:n,query:l,onChange:a,iconVersion:i})=>t?.length?o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",ref:e,children:hn(t,l).map((e=>c("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem","aria-selected":e.key===n?.key,onClick:t=>{t.stopPropagation(),a&&a(e)},children:[o("span",{className:"min-h-6",children:cn(e)}),o(H,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:i,className:h("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));function pn({isOpen:e,options:t,value:n,query:l,onChange:r,onClose:c,iconVersion:d}){const m={open:(e,t)=>ce.fire("popup",{type:"open",popup:e,...t}),update:(e,t)=>ce.fire("popup",{type:"update",popup:e,...t}),close:()=>ce.fire("popup",{type:"close"})},h=i((()=>{m.close(),c&&c()}),[c]),u=i((e=>{h(),r&&r(e)}),[h,r]),p=s(null),g=mn(h);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:i,left:r,width:s,height:c}=a.getBoundingClientRect();m.update(o(un,{popupRef:g,options:t,value:n,query:l,onChange:u,iconVersion:d}),{top:i+window.scrollY+c,left:r,width:s})}),[e,t,n,l,u]),p}const gn=d((({className:e,label:t,options:n=[],value:a,valid:r=!0,isBorder:s=!0,placeholder:d="",isSearch:m=!1,iconVersion:u="black",onChange:p,disabled:g})=>{const[x,{setFalse:f,setTrue:b}]=ln(),[y,v]=l(""),N=g||0===n.length,w=x&&!N,k=i((()=>{v(""),f()}),[]),S=pn({isOpen:x,options:n,value:a,query:y,onChange:p,onClose:k,iconVersion:u});return c("div",{className:h("space-y-xs",e),children:[an(t),c("div",{className:h("relative",w?"z-20":"z-10"),ref:S,children:[c("div",{className:h("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",fn(s,r,N)),onClick:w?k:b,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:cn(a)||d}),xn(w,u)]}),m&&w?o("div",{className:h("absolute top-0 w-full z-20"),children:o(sn,{type:"text",autoFocus:!0,value:y,onChange:v})}):null]})]})})),xn=(e,t)=>o(H,{className:h("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),fn=(e,t,n)=>h(e?"border rounded-md ":"",e&&!n?"hover:border-primary-hover":"",n?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),bn=()=>{},yn=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:l,currentYear:a,min:i,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const h=[];for(let c=0;c<7;c++)if(0===m&&c<t)h.push(o("td",{},`empty-${c}`));else if(d>n)h.push(o("td",{},`empty-${c}`));else{const t=new Date(a,l,d),n=vn(t,e),c=Nn(t,i,r);h.push(o("td",{children:o("div",{className:wn(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:h},`row-${m}`))}return c},vn=(e,t)=>t&&e.toDateString()===t.toDateString(),Nn=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),wn=(e,t)=>h("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),kn=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Sn=d((({today:e,currentMonth:t,currentYear:n,min:l,max:a,onDateSelect:s=bn,setValue:d=bn})=>{const m=i((e=>{s(e),d(!1)}),[]),{firstDayOfWeek:h,totalDays:u}=r((()=>({firstDayOfWeek:new Date(n,t,1).getDay()-1,totalDays:new Date(n,t+1,0).getDate()})),[n,t]);return c("table",{className:"mx-auto",children:[o("thead",{className:"text-gray font-light",children:o("tr",{children:kn.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:yn({firstDayOfWeek:h,today:e,totalDays:u,currentYear:n,currentMonth:t,min:l,max:a,onDateClick:m})})]})})),Cn=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],Tn=Cn.map((e=>({key:e}))),In=Array.from({length:(new Date).getFullYear()-1940+1},((e,t)=>1940+t)).reverse().map((e=>({key:String(e)}))),Bn={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Pn={className:"min-w-32",iconVersion:"black",isBorder:!1},Mn=d((({className:e="",label:t="",value:n,valid:a=!0,minDate:r,maxDate:s,onChange:d})=>{const[m,{setValue:u}]=ln(!1),[p,g]=l(n?.getMonth()||(new Date).getMonth()),[x,f]=l(n?.getFullYear()||(new Date).getFullYear()),{handlePrevMonth:b,handleNextMonth:y,handleSelectMonth:v,handleSelectYear:N,monthsOptions:w,yearsOptions:k,handleChangeVisibleCalendar:S,ref:C}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:l,onYearSelect:a,selectedYear:r})=>{const s=mn(i((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:i((()=>e(!t)),[t]),handleNextMonth:i((()=>{n+1<=11?l(n+1):(l(0),a(r+1))}),[n]),handlePrevMonth:i((()=>{n-1>=0?l(n-1):(l(11),a(r-1))}),[n]),handleSelectMonth:i((({key:e})=>l(Cn.indexOf(e))),[]),handleSelectYear:i((({key:e})=>a(Number(e))),[]),monthsOptions:Tn,yearsOptions:In,ref:s}})({onYearSelect:f,onMonthSelect:g,onShowCalendar:u,selectedYear:x,selectedMonth:p,showCalendar:m});return c("div",{className:h("space-y-xs",e),ref:C,children:[an(t),c("div",{className:"relative",children:[Rn(S,n,a),m?c("div",{className:"absolute bg-white z-20 select-none bottom-full",children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:b,children:o(H,{...Bn,className:"-rotate-90 cursor-pointer"})}),o(gn,{onChange:v,value:{key:Cn[p]},options:w,...Pn}),o(gn,{onChange:N,value:{key:String(x)},options:k,...Pn}),o("div",{className:"my-auto",onClick:y,children:o(H,{...Bn,className:"rotate-90 cursor-pointer"})})]}),o(Sn,{today:n,currentMonth:p,currentYear:x,onDateSelect:d,min:r,max:s})]}):null]})]})})),Rn=(e,t,n)=>c("div",{onClick:e,className:h("flex justify-between items-center h-14 px-m py-s border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",n?"border-gray":"border-error"),children:[o(w,{children:t&&xt(t)}),o(H,{...Bn,name:"CalendarIcon"})]}),Vn=d((({className:e,label:t,error:n,...l})=>c("div",{className:h("shrink-0 w-full",e),children:[o(Mn,{label:t&&l?.errors?`${t}*`:t,valid:Boolean(!n),...l}),Kt(n)]}))),zn=d((({className:e,label:t,value:n="",placeholder:l,error:a,onChange:i,onBlur:r,isTextarea:s,type:d,...m})=>c("div",{className:h("shrink-0 w-full",e),children:[o(sn,{type:d||"text","aria-label":t,label:t&&m?.errors?`${t}*`:t,valid:Boolean(!a),value:n,onChange:i,onBlur:r,isTextarea:s,placeholder:m?.errors&&!t?`${l}*`:l}),Kt(a)]}))),Dn=d((({className:e="",label:t,error:n,...l})=>c("div",{className:e,children:[o(gn,{...l,valid:!n,label:l?.errors?`${t}*`:t}),Kt(n)]}))),An=e=>!e?.length,$n=e=>t=>n=>e(n)?[]:[t],_n="Некорректно заполненное поле",jn=$n((e=>null!=e&&""!==e))(_n),Ln=$n((e=>e?.key&&""!==e?.key))(_n),On=$n((e=>"string"==typeof e&&e.length>1))(_n),En=$n((e=>"string"==typeof e&&(10===e.length||12===e.length)))(_n),Fn=(Un=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,$n((e=>"string"==typeof e&&Un.test(e))))(_n);var Un;const Wn=$n((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Hn={typeForm:jn,surname:On,name:On,region:Ln,addressBranch:Ln,phone:Fn,secondaryPhone:Fn,birthday:jn,email:jn,fullName:On,inn:En,partnerComments:jn,collectionCount:jn,comment:jn,acquiringType:Ln,feedbackType:Ln,feedbackMethod:Ln,serviceType:Ln,serviceDirection:Ln,meetingDay:jn,product:jn,localities:jn,consentDataProcessing:Wn,annualRevenue:jn},qn=e=>{const t=(e=>Object.values(e.filter((e=>e)))?.map((e=>e.name)))(e.filter((e=>"required"in e&&e.required)));return Object.fromEntries(t.map((e=>[e,Hn?.[e]])))},Kn=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},Xn=(e,t,n=!1)=>n?Kn(e,t):e,Yn=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],Gn=d((({field:e,input:t})=>o(Dn,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Yn,...Xn(e("acquiringType"),Hn.acquiringType,t?.required)}))),Qn=(e="")=>Boolean("trade"===e||"all"===e),Jn=e=>null!=e,Zn=new Map,el=e=>Boolean(e?.every((e=>Array.isArray(e)?el(e):!e||"string"==typeof e))),tl=e=>el(e)?e.toString():"";function nl(e,t,{fallback:n,cache:i}={}){const s=r((()=>ll(e)),[e]),[o,c]=l(void 0),[d,m]=l(void 0);a((()=>{if(!s.some(Jn))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await((e,t=Zn)=>n=>{const l=tl(n),a=t.get(l);if(l&&Jn(a))return a;const i=e(...n);return l&&Jn(i)&&t.set(l,Promise.resolve(i)),i})(t,i)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,i,s]);const h=n&&(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)&&n[s[0]];return{data:!o&&h?h:o,error:d,mutate:()=>Promise.resolve(void 0)}}function ll(e){return Array.isArray(e)?e:e instanceof Function?ll(e()):[e]}const al=[];const il=async e=>await it(e,{method:"GET"})||al;function rl(){const{data:e}=nl("/api/v1/branchesByRegions",rt);return Array.isArray(e)?e:[]}const sl=d((({field:e,input:t,isPremium:n=!1})=>{const l=e("region"),i=l?.value?.key,r=l?.value?.text,s=n?rl()?.find((e=>e?.region===r))?.branches:function(e){const{data:t}=nl(e?`/api/v1/branches?regionCode=${e}`:null,il);return t||al}(i)?.filter((e=>e?.address));return a((()=>{""!==l?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[l?.value]),o(Dn,{label:"Отделение",placeholder:"Выберите отделение",options:(s||[]).map((({address:e=""})=>({key:e,text:e}))),...Xn(e("addressBranch"),Hn.addressBranch,t?.required),isSearch:!0})})),ol=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},cl=(e,t,n)=>Math.max(t,Math.min(e,n));function dl(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function ml({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,d={backgroundSize:`${(100*(s>t?s-t:0)/(n-t)).toFixed(2)}% 100%`};return c("div",{children:[e.length?o("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-m",children:e.map(((e,t)=>o("div",{className:h("w-2 h-2 rounded-full",s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,o("div",{className:"absolute inset-x-0 -bottom-1 px-m leading-[18px]",children:o("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:d,type:"range",min:t,max:n,step:l,value:s,disabled:i,onChange:t=>{const n=dl(t.target?.value),l=e.length?e[n]:n;r&&r(l||0)}})})]})}const hl=1,ul=100,pl=d((e=>{const{className:t,title:n,items:l=[],list:a=[],min:r=(a.length?0:hl),max:s=(a.length?a.length-1:ul),step:d=1,value:m=a[0]||r,disabled:u=!1,onChange:p}=e,g=ol(e,{normalize:(e=0)=>a.length?gl(a)(e):cl(e,r,s),format:Ue()}),x=i((e=>{p&&p(dl(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(Re,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,o("input",{className:h("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",rn,"disabled:border-gray disabled:bg-main-divider"),disabled:u,onChange:x,...g}),ml({list:a,min:r,max:s,step:d,disabled:u,value:m,onChange:p})]}),xl(l)]})})),gl=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),xl=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(Re,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),fl=["От 1 000 ₽","До 1 000 000 000 ₽"],bl=d((({field:e})=>o(pl,{title:"Сумма, ₽",items:fl,min:1e3,max:1e9,...e("amount")}))),yl=d((({field:e,input:t})=>o(zn,{className:"col-span-2",...Xn(e("comment"),Hn.comment,t?.required),placeholder:"Ваше сообщение",isTextarea:!0}))),vl=d((({field:e})=>o(Dn,{label:"Способ получения ответа",options:Ut,...Kn(e("feedbackMethod"),Hn.feedbackMethod)}))),Nl=d((({field:e})=>{const t=e("feedbackType");return a((()=>{"FEEDBACK"===t?.value?.key&&e("serviceDirection")?.onChange?.(Et[0])}),[t?.value]),o(Dn,{label:"Тема",placeholder:"Выберите тему",options:Ft,...Kn(t,Hn.feedbackType)})})),wl=d((({field:e})=>o(nn,{...e("isClient"),text:'Являюсь клиентом банка АО "Россельхозбанк"'})));function kl(e="/api/v1/regions"){const{data:t}=nl(e,rt);return Array.isArray(t)?t:[]}const Sl=d((({field:e,input:t})=>{const n=e("region")?.value?.key,l=kl(Ht)?.find((e=>e.code===n))?.localities?.map((e=>({key:e,text:e})));return a((()=>{""!==n&&e?.("localities")?.onChange?.("")}),[n]),o(Dn,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:l,...Xn(e("localities"),Hn.localities,t?.required),isSearch:!0})})),Cl=d((({field:e})=>o(zn,{label:"Отчество (Обязательно, при наличии)",...e("middleName")}))),Tl=d((({field:e,input:t})=>{const{required:n,...l}=t;return o(zn,{label:"Имя",...Xn(e("name"),Hn.name,n),...l})})),Il=d((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>l&&l(!e),children:[o("div",{className:h("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:o("div",{className:h("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(Re,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),Bl=d((({field:e})=>Qn(e("acquiringType")?.value?.key)?o(Il,{type:"radio",text:"Хочу онлайн-кассу",...e("onlineCheckout")}):null)),Pl=d((({field:e,input:t})=>{const{required:n,...l}=t;return o(zn,{...Xn(e("partnerComments"),Hn.partnerComments,n),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...l})})),Ml=e=>"_"===e,Rl=e=>/\d/.test(e),Vl=e=>Ml(e)||Rl(e),zl=[..."+7 (___) ___-__-__"],Dl=zl.findIndex(Ml),Al=zl.map(((e,t)=>Vl(e)?zl.slice(0,t).filter(Vl).length:-1));const $l=d((({children:e,onChange:t,...n})=>{const l=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=zl.map(((e,n)=>Rl(e)?e:t.charAt(Al[n])||e)),l=Al.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(Dl,l)):n).join("")}(e))),[t]),a=i((e=>{"+7 ("===e&&(t&&t(""))}),[]);return o(sn,{...n,onChange:l,onFocus:e=>l(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),_l=d((({className:e,label:t,value:n,error:l,onChange:a,onBlur:i,...r})=>c("div",{className:h("shrink-0 w-full",e),children:[o($l,{"aria-label":t,label:r?.errors?`${t}*`:t,valid:Boolean(!l),value:n,onChange:a,onBlur:i,placeholder:"+7 (___) ___-__-__"}),Kt(l)]}))),jl=d((({field:e,input:t})=>o(_l,{label:"Телефон",...Xn(e("phone"),Hn.phone,t?.required)}))),Ll=d((({field:e})=>Qn(e("acquiringType")?.value?.key)?o(Il,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Ol=d((({field:e})=>o(Dn,{placeholder:"Выберите продукт",label:"Продукт",options:Wt,...Kn(e("product"),Hn.product)}))),El=d((({field:e,input:t,url:n})=>{const l=kl(n);return o(Dn,{label:"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>l?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[l]),...Xn(e("region"),Hn.region,t?.required)})})),Fl=d((({field:e,input:t})=>{const n=rl(),l=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(Dn,{label:"Регион",placeholder:"Выберите регион",options:l,...Xn(e("region"),Hn.region,t?.required)})})),Ul=d((({field:e})=>{const t=e("secondaryPhone");return o(_l,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?Kn(t,Hn.secondaryPhone):t})})),Wl=d((({field:e})=>o(Dn,{label:"Направление обслуживания",placeholder:"Выберите направление",options:Et,...Kn(e("serviceDirection"),Hn.serviceDirection)}))),Hl=d((({field:e,input:t})=>o(zn,{label:"Фамилия",...Xn(e("surname"),Hn.surname,t?.required)}))),ql=["От 1 мес","До 15 лет"],Kl=d((({field:e})=>o(pl,{title:"Срок, месяцев",items:ql,min:1,max:180,...e("term")}))),Xl=d((({field:e})=>o(Dn,{label:"Тип обслуживания",options:Ot,...Kn(e("serviceType"),Hn.serviceType)}))),Yl=d((({name:e,text:t,value:n,checked:l,onChange:a,className:i})=>o("div",{className:i,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:h(rn.split(" ").filter((e=>"rounded"!==e)),Yt,"flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full","checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main"),type:"radio",value:n,name:e,checked:l,onChange:e=>a?.(e.target.value),role:"radio"}),t?o(Re,{color:"text-primary-text",children:t}):null]})}))),Gl=["currencyControl","documentOperations","conversionTransactions","otherIssues"],Ql=d((({field:e})=>{const{value:t,onChange:n}=e("vedTypes");return a((()=>{"currencyControl"!==t&&(e?.("inn")?.onChange?.(""),e?.("region")?.onChange?.(""))}),[t]),c("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:[o(Yl,{name:"vedTypes",text:"Валютный контроль",value:"currencyControl",checked:"currencyControl"===t,onChange:n}),o(Yl,{name:"vedTypes",text:"Документарные операции",value:"documentOperations",checked:"documentOperations"===t,onChange:n}),o(Yl,{name:"vedTypes",text:"Конверсионные операции",value:"conversionTransactions",checked:"conversionTransactions"===t,onChange:n}),o(Yl,{name:"vedTypes",text:"Иные вопросы ВЭД",value:"otherIssues",checked:"otherIssues"===t,onChange:n})]})}));const Jl=(e,t)=>(n,l)=>{const{required:a,...i}=n,r="ULTRASERVICE"===t||"PREMIUMSERVICE"===t,s={surname:o(Hl,{field:e,input:n}),name:o(Tl,{field:e,input:n}),middleName:o(Cl,{field:e}),phone:o(jl,{field:e,input:n}),email:o(zn,{label:"Электронная почта",...Xn(e("email"),Hn.email,a),...i}),fullName:o(zn,{label:"ФИО",...Xn(e("fullName"),Hn.fullName,a),...i}),inn:o(zn,{label:"ИНН",type:"number",...Xn(e("inn"),Hn.inn,a)}),comment:o(yl,{field:e,input:n}),region:r?o(Fl,{field:e}):o(El,{field:e,input:n,url:qt(t)}),addressBranch:o(sl,{field:e,input:n,isPremium:r}),birthday:o(Vn,{label:"Дата рождения",...Xn(e("birthday"),Hn.birthday,a)}),desiredMeetingDate:o(Vn,{label:"Желаемая дата встречи",...Xn(e("desiredMeetingDate"),Hn.meetingDay,a)}),product:o(Ol,{field:e}),localities:o(Sl,{field:e,input:n}),isClient:o(wl,{field:e}),consentToReceiveMaterials:o(nn,{...e("consentToReceiveMaterials"),text:"Согласен на получение информационных и аналитических материалов по электронной почте"}),partnerComments:o(Pl,{field:e,input:n}),collectionCount:o(zn,{label:"Количество объектов инкассации",type:"number",...Xn(e("collectionCount"),Hn.collectionCount,a)}),acquiringType:o(Gn,{field:e,input:n}),onlineCheckout:o(Bl,{field:e}),posTerminal:o(Ll,{field:e}),serviceType:o(Xl,{field:e}),term:o(Kl,{field:e}),amount:o(bl,{field:e}),annualRevenue:o(zn,{label:"Годовая выручка, ₽",...Xn(e("annualRevenue"),Hn.annualRevenue,a)}),vedTypes:o(Ql,{field:e}),feedbackType:o(Nl,{field:e}),feedbackMethod:o(vl,{field:e}),serviceDirection:o(Wl,{field:e}),bankEmpolee:o(zn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e("bankEmpolee")}),applicationDate:o(zn,{label:"Дата и время обращения в Банк",...e("applicationDate")}),secondaryPhone:o(Ul,{field:e})};return function({input:e,field:t}){const{condition:n}=e,{value:l}=t(n?.name||"");return!n||n?.values?.find((e=>e===(l?.key??l)))}({input:n,field:e})?o("div",{children:s[n?.name]},String(l)):null},Zl=e=>2===e?"@xl:grid-cols-2":"",ea=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(Re,{size:"text-h6",children:e})}):null;function ta({disabled:e,onClick:t}){return n=>{!e&&t&&t(n)}}const na={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"},la={primary:h("group-data-secondary:text-primary-main group-data-secondary:bg-white","group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active"),secondary:h("group-data-secondary:text-white group-data-secondary:bg-white/20","group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active")},aa=d((({children:e,...t})=>{const n=e=>({...e,onClick:me(ta(e))}),{className:l,version:a="primary",active:i,disabled:r,type:s="button",rounded:c=!0,role:d,onClick:m}=n(t);return o("button",{className:h("font-sans px-9 py-4","flex justify-center items-center gap-xs",{"text-white bg-primary-active":i,"bg-main-gray text-main-disabled cursor-not-allowed":r,"rounded-md":c},i||r?"":h(na[a],la[a]),l),type:s,role:d,onClick:m,children:e})})),ia=d((({className:e,onClose:t})=>o("button",{className:h("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(H,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),ra=d((({className:e,head:t,children:n,onClose:l,onClick:a})=>{const{close:r}=de(),s=i((()=>{r(),l&&l()}),[l]);return c("div",{onClick:a,className:h("relative min-h-full bg-white pt-0 p-lg",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(ia,{className:"absolute top-0 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})})),sa=d((function({responseType:e,typeForm:t}){const n="OK"===e,l=n?"ResponseOKIcon":"ResponseFailIcon",{close:a}=de(),r=i((()=>{a()}),[]),s="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(ra,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto ",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(ne,{image:{icon:l,iconVersion:"normal"},width:"136",height:"136"}),o(S,{className:"w-full",title:n?"Ваша заявка отправлена":"Не удалось отправить заявку",description:n?s:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(aa,{type:"button",onClick:r,children:"Хорошо"})]})})})),oa=e=>{const{open:t,close:n}=de();return{open:(n={})=>t(o(sa,{...e}),n),close:n}},ca=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],da=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:l,amount:a,term:i,annualRevenue:r,serviceType:s,feedbackType:o,vedTypes:c,region:d,...m}=e,h=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:l=!1,term:a,amount:i,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${Qn(t?.key)?`/Онлайн касса=${n}/POS-терминал=${l}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${i}/Срок=${a}/Выручка=${r}`})(e):null,u={...m,...ha(c),...ma(d),...h?{partnerComments:h}:{},...s?{typeForm:s}:{},...o?{typeForm:o}:{}};return Object.fromEntries(Object.entries(u)?.map((([e,t])=>[e,t?.key||t])))},ma=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},ha=e=>e?{vedTypes:Object.fromEntries(Gl.map((t=>[t,t===e])))}:{},ua={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:Yn[0],serviceType:Ot[0],feedbackType:Ft[0],feedbackMethod:Ut[0],serviceDirection:Et[0],vedTypes:Gl[0],birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1},pa=d((({text:e,link:t})=>c(w,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Re,{children:e}):null,t?o(be,{href:t.href,ariaLabel:"условия передачи данных",target:t.target||"",className:"!text-left text-primary-main",children:o(Re,{children:t.text})}):null]}))),ga=(e,t)=>o(aa,{className:h("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),xa=(e,t,n)=>c("div",{className:"flex col-span-2 gap-xs flex-col w-full items-baseline",children:[e?c("div",{children:[c("div",{className:"flex gap-3 items-center",children:[o(Qt,{...e}),o(pa,{link:t})]}),Kt(Kn(e,Wn).error)]}):o(pa,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),ga(n)]}),fa=bt(),ba=d((({className:e,title:t,typeForm:n="",sections:r=[],button:s,link:d,endpoint:m,additionalParams:u,isContacts:p,data:g,...x})=>{const f=r?.flatMap((e=>e?.inputs))||[],b=((e,t="")=>{const n=Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||ua[e.name]])));return n?.serviceType&&"PREMIUMSERVICE"===t&&(n.serviceType=Ot[1]),{...n,typeForm:{key:t,text:""}}})(f,n),[y,v]=l(""),w=i((async(e,t)=>{const l=ya(f,e),a=ca(qn(l));if(!An(a(e)))return"Fail";const i=da({...e,...u}),r=await fa.send(i,"lead"===m)?"OK":"Fail";if(v(r),r){oa({responseType:r,typeForm:n}).open()}if("OK"===r&&g){const e=Dt();St({aspectsAttributes:g,aspects:e,ev:t})}return r}),[]),[,{field:k,onSubmit:S,reset:C}]=$t(b,{onSubmit:w}),T=Lt(f)?.name;return a((()=>{"OK"===y&&(v(""),C())}),[y]),c(jt,{className:h("container space-y-m",e),title:t,...x,children:[c("form",{onSubmit:S,children:[r.map(((e,t)=>c("div",{className:h(Zl(e.columns),"grid gap-x-m"),children:[ea(e.title),(e?.inputs||[])?.map(Jl(k,n))]},`section-${t}`))),xa(T?k("consentDataProcessing"):void 0,d,s)]}),p?c("div",{className:"space-y-m",children:[o(N,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"@xl:text-center"}),c("div",{className:"flex sm:justify-center gap-xl",children:[c("a",{className:"flex gap-s items-center text-primary-text no-underline",href:"tel:8 (800) 200-78-70","aria-label":"телефон 8 (800) 200-78-70",children:[o(ne,{image:{icon:"PhoneIcon"},width:"24",height:"24"}),o("span",{children:"8 (800) 200-78-70"})]}),c("a",{className:"flex gap-s items-center text-primary-text no-underline","aria-label":"почта ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[o(ne,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),ya=(e,t)=>e.filter((e=>e)).filter((e=>!e?.condition||e?.condition.values.find((n=>{const l=t?.[e?.condition?.name??""];return"secondaryPhone"===e.name?Boolean(t.secondaryPhone):n===(l?.key??l)})))),va=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},Na={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:Yn[0],serviceType:Ot[0],feedbackType:Ft[0],feedbackMethod:Ut[0],serviceDirection:Et[0],vedTypes:Gl[0],birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1},wa=(e,t="")=>({...Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||Na[e.name]]))),typeForm:{key:t,text:""}}),ka=d((({text:e,link:t})=>c(w,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(Re,{children:e}):null,t?o(be,{href:t.href,ariaLabel:"условия передачи данных",target:t.target||"",className:"!text-left text-primary-main",children:o(Re,{children:t.text})}):null]}))),Sa=(e,t)=>o(aa,{className:h("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),Ca=(e,t,n)=>c("div",{className:"flex col-span-2 gap-xs flex-col w-full items-baseline",children:[c("div",{children:[c("div",{className:"flex gap-3 items-center",children:[o(Qt,{...e}),o(ka,{link:t})]}),e?Kt(Kn(e,Wn).error):null]}),Sa(n)]}),Ta=bt(),Ia=d((({className:e,title:t,typeForm:n="",sections:r=[],button:s,link:d,endpoint:m,...u})=>{const p=r?.flatMap((e=>e?.inputs))||[],g=wa(p,n),[x,f]=l(""),b=i((async e=>{const t=ca(qn(p));if(!An(t(e)))return"Fail";const l=(e=>{const{region:t,...n}=e,l={...n,...va(t)};return Object.fromEntries(Object.entries(l)?.map((([e,t])=>[e,t?.key||t])))})(e),a=await Ta.send(l,"lead"===m)?"OK":"Fail";if(f(a),a){oa({responseType:a,typeForm:n}).open()}return a}),[]),[,{field:y,onSubmit:v,reset:N}]=$t(g,{onSubmit:b}),w=Lt(p)?.name;return a((()=>{"OK"===x&&(f(""),N())}),[x]),o(jt,{className:h("container space-y-m",e),title:t,...u,children:c("form",{onSubmit:v,children:[r.map(((e,t)=>c("div",{className:h(Zl(e.columns),"grid gap-x-m"),children:[ea(e.title),(e?.inputs||[])?.map(Jl(y,n))]},`section-${t}`))),Ca(w?y("consentDataProcessing"):void 0,d,s)]})})})),Ba=d((({title:e,description:t})=>{const n=we();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(ne,{image:{icon:"MagnifierIcon",iconVersion:"normal"},width:"120",height:"120"}),o(S,{title:e,description:t,headlineVersion:n?"L":"S",isEmbedded:!0,className:"space-y-s"})]})})),Pa=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",Ma=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`});function Ra(e,{sensitivity:t,rootRef:n}={}){const l=s(null),i=r((()=>({threshold:Va(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,i);return t.observe(l.current),()=>{t.disconnect()}}),[e,i]),l}function Va(e=0){const t=Math.round(10*e);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const za=d((({className:e,style:t,idx:n,activeIndex:l,observerOptions:a,children:r,onIntersection:s})=>{const c=Ra(i((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return o("div",{className:h("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(n===l),ref:c,role:"listitem",children:r})})),Da=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],Aa=d((({className:e,itemClassName:t,containerRef:n,activeIndex:l,visibleItemCount:a=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:u,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:x})=>{const f={sensitivity:1,rootRef:n},b=s([]),y=i(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,g&&g(n),x&&x(_a(n))}),[g,x]),v=a>0?r*Number(a)-1:0,N="vertical-list"===d,w="horizontal-list"===d,k={...w?$a(c,v):{},...N?Ma(u):{},gap:`${r}px`};return o("div",{className:h("box-border overflow-auto no-scrollbar",d,e),style:k,ref:n,role:"list",children:(S=(e,n)=>o(za,{className:h(m,a?Da[a-1]:"",{"h-full":N},t),style:w?$a(c/4):{},activeIndex:l,idx:n,observerOptions:f,onIntersection:y,children:e},String(n)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(p)});var S})),$a=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),_a=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ja={"horizontal-list":"w-6","vertical-list":"h-6"},La=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(l,a)=>o("div",{className:h("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",a===e?ja[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),Oa=({activeIndex:e,onClick:t})=>(n,l)=>{const a=l===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur",r=a?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=a?"text-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(l),"aria-label":n?.title,className:h("max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap",i),children:[o("div",{className:r,children:n?.title}),o("div",{className:h("text-secondary-text font-light",s),children:n?.description})]},String(l))},Ea=e=>e,Fa=(e=Ea)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),Ua=Fa(),Wa=(e=Ea)=>Fa((t=>-e(t))),Ha=Wa(),qa=e=>t=>e.scrollWidth/t,Ka=e=>(t,n)=>{e.scrollBy({left:n*qa(e)(t),behavior:"smooth"})},Xa=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,r]=l([]),o=i((e=>{r((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),t&&t(e)}),[t]),[c,d]=a.length?[Wa()(a),Fa()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;n.current&&(m?Ka(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{n.current&&(h?Ka(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]),g=i(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{n?.current&&n.current.children[e]?.scrollIntoView(t)}),[n]);return[n,{scrollLeft:u,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},Ya={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Ga=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:l="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=we(),[u,p]=Xa({itemCount:s.length}),g=Qa(Boolean(s?.length));a((()=>{s?.length&&t>=0&&u?.current&&p.scrollTo(t,g)}),[t]);const x=i((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(Aa,{containerRef:u,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(Oa({activeIndex:t,onClick:x}))}):n?o("div",{className:h("flex gap-xs",Ya[l],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(La({activeIndex:t,onClick:x,listType:l}))}):null})),Qa=(e=!1)=>({behavior:e?"auto":"smooth"}),Ja=d((({className:e,disabled:t,...n})=>o(be,{rounded:!0,className:h("group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black",t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main",e),disabled:t,...n,children:o(ne,{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"})}))),Za=d((e=>o(Ja,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),ei=d((e=>o(Ja,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),ti="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",ni=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:l,isBottom:a})=>{const{canScrollLeft:i,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=l&&!a;return c("div",{className:e,children:[n?li(t):null,i?o(Za,{className:h(ai(a),m?"left-1":"left-0"),onClick:s}):null,r?o(ei,{className:h(ai(a),m?"right-1":"right-0"),onClick:d}):null]})})),li=e=>c("div",{children:[e.canScrollLeft?o("div",{className:h(ti,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:h(ti,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),ai=(e=!1)=>h("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),ii=d((({className:e,version:t,gap:n=14,padding:l=16,visibleItemCount:a=1,listType:i="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:u,showDots:p,children:g,onVisibleIndicesChange:x,navButtons:f})=>{const b=Array.isArray(g)?g.length:0,[y,v]=Xa({itemCount:b,onVisibleIndicesChange:x}),[N]=v.visibleIndicesRange;return c("div",{className:h(e,"vertical-list"===i?"relative h-full":""),children:[o(Aa,{containerRef:y,activeIndex:N,visibleItemCount:a,gap:n,padding:l,listType:i,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(ni,{className:h(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:u,isBottom:Boolean(f?.length)}),o(Ga,{className:h(!p&&"lg:hidden"),activeIndex:N,dotCount:b,listType:i,version:t,navButtons:f,containerRef:y,containerScroll:v})]})})),ri=({blocksToRender:e,...t})=>o(ii,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:P(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:h("relative min-w-80",Pa(!0)),children:I(e,t)},String(n))})}),si=e=>e%2!=0,oi=d((({textNode:e,iconNode:t,tag:n,onClick:l,justifyContent:a="between",className:i,role:r,...s})=>c(n,{tag:n,className:h("flex items-center w-full gap-1","between"===a?"justify-between":"justify-center",i),onClick:l,role:r,...s,children:[e?o("div",{children:e}):null,t?o("div",{children:t}):null]}))),ci=d((({className:e="",label:t,icon:n,dataTheme:l="pc",disabled:a=!1,onClick:i})=>o(oi,{tag:"button",onClick:i,disabled:a,"data-theme":l,justifyContent:"center",role:"button",className:h("py-4 border border-transparent outline-none focus:border-primary-text space-x-s",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),textNode:o(Re,{size:"text-h4",children:t}),iconNode:n?o(ne,{image:{icon:n,iconVersion:"white"},className:"my-auto",width:"20",height:"20"}):null}))),di=({isUnfolded:e,onToggle:t})=>o(ci,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),mi=d((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=l(n),d=i((()=>{o((e=>!e))}),[]),m=a({isUnfolded:s,onToggle:d}),h=r?r({isUnfolded:s,onToggle:d}):null;return c("div",t?{className:e,role:"group",children:[h,m]}:{className:e,role:"group",children:[m,h]})}));const hi=d((({className:e="",isUnfolded:t,children:n})=>{const l=s(null),i=function(e,t){const n=s(null);return a((()=>{const t=n?.current;if(!t)return;const l=new ResizeObserver((n=>{e(t,n[0])}));return l.observe(t),()=>{l.disconnect()}}),[e,...t]),n}((e=>{l.current&&(l.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} `,children:o("div",{className:e,ref:i,children:n})})})),ui=["ArrowDownIcon","ArrowUpIcon"],pi="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",gi=({topItemsCount:e=0,label:t="",block:n,blocksToRender:l=[],...a})=>{const[i,r]=e>0?[l.slice(0,e),l.slice(e)]:[l,[]];return c("div",{className:h("space-y-2xs",{hidden:!l.length}),children:[c("div",{className:h(pi),children:[P(i,{...a.options,parent:n}),si(i.length)?o(pt,{className:"col-span-6",...a}):null]}),o(mi,{renderFoldableSection:({isUnfolded:e})=>c(hi,{className:h(pi),isUnfolded:e,children:[P(r,{...a.options,parent:n}),si(r.length)?o(pt,{className:"col-span-6",...a}):null]}),renderFoldButton:({isUnfolded:n,onToggle:l})=>o(ci,{className:h({hidden:e<1}),disabled:!r?.length,label:t,icon:ui[Number(n)],dataTheme:a.options?.page?.colorPalette,onClick:l})})]})},xi=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...l})=>{switch(e?.view){case"grid":return c("div",{children:[fi(n,t),gi({...e,...l,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[fi(n,t),ri({...l,blocksToRender:t})]});default:return null}})),fi=(e,t)=>e&&!t.length?o(Ba,{...e}):null,bi=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),yi=d((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>o(Il,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const a=e?.includes(n);t(l?a?(e||[]).filter((e=>e!==n)):[...e||[],n]:a?[]:[n])})(n.value),type:l?"checkbox":"radio"},n.value))))),vi=d((({children:e,filtrationSchema:t,resetButton:n,field:l,reset:a})=>c("form",{className:"flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0",children:[c("div",{className:"flex flex-col @4xl:flex-row gap-xl",children:[e,bi(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(Ni(l)).filter(Boolean))]}),n?o("div",{children:o(aa,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:n?.text})}):null]}))),Ni=e=>([t,n])=>{const l=n?.type;return"array"===l?wi(t,e)(n):null},wi=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return c("div",{className:"flex-1",children:[n?.title?o("div",{className:"mb-m",children:o(Re,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(yi,{items:l,multiple:!n?.single,...t(e)})]},e)};function ki(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Si=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Ci=(e,t)=>Object.entries(e).map((([n,l])=>"number"==typeof l?Array.isArray(t[n])?((e,t)=>n=>Si(t[e])||Si(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>Si(t[e])||Si(n[e])||Ti(t[e])<=Ti(n[e]))(n,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>n=>Si(t[e])||Si(n[e])||Ti(t[e]?.min)>=Ti(n[e]?.min)&&Ti(t[e]?.min)<=Ti(n[e]?.max))(n,e):Array.isArray(l)?((e,t)=>n=>Si(t[e])||Si(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>Si(t[e])||Si(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),Ti=e=>Number(e||0),Ii=(e,{block:t,page:n,normalize:l=At})=>{const a=t?.blocks||[],[i,{field:s,reset:o,update:c}]=$t(e),d=r((()=>ki(a,a.map((e=>dt(e.content,n?.fallback))))),[a,n?.fallback]),m=i===e?a:((e,t)=>(n=At)=>e?.filter((([,e])=>Ci(t,n(e)||{}))).map((([e])=>e)))(d,i)(l);return[i,{blocksToRender:m,blocksWithProps:d},{field:s,reset:o,update:c}]},Bi={},Pi={},Mi=ht((({className:e,filtrationSchema:t=Bi,consumerField:n={},resetButton:l,...a})=>{const[,{blocksToRender:i},{field:r,reset:s}]=Ii(Pi,{block:a.block,page:a.options?.page}),d=o(gn,{className:"w-64",label:n?.title,options:Ri(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>Ri(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:h(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(vi,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(aa,{type:"reset",className:"mt-lg w-64",onClick:s,version:l?.version,children:l?.text})})]})}),o(xi,{blocksToRender:i,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),Ri=e=>ki(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),Vi=(e=!1)=>e?"text-left":"text-center",zi={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Di=d((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:l,icon:a,...i})=>{const r=String(l?.width||t);return a?o("div",{style:{width:`${r}px`,height:`${r}px`},className:h("rounded-icon object-fit flex justify-center items-center",zi[n],e),children:o(H,{...i,width:"54%",height:"54%",name:a})}):null})),Ai=d((({className:e="",title:t,benefitList:n,...l})=>{const a=we();return c(g,{className:e,defaultPadding:"p-6xl",...l,children:[t?o(N,{headingType:"h3",as:"h2",className:Vi(a),title:t}):null,n?.length?o("div",{className:"flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl",role:"list",children:n.map($i)}):null]})})),$i=({label:e,description:t,__html:n,icon:l,isDotted:a=!1,iconBgVersion:i},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[l?.icon?o(Di,{className:"shrink-0",iconBgVersion:i,...l}):null,l?.src?o(ne,{className:"shrink-0",image:l}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(N,{headingType:"h6",children:e}),o(Re,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(Pe,{__html:n,isDotted:a,itemSize:"list-s"}):null]}):null]},String(r)),_i=e=>({icon:t,title:n,description:l},a)=>c("div",{className:h("flex flex-col gap-1","items-center",{"justify-center":!l&&!n}),children:[n?o(Re,{size:"text-h6",font:"font-normal",align:e,children:n}):null,t?o(ne,{image:t,height:"180",className:"w-auto mx-auto"}):null,l?o(Re,{size:"text-h6",font:"font-normal",align:e,children:l}):null]},String(a)),ji=(e,t,n)=>o("div",{className:`grid gap-2xs ${Li(t)}`,children:e.map(_i(n))}),Li=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Oi=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:l="4",subtitle:a,title:i,...r})=>c(g,{className:h("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(S,{defaultPadding:"",title:i,description:a,headlineVersion:"M"}),e?.length?ji(e,l,t):null]}))),Ei={start:"justify-start",center:"justify-center",end:"justify-end"},Fi=d((({buttons:e,className:t="",align:n,...l})=>{const a=n&&h("flex",Ei[n]);return o(g,{className:h("!bg-transparent",a,t),defaultPadding:"p-0",...l,children:Le(e)})})),Ui=d((({className:e,title:t,children:n,...l})=>c(g,{className:h("space-y-xl",e),defaultPadding:"p-4xl",...l,children:[t?o(N,{className:"text-center",title:t}):null,n]}))),Wi="flex flex-col justify-between @4xl:flex-row gap-x-4xl gap-y-7 @xl:gap-y-4xl",Hi="flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl",qi="flex flex-col gap-y-xl min-w-52",Ki=d((({value:e,fractionDigits:t,fixed:n,prefix:l,postfix:a})=>o(Re,{size:"text-h3",children:"number"==typeof e?[l,Ue(t,{fixed:n})(e),a].filter(Boolean).join(" "):e}))),Xi=d((({className:e,title:t,value:n,color:l="text-secondary-text",...a})=>c("div",{className:h("flex justify-between @xl:flex-col",e),children:[t?o(Re,{size:"text-l",font:"font-light",color:l,children:t}):null,n?o(Ki,{value:n,...a}):o(Re,{size:"text-h3",children:"-"})]}))),Yi=(e,t)=>e?o(w,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,Gi=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:l=2,depositeName:a,isShowDepositeName:i,color:r="text-secondary-text"})=>c("div",{children:[o(Re,{size:"text-l",font:"font-light",color:r,children:t}),c("div",{className:"relative",children:[c("div",{className:"flex @xl:justify-center gradient-color-text",children:[o("span",{className:"font-mohave text-title-huge -mt-m tracking-[-15px]",children:Ue(l,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),a&&i?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),Qi=d((({title:e="Ставка",isUnavailableByTerm:t=!1})=>c("div",{className:"space-y-s min-w-96",children:[o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(H,{className:"w-10 h-10 @5xl:h-auto @5xl:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:t?c(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",o("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]}):o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Выберите другую сумму или срок"})})]}))),Ji=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:l=2,isUnknownRateShown:a=!0,color:i="text-secondary-text",children:r,...s})=>a&&0===t?o(Qi,{title:e,...s}):c("div",{className:"flex flex-col",children:[o("div",{className:"hidden @xl:block min-w-96",children:o(Gi,{title:e,rate:t,unit:n,fractionDigits:l,color:i,...s})}),o(Xi,{className:"@xl:hidden",title:e,value:t,postfix:n,fractionDigits:l,fixed:!0,color:i,...s}),r]}),Zi=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...l})=>o(pl,{items:e?[`От ${Ue(1)(l.min||0)} ${n}`,`До ${Ue(1)(l.max||0)} ${n}`]:[],step:t,...l}),er={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},tr={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},nr=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,[a,i]=((e,t,n)=>{const{maxBonus:l=5e3,prefMonthsNum:a=er.prefMonthsNum,prefTravelBonusRate:i=er.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(i*t)+Math.round(r*n),l);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*n),l)*(12-a)]})(t||tr,n,l);return{...t,...e,monthBonus:a,yearBonus:i}},lr=ht((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,...i})=>{const[r,{field:s}]=$t({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:u,maxSumOther:p,monthBonus:g,yearBonus:x}=nr(r,n);return o(Ui,{className:e,title:t,...i,children:c("section",{className:h(Wi,e),children:[c("div",{className:Hi,children:[Zi({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),Zi({title:"Сумма покупок в остальных категориях, ₽",min:u,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?Ji({title:"Баллов за месяц",rate:g,fractionDigits:0,isUnknownRateShown:!1,unit:"",color:"text-primary-text"}):null}),c("div",{className:qi,children:[x>=0?o(Xi,{title:"Баллов за год",value:x,color:"text-primary-text"}):null,Le(l,{isVertical:!0}),Yi(a)]})]})})})),ar=Math.round(29.5),ir=(e,t=0)=>e?.sum?e.sum:t,rr=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,sr=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,or={horizontal:"gap-5xl",vertical:"flex-col gap-s"},cr=d((({items:e,checkedItem:t,className:n,onChange:l,disabled:a=!1,orientation:i="horizontal"})=>o("div",{className:h(`flex ${or[i]}`,n),role:"radiogroup","aria-label":"Группа кнопок",children:e?.map((({id:e,text:n})=>o(Qt,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e),disabled:a},String(e))))}))),dr=({items:e,title:t,mobileTitle:n=t,orientation:l="horizontal",value:a,onChange:i,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(Re,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(Re,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(cr,{orientation:l,items:e,checkedItem:e[a?0:1].id,onChange:t=>i&&i(t===e[0].id),...r})]}),mr=e=>dr({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),hr=" (c капитализацией)",ur=({income:e,finalSum:t,postfix:n="₽",buttons:l=[],footnotes:a=[],isCapitalization:i=!1})=>c("div",{className:qi,children:[o(Xi,{title:`Доход в конце срока${i?hr:""}`,value:e,postfix:n,prefix:"+"}),o(Xi,{title:`Сумма в конце срока${i?hr:""}`,value:t,postfix:n}),Le(l,{isVertical:!0}),a?.map(Yi)]}),pr=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:gr([e,t],l),gr=([e,t],n=[])=>({[e]:n.length?Ha(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?Ua(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),xr=(e,[t,n],l)=>e>=l[t]&&e<=l[n],fr={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const br={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},yr=(e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:i,isMonthlyInterestPayment:r}=e,s=i||a,o=n<90||n>730,c=function(e){const t=e?.rateType?fr[e?.rateType]:"",{data:n}=nl(t?`/api/v1/depositrates/${t}`:null,rt);return Array.isArray(n)?n:[]}(t);if(n<=30)return{...br,...e,isDisabledOperatingDeposit:o,isUnavailableByTerm:!0};const d=c?.find((e=>r===e.isMonthlyInterestPayment&&vr(s,e)&&xr(l,["minSum","maxSum"],e)&&xr(n,["minDays","maxDays"],e)))||br,{rate:m}=d,h=Nr(m,e),u=l+h,p=c||[br];return{...d,...gr(["minSum","maxSum"],p),...gr(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:h,finalSum:u}},vr=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Nr=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},wr=ht((({className:e="",title:t,buttons:n,footnote:l,bottomFootnote:a,isShowDepositeName:i,defaultParams:r,rateParams:s,...d})=>{const[m,{field:u}]=$t({moneyValue:ir(r,1e5),daysValue:rr(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=yr(m,s),{income:g,finalSum:x,rate:f,isUnavailableByTerm:b,depositeName:y}=p;return o(Ui,{className:e,title:t,...d,children:c("section",{className:h(Wi,e),children:[c("div",{className:Hi,children:[Zi({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...u("moneyValue"),value:p.moneyValue}),(v={title:"Срок, дней",min:p.minDays,max:p.maxDays,...u("daysValue"),value:p.daysValue},o(pl,{items:[`От ${sr(v.min||0)}`,`До ${sr(v.max||0)}`],step:1,...v})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[kr(p,u),mr({title:"Выплата процентов",orientation:"vertical",...u("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),Ji({rate:f,depositeName:y,isShowDepositeName:i,isUnavailableByTerm:b}),ur({income:g,finalSum:x,buttons:n,footnotes:[l,a]})]})});var v})),kr=(e,t)=>c("div",{className:"space-y-s",children:[o(Re,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(Qt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(Qt,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),Sr=(e=[],t=!1)=>Cr([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),Cr=(e,t)=>{if(!t?.length)return;const n=t?.reduce(((t,n)=>e[0](n.rate,t[0].rate)?[n]:n.rate===t[0].rate?[...t,n]:t),[t[0]]);return n.length>1?n.reduce(((t,n)=>e[1](n,t)?n:t),n[0]):n[0]},Tr=({min:e=0,max:t=0,availableMonths:n,...l})=>o(pl,{items:[`От ${Ir(e)}`,`До ${Ir(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...l}),Ir=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,Br=e=>dr({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),Pr=({field:e,defParams:t,calcParams:n,map:l,monthsValue:a="maxMonths"})=>{Object.entries(l).forEach((([n,l])=>{e?.(n)?.onChange?.(t?.[l])})),e?.("monthsValue")?.onChange?.(cl(t?.[a],n.minMonths,n.maxMonths))},Mr=(e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(n){const t=e/1200;return i?(l+i)*(t+t/(Math.pow(1+t,a)-1)):l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)},Rr={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Vr=e=>zr({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&zr({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&zr({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&zr({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),zr=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],Dr=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=t?.rateRows||[Rr],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>Vr({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=pr(["minSum","maxSum"],r,i),{minMonths:c,maxMonths:d}=pr(["minMonths","maxMonths"],r,i),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a})=>e?.find((e=>Vr({row:e,userInputParams:t,paramsViewSettings:n})&&xr(l,["minSum","maxSum"],e)&&xr(a,["minMonths","maxMonths"],e)))||Rr)({rateRows:i,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a}),{rate:h}=m,u=Mr(h,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:l,monthsValue:a,monthlyPayment:u}},Ar=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),$r={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},_r=ht((({className:e,title:t,calcSource:n,buttons:l,footnote:i,paramsViewSettings:r,defaultParams:s,...d})=>{const m=(u=n?.rateRows,Cr([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],u));var u;const[p,{field:g}]=$t({moneyValue:ir(s,2e5),monthsValue:rr(s,ar),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)}),x=Dr(p,n,r),f=Br({title:"Тип платежа",orientation:"vertical",...g("isAnnuity")}),{onChange:b}=g("moneyValue"),{onChange:y}=g("monthsValue");return a((()=>{b&&b(cl(p.moneyValue,x.minSum,x.maxSum))}),[x.minSum,x.maxSum]),a((()=>{y&&y(cl(p.monthsValue,x.minMonths,x.maxMonths))}),[x.minMonths,x.maxMonths]),a((()=>{!Ar(s)&&m&&Pr({field:g,defParams:m,calcParams:x,map:$r,monthsValue:"minMonths"})}),[n,s]),o(Ui,{className:e,title:t,...d,children:c("section",{className:h(Wi,e),children:[c("div",{className:Hi,children:[Zi({title:"Сумма кредита, ₽",step:500,min:x.minSum,max:x.maxSum,...g("moneyValue"),value:x.moneyValue}),Tr({title:"Срок кредита, месяцев",min:x.minMonths,max:x.maxMonths,...g("monthsValue"),value:x.monthsValue}),jr({...x,...r},g),o("div",{className:"sm:hidden",children:f})]}),c("div",{className:h(qi,"@4xl:w-1/2"),children:[o(Xi,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(Xi,{title:"Ставка",value:x?.rate,fractionDigits:2,postfix:"%"}),o(Xi,{title:"Ежемесячный платёж",value:x.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:f}),Le(l,{isVertical:!0}),Yi(i)]})]})})})),jr=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(Qt,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(Qt,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(Qt,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(Qt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Lr=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,i]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,i)]):n++}return t},Or={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},Er=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,i=t?.[0]?Wr(t[0].minMonths,t[0].maxMonths):0,r=!n?.isShowMonthlyInterestPayment,s=!n?.isShowRemoteRegistration,o=!n?.isShowReplenish,c=!n?.isShowWithdrawn,d=!n?.isShowNewClient,m=t?.find((t=>[Ur({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Ur({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Ur({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),Ur({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,xr(l,["minSum","maxSum"],t),xr(a||i,["minMonths","maxMonths"],t)].every(Boolean)))||Or,{rate:h}=m,u=Fr(h,e),p=l+u,g=t||[Or];return{...m,...gr(["minSum","maxSum"],g),...gr(["minMonths","maxMonths"],g),availableMonths:Lr(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:u,finalSum:p}},Fr=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Ur=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Wr=(e,t)=>e+Math.round((t-e)/2),Hr=(e="rub")=>"rub"===e,qr=(e,t)=>{const{minMonths:n,maxMonths:l}=gr(["minMonths","maxMonths"],Gr(t,e?.currency)),a=e.monthsValue||Math.round((n+l)/2);return{monthsValue:cl(a,n,l)}},Kr=(e,t)=>{const{minSum:n,maxSum:l}=gr(["minSum","maxSum"],Gr(t,e?.currency)),a=e.moneyValue||n;return{moneyValue:cl(a,n,l)}},Xr=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),Yr=e=>{const t=Hr(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},Gr=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},Qr=(e,t)=>{const n="rub"!==e?.currency?.key;return c("div",{className:"grid gap-lg",children:[c("div",{className:"flex gap-lg",children:[e.isShowReplenish?dr({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?dr({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),Jr(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?mr({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},dr({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),Jr(e.isShowNewClient),e.isShowNewClient?o(Qt,{text:"Новый вкладчик",...t("isNewClient")}):null]});var l},Jr=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Zr={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},es={text:"₽",key:"rub"},ts=ht((({className:e,title:t,calcSource:n,buttons:l=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:u}=n??{},p=u?.map((e=>e.currency))??[es],g=i((e=>t=>e?{...t,...Yr(t),...Kr(t,e),...qr(t,e),...Xr(t,e)}:t)(u),[u]),[x,{field:f}]=$t({moneyValue:ir(d,2e4),monthsValue:rr(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:es},{normalize:g}),b=f?.("currency")?.value??es,y=f?.("isNewClient")?.value,v=Gr(u,b),N=Er(x,v,s),{rate:w,income:k,finalSum:S,type:C=""}=N,T=i((()=>{Pr({field:f,defParams:Sr(v,y),calcParams:N,monthsValue:"minMonths",map:Zr})}),[f,u]);a((()=>{!Ar(d)&&v&&T()}),[d,u]);const I=w===Sr(v,y)?.rate;return o(Ui,{className:e,title:t,...m,children:c("section",{className:h(Wi,e),children:[c("div",{className:Hi,children:[c("div",{className:"flex gap-m",children:[Zi({className:"w-full",title:`Сумма, ${b?.text}`,min:N.minSum,max:N.maxSum,...f("moneyValue"),value:N.moneyValue,postfix:b?.text,step:ns(b?.key)}),u&&u?.length>1?o(Dn,{label:"Валюта",options:p,...f("currency")}):null]}),Tr({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...f("monthsValue"),value:N.monthsValue}),Qr({...N,...s},f)]}),Ji({rate:w,children:as(T,I)}),ur({income:k,finalSum:S,buttons:[...l,ls(n?.buttons,C)],footnotes:[r],postfix:b?.text,isCapitalization:f("isMonthlyInterestPayment").value})]})})})),ns=(e="")=>Hr(e)?1e3:100,ls=(e=[],t="")=>{const{type:n,...l}=e.find((e=>e.type===t))??{};return l},as=(e,t=!1)=>t?null:o(aa,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),is=e=>rs({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&rs({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),rs=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],ss={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},os=(e,t,n)=>{const{moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}=e,s=t?.rateRows||[ss],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>is({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=pr(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=pr(["minMonths","maxMonths"],o,s),u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>is({row:e,userInputParams:t,paramsViewSettings:n})&&xr(l+r,["minSum","maxSum"],e)&&xr(i,["minSumOld","maxSumOld"],e)&&xr(r,["minSumExtra","maxSumExtra"],e)&&xr(a,["minMonths","maxMonths"],e)))||ss)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r}),{rate:p}=u,g=Mr(p,e),x=e.oldMonthlyPayment-g;return{...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:l,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r,monthlyPayment:g,benefit:x}},cs=ht((({className:e="",title:t,calcSource:n,buttons:l,footnote:a,paramsViewSettings:i,...r})=>{const[s,{field:d}]=$t({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=os(s,n,i),u=Br({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(Ui,{className:e,title:t,...r,children:c("section",{className:h(Wi,e),children:[c("div",{className:Hi,children:[Zi({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),Zi({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),Tr({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),ds({...m,...i},d),m.isExtraMoney?Zi({title:"Дополнительная сумма, ₽ ",step:500,min:m.minSumExtra,max:m.maxSumExtra,...d("moneyExtra"),value:m.moneyExtra}):null,o("div",{className:"sm:hidden pt-1 pb-4 border-b border-main-divider",children:u})]}),c("div",{className:h(qi,"@4xl:w-1/2"),children:[o(Xi,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(Xi,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(Xi,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(Xi,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:u}),Le(l,{isVertical:!0}),Yi(a)]})]})})})),ds=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(Qt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(Qt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(Qt,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),ms=d((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:r=0,...s}=e,c=ol(e,{normalize:(e=a)=>n&&l?String(cl(Number(hs(e)),n,l)):hs(e),format:Ue(r)}),d=i((e=>t&&t(hs(e))),[t]);return o(sn,{onChange:d,...s,...c})})),hs=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),us=d((e=>o(ms,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(Re,{size:"text-xl",font:"font-light",children:"₽"})})}))),ps={private:"https://old.rshb.ru/p2p/",business:"https://old.rshb.ru/smallbusiness/p2p/"},gs={amount:1500},xs=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:i,formType:r="private",...s})=>{const[{amount:d},{field:m}]=$t(gs),[u,p]=l(!1);return a((()=>{p(d<=0)}),[d]),c(g,{className:h("flex flex-col items-center",e),defaultPadding:"p-6xl",...s,children:[t?o(N,{className:"pb-lg xl:pb-4xl self-start xl:self-center",headingType:"h3",title:t}):null,c("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:ps[r],children:[o(us,{valid:!u,label:n,max:3e5,min:1,...m("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:d}),i?.text?o(aa,{className:"w-full mt-lg",type:"submit",disabled:u,children:i.text}):null]})]})})),fs=({className:e,text:t="ХИТ"}={})=>c("div",{className:h("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(H,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),o(w,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:t})]}),bs="relative h-full",ys={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},vs=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...l})=>{const{blocks:a}=l.block||{},i=a?.some(ks),r=n?{defaultPadding:"p-6xl pb-m"}:{};return M({...l,renderProps:(n,l,a)=>c("div",{className:Ns(n,{someCardsHighlighted:i}),children:[I(n,l,{className:ws(n,{someCardsHighlighted:i,showBorder:!e,cardSize:t}),...r,blockIndex:a}),ks(n)?fs({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},Ns=(e,{someCardsHighlighted:t})=>h(bs,t&&(ks(e)?"pt-3xl":"pt-3xl sm:pt-16")),ws=(e,{someCardsHighlighted:t,showBorder:n,cardSize:l="normal"})=>h(bs,"min-w-80",ys[l],t&&(ks(e)?"pt-3xl sm:pt-16":"pt-3xl"),Pa(n),n&&"h-full"),ks=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,Ss=ht((({className:e,visibleItemCount:t=1,noCardBorder:n,arrowsPadded:l=!0,isGap:a=!0,cardSize:i="normal",isNavButtons:r=!1,...s})=>o(g,{className:h(e),defaultPadding:"p-6xl",...s,children:o(ii,{className:h("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:l,navButtons:r?Cs(s?.block?.blocks):[],hasBlur:!0,children:vs({noCardBorder:n,cardSize:i,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),Cs=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],Ts="z-10 border border-solid w-full h-full",Is=h(Ts,"absolute hidden @xl:block border-transparent"),Bs=d((({className:e,title:t,description:n,button:l,...a})=>o(g,{className:h("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...a,children:c("div",{className:"relative h-full",children:[o("div",{className:h(Is,"top-9 right-12 bg-green-dark")}),o("div",{className:h(Is,"top-6 right-8 bg-green")}),o("div",{className:h(Is,"top-3 right-4 bg-green-light")}),c("div",{className:h(Ts,"relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light"),children:[o(S,{title:t,description:n,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),Le([l],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),Ps={black:"bg-black",white:"bg-white"},Ms=d((({className:e="",title:t,description:n,image:l,price:a,button:i,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:h("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(Ce,{className:"h-full",padding:d,title:o(S,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:l?.src?o(ne,{className:"flex justify-center align-center mb-xl",image:l}):null,buttons:Le([i],{buttonClassName:"w-full self-end"}),children:[r?.length?c("div",{className:"flex text-secondary-text mb-m",children:[o("div",{className:"mr-xs",children:o(Re,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(Rs)]}):null,a?c(Re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),Rs=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${Ps[e]}`},String(t)),Vs=d((({icon:e,...t})=>{const n=he(),{text:l,href:a,target:i,onClick:r}=n(t);return l?o("div",{className:h("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:a,target:i,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(ne,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:l}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:l})]})})}):null})),zs=d((({className:e,additionalDescription:t,description:n,links:l,title:a,...i})=>o(g,{defaultPadding:"p-5xl",className:h("overflow-hidden",e),...i,children:c("div",{className:"flex flex-col lg:flex-row gap-5 justify-between",children:[c("div",{className:"flex-1",children:[o(S,{isEmbedded:!0,title:a,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(S,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),l?.length?Ds(l):null]})}))),Ds=e=>o("div",{className:h("lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3","lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6","grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2","grid gap-3 lg:gap-5"),children:e.map(((e,t)=>o(Vs,{...e},String(t))))}),As=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),$s=d((({className:e="",href:t,target:n,onClick:l,data:a,children:i})=>{const r=he()({href:t,target:n,onClick:l});return o(t?"a":"div",{className:h("block",e),...t?r:{},role:t?"link":"none",...ue(a),children:i})})),_s=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"}},{origins:["vk.com"],iconMapped:{icon:"VKIcon"}},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"}},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"}},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"}},{origins:["appgallery.huawei.com"],iconMapped:{icon:"HuaweiIcon"}},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"}},{origins:["rutube.ru"],iconMapped:{icon:"RutubeIcon"}},{origins:["dzen.ru"],iconMapped:{icon:"DzenIcon"}},{origins:["rustore.ru"],iconMapped:{icon:"RustoreIcon"}}],js=d((({className:e="",media:t,showButtonText:n,stretched:a,version:i="white",children:r})=>{if(!t?.length)return null;const[s,d]=l(),m=t?.map((e=>{const{href:t,icon:l,text:a}=e,{iconMapped:r}=(e=>_s.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=je(l)?l:r,c=n?{text:a}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&a&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??i}})),u=h("border border-solid hover:border-transparent border-main-divider","group-data-primary:border-main-divider group-data-gray:border-green group/media",{"basis-auto":!n&&!s},Ls(a));return c("div",{className:h("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:Le(m,{className:Os(s??!1,a??!1,n),buttonClassName:u})}),r?o(Re,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),Ls=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",Os=(e,t,n=!1)=>h(e||t?"basis-full":"",!t||n&&e?"":"flex-nowrap"),Es=d((({className:e,padding:t,description:n,additionalDescription:l,href:a,icon:i,isDotted:r,__html:s,socialMedia:d=[],target:m,title:u,align:p="text-left",benefits:x,imageOptions:{directionRight:f=!0,isImageAlwaysOnRight:b=true,isImageSecondary:y=!1}={},data:v,...N})=>o(g,{className:h("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...N,children:o($s,{href:a,target:m,className:"h-full",data:As(v),children:c(Ce,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(S,{title:u,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...Ge(je(i)?o(ne,{image:i}):null,f),buttons:d.length?o(js,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:b,isImageSecondary:y,imageAlign:"center",children:[o(_e,{benefits:x}),s?o(Pe,{__html:s,isDotted:r,itemSize:"list-s"}):null,Fs(l,p)]})})}))),Fs=(e,t)=>e?o(w,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",align:t,children:e}):null,Us=(e,t)=>{const{title:n,description:l,buttons:a}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(Re,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?o("div",{className:"mt-2xs",children:o(Re,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?o("div",{className:"text-primary-main",children:Le(a)}):null]},String(t))},Ws=d((({className:e="",title:t,align:n="text-center",icon:i,button:r,visibleCellsCount:s=1,cardCells:d=[],options:m,data:u,...p})=>{const x=d.map(Us),[f,b]=s>0?[x.slice(0,s),x.slice(s)]:[x,[]],[y,v]=l(!1);return a((()=>ce.subscribe("fold",(e=>{void 0!==m?.parent&&e.parent===m?.parent&&v(e.isUnfolded)}))),[m?.parent]),c(g,{className:h("flex flex-col",e),defaultPadding:"p-2xl",...p,children:[je(i)?o("div",{className:"self-center",children:o(ne,{image:i})}):null,t?o(N,{className:h("pt-xs",n),headingType:"h5",title:t}):null,r?.text?o(be,{className:"w-full mt-m mb-lg",...r}):null,b.length?o(mi,{renderFoldableSection:()=>c("div",{children:[f,o(hi,{isUnfolded:y,children:b})]}),renderFoldButton:d.length>=s?Hs(y,m?.parent,u):null}):o("div",{children:f})]})})),Hs=(e,t,n)=>()=>c("button",{className:"w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center",onClick:()=>{void 0!==t&&ce.fire("fold",{type:"fold",isUnfolded:!e,parent:t})},type:"button",...e?ue(n):{},children:[o("div",{children:e?"Скрыть":"Подробнее о тарифе"}),o(H,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),qs=d((({className:e,contacts:t,info:n,version:l="secondary",...a})=>c(g,{className:h("flex",e),defaultPadding:"p-6xl",version:l,...a,children:[n?.length?Ks(n):null,t?.length?Ks(t):null]}))),Ks=e=>o("div",{className:"flex gap-5xl grow basis-0",children:e.map(((e,t)=>Xs({column:e,i:t})))}),Xs=({column:e,i:t})=>e?o("div",{className:"flex flex-col gap-xl grow basis-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>c("div",{children:[o(S,{title:e,description:t,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),n?o("div",{className:"mt-xs opacity-80",children:o(w,{size:"text-m",font:"font-light",children:n})}):null,o("div",{className:h({"mt-xl":Boolean(l?.text)}),children:Le([l])})]},String(a))))},`col-${String(t)}`):null,Ys=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,Gs=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),Qs=1e9,Js={sum:{min:1e4,max:Qs},period:3},Zs=ht((({className:e,filtrationSchema:t={},resetButton:n,sumInput:l,periodInput:a,...i})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=Ii(Js,{block:i.block,page:i.options?.page,normalize:e=>({...e,period:eo(e)})}),u=s.map((([,e])=>e?.paramsSource?.rateRows)),p=to(u);return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[o(vi,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(us,{label:l?.title,min:500,max:Qs,...d("sum",{parse:e=>({min:Number(e),max:Qs}),format:({min:e})=>String(e)})}),o(pl,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(xi,{blocksToRender:r,...i})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),eo=e=>st((e?.paramsSource?.rateRows||[]).filter(Ys).flatMap((e=>Gs(e.minMonths,e.maxMonths)))),to=e=>st(e.flatMap((e=>e||[])).filter(Ys).flatMap((e=>Gs(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],no=[{key:"10"},{key:"50"},{key:"100"}],lo=({itemCount:e,onItemCountChange:t})=>{const n=i((({key:e})=>t(Number(e))),[]);return c("div",{className:"mt-2 @lg:mt-0 items-center gap-s hidden @lg:flex",children:[o("span",{children:"Показать по"}),o(gn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:no,iconVersion:"black"})]})},ao="py-m @lg:px-lg px-m rounded-md cursor-pointer text-center min-w-10 @lg:min-w-0 hover:bg-primary-hover hover:text-white",io=(e,t)=>{const{currentPage:n,onPageChange:l,totalPages:a}=e,i=t+1;return i===n?o("div",{"aria-current":"true",className:"py-m @lg:px-lg px-m bg-primary-main text-center min-w-10 @lg:min-w-0 text-white rounded-md",children:i},String(t)):1!==i&&i!==a&&((e,t,n)=>e<t&&e>=t-1||e<=t+1&&e>t||((e,t,n)=>t<=2&&e<=t+2||t>=n-1&&e>=n-3)(e,t,n))(i,n,a)?o("div",{onClick:()=>l(i),className:ao,"aria-label":`Страница ${i}`,children:i},String(t)):null},ro={width:"24",height:"24"},so=({currentPage:e,onPageChange:t,totalPages:n})=>{const l=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),a=i((()=>{e>1&&t(e-1)}),[e]),s=i((()=>{e<n&&t(e+1)}),[e,n]),d=i((()=>t(1)),[]),m=i((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(H,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:oo(1===e),...ro})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:ao,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,l.map(io),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:ao,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(H,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:oo(e===n),...ro})})]})},oo=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",co=({currentPage:e,onPageChange:t,totalPages:n,itemCount:l,onItemCountChange:a})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(so,{currentPage:e,onPageChange:t,totalPages:n}),l&&a?o(lo,{itemCount:l,onItemCountChange:a}):null]}),mo=d((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a,placeholder:r="Поиск по сайту"})=>{const s=i((e=>{l&&l(e.target?.value||"")}),[l]);return c("div",{className:h("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(ne,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:h("h-14 w-full px-10 text-l text-black box-border rounded-md",rn),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:a})]})})),ho=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(mo,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Mn,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Mn,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период до",minDate:n.startDate,...e("endDate")}),o("div",{className:"col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto",children:o(aa,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),uo=({title:e,timestamp:t,publicId:n})=>{const l=he(),{href:a}=l({href:`/api/v1/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[null,c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(Re,{size:"text-m","font-weight":"font-light",children:xt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:a,download:!0,"aria-label":"Скачать",children:e})]})]},n)},po="/api/v1/depository",go={startDate:void 0,endDate:void 0,query:""},xo=ht((({className:e,...t})=>{const[n,a]=l(0),[r,s]=l(10),[d,{field:m,reset:u}]=$t(go),{totalPages:p=0,items:x=[]}=(({size:e,page:t,query:n,startDate:l,endDate:a})=>{const i=l?xt(l,!0):"",r=a?xt(a,!0):"",s=new URLSearchParams(po);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",i),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=nl(po+o,rt);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),f=i((e=>a(e-1)),[]),b=i((e=>{r!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:h(e,"container p-6xl"),...t,children:[o(ho,{filtrationState:d,field:m,onClearFilter:u}),c("div",{className:"flex flex-col",children:[c("div",{className:"grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b",children:[o("div",{className:"col-span-4 @lg:col-span-2 hidden @lg:block",children:o(Re,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(Re,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),x.length?x.map((e=>o(uo,{...e},String(e.publicId)))):o(Ba,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(co,{currentPage:n+1,onPageChange:f,totalPages:p,itemCount:r,onItemCountChange:b})]})]})})),fo=e=>"Image"===e?.contentType&&e?.image?o(ne,{image:e.image}):"Code"===e?.contentType&&e.code?o("div",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:e.code}):null,bo=d((({className:e="",title:t,description:n,error:l,button:a,...i})=>c(g,{className:h("flex flex-col justify-center items-center",e),defaultPadding:h("p-6xl"),version:"transparent",...i,children:[o("div",{className:"flex justify-center",children:fo(l)}),o(S,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(be,{version:a?.version,text:a?.text,...a}):null]}))),yo="location";function vo(e="Москва"){const[t,n]=((e,t,n)=>{const[r,s]=l(n||null);return a((()=>e.subscribe(t,(e=>s(e)))),[e,t]),[r,i((n=>e.fire(t,n)),[e,t])]})(ce,"location",wo()??{name:e}),r=i((e=>{ko(e),n(e)}),[]),{data:s}=nl(No()?null:"/api/v1/region",rt);return a((()=>{s&&!No()&&n(s)}),[s]),[t??{name:e},r]}const No=()=>Boolean(globalThis.localStorage?.getItem(yo)),wo=()=>{try{const e=globalThis.localStorage?.getItem(yo);return e&&JSON.parse(e)}catch(e){return null}},ko=e=>{try{globalThis.localStorage?.setItem(yo,JSON.stringify(e))}catch(e){}};var So;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(So||(So={}));const Co=new Intl.NumberFormat("ru",{style:"currency",currency:So.RUB}),To=e=>e?Co.format(e):"",Io="text-m font-light text-secondary-text ",Bo=`${Io} text-left`,Po=`${Io} pl-5xl text-center`,Mo=`${Io} pl-5xl text-right`,Ro={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Vo=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:h("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:Bo,children:o(Re,{size:"text-m",children:"Валюта"})}),o("th",{className:Po,children:o(Re,{size:"text-m",children:"Купить"})}),o("th",{className:Mo,children:o(Re,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(zo)})]}))),zo=e=>{const t=e?.currency?.currency;return c("tr",{className:"pb-2xs text-h6",children:[o("td",{className:"pt-m m-auto flex text-left",children:c("div",{className:"flex items-center gap-xs",children:[t?o(ne,{image:{icon:Ro[t]},width:"24",height:"24"}):null,o(Re,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(Re,{size:"text-h6",children:To(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(Re,{size:"text-h6",children:To(e?.buyExchangeRate)})})]},t)},Do={icon:"GpsIcon"},Ao=d((({className:e="",address:t})=>c("div",{className:h("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(Di,{...Do,iconBgVersion:"primary",className:"shrink-0"}),c("div",{className:"space-y-2xs whitespace-pre-wrap",children:[t?o(w,{size:"text-l",color:"text-primary-main",children:t}):null,o(w,{size:"text-m",color:"text-secondary-text",children:"Курс указан для заданного офиса"})]})]}))),$o=(e,t,n)=>{const l=Number(_o(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},_o=e=>e.replace(/[^\d.,]/g,"").replace(",","."),jo=e=>Pt([[e=>e.value!==So.RUB&&e.oppositeValue!==So.RUB,()=>e.handleConvert(e.value,So.RUB)],[e=>e.value===So.RUB&&e.oppositeValue===So.RUB,()=>e.handleConvert(e.value,So.USD)],[e=>e.value===So.RUB&&e.oppositeValue===So.RUB,()=>e.handleConvert(e.value,So.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function Lo(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:i,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:l,text:l};return c("div",{className:"relative flex",children:[o(sn,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:a,onChange:i}),s.length?o(gn,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const Oo=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||So.RUB,selectBuy:n?.[0]?.currency?.currency||So.USD}),d=i((e=>s((t=>({...t,...e})))),[]);return c("div",{className:`flex flex-col gap-m pt-2xl ${e}`,children:[t&&n?c("div",{className:"grid gap-m",children:[Lo({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:Eo(r,d,n),value:r.inputSell,setValue:e=>Uo(d,n)(e,r.selectSell,r.selectBuy)}),Lo({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Fo(r,d,t),value:r.inputBuy,setValue:e=>Wo(d,t)(e,r.selectBuy,r.selectSell)})]}):null,a?.text?o(be,{text:a.text,version:a?.version,...a}):null]})})),Eo=(e,t,n)=>l=>{t({selectSell:l}),jo({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{Uo(t,n)(e.inputSell,l,a)}})},Fo=(e,t,n)=>l=>{t({selectBuy:l}),jo({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>Wo(t,n)(e.inputBuy,l,a)})},Uo=(e,t)=>(n,l,a)=>{e({inputSell:_o(n),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;i&&e({inputBuy:String($o(n,i,l===So.RUB)||"")})},Wo=(e,t)=>(n,l,a)=>{e({inputBuy:_o(n),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;i&&e({inputSell:String($o(n,i,l===So.RUB)||"")})};const Ho=d((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const[a]=vo(),i=function(e){const t=e?.code||"000",{data:n}=nl(`/api/v1/exchangerates?regionCode=${t}`,rt);return n||{}}(a),r=qo(i?.exchangeRate?.currencies),s=r.filter((e=>e.buyExchangeRate));s.unshift({currency:{currency:So.RUB}});const d=r.filter((e=>e.saleExchangeRate));return d.push({currency:{currency:So.RUB}}),o(g,{className:h("box-border min-h-80",e),...l,children:o(Ce,{className:"h-full",title:o(N,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:c("div",{className:"flex w-full gap-6xl flex-wrap @lg:flex-nowrap",children:[c("div",{className:"w-full @2xl:w-auto @5xl:w-1/2",children:[r?o(Vo,{className:"mb-xl",exchangeCurrencyItems:r}):null,o(Ao,{address:i?.address})]}),o(Oo,{className:"grow w-1/2",currencyRatesBuy:s,currencyRatesSell:d,button:n})]})})})})),qo=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],Ko=d((({className:e="",items:t})=>{const n=he();return o("ul",{className:h("flex flex-col gap-s w-full",e),children:t?.map(Xo(n))})})),Xo=e=>({dataFooter:t,...n},l)=>{const{text:a,href:i,target:r,onClick:s}=e(n);return a?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:i,target:r||"_self",onClick:s,...ue(t),children:a||null})},String(l)):null},Yo=e=>t=>!t.displayArea||e.includes(t.displayArea.toLowerCase()),Go=["all","footer"],Qo=d((({className:e,navigationItems:t})=>{const n=he();return o("div",{role:"menu",className:h("w-full flex items-start justify-between flex-col md:flex-row gap-y-m lg:order-2",e),children:t?.filter(Yo(Go)).map(n).map(Jo)})})),Jo=(e,t)=>{const{text:n,items:l=[],href:a,target:i="_self",onClick:r,dataFooter:s}=e,d=l.filter(Yo(Go));return c("div",{role:"menuitem",className:"flex flex-col gap-s w-full @md:w-1/4",children:[o("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i,onClick:r,...ue(s),children:n}),d?o(Ko,{items:d}):null]},String(t))},Zo=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:h("space-y-m",e),children:t.map(ec)}):null)),ec=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(Re,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(tc)})]},String(t)),tc=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:nc(e.type,e.text)}),o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),nc=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${lc(t)}`,children:o(Re,{size:"text-h6",children:t})});case"email":return o("a",{className:"no-underline",href:`mailto:${t}`,children:o(w,{size:"text-xl",font:"font-light",color:"text-primary-text",children:t})});default:return o("span",{children:t})}},lc=e=>e.replaceAll(/\D/g,""),ac=d((({className:e="",index:t,text:n,...l})=>{const a=he(),{href:i,target:r,onClick:s}=a(l);return o("a",{className:h("text-secondary-text",e),href:i,target:r,onClick:s,children:n||`Документ ${t}`})})),ic=d((({className:e="",title:t,links:n})=>o("div",{className:e,children:n?.length?c("div",{className:"flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider",children:[o("div",{className:"lg:hidden",children:o(Re,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(ac,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),rc="w-full lg:w-52",sc={width:"118",height:"24"},oc={"bg-white":"color",transparent:"white"},cc={"bg-white":"text-primary-main",transparent:"text-white"},dc=(e,t,n)=>o(ne,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:oc[e]},className:cc[e],width:n?.width,height:n?.height}),mc={"bg-white":"text-primary-text",transparent:"text-white"},hc=d((({className:e,href:t="/",logo:n,children:l,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0,data:s})=>c("a",{className:h("inline-flex items-center font-sans no-underline",e),href:n?.href??t,target:a?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...ue(s),children:[dc(i,n?.image,sc),r?l??o("div",{className:"ml-s",children:o(Re,{font:"font-medium",color:mc[i],size:"",children:n?.title??"Россельхозбанк"})}):null]})));function uc(e,t,n=300){a((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}const pc=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=Array.from({length:e.length}),a=Array.from({length:t.length});let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-n),o=Math.min(r+n,t.length-1);for(let n=s;n<=o;n++)l[r]||a[n]||e[r]!==t[n]||(i++,l[r]=!0,a[n]=!0)}return{m:i,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const i=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!n[i])continue;let s=r;for(;s<t.length;s++)if(l[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),r=(n/e.length+n/t.length+(n-i/2)/n)/3,s=r>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return r+s*(1-r)};const gc=(e,t)=>(n,l)=>{for(const[a,i]of l)n.set(a,e(n.get(a)||t,i));return n},xc=(e=[])=>e.reduce(((e,t)=>e+t),0),fc=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),bc=e=>t=>e.map((([e,n])=>[pc(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>vc(t,e))).reduce(gc(Math.max,0),new Map),yc=e=>t=>{return ki(t,t.map((({title:e})=>e)).map((e=>t=>{const n=fc(t||"");return n.length?xc(e.map((e=>Ua(n.map(pc(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},vc=(e,t)=>new Map(e.map((e=>[e,t]))),Nc=({basePathList:e,initialQuery:t=""})=>{const[n,i]=l(t||"");a((()=>{null!=t&&i(t)}),[t]);const{data:r}=nl(e?.length?e:null,wc),[s,o]=l(null);return uc((()=>{r&&o(r.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=fc(e);if(!a.length)return[];const i=Object.entries(l),r=[...a.map(bc(i)).reduce(gc(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return yc(a)(r)})(n)))}),[r,n]),[s,{value:n,onChange:i}]},wc=async(...e)=>(await Promise.allSettled(e.map((e=>it(j(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),kc=d((({initialQuery:e,navigationItems:t})=>{const n=r((()=>t?.map((e=>e.href||"/"))),[t]),[l,a]=Nc({basePathList:n,initialQuery:e}),i=r((()=>Sc(t)(l)),[t,l]);return o(ra,{head:o(mo,{autoFocus:!0,...a}),children:o(Qo,{navigationItems:i})})})),Sc=e=>t=>e?.length&&t?.length?ki(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:j("/",t)})))}))):[],Cc=(e={})=>{const{open:t,close:n}=de();return{open:(n={},l={})=>t(o(kc,{...e,...n}),l),close:n}},Tc=d((({className:e,search:t,...n})=>{const[a,r]=l(""),s=i((()=>r("")),[]),d=Cc(n),m=i((e=>{r(e),Ic(e)&&d.open({initialQuery:e},{onClose:s})}),[s,d]);return c("div",{className:h("relative",e),role:"search",children:[o(mo,{value:a,placeholder:t?.placeholder,onChange:m}),o(ia,{className:"absolute top-0 right-0 sm:hidden",onClose:s})]})})),Ic=e=>e&&e.length>=3,Bc=(e,t)=>{const{logo:n}=e??{},{dataHeader:l,dataFooter:a,...i}=n??{};return c("div",{className:"flex items-stretch gap-3xl",children:[o(hc,{className:rc,logo:i,data:a,showTitle:!1}),o(Tc,{className:"grow",navigationItems:t,...e})]})},Pc=d((({className:e="",index:t,...n})=>{const l=he(),{href:a,target:i,text:r,onClick:s}=l(n);return o("a",{className:h("text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px]",e),href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),Mc=d((({className:e="",links:t,license:n})=>c("div",{className:h("@container space-y-lg",e),children:[n?o("div",{children:o(Re,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} ${n}`})}):null,t?.length?o("div",{className:"flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs",children:t.map(((e,t)=>o(Pc,{index:t,...e},String(t))))}):null]}))),Rc=ht((({className:e,footer:t,...n})=>{const{navigationItems:l}=n.options?.page?.navigation??{},a=n.options?.page?.common??{},{documents:i,relatedEnterprises:r,contacts:s,mediaLinks:d=[],horizontalNavigationTitle:m,feedbackButton:u,license:p,otherLinks:x=[]}=t??{};return c(g,{tag:"footer",className:h("grid gap-y-xl p-4xl pb-24 lg:p-xl",e),...n,children:[Bc(a,l),c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(Qo,{navigationItems:l}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:h(rc,"flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(Zo,{items:s}),u?o(be,{className:"w-full",version:"primary",...u}):null,d.map(((e,t)=>o(js,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),x.map(((e,t)=>o(be,{className:"!text-left text-s font-light",version:"link",...e,children:e?.text},String(t))))]})]}),o(ic,{title:m,links:r}),o(Mc,{links:i,license:p})]})})),Vc=d((({className:e="",title:t,description:n,calendar:l,...a})=>c(g,{className:h("space-y-m",e),defaultPadding:"p-6xl",...a,children:[o(S,{title:t,description:n,headlineVersion:"M",isEmbedded:!0}),l?zc(l):null]}))),zc=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return c("div",{className:"w-full flex flex-col justify-center gap-s",children:[o("div",{className:"flex w-full text-h6 text-center",children:n.map((e=>Dc(e,t)))}),o("div",{className:"flex gap-s w-full",children:n.map(((e,t)=>c("div",{className:"border-r border-main-divider last:border-r-0 space-y-s",style:{flexBasis:e.flexBasis},children:[o("div",{className:"flex gap-s",children:Ac(e)}),c("div",{className:"text-s",children:[o(Re,{size:"text-s",font:"font-light",color:"text-primary-text",children:e.text})," ",o(Re,{size:"text-s",font:"font-light",color:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Dc=(e,t)=>e.month?.map(((e,n)=>o("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),Ac=e=>e.month?.map((e=>e.image?.src?o("div",{className:"h-52 border-r pr-s border-main-divider last:border-r-0",children:o(ne,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),$c=ht((({className:e,title:t,button:n,regionSource:a,data:i,...r})=>{const[s,d]=l({key:""}),m=a?.regions??[],u=oe({className:"text-white",version:n?.version||"primary"}),p=m?.find((e=>e.name===s.key))?.href,x=n?.text?n.text:"Перейти";return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container max-w-[978px] space-y-m",children:[t?o(N,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Dn,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,p?o("div",{className:"text-center",children:o(be,{href:p,target:"_blank",className:h("p-m w-full @xl:w-auto",u),data:As(i,s?.key),children:x})}):null]})})}));function _c(e=[]){const t=R(),n=Array.from(e.entries()).filter((([,e])=>jc(t)(e)));return n.find((([,e])=>jc(t,!0)(e)))??n[n.length-1]??[]}const jc=(e,t=!1)=>({href:n})=>{if(!n)return!1;const l=_(Lc(e)(n));return t?l===_(n):l.startsWith(_(n))},Lc=e=>t=>{const n=G(Y.SITE_URL);return D(t)?e.href:j(n,e.pathname)},Oc=d((({className:e="",items:t,activeItem:n,ariaLabel:l="Меню"})=>{const[r,{setFalse:d,toggle:m}]=ln(!1),u=mn(d),p=s(null),g=i((({isOpened:e,buttonRef:t,menuRef:n})=>{if(e&&t.current&&n.current){const e=n.current.getBoundingClientRect(),l=t.current.getBoundingClientRect(),a=globalThis.innerWidth-e.width;e.right>=globalThis.innerWidth?n.current.style.left=`${a}px`:l.left>e.left&&(a>l.left?n.current.style.left="":n.current.style.left=`${a}px`)}}),[r]);return dn(globalThis,"resize",(()=>g({isOpened:r,buttonRef:u,menuRef:p}))),a((()=>{g({isOpened:r,buttonRef:u,menuRef:p})}),[r]),c("div",{className:h(r?"rounded-md shadow-blue-gray":"",e),ref:u,role:"navigation",children:[o("button",{type:"button",className:"group/btn flex justify-between items-center h-6","aria-label":l,onClick:m,role:"button","aria-labelledby":"labeldiv",children:Array(3).fill(null).map(((e,t)=>o("div",{className:"w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),o("div",{ref:p,className:h("absolute flex flex-col rounded-md bg-white p-xl pb-xs w-56 z-40",{hidden:!r}),"aria-hidden":!r,children:Fc(t,n)})]})})),Ec=d((({isActive:e,...t})=>{const n=he(),{text:l,href:a,target:i,onClick:r}=n(t);return o("a",{className:h("text-l font-light pb-m hover:text-primary-main",{"text-primary-main":e}),href:a,target:i,onClick:r,role:"link",...ue(t?.data),children:l})})),Fc=(e,t)=>e?.map(((e,n)=>o(Ec,{isActive:e===t,...e},e?.text??String(n)))),Uc={default:"w-6 h-6",large:"w-12 h-12"},Wc=d((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:i="Меню второго уровня",image:r,data:s,onClick:c,version:d})=>o("button",{className:h("group/btn border-0 flex shrink-0 items-center",l?"p-s rounded-full":"p-0 bg-inherit","transparent"===d?"backdrop-opacity-30 bg-white/30":l&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Uc[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:c,...ue(s),children:o(ne,{image:r,className:h("h-full",{"bg-main-divider/20 rounded-full":t}),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Hc=e=>globalThis[e],qc=(e,t)=>{const n=document.getElementById(t);if(n){const t=Hc(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(Hc(e))}))}))}return new Promise(((n,l)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{n(Hc(e))})),a.addEventListener("error",(e=>{l(e)})),document.head.appendChild(a)}))};const Kc="chatbot",Xc="text-page__btn-chat",Yc={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Gc=d((({chat:e="personal",iconVersion:t,className:n,ariaLabel:l="Чат",version:i})=>{const r=(e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]);const t=Yc[e??""];return n=>{if(t)if("personal"!==e)qc(Kc,t);else{const e=n.target;e?.classList.contains(Xc)||e?.classList.add(Xc),document.getElementById("webchat-js-container:webchat_rshb")||qc(Kc,t)}}})(e);return o(Wc,{className:n,image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:l,onClick:r,buttonSize:"large",isGrayBg:!0,version:i})})),Qc=d((({className:e="",active:t,dataItemName:n,children:l,data:a,...i})=>{const r=he(),{href:s,target:d,text:m,onClick:u}=r(i);return c("a",{className:h("relative inline-block bg-transparent text-center no-underline",e),href:s,target:d,"data-item-name":n,onClick:u,...ue(a),children:[o("span",{className:Jc(t),children:m||l}),t?o("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-white"}):null]})})),Jc=(e=!1)=>h("font-sans text-l lg:font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Zc=d((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const r=Ra(i((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:r,className:l,role:"menuitem",children:o(Qc,{...a,children:n})})})),ed={default:"bg-main-divider text-primary-main rounded hover:text-primary-main",transparent:"backdrop-opacity-30 bg-white/30 hover:text-primary-hover text-white"},td=d((({version:e,text:t,mobileText:n,...l})=>{const a=we()?n:t;return a?o(be,{className:h("py-s px-lg font-light whitespace-nowrap",ed["transparent"===e?"transparent":"default"]),...l,children:a}):null})),nd=d((({subItems:e=[],version:t,internetBankButton:n,dropdownMenuAriaLabel:a,chatBotAriaLabel:i})=>{const d="transparent"===t?"white":"black",[,m]=_c(e),[h,u]=l(e.length),p=e.slice(h),g=s(null),x={rootRef:g},f=r((()=>e.map(((e,t)=>e=>{u(e?ld(t):ad(t))}))),[e]);return c("nav",{className:"mt-s flex gap-s items-center justify-between",children:[o("div",{ref:g,className:"overflow-hidden whitespace-nowrap pb-s mt-xs space-x-lg",role:"menu",children:e.map(((e,t)=>o(Zc,{className:h-1<t?"invisible":"",active:e===m,observerOptions:x,onVisibilityChange:f[t],data:e.dataHeader,...e},String(t))))}),p.length?o(Oc,{items:p,activeItem:m,ariaLabel:a}):null,z.CHAT_BOT?o(Gc,{version:t,iconVersion:d,chat:z.CHAT_BOT,ariaLabel:i}):null,o(td,{version:t,...n})]})})),ld=e=>t=>Math.max(t,e+1),ad=e=>t=>Math.min(t,e),id=e=>e?.length?c("div",{className:"sm:border-t sm:border-main-divider mt-2xs pt-2xs",children:[o("div",{className:"mb-m",children:o(Re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),o("div",{className:"flex flex-col sm:flex-row gap-5xl",children:e.map(((e,t)=>o(rd,{...e},String(t))))})]}):null,rd=d((({icon:e,...t})=>{const n=he(),{text:l,target:a,href:i,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(ne,{image:e}):null,l?o("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:o(Re,{size:"text-l",font:"font-light",color:"text-primary-text",children:l})}):null]})})),sd=(e,t)=>n=>n.name?o($s,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:As(e,n.name),children:o(Re,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,od=d((({className:e,searchTerm:t,onSearch:n})=>c("form",{className:`font-sans relative ${e}`,children:[o("div",{className:"absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none",children:t?null:o("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),o("input",{id:"search-bar-input",className:h(rn,"h-12 pl-m w-full peer text-l text-black rounded-md box-border"),value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),cd=d((({foreignOffices:e,branches:t})=>{const[n,a]=vo(t?.default),r=he(),{href:s}=r({href:`/branches/${n.slug}`}),[d,m]=l(""),h=md(kl()).sort(((e,t)=>e.name.localeCompare(t.name))),u=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(h,dd),{close:p}=de(),g=i((e=>{a(e),p()}),[]);return c(ra,{className:"pb-20",head:c("div",{children:[o(Re,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),n?o("div",{className:"mb-s",children:c(w,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o($s,{href:s,className:"inline mx-2xs text-primary-main",children:n.name})]})}):null,o(od,{onSearch:m,searchTerm:d})]}),children:[d&&d.length>=3?o("div",{children:h.filter((({name:e})=>e&&pc(e.toLowerCase())(d.toLowerCase())>=.8)).map(sd(t?.dataSelect,g))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(u.entries()).map((x=g,f=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(Re,{size:"text-h6",children:e})}),t.map(sd(f,x))]},e)))}),id(e)]});var x,f})),dd=e=>e.name?.charAt(0)||"",md=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),hd=d((({className:e="",active:t,flat:n,children:l,data:a,...i})=>{const r=he(),{href:s,target:c,text:d,onClick:m}=r(i);return o("a",{className:h(ud(t,n),e),href:s,target:c,onClick:m,rel:"noopener noreferrer","aria-label":`Ссылка на ${d}`,...ue(a),children:o("span",{suppressHydrationWarning:!0,className:pd(t,n),children:d||l})})})),ud=(e=!1,t=!1)=>h("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",{"px-m py-xs":!t}),pd=(e=!1,t=!1)=>h("font-sans text-s font-light",e?"text-primary-main":h(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),gd=d((({className:e,version:t,...n})=>{const l="transparent"===t?"white":"black",[a]=vo(n?.branches?.default),r=Cc(n),s=(e=>{const{open:t,close:n}=de();return{open:(n={})=>t(o(cd,{...e}),n),close:n}})(n),d=i((()=>r.open()),[r]),m=i((()=>s.open()),[s]);return c("div",{className:h("flex items-center ml-5 md:max-w-[300px] xl:max-w-full gap-lg",e),role:"navigation",children:[n?.branches?.visible?o(hd,{className:"whitespace-nowrap text-ellipsis overflow-hidden",flat:!0,href:"#",text:a?.name,data:As(n?.branches?.dataClick,a?.name??""),onClick:m}):null,n?.officesAtms?.href?o(hd,{className:"whitespace-nowrap",flat:!0,...n.officesAtms}):null,o(Wc,{image:{icon:"LoupeIcon",iconVersion:l},ariaLabel:n?.search?.ariaLabel??"Поиск",onClick:d,data:n?.search?.data})]})})),xd=d((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const r=Ra(i((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return o("span",{ref:r,className:l,role:"menuitem",children:o(hd,{...a,children:n})})})),fd=d((({navigationItems:e=[],activeTopItem:t,dropdownMenuAriaLabel:n,version:a,headerData:i,search:d,bgColor:m,logo:h})=>{const[u,p]=l(e.length),g=e.slice(u),x=s(null),f={rootRef:x},b=r((()=>e.map(((e,t)=>e=>{p(e?bd(t):yd(t))}))),[e]),{dataFooter:y,dataHeader:v,...N}=h??{};return c("div",{className:"flex items-center justify-between",children:[o(hc,{className:"mr-3xl",bgColor:m,logo:N,data:v,showTitle:!1}),o("div",{ref:x,className:"overflow-hidden min-w-[160px] pb-xs mt-xs",role:"menu",children:e.map(((e,n)=>o(xd,{className:u-1<n?"invisible":"",active:e===t,observerOptions:f,onVisibilityChange:b[n],data:e.dataHeader,...e},String(n))))}),g.length?o(Oc,{className:"mx-xs",items:g,activeItem:t,ariaLabel:n}):null,o(gd,{version:a,className:"ml-auto",search:d,navigationItems:e,...i})]})})),bd=e=>t=>Math.max(t,e+1),yd=e=>t=>Math.min(t,e),vd={"bg-white":"primary",transparent:"transparent"},Nd=["all","header"],wd=ht((({className:e,bgColor:t="bg-white",logo:n={},version:l=vd[t],portal:a,header:i={},...r})=>{const{common:s,navigation:d}=Sd(r?.options?.page),{navigationItems:m}=d,{logo:u={}}=s,[,p]=_c(m),{internetBankButton:x}=a||{},f=n.image?.icon||n.image?.src||n?.title?n:u;return o(g,{tag:"header",className:h("pt-m px-20",p?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:l,...r,children:c("div",{className:"container",children:[o("div",{className:"whitespace-nowrap",children:o(fd,{activeTopItem:p,navigationItems:m?.filter(Yo(Nd)),version:l,headerData:{...i,...d},search:s.search,bgColor:t,logo:f})}),o("div",{className:h("mt-s h-px bg-main-divider",kd(l))}),p?.items?.length&&o(nd,{subItems:p?.items?.filter(Yo(Nd)),version:l,internetBankButton:x})]})})})),kd=e=>"transparent"===e?"opacity-30":"",Sd=e=>({navigation:e?.navigation??{},common:e?.common??{}}),Cd=(e=!1)=>e?{}:{padding:"p-0"},Td={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Id=ht((({className:e="",padding:t="p-0",gap:n="XS",isInnerPadding:l=!0,version:a="transparent",isTheme:i=!1,isCardBorder:r,...s})=>o(g,{className:h("relative","grid grid-cols-12",Td[n],e),padding:t,version:a,isTheme:i,...s,children:M({...s,extraProps:{...Cd(l),className:Pa(r)}})})),{childrenTypes:{exclude:["HorizontalLayout"]}}),Bd=d((e=>{const{className:t,align:n,image:l,...a}=e,i=n?h("flex",Ei[n]):"";return o(g,{className:h(i,t),defaultPadding:"p-0",...a,children:o(ne,{image:l})})})),Pd=(e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[r,s]=l(t),o=i((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=i((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&r<n-a:r<n-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]};function Md({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:i=""}){return n||l?c("div",{children:[n?o(Ja,{className:h("absolute z-40",a[0],i),onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?o(Ja,{className:h("absolute z-40 rotate-180",a[1],i),onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const Rd=d((({className:e="",cards:t=[],button:n})=>{const[a,r]=l(0),s=i((e=>r(e)),[]),d=t.length,[m,h]=Pd({itemCount:d,visibleItemCount:2}),{canDec:u,canInc:p}=h,g=t[m]?.href;return c("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[c("div",{className:"relative overflow-hidden","aria-label":"Страховые программы",children:[d?Vd({activeIndex:m,cards:t,selectedCardIndex:a,onClick:s}):null,Md({...h,btnClass:["left-12","right-12"],className:"top-16"}),u?o("div",{className:"absolute top-0 left-0 h-full w-32 bg-opacity-from-white"}):null,p?o("div",{className:"absolute top-0 right-0 h-full w-32 bg-opacity-to-white"}):null]}),o(be,{className:"w-60 text-center",version:"primary",...n,href:g})]})}));function Vd({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return o("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:o("div",{className:`w-full flex flex-nowrap gap-s pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return c("button",{type:"button",onClick:l,className:"p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?o(ne,{className:"p-lg rounded-full bg-secondary-light",image:e.icon,width:"108",height:"108"}):null,c("div",{className:"flex gap-s",children:[e?.sum?zd("страховая сумма",e.sum):null,e?.fee?zd("страховой взнос",e.fee):null]}),Dd(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function zd(e,t){return c("div",{className:"flex flex-col text-left whitespace-pre",children:[c(Re,{size:"text-h6",children:[Ue(2)(t)," ₽"]}),o("div",{className:"mt-2xs",children:o(Re,{size:"text-l",color:"text-secondary-text",children:e})})]})}function Dd(e){return e?o(ne,{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 Ad=d((({className:e="",title:t,insuranceTabs:n=[],button:a,...r})=>{const[s,d]=l(0),m=i((e=>d(e)),[]);return c(g,{className:h("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?o(N,{className:"text-center",title:t,headingType:"h3"}):null,n?.length>1?o("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return o("button",{type:"button",onClick:l,"aria-label":`Кнопка ${e}`,className:"box-border px-m py-s text-m font-light "+(n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>m(t)})))}):null,o("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:$d({insuranceTabs:n,button:a})})]})})),$d=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>o(Rd,{button:t,cards:e},String(n)))):null};const _d={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},jd={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},Ld=d((e=>{const{className:t="",__html:n,isDotted:l,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),o(g,{className:t,defaultPadding:"p-4xl",...r,children:c("div",{className:"container text-m font-light space-y-4xl",children:[s?.length?c("div",{children:[c("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[bi(o("div",{className:"w-px h-4 bg-gray"}))(s.map(Od)),o("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),o("div",{className:"border-t border-gray -mt-xs mx-3xl"}),o("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(Ud)})]}):null,n?o("div",{className:"max-w-2xl font-light text-base",children:o(Pe,{__html:n,isDotted:l,itemSize:"list-s"})}):null]})})})),Od=(e,t,n)=>{const l=1===t,a=t===n.length-1;return o("div",{className:`${Ed(l,a,e.cells)}`,children:e.cells?.length?o("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-72":""),children:e.cells.reverse().map(Fd)}):null},`column_${t}`)},Ed=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-s",n.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),Fd=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?o("div",{className:`flex-1 flex items-center justify-center relative py-xs ${jd[n]} ${_d[l]} ${"XS"===n?"px-s":"px-5xl"}`,children:o(Re,{align:"text-center",children:e.text})},`cell_${t}`):null},Ud=(e,t)=>e?.title?o("div",{className:"flex-1 max-w-44 text-center px-xs last:pr-4xl last:max-w-52",children:e.title},`title_${t}`):null,Wd=["байт","Кб","Мб","Гб","Тб","Пб"],Hd=d((({icon:e,text:t,href:n,target:l,fileFormat:a,data:i,fileSize:r})=>{const s=r&&a?",":"",d=r??"",m=a?String(a):"";return c("a",{className:"flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",href:n,target:l,...ue(i),children:[e,t?c(Re,{size:"text-l",font:"font-light",children:[t," ",qd(d,m),o(Re,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),qd=(e,t)=>e||t?o("span",{children:", "}):"",Kd=(e,t)=>(n,l)=>{const a=U(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),i="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${Wd[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?Yd(a):n?.fileFormat;return c("div",{role:"listitem",children:[o(Hd,{text:n?.text,target:n?.target,href:a,fileFormat:r,fileSize:i,icon:Xd(t),data:n?.data}),o(Pe,{__html:n?.__html})]},String(l))},Xd=e=>e?o(ne,{className:"min-w-6 min-h-6",image:e,width:"24",height:"24"}):null,Yd=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),l=-1!==t?e.substring(t+1):"";return l.includes("/")?l.replace(n,""):l},Gd=d((({href:e,__html:t,target:n})=>{const{close:l}=de(),a=R(),r=U(a)(e),s=i((()=>{l()}),[]);return c(ra,{className:"my-6xl min-h-fit w-fit mx-auto",children:[t?o(Pe,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(be,{text:"Я согласен",version:"primary",target:n,href:r,onClick:s}),o(aa,{type:"button",version:"secondary",onClick:s,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]})})),Qd=d((({text:e,href:t,target:n,__html:l})=>{if(!e&&!l)return null;const a=(e=>{const{open:t,close:n}=de();return{open:(n={})=>t(o(Gd,{...e}),n),close:n}})({__html:l,href:t,target:n}),r=i((()=>a.open()),[a]);return o("button",{className:"text-primary-main",onClick:r,children:e})})),Jd={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Zd=ht((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=R();return c(g,{className:h("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(S,{title:t,description:n,align:l,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?o("div",{className:h("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Jd[r]),role:"list",children:a.map(em(d,i))}):null]})})),em=(e,t)=>(n,l)=>{const a=n?.docType;return""===a?null:"reportSource"in n&&n?.reportSource?.__html?tm(n,l):Kd(e,t)(n,l)},tm=(e,t)=>{const n={text:e.text,target:e.target,__html:e.reportSource?.__html};return e.reportSource?.__html&&e.text?c("div",{role:"listitem",children:[o(Qd,{...n,href:nm(e)?e?.href:e?.attachment?.src}),o(Pe,{__html:e?.__html})]},String(t)):null},nm=e=>"href"in e,lm=ht((({className:e,padding:t,align:n="text-left",buttons:l=[],description:a,image:i,__html:r,headingType:s,qr:d,additionalDescription:m="",title:u="Мобильное приложение",version:p="primary",...x})=>{const f="secondary"===p?"p-m min-w-32":"min-w-24",b=i?.src?o(ne,{className:"hidden lg:block",image:i}):null;return o(g,{className:h("min-h-80",e),padding:"p-0",version:p,...x,children:c(Ce,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(N,{headingType:s,title:u,className:h("whitespace-pre-wrap",n)}),rightImage:b,buttons:Le(l,{className:"flex-wrap"}),children:[a?o(Re,{size:"text-xl","font-weight":"font-light",children:a}):null,c("div",{className:h("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(Pe,{__html:r,itemSize:"list-m"}):null,o(Re,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:h("flex justify-center bg-white rounded-md @xl:-order-1",f),children:o(ne,{className:"w-fit",image:d})}):null,i?.src?o(ne,{className:"lg:hidden",image:i}):null]})]})})})),am=(e,t)=>e&&"underlined"!==t?"primary":"secondary",im=(e=[],t={})=>e.filter((({content:e={}})=>Ci(t,e))).length,rm=(e,t)=>e===t;const sm=(om=function(...e){return(t,n)=>e.some((e=>e(t,n)))}(rm,((e=rm)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,l)=>e(t,n[l])))))()),(e,t)=>e===t||Boolean(e&&t&&Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every((([e,n])=>om(n,t[e])))));var om;const cm=[],dm={},mm={primary:"bg-white/30",secondary:"bg-main-divider"},hm={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},um=d((({count:e,version:t="secondary"})=>{const n=we(),l=n?"bg-main-divider":mm[t],a=hm[t][n?"mobile":"desktop"];return o("div",{className:h("w-6 h-6 rounded-full flex items-center justify-center",l),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(Re,{size:"text-xs",color:a,children:e})})})),pm=({text:e,description:t,icon:n,isActive:l,type:a})=>{const i=(e=>({btn:"w-96 "+(e?"p-m border-none bg-primary-main text-white":"p-s ease-in duration-300 bg-white"),text:e?"mb-xs text-xl":"mb-2xs text-l text-primary-text",desc:"font-light "+(e?"text-l text-white":"text-m text-secondary-text"),icon:e?"":"text-primary-main",iconVersion:e?"white":"normal",oldText:"text-m text-center",oldDesc:"text-m-light"}))(l);return c("div",{className:h("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[n?o(ne,{className:h("h-6 w-6 min-w-6 min-h-6",i.icon),image:{...n,iconVersion:n?.iconVersion??i.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?i.text:i.oldText,children:e}),o("div",{className:"animated"===a?i.desc:i.oldDesc,children:t})]})]})},gm={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},xm={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},fm={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},bm={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},ym=d((({tag:e="div",item:t={},isActive:n=!1,type:l="default",onClick:a})=>{const i=e,{text:r,description:s,icon:d,count:m,tabName:u,...p}=t;return o(i,{className:h("h-12","block flex-1","cursor-pointer",gm[l],n?bm[l]:fm[l]),role:"tablist","aria-label":"Список табов",onClick:a,...p,children:c("div",{className:h("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?xm[l]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[pm({text:r,description:s,icon:d,isActive:n,type:l}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(um,{count:m,version:am(n,l)})}):null]})})})),vm=d((e=>o(e?.item?.href?Nm:wm,{...e}))),Nm=d((e=>{const t=he(),n=i((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:l,...a}=t({...e.item,onClick:n});return o(ym,{...e,tag:"a",item:a,onClick:l})})),wm=d((({item:e={},onClick:t,...n})=>{const l=i((()=>{t&&t(e)}),[t,e]);return o(ym,{item:e,onClick:l,...n})})),km=(e,t,n)=>(l,a)=>o(vm,{isActive:l===e,onClick:t,type:n,item:l},String(a)),Sm=d((({className:e,tabsType:t="default",items:n=[],activeItem:l,onChange:a})=>o("div",{className:h("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(km(l,a,t))}))),Cm={categories:[],extraOptions:[],propertyType:[],stage:[]},Tm=ht((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:l,...a})=>{const[s,{blocksToRender:d},{field:m,reset:u,update:p}]=Ii(Cm,{block:a.block,page:a.options?.page}),x=i(((e=Cm)=>p(e)),[]),f=(({hotFilters:e=cm,filtrationState:t=dm,blocks:n=cm,onFiltrationStateChange:l})=>{const a=r((()=>Math.max(0,e.findIndex((e=>sm(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:im(n,t.filter),version:am(t===e[a])})))),[e,n,a]),o=i((t=>{l(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[a],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:a.block?.blocks,onFiltrationStateChange:x});return c(g,{className:h("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...a,children:[o(Sm,{...f}),o(vi,{filtrationSchema:n,resetButton:l,field:m,reset:u}),o(xi,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),Im=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Bm=d((({children:e})=>Im?e:null)),Pm=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0})=>o("div",{className:h("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":n}),children:o("div",{className:h("inline-block h-28 w-28","animate-spin rounded-full","border-8 border-solid border-current","border-r-transparent",e),role:"status"})}))),Mm="/icons/MapMarkerClusterIcon.svg",Rm="/icons/MapMarkerClusterYellowIcon.svg";function Vm({yandexMaps:e,map:t,points:n,isLoad:l}){if(l||!n?.length)return;t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),i=zm("offices",e,a);if(n.length&&n.every((e=>"type"in e))){const l=zm("workplaces",e,a),r=Dm(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=Dm(n.filter((e=>"offices"===e.type)),"offices",e);i.add(s),l.add(r),t.geoObjects.add(l),t.geoObjects.add(i)}else{const l=Dm(n,"offices",e);i.add(l),t.geoObjects.add(i)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const zm=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Mm:Rm,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),Dm=(e,t,n)=>e.map((({coords:e,content:l})=>new n.Placemark(e,{balloonContentHeader:l?.header,balloonContentBody:l?.body,balloonContentFooter:l?.footer,hintContent:l?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Mm:Rm,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Am={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},$m={...Am,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},_m=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values($m).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(H,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),jm=()=>function(e,t,n=!0){const[i,r]=l(void 0);return a((()=>{let l=!0;return qc(e,t).then((e=>{l&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(l=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),i}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${z.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1),Lm={...Am,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Om=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(Lm).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(H,{name:n,width:"20",height:"16"})})})),Em=[55.753995,37.614069],Fm=d((({points:e,className:t="",zoom:n=5,isLoad:l})=>{const i=s(null),r=jm();if(a((()=>{i.current?(Vm({yandexMaps:r,map:i.current,points:e,isLoad:l}),i.current.setCenter(Um(e))):r?.ready((()=>{i.current||(i.current=new r.Map("map",{center:Um(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Vm({yandexMaps:r,map:i.current,points:e,isLoad:l})}))}),[r,e,n,l]),!r)return null;const d="z-10";return c("div",{id:"map",className:h("relative","w-full",t),children:[l?o(Pm,{}):null,c("div",{className:h("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",d),children:[o(Om,{yandexMaps:i}),o(Om,{yandexMaps:i,direction:"out"})]}),_m(i,r,h("right-2 top-80",d))]})})),Um=e=>{const t=[Hm(Wm(e,0)),Hm(Wm(e,1))];return t.every((e=>e))?t:Em},Wm=(e,t)=>e.map((e=>e.coords?.[t])),Hm=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,qm=({__html:e,list:t,richVersion:n})=>e||t?.length?c("div",{className:"mb-2xl border-b sm:border border-main-divider sm:rounded-md",children:[e?o("div",{className:"mb-2xl",children:o(Pe,{__html:e,richVersion:n})}):null,t?.length?o("div",{className:"flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl",children:t.map(((e,t)=>c("div",{className:"flex gap-xs items-center",children:[e?.image?o(ne,{image:e.image}):null,e?.text?o(Re,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,Km={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Xm="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",Ym=(e,{field:t,reset:n},l)=>{const a=l?5:6,i=(e||[]).map((e=>o(Qt,{text:Km[e],...t(e)},e))),[r,s]=a>0?[i.slice(0,a),i.slice(a)]:[i,[]];return o("div",{children:e?.length?o("div",{children:o(mi,{renderFoldableSection:({isUnfolded:e})=>c("div",{children:[o("div",{className:Xm,children:r}),o(hi,{className:Xm,isUnfolded:e,children:s})]}),renderFoldButton:Gm(n,l)})}):null})},Gm=(e,t)=>({isUnfolded:n,onToggle:l})=>c("div",{className:"flex space-x-lg",children:[t?o(be,{version:"transparent",className:"text-secondary-text [&>*]:p-0",appendRight:o(H,{name:["ArrowDownIcon","ArrowUpIcon"][Number(n)],width:"16",height:"16"}),text:["Больше фильтров","Меньше фильтров"][Number(n)],onClick:l}):null,o(be,{version:"transparent",className:"text-secondary-text [&>*]:p-0",onClick:e,children:Qm()})]}),Qm=()=>c("div",{className:"flex items-center",children:["Очистить фильтр",o(H,{name:"CloseIcon",width:"16",height:"16",className:"ml-2xs"})]}),Jm=()=>{},Zm=()=>[],eh=e=>"all"===e?"block":"hidden",th=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:a=[],renderCard:i=Jm,renderRemoteWorkplaceCard:s=Jm,filterItems:d=Zm,getBalloon:m=Jm,getBalloonRemoteWorkplaces:u=Jm,initFilterState:p={},descriptionData:g,title:x})=>{const f=x?.includes("Офис"),[b,{field:y,reset:v}]=$t(p),[N,w,k,S]=r((()=>{const e=d(t,b),n=d(a,b),l=[...e.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:m(e)}))),...n.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:u({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[e,l,n,e.length+n?.length]}),[t,a,b]),[C,T]=l("all");return c("div",{className:h("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[nh(x,S),g?qm(g):null,f&&lh(t,C,T),o("div",{className:h("pb-3xl",eh(C)),children:Ym(Object.keys(p),{field:y,reset:v},f)})]}),o("div",{className:"h-[600px]",children:o(Bm,{children:o(Fm,{points:w,isLoad:n,className:"h-full"})})})]}),c(Bm,{children:[N.map(i),k.map(s)]})]})})),nh=(e,t)=>o("div",{className:"flex flex-col sm:flex-row gap-xs mb-2xl",children:c(N,{headingType:"h3",children:[o("span",{suppressHydrationWarning:!0,children:e}),t?o(Re,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),lh=(e,t,n)=>{const l=am("all"===t),a=am("business"===t),i=(e,t,l)=>(e.currentTarget===e.target&&"business"===t&&l.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription)),n(t),l);return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(aa,{"data-id":"all",onClick:t=>i(t,"all",e),version:l,children:"Для физических лиц"}),o(aa,{"data-id":"business",onClick:t=>i(t,"business",e),version:a,children:"Для юридических лиц"})]})},ah={yellow:{border:"border-yellow-light",text:"text-yellow"},green:{border:"border-green-more-light",text:"text-green-dark"},gray:{border:"border-gray",text:"text-secondary-text"},red:{border:"border-error/30",text:"text-error"}},ih=d((({className:e,children:t,color:n="gray"})=>c("div",{className:h("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",ah[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(ne,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(Re,{size:"text-m",color:ah[n].text,children:t})]}))),rh=d((({value:e,subText:t,children:n,isPhone:l,...a})=>{const i=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[i.length,n,t].every((e=>!e))?null:sh({textItems:i,subText:t,children:n,isPhone:l,...a})})),sh=({label:e,labelSize:t="text-m",textItems:n,subColor:l,subText:a,className:i,children:r,isPhone:s=!1})=>c("div",{className:h("flex gap-2xs flex-col h-full max-w-[300px]",i),children:[e?o(Re,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||oh(n,s),a?o(Re,{color:l,size:"text-m",children:a}):null]}),oh=(e,t)=>e.filter(Boolean).map(((e,n)=>o(Re,{size:"text-l",children:t?o("a",{href:`tel:${ch(e)}`,children:e.trim()}):e.trim()},String(n)))),ch=e=>e.replace(/\D/g,""),dh=d((({className:e,children:t})=>o("div",{className:h("flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl",e),children:t}))),mh=["ArrowDownIcon","ArrowUpIcon"],hh=["Подробнее","Скрыть"],uh=({isUnfolded:e,onToggle:t})=>c("button",{className:"w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider",onClick:t,type:"button",children:[o("div",{className:"pr-m",children:hh[Number(e)]}),o(H,{className:"text-primary-text",name:mh[Number(e)],width:"16",height:"16"})]}),ph=({location:e,address:t,billAcceptorType:n,terminalType:l,billAcceptorEnable:a,atmCode:i="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:fh(l)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:i}];return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(Re,{size:"text-h4",children:fh(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(ih,{color:"green",children:fh(s)})})]}),o("div",{className:"hidden sm:block",children:o(dh,{className:"flex-wrap",children:m?.map(xh)})}),o(mi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(hi,{isUnfolded:e,children:o(dh,{className:"flex-wrap",children:m?.map(xh)})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>uh({isUnfolded:e,onToggle:t})})]},String(d))},gh=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${fh(t)} №${n}`,body:e.toUpperCase()}),xh=(e,t)=>o(rh,{...e},String(t)),fh=e=>e?`${e?.charAt(0)?.toUpperCase()}${e?.slice(1)}`:"",bh=[];const yh=async e=>{const t=await it(e,{method:"GET"});return Array.isArray(t)?t:bh},vh={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},Nh={terminalTypeAtms:e=>"банкомат"===e.terminalType?.toLowerCase(),terminalTypeTerm:e=>"терминал"===e.terminalType?.toLowerCase(),workAllTime:e=>"круглосуточно"===e.workTime?.toLowerCase(),billAcceptorEnable:e=>Boolean(e.billAcceptorEnable),locationDisabledPeople:e=>Boolean(e.locationDisabledPeople),designDisabledPeople:e=>Boolean(e.designDisabledPeople)},wh=d((({descriptionData:e,className:t})=>{const[n]=vo(),l=n?.code??"000",{data:a,isLoad:i}=function(e){const{data:t,error:n}=nl(`/api/v1/atms?regionCode=${e}`,yh);return{data:t||bh,isLoad:!t&&!n}}(l);return o(th,{className:t,filterItems:kh,data:a,isLoad:i,initFilterState:vh,renderCard:ph,getBalloon:gh,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),kh=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),l=n.filter((e=>e.startsWith("terminalType"))),a=n.filter((e=>!l.includes(e)));return e.filter((e=>{const t=a.every((t=>Nh[t](e))),n=!l.length||l.some((t=>Nh[t](e)));return t&&n}))},Sh=e=>{const t=Th(e);return o(rh,{label:"Режим работы",value:t,className:"max-w-none"})},Ch=({workTime:e="",lunchHour:t="",daysOff:n=""},l=!1)=>e?[`${l?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",Th=e=>{const t=e.find((e=>"workingSaturday"!==e.key&&Boolean(e.status)&&Boolean(e.workTime))),n=e.find((e=>"workingSaturday"===e.key&&Boolean(e.status)&&Boolean(e.workTime))),l=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[Ch({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":l}),Ch({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:l},!0)].filter(Boolean)},Ih=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],Bh=e=>Ih.map((([t,n,l])=>({key:t,title:l,short:n,status:Boolean(e?.[t]),get workTime(){return"workingSaturday"===t?e?.workTimeSaturday:e?.workTime},get lunchHour(){return"workingSaturday"===t?e?.lunchHourSaturday:e?.lunchHour},get hasLunch(){return/\d+/.test(this.lunchHour??"")}}))),Ph=e=>{if(!e)return null;const t=Mh(e);return c(dh,{className:"border-none",children:[o(rh,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(Rh)})}),o(rh,{label:"Режим работы",className:"max-w-none",children:o(Re,{children:e})})]})},Mh=e=>{const t=Ih.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],l=n[n.length-1]?.toLowerCase();return l?.includes("выходной")?t.map((e=>({...e,status:!l?.includes(e.short.toLowerCase())}))):t},Rh=({short:e,status:t},n)=>o("div",{className:h("w-9 h-9 rounded-md flex items-center justify-center",t?"bg-green-more-light text-green-dark":"bg-error/30 text-error"),children:o(Re,{size:"text-xs",children:e})},String(n)),Vh=({currency:e,buyExchangeRate:t,saleExchangeRate:n},l)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(rh,{label:"Валюта",value:e.currency}):null,t?o(rh,{label:"Купить",value:String(t)}):null,n?o(rh,{label:"Продать",value:String(n)}):null]},String(l)),zh=(new Date).getDay(),Dh=e=>{const[t]=e?.slice(zh-1)??[];if(!t)return null;const{lunchHour:n,status:l,workTime:a,hasLunch:i}=t;return l?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(ih,{color:"green",children:a}):null,n&&i?o(ih,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(ih,{color:"red",children:"Выходной"})},Ah=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",$h=({title:e,status:t,workTime:n,lunchHour:l,hasLunch:a},i)=>o(rh,{label:e,value:t&&n?n:"",subText:Ah({lunchHour:l,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(i)),_h=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,jh=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,Lh=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,Oh=({name:e,address:t,phone:n,fax:l,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m},h)=>{if(!d)return null;const u=Bh(d);return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(Re,{size:"text-h4",children:e}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:t})]}):null]}),Dh(u)]}),o("div",{className:"hidden sm:block",children:Eh({phone:n,fax:l,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),o(mi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(hi,{isUnfolded:e,children:Eh({phone:n,fax:l,phoneBusiness:a,phoneNatural:i,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>uh({isUnfolded:e,onToggle:t})})]},String(h))},Eh=({phone:e,fax:t,phoneBusiness:n,phoneNatural:l,phoneCallCentre:a,phoneCurrencyControl:i,workSchedule:r,exchangeRate:s})=>{const d=Bh(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(dh,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(rh,{label:"Факс",value:t,isPhone:!0}),o(rh,{label:"Телефон филиала",value:e,isPhone:!0}),o(rh,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(rh,{label:"Обслуживание физических лиц",value:l,isPhone:!0}),o(rh,{label:"Для консультаций по валютному контролю",value:i,isPhone:!0}),o(rh,{label:"Контакт-центр",value:a,isPhone:!0})]}),r?.isMatchesPattern?o(dh,{children:o(rh,{label:m,labelSize:"text-l",className:"w-full max-w-none",children:o("div",{className:"flex flex-wrap gap-xs sm:justify-between pt-xs",children:d?.map($h)})})}):c(dh,{children:[o(rh,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(Rh)})}),Sh(d)]}),r?.businessScheduleVisibleTag?Ph(r?.businessScheduleDescription):null,s?.currencies?.length?o(dh,{className:"flex-wrap",children:s?.currencies?.map(Vh)}):null]})},Fh=({name:e="",address:t="",workSchedule:n})=>{const l=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const i=`${t} ${(e=>{const t=Bh(e),n=e?Th(t):"",l=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?_h(n):Lh(n,l):jh(n):null})(n)}`;return{header:l,body:i}},Uh=({address:e,workScheduleDescription:t},n)=>t?c("div",{className:"bg-white col-span-12 p-3xl sm:border-yellow sm:border",children:[o("div",{className:"sm:flex sm:justify-between",children:c("div",{children:[o(Re,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(H,{name:"GeolocationIcon",width:"24",height:"24"}),o(Re,{size:"text-l",children:e})]}):null]})}),o("div",{className:"hidden sm:block",children:Wh({workScheduleDescription:t})}),o(mi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(hi,{isUnfolded:e,children:Wh({workScheduleDescription:t})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>uh({isUnfolded:e,onToggle:t})})]},String(n)):null,Wh=({workScheduleDescription:e})=>c("div",{children:[c(dh,{className:"flex",children:[o(rh,{label:"Операции для физических лиц",children:o(Re,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(rh,{label:"Операции для физических лиц",children:o(Re,{children:"Оформление и обслуживание банковских карт"})}),o(rh,{label:"Операции для физических лиц",children:o(Re,{children:"Инвестиционное и накопительное страхование"})}),o(rh,{label:"Операции для физических лиц",children:o(Re,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(rh,{label:"Режим работы",className:"max-w-none",children:o(Re,{children:e})})]}),Hh=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),qh={branches:[],remoteWorkplaces:[]};const Kh=async e=>await it(e,{method:"GET"})||qh,Xh={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},Yh={workingSaturday:e=>Boolean("workSchedule"in e&&e.workSchedule?.workingSaturday),premiumService:e=>Boolean("premiumService"in e&&e.premiumService),privateBanking:e=>Boolean("privateBanking"in e&&e.privateBanking),remoteWorkplace:e=>Boolean("workScheduleDescription"in e),serviceDisabledPeople:e=>Boolean("serviceDisabledPeople"in e&&e.serviceDisabledPeople),sellingCoins:e=>Boolean("sellingCoins"in e&&e.sellingCoins),buyingCoins:e=>Boolean("buyingCoins"in e&&e.buyingCoins),bullionOperations:e=>Boolean("bullionOperations"in e&&e.bullionOperations),preciousMetalsOperations:e=>Boolean("preciousMetalsOperations"in e&&e.preciousMetalsOperations),transferringDataToBiometricSystem:e=>Boolean("transferringDataToBiometricSystem"in e&&e.transferringDataToBiometricSystem)},Gh=d((({className:e})=>{const[t]=vo(),n=t?.code??"000",{data:l,isLoad:a}=function(e){const{data:t,error:n}=nl(`/api/v1/branchesAndRemoteWorkplaces?regionCode=${e}`,Kh);return{data:t||qh,isLoad:!t&&!n}}(n);return o(th,{className:e,filterItems:Qh,data:l?.branches,isLoad:a,remoteWorkplaces:l?.remoteWorkplaces,initFilterState:Xh,renderCard:Oh,renderRemoteWorkplaceCard:Uh,getBalloon:Fh,getBalloonRemoteWorkplaces:Hh,title:`Офисы филиала ${t?.name}`})})),Qh=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Yh[t](e)))))},Jh=d((({data:e,className:t,...n})=>{const l=e?.dataType??"offices";return o(g,{version:"transparent",className:h(t),defaultPadding:"p-0",...n,children:"offices"===l?o(Gh,{}):o(wh,{descriptionData:e})})})),Zh=d((({className:e,title:t,description:n="Блок в разработке...",...l})=>c(g,{className:h("box-border",e),...l,children:[o(S,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(x,{})]}))),eu="hidden sm:flex absolute z-40 top-10",tu=ht((({className:e="",padding:t,slides:n=[],...a})=>{const[i,r]=l(0),[s,d]=Xa({itemCount:n?.length||0});return c(g,{className:h("box-border overflow-hidden",e),defaultPadding:"pt-6xl",padding:t,...a,children:[o("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:n.map((({productBlock:e},t)=>o("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:o(Ye,{className:"pl-6xl h-full",headlineVersion:"M",isFullWidthTitle:!1,...e,...a})},String(t))))}),c("div",{className:"relative pr-xs mt-m -mb-m flex gap-xs box-border",children:[o(Aa,{containerRef:s,snapAlign:"snap-start",onVisibleIndicesChange:d.handleVisibleIndicesChange,itemClassName:"h-40 flex items-stretch w-screen",gap:8,children:n.map(nu({activeSlideIndex:i,onClick:r}))}),d.canScrollLeft?o(Za,{className:h("left-6",eu),onClick:d.scrollLeft}):null,d.canScrollRight?o(ei,{className:h("right-6",eu),onClick:d.scrollRight}):null]})]})})),nu=({activeSlideIndex:e,onClick:t})=>({nav:n},l)=>{const a=l===e,i=a?"min-w-[370px] mt-s h-28 bg-white shadow-dark-blue border-none p-6":"min-w-72 mt-lg h-24 ease-in duration-300 bg-white/10 px-xl py-lg hover:backdrop-blur",r=a?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(l),"aria-label":n?.title,className:h("relative overflow-hidden grow","ml-xs px-xl","box-border basis-0 border","border-gray group-data-secondary:border-white/50","text-left whitespace-nowrap",i),children:[o("div",{className:r,children:n?.title}),o("div",{className:s,children:n?.description})]},String(l))},lu=d((({address:e,email:t,telephone:n,button:l,className:a="",__html:i,richVersion:r,icon:s,title:d,version:m="primary",...u})=>c(g,{className:h("box-border text-left space-y-s",a),version:m,...u,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[je(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(ne,{image:s})}):null,d?o(N,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[i?au({__html:i,richVersion:r}):null,iu({label:"Адрес",data:e,iconName:"GeolocationIcon"}),iu({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),iu({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),l?.text?Le([l]):null]})]}))),au=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(Pe,{...e,itemSize:"list-s"})}),iu=({label:e,data:t,iconName:n,dataColor:l=""})=>t?c("div",{className:"flex gap-s",children:[o(H,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(Re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(Re,{size:"text-xl",color:l,children:t})]})]}):null,ru=d((e=>{const{__html:t,richVersion:n="",...l}=e;return o(g,{defaultPadding:"p-0",...l,children:o(Pe,{__html:t,richVersion:n})})})),su=d((({label:e,labelIconBgVersion:t,icon:n,onToggle:l,labelIcon:a})=>o(oi,{tag:"button",className:h("border-none bg-transparent items-center group/button",a?.icon?"py-xs":"py-lg"),onClick:l,textNode:c("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[null,e?o(Re,{size:"text-h6",font:"font-normal",children:e}):null]}),iconNode:n?o(H,{name:n,iconVersion:"color",width:"24",height:"24"}):null}))),ou=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",cu=(e=!1)=>e?"MinusIcon":"PlusIcon",du=(e=!1)=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",mu=ht((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,label:l="Развернуть",labelIcon:a,labelIconBgVersion:i,foldButtonVersion:r="default",version:s,role:c,...d})=>{const m=we();return o(g,{className:h("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:c,...d,children:o(mi,{isFoldButtonOnTop:n,unfoldedByDefault:t,renderFoldableSection:({isUnfolded:e})=>o(hi,{className:h("gap-lg",ou(m)),isUnfolded:e,children:M({...d,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>hu({foldButtonVersion:r,label:l,labelIcon:a,labelIconBgVersion:i,isUnfolded:e,onToggle:t,isMobile:m})})})}),{childrenTypes:{exclude:["RollupItem"]}}),hu=({foldButtonVersion:e,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:a,onToggle:i,isMobile:r=!1})=>{const s=t||(a?"Скрыть":"Развернуть"),c=((e=!1,t=!1)=>t?du(e):cu(e))(a,r);return"accordion"===e?o(su,{label:s,labelIcon:n,labelIconBgVersion:l,icon:c,onToggle:i}):o(ci,{label:s,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},uu=d((({className:e=""})=>{const[t,n]=l("option2"),a=i((e=>n(e)),[]);return c("div",{className:h("order-4",e),role:"radiogroup",children:[o(Yl,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(Yl,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),pu=d((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===l));return o(gn,{options:s,label:r,placeholder:a||l,onChange:e=>i(e.key),value:c})})),gu=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(pu,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(pu,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),xu=["От 1 дня","До 365 дней"],fu=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(Re,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(pl,{min:1,max:365,value:e,items:xu,onChange:t})]}))),bu=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:i})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(pu,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(pu,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),yu=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:h})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(gu,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:vu(m)}),o(fu,{days:a,setDays:e=>m({days:e})}),o(bu,{caseVolumes:d,selectedCaseVolume:i,onSelectedCaseVolume:Nu(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),c("div",{className:"contents @md:flex justify-between items-center gap-m",children:[o(uu,{}),o(be,{text:"Офисы на карте",version:"primary",onClick:h,className:"order-6"})]})]}))),vu=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Nu=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},wu=d((({days:e,tariffs:t=[]})=>{const n=Su(e,t),l="На рисунке изображена пачка листов\nформата А4";return c("div",{className:"contents @xl:flex flex-col justify-between gap-xl order-2",children:[c("div",{className:"flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none",children:[ku("Аренда за",e),ku("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(w,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l})}),c("div",{className:"flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center",children:[o(ne,{image:{icon:"PackA4Icon"},className:"@xl:h-60"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(w,{size:"text-s",font:"font-light",color:"text-white",children:l})})]})]})})),ku=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(Re,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o("span",{className:"text-l @xl:text-h3 text-primary-text",children:t})]}),Su=(e,t)=>{const n=Cu(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Cu=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},Tu=(e,t)=>e.find((e=>e.branchCode===t)),Iu=d((e=>{const{regions:t,data:n,branches:l,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,i]);const s=Tu(l,n.selectedBranch),d=Bu(s?.safeBoxCaseVolumes),m=Pu(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,h=Mu(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(yu,{...n,regions:t,onClick:r,branches:l,caseVolumes:d,safeBoxCases:m,onChange:i}),o(wu,{days:n.days,tariffs:h})]})})),Bu=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Pu=(e,t)=>e?.find((e=>e.volume===t)),Mu=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Ru=[];const Vu=async e=>await it(e,{method:"GET"})||Ru,zu=d((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=l(!1),d=i((()=>s((e=>!e))),[]),[m,h]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),u=kl(),p=Du(m.selectedRegion,u),x=function(e){const{data:t}=nl(e?`/api/v1/safeboxes?regionCode=${e}`:null,Vu);return t||Ru}(p),f=i((e=>h((t=>({...t,...e})))),[h]),b=(y=Tu(x,m.selectedBranch)||x,Array.isArray(y)?y.map((e=>({coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)].filter(Boolean),content:void 0}))).filter((e=>e.coords&&2===e.coords.length)):y?.gpsLatitude&&y?.gpsLongitude?[{coords:[y.gpsLatitude,y.gpsLongitude]}]:[]);var y;return c(g,{className:n,defaultPadding:"",...a,children:[c("div",{className:"p-4xl space-y-xl",children:[e?o(N,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,o(Iu,{regions:u,branches:x,data:{...m,selectedRegion:p},onClick:d,onChange:f}),t?o(w,{size:"text-s",font:"font-light",children:t}):null]}),b.length&&r?o(Fm,{points:b,className:"h-[640px]"}):null]})})),Du=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Au=e=>e<4?"w-72":"w-52",$u={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},_u=d((({buttons:e,className:t="",description:n,showLines:l=!0,steps:a=[],stepVersion:i="gray",title:r,version:s="primary",...d})=>{const m=a.length>3,u=$u,p=(e=>e?"":"opacity-0")(l),x=we();return c(g,{className:h("box-border flex flex-col items-center overflow-hidden gap-y-3xl",t),defaultPadding:"p-6xl",version:s,...d,children:[o(S,{headlineVersion:"S",title:r,description:n,isEmbedded:!0,className:"w-full",align:Vi(x)}),a?.length?c("div",{className:"box-border space-y-lg flex flex-col justify-center",children:[o("div",{className:h("flex items-center",m?"px-16":"px-24"),children:bi(o("div",{className:h("h-0.5 w-full bg-secondary-light flex-1",p)}))(a.map(ju(u,m,i)))}),o("div",{className:h("flex justify-between",m?"gap-x-s":"gap-x-20"),children:a.map((f={styleMap:u,version:s},(e,t,n)=>{const{styleMap:l,version:a}=f,{label:i,description:r,button:s,isDotted:d}=e;return c("div",{className:h("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",Au(n.length)),children:[c("div",{className:"space-y-xs",children:[i?o(Re,{size:"text-h6",align:"text-center",children:i}):null,c("div",{className:"flex flex-col items-center gap-3xs",children:[r?o("div",{className:l.description,children:r}):null,o(Pe,{__html:e.__html,itemSize:"list-s",isDotted:d})]})]}),s?.text?o(be,{className:"box-border py-s w-full max-w-60 mt-auto",version:a,...s,children:s?.text}):null]},String(t))}))})]}):null,Le(e)]});var f})),ju=(e,t,n)=>({icon:l},a)=>{const i="secondary"===n?"white":"color";return o(g,{defaultPadding:"",className:`${Lu(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:n,children:je(l)?o(ne,{image:{...l,iconVersion:l?.iconVersion||i},width:"48",height:"48"}):o("span",{className:h("text-h4","transparent"===n?e.iconText:(r=n,"secondary"===r?"group-data-primary:text-white":"text-secondary-text")),children:a+1})},String(a));var r},Lu=e=>e?"h-16 w-16":"h-24 w-24",Ou=d((()=>o("div",{className:"hidden",role:"none"}))),Eu="hidden sm:flex absolute z-40",Fu={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},Uu=d((({className:e,items:t=[],activeItem:n,onChange:l,tabsType:i="default"})=>{const[r,s]=Xa({itemCount:t?.length||0});return a((()=>Wu(r.current,t,n)),[]),c("div",{className:h("relative overflow-x-auto no-scrollbar",e),children:[o(Aa,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:Fu[i].item,gap:Fu[i].gap,children:t.map(km(n,l,i))}),s.canScrollLeft?o(Za,{className:h("left-6",Eu,Fu[i].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(ei,{className:h("right-6",Eu,Fu[i].buttonTop),onClick:s.scrollRight}):null]})})),Wu=(e,t,n)=>{const l=t.findIndex((e=>e===n));e&&l>0&&e.scrollTo({left:e?.children[l]?.offsetLeft,behavior:"smooth"})},Hu={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},qu=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:h(Hu[t].wrapper,e),children:o(Uu,{className:Hu[t].component,tabsType:t,...n})}):null,Ku=ht((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const u=Xu(n??{}),p=R(),x=t.every((e=>"link"===e?.type)),f=s?t.map((e=>({...e,count:"group"===e?.type?n?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:b}=p,[y,v]=l(Qu(f,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(u))),N=f[y],w=f.findIndex((e=>Boolean(e.selected)));a((()=>{const e=p.query[u]?f.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[u])):w;v(-1===e?0:e)}),[b,w,u]);const k=Gu(f[y],y),S=i((e=>{const t=f.indexOf(e),n=f[t];v(t),"group"===n.type&&((e,t)=>{const n=new URLSearchParams(p.query);e.text?n.set(u,e?.tabName??String(t)):n.delete(u),p.replace(`${p.pathname}?${n}`,"",{scroll:!1})})(e,t)}),[f]);return c(g,{className:h({"sticky top-1 z-20":d&&x},e),defaultPadding:"p-0",block:n,...m,children:[qu({className:h({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!x}),items:Yu(t,f),activeItem:N,tabsType:r,onChange:S}),o("div",{className:"space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:Object.entries(n?.slots??{}).map((([e,t])=>P(t,{...m?.options,slotName:k,parent:n,extraProps:{className:e===k?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Gu)?.filter(Boolean)||[]}),Xu=({__id:e,anchor:t})=>t??e??"tabs",Yu=(e,t)=>t?.length?t:e,Gu=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Qu=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),Ju={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},Zu=d((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:Ju[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ep=d((({className:e="",isOpen:t,onClick:n})=>o(be,{className:e,appendRight:o(ne,{image:{icon:t?"ArrowUpIcon":"ArrowDownIcon"},width:"24",height:"24"}),text:t?"Скрыть":"Показать",version:"gray",onClick:n}))),tp={Buttons:({buttons:e})=>Le(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(ne,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(Pe,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(Re,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(Re,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:l,isOpen:a})=>e?o(ep,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:n,pdfUrl:l})}}):null},np=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:i,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=l(!0);a((()=>{i===o&&s||m(!0)}),[s,o]);return lp({cell:e,cellProps:{rowIdx:n,cellIdx:i,fieldIdx:t,displayTable:e=>{m(!1),c(i),r(e)},isVisible:d}})})),lp=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in tp))return null;return o(tp[n],{...t,...l})},ap=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>o("div",{className:"w-80 flex-grow flex flex-col gap-m @4xl:gap-lg",role:"cell",children:e?.length?e.map(((e,s)=>o(np,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r},String(s)))):null}))),ip=(e,t)=>140*xc(e.slice(0,t).map((e=>e?.cols?.length??1))),rp=(e,t)=>e?.length>0?o("div",{className:h("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(Re,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,sp=d((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Pd({itemCount:t,visibleItemCount:5});return c("div",{children:[e?.map((a=n,(e,t)=>{if(!e?.length)return null;const[n,...l]=e,i=h("flex duration-1000 text-center",0!==t?"font-normal":"font-light");return c("div",{className:"flex border-main-divider border-b border-solid h-full",children:[n?.data?o("div",{className:"whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0",children:o(Re,{size:"text-xl",font:"font-light",children:n.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:i,style:{transform:`translateX(-${ip(l,a)}px)`},children:l?.map(((e,t)=>c("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[e?.data?o(Re,{size:"text-xl",children:e.data}):null,e?.cols?rp(e.cols,a):null]},`row${t}`)))})})]},String(t))})),Md({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]});var a})),op=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const l=`activeTabIdx:${e}-tableIdx:${n}`;return c("div",{className:"w-full @container",children:[o("div",{className:"flex py-m sm:px-m bg-white @4xl:bg-gray relative",children:o(Re,{size:"text-xl",align:"text-left",children:t.title})}),o("div",{className:"w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out",children:o("div",{className:"relative",children:o(sp,{rows:t.rowsData})})})]},l)}))}))),cp=(e=!1)=>""+(e?"text-white":"text-secondary-text"),dp=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>c("div",{className:"flex justify-between items-center w-full py-lg",children:[e&&e.length>1?o("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>o("div",{className:h("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===n}),onClick:()=>l(t),children:o(Re,{size:"text-xl",font:"font-light",color:cp(t===n),children:e||t+1})},e)))}):null,t?o(be,{className:"text-primary-main",href:t,version:"secondary",target:"_blank",appendLeft:o(H,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),mp=ht((({tableSource:e,pdfUrl:t,onClick:n})=>{const a=e?.tableData,[r,s]=l(0),d=i((e=>s(e)),[]),m=a?.[r]?.items??[],h=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(dp,{currencies:h,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(op,{activeTabIndex:r,items:m}),o(ep,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(Re,{size:"text-h6",children:"Данных нет"}),o(ep,{onClick:n,isOpen:!0})]})})),hp=d((({children:e,tableInner:t,onHideContentClick:n})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:h("@4xl:border-main-divider @4xl:border-b","flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg"),children:e}),t?o("div",{className:"origin-top animate-expansion",children:o(mp,{...t,onClick:n})}):null]}))),up=d((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,d]=l(void 0),m=i((e=>d(e)),[]),[u,p]=l(void 0),g=i((e=>p(e)),[]);return c(hp,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:h("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(ne,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(Re,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(Zu,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(ap,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:u,setOpenTableInnerIdx:g,...r},String(t))))}):null]})})),pp=d((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return c("div",{role:"table",className:"overflow-x-auto w-auto grid md:block",children:[c("div",{className:"relative space-y-xs",children:[e,Md({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),n?o("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),gp=d((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],d=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),m=s.length,[u,p]=Pd({itemCount:m,visibleItemCount:2}),x=(d||[]).map(((e,t)=>o(up,{row:e,activeIndex:u,rowIdx:t,...r},String(t)))),[f,b]=i>0?[x.slice(0,-i),x.slice(-i)]:[x,[]];return c(g,{className:h("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...r,children:[o(S,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:i>0?o(mi,{renderFoldableSection:({isUnfolded:e})=>c(pp,{controls:p,children:[f,o(hi,{isUnfolded:e,children:b})]}),renderFoldButton:di}):o(pp,{controls:p,children:x})})]})})),xp=d((({className:e="",title:t,description:n,iconVersion:l,__html:a,richVersion:i,...r})=>c(g,{className:h("flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10",e),...r,children:["small"===l?fp():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(Re,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?bp(n):null,a?o(Pe,{richVersion:i,__html:a}):null]})]}))),fp=()=>o("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),bp=e=>o(w,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),yp=d((({prefix:e,unit:t,suffix:n})=>c("div",{className:"w-full flex items-end",children:[e?o("div",{className:"gradient-color-text",children:o(Re,{size:"text-h2",children:e})}):null,t?o("div",{className:"-mb-6 @xl:-mb-4",children:o("span",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:t})}):null,n?o("div",{className:"gradient-color-text",children:o(Re,{size:"text-h2",children:n})}):null]}))),vp=d((e=>{const{prefix:t,unit:n,suffix:l,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(yp,{prefix:t,unit:n,suffix:l})})})),Np=ht((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:l=!0,version:a="transparent",isTheme:i=!1,isCardBorder:r=!1,image:s,...c})=>{const d=R();return o(g,{className:h("relative flex flex-col",Td[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${Q(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:i,...c,children:M({...c,extraProps:{className:h("w-full",Pa(r)),...Cd(l)}})})}),{childrenTypes:[]}),wp=e=>(e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12})(e)<10?"py-xl px-6xl":"py-6xl px-32",kp=d((({className:e,title:t,url:n,previewImg:l,...a})=>{const i=R();return c(g,{className:e,defaultPadding:wp(e),...a,children:[o(S,{title:t,headlineVersion:"M"}),n?o("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:U(i)(l?.src),style:{maxHeight:524},controls:!0,children:o("source",{src:U(i)(n)})}):null]})})),Sp={AdTile:pt,ApplicationForm:ba,ApplicationLeadForm:Ia,BankAccountFiltration:Mi,BenefitsBlock:Ai,BonusBenefitsBlock:Oi,ButtonsBlock:Fi,CalculatorBonus:lr,CalculatorBusinessDeposit:wr,CalculatorCredit:_r,CalculatorDeposit:ts,CalculatorRefinancing:cs,CardTransfer:xs,Carousel:Ss,CarouselCard:Bs,CarouselCatalogCard:Ms,CarouselLinks:zs,CarouselRecommendationCard:Es,CarouselTariffsCard:Ws,ContactsBlock:qs,DepositFiltration:Zs,Depository:xo,ErrorBlock:bo,ExchangeRateTile:Ho,Footer:Rc,GracePeriod:Vc,GrantSupport:$c,Header:wd,Headline:S,HorizontalLayout:Id,ImgBlock:Bd,InsuranceAmountBlock:Ad,InvestmentInfo:Ld,LinkDocs:Zd,MobileAppTile:lm,MortgageFiltration:Tm,OfficesAtmsMap:Jh,Placeholder:Zh,ProductBlock:ut,ProductGallery:tu,RepresentativeOfficeInfo:lu,RichTextBlock:ru,RollupItem:mu,SafeDepositRental:zu,StepsBlock:_u,StickyBottomMenu:Ou,TabsLayout:Ku,TariffsTable:gp,TextBlock:xp,UnitBlock:vp,VerticalLayout:Np,Video:kp},Cp=me((()=>{a((()=>{Tt()}),[]);const e=Dt();dn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const l=JSON.parse(n?.dataset?.aspects??"[]");St({aspectsAttributes:l,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))})),Tp="cookie",Ip=d((({__html:e})=>{const[t,{setTrue:n,setFalse:l}]=ln();uc((()=>{globalThis.localStorage?.getItem(Tp)||n()}),[],3e3);const a=i((()=>{globalThis.localStorage?.setItem(Tp,"true"),l()}),[]);return t&&e?o("div",{className:"container fixed left-0 right-0 bottom-0 z-50",role:"dialog",children:c("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black",children:[o("div",{className:"sm:flex-1",children:o(Pe,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(ia,{className:"bg-main-gray rounded-md w-11 h-11",onClose:a})})]})}):null}));function Bp(e){throw new Error(e)}const Pp=({onCloseAll:e,onClose:t}={})=>{const[n,{push:r,pop:s,clear:o}]=function(e=[]){const[t,n]=l(e),a=i((e=>n((t=>[...t,e]))),[]),r=i((()=>n((e=>e.slice(0,-1)))),[]),s=i((e=>n((t=>t.filter((t=>t!==e))))),[]),o=i((()=>n([])),[]);return[t,{setList:n,push:a,pop:r,remove:s,clear:o}]}(),c=i((()=>{e&&e(n),o()}),[n,e]),d=i((()=>{t&&t(n[n.length-1]),s()}),[n,t]);return a((()=>ce.subscribe("dialog",(e=>{switch(e.type){case"open":r(e);break;case"close":e.all?c():d();break;default:Bp(e)}}))),[c,d]),n},Mp=d((()=>{const e=i((e=>{for(const t of e)t?.onClose&&t.onClose()}),[]),t=i((e=>{e?.onClose&&e.onClose()}),[]),n=Pp({onCloseAll:e,onClose:t}),{close:l}=de(),r=i((({key:e})=>{"Escape"===e&&l()}),[]);return dn(globalThis.document,"keydown",r),a((()=>{n.length?(globalThis.document?.body.classList.add("no-scrollbar"),globalThis.document?.body.classList.add("overflow-hidden")):(globalThis.document?.body.classList.remove("no-scrollbar"),globalThis.document?.body.classList.remove("overflow-hidden"))}),[n]),n.length?o("div",{className:"fixed inset-0 z-50",role:"dialog",children:n.map((({dialog:e,id:t},l)=>o("div",{className:h("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:l!==n.length-1}),children:e},String(t||l))))}):null})),Rp=d((()=>{const[e,t]=l(null),n=i((()=>{t(null)}),[]);a((()=>ce.subscribe("popup",(e=>{switch(e.type){case"open":case"update":t(e);break;case"close":n();break;default:Bp(e)}}))),[]);const r=i((({key:e})=>{"Escape"===e&&n()}),[n]);return dn(globalThis.document,"keydown",r),e?o("div",{className:h("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",children:e.popup}):null})),Vp="header",zp="footer",Dp="sticky-footer",Ap={},$p=d((({className:e,data:t=Ap,blocksRegistry:n,blockDecorator:l})=>{const{slots:a,blocks:i,fallback:r,...s}=t,d=mt(s,r);Cp();const m={key:"",page:{slots:a,blocks:i,fallback:r,...d},blocksRegistry:n,blockDecorator:l,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:h("@container relative",t.style,e),children:[a?.header?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:P(a?.header,{...m,slotName:Vp})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[M({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),P(a?.footer,{...m,slotName:zp})]})]}),a?.["sticky-footer"]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:P(a?.["sticky-footer"],{...m,slotName:Dp})}):null,o(Mp,{}),o(Rp,{}),o(Ip,{__html:d?.cookieContent?.__html})]})}));Object.assign($p,{childrenTypes:[],slots:()=>[Vp,zp,Dp]});e.Blocks=Sp,e.ContentPage=$p,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.handlerDecorator=me,e.joinList=bi,e.packageVersion="0.14.567",e.projectSettings=z,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=O,e.useRouter=R,Object.defineProperty(e,"__esModule",{value:!0})}));